Commit 376c614964 for wordpress.org

commit 376c614964d606f08ac9bbd208040a857b47aba4
Author: ellatrix <ellatrix@git.wordpress.org>
Date:   Tue Nov 18 12:38:41 2025 +0000

    Sync packages for WP 6.9 RC 2.

    Changes can be found at https://github.com/WordPress/gutenberg/commits/wp/6.9/.

    - [Block Bindings: Add unit test coverage for `core/post-data` source](https://github.com/WordPress/gutenberg/pull/73055)
    - [Block Bindings: Error handling for external sources.](https://github.com/WordPress/gutenberg/pull/72585)
    - [Notes: Collapse note on blur](https://github.com/WordPress/gutenberg/pull/73158)
    - [Border-radius values triggers unintended px conversion](https://github.com/WordPress/gutenberg/pull/73324)
    - [Fix navigation tag entity binding](https://github.com/WordPress/gutenberg/pull/73255)
    - [DataViews: ensure primary actions are not wrapped in the list layout](https://github.com/WordPress/gutenberg/pull/73345)
    - [Fix: Fit Text may overflow into the padding area.](https://github.com/WordPress/gutenberg/pull/73327)
    - [Merge "Icon Size" and "Icon size" translation strings](https://github.com/WordPress/gutenberg/pull/73325)
    - [Notes: Improve delete confirm message for replies](https://github.com/WordPress/gutenberg/pull/73173)
    - [Fix: Custom font size taking over fit text.](https://github.com/WordPress/gutenberg/pull/73241)
    - [Fix a11y of descriptions and alerts for "Invalid" Nav Items](https://github.com/WordPress/gutenberg/pull/73177)
    - [Stretchy text: Hide variations in Block Inspector (hack)](https://github.com/WordPress/gutenberg/pull/73238)
    - [Update button label from "Add new note" to "Add new reply"](https://github.com/WordPress/gutenberg/pull/73189)
    - [Notes: Fix first note creation with pinned sidebar](https://github.com/WordPress/gutenberg/pull/73164)

    Developed in https://github.com/WordPress/wordpress-develop/pull/10528.
    See https://make.wordpress.org/core/handbook/about/release-cycle/block-editor-release-process-for-major-releases/#package-updates-and-core-patches.

    Fixes #64267.
    Props priethor.
    Built from https://develop.svn.wordpress.org/trunk@61262


    git-svn-id: http://core.svn.wordpress.org/trunk@60574 1a063a9b-81f0-0310-95a4-ce76da25c4cd

diff --git a/wp-includes/assets/script-loader-packages.min.php b/wp-includes/assets/script-loader-packages.min.php
index 4a321604a4..9650b17034 100644
--- a/wp-includes/assets/script-loader-packages.min.php
+++ b/wp-includes/assets/script-loader-packages.min.php
@@ -1 +1 @@
-<?php return array('a11y.min.js' => array('dependencies' => array('wp-dom-ready', 'wp-i18n'), 'version' => 'cb460b4676c94bd228ed'), 'admin-ui.min.js' => array('dependencies' => array('react-jsx-runtime', 'wp-components', 'wp-element'), 'version' => 'bc5db43f7e3f0d8adcc8'), 'annotations.min.js' => array('dependencies' => array('wp-data', 'wp-hooks', 'wp-i18n', 'wp-rich-text'), 'version' => '758b80d8a795a222601b'), 'api-fetch.min.js' => array('dependencies' => array('wp-i18n', 'wp-url'), 'version' => '3a4d9af2b423048b0dee'), 'autop.min.js' => array('dependencies' => array(), 'version' => '9fb50649848277dd318d'), 'base-styles.min.js' => array('dependencies' => array(), 'version' => '7529f773be5cb229e3c4'), 'blob.min.js' => array('dependencies' => array(), 'version' => '9113eed771d446f4a556'), 'block-directory.min.js' => array('dependencies' => array('react-jsx-runtime', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-notices', 'wp-plugins', 'wp-primitives', 'wp-url'), 'version' => '55bdef7bd3137eee623d'), 'block-editor.min.js' => array('dependencies' => array('react', 'react-dom', 'react-jsx-runtime', 'wp-a11y', 'wp-api-fetch', 'wp-blob', 'wp-block-serialization-default-parser', 'wp-blocks', 'wp-commands', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-notices', 'wp-preferences', 'wp-primitives', 'wp-priority-queue', 'wp-private-apis', 'wp-rich-text', 'wp-style-engine', 'wp-token-list', 'wp-url', 'wp-warning'), 'version' => '8ddac5d92cdac17289a1'), 'block-library.min.js' => array('dependencies' => array('react-jsx-runtime', 'wp-a11y', 'wp-api-fetch', 'wp-autop', 'wp-blob', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-latex-to-mathml', 'wp-notices', 'wp-patterns', 'wp-primitives', 'wp-private-apis', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-wordcount'), 'version' => 'd13f947fe75be2377812'), 'block-serialization-default-parser.min.js' => array('dependencies' => array(), 'version' => '14d44daebf663d05d330'), 'blocks.min.js' => array('dependencies' => array('react-jsx-runtime', 'wp-autop', 'wp-blob', 'wp-block-serialization-default-parser', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-private-apis', 'wp-rich-text', 'wp-shortcode', 'wp-warning'), 'version' => 'de131db49fa830bc97da'), 'commands.min.js' => array('dependencies' => array('react', 'react-dom', 'react-jsx-runtime', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-primitives', 'wp-private-apis'), 'version' => 'cac8f4817ab7cea0ac49'), 'components.min.js' => array('dependencies' => array('react', 'react-dom', 'react-jsx-runtime', 'wp-a11y', 'wp-compose', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-primitives', 'wp-private-apis', 'wp-rich-text', 'wp-warning'), 'version' => 'ad5cb4227f07a3d422ad'), 'compose.min.js' => array('dependencies' => array('react', 'react-jsx-runtime', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-priority-queue'), 'version' => '7a9b375d8c19cf9d3d9b'), 'core-commands.min.js' => array('dependencies' => array('react-jsx-runtime', 'wp-commands', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-primitives', 'wp-private-apis', 'wp-router', 'wp-url'), 'version' => 'effe2d88d7f0c50a8ce9'), 'core-data.min.js' => array('dependencies' => array('react-jsx-runtime', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-private-apis', 'wp-rich-text', 'wp-url', 'wp-warning'), 'version' => '15baadfe6e1374188072'), 'customize-widgets.min.js' => array('dependencies' => array('react-jsx-runtime', '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-preferences', 'wp-primitives', 'wp-private-apis', 'wp-widgets'), 'version' => 'd824213342f5e84c8ea3'), 'data.min.js' => array('dependencies' => array('react-jsx-runtime', 'wp-compose', 'wp-deprecated', 'wp-element', 'wp-is-shallow-equal', 'wp-priority-queue', 'wp-private-apis', 'wp-redux-routine'), 'version' => 'f940198280891b0b6318'), 'data-controls.min.js' => array('dependencies' => array('wp-api-fetch', 'wp-data', 'wp-deprecated'), 'version' => '49f5587e8b90f9e7cc7e'), 'date.min.js' => array('dependencies' => array('moment', 'wp-deprecated'), 'version' => '795a56839718d3ff7eae'), 'deprecated.min.js' => array('dependencies' => array('wp-hooks'), 'version' => 'e1f84915c5e8ae38964c'), 'dom.min.js' => array('dependencies' => array('wp-deprecated'), 'version' => '26edef3be6483da3de2e'), 'dom-ready.min.js' => array('dependencies' => array(), 'version' => 'f77871ff7694fffea381'), 'edit-post.min.js' => array('dependencies' => array('react-jsx-runtime', 'wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-commands', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-deprecated', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-notices', 'wp-plugins', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-url', 'wp-widgets'), 'version' => 'f011f5ec0075a555ea9c'), 'edit-site.min.js' => array('dependencies' => array('react', 'react-dom', 'react-jsx-runtime', 'wp-a11y', 'wp-api-fetch', 'wp-blob', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-commands', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-patterns', 'wp-plugins', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-router', 'wp-url', 'wp-warning', 'wp-widgets'), 'version' => 'b877e769e7f2bce85569'), 'edit-widgets.min.js' => array('dependencies' => array('react-jsx-runtime', 'wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-patterns', 'wp-plugins', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-url', 'wp-viewport', 'wp-widgets'), 'version' => 'f0347fefaf37fa0d99ca'), 'editor.min.js' => array('dependencies' => array('react', 'react-dom', 'react-jsx-runtime', 'wp-a11y', 'wp-api-fetch', 'wp-blob', 'wp-block-editor', 'wp-blocks', 'wp-commands', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-patterns', 'wp-plugins', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-viewport', 'wp-warning', 'wp-wordcount'), 'version' => '83c83adc15f6efb77453'), 'element.min.js' => array('dependencies' => array('react', 'react-dom', 'wp-escape-html'), 'version' => '6a582b0c827fa25df3dd'), 'escape-html.min.js' => array('dependencies' => array(), 'version' => '6561a406d2d232a6fbd2'), 'format-library.min.js' => array('dependencies' => array('react-jsx-runtime', 'wp-a11y', 'wp-block-editor', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-latex-to-mathml', 'wp-primitives', 'wp-private-apis', 'wp-rich-text', 'wp-url'), 'version' => '0811ed891b276a89737b'), 'hooks.min.js' => array('dependencies' => array(), 'version' => 'dd5603f07f9220ed27f1'), 'html-entities.min.js' => array('dependencies' => array(), 'version' => 'e8b78b18a162491d5e5f'), 'i18n.min.js' => array('dependencies' => array('wp-hooks'), 'version' => 'c26c3dc7bed366793375'), 'is-shallow-equal.min.js' => array('dependencies' => array(), 'version' => 'e0f9f1d78d83f5196979'), 'keyboard-shortcuts.min.js' => array('dependencies' => array('react-jsx-runtime', 'wp-data', 'wp-element', 'wp-keycodes'), 'version' => 'fbc45a34ce65c5723afa'), 'keycodes.min.js' => array('dependencies' => array('wp-i18n'), 'version' => '34c8fb5e7a594a1c8037'), 'latex-to-mathml.min.js' => array('dependencies' => array(), 'version' => '960cef31b586960935b4'), 'list-reusable-blocks.min.js' => array('dependencies' => array('react-jsx-runtime', 'wp-api-fetch', 'wp-blob', 'wp-components', 'wp-compose', 'wp-element', 'wp-i18n'), 'version' => 'f203c56da0f227808035'), 'media-utils.min.js' => array('dependencies' => array('wp-api-fetch', 'wp-blob', 'wp-element', 'wp-i18n', 'wp-private-apis'), 'version' => 'c66754bed5498afe7050'), 'notices.min.js' => array('dependencies' => array('wp-data'), 'version' => 'f62fbf15dcc23301922f'), 'nux.min.js' => array('dependencies' => array('react-jsx-runtime', 'wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => 'df0a4e75f0b99fb17077'), 'patterns.min.js' => array('dependencies' => array('react-jsx-runtime', 'wp-a11y', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-notices', 'wp-primitives', 'wp-private-apis', 'wp-url'), 'version' => '4131f04a041db58120d8'), 'plugins.min.js' => array('dependencies' => array('react-jsx-runtime', 'wp-compose', 'wp-deprecated', 'wp-element', 'wp-hooks', 'wp-is-shallow-equal', 'wp-primitives'), 'version' => '039ed87b5b9f7036ceee'), 'preferences.min.js' => array('dependencies' => array('react-jsx-runtime', 'wp-a11y', 'wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-primitives', 'wp-private-apis'), 'version' => '2ca086aed510c242a1ed'), 'preferences-persistence.min.js' => array('dependencies' => array('wp-api-fetch'), 'version' => 'e954d3a4426d311f7d1a'), 'primitives.min.js' => array('dependencies' => array('react-jsx-runtime', 'wp-element'), 'version' => '0b5dcc337aa7cbf75570'), 'priority-queue.min.js' => array('dependencies' => array(), 'version' => '2d59d091223ee9a33838'), 'private-apis.min.js' => array('dependencies' => array(), 'version' => '4f465748bda624774139'), 'redux-routine.min.js' => array('dependencies' => array(), 'version' => '8bb92d45458b29590f53'), 'reusable-blocks.min.js' => array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-notices', 'wp-primitives', 'wp-url'), 'version' => '6c0ec6e24f166c9b36e7'), 'rich-text.min.js' => array('dependencies' => array('wp-a11y', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-escape-html', 'wp-i18n', 'wp-keycodes'), 'version' => '5bdbb44f3039529e3645'), 'router.min.js' => array('dependencies' => array('react-jsx-runtime', 'wp-compose', 'wp-element', 'wp-private-apis', 'wp-url'), 'version' => '2dfc4b954318a03e6a76'), 'server-side-render.min.js' => array('dependencies' => array('react-jsx-runtime', 'wp-api-fetch', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-i18n', 'wp-url'), 'version' => '7db2472793a2abb97aa5'), 'shortcode.min.js' => array('dependencies' => array(), 'version' => '0b3174183b858f2df320'), 'style-engine.min.js' => array('dependencies' => array(), 'version' => '7c6fcedc37dadafb8a81'), 'token-list.min.js' => array('dependencies' => array(), 'version' => 'cfdf635a436c3953a965'), 'url.min.js' => array('dependencies' => array(), 'version' => '9e178c9516d1222dc834'), 'viewport.min.js' => array('dependencies' => array('react-jsx-runtime', 'wp-compose', 'wp-data'), 'version' => 'f07b4909c08cfe9de4e2'), 'views.min.js' => array('dependencies' => array('wp-data', 'wp-element', 'wp-preferences'), 'version' => 'ffb9f0d96ccb2a0d04bd'), 'warning.min.js' => array('dependencies' => array(), 'version' => 'd69bc18c456d01c11d5a'), 'widgets.min.js' => array('dependencies' => array('react-jsx-runtime', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-notices', 'wp-primitives'), 'version' => 'c0e4adfacd4c628b1d02'), 'wordcount.min.js' => array('dependencies' => array(), 'version' => 'c5b97f11206928ea9130'));
+<?php return array('a11y.min.js' => array('dependencies' => array('wp-dom-ready', 'wp-i18n'), 'version' => 'cb460b4676c94bd228ed'), 'admin-ui.min.js' => array('dependencies' => array('react-jsx-runtime', 'wp-components', 'wp-element'), 'version' => 'bc5db43f7e3f0d8adcc8'), 'annotations.min.js' => array('dependencies' => array('wp-data', 'wp-hooks', 'wp-i18n', 'wp-rich-text'), 'version' => '758b80d8a795a222601b'), 'api-fetch.min.js' => array('dependencies' => array('wp-i18n', 'wp-url'), 'version' => '3a4d9af2b423048b0dee'), 'autop.min.js' => array('dependencies' => array(), 'version' => '9fb50649848277dd318d'), 'base-styles.min.js' => array('dependencies' => array(), 'version' => '7529f773be5cb229e3c4'), 'blob.min.js' => array('dependencies' => array(), 'version' => '9113eed771d446f4a556'), 'block-directory.min.js' => array('dependencies' => array('react-jsx-runtime', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-notices', 'wp-plugins', 'wp-primitives', 'wp-url'), 'version' => '55bdef7bd3137eee623d'), 'block-editor.min.js' => array('dependencies' => array('react', 'react-dom', 'react-jsx-runtime', 'wp-a11y', 'wp-api-fetch', 'wp-blob', 'wp-block-serialization-default-parser', 'wp-blocks', 'wp-commands', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-notices', 'wp-preferences', 'wp-primitives', 'wp-priority-queue', 'wp-private-apis', 'wp-rich-text', 'wp-style-engine', 'wp-token-list', 'wp-url', 'wp-warning'), 'version' => '5fc3ad11235679e29400'), 'block-library.min.js' => array('dependencies' => array('react-jsx-runtime', 'wp-a11y', 'wp-api-fetch', 'wp-autop', 'wp-blob', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-latex-to-mathml', 'wp-notices', 'wp-patterns', 'wp-primitives', 'wp-private-apis', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-wordcount'), 'version' => 'f7cd30dd531f20693fdb'), 'block-serialization-default-parser.min.js' => array('dependencies' => array(), 'version' => '14d44daebf663d05d330'), 'blocks.min.js' => array('dependencies' => array('react-jsx-runtime', 'wp-autop', 'wp-blob', 'wp-block-serialization-default-parser', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-private-apis', 'wp-rich-text', 'wp-shortcode', 'wp-warning'), 'version' => 'de131db49fa830bc97da'), 'commands.min.js' => array('dependencies' => array('react', 'react-dom', 'react-jsx-runtime', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-primitives', 'wp-private-apis'), 'version' => 'cac8f4817ab7cea0ac49'), 'components.min.js' => array('dependencies' => array('react', 'react-dom', 'react-jsx-runtime', 'wp-a11y', 'wp-compose', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-primitives', 'wp-private-apis', 'wp-rich-text', 'wp-warning'), 'version' => 'ad5cb4227f07a3d422ad'), 'compose.min.js' => array('dependencies' => array('react', 'react-jsx-runtime', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-priority-queue'), 'version' => '7a9b375d8c19cf9d3d9b'), 'core-commands.min.js' => array('dependencies' => array('react-jsx-runtime', 'wp-commands', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-primitives', 'wp-private-apis', 'wp-router', 'wp-url'), 'version' => 'effe2d88d7f0c50a8ce9'), 'core-data.min.js' => array('dependencies' => array('react-jsx-runtime', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-private-apis', 'wp-rich-text', 'wp-url', 'wp-warning'), 'version' => '15baadfe6e1374188072'), 'customize-widgets.min.js' => array('dependencies' => array('react-jsx-runtime', '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-preferences', 'wp-primitives', 'wp-private-apis', 'wp-widgets'), 'version' => 'd824213342f5e84c8ea3'), 'data.min.js' => array('dependencies' => array('react-jsx-runtime', 'wp-compose', 'wp-deprecated', 'wp-element', 'wp-is-shallow-equal', 'wp-priority-queue', 'wp-private-apis', 'wp-redux-routine'), 'version' => 'f940198280891b0b6318'), 'data-controls.min.js' => array('dependencies' => array('wp-api-fetch', 'wp-data', 'wp-deprecated'), 'version' => '49f5587e8b90f9e7cc7e'), 'date.min.js' => array('dependencies' => array('moment', 'wp-deprecated'), 'version' => '795a56839718d3ff7eae'), 'deprecated.min.js' => array('dependencies' => array('wp-hooks'), 'version' => 'e1f84915c5e8ae38964c'), 'dom.min.js' => array('dependencies' => array('wp-deprecated'), 'version' => '26edef3be6483da3de2e'), 'dom-ready.min.js' => array('dependencies' => array(), 'version' => 'f77871ff7694fffea381'), 'edit-post.min.js' => array('dependencies' => array('react-jsx-runtime', 'wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-commands', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-deprecated', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-notices', 'wp-plugins', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-url', 'wp-widgets'), 'version' => 'f011f5ec0075a555ea9c'), 'edit-site.min.js' => array('dependencies' => array('react', 'react-dom', 'react-jsx-runtime', 'wp-a11y', 'wp-api-fetch', 'wp-blob', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-commands', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-patterns', 'wp-plugins', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-router', 'wp-url', 'wp-warning', 'wp-widgets'), 'version' => 'b877e769e7f2bce85569'), 'edit-widgets.min.js' => array('dependencies' => array('react-jsx-runtime', 'wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-patterns', 'wp-plugins', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-url', 'wp-viewport', 'wp-widgets'), 'version' => 'f0347fefaf37fa0d99ca'), 'editor.min.js' => array('dependencies' => array('react', 'react-dom', 'react-jsx-runtime', 'wp-a11y', 'wp-api-fetch', 'wp-blob', 'wp-block-editor', 'wp-blocks', 'wp-commands', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-patterns', 'wp-plugins', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-viewport', 'wp-warning', 'wp-wordcount'), 'version' => 'eb03723c7a53aaeea8fd'), 'element.min.js' => array('dependencies' => array('react', 'react-dom', 'wp-escape-html'), 'version' => '6a582b0c827fa25df3dd'), 'escape-html.min.js' => array('dependencies' => array(), 'version' => '6561a406d2d232a6fbd2'), 'format-library.min.js' => array('dependencies' => array('react-jsx-runtime', 'wp-a11y', 'wp-block-editor', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-latex-to-mathml', 'wp-primitives', 'wp-private-apis', 'wp-rich-text', 'wp-url'), 'version' => '0811ed891b276a89737b'), 'hooks.min.js' => array('dependencies' => array(), 'version' => 'dd5603f07f9220ed27f1'), 'html-entities.min.js' => array('dependencies' => array(), 'version' => 'e8b78b18a162491d5e5f'), 'i18n.min.js' => array('dependencies' => array('wp-hooks'), 'version' => 'c26c3dc7bed366793375'), 'is-shallow-equal.min.js' => array('dependencies' => array(), 'version' => 'e0f9f1d78d83f5196979'), 'keyboard-shortcuts.min.js' => array('dependencies' => array('react-jsx-runtime', 'wp-data', 'wp-element', 'wp-keycodes'), 'version' => 'fbc45a34ce65c5723afa'), 'keycodes.min.js' => array('dependencies' => array('wp-i18n'), 'version' => '34c8fb5e7a594a1c8037'), 'latex-to-mathml.min.js' => array('dependencies' => array(), 'version' => '960cef31b586960935b4'), 'list-reusable-blocks.min.js' => array('dependencies' => array('react-jsx-runtime', 'wp-api-fetch', 'wp-blob', 'wp-components', 'wp-compose', 'wp-element', 'wp-i18n'), 'version' => 'f203c56da0f227808035'), 'media-utils.min.js' => array('dependencies' => array('wp-api-fetch', 'wp-blob', 'wp-element', 'wp-i18n', 'wp-private-apis'), 'version' => 'c66754bed5498afe7050'), 'notices.min.js' => array('dependencies' => array('wp-data'), 'version' => 'f62fbf15dcc23301922f'), 'nux.min.js' => array('dependencies' => array('react-jsx-runtime', 'wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => 'df0a4e75f0b99fb17077'), 'patterns.min.js' => array('dependencies' => array('react-jsx-runtime', 'wp-a11y', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-notices', 'wp-primitives', 'wp-private-apis', 'wp-url'), 'version' => '4131f04a041db58120d8'), 'plugins.min.js' => array('dependencies' => array('react-jsx-runtime', 'wp-compose', 'wp-deprecated', 'wp-element', 'wp-hooks', 'wp-is-shallow-equal', 'wp-primitives'), 'version' => '039ed87b5b9f7036ceee'), 'preferences.min.js' => array('dependencies' => array('react-jsx-runtime', 'wp-a11y', 'wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-primitives', 'wp-private-apis'), 'version' => '2ca086aed510c242a1ed'), 'preferences-persistence.min.js' => array('dependencies' => array('wp-api-fetch'), 'version' => 'e954d3a4426d311f7d1a'), 'primitives.min.js' => array('dependencies' => array('react-jsx-runtime', 'wp-element'), 'version' => '0b5dcc337aa7cbf75570'), 'priority-queue.min.js' => array('dependencies' => array(), 'version' => '2d59d091223ee9a33838'), 'private-apis.min.js' => array('dependencies' => array(), 'version' => '4f465748bda624774139'), 'redux-routine.min.js' => array('dependencies' => array(), 'version' => '8bb92d45458b29590f53'), 'reusable-blocks.min.js' => array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-notices', 'wp-primitives', 'wp-url'), 'version' => '6c0ec6e24f166c9b36e7'), 'rich-text.min.js' => array('dependencies' => array('wp-a11y', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-escape-html', 'wp-i18n', 'wp-keycodes'), 'version' => '5bdbb44f3039529e3645'), 'router.min.js' => array('dependencies' => array('react-jsx-runtime', 'wp-compose', 'wp-element', 'wp-private-apis', 'wp-url'), 'version' => '2dfc4b954318a03e6a76'), 'server-side-render.min.js' => array('dependencies' => array('react-jsx-runtime', 'wp-api-fetch', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-i18n', 'wp-url'), 'version' => '7db2472793a2abb97aa5'), 'shortcode.min.js' => array('dependencies' => array(), 'version' => '0b3174183b858f2df320'), 'style-engine.min.js' => array('dependencies' => array(), 'version' => '7c6fcedc37dadafb8a81'), 'token-list.min.js' => array('dependencies' => array(), 'version' => 'cfdf635a436c3953a965'), 'url.min.js' => array('dependencies' => array(), 'version' => '9e178c9516d1222dc834'), 'viewport.min.js' => array('dependencies' => array('react-jsx-runtime', 'wp-compose', 'wp-data'), 'version' => 'f07b4909c08cfe9de4e2'), 'views.min.js' => array('dependencies' => array('wp-data', 'wp-element', 'wp-preferences'), 'version' => 'ffb9f0d96ccb2a0d04bd'), 'warning.min.js' => array('dependencies' => array(), 'version' => 'd69bc18c456d01c11d5a'), 'widgets.min.js' => array('dependencies' => array('react-jsx-runtime', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-notices', 'wp-primitives'), 'version' => 'c0e4adfacd4c628b1d02'), 'wordcount.min.js' => array('dependencies' => array(), 'version' => 'c5b97f11206928ea9130'));
diff --git a/wp-includes/assets/script-loader-packages.php b/wp-includes/assets/script-loader-packages.php
index d5a4559af0..5f190349da 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'), 'version' => '454e8a3cffdca128c277'), 'admin-ui.js' => array('dependencies' => array('react-jsx-runtime', 'wp-components', 'wp-element'), 'version' => '162fe802085f0b777fd4'), 'annotations.js' => array('dependencies' => array('wp-data', 'wp-hooks', 'wp-i18n', 'wp-rich-text'), 'version' => 'b0f85052d9a7695cd3bc'), 'api-fetch.js' => array('dependencies' => array('wp-i18n', 'wp-url'), 'version' => 'dde45ae4bb2923c6d069'), 'autop.js' => array('dependencies' => array(), 'version' => '4253b2f13990616d5356'), 'base-styles.js' => array('dependencies' => array(), 'version' => 'dc7e184aa007ae08c82c'), 'blob.js' => array('dependencies' => array(), 'version' => 'e1b9669561b45fc50da4'), 'block-directory.js' => array('dependencies' => array('react-jsx-runtime', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-notices', 'wp-plugins', 'wp-primitives', 'wp-url'), 'version' => '033f605efae39cbb46e1'), 'block-editor.js' => array('dependencies' => array('react', 'react-dom', 'react-jsx-runtime', 'wp-a11y', 'wp-api-fetch', 'wp-blob', 'wp-block-serialization-default-parser', 'wp-blocks', 'wp-commands', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-notices', 'wp-preferences', 'wp-primitives', 'wp-priority-queue', 'wp-private-apis', 'wp-rich-text', 'wp-style-engine', 'wp-token-list', 'wp-url', 'wp-warning'), 'version' => '663c44e4c425ba390fb9'), 'block-library.js' => array('dependencies' => array('react-jsx-runtime', 'wp-a11y', 'wp-api-fetch', 'wp-autop', 'wp-blob', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-latex-to-mathml', 'wp-notices', 'wp-patterns', 'wp-primitives', 'wp-private-apis', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-wordcount'), 'version' => 'fd022fa3edc687519908'), 'block-serialization-default-parser.js' => array('dependencies' => array(), 'version' => '6f4152c4a3466c0e1107'), 'blocks.js' => array('dependencies' => array('react-jsx-runtime', 'wp-autop', 'wp-blob', 'wp-block-serialization-default-parser', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-private-apis', 'wp-rich-text', 'wp-shortcode', 'wp-warning'), 'version' => '0dd7fe05e1672f006cab'), 'commands.js' => array('dependencies' => array('react', 'react-dom', 'react-jsx-runtime', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-primitives', 'wp-private-apis'), 'version' => 'dc36b1bd84586300bf60'), 'components.js' => array('dependencies' => array('react', 'react-dom', 'react-jsx-runtime', 'wp-a11y', 'wp-compose', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-primitives', 'wp-private-apis', 'wp-rich-text', 'wp-warning'), 'version' => '64ac954c305bc7ef45de'), 'compose.js' => array('dependencies' => array('react', 'react-jsx-runtime', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-priority-queue'), 'version' => '7c895b31cd7a903b5229'), 'core-commands.js' => array('dependencies' => array('react-jsx-runtime', 'wp-commands', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-primitives', 'wp-private-apis', 'wp-router', 'wp-url'), 'version' => '2aa6475e85b024c6a8d7'), 'core-data.js' => array('dependencies' => array('react-jsx-runtime', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-private-apis', 'wp-rich-text', 'wp-url', 'wp-warning'), 'version' => '164cd7b3a5ff5fbcb9c6'), 'customize-widgets.js' => array('dependencies' => array('react-jsx-runtime', '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-preferences', 'wp-primitives', 'wp-private-apis', 'wp-widgets'), 'version' => '18b0f5c24fbd8697b2aa'), 'data.js' => array('dependencies' => array('react-jsx-runtime', 'wp-compose', 'wp-deprecated', 'wp-element', 'wp-is-shallow-equal', 'wp-priority-queue', 'wp-private-apis', 'wp-redux-routine'), 'version' => 'c64d89d47908ae6c6928'), 'data-controls.js' => array('dependencies' => array('wp-api-fetch', 'wp-data', 'wp-deprecated'), 'version' => '795b5696a2f33be22815'), 'date.js' => array('dependencies' => array('moment', 'wp-deprecated'), 'version' => '90011238ea6662a51b76'), 'deprecated.js' => array('dependencies' => array('wp-hooks'), 'version' => '6c0519d363872604d48f'), 'dom.js' => array('dependencies' => array('wp-deprecated'), 'version' => 'ce91312aee495c65e891'), 'dom-ready.js' => array('dependencies' => array(), 'version' => 'e8a78afc9e733da0e68c'), 'edit-post.js' => array('dependencies' => array('react-jsx-runtime', 'wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-commands', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-deprecated', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-notices', 'wp-plugins', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-url', 'wp-widgets'), 'version' => 'e1bb9f1ce3b75f246296'), 'edit-site.js' => array('dependencies' => array('react', 'react-dom', 'react-jsx-runtime', 'wp-a11y', 'wp-api-fetch', 'wp-blob', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-commands', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-patterns', 'wp-plugins', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-router', 'wp-url', 'wp-warning', 'wp-widgets'), 'version' => 'abe2276ecc2f16de900c'), 'edit-widgets.js' => array('dependencies' => array('react-jsx-runtime', 'wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-patterns', 'wp-plugins', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-url', 'wp-viewport', 'wp-widgets'), 'version' => 'a80ffe47fb274d89b066'), 'editor.js' => array('dependencies' => array('react', 'react-dom', 'react-jsx-runtime', 'wp-a11y', 'wp-api-fetch', 'wp-blob', 'wp-block-editor', 'wp-blocks', 'wp-commands', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-patterns', 'wp-plugins', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-viewport', 'wp-warning', 'wp-wordcount'), 'version' => '60f63c2f0ff4679d5289'), 'element.js' => array('dependencies' => array('react', 'react-dom', 'wp-escape-html'), 'version' => 'a63ee6ce984c02a99fa7'), 'escape-html.js' => array('dependencies' => array(), 'version' => '6cade854f375b3091114'), 'format-library.js' => array('dependencies' => array('react-jsx-runtime', 'wp-a11y', 'wp-block-editor', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-latex-to-mathml', 'wp-primitives', 'wp-private-apis', 'wp-rich-text', 'wp-url'), 'version' => '4f80d3db8b50cf9c5301'), 'hooks.js' => array('dependencies' => array(), 'version' => '220ff17f5667d013d468'), 'html-entities.js' => array('dependencies' => array(), 'version' => '4ae2a0abe957ffc91832'), 'i18n.js' => array('dependencies' => array('wp-hooks'), 'version' => '6b3ae5bd3b8d9598492d'), 'is-shallow-equal.js' => array('dependencies' => array(), 'version' => '4554764360b974e32f5d'), 'keyboard-shortcuts.js' => array('dependencies' => array('react-jsx-runtime', 'wp-data', 'wp-element', 'wp-keycodes'), 'version' => '98dc6100b14191414e86'), 'keycodes.js' => array('dependencies' => array('wp-i18n'), 'version' => '0ae26254e495f9f44348'), 'latex-to-mathml.js' => array('dependencies' => array(), 'version' => '1ce7a1f9643a38b5ebfc'), 'list-reusable-blocks.js' => array('dependencies' => array('react-jsx-runtime', 'wp-api-fetch', 'wp-blob', 'wp-components', 'wp-compose', 'wp-element', 'wp-i18n'), 'version' => '6a9a46c2725626e98187'), 'media-utils.js' => array('dependencies' => array('wp-api-fetch', 'wp-blob', 'wp-element', 'wp-i18n', 'wp-private-apis'), 'version' => '759ef046a52055f4122a'), 'notices.js' => array('dependencies' => array('wp-data'), 'version' => 'bce2bc515ebefc1c8fdb'), 'nux.js' => array('dependencies' => array('react-jsx-runtime', 'wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => 'faac53b38d2c588188d9'), 'patterns.js' => array('dependencies' => array('react-jsx-runtime', 'wp-a11y', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-notices', 'wp-primitives', 'wp-private-apis', 'wp-url'), 'version' => '9a430feb5c489942dfd9'), 'plugins.js' => array('dependencies' => array('react-jsx-runtime', 'wp-compose', 'wp-deprecated', 'wp-element', 'wp-hooks', 'wp-is-shallow-equal', 'wp-primitives'), 'version' => '406ba7671d4fe3433a29'), 'preferences.js' => array('dependencies' => array('react-jsx-runtime', 'wp-a11y', 'wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-primitives', 'wp-private-apis'), 'version' => '82e07780e2bc6c33ac54'), 'preferences-persistence.js' => array('dependencies' => array('wp-api-fetch'), 'version' => 'c2f2335b9574eb86f052'), 'primitives.js' => array('dependencies' => array('react-jsx-runtime', 'wp-element'), 'version' => '2a765d78f060aed119ff'), 'priority-queue.js' => array('dependencies' => array(), 'version' => 'b617c70465159c57937b'), 'private-apis.js' => array('dependencies' => array(), 'version' => 'd7d926d9becc3eef5e24'), 'redux-routine.js' => array('dependencies' => array(), 'version' => '58e4c7cd114da148c2c4'), 'reusable-blocks.js' => array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-notices', 'wp-primitives', 'wp-url'), 'version' => '432ad5022736e46b1966'), 'rich-text.js' => array('dependencies' => array('wp-a11y', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-escape-html', 'wp-i18n', 'wp-keycodes'), 'version' => '26b032e73cfbf9a8165e'), 'router.js' => array('dependencies' => array('react-jsx-runtime', 'wp-compose', 'wp-element', 'wp-private-apis', 'wp-url'), 'version' => 'a276444c22bcd59e25c6'), 'server-side-render.js' => array('dependencies' => array('react-jsx-runtime', 'wp-api-fetch', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-i18n', 'wp-url'), 'version' => '1332aa67a86c1fb5cdae'), 'shortcode.js' => array('dependencies' => array(), 'version' => 'c4ba248a967c40b8582c'), 'style-engine.js' => array('dependencies' => array(), 'version' => 'e9af2fb3cca3fc5b8836'), 'token-list.js' => array('dependencies' => array(), 'version' => '2dbca0e379f5b7d539a9'), 'url.js' => array('dependencies' => array(), 'version' => '6bc6a4c3049d91342459'), 'viewport.js' => array('dependencies' => array('react-jsx-runtime', 'wp-compose', 'wp-data'), 'version' => 'a67acba4cc142a907c6d'), 'views.js' => array('dependencies' => array('wp-data', 'wp-element', 'wp-preferences'), 'version' => '45d25ba894aa9540a41f'), 'warning.js' => array('dependencies' => array(), 'version' => '9eb7f5c6957924ec4b81'), 'widgets.js' => array('dependencies' => array('react-jsx-runtime', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-notices', 'wp-primitives'), 'version' => '1eec0865ea9500e23fc2'), 'wordcount.js' => array('dependencies' => array(), 'version' => '74fa464d39ba906db10c'));
+<?php return array('a11y.js' => array('dependencies' => array('wp-dom-ready', 'wp-i18n'), 'version' => '454e8a3cffdca128c277'), 'admin-ui.js' => array('dependencies' => array('react-jsx-runtime', 'wp-components', 'wp-element'), 'version' => '162fe802085f0b777fd4'), 'annotations.js' => array('dependencies' => array('wp-data', 'wp-hooks', 'wp-i18n', 'wp-rich-text'), 'version' => 'b0f85052d9a7695cd3bc'), 'api-fetch.js' => array('dependencies' => array('wp-i18n', 'wp-url'), 'version' => 'dde45ae4bb2923c6d069'), 'autop.js' => array('dependencies' => array(), 'version' => '4253b2f13990616d5356'), 'base-styles.js' => array('dependencies' => array(), 'version' => 'dc7e184aa007ae08c82c'), 'blob.js' => array('dependencies' => array(), 'version' => 'e1b9669561b45fc50da4'), 'block-directory.js' => array('dependencies' => array('react-jsx-runtime', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-notices', 'wp-plugins', 'wp-primitives', 'wp-url'), 'version' => '033f605efae39cbb46e1'), 'block-editor.js' => array('dependencies' => array('react', 'react-dom', 'react-jsx-runtime', 'wp-a11y', 'wp-api-fetch', 'wp-blob', 'wp-block-serialization-default-parser', 'wp-blocks', 'wp-commands', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-notices', 'wp-preferences', 'wp-primitives', 'wp-priority-queue', 'wp-private-apis', 'wp-rich-text', 'wp-style-engine', 'wp-token-list', 'wp-url', 'wp-warning'), 'version' => 'a50e955434e44f00a753'), 'block-library.js' => array('dependencies' => array('react-jsx-runtime', 'wp-a11y', 'wp-api-fetch', 'wp-autop', 'wp-blob', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-latex-to-mathml', 'wp-notices', 'wp-patterns', 'wp-primitives', 'wp-private-apis', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-wordcount'), 'version' => '478ebedb5d8c42d1e5dd'), 'block-serialization-default-parser.js' => array('dependencies' => array(), 'version' => '6f4152c4a3466c0e1107'), 'blocks.js' => array('dependencies' => array('react-jsx-runtime', 'wp-autop', 'wp-blob', 'wp-block-serialization-default-parser', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-private-apis', 'wp-rich-text', 'wp-shortcode', 'wp-warning'), 'version' => '0dd7fe05e1672f006cab'), 'commands.js' => array('dependencies' => array('react', 'react-dom', 'react-jsx-runtime', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-primitives', 'wp-private-apis'), 'version' => 'dc36b1bd84586300bf60'), 'components.js' => array('dependencies' => array('react', 'react-dom', 'react-jsx-runtime', 'wp-a11y', 'wp-compose', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-primitives', 'wp-private-apis', 'wp-rich-text', 'wp-warning'), 'version' => '64ac954c305bc7ef45de'), 'compose.js' => array('dependencies' => array('react', 'react-jsx-runtime', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-priority-queue'), 'version' => '7c895b31cd7a903b5229'), 'core-commands.js' => array('dependencies' => array('react-jsx-runtime', 'wp-commands', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-primitives', 'wp-private-apis', 'wp-router', 'wp-url'), 'version' => '2aa6475e85b024c6a8d7'), 'core-data.js' => array('dependencies' => array('react-jsx-runtime', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-private-apis', 'wp-rich-text', 'wp-url', 'wp-warning'), 'version' => '164cd7b3a5ff5fbcb9c6'), 'customize-widgets.js' => array('dependencies' => array('react-jsx-runtime', '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-preferences', 'wp-primitives', 'wp-private-apis', 'wp-widgets'), 'version' => '18b0f5c24fbd8697b2aa'), 'data.js' => array('dependencies' => array('react-jsx-runtime', 'wp-compose', 'wp-deprecated', 'wp-element', 'wp-is-shallow-equal', 'wp-priority-queue', 'wp-private-apis', 'wp-redux-routine'), 'version' => 'c64d89d47908ae6c6928'), 'data-controls.js' => array('dependencies' => array('wp-api-fetch', 'wp-data', 'wp-deprecated'), 'version' => '795b5696a2f33be22815'), 'date.js' => array('dependencies' => array('moment', 'wp-deprecated'), 'version' => '90011238ea6662a51b76'), 'deprecated.js' => array('dependencies' => array('wp-hooks'), 'version' => '6c0519d363872604d48f'), 'dom.js' => array('dependencies' => array('wp-deprecated'), 'version' => 'ce91312aee495c65e891'), 'dom-ready.js' => array('dependencies' => array(), 'version' => 'e8a78afc9e733da0e68c'), 'edit-post.js' => array('dependencies' => array('react-jsx-runtime', 'wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-commands', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-deprecated', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-notices', 'wp-plugins', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-url', 'wp-widgets'), 'version' => 'e1bb9f1ce3b75f246296'), 'edit-site.js' => array('dependencies' => array('react', 'react-dom', 'react-jsx-runtime', 'wp-a11y', 'wp-api-fetch', 'wp-blob', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-commands', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-patterns', 'wp-plugins', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-router', 'wp-url', 'wp-warning', 'wp-widgets'), 'version' => 'abe2276ecc2f16de900c'), 'edit-widgets.js' => array('dependencies' => array('react-jsx-runtime', 'wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-patterns', 'wp-plugins', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-url', 'wp-viewport', 'wp-widgets'), 'version' => 'a80ffe47fb274d89b066'), 'editor.js' => array('dependencies' => array('react', 'react-dom', 'react-jsx-runtime', 'wp-a11y', 'wp-api-fetch', 'wp-blob', 'wp-block-editor', 'wp-blocks', 'wp-commands', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-patterns', 'wp-plugins', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-viewport', 'wp-warning', 'wp-wordcount'), 'version' => 'b952a1a736be00b93c33'), 'element.js' => array('dependencies' => array('react', 'react-dom', 'wp-escape-html'), 'version' => 'a63ee6ce984c02a99fa7'), 'escape-html.js' => array('dependencies' => array(), 'version' => '6cade854f375b3091114'), 'format-library.js' => array('dependencies' => array('react-jsx-runtime', 'wp-a11y', 'wp-block-editor', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-latex-to-mathml', 'wp-primitives', 'wp-private-apis', 'wp-rich-text', 'wp-url'), 'version' => '4f80d3db8b50cf9c5301'), 'hooks.js' => array('dependencies' => array(), 'version' => '220ff17f5667d013d468'), 'html-entities.js' => array('dependencies' => array(), 'version' => '4ae2a0abe957ffc91832'), 'i18n.js' => array('dependencies' => array('wp-hooks'), 'version' => '6b3ae5bd3b8d9598492d'), 'is-shallow-equal.js' => array('dependencies' => array(), 'version' => '4554764360b974e32f5d'), 'keyboard-shortcuts.js' => array('dependencies' => array('react-jsx-runtime', 'wp-data', 'wp-element', 'wp-keycodes'), 'version' => '98dc6100b14191414e86'), 'keycodes.js' => array('dependencies' => array('wp-i18n'), 'version' => '0ae26254e495f9f44348'), 'latex-to-mathml.js' => array('dependencies' => array(), 'version' => '1ce7a1f9643a38b5ebfc'), 'list-reusable-blocks.js' => array('dependencies' => array('react-jsx-runtime', 'wp-api-fetch', 'wp-blob', 'wp-components', 'wp-compose', 'wp-element', 'wp-i18n'), 'version' => '6a9a46c2725626e98187'), 'media-utils.js' => array('dependencies' => array('wp-api-fetch', 'wp-blob', 'wp-element', 'wp-i18n', 'wp-private-apis'), 'version' => '759ef046a52055f4122a'), 'notices.js' => array('dependencies' => array('wp-data'), 'version' => 'bce2bc515ebefc1c8fdb'), 'nux.js' => array('dependencies' => array('react-jsx-runtime', 'wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => 'faac53b38d2c588188d9'), 'patterns.js' => array('dependencies' => array('react-jsx-runtime', 'wp-a11y', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-notices', 'wp-primitives', 'wp-private-apis', 'wp-url'), 'version' => '9a430feb5c489942dfd9'), 'plugins.js' => array('dependencies' => array('react-jsx-runtime', 'wp-compose', 'wp-deprecated', 'wp-element', 'wp-hooks', 'wp-is-shallow-equal', 'wp-primitives'), 'version' => '406ba7671d4fe3433a29'), 'preferences.js' => array('dependencies' => array('react-jsx-runtime', 'wp-a11y', 'wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-primitives', 'wp-private-apis'), 'version' => '82e07780e2bc6c33ac54'), 'preferences-persistence.js' => array('dependencies' => array('wp-api-fetch'), 'version' => 'c2f2335b9574eb86f052'), 'primitives.js' => array('dependencies' => array('react-jsx-runtime', 'wp-element'), 'version' => '2a765d78f060aed119ff'), 'priority-queue.js' => array('dependencies' => array(), 'version' => 'b617c70465159c57937b'), 'private-apis.js' => array('dependencies' => array(), 'version' => 'd7d926d9becc3eef5e24'), 'redux-routine.js' => array('dependencies' => array(), 'version' => '58e4c7cd114da148c2c4'), 'reusable-blocks.js' => array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-notices', 'wp-primitives', 'wp-url'), 'version' => '432ad5022736e46b1966'), 'rich-text.js' => array('dependencies' => array('wp-a11y', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-escape-html', 'wp-i18n', 'wp-keycodes'), 'version' => '26b032e73cfbf9a8165e'), 'router.js' => array('dependencies' => array('react-jsx-runtime', 'wp-compose', 'wp-element', 'wp-private-apis', 'wp-url'), 'version' => 'a276444c22bcd59e25c6'), 'server-side-render.js' => array('dependencies' => array('react-jsx-runtime', 'wp-api-fetch', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-i18n', 'wp-url'), 'version' => '1332aa67a86c1fb5cdae'), 'shortcode.js' => array('dependencies' => array(), 'version' => 'c4ba248a967c40b8582c'), 'style-engine.js' => array('dependencies' => array(), 'version' => 'e9af2fb3cca3fc5b8836'), 'token-list.js' => array('dependencies' => array(), 'version' => '2dbca0e379f5b7d539a9'), 'url.js' => array('dependencies' => array(), 'version' => '6bc6a4c3049d91342459'), 'viewport.js' => array('dependencies' => array('react-jsx-runtime', 'wp-compose', 'wp-data'), 'version' => 'a67acba4cc142a907c6d'), 'views.js' => array('dependencies' => array('wp-data', 'wp-element', 'wp-preferences'), 'version' => '45d25ba894aa9540a41f'), 'warning.js' => array('dependencies' => array(), 'version' => '9eb7f5c6957924ec4b81'), 'widgets.js' => array('dependencies' => array('react-jsx-runtime', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-notices', 'wp-primitives'), 'version' => '1eec0865ea9500e23fc2'), 'wordcount.js' => array('dependencies' => array(), 'version' => '74fa464d39ba906db10c'));
diff --git a/wp-includes/assets/script-modules-packages.min.php b/wp-includes/assets/script-modules-packages.min.php
index 9bbc9bc38d..b1a8039917 100644
--- a/wp-includes/assets/script-modules-packages.min.php
+++ b/wp-includes/assets/script-modules-packages.min.php
@@ -1 +1 @@
-<?php return array('interactivity/index.min.js' => array('dependencies' => array(), 'version' => '90f16bd7fc9472806570', 'type' => 'module'), 'interactivity/debug.min.js' => array('dependencies' => array(), 'version' => 'dea7da43ce140b662d0f', 'type' => 'module'), 'interactivity-router/index.min.js' => array('dependencies' => array('@wordpress/interactivity', array('id' => '@wordpress/a11y', 'import' => 'dynamic')), 'version' => '765a6ee8162122b48e6c', 'type' => 'module'), 'a11y/index.min.js' => array('dependencies' => array(), 'version' => 'b7d06936b8bc23cff2ad', 'type' => 'module'), 'block-library/accordion/view.min.js' => array('dependencies' => array('@wordpress/interactivity'), 'version' => '3a414634555a20667d6c', 'type' => 'module'), 'block-library/file/view.min.js' => array('dependencies' => array('@wordpress/interactivity'), 'version' => 'f9665632b48682075277', 'type' => 'module'), 'block-library/form/view.min.js' => array('dependencies' => array(), 'version' => 'baaf25398238b4f2a821', 'type' => 'module'), 'block-library/image/view.min.js' => array('dependencies' => array('@wordpress/interactivity'), 'version' => '292ec2cc397d10d98f6a', 'type' => 'module'), 'block-library/navigation/view.min.js' => array('dependencies' => array('@wordpress/interactivity'), 'version' => 'b0f909c3ec791c383210', 'type' => 'module'), 'block-library/query/view.min.js' => array('dependencies' => array('@wordpress/interactivity', array('id' => '@wordpress/interactivity-router', 'import' => 'dynamic')), 'version' => 'f55e93a1ad4806e91785', 'type' => 'module'), 'block-library/search/view.min.js' => array('dependencies' => array('@wordpress/interactivity'), 'version' => '94fc611a7464b5de290a', 'type' => 'module'), 'block-editor/utils/fit-text-frontend.min.js' => array('dependencies' => array('@wordpress/interactivity'), 'version' => 'e232324bfec8ae2dc657', 'type' => 'module'));
+<?php return array('interactivity/index.min.js' => array('dependencies' => array(), 'version' => '90f16bd7fc9472806570', 'type' => 'module'), 'interactivity/debug.min.js' => array('dependencies' => array(), 'version' => 'dea7da43ce140b662d0f', 'type' => 'module'), 'interactivity-router/index.min.js' => array('dependencies' => array('@wordpress/interactivity', array('id' => '@wordpress/a11y', 'import' => 'dynamic')), 'version' => '765a6ee8162122b48e6c', 'type' => 'module'), 'a11y/index.min.js' => array('dependencies' => array(), 'version' => 'b7d06936b8bc23cff2ad', 'type' => 'module'), 'block-library/accordion/view.min.js' => array('dependencies' => array('@wordpress/interactivity'), 'version' => '3a414634555a20667d6c', 'type' => 'module'), 'block-library/file/view.min.js' => array('dependencies' => array('@wordpress/interactivity'), 'version' => 'f9665632b48682075277', 'type' => 'module'), 'block-library/form/view.min.js' => array('dependencies' => array(), 'version' => 'baaf25398238b4f2a821', 'type' => 'module'), 'block-library/image/view.min.js' => array('dependencies' => array('@wordpress/interactivity'), 'version' => '292ec2cc397d10d98f6a', 'type' => 'module'), 'block-library/navigation/view.min.js' => array('dependencies' => array('@wordpress/interactivity'), 'version' => 'b0f909c3ec791c383210', 'type' => 'module'), 'block-library/query/view.min.js' => array('dependencies' => array('@wordpress/interactivity', array('id' => '@wordpress/interactivity-router', 'import' => 'dynamic')), 'version' => 'f55e93a1ad4806e91785', 'type' => 'module'), 'block-library/search/view.min.js' => array('dependencies' => array('@wordpress/interactivity'), 'version' => '94fc611a7464b5de290a', 'type' => 'module'), 'block-editor/utils/fit-text-frontend.min.js' => array('dependencies' => array('@wordpress/interactivity'), 'version' => 'd6b553b57c3908edc8f8', 'type' => 'module'));
diff --git a/wp-includes/assets/script-modules-packages.php b/wp-includes/assets/script-modules-packages.php
index bd9f8d47be..5e9a0349cf 100644
--- a/wp-includes/assets/script-modules-packages.php
+++ b/wp-includes/assets/script-modules-packages.php
@@ -1 +1 @@
-<?php return array('interactivity/index.js' => array('dependencies' => array(), 'version' => '38e33c23e410fb32ea01', 'type' => 'module'), 'interactivity/debug.js' => array('dependencies' => array(), 'version' => '619affca133d04fbead9', 'type' => 'module'), 'interactivity-router/index.js' => array('dependencies' => array('@wordpress/interactivity', array('id' => '@wordpress/a11y', 'import' => 'dynamic')), 'version' => '615b5efb98e5a661b4d1', 'type' => 'module'), 'a11y/index.js' => array('dependencies' => array(), 'version' => '44e98abfb3e34e3a8215', 'type' => 'module'), 'block-library/accordion/view.js' => array('dependencies' => array('@wordpress/interactivity'), 'version' => '1573a0bf8c95b3086f55', 'type' => 'module'), 'block-library/file/view.js' => array('dependencies' => array('@wordpress/interactivity'), 'version' => '68edaa16ac08c7263242', 'type' => 'module'), 'block-library/form/view.js' => array('dependencies' => array(), 'version' => '546df584e020bcd26658', 'type' => 'module'), 'block-library/image/view.js' => array('dependencies' => array('@wordpress/interactivity'), 'version' => 'eee16edfa4ab9d3d6ccc', 'type' => 'module'), 'block-library/navigation/view.js' => array('dependencies' => array('@wordpress/interactivity'), 'version' => 'fb7ff593698b4ba77be9', 'type' => 'module'), 'block-library/query/view.js' => array('dependencies' => array('@wordpress/interactivity', array('id' => '@wordpress/interactivity-router', 'import' => 'dynamic')), 'version' => '6e56f22ddd3a19c16a98', 'type' => 'module'), 'block-library/search/view.js' => array('dependencies' => array('@wordpress/interactivity'), 'version' => '5384da843e91f8a69f7b', 'type' => 'module'), 'block-editor/utils/fit-text-frontend.js' => array('dependencies' => array('@wordpress/interactivity'), 'version' => '56d12815346923e3ce38', 'type' => 'module'));
+<?php return array('interactivity/index.js' => array('dependencies' => array(), 'version' => '38e33c23e410fb32ea01', 'type' => 'module'), 'interactivity/debug.js' => array('dependencies' => array(), 'version' => '619affca133d04fbead9', 'type' => 'module'), 'interactivity-router/index.js' => array('dependencies' => array('@wordpress/interactivity', array('id' => '@wordpress/a11y', 'import' => 'dynamic')), 'version' => '615b5efb98e5a661b4d1', 'type' => 'module'), 'a11y/index.js' => array('dependencies' => array(), 'version' => '44e98abfb3e34e3a8215', 'type' => 'module'), 'block-library/accordion/view.js' => array('dependencies' => array('@wordpress/interactivity'), 'version' => '1573a0bf8c95b3086f55', 'type' => 'module'), 'block-library/file/view.js' => array('dependencies' => array('@wordpress/interactivity'), 'version' => '68edaa16ac08c7263242', 'type' => 'module'), 'block-library/form/view.js' => array('dependencies' => array(), 'version' => '546df584e020bcd26658', 'type' => 'module'), 'block-library/image/view.js' => array('dependencies' => array('@wordpress/interactivity'), 'version' => 'eee16edfa4ab9d3d6ccc', 'type' => 'module'), 'block-library/navigation/view.js' => array('dependencies' => array('@wordpress/interactivity'), 'version' => 'fb7ff593698b4ba77be9', 'type' => 'module'), 'block-library/query/view.js' => array('dependencies' => array('@wordpress/interactivity', array('id' => '@wordpress/interactivity-router', 'import' => 'dynamic')), 'version' => '6e56f22ddd3a19c16a98', 'type' => 'module'), 'block-library/search/view.js' => array('dependencies' => array('@wordpress/interactivity'), 'version' => '5384da843e91f8a69f7b', 'type' => 'module'), 'block-editor/utils/fit-text-frontend.js' => array('dependencies' => array('@wordpress/interactivity'), 'version' => 'd8e8b298eefd1b032edf', 'type' => 'module'));
diff --git a/wp-includes/css/dist/edit-site/posts-rtl.css b/wp-includes/css/dist/edit-site/posts-rtl.css
index 2802169fd4..d1b810b0ab 100644
--- a/wp-includes/css/dist/edit-site/posts-rtl.css
+++ b/wp-includes/css/dist/edit-site/posts-rtl.css
@@ -1194,6 +1194,7 @@ div.dataviews-view-list{
   display:flex;
   flex:0 0 auto;
   gap:4px;
+  white-space:nowrap;
   width:max-content;
 }

diff --git a/wp-includes/css/dist/edit-site/posts-rtl.min.css b/wp-includes/css/dist/edit-site/posts-rtl.min.css
index 05f08edece..40c9e1731e 100644
--- a/wp-includes/css/dist/edit-site/posts-rtl.min.css
+++ b/wp-includes/css/dist/edit-site/posts-rtl.min.css
@@ -1 +1 @@
-@charset "UTF-8";:root{--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:var(--wp-block-synced-color);--wp-editor-canvas-background:#ddd;--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,160.5;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.admin-ui-page{background-color:#fff;color:#2f2f2f;container:admin-ui-page/inline-size;display:flex;flex-flow:column;height:100%;position:relative;z-index:1}@media not (prefers-reduced-motion){.admin-ui-page{transition:width .2s ease-out}}.admin-ui-page__header{background:#fff;border-bottom:1px solid #f0f0f0;padding:16px 48px;position:sticky;top:0}@container (max-width: 430px){.admin-ui-page__header{padding:16px 24px}}.admin-ui-page__header-subtitle{color:#757575;font-family:-apple-system,"system-ui",Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:400;line-height:20px;margin:0;padding-block-end:8px}.admin-ui-page__content{display:flex;flex-direction:column;flex-grow:1;overflow:auto}.admin-ui-page__content.has-padding{padding:16px 20px}@container (max-width: 430px){.admin-ui-page__content.has-padding{padding:16px 24px}}.show-icon-labels .admin-ui-page__header-actions .components-button.has-icon{padding:0 8px;width:auto}.show-icon-labels .admin-ui-page__header-actions .components-button.has-icon svg{display:none}.show-icon-labels .admin-ui-page__header-actions .components-button.has-icon:after{content:attr(aria-label);font-size:12px}.dataviews-picker-wrapper,.dataviews-wrapper{box-sizing:border-box;container:dataviews-wrapper/inline-size;display:flex;flex-direction:column;font-size:13px;height:100%;line-height:1.4;overflow:auto;scroll-padding-bottom:64px}.dataviews-filters__container,.dataviews__view-actions{box-sizing:border-box;flex-shrink:0;padding:16px 48px;position:sticky;right:0}@media not (prefers-reduced-motion){.dataviews-filters__container,.dataviews__view-actions{transition:padding .1s ease-out}}.dataviews-loading,.dataviews-no-results{align-items:center;display:flex;flex-grow:1;justify-content:center;padding:0 48px}@media not (prefers-reduced-motion){.dataviews-loading,.dataviews-no-results{transition:padding .1s ease-out}}.dataviews-loading-more{text-align:center}@container (max-width: 430px){.dataviews-filters__container,.dataviews__view-actions{padding:12px 24px}.dataviews-loading,.dataviews-no-results{padding-left:24px;padding-right:24px}}.dataviews-title-field{font-size:13px;font-weight:500;width:100%}.dataviews-title-field,.dataviews-title-field a{color:#2f2f2f;text-overflow:ellipsis;white-space:nowrap}.dataviews-title-field a{display:block;flex-grow:0;overflow:hidden;text-decoration:none}.dataviews-title-field a:hover{color:var(--wp-admin-theme-color)}.dataviews-title-field a:focus{border-radius:2px;box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color,#007cba);color:var(--wp-admin-theme-color--rgb)}.dataviews-title-field button.components-button.is-link{color:#1e1e1e;display:block;font-weight:inherit;overflow:hidden;text-decoration:none;text-overflow:ellipsis;white-space:nowrap;width:100%}.dataviews-title-field button.components-button.is-link:hover{color:var(--wp-admin-theme-color)}.dataviews-title-field--clickable{color:#2f2f2f;cursor:pointer}.dataviews-title-field--clickable:hover{color:var(--wp-admin-theme-color)}.dataviews-title-field--clickable:focus{border-radius:2px;box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color,#007cba);color:var(--wp-admin-theme-color--rgb)}.components-card__body:has(>.dataviews-picker-wrapper),.components-card__body:has(>.dataviews-wrapper){overflow:hidden;padding:8px 0 0}.components-card__body:has(>.dataviews-picker-wrapper) .dataviews-filters__container,.components-card__body:has(>.dataviews-picker-wrapper) .dataviews-footer,.components-card__body:has(>.dataviews-picker-wrapper) .dataviews-loading,.components-card__body:has(>.dataviews-picker-wrapper) .dataviews-no-results,.components-card__body:has(>.dataviews-picker-wrapper) .dataviews-view-grid,.components-card__body:has(>.dataviews-picker-wrapper) .dataviews__view-actions,.components-card__body:has(>.dataviews-wrapper) .dataviews-filters__container,.components-card__body:has(>.dataviews-wrapper) .dataviews-footer,.components-card__body:has(>.dataviews-wrapper) .dataviews-loading,.components-card__body:has(>.dataviews-wrapper) .dataviews-no-results,.components-card__body:has(>.dataviews-wrapper) .dataviews-view-grid,.components-card__body:has(>.dataviews-wrapper) .dataviews__view-actions{padding-inline:24px}.components-card__body:has(>.dataviews-picker-wrapper) .dataviews-view-table tr td:first-child,.components-card__body:has(>.dataviews-picker-wrapper) .dataviews-view-table tr th:first-child,.components-card__body:has(>.dataviews-wrapper) .dataviews-view-table tr td:first-child,.components-card__body:has(>.dataviews-wrapper) .dataviews-view-table tr th:first-child{padding-inline-start:24px}.components-card__body:has(>.dataviews-picker-wrapper) .dataviews-view-table tr td:last-child,.components-card__body:has(>.dataviews-picker-wrapper) .dataviews-view-table tr th:last-child,.components-card__body:has(>.dataviews-wrapper) .dataviews-view-table tr td:last-child,.components-card__body:has(>.dataviews-wrapper) .dataviews-view-table tr th:last-child{padding-inline-end:24px}.dataviews-bulk-actions-footer__item-count{color:#1e1e1e;font-size:11px;font-weight:500;text-transform:uppercase}.dataviews-bulk-actions-footer__container{margin-left:auto;min-height:32px}.dataviews-filters__button{position:relative}.dataviews-filters__container{padding-top:0}.dataviews-filters__reset-button.dataviews-filters__reset-button[aria-disabled=true],.dataviews-filters__reset-button.dataviews-filters__reset-button[aria-disabled=true]:hover{opacity:0}.dataviews-filters__reset-button.dataviews-filters__reset-button[aria-disabled=true]:focus{opacity:1}.dataviews-filters__summary-popover{font-size:13px;line-height:1.4}.dataviews-filters__summary-popover .components-popover__content{border-radius:4px;max-width:250px;min-width:230px;width:100%}.dataviews-filters__summary-popover.components-dropdown__content .components-popover__content{padding:0}.dataviews-filters__summary-operators-container{padding:8px 16px}.dataviews-filters__summary-operators-container:has(+.dataviews-filters__search-widget-listbox),.dataviews-filters__summary-operators-container:has(+.dataviews-filters__search-widget-no-elements),.dataviews-filters__summary-operators-container:has(+.dataviews-filters__user-input-widget){border-bottom:1px solid #e0e0e0}.dataviews-filters__summary-operators-container:empty{display:none}.dataviews-filters__summary-operators-container .dataviews-filters__summary-operators-filter-name{color:#757575;flex-shrink:0;max-width:calc(100% - 55px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dataviews-filters__summary-operators-container .dataviews-filters__summary-operators-filter-select{overflow:hidden;white-space:nowrap;width:100%}.dataviews-filters__summary-chip-container{position:relative;white-space:pre-wrap}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip{align-items:center;background:#f0f0f0;border:1px solid #0000;border-radius:16px;box-sizing:border-box;color:#2f2f2f;cursor:pointer;display:flex;min-height:32px;padding:4px 12px;position:relative}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.is-not-clickable{cursor:default}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.has-reset{padding-inline-end:28px}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip:focus-visible,.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip:hover:not(.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.is-not-clickable),.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip[aria-expanded=true]{background:#e0e0e0;color:#1e1e1e}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.has-values{background:rgba(var(--wp-admin-theme-color--rgb),.04);color:var(--wp-admin-theme-color)}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.has-values:hover,.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.has-values[aria-expanded=true]{background:rgba(var(--wp-admin-theme-color--rgb),.12)}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip:focus-visible{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:none}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip .dataviews-filters-__summary-filter-text-name{font-weight:500}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove{align-items:center;background:#0000;border:0;border-radius:50%;cursor:pointer;display:flex;height:24px;justify-content:center;left:4px;padding:0;position:absolute;top:50%;transform:translateY(-50%);width:24px}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove svg{fill:#757575}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove:focus,.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove:hover{background:#e0e0e0}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove:focus svg,.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove:hover svg{fill:#1e1e1e}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove.has-values svg{fill:var(--wp-admin-theme-color)}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove.has-values:hover{background:rgba(var(--wp-admin-theme-color--rgb),.08)}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove:focus-visible{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:none}.dataviews-filters__search-widget-filter-combobox-list{border-top:1px solid #e0e0e0;max-height:184px;overflow:auto;padding:4px}.dataviews-filters__search-widget-filter-combobox-list .dataviews-filters__search-widget-filter-combobox-item-value [data-user-value]{font-weight:600}.dataviews-filters__search-widget-listbox{overflow:auto;padding:4px}.dataviews-filters__search-widget-listitem{align-items:center;border-radius:2px;box-sizing:border-box;cursor:default;display:flex;font-family:-apple-system,"system-ui",Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:400;gap:8px;line-height:20px;min-height:32px;padding:4px 12px}.dataviews-filters__search-widget-listitem:last-child{margin-block-end:0}.dataviews-filters__search-widget-listitem:focus,.dataviews-filters__search-widget-listitem:hover,.dataviews-filters__search-widget-listitem[data-active-item]{background-color:var(--wp-admin-theme-color);color:#fff}.dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-description,.dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-description,.dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-description{color:#fff}.dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-single-selection,.dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-single-selection,.dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-single-selection{background:#fff;border-color:var(--wp-admin-theme-color-darker-20,#183ad6)}.dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-single-selection.is-selected,.dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-single-selection.is-selected,.dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-single-selection.is-selected{background:var(--wp-admin-theme-color-darker-20,#183ad6);border-color:var(--wp-admin-theme-color-darker-20,#183ad6)}.dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-multi-selection,.dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-multi-selection,.dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-multi-selection{border-color:var(--wp-admin-theme-color-darker-20,#183ad6)}.dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-multi-selection.is-selected,.dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-multi-selection.is-selected,.dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-multi-selection.is-selected{background:var(--wp-admin-theme-color-darker-20,#183ad6);border-color:var(--wp-admin-theme-color-darker-20,#183ad6)}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-description{color:#757575;display:block;font-size:12px;line-height:16px;overflow:hidden;text-overflow:ellipsis}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection{border:1px solid #1e1e1e;border-radius:50%;height:24px;margin-left:12px;max-width:24px;min-width:24px;position:relative;transition:none;width:24px}@media not (prefers-reduced-motion){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection{transition:box-shadow .1s linear}}@media (min-width:600px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection{height:16px;max-width:16px;min-width:16px;width:16px}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection:checked:before{background-color:#fff;border:4px solid #fff;box-sizing:inherit;height:12px;margin:0;position:absolute;right:50%;top:50%;transform:translate(50%,-50%);width:12px}@media (min-width:600px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection:checked:before{height:8px;width:8px}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color);outline:2px solid #0000}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection:checked{background:var(--wp-admin-theme-color);border:none}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection{margin:0;padding:0}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection.is-selected{background:var(--wp-admin-theme-color,#3858e9);border-color:var(--wp-admin-theme-color,#3858e9)}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection.is-selected:before{background-color:#fff;border:4px solid #fff;border-radius:50%;box-sizing:inherit;content:"";height:12px;margin:0;position:absolute;right:50%;top:50%;transform:translate(50%,-50%);width:12px}@media (min-width:600px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection.is-selected:before{height:8px;width:8px}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection{--checkbox-size:24px;border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 #0000;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:normal;margin-left:12px;padding:6px 8px;transition:none}@media not (prefers-reduced-motion){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection{transition:box-shadow .1s linear}}@media (min-width:600px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection{font-size:13px;line-height:normal}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color)}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection::-webkit-input-placeholder{color:#1e1e1e9e}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection::-moz-placeholder{color:#1e1e1e9e}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:-ms-input-placeholder{color:#1e1e1e9e}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color);outline:2px solid #0000}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:checked{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:checked::-ms-check{opacity:0}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:checked:before,.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-checked=mixed]:before{color:#fff;margin:-3px -5px}@media (min-width:782px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:checked:before,.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-checked=mixed]:before{margin:-4px -5px 0 0}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-checked=mixed]{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-checked=mixed]:before{content:"\f460";display:inline-block;float:right;font:normal 30px/1 dashicons;vertical-align:middle;width:16px;speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (min-width:782px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-checked=mixed]:before{float:none;font-size:21px}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:disabled,.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-disabled=true]{background:#f0f0f0;border-color:#ddd;cursor:default;opacity:1}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection{background:#fff;color:#1e1e1e;height:var(--checkbox-size);margin:0;padding:0;position:relative;width:var(--checkbox-size)}@media (min-width:600px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection{--checkbox-size:16px}}@media not (prefers-reduced-motion){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection{transition:border-color .1s ease-in-out}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection.is-selected{background:var(--wp-admin-theme-color,#3858e9);border-color:var(--wp-admin-theme-color,#3858e9)}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection.is-selected svg{--checkmark-size:var(--checkbox-size);fill:#fff;height:var(--checkmark-size);position:absolute;right:50%;top:50%;transform:translate(50%,-50%);width:var(--checkmark-size)}@media (min-width:600px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection.is-selected svg{--checkmark-size:calc(var(--checkbox-size) + 4px)}}.dataviews-filters__search-widget-filter-combobox__wrapper{padding:8px;position:relative}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input{border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 #0000;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;line-height:normal;padding:6px 8px}@media not (prefers-reduced-motion){.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input{transition:box-shadow .1s linear}}@media (min-width:600px){.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input{font-size:13px;line-height:normal}}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid #0000}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-webkit-input-placeholder{color:#1e1e1e9e}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-moz-placeholder{color:#1e1e1e9e}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input:-ms-input-placeholder{color:#1e1e1e9e}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input{display:block;font-size:16px;height:32px;margin-left:0;margin-right:0;padding:0 32px 0 8px;width:100%}@media (min-width:600px){.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input{font-size:13px}}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input:focus{background:#fff;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::placeholder{color:#757575}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-webkit-search-cancel-button,.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-webkit-search-decoration,.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-webkit-search-results-button,.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-webkit-search-results-decoration{-webkit-appearance:none}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__icon{align-items:center;bottom:0;display:flex;inset-inline-start:12px;justify-content:center;position:absolute;top:0;width:24px}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__icon:dir(ltr){transform:scaleX(-1)}.dataviews-filters__container-visibility-toggle{flex-shrink:0;position:relative}.dataviews-filters-toggle__count{background:var(--wp-admin-theme-color,#3858e9);border-radius:8px;box-sizing:border-box;color:#fff;font-size:11px;height:16px;left:0;line-height:16px;min-width:16px;outline:var(--wp-admin-border-width-focus) solid #fff;padding:0 4px;position:absolute;text-align:center;top:0;transform:translate(-50%,-50%)}.dataviews-search{width:fit-content}.dataviews-filters__user-input-widget{padding:16px}.dataviews-filters__user-input-widget .components-input-control__prefix{padding-right:8px}.dataviews-filters__search-widget-no-elements{align-items:center;display:flex;justify-content:center;padding:16px}.dataviews-footer{background-color:#fff;border-top:1px solid #f0f0f0;bottom:0;flex-shrink:0;padding:12px 48px;position:sticky;right:0}@media not (prefers-reduced-motion){.dataviews-footer{transition:padding .1s ease-out}}.dataviews-footer{z-index:2}@container (max-width: 430px){.dataviews-footer{padding:12px 24px}}@container (max-width: 560px){.dataviews-footer{flex-direction:column!important}.dataviews-footer .dataviews-bulk-actions-footer__container{width:100%}.dataviews-footer .dataviews-bulk-actions-footer__item-count{flex-grow:1}.dataviews-footer .dataviews-pagination{justify-content:space-between;width:100%}}.dataviews-pagination__page-select{font-size:11px;font-weight:500;text-transform:uppercase}@media (min-width:600px){.dataviews-pagination__page-select .components-select-control__input{font-size:11px!important;font-weight:500}}.dataviews-action-modal{z-index:1000001}.dataviews-picker-footer__bulk-selection{align-self:flex-start;height:32px}.dataviews-picker-footer__actions{align-self:flex-end}.dataviews-selection-checkbox{--checkbox-input-size:24px}@media (min-width:600px){.dataviews-selection-checkbox{--checkbox-input-size:16px}}.dataviews-selection-checkbox{flex-shrink:0;line-height:0}.dataviews-selection-checkbox .components-checkbox-control__input-container{margin:0}.dataviews-view-config{container-type:inline-size;font-size:13px;line-height:1.4;width:320px}.dataviews-config__popover.is-expanded .dataviews-config__popover-content-wrapper{height:100%;overflow-y:scroll}.dataviews-config__popover.is-expanded .dataviews-config__popover-content-wrapper .dataviews-view-config{width:auto}.dataviews-view-config__sort-direction .components-toggle-group-control-option-base{text-transform:uppercase}.dataviews-settings-section__title.dataviews-settings-section__title{font-size:15px;line-height:24px}.dataviews-settings-section__sidebar{grid-column:span 4}.dataviews-settings-section__content,.dataviews-settings-section__content>*{grid-column:span 8}.dataviews-settings-section__content .is-divided-in-two{display:contents}.dataviews-settings-section__content .is-divided-in-two>*{grid-column:span 4}.dataviews-settings-section:has(.dataviews-settings-section__content:empty){display:none}@container (max-width: 500px){.dataviews-settings-section.dataviews-settings-section{grid-template-columns:repeat(2,1fr)}.dataviews-settings-section.dataviews-settings-section .dataviews-settings-section__content,.dataviews-settings-section.dataviews-settings-section .dataviews-settings-section__sidebar{grid-column:span 2}}.dataviews-field-control__field{height:32px}.dataviews-field-control__actions{position:absolute;top:-9999em}.dataviews-field-control__actions.dataviews-field-control__actions{gap:4px}.dataviews-field-control__field.is-interacting .dataviews-field-control__actions,.dataviews-field-control__field:focus-within .dataviews-field-control__actions,.dataviews-field-control__field:hover .dataviews-field-control__actions{position:unset;top:unset}.dataviews-field-control__icon{display:flex;width:24px}.dataviews-field-control__label-sub-label-container{flex-grow:1}.dataviews-field-control__label{display:block}.dataviews-field-control__sub-label{color:#757575;font-size:11px;font-style:normal;margin-bottom:0;margin-top:8px}.dataviews-view-grid-items{container-type:inline-size;display:grid;gap:32px;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));grid-template-rows:max-content;margin-bottom:auto;padding:0 48px 24px}@container (max-width: 430px){.dataviews-view-grid-items{padding-left:24px;padding-right:24px}}@media not (prefers-reduced-motion){.dataviews-view-grid-items{transition:padding .1s ease-out}}.dataviews-view-grid .dataviews-view-grid__card{height:100%;justify-content:flex-start;position:relative}.dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__title-actions{padding:8px 0 4px}.dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__title-field{align-content:center;min-height:24px;overflow:hidden;text-align:start}.dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__title-field--clickable{width:fit-content}.dataviews-view-grid .dataviews-view-grid__card.is-selected .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-value{color:#1e1e1e}.dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__media:focus:after,.dataviews-view-grid .dataviews-view-grid__card.is-selected .dataviews-view-grid__media:after{background-color:rgba(var(--wp-admin-theme-color--rgb),.08)}.dataviews-view-grid .dataviews-view-grid__card.is-selected .dataviews-view-grid__media:after{box-shadow:inset 0 0 0 1px var(--wp-admin-theme-color)}.dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__media:focus:after{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.dataviews-view-grid .dataviews-view-grid__media{aspect-ratio:1/1;background-color:#fff;border-radius:4px;overflow:hidden;position:relative;width:100%}.dataviews-view-grid .dataviews-view-grid__media img{height:100%;object-fit:cover;width:100%}.dataviews-view-grid .dataviews-view-grid__media:after{border-radius:4px;box-shadow:inset 0 0 0 1px #0000001a;content:"";height:100%;pointer-events:none;position:absolute;right:0;top:0;width:100%}.dataviews-view-grid .dataviews-view-grid__fields{font-size:12px;line-height:16px;position:relative}.dataviews-view-grid .dataviews-view-grid__fields:not(:empty){padding:0 0 12px}.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field-value:not(:empty){line-height:20px;min-height:24px;padding-top:2px}.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field{align-items:center;min-height:24px}.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-name{color:#757575;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:35%}.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:65%}.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field:not(:has(.dataviews-view-grid__field-value:not(:empty))){display:none}.dataviews-view-grid .dataviews-view-grid__badge-fields:not(:empty){padding-bottom:12px}.dataviews-view-grid__field-value:empty,.dataviews-view-grid__field:empty{display:none}.dataviews-view-grid__card .dataviews-selection-checkbox{opacity:0;position:absolute;right:8px;top:-9999em;z-index:1}@media not (prefers-reduced-motion){.dataviews-view-grid__card .dataviews-selection-checkbox{transition:opacity .1s linear}}@media (hover:none){.dataviews-view-grid__card .dataviews-selection-checkbox{opacity:1;top:8px}}.dataviews-view-grid__card.is-selected .dataviews-selection-checkbox,.dataviews-view-grid__card:focus-within .dataviews-selection-checkbox,.dataviews-view-grid__card:hover .dataviews-selection-checkbox{opacity:1;top:8px}.dataviews-view-grid__card .dataviews-view-grid__media-actions{left:4px;opacity:0;position:absolute;top:4px}.dataviews-view-grid__card .dataviews-view-grid__media-actions .dataviews-all-actions-button{background-color:#fff}@media not (prefers-reduced-motion){.dataviews-view-grid__card .dataviews-view-grid__media-actions{transition:opacity .1s linear}}@media (hover:none){.dataviews-view-grid__card .dataviews-view-grid__media-actions{opacity:1;top:4px}}.dataviews-view-grid__card .dataviews-view-grid__media-actions:has(.dataviews-all-actions-button[aria-expanded=true]),.dataviews-view-grid__card:focus-within .dataviews-view-grid__media-actions,.dataviews-view-grid__card:hover .dataviews-view-grid__media-actions{opacity:1}.dataviews-view-grid__media--clickable{cursor:pointer}.dataviews-view-grid__group-header{color:#1e1e1e;container-type:inline-size;font-size:15px;font-weight:500;margin:0 0 8px;padding:0 48px}@container (max-width: 430px){.dataviews-view-grid__group-header{padding-left:24px;padding-right:24px}}div.dataviews-view-list{list-style-type:none}.dataviews-view-list{margin:0 0 auto}.dataviews-view-list div[role=article],.dataviews-view-list div[role=row]{border-top:1px solid #f0f0f0;margin:0}.dataviews-view-list div[role=article] .dataviews-view-list__item-wrapper,.dataviews-view-list div[role=row] .dataviews-view-list__item-wrapper{box-sizing:border-box;padding:16px 24px;position:relative}.dataviews-view-list div[role=article] .dataviews-view-list__item-actions,.dataviews-view-list div[role=row] .dataviews-view-list__item-actions{display:flex;flex:0 0 auto;gap:4px;width:max-content}.dataviews-view-list div[role=article] .dataviews-view-list__item-actions .components-button,.dataviews-view-list div[role=row] .dataviews-view-list__item-actions .components-button{position:relative;z-index:1}.dataviews-view-list div[role=article] .dataviews-view-list__item-actions>div,.dataviews-view-list div[role=row] .dataviews-view-list__item-actions>div{height:24px}.dataviews-view-list div[role=article] .dataviews-view-list__item-actions>:not(:last-child),.dataviews-view-list div[role=row] .dataviews-view-list__item-actions>:not(:last-child){flex:0;overflow:hidden;width:0}.dataviews-view-list div[role=article]:where(.is-selected,.is-hovered,:focus-within) .dataviews-view-list__item-actions>:not(:last-child),.dataviews-view-list div[role=row]:where(.is-selected,.is-hovered,:focus-within) .dataviews-view-list__item-actions>:not(:last-child){flex-basis:min-content;overflow:unset;width:auto}@media (hover:none){.dataviews-view-list div[role=article] .dataviews-view-list__item-actions>:not(:last-child),.dataviews-view-list div[role=row] .dataviews-view-list__item-actions>:not(:last-child){flex-basis:min-content;overflow:unset;width:auto}}.dataviews-view-list div[role=article].is-selected.is-selected,.dataviews-view-list div[role=article].is-selected.is-selected+div[role=article],.dataviews-view-list div[role=article].is-selected.is-selected+div[role=row],.dataviews-view-list div[role=row].is-selected.is-selected,.dataviews-view-list div[role=row].is-selected.is-selected+div[role=article],.dataviews-view-list div[role=row].is-selected.is-selected+div[role=row]{border-top:1px solid rgba(var(--wp-admin-theme-color--rgb),.12)}.dataviews-view-list div[role=article]:not(.is-selected) .dataviews-view-list__title-field,.dataviews-view-list div[role=row]:not(.is-selected) .dataviews-view-list__title-field{color:#1e1e1e}.dataviews-view-list div[role=article]:not(.is-selected).is-hovered,.dataviews-view-list div[role=article]:not(.is-selected):focus-within,.dataviews-view-list div[role=article]:not(.is-selected):hover,.dataviews-view-list div[role=row]:not(.is-selected).is-hovered,.dataviews-view-list div[role=row]:not(.is-selected):focus-within,.dataviews-view-list div[role=row]:not(.is-selected):hover{background-color:#f8f8f8;color:var(--wp-admin-theme-color)}.dataviews-view-list div[role=article]:not(.is-selected).is-hovered .dataviews-view-list__fields,.dataviews-view-list div[role=article]:not(.is-selected).is-hovered .dataviews-view-list__title-field,.dataviews-view-list div[role=article]:not(.is-selected):focus-within .dataviews-view-list__fields,.dataviews-view-list div[role=article]:not(.is-selected):focus-within .dataviews-view-list__title-field,.dataviews-view-list div[role=article]:not(.is-selected):hover .dataviews-view-list__fields,.dataviews-view-list div[role=article]:not(.is-selected):hover .dataviews-view-list__title-field,.dataviews-view-list div[role=row]:not(.is-selected).is-hovered .dataviews-view-list__fields,.dataviews-view-list div[role=row]:not(.is-selected).is-hovered .dataviews-view-list__title-field,.dataviews-view-list div[role=row]:not(.is-selected):focus-within .dataviews-view-list__fields,.dataviews-view-list div[role=row]:not(.is-selected):focus-within .dataviews-view-list__title-field,.dataviews-view-list div[role=row]:not(.is-selected):hover .dataviews-view-list__fields,.dataviews-view-list div[role=row]:not(.is-selected):hover .dataviews-view-list__title-field{color:var(--wp-admin-theme-color)}.dataviews-view-list div[role=article].is-selected .dataviews-view-list__item-wrapper,.dataviews-view-list div[role=article].is-selected:focus-within .dataviews-view-list__item-wrapper,.dataviews-view-list div[role=row].is-selected .dataviews-view-list__item-wrapper,.dataviews-view-list div[role=row].is-selected:focus-within .dataviews-view-list__item-wrapper{background-color:rgba(var(--wp-admin-theme-color--rgb),.04);color:#1e1e1e}.dataviews-view-list div[role=article].is-selected .dataviews-view-list__item-wrapper .dataviews-view-list__fields,.dataviews-view-list div[role=article].is-selected .dataviews-view-list__item-wrapper .dataviews-view-list__title-field,.dataviews-view-list div[role=article].is-selected:focus-within .dataviews-view-list__item-wrapper .dataviews-view-list__fields,.dataviews-view-list div[role=article].is-selected:focus-within .dataviews-view-list__item-wrapper .dataviews-view-list__title-field,.dataviews-view-list div[role=row].is-selected .dataviews-view-list__item-wrapper .dataviews-view-list__fields,.dataviews-view-list div[role=row].is-selected .dataviews-view-list__item-wrapper .dataviews-view-list__title-field,.dataviews-view-list div[role=row].is-selected:focus-within .dataviews-view-list__item-wrapper .dataviews-view-list__fields,.dataviews-view-list div[role=row].is-selected:focus-within .dataviews-view-list__item-wrapper .dataviews-view-list__title-field{color:var(--wp-admin-theme-color)}.dataviews-view-list .dataviews-view-list__item{appearance:none;background:none;border:none;cursor:pointer;inset:0;padding:0;position:absolute;scroll-margin:8px 0;z-index:1}.dataviews-view-list .dataviews-view-list__item:focus-visible{outline:none}.dataviews-view-list .dataviews-view-list__item:focus-visible:before{border-radius:2px;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);content:"";inset:var(--wp-admin-border-width-focus);outline:2px solid #0000;position:absolute}.dataviews-view-list .dataviews-view-list__title-field{flex:1;line-height:24px;min-height:24px;overflow:hidden}.dataviews-view-list .dataviews-view-list__title-field:has(a,button){z-index:1}.dataviews-view-list .dataviews-view-list__media-wrapper{background-color:#fff;border-radius:4px;flex-shrink:0;height:52px;overflow:hidden;position:relative;width:52px}.dataviews-view-list .dataviews-view-list__media-wrapper img{height:100%;object-fit:cover;width:100%}.dataviews-view-list .dataviews-view-list__media-wrapper:after{border-radius:4px;box-shadow:inset 0 0 0 1px #0000001a;content:"";height:100%;position:absolute;right:0;top:0;width:100%}.dataviews-view-list .dataviews-view-list__field-wrapper{flex-grow:1;min-height:52px}.dataviews-view-list .dataviews-view-list__fields{color:#757575;display:flex;flex-wrap:wrap;font-size:12px;gap:12px;row-gap:4px}.dataviews-view-list .dataviews-view-list__fields .dataviews-view-list__field:has(.dataviews-view-list__field-value:empty),.dataviews-view-list .dataviews-view-list__fields:empty{display:none}.dataviews-view-list .dataviews-view-list__fields .dataviews-view-list__field-value{align-items:center;display:flex;line-height:20px;min-height:24px}.dataviews-view-list+.dataviews-pagination{justify-content:space-between}.dataviews-view-list__group-header{color:#1e1e1e;font-size:15px;font-weight:500;margin:0 0 8px;padding:0 24px}.dataviews-view-table{border-collapse:collapse;border-color:inherit;color:#757575;margin-bottom:auto;position:relative;text-indent:0;width:100%}.dataviews-view-table th{color:#1e1e1e;font-size:13px;font-weight:400;text-align:right}.dataviews-view-table td,.dataviews-view-table th{padding:12px}.dataviews-view-table td.dataviews-view-table__actions-column,.dataviews-view-table th.dataviews-view-table__actions-column{text-align:left}.dataviews-view-table td.dataviews-view-table__actions-column--sticky,.dataviews-view-table th.dataviews-view-table__actions-column--sticky{background-color:#fff;left:0;position:sticky}.dataviews-view-table td.dataviews-view-table__actions-column--stuck:after,.dataviews-view-table th.dataviews-view-table__actions-column--stuck:after{background-color:#f0f0f0;bottom:0;content:"";display:block;position:absolute;right:0;top:0;width:1px}.dataviews-view-table td.dataviews-view-table__checkbox-column,.dataviews-view-table th.dataviews-view-table__checkbox-column{padding-left:0}.dataviews-view-table td.dataviews-view-table__checkbox-column .dataviews-view-table__cell-content-wrapper,.dataviews-view-table th.dataviews-view-table__checkbox-column .dataviews-view-table__cell-content-wrapper{max-width:auto;min-width:auto}.dataviews-view-table tr{border-top:1px solid #f0f0f0}.dataviews-view-table tr .dataviews-view-table-header-button{gap:4px}.dataviews-view-table tr td:first-child,.dataviews-view-table tr th:first-child{padding-right:48px}.dataviews-view-table tr td:first-child .dataviews-view-table-header-button,.dataviews-view-table tr th:first-child .dataviews-view-table-header-button{margin-right:-8px}.dataviews-view-table tr td:last-child,.dataviews-view-table tr th:last-child{padding-left:48px}.dataviews-view-table tr:last-child{border-bottom:0}.dataviews-view-table tr.is-hovered,.dataviews-view-table tr.is-hovered .dataviews-view-table__actions-column--sticky{background-color:#f8f8f8}.dataviews-view-table tr .components-checkbox-control__input.components-checkbox-control__input{opacity:0}.dataviews-view-table tr .components-checkbox-control__input.components-checkbox-control__input:checked,.dataviews-view-table tr .components-checkbox-control__input.components-checkbox-control__input:focus,.dataviews-view-table tr .components-checkbox-control__input.components-checkbox-control__input:indeterminate{opacity:1}.dataviews-view-table tr .dataviews-item-actions .components-button:not(.dataviews-all-actions-button){opacity:0}.dataviews-view-table tr.is-hovered .components-checkbox-control__input,.dataviews-view-table tr.is-hovered .dataviews-item-actions .components-button:not(.dataviews-all-actions-button),.dataviews-view-table tr:focus-within .components-checkbox-control__input,.dataviews-view-table tr:focus-within .dataviews-item-actions .components-button:not(.dataviews-all-actions-button),.dataviews-view-table tr:hover .components-checkbox-control__input,.dataviews-view-table tr:hover .dataviews-item-actions .components-button:not(.dataviews-all-actions-button){opacity:1}@media (hover:none){.dataviews-view-table tr .components-checkbox-control__input.components-checkbox-control__input,.dataviews-view-table tr .dataviews-item-actions .components-button:not(.dataviews-all-actions-button){opacity:1}}.dataviews-view-table tr.is-selected{background-color:rgba(var(--wp-admin-theme-color--rgb),.04);color:#757575}.dataviews-view-table tr.is-selected,.dataviews-view-table tr.is-selected+tr{border-top:1px solid rgba(var(--wp-admin-theme-color--rgb),.12)}.dataviews-view-table tr.is-selected:hover{background-color:rgba(var(--wp-admin-theme-color--rgb),.08)}.dataviews-view-table tr.is-selected .dataviews-view-table__actions-column--sticky{background-color:color-mix(in srgb,rgb(var(--wp-admin-theme-color--rgb)) 4%,#fff)}.dataviews-view-table tr.is-selected:hover .dataviews-view-table__actions-column--sticky{background-color:color-mix(in srgb,rgb(var(--wp-admin-theme-color--rgb)) 8%,#fff)}.dataviews-view-table thead{inset-block-start:0;position:sticky;z-index:1}.dataviews-view-table thead tr{border:0}.dataviews-view-table thead tr .components-checkbox-control__input.components-checkbox-control__input{opacity:1}.dataviews-view-table thead th{background-color:#fff;font-size:11px;font-weight:500;padding-bottom:8px;padding-right:12px;padding-top:8px;text-transform:uppercase}.dataviews-view-table thead th:has(.dataviews-view-table-header-button):not(:first-child){padding-right:4px}.dataviews-view-table tbody td{vertical-align:top}.dataviews-view-table tbody .dataviews-view-table__cell-content-wrapper{align-items:center;display:flex;min-height:32px;white-space:nowrap}.dataviews-view-table tbody .dataviews-view-table__cell-content-wrapper.dataviews-view-table__cell-align-end{justify-content:flex-end}.dataviews-view-table tbody .dataviews-view-table__cell-content-wrapper.dataviews-view-table__cell-align-center{justify-content:center}.dataviews-view-table tbody .components-v-stack>.dataviews-view-table__cell-content-wrapper:not(:first-child){min-height:0}.dataviews-view-table .dataviews-view-table-header-button{font-size:11px;font-weight:500;padding:4px 8px;text-transform:uppercase}.dataviews-view-table .dataviews-view-table-header-button:not(:hover){color:#1e1e1e}.dataviews-view-table .dataviews-view-table-header-button span{speak:none}.dataviews-view-table .dataviews-view-table-header-button span:empty{display:none}.dataviews-view-table .dataviews-view-table-header{padding-right:4px}.dataviews-view-table .dataviews-view-table__actions-column{white-space:nowrap;width:auto}.dataviews-view-table:has(tr.is-selected) .components-checkbox-control__input{opacity:1}.dataviews-view-table.has-compact-density thead th:has(.dataviews-view-table-header-button):not(:first-child){padding-right:0}.dataviews-view-table.has-compact-density td,.dataviews-view-table.has-compact-density th{padding:4px 8px}.dataviews-view-table.has-comfortable-density td,.dataviews-view-table.has-comfortable-density th{padding:16px 12px}.dataviews-view-table.has-comfortable-density td.dataviews-view-table__checkbox-column,.dataviews-view-table.has-comfortable-density th.dataviews-view-table__checkbox-column,.dataviews-view-table.has-compact-density td.dataviews-view-table__checkbox-column,.dataviews-view-table.has-compact-density th.dataviews-view-table__checkbox-column{padding-left:0}@container (max-width: 430px){.dataviews-view-table tr td:first-child,.dataviews-view-table tr th:first-child{padding-right:24px}.dataviews-view-table tr td:last-child,.dataviews-view-table tr th:last-child{padding-left:24px}}.dataviews-view-table-selection-checkbox{--checkbox-input-size:24px}@media (min-width:600px){.dataviews-view-table-selection-checkbox{--checkbox-input-size:16px}}.dataviews-column-primary__media{background-color:#fff;border-radius:4px;flex-shrink:0;max-width:60px;overflow:hidden;position:relative}.dataviews-column-primary__media img{height:100%;object-fit:cover;width:100%}.dataviews-column-primary__media:after{border-radius:4px;box-shadow:inset 0 0 0 1px #0000001a;content:"";height:100%;position:absolute;right:0;top:0;width:100%}.dataviews-view-table__cell-content-wrapper:not(.dataviews-column-primary__media),.dataviews-view-table__primary-column-content:not(.dataviews-column-primary__media){max-width:80ch;min-width:15ch}.dataviews-view-table__group-header-row .dataviews-view-table__group-header-cell{color:#1e1e1e;font-weight:500;padding:12px 48px}.dataviews-view-table col[class^=dataviews-view-table__col-]:not(.dataviews-view-table__col-primary){width:1%}.dataviews-view-picker-grid .dataviews-view-picker-grid__card{height:100%;justify-content:flex-start;position:relative}.dataviews-view-picker-grid .dataviews-view-picker-grid__card .dataviews-view-picker-grid__title-actions{padding:8px 0 4px}.dataviews-view-picker-grid .dataviews-view-picker-grid__card .dataviews-view-picker-grid__title-field{align-content:center;min-height:24px;overflow:hidden;text-align:start}.dataviews-view-picker-grid .dataviews-view-picker-grid__card .dataviews-view-picker-grid__title-field--clickable{width:fit-content}.dataviews-view-picker-grid .dataviews-view-picker-grid__card.is-selected .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field .dataviews-view-picker-grid__field-value{color:#1e1e1e}.dataviews-view-picker-grid .dataviews-view-picker-grid__card .dataviews-view-picker-grid__media:focus:after,.dataviews-view-picker-grid .dataviews-view-picker-grid__card.is-selected .dataviews-view-picker-grid__media:after{background-color:rgba(var(--wp-admin-theme-color--rgb),.08)}.dataviews-view-picker-grid .dataviews-view-picker-grid__card.is-selected .dataviews-view-picker-grid__media:after{box-shadow:inset 0 0 0 1px var(--wp-admin-theme-color)}.dataviews-view-picker-grid .dataviews-view-picker-grid__card .dataviews-view-picker-grid__media:focus:after{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.dataviews-view-picker-grid:focus-visible[aria-activedescendant]{outline:none}.dataviews-view-picker-grid:focus-visible [data-active-item=true]{outline:2px solid var(--wp-admin-theme-color)}.dataviews-view-picker-grid .dataviews-selection-checkbox{top:8px!important}.dataviews-view-picker-grid .dataviews-selection-checkbox input{pointer-events:none}.dataviews-view-picker-grid .dataviews-view-picker-grid__media{aspect-ratio:1/1;background-color:#fff;border-radius:4px;position:relative;width:100%}.dataviews-view-picker-grid .dataviews-view-picker-grid__media img{height:100%;object-fit:cover;width:100%}.dataviews-view-picker-grid .dataviews-view-picker-grid__media:after{border-radius:4px;box-shadow:inset 0 0 0 1px #0000001a;content:"";height:100%;pointer-events:none;position:absolute;right:0;top:0;width:100%}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields{font-size:12px;line-height:16px;position:relative}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields:not(:empty){padding:0 0 12px}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field-value:not(:empty){line-height:20px;min-height:24px;padding-top:2px}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field{align-items:center;min-height:24px}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field .dataviews-view-picker-grid__field-name{color:#757575;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:35%}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field .dataviews-view-picker-grid__field-value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:65%}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field:not(:has(.dataviews-view-picker-grid__field-value:not(:empty))){display:none}.dataviews-view-picker-grid .dataviews-view-picker-grid__badge-fields:not(:empty){padding-bottom:12px}.dataviews-view-picker-grid__field-value:empty,.dataviews-view-picker-grid__field:empty{display:none}.dataviews-view-picker-grid__card .dataviews-selection-checkbox{position:absolute;right:8px;top:-9999em;z-index:1}@media (hover:none){.dataviews-view-picker-grid__card .dataviews-selection-checkbox{top:8px}}.dataviews-view-picker-grid__card.is-selected .dataviews-selection-checkbox,.dataviews-view-picker-grid__card:focus-within .dataviews-selection-checkbox,.dataviews-view-picker-grid__card:hover .dataviews-selection-checkbox{top:8px}.dataviews-view-picker-grid__media--clickable{cursor:pointer}.dataviews-view-picker-grid-group__header{color:#1e1e1e;font-size:15px;font-weight:500;margin:0 0 8px;padding:0 48px}.dataviews-controls__datetime{border:none;padding:0}.dataviews-controls__relative-date-number,.dataviews-controls__relative-date-unit{flex:1 1 50%}.dataviews-controls__date input[type=date]::-webkit-calendar-picker-indicator,.dataviews-controls__date input[type=date]::-webkit-inner-spin-button{-webkit-appearance:none;display:none}.dataviews-controls__date-preset{border:1px solid #ddd}.dataviews-controls__date-preset:active{background-color:#000}.dataforms-layouts-panel__field{align-items:flex-start!important;justify-content:flex-start!important;min-height:32px;width:100%}.dataforms-layouts-panel__field-label{align-items:center;display:flex;flex-shrink:0;hyphens:auto;line-height:20px;min-height:32px;width:38%}.dataforms-layouts-panel__field-label--label-position-side{align-self:center}.dataforms-layouts-panel__field-control{align-items:center;display:flex;flex-grow:1;min-height:32px}.dataforms-layouts-panel__field-control .components-button{max-width:100%;min-height:32px;text-align:right;text-wrap:balance;text-wrap:pretty;white-space:normal}.dataforms-layouts-panel__field-control.components-button.is-link[aria-disabled=true]{text-decoration:none}.dataforms-layouts-panel__field-control .components-dropdown{max-width:100%}.dataforms-layouts-panel__field-dropdown .components-popover__content{min-width:320px;padding:16px}.dataforms-layouts-panel__dropdown-header{margin-bottom:16px}.dataforms-layouts-panel__modal-footer{margin-top:16px}.components-popover.components-dropdown__content.dataforms-layouts-panel__field-dropdown{z-index:159990}.dataforms-layouts-regular__field{align-items:flex-start!important;justify-content:flex-start!important;min-height:32px;width:100%}.dataforms-layouts-regular__field-label{align-items:center;display:flex;flex-shrink:0;hyphens:auto;line-height:20px;min-height:32px;width:38%}.dataforms-layouts-regular__field-label--label-position-side{align-self:center}.dataforms-layouts-regular__field-control{align-items:center;display:flex;flex-grow:1;min-height:32px}.dataforms-layouts-card__field-header-label{font-family:-apple-system,"system-ui",Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:15px;font-weight:500;line-height:20px}.dataforms-layouts-card__field{width:100%}.dataforms-layouts-card__field-description{color:#757575;display:block;font-size:13px;margin-bottom:16px}.dataforms-layouts-card__field-summary{display:flex;flex-direction:row;gap:16px}.dataforms-layouts-row__field-control{width:100%}.dataforms-layouts__wrapper{font-family:-apple-system,"system-ui",Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:400;line-height:20px}.edit-site-layout{color:#ccc;display:flex;flex-direction:column;height:100%}.edit-site-layout,.edit-site-layout:not(.is-full-canvas) .editor-visual-editor{background:#1e1e1e}.edit-site-layout__content{display:flex;flex-grow:1;height:100%}.edit-site-layout__sidebar-region{flex-shrink:0;width:100vw;z-index:1}@media (min-width:782px){.edit-site-layout__sidebar-region{width:300px}}.edit-site-layout.is-full-canvas .edit-site-layout__sidebar-region{height:100vh;position:fixed!important;right:0;top:0}.edit-site-layout__sidebar-region .edit-site-layout__sidebar{display:flex;flex-direction:column;height:100%}.edit-site-layout__sidebar-region .resizable-editor__drag-handle{left:0}.edit-site-layout__main{display:flex;flex-direction:column;flex-grow:1;overflow:hidden}.edit-site-layout__mobile{display:flex;flex-direction:column;position:relative;width:100%;z-index:2}.edit-site-layout__mobile .edit-site-sidebar__screen-wrapper{padding:0}.edit-site-layout__mobile .edit-site-sidebar-navigation-screen__main{padding:0 12px}.edit-site-layout__canvas-container{flex-grow:1;overflow:visible;position:relative;z-index:2}.edit-site-layout__canvas-container.is-resizing:after{bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:100}.edit-site-layout__canvas{align-items:center;bottom:0;display:flex;justify-content:center;position:absolute;right:0;top:0;width:100%}.edit-site-layout__canvas.is-right-aligned{justify-content:flex-end}.edit-site-layout__canvas .edit-site-resizable-frame__inner{color:#1e1e1e}@media (min-width:782px){.edit-site-layout__canvas{bottom:16px;top:16px;width:calc(100% - 16px)}.edit-site-layout__canvas .edit-site-resizable-frame__inner-content{box-shadow:0 1px 1px #00000008,0 1px 2px #00000005,0 3px 3px #00000005,0 4px 4px #00000003;overflow:hidden}}@media (min-width:782px) and (not (prefers-reduced-motion)){.edit-site-layout__canvas .edit-site-resizable-frame__inner-content{transition:border-radius,box-shadow .4s}}@media (min-width:782px){.edit-site-layout:not(.is-full-canvas) .edit-site-layout__canvas .edit-site-resizable-frame__inner-content{border-radius:8px}.edit-site-layout__canvas .edit-site-resizable-frame__inner-content:hover{box-shadow:0 5px 15px #00000014,0 15px 27px #00000012,0 30px 36px #0000000a,0 50px 43px #00000005}}.edit-site-layout.is-full-canvas .edit-site-layout__canvas{bottom:0;top:0;width:100%}.edit-site-layout__canvas .interface-interface-skeleton,.edit-site-layout__mobile .interface-interface-skeleton,.edit-site-template-pages-preview .interface-interface-skeleton{min-height:100%!important;position:relative!important}.edit-site-template-pages-preview{height:100%}html.canvas-mode-edit-transition::view-transition-group(toggle){animation-delay:255ms}@media (prefers-reduced-motion){::view-transition-group(*),::view-transition-new(*),::view-transition-old(*){animation:none!important}}.edit-site-layout.is-full-canvas .edit-site-layout__sidebar-region .edit-site-layout__view-mode-toggle{display:none}.edit-site-layout__view-mode-toggle.components-button{view-transition-name:toggle;align-items:center;background:#1e1e1e;border-radius:0;color:#fff;display:flex;height:64px;justify-content:center;overflow:hidden;padding:0;position:relative;width:64px}.edit-site-layout__view-mode-toggle.components-button:active,.edit-site-layout__view-mode-toggle.components-button:hover{color:#fff}.edit-site-layout__view-mode-toggle.components-button:focus,.edit-site-layout__view-mode-toggle.components-button:focus-visible{box-shadow:0 0 0 3px #1e1e1e,0 0 0 6px var(--wp-admin-theme-color);outline:4px solid #0000;outline-offset:4px}.edit-site-layout__view-mode-toggle.components-button:before{border-radius:4px;bottom:9px;box-shadow:none;content:"";display:block;left:9px;position:absolute;right:17px;top:9px}@media not (prefers-reduced-motion){.edit-site-layout__view-mode-toggle.components-button:before{transition:box-shadow .1s ease}}.edit-site-layout__view-mode-toggle.components-button .edit-site-layout__view-mode-toggle-icon{align-items:center;display:flex;height:64px;justify-content:center;width:64px}.edit-site-layout__actions{background:#fff;bottom:auto;color:#1e1e1e;left:0;position:fixed!important;right:auto;top:-9999em;width:280px;z-index:100000}.edit-site-layout__actions:focus,.edit-site-layout__actions:focus-within{bottom:0;top:auto}.edit-site-layout__actions.is-entity-save-view-open:focus,.edit-site-layout__actions.is-entity-save-view-open:focus-within{top:0}@media (min-width:782px){.edit-site-layout__actions{border-right:1px solid #ddd}}.edit-site-layout__area{box-shadow:0 1px 1px #00000008,0 1px 2px #00000005,0 3px 3px #00000005,0 4px 4px #00000003;flex-grow:1;margin:0;overflow:hidden}@media (min-width:782px){.edit-site-layout__area{border-radius:8px;margin:16px 0 16px 16px}}.edit-site .components-editor-notices__snackbar{bottom:16px;left:0;padding-left:16px;padding-right:16px;position:fixed}.edit-site-save-hub{border-top:1px solid #2f2f2f;color:#949494;flex-shrink:0;margin:0;padding:16px}.edit-site-save-hub__button{color:inherit;justify-content:center;width:100%}.edit-site-save-hub__button[aria-disabled=true]{opacity:1}.edit-site-save-hub__button[aria-disabled=true]:hover{color:inherit}.edit-site-save-hub__button:not(.is-primary).is-busy,.edit-site-save-hub__button:not(.is-primary).is-busy[aria-disabled=true]:hover{color:#1e1e1e}@media (min-width:600px){.edit-site-save-panel__modal{width:600px}}.edit-site-sidebar__content{contain:content;flex-grow:1;overflow-x:hidden;overflow-y:auto}@keyframes local--slide-from-right{0%{opacity:0;transform:translateX(-50px)}to{opacity:1;transform:none}}@keyframes local--slide-from-left{0%{opacity:0;transform:translateX(50px)}to{opacity:1;transform:none}}.edit-site-sidebar__screen-wrapper{overflow-x:auto}.edit-site-sidebar__screen-wrapper::-webkit-scrollbar{height:12px;width:12px}.edit-site-sidebar__screen-wrapper::-webkit-scrollbar-track{background-color:initial}.edit-site-sidebar__screen-wrapper::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:initial;border:3px solid #0000;border-radius:8px}.edit-site-sidebar__screen-wrapper:focus-within::-webkit-scrollbar-thumb,.edit-site-sidebar__screen-wrapper:focus::-webkit-scrollbar-thumb,.edit-site-sidebar__screen-wrapper:hover::-webkit-scrollbar-thumb{background-color:#757575}.edit-site-sidebar__screen-wrapper{scrollbar-color:#0000 #0000;scrollbar-gutter:stable both-edges;scrollbar-width:thin}.edit-site-sidebar__screen-wrapper:focus,.edit-site-sidebar__screen-wrapper:focus-within,.edit-site-sidebar__screen-wrapper:hover{scrollbar-color:#757575 #0000}.edit-site-sidebar__screen-wrapper{will-change:transform}@media (hover:none){.edit-site-sidebar__screen-wrapper{scrollbar-color:#757575 #0000}}.edit-site-sidebar__screen-wrapper{animation-duration:.14s;animation-timing-function:ease-in-out;display:flex;flex-direction:column;height:100%;max-height:100%;padding:0 12px;scrollbar-gutter:stable;will-change:transform,opacity}@media (prefers-reduced-motion:reduce){.edit-site-sidebar__screen-wrapper{animation-duration:0s}}.edit-site-sidebar__screen-wrapper.slide-from-left{animation-name:local--slide-from-left}.edit-site-sidebar__screen-wrapper.slide-from-right{animation-name:local--slide-from-right}.edit-site-site-hub{align-items:center;display:flex;gap:8px;height:64px;justify-content:space-between;margin-left:12px}.edit-site-site-hub__actions{flex-shrink:0}.edit-site-site-hub__view-mode-toggle-container{flex-shrink:0;height:64px;width:64px}.edit-site-site-hub__view-mode-toggle-container.has-transparent-background .edit-site-layout__view-mode-toggle-icon{background:#0000}.edit-site-site-hub__title .components-button{color:#e0e0e0;display:block;flex-grow:1;font-size:15px;font-weight:500;margin-right:-4px;overflow:hidden;padding-left:16px;position:relative;text-decoration:none;text-overflow:ellipsis;white-space:nowrap}.edit-site-site-hub__title .components-button:active,.edit-site-site-hub__title .components-button:focus,.edit-site-site-hub__title .components-button:hover{color:#e0e0e0}.edit-site-site-hub__title .components-button:focus{box-shadow:none;outline:none}.edit-site-site-hub__title .components-button:focus-visible{box-shadow:0 0 0 var(--wp-admin-border-width-focus) #1e1e1e,0 0 0 calc(var(--wp-admin-border-width-focus)*2) var(--wp-admin-theme-color);outline:2px solid #0000;outline-offset:2px}.edit-site-site-hub__title .components-button:after{content:"↗";font-weight:400;left:0;opacity:0;position:absolute}@media not (prefers-reduced-motion){.edit-site-site-hub__title .components-button:after{transition:opacity .1s linear}}.edit-site-site-hub__title .components-button:active:after,.edit-site-site-hub__title .components-button:focus:after,.edit-site-site-hub__title .components-button:hover:after{opacity:1}.edit-site-site-hub_toggle-command-center{color:#e0e0e0}.edit-site-site-hub_toggle-command-center:active svg,.edit-site-site-hub_toggle-command-center:hover svg{fill:#f0f0f0}.edit-site-site-icon__icon{fill:currentColor;height:100%;width:100%}.edit-site-layout.is-full-canvas .edit-site-site-icon__icon{padding:12px}.edit-site-site-icon__image{aspect-ratio:1/1;background:#333;height:100%;object-fit:cover;width:100%}.edit-site-layout.is-full-canvas .edit-site-site-icon__image{border-radius:0}.edit-site-editor__view-mode-toggle button:focus{position:relative}.edit-site-editor__view-mode-toggle button:focus:before{bottom:0;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color),inset 0 0 0 calc(1px + var(--wp-admin-border-width-focus)) #fff;content:"";display:block;left:0;position:absolute;right:0;top:0;z-index:1}.edit-site-editor-canvas-container{background-color:var(--wp-editor-canvas-background);height:100%}.edit-site-editor-canvas-container iframe{display:block;height:100%;width:100%}.edit-site-layout.is-full-canvas .edit-site-editor-canvas-container{padding:24px 24px 0}.edit-site-editor-canvas-container__section{background:#fff;border-radius:8px;bottom:0;left:0;overflow:hidden;position:absolute;right:0;top:0}@media not (prefers-reduced-motion){.edit-site-editor-canvas-container__section{transition:all .3s}}.edit-site-editor-canvas-container__close-button{background:#fff;left:8px;position:absolute;top:8px;z-index:2}.edit-site-post-list__featured-image{height:100%;object-fit:cover;width:100%}.edit-site-post-list__featured-image-wrapper{border-radius:4px;height:100%;width:100%}.edit-site-post-list__featured-image-wrapper.is-layout-table .edit-site-post-list__featured-image-button,.edit-site-post-list__featured-image-wrapper.is-layout-table:not(:has(.edit-site-post-list__featured-image-button)){background-color:#f0f0f0;border-radius:4px;display:block;flex-grow:0!important;height:32px;overflow:hidden;position:relative;width:32px}.edit-site-post-list__featured-image-wrapper.is-layout-table .edit-site-post-list__featured-image-button:after,.edit-site-post-list__featured-image-wrapper.is-layout-table:not(:has(.edit-site-post-list__featured-image-button)):after{border-radius:4px;box-shadow:inset 0 0 0 1px #0000001a;content:"";height:100%;position:absolute;right:0;top:0;width:100%}.edit-site-post-list__featured-image-button{background-color:unset;border:none;border-radius:4px;box-shadow:none;box-sizing:border-box;cursor:pointer;height:100%;overflow:hidden;padding:0;width:100%}.edit-site-post-list__featured-image-button:focus-visible{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid #0000}.dataviews-view-grid__card.is-selected .edit-site-post-list__featured-image-button:after{background:rgba(var(--wp-admin-theme-color--rgb),.04);box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.edit-site-post-list__status-icon{height:24px;width:24px}.edit-site-post-list__status-icon svg{fill:currentColor;margin-right:-4px}.edit-site-resizable-frame__inner{position:relative}body:has(.edit-site-resizable-frame__inner.is-resizing){cursor:col-resize;user-select:none;-webkit-user-select:none}.edit-site-resizable-frame__inner.is-resizing:before{content:"";inset:0;position:absolute;z-index:1}.edit-site-resizable-frame__inner-content{inset:0;position:absolute;z-index:0}.edit-site-resizable-frame__handle{align-items:center;background-color:#75757566;border:0;border-radius:4px;cursor:col-resize;display:flex;height:64px;justify-content:flex-end;padding:0;position:absolute;top:calc(50% - 32px);width:4px;z-index:100}.edit-site-resizable-frame__handle:before{content:"";height:100%;position:absolute;right:100%;width:32px}.edit-site-resizable-frame__handle:after{content:"";height:100%;left:100%;position:absolute;width:32px}.edit-site-resizable-frame__handle:focus-visible{outline:2px solid #0000}.edit-site-resizable-frame__handle.is-resizing,.edit-site-resizable-frame__handle:focus,.edit-site-resizable-frame__handle:hover{background-color:var(--wp-admin-theme-color)}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,114.7661290323,160.5;--wp-admin-theme-color-darker-20:#006187;--wp-admin-theme-color-darker-20--rgb:0,96.5322580645,135;--wp-admin-border-width-focus:2px}@media (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.0384615385,68.7307692308,230.4615384615;--wp-admin-theme-color-darker-20:#183ad6;--wp-admin-theme-color-darker-20--rgb:23.6923076923,58.1538461538,214.3076923077;--wp-admin-border-width-focus:2px}@media (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.3723404255,81.914893617,108.1276595745;--wp-admin-theme-color-darker-20:#064054;--wp-admin-theme-color-darker-20--rgb:5.7446808511,63.829787234,84.2553191489;--wp-admin-border-width-focus:2px}@media (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.2692307692,51.4461538462,48.2307692308;--wp-admin-theme-color-darker-20:#2b2724;--wp-admin-theme-color-darker-20--rgb:42.5384615385,38.8923076923,36.4615384615;--wp-admin-border-width-focus:2px}@media (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:69.8430232558,53.6598837209,92.8401162791;--wp-admin-theme-color-darker-20:#3a2c4d;--wp-admin-theme-color-darker-20--rgb:57.6860465116,44.3197674419,76.6802325581;--wp-admin-border-width-focus:2px}@media (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.4908256881,56.1788990826,45.0091743119;--wp-admin-theme-color-darker-20:#d02c21;--wp-admin-theme-color-darker-20--rgb:207.8348623853,44.2201834862,33.1651376147;--wp-admin-border-width-focus:2px}@media (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.0873362445,110.192139738,116.4126637555;--wp-admin-theme-color-darker-20:#4c6066;--wp-admin-theme-color-darker-20--rgb:76.1746724891,96.384279476,101.8253275109;--wp-admin-border-width-focus:2px}@media (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:216.8782608696,116.1847826087,37.6217391304;--wp-admin-theme-color-darker-20:#c36922;--wp-admin-theme-color-darker-20--rgb:195.147826087,104.5434782609,33.852173913;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-sunrise{--wp-admin-border-width-focus:1.5px}}#adminmenumain,#wpadminbar{display:none}#wpcontent{margin-right:0}body.js #wpbody{padding-top:0}body{background:#fff}body #wpcontent{padding-right:0}body #wpbody-content{padding-bottom:0}body #wpbody-content>div:not(#gutenberg-posts-dashboard):not(#screen-meta),body #wpfooter{display:none}body .a11y-speak-region{right:-1px;top:-1px}body ul#adminmenu a.wp-has-current-submenu:after,body ul#adminmenu>li.current>a.current:after{border-left-color:#fff}body .media-frame select.attachment-filters:last-of-type{max-width:100%;width:auto}#gutenberg-posts-dashboard{box-sizing:border-box}#gutenberg-posts-dashboard *,#gutenberg-posts-dashboard :after,#gutenberg-posts-dashboard :before{box-sizing:inherit}#gutenberg-posts-dashboard{height:100vh}@media (min-width:600px){#gutenberg-posts-dashboard{bottom:0;left:0;min-height:100vh;position:fixed;right:0;top:0}}.no-js #gutenberg-posts-dashboard{min-height:0;position:static}#gutenberg-posts-dashboard .components-editor-notices__snackbar{bottom:16px;left:0;padding-left:16px;padding-right:16px;position:fixed}
\ No newline at end of file
+@charset "UTF-8";:root{--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:var(--wp-block-synced-color);--wp-editor-canvas-background:#ddd;--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,160.5;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.admin-ui-page{background-color:#fff;color:#2f2f2f;container:admin-ui-page/inline-size;display:flex;flex-flow:column;height:100%;position:relative;z-index:1}@media not (prefers-reduced-motion){.admin-ui-page{transition:width .2s ease-out}}.admin-ui-page__header{background:#fff;border-bottom:1px solid #f0f0f0;padding:16px 48px;position:sticky;top:0}@container (max-width: 430px){.admin-ui-page__header{padding:16px 24px}}.admin-ui-page__header-subtitle{color:#757575;font-family:-apple-system,"system-ui",Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:400;line-height:20px;margin:0;padding-block-end:8px}.admin-ui-page__content{display:flex;flex-direction:column;flex-grow:1;overflow:auto}.admin-ui-page__content.has-padding{padding:16px 20px}@container (max-width: 430px){.admin-ui-page__content.has-padding{padding:16px 24px}}.show-icon-labels .admin-ui-page__header-actions .components-button.has-icon{padding:0 8px;width:auto}.show-icon-labels .admin-ui-page__header-actions .components-button.has-icon svg{display:none}.show-icon-labels .admin-ui-page__header-actions .components-button.has-icon:after{content:attr(aria-label);font-size:12px}.dataviews-picker-wrapper,.dataviews-wrapper{box-sizing:border-box;container:dataviews-wrapper/inline-size;display:flex;flex-direction:column;font-size:13px;height:100%;line-height:1.4;overflow:auto;scroll-padding-bottom:64px}.dataviews-filters__container,.dataviews__view-actions{box-sizing:border-box;flex-shrink:0;padding:16px 48px;position:sticky;right:0}@media not (prefers-reduced-motion){.dataviews-filters__container,.dataviews__view-actions{transition:padding .1s ease-out}}.dataviews-loading,.dataviews-no-results{align-items:center;display:flex;flex-grow:1;justify-content:center;padding:0 48px}@media not (prefers-reduced-motion){.dataviews-loading,.dataviews-no-results{transition:padding .1s ease-out}}.dataviews-loading-more{text-align:center}@container (max-width: 430px){.dataviews-filters__container,.dataviews__view-actions{padding:12px 24px}.dataviews-loading,.dataviews-no-results{padding-left:24px;padding-right:24px}}.dataviews-title-field{font-size:13px;font-weight:500;width:100%}.dataviews-title-field,.dataviews-title-field a{color:#2f2f2f;text-overflow:ellipsis;white-space:nowrap}.dataviews-title-field a{display:block;flex-grow:0;overflow:hidden;text-decoration:none}.dataviews-title-field a:hover{color:var(--wp-admin-theme-color)}.dataviews-title-field a:focus{border-radius:2px;box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color,#007cba);color:var(--wp-admin-theme-color--rgb)}.dataviews-title-field button.components-button.is-link{color:#1e1e1e;display:block;font-weight:inherit;overflow:hidden;text-decoration:none;text-overflow:ellipsis;white-space:nowrap;width:100%}.dataviews-title-field button.components-button.is-link:hover{color:var(--wp-admin-theme-color)}.dataviews-title-field--clickable{color:#2f2f2f;cursor:pointer}.dataviews-title-field--clickable:hover{color:var(--wp-admin-theme-color)}.dataviews-title-field--clickable:focus{border-radius:2px;box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color,#007cba);color:var(--wp-admin-theme-color--rgb)}.components-card__body:has(>.dataviews-picker-wrapper),.components-card__body:has(>.dataviews-wrapper){overflow:hidden;padding:8px 0 0}.components-card__body:has(>.dataviews-picker-wrapper) .dataviews-filters__container,.components-card__body:has(>.dataviews-picker-wrapper) .dataviews-footer,.components-card__body:has(>.dataviews-picker-wrapper) .dataviews-loading,.components-card__body:has(>.dataviews-picker-wrapper) .dataviews-no-results,.components-card__body:has(>.dataviews-picker-wrapper) .dataviews-view-grid,.components-card__body:has(>.dataviews-picker-wrapper) .dataviews__view-actions,.components-card__body:has(>.dataviews-wrapper) .dataviews-filters__container,.components-card__body:has(>.dataviews-wrapper) .dataviews-footer,.components-card__body:has(>.dataviews-wrapper) .dataviews-loading,.components-card__body:has(>.dataviews-wrapper) .dataviews-no-results,.components-card__body:has(>.dataviews-wrapper) .dataviews-view-grid,.components-card__body:has(>.dataviews-wrapper) .dataviews__view-actions{padding-inline:24px}.components-card__body:has(>.dataviews-picker-wrapper) .dataviews-view-table tr td:first-child,.components-card__body:has(>.dataviews-picker-wrapper) .dataviews-view-table tr th:first-child,.components-card__body:has(>.dataviews-wrapper) .dataviews-view-table tr td:first-child,.components-card__body:has(>.dataviews-wrapper) .dataviews-view-table tr th:first-child{padding-inline-start:24px}.components-card__body:has(>.dataviews-picker-wrapper) .dataviews-view-table tr td:last-child,.components-card__body:has(>.dataviews-picker-wrapper) .dataviews-view-table tr th:last-child,.components-card__body:has(>.dataviews-wrapper) .dataviews-view-table tr td:last-child,.components-card__body:has(>.dataviews-wrapper) .dataviews-view-table tr th:last-child{padding-inline-end:24px}.dataviews-bulk-actions-footer__item-count{color:#1e1e1e;font-size:11px;font-weight:500;text-transform:uppercase}.dataviews-bulk-actions-footer__container{margin-left:auto;min-height:32px}.dataviews-filters__button{position:relative}.dataviews-filters__container{padding-top:0}.dataviews-filters__reset-button.dataviews-filters__reset-button[aria-disabled=true],.dataviews-filters__reset-button.dataviews-filters__reset-button[aria-disabled=true]:hover{opacity:0}.dataviews-filters__reset-button.dataviews-filters__reset-button[aria-disabled=true]:focus{opacity:1}.dataviews-filters__summary-popover{font-size:13px;line-height:1.4}.dataviews-filters__summary-popover .components-popover__content{border-radius:4px;max-width:250px;min-width:230px;width:100%}.dataviews-filters__summary-popover.components-dropdown__content .components-popover__content{padding:0}.dataviews-filters__summary-operators-container{padding:8px 16px}.dataviews-filters__summary-operators-container:has(+.dataviews-filters__search-widget-listbox),.dataviews-filters__summary-operators-container:has(+.dataviews-filters__search-widget-no-elements),.dataviews-filters__summary-operators-container:has(+.dataviews-filters__user-input-widget){border-bottom:1px solid #e0e0e0}.dataviews-filters__summary-operators-container:empty{display:none}.dataviews-filters__summary-operators-container .dataviews-filters__summary-operators-filter-name{color:#757575;flex-shrink:0;max-width:calc(100% - 55px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dataviews-filters__summary-operators-container .dataviews-filters__summary-operators-filter-select{overflow:hidden;white-space:nowrap;width:100%}.dataviews-filters__summary-chip-container{position:relative;white-space:pre-wrap}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip{align-items:center;background:#f0f0f0;border:1px solid #0000;border-radius:16px;box-sizing:border-box;color:#2f2f2f;cursor:pointer;display:flex;min-height:32px;padding:4px 12px;position:relative}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.is-not-clickable{cursor:default}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.has-reset{padding-inline-end:28px}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip:focus-visible,.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip:hover:not(.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.is-not-clickable),.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip[aria-expanded=true]{background:#e0e0e0;color:#1e1e1e}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.has-values{background:rgba(var(--wp-admin-theme-color--rgb),.04);color:var(--wp-admin-theme-color)}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.has-values:hover,.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.has-values[aria-expanded=true]{background:rgba(var(--wp-admin-theme-color--rgb),.12)}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip:focus-visible{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:none}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip .dataviews-filters-__summary-filter-text-name{font-weight:500}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove{align-items:center;background:#0000;border:0;border-radius:50%;cursor:pointer;display:flex;height:24px;justify-content:center;left:4px;padding:0;position:absolute;top:50%;transform:translateY(-50%);width:24px}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove svg{fill:#757575}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove:focus,.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove:hover{background:#e0e0e0}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove:focus svg,.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove:hover svg{fill:#1e1e1e}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove.has-values svg{fill:var(--wp-admin-theme-color)}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove.has-values:hover{background:rgba(var(--wp-admin-theme-color--rgb),.08)}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove:focus-visible{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:none}.dataviews-filters__search-widget-filter-combobox-list{border-top:1px solid #e0e0e0;max-height:184px;overflow:auto;padding:4px}.dataviews-filters__search-widget-filter-combobox-list .dataviews-filters__search-widget-filter-combobox-item-value [data-user-value]{font-weight:600}.dataviews-filters__search-widget-listbox{overflow:auto;padding:4px}.dataviews-filters__search-widget-listitem{align-items:center;border-radius:2px;box-sizing:border-box;cursor:default;display:flex;font-family:-apple-system,"system-ui",Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:400;gap:8px;line-height:20px;min-height:32px;padding:4px 12px}.dataviews-filters__search-widget-listitem:last-child{margin-block-end:0}.dataviews-filters__search-widget-listitem:focus,.dataviews-filters__search-widget-listitem:hover,.dataviews-filters__search-widget-listitem[data-active-item]{background-color:var(--wp-admin-theme-color);color:#fff}.dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-description,.dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-description,.dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-description{color:#fff}.dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-single-selection,.dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-single-selection,.dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-single-selection{background:#fff;border-color:var(--wp-admin-theme-color-darker-20,#183ad6)}.dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-single-selection.is-selected,.dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-single-selection.is-selected,.dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-single-selection.is-selected{background:var(--wp-admin-theme-color-darker-20,#183ad6);border-color:var(--wp-admin-theme-color-darker-20,#183ad6)}.dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-multi-selection,.dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-multi-selection,.dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-multi-selection{border-color:var(--wp-admin-theme-color-darker-20,#183ad6)}.dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-multi-selection.is-selected,.dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-multi-selection.is-selected,.dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-multi-selection.is-selected{background:var(--wp-admin-theme-color-darker-20,#183ad6);border-color:var(--wp-admin-theme-color-darker-20,#183ad6)}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-description{color:#757575;display:block;font-size:12px;line-height:16px;overflow:hidden;text-overflow:ellipsis}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection{border:1px solid #1e1e1e;border-radius:50%;height:24px;margin-left:12px;max-width:24px;min-width:24px;position:relative;transition:none;width:24px}@media not (prefers-reduced-motion){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection{transition:box-shadow .1s linear}}@media (min-width:600px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection{height:16px;max-width:16px;min-width:16px;width:16px}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection:checked:before{background-color:#fff;border:4px solid #fff;box-sizing:inherit;height:12px;margin:0;position:absolute;right:50%;top:50%;transform:translate(50%,-50%);width:12px}@media (min-width:600px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection:checked:before{height:8px;width:8px}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color);outline:2px solid #0000}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection:checked{background:var(--wp-admin-theme-color);border:none}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection{margin:0;padding:0}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection.is-selected{background:var(--wp-admin-theme-color,#3858e9);border-color:var(--wp-admin-theme-color,#3858e9)}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection.is-selected:before{background-color:#fff;border:4px solid #fff;border-radius:50%;box-sizing:inherit;content:"";height:12px;margin:0;position:absolute;right:50%;top:50%;transform:translate(50%,-50%);width:12px}@media (min-width:600px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection.is-selected:before{height:8px;width:8px}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection{--checkbox-size:24px;border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 #0000;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:normal;margin-left:12px;padding:6px 8px;transition:none}@media not (prefers-reduced-motion){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection{transition:box-shadow .1s linear}}@media (min-width:600px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection{font-size:13px;line-height:normal}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color)}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection::-webkit-input-placeholder{color:#1e1e1e9e}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection::-moz-placeholder{color:#1e1e1e9e}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:-ms-input-placeholder{color:#1e1e1e9e}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color);outline:2px solid #0000}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:checked{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:checked::-ms-check{opacity:0}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:checked:before,.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-checked=mixed]:before{color:#fff;margin:-3px -5px}@media (min-width:782px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:checked:before,.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-checked=mixed]:before{margin:-4px -5px 0 0}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-checked=mixed]{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-checked=mixed]:before{content:"\f460";display:inline-block;float:right;font:normal 30px/1 dashicons;vertical-align:middle;width:16px;speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (min-width:782px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-checked=mixed]:before{float:none;font-size:21px}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:disabled,.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-disabled=true]{background:#f0f0f0;border-color:#ddd;cursor:default;opacity:1}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection{background:#fff;color:#1e1e1e;height:var(--checkbox-size);margin:0;padding:0;position:relative;width:var(--checkbox-size)}@media (min-width:600px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection{--checkbox-size:16px}}@media not (prefers-reduced-motion){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection{transition:border-color .1s ease-in-out}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection.is-selected{background:var(--wp-admin-theme-color,#3858e9);border-color:var(--wp-admin-theme-color,#3858e9)}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection.is-selected svg{--checkmark-size:var(--checkbox-size);fill:#fff;height:var(--checkmark-size);position:absolute;right:50%;top:50%;transform:translate(50%,-50%);width:var(--checkmark-size)}@media (min-width:600px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection.is-selected svg{--checkmark-size:calc(var(--checkbox-size) + 4px)}}.dataviews-filters__search-widget-filter-combobox__wrapper{padding:8px;position:relative}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input{border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 #0000;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;line-height:normal;padding:6px 8px}@media not (prefers-reduced-motion){.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input{transition:box-shadow .1s linear}}@media (min-width:600px){.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input{font-size:13px;line-height:normal}}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid #0000}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-webkit-input-placeholder{color:#1e1e1e9e}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-moz-placeholder{color:#1e1e1e9e}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input:-ms-input-placeholder{color:#1e1e1e9e}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input{display:block;font-size:16px;height:32px;margin-left:0;margin-right:0;padding:0 32px 0 8px;width:100%}@media (min-width:600px){.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input{font-size:13px}}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input:focus{background:#fff;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::placeholder{color:#757575}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-webkit-search-cancel-button,.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-webkit-search-decoration,.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-webkit-search-results-button,.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-webkit-search-results-decoration{-webkit-appearance:none}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__icon{align-items:center;bottom:0;display:flex;inset-inline-start:12px;justify-content:center;position:absolute;top:0;width:24px}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__icon:dir(ltr){transform:scaleX(-1)}.dataviews-filters__container-visibility-toggle{flex-shrink:0;position:relative}.dataviews-filters-toggle__count{background:var(--wp-admin-theme-color,#3858e9);border-radius:8px;box-sizing:border-box;color:#fff;font-size:11px;height:16px;left:0;line-height:16px;min-width:16px;outline:var(--wp-admin-border-width-focus) solid #fff;padding:0 4px;position:absolute;text-align:center;top:0;transform:translate(-50%,-50%)}.dataviews-search{width:fit-content}.dataviews-filters__user-input-widget{padding:16px}.dataviews-filters__user-input-widget .components-input-control__prefix{padding-right:8px}.dataviews-filters__search-widget-no-elements{align-items:center;display:flex;justify-content:center;padding:16px}.dataviews-footer{background-color:#fff;border-top:1px solid #f0f0f0;bottom:0;flex-shrink:0;padding:12px 48px;position:sticky;right:0}@media not (prefers-reduced-motion){.dataviews-footer{transition:padding .1s ease-out}}.dataviews-footer{z-index:2}@container (max-width: 430px){.dataviews-footer{padding:12px 24px}}@container (max-width: 560px){.dataviews-footer{flex-direction:column!important}.dataviews-footer .dataviews-bulk-actions-footer__container{width:100%}.dataviews-footer .dataviews-bulk-actions-footer__item-count{flex-grow:1}.dataviews-footer .dataviews-pagination{justify-content:space-between;width:100%}}.dataviews-pagination__page-select{font-size:11px;font-weight:500;text-transform:uppercase}@media (min-width:600px){.dataviews-pagination__page-select .components-select-control__input{font-size:11px!important;font-weight:500}}.dataviews-action-modal{z-index:1000001}.dataviews-picker-footer__bulk-selection{align-self:flex-start;height:32px}.dataviews-picker-footer__actions{align-self:flex-end}.dataviews-selection-checkbox{--checkbox-input-size:24px}@media (min-width:600px){.dataviews-selection-checkbox{--checkbox-input-size:16px}}.dataviews-selection-checkbox{flex-shrink:0;line-height:0}.dataviews-selection-checkbox .components-checkbox-control__input-container{margin:0}.dataviews-view-config{container-type:inline-size;font-size:13px;line-height:1.4;width:320px}.dataviews-config__popover.is-expanded .dataviews-config__popover-content-wrapper{height:100%;overflow-y:scroll}.dataviews-config__popover.is-expanded .dataviews-config__popover-content-wrapper .dataviews-view-config{width:auto}.dataviews-view-config__sort-direction .components-toggle-group-control-option-base{text-transform:uppercase}.dataviews-settings-section__title.dataviews-settings-section__title{font-size:15px;line-height:24px}.dataviews-settings-section__sidebar{grid-column:span 4}.dataviews-settings-section__content,.dataviews-settings-section__content>*{grid-column:span 8}.dataviews-settings-section__content .is-divided-in-two{display:contents}.dataviews-settings-section__content .is-divided-in-two>*{grid-column:span 4}.dataviews-settings-section:has(.dataviews-settings-section__content:empty){display:none}@container (max-width: 500px){.dataviews-settings-section.dataviews-settings-section{grid-template-columns:repeat(2,1fr)}.dataviews-settings-section.dataviews-settings-section .dataviews-settings-section__content,.dataviews-settings-section.dataviews-settings-section .dataviews-settings-section__sidebar{grid-column:span 2}}.dataviews-field-control__field{height:32px}.dataviews-field-control__actions{position:absolute;top:-9999em}.dataviews-field-control__actions.dataviews-field-control__actions{gap:4px}.dataviews-field-control__field.is-interacting .dataviews-field-control__actions,.dataviews-field-control__field:focus-within .dataviews-field-control__actions,.dataviews-field-control__field:hover .dataviews-field-control__actions{position:unset;top:unset}.dataviews-field-control__icon{display:flex;width:24px}.dataviews-field-control__label-sub-label-container{flex-grow:1}.dataviews-field-control__label{display:block}.dataviews-field-control__sub-label{color:#757575;font-size:11px;font-style:normal;margin-bottom:0;margin-top:8px}.dataviews-view-grid-items{container-type:inline-size;display:grid;gap:32px;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));grid-template-rows:max-content;margin-bottom:auto;padding:0 48px 24px}@container (max-width: 430px){.dataviews-view-grid-items{padding-left:24px;padding-right:24px}}@media not (prefers-reduced-motion){.dataviews-view-grid-items{transition:padding .1s ease-out}}.dataviews-view-grid .dataviews-view-grid__card{height:100%;justify-content:flex-start;position:relative}.dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__title-actions{padding:8px 0 4px}.dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__title-field{align-content:center;min-height:24px;overflow:hidden;text-align:start}.dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__title-field--clickable{width:fit-content}.dataviews-view-grid .dataviews-view-grid__card.is-selected .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-value{color:#1e1e1e}.dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__media:focus:after,.dataviews-view-grid .dataviews-view-grid__card.is-selected .dataviews-view-grid__media:after{background-color:rgba(var(--wp-admin-theme-color--rgb),.08)}.dataviews-view-grid .dataviews-view-grid__card.is-selected .dataviews-view-grid__media:after{box-shadow:inset 0 0 0 1px var(--wp-admin-theme-color)}.dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__media:focus:after{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.dataviews-view-grid .dataviews-view-grid__media{aspect-ratio:1/1;background-color:#fff;border-radius:4px;overflow:hidden;position:relative;width:100%}.dataviews-view-grid .dataviews-view-grid__media img{height:100%;object-fit:cover;width:100%}.dataviews-view-grid .dataviews-view-grid__media:after{border-radius:4px;box-shadow:inset 0 0 0 1px #0000001a;content:"";height:100%;pointer-events:none;position:absolute;right:0;top:0;width:100%}.dataviews-view-grid .dataviews-view-grid__fields{font-size:12px;line-height:16px;position:relative}.dataviews-view-grid .dataviews-view-grid__fields:not(:empty){padding:0 0 12px}.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field-value:not(:empty){line-height:20px;min-height:24px;padding-top:2px}.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field{align-items:center;min-height:24px}.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-name{color:#757575;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:35%}.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:65%}.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field:not(:has(.dataviews-view-grid__field-value:not(:empty))){display:none}.dataviews-view-grid .dataviews-view-grid__badge-fields:not(:empty){padding-bottom:12px}.dataviews-view-grid__field-value:empty,.dataviews-view-grid__field:empty{display:none}.dataviews-view-grid__card .dataviews-selection-checkbox{opacity:0;position:absolute;right:8px;top:-9999em;z-index:1}@media not (prefers-reduced-motion){.dataviews-view-grid__card .dataviews-selection-checkbox{transition:opacity .1s linear}}@media (hover:none){.dataviews-view-grid__card .dataviews-selection-checkbox{opacity:1;top:8px}}.dataviews-view-grid__card.is-selected .dataviews-selection-checkbox,.dataviews-view-grid__card:focus-within .dataviews-selection-checkbox,.dataviews-view-grid__card:hover .dataviews-selection-checkbox{opacity:1;top:8px}.dataviews-view-grid__card .dataviews-view-grid__media-actions{left:4px;opacity:0;position:absolute;top:4px}.dataviews-view-grid__card .dataviews-view-grid__media-actions .dataviews-all-actions-button{background-color:#fff}@media not (prefers-reduced-motion){.dataviews-view-grid__card .dataviews-view-grid__media-actions{transition:opacity .1s linear}}@media (hover:none){.dataviews-view-grid__card .dataviews-view-grid__media-actions{opacity:1;top:4px}}.dataviews-view-grid__card .dataviews-view-grid__media-actions:has(.dataviews-all-actions-button[aria-expanded=true]),.dataviews-view-grid__card:focus-within .dataviews-view-grid__media-actions,.dataviews-view-grid__card:hover .dataviews-view-grid__media-actions{opacity:1}.dataviews-view-grid__media--clickable{cursor:pointer}.dataviews-view-grid__group-header{color:#1e1e1e;container-type:inline-size;font-size:15px;font-weight:500;margin:0 0 8px;padding:0 48px}@container (max-width: 430px){.dataviews-view-grid__group-header{padding-left:24px;padding-right:24px}}div.dataviews-view-list{list-style-type:none}.dataviews-view-list{margin:0 0 auto}.dataviews-view-list div[role=article],.dataviews-view-list div[role=row]{border-top:1px solid #f0f0f0;margin:0}.dataviews-view-list div[role=article] .dataviews-view-list__item-wrapper,.dataviews-view-list div[role=row] .dataviews-view-list__item-wrapper{box-sizing:border-box;padding:16px 24px;position:relative}.dataviews-view-list div[role=article] .dataviews-view-list__item-actions,.dataviews-view-list div[role=row] .dataviews-view-list__item-actions{display:flex;flex:0 0 auto;gap:4px;white-space:nowrap;width:max-content}.dataviews-view-list div[role=article] .dataviews-view-list__item-actions .components-button,.dataviews-view-list div[role=row] .dataviews-view-list__item-actions .components-button{position:relative;z-index:1}.dataviews-view-list div[role=article] .dataviews-view-list__item-actions>div,.dataviews-view-list div[role=row] .dataviews-view-list__item-actions>div{height:24px}.dataviews-view-list div[role=article] .dataviews-view-list__item-actions>:not(:last-child),.dataviews-view-list div[role=row] .dataviews-view-list__item-actions>:not(:last-child){flex:0;overflow:hidden;width:0}.dataviews-view-list div[role=article]:where(.is-selected,.is-hovered,:focus-within) .dataviews-view-list__item-actions>:not(:last-child),.dataviews-view-list div[role=row]:where(.is-selected,.is-hovered,:focus-within) .dataviews-view-list__item-actions>:not(:last-child){flex-basis:min-content;overflow:unset;width:auto}@media (hover:none){.dataviews-view-list div[role=article] .dataviews-view-list__item-actions>:not(:last-child),.dataviews-view-list div[role=row] .dataviews-view-list__item-actions>:not(:last-child){flex-basis:min-content;overflow:unset;width:auto}}.dataviews-view-list div[role=article].is-selected.is-selected,.dataviews-view-list div[role=article].is-selected.is-selected+div[role=article],.dataviews-view-list div[role=article].is-selected.is-selected+div[role=row],.dataviews-view-list div[role=row].is-selected.is-selected,.dataviews-view-list div[role=row].is-selected.is-selected+div[role=article],.dataviews-view-list div[role=row].is-selected.is-selected+div[role=row]{border-top:1px solid rgba(var(--wp-admin-theme-color--rgb),.12)}.dataviews-view-list div[role=article]:not(.is-selected) .dataviews-view-list__title-field,.dataviews-view-list div[role=row]:not(.is-selected) .dataviews-view-list__title-field{color:#1e1e1e}.dataviews-view-list div[role=article]:not(.is-selected).is-hovered,.dataviews-view-list div[role=article]:not(.is-selected):focus-within,.dataviews-view-list div[role=article]:not(.is-selected):hover,.dataviews-view-list div[role=row]:not(.is-selected).is-hovered,.dataviews-view-list div[role=row]:not(.is-selected):focus-within,.dataviews-view-list div[role=row]:not(.is-selected):hover{background-color:#f8f8f8;color:var(--wp-admin-theme-color)}.dataviews-view-list div[role=article]:not(.is-selected).is-hovered .dataviews-view-list__fields,.dataviews-view-list div[role=article]:not(.is-selected).is-hovered .dataviews-view-list__title-field,.dataviews-view-list div[role=article]:not(.is-selected):focus-within .dataviews-view-list__fields,.dataviews-view-list div[role=article]:not(.is-selected):focus-within .dataviews-view-list__title-field,.dataviews-view-list div[role=article]:not(.is-selected):hover .dataviews-view-list__fields,.dataviews-view-list div[role=article]:not(.is-selected):hover .dataviews-view-list__title-field,.dataviews-view-list div[role=row]:not(.is-selected).is-hovered .dataviews-view-list__fields,.dataviews-view-list div[role=row]:not(.is-selected).is-hovered .dataviews-view-list__title-field,.dataviews-view-list div[role=row]:not(.is-selected):focus-within .dataviews-view-list__fields,.dataviews-view-list div[role=row]:not(.is-selected):focus-within .dataviews-view-list__title-field,.dataviews-view-list div[role=row]:not(.is-selected):hover .dataviews-view-list__fields,.dataviews-view-list div[role=row]:not(.is-selected):hover .dataviews-view-list__title-field{color:var(--wp-admin-theme-color)}.dataviews-view-list div[role=article].is-selected .dataviews-view-list__item-wrapper,.dataviews-view-list div[role=article].is-selected:focus-within .dataviews-view-list__item-wrapper,.dataviews-view-list div[role=row].is-selected .dataviews-view-list__item-wrapper,.dataviews-view-list div[role=row].is-selected:focus-within .dataviews-view-list__item-wrapper{background-color:rgba(var(--wp-admin-theme-color--rgb),.04);color:#1e1e1e}.dataviews-view-list div[role=article].is-selected .dataviews-view-list__item-wrapper .dataviews-view-list__fields,.dataviews-view-list div[role=article].is-selected .dataviews-view-list__item-wrapper .dataviews-view-list__title-field,.dataviews-view-list div[role=article].is-selected:focus-within .dataviews-view-list__item-wrapper .dataviews-view-list__fields,.dataviews-view-list div[role=article].is-selected:focus-within .dataviews-view-list__item-wrapper .dataviews-view-list__title-field,.dataviews-view-list div[role=row].is-selected .dataviews-view-list__item-wrapper .dataviews-view-list__fields,.dataviews-view-list div[role=row].is-selected .dataviews-view-list__item-wrapper .dataviews-view-list__title-field,.dataviews-view-list div[role=row].is-selected:focus-within .dataviews-view-list__item-wrapper .dataviews-view-list__fields,.dataviews-view-list div[role=row].is-selected:focus-within .dataviews-view-list__item-wrapper .dataviews-view-list__title-field{color:var(--wp-admin-theme-color)}.dataviews-view-list .dataviews-view-list__item{appearance:none;background:none;border:none;cursor:pointer;inset:0;padding:0;position:absolute;scroll-margin:8px 0;z-index:1}.dataviews-view-list .dataviews-view-list__item:focus-visible{outline:none}.dataviews-view-list .dataviews-view-list__item:focus-visible:before{border-radius:2px;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);content:"";inset:var(--wp-admin-border-width-focus);outline:2px solid #0000;position:absolute}.dataviews-view-list .dataviews-view-list__title-field{flex:1;line-height:24px;min-height:24px;overflow:hidden}.dataviews-view-list .dataviews-view-list__title-field:has(a,button){z-index:1}.dataviews-view-list .dataviews-view-list__media-wrapper{background-color:#fff;border-radius:4px;flex-shrink:0;height:52px;overflow:hidden;position:relative;width:52px}.dataviews-view-list .dataviews-view-list__media-wrapper img{height:100%;object-fit:cover;width:100%}.dataviews-view-list .dataviews-view-list__media-wrapper:after{border-radius:4px;box-shadow:inset 0 0 0 1px #0000001a;content:"";height:100%;position:absolute;right:0;top:0;width:100%}.dataviews-view-list .dataviews-view-list__field-wrapper{flex-grow:1;min-height:52px}.dataviews-view-list .dataviews-view-list__fields{color:#757575;display:flex;flex-wrap:wrap;font-size:12px;gap:12px;row-gap:4px}.dataviews-view-list .dataviews-view-list__fields .dataviews-view-list__field:has(.dataviews-view-list__field-value:empty),.dataviews-view-list .dataviews-view-list__fields:empty{display:none}.dataviews-view-list .dataviews-view-list__fields .dataviews-view-list__field-value{align-items:center;display:flex;line-height:20px;min-height:24px}.dataviews-view-list+.dataviews-pagination{justify-content:space-between}.dataviews-view-list__group-header{color:#1e1e1e;font-size:15px;font-weight:500;margin:0 0 8px;padding:0 24px}.dataviews-view-table{border-collapse:collapse;border-color:inherit;color:#757575;margin-bottom:auto;position:relative;text-indent:0;width:100%}.dataviews-view-table th{color:#1e1e1e;font-size:13px;font-weight:400;text-align:right}.dataviews-view-table td,.dataviews-view-table th{padding:12px}.dataviews-view-table td.dataviews-view-table__actions-column,.dataviews-view-table th.dataviews-view-table__actions-column{text-align:left}.dataviews-view-table td.dataviews-view-table__actions-column--sticky,.dataviews-view-table th.dataviews-view-table__actions-column--sticky{background-color:#fff;left:0;position:sticky}.dataviews-view-table td.dataviews-view-table__actions-column--stuck:after,.dataviews-view-table th.dataviews-view-table__actions-column--stuck:after{background-color:#f0f0f0;bottom:0;content:"";display:block;position:absolute;right:0;top:0;width:1px}.dataviews-view-table td.dataviews-view-table__checkbox-column,.dataviews-view-table th.dataviews-view-table__checkbox-column{padding-left:0}.dataviews-view-table td.dataviews-view-table__checkbox-column .dataviews-view-table__cell-content-wrapper,.dataviews-view-table th.dataviews-view-table__checkbox-column .dataviews-view-table__cell-content-wrapper{max-width:auto;min-width:auto}.dataviews-view-table tr{border-top:1px solid #f0f0f0}.dataviews-view-table tr .dataviews-view-table-header-button{gap:4px}.dataviews-view-table tr td:first-child,.dataviews-view-table tr th:first-child{padding-right:48px}.dataviews-view-table tr td:first-child .dataviews-view-table-header-button,.dataviews-view-table tr th:first-child .dataviews-view-table-header-button{margin-right:-8px}.dataviews-view-table tr td:last-child,.dataviews-view-table tr th:last-child{padding-left:48px}.dataviews-view-table tr:last-child{border-bottom:0}.dataviews-view-table tr.is-hovered,.dataviews-view-table tr.is-hovered .dataviews-view-table__actions-column--sticky{background-color:#f8f8f8}.dataviews-view-table tr .components-checkbox-control__input.components-checkbox-control__input{opacity:0}.dataviews-view-table tr .components-checkbox-control__input.components-checkbox-control__input:checked,.dataviews-view-table tr .components-checkbox-control__input.components-checkbox-control__input:focus,.dataviews-view-table tr .components-checkbox-control__input.components-checkbox-control__input:indeterminate{opacity:1}.dataviews-view-table tr .dataviews-item-actions .components-button:not(.dataviews-all-actions-button){opacity:0}.dataviews-view-table tr.is-hovered .components-checkbox-control__input,.dataviews-view-table tr.is-hovered .dataviews-item-actions .components-button:not(.dataviews-all-actions-button),.dataviews-view-table tr:focus-within .components-checkbox-control__input,.dataviews-view-table tr:focus-within .dataviews-item-actions .components-button:not(.dataviews-all-actions-button),.dataviews-view-table tr:hover .components-checkbox-control__input,.dataviews-view-table tr:hover .dataviews-item-actions .components-button:not(.dataviews-all-actions-button){opacity:1}@media (hover:none){.dataviews-view-table tr .components-checkbox-control__input.components-checkbox-control__input,.dataviews-view-table tr .dataviews-item-actions .components-button:not(.dataviews-all-actions-button){opacity:1}}.dataviews-view-table tr.is-selected{background-color:rgba(var(--wp-admin-theme-color--rgb),.04);color:#757575}.dataviews-view-table tr.is-selected,.dataviews-view-table tr.is-selected+tr{border-top:1px solid rgba(var(--wp-admin-theme-color--rgb),.12)}.dataviews-view-table tr.is-selected:hover{background-color:rgba(var(--wp-admin-theme-color--rgb),.08)}.dataviews-view-table tr.is-selected .dataviews-view-table__actions-column--sticky{background-color:color-mix(in srgb,rgb(var(--wp-admin-theme-color--rgb)) 4%,#fff)}.dataviews-view-table tr.is-selected:hover .dataviews-view-table__actions-column--sticky{background-color:color-mix(in srgb,rgb(var(--wp-admin-theme-color--rgb)) 8%,#fff)}.dataviews-view-table thead{inset-block-start:0;position:sticky;z-index:1}.dataviews-view-table thead tr{border:0}.dataviews-view-table thead tr .components-checkbox-control__input.components-checkbox-control__input{opacity:1}.dataviews-view-table thead th{background-color:#fff;font-size:11px;font-weight:500;padding-bottom:8px;padding-right:12px;padding-top:8px;text-transform:uppercase}.dataviews-view-table thead th:has(.dataviews-view-table-header-button):not(:first-child){padding-right:4px}.dataviews-view-table tbody td{vertical-align:top}.dataviews-view-table tbody .dataviews-view-table__cell-content-wrapper{align-items:center;display:flex;min-height:32px;white-space:nowrap}.dataviews-view-table tbody .dataviews-view-table__cell-content-wrapper.dataviews-view-table__cell-align-end{justify-content:flex-end}.dataviews-view-table tbody .dataviews-view-table__cell-content-wrapper.dataviews-view-table__cell-align-center{justify-content:center}.dataviews-view-table tbody .components-v-stack>.dataviews-view-table__cell-content-wrapper:not(:first-child){min-height:0}.dataviews-view-table .dataviews-view-table-header-button{font-size:11px;font-weight:500;padding:4px 8px;text-transform:uppercase}.dataviews-view-table .dataviews-view-table-header-button:not(:hover){color:#1e1e1e}.dataviews-view-table .dataviews-view-table-header-button span{speak:none}.dataviews-view-table .dataviews-view-table-header-button span:empty{display:none}.dataviews-view-table .dataviews-view-table-header{padding-right:4px}.dataviews-view-table .dataviews-view-table__actions-column{white-space:nowrap;width:auto}.dataviews-view-table:has(tr.is-selected) .components-checkbox-control__input{opacity:1}.dataviews-view-table.has-compact-density thead th:has(.dataviews-view-table-header-button):not(:first-child){padding-right:0}.dataviews-view-table.has-compact-density td,.dataviews-view-table.has-compact-density th{padding:4px 8px}.dataviews-view-table.has-comfortable-density td,.dataviews-view-table.has-comfortable-density th{padding:16px 12px}.dataviews-view-table.has-comfortable-density td.dataviews-view-table__checkbox-column,.dataviews-view-table.has-comfortable-density th.dataviews-view-table__checkbox-column,.dataviews-view-table.has-compact-density td.dataviews-view-table__checkbox-column,.dataviews-view-table.has-compact-density th.dataviews-view-table__checkbox-column{padding-left:0}@container (max-width: 430px){.dataviews-view-table tr td:first-child,.dataviews-view-table tr th:first-child{padding-right:24px}.dataviews-view-table tr td:last-child,.dataviews-view-table tr th:last-child{padding-left:24px}}.dataviews-view-table-selection-checkbox{--checkbox-input-size:24px}@media (min-width:600px){.dataviews-view-table-selection-checkbox{--checkbox-input-size:16px}}.dataviews-column-primary__media{background-color:#fff;border-radius:4px;flex-shrink:0;max-width:60px;overflow:hidden;position:relative}.dataviews-column-primary__media img{height:100%;object-fit:cover;width:100%}.dataviews-column-primary__media:after{border-radius:4px;box-shadow:inset 0 0 0 1px #0000001a;content:"";height:100%;position:absolute;right:0;top:0;width:100%}.dataviews-view-table__cell-content-wrapper:not(.dataviews-column-primary__media),.dataviews-view-table__primary-column-content:not(.dataviews-column-primary__media){max-width:80ch;min-width:15ch}.dataviews-view-table__group-header-row .dataviews-view-table__group-header-cell{color:#1e1e1e;font-weight:500;padding:12px 48px}.dataviews-view-table col[class^=dataviews-view-table__col-]:not(.dataviews-view-table__col-primary){width:1%}.dataviews-view-picker-grid .dataviews-view-picker-grid__card{height:100%;justify-content:flex-start;position:relative}.dataviews-view-picker-grid .dataviews-view-picker-grid__card .dataviews-view-picker-grid__title-actions{padding:8px 0 4px}.dataviews-view-picker-grid .dataviews-view-picker-grid__card .dataviews-view-picker-grid__title-field{align-content:center;min-height:24px;overflow:hidden;text-align:start}.dataviews-view-picker-grid .dataviews-view-picker-grid__card .dataviews-view-picker-grid__title-field--clickable{width:fit-content}.dataviews-view-picker-grid .dataviews-view-picker-grid__card.is-selected .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field .dataviews-view-picker-grid__field-value{color:#1e1e1e}.dataviews-view-picker-grid .dataviews-view-picker-grid__card .dataviews-view-picker-grid__media:focus:after,.dataviews-view-picker-grid .dataviews-view-picker-grid__card.is-selected .dataviews-view-picker-grid__media:after{background-color:rgba(var(--wp-admin-theme-color--rgb),.08)}.dataviews-view-picker-grid .dataviews-view-picker-grid__card.is-selected .dataviews-view-picker-grid__media:after{box-shadow:inset 0 0 0 1px var(--wp-admin-theme-color)}.dataviews-view-picker-grid .dataviews-view-picker-grid__card .dataviews-view-picker-grid__media:focus:after{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.dataviews-view-picker-grid:focus-visible[aria-activedescendant]{outline:none}.dataviews-view-picker-grid:focus-visible [data-active-item=true]{outline:2px solid var(--wp-admin-theme-color)}.dataviews-view-picker-grid .dataviews-selection-checkbox{top:8px!important}.dataviews-view-picker-grid .dataviews-selection-checkbox input{pointer-events:none}.dataviews-view-picker-grid .dataviews-view-picker-grid__media{aspect-ratio:1/1;background-color:#fff;border-radius:4px;position:relative;width:100%}.dataviews-view-picker-grid .dataviews-view-picker-grid__media img{height:100%;object-fit:cover;width:100%}.dataviews-view-picker-grid .dataviews-view-picker-grid__media:after{border-radius:4px;box-shadow:inset 0 0 0 1px #0000001a;content:"";height:100%;pointer-events:none;position:absolute;right:0;top:0;width:100%}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields{font-size:12px;line-height:16px;position:relative}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields:not(:empty){padding:0 0 12px}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field-value:not(:empty){line-height:20px;min-height:24px;padding-top:2px}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field{align-items:center;min-height:24px}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field .dataviews-view-picker-grid__field-name{color:#757575;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:35%}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field .dataviews-view-picker-grid__field-value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:65%}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field:not(:has(.dataviews-view-picker-grid__field-value:not(:empty))){display:none}.dataviews-view-picker-grid .dataviews-view-picker-grid__badge-fields:not(:empty){padding-bottom:12px}.dataviews-view-picker-grid__field-value:empty,.dataviews-view-picker-grid__field:empty{display:none}.dataviews-view-picker-grid__card .dataviews-selection-checkbox{position:absolute;right:8px;top:-9999em;z-index:1}@media (hover:none){.dataviews-view-picker-grid__card .dataviews-selection-checkbox{top:8px}}.dataviews-view-picker-grid__card.is-selected .dataviews-selection-checkbox,.dataviews-view-picker-grid__card:focus-within .dataviews-selection-checkbox,.dataviews-view-picker-grid__card:hover .dataviews-selection-checkbox{top:8px}.dataviews-view-picker-grid__media--clickable{cursor:pointer}.dataviews-view-picker-grid-group__header{color:#1e1e1e;font-size:15px;font-weight:500;margin:0 0 8px;padding:0 48px}.dataviews-controls__datetime{border:none;padding:0}.dataviews-controls__relative-date-number,.dataviews-controls__relative-date-unit{flex:1 1 50%}.dataviews-controls__date input[type=date]::-webkit-calendar-picker-indicator,.dataviews-controls__date input[type=date]::-webkit-inner-spin-button{-webkit-appearance:none;display:none}.dataviews-controls__date-preset{border:1px solid #ddd}.dataviews-controls__date-preset:active{background-color:#000}.dataforms-layouts-panel__field{align-items:flex-start!important;justify-content:flex-start!important;min-height:32px;width:100%}.dataforms-layouts-panel__field-label{align-items:center;display:flex;flex-shrink:0;hyphens:auto;line-height:20px;min-height:32px;width:38%}.dataforms-layouts-panel__field-label--label-position-side{align-self:center}.dataforms-layouts-panel__field-control{align-items:center;display:flex;flex-grow:1;min-height:32px}.dataforms-layouts-panel__field-control .components-button{max-width:100%;min-height:32px;text-align:right;text-wrap:balance;text-wrap:pretty;white-space:normal}.dataforms-layouts-panel__field-control.components-button.is-link[aria-disabled=true]{text-decoration:none}.dataforms-layouts-panel__field-control .components-dropdown{max-width:100%}.dataforms-layouts-panel__field-dropdown .components-popover__content{min-width:320px;padding:16px}.dataforms-layouts-panel__dropdown-header{margin-bottom:16px}.dataforms-layouts-panel__modal-footer{margin-top:16px}.components-popover.components-dropdown__content.dataforms-layouts-panel__field-dropdown{z-index:159990}.dataforms-layouts-regular__field{align-items:flex-start!important;justify-content:flex-start!important;min-height:32px;width:100%}.dataforms-layouts-regular__field-label{align-items:center;display:flex;flex-shrink:0;hyphens:auto;line-height:20px;min-height:32px;width:38%}.dataforms-layouts-regular__field-label--label-position-side{align-self:center}.dataforms-layouts-regular__field-control{align-items:center;display:flex;flex-grow:1;min-height:32px}.dataforms-layouts-card__field-header-label{font-family:-apple-system,"system-ui",Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:15px;font-weight:500;line-height:20px}.dataforms-layouts-card__field{width:100%}.dataforms-layouts-card__field-description{color:#757575;display:block;font-size:13px;margin-bottom:16px}.dataforms-layouts-card__field-summary{display:flex;flex-direction:row;gap:16px}.dataforms-layouts-row__field-control{width:100%}.dataforms-layouts__wrapper{font-family:-apple-system,"system-ui",Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:400;line-height:20px}.edit-site-layout{color:#ccc;display:flex;flex-direction:column;height:100%}.edit-site-layout,.edit-site-layout:not(.is-full-canvas) .editor-visual-editor{background:#1e1e1e}.edit-site-layout__content{display:flex;flex-grow:1;height:100%}.edit-site-layout__sidebar-region{flex-shrink:0;width:100vw;z-index:1}@media (min-width:782px){.edit-site-layout__sidebar-region{width:300px}}.edit-site-layout.is-full-canvas .edit-site-layout__sidebar-region{height:100vh;position:fixed!important;right:0;top:0}.edit-site-layout__sidebar-region .edit-site-layout__sidebar{display:flex;flex-direction:column;height:100%}.edit-site-layout__sidebar-region .resizable-editor__drag-handle{left:0}.edit-site-layout__main{display:flex;flex-direction:column;flex-grow:1;overflow:hidden}.edit-site-layout__mobile{display:flex;flex-direction:column;position:relative;width:100%;z-index:2}.edit-site-layout__mobile .edit-site-sidebar__screen-wrapper{padding:0}.edit-site-layout__mobile .edit-site-sidebar-navigation-screen__main{padding:0 12px}.edit-site-layout__canvas-container{flex-grow:1;overflow:visible;position:relative;z-index:2}.edit-site-layout__canvas-container.is-resizing:after{bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:100}.edit-site-layout__canvas{align-items:center;bottom:0;display:flex;justify-content:center;position:absolute;right:0;top:0;width:100%}.edit-site-layout__canvas.is-right-aligned{justify-content:flex-end}.edit-site-layout__canvas .edit-site-resizable-frame__inner{color:#1e1e1e}@media (min-width:782px){.edit-site-layout__canvas{bottom:16px;top:16px;width:calc(100% - 16px)}.edit-site-layout__canvas .edit-site-resizable-frame__inner-content{box-shadow:0 1px 1px #00000008,0 1px 2px #00000005,0 3px 3px #00000005,0 4px 4px #00000003;overflow:hidden}}@media (min-width:782px) and (not (prefers-reduced-motion)){.edit-site-layout__canvas .edit-site-resizable-frame__inner-content{transition:border-radius,box-shadow .4s}}@media (min-width:782px){.edit-site-layout:not(.is-full-canvas) .edit-site-layout__canvas .edit-site-resizable-frame__inner-content{border-radius:8px}.edit-site-layout__canvas .edit-site-resizable-frame__inner-content:hover{box-shadow:0 5px 15px #00000014,0 15px 27px #00000012,0 30px 36px #0000000a,0 50px 43px #00000005}}.edit-site-layout.is-full-canvas .edit-site-layout__canvas{bottom:0;top:0;width:100%}.edit-site-layout__canvas .interface-interface-skeleton,.edit-site-layout__mobile .interface-interface-skeleton,.edit-site-template-pages-preview .interface-interface-skeleton{min-height:100%!important;position:relative!important}.edit-site-template-pages-preview{height:100%}html.canvas-mode-edit-transition::view-transition-group(toggle){animation-delay:255ms}@media (prefers-reduced-motion){::view-transition-group(*),::view-transition-new(*),::view-transition-old(*){animation:none!important}}.edit-site-layout.is-full-canvas .edit-site-layout__sidebar-region .edit-site-layout__view-mode-toggle{display:none}.edit-site-layout__view-mode-toggle.components-button{view-transition-name:toggle;align-items:center;background:#1e1e1e;border-radius:0;color:#fff;display:flex;height:64px;justify-content:center;overflow:hidden;padding:0;position:relative;width:64px}.edit-site-layout__view-mode-toggle.components-button:active,.edit-site-layout__view-mode-toggle.components-button:hover{color:#fff}.edit-site-layout__view-mode-toggle.components-button:focus,.edit-site-layout__view-mode-toggle.components-button:focus-visible{box-shadow:0 0 0 3px #1e1e1e,0 0 0 6px var(--wp-admin-theme-color);outline:4px solid #0000;outline-offset:4px}.edit-site-layout__view-mode-toggle.components-button:before{border-radius:4px;bottom:9px;box-shadow:none;content:"";display:block;left:9px;position:absolute;right:17px;top:9px}@media not (prefers-reduced-motion){.edit-site-layout__view-mode-toggle.components-button:before{transition:box-shadow .1s ease}}.edit-site-layout__view-mode-toggle.components-button .edit-site-layout__view-mode-toggle-icon{align-items:center;display:flex;height:64px;justify-content:center;width:64px}.edit-site-layout__actions{background:#fff;bottom:auto;color:#1e1e1e;left:0;position:fixed!important;right:auto;top:-9999em;width:280px;z-index:100000}.edit-site-layout__actions:focus,.edit-site-layout__actions:focus-within{bottom:0;top:auto}.edit-site-layout__actions.is-entity-save-view-open:focus,.edit-site-layout__actions.is-entity-save-view-open:focus-within{top:0}@media (min-width:782px){.edit-site-layout__actions{border-right:1px solid #ddd}}.edit-site-layout__area{box-shadow:0 1px 1px #00000008,0 1px 2px #00000005,0 3px 3px #00000005,0 4px 4px #00000003;flex-grow:1;margin:0;overflow:hidden}@media (min-width:782px){.edit-site-layout__area{border-radius:8px;margin:16px 0 16px 16px}}.edit-site .components-editor-notices__snackbar{bottom:16px;left:0;padding-left:16px;padding-right:16px;position:fixed}.edit-site-save-hub{border-top:1px solid #2f2f2f;color:#949494;flex-shrink:0;margin:0;padding:16px}.edit-site-save-hub__button{color:inherit;justify-content:center;width:100%}.edit-site-save-hub__button[aria-disabled=true]{opacity:1}.edit-site-save-hub__button[aria-disabled=true]:hover{color:inherit}.edit-site-save-hub__button:not(.is-primary).is-busy,.edit-site-save-hub__button:not(.is-primary).is-busy[aria-disabled=true]:hover{color:#1e1e1e}@media (min-width:600px){.edit-site-save-panel__modal{width:600px}}.edit-site-sidebar__content{contain:content;flex-grow:1;overflow-x:hidden;overflow-y:auto}@keyframes local--slide-from-right{0%{opacity:0;transform:translateX(-50px)}to{opacity:1;transform:none}}@keyframes local--slide-from-left{0%{opacity:0;transform:translateX(50px)}to{opacity:1;transform:none}}.edit-site-sidebar__screen-wrapper{overflow-x:auto}.edit-site-sidebar__screen-wrapper::-webkit-scrollbar{height:12px;width:12px}.edit-site-sidebar__screen-wrapper::-webkit-scrollbar-track{background-color:initial}.edit-site-sidebar__screen-wrapper::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:initial;border:3px solid #0000;border-radius:8px}.edit-site-sidebar__screen-wrapper:focus-within::-webkit-scrollbar-thumb,.edit-site-sidebar__screen-wrapper:focus::-webkit-scrollbar-thumb,.edit-site-sidebar__screen-wrapper:hover::-webkit-scrollbar-thumb{background-color:#757575}.edit-site-sidebar__screen-wrapper{scrollbar-color:#0000 #0000;scrollbar-gutter:stable both-edges;scrollbar-width:thin}.edit-site-sidebar__screen-wrapper:focus,.edit-site-sidebar__screen-wrapper:focus-within,.edit-site-sidebar__screen-wrapper:hover{scrollbar-color:#757575 #0000}.edit-site-sidebar__screen-wrapper{will-change:transform}@media (hover:none){.edit-site-sidebar__screen-wrapper{scrollbar-color:#757575 #0000}}.edit-site-sidebar__screen-wrapper{animation-duration:.14s;animation-timing-function:ease-in-out;display:flex;flex-direction:column;height:100%;max-height:100%;padding:0 12px;scrollbar-gutter:stable;will-change:transform,opacity}@media (prefers-reduced-motion:reduce){.edit-site-sidebar__screen-wrapper{animation-duration:0s}}.edit-site-sidebar__screen-wrapper.slide-from-left{animation-name:local--slide-from-left}.edit-site-sidebar__screen-wrapper.slide-from-right{animation-name:local--slide-from-right}.edit-site-site-hub{align-items:center;display:flex;gap:8px;height:64px;justify-content:space-between;margin-left:12px}.edit-site-site-hub__actions{flex-shrink:0}.edit-site-site-hub__view-mode-toggle-container{flex-shrink:0;height:64px;width:64px}.edit-site-site-hub__view-mode-toggle-container.has-transparent-background .edit-site-layout__view-mode-toggle-icon{background:#0000}.edit-site-site-hub__title .components-button{color:#e0e0e0;display:block;flex-grow:1;font-size:15px;font-weight:500;margin-right:-4px;overflow:hidden;padding-left:16px;position:relative;text-decoration:none;text-overflow:ellipsis;white-space:nowrap}.edit-site-site-hub__title .components-button:active,.edit-site-site-hub__title .components-button:focus,.edit-site-site-hub__title .components-button:hover{color:#e0e0e0}.edit-site-site-hub__title .components-button:focus{box-shadow:none;outline:none}.edit-site-site-hub__title .components-button:focus-visible{box-shadow:0 0 0 var(--wp-admin-border-width-focus) #1e1e1e,0 0 0 calc(var(--wp-admin-border-width-focus)*2) var(--wp-admin-theme-color);outline:2px solid #0000;outline-offset:2px}.edit-site-site-hub__title .components-button:after{content:"↗";font-weight:400;left:0;opacity:0;position:absolute}@media not (prefers-reduced-motion){.edit-site-site-hub__title .components-button:after{transition:opacity .1s linear}}.edit-site-site-hub__title .components-button:active:after,.edit-site-site-hub__title .components-button:focus:after,.edit-site-site-hub__title .components-button:hover:after{opacity:1}.edit-site-site-hub_toggle-command-center{color:#e0e0e0}.edit-site-site-hub_toggle-command-center:active svg,.edit-site-site-hub_toggle-command-center:hover svg{fill:#f0f0f0}.edit-site-site-icon__icon{fill:currentColor;height:100%;width:100%}.edit-site-layout.is-full-canvas .edit-site-site-icon__icon{padding:12px}.edit-site-site-icon__image{aspect-ratio:1/1;background:#333;height:100%;object-fit:cover;width:100%}.edit-site-layout.is-full-canvas .edit-site-site-icon__image{border-radius:0}.edit-site-editor__view-mode-toggle button:focus{position:relative}.edit-site-editor__view-mode-toggle button:focus:before{bottom:0;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color),inset 0 0 0 calc(1px + var(--wp-admin-border-width-focus)) #fff;content:"";display:block;left:0;position:absolute;right:0;top:0;z-index:1}.edit-site-editor-canvas-container{background-color:var(--wp-editor-canvas-background);height:100%}.edit-site-editor-canvas-container iframe{display:block;height:100%;width:100%}.edit-site-layout.is-full-canvas .edit-site-editor-canvas-container{padding:24px 24px 0}.edit-site-editor-canvas-container__section{background:#fff;border-radius:8px;bottom:0;left:0;overflow:hidden;position:absolute;right:0;top:0}@media not (prefers-reduced-motion){.edit-site-editor-canvas-container__section{transition:all .3s}}.edit-site-editor-canvas-container__close-button{background:#fff;left:8px;position:absolute;top:8px;z-index:2}.edit-site-post-list__featured-image{height:100%;object-fit:cover;width:100%}.edit-site-post-list__featured-image-wrapper{border-radius:4px;height:100%;width:100%}.edit-site-post-list__featured-image-wrapper.is-layout-table .edit-site-post-list__featured-image-button,.edit-site-post-list__featured-image-wrapper.is-layout-table:not(:has(.edit-site-post-list__featured-image-button)){background-color:#f0f0f0;border-radius:4px;display:block;flex-grow:0!important;height:32px;overflow:hidden;position:relative;width:32px}.edit-site-post-list__featured-image-wrapper.is-layout-table .edit-site-post-list__featured-image-button:after,.edit-site-post-list__featured-image-wrapper.is-layout-table:not(:has(.edit-site-post-list__featured-image-button)):after{border-radius:4px;box-shadow:inset 0 0 0 1px #0000001a;content:"";height:100%;position:absolute;right:0;top:0;width:100%}.edit-site-post-list__featured-image-button{background-color:unset;border:none;border-radius:4px;box-shadow:none;box-sizing:border-box;cursor:pointer;height:100%;overflow:hidden;padding:0;width:100%}.edit-site-post-list__featured-image-button:focus-visible{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid #0000}.dataviews-view-grid__card.is-selected .edit-site-post-list__featured-image-button:after{background:rgba(var(--wp-admin-theme-color--rgb),.04);box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.edit-site-post-list__status-icon{height:24px;width:24px}.edit-site-post-list__status-icon svg{fill:currentColor;margin-right:-4px}.edit-site-resizable-frame__inner{position:relative}body:has(.edit-site-resizable-frame__inner.is-resizing){cursor:col-resize;user-select:none;-webkit-user-select:none}.edit-site-resizable-frame__inner.is-resizing:before{content:"";inset:0;position:absolute;z-index:1}.edit-site-resizable-frame__inner-content{inset:0;position:absolute;z-index:0}.edit-site-resizable-frame__handle{align-items:center;background-color:#75757566;border:0;border-radius:4px;cursor:col-resize;display:flex;height:64px;justify-content:flex-end;padding:0;position:absolute;top:calc(50% - 32px);width:4px;z-index:100}.edit-site-resizable-frame__handle:before{content:"";height:100%;position:absolute;right:100%;width:32px}.edit-site-resizable-frame__handle:after{content:"";height:100%;left:100%;position:absolute;width:32px}.edit-site-resizable-frame__handle:focus-visible{outline:2px solid #0000}.edit-site-resizable-frame__handle.is-resizing,.edit-site-resizable-frame__handle:focus,.edit-site-resizable-frame__handle:hover{background-color:var(--wp-admin-theme-color)}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,114.7661290323,160.5;--wp-admin-theme-color-darker-20:#006187;--wp-admin-theme-color-darker-20--rgb:0,96.5322580645,135;--wp-admin-border-width-focus:2px}@media (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.0384615385,68.7307692308,230.4615384615;--wp-admin-theme-color-darker-20:#183ad6;--wp-admin-theme-color-darker-20--rgb:23.6923076923,58.1538461538,214.3076923077;--wp-admin-border-width-focus:2px}@media (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.3723404255,81.914893617,108.1276595745;--wp-admin-theme-color-darker-20:#064054;--wp-admin-theme-color-darker-20--rgb:5.7446808511,63.829787234,84.2553191489;--wp-admin-border-width-focus:2px}@media (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.2692307692,51.4461538462,48.2307692308;--wp-admin-theme-color-darker-20:#2b2724;--wp-admin-theme-color-darker-20--rgb:42.5384615385,38.8923076923,36.4615384615;--wp-admin-border-width-focus:2px}@media (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:69.8430232558,53.6598837209,92.8401162791;--wp-admin-theme-color-darker-20:#3a2c4d;--wp-admin-theme-color-darker-20--rgb:57.6860465116,44.3197674419,76.6802325581;--wp-admin-border-width-focus:2px}@media (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.4908256881,56.1788990826,45.0091743119;--wp-admin-theme-color-darker-20:#d02c21;--wp-admin-theme-color-darker-20--rgb:207.8348623853,44.2201834862,33.1651376147;--wp-admin-border-width-focus:2px}@media (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.0873362445,110.192139738,116.4126637555;--wp-admin-theme-color-darker-20:#4c6066;--wp-admin-theme-color-darker-20--rgb:76.1746724891,96.384279476,101.8253275109;--wp-admin-border-width-focus:2px}@media (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:216.8782608696,116.1847826087,37.6217391304;--wp-admin-theme-color-darker-20:#c36922;--wp-admin-theme-color-darker-20--rgb:195.147826087,104.5434782609,33.852173913;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-sunrise{--wp-admin-border-width-focus:1.5px}}#adminmenumain,#wpadminbar{display:none}#wpcontent{margin-right:0}body.js #wpbody{padding-top:0}body{background:#fff}body #wpcontent{padding-right:0}body #wpbody-content{padding-bottom:0}body #wpbody-content>div:not(#gutenberg-posts-dashboard):not(#screen-meta),body #wpfooter{display:none}body .a11y-speak-region{right:-1px;top:-1px}body ul#adminmenu a.wp-has-current-submenu:after,body ul#adminmenu>li.current>a.current:after{border-left-color:#fff}body .media-frame select.attachment-filters:last-of-type{max-width:100%;width:auto}#gutenberg-posts-dashboard{box-sizing:border-box}#gutenberg-posts-dashboard *,#gutenberg-posts-dashboard :after,#gutenberg-posts-dashboard :before{box-sizing:inherit}#gutenberg-posts-dashboard{height:100vh}@media (min-width:600px){#gutenberg-posts-dashboard{bottom:0;left:0;min-height:100vh;position:fixed;right:0;top:0}}.no-js #gutenberg-posts-dashboard{min-height:0;position:static}#gutenberg-posts-dashboard .components-editor-notices__snackbar{bottom:16px;left:0;padding-left:16px;padding-right:16px;position:fixed}
\ No newline at end of file
diff --git a/wp-includes/css/dist/edit-site/posts.css b/wp-includes/css/dist/edit-site/posts.css
index ff1257f751..46cd59fabb 100644
--- a/wp-includes/css/dist/edit-site/posts.css
+++ b/wp-includes/css/dist/edit-site/posts.css
@@ -1194,6 +1194,7 @@ div.dataviews-view-list{
   display:flex;
   flex:0 0 auto;
   gap:4px;
+  white-space:nowrap;
   width:max-content;
 }

diff --git a/wp-includes/css/dist/edit-site/posts.min.css b/wp-includes/css/dist/edit-site/posts.min.css
index 033c0f0fdc..20a0a146ff 100644
--- a/wp-includes/css/dist/edit-site/posts.min.css
+++ b/wp-includes/css/dist/edit-site/posts.min.css
@@ -1 +1 @@
-@charset "UTF-8";:root{--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:var(--wp-block-synced-color);--wp-editor-canvas-background:#ddd;--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,160.5;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.admin-ui-page{background-color:#fff;color:#2f2f2f;container:admin-ui-page/inline-size;display:flex;flex-flow:column;height:100%;position:relative;z-index:1}@media not (prefers-reduced-motion){.admin-ui-page{transition:width .2s ease-out}}.admin-ui-page__header{background:#fff;border-bottom:1px solid #f0f0f0;padding:16px 48px;position:sticky;top:0}@container (max-width: 430px){.admin-ui-page__header{padding:16px 24px}}.admin-ui-page__header-subtitle{color:#757575;font-family:-apple-system,"system-ui",Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:400;line-height:20px;margin:0;padding-block-end:8px}.admin-ui-page__content{display:flex;flex-direction:column;flex-grow:1;overflow:auto}.admin-ui-page__content.has-padding{padding:16px 20px}@container (max-width: 430px){.admin-ui-page__content.has-padding{padding:16px 24px}}.show-icon-labels .admin-ui-page__header-actions .components-button.has-icon{padding:0 8px;width:auto}.show-icon-labels .admin-ui-page__header-actions .components-button.has-icon svg{display:none}.show-icon-labels .admin-ui-page__header-actions .components-button.has-icon:after{content:attr(aria-label);font-size:12px}.dataviews-picker-wrapper,.dataviews-wrapper{box-sizing:border-box;container:dataviews-wrapper/inline-size;display:flex;flex-direction:column;font-size:13px;height:100%;line-height:1.4;overflow:auto;scroll-padding-bottom:64px}.dataviews-filters__container,.dataviews__view-actions{box-sizing:border-box;flex-shrink:0;left:0;padding:16px 48px;position:sticky}@media not (prefers-reduced-motion){.dataviews-filters__container,.dataviews__view-actions{transition:padding .1s ease-out}}.dataviews-loading,.dataviews-no-results{align-items:center;display:flex;flex-grow:1;justify-content:center;padding:0 48px}@media not (prefers-reduced-motion){.dataviews-loading,.dataviews-no-results{transition:padding .1s ease-out}}.dataviews-loading-more{text-align:center}@container (max-width: 430px){.dataviews-filters__container,.dataviews__view-actions{padding:12px 24px}.dataviews-loading,.dataviews-no-results{padding-left:24px;padding-right:24px}}.dataviews-title-field{font-size:13px;font-weight:500;width:100%}.dataviews-title-field,.dataviews-title-field a{color:#2f2f2f;text-overflow:ellipsis;white-space:nowrap}.dataviews-title-field a{display:block;flex-grow:0;overflow:hidden;text-decoration:none}.dataviews-title-field a:hover{color:var(--wp-admin-theme-color)}.dataviews-title-field a:focus{border-radius:2px;box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color,#007cba);color:var(--wp-admin-theme-color--rgb)}.dataviews-title-field button.components-button.is-link{color:#1e1e1e;display:block;font-weight:inherit;overflow:hidden;text-decoration:none;text-overflow:ellipsis;white-space:nowrap;width:100%}.dataviews-title-field button.components-button.is-link:hover{color:var(--wp-admin-theme-color)}.dataviews-title-field--clickable{color:#2f2f2f;cursor:pointer}.dataviews-title-field--clickable:hover{color:var(--wp-admin-theme-color)}.dataviews-title-field--clickable:focus{border-radius:2px;box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color,#007cba);color:var(--wp-admin-theme-color--rgb)}.components-card__body:has(>.dataviews-picker-wrapper),.components-card__body:has(>.dataviews-wrapper){overflow:hidden;padding:8px 0 0}.components-card__body:has(>.dataviews-picker-wrapper) .dataviews-filters__container,.components-card__body:has(>.dataviews-picker-wrapper) .dataviews-footer,.components-card__body:has(>.dataviews-picker-wrapper) .dataviews-loading,.components-card__body:has(>.dataviews-picker-wrapper) .dataviews-no-results,.components-card__body:has(>.dataviews-picker-wrapper) .dataviews-view-grid,.components-card__body:has(>.dataviews-picker-wrapper) .dataviews__view-actions,.components-card__body:has(>.dataviews-wrapper) .dataviews-filters__container,.components-card__body:has(>.dataviews-wrapper) .dataviews-footer,.components-card__body:has(>.dataviews-wrapper) .dataviews-loading,.components-card__body:has(>.dataviews-wrapper) .dataviews-no-results,.components-card__body:has(>.dataviews-wrapper) .dataviews-view-grid,.components-card__body:has(>.dataviews-wrapper) .dataviews__view-actions{padding-inline:24px}.components-card__body:has(>.dataviews-picker-wrapper) .dataviews-view-table tr td:first-child,.components-card__body:has(>.dataviews-picker-wrapper) .dataviews-view-table tr th:first-child,.components-card__body:has(>.dataviews-wrapper) .dataviews-view-table tr td:first-child,.components-card__body:has(>.dataviews-wrapper) .dataviews-view-table tr th:first-child{padding-inline-start:24px}.components-card__body:has(>.dataviews-picker-wrapper) .dataviews-view-table tr td:last-child,.components-card__body:has(>.dataviews-picker-wrapper) .dataviews-view-table tr th:last-child,.components-card__body:has(>.dataviews-wrapper) .dataviews-view-table tr td:last-child,.components-card__body:has(>.dataviews-wrapper) .dataviews-view-table tr th:last-child{padding-inline-end:24px}.dataviews-bulk-actions-footer__item-count{color:#1e1e1e;font-size:11px;font-weight:500;text-transform:uppercase}.dataviews-bulk-actions-footer__container{margin-right:auto;min-height:32px}.dataviews-filters__button{position:relative}.dataviews-filters__container{padding-top:0}.dataviews-filters__reset-button.dataviews-filters__reset-button[aria-disabled=true],.dataviews-filters__reset-button.dataviews-filters__reset-button[aria-disabled=true]:hover{opacity:0}.dataviews-filters__reset-button.dataviews-filters__reset-button[aria-disabled=true]:focus{opacity:1}.dataviews-filters__summary-popover{font-size:13px;line-height:1.4}.dataviews-filters__summary-popover .components-popover__content{border-radius:4px;max-width:250px;min-width:230px;width:100%}.dataviews-filters__summary-popover.components-dropdown__content .components-popover__content{padding:0}.dataviews-filters__summary-operators-container{padding:8px 16px}.dataviews-filters__summary-operators-container:has(+.dataviews-filters__search-widget-listbox),.dataviews-filters__summary-operators-container:has(+.dataviews-filters__search-widget-no-elements),.dataviews-filters__summary-operators-container:has(+.dataviews-filters__user-input-widget){border-bottom:1px solid #e0e0e0}.dataviews-filters__summary-operators-container:empty{display:none}.dataviews-filters__summary-operators-container .dataviews-filters__summary-operators-filter-name{color:#757575;flex-shrink:0;max-width:calc(100% - 55px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dataviews-filters__summary-operators-container .dataviews-filters__summary-operators-filter-select{overflow:hidden;white-space:nowrap;width:100%}.dataviews-filters__summary-chip-container{position:relative;white-space:pre-wrap}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip{align-items:center;background:#f0f0f0;border:1px solid #0000;border-radius:16px;box-sizing:border-box;color:#2f2f2f;cursor:pointer;display:flex;min-height:32px;padding:4px 12px;position:relative}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.is-not-clickable{cursor:default}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.has-reset{padding-inline-end:28px}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip:focus-visible,.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip:hover:not(.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.is-not-clickable),.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip[aria-expanded=true]{background:#e0e0e0;color:#1e1e1e}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.has-values{background:rgba(var(--wp-admin-theme-color--rgb),.04);color:var(--wp-admin-theme-color)}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.has-values:hover,.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.has-values[aria-expanded=true]{background:rgba(var(--wp-admin-theme-color--rgb),.12)}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip:focus-visible{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:none}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip .dataviews-filters-__summary-filter-text-name{font-weight:500}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove{align-items:center;background:#0000;border:0;border-radius:50%;cursor:pointer;display:flex;height:24px;justify-content:center;padding:0;position:absolute;right:4px;top:50%;transform:translateY(-50%);width:24px}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove svg{fill:#757575}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove:focus,.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove:hover{background:#e0e0e0}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove:focus svg,.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove:hover svg{fill:#1e1e1e}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove.has-values svg{fill:var(--wp-admin-theme-color)}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove.has-values:hover{background:rgba(var(--wp-admin-theme-color--rgb),.08)}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove:focus-visible{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:none}.dataviews-filters__search-widget-filter-combobox-list{border-top:1px solid #e0e0e0;max-height:184px;overflow:auto;padding:4px}.dataviews-filters__search-widget-filter-combobox-list .dataviews-filters__search-widget-filter-combobox-item-value [data-user-value]{font-weight:600}.dataviews-filters__search-widget-listbox{overflow:auto;padding:4px}.dataviews-filters__search-widget-listitem{align-items:center;border-radius:2px;box-sizing:border-box;cursor:default;display:flex;font-family:-apple-system,"system-ui",Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:400;gap:8px;line-height:20px;min-height:32px;padding:4px 12px}.dataviews-filters__search-widget-listitem:last-child{margin-block-end:0}.dataviews-filters__search-widget-listitem:focus,.dataviews-filters__search-widget-listitem:hover,.dataviews-filters__search-widget-listitem[data-active-item]{background-color:var(--wp-admin-theme-color);color:#fff}.dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-description,.dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-description,.dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-description{color:#fff}.dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-single-selection,.dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-single-selection,.dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-single-selection{background:#fff;border-color:var(--wp-admin-theme-color-darker-20,#183ad6)}.dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-single-selection.is-selected,.dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-single-selection.is-selected,.dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-single-selection.is-selected{background:var(--wp-admin-theme-color-darker-20,#183ad6);border-color:var(--wp-admin-theme-color-darker-20,#183ad6)}.dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-multi-selection,.dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-multi-selection,.dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-multi-selection{border-color:var(--wp-admin-theme-color-darker-20,#183ad6)}.dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-multi-selection.is-selected,.dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-multi-selection.is-selected,.dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-multi-selection.is-selected{background:var(--wp-admin-theme-color-darker-20,#183ad6);border-color:var(--wp-admin-theme-color-darker-20,#183ad6)}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-description{color:#757575;display:block;font-size:12px;line-height:16px;overflow:hidden;text-overflow:ellipsis}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection{border:1px solid #1e1e1e;border-radius:50%;height:24px;margin-right:12px;max-width:24px;min-width:24px;position:relative;transition:none;width:24px}@media not (prefers-reduced-motion){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection{transition:box-shadow .1s linear}}@media (min-width:600px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection{height:16px;max-width:16px;min-width:16px;width:16px}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection:checked:before{background-color:#fff;border:4px solid #fff;box-sizing:inherit;height:12px;left:50%;margin:0;position:absolute;top:50%;transform:translate(-50%,-50%);width:12px}@media (min-width:600px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection:checked:before{height:8px;width:8px}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color);outline:2px solid #0000}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection:checked{background:var(--wp-admin-theme-color);border:none}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection{margin:0;padding:0}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection.is-selected{background:var(--wp-admin-theme-color,#3858e9);border-color:var(--wp-admin-theme-color,#3858e9)}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection.is-selected:before{background-color:#fff;border:4px solid #fff;border-radius:50%;box-sizing:inherit;content:"";height:12px;left:50%;margin:0;position:absolute;top:50%;transform:translate(-50%,-50%);width:12px}@media (min-width:600px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection.is-selected:before{height:8px;width:8px}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection{--checkbox-size:24px;border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 #0000;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:normal;margin-right:12px;padding:6px 8px;transition:none}@media not (prefers-reduced-motion){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection{transition:box-shadow .1s linear}}@media (min-width:600px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection{font-size:13px;line-height:normal}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color)}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection::-webkit-input-placeholder{color:#1e1e1e9e}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection::-moz-placeholder{color:#1e1e1e9e}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:-ms-input-placeholder{color:#1e1e1e9e}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color);outline:2px solid #0000}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:checked{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:checked::-ms-check{opacity:0}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:checked:before,.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-checked=mixed]:before{color:#fff;margin:-3px -5px}@media (min-width:782px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:checked:before,.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-checked=mixed]:before{margin:-4px 0 0 -5px}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-checked=mixed]{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-checked=mixed]:before{content:"\f460";display:inline-block;float:left;font:normal 30px/1 dashicons;vertical-align:middle;width:16px;speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (min-width:782px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-checked=mixed]:before{float:none;font-size:21px}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:disabled,.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-disabled=true]{background:#f0f0f0;border-color:#ddd;cursor:default;opacity:1}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection{background:#fff;color:#1e1e1e;height:var(--checkbox-size);margin:0;padding:0;position:relative;width:var(--checkbox-size)}@media (min-width:600px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection{--checkbox-size:16px}}@media not (prefers-reduced-motion){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection{transition:border-color .1s ease-in-out}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection.is-selected{background:var(--wp-admin-theme-color,#3858e9);border-color:var(--wp-admin-theme-color,#3858e9)}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection.is-selected svg{--checkmark-size:var(--checkbox-size);fill:#fff;height:var(--checkmark-size);left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:var(--checkmark-size)}@media (min-width:600px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection.is-selected svg{--checkmark-size:calc(var(--checkbox-size) + 4px)}}.dataviews-filters__search-widget-filter-combobox__wrapper{padding:8px;position:relative}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input{border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 #0000;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;line-height:normal;padding:6px 8px}@media not (prefers-reduced-motion){.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input{transition:box-shadow .1s linear}}@media (min-width:600px){.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input{font-size:13px;line-height:normal}}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid #0000}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-webkit-input-placeholder{color:#1e1e1e9e}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-moz-placeholder{color:#1e1e1e9e}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input:-ms-input-placeholder{color:#1e1e1e9e}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input{display:block;font-size:16px;height:32px;margin-left:0;margin-right:0;padding:0 8px 0 32px;width:100%}@media (min-width:600px){.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input{font-size:13px}}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input:focus{background:#fff;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::placeholder{color:#757575}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-webkit-search-cancel-button,.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-webkit-search-decoration,.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-webkit-search-results-button,.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-webkit-search-results-decoration{-webkit-appearance:none}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__icon{align-items:center;bottom:0;display:flex;inset-inline-start:12px;justify-content:center;position:absolute;top:0;width:24px}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__icon:dir(ltr){transform:scaleX(-1)}.dataviews-filters__container-visibility-toggle{flex-shrink:0;position:relative}.dataviews-filters-toggle__count{background:var(--wp-admin-theme-color,#3858e9);border-radius:8px;box-sizing:border-box;color:#fff;font-size:11px;height:16px;line-height:16px;min-width:16px;outline:var(--wp-admin-border-width-focus) solid #fff;padding:0 4px;position:absolute;right:0;text-align:center;top:0;transform:translate(50%,-50%)}.dataviews-search{width:fit-content}.dataviews-filters__user-input-widget{padding:16px}.dataviews-filters__user-input-widget .components-input-control__prefix{padding-left:8px}.dataviews-filters__search-widget-no-elements{align-items:center;display:flex;justify-content:center;padding:16px}.dataviews-footer{background-color:#fff;border-top:1px solid #f0f0f0;bottom:0;flex-shrink:0;left:0;padding:12px 48px;position:sticky}@media not (prefers-reduced-motion){.dataviews-footer{transition:padding .1s ease-out}}.dataviews-footer{z-index:2}@container (max-width: 430px){.dataviews-footer{padding:12px 24px}}@container (max-width: 560px){.dataviews-footer{flex-direction:column!important}.dataviews-footer .dataviews-bulk-actions-footer__container{width:100%}.dataviews-footer .dataviews-bulk-actions-footer__item-count{flex-grow:1}.dataviews-footer .dataviews-pagination{justify-content:space-between;width:100%}}.dataviews-pagination__page-select{font-size:11px;font-weight:500;text-transform:uppercase}@media (min-width:600px){.dataviews-pagination__page-select .components-select-control__input{font-size:11px!important;font-weight:500}}.dataviews-action-modal{z-index:1000001}.dataviews-picker-footer__bulk-selection{align-self:flex-start;height:32px}.dataviews-picker-footer__actions{align-self:flex-end}.dataviews-selection-checkbox{--checkbox-input-size:24px}@media (min-width:600px){.dataviews-selection-checkbox{--checkbox-input-size:16px}}.dataviews-selection-checkbox{flex-shrink:0;line-height:0}.dataviews-selection-checkbox .components-checkbox-control__input-container{margin:0}.dataviews-view-config{container-type:inline-size;font-size:13px;line-height:1.4;width:320px}.dataviews-config__popover.is-expanded .dataviews-config__popover-content-wrapper{height:100%;overflow-y:scroll}.dataviews-config__popover.is-expanded .dataviews-config__popover-content-wrapper .dataviews-view-config{width:auto}.dataviews-view-config__sort-direction .components-toggle-group-control-option-base{text-transform:uppercase}.dataviews-settings-section__title.dataviews-settings-section__title{font-size:15px;line-height:24px}.dataviews-settings-section__sidebar{grid-column:span 4}.dataviews-settings-section__content,.dataviews-settings-section__content>*{grid-column:span 8}.dataviews-settings-section__content .is-divided-in-two{display:contents}.dataviews-settings-section__content .is-divided-in-two>*{grid-column:span 4}.dataviews-settings-section:has(.dataviews-settings-section__content:empty){display:none}@container (max-width: 500px){.dataviews-settings-section.dataviews-settings-section{grid-template-columns:repeat(2,1fr)}.dataviews-settings-section.dataviews-settings-section .dataviews-settings-section__content,.dataviews-settings-section.dataviews-settings-section .dataviews-settings-section__sidebar{grid-column:span 2}}.dataviews-field-control__field{height:32px}.dataviews-field-control__actions{position:absolute;top:-9999em}.dataviews-field-control__actions.dataviews-field-control__actions{gap:4px}.dataviews-field-control__field.is-interacting .dataviews-field-control__actions,.dataviews-field-control__field:focus-within .dataviews-field-control__actions,.dataviews-field-control__field:hover .dataviews-field-control__actions{position:unset;top:unset}.dataviews-field-control__icon{display:flex;width:24px}.dataviews-field-control__label-sub-label-container{flex-grow:1}.dataviews-field-control__label{display:block}.dataviews-field-control__sub-label{color:#757575;font-size:11px;font-style:normal;margin-bottom:0;margin-top:8px}.dataviews-view-grid-items{container-type:inline-size;display:grid;gap:32px;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));grid-template-rows:max-content;margin-bottom:auto;padding:0 48px 24px}@container (max-width: 430px){.dataviews-view-grid-items{padding-left:24px;padding-right:24px}}@media not (prefers-reduced-motion){.dataviews-view-grid-items{transition:padding .1s ease-out}}.dataviews-view-grid .dataviews-view-grid__card{height:100%;justify-content:flex-start;position:relative}.dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__title-actions{padding:8px 0 4px}.dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__title-field{align-content:center;min-height:24px;overflow:hidden;text-align:start}.dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__title-field--clickable{width:fit-content}.dataviews-view-grid .dataviews-view-grid__card.is-selected .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-value{color:#1e1e1e}.dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__media:focus:after,.dataviews-view-grid .dataviews-view-grid__card.is-selected .dataviews-view-grid__media:after{background-color:rgba(var(--wp-admin-theme-color--rgb),.08)}.dataviews-view-grid .dataviews-view-grid__card.is-selected .dataviews-view-grid__media:after{box-shadow:inset 0 0 0 1px var(--wp-admin-theme-color)}.dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__media:focus:after{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.dataviews-view-grid .dataviews-view-grid__media{aspect-ratio:1/1;background-color:#fff;border-radius:4px;overflow:hidden;position:relative;width:100%}.dataviews-view-grid .dataviews-view-grid__media img{height:100%;object-fit:cover;width:100%}.dataviews-view-grid .dataviews-view-grid__media:after{border-radius:4px;box-shadow:inset 0 0 0 1px #0000001a;content:"";height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%}.dataviews-view-grid .dataviews-view-grid__fields{font-size:12px;line-height:16px;position:relative}.dataviews-view-grid .dataviews-view-grid__fields:not(:empty){padding:0 0 12px}.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field-value:not(:empty){line-height:20px;min-height:24px;padding-top:2px}.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field{align-items:center;min-height:24px}.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-name{color:#757575;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:35%}.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:65%}.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field:not(:has(.dataviews-view-grid__field-value:not(:empty))){display:none}.dataviews-view-grid .dataviews-view-grid__badge-fields:not(:empty){padding-bottom:12px}.dataviews-view-grid__field-value:empty,.dataviews-view-grid__field:empty{display:none}.dataviews-view-grid__card .dataviews-selection-checkbox{left:8px;opacity:0;position:absolute;top:-9999em;z-index:1}@media not (prefers-reduced-motion){.dataviews-view-grid__card .dataviews-selection-checkbox{transition:opacity .1s linear}}@media (hover:none){.dataviews-view-grid__card .dataviews-selection-checkbox{opacity:1;top:8px}}.dataviews-view-grid__card.is-selected .dataviews-selection-checkbox,.dataviews-view-grid__card:focus-within .dataviews-selection-checkbox,.dataviews-view-grid__card:hover .dataviews-selection-checkbox{opacity:1;top:8px}.dataviews-view-grid__card .dataviews-view-grid__media-actions{opacity:0;position:absolute;right:4px;top:4px}.dataviews-view-grid__card .dataviews-view-grid__media-actions .dataviews-all-actions-button{background-color:#fff}@media not (prefers-reduced-motion){.dataviews-view-grid__card .dataviews-view-grid__media-actions{transition:opacity .1s linear}}@media (hover:none){.dataviews-view-grid__card .dataviews-view-grid__media-actions{opacity:1;top:4px}}.dataviews-view-grid__card .dataviews-view-grid__media-actions:has(.dataviews-all-actions-button[aria-expanded=true]),.dataviews-view-grid__card:focus-within .dataviews-view-grid__media-actions,.dataviews-view-grid__card:hover .dataviews-view-grid__media-actions{opacity:1}.dataviews-view-grid__media--clickable{cursor:pointer}.dataviews-view-grid__group-header{color:#1e1e1e;container-type:inline-size;font-size:15px;font-weight:500;margin:0 0 8px;padding:0 48px}@container (max-width: 430px){.dataviews-view-grid__group-header{padding-left:24px;padding-right:24px}}div.dataviews-view-list{list-style-type:none}.dataviews-view-list{margin:0 0 auto}.dataviews-view-list div[role=article],.dataviews-view-list div[role=row]{border-top:1px solid #f0f0f0;margin:0}.dataviews-view-list div[role=article] .dataviews-view-list__item-wrapper,.dataviews-view-list div[role=row] .dataviews-view-list__item-wrapper{box-sizing:border-box;padding:16px 24px;position:relative}.dataviews-view-list div[role=article] .dataviews-view-list__item-actions,.dataviews-view-list div[role=row] .dataviews-view-list__item-actions{display:flex;flex:0 0 auto;gap:4px;width:max-content}.dataviews-view-list div[role=article] .dataviews-view-list__item-actions .components-button,.dataviews-view-list div[role=row] .dataviews-view-list__item-actions .components-button{position:relative;z-index:1}.dataviews-view-list div[role=article] .dataviews-view-list__item-actions>div,.dataviews-view-list div[role=row] .dataviews-view-list__item-actions>div{height:24px}.dataviews-view-list div[role=article] .dataviews-view-list__item-actions>:not(:last-child),.dataviews-view-list div[role=row] .dataviews-view-list__item-actions>:not(:last-child){flex:0;overflow:hidden;width:0}.dataviews-view-list div[role=article]:where(.is-selected,.is-hovered,:focus-within) .dataviews-view-list__item-actions>:not(:last-child),.dataviews-view-list div[role=row]:where(.is-selected,.is-hovered,:focus-within) .dataviews-view-list__item-actions>:not(:last-child){flex-basis:min-content;overflow:unset;width:auto}@media (hover:none){.dataviews-view-list div[role=article] .dataviews-view-list__item-actions>:not(:last-child),.dataviews-view-list div[role=row] .dataviews-view-list__item-actions>:not(:last-child){flex-basis:min-content;overflow:unset;width:auto}}.dataviews-view-list div[role=article].is-selected.is-selected,.dataviews-view-list div[role=article].is-selected.is-selected+div[role=article],.dataviews-view-list div[role=article].is-selected.is-selected+div[role=row],.dataviews-view-list div[role=row].is-selected.is-selected,.dataviews-view-list div[role=row].is-selected.is-selected+div[role=article],.dataviews-view-list div[role=row].is-selected.is-selected+div[role=row]{border-top:1px solid rgba(var(--wp-admin-theme-color--rgb),.12)}.dataviews-view-list div[role=article]:not(.is-selected) .dataviews-view-list__title-field,.dataviews-view-list div[role=row]:not(.is-selected) .dataviews-view-list__title-field{color:#1e1e1e}.dataviews-view-list div[role=article]:not(.is-selected).is-hovered,.dataviews-view-list div[role=article]:not(.is-selected):focus-within,.dataviews-view-list div[role=article]:not(.is-selected):hover,.dataviews-view-list div[role=row]:not(.is-selected).is-hovered,.dataviews-view-list div[role=row]:not(.is-selected):focus-within,.dataviews-view-list div[role=row]:not(.is-selected):hover{background-color:#f8f8f8;color:var(--wp-admin-theme-color)}.dataviews-view-list div[role=article]:not(.is-selected).is-hovered .dataviews-view-list__fields,.dataviews-view-list div[role=article]:not(.is-selected).is-hovered .dataviews-view-list__title-field,.dataviews-view-list div[role=article]:not(.is-selected):focus-within .dataviews-view-list__fields,.dataviews-view-list div[role=article]:not(.is-selected):focus-within .dataviews-view-list__title-field,.dataviews-view-list div[role=article]:not(.is-selected):hover .dataviews-view-list__fields,.dataviews-view-list div[role=article]:not(.is-selected):hover .dataviews-view-list__title-field,.dataviews-view-list div[role=row]:not(.is-selected).is-hovered .dataviews-view-list__fields,.dataviews-view-list div[role=row]:not(.is-selected).is-hovered .dataviews-view-list__title-field,.dataviews-view-list div[role=row]:not(.is-selected):focus-within .dataviews-view-list__fields,.dataviews-view-list div[role=row]:not(.is-selected):focus-within .dataviews-view-list__title-field,.dataviews-view-list div[role=row]:not(.is-selected):hover .dataviews-view-list__fields,.dataviews-view-list div[role=row]:not(.is-selected):hover .dataviews-view-list__title-field{color:var(--wp-admin-theme-color)}.dataviews-view-list div[role=article].is-selected .dataviews-view-list__item-wrapper,.dataviews-view-list div[role=article].is-selected:focus-within .dataviews-view-list__item-wrapper,.dataviews-view-list div[role=row].is-selected .dataviews-view-list__item-wrapper,.dataviews-view-list div[role=row].is-selected:focus-within .dataviews-view-list__item-wrapper{background-color:rgba(var(--wp-admin-theme-color--rgb),.04);color:#1e1e1e}.dataviews-view-list div[role=article].is-selected .dataviews-view-list__item-wrapper .dataviews-view-list__fields,.dataviews-view-list div[role=article].is-selected .dataviews-view-list__item-wrapper .dataviews-view-list__title-field,.dataviews-view-list div[role=article].is-selected:focus-within .dataviews-view-list__item-wrapper .dataviews-view-list__fields,.dataviews-view-list div[role=article].is-selected:focus-within .dataviews-view-list__item-wrapper .dataviews-view-list__title-field,.dataviews-view-list div[role=row].is-selected .dataviews-view-list__item-wrapper .dataviews-view-list__fields,.dataviews-view-list div[role=row].is-selected .dataviews-view-list__item-wrapper .dataviews-view-list__title-field,.dataviews-view-list div[role=row].is-selected:focus-within .dataviews-view-list__item-wrapper .dataviews-view-list__fields,.dataviews-view-list div[role=row].is-selected:focus-within .dataviews-view-list__item-wrapper .dataviews-view-list__title-field{color:var(--wp-admin-theme-color)}.dataviews-view-list .dataviews-view-list__item{appearance:none;background:none;border:none;cursor:pointer;inset:0;padding:0;position:absolute;scroll-margin:8px 0;z-index:1}.dataviews-view-list .dataviews-view-list__item:focus-visible{outline:none}.dataviews-view-list .dataviews-view-list__item:focus-visible:before{border-radius:2px;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);content:"";inset:var(--wp-admin-border-width-focus);outline:2px solid #0000;position:absolute}.dataviews-view-list .dataviews-view-list__title-field{flex:1;line-height:24px;min-height:24px;overflow:hidden}.dataviews-view-list .dataviews-view-list__title-field:has(a,button){z-index:1}.dataviews-view-list .dataviews-view-list__media-wrapper{background-color:#fff;border-radius:4px;flex-shrink:0;height:52px;overflow:hidden;position:relative;width:52px}.dataviews-view-list .dataviews-view-list__media-wrapper img{height:100%;object-fit:cover;width:100%}.dataviews-view-list .dataviews-view-list__media-wrapper:after{border-radius:4px;box-shadow:inset 0 0 0 1px #0000001a;content:"";height:100%;left:0;position:absolute;top:0;width:100%}.dataviews-view-list .dataviews-view-list__field-wrapper{flex-grow:1;min-height:52px}.dataviews-view-list .dataviews-view-list__fields{color:#757575;display:flex;flex-wrap:wrap;font-size:12px;gap:12px;row-gap:4px}.dataviews-view-list .dataviews-view-list__fields .dataviews-view-list__field:has(.dataviews-view-list__field-value:empty),.dataviews-view-list .dataviews-view-list__fields:empty{display:none}.dataviews-view-list .dataviews-view-list__fields .dataviews-view-list__field-value{align-items:center;display:flex;line-height:20px;min-height:24px}.dataviews-view-list+.dataviews-pagination{justify-content:space-between}.dataviews-view-list__group-header{color:#1e1e1e;font-size:15px;font-weight:500;margin:0 0 8px;padding:0 24px}.dataviews-view-table{border-collapse:collapse;border-color:inherit;color:#757575;margin-bottom:auto;position:relative;text-indent:0;width:100%}.dataviews-view-table th{color:#1e1e1e;font-size:13px;font-weight:400;text-align:left}.dataviews-view-table td,.dataviews-view-table th{padding:12px}.dataviews-view-table td.dataviews-view-table__actions-column,.dataviews-view-table th.dataviews-view-table__actions-column{text-align:right}.dataviews-view-table td.dataviews-view-table__actions-column--sticky,.dataviews-view-table th.dataviews-view-table__actions-column--sticky{background-color:#fff;position:sticky;right:0}.dataviews-view-table td.dataviews-view-table__actions-column--stuck:after,.dataviews-view-table th.dataviews-view-table__actions-column--stuck:after{background-color:#f0f0f0;bottom:0;content:"";display:block;left:0;position:absolute;top:0;width:1px}.dataviews-view-table td.dataviews-view-table__checkbox-column,.dataviews-view-table th.dataviews-view-table__checkbox-column{padding-right:0}.dataviews-view-table td.dataviews-view-table__checkbox-column .dataviews-view-table__cell-content-wrapper,.dataviews-view-table th.dataviews-view-table__checkbox-column .dataviews-view-table__cell-content-wrapper{max-width:auto;min-width:auto}.dataviews-view-table tr{border-top:1px solid #f0f0f0}.dataviews-view-table tr .dataviews-view-table-header-button{gap:4px}.dataviews-view-table tr td:first-child,.dataviews-view-table tr th:first-child{padding-left:48px}.dataviews-view-table tr td:first-child .dataviews-view-table-header-button,.dataviews-view-table tr th:first-child .dataviews-view-table-header-button{margin-left:-8px}.dataviews-view-table tr td:last-child,.dataviews-view-table tr th:last-child{padding-right:48px}.dataviews-view-table tr:last-child{border-bottom:0}.dataviews-view-table tr.is-hovered,.dataviews-view-table tr.is-hovered .dataviews-view-table__actions-column--sticky{background-color:#f8f8f8}.dataviews-view-table tr .components-checkbox-control__input.components-checkbox-control__input{opacity:0}.dataviews-view-table tr .components-checkbox-control__input.components-checkbox-control__input:checked,.dataviews-view-table tr .components-checkbox-control__input.components-checkbox-control__input:focus,.dataviews-view-table tr .components-checkbox-control__input.components-checkbox-control__input:indeterminate{opacity:1}.dataviews-view-table tr .dataviews-item-actions .components-button:not(.dataviews-all-actions-button){opacity:0}.dataviews-view-table tr.is-hovered .components-checkbox-control__input,.dataviews-view-table tr.is-hovered .dataviews-item-actions .components-button:not(.dataviews-all-actions-button),.dataviews-view-table tr:focus-within .components-checkbox-control__input,.dataviews-view-table tr:focus-within .dataviews-item-actions .components-button:not(.dataviews-all-actions-button),.dataviews-view-table tr:hover .components-checkbox-control__input,.dataviews-view-table tr:hover .dataviews-item-actions .components-button:not(.dataviews-all-actions-button){opacity:1}@media (hover:none){.dataviews-view-table tr .components-checkbox-control__input.components-checkbox-control__input,.dataviews-view-table tr .dataviews-item-actions .components-button:not(.dataviews-all-actions-button){opacity:1}}.dataviews-view-table tr.is-selected{background-color:rgba(var(--wp-admin-theme-color--rgb),.04);color:#757575}.dataviews-view-table tr.is-selected,.dataviews-view-table tr.is-selected+tr{border-top:1px solid rgba(var(--wp-admin-theme-color--rgb),.12)}.dataviews-view-table tr.is-selected:hover{background-color:rgba(var(--wp-admin-theme-color--rgb),.08)}.dataviews-view-table tr.is-selected .dataviews-view-table__actions-column--sticky{background-color:color-mix(in srgb,rgb(var(--wp-admin-theme-color--rgb)) 4%,#fff)}.dataviews-view-table tr.is-selected:hover .dataviews-view-table__actions-column--sticky{background-color:color-mix(in srgb,rgb(var(--wp-admin-theme-color--rgb)) 8%,#fff)}.dataviews-view-table thead{inset-block-start:0;position:sticky;z-index:1}.dataviews-view-table thead tr{border:0}.dataviews-view-table thead tr .components-checkbox-control__input.components-checkbox-control__input{opacity:1}.dataviews-view-table thead th{background-color:#fff;font-size:11px;font-weight:500;padding-bottom:8px;padding-left:12px;padding-top:8px;text-transform:uppercase}.dataviews-view-table thead th:has(.dataviews-view-table-header-button):not(:first-child){padding-left:4px}.dataviews-view-table tbody td{vertical-align:top}.dataviews-view-table tbody .dataviews-view-table__cell-content-wrapper{align-items:center;display:flex;min-height:32px;white-space:nowrap}.dataviews-view-table tbody .dataviews-view-table__cell-content-wrapper.dataviews-view-table__cell-align-end{justify-content:flex-end}.dataviews-view-table tbody .dataviews-view-table__cell-content-wrapper.dataviews-view-table__cell-align-center{justify-content:center}.dataviews-view-table tbody .components-v-stack>.dataviews-view-table__cell-content-wrapper:not(:first-child){min-height:0}.dataviews-view-table .dataviews-view-table-header-button{font-size:11px;font-weight:500;padding:4px 8px;text-transform:uppercase}.dataviews-view-table .dataviews-view-table-header-button:not(:hover){color:#1e1e1e}.dataviews-view-table .dataviews-view-table-header-button span{speak:none}.dataviews-view-table .dataviews-view-table-header-button span:empty{display:none}.dataviews-view-table .dataviews-view-table-header{padding-left:4px}.dataviews-view-table .dataviews-view-table__actions-column{white-space:nowrap;width:auto}.dataviews-view-table:has(tr.is-selected) .components-checkbox-control__input{opacity:1}.dataviews-view-table.has-compact-density thead th:has(.dataviews-view-table-header-button):not(:first-child){padding-left:0}.dataviews-view-table.has-compact-density td,.dataviews-view-table.has-compact-density th{padding:4px 8px}.dataviews-view-table.has-comfortable-density td,.dataviews-view-table.has-comfortable-density th{padding:16px 12px}.dataviews-view-table.has-comfortable-density td.dataviews-view-table__checkbox-column,.dataviews-view-table.has-comfortable-density th.dataviews-view-table__checkbox-column,.dataviews-view-table.has-compact-density td.dataviews-view-table__checkbox-column,.dataviews-view-table.has-compact-density th.dataviews-view-table__checkbox-column{padding-right:0}@container (max-width: 430px){.dataviews-view-table tr td:first-child,.dataviews-view-table tr th:first-child{padding-left:24px}.dataviews-view-table tr td:last-child,.dataviews-view-table tr th:last-child{padding-right:24px}}.dataviews-view-table-selection-checkbox{--checkbox-input-size:24px}@media (min-width:600px){.dataviews-view-table-selection-checkbox{--checkbox-input-size:16px}}.dataviews-column-primary__media{background-color:#fff;border-radius:4px;flex-shrink:0;max-width:60px;overflow:hidden;position:relative}.dataviews-column-primary__media img{height:100%;object-fit:cover;width:100%}.dataviews-column-primary__media:after{border-radius:4px;box-shadow:inset 0 0 0 1px #0000001a;content:"";height:100%;left:0;position:absolute;top:0;width:100%}.dataviews-view-table__cell-content-wrapper:not(.dataviews-column-primary__media),.dataviews-view-table__primary-column-content:not(.dataviews-column-primary__media){max-width:80ch;min-width:15ch}.dataviews-view-table__group-header-row .dataviews-view-table__group-header-cell{color:#1e1e1e;font-weight:500;padding:12px 48px}.dataviews-view-table col[class^=dataviews-view-table__col-]:not(.dataviews-view-table__col-primary){width:1%}.dataviews-view-picker-grid .dataviews-view-picker-grid__card{height:100%;justify-content:flex-start;position:relative}.dataviews-view-picker-grid .dataviews-view-picker-grid__card .dataviews-view-picker-grid__title-actions{padding:8px 0 4px}.dataviews-view-picker-grid .dataviews-view-picker-grid__card .dataviews-view-picker-grid__title-field{align-content:center;min-height:24px;overflow:hidden;text-align:start}.dataviews-view-picker-grid .dataviews-view-picker-grid__card .dataviews-view-picker-grid__title-field--clickable{width:fit-content}.dataviews-view-picker-grid .dataviews-view-picker-grid__card.is-selected .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field .dataviews-view-picker-grid__field-value{color:#1e1e1e}.dataviews-view-picker-grid .dataviews-view-picker-grid__card .dataviews-view-picker-grid__media:focus:after,.dataviews-view-picker-grid .dataviews-view-picker-grid__card.is-selected .dataviews-view-picker-grid__media:after{background-color:rgba(var(--wp-admin-theme-color--rgb),.08)}.dataviews-view-picker-grid .dataviews-view-picker-grid__card.is-selected .dataviews-view-picker-grid__media:after{box-shadow:inset 0 0 0 1px var(--wp-admin-theme-color)}.dataviews-view-picker-grid .dataviews-view-picker-grid__card .dataviews-view-picker-grid__media:focus:after{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.dataviews-view-picker-grid:focus-visible[aria-activedescendant]{outline:none}.dataviews-view-picker-grid:focus-visible [data-active-item=true]{outline:2px solid var(--wp-admin-theme-color)}.dataviews-view-picker-grid .dataviews-selection-checkbox{top:8px!important}.dataviews-view-picker-grid .dataviews-selection-checkbox input{pointer-events:none}.dataviews-view-picker-grid .dataviews-view-picker-grid__media{aspect-ratio:1/1;background-color:#fff;border-radius:4px;position:relative;width:100%}.dataviews-view-picker-grid .dataviews-view-picker-grid__media img{height:100%;object-fit:cover;width:100%}.dataviews-view-picker-grid .dataviews-view-picker-grid__media:after{border-radius:4px;box-shadow:inset 0 0 0 1px #0000001a;content:"";height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields{font-size:12px;line-height:16px;position:relative}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields:not(:empty){padding:0 0 12px}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field-value:not(:empty){line-height:20px;min-height:24px;padding-top:2px}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field{align-items:center;min-height:24px}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field .dataviews-view-picker-grid__field-name{color:#757575;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:35%}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field .dataviews-view-picker-grid__field-value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:65%}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field:not(:has(.dataviews-view-picker-grid__field-value:not(:empty))){display:none}.dataviews-view-picker-grid .dataviews-view-picker-grid__badge-fields:not(:empty){padding-bottom:12px}.dataviews-view-picker-grid__field-value:empty,.dataviews-view-picker-grid__field:empty{display:none}.dataviews-view-picker-grid__card .dataviews-selection-checkbox{left:8px;position:absolute;top:-9999em;z-index:1}@media (hover:none){.dataviews-view-picker-grid__card .dataviews-selection-checkbox{top:8px}}.dataviews-view-picker-grid__card.is-selected .dataviews-selection-checkbox,.dataviews-view-picker-grid__card:focus-within .dataviews-selection-checkbox,.dataviews-view-picker-grid__card:hover .dataviews-selection-checkbox{top:8px}.dataviews-view-picker-grid__media--clickable{cursor:pointer}.dataviews-view-picker-grid-group__header{color:#1e1e1e;font-size:15px;font-weight:500;margin:0 0 8px;padding:0 48px}.dataviews-controls__datetime{border:none;padding:0}.dataviews-controls__relative-date-number,.dataviews-controls__relative-date-unit{flex:1 1 50%}.dataviews-controls__date input[type=date]::-webkit-calendar-picker-indicator,.dataviews-controls__date input[type=date]::-webkit-inner-spin-button{-webkit-appearance:none;display:none}.dataviews-controls__date-preset{border:1px solid #ddd}.dataviews-controls__date-preset:active{background-color:#000}.dataforms-layouts-panel__field{align-items:flex-start!important;justify-content:flex-start!important;min-height:32px;width:100%}.dataforms-layouts-panel__field-label{align-items:center;display:flex;flex-shrink:0;hyphens:auto;line-height:20px;min-height:32px;width:38%}.dataforms-layouts-panel__field-label--label-position-side{align-self:center}.dataforms-layouts-panel__field-control{align-items:center;display:flex;flex-grow:1;min-height:32px}.dataforms-layouts-panel__field-control .components-button{max-width:100%;min-height:32px;text-align:left;text-wrap:balance;text-wrap:pretty;white-space:normal}.dataforms-layouts-panel__field-control.components-button.is-link[aria-disabled=true]{text-decoration:none}.dataforms-layouts-panel__field-control .components-dropdown{max-width:100%}.dataforms-layouts-panel__field-dropdown .components-popover__content{min-width:320px;padding:16px}.dataforms-layouts-panel__dropdown-header{margin-bottom:16px}.dataforms-layouts-panel__modal-footer{margin-top:16px}.components-popover.components-dropdown__content.dataforms-layouts-panel__field-dropdown{z-index:159990}.dataforms-layouts-regular__field{align-items:flex-start!important;justify-content:flex-start!important;min-height:32px;width:100%}.dataforms-layouts-regular__field-label{align-items:center;display:flex;flex-shrink:0;hyphens:auto;line-height:20px;min-height:32px;width:38%}.dataforms-layouts-regular__field-label--label-position-side{align-self:center}.dataforms-layouts-regular__field-control{align-items:center;display:flex;flex-grow:1;min-height:32px}.dataforms-layouts-card__field-header-label{font-family:-apple-system,"system-ui",Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:15px;font-weight:500;line-height:20px}.dataforms-layouts-card__field{width:100%}.dataforms-layouts-card__field-description{color:#757575;display:block;font-size:13px;margin-bottom:16px}.dataforms-layouts-card__field-summary{display:flex;flex-direction:row;gap:16px}.dataforms-layouts-row__field-control{width:100%}.dataforms-layouts__wrapper{font-family:-apple-system,"system-ui",Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:400;line-height:20px}.edit-site-layout{color:#ccc;display:flex;flex-direction:column;height:100%}.edit-site-layout,.edit-site-layout:not(.is-full-canvas) .editor-visual-editor{background:#1e1e1e}.edit-site-layout__content{display:flex;flex-grow:1;height:100%}.edit-site-layout__sidebar-region{flex-shrink:0;width:100vw;z-index:1}@media (min-width:782px){.edit-site-layout__sidebar-region{width:300px}}.edit-site-layout.is-full-canvas .edit-site-layout__sidebar-region{height:100vh;left:0;position:fixed!important;top:0}.edit-site-layout__sidebar-region .edit-site-layout__sidebar{display:flex;flex-direction:column;height:100%}.edit-site-layout__sidebar-region .resizable-editor__drag-handle{right:0}.edit-site-layout__main{display:flex;flex-direction:column;flex-grow:1;overflow:hidden}.edit-site-layout__mobile{display:flex;flex-direction:column;position:relative;width:100%;z-index:2}.edit-site-layout__mobile .edit-site-sidebar__screen-wrapper{padding:0}.edit-site-layout__mobile .edit-site-sidebar-navigation-screen__main{padding:0 12px}.edit-site-layout__canvas-container{flex-grow:1;overflow:visible;position:relative;z-index:2}.edit-site-layout__canvas-container.is-resizing:after{bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:100}.edit-site-layout__canvas{align-items:center;bottom:0;display:flex;justify-content:center;left:0;position:absolute;top:0;width:100%}.edit-site-layout__canvas.is-right-aligned{justify-content:flex-end}.edit-site-layout__canvas .edit-site-resizable-frame__inner{color:#1e1e1e}@media (min-width:782px){.edit-site-layout__canvas{bottom:16px;top:16px;width:calc(100% - 16px)}.edit-site-layout__canvas .edit-site-resizable-frame__inner-content{box-shadow:0 1px 1px #00000008,0 1px 2px #00000005,0 3px 3px #00000005,0 4px 4px #00000003;overflow:hidden}}@media (min-width:782px) and (not (prefers-reduced-motion)){.edit-site-layout__canvas .edit-site-resizable-frame__inner-content{transition:border-radius,box-shadow .4s}}@media (min-width:782px){.edit-site-layout:not(.is-full-canvas) .edit-site-layout__canvas .edit-site-resizable-frame__inner-content{border-radius:8px}.edit-site-layout__canvas .edit-site-resizable-frame__inner-content:hover{box-shadow:0 5px 15px #00000014,0 15px 27px #00000012,0 30px 36px #0000000a,0 50px 43px #00000005}}.edit-site-layout.is-full-canvas .edit-site-layout__canvas{bottom:0;top:0;width:100%}.edit-site-layout__canvas .interface-interface-skeleton,.edit-site-layout__mobile .interface-interface-skeleton,.edit-site-template-pages-preview .interface-interface-skeleton{min-height:100%!important;position:relative!important}.edit-site-template-pages-preview{height:100%}html.canvas-mode-edit-transition::view-transition-group(toggle){animation-delay:255ms}@media (prefers-reduced-motion){::view-transition-group(*),::view-transition-new(*),::view-transition-old(*){animation:none!important}}.edit-site-layout.is-full-canvas .edit-site-layout__sidebar-region .edit-site-layout__view-mode-toggle{display:none}.edit-site-layout__view-mode-toggle.components-button{view-transition-name:toggle;align-items:center;background:#1e1e1e;border-radius:0;color:#fff;display:flex;height:64px;justify-content:center;overflow:hidden;padding:0;position:relative;width:64px}.edit-site-layout__view-mode-toggle.components-button:active,.edit-site-layout__view-mode-toggle.components-button:hover{color:#fff}.edit-site-layout__view-mode-toggle.components-button:focus,.edit-site-layout__view-mode-toggle.components-button:focus-visible{box-shadow:0 0 0 3px #1e1e1e,0 0 0 6px var(--wp-admin-theme-color);outline:4px solid #0000;outline-offset:4px}.edit-site-layout__view-mode-toggle.components-button:before{border-radius:4px;bottom:9px;box-shadow:none;content:"";display:block;left:17px;position:absolute;right:9px;top:9px}@media not (prefers-reduced-motion){.edit-site-layout__view-mode-toggle.components-button:before{transition:box-shadow .1s ease}}.edit-site-layout__view-mode-toggle.components-button .edit-site-layout__view-mode-toggle-icon{align-items:center;display:flex;height:64px;justify-content:center;width:64px}.edit-site-layout__actions{background:#fff;bottom:auto;color:#1e1e1e;left:auto;position:fixed!important;right:0;top:-9999em;width:280px;z-index:100000}.edit-site-layout__actions:focus,.edit-site-layout__actions:focus-within{bottom:0;top:auto}.edit-site-layout__actions.is-entity-save-view-open:focus,.edit-site-layout__actions.is-entity-save-view-open:focus-within{top:0}@media (min-width:782px){.edit-site-layout__actions{border-left:1px solid #ddd}}.edit-site-layout__area{box-shadow:0 1px 1px #00000008,0 1px 2px #00000005,0 3px 3px #00000005,0 4px 4px #00000003;flex-grow:1;margin:0;overflow:hidden}@media (min-width:782px){.edit-site-layout__area{border-radius:8px;margin:16px 16px 16px 0}}.edit-site .components-editor-notices__snackbar{bottom:16px;padding-left:16px;padding-right:16px;position:fixed;right:0}.edit-site-save-hub{border-top:1px solid #2f2f2f;color:#949494;flex-shrink:0;margin:0;padding:16px}.edit-site-save-hub__button{color:inherit;justify-content:center;width:100%}.edit-site-save-hub__button[aria-disabled=true]{opacity:1}.edit-site-save-hub__button[aria-disabled=true]:hover{color:inherit}.edit-site-save-hub__button:not(.is-primary).is-busy,.edit-site-save-hub__button:not(.is-primary).is-busy[aria-disabled=true]:hover{color:#1e1e1e}@media (min-width:600px){.edit-site-save-panel__modal{width:600px}}.edit-site-sidebar__content{contain:content;flex-grow:1;overflow-x:hidden;overflow-y:auto}@keyframes local--slide-from-right{0%{opacity:0;transform:translateX(50px)}to{opacity:1;transform:none}}@keyframes local--slide-from-left{0%{opacity:0;transform:translateX(-50px)}to{opacity:1;transform:none}}.edit-site-sidebar__screen-wrapper{overflow-x:auto}.edit-site-sidebar__screen-wrapper::-webkit-scrollbar{height:12px;width:12px}.edit-site-sidebar__screen-wrapper::-webkit-scrollbar-track{background-color:initial}.edit-site-sidebar__screen-wrapper::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:initial;border:3px solid #0000;border-radius:8px}.edit-site-sidebar__screen-wrapper:focus-within::-webkit-scrollbar-thumb,.edit-site-sidebar__screen-wrapper:focus::-webkit-scrollbar-thumb,.edit-site-sidebar__screen-wrapper:hover::-webkit-scrollbar-thumb{background-color:#757575}.edit-site-sidebar__screen-wrapper{scrollbar-color:#0000 #0000;scrollbar-gutter:stable both-edges;scrollbar-width:thin}.edit-site-sidebar__screen-wrapper:focus,.edit-site-sidebar__screen-wrapper:focus-within,.edit-site-sidebar__screen-wrapper:hover{scrollbar-color:#757575 #0000}.edit-site-sidebar__screen-wrapper{will-change:transform}@media (hover:none){.edit-site-sidebar__screen-wrapper{scrollbar-color:#757575 #0000}}.edit-site-sidebar__screen-wrapper{animation-duration:.14s;animation-timing-function:ease-in-out;display:flex;flex-direction:column;height:100%;max-height:100%;padding:0 12px;scrollbar-gutter:stable;will-change:transform,opacity}@media (prefers-reduced-motion:reduce){.edit-site-sidebar__screen-wrapper{animation-duration:0s}}.edit-site-sidebar__screen-wrapper.slide-from-left{animation-name:local--slide-from-left}.edit-site-sidebar__screen-wrapper.slide-from-right{animation-name:local--slide-from-right}.edit-site-site-hub{align-items:center;display:flex;gap:8px;height:64px;justify-content:space-between;margin-right:12px}.edit-site-site-hub__actions{flex-shrink:0}.edit-site-site-hub__view-mode-toggle-container{flex-shrink:0;height:64px;width:64px}.edit-site-site-hub__view-mode-toggle-container.has-transparent-background .edit-site-layout__view-mode-toggle-icon{background:#0000}.edit-site-site-hub__title .components-button{color:#e0e0e0;display:block;flex-grow:1;font-size:15px;font-weight:500;margin-left:-4px;overflow:hidden;padding-right:16px;position:relative;text-decoration:none;text-overflow:ellipsis;white-space:nowrap}.edit-site-site-hub__title .components-button:active,.edit-site-site-hub__title .components-button:focus,.edit-site-site-hub__title .components-button:hover{color:#e0e0e0}.edit-site-site-hub__title .components-button:focus{box-shadow:none;outline:none}.edit-site-site-hub__title .components-button:focus-visible{box-shadow:0 0 0 var(--wp-admin-border-width-focus) #1e1e1e,0 0 0 calc(var(--wp-admin-border-width-focus)*2) var(--wp-admin-theme-color);outline:2px solid #0000;outline-offset:2px}.edit-site-site-hub__title .components-button:after{content:"↗";font-weight:400;opacity:0;position:absolute;right:0}@media not (prefers-reduced-motion){.edit-site-site-hub__title .components-button:after{transition:opacity .1s linear}}.edit-site-site-hub__title .components-button:active:after,.edit-site-site-hub__title .components-button:focus:after,.edit-site-site-hub__title .components-button:hover:after{opacity:1}.edit-site-site-hub_toggle-command-center{color:#e0e0e0}.edit-site-site-hub_toggle-command-center:active svg,.edit-site-site-hub_toggle-command-center:hover svg{fill:#f0f0f0}.edit-site-site-icon__icon{fill:currentColor;height:100%;width:100%}.edit-site-layout.is-full-canvas .edit-site-site-icon__icon{padding:12px}.edit-site-site-icon__image{aspect-ratio:1/1;background:#333;height:100%;object-fit:cover;width:100%}.edit-site-layout.is-full-canvas .edit-site-site-icon__image{border-radius:0}.edit-site-editor__view-mode-toggle button:focus{position:relative}.edit-site-editor__view-mode-toggle button:focus:before{bottom:0;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color),inset 0 0 0 calc(1px + var(--wp-admin-border-width-focus)) #fff;content:"";display:block;left:0;position:absolute;right:0;top:0;z-index:1}.edit-site-editor-canvas-container{background-color:var(--wp-editor-canvas-background);height:100%}.edit-site-editor-canvas-container iframe{display:block;height:100%;width:100%}.edit-site-layout.is-full-canvas .edit-site-editor-canvas-container{padding:24px 24px 0}.edit-site-editor-canvas-container__section{background:#fff;border-radius:8px;bottom:0;left:0;overflow:hidden;position:absolute;right:0;top:0}@media not (prefers-reduced-motion){.edit-site-editor-canvas-container__section{transition:all .3s}}.edit-site-editor-canvas-container__close-button{background:#fff;position:absolute;right:8px;top:8px;z-index:2}.edit-site-post-list__featured-image{height:100%;object-fit:cover;width:100%}.edit-site-post-list__featured-image-wrapper{border-radius:4px;height:100%;width:100%}.edit-site-post-list__featured-image-wrapper.is-layout-table .edit-site-post-list__featured-image-button,.edit-site-post-list__featured-image-wrapper.is-layout-table:not(:has(.edit-site-post-list__featured-image-button)){background-color:#f0f0f0;border-radius:4px;display:block;flex-grow:0!important;height:32px;overflow:hidden;position:relative;width:32px}.edit-site-post-list__featured-image-wrapper.is-layout-table .edit-site-post-list__featured-image-button:after,.edit-site-post-list__featured-image-wrapper.is-layout-table:not(:has(.edit-site-post-list__featured-image-button)):after{border-radius:4px;box-shadow:inset 0 0 0 1px #0000001a;content:"";height:100%;left:0;position:absolute;top:0;width:100%}.edit-site-post-list__featured-image-button{background-color:unset;border:none;border-radius:4px;box-shadow:none;box-sizing:border-box;cursor:pointer;height:100%;overflow:hidden;padding:0;width:100%}.edit-site-post-list__featured-image-button:focus-visible{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid #0000}.dataviews-view-grid__card.is-selected .edit-site-post-list__featured-image-button:after{background:rgba(var(--wp-admin-theme-color--rgb),.04);box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.edit-site-post-list__status-icon{height:24px;width:24px}.edit-site-post-list__status-icon svg{fill:currentColor;margin-left:-4px}.edit-site-resizable-frame__inner{position:relative}body:has(.edit-site-resizable-frame__inner.is-resizing){cursor:col-resize;user-select:none;-webkit-user-select:none}.edit-site-resizable-frame__inner.is-resizing:before{content:"";inset:0;position:absolute;z-index:1}.edit-site-resizable-frame__inner-content{inset:0;position:absolute;z-index:0}.edit-site-resizable-frame__handle{align-items:center;background-color:#75757566;border:0;border-radius:4px;cursor:col-resize;display:flex;height:64px;justify-content:flex-end;padding:0;position:absolute;top:calc(50% - 32px);width:4px;z-index:100}.edit-site-resizable-frame__handle:before{content:"";height:100%;left:100%;position:absolute;width:32px}.edit-site-resizable-frame__handle:after{content:"";height:100%;position:absolute;right:100%;width:32px}.edit-site-resizable-frame__handle:focus-visible{outline:2px solid #0000}.edit-site-resizable-frame__handle.is-resizing,.edit-site-resizable-frame__handle:focus,.edit-site-resizable-frame__handle:hover{background-color:var(--wp-admin-theme-color)}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,114.7661290323,160.5;--wp-admin-theme-color-darker-20:#006187;--wp-admin-theme-color-darker-20--rgb:0,96.5322580645,135;--wp-admin-border-width-focus:2px}@media (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.0384615385,68.7307692308,230.4615384615;--wp-admin-theme-color-darker-20:#183ad6;--wp-admin-theme-color-darker-20--rgb:23.6923076923,58.1538461538,214.3076923077;--wp-admin-border-width-focus:2px}@media (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.3723404255,81.914893617,108.1276595745;--wp-admin-theme-color-darker-20:#064054;--wp-admin-theme-color-darker-20--rgb:5.7446808511,63.829787234,84.2553191489;--wp-admin-border-width-focus:2px}@media (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.2692307692,51.4461538462,48.2307692308;--wp-admin-theme-color-darker-20:#2b2724;--wp-admin-theme-color-darker-20--rgb:42.5384615385,38.8923076923,36.4615384615;--wp-admin-border-width-focus:2px}@media (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:69.8430232558,53.6598837209,92.8401162791;--wp-admin-theme-color-darker-20:#3a2c4d;--wp-admin-theme-color-darker-20--rgb:57.6860465116,44.3197674419,76.6802325581;--wp-admin-border-width-focus:2px}@media (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.4908256881,56.1788990826,45.0091743119;--wp-admin-theme-color-darker-20:#d02c21;--wp-admin-theme-color-darker-20--rgb:207.8348623853,44.2201834862,33.1651376147;--wp-admin-border-width-focus:2px}@media (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.0873362445,110.192139738,116.4126637555;--wp-admin-theme-color-darker-20:#4c6066;--wp-admin-theme-color-darker-20--rgb:76.1746724891,96.384279476,101.8253275109;--wp-admin-border-width-focus:2px}@media (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:216.8782608696,116.1847826087,37.6217391304;--wp-admin-theme-color-darker-20:#c36922;--wp-admin-theme-color-darker-20--rgb:195.147826087,104.5434782609,33.852173913;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-sunrise{--wp-admin-border-width-focus:1.5px}}#adminmenumain,#wpadminbar{display:none}#wpcontent{margin-left:0}body.js #wpbody{padding-top:0}body{background:#fff}body #wpcontent{padding-left:0}body #wpbody-content{padding-bottom:0}body #wpbody-content>div:not(#gutenberg-posts-dashboard):not(#screen-meta),body #wpfooter{display:none}body .a11y-speak-region{left:-1px;top:-1px}body ul#adminmenu a.wp-has-current-submenu:after,body ul#adminmenu>li.current>a.current:after{border-right-color:#fff}body .media-frame select.attachment-filters:last-of-type{max-width:100%;width:auto}#gutenberg-posts-dashboard{box-sizing:border-box}#gutenberg-posts-dashboard *,#gutenberg-posts-dashboard :after,#gutenberg-posts-dashboard :before{box-sizing:inherit}#gutenberg-posts-dashboard{height:100vh}@media (min-width:600px){#gutenberg-posts-dashboard{bottom:0;left:0;min-height:100vh;position:fixed;right:0;top:0}}.no-js #gutenberg-posts-dashboard{min-height:0;position:static}#gutenberg-posts-dashboard .components-editor-notices__snackbar{bottom:16px;padding-left:16px;padding-right:16px;position:fixed;right:0}
\ No newline at end of file
+@charset "UTF-8";:root{--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:var(--wp-block-synced-color);--wp-editor-canvas-background:#ddd;--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,160.5;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.admin-ui-page{background-color:#fff;color:#2f2f2f;container:admin-ui-page/inline-size;display:flex;flex-flow:column;height:100%;position:relative;z-index:1}@media not (prefers-reduced-motion){.admin-ui-page{transition:width .2s ease-out}}.admin-ui-page__header{background:#fff;border-bottom:1px solid #f0f0f0;padding:16px 48px;position:sticky;top:0}@container (max-width: 430px){.admin-ui-page__header{padding:16px 24px}}.admin-ui-page__header-subtitle{color:#757575;font-family:-apple-system,"system-ui",Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:400;line-height:20px;margin:0;padding-block-end:8px}.admin-ui-page__content{display:flex;flex-direction:column;flex-grow:1;overflow:auto}.admin-ui-page__content.has-padding{padding:16px 20px}@container (max-width: 430px){.admin-ui-page__content.has-padding{padding:16px 24px}}.show-icon-labels .admin-ui-page__header-actions .components-button.has-icon{padding:0 8px;width:auto}.show-icon-labels .admin-ui-page__header-actions .components-button.has-icon svg{display:none}.show-icon-labels .admin-ui-page__header-actions .components-button.has-icon:after{content:attr(aria-label);font-size:12px}.dataviews-picker-wrapper,.dataviews-wrapper{box-sizing:border-box;container:dataviews-wrapper/inline-size;display:flex;flex-direction:column;font-size:13px;height:100%;line-height:1.4;overflow:auto;scroll-padding-bottom:64px}.dataviews-filters__container,.dataviews__view-actions{box-sizing:border-box;flex-shrink:0;left:0;padding:16px 48px;position:sticky}@media not (prefers-reduced-motion){.dataviews-filters__container,.dataviews__view-actions{transition:padding .1s ease-out}}.dataviews-loading,.dataviews-no-results{align-items:center;display:flex;flex-grow:1;justify-content:center;padding:0 48px}@media not (prefers-reduced-motion){.dataviews-loading,.dataviews-no-results{transition:padding .1s ease-out}}.dataviews-loading-more{text-align:center}@container (max-width: 430px){.dataviews-filters__container,.dataviews__view-actions{padding:12px 24px}.dataviews-loading,.dataviews-no-results{padding-left:24px;padding-right:24px}}.dataviews-title-field{font-size:13px;font-weight:500;width:100%}.dataviews-title-field,.dataviews-title-field a{color:#2f2f2f;text-overflow:ellipsis;white-space:nowrap}.dataviews-title-field a{display:block;flex-grow:0;overflow:hidden;text-decoration:none}.dataviews-title-field a:hover{color:var(--wp-admin-theme-color)}.dataviews-title-field a:focus{border-radius:2px;box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color,#007cba);color:var(--wp-admin-theme-color--rgb)}.dataviews-title-field button.components-button.is-link{color:#1e1e1e;display:block;font-weight:inherit;overflow:hidden;text-decoration:none;text-overflow:ellipsis;white-space:nowrap;width:100%}.dataviews-title-field button.components-button.is-link:hover{color:var(--wp-admin-theme-color)}.dataviews-title-field--clickable{color:#2f2f2f;cursor:pointer}.dataviews-title-field--clickable:hover{color:var(--wp-admin-theme-color)}.dataviews-title-field--clickable:focus{border-radius:2px;box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color,#007cba);color:var(--wp-admin-theme-color--rgb)}.components-card__body:has(>.dataviews-picker-wrapper),.components-card__body:has(>.dataviews-wrapper){overflow:hidden;padding:8px 0 0}.components-card__body:has(>.dataviews-picker-wrapper) .dataviews-filters__container,.components-card__body:has(>.dataviews-picker-wrapper) .dataviews-footer,.components-card__body:has(>.dataviews-picker-wrapper) .dataviews-loading,.components-card__body:has(>.dataviews-picker-wrapper) .dataviews-no-results,.components-card__body:has(>.dataviews-picker-wrapper) .dataviews-view-grid,.components-card__body:has(>.dataviews-picker-wrapper) .dataviews__view-actions,.components-card__body:has(>.dataviews-wrapper) .dataviews-filters__container,.components-card__body:has(>.dataviews-wrapper) .dataviews-footer,.components-card__body:has(>.dataviews-wrapper) .dataviews-loading,.components-card__body:has(>.dataviews-wrapper) .dataviews-no-results,.components-card__body:has(>.dataviews-wrapper) .dataviews-view-grid,.components-card__body:has(>.dataviews-wrapper) .dataviews__view-actions{padding-inline:24px}.components-card__body:has(>.dataviews-picker-wrapper) .dataviews-view-table tr td:first-child,.components-card__body:has(>.dataviews-picker-wrapper) .dataviews-view-table tr th:first-child,.components-card__body:has(>.dataviews-wrapper) .dataviews-view-table tr td:first-child,.components-card__body:has(>.dataviews-wrapper) .dataviews-view-table tr th:first-child{padding-inline-start:24px}.components-card__body:has(>.dataviews-picker-wrapper) .dataviews-view-table tr td:last-child,.components-card__body:has(>.dataviews-picker-wrapper) .dataviews-view-table tr th:last-child,.components-card__body:has(>.dataviews-wrapper) .dataviews-view-table tr td:last-child,.components-card__body:has(>.dataviews-wrapper) .dataviews-view-table tr th:last-child{padding-inline-end:24px}.dataviews-bulk-actions-footer__item-count{color:#1e1e1e;font-size:11px;font-weight:500;text-transform:uppercase}.dataviews-bulk-actions-footer__container{margin-right:auto;min-height:32px}.dataviews-filters__button{position:relative}.dataviews-filters__container{padding-top:0}.dataviews-filters__reset-button.dataviews-filters__reset-button[aria-disabled=true],.dataviews-filters__reset-button.dataviews-filters__reset-button[aria-disabled=true]:hover{opacity:0}.dataviews-filters__reset-button.dataviews-filters__reset-button[aria-disabled=true]:focus{opacity:1}.dataviews-filters__summary-popover{font-size:13px;line-height:1.4}.dataviews-filters__summary-popover .components-popover__content{border-radius:4px;max-width:250px;min-width:230px;width:100%}.dataviews-filters__summary-popover.components-dropdown__content .components-popover__content{padding:0}.dataviews-filters__summary-operators-container{padding:8px 16px}.dataviews-filters__summary-operators-container:has(+.dataviews-filters__search-widget-listbox),.dataviews-filters__summary-operators-container:has(+.dataviews-filters__search-widget-no-elements),.dataviews-filters__summary-operators-container:has(+.dataviews-filters__user-input-widget){border-bottom:1px solid #e0e0e0}.dataviews-filters__summary-operators-container:empty{display:none}.dataviews-filters__summary-operators-container .dataviews-filters__summary-operators-filter-name{color:#757575;flex-shrink:0;max-width:calc(100% - 55px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dataviews-filters__summary-operators-container .dataviews-filters__summary-operators-filter-select{overflow:hidden;white-space:nowrap;width:100%}.dataviews-filters__summary-chip-container{position:relative;white-space:pre-wrap}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip{align-items:center;background:#f0f0f0;border:1px solid #0000;border-radius:16px;box-sizing:border-box;color:#2f2f2f;cursor:pointer;display:flex;min-height:32px;padding:4px 12px;position:relative}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.is-not-clickable{cursor:default}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.has-reset{padding-inline-end:28px}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip:focus-visible,.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip:hover:not(.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.is-not-clickable),.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip[aria-expanded=true]{background:#e0e0e0;color:#1e1e1e}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.has-values{background:rgba(var(--wp-admin-theme-color--rgb),.04);color:var(--wp-admin-theme-color)}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.has-values:hover,.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.has-values[aria-expanded=true]{background:rgba(var(--wp-admin-theme-color--rgb),.12)}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip:focus-visible{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:none}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip .dataviews-filters-__summary-filter-text-name{font-weight:500}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove{align-items:center;background:#0000;border:0;border-radius:50%;cursor:pointer;display:flex;height:24px;justify-content:center;padding:0;position:absolute;right:4px;top:50%;transform:translateY(-50%);width:24px}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove svg{fill:#757575}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove:focus,.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove:hover{background:#e0e0e0}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove:focus svg,.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove:hover svg{fill:#1e1e1e}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove.has-values svg{fill:var(--wp-admin-theme-color)}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove.has-values:hover{background:rgba(var(--wp-admin-theme-color--rgb),.08)}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove:focus-visible{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:none}.dataviews-filters__search-widget-filter-combobox-list{border-top:1px solid #e0e0e0;max-height:184px;overflow:auto;padding:4px}.dataviews-filters__search-widget-filter-combobox-list .dataviews-filters__search-widget-filter-combobox-item-value [data-user-value]{font-weight:600}.dataviews-filters__search-widget-listbox{overflow:auto;padding:4px}.dataviews-filters__search-widget-listitem{align-items:center;border-radius:2px;box-sizing:border-box;cursor:default;display:flex;font-family:-apple-system,"system-ui",Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:400;gap:8px;line-height:20px;min-height:32px;padding:4px 12px}.dataviews-filters__search-widget-listitem:last-child{margin-block-end:0}.dataviews-filters__search-widget-listitem:focus,.dataviews-filters__search-widget-listitem:hover,.dataviews-filters__search-widget-listitem[data-active-item]{background-color:var(--wp-admin-theme-color);color:#fff}.dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-description,.dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-description,.dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-description{color:#fff}.dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-single-selection,.dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-single-selection,.dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-single-selection{background:#fff;border-color:var(--wp-admin-theme-color-darker-20,#183ad6)}.dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-single-selection.is-selected,.dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-single-selection.is-selected,.dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-single-selection.is-selected{background:var(--wp-admin-theme-color-darker-20,#183ad6);border-color:var(--wp-admin-theme-color-darker-20,#183ad6)}.dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-multi-selection,.dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-multi-selection,.dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-multi-selection{border-color:var(--wp-admin-theme-color-darker-20,#183ad6)}.dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-multi-selection.is-selected,.dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-multi-selection.is-selected,.dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-multi-selection.is-selected{background:var(--wp-admin-theme-color-darker-20,#183ad6);border-color:var(--wp-admin-theme-color-darker-20,#183ad6)}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-description{color:#757575;display:block;font-size:12px;line-height:16px;overflow:hidden;text-overflow:ellipsis}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection{border:1px solid #1e1e1e;border-radius:50%;height:24px;margin-right:12px;max-width:24px;min-width:24px;position:relative;transition:none;width:24px}@media not (prefers-reduced-motion){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection{transition:box-shadow .1s linear}}@media (min-width:600px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection{height:16px;max-width:16px;min-width:16px;width:16px}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection:checked:before{background-color:#fff;border:4px solid #fff;box-sizing:inherit;height:12px;left:50%;margin:0;position:absolute;top:50%;transform:translate(-50%,-50%);width:12px}@media (min-width:600px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection:checked:before{height:8px;width:8px}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color);outline:2px solid #0000}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection:checked{background:var(--wp-admin-theme-color);border:none}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection{margin:0;padding:0}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection.is-selected{background:var(--wp-admin-theme-color,#3858e9);border-color:var(--wp-admin-theme-color,#3858e9)}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection.is-selected:before{background-color:#fff;border:4px solid #fff;border-radius:50%;box-sizing:inherit;content:"";height:12px;left:50%;margin:0;position:absolute;top:50%;transform:translate(-50%,-50%);width:12px}@media (min-width:600px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection.is-selected:before{height:8px;width:8px}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection{--checkbox-size:24px;border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 #0000;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:normal;margin-right:12px;padding:6px 8px;transition:none}@media not (prefers-reduced-motion){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection{transition:box-shadow .1s linear}}@media (min-width:600px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection{font-size:13px;line-height:normal}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color)}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection::-webkit-input-placeholder{color:#1e1e1e9e}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection::-moz-placeholder{color:#1e1e1e9e}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:-ms-input-placeholder{color:#1e1e1e9e}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color);outline:2px solid #0000}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:checked{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:checked::-ms-check{opacity:0}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:checked:before,.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-checked=mixed]:before{color:#fff;margin:-3px -5px}@media (min-width:782px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:checked:before,.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-checked=mixed]:before{margin:-4px 0 0 -5px}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-checked=mixed]{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-checked=mixed]:before{content:"\f460";display:inline-block;float:left;font:normal 30px/1 dashicons;vertical-align:middle;width:16px;speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (min-width:782px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-checked=mixed]:before{float:none;font-size:21px}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:disabled,.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-disabled=true]{background:#f0f0f0;border-color:#ddd;cursor:default;opacity:1}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection{background:#fff;color:#1e1e1e;height:var(--checkbox-size);margin:0;padding:0;position:relative;width:var(--checkbox-size)}@media (min-width:600px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection{--checkbox-size:16px}}@media not (prefers-reduced-motion){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection{transition:border-color .1s ease-in-out}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection.is-selected{background:var(--wp-admin-theme-color,#3858e9);border-color:var(--wp-admin-theme-color,#3858e9)}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection.is-selected svg{--checkmark-size:var(--checkbox-size);fill:#fff;height:var(--checkmark-size);left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:var(--checkmark-size)}@media (min-width:600px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection.is-selected svg{--checkmark-size:calc(var(--checkbox-size) + 4px)}}.dataviews-filters__search-widget-filter-combobox__wrapper{padding:8px;position:relative}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input{border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 #0000;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;line-height:normal;padding:6px 8px}@media not (prefers-reduced-motion){.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input{transition:box-shadow .1s linear}}@media (min-width:600px){.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input{font-size:13px;line-height:normal}}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid #0000}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-webkit-input-placeholder{color:#1e1e1e9e}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-moz-placeholder{color:#1e1e1e9e}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input:-ms-input-placeholder{color:#1e1e1e9e}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input{display:block;font-size:16px;height:32px;margin-left:0;margin-right:0;padding:0 8px 0 32px;width:100%}@media (min-width:600px){.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input{font-size:13px}}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input:focus{background:#fff;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::placeholder{color:#757575}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-webkit-search-cancel-button,.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-webkit-search-decoration,.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-webkit-search-results-button,.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-webkit-search-results-decoration{-webkit-appearance:none}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__icon{align-items:center;bottom:0;display:flex;inset-inline-start:12px;justify-content:center;position:absolute;top:0;width:24px}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__icon:dir(ltr){transform:scaleX(-1)}.dataviews-filters__container-visibility-toggle{flex-shrink:0;position:relative}.dataviews-filters-toggle__count{background:var(--wp-admin-theme-color,#3858e9);border-radius:8px;box-sizing:border-box;color:#fff;font-size:11px;height:16px;line-height:16px;min-width:16px;outline:var(--wp-admin-border-width-focus) solid #fff;padding:0 4px;position:absolute;right:0;text-align:center;top:0;transform:translate(50%,-50%)}.dataviews-search{width:fit-content}.dataviews-filters__user-input-widget{padding:16px}.dataviews-filters__user-input-widget .components-input-control__prefix{padding-left:8px}.dataviews-filters__search-widget-no-elements{align-items:center;display:flex;justify-content:center;padding:16px}.dataviews-footer{background-color:#fff;border-top:1px solid #f0f0f0;bottom:0;flex-shrink:0;left:0;padding:12px 48px;position:sticky}@media not (prefers-reduced-motion){.dataviews-footer{transition:padding .1s ease-out}}.dataviews-footer{z-index:2}@container (max-width: 430px){.dataviews-footer{padding:12px 24px}}@container (max-width: 560px){.dataviews-footer{flex-direction:column!important}.dataviews-footer .dataviews-bulk-actions-footer__container{width:100%}.dataviews-footer .dataviews-bulk-actions-footer__item-count{flex-grow:1}.dataviews-footer .dataviews-pagination{justify-content:space-between;width:100%}}.dataviews-pagination__page-select{font-size:11px;font-weight:500;text-transform:uppercase}@media (min-width:600px){.dataviews-pagination__page-select .components-select-control__input{font-size:11px!important;font-weight:500}}.dataviews-action-modal{z-index:1000001}.dataviews-picker-footer__bulk-selection{align-self:flex-start;height:32px}.dataviews-picker-footer__actions{align-self:flex-end}.dataviews-selection-checkbox{--checkbox-input-size:24px}@media (min-width:600px){.dataviews-selection-checkbox{--checkbox-input-size:16px}}.dataviews-selection-checkbox{flex-shrink:0;line-height:0}.dataviews-selection-checkbox .components-checkbox-control__input-container{margin:0}.dataviews-view-config{container-type:inline-size;font-size:13px;line-height:1.4;width:320px}.dataviews-config__popover.is-expanded .dataviews-config__popover-content-wrapper{height:100%;overflow-y:scroll}.dataviews-config__popover.is-expanded .dataviews-config__popover-content-wrapper .dataviews-view-config{width:auto}.dataviews-view-config__sort-direction .components-toggle-group-control-option-base{text-transform:uppercase}.dataviews-settings-section__title.dataviews-settings-section__title{font-size:15px;line-height:24px}.dataviews-settings-section__sidebar{grid-column:span 4}.dataviews-settings-section__content,.dataviews-settings-section__content>*{grid-column:span 8}.dataviews-settings-section__content .is-divided-in-two{display:contents}.dataviews-settings-section__content .is-divided-in-two>*{grid-column:span 4}.dataviews-settings-section:has(.dataviews-settings-section__content:empty){display:none}@container (max-width: 500px){.dataviews-settings-section.dataviews-settings-section{grid-template-columns:repeat(2,1fr)}.dataviews-settings-section.dataviews-settings-section .dataviews-settings-section__content,.dataviews-settings-section.dataviews-settings-section .dataviews-settings-section__sidebar{grid-column:span 2}}.dataviews-field-control__field{height:32px}.dataviews-field-control__actions{position:absolute;top:-9999em}.dataviews-field-control__actions.dataviews-field-control__actions{gap:4px}.dataviews-field-control__field.is-interacting .dataviews-field-control__actions,.dataviews-field-control__field:focus-within .dataviews-field-control__actions,.dataviews-field-control__field:hover .dataviews-field-control__actions{position:unset;top:unset}.dataviews-field-control__icon{display:flex;width:24px}.dataviews-field-control__label-sub-label-container{flex-grow:1}.dataviews-field-control__label{display:block}.dataviews-field-control__sub-label{color:#757575;font-size:11px;font-style:normal;margin-bottom:0;margin-top:8px}.dataviews-view-grid-items{container-type:inline-size;display:grid;gap:32px;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));grid-template-rows:max-content;margin-bottom:auto;padding:0 48px 24px}@container (max-width: 430px){.dataviews-view-grid-items{padding-left:24px;padding-right:24px}}@media not (prefers-reduced-motion){.dataviews-view-grid-items{transition:padding .1s ease-out}}.dataviews-view-grid .dataviews-view-grid__card{height:100%;justify-content:flex-start;position:relative}.dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__title-actions{padding:8px 0 4px}.dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__title-field{align-content:center;min-height:24px;overflow:hidden;text-align:start}.dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__title-field--clickable{width:fit-content}.dataviews-view-grid .dataviews-view-grid__card.is-selected .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-value{color:#1e1e1e}.dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__media:focus:after,.dataviews-view-grid .dataviews-view-grid__card.is-selected .dataviews-view-grid__media:after{background-color:rgba(var(--wp-admin-theme-color--rgb),.08)}.dataviews-view-grid .dataviews-view-grid__card.is-selected .dataviews-view-grid__media:after{box-shadow:inset 0 0 0 1px var(--wp-admin-theme-color)}.dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__media:focus:after{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.dataviews-view-grid .dataviews-view-grid__media{aspect-ratio:1/1;background-color:#fff;border-radius:4px;overflow:hidden;position:relative;width:100%}.dataviews-view-grid .dataviews-view-grid__media img{height:100%;object-fit:cover;width:100%}.dataviews-view-grid .dataviews-view-grid__media:after{border-radius:4px;box-shadow:inset 0 0 0 1px #0000001a;content:"";height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%}.dataviews-view-grid .dataviews-view-grid__fields{font-size:12px;line-height:16px;position:relative}.dataviews-view-grid .dataviews-view-grid__fields:not(:empty){padding:0 0 12px}.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field-value:not(:empty){line-height:20px;min-height:24px;padding-top:2px}.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field{align-items:center;min-height:24px}.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-name{color:#757575;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:35%}.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:65%}.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field:not(:has(.dataviews-view-grid__field-value:not(:empty))){display:none}.dataviews-view-grid .dataviews-view-grid__badge-fields:not(:empty){padding-bottom:12px}.dataviews-view-grid__field-value:empty,.dataviews-view-grid__field:empty{display:none}.dataviews-view-grid__card .dataviews-selection-checkbox{left:8px;opacity:0;position:absolute;top:-9999em;z-index:1}@media not (prefers-reduced-motion){.dataviews-view-grid__card .dataviews-selection-checkbox{transition:opacity .1s linear}}@media (hover:none){.dataviews-view-grid__card .dataviews-selection-checkbox{opacity:1;top:8px}}.dataviews-view-grid__card.is-selected .dataviews-selection-checkbox,.dataviews-view-grid__card:focus-within .dataviews-selection-checkbox,.dataviews-view-grid__card:hover .dataviews-selection-checkbox{opacity:1;top:8px}.dataviews-view-grid__card .dataviews-view-grid__media-actions{opacity:0;position:absolute;right:4px;top:4px}.dataviews-view-grid__card .dataviews-view-grid__media-actions .dataviews-all-actions-button{background-color:#fff}@media not (prefers-reduced-motion){.dataviews-view-grid__card .dataviews-view-grid__media-actions{transition:opacity .1s linear}}@media (hover:none){.dataviews-view-grid__card .dataviews-view-grid__media-actions{opacity:1;top:4px}}.dataviews-view-grid__card .dataviews-view-grid__media-actions:has(.dataviews-all-actions-button[aria-expanded=true]),.dataviews-view-grid__card:focus-within .dataviews-view-grid__media-actions,.dataviews-view-grid__card:hover .dataviews-view-grid__media-actions{opacity:1}.dataviews-view-grid__media--clickable{cursor:pointer}.dataviews-view-grid__group-header{color:#1e1e1e;container-type:inline-size;font-size:15px;font-weight:500;margin:0 0 8px;padding:0 48px}@container (max-width: 430px){.dataviews-view-grid__group-header{padding-left:24px;padding-right:24px}}div.dataviews-view-list{list-style-type:none}.dataviews-view-list{margin:0 0 auto}.dataviews-view-list div[role=article],.dataviews-view-list div[role=row]{border-top:1px solid #f0f0f0;margin:0}.dataviews-view-list div[role=article] .dataviews-view-list__item-wrapper,.dataviews-view-list div[role=row] .dataviews-view-list__item-wrapper{box-sizing:border-box;padding:16px 24px;position:relative}.dataviews-view-list div[role=article] .dataviews-view-list__item-actions,.dataviews-view-list div[role=row] .dataviews-view-list__item-actions{display:flex;flex:0 0 auto;gap:4px;white-space:nowrap;width:max-content}.dataviews-view-list div[role=article] .dataviews-view-list__item-actions .components-button,.dataviews-view-list div[role=row] .dataviews-view-list__item-actions .components-button{position:relative;z-index:1}.dataviews-view-list div[role=article] .dataviews-view-list__item-actions>div,.dataviews-view-list div[role=row] .dataviews-view-list__item-actions>div{height:24px}.dataviews-view-list div[role=article] .dataviews-view-list__item-actions>:not(:last-child),.dataviews-view-list div[role=row] .dataviews-view-list__item-actions>:not(:last-child){flex:0;overflow:hidden;width:0}.dataviews-view-list div[role=article]:where(.is-selected,.is-hovered,:focus-within) .dataviews-view-list__item-actions>:not(:last-child),.dataviews-view-list div[role=row]:where(.is-selected,.is-hovered,:focus-within) .dataviews-view-list__item-actions>:not(:last-child){flex-basis:min-content;overflow:unset;width:auto}@media (hover:none){.dataviews-view-list div[role=article] .dataviews-view-list__item-actions>:not(:last-child),.dataviews-view-list div[role=row] .dataviews-view-list__item-actions>:not(:last-child){flex-basis:min-content;overflow:unset;width:auto}}.dataviews-view-list div[role=article].is-selected.is-selected,.dataviews-view-list div[role=article].is-selected.is-selected+div[role=article],.dataviews-view-list div[role=article].is-selected.is-selected+div[role=row],.dataviews-view-list div[role=row].is-selected.is-selected,.dataviews-view-list div[role=row].is-selected.is-selected+div[role=article],.dataviews-view-list div[role=row].is-selected.is-selected+div[role=row]{border-top:1px solid rgba(var(--wp-admin-theme-color--rgb),.12)}.dataviews-view-list div[role=article]:not(.is-selected) .dataviews-view-list__title-field,.dataviews-view-list div[role=row]:not(.is-selected) .dataviews-view-list__title-field{color:#1e1e1e}.dataviews-view-list div[role=article]:not(.is-selected).is-hovered,.dataviews-view-list div[role=article]:not(.is-selected):focus-within,.dataviews-view-list div[role=article]:not(.is-selected):hover,.dataviews-view-list div[role=row]:not(.is-selected).is-hovered,.dataviews-view-list div[role=row]:not(.is-selected):focus-within,.dataviews-view-list div[role=row]:not(.is-selected):hover{background-color:#f8f8f8;color:var(--wp-admin-theme-color)}.dataviews-view-list div[role=article]:not(.is-selected).is-hovered .dataviews-view-list__fields,.dataviews-view-list div[role=article]:not(.is-selected).is-hovered .dataviews-view-list__title-field,.dataviews-view-list div[role=article]:not(.is-selected):focus-within .dataviews-view-list__fields,.dataviews-view-list div[role=article]:not(.is-selected):focus-within .dataviews-view-list__title-field,.dataviews-view-list div[role=article]:not(.is-selected):hover .dataviews-view-list__fields,.dataviews-view-list div[role=article]:not(.is-selected):hover .dataviews-view-list__title-field,.dataviews-view-list div[role=row]:not(.is-selected).is-hovered .dataviews-view-list__fields,.dataviews-view-list div[role=row]:not(.is-selected).is-hovered .dataviews-view-list__title-field,.dataviews-view-list div[role=row]:not(.is-selected):focus-within .dataviews-view-list__fields,.dataviews-view-list div[role=row]:not(.is-selected):focus-within .dataviews-view-list__title-field,.dataviews-view-list div[role=row]:not(.is-selected):hover .dataviews-view-list__fields,.dataviews-view-list div[role=row]:not(.is-selected):hover .dataviews-view-list__title-field{color:var(--wp-admin-theme-color)}.dataviews-view-list div[role=article].is-selected .dataviews-view-list__item-wrapper,.dataviews-view-list div[role=article].is-selected:focus-within .dataviews-view-list__item-wrapper,.dataviews-view-list div[role=row].is-selected .dataviews-view-list__item-wrapper,.dataviews-view-list div[role=row].is-selected:focus-within .dataviews-view-list__item-wrapper{background-color:rgba(var(--wp-admin-theme-color--rgb),.04);color:#1e1e1e}.dataviews-view-list div[role=article].is-selected .dataviews-view-list__item-wrapper .dataviews-view-list__fields,.dataviews-view-list div[role=article].is-selected .dataviews-view-list__item-wrapper .dataviews-view-list__title-field,.dataviews-view-list div[role=article].is-selected:focus-within .dataviews-view-list__item-wrapper .dataviews-view-list__fields,.dataviews-view-list div[role=article].is-selected:focus-within .dataviews-view-list__item-wrapper .dataviews-view-list__title-field,.dataviews-view-list div[role=row].is-selected .dataviews-view-list__item-wrapper .dataviews-view-list__fields,.dataviews-view-list div[role=row].is-selected .dataviews-view-list__item-wrapper .dataviews-view-list__title-field,.dataviews-view-list div[role=row].is-selected:focus-within .dataviews-view-list__item-wrapper .dataviews-view-list__fields,.dataviews-view-list div[role=row].is-selected:focus-within .dataviews-view-list__item-wrapper .dataviews-view-list__title-field{color:var(--wp-admin-theme-color)}.dataviews-view-list .dataviews-view-list__item{appearance:none;background:none;border:none;cursor:pointer;inset:0;padding:0;position:absolute;scroll-margin:8px 0;z-index:1}.dataviews-view-list .dataviews-view-list__item:focus-visible{outline:none}.dataviews-view-list .dataviews-view-list__item:focus-visible:before{border-radius:2px;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);content:"";inset:var(--wp-admin-border-width-focus);outline:2px solid #0000;position:absolute}.dataviews-view-list .dataviews-view-list__title-field{flex:1;line-height:24px;min-height:24px;overflow:hidden}.dataviews-view-list .dataviews-view-list__title-field:has(a,button){z-index:1}.dataviews-view-list .dataviews-view-list__media-wrapper{background-color:#fff;border-radius:4px;flex-shrink:0;height:52px;overflow:hidden;position:relative;width:52px}.dataviews-view-list .dataviews-view-list__media-wrapper img{height:100%;object-fit:cover;width:100%}.dataviews-view-list .dataviews-view-list__media-wrapper:after{border-radius:4px;box-shadow:inset 0 0 0 1px #0000001a;content:"";height:100%;left:0;position:absolute;top:0;width:100%}.dataviews-view-list .dataviews-view-list__field-wrapper{flex-grow:1;min-height:52px}.dataviews-view-list .dataviews-view-list__fields{color:#757575;display:flex;flex-wrap:wrap;font-size:12px;gap:12px;row-gap:4px}.dataviews-view-list .dataviews-view-list__fields .dataviews-view-list__field:has(.dataviews-view-list__field-value:empty),.dataviews-view-list .dataviews-view-list__fields:empty{display:none}.dataviews-view-list .dataviews-view-list__fields .dataviews-view-list__field-value{align-items:center;display:flex;line-height:20px;min-height:24px}.dataviews-view-list+.dataviews-pagination{justify-content:space-between}.dataviews-view-list__group-header{color:#1e1e1e;font-size:15px;font-weight:500;margin:0 0 8px;padding:0 24px}.dataviews-view-table{border-collapse:collapse;border-color:inherit;color:#757575;margin-bottom:auto;position:relative;text-indent:0;width:100%}.dataviews-view-table th{color:#1e1e1e;font-size:13px;font-weight:400;text-align:left}.dataviews-view-table td,.dataviews-view-table th{padding:12px}.dataviews-view-table td.dataviews-view-table__actions-column,.dataviews-view-table th.dataviews-view-table__actions-column{text-align:right}.dataviews-view-table td.dataviews-view-table__actions-column--sticky,.dataviews-view-table th.dataviews-view-table__actions-column--sticky{background-color:#fff;position:sticky;right:0}.dataviews-view-table td.dataviews-view-table__actions-column--stuck:after,.dataviews-view-table th.dataviews-view-table__actions-column--stuck:after{background-color:#f0f0f0;bottom:0;content:"";display:block;left:0;position:absolute;top:0;width:1px}.dataviews-view-table td.dataviews-view-table__checkbox-column,.dataviews-view-table th.dataviews-view-table__checkbox-column{padding-right:0}.dataviews-view-table td.dataviews-view-table__checkbox-column .dataviews-view-table__cell-content-wrapper,.dataviews-view-table th.dataviews-view-table__checkbox-column .dataviews-view-table__cell-content-wrapper{max-width:auto;min-width:auto}.dataviews-view-table tr{border-top:1px solid #f0f0f0}.dataviews-view-table tr .dataviews-view-table-header-button{gap:4px}.dataviews-view-table tr td:first-child,.dataviews-view-table tr th:first-child{padding-left:48px}.dataviews-view-table tr td:first-child .dataviews-view-table-header-button,.dataviews-view-table tr th:first-child .dataviews-view-table-header-button{margin-left:-8px}.dataviews-view-table tr td:last-child,.dataviews-view-table tr th:last-child{padding-right:48px}.dataviews-view-table tr:last-child{border-bottom:0}.dataviews-view-table tr.is-hovered,.dataviews-view-table tr.is-hovered .dataviews-view-table__actions-column--sticky{background-color:#f8f8f8}.dataviews-view-table tr .components-checkbox-control__input.components-checkbox-control__input{opacity:0}.dataviews-view-table tr .components-checkbox-control__input.components-checkbox-control__input:checked,.dataviews-view-table tr .components-checkbox-control__input.components-checkbox-control__input:focus,.dataviews-view-table tr .components-checkbox-control__input.components-checkbox-control__input:indeterminate{opacity:1}.dataviews-view-table tr .dataviews-item-actions .components-button:not(.dataviews-all-actions-button){opacity:0}.dataviews-view-table tr.is-hovered .components-checkbox-control__input,.dataviews-view-table tr.is-hovered .dataviews-item-actions .components-button:not(.dataviews-all-actions-button),.dataviews-view-table tr:focus-within .components-checkbox-control__input,.dataviews-view-table tr:focus-within .dataviews-item-actions .components-button:not(.dataviews-all-actions-button),.dataviews-view-table tr:hover .components-checkbox-control__input,.dataviews-view-table tr:hover .dataviews-item-actions .components-button:not(.dataviews-all-actions-button){opacity:1}@media (hover:none){.dataviews-view-table tr .components-checkbox-control__input.components-checkbox-control__input,.dataviews-view-table tr .dataviews-item-actions .components-button:not(.dataviews-all-actions-button){opacity:1}}.dataviews-view-table tr.is-selected{background-color:rgba(var(--wp-admin-theme-color--rgb),.04);color:#757575}.dataviews-view-table tr.is-selected,.dataviews-view-table tr.is-selected+tr{border-top:1px solid rgba(var(--wp-admin-theme-color--rgb),.12)}.dataviews-view-table tr.is-selected:hover{background-color:rgba(var(--wp-admin-theme-color--rgb),.08)}.dataviews-view-table tr.is-selected .dataviews-view-table__actions-column--sticky{background-color:color-mix(in srgb,rgb(var(--wp-admin-theme-color--rgb)) 4%,#fff)}.dataviews-view-table tr.is-selected:hover .dataviews-view-table__actions-column--sticky{background-color:color-mix(in srgb,rgb(var(--wp-admin-theme-color--rgb)) 8%,#fff)}.dataviews-view-table thead{inset-block-start:0;position:sticky;z-index:1}.dataviews-view-table thead tr{border:0}.dataviews-view-table thead tr .components-checkbox-control__input.components-checkbox-control__input{opacity:1}.dataviews-view-table thead th{background-color:#fff;font-size:11px;font-weight:500;padding-bottom:8px;padding-left:12px;padding-top:8px;text-transform:uppercase}.dataviews-view-table thead th:has(.dataviews-view-table-header-button):not(:first-child){padding-left:4px}.dataviews-view-table tbody td{vertical-align:top}.dataviews-view-table tbody .dataviews-view-table__cell-content-wrapper{align-items:center;display:flex;min-height:32px;white-space:nowrap}.dataviews-view-table tbody .dataviews-view-table__cell-content-wrapper.dataviews-view-table__cell-align-end{justify-content:flex-end}.dataviews-view-table tbody .dataviews-view-table__cell-content-wrapper.dataviews-view-table__cell-align-center{justify-content:center}.dataviews-view-table tbody .components-v-stack>.dataviews-view-table__cell-content-wrapper:not(:first-child){min-height:0}.dataviews-view-table .dataviews-view-table-header-button{font-size:11px;font-weight:500;padding:4px 8px;text-transform:uppercase}.dataviews-view-table .dataviews-view-table-header-button:not(:hover){color:#1e1e1e}.dataviews-view-table .dataviews-view-table-header-button span{speak:none}.dataviews-view-table .dataviews-view-table-header-button span:empty{display:none}.dataviews-view-table .dataviews-view-table-header{padding-left:4px}.dataviews-view-table .dataviews-view-table__actions-column{white-space:nowrap;width:auto}.dataviews-view-table:has(tr.is-selected) .components-checkbox-control__input{opacity:1}.dataviews-view-table.has-compact-density thead th:has(.dataviews-view-table-header-button):not(:first-child){padding-left:0}.dataviews-view-table.has-compact-density td,.dataviews-view-table.has-compact-density th{padding:4px 8px}.dataviews-view-table.has-comfortable-density td,.dataviews-view-table.has-comfortable-density th{padding:16px 12px}.dataviews-view-table.has-comfortable-density td.dataviews-view-table__checkbox-column,.dataviews-view-table.has-comfortable-density th.dataviews-view-table__checkbox-column,.dataviews-view-table.has-compact-density td.dataviews-view-table__checkbox-column,.dataviews-view-table.has-compact-density th.dataviews-view-table__checkbox-column{padding-right:0}@container (max-width: 430px){.dataviews-view-table tr td:first-child,.dataviews-view-table tr th:first-child{padding-left:24px}.dataviews-view-table tr td:last-child,.dataviews-view-table tr th:last-child{padding-right:24px}}.dataviews-view-table-selection-checkbox{--checkbox-input-size:24px}@media (min-width:600px){.dataviews-view-table-selection-checkbox{--checkbox-input-size:16px}}.dataviews-column-primary__media{background-color:#fff;border-radius:4px;flex-shrink:0;max-width:60px;overflow:hidden;position:relative}.dataviews-column-primary__media img{height:100%;object-fit:cover;width:100%}.dataviews-column-primary__media:after{border-radius:4px;box-shadow:inset 0 0 0 1px #0000001a;content:"";height:100%;left:0;position:absolute;top:0;width:100%}.dataviews-view-table__cell-content-wrapper:not(.dataviews-column-primary__media),.dataviews-view-table__primary-column-content:not(.dataviews-column-primary__media){max-width:80ch;min-width:15ch}.dataviews-view-table__group-header-row .dataviews-view-table__group-header-cell{color:#1e1e1e;font-weight:500;padding:12px 48px}.dataviews-view-table col[class^=dataviews-view-table__col-]:not(.dataviews-view-table__col-primary){width:1%}.dataviews-view-picker-grid .dataviews-view-picker-grid__card{height:100%;justify-content:flex-start;position:relative}.dataviews-view-picker-grid .dataviews-view-picker-grid__card .dataviews-view-picker-grid__title-actions{padding:8px 0 4px}.dataviews-view-picker-grid .dataviews-view-picker-grid__card .dataviews-view-picker-grid__title-field{align-content:center;min-height:24px;overflow:hidden;text-align:start}.dataviews-view-picker-grid .dataviews-view-picker-grid__card .dataviews-view-picker-grid__title-field--clickable{width:fit-content}.dataviews-view-picker-grid .dataviews-view-picker-grid__card.is-selected .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field .dataviews-view-picker-grid__field-value{color:#1e1e1e}.dataviews-view-picker-grid .dataviews-view-picker-grid__card .dataviews-view-picker-grid__media:focus:after,.dataviews-view-picker-grid .dataviews-view-picker-grid__card.is-selected .dataviews-view-picker-grid__media:after{background-color:rgba(var(--wp-admin-theme-color--rgb),.08)}.dataviews-view-picker-grid .dataviews-view-picker-grid__card.is-selected .dataviews-view-picker-grid__media:after{box-shadow:inset 0 0 0 1px var(--wp-admin-theme-color)}.dataviews-view-picker-grid .dataviews-view-picker-grid__card .dataviews-view-picker-grid__media:focus:after{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.dataviews-view-picker-grid:focus-visible[aria-activedescendant]{outline:none}.dataviews-view-picker-grid:focus-visible [data-active-item=true]{outline:2px solid var(--wp-admin-theme-color)}.dataviews-view-picker-grid .dataviews-selection-checkbox{top:8px!important}.dataviews-view-picker-grid .dataviews-selection-checkbox input{pointer-events:none}.dataviews-view-picker-grid .dataviews-view-picker-grid__media{aspect-ratio:1/1;background-color:#fff;border-radius:4px;position:relative;width:100%}.dataviews-view-picker-grid .dataviews-view-picker-grid__media img{height:100%;object-fit:cover;width:100%}.dataviews-view-picker-grid .dataviews-view-picker-grid__media:after{border-radius:4px;box-shadow:inset 0 0 0 1px #0000001a;content:"";height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields{font-size:12px;line-height:16px;position:relative}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields:not(:empty){padding:0 0 12px}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field-value:not(:empty){line-height:20px;min-height:24px;padding-top:2px}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field{align-items:center;min-height:24px}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field .dataviews-view-picker-grid__field-name{color:#757575;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:35%}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field .dataviews-view-picker-grid__field-value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:65%}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field:not(:has(.dataviews-view-picker-grid__field-value:not(:empty))){display:none}.dataviews-view-picker-grid .dataviews-view-picker-grid__badge-fields:not(:empty){padding-bottom:12px}.dataviews-view-picker-grid__field-value:empty,.dataviews-view-picker-grid__field:empty{display:none}.dataviews-view-picker-grid__card .dataviews-selection-checkbox{left:8px;position:absolute;top:-9999em;z-index:1}@media (hover:none){.dataviews-view-picker-grid__card .dataviews-selection-checkbox{top:8px}}.dataviews-view-picker-grid__card.is-selected .dataviews-selection-checkbox,.dataviews-view-picker-grid__card:focus-within .dataviews-selection-checkbox,.dataviews-view-picker-grid__card:hover .dataviews-selection-checkbox{top:8px}.dataviews-view-picker-grid__media--clickable{cursor:pointer}.dataviews-view-picker-grid-group__header{color:#1e1e1e;font-size:15px;font-weight:500;margin:0 0 8px;padding:0 48px}.dataviews-controls__datetime{border:none;padding:0}.dataviews-controls__relative-date-number,.dataviews-controls__relative-date-unit{flex:1 1 50%}.dataviews-controls__date input[type=date]::-webkit-calendar-picker-indicator,.dataviews-controls__date input[type=date]::-webkit-inner-spin-button{-webkit-appearance:none;display:none}.dataviews-controls__date-preset{border:1px solid #ddd}.dataviews-controls__date-preset:active{background-color:#000}.dataforms-layouts-panel__field{align-items:flex-start!important;justify-content:flex-start!important;min-height:32px;width:100%}.dataforms-layouts-panel__field-label{align-items:center;display:flex;flex-shrink:0;hyphens:auto;line-height:20px;min-height:32px;width:38%}.dataforms-layouts-panel__field-label--label-position-side{align-self:center}.dataforms-layouts-panel__field-control{align-items:center;display:flex;flex-grow:1;min-height:32px}.dataforms-layouts-panel__field-control .components-button{max-width:100%;min-height:32px;text-align:left;text-wrap:balance;text-wrap:pretty;white-space:normal}.dataforms-layouts-panel__field-control.components-button.is-link[aria-disabled=true]{text-decoration:none}.dataforms-layouts-panel__field-control .components-dropdown{max-width:100%}.dataforms-layouts-panel__field-dropdown .components-popover__content{min-width:320px;padding:16px}.dataforms-layouts-panel__dropdown-header{margin-bottom:16px}.dataforms-layouts-panel__modal-footer{margin-top:16px}.components-popover.components-dropdown__content.dataforms-layouts-panel__field-dropdown{z-index:159990}.dataforms-layouts-regular__field{align-items:flex-start!important;justify-content:flex-start!important;min-height:32px;width:100%}.dataforms-layouts-regular__field-label{align-items:center;display:flex;flex-shrink:0;hyphens:auto;line-height:20px;min-height:32px;width:38%}.dataforms-layouts-regular__field-label--label-position-side{align-self:center}.dataforms-layouts-regular__field-control{align-items:center;display:flex;flex-grow:1;min-height:32px}.dataforms-layouts-card__field-header-label{font-family:-apple-system,"system-ui",Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:15px;font-weight:500;line-height:20px}.dataforms-layouts-card__field{width:100%}.dataforms-layouts-card__field-description{color:#757575;display:block;font-size:13px;margin-bottom:16px}.dataforms-layouts-card__field-summary{display:flex;flex-direction:row;gap:16px}.dataforms-layouts-row__field-control{width:100%}.dataforms-layouts__wrapper{font-family:-apple-system,"system-ui",Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:400;line-height:20px}.edit-site-layout{color:#ccc;display:flex;flex-direction:column;height:100%}.edit-site-layout,.edit-site-layout:not(.is-full-canvas) .editor-visual-editor{background:#1e1e1e}.edit-site-layout__content{display:flex;flex-grow:1;height:100%}.edit-site-layout__sidebar-region{flex-shrink:0;width:100vw;z-index:1}@media (min-width:782px){.edit-site-layout__sidebar-region{width:300px}}.edit-site-layout.is-full-canvas .edit-site-layout__sidebar-region{height:100vh;left:0;position:fixed!important;top:0}.edit-site-layout__sidebar-region .edit-site-layout__sidebar{display:flex;flex-direction:column;height:100%}.edit-site-layout__sidebar-region .resizable-editor__drag-handle{right:0}.edit-site-layout__main{display:flex;flex-direction:column;flex-grow:1;overflow:hidden}.edit-site-layout__mobile{display:flex;flex-direction:column;position:relative;width:100%;z-index:2}.edit-site-layout__mobile .edit-site-sidebar__screen-wrapper{padding:0}.edit-site-layout__mobile .edit-site-sidebar-navigation-screen__main{padding:0 12px}.edit-site-layout__canvas-container{flex-grow:1;overflow:visible;position:relative;z-index:2}.edit-site-layout__canvas-container.is-resizing:after{bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:100}.edit-site-layout__canvas{align-items:center;bottom:0;display:flex;justify-content:center;left:0;position:absolute;top:0;width:100%}.edit-site-layout__canvas.is-right-aligned{justify-content:flex-end}.edit-site-layout__canvas .edit-site-resizable-frame__inner{color:#1e1e1e}@media (min-width:782px){.edit-site-layout__canvas{bottom:16px;top:16px;width:calc(100% - 16px)}.edit-site-layout__canvas .edit-site-resizable-frame__inner-content{box-shadow:0 1px 1px #00000008,0 1px 2px #00000005,0 3px 3px #00000005,0 4px 4px #00000003;overflow:hidden}}@media (min-width:782px) and (not (prefers-reduced-motion)){.edit-site-layout__canvas .edit-site-resizable-frame__inner-content{transition:border-radius,box-shadow .4s}}@media (min-width:782px){.edit-site-layout:not(.is-full-canvas) .edit-site-layout__canvas .edit-site-resizable-frame__inner-content{border-radius:8px}.edit-site-layout__canvas .edit-site-resizable-frame__inner-content:hover{box-shadow:0 5px 15px #00000014,0 15px 27px #00000012,0 30px 36px #0000000a,0 50px 43px #00000005}}.edit-site-layout.is-full-canvas .edit-site-layout__canvas{bottom:0;top:0;width:100%}.edit-site-layout__canvas .interface-interface-skeleton,.edit-site-layout__mobile .interface-interface-skeleton,.edit-site-template-pages-preview .interface-interface-skeleton{min-height:100%!important;position:relative!important}.edit-site-template-pages-preview{height:100%}html.canvas-mode-edit-transition::view-transition-group(toggle){animation-delay:255ms}@media (prefers-reduced-motion){::view-transition-group(*),::view-transition-new(*),::view-transition-old(*){animation:none!important}}.edit-site-layout.is-full-canvas .edit-site-layout__sidebar-region .edit-site-layout__view-mode-toggle{display:none}.edit-site-layout__view-mode-toggle.components-button{view-transition-name:toggle;align-items:center;background:#1e1e1e;border-radius:0;color:#fff;display:flex;height:64px;justify-content:center;overflow:hidden;padding:0;position:relative;width:64px}.edit-site-layout__view-mode-toggle.components-button:active,.edit-site-layout__view-mode-toggle.components-button:hover{color:#fff}.edit-site-layout__view-mode-toggle.components-button:focus,.edit-site-layout__view-mode-toggle.components-button:focus-visible{box-shadow:0 0 0 3px #1e1e1e,0 0 0 6px var(--wp-admin-theme-color);outline:4px solid #0000;outline-offset:4px}.edit-site-layout__view-mode-toggle.components-button:before{border-radius:4px;bottom:9px;box-shadow:none;content:"";display:block;left:17px;position:absolute;right:9px;top:9px}@media not (prefers-reduced-motion){.edit-site-layout__view-mode-toggle.components-button:before{transition:box-shadow .1s ease}}.edit-site-layout__view-mode-toggle.components-button .edit-site-layout__view-mode-toggle-icon{align-items:center;display:flex;height:64px;justify-content:center;width:64px}.edit-site-layout__actions{background:#fff;bottom:auto;color:#1e1e1e;left:auto;position:fixed!important;right:0;top:-9999em;width:280px;z-index:100000}.edit-site-layout__actions:focus,.edit-site-layout__actions:focus-within{bottom:0;top:auto}.edit-site-layout__actions.is-entity-save-view-open:focus,.edit-site-layout__actions.is-entity-save-view-open:focus-within{top:0}@media (min-width:782px){.edit-site-layout__actions{border-left:1px solid #ddd}}.edit-site-layout__area{box-shadow:0 1px 1px #00000008,0 1px 2px #00000005,0 3px 3px #00000005,0 4px 4px #00000003;flex-grow:1;margin:0;overflow:hidden}@media (min-width:782px){.edit-site-layout__area{border-radius:8px;margin:16px 16px 16px 0}}.edit-site .components-editor-notices__snackbar{bottom:16px;padding-left:16px;padding-right:16px;position:fixed;right:0}.edit-site-save-hub{border-top:1px solid #2f2f2f;color:#949494;flex-shrink:0;margin:0;padding:16px}.edit-site-save-hub__button{color:inherit;justify-content:center;width:100%}.edit-site-save-hub__button[aria-disabled=true]{opacity:1}.edit-site-save-hub__button[aria-disabled=true]:hover{color:inherit}.edit-site-save-hub__button:not(.is-primary).is-busy,.edit-site-save-hub__button:not(.is-primary).is-busy[aria-disabled=true]:hover{color:#1e1e1e}@media (min-width:600px){.edit-site-save-panel__modal{width:600px}}.edit-site-sidebar__content{contain:content;flex-grow:1;overflow-x:hidden;overflow-y:auto}@keyframes local--slide-from-right{0%{opacity:0;transform:translateX(50px)}to{opacity:1;transform:none}}@keyframes local--slide-from-left{0%{opacity:0;transform:translateX(-50px)}to{opacity:1;transform:none}}.edit-site-sidebar__screen-wrapper{overflow-x:auto}.edit-site-sidebar__screen-wrapper::-webkit-scrollbar{height:12px;width:12px}.edit-site-sidebar__screen-wrapper::-webkit-scrollbar-track{background-color:initial}.edit-site-sidebar__screen-wrapper::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:initial;border:3px solid #0000;border-radius:8px}.edit-site-sidebar__screen-wrapper:focus-within::-webkit-scrollbar-thumb,.edit-site-sidebar__screen-wrapper:focus::-webkit-scrollbar-thumb,.edit-site-sidebar__screen-wrapper:hover::-webkit-scrollbar-thumb{background-color:#757575}.edit-site-sidebar__screen-wrapper{scrollbar-color:#0000 #0000;scrollbar-gutter:stable both-edges;scrollbar-width:thin}.edit-site-sidebar__screen-wrapper:focus,.edit-site-sidebar__screen-wrapper:focus-within,.edit-site-sidebar__screen-wrapper:hover{scrollbar-color:#757575 #0000}.edit-site-sidebar__screen-wrapper{will-change:transform}@media (hover:none){.edit-site-sidebar__screen-wrapper{scrollbar-color:#757575 #0000}}.edit-site-sidebar__screen-wrapper{animation-duration:.14s;animation-timing-function:ease-in-out;display:flex;flex-direction:column;height:100%;max-height:100%;padding:0 12px;scrollbar-gutter:stable;will-change:transform,opacity}@media (prefers-reduced-motion:reduce){.edit-site-sidebar__screen-wrapper{animation-duration:0s}}.edit-site-sidebar__screen-wrapper.slide-from-left{animation-name:local--slide-from-left}.edit-site-sidebar__screen-wrapper.slide-from-right{animation-name:local--slide-from-right}.edit-site-site-hub{align-items:center;display:flex;gap:8px;height:64px;justify-content:space-between;margin-right:12px}.edit-site-site-hub__actions{flex-shrink:0}.edit-site-site-hub__view-mode-toggle-container{flex-shrink:0;height:64px;width:64px}.edit-site-site-hub__view-mode-toggle-container.has-transparent-background .edit-site-layout__view-mode-toggle-icon{background:#0000}.edit-site-site-hub__title .components-button{color:#e0e0e0;display:block;flex-grow:1;font-size:15px;font-weight:500;margin-left:-4px;overflow:hidden;padding-right:16px;position:relative;text-decoration:none;text-overflow:ellipsis;white-space:nowrap}.edit-site-site-hub__title .components-button:active,.edit-site-site-hub__title .components-button:focus,.edit-site-site-hub__title .components-button:hover{color:#e0e0e0}.edit-site-site-hub__title .components-button:focus{box-shadow:none;outline:none}.edit-site-site-hub__title .components-button:focus-visible{box-shadow:0 0 0 var(--wp-admin-border-width-focus) #1e1e1e,0 0 0 calc(var(--wp-admin-border-width-focus)*2) var(--wp-admin-theme-color);outline:2px solid #0000;outline-offset:2px}.edit-site-site-hub__title .components-button:after{content:"↗";font-weight:400;opacity:0;position:absolute;right:0}@media not (prefers-reduced-motion){.edit-site-site-hub__title .components-button:after{transition:opacity .1s linear}}.edit-site-site-hub__title .components-button:active:after,.edit-site-site-hub__title .components-button:focus:after,.edit-site-site-hub__title .components-button:hover:after{opacity:1}.edit-site-site-hub_toggle-command-center{color:#e0e0e0}.edit-site-site-hub_toggle-command-center:active svg,.edit-site-site-hub_toggle-command-center:hover svg{fill:#f0f0f0}.edit-site-site-icon__icon{fill:currentColor;height:100%;width:100%}.edit-site-layout.is-full-canvas .edit-site-site-icon__icon{padding:12px}.edit-site-site-icon__image{aspect-ratio:1/1;background:#333;height:100%;object-fit:cover;width:100%}.edit-site-layout.is-full-canvas .edit-site-site-icon__image{border-radius:0}.edit-site-editor__view-mode-toggle button:focus{position:relative}.edit-site-editor__view-mode-toggle button:focus:before{bottom:0;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color),inset 0 0 0 calc(1px + var(--wp-admin-border-width-focus)) #fff;content:"";display:block;left:0;position:absolute;right:0;top:0;z-index:1}.edit-site-editor-canvas-container{background-color:var(--wp-editor-canvas-background);height:100%}.edit-site-editor-canvas-container iframe{display:block;height:100%;width:100%}.edit-site-layout.is-full-canvas .edit-site-editor-canvas-container{padding:24px 24px 0}.edit-site-editor-canvas-container__section{background:#fff;border-radius:8px;bottom:0;left:0;overflow:hidden;position:absolute;right:0;top:0}@media not (prefers-reduced-motion){.edit-site-editor-canvas-container__section{transition:all .3s}}.edit-site-editor-canvas-container__close-button{background:#fff;position:absolute;right:8px;top:8px;z-index:2}.edit-site-post-list__featured-image{height:100%;object-fit:cover;width:100%}.edit-site-post-list__featured-image-wrapper{border-radius:4px;height:100%;width:100%}.edit-site-post-list__featured-image-wrapper.is-layout-table .edit-site-post-list__featured-image-button,.edit-site-post-list__featured-image-wrapper.is-layout-table:not(:has(.edit-site-post-list__featured-image-button)){background-color:#f0f0f0;border-radius:4px;display:block;flex-grow:0!important;height:32px;overflow:hidden;position:relative;width:32px}.edit-site-post-list__featured-image-wrapper.is-layout-table .edit-site-post-list__featured-image-button:after,.edit-site-post-list__featured-image-wrapper.is-layout-table:not(:has(.edit-site-post-list__featured-image-button)):after{border-radius:4px;box-shadow:inset 0 0 0 1px #0000001a;content:"";height:100%;left:0;position:absolute;top:0;width:100%}.edit-site-post-list__featured-image-button{background-color:unset;border:none;border-radius:4px;box-shadow:none;box-sizing:border-box;cursor:pointer;height:100%;overflow:hidden;padding:0;width:100%}.edit-site-post-list__featured-image-button:focus-visible{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid #0000}.dataviews-view-grid__card.is-selected .edit-site-post-list__featured-image-button:after{background:rgba(var(--wp-admin-theme-color--rgb),.04);box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.edit-site-post-list__status-icon{height:24px;width:24px}.edit-site-post-list__status-icon svg{fill:currentColor;margin-left:-4px}.edit-site-resizable-frame__inner{position:relative}body:has(.edit-site-resizable-frame__inner.is-resizing){cursor:col-resize;user-select:none;-webkit-user-select:none}.edit-site-resizable-frame__inner.is-resizing:before{content:"";inset:0;position:absolute;z-index:1}.edit-site-resizable-frame__inner-content{inset:0;position:absolute;z-index:0}.edit-site-resizable-frame__handle{align-items:center;background-color:#75757566;border:0;border-radius:4px;cursor:col-resize;display:flex;height:64px;justify-content:flex-end;padding:0;position:absolute;top:calc(50% - 32px);width:4px;z-index:100}.edit-site-resizable-frame__handle:before{content:"";height:100%;left:100%;position:absolute;width:32px}.edit-site-resizable-frame__handle:after{content:"";height:100%;position:absolute;right:100%;width:32px}.edit-site-resizable-frame__handle:focus-visible{outline:2px solid #0000}.edit-site-resizable-frame__handle.is-resizing,.edit-site-resizable-frame__handle:focus,.edit-site-resizable-frame__handle:hover{background-color:var(--wp-admin-theme-color)}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,114.7661290323,160.5;--wp-admin-theme-color-darker-20:#006187;--wp-admin-theme-color-darker-20--rgb:0,96.5322580645,135;--wp-admin-border-width-focus:2px}@media (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.0384615385,68.7307692308,230.4615384615;--wp-admin-theme-color-darker-20:#183ad6;--wp-admin-theme-color-darker-20--rgb:23.6923076923,58.1538461538,214.3076923077;--wp-admin-border-width-focus:2px}@media (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.3723404255,81.914893617,108.1276595745;--wp-admin-theme-color-darker-20:#064054;--wp-admin-theme-color-darker-20--rgb:5.7446808511,63.829787234,84.2553191489;--wp-admin-border-width-focus:2px}@media (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.2692307692,51.4461538462,48.2307692308;--wp-admin-theme-color-darker-20:#2b2724;--wp-admin-theme-color-darker-20--rgb:42.5384615385,38.8923076923,36.4615384615;--wp-admin-border-width-focus:2px}@media (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:69.8430232558,53.6598837209,92.8401162791;--wp-admin-theme-color-darker-20:#3a2c4d;--wp-admin-theme-color-darker-20--rgb:57.6860465116,44.3197674419,76.6802325581;--wp-admin-border-width-focus:2px}@media (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.4908256881,56.1788990826,45.0091743119;--wp-admin-theme-color-darker-20:#d02c21;--wp-admin-theme-color-darker-20--rgb:207.8348623853,44.2201834862,33.1651376147;--wp-admin-border-width-focus:2px}@media (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.0873362445,110.192139738,116.4126637555;--wp-admin-theme-color-darker-20:#4c6066;--wp-admin-theme-color-darker-20--rgb:76.1746724891,96.384279476,101.8253275109;--wp-admin-border-width-focus:2px}@media (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:216.8782608696,116.1847826087,37.6217391304;--wp-admin-theme-color-darker-20:#c36922;--wp-admin-theme-color-darker-20--rgb:195.147826087,104.5434782609,33.852173913;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-sunrise{--wp-admin-border-width-focus:1.5px}}#adminmenumain,#wpadminbar{display:none}#wpcontent{margin-left:0}body.js #wpbody{padding-top:0}body{background:#fff}body #wpcontent{padding-left:0}body #wpbody-content{padding-bottom:0}body #wpbody-content>div:not(#gutenberg-posts-dashboard):not(#screen-meta),body #wpfooter{display:none}body .a11y-speak-region{left:-1px;top:-1px}body ul#adminmenu a.wp-has-current-submenu:after,body ul#adminmenu>li.current>a.current:after{border-right-color:#fff}body .media-frame select.attachment-filters:last-of-type{max-width:100%;width:auto}#gutenberg-posts-dashboard{box-sizing:border-box}#gutenberg-posts-dashboard *,#gutenberg-posts-dashboard :after,#gutenberg-posts-dashboard :before{box-sizing:inherit}#gutenberg-posts-dashboard{height:100vh}@media (min-width:600px){#gutenberg-posts-dashboard{bottom:0;left:0;min-height:100vh;position:fixed;right:0;top:0}}.no-js #gutenberg-posts-dashboard{min-height:0;position:static}#gutenberg-posts-dashboard .components-editor-notices__snackbar{bottom:16px;padding-left:16px;padding-right:16px;position:fixed;right:0}
\ No newline at end of file
diff --git a/wp-includes/css/dist/edit-site/style-rtl.css b/wp-includes/css/dist/edit-site/style-rtl.css
index 3e8d78ede9..ae7bfe58b5 100644
--- a/wp-includes/css/dist/edit-site/style-rtl.css
+++ b/wp-includes/css/dist/edit-site/style-rtl.css
@@ -1176,6 +1176,7 @@ div.dataviews-view-list{
   display:flex;
   flex:0 0 auto;
   gap:4px;
+  white-space:nowrap;
   width:max-content;
 }

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 d0b48c6168..1c491030d7 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 @@
-@charset "UTF-8";.admin-ui-page{background-color:#fff;color:#2f2f2f;container:admin-ui-page/inline-size;display:flex;flex-flow:column;height:100%;position:relative;z-index:1}@media not (prefers-reduced-motion){.admin-ui-page{transition:width .2s ease-out}}.admin-ui-page__header{background:#fff;border-bottom:1px solid #f0f0f0;padding:16px 48px;position:sticky;top:0}@container (max-width: 430px){.admin-ui-page__header{padding:16px 24px}}.admin-ui-page__header-subtitle{color:#757575;font-family:-apple-system,"system-ui",Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:400;line-height:20px;margin:0;padding-block-end:8px}.admin-ui-page__content{display:flex;flex-direction:column;flex-grow:1;overflow:auto}.admin-ui-page__content.has-padding{padding:16px 20px}@container (max-width: 430px){.admin-ui-page__content.has-padding{padding:16px 24px}}.show-icon-labels .admin-ui-page__header-actions .components-button.has-icon{padding:0 8px;width:auto}.show-icon-labels .admin-ui-page__header-actions .components-button.has-icon svg{display:none}.show-icon-labels .admin-ui-page__header-actions .components-button.has-icon:after{content:attr(aria-label);font-size:12px}.dataviews-picker-wrapper,.dataviews-wrapper{box-sizing:border-box;container:dataviews-wrapper/inline-size;display:flex;flex-direction:column;font-size:13px;height:100%;line-height:1.4;overflow:auto;scroll-padding-bottom:64px}.dataviews-filters__container,.dataviews__view-actions{box-sizing:border-box;flex-shrink:0;padding:16px 48px;position:sticky;right:0}@media not (prefers-reduced-motion){.dataviews-filters__container,.dataviews__view-actions{transition:padding .1s ease-out}}.dataviews-loading,.dataviews-no-results{align-items:center;display:flex;flex-grow:1;justify-content:center;padding:0 48px}@media not (prefers-reduced-motion){.dataviews-loading,.dataviews-no-results{transition:padding .1s ease-out}}.dataviews-loading-more{text-align:center}@container (max-width: 430px){.dataviews-filters__container,.dataviews__view-actions{padding:12px 24px}.dataviews-loading,.dataviews-no-results{padding-left:24px;padding-right:24px}}.dataviews-title-field{font-size:13px;font-weight:500;width:100%}.dataviews-title-field,.dataviews-title-field a{color:#2f2f2f;text-overflow:ellipsis;white-space:nowrap}.dataviews-title-field a{display:block;flex-grow:0;overflow:hidden;text-decoration:none}.dataviews-title-field a:hover{color:var(--wp-admin-theme-color)}.dataviews-title-field a:focus{border-radius:2px;box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color,#007cba);color:var(--wp-admin-theme-color--rgb)}.dataviews-title-field button.components-button.is-link{color:#1e1e1e;display:block;font-weight:inherit;overflow:hidden;text-decoration:none;text-overflow:ellipsis;white-space:nowrap;width:100%}.dataviews-title-field button.components-button.is-link:hover{color:var(--wp-admin-theme-color)}.dataviews-title-field--clickable{color:#2f2f2f;cursor:pointer}.dataviews-title-field--clickable:hover{color:var(--wp-admin-theme-color)}.dataviews-title-field--clickable:focus{border-radius:2px;box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color,#007cba);color:var(--wp-admin-theme-color--rgb)}.components-card__body:has(>.dataviews-picker-wrapper),.components-card__body:has(>.dataviews-wrapper){overflow:hidden;padding:8px 0 0}.components-card__body:has(>.dataviews-picker-wrapper) .dataviews-filters__container,.components-card__body:has(>.dataviews-picker-wrapper) .dataviews-footer,.components-card__body:has(>.dataviews-picker-wrapper) .dataviews-loading,.components-card__body:has(>.dataviews-picker-wrapper) .dataviews-no-results,.components-card__body:has(>.dataviews-picker-wrapper) .dataviews-view-grid,.components-card__body:has(>.dataviews-picker-wrapper) .dataviews__view-actions,.components-card__body:has(>.dataviews-wrapper) .dataviews-filters__container,.components-card__body:has(>.dataviews-wrapper) .dataviews-footer,.components-card__body:has(>.dataviews-wrapper) .dataviews-loading,.components-card__body:has(>.dataviews-wrapper) .dataviews-no-results,.components-card__body:has(>.dataviews-wrapper) .dataviews-view-grid,.components-card__body:has(>.dataviews-wrapper) .dataviews__view-actions{padding-inline:24px}.components-card__body:has(>.dataviews-picker-wrapper) .dataviews-view-table tr td:first-child,.components-card__body:has(>.dataviews-picker-wrapper) .dataviews-view-table tr th:first-child,.components-card__body:has(>.dataviews-wrapper) .dataviews-view-table tr td:first-child,.components-card__body:has(>.dataviews-wrapper) .dataviews-view-table tr th:first-child{padding-inline-start:24px}.components-card__body:has(>.dataviews-picker-wrapper) .dataviews-view-table tr td:last-child,.components-card__body:has(>.dataviews-picker-wrapper) .dataviews-view-table tr th:last-child,.components-card__body:has(>.dataviews-wrapper) .dataviews-view-table tr td:last-child,.components-card__body:has(>.dataviews-wrapper) .dataviews-view-table tr th:last-child{padding-inline-end:24px}.dataviews-bulk-actions-footer__item-count{color:#1e1e1e;font-size:11px;font-weight:500;text-transform:uppercase}.dataviews-bulk-actions-footer__container{margin-left:auto;min-height:32px}.dataviews-filters__button{position:relative}.dataviews-filters__container{padding-top:0}.dataviews-filters__reset-button.dataviews-filters__reset-button[aria-disabled=true],.dataviews-filters__reset-button.dataviews-filters__reset-button[aria-disabled=true]:hover{opacity:0}.dataviews-filters__reset-button.dataviews-filters__reset-button[aria-disabled=true]:focus{opacity:1}.dataviews-filters__summary-popover{font-size:13px;line-height:1.4}.dataviews-filters__summary-popover .components-popover__content{border-radius:4px;max-width:250px;min-width:230px;width:100%}.dataviews-filters__summary-popover.components-dropdown__content .components-popover__content{padding:0}.dataviews-filters__summary-operators-container{padding:8px 16px}.dataviews-filters__summary-operators-container:has(+.dataviews-filters__search-widget-listbox),.dataviews-filters__summary-operators-container:has(+.dataviews-filters__search-widget-no-elements),.dataviews-filters__summary-operators-container:has(+.dataviews-filters__user-input-widget){border-bottom:1px solid #e0e0e0}.dataviews-filters__summary-operators-container:empty{display:none}.dataviews-filters__summary-operators-container .dataviews-filters__summary-operators-filter-name{color:#757575;flex-shrink:0;max-width:calc(100% - 55px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dataviews-filters__summary-operators-container .dataviews-filters__summary-operators-filter-select{overflow:hidden;white-space:nowrap;width:100%}.dataviews-filters__summary-chip-container{position:relative;white-space:pre-wrap}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip{align-items:center;background:#f0f0f0;border:1px solid #0000;border-radius:16px;box-sizing:border-box;color:#2f2f2f;cursor:pointer;display:flex;min-height:32px;padding:4px 12px;position:relative}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.is-not-clickable{cursor:default}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.has-reset{padding-inline-end:28px}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip:focus-visible,.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip:hover:not(.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.is-not-clickable),.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip[aria-expanded=true]{background:#e0e0e0;color:#1e1e1e}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.has-values{background:rgba(var(--wp-admin-theme-color--rgb),.04);color:var(--wp-admin-theme-color)}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.has-values:hover,.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.has-values[aria-expanded=true]{background:rgba(var(--wp-admin-theme-color--rgb),.12)}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip:focus-visible{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:none}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip .dataviews-filters-__summary-filter-text-name{font-weight:500}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove{align-items:center;background:#0000;border:0;border-radius:50%;cursor:pointer;display:flex;height:24px;justify-content:center;left:4px;padding:0;position:absolute;top:50%;transform:translateY(-50%);width:24px}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove svg{fill:#757575}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove:focus,.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove:hover{background:#e0e0e0}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove:focus svg,.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove:hover svg{fill:#1e1e1e}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove.has-values svg{fill:var(--wp-admin-theme-color)}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove.has-values:hover{background:rgba(var(--wp-admin-theme-color--rgb),.08)}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove:focus-visible{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:none}.dataviews-filters__search-widget-filter-combobox-list{border-top:1px solid #e0e0e0;max-height:184px;overflow:auto;padding:4px}.dataviews-filters__search-widget-filter-combobox-list .dataviews-filters__search-widget-filter-combobox-item-value [data-user-value]{font-weight:600}.dataviews-filters__search-widget-listbox{overflow:auto;padding:4px}.dataviews-filters__search-widget-listitem{align-items:center;border-radius:2px;box-sizing:border-box;cursor:default;display:flex;font-family:-apple-system,"system-ui",Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:400;gap:8px;line-height:20px;min-height:32px;padding:4px 12px}.dataviews-filters__search-widget-listitem:last-child{margin-block-end:0}.dataviews-filters__search-widget-listitem:focus,.dataviews-filters__search-widget-listitem:hover,.dataviews-filters__search-widget-listitem[data-active-item]{background-color:var(--wp-admin-theme-color);color:#fff}.dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-description,.dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-description,.dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-description{color:#fff}.dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-single-selection,.dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-single-selection,.dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-single-selection{background:#fff;border-color:var(--wp-admin-theme-color-darker-20,#183ad6)}.dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-single-selection.is-selected,.dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-single-selection.is-selected,.dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-single-selection.is-selected{background:var(--wp-admin-theme-color-darker-20,#183ad6);border-color:var(--wp-admin-theme-color-darker-20,#183ad6)}.dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-multi-selection,.dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-multi-selection,.dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-multi-selection{border-color:var(--wp-admin-theme-color-darker-20,#183ad6)}.dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-multi-selection.is-selected,.dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-multi-selection.is-selected,.dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-multi-selection.is-selected{background:var(--wp-admin-theme-color-darker-20,#183ad6);border-color:var(--wp-admin-theme-color-darker-20,#183ad6)}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-description{color:#757575;display:block;font-size:12px;line-height:16px;overflow:hidden;text-overflow:ellipsis}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection{border:1px solid #1e1e1e;border-radius:50%;height:24px;margin-left:12px;max-width:24px;min-width:24px;position:relative;transition:none;width:24px}@media not (prefers-reduced-motion){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection{transition:box-shadow .1s linear}}@media (min-width:600px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection{height:16px;max-width:16px;min-width:16px;width:16px}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection:checked:before{background-color:#fff;border:4px solid #fff;box-sizing:inherit;height:12px;margin:0;position:absolute;right:50%;top:50%;transform:translate(50%,-50%);width:12px}@media (min-width:600px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection:checked:before{height:8px;width:8px}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color);outline:2px solid #0000}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection:checked{background:var(--wp-admin-theme-color);border:none}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection{margin:0;padding:0}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection.is-selected{background:var(--wp-admin-theme-color,#3858e9);border-color:var(--wp-admin-theme-color,#3858e9)}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection.is-selected:before{background-color:#fff;border:4px solid #fff;border-radius:50%;box-sizing:inherit;content:"";height:12px;margin:0;position:absolute;right:50%;top:50%;transform:translate(50%,-50%);width:12px}@media (min-width:600px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection.is-selected:before{height:8px;width:8px}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection{--checkbox-size:24px;border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 #0000;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:normal;margin-left:12px;padding:6px 8px;transition:none}@media not (prefers-reduced-motion){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection{transition:box-shadow .1s linear}}@media (min-width:600px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection{font-size:13px;line-height:normal}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color)}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection::-webkit-input-placeholder{color:#1e1e1e9e}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection::-moz-placeholder{color:#1e1e1e9e}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:-ms-input-placeholder{color:#1e1e1e9e}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color);outline:2px solid #0000}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:checked{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:checked::-ms-check{opacity:0}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:checked:before,.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-checked=mixed]:before{color:#fff;margin:-3px -5px}@media (min-width:782px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:checked:before,.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-checked=mixed]:before{margin:-4px -5px 0 0}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-checked=mixed]{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-checked=mixed]:before{content:"\f460";display:inline-block;float:right;font:normal 30px/1 dashicons;vertical-align:middle;width:16px;speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (min-width:782px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-checked=mixed]:before{float:none;font-size:21px}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:disabled,.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-disabled=true]{background:#f0f0f0;border-color:#ddd;cursor:default;opacity:1}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection{background:#fff;color:#1e1e1e;height:var(--checkbox-size);margin:0;padding:0;position:relative;width:var(--checkbox-size)}@media (min-width:600px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection{--checkbox-size:16px}}@media not (prefers-reduced-motion){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection{transition:border-color .1s ease-in-out}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection.is-selected{background:var(--wp-admin-theme-color,#3858e9);border-color:var(--wp-admin-theme-color,#3858e9)}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection.is-selected svg{--checkmark-size:var(--checkbox-size);fill:#fff;height:var(--checkmark-size);position:absolute;right:50%;top:50%;transform:translate(50%,-50%);width:var(--checkmark-size)}@media (min-width:600px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection.is-selected svg{--checkmark-size:calc(var(--checkbox-size) + 4px)}}.dataviews-filters__search-widget-filter-combobox__wrapper{padding:8px;position:relative}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input{border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 #0000;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;line-height:normal;padding:6px 8px}@media not (prefers-reduced-motion){.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input{transition:box-shadow .1s linear}}@media (min-width:600px){.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input{font-size:13px;line-height:normal}}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid #0000}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-webkit-input-placeholder{color:#1e1e1e9e}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-moz-placeholder{color:#1e1e1e9e}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input:-ms-input-placeholder{color:#1e1e1e9e}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input{display:block;font-size:16px;height:32px;margin-left:0;margin-right:0;padding:0 32px 0 8px;width:100%}@media (min-width:600px){.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input{font-size:13px}}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input:focus{background:#fff;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::placeholder{color:#757575}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-webkit-search-cancel-button,.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-webkit-search-decoration,.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-webkit-search-results-button,.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-webkit-search-results-decoration{-webkit-appearance:none}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__icon{align-items:center;bottom:0;display:flex;inset-inline-start:12px;justify-content:center;position:absolute;top:0;width:24px}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__icon:dir(ltr){transform:scaleX(-1)}.dataviews-filters__container-visibility-toggle{flex-shrink:0;position:relative}.dataviews-filters-toggle__count{background:var(--wp-admin-theme-color,#3858e9);border-radius:8px;box-sizing:border-box;color:#fff;font-size:11px;height:16px;left:0;line-height:16px;min-width:16px;outline:var(--wp-admin-border-width-focus) solid #fff;padding:0 4px;position:absolute;text-align:center;top:0;transform:translate(-50%,-50%)}.dataviews-search{width:fit-content}.dataviews-filters__user-input-widget{padding:16px}.dataviews-filters__user-input-widget .components-input-control__prefix{padding-right:8px}.dataviews-filters__search-widget-no-elements{align-items:center;display:flex;justify-content:center;padding:16px}.dataviews-footer{background-color:#fff;border-top:1px solid #f0f0f0;bottom:0;flex-shrink:0;padding:12px 48px;position:sticky;right:0}@media not (prefers-reduced-motion){.dataviews-footer{transition:padding .1s ease-out}}.dataviews-footer{z-index:2}@container (max-width: 430px){.dataviews-footer{padding:12px 24px}}@container (max-width: 560px){.dataviews-footer{flex-direction:column!important}.dataviews-footer .dataviews-bulk-actions-footer__container{width:100%}.dataviews-footer .dataviews-bulk-actions-footer__item-count{flex-grow:1}.dataviews-footer .dataviews-pagination{justify-content:space-between;width:100%}}.dataviews-pagination__page-select{font-size:11px;font-weight:500;text-transform:uppercase}@media (min-width:600px){.dataviews-pagination__page-select .components-select-control__input{font-size:11px!important;font-weight:500}}.dataviews-action-modal{z-index:1000001}.dataviews-picker-footer__bulk-selection{align-self:flex-start;height:32px}.dataviews-picker-footer__actions{align-self:flex-end}.dataviews-selection-checkbox{--checkbox-input-size:24px}@media (min-width:600px){.dataviews-selection-checkbox{--checkbox-input-size:16px}}.dataviews-selection-checkbox{flex-shrink:0;line-height:0}.dataviews-selection-checkbox .components-checkbox-control__input-container{margin:0}.dataviews-view-config{container-type:inline-size;font-size:13px;line-height:1.4;width:320px}.dataviews-config__popover.is-expanded .dataviews-config__popover-content-wrapper{height:100%;overflow-y:scroll}.dataviews-config__popover.is-expanded .dataviews-config__popover-content-wrapper .dataviews-view-config{width:auto}.dataviews-view-config__sort-direction .components-toggle-group-control-option-base{text-transform:uppercase}.dataviews-settings-section__title.dataviews-settings-section__title{font-size:15px;line-height:24px}.dataviews-settings-section__sidebar{grid-column:span 4}.dataviews-settings-section__content,.dataviews-settings-section__content>*{grid-column:span 8}.dataviews-settings-section__content .is-divided-in-two{display:contents}.dataviews-settings-section__content .is-divided-in-two>*{grid-column:span 4}.dataviews-settings-section:has(.dataviews-settings-section__content:empty){display:none}@container (max-width: 500px){.dataviews-settings-section.dataviews-settings-section{grid-template-columns:repeat(2,1fr)}.dataviews-settings-section.dataviews-settings-section .dataviews-settings-section__content,.dataviews-settings-section.dataviews-settings-section .dataviews-settings-section__sidebar{grid-column:span 2}}.dataviews-field-control__field{height:32px}.dataviews-field-control__actions{position:absolute;top:-9999em}.dataviews-field-control__actions.dataviews-field-control__actions{gap:4px}.dataviews-field-control__field.is-interacting .dataviews-field-control__actions,.dataviews-field-control__field:focus-within .dataviews-field-control__actions,.dataviews-field-control__field:hover .dataviews-field-control__actions{position:unset;top:unset}.dataviews-field-control__icon{display:flex;width:24px}.dataviews-field-control__label-sub-label-container{flex-grow:1}.dataviews-field-control__label{display:block}.dataviews-field-control__sub-label{color:#757575;font-size:11px;font-style:normal;margin-bottom:0;margin-top:8px}.dataviews-view-grid-items{container-type:inline-size;display:grid;gap:32px;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));grid-template-rows:max-content;margin-bottom:auto;padding:0 48px 24px}@container (max-width: 430px){.dataviews-view-grid-items{padding-left:24px;padding-right:24px}}@media not (prefers-reduced-motion){.dataviews-view-grid-items{transition:padding .1s ease-out}}.dataviews-view-grid .dataviews-view-grid__card{height:100%;justify-content:flex-start;position:relative}.dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__title-actions{padding:8px 0 4px}.dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__title-field{align-content:center;min-height:24px;overflow:hidden;text-align:start}.dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__title-field--clickable{width:fit-content}.dataviews-view-grid .dataviews-view-grid__card.is-selected .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-value{color:#1e1e1e}.dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__media:focus:after,.dataviews-view-grid .dataviews-view-grid__card.is-selected .dataviews-view-grid__media:after{background-color:rgba(var(--wp-admin-theme-color--rgb),.08)}.dataviews-view-grid .dataviews-view-grid__card.is-selected .dataviews-view-grid__media:after{box-shadow:inset 0 0 0 1px var(--wp-admin-theme-color)}.dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__media:focus:after{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.dataviews-view-grid .dataviews-view-grid__media{aspect-ratio:1/1;background-color:#fff;border-radius:4px;overflow:hidden;position:relative;width:100%}.dataviews-view-grid .dataviews-view-grid__media img{height:100%;object-fit:cover;width:100%}.dataviews-view-grid .dataviews-view-grid__media:after{border-radius:4px;box-shadow:inset 0 0 0 1px #0000001a;content:"";height:100%;pointer-events:none;position:absolute;right:0;top:0;width:100%}.dataviews-view-grid .dataviews-view-grid__fields{font-size:12px;line-height:16px;position:relative}.dataviews-view-grid .dataviews-view-grid__fields:not(:empty){padding:0 0 12px}.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field-value:not(:empty){line-height:20px;min-height:24px;padding-top:2px}.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field{align-items:center;min-height:24px}.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-name{color:#757575;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:35%}.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:65%}.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field:not(:has(.dataviews-view-grid__field-value:not(:empty))){display:none}.dataviews-view-grid .dataviews-view-grid__badge-fields:not(:empty){padding-bottom:12px}.dataviews-view-grid__field-value:empty,.dataviews-view-grid__field:empty{display:none}.dataviews-view-grid__card .dataviews-selection-checkbox{opacity:0;position:absolute;right:8px;top:-9999em;z-index:1}@media not (prefers-reduced-motion){.dataviews-view-grid__card .dataviews-selection-checkbox{transition:opacity .1s linear}}@media (hover:none){.dataviews-view-grid__card .dataviews-selection-checkbox{opacity:1;top:8px}}.dataviews-view-grid__card.is-selected .dataviews-selection-checkbox,.dataviews-view-grid__card:focus-within .dataviews-selection-checkbox,.dataviews-view-grid__card:hover .dataviews-selection-checkbox{opacity:1;top:8px}.dataviews-view-grid__card .dataviews-view-grid__media-actions{left:4px;opacity:0;position:absolute;top:4px}.dataviews-view-grid__card .dataviews-view-grid__media-actions .dataviews-all-actions-button{background-color:#fff}@media not (prefers-reduced-motion){.dataviews-view-grid__card .dataviews-view-grid__media-actions{transition:opacity .1s linear}}@media (hover:none){.dataviews-view-grid__card .dataviews-view-grid__media-actions{opacity:1;top:4px}}.dataviews-view-grid__card .dataviews-view-grid__media-actions:has(.dataviews-all-actions-button[aria-expanded=true]),.dataviews-view-grid__card:focus-within .dataviews-view-grid__media-actions,.dataviews-view-grid__card:hover .dataviews-view-grid__media-actions{opacity:1}.dataviews-view-grid__media--clickable{cursor:pointer}.dataviews-view-grid__group-header{color:#1e1e1e;container-type:inline-size;font-size:15px;font-weight:500;margin:0 0 8px;padding:0 48px}@container (max-width: 430px){.dataviews-view-grid__group-header{padding-left:24px;padding-right:24px}}div.dataviews-view-list{list-style-type:none}.dataviews-view-list{margin:0 0 auto}.dataviews-view-list div[role=article],.dataviews-view-list div[role=row]{border-top:1px solid #f0f0f0;margin:0}.dataviews-view-list div[role=article] .dataviews-view-list__item-wrapper,.dataviews-view-list div[role=row] .dataviews-view-list__item-wrapper{box-sizing:border-box;padding:16px 24px;position:relative}.dataviews-view-list div[role=article] .dataviews-view-list__item-actions,.dataviews-view-list div[role=row] .dataviews-view-list__item-actions{display:flex;flex:0 0 auto;gap:4px;width:max-content}.dataviews-view-list div[role=article] .dataviews-view-list__item-actions .components-button,.dataviews-view-list div[role=row] .dataviews-view-list__item-actions .components-button{position:relative;z-index:1}.dataviews-view-list div[role=article] .dataviews-view-list__item-actions>div,.dataviews-view-list div[role=row] .dataviews-view-list__item-actions>div{height:24px}.dataviews-view-list div[role=article] .dataviews-view-list__item-actions>:not(:last-child),.dataviews-view-list div[role=row] .dataviews-view-list__item-actions>:not(:last-child){flex:0;overflow:hidden;width:0}.dataviews-view-list div[role=article]:where(.is-selected,.is-hovered,:focus-within) .dataviews-view-list__item-actions>:not(:last-child),.dataviews-view-list div[role=row]:where(.is-selected,.is-hovered,:focus-within) .dataviews-view-list__item-actions>:not(:last-child){flex-basis:min-content;overflow:unset;width:auto}@media (hover:none){.dataviews-view-list div[role=article] .dataviews-view-list__item-actions>:not(:last-child),.dataviews-view-list div[role=row] .dataviews-view-list__item-actions>:not(:last-child){flex-basis:min-content;overflow:unset;width:auto}}.dataviews-view-list div[role=article].is-selected.is-selected,.dataviews-view-list div[role=article].is-selected.is-selected+div[role=article],.dataviews-view-list div[role=article].is-selected.is-selected+div[role=row],.dataviews-view-list div[role=row].is-selected.is-selected,.dataviews-view-list div[role=row].is-selected.is-selected+div[role=article],.dataviews-view-list div[role=row].is-selected.is-selected+div[role=row]{border-top:1px solid rgba(var(--wp-admin-theme-color--rgb),.12)}.dataviews-view-list div[role=article]:not(.is-selected) .dataviews-view-list__title-field,.dataviews-view-list div[role=row]:not(.is-selected) .dataviews-view-list__title-field{color:#1e1e1e}.dataviews-view-list div[role=article]:not(.is-selected).is-hovered,.dataviews-view-list div[role=article]:not(.is-selected):focus-within,.dataviews-view-list div[role=article]:not(.is-selected):hover,.dataviews-view-list div[role=row]:not(.is-selected).is-hovered,.dataviews-view-list div[role=row]:not(.is-selected):focus-within,.dataviews-view-list div[role=row]:not(.is-selected):hover{background-color:#f8f8f8;color:var(--wp-admin-theme-color)}.dataviews-view-list div[role=article]:not(.is-selected).is-hovered .dataviews-view-list__fields,.dataviews-view-list div[role=article]:not(.is-selected).is-hovered .dataviews-view-list__title-field,.dataviews-view-list div[role=article]:not(.is-selected):focus-within .dataviews-view-list__fields,.dataviews-view-list div[role=article]:not(.is-selected):focus-within .dataviews-view-list__title-field,.dataviews-view-list div[role=article]:not(.is-selected):hover .dataviews-view-list__fields,.dataviews-view-list div[role=article]:not(.is-selected):hover .dataviews-view-list__title-field,.dataviews-view-list div[role=row]:not(.is-selected).is-hovered .dataviews-view-list__fields,.dataviews-view-list div[role=row]:not(.is-selected).is-hovered .dataviews-view-list__title-field,.dataviews-view-list div[role=row]:not(.is-selected):focus-within .dataviews-view-list__fields,.dataviews-view-list div[role=row]:not(.is-selected):focus-within .dataviews-view-list__title-field,.dataviews-view-list div[role=row]:not(.is-selected):hover .dataviews-view-list__fields,.dataviews-view-list div[role=row]:not(.is-selected):hover .dataviews-view-list__title-field{color:var(--wp-admin-theme-color)}.dataviews-view-list div[role=article].is-selected .dataviews-view-list__item-wrapper,.dataviews-view-list div[role=article].is-selected:focus-within .dataviews-view-list__item-wrapper,.dataviews-view-list div[role=row].is-selected .dataviews-view-list__item-wrapper,.dataviews-view-list div[role=row].is-selected:focus-within .dataviews-view-list__item-wrapper{background-color:rgba(var(--wp-admin-theme-color--rgb),.04);color:#1e1e1e}.dataviews-view-list div[role=article].is-selected .dataviews-view-list__item-wrapper .dataviews-view-list__fields,.dataviews-view-list div[role=article].is-selected .dataviews-view-list__item-wrapper .dataviews-view-list__title-field,.dataviews-view-list div[role=article].is-selected:focus-within .dataviews-view-list__item-wrapper .dataviews-view-list__fields,.dataviews-view-list div[role=article].is-selected:focus-within .dataviews-view-list__item-wrapper .dataviews-view-list__title-field,.dataviews-view-list div[role=row].is-selected .dataviews-view-list__item-wrapper .dataviews-view-list__fields,.dataviews-view-list div[role=row].is-selected .dataviews-view-list__item-wrapper .dataviews-view-list__title-field,.dataviews-view-list div[role=row].is-selected:focus-within .dataviews-view-list__item-wrapper .dataviews-view-list__fields,.dataviews-view-list div[role=row].is-selected:focus-within .dataviews-view-list__item-wrapper .dataviews-view-list__title-field{color:var(--wp-admin-theme-color)}.dataviews-view-list .dataviews-view-list__item{appearance:none;background:none;border:none;cursor:pointer;inset:0;padding:0;position:absolute;scroll-margin:8px 0;z-index:1}.dataviews-view-list .dataviews-view-list__item:focus-visible{outline:none}.dataviews-view-list .dataviews-view-list__item:focus-visible:before{border-radius:2px;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);content:"";inset:var(--wp-admin-border-width-focus);outline:2px solid #0000;position:absolute}.dataviews-view-list .dataviews-view-list__title-field{flex:1;line-height:24px;min-height:24px;overflow:hidden}.dataviews-view-list .dataviews-view-list__title-field:has(a,button){z-index:1}.dataviews-view-list .dataviews-view-list__media-wrapper{background-color:#fff;border-radius:4px;flex-shrink:0;height:52px;overflow:hidden;position:relative;width:52px}.dataviews-view-list .dataviews-view-list__media-wrapper img{height:100%;object-fit:cover;width:100%}.dataviews-view-list .dataviews-view-list__media-wrapper:after{border-radius:4px;box-shadow:inset 0 0 0 1px #0000001a;content:"";height:100%;position:absolute;right:0;top:0;width:100%}.dataviews-view-list .dataviews-view-list__field-wrapper{flex-grow:1;min-height:52px}.dataviews-view-list .dataviews-view-list__fields{color:#757575;display:flex;flex-wrap:wrap;font-size:12px;gap:12px;row-gap:4px}.dataviews-view-list .dataviews-view-list__fields .dataviews-view-list__field:has(.dataviews-view-list__field-value:empty),.dataviews-view-list .dataviews-view-list__fields:empty{display:none}.dataviews-view-list .dataviews-view-list__fields .dataviews-view-list__field-value{align-items:center;display:flex;line-height:20px;min-height:24px}.dataviews-view-list+.dataviews-pagination{justify-content:space-between}.dataviews-view-list__group-header{color:#1e1e1e;font-size:15px;font-weight:500;margin:0 0 8px;padding:0 24px}.dataviews-view-table{border-collapse:collapse;border-color:inherit;color:#757575;margin-bottom:auto;position:relative;text-indent:0;width:100%}.dataviews-view-table th{color:#1e1e1e;font-size:13px;font-weight:400;text-align:right}.dataviews-view-table td,.dataviews-view-table th{padding:12px}.dataviews-view-table td.dataviews-view-table__actions-column,.dataviews-view-table th.dataviews-view-table__actions-column{text-align:left}.dataviews-view-table td.dataviews-view-table__actions-column--sticky,.dataviews-view-table th.dataviews-view-table__actions-column--sticky{background-color:#fff;left:0;position:sticky}.dataviews-view-table td.dataviews-view-table__actions-column--stuck:after,.dataviews-view-table th.dataviews-view-table__actions-column--stuck:after{background-color:#f0f0f0;bottom:0;content:"";display:block;position:absolute;right:0;top:0;width:1px}.dataviews-view-table td.dataviews-view-table__checkbox-column,.dataviews-view-table th.dataviews-view-table__checkbox-column{padding-left:0}.dataviews-view-table td.dataviews-view-table__checkbox-column .dataviews-view-table__cell-content-wrapper,.dataviews-view-table th.dataviews-view-table__checkbox-column .dataviews-view-table__cell-content-wrapper{max-width:auto;min-width:auto}.dataviews-view-table tr{border-top:1px solid #f0f0f0}.dataviews-view-table tr .dataviews-view-table-header-button{gap:4px}.dataviews-view-table tr td:first-child,.dataviews-view-table tr th:first-child{padding-right:48px}.dataviews-view-table tr td:first-child .dataviews-view-table-header-button,.dataviews-view-table tr th:first-child .dataviews-view-table-header-button{margin-right:-8px}.dataviews-view-table tr td:last-child,.dataviews-view-table tr th:last-child{padding-left:48px}.dataviews-view-table tr:last-child{border-bottom:0}.dataviews-view-table tr.is-hovered,.dataviews-view-table tr.is-hovered .dataviews-view-table__actions-column--sticky{background-color:#f8f8f8}.dataviews-view-table tr .components-checkbox-control__input.components-checkbox-control__input{opacity:0}.dataviews-view-table tr .components-checkbox-control__input.components-checkbox-control__input:checked,.dataviews-view-table tr .components-checkbox-control__input.components-checkbox-control__input:focus,.dataviews-view-table tr .components-checkbox-control__input.components-checkbox-control__input:indeterminate{opacity:1}.dataviews-view-table tr .dataviews-item-actions .components-button:not(.dataviews-all-actions-button){opacity:0}.dataviews-view-table tr.is-hovered .components-checkbox-control__input,.dataviews-view-table tr.is-hovered .dataviews-item-actions .components-button:not(.dataviews-all-actions-button),.dataviews-view-table tr:focus-within .components-checkbox-control__input,.dataviews-view-table tr:focus-within .dataviews-item-actions .components-button:not(.dataviews-all-actions-button),.dataviews-view-table tr:hover .components-checkbox-control__input,.dataviews-view-table tr:hover .dataviews-item-actions .components-button:not(.dataviews-all-actions-button){opacity:1}@media (hover:none){.dataviews-view-table tr .components-checkbox-control__input.components-checkbox-control__input,.dataviews-view-table tr .dataviews-item-actions .components-button:not(.dataviews-all-actions-button){opacity:1}}.dataviews-view-table tr.is-selected{background-color:rgba(var(--wp-admin-theme-color--rgb),.04);color:#757575}.dataviews-view-table tr.is-selected,.dataviews-view-table tr.is-selected+tr{border-top:1px solid rgba(var(--wp-admin-theme-color--rgb),.12)}.dataviews-view-table tr.is-selected:hover{background-color:rgba(var(--wp-admin-theme-color--rgb),.08)}.dataviews-view-table tr.is-selected .dataviews-view-table__actions-column--sticky{background-color:color-mix(in srgb,rgb(var(--wp-admin-theme-color--rgb)) 4%,#fff)}.dataviews-view-table tr.is-selected:hover .dataviews-view-table__actions-column--sticky{background-color:color-mix(in srgb,rgb(var(--wp-admin-theme-color--rgb)) 8%,#fff)}.dataviews-view-table thead{inset-block-start:0;position:sticky;z-index:1}.dataviews-view-table thead tr{border:0}.dataviews-view-table thead tr .components-checkbox-control__input.components-checkbox-control__input{opacity:1}.dataviews-view-table thead th{background-color:#fff;font-size:11px;font-weight:500;padding-bottom:8px;padding-right:12px;padding-top:8px;text-transform:uppercase}.dataviews-view-table thead th:has(.dataviews-view-table-header-button):not(:first-child){padding-right:4px}.dataviews-view-table tbody td{vertical-align:top}.dataviews-view-table tbody .dataviews-view-table__cell-content-wrapper{align-items:center;display:flex;min-height:32px;white-space:nowrap}.dataviews-view-table tbody .dataviews-view-table__cell-content-wrapper.dataviews-view-table__cell-align-end{justify-content:flex-end}.dataviews-view-table tbody .dataviews-view-table__cell-content-wrapper.dataviews-view-table__cell-align-center{justify-content:center}.dataviews-view-table tbody .components-v-stack>.dataviews-view-table__cell-content-wrapper:not(:first-child){min-height:0}.dataviews-view-table .dataviews-view-table-header-button{font-size:11px;font-weight:500;padding:4px 8px;text-transform:uppercase}.dataviews-view-table .dataviews-view-table-header-button:not(:hover){color:#1e1e1e}.dataviews-view-table .dataviews-view-table-header-button span{speak:none}.dataviews-view-table .dataviews-view-table-header-button span:empty{display:none}.dataviews-view-table .dataviews-view-table-header{padding-right:4px}.dataviews-view-table .dataviews-view-table__actions-column{white-space:nowrap;width:auto}.dataviews-view-table:has(tr.is-selected) .components-checkbox-control__input{opacity:1}.dataviews-view-table.has-compact-density thead th:has(.dataviews-view-table-header-button):not(:first-child){padding-right:0}.dataviews-view-table.has-compact-density td,.dataviews-view-table.has-compact-density th{padding:4px 8px}.dataviews-view-table.has-comfortable-density td,.dataviews-view-table.has-comfortable-density th{padding:16px 12px}.dataviews-view-table.has-comfortable-density td.dataviews-view-table__checkbox-column,.dataviews-view-table.has-comfortable-density th.dataviews-view-table__checkbox-column,.dataviews-view-table.has-compact-density td.dataviews-view-table__checkbox-column,.dataviews-view-table.has-compact-density th.dataviews-view-table__checkbox-column{padding-left:0}@container (max-width: 430px){.dataviews-view-table tr td:first-child,.dataviews-view-table tr th:first-child{padding-right:24px}.dataviews-view-table tr td:last-child,.dataviews-view-table tr th:last-child{padding-left:24px}}.dataviews-view-table-selection-checkbox{--checkbox-input-size:24px}@media (min-width:600px){.dataviews-view-table-selection-checkbox{--checkbox-input-size:16px}}.dataviews-column-primary__media{background-color:#fff;border-radius:4px;flex-shrink:0;max-width:60px;overflow:hidden;position:relative}.dataviews-column-primary__media img{height:100%;object-fit:cover;width:100%}.dataviews-column-primary__media:after{border-radius:4px;box-shadow:inset 0 0 0 1px #0000001a;content:"";height:100%;position:absolute;right:0;top:0;width:100%}.dataviews-view-table__cell-content-wrapper:not(.dataviews-column-primary__media),.dataviews-view-table__primary-column-content:not(.dataviews-column-primary__media){max-width:80ch;min-width:15ch}.dataviews-view-table__group-header-row .dataviews-view-table__group-header-cell{color:#1e1e1e;font-weight:500;padding:12px 48px}.dataviews-view-table col[class^=dataviews-view-table__col-]:not(.dataviews-view-table__col-primary){width:1%}.dataviews-view-picker-grid .dataviews-view-picker-grid__card{height:100%;justify-content:flex-start;position:relative}.dataviews-view-picker-grid .dataviews-view-picker-grid__card .dataviews-view-picker-grid__title-actions{padding:8px 0 4px}.dataviews-view-picker-grid .dataviews-view-picker-grid__card .dataviews-view-picker-grid__title-field{align-content:center;min-height:24px;overflow:hidden;text-align:start}.dataviews-view-picker-grid .dataviews-view-picker-grid__card .dataviews-view-picker-grid__title-field--clickable{width:fit-content}.dataviews-view-picker-grid .dataviews-view-picker-grid__card.is-selected .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field .dataviews-view-picker-grid__field-value{color:#1e1e1e}.dataviews-view-picker-grid .dataviews-view-picker-grid__card .dataviews-view-picker-grid__media:focus:after,.dataviews-view-picker-grid .dataviews-view-picker-grid__card.is-selected .dataviews-view-picker-grid__media:after{background-color:rgba(var(--wp-admin-theme-color--rgb),.08)}.dataviews-view-picker-grid .dataviews-view-picker-grid__card.is-selected .dataviews-view-picker-grid__media:after{box-shadow:inset 0 0 0 1px var(--wp-admin-theme-color)}.dataviews-view-picker-grid .dataviews-view-picker-grid__card .dataviews-view-picker-grid__media:focus:after{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.dataviews-view-picker-grid:focus-visible[aria-activedescendant]{outline:none}.dataviews-view-picker-grid:focus-visible [data-active-item=true]{outline:2px solid var(--wp-admin-theme-color)}.dataviews-view-picker-grid .dataviews-selection-checkbox{top:8px!important}.dataviews-view-picker-grid .dataviews-selection-checkbox input{pointer-events:none}.dataviews-view-picker-grid .dataviews-view-picker-grid__media{aspect-ratio:1/1;background-color:#fff;border-radius:4px;position:relative;width:100%}.dataviews-view-picker-grid .dataviews-view-picker-grid__media img{height:100%;object-fit:cover;width:100%}.dataviews-view-picker-grid .dataviews-view-picker-grid__media:after{border-radius:4px;box-shadow:inset 0 0 0 1px #0000001a;content:"";height:100%;pointer-events:none;position:absolute;right:0;top:0;width:100%}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields{font-size:12px;line-height:16px;position:relative}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields:not(:empty){padding:0 0 12px}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field-value:not(:empty){line-height:20px;min-height:24px;padding-top:2px}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field{align-items:center;min-height:24px}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field .dataviews-view-picker-grid__field-name{color:#757575;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:35%}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field .dataviews-view-picker-grid__field-value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:65%}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field:not(:has(.dataviews-view-picker-grid__field-value:not(:empty))){display:none}.dataviews-view-picker-grid .dataviews-view-picker-grid__badge-fields:not(:empty){padding-bottom:12px}.dataviews-view-picker-grid__field-value:empty,.dataviews-view-picker-grid__field:empty{display:none}.dataviews-view-picker-grid__card .dataviews-selection-checkbox{position:absolute;right:8px;top:-9999em;z-index:1}@media (hover:none){.dataviews-view-picker-grid__card .dataviews-selection-checkbox{top:8px}}.dataviews-view-picker-grid__card.is-selected .dataviews-selection-checkbox,.dataviews-view-picker-grid__card:focus-within .dataviews-selection-checkbox,.dataviews-view-picker-grid__card:hover .dataviews-selection-checkbox{top:8px}.dataviews-view-picker-grid__media--clickable{cursor:pointer}.dataviews-view-picker-grid-group__header{color:#1e1e1e;font-size:15px;font-weight:500;margin:0 0 8px;padding:0 48px}.dataviews-controls__datetime{border:none;padding:0}.dataviews-controls__relative-date-number,.dataviews-controls__relative-date-unit{flex:1 1 50%}.dataviews-controls__date input[type=date]::-webkit-calendar-picker-indicator,.dataviews-controls__date input[type=date]::-webkit-inner-spin-button{-webkit-appearance:none;display:none}.dataviews-controls__date-preset{border:1px solid #ddd}.dataviews-controls__date-preset:active{background-color:#000}.dataforms-layouts-panel__field{align-items:flex-start!important;justify-content:flex-start!important;min-height:32px;width:100%}.dataforms-layouts-panel__field-label{align-items:center;display:flex;flex-shrink:0;hyphens:auto;line-height:20px;min-height:32px;width:38%}.dataforms-layouts-panel__field-label--label-position-side{align-self:center}.dataforms-layouts-panel__field-control{align-items:center;display:flex;flex-grow:1;min-height:32px}.dataforms-layouts-panel__field-control .components-button{max-width:100%;min-height:32px;text-align:right;text-wrap:balance;text-wrap:pretty;white-space:normal}.dataforms-layouts-panel__field-control.components-button.is-link[aria-disabled=true]{text-decoration:none}.dataforms-layouts-panel__field-control .components-dropdown{max-width:100%}.dataforms-layouts-panel__field-dropdown .components-popover__content{min-width:320px;padding:16px}.dataforms-layouts-panel__dropdown-header{margin-bottom:16px}.dataforms-layouts-panel__modal-footer{margin-top:16px}.components-popover.components-dropdown__content.dataforms-layouts-panel__field-dropdown{z-index:159990}.dataforms-layouts-regular__field{align-items:flex-start!important;justify-content:flex-start!important;min-height:32px;width:100%}.dataforms-layouts-regular__field-label{align-items:center;display:flex;flex-shrink:0;hyphens:auto;line-height:20px;min-height:32px;width:38%}.dataforms-layouts-regular__field-label--label-position-side{align-self:center}.dataforms-layouts-regular__field-control{align-items:center;display:flex;flex-grow:1;min-height:32px}.dataforms-layouts-card__field-header-label{font-family:-apple-system,"system-ui",Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:15px;font-weight:500;line-height:20px}.dataforms-layouts-card__field{width:100%}.dataforms-layouts-card__field-description{color:#757575;display:block;font-size:13px;margin-bottom:16px}.dataforms-layouts-card__field-summary{display:flex;flex-direction:row;gap:16px}.dataforms-layouts-row__field-control{width:100%}.dataforms-layouts__wrapper{font-family:-apple-system,"system-ui",Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:400;line-height:20px}:root{--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:var(--wp-block-synced-color);--wp-editor-canvas-background:#ddd;--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,160.5;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.fields-create-template-part-modal{z-index:1000001}.fields-create-template-part-modal__area-fieldset{border:0;margin:0;padding:0}.fields-create-template-part-modal__area-radio-group{border:1px solid #949494;border-radius:2px}.fields-create-template-part-modal__area-radio-wrapper{align-items:center;display:grid;grid-template-columns:min-content 1fr min-content;padding:12px;position:relative;grid-gap:4px 8px;color:#1e1e1e}.fields-create-template-part-modal__area-radio-wrapper+.fields-create-template-part-modal__area-radio-wrapper{border-top:1px solid #949494}.fields-create-template-part-modal__area-radio-wrapper input[type=radio]{opacity:0;position:absolute}.fields-create-template-part-modal__area-radio-wrapper:has(input[type=radio]:checked){z-index:1}.fields-create-template-part-modal__area-radio-wrapper:has(input[type=radio]:not(:checked)):hover{color:var(--wp-admin-theme-color)}.fields-create-template-part-modal__area-radio-wrapper>:not(.fields-create-template-part-modal__area-radio-label){pointer-events:none}.fields-create-template-part-modal__area-radio-label:before{content:"";inset:0;position:absolute}input[type=radio]:not(:checked)~.fields-create-template-part-modal__area-radio-label:before{cursor:pointer}input[type=radio]:focus-visible~.fields-create-template-part-modal__area-radio-label:before{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:4px solid #0000}.fields-create-template-part-modal__area-radio-checkmark,.fields-create-template-part-modal__area-radio-icon{fill:currentColor}input[type=radio]:not(:checked)~.fields-create-template-part-modal__area-radio-checkmark{opacity:0}.fields-create-template-part-modal__area-radio-description{color:#757575;font-size:12px;grid-column:2/3;line-height:normal;margin:0;text-wrap:pretty}input[type=radio]:not(:checked):hover~.fields-create-template-part-modal__area-radio-description{color:inherit}.fields-controls__slug{border:0;margin:0;padding:0}.fields-controls__slug .fields-controls__slug-external-icon{margin-right:5ch}.fields-controls__slug .fields-controls__slug-input input.components-input-control__input{padding-inline-start:0!important}.fields-controls__slug .fields-controls__slug-help-link{word-break:break-word}.fields-controls__slug .fields-controls__slug-help{display:flex;flex-direction:column}.fields-controls__slug .fields-controls__slug-help .fields-controls__slug-help-slug{font-weight:600}.fields-controls__featured-image-placeholder{background:#fff linear-gradient(45deg,#0000 48%,#ddd 0,#ddd 52%,#0000 0);border-radius:2px;box-shadow:inset 0 0 0 1px #0003;display:inline-block;padding:0}.fields-controls__featured-image-title{color:#1e1e1e;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.fields-controls__featured-image-image{align-self:center;border-radius:2px;height:100%;width:100%}.fields-controls__featured-image-container .fields-controls__featured-image-placeholder{margin:0}.fields-controls__featured-image-container span{margin-left:auto}fieldset.fields-controls__featured-image{border:0;margin:0;padding:0}fieldset.fields-controls__featured-image .fields-controls__featured-image-container{border:1px solid #ddd;border-radius:2px;cursor:pointer;padding:8px 12px}fieldset.fields-controls__featured-image .fields-controls__featured-image-container:hover{background-color:#f0f0f0}fieldset.fields-controls__featured-image .fields-controls__featured-image-placeholder{height:24px;width:24px}fieldset.fields-controls__featured-image span{align-self:center;text-align:start;white-space:nowrap}fieldset.fields-controls__featured-image .fields-controls__featured-image-upload-button{height:fit-content;padding:0}fieldset.fields-controls__featured-image .fields-controls__featured-image-upload-button:focus,fieldset.fields-controls__featured-image .fields-controls__featured-image-upload-button:hover{border:0;color:unset}fieldset.fields-controls__featured-image .fields-controls__featured-image-remove-button{place-self:end}.dataforms-layouts-panel__field-control .fields-controls__featured-image-image,.dataforms-layouts-panel__field-control .fields-controls__featured-image-placeholder{height:16px;width:16px}.dataviews-view-grid__media .fields-controls__featured-image-image,.dataviews-view-grid__media .fields-controls__featured-image-placeholder,.dataviews-view-list__media-wrapper .fields-controls__featured-image-image,.dataviews-view-list__media-wrapper .fields-controls__featured-image-placeholder,.dataviews-view-table__cell-content-wrapper.dataviews-column-primary__media .fields-controls__featured-image-image,.dataviews-view-table__cell-content-wrapper.dataviews-column-primary__media .fields-controls__featured-image-placeholder{border-radius:4px;display:block;height:100%;width:100%}.dataviews-view-grid__media .fields-controls__featured-image-placeholder,.dataviews-view-list__media-wrapper .fields-controls__featured-image-placeholder,.dataviews-view-table__cell-content-wrapper.dataviews-column-primary__media .fields-controls__featured-image-placeholder{background:#f0f0f0;box-shadow:none}.dataviews-view-table__cell-content-wrapper.dataviews-column-primary__media .fields-controls__featured-image-image,.dataviews-view-table__cell-content-wrapper.dataviews-column-primary__media .fields-controls__featured-image-placeholder{height:32px;width:32px}.fields-controls__parent,.fields-controls__password,.fields-controls__template{border:0;margin:0;padding:0}.fields-controls__template-modal{z-index:1000001}.fields-controls__template-content .block-editor-block-patterns-list{column-count:2;column-gap:24px;padding-top:2px}@media (min-width:782px){.fields-controls__template-content .block-editor-block-patterns-list{column-count:3}}@media (min-width:1280px){.fields-controls__template-content .block-editor-block-patterns-list{column-count:4}}.fields-controls__template-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{break-inside:avoid-column}.fields-field__title>span:first-child{display:block;flex-grow:0;overflow:hidden;text-decoration:none;text-overflow:ellipsis;white-space:nowrap}.fields-field__pattern-title span:first-child{flex:1}.edit-site-custom-template-modal__contents-wrapper{height:100%;justify-content:flex-start!important}.edit-site-custom-template-modal__contents-wrapper>*{width:100%}.edit-site-custom-template-modal__contents-wrapper__suggestions_list{margin-left:-12px;margin-right:-12px;width:calc(100% + 24px)}.edit-site-custom-template-modal__contents>.components-button{height:auto;justify-content:center}@media (min-width:782px){.edit-site-custom-template-modal{width:456px}}@media (min-width:600px){.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list{max-height:224px;overflow-y:auto}}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item{display:block;height:auto;overflow-wrap:break-word;padding:8px 12px;text-align:right;white-space:pre-wrap;width:100%}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item mark{background:none;font-weight:700}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04)}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item:hover *,.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item:hover mark{color:var(--wp-admin-theme-color)}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item:focus{background-color:#f0f0f0}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item:focus:not(:disabled){box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color) inset}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item__info,.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item__title{display:block;overflow:hidden;text-overflow:ellipsis}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item__info{color:#757575;word-break:break-all}.edit-site-custom-template-modal__no-results{border:1px solid #ccc;border-radius:2px;padding:16px}.edit-site-custom-generic-template__modal .components-modal__header{border-bottom:none}.edit-site-custom-generic-template__modal .components-modal__content:before{margin-bottom:4px}@media (min-width:960px){.edit-site-add-new-template__modal{margin-top:64px;max-height:calc(100% - 128px);max-width:832px;width:calc(100% - 128px)}}.edit-site-add-new-template__modal .edit-site-add-new-template__custom-template-button svg,.edit-site-add-new-template__modal .edit-site-add-new-template__template-button svg{fill:var(--wp-admin-theme-color)}.edit-site-add-new-template__modal .edit-site-add-new-template__custom-template-button .edit-site-add-new-template__template-name{align-items:flex-start;flex-grow:1}.edit-site-add-new-template__modal .edit-site-add-new-template__template-icon{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-radius:100%;max-height:40px;max-width:40px;padding:8px}.edit-site-add-new-template__template-list__contents>.components-button,.edit-site-custom-template-modal__contents>.components-button{border:1px solid #ddd;display:flex;flex-direction:column;justify-content:center;outline:1px solid #0000;padding:32px}.edit-site-add-new-template__template-list__contents>.components-button span:first-child,.edit-site-custom-template-modal__contents>.components-button span:first-child{color:#1e1e1e}.edit-site-add-new-template__template-list__contents>.components-button span,.edit-site-custom-template-modal__contents>.components-button span{color:#757575}.edit-site-add-new-template__template-list__contents>.components-button:hover,.edit-site-custom-template-modal__contents>.components-button:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-color:#0000;color:var(--wp-admin-theme-color-darker-10)}.edit-site-add-new-template__template-list__contents>.components-button:hover span,.edit-site-custom-template-modal__contents>.components-button:hover span{color:var(--wp-admin-theme-color)}.edit-site-add-new-template__template-list__contents>.components-button:focus,.edit-site-custom-template-modal__contents>.components-button:focus{border-color:#0000;box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:3px solid #0000}.edit-site-add-new-template__template-list__contents>.components-button:focus span:first-child,.edit-site-custom-template-modal__contents>.components-button:focus span:first-child{color:var(--wp-admin-theme-color)}.edit-site-add-new-template__template-list__contents .edit-site-add-new-template__custom-template-button,.edit-site-add-new-template__template-list__contents .edit-site-add-new-template__template-list__prompt,.edit-site-custom-template-modal__contents .edit-site-add-new-template__custom-template-button,.edit-site-custom-template-modal__contents .edit-site-add-new-template__template-list__prompt{grid-column:1/-1}.edit-site-add-new-template__template-list__contents>.components-button{align-items:flex-start;height:100%;text-align:start}.edit-site-visual-editor__editor-canvas.is-focused{outline:calc(var(--wp-admin-border-width-focus)*2) solid var(--wp-admin-theme-color);outline-offset:calc(var(--wp-admin-border-width-focus)*-2)}.edit-site-canvas-loader{align-items:center;display:flex;height:100%;justify-content:center;opacity:0;position:absolute;right:0;top:0;width:100%}@media not (prefers-reduced-motion){.edit-site-canvas-loader{animation:edit-site-canvas-loader__fade-in-animation .5s ease .2s;animation-fill-mode:forwards}}.edit-site-canvas-loader>div{width:160px}@keyframes edit-site-canvas-loader__fade-in-animation{0%{opacity:0}to{opacity:1}}.edit-site-global-styles-preview{align-items:center;cursor:pointer;display:flex;justify-content:center;line-height:1}.edit-site-global-styles-preview__wrapper{display:block;max-width:100%;width:100%}.edit-site-typography-preview{align-items:center;background:#f0f0f0;border-radius:2px;display:flex;justify-content:center;margin-bottom:16px;min-height:100px;overflow:hidden}.edit-site-font-size__item{line-break:anywhere;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.edit-site-font-size__item-value{color:#757575}.edit-site-global-styles-screen{margin:12px 16px 16px}.edit-site-global-styles-screen-typography__indicator{align-items:center;border-radius:1px;display:flex!important;font-size:14px;height:24px;justify-content:center;width:24px}.edit-site-global-styles-screen-typography__font-variants-count{color:#757575}.edit-site-global-styles-font-families__manage-fonts{justify-content:center}.edit-site-global-styles-screen .color-block-support-panel{border-top:none;padding-left:0;padding-right:0;padding-top:0;row-gap:12px}.edit-site-global-styles-header__description{padding:0 16px}.edit-site-block-types-search{margin-bottom:8px;padding:0 16px}.edit-site-global-styles-header{margin-bottom:0!important}.edit-site-global-styles-subtitle{font-size:11px!important;font-weight:500!important;margin-bottom:0!important;text-transform:uppercase}.edit-site-global-styles-section-title{color:#2f2f2f;font-weight:600;line-height:1.2;margin:0;padding:16px 16px 0}.edit-site-global-styles-icon-with-current-color{fill:currentColor}.edit-site-global-styles__color-indicator-wrapper{flex-shrink:0;height:24px}.edit-site-global-styles__shadows-panel__options-container,.edit-site-global-styles__typography-panel__options-container{height:24px}.edit-site-global-styles__block-preview-panel{border:1px solid #e0e0e0;border-radius:4px;overflow:hidden;position:relative;width:100%}.edit-site-global-styles__shadow-preview-panel{background-image:repeating-linear-gradient(-45deg,#f5f5f5 25%,#0000 0,#0000 75%,#f5f5f5 0,#f5f5f5),repeating-linear-gradient(-45deg,#f5f5f5 25%,#0000 0,#0000 75%,#f5f5f5 0,#f5f5f5);background-position:100% 0,right 8px top 8px;background-size:16px 16px;border:1px solid #e0e0e0;border-radius:4px;height:144px;overflow:auto}.edit-site-global-styles__shadow-preview-panel .edit-site-global-styles__shadow-preview-block{background-color:#fff;border:1px solid #e0e0e0;border-radius:2px;height:60px;width:60%}.edit-site-global-styles__shadow-editor__dropdown-content{width:280px}.edit-site-global-styles__shadow-editor-panel{margin-bottom:4px}.edit-site-global-styles__shadow-editor__dropdown{position:relative;width:100%}.edit-site-global-styles__shadow-editor__dropdown-toggle{border-radius:inherit;height:auto;padding-bottom:8px;padding-top:8px;text-align:right;width:100%}.edit-site-global-styles__shadow-editor__dropdown-toggle.is-open{background:#f0f0f0;color:var(--wp-admin-theme-color)}.edit-site-global-styles__shadow-editor__remove-button{left:8px;opacity:0;position:absolute;top:8px}.edit-site-global-styles__shadow-editor__remove-button.edit-site-global-styles__shadow-editor__remove-button{border:none}.edit-site-global-styles__shadow-editor__dropdown-toggle:hover+.edit-site-global-styles__shadow-editor__remove-button,.edit-site-global-styles__shadow-editor__remove-button:focus,.edit-site-global-styles__shadow-editor__remove-button:hover{opacity:1}@media (hover:none){.edit-site-global-styles__shadow-editor__remove-button{opacity:1}}.edit-site-global-styles-screen-css{display:flex;flex:1 1 auto;flex-direction:column;margin:16px}.edit-site-global-styles-screen-css .components-v-stack{flex:1 1 auto}.edit-site-global-styles-screen-css .components-v-stack .block-editor-global-styles-advanced-panel__custom-css-input,.edit-site-global-styles-screen-css .components-v-stack .block-editor-global-styles-advanced-panel__custom-css-input .components-base-control__field{display:flex;flex:1 1 auto;flex-direction:column}.edit-site-global-styles-screen-css .components-v-stack .block-editor-global-styles-advanced-panel__custom-css-input .components-base-control__field .components-textarea-control__input{direction:ltr;flex:1 1 auto}.edit-site-global-styles-screen-css-help-link{display:inline-block;margin-top:8px}.edit-site-global-styles-screen-variations{border-top:1px solid #ddd;margin-top:16px}.edit-site-global-styles-screen-variations>*{margin:24px 16px}.edit-site-global-styles-sidebar__navigator-provider{height:100%}.edit-site-global-styles-sidebar__navigator-screen{display:flex;flex-direction:column;height:100%}.edit-site-global-styles-sidebar__navigator-screen .single-column{grid-column:span 1}.edit-site-global-styles-screen-root.edit-site-global-styles-screen-root,.edit-site-global-styles-screen-style-variations.edit-site-global-styles-screen-style-variations{background:unset;color:inherit}.edit-site-global-styles-sidebar__panel .block-editor-block-icon svg{fill:currentColor}.edit-site-global-styles-screen-root__active-style-tile.edit-site-global-styles-screen-root__active-style-tile,.edit-site-global-styles-screen-root__active-style-tile.edit-site-global-styles-screen-root__active-style-tile .edit-site-global-styles-screen-root__active-style-tile-preview{border-radius:2px}.edit-site-global-styles-screen-revisions__revisions-list{flex-grow:1;list-style:none;margin:0 16px 16px}.edit-site-global-styles-screen-revisions__revisions-list li{margin-bottom:0}.edit-site-global-styles-screen-revisions__revision-item{cursor:pointer;display:flex;flex-direction:column;position:relative}.edit-site-global-styles-screen-revisions__revision-item[role=option]:active,.edit-site-global-styles-screen-revisions__revision-item[role=option]:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid #0000}.edit-site-global-styles-screen-revisions__revision-item:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04)}.edit-site-global-styles-screen-revisions__revision-item:hover .edit-site-global-styles-screen-revisions__date{color:var(--wp-admin-theme-color)}.edit-site-global-styles-screen-revisions__revision-item:after,.edit-site-global-styles-screen-revisions__revision-item:before{content:"\a";display:block;position:absolute}.edit-site-global-styles-screen-revisions__revision-item:before{background:#ddd;border:4px solid #0000;border-radius:50%;height:8px;right:17px;top:18px;transform:translate(50%,-50%);width:8px;z-index:1}.edit-site-global-styles-screen-revisions__revision-item[aria-selected=true]{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-radius:2px;color:var(--wp-admin-theme-color);outline:3px solid #0000;outline-offset:-2px}.edit-site-global-styles-screen-revisions__revision-item[aria-selected=true] .edit-site-global-styles-screen-revisions__date{color:var(--wp-admin-theme-color)}.edit-site-global-styles-screen-revisions__revision-item[aria-selected=true]:before{background:var(--wp-admin-theme-color)}.edit-site-global-styles-screen-revisions__revision-item[aria-selected=true] .edit-site-global-styles-screen-revisions__applied-text,.edit-site-global-styles-screen-revisions__revision-item[aria-selected=true] .edit-site-global-styles-screen-revisions__changes>li,.edit-site-global-styles-screen-revisions__revision-item[aria-selected=true] .edit-site-global-styles-screen-revisions__meta{color:#1e1e1e}.edit-site-global-styles-screen-revisions__revision-item:after{border:.5px solid #ddd;height:100%;right:16px;top:0;width:0}.edit-site-global-styles-screen-revisions__revision-item:first-child:after{top:18px}.edit-site-global-styles-screen-revisions__revision-item:last-child:after{height:18px}.edit-site-global-styles-screen-revisions__revision-item-wrapper{display:block;padding:12px 40px 4px 12px}.edit-site-global-styles-screen-revisions__applied-text,.edit-site-global-styles-screen-revisions__apply-button.is-primary{align-self:flex-start;margin:4px 40px 12px 12px}.edit-site-global-styles-screen-revisions__applied-text,.edit-site-global-styles-screen-revisions__changes,.edit-site-global-styles-screen-revisions__meta{color:#757575;font-size:12px}.edit-site-global-styles-screen-revisions__description{align-items:flex-start;display:flex;flex-direction:column;gap:8px}.edit-site-global-styles-screen-revisions__description .edit-site-global-styles-screen-revisions__date{font-size:12px;font-weight:600;text-transform:uppercase}.edit-site-global-styles-screen-revisions__meta{align-items:flex-start;display:flex;justify-content:start;margin-bottom:4px;text-align:right;width:100%}.edit-site-global-styles-screen-revisions__meta img{border-radius:100%;height:16px;margin-left:8px;width:16px}.edit-site-global-styles-screen-revisions__loading{margin:24px auto!important}.edit-site-global-styles-screen-revisions__changes{line-height:1.4;list-style:disc;margin-right:12px;text-align:right}.edit-site-global-styles-screen-revisions__changes li{margin-bottom:4px}.edit-site-global-styles-screen-revisions__pagination.edit-site-global-styles-screen-revisions__pagination{gap:2px;justify-content:space-between}.edit-site-global-styles-screen-revisions__pagination.edit-site-global-styles-screen-revisions__pagination .edit-site-pagination__total{height:1px;margin:-1px;overflow:hidden;position:absolute;right:-1000px}.edit-site-global-styles-screen-revisions__pagination.edit-site-global-styles-screen-revisions__pagination .components-text{font-size:12px;will-change:opacity}.edit-site-global-styles-screen-revisions__pagination.edit-site-global-styles-screen-revisions__pagination .components-button.is-tertiary{color:#1e1e1e}.edit-site-global-styles-screen-revisions__pagination.edit-site-global-styles-screen-revisions__pagination .components-button.is-tertiary:disabled,.edit-site-global-styles-screen-revisions__pagination.edit-site-global-styles-screen-revisions__pagination .components-button.is-tertiary[aria-disabled=true]{color:#949494}.edit-site-global-styles-screen-revisions__footer{background:#fff;border-top:1px solid #ddd;bottom:0;height:56px;min-width:100%;padding:12px;position:sticky;z-index:1}.edit-site-global-styles-sidebar{display:flex;flex-direction:column;min-height:100%}.edit-site-global-styles-sidebar__panel{flex:1}.edit-site-global-styles-sidebar .edit-site-global-styles-sidebar__header-title{margin:0}.edit-site-global-styles-sidebar .edit-site-global-styles-sidebar__header-actions{flex:1}.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{border:0}.edit-site-global-styles-sidebar .single-column{grid-column:span 1}.edit-site-global-styles-sidebar .components-tools-panel .span-columns{grid-column:1/-1}.edit-site-global-styles-sidebar__blocks-group{border-top:1px solid #e0e0e0;padding-top:24px}.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 hr{margin:0}.show-icon-labels .edit-site-global-styles-sidebar__header .components-button.has-icon{width:auto}.show-icon-labels .edit-site-global-styles-sidebar__header .components-button.has-icon svg{display:none}.show-icon-labels .edit-site-global-styles-sidebar__header .components-button.has-icon:after{content:attr(aria-label);font-size:12px}.edit-site-patterns__delete-modal{width:384px}.page-patterns-preview-field{align-items:center;border-radius:4px;display:flex;flex-direction:column;height:100%;justify-content:center}.dataviews-view-grid .page-patterns-preview-field .block-editor-block-preview__container{height:100%}.dataviews-view-table .page-patterns-preview-field{flex-grow:0;text-wrap:balance;text-wrap:pretty;width:96px}.edit-site-patterns__pattern-icon{fill:var(--wp-block-synced-color);flex-shrink:0}.edit-site-patterns__section-header{border-bottom:1px solid #f0f0f0;flex-shrink:0;min-height:40px;padding:16px 48px;position:sticky;top:0;z-index:2}@media not (prefers-reduced-motion){.edit-site-patterns__section-header{transition:padding .1s ease-out}}.edit-site-patterns__section-header .edit-site-patterns__title{min-height:40px}.edit-site-patterns__section-header .edit-site-patterns__title .components-heading{flex-basis:0;flex-grow:1;white-space:nowrap}.edit-site-patterns__section-header .edit-site-patterns__sub-title{margin-bottom:8px}.edit-site-patterns__section-header .screen-reader-shortcut:focus{top:0}.edit-site-page-patterns-dataviews .dataviews-view-grid__badge-fields .dataviews-view-grid__field-value:has(.edit-site-patterns__field-sync-status-fully){background:rgba(var(--wp-block-synced-color--rgb),.04);color:var(--wp-block-synced-color)}.dataviews-action-modal__duplicate-pattern [role=dialog]>[role=document]{width:350px}.dataviews-action-modal__duplicate-pattern .patterns-menu-items__convert-modal-categories{position:relative}.dataviews-action-modal__duplicate-pattern .components-form-token-field__suggestions-list:not(:empty){background-color:#fff;border:1px solid var(--wp-admin-theme-color);border-bottom-left-radius:2px;border-bottom-right-radius:2px;box-shadow:0 0 .5px .5px var(--wp-admin-theme-color);box-sizing:border-box;max-height:96px;min-width:auto;position:absolute;right:-1px;width:calc(100% + 2px);z-index:1}@media (min-width:600px){.dataviews-action-modal__duplicate-template-part .components-modal__frame{max-width:500px}}@container (max-width: 430px){.edit-site-page-patterns-dataviews .edit-site-patterns__section-header{padding-left:24px;padding-right:24px}}.page-templates-preview-field{align-items:center;border-radius:4px;display:flex;flex-direction:column;height:100%;justify-content:center;width:100%}.dataviews-view-list .page-templates-preview-field .block-editor-block-preview__container{height:120px}.dataviews-view-grid .page-templates-preview-field .block-editor-block-preview__container{height:100%}.dataviews-view-table .page-templates-preview-field{max-height:160px;position:relative;text-wrap:balance;text-wrap:pretty;width:120px}.edit-site-page-templates .dataviews-pagination{z-index:2}.page-templates-author-field__avatar{align-items:center;display:flex;flex-shrink:0;height:24px;justify-content:right;overflow:hidden;width:24px}.page-templates-author-field__avatar img{border-radius:100%;height:16px;object-fit:cover;opacity:0;width:16px}@media not (prefers-reduced-motion){.page-templates-author-field__avatar img{transition:opacity .1s linear}}.page-templates-author-field__avatar.is-loaded img{opacity:1}.page-templates-author-field__icon{display:flex;flex-shrink:0;height:24px;width:24px}.page-templates-author-field__icon svg{margin-right:-4px;fill:currentColor}.page-templates-author-field__name{overflow:hidden;text-overflow:ellipsis}.edit-site-list__rename-modal{z-index:1000001}@media (min-width:782px){.edit-site-list__rename-modal .components-base-control{width:320px}}.edit-site-editor__editor-interface{opacity:1}@media not (prefers-reduced-motion){.edit-site-editor__editor-interface{transition:opacity .1s ease-out}}.edit-site-editor__editor-interface.is-loading{opacity:0}.edit-site-editor__toggle-save-panel{background-color:#fff;border:1px dotted #ddd;box-sizing:border-box;display:flex;justify-content:center;padding:24px;width:280px}.edit-site-editor__view-mode-toggle{view-transition-name:toggle;height:64px;right:0;top:0;width:64px;z-index:100}.edit-site-editor__view-mode-toggle .components-button{align-items:center;border-radius:0;color:#fff;display:flex;height:100%;justify-content:center;overflow:hidden;padding:0;width:100%}.edit-site-editor__view-mode-toggle .components-button:active,.edit-site-editor__view-mode-toggle .components-button:hover{color:#fff}.edit-site-editor__view-mode-toggle .components-button:focus{box-shadow:none}.edit-site-editor__view-mode-toggle .edit-site-editor__view-mode-toggle-icon img,.edit-site-editor__view-mode-toggle .edit-site-editor__view-mode-toggle-icon svg{background:#1e1e1e;display:block}.edit-site-editor__back-icon{align-items:center;background-color:#ccc;display:flex;height:64px;justify-content:center;pointer-events:none;position:absolute;right:0;top:0;width:64px}.edit-site-editor__back-icon svg{fill:currentColor}.edit-site-editor__back-icon.has-site-icon{backdrop-filter:saturate(180%) blur(15px);background-color:#fff9}.edit-site-welcome-guide{width:312px}.edit-site-welcome-guide.guide-editor .edit-site-welcome-guide__image,.edit-site-welcome-guide.guide-styles .edit-site-welcome-guide__image{background:#00a0d2}.edit-site-welcome-guide.guide-page .edit-site-welcome-guide__video{border-left:16px solid #3858e9;border-top:16px solid #3858e9}.edit-site-welcome-guide.guide-template .edit-site-welcome-guide__video{border-right:16px solid #3858e9;border-top:16px solid #3858e9}.edit-site-welcome-guide__image{margin:0 0 16px}.edit-site-welcome-guide__image>img{display:block;max-width:100%;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}.edit-site-layout{color:#ccc;display:flex;flex-direction:column;height:100%}.edit-site-layout,.edit-site-layout:not(.is-full-canvas) .editor-visual-editor{background:#1e1e1e}.edit-site-layout__content{display:flex;flex-grow:1;height:100%}.edit-site-layout__sidebar-region{flex-shrink:0;width:100vw;z-index:1}@media (min-width:782px){.edit-site-layout__sidebar-region{width:300px}}.edit-site-layout.is-full-canvas .edit-site-layout__sidebar-region{height:100vh;position:fixed!important;right:0;top:0}.edit-site-layout__sidebar-region .edit-site-layout__sidebar{display:flex;flex-direction:column;height:100%}.edit-site-layout__sidebar-region .resizable-editor__drag-handle{left:0}.edit-site-layout__main{display:flex;flex-direction:column;flex-grow:1;overflow:hidden}.edit-site-layout__mobile{display:flex;flex-direction:column;position:relative;width:100%;z-index:2}.edit-site-layout__mobile .edit-site-sidebar__screen-wrapper{padding:0}.edit-site-layout__mobile .edit-site-sidebar-navigation-screen__main{padding:0 12px}.edit-site-layout__canvas-container{flex-grow:1;overflow:visible;position:relative;z-index:2}.edit-site-layout__canvas-container.is-resizing:after{bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:100}.edit-site-layout__canvas{align-items:center;bottom:0;display:flex;justify-content:center;position:absolute;right:0;top:0;width:100%}.edit-site-layout__canvas.is-right-aligned{justify-content:flex-end}.edit-site-layout__canvas .edit-site-resizable-frame__inner{color:#1e1e1e}@media (min-width:782px){.edit-site-layout__canvas{bottom:16px;top:16px;width:calc(100% - 16px)}.edit-site-layout__canvas .edit-site-resizable-frame__inner-content{box-shadow:0 1px 1px #00000008,0 1px 2px #00000005,0 3px 3px #00000005,0 4px 4px #00000003;overflow:hidden}}@media (min-width:782px) and (not (prefers-reduced-motion)){.edit-site-layout__canvas .edit-site-resizable-frame__inner-content{transition:border-radius,box-shadow .4s}}@media (min-width:782px){.edit-site-layout:not(.is-full-canvas) .edit-site-layout__canvas .edit-site-resizable-frame__inner-content{border-radius:8px}.edit-site-layout__canvas .edit-site-resizable-frame__inner-content:hover{box-shadow:0 5px 15px #00000014,0 15px 27px #00000012,0 30px 36px #0000000a,0 50px 43px #00000005}}.edit-site-layout.is-full-canvas .edit-site-layout__canvas{bottom:0;top:0;width:100%}.edit-site-layout__canvas .interface-interface-skeleton,.edit-site-layout__mobile .interface-interface-skeleton,.edit-site-template-pages-preview .interface-interface-skeleton{min-height:100%!important;position:relative!important}.edit-site-template-pages-preview{height:100%}html.canvas-mode-edit-transition::view-transition-group(toggle){animation-delay:255ms}@media (prefers-reduced-motion){::view-transition-group(*),::view-transition-new(*),::view-transition-old(*){animation:none!important}}.edit-site-layout.is-full-canvas .edit-site-layout__sidebar-region .edit-site-layout__view-mode-toggle{display:none}.edit-site-layout__view-mode-toggle.components-button{view-transition-name:toggle;align-items:center;background:#1e1e1e;border-radius:0;color:#fff;display:flex;height:64px;justify-content:center;overflow:hidden;padding:0;position:relative;width:64px}.edit-site-layout__view-mode-toggle.components-button:active,.edit-site-layout__view-mode-toggle.components-button:hover{color:#fff}.edit-site-layout__view-mode-toggle.components-button:focus,.edit-site-layout__view-mode-toggle.components-button:focus-visible{box-shadow:0 0 0 3px #1e1e1e,0 0 0 6px var(--wp-admin-theme-color);outline:4px solid #0000;outline-offset:4px}.edit-site-layout__view-mode-toggle.components-button:before{border-radius:4px;bottom:9px;box-shadow:none;content:"";display:block;left:9px;position:absolute;right:17px;top:9px}@media not (prefers-reduced-motion){.edit-site-layout__view-mode-toggle.components-button:before{transition:box-shadow .1s ease}}.edit-site-layout__view-mode-toggle.components-button .edit-site-layout__view-mode-toggle-icon{align-items:center;display:flex;height:64px;justify-content:center;width:64px}.edit-site-layout__actions{background:#fff;bottom:auto;color:#1e1e1e;left:0;position:fixed!important;right:auto;top:-9999em;width:280px;z-index:100000}.edit-site-layout__actions:focus,.edit-site-layout__actions:focus-within{bottom:0;top:auto}.edit-site-layout__actions.is-entity-save-view-open:focus,.edit-site-layout__actions.is-entity-save-view-open:focus-within{top:0}@media (min-width:782px){.edit-site-layout__actions{border-right:1px solid #ddd}}.edit-site-layout__area{box-shadow:0 1px 1px #00000008,0 1px 2px #00000005,0 3px 3px #00000005,0 4px 4px #00000003;flex-grow:1;margin:0;overflow:hidden}@media (min-width:782px){.edit-site-layout__area{border-radius:8px;margin:16px 0 16px 16px}}.edit-site .components-editor-notices__snackbar{bottom:16px;left:0;padding-left:16px;padding-right:16px;position:fixed}.edit-site-save-hub{border-top:1px solid #2f2f2f;color:#949494;flex-shrink:0;margin:0;padding:16px}.edit-site-save-hub__button{color:inherit;justify-content:center;width:100%}.edit-site-save-hub__button[aria-disabled=true]{opacity:1}.edit-site-save-hub__button[aria-disabled=true]:hover{color:inherit}.edit-site-save-hub__button:not(.is-primary).is-busy,.edit-site-save-hub__button:not(.is-primary).is-busy[aria-disabled=true]:hover{color:#1e1e1e}@media (min-width:600px){.edit-site-save-panel__modal{width:600px}}.edit-site-sidebar__content{contain:content;flex-grow:1;overflow-x:hidden;overflow-y:auto}@keyframes local--slide-from-right{0%{opacity:0;transform:translateX(-50px)}to{opacity:1;transform:none}}@keyframes local--slide-from-left{0%{opacity:0;transform:translateX(50px)}to{opacity:1;transform:none}}.edit-site-sidebar__screen-wrapper{overflow-x:auto}.edit-site-sidebar__screen-wrapper::-webkit-scrollbar{height:12px;width:12px}.edit-site-sidebar__screen-wrapper::-webkit-scrollbar-track{background-color:initial}.edit-site-sidebar__screen-wrapper::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:initial;border:3px solid #0000;border-radius:8px}.edit-site-sidebar__screen-wrapper:focus-within::-webkit-scrollbar-thumb,.edit-site-sidebar__screen-wrapper:focus::-webkit-scrollbar-thumb,.edit-site-sidebar__screen-wrapper:hover::-webkit-scrollbar-thumb{background-color:#757575}.edit-site-sidebar__screen-wrapper{scrollbar-color:#0000 #0000;scrollbar-gutter:stable both-edges;scrollbar-width:thin}.edit-site-sidebar__screen-wrapper:focus,.edit-site-sidebar__screen-wrapper:focus-within,.edit-site-sidebar__screen-wrapper:hover{scrollbar-color:#757575 #0000}.edit-site-sidebar__screen-wrapper{will-change:transform}@media (hover:none){.edit-site-sidebar__screen-wrapper{scrollbar-color:#757575 #0000}}.edit-site-sidebar__screen-wrapper{animation-duration:.14s;animation-timing-function:ease-in-out;display:flex;flex-direction:column;height:100%;max-height:100%;padding:0 12px;scrollbar-gutter:stable;will-change:transform,opacity}@media (prefers-reduced-motion:reduce){.edit-site-sidebar__screen-wrapper{animation-duration:0s}}.edit-site-sidebar__screen-wrapper.slide-from-left{animation-name:local--slide-from-left}.edit-site-sidebar__screen-wrapper.slide-from-right{animation-name:local--slide-from-right}.edit-site-sidebar-button{color:#e0e0e0;flex-shrink:0}.edit-site-sidebar-button:focus:not(:disabled){box-shadow:none;outline:none}.edit-site-sidebar-button:focus-visible:not(:disabled){box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:3px solid #0000}.edit-site-sidebar-button:focus,.edit-site-sidebar-button:focus-visible,.edit-site-sidebar-button:hover:not(:disabled,[aria-disabled=true]),.edit-site-sidebar-button:not(:disabled,[aria-disabled=true]):active,.edit-site-sidebar-button[aria-expanded=true]{color:#f0f0f0}.edit-site-sidebar-navigation-item.components-item{border:none;color:#949494;min-height:40px;padding:8px 16px 8px 6px}.edit-site-sidebar-navigation-item.components-item:focus,.edit-site-sidebar-navigation-item.components-item:hover,.edit-site-sidebar-navigation-item.components-item[aria-current=true]{color:#e0e0e0}.edit-site-sidebar-navigation-item.components-item:focus .edit-site-sidebar-navigation-item__drilldown-indicator,.edit-site-sidebar-navigation-item.components-item:hover .edit-site-sidebar-navigation-item__drilldown-indicator,.edit-site-sidebar-navigation-item.components-item[aria-current=true] .edit-site-sidebar-navigation-item__drilldown-indicator{fill:#e0e0e0}.edit-site-sidebar-navigation-item.components-item[aria-current=true]{background:#2f2f2f;color:#fff;font-weight:500}.edit-site-sidebar-navigation-item.components-item:focus-visible{transform:translateZ(0)}.edit-site-sidebar-navigation-item.components-item .edit-site-sidebar-navigation-item__drilldown-indicator{fill:#949494}.edit-site-sidebar-navigation-item.components-item.with-suffix{padding-left:16px}.edit-site-sidebar-navigation-screen__content .block-editor-list-view-block-select-button{cursor:grab;padding:8px 0 8px 8px}.edit-site-sidebar-navigation-screen{display:flex;flex-direction:column;overflow-x:unset!important;position:relative}.edit-site-sidebar-navigation-screen__main{flex-grow:1;margin-bottom:16px}.edit-site-sidebar-navigation-screen__main.has-footer{margin-bottom:0}.edit-site-sidebar-navigation-screen__content{padding:0 16px}.edit-site-sidebar-navigation-screen__content .components-text{color:#ccc}.edit-site-sidebar-navigation-screen__content .components-heading{margin-bottom:8px}.edit-site-sidebar-navigation-screen__title-icon{background:#1e1e1e;margin-bottom:8px;padding-bottom:8px;padding-top:48px;position:sticky;top:0;z-index:1}.edit-site-sidebar-navigation-screen__title{flex-grow:1;overflow-wrap:break-word}.edit-site-sidebar-navigation-screen__title.edit-site-sidebar-navigation-screen__title,.edit-site-sidebar-navigation-screen__title.edit-site-sidebar-navigation-screen__title .edit-site-sidebar-navigation-screen__title{line-height:32px}.edit-site-sidebar-navigation-screen__actions{display:flex;flex-shrink:0}@media (min-width:782px){.edit-site-sidebar-navigation-screen__content .edit-site-global-styles-variation-container{max-width:292px}}.edit-site-global-styles-variation-title{color:#ddd;font-size:11px;font-weight:500;text-transform:uppercase}.edit-site-sidebar-navigation-screen__content .edit-site-global-styles-variations_item .edit-site-global-styles-variations_item-preview{outline-color:#ffffff0d}.edit-site-sidebar-navigation-screen__content .edit-site-global-styles-variations_item:not(.is-active):hover .edit-site-global-styles-variations_item-preview{outline-color:#ffffff26}.edit-site-sidebar-navigation-screen__content .edit-site-global-styles-variations_item.is-active .edit-site-global-styles-variations_item-preview{outline-color:#fff}.edit-site-sidebar-navigation-screen__content .edit-site-global-styles-variations_item:focus-visible .edit-site-global-styles-variations_item-preview{outline-color:var(--wp-admin-theme-color)}.edit-site-sidebar-navigation-screen__footer{background-color:#1e1e1e;border-top:1px solid #2f2f2f;bottom:0;gap:0;margin:16px 0 0;padding:8px 16px;position:sticky}.edit-site-sidebar-navigation-screen__footer .edit-site-sidebar-navigation-screen-details-footer{margin-left:-16px;margin-right:-16px}.edit-site-sidebar-navigation-screen__input-control{width:100%}.edit-site-sidebar-navigation-screen__input-control .components-input-control__container{background:#2f2f2f}.edit-site-sidebar-navigation-screen__input-control .components-input-control__container .components-button{color:#e0e0e0!important}.edit-site-sidebar-navigation-screen__input-control .components-input-control__input{background:#2f2f2f!important;color:#e0e0e0!important}.edit-site-sidebar-navigation-screen__input-control .components-input-control__backdrop{border:4px!important}.edit-site-sidebar-navigation-screen__input-control .components-base-control__help{color:#949494}.edit-site-sidebar-navigation-screen-details-footer div.edit-site-sidebar-navigation-item.components-item:focus,.edit-site-sidebar-navigation-screen-details-footer div.edit-site-sidebar-navigation-item.components-item:hover,.edit-site-sidebar-navigation-screen-details-footer div.edit-site-sidebar-navigation-item.components-item[aria-current]{background:none}.sidebar-navigation__more-menu .components-button{color:#e0e0e0}.sidebar-navigation__more-menu .components-button:focus,.sidebar-navigation__more-menu .components-button:hover,.sidebar-navigation__more-menu .components-button[aria-current]{color:#f0f0f0}.edit-site-sidebar-navigation-screen-patterns__group{margin-bottom:24px;margin-left:-16px;margin-right:-16px}.edit-site-sidebar-navigation-screen-patterns__group:last-of-type{border-bottom:0;margin-bottom:0;padding-bottom:0}.edit-site-sidebar-navigation-screen-patterns__group-header{margin-top:16px}.edit-site-sidebar-navigation-screen-patterns__group-header p{color:#949494}.edit-site-sidebar-navigation-screen-patterns__group-header h2{font-size:11px;font-weight:500;text-transform:uppercase}.edit-site-sidebar-navigation-screen-patterns__divider{border-top:1px solid #2f2f2f;margin:16px 0}.edit-site-sidebar-navigation-screen__description{margin:0 0 32px}.edit-site-sidebar-navigation-screen-navigation-menus{margin-left:-16px;margin-right:-16px}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-leaf .block-editor-list-view-block-contents{white-space:normal}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block__title{margin-top:3px}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block__menu-cell{padding-left:0}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block-select-button{color:#949494}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block-select-button:focus,.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block-select-button:hover,.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block-select-button[aria-current]{color:#fff}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block__menu{color:#949494}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block__menu:focus,.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block__menu:hover{color:#fff}.edit-site-sidebar-navigation-screen-navigation-menus__loading.components-spinner{display:block;margin-left:auto;margin-right:auto}.edit-site-sidebar-navigation-screen-navigation-menus__helper-block-editor{display:none}.edit-site-sidebar-dataviews,.edit-site-sidebar-navigation-screen-main,.edit-site-sidebar-navigation-screen-templates-browse{margin-left:-16px;margin-right:-16px}.edit-site-sidebar-dataviews-dataview-item{border-radius:2px}.edit-site-sidebar-dataviews-dataview-item:focus,.edit-site-sidebar-dataviews-dataview-item:hover,.edit-site-sidebar-dataviews-dataview-item[aria-current]{color:#e0e0e0}.edit-site-sidebar-dataviews-dataview-item.is-selected{background:#2f2f2f;color:#fff;font-weight:500}.edit-site-site-hub{align-items:center;display:flex;gap:8px;height:64px;justify-content:space-between;margin-left:12px}.edit-site-site-hub__actions{flex-shrink:0}.edit-site-site-hub__view-mode-toggle-container{flex-shrink:0;height:64px;width:64px}.edit-site-site-hub__view-mode-toggle-container.has-transparent-background .edit-site-layout__view-mode-toggle-icon{background:#0000}.edit-site-site-hub__title .components-button{color:#e0e0e0;display:block;flex-grow:1;font-size:15px;font-weight:500;margin-right:-4px;overflow:hidden;padding-left:16px;position:relative;text-decoration:none;text-overflow:ellipsis;white-space:nowrap}.edit-site-site-hub__title .components-button:active,.edit-site-site-hub__title .components-button:focus,.edit-site-site-hub__title .components-button:hover{color:#e0e0e0}.edit-site-site-hub__title .components-button:focus{box-shadow:none;outline:none}.edit-site-site-hub__title .components-button:focus-visible{box-shadow:0 0 0 var(--wp-admin-border-width-focus) #1e1e1e,0 0 0 calc(var(--wp-admin-border-width-focus)*2) var(--wp-admin-theme-color);outline:2px solid #0000;outline-offset:2px}.edit-site-site-hub__title .components-button:after{content:"↗";font-weight:400;left:0;opacity:0;position:absolute}@media not (prefers-reduced-motion){.edit-site-site-hub__title .components-button:after{transition:opacity .1s linear}}.edit-site-site-hub__title .components-button:active:after,.edit-site-site-hub__title .components-button:focus:after,.edit-site-site-hub__title .components-button:hover:after{opacity:1}.edit-site-site-hub_toggle-command-center{color:#e0e0e0}.edit-site-site-hub_toggle-command-center:active svg,.edit-site-site-hub_toggle-command-center:hover svg{fill:#f0f0f0}.edit-site-site-icon__icon{fill:currentColor;height:100%;width:100%}.edit-site-layout.is-full-canvas .edit-site-site-icon__icon{padding:12px}.edit-site-site-icon__image{aspect-ratio:1/1;background:#333;height:100%;object-fit:cover;width:100%}.edit-site-layout.is-full-canvas .edit-site-site-icon__image{border-radius:0}.edit-site-editor__view-mode-toggle button:focus{position:relative}.edit-site-editor__view-mode-toggle button:focus:before{bottom:0;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color),inset 0 0 0 calc(1px + var(--wp-admin-border-width-focus)) #fff;content:"";display:block;left:0;position:absolute;right:0;top:0;z-index:1}.edit-site-style-book{height:100%}.edit-site-style-book.is-button{border-radius:8px}.edit-site-style-book{align-items:stretch;display:flex;flex-direction:column}.edit-site-style-book__iframe{display:block;height:100%;width:100%}.edit-site-style-book__iframe.is-button{border-radius:8px}.edit-site-style-book__iframe.is-focused{outline:calc(var(--wp-admin-border-width-focus)*2) solid var(--wp-admin-theme-color);outline-offset:calc(var(--wp-admin-border-width-focus)*-2)}.edit-site-style-book__tablist-container{background:#fff;display:flex;flex:none;padding-left:56px;width:100%}.edit-site-style-book__tabpanel{flex:1 0 auto;overflow:auto}.edit-site-editor-canvas-container{background-color:var(--wp-editor-canvas-background);height:100%}.edit-site-editor-canvas-container iframe{display:block;height:100%;width:100%}.edit-site-layout.is-full-canvas .edit-site-editor-canvas-container{padding:24px 24px 0}.edit-site-editor-canvas-container__section{background:#fff;border-radius:8px;bottom:0;left:0;overflow:hidden;position:absolute;right:0;top:0}@media not (prefers-reduced-motion){.edit-site-editor-canvas-container__section{transition:all .3s}}.edit-site-editor-canvas-container__close-button{background:#fff;left:8px;position:absolute;top:8px;z-index:2}.edit-site-post-edit{padding:24px}.dataforms-layouts-panel__field-dropdown .fields-controls__password{border-top:1px solid #e0e0e0;padding-top:16px}.edit-site-post-list__featured-image{height:100%;object-fit:cover;width:100%}.edit-site-post-list__featured-image-wrapper{border-radius:4px;height:100%;width:100%}.edit-site-post-list__featured-image-wrapper.is-layout-table .edit-site-post-list__featured-image-button,.edit-site-post-list__featured-image-wrapper.is-layout-table:not(:has(.edit-site-post-list__featured-image-button)){background-color:#f0f0f0;border-radius:4px;display:block;flex-grow:0!important;height:32px;overflow:hidden;position:relative;width:32px}.edit-site-post-list__featured-image-wrapper.is-layout-table .edit-site-post-list__featured-image-button:after,.edit-site-post-list__featured-image-wrapper.is-layout-table:not(:has(.edit-site-post-list__featured-image-button)):after{border-radius:4px;box-shadow:inset 0 0 0 1px #0000001a;content:"";height:100%;position:absolute;right:0;top:0;width:100%}.edit-site-post-list__featured-image-button{background-color:unset;border:none;border-radius:4px;box-shadow:none;box-sizing:border-box;cursor:pointer;height:100%;overflow:hidden;padding:0;width:100%}.edit-site-post-list__featured-image-button:focus-visible{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid #0000}.dataviews-view-grid__card.is-selected .edit-site-post-list__featured-image-button:after{background:rgba(var(--wp-admin-theme-color--rgb),.04);box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.edit-site-post-list__status-icon{height:24px;width:24px}.edit-site-post-list__status-icon svg{fill:currentColor;margin-right:-4px}.edit-site-resizable-frame__inner{position:relative}body:has(.edit-site-resizable-frame__inner.is-resizing){cursor:col-resize;user-select:none;-webkit-user-select:none}.edit-site-resizable-frame__inner.is-resizing:before{content:"";inset:0;position:absolute;z-index:1}.edit-site-resizable-frame__inner-content{inset:0;position:absolute;z-index:0}.edit-site-resizable-frame__handle{align-items:center;background-color:#75757566;border:0;border-radius:4px;cursor:col-resize;display:flex;height:64px;justify-content:flex-end;padding:0;position:absolute;top:calc(50% - 32px);width:4px;z-index:100}.edit-site-resizable-frame__handle:before{content:"";height:100%;position:absolute;right:100%;width:32px}.edit-site-resizable-frame__handle:after{content:"";height:100%;left:100%;position:absolute;width:32px}.edit-site-resizable-frame__handle:focus-visible{outline:2px solid #0000}.edit-site-resizable-frame__handle.is-resizing,.edit-site-resizable-frame__handle:focus,.edit-site-resizable-frame__handle:hover{background-color:var(--wp-admin-theme-color)}.edit-site-push-changes-to-global-styles-control .components-button{justify-content:center;width:100%}@media (min-width:782px){.font-library-modal.font-library-modal{width:65vw}}.font-library-modal .components-modal__header{border-bottom:none}.font-library-modal .components-modal__content{margin-bottom:70px;padding-top:0}.font-library-modal .font-library-modal__subtitle{font-size:11px;font-weight:500;text-transform:uppercase}.font-library-modal .components-navigator-screen{padding:3px}.font-library-modal__tabpanel-layout{margin-top:32px}.font-library-modal__tabpanel-layout .font-library-modal__loading{align-items:center;display:flex;height:100%;justify-content:center;padding-top:124px;position:absolute;right:0;top:0;width:100%}.font-library-modal__footer{background-color:#fff;border-top:1px solid #ddd;bottom:32px;height:70px;margin:0 -32px -32px;padding:16px 32px;position:absolute;width:100%}.font-library-modal__page-selection{font-size:11px;font-weight:500;text-transform:uppercase}@media (min-width:600px){.font-library-modal__page-selection .components-select-control__input{font-size:11px!important;font-weight:500}}.font-library-modal__fonts-title{font-size:11px;font-weight:600;margin-bottom:0;margin-top:0;text-transform:uppercase}.font-library-modal__fonts-list{margin-bottom:0;margin-top:0}.font-library-modal__fonts-list-item{margin-bottom:0}.font-library-modal__font-card{border:1px solid #e0e0e0;height:auto!important;margin-top:-1px;padding:16px;width:100%}.font-library-modal__font-card:hover{background-color:#f0f0f0}.font-library-modal__font-card:focus{position:relative}.font-library-modal__font-card .font-library-modal__font-card__name{font-weight:700}.font-library-modal__font-card .font-library-modal__font-card__count{color:#757575}.font-library-modal__font-card .font-library-modal__font-variant_demo-image{display:block;height:24px;width:auto}.font-library-modal__font-card .font-library-modal__font-variant_demo-text{flex-shrink:0;white-space:nowrap}@media not (prefers-reduced-motion){.font-library-modal__font-card .font-library-modal__font-variant_demo-text{transition:opacity .3s ease-in-out}}.font-library-modal__font-variant{border-bottom:1px solid #e0e0e0;padding-bottom:16px}.font-library-modal__tablist-container{background:#fff;border-bottom:1px solid #ddd;margin:0 -32px;padding:0 16px;position:sticky;top:0;z-index:1}.font-library-modal__tablist-container [role=tablist]{margin-bottom:-1px}.font-library-modal__upload-area{align-items:center;display:flex;height:256px!important;justify-content:center;width:100%}button.font-library-modal__upload-area{background-color:#f0f0f0}.font-library-modal__local-fonts{margin:0 auto;width:80%}.font-library-modal__local-fonts .font-library-modal__upload-area__text{color:#757575}.font-library__google-fonts-confirm{align-items:center;display:flex;justify-content:center;margin-top:64px}.font-library__google-fonts-confirm p{line-height:1.4}.font-library__google-fonts-confirm h2{font-size:1.2rem;font-weight:400}.font-library__google-fonts-confirm .components-card{padding:16px;width:400px}.font-library__google-fonts-confirm .components-button{justify-content:center;width:100%}.font-library-modal__select-all{padding:16px 17px 16px 16px}.font-library-modal__select-all .components-checkbox-control__label{padding-right:16px}.edit-site-pagination .components-button.is-tertiary{height:32px;justify-content:center;width:32px}.edit-site-global-styles-variations_item{box-sizing:border-box;cursor:pointer}.edit-site-global-styles-variations_item .edit-site-global-styles-variations_item-preview{border-radius:2px;outline:1px solid #0000001a;outline-offset:-1px;overflow:hidden;position:relative}@media not (prefers-reduced-motion){.edit-site-global-styles-variations_item .edit-site-global-styles-variations_item-preview{transition:outline .1s linear}}.edit-site-global-styles-variations_item .edit-site-global-styles-variations_item-preview.is-pill{height:32px}.edit-site-global-styles-variations_item .edit-site-global-styles-variations_item-preview.is-pill .block-editor-iframe__scale-container{overflow:hidden}.edit-site-global-styles-variations_item:not(.is-active):hover .edit-site-global-styles-variations_item-preview{outline-color:#0000004d}.edit-site-global-styles-variations_item.is-active .edit-site-global-styles-variations_item-preview,.edit-site-global-styles-variations_item:focus-visible .edit-site-global-styles-variations_item-preview{outline-color:#1e1e1e;outline-offset:1px;outline-width:var(--wp-admin-border-width-focus)}.edit-site-global-styles-variations_item:focus-visible .edit-site-global-styles-variations_item-preview{outline-color:var(--wp-admin-theme-color)}.edit-site-styles .edit-site-global-styles-screen-root{box-shadow:none}.edit-site-styles .edit-site-global-styles-screen-root>div>hr{display:none}.edit-site-styles .edit-site-global-styles-sidebar__navigator-provider .components-tools-panel{border-top:none}.edit-site-styles .edit-site-global-styles-sidebar__navigator-provider{overflow-y:auto;padding-left:0;padding-right:0}.edit-site-styles .edit-site-global-styles-sidebar__navigator-provider .edit-site-global-styles-sidebar__navigator-screen{outline:none;padding:12px}.edit-site-styles .edit-site-sidebar-button{color:#1e1e1e}::view-transition-image-pair(root){isolation:auto}::view-transition-new(root),::view-transition-old(root){animation:none;display:block;mix-blend-mode:normal}body.js #wpadminbar{display:none}body.js #wpbody{padding-top:0}body.js.appearance_page_gutenberg-template-parts,body.js.site-editor-php{background:#fff}body.js.appearance_page_gutenberg-template-parts #wpcontent,body.js.site-editor-php #wpcontent{padding-right:0}body.js.appearance_page_gutenberg-template-parts #wpbody-content,body.js.site-editor-php #wpbody-content{padding-bottom:0}body.js.appearance_page_gutenberg-template-parts #wpbody-content>div:not(.edit-site):not(#screen-meta),body.js.appearance_page_gutenberg-template-parts #wpfooter,body.js.site-editor-php #wpbody-content>div:not(.edit-site):not(#screen-meta),body.js.site-editor-php #wpfooter{display:none}body.js.appearance_page_gutenberg-template-parts .a11y-speak-region,body.js.site-editor-php .a11y-speak-region{right:-1px;top:-1px}body.js.appearance_page_gutenberg-template-parts ul#adminmenu a.wp-has-current-submenu:after,body.js.appearance_page_gutenberg-template-parts ul#adminmenu>li.current>a.current:after,body.js.site-editor-php ul#adminmenu a.wp-has-current-submenu:after,body.js.site-editor-php ul#adminmenu>li.current>a.current:after{border-left-color:#fff}body.js.appearance_page_gutenberg-template-parts .media-frame select.attachment-filters:last-of-type,body.js.site-editor-php .media-frame select.attachment-filters:last-of-type{max-width:100%;width:auto}body.js.site-editor-php{background:#1e1e1e}.edit-site{box-sizing:border-box}.edit-site *,.edit-site :after,.edit-site :before{box-sizing:inherit}.edit-site{height:100vh}@media (min-width:600px){.edit-site{bottom:0;left:0;min-height:100vh;position:fixed;right:0;top:0}}.no-js .edit-site{min-height:0;position:static}.edit-site .interface-interface-skeleton{top:0}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,114.7661290323,160.5;--wp-admin-theme-color-darker-20:#006187;--wp-admin-theme-color-darker-20--rgb:0,96.5322580645,135;--wp-admin-border-width-focus:2px}@media (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.0384615385,68.7307692308,230.4615384615;--wp-admin-theme-color-darker-20:#183ad6;--wp-admin-theme-color-darker-20--rgb:23.6923076923,58.1538461538,214.3076923077;--wp-admin-border-width-focus:2px}@media (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.3723404255,81.914893617,108.1276595745;--wp-admin-theme-color-darker-20:#064054;--wp-admin-theme-color-darker-20--rgb:5.7446808511,63.829787234,84.2553191489;--wp-admin-border-width-focus:2px}@media (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.2692307692,51.4461538462,48.2307692308;--wp-admin-theme-color-darker-20:#2b2724;--wp-admin-theme-color-darker-20--rgb:42.5384615385,38.8923076923,36.4615384615;--wp-admin-border-width-focus:2px}@media (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:69.8430232558,53.6598837209,92.8401162791;--wp-admin-theme-color-darker-20:#3a2c4d;--wp-admin-theme-color-darker-20--rgb:57.6860465116,44.3197674419,76.6802325581;--wp-admin-border-width-focus:2px}@media (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.4908256881,56.1788990826,45.0091743119;--wp-admin-theme-color-darker-20:#d02c21;--wp-admin-theme-color-darker-20--rgb:207.8348623853,44.2201834862,33.1651376147;--wp-admin-border-width-focus:2px}@media (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.0873362445,110.192139738,116.4126637555;--wp-admin-theme-color-darker-20:#4c6066;--wp-admin-theme-color-darker-20--rgb:76.1746724891,96.384279476,101.8253275109;--wp-admin-border-width-focus:2px}@media (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:216.8782608696,116.1847826087,37.6217391304;--wp-admin-theme-color-darker-20:#c36922;--wp-admin-theme-color-darker-20--rgb:195.147826087,104.5434782609,33.852173913;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-sunrise{--wp-admin-border-width-focus:1.5px}}
\ No newline at end of file
+@charset "UTF-8";.admin-ui-page{background-color:#fff;color:#2f2f2f;container:admin-ui-page/inline-size;display:flex;flex-flow:column;height:100%;position:relative;z-index:1}@media not (prefers-reduced-motion){.admin-ui-page{transition:width .2s ease-out}}.admin-ui-page__header{background:#fff;border-bottom:1px solid #f0f0f0;padding:16px 48px;position:sticky;top:0}@container (max-width: 430px){.admin-ui-page__header{padding:16px 24px}}.admin-ui-page__header-subtitle{color:#757575;font-family:-apple-system,"system-ui",Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:400;line-height:20px;margin:0;padding-block-end:8px}.admin-ui-page__content{display:flex;flex-direction:column;flex-grow:1;overflow:auto}.admin-ui-page__content.has-padding{padding:16px 20px}@container (max-width: 430px){.admin-ui-page__content.has-padding{padding:16px 24px}}.show-icon-labels .admin-ui-page__header-actions .components-button.has-icon{padding:0 8px;width:auto}.show-icon-labels .admin-ui-page__header-actions .components-button.has-icon svg{display:none}.show-icon-labels .admin-ui-page__header-actions .components-button.has-icon:after{content:attr(aria-label);font-size:12px}.dataviews-picker-wrapper,.dataviews-wrapper{box-sizing:border-box;container:dataviews-wrapper/inline-size;display:flex;flex-direction:column;font-size:13px;height:100%;line-height:1.4;overflow:auto;scroll-padding-bottom:64px}.dataviews-filters__container,.dataviews__view-actions{box-sizing:border-box;flex-shrink:0;padding:16px 48px;position:sticky;right:0}@media not (prefers-reduced-motion){.dataviews-filters__container,.dataviews__view-actions{transition:padding .1s ease-out}}.dataviews-loading,.dataviews-no-results{align-items:center;display:flex;flex-grow:1;justify-content:center;padding:0 48px}@media not (prefers-reduced-motion){.dataviews-loading,.dataviews-no-results{transition:padding .1s ease-out}}.dataviews-loading-more{text-align:center}@container (max-width: 430px){.dataviews-filters__container,.dataviews__view-actions{padding:12px 24px}.dataviews-loading,.dataviews-no-results{padding-left:24px;padding-right:24px}}.dataviews-title-field{font-size:13px;font-weight:500;width:100%}.dataviews-title-field,.dataviews-title-field a{color:#2f2f2f;text-overflow:ellipsis;white-space:nowrap}.dataviews-title-field a{display:block;flex-grow:0;overflow:hidden;text-decoration:none}.dataviews-title-field a:hover{color:var(--wp-admin-theme-color)}.dataviews-title-field a:focus{border-radius:2px;box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color,#007cba);color:var(--wp-admin-theme-color--rgb)}.dataviews-title-field button.components-button.is-link{color:#1e1e1e;display:block;font-weight:inherit;overflow:hidden;text-decoration:none;text-overflow:ellipsis;white-space:nowrap;width:100%}.dataviews-title-field button.components-button.is-link:hover{color:var(--wp-admin-theme-color)}.dataviews-title-field--clickable{color:#2f2f2f;cursor:pointer}.dataviews-title-field--clickable:hover{color:var(--wp-admin-theme-color)}.dataviews-title-field--clickable:focus{border-radius:2px;box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color,#007cba);color:var(--wp-admin-theme-color--rgb)}.components-card__body:has(>.dataviews-picker-wrapper),.components-card__body:has(>.dataviews-wrapper){overflow:hidden;padding:8px 0 0}.components-card__body:has(>.dataviews-picker-wrapper) .dataviews-filters__container,.components-card__body:has(>.dataviews-picker-wrapper) .dataviews-footer,.components-card__body:has(>.dataviews-picker-wrapper) .dataviews-loading,.components-card__body:has(>.dataviews-picker-wrapper) .dataviews-no-results,.components-card__body:has(>.dataviews-picker-wrapper) .dataviews-view-grid,.components-card__body:has(>.dataviews-picker-wrapper) .dataviews__view-actions,.components-card__body:has(>.dataviews-wrapper) .dataviews-filters__container,.components-card__body:has(>.dataviews-wrapper) .dataviews-footer,.components-card__body:has(>.dataviews-wrapper) .dataviews-loading,.components-card__body:has(>.dataviews-wrapper) .dataviews-no-results,.components-card__body:has(>.dataviews-wrapper) .dataviews-view-grid,.components-card__body:has(>.dataviews-wrapper) .dataviews__view-actions{padding-inline:24px}.components-card__body:has(>.dataviews-picker-wrapper) .dataviews-view-table tr td:first-child,.components-card__body:has(>.dataviews-picker-wrapper) .dataviews-view-table tr th:first-child,.components-card__body:has(>.dataviews-wrapper) .dataviews-view-table tr td:first-child,.components-card__body:has(>.dataviews-wrapper) .dataviews-view-table tr th:first-child{padding-inline-start:24px}.components-card__body:has(>.dataviews-picker-wrapper) .dataviews-view-table tr td:last-child,.components-card__body:has(>.dataviews-picker-wrapper) .dataviews-view-table tr th:last-child,.components-card__body:has(>.dataviews-wrapper) .dataviews-view-table tr td:last-child,.components-card__body:has(>.dataviews-wrapper) .dataviews-view-table tr th:last-child{padding-inline-end:24px}.dataviews-bulk-actions-footer__item-count{color:#1e1e1e;font-size:11px;font-weight:500;text-transform:uppercase}.dataviews-bulk-actions-footer__container{margin-left:auto;min-height:32px}.dataviews-filters__button{position:relative}.dataviews-filters__container{padding-top:0}.dataviews-filters__reset-button.dataviews-filters__reset-button[aria-disabled=true],.dataviews-filters__reset-button.dataviews-filters__reset-button[aria-disabled=true]:hover{opacity:0}.dataviews-filters__reset-button.dataviews-filters__reset-button[aria-disabled=true]:focus{opacity:1}.dataviews-filters__summary-popover{font-size:13px;line-height:1.4}.dataviews-filters__summary-popover .components-popover__content{border-radius:4px;max-width:250px;min-width:230px;width:100%}.dataviews-filters__summary-popover.components-dropdown__content .components-popover__content{padding:0}.dataviews-filters__summary-operators-container{padding:8px 16px}.dataviews-filters__summary-operators-container:has(+.dataviews-filters__search-widget-listbox),.dataviews-filters__summary-operators-container:has(+.dataviews-filters__search-widget-no-elements),.dataviews-filters__summary-operators-container:has(+.dataviews-filters__user-input-widget){border-bottom:1px solid #e0e0e0}.dataviews-filters__summary-operators-container:empty{display:none}.dataviews-filters__summary-operators-container .dataviews-filters__summary-operators-filter-name{color:#757575;flex-shrink:0;max-width:calc(100% - 55px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dataviews-filters__summary-operators-container .dataviews-filters__summary-operators-filter-select{overflow:hidden;white-space:nowrap;width:100%}.dataviews-filters__summary-chip-container{position:relative;white-space:pre-wrap}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip{align-items:center;background:#f0f0f0;border:1px solid #0000;border-radius:16px;box-sizing:border-box;color:#2f2f2f;cursor:pointer;display:flex;min-height:32px;padding:4px 12px;position:relative}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.is-not-clickable{cursor:default}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.has-reset{padding-inline-end:28px}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip:focus-visible,.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip:hover:not(.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.is-not-clickable),.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip[aria-expanded=true]{background:#e0e0e0;color:#1e1e1e}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.has-values{background:rgba(var(--wp-admin-theme-color--rgb),.04);color:var(--wp-admin-theme-color)}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.has-values:hover,.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.has-values[aria-expanded=true]{background:rgba(var(--wp-admin-theme-color--rgb),.12)}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip:focus-visible{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:none}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip .dataviews-filters-__summary-filter-text-name{font-weight:500}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove{align-items:center;background:#0000;border:0;border-radius:50%;cursor:pointer;display:flex;height:24px;justify-content:center;left:4px;padding:0;position:absolute;top:50%;transform:translateY(-50%);width:24px}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove svg{fill:#757575}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove:focus,.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove:hover{background:#e0e0e0}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove:focus svg,.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove:hover svg{fill:#1e1e1e}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove.has-values svg{fill:var(--wp-admin-theme-color)}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove.has-values:hover{background:rgba(var(--wp-admin-theme-color--rgb),.08)}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove:focus-visible{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:none}.dataviews-filters__search-widget-filter-combobox-list{border-top:1px solid #e0e0e0;max-height:184px;overflow:auto;padding:4px}.dataviews-filters__search-widget-filter-combobox-list .dataviews-filters__search-widget-filter-combobox-item-value [data-user-value]{font-weight:600}.dataviews-filters__search-widget-listbox{overflow:auto;padding:4px}.dataviews-filters__search-widget-listitem{align-items:center;border-radius:2px;box-sizing:border-box;cursor:default;display:flex;font-family:-apple-system,"system-ui",Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:400;gap:8px;line-height:20px;min-height:32px;padding:4px 12px}.dataviews-filters__search-widget-listitem:last-child{margin-block-end:0}.dataviews-filters__search-widget-listitem:focus,.dataviews-filters__search-widget-listitem:hover,.dataviews-filters__search-widget-listitem[data-active-item]{background-color:var(--wp-admin-theme-color);color:#fff}.dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-description,.dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-description,.dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-description{color:#fff}.dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-single-selection,.dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-single-selection,.dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-single-selection{background:#fff;border-color:var(--wp-admin-theme-color-darker-20,#183ad6)}.dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-single-selection.is-selected,.dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-single-selection.is-selected,.dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-single-selection.is-selected{background:var(--wp-admin-theme-color-darker-20,#183ad6);border-color:var(--wp-admin-theme-color-darker-20,#183ad6)}.dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-multi-selection,.dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-multi-selection,.dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-multi-selection{border-color:var(--wp-admin-theme-color-darker-20,#183ad6)}.dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-multi-selection.is-selected,.dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-multi-selection.is-selected,.dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-multi-selection.is-selected{background:var(--wp-admin-theme-color-darker-20,#183ad6);border-color:var(--wp-admin-theme-color-darker-20,#183ad6)}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-description{color:#757575;display:block;font-size:12px;line-height:16px;overflow:hidden;text-overflow:ellipsis}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection{border:1px solid #1e1e1e;border-radius:50%;height:24px;margin-left:12px;max-width:24px;min-width:24px;position:relative;transition:none;width:24px}@media not (prefers-reduced-motion){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection{transition:box-shadow .1s linear}}@media (min-width:600px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection{height:16px;max-width:16px;min-width:16px;width:16px}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection:checked:before{background-color:#fff;border:4px solid #fff;box-sizing:inherit;height:12px;margin:0;position:absolute;right:50%;top:50%;transform:translate(50%,-50%);width:12px}@media (min-width:600px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection:checked:before{height:8px;width:8px}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color);outline:2px solid #0000}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection:checked{background:var(--wp-admin-theme-color);border:none}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection{margin:0;padding:0}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection.is-selected{background:var(--wp-admin-theme-color,#3858e9);border-color:var(--wp-admin-theme-color,#3858e9)}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection.is-selected:before{background-color:#fff;border:4px solid #fff;border-radius:50%;box-sizing:inherit;content:"";height:12px;margin:0;position:absolute;right:50%;top:50%;transform:translate(50%,-50%);width:12px}@media (min-width:600px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection.is-selected:before{height:8px;width:8px}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection{--checkbox-size:24px;border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 #0000;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:normal;margin-left:12px;padding:6px 8px;transition:none}@media not (prefers-reduced-motion){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection{transition:box-shadow .1s linear}}@media (min-width:600px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection{font-size:13px;line-height:normal}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color)}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection::-webkit-input-placeholder{color:#1e1e1e9e}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection::-moz-placeholder{color:#1e1e1e9e}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:-ms-input-placeholder{color:#1e1e1e9e}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color);outline:2px solid #0000}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:checked{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:checked::-ms-check{opacity:0}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:checked:before,.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-checked=mixed]:before{color:#fff;margin:-3px -5px}@media (min-width:782px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:checked:before,.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-checked=mixed]:before{margin:-4px -5px 0 0}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-checked=mixed]{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-checked=mixed]:before{content:"\f460";display:inline-block;float:right;font:normal 30px/1 dashicons;vertical-align:middle;width:16px;speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (min-width:782px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-checked=mixed]:before{float:none;font-size:21px}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:disabled,.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-disabled=true]{background:#f0f0f0;border-color:#ddd;cursor:default;opacity:1}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection{background:#fff;color:#1e1e1e;height:var(--checkbox-size);margin:0;padding:0;position:relative;width:var(--checkbox-size)}@media (min-width:600px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection{--checkbox-size:16px}}@media not (prefers-reduced-motion){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection{transition:border-color .1s ease-in-out}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection.is-selected{background:var(--wp-admin-theme-color,#3858e9);border-color:var(--wp-admin-theme-color,#3858e9)}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection.is-selected svg{--checkmark-size:var(--checkbox-size);fill:#fff;height:var(--checkmark-size);position:absolute;right:50%;top:50%;transform:translate(50%,-50%);width:var(--checkmark-size)}@media (min-width:600px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection.is-selected svg{--checkmark-size:calc(var(--checkbox-size) + 4px)}}.dataviews-filters__search-widget-filter-combobox__wrapper{padding:8px;position:relative}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input{border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 #0000;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;line-height:normal;padding:6px 8px}@media not (prefers-reduced-motion){.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input{transition:box-shadow .1s linear}}@media (min-width:600px){.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input{font-size:13px;line-height:normal}}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid #0000}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-webkit-input-placeholder{color:#1e1e1e9e}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-moz-placeholder{color:#1e1e1e9e}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input:-ms-input-placeholder{color:#1e1e1e9e}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input{display:block;font-size:16px;height:32px;margin-left:0;margin-right:0;padding:0 32px 0 8px;width:100%}@media (min-width:600px){.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input{font-size:13px}}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input:focus{background:#fff;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::placeholder{color:#757575}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-webkit-search-cancel-button,.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-webkit-search-decoration,.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-webkit-search-results-button,.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-webkit-search-results-decoration{-webkit-appearance:none}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__icon{align-items:center;bottom:0;display:flex;inset-inline-start:12px;justify-content:center;position:absolute;top:0;width:24px}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__icon:dir(ltr){transform:scaleX(-1)}.dataviews-filters__container-visibility-toggle{flex-shrink:0;position:relative}.dataviews-filters-toggle__count{background:var(--wp-admin-theme-color,#3858e9);border-radius:8px;box-sizing:border-box;color:#fff;font-size:11px;height:16px;left:0;line-height:16px;min-width:16px;outline:var(--wp-admin-border-width-focus) solid #fff;padding:0 4px;position:absolute;text-align:center;top:0;transform:translate(-50%,-50%)}.dataviews-search{width:fit-content}.dataviews-filters__user-input-widget{padding:16px}.dataviews-filters__user-input-widget .components-input-control__prefix{padding-right:8px}.dataviews-filters__search-widget-no-elements{align-items:center;display:flex;justify-content:center;padding:16px}.dataviews-footer{background-color:#fff;border-top:1px solid #f0f0f0;bottom:0;flex-shrink:0;padding:12px 48px;position:sticky;right:0}@media not (prefers-reduced-motion){.dataviews-footer{transition:padding .1s ease-out}}.dataviews-footer{z-index:2}@container (max-width: 430px){.dataviews-footer{padding:12px 24px}}@container (max-width: 560px){.dataviews-footer{flex-direction:column!important}.dataviews-footer .dataviews-bulk-actions-footer__container{width:100%}.dataviews-footer .dataviews-bulk-actions-footer__item-count{flex-grow:1}.dataviews-footer .dataviews-pagination{justify-content:space-between;width:100%}}.dataviews-pagination__page-select{font-size:11px;font-weight:500;text-transform:uppercase}@media (min-width:600px){.dataviews-pagination__page-select .components-select-control__input{font-size:11px!important;font-weight:500}}.dataviews-action-modal{z-index:1000001}.dataviews-picker-footer__bulk-selection{align-self:flex-start;height:32px}.dataviews-picker-footer__actions{align-self:flex-end}.dataviews-selection-checkbox{--checkbox-input-size:24px}@media (min-width:600px){.dataviews-selection-checkbox{--checkbox-input-size:16px}}.dataviews-selection-checkbox{flex-shrink:0;line-height:0}.dataviews-selection-checkbox .components-checkbox-control__input-container{margin:0}.dataviews-view-config{container-type:inline-size;font-size:13px;line-height:1.4;width:320px}.dataviews-config__popover.is-expanded .dataviews-config__popover-content-wrapper{height:100%;overflow-y:scroll}.dataviews-config__popover.is-expanded .dataviews-config__popover-content-wrapper .dataviews-view-config{width:auto}.dataviews-view-config__sort-direction .components-toggle-group-control-option-base{text-transform:uppercase}.dataviews-settings-section__title.dataviews-settings-section__title{font-size:15px;line-height:24px}.dataviews-settings-section__sidebar{grid-column:span 4}.dataviews-settings-section__content,.dataviews-settings-section__content>*{grid-column:span 8}.dataviews-settings-section__content .is-divided-in-two{display:contents}.dataviews-settings-section__content .is-divided-in-two>*{grid-column:span 4}.dataviews-settings-section:has(.dataviews-settings-section__content:empty){display:none}@container (max-width: 500px){.dataviews-settings-section.dataviews-settings-section{grid-template-columns:repeat(2,1fr)}.dataviews-settings-section.dataviews-settings-section .dataviews-settings-section__content,.dataviews-settings-section.dataviews-settings-section .dataviews-settings-section__sidebar{grid-column:span 2}}.dataviews-field-control__field{height:32px}.dataviews-field-control__actions{position:absolute;top:-9999em}.dataviews-field-control__actions.dataviews-field-control__actions{gap:4px}.dataviews-field-control__field.is-interacting .dataviews-field-control__actions,.dataviews-field-control__field:focus-within .dataviews-field-control__actions,.dataviews-field-control__field:hover .dataviews-field-control__actions{position:unset;top:unset}.dataviews-field-control__icon{display:flex;width:24px}.dataviews-field-control__label-sub-label-container{flex-grow:1}.dataviews-field-control__label{display:block}.dataviews-field-control__sub-label{color:#757575;font-size:11px;font-style:normal;margin-bottom:0;margin-top:8px}.dataviews-view-grid-items{container-type:inline-size;display:grid;gap:32px;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));grid-template-rows:max-content;margin-bottom:auto;padding:0 48px 24px}@container (max-width: 430px){.dataviews-view-grid-items{padding-left:24px;padding-right:24px}}@media not (prefers-reduced-motion){.dataviews-view-grid-items{transition:padding .1s ease-out}}.dataviews-view-grid .dataviews-view-grid__card{height:100%;justify-content:flex-start;position:relative}.dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__title-actions{padding:8px 0 4px}.dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__title-field{align-content:center;min-height:24px;overflow:hidden;text-align:start}.dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__title-field--clickable{width:fit-content}.dataviews-view-grid .dataviews-view-grid__card.is-selected .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-value{color:#1e1e1e}.dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__media:focus:after,.dataviews-view-grid .dataviews-view-grid__card.is-selected .dataviews-view-grid__media:after{background-color:rgba(var(--wp-admin-theme-color--rgb),.08)}.dataviews-view-grid .dataviews-view-grid__card.is-selected .dataviews-view-grid__media:after{box-shadow:inset 0 0 0 1px var(--wp-admin-theme-color)}.dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__media:focus:after{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.dataviews-view-grid .dataviews-view-grid__media{aspect-ratio:1/1;background-color:#fff;border-radius:4px;overflow:hidden;position:relative;width:100%}.dataviews-view-grid .dataviews-view-grid__media img{height:100%;object-fit:cover;width:100%}.dataviews-view-grid .dataviews-view-grid__media:after{border-radius:4px;box-shadow:inset 0 0 0 1px #0000001a;content:"";height:100%;pointer-events:none;position:absolute;right:0;top:0;width:100%}.dataviews-view-grid .dataviews-view-grid__fields{font-size:12px;line-height:16px;position:relative}.dataviews-view-grid .dataviews-view-grid__fields:not(:empty){padding:0 0 12px}.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field-value:not(:empty){line-height:20px;min-height:24px;padding-top:2px}.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field{align-items:center;min-height:24px}.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-name{color:#757575;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:35%}.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:65%}.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field:not(:has(.dataviews-view-grid__field-value:not(:empty))){display:none}.dataviews-view-grid .dataviews-view-grid__badge-fields:not(:empty){padding-bottom:12px}.dataviews-view-grid__field-value:empty,.dataviews-view-grid__field:empty{display:none}.dataviews-view-grid__card .dataviews-selection-checkbox{opacity:0;position:absolute;right:8px;top:-9999em;z-index:1}@media not (prefers-reduced-motion){.dataviews-view-grid__card .dataviews-selection-checkbox{transition:opacity .1s linear}}@media (hover:none){.dataviews-view-grid__card .dataviews-selection-checkbox{opacity:1;top:8px}}.dataviews-view-grid__card.is-selected .dataviews-selection-checkbox,.dataviews-view-grid__card:focus-within .dataviews-selection-checkbox,.dataviews-view-grid__card:hover .dataviews-selection-checkbox{opacity:1;top:8px}.dataviews-view-grid__card .dataviews-view-grid__media-actions{left:4px;opacity:0;position:absolute;top:4px}.dataviews-view-grid__card .dataviews-view-grid__media-actions .dataviews-all-actions-button{background-color:#fff}@media not (prefers-reduced-motion){.dataviews-view-grid__card .dataviews-view-grid__media-actions{transition:opacity .1s linear}}@media (hover:none){.dataviews-view-grid__card .dataviews-view-grid__media-actions{opacity:1;top:4px}}.dataviews-view-grid__card .dataviews-view-grid__media-actions:has(.dataviews-all-actions-button[aria-expanded=true]),.dataviews-view-grid__card:focus-within .dataviews-view-grid__media-actions,.dataviews-view-grid__card:hover .dataviews-view-grid__media-actions{opacity:1}.dataviews-view-grid__media--clickable{cursor:pointer}.dataviews-view-grid__group-header{color:#1e1e1e;container-type:inline-size;font-size:15px;font-weight:500;margin:0 0 8px;padding:0 48px}@container (max-width: 430px){.dataviews-view-grid__group-header{padding-left:24px;padding-right:24px}}div.dataviews-view-list{list-style-type:none}.dataviews-view-list{margin:0 0 auto}.dataviews-view-list div[role=article],.dataviews-view-list div[role=row]{border-top:1px solid #f0f0f0;margin:0}.dataviews-view-list div[role=article] .dataviews-view-list__item-wrapper,.dataviews-view-list div[role=row] .dataviews-view-list__item-wrapper{box-sizing:border-box;padding:16px 24px;position:relative}.dataviews-view-list div[role=article] .dataviews-view-list__item-actions,.dataviews-view-list div[role=row] .dataviews-view-list__item-actions{display:flex;flex:0 0 auto;gap:4px;white-space:nowrap;width:max-content}.dataviews-view-list div[role=article] .dataviews-view-list__item-actions .components-button,.dataviews-view-list div[role=row] .dataviews-view-list__item-actions .components-button{position:relative;z-index:1}.dataviews-view-list div[role=article] .dataviews-view-list__item-actions>div,.dataviews-view-list div[role=row] .dataviews-view-list__item-actions>div{height:24px}.dataviews-view-list div[role=article] .dataviews-view-list__item-actions>:not(:last-child),.dataviews-view-list div[role=row] .dataviews-view-list__item-actions>:not(:last-child){flex:0;overflow:hidden;width:0}.dataviews-view-list div[role=article]:where(.is-selected,.is-hovered,:focus-within) .dataviews-view-list__item-actions>:not(:last-child),.dataviews-view-list div[role=row]:where(.is-selected,.is-hovered,:focus-within) .dataviews-view-list__item-actions>:not(:last-child){flex-basis:min-content;overflow:unset;width:auto}@media (hover:none){.dataviews-view-list div[role=article] .dataviews-view-list__item-actions>:not(:last-child),.dataviews-view-list div[role=row] .dataviews-view-list__item-actions>:not(:last-child){flex-basis:min-content;overflow:unset;width:auto}}.dataviews-view-list div[role=article].is-selected.is-selected,.dataviews-view-list div[role=article].is-selected.is-selected+div[role=article],.dataviews-view-list div[role=article].is-selected.is-selected+div[role=row],.dataviews-view-list div[role=row].is-selected.is-selected,.dataviews-view-list div[role=row].is-selected.is-selected+div[role=article],.dataviews-view-list div[role=row].is-selected.is-selected+div[role=row]{border-top:1px solid rgba(var(--wp-admin-theme-color--rgb),.12)}.dataviews-view-list div[role=article]:not(.is-selected) .dataviews-view-list__title-field,.dataviews-view-list div[role=row]:not(.is-selected) .dataviews-view-list__title-field{color:#1e1e1e}.dataviews-view-list div[role=article]:not(.is-selected).is-hovered,.dataviews-view-list div[role=article]:not(.is-selected):focus-within,.dataviews-view-list div[role=article]:not(.is-selected):hover,.dataviews-view-list div[role=row]:not(.is-selected).is-hovered,.dataviews-view-list div[role=row]:not(.is-selected):focus-within,.dataviews-view-list div[role=row]:not(.is-selected):hover{background-color:#f8f8f8;color:var(--wp-admin-theme-color)}.dataviews-view-list div[role=article]:not(.is-selected).is-hovered .dataviews-view-list__fields,.dataviews-view-list div[role=article]:not(.is-selected).is-hovered .dataviews-view-list__title-field,.dataviews-view-list div[role=article]:not(.is-selected):focus-within .dataviews-view-list__fields,.dataviews-view-list div[role=article]:not(.is-selected):focus-within .dataviews-view-list__title-field,.dataviews-view-list div[role=article]:not(.is-selected):hover .dataviews-view-list__fields,.dataviews-view-list div[role=article]:not(.is-selected):hover .dataviews-view-list__title-field,.dataviews-view-list div[role=row]:not(.is-selected).is-hovered .dataviews-view-list__fields,.dataviews-view-list div[role=row]:not(.is-selected).is-hovered .dataviews-view-list__title-field,.dataviews-view-list div[role=row]:not(.is-selected):focus-within .dataviews-view-list__fields,.dataviews-view-list div[role=row]:not(.is-selected):focus-within .dataviews-view-list__title-field,.dataviews-view-list div[role=row]:not(.is-selected):hover .dataviews-view-list__fields,.dataviews-view-list div[role=row]:not(.is-selected):hover .dataviews-view-list__title-field{color:var(--wp-admin-theme-color)}.dataviews-view-list div[role=article].is-selected .dataviews-view-list__item-wrapper,.dataviews-view-list div[role=article].is-selected:focus-within .dataviews-view-list__item-wrapper,.dataviews-view-list div[role=row].is-selected .dataviews-view-list__item-wrapper,.dataviews-view-list div[role=row].is-selected:focus-within .dataviews-view-list__item-wrapper{background-color:rgba(var(--wp-admin-theme-color--rgb),.04);color:#1e1e1e}.dataviews-view-list div[role=article].is-selected .dataviews-view-list__item-wrapper .dataviews-view-list__fields,.dataviews-view-list div[role=article].is-selected .dataviews-view-list__item-wrapper .dataviews-view-list__title-field,.dataviews-view-list div[role=article].is-selected:focus-within .dataviews-view-list__item-wrapper .dataviews-view-list__fields,.dataviews-view-list div[role=article].is-selected:focus-within .dataviews-view-list__item-wrapper .dataviews-view-list__title-field,.dataviews-view-list div[role=row].is-selected .dataviews-view-list__item-wrapper .dataviews-view-list__fields,.dataviews-view-list div[role=row].is-selected .dataviews-view-list__item-wrapper .dataviews-view-list__title-field,.dataviews-view-list div[role=row].is-selected:focus-within .dataviews-view-list__item-wrapper .dataviews-view-list__fields,.dataviews-view-list div[role=row].is-selected:focus-within .dataviews-view-list__item-wrapper .dataviews-view-list__title-field{color:var(--wp-admin-theme-color)}.dataviews-view-list .dataviews-view-list__item{appearance:none;background:none;border:none;cursor:pointer;inset:0;padding:0;position:absolute;scroll-margin:8px 0;z-index:1}.dataviews-view-list .dataviews-view-list__item:focus-visible{outline:none}.dataviews-view-list .dataviews-view-list__item:focus-visible:before{border-radius:2px;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);content:"";inset:var(--wp-admin-border-width-focus);outline:2px solid #0000;position:absolute}.dataviews-view-list .dataviews-view-list__title-field{flex:1;line-height:24px;min-height:24px;overflow:hidden}.dataviews-view-list .dataviews-view-list__title-field:has(a,button){z-index:1}.dataviews-view-list .dataviews-view-list__media-wrapper{background-color:#fff;border-radius:4px;flex-shrink:0;height:52px;overflow:hidden;position:relative;width:52px}.dataviews-view-list .dataviews-view-list__media-wrapper img{height:100%;object-fit:cover;width:100%}.dataviews-view-list .dataviews-view-list__media-wrapper:after{border-radius:4px;box-shadow:inset 0 0 0 1px #0000001a;content:"";height:100%;position:absolute;right:0;top:0;width:100%}.dataviews-view-list .dataviews-view-list__field-wrapper{flex-grow:1;min-height:52px}.dataviews-view-list .dataviews-view-list__fields{color:#757575;display:flex;flex-wrap:wrap;font-size:12px;gap:12px;row-gap:4px}.dataviews-view-list .dataviews-view-list__fields .dataviews-view-list__field:has(.dataviews-view-list__field-value:empty),.dataviews-view-list .dataviews-view-list__fields:empty{display:none}.dataviews-view-list .dataviews-view-list__fields .dataviews-view-list__field-value{align-items:center;display:flex;line-height:20px;min-height:24px}.dataviews-view-list+.dataviews-pagination{justify-content:space-between}.dataviews-view-list__group-header{color:#1e1e1e;font-size:15px;font-weight:500;margin:0 0 8px;padding:0 24px}.dataviews-view-table{border-collapse:collapse;border-color:inherit;color:#757575;margin-bottom:auto;position:relative;text-indent:0;width:100%}.dataviews-view-table th{color:#1e1e1e;font-size:13px;font-weight:400;text-align:right}.dataviews-view-table td,.dataviews-view-table th{padding:12px}.dataviews-view-table td.dataviews-view-table__actions-column,.dataviews-view-table th.dataviews-view-table__actions-column{text-align:left}.dataviews-view-table td.dataviews-view-table__actions-column--sticky,.dataviews-view-table th.dataviews-view-table__actions-column--sticky{background-color:#fff;left:0;position:sticky}.dataviews-view-table td.dataviews-view-table__actions-column--stuck:after,.dataviews-view-table th.dataviews-view-table__actions-column--stuck:after{background-color:#f0f0f0;bottom:0;content:"";display:block;position:absolute;right:0;top:0;width:1px}.dataviews-view-table td.dataviews-view-table__checkbox-column,.dataviews-view-table th.dataviews-view-table__checkbox-column{padding-left:0}.dataviews-view-table td.dataviews-view-table__checkbox-column .dataviews-view-table__cell-content-wrapper,.dataviews-view-table th.dataviews-view-table__checkbox-column .dataviews-view-table__cell-content-wrapper{max-width:auto;min-width:auto}.dataviews-view-table tr{border-top:1px solid #f0f0f0}.dataviews-view-table tr .dataviews-view-table-header-button{gap:4px}.dataviews-view-table tr td:first-child,.dataviews-view-table tr th:first-child{padding-right:48px}.dataviews-view-table tr td:first-child .dataviews-view-table-header-button,.dataviews-view-table tr th:first-child .dataviews-view-table-header-button{margin-right:-8px}.dataviews-view-table tr td:last-child,.dataviews-view-table tr th:last-child{padding-left:48px}.dataviews-view-table tr:last-child{border-bottom:0}.dataviews-view-table tr.is-hovered,.dataviews-view-table tr.is-hovered .dataviews-view-table__actions-column--sticky{background-color:#f8f8f8}.dataviews-view-table tr .components-checkbox-control__input.components-checkbox-control__input{opacity:0}.dataviews-view-table tr .components-checkbox-control__input.components-checkbox-control__input:checked,.dataviews-view-table tr .components-checkbox-control__input.components-checkbox-control__input:focus,.dataviews-view-table tr .components-checkbox-control__input.components-checkbox-control__input:indeterminate{opacity:1}.dataviews-view-table tr .dataviews-item-actions .components-button:not(.dataviews-all-actions-button){opacity:0}.dataviews-view-table tr.is-hovered .components-checkbox-control__input,.dataviews-view-table tr.is-hovered .dataviews-item-actions .components-button:not(.dataviews-all-actions-button),.dataviews-view-table tr:focus-within .components-checkbox-control__input,.dataviews-view-table tr:focus-within .dataviews-item-actions .components-button:not(.dataviews-all-actions-button),.dataviews-view-table tr:hover .components-checkbox-control__input,.dataviews-view-table tr:hover .dataviews-item-actions .components-button:not(.dataviews-all-actions-button){opacity:1}@media (hover:none){.dataviews-view-table tr .components-checkbox-control__input.components-checkbox-control__input,.dataviews-view-table tr .dataviews-item-actions .components-button:not(.dataviews-all-actions-button){opacity:1}}.dataviews-view-table tr.is-selected{background-color:rgba(var(--wp-admin-theme-color--rgb),.04);color:#757575}.dataviews-view-table tr.is-selected,.dataviews-view-table tr.is-selected+tr{border-top:1px solid rgba(var(--wp-admin-theme-color--rgb),.12)}.dataviews-view-table tr.is-selected:hover{background-color:rgba(var(--wp-admin-theme-color--rgb),.08)}.dataviews-view-table tr.is-selected .dataviews-view-table__actions-column--sticky{background-color:color-mix(in srgb,rgb(var(--wp-admin-theme-color--rgb)) 4%,#fff)}.dataviews-view-table tr.is-selected:hover .dataviews-view-table__actions-column--sticky{background-color:color-mix(in srgb,rgb(var(--wp-admin-theme-color--rgb)) 8%,#fff)}.dataviews-view-table thead{inset-block-start:0;position:sticky;z-index:1}.dataviews-view-table thead tr{border:0}.dataviews-view-table thead tr .components-checkbox-control__input.components-checkbox-control__input{opacity:1}.dataviews-view-table thead th{background-color:#fff;font-size:11px;font-weight:500;padding-bottom:8px;padding-right:12px;padding-top:8px;text-transform:uppercase}.dataviews-view-table thead th:has(.dataviews-view-table-header-button):not(:first-child){padding-right:4px}.dataviews-view-table tbody td{vertical-align:top}.dataviews-view-table tbody .dataviews-view-table__cell-content-wrapper{align-items:center;display:flex;min-height:32px;white-space:nowrap}.dataviews-view-table tbody .dataviews-view-table__cell-content-wrapper.dataviews-view-table__cell-align-end{justify-content:flex-end}.dataviews-view-table tbody .dataviews-view-table__cell-content-wrapper.dataviews-view-table__cell-align-center{justify-content:center}.dataviews-view-table tbody .components-v-stack>.dataviews-view-table__cell-content-wrapper:not(:first-child){min-height:0}.dataviews-view-table .dataviews-view-table-header-button{font-size:11px;font-weight:500;padding:4px 8px;text-transform:uppercase}.dataviews-view-table .dataviews-view-table-header-button:not(:hover){color:#1e1e1e}.dataviews-view-table .dataviews-view-table-header-button span{speak:none}.dataviews-view-table .dataviews-view-table-header-button span:empty{display:none}.dataviews-view-table .dataviews-view-table-header{padding-right:4px}.dataviews-view-table .dataviews-view-table__actions-column{white-space:nowrap;width:auto}.dataviews-view-table:has(tr.is-selected) .components-checkbox-control__input{opacity:1}.dataviews-view-table.has-compact-density thead th:has(.dataviews-view-table-header-button):not(:first-child){padding-right:0}.dataviews-view-table.has-compact-density td,.dataviews-view-table.has-compact-density th{padding:4px 8px}.dataviews-view-table.has-comfortable-density td,.dataviews-view-table.has-comfortable-density th{padding:16px 12px}.dataviews-view-table.has-comfortable-density td.dataviews-view-table__checkbox-column,.dataviews-view-table.has-comfortable-density th.dataviews-view-table__checkbox-column,.dataviews-view-table.has-compact-density td.dataviews-view-table__checkbox-column,.dataviews-view-table.has-compact-density th.dataviews-view-table__checkbox-column{padding-left:0}@container (max-width: 430px){.dataviews-view-table tr td:first-child,.dataviews-view-table tr th:first-child{padding-right:24px}.dataviews-view-table tr td:last-child,.dataviews-view-table tr th:last-child{padding-left:24px}}.dataviews-view-table-selection-checkbox{--checkbox-input-size:24px}@media (min-width:600px){.dataviews-view-table-selection-checkbox{--checkbox-input-size:16px}}.dataviews-column-primary__media{background-color:#fff;border-radius:4px;flex-shrink:0;max-width:60px;overflow:hidden;position:relative}.dataviews-column-primary__media img{height:100%;object-fit:cover;width:100%}.dataviews-column-primary__media:after{border-radius:4px;box-shadow:inset 0 0 0 1px #0000001a;content:"";height:100%;position:absolute;right:0;top:0;width:100%}.dataviews-view-table__cell-content-wrapper:not(.dataviews-column-primary__media),.dataviews-view-table__primary-column-content:not(.dataviews-column-primary__media){max-width:80ch;min-width:15ch}.dataviews-view-table__group-header-row .dataviews-view-table__group-header-cell{color:#1e1e1e;font-weight:500;padding:12px 48px}.dataviews-view-table col[class^=dataviews-view-table__col-]:not(.dataviews-view-table__col-primary){width:1%}.dataviews-view-picker-grid .dataviews-view-picker-grid__card{height:100%;justify-content:flex-start;position:relative}.dataviews-view-picker-grid .dataviews-view-picker-grid__card .dataviews-view-picker-grid__title-actions{padding:8px 0 4px}.dataviews-view-picker-grid .dataviews-view-picker-grid__card .dataviews-view-picker-grid__title-field{align-content:center;min-height:24px;overflow:hidden;text-align:start}.dataviews-view-picker-grid .dataviews-view-picker-grid__card .dataviews-view-picker-grid__title-field--clickable{width:fit-content}.dataviews-view-picker-grid .dataviews-view-picker-grid__card.is-selected .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field .dataviews-view-picker-grid__field-value{color:#1e1e1e}.dataviews-view-picker-grid .dataviews-view-picker-grid__card .dataviews-view-picker-grid__media:focus:after,.dataviews-view-picker-grid .dataviews-view-picker-grid__card.is-selected .dataviews-view-picker-grid__media:after{background-color:rgba(var(--wp-admin-theme-color--rgb),.08)}.dataviews-view-picker-grid .dataviews-view-picker-grid__card.is-selected .dataviews-view-picker-grid__media:after{box-shadow:inset 0 0 0 1px var(--wp-admin-theme-color)}.dataviews-view-picker-grid .dataviews-view-picker-grid__card .dataviews-view-picker-grid__media:focus:after{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.dataviews-view-picker-grid:focus-visible[aria-activedescendant]{outline:none}.dataviews-view-picker-grid:focus-visible [data-active-item=true]{outline:2px solid var(--wp-admin-theme-color)}.dataviews-view-picker-grid .dataviews-selection-checkbox{top:8px!important}.dataviews-view-picker-grid .dataviews-selection-checkbox input{pointer-events:none}.dataviews-view-picker-grid .dataviews-view-picker-grid__media{aspect-ratio:1/1;background-color:#fff;border-radius:4px;position:relative;width:100%}.dataviews-view-picker-grid .dataviews-view-picker-grid__media img{height:100%;object-fit:cover;width:100%}.dataviews-view-picker-grid .dataviews-view-picker-grid__media:after{border-radius:4px;box-shadow:inset 0 0 0 1px #0000001a;content:"";height:100%;pointer-events:none;position:absolute;right:0;top:0;width:100%}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields{font-size:12px;line-height:16px;position:relative}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields:not(:empty){padding:0 0 12px}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field-value:not(:empty){line-height:20px;min-height:24px;padding-top:2px}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field{align-items:center;min-height:24px}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field .dataviews-view-picker-grid__field-name{color:#757575;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:35%}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field .dataviews-view-picker-grid__field-value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:65%}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field:not(:has(.dataviews-view-picker-grid__field-value:not(:empty))){display:none}.dataviews-view-picker-grid .dataviews-view-picker-grid__badge-fields:not(:empty){padding-bottom:12px}.dataviews-view-picker-grid__field-value:empty,.dataviews-view-picker-grid__field:empty{display:none}.dataviews-view-picker-grid__card .dataviews-selection-checkbox{position:absolute;right:8px;top:-9999em;z-index:1}@media (hover:none){.dataviews-view-picker-grid__card .dataviews-selection-checkbox{top:8px}}.dataviews-view-picker-grid__card.is-selected .dataviews-selection-checkbox,.dataviews-view-picker-grid__card:focus-within .dataviews-selection-checkbox,.dataviews-view-picker-grid__card:hover .dataviews-selection-checkbox{top:8px}.dataviews-view-picker-grid__media--clickable{cursor:pointer}.dataviews-view-picker-grid-group__header{color:#1e1e1e;font-size:15px;font-weight:500;margin:0 0 8px;padding:0 48px}.dataviews-controls__datetime{border:none;padding:0}.dataviews-controls__relative-date-number,.dataviews-controls__relative-date-unit{flex:1 1 50%}.dataviews-controls__date input[type=date]::-webkit-calendar-picker-indicator,.dataviews-controls__date input[type=date]::-webkit-inner-spin-button{-webkit-appearance:none;display:none}.dataviews-controls__date-preset{border:1px solid #ddd}.dataviews-controls__date-preset:active{background-color:#000}.dataforms-layouts-panel__field{align-items:flex-start!important;justify-content:flex-start!important;min-height:32px;width:100%}.dataforms-layouts-panel__field-label{align-items:center;display:flex;flex-shrink:0;hyphens:auto;line-height:20px;min-height:32px;width:38%}.dataforms-layouts-panel__field-label--label-position-side{align-self:center}.dataforms-layouts-panel__field-control{align-items:center;display:flex;flex-grow:1;min-height:32px}.dataforms-layouts-panel__field-control .components-button{max-width:100%;min-height:32px;text-align:right;text-wrap:balance;text-wrap:pretty;white-space:normal}.dataforms-layouts-panel__field-control.components-button.is-link[aria-disabled=true]{text-decoration:none}.dataforms-layouts-panel__field-control .components-dropdown{max-width:100%}.dataforms-layouts-panel__field-dropdown .components-popover__content{min-width:320px;padding:16px}.dataforms-layouts-panel__dropdown-header{margin-bottom:16px}.dataforms-layouts-panel__modal-footer{margin-top:16px}.components-popover.components-dropdown__content.dataforms-layouts-panel__field-dropdown{z-index:159990}.dataforms-layouts-regular__field{align-items:flex-start!important;justify-content:flex-start!important;min-height:32px;width:100%}.dataforms-layouts-regular__field-label{align-items:center;display:flex;flex-shrink:0;hyphens:auto;line-height:20px;min-height:32px;width:38%}.dataforms-layouts-regular__field-label--label-position-side{align-self:center}.dataforms-layouts-regular__field-control{align-items:center;display:flex;flex-grow:1;min-height:32px}.dataforms-layouts-card__field-header-label{font-family:-apple-system,"system-ui",Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:15px;font-weight:500;line-height:20px}.dataforms-layouts-card__field{width:100%}.dataforms-layouts-card__field-description{color:#757575;display:block;font-size:13px;margin-bottom:16px}.dataforms-layouts-card__field-summary{display:flex;flex-direction:row;gap:16px}.dataforms-layouts-row__field-control{width:100%}.dataforms-layouts__wrapper{font-family:-apple-system,"system-ui",Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:400;line-height:20px}:root{--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:var(--wp-block-synced-color);--wp-editor-canvas-background:#ddd;--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,160.5;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.fields-create-template-part-modal{z-index:1000001}.fields-create-template-part-modal__area-fieldset{border:0;margin:0;padding:0}.fields-create-template-part-modal__area-radio-group{border:1px solid #949494;border-radius:2px}.fields-create-template-part-modal__area-radio-wrapper{align-items:center;display:grid;grid-template-columns:min-content 1fr min-content;padding:12px;position:relative;grid-gap:4px 8px;color:#1e1e1e}.fields-create-template-part-modal__area-radio-wrapper+.fields-create-template-part-modal__area-radio-wrapper{border-top:1px solid #949494}.fields-create-template-part-modal__area-radio-wrapper input[type=radio]{opacity:0;position:absolute}.fields-create-template-part-modal__area-radio-wrapper:has(input[type=radio]:checked){z-index:1}.fields-create-template-part-modal__area-radio-wrapper:has(input[type=radio]:not(:checked)):hover{color:var(--wp-admin-theme-color)}.fields-create-template-part-modal__area-radio-wrapper>:not(.fields-create-template-part-modal__area-radio-label){pointer-events:none}.fields-create-template-part-modal__area-radio-label:before{content:"";inset:0;position:absolute}input[type=radio]:not(:checked)~.fields-create-template-part-modal__area-radio-label:before{cursor:pointer}input[type=radio]:focus-visible~.fields-create-template-part-modal__area-radio-label:before{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:4px solid #0000}.fields-create-template-part-modal__area-radio-checkmark,.fields-create-template-part-modal__area-radio-icon{fill:currentColor}input[type=radio]:not(:checked)~.fields-create-template-part-modal__area-radio-checkmark{opacity:0}.fields-create-template-part-modal__area-radio-description{color:#757575;font-size:12px;grid-column:2/3;line-height:normal;margin:0;text-wrap:pretty}input[type=radio]:not(:checked):hover~.fields-create-template-part-modal__area-radio-description{color:inherit}.fields-controls__slug{border:0;margin:0;padding:0}.fields-controls__slug .fields-controls__slug-external-icon{margin-right:5ch}.fields-controls__slug .fields-controls__slug-input input.components-input-control__input{padding-inline-start:0!important}.fields-controls__slug .fields-controls__slug-help-link{word-break:break-word}.fields-controls__slug .fields-controls__slug-help{display:flex;flex-direction:column}.fields-controls__slug .fields-controls__slug-help .fields-controls__slug-help-slug{font-weight:600}.fields-controls__featured-image-placeholder{background:#fff linear-gradient(45deg,#0000 48%,#ddd 0,#ddd 52%,#0000 0);border-radius:2px;box-shadow:inset 0 0 0 1px #0003;display:inline-block;padding:0}.fields-controls__featured-image-title{color:#1e1e1e;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.fields-controls__featured-image-image{align-self:center;border-radius:2px;height:100%;width:100%}.fields-controls__featured-image-container .fields-controls__featured-image-placeholder{margin:0}.fields-controls__featured-image-container span{margin-left:auto}fieldset.fields-controls__featured-image{border:0;margin:0;padding:0}fieldset.fields-controls__featured-image .fields-controls__featured-image-container{border:1px solid #ddd;border-radius:2px;cursor:pointer;padding:8px 12px}fieldset.fields-controls__featured-image .fields-controls__featured-image-container:hover{background-color:#f0f0f0}fieldset.fields-controls__featured-image .fields-controls__featured-image-placeholder{height:24px;width:24px}fieldset.fields-controls__featured-image span{align-self:center;text-align:start;white-space:nowrap}fieldset.fields-controls__featured-image .fields-controls__featured-image-upload-button{height:fit-content;padding:0}fieldset.fields-controls__featured-image .fields-controls__featured-image-upload-button:focus,fieldset.fields-controls__featured-image .fields-controls__featured-image-upload-button:hover{border:0;color:unset}fieldset.fields-controls__featured-image .fields-controls__featured-image-remove-button{place-self:end}.dataforms-layouts-panel__field-control .fields-controls__featured-image-image,.dataforms-layouts-panel__field-control .fields-controls__featured-image-placeholder{height:16px;width:16px}.dataviews-view-grid__media .fields-controls__featured-image-image,.dataviews-view-grid__media .fields-controls__featured-image-placeholder,.dataviews-view-list__media-wrapper .fields-controls__featured-image-image,.dataviews-view-list__media-wrapper .fields-controls__featured-image-placeholder,.dataviews-view-table__cell-content-wrapper.dataviews-column-primary__media .fields-controls__featured-image-image,.dataviews-view-table__cell-content-wrapper.dataviews-column-primary__media .fields-controls__featured-image-placeholder{border-radius:4px;display:block;height:100%;width:100%}.dataviews-view-grid__media .fields-controls__featured-image-placeholder,.dataviews-view-list__media-wrapper .fields-controls__featured-image-placeholder,.dataviews-view-table__cell-content-wrapper.dataviews-column-primary__media .fields-controls__featured-image-placeholder{background:#f0f0f0;box-shadow:none}.dataviews-view-table__cell-content-wrapper.dataviews-column-primary__media .fields-controls__featured-image-image,.dataviews-view-table__cell-content-wrapper.dataviews-column-primary__media .fields-controls__featured-image-placeholder{height:32px;width:32px}.fields-controls__parent,.fields-controls__password,.fields-controls__template{border:0;margin:0;padding:0}.fields-controls__template-modal{z-index:1000001}.fields-controls__template-content .block-editor-block-patterns-list{column-count:2;column-gap:24px;padding-top:2px}@media (min-width:782px){.fields-controls__template-content .block-editor-block-patterns-list{column-count:3}}@media (min-width:1280px){.fields-controls__template-content .block-editor-block-patterns-list{column-count:4}}.fields-controls__template-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{break-inside:avoid-column}.fields-field__title>span:first-child{display:block;flex-grow:0;overflow:hidden;text-decoration:none;text-overflow:ellipsis;white-space:nowrap}.fields-field__pattern-title span:first-child{flex:1}.edit-site-custom-template-modal__contents-wrapper{height:100%;justify-content:flex-start!important}.edit-site-custom-template-modal__contents-wrapper>*{width:100%}.edit-site-custom-template-modal__contents-wrapper__suggestions_list{margin-left:-12px;margin-right:-12px;width:calc(100% + 24px)}.edit-site-custom-template-modal__contents>.components-button{height:auto;justify-content:center}@media (min-width:782px){.edit-site-custom-template-modal{width:456px}}@media (min-width:600px){.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list{max-height:224px;overflow-y:auto}}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item{display:block;height:auto;overflow-wrap:break-word;padding:8px 12px;text-align:right;white-space:pre-wrap;width:100%}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item mark{background:none;font-weight:700}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04)}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item:hover *,.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item:hover mark{color:var(--wp-admin-theme-color)}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item:focus{background-color:#f0f0f0}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item:focus:not(:disabled){box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color) inset}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item__info,.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item__title{display:block;overflow:hidden;text-overflow:ellipsis}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item__info{color:#757575;word-break:break-all}.edit-site-custom-template-modal__no-results{border:1px solid #ccc;border-radius:2px;padding:16px}.edit-site-custom-generic-template__modal .components-modal__header{border-bottom:none}.edit-site-custom-generic-template__modal .components-modal__content:before{margin-bottom:4px}@media (min-width:960px){.edit-site-add-new-template__modal{margin-top:64px;max-height:calc(100% - 128px);max-width:832px;width:calc(100% - 128px)}}.edit-site-add-new-template__modal .edit-site-add-new-template__custom-template-button svg,.edit-site-add-new-template__modal .edit-site-add-new-template__template-button svg{fill:var(--wp-admin-theme-color)}.edit-site-add-new-template__modal .edit-site-add-new-template__custom-template-button .edit-site-add-new-template__template-name{align-items:flex-start;flex-grow:1}.edit-site-add-new-template__modal .edit-site-add-new-template__template-icon{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-radius:100%;max-height:40px;max-width:40px;padding:8px}.edit-site-add-new-template__template-list__contents>.components-button,.edit-site-custom-template-modal__contents>.components-button{border:1px solid #ddd;display:flex;flex-direction:column;justify-content:center;outline:1px solid #0000;padding:32px}.edit-site-add-new-template__template-list__contents>.components-button span:first-child,.edit-site-custom-template-modal__contents>.components-button span:first-child{color:#1e1e1e}.edit-site-add-new-template__template-list__contents>.components-button span,.edit-site-custom-template-modal__contents>.components-button span{color:#757575}.edit-site-add-new-template__template-list__contents>.components-button:hover,.edit-site-custom-template-modal__contents>.components-button:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-color:#0000;color:var(--wp-admin-theme-color-darker-10)}.edit-site-add-new-template__template-list__contents>.components-button:hover span,.edit-site-custom-template-modal__contents>.components-button:hover span{color:var(--wp-admin-theme-color)}.edit-site-add-new-template__template-list__contents>.components-button:focus,.edit-site-custom-template-modal__contents>.components-button:focus{border-color:#0000;box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:3px solid #0000}.edit-site-add-new-template__template-list__contents>.components-button:focus span:first-child,.edit-site-custom-template-modal__contents>.components-button:focus span:first-child{color:var(--wp-admin-theme-color)}.edit-site-add-new-template__template-list__contents .edit-site-add-new-template__custom-template-button,.edit-site-add-new-template__template-list__contents .edit-site-add-new-template__template-list__prompt,.edit-site-custom-template-modal__contents .edit-site-add-new-template__custom-template-button,.edit-site-custom-template-modal__contents .edit-site-add-new-template__template-list__prompt{grid-column:1/-1}.edit-site-add-new-template__template-list__contents>.components-button{align-items:flex-start;height:100%;text-align:start}.edit-site-visual-editor__editor-canvas.is-focused{outline:calc(var(--wp-admin-border-width-focus)*2) solid var(--wp-admin-theme-color);outline-offset:calc(var(--wp-admin-border-width-focus)*-2)}.edit-site-canvas-loader{align-items:center;display:flex;height:100%;justify-content:center;opacity:0;position:absolute;right:0;top:0;width:100%}@media not (prefers-reduced-motion){.edit-site-canvas-loader{animation:edit-site-canvas-loader__fade-in-animation .5s ease .2s;animation-fill-mode:forwards}}.edit-site-canvas-loader>div{width:160px}@keyframes edit-site-canvas-loader__fade-in-animation{0%{opacity:0}to{opacity:1}}.edit-site-global-styles-preview{align-items:center;cursor:pointer;display:flex;justify-content:center;line-height:1}.edit-site-global-styles-preview__wrapper{display:block;max-width:100%;width:100%}.edit-site-typography-preview{align-items:center;background:#f0f0f0;border-radius:2px;display:flex;justify-content:center;margin-bottom:16px;min-height:100px;overflow:hidden}.edit-site-font-size__item{line-break:anywhere;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.edit-site-font-size__item-value{color:#757575}.edit-site-global-styles-screen{margin:12px 16px 16px}.edit-site-global-styles-screen-typography__indicator{align-items:center;border-radius:1px;display:flex!important;font-size:14px;height:24px;justify-content:center;width:24px}.edit-site-global-styles-screen-typography__font-variants-count{color:#757575}.edit-site-global-styles-font-families__manage-fonts{justify-content:center}.edit-site-global-styles-screen .color-block-support-panel{border-top:none;padding-left:0;padding-right:0;padding-top:0;row-gap:12px}.edit-site-global-styles-header__description{padding:0 16px}.edit-site-block-types-search{margin-bottom:8px;padding:0 16px}.edit-site-global-styles-header{margin-bottom:0!important}.edit-site-global-styles-subtitle{font-size:11px!important;font-weight:500!important;margin-bottom:0!important;text-transform:uppercase}.edit-site-global-styles-section-title{color:#2f2f2f;font-weight:600;line-height:1.2;margin:0;padding:16px 16px 0}.edit-site-global-styles-icon-with-current-color{fill:currentColor}.edit-site-global-styles__color-indicator-wrapper{flex-shrink:0;height:24px}.edit-site-global-styles__shadows-panel__options-container,.edit-site-global-styles__typography-panel__options-container{height:24px}.edit-site-global-styles__block-preview-panel{border:1px solid #e0e0e0;border-radius:4px;overflow:hidden;position:relative;width:100%}.edit-site-global-styles__shadow-preview-panel{background-image:repeating-linear-gradient(-45deg,#f5f5f5 25%,#0000 0,#0000 75%,#f5f5f5 0,#f5f5f5),repeating-linear-gradient(-45deg,#f5f5f5 25%,#0000 0,#0000 75%,#f5f5f5 0,#f5f5f5);background-position:100% 0,right 8px top 8px;background-size:16px 16px;border:1px solid #e0e0e0;border-radius:4px;height:144px;overflow:auto}.edit-site-global-styles__shadow-preview-panel .edit-site-global-styles__shadow-preview-block{background-color:#fff;border:1px solid #e0e0e0;border-radius:2px;height:60px;width:60%}.edit-site-global-styles__shadow-editor__dropdown-content{width:280px}.edit-site-global-styles__shadow-editor-panel{margin-bottom:4px}.edit-site-global-styles__shadow-editor__dropdown{position:relative;width:100%}.edit-site-global-styles__shadow-editor__dropdown-toggle{border-radius:inherit;height:auto;padding-bottom:8px;padding-top:8px;text-align:right;width:100%}.edit-site-global-styles__shadow-editor__dropdown-toggle.is-open{background:#f0f0f0;color:var(--wp-admin-theme-color)}.edit-site-global-styles__shadow-editor__remove-button{left:8px;opacity:0;position:absolute;top:8px}.edit-site-global-styles__shadow-editor__remove-button.edit-site-global-styles__shadow-editor__remove-button{border:none}.edit-site-global-styles__shadow-editor__dropdown-toggle:hover+.edit-site-global-styles__shadow-editor__remove-button,.edit-site-global-styles__shadow-editor__remove-button:focus,.edit-site-global-styles__shadow-editor__remove-button:hover{opacity:1}@media (hover:none){.edit-site-global-styles__shadow-editor__remove-button{opacity:1}}.edit-site-global-styles-screen-css{display:flex;flex:1 1 auto;flex-direction:column;margin:16px}.edit-site-global-styles-screen-css .components-v-stack{flex:1 1 auto}.edit-site-global-styles-screen-css .components-v-stack .block-editor-global-styles-advanced-panel__custom-css-input,.edit-site-global-styles-screen-css .components-v-stack .block-editor-global-styles-advanced-panel__custom-css-input .components-base-control__field{display:flex;flex:1 1 auto;flex-direction:column}.edit-site-global-styles-screen-css .components-v-stack .block-editor-global-styles-advanced-panel__custom-css-input .components-base-control__field .components-textarea-control__input{direction:ltr;flex:1 1 auto}.edit-site-global-styles-screen-css-help-link{display:inline-block;margin-top:8px}.edit-site-global-styles-screen-variations{border-top:1px solid #ddd;margin-top:16px}.edit-site-global-styles-screen-variations>*{margin:24px 16px}.edit-site-global-styles-sidebar__navigator-provider{height:100%}.edit-site-global-styles-sidebar__navigator-screen{display:flex;flex-direction:column;height:100%}.edit-site-global-styles-sidebar__navigator-screen .single-column{grid-column:span 1}.edit-site-global-styles-screen-root.edit-site-global-styles-screen-root,.edit-site-global-styles-screen-style-variations.edit-site-global-styles-screen-style-variations{background:unset;color:inherit}.edit-site-global-styles-sidebar__panel .block-editor-block-icon svg{fill:currentColor}.edit-site-global-styles-screen-root__active-style-tile.edit-site-global-styles-screen-root__active-style-tile,.edit-site-global-styles-screen-root__active-style-tile.edit-site-global-styles-screen-root__active-style-tile .edit-site-global-styles-screen-root__active-style-tile-preview{border-radius:2px}.edit-site-global-styles-screen-revisions__revisions-list{flex-grow:1;list-style:none;margin:0 16px 16px}.edit-site-global-styles-screen-revisions__revisions-list li{margin-bottom:0}.edit-site-global-styles-screen-revisions__revision-item{cursor:pointer;display:flex;flex-direction:column;position:relative}.edit-site-global-styles-screen-revisions__revision-item[role=option]:active,.edit-site-global-styles-screen-revisions__revision-item[role=option]:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid #0000}.edit-site-global-styles-screen-revisions__revision-item:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04)}.edit-site-global-styles-screen-revisions__revision-item:hover .edit-site-global-styles-screen-revisions__date{color:var(--wp-admin-theme-color)}.edit-site-global-styles-screen-revisions__revision-item:after,.edit-site-global-styles-screen-revisions__revision-item:before{content:"\a";display:block;position:absolute}.edit-site-global-styles-screen-revisions__revision-item:before{background:#ddd;border:4px solid #0000;border-radius:50%;height:8px;right:17px;top:18px;transform:translate(50%,-50%);width:8px;z-index:1}.edit-site-global-styles-screen-revisions__revision-item[aria-selected=true]{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-radius:2px;color:var(--wp-admin-theme-color);outline:3px solid #0000;outline-offset:-2px}.edit-site-global-styles-screen-revisions__revision-item[aria-selected=true] .edit-site-global-styles-screen-revisions__date{color:var(--wp-admin-theme-color)}.edit-site-global-styles-screen-revisions__revision-item[aria-selected=true]:before{background:var(--wp-admin-theme-color)}.edit-site-global-styles-screen-revisions__revision-item[aria-selected=true] .edit-site-global-styles-screen-revisions__applied-text,.edit-site-global-styles-screen-revisions__revision-item[aria-selected=true] .edit-site-global-styles-screen-revisions__changes>li,.edit-site-global-styles-screen-revisions__revision-item[aria-selected=true] .edit-site-global-styles-screen-revisions__meta{color:#1e1e1e}.edit-site-global-styles-screen-revisions__revision-item:after{border:.5px solid #ddd;height:100%;right:16px;top:0;width:0}.edit-site-global-styles-screen-revisions__revision-item:first-child:after{top:18px}.edit-site-global-styles-screen-revisions__revision-item:last-child:after{height:18px}.edit-site-global-styles-screen-revisions__revision-item-wrapper{display:block;padding:12px 40px 4px 12px}.edit-site-global-styles-screen-revisions__applied-text,.edit-site-global-styles-screen-revisions__apply-button.is-primary{align-self:flex-start;margin:4px 40px 12px 12px}.edit-site-global-styles-screen-revisions__applied-text,.edit-site-global-styles-screen-revisions__changes,.edit-site-global-styles-screen-revisions__meta{color:#757575;font-size:12px}.edit-site-global-styles-screen-revisions__description{align-items:flex-start;display:flex;flex-direction:column;gap:8px}.edit-site-global-styles-screen-revisions__description .edit-site-global-styles-screen-revisions__date{font-size:12px;font-weight:600;text-transform:uppercase}.edit-site-global-styles-screen-revisions__meta{align-items:flex-start;display:flex;justify-content:start;margin-bottom:4px;text-align:right;width:100%}.edit-site-global-styles-screen-revisions__meta img{border-radius:100%;height:16px;margin-left:8px;width:16px}.edit-site-global-styles-screen-revisions__loading{margin:24px auto!important}.edit-site-global-styles-screen-revisions__changes{line-height:1.4;list-style:disc;margin-right:12px;text-align:right}.edit-site-global-styles-screen-revisions__changes li{margin-bottom:4px}.edit-site-global-styles-screen-revisions__pagination.edit-site-global-styles-screen-revisions__pagination{gap:2px;justify-content:space-between}.edit-site-global-styles-screen-revisions__pagination.edit-site-global-styles-screen-revisions__pagination .edit-site-pagination__total{height:1px;margin:-1px;overflow:hidden;position:absolute;right:-1000px}.edit-site-global-styles-screen-revisions__pagination.edit-site-global-styles-screen-revisions__pagination .components-text{font-size:12px;will-change:opacity}.edit-site-global-styles-screen-revisions__pagination.edit-site-global-styles-screen-revisions__pagination .components-button.is-tertiary{color:#1e1e1e}.edit-site-global-styles-screen-revisions__pagination.edit-site-global-styles-screen-revisions__pagination .components-button.is-tertiary:disabled,.edit-site-global-styles-screen-revisions__pagination.edit-site-global-styles-screen-revisions__pagination .components-button.is-tertiary[aria-disabled=true]{color:#949494}.edit-site-global-styles-screen-revisions__footer{background:#fff;border-top:1px solid #ddd;bottom:0;height:56px;min-width:100%;padding:12px;position:sticky;z-index:1}.edit-site-global-styles-sidebar{display:flex;flex-direction:column;min-height:100%}.edit-site-global-styles-sidebar__panel{flex:1}.edit-site-global-styles-sidebar .edit-site-global-styles-sidebar__header-title{margin:0}.edit-site-global-styles-sidebar .edit-site-global-styles-sidebar__header-actions{flex:1}.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{border:0}.edit-site-global-styles-sidebar .single-column{grid-column:span 1}.edit-site-global-styles-sidebar .components-tools-panel .span-columns{grid-column:1/-1}.edit-site-global-styles-sidebar__blocks-group{border-top:1px solid #e0e0e0;padding-top:24px}.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 hr{margin:0}.show-icon-labels .edit-site-global-styles-sidebar__header .components-button.has-icon{width:auto}.show-icon-labels .edit-site-global-styles-sidebar__header .components-button.has-icon svg{display:none}.show-icon-labels .edit-site-global-styles-sidebar__header .components-button.has-icon:after{content:attr(aria-label);font-size:12px}.edit-site-patterns__delete-modal{width:384px}.page-patterns-preview-field{align-items:center;border-radius:4px;display:flex;flex-direction:column;height:100%;justify-content:center}.dataviews-view-grid .page-patterns-preview-field .block-editor-block-preview__container{height:100%}.dataviews-view-table .page-patterns-preview-field{flex-grow:0;text-wrap:balance;text-wrap:pretty;width:96px}.edit-site-patterns__pattern-icon{fill:var(--wp-block-synced-color);flex-shrink:0}.edit-site-patterns__section-header{border-bottom:1px solid #f0f0f0;flex-shrink:0;min-height:40px;padding:16px 48px;position:sticky;top:0;z-index:2}@media not (prefers-reduced-motion){.edit-site-patterns__section-header{transition:padding .1s ease-out}}.edit-site-patterns__section-header .edit-site-patterns__title{min-height:40px}.edit-site-patterns__section-header .edit-site-patterns__title .components-heading{flex-basis:0;flex-grow:1;white-space:nowrap}.edit-site-patterns__section-header .edit-site-patterns__sub-title{margin-bottom:8px}.edit-site-patterns__section-header .screen-reader-shortcut:focus{top:0}.edit-site-page-patterns-dataviews .dataviews-view-grid__badge-fields .dataviews-view-grid__field-value:has(.edit-site-patterns__field-sync-status-fully){background:rgba(var(--wp-block-synced-color--rgb),.04);color:var(--wp-block-synced-color)}.dataviews-action-modal__duplicate-pattern [role=dialog]>[role=document]{width:350px}.dataviews-action-modal__duplicate-pattern .patterns-menu-items__convert-modal-categories{position:relative}.dataviews-action-modal__duplicate-pattern .components-form-token-field__suggestions-list:not(:empty){background-color:#fff;border:1px solid var(--wp-admin-theme-color);border-bottom-left-radius:2px;border-bottom-right-radius:2px;box-shadow:0 0 .5px .5px var(--wp-admin-theme-color);box-sizing:border-box;max-height:96px;min-width:auto;position:absolute;right:-1px;width:calc(100% + 2px);z-index:1}@media (min-width:600px){.dataviews-action-modal__duplicate-template-part .components-modal__frame{max-width:500px}}@container (max-width: 430px){.edit-site-page-patterns-dataviews .edit-site-patterns__section-header{padding-left:24px;padding-right:24px}}.page-templates-preview-field{align-items:center;border-radius:4px;display:flex;flex-direction:column;height:100%;justify-content:center;width:100%}.dataviews-view-list .page-templates-preview-field .block-editor-block-preview__container{height:120px}.dataviews-view-grid .page-templates-preview-field .block-editor-block-preview__container{height:100%}.dataviews-view-table .page-templates-preview-field{max-height:160px;position:relative;text-wrap:balance;text-wrap:pretty;width:120px}.edit-site-page-templates .dataviews-pagination{z-index:2}.page-templates-author-field__avatar{align-items:center;display:flex;flex-shrink:0;height:24px;justify-content:right;overflow:hidden;width:24px}.page-templates-author-field__avatar img{border-radius:100%;height:16px;object-fit:cover;opacity:0;width:16px}@media not (prefers-reduced-motion){.page-templates-author-field__avatar img{transition:opacity .1s linear}}.page-templates-author-field__avatar.is-loaded img{opacity:1}.page-templates-author-field__icon{display:flex;flex-shrink:0;height:24px;width:24px}.page-templates-author-field__icon svg{margin-right:-4px;fill:currentColor}.page-templates-author-field__name{overflow:hidden;text-overflow:ellipsis}.edit-site-list__rename-modal{z-index:1000001}@media (min-width:782px){.edit-site-list__rename-modal .components-base-control{width:320px}}.edit-site-editor__editor-interface{opacity:1}@media not (prefers-reduced-motion){.edit-site-editor__editor-interface{transition:opacity .1s ease-out}}.edit-site-editor__editor-interface.is-loading{opacity:0}.edit-site-editor__toggle-save-panel{background-color:#fff;border:1px dotted #ddd;box-sizing:border-box;display:flex;justify-content:center;padding:24px;width:280px}.edit-site-editor__view-mode-toggle{view-transition-name:toggle;height:64px;right:0;top:0;width:64px;z-index:100}.edit-site-editor__view-mode-toggle .components-button{align-items:center;border-radius:0;color:#fff;display:flex;height:100%;justify-content:center;overflow:hidden;padding:0;width:100%}.edit-site-editor__view-mode-toggle .components-button:active,.edit-site-editor__view-mode-toggle .components-button:hover{color:#fff}.edit-site-editor__view-mode-toggle .components-button:focus{box-shadow:none}.edit-site-editor__view-mode-toggle .edit-site-editor__view-mode-toggle-icon img,.edit-site-editor__view-mode-toggle .edit-site-editor__view-mode-toggle-icon svg{background:#1e1e1e;display:block}.edit-site-editor__back-icon{align-items:center;background-color:#ccc;display:flex;height:64px;justify-content:center;pointer-events:none;position:absolute;right:0;top:0;width:64px}.edit-site-editor__back-icon svg{fill:currentColor}.edit-site-editor__back-icon.has-site-icon{backdrop-filter:saturate(180%) blur(15px);background-color:#fff9}.edit-site-welcome-guide{width:312px}.edit-site-welcome-guide.guide-editor .edit-site-welcome-guide__image,.edit-site-welcome-guide.guide-styles .edit-site-welcome-guide__image{background:#00a0d2}.edit-site-welcome-guide.guide-page .edit-site-welcome-guide__video{border-left:16px solid #3858e9;border-top:16px solid #3858e9}.edit-site-welcome-guide.guide-template .edit-site-welcome-guide__video{border-right:16px solid #3858e9;border-top:16px solid #3858e9}.edit-site-welcome-guide__image{margin:0 0 16px}.edit-site-welcome-guide__image>img{display:block;max-width:100%;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}.edit-site-layout{color:#ccc;display:flex;flex-direction:column;height:100%}.edit-site-layout,.edit-site-layout:not(.is-full-canvas) .editor-visual-editor{background:#1e1e1e}.edit-site-layout__content{display:flex;flex-grow:1;height:100%}.edit-site-layout__sidebar-region{flex-shrink:0;width:100vw;z-index:1}@media (min-width:782px){.edit-site-layout__sidebar-region{width:300px}}.edit-site-layout.is-full-canvas .edit-site-layout__sidebar-region{height:100vh;position:fixed!important;right:0;top:0}.edit-site-layout__sidebar-region .edit-site-layout__sidebar{display:flex;flex-direction:column;height:100%}.edit-site-layout__sidebar-region .resizable-editor__drag-handle{left:0}.edit-site-layout__main{display:flex;flex-direction:column;flex-grow:1;overflow:hidden}.edit-site-layout__mobile{display:flex;flex-direction:column;position:relative;width:100%;z-index:2}.edit-site-layout__mobile .edit-site-sidebar__screen-wrapper{padding:0}.edit-site-layout__mobile .edit-site-sidebar-navigation-screen__main{padding:0 12px}.edit-site-layout__canvas-container{flex-grow:1;overflow:visible;position:relative;z-index:2}.edit-site-layout__canvas-container.is-resizing:after{bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:100}.edit-site-layout__canvas{align-items:center;bottom:0;display:flex;justify-content:center;position:absolute;right:0;top:0;width:100%}.edit-site-layout__canvas.is-right-aligned{justify-content:flex-end}.edit-site-layout__canvas .edit-site-resizable-frame__inner{color:#1e1e1e}@media (min-width:782px){.edit-site-layout__canvas{bottom:16px;top:16px;width:calc(100% - 16px)}.edit-site-layout__canvas .edit-site-resizable-frame__inner-content{box-shadow:0 1px 1px #00000008,0 1px 2px #00000005,0 3px 3px #00000005,0 4px 4px #00000003;overflow:hidden}}@media (min-width:782px) and (not (prefers-reduced-motion)){.edit-site-layout__canvas .edit-site-resizable-frame__inner-content{transition:border-radius,box-shadow .4s}}@media (min-width:782px){.edit-site-layout:not(.is-full-canvas) .edit-site-layout__canvas .edit-site-resizable-frame__inner-content{border-radius:8px}.edit-site-layout__canvas .edit-site-resizable-frame__inner-content:hover{box-shadow:0 5px 15px #00000014,0 15px 27px #00000012,0 30px 36px #0000000a,0 50px 43px #00000005}}.edit-site-layout.is-full-canvas .edit-site-layout__canvas{bottom:0;top:0;width:100%}.edit-site-layout__canvas .interface-interface-skeleton,.edit-site-layout__mobile .interface-interface-skeleton,.edit-site-template-pages-preview .interface-interface-skeleton{min-height:100%!important;position:relative!important}.edit-site-template-pages-preview{height:100%}html.canvas-mode-edit-transition::view-transition-group(toggle){animation-delay:255ms}@media (prefers-reduced-motion){::view-transition-group(*),::view-transition-new(*),::view-transition-old(*){animation:none!important}}.edit-site-layout.is-full-canvas .edit-site-layout__sidebar-region .edit-site-layout__view-mode-toggle{display:none}.edit-site-layout__view-mode-toggle.components-button{view-transition-name:toggle;align-items:center;background:#1e1e1e;border-radius:0;color:#fff;display:flex;height:64px;justify-content:center;overflow:hidden;padding:0;position:relative;width:64px}.edit-site-layout__view-mode-toggle.components-button:active,.edit-site-layout__view-mode-toggle.components-button:hover{color:#fff}.edit-site-layout__view-mode-toggle.components-button:focus,.edit-site-layout__view-mode-toggle.components-button:focus-visible{box-shadow:0 0 0 3px #1e1e1e,0 0 0 6px var(--wp-admin-theme-color);outline:4px solid #0000;outline-offset:4px}.edit-site-layout__view-mode-toggle.components-button:before{border-radius:4px;bottom:9px;box-shadow:none;content:"";display:block;left:9px;position:absolute;right:17px;top:9px}@media not (prefers-reduced-motion){.edit-site-layout__view-mode-toggle.components-button:before{transition:box-shadow .1s ease}}.edit-site-layout__view-mode-toggle.components-button .edit-site-layout__view-mode-toggle-icon{align-items:center;display:flex;height:64px;justify-content:center;width:64px}.edit-site-layout__actions{background:#fff;bottom:auto;color:#1e1e1e;left:0;position:fixed!important;right:auto;top:-9999em;width:280px;z-index:100000}.edit-site-layout__actions:focus,.edit-site-layout__actions:focus-within{bottom:0;top:auto}.edit-site-layout__actions.is-entity-save-view-open:focus,.edit-site-layout__actions.is-entity-save-view-open:focus-within{top:0}@media (min-width:782px){.edit-site-layout__actions{border-right:1px solid #ddd}}.edit-site-layout__area{box-shadow:0 1px 1px #00000008,0 1px 2px #00000005,0 3px 3px #00000005,0 4px 4px #00000003;flex-grow:1;margin:0;overflow:hidden}@media (min-width:782px){.edit-site-layout__area{border-radius:8px;margin:16px 0 16px 16px}}.edit-site .components-editor-notices__snackbar{bottom:16px;left:0;padding-left:16px;padding-right:16px;position:fixed}.edit-site-save-hub{border-top:1px solid #2f2f2f;color:#949494;flex-shrink:0;margin:0;padding:16px}.edit-site-save-hub__button{color:inherit;justify-content:center;width:100%}.edit-site-save-hub__button[aria-disabled=true]{opacity:1}.edit-site-save-hub__button[aria-disabled=true]:hover{color:inherit}.edit-site-save-hub__button:not(.is-primary).is-busy,.edit-site-save-hub__button:not(.is-primary).is-busy[aria-disabled=true]:hover{color:#1e1e1e}@media (min-width:600px){.edit-site-save-panel__modal{width:600px}}.edit-site-sidebar__content{contain:content;flex-grow:1;overflow-x:hidden;overflow-y:auto}@keyframes local--slide-from-right{0%{opacity:0;transform:translateX(-50px)}to{opacity:1;transform:none}}@keyframes local--slide-from-left{0%{opacity:0;transform:translateX(50px)}to{opacity:1;transform:none}}.edit-site-sidebar__screen-wrapper{overflow-x:auto}.edit-site-sidebar__screen-wrapper::-webkit-scrollbar{height:12px;width:12px}.edit-site-sidebar__screen-wrapper::-webkit-scrollbar-track{background-color:initial}.edit-site-sidebar__screen-wrapper::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:initial;border:3px solid #0000;border-radius:8px}.edit-site-sidebar__screen-wrapper:focus-within::-webkit-scrollbar-thumb,.edit-site-sidebar__screen-wrapper:focus::-webkit-scrollbar-thumb,.edit-site-sidebar__screen-wrapper:hover::-webkit-scrollbar-thumb{background-color:#757575}.edit-site-sidebar__screen-wrapper{scrollbar-color:#0000 #0000;scrollbar-gutter:stable both-edges;scrollbar-width:thin}.edit-site-sidebar__screen-wrapper:focus,.edit-site-sidebar__screen-wrapper:focus-within,.edit-site-sidebar__screen-wrapper:hover{scrollbar-color:#757575 #0000}.edit-site-sidebar__screen-wrapper{will-change:transform}@media (hover:none){.edit-site-sidebar__screen-wrapper{scrollbar-color:#757575 #0000}}.edit-site-sidebar__screen-wrapper{animation-duration:.14s;animation-timing-function:ease-in-out;display:flex;flex-direction:column;height:100%;max-height:100%;padding:0 12px;scrollbar-gutter:stable;will-change:transform,opacity}@media (prefers-reduced-motion:reduce){.edit-site-sidebar__screen-wrapper{animation-duration:0s}}.edit-site-sidebar__screen-wrapper.slide-from-left{animation-name:local--slide-from-left}.edit-site-sidebar__screen-wrapper.slide-from-right{animation-name:local--slide-from-right}.edit-site-sidebar-button{color:#e0e0e0;flex-shrink:0}.edit-site-sidebar-button:focus:not(:disabled){box-shadow:none;outline:none}.edit-site-sidebar-button:focus-visible:not(:disabled){box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:3px solid #0000}.edit-site-sidebar-button:focus,.edit-site-sidebar-button:focus-visible,.edit-site-sidebar-button:hover:not(:disabled,[aria-disabled=true]),.edit-site-sidebar-button:not(:disabled,[aria-disabled=true]):active,.edit-site-sidebar-button[aria-expanded=true]{color:#f0f0f0}.edit-site-sidebar-navigation-item.components-item{border:none;color:#949494;min-height:40px;padding:8px 16px 8px 6px}.edit-site-sidebar-navigation-item.components-item:focus,.edit-site-sidebar-navigation-item.components-item:hover,.edit-site-sidebar-navigation-item.components-item[aria-current=true]{color:#e0e0e0}.edit-site-sidebar-navigation-item.components-item:focus .edit-site-sidebar-navigation-item__drilldown-indicator,.edit-site-sidebar-navigation-item.components-item:hover .edit-site-sidebar-navigation-item__drilldown-indicator,.edit-site-sidebar-navigation-item.components-item[aria-current=true] .edit-site-sidebar-navigation-item__drilldown-indicator{fill:#e0e0e0}.edit-site-sidebar-navigation-item.components-item[aria-current=true]{background:#2f2f2f;color:#fff;font-weight:500}.edit-site-sidebar-navigation-item.components-item:focus-visible{transform:translateZ(0)}.edit-site-sidebar-navigation-item.components-item .edit-site-sidebar-navigation-item__drilldown-indicator{fill:#949494}.edit-site-sidebar-navigation-item.components-item.with-suffix{padding-left:16px}.edit-site-sidebar-navigation-screen__content .block-editor-list-view-block-select-button{cursor:grab;padding:8px 0 8px 8px}.edit-site-sidebar-navigation-screen{display:flex;flex-direction:column;overflow-x:unset!important;position:relative}.edit-site-sidebar-navigation-screen__main{flex-grow:1;margin-bottom:16px}.edit-site-sidebar-navigation-screen__main.has-footer{margin-bottom:0}.edit-site-sidebar-navigation-screen__content{padding:0 16px}.edit-site-sidebar-navigation-screen__content .components-text{color:#ccc}.edit-site-sidebar-navigation-screen__content .components-heading{margin-bottom:8px}.edit-site-sidebar-navigation-screen__title-icon{background:#1e1e1e;margin-bottom:8px;padding-bottom:8px;padding-top:48px;position:sticky;top:0;z-index:1}.edit-site-sidebar-navigation-screen__title{flex-grow:1;overflow-wrap:break-word}.edit-site-sidebar-navigation-screen__title.edit-site-sidebar-navigation-screen__title,.edit-site-sidebar-navigation-screen__title.edit-site-sidebar-navigation-screen__title .edit-site-sidebar-navigation-screen__title{line-height:32px}.edit-site-sidebar-navigation-screen__actions{display:flex;flex-shrink:0}@media (min-width:782px){.edit-site-sidebar-navigation-screen__content .edit-site-global-styles-variation-container{max-width:292px}}.edit-site-global-styles-variation-title{color:#ddd;font-size:11px;font-weight:500;text-transform:uppercase}.edit-site-sidebar-navigation-screen__content .edit-site-global-styles-variations_item .edit-site-global-styles-variations_item-preview{outline-color:#ffffff0d}.edit-site-sidebar-navigation-screen__content .edit-site-global-styles-variations_item:not(.is-active):hover .edit-site-global-styles-variations_item-preview{outline-color:#ffffff26}.edit-site-sidebar-navigation-screen__content .edit-site-global-styles-variations_item.is-active .edit-site-global-styles-variations_item-preview{outline-color:#fff}.edit-site-sidebar-navigation-screen__content .edit-site-global-styles-variations_item:focus-visible .edit-site-global-styles-variations_item-preview{outline-color:var(--wp-admin-theme-color)}.edit-site-sidebar-navigation-screen__footer{background-color:#1e1e1e;border-top:1px solid #2f2f2f;bottom:0;gap:0;margin:16px 0 0;padding:8px 16px;position:sticky}.edit-site-sidebar-navigation-screen__footer .edit-site-sidebar-navigation-screen-details-footer{margin-left:-16px;margin-right:-16px}.edit-site-sidebar-navigation-screen__input-control{width:100%}.edit-site-sidebar-navigation-screen__input-control .components-input-control__container{background:#2f2f2f}.edit-site-sidebar-navigation-screen__input-control .components-input-control__container .components-button{color:#e0e0e0!important}.edit-site-sidebar-navigation-screen__input-control .components-input-control__input{background:#2f2f2f!important;color:#e0e0e0!important}.edit-site-sidebar-navigation-screen__input-control .components-input-control__backdrop{border:4px!important}.edit-site-sidebar-navigation-screen__input-control .components-base-control__help{color:#949494}.edit-site-sidebar-navigation-screen-details-footer div.edit-site-sidebar-navigation-item.components-item:focus,.edit-site-sidebar-navigation-screen-details-footer div.edit-site-sidebar-navigation-item.components-item:hover,.edit-site-sidebar-navigation-screen-details-footer div.edit-site-sidebar-navigation-item.components-item[aria-current]{background:none}.sidebar-navigation__more-menu .components-button{color:#e0e0e0}.sidebar-navigation__more-menu .components-button:focus,.sidebar-navigation__more-menu .components-button:hover,.sidebar-navigation__more-menu .components-button[aria-current]{color:#f0f0f0}.edit-site-sidebar-navigation-screen-patterns__group{margin-bottom:24px;margin-left:-16px;margin-right:-16px}.edit-site-sidebar-navigation-screen-patterns__group:last-of-type{border-bottom:0;margin-bottom:0;padding-bottom:0}.edit-site-sidebar-navigation-screen-patterns__group-header{margin-top:16px}.edit-site-sidebar-navigation-screen-patterns__group-header p{color:#949494}.edit-site-sidebar-navigation-screen-patterns__group-header h2{font-size:11px;font-weight:500;text-transform:uppercase}.edit-site-sidebar-navigation-screen-patterns__divider{border-top:1px solid #2f2f2f;margin:16px 0}.edit-site-sidebar-navigation-screen__description{margin:0 0 32px}.edit-site-sidebar-navigation-screen-navigation-menus{margin-left:-16px;margin-right:-16px}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-leaf .block-editor-list-view-block-contents{white-space:normal}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block__title{margin-top:3px}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block__menu-cell{padding-left:0}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block-select-button{color:#949494}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block-select-button:focus,.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block-select-button:hover,.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block-select-button[aria-current]{color:#fff}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block__menu{color:#949494}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block__menu:focus,.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block__menu:hover{color:#fff}.edit-site-sidebar-navigation-screen-navigation-menus__loading.components-spinner{display:block;margin-left:auto;margin-right:auto}.edit-site-sidebar-navigation-screen-navigation-menus__helper-block-editor{display:none}.edit-site-sidebar-dataviews,.edit-site-sidebar-navigation-screen-main,.edit-site-sidebar-navigation-screen-templates-browse{margin-left:-16px;margin-right:-16px}.edit-site-sidebar-dataviews-dataview-item{border-radius:2px}.edit-site-sidebar-dataviews-dataview-item:focus,.edit-site-sidebar-dataviews-dataview-item:hover,.edit-site-sidebar-dataviews-dataview-item[aria-current]{color:#e0e0e0}.edit-site-sidebar-dataviews-dataview-item.is-selected{background:#2f2f2f;color:#fff;font-weight:500}.edit-site-site-hub{align-items:center;display:flex;gap:8px;height:64px;justify-content:space-between;margin-left:12px}.edit-site-site-hub__actions{flex-shrink:0}.edit-site-site-hub__view-mode-toggle-container{flex-shrink:0;height:64px;width:64px}.edit-site-site-hub__view-mode-toggle-container.has-transparent-background .edit-site-layout__view-mode-toggle-icon{background:#0000}.edit-site-site-hub__title .components-button{color:#e0e0e0;display:block;flex-grow:1;font-size:15px;font-weight:500;margin-right:-4px;overflow:hidden;padding-left:16px;position:relative;text-decoration:none;text-overflow:ellipsis;white-space:nowrap}.edit-site-site-hub__title .components-button:active,.edit-site-site-hub__title .components-button:focus,.edit-site-site-hub__title .components-button:hover{color:#e0e0e0}.edit-site-site-hub__title .components-button:focus{box-shadow:none;outline:none}.edit-site-site-hub__title .components-button:focus-visible{box-shadow:0 0 0 var(--wp-admin-border-width-focus) #1e1e1e,0 0 0 calc(var(--wp-admin-border-width-focus)*2) var(--wp-admin-theme-color);outline:2px solid #0000;outline-offset:2px}.edit-site-site-hub__title .components-button:after{content:"↗";font-weight:400;left:0;opacity:0;position:absolute}@media not (prefers-reduced-motion){.edit-site-site-hub__title .components-button:after{transition:opacity .1s linear}}.edit-site-site-hub__title .components-button:active:after,.edit-site-site-hub__title .components-button:focus:after,.edit-site-site-hub__title .components-button:hover:after{opacity:1}.edit-site-site-hub_toggle-command-center{color:#e0e0e0}.edit-site-site-hub_toggle-command-center:active svg,.edit-site-site-hub_toggle-command-center:hover svg{fill:#f0f0f0}.edit-site-site-icon__icon{fill:currentColor;height:100%;width:100%}.edit-site-layout.is-full-canvas .edit-site-site-icon__icon{padding:12px}.edit-site-site-icon__image{aspect-ratio:1/1;background:#333;height:100%;object-fit:cover;width:100%}.edit-site-layout.is-full-canvas .edit-site-site-icon__image{border-radius:0}.edit-site-editor__view-mode-toggle button:focus{position:relative}.edit-site-editor__view-mode-toggle button:focus:before{bottom:0;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color),inset 0 0 0 calc(1px + var(--wp-admin-border-width-focus)) #fff;content:"";display:block;left:0;position:absolute;right:0;top:0;z-index:1}.edit-site-style-book{height:100%}.edit-site-style-book.is-button{border-radius:8px}.edit-site-style-book{align-items:stretch;display:flex;flex-direction:column}.edit-site-style-book__iframe{display:block;height:100%;width:100%}.edit-site-style-book__iframe.is-button{border-radius:8px}.edit-site-style-book__iframe.is-focused{outline:calc(var(--wp-admin-border-width-focus)*2) solid var(--wp-admin-theme-color);outline-offset:calc(var(--wp-admin-border-width-focus)*-2)}.edit-site-style-book__tablist-container{background:#fff;display:flex;flex:none;padding-left:56px;width:100%}.edit-site-style-book__tabpanel{flex:1 0 auto;overflow:auto}.edit-site-editor-canvas-container{background-color:var(--wp-editor-canvas-background);height:100%}.edit-site-editor-canvas-container iframe{display:block;height:100%;width:100%}.edit-site-layout.is-full-canvas .edit-site-editor-canvas-container{padding:24px 24px 0}.edit-site-editor-canvas-container__section{background:#fff;border-radius:8px;bottom:0;left:0;overflow:hidden;position:absolute;right:0;top:0}@media not (prefers-reduced-motion){.edit-site-editor-canvas-container__section{transition:all .3s}}.edit-site-editor-canvas-container__close-button{background:#fff;left:8px;position:absolute;top:8px;z-index:2}.edit-site-post-edit{padding:24px}.dataforms-layouts-panel__field-dropdown .fields-controls__password{border-top:1px solid #e0e0e0;padding-top:16px}.edit-site-post-list__featured-image{height:100%;object-fit:cover;width:100%}.edit-site-post-list__featured-image-wrapper{border-radius:4px;height:100%;width:100%}.edit-site-post-list__featured-image-wrapper.is-layout-table .edit-site-post-list__featured-image-button,.edit-site-post-list__featured-image-wrapper.is-layout-table:not(:has(.edit-site-post-list__featured-image-button)){background-color:#f0f0f0;border-radius:4px;display:block;flex-grow:0!important;height:32px;overflow:hidden;position:relative;width:32px}.edit-site-post-list__featured-image-wrapper.is-layout-table .edit-site-post-list__featured-image-button:after,.edit-site-post-list__featured-image-wrapper.is-layout-table:not(:has(.edit-site-post-list__featured-image-button)):after{border-radius:4px;box-shadow:inset 0 0 0 1px #0000001a;content:"";height:100%;position:absolute;right:0;top:0;width:100%}.edit-site-post-list__featured-image-button{background-color:unset;border:none;border-radius:4px;box-shadow:none;box-sizing:border-box;cursor:pointer;height:100%;overflow:hidden;padding:0;width:100%}.edit-site-post-list__featured-image-button:focus-visible{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid #0000}.dataviews-view-grid__card.is-selected .edit-site-post-list__featured-image-button:after{background:rgba(var(--wp-admin-theme-color--rgb),.04);box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.edit-site-post-list__status-icon{height:24px;width:24px}.edit-site-post-list__status-icon svg{fill:currentColor;margin-right:-4px}.edit-site-resizable-frame__inner{position:relative}body:has(.edit-site-resizable-frame__inner.is-resizing){cursor:col-resize;user-select:none;-webkit-user-select:none}.edit-site-resizable-frame__inner.is-resizing:before{content:"";inset:0;position:absolute;z-index:1}.edit-site-resizable-frame__inner-content{inset:0;position:absolute;z-index:0}.edit-site-resizable-frame__handle{align-items:center;background-color:#75757566;border:0;border-radius:4px;cursor:col-resize;display:flex;height:64px;justify-content:flex-end;padding:0;position:absolute;top:calc(50% - 32px);width:4px;z-index:100}.edit-site-resizable-frame__handle:before{content:"";height:100%;position:absolute;right:100%;width:32px}.edit-site-resizable-frame__handle:after{content:"";height:100%;left:100%;position:absolute;width:32px}.edit-site-resizable-frame__handle:focus-visible{outline:2px solid #0000}.edit-site-resizable-frame__handle.is-resizing,.edit-site-resizable-frame__handle:focus,.edit-site-resizable-frame__handle:hover{background-color:var(--wp-admin-theme-color)}.edit-site-push-changes-to-global-styles-control .components-button{justify-content:center;width:100%}@media (min-width:782px){.font-library-modal.font-library-modal{width:65vw}}.font-library-modal .components-modal__header{border-bottom:none}.font-library-modal .components-modal__content{margin-bottom:70px;padding-top:0}.font-library-modal .font-library-modal__subtitle{font-size:11px;font-weight:500;text-transform:uppercase}.font-library-modal .components-navigator-screen{padding:3px}.font-library-modal__tabpanel-layout{margin-top:32px}.font-library-modal__tabpanel-layout .font-library-modal__loading{align-items:center;display:flex;height:100%;justify-content:center;padding-top:124px;position:absolute;right:0;top:0;width:100%}.font-library-modal__footer{background-color:#fff;border-top:1px solid #ddd;bottom:32px;height:70px;margin:0 -32px -32px;padding:16px 32px;position:absolute;width:100%}.font-library-modal__page-selection{font-size:11px;font-weight:500;text-transform:uppercase}@media (min-width:600px){.font-library-modal__page-selection .components-select-control__input{font-size:11px!important;font-weight:500}}.font-library-modal__fonts-title{font-size:11px;font-weight:600;margin-bottom:0;margin-top:0;text-transform:uppercase}.font-library-modal__fonts-list{margin-bottom:0;margin-top:0}.font-library-modal__fonts-list-item{margin-bottom:0}.font-library-modal__font-card{border:1px solid #e0e0e0;height:auto!important;margin-top:-1px;padding:16px;width:100%}.font-library-modal__font-card:hover{background-color:#f0f0f0}.font-library-modal__font-card:focus{position:relative}.font-library-modal__font-card .font-library-modal__font-card__name{font-weight:700}.font-library-modal__font-card .font-library-modal__font-card__count{color:#757575}.font-library-modal__font-card .font-library-modal__font-variant_demo-image{display:block;height:24px;width:auto}.font-library-modal__font-card .font-library-modal__font-variant_demo-text{flex-shrink:0;white-space:nowrap}@media not (prefers-reduced-motion){.font-library-modal__font-card .font-library-modal__font-variant_demo-text{transition:opacity .3s ease-in-out}}.font-library-modal__font-variant{border-bottom:1px solid #e0e0e0;padding-bottom:16px}.font-library-modal__tablist-container{background:#fff;border-bottom:1px solid #ddd;margin:0 -32px;padding:0 16px;position:sticky;top:0;z-index:1}.font-library-modal__tablist-container [role=tablist]{margin-bottom:-1px}.font-library-modal__upload-area{align-items:center;display:flex;height:256px!important;justify-content:center;width:100%}button.font-library-modal__upload-area{background-color:#f0f0f0}.font-library-modal__local-fonts{margin:0 auto;width:80%}.font-library-modal__local-fonts .font-library-modal__upload-area__text{color:#757575}.font-library__google-fonts-confirm{align-items:center;display:flex;justify-content:center;margin-top:64px}.font-library__google-fonts-confirm p{line-height:1.4}.font-library__google-fonts-confirm h2{font-size:1.2rem;font-weight:400}.font-library__google-fonts-confirm .components-card{padding:16px;width:400px}.font-library__google-fonts-confirm .components-button{justify-content:center;width:100%}.font-library-modal__select-all{padding:16px 17px 16px 16px}.font-library-modal__select-all .components-checkbox-control__label{padding-right:16px}.edit-site-pagination .components-button.is-tertiary{height:32px;justify-content:center;width:32px}.edit-site-global-styles-variations_item{box-sizing:border-box;cursor:pointer}.edit-site-global-styles-variations_item .edit-site-global-styles-variations_item-preview{border-radius:2px;outline:1px solid #0000001a;outline-offset:-1px;overflow:hidden;position:relative}@media not (prefers-reduced-motion){.edit-site-global-styles-variations_item .edit-site-global-styles-variations_item-preview{transition:outline .1s linear}}.edit-site-global-styles-variations_item .edit-site-global-styles-variations_item-preview.is-pill{height:32px}.edit-site-global-styles-variations_item .edit-site-global-styles-variations_item-preview.is-pill .block-editor-iframe__scale-container{overflow:hidden}.edit-site-global-styles-variations_item:not(.is-active):hover .edit-site-global-styles-variations_item-preview{outline-color:#0000004d}.edit-site-global-styles-variations_item.is-active .edit-site-global-styles-variations_item-preview,.edit-site-global-styles-variations_item:focus-visible .edit-site-global-styles-variations_item-preview{outline-color:#1e1e1e;outline-offset:1px;outline-width:var(--wp-admin-border-width-focus)}.edit-site-global-styles-variations_item:focus-visible .edit-site-global-styles-variations_item-preview{outline-color:var(--wp-admin-theme-color)}.edit-site-styles .edit-site-global-styles-screen-root{box-shadow:none}.edit-site-styles .edit-site-global-styles-screen-root>div>hr{display:none}.edit-site-styles .edit-site-global-styles-sidebar__navigator-provider .components-tools-panel{border-top:none}.edit-site-styles .edit-site-global-styles-sidebar__navigator-provider{overflow-y:auto;padding-left:0;padding-right:0}.edit-site-styles .edit-site-global-styles-sidebar__navigator-provider .edit-site-global-styles-sidebar__navigator-screen{outline:none;padding:12px}.edit-site-styles .edit-site-sidebar-button{color:#1e1e1e}::view-transition-image-pair(root){isolation:auto}::view-transition-new(root),::view-transition-old(root){animation:none;display:block;mix-blend-mode:normal}body.js #wpadminbar{display:none}body.js #wpbody{padding-top:0}body.js.appearance_page_gutenberg-template-parts,body.js.site-editor-php{background:#fff}body.js.appearance_page_gutenberg-template-parts #wpcontent,body.js.site-editor-php #wpcontent{padding-right:0}body.js.appearance_page_gutenberg-template-parts #wpbody-content,body.js.site-editor-php #wpbody-content{padding-bottom:0}body.js.appearance_page_gutenberg-template-parts #wpbody-content>div:not(.edit-site):not(#screen-meta),body.js.appearance_page_gutenberg-template-parts #wpfooter,body.js.site-editor-php #wpbody-content>div:not(.edit-site):not(#screen-meta),body.js.site-editor-php #wpfooter{display:none}body.js.appearance_page_gutenberg-template-parts .a11y-speak-region,body.js.site-editor-php .a11y-speak-region{right:-1px;top:-1px}body.js.appearance_page_gutenberg-template-parts ul#adminmenu a.wp-has-current-submenu:after,body.js.appearance_page_gutenberg-template-parts ul#adminmenu>li.current>a.current:after,body.js.site-editor-php ul#adminmenu a.wp-has-current-submenu:after,body.js.site-editor-php ul#adminmenu>li.current>a.current:after{border-left-color:#fff}body.js.appearance_page_gutenberg-template-parts .media-frame select.attachment-filters:last-of-type,body.js.site-editor-php .media-frame select.attachment-filters:last-of-type{max-width:100%;width:auto}body.js.site-editor-php{background:#1e1e1e}.edit-site{box-sizing:border-box}.edit-site *,.edit-site :after,.edit-site :before{box-sizing:inherit}.edit-site{height:100vh}@media (min-width:600px){.edit-site{bottom:0;left:0;min-height:100vh;position:fixed;right:0;top:0}}.no-js .edit-site{min-height:0;position:static}.edit-site .interface-interface-skeleton{top:0}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,114.7661290323,160.5;--wp-admin-theme-color-darker-20:#006187;--wp-admin-theme-color-darker-20--rgb:0,96.5322580645,135;--wp-admin-border-width-focus:2px}@media (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.0384615385,68.7307692308,230.4615384615;--wp-admin-theme-color-darker-20:#183ad6;--wp-admin-theme-color-darker-20--rgb:23.6923076923,58.1538461538,214.3076923077;--wp-admin-border-width-focus:2px}@media (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.3723404255,81.914893617,108.1276595745;--wp-admin-theme-color-darker-20:#064054;--wp-admin-theme-color-darker-20--rgb:5.7446808511,63.829787234,84.2553191489;--wp-admin-border-width-focus:2px}@media (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.2692307692,51.4461538462,48.2307692308;--wp-admin-theme-color-darker-20:#2b2724;--wp-admin-theme-color-darker-20--rgb:42.5384615385,38.8923076923,36.4615384615;--wp-admin-border-width-focus:2px}@media (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:69.8430232558,53.6598837209,92.8401162791;--wp-admin-theme-color-darker-20:#3a2c4d;--wp-admin-theme-color-darker-20--rgb:57.6860465116,44.3197674419,76.6802325581;--wp-admin-border-width-focus:2px}@media (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.4908256881,56.1788990826,45.0091743119;--wp-admin-theme-color-darker-20:#d02c21;--wp-admin-theme-color-darker-20--rgb:207.8348623853,44.2201834862,33.1651376147;--wp-admin-border-width-focus:2px}@media (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.0873362445,110.192139738,116.4126637555;--wp-admin-theme-color-darker-20:#4c6066;--wp-admin-theme-color-darker-20--rgb:76.1746724891,96.384279476,101.8253275109;--wp-admin-border-width-focus:2px}@media (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:216.8782608696,116.1847826087,37.6217391304;--wp-admin-theme-color-darker-20:#c36922;--wp-admin-theme-color-darker-20--rgb:195.147826087,104.5434782609,33.852173913;--wp-admin-border-width-focus:2px}@media (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 e5d10c5c77..07a18df506 100644
--- a/wp-includes/css/dist/edit-site/style.css
+++ b/wp-includes/css/dist/edit-site/style.css
@@ -1176,6 +1176,7 @@ div.dataviews-view-list{
   display:flex;
   flex:0 0 auto;
   gap:4px;
+  white-space:nowrap;
   width:max-content;
 }

diff --git a/wp-includes/css/dist/edit-site/style.min.css b/wp-includes/css/dist/edit-site/style.min.css
index 9fc02d68de..f35be6a723 100644
--- a/wp-includes/css/dist/edit-site/style.min.css
+++ b/wp-includes/css/dist/edit-site/style.min.css
@@ -1 +1 @@
-@charset "UTF-8";.admin-ui-page{background-color:#fff;color:#2f2f2f;container:admin-ui-page/inline-size;display:flex;flex-flow:column;height:100%;position:relative;z-index:1}@media not (prefers-reduced-motion){.admin-ui-page{transition:width .2s ease-out}}.admin-ui-page__header{background:#fff;border-bottom:1px solid #f0f0f0;padding:16px 48px;position:sticky;top:0}@container (max-width: 430px){.admin-ui-page__header{padding:16px 24px}}.admin-ui-page__header-subtitle{color:#757575;font-family:-apple-system,"system-ui",Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:400;line-height:20px;margin:0;padding-block-end:8px}.admin-ui-page__content{display:flex;flex-direction:column;flex-grow:1;overflow:auto}.admin-ui-page__content.has-padding{padding:16px 20px}@container (max-width: 430px){.admin-ui-page__content.has-padding{padding:16px 24px}}.show-icon-labels .admin-ui-page__header-actions .components-button.has-icon{padding:0 8px;width:auto}.show-icon-labels .admin-ui-page__header-actions .components-button.has-icon svg{display:none}.show-icon-labels .admin-ui-page__header-actions .components-button.has-icon:after{content:attr(aria-label);font-size:12px}.dataviews-picker-wrapper,.dataviews-wrapper{box-sizing:border-box;container:dataviews-wrapper/inline-size;display:flex;flex-direction:column;font-size:13px;height:100%;line-height:1.4;overflow:auto;scroll-padding-bottom:64px}.dataviews-filters__container,.dataviews__view-actions{box-sizing:border-box;flex-shrink:0;left:0;padding:16px 48px;position:sticky}@media not (prefers-reduced-motion){.dataviews-filters__container,.dataviews__view-actions{transition:padding .1s ease-out}}.dataviews-loading,.dataviews-no-results{align-items:center;display:flex;flex-grow:1;justify-content:center;padding:0 48px}@media not (prefers-reduced-motion){.dataviews-loading,.dataviews-no-results{transition:padding .1s ease-out}}.dataviews-loading-more{text-align:center}@container (max-width: 430px){.dataviews-filters__container,.dataviews__view-actions{padding:12px 24px}.dataviews-loading,.dataviews-no-results{padding-left:24px;padding-right:24px}}.dataviews-title-field{font-size:13px;font-weight:500;width:100%}.dataviews-title-field,.dataviews-title-field a{color:#2f2f2f;text-overflow:ellipsis;white-space:nowrap}.dataviews-title-field a{display:block;flex-grow:0;overflow:hidden;text-decoration:none}.dataviews-title-field a:hover{color:var(--wp-admin-theme-color)}.dataviews-title-field a:focus{border-radius:2px;box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color,#007cba);color:var(--wp-admin-theme-color--rgb)}.dataviews-title-field button.components-button.is-link{color:#1e1e1e;display:block;font-weight:inherit;overflow:hidden;text-decoration:none;text-overflow:ellipsis;white-space:nowrap;width:100%}.dataviews-title-field button.components-button.is-link:hover{color:var(--wp-admin-theme-color)}.dataviews-title-field--clickable{color:#2f2f2f;cursor:pointer}.dataviews-title-field--clickable:hover{color:var(--wp-admin-theme-color)}.dataviews-title-field--clickable:focus{border-radius:2px;box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color,#007cba);color:var(--wp-admin-theme-color--rgb)}.components-card__body:has(>.dataviews-picker-wrapper),.components-card__body:has(>.dataviews-wrapper){overflow:hidden;padding:8px 0 0}.components-card__body:has(>.dataviews-picker-wrapper) .dataviews-filters__container,.components-card__body:has(>.dataviews-picker-wrapper) .dataviews-footer,.components-card__body:has(>.dataviews-picker-wrapper) .dataviews-loading,.components-card__body:has(>.dataviews-picker-wrapper) .dataviews-no-results,.components-card__body:has(>.dataviews-picker-wrapper) .dataviews-view-grid,.components-card__body:has(>.dataviews-picker-wrapper) .dataviews__view-actions,.components-card__body:has(>.dataviews-wrapper) .dataviews-filters__container,.components-card__body:has(>.dataviews-wrapper) .dataviews-footer,.components-card__body:has(>.dataviews-wrapper) .dataviews-loading,.components-card__body:has(>.dataviews-wrapper) .dataviews-no-results,.components-card__body:has(>.dataviews-wrapper) .dataviews-view-grid,.components-card__body:has(>.dataviews-wrapper) .dataviews__view-actions{padding-inline:24px}.components-card__body:has(>.dataviews-picker-wrapper) .dataviews-view-table tr td:first-child,.components-card__body:has(>.dataviews-picker-wrapper) .dataviews-view-table tr th:first-child,.components-card__body:has(>.dataviews-wrapper) .dataviews-view-table tr td:first-child,.components-card__body:has(>.dataviews-wrapper) .dataviews-view-table tr th:first-child{padding-inline-start:24px}.components-card__body:has(>.dataviews-picker-wrapper) .dataviews-view-table tr td:last-child,.components-card__body:has(>.dataviews-picker-wrapper) .dataviews-view-table tr th:last-child,.components-card__body:has(>.dataviews-wrapper) .dataviews-view-table tr td:last-child,.components-card__body:has(>.dataviews-wrapper) .dataviews-view-table tr th:last-child{padding-inline-end:24px}.dataviews-bulk-actions-footer__item-count{color:#1e1e1e;font-size:11px;font-weight:500;text-transform:uppercase}.dataviews-bulk-actions-footer__container{margin-right:auto;min-height:32px}.dataviews-filters__button{position:relative}.dataviews-filters__container{padding-top:0}.dataviews-filters__reset-button.dataviews-filters__reset-button[aria-disabled=true],.dataviews-filters__reset-button.dataviews-filters__reset-button[aria-disabled=true]:hover{opacity:0}.dataviews-filters__reset-button.dataviews-filters__reset-button[aria-disabled=true]:focus{opacity:1}.dataviews-filters__summary-popover{font-size:13px;line-height:1.4}.dataviews-filters__summary-popover .components-popover__content{border-radius:4px;max-width:250px;min-width:230px;width:100%}.dataviews-filters__summary-popover.components-dropdown__content .components-popover__content{padding:0}.dataviews-filters__summary-operators-container{padding:8px 16px}.dataviews-filters__summary-operators-container:has(+.dataviews-filters__search-widget-listbox),.dataviews-filters__summary-operators-container:has(+.dataviews-filters__search-widget-no-elements),.dataviews-filters__summary-operators-container:has(+.dataviews-filters__user-input-widget){border-bottom:1px solid #e0e0e0}.dataviews-filters__summary-operators-container:empty{display:none}.dataviews-filters__summary-operators-container .dataviews-filters__summary-operators-filter-name{color:#757575;flex-shrink:0;max-width:calc(100% - 55px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dataviews-filters__summary-operators-container .dataviews-filters__summary-operators-filter-select{overflow:hidden;white-space:nowrap;width:100%}.dataviews-filters__summary-chip-container{position:relative;white-space:pre-wrap}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip{align-items:center;background:#f0f0f0;border:1px solid #0000;border-radius:16px;box-sizing:border-box;color:#2f2f2f;cursor:pointer;display:flex;min-height:32px;padding:4px 12px;position:relative}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.is-not-clickable{cursor:default}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.has-reset{padding-inline-end:28px}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip:focus-visible,.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip:hover:not(.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.is-not-clickable),.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip[aria-expanded=true]{background:#e0e0e0;color:#1e1e1e}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.has-values{background:rgba(var(--wp-admin-theme-color--rgb),.04);color:var(--wp-admin-theme-color)}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.has-values:hover,.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.has-values[aria-expanded=true]{background:rgba(var(--wp-admin-theme-color--rgb),.12)}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip:focus-visible{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:none}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip .dataviews-filters-__summary-filter-text-name{font-weight:500}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove{align-items:center;background:#0000;border:0;border-radius:50%;cursor:pointer;display:flex;height:24px;justify-content:center;padding:0;position:absolute;right:4px;top:50%;transform:translateY(-50%);width:24px}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove svg{fill:#757575}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove:focus,.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove:hover{background:#e0e0e0}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove:focus svg,.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove:hover svg{fill:#1e1e1e}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove.has-values svg{fill:var(--wp-admin-theme-color)}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove.has-values:hover{background:rgba(var(--wp-admin-theme-color--rgb),.08)}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove:focus-visible{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:none}.dataviews-filters__search-widget-filter-combobox-list{border-top:1px solid #e0e0e0;max-height:184px;overflow:auto;padding:4px}.dataviews-filters__search-widget-filter-combobox-list .dataviews-filters__search-widget-filter-combobox-item-value [data-user-value]{font-weight:600}.dataviews-filters__search-widget-listbox{overflow:auto;padding:4px}.dataviews-filters__search-widget-listitem{align-items:center;border-radius:2px;box-sizing:border-box;cursor:default;display:flex;font-family:-apple-system,"system-ui",Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:400;gap:8px;line-height:20px;min-height:32px;padding:4px 12px}.dataviews-filters__search-widget-listitem:last-child{margin-block-end:0}.dataviews-filters__search-widget-listitem:focus,.dataviews-filters__search-widget-listitem:hover,.dataviews-filters__search-widget-listitem[data-active-item]{background-color:var(--wp-admin-theme-color);color:#fff}.dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-description,.dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-description,.dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-description{color:#fff}.dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-single-selection,.dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-single-selection,.dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-single-selection{background:#fff;border-color:var(--wp-admin-theme-color-darker-20,#183ad6)}.dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-single-selection.is-selected,.dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-single-selection.is-selected,.dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-single-selection.is-selected{background:var(--wp-admin-theme-color-darker-20,#183ad6);border-color:var(--wp-admin-theme-color-darker-20,#183ad6)}.dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-multi-selection,.dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-multi-selection,.dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-multi-selection{border-color:var(--wp-admin-theme-color-darker-20,#183ad6)}.dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-multi-selection.is-selected,.dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-multi-selection.is-selected,.dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-multi-selection.is-selected{background:var(--wp-admin-theme-color-darker-20,#183ad6);border-color:var(--wp-admin-theme-color-darker-20,#183ad6)}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-description{color:#757575;display:block;font-size:12px;line-height:16px;overflow:hidden;text-overflow:ellipsis}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection{border:1px solid #1e1e1e;border-radius:50%;height:24px;margin-right:12px;max-width:24px;min-width:24px;position:relative;transition:none;width:24px}@media not (prefers-reduced-motion){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection{transition:box-shadow .1s linear}}@media (min-width:600px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection{height:16px;max-width:16px;min-width:16px;width:16px}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection:checked:before{background-color:#fff;border:4px solid #fff;box-sizing:inherit;height:12px;left:50%;margin:0;position:absolute;top:50%;transform:translate(-50%,-50%);width:12px}@media (min-width:600px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection:checked:before{height:8px;width:8px}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color);outline:2px solid #0000}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection:checked{background:var(--wp-admin-theme-color);border:none}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection{margin:0;padding:0}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection.is-selected{background:var(--wp-admin-theme-color,#3858e9);border-color:var(--wp-admin-theme-color,#3858e9)}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection.is-selected:before{background-color:#fff;border:4px solid #fff;border-radius:50%;box-sizing:inherit;content:"";height:12px;left:50%;margin:0;position:absolute;top:50%;transform:translate(-50%,-50%);width:12px}@media (min-width:600px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection.is-selected:before{height:8px;width:8px}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection{--checkbox-size:24px;border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 #0000;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:normal;margin-right:12px;padding:6px 8px;transition:none}@media not (prefers-reduced-motion){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection{transition:box-shadow .1s linear}}@media (min-width:600px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection{font-size:13px;line-height:normal}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color)}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection::-webkit-input-placeholder{color:#1e1e1e9e}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection::-moz-placeholder{color:#1e1e1e9e}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:-ms-input-placeholder{color:#1e1e1e9e}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color);outline:2px solid #0000}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:checked{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:checked::-ms-check{opacity:0}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:checked:before,.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-checked=mixed]:before{color:#fff;margin:-3px -5px}@media (min-width:782px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:checked:before,.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-checked=mixed]:before{margin:-4px 0 0 -5px}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-checked=mixed]{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-checked=mixed]:before{content:"\f460";display:inline-block;float:left;font:normal 30px/1 dashicons;vertical-align:middle;width:16px;speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (min-width:782px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-checked=mixed]:before{float:none;font-size:21px}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:disabled,.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-disabled=true]{background:#f0f0f0;border-color:#ddd;cursor:default;opacity:1}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection{background:#fff;color:#1e1e1e;height:var(--checkbox-size);margin:0;padding:0;position:relative;width:var(--checkbox-size)}@media (min-width:600px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection{--checkbox-size:16px}}@media not (prefers-reduced-motion){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection{transition:border-color .1s ease-in-out}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection.is-selected{background:var(--wp-admin-theme-color,#3858e9);border-color:var(--wp-admin-theme-color,#3858e9)}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection.is-selected svg{--checkmark-size:var(--checkbox-size);fill:#fff;height:var(--checkmark-size);left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:var(--checkmark-size)}@media (min-width:600px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection.is-selected svg{--checkmark-size:calc(var(--checkbox-size) + 4px)}}.dataviews-filters__search-widget-filter-combobox__wrapper{padding:8px;position:relative}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input{border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 #0000;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;line-height:normal;padding:6px 8px}@media not (prefers-reduced-motion){.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input{transition:box-shadow .1s linear}}@media (min-width:600px){.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input{font-size:13px;line-height:normal}}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid #0000}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-webkit-input-placeholder{color:#1e1e1e9e}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-moz-placeholder{color:#1e1e1e9e}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input:-ms-input-placeholder{color:#1e1e1e9e}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input{display:block;font-size:16px;height:32px;margin-left:0;margin-right:0;padding:0 8px 0 32px;width:100%}@media (min-width:600px){.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input{font-size:13px}}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input:focus{background:#fff;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::placeholder{color:#757575}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-webkit-search-cancel-button,.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-webkit-search-decoration,.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-webkit-search-results-button,.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-webkit-search-results-decoration{-webkit-appearance:none}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__icon{align-items:center;bottom:0;display:flex;inset-inline-start:12px;justify-content:center;position:absolute;top:0;width:24px}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__icon:dir(ltr){transform:scaleX(-1)}.dataviews-filters__container-visibility-toggle{flex-shrink:0;position:relative}.dataviews-filters-toggle__count{background:var(--wp-admin-theme-color,#3858e9);border-radius:8px;box-sizing:border-box;color:#fff;font-size:11px;height:16px;line-height:16px;min-width:16px;outline:var(--wp-admin-border-width-focus) solid #fff;padding:0 4px;position:absolute;right:0;text-align:center;top:0;transform:translate(50%,-50%)}.dataviews-search{width:fit-content}.dataviews-filters__user-input-widget{padding:16px}.dataviews-filters__user-input-widget .components-input-control__prefix{padding-left:8px}.dataviews-filters__search-widget-no-elements{align-items:center;display:flex;justify-content:center;padding:16px}.dataviews-footer{background-color:#fff;border-top:1px solid #f0f0f0;bottom:0;flex-shrink:0;left:0;padding:12px 48px;position:sticky}@media not (prefers-reduced-motion){.dataviews-footer{transition:padding .1s ease-out}}.dataviews-footer{z-index:2}@container (max-width: 430px){.dataviews-footer{padding:12px 24px}}@container (max-width: 560px){.dataviews-footer{flex-direction:column!important}.dataviews-footer .dataviews-bulk-actions-footer__container{width:100%}.dataviews-footer .dataviews-bulk-actions-footer__item-count{flex-grow:1}.dataviews-footer .dataviews-pagination{justify-content:space-between;width:100%}}.dataviews-pagination__page-select{font-size:11px;font-weight:500;text-transform:uppercase}@media (min-width:600px){.dataviews-pagination__page-select .components-select-control__input{font-size:11px!important;font-weight:500}}.dataviews-action-modal{z-index:1000001}.dataviews-picker-footer__bulk-selection{align-self:flex-start;height:32px}.dataviews-picker-footer__actions{align-self:flex-end}.dataviews-selection-checkbox{--checkbox-input-size:24px}@media (min-width:600px){.dataviews-selection-checkbox{--checkbox-input-size:16px}}.dataviews-selection-checkbox{flex-shrink:0;line-height:0}.dataviews-selection-checkbox .components-checkbox-control__input-container{margin:0}.dataviews-view-config{container-type:inline-size;font-size:13px;line-height:1.4;width:320px}.dataviews-config__popover.is-expanded .dataviews-config__popover-content-wrapper{height:100%;overflow-y:scroll}.dataviews-config__popover.is-expanded .dataviews-config__popover-content-wrapper .dataviews-view-config{width:auto}.dataviews-view-config__sort-direction .components-toggle-group-control-option-base{text-transform:uppercase}.dataviews-settings-section__title.dataviews-settings-section__title{font-size:15px;line-height:24px}.dataviews-settings-section__sidebar{grid-column:span 4}.dataviews-settings-section__content,.dataviews-settings-section__content>*{grid-column:span 8}.dataviews-settings-section__content .is-divided-in-two{display:contents}.dataviews-settings-section__content .is-divided-in-two>*{grid-column:span 4}.dataviews-settings-section:has(.dataviews-settings-section__content:empty){display:none}@container (max-width: 500px){.dataviews-settings-section.dataviews-settings-section{grid-template-columns:repeat(2,1fr)}.dataviews-settings-section.dataviews-settings-section .dataviews-settings-section__content,.dataviews-settings-section.dataviews-settings-section .dataviews-settings-section__sidebar{grid-column:span 2}}.dataviews-field-control__field{height:32px}.dataviews-field-control__actions{position:absolute;top:-9999em}.dataviews-field-control__actions.dataviews-field-control__actions{gap:4px}.dataviews-field-control__field.is-interacting .dataviews-field-control__actions,.dataviews-field-control__field:focus-within .dataviews-field-control__actions,.dataviews-field-control__field:hover .dataviews-field-control__actions{position:unset;top:unset}.dataviews-field-control__icon{display:flex;width:24px}.dataviews-field-control__label-sub-label-container{flex-grow:1}.dataviews-field-control__label{display:block}.dataviews-field-control__sub-label{color:#757575;font-size:11px;font-style:normal;margin-bottom:0;margin-top:8px}.dataviews-view-grid-items{container-type:inline-size;display:grid;gap:32px;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));grid-template-rows:max-content;margin-bottom:auto;padding:0 48px 24px}@container (max-width: 430px){.dataviews-view-grid-items{padding-left:24px;padding-right:24px}}@media not (prefers-reduced-motion){.dataviews-view-grid-items{transition:padding .1s ease-out}}.dataviews-view-grid .dataviews-view-grid__card{height:100%;justify-content:flex-start;position:relative}.dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__title-actions{padding:8px 0 4px}.dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__title-field{align-content:center;min-height:24px;overflow:hidden;text-align:start}.dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__title-field--clickable{width:fit-content}.dataviews-view-grid .dataviews-view-grid__card.is-selected .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-value{color:#1e1e1e}.dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__media:focus:after,.dataviews-view-grid .dataviews-view-grid__card.is-selected .dataviews-view-grid__media:after{background-color:rgba(var(--wp-admin-theme-color--rgb),.08)}.dataviews-view-grid .dataviews-view-grid__card.is-selected .dataviews-view-grid__media:after{box-shadow:inset 0 0 0 1px var(--wp-admin-theme-color)}.dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__media:focus:after{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.dataviews-view-grid .dataviews-view-grid__media{aspect-ratio:1/1;background-color:#fff;border-radius:4px;overflow:hidden;position:relative;width:100%}.dataviews-view-grid .dataviews-view-grid__media img{height:100%;object-fit:cover;width:100%}.dataviews-view-grid .dataviews-view-grid__media:after{border-radius:4px;box-shadow:inset 0 0 0 1px #0000001a;content:"";height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%}.dataviews-view-grid .dataviews-view-grid__fields{font-size:12px;line-height:16px;position:relative}.dataviews-view-grid .dataviews-view-grid__fields:not(:empty){padding:0 0 12px}.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field-value:not(:empty){line-height:20px;min-height:24px;padding-top:2px}.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field{align-items:center;min-height:24px}.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-name{color:#757575;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:35%}.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:65%}.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field:not(:has(.dataviews-view-grid__field-value:not(:empty))){display:none}.dataviews-view-grid .dataviews-view-grid__badge-fields:not(:empty){padding-bottom:12px}.dataviews-view-grid__field-value:empty,.dataviews-view-grid__field:empty{display:none}.dataviews-view-grid__card .dataviews-selection-checkbox{left:8px;opacity:0;position:absolute;top:-9999em;z-index:1}@media not (prefers-reduced-motion){.dataviews-view-grid__card .dataviews-selection-checkbox{transition:opacity .1s linear}}@media (hover:none){.dataviews-view-grid__card .dataviews-selection-checkbox{opacity:1;top:8px}}.dataviews-view-grid__card.is-selected .dataviews-selection-checkbox,.dataviews-view-grid__card:focus-within .dataviews-selection-checkbox,.dataviews-view-grid__card:hover .dataviews-selection-checkbox{opacity:1;top:8px}.dataviews-view-grid__card .dataviews-view-grid__media-actions{opacity:0;position:absolute;right:4px;top:4px}.dataviews-view-grid__card .dataviews-view-grid__media-actions .dataviews-all-actions-button{background-color:#fff}@media not (prefers-reduced-motion){.dataviews-view-grid__card .dataviews-view-grid__media-actions{transition:opacity .1s linear}}@media (hover:none){.dataviews-view-grid__card .dataviews-view-grid__media-actions{opacity:1;top:4px}}.dataviews-view-grid__card .dataviews-view-grid__media-actions:has(.dataviews-all-actions-button[aria-expanded=true]),.dataviews-view-grid__card:focus-within .dataviews-view-grid__media-actions,.dataviews-view-grid__card:hover .dataviews-view-grid__media-actions{opacity:1}.dataviews-view-grid__media--clickable{cursor:pointer}.dataviews-view-grid__group-header{color:#1e1e1e;container-type:inline-size;font-size:15px;font-weight:500;margin:0 0 8px;padding:0 48px}@container (max-width: 430px){.dataviews-view-grid__group-header{padding-left:24px;padding-right:24px}}div.dataviews-view-list{list-style-type:none}.dataviews-view-list{margin:0 0 auto}.dataviews-view-list div[role=article],.dataviews-view-list div[role=row]{border-top:1px solid #f0f0f0;margin:0}.dataviews-view-list div[role=article] .dataviews-view-list__item-wrapper,.dataviews-view-list div[role=row] .dataviews-view-list__item-wrapper{box-sizing:border-box;padding:16px 24px;position:relative}.dataviews-view-list div[role=article] .dataviews-view-list__item-actions,.dataviews-view-list div[role=row] .dataviews-view-list__item-actions{display:flex;flex:0 0 auto;gap:4px;width:max-content}.dataviews-view-list div[role=article] .dataviews-view-list__item-actions .components-button,.dataviews-view-list div[role=row] .dataviews-view-list__item-actions .components-button{position:relative;z-index:1}.dataviews-view-list div[role=article] .dataviews-view-list__item-actions>div,.dataviews-view-list div[role=row] .dataviews-view-list__item-actions>div{height:24px}.dataviews-view-list div[role=article] .dataviews-view-list__item-actions>:not(:last-child),.dataviews-view-list div[role=row] .dataviews-view-list__item-actions>:not(:last-child){flex:0;overflow:hidden;width:0}.dataviews-view-list div[role=article]:where(.is-selected,.is-hovered,:focus-within) .dataviews-view-list__item-actions>:not(:last-child),.dataviews-view-list div[role=row]:where(.is-selected,.is-hovered,:focus-within) .dataviews-view-list__item-actions>:not(:last-child){flex-basis:min-content;overflow:unset;width:auto}@media (hover:none){.dataviews-view-list div[role=article] .dataviews-view-list__item-actions>:not(:last-child),.dataviews-view-list div[role=row] .dataviews-view-list__item-actions>:not(:last-child){flex-basis:min-content;overflow:unset;width:auto}}.dataviews-view-list div[role=article].is-selected.is-selected,.dataviews-view-list div[role=article].is-selected.is-selected+div[role=article],.dataviews-view-list div[role=article].is-selected.is-selected+div[role=row],.dataviews-view-list div[role=row].is-selected.is-selected,.dataviews-view-list div[role=row].is-selected.is-selected+div[role=article],.dataviews-view-list div[role=row].is-selected.is-selected+div[role=row]{border-top:1px solid rgba(var(--wp-admin-theme-color--rgb),.12)}.dataviews-view-list div[role=article]:not(.is-selected) .dataviews-view-list__title-field,.dataviews-view-list div[role=row]:not(.is-selected) .dataviews-view-list__title-field{color:#1e1e1e}.dataviews-view-list div[role=article]:not(.is-selected).is-hovered,.dataviews-view-list div[role=article]:not(.is-selected):focus-within,.dataviews-view-list div[role=article]:not(.is-selected):hover,.dataviews-view-list div[role=row]:not(.is-selected).is-hovered,.dataviews-view-list div[role=row]:not(.is-selected):focus-within,.dataviews-view-list div[role=row]:not(.is-selected):hover{background-color:#f8f8f8;color:var(--wp-admin-theme-color)}.dataviews-view-list div[role=article]:not(.is-selected).is-hovered .dataviews-view-list__fields,.dataviews-view-list div[role=article]:not(.is-selected).is-hovered .dataviews-view-list__title-field,.dataviews-view-list div[role=article]:not(.is-selected):focus-within .dataviews-view-list__fields,.dataviews-view-list div[role=article]:not(.is-selected):focus-within .dataviews-view-list__title-field,.dataviews-view-list div[role=article]:not(.is-selected):hover .dataviews-view-list__fields,.dataviews-view-list div[role=article]:not(.is-selected):hover .dataviews-view-list__title-field,.dataviews-view-list div[role=row]:not(.is-selected).is-hovered .dataviews-view-list__fields,.dataviews-view-list div[role=row]:not(.is-selected).is-hovered .dataviews-view-list__title-field,.dataviews-view-list div[role=row]:not(.is-selected):focus-within .dataviews-view-list__fields,.dataviews-view-list div[role=row]:not(.is-selected):focus-within .dataviews-view-list__title-field,.dataviews-view-list div[role=row]:not(.is-selected):hover .dataviews-view-list__fields,.dataviews-view-list div[role=row]:not(.is-selected):hover .dataviews-view-list__title-field{color:var(--wp-admin-theme-color)}.dataviews-view-list div[role=article].is-selected .dataviews-view-list__item-wrapper,.dataviews-view-list div[role=article].is-selected:focus-within .dataviews-view-list__item-wrapper,.dataviews-view-list div[role=row].is-selected .dataviews-view-list__item-wrapper,.dataviews-view-list div[role=row].is-selected:focus-within .dataviews-view-list__item-wrapper{background-color:rgba(var(--wp-admin-theme-color--rgb),.04);color:#1e1e1e}.dataviews-view-list div[role=article].is-selected .dataviews-view-list__item-wrapper .dataviews-view-list__fields,.dataviews-view-list div[role=article].is-selected .dataviews-view-list__item-wrapper .dataviews-view-list__title-field,.dataviews-view-list div[role=article].is-selected:focus-within .dataviews-view-list__item-wrapper .dataviews-view-list__fields,.dataviews-view-list div[role=article].is-selected:focus-within .dataviews-view-list__item-wrapper .dataviews-view-list__title-field,.dataviews-view-list div[role=row].is-selected .dataviews-view-list__item-wrapper .dataviews-view-list__fields,.dataviews-view-list div[role=row].is-selected .dataviews-view-list__item-wrapper .dataviews-view-list__title-field,.dataviews-view-list div[role=row].is-selected:focus-within .dataviews-view-list__item-wrapper .dataviews-view-list__fields,.dataviews-view-list div[role=row].is-selected:focus-within .dataviews-view-list__item-wrapper .dataviews-view-list__title-field{color:var(--wp-admin-theme-color)}.dataviews-view-list .dataviews-view-list__item{appearance:none;background:none;border:none;cursor:pointer;inset:0;padding:0;position:absolute;scroll-margin:8px 0;z-index:1}.dataviews-view-list .dataviews-view-list__item:focus-visible{outline:none}.dataviews-view-list .dataviews-view-list__item:focus-visible:before{border-radius:2px;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);content:"";inset:var(--wp-admin-border-width-focus);outline:2px solid #0000;position:absolute}.dataviews-view-list .dataviews-view-list__title-field{flex:1;line-height:24px;min-height:24px;overflow:hidden}.dataviews-view-list .dataviews-view-list__title-field:has(a,button){z-index:1}.dataviews-view-list .dataviews-view-list__media-wrapper{background-color:#fff;border-radius:4px;flex-shrink:0;height:52px;overflow:hidden;position:relative;width:52px}.dataviews-view-list .dataviews-view-list__media-wrapper img{height:100%;object-fit:cover;width:100%}.dataviews-view-list .dataviews-view-list__media-wrapper:after{border-radius:4px;box-shadow:inset 0 0 0 1px #0000001a;content:"";height:100%;left:0;position:absolute;top:0;width:100%}.dataviews-view-list .dataviews-view-list__field-wrapper{flex-grow:1;min-height:52px}.dataviews-view-list .dataviews-view-list__fields{color:#757575;display:flex;flex-wrap:wrap;font-size:12px;gap:12px;row-gap:4px}.dataviews-view-list .dataviews-view-list__fields .dataviews-view-list__field:has(.dataviews-view-list__field-value:empty),.dataviews-view-list .dataviews-view-list__fields:empty{display:none}.dataviews-view-list .dataviews-view-list__fields .dataviews-view-list__field-value{align-items:center;display:flex;line-height:20px;min-height:24px}.dataviews-view-list+.dataviews-pagination{justify-content:space-between}.dataviews-view-list__group-header{color:#1e1e1e;font-size:15px;font-weight:500;margin:0 0 8px;padding:0 24px}.dataviews-view-table{border-collapse:collapse;border-color:inherit;color:#757575;margin-bottom:auto;position:relative;text-indent:0;width:100%}.dataviews-view-table th{color:#1e1e1e;font-size:13px;font-weight:400;text-align:left}.dataviews-view-table td,.dataviews-view-table th{padding:12px}.dataviews-view-table td.dataviews-view-table__actions-column,.dataviews-view-table th.dataviews-view-table__actions-column{text-align:right}.dataviews-view-table td.dataviews-view-table__actions-column--sticky,.dataviews-view-table th.dataviews-view-table__actions-column--sticky{background-color:#fff;position:sticky;right:0}.dataviews-view-table td.dataviews-view-table__actions-column--stuck:after,.dataviews-view-table th.dataviews-view-table__actions-column--stuck:after{background-color:#f0f0f0;bottom:0;content:"";display:block;left:0;position:absolute;top:0;width:1px}.dataviews-view-table td.dataviews-view-table__checkbox-column,.dataviews-view-table th.dataviews-view-table__checkbox-column{padding-right:0}.dataviews-view-table td.dataviews-view-table__checkbox-column .dataviews-view-table__cell-content-wrapper,.dataviews-view-table th.dataviews-view-table__checkbox-column .dataviews-view-table__cell-content-wrapper{max-width:auto;min-width:auto}.dataviews-view-table tr{border-top:1px solid #f0f0f0}.dataviews-view-table tr .dataviews-view-table-header-button{gap:4px}.dataviews-view-table tr td:first-child,.dataviews-view-table tr th:first-child{padding-left:48px}.dataviews-view-table tr td:first-child .dataviews-view-table-header-button,.dataviews-view-table tr th:first-child .dataviews-view-table-header-button{margin-left:-8px}.dataviews-view-table tr td:last-child,.dataviews-view-table tr th:last-child{padding-right:48px}.dataviews-view-table tr:last-child{border-bottom:0}.dataviews-view-table tr.is-hovered,.dataviews-view-table tr.is-hovered .dataviews-view-table__actions-column--sticky{background-color:#f8f8f8}.dataviews-view-table tr .components-checkbox-control__input.components-checkbox-control__input{opacity:0}.dataviews-view-table tr .components-checkbox-control__input.components-checkbox-control__input:checked,.dataviews-view-table tr .components-checkbox-control__input.components-checkbox-control__input:focus,.dataviews-view-table tr .components-checkbox-control__input.components-checkbox-control__input:indeterminate{opacity:1}.dataviews-view-table tr .dataviews-item-actions .components-button:not(.dataviews-all-actions-button){opacity:0}.dataviews-view-table tr.is-hovered .components-checkbox-control__input,.dataviews-view-table tr.is-hovered .dataviews-item-actions .components-button:not(.dataviews-all-actions-button),.dataviews-view-table tr:focus-within .components-checkbox-control__input,.dataviews-view-table tr:focus-within .dataviews-item-actions .components-button:not(.dataviews-all-actions-button),.dataviews-view-table tr:hover .components-checkbox-control__input,.dataviews-view-table tr:hover .dataviews-item-actions .components-button:not(.dataviews-all-actions-button){opacity:1}@media (hover:none){.dataviews-view-table tr .components-checkbox-control__input.components-checkbox-control__input,.dataviews-view-table tr .dataviews-item-actions .components-button:not(.dataviews-all-actions-button){opacity:1}}.dataviews-view-table tr.is-selected{background-color:rgba(var(--wp-admin-theme-color--rgb),.04);color:#757575}.dataviews-view-table tr.is-selected,.dataviews-view-table tr.is-selected+tr{border-top:1px solid rgba(var(--wp-admin-theme-color--rgb),.12)}.dataviews-view-table tr.is-selected:hover{background-color:rgba(var(--wp-admin-theme-color--rgb),.08)}.dataviews-view-table tr.is-selected .dataviews-view-table__actions-column--sticky{background-color:color-mix(in srgb,rgb(var(--wp-admin-theme-color--rgb)) 4%,#fff)}.dataviews-view-table tr.is-selected:hover .dataviews-view-table__actions-column--sticky{background-color:color-mix(in srgb,rgb(var(--wp-admin-theme-color--rgb)) 8%,#fff)}.dataviews-view-table thead{inset-block-start:0;position:sticky;z-index:1}.dataviews-view-table thead tr{border:0}.dataviews-view-table thead tr .components-checkbox-control__input.components-checkbox-control__input{opacity:1}.dataviews-view-table thead th{background-color:#fff;font-size:11px;font-weight:500;padding-bottom:8px;padding-left:12px;padding-top:8px;text-transform:uppercase}.dataviews-view-table thead th:has(.dataviews-view-table-header-button):not(:first-child){padding-left:4px}.dataviews-view-table tbody td{vertical-align:top}.dataviews-view-table tbody .dataviews-view-table__cell-content-wrapper{align-items:center;display:flex;min-height:32px;white-space:nowrap}.dataviews-view-table tbody .dataviews-view-table__cell-content-wrapper.dataviews-view-table__cell-align-end{justify-content:flex-end}.dataviews-view-table tbody .dataviews-view-table__cell-content-wrapper.dataviews-view-table__cell-align-center{justify-content:center}.dataviews-view-table tbody .components-v-stack>.dataviews-view-table__cell-content-wrapper:not(:first-child){min-height:0}.dataviews-view-table .dataviews-view-table-header-button{font-size:11px;font-weight:500;padding:4px 8px;text-transform:uppercase}.dataviews-view-table .dataviews-view-table-header-button:not(:hover){color:#1e1e1e}.dataviews-view-table .dataviews-view-table-header-button span{speak:none}.dataviews-view-table .dataviews-view-table-header-button span:empty{display:none}.dataviews-view-table .dataviews-view-table-header{padding-left:4px}.dataviews-view-table .dataviews-view-table__actions-column{white-space:nowrap;width:auto}.dataviews-view-table:has(tr.is-selected) .components-checkbox-control__input{opacity:1}.dataviews-view-table.has-compact-density thead th:has(.dataviews-view-table-header-button):not(:first-child){padding-left:0}.dataviews-view-table.has-compact-density td,.dataviews-view-table.has-compact-density th{padding:4px 8px}.dataviews-view-table.has-comfortable-density td,.dataviews-view-table.has-comfortable-density th{padding:16px 12px}.dataviews-view-table.has-comfortable-density td.dataviews-view-table__checkbox-column,.dataviews-view-table.has-comfortable-density th.dataviews-view-table__checkbox-column,.dataviews-view-table.has-compact-density td.dataviews-view-table__checkbox-column,.dataviews-view-table.has-compact-density th.dataviews-view-table__checkbox-column{padding-right:0}@container (max-width: 430px){.dataviews-view-table tr td:first-child,.dataviews-view-table tr th:first-child{padding-left:24px}.dataviews-view-table tr td:last-child,.dataviews-view-table tr th:last-child{padding-right:24px}}.dataviews-view-table-selection-checkbox{--checkbox-input-size:24px}@media (min-width:600px){.dataviews-view-table-selection-checkbox{--checkbox-input-size:16px}}.dataviews-column-primary__media{background-color:#fff;border-radius:4px;flex-shrink:0;max-width:60px;overflow:hidden;position:relative}.dataviews-column-primary__media img{height:100%;object-fit:cover;width:100%}.dataviews-column-primary__media:after{border-radius:4px;box-shadow:inset 0 0 0 1px #0000001a;content:"";height:100%;left:0;position:absolute;top:0;width:100%}.dataviews-view-table__cell-content-wrapper:not(.dataviews-column-primary__media),.dataviews-view-table__primary-column-content:not(.dataviews-column-primary__media){max-width:80ch;min-width:15ch}.dataviews-view-table__group-header-row .dataviews-view-table__group-header-cell{color:#1e1e1e;font-weight:500;padding:12px 48px}.dataviews-view-table col[class^=dataviews-view-table__col-]:not(.dataviews-view-table__col-primary){width:1%}.dataviews-view-picker-grid .dataviews-view-picker-grid__card{height:100%;justify-content:flex-start;position:relative}.dataviews-view-picker-grid .dataviews-view-picker-grid__card .dataviews-view-picker-grid__title-actions{padding:8px 0 4px}.dataviews-view-picker-grid .dataviews-view-picker-grid__card .dataviews-view-picker-grid__title-field{align-content:center;min-height:24px;overflow:hidden;text-align:start}.dataviews-view-picker-grid .dataviews-view-picker-grid__card .dataviews-view-picker-grid__title-field--clickable{width:fit-content}.dataviews-view-picker-grid .dataviews-view-picker-grid__card.is-selected .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field .dataviews-view-picker-grid__field-value{color:#1e1e1e}.dataviews-view-picker-grid .dataviews-view-picker-grid__card .dataviews-view-picker-grid__media:focus:after,.dataviews-view-picker-grid .dataviews-view-picker-grid__card.is-selected .dataviews-view-picker-grid__media:after{background-color:rgba(var(--wp-admin-theme-color--rgb),.08)}.dataviews-view-picker-grid .dataviews-view-picker-grid__card.is-selected .dataviews-view-picker-grid__media:after{box-shadow:inset 0 0 0 1px var(--wp-admin-theme-color)}.dataviews-view-picker-grid .dataviews-view-picker-grid__card .dataviews-view-picker-grid__media:focus:after{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.dataviews-view-picker-grid:focus-visible[aria-activedescendant]{outline:none}.dataviews-view-picker-grid:focus-visible [data-active-item=true]{outline:2px solid var(--wp-admin-theme-color)}.dataviews-view-picker-grid .dataviews-selection-checkbox{top:8px!important}.dataviews-view-picker-grid .dataviews-selection-checkbox input{pointer-events:none}.dataviews-view-picker-grid .dataviews-view-picker-grid__media{aspect-ratio:1/1;background-color:#fff;border-radius:4px;position:relative;width:100%}.dataviews-view-picker-grid .dataviews-view-picker-grid__media img{height:100%;object-fit:cover;width:100%}.dataviews-view-picker-grid .dataviews-view-picker-grid__media:after{border-radius:4px;box-shadow:inset 0 0 0 1px #0000001a;content:"";height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields{font-size:12px;line-height:16px;position:relative}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields:not(:empty){padding:0 0 12px}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field-value:not(:empty){line-height:20px;min-height:24px;padding-top:2px}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field{align-items:center;min-height:24px}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field .dataviews-view-picker-grid__field-name{color:#757575;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:35%}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field .dataviews-view-picker-grid__field-value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:65%}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field:not(:has(.dataviews-view-picker-grid__field-value:not(:empty))){display:none}.dataviews-view-picker-grid .dataviews-view-picker-grid__badge-fields:not(:empty){padding-bottom:12px}.dataviews-view-picker-grid__field-value:empty,.dataviews-view-picker-grid__field:empty{display:none}.dataviews-view-picker-grid__card .dataviews-selection-checkbox{left:8px;position:absolute;top:-9999em;z-index:1}@media (hover:none){.dataviews-view-picker-grid__card .dataviews-selection-checkbox{top:8px}}.dataviews-view-picker-grid__card.is-selected .dataviews-selection-checkbox,.dataviews-view-picker-grid__card:focus-within .dataviews-selection-checkbox,.dataviews-view-picker-grid__card:hover .dataviews-selection-checkbox{top:8px}.dataviews-view-picker-grid__media--clickable{cursor:pointer}.dataviews-view-picker-grid-group__header{color:#1e1e1e;font-size:15px;font-weight:500;margin:0 0 8px;padding:0 48px}.dataviews-controls__datetime{border:none;padding:0}.dataviews-controls__relative-date-number,.dataviews-controls__relative-date-unit{flex:1 1 50%}.dataviews-controls__date input[type=date]::-webkit-calendar-picker-indicator,.dataviews-controls__date input[type=date]::-webkit-inner-spin-button{-webkit-appearance:none;display:none}.dataviews-controls__date-preset{border:1px solid #ddd}.dataviews-controls__date-preset:active{background-color:#000}.dataforms-layouts-panel__field{align-items:flex-start!important;justify-content:flex-start!important;min-height:32px;width:100%}.dataforms-layouts-panel__field-label{align-items:center;display:flex;flex-shrink:0;hyphens:auto;line-height:20px;min-height:32px;width:38%}.dataforms-layouts-panel__field-label--label-position-side{align-self:center}.dataforms-layouts-panel__field-control{align-items:center;display:flex;flex-grow:1;min-height:32px}.dataforms-layouts-panel__field-control .components-button{max-width:100%;min-height:32px;text-align:left;text-wrap:balance;text-wrap:pretty;white-space:normal}.dataforms-layouts-panel__field-control.components-button.is-link[aria-disabled=true]{text-decoration:none}.dataforms-layouts-panel__field-control .components-dropdown{max-width:100%}.dataforms-layouts-panel__field-dropdown .components-popover__content{min-width:320px;padding:16px}.dataforms-layouts-panel__dropdown-header{margin-bottom:16px}.dataforms-layouts-panel__modal-footer{margin-top:16px}.components-popover.components-dropdown__content.dataforms-layouts-panel__field-dropdown{z-index:159990}.dataforms-layouts-regular__field{align-items:flex-start!important;justify-content:flex-start!important;min-height:32px;width:100%}.dataforms-layouts-regular__field-label{align-items:center;display:flex;flex-shrink:0;hyphens:auto;line-height:20px;min-height:32px;width:38%}.dataforms-layouts-regular__field-label--label-position-side{align-self:center}.dataforms-layouts-regular__field-control{align-items:center;display:flex;flex-grow:1;min-height:32px}.dataforms-layouts-card__field-header-label{font-family:-apple-system,"system-ui",Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:15px;font-weight:500;line-height:20px}.dataforms-layouts-card__field{width:100%}.dataforms-layouts-card__field-description{color:#757575;display:block;font-size:13px;margin-bottom:16px}.dataforms-layouts-card__field-summary{display:flex;flex-direction:row;gap:16px}.dataforms-layouts-row__field-control{width:100%}.dataforms-layouts__wrapper{font-family:-apple-system,"system-ui",Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:400;line-height:20px}:root{--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:var(--wp-block-synced-color);--wp-editor-canvas-background:#ddd;--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,160.5;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.fields-create-template-part-modal{z-index:1000001}.fields-create-template-part-modal__area-fieldset{border:0;margin:0;padding:0}.fields-create-template-part-modal__area-radio-group{border:1px solid #949494;border-radius:2px}.fields-create-template-part-modal__area-radio-wrapper{align-items:center;display:grid;grid-template-columns:min-content 1fr min-content;padding:12px;position:relative;grid-gap:4px 8px;color:#1e1e1e}.fields-create-template-part-modal__area-radio-wrapper+.fields-create-template-part-modal__area-radio-wrapper{border-top:1px solid #949494}.fields-create-template-part-modal__area-radio-wrapper input[type=radio]{opacity:0;position:absolute}.fields-create-template-part-modal__area-radio-wrapper:has(input[type=radio]:checked){z-index:1}.fields-create-template-part-modal__area-radio-wrapper:has(input[type=radio]:not(:checked)):hover{color:var(--wp-admin-theme-color)}.fields-create-template-part-modal__area-radio-wrapper>:not(.fields-create-template-part-modal__area-radio-label){pointer-events:none}.fields-create-template-part-modal__area-radio-label:before{content:"";inset:0;position:absolute}input[type=radio]:not(:checked)~.fields-create-template-part-modal__area-radio-label:before{cursor:pointer}input[type=radio]:focus-visible~.fields-create-template-part-modal__area-radio-label:before{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:4px solid #0000}.fields-create-template-part-modal__area-radio-checkmark,.fields-create-template-part-modal__area-radio-icon{fill:currentColor}input[type=radio]:not(:checked)~.fields-create-template-part-modal__area-radio-checkmark{opacity:0}.fields-create-template-part-modal__area-radio-description{color:#757575;font-size:12px;grid-column:2/3;line-height:normal;margin:0;text-wrap:pretty}input[type=radio]:not(:checked):hover~.fields-create-template-part-modal__area-radio-description{color:inherit}.fields-controls__slug{border:0;margin:0;padding:0}.fields-controls__slug .fields-controls__slug-external-icon{margin-left:5ch}.fields-controls__slug .fields-controls__slug-input input.components-input-control__input{padding-inline-start:0!important}.fields-controls__slug .fields-controls__slug-help-link{word-break:break-word}.fields-controls__slug .fields-controls__slug-help{display:flex;flex-direction:column}.fields-controls__slug .fields-controls__slug-help .fields-controls__slug-help-slug{font-weight:600}.fields-controls__featured-image-placeholder{background:#fff linear-gradient(-45deg,#0000 48%,#ddd 0,#ddd 52%,#0000 0);border-radius:2px;box-shadow:inset 0 0 0 1px #0003;display:inline-block;padding:0}.fields-controls__featured-image-title{color:#1e1e1e;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.fields-controls__featured-image-image{align-self:center;border-radius:2px;height:100%;width:100%}.fields-controls__featured-image-container .fields-controls__featured-image-placeholder{margin:0}.fields-controls__featured-image-container span{margin-right:auto}fieldset.fields-controls__featured-image{border:0;margin:0;padding:0}fieldset.fields-controls__featured-image .fields-controls__featured-image-container{border:1px solid #ddd;border-radius:2px;cursor:pointer;padding:8px 12px}fieldset.fields-controls__featured-image .fields-controls__featured-image-container:hover{background-color:#f0f0f0}fieldset.fields-controls__featured-image .fields-controls__featured-image-placeholder{height:24px;width:24px}fieldset.fields-controls__featured-image span{align-self:center;text-align:start;white-space:nowrap}fieldset.fields-controls__featured-image .fields-controls__featured-image-upload-button{height:fit-content;padding:0}fieldset.fields-controls__featured-image .fields-controls__featured-image-upload-button:focus,fieldset.fields-controls__featured-image .fields-controls__featured-image-upload-button:hover{border:0;color:unset}fieldset.fields-controls__featured-image .fields-controls__featured-image-remove-button{place-self:end}.dataforms-layouts-panel__field-control .fields-controls__featured-image-image,.dataforms-layouts-panel__field-control .fields-controls__featured-image-placeholder{height:16px;width:16px}.dataviews-view-grid__media .fields-controls__featured-image-image,.dataviews-view-grid__media .fields-controls__featured-image-placeholder,.dataviews-view-list__media-wrapper .fields-controls__featured-image-image,.dataviews-view-list__media-wrapper .fields-controls__featured-image-placeholder,.dataviews-view-table__cell-content-wrapper.dataviews-column-primary__media .fields-controls__featured-image-image,.dataviews-view-table__cell-content-wrapper.dataviews-column-primary__media .fields-controls__featured-image-placeholder{border-radius:4px;display:block;height:100%;width:100%}.dataviews-view-grid__media .fields-controls__featured-image-placeholder,.dataviews-view-list__media-wrapper .fields-controls__featured-image-placeholder,.dataviews-view-table__cell-content-wrapper.dataviews-column-primary__media .fields-controls__featured-image-placeholder{background:#f0f0f0;box-shadow:none}.dataviews-view-table__cell-content-wrapper.dataviews-column-primary__media .fields-controls__featured-image-image,.dataviews-view-table__cell-content-wrapper.dataviews-column-primary__media .fields-controls__featured-image-placeholder{height:32px;width:32px}.fields-controls__parent,.fields-controls__password,.fields-controls__template{border:0;margin:0;padding:0}.fields-controls__template-modal{z-index:1000001}.fields-controls__template-content .block-editor-block-patterns-list{column-count:2;column-gap:24px;padding-top:2px}@media (min-width:782px){.fields-controls__template-content .block-editor-block-patterns-list{column-count:3}}@media (min-width:1280px){.fields-controls__template-content .block-editor-block-patterns-list{column-count:4}}.fields-controls__template-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{break-inside:avoid-column}.fields-field__title>span:first-child{display:block;flex-grow:0;overflow:hidden;text-decoration:none;text-overflow:ellipsis;white-space:nowrap}.fields-field__pattern-title span:first-child{flex:1}.edit-site-custom-template-modal__contents-wrapper{height:100%;justify-content:flex-start!important}.edit-site-custom-template-modal__contents-wrapper>*{width:100%}.edit-site-custom-template-modal__contents-wrapper__suggestions_list{margin-left:-12px;margin-right:-12px;width:calc(100% + 24px)}.edit-site-custom-template-modal__contents>.components-button{height:auto;justify-content:center}@media (min-width:782px){.edit-site-custom-template-modal{width:456px}}@media (min-width:600px){.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list{max-height:224px;overflow-y:auto}}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item{display:block;height:auto;overflow-wrap:break-word;padding:8px 12px;text-align:left;white-space:pre-wrap;width:100%}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item mark{background:none;font-weight:700}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04)}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item:hover *,.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item:hover mark{color:var(--wp-admin-theme-color)}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item:focus{background-color:#f0f0f0}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item:focus:not(:disabled){box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color) inset}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item__info,.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item__title{display:block;overflow:hidden;text-overflow:ellipsis}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item__info{color:#757575;word-break:break-all}.edit-site-custom-template-modal__no-results{border:1px solid #ccc;border-radius:2px;padding:16px}.edit-site-custom-generic-template__modal .components-modal__header{border-bottom:none}.edit-site-custom-generic-template__modal .components-modal__content:before{margin-bottom:4px}@media (min-width:960px){.edit-site-add-new-template__modal{margin-top:64px;max-height:calc(100% - 128px);max-width:832px;width:calc(100% - 128px)}}.edit-site-add-new-template__modal .edit-site-add-new-template__custom-template-button svg,.edit-site-add-new-template__modal .edit-site-add-new-template__template-button svg{fill:var(--wp-admin-theme-color)}.edit-site-add-new-template__modal .edit-site-add-new-template__custom-template-button .edit-site-add-new-template__template-name{align-items:flex-start;flex-grow:1}.edit-site-add-new-template__modal .edit-site-add-new-template__template-icon{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-radius:100%;max-height:40px;max-width:40px;padding:8px}.edit-site-add-new-template__template-list__contents>.components-button,.edit-site-custom-template-modal__contents>.components-button{border:1px solid #ddd;display:flex;flex-direction:column;justify-content:center;outline:1px solid #0000;padding:32px}.edit-site-add-new-template__template-list__contents>.components-button span:first-child,.edit-site-custom-template-modal__contents>.components-button span:first-child{color:#1e1e1e}.edit-site-add-new-template__template-list__contents>.components-button span,.edit-site-custom-template-modal__contents>.components-button span{color:#757575}.edit-site-add-new-template__template-list__contents>.components-button:hover,.edit-site-custom-template-modal__contents>.components-button:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-color:#0000;color:var(--wp-admin-theme-color-darker-10)}.edit-site-add-new-template__template-list__contents>.components-button:hover span,.edit-site-custom-template-modal__contents>.components-button:hover span{color:var(--wp-admin-theme-color)}.edit-site-add-new-template__template-list__contents>.components-button:focus,.edit-site-custom-template-modal__contents>.components-button:focus{border-color:#0000;box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:3px solid #0000}.edit-site-add-new-template__template-list__contents>.components-button:focus span:first-child,.edit-site-custom-template-modal__contents>.components-button:focus span:first-child{color:var(--wp-admin-theme-color)}.edit-site-add-new-template__template-list__contents .edit-site-add-new-template__custom-template-button,.edit-site-add-new-template__template-list__contents .edit-site-add-new-template__template-list__prompt,.edit-site-custom-template-modal__contents .edit-site-add-new-template__custom-template-button,.edit-site-custom-template-modal__contents .edit-site-add-new-template__template-list__prompt{grid-column:1/-1}.edit-site-add-new-template__template-list__contents>.components-button{align-items:flex-start;height:100%;text-align:start}.edit-site-visual-editor__editor-canvas.is-focused{outline:calc(var(--wp-admin-border-width-focus)*2) solid var(--wp-admin-theme-color);outline-offset:calc(var(--wp-admin-border-width-focus)*-2)}.edit-site-canvas-loader{align-items:center;display:flex;height:100%;justify-content:center;left:0;opacity:0;position:absolute;top:0;width:100%}@media not (prefers-reduced-motion){.edit-site-canvas-loader{animation:edit-site-canvas-loader__fade-in-animation .5s ease .2s;animation-fill-mode:forwards}}.edit-site-canvas-loader>div{width:160px}@keyframes edit-site-canvas-loader__fade-in-animation{0%{opacity:0}to{opacity:1}}.edit-site-global-styles-preview{align-items:center;cursor:pointer;display:flex;justify-content:center;line-height:1}.edit-site-global-styles-preview__wrapper{display:block;max-width:100%;width:100%}.edit-site-typography-preview{align-items:center;background:#f0f0f0;border-radius:2px;display:flex;justify-content:center;margin-bottom:16px;min-height:100px;overflow:hidden}.edit-site-font-size__item{line-break:anywhere;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.edit-site-font-size__item-value{color:#757575}.edit-site-global-styles-screen{margin:12px 16px 16px}.edit-site-global-styles-screen-typography__indicator{align-items:center;border-radius:1px;display:flex!important;font-size:14px;height:24px;justify-content:center;width:24px}.edit-site-global-styles-screen-typography__font-variants-count{color:#757575}.edit-site-global-styles-font-families__manage-fonts{justify-content:center}.edit-site-global-styles-screen .color-block-support-panel{border-top:none;padding-left:0;padding-right:0;padding-top:0;row-gap:12px}.edit-site-global-styles-header__description{padding:0 16px}.edit-site-block-types-search{margin-bottom:8px;padding:0 16px}.edit-site-global-styles-header{margin-bottom:0!important}.edit-site-global-styles-subtitle{font-size:11px!important;font-weight:500!important;margin-bottom:0!important;text-transform:uppercase}.edit-site-global-styles-section-title{color:#2f2f2f;font-weight:600;line-height:1.2;margin:0;padding:16px 16px 0}.edit-site-global-styles-icon-with-current-color{fill:currentColor}.edit-site-global-styles__color-indicator-wrapper{flex-shrink:0;height:24px}.edit-site-global-styles__shadows-panel__options-container,.edit-site-global-styles__typography-panel__options-container{height:24px}.edit-site-global-styles__block-preview-panel{border:1px solid #e0e0e0;border-radius:4px;overflow:hidden;position:relative;width:100%}.edit-site-global-styles__shadow-preview-panel{background-image:repeating-linear-gradient(45deg,#f5f5f5 25%,#0000 0,#0000 75%,#f5f5f5 0,#f5f5f5),repeating-linear-gradient(45deg,#f5f5f5 25%,#0000 0,#0000 75%,#f5f5f5 0,#f5f5f5);background-position:0 0,8px 8px;background-size:16px 16px;border:1px solid #e0e0e0;border-radius:4px;height:144px;overflow:auto}.edit-site-global-styles__shadow-preview-panel .edit-site-global-styles__shadow-preview-block{background-color:#fff;border:1px solid #e0e0e0;border-radius:2px;height:60px;width:60%}.edit-site-global-styles__shadow-editor__dropdown-content{width:280px}.edit-site-global-styles__shadow-editor-panel{margin-bottom:4px}.edit-site-global-styles__shadow-editor__dropdown{position:relative;width:100%}.edit-site-global-styles__shadow-editor__dropdown-toggle{border-radius:inherit;height:auto;padding-bottom:8px;padding-top:8px;text-align:left;width:100%}.edit-site-global-styles__shadow-editor__dropdown-toggle.is-open{background:#f0f0f0;color:var(--wp-admin-theme-color)}.edit-site-global-styles__shadow-editor__remove-button{opacity:0;position:absolute;right:8px;top:8px}.edit-site-global-styles__shadow-editor__remove-button.edit-site-global-styles__shadow-editor__remove-button{border:none}.edit-site-global-styles__shadow-editor__dropdown-toggle:hover+.edit-site-global-styles__shadow-editor__remove-button,.edit-site-global-styles__shadow-editor__remove-button:focus,.edit-site-global-styles__shadow-editor__remove-button:hover{opacity:1}@media (hover:none){.edit-site-global-styles__shadow-editor__remove-button{opacity:1}}.edit-site-global-styles-screen-css{display:flex;flex:1 1 auto;flex-direction:column;margin:16px}.edit-site-global-styles-screen-css .components-v-stack{flex:1 1 auto}.edit-site-global-styles-screen-css .components-v-stack .block-editor-global-styles-advanced-panel__custom-css-input,.edit-site-global-styles-screen-css .components-v-stack .block-editor-global-styles-advanced-panel__custom-css-input .components-base-control__field{display:flex;flex:1 1 auto;flex-direction:column}.edit-site-global-styles-screen-css .components-v-stack .block-editor-global-styles-advanced-panel__custom-css-input .components-base-control__field .components-textarea-control__input{direction:ltr;flex:1 1 auto}.edit-site-global-styles-screen-css-help-link{display:inline-block;margin-top:8px}.edit-site-global-styles-screen-variations{border-top:1px solid #ddd;margin-top:16px}.edit-site-global-styles-screen-variations>*{margin:24px 16px}.edit-site-global-styles-sidebar__navigator-provider{height:100%}.edit-site-global-styles-sidebar__navigator-screen{display:flex;flex-direction:column;height:100%}.edit-site-global-styles-sidebar__navigator-screen .single-column{grid-column:span 1}.edit-site-global-styles-screen-root.edit-site-global-styles-screen-root,.edit-site-global-styles-screen-style-variations.edit-site-global-styles-screen-style-variations{background:unset;color:inherit}.edit-site-global-styles-sidebar__panel .block-editor-block-icon svg{fill:currentColor}.edit-site-global-styles-screen-root__active-style-tile.edit-site-global-styles-screen-root__active-style-tile,.edit-site-global-styles-screen-root__active-style-tile.edit-site-global-styles-screen-root__active-style-tile .edit-site-global-styles-screen-root__active-style-tile-preview{border-radius:2px}.edit-site-global-styles-screen-revisions__revisions-list{flex-grow:1;list-style:none;margin:0 16px 16px}.edit-site-global-styles-screen-revisions__revisions-list li{margin-bottom:0}.edit-site-global-styles-screen-revisions__revision-item{cursor:pointer;display:flex;flex-direction:column;position:relative}.edit-site-global-styles-screen-revisions__revision-item[role=option]:active,.edit-site-global-styles-screen-revisions__revision-item[role=option]:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid #0000}.edit-site-global-styles-screen-revisions__revision-item:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04)}.edit-site-global-styles-screen-revisions__revision-item:hover .edit-site-global-styles-screen-revisions__date{color:var(--wp-admin-theme-color)}.edit-site-global-styles-screen-revisions__revision-item:after,.edit-site-global-styles-screen-revisions__revision-item:before{content:"\a";display:block;position:absolute}.edit-site-global-styles-screen-revisions__revision-item:before{background:#ddd;border:4px solid #0000;border-radius:50%;height:8px;left:17px;top:18px;transform:translate(-50%,-50%);width:8px;z-index:1}.edit-site-global-styles-screen-revisions__revision-item[aria-selected=true]{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-radius:2px;color:var(--wp-admin-theme-color);outline:3px solid #0000;outline-offset:-2px}.edit-site-global-styles-screen-revisions__revision-item[aria-selected=true] .edit-site-global-styles-screen-revisions__date{color:var(--wp-admin-theme-color)}.edit-site-global-styles-screen-revisions__revision-item[aria-selected=true]:before{background:var(--wp-admin-theme-color)}.edit-site-global-styles-screen-revisions__revision-item[aria-selected=true] .edit-site-global-styles-screen-revisions__applied-text,.edit-site-global-styles-screen-revisions__revision-item[aria-selected=true] .edit-site-global-styles-screen-revisions__changes>li,.edit-site-global-styles-screen-revisions__revision-item[aria-selected=true] .edit-site-global-styles-screen-revisions__meta{color:#1e1e1e}.edit-site-global-styles-screen-revisions__revision-item:after{border:.5px solid #ddd;height:100%;left:16px;top:0;width:0}.edit-site-global-styles-screen-revisions__revision-item:first-child:after{top:18px}.edit-site-global-styles-screen-revisions__revision-item:last-child:after{height:18px}.edit-site-global-styles-screen-revisions__revision-item-wrapper{display:block;padding:12px 12px 4px 40px}.edit-site-global-styles-screen-revisions__applied-text,.edit-site-global-styles-screen-revisions__apply-button.is-primary{align-self:flex-start;margin:4px 12px 12px 40px}.edit-site-global-styles-screen-revisions__applied-text,.edit-site-global-styles-screen-revisions__changes,.edit-site-global-styles-screen-revisions__meta{color:#757575;font-size:12px}.edit-site-global-styles-screen-revisions__description{align-items:flex-start;display:flex;flex-direction:column;gap:8px}.edit-site-global-styles-screen-revisions__description .edit-site-global-styles-screen-revisions__date{font-size:12px;font-weight:600;text-transform:uppercase}.edit-site-global-styles-screen-revisions__meta{align-items:flex-start;display:flex;justify-content:start;margin-bottom:4px;text-align:left;width:100%}.edit-site-global-styles-screen-revisions__meta img{border-radius:100%;height:16px;margin-right:8px;width:16px}.edit-site-global-styles-screen-revisions__loading{margin:24px auto!important}.edit-site-global-styles-screen-revisions__changes{line-height:1.4;list-style:disc;margin-left:12px;text-align:left}.edit-site-global-styles-screen-revisions__changes li{margin-bottom:4px}.edit-site-global-styles-screen-revisions__pagination.edit-site-global-styles-screen-revisions__pagination{gap:2px;justify-content:space-between}.edit-site-global-styles-screen-revisions__pagination.edit-site-global-styles-screen-revisions__pagination .edit-site-pagination__total{height:1px;left:-1000px;margin:-1px;overflow:hidden;position:absolute}.edit-site-global-styles-screen-revisions__pagination.edit-site-global-styles-screen-revisions__pagination .components-text{font-size:12px;will-change:opacity}.edit-site-global-styles-screen-revisions__pagination.edit-site-global-styles-screen-revisions__pagination .components-button.is-tertiary{color:#1e1e1e}.edit-site-global-styles-screen-revisions__pagination.edit-site-global-styles-screen-revisions__pagination .components-button.is-tertiary:disabled,.edit-site-global-styles-screen-revisions__pagination.edit-site-global-styles-screen-revisions__pagination .components-button.is-tertiary[aria-disabled=true]{color:#949494}.edit-site-global-styles-screen-revisions__footer{background:#fff;border-top:1px solid #ddd;bottom:0;height:56px;min-width:100%;padding:12px;position:sticky;z-index:1}.edit-site-global-styles-sidebar{display:flex;flex-direction:column;min-height:100%}.edit-site-global-styles-sidebar__panel{flex:1}.edit-site-global-styles-sidebar .edit-site-global-styles-sidebar__header-title{margin:0}.edit-site-global-styles-sidebar .edit-site-global-styles-sidebar__header-actions{flex:1}.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{border:0}.edit-site-global-styles-sidebar .single-column{grid-column:span 1}.edit-site-global-styles-sidebar .components-tools-panel .span-columns{grid-column:1/-1}.edit-site-global-styles-sidebar__blocks-group{border-top:1px solid #e0e0e0;padding-top:24px}.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 hr{margin:0}.show-icon-labels .edit-site-global-styles-sidebar__header .components-button.has-icon{width:auto}.show-icon-labels .edit-site-global-styles-sidebar__header .components-button.has-icon svg{display:none}.show-icon-labels .edit-site-global-styles-sidebar__header .components-button.has-icon:after{content:attr(aria-label);font-size:12px}.edit-site-patterns__delete-modal{width:384px}.page-patterns-preview-field{align-items:center;border-radius:4px;display:flex;flex-direction:column;height:100%;justify-content:center}.dataviews-view-grid .page-patterns-preview-field .block-editor-block-preview__container{height:100%}.dataviews-view-table .page-patterns-preview-field{flex-grow:0;text-wrap:balance;text-wrap:pretty;width:96px}.edit-site-patterns__pattern-icon{fill:var(--wp-block-synced-color);flex-shrink:0}.edit-site-patterns__section-header{border-bottom:1px solid #f0f0f0;flex-shrink:0;min-height:40px;padding:16px 48px;position:sticky;top:0;z-index:2}@media not (prefers-reduced-motion){.edit-site-patterns__section-header{transition:padding .1s ease-out}}.edit-site-patterns__section-header .edit-site-patterns__title{min-height:40px}.edit-site-patterns__section-header .edit-site-patterns__title .components-heading{flex-basis:0;flex-grow:1;white-space:nowrap}.edit-site-patterns__section-header .edit-site-patterns__sub-title{margin-bottom:8px}.edit-site-patterns__section-header .screen-reader-shortcut:focus{top:0}.edit-site-page-patterns-dataviews .dataviews-view-grid__badge-fields .dataviews-view-grid__field-value:has(.edit-site-patterns__field-sync-status-fully){background:rgba(var(--wp-block-synced-color--rgb),.04);color:var(--wp-block-synced-color)}.dataviews-action-modal__duplicate-pattern [role=dialog]>[role=document]{width:350px}.dataviews-action-modal__duplicate-pattern .patterns-menu-items__convert-modal-categories{position:relative}.dataviews-action-modal__duplicate-pattern .components-form-token-field__suggestions-list:not(:empty){background-color:#fff;border:1px solid var(--wp-admin-theme-color);border-bottom-left-radius:2px;border-bottom-right-radius:2px;box-shadow:0 0 .5px .5px var(--wp-admin-theme-color);box-sizing:border-box;left:-1px;max-height:96px;min-width:auto;position:absolute;width:calc(100% + 2px);z-index:1}@media (min-width:600px){.dataviews-action-modal__duplicate-template-part .components-modal__frame{max-width:500px}}@container (max-width: 430px){.edit-site-page-patterns-dataviews .edit-site-patterns__section-header{padding-left:24px;padding-right:24px}}.page-templates-preview-field{align-items:center;border-radius:4px;display:flex;flex-direction:column;height:100%;justify-content:center;width:100%}.dataviews-view-list .page-templates-preview-field .block-editor-block-preview__container{height:120px}.dataviews-view-grid .page-templates-preview-field .block-editor-block-preview__container{height:100%}.dataviews-view-table .page-templates-preview-field{max-height:160px;position:relative;text-wrap:balance;text-wrap:pretty;width:120px}.edit-site-page-templates .dataviews-pagination{z-index:2}.page-templates-author-field__avatar{align-items:center;display:flex;flex-shrink:0;height:24px;justify-content:left;overflow:hidden;width:24px}.page-templates-author-field__avatar img{border-radius:100%;height:16px;object-fit:cover;opacity:0;width:16px}@media not (prefers-reduced-motion){.page-templates-author-field__avatar img{transition:opacity .1s linear}}.page-templates-author-field__avatar.is-loaded img{opacity:1}.page-templates-author-field__icon{display:flex;flex-shrink:0;height:24px;width:24px}.page-templates-author-field__icon svg{margin-left:-4px;fill:currentColor}.page-templates-author-field__name{overflow:hidden;text-overflow:ellipsis}.edit-site-list__rename-modal{z-index:1000001}@media (min-width:782px){.edit-site-list__rename-modal .components-base-control{width:320px}}.edit-site-editor__editor-interface{opacity:1}@media not (prefers-reduced-motion){.edit-site-editor__editor-interface{transition:opacity .1s ease-out}}.edit-site-editor__editor-interface.is-loading{opacity:0}.edit-site-editor__toggle-save-panel{background-color:#fff;border:1px dotted #ddd;box-sizing:border-box;display:flex;justify-content:center;padding:24px;width:280px}.edit-site-editor__view-mode-toggle{view-transition-name:toggle;height:64px;left:0;top:0;width:64px;z-index:100}.edit-site-editor__view-mode-toggle .components-button{align-items:center;border-radius:0;color:#fff;display:flex;height:100%;justify-content:center;overflow:hidden;padding:0;width:100%}.edit-site-editor__view-mode-toggle .components-button:active,.edit-site-editor__view-mode-toggle .components-button:hover{color:#fff}.edit-site-editor__view-mode-toggle .components-button:focus{box-shadow:none}.edit-site-editor__view-mode-toggle .edit-site-editor__view-mode-toggle-icon img,.edit-site-editor__view-mode-toggle .edit-site-editor__view-mode-toggle-icon svg{background:#1e1e1e;display:block}.edit-site-editor__back-icon{align-items:center;background-color:#ccc;display:flex;height:64px;justify-content:center;left:0;pointer-events:none;position:absolute;top:0;width:64px}.edit-site-editor__back-icon svg{fill:currentColor}.edit-site-editor__back-icon.has-site-icon{backdrop-filter:saturate(180%) blur(15px);background-color:#fff9}.edit-site-welcome-guide{width:312px}.edit-site-welcome-guide.guide-editor .edit-site-welcome-guide__image,.edit-site-welcome-guide.guide-styles .edit-site-welcome-guide__image{background:#00a0d2}.edit-site-welcome-guide.guide-page .edit-site-welcome-guide__video{border-right:16px solid #3858e9;border-top:16px solid #3858e9}.edit-site-welcome-guide.guide-template .edit-site-welcome-guide__video{border-left:16px solid #3858e9;border-top:16px solid #3858e9}.edit-site-welcome-guide__image{margin:0 0 16px}.edit-site-welcome-guide__image>img{display:block;max-width:100%;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}.edit-site-layout{color:#ccc;display:flex;flex-direction:column;height:100%}.edit-site-layout,.edit-site-layout:not(.is-full-canvas) .editor-visual-editor{background:#1e1e1e}.edit-site-layout__content{display:flex;flex-grow:1;height:100%}.edit-site-layout__sidebar-region{flex-shrink:0;width:100vw;z-index:1}@media (min-width:782px){.edit-site-layout__sidebar-region{width:300px}}.edit-site-layout.is-full-canvas .edit-site-layout__sidebar-region{height:100vh;left:0;position:fixed!important;top:0}.edit-site-layout__sidebar-region .edit-site-layout__sidebar{display:flex;flex-direction:column;height:100%}.edit-site-layout__sidebar-region .resizable-editor__drag-handle{right:0}.edit-site-layout__main{display:flex;flex-direction:column;flex-grow:1;overflow:hidden}.edit-site-layout__mobile{display:flex;flex-direction:column;position:relative;width:100%;z-index:2}.edit-site-layout__mobile .edit-site-sidebar__screen-wrapper{padding:0}.edit-site-layout__mobile .edit-site-sidebar-navigation-screen__main{padding:0 12px}.edit-site-layout__canvas-container{flex-grow:1;overflow:visible;position:relative;z-index:2}.edit-site-layout__canvas-container.is-resizing:after{bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:100}.edit-site-layout__canvas{align-items:center;bottom:0;display:flex;justify-content:center;left:0;position:absolute;top:0;width:100%}.edit-site-layout__canvas.is-right-aligned{justify-content:flex-end}.edit-site-layout__canvas .edit-site-resizable-frame__inner{color:#1e1e1e}@media (min-width:782px){.edit-site-layout__canvas{bottom:16px;top:16px;width:calc(100% - 16px)}.edit-site-layout__canvas .edit-site-resizable-frame__inner-content{box-shadow:0 1px 1px #00000008,0 1px 2px #00000005,0 3px 3px #00000005,0 4px 4px #00000003;overflow:hidden}}@media (min-width:782px) and (not (prefers-reduced-motion)){.edit-site-layout__canvas .edit-site-resizable-frame__inner-content{transition:border-radius,box-shadow .4s}}@media (min-width:782px){.edit-site-layout:not(.is-full-canvas) .edit-site-layout__canvas .edit-site-resizable-frame__inner-content{border-radius:8px}.edit-site-layout__canvas .edit-site-resizable-frame__inner-content:hover{box-shadow:0 5px 15px #00000014,0 15px 27px #00000012,0 30px 36px #0000000a,0 50px 43px #00000005}}.edit-site-layout.is-full-canvas .edit-site-layout__canvas{bottom:0;top:0;width:100%}.edit-site-layout__canvas .interface-interface-skeleton,.edit-site-layout__mobile .interface-interface-skeleton,.edit-site-template-pages-preview .interface-interface-skeleton{min-height:100%!important;position:relative!important}.edit-site-template-pages-preview{height:100%}html.canvas-mode-edit-transition::view-transition-group(toggle){animation-delay:255ms}@media (prefers-reduced-motion){::view-transition-group(*),::view-transition-new(*),::view-transition-old(*){animation:none!important}}.edit-site-layout.is-full-canvas .edit-site-layout__sidebar-region .edit-site-layout__view-mode-toggle{display:none}.edit-site-layout__view-mode-toggle.components-button{view-transition-name:toggle;align-items:center;background:#1e1e1e;border-radius:0;color:#fff;display:flex;height:64px;justify-content:center;overflow:hidden;padding:0;position:relative;width:64px}.edit-site-layout__view-mode-toggle.components-button:active,.edit-site-layout__view-mode-toggle.components-button:hover{color:#fff}.edit-site-layout__view-mode-toggle.components-button:focus,.edit-site-layout__view-mode-toggle.components-button:focus-visible{box-shadow:0 0 0 3px #1e1e1e,0 0 0 6px var(--wp-admin-theme-color);outline:4px solid #0000;outline-offset:4px}.edit-site-layout__view-mode-toggle.components-button:before{border-radius:4px;bottom:9px;box-shadow:none;content:"";display:block;left:17px;position:absolute;right:9px;top:9px}@media not (prefers-reduced-motion){.edit-site-layout__view-mode-toggle.components-button:before{transition:box-shadow .1s ease}}.edit-site-layout__view-mode-toggle.components-button .edit-site-layout__view-mode-toggle-icon{align-items:center;display:flex;height:64px;justify-content:center;width:64px}.edit-site-layout__actions{background:#fff;bottom:auto;color:#1e1e1e;left:auto;position:fixed!important;right:0;top:-9999em;width:280px;z-index:100000}.edit-site-layout__actions:focus,.edit-site-layout__actions:focus-within{bottom:0;top:auto}.edit-site-layout__actions.is-entity-save-view-open:focus,.edit-site-layout__actions.is-entity-save-view-open:focus-within{top:0}@media (min-width:782px){.edit-site-layout__actions{border-left:1px solid #ddd}}.edit-site-layout__area{box-shadow:0 1px 1px #00000008,0 1px 2px #00000005,0 3px 3px #00000005,0 4px 4px #00000003;flex-grow:1;margin:0;overflow:hidden}@media (min-width:782px){.edit-site-layout__area{border-radius:8px;margin:16px 16px 16px 0}}.edit-site .components-editor-notices__snackbar{bottom:16px;padding-left:16px;padding-right:16px;position:fixed;right:0}.edit-site-save-hub{border-top:1px solid #2f2f2f;color:#949494;flex-shrink:0;margin:0;padding:16px}.edit-site-save-hub__button{color:inherit;justify-content:center;width:100%}.edit-site-save-hub__button[aria-disabled=true]{opacity:1}.edit-site-save-hub__button[aria-disabled=true]:hover{color:inherit}.edit-site-save-hub__button:not(.is-primary).is-busy,.edit-site-save-hub__button:not(.is-primary).is-busy[aria-disabled=true]:hover{color:#1e1e1e}@media (min-width:600px){.edit-site-save-panel__modal{width:600px}}.edit-site-sidebar__content{contain:content;flex-grow:1;overflow-x:hidden;overflow-y:auto}@keyframes local--slide-from-right{0%{opacity:0;transform:translateX(50px)}to{opacity:1;transform:none}}@keyframes local--slide-from-left{0%{opacity:0;transform:translateX(-50px)}to{opacity:1;transform:none}}.edit-site-sidebar__screen-wrapper{overflow-x:auto}.edit-site-sidebar__screen-wrapper::-webkit-scrollbar{height:12px;width:12px}.edit-site-sidebar__screen-wrapper::-webkit-scrollbar-track{background-color:initial}.edit-site-sidebar__screen-wrapper::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:initial;border:3px solid #0000;border-radius:8px}.edit-site-sidebar__screen-wrapper:focus-within::-webkit-scrollbar-thumb,.edit-site-sidebar__screen-wrapper:focus::-webkit-scrollbar-thumb,.edit-site-sidebar__screen-wrapper:hover::-webkit-scrollbar-thumb{background-color:#757575}.edit-site-sidebar__screen-wrapper{scrollbar-color:#0000 #0000;scrollbar-gutter:stable both-edges;scrollbar-width:thin}.edit-site-sidebar__screen-wrapper:focus,.edit-site-sidebar__screen-wrapper:focus-within,.edit-site-sidebar__screen-wrapper:hover{scrollbar-color:#757575 #0000}.edit-site-sidebar__screen-wrapper{will-change:transform}@media (hover:none){.edit-site-sidebar__screen-wrapper{scrollbar-color:#757575 #0000}}.edit-site-sidebar__screen-wrapper{animation-duration:.14s;animation-timing-function:ease-in-out;display:flex;flex-direction:column;height:100%;max-height:100%;padding:0 12px;scrollbar-gutter:stable;will-change:transform,opacity}@media (prefers-reduced-motion:reduce){.edit-site-sidebar__screen-wrapper{animation-duration:0s}}.edit-site-sidebar__screen-wrapper.slide-from-left{animation-name:local--slide-from-left}.edit-site-sidebar__screen-wrapper.slide-from-right{animation-name:local--slide-from-right}.edit-site-sidebar-button{color:#e0e0e0;flex-shrink:0}.edit-site-sidebar-button:focus:not(:disabled){box-shadow:none;outline:none}.edit-site-sidebar-button:focus-visible:not(:disabled){box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:3px solid #0000}.edit-site-sidebar-button:focus,.edit-site-sidebar-button:focus-visible,.edit-site-sidebar-button:hover:not(:disabled,[aria-disabled=true]),.edit-site-sidebar-button:not(:disabled,[aria-disabled=true]):active,.edit-site-sidebar-button[aria-expanded=true]{color:#f0f0f0}.edit-site-sidebar-navigation-item.components-item{border:none;color:#949494;min-height:40px;padding:8px 6px 8px 16px}.edit-site-sidebar-navigation-item.components-item:focus,.edit-site-sidebar-navigation-item.components-item:hover,.edit-site-sidebar-navigation-item.components-item[aria-current=true]{color:#e0e0e0}.edit-site-sidebar-navigation-item.components-item:focus .edit-site-sidebar-navigation-item__drilldown-indicator,.edit-site-sidebar-navigation-item.components-item:hover .edit-site-sidebar-navigation-item__drilldown-indicator,.edit-site-sidebar-navigation-item.components-item[aria-current=true] .edit-site-sidebar-navigation-item__drilldown-indicator{fill:#e0e0e0}.edit-site-sidebar-navigation-item.components-item[aria-current=true]{background:#2f2f2f;color:#fff;font-weight:500}.edit-site-sidebar-navigation-item.components-item:focus-visible{transform:translateZ(0)}.edit-site-sidebar-navigation-item.components-item .edit-site-sidebar-navigation-item__drilldown-indicator{fill:#949494}.edit-site-sidebar-navigation-item.components-item.with-suffix{padding-right:16px}.edit-site-sidebar-navigation-screen__content .block-editor-list-view-block-select-button{cursor:grab;padding:8px 8px 8px 0}.edit-site-sidebar-navigation-screen{display:flex;flex-direction:column;overflow-x:unset!important;position:relative}.edit-site-sidebar-navigation-screen__main{flex-grow:1;margin-bottom:16px}.edit-site-sidebar-navigation-screen__main.has-footer{margin-bottom:0}.edit-site-sidebar-navigation-screen__content{padding:0 16px}.edit-site-sidebar-navigation-screen__content .components-text{color:#ccc}.edit-site-sidebar-navigation-screen__content .components-heading{margin-bottom:8px}.edit-site-sidebar-navigation-screen__title-icon{background:#1e1e1e;margin-bottom:8px;padding-bottom:8px;padding-top:48px;position:sticky;top:0;z-index:1}.edit-site-sidebar-navigation-screen__title{flex-grow:1;overflow-wrap:break-word}.edit-site-sidebar-navigation-screen__title.edit-site-sidebar-navigation-screen__title,.edit-site-sidebar-navigation-screen__title.edit-site-sidebar-navigation-screen__title .edit-site-sidebar-navigation-screen__title{line-height:32px}.edit-site-sidebar-navigation-screen__actions{display:flex;flex-shrink:0}@media (min-width:782px){.edit-site-sidebar-navigation-screen__content .edit-site-global-styles-variation-container{max-width:292px}}.edit-site-global-styles-variation-title{color:#ddd;font-size:11px;font-weight:500;text-transform:uppercase}.edit-site-sidebar-navigation-screen__content .edit-site-global-styles-variations_item .edit-site-global-styles-variations_item-preview{outline-color:#ffffff0d}.edit-site-sidebar-navigation-screen__content .edit-site-global-styles-variations_item:not(.is-active):hover .edit-site-global-styles-variations_item-preview{outline-color:#ffffff26}.edit-site-sidebar-navigation-screen__content .edit-site-global-styles-variations_item.is-active .edit-site-global-styles-variations_item-preview{outline-color:#fff}.edit-site-sidebar-navigation-screen__content .edit-site-global-styles-variations_item:focus-visible .edit-site-global-styles-variations_item-preview{outline-color:var(--wp-admin-theme-color)}.edit-site-sidebar-navigation-screen__footer{background-color:#1e1e1e;border-top:1px solid #2f2f2f;bottom:0;gap:0;margin:16px 0 0;padding:8px 16px;position:sticky}.edit-site-sidebar-navigation-screen__footer .edit-site-sidebar-navigation-screen-details-footer{margin-left:-16px;margin-right:-16px}.edit-site-sidebar-navigation-screen__input-control{width:100%}.edit-site-sidebar-navigation-screen__input-control .components-input-control__container{background:#2f2f2f}.edit-site-sidebar-navigation-screen__input-control .components-input-control__container .components-button{color:#e0e0e0!important}.edit-site-sidebar-navigation-screen__input-control .components-input-control__input{background:#2f2f2f!important;color:#e0e0e0!important}.edit-site-sidebar-navigation-screen__input-control .components-input-control__backdrop{border:4px!important}.edit-site-sidebar-navigation-screen__input-control .components-base-control__help{color:#949494}.edit-site-sidebar-navigation-screen-details-footer div.edit-site-sidebar-navigation-item.components-item:focus,.edit-site-sidebar-navigation-screen-details-footer div.edit-site-sidebar-navigation-item.components-item:hover,.edit-site-sidebar-navigation-screen-details-footer div.edit-site-sidebar-navigation-item.components-item[aria-current]{background:none}.sidebar-navigation__more-menu .components-button{color:#e0e0e0}.sidebar-navigation__more-menu .components-button:focus,.sidebar-navigation__more-menu .components-button:hover,.sidebar-navigation__more-menu .components-button[aria-current]{color:#f0f0f0}.edit-site-sidebar-navigation-screen-patterns__group{margin-bottom:24px;margin-left:-16px;margin-right:-16px}.edit-site-sidebar-navigation-screen-patterns__group:last-of-type{border-bottom:0;margin-bottom:0;padding-bottom:0}.edit-site-sidebar-navigation-screen-patterns__group-header{margin-top:16px}.edit-site-sidebar-navigation-screen-patterns__group-header p{color:#949494}.edit-site-sidebar-navigation-screen-patterns__group-header h2{font-size:11px;font-weight:500;text-transform:uppercase}.edit-site-sidebar-navigation-screen-patterns__divider{border-top:1px solid #2f2f2f;margin:16px 0}.edit-site-sidebar-navigation-screen__description{margin:0 0 32px}.edit-site-sidebar-navigation-screen-navigation-menus{margin-left:-16px;margin-right:-16px}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-leaf .block-editor-list-view-block-contents{white-space:normal}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block__title{margin-top:3px}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block__menu-cell{padding-right:0}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block-select-button{color:#949494}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block-select-button:focus,.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block-select-button:hover,.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block-select-button[aria-current]{color:#fff}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block__menu{color:#949494}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block__menu:focus,.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block__menu:hover{color:#fff}.edit-site-sidebar-navigation-screen-navigation-menus__loading.components-spinner{display:block;margin-left:auto;margin-right:auto}.edit-site-sidebar-navigation-screen-navigation-menus__helper-block-editor{display:none}.edit-site-sidebar-dataviews,.edit-site-sidebar-navigation-screen-main,.edit-site-sidebar-navigation-screen-templates-browse{margin-left:-16px;margin-right:-16px}.edit-site-sidebar-dataviews-dataview-item{border-radius:2px}.edit-site-sidebar-dataviews-dataview-item:focus,.edit-site-sidebar-dataviews-dataview-item:hover,.edit-site-sidebar-dataviews-dataview-item[aria-current]{color:#e0e0e0}.edit-site-sidebar-dataviews-dataview-item.is-selected{background:#2f2f2f;color:#fff;font-weight:500}.edit-site-site-hub{align-items:center;display:flex;gap:8px;height:64px;justify-content:space-between;margin-right:12px}.edit-site-site-hub__actions{flex-shrink:0}.edit-site-site-hub__view-mode-toggle-container{flex-shrink:0;height:64px;width:64px}.edit-site-site-hub__view-mode-toggle-container.has-transparent-background .edit-site-layout__view-mode-toggle-icon{background:#0000}.edit-site-site-hub__title .components-button{color:#e0e0e0;display:block;flex-grow:1;font-size:15px;font-weight:500;margin-left:-4px;overflow:hidden;padding-right:16px;position:relative;text-decoration:none;text-overflow:ellipsis;white-space:nowrap}.edit-site-site-hub__title .components-button:active,.edit-site-site-hub__title .components-button:focus,.edit-site-site-hub__title .components-button:hover{color:#e0e0e0}.edit-site-site-hub__title .components-button:focus{box-shadow:none;outline:none}.edit-site-site-hub__title .components-button:focus-visible{box-shadow:0 0 0 var(--wp-admin-border-width-focus) #1e1e1e,0 0 0 calc(var(--wp-admin-border-width-focus)*2) var(--wp-admin-theme-color);outline:2px solid #0000;outline-offset:2px}.edit-site-site-hub__title .components-button:after{content:"↗";font-weight:400;opacity:0;position:absolute;right:0}@media not (prefers-reduced-motion){.edit-site-site-hub__title .components-button:after{transition:opacity .1s linear}}.edit-site-site-hub__title .components-button:active:after,.edit-site-site-hub__title .components-button:focus:after,.edit-site-site-hub__title .components-button:hover:after{opacity:1}.edit-site-site-hub_toggle-command-center{color:#e0e0e0}.edit-site-site-hub_toggle-command-center:active svg,.edit-site-site-hub_toggle-command-center:hover svg{fill:#f0f0f0}.edit-site-site-icon__icon{fill:currentColor;height:100%;width:100%}.edit-site-layout.is-full-canvas .edit-site-site-icon__icon{padding:12px}.edit-site-site-icon__image{aspect-ratio:1/1;background:#333;height:100%;object-fit:cover;width:100%}.edit-site-layout.is-full-canvas .edit-site-site-icon__image{border-radius:0}.edit-site-editor__view-mode-toggle button:focus{position:relative}.edit-site-editor__view-mode-toggle button:focus:before{bottom:0;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color),inset 0 0 0 calc(1px + var(--wp-admin-border-width-focus)) #fff;content:"";display:block;left:0;position:absolute;right:0;top:0;z-index:1}.edit-site-style-book{height:100%}.edit-site-style-book.is-button{border-radius:8px}.edit-site-style-book{align-items:stretch;display:flex;flex-direction:column}.edit-site-style-book__iframe{display:block;height:100%;width:100%}.edit-site-style-book__iframe.is-button{border-radius:8px}.edit-site-style-book__iframe.is-focused{outline:calc(var(--wp-admin-border-width-focus)*2) solid var(--wp-admin-theme-color);outline-offset:calc(var(--wp-admin-border-width-focus)*-2)}.edit-site-style-book__tablist-container{background:#fff;display:flex;flex:none;padding-right:56px;width:100%}.edit-site-style-book__tabpanel{flex:1 0 auto;overflow:auto}.edit-site-editor-canvas-container{background-color:var(--wp-editor-canvas-background);height:100%}.edit-site-editor-canvas-container iframe{display:block;height:100%;width:100%}.edit-site-layout.is-full-canvas .edit-site-editor-canvas-container{padding:24px 24px 0}.edit-site-editor-canvas-container__section{background:#fff;border-radius:8px;bottom:0;left:0;overflow:hidden;position:absolute;right:0;top:0}@media not (prefers-reduced-motion){.edit-site-editor-canvas-container__section{transition:all .3s}}.edit-site-editor-canvas-container__close-button{background:#fff;position:absolute;right:8px;top:8px;z-index:2}.edit-site-post-edit{padding:24px}.dataforms-layouts-panel__field-dropdown .fields-controls__password{border-top:1px solid #e0e0e0;padding-top:16px}.edit-site-post-list__featured-image{height:100%;object-fit:cover;width:100%}.edit-site-post-list__featured-image-wrapper{border-radius:4px;height:100%;width:100%}.edit-site-post-list__featured-image-wrapper.is-layout-table .edit-site-post-list__featured-image-button,.edit-site-post-list__featured-image-wrapper.is-layout-table:not(:has(.edit-site-post-list__featured-image-button)){background-color:#f0f0f0;border-radius:4px;display:block;flex-grow:0!important;height:32px;overflow:hidden;position:relative;width:32px}.edit-site-post-list__featured-image-wrapper.is-layout-table .edit-site-post-list__featured-image-button:after,.edit-site-post-list__featured-image-wrapper.is-layout-table:not(:has(.edit-site-post-list__featured-image-button)):after{border-radius:4px;box-shadow:inset 0 0 0 1px #0000001a;content:"";height:100%;left:0;position:absolute;top:0;width:100%}.edit-site-post-list__featured-image-button{background-color:unset;border:none;border-radius:4px;box-shadow:none;box-sizing:border-box;cursor:pointer;height:100%;overflow:hidden;padding:0;width:100%}.edit-site-post-list__featured-image-button:focus-visible{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid #0000}.dataviews-view-grid__card.is-selected .edit-site-post-list__featured-image-button:after{background:rgba(var(--wp-admin-theme-color--rgb),.04);box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.edit-site-post-list__status-icon{height:24px;width:24px}.edit-site-post-list__status-icon svg{fill:currentColor;margin-left:-4px}.edit-site-resizable-frame__inner{position:relative}body:has(.edit-site-resizable-frame__inner.is-resizing){cursor:col-resize;user-select:none;-webkit-user-select:none}.edit-site-resizable-frame__inner.is-resizing:before{content:"";inset:0;position:absolute;z-index:1}.edit-site-resizable-frame__inner-content{inset:0;position:absolute;z-index:0}.edit-site-resizable-frame__handle{align-items:center;background-color:#75757566;border:0;border-radius:4px;cursor:col-resize;display:flex;height:64px;justify-content:flex-end;padding:0;position:absolute;top:calc(50% - 32px);width:4px;z-index:100}.edit-site-resizable-frame__handle:before{content:"";height:100%;left:100%;position:absolute;width:32px}.edit-site-resizable-frame__handle:after{content:"";height:100%;position:absolute;right:100%;width:32px}.edit-site-resizable-frame__handle:focus-visible{outline:2px solid #0000}.edit-site-resizable-frame__handle.is-resizing,.edit-site-resizable-frame__handle:focus,.edit-site-resizable-frame__handle:hover{background-color:var(--wp-admin-theme-color)}.edit-site-push-changes-to-global-styles-control .components-button{justify-content:center;width:100%}@media (min-width:782px){.font-library-modal.font-library-modal{width:65vw}}.font-library-modal .components-modal__header{border-bottom:none}.font-library-modal .components-modal__content{margin-bottom:70px;padding-top:0}.font-library-modal .font-library-modal__subtitle{font-size:11px;font-weight:500;text-transform:uppercase}.font-library-modal .components-navigator-screen{padding:3px}.font-library-modal__tabpanel-layout{margin-top:32px}.font-library-modal__tabpanel-layout .font-library-modal__loading{align-items:center;display:flex;height:100%;justify-content:center;left:0;padding-top:124px;position:absolute;top:0;width:100%}.font-library-modal__footer{background-color:#fff;border-top:1px solid #ddd;bottom:32px;height:70px;margin:0 -32px -32px;padding:16px 32px;position:absolute;width:100%}.font-library-modal__page-selection{font-size:11px;font-weight:500;text-transform:uppercase}@media (min-width:600px){.font-library-modal__page-selection .components-select-control__input{font-size:11px!important;font-weight:500}}.font-library-modal__fonts-title{font-size:11px;font-weight:600;margin-bottom:0;margin-top:0;text-transform:uppercase}.font-library-modal__fonts-list{margin-bottom:0;margin-top:0}.font-library-modal__fonts-list-item{margin-bottom:0}.font-library-modal__font-card{border:1px solid #e0e0e0;height:auto!important;margin-top:-1px;padding:16px;width:100%}.font-library-modal__font-card:hover{background-color:#f0f0f0}.font-library-modal__font-card:focus{position:relative}.font-library-modal__font-card .font-library-modal__font-card__name{font-weight:700}.font-library-modal__font-card .font-library-modal__font-card__count{color:#757575}.font-library-modal__font-card .font-library-modal__font-variant_demo-image{display:block;height:24px;width:auto}.font-library-modal__font-card .font-library-modal__font-variant_demo-text{flex-shrink:0;white-space:nowrap}@media not (prefers-reduced-motion){.font-library-modal__font-card .font-library-modal__font-variant_demo-text{transition:opacity .3s ease-in-out}}.font-library-modal__font-variant{border-bottom:1px solid #e0e0e0;padding-bottom:16px}.font-library-modal__tablist-container{background:#fff;border-bottom:1px solid #ddd;margin:0 -32px;padding:0 16px;position:sticky;top:0;z-index:1}.font-library-modal__tablist-container [role=tablist]{margin-bottom:-1px}.font-library-modal__upload-area{align-items:center;display:flex;height:256px!important;justify-content:center;width:100%}button.font-library-modal__upload-area{background-color:#f0f0f0}.font-library-modal__local-fonts{margin:0 auto;width:80%}.font-library-modal__local-fonts .font-library-modal__upload-area__text{color:#757575}.font-library__google-fonts-confirm{align-items:center;display:flex;justify-content:center;margin-top:64px}.font-library__google-fonts-confirm p{line-height:1.4}.font-library__google-fonts-confirm h2{font-size:1.2rem;font-weight:400}.font-library__google-fonts-confirm .components-card{padding:16px;width:400px}.font-library__google-fonts-confirm .components-button{justify-content:center;width:100%}.font-library-modal__select-all{padding:16px 16px 16px 17px}.font-library-modal__select-all .components-checkbox-control__label{padding-left:16px}.edit-site-pagination .components-button.is-tertiary{height:32px;justify-content:center;width:32px}.edit-site-global-styles-variations_item{box-sizing:border-box;cursor:pointer}.edit-site-global-styles-variations_item .edit-site-global-styles-variations_item-preview{border-radius:2px;outline:1px solid #0000001a;outline-offset:-1px;overflow:hidden;position:relative}@media not (prefers-reduced-motion){.edit-site-global-styles-variations_item .edit-site-global-styles-variations_item-preview{transition:outline .1s linear}}.edit-site-global-styles-variations_item .edit-site-global-styles-variations_item-preview.is-pill{height:32px}.edit-site-global-styles-variations_item .edit-site-global-styles-variations_item-preview.is-pill .block-editor-iframe__scale-container{overflow:hidden}.edit-site-global-styles-variations_item:not(.is-active):hover .edit-site-global-styles-variations_item-preview{outline-color:#0000004d}.edit-site-global-styles-variations_item.is-active .edit-site-global-styles-variations_item-preview,.edit-site-global-styles-variations_item:focus-visible .edit-site-global-styles-variations_item-preview{outline-color:#1e1e1e;outline-offset:1px;outline-width:var(--wp-admin-border-width-focus)}.edit-site-global-styles-variations_item:focus-visible .edit-site-global-styles-variations_item-preview{outline-color:var(--wp-admin-theme-color)}.edit-site-styles .edit-site-global-styles-screen-root{box-shadow:none}.edit-site-styles .edit-site-global-styles-screen-root>div>hr{display:none}.edit-site-styles .edit-site-global-styles-sidebar__navigator-provider .components-tools-panel{border-top:none}.edit-site-styles .edit-site-global-styles-sidebar__navigator-provider{overflow-y:auto;padding-left:0;padding-right:0}.edit-site-styles .edit-site-global-styles-sidebar__navigator-provider .edit-site-global-styles-sidebar__navigator-screen{outline:none;padding:12px}.edit-site-styles .edit-site-sidebar-button{color:#1e1e1e}::view-transition-image-pair(root){isolation:auto}::view-transition-new(root),::view-transition-old(root){animation:none;display:block;mix-blend-mode:normal}body.js #wpadminbar{display:none}body.js #wpbody{padding-top:0}body.js.appearance_page_gutenberg-template-parts,body.js.site-editor-php{background:#fff}body.js.appearance_page_gutenberg-template-parts #wpcontent,body.js.site-editor-php #wpcontent{padding-left:0}body.js.appearance_page_gutenberg-template-parts #wpbody-content,body.js.site-editor-php #wpbody-content{padding-bottom:0}body.js.appearance_page_gutenberg-template-parts #wpbody-content>div:not(.edit-site):not(#screen-meta),body.js.appearance_page_gutenberg-template-parts #wpfooter,body.js.site-editor-php #wpbody-content>div:not(.edit-site):not(#screen-meta),body.js.site-editor-php #wpfooter{display:none}body.js.appearance_page_gutenberg-template-parts .a11y-speak-region,body.js.site-editor-php .a11y-speak-region{left:-1px;top:-1px}body.js.appearance_page_gutenberg-template-parts ul#adminmenu a.wp-has-current-submenu:after,body.js.appearance_page_gutenberg-template-parts ul#adminmenu>li.current>a.current:after,body.js.site-editor-php ul#adminmenu a.wp-has-current-submenu:after,body.js.site-editor-php ul#adminmenu>li.current>a.current:after{border-right-color:#fff}body.js.appearance_page_gutenberg-template-parts .media-frame select.attachment-filters:last-of-type,body.js.site-editor-php .media-frame select.attachment-filters:last-of-type{max-width:100%;width:auto}body.js.site-editor-php{background:#1e1e1e}.edit-site{box-sizing:border-box}.edit-site *,.edit-site :after,.edit-site :before{box-sizing:inherit}.edit-site{height:100vh}@media (min-width:600px){.edit-site{bottom:0;left:0;min-height:100vh;position:fixed;right:0;top:0}}.no-js .edit-site{min-height:0;position:static}.edit-site .interface-interface-skeleton{top:0}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,114.7661290323,160.5;--wp-admin-theme-color-darker-20:#006187;--wp-admin-theme-color-darker-20--rgb:0,96.5322580645,135;--wp-admin-border-width-focus:2px}@media (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.0384615385,68.7307692308,230.4615384615;--wp-admin-theme-color-darker-20:#183ad6;--wp-admin-theme-color-darker-20--rgb:23.6923076923,58.1538461538,214.3076923077;--wp-admin-border-width-focus:2px}@media (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.3723404255,81.914893617,108.1276595745;--wp-admin-theme-color-darker-20:#064054;--wp-admin-theme-color-darker-20--rgb:5.7446808511,63.829787234,84.2553191489;--wp-admin-border-width-focus:2px}@media (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.2692307692,51.4461538462,48.2307692308;--wp-admin-theme-color-darker-20:#2b2724;--wp-admin-theme-color-darker-20--rgb:42.5384615385,38.8923076923,36.4615384615;--wp-admin-border-width-focus:2px}@media (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:69.8430232558,53.6598837209,92.8401162791;--wp-admin-theme-color-darker-20:#3a2c4d;--wp-admin-theme-color-darker-20--rgb:57.6860465116,44.3197674419,76.6802325581;--wp-admin-border-width-focus:2px}@media (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.4908256881,56.1788990826,45.0091743119;--wp-admin-theme-color-darker-20:#d02c21;--wp-admin-theme-color-darker-20--rgb:207.8348623853,44.2201834862,33.1651376147;--wp-admin-border-width-focus:2px}@media (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.0873362445,110.192139738,116.4126637555;--wp-admin-theme-color-darker-20:#4c6066;--wp-admin-theme-color-darker-20--rgb:76.1746724891,96.384279476,101.8253275109;--wp-admin-border-width-focus:2px}@media (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:216.8782608696,116.1847826087,37.6217391304;--wp-admin-theme-color-darker-20:#c36922;--wp-admin-theme-color-darker-20--rgb:195.147826087,104.5434782609,33.852173913;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-sunrise{--wp-admin-border-width-focus:1.5px}}
\ No newline at end of file
+@charset "UTF-8";.admin-ui-page{background-color:#fff;color:#2f2f2f;container:admin-ui-page/inline-size;display:flex;flex-flow:column;height:100%;position:relative;z-index:1}@media not (prefers-reduced-motion){.admin-ui-page{transition:width .2s ease-out}}.admin-ui-page__header{background:#fff;border-bottom:1px solid #f0f0f0;padding:16px 48px;position:sticky;top:0}@container (max-width: 430px){.admin-ui-page__header{padding:16px 24px}}.admin-ui-page__header-subtitle{color:#757575;font-family:-apple-system,"system-ui",Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:400;line-height:20px;margin:0;padding-block-end:8px}.admin-ui-page__content{display:flex;flex-direction:column;flex-grow:1;overflow:auto}.admin-ui-page__content.has-padding{padding:16px 20px}@container (max-width: 430px){.admin-ui-page__content.has-padding{padding:16px 24px}}.show-icon-labels .admin-ui-page__header-actions .components-button.has-icon{padding:0 8px;width:auto}.show-icon-labels .admin-ui-page__header-actions .components-button.has-icon svg{display:none}.show-icon-labels .admin-ui-page__header-actions .components-button.has-icon:after{content:attr(aria-label);font-size:12px}.dataviews-picker-wrapper,.dataviews-wrapper{box-sizing:border-box;container:dataviews-wrapper/inline-size;display:flex;flex-direction:column;font-size:13px;height:100%;line-height:1.4;overflow:auto;scroll-padding-bottom:64px}.dataviews-filters__container,.dataviews__view-actions{box-sizing:border-box;flex-shrink:0;left:0;padding:16px 48px;position:sticky}@media not (prefers-reduced-motion){.dataviews-filters__container,.dataviews__view-actions{transition:padding .1s ease-out}}.dataviews-loading,.dataviews-no-results{align-items:center;display:flex;flex-grow:1;justify-content:center;padding:0 48px}@media not (prefers-reduced-motion){.dataviews-loading,.dataviews-no-results{transition:padding .1s ease-out}}.dataviews-loading-more{text-align:center}@container (max-width: 430px){.dataviews-filters__container,.dataviews__view-actions{padding:12px 24px}.dataviews-loading,.dataviews-no-results{padding-left:24px;padding-right:24px}}.dataviews-title-field{font-size:13px;font-weight:500;width:100%}.dataviews-title-field,.dataviews-title-field a{color:#2f2f2f;text-overflow:ellipsis;white-space:nowrap}.dataviews-title-field a{display:block;flex-grow:0;overflow:hidden;text-decoration:none}.dataviews-title-field a:hover{color:var(--wp-admin-theme-color)}.dataviews-title-field a:focus{border-radius:2px;box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color,#007cba);color:var(--wp-admin-theme-color--rgb)}.dataviews-title-field button.components-button.is-link{color:#1e1e1e;display:block;font-weight:inherit;overflow:hidden;text-decoration:none;text-overflow:ellipsis;white-space:nowrap;width:100%}.dataviews-title-field button.components-button.is-link:hover{color:var(--wp-admin-theme-color)}.dataviews-title-field--clickable{color:#2f2f2f;cursor:pointer}.dataviews-title-field--clickable:hover{color:var(--wp-admin-theme-color)}.dataviews-title-field--clickable:focus{border-radius:2px;box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color,#007cba);color:var(--wp-admin-theme-color--rgb)}.components-card__body:has(>.dataviews-picker-wrapper),.components-card__body:has(>.dataviews-wrapper){overflow:hidden;padding:8px 0 0}.components-card__body:has(>.dataviews-picker-wrapper) .dataviews-filters__container,.components-card__body:has(>.dataviews-picker-wrapper) .dataviews-footer,.components-card__body:has(>.dataviews-picker-wrapper) .dataviews-loading,.components-card__body:has(>.dataviews-picker-wrapper) .dataviews-no-results,.components-card__body:has(>.dataviews-picker-wrapper) .dataviews-view-grid,.components-card__body:has(>.dataviews-picker-wrapper) .dataviews__view-actions,.components-card__body:has(>.dataviews-wrapper) .dataviews-filters__container,.components-card__body:has(>.dataviews-wrapper) .dataviews-footer,.components-card__body:has(>.dataviews-wrapper) .dataviews-loading,.components-card__body:has(>.dataviews-wrapper) .dataviews-no-results,.components-card__body:has(>.dataviews-wrapper) .dataviews-view-grid,.components-card__body:has(>.dataviews-wrapper) .dataviews__view-actions{padding-inline:24px}.components-card__body:has(>.dataviews-picker-wrapper) .dataviews-view-table tr td:first-child,.components-card__body:has(>.dataviews-picker-wrapper) .dataviews-view-table tr th:first-child,.components-card__body:has(>.dataviews-wrapper) .dataviews-view-table tr td:first-child,.components-card__body:has(>.dataviews-wrapper) .dataviews-view-table tr th:first-child{padding-inline-start:24px}.components-card__body:has(>.dataviews-picker-wrapper) .dataviews-view-table tr td:last-child,.components-card__body:has(>.dataviews-picker-wrapper) .dataviews-view-table tr th:last-child,.components-card__body:has(>.dataviews-wrapper) .dataviews-view-table tr td:last-child,.components-card__body:has(>.dataviews-wrapper) .dataviews-view-table tr th:last-child{padding-inline-end:24px}.dataviews-bulk-actions-footer__item-count{color:#1e1e1e;font-size:11px;font-weight:500;text-transform:uppercase}.dataviews-bulk-actions-footer__container{margin-right:auto;min-height:32px}.dataviews-filters__button{position:relative}.dataviews-filters__container{padding-top:0}.dataviews-filters__reset-button.dataviews-filters__reset-button[aria-disabled=true],.dataviews-filters__reset-button.dataviews-filters__reset-button[aria-disabled=true]:hover{opacity:0}.dataviews-filters__reset-button.dataviews-filters__reset-button[aria-disabled=true]:focus{opacity:1}.dataviews-filters__summary-popover{font-size:13px;line-height:1.4}.dataviews-filters__summary-popover .components-popover__content{border-radius:4px;max-width:250px;min-width:230px;width:100%}.dataviews-filters__summary-popover.components-dropdown__content .components-popover__content{padding:0}.dataviews-filters__summary-operators-container{padding:8px 16px}.dataviews-filters__summary-operators-container:has(+.dataviews-filters__search-widget-listbox),.dataviews-filters__summary-operators-container:has(+.dataviews-filters__search-widget-no-elements),.dataviews-filters__summary-operators-container:has(+.dataviews-filters__user-input-widget){border-bottom:1px solid #e0e0e0}.dataviews-filters__summary-operators-container:empty{display:none}.dataviews-filters__summary-operators-container .dataviews-filters__summary-operators-filter-name{color:#757575;flex-shrink:0;max-width:calc(100% - 55px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dataviews-filters__summary-operators-container .dataviews-filters__summary-operators-filter-select{overflow:hidden;white-space:nowrap;width:100%}.dataviews-filters__summary-chip-container{position:relative;white-space:pre-wrap}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip{align-items:center;background:#f0f0f0;border:1px solid #0000;border-radius:16px;box-sizing:border-box;color:#2f2f2f;cursor:pointer;display:flex;min-height:32px;padding:4px 12px;position:relative}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.is-not-clickable{cursor:default}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.has-reset{padding-inline-end:28px}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip:focus-visible,.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip:hover:not(.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.is-not-clickable),.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip[aria-expanded=true]{background:#e0e0e0;color:#1e1e1e}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.has-values{background:rgba(var(--wp-admin-theme-color--rgb),.04);color:var(--wp-admin-theme-color)}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.has-values:hover,.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.has-values[aria-expanded=true]{background:rgba(var(--wp-admin-theme-color--rgb),.12)}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip:focus-visible{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:none}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip .dataviews-filters-__summary-filter-text-name{font-weight:500}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove{align-items:center;background:#0000;border:0;border-radius:50%;cursor:pointer;display:flex;height:24px;justify-content:center;padding:0;position:absolute;right:4px;top:50%;transform:translateY(-50%);width:24px}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove svg{fill:#757575}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove:focus,.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove:hover{background:#e0e0e0}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove:focus svg,.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove:hover svg{fill:#1e1e1e}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove.has-values svg{fill:var(--wp-admin-theme-color)}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove.has-values:hover{background:rgba(var(--wp-admin-theme-color--rgb),.08)}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove:focus-visible{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:none}.dataviews-filters__search-widget-filter-combobox-list{border-top:1px solid #e0e0e0;max-height:184px;overflow:auto;padding:4px}.dataviews-filters__search-widget-filter-combobox-list .dataviews-filters__search-widget-filter-combobox-item-value [data-user-value]{font-weight:600}.dataviews-filters__search-widget-listbox{overflow:auto;padding:4px}.dataviews-filters__search-widget-listitem{align-items:center;border-radius:2px;box-sizing:border-box;cursor:default;display:flex;font-family:-apple-system,"system-ui",Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:400;gap:8px;line-height:20px;min-height:32px;padding:4px 12px}.dataviews-filters__search-widget-listitem:last-child{margin-block-end:0}.dataviews-filters__search-widget-listitem:focus,.dataviews-filters__search-widget-listitem:hover,.dataviews-filters__search-widget-listitem[data-active-item]{background-color:var(--wp-admin-theme-color);color:#fff}.dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-description,.dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-description,.dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-description{color:#fff}.dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-single-selection,.dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-single-selection,.dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-single-selection{background:#fff;border-color:var(--wp-admin-theme-color-darker-20,#183ad6)}.dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-single-selection.is-selected,.dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-single-selection.is-selected,.dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-single-selection.is-selected{background:var(--wp-admin-theme-color-darker-20,#183ad6);border-color:var(--wp-admin-theme-color-darker-20,#183ad6)}.dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-multi-selection,.dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-multi-selection,.dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-multi-selection{border-color:var(--wp-admin-theme-color-darker-20,#183ad6)}.dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-multi-selection.is-selected,.dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-multi-selection.is-selected,.dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-multi-selection.is-selected{background:var(--wp-admin-theme-color-darker-20,#183ad6);border-color:var(--wp-admin-theme-color-darker-20,#183ad6)}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-description{color:#757575;display:block;font-size:12px;line-height:16px;overflow:hidden;text-overflow:ellipsis}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection{border:1px solid #1e1e1e;border-radius:50%;height:24px;margin-right:12px;max-width:24px;min-width:24px;position:relative;transition:none;width:24px}@media not (prefers-reduced-motion){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection{transition:box-shadow .1s linear}}@media (min-width:600px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection{height:16px;max-width:16px;min-width:16px;width:16px}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection:checked:before{background-color:#fff;border:4px solid #fff;box-sizing:inherit;height:12px;left:50%;margin:0;position:absolute;top:50%;transform:translate(-50%,-50%);width:12px}@media (min-width:600px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection:checked:before{height:8px;width:8px}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color);outline:2px solid #0000}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection:checked{background:var(--wp-admin-theme-color);border:none}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection{margin:0;padding:0}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection.is-selected{background:var(--wp-admin-theme-color,#3858e9);border-color:var(--wp-admin-theme-color,#3858e9)}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection.is-selected:before{background-color:#fff;border:4px solid #fff;border-radius:50%;box-sizing:inherit;content:"";height:12px;left:50%;margin:0;position:absolute;top:50%;transform:translate(-50%,-50%);width:12px}@media (min-width:600px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection.is-selected:before{height:8px;width:8px}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection{--checkbox-size:24px;border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 #0000;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:normal;margin-right:12px;padding:6px 8px;transition:none}@media not (prefers-reduced-motion){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection{transition:box-shadow .1s linear}}@media (min-width:600px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection{font-size:13px;line-height:normal}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color)}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection::-webkit-input-placeholder{color:#1e1e1e9e}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection::-moz-placeholder{color:#1e1e1e9e}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:-ms-input-placeholder{color:#1e1e1e9e}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color);outline:2px solid #0000}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:checked{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:checked::-ms-check{opacity:0}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:checked:before,.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-checked=mixed]:before{color:#fff;margin:-3px -5px}@media (min-width:782px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:checked:before,.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-checked=mixed]:before{margin:-4px 0 0 -5px}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-checked=mixed]{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-checked=mixed]:before{content:"\f460";display:inline-block;float:left;font:normal 30px/1 dashicons;vertical-align:middle;width:16px;speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (min-width:782px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-checked=mixed]:before{float:none;font-size:21px}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:disabled,.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-disabled=true]{background:#f0f0f0;border-color:#ddd;cursor:default;opacity:1}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection{background:#fff;color:#1e1e1e;height:var(--checkbox-size);margin:0;padding:0;position:relative;width:var(--checkbox-size)}@media (min-width:600px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection{--checkbox-size:16px}}@media not (prefers-reduced-motion){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection{transition:border-color .1s ease-in-out}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection.is-selected{background:var(--wp-admin-theme-color,#3858e9);border-color:var(--wp-admin-theme-color,#3858e9)}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection.is-selected svg{--checkmark-size:var(--checkbox-size);fill:#fff;height:var(--checkmark-size);left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:var(--checkmark-size)}@media (min-width:600px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection.is-selected svg{--checkmark-size:calc(var(--checkbox-size) + 4px)}}.dataviews-filters__search-widget-filter-combobox__wrapper{padding:8px;position:relative}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input{border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 #0000;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;line-height:normal;padding:6px 8px}@media not (prefers-reduced-motion){.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input{transition:box-shadow .1s linear}}@media (min-width:600px){.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input{font-size:13px;line-height:normal}}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid #0000}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-webkit-input-placeholder{color:#1e1e1e9e}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-moz-placeholder{color:#1e1e1e9e}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input:-ms-input-placeholder{color:#1e1e1e9e}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input{display:block;font-size:16px;height:32px;margin-left:0;margin-right:0;padding:0 8px 0 32px;width:100%}@media (min-width:600px){.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input{font-size:13px}}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input:focus{background:#fff;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::placeholder{color:#757575}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-webkit-search-cancel-button,.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-webkit-search-decoration,.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-webkit-search-results-button,.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-webkit-search-results-decoration{-webkit-appearance:none}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__icon{align-items:center;bottom:0;display:flex;inset-inline-start:12px;justify-content:center;position:absolute;top:0;width:24px}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__icon:dir(ltr){transform:scaleX(-1)}.dataviews-filters__container-visibility-toggle{flex-shrink:0;position:relative}.dataviews-filters-toggle__count{background:var(--wp-admin-theme-color,#3858e9);border-radius:8px;box-sizing:border-box;color:#fff;font-size:11px;height:16px;line-height:16px;min-width:16px;outline:var(--wp-admin-border-width-focus) solid #fff;padding:0 4px;position:absolute;right:0;text-align:center;top:0;transform:translate(50%,-50%)}.dataviews-search{width:fit-content}.dataviews-filters__user-input-widget{padding:16px}.dataviews-filters__user-input-widget .components-input-control__prefix{padding-left:8px}.dataviews-filters__search-widget-no-elements{align-items:center;display:flex;justify-content:center;padding:16px}.dataviews-footer{background-color:#fff;border-top:1px solid #f0f0f0;bottom:0;flex-shrink:0;left:0;padding:12px 48px;position:sticky}@media not (prefers-reduced-motion){.dataviews-footer{transition:padding .1s ease-out}}.dataviews-footer{z-index:2}@container (max-width: 430px){.dataviews-footer{padding:12px 24px}}@container (max-width: 560px){.dataviews-footer{flex-direction:column!important}.dataviews-footer .dataviews-bulk-actions-footer__container{width:100%}.dataviews-footer .dataviews-bulk-actions-footer__item-count{flex-grow:1}.dataviews-footer .dataviews-pagination{justify-content:space-between;width:100%}}.dataviews-pagination__page-select{font-size:11px;font-weight:500;text-transform:uppercase}@media (min-width:600px){.dataviews-pagination__page-select .components-select-control__input{font-size:11px!important;font-weight:500}}.dataviews-action-modal{z-index:1000001}.dataviews-picker-footer__bulk-selection{align-self:flex-start;height:32px}.dataviews-picker-footer__actions{align-self:flex-end}.dataviews-selection-checkbox{--checkbox-input-size:24px}@media (min-width:600px){.dataviews-selection-checkbox{--checkbox-input-size:16px}}.dataviews-selection-checkbox{flex-shrink:0;line-height:0}.dataviews-selection-checkbox .components-checkbox-control__input-container{margin:0}.dataviews-view-config{container-type:inline-size;font-size:13px;line-height:1.4;width:320px}.dataviews-config__popover.is-expanded .dataviews-config__popover-content-wrapper{height:100%;overflow-y:scroll}.dataviews-config__popover.is-expanded .dataviews-config__popover-content-wrapper .dataviews-view-config{width:auto}.dataviews-view-config__sort-direction .components-toggle-group-control-option-base{text-transform:uppercase}.dataviews-settings-section__title.dataviews-settings-section__title{font-size:15px;line-height:24px}.dataviews-settings-section__sidebar{grid-column:span 4}.dataviews-settings-section__content,.dataviews-settings-section__content>*{grid-column:span 8}.dataviews-settings-section__content .is-divided-in-two{display:contents}.dataviews-settings-section__content .is-divided-in-two>*{grid-column:span 4}.dataviews-settings-section:has(.dataviews-settings-section__content:empty){display:none}@container (max-width: 500px){.dataviews-settings-section.dataviews-settings-section{grid-template-columns:repeat(2,1fr)}.dataviews-settings-section.dataviews-settings-section .dataviews-settings-section__content,.dataviews-settings-section.dataviews-settings-section .dataviews-settings-section__sidebar{grid-column:span 2}}.dataviews-field-control__field{height:32px}.dataviews-field-control__actions{position:absolute;top:-9999em}.dataviews-field-control__actions.dataviews-field-control__actions{gap:4px}.dataviews-field-control__field.is-interacting .dataviews-field-control__actions,.dataviews-field-control__field:focus-within .dataviews-field-control__actions,.dataviews-field-control__field:hover .dataviews-field-control__actions{position:unset;top:unset}.dataviews-field-control__icon{display:flex;width:24px}.dataviews-field-control__label-sub-label-container{flex-grow:1}.dataviews-field-control__label{display:block}.dataviews-field-control__sub-label{color:#757575;font-size:11px;font-style:normal;margin-bottom:0;margin-top:8px}.dataviews-view-grid-items{container-type:inline-size;display:grid;gap:32px;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));grid-template-rows:max-content;margin-bottom:auto;padding:0 48px 24px}@container (max-width: 430px){.dataviews-view-grid-items{padding-left:24px;padding-right:24px}}@media not (prefers-reduced-motion){.dataviews-view-grid-items{transition:padding .1s ease-out}}.dataviews-view-grid .dataviews-view-grid__card{height:100%;justify-content:flex-start;position:relative}.dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__title-actions{padding:8px 0 4px}.dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__title-field{align-content:center;min-height:24px;overflow:hidden;text-align:start}.dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__title-field--clickable{width:fit-content}.dataviews-view-grid .dataviews-view-grid__card.is-selected .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-value{color:#1e1e1e}.dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__media:focus:after,.dataviews-view-grid .dataviews-view-grid__card.is-selected .dataviews-view-grid__media:after{background-color:rgba(var(--wp-admin-theme-color--rgb),.08)}.dataviews-view-grid .dataviews-view-grid__card.is-selected .dataviews-view-grid__media:after{box-shadow:inset 0 0 0 1px var(--wp-admin-theme-color)}.dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__media:focus:after{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.dataviews-view-grid .dataviews-view-grid__media{aspect-ratio:1/1;background-color:#fff;border-radius:4px;overflow:hidden;position:relative;width:100%}.dataviews-view-grid .dataviews-view-grid__media img{height:100%;object-fit:cover;width:100%}.dataviews-view-grid .dataviews-view-grid__media:after{border-radius:4px;box-shadow:inset 0 0 0 1px #0000001a;content:"";height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%}.dataviews-view-grid .dataviews-view-grid__fields{font-size:12px;line-height:16px;position:relative}.dataviews-view-grid .dataviews-view-grid__fields:not(:empty){padding:0 0 12px}.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field-value:not(:empty){line-height:20px;min-height:24px;padding-top:2px}.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field{align-items:center;min-height:24px}.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-name{color:#757575;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:35%}.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:65%}.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field:not(:has(.dataviews-view-grid__field-value:not(:empty))){display:none}.dataviews-view-grid .dataviews-view-grid__badge-fields:not(:empty){padding-bottom:12px}.dataviews-view-grid__field-value:empty,.dataviews-view-grid__field:empty{display:none}.dataviews-view-grid__card .dataviews-selection-checkbox{left:8px;opacity:0;position:absolute;top:-9999em;z-index:1}@media not (prefers-reduced-motion){.dataviews-view-grid__card .dataviews-selection-checkbox{transition:opacity .1s linear}}@media (hover:none){.dataviews-view-grid__card .dataviews-selection-checkbox{opacity:1;top:8px}}.dataviews-view-grid__card.is-selected .dataviews-selection-checkbox,.dataviews-view-grid__card:focus-within .dataviews-selection-checkbox,.dataviews-view-grid__card:hover .dataviews-selection-checkbox{opacity:1;top:8px}.dataviews-view-grid__card .dataviews-view-grid__media-actions{opacity:0;position:absolute;right:4px;top:4px}.dataviews-view-grid__card .dataviews-view-grid__media-actions .dataviews-all-actions-button{background-color:#fff}@media not (prefers-reduced-motion){.dataviews-view-grid__card .dataviews-view-grid__media-actions{transition:opacity .1s linear}}@media (hover:none){.dataviews-view-grid__card .dataviews-view-grid__media-actions{opacity:1;top:4px}}.dataviews-view-grid__card .dataviews-view-grid__media-actions:has(.dataviews-all-actions-button[aria-expanded=true]),.dataviews-view-grid__card:focus-within .dataviews-view-grid__media-actions,.dataviews-view-grid__card:hover .dataviews-view-grid__media-actions{opacity:1}.dataviews-view-grid__media--clickable{cursor:pointer}.dataviews-view-grid__group-header{color:#1e1e1e;container-type:inline-size;font-size:15px;font-weight:500;margin:0 0 8px;padding:0 48px}@container (max-width: 430px){.dataviews-view-grid__group-header{padding-left:24px;padding-right:24px}}div.dataviews-view-list{list-style-type:none}.dataviews-view-list{margin:0 0 auto}.dataviews-view-list div[role=article],.dataviews-view-list div[role=row]{border-top:1px solid #f0f0f0;margin:0}.dataviews-view-list div[role=article] .dataviews-view-list__item-wrapper,.dataviews-view-list div[role=row] .dataviews-view-list__item-wrapper{box-sizing:border-box;padding:16px 24px;position:relative}.dataviews-view-list div[role=article] .dataviews-view-list__item-actions,.dataviews-view-list div[role=row] .dataviews-view-list__item-actions{display:flex;flex:0 0 auto;gap:4px;white-space:nowrap;width:max-content}.dataviews-view-list div[role=article] .dataviews-view-list__item-actions .components-button,.dataviews-view-list div[role=row] .dataviews-view-list__item-actions .components-button{position:relative;z-index:1}.dataviews-view-list div[role=article] .dataviews-view-list__item-actions>div,.dataviews-view-list div[role=row] .dataviews-view-list__item-actions>div{height:24px}.dataviews-view-list div[role=article] .dataviews-view-list__item-actions>:not(:last-child),.dataviews-view-list div[role=row] .dataviews-view-list__item-actions>:not(:last-child){flex:0;overflow:hidden;width:0}.dataviews-view-list div[role=article]:where(.is-selected,.is-hovered,:focus-within) .dataviews-view-list__item-actions>:not(:last-child),.dataviews-view-list div[role=row]:where(.is-selected,.is-hovered,:focus-within) .dataviews-view-list__item-actions>:not(:last-child){flex-basis:min-content;overflow:unset;width:auto}@media (hover:none){.dataviews-view-list div[role=article] .dataviews-view-list__item-actions>:not(:last-child),.dataviews-view-list div[role=row] .dataviews-view-list__item-actions>:not(:last-child){flex-basis:min-content;overflow:unset;width:auto}}.dataviews-view-list div[role=article].is-selected.is-selected,.dataviews-view-list div[role=article].is-selected.is-selected+div[role=article],.dataviews-view-list div[role=article].is-selected.is-selected+div[role=row],.dataviews-view-list div[role=row].is-selected.is-selected,.dataviews-view-list div[role=row].is-selected.is-selected+div[role=article],.dataviews-view-list div[role=row].is-selected.is-selected+div[role=row]{border-top:1px solid rgba(var(--wp-admin-theme-color--rgb),.12)}.dataviews-view-list div[role=article]:not(.is-selected) .dataviews-view-list__title-field,.dataviews-view-list div[role=row]:not(.is-selected) .dataviews-view-list__title-field{color:#1e1e1e}.dataviews-view-list div[role=article]:not(.is-selected).is-hovered,.dataviews-view-list div[role=article]:not(.is-selected):focus-within,.dataviews-view-list div[role=article]:not(.is-selected):hover,.dataviews-view-list div[role=row]:not(.is-selected).is-hovered,.dataviews-view-list div[role=row]:not(.is-selected):focus-within,.dataviews-view-list div[role=row]:not(.is-selected):hover{background-color:#f8f8f8;color:var(--wp-admin-theme-color)}.dataviews-view-list div[role=article]:not(.is-selected).is-hovered .dataviews-view-list__fields,.dataviews-view-list div[role=article]:not(.is-selected).is-hovered .dataviews-view-list__title-field,.dataviews-view-list div[role=article]:not(.is-selected):focus-within .dataviews-view-list__fields,.dataviews-view-list div[role=article]:not(.is-selected):focus-within .dataviews-view-list__title-field,.dataviews-view-list div[role=article]:not(.is-selected):hover .dataviews-view-list__fields,.dataviews-view-list div[role=article]:not(.is-selected):hover .dataviews-view-list__title-field,.dataviews-view-list div[role=row]:not(.is-selected).is-hovered .dataviews-view-list__fields,.dataviews-view-list div[role=row]:not(.is-selected).is-hovered .dataviews-view-list__title-field,.dataviews-view-list div[role=row]:not(.is-selected):focus-within .dataviews-view-list__fields,.dataviews-view-list div[role=row]:not(.is-selected):focus-within .dataviews-view-list__title-field,.dataviews-view-list div[role=row]:not(.is-selected):hover .dataviews-view-list__fields,.dataviews-view-list div[role=row]:not(.is-selected):hover .dataviews-view-list__title-field{color:var(--wp-admin-theme-color)}.dataviews-view-list div[role=article].is-selected .dataviews-view-list__item-wrapper,.dataviews-view-list div[role=article].is-selected:focus-within .dataviews-view-list__item-wrapper,.dataviews-view-list div[role=row].is-selected .dataviews-view-list__item-wrapper,.dataviews-view-list div[role=row].is-selected:focus-within .dataviews-view-list__item-wrapper{background-color:rgba(var(--wp-admin-theme-color--rgb),.04);color:#1e1e1e}.dataviews-view-list div[role=article].is-selected .dataviews-view-list__item-wrapper .dataviews-view-list__fields,.dataviews-view-list div[role=article].is-selected .dataviews-view-list__item-wrapper .dataviews-view-list__title-field,.dataviews-view-list div[role=article].is-selected:focus-within .dataviews-view-list__item-wrapper .dataviews-view-list__fields,.dataviews-view-list div[role=article].is-selected:focus-within .dataviews-view-list__item-wrapper .dataviews-view-list__title-field,.dataviews-view-list div[role=row].is-selected .dataviews-view-list__item-wrapper .dataviews-view-list__fields,.dataviews-view-list div[role=row].is-selected .dataviews-view-list__item-wrapper .dataviews-view-list__title-field,.dataviews-view-list div[role=row].is-selected:focus-within .dataviews-view-list__item-wrapper .dataviews-view-list__fields,.dataviews-view-list div[role=row].is-selected:focus-within .dataviews-view-list__item-wrapper .dataviews-view-list__title-field{color:var(--wp-admin-theme-color)}.dataviews-view-list .dataviews-view-list__item{appearance:none;background:none;border:none;cursor:pointer;inset:0;padding:0;position:absolute;scroll-margin:8px 0;z-index:1}.dataviews-view-list .dataviews-view-list__item:focus-visible{outline:none}.dataviews-view-list .dataviews-view-list__item:focus-visible:before{border-radius:2px;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);content:"";inset:var(--wp-admin-border-width-focus);outline:2px solid #0000;position:absolute}.dataviews-view-list .dataviews-view-list__title-field{flex:1;line-height:24px;min-height:24px;overflow:hidden}.dataviews-view-list .dataviews-view-list__title-field:has(a,button){z-index:1}.dataviews-view-list .dataviews-view-list__media-wrapper{background-color:#fff;border-radius:4px;flex-shrink:0;height:52px;overflow:hidden;position:relative;width:52px}.dataviews-view-list .dataviews-view-list__media-wrapper img{height:100%;object-fit:cover;width:100%}.dataviews-view-list .dataviews-view-list__media-wrapper:after{border-radius:4px;box-shadow:inset 0 0 0 1px #0000001a;content:"";height:100%;left:0;position:absolute;top:0;width:100%}.dataviews-view-list .dataviews-view-list__field-wrapper{flex-grow:1;min-height:52px}.dataviews-view-list .dataviews-view-list__fields{color:#757575;display:flex;flex-wrap:wrap;font-size:12px;gap:12px;row-gap:4px}.dataviews-view-list .dataviews-view-list__fields .dataviews-view-list__field:has(.dataviews-view-list__field-value:empty),.dataviews-view-list .dataviews-view-list__fields:empty{display:none}.dataviews-view-list .dataviews-view-list__fields .dataviews-view-list__field-value{align-items:center;display:flex;line-height:20px;min-height:24px}.dataviews-view-list+.dataviews-pagination{justify-content:space-between}.dataviews-view-list__group-header{color:#1e1e1e;font-size:15px;font-weight:500;margin:0 0 8px;padding:0 24px}.dataviews-view-table{border-collapse:collapse;border-color:inherit;color:#757575;margin-bottom:auto;position:relative;text-indent:0;width:100%}.dataviews-view-table th{color:#1e1e1e;font-size:13px;font-weight:400;text-align:left}.dataviews-view-table td,.dataviews-view-table th{padding:12px}.dataviews-view-table td.dataviews-view-table__actions-column,.dataviews-view-table th.dataviews-view-table__actions-column{text-align:right}.dataviews-view-table td.dataviews-view-table__actions-column--sticky,.dataviews-view-table th.dataviews-view-table__actions-column--sticky{background-color:#fff;position:sticky;right:0}.dataviews-view-table td.dataviews-view-table__actions-column--stuck:after,.dataviews-view-table th.dataviews-view-table__actions-column--stuck:after{background-color:#f0f0f0;bottom:0;content:"";display:block;left:0;position:absolute;top:0;width:1px}.dataviews-view-table td.dataviews-view-table__checkbox-column,.dataviews-view-table th.dataviews-view-table__checkbox-column{padding-right:0}.dataviews-view-table td.dataviews-view-table__checkbox-column .dataviews-view-table__cell-content-wrapper,.dataviews-view-table th.dataviews-view-table__checkbox-column .dataviews-view-table__cell-content-wrapper{max-width:auto;min-width:auto}.dataviews-view-table tr{border-top:1px solid #f0f0f0}.dataviews-view-table tr .dataviews-view-table-header-button{gap:4px}.dataviews-view-table tr td:first-child,.dataviews-view-table tr th:first-child{padding-left:48px}.dataviews-view-table tr td:first-child .dataviews-view-table-header-button,.dataviews-view-table tr th:first-child .dataviews-view-table-header-button{margin-left:-8px}.dataviews-view-table tr td:last-child,.dataviews-view-table tr th:last-child{padding-right:48px}.dataviews-view-table tr:last-child{border-bottom:0}.dataviews-view-table tr.is-hovered,.dataviews-view-table tr.is-hovered .dataviews-view-table__actions-column--sticky{background-color:#f8f8f8}.dataviews-view-table tr .components-checkbox-control__input.components-checkbox-control__input{opacity:0}.dataviews-view-table tr .components-checkbox-control__input.components-checkbox-control__input:checked,.dataviews-view-table tr .components-checkbox-control__input.components-checkbox-control__input:focus,.dataviews-view-table tr .components-checkbox-control__input.components-checkbox-control__input:indeterminate{opacity:1}.dataviews-view-table tr .dataviews-item-actions .components-button:not(.dataviews-all-actions-button){opacity:0}.dataviews-view-table tr.is-hovered .components-checkbox-control__input,.dataviews-view-table tr.is-hovered .dataviews-item-actions .components-button:not(.dataviews-all-actions-button),.dataviews-view-table tr:focus-within .components-checkbox-control__input,.dataviews-view-table tr:focus-within .dataviews-item-actions .components-button:not(.dataviews-all-actions-button),.dataviews-view-table tr:hover .components-checkbox-control__input,.dataviews-view-table tr:hover .dataviews-item-actions .components-button:not(.dataviews-all-actions-button){opacity:1}@media (hover:none){.dataviews-view-table tr .components-checkbox-control__input.components-checkbox-control__input,.dataviews-view-table tr .dataviews-item-actions .components-button:not(.dataviews-all-actions-button){opacity:1}}.dataviews-view-table tr.is-selected{background-color:rgba(var(--wp-admin-theme-color--rgb),.04);color:#757575}.dataviews-view-table tr.is-selected,.dataviews-view-table tr.is-selected+tr{border-top:1px solid rgba(var(--wp-admin-theme-color--rgb),.12)}.dataviews-view-table tr.is-selected:hover{background-color:rgba(var(--wp-admin-theme-color--rgb),.08)}.dataviews-view-table tr.is-selected .dataviews-view-table__actions-column--sticky{background-color:color-mix(in srgb,rgb(var(--wp-admin-theme-color--rgb)) 4%,#fff)}.dataviews-view-table tr.is-selected:hover .dataviews-view-table__actions-column--sticky{background-color:color-mix(in srgb,rgb(var(--wp-admin-theme-color--rgb)) 8%,#fff)}.dataviews-view-table thead{inset-block-start:0;position:sticky;z-index:1}.dataviews-view-table thead tr{border:0}.dataviews-view-table thead tr .components-checkbox-control__input.components-checkbox-control__input{opacity:1}.dataviews-view-table thead th{background-color:#fff;font-size:11px;font-weight:500;padding-bottom:8px;padding-left:12px;padding-top:8px;text-transform:uppercase}.dataviews-view-table thead th:has(.dataviews-view-table-header-button):not(:first-child){padding-left:4px}.dataviews-view-table tbody td{vertical-align:top}.dataviews-view-table tbody .dataviews-view-table__cell-content-wrapper{align-items:center;display:flex;min-height:32px;white-space:nowrap}.dataviews-view-table tbody .dataviews-view-table__cell-content-wrapper.dataviews-view-table__cell-align-end{justify-content:flex-end}.dataviews-view-table tbody .dataviews-view-table__cell-content-wrapper.dataviews-view-table__cell-align-center{justify-content:center}.dataviews-view-table tbody .components-v-stack>.dataviews-view-table__cell-content-wrapper:not(:first-child){min-height:0}.dataviews-view-table .dataviews-view-table-header-button{font-size:11px;font-weight:500;padding:4px 8px;text-transform:uppercase}.dataviews-view-table .dataviews-view-table-header-button:not(:hover){color:#1e1e1e}.dataviews-view-table .dataviews-view-table-header-button span{speak:none}.dataviews-view-table .dataviews-view-table-header-button span:empty{display:none}.dataviews-view-table .dataviews-view-table-header{padding-left:4px}.dataviews-view-table .dataviews-view-table__actions-column{white-space:nowrap;width:auto}.dataviews-view-table:has(tr.is-selected) .components-checkbox-control__input{opacity:1}.dataviews-view-table.has-compact-density thead th:has(.dataviews-view-table-header-button):not(:first-child){padding-left:0}.dataviews-view-table.has-compact-density td,.dataviews-view-table.has-compact-density th{padding:4px 8px}.dataviews-view-table.has-comfortable-density td,.dataviews-view-table.has-comfortable-density th{padding:16px 12px}.dataviews-view-table.has-comfortable-density td.dataviews-view-table__checkbox-column,.dataviews-view-table.has-comfortable-density th.dataviews-view-table__checkbox-column,.dataviews-view-table.has-compact-density td.dataviews-view-table__checkbox-column,.dataviews-view-table.has-compact-density th.dataviews-view-table__checkbox-column{padding-right:0}@container (max-width: 430px){.dataviews-view-table tr td:first-child,.dataviews-view-table tr th:first-child{padding-left:24px}.dataviews-view-table tr td:last-child,.dataviews-view-table tr th:last-child{padding-right:24px}}.dataviews-view-table-selection-checkbox{--checkbox-input-size:24px}@media (min-width:600px){.dataviews-view-table-selection-checkbox{--checkbox-input-size:16px}}.dataviews-column-primary__media{background-color:#fff;border-radius:4px;flex-shrink:0;max-width:60px;overflow:hidden;position:relative}.dataviews-column-primary__media img{height:100%;object-fit:cover;width:100%}.dataviews-column-primary__media:after{border-radius:4px;box-shadow:inset 0 0 0 1px #0000001a;content:"";height:100%;left:0;position:absolute;top:0;width:100%}.dataviews-view-table__cell-content-wrapper:not(.dataviews-column-primary__media),.dataviews-view-table__primary-column-content:not(.dataviews-column-primary__media){max-width:80ch;min-width:15ch}.dataviews-view-table__group-header-row .dataviews-view-table__group-header-cell{color:#1e1e1e;font-weight:500;padding:12px 48px}.dataviews-view-table col[class^=dataviews-view-table__col-]:not(.dataviews-view-table__col-primary){width:1%}.dataviews-view-picker-grid .dataviews-view-picker-grid__card{height:100%;justify-content:flex-start;position:relative}.dataviews-view-picker-grid .dataviews-view-picker-grid__card .dataviews-view-picker-grid__title-actions{padding:8px 0 4px}.dataviews-view-picker-grid .dataviews-view-picker-grid__card .dataviews-view-picker-grid__title-field{align-content:center;min-height:24px;overflow:hidden;text-align:start}.dataviews-view-picker-grid .dataviews-view-picker-grid__card .dataviews-view-picker-grid__title-field--clickable{width:fit-content}.dataviews-view-picker-grid .dataviews-view-picker-grid__card.is-selected .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field .dataviews-view-picker-grid__field-value{color:#1e1e1e}.dataviews-view-picker-grid .dataviews-view-picker-grid__card .dataviews-view-picker-grid__media:focus:after,.dataviews-view-picker-grid .dataviews-view-picker-grid__card.is-selected .dataviews-view-picker-grid__media:after{background-color:rgba(var(--wp-admin-theme-color--rgb),.08)}.dataviews-view-picker-grid .dataviews-view-picker-grid__card.is-selected .dataviews-view-picker-grid__media:after{box-shadow:inset 0 0 0 1px var(--wp-admin-theme-color)}.dataviews-view-picker-grid .dataviews-view-picker-grid__card .dataviews-view-picker-grid__media:focus:after{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.dataviews-view-picker-grid:focus-visible[aria-activedescendant]{outline:none}.dataviews-view-picker-grid:focus-visible [data-active-item=true]{outline:2px solid var(--wp-admin-theme-color)}.dataviews-view-picker-grid .dataviews-selection-checkbox{top:8px!important}.dataviews-view-picker-grid .dataviews-selection-checkbox input{pointer-events:none}.dataviews-view-picker-grid .dataviews-view-picker-grid__media{aspect-ratio:1/1;background-color:#fff;border-radius:4px;position:relative;width:100%}.dataviews-view-picker-grid .dataviews-view-picker-grid__media img{height:100%;object-fit:cover;width:100%}.dataviews-view-picker-grid .dataviews-view-picker-grid__media:after{border-radius:4px;box-shadow:inset 0 0 0 1px #0000001a;content:"";height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields{font-size:12px;line-height:16px;position:relative}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields:not(:empty){padding:0 0 12px}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field-value:not(:empty){line-height:20px;min-height:24px;padding-top:2px}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field{align-items:center;min-height:24px}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field .dataviews-view-picker-grid__field-name{color:#757575;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:35%}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field .dataviews-view-picker-grid__field-value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:65%}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field:not(:has(.dataviews-view-picker-grid__field-value:not(:empty))){display:none}.dataviews-view-picker-grid .dataviews-view-picker-grid__badge-fields:not(:empty){padding-bottom:12px}.dataviews-view-picker-grid__field-value:empty,.dataviews-view-picker-grid__field:empty{display:none}.dataviews-view-picker-grid__card .dataviews-selection-checkbox{left:8px;position:absolute;top:-9999em;z-index:1}@media (hover:none){.dataviews-view-picker-grid__card .dataviews-selection-checkbox{top:8px}}.dataviews-view-picker-grid__card.is-selected .dataviews-selection-checkbox,.dataviews-view-picker-grid__card:focus-within .dataviews-selection-checkbox,.dataviews-view-picker-grid__card:hover .dataviews-selection-checkbox{top:8px}.dataviews-view-picker-grid__media--clickable{cursor:pointer}.dataviews-view-picker-grid-group__header{color:#1e1e1e;font-size:15px;font-weight:500;margin:0 0 8px;padding:0 48px}.dataviews-controls__datetime{border:none;padding:0}.dataviews-controls__relative-date-number,.dataviews-controls__relative-date-unit{flex:1 1 50%}.dataviews-controls__date input[type=date]::-webkit-calendar-picker-indicator,.dataviews-controls__date input[type=date]::-webkit-inner-spin-button{-webkit-appearance:none;display:none}.dataviews-controls__date-preset{border:1px solid #ddd}.dataviews-controls__date-preset:active{background-color:#000}.dataforms-layouts-panel__field{align-items:flex-start!important;justify-content:flex-start!important;min-height:32px;width:100%}.dataforms-layouts-panel__field-label{align-items:center;display:flex;flex-shrink:0;hyphens:auto;line-height:20px;min-height:32px;width:38%}.dataforms-layouts-panel__field-label--label-position-side{align-self:center}.dataforms-layouts-panel__field-control{align-items:center;display:flex;flex-grow:1;min-height:32px}.dataforms-layouts-panel__field-control .components-button{max-width:100%;min-height:32px;text-align:left;text-wrap:balance;text-wrap:pretty;white-space:normal}.dataforms-layouts-panel__field-control.components-button.is-link[aria-disabled=true]{text-decoration:none}.dataforms-layouts-panel__field-control .components-dropdown{max-width:100%}.dataforms-layouts-panel__field-dropdown .components-popover__content{min-width:320px;padding:16px}.dataforms-layouts-panel__dropdown-header{margin-bottom:16px}.dataforms-layouts-panel__modal-footer{margin-top:16px}.components-popover.components-dropdown__content.dataforms-layouts-panel__field-dropdown{z-index:159990}.dataforms-layouts-regular__field{align-items:flex-start!important;justify-content:flex-start!important;min-height:32px;width:100%}.dataforms-layouts-regular__field-label{align-items:center;display:flex;flex-shrink:0;hyphens:auto;line-height:20px;min-height:32px;width:38%}.dataforms-layouts-regular__field-label--label-position-side{align-self:center}.dataforms-layouts-regular__field-control{align-items:center;display:flex;flex-grow:1;min-height:32px}.dataforms-layouts-card__field-header-label{font-family:-apple-system,"system-ui",Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:15px;font-weight:500;line-height:20px}.dataforms-layouts-card__field{width:100%}.dataforms-layouts-card__field-description{color:#757575;display:block;font-size:13px;margin-bottom:16px}.dataforms-layouts-card__field-summary{display:flex;flex-direction:row;gap:16px}.dataforms-layouts-row__field-control{width:100%}.dataforms-layouts__wrapper{font-family:-apple-system,"system-ui",Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:400;line-height:20px}:root{--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:var(--wp-block-synced-color);--wp-editor-canvas-background:#ddd;--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,160.5;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.fields-create-template-part-modal{z-index:1000001}.fields-create-template-part-modal__area-fieldset{border:0;margin:0;padding:0}.fields-create-template-part-modal__area-radio-group{border:1px solid #949494;border-radius:2px}.fields-create-template-part-modal__area-radio-wrapper{align-items:center;display:grid;grid-template-columns:min-content 1fr min-content;padding:12px;position:relative;grid-gap:4px 8px;color:#1e1e1e}.fields-create-template-part-modal__area-radio-wrapper+.fields-create-template-part-modal__area-radio-wrapper{border-top:1px solid #949494}.fields-create-template-part-modal__area-radio-wrapper input[type=radio]{opacity:0;position:absolute}.fields-create-template-part-modal__area-radio-wrapper:has(input[type=radio]:checked){z-index:1}.fields-create-template-part-modal__area-radio-wrapper:has(input[type=radio]:not(:checked)):hover{color:var(--wp-admin-theme-color)}.fields-create-template-part-modal__area-radio-wrapper>:not(.fields-create-template-part-modal__area-radio-label){pointer-events:none}.fields-create-template-part-modal__area-radio-label:before{content:"";inset:0;position:absolute}input[type=radio]:not(:checked)~.fields-create-template-part-modal__area-radio-label:before{cursor:pointer}input[type=radio]:focus-visible~.fields-create-template-part-modal__area-radio-label:before{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:4px solid #0000}.fields-create-template-part-modal__area-radio-checkmark,.fields-create-template-part-modal__area-radio-icon{fill:currentColor}input[type=radio]:not(:checked)~.fields-create-template-part-modal__area-radio-checkmark{opacity:0}.fields-create-template-part-modal__area-radio-description{color:#757575;font-size:12px;grid-column:2/3;line-height:normal;margin:0;text-wrap:pretty}input[type=radio]:not(:checked):hover~.fields-create-template-part-modal__area-radio-description{color:inherit}.fields-controls__slug{border:0;margin:0;padding:0}.fields-controls__slug .fields-controls__slug-external-icon{margin-left:5ch}.fields-controls__slug .fields-controls__slug-input input.components-input-control__input{padding-inline-start:0!important}.fields-controls__slug .fields-controls__slug-help-link{word-break:break-word}.fields-controls__slug .fields-controls__slug-help{display:flex;flex-direction:column}.fields-controls__slug .fields-controls__slug-help .fields-controls__slug-help-slug{font-weight:600}.fields-controls__featured-image-placeholder{background:#fff linear-gradient(-45deg,#0000 48%,#ddd 0,#ddd 52%,#0000 0);border-radius:2px;box-shadow:inset 0 0 0 1px #0003;display:inline-block;padding:0}.fields-controls__featured-image-title{color:#1e1e1e;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.fields-controls__featured-image-image{align-self:center;border-radius:2px;height:100%;width:100%}.fields-controls__featured-image-container .fields-controls__featured-image-placeholder{margin:0}.fields-controls__featured-image-container span{margin-right:auto}fieldset.fields-controls__featured-image{border:0;margin:0;padding:0}fieldset.fields-controls__featured-image .fields-controls__featured-image-container{border:1px solid #ddd;border-radius:2px;cursor:pointer;padding:8px 12px}fieldset.fields-controls__featured-image .fields-controls__featured-image-container:hover{background-color:#f0f0f0}fieldset.fields-controls__featured-image .fields-controls__featured-image-placeholder{height:24px;width:24px}fieldset.fields-controls__featured-image span{align-self:center;text-align:start;white-space:nowrap}fieldset.fields-controls__featured-image .fields-controls__featured-image-upload-button{height:fit-content;padding:0}fieldset.fields-controls__featured-image .fields-controls__featured-image-upload-button:focus,fieldset.fields-controls__featured-image .fields-controls__featured-image-upload-button:hover{border:0;color:unset}fieldset.fields-controls__featured-image .fields-controls__featured-image-remove-button{place-self:end}.dataforms-layouts-panel__field-control .fields-controls__featured-image-image,.dataforms-layouts-panel__field-control .fields-controls__featured-image-placeholder{height:16px;width:16px}.dataviews-view-grid__media .fields-controls__featured-image-image,.dataviews-view-grid__media .fields-controls__featured-image-placeholder,.dataviews-view-list__media-wrapper .fields-controls__featured-image-image,.dataviews-view-list__media-wrapper .fields-controls__featured-image-placeholder,.dataviews-view-table__cell-content-wrapper.dataviews-column-primary__media .fields-controls__featured-image-image,.dataviews-view-table__cell-content-wrapper.dataviews-column-primary__media .fields-controls__featured-image-placeholder{border-radius:4px;display:block;height:100%;width:100%}.dataviews-view-grid__media .fields-controls__featured-image-placeholder,.dataviews-view-list__media-wrapper .fields-controls__featured-image-placeholder,.dataviews-view-table__cell-content-wrapper.dataviews-column-primary__media .fields-controls__featured-image-placeholder{background:#f0f0f0;box-shadow:none}.dataviews-view-table__cell-content-wrapper.dataviews-column-primary__media .fields-controls__featured-image-image,.dataviews-view-table__cell-content-wrapper.dataviews-column-primary__media .fields-controls__featured-image-placeholder{height:32px;width:32px}.fields-controls__parent,.fields-controls__password,.fields-controls__template{border:0;margin:0;padding:0}.fields-controls__template-modal{z-index:1000001}.fields-controls__template-content .block-editor-block-patterns-list{column-count:2;column-gap:24px;padding-top:2px}@media (min-width:782px){.fields-controls__template-content .block-editor-block-patterns-list{column-count:3}}@media (min-width:1280px){.fields-controls__template-content .block-editor-block-patterns-list{column-count:4}}.fields-controls__template-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{break-inside:avoid-column}.fields-field__title>span:first-child{display:block;flex-grow:0;overflow:hidden;text-decoration:none;text-overflow:ellipsis;white-space:nowrap}.fields-field__pattern-title span:first-child{flex:1}.edit-site-custom-template-modal__contents-wrapper{height:100%;justify-content:flex-start!important}.edit-site-custom-template-modal__contents-wrapper>*{width:100%}.edit-site-custom-template-modal__contents-wrapper__suggestions_list{margin-left:-12px;margin-right:-12px;width:calc(100% + 24px)}.edit-site-custom-template-modal__contents>.components-button{height:auto;justify-content:center}@media (min-width:782px){.edit-site-custom-template-modal{width:456px}}@media (min-width:600px){.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list{max-height:224px;overflow-y:auto}}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item{display:block;height:auto;overflow-wrap:break-word;padding:8px 12px;text-align:left;white-space:pre-wrap;width:100%}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item mark{background:none;font-weight:700}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04)}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item:hover *,.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item:hover mark{color:var(--wp-admin-theme-color)}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item:focus{background-color:#f0f0f0}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item:focus:not(:disabled){box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color) inset}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item__info,.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item__title{display:block;overflow:hidden;text-overflow:ellipsis}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item__info{color:#757575;word-break:break-all}.edit-site-custom-template-modal__no-results{border:1px solid #ccc;border-radius:2px;padding:16px}.edit-site-custom-generic-template__modal .components-modal__header{border-bottom:none}.edit-site-custom-generic-template__modal .components-modal__content:before{margin-bottom:4px}@media (min-width:960px){.edit-site-add-new-template__modal{margin-top:64px;max-height:calc(100% - 128px);max-width:832px;width:calc(100% - 128px)}}.edit-site-add-new-template__modal .edit-site-add-new-template__custom-template-button svg,.edit-site-add-new-template__modal .edit-site-add-new-template__template-button svg{fill:var(--wp-admin-theme-color)}.edit-site-add-new-template__modal .edit-site-add-new-template__custom-template-button .edit-site-add-new-template__template-name{align-items:flex-start;flex-grow:1}.edit-site-add-new-template__modal .edit-site-add-new-template__template-icon{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-radius:100%;max-height:40px;max-width:40px;padding:8px}.edit-site-add-new-template__template-list__contents>.components-button,.edit-site-custom-template-modal__contents>.components-button{border:1px solid #ddd;display:flex;flex-direction:column;justify-content:center;outline:1px solid #0000;padding:32px}.edit-site-add-new-template__template-list__contents>.components-button span:first-child,.edit-site-custom-template-modal__contents>.components-button span:first-child{color:#1e1e1e}.edit-site-add-new-template__template-list__contents>.components-button span,.edit-site-custom-template-modal__contents>.components-button span{color:#757575}.edit-site-add-new-template__template-list__contents>.components-button:hover,.edit-site-custom-template-modal__contents>.components-button:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-color:#0000;color:var(--wp-admin-theme-color-darker-10)}.edit-site-add-new-template__template-list__contents>.components-button:hover span,.edit-site-custom-template-modal__contents>.components-button:hover span{color:var(--wp-admin-theme-color)}.edit-site-add-new-template__template-list__contents>.components-button:focus,.edit-site-custom-template-modal__contents>.components-button:focus{border-color:#0000;box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:3px solid #0000}.edit-site-add-new-template__template-list__contents>.components-button:focus span:first-child,.edit-site-custom-template-modal__contents>.components-button:focus span:first-child{color:var(--wp-admin-theme-color)}.edit-site-add-new-template__template-list__contents .edit-site-add-new-template__custom-template-button,.edit-site-add-new-template__template-list__contents .edit-site-add-new-template__template-list__prompt,.edit-site-custom-template-modal__contents .edit-site-add-new-template__custom-template-button,.edit-site-custom-template-modal__contents .edit-site-add-new-template__template-list__prompt{grid-column:1/-1}.edit-site-add-new-template__template-list__contents>.components-button{align-items:flex-start;height:100%;text-align:start}.edit-site-visual-editor__editor-canvas.is-focused{outline:calc(var(--wp-admin-border-width-focus)*2) solid var(--wp-admin-theme-color);outline-offset:calc(var(--wp-admin-border-width-focus)*-2)}.edit-site-canvas-loader{align-items:center;display:flex;height:100%;justify-content:center;left:0;opacity:0;position:absolute;top:0;width:100%}@media not (prefers-reduced-motion){.edit-site-canvas-loader{animation:edit-site-canvas-loader__fade-in-animation .5s ease .2s;animation-fill-mode:forwards}}.edit-site-canvas-loader>div{width:160px}@keyframes edit-site-canvas-loader__fade-in-animation{0%{opacity:0}to{opacity:1}}.edit-site-global-styles-preview{align-items:center;cursor:pointer;display:flex;justify-content:center;line-height:1}.edit-site-global-styles-preview__wrapper{display:block;max-width:100%;width:100%}.edit-site-typography-preview{align-items:center;background:#f0f0f0;border-radius:2px;display:flex;justify-content:center;margin-bottom:16px;min-height:100px;overflow:hidden}.edit-site-font-size__item{line-break:anywhere;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.edit-site-font-size__item-value{color:#757575}.edit-site-global-styles-screen{margin:12px 16px 16px}.edit-site-global-styles-screen-typography__indicator{align-items:center;border-radius:1px;display:flex!important;font-size:14px;height:24px;justify-content:center;width:24px}.edit-site-global-styles-screen-typography__font-variants-count{color:#757575}.edit-site-global-styles-font-families__manage-fonts{justify-content:center}.edit-site-global-styles-screen .color-block-support-panel{border-top:none;padding-left:0;padding-right:0;padding-top:0;row-gap:12px}.edit-site-global-styles-header__description{padding:0 16px}.edit-site-block-types-search{margin-bottom:8px;padding:0 16px}.edit-site-global-styles-header{margin-bottom:0!important}.edit-site-global-styles-subtitle{font-size:11px!important;font-weight:500!important;margin-bottom:0!important;text-transform:uppercase}.edit-site-global-styles-section-title{color:#2f2f2f;font-weight:600;line-height:1.2;margin:0;padding:16px 16px 0}.edit-site-global-styles-icon-with-current-color{fill:currentColor}.edit-site-global-styles__color-indicator-wrapper{flex-shrink:0;height:24px}.edit-site-global-styles__shadows-panel__options-container,.edit-site-global-styles__typography-panel__options-container{height:24px}.edit-site-global-styles__block-preview-panel{border:1px solid #e0e0e0;border-radius:4px;overflow:hidden;position:relative;width:100%}.edit-site-global-styles__shadow-preview-panel{background-image:repeating-linear-gradient(45deg,#f5f5f5 25%,#0000 0,#0000 75%,#f5f5f5 0,#f5f5f5),repeating-linear-gradient(45deg,#f5f5f5 25%,#0000 0,#0000 75%,#f5f5f5 0,#f5f5f5);background-position:0 0,8px 8px;background-size:16px 16px;border:1px solid #e0e0e0;border-radius:4px;height:144px;overflow:auto}.edit-site-global-styles__shadow-preview-panel .edit-site-global-styles__shadow-preview-block{background-color:#fff;border:1px solid #e0e0e0;border-radius:2px;height:60px;width:60%}.edit-site-global-styles__shadow-editor__dropdown-content{width:280px}.edit-site-global-styles__shadow-editor-panel{margin-bottom:4px}.edit-site-global-styles__shadow-editor__dropdown{position:relative;width:100%}.edit-site-global-styles__shadow-editor__dropdown-toggle{border-radius:inherit;height:auto;padding-bottom:8px;padding-top:8px;text-align:left;width:100%}.edit-site-global-styles__shadow-editor__dropdown-toggle.is-open{background:#f0f0f0;color:var(--wp-admin-theme-color)}.edit-site-global-styles__shadow-editor__remove-button{opacity:0;position:absolute;right:8px;top:8px}.edit-site-global-styles__shadow-editor__remove-button.edit-site-global-styles__shadow-editor__remove-button{border:none}.edit-site-global-styles__shadow-editor__dropdown-toggle:hover+.edit-site-global-styles__shadow-editor__remove-button,.edit-site-global-styles__shadow-editor__remove-button:focus,.edit-site-global-styles__shadow-editor__remove-button:hover{opacity:1}@media (hover:none){.edit-site-global-styles__shadow-editor__remove-button{opacity:1}}.edit-site-global-styles-screen-css{display:flex;flex:1 1 auto;flex-direction:column;margin:16px}.edit-site-global-styles-screen-css .components-v-stack{flex:1 1 auto}.edit-site-global-styles-screen-css .components-v-stack .block-editor-global-styles-advanced-panel__custom-css-input,.edit-site-global-styles-screen-css .components-v-stack .block-editor-global-styles-advanced-panel__custom-css-input .components-base-control__field{display:flex;flex:1 1 auto;flex-direction:column}.edit-site-global-styles-screen-css .components-v-stack .block-editor-global-styles-advanced-panel__custom-css-input .components-base-control__field .components-textarea-control__input{direction:ltr;flex:1 1 auto}.edit-site-global-styles-screen-css-help-link{display:inline-block;margin-top:8px}.edit-site-global-styles-screen-variations{border-top:1px solid #ddd;margin-top:16px}.edit-site-global-styles-screen-variations>*{margin:24px 16px}.edit-site-global-styles-sidebar__navigator-provider{height:100%}.edit-site-global-styles-sidebar__navigator-screen{display:flex;flex-direction:column;height:100%}.edit-site-global-styles-sidebar__navigator-screen .single-column{grid-column:span 1}.edit-site-global-styles-screen-root.edit-site-global-styles-screen-root,.edit-site-global-styles-screen-style-variations.edit-site-global-styles-screen-style-variations{background:unset;color:inherit}.edit-site-global-styles-sidebar__panel .block-editor-block-icon svg{fill:currentColor}.edit-site-global-styles-screen-root__active-style-tile.edit-site-global-styles-screen-root__active-style-tile,.edit-site-global-styles-screen-root__active-style-tile.edit-site-global-styles-screen-root__active-style-tile .edit-site-global-styles-screen-root__active-style-tile-preview{border-radius:2px}.edit-site-global-styles-screen-revisions__revisions-list{flex-grow:1;list-style:none;margin:0 16px 16px}.edit-site-global-styles-screen-revisions__revisions-list li{margin-bottom:0}.edit-site-global-styles-screen-revisions__revision-item{cursor:pointer;display:flex;flex-direction:column;position:relative}.edit-site-global-styles-screen-revisions__revision-item[role=option]:active,.edit-site-global-styles-screen-revisions__revision-item[role=option]:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid #0000}.edit-site-global-styles-screen-revisions__revision-item:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04)}.edit-site-global-styles-screen-revisions__revision-item:hover .edit-site-global-styles-screen-revisions__date{color:var(--wp-admin-theme-color)}.edit-site-global-styles-screen-revisions__revision-item:after,.edit-site-global-styles-screen-revisions__revision-item:before{content:"\a";display:block;position:absolute}.edit-site-global-styles-screen-revisions__revision-item:before{background:#ddd;border:4px solid #0000;border-radius:50%;height:8px;left:17px;top:18px;transform:translate(-50%,-50%);width:8px;z-index:1}.edit-site-global-styles-screen-revisions__revision-item[aria-selected=true]{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-radius:2px;color:var(--wp-admin-theme-color);outline:3px solid #0000;outline-offset:-2px}.edit-site-global-styles-screen-revisions__revision-item[aria-selected=true] .edit-site-global-styles-screen-revisions__date{color:var(--wp-admin-theme-color)}.edit-site-global-styles-screen-revisions__revision-item[aria-selected=true]:before{background:var(--wp-admin-theme-color)}.edit-site-global-styles-screen-revisions__revision-item[aria-selected=true] .edit-site-global-styles-screen-revisions__applied-text,.edit-site-global-styles-screen-revisions__revision-item[aria-selected=true] .edit-site-global-styles-screen-revisions__changes>li,.edit-site-global-styles-screen-revisions__revision-item[aria-selected=true] .edit-site-global-styles-screen-revisions__meta{color:#1e1e1e}.edit-site-global-styles-screen-revisions__revision-item:after{border:.5px solid #ddd;height:100%;left:16px;top:0;width:0}.edit-site-global-styles-screen-revisions__revision-item:first-child:after{top:18px}.edit-site-global-styles-screen-revisions__revision-item:last-child:after{height:18px}.edit-site-global-styles-screen-revisions__revision-item-wrapper{display:block;padding:12px 12px 4px 40px}.edit-site-global-styles-screen-revisions__applied-text,.edit-site-global-styles-screen-revisions__apply-button.is-primary{align-self:flex-start;margin:4px 12px 12px 40px}.edit-site-global-styles-screen-revisions__applied-text,.edit-site-global-styles-screen-revisions__changes,.edit-site-global-styles-screen-revisions__meta{color:#757575;font-size:12px}.edit-site-global-styles-screen-revisions__description{align-items:flex-start;display:flex;flex-direction:column;gap:8px}.edit-site-global-styles-screen-revisions__description .edit-site-global-styles-screen-revisions__date{font-size:12px;font-weight:600;text-transform:uppercase}.edit-site-global-styles-screen-revisions__meta{align-items:flex-start;display:flex;justify-content:start;margin-bottom:4px;text-align:left;width:100%}.edit-site-global-styles-screen-revisions__meta img{border-radius:100%;height:16px;margin-right:8px;width:16px}.edit-site-global-styles-screen-revisions__loading{margin:24px auto!important}.edit-site-global-styles-screen-revisions__changes{line-height:1.4;list-style:disc;margin-left:12px;text-align:left}.edit-site-global-styles-screen-revisions__changes li{margin-bottom:4px}.edit-site-global-styles-screen-revisions__pagination.edit-site-global-styles-screen-revisions__pagination{gap:2px;justify-content:space-between}.edit-site-global-styles-screen-revisions__pagination.edit-site-global-styles-screen-revisions__pagination .edit-site-pagination__total{height:1px;left:-1000px;margin:-1px;overflow:hidden;position:absolute}.edit-site-global-styles-screen-revisions__pagination.edit-site-global-styles-screen-revisions__pagination .components-text{font-size:12px;will-change:opacity}.edit-site-global-styles-screen-revisions__pagination.edit-site-global-styles-screen-revisions__pagination .components-button.is-tertiary{color:#1e1e1e}.edit-site-global-styles-screen-revisions__pagination.edit-site-global-styles-screen-revisions__pagination .components-button.is-tertiary:disabled,.edit-site-global-styles-screen-revisions__pagination.edit-site-global-styles-screen-revisions__pagination .components-button.is-tertiary[aria-disabled=true]{color:#949494}.edit-site-global-styles-screen-revisions__footer{background:#fff;border-top:1px solid #ddd;bottom:0;height:56px;min-width:100%;padding:12px;position:sticky;z-index:1}.edit-site-global-styles-sidebar{display:flex;flex-direction:column;min-height:100%}.edit-site-global-styles-sidebar__panel{flex:1}.edit-site-global-styles-sidebar .edit-site-global-styles-sidebar__header-title{margin:0}.edit-site-global-styles-sidebar .edit-site-global-styles-sidebar__header-actions{flex:1}.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{border:0}.edit-site-global-styles-sidebar .single-column{grid-column:span 1}.edit-site-global-styles-sidebar .components-tools-panel .span-columns{grid-column:1/-1}.edit-site-global-styles-sidebar__blocks-group{border-top:1px solid #e0e0e0;padding-top:24px}.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 hr{margin:0}.show-icon-labels .edit-site-global-styles-sidebar__header .components-button.has-icon{width:auto}.show-icon-labels .edit-site-global-styles-sidebar__header .components-button.has-icon svg{display:none}.show-icon-labels .edit-site-global-styles-sidebar__header .components-button.has-icon:after{content:attr(aria-label);font-size:12px}.edit-site-patterns__delete-modal{width:384px}.page-patterns-preview-field{align-items:center;border-radius:4px;display:flex;flex-direction:column;height:100%;justify-content:center}.dataviews-view-grid .page-patterns-preview-field .block-editor-block-preview__container{height:100%}.dataviews-view-table .page-patterns-preview-field{flex-grow:0;text-wrap:balance;text-wrap:pretty;width:96px}.edit-site-patterns__pattern-icon{fill:var(--wp-block-synced-color);flex-shrink:0}.edit-site-patterns__section-header{border-bottom:1px solid #f0f0f0;flex-shrink:0;min-height:40px;padding:16px 48px;position:sticky;top:0;z-index:2}@media not (prefers-reduced-motion){.edit-site-patterns__section-header{transition:padding .1s ease-out}}.edit-site-patterns__section-header .edit-site-patterns__title{min-height:40px}.edit-site-patterns__section-header .edit-site-patterns__title .components-heading{flex-basis:0;flex-grow:1;white-space:nowrap}.edit-site-patterns__section-header .edit-site-patterns__sub-title{margin-bottom:8px}.edit-site-patterns__section-header .screen-reader-shortcut:focus{top:0}.edit-site-page-patterns-dataviews .dataviews-view-grid__badge-fields .dataviews-view-grid__field-value:has(.edit-site-patterns__field-sync-status-fully){background:rgba(var(--wp-block-synced-color--rgb),.04);color:var(--wp-block-synced-color)}.dataviews-action-modal__duplicate-pattern [role=dialog]>[role=document]{width:350px}.dataviews-action-modal__duplicate-pattern .patterns-menu-items__convert-modal-categories{position:relative}.dataviews-action-modal__duplicate-pattern .components-form-token-field__suggestions-list:not(:empty){background-color:#fff;border:1px solid var(--wp-admin-theme-color);border-bottom-left-radius:2px;border-bottom-right-radius:2px;box-shadow:0 0 .5px .5px var(--wp-admin-theme-color);box-sizing:border-box;left:-1px;max-height:96px;min-width:auto;position:absolute;width:calc(100% + 2px);z-index:1}@media (min-width:600px){.dataviews-action-modal__duplicate-template-part .components-modal__frame{max-width:500px}}@container (max-width: 430px){.edit-site-page-patterns-dataviews .edit-site-patterns__section-header{padding-left:24px;padding-right:24px}}.page-templates-preview-field{align-items:center;border-radius:4px;display:flex;flex-direction:column;height:100%;justify-content:center;width:100%}.dataviews-view-list .page-templates-preview-field .block-editor-block-preview__container{height:120px}.dataviews-view-grid .page-templates-preview-field .block-editor-block-preview__container{height:100%}.dataviews-view-table .page-templates-preview-field{max-height:160px;position:relative;text-wrap:balance;text-wrap:pretty;width:120px}.edit-site-page-templates .dataviews-pagination{z-index:2}.page-templates-author-field__avatar{align-items:center;display:flex;flex-shrink:0;height:24px;justify-content:left;overflow:hidden;width:24px}.page-templates-author-field__avatar img{border-radius:100%;height:16px;object-fit:cover;opacity:0;width:16px}@media not (prefers-reduced-motion){.page-templates-author-field__avatar img{transition:opacity .1s linear}}.page-templates-author-field__avatar.is-loaded img{opacity:1}.page-templates-author-field__icon{display:flex;flex-shrink:0;height:24px;width:24px}.page-templates-author-field__icon svg{margin-left:-4px;fill:currentColor}.page-templates-author-field__name{overflow:hidden;text-overflow:ellipsis}.edit-site-list__rename-modal{z-index:1000001}@media (min-width:782px){.edit-site-list__rename-modal .components-base-control{width:320px}}.edit-site-editor__editor-interface{opacity:1}@media not (prefers-reduced-motion){.edit-site-editor__editor-interface{transition:opacity .1s ease-out}}.edit-site-editor__editor-interface.is-loading{opacity:0}.edit-site-editor__toggle-save-panel{background-color:#fff;border:1px dotted #ddd;box-sizing:border-box;display:flex;justify-content:center;padding:24px;width:280px}.edit-site-editor__view-mode-toggle{view-transition-name:toggle;height:64px;left:0;top:0;width:64px;z-index:100}.edit-site-editor__view-mode-toggle .components-button{align-items:center;border-radius:0;color:#fff;display:flex;height:100%;justify-content:center;overflow:hidden;padding:0;width:100%}.edit-site-editor__view-mode-toggle .components-button:active,.edit-site-editor__view-mode-toggle .components-button:hover{color:#fff}.edit-site-editor__view-mode-toggle .components-button:focus{box-shadow:none}.edit-site-editor__view-mode-toggle .edit-site-editor__view-mode-toggle-icon img,.edit-site-editor__view-mode-toggle .edit-site-editor__view-mode-toggle-icon svg{background:#1e1e1e;display:block}.edit-site-editor__back-icon{align-items:center;background-color:#ccc;display:flex;height:64px;justify-content:center;left:0;pointer-events:none;position:absolute;top:0;width:64px}.edit-site-editor__back-icon svg{fill:currentColor}.edit-site-editor__back-icon.has-site-icon{backdrop-filter:saturate(180%) blur(15px);background-color:#fff9}.edit-site-welcome-guide{width:312px}.edit-site-welcome-guide.guide-editor .edit-site-welcome-guide__image,.edit-site-welcome-guide.guide-styles .edit-site-welcome-guide__image{background:#00a0d2}.edit-site-welcome-guide.guide-page .edit-site-welcome-guide__video{border-right:16px solid #3858e9;border-top:16px solid #3858e9}.edit-site-welcome-guide.guide-template .edit-site-welcome-guide__video{border-left:16px solid #3858e9;border-top:16px solid #3858e9}.edit-site-welcome-guide__image{margin:0 0 16px}.edit-site-welcome-guide__image>img{display:block;max-width:100%;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}.edit-site-layout{color:#ccc;display:flex;flex-direction:column;height:100%}.edit-site-layout,.edit-site-layout:not(.is-full-canvas) .editor-visual-editor{background:#1e1e1e}.edit-site-layout__content{display:flex;flex-grow:1;height:100%}.edit-site-layout__sidebar-region{flex-shrink:0;width:100vw;z-index:1}@media (min-width:782px){.edit-site-layout__sidebar-region{width:300px}}.edit-site-layout.is-full-canvas .edit-site-layout__sidebar-region{height:100vh;left:0;position:fixed!important;top:0}.edit-site-layout__sidebar-region .edit-site-layout__sidebar{display:flex;flex-direction:column;height:100%}.edit-site-layout__sidebar-region .resizable-editor__drag-handle{right:0}.edit-site-layout__main{display:flex;flex-direction:column;flex-grow:1;overflow:hidden}.edit-site-layout__mobile{display:flex;flex-direction:column;position:relative;width:100%;z-index:2}.edit-site-layout__mobile .edit-site-sidebar__screen-wrapper{padding:0}.edit-site-layout__mobile .edit-site-sidebar-navigation-screen__main{padding:0 12px}.edit-site-layout__canvas-container{flex-grow:1;overflow:visible;position:relative;z-index:2}.edit-site-layout__canvas-container.is-resizing:after{bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:100}.edit-site-layout__canvas{align-items:center;bottom:0;display:flex;justify-content:center;left:0;position:absolute;top:0;width:100%}.edit-site-layout__canvas.is-right-aligned{justify-content:flex-end}.edit-site-layout__canvas .edit-site-resizable-frame__inner{color:#1e1e1e}@media (min-width:782px){.edit-site-layout__canvas{bottom:16px;top:16px;width:calc(100% - 16px)}.edit-site-layout__canvas .edit-site-resizable-frame__inner-content{box-shadow:0 1px 1px #00000008,0 1px 2px #00000005,0 3px 3px #00000005,0 4px 4px #00000003;overflow:hidden}}@media (min-width:782px) and (not (prefers-reduced-motion)){.edit-site-layout__canvas .edit-site-resizable-frame__inner-content{transition:border-radius,box-shadow .4s}}@media (min-width:782px){.edit-site-layout:not(.is-full-canvas) .edit-site-layout__canvas .edit-site-resizable-frame__inner-content{border-radius:8px}.edit-site-layout__canvas .edit-site-resizable-frame__inner-content:hover{box-shadow:0 5px 15px #00000014,0 15px 27px #00000012,0 30px 36px #0000000a,0 50px 43px #00000005}}.edit-site-layout.is-full-canvas .edit-site-layout__canvas{bottom:0;top:0;width:100%}.edit-site-layout__canvas .interface-interface-skeleton,.edit-site-layout__mobile .interface-interface-skeleton,.edit-site-template-pages-preview .interface-interface-skeleton{min-height:100%!important;position:relative!important}.edit-site-template-pages-preview{height:100%}html.canvas-mode-edit-transition::view-transition-group(toggle){animation-delay:255ms}@media (prefers-reduced-motion){::view-transition-group(*),::view-transition-new(*),::view-transition-old(*){animation:none!important}}.edit-site-layout.is-full-canvas .edit-site-layout__sidebar-region .edit-site-layout__view-mode-toggle{display:none}.edit-site-layout__view-mode-toggle.components-button{view-transition-name:toggle;align-items:center;background:#1e1e1e;border-radius:0;color:#fff;display:flex;height:64px;justify-content:center;overflow:hidden;padding:0;position:relative;width:64px}.edit-site-layout__view-mode-toggle.components-button:active,.edit-site-layout__view-mode-toggle.components-button:hover{color:#fff}.edit-site-layout__view-mode-toggle.components-button:focus,.edit-site-layout__view-mode-toggle.components-button:focus-visible{box-shadow:0 0 0 3px #1e1e1e,0 0 0 6px var(--wp-admin-theme-color);outline:4px solid #0000;outline-offset:4px}.edit-site-layout__view-mode-toggle.components-button:before{border-radius:4px;bottom:9px;box-shadow:none;content:"";display:block;left:17px;position:absolute;right:9px;top:9px}@media not (prefers-reduced-motion){.edit-site-layout__view-mode-toggle.components-button:before{transition:box-shadow .1s ease}}.edit-site-layout__view-mode-toggle.components-button .edit-site-layout__view-mode-toggle-icon{align-items:center;display:flex;height:64px;justify-content:center;width:64px}.edit-site-layout__actions{background:#fff;bottom:auto;color:#1e1e1e;left:auto;position:fixed!important;right:0;top:-9999em;width:280px;z-index:100000}.edit-site-layout__actions:focus,.edit-site-layout__actions:focus-within{bottom:0;top:auto}.edit-site-layout__actions.is-entity-save-view-open:focus,.edit-site-layout__actions.is-entity-save-view-open:focus-within{top:0}@media (min-width:782px){.edit-site-layout__actions{border-left:1px solid #ddd}}.edit-site-layout__area{box-shadow:0 1px 1px #00000008,0 1px 2px #00000005,0 3px 3px #00000005,0 4px 4px #00000003;flex-grow:1;margin:0;overflow:hidden}@media (min-width:782px){.edit-site-layout__area{border-radius:8px;margin:16px 16px 16px 0}}.edit-site .components-editor-notices__snackbar{bottom:16px;padding-left:16px;padding-right:16px;position:fixed;right:0}.edit-site-save-hub{border-top:1px solid #2f2f2f;color:#949494;flex-shrink:0;margin:0;padding:16px}.edit-site-save-hub__button{color:inherit;justify-content:center;width:100%}.edit-site-save-hub__button[aria-disabled=true]{opacity:1}.edit-site-save-hub__button[aria-disabled=true]:hover{color:inherit}.edit-site-save-hub__button:not(.is-primary).is-busy,.edit-site-save-hub__button:not(.is-primary).is-busy[aria-disabled=true]:hover{color:#1e1e1e}@media (min-width:600px){.edit-site-save-panel__modal{width:600px}}.edit-site-sidebar__content{contain:content;flex-grow:1;overflow-x:hidden;overflow-y:auto}@keyframes local--slide-from-right{0%{opacity:0;transform:translateX(50px)}to{opacity:1;transform:none}}@keyframes local--slide-from-left{0%{opacity:0;transform:translateX(-50px)}to{opacity:1;transform:none}}.edit-site-sidebar__screen-wrapper{overflow-x:auto}.edit-site-sidebar__screen-wrapper::-webkit-scrollbar{height:12px;width:12px}.edit-site-sidebar__screen-wrapper::-webkit-scrollbar-track{background-color:initial}.edit-site-sidebar__screen-wrapper::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:initial;border:3px solid #0000;border-radius:8px}.edit-site-sidebar__screen-wrapper:focus-within::-webkit-scrollbar-thumb,.edit-site-sidebar__screen-wrapper:focus::-webkit-scrollbar-thumb,.edit-site-sidebar__screen-wrapper:hover::-webkit-scrollbar-thumb{background-color:#757575}.edit-site-sidebar__screen-wrapper{scrollbar-color:#0000 #0000;scrollbar-gutter:stable both-edges;scrollbar-width:thin}.edit-site-sidebar__screen-wrapper:focus,.edit-site-sidebar__screen-wrapper:focus-within,.edit-site-sidebar__screen-wrapper:hover{scrollbar-color:#757575 #0000}.edit-site-sidebar__screen-wrapper{will-change:transform}@media (hover:none){.edit-site-sidebar__screen-wrapper{scrollbar-color:#757575 #0000}}.edit-site-sidebar__screen-wrapper{animation-duration:.14s;animation-timing-function:ease-in-out;display:flex;flex-direction:column;height:100%;max-height:100%;padding:0 12px;scrollbar-gutter:stable;will-change:transform,opacity}@media (prefers-reduced-motion:reduce){.edit-site-sidebar__screen-wrapper{animation-duration:0s}}.edit-site-sidebar__screen-wrapper.slide-from-left{animation-name:local--slide-from-left}.edit-site-sidebar__screen-wrapper.slide-from-right{animation-name:local--slide-from-right}.edit-site-sidebar-button{color:#e0e0e0;flex-shrink:0}.edit-site-sidebar-button:focus:not(:disabled){box-shadow:none;outline:none}.edit-site-sidebar-button:focus-visible:not(:disabled){box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:3px solid #0000}.edit-site-sidebar-button:focus,.edit-site-sidebar-button:focus-visible,.edit-site-sidebar-button:hover:not(:disabled,[aria-disabled=true]),.edit-site-sidebar-button:not(:disabled,[aria-disabled=true]):active,.edit-site-sidebar-button[aria-expanded=true]{color:#f0f0f0}.edit-site-sidebar-navigation-item.components-item{border:none;color:#949494;min-height:40px;padding:8px 6px 8px 16px}.edit-site-sidebar-navigation-item.components-item:focus,.edit-site-sidebar-navigation-item.components-item:hover,.edit-site-sidebar-navigation-item.components-item[aria-current=true]{color:#e0e0e0}.edit-site-sidebar-navigation-item.components-item:focus .edit-site-sidebar-navigation-item__drilldown-indicator,.edit-site-sidebar-navigation-item.components-item:hover .edit-site-sidebar-navigation-item__drilldown-indicator,.edit-site-sidebar-navigation-item.components-item[aria-current=true] .edit-site-sidebar-navigation-item__drilldown-indicator{fill:#e0e0e0}.edit-site-sidebar-navigation-item.components-item[aria-current=true]{background:#2f2f2f;color:#fff;font-weight:500}.edit-site-sidebar-navigation-item.components-item:focus-visible{transform:translateZ(0)}.edit-site-sidebar-navigation-item.components-item .edit-site-sidebar-navigation-item__drilldown-indicator{fill:#949494}.edit-site-sidebar-navigation-item.components-item.with-suffix{padding-right:16px}.edit-site-sidebar-navigation-screen__content .block-editor-list-view-block-select-button{cursor:grab;padding:8px 8px 8px 0}.edit-site-sidebar-navigation-screen{display:flex;flex-direction:column;overflow-x:unset!important;position:relative}.edit-site-sidebar-navigation-screen__main{flex-grow:1;margin-bottom:16px}.edit-site-sidebar-navigation-screen__main.has-footer{margin-bottom:0}.edit-site-sidebar-navigation-screen__content{padding:0 16px}.edit-site-sidebar-navigation-screen__content .components-text{color:#ccc}.edit-site-sidebar-navigation-screen__content .components-heading{margin-bottom:8px}.edit-site-sidebar-navigation-screen__title-icon{background:#1e1e1e;margin-bottom:8px;padding-bottom:8px;padding-top:48px;position:sticky;top:0;z-index:1}.edit-site-sidebar-navigation-screen__title{flex-grow:1;overflow-wrap:break-word}.edit-site-sidebar-navigation-screen__title.edit-site-sidebar-navigation-screen__title,.edit-site-sidebar-navigation-screen__title.edit-site-sidebar-navigation-screen__title .edit-site-sidebar-navigation-screen__title{line-height:32px}.edit-site-sidebar-navigation-screen__actions{display:flex;flex-shrink:0}@media (min-width:782px){.edit-site-sidebar-navigation-screen__content .edit-site-global-styles-variation-container{max-width:292px}}.edit-site-global-styles-variation-title{color:#ddd;font-size:11px;font-weight:500;text-transform:uppercase}.edit-site-sidebar-navigation-screen__content .edit-site-global-styles-variations_item .edit-site-global-styles-variations_item-preview{outline-color:#ffffff0d}.edit-site-sidebar-navigation-screen__content .edit-site-global-styles-variations_item:not(.is-active):hover .edit-site-global-styles-variations_item-preview{outline-color:#ffffff26}.edit-site-sidebar-navigation-screen__content .edit-site-global-styles-variations_item.is-active .edit-site-global-styles-variations_item-preview{outline-color:#fff}.edit-site-sidebar-navigation-screen__content .edit-site-global-styles-variations_item:focus-visible .edit-site-global-styles-variations_item-preview{outline-color:var(--wp-admin-theme-color)}.edit-site-sidebar-navigation-screen__footer{background-color:#1e1e1e;border-top:1px solid #2f2f2f;bottom:0;gap:0;margin:16px 0 0;padding:8px 16px;position:sticky}.edit-site-sidebar-navigation-screen__footer .edit-site-sidebar-navigation-screen-details-footer{margin-left:-16px;margin-right:-16px}.edit-site-sidebar-navigation-screen__input-control{width:100%}.edit-site-sidebar-navigation-screen__input-control .components-input-control__container{background:#2f2f2f}.edit-site-sidebar-navigation-screen__input-control .components-input-control__container .components-button{color:#e0e0e0!important}.edit-site-sidebar-navigation-screen__input-control .components-input-control__input{background:#2f2f2f!important;color:#e0e0e0!important}.edit-site-sidebar-navigation-screen__input-control .components-input-control__backdrop{border:4px!important}.edit-site-sidebar-navigation-screen__input-control .components-base-control__help{color:#949494}.edit-site-sidebar-navigation-screen-details-footer div.edit-site-sidebar-navigation-item.components-item:focus,.edit-site-sidebar-navigation-screen-details-footer div.edit-site-sidebar-navigation-item.components-item:hover,.edit-site-sidebar-navigation-screen-details-footer div.edit-site-sidebar-navigation-item.components-item[aria-current]{background:none}.sidebar-navigation__more-menu .components-button{color:#e0e0e0}.sidebar-navigation__more-menu .components-button:focus,.sidebar-navigation__more-menu .components-button:hover,.sidebar-navigation__more-menu .components-button[aria-current]{color:#f0f0f0}.edit-site-sidebar-navigation-screen-patterns__group{margin-bottom:24px;margin-left:-16px;margin-right:-16px}.edit-site-sidebar-navigation-screen-patterns__group:last-of-type{border-bottom:0;margin-bottom:0;padding-bottom:0}.edit-site-sidebar-navigation-screen-patterns__group-header{margin-top:16px}.edit-site-sidebar-navigation-screen-patterns__group-header p{color:#949494}.edit-site-sidebar-navigation-screen-patterns__group-header h2{font-size:11px;font-weight:500;text-transform:uppercase}.edit-site-sidebar-navigation-screen-patterns__divider{border-top:1px solid #2f2f2f;margin:16px 0}.edit-site-sidebar-navigation-screen__description{margin:0 0 32px}.edit-site-sidebar-navigation-screen-navigation-menus{margin-left:-16px;margin-right:-16px}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-leaf .block-editor-list-view-block-contents{white-space:normal}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block__title{margin-top:3px}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block__menu-cell{padding-right:0}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block-select-button{color:#949494}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block-select-button:focus,.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block-select-button:hover,.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block-select-button[aria-current]{color:#fff}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block__menu{color:#949494}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block__menu:focus,.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block__menu:hover{color:#fff}.edit-site-sidebar-navigation-screen-navigation-menus__loading.components-spinner{display:block;margin-left:auto;margin-right:auto}.edit-site-sidebar-navigation-screen-navigation-menus__helper-block-editor{display:none}.edit-site-sidebar-dataviews,.edit-site-sidebar-navigation-screen-main,.edit-site-sidebar-navigation-screen-templates-browse{margin-left:-16px;margin-right:-16px}.edit-site-sidebar-dataviews-dataview-item{border-radius:2px}.edit-site-sidebar-dataviews-dataview-item:focus,.edit-site-sidebar-dataviews-dataview-item:hover,.edit-site-sidebar-dataviews-dataview-item[aria-current]{color:#e0e0e0}.edit-site-sidebar-dataviews-dataview-item.is-selected{background:#2f2f2f;color:#fff;font-weight:500}.edit-site-site-hub{align-items:center;display:flex;gap:8px;height:64px;justify-content:space-between;margin-right:12px}.edit-site-site-hub__actions{flex-shrink:0}.edit-site-site-hub__view-mode-toggle-container{flex-shrink:0;height:64px;width:64px}.edit-site-site-hub__view-mode-toggle-container.has-transparent-background .edit-site-layout__view-mode-toggle-icon{background:#0000}.edit-site-site-hub__title .components-button{color:#e0e0e0;display:block;flex-grow:1;font-size:15px;font-weight:500;margin-left:-4px;overflow:hidden;padding-right:16px;position:relative;text-decoration:none;text-overflow:ellipsis;white-space:nowrap}.edit-site-site-hub__title .components-button:active,.edit-site-site-hub__title .components-button:focus,.edit-site-site-hub__title .components-button:hover{color:#e0e0e0}.edit-site-site-hub__title .components-button:focus{box-shadow:none;outline:none}.edit-site-site-hub__title .components-button:focus-visible{box-shadow:0 0 0 var(--wp-admin-border-width-focus) #1e1e1e,0 0 0 calc(var(--wp-admin-border-width-focus)*2) var(--wp-admin-theme-color);outline:2px solid #0000;outline-offset:2px}.edit-site-site-hub__title .components-button:after{content:"↗";font-weight:400;opacity:0;position:absolute;right:0}@media not (prefers-reduced-motion){.edit-site-site-hub__title .components-button:after{transition:opacity .1s linear}}.edit-site-site-hub__title .components-button:active:after,.edit-site-site-hub__title .components-button:focus:after,.edit-site-site-hub__title .components-button:hover:after{opacity:1}.edit-site-site-hub_toggle-command-center{color:#e0e0e0}.edit-site-site-hub_toggle-command-center:active svg,.edit-site-site-hub_toggle-command-center:hover svg{fill:#f0f0f0}.edit-site-site-icon__icon{fill:currentColor;height:100%;width:100%}.edit-site-layout.is-full-canvas .edit-site-site-icon__icon{padding:12px}.edit-site-site-icon__image{aspect-ratio:1/1;background:#333;height:100%;object-fit:cover;width:100%}.edit-site-layout.is-full-canvas .edit-site-site-icon__image{border-radius:0}.edit-site-editor__view-mode-toggle button:focus{position:relative}.edit-site-editor__view-mode-toggle button:focus:before{bottom:0;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color),inset 0 0 0 calc(1px + var(--wp-admin-border-width-focus)) #fff;content:"";display:block;left:0;position:absolute;right:0;top:0;z-index:1}.edit-site-style-book{height:100%}.edit-site-style-book.is-button{border-radius:8px}.edit-site-style-book{align-items:stretch;display:flex;flex-direction:column}.edit-site-style-book__iframe{display:block;height:100%;width:100%}.edit-site-style-book__iframe.is-button{border-radius:8px}.edit-site-style-book__iframe.is-focused{outline:calc(var(--wp-admin-border-width-focus)*2) solid var(--wp-admin-theme-color);outline-offset:calc(var(--wp-admin-border-width-focus)*-2)}.edit-site-style-book__tablist-container{background:#fff;display:flex;flex:none;padding-right:56px;width:100%}.edit-site-style-book__tabpanel{flex:1 0 auto;overflow:auto}.edit-site-editor-canvas-container{background-color:var(--wp-editor-canvas-background);height:100%}.edit-site-editor-canvas-container iframe{display:block;height:100%;width:100%}.edit-site-layout.is-full-canvas .edit-site-editor-canvas-container{padding:24px 24px 0}.edit-site-editor-canvas-container__section{background:#fff;border-radius:8px;bottom:0;left:0;overflow:hidden;position:absolute;right:0;top:0}@media not (prefers-reduced-motion){.edit-site-editor-canvas-container__section{transition:all .3s}}.edit-site-editor-canvas-container__close-button{background:#fff;position:absolute;right:8px;top:8px;z-index:2}.edit-site-post-edit{padding:24px}.dataforms-layouts-panel__field-dropdown .fields-controls__password{border-top:1px solid #e0e0e0;padding-top:16px}.edit-site-post-list__featured-image{height:100%;object-fit:cover;width:100%}.edit-site-post-list__featured-image-wrapper{border-radius:4px;height:100%;width:100%}.edit-site-post-list__featured-image-wrapper.is-layout-table .edit-site-post-list__featured-image-button,.edit-site-post-list__featured-image-wrapper.is-layout-table:not(:has(.edit-site-post-list__featured-image-button)){background-color:#f0f0f0;border-radius:4px;display:block;flex-grow:0!important;height:32px;overflow:hidden;position:relative;width:32px}.edit-site-post-list__featured-image-wrapper.is-layout-table .edit-site-post-list__featured-image-button:after,.edit-site-post-list__featured-image-wrapper.is-layout-table:not(:has(.edit-site-post-list__featured-image-button)):after{border-radius:4px;box-shadow:inset 0 0 0 1px #0000001a;content:"";height:100%;left:0;position:absolute;top:0;width:100%}.edit-site-post-list__featured-image-button{background-color:unset;border:none;border-radius:4px;box-shadow:none;box-sizing:border-box;cursor:pointer;height:100%;overflow:hidden;padding:0;width:100%}.edit-site-post-list__featured-image-button:focus-visible{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid #0000}.dataviews-view-grid__card.is-selected .edit-site-post-list__featured-image-button:after{background:rgba(var(--wp-admin-theme-color--rgb),.04);box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.edit-site-post-list__status-icon{height:24px;width:24px}.edit-site-post-list__status-icon svg{fill:currentColor;margin-left:-4px}.edit-site-resizable-frame__inner{position:relative}body:has(.edit-site-resizable-frame__inner.is-resizing){cursor:col-resize;user-select:none;-webkit-user-select:none}.edit-site-resizable-frame__inner.is-resizing:before{content:"";inset:0;position:absolute;z-index:1}.edit-site-resizable-frame__inner-content{inset:0;position:absolute;z-index:0}.edit-site-resizable-frame__handle{align-items:center;background-color:#75757566;border:0;border-radius:4px;cursor:col-resize;display:flex;height:64px;justify-content:flex-end;padding:0;position:absolute;top:calc(50% - 32px);width:4px;z-index:100}.edit-site-resizable-frame__handle:before{content:"";height:100%;left:100%;position:absolute;width:32px}.edit-site-resizable-frame__handle:after{content:"";height:100%;position:absolute;right:100%;width:32px}.edit-site-resizable-frame__handle:focus-visible{outline:2px solid #0000}.edit-site-resizable-frame__handle.is-resizing,.edit-site-resizable-frame__handle:focus,.edit-site-resizable-frame__handle:hover{background-color:var(--wp-admin-theme-color)}.edit-site-push-changes-to-global-styles-control .components-button{justify-content:center;width:100%}@media (min-width:782px){.font-library-modal.font-library-modal{width:65vw}}.font-library-modal .components-modal__header{border-bottom:none}.font-library-modal .components-modal__content{margin-bottom:70px;padding-top:0}.font-library-modal .font-library-modal__subtitle{font-size:11px;font-weight:500;text-transform:uppercase}.font-library-modal .components-navigator-screen{padding:3px}.font-library-modal__tabpanel-layout{margin-top:32px}.font-library-modal__tabpanel-layout .font-library-modal__loading{align-items:center;display:flex;height:100%;justify-content:center;left:0;padding-top:124px;position:absolute;top:0;width:100%}.font-library-modal__footer{background-color:#fff;border-top:1px solid #ddd;bottom:32px;height:70px;margin:0 -32px -32px;padding:16px 32px;position:absolute;width:100%}.font-library-modal__page-selection{font-size:11px;font-weight:500;text-transform:uppercase}@media (min-width:600px){.font-library-modal__page-selection .components-select-control__input{font-size:11px!important;font-weight:500}}.font-library-modal__fonts-title{font-size:11px;font-weight:600;margin-bottom:0;margin-top:0;text-transform:uppercase}.font-library-modal__fonts-list{margin-bottom:0;margin-top:0}.font-library-modal__fonts-list-item{margin-bottom:0}.font-library-modal__font-card{border:1px solid #e0e0e0;height:auto!important;margin-top:-1px;padding:16px;width:100%}.font-library-modal__font-card:hover{background-color:#f0f0f0}.font-library-modal__font-card:focus{position:relative}.font-library-modal__font-card .font-library-modal__font-card__name{font-weight:700}.font-library-modal__font-card .font-library-modal__font-card__count{color:#757575}.font-library-modal__font-card .font-library-modal__font-variant_demo-image{display:block;height:24px;width:auto}.font-library-modal__font-card .font-library-modal__font-variant_demo-text{flex-shrink:0;white-space:nowrap}@media not (prefers-reduced-motion){.font-library-modal__font-card .font-library-modal__font-variant_demo-text{transition:opacity .3s ease-in-out}}.font-library-modal__font-variant{border-bottom:1px solid #e0e0e0;padding-bottom:16px}.font-library-modal__tablist-container{background:#fff;border-bottom:1px solid #ddd;margin:0 -32px;padding:0 16px;position:sticky;top:0;z-index:1}.font-library-modal__tablist-container [role=tablist]{margin-bottom:-1px}.font-library-modal__upload-area{align-items:center;display:flex;height:256px!important;justify-content:center;width:100%}button.font-library-modal__upload-area{background-color:#f0f0f0}.font-library-modal__local-fonts{margin:0 auto;width:80%}.font-library-modal__local-fonts .font-library-modal__upload-area__text{color:#757575}.font-library__google-fonts-confirm{align-items:center;display:flex;justify-content:center;margin-top:64px}.font-library__google-fonts-confirm p{line-height:1.4}.font-library__google-fonts-confirm h2{font-size:1.2rem;font-weight:400}.font-library__google-fonts-confirm .components-card{padding:16px;width:400px}.font-library__google-fonts-confirm .components-button{justify-content:center;width:100%}.font-library-modal__select-all{padding:16px 16px 16px 17px}.font-library-modal__select-all .components-checkbox-control__label{padding-left:16px}.edit-site-pagination .components-button.is-tertiary{height:32px;justify-content:center;width:32px}.edit-site-global-styles-variations_item{box-sizing:border-box;cursor:pointer}.edit-site-global-styles-variations_item .edit-site-global-styles-variations_item-preview{border-radius:2px;outline:1px solid #0000001a;outline-offset:-1px;overflow:hidden;position:relative}@media not (prefers-reduced-motion){.edit-site-global-styles-variations_item .edit-site-global-styles-variations_item-preview{transition:outline .1s linear}}.edit-site-global-styles-variations_item .edit-site-global-styles-variations_item-preview.is-pill{height:32px}.edit-site-global-styles-variations_item .edit-site-global-styles-variations_item-preview.is-pill .block-editor-iframe__scale-container{overflow:hidden}.edit-site-global-styles-variations_item:not(.is-active):hover .edit-site-global-styles-variations_item-preview{outline-color:#0000004d}.edit-site-global-styles-variations_item.is-active .edit-site-global-styles-variations_item-preview,.edit-site-global-styles-variations_item:focus-visible .edit-site-global-styles-variations_item-preview{outline-color:#1e1e1e;outline-offset:1px;outline-width:var(--wp-admin-border-width-focus)}.edit-site-global-styles-variations_item:focus-visible .edit-site-global-styles-variations_item-preview{outline-color:var(--wp-admin-theme-color)}.edit-site-styles .edit-site-global-styles-screen-root{box-shadow:none}.edit-site-styles .edit-site-global-styles-screen-root>div>hr{display:none}.edit-site-styles .edit-site-global-styles-sidebar__navigator-provider .components-tools-panel{border-top:none}.edit-site-styles .edit-site-global-styles-sidebar__navigator-provider{overflow-y:auto;padding-left:0;padding-right:0}.edit-site-styles .edit-site-global-styles-sidebar__navigator-provider .edit-site-global-styles-sidebar__navigator-screen{outline:none;padding:12px}.edit-site-styles .edit-site-sidebar-button{color:#1e1e1e}::view-transition-image-pair(root){isolation:auto}::view-transition-new(root),::view-transition-old(root){animation:none;display:block;mix-blend-mode:normal}body.js #wpadminbar{display:none}body.js #wpbody{padding-top:0}body.js.appearance_page_gutenberg-template-parts,body.js.site-editor-php{background:#fff}body.js.appearance_page_gutenberg-template-parts #wpcontent,body.js.site-editor-php #wpcontent{padding-left:0}body.js.appearance_page_gutenberg-template-parts #wpbody-content,body.js.site-editor-php #wpbody-content{padding-bottom:0}body.js.appearance_page_gutenberg-template-parts #wpbody-content>div:not(.edit-site):not(#screen-meta),body.js.appearance_page_gutenberg-template-parts #wpfooter,body.js.site-editor-php #wpbody-content>div:not(.edit-site):not(#screen-meta),body.js.site-editor-php #wpfooter{display:none}body.js.appearance_page_gutenberg-template-parts .a11y-speak-region,body.js.site-editor-php .a11y-speak-region{left:-1px;top:-1px}body.js.appearance_page_gutenberg-template-parts ul#adminmenu a.wp-has-current-submenu:after,body.js.appearance_page_gutenberg-template-parts ul#adminmenu>li.current>a.current:after,body.js.site-editor-php ul#adminmenu a.wp-has-current-submenu:after,body.js.site-editor-php ul#adminmenu>li.current>a.current:after{border-right-color:#fff}body.js.appearance_page_gutenberg-template-parts .media-frame select.attachment-filters:last-of-type,body.js.site-editor-php .media-frame select.attachment-filters:last-of-type{max-width:100%;width:auto}body.js.site-editor-php{background:#1e1e1e}.edit-site{box-sizing:border-box}.edit-site *,.edit-site :after,.edit-site :before{box-sizing:inherit}.edit-site{height:100vh}@media (min-width:600px){.edit-site{bottom:0;left:0;min-height:100vh;position:fixed;right:0;top:0}}.no-js .edit-site{min-height:0;position:static}.edit-site .interface-interface-skeleton{top:0}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,114.7661290323,160.5;--wp-admin-theme-color-darker-20:#006187;--wp-admin-theme-color-darker-20--rgb:0,96.5322580645,135;--wp-admin-border-width-focus:2px}@media (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.0384615385,68.7307692308,230.4615384615;--wp-admin-theme-color-darker-20:#183ad6;--wp-admin-theme-color-darker-20--rgb:23.6923076923,58.1538461538,214.3076923077;--wp-admin-border-width-focus:2px}@media (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.3723404255,81.914893617,108.1276595745;--wp-admin-theme-color-darker-20:#064054;--wp-admin-theme-color-darker-20--rgb:5.7446808511,63.829787234,84.2553191489;--wp-admin-border-width-focus:2px}@media (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.2692307692,51.4461538462,48.2307692308;--wp-admin-theme-color-darker-20:#2b2724;--wp-admin-theme-color-darker-20--rgb:42.5384615385,38.8923076923,36.4615384615;--wp-admin-border-width-focus:2px}@media (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:69.8430232558,53.6598837209,92.8401162791;--wp-admin-theme-color-darker-20:#3a2c4d;--wp-admin-theme-color-darker-20--rgb:57.6860465116,44.3197674419,76.6802325581;--wp-admin-border-width-focus:2px}@media (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.4908256881,56.1788990826,45.0091743119;--wp-admin-theme-color-darker-20:#d02c21;--wp-admin-theme-color-darker-20--rgb:207.8348623853,44.2201834862,33.1651376147;--wp-admin-border-width-focus:2px}@media (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.0873362445,110.192139738,116.4126637555;--wp-admin-theme-color-darker-20:#4c6066;--wp-admin-theme-color-darker-20--rgb:76.1746724891,96.384279476,101.8253275109;--wp-admin-border-width-focus:2px}@media (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:216.8782608696,116.1847826087,37.6217391304;--wp-admin-theme-color-darker-20:#c36922;--wp-admin-theme-color-darker-20--rgb:195.147826087,104.5434782609,33.852173913;--wp-admin-border-width-focus:2px}@media (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/js/dist/block-editor.js b/wp-includes/js/dist/block-editor.js
index 2b29ee1c79..12c762fc02 100644
--- a/wp-includes/js/dist/block-editor.js
+++ b/wp-includes/js/dist/block-editor.js
@@ -22594,6 +22594,7 @@ function SingleInputControl({
   const onChangeUnit = (next) => {
     const newUnits = { ...selectedUnits };
     if (corner === "all") {
+      newUnits.flat = next;
       newUnits.topLeft = next;
       newUnits.topRight = next;
       newUnits.bottomLeft = next;
@@ -26705,10 +26706,17 @@ function findOptimalFontSize(textElement, applyFontSize) {
   let minSize = 5;
   let maxSize = 2400;
   let bestSize = minSize;
+  const computedStyle = window.getComputedStyle(textElement);
+  const paddingLeft = parseFloat(computedStyle.paddingLeft) || 0;
+  const paddingRight = parseFloat(computedStyle.paddingRight) || 0;
+  const range = document.createRange();
+  range.selectNodeContents(textElement);
   while (minSize <= maxSize) {
     const midSize = Math.floor((minSize + maxSize) / 2);
     applyFontSize(midSize);
-    const fitsWidth = textElement.scrollWidth <= textElement.clientWidth;
+    const rect = range.getBoundingClientRect();
+    const textWidth = rect.width;
+    const fitsWidth = textElement.scrollWidth <= textElement.clientWidth && textWidth <= textElement.clientWidth - paddingLeft - paddingRight;
     const fitsHeight = alreadyHasScrollableHeight || textElement.scrollHeight <= textElement.clientHeight;
     if (fitsWidth && fitsHeight) {
       bestSize = midSize;
@@ -26717,6 +26725,7 @@ function findOptimalFontSize(textElement, applyFontSize) {
       maxSize = midSize - 1;
     }
   }
+  range.detach();
   return bestSize;
 }
 function optimizeFitText(textElement, applyFontSize) {
@@ -46404,13 +46413,17 @@ function BlockBindingsPanelMenuContent({ attribute, binding, sources }) {
                 key: item.key
               }
             };
-            const values = source.getValues({
-              select,
-              context: blockContext,
-              bindings: {
-                [attribute]: itemBindings
-              }
-            });
+            let values = {};
+            try {
+              values = source.getValues({
+                select,
+                context: blockContext,
+                bindings: {
+                  [attribute]: itemBindings
+                }
+              });
+            } catch (e) {
+            }
             return /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsxs)(
               Menu.CheckboxItem,
               {
@@ -56896,7 +56909,13 @@ function VariationsToggleGroupControl({
 }
 function __experimentalBlockVariationTransforms({ blockClientId }) {
   const { updateBlockAttributes } = (0,external_wp_data_namespaceObject.useDispatch)(store);
-  const { activeBlockVariation, variations, isContentOnly, isSection } = (0,external_wp_data_namespaceObject.useSelect)(
+  const {
+    activeBlockVariation,
+    unfilteredVariations,
+    blockName,
+    isContentOnly,
+    isSection
+  } = (0,external_wp_data_namespaceObject.useSelect)(
     (select) => {
       const { getActiveBlockVariation, getBlockVariations } = select(external_wp_blocks_namespaceObject.store);
       const {
@@ -56906,9 +56925,7 @@ function __experimentalBlockVariationTransforms({ blockClientId }) {
         isSectionBlock
       } = unlock(select(store));
       const name = blockClientId && getBlockName(blockClientId);
-      const { hasContentRoleAttribute } = unlock(
-        select(external_wp_blocks_namespaceObject.store)
-      );
+      const { hasContentRoleAttribute } = unlock(select(external_wp_blocks_namespaceObject.store));
       const isContentBlock = hasContentRoleAttribute(name);
       return {
         activeBlockVariation: getActiveBlockVariation(
@@ -56916,13 +56933,36 @@ function __experimentalBlockVariationTransforms({ blockClientId }) {
           getBlockAttributes(blockClientId),
           "transform"
         ),
-        variations: name && getBlockVariations(name, "transform"),
+        unfilteredVariations: name && getBlockVariations(name, "transform"),
+        blockName: name,
         isContentOnly: getBlockEditingMode(blockClientId) === "contentOnly" && !isContentBlock,
         isSection: isSectionBlock(blockClientId)
       };
     },
     [blockClientId]
   );
+  const variations = (0,external_wp_element_namespaceObject.useMemo)(() => {
+    if (blockName === "core/paragraph") {
+      if (activeBlockVariation?.name === "stretchy-paragraph" || unfilteredVariations.every(
+        (v) => ["paragraph", "stretchy-paragraph"].includes(v.name)
+      )) {
+        return [];
+      }
+      return unfilteredVariations.filter(
+        (v) => v.name !== "stretchy-paragraph"
+      );
+    } else if (blockName === "core/heading") {
+      if (activeBlockVariation?.name === "stretchy-heading" || unfilteredVariations.every(
+        (v) => ["heading", "stretchy-heading"].includes(v.name)
+      )) {
+        return [];
+      }
+      return unfilteredVariations.filter(
+        (v) => v.name !== "stretchy-heading"
+      );
+    }
+    return unfilteredVariations;
+  }, [activeBlockVariation?.name, blockName, unfilteredVariations]);
   const selectedValue = activeBlockVariation?.name;
   const hasUniqueIcons = (0,external_wp_element_namespaceObject.useMemo)(() => {
     const variationIcons = /* @__PURE__ */ new Set();
diff --git a/wp-includes/js/dist/block-editor.min.js b/wp-includes/js/dist/block-editor.min.js
index 906ef8b9c3..3ed11c4aac 100644
--- a/wp-includes/js/dist/block-editor.min.js
+++ b/wp-includes/js/dist/block-editor.min.js
@@ -18,6 +18,6 @@
 	autosize 4.0.4
 	license: MIT
 	http://www.jacklmoore.com/autosize
-*/o=[e,t],n=function(e,t){"use strict";var n,o,r="function"==typeof Map?new Map:(n=[],o=[],{has:function(e){return n.indexOf(e)>-1},get:function(e){return o[n.indexOf(e)]},set:function(e,t){-1===n.indexOf(e)&&(n.push(e),o.push(t))},delete:function(e){var t=n.indexOf(e);t>-1&&(n.splice(t,1),o.splice(t,1))}}),i=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(e){i=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}function s(e){if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!r.has(e)){var t=null,n=null,o=null,s=function(){e.clientWidth!==n&&p()},l=function(t){window.removeEventListener("resize",s,!1),e.removeEventListener("input",p,!1),e.removeEventListener("keyup",p,!1),e.removeEventListener("autosize:destroy",l,!1),e.removeEventListener("autosize:update",p,!1),Object.keys(t).forEach((function(n){e.style[n]=t[n]})),r.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",l,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",p,!1),window.addEventListener("resize",s,!1),e.addEventListener("input",p,!1),e.addEventListener("autosize:update",p,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",r.set(e,{destroy:l,update:p}),a()}function a(){var n=window.getComputedStyle(e,null);"vertical"===n.resize?e.style.resize="none":"both"===n.resize&&(e.style.resize="horizontal"),t="content-box"===n.boxSizing?-(parseFloat(n.paddingTop)+parseFloat(n.paddingBottom)):parseFloat(n.borderTopWidth)+parseFloat(n.borderBottomWidth),isNaN(t)&&(t=0),p()}function c(t){var n=e.style.width;e.style.width="0px",e.offsetWidth,e.style.width=n,e.style.overflowY=t}function u(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push({node:e.parentNode,scrollTop:e.parentNode.scrollTop}),e=e.parentNode;return t}function d(){if(0!==e.scrollHeight){var o=u(e),r=document.documentElement&&document.documentElement.scrollTop;e.style.height="",e.style.height=e.scrollHeight+t+"px",n=e.clientWidth,o.forEach((function(e){e.node.scrollTop=e.scrollTop})),r&&(document.documentElement.scrollTop=r)}}function p(){d();var t=Math.round(parseFloat(e.style.height)),n=window.getComputedStyle(e,null),r="content-box"===n.boxSizing?Math.round(parseFloat(n.height)):e.offsetHeight;if(r<t?"hidden"===n.overflowY&&(c("scroll"),d(),r="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight):"hidden"!==n.overflowY&&(c("hidden"),d(),r="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight),o!==r){o=r;var s=i("autosize:resized");try{e.dispatchEvent(s)}catch(e){}}}}function l(e){var t=r.get(e);t&&t.destroy()}function a(e){var t=r.get(e);t&&t.update()}var c=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?((c=function(e){return e}).destroy=function(e){return e},c.update=function(e){return e}):((c=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],(function(e){return s(e,t)})),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],l),e},c.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],a),e}),t.default=c,e.exports=t.default},void 0===(r="function"==typeof n?n.apply(t,o):n)||(e.exports=r)},4462: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)}),i=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},s=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 l=n(1609),a=n(5826),c=n(4306),u=n(461),d="autosize:resized",p=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&&c(e.textarea)})):this.textarea&&c(this.textarea),this.textarea&&this.textarea.addEventListener(d,this.onResize)},t.prototype.componentWillUnmount=function(){this.textarea&&(this.textarea.removeEventListener(d,this.onResize),c.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=s(t,["onResize","maxRows","onChange","style","innerRef","children"]),c=this.state.lineHeight,u=n&&c?c*n:null;return l.createElement("textarea",i({},a,{onChange:this.onChange,style:u?i({},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&&c.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}(l.Component);t.TextareaAutosize=l.forwardRef((function(e,t){return l.createElement(p,i({},e,{innerRef:t}))}))},4725:e=>{function t(e,t){var o,r,i=e.type,s=e.value;return t&&void 0!==(r=t(e))?r:"word"===i||"space"===i?s:"string"===i?(o=e.quote||"")+s+(e.unclosed?"":o):"comment"===i?"/*"+s+(e.unclosed?"":"*/"):"div"===i?(e.before||"")+s+(e.after||""):Array.isArray(e.nodes)?(o=n(e.nodes,t),"function"!==i?o:s+"("+(e.before||"")+o+(e.after||"")+(e.unclosed?"":")")):s}function n(e,n){var o,r;if(Array.isArray(e)){for(o="",r=e.length-1;~r;r-=1)o=t(e[r],n)+o;return o}return t(e,n)}e.exports=n},5042:e=>{e.exports={nanoid:(e=21)=>{let t="",n=0|e;for(;n--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},customAlphabet:(e,t=21)=>(n=t)=>{let o="",r=0|n;for(;r--;)o+=e[Math.random()*e.length|0];return o}}},5215:e=>{"use strict";e.exports=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 o,r,i;if(Array.isArray(t)){if((o=t.length)!=n.length)return!1;for(r=o;0!=r--;)if(!e(t[r],n[r]))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((o=(i=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(r=o;0!=r--;)if(!Object.prototype.hasOwnProperty.call(n,i[r]))return!1;for(r=o;0!=r--;){var s=i[r];if(!e(t[s],n[s]))return!1}return!0}return t!=t&&n!=n}},5380:(e,t,n)=>{"use strict";let{nanoid:o}=n(5042),{isAbsolute:r,resolve:i}=n(197),{SourceMapConsumer:s,SourceMapGenerator:l}=n(1866),{fileURLToPath:a,pathToFileURL:c}=n(2739),u=n(356),d=n(5696),p=n(9746),h=Symbol("lineToIndexCache"),g=Boolean(s&&l),m=Boolean(i&&r);function f(e){if(e[h])return e[h];let t=e.css.split("\n"),n=new Array(t.length),o=0;for(let e=0,r=t.length;e<r;e++)n[e]=o,o+=t[e].length+1;return e[h]=n,n}class b{get from(){return this.file||this.id}constructor(e,t={}){if(null==e||"object"==typeof e&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),"\ufeff"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,t.document&&(this.document=t.document.toString()),t.from&&(!m||/^\w+:\/\//.test(t.from)||r(t.from)?this.file=t.from:this.file=i(t.from)),m&&g){let e=new d(this.css,t);if(e.text){this.map=e;let t=e.consumer().file;!this.file&&t&&(this.file=this.mapResolve(t))}}this.file||(this.id="<input css "+o(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,n,o={}){let r,i,s,l,a;if(t&&"object"==typeof t){let e=t,o=n;if("number"==typeof e.offset){l=e.offset;let o=this.fromOffset(l);t=o.line,n=o.col}else t=e.line,n=e.column,l=this.fromLineAndColumn(t,n);if("number"==typeof o.offset){s=o.offset;let e=this.fromOffset(s);i=e.line,r=e.col}else i=o.line,r=o.column,s=this.fromLineAndColumn(o.line,o.column)}else if(n)l=this.fromLineAndColumn(t,n);else{l=t;let e=this.fromOffset(l);t=e.line,n=e.col}let d=this.origin(t,n,i,r);return a=d?new u(e,void 0===d.endLine?d.line:{column:d.column,line:d.line},void 0===d.endLine?d.column:{column:d.endColumn,line:d.endLine},d.source,d.file,o.plugin):new u(e,void 0===i?t:{column:n,line:t},void 0===i?n:{column:r,line:i},this.css,this.file,o.plugin),a.input={column:n,endColumn:r,endLine:i,endOffset:s,line:t,offset:l,source:this.css},this.file&&(c&&(a.input.url=c(this.file).toString()),a.input.file=this.file),a}fromLineAndColumn(e,t){return f(this)[e-1]+t-1}fromOffset(e){let t=f(this),n=0;if(e>=t[t.length-1])n=t.length-1;else{let o,r=t.length-2;for(;n<r;)if(o=n+(r-n>>1),e<t[o])r=o-1;else{if(!(e>=t[o+1])){n=o;break}n=o+1}}return{col:e-t[n]+1,line:n+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:i(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,n,o){if(!this.map)return!1;let i,s,l=this.map.consumer(),u=l.originalPositionFor({column:t,line:e});if(!u.source)return!1;"number"==typeof n&&(i=l.originalPositionFor({column:o,line:n})),s=r(u.source)?c(u.source):new URL(u.source,this.map.consumer().sourceRoot||c(this.map.mapFile));let d={column:u.column,endColumn:i&&i.column,endLine:i&&i.line,line:u.line,url:s.toString()};if("file:"===s.protocol){if(!a)throw new Error("file: protocol is not available in this PostCSS build");d.file=a(s)}let p=l.sourceContentFor(u.source);return p&&(d.source=p),d}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])null!=this[t]&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}}e.exports=b,b.default=b,p&&p.registerInput&&p.registerInput(b)},5404:(e,t,n)=>{const o=n(1544);e.exports=e=>{const t=Object.assign({skipHostRelativeUrls:!0},e);return{postcssPlugin:"rebaseUrl",Declaration(n){const r=o(n.value);let i=!1;r.walk((n=>{if("function"!==n.type||"url"!==n.value)return;const o=n.nodes[0].value,r=new URL(o,e.rootUrl);return r.pathname===o&&t.skipHostRelativeUrls||(n.nodes[0].value=r.toString(),i=!0),!1})),i&&(n.value=o.stringify(r))}}},e.exports.postcss=!0},5417:(e,t)=>{"use strict";function n(){}function o(e,t,n,o,r){for(var i=0,s=t.length,l=0,a=0;i<s;i++){var c=t[i];if(c.removed){if(c.value=e.join(o.slice(a,a+c.count)),a+=c.count,i&&t[i-1].added){var u=t[i-1];t[i-1]=t[i],t[i]=u}}else{if(!c.added&&r){var d=n.slice(l,l+c.count);d=d.map((function(e,t){var n=o[a+t];return n.length>e.length?n:e})),c.value=e.join(d)}else c.value=e.join(n.slice(l,l+c.count));l+=c.count,c.added||(a+=c.count)}}var p=t[s-1];return s>1&&"string"==typeof p.value&&(p.added||p.removed)&&e.equals("",p.value)&&(t[s-2].value+=p.value,t.pop()),t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n,n.prototype={diff:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.callback;"function"==typeof n&&(r=n,n={}),this.options=n;var i=this;function s(e){return r?(setTimeout((function(){r(void 0,e)}),0),!0):e}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e));var l=(t=this.removeEmpty(this.tokenize(t))).length,a=e.length,c=1,u=l+a,d=[{newPos:-1,components:[]}],p=this.extractCommon(d[0],t,e,0);if(d[0].newPos+1>=l&&p+1>=a)return s([{value:this.join(t),count:t.length}]);function h(){for(var n=-1*c;n<=c;n+=2){var r=void 0,u=d[n-1],p=d[n+1],h=(p?p.newPos:0)-n;u&&(d[n-1]=void 0);var g=u&&u.newPos+1<l,m=p&&0<=h&&h<a;if(g||m){if(!g||m&&u.newPos<p.newPos?(r={newPos:(f=p).newPos,components:f.components.slice(0)},i.pushComponent(r.components,void 0,!0)):((r=u).newPos++,i.pushComponent(r.components,!0,void 0)),h=i.extractCommon(r,t,e,n),r.newPos+1>=l&&h+1>=a)return s(o(i,r.components,t,e,i.useLongestToken));d[n]=r}else d[n]=void 0}var f;c++}if(r)!function e(){setTimeout((function(){if(c>u)return r();h()||e()}),0)}();else for(;c<=u;){var g=h();if(g)return g}},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,i=n.length,s=e.newPos,l=s-o,a=0;s+1<r&&l+1<i&&this.equals(t[s+1],n[l+1]);)s++,l++,a++;return a&&e.components.push({count:a}),e.newPos=s,l},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("")}}},5696:(e,t,n)=>{"use strict";let{existsSync:o,readFileSync:r}=n(9977),{dirname:i,join:s}=n(197),{SourceMapConsumer:l,SourceMapGenerator:a}=n(1866);class c{constructor(e,t){if(!1===t.map)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let n=t.map?t.map.prev:void 0,o=this.loadMap(t.from,n);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=i(this.mapFile)),o&&(this.text=o)}consumer(){return this.consumerCache||(this.consumerCache=new l(this.text)),this.consumerCache}decodeInline(e){let t=e.match(/^data:application\/json;charset=utf-?8,/)||e.match(/^data:application\/json,/);if(t)return decodeURIComponent(e.substr(t[0].length));let n=e.match(/^data:application\/json;charset=utf-?8;base64,/)||e.match(/^data:application\/json;base64,/);if(n)return o=e.substr(n[0].length),Buffer?Buffer.from(o,"base64").toString():window.atob(o);var o;let r=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+r)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return"object"==typeof e&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/g);if(!t)return;let n=e.lastIndexOf(t.pop()),o=e.indexOf("*/",n);n>-1&&o>-1&&(this.annotation=this.getAnnotationURL(e.substring(n,o)))}loadFile(e){if(this.root=i(e),o(e))return this.mapFile=e,r(e,"utf-8").toString().trim()}loadMap(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"!=typeof t){if(t instanceof l)return a.fromSourceMap(t).toString();if(t instanceof a)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}{let n=t(e);if(n){let e=this.loadFile(n);if(!e)throw new Error("Unable to load previous source map: "+n.toString());return e}}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let t=this.annotation;return e&&(t=s(i(e),t)),this.loadFile(t)}}}startWith(e,t){return!!e&&e.substr(0,t.length)===t}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}e.exports=c,c.default=c},5776:e=>{"use strict";class t{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let e=t.node.rangeBy(t);this.line=e.start.line,this.column=e.start.column,this.endLine=e.end.line,this.endColumn=e.end.column}for(let e in t)this[e]=t[e]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}e.exports=t,t.default=t},5826:(e,t,n)=>{e.exports=n(628)()},6109:e=>{e.exports=function(e,t,n){return((n=window.getComputedStyle)?n(e):e.currentStyle)[t.replace(/-(\w)/gi,(function(e,t){return t.toUpperCase()}))]}},6589:(e,t,n)=>{"use strict";let o=n(7490);class r extends o{constructor(e){super(e),this.type="comment"}}e.exports=r,r.default=r},7191:(e,t,n)=>{"use strict";var o=n(2213),r=n(1087);function i(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}}i.getEventType=function(){return o.firefox()?"DOMMouseScroll":r("wheel")?"wheel":"mousewheel"},e.exports=i},7374:e=>{"use strict";let t={comma:e=>t.split(e,[","],!0),space:e=>t.split(e,[" ","\n","\t"]),split(e,t,n){let o=[],r="",i=!1,s=0,l=!1,a="",c=!1;for(let n of e)c?c=!1:"\\"===n?c=!0:l?n===a&&(l=!1):'"'===n||"'"===n?(l=!0,a=n):"("===n?s+=1:")"===n?s>0&&(s-=1):0===s&&t.includes(n)&&(i=!0),i?(""!==r&&o.push(r.trim()),r="",i=!1):r+=n;return(n||""!==r)&&o.push(r.trim()),o}};e.exports=t,t.default=t},7490:(e,t,n)=>{"use strict";let o=n(356),r=n(346),i=n(633),{isClean:s,my:l}=n(1381);function a(e,t){let n=new e.constructor;for(let o in e){if(!Object.prototype.hasOwnProperty.call(e,o))continue;if("proxyCache"===o)continue;let r=e[o],i=typeof r;"parent"===o&&"object"===i?t&&(n[o]=t):"source"===o?n[o]=r:Array.isArray(r)?n[o]=r.map((e=>a(e,n))):("object"===i&&null!==r&&(r=a(r)),n[o]=r)}return n}function c(e,t){if(t&&void 0!==t.offset)return t.offset;let n=1,o=1,r=0;for(let i=0;i<e.length;i++){if(o===t.line&&n===t.column){r=i;break}"\n"===e[i]?(n=1,o+=1):n+=1}return r}class u{get proxyOf(){return this}constructor(e={}){this.raws={},this[s]=!1,this[l]=!0;for(let t in e)if("nodes"===t){this.nodes=[];for(let n of e[t])"function"==typeof n.clone?this.append(n.clone()):this.append(n)}else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=a(this);for(let n in e)t[n]=e[n];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:n,start:o}=this.rangeBy(t);return this.source.input.error(e,{column:o.column,line:o.line},{column:n.column,line:n.line},t)}return new o(e)}getProxyProcessor(){return{get:(e,t)=>"proxyOf"===t?e:"root"===t?()=>e.root().toProxy():e[t],set:(e,t,n)=>(e[t]===n||(e[t]=n,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0)}}markClean(){this[s]=!0}markDirty(){if(this[s]){this[s]=!1;let e=this;for(;e=e.parent;)e[s]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e={}){let t=this.source.start;if(e.index)t=this.positionInside(e.index);else if(e.word){let n="document"in this.source.input?this.source.input.document:this.source.input.css,o=n.slice(c(n,this.source.start),c(n,this.source.end)).indexOf(e.word);-1!==o&&(t=this.positionInside(o))}return t}positionInside(e){let t=this.source.start.column,n=this.source.start.line,o="document"in this.source.input?this.source.input.document:this.source.input.css,r=c(o,this.source.start),i=r+e;for(let e=r;e<i;e++)"\n"===o[e]?(t=1,n+=1):t+=1;return{column:t,line:n,offset:i}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e={}){let t="document"in this.source.input?this.source.input.document:this.source.input.css,n={column:this.source.start.column,line:this.source.start.line,offset:c(t,this.source.start)},o=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:"number"==typeof this.source.end.offset?this.source.end.offset:c(t,this.source.end)+1}:{column:n.column+1,line:n.line,offset:n.offset+1};if(e.word){let r=t.slice(c(t,this.source.start),c(t,this.source.end)).indexOf(e.word);-1!==r&&(n=this.positionInside(r),o=this.positionInside(r+e.word.length))}else e.start?n={column:e.start.column,line:e.start.line,offset:c(t,e.start)}:e.index&&(n=this.positionInside(e.index)),e.end?o={column:e.end.column,line:e.end.line,offset:c(t,e.end)}:"number"==typeof e.endIndex?o=this.positionInside(e.endIndex):e.index&&(o=this.positionInside(e.index+1));return(o.line<n.line||o.line===n.line&&o.column<=n.column)&&(o={column:n.column+1,line:n.line,offset:n.offset+1}),{end:o,start:n}}raw(e,t){return(new r).raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,n=!1;for(let o of e)o===this?n=!0:n?(this.parent.insertAfter(t,o),t=o):this.parent.insertBefore(t,o);n||this.remove()}return this}root(){let e=this;for(;e.parent&&"document"!==e.parent.type;)e=e.parent;return e}toJSON(e,t){let n={},o=null==t;t=t||new Map;let r=0;for(let e in this){if(!Object.prototype.hasOwnProperty.call(this,e))continue;if("parent"===e||"proxyCache"===e)continue;let o=this[e];if(Array.isArray(o))n[e]=o.map((e=>"object"==typeof e&&e.toJSON?e.toJSON(null,t):e));else if("object"==typeof o&&o.toJSON)n[e]=o.toJSON(null,t);else if("source"===e){if(null==o)continue;let i=t.get(o.input);null==i&&(i=r,t.set(o.input,r),r++),n[e]={end:o.end,inputId:i,start:o.start}}else n[e]=o}return o&&(n.inputs=[...t.keys()].map((e=>e.toJSON()))),n}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=i){e.stringify&&(e=e.stringify);let t="";return e(this,(e=>{t+=e})),t}warn(e,t,n={}){let o={node:this};for(let e in n)o[e]=n[e];return e.warn(t,o)}}e.exports=u,u.default=u},7520:(e,t,n)=>{e.exports=n(7191)},7661:(e,t,n)=>{"use strict";let o=n(1670),r=n(4295);const i=n(9055);let s=n(633);n(3122);class l{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,t=r;try{e=t(this._css,this._opts)}catch(e){this.error=e}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(e,t,n){let r;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=n,this._map=void 0;let l=s;this.result=new i(this._processor,r,this._opts),this.result.css=t;let a=this;Object.defineProperty(this.result,"root",{get:()=>a.root});let c=new o(l,r,this._opts,t);if(c.isMap()){let[e,t]=c.generate();e&&(this.result.css=e),t&&(this.result.map=t)}else c.clearAnnotation(),this.result.css=c.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return this.async().then(e,t)}toString(){return this._css}warnings(){return[]}}e.exports=l,l.default=l},7734:e=>{"use strict";e.exports=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 o,r,i;if(Array.isArray(t)){if((o=t.length)!=n.length)return!1;for(r=o;0!=r--;)if(!e(t[r],n[r]))return!1;return!0}if(t instanceof Map&&n instanceof Map){if(t.size!==n.size)return!1;for(r of t.entries())if(!n.has(r[0]))return!1;for(r of t.entries())if(!e(r[1],n.get(r[0])))return!1;return!0}if(t instanceof Set&&n instanceof Set){if(t.size!==n.size)return!1;for(r of t.entries())if(!n.has(r[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(n)){if((o=t.length)!=n.length)return!1;for(r=o;0!=r--;)if(t[r]!==n[r])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((o=(i=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(r=o;0!=r--;)if(!Object.prototype.hasOwnProperty.call(n,i[r]))return!1;for(r=o;0!=r--;){var s=i[r];if(!e(t[s],n[s]))return!1}return!0}return t!=t&&n!=n}},8021:(e,t,n)=>{"use strict";var o;t.JJ=function(e,t,n){return r.diff(e,t,n)};var r=new(((o=n(5417))&&o.__esModule?o:{default:o}).default)},8202:e=>{"use strict";var t=!("undefined"==typeof window||!window.document||!window.document.createElement),n={canUseDOM:t,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:t&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:t&&!!window.screen,isInWorker:!t};e.exports=n},8491:e=>{var t="(".charCodeAt(0),n=")".charCodeAt(0),o="'".charCodeAt(0),r='"'.charCodeAt(0),i="\\".charCodeAt(0),s="/".charCodeAt(0),l=",".charCodeAt(0),a=":".charCodeAt(0),c="*".charCodeAt(0),u="u".charCodeAt(0),d="U".charCodeAt(0),p="+".charCodeAt(0),h=/^[a-f0-9?-]+$/i;e.exports=function(e){for(var g,m,f,b,k,v,_,y,x,S=[],w=e,C=0,B=w.charCodeAt(C),I=w.length,j=[{nodes:S}],E=0,T="",M="",P="";C<I;)if(B<=32){g=C;do{g+=1,B=w.charCodeAt(g)}while(B<=32);b=w.slice(C,g),f=S[S.length-1],B===n&&E?P=b:f&&"div"===f.type?(f.after=b,f.sourceEndIndex+=b.length):B===l||B===a||B===s&&w.charCodeAt(g+1)!==c&&(!x||x&&"function"===x.type&&"calc"!==x.value)?M=b:S.push({type:"space",sourceIndex:C,sourceEndIndex:g,value:b}),C=g}else if(B===o||B===r){g=C,b={type:"string",sourceIndex:C,quote:m=B===o?"'":'"'};do{if(k=!1,~(g=w.indexOf(m,g+1)))for(v=g;w.charCodeAt(v-1)===i;)v-=1,k=!k;else g=(w+=m).length-1,b.unclosed=!0}while(k);b.value=w.slice(C+1,g),b.sourceEndIndex=b.unclosed?g:g+1,S.push(b),C=g+1,B=w.charCodeAt(C)}else if(B===s&&w.charCodeAt(C+1)===c)b={type:"comment",sourceIndex:C,sourceEndIndex:(g=w.indexOf("*/",C))+2},-1===g&&(b.unclosed=!0,g=w.length,b.sourceEndIndex=g),b.value=w.slice(C+2,g),S.push(b),C=g+2,B=w.charCodeAt(C);else if(B!==s&&B!==c||!x||"function"!==x.type||"calc"!==x.value)if(B===s||B===l||B===a)b=w[C],S.push({type:"div",sourceIndex:C-M.length,sourceEndIndex:C+b.length,value:b,before:M,after:""}),M="",C+=1,B=w.charCodeAt(C);else if(t===B){g=C;do{g+=1,B=w.charCodeAt(g)}while(B<=32);if(y=C,b={type:"function",sourceIndex:C-T.length,value:T,before:w.slice(y+1,g)},C=g,"url"===T&&B!==o&&B!==r){g-=1;do{if(k=!1,~(g=w.indexOf(")",g+1)))for(v=g;w.charCodeAt(v-1)===i;)v-=1,k=!k;else g=(w+=")").length-1,b.unclosed=!0}while(k);_=g;do{_-=1,B=w.charCodeAt(_)}while(B<=32);y<_?(b.nodes=C!==_+1?[{type:"word",sourceIndex:C,sourceEndIndex:_+1,value:w.slice(C,_+1)}]:[],b.unclosed&&_+1!==g?(b.after="",b.nodes.push({type:"space",sourceIndex:_+1,sourceEndIndex:g,value:w.slice(_+1,g)})):(b.after=w.slice(_+1,g),b.sourceEndIndex=g)):(b.after="",b.nodes=[]),C=g+1,b.sourceEndIndex=b.unclosed?g:C,B=w.charCodeAt(C),S.push(b)}else E+=1,b.after="",b.sourceEndIndex=C+1,S.push(b),j.push(b),S=b.nodes=[],x=b;T=""}else if(n===B&&E)C+=1,B=w.charCodeAt(C),x.after=P,x.sourceEndIndex+=P.length,P="",E-=1,j[j.length-1].sourceEndIndex=C,j.pop(),S=(x=j[E]).nodes;else{g=C;do{B===i&&(g+=1),g+=1,B=w.charCodeAt(g)}while(g<I&&!(B<=32||B===o||B===r||B===l||B===a||B===s||B===t||B===c&&x&&"function"===x.type&&"calc"===x.value||B===s&&"function"===x.type&&"calc"===x.value||B===n&&E));b=w.slice(C,g),t===B?T=b:u!==b.charCodeAt(0)&&d!==b.charCodeAt(0)||p!==b.charCodeAt(1)||!h.test(b.slice(2))?S.push({type:"word",sourceIndex:C,sourceEndIndex:g,value:b}):S.push({type:"unicode-range",sourceIndex:C,sourceEndIndex:g,value:b}),C=g}else b=w[C],S.push({type:"word",sourceIndex:C-M.length,sourceEndIndex:C+b.length,value:b}),C+=1,B=w.charCodeAt(C);for(C=j.length-1;C;C-=1)j[C].unclosed=!0,j[C].sourceEndIndex=w.length;return j[0].nodes}},9055:(e,t,n)=>{"use strict";let o=n(5776);class r{get content(){return this.css}constructor(e,t,n){this.processor=e,this.messages=[],this.root=t,this.opts=n,this.css="",this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let n=new o(e,t);return this.messages.push(n),n}warnings(){return this.messages.filter((e=>"warning"===e.type))}}e.exports=r,r.default=r},9434:(e,t,n)=>{"use strict";let o,r,i=n(683);class s extends i{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,n){let o=super.normalize(e);if(t)if("prepend"===n)this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let e of o)e.raws.before=t.raws.before;return o}removeChild(e,t){let n=this.index(e);return!t&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),super.removeChild(e)}toResult(e={}){return new o(new r,this,e).stringify()}}s.registerLazyResult=e=>{o=e},s.registerProcessor=e=>{r=e},e.exports=s,s.default=s,i.registerRoot(s)},9656:(e,t,n)=>{"use strict";let o=n(271),r=n(448),i=n(7661),s=n(9434);class l{constructor(e=[]){this.version="8.5.6",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let n of e)if(!0===n.postcss?n=n():n.postcss&&(n=n.postcss),"object"==typeof n&&Array.isArray(n.plugins))t=t.concat(n.plugins);else if("object"==typeof n&&n.postcssPlugin)t.push(n);else if("function"==typeof n)t.push(n);else{if("object"!=typeof n||!n.parse&&!n.stringify)throw new Error(n+" is not a PostCSS plugin")}return t}process(e,t={}){return this.plugins.length||t.parser||t.stringifier||t.syntax?new r(this,e,t):new i(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}}e.exports=l,l.default=l,s.registerProcessor(l),o.registerProcessor(l)},9681:e=>{var t={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",Ấ:"A",Ắ:"A",Ẳ:"A",Ẵ:"A",Ặ:"A",Æ:"AE",Ầ:"A",Ằ:"A",Ȃ:"A",Ả:"A",Ạ:"A",Ẩ:"A",Ẫ:"A",Ậ:"A",Ç:"C",Ḉ:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ế:"E",Ḗ:"E",Ề:"E",Ḕ:"E",Ḝ:"E",Ȇ:"E",Ẻ:"E",Ẽ:"E",Ẹ:"E",Ể:"E",Ễ:"E",Ệ:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ḯ:"I",Ȋ:"I",Ỉ:"I",Ị:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",Ố:"O",Ṍ:"O",Ṓ:"O",Ȏ:"O",Ỏ:"O",Ọ:"O",Ổ:"O",Ỗ:"O",Ộ:"O",Ờ:"O",Ở:"O",Ỡ:"O",Ớ:"O",Ợ:"O",Ù:"U",Ú:"U",Û:"U",Ü:"U",Ủ:"U",Ụ:"U",Ử:"U",Ữ:"U",Ự:"U",Ý:"Y",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",ấ:"a",ắ:"a",ẳ:"a",ẵ:"a",ặ:"a",æ:"ae",ầ:"a",ằ:"a",ȃ:"a",ả:"a",ạ:"a",ẩ:"a",ẫ:"a",ậ:"a",ç:"c",ḉ:"c",è:"e",é:"e",ê:"e",ë:"e",ế:"e",ḗ:"e",ề:"e",ḕ:"e",ḝ:"e",ȇ:"e",ẻ:"e",ẽ:"e",ẹ:"e",ể:"e",ễ:"e",ệ:"e",ì:"i",í:"i",î:"i",ï:"i",ḯ:"i",ȋ:"i",ỉ:"i",ị:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",ố:"o",ṍ:"o",ṓ:"o",ȏ:"o",ỏ:"o",ọ:"o",ổ:"o",ỗ:"o",ộ:"o",ờ:"o",ở:"o",ỡ:"o",ớ:"o",ợ:"o",ù:"u",ú:"u",û:"u",ü:"u",ủ:"u",ụ:"u",ử:"u",ữ:"u",ự:"u",ý:"y",ÿ:"y",Ā:"A",ā:"a",Ă:"A",ă:"a",Ą:"A",ą:"a",Ć:"C",ć:"c",Ĉ:"C",ĉ:"c",Ċ:"C",ċ:"c",Č:"C",č:"c",C̆:"C",c̆:"c",Ď:"D",ď:"d",Đ:"D",đ:"d",Ē:"E",ē:"e",Ĕ:"E",ĕ:"e",Ė:"E",ė:"e",Ę:"E",ę:"e",Ě:"E",ě:"e",Ĝ:"G",Ǵ:"G",ĝ:"g",ǵ:"g",Ğ:"G",ğ:"g",Ġ:"G",ġ:"g",Ģ:"G",ģ:"g",Ĥ:"H",ĥ:"h",Ħ:"H",ħ:"h",Ḫ:"H",ḫ:"h",Ĩ:"I",ĩ:"i",Ī:"I",ī:"i",Ĭ:"I",ĭ:"i",Į:"I",į:"i",İ:"I",ı:"i",IJ:"IJ",ij:"ij",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",Ḱ:"K",ḱ:"k",K̆:"K",k̆:"k",Ĺ:"L",ĺ:"l",Ļ:"L",ļ:"l",Ľ:"L",ľ:"l",Ŀ:"L",ŀ:"l",Ł:"l",ł:"l",Ḿ:"M",ḿ:"m",M̆:"M",m̆:"m",Ń:"N",ń:"n",Ņ:"N",ņ:"n",Ň:"N",ň:"n",ʼn:"n",N̆:"N",n̆:"n",Ō:"O",ō:"o",Ŏ:"O",ŏ:"o",Ő:"O",ő:"o",Œ:"OE",œ:"oe",P̆:"P",p̆:"p",Ŕ:"R",ŕ:"r",Ŗ:"R",ŗ:"r",Ř:"R",ř:"r",R̆:"R",r̆:"r",Ȓ:"R",ȓ:"r",Ś:"S",ś:"s",Ŝ:"S",ŝ:"s",Ş:"S",Ș:"S",ș:"s",ş:"s",Š:"S",š:"s",Ţ:"T",ţ:"t",ț:"t",Ț:"T",Ť:"T",ť:"t",Ŧ:"T",ŧ:"t",T̆:"T",t̆:"t",Ũ:"U",ũ:"u",Ū:"U",ū:"u",Ŭ:"U",ŭ:"u",Ů:"U",ů:"u",Ű:"U",ű:"u",Ų:"U",ų:"u",Ȗ:"U",ȗ:"u",V̆:"V",v̆:"v",Ŵ:"W",ŵ:"w",Ẃ:"W",ẃ:"w",X̆:"X",x̆:"x",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Y̆:"Y",y̆:"y",Ź:"Z",ź:"z",Ż:"Z",ż:"z",Ž:"Z",ž:"z",ſ:"s",ƒ:"f",Ơ:"O",ơ:"o",Ư:"U",ư:"u",Ǎ:"A",ǎ:"a",Ǐ:"I",ǐ:"i",Ǒ:"O",ǒ:"o",Ǔ:"U",ǔ:"u",Ǖ:"U",ǖ:"u",Ǘ:"U",ǘ:"u",Ǚ:"U",ǚ:"u",Ǜ:"U",ǜ:"u",Ứ:"U",ứ:"u",Ṹ:"U",ṹ:"u",Ǻ:"A",ǻ:"a",Ǽ:"AE",ǽ:"ae",Ǿ:"O",ǿ:"o",Þ:"TH",þ:"th",Ṕ:"P",ṕ:"p",Ṥ:"S",ṥ:"s",X́:"X",x́:"x",Ѓ:"Г",ѓ:"г",Ќ:"К",ќ:"к",A̋:"A",a̋:"a",E̋:"E",e̋:"e",I̋:"I",i̋:"i",Ǹ:"N",ǹ:"n",Ồ:"O",ồ:"o",Ṑ:"O",ṑ:"o",Ừ:"U",ừ:"u",Ẁ:"W",ẁ:"w",Ỳ:"Y",ỳ:"y",Ȁ:"A",ȁ:"a",Ȅ:"E",ȅ:"e",Ȉ:"I",ȉ:"i",Ȍ:"O",ȍ:"o",Ȑ:"R",ȑ:"r",Ȕ:"U",ȕ:"u",B̌:"B",b̌:"b",Č̣:"C",č̣:"c",Ê̌:"E",ê̌:"e",F̌:"F",f̌:"f",Ǧ:"G",ǧ:"g",Ȟ:"H",ȟ:"h",J̌:"J",ǰ:"j",Ǩ:"K",ǩ:"k",M̌:"M",m̌:"m",P̌:"P",p̌:"p",Q̌:"Q",q̌:"q",Ř̩:"R",ř̩:"r",Ṧ:"S",ṧ:"s",V̌:"V",v̌:"v",W̌:"W",w̌:"w",X̌:"X",x̌:"x",Y̌:"Y",y̌:"y",A̧:"A",a̧:"a",B̧:"B",b̧:"b",Ḑ:"D",ḑ:"d",Ȩ:"E",ȩ:"e",Ɛ̧:"E",ɛ̧:"e",Ḩ:"H",ḩ:"h",I̧:"I",i̧:"i",Ɨ̧:"I",ɨ̧:"i",M̧:"M",m̧:"m",O̧:"O",o̧:"o",Q̧:"Q",q̧:"q",U̧:"U",u̧:"u",X̧:"X",x̧:"x",Z̧:"Z",z̧:"z",й:"и",Й:"И",ё:"е",Ё:"Е"},n=Object.keys(t).join("|"),o=new RegExp(n,"g"),r=new RegExp(n,"");function i(e){return t[e]}var s=function(e){return e.replace(o,i)};e.exports=s,e.exports.has=function(e){return!!e.match(r)},e.exports.remove=s},9746:()=>{},9977:()=>{}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var i=t[o]={exports:{}};return e[o].call(i.exports,i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{"use strict";n.r(o),n.d(o,{AlignmentControl:()=>Vg,AlignmentToolbar:()=>Fg,Autocomplete:()=>kj,BlockAlignmentControl:()=>pa,BlockAlignmentToolbar:()=>ha,BlockBreadcrumb:()=>Cj,BlockCanvas:()=>XT,BlockColorsStyleSelector:()=>tM,BlockContextProvider:()=>iv,BlockControls:()=>Rs,BlockEdit:()=>vv,BlockEditorKeyboardShortcuts:()=>Qk,BlockEditorProvider:()=>ov,BlockFormatControls:()=>Ps,BlockIcon:()=>Vu,BlockInspector:()=>VA,BlockList:()=>dw,BlockMover:()=>Hj,BlockNavigationDropdown:()=>DM,BlockPopover:()=>tf,BlockPreview:()=>kC,BlockSelectionClearer:()=>RS,BlockSettingsMenu:()=>gT,BlockSettingsMenuControls:()=>lT,BlockStyles:()=>VM,BlockTitle:()=>wj,BlockToolbar:()=>OT,BlockTools:()=>UT,BlockVerticalAlignmentControl:()=>vl,BlockVerticalAlignmentToolbar:()=>_l,ButtonBlockAppender:()=>uI,ButtonBlockerAppender:()=>cI,ColorPalette:()=>cP,ColorPaletteControl:()=>uP,ContrastChecker:()=>dh,CopyHandler:()=>HA,DefaultBlockAppender:()=>yS,FontSizePicker:()=>sj,HeadingLevelDropdown:()=>$M,HeightControl:()=>bm,InnerBlocks:()=>ew,Inserter:()=>lI,InspectorAdvancedControls:()=>Va,InspectorControls:()=>Fa,JustifyContentControl:()=>Sl,JustifyToolbar:()=>wl,LineHeightControl:()=>Oh,LinkControl:()=>uu,MediaPlaceholder:()=>mR,MediaReplaceFlow:()=>hu,MediaUpload:()=>Ya,MediaUploadCheck:()=>Xa,MultiSelectScrollIntoView:()=>WA,NavigableToolbar:()=>ET,ObserveTyping:()=>rw,PanelColorSettings:()=>fR,PlainText:()=>qR,RecursionProvider:()=>JA,RichText:()=>WR,RichTextShortcut:()=>QR,RichTextToolbarButton:()=>JR,SETTINGS_DEFAULTS:()=>P,SkipToSelectedBlock:()=>gA,Typewriter:()=>XA,URLInput:()=>ac,URLInputButton:()=>oA,URLPopover:()=>dR,Warning:()=>bv,WritingFlow:()=>Aw,__experimentalBlockAlignmentMatrixControl:()=>xj,__experimentalBlockFullHeightAligmentControl:()=>_j,__experimentalBlockPatternSetup:()=>oP,__experimentalBlockPatternsList:()=>$C,__experimentalBlockVariationPicker:()=>KM,__experimentalBlockVariationTransforms:()=>lP,__experimentalBorderRadiusControl:()=>rp,__experimentalColorGradientControl:()=>qp,__experimentalColorGradientSettingsDropdown:()=>kP,__experimentalDateFormatPicker:()=>hP,__experimentalDuotoneControl:()=>Ef,__experimentalFontAppearanceControl:()=>Lh,__experimentalFontFamilyControl:()=>Ah,__experimentalGetBorderClassesAndStyles:()=>UI,__experimentalGetColorClassesAndStyles:()=>WI,__experimentalGetElementClassName:()=>lN,__experimentalGetGapCSSValue:()=>ul,__experimentalGetGradientClass:()=>Op,__experimentalGetGradientObjectByGradientValue:()=>Vp,__experimentalGetShadowClassesAndStyles:()=>$I,__experimentalGetSpacingClassesAndStyles:()=>ZI,__experimentalImageEditor:()=>oR,__experimentalImageSizeControl:()=>lR,__experimentalImageURLInputUI:()=>uA,__experimentalInspectorPopoverHeader:()=>oN,__experimentalLetterSpacingControl:()=>zh,__experimentalLibrary:()=>$A,__experimentalLinkControl:()=>cu,__experimentalLinkControlSearchInput:()=>Gc,__experimentalLinkControlSearchItem:()=>Bc,__experimentalLinkControlSearchResults:()=>Nc,__experimentalListView:()=>NM,__experimentalPanelColorGradientSettings:()=>xP,__experimentalPreviewOptions:()=>dA,__experimentalPublishDateTimePicker:()=>iN,__experimentalRecursionProvider:()=>tN,__experimentalResponsiveBlockControl:()=>XR,__experimentalSpacingSizesControl:()=>mm,__experimentalTextDecorationControl:()=>tg,__experimentalTextTransformControl:()=>Xh,__experimentalUnitControl:()=>tA,__experimentalUseBlockOverlayActive:()=>Bj,__experimentalUseBlockPreview:()=>vC,__experimentalUseBorderProps:()=>GI,__experimentalUseColorProps:()=>KI,__experimentalUseCustomSides:()=>mf,__experimentalUseGradient:()=>Hp,__experimentalUseHasRecursion:()=>nN,__experimentalUseMultipleOriginColorsAndGradients:()=>Nd,__experimentalUseResizeCanvas:()=>pA,__experimentalWritingModeControl:()=>ig,__unstableBlockNameContext:()=>CT,__unstableBlockSettingsMenuFirstItem:()=>zE,__unstableBlockToolbarLastItem:()=>_E,__unstableEditorStyles:()=>cC,__unstableIframe:()=>Fw,__unstableInserterMenuExtension:()=>KB,__unstableRichTextInputEvent:()=>eA,__unstableUseBlockSelectionClearer:()=>PS,__unstableUseClipboardHandler:()=>FA,__unstableUseMouseMoveTypingReset:()=>nw,__unstableUseTypewriter:()=>YA,__unstableUseTypingObserver:()=>ow,createCustomColorsHOC:()=>rj,getColorClassName:()=>Ad,getColorObjectByAttributeValues:()=>Pd,getColorObjectByColorValue:()=>Rd,getComputedFluidTypographyValue:()=>zi,getCustomValueFromPreset:()=>il,getFontSize:()=>Tg,getFontSizeClass:()=>Pg,getFontSizeObjectByValue:()=>Mg,getGradientSlugByValue:()=>Fp,getGradientValueBySlug:()=>zp,getPxFromCssUnit:()=>aN,getSpacingPresetCssVar:()=>ll,getTypographyClassesAndStyles:()=>YI,isValueSpacingPreset:()=>rl,privateApis:()=>sD,store:()=>ji,storeConfig:()=>Ii,transformStyles:()=>lC,useBlockBindingsUtils:()=>dv,useBlockCommands:()=>ZT,useBlockDisplayInformation:()=>Xf,useBlockEditContext:()=>C,useBlockEditingMode:()=>ga,useBlockProps:()=>gS,useCachedTruthy:()=>XI,useHasRecursion:()=>eN,useInnerBlocksProps:()=>JS,useSetting:()=>Mi,useSettings:()=>Ti,useStyleOverride:()=>_s,withColorContext:()=>aP,withColors:()=>ij,withFontSizes:()=>cj});var e={};n.r(e),n.d(e,{getAllPatterns:()=>ze,getBlockRemovalRules:()=>Pe,getBlockSettings:()=>ye,getBlockStyles:()=>Ye,getBlockWithoutAttributes:()=>Ce,getClosestAllowedInsertionPoint:()=>et,getClosestAllowedInsertionPointForPattern:()=>tt,getContentLockingParent:()=>$e,getEnabledBlockParents:()=>Te,getEnabledClientIdsTree:()=>Ee,getExpandedBlock:()=>Ge,getInserterMediaCategories:()=>Le,getInsertionPoint:()=>nt,getLastFocus:()=>He,getLastInsertedBlocksClientIds:()=>we,getOpenedBlockSettingsMenu:()=>Re,getParentSectionBlock:()=>We,getPatternBySlug:()=>Oe,getRegisteredInserterMediaCategories:()=>Ne,getRemovalPromptData:()=>Me,getReusableBlocks:()=>Fe,getSectionRootClientId:()=>Xe,getStyleOverrides:()=>Ae,getTemporarilyEditingAsBlocks:()=>Ze,getTemporarilyEditingFocusModeToRevert:()=>qe,getZoomLevel:()=>Je,hasAllowedPatterns:()=>De,hasBlockSpotlight:()=>rt,isBlockHidden:()=>ot,isBlockInterfaceHidden:()=>Se,isBlockSubtreeDisabled:()=>Be,isContainerInsertableToInContentOnlyMode:()=>Ie,isDragging:()=>Ue,isSectionBlock:()=>Ke,isZoomOut:()=>Qe});var t={};n.r(t),n.d(t,{__experimentalGetActiveBlockIdByBlockNames:()=>To,__experimentalGetAllowedBlocks:()=>lo,__experimentalGetAllowedPatterns:()=>mo,__experimentalGetBlockListSettingsForBlocks:()=>xo,__experimentalGetDirectInsertBlock:()=>co,__experimentalGetGlobalBlocksByName:()=>zt,__experimentalGetLastBlockAttributeChanges:()=>Co,__experimentalGetParsedPattern:()=>uo,__experimentalGetPatternTransformItems:()=>ko,__experimentalGetPatternsByBlockTypes:()=>bo,__experimentalGetReusableBlockTitle:()=>So,__unstableGetBlockWithoutInnerBlocks:()=>Mt,__unstableGetClientIdWithClientIdsTree:()=>Rt,__unstableGetClientIdsTree:()=>At,__unstableGetContentLockingParent:()=>Vo,__unstableGetSelectedBlocksWithPartialSelection:()=>yn,__unstableGetTemporarilyEditingAsBlocks:()=>Fo,__unstableGetTemporarilyEditingFocusModeToRevert:()=>Ho,__unstableGetVisibleBlocks:()=>Ao,__unstableHasActiveBlockOverlayActive:()=>No,__unstableIsFullySelected:()=>bn,__unstableIsLastBlockChangeIgnored:()=>wo,__unstableIsSelectionCollapsed:()=>kn,__unstableIsSelectionMergeable:()=>_n,__unstableIsWithinBlockOverlay:()=>Lo,__unstableSelectionHasUnmergeableBlock:()=>vn,areInnerBlocksControlled:()=>Eo,canEditBlock:()=>Xn,canInsertBlockType:()=>$n,canInsertBlocks:()=>Wn,canLockBlockType:()=>Qn,canMoveBlock:()=>qn,canMoveBlocks:()=>Yn,canRemoveBlock:()=>Kn,canRemoveBlocks:()=>Zn,didAutomaticChange:()=>Io,getAdjacentBlockClientId:()=>nn,getAllowedBlocks:()=>so,getBlock:()=>Tt,getBlockAttributes:()=>Et,getBlockCount:()=>Ht,getBlockEditingMode:()=>Do,getBlockHierarchyRootClientId:()=>en,getBlockIndex:()=>Sn,getBlockInsertionPoint:()=>On,getBlockListSettings:()=>vo,getBlockMode:()=>Mn,getBlockName:()=>It,getBlockNamesByClientId:()=>Ft,getBlockOrder:()=>xn,getBlockParents:()=>Qt,getBlockParentsByBlockName:()=>Jt,getBlockRootClientId:()=>Xt,getBlockSelectionEnd:()=>Wt,getBlockSelectionStart:()=>$t,getBlockTransformItems:()=>ro,getBlocks:()=>Pt,getBlocksByClientId:()=>Vt,getBlocksByName:()=>Ot,getClientIdsOfDescendants:()=>Nt,getClientIdsWithDescendants:()=>Lt,getDirectInsertBlock:()=>ao,getDraggedBlockClientIds:()=>An,getFirstMultiSelectedBlockClientId:()=>un,getGlobalBlockCount:()=>Dt,getHoveredBlockClientId:()=>Ro,getInserterItems:()=>oo,getLastMultiSelectedBlockClientId:()=>dn,getLowestCommonAncestorWithSelectedBlock:()=>tn,getMultiSelectedBlockClientIds:()=>an,getMultiSelectedBlocks:()=>cn,getMultiSelectedBlocksEndClientId:()=>fn,getMultiSelectedBlocksStartClientId:()=>mn,getNextBlockClientId:()=>rn,getPatternsByBlockTypes:()=>fo,getPreviousBlockClientId:()=>on,getSelectedBlock:()=>Yt,getSelectedBlockClientId:()=>qt,getSelectedBlockClientIds:()=>ln,getSelectedBlockCount:()=>Kt,getSelectedBlocksInitialCaretPosition:()=>sn,getSelectionEnd:()=>Gt,getSelectionStart:()=>Ut,getSettings:()=>_o,getTemplate:()=>Fn,getTemplateLock:()=>Hn,hasBlockMovingClientId:()=>Bo,hasDraggedInnerBlock:()=>Bn,hasInserterItems:()=>io,hasMultiSelection:()=>jn,hasSelectedBlock:()=>Zt,hasSelectedInnerBlock:()=>Cn,isAncestorBeingDragged:()=>Ln,isAncestorMultiSelected:()=>gn,isBlockBeingDragged:()=>Nn,isBlockHighlighted:()=>jo,isBlockInsertionPointVisible:()=>zn,isBlockMultiSelected:()=>hn,isBlockSelected:()=>wn,isBlockValid:()=>jt,isBlockVisible:()=>Po,isBlockWithinSelection:()=>In,isCaretWithinFormattedText:()=>Dn,isDraggingBlocks:()=>Rn,isFirstMultiSelectedBlock:()=>pn,isGroupable:()=>zo,isLastBlockChangePersistent:()=>yo,isMultiSelecting:()=>En,isSelectionEnabled:()=>Tn,isTyping:()=>Pn,isUngroupable:()=>Oo,isValidTemplate:()=>Vn,wasBlockJustInserted:()=>Mo});var r={};n.r(r),n.d(r,{__experimentalUpdateSettings:()=>$o,clearBlockRemovalPrompt:()=>Xo,deleteStyleOverride:()=>tr,ensureDefaultBlock:()=>qo,expandBlock:()=>sr,hideBlockInterface:()=>Wo,modifyContentLockBlock:()=>ar,privateRemoveBlocks:()=>Zo,resetZoomLevel:()=>ur,setBlockRemovalRules:()=>Qo,setInsertionPoint:()=>lr,setLastFocus:()=>nr,setOpenedBlockSettingsMenu:()=>Jo,setStyleOverride:()=>er,setZoomLevel:()=>cr,showBlockInterface:()=>Ko,startDragging:()=>rr,stopDragging:()=>ir,stopEditingAsBlocks:()=>or,toggleBlockSpotlight:()=>dr});var i={};n.r(i),n.d(i,{__unstableDeleteSelection:()=>Wr,__unstableExpandSelection:()=>Zr,__unstableMarkAutomaticChange:()=>hi,__unstableMarkLastChangeAsPersistent:()=>di,__unstableMarkNextChangeAsNotPersistent:()=>pi,__unstableSaveReusableBlock:()=>ui,__unstableSetEditorMode:()=>gi,__unstableSetTemporarilyEditingAsBlocks:()=>Si,__unstableSplitSelection:()=>Kr,clearSelectedBlock:()=>Mr,duplicateBlocks:()=>fi,enterFormattedText:()=>ri,exitFormattedText:()=>ii,flashBlock:()=>_i,hideInsertionPoint:()=>Ur,hoverBlock:()=>Cr,insertAfterBlock:()=>ki,insertBeforeBlock:()=>bi,insertBlock:()=>Vr,insertBlocks:()=>Fr,insertDefaultBlock:()=>li,mergeBlocks:()=>qr,moveBlockToPosition:()=>zr,moveBlocksDown:()=>Lr,moveBlocksToPosition:()=>Or,moveBlocksUp:()=>Dr,multiSelect:()=>Tr,receiveBlocks:()=>yr,registerInserterMediaCategory:()=>wi,removeBlock:()=>Xr,removeBlocks:()=>Yr,replaceBlock:()=>Ar,replaceBlocks:()=>Rr,replaceInnerBlocks:()=>Qr,resetBlocks:()=>kr,resetSelection:()=>_r,selectBlock:()=>wr,selectNextBlock:()=>Ir,selectPreviousBlock:()=>Br,selectionChange:()=>si,setBlockEditingMode:()=>Ci,setBlockMovingClientId:()=>mi,setBlockVisibility:()=>xi,setHasControlledInnerBlocks:()=>yi,setTemplateValidity:()=>Gr,showInsertionPoint:()=>Hr,startDraggingBlocks:()=>ni,startMultiSelect:()=>jr,startTyping:()=>ei,stopDraggingBlocks:()=>oi,stopMultiSelect:()=>Er,stopTyping:()=>ti,synchronizeTemplate:()=>$r,toggleBlockHighlight:()=>vi,toggleBlockMode:()=>Jr,toggleSelection:()=>Pr,unsetBlockEditingMode:()=>Bi,updateBlock:()=>Sr,updateBlockAttributes:()=>xr,updateBlockListSettings:()=>ai,updateSettings:()=>ci,validateBlocksToTemplate:()=>vr});var s={};n.r(s),n.d(s,{getItems:()=>ok,getSettings:()=>lk,isUploading:()=>rk,isUploadingById:()=>sk,isUploadingByUrl:()=>ik});var l={};n.r(l),n.d(l,{getAllItems:()=>ak,getBlobUrls:()=>gk,getItem:()=>ck,getPausedUploadForPost:()=>pk,isBatchUploaded:()=>uk,isPaused:()=>hk,isUploadingToPost:()=>dk});var a={};n.r(a),n.d(a,{addItems:()=>Bk,cancelItem:()=>Ik});var c={};n.r(c),n.d(c,{addItem:()=>Tk,finishOperation:()=>Nk,pauseQueue:()=>Pk,prepareItem:()=>Lk,processItem:()=>Mk,removeItem:()=>Ak,resumeQueue:()=>Rk,revokeBlobUrls:()=>Ok,updateSettings:()=>zk,uploadItem:()=>Dk});var u={};n.r(u),n.d(u,{AdvancedPanel:()=>dN,BackgroundPanel:()=>Tu,BorderPanel:()=>Sp,ColorPanel:()=>uh,DimensionsPanel:()=>zm,FiltersPanel:()=>Uf,GlobalStylesContext:()=>is,ImageSettingsPanel:()=>uN,TypographyPanel:()=>yg,areGlobalStyleConfigsEqual:()=>os,getBlockCSSSelector:()=>Rf,getBlockSelectors:()=>Sb,getGlobalStylesChanges:()=>vN,getLayoutStyles:()=>mb,toStyles:()=>yb,useGlobalSetting:()=>cs,useGlobalStyle:()=>us,useGlobalStylesOutput:()=>Bb,useGlobalStylesOutputWithConfig:()=>Cb,useGlobalStylesReset:()=>as,useHasBackgroundPanel:()=>Iu,useHasBorderPanel:()=>gp,useHasBorderPanelControls:()=>mp,useHasColorPanel:()=>Yp,useHasDimensionsPanel:()=>Bm,useHasFiltersPanel:()=>Lf,useHasImageSettingsPanel:()=>cN,useHasTypographyPanel:()=>ag,useSettingsForBlockElement:()=>ds});const d=window.ReactJSXRuntime,p=window.wp.blocks,h=window.wp.element,g=window.wp.data,m=window.wp.compose,f=window.wp.hooks,b=Symbol("mayDisplayControls"),k=Symbol("mayDisplayParentControls"),v=Symbol("blockEditingMode"),_=Symbol("blockBindings"),y=Symbol("isPreviewMode"),x={name:"",isSelected:!1},S=(0,h.createContext)(x);S.displayName="BlockEditContext";const{Provider:w}=S;function C(){return(0,h.useContext)(S)}const B=window.wp.deprecated;var I=n.n(B),j=n(7734),E=n.n(j);const T=window.wp.i18n,M={insertUsage:{}},P={alignWide:!1,supportsLayout:!0,colors:[{name:(0,T.__)("Black"),slug:"black",color:"#000000"},{name:(0,T.__)("Cyan bluish gray"),slug:"cyan-bluish-gray",color:"#abb8c3"},{name:(0,T.__)("White"),slug:"white",color:"#ffffff"},{name:(0,T.__)("Pale pink"),slug:"pale-pink",color:"#f78da7"},{name:(0,T.__)("Vivid red"),slug:"vivid-red",color:"#cf2e2e"},{name:(0,T.__)("Luminous vivid orange"),slug:"luminous-vivid-orange",color:"#ff6900"},{name:(0,T.__)("Luminous vivid amber"),slug:"luminous-vivid-amber",color:"#fcb900"},{name:(0,T.__)("Light green cyan"),slug:"light-green-cyan",color:"#7bdcb5"},{name:(0,T.__)("Vivid green cyan"),slug:"vivid-green-cyan",color:"#00d084"},{name:(0,T.__)("Pale cyan blue"),slug:"pale-cyan-blue",color:"#8ed1fc"},{name:(0,T.__)("Vivid cyan blue"),slug:"vivid-cyan-blue",color:"#0693e3"},{name:(0,T.__)("Vivid purple"),slug:"vivid-purple",color:"#9b51e0"}],fontSizes:[{name:(0,T._x)("Small","font size name"),size:13,slug:"small"},{name:(0,T._x)("Normal","font size name"),size:16,slug:"normal"},{name:(0,T._x)("Medium","font size name"),size:20,slug:"medium"},{name:(0,T._x)("Large","font size name"),size:36,slug:"large"},{name:(0,T._x)("Huge","font size name"),size:42,slug:"huge"}],imageDefaultSize:"large",imageSizes:[{slug:"thumbnail",name:(0,T.__)("Thumbnail")},{slug:"medium",name:(0,T.__)("Medium")},{slug:"large",name:(0,T.__)("Large")},{slug:"full",name:(0,T.__)("Full Size")}],imageEditing:!0,maxWidth:580,allowedBlockTypes:!0,maxUploadFileSize:0,allowedMimeTypes:null,canLockBlocks:!0,enableOpenverseMediaCategory:!0,clearBlockSelection:!0,__experimentalCanUserUseUnfilteredHTML:!1,__experimentalBlockDirectory:!1,__mobileEnablePageTemplates:!1,__experimentalBlockPatterns:[],__experimentalBlockPatternCategories:[],isPreviewMode:!1,blockInspectorAnimation:{animationParent:"core/navigation","core/navigation":{enterDirection:"leftToRight"},"core/navigation-submenu":{enterDirection:"rightToLeft"},"core/navigation-link":{enterDirection:"rightToLeft"},"core/search":{enterDirection:"rightToLeft"},"core/social-links":{enterDirection:"rightToLeft"},"core/page-list":{enterDirection:"rightToLeft"},"core/spacer":{enterDirection:"rightToLeft"},"core/home-link":{enterDirection:"rightToLeft"},"core/site-title":{enterDirection:"rightToLeft"},"core/site-logo":{enterDirection:"rightToLeft"}},generateAnchors:!1,gradients:[{name:(0,T.__)("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:(0,T.__)("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:(0,T.__)("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:(0,T.__)("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:(0,T.__)("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:(0,T.__)("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:(0,T.__)("Blush light purple"),gradient:"linear-gradient(135deg,rgb(255,206,236) 0%,rgb(152,150,240) 100%)",slug:"blush-light-purple"},{name:(0,T.__)("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:(0,T.__)("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:(0,T.__)("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:(0,T.__)("Electric grass"),gradient:"linear-gradient(135deg,rgb(202,248,128) 0%,rgb(113,206,126) 100%)",slug:"electric-grass"},{name:(0,T.__)("Midnight"),gradient:"linear-gradient(135deg,rgb(2,3,129) 0%,rgb(40,116,252) 100%)",slug:"midnight"}],__unstableResolvedAssets:{styles:[],scripts:[]}};function R(e,t,n){return[...e.slice(0,n),...Array.isArray(t)?t:[t],...e.slice(n)]}function A(e,t,n,o=1){const r=[...e];return r.splice(t,o),R(r,e.slice(t,t+o),n)}const N=Symbol("globalStylesDataKey"),L=Symbol("globalStylesLinks"),D=Symbol("selectBlockPatternsKey"),O=Symbol("reusableBlocksSelect"),z=Symbol("sectionRootClientIdKey"),V=Symbol("mediaEditKey"),F=Symbol("essentialFormat"),H=window.wp.privateApis,{lock:U,unlock:G}=(0,H.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.","@wordpress/block-editor"),{isContentBlock:$}=G(p.privateApis),W=e=>e;function K(e,t=""){const n=new Map,o=[];return n.set(t,o),e.forEach((e=>{const{clientId:t,innerBlocks:r}=e;o.push(t),K(r,t).forEach(((e,t)=>{n.set(t,e)}))})),n}function Z(e,t=""){const n=[],o=[[t,e]];for(;o.length;){const[e,t]=o.shift();t.forEach((({innerBlocks:t,...r})=>{n.push([r.clientId,e]),t?.length&&o.push([r.clientId,t])}))}return n}function q(e,t=W){const n=[],o=[...e];for(;o.length;){const{innerBlocks:e,...r}=o.shift();o.push(...e),n.push([r.clientId,t(r)])}return n}function Y(e){return q(e,(e=>{const{attributes:t,...n}=e;return n}))}function X(e){return q(e,(e=>e.attributes))}function Q(e,t){return"UPDATE_BLOCK_ATTRIBUTES"===e.type&&void 0!==t&&"UPDATE_BLOCK_ATTRIBUTES"===t.type&&E()(e.clientIds,t.clientIds)&&function(e,t){return E()(Object.keys(e),Object.keys(t))}(e.attributes,t.attributes)}function J(e,t){const n=e.tree,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.set(e.clientId,{});for(const t of r)n.set(t.clientId,Object.assign(n.get(t.clientId),{...e.byClientId.get(t.clientId),attributes:e.attributes.get(t.clientId),innerBlocks:t.innerBlocks.map((e=>n.get(e.clientId)))}))}function ee(e,t,n=!1){const o=e.tree,r=new Set([]),i=new Set;for(const o of t){let t=n?o:e.parents.get(o);do{if(e.controlledInnerBlocks[t]){i.add(t);break}r.add(t),t=e.parents.get(t)}while(void 0!==t)}for(const e of r)o.set(e,{...o.get(e)});for(const t of r)o.get(t).innerBlocks=(e.order.get(t)||[]).map((e=>o.get(e)));for(const t of i)o.set("controlled||"+t,{innerBlocks:(e.order.get(t)||[]).map((e=>o.get(e)))})}const te=(0,m.pipe)(g.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=new Map(t.attributes),t.attributes.forEach(((n,r)=>{const{name:i}=t.byClientId.get(r);"core/block"===i&&n.ref===e&&t.attributes.set(r,{...n,ref:o})}))}return e(t,n)}),(e=>(t={},n)=>{const o=e(t,n);if(o===t)return t;switch(o.tree=t.tree?t.tree:new Map,n.type){case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":o.tree=new Map(o.tree),J(o,n.blocks),ee(o,n.rootClientId?[n.rootClientId]:[""],!0);break;case"UPDATE_BLOCK":o.tree=new Map(o.tree),o.tree.set(n.clientId,{...o.tree.get(n.clientId),...o.byClientId.get(n.clientId),attributes:o.attributes.get(n.clientId)}),ee(o,[n.clientId],!1);break;case"SYNC_DERIVED_BLOCK_ATTRIBUTES":case"UPDATE_BLOCK_ATTRIBUTES":o.tree=new Map(o.tree),n.clientIds.forEach((e=>{o.tree.set(e,{...o.tree.get(e),attributes:o.attributes.get(e)})})),ee(o,n.clientIds,!1);break;case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const e=function(e){const t={},n=[...e];for(;n.length;){const{innerBlocks:e,...o}=n.shift();n.push(...e),t[o.clientId]=!0}return t}(n.blocks);o.tree=new Map(o.tree),n.replacedClientIds.forEach((t=>{o.tree.delete(t),e[t]||o.tree.delete("controlled||"+t)})),J(o,n.blocks),ee(o,n.blocks.map((e=>e.clientId)),!1);const r=[];for(const e of n.clientIds){const n=t.parents.get(e);void 0===n||""!==n&&!o.byClientId.get(n)||r.push(n)}ee(o,r,!0);break}case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":const e=[];for(const r of n.clientIds){const n=t.parents.get(r);void 0===n||""!==n&&!o.byClientId.get(n)||e.push(n)}o.tree=new Map(o.tree),n.removedClientIds.forEach((e=>{o.tree.delete(e),o.tree.delete("controlled||"+e)})),ee(o,e,!0);break;case"MOVE_BLOCKS_TO_POSITION":{const e=[];n.fromRootClientId?e.push(n.fromRootClientId):e.push(""),n.toRootClientId&&e.push(n.toRootClientId),o.tree=new Map(o.tree),ee(o,e,!0);break}case"MOVE_BLOCKS_UP":case"MOVE_BLOCKS_DOWN":{const e=[n.rootClientId?n.rootClientId:""];o.tree=new Map(o.tree),ee(o,e,!0);break}case"SAVE_REUSABLE_BLOCK_SUCCESS":{const e=[];o.attributes.forEach(((t,r)=>{"core/block"===o.byClientId.get(r).name&&t.ref===n.updatedId&&e.push(r)})),o.tree=new Map(o.tree),e.forEach((e=>{o.tree.set(e,{...o.byClientId.get(e),attributes:o.attributes.get(e),innerBlocks:o.tree.get(e).innerBlocks})})),ee(o,e,!1)}}return o}),(e=>(t,n)=>{const o=e=>{let o=e;for(let r=0;r<o.length;r++)!t.order.get(o[r])||n.keepControlledInnerBlocks&&n.keepControlledInnerBlocks[o[r]]||(o===e&&(o=[...o]),o.push(...t.order.get(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.get(n.rootClientId)&&(r=e(r,{type:"REMOVE_BLOCKS",keepControlledInnerBlocks:o,clientIds:t.order.get(n.rootClientId)}));let i=r;if(n.blocks.length){i=e(i,{...n,type:"INSERT_BLOCKS",index:0});const r=new Map(i.order);Object.keys(o).forEach((e=>{t.order.get(e)&&r.set(e,t.order.get(e))})),i.order=r,i.tree=new Map(i.tree),Object.keys(o).forEach((e=>{const n=`controlled||${e}`;t.tree.has(n)&&i.tree.set(n,t.tree.get(n))}))}return i}),(e=>(t,n)=>{if("RESET_BLOCKS"===n.type){const e={...t,byClientId:new Map(Y(n.blocks)),attributes:new Map(X(n.blocks)),order:K(n.blocks),parents:new Map(Z(n.blocks)),controlledInnerBlocks:{}};return e.tree=new Map(t?.tree),J(e,n.blocks),e.tree.set("",{innerBlocks:n.blocks.map((t=>e.tree.get(t.clientId)))}),e}return e(t,n)}),(function(e){let t,n,o=!1;return(r,i)=>{let s,l=e(r,i);if("SET_EXPLICIT_PERSISTENT"===i.type&&(n=i.isPersistentChange,s=r.isPersistentChange??!0),void 0!==n)return s=n,s===l.isPersistentChange?l:{...l,isPersistentChange:s};const a="MARK_LAST_CHANGE_AS_PERSISTENT"===i.type||o;return r!==l||a?(l={...l,isPersistentChange:a?!o:!Q(i,t)},t=i,o="MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"===i.type,l):(o="MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"===i.type,s=r?.isPersistentChange??!0,r.isPersistentChange===s?r:{...l,isPersistentChange:s})}}),(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}}),(e=>(t,n)=>{if("SET_HAS_CONTROLLED_INNER_BLOCKS"===n.type){const o=e(t,{type:"REPLACE_INNER_BLOCKS",rootClientId:n.clientId,blocks:[]});return e(o,n)}return e(t,n)}))({byClientId(e=new Map,t){switch(t.type){case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":{const n=new Map(e);return Y(t.blocks).forEach((([e,t])=>{n.set(e,t)})),n}case"UPDATE_BLOCK":{if(!e.has(t.clientId))return e;const{attributes:n,...o}=t.updates;if(0===Object.values(o).length)return e;const r=new Map(e);return r.set(t.clientId,{...e.get(t.clientId),...o}),r}case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{if(!t.blocks)return e;const n=new Map(e);return t.replacedClientIds.forEach((e=>{n.delete(e)})),Y(t.blocks).forEach((([e,t])=>{n.set(e,t)})),n}case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const n=new Map(e);return t.removedClientIds.forEach((e=>{n.delete(e)})),n}}return e},attributes(e=new Map,t){switch(t.type){case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":{const n=new Map(e);return X(t.blocks).forEach((([e,t])=>{n.set(e,t)})),n}case"UPDATE_BLOCK":{if(!e.get(t.clientId)||!t.updates.attributes)return e;const n=new Map(e);return n.set(t.clientId,{...e.get(t.clientId),...t.updates.attributes}),n}case"SYNC_DERIVED_BLOCK_ATTRIBUTES":case"UPDATE_BLOCK_ATTRIBUTES":{if(t.clientIds.every((t=>!e.get(t))))return e;let n=!1;const o=new Map(e);for(const r of t.clientIds){const i=Object.entries(t.options?.uniqueByBlock?t.attributes[r]:t.attributes??{});if(0===i.length)continue;let s=!1;const l=e.get(r),a={};i.forEach((([e,t])=>{l[e]!==t&&(s=!0,a[e]=t)})),n=n||s,s&&o.set(r,{...l,...a})}return n?o:e}case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{if(!t.blocks)return e;const n=new Map(e);return t.replacedClientIds.forEach((e=>{n.delete(e)})),X(t.blocks).forEach((([e,t])=>{n.set(e,t)})),n}case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const n=new Map(e);return t.removedClientIds.forEach((e=>{n.delete(e)})),n}}return e},order(e=new Map,t){switch(t.type){case"RECEIVE_BLOCKS":{const n=K(t.blocks),o=new Map(e);return n.forEach(((e,t)=>{""!==t&&o.set(t,e)})),o.set("",(e.get("")??[]).concat(n[""])),o}case"INSERT_BLOCKS":{const{rootClientId:n=""}=t,o=e.get(n)||[],r=K(t.blocks,n),{index:i=o.length}=t,s=new Map(e);return r.forEach(((e,t)=>{s.set(t,e)})),s.set(n,R(o,r.get(n),i)),s}case"MOVE_BLOCKS_TO_POSITION":{const{fromRootClientId:n="",toRootClientId:o="",clientIds:r}=t,{index:i=e.get(o).length}=t;if(n===o){const t=e.get(o).indexOf(r[0]),n=new Map(e);return n.set(o,A(e.get(o),t,i,r.length)),n}const s=new Map(e);return s.set(n,e.get(n)?.filter((e=>!r.includes(e)))??[]),s.set(o,R(e.get(o),r,i)),s}case"MOVE_BLOCKS_UP":{const{clientIds:n,rootClientId:o=""}=t,r=n[0],i=e.get(o);if(!i.length||r===i[0])return e;const s=i.indexOf(r),l=new Map(e);return l.set(o,A(i,s,s-1,n.length)),l}case"MOVE_BLOCKS_DOWN":{const{clientIds:n,rootClientId:o=""}=t,r=n[0],i=n[n.length-1],s=e.get(o);if(!s.length||i===s[s.length-1])return e;const l=s.indexOf(r),a=new Map(e);return a.set(o,A(s,l,l+1,n.length)),a}case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const{clientIds:n}=t;if(!t.blocks)return e;const o=K(t.blocks),r=new Map(e);return t.replacedClientIds.forEach((e=>{r.delete(e)})),o.forEach(((e,t)=>{""!==t&&r.set(t,e)})),r.forEach(((e,t)=>{const i=Object.values(e).reduce(((e,t)=>t===n[0]?[...e,...o.get("")]:(-1===n.indexOf(t)&&e.push(t),e)),[]);r.set(t,i)})),r}case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const n=new Map(e);return t.removedClientIds.forEach((e=>{n.delete(e)})),n.forEach(((e,o)=>{const r=e?.filter((e=>!t.removedClientIds.includes(e)))??[];r.length!==e.length&&n.set(o,r)})),n}}return e},parents(e=new Map,t){switch(t.type){case"RECEIVE_BLOCKS":{const n=new Map(e);return Z(t.blocks).forEach((([e,t])=>{n.set(e,t)})),n}case"INSERT_BLOCKS":{const n=new Map(e);return Z(t.blocks,t.rootClientId||"").forEach((([e,t])=>{n.set(e,t)})),n}case"MOVE_BLOCKS_TO_POSITION":{const n=new Map(e);return t.clientIds.forEach((e=>{n.set(e,t.toRootClientId||"")})),n}case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const n=new Map(e);return t.replacedClientIds.forEach((e=>{n.delete(e)})),Z(t.blocks,e.get(t.clientIds[0])).forEach((([e,t])=>{n.set(e,t)})),n}case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const n=new Map(e);return t.removedClientIds.forEach((e=>{n.delete(e)})),n}}return e},controlledInnerBlocks:(e={},{type:t,clientId:n,hasControlledInnerBlocks:o})=>"SET_HAS_CONTROLLED_INNER_BLOCKS"===t?{...e,[n]:o}:e});function ne(e={},t){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}const oe=(0,g.combineReducers)({blocks:te,isDragging:function(e=!1,t){switch(t.type){case"START_DRAGGING":return!0;case"STOP_DRAGGING":return!1}return e},isTyping:function(e=!1,t){switch(t.type){case"START_TYPING":return!0;case"STOP_TYPING":return!1}return e},isBlockInterfaceHidden:function(e=!1,t){switch(t.type){case"HIDE_BLOCK_INTERFACE":return!0;case"SHOW_BLOCK_INTERFACE":return!1}return e},draggedBlocks:function(e=[],t){switch(t.type){case"START_DRAGGING_BLOCKS":return t.clientIds;case"STOP_DRAGGING_BLOCKS":return[]}return e},selection:function(e={},t){switch(t.type){case"SELECTION_CHANGE":return t.clientId?{selectionStart:{clientId:t.clientId,attributeKey:t.attributeKey,offset:t.startOffset},selectionEnd:{clientId:t.clientId,attributeKey:t.attributeKey,offset:t.endOffset}}:{selectionStart:t.start||e.selectionStart,selectionEnd:t.end||e.selectionEnd};case"RESET_SELECTION":const{selectionStart:n,selectionEnd:o}=t;return{selectionStart:n,selectionEnd:o};case"MULTI_SELECT":const{start:r,end:i}=t;return r===e.selectionStart?.clientId&&i===e.selectionEnd?.clientId?e:{selectionStart:{clientId:r},selectionEnd:{clientId:i}};case"RESET_BLOCKS":const s=e?.selectionStart?.clientId,l=e?.selectionEnd?.clientId;if(!s&&!l)return e;if(!t.blocks.some((e=>e.clientId===s)))return{selectionStart:{},selectionEnd:{}};if(!t.blocks.some((e=>e.clientId===l)))return{...e,selectionEnd:e.selectionStart}}const n=ne(e.selectionStart,t),o=ne(e.selectionEnd,t);return n===e.selectionStart&&o===e.selectionEnd?e:{selectionStart:n,selectionEnd:o}},isMultiSelecting:function(e=!1,t){switch(t.type){case"START_MULTI_SELECT":return!0;case"STOP_MULTI_SELECT":return!1}return e},isSelectionEnabled:function(e=!0,t){return"TOGGLE_SELECTION"===t.type?t.isSelectionEnabled:e},initialPosition:function(e=null,t){return"REPLACE_BLOCKS"===t.type&&void 0!==t.initialPosition||["MULTI_SELECT","SELECT_BLOCK","RESET_SELECTION","INSERT_BLOCKS","REPLACE_INNER_BLOCKS"].includes(t.type)?t.initialPosition:e},blocksMode:function(e={},t){if("TOGGLE_BLOCK_MODE"===t.type){const{clientId:n}=t;return{...e,[n]:e[n]&&"html"===e[n]?"visual":"html"}}return e},blockListSettings:(e={},t)=>{switch(t.type){case"REPLACE_BLOCKS":case"REMOVE_BLOCKS":return Object.fromEntries(Object.entries(e).filter((([e])=>!t.clientIds.includes(e))));case"UPDATE_BLOCK_LIST_SETTINGS":{const n="string"==typeof t.clientId?{[t.clientId]:t.settings}:t.clientId;for(const t in n)n[t]?E()(e[t],n[t])&&delete n[t]:e[t]||delete n[t];if(0===Object.keys(n).length)return e;const o={...e,...n};for(const e in n)n[e]||delete o[e];return o}}return e},insertionPoint:function(e=null,t){switch(t.type){case"SET_INSERTION_POINT":return t.value;case"SELECT_BLOCK":return null}return e},insertionCue:function(e=null,t){switch(t.type){case"SHOW_INSERTION_POINT":{const{rootClientId:n,index:o,__unstableWithInserter:r,operation:i,nearestSide:s}=t,l={rootClientId:n,index:o,__unstableWithInserter:r,operation:i,nearestSide:s};return E()(e,l)?e:l}case"HIDE_INSERTION_POINT":return null}return e},template:function(e={isValid:!0},t){return"SET_TEMPLATE_VALIDITY"===t.type?{...e,isValid:t.isValid}:e},settings:function(e=P,t){if("UPDATE_SETTINGS"===t.type){const n=t.reset?{...P,...t.settings}:{...e,...t.settings};return Object.defineProperty(n,"__unstableIsPreviewMode",{get(){return I()("__unstableIsPreviewMode",{since:"6.8",alternative:"isPreviewMode"}),this.isPreviewMode}}),n}return e},preferences:function(e=M,t){switch(t.type){case"INSERT_BLOCKS":case"REPLACE_BLOCKS":{const n=t.blocks.reduce(((e,n)=>{const{attributes:o,name:r}=n;let i=r;const s=(0,g.select)(p.store).getActiveBlockVariation(r,o);return s?.name&&(i+="/"+s.name),"core/block"===r&&(i+="/"+o.ref),{...e,[i]:{time:t.time,count:e[i]?e[i].count+1:1}}}),e.insertUsage);return{...e,insertUsage:n}}}return e},lastBlockAttributesChange:function(e=null,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.options?.uniqueByBlock?t.attributes[n]:t.attributes})),{})}return e},lastFocus:function(e=!1,t){return"LAST_FOCUS"===t.type?t.lastFocus:e},expandedBlock:function(e=null,t){switch(t.type){case"SET_BLOCK_EXPANDED_IN_LIST_VIEW":return t.clientId;case"SELECT_BLOCK":if(t.clientId!==e)return null}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(e={},t){switch(t.type){case"INSERT_BLOCKS":case"REPLACE_BLOCKS":if(!t.blocks.length)return e;const n=t.blocks.map((e=>e.clientId)),o=t.meta?.source;return{clientIds:n,source:o};case"RESET_BLOCKS":return{}}return e},temporarilyEditingAsBlocks:function(e="",t){return"SET_TEMPORARILY_EDITING_AS_BLOCKS"===t.type?t.temporarilyEditingAsBlocks:e},temporarilyEditingFocusModeRevert:function(e="",t){return"SET_TEMPORARILY_EDITING_AS_BLOCKS"===t.type?t.focusModeToRevert:e},blockVisibility:function(e={},t){return"SET_BLOCK_VISIBILITY"===t.type?{...e,...t.updates}:e},blockEditingModes:function(e=new Map,t){switch(t.type){case"SET_BLOCK_EDITING_MODE":return e.get(t.clientId)===t.mode?e:new Map(e).set(t.clientId,t.mode);case"UNSET_BLOCK_EDITING_MODE":{if(!e.has(t.clientId))return e;const n=new Map(e);return n.delete(t.clientId),n}case"RESET_BLOCKS":return e.has("")?(new Map).set("",e.get("")):e}return e},styleOverrides:function(e=new Map,t){switch(t.type){case"SET_STYLE_OVERRIDE":return new Map(e).set(t.id,t.style);case"DELETE_STYLE_OVERRIDE":{const n=new Map(e);return n.delete(t.id),n}}return e},removalPromptData:function(e=!1,t){switch(t.type){case"DISPLAY_BLOCK_REMOVAL_PROMPT":const{clientIds:e,selectPrevious:n,message:o}=t;return{clientIds:e,selectPrevious:n,message:o};case"CLEAR_BLOCK_REMOVAL_PROMPT":return!1}return e},blockRemovalRules:function(e=!1,t){return"SET_BLOCK_REMOVAL_RULES"===t.type?t.rules:e},openedBlockSettingsMenu:function(e=null,t){return"SET_OPENED_BLOCK_SETTINGS_MENU"===t.type?t?.clientId??null:e},registeredInserterMediaCategories:function(e=[],t){return"REGISTER_INSERTER_MEDIA_CATEGORY"===t.type?[...e,t.category]:e},zoomLevel:function(e=100,t){switch(t.type){case"SET_ZOOM_LEVEL":return t.zoom;case"RESET_ZOOM_LEVEL":return 100}return e},hasBlockSpotlight:function(e,t){switch(t.type){case"TOGGLE_BLOCK_SPOTLIGHT":const{clientId:n,hasBlockSpotlight:o}=t;return o?n:e===n?null:e;case"SELECT_BLOCK":return t.clientId!==e?null:e;case"SELECTION_CHANGE":return t.start?.clientId!==e||t.end?.clientId!==e?null:e;case"CLEAR_SELECTED_BLOCK":return null}return e}});function re(e,t){if(""===t){const n=e.blocks.tree.get(t);if(!n)return;return{clientId:"",...n}}if(!e.blocks.controlledInnerBlocks[t])return e.blocks.tree.get(t);const n=e.blocks.tree.get(`controlled||${t}`);return{...e.blocks.tree.get(t),innerBlocks:n?.innerBlocks}}function ie(e,t,n){const o=re(e,t);if(o&&(n(o),o?.innerBlocks?.length))for(const t of o?.innerBlocks)ie(e,t.clientId,n)}function se(e,t,n){if(!n.length)return;let o=e.blocks.parents.get(t);for(;void 0!==o;){if(n.includes(o))return o;o=e.blocks.parents.get(o)}}function le(e,t=""){const n=e?.zoomLevel<100||"auto-scaled"===e?.zoomLevel,o=new Map,r=e.settings?.[z],i=e.blocks.order.get(r),s=Array.from(e.blockEditingModes).some((([,e])=>"disabled"===e)),l=[],a=[];Object.keys(e.blocks.controlledInnerBlocks).forEach((t=>{const n=e.blocks.byClientId?.get(t);"core/template-part"===n?.name&&l.push(t),"core/block"===n?.name&&a.push(t)}));const c=[...Object.keys(e.blockListSettings).filter((t=>"contentOnly"===e.blockListSettings[t]?.templateLock)),...window?.__experimentalContentOnlyPatternInsertion?Array.from(e.blocks.attributes.keys()).filter((t=>e.blocks.attributes.get(t)?.metadata?.patternName)):[],...window?.__experimentalContentOnlyPatternInsertion?l:[]];return ie(e,t,(t=>{const{clientId:l,name:u}=t;if(!e.blockEditingModes.has(l)){if(s){let t,n=e.blocks.parents.get(l);for(;void 0!==n&&(e.blockEditingModes.has(n)&&(t=e.blockEditingModes.get(n)),!t);)n=e.blocks.parents.get(n);if("disabled"===t)return void o.set(l,"disabled")}if(n)return l===r||i?.length&&i.includes(l)?void o.set(l,"contentOnly"):void o.set(l,"disabled");if(a.length){if(a.includes(l))return se(e,l,a)?void o.set(l,"disabled"):void 0;const n=se(e,l,a);if(n){if(se(e,n,a))return void o.set(l,"disabled");if(function(e){return e?.attributes?.metadata?.bindings&&Object.keys(e?.attributes?.metadata?.bindings).length}(t))return void o.set(l,"contentOnly");o.set(l,"disabled")}}if(c.length){!!se(e,l,c)&&($(u)?o.set(l,"contentOnly"):o.set(l,"disabled"))}}})),o}function ae({prevState:e,nextState:t,addedBlocks:n,removedClientIds:o}){const r=e.derivedBlockEditingModes;let i;return o?.forEach((t=>{ie(e,t,(e=>{r.has(e.clientId)&&(i||(i=new Map(r)),i.delete(e.clientId))}))})),n?.forEach((e=>{const n=le(t,e.clientId);n.size&&(i=i?new Map([...i?.size?i:[],...n]):new Map([...r?.size?r:[],...n]))})),i}var ce=(0,m.pipe)((function(e){return(t,n)=>{const o=e(t,n);if("SET_EDITOR_MODE"!==n.type&&o===t)return t;switch(n.type){case"REMOVE_BLOCKS":{const e=ae({prevState:t,nextState:o,removedClientIds:n.clientIds});if(e)return{...o,derivedBlockEditingModes:e??t.derivedBlockEditingModes};break}case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":{const e=ae({prevState:t,nextState:o,addedBlocks:n.blocks});if(e)return{...o,derivedBlockEditingModes:e??t.derivedBlockEditingModes};break}case"UPDATE_BLOCK_ATTRIBUTES":{const e=[],r=[];for(const i of n?.clientIds){const s=n.options?.uniqueByBlock?n.attributes[i]:n.attributes;if(!s)break;s.metadata?.patternName&&!t.blocks.attributes.get(i)?.metadata?.patternName?e.push(o.blocks.tree.get(i)):s.metadata&&!s.metadata?.patternName&&t.blocks.attributes.get(i)?.metadata?.patternName&&r.push(i)}if(!e?.length&&!r?.length)break;const i=ae({prevState:t,nextState:o,addedBlocks:e,removedClientIds:r});if(i)return{...o,derivedBlockEditingModes:i??t.derivedBlockEditingModes};break}case"UPDATE_BLOCK_LIST_SETTINGS":{const e=[],r=[],i="string"==typeof n.clientId?{[n.clientId]:n.settings}:n.clientId;for(const n in i){const i="contentOnly"!==t.blockListSettings[n]?.templateLock&&"contentOnly"===o.blockListSettings[n]?.templateLock,s="contentOnly"===t.blockListSettings[n]?.templateLock&&"contentOnly"!==o.blockListSettings[n]?.templateLock;i?e.push(o.blocks.tree.get(n)):s&&r.push(n)}if(!e.length&&!r.length)break;const s=ae({prevState:t,nextState:o,addedBlocks:e,removedClientIds:r});if(s)return{...o,derivedBlockEditingModes:s??t.derivedBlockEditingModes};break}case"SET_BLOCK_EDITING_MODE":case"UNSET_BLOCK_EDITING_MODE":case"SET_HAS_CONTROLLED_INNER_BLOCKS":{const e=re(o,n.clientId);if(!e)break;const r=ae({prevState:t,nextState:o,removedClientIds:[n.clientId],addedBlocks:[e]});if(r)return{...o,derivedBlockEditingModes:r??t.derivedBlockEditingModes};break}case"REPLACE_BLOCKS":{const e=ae({prevState:t,nextState:o,addedBlocks:n.blocks,removedClientIds:n.clientIds});if(e)return{...o,derivedBlockEditingModes:e??t.derivedBlockEditingModes};break}case"REPLACE_INNER_BLOCKS":{const e=t.blocks.order.get(n.rootClientId),r=ae({prevState:t,nextState:o,addedBlocks:n.blocks,removedClientIds:e});if(r)return{...o,derivedBlockEditingModes:r??t.derivedBlockEditingModes};break}case"MOVE_BLOCKS_TO_POSITION":{const e=n.clientIds.map((e=>o.blocks.byClientId.get(e))),r=ae({prevState:t,nextState:o,addedBlocks:e,removedClientIds:n.clientIds});if(r)return{...o,derivedBlockEditingModes:r??t.derivedBlockEditingModes};break}case"UPDATE_SETTINGS":if(t?.settings?.[z]!==o?.settings?.[z])return{...o,derivedBlockEditingModes:le(o)};break;case"RESET_BLOCKS":case"SET_EDITOR_MODE":case"RESET_ZOOM_LEVEL":case"SET_ZOOM_LEVEL":return{...o,derivedBlockEditingModes:le(o)}}return o.derivedBlockEditingModes=t?.derivedBlockEditingModes??new Map,o}}),(function(e){return(t,n)=>{const o=e(t,n);return t?(o.automaticChangeStatus=t.automaticChangeStatus,"MARK_AUTOMATIC_CHANGE"===n.type?{...o,automaticChangeStatus:"pending"}:"MARK_AUTOMATIC_CHANGE_FINAL"===n.type&&"pending"===t.automaticChangeStatus?{...o,automaticChangeStatus:"final"}:o.blocks===t.blocks&&o.selection===t.selection||"final"!==o.automaticChangeStatus&&o.selection!==t.selection?o:{...o,automaticChangeStatus:void 0}):o}}))(oe);const ue=window.wp.primitives;var de=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.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"})});const pe=window.wp.richText,he=window.wp.blockSerializationDefaultParser,ge="core/block-editor";function me(e,t,n){t=Array.isArray(t)?[...t]:[t],e=Array.isArray(e)?[...e]:{...e};const o=t.pop();let r=e;for(const e of t){const t=r[e];r=r[e]=Array.isArray(t)?[...t]:{...t}}return r[o]=n,e}const fe=(e,t,n)=>{const o=Array.isArray(t)?t:t.split(".");let r=e;return o.forEach((e=>{r=r?.[e]})),r??n};const be=["color","border","dimensions","typography","spacing"],ke={"color.palette":e=>e.colors,"color.gradients":e=>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=>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},ve={"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"},_e=e=>ve[e]||e;function ye(e,t,...n){const o=It(e,t),r=[];if(t){let n=t;do{const t=It(e,n);(0,p.hasBlockSupport)(t,"__experimentalSettings",!1)&&r.push(n)}while(n=e.blocks.parents.get(n))}return n.map((n=>{if(be.includes(n))return void console.warn("Top level useSetting paths are disabled. Please use a subpath to query the information needed.");let i=(0,f.applyFilters)("blockEditor.useSetting.before",void 0,n,t,o);if(void 0!==i)return i;const s=_e(n);for(const t of r){const n=Et(e,t);if(i=fe(n.settings?.blocks?.[o],s)??fe(n.settings,s),void 0!==i)break}const l=_o(e);if(void 0===i&&o&&(i=fe(l.__experimentalFeatures?.blocks?.[o],s)),void 0===i&&(i=fe(l.__experimentalFeatures,s)),void 0!==i)return p.__EXPERIMENTAL_PATHS_WITH_OVERRIDE[s]?i.custom??i.theme??i.default:i;const a=ke[s]?.(l);return void 0!==a?a:"typography.dropCap"===s||void 0}))}const{isContentBlock:xe}=G(p.privateApis);function Se(e){return e.isBlockInterfaceHidden}function we(e){return e?.lastBlockInserted?.clientIds}function Ce(e,t){return e.blocks.byClientId.get(t)}const Be=(e,t)=>{const n=t=>"disabled"===Do(e,t)&&xn(e,t).every(n);return xn(e,t).every(n)};function Ie(e,t,n){const o=xe(t),r=It(e,n),i=xe(r);return Xe(e)===n||i&&o}function je(e,t){const n=xn(e,t),o=[];for(const t of n){const n=je(e,t);"disabled"!==Do(e,t)?o.push({clientId:t,innerBlocks:n}):o.push(...n)}return o}const Ee=(0,g.createRegistrySelector)((()=>(0,g.createSelector)(je,(e=>[e.blocks.order,e.derivedBlockEditingModes,e.blockEditingModes])))),Te=(0,g.createSelector)(((e,t,n=!1)=>Qt(e,t,n).filter((t=>"disabled"!==Do(e,t)))),(e=>[e.blocks.parents,e.blockEditingModes,e.settings.templateLock,e.blockListSettings]));function Me(e){return e.removalPromptData}function Pe(e){return e.blockRemovalRules}function Re(e){return e.openedBlockSettingsMenu}const Ae=(0,g.createSelector)((e=>{const t=Lt(e).reduce(((e,t,n)=>(e[t]=n,e)),{});return[...e.styleOverrides].sort(((e,n)=>{const[,{clientId:o}]=e,[,{clientId:r}]=n;return(t[o]??-1)-(t[r]??-1)}))}),(e=>[e.blocks.order,e.styleOverrides]));function Ne(e){return e.registeredInserterMediaCategories}const Le=(0,g.createSelector)((e=>{const{settings:{inserterMediaCategories:t,allowedMimeTypes:n,enableOpenverseMediaCategory:o},registeredInserterMediaCategories:r}=e;if(!t&&!r.length||!n)return;const i=t?.map((({name:e})=>e))||[];return[...t||[],...(r||[]).filter((({name:e})=>!i.includes(e)))].filter((e=>!(!o&&"openverse"===e.name)&&Object.values(n).some((t=>t.startsWith(`${e.mediaType}/`)))))}),(e=>[e.settings.inserterMediaCategories,e.settings.allowedMimeTypes,e.settings.enableOpenverseMediaCategory,e.registeredInserterMediaCategories])),De=(0,g.createRegistrySelector)((e=>(0,g.createSelector)(((t,n=null)=>{const{getAllPatterns:o}=G(e(ge)),r=o(),{allowedBlockTypes:i}=_o(t);return r.some((e=>{const{inserter:o=!0}=e;if(!o)return!1;const r=bt(e);return vt(r,i)&&r.every((({name:e})=>$n(t,e,n)))}))}),((t,n)=>[..._t(e)(t),...yt(e)(t,n)])))),Oe=(0,g.createRegistrySelector)((e=>(0,g.createSelector)(((t,n)=>{if(n?.startsWith("core/block/")){const o=parseInt(n.slice(11),10),r=G(e(ge)).getReusableBlocks().find((({id:e})=>e===o));return r?mt(r,t.settings.__experimentalUserPatternCategories):null}return[...t.settings.__experimentalBlockPatterns??[],...t.settings[D]?.(e)??[]].find((({name:e})=>e===n))}),((t,n)=>n?.startsWith("core/block/")?[G(e(ge)).getReusableBlocks(),t.settings.__experimentalReusableBlocks]:[t.settings.__experimentalBlockPatterns,t.settings[D]?.(e)])))),ze=(0,g.createRegistrySelector)((e=>(0,g.createSelector)((t=>[...G(e(ge)).getReusableBlocks().map((e=>mt(e,t.settings.__experimentalUserPatternCategories))),...t.settings.__experimentalBlockPatterns??[],...t.settings[D]?.(e)??[]].filter(((e,t,n)=>t===n.findIndex((t=>e.name===t.name))))),_t(e)))),Ve=[],Fe=(0,g.createRegistrySelector)((e=>t=>{const n=t.settings[O];return(n?n(e):t.settings.__experimentalReusableBlocks)??Ve}));function He(e){return e.lastFocus}function Ue(e){return e.isDragging}function Ge(e){return e.expandedBlock}const $e=(e,t)=>{let n,o=t;for(;!n&&(o=e.blocks.parents.get(o));)"contentOnly"===Hn(e,o)&&(n=o);return n},We=(e,t)=>{let n,o=t;for(;!n&&(o=e.blocks.parents.get(o));)Ke(e,o)&&(n=o);return n};function Ke(e,t){const n=It(e,t);if("core/block"===n||"contentOnly"===Hn(e,t))return!0;const o=Et(e,t),r="core/template-part"===n;return!(!o?.metadata?.patternName&&!r||!window?.__experimentalContentOnlyPatternInsertion)}function Ze(e){return e.temporarilyEditingAsBlocks}function qe(e){return e.temporarilyEditingFocusModeRevert}const Ye=(0,g.createSelector)(((e,t)=>t.reduce(((t,n)=>(t[n]=e.blocks.attributes.get(n)?.style,t)),{})),((e,t)=>[...t.map((t=>e.blocks.attributes.get(t)?.style))]));function Xe(e){return e.settings?.[z]}function Qe(e){return"auto-scaled"===e.zoomLevel||e.zoomLevel<100}function Je(e){return e.zoomLevel}function et(e,t,n=""){const o=Array.isArray(t)?t:[t],r=t=>o.every((n=>$n(e,n,t)));if(!n){if(r(n))return n;const t=Xe(e);return t&&r(t)?t:null}let i=n;for(;null!==i&&!r(i);){i=Xt(e,i)}return i}function tt(e,t,n){const{allowedBlockTypes:o}=_o(e);if(!vt(bt(t),o))return null;return et(e,bt(t).map((({blockName:e})=>e)),n)}function nt(e){return e.insertionPoint}const ot=(e,t)=>{const n=It(e,t);if(!(0,p.hasBlockSupport)(e,n,"blockVisibility",!0))return!1;const o=e.blocks.attributes.get(t);return!1===o?.metadata?.blockVisibility};function rt(e){return!!e.hasBlockSpotlight}const it={user:"user",theme:"theme",directory:"directory"},st="fully",lt="unsynced",at={name:"allPatterns",label:(0,T._x)("All","patterns")},ct={name:"myPatterns",label:(0,T.__)("My patterns")},ut={name:"core/starter-content",label:(0,T.__)("Starter content")};function dt(e,t,n){const o=e.name.startsWith("core/block"),r="core"===e.source||e.source?.startsWith("pattern-directory");return!(t!==it.theme||!o&&!r)||(!(t!==it.directory||!o&&r)||(t===it.user&&e.type!==it.user||(n===st&&""!==e.syncStatus||!(n!==lt||"unsynced"===e.syncStatus||!o))))}const pt=Symbol("isFiltered"),ht=new WeakMap,gt=new WeakMap;function mt(e,t=[]){return{name:`core/block/${e.id}`,id:e.id,type:it.user,title:e.title?.raw,categories:e.wp_pattern_category?.map((e=>{const n=t.find((({id:t})=>t===e));return n?n.slug:e})),content:e.content?.raw,syncStatus:e.wp_pattern_sync_status}}function ft(e){let t=ht.get(e);return t||(t=function(e){const t=(0,p.parse)(e.content,{__unstableSkipMigrationLogs:!0});return 1===t.length&&(t[0].attributes={...t[0].attributes,metadata:{...t[0].attributes.metadata||{},categories:e.categories,patternName:e.name,name:t[0].attributes.metadata?.name||e.title}}),{...e,blocks:t}}(e),ht.set(e,t)),t}function bt(e){let t=gt.get(e);return t||(t=(0,he.parse)(e.content),t=t.filter((e=>null!==e.blockName)),gt.set(e,t)),t}const kt=(e,t,n=null)=>"boolean"==typeof e?e:Array.isArray(e)?!(!e.includes("core/post-content")||null!==t)||e.includes(t):n,vt=(e,t)=>{if("boolean"==typeof t)return t;const n=[...e];for(;n.length>0;){const e=n.shift();if(!kt(t,e.name||e.blockName,!0))return!1;e.innerBlocks?.forEach((e=>{n.push(e)}))}return!0},_t=e=>t=>[t.settings.__experimentalBlockPatterns,t.settings.__experimentalUserPatternCategories,t.settings.__experimentalReusableBlocks,t.settings[D]?.(e),t.blockPatterns,G(e(ge)).getReusableBlocks()],yt=()=>(e,t)=>[e.blockListSettings[t],e.blocks.byClientId.get(t),e.settings.allowedBlockTypes,e.settings.templateLock,Do(e,t),Xe(e),Ke(e,t)];function xt(e,t,n="asc"){return e.concat().sort(((e,t,n)=>(o,r)=>{let i,s;if("function"==typeof e?(i=e(o),s=e(r)):(i=o[e],s=r[e]),i>s)return"asc"===n?1:-1;if(s>i)return"asc"===n?-1:1;const l=t.findIndex((e=>e===o)),a=t.findIndex((e=>e===r));return l>a?1:a>l?-1:0})(t,e,n))}const{isContentBlock:St}=G(p.privateApis),wt=[],Ct=new Set,Bt={[pt]:!0};function It(e,t){const n=e.blocks.byClientId.get(t),o="core/social-link";if("web"!==h.Platform.OS&&n?.name===o){const n=e.blocks.attributes.get(t),{service:r}=n??{};return r?`${o}-${r}`:o}return n?n.name:null}function jt(e,t){const n=e.blocks.byClientId.get(t);return!!n&&n.isValid}function Et(e,t){return e.blocks.byClientId.get(t)?e.blocks.attributes.get(t):null}function Tt(e,t){return e.blocks.byClientId.has(t)?e.blocks.tree.get(t):null}const Mt=(0,g.createSelector)(((e,t)=>{const n=e.blocks.byClientId.get(t);return n?{...n,attributes:Et(e,t)}:null}),((e,t)=>[e.blocks.byClientId.get(t),e.blocks.attributes.get(t)]));function Pt(e,t){const n=t&&Eo(e,t)?"controlled||"+t:t||"";return e.blocks.tree.get(n)?.innerBlocks||wt}const Rt=(0,g.createSelector)(((e,t)=>(I()("wp.data.select( 'core/block-editor' ).__unstableGetClientIdWithClientIdsTree",{since:"6.3",version:"6.5"}),{clientId:t,innerBlocks:At(e,t)})),(e=>[e.blocks.order])),At=(0,g.createSelector)(((e,t="")=>(I()("wp.data.select( 'core/block-editor' ).__unstableGetClientIdsTree",{since:"6.3",version:"6.5"}),xn(e,t).map((t=>Rt(e,t))))),(e=>[e.blocks.order])),Nt=(0,g.createSelector)(((e,t)=>{t=Array.isArray(t)?[...t]:[t];const n=[];for(const o of t){const t=e.blocks.order.get(o);t&&n.push(...t)}let o=0;for(;o<n.length;){const t=n[o],r=e.blocks.order.get(t);r&&n.splice(o+1,0,...r),o++}return n}),(e=>[e.blocks.order])),Lt=e=>Nt(e,""),Dt=(0,g.createSelector)(((e,t)=>{const n=Lt(e);if(!t)return n.length;let o=0;for(const r of n){e.blocks.byClientId.get(r).name===t&&o++}return o}),(e=>[e.blocks.order,e.blocks.byClientId])),Ot=(0,g.createSelector)(((e,t)=>{if(!t)return wt;const n=Array.isArray(t)?t:[t],o=Lt(e).filter((t=>{const o=e.blocks.byClientId.get(t);return n.includes(o.name)}));return o.length>0?o:wt}),(e=>[e.blocks.order,e.blocks.byClientId]));function zt(e,t){return I()("wp.data.select( 'core/block-editor' ).__experimentalGetGlobalBlocksByName",{since:"6.5",alternative:"wp.data.select( 'core/block-editor' ).getBlocksByName"}),Ot(e,t)}const Vt=(0,g.createSelector)(((e,t)=>(Array.isArray(t)?t:[t]).map((t=>Tt(e,t)))),((e,t)=>(Array.isArray(t)?t:[t]).map((t=>e.blocks.tree.get(t))))),Ft=(0,g.createSelector)(((e,t)=>Vt(e,t).filter(Boolean).map((e=>e.name))),((e,t)=>Vt(e,t)));function Ht(e,t){return xn(e,t).length}function Ut(e){return e.selection.selectionStart}function Gt(e){return e.selection.selectionEnd}function $t(e){return e.selection.selectionStart.clientId}function Wt(e){return e.selection.selectionEnd.clientId}function Kt(e){const t=an(e).length;return t||(e.selection.selectionStart.clientId?1:0)}function Zt(e){const{selectionStart:t,selectionEnd:n}=e.selection;return!!t.clientId&&t.clientId===n.clientId}function qt(e){const{selectionStart:t,selectionEnd:n}=e.selection,{clientId:o}=t;return o&&o===n.clientId?o:null}function Yt(e){const t=qt(e);return t?Tt(e,t):null}function Xt(e,t){return e.blocks.parents.get(t)??null}const Qt=(0,g.createSelector)(((e,t,n=!1)=>{const o=[];let r=t;for(;r=e.blocks.parents.get(r);)o.push(r);return o.length?n?o:o.reverse():wt}),(e=>[e.blocks.parents])),Jt=(0,g.createSelector)(((e,t,n,o=!1)=>{const r=Qt(e,t,o),i=Array.isArray(n)?e=>n.includes(e):e=>n===e;return r.filter((t=>i(It(e,t))))}),(e=>[e.blocks.parents]));function en(e,t){let n,o=t;do{n=o,o=e.blocks.parents.get(o)}while(o);return n}function tn(e,t){const n=qt(e),o=[...Qt(e,t),t],r=[...Qt(e,n),n];let i;const s=Math.min(o.length,r.length);for(let e=0;e<s&&o[e]===r[e];e++)i=o[e];return i}function nn(e,t,n=1){if(void 0===t&&(t=qt(e)),void 0===t&&(t=n<0?un(e):dn(e)),!t)return null;const o=Xt(e,t);if(null===o)return null;const{order:r}=e.blocks,i=r.get(o),s=i.indexOf(t)+1*n;return s<0||s===i.length?null:i[s]}function on(e,t){return nn(e,t,-1)}function rn(e,t){return nn(e,t,1)}function sn(e){return e.initialPosition}const ln=(0,g.createSelector)((e=>{const{selectionStart:t,selectionEnd:n}=e.selection;if(!t.clientId||!n.clientId)return wt;if(t.clientId===n.clientId)return[t.clientId];const o=Xt(e,t.clientId);if(null===o)return wt;const r=xn(e,o),i=r.indexOf(t.clientId),s=r.indexOf(n.clientId);return i>s?r.slice(s,i+1):r.slice(i,s+1)}),(e=>[e.blocks.order,e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId]));function an(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId===n.clientId?wt:ln(e)}const cn=(0,g.createSelector)((e=>{const t=an(e);return t.length?t.map((t=>Tt(e,t))):wt}),(e=>[...ln.getDependants(e),e.blocks.byClientId,e.blocks.order,e.blocks.attributes]));function un(e){return an(e)[0]||null}function dn(e){const t=an(e);return t[t.length-1]||null}function pn(e,t){return un(e)===t}function hn(e,t){return-1!==an(e).indexOf(t)}const gn=(0,g.createSelector)(((e,t)=>{let n=t,o=!1;for(;n&&!o;)n=Xt(e,n),o=hn(e,n);return o}),(e=>[e.blocks.order,e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId]));function mn(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId===n.clientId?null:t.clientId||null}function fn(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId===n.clientId?null:n.clientId||null}function bn(e){const t=Ut(e),n=Gt(e);return!t.attributeKey&&!n.attributeKey&&void 0===t.offset&&void 0===n.offset}function kn(e){const t=Ut(e),n=Gt(e);return!!t&&!!n&&t.clientId===n.clientId&&t.attributeKey===n.attributeKey&&t.offset===n.offset}function vn(e){return ln(e).some((t=>{const n=It(e,t);return!(0,p.getBlockType)(n).merge}))}function _n(e,t){const n=Ut(e),o=Gt(e);if(n.clientId===o.clientId)return!1;if(!n.attributeKey||!o.attributeKey||void 0===n.offset||void 0===o.offset)return!1;const r=Xt(e,n.clientId);if(r!==Xt(e,o.clientId))return!1;const i=xn(e,r);let s,l;i.indexOf(n.clientId)>i.indexOf(o.clientId)?(s=o,l=n):(s=n,l=o);const a=t?l.clientId:s.clientId,c=t?s.clientId:l.clientId,u=It(e,a);if(!(0,p.getBlockType)(u).merge)return!1;const d=Tt(e,c);if(d.name===u)return!0;const h=(0,p.switchToBlockType)(d,u);return h&&h.length}const yn=e=>{const t=Ut(e),n=Gt(e);if(t.clientId===n.clientId)return wt;if(!t.attributeKey||!n.attributeKey||void 0===t.offset||void 0===n.offset)return wt;const o=Xt(e,t.clientId);if(o!==Xt(e,n.clientId))return wt;const r=xn(e,o),i=r.indexOf(t.clientId),s=r.indexOf(n.clientId),[l,a]=i>s?[n,t]:[t,n],c=Tt(e,l.clientId),u=Tt(e,a.clientId),d=c.attributes[l.attributeKey],p=u.attributes[a.attributeKey];let h=(0,pe.create)({html:d}),g=(0,pe.create)({html:p});return h=(0,pe.remove)(h,0,l.offset),g=(0,pe.remove)(g,a.offset,g.text.length),[{...c,attributes:{...c.attributes,[l.attributeKey]:(0,pe.toHTMLString)({value:h})}},{...u,attributes:{...u.attributes,[a.attributeKey]:(0,pe.toHTMLString)({value:g})}}]};function xn(e,t){return e.blocks.order.get(t||"")||wt}function Sn(e,t){return xn(e,Xt(e,t)).indexOf(t)}function wn(e,t){const{selectionStart:n,selectionEnd:o}=e.selection;return n.clientId===o.clientId&&n.clientId===t}function Cn(e,t,n=!1){const o=ln(e);return!!o.length&&(n?o.some((n=>Qt(e,n,!0).includes(t))):o.some((n=>Xt(e,n)===t)))}function Bn(e,t,n=!1){return xn(e,t).some((t=>Nn(e,t)||n&&Bn(e,t,n)))}function In(e,t){if(!t)return!1;const n=an(e),o=n.indexOf(t);return o>-1&&o<n.length-1}function jn(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId!==n.clientId}function En(e){return e.isMultiSelecting}function Tn(e){return e.isSelectionEnabled}function Mn(e,t){return e.blocksMode[t]||"visual"}function Pn(e){return e.isTyping}function Rn(e){return!!e.draggedBlocks.length}function An(e){return e.draggedBlocks}function Nn(e,t){return e.draggedBlocks.includes(t)}function Ln(e,t){if(!Rn(e))return!1;return Qt(e,t).some((t=>Nn(e,t)))}function Dn(){return I()('wp.data.select( "core/block-editor" ).isCaretWithinFormattedText',{since:"6.1",version:"6.3"}),!1}const On=(0,g.createSelector)((e=>{let t,n;const{insertionCue:o,selection:{selectionEnd:r}}=e;if(null!==o)return o;const{clientId:i}=r;return i?(t=Xt(e,i)||void 0,n=Sn(e,r.clientId)+1):n=xn(e).length,{rootClientId:t,index:n}}),(e=>[e.insertionCue,e.selection.selectionEnd.clientId,e.blocks.parents,e.blocks.order]));function zn(e){return null!==e.insertionCue}function Vn(e){return e.template.isValid}function Fn(e){return e.settings.template}function Hn(e,t){return t?vo(e,t)?.templateLock??!1:e.settings.templateLock??!1}const Un=(e,t,n=null)=>{let o,r;if(t&&"object"==typeof t?(o=t,r=t.name):(o=(0,p.getBlockType)(t),r=t),!o)return!1;const{allowedBlockTypes:i}=_o(e);if(!kt(i,r,!0))return!1;const s=(Array.isArray(o.parent)?o.parent:[]).concat(Array.isArray(o.ancestor)?o.ancestor:[]);if(s.length>0){if(s.includes("core/post-content"))return!0;let t=n,o=!1;do{if(s.includes(It(e,t))){o=!0;break}t=e.blocks.parents.get(t)}while(t);return o}return!0},Gn=(e,t,n=null)=>{if(!Un(e,t,n))return!1;let o;if(t&&"object"==typeof t?(o=t,t=o.name):o=(0,p.getBlockType)(t),Hn(e,n))return!1;const r=Do(e,n??"");if("disabled"===r)return!1;const i=vo(e,n);if(n&&void 0===i)return!1;const s=St(t),l=!!Ke(e,n),a=!!We(e,n);if((l||a)&&!s)return!1;if((l||"contentOnly"===r)&&!Ie(e,t,n))return!1;const c=It(e,n),u=(0,p.getBlockType)(c),d=u?.allowedBlocks;let h=kt(d,t);if(!1!==h){const e=i?.allowedBlocks,n=kt(e,t);null!==n&&(h=n)}const g=o.parent,m=kt(g,c);let b=!0;const k=o.ancestor;if(k){b=[n,...Qt(e,n)].some((t=>kt(k,It(e,t))))}const v=b&&(null===h&&null===m||!0===h||!0===m);return v?(0,f.applyFilters)("blockEditor.__unstableCanInsertBlockType",v,o,n,{getBlock:Tt.bind(null,e),getBlockParentsByBlockName:Jt.bind(null,e)}):v},$n=(0,g.createRegistrySelector)((e=>(0,g.createSelector)(Gn,((t,n,o)=>yt(e)(t,o)))));function Wn(e,t,n=null){return t.every((t=>$n(e,It(e,t),n)))}function Kn(e,t){const n=Et(e,t);if(null===n)return!0;if(void 0!==n.lock?.remove)return!n.lock.remove;const o=Xt(e,t);if(Hn(e,o))return!1;const r=!!We(e,t),i=St(It(e,t));if(r&&!i)return!1;const s=!!Ke(e,o),l=Do(e,o);return!((s||"contentOnly"===l)&&!Ie(e,It(e,t),o))&&"disabled"!==l}function Zn(e,t){return t.every((t=>Kn(e,t)))}function qn(e,t){const n=Et(e,t);if(null===n)return!0;if(void 0!==n.lock?.move)return!n.lock.move;const o=Xt(e,t),r=Hn(e,o);if("all"===r||"contentOnly"===r)return!1;const i=!!We(e,t),s=St(It(e,t));if(i&&!s)return!1;const l=!!Ke(e,o),a=Do(e,o);return!((l||"contentOnly"===a)&&!Ie(e,It(e,t),o))&&"disabled"!==Do(e,o)}function Yn(e,t){return t.every((t=>qn(e,t)))}function Xn(e,t){const n=Et(e,t);if(null===n)return!0;const{lock:o}=n;return!o?.edit}function Qn(e,t){return!!(0,p.hasBlockSupport)(t,"lock",!0)&&!!e.settings?.canLockBlocks}function Jn(e,t){return e.preferences.insertUsage?.[t]??null}const eo=(e,t,n)=>!!(0,p.hasBlockSupport)(t,"inserter",!0)&&Gn(e,t.name,n),to=(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}},no=(e,{buildScope:t="inserter"})=>n=>{const o=n.name;let r=!1;(0,p.hasBlockSupport)(n.name,"multiple",!0)||(r=Vt(e,Lt(e)).some((({name:e})=>e===n.name)));const{time:i,count:s=0}=Jn(e,o)||{},l={id:o,name:n.name,title:n.title,icon:n.icon,isDisabled:r,frecency:to(i,s)};if("transform"===t)return l;const a=(0,p.getBlockVariations)(n.name,"inserter");return{...l,initialAttributes:{},description:n.description,category:n.category,keywords:n.keywords,parent:n.parent,ancestor:n.ancestor,variations:a,example:n.example,utility:1}},oo=(0,g.createRegistrySelector)((e=>(0,g.createSelector)(((t,n=null,o=Bt)=>{const r=Gn(t,"core/block",n)?G(e(ge)).getReusableBlocks().map((e=>{const n=e.wp_pattern_sync_status?de:{src:de,foreground:"var(--wp-block-synced-color)"},o=mt(e),{time:r,count:i=0}=Jn(t,o.name)||{},s=to(r,i);return{id:o.name,name:"core/block",initialAttributes:{ref:e.id},title:o.title,icon:n,category:"reusable",keywords:["reusable"],isDisabled:!1,utility:1,frecency:s,content:o.content,get blocks(){return ft(o).blocks},syncStatus:o.syncStatus}})):[],i=no(t,{buildScope:"inserter"});let s=(0,p.getBlockTypes)().filter((e=>(0,p.hasBlockSupport)(e,"inserter",!0))).map(i);s=!1!==o[pt]?s.filter((e=>eo(t,e,n))):s.filter((e=>Un(t,e,n))).map((e=>({...e,isAllowedInCurrentRoot:eo(t,e,n)})));const l=[],a=s.reduce(((e,n)=>{const{variations:o=[]}=n;if(o.some((({isDefault:e})=>e))||e.push(n),o.length){const r=((e,t)=>n=>{const o=`${t.id}/${n.name}`,{time:r,count:i=0}=Jn(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:to(r,i)}})(t,n);o.map(r).forEach((t=>{"core/paragraph/stretchy-paragraph"===t.id||"core/heading/stretchy-heading"===t.id?l.push(t):e.push(t)}))}return e}),[]);a.push(...l);const{core:c,noncore:u}=a.reduce(((e,t)=>{const{core:n,noncore:o}=e;return(t.name.startsWith("core/")?n:o).push(t),e}),{core:[],noncore:[]});return[...[...c,...u],...r]}),((t,n)=>[(0,p.getBlockTypes)(),G(e(ge)).getReusableBlocks(),t.blocks.order,t.preferences.insertUsage,...yt(e)(t,n)])))),ro=(0,g.createRegistrySelector)((e=>(0,g.createSelector)(((e,t,n=null)=>{const o=Array.isArray(t)?t:[t],r=no(e,{buildScope:"transform"}),i=(0,p.getBlockTypes)().filter((t=>eo(e,t,n))).map(r),s=Object.fromEntries(Object.entries(i).map((([,e])=>[e.name,e])));return xt((0,p.getPossibleBlockTransformations)(o).reduce(((e,t)=>(s[t?.name]&&e.push(s[t.name]),e)),[]),(e=>s[e.name].frecency),"desc")}),((t,n,o)=>[(0,p.getBlockTypes)(),t.preferences.insertUsage,...yt(e)(t,o)])))),io=(e,t=null)=>{if((0,p.getBlockTypes)().some((n=>eo(e,n,t))))return!0;return Gn(e,"core/block",t)},so=(0,g.createRegistrySelector)((e=>(0,g.createSelector)(((e,t=null)=>{if(!t)return;const n=(0,p.getBlockTypes)().filter((n=>eo(e,n,t)));return Gn(e,"core/block",t)&&n.push("core/block"),n}),((t,n)=>[(0,p.getBlockTypes)(),...yt(e)(t,n)])))),lo=(0,g.createSelector)(((e,t=null)=>(I()('wp.data.select( "core/block-editor" ).__experimentalGetAllowedBlocks',{alternative:'wp.data.select( "core/block-editor" ).getAllowedBlocks',since:"6.2",version:"6.4"}),so(e,t))),((e,t)=>so.getDependants(e,t)));function ao(e,t=null){if(!t)return;const{defaultBlock:n,directInsert:o}=e.blockListSettings[t]??{};return n&&o?n:void 0}function co(e,t=null){return I()('wp.data.select( "core/block-editor" ).__experimentalGetDirectInsertBlock',{alternative:'wp.data.select( "core/block-editor" ).getDirectInsertBlock',since:"6.3",version:"6.4"}),ao(e,t)}const uo=(0,g.createRegistrySelector)((e=>(t,n)=>{const o=G(e(ge)).getPatternBySlug(n);return o?ft(o):null})),po=e=>(t,n)=>[..._t(e)(t),...yt(e)(t,n)],ho=new WeakMap;function go(e){let t=ho.get(e);return t||(t={...e,get blocks(){return ft(e).blocks}},ho.set(e,t)),t}const mo=(0,g.createRegistrySelector)((e=>(0,g.createSelector)(((t,n=null,o=Bt)=>{const{getAllPatterns:r}=G(e(ge)),i=r(),{allowedBlockTypes:s}=_o(t);return i.filter((({inserter:e=!0})=>!!e)).map(go).filter((e=>vt(bt(e),s))).filter((e=>bt(e).every((({blockName:e})=>!1!==o[pt]?$n(t,e,n):Un(t,e,n)))))}),po(e)))),fo=(0,g.createRegistrySelector)((e=>(0,g.createSelector)(((t,n,o=null)=>{if(!n)return wt;const r=e(ge).__experimentalGetAllowedPatterns(o),i=Array.isArray(n)?n:[n],s=r.filter((e=>e?.blockTypes?.some?.((e=>i.includes(e)))));return 0===s.length?wt:s}),((t,n,o)=>po(e)(t,o))))),bo=(0,g.createRegistrySelector)((e=>(I()('wp.data.select( "core/block-editor" ).__experimentalGetPatternsByBlockTypes',{alternative:'wp.data.select( "core/block-editor" ).getPatternsByBlockTypes',since:"6.2",version:"6.4"}),e(ge).getPatternsByBlockTypes))),ko=(0,g.createRegistrySelector)((e=>(0,g.createSelector)(((t,n,o=null)=>{if(!n)return wt;if(n.some((({clientId:e,innerBlocks:n})=>n.length||Eo(t,e))))return wt;const r=Array.from(new Set(n.map((({name:e})=>e))));return e(ge).getPatternsByBlockTypes(r,o)}),((t,n,o)=>po(e)(t,o)))));function vo(e,t){return e.blockListSettings[t]}function _o(e){return e.settings}function yo(e){return e.blocks.isPersistentChange}const xo=(0,g.createSelector)(((e,t=[])=>t.reduce(((t,n)=>e.blockListSettings[n]?{...t,[n]:e.blockListSettings[n]}:t),{})),(e=>[e.blockListSettings])),So=(0,g.createRegistrySelector)((e=>(0,g.createSelector)(((t,n)=>{I()("wp.data.select( 'core/block-editor' ).__experimentalGetReusableBlockTitle",{since:"6.6",version:"6.8"});const o=G(e(ge)).getReusableBlocks().find((e=>e.id===n));return o?o.title?.raw:null}),(()=>[G(e(ge)).getReusableBlocks()]))));function wo(e){return e.blocks.isIgnoredChange}function Co(e){return e.lastBlockAttributesChange}function Bo(){return I()('wp.data.select( "core/block-editor" ).hasBlockMovingClientId',{since:"6.7",hint:"Block moving mode feature has been removed"}),!1}function Io(e){return!!e.automaticChangeStatus}function jo(e,t){return e.highlightedBlock===t}function Eo(e,t){return!!e.blocks.controlledInnerBlocks[t]}const To=(0,g.createSelector)(((e,t)=>{if(!t.length)return null;const n=qt(e);if(t.includes(It(e,n)))return n;const o=an(e),r=Jt(e,n||o[0],t);return r?r[r.length-1]:null}),((e,t)=>[e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId,t]));function Mo(e,t,n){const{lastBlockInserted:o}=e;return o.clientIds?.includes(t)&&o.source===n}function Po(e,t){return e.blockVisibility?.[t]??!0}function Ro(){I()("wp.data.select( 'core/block-editor' ).getHoveredBlockClientId",{since:"6.9",version:"7.1"})}const Ao=(0,g.createSelector)((e=>{const t=new Set(Object.keys(e.blockVisibility).filter((t=>e.blockVisibility[t])));return 0===t.size?Ct:t}),(e=>[e.blockVisibility]));function No(e,t){if("default"!==Do(e,t))return!1;if(!Xn(e,t))return!0;if(Qe(e)){const n=Xe(e);if(n){const o=xn(e,n);if(o?.includes(t))return!0}else if(t&&!Xt(e,t))return!0}return!(0,p.hasBlockSupport)(It(e,t),"__experimentalDisableBlockOverlay",!1)&&Eo(e,t)&&!wn(e,t)&&!Cn(e,t,!0)}function Lo(e,t){let n=e.blocks.parents.get(t);for(;n;){if(No(e,n))return!0;n=e.blocks.parents.get(n)}return!1}function Do(e,t=""){return null===t&&(t=""),e.derivedBlockEditingModes?.has(t)?e.derivedBlockEditingModes.get(t):e.blockEditingModes.has(t)?e.blockEditingModes.get(t):"default"}const Oo=(0,g.createRegistrySelector)((e=>(t,n="")=>{const o=n||qt(t);if(!o)return!1;const{getGroupingBlockName:r}=e(p.store),i=Tt(t,o),s=r();return i&&(i.name===s||(0,p.getBlockType)(i.name)?.transforms?.ungroup)&&!!i.innerBlocks.length&&Kn(t,o)})),zo=(0,g.createRegistrySelector)((e=>(t,n=wt)=>{const{getGroupingBlockName:o}=e(p.store),r=o(),i=n?.length?n:ln(t),s=i?.length?Xt(t,i[0]):void 0;return $n(t,r,s)&&i.length&&Zn(t,i)})),Vo=(e,t)=>(I()("wp.data.select( 'core/block-editor' ).__unstableGetContentLockingParent",{since:"6.1",version:"6.7"}),$e(e,t));function Fo(e){return I()("wp.data.select( 'core/block-editor' ).__unstableGetTemporarilyEditingAsBlocks",{since:"6.1",version:"6.7"}),Ze(e)}function Ho(e){return I()("wp.data.select( 'core/block-editor' ).__unstableGetTemporarilyEditingFocusModeToRevert",{since:"6.5",version:"6.7"}),qe(e)}const Uo=window.wp.a11y,Go=["inserterMediaCategories","blockInspectorAnimation","mediaSideload"];function $o(e,{stripExperimentalSettings:t=!1,reset:n=!1}={}){let o=e;Object.hasOwn(o,"__unstableIsPreviewMode")&&(I()("__unstableIsPreviewMode argument in wp.data.dispatch('core/block-editor').updateSettings",{since:"6.8",alternative:"isPreviewMode"}),o={...o},o.isPreviewMode=o.__unstableIsPreviewMode,delete o.__unstableIsPreviewMode);let r=o;if(t&&"web"===h.Platform.OS){r={};for(const e in o)Go.includes(e)||(r[e]=o[e])}return{type:"UPDATE_SETTINGS",settings:r,reset:n}}function Wo(){return{type:"HIDE_BLOCK_INTERFACE"}}function Ko(){return{type:"SHOW_BLOCK_INTERFACE"}}const Zo=(e,t=!0,n=!1)=>({select:o,dispatch:r,registry:i})=>{if(!e||!e.length)return;var s;s=e,e=Array.isArray(s)?s:[s];if(!o.canRemoveBlocks(e))return;const l=!n&&o.getBlockRemovalRules();if(l){let n=function(e){const t=[],n=[...e];for(;n.length;){const{innerBlocks:e,...o}=n.shift();n.push(...e),t.push(o)}return t};const i=n(e.map(o.getBlock));let s;for(const n of l)if(s=n.callback(i),s)return void r(Yo(e,t,s))}t&&r.selectPreviousBlock(e[0],t),i.batch((()=>{r({type:"REMOVE_BLOCKS",clientIds:e}),r(qo())}))},qo=()=>({select:e,dispatch:t})=>{if(e.getBlockCount()>0)return;const{__unstableHasCustomAppender:n}=e.getSettings();n||t.insertDefaultBlock()};function Yo(e,t,n){return{type:"DISPLAY_BLOCK_REMOVAL_PROMPT",clientIds:e,selectPrevious:t,message:n}}function Xo(){return{type:"CLEAR_BLOCK_REMOVAL_PROMPT"}}function Qo(e=!1){return{type:"SET_BLOCK_REMOVAL_RULES",rules:e}}function Jo(e){return{type:"SET_OPENED_BLOCK_SETTINGS_MENU",clientId:e}}function er(e,t){return{type:"SET_STYLE_OVERRIDE",id:e,style:t}}function tr(e){return{type:"DELETE_STYLE_OVERRIDE",id:e}}function nr(e=null){return{type:"LAST_FOCUS",lastFocus:e}}function or(e){return({select:t,dispatch:n,registry:o})=>{const r=G(o.select(ji)).getTemporarilyEditingFocusModeToRevert();n.__unstableMarkNextChangeAsNotPersistent(),n.updateBlockAttributes(e,{templateLock:"contentOnly"}),n.updateBlockListSettings(e,{...t.getBlockListSettings(e),templateLock:"contentOnly"}),n.updateSettings({focusMode:r}),n.__unstableSetTemporarilyEditingAsBlocks()}}function rr(){return{type:"START_DRAGGING"}}function ir(){return{type:"STOP_DRAGGING"}}function sr(e){return{type:"SET_BLOCK_EXPANDED_IN_LIST_VIEW",clientId:e}}function lr(e){return{type:"SET_INSERTION_POINT",value:e}}const ar=e=>({select:t,dispatch:n})=>{n.selectBlock(e),n.__unstableMarkNextChangeAsNotPersistent(),n.updateBlockAttributes(e,{templateLock:void 0}),n.updateBlockListSettings(e,{...t.getBlockListSettings(e),templateLock:!1});const o=t.getSettings().focusMode;n.updateSettings({focusMode:!0}),n.__unstableSetTemporarilyEditingAsBlocks(e,o)},cr=(e=100)=>({select:t,dispatch:n})=>{if(100!==e){const e=t.getBlockSelectionStart(),o=t.getSectionRootClientId();if(e){let r;if(o){const n=t.getBlockOrder(o);r=n?.includes(e)?e:t.getBlockParents(e).find((e=>n.includes(e)))}else r=t.getBlockHierarchyRootClientId(e);r?n.selectBlock(r):n.clearSelectedBlock(),(0,Uo.speak)((0,T.__)("You are currently in zoom-out mode."))}}n({type:"SET_ZOOM_LEVEL",zoom:e})};function ur(){return{type:"RESET_ZOOM_LEVEL"}}function dr(e,t){return{type:"TOGGLE_BLOCK_SPOTLIGHT",clientId:e,hasBlockSpotlight:t}}const pr=window.wp.notices,hr=window.wp.preferences,gr="†";function mr(e){if(e)return Object.keys(e).find((t=>{const n=e[t];return("string"==typeof n||n instanceof pe.RichTextData)&&-1!==n.toString().indexOf(gr)}))}function fr(e){for(const[t,n]of Object.entries(e.attributes))if("rich-text"===n.source||"html"===n.source)return t}const br=e=>Array.isArray(e)?e:[e],kr=e=>({dispatch:t})=>{t({type:"RESET_BLOCKS",blocks:e}),t(vr(e))},vr=e=>({select:t,dispatch:n})=>{const o=t.getTemplate(),r=t.getTemplateLock(),i=!o||"all"!==r||(0,p.doBlocksMatchTemplate)(e,o);if(i!==t.isValidTemplate())return n.setTemplateValidity(i),i};function _r(e,t,n){return{type:"RESET_SELECTION",selectionStart:e,selectionEnd:t,initialPosition:n}}function yr(e){return I()('wp.data.dispatch( "core/block-editor" ).receiveBlocks',{since:"5.9",alternative:"resetBlocks or insertBlocks"}),{type:"RECEIVE_BLOCKS",blocks:e}}function xr(e,t,n={uniqueByBlock:!1}){return"boolean"==typeof n&&(n={uniqueByBlock:n}),{type:"UPDATE_BLOCK_ATTRIBUTES",clientIds:br(e),attributes:t,options:n}}function Sr(e,t){return{type:"UPDATE_BLOCK",clientId:e,updates:t}}function wr(e,t=0){return{type:"SELECT_BLOCK",initialPosition:t,clientId:e}}function Cr(){return I()('wp.data.dispatch( "core/block-editor" ).hoverBlock',{since:"6.9",version:"7.1"}),{type:"DO_NOTHING"}}const Br=(e,t=!1)=>({select:n,dispatch:o})=>{const r=n.getPreviousBlockClientId(e);if(r)o.selectBlock(r,-1);else if(t){const t=n.getBlockRootClientId(e);t&&o.selectBlock(t,-1)}},Ir=e=>({select:t,dispatch:n})=>{const o=t.getNextBlockClientId(e);o&&n.selectBlock(o)};function jr(){return{type:"START_MULTI_SELECT"}}function Er(){return{type:"STOP_MULTI_SELECT"}}const Tr=(e,t,n=0)=>({select:o,dispatch:r})=>{if(o.getBlockRootClientId(e)!==o.getBlockRootClientId(t))return;r({type:"MULTI_SELECT",start:e,end:t,initialPosition:n});const i=o.getSelectedBlockCount();(0,Uo.speak)((0,T.sprintf)((0,T._n)("%s block selected.","%s blocks selected.",i),i),"assertive")};function Mr(){return{type:"CLEAR_SELECTED_BLOCK"}}function Pr(e=!0){return{type:"TOGGLE_SELECTION",isSelectionEnabled:e}}const Rr=(e,t,n,o=0,r)=>({select:i,dispatch:s,registry:l})=>{e=br(e),t=br(t);const a=i.getBlockRootClientId(e[0]);for(let e=0;e<t.length;e++){const n=t[e];if(!i.canInsertBlockType(n.name,a))return}l.batch((()=>{s({type:"REPLACE_BLOCKS",clientIds:e,blocks:t,time:Date.now(),indexToSelect:n,initialPosition:o,meta:r}),s.ensureDefaultBlock()}))};function Ar(e,t){return Rr(e,t)}const Nr=e=>(t,n)=>({select:o,dispatch:r})=>{o.canMoveBlocks(t)&&r({type:e,clientIds:br(t),rootClientId:n})},Lr=Nr("MOVE_BLOCKS_DOWN"),Dr=Nr("MOVE_BLOCKS_UP"),Or=(e,t="",n="",o)=>({select:r,dispatch:i})=>{if(r.canMoveBlocks(e)){if(t!==n){if(!r.canRemoveBlocks(e))return;if(!r.canInsertBlocks(e,n))return}i({type:"MOVE_BLOCKS_TO_POSITION",fromRootClientId:t,toRootClientId:n,clientIds:e,index:o})}};function zr(e,t="",n="",o){return Or([e],t,n,o)}function Vr(e,t,n,o,r){return Fr([e],t,n,o,0,r)}const Fr=(e,t,n,o=!0,r=0,i)=>({select:s,dispatch:l})=>{null!==r&&"object"==typeof r&&(i=r,r=0,I()("meta argument in wp.data.dispatch('core/block-editor')",{since:"5.8",hint:"The meta argument is now the 6th argument of the function"})),e=br(e);const a=[];for(const t of e){s.canInsertBlockType(t.name,n)&&a.push(t)}a.length&&l({type:"INSERT_BLOCKS",blocks:a,index:t,rootClientId:n,time:Date.now(),updateSelection:o,initialPosition:o?r:null,meta:i})};function Hr(e,t,n={}){const{__unstableWithInserter:o,operation:r,nearestSide:i}=n;return{type:"SHOW_INSERTION_POINT",rootClientId:e,index:t,__unstableWithInserter:o,operation:r,nearestSide:i}}const Ur=()=>({select:e,dispatch:t})=>{e.isBlockInsertionPointVisible()&&t({type:"HIDE_INSERTION_POINT"})};function Gr(e){return{type:"SET_TEMPLATE_VALIDITY",isValid:e}}const $r=()=>({select:e,dispatch:t})=>{t({type:"SYNCHRONIZE_TEMPLATE"});const n=e.getBlocks(),o=e.getTemplate(),r=(0,p.synchronizeBlocksWithTemplate)(n,o);t.resetBlocks(r)},Wr=e=>({registry:t,select:n,dispatch:o})=>{const r=n.getSelectionStart(),i=n.getSelectionEnd();if(r.clientId===i.clientId)return;if(!r.attributeKey||!i.attributeKey||void 0===r.offset||void 0===i.offset)return!1;const s=n.getBlockRootClientId(r.clientId);if(s!==n.getBlockRootClientId(i.clientId))return;const l=n.getBlockOrder(s);let a,c;l.indexOf(r.clientId)>l.indexOf(i.clientId)?(a=i,c=r):(a=r,c=i);const u=e?c:a,d=n.getBlock(u.clientId),h=(0,p.getBlockType)(d.name);if(!h.merge)return;const g=a,m=c,f=n.getBlock(g.clientId),b=n.getBlock(m.clientId),k=f.attributes[g.attributeKey],v=b.attributes[m.attributeKey];let _=(0,pe.create)({html:k}),y=(0,pe.create)({html:v});_=(0,pe.remove)(_,g.offset,_.text.length),y=(0,pe.insert)(y,gr,0,m.offset);const x=(0,p.cloneBlock)(f,{[g.attributeKey]:(0,pe.toHTMLString)({value:_})}),S=(0,p.cloneBlock)(b,{[m.attributeKey]:(0,pe.toHTMLString)({value:y})}),w=e?x:S,C=f.name===b.name?[w]:(0,p.switchToBlockType)(w,h.name);if(!C||!C.length)return;let B;if(e){const e=C.pop();B=h.merge(e.attributes,S.attributes)}else{const e=C.shift();B=h.merge(x.attributes,e.attributes)}const I=mr(B),j=B[I],E=(0,pe.create)({html:j}),T=E.text.indexOf(gr),M=(0,pe.remove)(E,T,T+1),P=(0,pe.toHTMLString)({value:M});B[I]=P;const R=n.getSelectedBlockClientIds(),A=[...e?C:[],{...d,attributes:{...d.attributes,...B}},...e?[]:C];t.batch((()=>{o.selectionChange(d.clientId,I,T,T),o.replaceBlocks(R,A,0,n.getSelectedBlocksInitialCaretPosition())}))},Kr=(e=[])=>({registry:t,select:n,dispatch:o})=>{const r=n.getSelectionStart(),i=n.getSelectionEnd(),s=n.getBlockRootClientId(r.clientId),l=n.getBlockRootClientId(i.clientId);if(s!==l)return;const a=n.getBlockOrder(s);let c,u;a.indexOf(r.clientId)>a.indexOf(i.clientId)?(c=i,u=r):(c=r,u=i);const d=c,h=u,g=n.getBlock(d.clientId),m=n.getBlock(h.clientId),f=(0,p.getBlockType)(g.name),b=(0,p.getBlockType)(m.name),k="string"==typeof d.attributeKey?d.attributeKey:fr(f),v="string"==typeof h.attributeKey?h.attributeKey:fr(b),_=n.getBlockAttributes(d.clientId),y=_?.metadata?.bindings;if(y?.[k]){if(e.length){const{createWarningNotice:e}=t.dispatch(pr.store);return void e((0,T.__)("Blocks can't be inserted into other blocks with bindings"),{type:"snackbar"})}return void o.insertAfterBlock(d.clientId)}if(!k||!v||void 0===r.offset||void 0===i.offset)return;if(d.clientId===h.clientId&&k===v&&d.offset===h.offset)if(e.length){if((0,p.isUnmodifiedDefaultBlock)(g))return void o.replaceBlocks([d.clientId],e,e.length-1,-1)}else if(!n.getBlockOrder(d.clientId).length){let e=function(){const e=(0,p.getDefaultBlockName)();return n.canInsertBlockType(e,s)?(0,p.createBlock)(e):(0,p.createBlock)(n.getBlockName(d.clientId))};const t=_[k].length;if(0===d.offset&&t)return void o.insertBlocks([e()],n.getBlockIndex(d.clientId),s,!1);if(d.offset===t)return void o.insertBlocks([e()],n.getBlockIndex(d.clientId)+1,s)}const x=g.attributes[k],S=m.attributes[v];let w=(0,pe.create)({html:x}),C=(0,pe.create)({html:S});w=(0,pe.remove)(w,d.offset,w.text.length),C=(0,pe.remove)(C,0,h.offset);let B={...g,innerBlocks:g.clientId===m.clientId?[]:g.innerBlocks,attributes:{...g.attributes,[k]:(0,pe.toHTMLString)({value:w})}},I={...m,clientId:g.clientId===m.clientId?(0,p.createBlock)(m.name).clientId:m.clientId,attributes:{...m.attributes,[v]:(0,pe.toHTMLString)({value:C})}};const j=(0,p.getDefaultBlockName)();if(g.clientId===m.clientId&&j&&I.name!==j&&n.canInsertBlockType(j,s)){const e=(0,p.switchToBlockType)(I,j);1===e?.length&&(I=e[0])}if(!e.length)return void o.replaceBlocks(n.getSelectedBlockClientIds(),[B,I]);let E;const M=[],P=[...e],R=P.shift(),A=(0,p.getBlockType)(B.name),N=A.merge&&R.name===A.name?[R]:(0,p.switchToBlockType)(R,A.name);if(N?.length){const e=N.shift();B={...B,attributes:{...B.attributes,...A.merge(B.attributes,e.attributes)}},M.push(B),E={clientId:B.clientId,attributeKey:k,offset:(0,pe.create)({html:B.attributes[k]}).text.length},P.unshift(...N)}else(0,p.isUnmodifiedBlock)(B)||M.push(B),M.push(R);const L=P.pop(),D=(0,p.getBlockType)(I.name);if(P.length&&M.push(...P),L){const e=D.merge&&D.name===L.name?[L]:(0,p.switchToBlockType)(L,D.name);if(e?.length){const t=e.pop();M.push({...I,attributes:{...I.attributes,...D.merge(t.attributes,I.attributes)}}),M.push(...e),E={clientId:I.clientId,attributeKey:v,offset:(0,pe.create)({html:t.attributes[v]}).text.length}}else M.push(L),(0,p.isUnmodifiedBlock)(I)||M.push(I)}else(0,p.isUnmodifiedBlock)(I)||M.push(I);t.batch((()=>{o.replaceBlocks(n.getSelectedBlockClientIds(),M,M.length-1,0),E&&o.selectionChange(E.clientId,E.attributeKey,E.offset,E.offset)}))},Zr=()=>({select:e,dispatch:t})=>{const n=e.getSelectionStart(),o=e.getSelectionEnd();t.selectionChange({start:{clientId:n.clientId},end:{clientId:o.clientId}})},qr=(e,t)=>({registry:n,select:o,dispatch:r})=>{const i=e,s=t,l=o.getBlock(i),a=(0,p.getBlockType)(l.name);if(!a||"disabled"===o.getBlockEditingMode(i)||"disabled"===o.getBlockEditingMode(s))return;const c=o.getBlock(s);if(!a.merge&&(0,p.getBlockSupport)(l.name,"__experimentalOnMerge")){const e=(0,p.switchToBlockType)(c,a.name);if(1!==e?.length)return void r.selectBlock(l.clientId);const[t]=e;return t.innerBlocks.length<1?void r.selectBlock(l.clientId):void n.batch((()=>{r.insertBlocks(t.innerBlocks,void 0,i),r.removeBlock(s),r.selectBlock(t.innerBlocks[0].clientId);const e=o.getNextBlockClientId(i);if(e&&o.getBlockName(i)===o.getBlockName(e)){const t=o.getBlockAttributes(i),n=o.getBlockAttributes(e);Object.keys(t).every((e=>t[e]===n[e]))&&(r.moveBlocksToPosition(o.getBlockOrder(e),e,i),r.removeBlock(e,!1))}}))}if((0,p.isUnmodifiedDefaultBlock)(l))return void r.removeBlock(i,o.isBlockSelected(i));if((0,p.isUnmodifiedDefaultBlock)(c))return void r.removeBlock(s,o.isBlockSelected(s));if(!a.merge)return void((0,p.isUnmodifiedBlock)(c,"content")?r.removeBlock(s,o.isBlockSelected(s)):r.selectBlock(l.clientId));const u=(0,p.getBlockType)(c.name),{clientId:d,attributeKey:h,offset:g}=o.getSelectionStart(),m=(d===i?a:u).attributes[h],f=(d===i||d===s)&&void 0!==h&&void 0!==g&&!!m;m||("number"==typeof h?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 h):window.console.error("The RichText identifier prop does not match any attributes defined by the block."));const b=(0,p.cloneBlock)(l),k=(0,p.cloneBlock)(c);if(f){const e=d===i?b:k,t=e.attributes[h],n=(0,pe.insert)((0,pe.create)({html:t}),gr,g,g);e.attributes[h]=(0,pe.toHTMLString)({value:n})}const v=l.name===c.name?[k]:(0,p.switchToBlockType)(k,l.name);if(!v||!v.length)return;const _=a.merge(b.attributes,v[0].attributes);if(f){const e=mr(_),t=_[e],n=(0,pe.create)({html:t}),o=n.text.indexOf(gr),i=(0,pe.remove)(n,o,o+1),s=(0,pe.toHTMLString)({value:i});_[e]=s,r.selectionChange(l.clientId,e,o,o)}r.replaceBlocks([l.clientId,c.clientId],[{...l,attributes:{...l.attributes,..._}},...v.slice(1)],0)},Yr=(e,t=!0)=>Zo(e,t);function Xr(e,t){return Yr([e],t)}function Qr(e,t,n=!1,o=0){return{type:"REPLACE_INNER_BLOCKS",rootClientId:e,blocks:t,updateSelection:n,initialPosition:n?o:null,time:Date.now()}}function Jr(e){return{type:"TOGGLE_BLOCK_MODE",clientId:e}}function ei(){return{type:"START_TYPING"}}function ti(){return{type:"STOP_TYPING"}}function ni(e=[]){return{type:"START_DRAGGING_BLOCKS",clientIds:e}}function oi(){return{type:"STOP_DRAGGING_BLOCKS"}}function ri(){return I()('wp.data.dispatch( "core/block-editor" ).enterFormattedText',{since:"6.1",version:"6.3"}),{type:"DO_NOTHING"}}function ii(){return I()('wp.data.dispatch( "core/block-editor" ).exitFormattedText',{since:"6.1",version:"6.3"}),{type:"DO_NOTHING"}}function si(e,t,n,o){return"string"==typeof e?{type:"SELECTION_CHANGE",clientId:e,attributeKey:t,startOffset:n,endOffset:o}:{type:"SELECTION_CHANGE",...e}}const li=(e,t,n)=>({dispatch:o})=>{const r=(0,p.getDefaultBlockName)();if(!r)return;const i=(0,p.createBlock)(r,e);return o.insertBlock(i,n,t)};function ai(e,t){return{type:"UPDATE_BLOCK_LIST_SETTINGS",clientId:e,settings:t}}function ci(e){return $o(e,{stripExperimentalSettings:!0})}function ui(e,t){return{type:"SAVE_REUSABLE_BLOCK_SUCCESS",id:e,updatedId:t}}function di(){return{type:"MARK_LAST_CHANGE_AS_PERSISTENT"}}function pi(){return{type:"MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"}}const hi=()=>({dispatch:e})=>{e({type:"MARK_AUTOMATIC_CHANGE"});const{requestIdleCallback:t=e=>setTimeout(e,100)}=window;t((()=>{e({type:"MARK_AUTOMATIC_CHANGE_FINAL"})}))},gi=e=>({registry:t})=>{t.dispatch(hr.store).set("core","editorTool",e),"navigation"===e?(0,Uo.speak)((0,T.__)("You are currently in Write mode.")):"edit"===e&&(0,Uo.speak)((0,T.__)("You are currently in Design mode."))};function mi(){return I()('wp.data.dispatch( "core/block-editor" ).setBlockMovingClientId',{since:"6.7",hint:"Block moving mode feature has been removed"}),{type:"DO_NOTHING"}}const fi=(e,t=!0)=>({select:n,dispatch:o})=>{if(!e||!e.length)return;const r=n.getBlocksByClientId(e);if(r.some((e=>!e)))return;if(r.map((e=>e.name)).some((e=>!(0,p.hasBlockSupport)(e,"multiple",!0))))return;const i=n.getBlockRootClientId(e[0]),s=br(e),l=n.getBlockIndex(s[s.length-1]),a=r.map((e=>(0,p.__experimentalCloneSanitizedBlock)(e)));return o.insertBlocks(a,l+1,i,t),a.length>1&&t&&o.multiSelect(a[0].clientId,a[a.length-1].clientId),a.map((e=>e.clientId))},bi=e=>({select:t,dispatch:n})=>{if(!e)return;const o=t.getBlockRootClientId(e);if(t.getTemplateLock(o))return;const r=t.getBlockIndex(e),i=o?t.getDirectInsertBlock(o):null;if(!i)return n.insertDefaultBlock({},o,r);const s={};if(i.attributesToCopy){const n=t.getBlockAttributes(e);i.attributesToCopy.forEach((e=>{n[e]&&(s[e]=n[e])}))}const l=(0,p.createBlock)(i.name,{...i.attributes,...s});return n.insertBlock(l,r,o)},ki=e=>({select:t,dispatch:n})=>{if(!e)return;const o=t.getBlockRootClientId(e);if(t.getTemplateLock(o))return;const r=t.getBlockIndex(e),i=o?t.getDirectInsertBlock(o):null;if(!i)return n.insertDefaultBlock({},o,r+1);const s={};if(i.attributesToCopy){const n=t.getBlockAttributes(e);i.attributesToCopy.forEach((e=>{n[e]&&(s[e]=n[e])}))}const l=(0,p.createBlock)(i.name,{...i.attributes,...s});return n.insertBlock(l,r+1,o)};function vi(e,t){return{type:"TOGGLE_BLOCK_HIGHLIGHT",clientId:e,isHighlighted:t}}const _i=(e,t=150)=>async({dispatch:n})=>{n(vi(e,!0)),await new Promise((e=>setTimeout(e,t))),n(vi(e,!1))};function yi(e,t){return{type:"SET_HAS_CONTROLLED_INNER_BLOCKS",hasControlledInnerBlocks:t,clientId:e}}function xi(e){return{type:"SET_BLOCK_VISIBILITY",updates:e}}function Si(e,t){return{type:"SET_TEMPORARILY_EDITING_AS_BLOCKS",temporarilyEditingAsBlocks:e,focusModeToRevert:t}}const wi=e=>({select:t,dispatch:n})=>{if(!e||"object"!=typeof e)return void console.error("Category should be an `InserterMediaCategory` object.");if(!e.name)return void console.error("Category should have a `name` that should be unique among all media categories.");if(!e.labels?.name)return void console.error("Category should have a `labels.name`.");if(!["image","audio","video"].includes(e.mediaType))return void console.error("Category should have `mediaType` property that is one of `image|audio|video`.");if(!e.fetch||"function"!=typeof e.fetch)return void console.error("Category should have a `fetch` function defined with the following signature `(InserterMediaRequest) => Promise<InserterMediaItem[]>`.");const o=t.getRegisteredInserterMediaCategories();o.some((({name:t})=>t===e.name))?console.error(`A category is already registered with the same name: "${e.name}".`):o.some((({labels:{name:t}={}})=>t===e.labels?.name))?console.error(`A category is already registered with the same labels.name: "${e.labels.name}".`):n({type:"REGISTER_INSERTER_MEDIA_CATEGORY",category:{...e,isExternalResource:!0}})};function Ci(e="",t){return{type:"SET_BLOCK_EDITING_MODE",clientId:e,mode:t}}function Bi(e=""){return{type:"UNSET_BLOCK_EDITING_MODE",clientId:e}}const Ii={reducer:ce,selectors:t,actions:i},ji=(0,g.createReduxStore)(ge,{...Ii,persist:["preferences"]}),Ei=(0,g.registerStore)(ge,{...Ii,persist:["preferences"]});function Ti(...e){const{clientId:t=null}=C();return(0,g.useSelect)((n=>G(n(ji)).getBlockSettings(t,...e)),[t,...e])}function Mi(e){I()("wp.blockEditor.useSetting",{since:"6.5",alternative:"wp.blockEditor.useSettings",note:"The new useSettings function can retrieve multiple settings at once, with better performance."});const[t]=Ti(e);return t}G(Ei).registerPrivateActions(r),G(Ei).registerPrivateSelectors(e),G(ji).registerPrivateActions(r),G(ji).registerPrivateSelectors(e);const Pi=window.wp.styleEngine,Ri="1600px",Ai="320px",Ni=1,Li=.25,Di=.75,Oi="14px";function zi({minimumFontSize:e,maximumFontSize:t,fontSize:n,minimumViewportWidth:o=Ai,maximumViewportWidth:r=Ri,scaleFactor:i=Ni,minimumFontSizeLimit:s}){if(s=Vi(s)?s:Oi,n){const o=Vi(n);if(!o?.unit)return null;const r=Vi(s,{coerceTo:o.unit});if(r?.value&&!e&&!t&&o?.value<=r?.value)return null;if(t||(t=`${o.value}${o.unit}`),!e){const t="px"===o.unit?o.value:16*o.value,n=Math.min(Math.max(1-.075*Math.log2(t),Li),Di),i=Fi(o.value*n,3);e=r?.value&&i<r?.value?`${r.value}${r.unit}`:`${i}${o.unit}`}}const l=Vi(e),a=l?.unit||"rem",c=Vi(t,{coerceTo:a});if(!l||!c)return null;const u=Vi(e,{coerceTo:"rem"}),d=Vi(r,{coerceTo:a}),p=Vi(o,{coerceTo:a});if(!d||!p||!u)return null;const h=d.value-p.value;if(!h)return null;const g=Fi(p.value/100,3),m=Fi(g,3)+a,f=Fi(((c.value-l.value)/h*100||1)*i,3);return`clamp(${e}, ${`${u.value}${u.unit} + ((1vw - ${m}) * ${f})`}, ${t})`}function Vi(e,t={}){if("string"!=typeof e&&"number"!=typeof e)return null;isFinite(e)&&(e=`${e}px`);const{coerceTo:n,rootSizeValue:o,acceptableUnits:r}={coerceTo:"",rootSizeValue:16,acceptableUnits:["rem","px","em"],...t},i=r?.join("|"),s=new RegExp(`^(\\d*\\.?\\d+)(${i}){1,1}$`),l=e.match(s);if(!l||l.length<3)return null;let[,a,c]=l,u=parseFloat(a);return"px"!==n||"em"!==c&&"rem"!==c||(u*=o,c=n),"px"!==c||"em"!==n&&"rem"!==n||(u/=o,c=n),"em"!==n&&"rem"!==n||"em"!==c&&"rem"!==c||(c=n),{value:Fi(u,3),unit:c}}function Fi(e,t=3){const n=Math.pow(10,t);return Number.isFinite(e)?parseFloat(Math.round(e*n)/n):void 0}function Hi(e){if(!e)return{};if("object"==typeof e)return e;let t;switch(e){case"normal":case"400":t=(0,T._x)("Regular","font weight");break;case"bold":case"700":t=(0,T._x)("Bold","font weight");break;case"100":t=(0,T._x)("Thin","font weight");break;case"200":t=(0,T._x)("Extra Light","font weight");break;case"300":t=(0,T._x)("Light","font weight");break;case"500":t=(0,T._x)("Medium","font weight");break;case"600":t=(0,T._x)("Semi Bold","font weight");break;case"800":t=(0,T._x)("Extra Bold","font weight");break;case"900":t=(0,T._x)("Black","font weight");break;case"1000":t=(0,T._x)("Extra Black","font weight");break;default:t=e}return{name:t,value:e}}const Ui=[{name:(0,T._x)("Regular","font style"),value:"normal"},{name:(0,T._x)("Italic","font style"),value:"italic"}],Gi=[{name:(0,T._x)("Thin","font weight"),value:"100"},{name:(0,T._x)("Extra Light","font weight"),value:"200"},{name:(0,T._x)("Light","font weight"),value:"300"},{name:(0,T._x)("Regular","font weight"),value:"400"},{name:(0,T._x)("Medium","font weight"),value:"500"},{name:(0,T._x)("Semi Bold","font weight"),value:"600"},{name:(0,T._x)("Bold","font weight"),value:"700"},{name:(0,T._x)("Extra Bold","font weight"),value:"800"},{name:(0,T._x)("Black","font weight"),value:"900"},{name:(0,T._x)("Extra Black","font weight"),value:"1000"}];function $i(e){let t=[],n=[];const o=[],r=!e||0===e?.length;let i=!1;return e?.forEach((e=>{if("string"==typeof e.fontWeight&&/\s/.test(e.fontWeight.trim())){i=!0;let[t,o]=e.fontWeight.split(" ");t=parseInt(t.slice(0,1)),o="1000"===o?10:parseInt(o.slice(0,1));for(let e=t;e<=o;e++){const t=`${e.toString()}00`;n.some((e=>e.value===t))||n.push(Hi(t))}}const o=Hi("number"==typeof e.fontWeight?e.fontWeight.toString():e.fontWeight),r=function(e){if(!e)return{};if("object"==typeof e)return e;let t;switch(e){case"normal":t=(0,T._x)("Regular","font style");break;case"italic":t=(0,T._x)("Italic","font style");break;case"oblique":t=(0,T._x)("Oblique","font style");break;default:t=e}return{name:t,value:e}}(e.fontStyle);r&&Object.keys(r).length&&(t.some((e=>e.value===r.value))||t.push(r)),o&&Object.keys(o).length&&(n.some((e=>e.value===o.value))||i||n.push(o))})),n.some((e=>e.value>="600"))||n.push({name:(0,T._x)("Bold","font weight"),value:"700"}),t.some((e=>"italic"===e.value))||t.push({name:(0,T._x)("Italic","font style"),value:"italic"}),r&&(t=Ui,n=Gi),t=0===t.length?Ui:t,n=0===n.length?Gi:n,t.forEach((({name:e,value:t})=>{n.forEach((({name:n,value:r})=>{const i="normal"===t?n:(0,T.sprintf)((0,T._x)("%1$s %2$s","font"),n,e);o.push({key:`${t}-${r}`,name:i,style:{fontStyle:t,fontWeight:r}})}))})),{fontStyles:t,fontWeights:n,combinedStyleAndWeightOptions:o,isSystemFont:r,isVariableFont:i}}function Wi(e,t){const{size:n}=e;if(!n||"0"===n||!1===e?.fluid)return n;if(!Ki(t?.typography)&&!Ki(e))return n;let o=function(e){const t=e?.typography,n=e?.layout,o=Vi(n?.wideSize)?n?.wideSize:null;return Ki(t)&&o?{fluid:{maxViewportWidth:o,...t.fluid}}:{fluid:t?.fluid}}(t);o="object"==typeof o?.fluid?o?.fluid:{};const r=zi({minimumFontSize:e?.fluid?.min,maximumFontSize:e?.fluid?.max,fontSize:n,minimumFontSizeLimit:o?.minFontSize,maximumViewportWidth:o?.maxViewportWidth,minimumViewportWidth:o?.minViewportWidth});return r||n}function Ki(e){const t=e?.fluid;return!0===t||t&&"object"==typeof t&&Object.keys(t).length>0}function Zi(e,t){if(!(t="number"==typeof t?t.toString():t)||"string"!=typeof t)return"";if(!e||0===e.length)return t;const n=e?.reduce(((e,{value:n})=>Math.abs(parseInt(n)-parseInt(t))<Math.abs(parseInt(e)-parseInt(t))?n:e),e[0]?.value);return n}const qi="body",Yi=":root",Xi=[{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:["color","duotone"],valueKey:"colors",cssVarInfix:"duotone",valueFunc:({slug:e})=>`url( '#wp-duotone-${e}' )`,classes:[]},{path:["shadow","presets"],valueKey:"shadow",cssVarInfix:"shadow",classes:[]},{path:["typography","fontSizes"],valueFunc:(e,t)=>Wi(e,t),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"}]},{path:["spacing","spacingSizes"],valueKey:"size",cssVarInfix:"spacing",classes:[]},{path:["border","radiusSizes"],valueKey:"size",cssVarInfix:"border-radius",classes:[]}],Qi={"color.background":"color","color.text":"color","filter.duotone":"duotone","elements.link.color.text":"color","elements.link.:hover.color.text":"color","elements.link.typography.fontFamily":"font-family","elements.link.typography.fontSize":"font-size","elements.button.color.text":"color","elements.button.color.background":"color","elements.caption.color.text":"color","elements.button.typography.fontFamily":"font-family","elements.button.typography.fontSize":"font-size","elements.heading.color":"color","elements.heading.color.background":"color","elements.heading.typography.fontFamily":"font-family","elements.heading.gradient":"gradient","elements.heading.color.gradient":"gradient","elements.h1.color":"color","elements.h1.color.background":"color","elements.h1.typography.fontFamily":"font-family","elements.h1.color.gradient":"gradient","elements.h2.color":"color","elements.h2.color.background":"color","elements.h2.typography.fontFamily":"font-family","elements.h2.color.gradient":"gradient","elements.h3.color":"color","elements.h3.color.background":"color","elements.h3.typography.fontFamily":"font-family","elements.h3.color.gradient":"gradient","elements.h4.color":"color","elements.h4.color.background":"color","elements.h4.typography.fontFamily":"font-family","elements.h4.color.gradient":"gradient","elements.h5.color":"color","elements.h5.color.background":"color","elements.h5.typography.fontFamily":"font-family","elements.h5.color.gradient":"gradient","elements.h6.color":"color","elements.h6.color.background":"color","elements.h6.typography.fontFamily":"font-family","elements.h6.color.gradient":"gradient","color.gradient":"gradient",shadow:"shadow","typography.fontSize":"font-size","typography.fontFamily":"font-family"};function Ji(){return(0,m.useViewportMatch)("medium","<")?{}:{popoverProps:{placement:"left-start",offset:259}}}function es(e,t,n,o,r){const i=[fe(e,["blocks",t,...n]),fe(e,n)];for(const s of i)if(s){const i=["custom","theme","default"];for(const l of i){const i=s[l];if(i){const s=i.find((e=>e[o]===r));if(s){if("slug"===o)return s;return es(e,t,n,"slug",s.slug)[o]===s[o]?s:void 0}}}}}function ts(e,t,n){if(!n||"string"!=typeof n){if("string"!=typeof n?.ref)return n;if(!(n=fe(e,n.ref))||n?.ref)return n}const o="var:",r="var(--wp--";let i;if(n.startsWith(o))i=n.slice(4).split("|");else{if(!n.startsWith(r)||!n.endsWith(")"))return n;i=n.slice(10,-1).split("--")}const[s,...l]=i;return"preset"===s?function(e,t,n,[o,r]){const i=Xi.find((e=>e.cssVarInfix===o));if(!i)return n;const s=es(e.settings,t,i.path,"slug",r);if(s){const{valueKey:n}=i;return ts(e,t,s[n])}return n}(e,t,n,l):"custom"===s?function(e,t,n,o){const r=fe(e.settings,["blocks",t,"custom",...o])??fe(e.settings,["custom",...o]);return r?ts(e,t,r):n}(e,t,n,l):n}function ns(e,t){if(!e||!t)return t;const n=e.split(","),o=t.split(","),r=[];return n.forEach((e=>{o.forEach((t=>{r.push(`${e.trim()} ${t.trim()}`)}))})),r.join(", ")}function os(e,t){return"object"!=typeof e||"object"!=typeof t?e===t:E()(e?.styles,t?.styles)&&E()(e?.settings,t?.settings)}function rs(e,t){if(!e||!t)return e;const n=function(e,t){if(!e||!t)return e;if("string"!=typeof e&&e?.ref){const n=(0,Pi.getCSSValueFromRawStyle)(fe(t,e.ref));if(n?.ref)return;return void 0===n?e:n}return e}(e,t);return n?.url&&(n.url=function(e,t){if(!e||!t||!Array.isArray(t))return e;const n=t.find((t=>t?.name===e));return n?.href?n?.href:e}(n.url,t?._links?.["wp:theme-file"])),n}const is=(0,h.createContext)({user:{},base:{},merged:{},setUserConfig:()=>{}});is.displayName="GlobalStylesContext";const ss={settings:{},styles:{}},ls=["appearanceTools","useRootPaddingAwareAlignments","background.backgroundImage","background.backgroundRepeat","background.backgroundSize","background.backgroundPosition","border.color","border.radius","border.style","border.width","border.radiusSizes","shadow.presets","shadow.defaultPresets","color.background","color.button","color.caption","color.custom","color.customDuotone","color.customGradient","color.defaultDuotone","color.defaultGradients","color.defaultPalette","color.duotone","color.gradients","color.heading","color.link","color.palette","color.text","custom","dimensions.aspectRatio","dimensions.minHeight","layout.contentSize","layout.definitions","layout.wideSize","lightbox.enabled","lightbox.allowEditing","position.fixed","position.sticky","spacing.customSpacingSize","spacing.defaultSpacingSizes","spacing.spacingSizes","spacing.spacingScale","spacing.blockGap","spacing.margin","spacing.padding","spacing.units","typography.fluid","typography.customFontSize","typography.defaultFontSizes","typography.dropCap","typography.fontFamilies","typography.fontSizes","typography.fontStyle","typography.fontWeight","typography.letterSpacing","typography.lineHeight","typography.textAlign","typography.textColumns","typography.textDecoration","typography.textTransform","typography.writingMode"],as=()=>{const{user:e,setUserConfig:t}=(0,h.useContext)(is),n={settings:e.settings,styles:e.styles};return[!!n&&!E()(n,ss),(0,h.useCallback)((()=>t(ss)),[t])]};function cs(e,t,n="all"){const{setUserConfig:o,...r}=(0,h.useContext)(is),i=t?".blocks."+t:"",s=e?"."+e:"",l=`settings${i}${s}`,a=`settings${s}`,c="all"===n?"merged":n;return[(0,h.useMemo)((()=>{const t=r[c];if(!t)throw"Unsupported source";if(e)return fe(t,l)??fe(t,a);let n={};return ls.forEach((e=>{const o=fe(t,`settings${i}.${e}`)??fe(t,`settings.${e}`);void 0!==o&&(n=me(n,e.split("."),o))})),n}),[r,c,e,l,a,i]),e=>{o((t=>me(t,l.split("."),e)))}]}function us(e,t,n="all",{shouldDecodeEncode:o=!0}={}){const{merged:r,base:i,user:s,setUserConfig:l}=(0,h.useContext)(is),a=e?"."+e:"",c=t?`styles.blocks.${t}${a}`:`styles${a}`;let u,d;switch(n){case"all":u=fe(r,c),d=o?ts(r,t,u):u;break;case"user":u=fe(s,c),d=o?ts(r,t,u):u;break;case"base":u=fe(i,c),d=o?ts(i,t,u):u;break;default:throw"Unsupported source"}return[d,n=>{l((i=>me(i,c.split("."),o?function(e,t,n,o){if(!o)return o;const r=Qi[n],i=Xi.find((e=>e.cssVarInfix===r));if(!i)return o;const{valueKey:s,path:l}=i,a=es(e,t,l,s,o);return a?`var:preset|${r}|${a.slug}`:o}(r.settings,t,e,n):n)))}]}function ds(e,t,n){const{supportedStyles:o,supports:r}=(0,g.useSelect)((e=>({supportedStyles:G(e(p.store)).getSupportedStyles(t,n),supports:e(p.store).getBlockType(t)?.supports})),[t,n]);return(0,h.useMemo)((()=>{const t={...e};return o.includes("fontSize")||(t.typography={...t.typography,fontSizes:{},customFontSize:!1,defaultFontSizes:!1}),o.includes("fontFamily")||(t.typography={...t.typography,fontFamilies:{}}),t.color={...t.color,text:t.color?.text&&o.includes("color"),background:t.color?.background&&(o.includes("background")||o.includes("backgroundColor")),button:t.color?.button&&o.includes("buttonColor"),heading:t.color?.heading&&o.includes("headingColor"),link:t.color?.link&&o.includes("linkColor"),caption:t.color?.caption&&o.includes("captionColor")},o.includes("background")||(t.color.gradients=[],t.color.customGradient=!1),o.includes("filter")||(t.color.defaultDuotone=!1,t.color.customDuotone=!1),["lineHeight","fontStyle","fontWeight","letterSpacing","textAlign","textTransform","textDecoration","writingMode"].forEach((e=>{o.includes(e)||(t.typography={...t.typography,[e]:!1})})),o.includes("columnCount")||(t.typography={...t.typography,textColumns:!1}),["contentSize","wideSize"].forEach((e=>{o.includes(e)||(t.layout={...t.layout,[e]:!1})})),["padding","margin","blockGap"].forEach((e=>{o.includes(e)||(t.spacing={...t.spacing,[e]:!1});const n=Array.isArray(r?.spacing?.[e])?r?.spacing?.[e]:r?.spacing?.[e]?.sides;n?.length&&t.spacing?.[e]&&(t.spacing={...t.spacing,[e]:{...t.spacing?.[e],sides:n}})})),["aspectRatio","minHeight"].forEach((e=>{o.includes(e)||(t.dimensions={...t.dimensions,[e]:!1})})),["radius","color","style","width"].forEach((e=>{o.includes("border"+e.charAt(0).toUpperCase()+e.slice(1))||(t.border={...t.border,[e]:!1})})),["backgroundImage","backgroundSize"].forEach((e=>{o.includes(e)||(t.background={...t.background,[e]:!1})})),t.shadow=!!o.includes("shadow")&&t.shadow,n&&(t.typography.textAlign=!1),t}),[e,o,r,n])}function ps(e){const t=e?.color?.palette?.custom,n=e?.color?.palette?.theme,o=e?.color?.palette?.default,r=e?.color?.defaultPalette;return(0,h.useMemo)((()=>{const e=[];return n&&n.length&&e.push({name:(0,T._x)("Theme","Indicates this palette comes from the theme."),colors:n}),r&&o&&o.length&&e.push({name:(0,T._x)("Default","Indicates this palette comes from WordPress."),colors:o}),t&&t.length&&e.push({name:(0,T._x)("Custom","Indicates this palette is created by the user."),colors:t}),e}),[t,n,o,r])}function hs(e){const t=e?.color?.gradients?.custom,n=e?.color?.gradients?.theme,o=e?.color?.gradients?.default,r=e?.color?.defaultGradients;return(0,h.useMemo)((()=>{const e=[];return n&&n.length&&e.push({name:(0,T._x)("Theme","Indicates this palette comes from the theme."),gradients:n}),r&&o&&o.length&&e.push({name:(0,T._x)("Default","Indicates this palette comes from WordPress."),gradients:o}),t&&t.length&&e.push({name:(0,T._x)("Custom","Indicates this palette is created by the user."),gradients:t}),e}),[t,n,o,r])}function gs(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=gs(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}const ms=function(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=gs(e))&&(o&&(o+=" "),o+=t);return o},fs=e=>{if(null===e||"object"!=typeof e||Array.isArray(e))return e;const t=Object.entries(e).map((([e,t])=>[e,fs(t)])).filter((([,e])=>void 0!==e));return t.length?Object.fromEntries(t):void 0};function bs(e,t,n,o,r,i){if(Object.values(e??{}).every((e=>!e)))return n;if(1===i.length&&n.innerBlocks.length===o.length)return n;let s=o[0]?.attributes;if(i.length>1&&o.length>1){if(!o[r])return n;s=o[r]?.attributes}let l=n;return Object.entries(e).forEach((([e,n])=>{n&&t[e].forEach((e=>{const t=fe(s,e);t&&(l={...l,attributes:me(l.attributes,e,t)})}))})),l}function ks(e,t,n){const o=(0,p.getBlockSupport)(e,t),r=o?.__experimentalSkipSerialization;return Array.isArray(r)?r.includes(n):r}const vs=new WeakMap;function _s({id:e,css:t}){return ys({id:e,css:t})}function ys({id:e,css:t,assets:n,__unstableType:o,variation:r,clientId:i}={}){const{setStyleOverride:s,deleteStyleOverride:l}=G((0,g.useDispatch)(ji)),a=(0,g.useRegistry)(),c=(0,h.useId)();(0,h.useEffect)((()=>{if(!t&&!n)return;const u=e||c,d={id:e,css:t,assets:n,__unstableType:o,variation:r,clientId:i};return vs.get(a)||vs.set(a,[]),vs.get(a).push([u,d]),window.queueMicrotask((()=>{vs.get(a)?.length&&a.batch((()=>{vs.get(a).forEach((e=>{s(...e)})),vs.set(a,[])}))})),()=>{const e=vs.get(a)?.find((([e])=>e===u));e?vs.set(a,vs.get(a).filter((([e])=>e!==u))):l(u)}}),[e,t,i,n,o,c,s,l,a])}function xs(e,t){const[n,o,r,i,s,l,a,c,u,d,p,g,m,f,b,k,v,_,y,x,S,w,C,B,I,j,E,T,M,P,R,A,N,L,D,O,z,V,F,H,U,G,$,W,K,Z,q,Y,X,Q,J,ee,te,ne,oe,re,ie]=Ti("background.backgroundImage","background.backgroundSize","typography.fontFamilies.custom","typography.fontFamilies.default","typography.fontFamilies.theme","typography.defaultFontSizes","typography.fontSizes.custom","typography.fontSizes.default","typography.fontSizes.theme","typography.customFontSize","typography.fontStyle","typography.fontWeight","typography.lineHeight","typography.textAlign","typography.textColumns","typography.textDecoration","typography.writingMode","typography.textTransform","typography.letterSpacing","spacing.padding","spacing.margin","spacing.blockGap","spacing.defaultSpacingSizes","spacing.customSpacingSize","spacing.spacingSizes.custom","spacing.spacingSizes.default","spacing.spacingSizes.theme","spacing.units","dimensions.aspectRatio","dimensions.minHeight","layout","border.color","border.radius","border.style","border.width","border.radiusSizes","color.custom","color.palette.custom","color.customDuotone","color.palette.theme","color.palette.default","color.defaultPalette","color.defaultDuotone","color.duotone.custom","color.duotone.theme","color.duotone.default","color.gradients.custom","color.gradients.theme","color.gradients.default","color.defaultGradients","color.customGradient","color.background","color.link","color.text","color.heading","color.button","shadow");return ds((0,h.useMemo)((()=>({background:{backgroundImage:n,backgroundSize:o},color:{palette:{custom:V,theme:H,default:U},gradients:{custom:q,theme:Y,default:X},duotone:{custom:W,theme:K,default:Z},defaultGradients:Q,defaultPalette:G,defaultDuotone:$,custom:z,customGradient:J,customDuotone:F,background:ee,link:te,heading:oe,button:re,text:ne},typography:{fontFamilies:{custom:r,default:i,theme:s},fontSizes:{custom:a,default:c,theme:u},customFontSize:d,defaultFontSizes:l,fontStyle:p,fontWeight:g,lineHeight:m,textAlign:f,textColumns:b,textDecoration:k,textTransform:_,letterSpacing:y,writingMode:v},spacing:{spacingSizes:{custom:I,default:j,theme:E},customSpacingSize:B,defaultSpacingSizes:C,padding:x,margin:S,blockGap:w,units:T},border:{color:A,radius:N,style:L,width:D,radiusSizes:O},dimensions:{aspectRatio:M,minHeight:P},layout:R,parentLayout:t,shadow:ie})),[n,o,r,i,s,l,a,c,u,d,p,g,m,f,b,k,_,y,v,x,S,w,C,B,I,j,E,T,M,P,R,t,A,N,L,D,O,z,V,F,H,U,G,$,W,K,Z,q,Y,X,Q,J,ee,te,ne,oe,re,ie]),e)}const Ss=(0,h.memo)((function({index:e,useBlockProps:t,setAllWrapperProps:n,...o}){const r=t(o),i=t=>n((n=>{const o=[...n];return o[e]=t,o}));return(0,h.useEffect)((()=>(i(r),()=>{i(void 0)}))),null}));(0,f.addFilter)("blocks.registerBlockType","core/compat/migrateLightBlockWrapper",(function(e){const{apiVersion:t=1}=e;return t<2&&(0,p.hasBlockSupport)(e,"lightBlockWrapper",!1)&&(e.apiVersion=2),e}));const ws=window.wp.components;var Cs={default:(0,ws.createSlotFill)("BlockControls"),block:(0,ws.createSlotFill)("BlockControlsBlock"),inline:(0,ws.createSlotFill)("BlockFormatControls"),other:(0,ws.createSlotFill)("BlockControlsOther"),parent:(0,ws.createSlotFill)("BlockControlsParent")};function Bs({group:e="default",controls:t,children:n,__experimentalShareWithChildBlocks:o=!1}){const r=function(e,t){const n=C();return n[b]?Cs[e]?.Fill:n[k]&&t?Cs.parent.Fill:null}(e,o);if(!r)return null;const i=(0,d.jsxs)(d.Fragment,{children:["default"===e&&(0,d.jsx)(ws.ToolbarGroup,{controls:t}),n]});return(0,d.jsx)(ws.__experimentalStyleProvider,{document,children:(0,d.jsx)(r,{children:e=>{const{forwardedContext:t=[]}=e;return t.reduce(((e,[t,n])=>(0,d.jsx)(t,{...n,children:e})),i)}})})}const Is=window.wp.warning;var js=n.n(Is);const{ComponentsContext:Es}=G(ws.privateApis);function Ts({group:e="default",...t}){const n=(0,h.useContext)(ws.__experimentalToolbarContext),o=(0,h.useContext)(Es),r=(0,h.useMemo)((()=>({forwardedContext:[[ws.__experimentalToolbarContext.Provider,{value:n}],[Es.Provider,{value:o}]]})),[n,o]),i=Cs[e],s=(0,ws.__experimentalUseSlotFills)(i.name);if(!i)return js()(`Unknown BlockControls group "${e}" provided.`),null;if(!s?.length)return null;const{Slot:l}=i,a=(0,d.jsx)(l,{...t,bubblesVirtually:!0,fillProps:r});return"default"===e?a:(0,d.jsx)(ws.ToolbarGroup,{children:a})}const Ms=Bs;Ms.Slot=Ts;const Ps=e=>(0,d.jsx)(Bs,{group:"inline",...e});Ps.Slot=e=>(0,d.jsx)(Ts,{group:"inline",...e});var Rs=Ms,As=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"M9 9v6h11V9H9zM4 20h1.5V4H4v16z"})}),Ns=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"M12.5 15v5H11v-5H4V9h7V4h1.5v5h7v6h-7Z"})}),Ls=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"M4 15h11V9H4v6zM18.5 4v16H20V4h-1.5z"})}),Ds=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"M9 15h6V9H9v6zm-5 5h1.5V4H4v16zM18.5 4v16H20V4h-1.5z"})}),Os=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"M4 4H5.5V20H4V4ZM7 10L17 10V14L7 14V10ZM20 4H18.5V20H20V4Z"})}),zs=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"m14.5 6.5-1 1 3.7 3.7H4v1.6h13.2l-3.7 3.7 1 1 5.6-5.5z"})}),Vs=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"m16.5 13.5-3.7 3.7V4h-1.5v13.2l-3.8-3.7-1 1 5.5 5.6 5.5-5.6z"})});const Fs={default:{name:"default",slug:"flow",className:"is-layout-flow",baseStyles:[{selector:" > .alignleft",rules:{float:"left","margin-inline-start":"0","margin-inline-end":"2em"}},{selector:" > .alignright",rules:{float:"right","margin-inline-start":"2em","margin-inline-end":"0"}},{selector:" > .aligncenter",rules:{"margin-left":"auto !important","margin-right":"auto !important"}}],spacingStyles:[{selector:" > :first-child",rules:{"margin-block-start":"0"}},{selector:" > :last-child",rules:{"margin-block-end":"0"}},{selector:" > *",rules:{"margin-block-start":null,"margin-block-end":"0"}}]},constrained:{name:"constrained",slug:"constrained",className:"is-layout-constrained",baseStyles:[{selector:" > .alignleft",rules:{float:"left","margin-inline-start":"0","margin-inline-end":"2em"}},{selector:" > .alignright",rules:{float:"right","margin-inline-start":"2em","margin-inline-end":"0"}},{selector:" > .aligncenter",rules:{"margin-left":"auto !important","margin-right":"auto !important"}},{selector:" > :where(:not(.alignleft):not(.alignright):not(.alignfull))",rules:{"max-width":"var(--wp--style--global--content-size)","margin-left":"auto !important","margin-right":"auto !important"}},{selector:" > .alignwide",rules:{"max-width":"var(--wp--style--global--wide-size)"}}],spacingStyles:[{selector:" > :first-child",rules:{"margin-block-start":"0"}},{selector:" > :last-child",rules:{"margin-block-end":"0"}},{selector:" > *",rules:{"margin-block-start":null,"margin-block-end":"0"}}]},flex:{name:"flex",slug:"flex",className:"is-layout-flex",displayMode:"flex",baseStyles:[{selector:"",rules:{"flex-wrap":"wrap","align-items":"center"}},{selector:" > :is(*, div)",rules:{margin:"0"}}],spacingStyles:[{selector:"",rules:{gap:null}}]},grid:{name:"grid",slug:"grid",className:"is-layout-grid",displayMode:"grid",baseStyles:[{selector:" > :is(*, div)",rules:{margin:"0"}}],spacingStyles:[{selector:"",rules:{gap:null}}]}};function Hs(e,t=""){return e.split(",").map((e=>`${e}${t?` ${t}`:""}`)).join(",")}function Us(e,t=Fs,n,o){let r="";return t?.[n]?.spacingStyles?.length&&o&&t[n].spacingStyles.forEach((t=>{r+=`${Hs(e,t.selector.trim())} { `,r+=Object.entries(t.rules).map((([e,t])=>`${e}: ${t||o}`)).join("; "),r+="; }"})),r}function Gs(e){const{contentSize:t,wideSize:n,type:o="default"}=e,r={},i=/^(?!0)\d+(px|em|rem|vw|vh|%|svw|lvw|dvw|svh|lvh|dvh|vi|svi|lvi|dvi|vb|svb|lvb|dvb|vmin|svmin|lvmin|dvmin|vmax|svmax|lvmax|dvmax)?$/i;return i.test(t)&&"constrained"===o&&(r.none=(0,T.sprintf)((0,T.__)("Max %s wide"),t)),i.test(n)&&(r.wide=(0,T.sprintf)((0,T.__)("Max %s wide"),n)),r}var $s=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z"})}),Ws=(0,d.jsxs)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,d.jsx)(ue.Path,{d:"m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z",style:{opacity:.25}}),(0,d.jsx)(ue.Path,{d:"m4.5 7.5v9h1.5v-9z"}),(0,d.jsx)(ue.Path,{d:"m18 7.5v9h1.5v-9z"})]}),Ks=(0,d.jsxs)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,d.jsx)(ue.Path,{d:"m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z",style:{opacity:.25}}),(0,d.jsx)(ue.Path,{d:"m7.5 6h9v-1.5h-9z"}),(0,d.jsx)(ue.Path,{d:"m7.5 19.5h9v-1.5h-9z"})]}),Zs=(0,d.jsxs)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,d.jsx)(ue.Path,{d:"m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z",style:{opacity:.25}}),(0,d.jsx)(ue.Path,{d:"m16.5 6h-9v-1.5h9z"})]}),qs=(0,d.jsxs)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,d.jsx)(ue.Path,{d:"m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z",style:{opacity:.25}}),(0,d.jsx)(ue.Path,{d:"m18 16.5v-9h1.5v9z"})]}),Ys=(0,d.jsxs)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,d.jsx)(ue.Path,{d:"m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z",style:{opacity:.25}}),(0,d.jsx)(ue.Path,{d:"m16.5 19.5h-9v-1.5h9z"})]}),Xs=(0,d.jsxs)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,d.jsx)(ue.Path,{d:"m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z",style:{opacity:.25}}),(0,d.jsx)(ue.Path,{d:"m4.5 16.5v-9h1.5v9z"})]});const Qs=8,Js=["top","right","bottom","left"],el={top:void 0,right:void 0,bottom:void 0,left:void 0},tl={custom:$s,axial:$s,horizontal:Ws,vertical:Ks,top:Zs,right:qs,bottom:Ys,left:Xs},nl={default:(0,T.__)("Spacing control"),top:(0,T.__)("Top"),bottom:(0,T.__)("Bottom"),left:(0,T.__)("Left"),right:(0,T.__)("Right"),mixed:(0,T.__)("Mixed"),vertical:(0,T.__)("Vertical"),horizontal:(0,T.__)("Horizontal"),axial:(0,T.__)("Horizontal & vertical"),custom:(0,T.__)("Custom")},ol={axial:"axial",top:"top",right:"right",bottom:"bottom",left:"left",custom:"custom"};function rl(e){return!!e?.includes&&("0"===e||e.includes("var:preset|spacing|"))}function il(e,t){if(!rl(e))return e;const n=al(e),o=t.find((e=>String(e.slug)===n));return o?.size}function sl(e,t){if(!e||rl(e)||"0"===e)return e;const n=t.find((t=>String(t.size)===String(e)));return n?.slug?`var:preset|spacing|${n.slug}`:e}function ll(e){if(!e)return;const t=e.match(/var:preset\|spacing\|(.+)/);return t?`var(--wp--preset--spacing--${t[1]})`:e}function al(e){if(!e)return;if("0"===e||"default"===e)return e;const t=e.match(/var:preset\|spacing\|(.+)/);return t?t[1]:void 0}function cl(e,t){if(!e||!e.length)return!1;const n=e.includes("horizontal")||e.includes("left")&&e.includes("right"),o=e.includes("vertical")||e.includes("top")&&e.includes("bottom");return"horizontal"===t?n:"vertical"===t?o:n||o}function ul(e,t="0"){const n=function(e){if(!e)return null;const t="string"==typeof e;return{top:t?e:e?.top,left:t?e:e?.left}}(e);if(!n)return null;const o=ll(n?.top)||t,r=ll(n?.left)||t;return o===r?o:`${o} ${r}`}var dl=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"M9 20h6V9H9v11zM4 4v1.5h16V4H4z"})}),pl=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"M20 11h-5V4H9v7H4v1.5h5V20h6v-7.5h5z"})}),hl=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"M15 4H9v11h6V4zM4 18.5V20h16v-1.5H4z"})}),gl=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"M4 4L20 4L20 5.5L4 5.5L4 4ZM10 7L14 7L14 17L10 17L10 7ZM20 18.5L4 18.5L4 20L20 20L20 18.5Z"})}),ml=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"M7 4H17V8L7 8V4ZM7 16L17 16V20L7 20V16ZM20 11.25H4V12.75H20V11.25Z"})});const fl={top:{icon:dl,title:(0,T._x)("Align top","Block vertical alignment setting")},center:{icon:pl,title:(0,T._x)("Align middle","Block vertical alignment setting")},bottom:{icon:hl,title:(0,T._x)("Align bottom","Block vertical alignment setting")},stretch:{icon:gl,title:(0,T._x)("Stretch to fill","Block vertical alignment setting")},"space-between":{icon:ml,title:(0,T._x)("Space between","Block vertical alignment setting")}},bl=["top","center","bottom"];var kl=function({value:e,onChange:t,controls:n=bl,isCollapsed:o=!0,isToolbar:r}){const i=fl[e],s=fl.top,l=r?ws.ToolbarGroup:ws.ToolbarDropdownMenu,a=r?{isCollapsed:o}:{};return(0,d.jsx)(l,{icon:i?i.icon:s.icon,label:(0,T._x)("Change vertical alignment","Block vertical alignment setting label"),controls:n.map((n=>{return{...fl[n],isActive:e===n,role:o?"menuitemradio":void 0,onClick:(r=n,()=>t(e===r?void 0:r))};var r})),...a})};const vl=e=>(0,d.jsx)(kl,{...e,isToolbar:!1}),_l=e=>(0,d.jsx)(kl,{...e,isToolbar:!0}),yl={left:As,center:Ns,right:Ls,"space-between":Ds,stretch:Os};var xl=function({allowedControls:e=["left","center","right","space-between"],isCollapsed:t=!0,onChange:n,value:o,popoverProps:r,isToolbar:i}){const s=e=>{n(e===o?void 0:e)},l=o?yl[o]:yl.left,a=[{name:"left",icon:As,title:(0,T.__)("Justify items left"),isActive:"left"===o,onClick:()=>s("left")},{name:"center",icon:Ns,title:(0,T.__)("Justify items center"),isActive:"center"===o,onClick:()=>s("center")},{name:"right",icon:Ls,title:(0,T.__)("Justify items right"),isActive:"right"===o,onClick:()=>s("right")},{name:"space-between",icon:Ds,title:(0,T.__)("Space between items"),isActive:"space-between"===o,onClick:()=>s("space-between")},{name:"stretch",icon:Os,title:(0,T.__)("Stretch items"),isActive:"stretch"===o,onClick:()=>s("stretch")}],c=i?ws.ToolbarGroup:ws.ToolbarDropdownMenu,u=i?{isCollapsed:t}:{};return(0,d.jsx)(c,{icon:l,popoverProps:r,label:(0,T.__)("Change items justification"),controls:a.filter((t=>e.includes(t.name))),...u})};const Sl=e=>(0,d.jsx)(xl,{...e,isToolbar:!1}),wl=e=>(0,d.jsx)(xl,{...e,isToolbar:!0}),Cl={left:"flex-start",right:"flex-end",center:"center","space-between":"space-between"},Bl={left:"flex-start",right:"flex-end",center:"center",stretch:"stretch"},Il={top:"flex-start",center:"center",bottom:"flex-end",stretch:"stretch","space-between":"space-between"},jl="center",El="top",Tl=["wrap","nowrap"];var Ml={name:"flex",label:(0,T.__)("Flex"),inspectorControls:function({layout:e={},onChange:t,layoutBlockSupport:n={}}){const{allowOrientation:o=!0,allowJustification:r=!0}=n;return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(ws.Flex,{children:[r&&(0,d.jsx)(ws.FlexItem,{children:(0,d.jsx)(Al,{layout:e,onChange:t})}),o&&(0,d.jsx)(ws.FlexItem,{children:(0,d.jsx)(Ll,{layout:e,onChange:t})})]}),(0,d.jsx)(Nl,{layout:e,onChange:t})]})},toolBarControls:function({layout:e={},onChange:t,layoutBlockSupport:n}){const{allowVerticalAlignment:o=!0,allowJustification:r=!0}=n;return r||o?(0,d.jsxs)(Rs,{group:"block",__experimentalShareWithChildBlocks:!0,children:[r&&(0,d.jsx)(Al,{layout:e,onChange:t,isToolbar:!0}),o&&(0,d.jsx)(Pl,{layout:e,onChange:t})]}):null},getLayoutStyle:function({selector:e,layout:t,style:n,blockName:o,hasBlockGapSupport:r,layoutDefinitions:i=Fs}){const{orientation:s="horizontal"}=t,l=n?.spacing?.blockGap&&!ks(o,"spacing","blockGap")?ul(n?.spacing?.blockGap,"0.5em"):void 0,a=Cl[t.justifyContent],c=Tl.includes(t.flexWrap)?t.flexWrap:"wrap",u=Il[t.verticalAlignment],d=Bl[t.justifyContent]||Bl.left;let p="";const h=[];return c&&"wrap"!==c&&h.push(`flex-wrap: ${c}`),"horizontal"===s?(u&&h.push(`align-items: ${u}`),a&&h.push(`justify-content: ${a}`)):(u&&h.push(`justify-content: ${u}`),h.push("flex-direction: column"),h.push(`align-items: ${d}`)),h.length&&(p=`${Hs(e)} {\n\t\t\t\t${h.join("; ")};\n\t\t\t}`),r&&l&&(p+=Us(e,i,"flex",l)),p},getOrientation(e){const{orientation:t="horizontal"}=e;return t},getAlignments:()=>[]};function Pl({layout:e,onChange:t}){const{orientation:n="horizontal"}=e,o="horizontal"===n?jl:El,{verticalAlignment:r=o}=e;return(0,d.jsx)(vl,{onChange:n=>{t({...e,verticalAlignment:n})},value:r,controls:"horizontal"===n?["top","center","bottom","stretch"]:["top","center","bottom","space-between"]})}const Rl={placement:"bottom-start"};function Al({layout:e,onChange:t,isToolbar:n=!1}){const{justifyContent:o="left",orientation:r="horizontal"}=e,i=n=>{t({...e,justifyContent:n})},s=["left","center","right"];if("horizontal"===r?s.push("space-between"):s.push("stretch"),n)return(0,d.jsx)(Sl,{allowedControls:s,value:o,onChange:i,popoverProps:Rl});const l=[{value:"left",icon:As,label:(0,T.__)("Justify items left")},{value:"center",icon:Ns,label:(0,T.__)("Justify items center")},{value:"right",icon:Ls,label:(0,T.__)("Justify items right")}];return"horizontal"===r?l.push({value:"space-between",icon:Ds,label:(0,T.__)("Space between items")}):l.push({value:"stretch",icon:Os,label:(0,T.__)("Stretch items")}),(0,d.jsx)(ws.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,T.__)("Justification"),value:o,onChange:i,className:"block-editor-hooks__flex-layout-justification-controls",children:l.map((({value:e,icon:t,label:n})=>(0,d.jsx)(ws.__experimentalToggleGroupControlOptionIcon,{value:e,icon:t,label:n},e)))})}function Nl({layout:e,onChange:t}){const{flexWrap:n="wrap"}=e;return(0,d.jsx)(ws.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,T.__)("Allow to wrap to multiple lines"),onChange:n=>{t({...e,flexWrap:n?"wrap":"nowrap"})},checked:"wrap"===n})}function Ll({layout:e,onChange:t}){const{orientation:n="horizontal",verticalAlignment:o,justifyContent:r}=e;return(0,d.jsxs)(ws.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,className:"block-editor-hooks__flex-layout-orientation-controls",label:(0,T.__)("Orientation"),value:n,onChange:n=>{let i=o,s=r;return"horizontal"===n?("space-between"===o&&(i="center"),"stretch"===r&&(s="left")):("stretch"===o&&(i="top"),"space-between"===r&&(s="left")),t({...e,orientation:n,verticalAlignment:i,justifyContent:s})},children:[(0,d.jsx)(ws.__experimentalToggleGroupControlOptionIcon,{icon:zs,value:"horizontal",label:(0,T.__)("Horizontal")}),(0,d.jsx)(ws.__experimentalToggleGroupControlOptionIcon,{icon:Vs,value:"vertical",label:(0,T.__)("Vertical")})]})}var Dl={name:"default",label:(0,T.__)("Flow"),inspectorControls:function(){return null},toolBarControls:function(){return null},getLayoutStyle:function({selector:e,style:t,blockName:n,hasBlockGapSupport:o,layoutDefinitions:r=Fs}){const i=ul(t?.spacing?.blockGap);let s="";ks(n,"spacing","blockGap")||(i?.top?s=ul(i?.top):"string"==typeof i&&(s=ul(i)));let l="";return o&&s&&(l+=Us(e,r,"default",s)),l},getOrientation:()=>"vertical",getAlignments(e,t){const n=Gs(e);if(void 0!==e.alignments)return e.alignments.includes("none")||e.alignments.unshift("none"),e.alignments.map((e=>({name:e,info:n[e]})));const o=[{name:"left"},{name:"center"},{name:"right"}];if(!t){const{contentSize:t,wideSize:r}=e;t&&o.unshift({name:"full"}),r&&o.unshift({name:"wide",info:n.wide})}return o.unshift({name:"none",info:n.none}),o}},Ol=(0,h.forwardRef)((({icon:e,size:t=24,...n},o)=>(0,h.cloneElement)(e,{width:t,height:t,...n,ref:o}))),zl=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"M19 5.5H5V4h14v1.5ZM19 20H5v-1.5h14V20ZM5 9h14v6H5V9Z"})}),Vl=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"M16 5.5H8V4h8v1.5ZM16 20H8v-1.5h8V20ZM5 9h14v6H5V9Z"})}),Fl={name:"constrained",label:(0,T.__)("Constrained"),inspectorControls:function({layout:e,onChange:t,layoutBlockSupport:n={}}){const{wideSize:o,contentSize:r,justifyContent:i="center"}=e,{allowJustification:s=!0,allowCustomContentAndWideSize:l=!0}=n,a=[{value:"left",icon:As,label:(0,T.__)("Justify items left")},{value:"center",icon:Ns,label:(0,T.__)("Justify items center")},{value:"right",icon:Ls,label:(0,T.__)("Justify items right")}],[c]=Ti("spacing.units"),u=(0,ws.__experimentalUseCustomUnits)({availableUnits:c||["%","px","em","rem","vw"]});return(0,d.jsxs)(ws.__experimentalVStack,{spacing:4,className:"block-editor-hooks__layout-constrained",children:[l&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(ws.__experimentalUnitControl,{__next40pxDefaultSize:!0,label:(0,T.__)("Content width"),labelPosition:"top",value:r||o||"",onChange:n=>{n=0>parseFloat(n)?"0":n,t({...e,contentSize:n})},units:u,prefix:(0,d.jsx)(ws.__experimentalInputControlPrefixWrapper,{variant:"icon",children:(0,d.jsx)(Ol,{icon:zl})})}),(0,d.jsx)(ws.__experimentalUnitControl,{__next40pxDefaultSize:!0,label:(0,T.__)("Wide width"),labelPosition:"top",value:o||r||"",onChange:n=>{n=0>parseFloat(n)?"0":n,t({...e,wideSize:n})},units:u,prefix:(0,d.jsx)(ws.__experimentalInputControlPrefixWrapper,{variant:"icon",children:(0,d.jsx)(Ol,{icon:Vl})})}),(0,d.jsx)("p",{className:"block-editor-hooks__layout-constrained-helptext",children:(0,T.__)("Customize the width for all elements that are assigned to the center or wide columns.")})]}),s&&(0,d.jsx)(ws.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,T.__)("Justification"),value:i,onChange:n=>{t({...e,justifyContent:n})},children:a.map((({value:e,icon:t,label:n})=>(0,d.jsx)(ws.__experimentalToggleGroupControlOptionIcon,{value:e,icon:t,label:n},e)))})]})},toolBarControls:function({layout:e={},onChange:t,layoutBlockSupport:n}){const{allowJustification:o=!0}=n;return o?(0,d.jsx)(Rs,{group:"block",__experimentalShareWithChildBlocks:!0,children:(0,d.jsx)(Ul,{layout:e,onChange:t})}):null},getLayoutStyle:function({selector:e,layout:t={},style:n,blockName:o,hasBlockGapSupport:r,layoutDefinitions:i=Fs}){const{contentSize:s,wideSize:l,justifyContent:a}=t,c=ul(n?.spacing?.blockGap);let u="";ks(o,"spacing","blockGap")||(c?.top?u=ul(c?.top):"string"==typeof c&&(u=ul(c)));const d="left"===a?"0 !important":"auto !important",p="right"===a?"0 !important":"auto !important";let h=s||l?`\n\t\t\t\t\t${Hs(e,"> :where(:not(.alignleft):not(.alignright):not(.alignfull))")} {\n\t\t\t\t\t\tmax-width: ${s??l};\n\t\t\t\t\t\tmargin-left: ${d};\n\t\t\t\t\t\tmargin-right: ${p};\n\t\t\t\t\t}\n\t\t\t\t\t${Hs(e,"> .alignwide")}  {\n\t\t\t\t\t\tmax-width: ${l??s};\n\t\t\t\t\t}\n\t\t\t\t\t${Hs(e,"> .alignfull")} {\n\t\t\t\t\t\tmax-width: none;\n\t\t\t\t\t}\n\t\t\t\t`:"";if("left"===a?h+=`${Hs(e,"> :where(:not(.alignleft):not(.alignright):not(.alignfull))")}\n\t\t\t{ margin-left: ${d}; }`:"right"===a&&(h+=`${Hs(e,"> :where(:not(.alignleft):not(.alignright):not(.alignfull))")}\n\t\t\t{ margin-right: ${p}; }`),n?.spacing?.padding){(0,Pi.getCSSRules)(n).forEach((t=>{if("paddingRight"===t.key){const n="0"===t.value?"0px":t.value;h+=`\n\t\t\t\t\t${Hs(e,"> .alignfull")} {\n\t\t\t\t\t\tmargin-right: calc(${n} * -1);\n\t\t\t\t\t}\n\t\t\t\t\t`}else if("paddingLeft"===t.key){const n="0"===t.value?"0px":t.value;h+=`\n\t\t\t\t\t${Hs(e,"> .alignfull")} {\n\t\t\t\t\t\tmargin-left: calc(${n} * -1);\n\t\t\t\t\t}\n\t\t\t\t\t`}}))}return r&&u&&(h+=Us(e,i,"constrained",u)),h},getOrientation:()=>"vertical",getAlignments(e){const t=Gs(e);if(void 0!==e.alignments)return e.alignments.includes("none")||e.alignments.unshift("none"),e.alignments.map((e=>({name:e,info:t[e]})));const{contentSize:n,wideSize:o}=e,r=[{name:"left"},{name:"center"},{name:"right"}];return n&&r.unshift({name:"full"}),o&&r.unshift({name:"wide",info:t.wide}),r.unshift({name:"none",info:t.none}),r}};const Hl={placement:"bottom-start"};function Ul({layout:e,onChange:t}){const{justifyContent:n="center"}=e;return(0,d.jsx)(Sl,{allowedControls:["left","center","right"],value:n,onChange:n=>{t({...e,justifyContent:n})},popoverProps:Hl})}const Gl={px:600,"%":100,vw:100,vh:100,em:38,rem:38,svw:100,lvw:100,dvw:100,svh:100,lvh:100,dvh:100,vi:100,svi:100,lvi:100,dvi:100,vb:100,svb:100,lvb:100,dvb:100,vmin:100,svmin:100,lvmin:100,dvmin:100,vmax:100,svmax:100,lvmax:100,dvmax:100},$l=[{value:"px",label:"px",default:0},{value:"rem",label:"rem",default:0},{value:"em",label:"em",default:0}];var Wl={name:"grid",label:(0,T.__)("Grid"),inspectorControls:function({layout:e={},onChange:t,layoutBlockSupport:n={}}){const{allowSizingOnChildren:o=!1}=n,r=window.__experimentalEnableGridInteractivity||!!e?.columnCount,i=window.__experimentalEnableGridInteractivity||!e?.columnCount;return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(ql,{layout:e,onChange:t}),(0,d.jsxs)(ws.__experimentalVStack,{spacing:4,children:[r&&(0,d.jsx)(Zl,{layout:e,onChange:t,allowSizingOnChildren:o}),i&&(0,d.jsx)(Kl,{layout:e,onChange:t})]})]})},toolBarControls:function(){return null},getLayoutStyle:function({selector:e,layout:t,style:n,blockName:o,hasBlockGapSupport:r,layoutDefinitions:i=Fs}){const{minimumColumnWidth:s=null,columnCount:l=null,rowCount:a=null}=t;const c=n?.spacing?.blockGap&&!ks(o,"spacing","blockGap")?ul(n?.spacing?.blockGap,"0.5em"):void 0;let u="";const d=[];if(s&&l>0){const e=`max(${s}, ( 100% - (${c||"1.2rem"}*${l-1}) ) / ${l})`;d.push(`grid-template-columns: repeat(auto-fill, minmax(${e}, 1fr))`,"container-type: inline-size"),a&&d.push(`grid-template-rows: repeat(${a}, minmax(1rem, auto))`)}else l?(d.push(`grid-template-columns: repeat(${l}, minmax(0, 1fr))`),a&&d.push(`grid-template-rows: repeat(${a}, minmax(1rem, auto))`)):d.push(`grid-template-columns: repeat(auto-fill, minmax(min(${s||"12rem"}, 100%), 1fr))`,"container-type: inline-size");return d.length&&(u=`${Hs(e)} { ${d.join("; ")}; }`),r&&c&&(u+=Us(e,i,"grid",c)),u},getOrientation:()=>"horizontal",getAlignments:()=>[]};function Kl({layout:e,onChange:t}){const{minimumColumnWidth:n,columnCount:o,isManualPlacement:r}=e,i=n||(r||o?null:"12rem"),[s,l="rem"]=(0,ws.__experimentalParseQuantityAndUnitFromRawValue)(i);return(0,d.jsxs)("fieldset",{className:"block-editor-hooks__grid-layout-minimum-width-control",children:[(0,d.jsx)(ws.BaseControl.VisualLabel,{as:"legend",children:(0,T.__)("Minimum column width")}),(0,d.jsxs)(ws.Flex,{gap:4,children:[(0,d.jsx)(ws.FlexItem,{isBlock:!0,children:(0,d.jsx)(ws.__experimentalUnitControl,{size:"__unstable-large",onChange:n=>{t({...e,minimumColumnWidth:""===n?void 0:n})},onUnitChange:n=>{let o;["em","rem"].includes(n)&&"px"===l?o=(s/16).toFixed(2)+n:["em","rem"].includes(l)&&"px"===n&&(o=Math.round(16*s)+n),t({...e,minimumColumnWidth:o})},value:i,units:$l,min:0,label:(0,T.__)("Minimum column width"),hideLabelFromVision:!0})}),(0,d.jsx)(ws.FlexItem,{isBlock:!0,children:(0,d.jsx)(ws.RangeControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,onChange:n=>{t({...e,minimumColumnWidth:[n,l].join("")})},value:s||0,min:0,max:Gl[l]||600,withInputField:!1,label:(0,T.__)("Minimum column width"),hideLabelFromVision:!0})})]})]})}function Zl({layout:e,onChange:t,allowSizingOnChildren:n}){const o=window.__experimentalEnableGridInteractivity?void 0:3,{columnCount:r=o,rowCount:i,isManualPlacement:s}=e;return(0,d.jsx)(d.Fragment,{children:(0,d.jsxs)("fieldset",{className:"block-editor-hooks__grid-layout-columns-and-rows-controls",children:[(!window.__experimentalEnableGridInteractivity||!s)&&(0,d.jsx)(ws.BaseControl.VisualLabel,{as:"legend",children:(0,T.__)("Columns")}),(0,d.jsxs)(ws.Flex,{gap:4,children:[(0,d.jsx)(ws.FlexItem,{isBlock:!0,children:(0,d.jsx)(ws.__experimentalNumberControl,{size:"__unstable-large",onChange:n=>{if(window.__experimentalEnableGridInteractivity){const o=""===n||"0"===n?s?1:void 0:parseInt(n,10);t({...e,columnCount:o})}else{const o=""===n||"0"===n?1:parseInt(n,10);t({...e,columnCount:o})}},value:r,min:1,label:(0,T.__)("Columns"),hideLabelFromVision:!window.__experimentalEnableGridInteractivity||!s})}),(0,d.jsx)(ws.FlexItem,{isBlock:!0,children:window.__experimentalEnableGridInteractivity&&n&&s?(0,d.jsx)(ws.__experimentalNumberControl,{size:"__unstable-large",onChange:n=>{const o=""===n||"0"===n?1:parseInt(n,10);t({...e,rowCount:o})},value:i,min:1,label:(0,T.__)("Rows")}):(0,d.jsx)(ws.RangeControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,value:r??1,onChange:n=>t({...e,columnCount:""===n||"0"===n?1:n}),min:1,max:16,withInputField:!1,label:(0,T.__)("Columns"),hideLabelFromVision:!0})})]})]})})}function ql({layout:e,onChange:t}){const{columnCount:n,rowCount:o,minimumColumnWidth:r,isManualPlacement:i}=e,[s,l]=(0,h.useState)(n||3),[a,c]=(0,h.useState)(o),[u,p]=(0,h.useState)(r||"12rem"),g=i||n&&!window.__experimentalEnableGridInteractivity?"manual":"auto",m="manual"===g?(0,T.__)("Grid items can be manually placed in any position on the grid."):(0,T.__)("Grid items are placed automatically depending on their order.");return(0,d.jsxs)(ws.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,T.__)("Grid item position"),value:g,onChange:i=>{"manual"===i?p(r||"12rem"):(l(n||3),c(o)),t({...e,columnCount:"manual"===i?s:null,rowCount:"manual"===i&&window.__experimentalEnableGridInteractivity?a:void 0,isManualPlacement:!("manual"!==i||!window.__experimentalEnableGridInteractivity)||void 0,minimumColumnWidth:"auto"===i?u:null})},isBlock:!0,help:window.__experimentalEnableGridInteractivity?m:void 0,children:[(0,d.jsx)(ws.__experimentalToggleGroupControlOption,{value:"auto",label:(0,T.__)("Auto")},"auto"),(0,d.jsx)(ws.__experimentalToggleGroupControlOption,{value:"manual",label:(0,T.__)("Manual")},"manual")]})}const Yl=[Dl,Ml,Fl,Wl];function Xl(e="default"){return Yl.find((t=>t.name===e))}const Ql={type:"default"},Jl=(0,h.createContext)(Ql);Jl.displayName="BlockLayoutContext";const ea=Jl.Provider;function ta(){return(0,h.useContext)(Jl)}const na=[],oa=["none","left","center","right","wide","full"],ra=["wide","full"];function ia(e=oa){e.includes("none")||(e=["none",...e]);const t=1===e.length&&"none"===e[0],[n,o,r]=(0,g.useSelect)((e=>{if(t)return[!1,!1,!1];const n=e(ji).getSettings();return[n.alignWide??!1,n.supportsLayout,n.__unstableIsBlockBasedTheme]}),[t]),i=ta();if(t)return na;const s=Xl(i?.type);if(o){const t=s.getAlignments(i,r).filter((t=>e.includes(t.name)));return 1===t.length&&"none"===t[0].name?na:t}if("default"!==s.name&&"constrained"!==s.name)return na;const l=e.filter((e=>i.alignments?i.alignments.includes(e):!(!n&&ra.includes(e))&&oa.includes(e))).map((e=>({name:e})));return 1===l.length&&"none"===l[0].name?na:l}var sa=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"M5 5.5h8V4H5v1.5ZM5 20h8v-1.5H5V20ZM19 9H5v6h14V9Z"})}),la=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"M19 5.5H5V4h14v1.5ZM19 20H5v-1.5h14V20ZM7 9h10v6H7V9Z"})}),aa=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"M19 5.5h-8V4h8v1.5ZM19 20h-8v-1.5h8V20ZM5 9h14v6H5V9Z"})}),ca=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"M5 4h14v11H5V4Zm11 16H8v-1.5h8V20Z"})});const ua={none:{icon:zl,title:(0,T._x)("None","Alignment option")},left:{icon:sa,title:(0,T.__)("Align left")},center:{icon:la,title:(0,T.__)("Align center")},right:{icon:aa,title:(0,T.__)("Align right")},wide:{icon:Vl,title:(0,T.__)("Wide width")},full:{icon:ca,title:(0,T.__)("Full width")}};var da=function({value:e,onChange:t,controls:n,isToolbar:o,isCollapsed:r=!0}){const i=ia(n);if(!!!i.length)return null;function s(n){t([e,"none"].includes(n)?void 0:n)}const l=ua[e],a=ua.none,c=o?ws.ToolbarGroup:ws.ToolbarDropdownMenu,u={icon:l?l.icon:a.icon,label:(0,T.__)("Align")},p=o?{isCollapsed:r,controls:i.map((({name:t})=>({...ua[t],isActive:e===t||!e&&"none"===t,role:r?"menuitemradio":void 0,onClick:()=>s(t)})))}:{toggleProps:{description:(0,T.__)("Change alignment")},children:({onClose:t})=>(0,d.jsx)(d.Fragment,{children:(0,d.jsx)(ws.MenuGroup,{className:"block-editor-block-alignment-control__menu-group",children:i.map((({name:n,info:o})=>{const{icon:r,title:i}=ua[n],l=n===e||!e&&"none"===n;return(0,d.jsx)(ws.MenuItem,{icon:r,iconPosition:"left",className:ms("components-dropdown-menu__menu-item",{"is-active":l}),isSelected:l,onClick:()=>{s(n),t()},role:"menuitemradio",info:o,children:i},n)}))})})};return(0,d.jsx)(c,{...u,...p})};const pa=e=>(0,d.jsx)(da,{...e,isToolbar:!1}),ha=e=>(0,d.jsx)(da,{...e,isToolbar:!0});function ga(e){const t=C(),{clientId:n=""}=t,{setBlockEditingMode:o,unsetBlockEditingMode:r}=(0,g.useDispatch)(ji),i=(0,g.useSelect)((e=>n?null:e(ji).getBlockEditingMode()),[n]);return(0,h.useEffect)((()=>(e&&o(n,e),()=>{e&&r(n)})),[n,e,o,r]),n?t[v]:i}const ma=["left","center","right","wide","full"],fa=["wide","full"];function ba(e,t=!0,n=!0){let o;return o=Array.isArray(e)?ma.filter((t=>e.includes(t))):!0===e?[...ma]:[],!n||!0===e&&!t?o.filter((e=>!fa.includes(e))):o}var ka={shareWithChildBlocks:!0,edit:function({name:e,align:t,setAttributes:n}){const o=ia(ba((0,p.getBlockSupport)(e,"align"),(0,p.hasBlockSupport)(e,"alignWide",!0))).map((({name:e})=>e)),r=ga();return o.length&&"default"===r?(0,d.jsx)(Rs,{group:"block",__experimentalShareWithChildBlocks:!0,children:(0,d.jsx)(pa,{value:t,onChange:t=>{if(!t){const n=(0,p.getBlockType)(e),o=n?.attributes?.align?.default;o&&(t="")}n({align:t})},controls:o})}):null},useBlockProps:function({name:e,align:t}){const n=ba((0,p.getBlockSupport)(e,"align"),(0,p.hasBlockSupport)(e,"alignWide",!0));if(ia(n).some((e=>e.name===t)))return{"data-align":t};return{}},addSaveProps:function(e,t,n){const{align:o}=n,r=(0,p.getBlockSupport)(t,"align"),i=(0,p.hasBlockSupport)(t,"alignWide",!0);ba(r,i).includes(o)&&(e.className=ms(`align${o}`,e.className));return e},attributeKeys:["align"],hasSupport:e=>(0,p.hasBlockSupport)(e,"align",!1)};(0,f.addFilter)("blocks.registerBlockType","core/editor/align/addAttribute",(function(e){return"type"in(e.attributes?.align??{})||(0,p.hasBlockSupport)(e,"align")&&(e.attributes={...e.attributes,align:{type:"string",enum:[...ma,""]}}),e}));const va=(0,ws.createSlotFill)("InspectorControls"),_a=(0,ws.createSlotFill)("InspectorAdvancedControls"),ya=(0,ws.createSlotFill)("InspectorControlsBindings"),xa=(0,ws.createSlotFill)("InspectorControlsBackground"),Sa=(0,ws.createSlotFill)("InspectorControlsBorder"),wa=(0,ws.createSlotFill)("InspectorControlsColor"),Ca=(0,ws.createSlotFill)("InspectorControlsFilter"),Ba=(0,ws.createSlotFill)("InspectorControlsDimensions"),Ia=(0,ws.createSlotFill)("InspectorControlsPosition"),ja=(0,ws.createSlotFill)("InspectorControlsTypography"),Ea=(0,ws.createSlotFill)("InspectorControlsListView"),Ta=(0,ws.createSlotFill)("InspectorControlsStyles");var Ma={default:va,advanced:_a,background:xa,bindings:ya,border:Sa,color:wa,dimensions:Ba,effects:(0,ws.createSlotFill)("InspectorControlsEffects"),filter:Ca,list:Ea,position:Ia,settings:va,styles:Ta,typography:ja};const Pa=(0,ws.createSlotFill)(Symbol("PrivateInspectorControlsAllowedBlocks"));function Ra({children:e,group:t="default",__experimentalGroup:n,resetAllFilter:o}){n&&(I()("`__experimentalGroup` property in `InspectorControlsFill`",{since:"6.2",version:"6.4",alternative:"`group`"}),t=n);const r=C(),i=Ma[t]?.Fill;return i?r[b]?(0,d.jsx)(ws.__experimentalStyleProvider,{document,children:(0,d.jsx)(i,{children:t=>(0,d.jsx)(Na,{fillProps:t,children:e,resetAllFilter:o})})}):null:(js()(`Unknown InspectorControls group "${t}" provided.`),null)}function Aa({resetAllFilter:e,children:t}){const{registerResetAllFilter:n,deregisterResetAllFilter:o}=(0,h.useContext)(ws.__experimentalToolsPanelContext);return(0,h.useEffect)((()=>{if(e&&n&&o)return n(e),()=>{o(e)}}),[e,n,o]),t}function Na({children:e,resetAllFilter:t,fillProps:n}){const{forwardedContext:o=[]}=n,r=(0,d.jsx)(Aa,{resetAllFilter:t,children:e});return o.reduce(((e,[t,n])=>(0,d.jsx)(t,{...n,children:e})),r)}function La({children:e,group:t,label:n}){const{updateBlockAttributes:o}=(0,g.useDispatch)(ji),{getBlockAttributes:r,getMultiSelectedBlockClientIds:i,getSelectedBlockClientId:s,hasMultiSelection:l}=(0,g.useSelect)(ji),a=Ji(),c=s(),u=(0,h.useCallback)(((e=[])=>{const t={},n=l()?i():[c];n.forEach((n=>{const{style:o}=r(n);let i={style:o};e.forEach((e=>{i={...i,...e(i)}})),i={...i,style:fs(i.style)},t[n]=i})),o(n,t,!0)}),[r,i,l,c,o]);return(0,d.jsx)(ws.__experimentalToolsPanel,{className:`${t}-block-support-panel`,label:n,resetAll:u,panelId:c,hasInnerWrapper:!0,shouldRenderPlaceholderItems:!0,__experimentalFirstVisibleItemClass:"first",__experimentalLastVisibleItemClass:"last",dropdownMenuProps:a,children:e},c)}function Da({Slot:e,fillProps:t,...n}){const o=(0,h.useContext)(ws.__experimentalToolsPanelContext),r=(0,h.useMemo)((()=>({...t??{},forwardedContext:[...t?.forwardedContext??[],[ws.__experimentalToolsPanelContext.Provider,{value:o}]]})),[o,t]);return(0,d.jsx)(e,{...n,fillProps:r,bubblesVirtually:!0})}function Oa({__experimentalGroup:e,group:t="default",label:n,fillProps:o,...r}){e&&(I()("`__experimentalGroup` property in `InspectorControlsSlot`",{since:"6.2",version:"6.4",alternative:"`group`"}),t=e);const i=Ma[t],s=(0,ws.__experimentalUseSlotFills)(i?.name);if(!i)return js()(`Unknown InspectorControls group "${t}" provided.`),null;if(!s?.length)return null;const{Slot:l}=i;return n?(0,d.jsx)(La,{group:t,label:n,children:(0,d.jsx)(Da,{...r,fillProps:o,Slot:l})}):(0,d.jsx)(l,{...r,fillProps:o,bubblesVirtually:!0})}const za=Ra;za.Slot=Oa;const Va=e=>(0,d.jsx)(Ra,{...e,group:"advanced"});Va.Slot=e=>(0,d.jsx)(Oa,{...e,group:"advanced"}),Va.slotName="InspectorAdvancedControls";var Fa=za,Ha=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"M7 11.5h10V13H7z"})});const Ua=window.wp.url,Ga=window.wp.dom,$a=window.wp.blob,Wa=window.wp.keycodes;var Ka=(0,d.jsxs)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,d.jsx)(ue.Path,{d:"m7 6.5 4 2.5-4 2.5z"}),(0,d.jsx)(ue.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"m5 3c-1.10457 0-2 .89543-2 2v14c0 1.1046.89543 2 2 2h14c1.1046 0 2-.8954 2-2v-14c0-1.10457-.8954-2-2-2zm14 1.5h-14c-.27614 0-.5.22386-.5.5v10.7072l3.62953-2.6465c.25108-.1831.58905-.1924.84981-.0234l2.92666 1.8969 3.5712-3.4719c.2911-.2831.7545-.2831 1.0456 0l2.9772 2.8945v-9.3568c0-.27614-.2239-.5-.5-.5zm-14.5 14.5v-1.4364l4.09643-2.987 2.99567 1.9417c.2936.1903.6798.1523.9307-.0917l3.4772-3.3806 3.4772 3.3806.0228-.0234v2.5968c0 .2761-.2239.5-.5.5h-14c-.27614 0-.5-.2239-.5-.5z"})]}),Za=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.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"})}),qa=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.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"})});var Ya=(0,ws.withFilters)("editor.MediaUpload")((()=>null));var Xa=function({fallback:e=null,children:t}){const n=(0,g.useSelect)((e=>{const{getSettings:t}=e(ji);return!!t().mediaUpload}),[]);return n?t:e};const Qa=window.wp.isShallowEqual;var Ja=n.n(Qa),ec=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"M17.031 4.703 15.576 4l-1.56 3H14v.03l-2.324 4.47H9.5V13h1.396l-1.502 2.889h-.95a3.694 3.694 0 0 1 0-7.389H10V7H8.444a5.194 5.194 0 1 0 0 10.389h.17L7.5 19.53l1.416.719L15.049 8.5h.507a3.694 3.694 0 0 1 0 7.39H14v1.5h1.556a5.194 5.194 0 0 0 .273-10.383l1.202-2.304Z"})}),tc=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"m6.734 16.106 2.176-2.38-1.093-1.028-3.846 4.158 3.846 4.158 1.093-1.028-2.176-2.38h2.811c1.125 0 2.25.03 3.374 0 1.428-.001 3.362-.25 4.963-1.277 1.66-1.065 2.868-2.906 2.868-5.859 0-2.479-1.327-4.896-3.65-5.93-1.82-.813-3.044-.8-4.806-.788l-.567.002v1.5c.184 0 .368 0 .553-.002 1.82-.007 2.704-.014 4.21.657 1.854.827 2.76 2.657 2.76 4.561 0 2.472-.973 3.824-2.178 4.596-1.258.807-2.864 1.04-4.163 1.04h-.02c-1.115.03-2.229 0-3.344 0H6.734Z"})}),nc=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"m13.1 16-3.4-4 3.4-4 1.1 1-2.6 3 2.6 3-1.1 1z"})}),oc=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"M10.8622 8.04053L14.2805 12.0286L10.8622 16.0167L9.72327 15.0405L12.3049 12.0286L9.72327 9.01672L10.8622 8.04053Z"})});var rc=function e({children:t,settingsOpen:n,setSettingsOpen:o}){const r=(0,m.useReducedMotion)(),i=r?h.Fragment:ws.__unstableAnimatePresence,s=r?"div":ws.__unstableMotion.div,l=`link-control-settings-drawer-${(0,m.useInstanceId)(e)}`;return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(ws.Button,{__next40pxDefaultSize:!0,className:"block-editor-link-control__drawer-toggle","aria-expanded":n,onClick:()=>o(!n),icon:(0,T.isRTL)()?nc:oc,"aria-controls":l,children:(0,T._x)("Advanced","Additional link settings")}),(0,d.jsx)(i,{children:n&&(0,d.jsx)(s,{className:"block-editor-link-control__drawer",hidden:!n,id:l,initial:"collapsed",animate:"open",exit:"collapsed",variants:{open:{opacity:1,height:"auto"},collapsed:{opacity:0,height:0}},transition:{duration:.1},children:(0,d.jsx)("div",{className:"block-editor-link-control__drawer-inner",children:t})})})]})},ic=n(1609);function sc(e){return"function"==typeof e}class lc extends h.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||(0,h.createRef)(),this.inputRef=e.inputRef||(0,h.createRef)(),this.updateSuggestions=(0,m.debounce)(this.updateSuggestions.bind(this),200),this.suggestionNodes=[],this.suggestionsRequest=null,this.state={suggestions:[],showSuggestions:!1,suggestionsValue:null,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.suggestionNodes[n].scrollIntoView({behavior:"instant",block:"nearest",inline:"nearest"}),e.value===o||this.props.disableSuggestions||(o?.length?this.updateSuggestions(o):r&&this.updateSuggestions())}componentDidMount(){this.shouldShowInitialSuggestions()&&this.updateSuggestions()}componentWillUnmount(){this.suggestionsRequest?.cancel?.(),this.suggestionsRequest=null}bindSuggestionNode(e){return t=>{this.suggestionNodes[e]=t}}shouldShowInitialSuggestions(){const{__experimentalShowInitialSuggestions:e=!1,value:t}=this.props;return e&&!(t&&t.length)}updateSuggestions(e=""){const{__experimentalFetchLinkSuggestions:t,__experimentalHandleURLSuggestions:n}=this.props;if(!t)return;const o=!e?.length;if(e=e.trim(),!o&&(e.length<2||!n&&(0,Ua.isURL)(e)))return this.suggestionsRequest?.cancel?.(),this.suggestionsRequest=null,void this.setState({suggestions:[],showSuggestions:!1,suggestionsValue:e,selectedSuggestion:null,loading:!1});this.setState({selectedSuggestion:null,loading:!0});const r=t(e,{isInitialSuggestions:o});r.then((t=>{this.suggestionsRequest===r&&(this.setState({suggestions:t,suggestionsValue:e,loading:!1,showSuggestions:!!t.length}),t.length?this.props.debouncedSpeak((0,T.sprintf)((0,T._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",t.length),t.length),"assertive"):this.props.debouncedSpeak((0,T.__)("No results."),"assertive"))})).catch((()=>{this.suggestionsRequest===r&&this.setState({loading:!1})})).finally((()=>{this.suggestionsRequest===r&&(this.suggestionsRequest=null)})),this.suggestionsRequest=r}onChange(e){this.props.onChange(e)}onFocus(){const{suggestions:e}=this.state,{disableSuggestions:t,value:n}=this.props;!n||t||e&&e.length||null!==this.suggestionsRequest||this.updateSuggestions(n)}onKeyDown(e){this.props.onKeyDown?.(e);const{showSuggestions:t,selectedSuggestion:n,suggestions:o,loading:r}=this.state;if(!t||!o.length||r){switch(e.keyCode){case Wa.UP:0!==e.target.selectionStart&&(e.preventDefault(),e.target.setSelectionRange(0,0));break;case Wa.DOWN:this.props.value.length!==e.target.selectionStart&&(e.preventDefault(),e.target.setSelectionRange(this.props.value.length,this.props.value.length));break;case Wa.ENTER:this.props.onSubmit&&(e.preventDefault(),this.props.onSubmit(null,e))}return}const i=this.state.suggestions[this.state.selectedSuggestion];switch(e.keyCode){case Wa.UP:{e.preventDefault();const t=n?n-1:o.length-1;this.setState({selectedSuggestion:t});break}case Wa.DOWN:{e.preventDefault();const t=null===n||n===o.length-1?0:n+1;this.setState({selectedSuggestion:t});break}case Wa.TAB:null!==this.state.selectedSuggestion&&(this.selectLink(i),this.props.speak((0,T.__)("Link selected.")));break;case Wa.ENTER:e.preventDefault(),null!==this.state.selectedSuggestion?(this.selectLink(i),this.props.onSubmit&&this.props.onSubmit(i,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({value:e,instanceId:t,disableSuggestions:n,__experimentalShowInitialSuggestions:o=!1},{showSuggestions:r}){let i=r;const s=e&&e.length;return o||s||(i=!1),!0===n&&(i=!1),{showSuggestions:i,suggestionsListboxId:`block-editor-url-input-suggestions-${t}`,suggestionOptionIdPrefix:`block-editor-url-input-suggestion-${t}`}}render(){return(0,d.jsxs)(d.Fragment,{children:[this.renderControl(),this.renderSuggestions()]})}renderControl(){const{label:e=null,className:t,isFullWidth:n,instanceId:o,placeholder:r=(0,T.__)("Paste URL or type to search"),__experimentalRenderControl:i,value:s="",hideLabelFromVision:l=!1,help:a=null,disabled:c=!1}=this.props,{loading:u,showSuggestions:p,selectedSuggestion:h,suggestionsListboxId:g,suggestionOptionIdPrefix:m}=this.state,f=`url-input-control-${o}`,b={id:f,label:e,className:ms("block-editor-url-input",t,{"is-full-width":n}),hideLabelFromVision:l},k={id:f,value:s,required:!0,type:"text",onChange:c?()=>{}:this.onChange,onFocus:c?()=>{}:this.onFocus,placeholder:r,onKeyDown:c?()=>{}:this.onKeyDown,role:"combobox","aria-label":e?void 0:(0,T.__)("URL"),"aria-expanded":p,"aria-autocomplete":"list","aria-owns":g,"aria-activedescendant":null!==h?`${m}-${h}`:void 0,ref:this.inputRef,disabled:c,suffix:this.props.suffix,help:a};return i?i(b,k,u):(0,d.jsxs)(ws.BaseControl,{__nextHasNoMarginBottom:!0,...b,children:[(0,d.jsx)(ws.__experimentalInputControl,{...k,__next40pxDefaultSize:!0}),u&&(0,d.jsx)(ws.Spinner,{})]})}renderSuggestions(){const{className:e,__experimentalRenderSuggestions:t}=this.props,{showSuggestions:n,suggestions:o,suggestionsValue:r,selectedSuggestion:i,suggestionsListboxId:s,suggestionOptionIdPrefix:l,loading:a}=this.state;if(!n||0===o.length)return null;const c={id:s,ref:this.autocompleteRef,role:"listbox"},u=(e,t)=>({role:"option",tabIndex:"-1",id:`${l}-${t}`,ref:this.bindSuggestionNode(t),"aria-selected":t===i||void 0});return sc(t)?t({suggestions:o,selectedSuggestion:i,suggestionsListProps:c,buildSuggestionItemProps:u,isLoading:a,handleSuggestionClick:this.handleOnClick,isInitialSuggestions:!r?.length,currentInputValue:r}):(0,d.jsx)(ws.Popover,{placement:"bottom",focusOnMount:!1,children:(0,d.jsx)("div",{...c,className:ms("block-editor-url-input__suggestions",{[`${e}__suggestions`]:e}),children:o.map(((e,t)=>(0,ic.createElement)(ws.Button,{__next40pxDefaultSize:!0,...u(0,t),key:e.id,className:ms("block-editor-url-input__suggestion",{"is-selected":t===i}),onClick:()=>this.handleOnClick(e)},e.title)))})})}}var ac=(0,m.compose)(m.withSafeTimeout,ws.withSpokenMessages,m.withInstanceId,(0,g.withSelect)(((e,t)=>{if(sc(t.__experimentalFetchLinkSuggestions))return;const{getSettings:n}=e(ji);return{__experimentalFetchLinkSuggestions:n().__experimentalFetchLinkSuggestions}})))(lc),cc=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"M11 12.5V17.5H12.5V12.5H17.5V11H12.5V6H11V11H6V12.5H11Z"})});var uc=({searchTerm:e,onClick:t,itemProps:n,buttonText:o})=>{if(!e)return null;let r;return r=o?"function"==typeof o?o(e):o:(0,h.createInterpolateElement)((0,T.sprintf)((0,T.__)("Create: <mark>%s</mark>"),e),{mark:(0,d.jsx)("mark",{})}),(0,d.jsx)(ws.MenuItem,{...n,iconPosition:"left",icon:cc,className:"block-editor-link-control__search-item",onClick:t,children:r})},dc=(0,d.jsx)(ue.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,d.jsx)(ue.Path,{d:"M18 5.5H6a.5.5 0 0 0-.5.5v12a.5.5 0 0 0 .5.5h12a.5.5 0 0 0 .5-.5V6a.5.5 0 0 0-.5-.5ZM6 4h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2Zm1 5h1.5v1.5H7V9Zm1.5 4.5H7V15h1.5v-1.5ZM10 9h7v1.5h-7V9Zm7 4.5h-7V15h7v-1.5Z"})}),pc=(0,d.jsxs)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,d.jsx)(ue.Path,{d:"M15.5 7.5h-7V9h7V7.5Zm-7 3.5h7v1.5h-7V11Zm7 3.5h-7V16h7v-1.5Z"}),(0,d.jsx)(ue.Path,{d:"M17 4H7a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2ZM7 5.5h10a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H7a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5Z"})]}),hc=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"M4.75 4a.75.75 0 0 0-.75.75v7.826c0 .2.08.39.22.53l6.72 6.716a2.313 2.313 0 0 0 3.276-.001l5.61-5.611-.531-.53.532.528a2.315 2.315 0 0 0 0-3.264L13.104 4.22a.75.75 0 0 0-.53-.22H4.75ZM19 12.576a.815.815 0 0 1-.236.574l-5.61 5.611a.814.814 0 0 1-1.153 0L5.5 12.264V5.5h6.763l6.5 6.502a.816.816 0 0 1 .237.574ZM8.75 9.75a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"})}),gc=(0,d.jsx)(ue.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,d.jsx)(ue.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"})}),mc=(0,d.jsx)(ue.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,d.jsx)(ue.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12.848 8a1 1 0 0 1-.914-.594l-.723-1.63a.5.5 0 0 0-.447-.276H5a.5.5 0 0 0-.5.5v11.5a.5.5 0 0 0 .5.5h14a.5.5 0 0 0 .5-.5v-9A.5.5 0 0 0 19 8h-6.152Zm.612-1.5a.5.5 0 0 1-.462-.31l-.445-1.084A2 2 0 0 0 10.763 4H5a2 2 0 0 0-2 2v11.5a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-9a2 2 0 0 0-2-2h-5.54Z"})}),fc=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.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-8Zm6.5 8c0 .6 0 1.2-.2 1.8h-2.7c0-.6.2-1.1.2-1.8s0-1.2-.2-1.8h2.7c.2.6.2 1.1.2 1.8Zm-.9-3.2h-2.4c-.3-.9-.7-1.8-1.1-2.4-.1-.2-.2-.4-.3-.5 1.6.5 3 1.6 3.8 3ZM12.8 17c-.3.5-.6 1-.8 1.3-.2-.3-.5-.8-.8-1.3-.3-.5-.6-1.1-.8-1.7h3.3c-.2.6-.5 1.2-.8 1.7Zm-2.9-3.2c-.1-.6-.2-1.1-.2-1.8s0-1.2.2-1.8H14c.1.6.2 1.1.2 1.8s0 1.2-.2 1.8H9.9ZM11.2 7c.3-.5.6-1 .8-1.3.2.3.5.8.8 1.3.3.5.6 1.1.8 1.7h-3.3c.2-.6.5-1.2.8-1.7Zm-1-1.2c-.1.2-.2.3-.3.5-.4.7-.8 1.5-1.1 2.4H6.4c.8-1.4 2.2-2.5 3.8-3Zm-1.8 8H5.7c-.2-.6-.2-1.1-.2-1.8s0-1.2.2-1.8h2.7c0 .6-.2 1.1-.2 1.8s0 1.2.2 1.8Zm-2 1.4h2.4c.3.9.7 1.8 1.1 2.4.1.2.2.4.3.5-1.6-.5-3-1.6-3.8-3Zm7.4 3c.1-.2.2-.3.3-.5.4-.7.8-1.5 1.1-2.4h2.4c-.8 1.4-2.2 2.5-3.8 3Z"})}),bc=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"M12 4L4 7.9V20h16V7.9L12 4zm6.5 14.5H14V13h-4v5.5H5.5V8.8L12 5.7l6.5 3.1v9.7z"})}),kc=(0,d.jsx)(ue.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,d.jsx)(ue.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"})});const vc={post:{icon:dc,label:(0,T.__)("Post")},page:{icon:pc,label:(0,T.__)("Page")},post_tag:{icon:hc,label:(0,T.__)("Tag")},category:{icon:gc,label:(0,T.__)("Category")},attachment:{icon:mc,label:(0,T.__)("Attachment")}};function _c({isURL:e,suggestion:t}){let n=null;return e?n=fc:t.type in vc&&(n=vc[t.type].icon,"page"===t.type&&(t.isFrontPage&&(n=bc),t.isBlogHome&&(n=kc))),n?(0,d.jsx)(Ol,{className:"block-editor-link-control__search-item-icon",icon:n}):null}function yc(e){const t=e?.trim();return t?.length?e?.replace(/^\/?/,"/"):e}function xc(e){const t=e?.trim();return t?.length?e?.replace(/\/$/,""):e}const Sc=({itemProps:e,suggestion:t,searchTerm:n,onClick:o,isURL:r=!1,shouldShowType:i=!1})=>{const s=r?(0,T.__)("Press ENTER to add this link"):(l=t.url)?(0,m.pipe)(Ua.safeDecodeURI,Ua.getPath,(e=>t=>null==t||t!=t?e:t)(""),((e,...t)=>(...n)=>e(...n,...t))(Ua.filterURLForDisplay,24),xc,yc)(l):l;var l;return(0,d.jsx)(ws.MenuItem,{...e,info:s,iconPosition:"left",icon:(0,d.jsx)(_c,{suggestion:t,isURL:r}),onClick:o,shortcut:i&&wc(t),className:"block-editor-link-control__search-item",children:(0,d.jsx)(ws.TextHighlight,{text:(0,Ga.__unstableStripHTML)(t.title),highlight:n})})};function wc(e){return e.isFrontPage?(0,T.__)("Front page"):e.isBlogHome?(0,T.__)("Blog home"):e.type in vc?vc[e.type].label:e.type}var Cc=Sc;const Bc=e=>(I()("wp.blockEditor.__experimentalLinkControlSearchItem",{since:"6.8"}),(0,d.jsx)(Sc,{...e})),Ic="__CREATE__",jc="link",Ec="mailto",Tc="internal",Mc=[jc,Ec,"tel",Tc],Pc=[{id:"opensInNewTab",title:(0,T.__)("Open in new tab")}];function Rc({withCreateSuggestion:e,currentInputValue:t,handleSuggestionClick:n,suggestionsListProps:o,buildSuggestionItemProps:r,suggestions:i,selectedSuggestion:s,isLoading:l,isInitialSuggestions:a,createSuggestionButtonText:c,suggestionsQuery:u}){const p=ms("block-editor-link-control__search-results",{"is-loading":l}),h=1===i.length&&Mc.includes(i[0].type),g=e&&!h&&!a,m=!u?.type,f=a?(0,T.__)("Suggestions"):(0,T.sprintf)((0,T.__)('Search results for "%s"'),t);return(0,d.jsx)("div",{className:"block-editor-link-control__search-results-wrapper",children:(0,d.jsx)("div",{...o,className:p,"aria-label":f,children:(0,d.jsx)(ws.MenuGroup,{children:i.map(((e,o)=>g&&Ic===e.type?(0,d.jsx)(uc,{searchTerm:t,buttonText:c,onClick:()=>n(e),itemProps:r(e,o),isSelected:o===s},e.type):Ic===e.type?null:(0,d.jsx)(Cc,{itemProps:r(e,o),suggestion:e,index:o,onClick:()=>{n(e)},isSelected:o===s,isURL:Mc.includes(e.type),searchTerm:t,shouldShowType:m,isFrontPage:e?.isFrontPage,isBlogHome:e?.isBlogHome},`${e.id}-${e.type}`)))})})})}var Ac=Rc;const Nc=e=>(I()("wp.blockEditor.__experimentalLinkControlSearchResults",{since:"6.8"}),(0,d.jsx)(Rc,{...e}));function Lc(e){if(e.includes(" "))return!1;const t=(0,Ua.getProtocol)(e),n=(0,Ua.isValidProtocol)(t),o=function(e,t=6){const n=e.split(/[?#]/)[0];return new RegExp(`(?<=\\S)\\.(?:[a-zA-Z_]{2,${t}})(?:\\/|$)`).test(n)}(e),r=e?.startsWith("www."),i=e?.startsWith("#")&&(0,Ua.isValidFragment)(e);return n||r||i||o}const Dc=()=>Promise.resolve([]),Oc=e=>{let t=jc;const n=(0,Ua.getProtocol)(e)||"";return n.includes("mailto")&&(t=Ec),n.includes("tel")&&(t="tel"),e?.startsWith("#")&&(t=Tc),Promise.resolve([{id:e,title:e,url:"URL"===t?(0,Ua.prependHTTP)(e):e,type:t}])};function zc(e,t,n){const{fetchSearchSuggestions:o,pageOnFront:r,pageForPosts:i}=(0,g.useSelect)((e=>{const{getSettings:t}=e(ji);return{pageOnFront:t().pageOnFront,pageForPosts:t().pageForPosts,fetchSearchSuggestions:t().__experimentalFetchLinkSuggestions}}),[]),s=t?Oc:Dc;return(0,h.useCallback)(((t,{isInitialSuggestions:l})=>Lc(t)?s(t,{isInitialSuggestions:l}):(async(e,t,n,o,r,i)=>{const{isInitialSuggestions:s}=t,l=await n(e,t);return l.map((e=>Number(e.id)===r?(e.isFrontPage=!0,e):Number(e.id)===i?(e.isBlogHome=!0,e):e)),s||Lc(e)||!o?l:l.concat({title:e,url:e,type:Ic})})(t,{...e,isInitialSuggestions:l},o,n,r,i)),[s,o,r,i,e,n])}const Vc=()=>Promise.resolve([]),Fc=()=>{},Hc=(0,h.forwardRef)((({value:e,children:t,currentLink:n={},className:o=null,placeholder:r=null,withCreateSuggestion:i=!1,onCreateSuggestion:s=Fc,onChange:l=Fc,onSelect:a=Fc,showSuggestions:c=!0,renderSuggestions:u=e=>(0,d.jsx)(Ac,{...e}),fetchSuggestions:p=null,allowDirectEntry:g=!0,showInitialSuggestions:m=!1,suggestionsQuery:f={},withURLSuggestion:b=!0,createSuggestionButtonText:k,hideLabelFromVision:v=!1,suffix:_,isEntity:y=!1},x)=>{const S=zc(f,g,i),w=c?p||S:Vc,[C,B]=(0,h.useState)(),I=async e=>{let t=e;if(Ic!==e.type){if(g||t&&Object.keys(t).length>=1){const{id:e,url:o,...r}=n??{};a({...r,...t},t)}}else try{t=await s(e.title),t?.url&&a(t)}catch(e){}},j=r??(0,T.__)("Search or type URL"),E=v&&""!==r?j:(0,T.__)("Link");return(0,d.jsxs)("div",{className:"block-editor-link-control__search-input-container",children:[(0,d.jsx)(ac,{disableSuggestions:n?.url===e,label:E,hideLabelFromVision:v,className:o,value:e,onChange:(e,t)=>{l(e),B(t)},placeholder:j,__experimentalRenderSuggestions:c?e=>u({...e,withCreateSuggestion:i,createSuggestionButtonText:k,suggestionsQuery:f,handleSuggestionClick:t=>{e.handleSuggestionClick&&e.handleSuggestionClick(t),I(t)}}):null,__experimentalFetchLinkSuggestions:w,__experimentalHandleURLSuggestions:!0,__experimentalShowInitialSuggestions:m,onSubmit:(t,n)=>{const o=t||C;o||e?.trim()?.length?I(o||{url:e}):n.preventDefault()},inputRef:x,suffix:_,disabled:y}),t]})}));var Uc=Hc;const Gc=e=>(I()("wp.blockEditor.__experimentalLinkControlSearchInput",{since:"6.8"}),(0,d.jsx)(Hc,{...e}));var $c=(0,d.jsx)(ue.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,d.jsx)(ue.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M5.5 12a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0ZM12 4a8 8 0 1 0 0 16 8 8 0 0 0 0-16Zm.75 4v1.5h-1.5V8h1.5Zm0 8v-5h-1.5v5h1.5Z"})}),Wc=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"m19 7-3-3-8.5 8.5-1 4 4-1L19 7Zm-7 11.5H5V20h7v-1.5Z"})}),Kc=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M5.625 5.5h9.75c.069 0 .125.056.125.125v9.75a.125.125 0 0 1-.125.125h-9.75a.125.125 0 0 1-.125-.125v-9.75c0-.069.056-.125.125-.125ZM4 5.625C4 4.728 4.728 4 5.625 4h9.75C16.273 4 17 4.728 17 5.625v9.75c0 .898-.727 1.625-1.625 1.625h-9.75A1.625 1.625 0 0 1 4 15.375v-9.75Zm14.5 11.656v-9H20v9C20 18.8 18.77 20 17.251 20H6.25v-1.5h11.001c.69 0 1.249-.528 1.249-1.219Z"})});const{Slot:Zc,Fill:qc}=(0,ws.createSlotFill)("BlockEditorLinkControlViewer");function Yc(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 Xc=function(e){const[t,n]=(0,h.useReducer)(Yc,{richData:null,isFetching:!1}),{fetchRichUrlData:o}=(0,g.useSelect)((e=>{const{getSettings:t}=e(ji);return{fetchRichUrlData:t().__experimentalFetchRichUrlData}}),[]);return(0,h.useEffect)((()=>{if(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 Qc({value:e,onEditClick:t,hasRichPreviews:n=!1,hasUnlinkControl:o=!1,onRemove:r}){const i=(0,g.useSelect)((e=>e(hr.store).get("core","showIconLabels")),[]),s=n?e?.url:null,{richData:l,isFetching:a}=Xc(s),c=l&&Object.keys(l).length,u=e&&(0,Ua.filterURLForDisplay)((0,Ua.safeDecodeURI)(e.url),24)||"",p=!e?.url?.length,h=!p&&(0,Ga.__unstableStripHTML)(l?.title||e?.title||u),f=!e?.url||h.replace(/^[a-z\-.\+]+[0-9]*:(\/\/)?/i,"").replace(/^www\./i,"")===u;let b;b=l?.icon?(0,d.jsx)("img",{src:l?.icon,alt:""}):p?(0,d.jsx)(Ol,{icon:$c,size:32}):(0,d.jsx)(Ol,{icon:fc});const{createNotice:k}=(0,g.useDispatch)(pr.store),v=(0,m.useCopyToClipboard)(e.url,(()=>{k("info",(0,T.__)("Link copied to clipboard."),{isDismissible:!0,type:"snackbar"})}));return(0,d.jsx)("div",{role:"group","aria-label":(0,T.__)("Manage link"),className:ms("block-editor-link-control__search-item",{"is-current":!0,"is-rich":c,"is-fetching":!!a,"is-preview":!0,"is-error":p,"is-url-title":h===u}),children:(0,d.jsxs)("div",{className:"block-editor-link-control__search-item-top",children:[(0,d.jsxs)("span",{className:"block-editor-link-control__search-item-header",role:"figure","aria-label":(0,T.__)("Link information"),children:[(0,d.jsx)("span",{className:ms("block-editor-link-control__search-item-icon",{"is-image":l?.icon}),children:b}),(0,d.jsx)("span",{className:"block-editor-link-control__search-item-details",children:p?(0,d.jsx)("span",{className:"block-editor-link-control__search-item-error-notice",children:(0,T.__)("Link is empty")}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(ws.ExternalLink,{className:"block-editor-link-control__search-item-title",href:e.url,children:(0,d.jsx)(ws.__experimentalTruncate,{numberOfLines:1,children:h})}),!f&&(0,d.jsx)("span",{className:"block-editor-link-control__search-item-info",children:(0,d.jsx)(ws.__experimentalTruncate,{numberOfLines:1,children:u})})]})})]}),(0,d.jsx)(ws.Button,{icon:Wc,label:(0,T.__)("Edit link"),onClick:t,size:"compact",showTooltip:!i}),o&&(0,d.jsx)(ws.Button,{icon:ec,label:(0,T.__)("Remove link"),onClick:r,size:"compact",showTooltip:!i}),(0,d.jsx)(ws.Button,{icon:Kc,label:(0,T.__)("Copy link"),ref:v,accessibleWhenDisabled:!0,disabled:p,size:"compact",showTooltip:!i}),(0,d.jsx)(Zc,{fillProps:e})]})})}const Jc=()=>{};var eu=({value:e,onChange:t=Jc,settings:n})=>{if(!n||!n.length)return null;const o=n=>o=>{t({...e,[n.id]:o})},r=n.map((n=>{if("render"in n){if("function"==typeof n.render){const o=n.render(n,e,t);return(0,d.jsx)("div",{className:"block-editor-link-control__setting",children:o},n.id)}return null}return(0,d.jsx)(ws.CheckboxControl,{__nextHasNoMarginBottom:!0,className:"block-editor-link-control__setting",label:n.title,onChange:o(n),checked:!!e&&!!e[n.id],help:n?.help},n.id)})).filter(Boolean);return(0,d.jsxs)("fieldset",{className:"block-editor-link-control__settings",children:[(0,d.jsx)(ws.VisuallyHidden,{as:"legend",children:(0,T.__)("Currently selected link settings")}),r]})};const tu=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}}};var nu=n(5215),ou=n.n(nu);const ru=()=>{},iu="core/block-editor",su="linkControlSettingsDrawer";function lu({searchInputPlaceholder:e,value:t,settings:n=Pc,onChange:o=ru,onRemove:r,onCancel:i,noDirectEntry:s=!1,showSuggestions:l=!0,showInitialSuggestions:a,forceIsEditingLink:c,createSuggestion:u,withCreateSuggestion:p,inputValue:f="",suggestionsQuery:b={},noURLSuggestion:k=!1,createSuggestionButtonText:v,hasRichPreviews:_=!1,hasTextControl:y=!1,renderControlBottom:x=null,handleEntities:S=!1}){void 0===p&&u&&(p=!0);const[w,C]=(0,h.useState)(!1),{advancedSettingsPreference:B}=(0,g.useSelect)((e=>({advancedSettingsPreference:e(hr.store).get(iu,su)??!1})),[]),{set:I}=(0,g.useDispatch)(hr.store),j=B||w,E=(0,h.useRef)(!0),M=(0,h.useRef)(),P=(0,h.useRef)(),R=(0,h.useRef)(),A=(0,h.useRef)(!1),N=n.map((({id:e})=>e)),[L,D,O,z,V]=function(e){const[t,n]=(0,h.useState)(e||{}),[o,r]=(0,h.useState)(e);return ou()(e,o)||(r(e),n(e)),[t,n,e=>{n({...t,url:e})},e=>{n({...t,title:e})},e=>o=>{const r=Object.keys(o).reduce(((t,n)=>(e.includes(n)&&(t[n]=o[n]),t)),{});n({...t,...r})}]}(t),F=S&&!!L?.id,H=(0,m.useInstanceId)(lu,"link-control"),U=F?`${H}__help`:null,G=t&&!(0,Qa.isShallowEqualObjects)(L,t),[$,W]=(0,h.useState)(void 0!==c?c:!t||!t.url),{createPage:K,isCreatingPage:Z,errorMessage:q}=function(e){const t=(0,h.useRef)(),[n,o]=(0,h.useState)(!1),[r,i]=(0,h.useState)(null);return(0,h.useEffect)((()=>()=>{t.current&&t.current.cancel()}),[]),{createPage:async function(n){o(!0),i(null);try{return t.current=tu(Promise.resolve(e(n))),await t.current.promise}catch(e){if(e&&e.isCanceled)return;throw i(e.message||(0,T.__)("An unknown error occurred during creation. Please try again.")),e}finally{o(!1)}},isCreatingPage:n,errorMessage:r}}(u);(0,h.useEffect)((()=>{void 0!==c&&W(c)}),[c]),(0,h.useEffect)((()=>{if(E.current)return;(Ga.focus.focusable.find(M.current)[0]||M.current).focus(),A.current=!1}),[$,Z]),(0,h.useEffect)((()=>(E.current=!1,()=>{E.current=!0})),[]);const Y=t?.url?.trim()?.length>0,X=()=>{A.current=!!M.current?.contains(M.current.ownerDocument.activeElement),W(!1)},Q=()=>{G&&o({...t,...L,url:te}),X()},[J,ee]=(0,h.useState)(!1);(0,h.useEffect)((()=>{J&&(R.current?.focus(),ee(!1))}),[J]);const te=f||L?.url||"",ne=!te?.trim()?.length,oe=r&&t&&!$&&!Z,re=$&&Y,ie=Y&&y,se=($||!t)&&!Z,le=!G||ne,ae=!!n?.length&&$&&Y;return(0,d.jsxs)("div",{tabIndex:-1,ref:M,className:"block-editor-link-control",children:[Z&&(0,d.jsxs)("div",{className:"block-editor-link-control__loading",children:[(0,d.jsx)(ws.Spinner,{})," ",(0,T.__)("Creating"),"…"]}),se&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{className:ms({"block-editor-link-control__search-input-wrapper":!0,"has-text-control":ie,"has-actions":re}),children:[ie&&(0,d.jsx)(ws.TextControl,{__nextHasNoMarginBottom:!0,ref:P,className:"block-editor-link-control__field block-editor-link-control__text-content",label:(0,T.__)("Text"),value:L?.title,onChange:z,onKeyDown:e=>{const{keyCode:t}=e;t!==Wa.ENTER||ne||(e.preventDefault(),Q())},__next40pxDefaultSize:!0}),(0,d.jsx)(Uc,{ref:R,currentLink:t,className:"block-editor-link-control__field block-editor-link-control__search-input",placeholder:e,value:te,withCreateSuggestion:p,onCreateSuggestion:K,onChange:O,onSelect:e=>{const t=Object.keys(e).reduce(((t,n)=>(N.includes(n)||(t[n]=e[n]),t)),{});o({...L,...t,title:L?.title||e?.title}),X()},showInitialSuggestions:a,allowDirectEntry:!s,showSuggestions:l,suggestionsQuery:b,withURLSuggestion:!k,createSuggestionButtonText:v,hideLabelFromVision:!ie,isEntity:F,suffix:(0,d.jsx)(au,{isEntity:F,showActions:re,isDisabled:le,onUnlink:()=>{const{id:e,kind:t,type:n,...o}=L;D({...o,id:void 0,kind:void 0,type:void 0,url:void 0}),ee(!0)},onSubmit:Q,helpTextId:U})}),F&&U&&(0,d.jsx)("p",{id:U,className:"block-editor-link-control__help",children:(0,T.sprintf)((0,T.__)("Synced with the selected %s."),L?.type||"item")})]}),q&&(0,d.jsx)(ws.Notice,{className:"block-editor-link-control__search-error",status:"error",isDismissible:!1,children:q})]}),t&&!$&&!Z&&(0,d.jsx)(Qc,{value:t,onEditClick:()=>W(!0),hasRichPreviews:_,hasUnlinkControl:oe,onRemove:()=>{r(),W(!0)}},t?.url),ae&&(0,d.jsx)("div",{className:"block-editor-link-control__tools",children:!ne&&(0,d.jsx)(rc,{settingsOpen:j,setSettingsOpen:e=>{I&&I(iu,su,e),C(e)},children:(0,d.jsx)(eu,{value:L,settings:n,onChange:V(N)})})}),re&&(0,d.jsxs)(ws.__experimentalHStack,{justify:"right",className:"block-editor-link-control__search-actions",children:[(0,d.jsx)(ws.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:e=>{e.preventDefault(),e.stopPropagation(),D(t),Y?X():r?.(),i?.()},children:(0,T.__)("Cancel")}),(0,d.jsx)(ws.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:le?ru:Q,className:"block-editor-link-control__search-submit","aria-disabled":le,children:(0,T.__)("Apply")})]}),!Z&&x&&x()]})}function au({isEntity:e,showActions:t,isDisabled:n,onUnlink:o,onSubmit:r,helpTextId:i}){return e?(0,d.jsx)(ws.Button,{icon:ec,onClick:o,"aria-describedby":i,showTooltip:!0,label:(0,T.__)("Unsync and edit"),__next40pxDefaultSize:!0}):t?void 0:(0,d.jsx)(ws.__experimentalInputControlSuffixWrapper,{variant:"control",children:(0,d.jsx)(ws.Button,{onClick:n?ru:r,label:(0,T.__)("Submit"),icon:tc,className:"block-editor-link-control__search-submit","aria-disabled":n,size:"small"})})}lu.ViewerFill=qc,lu.DEFAULT_LINK_SETTINGS=Pc;const cu=e=>(I()("wp.blockEditor.__experimentalLinkControl",{since:"6.8",alternative:"wp.blockEditor.LinkControl"}),(0,d.jsx)(lu,{...e}));cu.ViewerFill=lu.ViewerFill,cu.DEFAULT_LINK_SETTINGS=lu.DEFAULT_LINK_SETTINGS;var uu=lu;const du=()=>{};let pu=0;var hu=(0,m.compose)([(0,g.withDispatch)((e=>{const{createNotice:t,removeNotice:n}=e(pr.store);return{createNotice:t,removeNotice:n}})),(0,ws.withFilters)("editor.MediaReplaceFlow")])((({mediaURL:e,mediaId:t,mediaIds:n,allowedTypes:o,accept:r,onError:i,onSelect:s,onSelectURL:l,onReset:a,onToggleFeaturedImage:c,useFeaturedImage:u,onFilesUpload:p=du,name:h=(0,T.__)("Replace"),createNotice:m,removeNotice:f,children:b,multiple:k=!1,addToGallery:v,handleUpload:_=!0,popoverProps:y,renderToggle:x})=>{const{getSettings:S}=(0,g.useSelect)(ji),w="block-editor/media-replace-flow/error-notice/"+ ++pu,C=e=>{const t=(0,Ga.__unstableStripHTML)(e);i?i(t):setTimeout((()=>{m("error",t,{speak:!0,id:w,isDismissible:!0})}),1e3)},B=(e,t)=>{u&&c&&c(),t(),s(e),(0,Uo.speak)((0,T.__)("The media file has been replaced")),f(w)},I=e=>{e.keyCode===Wa.DOWN&&(e.preventDefault(),e.target.click())},j=k&&!(!o||0===o.length)&&o.every((e=>"image"===e||e.startsWith("image/")));return(0,d.jsx)(ws.Dropdown,{popoverProps:y,contentClassName:"block-editor-media-replace-flow__options",renderToggle:({isOpen:e,onToggle:t})=>x?x({"aria-expanded":e,"aria-haspopup":"true",onClick:t,onKeyDown:I,children:h}):(0,d.jsx)(ws.ToolbarButton,{"aria-expanded":e,"aria-haspopup":"true",onClick:t,onKeyDown:I,children:h}),renderContent:({onClose:i})=>(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(ws.NavigableMenu,{className:"block-editor-media-replace-flow__media-upload-menu",children:[(0,d.jsxs)(Xa,{children:[(0,d.jsx)(Ya,{gallery:j,addToGallery:v,multiple:k,value:k?n:t,onSelect:e=>B(e,i),allowedTypes:o,render:({open:e})=>(0,d.jsx)(ws.MenuItem,{icon:Ka,onClick:e,children:(0,T.__)("Open Media Library")})}),(0,d.jsx)(ws.FormFileUpload,{onChange:e=>{((e,t)=>{const n=e.target.files;if(!_)return t(),s(n);p(n),S().mediaUpload({allowedTypes:o,filesList:n,onFileChange:([e])=>{B(e,t)},onError:C})})(e,i)},accept:r,multiple:!!k,render:({openFileDialog:e})=>(0,d.jsx)(ws.MenuItem,{icon:Za,onClick:()=>{e()},children:(0,T._x)("Upload","verb")})})]}),c&&(0,d.jsx)(ws.MenuItem,{icon:qa,onClick:c,isPressed:u,children:(0,T.__)("Use featured image")}),e&&a&&(0,d.jsx)(ws.MenuItem,{onClick:()=>{a(),i()},children:(0,T.__)("Reset")}),"function"==typeof b?b({onClose:i}):b]}),l&&(0,d.jsxs)("form",{className:"block-editor-media-flow__url-input",children:[(0,d.jsx)("span",{className:"block-editor-media-replace-flow__image-url-label",children:(0,T.__)("Current media URL:")}),(0,d.jsx)(uu,{value:{url:e},settings:[],showSuggestions:!1,onChange:({url:e})=>{l(e)},searchInputPlaceholder:(0,T.__)("Paste or type URL")})]})]})})}));const gu="image",mu={placement:"left-start",offset:36,shift:!0,className:"block-editor-global-styles-background-panel__popover"},fu=()=>{},bu=e=>{window.requestAnimationFrame((()=>{const[t]=Ga.focus.tabbable.find(e?.current);t&&t.focus()}))};const ku=e=>{if(!e||isNaN(e.x)&&isNaN(e.y))return;return`${100*(isNaN(e.x)?.5:e.x)}% ${100*(isNaN(e.y)?.5:e.y)}%`},vu=e=>{if(!e)return{x:void 0,y:void 0};let[t,n]=e.split(" ").map((e=>parseFloat(e)/100));return t=isNaN(t)?void 0:t,n=isNaN(n)?t:n,{x:t,y:n}};function _u({as:e="span",imgUrl:t,toggleProps:n={},filename:o,label:r,onToggleCallback:i=fu}){const{isOpen:s,...l}=n;(0,h.useEffect)((()=>{void 0!==s&&i(s)}),[s,i]);const a=()=>(0,d.jsxs)(ws.__experimentalHStack,{justify:"flex-start",as:"span",className:"block-editor-global-styles-background-panel__inspector-preview-inner",children:[t&&(0,d.jsx)("span",{className:"block-editor-global-styles-background-panel__inspector-image-indicator-wrapper","aria-hidden":!0,children:(0,d.jsx)("span",{className:"block-editor-global-styles-background-panel__inspector-image-indicator",style:{backgroundImage:`url(${t})`}})}),(0,d.jsxs)(ws.FlexItem,{as:"span",style:t?{}:{flexGrow:1},children:[(0,d.jsx)(ws.__experimentalTruncate,{numberOfLines:1,className:"block-editor-global-styles-background-panel__inspector-media-replace-title",children:r}),(0,d.jsx)(ws.VisuallyHidden,{as:"span",children:t?(0,T.sprintf)((0,T.__)("Background image: %s"),o||r):(0,T.__)("No background image selected")})]})]});return"button"===e?(0,d.jsx)(ws.Button,{__next40pxDefaultSize:!0,...l,children:a()}):a()}function yu({label:e,filename:t,url:n,children:o,onToggle:r=fu,hasImageValue:i,onReset:s,containerRef:l}){if(!i)return;const a=e||(0,Ua.getFilename)(n)||(0,T.__)("Add background image");return(0,d.jsx)(ws.Dropdown,{popoverProps:mu,renderToggle:({onToggle:e,isOpen:o})=>{const i={onClick:e,className:"block-editor-global-styles-background-panel__dropdown-toggle","aria-expanded":o,"aria-label":(0,T.__)("Background size, position and repeat options."),isOpen:o};return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(_u,{imgUrl:n,filename:t,label:a,toggleProps:i,as:"button",onToggleCallback:r}),s&&(0,d.jsx)(ws.Button,{__next40pxDefaultSize:!0,label:(0,T.__)("Reset"),className:"block-editor-global-styles-background-panel__reset",size:"small",icon:Ha,onClick:()=>{s(),o&&e(),bu(l)}})]})},renderContent:()=>(0,d.jsx)(ws.__experimentalDropdownContentWrapper,{className:"block-editor-global-styles-background-panel__dropdown-content-wrapper",paddingSize:"medium",children:o})})}function xu(){return(0,d.jsx)(ws.Placeholder,{className:"block-editor-global-styles-background-panel__loading",children:(0,d.jsx)(ws.Spinner,{})})}function Su({onChange:e,style:t,inheritedValue:n,onRemoveImage:o=fu,onResetImage:r=fu,displayInPanel:i,defaultValues:s,containerRef:l}){const[a,c]=(0,h.useState)(!1),{getSettings:u}=(0,g.useSelect)(ji),{id:p,title:m,url:f}=t?.background?.backgroundImage||{...n?.background?.backgroundImage},{createErrorNotice:b}=(0,g.useDispatch)(pr.store),k=e=>{b(e,{type:"snackbar"}),c(!1)},v=n=>{if(!n||!n.url)return e(me(t,["background","backgroundImage"],void 0)),void c(!1);if((0,$a.isBlobURL)(n.url))return void c(!0);if(n.media_type&&n.media_type!==gu||!n.media_type&&n.type&&n.type!==gu)return void k((0,T.__)("Only images can be used as a background image."));const o=t?.background?.backgroundSize||s?.backgroundSize,r=t?.background?.backgroundPosition;e(me(t,["background"],{...t?.background,backgroundImage:{url:n.url,id:n.id,source:"file",title:n.title||void 0},backgroundPosition:r||"auto"!==o&&o?r:"50% 0",backgroundSize:o})),c(!1),bu(l)},_=ju(t),y=!_&&ju(n),x=m||(0,Ua.getFilename)(f)||(0,T.__)("Add background image");return(0,d.jsxs)("div",{className:"block-editor-global-styles-background-panel__image-tools-panel-item",children:[a&&(0,d.jsx)(xu,{}),(0,d.jsx)(hu,{mediaId:p,mediaURL:f,allowedTypes:[gu],accept:"image/*",onSelect:v,popoverProps:{className:ms({"block-editor-global-styles-background-panel__media-replace-popover":i})},name:(0,d.jsx)(_u,{imgUrl:f,filename:m,label:x}),renderToggle:e=>(0,d.jsx)(ws.Button,{...e,__next40pxDefaultSize:!0}),onError:k,onReset:()=>{bu(l),r()},children:y&&(0,d.jsx)(ws.MenuItem,{onClick:()=>{bu(l),e(me(t,["background"],{backgroundImage:"none"})),o()},children:(0,T.__)("Remove")})}),(0,d.jsx)(ws.DropZone,{onFilesDrop:e=>{u().mediaUpload({allowedTypes:[gu],filesList:e,onFileChange([e]){v(e)},onError:k,multiple:!1})},label:(0,T.__)("Drop to upload")})]})}function wu({onChange:e,style:t,inheritedValue:n,defaultValues:o}){const r=t?.background?.backgroundSize||n?.background?.backgroundSize,i=t?.background?.backgroundRepeat||n?.background?.backgroundRepeat,s=t?.background?.backgroundImage?.url||n?.background?.backgroundImage?.url,l=t?.background?.backgroundImage?.id,a=t?.background?.backgroundPosition||n?.background?.backgroundPosition,c=t?.background?.backgroundAttachment||n?.background?.backgroundAttachment;let u=!r&&l?o?.backgroundSize:r||"auto";u=["cover","contain","auto"].includes(u)?u:"auto";const p=!("no-repeat"===i||"cover"===u&&void 0===i),h=n=>{let o=i,r=a;"contain"===n&&(o="no-repeat",r=void 0),"cover"===n&&(o=void 0,r=void 0),"cover"!==u&&"contain"!==u||"auto"!==n||(o=void 0,t?.background?.backgroundImage?.id&&(r="50% 0")),n||"auto"!==u||(n="auto"),e(me(t,["background"],{...t?.background,backgroundPosition:r,backgroundRepeat:o,backgroundSize:n}))},g=!a&&l&&"contain"===r?o?.backgroundPosition:a;return(0,d.jsxs)(ws.__experimentalVStack,{spacing:3,className:"single-column",children:[(0,d.jsx)(ws.FocalPointPicker,{__nextHasNoMarginBottom:!0,label:(0,T.__)("Focal point"),url:s,value:vu(g),onChange:n=>{e(me(t,["background","backgroundPosition"],ku(n)))}}),(0,d.jsx)(ws.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,T.__)("Fixed background"),checked:"fixed"===c,onChange:()=>e(me(t,["background","backgroundAttachment"],"fixed"===c?"scroll":"fixed"))}),(0,d.jsxs)(ws.__experimentalToggleGroupControl,{__nextHasNoMarginBottom:!0,size:"__unstable-large",label:(0,T.__)("Size"),value:u,onChange:h,isBlock:!0,help:(m=r||o?.backgroundSize,"cover"===m||void 0===m?(0,T.__)("Image covers the space evenly."):"contain"===m?(0,T.__)("Image is contained without distortion."):(0,T.__)("Image has a fixed width.")),children:[(0,d.jsx)(ws.__experimentalToggleGroupControlOption,{value:"cover",label:(0,T._x)("Cover","Size option for background image control")},"cover"),(0,d.jsx)(ws.__experimentalToggleGroupControlOption,{value:"contain",label:(0,T._x)("Contain","Size option for background image control")},"contain"),(0,d.jsx)(ws.__experimentalToggleGroupControlOption,{value:"auto",label:(0,T._x)("Tile","Size option for background image control")},"tile")]}),(0,d.jsxs)(ws.__experimentalHStack,{justify:"flex-start",spacing:2,as:"span",children:[(0,d.jsx)(ws.__experimentalUnitControl,{"aria-label":(0,T.__)("Background image width"),onChange:h,value:r,size:"__unstable-large",__unstableInputWidth:"100px",min:0,placeholder:(0,T.__)("Auto"),disabled:"auto"!==u||void 0===u}),(0,d.jsx)(ws.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,T.__)("Repeat"),checked:p,onChange:()=>e(me(t,["background","backgroundRepeat"],!0===p?"no-repeat":"repeat")),disabled:"cover"===u})]})]});var m}function Cu({value:e,onChange:t,inheritedValue:n=e,settings:o,defaultValues:r={}}){const{globalStyles:i,_links:s}=(0,g.useSelect)((e=>{const{getSettings:t}=e(ji),n=t();return{globalStyles:n[N],_links:n[L]}}),[]),l=(0,h.useMemo)((()=>{const e={background:{}};return n?.background?(Object.entries(n?.background).forEach((([t,n])=>{e.background[t]=rs(n,{styles:i,_links:s})})),e):n}),[i,s,n]),a=()=>t(me(e,["background"],{})),{title:c,url:u}=e?.background?.backgroundImage||{...l?.background?.backgroundImage},p=ju(e)||ju(l),m=p&&"none"!==(e?.background?.backgroundImage||n?.background?.backgroundImage)&&(o?.background?.backgroundSize||o?.background?.backgroundPosition||o?.background?.backgroundRepeat),[f,b]=(0,h.useState)(!1),k=(0,h.useRef)();return(0,d.jsx)("div",{ref:k,className:ms("block-editor-global-styles-background-panel__inspector-media-replace-container",{"is-open":f}),children:m?(0,d.jsx)(yu,{label:c,filename:c,url:u,onToggle:b,hasImageValue:p,onReset:a,containerRef:k,children:(0,d.jsxs)(ws.__experimentalVStack,{spacing:3,className:"single-column",children:[(0,d.jsx)(Su,{onChange:t,style:e,inheritedValue:l,displayInPanel:!0,onResetImage:()=>{b(!1),a()},onRemoveImage:()=>b(!1),defaultValues:r,containerRef:k}),(0,d.jsx)(wu,{onChange:t,style:e,defaultValues:r,inheritedValue:l})]})}):(0,d.jsx)(Su,{onChange:t,style:e,inheritedValue:l,defaultValues:r,onResetImage:()=>{b(!1),a()},onRemoveImage:()=>b(!1),containerRef:k})})}const Bu={backgroundImage:!0};function Iu(e){return"web"===h.Platform.OS&&e?.background?.backgroundImage}function ju(e){return!!e?.background?.backgroundImage?.id||"string"==typeof e?.background?.backgroundImage||!!e?.background?.backgroundImage?.url}function Eu({resetAllFilter:e,onChange:t,value:n,panelId:o,children:r,headerLabel:i}){const s=Ji();return(0,d.jsx)(ws.__experimentalToolsPanel,{label:i,resetAll:()=>{const o=e(n);t(o)},panelId:o,dropdownMenuProps:s,children:r})}function Tu({as:e=Eu,value:t,onChange:n,inheritedValue:o,settings:r,panelId:i,defaultControls:s=Bu,defaultValues:l={},headerLabel:a=(0,T.__)("Background image")}){const c=Iu(r),u=(0,h.useCallback)((e=>({...e,background:{}})),[]);return(0,d.jsx)(e,{resetAllFilter:u,value:t,onChange:n,panelId:i,headerLabel:a,children:c&&(0,d.jsx)(ws.__experimentalToolsPanelItem,{hasValue:()=>!!t?.background,label:(0,T.__)("Image"),onDeselect:()=>n(me(t,["background"],{})),isShownByDefault:s.backgroundImage,panelId:i,children:(0,d.jsx)(Cu,{value:t,onChange:n,settings:r,inheritedValue:o,defaultControls:s,defaultValues:l})})})}const Mu="background",Pu={backgroundSize:"cover",backgroundPosition:"50% 50%"};function Ru(e,t="any"){const n=(0,p.getBlockSupport)(e,Mu);return!0===n||("any"===t?!!n?.backgroundImage||!!n?.backgroundSize||!!n?.backgroundRepeat:!!n?.[t])}function Au(e){if(!e||!e?.backgroundImage?.url)return;let t;return e?.backgroundSize||(t={backgroundSize:Pu.backgroundSize}),"contain"!==e?.backgroundSize||e?.backgroundPosition||(t={backgroundPosition:Pu.backgroundPosition}),t}function Nu(e){return ju(e)?"has-background":""}function Lu({children:e}){const t=(0,h.useCallback)((e=>({...e,style:{...e.style,background:void 0}})),[]);return(0,d.jsx)(Fa,{group:"background",resetAllFilter:t,children:e})}function Du({clientId:e,name:t,setAttributes:n,settings:o}){const{style:r,inheritedValue:i}=(0,g.useSelect)((n=>{const{getBlockAttributes:o,getSettings:r}=n(ji),i=r();return{style:o(e)?.style,inheritedValue:i[N]?.blocks?.[t]}}),[e,t]);if(!Iu(o)||!Ru(t,"backgroundImage"))return null;const s={...o,background:{...o.background,backgroundSize:o?.background?.backgroundSize&&Ru(t,"backgroundSize")}},l=(0,p.getBlockSupport)(t,[Mu,"defaultControls"]);return(0,d.jsx)(Tu,{inheritedValue:i,as:Lu,panelId:e,defaultValues:Pu,settings:s,onChange:e=>{n({style:fs(e)})},defaultControls:l,value:r})}var Ou={useBlockProps:function({name:e,style:t}){if(!Ru(e)||!t?.background?.backgroundImage)return;const n=Au(t?.background);return n?{style:{...n}}:void 0},attributeKeys:["style"],hasSupport:Ru};(0,f.addFilter)("blocks.registerBlockType","core/lock/addAttribute",(function(e){return"type"in(e.attributes?.lock??{})||(e.attributes={...e.attributes,lock:{type:"object"}}),e}));var zu=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.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"})});var Vu=(0,h.memo)((function({icon:e,showColors:t=!1,className:n,context:o}){"block-default"===e?.src&&(e={src:zu});const r=(0,d.jsx)(ws.Icon,{icon:e&&e.src?e.src:e,context:o}),i=t?{backgroundColor:e&&e.background,color:e&&e.foreground}:{};return(0,d.jsx)("span",{style:i,className:ms("block-editor-block-icon",n,{"has-colors":t}),children:r})}));var Fu=function({blockTypes:e,value:t,onItemChange:n}){return(0,d.jsx)("ul",{className:"block-editor-block-manager__checklist",children:e.map((e=>(0,d.jsxs)("li",{className:"block-editor-block-manager__checklist-item",children:[(0,d.jsx)(ws.CheckboxControl,{__nextHasNoMarginBottom:!0,label:e.title,checked:t.includes(e.name),onChange:(...t)=>n(e,...t)}),(0,d.jsx)(Vu,{icon:e.icon})]},e.name)))})};var Hu=function e({title:t,blockTypes:n,selectedBlockTypes:o,onChange:r}){const i=(0,m.useInstanceId)(e),s=(0,h.useCallback)(((e,t)=>{r(t?[...o,e]:o.filter((({name:t})=>t!==e.name)))}),[o,r]),l=(0,h.useCallback)((e=>{r(e?[...o,...n.filter((e=>!o.find((({name:t})=>t===e.name))))]:o.filter((e=>!n.find((({name:t})=>t===e.name)))))}),[n,o,r]);if(!n.length)return null;const a=n.map((({name:e})=>e)).filter((e=>(o??[]).some((t=>t.name===e)))),c="block-editor-block-manager__category-title-"+i,u=a.length===n.length,p=!u&&a.length>0;return(0,d.jsxs)("div",{role:"group","aria-labelledby":c,className:"block-editor-block-manager__category",children:[(0,d.jsx)(ws.CheckboxControl,{__nextHasNoMarginBottom:!0,checked:u,onChange:l,className:"block-editor-block-manager__category-title",indeterminate:p,label:(0,d.jsx)("span",{id:c,children:t})}),(0,d.jsx)(Fu,{blockTypes:n,value:a,onItemChange:s})]})};function Uu({blockTypes:e,selectedBlockTypes:t,onChange:n,showSelectAll:o=!0}){const r=(0,m.useDebounce)(Uo.speak,500),[i,s]=(0,h.useState)(""),{categories:l,isMatchingSearchTerm:a}=(0,g.useSelect)((e=>({categories:e(p.store).getCategories(),isMatchingSearchTerm:e(p.store).isMatchingSearchTerm})),[]),c=e.filter((e=>!i||a(e,i))),u=t.length>0&&t.length!==e.length,f=e.length>0&&t.length===e.length;return(0,h.useEffect)((()=>{if(!i)return;const e=c.length,t=(0,T.sprintf)((0,T._n)("%d result found.","%d results found.",e),e);r(t)}),[c?.length,i,r]),(0,d.jsxs)(ws.__experimentalVStack,{className:"block-editor-block-manager__content",spacing:4,children:[(0,d.jsx)(ws.SearchControl,{__nextHasNoMarginBottom:!0,label:(0,T.__)("Search for a block"),placeholder:(0,T.__)("Search for a block"),value:i,onChange:e=>s(e),className:"block-editor-block-manager__search"}),o&&(0,d.jsx)(ws.CheckboxControl,{className:"block-editor-block-manager__select-all",label:(0,T.__)("Select all"),checked:f,onChange:()=>{n(f?[]:e)},indeterminate:u,__nextHasNoMarginBottom:!0}),(0,d.jsxs)("div",{tabIndex:"0",role:"region","aria-label":(0,T.__)("Available block types"),className:"block-editor-block-manager__results",children:[0===c.length&&(0,d.jsx)("p",{className:"block-editor-block-manager__no-results",children:(0,T.__)("No blocks found.")}),l.map((e=>(0,d.jsx)(Hu,{title:e.title,blockTypes:c.filter((t=>t.category===e.slug)),selectedBlockTypes:t,onChange:n},e.slug))),(0,d.jsx)(Hu,{title:(0,T.__)("Uncategorized"),blockTypes:c.filter((({category:e})=>!e)),selectedBlockTypes:t,onChange:n})]})]})}function Gu({clientId:e,blockTypes:t,selectedBlockTypes:n,onClose:o}){const[r,i]=(0,h.useState)(n),{updateBlockAttributes:s}=(0,g.useDispatch)(ji);return(0,d.jsx)(ws.Modal,{title:(0,T.__)("Manage allowed blocks"),onRequestClose:o,overlayClassName:"block-editor-block-allowed-blocks-modal",focusOnMount:"firstContentElement",size:"medium",children:(0,d.jsxs)(ws.__experimentalVStack,{as:"form",onSubmit:n=>{n.preventDefault(),(()=>{const n=r.length===t.length,i=r.map((({name:e})=>e));s(e,{allowedBlocks:n?void 0:i}),o()})()},spacing:"4",children:[(0,d.jsx)(ws.__experimentalText,{children:(0,T.__)("Select which blocks can be added inside this container.")}),(0,d.jsx)(Uu,{blockTypes:t,selectedBlockTypes:r,onChange:e=>{i(e)}}),(0,d.jsxs)(ws.Flex,{className:"block-editor-block-allowed-blocks-modal__actions",justify:"flex-end",expanded:!1,children:[(0,d.jsx)(ws.FlexItem,{children:(0,d.jsx)(ws.Button,{variant:"tertiary",onClick:o,__next40pxDefaultSize:!0,children:(0,T.__)("Cancel")})}),(0,d.jsx)(ws.FlexItem,{children:(0,d.jsx)(ws.Button,{variant:"primary",type:"submit",__next40pxDefaultSize:!0,children:(0,T.__)("Apply")})})]})]})})}function $u({clientId:e}){const[t,n]=(0,h.useState)(!1),{blockTypes:o,selectedBlockNames:r}=(0,g.useSelect)((t=>{const{getBlockAttributes:n}=t(ji);return{blockTypes:t(p.store).getBlockTypes(),selectedBlockNames:n(e)?.allowedBlocks}}),[e]),i=o.filter((e=>(0,p.hasBlockSupport)(e,"inserter",!0)&&(!e.parent||e.parent.includes("core/post-content"))));if(!i)return null;const s=void 0===r?i:i.filter((e=>r.includes(e.name)));return(0,d.jsxs)("div",{className:"block-editor-block-allowed-blocks-control",children:[(0,d.jsxs)(ws.BaseControl,{help:(0,T.__)("Specify which blocks are allowed inside this container."),__nextHasNoMarginBottom:!0,children:[(0,d.jsx)(ws.BaseControl.VisualLabel,{children:(0,T.__)("Allowed Blocks")}),(0,d.jsx)(ws.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:()=>{n(!0)},className:"block-editor-block-allowed-blocks-control__button",children:(0,T.__)("Manage allowed blocks")})]}),t&&(0,d.jsx)(Gu,{clientId:e,blockTypes:i,selectedBlockTypes:s,onClose:()=>n(!1)})]})}var Wu={edit:function({clientId:e}){return(0,g.useSelect)((t=>"contentOnly"===t(ji).getBlockEditingMode(e)),[e])?null:(0,d.jsx)(Pa.Fill,{children:(0,d.jsx)($u,{clientId:e})})},attributeKeys:["allowedBlocks"],hasSupport:e=>(0,p.hasBlockSupport)(e,"allowedBlocks")};(0,f.addFilter)("blocks.registerBlockType","core/allowedBlocks/attribute",(function(e){return e?.attributes?.allowedBlocks?.type||(0,p.hasBlockSupport)(e,"allowedBlocks")&&(e.attributes={...e.attributes,allowedBlocks:{type:"array"}}),e})),(0,f.addFilter)("blocks.switchToBlockType.transformedBlock","core/allowedBlocks/addTransforms",(function(e,t,n,o){if(!(0,p.hasBlockSupport)(e.name,"allowedBlocks"))return e;if(1!==t.length&&1===o.length&&e.innerBlocks.length===t.length)return e;if(1===o.length&&t.length>1||o.length>1&&1===t.length)return e;if(o.length>1&&t.length>1&&o.length!==t.length)return e;if(e.attributes.allowedBlocks)return e;const r=t[n]?.attributes?.allowedBlocks;if(!r)return e;const i=(0,p.getBlockType)(e.name),s=i?.allowedBlocks||[];if(!s.length)return{...e,attributes:{...e.attributes,allowedBlocks:r}};const l=r.filter((e=>s.includes(e)));return{...e,attributes:{...e.attributes,allowedBlocks:l}}}));const Ku=/[\s#]/g,Zu={type:"string",source:"attribute",attribute:"id",selector:"*"};var qu={addSaveProps:function(e,t,n){(0,p.hasBlockSupport)(t,"anchor")&&(e.id=""===n.anchor?null:n.anchor);return e},edit:function({anchor:e,setAttributes:t}){if("default"!==ga())return null;const n="web"===h.Platform.OS;return(0,d.jsx)(Fa,{group:"advanced",children:(0,d.jsx)(ws.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,className:"html-anchor-control",label:(0,T.__)("HTML anchor"),help:(0,d.jsxs)(d.Fragment,{children:[(0,T.__)("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&&(0,d.jsxs)(d.Fragment,{children:[" ",(0,d.jsx)(ws.ExternalLink,{href:(0,T.__)("https://wordpress.org/documentation/article/page-jumps/"),children:(0,T.__)("Learn more about anchors")})]})]}),value:e||"",placeholder:n?null:(0,T.__)("Add an anchor"),onChange:e=>{e=e.replace(Ku,"-"),t({anchor:e})},autoCapitalize:"none",autoComplete:"off"})})},attributeKeys:["anchor"],hasSupport:e=>(0,p.hasBlockSupport)(e,"anchor")};(0,f.addFilter)("blocks.registerBlockType","core/anchor/attribute",(function(e){return"type"in(e.attributes?.anchor??{})||(0,p.hasBlockSupport)(e,"anchor")&&(e.attributes={...e.attributes,anchor:Zu}),e}));var Yu={addSaveProps:function(e,t,n){return(0,p.hasBlockSupport)(t,"ariaLabel")&&(e["aria-label"]=""===n.ariaLabel?null:n.ariaLabel),e},attributeKeys:["ariaLabel"],hasSupport:e=>(0,p.hasBlockSupport)(e,"ariaLabel")};(0,f.addFilter)("blocks.registerBlockType","core/ariaLabel/attribute",(function(e){return e?.attributes?.ariaLabel?.type||(0,p.hasBlockSupport)(e,"ariaLabel")&&(e.attributes={...e.attributes,ariaLabel:{type:"string"}}),e}));var Xu={edit:function({className:e,setAttributes:t}){return"default"!==ga()?null:(0,d.jsx)(Fa,{group:"advanced",children:(0,d.jsx)(ws.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,autoComplete:"off",label:(0,T.__)("Additional CSS class(es)"),value:e||"",onChange:e=>{t({className:""!==e?e:void 0})},help:(0,T.__)("Separate multiple classes with spaces.")})})},addSaveProps:function(e,t,n){(0,p.hasBlockSupport)(t,"customClassName",!0)&&n.className&&(e.className=ms(e.className,n.className));return e},attributeKeys:["className"],hasSupport:e=>(0,p.hasBlockSupport)(e,"customClassName",!0)};(0,f.addFilter)("blocks.registerBlockType","core/editor/custom-class-name/attribute",(function(e){return(0,p.hasBlockSupport)(e,"customClassName",!0)&&(e.attributes={...e.attributes,className:{type:"string"}}),e})),(0,f.addFilter)("blocks.switchToBlockType.transformedBlock","core/customClassName/addTransforms",(function(e,t,n,o){if(!(0,p.hasBlockSupport)(e.name,"customClassName",!0))return e;if(1===o.length&&e.innerBlocks.length===t.length)return e;if(1===o.length&&t.length>1||o.length>1&&1===t.length)return e;if(t[n]){const o=t[n]?.attributes.className;if(o&&void 0===e.attributes.className)return{...e,attributes:{...e.attributes,className:o}}}return e})),(0,f.addFilter)("blocks.getSaveContent.extraProps","core/generated-class-name/save-props",(function(e,t){return(0,p.hasBlockSupport)(t,"className",!0)&&("string"==typeof e.className?e.className=[...new Set([(0,p.getBlockDefaultClassName)(t.name),...e.className.split(" ")])].join(" ").trim():e.className=(0,p.getBlockDefaultClassName)(t.name)),e}));var Qu={grad:.9,turn:360,rad:360/(2*Math.PI)},Ju=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},ed=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},td=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e>t?e:t},nd=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},od=function(e){return{r:td(e.r,0,255),g:td(e.g,0,255),b:td(e.b,0,255),a:td(e.a)}},rd=function(e){return{r:ed(e.r),g:ed(e.g),b:ed(e.b),a:ed(e.a,3)}},id=/^#([0-9a-f]{3,8})$/i,sd=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},ld=function(e){var t=e.r,n=e.g,o=e.b,r=e.a,i=Math.max(t,n,o),s=i-Math.min(t,n,o),l=s?i===t?(n-o)/s:i===n?2+(o-t)/s:4+(t-n)/s:0;return{h:60*(l<0?l+6:l),s:i?s/i*100:0,v:i/255*100,a:r}},ad=function(e){var t=e.h,n=e.s,o=e.v,r=e.a;t=t/360*6,n/=100,o/=100;var i=Math.floor(t),s=o*(1-n),l=o*(1-(t-i)*n),a=o*(1-(1-t+i)*n),c=i%6;return{r:255*[o,l,s,s,a,o][c],g:255*[a,o,o,l,s,s][c],b:255*[s,s,a,o,o,l][c],a:r}},cd=function(e){return{h:nd(e.h),s:td(e.s,0,100),l:td(e.l,0,100),a:td(e.a)}},ud=function(e){return{h:ed(e.h),s:ed(e.s),l:ed(e.l),a:ed(e.a,3)}},dd=function(e){return ad((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},pd=function(e){return{h:(t=ld(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},hd=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,gd=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,md=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,fd=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,bd={string:[[function(e){var t=id.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?ed(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?ed(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=md.exec(e)||fd.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:od({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=hd.exec(e)||gd.exec(e);if(!t)return null;var n,o,r=cd({h:(n=t[1],o=t[2],void 0===o&&(o="deg"),Number(n)*(Qu[o]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return dd(r)},"hsl"]],object:[[function(e){var t=e.r,n=e.g,o=e.b,r=e.a,i=void 0===r?1:r;return Ju(t)&&Ju(n)&&Ju(o)?od({r:Number(t),g:Number(n),b:Number(o),a:Number(i)}):null},"rgb"],[function(e){var t=e.h,n=e.s,o=e.l,r=e.a,i=void 0===r?1:r;if(!Ju(t)||!Ju(n)||!Ju(o))return null;var s=cd({h:Number(t),s:Number(n),l:Number(o),a:Number(i)});return dd(s)},"hsl"],[function(e){var t=e.h,n=e.s,o=e.v,r=e.a,i=void 0===r?1:r;if(!Ju(t)||!Ju(n)||!Ju(o))return null;var s=function(e){return{h:nd(e.h),s:td(e.s,0,100),v:td(e.v,0,100),a:td(e.a)}}({h:Number(t),s:Number(n),v:Number(o),a:Number(i)});return ad(s)},"hsv"]]},kd=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]},vd=function(e){return"string"==typeof e?kd(e.trim(),bd.string):"object"==typeof e&&null!==e?kd(e,bd.object):[null,void 0]},_d=function(e,t){var n=pd(e);return{h:n.h,s:td(n.s+100*t,0,100),l:n.l,a:n.a}},yd=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},xd=function(e,t){var n=pd(e);return{h:n.h,s:n.s,l:td(n.l+100*t,0,100),a:n.a}},Sd=function(){function e(e){this.parsed=vd(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 ed(yd(this.rgba),2)},e.prototype.isDark=function(){return yd(this.rgba)<.5},e.prototype.isLight=function(){return yd(this.rgba)>=.5},e.prototype.toHex=function(){return t=(e=rd(this.rgba)).r,n=e.g,o=e.b,i=(r=e.a)<1?sd(ed(255*r)):"","#"+sd(t)+sd(n)+sd(o)+i;var e,t,n,o,r,i},e.prototype.toRgb=function(){return rd(this.rgba)},e.prototype.toRgbString=function(){return t=(e=rd(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 ud(pd(this.rgba))},e.prototype.toHslString=function(){return t=(e=ud(pd(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=ld(this.rgba),{h:ed(e.h),s:ed(e.s),v:ed(e.v),a:ed(e.a,3)};var e},e.prototype.invert=function(){return wd({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),wd(_d(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),wd(_d(this.rgba,-e))},e.prototype.grayscale=function(){return wd(_d(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),wd(xd(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),wd(xd(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?wd({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):ed(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=pd(this.rgba);return"number"==typeof e?wd({h:e,s:t.s,l:t.l,a:t.a}):ed(t.h)},e.prototype.isEqual=function(e){return this.toHex()===wd(e).toHex()},e}(),wd=function(e){return e instanceof Sd?e:new Sd(e)},Cd=[],Bd=function(e){e.forEach((function(e){Cd.indexOf(e)<0&&(e(Sd,bd),Cd.push(e))}))};function Id(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"},o={};for(var r in n)o[n[r]]=r;var i={};e.prototype.toName=function(t){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var r,s,l=o[this.toHex()];if(l)return l;if(null==t?void 0:t.closest){var a=this.toRgb(),c=1/0,u="black";if(!i.length)for(var d in n)i[d]=new e(n[d]).toRgb();for(var p in n){var h=(r=a,s=i[p],Math.pow(r.r-s.r,2)+Math.pow(r.g-s.g,2)+Math.pow(r.b-s.b,2));h<c&&(c=h,u=p)}return u}},t.string.push([function(t){var o=t.toLowerCase(),r="transparent"===o?"#0000":n[o];return r?new e(r).toRgb():null},"name"])}var jd=function(e){var t=e/255;return t<.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)},Ed=function(e){return.2126*jd(e.r)+.7152*jd(e.g)+.0722*jd(e.b)};function Td(e){e.prototype.luminance=function(){return e=Ed(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,r,i,s,l,a,c=t instanceof e?t:new e(t);return i=this.rgba,s=c.toRgb(),n=(l=Ed(i))>(a=Ed(s))?(l+.05)/(a+.05):(a+.05)/(l+.05),void 0===(o=2)&&(o=0),void 0===r&&(r=Math.pow(10,o)),Math.floor(r*n)/r+0},e.prototype.isReadable=function(e,t){return void 0===e&&(e="#FFF"),void 0===t&&(t={}),this.contrast(e)>=(s=void 0===(i=(n=t).size)?"normal":i,"AAA"===(r=void 0===(o=n.level)?"AA":o)&&"normal"===s?7:"AA"===r&&"large"===s?3:4.5);var n,o,r,i,s}}Bd([Id,Td]);const{kebabCase:Md}=G(ws.privateApis),Pd=(e,t,n)=>{if(t){const n=e?.find((e=>e.slug===t));if(n)return n}return{color:n}},Rd=(e,t)=>e?.find((e=>e.color===t));function Ad(e,t){if(e&&t)return`has-${Md(t)}-${e}`}function Nd(){const[e,t,n,o,r,i,s,l,a,c]=Ti("color.custom","color.palette.custom","color.palette.theme","color.palette.default","color.defaultPalette","color.customGradient","color.gradients.custom","color.gradients.theme","color.gradients.default","color.defaultGradients"),u={disableCustomColors:!e,disableCustomGradients:!i};return u.colors=(0,h.useMemo)((()=>{const e=[];return n&&n.length&&e.push({name:(0,T._x)("Theme","Indicates this palette comes from the theme."),slug:"theme",colors:n}),r&&o&&o.length&&e.push({name:(0,T._x)("Default","Indicates this palette comes from WordPress."),slug:"default",colors:o}),t&&t.length&&e.push({name:(0,T._x)("Custom","Indicates this palette is created by the user."),slug:"custom",colors:t}),e}),[t,n,o,r]),u.gradients=(0,h.useMemo)((()=>{const e=[];return l&&l.length&&e.push({name:(0,T._x)("Theme","Indicates this palette comes from the theme."),slug:"theme",gradients:l}),c&&a&&a.length&&e.push({name:(0,T._x)("Default","Indicates this palette comes from WordPress."),slug:"default",gradients:a}),s&&s.length&&e.push({name:(0,T._x)("Custom","Indicates this palette is created by the user."),slug:"custom",gradients:s}),e}),[s,l,a,c]),u.hasColorsOrGradients=!!u.colors.length||!!u.gradients.length,u}var Ld=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"M10 17.389H8.444A5.194 5.194 0 1 1 8.444 7H10v1.5H8.444a3.694 3.694 0 0 0 0 7.389H10v1.5ZM14 7h1.556a5.194 5.194 0 0 1 0 10.39H14v-1.5h1.556a3.694 3.694 0 0 0 0-7.39H14V7Zm-4.5 6h5v-1.5h-5V13Z"})});function Dd({isLinked:e,...t}){const n=e?(0,T.__)("Unlink radii"):(0,T.__)("Link radii");return(0,d.jsx)(ws.Button,{...t,className:"components-border-radius-control__linked-button",size:"small",icon:e?Ld:ec,iconSize:24,label:n})}function Od(e){return[...e].sort(((t,n)=>e.filter((e=>e===n)).length-e.filter((e=>e===t)).length)).shift()}function zd(e){return!!e?.includes&&("0"===e||e.includes("var:preset|border-radius|"))}function Vd(e){if(!e)return;if("0"===e||"default"===e)return e;const t=e.match(/var:preset\|border-radius\|(.+)/);return t?t[1]:void 0}function Fd(e,t){if(!zd(e))return e;const n=0===parseFloat(e,10)?"0":Vd(e),o=t.find((e=>String(e.slug)===n));return o?.size}function Hd(e,t,n){const o=parseInt(e,10);if("selectList"===t){if(0===o)return}else if(0===o)return"0";return`var:preset|border-radius|${n[e]?.slug}`}function Ud(e,t){if(!e||zd(e)||"0"===e)return e;const n=t.find((t=>String(t.size)===String(e)));return n?.slug?`var:preset|border-radius|${n.slug}`:e}var Gd=(0,d.jsxs)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,d.jsx)(ue.Path,{d:"m19 7.5h-7.628c-.3089-.87389-1.1423-1.5-2.122-1.5-.97966 0-1.81309.62611-2.12197 1.5h-2.12803v1.5h2.12803c.30888.87389 1.14231 1.5 2.12197 1.5.9797 0 1.8131-.62611 2.122-1.5h7.628z"}),(0,d.jsx)(ue.Path,{d:"m19 15h-2.128c-.3089-.8739-1.1423-1.5-2.122-1.5s-1.8131.6261-2.122 1.5h-7.628v1.5h7.628c.3089.8739 1.1423 1.5 2.122 1.5s1.8131-.6261 2.122-1.5h2.128z"})]}),$d=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M5.75 6A.25.25 0 0 1 6 5.75h3v-1.5H6A1.75 1.75 0 0 0 4.25 6v3h1.5V6ZM18 18.25h-3v1.5h3A1.75 1.75 0 0 0 19.75 18v-3h-1.5v3a.25.25 0 0 1-.25.25ZM18.25 9V6a.25.25 0 0 0-.25-.25h-3v-1.5h3c.966 0 1.75.784 1.75 1.75v3h-1.5Zm-12.5 9v-3h-1.5v3c0 .966.784 1.75 1.75 1.75h3v-1.5H6a.25.25 0 0 1-.25-.25Z"})}),Wd=(0,d.jsxs)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,d.jsx)(ue.G,{opacity:".25",children:(0,d.jsx)(ue.Path,{d:"M5.75 6A.25.25 0 0 1 6 5.75h3v-1.5H6A1.75 1.75 0 0 0 4.25 6v3h1.5V6ZM18 18.25h-3v1.5h3A1.75 1.75 0 0 0 19.75 18v-3h-1.5v3a.25.25 0 0 1-.25.25ZM18.25 9V6a.25.25 0 0 0-.25-.25h-3v-1.5h3c.966 0 1.75.784 1.75 1.75v3h-1.5ZM5.75 18v-3h-1.5v3c0 .966.784 1.75 1.75 1.75h3v-1.5H6a.25.25 0 0 1-.25-.25Z"})}),(0,d.jsx)(ue.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M6 5.75a.25.25 0 0 0-.25.25v3h-1.5V6c0-.966.784-1.75 1.75-1.75h3v1.5H6Z"})]}),Kd=(0,d.jsxs)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,d.jsx)(ue.G,{opacity:".25",children:(0,d.jsx)(ue.Path,{d:"M5.75 6A.25.25 0 0 1 6 5.75h3v-1.5H6A1.75 1.75 0 0 0 4.25 6v3h1.5V6ZM18 18.25h-3v1.5h3A1.75 1.75 0 0 0 19.75 18v-3h-1.5v3a.25.25 0 0 1-.25.25ZM18.25 9V6a.25.25 0 0 0-.25-.25h-3v-1.5h3c.966 0 1.75.784 1.75 1.75v3h-1.5ZM5.75 18v-3h-1.5v3c0 .966.784 1.75 1.75 1.75h3v-1.5H6a.25.25 0 0 1-.25-.25Z"})}),(0,d.jsx)(ue.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M18.25 9V6a.25.25 0 0 0-.25-.25h-3v-1.5h3c.966 0 1.75.784 1.75 1.75v3h-1.5Z"})]}),Zd=(0,d.jsxs)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,d.jsx)(ue.G,{opacity:".25",children:(0,d.jsx)(ue.Path,{d:"M5.75 6A.25.25 0 0 1 6 5.75h3v-1.5H6A1.75 1.75 0 0 0 4.25 6v3h1.5V6ZM18 18.25h-3v1.5h3A1.75 1.75 0 0 0 19.75 18v-3h-1.5v3a.25.25 0 0 1-.25.25ZM18.25 9V6a.25.25 0 0 0-.25-.25h-3v-1.5h3c.966 0 1.75.784 1.75 1.75v3h-1.5ZM5.75 18v-3h-1.5v3c0 .966.784 1.75 1.75 1.75h3v-1.5H6a.25.25 0 0 1-.25-.25Z"})}),(0,d.jsx)(ue.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M5.75 15v3c0 .138.112.25.25.25h3v1.5H6A1.75 1.75 0 0 1 4.25 18v-3h1.5Z"})]}),qd=(0,d.jsxs)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,d.jsx)(ue.G,{opacity:".25",children:(0,d.jsx)(ue.Path,{d:"M5.75 6A.25.25 0 0 1 6 5.75h3v-1.5H6A1.75 1.75 0 0 0 4.25 6v3h1.5V6ZM18 18.25h-3v1.5h3A1.75 1.75 0 0 0 19.75 18v-3h-1.5v3a.25.25 0 0 1-.25.25ZM18.25 9V6a.25.25 0 0 0-.25-.25h-3v-1.5h3c.966 0 1.75.784 1.75 1.75v3h-1.5ZM5.75 18v-3h-1.5v3c0 .966.784 1.75 1.75 1.75h3v-1.5H6a.25.25 0 0 1-.25-.25Z"})}),(0,d.jsx)(ue.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M15 18.25h3a.25.25 0 0 0 .25-.25v-3h1.5v3A1.75 1.75 0 0 1 18 19.75h-3v-1.5Z"})]});const Yd={topLeft:void 0,topRight:void 0,bottomLeft:void 0,bottomRight:void 0},Xd=8,Qd=[],Jd={all:(0,T.__)("Border radius"),topLeft:(0,T.__)("Top left"),topRight:(0,T.__)("Top right"),bottomLeft:(0,T.__)("Bottom left"),bottomRight:(0,T.__)("Bottom right")},ep={all:$d,topLeft:Wd,topRight:Kd,bottomLeft:Zd,bottomRight:qd},tp=0,np={px:100,em:20,rem:20};function op({corner:e,onChange:t,selectedUnits:n,setSelectedUnits:o,values:r,units:i,presets:s}){const l=n=>{t("all"===e?{topLeft:n,topRight:n,bottomLeft:n,bottomRight:n}:{...a,[e]:n})},a="string"!=typeof r?r:{topLeft:r,topRight:r,bottomLeft:r,bottomRight:r};let c;if("all"===e){const e=function(e,t){if(!e||"object"!=typeof e)return e;const n={};return Object.keys(e).forEach((o=>{const r=e[o];if(zd(r)){const e=Fd(r,t);n[o]=void 0!==e?e:r}else n[o]=r})),n}(a,s),t=function(e={}){if("string"==typeof e)return e;const t=Object.values(e).map((e=>{const t=(0,ws.__experimentalParseQuantityAndUnitFromRawValue)(e);return"string"==typeof e&&void 0===t[0]?[e,""]:t})),n=t.map((e=>e[0]??"")),o=t.map((e=>e[1])),r=n.every((e=>e===n[0]))?n[0]:"",i=Od(o);return 0===r||r?`${r}${i||""}`:void 0}(e);c=Ud(t,s)}else c=Ud(a[e],s);const u=zd(c)?Fd(c,s):c,[p,g]=(0,ws.__experimentalParseQuantityAndUnitFromRawValue)(u),m=c?g:n[e]||n.flat||"px",f=i&&i.find((e=>e.value===m)),b=f?.step||1,[k,v]=(0,h.useState)(void 0!==c&&!zd(c)),_=s.length<=Xd,y=function(e,t){if(void 0===e)return 0;const n=0===parseFloat(e,10)?"0":Vd(e),o=t.findIndex((e=>String(e.slug)===n));return-1!==o?o:NaN}(c,s),x=s.slice(1,s.length-1).map(((e,t)=>({value:t+1,label:void 0}))),S=x.length>0;let w=[];_||(w=[...s,{name:(0,T.__)("Custom"),slug:"custom",size:u}].map(((e,t)=>({key:t,name:e.name}))));const C=ep[e];return(0,d.jsxs)(ws.__experimentalHStack,{children:[C&&(0,d.jsx)(ws.Icon,{className:"components-border-radius-control__icon",icon:C,size:24}),(!S||k)&&(0,d.jsxs)("div",{className:"components-border-radius-control__input-controls-wrapper",children:[(0,d.jsx)(ws.Tooltip,{text:Jd[e],placement:"top",children:(0,d.jsx)("div",{className:"components-border-radius-control__tooltip-wrapper",children:(0,d.jsx)(ws.__experimentalUnitControl,{className:"components-border-radius-control__unit-control","aria-label":Jd[e],value:[p,m].join(""),onChange:e=>{if(!t)return;const n=!isNaN(parseFloat(e));l(n?e:void 0)},onUnitChange:t=>{const r={...n};"all"===e?(r.topLeft=t,r.topRight=t,r.bottomLeft=t,r.bottomRight=t):r[e]=t,o(r)},size:"__unstable-large",min:tp,units:i})})}),(0,d.jsx)(ws.RangeControl,{__next40pxDefaultSize:!0,label:(0,T.__)("Border radius"),hideLabelFromVision:!0,className:"components-border-radius-control__range-control",value:p??"",min:tp,max:np[m],initialPosition:0,withInputField:!1,onChange:e=>{l(void 0!==e?`${e}${m}`:void 0)},step:b,__nextHasNoMarginBottom:!0})]}),S&&_&&!k&&(0,d.jsx)(ws.RangeControl,{__next40pxDefaultSize:!0,className:"components-border-radius-control__range-control",value:y,onChange:e=>{l(Hd(e,"range",s))},withInputField:!1,"aria-valuenow":y,"aria-valuetext":s[y]?.name,renderTooltipContent:e=>void 0===c?void 0:s[e]?.name,min:0,max:s.length-1,marks:x,label:Jd[e],hideLabelFromVision:!0,__nextHasNoMarginBottom:!0}),!_&&!k&&(0,d.jsx)(ws.CustomSelectControl,{className:"components-border-radius-control__custom-select-control",value:w.find((e=>e.key===y))||w[w.length-1],onChange:e=>{e.selectedItem.key===w.length-1?v(!0):l(Hd(e.selectedItem.key,"selectList",s))},options:w,label:Jd[e],hideLabelFromVision:!0,size:"__unstable-large"}),S&&(0,d.jsx)(ws.Button,{label:k?(0,T.__)("Use border radius preset"):(0,T.__)("Set custom border radius"),icon:Gd,onClick:()=>{v(!k)},isPressed:k,size:"small",className:"components-border-radius-control__custom-toggle",iconSize:24})]})}function rp({onChange:e,values:t,presets:n}){const[o,r]=(0,h.useState)(!function(e){return!!e&&("string"==typeof e||!!Object.values(e).filter((e=>!!e||0===e)).length)}(t)||!function(e={}){if("string"==typeof e)return!1;if(!e||"object"!=typeof e)return!1;const t=Object.values(e);if(0===t.length)return!1;const n=t[0];return!t.every((e=>e===n))}(t)),i=function(e){const t=e?.default??Qd,n=e?.custom??Qd,o=e?.theme??Qd;return(0,h.useMemo)((()=>{const e=[{name:(0,T.__)("None"),slug:"0",size:0},...n,...o,...t];return e.length>Xd?[{name:(0,T.__)("Default"),slug:"default",size:void 0},...e]:e}),[n,o,t])}(n),[s,l]=(0,h.useState)({flat:"string"==typeof t?(0,ws.__experimentalParseQuantityAndUnitFromRawValue)(t)[1]:void 0,topLeft:(0,ws.__experimentalParseQuantityAndUnitFromRawValue)(t?.topLeft)[1],topRight:(0,ws.__experimentalParseQuantityAndUnitFromRawValue)(t?.topRight)[1],bottomLeft:(0,ws.__experimentalParseQuantityAndUnitFromRawValue)(t?.bottomLeft)[1],bottomRight:(0,ws.__experimentalParseQuantityAndUnitFromRawValue)(t?.bottomRight)[1]}),[a]=Ti("spacing.units"),c=(0,ws.__experimentalUseCustomUnits)({availableUnits:a||["px","em","rem"]});return(0,d.jsxs)("fieldset",{className:"components-border-radius-control",children:[(0,d.jsxs)(ws.__experimentalHStack,{className:"components-border-radius-control__header",children:[(0,d.jsx)(ws.BaseControl.VisualLabel,{as:"legend",children:(0,T.__)("Radius")}),(0,d.jsx)(Dd,{onClick:()=>r(!o),isLinked:o})]}),o?(0,d.jsx)(d.Fragment,{children:(0,d.jsx)(op,{onChange:e,selectedUnits:s,setSelectedUnits:l,values:t,units:c,corner:"all",presets:i})}):(0,d.jsx)(ws.__experimentalVStack,{children:["topLeft","topRight","bottomLeft","bottomRight"].map((n=>(0,d.jsx)(op,{onChange:e,selectedUnits:s,setSelectedUnits:l,values:t||Yd,units:c,corner:n,presets:i},n)))})]})}var ip=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"M16.5 7.5 10 13.9l-2.5-2.4-1 1 3.5 3.6 7.5-7.6z"})}),sp=(0,d.jsx)(ue.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,d.jsx)(ue.Path,{d:"M12 8c-2.2 0-4 1.8-4 4s1.8 4 4 4 4-1.8 4-4-1.8-4-4-4zm0 6.5c-1.4 0-2.5-1.1-2.5-2.5s1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5-1.1 2.5-2.5 2.5zM12.8 3h-1.5v3h1.5V3zm-1.6 18h1.5v-3h-1.5v3zm6.8-9.8v1.5h3v-1.5h-3zm-12 0H3v1.5h3v-1.5zm9.7 5.6 2.1 2.1 1.1-1.1-2.1-2.1-1.1 1.1zM8.3 7.2 6.2 5.1 5.1 6.2l2.1 2.1 1.1-1.1zM5.1 17.8l1.1 1.1 2.1-2.1-1.1-1.1-2.1 2.1zM18.9 6.2l-1.1-1.1-2.1 2.1 1.1 1.1 2.1-2.1z"})});const lp=[];function ap({shadow:e,onShadowChange:t,settings:n}){const o=hp(n);return(0,d.jsx)("div",{className:"block-editor-global-styles__shadow-popover-container",children:(0,d.jsxs)(ws.__experimentalVStack,{spacing:4,children:[(0,d.jsx)(ws.__experimentalHeading,{level:5,children:(0,T.__)("Drop shadow")}),(0,d.jsx)(cp,{presets:o,activeShadow:e,onSelect:t}),(0,d.jsx)("div",{className:"block-editor-global-styles__clear-shadow",children:(0,d.jsx)(ws.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:()=>t(void 0),disabled:!e,accessibleWhenDisabled:!0,children:(0,T.__)("Clear")})})]})})}function cp({presets:e,activeShadow:t,onSelect:n}){return e?(0,d.jsx)(ws.Composite,{role:"listbox",className:"block-editor-global-styles__shadow__list","aria-label":(0,T.__)("Drop shadows"),children:e.map((({name:e,slug:o,shadow:r})=>(0,d.jsx)(up,{label:e,isActive:r===t,type:"unset"===o?"unset":"preset",onSelect:()=>n(r===t?void 0:r),shadow:r},o)))}):null}function up({type:e,label:t,isActive:n,onSelect:o,shadow:r}){return(0,d.jsx)(ws.Tooltip,{text:t,children:(0,d.jsx)(ws.Composite.Item,{role:"option","aria-label":t,"aria-selected":n,className:ms("block-editor-global-styles__shadow__item",{"is-active":n}),render:(0,d.jsx)("button",{className:ms("block-editor-global-styles__shadow-indicator",{unset:"unset"===e}),onClick:o,style:{boxShadow:r},"aria-label":t,children:n&&(0,d.jsx)(Ol,{icon:ip})})})})}function dp({shadow:e,onShadowChange:t,settings:n}){return(0,d.jsx)(ws.Dropdown,{popoverProps:{placement:"left-start",offset:36,shift:!0},className:"block-editor-global-styles__shadow-dropdown",renderToggle:pp(e,t),renderContent:()=>(0,d.jsx)(ws.__experimentalDropdownContentWrapper,{paddingSize:"medium",children:(0,d.jsx)(ap,{shadow:e,onShadowChange:t,settings:n})})})}function pp(e,t){return({onToggle:n,isOpen:o})=>{const r=(0,h.useRef)(void 0),i={onClick:n,className:ms("block-editor-global-styles__shadow-dropdown-toggle",{"is-open":o}),"aria-expanded":o,ref:r},s={onClick:()=>{o&&n(),t(void 0),r.current?.focus()},className:ms("block-editor-global-styles__shadow-editor__remove-button",{"is-open":o}),label:(0,T.__)("Remove")};return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(ws.Button,{__next40pxDefaultSize:!0,...i,children:(0,d.jsxs)(ws.__experimentalHStack,{justify:"flex-start",children:[(0,d.jsx)(Ol,{className:"block-editor-global-styles__toggle-icon",icon:sp,size:24}),(0,d.jsx)(ws.FlexItem,{children:(0,T.__)("Drop shadow")})]})}),!!e&&(0,d.jsx)(ws.Button,{__next40pxDefaultSize:!0,size:"small",icon:Ha,...s})]})}}function hp(e){return(0,h.useMemo)((()=>{if(!e?.shadow)return lp;const t=e?.shadow?.defaultPresets,{default:n,theme:o,custom:r}=e?.shadow?.presets??{},i={name:(0,T.__)("Unset"),slug:"unset",shadow:"none"},s=[...t&&n||lp,...o||lp,...r||lp];return s.length&&s.unshift(i),s}),[e])}function gp(e){return Object.values(mp(e)).some(Boolean)}function mp(e){return{hasBorderColor:fp(e),hasBorderRadius:bp(e),hasBorderStyle:kp(e),hasBorderWidth:vp(e),hasShadow:_p(e)}}function fp(e){return e?.border?.color}function bp(e){return e?.border?.radius}function kp(e){return e?.border?.style}function vp(e){return e?.border?.width}function _p(e){const t=hp(e);return!!e?.shadow&&t.length>0}function yp({resetAllFilter:e,onChange:t,value:n,panelId:o,children:r,label:i}){const s=Ji();return(0,d.jsx)(ws.__experimentalToolsPanel,{label:i,resetAll:()=>{const o=e(n);t(o)},panelId:o,dropdownMenuProps:s,children:r})}const xp={radius:!0,color:!0,width:!0,shadow:!0};function Sp({as:e=yp,value:t,onChange:n,inheritedValue:o=t,settings:r,panelId:i,name:s,defaultControls:l=xp}){const a=ps(r),c=(0,h.useCallback)((e=>ts({settings:r},"",e)),[r]),u=e=>{const t=a.flatMap((({colors:e})=>e)).find((({color:t})=>t===e));return t?"var:preset|color|"+t.slug:e},p=(0,h.useMemo)((()=>{if((0,ws.__experimentalHasSplitBorders)(o?.border)){const e={...o?.border};return["top","right","bottom","left"].forEach((t=>{e[t]={...e[t],color:c(e[t]?.color)}})),e}return{...o?.border,color:o?.border?.color?c(o?.border?.color):void 0}}),[o?.border,c]),g=e=>n({...t,border:e}),m=fp(r),f=kp(r),b=vp(r),k=bp(r),v=(0,h.useMemo)((()=>"object"!=typeof o?.border?.radius?c(o?.border?.radius):{topLeft:c(o?.border?.radius?.topLeft),topRight:c(o?.border?.radius?.topRight),bottomLeft:c(o?.border?.radius?.bottomLeft),bottomRight:c(o?.border?.radius?.bottomRight)}),[o?.border?.radius,c]),_=e=>g({...p,radius:e}),y=()=>{const e=t?.border?.radius;return"object"==typeof e?Object.entries(e).some(Boolean):!!e},x=_p(r),S=c(o?.shadow),w=r?.shadow?.presets??{},C=w.custom??w.theme??w.default??[],B=e=>{const o=C?.find((({shadow:t})=>t===e))?.slug;n(me(t,["shadow"],o?`var:preset|shadow|${o}`:e||void 0))},I=(0,h.useCallback)((e=>({...e,border:void 0,shadow:void 0})),[]),j=l?.color||l?.width,E=m||f||b||k,M=Ap({blockName:s,hasShadowControl:x,hasBorderControl:E});return(0,d.jsxs)(e,{resetAllFilter:I,value:t,onChange:n,panelId:i,label:M,children:[(b||m)&&(0,d.jsx)(ws.__experimentalToolsPanelItem,{hasValue:()=>(0,ws.__experimentalIsDefinedBorder)(t?.border),label:(0,T.__)("Border"),onDeselect:()=>(()=>{if(y())return g({radius:t?.border?.radius});g(void 0)})(),isShownByDefault:j,panelId:i,children:(0,d.jsx)(ws.BorderBoxControl,{colors:a,enableAlpha:!0,enableStyle:f,onChange:e=>{const t={...e};(0,ws.__experimentalHasSplitBorders)(t)?["top","right","bottom","left"].forEach((e=>{t[e]&&(t[e]={...t[e],color:u(t[e]?.color)})})):t&&(t.color=u(t.color)),g({radius:p?.radius,...t})},popoverOffset:40,popoverPlacement:"left-start",value:p,__experimentalIsRenderedInSidebar:!0,size:"__unstable-large",hideLabelFromVision:!x,label:(0,T.__)("Border")})}),k&&(0,d.jsx)(ws.__experimentalToolsPanelItem,{hasValue:y,label:(0,T.__)("Radius"),onDeselect:()=>_(void 0),isShownByDefault:l.radius,panelId:i,children:(0,d.jsx)(rp,{presets:r?.border?.radiusSizes,values:v,onChange:e=>{_(e||void 0)}})}),x&&(0,d.jsxs)(ws.__experimentalToolsPanelItem,{label:(0,T.__)("Shadow"),hasValue:()=>!!t?.shadow,onDeselect:()=>B(void 0),isShownByDefault:l.shadow,panelId:i,children:[E?(0,d.jsx)(ws.BaseControl.VisualLabel,{as:"legend",children:(0,T.__)("Shadow")}):null,(0,d.jsx)(dp,{shadow:S,onShadowChange:B,settings:r})]})]})}const wp="__experimentalBorder",Cp="shadow",Bp=(e,t,n)=>{let o;return e.some((e=>e.colors.some((e=>e[t]===n&&(o=e,!0))))),o},Ip=({colors:e,namedColor:t,customColor:n})=>{if(t){const n=Bp(e,"slug",t);if(n)return n}if(!n)return{color:void 0};const o=Bp(e,"color",n);return o||{color:n}};function jp(e){const t=/var:preset\|color\|(.+)/.exec(e);return t&&t[1]?t[1]:null}function Ep(e){if((0,ws.__experimentalHasSplitBorders)(e?.border))return{style:e,borderColor:void 0};const t=e?.border?.color,n=t?.startsWith("var:preset|color|")?t.substring(17):void 0,o={...e};return o.border={...o.border,color:n?void 0:t},{style:fs(o),borderColor:n}}function Tp(e){return(0,ws.__experimentalHasSplitBorders)(e.style?.border)?e.style:{...e.style,border:{...e.style?.border,color:e.borderColor?"var:preset|color|"+e.borderColor:e.style?.border?.color}}}function Mp({label:e,children:t,resetAllFilter:n}){const o=(0,h.useCallback)((e=>{const t=Tp(e),o=n(t);return{...e,...Ep(o)}}),[n]);return(0,d.jsx)(Fa,{group:"border",resetAllFilter:o,label:e,children:t})}function Pp({clientId:e,name:t,setAttributes:n,settings:o}){const r=gp(o);const{style:i,borderColor:s}=(0,g.useSelect)((function(t){const{style:n,borderColor:o}=t(ji).getBlockAttributes(e)||{};return{style:n,borderColor:o}}),[e]),l=(0,h.useMemo)((()=>Tp({style:i,borderColor:s})),[i,s]);if(!r)return null;const a={...(0,p.getBlockSupport)(t,[wp,"__experimentalDefaultControls"]),...(0,p.getBlockSupport)(t,[Cp,"__experimentalDefaultControls"])};return(0,d.jsx)(Sp,{as:Mp,panelId:e,settings:o,value:l,onChange:e=>{n(Ep(e))},defaultControls:a})}function Rp(e,t="any"){if("web"!==h.Platform.OS)return!1;const n=(0,p.getBlockSupport)(e,wp);return!0===n||("any"===t?!!(n?.color||n?.radius||n?.width||n?.style):!!n?.[t])}function Ap({blockName:e,hasBorderControl:t,hasShadowControl:n}={}){const o=mp(xs(e));return t||n||!e||(t=o?.hasBorderColor||o?.hasBorderStyle||o?.hasBorderWidth||o?.hasBorderRadius,n=o?.hasShadow),t&&n?(0,T.__)("Border & Shadow"):n?(0,T.__)("Shadow"):(0,T.__)("Border")}function Np(e,t,n){if(!Rp(t,"color")||ks(t,wp,"color"))return e;const o=Lp(n),r=ms(e.className,o);return e.className=r||void 0,e}function Lp(e){const{borderColor:t,style:n}=e,o=Ad("border-color",t);return ms({"has-border-color":t||n?.border?.color,[o]:!!o})}var Dp={useBlockProps:function({name:e,borderColor:t,style:n}){const{colors:o}=Nd();if(!Rp(e,"color")||ks(e,wp,"color"))return{};const{color:r}=Ip({colors:o,namedColor:t}),{color:i}=Ip({colors:o,namedColor:jp(n?.border?.top?.color)}),{color:s}=Ip({colors:o,namedColor:jp(n?.border?.right?.color)}),{color:l}=Ip({colors:o,namedColor:jp(n?.border?.bottom?.color)}),{color:a}=Ip({colors:o,namedColor:jp(n?.border?.left?.color)});return Np({style:fs({borderTopColor:i||r,borderRightColor:s||r,borderBottomColor:l||r,borderLeftColor:a||r})||{}},e,{borderColor:t,style:n})},addSaveProps:Np,attributeKeys:["borderColor","style"],hasSupport:e=>Rp(e,"color")};function Op(e){if(e)return`has-${e}-gradient-background`}function zp(e,t){const n=e?.find((e=>e.slug===t));return n&&n.gradient}function Vp(e,t){const n=e?.find((e=>e.gradient===t));return n}function Fp(e,t){const n=Vp(e,t);return n&&n.slug}function Hp({gradientAttribute:e="gradient",customGradientAttribute:t="customGradient"}={}){const{clientId:n}=C(),[o,r,i]=Ti("color.gradients.custom","color.gradients.theme","color.gradients.default"),s=(0,h.useMemo)((()=>[...o||[],...r||[],...i||[]]),[o,r,i]),{gradient:l,customGradient:a}=(0,g.useSelect)((o=>{const{getBlockAttributes:r}=o(ji),i=r(n)||{};return{customGradient:i[t],gradient:i[e]}}),[n,e,t]),{updateBlockAttributes:c}=(0,g.useDispatch)(ji),u=(0,h.useCallback)((o=>{const r=Fp(s,o);c(n,r?{[e]:r,[t]:void 0}:{[e]:void 0,[t]:o})}),[s,n,c]),d=Op(l);let p;return p=l?zp(s,l):a,{gradientClass:d,gradientValue:p,setGradient:u}}(0,f.addFilter)("blocks.registerBlockType","core/border/addAttributes",(function(e){return Rp(e,"color")?e.attributes.borderColor?e:{...e,attributes:{...e.attributes,borderColor:{type:"string"}}}:e}));const{Tabs:Up}=G(ws.privateApis),Gp=["colors","disableCustomColors","gradients","disableCustomGradients"],$p="color",Wp="gradient";function Kp({colors:e,gradients:t,disableCustomColors:n,disableCustomGradients:o,__experimentalIsRenderedInSidebar:r,className:i,label:s,onColorChange:l,onGradientChange:a,colorValue:c,gradientValue:u,clearable:p,showTitle:h=!0,enableAlpha:g,headingLevel:m}){const f=l&&(e&&e.length>0||!n),b=a&&(t&&t.length>0||!o);if(!f&&!b)return null;const k={[$p]:(0,d.jsx)(ws.ColorPalette,{value:c,onChange:b?e=>{l(e),a()}:l,colors:e,disableCustomColors:n,__experimentalIsRenderedInSidebar:r,clearable:p,enableAlpha:g,headingLevel:m}),[Wp]:(0,d.jsx)(ws.GradientPicker,{value:u,onChange:f?e=>{a(e),l()}:a,gradients:t,disableCustomGradients:o,__experimentalIsRenderedInSidebar:r,clearable:p,headingLevel:m})},v=e=>(0,d.jsx)("div",{className:"block-editor-color-gradient-control__panel",children:k[e]});return(0,d.jsx)(ws.BaseControl,{__nextHasNoMarginBottom:!0,className:ms("block-editor-color-gradient-control",i),children:(0,d.jsx)("fieldset",{className:"block-editor-color-gradient-control__fieldset",children:(0,d.jsxs)(ws.__experimentalVStack,{spacing:1,children:[h&&(0,d.jsx)("legend",{children:(0,d.jsx)("div",{className:"block-editor-color-gradient-control__color-indicator",children:(0,d.jsx)(ws.BaseControl.VisualLabel,{children:s})})}),f&&b&&(0,d.jsx)("div",{children:(0,d.jsxs)(Up,{defaultTabId:u?Wp:!!f&&$p,children:[(0,d.jsxs)(Up.TabList,{children:[(0,d.jsx)(Up.Tab,{tabId:$p,children:(0,T.__)("Color")}),(0,d.jsx)(Up.Tab,{tabId:Wp,children:(0,T.__)("Gradient")})]}),(0,d.jsx)(Up.TabPanel,{tabId:$p,className:"block-editor-color-gradient-control__panel",focusable:!1,children:k.color}),(0,d.jsx)(Up.TabPanel,{tabId:Wp,className:"block-editor-color-gradient-control__panel",focusable:!1,children:k.gradient})]})}),!b&&v($p),!f&&v(Wp)]})})})}function Zp(e){const[t,n,o,r]=Ti("color.palette","color.gradients","color.custom","color.customGradient");return(0,d.jsx)(Kp,{colors:t,gradients:n,disableCustomColors:!o,disableCustomGradients:!r,...e})}var qp=function(e){return Gp.every((t=>e.hasOwnProperty(t)))?(0,d.jsx)(Kp,{...e}):(0,d.jsx)(Zp,{...e})};function Yp(e){const t=Xp(e),n=nh(e),o=Qp(e),r=eh(e),i=th(e),s=Jp(e);return t||n||o||r||i||s}function Xp(e){const t=ps(e);return e?.color?.text&&(t?.length>0||e?.color?.custom)}function Qp(e){const t=ps(e);return e?.color?.link&&(t?.length>0||e?.color?.custom)}function Jp(e){const t=ps(e);return e?.color?.caption&&(t?.length>0||e?.color?.custom)}function eh(e){const t=ps(e),n=hs(e);return e?.color?.heading&&(t?.length>0||e?.color?.custom||n?.length>0||e?.color?.customGradient)}function th(e){const t=ps(e),n=hs(e);return e?.color?.button&&(t?.length>0||e?.color?.custom||n?.length>0||e?.color?.customGradient)}function nh(e){const t=ps(e),n=hs(e);return e?.color?.background&&(t?.length>0||e?.color?.custom||n?.length>0||e?.color?.customGradient)}function oh({resetAllFilter:e,onChange:t,value:n,panelId:o,children:r}){const i=Ji();return(0,d.jsx)(ws.__experimentalToolsPanel,{label:(0,T.__)("Elements"),resetAll:()=>{const o=e(n);t(o)},panelId:o,hasInnerWrapper:!0,headingLevel:3,className:"color-block-support-panel",__experimentalFirstVisibleItemClass:"first",__experimentalLastVisibleItemClass:"last",dropdownMenuProps:i,children:(0,d.jsx)("div",{className:"color-block-support-panel__inner-wrapper",children:r})})}const rh={text:!0,background:!0,link:!0,heading:!0,button:!0,caption:!0},ih={placement:"left-start",offset:36,shift:!0,flip:!0,resize:!1},{Tabs:sh}=G(ws.privateApis),lh=({indicators:e,label:t})=>(0,d.jsxs)(ws.__experimentalHStack,{justify:"flex-start",children:[(0,d.jsx)(ws.__experimentalZStack,{isLayered:!1,offset:-8,children:e.map(((e,t)=>(0,d.jsx)(ws.Flex,{expanded:!1,children:(0,d.jsx)(ws.ColorIndicator,{colorValue:e})},t)))}),(0,d.jsx)(ws.FlexItem,{className:"block-editor-panel-color-gradient-settings__color-name",children:t})]});function ah({isGradient:e,inheritedValue:t,userValue:n,setValue:o,colorGradientControlSettings:r}){return(0,d.jsx)(qp,{...r,showTitle:!1,enableAlpha:!0,__experimentalIsRenderedInSidebar:!0,colorValue:e?void 0:t,gradientValue:e?t:void 0,onColorChange:e?void 0:o,onGradientChange:e?o:void 0,clearable:t===n,headingLevel:3})}function ch({label:e,hasValue:t,resetValue:n,isShownByDefault:o,indicators:r,tabs:i,colorGradientControlSettings:s,panelId:l}){const a=i.find((e=>void 0!==e.userValue)),{key:c,...u}=i[0]??{},p=(0,h.useRef)(void 0);return(0,d.jsx)(ws.__experimentalToolsPanelItem,{className:"block-editor-tools-panel-color-gradient-settings__item",hasValue:t,label:e,onDeselect:n,isShownByDefault:o,panelId:l,children:(0,d.jsx)(ws.Dropdown,{popoverProps:ih,className:"block-editor-tools-panel-color-gradient-settings__dropdown",renderToggle:({onToggle:o,isOpen:i})=>{const s={onClick:o,className:ms("block-editor-panel-color-gradient-settings__dropdown",{"is-open":i}),"aria-expanded":i,ref:p};return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(ws.Button,{...s,__next40pxDefaultSize:!0,children:(0,d.jsx)(lh,{indicators:r,label:e})}),t()&&(0,d.jsx)(ws.Button,{__next40pxDefaultSize:!0,label:(0,T.__)("Reset"),className:"block-editor-panel-color-gradient-settings__reset",size:"small",icon:Ha,onClick:()=>{n(),i&&o(),p.current?.focus()}})]})},renderContent:()=>(0,d.jsx)(ws.__experimentalDropdownContentWrapper,{paddingSize:"none",children:(0,d.jsxs)("div",{className:"block-editor-panel-color-gradient-settings__dropdown-content",children:[1===i.length&&(0,d.jsx)(ah,{...u,colorGradientControlSettings:s},c),i.length>1&&(0,d.jsxs)(sh,{defaultTabId:a?.key,children:[(0,d.jsx)(sh.TabList,{children:i.map((e=>(0,d.jsx)(sh.Tab,{tabId:e.key,children:e.label},e.key)))}),i.map((e=>{const{key:t,...n}=e;return(0,d.jsx)(sh.TabPanel,{tabId:t,focusable:!1,children:(0,d.jsx)(ah,{...n,colorGradientControlSettings:s},t)},t)}))]})]})})})})}function uh({as:e=oh,value:t,onChange:n,inheritedValue:o=t,settings:r,panelId:i,defaultControls:s=rh,children:l}){const a=ps(r),c=hs(r),u=r?.color?.custom,p=r?.color?.customGradient,g=a.length>0||u,m=c.length>0||p,f=e=>ts({settings:r},"",e),b=e=>{const t=a.flatMap((({colors:e})=>e)).find((({color:t})=>t===e));return t?"var:preset|color|"+t.slug:e},k=e=>{const t=c.flatMap((({gradients:e})=>e)).find((({gradient:t})=>t===e));return t?"var:preset|gradient|"+t.slug:e},v=nh(r),_=f(o?.color?.background),y=f(t?.color?.background),x=f(o?.color?.gradient),S=f(t?.color?.gradient),w=Qp(r),C=f(o?.elements?.link?.color?.text),B=f(t?.elements?.link?.color?.text),I=f(o?.elements?.link?.[":hover"]?.color?.text),j=f(t?.elements?.link?.[":hover"]?.color?.text),E=Xp(r),M=f(o?.color?.text),P=f(t?.color?.text),R=e=>{let o=me(t,["color","text"],b(e));M===C&&(o=me(o,["elements","link","color","text"],b(e))),n(o)},A=[{name:"caption",label:(0,T.__)("Captions"),showPanel:Jp(r)},{name:"button",label:(0,T.__)("Button"),showPanel:th(r)},{name:"heading",label:(0,T.__)("Heading"),showPanel:eh(r)},{name:"h1",label:(0,T.__)("H1"),showPanel:eh(r)},{name:"h2",label:(0,T.__)("H2"),showPanel:eh(r)},{name:"h3",label:(0,T.__)("H3"),showPanel:eh(r)},{name:"h4",label:(0,T.__)("H4"),showPanel:eh(r)},{name:"h5",label:(0,T.__)("H5"),showPanel:eh(r)},{name:"h6",label:(0,T.__)("H6"),showPanel:eh(r)}],N=(0,h.useCallback)((e=>({...e,color:void 0,elements:{...e?.elements,link:{...e?.elements?.link,color:void 0,":hover":{color:void 0}},...A.reduce(((t,n)=>({...t,[n.name]:{...e?.elements?.[n.name],color:void 0}})),{})}})),[]),L=[E&&{key:"text",label:(0,T.__)("Text"),hasValue:()=>!!P,resetValue:()=>R(void 0),isShownByDefault:s.text,indicators:[M],tabs:[{key:"text",label:(0,T.__)("Text"),inheritedValue:M,setValue:R,userValue:P}]},v&&{key:"background",label:(0,T.__)("Background"),hasValue:()=>!!y||!!S,resetValue:()=>{const e=me(t,["color","background"],void 0);e.color.gradient=void 0,n(e)},isShownByDefault:s.background,indicators:[x??_],tabs:[g&&{key:"background",label:(0,T.__)("Color"),inheritedValue:_,setValue:e=>{const o=me(t,["color","background"],b(e));o.color.gradient=void 0,n(o)},userValue:y},m&&{key:"gradient",label:(0,T.__)("Gradient"),inheritedValue:x,setValue:e=>{const o=me(t,["color","gradient"],k(e));o.color.background=void 0,n(o)},userValue:S,isGradient:!0}].filter(Boolean)},w&&{key:"link",label:(0,T.__)("Link"),hasValue:()=>!!B||!!j,resetValue:()=>{let e=me(t,["elements","link",":hover","color","text"],void 0);e=me(e,["elements","link","color","text"],void 0),n(e)},isShownByDefault:s.link,indicators:[C,I],tabs:[{key:"link",label:(0,T.__)("Default"),inheritedValue:C,setValue:e=>{n(me(t,["elements","link","color","text"],b(e)))},userValue:B},{key:"hover",label:(0,T.__)("Hover"),inheritedValue:I,setValue:e=>{n(me(t,["elements","link",":hover","color","text"],b(e)))},userValue:j}]}].filter(Boolean);return A.forEach((({name:e,label:r,showPanel:i})=>{if(!i)return;const l=f(o?.elements?.[e]?.color?.background),a=f(o?.elements?.[e]?.color?.gradient),c=f(o?.elements?.[e]?.color?.text),u=f(t?.elements?.[e]?.color?.background),d=f(t?.elements?.[e]?.color?.gradient),p=f(t?.elements?.[e]?.color?.text),h="caption"!==e;L.push({key:e,label:r,hasValue:()=>!!(p||u||d),resetValue:()=>{const o=me(t,["elements",e,"color","background"],void 0);o.elements[e].color.gradient=void 0,o.elements[e].color.text=void 0,n(o)},isShownByDefault:s[e],indicators:h?[c,a??l]:[c],tabs:[g&&{key:"text",label:(0,T.__)("Text"),inheritedValue:c,setValue:o=>{n(me(t,["elements",e,"color","text"],b(o)))},userValue:p},g&&h&&{key:"background",label:(0,T.__)("Background"),inheritedValue:l,setValue:o=>{const r=me(t,["elements",e,"color","background"],b(o));r.elements[e].color.gradient=void 0,n(r)},userValue:u},m&&h&&{key:"gradient",label:(0,T.__)("Gradient"),inheritedValue:a,setValue:o=>{const r=me(t,["elements",e,"color","gradient"],k(o));r.elements[e].color.background=void 0,n(r)},userValue:d,isGradient:!0}].filter(Boolean)})})),(0,d.jsxs)(e,{resetAllFilter:N,value:t,onChange:n,panelId:i,children:[L.map((e=>{const{key:t,...n}=e;return(0,d.jsx)(ch,{...n,colorGradientControlSettings:{colors:a,disableCustomColors:!u,gradients:c,disableCustomGradients:!p},panelId:i},t)})),l]})}Bd([Id,Td]);var dh=function({backgroundColor:e,fallbackBackgroundColor:t,fallbackTextColor:n,fallbackLinkColor:o,fontSize:r,isLargeText:i,textColor:s,linkColor:l,enableAlphaChecker:a=!1}){const c=e||t;if(!c)return null;const u=s||n,p=l||o;if(!u&&!p)return null;const h=[{color:u,description:(0,T.__)("text color")},{color:p,description:(0,T.__)("link color")}],g=wd(c),m=g.alpha()<1,f=g.brightness(),b={level:"AA",size:i||!1!==i&&r>=24?"large":"small"};let k="",v="";for(const e of h){if(!e.color)continue;const t=wd(e.color),n=t.isReadable(g,b),o=t.alpha()<1;if(!n){if(m||o)continue;k=f<t.brightness()?(0,T.sprintf)((0,T.__)("This color combination may be hard for people to read. Try using a darker background color and/or a brighter %s."),e.description):(0,T.sprintf)((0,T.__)("This color combination may be hard for people to read. Try using a brighter background color and/or a darker %s."),e.description),v=(0,T.__)("This color combination may be hard for people to read.");break}o&&a&&(k=(0,T.__)("Transparent text may be hard for people to read."),v=(0,T.__)("Transparent text may be hard for people to read."))}return k?((0,Uo.speak)(v),(0,d.jsx)("div",{className:"block-editor-contrast-checker",children:(0,d.jsx)(ws.Notice,{spokenMessage:null,status:"warning",isDismissible:!1,children:k})})):null};const ph=(0,h.createContext)({refsMap:(0,m.observableMap)()});function hh({children:e}){const t=(0,h.useMemo)((()=>({refsMap:(0,m.observableMap)()})),[]);return(0,d.jsx)(ph.Provider,{value:t,children:e})}function gh(e){const{refsMap:t}=(0,h.useContext)(ph);return(0,m.useRefEffect)((n=>(t.set(e,n),()=>t.delete(e))),[e])}function mh(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function fh(e,t){const{refsMap:n}=(0,h.useContext)(ph);(0,h.useLayoutEffect)((()=>{mh(t,n.get(e));const o=n.subscribe(e,(()=>mh(t,n.get(e))));return()=>{o(),mh(t,null)}}),[n,e,t])}function bh(e){const[t,n]=(0,h.useState)(null);return fh(e,n),t}function kh(e,t){return e.ownerDocument.defaultView.getComputedStyle(e).getPropertyValue(t)}function vh(e,t){return Object.keys(t).some((n=>e[n]!==t[n]))?t:e}function _h({clientId:e}){const t=bh(e),[n,o]=(0,h.useReducer)(vh,{});return(0,h.useLayoutEffect)((()=>{function e(){o(function(e){if(!e)return{};const t=e.querySelector("a"),n=t?.innerText?kh(t,"color"):void 0,o=kh(e,"color");let r=e,i=kh(r,"background-color");for(;"rgba(0, 0, 0, 0)"===i&&r.parentNode&&r.parentNode.nodeType===r.parentNode.ELEMENT_NODE;)r=r.parentNode,i=kh(r,"background-color");return{textColor:o,backgroundColor:i,linkColor:n}}(t))}t&&window.requestAnimationFrame((()=>window.requestAnimationFrame(e)))})),(0,d.jsx)(dh,{backgroundColor:n.backgroundColor,textColor:n.textColor,linkColor:n.linkColor,enableAlphaChecker:!0})}ph.displayName="BlockRefsContext";const yh="color",xh=e=>{const t=(0,p.getBlockSupport)(e,yh);return t&&(!0===t.link||!0===t.gradient||!1!==t.background||!1!==t.text)},Sh=e=>{if("web"!==h.Platform.OS)return!1;const t=(0,p.getBlockSupport)(e,yh);return null!==t&&"object"==typeof t&&!!t.link},wh=e=>{const t=(0,p.getBlockSupport)(e,yh);return null!==t&&"object"==typeof t&&!!t.gradients},Ch=e=>{const t=(0,p.getBlockSupport)(e,yh);return t&&!1!==t.background},Bh=e=>{const t=(0,p.getBlockSupport)(e,yh);return t&&!1!==t.text};function Ih(e,t,n){if(!xh(t)||ks(t,yh))return e;const o=wh(t),{backgroundColor:r,textColor:i,gradient:s,style:l}=n,a=e=>!ks(t,yh,e),c=a("text")?Ad("color",i):void 0,u=a("gradients")?Op(s):void 0,d=a("background")?Ad("background-color",r):void 0,p=a("background")||a("gradients"),h=r||l?.color?.background||o&&(s||l?.color?.gradient),g=ms(e.className,c,u,{[d]:!(o&&l?.color?.gradient||!d),"has-text-color":a("text")&&(i||l?.color?.text),"has-background":p&&h,"has-link-color":a("link")&&l?.elements?.link?.color});return e.className=g||void 0,e}function jh(e){const t=e?.color?.text,n=t?.startsWith("var:preset|color|")?t.substring(17):void 0,o=e?.color?.background,r=o?.startsWith("var:preset|color|")?o.substring(17):void 0,i=e?.color?.gradient,s=i?.startsWith("var:preset|gradient|")?i.substring(20):void 0,l={...e};return l.color={...l.color,text:n?void 0:t,background:r?void 0:o,gradient:s?void 0:i},{style:fs(l),textColor:n,backgroundColor:r,gradient:s}}function Eh(e){return{...e.style,color:{...e.style?.color,text:e.textColor?"var:preset|color|"+e.textColor:e.style?.color?.text,background:e.backgroundColor?"var:preset|color|"+e.backgroundColor:e.style?.color?.background,gradient:e.gradient?"var:preset|gradient|"+e.gradient:e.style?.color?.gradient}}}function Th({children:e,resetAllFilter:t}){const n=(0,h.useCallback)((e=>{const n=Eh(e),o=t(n);return{...e,...jh(o)}}),[t]);return(0,d.jsx)(Fa,{group:"color",resetAllFilter:n,children:e})}function Mh({clientId:e,name:t,setAttributes:n,settings:o}){const r=Yp(o);const{style:i,textColor:s,backgroundColor:l,gradient:a}=(0,g.useSelect)((function(t){const{style:n,textColor:o,backgroundColor:r,gradient:i}=t(ji).getBlockAttributes(e)||{};return{style:n,textColor:o,backgroundColor:r,gradient:i}}),[e]),c=(0,h.useMemo)((()=>Eh({style:i,textColor:s,backgroundColor:l,gradient:a})),[i,s,l,a]);if(!r)return null;const u=(0,p.getBlockSupport)(t,[yh,"__experimentalDefaultControls"]),m="web"===h.Platform.OS&&!c?.color?.gradient&&(o?.color?.text||o?.color?.link)&&!1!==(0,p.getBlockSupport)(t,[yh,"enableContrastChecker"]);return(0,d.jsx)(uh,{as:Th,panelId:e,settings:o,value:c,onChange:e=>{n(jh(e))},defaultControls:u,enableContrastChecker:!1!==(0,p.getBlockSupport)(t,[yh,"enableContrastChecker"]),children:m&&(0,d.jsx)(_h,{clientId:e})})}var Ph={useBlockProps:function({name:e,backgroundColor:t,textColor:n,gradient:o,style:r}){const[i,s,l]=Ti("color.palette.custom","color.palette.theme","color.palette.default"),a=(0,h.useMemo)((()=>[...i||[],...s||[],...l||[]]),[i,s,l]);if(!xh(e)||ks(e,yh))return{};const c={};n&&!ks(e,yh,"text")&&(c.color=Pd(a,n)?.color),t&&!ks(e,yh,"background")&&(c.backgroundColor=Pd(a,t)?.color);const u=Ih({style:c},e,{textColor:n,backgroundColor:t,gradient:o,style:r}),d=t||r?.color?.background||o||r?.color?.gradient;return{...u,className:ms(u.className,!d&&Nu(r))}},addSaveProps:Ih,attributeKeys:["backgroundColor","textColor","gradient","style"],hasSupport:xh};const Rh={linkColor:[["style","elements","link","color","text"]],textColor:[["textColor"],["style","color","text"]],backgroundColor:[["backgroundColor"],["style","color","background"]],gradient:[["gradient"],["style","color","gradient"]]};function Ah({__next40pxDefaultSize:e=!1,__nextHasNoMarginBottom:t=!1,value:n="",onChange:o,fontFamilies:r,className:i,...s}){const[l]=Ti("typography.fontFamilies");if(r||(r=l),!r||0===r.length)return null;const a=[{key:"",name:(0,T.__)("Default")},...r.map((({fontFamily:e,name:t})=>({key:e,name:t||e,style:{fontFamily:e}})))];t||I()("Bottom margin styles for wp.blockEditor.FontFamilyControl",{since:"6.7",version:"7.0",hint:"Set the `__nextHasNoMarginBottom` prop to true to start opting into the new styles, which will become the default in a future version"}),e||void 0!==s.size&&"default"!==s.size||I()("36px default size for wp.blockEditor.__experimentalFontFamilyControl",{since:"6.8",version:"7.1",hint:"Set the `__next40pxDefaultSize` prop to true to start opting into the new default size, which will become the default in a future version."});const c=a.find((e=>e.key===n))??"";return(0,d.jsx)(ws.CustomSelectControl,{__next40pxDefaultSize:e,__shouldNotWarnDeprecated36pxSize:!0,label:(0,T.__)("Font"),value:c,onChange:({selectedItem:e})=>o(e.key),options:a,className:ms("block-editor-font-family-control",i,{"is-next-has-no-margin-bottom":t}),...s})}(0,f.addFilter)("blocks.registerBlockType","core/color/addAttribute",(function(e){return xh(e)?(e.attributes.backgroundColor||Object.assign(e.attributes,{backgroundColor:{type:"string"}}),e.attributes.textColor||Object.assign(e.attributes,{textColor:{type:"string"}}),wh(e)&&!e.attributes.gradient&&Object.assign(e.attributes,{gradient:{type:"string"}}),e):e})),(0,f.addFilter)("blocks.switchToBlockType.transformedBlock","core/color/addTransforms",(function(e,t,n,o){const r=e.name;return bs({linkColor:Sh(r),textColor:Bh(r),backgroundColor:Ch(r),gradient:wh(r)},Rh,e,t,n,o)}));const Nh=(e,t)=>e?t?(0,T.__)("Appearance"):(0,T.__)("Font style"):(0,T.__)("Font weight");function Lh(e){const{__next40pxDefaultSize:t=!1,onChange:n,hasFontStyles:o=!0,hasFontWeights:r=!0,fontFamilyFaces:i,value:{fontStyle:s,fontWeight:l},...a}=e,c=o||r,u=Nh(o,r),p={key:"default",name:(0,T.__)("Default"),style:{fontStyle:void 0,fontWeight:void 0}},{fontStyles:g,fontWeights:m,combinedStyleAndWeightOptions:f}=$i(i),b=(0,h.useMemo)((()=>o&&r?(()=>{const e=[p];return f&&e.push(...f),e})():o?(()=>{const e=[p];return g.forEach((({name:t,value:n})=>{e.push({key:n,name:t,style:{fontStyle:n,fontWeight:void 0}})})),e})():(()=>{const e=[p];return m.forEach((({name:t,value:n})=>{e.push({key:n,name:t,style:{fontStyle:void 0,fontWeight:n}})})),e})()),[e.options,g,m,f]),k=b.find((e=>e.style.fontStyle===s&&e.style.fontWeight===l))||b[0];return t||void 0!==a.size&&"default"!==a.size||I()("36px default size for wp.blockEditor.__experimentalFontAppearanceControl",{since:"6.8",version:"7.1",hint:"Set the `__next40pxDefaultSize` prop to true to start opting into the new default size, which will become the default in a future version."}),c&&(0,d.jsx)(ws.CustomSelectControl,{...a,className:"components-font-appearance-control",__next40pxDefaultSize:t,__shouldNotWarnDeprecated36pxSize:!0,label:u,describedBy:k?o?r?(0,T.sprintf)((0,T.__)("Currently selected font appearance: %s"),k.name):(0,T.sprintf)((0,T.__)("Currently selected font style: %s"),k.name):(0,T.sprintf)((0,T.__)("Currently selected font weight: %s"),k.name):(0,T.__)("No selected font appearance"),options:b,value:k,onChange:({selectedItem:e})=>n(e.style)})}const Dh=1.5;var Oh=({__next40pxDefaultSize:e=!1,value:t,onChange:n,__unstableInputWidth:o="60px",...r})=>{const i=function(e){return void 0!==e&&""!==e}(t),s=(e,t)=>{if(i)return e;switch(`${e}`){case"0.1":return 1.6;case"0":return t?e:1.4;case"":return Dh;default:return e}},l=i?t:"";return e||void 0!==r.size&&"default"!==r.size||I()("36px default size for wp.blockEditor.LineHeightControl",{since:"6.8",version:"7.1",hint:"Set the `__next40pxDefaultSize` prop to true to start opting into the new default size, which will become the default in a future version."}),(0,d.jsx)("div",{className:"block-editor-line-height-control",children:(0,d.jsx)(ws.__experimentalNumberControl,{...r,__shouldNotWarnDeprecated36pxSize:!0,__next40pxDefaultSize:e,__unstableInputWidth:o,__unstableStateReducer:(e,t)=>{const n=["insertText","insertFromPaste"].includes(t.payload.event.nativeEvent?.inputType),o=s(e.value,n);return{...e,value:o}},onChange:(e,{event:t})=>{""!==e?"click"!==t.type?n(`${e}`):n(s(`${e}`,!1)):n()},label:(0,T.__)("Line height"),placeholder:Dh,step:.01,spinFactor:10,value:l,min:0,spinControls:"custom"})})};function zh({__next40pxDefaultSize:e=!1,value:t,onChange:n,__unstableInputWidth:o="60px",...r}){const[i]=Ti("spacing.units"),s=(0,ws.__experimentalUseCustomUnits)({availableUnits:i||["px","em","rem"],defaultValues:{px:2,em:.2,rem:.2}});return e||void 0!==r.size&&"default"!==r.size||I()("36px default size for wp.blockEditor.__experimentalLetterSpacingControl",{since:"6.8",version:"7.1",hint:"Set the `__next40pxDefaultSize` prop to true to start opting into the new default size, which will become the default in a future version."}),(0,d.jsx)(ws.__experimentalUnitControl,{__next40pxDefaultSize:e,__shouldNotWarnDeprecated36pxSize:!0,...r,label:(0,T.__)("Letter spacing"),value:t,__unstableInputWidth:o,units:s,onChange:n})}var Vh=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"M13 5.5H4V4h9v1.5Zm7 7H4V11h16v1.5Zm-7 7H4V18h9v1.5Z"})}),Fh=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"M7.5 5.5h9V4h-9v1.5Zm-3.5 7h16V11H4v1.5Zm3.5 7h9V18h-9v1.5Z"})}),Hh=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"M11.111 5.5H20V4h-8.889v1.5ZM4 12.5h16V11H4v1.5Zm7.111 7H20V18h-8.889v1.5Z"})}),Uh=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"M4 12.8h16v-1.5H4v1.5zm0 7h12.4v-1.5H4v1.5zM4 4.3v1.5h16V4.3H4z"})});const Gh=[{label:(0,T.__)("Align text left"),value:"left",icon:Vh},{label:(0,T.__)("Align text center"),value:"center",icon:Fh},{label:(0,T.__)("Align text right"),value:"right",icon:Hh},{label:(0,T.__)("Justify text"),value:"justify",icon:Uh}],$h=["left","center","right"];function Wh({className:e,value:t,onChange:n,options:o=$h}){const r=(0,h.useMemo)((()=>Gh.filter((e=>o.includes(e.value)))),[o]);return r.length?(0,d.jsx)(ws.__experimentalToggleGroupControl,{isDeselectable:!0,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,T.__)("Text alignment"),className:ms("block-editor-text-alignment-control",e),value:t,onChange:e=>{n(e===t?void 0:e)},children:r.map((e=>(0,d.jsx)(ws.__experimentalToggleGroupControlOptionIcon,{value:e.value,icon:e.icon,label:e.label},e.value)))}):null}var Kh=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.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"})}),Zh=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.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"})}),qh=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.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 Yh=[{label:(0,T.__)("None"),value:"none",icon:Ha},{label:(0,T.__)("Uppercase"),value:"uppercase",icon:Kh},{label:(0,T.__)("Lowercase"),value:"lowercase",icon:Zh},{label:(0,T.__)("Capitalize"),value:"capitalize",icon:qh}];function Xh({className:e,value:t,onChange:n}){return(0,d.jsx)(ws.__experimentalToggleGroupControl,{isDeselectable:!0,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,T.__)("Letter case"),className:ms("block-editor-text-transform-control",e),value:t,onChange:e=>{n(e===t?void 0:e)},children:Yh.map((e=>(0,d.jsx)(ws.__experimentalToggleGroupControlOptionIcon,{value:e.value,icon:e.icon,label:e.label},e.value)))})}var Qh=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.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"})}),Jh=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.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"})});const eg=[{label:(0,T.__)("None"),value:"none",icon:Ha},{label:(0,T.__)("Underline"),value:"underline",icon:Qh},{label:(0,T.__)("Strikethrough"),value:"line-through",icon:Jh}];function tg({value:e,onChange:t,className:n}){return(0,d.jsx)(ws.__experimentalToggleGroupControl,{isDeselectable:!0,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,T.__)("Decoration"),className:ms("block-editor-text-decoration-control",n),value:e,onChange:n=>{t(n===e?void 0:n)},children:eg.map((e=>(0,d.jsx)(ws.__experimentalToggleGroupControlOptionIcon,{value:e.value,icon:e.icon,label:e.label},e.value)))})}var ng=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"M8.2 14.4h3.9L13 17h1.7L11 6.5H9.3L5.6 17h1.7l.9-2.6zm2-5.5 1.4 4H8.8l1.4-4zm7.4 7.5-1.3.8.8 1.4H5.5V20h14.3l-2.2-3.6z"})}),og=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"M7 5.6v1.7l2.6.9v3.9L7 13v1.7L17.5 11V9.3L7 5.6zm4.2 6V8.8l4 1.4-4 1.4zm-5.7 5.6V5.5H4v14.3l3.6-2.2-.8-1.3-1.3.9z"})});const rg=[{label:(0,T.__)("Horizontal"),value:"horizontal-tb",icon:ng},{label:(0,T.__)("Vertical"),value:(0,T.isRTL)()?"vertical-lr":"vertical-rl",icon:og}];function ig({className:e,value:t,onChange:n}){return(0,d.jsx)(ws.__experimentalToggleGroupControl,{isDeselectable:!0,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,T.__)("Orientation"),className:ms("block-editor-writing-mode-control",e),value:t,onChange:e=>{n(e===t?void 0:e)},children:rg.map((e=>(0,d.jsx)(ws.__experimentalToggleGroupControlOptionIcon,{value:e.value,icon:e.icon,label:e.label},e.value)))})}const sg=1,lg=6;function ag(e){const t=ug(e),n=dg(e),o=pg(e),r=hg(e),i=mg(e),s=gg(e),l=fg(e),a=bg(e),c=kg(e),u=cg(e);return t||n||o||r||i||s||u||l||a||c}function cg(e){return!1!==e?.typography?.defaultFontSizes&&e?.typography?.fontSizes?.default?.length||e?.typography?.fontSizes?.theme?.length||e?.typography?.fontSizes?.custom?.length||e?.typography?.customFontSize}function ug(e){return["default","theme","custom"].some((t=>e?.typography?.fontFamilies?.[t]?.length))}function dg(e){return e?.typography?.lineHeight}function pg(e){return e?.typography?.fontStyle||e?.typography?.fontWeight}function hg(e){return e?.typography?.letterSpacing}function gg(e){return e?.typography?.textTransform}function mg(e){return e?.typography?.textAlign}function fg(e){return e?.typography?.textDecoration}function bg(e){return e?.typography?.writingMode}function kg(e){return e?.typography?.textColumns}function vg({resetAllFilter:e,onChange:t,value:n,panelId:o,children:r}){const i=Ji();return(0,d.jsx)(ws.__experimentalToolsPanel,{label:(0,T.__)("Typography"),resetAll:()=>{const o=e(n);t(o)},panelId:o,dropdownMenuProps:i,children:r})}const _g={fontFamily:!0,fontSize:!0,fontAppearance:!0,lineHeight:!0,letterSpacing:!0,textAlign:!0,textTransform:!0,textDecoration:!0,writingMode:!0,textColumns:!0};function yg({as:e=vg,value:t,onChange:n,inheritedValue:o=t,settings:r,panelId:i,defaultControls:s=_g,fitText:l=!1}){const a=e=>ts({settings:r},"",e),c=ug(r),u=a(o?.typography?.fontFamily),{fontFamilies:p,fontFamilyFaces:g}=(0,h.useMemo)((()=>function(e,t){const n=e?.typography?.fontFamilies,o=["default","theme","custom"].flatMap((e=>n?.[e]??[])),r=o.find((e=>e.fontFamily===t))?.fontFace??[];return{fontFamilies:o,fontFamilyFaces:r}}(r,u)),[r,u]),m=e=>{const o=p?.find((({fontFamily:t})=>t===e))?.slug;n(me(t,["typography","fontFamily"],o?`var:preset|font-family|${o}`:e||void 0))},f=cg(r),b=!r?.typography?.customFontSize,k=function(e){const t=e?.typography?.fontSizes,n=!!e?.typography?.defaultFontSizes;return[...t?.custom??[],...t?.theme??[],...n?t?.default??[]:[]]}(r),v=a(o?.typography?.fontSize),_=(()=>{const e=o?.typography?.fontSize;if(!e||"string"!=typeof e)return;if(e.startsWith("var:preset|font-size|"))return e.replace("var:preset|font-size|","");const t=e.match(/^var\(--wp--preset--font-size--([^)]+)\)$/);return t?t[1]:void 0})(),y=(e,o)=>{n(me(t,["typography","fontSize"],(o?.slug?`var:preset|font-size|${o?.slug}`:e)||void 0))},x=pg(r),S=function(e){return e?.typography?.fontStyle?e?.typography?.fontWeight?(0,T.__)("Appearance"):(0,T.__)("Font style"):(0,T.__)("Font weight")}(r),w=r?.typography?.fontStyle,C=r?.typography?.fontWeight,B=a(o?.typography?.fontStyle),I=a(o?.typography?.fontWeight),{nearestFontStyle:j,nearestFontWeight:E}=function(e,t,n){let o=t,r=n;const{fontStyles:i,fontWeights:s,combinedStyleAndWeightOptions:l}=$i(e),a=i?.some((({value:e})=>e===t)),c=s?.some((({value:e})=>e?.toString()===n?.toString()));var u,d;return a||(o=t?(u=i,"string"==typeof(d=t)&&d&&["normal","italic","oblique"].includes(d)?!u||0===u.length||u.find((e=>e.value===d))?d:"oblique"!==d||u.find((e=>"oblique"===e.value))?"":"italic":""):l?.find((e=>e.style.fontWeight===Zi(s,n)))?.style?.fontStyle),c||(r=n?Zi(s,n):l?.find((e=>e.style.fontStyle===(o||t)))?.style?.fontWeight),{nearestFontStyle:o,nearestFontWeight:r}}(g,B,I),M=(0,h.useCallback)((({fontStyle:e,fontWeight:o})=>{e===B&&o===I||n({...t,typography:{...t?.typography,fontStyle:e||void 0,fontWeight:o||void 0}})}),[B,I,n,t]),P=(0,h.useCallback)((()=>{M({})}),[M]);(0,h.useEffect)((()=>{j&&E?M({fontStyle:j,fontWeight:E}):P()}),[j,E,P,M]);const R=dg(r),A=a(o?.typography?.lineHeight),N=e=>{n(me(t,["typography","lineHeight"],e||void 0))},L=hg(r),D=a(o?.typography?.letterSpacing),O=e=>{n(me(t,["typography","letterSpacing"],e||void 0))},z=kg(r),V=a(o?.typography?.textColumns),F=e=>{n(me(t,["typography","textColumns"],e||void 0))},H=gg(r),U=a(o?.typography?.textTransform),G=e=>{n(me(t,["typography","textTransform"],e||void 0))},$=fg(r),W=a(o?.typography?.textDecoration),K=e=>{n(me(t,["typography","textDecoration"],e||void 0))},Z=bg(r),q=a(o?.typography?.writingMode),Y=e=>{n(me(t,["typography","writingMode"],e||void 0))},X=mg(r),Q=a(o?.typography?.textAlign),J=e=>{n(me(t,["typography","textAlign"],e||void 0))},ee=(0,h.useCallback)((e=>({...e,typography:{}})),[]);return(0,d.jsxs)(e,{resetAllFilter:ee,value:t,onChange:n,panelId:i,children:[c&&(0,d.jsx)(ws.__experimentalToolsPanelItem,{label:(0,T.__)("Font"),hasValue:()=>!!t?.typography?.fontFamily,onDeselect:()=>m(void 0),isShownByDefault:s.fontFamily,panelId:i,children:(0,d.jsx)(Ah,{fontFamilies:p,value:u,onChange:m,size:"__unstable-large",__nextHasNoMarginBottom:!0})}),f&&!l&&(0,d.jsx)(ws.__experimentalToolsPanelItem,{label:(0,T.__)("Size"),hasValue:()=>!!t?.typography?.fontSize,onDeselect:()=>y(void 0),isShownByDefault:s.fontSize,panelId:i,children:(0,d.jsx)(ws.FontSizePicker,{value:_||v,valueMode:_?"slug":"literal",onChange:y,fontSizes:k,disableCustomFontSizes:b,withReset:!1,withSlider:!0,size:"__unstable-large"})}),x&&(0,d.jsx)(ws.__experimentalToolsPanelItem,{className:"single-column",label:S,hasValue:()=>!!t?.typography?.fontStyle||!!t?.typography?.fontWeight,onDeselect:P,isShownByDefault:s.fontAppearance,panelId:i,children:(0,d.jsx)(Lh,{value:{fontStyle:B,fontWeight:I},onChange:M,hasFontStyles:w,hasFontWeights:C,fontFamilyFaces:g,size:"__unstable-large"})}),R&&(0,d.jsx)(ws.__experimentalToolsPanelItem,{className:"single-column",label:(0,T.__)("Line height"),hasValue:()=>void 0!==t?.typography?.lineHeight,onDeselect:()=>N(void 0),isShownByDefault:s.lineHeight,panelId:i,children:(0,d.jsx)(Oh,{__unstableInputWidth:"auto",value:A,onChange:N,size:"__unstable-large"})}),L&&(0,d.jsx)(ws.__experimentalToolsPanelItem,{className:"single-column",label:(0,T.__)("Letter spacing"),hasValue:()=>!!t?.typography?.letterSpacing,onDeselect:()=>O(void 0),isShownByDefault:s.letterSpacing,panelId:i,children:(0,d.jsx)(zh,{value:D,onChange:O,size:"__unstable-large",__unstableInputWidth:"auto"})}),z&&(0,d.jsx)(ws.__experimentalToolsPanelItem,{className:"single-column",label:(0,T.__)("Columns"),hasValue:()=>!!t?.typography?.textColumns,onDeselect:()=>F(void 0),isShownByDefault:s.textColumns,panelId:i,children:(0,d.jsx)(ws.__experimentalNumberControl,{label:(0,T.__)("Columns"),max:lg,min:sg,onChange:F,size:"__unstable-large",spinControls:"custom",value:V,initialPosition:1})}),$&&(0,d.jsx)(ws.__experimentalToolsPanelItem,{className:"single-column",label:(0,T.__)("Decoration"),hasValue:()=>!!t?.typography?.textDecoration,onDeselect:()=>K(void 0),isShownByDefault:s.textDecoration,panelId:i,children:(0,d.jsx)(tg,{value:W,onChange:K,size:"__unstable-large",__unstableInputWidth:"auto"})}),Z&&(0,d.jsx)(ws.__experimentalToolsPanelItem,{className:"single-column",label:(0,T.__)("Orientation"),hasValue:()=>!!t?.typography?.writingMode,onDeselect:()=>Y(void 0),isShownByDefault:s.writingMode,panelId:i,children:(0,d.jsx)(ig,{value:q,onChange:Y,size:"__unstable-large",__nextHasNoMarginBottom:!0})}),H&&(0,d.jsx)(ws.__experimentalToolsPanelItem,{label:(0,T.__)("Letter case"),hasValue:()=>!!t?.typography?.textTransform,onDeselect:()=>G(void 0),isShownByDefault:s.textTransform,panelId:i,children:(0,d.jsx)(Xh,{value:U,onChange:G,showNone:!0,isBlock:!0,size:"__unstable-large",__nextHasNoMarginBottom:!0})}),X&&(0,d.jsx)(ws.__experimentalToolsPanelItem,{label:(0,T.__)("Text alignment"),hasValue:()=>!!t?.typography?.textAlign,onDeselect:()=>J(void 0),isShownByDefault:s.textAlign,panelId:i,children:(0,d.jsx)(Wh,{value:Q,onChange:J,size:"__unstable-large",__nextHasNoMarginBottom:!0})})]})}const xg="typography.lineHeight";const Sg=window.wp.tokenList;var wg=n.n(Sg);const Cg="typography.__experimentalFontFamily",{kebabCase:Bg}=G(ws.privateApis);function Ig(e,t,n){if(!(0,p.hasBlockSupport)(t,Cg))return e;if(ks(t,Jg,"fontFamily"))return e;if(!n?.fontFamily)return e;const o=new(wg())(e.className);o.add(`has-${Bg(n?.fontFamily)}-font-family`);const r=o.value;return e.className=r||void 0,e}var jg={useBlockProps:function({name:e,fontFamily:t}){return Ig({},e,{fontFamily:t})},addSaveProps:Ig,attributeKeys:["fontFamily"],hasSupport:e=>(0,p.hasBlockSupport)(e,Cg)};(0,f.addFilter)("blocks.registerBlockType","core/fontFamily/addAttribute",(function(e){return(0,p.hasBlockSupport)(e,Cg)?(e.attributes.fontFamily||Object.assign(e.attributes,{fontFamily:{type:"string"}}),e):e}));const{kebabCase:Eg}=G(ws.privateApis),Tg=(e,t,n)=>{if(t){const n=e?.find((({slug:e})=>e===t));if(n)return n}return{size:n}};function Mg(e,t){const n=e?.find((({size:e})=>e===t));return n||{size:t}}function Pg(e){if(e)return`has-${Eg(e)}-font-size`}const Rg="typography.fontSize";function Ag(e,t,n){if(!(0,p.hasBlockSupport)(t,Rg))return e;if(ks(t,Jg,"fontSize"))return e;const o=new(wg())(e.className);o.add(Pg(n.fontSize));const r=o.value;return e.className=r||void 0,e}var Ng={useBlockProps:function({name:e,fontSize:t,style:n}){const[o,r,i]=Ti("typography.fontSizes","typography.fluid","layout");if(!(0,p.hasBlockSupport)(e,Rg)||ks(e,Jg,"fontSize")||!t&&!n?.typography?.fontSize)return;let s;return n?.typography?.fontSize&&(s={style:{fontSize:Wi({size:n.typography.fontSize},{typography:{fluid:r},layout:i})}}),t&&(s={style:{fontSize:Tg(o,t,n?.typography?.fontSize).size}}),s?Ag(s,e,{fontSize:t}):void 0},addSaveProps:Ag,attributeKeys:["fontSize","style","fitText"],hasSupport:e=>(0,p.hasBlockSupport)(e,Rg)};const Lg={fontSize:[["fontSize"],["style","typography","fontSize"]]};(0,f.addFilter)("blocks.registerBlockType","core/font/addAttribute",(function(e){return(0,p.hasBlockSupport)(e,Rg)?(e.attributes.fontSize||Object.assign(e.attributes,{fontSize:{type:"string"}}),e):e})),(0,f.addFilter)("blocks.switchToBlockType.transformedBlock","core/font-size/addTransforms",(function(e,t,n,o){const r=e.name;return bs({fontSize:(0,p.hasBlockSupport)(r,Rg)},Lg,e,t,n,o)}));const Dg=[{icon:Vh,title:(0,T.__)("Align text left"),align:"left"},{icon:Fh,title:(0,T.__)("Align text center"),align:"center"},{icon:Hh,title:(0,T.__)("Align text right"),align:"right"}],Og={placement:"bottom-start"};var zg=function({value:e,onChange:t,alignmentControls:n=Dg,label:o=(0,T.__)("Align text"),description:r=(0,T.__)("Change text alignment"),isCollapsed:i=!0,isToolbar:s}){function l(n){return()=>t(e===n?void 0:n)}const a=n.find((t=>t.align===e)),c=s?ws.ToolbarGroup:ws.ToolbarDropdownMenu,u=s?{isCollapsed:i}:{toggleProps:{description:r},popoverProps:Og};return(0,d.jsx)(c,{icon:a?a.icon:(0,T.isRTL)()?Hh:Vh,label:o,controls:n.map((t=>{const{align:n}=t,o=e===n;return{...t,isActive:o,role:i?"menuitemradio":void 0,onClick:l(n)}})),...u})};const Vg=e=>(0,d.jsx)(zg,{...e,isToolbar:!1}),Fg=e=>(0,d.jsx)(zg,{...e,isToolbar:!0}),Hg="typography.textAlign",Ug=[{icon:Vh,title:(0,T.__)("Align text left"),align:"left"},{icon:Fh,title:(0,T.__)("Align text center"),align:"center"},{icon:Hh,title:(0,T.__)("Align text right"),align:"right"}],Gg=["left","center","right"],$g=[];function Wg(e){return Array.isArray(e)?Gg.filter((t=>e.includes(t))):!0===e?Gg:$g}var Kg={edit:function({style:e,name:t,setAttributes:n}){const o=xs(t),r=o?.typography?.textAlign,i=ga();if(!r||"default"!==i)return null;const s=Wg((0,p.getBlockSupport)(t,Hg));if(!s.length)return null;const l=Ug.filter((e=>s.includes(e.align)));return(0,d.jsx)(Rs,{group:"block",children:(0,d.jsx)(Vg,{value:e?.typography?.textAlign,onChange:t=>{const o={...e,typography:{...e?.typography,textAlign:t}};n({style:fs(o)})},alignmentControls:l})})},useBlockProps:function({name:e,style:t}){if(!t?.typography?.textAlign)return null;if(!Wg((0,p.getBlockSupport)(e,Hg)).length)return null;if(ks(e,Jg,"textAlign"))return null;const n=t.typography.textAlign;return{className:ms({[`has-text-align-${n}`]:n})}},addSaveProps:function(e,t,n){if(!n?.style?.typography?.textAlign)return e;const{textAlign:o}=n.style.typography,r=(0,p.getBlockSupport)(t,Hg);Wg(r).includes(o)&&!ks(t,Jg,"textAlign")&&(e.className=ms(`has-text-align-${o}`,e.className));return e},attributeKeys:["style"],hasSupport:e=>(0,p.hasBlockSupport)(e,Hg,!1)};function Zg(e,t){if(!e)return;t(0);const n=function(e,t){const n=e.scrollHeight>e.clientHeight;let o=5,r=2400,i=o;for(;o<=r;){const s=Math.floor((o+r)/2);t(s);const l=e.scrollWidth<=e.clientWidth,a=n||e.scrollHeight<=e.clientHeight;l&&a?(i=s,o=s+1):r=s-1}return i}(e,t);return t(n),n}const qg={},Yg="typography.fitText";(0,f.addFilter)("blocks.registerBlockType","core/fit-text/addAttribute",(function(e){return(0,p.hasBlockSupport)(e,Yg)?e.attributes?.fitText?e:{...e,attributes:{...e.attributes,fitText:{type:"boolean"}}}:e}));var Xg={useBlockProps:function({name:e,fitText:t,clientId:n}){return function({fitText:e,name:t,clientId:n}){const o=(0,p.hasBlockSupport)(t,Yg),r=bh(n),{blockAttributes:i,parentId:s}=(0,g.useSelect)((t=>n&&o&&e?{blockAttributes:t(ji).getBlockAttributes(n),parentId:t(ji).getBlockRootClientId(n)}:qg),[n,o,e]),l=(0,h.useCallback)((()=>{if(!r||!o||!e)return;const t=`fit-text-${n}`;let i=r.ownerDocument.getElementById(t);i||(i=r.ownerDocument.createElement("style"),i.id=t,r.ownerDocument.head.appendChild(i));const s=`#block-${n}`;Zg(r,(e=>{i.textContent=0===e?"":`${s} { font-size: ${e}px !important; }`}))}),[r,n,o,e]);(0,h.useEffect)((()=>{if(!(e&&r&&n&&o))return;const t=r,i=t.style.visibility;let s,a=null,c=null,u=null;return a=window.requestAnimationFrame((()=>{t.style.visibility="hidden",c=window.requestAnimationFrame((()=>{l(),u=setTimeout((()=>{t.style.visibility=i}),10)}))})),window.ResizeObserver&&t.parentElement&&(s=new window.ResizeObserver(l),s.observe(t.parentElement),s.observe(t)),()=>{null!==a&&window.cancelAnimationFrame(a),null!==c&&window.cancelAnimationFrame(c),null!==u&&clearTimeout(u),s&&s.disconnect();const e=`fit-text-${n}`,o=t.ownerDocument.getElementById(e);o&&o.remove()}}),[e,n,s,l,r,o]),(0,h.useEffect)((()=>{if(e&&r&&o){const e=window.requestAnimationFrame((()=>{r&&l()}));return()=>window.cancelAnimationFrame(e)}}),[i,e,l,r,o])}({fitText:t,name:e,clientId:n}),t&&(0,p.hasBlockSupport)(e,Yg)?{className:"has-fit-text"}:{}},addSaveProps:function(e,t,n){if(!(0,p.hasBlockSupport)(t,Yg))return e;const{fitText:o}=n;if(!o)return e;const r=e.className?`${e.className} has-fit-text`:"has-fit-text";return{...e,className:r}},attributeKeys:["fitText"],hasSupport:e=>(0,p.hasBlockSupport)(e,Yg),edit:()=>null};function Qg(e,t){return Object.fromEntries(Object.entries(e).filter((([e])=>!t.includes(e))))}const Jg="typography",em=[xg,Rg,"typography.__experimentalFontStyle","typography.__experimentalFontWeight",Cg,Hg,"typography.textColumns","typography.__experimentalTextDecoration","typography.__experimentalWritingMode","typography.__experimentalTextTransform","typography.__experimentalLetterSpacing",Yg];function tm(e){const t={...Qg(e,["fontFamily"])},n=e?.typography?.fontSize,o=e?.typography?.fontFamily,r="string"==typeof n&&n?.startsWith("var:preset|font-size|")?n.substring(21):void 0,i=o?.startsWith("var:preset|font-family|")?o.substring(23):void 0;return t.typography={...Qg(t.typography,["fontFamily"]),fontSize:r?void 0:n},{style:fs(t),fontFamily:i,fontSize:r}}function nm(e){return{...e.style,typography:{...e.style?.typography,fontFamily:e.fontFamily?"var:preset|font-family|"+e.fontFamily:void 0,fontSize:e.fontSize?"var:preset|font-size|"+e.fontSize:e.style?.typography?.fontSize}}}function om({children:e,resetAllFilter:t}){const n=(0,h.useCallback)((e=>{const n=nm(e),o=t(n);return{...e,...tm(o)}}),[t]);return(0,d.jsx)(Fa,{group:"typography",resetAllFilter:n,children:e})}function rm({clientId:e,name:t,setAttributes:n,settings:o}){const{style:r,fontFamily:i,fontSize:s,fitText:l}=(0,g.useSelect)((function(t){const{style:n,fontFamily:o,fontSize:r,fitText:i}=t(ji).getBlockAttributes(e)||{};return{style:n,fontFamily:o,fontSize:r,fitText:i}}),[e]),a=ag(o),c=(0,h.useMemo)((()=>nm({style:r,fontFamily:i,fontSize:s})),[r,s,i]);if(!a)return null;const u=(0,p.getBlockSupport)(t,[Jg,"__experimentalDefaultControls"]);return(0,d.jsx)(yg,{as:om,panelId:e,settings:o,value:c,onChange:e=>{n(tm(e))},defaultControls:u,fitText:l})}const im=[],sm=new Intl.Collator("und",{numeric:!0}).compare;function lm(){const[e,t,n,o]=Ti("spacing.spacingSizes.custom","spacing.spacingSizes.theme","spacing.spacingSizes.default","spacing.defaultSpacingSizes"),r=e??im,i=t??im,s=n&&!1!==o?n:im;return(0,h.useMemo)((()=>{const e=[{name:(0,T.__)("None"),slug:"0",size:0},...r,...i,...s];return e.every((({slug:e})=>/^[0-9]/.test(e)))&&e.sort(((e,t)=>sm(e.slug,t.slug))),e.length>Qs?[{name:(0,T.__)("Default"),slug:"default",size:void 0},...e]:e}),[r,i,s])}const am={px:{max:300,steps:1},"%":{max:100,steps:1},vw:{max:100,steps:1},vh:{max:100,steps:1},em:{max:10,steps:.1},rm:{max:10,steps:.1},svw:{max:100,steps:1},lvw:{max:100,steps:1},dvw:{max:100,steps:1},svh:{max:100,steps:1},lvh:{max:100,steps:1},dvh:{max:100,steps:1},vi:{max:100,steps:1},svi:{max:100,steps:1},lvi:{max:100,steps:1},dvi:{max:100,steps:1},vb:{max:100,steps:1},svb:{max:100,steps:1},lvb:{max:100,steps:1},dvb:{max:100,steps:1},vmin:{max:100,steps:1},svmin:{max:100,steps:1},lvmin:{max:100,steps:1},dvmin:{max:100,steps:1},vmax:{max:100,steps:1},svmax:{max:100,steps:1},lvmax:{max:100,steps:1},dvmax:{max:100,steps:1}};function cm({icon:e,isMixed:t=!1,minimumCustomValue:n,onChange:o,onMouseOut:r,onMouseOver:i,showSideInLabel:s=!0,side:l,spacingSizes:a,type:c,value:u}){u=sl(u,a);let p=a;const f=a.length<=Qs,b=(0,g.useSelect)((e=>{const t=e(ji).getSettings();return t?.disableCustomSpacingSizes})),[k,v]=(0,h.useState)(!b&&void 0!==u&&!rl(u)),[_,y]=(0,h.useState)(n),x=(0,m.usePrevious)(u);u&&x!==u&&!rl(u)&&!0!==k&&v(!0);const[S]=Ti("spacing.units"),w=(0,ws.__experimentalUseCustomUnits)({availableUnits:S||["px","em","rem"]});let C=null;!f&&!k&&void 0!==u&&(!rl(u)||rl(u)&&t)?(p=[...a,{name:t?(0,T.__)("Mixed"):(0,T.sprintf)((0,T.__)("Custom (%s)"),u),slug:"custom",size:u}],C=p.length-1):t||(C=k?il(u,a):function(e,t){if(void 0===e)return 0;const n=0===parseFloat(e,10)?"0":al(e),o=t.findIndex((e=>String(e.slug)===n));return-1!==o?o:NaN}(u,a));const B=(0,h.useMemo)((()=>(0,ws.__experimentalParseQuantityAndUnitFromRawValue)(C)),[C])[1]||w[0]?.value,I=parseFloat(C,10),j=(e,t)=>{const n=parseInt(e,10);if("selectList"===t){if(0===n)return;if(1===n)return"0"}else if(0===n)return"0";return`var:preset|spacing|${a[e]?.slug}`},E=t?(0,T.__)("Mixed"):null,M=p.map(((e,t)=>({key:t,name:e.name}))),P=a.slice(1,a.length-1).map(((e,t)=>({value:t+1,label:void 0}))),R=Js.includes(l)&&s?nl[l]:"",A=s?c?.toLowerCase():c,N=(0,T.sprintf)((0,T._x)("%1$s %2$s","spacing"),R,A).trim();return(0,d.jsxs)(ws.__experimentalHStack,{className:"spacing-sizes-control__wrapper",children:[e&&(0,d.jsx)(ws.Icon,{className:"spacing-sizes-control__icon",icon:e,size:24}),k&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(ws.__experimentalUnitControl,{onMouseOver:i,onMouseOut:r,onFocus:i,onBlur:r,onChange:e=>o((e=>isNaN(parseFloat(e))?void 0:e)(e)),value:C,units:w,min:_,placeholder:E,disableUnits:t,label:N,hideLabelFromVision:!0,className:"spacing-sizes-control__custom-value-input",size:"__unstable-large",onDragStart:()=>{"-"===u?.charAt(0)&&y(0)},onDrag:()=>{"-"===u?.charAt(0)&&y(0)},onDragEnd:()=>{y(n)}}),(0,d.jsx)(ws.RangeControl,{__next40pxDefaultSize:!0,onMouseOver:i,onMouseOut:r,onFocus:i,onBlur:r,value:I,min:0,max:am[B]?.max??10,step:am[B]?.steps??.1,withInputField:!1,onChange:e=>{o([e,B].join(""))},className:"spacing-sizes-control__custom-value-range",__nextHasNoMarginBottom:!0,label:N,hideLabelFromVision:!0})]}),f&&!k&&(0,d.jsx)(ws.RangeControl,{__next40pxDefaultSize:!0,onMouseOver:i,onMouseOut:r,className:"spacing-sizes-control__range-control",value:C,onChange:e=>o(j(e)),onMouseDown:e=>{e?.nativeEvent?.offsetX<35&&void 0===u&&o("0")},withInputField:!1,"aria-valuenow":C,"aria-valuetext":a[C]?.name,renderTooltipContent:e=>void 0===u?void 0:a[e]?.name,min:0,max:a.length-1,marks:P,label:N,hideLabelFromVision:!0,__nextHasNoMarginBottom:!0,onFocus:i,onBlur:r}),!f&&!k&&(0,d.jsx)(ws.CustomSelectControl,{className:"spacing-sizes-control__custom-select-control",value:M.find((e=>e.key===C))||"",onChange:e=>{o(j(e.selectedItem.key,"selectList"))},options:M,label:N,hideLabelFromVision:!0,size:"__unstable-large",onMouseOver:i,onMouseOut:r,onFocus:i,onBlur:r}),!b&&(0,d.jsx)(ws.Button,{label:k?(0,T.__)("Use size preset"):(0,T.__)("Set custom size"),icon:Gd,onClick:()=>{v(!k)},isPressed:k,size:"small",className:"spacing-sizes-control__custom-toggle",iconSize:24})]})}const um=["vertical","horizontal"];function dm({minimumCustomValue:e,onChange:t,onMouseOut:n,onMouseOver:o,sides:r,spacingSizes:i,type:s,values:l}){const a=e=>n=>{if(!t)return;const o={...Object.keys(l).reduce(((e,t)=>(e[t]=sl(l[t],i),e)),{})};"vertical"===e&&(o.top=n,o.bottom=n),"horizontal"===e&&(o.left=n,o.right=n),t(o)},c=r?.length?um.filter((e=>cl(r,e))):um;return(0,d.jsx)(d.Fragment,{children:c.map((t=>{const r="vertical"===t?l.top:l.left;return(0,d.jsx)(cm,{icon:tl[t],label:nl[t],minimumCustomValue:e,onChange:a(t),onMouseOut:n,onMouseOver:o,side:t,spacingSizes:i,type:s,value:r,withInputField:!1},`spacing-sizes-control-${t}`)}))})}function pm({minimumCustomValue:e,onChange:t,onMouseOut:n,onMouseOver:o,sides:r,spacingSizes:i,type:s,values:l}){const a=r?.length?Js.filter((e=>r.includes(e))):Js,c=e=>n=>{const o={...Object.keys(l).reduce(((e,t)=>(e[t]=sl(l[t],i),e)),{})};o[e]=n,t(o)};return(0,d.jsx)(d.Fragment,{children:a.map((t=>(0,d.jsx)(cm,{icon:tl[t],label:nl[t],minimumCustomValue:e,onChange:c(t),onMouseOut:n,onMouseOver:o,side:t,spacingSizes:i,type:s,value:l[t],withInputField:!1},`spacing-sizes-control-${t}`)))})}function hm({minimumCustomValue:e,onChange:t,onMouseOut:n,onMouseOver:o,showSideInLabel:r,side:i,spacingSizes:s,type:l,values:a}){return(0,d.jsx)(cm,{label:nl[i],minimumCustomValue:e,onChange:(c=i,e=>{const n={...Object.keys(a).reduce(((e,t)=>(e[t]=sl(a[t],s),e)),{})};n[c]=e,t(n)}),onMouseOut:n,onMouseOver:o,showSideInLabel:r,side:i,spacingSizes:s,type:l,value:a[i],withInputField:!1});var c}function gm({isLinked:e,...t}){const n=e?(0,T.__)("Unlink sides"):(0,T.__)("Link sides");return(0,d.jsx)(ws.Button,{...t,size:"small",icon:e?Ld:ec,iconSize:24,label:n})}function mm({inputProps:e,label:t,minimumCustomValue:n=0,onChange:o,onMouseOut:r,onMouseOver:i,showSideInLabel:s=!0,sides:l=Js,useSelect:a,values:c}){const u=lm(),p=c||el,g=1===l?.length,m=l?.includes("horizontal")&&l?.includes("vertical")&&2===l?.length,[f,b]=(0,h.useState)(function(e={},t){const{top:n,right:o,bottom:r,left:i}=e,s=[n,o,r,i].filter(Boolean),l=!(n!==r||i!==o||!n&&!i),a=!s.length&&function(e=[]){const t={top:0,right:0,bottom:0,left:0};return e.forEach((e=>t[e]+=1)),(t.top+t.bottom)%2==0&&(t.left+t.right)%2==0}(t),c=t?.includes("horizontal")&&t?.includes("vertical")&&2===t?.length;if(cl(t)&&(l||a))return ol.axial;if(c&&1===s.length){let t;return Object.entries(e).some((([e,n])=>(t=e,void 0!==n))),t}return 1!==t?.length||s.length?ol.custom:t[0]}(p,l)),k={...e,minimumCustomValue:n,onChange:e=>{const t={...c,...e};o(t)},onMouseOut:r,onMouseOver:i,sides:l,spacingSizes:u,type:t,useSelect:a,values:p},v=Js.includes(f)&&s?nl[f]:"",_=(0,T.sprintf)((0,T._x)("%1$s %2$s","spacing"),t,v).trim();return(0,d.jsxs)("fieldset",{className:"spacing-sizes-control",children:[(0,d.jsxs)(ws.__experimentalHStack,{className:"spacing-sizes-control__header",children:[(0,d.jsx)(ws.BaseControl.VisualLabel,{as:"legend",className:"spacing-sizes-control__label",children:_}),!g&&!m&&(0,d.jsx)(gm,{label:t,onClick:()=>{b(f===ol.axial?ol.custom:ol.axial)},isLinked:f===ol.axial})]}),(0,d.jsx)(ws.__experimentalVStack,{spacing:.5,children:f===ol.axial?(0,d.jsx)(dm,{...k}):f===ol.custom?(0,d.jsx)(pm,{...k}):(0,d.jsx)(hm,{side:f,...k,showSideInLabel:s})})]})}const fm={px:{max:1e3,step:1},"%":{max:100,step:1},vw:{max:100,step:1},vh:{max:100,step:1},em:{max:50,step:.1},rem:{max:50,step:.1},svw:{max:100,step:1},lvw:{max:100,step:1},dvw:{max:100,step:1},svh:{max:100,step:1},lvh:{max:100,step:1},dvh:{max:100,step:1},vi:{max:100,step:1},svi:{max:100,step:1},lvi:{max:100,step:1},dvi:{max:100,step:1},vb:{max:100,step:1},svb:{max:100,step:1},lvb:{max:100,step:1},dvb:{max:100,step:1},vmin:{max:100,step:1},svmin:{max:100,step:1},lvmin:{max:100,step:1},dvmin:{max:100,step:1},vmax:{max:100,step:1},svmax:{max:100,step:1},lvmax:{max:100,step:1},dvmax:{max:100,step:1}};function bm({label:e=(0,T.__)("Height"),onChange:t,value:n}){const o=parseFloat(n),[r]=Ti("spacing.units"),i=(0,ws.__experimentalUseCustomUnits)({availableUnits:r||["%","px","em","rem","vh","vw"]}),s=(0,h.useMemo)((()=>(0,ws.__experimentalParseQuantityAndUnitFromRawValue)(n)),[n])[1]||i[0]?.value||"px";return(0,d.jsxs)("fieldset",{className:"block-editor-height-control",children:[(0,d.jsx)(ws.BaseControl.VisualLabel,{as:"legend",children:e}),(0,d.jsxs)(ws.Flex,{children:[(0,d.jsx)(ws.FlexItem,{isBlock:!0,children:(0,d.jsx)(ws.__experimentalUnitControl,{value:n,units:i,onChange:t,onUnitChange:e=>{const[o,r]=(0,ws.__experimentalParseQuantityAndUnitFromRawValue)(n);["em","rem"].includes(e)&&"px"===r?t((o/16).toFixed(2)+e):["em","rem"].includes(r)&&"px"===e?t(Math.round(16*o)+e):["%","vw","svw","lvw","dvw","vh","svh","lvh","dvh","vi","svi","lvi","dvi","vb","svb","lvb","dvb","vmin","svmin","lvmin","dvmin","vmax","svmax","lvmax","dvmax"].includes(e)&&o>100&&t(100+e)},min:0,size:"__unstable-large",label:e,hideLabelFromVision:!0})}),(0,d.jsx)(ws.FlexItem,{isBlock:!0,children:(0,d.jsx)(ws.__experimentalSpacer,{marginX:2,marginBottom:0,children:(0,d.jsx)(ws.RangeControl,{__next40pxDefaultSize:!0,value:o,min:0,max:fm[s]?.max??100,step:fm[s]?.step??.1,withInputField:!1,onChange:e=>{t([e,s].join(""))},__nextHasNoMarginBottom:!0,label:e,hideLabelFromVision:!0})})})]})]})}function km(e,t){const{getBlockOrder:n,getBlockAttributes:o}=(0,g.useSelect)(ji);return(r,i)=>{const s=(i-1)*t+r-1;let l=0;for(const r of n(e)){const{columnStart:e,rowStart:n}=o(r).style?.layout??{};(n-1)*t+e-1<s&&l++}return l}}function vm(e,t){const{orientation:n="horizontal"}=t;return"fill"===e?(0,T.__)("Stretch to fill available space."):"fixed"===e&&"horizontal"===n?(0,T.__)("Specify a fixed width."):"fixed"===e?(0,T.__)("Specify a fixed height."):(0,T.__)("Fit contents.")}function _m({value:e={},onChange:t,parentLayout:n,isShownByDefault:o,panelId:r}){const{type:i,default:{type:s="default"}={}}=n??{},l=i||s;return"flex"===l?(0,d.jsx)(ym,{childLayout:e,onChange:t,parentLayout:n,isShownByDefault:o,panelId:r}):"grid"===l?(0,d.jsx)(Sm,{childLayout:e,onChange:t,parentLayout:n,isShownByDefault:o,panelId:r}):null}function ym({childLayout:e,onChange:t,parentLayout:n,isShownByDefault:o,panelId:r}){const{selfStretch:i,flexSize:s}=e,{orientation:l="horizontal"}=n??{},a="horizontal"===l?(0,T.__)("Width"):(0,T.__)("Height"),[c]=Ti("spacing.units"),u=(0,ws.__experimentalUseCustomUnits)({availableUnits:c||["%","px","em","rem","vh","vw"]});return(0,h.useEffect)((()=>{"fixed"!==i||s||t({...e,selfStretch:"fit"})}),[]),(0,d.jsxs)(ws.__experimentalVStack,{as:ws.__experimentalToolsPanelItem,spacing:2,hasValue:()=>!!i,label:a,onDeselect:()=>{t({selfStretch:void 0,flexSize:void 0})},isShownByDefault:o,panelId:r,children:[(0,d.jsxs)(ws.__experimentalToggleGroupControl,{__nextHasNoMarginBottom:!0,size:"__unstable-large",label:xm(n),value:i||"fit",help:vm(i,n),onChange:e=>{t({selfStretch:e,flexSize:"fixed"!==e?null:s})},isBlock:!0,children:[(0,d.jsx)(ws.__experimentalToggleGroupControlOption,{value:"fit",label:(0,T._x)("Fit","Intrinsic block width in flex layout")},"fit"),(0,d.jsx)(ws.__experimentalToggleGroupControlOption,{value:"fill",label:(0,T._x)("Grow","Block with expanding width in flex layout")},"fill"),(0,d.jsx)(ws.__experimentalToggleGroupControlOption,{value:"fixed",label:(0,T._x)("Fixed","Block with fixed width in flex layout")},"fixed")]}),"fixed"===i&&(0,d.jsx)(ws.__experimentalUnitControl,{size:"__unstable-large",units:u,onChange:e=>{t({selfStretch:i,flexSize:e})},value:s,min:0,label:a,hideLabelFromVision:!0})]})}function xm(e){const{orientation:t="horizontal"}=e;return"horizontal"===t?(0,T.__)("Width"):(0,T.__)("Height")}function Sm({childLayout:e,onChange:t,parentLayout:n,isShownByDefault:o,panelId:r}){const{columnStart:i,rowStart:s,columnSpan:l,rowSpan:a}=e,{columnCount:c,rowCount:u}=n??{},p=(0,g.useSelect)((e=>e(ji).getBlockRootClientId(r))),{moveBlocksToPosition:h,__unstableMarkNextChangeAsNotPersistent:m}=(0,g.useDispatch)(ji),f=km(p,c||3),b=c?c-(i??1)+1:void 0,k=window.__experimentalEnableGridInteractivity&&u?u-(s??1)+1:void 0;return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(ws.Flex,{as:ws.__experimentalToolsPanelItem,hasValue:()=>!!l||!!a,label:(0,T.__)("Grid span"),onDeselect:()=>{t({columnSpan:void 0,rowSpan:void 0})},isShownByDefault:o,panelId:r,children:[(0,d.jsx)(ws.FlexItem,{style:{width:"50%"},children:(0,d.jsx)(ws.__experimentalInputControl,{size:"__unstable-large",label:(0,T.__)("Column span"),type:"number",onChange:e=>{const n=""===e?1:parseInt(e,10),o=b?Math.min(n,b):n;t({columnStart:i,rowStart:s,rowSpan:a,columnSpan:o})},value:l??1,min:1,max:b})}),(0,d.jsx)(ws.FlexItem,{style:{width:"50%"},children:(0,d.jsx)(ws.__experimentalInputControl,{size:"__unstable-large",label:(0,T.__)("Row span"),type:"number",onChange:e=>{const n=""===e?1:parseInt(e,10),o=k?Math.min(n,k):n;t({columnStart:i,rowStart:s,columnSpan:l,rowSpan:o})},value:a??1,min:1,max:k})})]}),window.__experimentalEnableGridInteractivity&&(0,d.jsxs)(ws.Flex,{as:ws.__experimentalToolsPanelItem,hasValue:()=>!!i||!!s,label:(0,T.__)("Grid placement"),onDeselect:()=>{t({columnStart:void 0,rowStart:void 0})},isShownByDefault:!1,panelId:r,children:[(0,d.jsx)(ws.FlexItem,{style:{width:"50%"},children:(0,d.jsx)(ws.__experimentalInputControl,{size:"__unstable-large",label:(0,T.__)("Column"),type:"number",onChange:e=>{const n=""===e?1:parseInt(e,10);t({columnStart:n,rowStart:s,columnSpan:l,rowSpan:a}),m(),h([r],p,p,f(n,s))},value:i??1,min:1,max:c?c-(l??1)+1:void 0})}),(0,d.jsx)(ws.FlexItem,{style:{width:"50%"},children:(0,d.jsx)(ws.__experimentalInputControl,{size:"__unstable-large",label:(0,T.__)("Row"),type:"number",onChange:e=>{const n=""===e?1:parseInt(e,10);t({columnStart:i,rowStart:n,columnSpan:l,rowSpan:a}),m(),h([r],p,p,f(i,n))},value:s??1,min:1,max:u?u-(a??1)+1:void 0})})]})]})}function wm({panelId:e,value:t,onChange:n=()=>{},options:o,defaultValue:r="auto",hasValue:i,isShownByDefault:s=!0}){const l=t??"auto",[a,c,u]=Ti("dimensions.aspectRatios.default","dimensions.aspectRatios.theme","dimensions.defaultAspectRatios"),p=c?.map((({name:e,ratio:t})=>({label:e,value:t}))),h=a?.map((({name:e,ratio:t})=>({label:e,value:t}))),g=[{label:(0,T._x)("Original","Aspect ratio option for dimensions control"),value:"auto"},...u?h:[],...p||[],{label:(0,T._x)("Custom","Aspect ratio option for dimensions control"),value:"custom",disabled:!0,hidden:!0}];return(0,d.jsx)(ws.__experimentalToolsPanelItem,{hasValue:i||(()=>l!==r),label:(0,T.__)("Aspect ratio"),onDeselect:()=>n(void 0),isShownByDefault:s,panelId:e,children:(0,d.jsx)(ws.SelectControl,{label:(0,T.__)("Aspect ratio"),value:l,options:o??g,onChange:n,size:"__unstable-large",__nextHasNoMarginBottom:!0})})}const Cm=["horizontal","vertical"];function Bm(e){const t=Im(e),n=jm(e),o=Em(e),r=Tm(e),i=Mm(e),s=Pm(e),l=Rm(e),a=Am(e);return"web"===h.Platform.OS&&(t||n||o||r||i||s||l||a)}function Im(e){return e?.layout?.contentSize}function jm(e){return e?.layout?.wideSize}function Em(e){return e?.spacing?.padding}function Tm(e){return e?.spacing?.margin}function Mm(e){return e?.spacing?.blockGap}function Pm(e){return e?.dimensions?.minHeight}function Rm(e){return e?.dimensions?.aspectRatio}function Am(e){const{type:t="default",default:{type:n="default"}={},allowSizingOnChildren:o=!1}=e?.parentLayout??{},r=("flex"===n||"flex"===t||"grid"===n||"grid"===t)&&o;return!!e?.layout&&r}function Nm(e,t){if(!t||!e)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 Lm(e){return e&&"string"==typeof e?{top:e,right:e,bottom:e,left:e}:e}function Dm({resetAllFilter:e,onChange:t,value:n,panelId:o,children:r}){const i=Ji();return(0,d.jsx)(ws.__experimentalToolsPanel,{label:(0,T.__)("Dimensions"),resetAll:()=>{const o=e(n);t(o)},panelId:o,dropdownMenuProps:i,children:r})}const Om={contentSize:!0,wideSize:!0,padding:!0,margin:!0,blockGap:!0,minHeight:!0,aspectRatio:!0,childLayout:!0};function zm({as:e=Dm,value:t,onChange:n,inheritedValue:o=t,settings:r,panelId:i,defaultControls:s=Om,onVisualize:l=()=>{},includeLayoutControls:a=!1}){const{dimensions:c,spacing:u}=r,p=e=>e&&"object"==typeof e?Object.keys(e).reduce(((t,n)=>(t[n]=ts({settings:{dimensions:c,spacing:u}},"",e[n]),t)),{}):ts({settings:{dimensions:c,spacing:u}},"",e),g=function(e){const{defaultSpacingSizes:t,spacingSizes:n}=e?.spacing||{};return!1!==t&&n?.default?.length>0||n?.theme?.length>0||n?.custom?.length>0}(r),m=(0,ws.__experimentalUseCustomUnits)({availableUnits:r?.spacing?.units||["%","px","em","rem","vw"]}),f=-1/0,[b,k]=(0,h.useState)(f),v=Im(r)&&a,_=p(o?.layout?.contentSize),y=e=>{n(me(t,["layout","contentSize"],e||void 0))},x=jm(r)&&a,S=p(o?.layout?.wideSize),w=e=>{n(me(t,["layout","wideSize"],e||void 0))},C=Em(r),B=Lm(p(o?.spacing?.padding)),I=Array.isArray(r?.spacing?.padding)?r?.spacing?.padding:r?.spacing?.padding?.sides,j=I&&I.some((e=>Cm.includes(e))),E=e=>{const o=Nm(e,I);n(me(t,["spacing","padding"],o))},M=()=>l("padding"),P=Tm(r),R=Lm(p(o?.spacing?.margin)),A=Array.isArray(r?.spacing?.margin)?r?.spacing?.margin:r?.spacing?.margin?.sides,N=A&&A.some((e=>Cm.includes(e))),L=e=>{const o=Nm(e,A);n(me(t,["spacing","margin"],o))},D=()=>l("margin"),O=Mm(r),z=Array.isArray(r?.spacing?.blockGap)?r?.spacing?.blockGap:r?.spacing?.blockGap?.sides,V=z&&z.some((e=>Cm.includes(e))),F=p(o?.spacing?.blockGap),H=function(e,t){return e?"string"==typeof e?t?{top:e,right:e,bottom:e,left:e}:{top:e}:{...e,right:e?.left,bottom:e?.top}:e}(F,V),U=e=>{n(me(t,["spacing","blockGap"],e))},G=e=>{e||U(null),!V&&e?.hasOwnProperty("top")?U(e.top):U({top:e?.top,left:e?.left})},$=Pm(r),W=p(o?.dimensions?.minHeight),K=e=>{const o=me(t,["dimensions","minHeight"],e);n(me(o,["dimensions","aspectRatio"],void 0))},Z=Rm(r),q=p(o?.dimensions?.aspectRatio),Y=Am(r),X=o?.layout,Q=(0,h.useCallback)((e=>({...e,layout:fs({...e?.layout,contentSize:void 0,wideSize:void 0,selfStretch:void 0,flexSize:void 0,columnStart:void 0,rowStart:void 0,columnSpan:void 0,rowSpan:void 0}),spacing:{...e?.spacing,padding:void 0,margin:void 0,blockGap:void 0},dimensions:{...e?.dimensions,minHeight:void 0,aspectRatio:void 0}})),[]),J=()=>l(!1);return(0,d.jsxs)(e,{resetAllFilter:Q,value:t,onChange:n,panelId:i,children:[(v||x)&&(0,d.jsx)("span",{className:"span-columns",children:(0,T.__)("Set the width of the main content area.")}),v&&(0,d.jsx)(ws.__experimentalToolsPanelItem,{label:(0,T.__)("Content width"),hasValue:()=>!!t?.layout?.contentSize,onDeselect:()=>y(void 0),isShownByDefault:s.contentSize??Om.contentSize,panelId:i,children:(0,d.jsx)(ws.__experimentalUnitControl,{__next40pxDefaultSize:!0,label:(0,T.__)("Content width"),labelPosition:"top",value:_||"",onChange:e=>{y(e)},units:m,prefix:(0,d.jsx)(ws.__experimentalInputControlPrefixWrapper,{variant:"icon",children:(0,d.jsx)(Ol,{icon:zl})})})}),x&&(0,d.jsx)(ws.__experimentalToolsPanelItem,{label:(0,T.__)("Wide width"),hasValue:()=>!!t?.layout?.wideSize,onDeselect:()=>w(void 0),isShownByDefault:s.wideSize??Om.wideSize,panelId:i,children:(0,d.jsx)(ws.__experimentalUnitControl,{__next40pxDefaultSize:!0,label:(0,T.__)("Wide width"),labelPosition:"top",value:S||"",onChange:e=>{w(e)},units:m,prefix:(0,d.jsx)(ws.__experimentalInputControlPrefixWrapper,{variant:"icon",children:(0,d.jsx)(Ol,{icon:Vl})})})}),C&&(0,d.jsxs)(ws.__experimentalToolsPanelItem,{hasValue:()=>!!t?.spacing?.padding&&Object.keys(t?.spacing?.padding).length,label:(0,T.__)("Padding"),onDeselect:()=>E(void 0),isShownByDefault:s.padding??Om.padding,className:ms({"tools-panel-item-spacing":g}),panelId:i,children:[!g&&(0,d.jsx)(ws.BoxControl,{__next40pxDefaultSize:!0,values:B,onChange:E,label:(0,T.__)("Padding"),sides:I,units:m,allowReset:!1,splitOnAxis:j,inputProps:{onMouseOver:M,onMouseOut:J}}),g&&(0,d.jsx)(mm,{values:B,onChange:E,label:(0,T.__)("Padding"),sides:I,units:m,allowReset:!1,onMouseOver:M,onMouseOut:J})]}),P&&(0,d.jsxs)(ws.__experimentalToolsPanelItem,{hasValue:()=>!!t?.spacing?.margin&&Object.keys(t?.spacing?.margin).length,label:(0,T.__)("Margin"),onDeselect:()=>L(void 0),isShownByDefault:s.margin??Om.margin,className:ms({"tools-panel-item-spacing":g}),panelId:i,children:[!g&&(0,d.jsx)(ws.BoxControl,{__next40pxDefaultSize:!0,values:R,onChange:L,inputProps:{min:b,onDragStart:()=>{k(0)},onDragEnd:()=>{k(f)},onMouseOver:D,onMouseOut:J},label:(0,T.__)("Margin"),sides:A,units:m,allowReset:!1,splitOnAxis:N}),g&&(0,d.jsx)(mm,{values:R,onChange:L,minimumCustomValue:-1/0,label:(0,T.__)("Margin"),sides:A,units:m,allowReset:!1,onMouseOver:D,onMouseOut:J})]}),O&&(0,d.jsxs)(ws.__experimentalToolsPanelItem,{hasValue:()=>!!t?.spacing?.blockGap,label:(0,T.__)("Block spacing"),onDeselect:()=>U(void 0),isShownByDefault:s.blockGap??Om.blockGap,className:ms({"tools-panel-item-spacing":g,"single-column":!g&&!V}),panelId:i,children:[!g&&(V?(0,d.jsx)(ws.BoxControl,{__next40pxDefaultSize:!0,label:(0,T.__)("Block spacing"),min:0,onChange:G,units:m,sides:z,values:H,allowReset:!1,splitOnAxis:V}):(0,d.jsx)(ws.__experimentalUnitControl,{__next40pxDefaultSize:!0,label:(0,T.__)("Block spacing"),min:0,onChange:U,units:m,value:F})),g&&(0,d.jsx)(mm,{label:(0,T.__)("Block spacing"),min:0,onChange:G,showSideInLabel:!1,sides:V?z:["top"],values:H,allowReset:!1})]}),Y&&(0,d.jsx)(_m,{value:X,onChange:e=>{n({...t,layout:{...e}})},parentLayout:r?.parentLayout,panelId:i,isShownByDefault:s.childLayout??Om.childLayout}),$&&(0,d.jsx)(ws.__experimentalToolsPanelItem,{hasValue:()=>!!t?.dimensions?.minHeight,label:(0,T.__)("Minimum height"),onDeselect:()=>{K(void 0)},isShownByDefault:s.minHeight??Om.minHeight,panelId:i,children:(0,d.jsx)(bm,{label:(0,T.__)("Minimum height"),value:W,onChange:K})}),Z&&(0,d.jsx)(wm,{hasValue:()=>!!t?.dimensions?.aspectRatio,value:q,onChange:e=>{const o=me(t,["dimensions","aspectRatio"],e);n(me(o,["dimensions","minHeight"],void 0))},panelId:i,isShownByDefault:s.aspectRatio??Om.aspectRatio})]})}const Vm=new WeakMap;var Fm=function(e){const t=(0,m.useRefEffect)((t=>{function n(n){const{deltaX:o,deltaY:r,target:i}=n,s=e.current;let l=Vm.get(s);l||(l=(0,Ga.getScrollContainer)(s),Vm.set(s,l));const a=(0,Ga.getScrollContainer)(i);t.contains(a)||l.scrollBy(o,r)}const o={passive:!0};return t.addEventListener("wheel",n,o),()=>{t.removeEventListener("wheel",n,o)}}),[e]);return e?t:null};const Hm=".block-editor-block-list__block",Um=".block-list-appender",Gm=".block-editor-button-block-appender";function $m(e,t){return e.closest(Hm)===t.closest(Hm)}function Wm(e,t){return t.closest([Hm,Um,Gm].join(","))===e}function Km(e){for(;e&&e.nodeType!==e.ELEMENT_NODE;)e=e.parentNode;if(!e)return;const t=e.closest(Hm);return t?t.id.slice(6):void 0}function Zm(e,t){const n=Math.min(e.left,t.left),o=Math.max(e.right,t.right),r=Math.max(e.bottom,t.bottom),i=Math.min(e.top,t.top);return new window.DOMRectReadOnly(n,i,o-n,r-i)}function qm(e){const t=e.ownerDocument.defaultView;if(!t)return!1;if(e.classList.contains("components-visually-hidden"))return!1;const n=e.getBoundingClientRect();if(0===n.width||0===n.height)return!1;if(e.checkVisibility)return e.checkVisibility?.({opacityProperty:!0,contentVisibilityAuto:!0,visibilityProperty:!0});const o=t.getComputedStyle(e);return"none"!==o.display&&"hidden"!==o.visibility&&"0"!==o.opacity}function Ym(e){const t=window.getComputedStyle(e);return"auto"===t.overflowX||"scroll"===t.overflowX||"auto"===t.overflowY||"scroll"===t.overflowY}const Xm=["core/navigation"];function Qm(e){const t=e.ownerDocument.defaultView;if(!t)return new window.DOMRectReadOnly;let n=e.getBoundingClientRect();const o=e.getAttribute("data-type");if(o&&Xm.includes(o)){const t=[e];let o;for(;o=t.pop();)if(!Ym(o))for(const e of o.children)if(qm(e)){n=Zm(n,e.getBoundingClientRect()),t.push(e)}}const r=Math.max(n.left,0),i=Math.min(n.right,t.innerWidth);return n=new window.DOMRectReadOnly(r,n.top,i-r,n.height),n}const Jm=Number.MAX_SAFE_INTEGER;const ef=(0,h.forwardRef)((function({clientId:e,bottomClientId:t,children:n,__unstablePopoverSlot:o,__unstableContentRef:r,shift:i=!0,...s},l){const a=bh(e),c=bh(t??e),u=(0,m.useMergeRefs)([l,Fm(r)]),[p,g]=(0,h.useReducer)((e=>(e+1)%Jm),0);(0,h.useLayoutEffect)((()=>{if(!a)return;const e=new window.MutationObserver(g);return e.observe(a,{attributes:!0}),()=>{e.disconnect()}}),[a]);const f=(0,h.useMemo)((()=>{if(!(p<0||!a||t&&!c))return{getBoundingClientRect:()=>c?Zm(Qm(a),Qm(c)):Qm(a),contextElement:a}}),[p,a,t,c]);return!a||t&&!c?null:(0,d.jsx)(ws.Popover,{ref:u,animate:!1,focusOnMount:!1,anchor:f,__unstableSlotName:o,inline:!o,placement:"top-start",resize:!1,flip:!1,shift:i,...s,className:ms("block-editor-block-popover",s.className),variant:"unstyled",children:n})}));var tf=(0,h.forwardRef)((({clientId:e,bottomClientId:t,children:n,...o},r)=>(0,d.jsx)(ef,{...o,bottomClientId:t,clientId:e,__unstableContentRef:void 0,__unstablePopoverSlot:void 0,ref:r,children:n})));function nf({selectedElement:e,additionalStyles:t={},children:n}){const[o,r]=(0,h.useState)(e.offsetWidth),[i,s]=(0,h.useState)(e.offsetHeight);(0,h.useEffect)((()=>{const t=new window.ResizeObserver((()=>{r(e.offsetWidth),s(e.offsetHeight)}));return t.observe(e,{box:"border-box"}),()=>t.disconnect()}),[e]);const l=(0,h.useMemo)((()=>({position:"absolute",width:o,height:i,...t})),[o,i,t]);return(0,d.jsx)("div",{style:l,children:n})}var of=(0,h.forwardRef)((function({clientId:e,bottomClientId:t,children:n,shift:o=!1,additionalStyles:r,...i},s){t??=e;const l=bh(e);return(0,d.jsx)(ef,{ref:s,clientId:e,bottomClientId:t,shift:o,...i,children:l&&e===t?(0,d.jsx)(nf,{selectedElement:l,additionalStyles:r,children:n}):n})}));function rf({clientId:e,value:t,computeStyle:n,forceShow:o}){const r=bh(e),[i,s]=(0,h.useReducer)((()=>n(r)));(0,h.useEffect)((()=>{if(!r)return;const e=new window.MutationObserver(s);return e.observe(r,{attributes:!0,attributeFilter:["style","class"]}),()=>{e.disconnect()}}),[r]);const l=(0,h.useRef)(t),[a,c]=(0,h.useState)(!1);return(0,h.useEffect)((()=>{if(Ja()(t,l.current)||o)return;c(!0),l.current=t;const e=setTimeout((()=>{c(!1)}),400);return()=>{c(!1),clearTimeout(e)}}),[t,o]),a||o?(0,d.jsx)(of,{clientId:e,__unstablePopoverSlot:"block-toolbar",children:(0,d.jsx)("div",{className:"block-editor__spacing-visualizer",style:i})}):null}function sf(e,t){return e.ownerDocument.defaultView.getComputedStyle(e).getPropertyValue(t)}function lf({clientId:e,value:t,forceShow:n}){return(0,d.jsx)(rf,{clientId:e,value:t?.spacing?.margin,computeStyle:e=>{const t=sf(e,"margin-top"),n=sf(e,"margin-right"),o=sf(e,"margin-bottom"),r=sf(e,"margin-left");return{borderTopWidth:t,borderRightWidth:n,borderBottomWidth:o,borderLeftWidth:r,top:t?`-${t}`:0,right:n?`-${n}`:0,bottom:o?`-${o}`:0,left:r?`-${r}`:0}},forceShow:n})}function af({clientId:e,value:t,forceShow:n}){return(0,d.jsx)(rf,{clientId:e,value:t?.spacing?.padding,computeStyle:e=>({borderTopWidth:sf(e,"padding-top"),borderRightWidth:sf(e,"padding-right"),borderBottomWidth:sf(e,"padding-bottom"),borderLeftWidth:sf(e,"padding-left")}),forceShow:n})}const cf="dimensions",uf="spacing";function df({children:e,resetAllFilter:t}){const n=(0,h.useCallback)((e=>{const n=e.style,o=t(n);return{...e,style:o}}),[t]);return(0,d.jsx)(Fa,{group:"dimensions",resetAllFilter:n,children:e})}function pf({clientId:e,name:t,setAttributes:n,settings:o}){const r=Bm(o),i=(0,g.useSelect)((t=>t(ji).getBlockAttributes(e)?.style),[e]),[s,l]=function(){const[e,t]=(0,h.useState)(!1),{hideBlockInterface:n,showBlockInterface:o}=G((0,g.useDispatch)(ji));return(0,h.useEffect)((()=>{e?n():o()}),[e,o,n]),[e,t]}();if(!r)return null;const a={...(0,p.getBlockSupport)(t,[cf,"__experimentalDefaultControls"]),...(0,p.getBlockSupport)(t,[uf,"__experimentalDefaultControls"])};return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(zm,{as:df,panelId:e,settings:o,value:i,onChange:e=>{n({style:fs(e)})},defaultControls:a,onVisualize:l}),!!o?.spacing?.padding&&(0,d.jsx)(af,{forceShow:"padding"===s,clientId:e,value:i}),!!o?.spacing?.margin&&(0,d.jsx)(lf,{forceShow:"margin"===s,clientId:e,value:i})]})}function hf(e,t="any"){if("web"!==h.Platform.OS)return!1;const n=(0,p.getBlockSupport)(e,cf);return!0===n||("any"===t?!(!n?.aspectRatio&&!n?.minHeight):!!n?.[t])}var gf={useBlockProps:function({name:e,minHeight:t,style:n}){if(!hf(e,"aspectRatio")||ks(e,cf,"aspectRatio"))return{};const o=ms({"has-aspect-ratio":!!n?.dimensions?.aspectRatio}),r={};n?.dimensions?.aspectRatio?r.minHeight="unset":(t||n?.dimensions?.minHeight)&&(r.aspectRatio="unset");return{className:o,style:r}},attributeKeys:["minHeight","style"],hasSupport:e=>hf(e,"aspectRatio")};function mf(){I()("wp.blockEditor.__experimentalUseCustomSides",{since:"6.3",version:"6.4"})}const ff=[...em,wp,yh,cf,Mu,uf,Cp],bf=e=>ff.some((t=>(0,p.hasBlockSupport)(e,t)));function kf(e={}){const t={};return(0,Pi.getCSSRules)(e).forEach((e=>{t[e.key]=e.value})),t}const vf={[`${wp}.__experimentalSkipSerialization`]:["border"],[`${yh}.__experimentalSkipSerialization`]:[yh],[`${Jg}.__experimentalSkipSerialization`]:[Jg],[`${cf}.__experimentalSkipSerialization`]:[cf],[`${uf}.__experimentalSkipSerialization`]:[uf],[`${Cp}.__experimentalSkipSerialization`]:[Cp]},_f={...vf,[`${cf}.aspectRatio`]:[`${cf}.aspectRatio`],[`${Mu}`]:[Mu]},yf={[`${cf}.aspectRatio`]:!0,[`${Mu}`]:!0},xf={gradients:"gradient"};function Sf(e,t,n=!1){if(!e)return e;let o=e;return n||(o=JSON.parse(JSON.stringify(e))),Array.isArray(t)||(t=[t]),t.forEach((e=>{if(Array.isArray(e)||(e=e.split(".")),e.length>1){const[t,...n]=e;Sf(o[t],[n],!0)}else 1===e.length&&delete o[e[0]]})),o}function wf(e,t,n,o=_f){if(!bf(t))return e;let{style:r}=n;return Object.entries(o).forEach((([e,n])=>{const o=yf[e]||(0,p.getBlockSupport)(t,e);!0===o&&(r=Sf(r,n)),Array.isArray(o)&&o.forEach((e=>{const t=xf[e]||e;r=Sf(r,[[...n,t]])}))})),e.style={...kf(r),...e.style},e}var Cf={edit:function({clientId:e,name:t,setAttributes:n,__unstableParentLayout:o}){const r=xs(t,o),i=ga(),s={clientId:e,name:t,setAttributes:n,settings:{...r,typography:{...r.typography,textAlign:!1}}};return"default"!==i?null:(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(Mh,{...s}),(0,d.jsx)(Du,{...s}),(0,d.jsx)(rm,{...s}),(0,d.jsx)(Pp,{...s}),(0,d.jsx)(pf,{...s})]})},hasSupport:bf,addSaveProps:wf,attributeKeys:["style"],useBlockProps:function({name:e,style:t}){const n=(0,m.useInstanceId)(If,"wp-elements"),o=`.${n}`,r=t?.elements,i=(0,h.useMemo)((()=>{if(!r)return;const t=[];return Bf.forEach((({elementType:n,pseudo:i,elements:s})=>{if(ks(e,yh,n))return;const l=r?.[n];if(l){const e=ns(o,p.__EXPERIMENTAL_ELEMENTS[n]);t.push((0,Pi.compileCSS)(l,{selector:e})),i&&i.forEach((e=>{l[e]&&t.push((0,Pi.compileCSS)(l[e],{selector:ns(o,`${p.__EXPERIMENTAL_ELEMENTS[n]}${e}`)}))}))}s&&s.forEach((e=>{r[e]&&t.push((0,Pi.compileCSS)(r[e],{selector:ns(o,p.__EXPERIMENTAL_ELEMENTS[e])}))}))})),t.length>0?t.join(""):void 0}),[o,r,e]);return _s({css:i}),wf({className:n},e,{style:t},vf)}};const Bf=[{elementType:"button"},{elementType:"link",pseudo:[":hover"]},{elementType:"heading",elements:["h1","h2","h3","h4","h5","h6"]}],If={};(0,f.addFilter)("blocks.registerBlockType","core/style/addAttribute",(function(e){return bf(e)?(e.attributes.style||Object.assign(e.attributes,{style:{type:"object"}}),e):e}));(0,f.addFilter)("blocks.registerBlockType","core/settings/addAttribute",(function(e){return t=e,(0,p.hasBlockSupport)(t,"__experimentalSettings",!1)?(e?.attributes?.settings||(e.attributes={...e.attributes,settings:{type:"object"}}),e):e;var t}));var jf=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"M12 4 4 19h16L12 4zm0 3.2 5.5 10.3H12V7.2z"})});var Ef=function e({id:t,colorPalette:n,duotonePalette:o,disableCustomColors:r,disableCustomDuotone:i,value:s,onChange:l}){let a;a="unset"===s?(0,d.jsx)(ws.ColorIndicator,{className:"block-editor-duotone-control__unset-indicator"}):s?(0,d.jsx)(ws.DuotoneSwatch,{values:s}):(0,d.jsx)(Ol,{icon:jf});const c=(0,T.__)("Apply duotone filter"),u=`${(0,m.useInstanceId)(e,"duotone-control",t)}__description`;return(0,d.jsx)(ws.Dropdown,{popoverProps:{className:"block-editor-duotone-control__popover",headerTitle:(0,T.__)("Duotone")},renderToggle:({isOpen:e,onToggle:t})=>(0,d.jsx)(ws.ToolbarButton,{showTooltip:!0,onClick:t,"aria-haspopup":"true","aria-expanded":e,onKeyDown:n=>{e||n.keyCode!==Wa.DOWN||(n.preventDefault(),t())},label:c,icon:a}),renderContent:()=>(0,d.jsxs)(ws.MenuGroup,{label:(0,T.__)("Duotone"),children:[(0,d.jsx)("p",{children:(0,T.__)("Create a two-tone color effect without losing your original image.")}),(0,d.jsx)(ws.DuotonePicker,{"aria-label":c,"aria-describedby":u,colorPalette:n,duotonePalette:o,disableCustomColors:r,disableCustomDuotone:i,value:s,onChange:l})]})})};function Tf(e){return`${e}{filter:none}`}function Mf(e,t){return`${e}{filter:url(#${t})}`}function Pf(e,t){const n=function(e=[]){const t={r:[],g:[],b:[],a:[]};return e.forEach((e=>{const n=wd(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}(t);return`\n<svg\n\txmlns:xlink="http://www.w3.org/1999/xlink"\n\tviewBox="0 0 0 0"\n\twidth="0"\n\theight="0"\n\tfocusable="false"\n\trole="none"\n\taria-hidden="true"\n\tstyle="visibility: hidden; position: absolute; left: -9999px; overflow: hidden;"\n>\n\t<defs>\n\t\t<filter id="${e}">\n\t\t\t\x3c!--\n\t\t\t\tUse sRGB instead of linearRGB so transparency looks correct.\n\t\t\t\tUse perceptual brightness to convert to grayscale.\n\t\t\t--\x3e\n\t\t\t<feColorMatrix color-interpolation-filters="sRGB" type="matrix" values=" .299 .587 .114 0 0 .299 .587 .114 0 0 .299 .587 .114 0 0 .299 .587 .114 0 0 "></feColorMatrix>\n\t\t\t\x3c!-- Use sRGB instead of linearRGB to be consistent with how CSS gradients work. --\x3e\n\t\t\t<feComponentTransfer color-interpolation-filters="sRGB">\n\t\t\t\t<feFuncR type="table" tableValues="${n.r.join(" ")}"></feFuncR>\n\t\t\t\t<feFuncG type="table" tableValues="${n.g.join(" ")}"></feFuncG>\n\t\t\t\t<feFuncB type="table" tableValues="${n.b.join(" ")}"></feFuncB>\n\t\t\t\t<feFuncA type="table" tableValues="${n.a.join(" ")}"></feFuncA>\n\t\t\t</feComponentTransfer>\n\t\t\t\x3c!-- Re-mask the image with the original transparency since the feColorMatrix above loses that information. --\x3e\n\t\t\t<feComposite in2="SourceGraphic" operator="in"></feComposite>\n\t\t</filter>\n\t</defs>\n</svg>`}function Rf(e,t="root",n={}){if(!t)return null;const{fallback:o=!1}=n,{name:r,selectors:i,supports:s}=e,l=i&&Object.keys(i).length>0,a=Array.isArray(t)?t.join("."):t;let c=null;if(c=l&&i.root?i?.root:s?.__experimentalSelector?s.__experimentalSelector:".wp-block-"+r.replace("core/","").replace("/","-"),"root"===a)return c;const u=Array.isArray(t)?t:t.split(".");if(1===u.length){const e=o?c:null;if(l){return fe(i,`${a}.root`,null)||fe(i,a,null)||e}const t=fe(s,`${a}.__experimentalSelector`,null);return t?ns(c,t):e}let d;return l&&(d=fe(i,a,null)),d||(o?Rf(e,u[0],n):null)}const Af=[];function Nf(e,{presetSetting:t,defaultSetting:n}){const o=!e?.color?.[n],r=e?.color?.[t]?.custom||Af,i=e?.color?.[t]?.theme||Af,s=e?.color?.[t]?.default||Af;return(0,h.useMemo)((()=>[...r,...i,...o?Af:s]),[o,r,i,s])}function Lf(e){return Df(e)}function Df(e){return e.color.customDuotone||e.color.defaultDuotone||e.color.duotone.length>0}function Of({resetAllFilter:e,onChange:t,value:n,panelId:o,children:r}){const i=Ji();return(0,d.jsx)(ws.__experimentalToolsPanel,{label:(0,T._x)("Filters","Name for applying graphical effects"),resetAll:()=>{const o=e(n);t(o)},panelId:o,dropdownMenuProps:i,children:r})}const zf={duotone:!0},Vf={placement:"left-start",offset:36,shift:!0,className:"block-editor-duotone-control__popover",headerTitle:(0,T.__)("Duotone")},Ff=({indicator:e,label:t})=>(0,d.jsxs)(ws.__experimentalHStack,{justify:"flex-start",children:[(0,d.jsx)(ws.__experimentalZStack,{isLayered:!1,offset:-8,children:(0,d.jsx)(ws.Flex,{expanded:!1,children:"unset"!==e&&e?(0,d.jsx)(ws.DuotoneSwatch,{values:e}):(0,d.jsx)(ws.ColorIndicator,{className:"block-editor-duotone-control__unset-indicator"})})}),(0,d.jsx)(ws.FlexItem,{title:t,children:t})]}),Hf=(e,t)=>({onToggle:n,isOpen:o})=>{const r=(0,h.useRef)(void 0),i={onClick:n,className:ms("block-editor-global-styles-filters-panel__dropdown-toggle",{"is-open":o}),"aria-expanded":o,ref:r},s={onClick:()=>{o&&n(),t(),r.current?.focus()},className:"block-editor-panel-duotone-settings__reset",label:(0,T.__)("Reset")};return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(ws.Button,{__next40pxDefaultSize:!0,...i,children:(0,d.jsx)(Ff,{indicator:e,label:(0,T.__)("Duotone")})}),e&&(0,d.jsx)(ws.Button,{size:"small",icon:Ha,...s})]})};function Uf({as:e=Of,value:t,onChange:n,inheritedValue:o=t,settings:r,panelId:i,defaultControls:s=zf}){const l=Df(r),a=Nf(r,{presetSetting:"duotone",defaultSetting:"defaultDuotone"}),c=Nf(r,{presetSetting:"palette",defaultSetting:"defaultPalette"}),u=(p=o?.filter?.duotone,ts({settings:r},"",p));var p;const g=e=>{const o=a.find((({colors:t})=>t===e)),r=o?`var:preset|duotone|${o.slug}`:e;n(me(t,["filter","duotone"],r))},m=()=>g(void 0),f=(0,h.useCallback)((e=>({...e,filter:{...e.filter,duotone:void 0}})),[]);return(0,d.jsx)(e,{resetAllFilter:f,value:t,onChange:n,panelId:i,children:l&&(0,d.jsx)(ws.__experimentalToolsPanelItem,{label:(0,T.__)("Duotone"),hasValue:()=>!!t?.filter?.duotone,onDeselect:m,isShownByDefault:s.duotone,panelId:i,children:(0,d.jsx)(ws.Dropdown,{popoverProps:Vf,className:"block-editor-global-styles-filters-panel__dropdown",renderToggle:Hf(u,m),renderContent:()=>(0,d.jsx)(ws.__experimentalDropdownContentWrapper,{paddingSize:"small",children:(0,d.jsxs)(ws.MenuGroup,{label:(0,T.__)("Duotone"),children:[(0,d.jsx)("p",{children:(0,T.__)("Create a two-tone color effect without losing your original image.")}),(0,d.jsx)(ws.DuotonePicker,{colorPalette:c,duotonePalette:a,disableCustomColors:!0,disableCustomDuotone:!0,value:u,onChange:g})]})})})})})}const Gf=[],$f=window?.navigator.userAgent&&window.navigator.userAgent.includes("Safari")&&!window.navigator.userAgent.includes("Chrome")&&!window.navigator.userAgent.includes("Chromium");function Wf({presetSetting:e,defaultSetting:t}){const[n,o,r,i]=Ti(t,`${e}.custom`,`${e}.theme`,`${e}.default`);return(0,h.useMemo)((()=>[...o||Gf,...r||Gf,...n&&i||Gf]),[n,o,r,i])}function Kf(e,t){if(!e)return;const n=t?.find((({slug:t})=>e===`var:preset|duotone|${t}`));return n?n.colors:void 0}Bd([Id]);var Zf={shareWithChildBlocks:!0,edit:function({style:e,setAttributes:t,name:n}){const o=e?.color?.duotone,r=xs(n),i=ga(),s=Wf({presetSetting:"color.duotone",defaultSetting:"color.defaultDuotone"}),l=Wf({presetSetting:"color.palette",defaultSetting:"color.defaultPalette"}),[a,c]=Ti("color.custom","color.customDuotone"),u=!a,p=!c||0===l?.length&&u;if(0===s?.length&&p)return null;if("default"!==i)return null;const h="unset"===o||Array.isArray(o)?o:Kf(o,s);return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(Fa,{group:"filter",children:(0,d.jsx)(Uf,{value:{filter:{duotone:h}},onChange:n=>{const o={...e,color:{...n?.filter}};t({style:fs(o)})},settings:r})}),(0,d.jsx)(Rs,{group:"block",__experimentalShareWithChildBlocks:!0,children:(0,d.jsx)(Ef,{duotonePalette:s,colorPalette:l,disableCustomDuotone:p,disableCustomColors:u,value:h,onChange:n=>{const o=function(e,t){if(!e||!Array.isArray(e))return;const n=t?.find((t=>t?.colors?.every(((t,n)=>t===e[n]))));return n?`var:preset|duotone|${n.slug}`:void 0}(n,s),r={...e,color:{...e?.color,duotone:o??n}};t({style:fs(r)})},settings:r})})]})},useBlockProps:function({clientId:e,name:t,style:n}){const o=(0,m.useInstanceId)(Yf),r=(0,h.useMemo)((()=>{const e=(0,p.getBlockType)(t);if(e){if(!(0,p.getBlockSupport)(e,"filter.duotone",!1))return null;const t=(0,p.getBlockSupport)(e,"color.__experimentalDuotone",!1);if(t){const n=Rf(e);return"string"==typeof t?ns(n,t):n}return Rf(e,"filter.duotone",{fallback:!0})}}),[t]),i=n?.color?.duotone,s=`wp-duotone-${o}`,l=r&&i;return qf({clientId:e,id:s,selector:r,attribute:i}),{className:l?s:""}},attributeKeys:["style"],hasSupport:e=>(0,p.hasBlockSupport)(e,"filter.duotone")};function qf({clientId:e,id:t,selector:n,attribute:o}){const r=Wf({presetSetting:"color.duotone",defaultSetting:"color.defaultDuotone"}),i=Array.isArray(o),s=i?void 0:Kf(o,r),l="string"==typeof o&&s;let a=null;l?a=s:("string"==typeof o&&!l||i)&&(a=o);const c=n.split(",").map((e=>`.${t}${e.trim()}`)).join(", "),u=Array.isArray(a)||"unset"===a;ys(u?{css:"unset"!==a?Mf(c,t):Tf(c),__unstableType:"presets"}:void 0),ys(u?{assets:"unset"!==a?Pf(t,a):"",__unstableType:"svgs"}:void 0);const d=bh(e);(0,h.useEffect)((()=>{if(u&&d&&$f){const e=d.style.display;d.style.setProperty("display","inline-block"),d.offsetHeight,d.style.setProperty("display",e)}}),[u,d,a])}const Yf={};function Xf(e){return(0,g.useSelect)((t=>{if(!e)return null;const{getBlockName:n,getBlockAttributes:o}=t(ji),{getBlockType:r,getActiveBlockVariation:i}=t(p.store),s=n(e),l=r(s);if(!l)return null;const a=o(e),c=i(s,a),u=(0,p.isReusableBlock)(l)||(0,p.isTemplatePart)(l),d=(u?(0,p.__experimentalGetBlockLabel)(l,a):void 0)||l.title,h=function(e){const t=e?.style?.position?.type;return"sticky"===t?(0,T.__)("Sticky"):"fixed"===t?(0,T.__)("Fixed"):null}(a),g={isSynced:u,title:d,icon:l.icon,description:l.description,anchor:a?.anchor,positionLabel:h,positionType:a?.style?.position?.type,name:a?.metadata?.name};return c?{isSynced:u,title:c.title||l.title,icon:c.icon||l.icon,description:c.description||l.description,anchor:a?.anchor,positionLabel:h,positionType:a?.style?.position?.type,name:a?.metadata?.name}:g}),[e])}(0,f.addFilter)("blocks.registerBlockType","core/editor/duotone/add-attributes",(function(e){return(0,p.hasBlockSupport)(e,"filter.duotone")?(e.attributes.style||Object.assign(e.attributes,{style:{type:"object"}}),e):e}));const Qf="position",Jf={key:"default",value:"",name:(0,T.__)("Default")},eb={key:"sticky",value:"sticky",name:(0,T._x)("Sticky","Name for the value of the CSS position property"),hint:(0,T.__)("The block will stick to the top of the window instead of scrolling.")},tb={key:"fixed",value:"fixed",name:(0,T._x)("Fixed","Name for the value of the CSS position property"),hint:(0,T.__)("The block will not move when the page is scrolled.")},nb=["top","right","bottom","left"],ob=["sticky","fixed"];function rb(e){const t=e?.style?.position?.type;return"sticky"===t||"fixed"===t}function ib({name:e}={}){const[t,n]=Ti("position.fixed","position.sticky"),o=!t&&!n;return r=e,!(0,p.getBlockSupport)(r,Qf)||o;var r}function sb({style:e={},clientId:t,name:n,setAttributes:o}){const r=function(e){const t=(0,p.getBlockSupport)(e,Qf);return!(!0!==t&&!t?.fixed)}(n),i=function(e){const t=(0,p.getBlockSupport)(e,Qf);return!(!0!==t&&!t?.sticky)}(n),s=e?.position?.type,{firstParentClientId:l}=(0,g.useSelect)((e=>{const{getBlockParents:n}=e(ji),o=n(t);return{firstParentClientId:o[o.length-1]}}),[t]),a=Xf(l),c=i&&s===eb.value&&a?(0,T.sprintf)((0,T.__)("The block will stick to the scrollable area of the parent %s block."),a.title):null,u=(0,h.useMemo)((()=>{const e=[Jf];return(i||s===eb.value)&&e.push(eb),(r||s===tb.value)&&e.push(tb),e}),[r,i,s]),m=s&&u.find((e=>e.value===s))||Jf;return h.Platform.select({web:u.length>1?(0,d.jsx)(Fa,{group:"position",children:(0,d.jsx)(ws.BaseControl,{__nextHasNoMarginBottom:!0,help:c,children:(0,d.jsx)(ws.CustomSelectControl,{__next40pxDefaultSize:!0,label:(0,T.__)("Position"),hideLabelFromVision:!0,describedBy:(0,T.sprintf)((0,T.__)("Currently selected position: %s"),m.name),options:u,value:m,onChange:({selectedItem:t})=>{(t=>{const n={...e,position:{...e?.position,type:t,top:"sticky"===t||"fixed"===t?"0px":void 0}};o({style:fs(n)})})(t.value)},size:"__unstable-large"})})}):null,native:null})}var lb={edit:function(e){return ib(e)?null:(0,d.jsx)(sb,{...e})},useBlockProps:function({name:e,style:t}){const n=(0,p.hasBlockSupport)(e,Qf),o=ib({name:e}),r=n&&!o,i=(0,m.useInstanceId)(ab),s=`.wp-container-${i}.wp-container-${i}`;let l;r&&(l=function({selector:e,style:t}){let n="";const{type:o}=t?.position||{};return ob.includes(o)?(n+=`${e} {`,n+=`position: ${o};`,nb.forEach((e=>{void 0!==t?.position?.[e]&&(n+=`${e}: ${t.position[e]};`)})),"sticky"!==o&&"fixed"!==o||(n+="z-index: 10"),n+="}",n):n}({selector:s,style:t})||"");const a=ms({[`wp-container-${i}`]:r&&!!l,[`is-position-${t?.position?.type}`]:r&&!!l&&!!t?.position?.type});return _s({css:l}),{className:a}},attributeKeys:["style"],hasSupport:e=>(0,p.hasBlockSupport)(e,Qf)};const ab={};const cb={button:"wp-element-button",caption:"wp-element-caption"},ub={__experimentalBorder:"border",color:"color",spacing:"spacing",typography:"typography"},{kebabCase:db}=G(ws.privateApis);function pb(e={},t,n){let o=[];return Object.keys(e).forEach((r=>{const i=t+db(r.replace("/","-")),s=e[r];if(s instanceof Object){const e=i+n;o=[...o,...pb(s,e,n)]}else o.push(`${i}: ${s}`)})),o}const hb=(e,t)=>{const n={};return Object.entries(e).forEach((([e,o])=>{if("root"===e||!t?.[e])return;const r="string"==typeof o;if(r||Object.entries(o).forEach((([o,r])=>{if("root"===o||!t?.[e][o])return;const i=gb({[e]:{[o]:t[e][o]}});n[r]=[...n[r]||[],...i],delete t[e][o]})),r||o.root){const i=r?o:o.root,s=gb({[e]:t[e]});n[i]=[...n[i]||[],...s],delete t[e]}})),n};function gb(e={},t="",n,o={},r=!1){const i=qi===t,s=Object.entries(p.__EXPERIMENTAL_STYLE_PROPERTY).reduce(((t,[o,{value:r,properties:s,useEngine:l,rootOnly:a}])=>{if(a&&!i)return t;const c=r;if("elements"===c[0]||l)return t;const u=fe(e,c);if("--wp--style--root--padding"===o&&("string"==typeof u||!n))return t;if(s&&"string"!=typeof u)Object.entries(s).forEach((e=>{const[n,o]=e;if(!fe(u,[o],!1))return;const r=n.startsWith("--")?n:db(n);t.push(`${r}: ${(0,Pi.getCSSValueFromRawStyle)(fe(u,[o]))}`)}));else if(fe(e,c,!1)){const n=o.startsWith("--")?o:db(o);t.push(`${n}: ${(0,Pi.getCSSValueFromRawStyle)(fe(e,c))}`)}return t}),[]);e.background&&(e.background?.backgroundImage&&(e.background.backgroundImage=rs(e.background.backgroundImage,o)),!i&&e.background?.backgroundImage?.id&&(e={...e,background:{...e.background,...Au(e.background)}}));return(0,Pi.getCSSRules)(e).forEach((e=>{if(i&&(n||r)&&e.key.startsWith("padding"))return;const t=e.key.startsWith("--")?e.key:db(e.key);let l=rs(e.value,o);"font-size"===t&&(l=Wi({size:l},o?.settings)),"aspect-ratio"===t&&s.push("min-height: unset"),s.push(`${t}: ${l}`)})),s}function mb({layoutDefinitions:e=Fs,style:t,selector:n,hasBlockGapSupport:o,hasFallbackGapSupport:r,fallbackGapValue:i}){let s="",l=o?ul(t?.spacing?.blockGap):"";if(r&&(n===qi?l=l||"0.5em":!o&&i&&(l=i)),l&&e&&(Object.values(e).forEach((({className:e,name:t,spacingStyles:r})=>{(o||"flex"===t||"grid"===t)&&r?.length&&r.forEach((t=>{const r=[];if(t.rules&&Object.entries(t.rules).forEach((([e,t])=>{r.push(`${e}: ${t||l}`)})),r.length){let i="";i=o?n===qi?`:root :where(.${e})${t?.selector||""}`:`:root :where(${n}-${e})${t?.selector||""}`:n===qi?`:where(.${e}${t?.selector||""})`:`:where(${n}.${e}${t?.selector||""})`,s+=`${i} { ${r.join("; ")}; }`}}))})),n===qi&&o&&(s+=`${Yi} { --wp--style--block-gap: ${l}; }`)),n===qi&&e){const t=["block","flex","grid"];Object.values(e).forEach((({className:e,displayMode:o,baseStyles:r})=>{o&&t.includes(o)&&(s+=`${n} .${e} { display:${o}; }`),r?.length&&r.forEach((t=>{const n=[];if(t.rules&&Object.entries(t.rules).forEach((([e,t])=>{n.push(`${e}: ${t}`)})),n.length){s+=`${`.${e}${t?.selector||""}`} { ${n.join("; ")}; }`}}))}))}return s}const fb=["border","color","dimensions","spacing","typography","filter","outline","shadow","background"];function bb(e){if(!e)return{};const t=Object.entries(e).filter((([e])=>fb.includes(e))).map((([e,t])=>[e,JSON.parse(JSON.stringify(t))]));return Object.fromEntries(t)}const kb=(e,t)=>{const n=[];if(!e?.styles)return n;const o=bb(e.styles);return o&&n.push({styles:o,selector:qi,skipSelectorWrapper:!0}),Object.entries(p.__EXPERIMENTAL_ELEMENTS).forEach((([t,o])=>{e.styles?.elements?.[t]&&n.push({styles:e.styles?.elements?.[t],selector:o,skipSelectorWrapper:!cb[t]})})),Object.entries(e.styles?.blocks??{}).forEach((([e,o])=>{const r=bb(o);if(o?.variations){const i={};Object.entries(o.variations).forEach((([o,r])=>{i[o]=bb(r),r?.css&&(i[o].css=r.css);const s=t[e]?.styleVariationSelectors?.[o];Object.entries(r?.elements??{}).forEach((([e,t])=>{t&&p.__EXPERIMENTAL_ELEMENTS[e]&&n.push({styles:t,selector:ns(s,p.__EXPERIMENTAL_ELEMENTS[e])})})),Object.entries(r?.blocks??{}).forEach((([e,o])=>{const r=ns(s,t[e]?.selector),i=ns(s,t[e]?.duotoneSelector),l=function(e,t){if(!e||!t)return;const n={};return Object.entries(t).forEach((([t,o])=>{"string"==typeof o&&(n[t]=ns(e,o)),"object"==typeof o&&(n[t]={},Object.entries(o).forEach((([o,r])=>{n[t][o]=ns(e,r)})))})),n}(s,t[e]?.featureSelectors),a=bb(o);o?.css&&(a.css=o.css),n.push({selector:r,duotoneSelector:i,featureSelectors:l,fallbackGapValue:t[e]?.fallbackGapValue,hasLayoutSupport:t[e]?.hasLayoutSupport,styles:a}),Object.entries(o.elements??{}).forEach((([e,t])=>{t&&p.__EXPERIMENTAL_ELEMENTS[e]&&n.push({styles:t,selector:ns(r,p.__EXPERIMENTAL_ELEMENTS[e])})}))}))})),r.variations=i}t?.[e]?.selector&&n.push({duotoneSelector:t[e].duotoneSelector,fallbackGapValue:t[e].fallbackGapValue,hasLayoutSupport:t[e].hasLayoutSupport,selector:t[e].selector,styles:r,featureSelectors:t[e].featureSelectors,styleVariationSelectors:t[e].styleVariationSelectors}),Object.entries(o?.elements??{}).forEach((([o,r])=>{r&&t?.[e]&&p.__EXPERIMENTAL_ELEMENTS[o]&&n.push({styles:r,selector:t[e]?.selector.split(",").map((e=>p.__EXPERIMENTAL_ELEMENTS[o].split(",").map((t=>e+" "+t)))).join(",")})}))})),n},vb=(e,t)=>{const n=[];if(!e?.settings)return n;const o=e=>{let t={};return Xi.forEach((({path:n})=>{const o=fe(e,n,!1);!1!==o&&(t=me(t,n,o))})),t},r=o(e.settings),i=e.settings?.custom;return(Object.keys(r).length>0||i)&&n.push({presets:r,custom:i,selector:Yi}),Object.entries(e.settings?.blocks??{}).forEach((([e,r])=>{const i=o(r),s=r.custom;(Object.keys(i).length>0||s)&&n.push({presets:i,custom:s,selector:t[e]?.selector})})),n},_b=(e,t)=>{const n=vb(e,t);let o="";return n.forEach((({presets:t,custom:n,selector:r})=>{const i=function(e={},t){return Xi.reduce(((n,{path:o,valueKey:r,valueFunc:i,cssVarInfix:s})=>{const l=fe(e,o,[]);return["default","theme","custom"].forEach((e=>{l[e]&&l[e].forEach((e=>{r&&!i?n.push(`--wp--preset--${s}--${db(e.slug)}: ${e[r]}`):i&&"function"==typeof i&&n.push(`--wp--preset--${s}--${db(e.slug)}: ${i(e,t)}`)}))})),n}),[])}(t,e?.settings),s=pb(n,"--wp--custom--","--");s.length>0&&i.push(...s),i.length>0&&(o+=`${r}{${i.join(";")};}`)})),o},yb=(e,t,n,o,r=!1,i=!1,s=void 0)=>{const l={blockGap:!0,blockStyles:!0,layoutStyles:!0,marginReset:!0,presets:!0,rootPadding:!0,variationStyles:!1,...s},a=kb(e,t),c=vb(e,t),u=e?.settings?.useRootPaddingAwareAlignments,{contentSize:d,wideSize:p}=e?.settings?.layout||{},h=l.marginReset||l.rootPadding||l.layoutStyles;let g="";if(l.presets&&(d||p)&&(g+=`${Yi} {`,g=d?g+` --wp--style--global--content-size: ${d};`:g,g=p?g+` --wp--style--global--wide-size: ${p};`:g,g+="}"),h&&(g+=":where(body) {margin: 0;",l.rootPadding&&u&&(g+="padding-right: 0; padding-left: 0; padding-top: var(--wp--style--root--padding-top); padding-bottom: var(--wp--style--root--padding-bottom) }\n\t\t\t\t.has-global-padding { padding-right: var(--wp--style--root--padding-right); padding-left: var(--wp--style--root--padding-left); }\n\t\t\t\t.has-global-padding > .alignfull { margin-right: calc(var(--wp--style--root--padding-right) * -1); margin-left: calc(var(--wp--style--root--padding-left) * -1); }\n\t\t\t\t.has-global-padding :where(:not(.alignfull.is-layout-flow) > .has-global-padding:not(.wp-block-block, .alignfull)) { padding-right: 0; padding-left: 0; }\n\t\t\t\t.has-global-padding :where(:not(.alignfull.is-layout-flow) > .has-global-padding:not(.wp-block-block, .alignfull)) > .alignfull { margin-left: 0; margin-right: 0;\n\t\t\t\t"),g+="}"),l.blockStyles&&a.forEach((({selector:t,duotoneSelector:s,styles:a,fallbackGapValue:c,hasLayoutSupport:d,featureSelectors:p,styleVariationSelectors:h,skipSelectorWrapper:m})=>{if(p){const e=hb(p,a);Object.entries(e).forEach((([e,t])=>{if(t.length){const n=t.join(";");g+=`:root :where(${e}){${n};}`}}))}if(s){const e={};a?.filter&&(e.filter=a.filter,delete a.filter);const t=gb(e);t.length&&(g+=`${s}{${t.join(";")};}`)}r||qi!==t&&!d||(g+=mb({style:a,selector:t,hasBlockGapSupport:n,hasFallbackGapSupport:o,fallbackGapValue:c}));const f=gb(a,t,u,e,i);if(f?.length){g+=`${m?t:`:root :where(${t})`}{${f.join(";")};}`}a?.css&&(g+=wb(a.css,`:root :where(${t})`)),l.variationStyles&&h&&Object.entries(h).forEach((([t,n])=>{const o=a?.variations?.[t];if(o){if(p){const e=hb(p,o);Object.entries(e).forEach((([e,t])=>{if(t.length){const o=function(e,t){const n=e.split(","),o=[];return n.forEach((e=>{o.push(`${t.trim()}${e.trim()}`)})),o.join(", ")}(e,n),r=t.join(";");g+=`:root :where(${o}){${r};}`}}))}const t=gb(o,n,u,e);t.length&&(g+=`:root :where(${n}){${t.join(";")};}`),o?.css&&(g+=wb(o.css,`:root :where(${n})`))}}));const b=Object.entries(a).filter((([e])=>e.startsWith(":")));b?.length&&b.forEach((([e,n])=>{const o=gb(n);if(!o?.length)return;const r=`:root :where(${t.split(",").map((t=>t+e)).join(",")}){${o.join(";")};}`;g+=r}))})),l.layoutStyles&&(g+=".wp-site-blocks > .alignleft { float: left; margin-right: 2em; }",g+=".wp-site-blocks > .alignright { float: right; margin-left: 2em; }",g+=".wp-site-blocks > .aligncenter { justify-content: center; margin-left: auto; margin-right: auto; }"),l.blockGap&&n){const t=ul(e?.styles?.spacing?.blockGap)||"0.5em";g+=`:root :where(.wp-site-blocks) > * { margin-block-start: ${t}; margin-block-end: 0; }`,g+=":root :where(.wp-site-blocks) > :first-child { margin-block-start: 0; }",g+=":root :where(.wp-site-blocks) > :last-child { margin-block-end: 0; }"}return l.presets&&c.forEach((({selector:e,presets:t})=>{qi!==e&&Yi!==e||(e="");const n=function(e="*",t={}){return Xi.reduce(((n,{path:o,cssVarInfix:r,classes:i})=>{if(!i)return n;const s=fe(t,o,[]);return["default","theme","custom"].forEach((t=>{s[t]&&s[t].forEach((({slug:t})=>{i.forEach((({classSuffix:o,propertyName:i})=>{const s=`.has-${db(t)}-${o}`,l=e.split(",").map((e=>`${e}${s}`)).join(","),a=`var(--wp--preset--${r}--${db(t)})`;n+=`${l}{${i}: ${a} !important;}`}))}))})),n}),"")}(e,t);n.length>0&&(g+=n)})),g};function xb(e,t){return vb(e,t).flatMap((({presets:e})=>function(e={}){return Xi.filter((e=>"duotone"===e.path.at(-1))).flatMap((t=>{const n=fe(e,t.path,{});return["default","theme"].filter((e=>n[e])).flatMap((e=>n[e].map((e=>Pf(`wp-duotone-${e.slug}`,e.colors))))).join("")}))}(e)))}const Sb=(e,t,n)=>{const o={};return e.forEach((e=>{const r=e.name,i=Rf(e);let s=Rf(e,"filter.duotone");if(!s){const t=Rf(e),n=(0,p.getBlockSupport)(e,"color.__experimentalDuotone",!1);s=n&&ns(t,n)}const l=!!e?.supports?.layout||!!e?.supports?.__experimentalLayout,a=e?.supports?.spacing?.blockGap?.__experimentalDefault,c=t(r),u={};c?.forEach((e=>{const t=n?`-${n}`:"",o=`${e.name}${t}`,r=function(e,t){const n=`.is-style-${e}`;if(!t)return n;const o=/((?::\([^)]+\))?\s*)([^\s:]+)/,r=(e,t,o)=>t+o+n;return t.split(",").map((e=>e.replace(o,r))).join(",")}(o,i);u[o]=r}));const d=((e,t)=>{if(e?.selectors&&Object.keys(e.selectors).length>0)return e.selectors;const n={root:t};return Object.entries(ub).forEach((([t,o])=>{const r=Rf(e,t);r&&(n[o]=r)})),n})(e,i);o[r]={duotoneSelector:s,fallbackGapValue:a,featureSelectors:Object.keys(d).length?d:void 0,hasLayoutSupport:l,name:r,selector:i,styleVariationSelectors:c?.length?u:void 0}})),o};function wb(e,t){let n="";if(!e||""===e.trim())return n;return e.split("&").forEach((e=>{if(!e||""===e.trim())return;if(!e.includes("{"))n+=`:root :where(${t}){${e.trim()}}`;else{const o=e.replace("}","").split("{");if(2!==o.length)return;const[r,i]=o,s=r.match(/([>+~\s]*::[a-zA-Z-]+)/),l=s?s[1]:"",a=s?r.replace(l,"").trim():r.trim();let c;c=""===a?t:r.startsWith(" ")?ns(t,a):function(e,t){return e.includes(",")?e.split(",").map((e=>e+t)).join(","):e+t}(t,a),n+=`:root :where(${c})${l}{${i.trim()}}`}})),n}function Cb(e={},t){const[n]=cs("spacing.blockGap"),o=null!==n,r=!o,i=(0,g.useSelect)((e=>{const{getSettings:t}=e(ji);return!!t().disableLayoutStyles})),{getBlockStyles:s}=(0,g.useSelect)(p.store);return(0,h.useMemo)((()=>{if(!e?.styles||!e?.settings)return[];const n=(l=e,l.styles?.blocks?.["core/separator"]&&l.styles?.blocks?.["core/separator"].color?.background&&!l.styles?.blocks?.["core/separator"].color?.text&&!l.styles?.blocks?.["core/separator"].border?.color?{...l,styles:{...l.styles,blocks:{...l.styles.blocks,"core/separator":{...l.styles.blocks["core/separator"],color:{...l.styles.blocks["core/separator"].color,text:l.styles?.blocks["core/separator"].color.background}}}}}:l);var l;const a=Sb((0,p.getBlockTypes)(),s),c=_b(n,a),u=yb(n,a,o,r,i,t),d=xb(n,a),h=[{css:c,isGlobalStyles:!0},{css:u,isGlobalStyles:!0},{css:n.styles.css??"",isGlobalStyles:!0},{assets:d,__unstableType:"svg",isGlobalStyles:!0}];return(0,p.getBlockTypes)().forEach((e=>{if(n.styles.blocks[e.name]?.css){const t=a[e.name].selector;h.push({css:wb(n.styles.blocks[e.name]?.css,t),isGlobalStyles:!0})}})),[h,n.settings]}),[o,r,e,i,t,s])}function Bb(e=!1){const{merged:t}=(0,h.useContext)(is);return Cb(t,e)}const Ib="is-style-";function jb(e){return e?e.split(/\s+/).reduce(((e,t)=>{if(t.startsWith(Ib)){const n=t.slice(9);"default"!==n&&e.push(n)}return e}),[]):[]}function Eb({override:e}){ys(e)}function Tb(e,t,n){if(!e?.styles?.blocks?.[t]?.variations?.[n])return;const o=t=>{Object.keys(t).forEach((n=>{const r=t[n];if("object"==typeof r&&null!==r)if(void 0!==r.ref)if("string"!=typeof r.ref||""===r.ref.trim())delete t[n];else{const o=fe(e,r.ref);o?t[n]=o:delete t[n]}else o(r),0===Object.keys(r).length&&delete t[n]}))},r=JSON.parse(JSON.stringify(e.styles.blocks[t].variations[n]));return o(r),r}var Mb={hasSupport:()=>!0,attributeKeys:["className"],isMatch:({className:e})=>jb(e).length>0,useBlockProps:function({name:e,className:t,clientId:n}){const{getBlockStyles:o}=(0,g.useSelect)(p.store),r=function(e,t=[]){const n=jb(e);if(!n)return null;for(const e of n)if(t.some((t=>t.name===e)))return e;return null}(t,o(e)),i=`${Ib}${r}-${n}`,{settings:s,styles:l}=function(e,t,n){const{merged:o}=(0,h.useContext)(is),{globalSettings:r,globalStyles:i}=(0,g.useSelect)((e=>{const t=e(ji).getSettings();return{globalSettings:t.__experimentalFeatures,globalStyles:t[N]}}),[]);return(0,h.useMemo)((()=>{const s=Tb({settings:o?.settings??r,styles:o?.styles??i},e,t);return{settings:o?.settings??r,styles:{blocks:{[e]:{variations:{[`${t}-${n}`]:s}}}}}}),[o,r,i,t,n,e])}(e,r,n),a=(0,h.useMemo)((()=>{if(!r)return;const e={settings:s,styles:l},t=Sb((0,p.getBlockTypes)(),o,n);return yb(e,t,!1,!0,!0,!0,{blockGap:!1,blockStyles:!0,layoutStyles:!1,marginReset:!1,presets:!1,rootPadding:!1,variationStyles:!0})}),[r,s,l,o,n]);return ys({id:`variation-${n}`,css:a,__unstableType:"variation",variation:r,clientId:n}),r?{className:i}:{}}};const Pb="layout",{kebabCase:Rb}=G(ws.privateApis);function Ab(e){return(0,p.hasBlockSupport)(e,"layout")||(0,p.hasBlockSupport)(e,"__experimentalLayout")}function Nb(e={},t=""){const{layout:n}=e,{default:o}=(0,p.getBlockSupport)(t,Pb)||{},r=n?.inherit||n?.contentSize||n?.wideSize?{...n,type:"constrained"}:n||o||{},i=[];if(Fs[r?.type||"default"]?.className){const e=Fs[r?.type||"default"]?.className,n=t.split("/"),o=`wp-block-${"core"===n[0]?n.pop():n.join("-")}-${e}`;i.push(e,o)}return(0,g.useSelect)((e=>(r?.inherit||r?.contentSize||"constrained"===r?.type)&&e(ji).getSettings().__experimentalFeatures?.useRootPaddingAwareAlignments),[r?.contentSize,r?.inherit,r?.type])&&i.push("has-global-padding"),r?.orientation&&i.push(`is-${Rb(r.orientation)}`),r?.justifyContent&&i.push(`is-content-justification-${Rb(r.justifyContent)}`),r?.flexWrap&&"nowrap"===r.flexWrap&&i.push("is-nowrap"),i}var Lb={shareWithChildBlocks:!0,edit:function({layout:e,setAttributes:t,name:n,clientId:o}){const r=xs(n),{layout:i}=r,{themeSupportsLayout:s}=(0,g.useSelect)((e=>{const{getSettings:t}=e(ji);return{themeSupportsLayout:t().supportsLayout}}),[]);if("default"!==ga())return null;const l=(0,p.getBlockSupport)(n,Pb,{}),a={...i,...l},{allowSwitching:c,allowEditing:u=!0,allowInheriting:h=!0,default:m}=a;if(!u)return null;const f={...l,...e},{type:b,default:{type:k="default"}={}}=f,v=b||k,_=!(!h||v&&"default"!==v&&"constrained"!==v&&!f.inherit),y=e||m||{},{inherit:x=!1,contentSize:S=null}=y;if(("default"===v||"constrained"===v)&&!s)return null;const w=Xl(v),C=Xl("constrained"),B=!y.type&&(S||x),I=!!x||!!S,j=e=>t({layout:e});return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(Fa,{children:(0,d.jsxs)(ws.PanelBody,{title:(0,T.__)("Layout"),children:[_&&(0,d.jsx)(d.Fragment,{children:(0,d.jsx)(ws.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,T.__)("Inner blocks use content width"),checked:"constrained"===w?.name||I,onChange:()=>t({layout:{type:"constrained"===w?.name||I?"default":"constrained"}}),help:"constrained"===w?.name||I?(0,T.__)("Nested blocks use content width with options for full and wide widths."):(0,T.__)("Nested blocks will fill the width of this container.")})}),!x&&c&&(0,d.jsx)(Db,{type:v,onChange:e=>t({layout:{type:e}})}),w&&"default"!==w.name&&(0,d.jsx)(w.inspectorControls,{layout:y,onChange:j,layoutBlockSupport:a,name:n,clientId:o}),C&&B&&(0,d.jsx)(C.inspectorControls,{layout:y,onChange:j,layoutBlockSupport:a,name:n,clientId:o})]})}),!x&&w&&(0,d.jsx)(w.toolBarControls,{layout:y,onChange:j,layoutBlockSupport:l,name:n,clientId:o})]})},attributeKeys:["layout"],hasSupport:e=>Ab(e)};function Db({type:e,onChange:t}){return(0,d.jsx)(ws.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,isBlock:!0,label:(0,T.__)("Layout type"),__nextHasNoMarginBottom:!0,hideLabelFromVision:!0,isAdaptiveWidth:!0,value:e,onChange:t,children:Yl.map((({name:e,label:t})=>(0,d.jsx)(ws.__experimentalToggleGroupControlOption,{value:e,label:t},e)))})}function Ob({block:e,props:t,blockGapSupport:n,layoutClasses:o}){const{name:r,attributes:i}=t,s=(0,m.useInstanceId)(e),{layout:l}=i,{default:a}=(0,p.getBlockSupport)(r,Pb)||{},c=l?.inherit||l?.contentSize||l?.wideSize?{...l,type:"constrained"}:l||a||{},u=`wp-container-${Rb(r)}-is-layout-`,h=`.${u}${s}`,g=null!==n,f=Xl(c?.type||"default"),b=f?.getLayoutStyle?.({blockName:r,selector:h,layout:c,style:i?.style,hasBlockGapSupport:g}),k=ms({[`${u}${s}`]:!!b},o);return _s({css:b}),(0,d.jsx)(e,{...t,__unstableLayoutClassNames:k})}const zb=(0,m.createHigherOrderComponent)((e=>t=>{const{clientId:n,name:o,attributes:r}=t,i=Ab(o),s=Nb(r,o),l=(0,g.useSelect)((e=>{if(!i)return;const{getSettings:t,getBlockSettings:o}=G(e(ji)),{disableLayoutStyles:r}=t();if(r)return;const[s]=o(n,"spacing.blockGap");return{blockGapSupport:s}}),[i,n]);return l?(0,d.jsx)(Ob,{block:e,props:t,layoutClasses:s,...l}):(0,d.jsx)(e,{...t,__unstableLayoutClassNames:i?s:void 0})}),"withLayoutStyles");function Vb(e,t){return Array.from({length:t},((t,n)=>e+n))}(0,f.addFilter)("blocks.registerBlockType","core/layout/addAttribute",(function(e){return"type"in(e.attributes?.layout??{})||Ab(e)&&(e.attributes={...e.attributes,layout:{type:"object"}}),e})),(0,f.addFilter)("editor.BlockListBlock","core/editor/layout/with-layout-styles",zb);class Fb{constructor({columnStart:e,rowStart:t,columnEnd:n,rowEnd:o,columnSpan:r,rowSpan:i}={}){this.columnStart=e??1,this.rowStart=t??1,this.columnEnd=void 0!==r?this.columnStart+r-1:n??this.columnStart,this.rowEnd=void 0!==i?this.rowStart+i-1:o??this.rowStart}get columnSpan(){return this.columnEnd-this.columnStart+1}get rowSpan(){return this.rowEnd-this.rowStart+1}contains(e,t){return e>=this.columnStart&&e<=this.columnEnd&&t>=this.rowStart&&t<=this.rowEnd}containsRect(e){return this.contains(e.columnStart,e.rowStart)&&this.contains(e.columnEnd,e.rowEnd)}intersectsRect(e){return this.columnStart<=e.columnEnd&&this.columnEnd>=e.columnStart&&this.rowStart<=e.rowEnd&&this.rowEnd>=e.rowStart}}function Hb(e,t){return e.ownerDocument.defaultView.getComputedStyle(e).getPropertyValue(t)}function Ub(e,t){const n=[];for(const o of e.split(" ")){const e=n[n.length-1],r=e?e.end+t:0,i=r+parseFloat(o);n.push({start:r,end:i})}return n}function Gb(e,t,n="start"){return e.reduce(((o,r,i)=>Math.abs(r[n]-t)<Math.abs(e[o][n]-t)?i:o),0)}function $b(e){const t=Hb(e,"grid-template-columns"),n=Hb(e,"grid-template-rows"),o=Hb(e,"border-top-width"),r=Hb(e,"border-right-width"),i=Hb(e,"border-bottom-width"),s=Hb(e,"border-left-width"),l=Hb(e,"padding-top"),a=Hb(e,"padding-right"),c=Hb(e,"padding-bottom"),u=Hb(e,"padding-left"),d=t.split(" ").length,p=n.split(" ").length;return{numColumns:d,numRows:p,numItems:d*p,currentColor:Hb(e,"color"),style:{gridTemplateColumns:t,gridTemplateRows:n,gap:Hb(e,"gap"),inset:`\n\t\t\t\tcalc(${l} + ${o})\n\t\t\t\tcalc(${a} + ${r})\n\t\t\t\tcalc(${c} + ${i})\n\t\t\t\tcalc(${u} + ${s})\n\t\t\t`}}}const Wb=[(0,h.createInterpolateElement)((0,T.__)("While writing, you can press <kbd>/</kbd> to quickly insert new blocks."),{kbd:(0,d.jsx)("kbd",{})}),(0,h.createInterpolateElement)((0,T.__)("Indent a list by pressing <kbd>space</kbd> at the beginning of a line."),{kbd:(0,d.jsx)("kbd",{})}),(0,h.createInterpolateElement)((0,T.__)("Outdent a list by pressing <kbd>backspace</kbd> at the beginning of a line."),{kbd:(0,d.jsx)("kbd",{})}),(0,T.__)("Drag files into the editor to automatically insert media blocks."),(0,T.__)("Change a block's type by pressing the block icon on the toolbar.")];var Kb=function(){const[e]=(0,h.useState)(Math.floor(Math.random()*Wb.length));return(0,d.jsx)(ws.Tip,{children:Wb[e]})},Zb=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"})}),qb=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"})});const{Badge:Yb}=G(ws.privateApis);var Xb=function({title:e,icon:t,description:n,blockType:o,className:r,name:i,allowParentNavigation:s,children:l}){o&&(I()("`blockType` property in `BlockCard component`",{since:"5.7",alternative:"`title, icon and description` properties"}),({title:e,icon:t,description:n}=o));const a=(0,g.useSelect)((e=>{if(!s)return;const{getSelectedBlockClientId:t,getBlockParentsByBlockName:n}=e(ji);return n(t(),"core/navigation",!0)[0]}),[s]),{selectBlock:c}=(0,g.useDispatch)(ji);return(0,d.jsxs)("div",{className:ms("block-editor-block-card",r),children:[s&&a&&(0,d.jsx)(ws.Button,{onClick:()=>c(a),label:(0,T.__)("Go to parent Navigation block"),style:{minWidth:24,padding:0},icon:(0,T.isRTL)()?Zb:qb,size:"small"}),(0,d.jsx)(Vu,{icon:t,showColors:!0}),(0,d.jsxs)(ws.__experimentalVStack,{spacing:1,children:[(0,d.jsxs)("h2",{className:"block-editor-block-card__title",children:[(0,d.jsx)("span",{className:"block-editor-block-card__name",children:i?.length?i:e}),!!i?.length&&(0,d.jsx)(Yb,{children:e})]}),n&&(0,d.jsx)(ws.__experimentalText,{className:"block-editor-block-card__description",children:n}),l]})]})},Qb=(e=>(e.Unknown="REDUX_UNKNOWN",e.Add="ADD_ITEM",e.Prepare="PREPARE_ITEM",e.Cancel="CANCEL_ITEM",e.Remove="REMOVE_ITEM",e.PauseItem="PAUSE_ITEM",e.ResumeItem="RESUME_ITEM",e.PauseQueue="PAUSE_QUEUE",e.ResumeQueue="RESUME_QUEUE",e.OperationStart="OPERATION_START",e.OperationFinish="OPERATION_FINISH",e.AddOperations="ADD_OPERATIONS",e.CacheBlobUrl="CACHE_BLOB_URL",e.RevokeBlobUrls="REVOKE_BLOB_URLS",e.UpdateSettings="UPDATE_SETTINGS",e))(Qb||{}),Jb=(e=>(e.Processing="PROCESSING",e.Paused="PAUSED",e))(Jb||{}),ek=(e=>(e.Prepare="PREPARE",e.Upload="UPLOAD",e))(ek||{});const tk={queue:[],queueStatus:"active",blobUrls:{},settings:{mediaUpload:()=>{}}};var nk=function(e=tk,t={type:Qb.Unknown}){switch(t.type){case Qb.PauseQueue:return{...e,queueStatus:"paused"};case Qb.ResumeQueue:return{...e,queueStatus:"active"};case Qb.Add:return{...e,queue:[...e.queue,t.item]};case Qb.Cancel:return{...e,queue:e.queue.map((e=>e.id===t.id?{...e,error:t.error}:e))};case Qb.Remove:return{...e,queue:e.queue.filter((e=>e.id!==t.id))};case Qb.OperationStart:return{...e,queue:e.queue.map((e=>e.id===t.id?{...e,currentOperation:t.operation}:e))};case Qb.AddOperations:return{...e,queue:e.queue.map((e=>e.id!==t.id?e:{...e,operations:[...e.operations||[],...t.operations]}))};case Qb.OperationFinish:return{...e,queue:e.queue.map((e=>{if(e.id!==t.id)return e;const n=e.operations?e.operations.slice(1):[],o=e.attachment||t.item.attachment?{...e.attachment,...t.item.attachment}:void 0;return{...e,currentOperation:void 0,operations:n,...t.item,attachment:o,additionalData:{...e.additionalData,...t.item.additionalData}}}))};case Qb.CacheBlobUrl:{const n=e.blobUrls[t.id]||[];return{...e,blobUrls:{...e.blobUrls,[t.id]:[...n,t.blobUrl]}}}case Qb.RevokeBlobUrls:{const n={...e.blobUrls};return delete n[t.id],{...e,blobUrls:n}}case Qb.UpdateSettings:return{...e,settings:{...e.settings,...t.settings}}}return e};function ok(e){return e.queue}function rk(e){return e.queue.length>=1}function ik(e,t){return e.queue.some((e=>e.attachment?.url===t||e.sourceUrl===t))}function sk(e,t){return e.queue.some((e=>e.attachment?.id===t||e.sourceAttachmentId===t))}function lk(e){return e.settings}function ak(e){return e.queue}function ck(e,t){return e.queue.find((e=>e.id===t))}function uk(e,t){return 0===e.queue.filter((e=>t===e.batchId)).length}function dk(e,t){return e.queue.some((e=>e.currentOperation===ek.Upload&&e.additionalData.post===t))}function pk(e,t){return e.queue.find((e=>e.status===Jb.Paused&&e.additionalData.post===t))}function hk(e){return"paused"===e.queueStatus}function gk(e,t){return e.blobUrls[t]||[]}const mk={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let fk;const bk=new Uint8Array(16);function kk(){if(!fk&&(fk="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!fk))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return fk(bk)}const vk=[];for(let e=0;e<256;++e)vk.push((e+256).toString(16).slice(1));function _k(e,t=0){return vk[e[t+0]]+vk[e[t+1]]+vk[e[t+2]]+vk[e[t+3]]+"-"+vk[e[t+4]]+vk[e[t+5]]+"-"+vk[e[t+6]]+vk[e[t+7]]+"-"+vk[e[t+8]]+vk[e[t+9]]+"-"+vk[e[t+10]]+vk[e[t+11]]+vk[e[t+12]]+vk[e[t+13]]+vk[e[t+14]]+vk[e[t+15]]}const yk=function(e,t,n){if(mk.randomUUID&&!t&&!e)return mk.randomUUID();const o=(e=e||{}).random||(e.rng||kk)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=o[e];return t}return _k(o)};class xk extends Error{code;file;constructor({code:e,message:t,file:n,cause:o}){super(t,{cause:o}),Object.setPrototypeOf(this,new.target.prototype),this.code=e,this.file=n}}function Sk(e,t){if(!t)return;const n=t.some((t=>t.includes("/")?t===e.type:e.type.startsWith(`${t}/`)));if(e.type&&!n)throw new xk({code:"MIME_TYPE_NOT_SUPPORTED",message:(0,T.sprintf)((0,T.__)("%s: Sorry, this file type is not supported here."),e.name),file:e})}function wk(e,t){const n=(o=t)?Object.entries(o).flatMap((([e,t])=>{const[n]=t.split("/");return[t,...e.split("|").map((e=>`${n}/${e}`))]})):null;var o;if(!n)return;const r=n.includes(e.type);if(e.type&&!r)throw new xk({code:"MIME_TYPE_NOT_ALLOWED_FOR_USER",message:(0,T.sprintf)((0,T.__)("%s: Sorry, you are not allowed to upload this file type."),e.name),file:e})}function Ck(e,t){if(e.size<=0)throw new xk({code:"EMPTY_FILE",message:(0,T.sprintf)((0,T.__)("%s: This file is empty."),e.name),file:e});if(t&&e.size>t)throw new xk({code:"SIZE_ABOVE_LIMIT",message:(0,T.sprintf)((0,T.__)("%s: This file exceeds the maximum upload size for this site."),e.name),file:e})}function Bk({files:e,onChange:t,onSuccess:n,onError:o,onBatchSuccess:r,additionalData:i,allowedTypes:s}){return async({select:l,dispatch:a})=>{const c=yk();for(const u of e){try{Sk(u,s),wk(u,l.getSettings().allowedMimeTypes)}catch(e){o?.(e);continue}try{Ck(u,l.getSettings().maxUploadFileSize)}catch(e){o?.(e);continue}a.addItem({file:u,batchId:c,onChange:t,onSuccess:n,onBatchSuccess:r,onError:o,additionalData:i})}}}function Ik(e,t,n=!1){return async({select:o,dispatch:r})=>{const i=o.getItem(e);if(i){if(i.abortController?.abort(),!n){const{onError:e}=i;e?.(t??new Error("Upload cancelled")),!e&&t&&console.error("Upload cancelled",t)}r({type:Qb.Cancel,id:e,error:t}),r.removeItem(e),r.revokeBlobUrls(e),i.batchId&&o.isBatchUploaded(i.batchId)&&i.onBatchSuccess?.()}}}function jk(e){return function(e,t){return new File([e],t,{type:e.type,lastModified:e.lastModified})}(e,e.name)}class Ek extends File{constructor(e="stub-file"){super([],e)}}function Tk({file:e,batchId:t,onChange:n,onSuccess:o,onBatchSuccess:r,onError:i,additionalData:s={},sourceUrl:l,sourceAttachmentId:a,abortController:c,operations:u}){return async({dispatch:d})=>{const p=yk(),h=function(e){if(e instanceof File)return e;const t=e.type.split("/")[1],n="application/pdf"===e.type?"document":e.type.split("/")[0];return new File([e],`${n}.${t}`,{type:e.type})}(e);let g;h instanceof Ek||(g=(0,$a.createBlobURL)(h),d({type:Qb.CacheBlobUrl,id:p,blobUrl:g})),d({type:Qb.Add,item:{id:p,batchId:t,status:Jb.Processing,sourceFile:jk(h),file:h,attachment:{url:g},additionalData:{convert_format:!1,...s},onChange:n,onSuccess:o,onBatchSuccess:r,onError:i,sourceUrl:l,sourceAttachmentId:a,abortController:c||new AbortController,operations:Array.isArray(u)?u:[ek.Prepare]}}),d.processItem(p)}}function Mk(e){return async({select:t,dispatch:n})=>{if(t.isPaused())return;const o=t.getItem(e),{attachment:r,onChange:i,onSuccess:s,onBatchSuccess:l,batchId:a}=o,c=Array.isArray(o.operations?.[0])?o.operations[0][0]:o.operations?.[0];if(r&&i?.([r]),!c)return r&&s?.([r]),n.revokeBlobUrls(e),void(a&&t.isBatchUploaded(a)&&l?.());if(c)switch(n({type:Qb.OperationStart,id:e,operation:c}),c){case ek.Prepare:n.prepareItem(o.id);break;case ek.Upload:n.uploadItem(e)}}}function Pk(){return{type:Qb.PauseQueue}}function Rk(){return async({select:e,dispatch:t})=>{t({type:Qb.ResumeQueue});for(const n of e.getAllItems())t.processItem(n.id)}}function Ak(e){return async({select:t,dispatch:n})=>{t.getItem(e)&&n({type:Qb.Remove,id:e})}}function Nk(e,t){return async({dispatch:n})=>{n({type:Qb.OperationFinish,id:e,item:t}),n.processItem(e)}}function Lk(e){return async({dispatch:t})=>{const n=[ek.Upload];t({type:Qb.AddOperations,id:e,operations:n}),t.finishOperation(e,{})}}function Dk(e){return async({select:t,dispatch:n})=>{const o=t.getItem(e);t.getSettings().mediaUpload({filesList:[o.file],additionalData:o.additionalData,signal:o.abortController?.signal,onFileChange:([t])=>{(0,$a.isBlobURL)(t.url)||n.finishOperation(e,{attachment:t})},onSuccess:([t])=>{n.finishOperation(e,{attachment:t})},onError:t=>{n.cancelItem(e,t)}})}}function Ok(e){return async({select:t,dispatch:n})=>{const o=t.getBlobUrls(e);for(const e of o)(0,$a.revokeBlobURL)(e);n({type:Qb.RevokeBlobUrls,id:e})}}function zk(e){return{type:Qb.UpdateSettings,settings:e}}const{lock:Vk,unlock:Fk}=(0,H.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.","@wordpress/upload-media"),Hk="core/upload-media",Uk={reducer:nk,selectors:s,actions:a},Gk=(0,g.createReduxStore)(Hk,{reducer:nk,selectors:s,actions:a});(0,g.register)(Gk),Fk(Gk).registerPrivateActions(c),Fk(Gk).registerPrivateSelectors(l);const $k=(0,m.createHigherOrderComponent)((e=>({useSubRegistry:t=!0,...n})=>{const o=(0,g.useRegistry)(),[r]=(0,h.useState)((()=>new WeakMap)),i=function(e,t,n){if(!n)return t;let o=e.get(t);return o||(o=(0,g.createRegistry)({},t),o.registerStore(Hk,Uk),e.set(t,o)),o}(r,o,t);return i===o?(0,d.jsx)(e,{registry:o,...n}):(0,d.jsx)(g.RegistryProvider,{value:i,children:(0,d.jsx)(e,{registry:i,...n})})}),"withRegistryProvider")((e=>{const{children:t,settings:n}=e,{updateSettings:o}=Fk((0,g.useDispatch)(Gk));return(0,h.useEffect)((()=>{o(n)}),[n,o]),(0,d.jsx)(d.Fragment,{children:t})}));var Wk=$k;var Kk=(0,m.createHigherOrderComponent)((e=>({useSubRegistry:t=!0,...n})=>{const o=(0,g.useRegistry)(),[r]=(0,h.useState)((()=>new WeakMap)),i=function(e,t,n){if(!n)return t;let o=e.get(t);return o||(o=(0,g.createRegistry)({},t),o.registerStore(ge,Ii),e.set(t,o)),o}(r,o,t);return i===o?(0,d.jsx)(e,{registry:o,...n}):(0,d.jsx)(g.RegistryProvider,{value:i,children:(0,d.jsx)(e,{registry:i,...n})})}),"withRegistryProvider");const Zk=()=>{};function qk({clientId:e=null,value:t,selection:n,onChange:o=Zk,onInput:r=Zk}){const i=(0,g.useRegistry)(),{resetBlocks:s,resetSelection:l,replaceInnerBlocks:a,setHasControlledInnerBlocks:c,__unstableMarkNextChangeAsNotPersistent:u}=i.dispatch(ji),{getBlockName:d,getBlocks:m,getSelectionStart:f,getSelectionEnd:b}=i.select(ji),k=(0,g.useSelect)((t=>!e||t(ji).areInnerBlocksControlled(e)),[e]),v=(0,h.useRef)({incoming:null,outgoing:[]}),_=(0,h.useRef)(!1),y=()=>{t&&(u(),e?i.batch((()=>{c(e,!0);const n=t.map((e=>(0,p.cloneBlock)(e)));_.current&&(v.current.incoming=n),u(),a(e,n)})):(_.current&&(v.current.incoming=t),s(t)))},x=(0,h.useRef)(r),S=(0,h.useRef)(o);(0,h.useEffect)((()=>{x.current=r,S.current=o}),[r,o]),(0,h.useEffect)((()=>{v.current.outgoing.includes(t)?v.current.outgoing[v.current.outgoing.length-1]===t&&(v.current.outgoing=[]):m(e)!==t&&(v.current.outgoing=[],y(),n&&l(n.selectionStart,n.selectionEnd,n.initialPosition))}),[t,e]);const w=(0,h.useRef)(!1);(0,h.useEffect)((()=>{w.current?k||(v.current.outgoing=[],y()):w.current=!0}),[k]),(0,h.useEffect)((()=>{const{getSelectedBlocksInitialCaretPosition:t,isLastBlockChangePersistent:n,__unstableIsLastBlockChangeIgnored:o,areInnerBlocksControlled:r}=i.select(ji);let s=m(e),l=n(),a=!1;_.current=!0;const c=i.subscribe((()=>{if(null!==e&&null===d(e))return;if(!(!e||r(e)))return;const i=n(),c=m(e),u=c!==s;if(s=c,u&&(v.current.incoming||o()))return v.current.incoming=null,void(l=i);if(u||a&&!u&&i&&!l){l=i,v.current.outgoing.push(s);(l?S.current:x.current)(s,{selection:{selectionStart:f(),selectionEnd:b(),initialPosition:t()}})}a=u}),ji);return()=>{_.current=!1,c()}}),[i,e]),(0,h.useEffect)((()=>()=>{u(),e?(c(e,!1),u(),a(e,[])):s([])}),[])}const Yk=window.wp.keyboardShortcuts;function Xk(){return null}Xk.Register=function(){const{registerShortcut:e}=(0,g.useDispatch)(Yk.store);return(0,h.useEffect)((()=>{e({name:"core/block-editor/copy",category:"block",description:(0,T.__)("Copy the selected block(s)."),keyCombination:{modifier:"primary",character:"c"}}),e({name:"core/block-editor/cut",category:"block",description:(0,T.__)("Cut the selected block(s)."),keyCombination:{modifier:"primary",character:"x"}}),e({name:"core/block-editor/paste",category:"block",description:(0,T.__)("Paste the selected block(s)."),keyCombination:{modifier:"primary",character:"v"}}),e({name:"core/block-editor/duplicate",category:"block",description:(0,T.__)("Duplicate the selected block(s)."),keyCombination:{modifier:"primaryShift",character:"d"}}),e({name:"core/block-editor/remove",category:"block",description:(0,T.__)("Remove the selected block(s)."),keyCombination:{modifier:"access",character:"z"}}),e({name:"core/block-editor/paste-styles",category:"block",description:(0,T.__)("Paste the copied style to the selected block(s)."),keyCombination:{modifier:"primaryAlt",character:"v"}}),e({name:"core/block-editor/insert-before",category:"block",description:(0,T.__)("Insert a new block before the selected block(s)."),keyCombination:{modifier:"primaryAlt",character:"t"}}),e({name:"core/block-editor/insert-after",category:"block",description:(0,T.__)("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:(0,T.__)("Delete selection."),keyCombination:{character:"del"},aliases:[{character:"backspace"}]}),e({name:"core/block-editor/select-all",category:"selection",description:(0,T.__)("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:(0,T.__)("Clear selection."),keyCombination:{character:"escape"}}),e({name:"core/block-editor/multi-text-selection",category:"selection",description:(0,T.__)("Select text across multiple blocks."),keyCombination:{modifier:"shift",character:"arrow"}}),e({name:"core/block-editor/focus-toolbar",category:"global",description:(0,T.__)("Navigate to the nearest toolbar."),keyCombination:{modifier:"alt",character:"F10"}}),e({name:"core/block-editor/move-up",category:"block",description:(0,T.__)("Move the selected block(s) up."),keyCombination:{modifier:"secondary",character:"t"}}),e({name:"core/block-editor/move-down",category:"block",description:(0,T.__)("Move the selected block(s) down."),keyCombination:{modifier:"secondary",character:"y"}}),e({name:"core/block-editor/collapse-list-view",category:"list-view",description:(0,T.__)("Collapse all other items."),keyCombination:{modifier:"alt",character:"l"}}),e({name:"core/block-editor/group",category:"block",description:(0,T.__)("Create a group block from the selected multiple blocks."),keyCombination:{modifier:"primary",character:"g"}}),e({name:"core/block-editor/toggle-block-visibility",category:"block",description:(0,T.__)("Show or hide the selected block(s)."),keyCombination:{modifier:"primaryShift",character:"h"}})}),[e]),null};var Qk=Xk;var Jk=function(e={}){return(0,h.useMemo)((()=>({mediaUpload:e.mediaUpload,mediaSideload:e.mediaSideload,maxUploadFileSize:e.maxUploadFileSize,allowedMimeTypes:e.allowedMimeTypes})),[e])};const ev=()=>{};function tv(e,{allowedTypes:t,additionalData:n={},filesList:o,onError:r=ev,onFileChange:i,onSuccess:s,onBatchSuccess:l}){e.dispatch(Gk).addItems({files:o,onChange:i,onSuccess:s,onBatchSuccess:l,onError:({message:e})=>r(e),additionalData:n,allowedTypes:t})}const nv=Kk((e=>{const{settings:t,registry:n,stripExperimentalSettings:o=!1}=e,r=Jk(t);let i=t;window.__experimentalMediaProcessing&&t.mediaUpload&&(i=(0,h.useMemo)((()=>({...t,mediaUpload:tv.bind(null,n)})),[t,n]));const{__experimentalUpdateSettings:s}=G((0,g.useDispatch)(ji));(0,h.useEffect)((()=>{s({...i,__internalIsInitialized:!0},{stripExperimentalSettings:o,reset:!0})}),[i,o,s]),qk(e);const l=(0,d.jsxs)(ws.SlotFillProvider,{passthrough:!0,children:[!i?.isPreviewMode&&(0,d.jsx)(Qk.Register,{}),(0,d.jsx)(hh,{children:e.children})]});return window.__experimentalMediaProcessing?(0,d.jsx)(Wk,{settings:r,useSubRegistry:!1,children:l}):l}));var ov=e=>(0,d.jsx)(nv,{...e,stripExperimentalSettings:!0,children:e.children});const rv=(0,h.createContext)({});function iv({value:e,children:t}){const n=(0,h.useContext)(rv),o=(0,h.useMemo)((()=>({...n,...e})),[n,e]);return(0,d.jsx)(rv.Provider,{value:o,children:t})}rv.displayName="BlockContext";var sv=rv;const lv="core/pattern-overrides";function av(e){return!e||0===Object.keys(e).length}function cv(e){return e?.__default?.source===lv}function uv(e,t){if(cv(e)){const n={};for(const o of t){const t=e[o]?e[o]:{source:lv};n[o]=t}return n}return e}function dv(e){const{clientId:t}=C(),n=e||t,{updateBlockAttributes:o}=(0,g.useDispatch)(ji),{getBlockAttributes:r}=(0,g.useRegistry)().select(ji);return{updateBlockBindings:e=>{const{metadata:{bindings:t,...i}={}}=r(n),s={...t};Object.entries(e).forEach((([e,t])=>{t||!s[e]?s[e]=t:delete s[e]}));const l={...i,bindings:s};av(l.bindings)&&delete l.bindings,o(n,{metadata:av(l)?void 0:l})},removeAllBlockBindings:()=>{const{metadata:{bindings:e,...t}={}}=r(n);o(n,{metadata:av(t)?void 0:t})}}}const pv=(0,h.createContext)({});pv.displayName="PrivateBlockContext";const hv={},gv=(0,ws.withFilters)("editor.BlockEdit")((e=>{const{name:t}=e,n=(0,p.getBlockType)(t);if(!n)return null;const o=n.edit||n.save;return(0,d.jsx)(o,{...e})}));var mv=e=>{const{name:t,clientId:n,attributes:o,setAttributes:r}=e,i=(0,g.useRegistry)(),s=(0,p.getBlockType)(t),l=(0,h.useContext)(sv),a=(0,g.useSelect)((e=>G(e(p.store)).getAllBlockBindingsSources()),[]),{bindableAttributes:c}=(0,h.useContext)(pv),{blockBindings:u,context:m,hasPatternOverrides:f}=(0,h.useMemo)((()=>{const e=s?.usesContext?Object.fromEntries(Object.entries(l).filter((([e])=>s.usesContext.includes(e)))):hv;return o?.metadata?.bindings&&Object.values(o?.metadata?.bindings||{}).forEach((t=>{a[t?.source]?.usesContext?.forEach((t=>{e[t]=l[t]}))})),{blockBindings:uv(o?.metadata?.bindings,c),context:e,hasPatternOverrides:cv(o?.metadata?.bindings)}}),[t,s?.usesContext,l,o?.metadata?.bindings,a]),b=(0,g.useSelect)((e=>{if(!u)return o;const t={},r=new Map;for(const[e,t]of Object.entries(u)){const{source:n,args:o}=t,i=a[n];i&&c?.includes(e)&&r.set(i,{...r.get(i),[e]:{args:o}})}if(r.size)for(const[o,i]of r){let r={};o.getValues?r=o.getValues({select:e,context:m,clientId:n,bindings:i}):Object.keys(i).forEach((e=>{r[e]=o.label}));for(const[e,n]of Object.entries(r))"url"!==e||n&&Lc(n)?t[e]=n:t[e]=null}return{...o,...t}}),[o,c,u,n,m,t,a]),k=(0,h.useCallback)((e=>{u?i.batch((()=>{const t={...e},o=new Map;for(const[e,n]of Object.entries(t)){if(!u[e]||!c?.includes(e))continue;const r=u[e],i=a[r?.source];i?.setValues&&(o.set(i,{...o.get(i),[e]:{args:r.args,newValue:n}}),delete t[e])}if(o.size)for(const[e,t]of o)e.setValues({select:i.select,dispatch:i.dispatch,context:m,clientId:n,bindings:t});const s=!!m["pattern/overrides"];f&&s||!Object.keys(t).length||(f&&(delete t.caption,delete t.href),r(t))})):r(e)}),[c,u,n,m,f,r,a,t,i]);if(!s)return null;if(s.apiVersion>1)return(0,d.jsx)(gv,{...e,attributes:b,context:m,setAttributes:k});const v=(0,p.hasBlockSupport)(s,"className",!0)?(0,p.getBlockDefaultClassName)(t):null,_=ms(v,o?.className,e.className);return(0,d.jsx)(gv,{...e,attributes:b,className:_,context:m,setAttributes:k})},fv=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"})});var bv=function({className:e,actions:t,children:n,secondaryActions:o}){return(0,d.jsx)("div",{style:{display:"contents",all:"initial"},children:(0,d.jsx)("div",{className:ms(e,"block-editor-warning"),children:(0,d.jsxs)("div",{className:"block-editor-warning__contents",children:[(0,d.jsx)("p",{className:"block-editor-warning__message",children:n}),(t?.length>0||o)&&(0,d.jsxs)("div",{className:"block-editor-warning__actions",children:[t?.length>0&&t.map(((e,t)=>(0,d.jsx)("span",{className:"block-editor-warning__action",children:e},t))),o&&(0,d.jsx)(ws.DropdownMenu,{className:"block-editor-warning__secondary",icon:fv,label:(0,T.__)("More options"),popoverProps:{placement:"bottom-end",className:"block-editor-warning__dropdown"},noIcons:!0,children:()=>(0,d.jsx)(ws.MenuGroup,{children:o.map(((e,t)=>(0,d.jsx)(ws.MenuItem,{onClick:e.onClick,children:e.title},t)))})})]})]})})})};function kv({originalBlockClientId:e,name:t,onReplace:n}){const{selectBlock:o}=(0,g.useDispatch)(ji),r=(0,p.getBlockType)(t);return(0,d.jsxs)(bv,{actions:[(0,d.jsx)(ws.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:()=>o(e),children:(0,T.__)("Find original")},"find-original"),(0,d.jsx)(ws.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:()=>n([]),children:(0,T.__)("Remove")},"remove")],children:[(0,d.jsxs)("strong",{children:[r?.title,": "]}),(0,T.__)("This block can only be used once.")]})}function vv({mayDisplayControls:e,mayDisplayParentControls:t,blockEditingMode:n,isPreviewMode:o,...r}){const{name:i,isSelected:s,clientId:l,attributes:a={},__unstableLayoutClassNames:c}=r,{layout:u=null,metadata:g={}}=a,{bindings:m}=g,f=(0,p.hasBlockSupport)(i,"layout",!1)||(0,p.hasBlockSupport)(i,"__experimentalLayout",!1),{originalBlockClientId:x}=(0,h.useContext)(pv);return(0,d.jsxs)(w,{value:(0,h.useMemo)((()=>({name:i,isSelected:s,clientId:l,layout:f?u:null,__unstableLayoutClassNames:c,[b]:e,[k]:t,[v]:n,[_]:m,[y]:o})),[i,s,l,f,u,c,e,t,n,m,o]),children:[(0,d.jsx)(mv,{...r}),x&&(0,d.jsx)(kv,{originalBlockClientId:x,name:i,onReplace:r.onReplace})]})}var _v=n(8021);function yv({title:e,rawContent:t,renderedContent:n,action:o,actionText:r,className:i}){return(0,d.jsxs)("div",{className:i,children:[(0,d.jsxs)("div",{className:"block-editor-block-compare__content",children:[(0,d.jsx)("h2",{className:"block-editor-block-compare__heading",children:e}),(0,d.jsx)("div",{className:"block-editor-block-compare__html",children:t}),(0,d.jsx)("div",{className:"block-editor-block-compare__preview edit-post-visual-editor",children:(0,d.jsx)(h.RawHTML,{children:(0,Ga.safeHTML)(n)})})]}),(0,d.jsx)("div",{className:"block-editor-block-compare__action",children:(0,d.jsx)(ws.Button,{__next40pxDefaultSize:!0,variant:"secondary",tabIndex:"0",onClick:o,children:r})})]})}var xv=function({block:e,onKeep:t,onConvert:n,convertor:o,convertButtonText:r}){const i=(s=o(e),(Array.isArray(s)?s:[s]).map((e=>(0,p.getSaveContent)(e.name,e.attributes,e.innerBlocks))).join(""));var s;const l=(a=e.originalContent,c=i,(0,_v.JJ)(a,c).map(((e,t)=>{const n=ms({"block-editor-block-compare__added":e.added,"block-editor-block-compare__removed":e.removed});return(0,d.jsx)("span",{className:n,children:e.value},t)})));var a,c;return(0,d.jsxs)("div",{className:"block-editor-block-compare__wrapper",children:[(0,d.jsx)(yv,{title:(0,T.__)("Current"),className:"block-editor-block-compare__current",action:t,actionText:(0,T.__)("Convert to HTML"),rawContent:e.originalContent,renderedContent:e.originalContent}),(0,d.jsx)(yv,{title:(0,T.__)("After Conversion"),className:"block-editor-block-compare__converted",action:n,actionText:r,rawContent:l,renderedContent:i})]})};const Sv=e=>(0,p.rawHandler)({HTML:e.originalContent});function wv({clientId:e}){const{block:t,canInsertHTMLBlock:n,canInsertClassicBlock:o}=(0,g.useSelect)((t=>{const{canInsertBlockType:n,getBlock:o,getBlockRootClientId:r}=t(ji),i=r(e);return{block:o(e),canInsertHTMLBlock:n("core/html",i),canInsertClassicBlock:n("core/freeform",i)}}),[e]),{replaceBlock:r}=(0,g.useDispatch)(ji),[i,s]=(0,h.useState)(!1),l=(0,h.useCallback)((()=>s(!1)),[]),a=(0,h.useMemo)((()=>({toClassic(){const e=(0,p.createBlock)("core/freeform",{content:t.originalContent});return r(t.clientId,e)},toHTML(){const e=(0,p.createBlock)("core/html",{content:t.originalContent});return r(t.clientId,e)},toBlocks(){const e=Sv(t);return r(t.clientId,e)},toRecoveredBlock(){const e=(0,p.createBlock)(t.name,t.attributes,t.innerBlocks);return r(t.clientId,e)}})),[t,r]),c=(0,h.useMemo)((()=>[{title:(0,T._x)("Resolve","imperative verb"),onClick:()=>s(!0)},n&&{title:(0,T.__)("Convert to HTML"),onClick:a.toHTML},o&&{title:(0,T.__)("Convert to Classic Block"),onClick:a.toClassic}].filter(Boolean)),[n,o,a]);return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(bv,{actions:[(0,d.jsx)(ws.Button,{__next40pxDefaultSize:!0,onClick:a.toRecoveredBlock,variant:"primary",children:(0,T.__)("Attempt recovery")},"recover")],secondaryActions:c,children:(0,T.__)("Block contains unexpected or invalid content.")}),i&&(0,d.jsx)(ws.Modal,{title:(0,T.__)("Resolve Block"),onRequestClose:l,className:"block-editor-block-compare",children:(0,d.jsx)(xv,{block:t,onKeep:a.toHTML,onConvert:a.toBlocks,convertor:Sv,convertButtonText:(0,T.__)("Convert to Blocks")})})]})}const Cv=(0,d.jsx)(bv,{className:"block-editor-block-list__block-crash-warning",children:(0,T.__)("This block has encountered an error and cannot be previewed.")});var Bv=()=>Cv;class Iv extends h.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 jv=Iv,Ev=n(4132);var Tv=function({clientId:e}){const[t,n]=(0,h.useState)(""),o=(0,g.useSelect)((t=>t(ji).getBlock(e)),[e]),{updateBlock:r}=(0,g.useDispatch)(ji);return(0,h.useEffect)((()=>{n((0,p.getBlockContent)(o))}),[o]),(0,d.jsx)(Ev.A,{className:"block-editor-block-list__block-html-textarea",value:t,onBlur:()=>{const i=(0,p.getBlockType)(o.name);if(!i)return;const s=(0,p.getBlockAttributes)(i,t,o.attributes),l=t||(0,p.getSaveContent)(i,s),[a]=t?(0,p.validateBlock)({...o,attributes:s,originalContent:l}):[!0];r(e,{attributes:s,originalContent:l,isValid:a}),t||n(l)},onChange:e=>n(e.target.value)})},Mv=Kv(),Pv=e=>Uv(e,Mv),Rv=Kv();Pv.write=e=>Uv(e,Rv);var Av=Kv();Pv.onStart=e=>Uv(e,Av);var Nv=Kv();Pv.onFrame=e=>Uv(e,Nv);var Lv=Kv();Pv.onFinish=e=>Uv(e,Lv);var Dv=[];Pv.setTimeout=(e,t)=>{let n=Pv.now()+t,o=()=>{let e=Dv.findIndex((e=>e.cancel==o));~e&&Dv.splice(e,1),Fv-=~e?1:0},r={time:n,handler:e,cancel:o};return Dv.splice(Ov(n),0,r),Fv+=1,Gv(),r};var Ov=e=>~(~Dv.findIndex((t=>t.time>e))||~Dv.length);Pv.cancel=e=>{Av.delete(e),Nv.delete(e),Lv.delete(e),Mv.delete(e),Rv.delete(e)},Pv.sync=e=>{Hv=!0,Pv.batchedUpdates(e),Hv=!1},Pv.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function o(...e){t=e,Pv.onStart(n)}return o.handler=e,o.cancel=()=>{Av.delete(n),t=null},o};var zv=typeof window<"u"?window.requestAnimationFrame:()=>{};Pv.use=e=>zv=e,Pv.now=typeof performance<"u"?()=>performance.now():Date.now,Pv.batchedUpdates=e=>e(),Pv.catch=console.error,Pv.frameLoop="always",Pv.advance=()=>{"demand"!==Pv.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):Wv()};var Vv=-1,Fv=0,Hv=!1;function Uv(e,t){Hv?(t.delete(e),e(0)):(t.add(e),Gv())}function Gv(){Vv<0&&(Vv=0,"demand"!==Pv.frameLoop&&zv($v))}function $v(){~Vv&&(zv($v),Pv.batchedUpdates(Wv))}function Wv(){let e=Vv;Vv=Pv.now();let t=Ov(Vv);t&&(Zv(Dv.splice(0,t),(e=>e.handler())),Fv-=t),Fv?(Av.flush(),Mv.flush(e?Math.min(64,Vv-e):16.667),Nv.flush(),Rv.flush(),Lv.flush()):Vv=-1}function Kv(){let e=new Set,t=e;return{add(n){Fv+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(Fv-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,Fv-=t.size,Zv(t,(t=>t(n)&&e.add(t))),Fv+=e.size,t=e)}}}function Zv(e,t){e.forEach((e=>{try{t(e)}catch(e){Pv.catch(e)}}))}var qv=Object.defineProperty,Yv={};function Xv(){}((e,t)=>{for(var n in t)qv(e,n,{get:t[n],enumerable:!0})})(Yv,{assign:()=>d_,colors:()=>a_,createStringInterpolator:()=>r_,skipAnimation:()=>c_,to:()=>i_,willAdvance:()=>u_});var Qv={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 Jv(e,t){if(Qv.arr(e)){if(!Qv.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}var e_=(e,t)=>e.forEach(t);function t_(e,t,n){if(Qv.arr(e))for(let o=0;o<e.length;o++)t.call(n,e[o],`${o}`);else for(let o in e)e.hasOwnProperty(o)&&t.call(n,e[o],o)}var n_=e=>Qv.und(e)?[]:Qv.arr(e)?e:[e];function o_(e,t){if(e.size){let n=Array.from(e);e.clear(),e_(n,t)}}var r_,i_,s_=(e,...t)=>o_(e,(e=>e(...t))),l_=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),a_=null,c_=!1,u_=Xv,d_=e=>{e.to&&(i_=e.to),e.now&&(Pv.now=e.now),void 0!==e.colors&&(a_=e.colors),null!=e.skipAnimation&&(c_=e.skipAnimation),e.createStringInterpolator&&(r_=e.createStringInterpolator),e.requestAnimationFrame&&Pv.use(e.requestAnimationFrame),e.batchedUpdates&&(Pv.batchedUpdates=e.batchedUpdates),e.willAdvance&&(u_=e.willAdvance),e.frameLoop&&(Pv.frameLoop=e.frameLoop)},p_=new Set,h_=[],g_=[],m_=0,f_={get idle(){return!p_.size&&!h_.length},start(e){m_>e.priority?(p_.add(e),Pv.onStart(b_)):(k_(e),Pv(__))},advance:__,sort(e){if(m_)Pv.onFrame((()=>f_.sort(e)));else{let t=h_.indexOf(e);~t&&(h_.splice(t,1),v_(e))}},clear(){h_=[],p_.clear()}};function b_(){p_.forEach(k_),p_.clear(),Pv(__)}function k_(e){h_.includes(e)||v_(e)}function v_(e){h_.splice(function(e,t){let n=e.findIndex(t);return n<0?e.length:n}(h_,(t=>t.priority>e.priority)),0,e)}function __(e){let t=g_;for(let n=0;n<h_.length;n++){let o=h_[n];m_=o.priority,o.idle||(u_(o),o.advance(e),o.idle||t.push(o))}return m_=0,(g_=h_).length=0,(h_=t).length>0}var y_="[-+]?\\d*\\.?\\d+",x_=y_+"%";function S_(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var w_=new RegExp("rgb"+S_(y_,y_,y_)),C_=new RegExp("rgba"+S_(y_,y_,y_,y_)),B_=new RegExp("hsl"+S_(y_,x_,x_)),I_=new RegExp("hsla"+S_(y_,x_,x_,y_)),j_=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,E_=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,T_=/^#([0-9a-fA-F]{6})$/,M_=/^#([0-9a-fA-F]{8})$/;function P_(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 R_(e,t,n){let o=n<.5?n*(1+t):n+t-n*t,r=2*n-o,i=P_(r,o,e+1/3),s=P_(r,o,e),l=P_(r,o,e-1/3);return Math.round(255*i)<<24|Math.round(255*s)<<16|Math.round(255*l)<<8}function A_(e){let t=parseInt(e,10);return t<0?0:t>255?255:t}function N_(e){return(parseFloat(e)%360+360)%360/360}function L_(e){let t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function D_(e){let t=parseFloat(e);return t<0?0:t>100?1:t/100}function O_(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=T_.exec(e))?parseInt(t[1]+"ff",16)>>>0:a_&&void 0!==a_[e]?a_[e]:(t=w_.exec(e))?(A_(t[1])<<24|A_(t[2])<<16|A_(t[3])<<8|255)>>>0:(t=C_.exec(e))?(A_(t[1])<<24|A_(t[2])<<16|A_(t[3])<<8|L_(t[4]))>>>0:(t=j_.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=M_.exec(e))?parseInt(t[1],16)>>>0:(t=E_.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=B_.exec(e))?(255|R_(N_(t[1]),D_(t[2]),D_(t[3])))>>>0:(t=I_.exec(e))?(R_(N_(t[1]),D_(t[2]),D_(t[3]))|L_(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})`)}var z_=(e,t,n)=>{if(Qv.fun(e))return e;if(Qv.arr(e))return z_({range:e,output:t,extrapolate:n});if(Qv.str(e.output[0]))return r_(e);let o=e,r=o.output,i=o.range||[0,1],s=o.extrapolateLeft||o.extrapolate||"extend",l=o.extrapolateRight||o.extrapolate||"extend",a=o.easing||(e=>e);return e=>{let t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,i);return function(e,t,n,o,r,i,s,l,a){let c=a?a(e):e;if(c<t){if("identity"===s)return c;"clamp"===s&&(c=t)}if(c>n){if("identity"===l)return c;"clamp"===l&&(c=n)}return o===r?o:t===n?e<=t?o:r:(t===-1/0?c=-c:n===1/0?c-=t:c=(c-t)/(n-t),c=i(c),o===-1/0?c=-c:r===1/0?c+=o:c=c*(r-o)+o,c)}(e,i[t],i[t+1],r[t],r[t+1],a,s,l,o.map)}};var V_=1.70158,F_=1.525*V_,H_=V_+1,U_=2*Math.PI/3,G_=2*Math.PI/4.5,$_=e=>e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,W_={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>0===e?0:Math.pow(2,10*e-10),easeOutExpo:e=>1===e?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>0===e?0:1===e?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>H_*e*e*e-V_*e*e,easeOutBack:e=>1+H_*Math.pow(e-1,3)+V_*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*(2*(F_+1)*e-F_)/2:(Math.pow(2*e-2,2)*((F_+1)*(2*e-2)+F_)+2)/2,easeInElastic:e=>0===e?0:1===e?1:-Math.pow(2,10*e-10)*Math.sin((10*e-10.75)*U_),easeOutElastic:e=>0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((10*e-.75)*U_)+1,easeInOutElastic:e=>0===e?0:1===e?1:e<.5?-Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*G_)/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*G_)/2+1,easeInBounce:e=>1-$_(1-e),easeOutBounce:$_,easeInOutBounce:e=>e<.5?(1-$_(1-2*e))/2:(1+$_(2*e-1))/2,steps:(e,t="end")=>n=>{let o=(n="end"===t?Math.min(n,.999):Math.max(n,.001))*e;return((e,t,n)=>Math.min(Math.max(n,e),t))(0,1,("end"===t?Math.floor(o):Math.ceil(o))/e)}},K_=Symbol.for("FluidValue.get"),Z_=Symbol.for("FluidValue.observers"),q_=e=>Boolean(e&&e[K_]),Y_=e=>e&&e[K_]?e[K_]():e,X_=e=>e[Z_]||null;function Q_(e,t){let n=e[Z_];n&&n.forEach((e=>{!function(e,t){e.eventObserved?e.eventObserved(t):e(t)}(e,t)}))}var J_=class{[K_];[Z_];constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");ey(this,e)}},ey=(e,t)=>ry(e,K_,t);function ty(e,t){if(e[K_]){let n=e[Z_];n||ry(e,Z_,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function ny(e,t){let n=e[Z_];if(n&&n.has(t)){let o=n.size-1;o?n.delete(t):e[Z_]=null,e.observerRemoved&&e.observerRemoved(o,t)}}var oy,ry=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),iy=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,sy=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,ly=new RegExp(`(${iy.source})(%|[a-z]+)`,"i"),ay=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,cy=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,uy=e=>{let[t,n]=dy(e);if(!t||l_())return e;let o=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(o)return o.trim();if(n&&n.startsWith("--")){return window.getComputedStyle(document.documentElement).getPropertyValue(n)||e}return n&&cy.test(n)?uy(n):n||e},dy=e=>{let t=cy.exec(e);if(!t)return[,];let[,n,o]=t;return[n,o]},py=(e,t,n,o,r)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(o)}, ${r})`,hy=e=>{oy||(oy=a_?new RegExp(`(${Object.keys(a_).join("|")})(?!\\w)`,"g"):/^\b$/);let t=e.output.map((e=>Y_(e).replace(cy,uy).replace(sy,O_).replace(oy,O_))),n=t.map((e=>e.match(iy).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=>z_({...e,output:t})));return e=>{let n=!ly.test(t[0])&&t.find((e=>ly.test(e)))?.replace(iy,""),r=0;return t[0].replace(iy,(()=>`${o[r++](e)}${n||""}`)).replace(ay,py)}},gy="react-spring: ",my=e=>{let t=e,n=!1;if("function"!=typeof t)throw new TypeError(`${gy}once requires a function parameter`);return(...e)=>{n||(t(...e),n=!0)}},fy=my(console.warn);my(console.warn);function by(e){return Qv.str(e)&&("#"==e[0]||/\d/.test(e)||!l_()&&cy.test(e)||e in(a_||{}))}new WeakMap;new Set,new WeakMap,new WeakMap,new WeakMap;var ky=l_()?ic.useEffect:ic.useLayoutEffect;function vy(){let e=(0,ic.useState)()[1],t=(()=>{let e=(0,ic.useRef)(!1);return ky((()=>(e.current=!0,()=>{e.current=!1})),[]),e})();return()=>{t.current&&e(Math.random())}}var _y=[];var yy=Symbol.for("Animated:node"),xy=e=>e&&e[yy],Sy=(e,t)=>((e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}))(e,yy,t),wy=e=>e&&e[yy]&&e[yy].getPayload(),Cy=class{payload;constructor(){Sy(this,this)}getPayload(){return this.payload||[]}},By=class extends Cy{constructor(e){super(),this._value=e,Qv.num(this._value)&&(this.lastPosition=this._value)}done=!0;elapsedTime;lastPosition;lastVelocity;v0;durationProgress=0;static create(e){return new By(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return Qv.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value!==e&&(this._value=e,!0)}reset(){let{done:e}=this;this.done=!1,Qv.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},Iy=class extends By{_string=null;_toString;constructor(e){super(0),this._toString=z_({output:[e,e]})}static create(e){return new Iy(e)}getValue(){return this._string??(this._string=this._toString(this._value))}setValue(e){if(Qv.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else{if(!super.setValue(e))return!1;this._string=null}return!0}reset(e){e&&(this._toString=z_({output:[this.getValue(),e]})),this._value=0,super.reset()}},jy={dependencies:null},Ey=class extends Cy{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){let t={};return t_(this.source,((n,o)=>{(e=>!!e&&e[yy]===e)(n)?t[o]=n.getValue(e):q_(n)?t[o]=Y_(n):e||(t[o]=n)})),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&e_(this.payload,(e=>e.reset()))}_makePayload(e){if(e){let t=new Set;return t_(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){jy.dependencies&&q_(e)&&jy.dependencies.add(e);let t=wy(e);t&&e_(t,(e=>this.add(e)))}},Ty=class extends Ey{constructor(e){super(e)}static create(e){return new Ty(e)}getValue(){return this.source.map((e=>e.getValue()))}setValue(e){let t=this.getPayload();return e.length==t.length?t.map(((t,n)=>t.setValue(e[n]))).some(Boolean):(super.setValue(e.map(My)),!0)}};function My(e){return(by(e)?Iy:By).create(e)}function Py(e){let t=xy(e);return t?t.constructor:Qv.arr(e)?Ty:by(e)?Iy:By}var Ry=(e,t)=>{let n=!Qv.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,ic.forwardRef)(((o,r)=>{let i=(0,ic.useRef)(null),s=n&&(0,ic.useCallback)((e=>{i.current=function(e,t){return e&&(Qv.fun(e)?e(t):e.current=t),t}(r,e)}),[r]),[l,a]=function(e,t){let n=new Set;return jy.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new Ey(e),jy.dependencies=null,[e,n]}(o,t),c=vy(),u=()=>{let e=i.current;n&&!e||!1===(!!e&&t.applyAnimatedValues(e,l.getValue(!0)))&&c()},d=new Ay(u,a),p=(0,ic.useRef)();ky((()=>(p.current=d,e_(a,(e=>ty(e,d))),()=>{p.current&&(e_(p.current.deps,(e=>ny(e,p.current))),Pv.cancel(p.current.update))}))),(0,ic.useEffect)(u,[]),(e=>{(0,ic.useEffect)(e,_y)})((()=>()=>{let e=p.current;e_(e.deps,(t=>ny(t,e)))}));let h=t.getComponentProps(l.getValue());return ic.createElement(e,{...h,ref:s})}))},Ay=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&Pv.write(this.update)}};var Ny=Symbol.for("AnimatedComponent"),Ly=e=>Qv.str(e)?e:e&&Qv.str(e.displayName)?e.displayName:Qv.fun(e)&&e.name||null;function Dy(e,...t){return Qv.fun(e)?e(...t):e}var Oy=(e,t)=>!0===e||!!(t&&e&&(Qv.fun(e)?e(t):n_(e).includes(t))),zy=(e,t)=>Qv.obj(e)?t&&e[t]:e,Vy=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,Fy=e=>e,Hy=(e,t=Fy)=>{let n=Uy;e.default&&!0!==e.default&&(e=e.default,n=Object.keys(e));let o={};for(let r of n){let n=t(e[r],r);Qv.und(n)||(o[r]=n)}return o},Uy=["config","onProps","onStart","onChange","onPause","onResume","onRest"],Gy={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 $y(e){let t=function(e){let t={},n=0;if(t_(e,((e,o)=>{Gy[o]||(t[o]=e,n++)})),n)return t}(e);if(t){let n={to:t};return t_(e,((e,o)=>o in t||(n[o]=e))),n}return{...e}}function Wy(e){return e=Y_(e),Qv.arr(e)?e.map(Wy):by(e)?Yv.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function Ky(e){return Qv.fun(e)||Qv.arr(e)&&Qv.obj(e[0])}var Zy={tension:170,friction:26,mass:1,damping:1,easing:W_.linear,clamp:!1},qy=class{tension;friction;frequency;damping;mass;velocity=0;restVelocity;precision;progress;duration;easing;clamp;bounce;decay;round;constructor(){Object.assign(this,Zy)}};function Yy(e,t){if(Qv.und(t.decay)){let n=!Qv.und(t.tension)||!Qv.und(t.friction);(n||!Qv.und(t.frequency)||!Qv.und(t.damping)||!Qv.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}var Xy=[],Qy=class{changed=!1;values=Xy;toValues=null;fromValues=Xy;to;from;config=new qy;immediate=!1};function Jy(e,{key:t,props:n,defaultProps:o,state:r,actions:i}){return new Promise(((s,l)=>{let a,c,u=Oy(n.cancel??o?.cancel,t);if(u)h();else{Qv.und(n.pause)||(r.paused=Oy(n.pause,t));let e=o?.pause;!0!==e&&(e=r.paused||Oy(e,t)),a=Dy(n.delay||0,t),e?(r.resumeQueue.add(p),i.pause()):(i.resume(),p())}function d(){r.resumeQueue.add(p),r.timeouts.delete(c),c.cancel(),a=c.time-Pv.now()}function p(){a>0&&!Yv.skipAnimation?(r.delayed=!0,c=Pv.setTimeout(h,a),r.pauseQueue.add(d),r.timeouts.add(c)):h()}function h(){r.delayed&&(r.delayed=!1),r.pauseQueue.delete(d),r.timeouts.delete(c),e<=(r.cancelId||0)&&(u=!0);try{i.start({...n,callId:e,cancel:u},s)}catch(e){l(e)}}}))}var ex=(e,t)=>1==t.length?t[0]:t.some((e=>e.cancelled))?ox(e.get()):t.every((e=>e.noop))?tx(e.get()):nx(e.get(),t.every((e=>e.finished))),tx=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),nx=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),ox=e=>({value:e,cancelled:!0,finished:!1});function rx(e,t,n,o){let{callId:r,parentId:i,onRest:s}=t,{asyncTo:l,promise:a}=n;return i||e!==l||t.reset?n.promise=(async()=>{n.asyncId=r,n.asyncTo=e;let c,u,d,p=Hy(t,((e,t)=>"onRest"===t?void 0:e)),h=new Promise(((e,t)=>(c=e,u=t))),g=e=>{let t=r<=(n.cancelId||0)&&ox(o)||r!==n.asyncId&&nx(o,!1);if(t)throw e.result=t,u(e),e},m=(e,t)=>{let i=new sx,s=new lx;return(async()=>{if(Yv.skipAnimation)throw ix(n),s.result=nx(o,!1),u(s),s;g(i);let l=Qv.obj(e)?{...e}:{...t,to:e};l.parentId=r,t_(p,((e,t)=>{Qv.und(l[t])&&(l[t]=e)}));let a=await o.start(l);return g(i),n.paused&&await new Promise((e=>{n.resumeQueue.add(e)})),a})()};if(Yv.skipAnimation)return ix(n),nx(o,!1);try{let t;t=Qv.arr(e)?(async e=>{for(let t of e)await m(t)})(e):Promise.resolve(e(m,o.stop.bind(o))),await Promise.all([t.then(c),h]),d=nx(o.get(),!0,!1)}catch(e){if(e instanceof sx)d=e.result;else{if(!(e instanceof lx))throw e;d=e.result}}finally{r==n.asyncId&&(n.asyncId=i,n.asyncTo=i?l:void 0,n.promise=i?a:void 0)}return Qv.fun(s)&&Pv.batchedUpdates((()=>{s(d,o,o.item)})),d})():a}function ix(e,t){o_(e.timeouts,(e=>e.cancel())),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var sx=class extends Error{result;constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},lx=class extends Error{result;constructor(){super("SkipAnimationSignal")}},ax=e=>e instanceof ux,cx=1,ux=class extends J_{id=cx++;_priority=0;get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){let e=xy(this);return e&&e.getValue()}to(...e){return Yv.to(this,e)}interpolate(...e){return fy(`${gy}The "interpolate" function is deprecated in v9 (use "to" instead)`),Yv.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){Q_(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||f_.sort(this),Q_(this,{type:"priority",parent:this,priority:e})}},dx=Symbol.for("SpringPhase"),px=e=>(1&e[dx])>0,hx=e=>(2&e[dx])>0,gx=e=>(4&e[dx])>0,mx=(e,t)=>t?e[dx]|=3:e[dx]&=-3,fx=(e,t)=>t?e[dx]|=4:e[dx]&=-5,bx=class extends ux{key;animation=new Qy;queue;defaultProps={};_state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set};_pendingCalls=new Set;_lastCallId=0;_lastToId=0;_memoizedDuration=0;constructor(e,t){if(super(),!Qv.und(e)||!Qv.und(t)){let n=Qv.obj(e)?{...e}:{...t,from:e};Qv.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(hx(this)||this._state.asyncTo)||gx(this)}get goal(){return Y_(this.animation.to)}get velocity(){let e=xy(this);return e instanceof By?e.lastVelocity||0:e.getPayload().map((e=>e.lastVelocity||0))}get hasAnimated(){return px(this)}get isAnimating(){return hx(this)}get isPaused(){return gx(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1,o=this.animation,{config:r,toValues:i}=o,s=wy(o.to);!s&&q_(o.to)&&(i=n_(Y_(o.to))),o.values.forEach(((l,a)=>{if(l.done)return;let c=l.constructor==Iy?1:s?s[a].lastPosition:i[a],u=o.immediate,d=c;if(!u){if(d=l.lastPosition,r.tension<=0)return void(l.done=!0);let t,n=l.elapsedTime+=e,i=o.fromValues[a],s=null!=l.v0?l.v0:l.v0=Qv.arr(r.velocity)?r.velocity[a]:r.velocity,p=r.precision||(i==c?.005:Math.min(1,.001*Math.abs(c-i)));if(Qv.und(r.duration))if(r.decay){let e=!0===r.decay?.998:r.decay,o=Math.exp(-(1-e)*n);d=i+s/(1-e)*(1-o),u=Math.abs(l.lastPosition-d)<=p,t=s*o}else{t=null==l.lastVelocity?s:l.lastVelocity;let n,o=r.restVelocity||p/10,a=r.clamp?0:r.bounce,h=!Qv.und(a),g=i==c?l.v0>0:i<c,m=!1,f=1,b=Math.ceil(e/f);for(let e=0;e<b&&(n=Math.abs(t)>o,n||(u=Math.abs(c-d)<=p,!u));++e){h&&(m=d==c||d>c==g,m&&(t=-t*a,d=c)),t+=(1e-6*-r.tension*(d-c)+.001*-r.friction*t)/r.mass*f,d+=t*f}}else{let o=1;r.duration>0&&(this._memoizedDuration!==r.duration&&(this._memoizedDuration=r.duration,l.durationProgress>0&&(l.elapsedTime=r.duration*l.durationProgress,n=l.elapsedTime+=e)),o=(r.progress||0)+n/this._memoizedDuration,o=o>1?1:o<0?0:o,l.durationProgress=o),d=i+r.easing(o)*(c-i),t=(d-l.lastPosition)/e,u=1==o}l.lastVelocity=t,Number.isNaN(d)&&(console.warn("Got NaN while animating:",this),u=!0)}s&&!s[a].done&&(u=!1),u?l.done=!0:t=!1,l.setValue(d,r.round)&&(n=!0)}));let l=xy(this),a=l.getValue();if(t){let e=Y_(o.to);a===e&&!n||r.decay?n&&r.decay&&this._onChange(a):(l.setValue(e),this._onChange(e)),this._stop()}else n&&this._onChange(a)}set(e){return Pv.batchedUpdates((()=>{this._stop(),this._focus(e),this._set(e)})),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(hx(this)){let{to:e,config:t}=this.animation;Pv.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 Qv.und(e)?(n=this.queue||[],this.queue=[]):n=[Qv.obj(e)?e:{...t,to:e}],Promise.all(n.map((e=>this._update(e)))).then((e=>ex(this,e)))}stop(e){let{to:t}=this.animation;return this._focus(this.get()),ix(this._state,e&&this._lastCallId),Pv.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){let t=this.key||"",{to:n,from:o}=e;n=Qv.obj(n)?n[t]:n,(null==n||Ky(n))&&(n=void 0),o=Qv.obj(o)?o[t]:o,null==o&&(o=void 0);let r={to:n,from:o};return px(this)||(e.reverse&&([n,o]=[o,n]),o=Y_(o),Qv.und(o)?xy(this)||this._set(n):this._set(o)),r}_update({...e},t){let{key:n,defaultProps:o}=this;e.default&&Object.assign(o,Hy(e,((e,t)=>/^on/.test(t)?zy(e,n):e))),Sx(this,e,"onProps"),wx(this,"onProps",e,this);let r=this._prepareNode(e);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?");let i=this._state;return Jy(++this._lastCallId,{key:n,props:e,defaultProps:o,state:i,actions:{pause:()=>{gx(this)||(fx(this,!0),s_(i.pauseQueue),wx(this,"onPause",nx(this,kx(this,this.animation.to)),this))},resume:()=>{gx(this)&&(fx(this,!1),hx(this)&&this._resume(),s_(i.resumeQueue),wx(this,"onResume",nx(this,kx(this,this.animation.to)),this))},start:this._merge.bind(this,r)}}).then((n=>{if(e.loop&&n.finished&&(!t||!n.noop)){let t=vx(e);if(t)return this._update(t,!0)}return n}))}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(ox(this));let o=!Qv.und(e.to),r=!Qv.und(e.from);if(o||r){if(!(t.callId>this._lastToId))return n(ox(this));this._lastToId=t.callId}let{key:i,defaultProps:s,animation:l}=this,{to:a,from:c}=l,{to:u=a,from:d=c}=e;r&&!o&&(!t.default||Qv.und(u))&&(u=d),t.reverse&&([u,d]=[d,u]);let p=!Jv(d,c);p&&(l.from=d),d=Y_(d);let h=!Jv(u,a);h&&this._focus(u);let g=Ky(t.to),{config:m}=l,{decay:f,velocity:b}=m;(o||r)&&(m.velocity=0),t.config&&!g&&function(e,t,n){n&&(Yy(n={...n},t),t={...n,...t}),Yy(e,t),Object.assign(e,t);for(let t in Zy)null==e[t]&&(e[t]=Zy[t]);let{mass:o,frequency:r,damping:i}=e;Qv.und(r)||(r<.01&&(r=.01),i<0&&(i=0),e.tension=Math.pow(2*Math.PI/r,2)*o,e.friction=4*Math.PI*i*o/r)}(m,Dy(t.config,i),t.config!==s.config?Dy(s.config,i):void 0);let k=xy(this);if(!k||Qv.und(u))return n(nx(this,!0));let v=Qv.und(t.reset)?r&&!t.default:!Qv.und(d)&&Oy(t.reset,i),_=v?d:this.get(),y=Wy(u),x=Qv.num(y)||Qv.arr(y)||by(y),S=!g&&(!x||Oy(s.immediate||t.immediate,i));if(h){let e=Py(u);if(e!==k.constructor){if(!S)throw Error(`Cannot animate between ${k.constructor.name} and ${e.name}, as the "to" prop suggests`);k=this._set(y)}}let w=k.constructor,C=q_(u),B=!1;if(!C){let e=v||!px(this)&&p;(h||e)&&(B=Jv(Wy(_),y),C=!B),(!Jv(l.immediate,S)&&!S||!Jv(m.decay,f)||!Jv(m.velocity,b))&&(C=!0)}if(B&&hx(this)&&(l.changed&&!v?C=!0:C||this._stop(a)),!g&&((C||q_(a))&&(l.values=k.getPayload(),l.toValues=q_(u)?null:w==Iy?[1]:n_(y)),l.immediate!=S&&(l.immediate=S,!S&&!v&&this._set(a)),C)){let{onRest:e}=l;e_(xx,(e=>Sx(this,t,e)));let o=nx(this,kx(this,a));s_(this._pendingCalls,o),this._pendingCalls.add(n),l.changed&&Pv.batchedUpdates((()=>{l.changed=!v,e?.(o,this),v?Dy(s.onRest,o):l.onStart?.(o,this)}))}v&&this._set(_),g?n(rx(t.to,t,this._state,this)):C?this._start():hx(this)&&!h?this._pendingCalls.add(n):n(tx(_))}_focus(e){let t=this.animation;e!==t.to&&(X_(this)&&this._detach(),t.to=e,X_(this)&&this._attach())}_attach(){let e=0,{to:t}=this.animation;q_(t)&&(ty(t,this),ax(t)&&(e=t.priority+1)),this.priority=e}_detach(){let{to:e}=this.animation;q_(e)&&ny(e,this)}_set(e,t=!0){let n=Y_(e);if(!Qv.und(n)){let e=xy(this);if(!e||!Jv(n,e.getValue())){let o=Py(n);e&&e.constructor==o?e.setValue(n):Sy(this,o.create(n)),e&&Pv.batchedUpdates((()=>{this._onChange(n,t)}))}}return xy(this)}_onStart(){let e=this.animation;e.changed||(e.changed=!0,wx(this,"onStart",nx(this,kx(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),Dy(this.animation.onChange,e,this)),Dy(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){let e=this.animation;xy(this).reset(Y_(e.to)),e.immediate||(e.fromValues=e.values.map((e=>e.lastPosition))),hx(this)||(mx(this,!0),gx(this)||this._resume())}_resume(){Yv.skipAnimation?this.finish():f_.start(this)}_stop(e,t){if(hx(this)){mx(this,!1);let n=this.animation;e_(n.values,(e=>{e.done=!0})),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),Q_(this,{type:"idle",parent:this});let o=t?ox(this.get()):nx(this.get(),kx(this,e??n.to));s_(this._pendingCalls,o),n.changed&&(n.changed=!1,wx(this,"onRest",o,this))}}};function kx(e,t){let n=Wy(t);return Jv(Wy(e.get()),n)}function vx(e,t=e.loop,n=e.to){let o=Dy(t);if(o){let r=!0!==o&&$y(o),i=(r||e).reverse,s=!r||r.reset;return _x({...e,loop:t,default:!1,pause:void 0,to:!i||Ky(n)?n:void 0,from:s?e.from:void 0,reset:s,...r})}}function _x(e){let{to:t,from:n}=e=$y(e),o=new Set;return Qv.obj(t)&&yx(t,o),Qv.obj(n)&&yx(n,o),e.keys=o.size?Array.from(o):null,e}function yx(e,t){t_(e,((e,n)=>null!=e&&t.add(n)))}var xx=["onStart","onRest","onChange","onPause","onResume"];function Sx(e,t,n){e.animation[n]=t[n]!==Vy(t,n)?zy(t[n],e.key):void 0}function wx(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var Cx=["onStart","onChange","onRest"],Bx=1,Ix=class{id=Bx++;springs={};queue=[];ref;_flush;_initialProps;_lastAsyncId=0;_active=new Set;_changed=new Set;_started=!1;_item;_state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set};_events={onStart:new Map,onChange:new Map,onRest:new Map};constructor(e,t){this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every((e=>e.idle&&!e.isDelayed&&!e.isPaused))}get item(){return this._item}set item(e){this._item=e}get(){let e={};return this.each(((t,n)=>e[n]=t.get())),e}set(e){for(let t in e){let n=e[t];Qv.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(_x(e)),this}start(e){let{queue:t}=this;return e?t=n_(e).map(_x):this.queue=[],this._flush?this._flush(this,t):(Px(this,t),jx(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){let n=this.springs;e_(n_(t),(t=>n[t].stop(!!e)))}else ix(this._state,this._lastAsyncId),this.each((t=>t.stop(!!e)));return this}pause(e){if(Qv.und(e))this.start({pause:!0});else{let t=this.springs;e_(n_(e),(e=>t[e].pause()))}return this}resume(e){if(Qv.und(e))this.start({pause:!1});else{let t=this.springs;e_(n_(e),(e=>t[e].resume()))}return this}each(e){t_(this.springs,e)}_onFrame(){let{onStart:e,onChange:t,onRest:n}=this._events,o=this._active.size>0,r=this._changed.size>0;(o&&!this._started||r&&!this._started)&&(this._started=!0,o_(e,(([e,t])=>{t.value=this.get(),e(t,this,this._item)})));let i=!o&&this._started,s=r||i&&n.size?this.get():null;r&&t.size&&o_(t,(([e,t])=>{t.value=s,e(t,this,this._item)})),i&&(this._started=!1,o_(n,(([e,t])=>{t.value=s,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)}Pv.onFrame(this._onFrame)}};function jx(e,t){return Promise.all(t.map((t=>Ex(e,t)))).then((t=>ex(e,t)))}async function Ex(e,t,n){let{keys:o,to:r,from:i,loop:s,onRest:l,onResolve:a}=t,c=Qv.obj(t.default)&&t.default;s&&(t.loop=!1),!1===r&&(t.to=null),!1===i&&(t.from=null);let u=Qv.arr(r)||Qv.fun(r)?r:void 0;u?(t.to=void 0,t.onRest=void 0,c&&(c.onRest=void 0)):e_(Cx,(n=>{let o=t[n];if(Qv.fun(o)){let r=e._events[n];t[n]=({finished:e,cancelled:t})=>{let n=r.get(o);n?(e||(n.finished=!1),t&&(n.cancelled=!0)):r.set(o,{value:null,finished:e||!1,cancelled:t||!1})},c&&(c[n]=t[n])}}));let d=e._state;t.pause===!d.paused?(d.paused=t.pause,s_(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);let p=(o||Object.keys(e.springs)).map((n=>e.springs[n].start(t))),h=!0===t.cancel||!0===Vy(t,"cancel");(u||h&&d.asyncId)&&p.push(Jy(++e._lastAsyncId,{props:t,state:d,actions:{pause:Xv,resume:Xv,start(t,n){h?(ix(d,e._lastAsyncId),n(ox(e))):(t.onRest=l,n(rx(u,t,d,e)))}}})),d.paused&&await new Promise((e=>{d.resumeQueue.add(e)}));let g=ex(e,await Promise.all(p));if(s&&g.finished&&(!n||!g.noop)){let n=vx(t,s,r);if(n)return Px(e,[n]),Ex(e,n,!0)}return a&&Pv.batchedUpdates((()=>a(g,e,e.item))),g}function Tx(e,t){let n=new bx;return n.key=e,t&&ty(n,t),n}function Mx(e,t,n){t.keys&&e_(t.keys,(o=>{(e[o]||(e[o]=n(o)))._prepareNode(t)}))}function Px(e,t){e_(t,(t=>{Mx(e.springs,t,(t=>Tx(t,e)))}))}var Rx=({children:e,...t})=>{let n=(0,ic.useContext)(Ax),o=t.pause||!!n.pause,r=t.immediate||!!n.immediate;t=function(e,t){let[n]=(0,ic.useState)((()=>({inputs:t,result:e()}))),o=(0,ic.useRef)(),r=o.current,i=r;return i?Boolean(t&&i.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,i.inputs))||(i={inputs:t,result:e()}):i=n,(0,ic.useEffect)((()=>{o.current=i,r==n&&(n.inputs=n.result=void 0)}),[i]),i.result}((()=>({pause:o,immediate:r})),[o,r]);let{Provider:i}=Ax;return ic.createElement(i,{value:t},e)},Ax=function(e,t){return Object.assign(e,ic.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}(Rx,{});Rx.Provider=Ax.Provider,Rx.Consumer=Ax.Consumer;var Nx=class extends ux{constructor(e,t){super(),this.source=e,this.calc=z_(...t);let n=this._get(),o=Py(n);Sy(this,o.create(n))}key;idle=!0;calc;_active=new Set;advance(e){let t=this._get();Jv(t,this.get())||(xy(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&Dx(this._active)&&Ox(this)}_get(){let e=Qv.arr(this.source)?this.source.map(Y_):n_(Y_(this.source));return this.calc(...e)}_start(){this.idle&&!Dx(this._active)&&(this.idle=!1,e_(wy(this),(e=>{e.done=!1})),Yv.skipAnimation?(Pv.batchedUpdates((()=>this.advance())),Ox(this)):f_.start(this))}_attach(){let e=1;e_(n_(this.source),(t=>{q_(t)&&ty(t,this),ax(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))})),this.priority=e,this._start()}_detach(){e_(n_(this.source),(e=>{q_(e)&&ny(e,this)})),this._active.clear(),Ox(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=n_(this.source).reduce(((e,t)=>Math.max(e,(ax(t)?t.priority:0)+1)),0))}};function Lx(e){return!1!==e.idle}function Dx(e){return!e.size||Array.from(e).every(Lx)}function Ox(e){e.idle||(e.idle=!0,e_(wy(e),(e=>{e.done=!0})),Q_(e,{type:"idle",parent:e}))}Yv.assign({createStringInterpolator:hy,to:(e,t)=>new Nx(e,t)});f_.advance;const zx=window.ReactDOM;var Vx=/^--/;function Fx(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||Vx.test(e)||Ux.hasOwnProperty(e)&&Ux[e]?(""+t).trim():t+"px"}var Hx={};var Ux={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},Gx=["Webkit","Ms","Moz","O"];Ux=Object.keys(Ux).reduce(((e,t)=>(Gx.forEach((n=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(n,t)]=e[t])),e)),Ux);var $x=/^(matrix|translate|scale|rotate|skew)/,Wx=/^(translate)/,Kx=/^(rotate|skew)/,Zx=(e,t)=>Qv.num(e)&&0!==e?e+t:e,qx=(e,t)=>Qv.arr(e)?e.every((e=>qx(e,t))):Qv.num(e)?e===t:parseFloat(e)===t,Yx=class extends Ey{constructor({x:e,y:t,z:n,...o}){let r=[],i=[];(e||t||n)&&(r.push([e||0,t||0,n||0]),i.push((e=>[`translate3d(${e.map((e=>Zx(e,"px"))).join(",")})`,qx(e,0)]))),t_(o,((e,t)=>{if("transform"===t)r.push([e||""]),i.push((e=>[e,""===e]));else if($x.test(t)){if(delete o[t],Qv.und(e))return;let n=Wx.test(t)?"px":Kx.test(t)?"deg":"";r.push(n_(e)),i.push("rotate3d"===t?([e,t,o,r])=>[`rotate3d(${e},${t},${o},${Zx(r,n)})`,qx(r,0)]:e=>[`${t}(${e.map((e=>Zx(e,n))).join(",")})`,qx(e,t.startsWith("scale")?1:0)])}})),r.length&&(o.transform=new Xx(r,i)),super(o)}},Xx=class extends J_{constructor(e,t){super(),this.inputs=e,this.transforms=t}_value=null;get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return e_(this.inputs,((n,o)=>{let r=Y_(n[0]),[i,s]=this.transforms[o](Qv.arr(r)?r:n.map(Y_));e+=" "+i,t=t&&s})),t?"none":e}observerAdded(e){1==e&&e_(this.inputs,(e=>e_(e,(e=>q_(e)&&ty(e,this)))))}observerRemoved(e){0==e&&e_(this.inputs,(e=>e_(e,(e=>q_(e)&&ny(e,this)))))}eventObserved(e){"change"==e.type&&(this._value=null),Q_(this,e)}};Yv.assign({batchedUpdates:zx.unstable_batchedUpdates,createStringInterpolator:hy,colors:{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}});var Qx=((e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=e=>new Ey(e),getComponentProps:o=e=>e}={})=>{let r={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:o},i=e=>{let t=Ly(e)||"Anonymous";return(e=Qv.str(e)?i[e]||(i[e]=Ry(e,r)):e[Ny]||(e[Ny]=Ry(e,r))).displayName=`Animated(${t})`,e};return t_(e,((t,n)=>{Qv.arr(e)&&(n=Ly(t)),i[n]=i(t)})),{animated:i}})(["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;let n="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,{style:o,children:r,scrollTop:i,scrollLeft:s,viewBox:l,...a}=t,c=Object.values(a),u=Object.keys(a).map((t=>n||e.hasAttribute(t)?t:Hx[t]||(Hx[t]=t.replace(/([A-Z])/g,(e=>"-"+e.toLowerCase())))));void 0!==r&&(e.textContent=r);for(let t in o)if(o.hasOwnProperty(t)){let n=Fx(t,o[t]);Vx.test(t)?e.style.setProperty(t,n):e.style[t]=n}u.forEach(((t,n)=>{e.setAttribute(t,c[n])})),void 0!==i&&(e.scrollTop=i),void 0!==s&&(e.scrollLeft=s),void 0!==l&&e.setAttribute("viewBox",l)},createAnimatedStyle:e=>new Yx(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),Jx=Qx.animated;function eS(e){return{top:e.offsetTop,left:e.offsetLeft}}var tS=function({triggerAnimationOnChange:e,clientId:t}){const n=(0,h.useRef)(),{isTyping:o,getGlobalBlockCount:r,isBlockSelected:i,isFirstMultiSelectedBlock:s,isBlockMultiSelected:l,isAncestorMultiSelected:a,isDraggingBlocks:c}=(0,g.useSelect)(ji),{previous:u,prevRect:d}=(0,h.useMemo)((()=>({previous:n.current&&eS(n.current),prevRect:n.current&&n.current.getBoundingClientRect()})),[e]);return(0,h.useLayoutEffect)((()=>{if(!u||!n.current)return;const e=(0,Ga.getScrollContainer)(n.current),p=i(t),h=p||s(t),g=c();function m(){if(!g&&h&&d){const t=n.current.getBoundingClientRect().top-d.top;t&&(e.scrollTop+=t)}}if(window.matchMedia("(prefers-reduced-motion: reduce)").matches||o()||r()>200)return void m();const f=p||l(t)||a(t);if(f&&g)return;const b=f?"1":"",k=new Ix({x:0,y:0,config:{mass:5,tension:2e3,friction:200},onChange({value:e}){if(!n.current)return;let{x:t,y:o}=e;t=Math.round(t),o=Math.round(o);const r=0===t&&0===o;n.current.style.transformOrigin="center center",n.current.style.transform=r?null:`translate3d(${t}px,${o}px,0)`,n.current.style.zIndex=b,m()}});n.current.style.transform=void 0;const v=eS(n.current),_=Math.round(u.left-v.left),y=Math.round(u.top-v.top);return k.start({x:0,y:0,from:{x:_,y}}),()=>{k.stop(),k.set({x:0,y:0})}}),[u,d,t,o,r,i,s,l,a,c]),n};function nS({clientId:e,initialPosition:t}){const n=(0,h.useRef)(),{isBlockSelected:o,isMultiSelecting:r,isZoomOut:i}=G((0,g.useSelect)(ji));return(0,h.useEffect)((()=>{if(!o(e)||r()||i())return;if(null==t)return;if(!n.current)return;const{ownerDocument:s}=n.current;if(Wm(n.current,s.activeElement))return;const l=Ga.focus.tabbable.find(n.current).filter((e=>(0,Ga.isTextField)(e))),a=-1===t,c=l[a?l.length-1:0]||n.current;if(Wm(n.current,c)){if(!n.current.getAttribute("contenteditable")){const e=Ga.focus.tabbable.findNext(n.current);if(e&&Wm(n.current,e)&&(0,Ga.isFormElement)(e))return void e.focus()}(0,Ga.placeCaretAtHorizontalEdge)(c,a)}else n.current.focus()}),[t,e]),n}function oS(e){e.defaultPrevented||(e.preventDefault(),e.currentTarget.classList.toggle("is-hovered","mouseover"===e.type))}function rS(e){const{isBlockSelected:t}=(0,g.useSelect)(ji),{selectBlock:n,selectionChange:o}=(0,g.useDispatch)(ji);return(0,m.useRefEffect)((r=>{function i(i){r.parentElement.closest('[contenteditable="true"]')||(t(e)?i.target.isContentEditable||o(e):Wm(r,i.target)&&n(e))}return r.addEventListener("focusin",i),()=>{r.removeEventListener("focusin",i)}}),[t,n])}function iS(e){return!e||"transparent"===e||"rgba(0, 0, 0, 0)"===e}function sS({clientId:e,isSelected:t}){const{getBlockRootClientId:n,isZoomOut:o,hasMultiSelection:r}=G((0,g.useSelect)(ji)),{insertAfterBlock:i,removeBlock:s,resetZoomLevel:l,startDraggingBlocks:a,stopDraggingBlocks:c}=G((0,g.useDispatch)(ji));return(0,m.useRefEffect)((u=>{if(t)return u.addEventListener("keydown",d),u.addEventListener("dragstart",p),()=>{u.removeEventListener("keydown",d),u.removeEventListener("dragstart",p)};function d(t){const{keyCode:n,target:r}=t;n!==Wa.ENTER&&n!==Wa.BACKSPACE&&n!==Wa.DELETE||r!==u||(0,Ga.isTextField)(r)||(t.preventDefault(),n===Wa.ENTER&&o()?l():n===Wa.ENTER?i(e):s(e))}function p(t){if(u!==t.target||u.isContentEditable||u.ownerDocument.activeElement!==u||r())return void t.preventDefault();const o=JSON.stringify({type:"block",srcClientIds:[e],srcRootClientId:n(e)});t.dataTransfer.effectAllowed="move",t.dataTransfer.clearData(),t.dataTransfer.setData("wp-blocks",o);const{ownerDocument:i}=u,{defaultView:s}=i;s.getSelection().removeAllRanges();const l=i.createElement("div");l.style.width="1px",l.style.height="1px",l.style.position="fixed",l.style.visibility="hidden",i.body.appendChild(l),t.dataTransfer.setDragImage(l,0,0);const d=u.getBoundingClientRect(),p=u.cloneNode(!0);p.style.visibility="hidden",p.style.display="none";const h=u.id;u.id=null;let g=1;{let e=u;for(;e=e.parentElement;){const{scale:t}=s.getComputedStyle(e);if(t&&"none"!==t){g=parseFloat(t);break}}}const m=1/g;u.after(p);const f={};for(const e of["transform","transformOrigin","transition","zIndex","position","top","left","pointerEvents","opacity","backgroundColor"])f[e]=u.style[e];const b=s.scrollY,k=s.scrollX,v=t.clientX,_=t.clientY;u.style.position="relative",u.style.top="0px",u.style.left="0px";const y=t.clientX-d.left,x=t.clientY-d.top,S=d.height>200?200/d.height:1;if(u.style.zIndex="1000",u.style.transformOrigin=`${y*m}px ${x*m}px`,u.style.transition="transform 0.2s ease-out",u.style.transform=`scale(${S})`,u.style.opacity="0.9",iS(s.getComputedStyle(u).backgroundColor)){let e="transparent",t=u;for(;t=t.parentElement;){const{backgroundColor:n}=s.getComputedStyle(t);if(!iS(n)){e=n;break}}u.style.backgroundColor=e}let w=!1;function C(e){w||(w=!0,u.style.pointerEvents="none");const t=s.scrollY,n=s.scrollX;u.style.top=(e.clientY-_+t-b)*m+"px",u.style.left=(e.clientX-v+n-k)*m+"px"}function B(){i.removeEventListener("dragover",C),i.removeEventListener("dragend",B),i.removeEventListener("drop",B),i.removeEventListener("scroll",C);for(const[e,t]of Object.entries(f))u.style[e]=t;p.remove(),u.id=h,l.remove(),c(),document.body.classList.remove("is-dragging-components-draggable"),i.documentElement.classList.remove("is-dragging")}i.addEventListener("dragover",C),i.addEventListener("dragend",B),i.addEventListener("drop",B),i.addEventListener("scroll",C),a([e]),document.body.classList.add("is-dragging-components-draggable"),i.documentElement.classList.add("is-dragging")}}),[e,t,n,i,s,o,l,r,a,c])}function lS(){const e=(0,h.useContext)(sw);return(0,m.useRefEffect)((t=>{if(e)return e.observe(t),()=>{e.unobserve(t)}}),[e])}function aS({isSelected:e}){const t=(0,m.useReducedMotion)();return(0,m.useRefEffect)((n=>{if(e){const{ownerDocument:e}=n,{defaultView:o}=e;if(!o.IntersectionObserver)return;const r=new o.IntersectionObserver((e=>{e[0].isIntersecting||n.scrollIntoView({behavior:t?"instant":"smooth"}),r.disconnect()}));return r.observe(n),()=>{r.disconnect()}}}),[e])}function cS({clientId:e="",isEnabled:t=!0}={}){const{getEnabledClientIdsTree:n}=G((0,g.useSelect)(ji));return(0,m.useRefEffect)((o=>{if(!t)return;const r=t=>{(t.target===o||t.target.classList.contains("is-root-container"))&&(t.defaultPrevented||(t.preventDefault(),n(e).forEach((({clientId:e})=>{const t=o.querySelector(`[data-block="${e}"]`);t&&(t.classList.remove("has-editable-outline"),t.offsetWidth,t.classList.add("has-editable-outline"))}))))};return o.addEventListener("click",r),()=>o.removeEventListener("click",r)}),[t])}const uS=new Map;function dS(e){const t=e.getAttribute("data-draggable");t&&(e.removeAttribute("data-draggable"),"true"!==t||e.getAttribute("draggable")||e.setAttribute("draggable","true"))}function pS(e){const{target:t}=e,{ownerDocument:n,isContentEditable:o,tagName:r}=t,i=["INPUT","TEXTAREA"].includes(r),s=uS.get(n);if(o||i)for(const e of s)"true"===e.getAttribute("draggable")&&e.contains(t)&&(e.removeAttribute("draggable"),e.setAttribute("data-draggable","true"));else for(const e of s)dS(e)}function hS(){return(0,m.useRefEffect)((e=>(function(e,t){let n=uS.get(e);n||(n=new Set,uS.set(e,n),e.addEventListener("pointerdown",pS)),n.add(t)}(e.ownerDocument,e),()=>{!function(e,t){const n=uS.get(e);n&&(n.delete(t),dS(t),0===n.size&&(uS.delete(e),e.removeEventListener("pointerdown",pS)))}(e.ownerDocument,e)})),[])}function gS(e={},{__unstableIsHtml:t}={}){const{clientId:n,className:o,wrapperProps:r={},isAligned:i,index:s,mode:l,name:a,blockApiVersion:c,blockTitle:u,isSelected:d,isSubtreeDisabled:p,hasOverlay:g,initialPosition:f,blockEditingMode:b,isHighlighted:k,isMultiSelected:v,isPartiallySelected:y,isReusable:x,isDragging:S,hasChildSelected:w,isEditingDisabled:B,hasEditableOutline:I,isTemporarilyEditingAsBlocks:j,defaultClassName:E,isSectionBlock:M,canMove:P,isBlockHidden:R}=(0,h.useContext)(pv),A=(0,T.sprintf)((0,T.__)("Block: %s"),u),N="html"!==l||t?"":"-visual",L=hS(),D=(0,m.useMergeRefs)([e.ref,nS({clientId:n,initialPosition:f}),gh(n),rS(n),sS({clientId:n,isSelected:d}),(0,m.useRefEffect)((e=>(e.addEventListener("mouseout",oS),e.addEventListener("mouseover",oS),()=>{e.removeEventListener("mouseout",oS),e.removeEventListener("mouseover",oS),e.classList.remove("is-hovered")})),[]),lS(),tS({triggerAnimationOnChange:s,clientId:n}),(0,m.useDisabled)({isDisabled:!g}),cS({clientId:n,isEnabled:M}),aS({isSelected:d}),P?L:void 0]),O=C(),z=!!O[_]?{"--wp-admin-theme-color":"var(--wp-block-synced-color)","--wp-admin-theme-color--rgb":"var(--wp-block-synced-color--rgb)"}:{};c<2&&n===O.clientId&&js()(`Block type "${a}" must support API version 2 or higher to work correctly with "useBlockProps" method.`);let V=!1;return"-"!==r?.style?.marginTop?.charAt(0)&&"-"!==r?.style?.marginBottom?.charAt(0)&&"-"!==r?.style?.marginLeft?.charAt(0)&&"-"!==r?.style?.marginRight?.charAt(0)||(V=!0),{tabIndex:"disabled"===b?-1:0,draggable:!(!P||w)||void 0,...r,...e,ref:D,id:`block-${n}${N}`,role:"document","aria-label":A,"data-block":n,"data-type":a,"data-title":u,inert:p?"true":void 0,className:ms("block-editor-block-list__block",{"wp-block":!i,"has-block-overlay":g,"is-selected":d,"is-highlighted":k,"is-multi-selected":v,"is-partially-selected":y,"is-reusable":x,"is-dragging":S,"has-child-selected":w,"is-editing-disabled":B,"has-editable-outline":I,"has-negative-margin":V,"is-content-locked-temporarily-editing-as-blocks":j,"is-block-hidden":R},o,e.className,r.className,E),style:{...r.style,...e.style,...z}}}function mS({children:e,isHtml:t,...n}){return(0,d.jsx)("div",{...gS(n,{__unstableIsHtml:t}),children:e})}function fS({block:{__unstableBlockSource:e},mode:t,isLocked:n,canRemove:o,clientId:r,isSelected:i,isSelectionEnabled:s,className:l,__unstableLayoutClassNames:a,name:c,isValid:u,attributes:g,wrapperProps:m,setAttributes:f,onReplace:b,onRemove:k,onInsertBlocksAfter:v,onMerge:_,toggleSelection:y}){const{mayDisplayControls:x,mayDisplayParentControls:S,themeSupportsLayout:w,...C}=(0,h.useContext)(pv),B=ta()||{};let I=(0,d.jsx)(vv,{name:c,isSelected:i,attributes:g,setAttributes:f,insertBlocksAfter:n?void 0:v,onReplace:o?b:void 0,onRemove:o?k:void 0,mergeBlocks:o?_:void 0,clientId:r,isSelectionEnabled:s,toggleSelection:y,__unstableLayoutClassNames:a,__unstableParentLayout:Object.keys(B).length?B:void 0,mayDisplayControls:x,mayDisplayParentControls:S,blockEditingMode:C.blockEditingMode,isPreviewMode:C.isPreviewMode});const j=(0,p.getBlockType)(c);j?.getEditWrapperProps&&(m=function(e,t){const n={...e,...t};return e?.hasOwnProperty("className")&&t?.hasOwnProperty("className")&&(n.className=ms(e.className,t.className)),e?.hasOwnProperty("style")&&t?.hasOwnProperty("style")&&(n.style={...e.style,...t.style}),n}(m,j.getEditWrapperProps(g)));const E=m&&!!m["data-align"]&&!w,T=l?.includes("is-position-sticky");let M;if(E&&(I=(0,d.jsx)("div",{className:ms("wp-block",T&&l),"data-align":m["data-align"],children:I})),u)M="html"===t?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("div",{style:{display:"none"},children:I}),(0,d.jsx)(mS,{isHtml:!0,children:(0,d.jsx)(Tv,{clientId:r})})]}):j?.apiVersion>1?I:(0,d.jsx)(mS,{children:I});else{const t=e?(0,p.serializeRawBlock)(e):(0,p.getSaveContent)(j,g);M=(0,d.jsxs)(mS,{className:"has-warning",children:[(0,d.jsx)(wv,{clientId:r}),(0,d.jsx)(h.RawHTML,{children:(0,Ga.safeHTML)(t)})]})}const{"data-align":P,...R}=m??{},A={...R,className:ms(R.className,P&&w&&`align${P}`,!(P&&T)&&l)};return(0,d.jsx)(pv.Provider,{value:{wrapperProps:A,isAligned:E,...C},children:(0,d.jsx)(jv,{fallback:(0,d.jsx)(mS,{className:"has-warning",children:(0,d.jsx)(Bv,{})}),children:M})})}gS.save=p.__unstableGetBlockProps;const bS=(0,g.withDispatch)(((e,t,n)=>{const{updateBlockAttributes:o,insertBlocks:r,mergeBlocks:i,replaceBlocks:s,toggleSelection:l,__unstableMarkLastChangeAsPersistent:a,moveBlocksToPosition:c,removeBlock:u,selectBlock:d}=e(ji);return{setAttributes(e){const{getMultiSelectedBlockClientIds:r}=n.select(ji),i=r(),{clientId:s,attributes:l}=t,a=i.length?i:[s],c="function"==typeof e?e(l):e;o(a,c)},onInsertBlocks(e,n){const{rootClientId:o}=t;r(e,n,o)},onInsertBlocksAfter(e){const{clientId:o,rootClientId:i}=t,{getBlockIndex:s}=n.select(ji),l=s(o);r(e,l+1,i)},onMerge(e){const{clientId:o,rootClientId:l}=t,{getPreviousBlockClientId:a,getNextBlockClientId:h,getBlock:g,getBlockAttributes:m,getBlockName:f,getBlockOrder:b,getBlockIndex:k,getBlockRootClientId:v,canInsertBlockType:_}=n.select(ji);function y(){const e=g(o),t=(0,p.getDefaultBlockName)(),r=(0,p.getBlockType)(t);if(f(o)!==t){const n=(0,p.switchToBlockType)(e,t);n&&n.length&&s(o,n)}else if((0,p.isUnmodifiedDefaultBlock)(e)){const e=h(o);e&&n.batch((()=>{u(o),d(e)}))}else if(r.merge){const n=r.merge({},e.attributes);s([o],[(0,p.createBlock)(t,n)])}}function x(e,t=!0){const o=f(e),i="text"===(0,p.getBlockType)(o).category,s=v(e),l=b(e),[a]=l;1===l.length&&(0,p.isUnmodifiedBlock)(g(a))?u(e):i?n.batch((()=>{if(_(f(a),s))c([a],e,s,k(e));else{const n=(0,p.switchToBlockType)(g(a),(0,p.getDefaultBlockName)());n&&n.length&&n.every((e=>_(e.name,s)))?(r(n,k(e),s,t),u(a,!1)):y()}!b(e).length&&(0,p.isUnmodifiedBlock)(g(e))&&u(e,!1)})):y()}if(e){if(l){const e=h(l);if(e){if(f(l)!==f(e))return void i(l,e);{const t=m(l),o=m(e);if(Object.keys(t).every((e=>t[e]===o[e])))return void n.batch((()=>{c(b(e),e,l),u(e,!1)}))}}}const e=h(o);if(!e)return;b(e).length?x(e,!1):i(o,e)}else{const e=a(o);if(e)i(e,o);else if(l){const e=a(l);if(e&&f(l)===f(e)){const t=m(l),o=m(e);if(Object.keys(t).every((e=>t[e]===o[e])))return void n.batch((()=>{c(b(l),l,e),u(l,!1)}))}x(l)}else y()}},onReplace(e,n,o){e.length&&!(0,p.isUnmodifiedDefaultBlock)(e[e.length-1])&&a();const r=1===e?.length&&Array.isArray(e[0])?e[0]:e;s([t.clientId],r,n,o)},onRemove(){u(t.clientId)},toggleSelection(e){l(e)}}}));fS=(0,m.compose)(bS,(0,ws.withFilters)("editor.BlockListBlock"))(fS);var kS=(0,h.memo)((function(e){const{clientId:t,rootClientId:n}=e,o=(0,g.useSelect)((e=>{const{isBlockSelected:o,getBlockMode:r,isSelectionEnabled:i,getTemplateLock:s,isSectionBlock:l,getBlockWithoutAttributes:a,getBlockAttributes:c,canRemoveBlock:u,canMoveBlock:d,getSettings:h,getTemporarilyEditingAsBlocks:g,getBlockEditingMode:m,getBlockName:f,isFirstMultiSelectedBlock:b,getMultiSelectedBlockClientIds:k,hasSelectedInnerBlock:v,getBlocksByName:_,getBlockIndex:y,isBlockMultiSelected:x,isBlockSubtreeDisabled:S,isBlockHighlighted:w,__unstableIsFullySelected:C,__unstableSelectionHasUnmergeableBlock:B,isBlockBeingDragged:I,isDragging:j,__unstableHasActiveBlockOverlayActive:E,getSelectedBlocksInitialCaretPosition:T}=G(e(ji)),M=a(t);if(!M)return;const{hasBlockSupport:P,getActiveBlockVariation:R}=e(p.store),A=c(t),{name:N,isValid:L}=M,D=(0,p.getBlockType)(N),{supportsLayout:O,isPreviewMode:z,__experimentalBlockBindingsSupportedAttributes:V}=h(),F=V?.[N],H=D?.apiVersion>1,U={isPreviewMode:z,blockWithoutAttributes:M,name:N,attributes:A,isValid:L,themeSupportsLayout:O,index:y(t),isReusable:(0,p.isReusableBlock)(D),className:H?A.className:void 0,defaultClassName:H?(0,p.getBlockDefaultClassName)(N):void 0,blockTitle:D?.title,isBlockHidden:!1===A?.metadata?.blockVisibility,bindableAttributes:F};if(z)return U;const{isBlockHidden:$}=G(e(ji)),W=o(t),K=u(t),Z=d(t),q=R(N,A),Y=x(t),X=v(t,!0),Q=m(t),J=(0,p.hasBlockSupport)(N,"multiple",!0)?[]:_(N),ee=J.length&&J[0]!==t;return{...U,mode:r(t),isSelectionEnabled:i(),isLocked:!!s(n),isSectionBlock:l(t),canRemove:K,canMove:Z,isSelected:W,isTemporarilyEditingAsBlocks:g()===t,blockEditingMode:Q,mayDisplayControls:W||b(t)&&k().every((e=>f(e)===N)),mayDisplayParentControls:P(f(t),"__experimentalExposeControlsToChildren",!1)&&v(t),blockApiVersion:D?.apiVersion||1,blockTitle:q?.title||D?.title,isSubtreeDisabled:"disabled"===Q&&S(t),hasOverlay:E(t)&&!j(),initialPosition:W?T():void 0,isHighlighted:w(t),isMultiSelected:Y,isPartiallySelected:Y&&!C()&&!B(),isDragging:I(t),hasChildSelected:X,isEditingDisabled:"disabled"===Q,hasEditableOutline:"disabled"!==Q&&"disabled"===m(n),originalBlockClientId:!!ee&&J[0],isBlockHidden:$(t)}}),[t,n]),{isPreviewMode:r,mode:i="visual",isSelectionEnabled:s=!1,isLocked:l=!1,canRemove:a=!1,canMove:c=!1,blockWithoutAttributes:u,name:m,attributes:f,isValid:b,isSelected:k=!1,themeSupportsLayout:v,isTemporarilyEditingAsBlocks:_,blockEditingMode:y,mayDisplayControls:x,mayDisplayParentControls:S,index:w,blockApiVersion:C,blockTitle:B,isSubtreeDisabled:I,hasOverlay:j,initialPosition:E,isHighlighted:T,isMultiSelected:M,isPartiallySelected:P,isReusable:R,isDragging:A,hasChildSelected:N,isSectionBlock:L,isEditingDisabled:D,hasEditableOutline:O,className:z,defaultClassName:V,originalBlockClientId:F,isBlockHidden:H,bindableAttributes:U}=o,$=(0,h.useMemo)((()=>({...u,attributes:f})),[u,f]);if(!o)return null;const W={isPreviewMode:r,clientId:t,className:z,index:w,mode:i,name:m,blockApiVersion:C,blockTitle:B,isSelected:k,isSubtreeDisabled:I,hasOverlay:j,initialPosition:E,blockEditingMode:y,isHighlighted:T,isMultiSelected:M,isPartiallySelected:P,isReusable:R,isDragging:A,hasChildSelected:N,isSectionBlock:L,isEditingDisabled:D,hasEditableOutline:O,isTemporarilyEditingAsBlocks:_,defaultClassName:V,mayDisplayControls:x,mayDisplayParentControls:S,originalBlockClientId:F,themeSupportsLayout:v,canMove:c,isBlockHidden:H,bindableAttributes:U};return!H||k||M||N?(0,d.jsx)(pv.Provider,{value:W,children:(0,d.jsx)(fS,{...e,mode:i,isSelectionEnabled:s,isLocked:l,canRemove:a,canMove:c,block:$,name:m,attributes:f,isValid:b,isSelected:k})}):null}));const vS=window.wp.htmlEntities,_S="\ufeff";function yS({rootClientId:e}){const{showPrompt:t,isLocked:n,placeholder:o,isManualGrid:r}=(0,g.useSelect)((t=>{const{getBlockCount:n,getSettings:o,getTemplateLock:r,getBlockAttributes:i}=t(ji),s=!n(e),{bodyPlaceholder:l}=o();return{showPrompt:s,isLocked:!!r(e),placeholder:l,isManualGrid:i(e)?.layout?.isManualPlacement}}),[e]),{insertDefaultBlock:i,startTyping:s}=(0,g.useDispatch)(ji);if(n||r)return null;const l=(0,vS.decodeEntities)(o)||(0,T.__)("Type / to choose a block"),a=()=>{i(void 0,e),s()};return(0,d.jsxs)("div",{"data-root-client-id":e||"",className:ms("block-editor-default-block-appender",{"has-visible-prompt":t}),children:[(0,d.jsx)("p",{tabIndex:"0",role:"button","aria-label":(0,T.__)("Add default block"),className:"block-editor-default-block-appender__content",onKeyDown:e=>{Wa.ENTER!==e.keyCode&&Wa.SPACE!==e.keyCode||a()},onClick:()=>a(),onFocus:()=>{t&&a()},children:t?l:_S}),(0,d.jsx)(lI,{rootClientId:e,position:"bottom right",isAppender:!0,__experimentalIsQuick:!0})]})}function xS({rootClientId:e}){return(0,g.useSelect)((t=>t(ji).canInsertBlockType((0,p.getDefaultBlockName)(),e)))?(0,d.jsx)(yS,{rootClientId:e}):(0,d.jsx)(uI,{rootClientId:e,className:"block-list-appender__toggle"})}function SS({rootClientId:e,CustomAppender:t,className:n,tagName:o="div"}){const r=(0,g.useSelect)((t=>{const{getBlockInsertionPoint:n,isBlockInsertionPointVisible:o,getBlockCount:r}=t(ji),i=n();return o()&&e===i?.rootClientId&&0===r(e)}),[e]);return(0,d.jsx)(o,{tabIndex:-1,className:ms("block-list-appender wp-block",n,{"is-drag-over":r}),contentEditable:!1,"data-block":!0,children:t?(0,d.jsx)(t,{}):(0,d.jsx)(xS,{rootClientId:e})})}const wS=Number.MAX_SAFE_INTEGER;var CS=function({previousClientId:e,nextClientId:t,children:n,__unstablePopoverSlot:o,__unstableContentRef:r,operation:i="insert",nearestSide:s="right",...l}){const[a,c]=(0,h.useReducer)((e=>(e+1)%wS),0),{orientation:u,rootClientId:p,isVisible:m}=(0,g.useSelect)((n=>{const{getBlockListSettings:o,getBlockRootClientId:r,isBlockVisible:i}=n(ji),s=r(e??t);return{orientation:o(s)?.orientation||"vertical",rootClientId:s,isVisible:i(e)&&i(t)}}),[e,t]),f=bh(e),b=bh(t),k="vertical"===u,v=(0,h.useMemo)((()=>{if(a<0||!f&&!b||!m)return;return{contextElement:"group"===i?b||f:f||b,getBoundingClientRect(){const e=f?f.getBoundingClientRect():null,t=b?b.getBoundingClientRect():null;let n=0,o=0,r=0,l=0;if("group"===i){const i=t||e;o=i.top,r=0,l=i.bottom-i.top,n="left"===s?i.left-2:i.right-2}else k?(o=e?e.bottom:t.top,r=e?e.width:t.width,l=t&&e?t.top-e.bottom:0,n=e?e.left:t.left):(o=e?e.top:t.top,l=e?e.height:t.height,(0,T.isRTL)()?(n=t?t.right:e.left,r=e&&t?e.left-t.right:0):(n=e?e.right:t.left,r=e&&t?t.left-e.right:0),r=Math.max(r,0));return new window.DOMRect(n,o,r,l)}}}),[f,b,a,k,m,i,s]),_=Fm(r);return(0,h.useLayoutEffect)((()=>{if(!f)return;const e=new window.MutationObserver(c);return e.observe(f,{attributes:!0}),()=>{e.disconnect()}}),[f]),(0,h.useLayoutEffect)((()=>{if(!b)return;const e=new window.MutationObserver(c);return e.observe(b,{attributes:!0}),()=>{e.disconnect()}}),[b]),(0,h.useLayoutEffect)((()=>{if(f)return f.ownerDocument.defaultView.addEventListener("resize",c),()=>{f.ownerDocument.defaultView?.removeEventListener("resize",c)}}),[f]),(f||b)&&m?(0,d.jsx)(ws.Popover,{ref:_,animate:!1,anchor:v,focusOnMount:!1,__unstableSlotName:o,inline:!o,...l,className:ms("block-editor-block-popover","block-editor-block-popover__inbetween",l.className),resize:!1,flip:!1,placement:"overlay",variant:"unstyled",children:(0,d.jsx)("div",{className:"block-editor-block-popover__inbetween-container",children:n})},t+"--"+p):null};const BS={hide:{opacity:0,scaleY:.75},show:{opacity:1,scaleY:1},exit:{opacity:0,scaleY:.9}};var IS=function({__unstablePopoverSlot:e,__unstableContentRef:t}){const{clientId:n}=(0,g.useSelect)((e=>{const{getBlockOrder:t,getBlockInsertionPoint:n}=e(ji),o=n(),r=t(o.rootClientId);return r.length?{clientId:r[o.index]}:{}}),[]),o=(0,m.useReducedMotion)();return(0,d.jsx)(of,{clientId:n,__unstablePopoverSlot:e,__unstableContentRef:t,className:"block-editor-block-popover__drop-zone",children:(0,d.jsx)(ws.__unstableMotion.div,{"data-testid":"block-popover-drop-zone",initial:o?BS.show:BS.hide,animate:BS.show,exit:o?BS.show:BS.exit,className:"block-editor-block-popover__drop-zone-foreground"})})};const jS=(0,h.createContext)();function ES({__unstablePopoverSlot:e,__unstableContentRef:t,operation:n="insert",nearestSide:o="right"}){const{selectBlock:r,hideInsertionPoint:i}=(0,g.useDispatch)(ji),s=(0,h.useContext)(jS),l=(0,h.useRef)(),{orientation:a,previousClientId:c,nextClientId:u,rootClientId:p,isInserterShown:f,isDistractionFree:b,isZoomOutMode:k}=(0,g.useSelect)((e=>{const{getBlockOrder:t,getBlockListSettings:n,getBlockInsertionPoint:o,isBlockBeingDragged:r,getPreviousBlockClientId:i,getNextBlockClientId:s,getSettings:l,isZoomOut:a}=G(e(ji)),c=o(),u=t(c.rootClientId);if(!u.length)return{};let d=u[c.index-1],p=u[c.index];for(;r(d);)d=i(d);for(;r(p);)p=s(p);const h=l();return{previousClientId:d,nextClientId:p,orientation:n(c.rootClientId)?.orientation||"vertical",rootClientId:c.rootClientId,isDistractionFree:h.isDistractionFree,isInserterShown:c?.__unstableWithInserter,isZoomOutMode:a()}}),[]),{getBlockEditingMode:v}=(0,g.useSelect)(ji),_=(0,m.useReducedMotion)();const y=(0,h.useCallback)((e=>{!e&&s.current&&(s.current=!1)}),[s]),x={start:{opacity:0,scale:0},rest:{opacity:1,scale:1,transition:{delay:f?.5:0,type:"tween"}},hover:{opacity:1,scale:1,transition:{delay:.5,type:"tween"}}},S={start:{scale:_?1:0},rest:{scale:1,transition:{delay:.4,type:"tween"}}};if(b)return null;if(k&&"insert"!==n)return null;const w=ms("block-editor-block-list__insertion-point","horizontal"===a||"group"===n?"is-horizontal":"is-vertical");return(0,d.jsx)(CS,{previousClientId:c,nextClientId:u,__unstablePopoverSlot:e,__unstableContentRef:t,operation:n,nearestSide:o,children:(0,d.jsxs)(ws.__unstableMotion.div,{layout:!_,initial:_?"rest":"start",animate:"rest",whileHover:"hover",whileTap:"pressed",exit:"start",ref:l,tabIndex:-1,onClick:function(e){e.target===l.current&&u&&"disabled"!==v(u)&&r(u,-1)},onFocus:function(e){e.target!==l.current&&(s.current=!0)},className:ms(w,{"is-with-inserter":f}),onHoverEnd:function(e){e.target!==l.current||s.current||i()},children:[(0,d.jsx)(ws.__unstableMotion.div,{variants:x,className:"block-editor-block-list__insertion-point-indicator","data-testid":"block-list-insertion-point-indicator"}),f&&(0,d.jsx)(ws.__unstableMotion.div,{variants:S,className:ms("block-editor-block-list__insertion-point-inserter"),children:(0,d.jsx)(lI,{ref:y,position:"bottom center",clientId:u,rootClientId:p,__experimentalIsQuick:!0,onToggle:e=>{s.current=e},onSelectOrClose:()=>{s.current=!1}})})]})})}function TS(e){const{insertionPoint:t,isVisible:n,isBlockListEmpty:o}=(0,g.useSelect)((e=>{const{getBlockInsertionPoint:t,isBlockInsertionPointVisible:n,getBlockCount:o}=e(ji),r=t();return{insertionPoint:r,isVisible:n(),isBlockListEmpty:0===o(r?.rootClientId)}}),[]);return!n||o?null:"replace"===t.operation?(0,d.jsx)(IS,{...e},`${t.rootClientId}-${t.index}`):(0,d.jsx)(ES,{operation:t.operation,nearestSide:t.nearestSide,...e})}function MS(){const e=(0,h.useContext)(jS),t=(0,g.useSelect)((e=>e(ji).getSettings().isDistractionFree||G(e(ji)).isZoomOut()),[]),{getBlockListSettings:n,getBlockIndex:o,isMultiSelecting:r,getSelectedBlockClientIds:i,getSettings:s,getTemplateLock:l,__unstableIsWithinBlockOverlay:a,getBlockEditingMode:c,getBlockName:u,getBlockAttributes:d,getParentSectionBlock:p}=G((0,g.useSelect)(ji)),{showInsertionPoint:f,hideInsertionPoint:b}=(0,g.useDispatch)(ji);return(0,m.useRefEffect)((h=>{if(!t)return h.addEventListener("mousemove",g),()=>{h.removeEventListener("mousemove",g)};function g(t){if(void 0===e||e.current)return;if(t.target.nodeType===t.target.TEXT_NODE)return;if(r())return;if(!t.target.classList.contains("block-editor-block-list__layout"))return void b();let h;if(!t.target.classList.contains("is-root-container")){h=(t.target.getAttribute("data-block")?t.target:t.target.closest("[data-block]")).getAttribute("data-block")}if(l(h)||"disabled"===c(h)||"core/block"===u(h)||h&&d(h).layout?.isManualPlacement)return;const g=n(h),m=g?.orientation||"vertical",k=!!g?.__experimentalCaptureToolbars,v=t.clientY,_=t.clientX;let y=Array.from(t.target.children).find((e=>{const t=e.getBoundingClientRect();return e.classList.contains("wp-block")&&"vertical"===m&&t.top>v||e.classList.contains("wp-block")&&"horizontal"===m&&((0,T.isRTL)()?t.right<_:t.left>_)}));if(!y)return void b();if(!y.id&&(y=y.firstElementChild,!y))return void b();const x=y.id.slice(6);if(!x||a(x)||p(x))return;if(i().includes(x)&&"vertical"===m&&!k&&!s().hasFixedToolbar)return;const S=y.getBoundingClientRect();if("horizontal"===m&&(t.clientY>S.bottom||t.clientY<S.top)||"vertical"===m&&(t.clientX>S.right||t.clientX<S.left))return void b();const w=o(x);0!==w?f(h,w,{__unstableWithInserter:!0}):b()}}),[e,n,o,r,f,b,i,t])}function PS(){const{getSettings:e,hasSelectedBlock:t,hasMultiSelection:n}=(0,g.useSelect)(ji),{clearSelectedBlock:o}=(0,g.useDispatch)(ji),{clearBlockSelection:r}=e();return(0,m.useRefEffect)((e=>{if(r)return e.addEventListener("mousedown",i),()=>{e.removeEventListener("mousedown",i)};function i(r){(t()||n())&&r.target===e&&o()}}),[t,n,o,r])}function RS(e){return(0,d.jsx)("div",{ref:PS(),...e})}jS.displayName="InsertionPointOpenRefContext";const AS=new WeakMap;function NS(){let e;return t=>(void 0!==e&&Ja()(e,t)||(e=t),e)}function LS(e){const[t]=(0,h.useState)(NS);return t(e)}function DS(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}function OS(e,t,n={}){const{operation:o="insert",nearestSide:r="right"}=n,{canInsertBlockType:i,getBlockIndex:s,getClientIdsOfDescendants:l,getBlockOrder:a,getBlocksByClientId:c,getSettings:u,getBlock:d}=(0,g.useSelect)(ji),{getGroupingBlockName:m}=(0,g.useSelect)(p.store),{insertBlocks:f,moveBlocksToPosition:b,updateBlockAttributes:k,clearSelectedBlock:v,replaceBlocks:_,removeBlocks:y}=(0,g.useDispatch)(ji),x=(0,g.useRegistry)(),S=(0,h.useCallback)(((n,s=!0,l=0,c=[])=>{Array.isArray(n)||(n=[n]);const u=a(e)[t];if("replace"===o)_(u,n,void 0,l);else if("group"===o){const t=d(u);"left"===r?n.push(t):n.unshift(t);const o=n.map((e=>(0,p.createBlock)(e.name,e.attributes,e.innerBlocks))),s=n.every((e=>"core/image"===e.name)),a=i("core/gallery",e),h=(0,p.createBlock)(s&&a?"core/gallery":m(),{layout:{type:"flex",flexWrap:s&&a?null:"nowrap"}},o);_([u,...c],h,void 0,l)}else f(n,t,e,s,l)}),[a,e,t,o,_,d,r,i,m,f]),w=(0,h.useCallback)(((n,r,i)=>{if("replace"===o){const o=c(n),r=a(e)[t];x.batch((()=>{y(n,!1),_(r,o,void 0,0)}))}else b(n,r,e,i)}),[o,a,c,b,x,y,_,t,e]),C=function(e,t,n,o,r,i,s,l,a){return c=>{const{srcRootClientId:u,srcClientIds:d,type:h,blocks:g}=DS(c);if("inserter"===h){s();const e=g.map((e=>(0,p.cloneBlock)(e)));i(e,!0,null)}if("block"===h){const s=n(d[0]);if(u===e&&s===t)return;if(d.includes(e)||o(d).some((t=>t===e)))return;if("group"===l){const e=d.map((e=>a(e)));return void i(e,!0,null,d)}const c=u===e,p=d.length;r(d,u,c&&s<t?t-p:t)}}}(e,t,s,l,w,S,v,o,d),B=function(e,t,n,o,r){return i=>{if(!t().mediaUpload)return;const s=(0,p.findTransform)((0,p.getBlockTransforms)("from"),(t=>"files"===t.type&&o(t.blockName,e)&&t.isMatch(i)));if(s){const e=s.transform(i,n);r(e)}}}(e,u,k,i,S),I=function(e){return t=>{const n=(0,p.pasteHandler)({HTML:t,mode:"BLOCKS"});n.length&&e(n)}}(S);return e=>{const t=(0,Ga.getFilesFromDataTransfer)(e.dataTransfer),n=e.dataTransfer.getData("text/html");n?I(n):t.length?B(t):C(e)}}function zS(e,t,n=["top","bottom","left","right"]){let o,r;return n.forEach((n=>{const i=function(e,t,n){const o="top"===n||"bottom"===n,{x:r,y:i}=e,s=o?r:i,l=o?i:r,a=o?t.left:t.top,c=o?t.right:t.bottom,u=t[n];let d;return d=s>=a&&s<=c?s:s<c?a:c,Math.sqrt((s-d)**2+(l-u)**2)}(e,t,n);(void 0===o||i<o)&&(o=i,r=n)})),[o,r]}function VS(e,t){return t.left<=e.x&&t.right>=e.x&&t.top<=e.y&&t.bottom>=e.y}const FS=30,HS=120,US=120;function GS(e,t,n,o){let r=!0;if(t){const e=t?.map((({name:e})=>e));r=n.every((t=>e?.includes(t)))}const i=n.map((t=>e(t))).every((e=>{const[t]=e?.parent||[];return!t||t===o}));return r&&i}function $S(e,t){const{defaultView:n}=t;return!!(n&&e instanceof n.HTMLElement&&e.closest("[data-is-insertion-point]"))}function WS({dropZoneElement:e,rootClientId:t="",parentClientId:n="",isDisabled:o=!1}={}){const r=(0,g.useRegistry)(),[i,s]=(0,h.useState)({index:null,operation:"insert"}),{getBlockType:l,getBlockVariations:a,getGroupingBlockName:c}=(0,g.useSelect)(p.store),{canInsertBlockType:u,getBlockListSettings:d,getBlocks:f,getBlockIndex:b,getDraggedBlockClientIds:k,getBlockNamesByClientId:v,getAllowedBlocks:_,isDragging:y,isGroupable:x,isZoomOut:S,getSectionRootClientId:w,getBlockParents:C}=G((0,g.useSelect)(ji)),{showInsertionPoint:B,hideInsertionPoint:I,startDragging:j,stopDragging:E}=G((0,g.useDispatch)(ji)),M=OS("before"===i.operation||"after"===i.operation?n:t,i.index,{operation:i.operation,nearestSide:i.nearestSide}),P=(0,m.useThrottle)((0,h.useCallback)(((o,i)=>{y()||j();const h=k(),g=[t,...C(t,!0)];if(h.some((e=>g.includes(e))))return;const m=_(t),I=v([t])[0],E=v(h);if(!GS(l,m,E,I))return;const M=w();if(S()&&M!==t)return;const P=f(t).filter((e=>!((0,p.hasBlockSupport)(e.name,"blockVisibility",!0)&&!1===e.attributes?.metadata?.blockVisibility)));if(0===P.length)return void r.batch((()=>{s({index:0,operation:"insert"}),B(t,0,{operation:"insert"})}));const R=P.map((e=>{const t=e.clientId;return{isUnmodifiedDefaultBlock:(0,p.isUnmodifiedDefaultBlock)(e),getBoundingClientRect:()=>{const e=i.getElementById(`block-${t}`);return e?e.getBoundingClientRect():null},blockIndex:b(t),blockOrientation:d(t)?.orientation}})),A=function(e,t,n="vertical",o={}){const r="horizontal"===n?["left","right"]:["top","bottom"];let i=0,s="before",l=1/0,a=null,c="right";const{dropZoneElement:u,parentBlockOrientation:d,rootBlockIndex:p=0}=o;if(u&&"horizontal"!==d){const e=u.getBoundingClientRect(),[n,o]=zS(t,e,["top","bottom"]);if(e.height>HS&&n<FS){if("top"===o)return[p,"before"];if("bottom"===o)return[p+1,"after"]}}const h=(0,T.isRTL)();if(u&&"horizontal"===d){const e=u.getBoundingClientRect(),[n,o]=zS(t,e,["left","right"]);if(e.width>US&&n<FS){if(h&&"right"===o||!h&&"left"===o)return[p,"before"];if(h&&"left"===o||!h&&"right"===o)return[p+1,"after"]}}e.forEach((({isUnmodifiedDefaultBlock:e,getBoundingClientRect:o,blockIndex:u,blockOrientation:d})=>{const p=o();if(!p)return;let[g,m]=zS(t,p,r);const[f,b]=zS(t,p,["left","right"]),k=VS(t,p);e&&k?g=0:"vertical"===n&&"horizontal"!==d&&(k&&f<FS||!k&&function(e,t){return t.top<=e.y&&t.bottom>=e.y}(t,p))&&(a=u,c=b),g<l&&(s="bottom"===m||!h&&"right"===m||h&&"left"===m?"after":"before",l=g,i=u)}));const g=i+("after"===s?1:-1),m=!!e[i]?.isUnmodifiedDefaultBlock,f=!!e[g]?.isUnmodifiedDefaultBlock;if(null!==a)return[a,"group",c];if(!m&&!f)return["after"===s?i+1:i,"insert"];return[m?i:g,"replace"]}(R,{x:o.clientX,y:o.clientY},d(t)?.orientation,{dropZoneElement:e,parentBlockClientId:n,parentBlockOrientation:n?d(n)?.orientation:void 0,rootBlockIndex:b(t)}),[N,L,D]=A,O=R[N]?.isUnmodifiedDefaultBlock;if(!S()||O||"insert"===L){if("group"===L){const e=P[N],n=[e.name,...E].every((e=>"core/image"===e)),o=u("core/gallery",t),r=x([e.clientId,k()]),i=a(c(),"block"),s=i&&i.find((({name:e})=>"group-row"===e));if(n&&!o&&(!r||!s))return;if(!(n||r&&s))return}r.batch((()=>{s({index:N,operation:L,nearestSide:D});const e=["before","after"].includes(L)?n:t;B(e,N,{operation:L,nearestSide:D})}))}}),[y,_,t,v,k,l,w,S,f,d,e,n,b,r,j,B,u,x,a,c]),200);return(0,m.__experimentalUseDropZone)({dropZoneElement:e,isDisabled:o,onDrop:M,onDragOver(e){P(e,e.currentTarget.ownerDocument)},onDragLeave(e){const{ownerDocument:t}=e.currentTarget;$S(e.relatedTarget,t)||$S(e.target,t)||(P.cancel(),I())},onDragEnd(){P.cancel(),E(),I()}})}const KS={};function ZS({children:e,clientId:t}){const n=function(e){return(0,g.useSelect)((t=>{const n=t(ji).getBlock(e);if(!n)return;const o=t(p.store).getBlockType(n.name);return o&&0!==Object.keys(o.providesContext).length?Object.fromEntries(Object.entries(o.providesContext).map((([e,t])=>[e,n.attributes[t]]))):void 0}),[e])}(t);return(0,d.jsx)(iv,{value:n,children:e})}const qS=(0,h.memo)(mw);function YS(e){const{clientId:t,allowedBlocks:n,prioritizedInserterBlocks:o,defaultBlock:r,directInsert:i,__experimentalDefaultBlock:s,__experimentalDirectInsert:l,template:a,templateLock:c,wrapperRef:u,templateInsertUpdatesSelection:m,__experimentalCaptureToolbars:f,__experimentalAppenderTagName:b,renderAppender:k,orientation:v,placeholder:_,layout:y,name:x,blockType:S,parentLock:w,defaultLayout:C}=e;!function(e,t,n,o,r,i,s,l,a,c,u,d){const p=(0,g.useRegistry)(),m=LS(n),f=LS(o),b=void 0===a||"contentOnly"===t?t:a;(0,h.useLayoutEffect)((()=>{const t={allowedBlocks:m,prioritizedInserterBlocks:f,templateLock:b};if(void 0!==c&&(t.__experimentalCaptureToolbars=c),void 0!==u)t.orientation=u;else{const e=Xl(d?.type);t.orientation=e.getOrientation(d)}void 0!==s&&(I()("__experimentalDefaultBlock",{alternative:"defaultBlock",since:"6.3",version:"6.4"}),t.defaultBlock=s),void 0!==r&&(t.defaultBlock=r),void 0!==l&&(I()("__experimentalDirectInsert",{alternative:"directInsert",since:"6.3",version:"6.4"}),t.directInsert=l),void 0!==i&&(t.directInsert=i),void 0!==t.directInsert&&"boolean"!=typeof t.directInsert&&I()("Using `Function` as a `directInsert` argument",{alternative:"`boolean` values",since:"6.5"}),AS.get(p)||AS.set(p,{}),AS.get(p)[e]=t,window.queueMicrotask((()=>{const e=AS.get(p);if(Object.keys(e).length){const{updateBlockListSettings:t}=p.dispatch(ji);t(e),AS.set(p,{})}}))}),[e,m,f,b,r,i,s,l,c,u,d,p])}(t,w,n,o,r,i,s,l,c,f,v,y),function(e,t,n,o){const r=(0,g.useRegistry)(),i=(0,h.useRef)(null);(0,h.useLayoutEffect)((()=>{let s=!1;const{getBlocks:l,getSelectedBlocksInitialCaretPosition:a,isBlockSelected:c}=r.select(ji),{replaceInnerBlocks:u,__unstableMarkNextChangeAsNotPersistent:d}=r.dispatch(ji);return window.queueMicrotask((()=>{if(s)return;const r=l(e),h=0===r.length||"all"===n||"contentOnly"===n,g=!E()(t,i.current);if(!h||!g)return;i.current=t;const m=(0,p.synchronizeBlocksWithTemplate)(r,t);E()(m,r)||(d(),u(e,m,0===r.length&&o&&0!==m.length&&c(e),a()))})),()=>{s=!0}}),[t,n,e,r,o])}(t,a,c,m);const B=(0,p.getBlockSupport)(x,"layout")||(0,p.getBlockSupport)(x,"__experimentalLayout")||KS,{allowSizingOnChildren:j=!1}=B,T=y||B,M=(0,h.useMemo)((()=>({...C,...T,...j&&{allowSizingOnChildren:!0}})),[C,T,j]),P=(0,d.jsx)(qS,{rootClientId:t,renderAppender:k,__experimentalAppenderTagName:b,layout:M,wrapperRef:u,placeholder:_});return S?.providesContext&&0!==Object.keys(S.providesContext).length?(0,d.jsx)(ZS,{clientId:t,children:P}):P}function XS(e){return qk(e),(0,d.jsx)(YS,{...e})}const QS=(0,h.forwardRef)(((e,t)=>{const n=JS({ref:t},e);return(0,d.jsx)("div",{className:"block-editor-inner-blocks",children:(0,d.jsx)("div",{...n})})}));function JS(e={},t={}){const{__unstableDisableLayoutClassNames:n,__unstableDisableDropZone:o,dropZoneElement:r}=t,{clientId:i,layout:s=null,__unstableLayoutClassNames:l=""}=C(),a=(0,g.useSelect)((e=>{const{getBlockName:t,isZoomOut:n,getTemplateLock:o,getBlockRootClientId:r,getBlockEditingMode:s,getBlockSettings:l,getSectionRootClientId:a}=G(e(ji));if(!i){const e=a();return{isDropZoneDisabled:n()&&""!==e}}const{hasBlockSupport:c,getBlockType:u}=e(p.store),d=t(i),h=s(i),g=r(i),[m]=l(i,"layout");let f="disabled"===h;if(n()){const e=a();f=i!==e}return{__experimentalCaptureToolbars:c(d,"__experimentalExposeControlsToChildren",!1),name:d,blockType:u(d),parentLock:o(g),parentClientId:g,isDropZoneDisabled:f,defaultLayout:m}}),[i]),{__experimentalCaptureToolbars:c,name:u,blockType:h,parentLock:f,parentClientId:b,isDropZoneDisabled:k,defaultLayout:v}=a,_=WS({dropZoneElement:r,rootClientId:i,parentClientId:b}),y=(0,m.useMergeRefs)([e.ref,o||k||s?.isManualPlacement&&window.__experimentalEnableGridInteractivity?null:_]),x={__experimentalCaptureToolbars:c,layout:s,name:u,blockType:h,parentLock:f,defaultLayout:v,...t},S=x.value&&x.onChange?XS:YS;return{...e,ref:y,className:ms(e.className,"block-editor-block-list__layout",n?"":l),children:i?(0,d.jsx)(S,{...x,clientId:i}):(0,d.jsx)(mw,{...t})}}JS.save=p.__unstableGetInnerBlocksProps,QS.DefaultBlockAppender=function(){const{clientId:e}=C();return(0,d.jsx)(yS,{rootClientId:e})},QS.ButtonBlockAppender=function({showSeparator:e,isFloating:t,onAddBlock:n,isToggle:o}){const{clientId:r}=C();return(0,d.jsx)(uI,{className:ms({"block-list-appender__toggle":o}),rootClientId:r,showSeparator:e,isFloating:t,onAddBlock:n})},QS.Content=()=>JS.save().children;var ew=QS;const tw=new Set([Wa.UP,Wa.RIGHT,Wa.DOWN,Wa.LEFT,Wa.ENTER,Wa.BACKSPACE]);function nw(){const e=(0,g.useSelect)((e=>e(ji).isTyping()),[]),{stopTyping:t}=(0,g.useDispatch)(ji);return(0,m.useRefEffect)((n=>{if(!e)return;const{ownerDocument:o}=n;let r,i;function s(e){const{clientX:n,clientY:o}=e;r&&i&&(r!==n||i!==o)&&t(),r=n,i=o}return o.addEventListener("mousemove",s),()=>{o.removeEventListener("mousemove",s)}}),[e,t])}function ow(){const{isTyping:e}=(0,g.useSelect)((e=>{const{isTyping:t}=e(ji);return{isTyping:t()}}),[]),{startTyping:t,stopTyping:n}=(0,g.useDispatch)(ji),o=nw(),r=(0,m.useRefEffect)((o=>{const{ownerDocument:r}=o,{defaultView:i}=r,s=i.getSelection();if(e){let e=function(e){const{target:t}=e;a=i.setTimeout((()=>{(0,Ga.isTextField)(t)||n()}))},t=function(e){const{keyCode:t}=e;t!==Wa.ESCAPE&&t!==Wa.TAB||n()},l=function(){s.isCollapsed||n()};let a;return o.addEventListener("focus",e),o.addEventListener("keydown",t),r.addEventListener("selectionchange",l),()=>{i.clearTimeout(a),o.removeEventListener("focus",e),o.removeEventListener("keydown",t),r.removeEventListener("selectionchange",l)}}function l(e){const{type:n,target:r}=e;(0,Ga.isTextField)(r)&&o.contains(r)&&("keydown"!==n||function(e){const{keyCode:t,shiftKey:n}=e;return!n&&tw.has(t)}(e))&&t()}return o.addEventListener("keypress",l),o.addEventListener("keydown",l),()=>{o.removeEventListener("keypress",l),o.removeEventListener("keydown",l)}}),[e,t,n]);return(0,m.useMergeRefs)([o,r])}var rw=function({children:e}){return(0,d.jsx)("div",{ref:ow(),children:e})};function iw({clientId:e,rootClientId:t="",position:n="top"}){const[o,r]=(0,h.useState)(!1),{sectionRootClientId:i,sectionClientIds:s,insertionPoint:l,blockInsertionPointVisible:a,blockInsertionPoint:c,blocksBeingDragged:u}=(0,g.useSelect)((e=>{const{getInsertionPoint:t,getBlockOrder:n,getSectionRootClientId:o,isBlockInsertionPointVisible:r,getBlockInsertionPoint:i,getDraggedBlockClientIds:s}=G(e(ji)),l=o();return{sectionRootClientId:l,sectionClientIds:n(l),insertionPoint:t(),blockInsertionPoint:i(),blockInsertionPointVisible:r(),blocksBeingDragged:s()}}),[]),p=(0,m.useReducedMotion)();if(!e)return;let f=!1;if(!(t===i&&s&&s.includes(e)))return null;const b=0===l?.index&&e===s[l.index],k=l&&l.hasOwnProperty("index")&&e===s[l.index-1];"top"===n&&(f=b||a&&0===c.index&&e===s[c.index]),"bottom"===n&&(f=k||a&&e===s[c.index-1]);const v=u[0],_=u.includes(e),y=s.indexOf(v),x=y>0?s[y-1]:null;return(_||x===e)&&(f=!1),(0,d.jsx)(ws.__unstableAnimatePresence,{children:f&&(0,d.jsx)(ws.__unstableMotion.div,{initial:{height:0},animate:{height:"calc(1 * var(--wp-block-editor-iframe-zoom-out-frame-size) / var(--wp-block-editor-iframe-zoom-out-scale)"},exit:{height:0},transition:{type:"tween",duration:p?0:.2,ease:[.6,0,.4,1]},className:ms("block-editor-block-list__zoom-out-separator",{"is-dragged-over":o}),"data-is-insertion-point":"true",onDragOver:()=>r(!0),onDragLeave:()=>r(!1),children:(0,d.jsx)(ws.__unstableMotion.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0,transition:{delay:-.125}},transition:{ease:"linear",duration:.1,delay:.125},children:(0,T.__)("Drop pattern.")})})})}const sw=(0,h.createContext)();sw.displayName="IntersectionObserverContext";const lw=new WeakMap,aw={trailing:!0};function cw({className:e,...t}){const{isOutlineMode:n,isFocusMode:o,temporarilyEditingAsBlocks:r}=(0,g.useSelect)((e=>{const{getSettings:t,getTemporarilyEditingAsBlocks:n,isTyping:o,hasBlockSpotlight:r}=G(e(ji)),{outlineMode:i,focusMode:s}=t();return{isOutlineMode:i&&!o(),isFocusMode:s||r(),temporarilyEditingAsBlocks:n()}}),[]),i=(0,g.useRegistry)(),{setBlockVisibility:s}=(0,g.useDispatch)(ji),l=(0,m.useDebounce)((0,h.useCallback)((()=>{const e={};lw.get(i).forEach((([t,n])=>{e[t]=n})),s(e)}),[i]),300,aw),a=(0,h.useMemo)((()=>{const{IntersectionObserver:e}=window;if(e)return new e((e=>{lw.get(i)||lw.set(i,[]);for(const t of e){const e=t.target.getAttribute("data-block");lw.get(i).push([e,t.isIntersecting])}l()}))}),[]),c=JS({ref:(0,m.useMergeRefs)([PS(),MS(),ow()]),className:ms("is-root-container",e,{"is-outline-mode":n,"is-focus-mode":o})},t);return(0,d.jsxs)(sw.Provider,{value:a,children:[(0,d.jsx)("div",{...c}),!!r&&(0,d.jsx)(uw,{clientId:r})]})}function uw({clientId:e}){const{stopEditingAsBlocks:t}=G((0,g.useDispatch)(ji)),n=(0,g.useSelect)((t=>{const{isBlockSelected:n,hasSelectedInnerBlock:o}=t(ji);return n(e)||o(e,!0)}),[e]);return(0,h.useEffect)((()=>{n||t(e)}),[n,e,t]),null}function dw(e){return(0,d.jsx)(w,{value:x,children:(0,d.jsx)(cw,{...e})})}const pw=[],hw=new Set;function gw({placeholder:e,rootClientId:t,renderAppender:n,__experimentalAppenderTagName:o,layout:r=Ql}){const i=!1!==n,s=!!n,{order:l,isZoomOut:a,selectedBlocks:c,visibleBlocks:u,shouldRenderAppender:h}=(0,g.useSelect)((e=>{const{getSettings:n,getBlockOrder:o,getSelectedBlockClientIds:r,__unstableGetVisibleBlocks:l,getTemplateLock:a,getBlockEditingMode:c,isSectionBlock:u,isContainerInsertableToInContentOnlyMode:d,getBlockName:h,isZoomOut:g,canInsertBlockType:m}=G(e(ji)),f=o(t);if(n().isPreviewMode)return{order:f,selectedBlocks:pw,visibleBlocks:hw};const b=r(),k=b[0],v=!(t||k||f.length&&m((0,p.getDefaultBlockName)(),t)),_=!(!t||!k||t!==k);return{order:f,selectedBlocks:b,visibleBlocks:l(),isZoomOut:g(),shouldRenderAppender:(!u(t)||d(h(k),t))&&"disabled"!==c(t)&&!a(t)&&i&&!g()&&(s||_||v)}}),[t,i,s]);return(0,d.jsxs)(ea,{value:r,children:[l.map((e=>(0,d.jsxs)(g.AsyncModeProvider,{value:!u.has(e)&&!c.includes(e),children:[a&&(0,d.jsx)(iw,{clientId:e,rootClientId:t,position:"top"}),(0,d.jsx)(kS,{rootClientId:t,clientId:e}),a&&(0,d.jsx)(iw,{clientId:e,rootClientId:t,position:"bottom"})]},e))),l.length<1&&e,h&&(0,d.jsx)(SS,{tagName:o,rootClientId:t,CustomAppender:n})]})}function mw(e){return(0,d.jsx)(g.AsyncModeProvider,{value:!1,children:(0,d.jsx)(gw,{...e})})}function fw(e){const{isMultiSelecting:t,getMultiSelectedBlockClientIds:n,hasMultiSelection:o,getSelectedBlockClientId:r,getSelectedBlocksInitialCaretPosition:i,__unstableIsFullySelected:s}=e(ji);return{isMultiSelecting:t(),multiSelectedBlockClientIds:n(),hasMultiSelection:o(),selectedBlockClientId:r(),initialPosition:i(),isFullSelection:s()}}function bw(){const{initialPosition:e,isMultiSelecting:t,multiSelectedBlockClientIds:n,hasMultiSelection:o,selectedBlockClientId:r,isFullSelection:i}=(0,g.useSelect)(fw,[]);return(0,m.useRefEffect)((r=>{const{ownerDocument:s}=r,{defaultView:l}=s;if(null==e)return;if(!o||t)return;const{length:a}=n;a<2||i&&(r.contentEditable=!0,r.focus(),l.getSelection().removeAllRanges())}),[o,t,n,r,e,i])}function kw(e,t,n,o){let r,i=Ga.focus.focusable.find(n);return t&&i.reverse(),i=i.slice(i.indexOf(e)+1),o&&(r=e.getBoundingClientRect()),i.find((function(e){if(!(e.closest("[inert]")||1===e.children.length&&$m(e,e.firstElementChild)&&"true"===e.firstElementChild.getAttribute("contenteditable"))){if(!Ga.focus.tabbable.isTabbableIndex(e))return!1;if(e.isContentEditable&&"true"!==e.contentEditable)return!1;if(o){const t=e.getBoundingClientRect();if(t.left>=r.right||t.right<=r.left)return!1}return!0}}))}function vw(){const{getMultiSelectedBlocksStartClientId:e,getMultiSelectedBlocksEndClientId:t,getSettings:n,hasMultiSelection:o,__unstableIsFullySelected:r}=(0,g.useSelect)(ji),{selectBlock:i}=(0,g.useDispatch)(ji);return(0,m.useRefEffect)((s=>{let l;function a(){l=null}function c(a){if(a.defaultPrevented)return;const{keyCode:c,target:u,shiftKey:d,ctrlKey:p,altKey:h,metaKey:g}=a,m=c===Wa.UP,f=c===Wa.DOWN,b=c===Wa.LEFT,k=c===Wa.RIGHT,v=m||b,_=b||k,y=m||f,x=_||y,S=d||p||h||g,w=y?Ga.isVerticalEdge:Ga.isHorizontalEdge,{ownerDocument:C}=s,{defaultView:B}=C;if(!x)return;if(o()){if(d)return;if(!r())return;return a.preventDefault(),void(v?i(e()):i(t(),-1))}if(!function(e,t,n){const o=t===Wa.UP||t===Wa.DOWN,{tagName:r}=e,i=e.getAttribute("type");if(o&&!n)return"INPUT"!==r||!["date","datetime-local","month","number","range","time","week"].includes(i);if("INPUT"===r)return["button","checkbox","number","color","file","image","radio","reset","submit"].includes(i);return"TEXTAREA"!==r}(u,c,S))return;y?l||(l=(0,Ga.computeCaretRect)(B)):l=null;const I=(0,Ga.isRTL)(u)?!v:v,{keepCaretInsideBlock:j}=n();if(d)(function(e,t){const n=kw(e,t,s);return n&&Km(n)})(u,v)&&w(u,v)&&(s.contentEditable=!0,s.focus());else if(!y||!(0,Ga.isVerticalEdge)(u,v)||h&&!(0,Ga.isHorizontalEdge)(u,I)||j){if(_&&B.getSelection().isCollapsed&&(0,Ga.isHorizontalEdge)(u,I)&&!j){const e=kw(u,I,s);(0,Ga.placeCaretAtHorizontalEdge)(e,v),a.preventDefault()}}else{const e=kw(u,v,s,!0);e&&((0,Ga.placeCaretAtVerticalEdge)(e,h?!v:v,h?void 0:l),a.preventDefault())}}return s.addEventListener("mousedown",a),s.addEventListener("keydown",c),()=>{s.removeEventListener("mousedown",a),s.removeEventListener("keydown",c)}}),[])}function _w(){const{getBlockOrder:e,getSelectedBlockClientIds:t,getBlockRootClientId:n}=(0,g.useSelect)(ji),{multiSelect:o,selectBlock:r}=(0,g.useDispatch)(ji),i=(0,Yk.__unstableUseShortcutEventMatch)();return(0,m.useRefEffect)((s=>{function l(l){if(!i("core/block-editor/select-all",l))return;const a=t();if(a.length<2&&!(0,Ga.isEntirelySelected)(l.target))return;l.preventDefault();const[c]=a,u=n(c),d=e(u);a.length!==d.length?o(d[0],d[d.length-1]):u&&(s.ownerDocument.defaultView.getSelection().removeAllRanges(),r(u))}return s.addEventListener("keydown",l),()=>{s.removeEventListener("keydown",l)}}),[])}function yw(e,t){e.contentEditable=t,t&&e.focus()}function xw(){const{startMultiSelect:e,stopMultiSelect:t}=(0,g.useDispatch)(ji),{isSelectionEnabled:n,hasSelectedBlock:o,isDraggingBlocks:r,isMultiSelecting:i}=(0,g.useSelect)(ji);return(0,m.useRefEffect)((s=>{const{ownerDocument:l}=s,{defaultView:a}=l;let c,u,d;function p(){t(),a.removeEventListener("mouseup",p),u=a.requestAnimationFrame((()=>{if(!o())return;yw(s,!1);const e=a.getSelection();if(e.rangeCount){const t=e.getRangeAt(0),{commonAncestorContainer:n}=t,o=t.cloneRange();c.contains(n)&&(c.focus(),e.removeAllRanges(),e.addRange(o))}}))}function h({buttons:t,target:o,relatedTarget:l}){o.contains(d)&&(o.contains(l)||r()||1===t&&(i()||s!==o&&"true"===o.getAttribute("contenteditable")&&n()&&(c=o,e(),a.addEventListener("mouseup",p),yw(s,!0))))}return s.addEventListener("mouseout",h),s.addEventListener("mousedown",(function({target:e}){d=e})),()=>{s.removeEventListener("mouseout",h),a.removeEventListener("mouseup",p),a.cancelAnimationFrame(u)}}),[e,t,n,o])}function Sw(e,t){e.contentEditable!==String(t)&&(e.contentEditable=t,t&&e.focus())}function ww(e){const t=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;return t?.closest("[data-wp-block-attribute-key]")}function Cw(){const{multiSelect:e,selectBlock:t,selectionChange:n}=(0,g.useDispatch)(ji),{getBlockParents:o,getBlockSelectionStart:r,isMultiSelecting:i}=(0,g.useSelect)(ji);return(0,m.useRefEffect)((s=>{const{ownerDocument:l}=s,{defaultView:a}=l;function c(l){const c=a.getSelection();if(!c.rangeCount)return;const u=function(e){const{anchorNode:t,anchorOffset:n}=e;return t.nodeType===t.TEXT_NODE||0===n?t:t.childNodes[n-1]}(c),d=function(e){const{focusNode:t,focusOffset:n}=e;return t.nodeType===t.TEXT_NODE||n===t.childNodes.length?t:0===n&&(0,Ga.isSelectionForward)(e)?t.previousSibling??t.parentElement:t.childNodes[n]}(c);if(!s.contains(u)||!s.contains(d))return;const p=l.shiftKey&&"mouseup"===l.type;if(c.isCollapsed&&!p){if("true"===s.contentEditable&&!i()){Sw(s,!1);let e=u.nodeType===u.ELEMENT_NODE?u:u.parentElement;e=e?.closest("[contenteditable]"),e?.focus()}return}let h=Km(u),g=Km(d);if(p){const e=r(),t=Km(l.target),n=t!==g;(h===g&&c.isCollapsed||!g||n)&&(g=t),h!==e&&(h=e)}if(void 0===h&&void 0===g)return void Sw(s,!1);if(h===g)i()?e(h,h):t(h);else{const t=[...o(h),h],r=[...o(g),g],i=function(e,t){let n=0;for(;e[n]===t[n];)n++;return n}(t,r);if(t[i]!==h||r[i]!==g)return void e(t[i],r[i]);const s=ww(u),l=ww(d);if(s&&l){const e=c.getRangeAt(0),t=(0,pe.create)({element:s,range:e,__unstableIsEditableTree:!0}),o=(0,pe.create)({element:l,range:e,__unstableIsEditableTree:!0}),r=t.start??t.end,i=o.start??o.end;n({start:{clientId:h,attributeKey:s.dataset.wpBlockAttributeKey,offset:r},end:{clientId:g,attributeKey:l.dataset.wpBlockAttributeKey,offset:i}})}else e(h,g)}}return l.addEventListener("selectionchange",c),a.addEventListener("mouseup",c),()=>{l.removeEventListener("selectionchange",c),a.removeEventListener("mouseup",c)}}),[e,t,n,o])}function Bw(){const{selectBlock:e}=(0,g.useDispatch)(ji),{isSelectionEnabled:t,getBlockSelectionStart:n,hasMultiSelection:o}=(0,g.useSelect)(ji);return(0,m.useRefEffect)((r=>{function i(i){if(!t()||0!==i.button)return;const s=n(),l=Km(i.target);i.shiftKey?s&&s!==l&&(r.contentEditable=!0,r.focus()):o()&&e(l)}return r.addEventListener("mousedown",i),()=>{r.removeEventListener("mousedown",i)}}),[e,t,n,o])}function Iw(){const{__unstableIsFullySelected:e,getSelectedBlockClientIds:t,getSelectedBlockClientId:n,__unstableIsSelectionMergeable:o,hasMultiSelection:r,getBlockName:i,canInsertBlockType:s,getBlockRootClientId:l,getSelectionStart:a,getSelectionEnd:c,getBlockAttributes:u}=(0,g.useSelect)(ji),{replaceBlocks:d,__unstableSplitSelection:h,removeBlocks:f,__unstableDeleteSelection:b,__unstableExpandSelection:k,__unstableMarkAutomaticChange:v}=(0,g.useDispatch)(ji);return(0,m.useRefEffect)((g=>{function m(e){"true"===g.contentEditable&&e.preventDefault()}function _(m){if(!m.defaultPrevented)if(r())m.keyCode===Wa.ENTER?(g.contentEditable=!1,m.preventDefault(),e()?d(t(),(0,p.createBlock)((0,p.getDefaultBlockName)())):h()):m.keyCode===Wa.BACKSPACE||m.keyCode===Wa.DELETE?(g.contentEditable=!1,m.preventDefault(),e()?f(t()):o()?b(m.keyCode===Wa.DELETE):k()):1!==m.key.length||m.metaKey||m.ctrlKey||(g.contentEditable=!1,o()?b(m.keyCode===Wa.DELETE):(m.preventDefault(),g.ownerDocument.defaultView.getSelection().removeAllRanges()));else if(m.keyCode===Wa.ENTER){if(m.shiftKey||e())return;const t=n(),o=i(t),r=a(),g=c();if(r.attributeKey===g.attributeKey){const e=u(t)[r.attributeKey],n=(0,p.getBlockTransforms)("from").filter((({type:e})=>"enter"===e)),o=(0,p.findTransform)(n,(t=>t.regExp.test(e)));if(o)return d(t,o.transform({content:e})),void v()}if(!(0,p.hasBlockSupport)(o,"splitting",!1)&&!m.__deprecatedOnSplit)return;s(o,l(t))&&(h(),m.preventDefault())}}function y(e){r()&&(g.contentEditable=!1,o()?b():(e.preventDefault(),g.ownerDocument.defaultView.getSelection().removeAllRanges()))}return g.addEventListener("beforeinput",m),g.addEventListener("keydown",_),g.addEventListener("compositionstart",y),()=>{g.removeEventListener("beforeinput",m),g.removeEventListener("keydown",_),g.removeEventListener("compositionstart",y)}}),[])}function jw(){const{getBlockName:e}=(0,g.useSelect)(ji),{getBlockType:t}=(0,g.useSelect)(p.store),{createSuccessNotice:n}=(0,g.useDispatch)(pr.store);return(0,h.useCallback)(((o,r)=>{let i="";if("copyStyles"===o)i=(0,T.__)("Styles copied to clipboard.");else if(1===r.length){const n=r[0],s=t(e(n))?.title;i="copy"===o?(0,T.sprintf)((0,T.__)('Copied "%s" to clipboard.'),s):(0,T.sprintf)((0,T.__)('Moved "%s" to clipboard.'),s)}else i="copy"===o?(0,T.sprintf)((0,T._n)("Copied %d block to clipboard.","Copied %d blocks to clipboard.",r.length),r.length):(0,T.sprintf)((0,T._n)("Moved %d block to clipboard.","Moved %d blocks to clipboard.",r.length),r.length);n(i,{type:"snackbar"})}),[n,e,t])}function Ew({clipboardData:e}){let t="",n="";try{t=e.getData("text/plain"),n=e.getData("text/html")}catch(e){return}n=function(e){const t="\x3c!--StartFragment--\x3e",n=e.indexOf(t);if(!(n>-1))return e;const o=(e=e.substring(n+20)).indexOf("\x3c!--EndFragment--\x3e");return o>-1&&(e=e.substring(0,o)),e}(n),n=function(e){const t="<meta charset='utf-8'>";return e.startsWith(t)?e.slice(22):e}(n);const o=(0,Ga.getFilesFromDataTransfer)(e);return o.length&&!function(e,t){if(t&&1===e?.length&&0===e[0].type.indexOf("image/")){const e=/<\s*img\b/gi;if(1!==t.match(e)?.length)return!0;const n=/<\s*img\b[^>]*\bsrc="file:\/\//i;if(t.match(n))return!0}return!1}(o,n)?{files:o}:{html:n,plainText:t,files:[]}}const Tw=Symbol("requiresWrapperOnCopy");function Mw(e,t,n){let o=t;const[r]=t;if(r){if(n.select(p.store).getBlockType(r.name)[Tw]){const{getBlockRootClientId:e,getBlockName:t,getBlockAttributes:i}=n.select(ji),s=e(r.clientId),l=t(s);l&&(o=(0,p.createBlock)(l,i(s),o))}}const i=(0,p.serialize)(o);e.clipboardData.setData("text/plain",function(e){e=e.replace(/<br>/g,"\n");return(0,Ga.__unstableStripHTML)(e).trim().replace(/\n\n+/g,"\n\n")}(i)),e.clipboardData.setData("text/html",i)}function Pw(){const e=(0,g.useRegistry)(),{getBlocksByClientId:t,getSelectedBlockClientIds:n,hasMultiSelection:o,getSettings:r,getBlockName:i,__unstableIsFullySelected:s,__unstableIsSelectionCollapsed:l,__unstableIsSelectionMergeable:a,__unstableGetSelectedBlocksWithPartialSelection:c,canInsertBlockType:u,getBlockRootClientId:d}=(0,g.useSelect)(ji),{flashBlock:h,removeBlocks:f,replaceBlocks:b,__unstableDeleteSelection:k,__unstableExpandSelection:v,__unstableSplitSelection:_}=(0,g.useDispatch)(ji),y=jw();return(0,m.useRefEffect)((g=>{function m(m){if(m.defaultPrevented)return;const x=n();if(0===x.length)return;if(!o()){const{target:e}=m,{ownerDocument:t}=e;if("copy"===m.type||"cut"===m.type?(0,Ga.documentHasUncollapsedSelection)(t):(0,Ga.documentHasSelection)(t)&&!t.activeElement.isContentEditable)return}const{activeElement:S}=m.target.ownerDocument;if(!g.contains(S))return;const w=a(),C=l()||s(),B=!C&&!w;if("copy"===m.type||"cut"===m.type)if(m.preventDefault(),1===x.length&&h(x[0]),B)v();else{let n;if(y(m.type,x),C)n=t(x);else{const[e,o]=c();n=[e,...t(x.slice(1,x.length-1)),o]}Mw(m,n,e)}if("cut"===m.type)C&&!B?f(x):(m.target.ownerDocument.activeElement.contentEditable=!1,k());else if("paste"===m.type){const{__experimentalCanUserUseUnfilteredHTML:e,mediaUpload:t}=r();if("true"===m.clipboardData.getData("rich-text"))return;const{plainText:n,html:l,files:a}=Ew(m),c=s();let h=[];if(a.length){if(!t)return void m.preventDefault();const e=(0,p.getBlockTransforms)("from");h=a.reduce(((t,n)=>{const o=(0,p.findTransform)(e,(e=>"files"===e.type&&e.isMatch([n])));return o&&t.push(o.transform([n])),t}),[]).flat()}else h=(0,p.pasteHandler)({HTML:l,plainText:n,mode:c?"BLOCKS":"AUTO",canUserUseUnfilteredHTML:e});if("string"==typeof h)return;if(c)return b(x,h,h.length-1,-1),void m.preventDefault();if(!o()&&!(0,p.hasBlockSupport)(i(x[0]),"splitting",!1)&&!m.__deprecatedOnSplit)return;const[g]=x,f=d(g),k=[];for(const e of h)if(u(e.name,f))k.push(e);else{const t=i(f),n=e.name!==t?(0,p.switchToBlockType)(e,t):[e];if(!n)return;for(const e of n)for(const t of e.innerBlocks)k.push(t)}_(k),m.preventDefault()}}return g.ownerDocument.addEventListener("copy",m),g.ownerDocument.addEventListener("cut",m),g.ownerDocument.addEventListener("paste",m),()=>{g.ownerDocument.removeEventListener("copy",m),g.ownerDocument.removeEventListener("cut",m),g.ownerDocument.removeEventListener("paste",m)}}),[])}function Rw(){const[e,t,n]=function(){const e=(0,h.useRef)(),t=(0,h.useRef)(),n=(0,h.useRef)(),{hasMultiSelection:o,getSelectedBlockClientId:r,getBlockCount:i,getBlockOrder:s,getLastFocus:l,getSectionRootClientId:a,isZoomOut:c}=G((0,g.useSelect)(ji)),{setLastFocus:u}=G((0,g.useDispatch)(ji)),p=(0,h.useRef)();function f(t){const n=e.current.ownerDocument===t.target.ownerDocument?e.current:e.current.ownerDocument.defaultView.frameElement;if(p.current)p.current=null;else if(o())e.current.focus();else if(r())l()?.current?l().current.focus():e.current.querySelector(`[data-block="${r()}"]`).focus();else if(c()){const t=a(),o=s(t);o.length?e.current.querySelector(`[data-block="${o[0]}"]`).focus():t?e.current.querySelector(`[data-block="${t}"]`).focus():n.focus()}else{const o=t.target.compareDocumentPosition(n)&t.target.DOCUMENT_POSITION_FOLLOWING,r=Ga.focus.tabbable.find(e.current);r.length&&(o?r[0]:r[r.length-1]).focus()}}const b=(0,d.jsx)("div",{ref:t,tabIndex:"0",onFocus:f}),k=(0,d.jsx)("div",{ref:n,tabIndex:"0",onFocus:f}),v=(0,m.useRefEffect)((o=>{function r(e){if(e.defaultPrevented)return;if(e.keyCode!==Wa.TAB)return;if(!n.current||!t.current)return;const{target:o,shiftKey:r}=e,i=r?"findPrevious":"findNext",s=Ga.focus.tabbable[i](o),l=o.closest("[data-block]"),a=l&&s&&($m(l,s)||Wm(l,s));if((0,Ga.isFormElement)(s)&&a)return;const c=r?t:n;p.current=!0,c.current.focus({preventScroll:!0})}function s(e){u({...l(),current:e.target});const{ownerDocument:t}=o;!e.relatedTarget&&e.target.hasAttribute("data-block")&&t.activeElement===t.body&&0===i()&&o.focus()}function a(o){if(o.keyCode!==Wa.TAB)return;if("region"===o.target?.getAttribute("role"))return;if(e.current===o.target)return;const r=o.shiftKey?"findPrevious":"findNext",i=Ga.focus.tabbable[r](o.target);i!==t.current&&i!==n.current||(o.preventDefault(),i.focus({preventScroll:!0}))}const{ownerDocument:c}=o,{defaultView:d}=c;return d.addEventListener("keydown",a),o.addEventListener("keydown",r),o.addEventListener("focusout",s),()=>{d.removeEventListener("keydown",a),o.removeEventListener("keydown",r),o.removeEventListener("focusout",s)}}),[]);return[b,(0,m.useMergeRefs)([e,v]),k]}(),o=(0,g.useSelect)((e=>e(ji).hasMultiSelection()),[]);return[e,(0,m.useMergeRefs)([t,Pw(),Iw(),xw(),Cw(),Bw(),bw(),_w(),vw(),(0,m.useRefEffect)((e=>(e.tabIndex=0,e.dataset.hasMultiSelection=o,o?(e.setAttribute("aria-label",(0,T.__)("Multiple selected blocks")),()=>{delete e.dataset.hasMultiSelection,e.removeAttribute("aria-label")}):()=>{delete e.dataset.hasMultiSelection})),[o])]),n]}var Aw=(0,h.forwardRef)((function({children:e,...t},n){const[o,r,i]=Rw();return(0,d.jsxs)(d.Fragment,{children:[o,(0,d.jsx)("div",{...t,ref:(0,m.useMergeRefs)([r,n]),className:ms(t.className,"block-editor-writing-flow"),children:e}),i]})}));let Nw=null;function Lw({frameSize:e,containerWidth:t,maxContainerWidth:n,scaleContainerWidth:o}){return(Math.min(t,n)-2*e)/o}function Dw({frameSize:e,iframeDocument:t,maxContainerWidth:n=750,scale:o}){const[r,{height:i}]=(0,m.useResizeObserver)(),[s,{width:l,height:a}]=(0,m.useResizeObserver)(),c=(0,h.useRef)(0),u=1!==o,d=(0,m.useReducedMotion)(),p="auto-scaled"===o,g=(0,h.useRef)(!1),f=(0,h.useRef)(null);(0,h.useEffect)((()=>{u||(c.current=l)}),[l,u]);const b=Math.max(c.current,l),k=p?Lw({frameSize:e,containerWidth:l,maxContainerWidth:n,scaleContainerWidth:b}):o,v=(0,h.useRef)({scaleValue:k,frameSize:e,containerHeight:0,scrollTop:0,scrollHeight:0}),_=(0,h.useRef)({scaleValue:k,frameSize:e,containerHeight:0,scrollTop:0,scrollHeight:0}),y=(0,h.useCallback)((()=>{const{scrollTop:e}=v.current,{scrollTop:n}=_.current;return t.documentElement.style.setProperty("--wp-block-editor-iframe-zoom-out-scroll-top",`${e}px`),t.documentElement.style.setProperty("--wp-block-editor-iframe-zoom-out-scroll-top-next",`${n}px`),t.documentElement.style.setProperty("--wp-block-editor-iframe-zoom-out-overflow-behavior",v.current.scrollHeight===v.current.containerHeight?"auto":"scroll"),t.documentElement.classList.add("zoom-out-animation"),t.documentElement.animate(function(e,t){const{scaleValue:n,frameSize:o,scrollTop:r}=e,{scaleValue:i,frameSize:s,scrollTop:l}=t;return[{translate:"0 0",scale:n,paddingTop:o/n+"px",paddingBottom:o/n+"px"},{translate:`0 ${r-l}px`,scale:i,paddingTop:s/i+"px",paddingBottom:s/i+"px"}]}(v.current,_.current),{easing:"cubic-bezier(0.46, 0.03, 0.52, 0.96)",duration:400})}),[t]),x=(0,h.useCallback)((()=>{g.current=!1,f.current=null,t.documentElement.style.setProperty("--wp-block-editor-iframe-zoom-out-scale",_.current.scaleValue),t.documentElement.style.setProperty("--wp-block-editor-iframe-zoom-out-frame-size",`${_.current.frameSize}px`),t.documentElement.classList.remove("zoom-out-animation"),t.documentElement.scrollTop=_.current.scrollTop,t.documentElement.style.removeProperty("--wp-block-editor-iframe-zoom-out-scroll-top"),t.documentElement.style.removeProperty("--wp-block-editor-iframe-zoom-out-scroll-top-next"),t.documentElement.style.removeProperty("--wp-block-editor-iframe-zoom-out-overflow-behavior"),v.current=_.current}),[t]),S=(0,h.useRef)(!1);return(0,h.useEffect)((()=>{const e=t&&S.current!==u;if(S.current=u,e&&(g.current=!0,u))return t.documentElement.classList.add("is-zoomed-out"),()=>{t.documentElement.classList.remove("is-zoomed-out")}}),[t,u]),(0,h.useEffect)((()=>{if(t&&(p&&1!==v.current.scaleValue&&(v.current.scaleValue=Lw({frameSize:v.current.frameSize,containerWidth:l,maxContainerWidth:n,scaleContainerWidth:l})),k<1&&(g.current||(t.documentElement.style.setProperty("--wp-block-editor-iframe-zoom-out-scale",k),t.documentElement.style.setProperty("--wp-block-editor-iframe-zoom-out-frame-size",`${e}px`)),t.documentElement.style.setProperty("--wp-block-editor-iframe-zoom-out-content-height",`${i}px`),t.documentElement.style.setProperty("--wp-block-editor-iframe-zoom-out-inner-height",`${a}px`),t.documentElement.style.setProperty("--wp-block-editor-iframe-zoom-out-container-width",`${l}px`),t.documentElement.style.setProperty("--wp-block-editor-iframe-zoom-out-scale-container-width",`${b}px`)),g.current))if(g.current=!1,f.current){f.current.reverse();const e=v.current,t=_.current;v.current=t,_.current=e}else v.current.scrollTop=t.documentElement.scrollTop,v.current.scrollHeight=t.documentElement.scrollHeight,v.current.containerHeight=a,_.current={scaleValue:k,frameSize:e,containerHeight:t.documentElement.clientHeight},_.current.scrollHeight=function(e,t){const{scaleValue:n,scrollHeight:o}=e,{frameSize:r,scaleValue:i}=t;return o*(i/n)+2*r}(v.current,_.current),_.current.scrollTop=function(e,t){const{containerHeight:n,frameSize:o,scaleValue:r,scrollTop:i}=e,{containerHeight:s,frameSize:l,scaleValue:a,scrollHeight:c}=t;let u=i;u=(u+n/2-o)/r-n/2,u=(u+s/2)*a+l-s/2,u=i<=o?0:u;const d=c-s;return Math.round(Math.min(Math.max(0,u),Math.max(0,d)))}(v.current,_.current),f.current=y(),d?x():f.current.onfinish=x}),[y,x,d,p,k,e,t,i,l,a,n,b]),{isZoomedOut:u,scaleContainerWidth:b,contentResizeListener:r,containerResizeListener:s}}function Ow(e,t,n){const o={};for(const t in e)o[t]=e[t];if(e instanceof n.contentDocument.defaultView.MouseEvent){const e=n.getBoundingClientRect();o.clientX+=e.left,o.clientY+=e.top}const r=new t(e.type,o);o.defaultPrevented&&r.preventDefault();!n.dispatchEvent(r)&&e.preventDefault()}function zw(e){return(0,m.useRefEffect)((()=>{const{defaultView:t}=e;if(!t)return;const{frameElement:n}=t,o=e.documentElement,r=["dragover","mousemove"],i={};for(const e of r)i[e]=e=>{const t=Object.getPrototypeOf(e).constructor.name;Ow(e,window[t],n)},o.addEventListener(e,i[e]);return()=>{for(const e of r)o.removeEventListener(e,i[e])}}))}function Vw({contentRef:e,children:t,tabIndex:n=0,scale:o=1,frameSize:r=0,readonly:i,forwardedRef:s,title:l=(0,T.__)("Editor canvas"),...a}){const{resolvedAssets:c,isPreviewMode:u}=(0,g.useSelect)((e=>{const{getSettings:t}=e(ji),n=t();return{resolvedAssets:n.__unstableResolvedAssets,isPreviewMode:n.isPreviewMode}}),[]),{styles:p="",scripts:f=""}=c,[b,k]=(0,h.useState)(),[v,_]=(0,h.useState)([]),y=PS(),[x,S,w]=Rw(),C=(0,m.useRefEffect)((e=>{let t;function n(e){e.preventDefault()}function o(e){"A"===e.target.tagName&&e.target.getAttribute("href")?.startsWith("#")&&(e.preventDefault(),t.defaultView.location.hash=e.target.getAttribute("href").slice(1))}e._load=()=>{k(e.contentDocument)};const{ownerDocument:r}=e;function i(){const{contentDocument:i}=e,{documentElement:s}=i;t=i,s.classList.add("block-editor-iframe__html"),y(s),i.dir=r.dir;for(const e of Nw||(Nw=Array.from(document.styleSheets).reduce(((e,t)=>{try{t.cssRules}catch(t){return e}const{ownerNode:n,cssRules:o}=t;if(null===n)return e;if(!o)return e;if(n.id.startsWith("wp-"))return e;if(!n.id)return e;if(function e(t){return Array.from(t).find((({selectorText:t,conditionText:n,cssRules:o})=>n?e(o):t&&(t.includes(".editor-styles-wrapper")||t.includes(".wp-block"))))}(o)){const t="STYLE"===n.tagName;if(t){const t=n.id.replace("-inline-css","-css"),o=document.getElementById(t);o&&e.push(o.cloneNode(!0))}if(e.push(n.cloneNode(!0)),!t){const t=n.id.replace("-css","-inline-css"),o=document.getElementById(t);o&&e.push(o.cloneNode(!0))}}return e}),[]),Nw))i.getElementById(e.id)||(i.head.appendChild(e.cloneNode(!0)),u||console.warn(`${e.id} was added to the iframe incorrectly. Please use block.json or enqueue_block_assets to add styles to the iframe.`,e));t.addEventListener("dragover",n,!1),t.addEventListener("drop",n,!1),t.addEventListener("click",o)}return _(Array.from(r.body.classList).filter((e=>e.startsWith("admin-color-")||e.startsWith("post-type-")||"wp-embed-responsive"===e))),e.addEventListener("load",i),()=>{delete e._load,e.removeEventListener("load",i),t?.removeEventListener("dragover",n),t?.removeEventListener("drop",n),t?.removeEventListener("click",o)}}),[]),{contentResizeListener:B,containerResizeListener:I,isZoomedOut:j,scaleContainerWidth:E}=Dw({scale:o,frameSize:parseInt(r),iframeDocument:b}),M=(0,m.useDisabled)({isDisabled:!i}),P=(0,m.useMergeRefs)([zw(b),e,y,S,M]),R=`<!doctype html>\n<html>\n\t<head>\n\t\t<meta charset="utf-8">\n\t\t<base href="${window.location.origin}">\n\t\t<script>window.frameElement._load()<\/script>\n\t\t<style>\n\t\t\thtml{\n\t\t\t\theight: auto !important;\n\t\t\t\tmin-height: 100%;\n\t\t\t}\n\t\t\t/* Lowest specificity to not override global styles */\n\t\t\t:where(body) {\n\t\t\t\tmargin: 0;\n\t\t\t\t/* Default background color in case zoom out mode background\n\t\t\t\tcolors the html element */\n\t\t\t\tbackground-color: white;\n\t\t\t}\n\t\t</style>\n\t\t${p}\n\t\t${f}\n\t</head>\n\t<body>\n\t\t<script>document.currentScript.parentElement.remove()<\/script>\n\t</body>\n</html>`,[A,N]=(0,h.useMemo)((()=>{const e=URL.createObjectURL(new window.Blob([R],{type:"text/html"}));return[e,()=>URL.revokeObjectURL(e)]}),[R]);(0,h.useEffect)((()=>N),[N]);const L=n>=0&&!u,D=(0,d.jsxs)(d.Fragment,{children:[L&&x,(0,d.jsx)("iframe",{...a,style:{...a.style,height:a.style?.height,border:0},ref:(0,m.useMergeRefs)([s,C]),tabIndex:n,src:A,title:l,onKeyDown:e=>{if(a.onKeyDown&&a.onKeyDown(e),e.currentTarget.ownerDocument!==e.target.ownerDocument){const{stopPropagation:t}=e.nativeEvent;e.nativeEvent.stopPropagation=()=>{},e.stopPropagation(),e.nativeEvent.stopPropagation=t,Ow(e,window.KeyboardEvent,e.currentTarget)}},children:b&&(0,h.createPortal)((0,d.jsxs)("body",{ref:P,className:ms("block-editor-iframe__body","editor-styles-wrapper",...v),children:[B,(0,d.jsx)(ws.__experimentalStyleProvider,{document:b,children:t})]}),b.documentElement)}),L&&w]});return(0,d.jsxs)("div",{className:"block-editor-iframe__container",children:[I,(0,d.jsx)("div",{className:ms("block-editor-iframe__scale-container",j&&"is-zoomed-out"),style:{"--wp-block-editor-iframe-zoom-out-scale-container-width":j&&`${E}px`},children:D})]})}var Fw=(0,h.forwardRef)((function(e,t){return(0,g.useSelect)((e=>e(ji).getSettings().__internalIsInitialized),[])?(0,d.jsx)(Vw,{...e,forwardedRef:t}):null}));const Hw={attribute:/\[\s*(?:(?<namespace>\*|[-\w\P{ASCII}]*)\|)?(?<name>[-\w\P{ASCII}]+)\s*(?:(?<operator>\W?=)\s*(?<value>.+?)\s*(\s(?<caseSensitive>[iIsS]))?\s*)?\]/gu,id:/#(?<name>[-\w\P{ASCII}]+)/gu,class:/\.(?<name>[-\w\P{ASCII}]+)/gu,comma:/\s*,\s*/g,combinator:/\s*[\s>+~]\s*/g,"pseudo-element":/::(?<name>[-\w\P{ASCII}]+)(?:\((?<argument>¶*)\))?/gu,"pseudo-class":/:(?<name>[-\w\P{ASCII}]+)(?:\((?<argument>¶*)\))?/gu,universal:/(?:(?<namespace>\*|[-\w\P{ASCII}]*)\|)?\*/gu,type:/(?:(?<namespace>\*|[-\w\P{ASCII}]*)\|)?(?<name>[-\w\P{ASCII}]+)/gu},Uw=new Set(["combinator","comma"]),Gw=(new Set(["not","is","where","has","matches","-moz-any","-webkit-any","nth-child","nth-last-child"]),e=>{switch(e){case"pseudo-element":case"pseudo-class":return new RegExp(Hw[e].source.replace("(?<argument>¶*)","(?<argument>.*)"),"gu");default:return Hw[e]}});function $w(e,t){let n=0,o="";for(;t<e.length;t++){const r=e[t];switch(r){case"(":++n;break;case")":--n}if(o+=r,0===n)return o}return o}const Ww=/(['"])([^\\\n]+?)\1/g,Kw=/\\./g;function Zw(e,t=Hw){if(""===(e=e.trim()))return[];const n=[];e=(e=e.replace(Kw,((e,t)=>(n.push({value:e,offset:t}),"".repeat(e.length))))).replace(Ww,((e,t,o,r)=>(n.push({value:e,offset:r}),`${t}${"".repeat(o.length)}${t}`)));{let t,o=0;for(;(t=e.indexOf("(",o))>-1;){const r=$w(e,t);n.push({value:r,offset:t}),e=`${e.substring(0,t)}(${"¶".repeat(r.length-2)})${e.substring(t+r.length)}`,o=t+r.length}}const o=function(e,t=Hw){if(!e)return[];const n=[e];for(const[e,o]of Object.entries(t))for(let t=0;t<n.length;t++){const r=n[t];if("string"!=typeof r)continue;o.lastIndex=0;const i=o.exec(r);if(!i)continue;const s=i.index-1,l=[],a=i[0],c=r.slice(0,s+1);c&&l.push(c),l.push({...i.groups,type:e,content:a});const u=r.slice(s+a.length+1);u&&l.push(u),n.splice(t,1,...l)}let o=0;for(const e of n)switch(typeof e){case"string":throw new Error(`Unexpected sequence ${e} found at index ${o}`);case"object":o+=e.content.length,e.pos=[o-e.content.length,o],Uw.has(e.type)&&(e.content=e.content.trim()||" ")}return n}(e,t),r=new Set;for(const e of n.reverse())for(const t of o){const{offset:n,value:o}=e;if(!(t.pos[0]<=n&&n+o.length<=t.pos[1]))continue;const{content:i}=t,s=n-t.pos[0];t.content=i.slice(0,s)+o+i.slice(s+o.length),t.content!==i&&r.add(t)}for(const e of r){const t=Gw(e.type);if(!t)throw new Error(`Unknown token type: ${e.type}`);t.lastIndex=0;const n=t.exec(e.content);if(!n)throw new Error(`Unable to parse content for ${e.type}: ${e.content}`);Object.assign(e,n.groups)}return o}function*qw(e,t){switch(e.type){case"list":for(let t of e.list)yield*qw(t,e);break;case"complex":yield*qw(e.left,e),yield*qw(e.right,e);break;case"compound":yield*e.list.map((t=>[t,e]));break;default:yield[e,t]}}var Yw=n(9656),Xw=n.n(Yw),Qw=n(356),Jw=n.n(Qw),eC=n(1443),tC=n.n(eC),nC=n(5404),oC=n.n(nC);const rC=new Map,iC=[{type:"type",content:"body"},{type:"type",content:"html"},{type:"pseudo-class",content:":root"},{type:"pseudo-class",content:":where(body)"},{type:"pseudo-class",content:":where(:root)"},{type:"pseudo-class",content:":where(html)"}];function sC(e,t){const n=Zw(t);let o=-1;for(let e=n.findLastIndex((({content:e,type:t})=>iC.some((n=>e===n.content&&t===n.type))))+1;e<n.length;e++)if("combinator"===n[e].type){o=e;break}const r=Zw(e);return n.splice(-1===o?n.length:o,0,{type:"combinator",content:" "},...r),function(e){let t;return t=Array.isArray(e)?e:[...qw(e)].map((([e])=>e)),t.map((e=>e.content)).join("")}(n)}var lC=(e,t="",n)=>{let o=rC.get(t);return o||(o=new WeakMap,rC.set(t,o)),e.map((e=>{let r=o.get(e);return r||(r=function({css:e,ignoredSelectors:t=[],baseURL:n},o="",r){if(!o&&!n)return e;try{const i=[...t,...r?.ignoredSelectors??[],o];return new(Xw())([o&&tC()({prefix:o,transform:(e,t,n)=>i.some((e=>e instanceof RegExp?t.match(e):t.includes(e)))?t:iC.some((e=>t.startsWith(e.content)))?sC(e,t):n}),n&&oC()({rootUrl:n})].filter(Boolean)).process(e,{}).css}catch(e){return e instanceof Jw()?console.warn("wp.blockEditor.transformStyles Failed to transform CSS.",e.message+"\n"+e.showSourceCode(!1)):console.warn("wp.blockEditor.transformStyles Failed to transform CSS.",e),null}}(e,t,n),o.set(e,r)),r}))};function aC(e,t){return(0,h.useCallback)((e=>{if(!e)return;const{ownerDocument:n}=e,{defaultView:o,body:r}=n,i=t?n.querySelector(t):r;let s;if(i)s=o?.getComputedStyle(i,null).getPropertyValue("background-color");else{const e=n.createElement("div");e.classList.add("editor-styles-wrapper"),r.appendChild(e),s=o?.getComputedStyle(e,null).getPropertyValue("background-color"),r.removeChild(e)}const l=wd(s);l.luminance()>.5||0===l.alpha()?r.classList.remove("is-dark-theme"):r.classList.add("is-dark-theme")}),[e,t])}Bd([Id,Td]);var cC=(0,h.memo)((function({styles:e,scope:t,transformOptions:n}){const o=(0,g.useSelect)((e=>G(e(ji)).getStyleOverrides()),[]),[r,i]=(0,h.useMemo)((()=>{const r=Object.values(e??[]);for(const[e,t]of o){const n=r.findIndex((({id:t})=>e===t)),o={...t,id:e};-1===n?r.push(o):r[n]=o}return[lC(r.filter((e=>e?.css)),t,n),r.filter((e=>"svgs"===e.__unstableType)).map((e=>e.assets)).join("")]}),[e,o,t,n]);return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("style",{ref:aC(r,t)}),r.map(((e,t)=>(0,d.jsx)("style",{children:e},t))),(0,d.jsx)(ws.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 0 0",width:"0",height:"0",role:"none",style:{visibility:"hidden",position:"absolute",left:"-9999px",overflow:"hidden"},dangerouslySetInnerHTML:{__html:i}})]})}));const uC=(0,h.memo)(dw),dC=2e3,pC=[];function hC({viewportWidth:e,containerWidth:t,minHeight:n,additionalStyles:o=pC}){e||(e=t);const[r,{height:i}]=(0,m.useResizeObserver)(),{styles:s}=(0,g.useSelect)((e=>({styles:e(ji).getSettings().styles})),[]),l=(0,h.useMemo)((()=>s?[...s,{css:"body{height:auto;overflow:hidden;border:none;padding:0;}",__unstableType:"presets"},...o]:s),[s,o]),a=t/e,c=i?t/(i*a):0;return(0,d.jsx)(ws.Disabled,{className:"block-editor-block-preview__content",style:{transform:`scale(${a})`,aspectRatio:c,maxHeight:i>dC?dC*a:void 0,minHeight:n},children:(0,d.jsxs)(Fw,{contentRef:(0,m.useRefEffect)((e=>{const{ownerDocument:{documentElement:t}}=e;t.classList.add("block-editor-block-preview__content-iframe"),t.style.position="absolute",t.style.width="100%",e.style.boxSizing="border-box",e.style.position="absolute",e.style.width="100%"}),[]),"aria-hidden":!0,tabIndex:-1,style:{position:"absolute",width:e,height:i,pointerEvents:"none",maxHeight:dC,minHeight:0!==a&&a<1&&n?n/a:n},children:[(0,d.jsx)(cC,{styles:l}),r,(0,d.jsx)(uC,{renderAppender:!1})]})})}function gC(e){const[t,{width:n}]=(0,m.useResizeObserver)();return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("div",{style:{position:"relative",width:"100%",height:0},children:t}),(0,d.jsx)("div",{className:"block-editor-block-preview__container",children:!!n&&(0,d.jsx)(hC,{...e,containerWidth:n})})]})}const mC=(0,window.wp.priorityQueue.createQueue)();const fC=[];const bC=(0,h.memo)((function({blocks:e,viewportWidth:t=1200,minHeight:n,additionalStyles:o=fC,__experimentalMinHeight:r,__experimentalPadding:i}){r&&(n=r,I()("The __experimentalMinHeight prop",{since:"6.2",version:"6.4",alternative:"minHeight"})),i&&(o=[...o,{css:`body { padding: ${i}px; }`}],I()("The __experimentalPadding prop of BlockPreview",{since:"6.2",version:"6.4",alternative:"additionalStyles"}));const s=(0,g.useSelect)((e=>e(ji).getSettings()),[]),l=(0,h.useMemo)((()=>({...s,focusMode:!1,isPreviewMode:!0})),[s]),a=(0,h.useMemo)((()=>Array.isArray(e)?e:[e]),[e]);return e&&0!==e.length?(0,d.jsx)(nv,{value:a,settings:l,children:(0,d.jsx)(gC,{viewportWidth:t,minHeight:n,additionalStyles:o})}):null}));bC.Async=function({children:e,placeholder:t}){const[n,o]=(0,h.useState)(!1);return(0,h.useEffect)((()=>{const e={};return mC.add(e,(()=>{(0,h.flushSync)((()=>{o(!0)}))})),()=>{mC.cancel(e)}}),[]),n?e:t};var kC=bC;function vC({blocks:e,props:t={},layout:n}){const o=(0,g.useSelect)((e=>e(ji).getSettings()),[]),r=(0,h.useMemo)((()=>({...o,styles:void 0,focusMode:!1,isPreviewMode:!0})),[o]),i=(0,m.useDisabled)(),s=(0,m.useMergeRefs)([t.ref,i]),l=(0,h.useMemo)((()=>Array.isArray(e)?e:[e]),[e]),a=(0,d.jsxs)(nv,{value:l,settings:r,children:[(0,d.jsx)(cC,{}),(0,d.jsx)(mw,{renderAppender:!1,layout:n})]});return{...t,ref:s,className:ms(t.className,"block-editor-block-preview__live-content","components-disabled"),children:e?.length?a:null}}var _C=function({item:e}){const{name:t,title:n,icon:o,description:r,initialAttributes:i,example:s}=e,l=(0,p.isReusableBlock)(e),a=(0,h.useMemo)((()=>s?(0,p.getBlockFromExample)(t,{attributes:{...s.attributes,...i},innerBlocks:s.innerBlocks}):(0,p.createBlock)(t,i)),[t,s,i]),c=144,u=s?.viewportWidth??500,g=280/u,m=0!==g&&g<1?c/g:c;return(0,d.jsxs)("div",{className:"block-editor-inserter__preview-container",children:[(0,d.jsx)("div",{className:"block-editor-inserter__preview",children:l||s?(0,d.jsx)("div",{className:"block-editor-inserter__preview-content",children:(0,d.jsx)(kC,{blocks:a,viewportWidth:u,minHeight:c,additionalStyles:[{css:`\n\t\t\t\t\t\t\t\t\t\tbody { \n\t\t\t\t\t\t\t\t\t\t\tpadding: 24px;\n\t\t\t\t\t\t\t\t\t\t\tmin-height:${Math.round(m)}px;\n\t\t\t\t\t\t\t\t\t\t\tdisplay:flex;\n\t\t\t\t\t\t\t\t\t\t\talign-items:center;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t.is-root-container { width: 100%; }\n\t\t\t\t\t\t\t\t\t`}]})}):(0,d.jsx)("div",{className:"block-editor-inserter__preview-content-missing",children:(0,T.__)("No preview available.")})}),!l&&(0,d.jsx)(Xb,{title:n,icon:o,description:r})]})};var yC=(0,h.forwardRef)((function({isFirst:e,as:t,children:n,...o},r){return(0,d.jsx)(ws.Composite.Item,{ref:r,role:"option",accessibleWhenDisabled:!0,...o,render:o=>{const r={...o,tabIndex:e?0:o.tabIndex};return t?(0,d.jsx)(t,{...r,children:n}):"function"==typeof n?n(r):(0,d.jsx)(ws.Button,{__next40pxDefaultSize:!0,...r,children:n})}})})),xC=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"M8 7h2V5H8v2zm0 6h2v-2H8v2zm0 6h2v-2H8v2zm6-14v2h2V5h-2zm0 8h2v-2h-2v2zm0 6h2v-2h-2v2z"})});function SC({count:e,icon:t,isPattern:n,fadeWhenDisabled:o}){const r=n&&(0,T.__)("Pattern");return(0,d.jsx)("div",{className:"block-editor-block-draggable-chip-wrapper",children:(0,d.jsx)("div",{className:"block-editor-block-draggable-chip","data-testid":"block-draggable-chip",children:(0,d.jsxs)(ws.Flex,{justify:"center",className:"block-editor-block-draggable-chip__content",children:[(0,d.jsx)(ws.FlexItem,{children:t?(0,d.jsx)(Vu,{icon:t}):r||(0,T.sprintf)((0,T._n)("%d block","%d blocks",e),e)}),(0,d.jsx)(ws.FlexItem,{children:(0,d.jsx)(Vu,{icon:xC})}),o&&(0,d.jsx)(ws.FlexItem,{className:"block-editor-block-draggable-chip__disabled",children:(0,d.jsx)("span",{className:"block-editor-block-draggable-chip__disabled-icon"})})]})})})}var wC=({isEnabled:e,blocks:t,icon:n,children:o,pattern:r})=>{const i=(0,g.useSelect)((e=>{const{getBlockType:n}=e(p.store);return 1===t.length&&n(t[0].name)?.icon}),[t]),{startDragging:s,stopDragging:l}=G((0,g.useDispatch)(ji)),a=(0,h.useMemo)((()=>r?.type===it.user&&"unsynced"!==r?.syncStatus?[(0,p.createBlock)("core/block",{ref:r.id})]:void 0),[r?.type,r?.syncStatus,r?.id]);if(!e)return o({draggable:!1,onDragStart:void 0,onDragEnd:void 0});const c=a??t;return(0,d.jsx)(ws.Draggable,{__experimentalTransferDataType:"wp-blocks",transferData:{type:"inserter",blocks:c},onDragStart:e=>{s();for(const t of c){const n=`wp-block:${t.name}`;e.dataTransfer.items.add("",n)}},onDragEnd:()=>{l()},__experimentalDragComponent:(0,d.jsx)(SC,{count:t.length,icon:n||!r&&i,isPattern:!!r}),children:({onDraggableStart:e,onDraggableEnd:t})=>o({draggable:!0,onDragStart:e,onDragEnd:t})})};var CC=(0,h.memo)((function({className:e,isFirst:t,item:n,onSelect:o,onHover:r,isDraggable:i,...s}){const l=(0,h.useRef)(!1),a=n.icon?{backgroundColor:n.icon.background,color:n.icon.foreground}:{},c=(0,h.useMemo)((()=>[(0,p.createBlock)(n.name,n.initialAttributes,(0,p.createBlocksFromInnerBlocksTemplate)(n.innerBlocks))]),[n.name,n.initialAttributes,n.innerBlocks]),u=(0,p.isReusableBlock)(n)&&"unsynced"!==n.syncStatus||(0,p.isTemplatePart)(n);return(0,d.jsx)(wC,{isEnabled:i&&!n.isDisabled,blocks:c,icon:n.icon,children:({draggable:i,onDragStart:c,onDragEnd:p})=>(0,d.jsx)("div",{className:ms("block-editor-block-types-list__list-item",{"is-synced":u}),draggable:i,onDragStart:e=>{l.current=!0,c&&(r(null),c(e))},onDragEnd:e=>{l.current=!1,p&&p(e)},children:(0,d.jsxs)(yC,{isFirst:t,className:ms("block-editor-block-types-list__item",e),disabled:n.isDisabled,onClick:e=>{e.preventDefault(),o(n,(0,Wa.isAppleOS)()?e.metaKey:e.ctrlKey),r(null)},onKeyDown:e=>{const{keyCode:t}=e;t===Wa.ENTER&&(e.preventDefault(),o(n,(0,Wa.isAppleOS)()?e.metaKey:e.ctrlKey),r(null))},onMouseEnter:()=>{l.current||r(n)},onMouseLeave:()=>r(null),...s,children:[(0,d.jsx)("span",{className:"block-editor-block-types-list__item-icon",style:a,children:(0,d.jsx)(Vu,{icon:n.icon,showColors:!0})}),(0,d.jsx)("span",{className:"block-editor-block-types-list__item-title",children:(0,d.jsx)(ws.__experimentalTruncate,{numberOfLines:3,children:n.title})})]})})})}));var BC=(0,h.forwardRef)((function(e,t){const[n,o]=(0,h.useState)(!1);return(0,h.useEffect)((()=>{n&&(0,Uo.speak)((0,T.__)("Use left and right arrow keys to move through blocks"))}),[n]),(0,d.jsx)("div",{ref:t,role:"listbox","aria-orientation":"horizontal",onFocus:()=>{o(!0)},onBlur:e=>{!e.currentTarget.contains(e.relatedTarget)&&o(!1)},...e})}));var IC=(0,h.forwardRef)((function(e,t){return(0,d.jsx)(ws.Composite.Group,{role:"presentation",ref:t,...e})}));function jC(e,t){const n=[];for(let o=0,r=e.length;o<r;o+=t)n.push(e.slice(o,o+t));return n}var EC=function e({items:t=[],onSelect:n,onHover:o=()=>{},children:r,label:i,isDraggable:s=!0}){const l="block-editor-block-types-list",a=(0,m.useInstanceId)(e,l);return(0,d.jsxs)(BC,{className:l,"aria-label":i,children:[jC(t,3).map(((e,t)=>(0,d.jsx)(IC,{children:e.map(((e,r)=>(0,d.jsx)(CC,{item:e,className:(0,p.getBlockMenuDefaultClassName)(e.id),onSelect:n,onHover:o,isDraggable:s&&!e.isDisabled,isFirst:0===t&&0===r,rowId:`${a}-${t}`},e.id)))},t))),r]})};var TC=function({title:e,icon:t,children:n}){return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{className:"block-editor-inserter__panel-header",children:[(0,d.jsx)("h2",{className:"block-editor-inserter__panel-title",children:e}),(0,d.jsx)(ws.Icon,{icon:t})]}),(0,d.jsx)("div",{className:"block-editor-inserter__panel-content",children:n})]})};var MC=(e,t,n)=>{const o=(0,h.useMemo)((()=>({[pt]:!!n})),[n]),[r]=(0,g.useSelect)((t=>[t(ji).getInserterItems(e,o)]),[e,o]),{getClosestAllowedInsertionPoint:i}=G((0,g.useSelect)(ji)),{createErrorNotice:s}=(0,g.useDispatch)(pr.store),[l,a]=(0,g.useSelect)((e=>{const{getCategories:t,getCollections:n}=e(p.store);return[t(),n()]}),[]);return[r,l,a,(0,h.useCallback)((({name:n,initialAttributes:o,innerBlocks:r,syncStatus:l,content:a},c)=>{const u=i(n,e);if(null===u){const e=(0,p.getBlockType)(n)?.title??n;return void s((0,T.sprintf)((0,T.__)('Block "%s" can\'t be inserted.'),e),{type:"snackbar",id:"inserter-notice"})}const d="unsynced"===l?(0,p.parse)(a,{__unstableSkipMigrationLogs:!0}):(0,p.createBlock)(n,o,(0,p.createBlocksFromInnerBlocksTemplate)(r));t(d,void 0,c,u)}),[i,e,t,s])]};function PC({key:e,children:t}){return(0,d.jsx)(h.Fragment,{children:t},e)}var RC=function({children:e}){return(0,d.jsx)(ws.Composite,{focusShift:!0,focusWrap:"horizontal",render:PC,children:e})};var AC=function(){return(0,d.jsx)("div",{className:"block-editor-inserter__no-results",children:(0,d.jsx)("p",{children:(0,T.__)("No results found.")})})};const NC=[];function LC({items:e,collections:t,categories:n,onSelectItem:o,onHover:r,showMostUsedBlocks:i,className:s}){const l=(0,h.useMemo)((()=>xt(e,"frecency","desc").slice(0,6)),[e]),a=(0,h.useMemo)((()=>e.filter((e=>!e.category))),[e]),c=(0,h.useMemo)((()=>{const n={...t};return Object.keys(t).forEach((t=>{n[t]=e.filter((e=>(e=>e.name.split("/")[0])(e)===t)),0===n[t].length&&delete n[t]})),n}),[e,t]);(0,h.useEffect)((()=>()=>r(null)),[]);const u=(0,m.useAsyncList)(n),p=n.length===u.length,g=(0,h.useMemo)((()=>Object.entries(t)),[t]),f=(0,m.useAsyncList)(p?g:NC);return(0,d.jsxs)("div",{className:s,children:[i&&e.length>3&&!!l.length&&(0,d.jsx)(TC,{title:(0,T._x)("Most used","blocks"),children:(0,d.jsx)(EC,{items:l,onSelect:o,onHover:r,label:(0,T._x)("Most used","blocks")})}),u.map((t=>{const n=e.filter((e=>e.category===t.slug));return n&&n.length?(0,d.jsx)(TC,{title:t.title,icon:t.icon,children:(0,d.jsx)(EC,{items:n,onSelect:o,onHover:r,label:t.title})},t.slug):null})),p&&a.length>0&&(0,d.jsx)(TC,{className:"block-editor-inserter__uncategorized-blocks-panel",title:(0,T.__)("Uncategorized"),children:(0,d.jsx)(EC,{items:a,onSelect:o,onHover:r,label:(0,T.__)("Uncategorized")})}),f.map((([e,t])=>{const n=c[e];return n&&n.length?(0,d.jsx)(TC,{title:t.title,icon:t.icon,children:(0,d.jsx)(EC,{items:n,onSelect:o,onHover:r,label:t.title})},e):null}))]})}var DC=(0,h.forwardRef)((function({rootClientId:e,onInsert:t,onHover:n,showMostUsedBlocks:o},r){const[i,s,l,a]=MC(e,t);if(!i.length)return(0,d.jsx)(AC,{});const c=[],u=[];for(const e of i)"reusable"!==e.category&&(e.isAllowedInCurrentRoot?c.push(e):u.push(e));return(0,d.jsx)(RC,{children:(0,d.jsxs)("div",{ref:r,children:[!!c.length&&(0,d.jsx)(d.Fragment,{children:(0,d.jsx)(LC,{items:c,categories:s,collections:l,onSelectItem:a,onHover:n,showMostUsedBlocks:o,className:"block-editor-inserter__insertable-blocks-at-selection"})}),(0,d.jsx)(LC,{items:u,categories:s,collections:l,onSelectItem:a,onHover:n,showMostUsedBlocks:o,className:"block-editor-inserter__all-blocks"})]})})}));function OC({selectedCategory:e,patternCategories:t,onClickCategory:n}){const o="block-editor-block-patterns-explorer__sidebar";return(0,d.jsx)("div",{className:`${o}__categories-list`,children:t.map((({name:t,label:r})=>(0,d.jsx)(ws.Button,{__next40pxDefaultSize:!0,label:r,className:`${o}__categories-list__item`,isPressed:e===t,onClick:()=>{n(t)},children:r},t)))})}function zC({searchValue:e,setSearchValue:t}){return(0,d.jsx)("div",{className:"block-editor-block-patterns-explorer__search",children:(0,d.jsx)(ws.SearchControl,{__nextHasNoMarginBottom:!0,onChange:t,value:e,label:(0,T.__)("Search"),placeholder:(0,T.__)("Search")})})}var VC=function({selectedCategory:e,patternCategories:t,onClickCategory:n,searchValue:o,setSearchValue:r}){return(0,d.jsxs)("div",{className:"block-editor-block-patterns-explorer__sidebar",children:[(0,d.jsx)(zC,{searchValue:o,setSearchValue:r}),!o&&(0,d.jsx)(OC,{selectedCategory:e,patternCategories:t,onClickCategory:n})]})};function FC({currentPage:e,numPages:t,changePage:n,totalItems:o}){return(0,d.jsxs)(ws.__experimentalVStack,{className:"block-editor-patterns__grid-pagination-wrapper",children:[(0,d.jsx)(ws.__experimentalText,{variant:"muted",children:(0,T.sprintf)((0,T._n)("%s item","%s items",o),o)}),t>1&&(0,d.jsxs)(ws.__experimentalHStack,{expanded:!1,spacing:3,justify:"flex-start",className:"block-editor-patterns__grid-pagination",children:[(0,d.jsxs)(ws.__experimentalHStack,{expanded:!1,spacing:1,className:"block-editor-patterns__grid-pagination-previous",children:[(0,d.jsx)(ws.Button,{variant:"tertiary",onClick:()=>n(1),disabled:1===e,"aria-label":(0,T.__)("First page"),size:"compact",accessibleWhenDisabled:!0,className:"block-editor-patterns__grid-pagination-button",children:(0,d.jsx)("span",{children:"«"})}),(0,d.jsx)(ws.Button,{variant:"tertiary",onClick:()=>n(e-1),disabled:1===e,"aria-label":(0,T.__)("Previous page"),size:"compact",accessibleWhenDisabled:!0,className:"block-editor-patterns__grid-pagination-button",children:(0,d.jsx)("span",{children:"‹"})})]}),(0,d.jsx)(ws.__experimentalText,{variant:"muted",children:(0,T.sprintf)((0,T._x)("%1$s of %2$s","paging"),e,t)}),(0,d.jsxs)(ws.__experimentalHStack,{expanded:!1,spacing:1,className:"block-editor-patterns__grid-pagination-next",children:[(0,d.jsx)(ws.Button,{variant:"tertiary",onClick:()=>n(e+1),disabled:e===t,"aria-label":(0,T.__)("Next page"),size:"compact",accessibleWhenDisabled:!0,className:"block-editor-patterns__grid-pagination-button",children:(0,d.jsx)("span",{children:"›"})}),(0,d.jsx)(ws.Button,{variant:"tertiary",onClick:()=>n(t),disabled:e===t,"aria-label":(0,T.__)("Last page"),size:"compact",accessibleWhenDisabled:!0,className:"block-editor-patterns__grid-pagination-button",children:(0,d.jsx)("span",{children:"»"})})]})]})]})}const HC=({showTooltip:e,title:t,children:n})=>e?(0,d.jsx)(ws.Tooltip,{text:t,children:n}):(0,d.jsx)(d.Fragment,{children:n});function UC({id:e,isDraggable:t,pattern:n,onClick:o,onHover:r,showTitlesAsTooltip:i,category:s,isSelected:l}){const[a,c]=(0,h.useState)(!1),{blocks:u,viewportWidth:g}=n,f=`block-editor-block-patterns-list__item-description-${(0,m.useInstanceId)(UC)}`,b=n.type===it.user,k=(0,h.useMemo)((()=>s&&t?(u??[]).map((e=>{const t=(0,p.cloneBlock)(e);return t.attributes.metadata?.categories?.includes(s)&&(t.attributes.metadata.categories=[s]),t})):u),[u,t,s]);return(0,d.jsx)(wC,{isEnabled:t,blocks:k,pattern:n,children:({draggable:t,onDragStart:s,onDragEnd:p})=>(0,d.jsx)("div",{className:"block-editor-block-patterns-list__list-item",draggable:t,onDragStart:e=>{c(!0),s&&(r?.(null),s(e))},onDragEnd:e=>{c(!1),p&&p(e)},children:(0,d.jsx)(HC,{showTooltip:i&&!b,title:n.title,children:(0,d.jsxs)(ws.Composite.Item,{render:(0,d.jsx)("div",{role:"option","aria-label":n.title,"aria-describedby":n.description?f:void 0,className:ms("block-editor-block-patterns-list__item",{"block-editor-block-patterns-list__list-item-synced":n.type===it.user&&!n.syncStatus,"is-selected":l})}),id:e,onClick:()=>{o(n,u),r?.(null)},onMouseEnter:()=>{a||r?.(n)},onMouseLeave:()=>r?.(null),children:[(0,d.jsx)(kC.Async,{placeholder:(0,d.jsx)(GC,{}),children:(0,d.jsx)(kC,{blocks:u,viewportWidth:g})}),(!i||b)&&(0,d.jsxs)(ws.__experimentalHStack,{className:"block-editor-patterns__pattern-details",spacing:2,children:[b&&!n.syncStatus&&(0,d.jsx)("div",{className:"block-editor-patterns__pattern-icon-wrapper",children:(0,d.jsx)(Ol,{className:"block-editor-patterns__pattern-icon",icon:de})}),(0,d.jsx)("div",{className:"block-editor-block-patterns-list__item-title",children:n.title})]}),!!n.description&&(0,d.jsx)(ws.VisuallyHidden,{id:f,children:n.description})]})})})})}function GC(){return(0,d.jsx)("div",{className:"block-editor-block-patterns-list__item is-placeholder"})}var $C=(0,h.forwardRef)((function({isDraggable:e,blockPatterns:t,onHover:n,onClickPattern:o,orientation:r,label:i=(0,T.__)("Block patterns"),category:s,showTitlesAsTooltip:l,pagingProps:a},c){const[u,p]=(0,h.useState)(void 0),[g,m]=(0,h.useState)(null);(0,h.useEffect)((()=>{const e=t[0]?.name;p(e)}),[t]);const f=(e,t)=>{m(e.name),o(e,t)};return(0,d.jsxs)(ws.Composite,{orientation:r,activeId:u,setActiveId:p,role:"listbox",className:"block-editor-block-patterns-list","aria-label":i,ref:c,children:[t.map((t=>(0,d.jsx)(UC,{id:t.name,pattern:t,onClick:f,onHover:n,isDraggable:e,showTitlesAsTooltip:l,category:s,isSelected:!!g&&g===t.name},t.name))),a&&(0,d.jsx)(FC,{...a})]})}));function WC({destinationRootClientId:e,destinationIndex:t,rootClientId:n,registry:o}){if(n===e)return t;const r=["",...o.select(ji).getBlockParents(e),e],i=r.indexOf(n);return-1!==i?o.select(ji).getBlockIndex(r[i+1])+1:o.select(ji).getBlockOrder(n).length}var KC=function({rootClientId:e="",insertionIndex:t,clientId:n,isAppender:o,onSelect:r,shouldFocusBlock:i=!0,selectBlockOnInsert:s=!0}){const l=(0,g.useRegistry)(),{getSelectedBlock:a,getClosestAllowedInsertionPoint:c,isBlockInsertionPointVisible:u}=G((0,g.useSelect)(ji)),{destinationRootClientId:d,destinationIndex:m}=(0,g.useSelect)((r=>{const{getSelectedBlockClientId:i,getBlockRootClientId:s,getBlockIndex:l,getBlockOrder:a,getInsertionPoint:c}=G(r(ji)),u=i();let d,p=e;const h=c();return void 0!==t?d=t:h&&h.hasOwnProperty("index")?(p=h?.rootClientId?h.rootClientId:e,d=h.index):n?d=l(n):!o&&u?(p=s(u),d=l(u)+1):d=a(p).length,{destinationRootClientId:p,destinationIndex:d}}),[e,t,n,o]),{replaceBlocks:f,insertBlocks:b,showInsertionPoint:k,hideInsertionPoint:v,setLastFocus:_}=G((0,g.useDispatch)(ji)),y=(0,h.useCallback)(((e,t,n=!1,c)=>{(n||i||s)&&_(null);const u=a();!o&&u&&(0,p.isUnmodifiedDefaultBlock)(u,"content")?f(u.clientId,e,null,i||n?0:null,t):b(e,o||void 0===c?m:WC({destinationRootClientId:d,destinationIndex:m,rootClientId:c,registry:l}),o||void 0===c?d:c,s,i||n?0:null,t);const h=Array.isArray(e)?e.length:1,g=(0,T.sprintf)((0,T._n)("%d block added.","%d blocks added.",h),h);(0,Uo.speak)(g),r&&r(e)}),[o,a,f,b,d,m,r,i,s]),x=(0,h.useCallback)((e=>{if(e&&!u()){const t=c(e.name,d);null!==t&&k(t,WC({destinationRootClientId:d,destinationIndex:m,rootClientId:t,registry:l}))}else v()}),[c,u,k,v,d,m]);return[d,y,x]};var ZC=(e,t,n,o)=>{const r=(0,h.useMemo)((()=>({[pt]:!!o})),[o]),{patternCategories:i,patterns:s,userPatternCategories:l}=(0,g.useSelect)((e=>{const{getSettings:n,__experimentalGetAllowedPatterns:o}=G(e(ji)),{__experimentalUserPatternCategories:i,__experimentalBlockPatternCategories:s}=n();return{patterns:o(t,r),userPatternCategories:i,patternCategories:s}}),[t,r]),{getClosestAllowedInsertionPointForPattern:a}=G((0,g.useSelect)(ji)),c=(0,h.useMemo)((()=>{const e=[...i];return l?.forEach((t=>{e.find((e=>e.name===t.name))||e.push(t)})),e}),[i,l]),{createSuccessNotice:u}=(0,g.useDispatch)(pr.store),d=(0,h.useCallback)(((r,i)=>{const s=o?t:a(r,t);if(null===s)return;const l=r.type===it.user&&"unsynced"!==r.syncStatus?[(0,p.createBlock)("core/block",{ref:r.id})]:i;e((l??[]).map((e=>{const t=(0,p.cloneBlock)(e);return t.attributes.metadata?.categories?.includes(n)&&(t.attributes.metadata.categories=[n]),t})),r.name,!1,s),u((0,T.sprintf)((0,T.__)('Block pattern "%s" inserted.'),r.title),{type:"snackbar",id:"inserter-notice"})}),[u,e,n,t,a,o]);return[s,c,d]},qC=n(9681),YC=n.n(qC);function XC(e){return e.toLowerCase()}var QC=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],JC=/[^A-Z0-9]+/gi;function eB(e,t,n){return t instanceof RegExp?e.replace(t,n):t.reduce((function(e,t){return e.replace(t,n)}),e)}const tB=e=>e.name||"",nB=e=>e.title,oB=e=>e.description||"",rB=e=>e.keywords||[],iB=e=>e.category,sB=()=>null,lB=[/([\p{Ll}\p{Lo}\p{N}])([\p{Lu}\p{Lt}])/gu,/([\p{Lu}\p{Lt}])([\p{Lu}\p{Lt}][\p{Ll}\p{Lo}])/gu],aB=new RegExp("(\\p{C}|\\p{P}|\\p{S})+","giu"),cB=new Map,uB=new Map;function dB(e=""){if(cB.has(e))return cB.get(e);const t=function(e,t){void 0===t&&(t={});for(var n=t.splitRegexp,o=void 0===n?QC:n,r=t.stripRegexp,i=void 0===r?JC:r,s=t.transform,l=void 0===s?XC:s,a=t.delimiter,c=void 0===a?" ":a,u=eB(eB(e,o,"$1\0$2"),i,"\0"),d=0,p=u.length;"\0"===u.charAt(d);)d++;for(;"\0"===u.charAt(p-1);)p--;return u.slice(d,p).split("\0").map(l).join(c)}(e,{splitRegexp:lB,stripRegexp:aB}).split(" ").filter(Boolean);return cB.set(e,t),t}function pB(e=""){if(uB.has(e))return uB.get(e);let t=YC()(e);return t=t.replace(/^\//,""),t=t.toLowerCase(),uB.set(e,t),t}const hB=(e="")=>dB(pB(e)),gB=(e,t,n,o)=>{if(0===hB(o).length)return e;return mB(e,o,{getCategory:e=>t.find((({slug:t})=>t===e.category))?.title,getCollection:e=>n[e.name.split("/")[0]]?.title})},mB=(e=[],t="",n={})=>{if(0===hB(t).length)return e;const o=e.map((e=>[e,fB(e,t,n)])).filter((([,e])=>e>0));return o.sort((([,e],[,t])=>t-e)),o.map((([e])=>e))};function fB(e,t,n={}){const{getName:o=tB,getTitle:r=nB,getDescription:i=oB,getKeywords:s=rB,getCategory:l=iB,getCollection:a=sB}=n,c=o(e),u=r(e),d=i(e),p=s(e),h=l(e),g=a(e),m=pB(t),f=pB(u);let b=0;if(m===f)b+=30;else if(f.startsWith(m))b+=20;else{const e=[c,u,d,...p,h,g].join(" ");0===((e,t)=>e.filter((e=>!hB(t).some((t=>t.includes(e))))))(dB(m),e).length&&(b+=10)}if(0!==b&&c.startsWith("core/")){b+=c!==e.id?1:2}return b}function bB(e,t,n,o=""){const[r,i]=(0,h.useState)(1),s=(0,m.usePrevious)(t),l=(0,m.usePrevious)(o);s===t&&l===o||1===r||i(1);const a=e.length,c=r-1,u=(0,h.useMemo)((()=>e.slice(20*c,20*c+20)),[c,e]),d=Math.ceil(e.length/20);return(0,h.useEffect)((function(){const e=(0,Ga.getScrollContainer)(n?.current);e?.scrollTo(0,0)}),[t,n]),{totalItems:a,categoryPatterns:u,numPages:d,changePage:e=>{const t=(0,Ga.getScrollContainer)(n?.current);t?.scrollTo(0,0),i(e)},currentPage:r}}function kB({filterValue:e,filteredBlockPatternsLength:t}){return e?(0,d.jsx)(ws.__experimentalHeading,{level:2,lineHeight:"48px",className:"block-editor-block-patterns-explorer__search-results-count",children:(0,T.sprintf)((0,T._n)("%d pattern found","%d patterns found",t),t)}):null}var vB=function({searchValue:e,selectedCategory:t,patternCategories:n,rootClientId:o,onModalClose:r}){const i=(0,h.useRef)(),s=(0,m.useDebounce)(Uo.speak,500),[l,a]=KC({rootClientId:o,shouldFocusBlock:!0}),[c,,u]=ZC(a,l,t),p=(0,h.useMemo)((()=>n.map((e=>e.name))),[n]),g=(0,h.useMemo)((()=>{const n=c.filter((e=>{if(t===at.name)return!0;if(t===ct.name&&e.type===it.user)return!0;if(t===ut.name&&e.blockTypes?.includes("core/post-content"))return!0;if("uncategorized"===t){const t=e.categories?.some((e=>p.includes(e)))??!1;return!e.categories?.length||!t}return e.categories?.includes(t)}));return e?mB(n,e):n}),[e,c,t,p]);(0,h.useEffect)((()=>{if(!e)return;const t=g.length,n=(0,T.sprintf)((0,T._n)("%d result found.","%d results found.",t),t);s(n)}),[e,s,g.length]);const f=bB(g,t,i),[b,k]=(0,h.useState)(e);e!==b&&(k(e),f.changePage(1));const v=!!g?.length;return(0,d.jsxs)("div",{className:"block-editor-block-patterns-explorer__list",ref:i,children:[(0,d.jsx)(kB,{filterValue:e,filteredBlockPatternsLength:g.length}),(0,d.jsx)(RC,{children:v&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)($C,{blockPatterns:f.categoryPatterns,onClickPattern:(e,t)=>{u(e,t),r()},isDraggable:!1}),(0,d.jsx)(FC,{...f})]})})]})};function _B(e,t="all"){const[n,o]=ZC(void 0,e),r=(0,h.useMemo)((()=>"all"===t?n:n.filter((e=>!dt(e,t)))),[t,n]),i=(0,h.useMemo)((()=>{const e=o.filter((e=>r.some((t=>t.categories?.includes(e.name))))).sort(((e,t)=>e.label.localeCompare(t.label)));return r.some((e=>!function(e,t){return!(!e.categories||!e.categories.length)&&e.categories.some((e=>t.some((t=>t.name===e))))}(e,o)))&&!e.find((e=>"uncategorized"===e.name))&&e.push({name:"uncategorized",label:(0,T._x)("Uncategorized")}),r.some((e=>e.blockTypes?.includes("core/post-content")))&&e.unshift(ut),r.some((e=>e.type===it.user))&&e.unshift(ct),r.length>0&&e.unshift({name:at.name,label:at.label}),(0,Uo.speak)((0,T.sprintf)((0,T._n)("%d category button displayed.","%d category buttons displayed.",e.length),e.length)),e}),[o,r]);return i}function yB({initialCategory:e,rootClientId:t,onModalClose:n}){const[o,r]=(0,h.useState)(""),[i,s]=(0,h.useState)(e?.name),l=_B(t);return(0,d.jsxs)("div",{className:"block-editor-block-patterns-explorer",children:[(0,d.jsx)(VC,{selectedCategory:i,patternCategories:l,onClickCategory:s,searchValue:o,setSearchValue:r}),(0,d.jsx)(vB,{searchValue:o,selectedCategory:i,patternCategories:l,rootClientId:t,onModalClose:n})]})}var xB=function({onModalClose:e,...t}){return(0,d.jsx)(ws.Modal,{title:(0,T.__)("Patterns"),onRequestClose:e,isFullScreen:!0,children:(0,d.jsx)(yB,{onModalClose:e,...t})})};function SB({title:e}){return(0,d.jsx)(ws.__experimentalVStack,{spacing:0,children:(0,d.jsx)(ws.__experimentalView,{children:(0,d.jsx)(ws.__experimentalSpacer,{marginBottom:0,paddingX:4,paddingY:3,children:(0,d.jsxs)(ws.__experimentalHStack,{spacing:2,children:[(0,d.jsx)(ws.Navigator.BackButton,{style:{minWidth:24,padding:0},icon:(0,T.isRTL)()?Zb:qb,size:"small",label:(0,T.__)("Back")}),(0,d.jsx)(ws.__experimentalSpacer,{children:(0,d.jsx)(ws.__experimentalHeading,{level:5,children:e})})]})})})})}function wB({categories:e,children:t}){return(0,d.jsxs)(ws.Navigator,{initialPath:"/",className:"block-editor-inserter__mobile-tab-navigation",children:[(0,d.jsx)(ws.Navigator.Screen,{path:"/",children:(0,d.jsx)(ws.__experimentalItemGroup,{children:e.map((e=>(0,d.jsx)(ws.Navigator.Button,{path:`/category/${e.name}`,as:ws.__experimentalItem,isAction:!0,children:(0,d.jsxs)(ws.__experimentalHStack,{children:[(0,d.jsx)(ws.FlexBlock,{children:e.label}),(0,d.jsx)(Ol,{icon:(0,T.isRTL)()?qb:Zb})]})},e.name)))})}),e.map((e=>(0,d.jsxs)(ws.Navigator.Screen,{path:`/category/${e.name}`,children:[(0,d.jsx)(SB,{title:(0,T.__)("Back")}),t(e)]},e.name)))]})}const CB=e=>"all"!==e&&"user"!==e,BB=[{value:"all",label:(0,T._x)("All","patterns")},{value:it.directory,label:(0,T.__)("Pattern Directory")},{value:it.theme,label:(0,T.__)("Theme & Plugins")},{value:it.user,label:(0,T.__)("User")}];function IB({setPatternSyncFilter:e,setPatternSourceFilter:t,patternSyncFilter:n,patternSourceFilter:o,scrollContainerRef:r,category:i}){const s=i.name===ct.name?it.user:o,l=CB(s),a=(e=>e.name===ct.name)(i),c=(0,h.useMemo)((()=>[{value:"all",label:(0,T._x)("All","patterns")},{value:st,label:(0,T._x)("Synced","patterns"),disabled:l},{value:lt,label:(0,T._x)("Not synced","patterns"),disabled:l}]),[l]);return(0,d.jsx)(d.Fragment,{children:(0,d.jsx)(ws.DropdownMenu,{popoverProps:{placement:"right-end"},label:(0,T.__)("Filter patterns"),toggleProps:{size:"compact"},icon:(0,d.jsx)(Ol,{icon:(0,d.jsx)(ws.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,d.jsx)(ws.Path,{d:"M10 17.5H14V16H10V17.5ZM6 6V7.5H18V6H6ZM8 12.5H16V11H8V12.5Z",fill:"currentColor"})})}),children:()=>(0,d.jsxs)(d.Fragment,{children:[!a&&(0,d.jsx)(ws.MenuGroup,{label:(0,T.__)("Source"),children:(0,d.jsx)(ws.MenuItemsChoice,{choices:BB,onSelect:n=>{var o;t(o=n),CB(o)&&e("all"),r.current?.scrollTo(0,0)},value:s})}),(0,d.jsx)(ws.MenuGroup,{label:(0,T.__)("Type"),children:(0,d.jsx)(ws.MenuItemsChoice,{choices:c,onSelect:t=>{e(t),r.current?.scrollTo(0,0)},value:n})}),(0,d.jsx)("div",{className:"block-editor-inserter__patterns-filter-help",children:(0,h.createInterpolateElement)((0,T.__)("Patterns are available from the <Link>WordPress.org Pattern Directory</Link>, bundled in the active theme, or created by users on this site. Only patterns created on this site can be synced."),{Link:(0,d.jsx)(ws.ExternalLink,{href:(0,T.__)("https://wordpress.org/patterns/")})})})]})})})}const jB=()=>{};function EB({rootClientId:e,onInsert:t,onHover:n=jB,category:o,showTitlesAsTooltip:r}){const[i,,s]=ZC(t,e,o?.name),[l,a]=(0,h.useState)("all"),[c,u]=(0,h.useState)("all"),p=_B(e,c),g=(0,h.useRef)(),m=(0,h.useMemo)((()=>i.filter((e=>!dt(e,c,l)&&(o.name===at.name||(o.name===ct.name&&e.type===it.user||(!(o.name!==ut.name||!e.blockTypes?.includes("core/post-content"))||("uncategorized"===o.name?!e.categories||!e.categories.some((e=>p.some((t=>t.name===e)))):e.categories?.includes(o.name)))))))),[i,p,o.name,c,l]),f=bB(m,o,g),{changePage:b}=f;(0,h.useEffect)((()=>()=>n(null)),[]);const k=(0,h.useCallback)((e=>{a(e),b(1)}),[a,b]),v=(0,h.useCallback)((e=>{u(e),b(1)}),[u,b]);return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(ws.__experimentalVStack,{spacing:2,className:"block-editor-inserter__patterns-category-panel-header",children:[(0,d.jsxs)(ws.__experimentalHStack,{children:[(0,d.jsx)(ws.FlexBlock,{children:(0,d.jsx)(ws.__experimentalHeading,{className:"block-editor-inserter__patterns-category-panel-title",size:13,level:4,as:"div",children:o.label})}),(0,d.jsx)(IB,{patternSyncFilter:l,patternSourceFilter:c,setPatternSyncFilter:k,setPatternSourceFilter:v,scrollContainerRef:g,category:o})]}),!m.length&&(0,d.jsx)(ws.__experimentalText,{variant:"muted",className:"block-editor-inserter__patterns-category-no-results",children:(0,T.__)("No results found")})]}),m.length>0&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(ws.__experimentalText,{size:"12",as:"p",className:"block-editor-inserter__help-text",children:(0,T.__)("Drag and drop patterns into the canvas.")}),(0,d.jsx)($C,{ref:g,blockPatterns:f.categoryPatterns,onClickPattern:s,onHover:n,label:o.label,orientation:"vertical",category:o.name,isDraggable:!0,showTitlesAsTooltip:r,patternFilter:c,pagingProps:f})]})]})}const{Tabs:TB}=G(ws.privateApis);var MB=function({categories:e,selectedCategory:t,onSelectCategory:n,children:o}){const r={type:"tween",duration:(0,m.useReducedMotion)()?0:.25,ease:[.6,0,.4,1]},i=(0,m.usePrevious)(t),s=t?t.name:null,[l,a]=(0,h.useState)(),c=e?.[0]?.name;return null===s&&!l&&c&&a(c),(0,d.jsxs)(TB,{selectOnMove:!1,selectedTabId:s,orientation:"vertical",onSelect:t=>{n(e.find((e=>e.name===t)))},activeTabId:l,onActiveTabIdChange:a,children:[(0,d.jsx)(TB.TabList,{className:"block-editor-inserter__category-tablist",children:e.map((e=>(0,d.jsx)(TB.Tab,{tabId:e.name,"aria-current":e===t?"true":void 0,children:e.label},e.name)))}),e.map((e=>(0,d.jsx)(TB.TabPanel,{tabId:e.name,focusable:!1,children:(0,d.jsx)(ws.__unstableMotion.div,{className:"block-editor-inserter__category-panel",initial:i?"open":"closed",animate:"open",variants:{open:{transform:"translateX( 0 )",transitionEnd:{zIndex:"1"}},closed:{transform:"translateX( -100% )",zIndex:"-1"}},transition:r,children:o})},e.name)))]})};var PB=function({onSelectCategory:e,selectedCategory:t,onInsert:n,rootClientId:o,children:r}){const[i,s]=(0,h.useState)(!1),l=_B(o),a=(0,m.useViewportMatch)("medium","<");return l.length?(0,d.jsxs)(d.Fragment,{children:[!a&&(0,d.jsxs)("div",{className:"block-editor-inserter__block-patterns-tabs-container",children:[(0,d.jsx)(MB,{categories:l,selectedCategory:t,onSelectCategory:e,children:r}),(0,d.jsx)(ws.Button,{__next40pxDefaultSize:!0,className:"block-editor-inserter__patterns-explore-button",onClick:()=>s(!0),variant:"secondary",children:(0,T.__)("Explore all patterns")})]}),a&&(0,d.jsx)(wB,{categories:l,children:e=>(0,d.jsx)("div",{className:"block-editor-inserter__category-panel",children:(0,d.jsx)(EB,{onInsert:n,rootClientId:o,category:e},e.name)})}),i&&(0,d.jsx)(xB,{initialCategory:t||l[0],patternCategories:l,onModalClose:()=>s(!1),rootClientId:o})]}):(0,d.jsx)(AC,{})},RB=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"M19.5 4.5h-7V6h4.44l-5.97 5.97 1.06 1.06L18 7.06v4.44h1.5v-7Zm-13 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3H17v3a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h3V5.5h-3Z"})});const AB={image:"img",video:"video",audio:"audio"};function NB(e,t){const n={id:e.id||void 0,caption:e.caption||void 0},o=e.url,r=e.alt||void 0;"image"===t?(n.url=o,n.alt=r):["video","audio"].includes(t)&&(n.src=o);const i=AB[t],s=(0,d.jsx)(i,{src:e.previewUrl||o,alt:r,controls:"audio"===t||void 0,inert:"true",onError:({currentTarget:t})=>{t.src===e.previewUrl&&(t.src=o)}});return[(0,p.createBlock)(`core/${t}`,n),s]}const LB=["image"],DB={placement:"bottom-end",className:"block-editor-inserter__media-list__item-preview-options__popover"};function OB({category:e,media:t}){if(!e.getReportUrl)return null;const n=e.getReportUrl(t);return(0,d.jsx)(ws.DropdownMenu,{className:"block-editor-inserter__media-list__item-preview-options",label:(0,T.__)("Options"),popoverProps:DB,icon:fv,children:()=>(0,d.jsx)(ws.MenuGroup,{children:(0,d.jsx)(ws.MenuItem,{onClick:()=>window.open(n,"_blank").focus(),icon:RB,children:(0,T.sprintf)((0,T.__)("Report %s"),e.mediaType)})})})}function zB({onClose:e,onSubmit:t}){return(0,d.jsxs)(ws.Modal,{title:(0,T.__)("Insert external image"),onRequestClose:e,className:"block-editor-inserter-media-tab-media-preview-inserter-external-image-modal",children:[(0,d.jsxs)(ws.__experimentalVStack,{spacing:3,children:[(0,d.jsx)("p",{children:(0,T.__)("This image cannot be uploaded to your Media Library, but it can still be inserted as an external image.")}),(0,d.jsx)("p",{children:(0,T.__)("External images can be removed by the external provider without warning and could even have legal compliance issues related to privacy legislation.")})]}),(0,d.jsxs)(ws.Flex,{className:"block-editor-block-lock-modal__actions",justify:"flex-end",expanded:!1,children:[(0,d.jsx)(ws.FlexItem,{children:(0,d.jsx)(ws.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:e,children:(0,T.__)("Cancel")})}),(0,d.jsx)(ws.FlexItem,{children:(0,d.jsx)(ws.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:t,children:(0,T.__)("Insert")})})]})]})}function VB({media:e,onClick:t,category:n}){const[o,r]=(0,h.useState)(!1),[i,s]=(0,h.useState)(!1),[l,a]=(0,h.useState)(!1),[c,u]=(0,h.useMemo)((()=>NB(e,n.mediaType)),[e,n.mediaType]),{createErrorNotice:m,createSuccessNotice:f}=(0,g.useDispatch)(pr.store),{getSettings:b,getBlock:k}=(0,g.useSelect)(ji),{updateBlockAttributes:v}=(0,g.useDispatch)(ji),_=(0,h.useCallback)((e=>{if(l)return;const n=b(),o=(0,p.cloneBlock)(e),{id:i,url:s,caption:c}=o.attributes;i||n.mediaUpload?i?t(o):(a(!0),window.fetch(s).then((e=>e.blob())).then((e=>{const r=(0,Ua.getFilename)(s)||"image.jpg",i=new File([e],r,{type:e.type});n.mediaUpload({filesList:[i],additionalData:{caption:c},onFileChange([e]){(0,$a.isBlobURL)(e.url)||(k(o.clientId)?v(o.clientId,{...o.attributes,id:e.id,url:e.url}):(t({...o,attributes:{...o.attributes,id:e.id,url:e.url}}),f((0,T.__)("Image uploaded and inserted."),{type:"snackbar",id:"inserter-notice"})),a(!1))},allowedTypes:LB,onError(e){m(e,{type:"snackbar",id:"inserter-notice"}),a(!1)}})})).catch((()=>{r(!0),a(!1)}))):r(!0)}),[l,b,t,f,v,m,k]),y="string"==typeof e.title?e.title:e.title?.rendered||(0,T.__)("no title"),x=(0,h.useCallback)((()=>s(!0)),[]),S=(0,h.useCallback)((()=>s(!1)),[]);return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(wC,{isEnabled:!0,blocks:[c],children:({draggable:t,onDragStart:o,onDragEnd:r})=>(0,d.jsx)("div",{className:ms("block-editor-inserter__media-list__list-item",{"is-hovered":i}),draggable:t,onDragStart:o,onDragEnd:r,children:(0,d.jsxs)("div",{onMouseEnter:x,onMouseLeave:S,children:[(0,d.jsx)(ws.Tooltip,{text:y,children:(0,d.jsx)(ws.Composite.Item,{render:(0,d.jsx)("div",{"aria-label":y,role:"option",className:"block-editor-inserter__media-list__item"}),onClick:()=>_(c),children:(0,d.jsxs)("div",{className:"block-editor-inserter__media-list__item-preview",children:[u,l&&(0,d.jsx)("div",{className:"block-editor-inserter__media-list__item-preview-spinner",children:(0,d.jsx)(ws.Spinner,{})})]})})}),!l&&(0,d.jsx)(OB,{category:n,media:e})]})})}),o&&(0,d.jsx)(zB,{onClose:()=>r(!1),onSubmit:()=>{t((0,p.cloneBlock)(c)),f((0,T.__)("Image inserted."),{type:"snackbar",id:"inserter-notice"}),r(!1)}})]})}var FB=function({mediaList:e,category:t,onClick:n,label:o=(0,T.__)("Media List")}){return(0,d.jsx)(ws.Composite,{role:"listbox",className:"block-editor-inserter__media-list","aria-label":o,children:e.map(((e,o)=>(0,d.jsx)(VB,{media:e,category:t,onClick:n},e.id||e.sourceId||o)))})};function HB({rootClientId:e,onInsert:t,category:n}){const[o,r,i]=(0,m.useDebouncedInput)(),{mediaList:s,isLoading:l}=function(e,t={}){const[n,o]=(0,h.useState)(),[r,i]=(0,h.useState)(!1),s=(0,h.useRef)();return(0,h.useEffect)((()=>{(async()=>{const n=JSON.stringify({category:e.name,...t});s.current=n,i(!0),o([]);const r=await(e.fetch?.(t));n===s.current&&(o(r),i(!1))})()}),[e.name,...Object.values(t)]),{mediaList:n,isLoading:r}}(n,{per_page:i?20:10,search:i}),a="block-editor-inserter__media-panel",c=n.labels.search_items||(0,T.__)("Search");return(0,d.jsxs)("div",{className:a,children:[(0,d.jsx)(ws.SearchControl,{__nextHasNoMarginBottom:!0,className:`${a}-search`,onChange:r,value:o,label:c,placeholder:c}),l&&(0,d.jsx)("div",{className:`${a}-spinner`,children:(0,d.jsx)(ws.Spinner,{})}),!l&&!s?.length&&(0,d.jsx)(AC,{}),!l&&!!s?.length&&(0,d.jsx)(FB,{rootClientId:e,onClick:t,mediaList:s,category:n})]})}const UB=["image","video","audio"];var GB=function({rootClientId:e,selectedCategory:t,onSelectCategory:n,onInsert:o,children:r}){const i=function(e){const[t,n]=(0,h.useState)([]),o=(0,g.useSelect)((e=>G(e(ji)).getInserterMediaCategories()),[]),{canInsertImage:r,canInsertVideo:i,canInsertAudio:s}=(0,g.useSelect)((t=>{const{canInsertBlockType:n}=t(ji);return{canInsertImage:n("core/image",e),canInsertVideo:n("core/video",e),canInsertAudio:n("core/audio",e)}}),[e]);return(0,h.useEffect)((()=>{(async()=>{const e=[];if(!o)return;const t=new Map(await Promise.all(o.map((async e=>{if(e.isExternalResource)return[e.name,!0];let t=[];try{t=await e.fetch({per_page:1})}catch(e){}return[e.name,!!t.length]})))),l={image:r,video:i,audio:s};o.forEach((n=>{l[n.mediaType]&&t.get(n.name)&&e.push(n)})),e.length&&n(e)})()}),[r,i,s,o]),t}(e),s=(0,m.useViewportMatch)("medium","<"),l=(0,h.useCallback)((e=>{if(!e?.url)return;const[t]=NB(e,e.type);o(t)}),[o]),a=(0,h.useMemo)((()=>i.map((e=>({...e,label:e.labels.name})))),[i]);return a.length?(0,d.jsxs)(d.Fragment,{children:[!s&&(0,d.jsxs)("div",{className:"block-editor-inserter__media-tabs-container",children:[(0,d.jsx)(MB,{categories:a,selectedCategory:t,onSelectCategory:n,children:r}),(0,d.jsx)(Xa,{children:(0,d.jsx)(Ya,{multiple:!1,onSelect:l,allowedTypes:UB,render:({open:e})=>(0,d.jsx)(ws.Button,{__next40pxDefaultSize:!0,onClick:t=>{t.target.focus(),e()},className:"block-editor-inserter__media-library-button",variant:"secondary","data-unstable-ignore-focus-outside-for-relatedtarget":".media-modal",children:(0,T.__)("Open Media Library")})})})]}),s&&(0,d.jsx)(wB,{categories:a,children:t=>(0,d.jsx)(HB,{onInsert:o,rootClientId:e,category:t})})]}):(0,d.jsx)(AC,{})};const{Fill:$B,Slot:WB}=(0,ws.createSlotFill)("__unstableInserterMenuExtension");$B.Slot=WB;var KB=$B;const ZB=(e,t)=>t?(e.sort((({id:e},{id:n})=>{let o=t.indexOf(e),r=t.indexOf(n);return o<0&&(o=t.length),r<0&&(r=t.length),o-r})),e):e,qB=[];var YB=function({filterValue:e,onSelect:t,onHover:n,onHoverPattern:o,rootClientId:r,clientId:i,isAppender:s,__experimentalInsertionIndex:l,maxBlockPatterns:a,maxBlockTypes:c,showBlockDirectory:u=!1,isDraggable:p=!0,shouldFocusBlock:f=!0,prioritizePatterns:b,selectBlockOnInsert:k,isQuick:v}){const _=(0,m.useDebounce)(Uo.speak,500),{prioritizedBlocks:y}=(0,g.useSelect)((e=>{const t=e(ji).getBlockListSettings(r);return{prioritizedBlocks:t?.prioritizedInserterBlocks||qB}}),[r]),[x,S]=KC({onSelect:t,rootClientId:r,clientId:i,isAppender:s,insertionIndex:l,shouldFocusBlock:f,selectBlockOnInsert:k}),[w,C,B,I]=MC(x,S,v),[j,,E]=ZC(S,x,void 0,v),M=(0,h.useMemo)((()=>{if(0===a)return[];const t=mB(j,e);return void 0!==a?t.slice(0,a):t}),[e,j,a]);let P=c;b&&M.length>2&&(P=0);const R=(0,h.useMemo)((()=>{if(0===P)return[];let t=xt(w.filter((e=>"core/block"!==e.name)),"frecency","desc");!e&&y.length&&(t=ZB(t,y));const n=gB(t,C,B,e);return void 0!==P?n.slice(0,P):n}),[e,w,C,B,P,y]);(0,h.useEffect)((()=>{if(!e)return;const t=R.length+M.length,n=(0,T.sprintf)((0,T._n)("%d result found.","%d results found.",t),t);_(n)}),[e,_,R,M]);const A=(0,m.useAsyncList)(R,{step:9}),N=R.length>0||M.length>0,L=!!R.length&&(0,d.jsx)(TC,{title:(0,d.jsx)(ws.VisuallyHidden,{children:(0,T.__)("Blocks")}),children:(0,d.jsx)(EC,{items:A,onSelect:I,onHover:n,label:(0,T.__)("Blocks"),isDraggable:p})}),D=!!M.length&&(0,d.jsx)(TC,{title:(0,d.jsx)(ws.VisuallyHidden,{children:(0,T.__)("Block patterns")}),children:(0,d.jsx)("div",{className:"block-editor-inserter__quick-inserter-patterns",children:(0,d.jsx)($C,{blockPatterns:M,onClickPattern:E,onHover:o,isDraggable:p})})});return(0,d.jsxs)(RC,{children:[!u&&!N&&(0,d.jsx)(AC,{}),b?D:L,!!R.length&&!!M.length&&(0,d.jsx)("div",{className:"block-editor-inserter__quick-inserter-separator"}),b?L:D,u&&(0,d.jsx)(KB.Slot,{fillProps:{onSelect:I,onHover:n,filterValue:e,hasItems:N,rootClientId:x},children:e=>e.length?e:N?null:(0,d.jsx)(AC,{})})]})},XB=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.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"})});const{Tabs:QB}=G(ws.privateApis);var JB=(0,h.forwardRef)((function({defaultTabId:e,onClose:t,onSelect:n,selectedTab:o,tabs:r,closeButtonLabel:i},s){return(0,d.jsx)("div",{className:"block-editor-tabbed-sidebar",children:(0,d.jsxs)(QB,{selectOnMove:!1,defaultTabId:e,onSelect:n,selectedTabId:o,children:[(0,d.jsxs)("div",{className:"block-editor-tabbed-sidebar__tablist-and-close-button",children:[(0,d.jsx)(ws.Button,{className:"block-editor-tabbed-sidebar__close-button",icon:XB,label:i,onClick:()=>t(),size:"compact"}),(0,d.jsx)(QB.TabList,{className:"block-editor-tabbed-sidebar__tablist",ref:s,children:r.map((e=>(0,d.jsx)(QB.Tab,{tabId:e.name,className:"block-editor-tabbed-sidebar__tab",children:e.title},e.name)))})]}),r.map((e=>(0,d.jsx)(QB.TabPanel,{tabId:e.name,focusable:!1,className:"block-editor-tabbed-sidebar__tabpanel",ref:e.panelRef,children:e.panel},e.name)))]})})}));function eI(e=!0){const{setZoomLevel:t,resetZoomLevel:n}=G((0,g.useDispatch)(ji)),{isZoomedOut:o,isZoomOut:r}=(0,g.useSelect)((e=>{const{isZoomOut:t}=G(e(ji));return{isZoomedOut:t(),isZoomOut:t}}),[]),i=(0,h.useRef)(!1),s=(0,h.useRef)(e);(0,h.useEffect)((()=>{o!==s.current&&(i.current=!1)}),[o]),(0,h.useEffect)((()=>(s.current=e,e!==r()&&(i.current=!0,e?t("auto-scaled"):n()),()=>{i.current&&r()&&n()})),[e,r,n,t])}const tI=()=>{};const nI=(0,h.forwardRef)((function({rootClientId:e,clientId:t,isAppender:n,__experimentalInsertionIndex:o,onSelect:r,showInserterHelpPanel:i,showMostUsedBlocks:s,__experimentalFilterValue:l="",shouldFocusBlock:a=!0,onPatternCategorySelection:c,onClose:u,__experimentalInitialTab:p,__experimentalInitialCategory:f},b){const{isZoomOutMode:k,hasSectionRootClientId:v}=(0,g.useSelect)((e=>{const{isZoomOut:t,getSectionRootClientId:n}=G(e(ji));return{isZoomOutMode:t(),hasSectionRootClientId:!!n()}}),[]),[_,y,x]=(0,m.useDebouncedInput)(l),[S,w]=(0,h.useState)(null),[C,B]=(0,h.useState)(f),[I,j]=(0,h.useState)("all"),[E,M]=(0,h.useState)(null),P=(0,m.useViewportMatch)("large"),[R,A]=(0,h.useState)(p||(k?"patterns":"blocks"));eI(v&&("patterns"===R||"media"===R)&&P);const[N,L,D]=KC({rootClientId:e,clientId:t,isAppender:n,insertionIndex:o,shouldFocusBlock:a}),O=(0,h.useRef)(),z=(0,h.useCallback)(((e,t,n,o)=>{L(e,t,n,o),r(e),window.requestAnimationFrame((()=>{a||O.current?.contains(b.current.ownerDocument.activeElement)||O.current?.querySelector("button").focus()}))}),[L,r,a]),V=(0,h.useCallback)(((e,t,...n)=>{D(!1),L(e,{patternName:t},...n),r()}),[L,r]),F=(0,h.useCallback)((e=>{D(e),w(e)}),[D,w]),H=(0,h.useCallback)(((e,t)=>{B(e),j(t),c?.()}),[B,c]),U="patterns"===R&&!x&&!!C,$="media"===R&&!!E,W=(0,h.useMemo)((()=>"media"===R?null:(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(ws.SearchControl,{__nextHasNoMarginBottom:!0,className:"block-editor-inserter__search",onChange:e=>{S&&w(null),y(e)},value:_,label:(0,T.__)("Search"),placeholder:(0,T.__)("Search")}),!!x&&(0,d.jsx)(YB,{filterValue:x,onSelect:r,onHover:F,rootClientId:e,clientId:t,isAppender:n,__experimentalInsertionIndex:o,showBlockDirectory:!0,shouldFocusBlock:a,prioritizePatterns:"patterns"===R})]})),[R,S,w,y,_,x,r,F,a,t,e,o,n]),K=(0,h.useMemo)((()=>(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("div",{className:"block-editor-inserter__block-list",children:(0,d.jsx)(DC,{ref:O,rootClientId:N,onInsert:z,onHover:F,showMostUsedBlocks:s})}),i&&(0,d.jsxs)("div",{className:"block-editor-inserter__tips",children:[(0,d.jsx)(ws.VisuallyHidden,{as:"h2",children:(0,T.__)("A tip for using the block editor")}),(0,d.jsx)(Kb,{})]})]})),[N,z,F,s,i]),Z=(0,h.useMemo)((()=>(0,d.jsx)(PB,{rootClientId:N,onInsert:V,onSelectCategory:H,selectedCategory:C,children:U&&(0,d.jsx)(EB,{rootClientId:N,onInsert:V,category:C,patternFilter:I,showTitlesAsTooltip:!0})})),[N,V,H,I,C,U]),q=(0,h.useMemo)((()=>(0,d.jsx)(GB,{rootClientId:N,selectedCategory:E,onSelectCategory:M,onInsert:z,children:$&&(0,d.jsx)(HB,{rootClientId:N,onInsert:z,category:E})})),[N,z,E,M,$]),Y=(0,h.useRef)();return(0,h.useLayoutEffect)((()=>{Y.current&&window.requestAnimationFrame((()=>{Y.current.querySelector('[role="tab"][aria-selected="true"]')?.focus()}))}),[]),(0,d.jsxs)("div",{className:ms("block-editor-inserter__menu",{"show-panel":U||$,"is-zoom-out":k}),ref:b,children:[(0,d.jsx)("div",{className:"block-editor-inserter__main-area",children:(0,d.jsx)(JB,{ref:Y,onSelect:e=>{"patterns"!==e&&B(null),A(e)},onClose:u,selectedTab:R,closeButtonLabel:(0,T.__)("Close Block Inserter"),tabs:[{name:"blocks",title:(0,T.__)("Blocks"),panel:(0,d.jsxs)(d.Fragment,{children:[W,"blocks"===R&&!x&&K]})},{name:"patterns",title:(0,T.__)("Patterns"),panel:(0,d.jsxs)(d.Fragment,{children:[W,"patterns"===R&&!x&&Z]})},{name:"media",title:(0,T.__)("Media"),panel:(0,d.jsxs)(d.Fragment,{children:[W,q]})}]})}),i&&S&&(0,d.jsx)(ws.Popover,{className:"block-editor-inserter__preview-container__popover",placement:"right-start",offset:16,focusOnMount:!1,animate:!1,children:(0,d.jsx)(_C,{item:S})})]})}));var oI=(0,h.forwardRef)((function(e,t){return(0,d.jsx)(nI,{...e,onPatternCategorySelection:tI,ref:t})}));function rI({onSelect:e,rootClientId:t,clientId:n,isAppender:o,selectBlockOnInsert:r,hasSearch:i=!0}){const[s,l]=(0,h.useState)(""),[a,c]=KC({onSelect:e,rootClientId:t,clientId:n,isAppender:o,selectBlockOnInsert:r}),[u]=MC(a,c,!0),{setInserterIsOpened:p,insertionIndex:m}=(0,g.useSelect)((e=>{const{getSettings:t,getBlockIndex:o,getBlockCount:r}=e(ji),i=t(),s=o(n),l=r();return{setInserterIsOpened:i.__experimentalSetIsInserterOpened,insertionIndex:-1===s?l:s}}),[n]),f=i&&u.length>6;(0,h.useEffect)((()=>{p&&p(!1)}),[p]);return(0,d.jsxs)("div",{className:ms("block-editor-inserter__quick-inserter",{"has-search":f,"has-expand":p}),children:[f&&(0,d.jsx)(ws.SearchControl,{__nextHasNoMarginBottom:!0,className:"block-editor-inserter__search",value:s,onChange:e=>{l(e)},label:(0,T.__)("Search"),placeholder:(0,T.__)("Search")}),(0,d.jsx)("div",{className:"block-editor-inserter__quick-inserter-results",children:(0,d.jsx)(YB,{filterValue:s,onSelect:e,rootClientId:t,clientId:n,isAppender:o,maxBlockPatterns:s?2:0,maxBlockTypes:6,isDraggable:!1,selectBlockOnInsert:r,isQuick:!0})}),p&&(0,d.jsx)(ws.Button,{__next40pxDefaultSize:!0,className:"block-editor-inserter__quick-inserter-expand",onClick:()=>{p({filterValue:s,onSelect:e,rootClientId:t,insertionIndex:m})},"aria-label":(0,T.__)("Browse all. This will open the main inserter panel in the editor toolbar."),children:(0,T.__)("Browse all")})]})}const iI=({onToggle:e,disabled:t,isOpen:n,blockTitle:o,hasSingleBlockType:r,toggleProps:i={}})=>{const{as:s=ws.Button,label:l,onClick:a,...c}=i;let u=l;return!u&&r?u=(0,T.sprintf)((0,T._x)("Add %s","directly add the only allowed block"),o):u||(u=(0,T._x)("Add block","Generic label for block inserter button")),(0,d.jsx)(s,{__next40pxDefaultSize:!i.as||void 0,icon:cc,label:u,tooltipPosition:"bottom",onClick:function(t){e&&e(t),a&&a(t)},className:"block-editor-inserter__toggle","aria-haspopup":!r&&"true","aria-expanded":!r&&n,disabled:t,...c})};class sI extends h.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({onToggle:e,isOpen:t}){const{disabled:n,blockTitle:o,hasSingleBlockType:r,directInsertBlock:i,toggleProps:s,hasItems:l,renderToggle:a=iI}=this.props;return a({onToggle:e,isOpen:t,disabled:n||!l,blockTitle:o,hasSingleBlockType:r,directInsertBlock:i,toggleProps:s})}renderContent({onClose:e}){const{rootClientId:t,clientId:n,isAppender:o,showInserterHelpPanel:r,__experimentalIsQuick:i,onSelectOrClose:s,selectBlockOnInsert:l}=this.props;return i?(0,d.jsx)(rI,{onSelect:t=>{const n=Array.isArray(t)&&t?.length?t[0]:t;s&&"function"==typeof s&&s(n),e()},rootClientId:t,clientId:n,isAppender:o,selectBlockOnInsert:l}):(0,d.jsx)(oI,{onSelect:()=>{e()},rootClientId:t,clientId:n,isAppender:o,showInserterHelpPanel:r})}render(){const{position:e,hasSingleBlockType:t,directInsertBlock:n,insertOnlyAllowedBlock:o,__experimentalIsQuick:r,onSelectOrClose:i}=this.props;return t||n?this.renderToggle({onToggle:o}):(0,d.jsx)(ws.Dropdown,{className:"block-editor-inserter",contentClassName:ms("block-editor-inserter__popover",{"is-quick":r}),popoverProps:{position:e,shift:!0},onToggle:this.onToggle,expandOnMobile:!0,headerTitle:(0,T.__)("Add a block"),renderToggle:this.renderToggle,renderContent:this.renderContent,onClose:i})}}var lI=(0,m.compose)([(0,g.withSelect)(((e,{clientId:t,rootClientId:n,shouldDirectInsert:o=!0})=>{const{getBlockRootClientId:r,hasInserterItems:i,getAllowedBlocks:s,getDirectInsertBlock:l}=e(ji),{getBlockVariations:a}=e(p.store),c=s(n=n||r(t)||void 0),u=o&&l(n),d=1===c?.length&&0===a(c[0].name,"inserter")?.length;let h=!1;return d&&(h=c[0]),{hasItems:i(n),hasSingleBlockType:d,blockTitle:h?h.title:"",allowedBlockType:h,directInsertBlock:u,rootClientId:n}})),(0,g.withDispatch)(((e,t,{select:n})=>({insertOnlyAllowedBlock(){const{rootClientId:o,clientId:r,isAppender:i,hasSingleBlockType:s,allowedBlockType:l,directInsertBlock:a,onSelectOrClose:c,selectBlockOnInsert:u}=t;if(!s&&!a)return;const{insertBlock:d}=e(ji);let h;if(a){const e=function(e){const{getBlock:t,getPreviousBlockClientId:i}=n(ji);if(!e||!r&&!o)return{};const s={};let l={};if(r){const e=t(r),n=t(i(r));e?.name===n?.name&&(l=n?.attributes||{})}else{const e=t(o);if(e?.innerBlocks?.length){const t=e.innerBlocks[e.innerBlocks.length-1];a&&a?.name===t.name&&(l=t.attributes)}}return e.forEach((e=>{l.hasOwnProperty(e)&&(s[e]=l[e])})),s}(a.attributesToCopy);h=(0,p.createBlock)(a.name,{...a.attributes||{},...e})}else h=(0,p.createBlock)(l.name);d(h,function(){const{getBlockIndex:e,getBlockSelectionEnd:t,getBlockOrder:s,getBlockRootClientId:l}=n(ji);if(r)return e(r);const a=t();return!i&&a&&l(a)===o?e(a)+1:s(o).length}(),o,u),c&&c(h);const g=(0,T.sprintf)((0,T.__)("%s block added"),l.title);(0,Uo.speak)(g)}}))),(0,m.ifCondition)((({hasItems:e,isAppender:t,rootClientId:n,clientId:o})=>e||!t&&!n&&!o))])(sI);function aI({rootClientId:e,className:t,onFocus:n,tabIndex:o,onSelect:r},i){return(0,d.jsx)(lI,{position:"bottom center",rootClientId:e,__experimentalIsQuick:!0,onSelectOrClose:(...e)=>{r&&"function"==typeof r&&r(...e)},renderToggle:({onToggle:e,disabled:r,isOpen:s,blockTitle:l,hasSingleBlockType:a})=>{const c=!a,u=a?(0,T.sprintf)((0,T._x)("Add %s","directly add the only allowed block"),l):(0,T._x)("Add block","Generic label for block inserter button");return(0,d.jsx)(ws.Button,{__next40pxDefaultSize:!0,ref:i,onFocus:n,tabIndex:o,className:ms(t,"block-editor-button-block-appender"),onClick:e,"aria-haspopup":c?"true":void 0,"aria-expanded":c?s:void 0,disabled:r,label:u,showTooltip:!0,children:(0,d.jsx)(Ol,{icon:cc})})},isAppender:!0})}const cI=(0,h.forwardRef)(((e,t)=>(I()("wp.blockEditor.ButtonBlockerAppender",{alternative:"wp.blockEditor.ButtonBlockAppender",since:"5.9"}),aI(e,t))));var uI=(0,h.forwardRef)(aI);function dI({clientId:e,contentRef:t,parentLayout:n}){const o=(0,g.useSelect)((e=>e(ji).getSettings().isDistractionFree),[]),r=bh(e);if(o||!r)return null;const i=n?.isManualPlacement&&window.__experimentalEnableGridInteractivity;return(0,d.jsx)(pI,{gridClientId:e,gridElement:r,isManualGrid:i,ref:t})}const pI=(0,h.forwardRef)((({gridClientId:e,gridElement:t,isManualGrid:n},o)=>{const[r,i]=(0,h.useState)((()=>$b(t))),[s,l]=(0,h.useState)(!1);return(0,h.useEffect)((()=>{const e=()=>i($b(t)),n=new window.ResizeObserver(e);n.observe(t,{box:"border-box"});const o=new window.ResizeObserver(e);return o.observe(t),()=>{n.disconnect(),o.disconnect()}}),[t]),(0,h.useEffect)((()=>{function e(){l(!0)}function t(){l(!1)}return document.addEventListener("drag",e),document.addEventListener("dragend",t),()=>{document.removeEventListener("drag",e),document.removeEventListener("dragend",t)}}),[]),(0,d.jsx)(of,{className:ms("block-editor-grid-visualizer",{"is-dropping-allowed":s}),clientId:e,__unstablePopoverSlot:"__unstable-block-tools-after",children:(0,d.jsx)("div",{ref:o,className:"block-editor-grid-visualizer__grid",style:r.style,children:n?(0,d.jsx)(hI,{gridClientId:e,gridInfo:r}):Array.from({length:r.numItems},((e,t)=>(0,d.jsx)(gI,{color:r.currentColor},t)))})})}));function hI({gridClientId:e,gridInfo:t}){const[n,o]=(0,h.useState)(null),r=(0,g.useSelect)((t=>{const{getBlockOrder:n,getBlockStyles:o}=G(t(ji));return o(n(e))}),[e]),i=(0,h.useMemo)((()=>{const e=[];for(const t of Object.values(r)){const{columnStart:n,rowStart:o,columnSpan:r=1,rowSpan:i=1}=t?.layout??{};n&&o&&e.push(new Fb({columnStart:n,rowStart:o,columnSpan:r,rowSpan:i}))}return e}),[r]);return Vb(1,t.numRows).map((r=>Vb(1,t.numColumns).map((s=>{const l=i.some((e=>e.contains(s,r))),a=n?.contains(s,r)??!1;return(0,d.jsx)(gI,{color:t.currentColor,className:a&&"is-highlighted",children:l?(0,d.jsx)(fI,{column:s,row:r,gridClientId:e,gridInfo:t,setHighlightedRect:o}):(0,d.jsx)(bI,{column:s,row:r,gridClientId:e,gridInfo:t,setHighlightedRect:o})},`${r}-${s}`)}))))}function gI({color:e,children:t,className:n}){return(0,d.jsx)("div",{className:ms("block-editor-grid-visualizer__cell",n),style:{boxShadow:`inset 0 0 0 1px color-mix(in srgb, ${e} 20%, #0000)`,color:e},children:t})}function mI(e,t,n,o,r){const{getBlockAttributes:i,getBlockRootClientId:s,canInsertBlockType:l,getBlockName:a}=(0,g.useSelect)(ji),{updateBlockAttributes:c,moveBlocksToPosition:u,__unstableMarkNextChangeAsNotPersistent:d}=(0,g.useDispatch)(ji),p=km(n,o.numColumns);return function({validateDrag:e,onDragEnter:t,onDragLeave:n,onDrop:o}){const{getDraggedBlockClientIds:r}=(0,g.useSelect)(ji);return(0,m.__experimentalUseDropZone)({onDragEnter(){const[n]=r();n&&e(n)&&t(n)},onDragLeave(){n()},onDrop(){const[t]=r();t&&e(t)&&o(t)}})}({validateDrag(r){const s=a(r);if(!l(s,n))return!1;const c=i(r),u=new Fb({columnStart:e,rowStart:t,columnSpan:c.style?.layout?.columnSpan,rowSpan:c.style?.layout?.rowSpan});return new Fb({columnSpan:o.numColumns,rowSpan:o.numRows}).containsRect(u)},onDragEnter(n){const o=i(n);r(new Fb({columnStart:e,rowStart:t,columnSpan:o.style?.layout?.columnSpan,rowSpan:o.style?.layout?.rowSpan}))},onDragLeave(){r((n=>n?.columnStart===e&&n?.rowStart===t?null:n))},onDrop(o){r(null);const l=i(o);c(o,{style:{...l.style,layout:{...l.style?.layout,columnStart:e,rowStart:t}}}),d(),u([o],s(o),n,p(e,t))}})}function fI({column:e,row:t,gridClientId:n,gridInfo:o,setHighlightedRect:r}){return(0,d.jsx)("div",{className:"block-editor-grid-visualizer__drop-zone",ref:mI(e,t,n,o,r)})}function bI({column:e,row:t,gridClientId:n,gridInfo:o,setHighlightedRect:r}){const{updateBlockAttributes:i,moveBlocksToPosition:s,__unstableMarkNextChangeAsNotPersistent:l}=(0,g.useDispatch)(ji),a=km(n,o.numColumns);return(0,d.jsx)(uI,{rootClientId:n,className:"block-editor-grid-visualizer__appender",ref:mI(e,t,n,o,r),style:{color:o.currentColor},onSelect:o=>{o&&(i(o.clientId,{style:{layout:{columnStart:e,rowStart:t}}}),l(),s([o.clientId],n,n,a(e,t)))}})}function kI({clientId:e,bounds:t,onChange:n,parentLayout:o}){const r=bh(e),i=r?.parentElement,{isManualPlacement:s}=o;return r&&i?(0,d.jsx)(vI,{clientId:e,bounds:t,blockElement:r,rootBlockElement:i,onChange:n,isManualGrid:s&&window.__experimentalEnableGridInteractivity}):null}function vI({clientId:e,bounds:t,blockElement:n,rootBlockElement:o,onChange:r,isManualGrid:i}){const[s,l]=(0,h.useState)(null),[a,c]=(0,h.useState)({top:!1,bottom:!1,left:!1,right:!1});(0,h.useEffect)((()=>{const e=new window.ResizeObserver((()=>{const e=n.getBoundingClientRect(),t=o.getBoundingClientRect();c({top:e.top>t.top,bottom:e.bottom<t.bottom,left:e.left>t.left,right:e.right<t.right})}));return e.observe(n),()=>e.disconnect()}),[n,o]);const u={right:"left",left:"right"},p={top:"flex-end",bottom:"flex-start"},g={display:"flex",justifyContent:"center",alignItems:"center",...u[s]&&{justifyContent:u[s]},...p[s]&&{alignItems:p[s]}};return(0,d.jsx)(of,{className:"block-editor-grid-item-resizer",clientId:e,__unstablePopoverSlot:"__unstable-block-tools-after",additionalStyles:g,children:(0,d.jsx)(ws.ResizableBox,{className:"block-editor-grid-item-resizer__box",size:{width:"100%",height:"100%"},enable:{bottom:a.bottom,bottomLeft:!1,bottomRight:!1,left:a.left,right:a.right,top:a.top,topLeft:!1,topRight:!1},bounds:t,boundsByDirection:!0,onPointerDown:({target:e,pointerId:t})=>{e.setPointerCapture(t)},onResizeStart:(e,t)=>{l(t)},onResizeStop:(e,t,s)=>{const l=parseFloat(Hb(o,"column-gap")),a=parseFloat(Hb(o,"row-gap")),c=Ub(Hb(o,"grid-template-columns"),l),u=Ub(Hb(o,"grid-template-rows"),a),d=new window.DOMRect(n.offsetLeft+s.offsetLeft,n.offsetTop+s.offsetTop,s.offsetWidth,s.offsetHeight),p=Gb(c,d.left)+1,h=Gb(u,d.top)+1,g=Gb(c,d.right,"end")+1,m=Gb(u,d.bottom,"end")+1;r({columnSpan:g-p+1,rowSpan:m-h+1,columnStart:i?p:void 0,rowStart:i?h:void 0})}})})}var _I=(0,d.jsx)(ue.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,d.jsx)(ue.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"})}),yI=(0,d.jsx)(ue.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,d.jsx)(ue.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"})});function xI({layout:e,parentLayout:t,onChange:n,gridClientId:o,blockClientId:r}){const{moveBlocksToPosition:i,__unstableMarkNextChangeAsNotPersistent:s}=(0,g.useDispatch)(ji),l=e?.columnStart??1,a=e?.rowStart??1,c=l+(e?.columnSpan??1)-1,u=a+(e?.rowSpan??1)-1,p=t?.columnCount,h=t?.rowCount,m=km(o,p);return(0,d.jsx)(Rs,{group:"parent",children:(0,d.jsxs)(ws.ToolbarGroup,{className:"block-editor-grid-item-mover__move-button-container",children:[(0,d.jsx)("div",{className:"block-editor-grid-item-mover__move-horizontal-button-container is-left",children:(0,d.jsx)(SI,{icon:(0,T.isRTL)()?Zb:qb,label:(0,T.__)("Move left"),description:(0,T.__)("Move left"),isDisabled:l<=1,onClick:()=>{n({columnStart:l-1}),s(),i([r],o,o,m(l-1,a))}})}),(0,d.jsxs)("div",{className:"block-editor-grid-item-mover__move-vertical-button-container",children:[(0,d.jsx)(SI,{className:"is-up-button",icon:_I,label:(0,T.__)("Move up"),description:(0,T.__)("Move up"),isDisabled:a<=1,onClick:()=>{n({rowStart:a-1}),s(),i([r],o,o,m(l,a-1))}}),(0,d.jsx)(SI,{className:"is-down-button",icon:yI,label:(0,T.__)("Move down"),description:(0,T.__)("Move down"),isDisabled:h&&u>=h,onClick:()=>{n({rowStart:a+1}),s(),i([r],o,o,m(l,a+1))}})]}),(0,d.jsx)("div",{className:"block-editor-grid-item-mover__move-horizontal-button-container is-right",children:(0,d.jsx)(SI,{icon:(0,T.isRTL)()?qb:Zb,label:(0,T.__)("Move right"),description:(0,T.__)("Move right"),isDisabled:p&&c>=p,onClick:()=>{n({columnStart:l+1}),s(),i([r],o,o,m(l+1,a))}})})]})})}function SI({className:e,icon:t,label:n,isDisabled:o,onClick:r,description:i}){const s=`block-editor-grid-item-mover-button__description-${(0,m.useInstanceId)(SI)}`;return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(ws.ToolbarButton,{className:ms("block-editor-grid-item-mover-button",e),icon:t,label:n,"aria-describedby":s,onClick:o?null:r,disabled:o,accessibleWhenDisabled:!0}),(0,d.jsx)(ws.VisuallyHidden,{id:s,children:i})]})}const wI={};function CI({clientId:e,style:t,setAttributes:n,allowSizingOnChildren:o,isManualPlacement:r,parentLayout:i}){const{rootClientId:s,isVisible:l}=(0,g.useSelect)((t=>{const{getBlockRootClientId:n,getBlockEditingMode:o,getTemplateLock:r}=t(ji),i=n(e);return r(i)||"default"!==o(i)?{rootClientId:i,isVisible:!1}:{rootClientId:i,isVisible:!0}}),[e]),[a,c]=(0,h.useState)();if(!l)return null;function u(e){n({style:{...t,layout:{...t?.layout,...e}}})}return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(dI,{clientId:s,contentRef:c,parentLayout:i}),o&&(0,d.jsx)(kI,{clientId:e,bounds:a,onChange:u,parentLayout:i}),r&&window.__experimentalEnableGridInteractivity&&(0,d.jsx)(xI,{layout:t?.layout,parentLayout:i,onChange:u,gridClientId:s,blockClientId:e})]})}var BI={useBlockProps:function({style:e}){const t=(0,g.useSelect)((e=>!e(ji).getSettings().disableLayoutStyles)),n=e?.layout??{},{selfStretch:o,flexSize:r,columnStart:i,rowStart:s,columnSpan:l,rowSpan:a}=n,c=ta()||{},{columnCount:u,minimumColumnWidth:d}=c,p=(0,m.useInstanceId)(wI),h=`.wp-container-content-${p}`;let f="";if(t&&("fixed"===o&&r?f=`${h} {\n\t\t\t\tflex-basis: ${r};\n\t\t\t\tbox-sizing: border-box;\n\t\t\t}`:"fill"===o?f=`${h} {\n\t\t\t\tflex-grow: 1;\n\t\t\t}`:i&&l?f=`${h} {\n\t\t\t\tgrid-column: ${i} / span ${l};\n\t\t\t}`:i?f=`${h} {\n\t\t\t\tgrid-column: ${i};\n\t\t\t}`:l&&(f=`${h} {\n\t\t\t\tgrid-column: span ${l};\n\t\t\t}`),s&&a?f+=`${h} {\n\t\t\t\tgrid-row: ${s} / span ${a};\n\t\t\t}`:s?f+=`${h} {\n\t\t\t\tgrid-row: ${s};\n\t\t\t}`:a&&(f+=`${h} {\n\t\t\t\tgrid-row: span ${a};\n\t\t\t}`),(l||i)&&(d||!u))){let e=parseFloat(d);isNaN(e)&&(e=12);let t=d?.replace(e,"");["px","rem","em"].includes(t)||(t="rem");let n=2;n=l&&i?l+i-1:l||i;const o="px"===t?24:1.5,r=n*e+(n-1)*o,s=2*e+o-1,a=l&&l>1?"1/-1":"auto";f+=`@container (max-width: ${Math.max(r,s)}${t}) {\n\t\t\t\t${h} {\n\t\t\t\t\tgrid-column: ${a};\n\t\t\t\t\tgrid-row: auto;\n\t\t\t\t}\n\t\t\t}`}if(_s({css:f}),f)return{className:`wp-container-content-${p}`}},edit:function({clientId:e,style:t,setAttributes:n}){const o=ta()||{},{type:r="default",allowSizingOnChildren:i=!1,isManualPlacement:s}=o;return"grid"!==r?null:(0,d.jsx)(CI,{clientId:e,style:t,setAttributes:n,allowSizingOnChildren:i,isManualPlacement:s,parentLayout:o})},attributeKeys:["style"],hasSupport:()=>!0};var II={edit:function({clientId:e}){const{templateLock:t,isLockedByParent:n,isEditingAsBlocks:o}=(0,g.useSelect)((t=>{const{getContentLockingParent:n,getTemplateLock:o,getTemporarilyEditingAsBlocks:r}=G(t(ji));return{templateLock:o(e),isLockedByParent:!!n(e),isEditingAsBlocks:r()===e}}),[e]),{stopEditingAsBlocks:r}=G((0,g.useDispatch)(ji)),i=!n&&"contentOnly"===t,s=(0,h.useCallback)((()=>{r(e)}),[e,r]);return i||o?o&&!i&&(0,d.jsx)(Rs,{group:"other",children:(0,d.jsx)(ws.ToolbarButton,{onClick:s,children:(0,T.__)("Done")})}):null},hasSupport:()=>!0};const jI="metadata";(0,f.addFilter)("blocks.registerBlockType","core/metadata/addMetaAttribute",(function(e){return e?.attributes?.[jI]?.type||(e.attributes={...e.attributes,[jI]:{type:"object"}}),e})),(0,f.addFilter)("blocks.switchToBlockType.transformedBlock","core/metadata/addTransforms",(function(e,t,n,o){if(1===o.length&&e.innerBlocks.length===t.length)return e;if(1===o.length&&t.length>1||o.length>1&&1===t.length)return e;if(o.length>1&&t.length>1&&o.length!==t.length)return e;const r=t[n]?.attributes?.metadata;if(!r)return e;const i={};return r.noteId&&!e.attributes?.metadata?.noteId&&(i.noteId=r.noteId),r.name&&!e.attributes?.metadata?.name&&(0,p.hasBlockSupport)(e.name,"renaming",!0)&&(i.name=r.name),void 0!==r.blockVisibility&&!e.attributes?.metadata?.blockVisibility&&(0,p.hasBlockSupport)(e.name,"blockVisibility",!0)&&(i.blockVisibility=r.blockVisibility),Object.keys(i).length>0?{...e,attributes:{...e.attributes,metadata:{...e.attributes.metadata,...i}}}:e}));const EI={};var TI={edit:function({name:e,clientId:t,metadata:{ignoredHookedBlocks:n=[]}={}}){const o=(0,g.useSelect)((e=>e(p.store).getBlockTypes()),[]),r=(0,h.useMemo)((()=>o?.filter((({name:t,blockHooks:o})=>o&&e in o||n.includes(t)))),[o,e,n]),i=(0,g.useSelect)((n=>{const{getBlocks:o,getBlockRootClientId:i,getGlobalBlockCount:s}=n(ji),l=i(t),a=r.reduce(((n,r)=>{if(0===s(r.name))return n;const i=r?.blockHooks?.[e];let a;switch(i){case"before":case"after":a=o(l);break;case"first_child":case"last_child":a=o(t);break;case void 0:a=[...o(l),...o(t)]}const c=a?.find((e=>e.name===r.name));return c?{...n,[r.name]:c.clientId}:n}),{});return Object.values(a).length>0?a:EI}),[r,e,t]),{getBlockIndex:s,getBlockCount:l,getBlockRootClientId:a}=(0,g.useSelect)(ji),{insertBlock:c,removeBlock:u}=(0,g.useDispatch)(ji);if(!r.length)return null;const m=r.reduce(((e,t)=>{const[n]=t.name.split("/");return e[n]||(e[n]=[]),e[n].push(t),e}),{});return(0,d.jsx)(Fa,{children:(0,d.jsxs)(ws.PanelBody,{className:"block-editor-hooks__block-hooks",title:(0,T.__)("Plugins"),initialOpen:!0,children:[(0,d.jsx)("p",{className:"block-editor-hooks__block-hooks-helptext",children:(0,T.__)("Manage the inclusion of blocks added automatically by plugins.")}),Object.keys(m).map((n=>(0,d.jsxs)(h.Fragment,{children:[(0,d.jsx)("h3",{children:n}),m[n].map((n=>{const o=n.name in i;return(0,d.jsx)(ws.ToggleControl,{__nextHasNoMarginBottom:!0,checked:o,label:n.title,onChange:()=>{if(o)u(i[n.name],!1);else{const o=n.blockHooks[e];((e,n)=>{const o=s(t),r=l(t),i=a(t);switch(n){case"before":case"after":c(e,"after"===n?o+1:o,i,!1);break;case"first_child":case"last_child":c(e,"first_child"===n?0:r,t,!1);break;case void 0:c(e,o+1,i,!1)}})((0,p.createBlock)(n.name),o)}}},n.title)}))]},n)))]})})},attributeKeys:["metadata"],hasSupport:()=>!0};const{Menu:MI}=G(ws.privateApis),PI={},RI=(e,t)=>{const n=(0,p.getBlockType)(e).attributes?.[t]?.type;return"rich-text"===n?"string":n};function AI({attribute:e,binding:t,sources:n}){const{clientId:o}=C(),{updateBlockBindings:r}=dv(),i=(0,m.useViewportMatch)("medium","<"),s=(0,h.useContext)(sv),{attributeType:l,select:a}=(0,g.useSelect)((t=>{const{name:n}=t(ji).getBlock(o);return{attributeType:RI(n,e),select:t}}),[o,e]);return(0,d.jsx)(MI,{placement:i?"bottom-start":"left-start",children:Object.entries(n).map((([n,o])=>{const c=o.data?.filter((e=>e?.type===l));return!c||0===c.length?null:(0,d.jsxs)(MI,{placement:i?"bottom-start":"left-start",children:[(0,d.jsx)(MI.SubmenuTriggerItem,{children:(0,d.jsx)(MI.ItemLabel,{children:o.label})}),(0,d.jsx)(MI.Popover,{gutter:8,children:(0,d.jsx)(MI.Group,{children:c.map((i=>{const l={source:n,args:i?.args||{key:i.key}},c=o.getValues({select:a,context:s,bindings:{[e]:l}});return(0,d.jsxs)(MI.CheckboxItem,{onChange:()=>{const n=E()(t?.args,i.args)??i.key===t?.args?.key;r(n?{[e]:void 0}:{[e]:l})},name:e+"-binding",value:c[e],checked:E()(t?.args,i.args)??i.key===t?.args?.key,children:[(0,d.jsx)(MI.ItemLabel,{children:i?.label}),(0,d.jsx)(MI.ItemHelpText,{children:c[e]})]},n+JSON.stringify(i.args)||i.key)}))})})]},n)}))})}function NI({attribute:e,binding:t,sources:n,blockName:o}){const{source:r,args:i}=t||{},s=n?.[r];let l,a=!0;if(void 0===t){const t=RI(o,e);l=Object.values(n).some((e=>e.data?.some((e=>e?.type===t))))?(0,T.__)("Not connected"):(0,T.__)("No sources available"),a=!0}else s?l=s.data?.find((e=>E()(e.args,i)))?.label||s.label||r:(a=!1,l=(0,T.__)("Source not registered"),0===Object.keys(n).length&&(l=(0,T.__)("No sources available")));return(0,d.jsxs)(ws.__experimentalVStack,{className:"block-editor-bindings__item",spacing:0,children:[(0,d.jsx)(ws.__experimentalText,{truncate:!0,children:e}),(0,d.jsx)(ws.__experimentalText,{truncate:!0,variant:a?"muted":void 0,isDestructive:!a,children:l})]})}function LI({attribute:e,binding:t,sources:n,blockName:o}){const r=(0,m.useViewportMatch)("medium","<");return(0,d.jsx)(ws.__experimentalToolsPanelItem,{hasValue:()=>!!t,label:e,children:(0,d.jsx)(MI,{placement:r?"bottom-start":"left-start",children:(0,d.jsx)(MI.TriggerButton,{render:(0,d.jsx)(ws.__experimentalItem,{}),disabled:!0,children:(0,d.jsx)(NI,{attribute:e,binding:t,sources:n,blockName:o})})})})}function DI({attribute:e,binding:t,sources:n,blockName:o}){const{updateBlockBindings:r}=dv(),i=(0,m.useViewportMatch)("medium","<");return(0,d.jsx)(ws.__experimentalToolsPanelItem,{hasValue:()=>!!t,label:e,onDeselect:()=>{r({[e]:void 0})},children:(0,d.jsxs)(MI,{placement:i?"bottom-start":"left-start",children:[(0,d.jsx)(MI.TriggerButton,{render:(0,d.jsx)(ws.__experimentalItem,{}),children:(0,d.jsx)(NI,{attribute:e,binding:t,sources:n,blockName:o})}),(0,d.jsx)(MI.Popover,{gutter:i?8:36,children:(0,d.jsx)(AI,{attribute:e,binding:t,sources:n})})]})})}var OI={edit:({name:e,metadata:t})=>{const n=(0,h.useContext)(sv),{removeAllBlockBindings:o}=dv(),r=(0,m.useViewportMatch)("medium","<")?{}:{popoverProps:{placement:"left-start",offset:259}},i={},{sources:s,canUpdateBlockBindings:l,bindableAttributes:a}=(0,g.useSelect)((t=>{const{__experimentalBlockBindingsSupportedAttributes:o}=t(ji).getSettings(),r=o?.[e];if(!r||0===r.length)return PI;const s=(0,p.getBlockBindingsSources)();return Object.entries(s).forEach((([e,{getFieldsList:o,usesContext:r,label:s,getValues:l}])=>{const a={};if(r?.length)for(const e of r)a[e]=n[e];if(o){const n=o({select:t,context:a});i[e]={data:n||[],label:s,getValues:l}}else i[e]={data:[],label:s,getValues:l}})),{sources:Object.values(i).length>0?i:PI,canUpdateBlockBindings:t(ji).getSettings().canUpdateBlockBindings,bindableAttributes:r}}),[n,e]);if(!a||0===a.length)return null;const{bindings:c}=t||{},u=Object.values(s).some((e=>e.data&&e.data.length>0)),f=!l||!u;return void 0!==c||u?(0,d.jsx)(Fa,{group:"bindings",children:(0,d.jsxs)(ws.__experimentalToolsPanel,{label:(0,T.__)("Attributes"),resetAll:()=>{o()},dropdownMenuProps:r,className:"block-editor-bindings__panel",children:[(0,d.jsx)(ws.__experimentalItemGroup,{isBordered:!0,isSeparated:!0,children:a.map((t=>{const n=c?.[t],o=RI(e,t),r=Object.values(s).some((e=>e.data?.some((e=>e?.type===o))));return f||!r?(0,d.jsx)(LI,{attribute:t,binding:n,sources:s,blockName:e},t):(0,d.jsx)(DI,{attribute:t,binding:n,sources:s,blockName:e},t)}))}),(0,d.jsx)(ws.__experimentalText,{as:"div",variant:"muted",children:(0,d.jsx)("p",{children:(0,T.__)("Attributes connected to custom fields or other dynamic data.")})})]})}):null},attributeKeys:["metadata"],hasSupport:e=>!["core/post-date","core/navigation-link","core/navigation-submenu"].includes(e)};function zI(e,t,n,o,r=1,i=1){for(let s=i;;s++)for(let l=s===i?r:1;l<=t;l++){const t=new Fb({columnStart:l,rowStart:s,columnSpan:n,rowSpan:o});if(!e.some((e=>e.intersectsRect(t))))return[l,s]}}function VI(e){!function({clientId:e}){const{gridLayout:t,blockOrder:n,selectedBlockLayout:o}=(0,g.useSelect)((t=>{const{getBlockAttributes:n,getBlockOrder:o}=t(ji),r=t(ji).getSelectedBlock();return{gridLayout:n(e).layout??{},blockOrder:o(e),selectedBlockLayout:r?.attributes.style?.layout}}),[e]),{getBlockAttributes:r,getBlockRootClientId:i}=(0,g.useSelect)(ji),{updateBlockAttributes:s,__unstableMarkNextChangeAsNotPersistent:l}=(0,g.useDispatch)(ji),a=(0,h.useMemo)((()=>o?new Fb(o):null),[o]),c=(0,m.usePrevious)(a),u=(0,m.usePrevious)(t.isManualPlacement),d=(0,m.usePrevious)(n);(0,h.useEffect)((()=>{const o={};if(t.isManualPlacement){const s=[];for(const e of n){const{columnStart:t,rowStart:n,columnSpan:o=1,rowSpan:i=1}=r(e).style?.layout??{};t&&n&&s.push(new Fb({columnStart:t,rowStart:n,columnSpan:o,rowSpan:i}))}for(const e of n){const n=r(e),{columnStart:i,rowStart:l,columnSpan:a=1,rowSpan:u=1}=n.style?.layout??{};if(i&&l)continue;const[d,p]=zI(s,t.columnCount,a,u,c?.columnEnd,c?.rowEnd);s.push(new Fb({columnStart:d,rowStart:p,columnSpan:a,rowSpan:u})),o[e]={style:{...n.style,layout:{...n.style?.layout,columnStart:d,rowStart:p}}}}const l=Math.max(...s.map((e=>e.rowEnd)));(!t.rowCount||t.rowCount<l)&&(o[e]={layout:{...t,rowCount:l}});for(const e of d??[])if(!n.includes(e)){const t=i(e);if(null===t)continue;const n=r(t);if("grid"===n?.layout?.type)continue;const s=r(e),{columnStart:l,rowStart:a,columnSpan:c,rowSpan:u,...d}=s.style?.layout??{};if(l||a||c||u){const t=0===Object.keys(d).length;o[e]=me(s,["style","layout"],t?void 0:d)}}}else{if(!0===u)for(const e of n){const t=r(e),{columnStart:n,rowStart:i,...s}=t.style?.layout??{};if(n||i){const n=0===Object.keys(s).length;o[e]=me(t,["style","layout"],n?void 0:s)}}t.rowCount&&(o[e]={layout:{...t,rowCount:void 0}})}Object.keys(o).length&&(l(),s(Object.keys(o),o,!0))}),[e,t,d,n,c,u,l,r,i,s])}(e)}function FI({clientId:e,layout:t}){const n=(0,g.useSelect)((t=>{const{isBlockSelected:n,isDraggingBlocks:o,getTemplateLock:r,getBlockEditingMode:i}=t(ji);return!(!o()&&!n(e)||r(e)||"default"!==i(e))}),[e]);return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(VI,{clientId:e}),n&&(0,d.jsx)(dI,{clientId:e,parentLayout:t})]})}(0,f.addFilter)("blocks.registerBlockType","core/metadata/addLabelCallback",(function(e){return e.__experimentalLabel||(0,p.hasBlockSupport)(e,"renaming",!0)&&(e.__experimentalLabel=(e,{context:t})=>{const{metadata:n}=e;if("list-view"===t&&n?.name)return n.name}),e}));const HI=(0,m.createHigherOrderComponent)((e=>t=>"grid"!==t.attributes.layout?.type?(0,d.jsx)(e,{...t},"edit"):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(FI,{clientId:t.clientId,layout:t.attributes.layout}),(0,d.jsx)(e,{...t},"edit")]})),"addGridVisualizerToBlockEdit");function UI(e){const t=e.style?.border||{};return{className:Lp(e)||void 0,style:kf({border:t})}}function GI(e){const{colors:t}=Nd(),n=UI(e),{borderColor:o}=e;if(o){const e=Ip({colors:t,namedColor:o});n.style.borderColor=e.color}return n}function $I(e){return{style:kf({shadow:e.style?.shadow||""})}}function WI(e){const{backgroundColor:t,textColor:n,gradient:o,style:r}=e,i=Ad("background-color",t),s=Ad("color",n),l=Op(o),a=l||r?.color?.gradient;return{className:ms(s,l,{[i]:!a&&!!i,"has-text-color":n||r?.color?.text,"has-background":t||r?.color?.background||o||r?.color?.gradient,"has-link-color":r?.elements?.link?.color})||void 0,style:kf({color:r?.color||{}})}}function KI(e){const{backgroundColor:t,textColor:n,gradient:o}=e,[r,i,s,l,a,c]=Ti("color.palette.custom","color.palette.theme","color.palette.default","color.gradients.custom","color.gradients.theme","color.gradients.default"),u=(0,h.useMemo)((()=>[...r||[],...i||[],...s||[]]),[r,i,s]),d=(0,h.useMemo)((()=>[...l||[],...a||[],...c||[]]),[l,a,c]),p=WI(e);if(t){const e=Pd(u,t);p.style.backgroundColor=e.color}if(o&&(p.style.background=zp(d,o)),n){const e=Pd(u,n);p.style.color=e.color}return p}function ZI(e){const{style:t}=e;return{style:kf({spacing:t?.spacing||{}})}}(0,f.addFilter)("editor.BlockEdit","core/editor/grid-visualizer",HI);const{kebabCase:qI}=G(ws.privateApis);function YI(e,t){let n=e?.style?.typography||{};n={...n,fontSize:Wi({size:e?.style?.typography?.fontSize},t)};const o=kf({typography:n}),r=e?.fontFamily?`has-${qI(e.fontFamily)}-font-family`:"";return{className:ms(r,e?.style?.typography?.textAlign?`has-text-align-${e?.style?.typography?.textAlign}`:"",Pg(e?.fontSize)),style:o}}function XI(e){const[t,n]=(0,h.useState)(e);return(0,h.useEffect)((()=>{e&&n(e)}),[e]),t}var QI;!function(e){e=e.map((e=>({...e,Edit:(0,h.memo)(e.edit)})));const t=(0,m.createHigherOrderComponent)((t=>n=>{const o=C();return[...e.map(((e,t)=>{const{Edit:r,hasSupport:i,attributeKeys:s=[],shareWithChildBlocks:l}=e;if(!(o[b]||o[k]&&l)||!i(n.name))return null;const a={};for(const e of s)n.attributes[e]&&(a[e]=n.attributes[e]);return(0,d.jsx)(r,{name:n.name,isSelected:n.isSelected,clientId:n.clientId,setAttributes:n.setAttributes,__unstableParentLayout:n.__unstableParentLayout,...a},t)})),(0,d.jsx)(t,{...n},"edit")]}),"withBlockEditHooks");(0,f.addFilter)("editor.BlockEdit","core/editor/hooks",t)}([ka,Kg,qu,Xu,Cf,Zf,Xg,lb,Lb,II,TI,OI,BI,Wu].filter(Boolean)),function(e){const t=(0,m.createHigherOrderComponent)((t=>n=>{const[o,r]=(0,h.useState)(Array(e.length).fill(void 0));return[...e.map(((e,t)=>{const{hasSupport:o,attributeKeys:i=[],useBlockProps:s,isMatch:l}=e,a={};for(const e of i)n.attributes[e]&&(a[e]=n.attributes[e]);return!Object.keys(a).length||!o(n.name)||l&&!l(a)?null:(0,d.jsx)(Ss,{index:t,useBlockProps:s,setAllWrapperProps:r,name:n.name,clientId:n.clientId,...a},t)})),(0,d.jsx)(t,{...n,wrapperProps:o.filter(Boolean).reduce(((e,t)=>({...e,...t,className:ms(e.className,t.className),style:{...e.style,...t.style}})),n.wrapperProps||{})},"edit")]}),"withBlockListBlockHooks");(0,f.addFilter)("editor.BlockListBlock","core/editor/hooks",t)}([ka,Kg,Ou,Cf,Ph,gf,Zf,jg,Ng,Xg,Dp,lb,Mb,BI]),QI=[ka,Kg,qu,Yu,Xu,Dp,Xg,Ph,Cf,jg,Ng],(0,f.addFilter)("blocks.getSaveContent.extraProps","core/editor/hooks",(function(e,t,n){return QI.reduce(((e,o)=>{const{hasSupport:r,attributeKeys:i=[],addSaveProps:s}=o,l={};for(const e of i)n[e]&&(l[e]=n[e]);return Object.keys(l).length&&r(t)?s(e,t,l):e}),e)}),0),(0,f.addFilter)("blocks.getSaveContent.extraProps","core/editor/hooks",(e=>(e.hasOwnProperty("className")&&!e.className&&delete e.className,e)));const{kebabCase:JI}=G(ws.privateApis),ej=([e,...t])=>e.toUpperCase()+t.join(""),tj=e=>(0,m.createHigherOrderComponent)((t=>n=>(0,d.jsx)(t,{...n,colors:e})),"withCustomColorPalette"),nj=()=>(0,m.createHigherOrderComponent)((e=>t=>{const[n,o,r]=Ti("color.palette.custom","color.palette.theme","color.palette.default"),i=(0,h.useMemo)((()=>[...n||[],...o||[],...r||[]]),[n,o,r]);return(0,d.jsx)(e,{...t,colors:i})}),"withEditorColorPalette");function oj(e,t){const n=e.reduce(((e,t)=>({...e,..."string"==typeof t?{[t]:JI(t)}:t})),{});return(0,m.compose)([t,e=>class extends h.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 function(e,t){const n=wd(t),o=({color:e})=>n.contrast(e),r=Math.max(...e.map(o));return e.find((e=>o(e)===r)).color}(t,e)}createSetters(){return Object.keys(n).reduce(((e,t)=>{const n=ej(t),o=`custom${n}`;return e[`set${n}`]=this.createSetColor(t,o),e}),{})}createSetColor(e,t){return n=>{const o=Rd(this.props.colors,n);this.props.setAttributes({[e]:o&&o.slug?o.slug:void 0,[t]:o&&o.slug?void 0:n})}}static getDerivedStateFromProps({attributes:e,colors:t},o){return Object.entries(n).reduce(((n,[r,i])=>{const s=Pd(t,e[r],e[`custom${ej(r)}`]),l=o[r],a=l?.color;return a===s.color&&l?n[r]=l:n[r]={...s,class:Ad(i,s.slug)},n}),{})}render(){return(0,d.jsx)(e,{...{...this.props,colors:void 0,...this.state,...this.setters,colorUtils:this.colorUtils}})}}])}function rj(e){return(...t)=>{const n=tj(e);return(0,m.createHigherOrderComponent)(oj(t,n),"withCustomColors")}}function ij(...e){const t=nj();return(0,m.createHigherOrderComponent)(oj(e,t),"withColors")}var sj=function(e){const[t,n]=Ti("typography.fontSizes","typography.customFontSize");return(0,d.jsx)(ws.FontSizePicker,{...e,fontSizes:t,disableCustomFontSizes:!n})};const lj=[],aj=([e,...t])=>e.toUpperCase()+t.join("");var cj=(...e)=>{const t=e.reduce(((e,t)=>(e[t]=`custom${aj(t)}`,e)),{});return(0,m.createHigherOrderComponent)((0,m.compose)([(0,m.createHigherOrderComponent)((e=>t=>{const[n]=Ti("typography.fontSizes");return(0,d.jsx)(e,{...t,fontSizes:n||lj})}),"withFontSizes"),e=>class extends h.Component{constructor(e){super(e),this.setters=this.createSetters(),this.state={}}createSetters(){return Object.entries(t).reduce(((e,[t,n])=>(e[`set${aj(t)}`]=this.createSetFontSize(t,n),e)),{})}createSetFontSize(e,t){return n=>{const o=this.props.fontSizes?.find((({size:e})=>e===Number(n)));this.props.setAttributes({[e]:o&&o.slug?o.slug:void 0,[t]:o&&o.slug?void 0:n})}}static getDerivedStateFromProps({attributes:e,fontSizes:n},o){const r=(t,n)=>!o[n]||(e[n]?e[n]!==o[n].slug:o[n].size!==e[t]);if(!Object.values(t).some(r))return null;const i=Object.entries(t).filter((([e,t])=>r(t,e))).reduce(((t,[o,r])=>{const i=e[o],s=Tg(n,i,e[r]);return t[o]={...s,class:Pg(i)},t}),{});return{...o,...i}}render(){return(0,d.jsx)(e,{...{...this.props,fontSizes:void 0,...this.state,...this.setters}})}}]),"withFontSizes")};const uj=()=>{};var dj={name:"blocks",className:"block-editor-autocompleters__block",triggerPrefix:"/",useItems(e){const{rootClientId:t,selectedBlockId:n,prioritizedBlocks:o}=(0,g.useSelect)((e=>{const{getSelectedBlockClientId:t,getBlock:n,getBlockListSettings:o,getBlockRootClientId:r}=e(ji),{getActiveBlockVariation:i}=e(p.store),s=t(),{name:l,attributes:a}=n(s),c=i(l,a),u=r(s);return{selectedBlockId:c?`${l}/${c.name}`:l,rootClientId:u,prioritizedBlocks:o(u)?.prioritizedInserterBlocks}}),[]),[r,i,s]=MC(t,uj,!0),l=(0,h.useMemo)((()=>(e.trim()?gB(r,i,s,e):ZB(xt(r,"frecency","desc"),o)).filter((e=>e.id!==n)).slice(0,9)),[e,n,r,i,s,o]);return[(0,h.useMemo)((()=>l.map((e=>{const{title:t,icon:n,isDisabled:o}=e;return{key:`block-${e.id}`,value:e,label:(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(Vu,{icon:n,showColors:!0},"icon"),t]}),isDisabled:o}}))),[l])]},allowContext:(e,t)=>!(/\S/.test(e)||/\S/.test(t)),getOptionCompletion(e){const{name:t,initialAttributes:n,innerBlocks:o,syncStatus:r,blocks:i}=e;return{action:"replace",value:"unsynced"===r?(i??[]).map((e=>(0,p.cloneBlock)(e))):(0,p.createBlock)(t,n,(0,p.createBlocksFromInnerBlocksTemplate)(o))}}};const pj=window.wp.apiFetch;var hj=n.n(pj),gj=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"m7.3 9.7 1.4 1.4c.2-.2.3-.3.4-.5 0 0 0-.1.1-.1.3-.5.4-1.1.3-1.6L12 7 9 4 7.2 6.5c-.6-.1-1.1 0-1.6.3 0 0-.1 0-.1.1-.3.1-.4.2-.6.4l1.4 1.4L4 11v1h1l2.3-2.3zM4 20h9v-1.5H4V20zm0-5.5V16h16v-1.5H4z"})});var mj={name:"links",className:"block-editor-autocompleters__link",triggerPrefix:"[[",options:async e=>{let t=await hj()({path:(0,Ua.addQueryArgs)("/wp/v2/search",{per_page:10,search:e,type:"post",order_by:"menu_order"})});return t=t.filter((e=>""!==e.title)),t},getOptionKeywords:e=>[...e.title.split(/\s+/)],getOptionLabel:e=>(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(Ol,{icon:"page"===e.subtype?pc:gj},"icon"),(0,vS.decodeEntities)(e.title)]}),getOptionCompletion:e=>(0,d.jsx)("a",{href:e.url,children:e.title})};const fj=[];function bj({completers:e=fj}){const{name:t}=C();return(0,h.useMemo)((()=>{let n=[...e,mj];return(t===(0,p.getDefaultBlockName)()||(0,p.getBlockSupport)(t,"__experimentalSlashInserter",!1))&&(n=[...n,dj]),(0,f.hasFilter)("editor.Autocomplete.completers")&&(n===e&&(n=n.map((e=>({...e})))),n=(0,f.applyFilters)("editor.Autocomplete.completers",n,t)),n}),[e,t])}var kj=function(e){return(0,d.jsx)(ws.Autocomplete,{...e,completers:bj(e)})},vj=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"M6 4a2 2 0 0 0-2 2v3h1.5V6a.5.5 0 0 1 .5-.5h3V4H6Zm3 14.5H6a.5.5 0 0 1-.5-.5v-3H4v3a2 2 0 0 0 2 2h3v-1.5Zm6 1.5v-1.5h3a.5.5 0 0 0 .5-.5v-3H20v3a2 2 0 0 1-2 2h-3Zm3-16a2 2 0 0 1 2 2v3h-1.5V6a.5.5 0 0 0-.5-.5h-3V4h3Z"})});var _j=function({isActive:e,label:t=(0,T.__)("Full height"),onToggle:n,isDisabled:o}){return(0,d.jsx)(ws.ToolbarButton,{isActive:e,icon:vj,label:t,onClick:()=>n(!e),disabled:o})};const yj=()=>{};var xj=function(e){const{label:t=(0,T.__)("Change matrix alignment"),onChange:n=yj,value:o="center",isDisabled:r}=e,i=(0,d.jsx)(ws.AlignmentMatrixControl.Icon,{value:o});return(0,d.jsx)(ws.Dropdown,{popoverProps:{placement:"bottom-start"},renderToggle:({onToggle:e,isOpen:n})=>(0,d.jsx)(ws.ToolbarButton,{onClick:e,"aria-haspopup":"true","aria-expanded":n,onKeyDown:t=>{n||t.keyCode!==Wa.DOWN||(t.preventDefault(),e())},label:t,icon:i,showTooltip:!0,disabled:r}),renderContent:()=>(0,d.jsx)(ws.AlignmentMatrixControl,{hasFocusBorder:!1,onChange:n,value:o})})};function Sj({clientId:e,maximumLength:t,context:n}){const o=(0,g.useSelect)((t=>{if(!e)return null;const{getBlockName:o,getBlockAttributes:r}=t(ji),{getBlockType:i,getActiveBlockVariation:s}=t(p.store),l=o(e),a=i(l);if(!a)return null;const c=r(e),u=(0,p.__experimentalGetBlockLabel)(a,c,n);if(u!==a.title)return u;const d=s(l,c);return d?.title||a.title}),[e,n]);if(!o)return null;if(t&&t>0&&o.length>t){const e="...";return o.slice(0,t-e.length)+e}return o}function wj({clientId:e,maximumLength:t,context:n}){return Sj({clientId:e,maximumLength:t,context:n})}var Cj=function({rootLabelText:e}){const{selectBlock:t,clearSelectedBlock:n}=(0,g.useDispatch)(ji),{clientId:o,parents:r,hasSelection:i}=(0,g.useSelect)((e=>{const{getSelectionStart:t,getSelectedBlockClientId:n,getEnabledBlockParents:o}=G(e(ji)),r=n();return{parents:o(r),clientId:r,hasSelection:!!t().clientId}}),[]),s=e||(0,T.__)("Document"),l=(0,h.useRef)();return fh(o,l),(0,d.jsxs)("ul",{className:"block-editor-block-breadcrumb",role:"list","aria-label":(0,T.__)("Block breadcrumb"),children:[(0,d.jsxs)("li",{className:i?void 0:"block-editor-block-breadcrumb__current","aria-current":i?void 0:"true",children:[i&&(0,d.jsx)(ws.Button,{size:"small",className:"block-editor-block-breadcrumb__button",onClick:()=>{const e=l.current?.closest(".editor-styles-wrapper");n(),function(e){if(!e)return null;const t=Array.from(document.querySelectorAll('iframe[name="editor-canvas"]').values()).find((t=>(t.contentDocument||t.contentWindow.document)===e.ownerDocument))??e;return t?.closest('[role="region"]')??t}(e)?.focus()},children:s}),!i&&(0,d.jsx)("span",{children:s}),!!o&&(0,d.jsx)(Ol,{icon:oc,className:"block-editor-block-breadcrumb__separator"})]}),r.map((e=>(0,d.jsxs)("li",{children:[(0,d.jsx)(ws.Button,{size:"small",className:"block-editor-block-breadcrumb__button",onClick:()=>t(e),children:(0,d.jsx)(wj,{clientId:e,maximumLength:35})}),(0,d.jsx)(Ol,{icon:oc,className:"block-editor-block-breadcrumb__separator"})]},e))),!!o&&(0,d.jsx)("li",{className:"block-editor-block-breadcrumb__current","aria-current":"true",children:(0,d.jsx)(wj,{clientId:o,maximumLength:35})})]})};function Bj(e){return(0,g.useSelect)((t=>{const{__unstableHasActiveBlockOverlayActive:n}=t(ji);return n(e)}),[e])}const Ij={placement:"top-start"},jj={...Ij,flip:!1,shift:!0},Ej={...Ij,flip:!0,shift:!1};function Tj(e,t,n,o,r){if(!e||!t)return jj;const i=n?.scrollTop||0,s=Qm(t),l=i+e.getBoundingClientRect().top,a=e.ownerDocument.documentElement.clientHeight,c=l+o,u=s.top>c,d=s.height>a-o;return r||!u&&!d?Ej:jj}function Mj({contentElement:e,clientId:t}){const n=bh(t),[o,r]=(0,h.useState)(0),{blockIndex:i,isSticky:s}=(0,g.useSelect)((e=>{const{getBlockIndex:n,getBlockAttributes:o}=e(ji);return{blockIndex:n(t),isSticky:rb(o(t))}}),[t]),l=(0,h.useMemo)((()=>{if(e)return(0,Ga.getScrollContainer)(e)}),[e]),[a,c]=(0,h.useState)((()=>Tj(e,n,l,o,s))),u=(0,m.useRefEffect)((e=>{r(e.offsetHeight)}),[]),d=(0,h.useCallback)((()=>c(Tj(e,n,l,o,s))),[e,n,l,o]);return(0,h.useLayoutEffect)(d,[i,d]),(0,h.useLayoutEffect)((()=>{if(!e||!n)return;const t=e?.ownerDocument?.defaultView;let o;t?.addEventHandler?.("resize",d);const r=n?.ownerDocument?.defaultView;return r.ResizeObserver&&(o=new r.ResizeObserver(d),o.observe(n)),()=>{t?.removeEventHandler?.("resize",d),o&&o.disconnect()}}),[d,e,n]),{...a,ref:u}}function Pj(e){const t=(0,g.useSelect)((t=>{const{getBlockRootClientId:n,getBlockParents:o,__experimentalGetBlockListSettingsForBlocks:r,isBlockInsertionPointVisible:i,getBlockInsertionPoint:s,getBlockOrder:l,hasMultiSelection:a,getLastMultiSelectedBlockClientId:c}=t(ji),u=o(e),d=r(u),p=u.find((e=>d[e]?.__experimentalCaptureToolbars));let h=!1;if(i()){const t=s();h=l(t.rootClientId)[t.index]===e}return{capturingClientId:p,isInsertionPointVisible:h,lastClientId:a()?c():null,rootClientId:n(e)}}),[e]);return t}function Rj({clientId:e,__unstableContentRef:t}){const{capturingClientId:n,isInsertionPointVisible:o,lastClientId:r,rootClientId:i}=Pj(e),s=Mj({contentElement:t?.current,clientId:e});return(0,d.jsx)(of,{clientId:n||e,bottomClientId:r,className:ms("block-editor-block-list__block-side-inserter-popover",{"is-insertion-point-visible":o}),__unstableContentRef:t,...s,children:(0,d.jsx)("div",{className:"block-editor-block-list__empty-block-inserter",children:(0,d.jsx)(lI,{position:"bottom right",rootClientId:i,clientId:e,__experimentalIsQuick:!0})})})}var Aj=({appendToOwnerDocument:e,children:t,clientIds:n,cloneClassname:o,elementId:r,onDragStart:i,onDragEnd:s,fadeWhenDisabled:l=!1,dragComponent:a})=>{const{srcRootClientId:c,isDraggable:u,icon:f,visibleInserter:b,getBlockType:k}=(0,g.useSelect)((e=>{const{canMoveBlocks:t,getBlockRootClientId:o,getBlockName:r,getBlockAttributes:i,isBlockInsertionPointVisible:s}=e(ji),{getBlockType:l,getActiveBlockVariation:a}=e(p.store),c=o(n[0]),u=r(n[0]),d=a(u,i(n[0]));return{srcRootClientId:c,isDraggable:t(n),icon:d?.icon||l(u)?.icon,visibleInserter:s(),getBlockType:l}}),[n]),v=(0,h.useRef)(!1),[_,y,x]=function(){const e=(0,h.useRef)(null),t=(0,h.useRef)(null),n=(0,h.useRef)(null),o=(0,h.useRef)(null);return(0,h.useEffect)((()=>()=>{o.current&&(clearInterval(o.current),o.current=null)}),[]),[(0,h.useCallback)((r=>{e.current=r.clientY,n.current=(0,Ga.getScrollContainer)(r.target),o.current=setInterval((()=>{if(n.current&&t.current){const e=n.current.scrollTop+t.current;n.current.scroll({top:e})}}),25)}),[]),(0,h.useCallback)((o=>{if(!n.current)return;const r=n.current.offsetHeight,i=e.current-n.current.offsetTop,s=o.clientY-n.current.offsetTop;if(o.clientY>i){const e=Math.max(r-i-50,0),n=Math.max(s-i-50,0),o=0===e||0===n?0:n/e;t.current=25*o}else if(o.clientY<i){const e=Math.max(i-50,0),n=Math.max(i-s-50,0),o=0===e||0===n?0:n/e;t.current=-25*o}else t.current=0}),[]),()=>{e.current=null,n.current=null,o.current&&(clearInterval(o.current),o.current=null)}]}(),{getAllowedBlocks:S,getBlockNamesByClientId:w,getBlockRootClientId:C}=(0,g.useSelect)(ji),{startDraggingBlocks:B,stopDraggingBlocks:I}=(0,g.useDispatch)(ji);(0,h.useEffect)((()=>()=>{v.current&&I()}),[]);const j=bh(n[0]),E=j?.closest("body");if((0,h.useEffect)((()=>{if(!E||!l)return;const e=(0,m.throttle)((e=>{if(!e.target.closest("[data-block]"))return;const t=w(n),o=e.target.closest("[data-block]").getAttribute("data-block"),r=S(o),i=w([o])[0];let s;if(0===r?.length){const e=C(o),n=w([e])[0],r=S(e);s=GS(k,r,t,n)}else s=GS(k,r,t,i);s||b?window?.document?.body?.classList?.remove("block-draggable-invalid-drag-token"):window?.document?.body?.classList?.add("block-draggable-invalid-drag-token")}),200);return E.addEventListener("dragover",e),()=>{E.removeEventListener("dragover",e)}}),[n,E,l,S,w,C,k,b]),!u)return t({draggable:!1});const T={type:"block",srcClientIds:n,srcRootClientId:c};return(0,d.jsx)(ws.Draggable,{appendToOwnerDocument:e,cloneClassname:o,__experimentalTransferDataType:"wp-blocks",transferData:T,onDragStart:e=>{window.requestAnimationFrame((()=>{B(n),v.current=!0,_(e),i&&i()}))},onDragOver:y,onDragEnd:()=>{I(),v.current=!1,x(),s&&s()},__experimentalDragComponent:void 0!==a?a:(0,d.jsx)(SC,{count:n.length,icon:f,fadeWhenDisabled:!0}),elementId:r,children:({onDraggableStart:e,onDraggableEnd:n})=>t({draggable:!0,onDragStart:e,onDragEnd:n})})};const Nj=(e,t)=>"up"===e?"horizontal"===t?(0,T.isRTL)()?"right":"left":"up":"down"===e?"horizontal"===t?(0,T.isRTL)()?"left":"right":"down":null;function Lj(e,t,n,o,r,i,s){const l=n+1;if(e>1)return function(e,t,n,o,r,i){const s=t+1;if(n&&o)return(0,T.__)("All blocks are selected, and cannot be moved");if(r>0&&!o){const t=Nj("down",i);if("down"===t)return(0,T.sprintf)((0,T.__)("Move %1$d blocks from position %2$d down by one place"),e,s);if("left"===t)return(0,T.sprintf)((0,T.__)("Move %1$d blocks from position %2$d left by one place"),e,s);if("right"===t)return(0,T.sprintf)((0,T.__)("Move %1$d blocks from position %2$d right by one place"),e,s)}if(r>0&&o){const e=Nj("down",i);if("down"===e)return(0,T.__)("Blocks cannot be moved down as they are already at the bottom");if("left"===e)return(0,T.__)("Blocks cannot be moved left as they are already are at the leftmost position");if("right"===e)return(0,T.__)("Blocks cannot be moved right as they are already are at the rightmost position")}if(r<0&&!n){const t=Nj("up",i);if("up"===t)return(0,T.sprintf)((0,T.__)("Move %1$d blocks from position %2$d up by one place"),e,s);if("left"===t)return(0,T.sprintf)((0,T.__)("Move %1$d blocks from position %2$d left by one place"),e,s);if("right"===t)return(0,T.sprintf)((0,T.__)("Move %1$d blocks from position %2$d right by one place"),e,s)}if(r<0&&n){const e=Nj("up",i);if("up"===e)return(0,T.__)("Blocks cannot be moved up as they are already at the top");if("left"===e)return(0,T.__)("Blocks cannot be moved left as they are already are at the leftmost position");if("right"===e)return(0,T.__)("Blocks cannot be moved right as they are already are at the rightmost position")}}(e,n,o,r,i,s);if(o&&r)return(0,T.sprintf)((0,T.__)("Block %s is the only block, and cannot be moved"),t);if(i>0&&!r){const e=Nj("down",s);if("down"===e)return(0,T.sprintf)((0,T.__)("Move %1$s block from position %2$d down to position %3$d"),t,l,l+1);if("left"===e)return(0,T.sprintf)((0,T.__)("Move %1$s block from position %2$d left to position %3$d"),t,l,l+1);if("right"===e)return(0,T.sprintf)((0,T.__)("Move %1$s block from position %2$d right to position %3$d"),t,l,l+1)}if(i>0&&r){const e=Nj("down",s);if("down"===e)return(0,T.sprintf)((0,T.__)("Block %1$s is at the end of the content and can’t be moved down"),t);if("left"===e)return(0,T.sprintf)((0,T.__)("Block %1$s is at the end of the content and can’t be moved left"),t);if("right"===e)return(0,T.sprintf)((0,T.__)("Block %1$s is at the end of the content and can’t be moved right"),t)}if(i<0&&!o){const e=Nj("up",s);if("up"===e)return(0,T.sprintf)((0,T.__)("Move %1$s block from position %2$d up to position %3$d"),t,l,l-1);if("left"===e)return(0,T.sprintf)((0,T.__)("Move %1$s block from position %2$d left to position %3$d"),t,l,l-1);if("right"===e)return(0,T.sprintf)((0,T.__)("Move %1$s block from position %2$d right to position %3$d"),t,l,l-1)}if(i<0&&o){const e=Nj("up",s);if("up"===e)return(0,T.sprintf)((0,T.__)("Block %1$s is at the beginning of the content and can’t be moved up"),t);if("left"===e)return(0,T.sprintf)((0,T.__)("Block %1$s is at the beginning of the content and can’t be moved left"),t);if("right"===e)return(0,T.sprintf)((0,T.__)("Block %1$s is at the beginning of the content and can’t be moved right"),t)}}const Dj=(e,t)=>"up"===e?"horizontal"===t?(0,T.isRTL)()?Zb:qb:_I:"down"===e?"horizontal"===t?(0,T.isRTL)()?qb:Zb:yI:null,Oj=(e,t)=>"up"===e?"horizontal"===t?(0,T.isRTL)()?(0,T.__)("Move right"):(0,T.__)("Move left"):(0,T.__)("Move up"):"down"===e?"horizontal"===t?(0,T.isRTL)()?(0,T.__)("Move left"):(0,T.__)("Move right"):(0,T.__)("Move down"):null,zj=(0,h.forwardRef)((({clientIds:e,direction:t,orientation:n,...o},r)=>{const i=(0,m.useInstanceId)(zj),s=Array.isArray(e)?e:[e],l=s.length,{disabled:a}=o,{blockType:c,isDisabled:u,rootClientId:h,isFirst:f,isLast:b,firstIndex:k,orientation:v="vertical"}=(0,g.useSelect)((e=>{const{getBlockIndex:o,getBlockRootClientId:r,getBlockOrder:i,getBlock:l,getBlockListSettings:c}=e(ji),u=s[0],d=r(u),h=o(u),g=o(s[s.length-1]),m=i(d),f=l(u),b=0===h,k=g===m.length-1,{orientation:v}=c(d)||{};return{blockType:f?(0,p.getBlockType)(f.name):null,isDisabled:a||("up"===t?b:k),rootClientId:d,firstIndex:h,isFirst:b,isLast:k,orientation:n||v}}),[e,t]),{moveBlocksDown:_,moveBlocksUp:y}=(0,g.useDispatch)(ji),x="up"===t?y:_,S=`block-editor-block-mover-button__description-${i}`;return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(ws.Button,{__next40pxDefaultSize:!0,ref:r,className:ms("block-editor-block-mover-button",`is-${t}-button`),icon:Dj(t,v),label:Oj(t,v),"aria-describedby":S,...o,onClick:u?null:t=>{x(e,h),o.onClick&&o.onClick(t)},disabled:u,accessibleWhenDisabled:!0}),(0,d.jsx)(ws.VisuallyHidden,{id:S,children:Lj(l,c&&c.title,k,f,b,"up"===t?-1:1,v)})]})})),Vj=(0,h.forwardRef)(((e,t)=>(0,d.jsx)(zj,{direction:"up",ref:t,...e}))),Fj=(0,h.forwardRef)(((e,t)=>(0,d.jsx)(zj,{direction:"down",ref:t,...e})));var Hj=function({clientIds:e,hideDragHandle:t,isBlockMoverUpButtonDisabled:n,isBlockMoverDownButtonDisabled:o}){const{canMove:r,rootClientId:i,isFirst:s,isLast:l,orientation:a,isManualGrid:c}=(0,g.useSelect)((t=>{const{getBlockIndex:n,getBlockListSettings:o,canMoveBlocks:r,getBlockOrder:i,getBlockRootClientId:s,getBlockAttributes:l}=t(ji),a=Array.isArray(e)?e:[e],c=a[0],u=s(c),d=n(c),p=n(a[a.length-1]),h=i(u),{layout:g={}}=l(u)??{};return{canMove:r(e),rootClientId:u,isFirst:0===d,isLast:p===h.length-1,orientation:o(u)?.orientation,isManualGrid:"grid"===g.type&&g.isManualPlacement&&window.__experimentalEnableGridInteractivity}}),[e]);return!r||s&&l&&!i||t&&c?null:(0,d.jsxs)(ws.ToolbarGroup,{className:ms("block-editor-block-mover",{"is-horizontal":"horizontal"===a}),children:[!t&&(0,d.jsx)(Aj,{clientIds:e,fadeWhenDisabled:!0,children:e=>(0,d.jsx)(ws.Button,{__next40pxDefaultSize:!0,icon:xC,className:"block-editor-block-mover__drag-handle",label:(0,T.__)("Drag"),tabIndex:"-1",...e})}),!c&&(0,d.jsxs)("div",{className:"block-editor-block-mover__move-button-container",children:[(0,d.jsx)(ws.ToolbarItem,{children:t=>(0,d.jsx)(Vj,{disabled:n,clientIds:e,...t})}),(0,d.jsx)(ws.ToolbarItem,{children:t=>(0,d.jsx)(Fj,{disabled:o,clientIds:e,...t})})]})]})};const{clearTimeout:Uj,setTimeout:Gj}=window,$j=200;function Wj({ref:e,isFocused:t,highlightParent:n,debounceTimeout:o=$j}){const{getSelectedBlockClientId:r,getBlockRootClientId:i}=(0,g.useSelect)(ji),{toggleBlockHighlight:s}=(0,g.useDispatch)(ji),l=(0,h.useRef)(),a=(0,g.useSelect)((e=>e(ji).getSettings().isDistractionFree),[]),c=e=>{if(e&&a)return;const t=r(),o=n?i(t):t;s(o,e)},u=()=>{const n=e?.current&&e.current.matches(":hover");return!t&&!n},d=()=>{const e=l.current;e&&Uj&&Uj(e)};return(0,h.useEffect)((()=>()=>{c(!1),d()}),[]),{debouncedShowGestures:e=>{e&&e.stopPropagation(),d(),c(!0)},debouncedHideGestures:e=>{e&&e.stopPropagation(),d(),l.current=Gj((()=>{u()&&c(!1)}),o)}}}function Kj({ref:e,highlightParent:t=!1,debounceTimeout:n=$j}){const[o,r]=(0,h.useState)(!1),{debouncedShowGestures:i,debouncedHideGestures:s}=Wj({ref:e,debounceTimeout:n,isFocused:o,highlightParent:t}),l=(0,h.useRef)(!1),a=()=>e?.current&&e.current.contains(e.current.ownerDocument.activeElement);return(0,h.useEffect)((()=>{const t=e.current,n=()=>{a()&&(r(!0),i())},o=()=>{a()||(r(!1),s())};return t&&!l.current&&(t.addEventListener("focus",n,!0),t.addEventListener("blur",o,!0),l.current=!0),()=>{t&&(t.removeEventListener("focus",n),t.removeEventListener("blur",o))}}),[e,l,r,i,s]),{onMouseMove:i,onMouseLeave:s}}function Zj(){const{selectBlock:e}=(0,g.useDispatch)(ji),{parentClientId:t}=(0,g.useSelect)((e=>{const{getBlockParents:t,getSelectedBlockClientId:n,getParentSectionBlock:o}=G(e(ji)),r=n(),i=o(r),s=t(r);return{parentClientId:i??s[s.length-1]}}),[]),n=Xf(t),o=(0,h.useRef)(),r=Kj({ref:o,highlightParent:!0});return(0,d.jsx)("div",{className:"block-editor-block-parent-selector",ref:o,...r,children:(0,d.jsx)(ws.ToolbarButton,{className:"block-editor-block-parent-selector__button",onClick:()=>e(t),label:(0,T.sprintf)((0,T.__)("Select parent block: %s"),n?.title),showTooltip:!0,icon:(0,d.jsx)(Vu,{icon:n?.icon})})},t)}var qj=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M5 4.5h11a.5.5 0 0 1 .5.5v11a.5.5 0 0 1-.5.5H5a.5.5 0 0 1-.5-.5V5a.5.5 0 0 1 .5-.5ZM3 5a2 2 0 0 1 2-2h11a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5Zm17 3v10.75c0 .69-.56 1.25-1.25 1.25H6v1.5h12.75a2.75 2.75 0 0 0 2.75-2.75V8H20Z"})});function Yj({blocks:e}){return(0,m.useViewportMatch)("medium","<")?null:(0,d.jsx)("div",{className:"block-editor-block-switcher__popover-preview-container",children:(0,d.jsx)(ws.Popover,{className:"block-editor-block-switcher__popover-preview",placement:"right-start",focusOnMount:!1,offset:16,children:(0,d.jsxs)("div",{className:"block-editor-block-switcher__preview",children:[(0,d.jsx)("div",{className:"block-editor-block-switcher__preview-title",children:(0,T.__)("Preview")}),(0,d.jsx)(kC,{viewportWidth:601,blocks:e})]})})})}const Xj={};function Qj({item:e,onSelect:t,setHoveredTransformItemName:n}){const{name:o,icon:r,title:i}=e;return(0,d.jsxs)(ws.MenuItem,{className:(0,p.getBlockMenuDefaultClassName)(o),onClick:e=>{e.preventDefault(),t(o)},onMouseLeave:()=>n(null),onMouseEnter:()=>n(o),children:[(0,d.jsx)(Vu,{icon:r,showColors:!0}),i]})}var Jj=({transformations:e,onSelect:t,blocks:n})=>{const[o,r]=(0,h.useState)();return(0,d.jsxs)(d.Fragment,{children:[o&&(0,d.jsx)(Yj,{blocks:(0,p.cloneBlock)(n[0],e.find((({name:e})=>e===o)).attributes)}),e?.map((e=>(0,d.jsx)(Qj,{item:e,onSelect:t,setHoveredTransformItemName:r},e.name)))]})};function eE({restTransformations:e,onSelect:t,setHoveredTransformItemName:n}){return e.map((e=>(0,d.jsx)(tE,{item:e,onSelect:t,setHoveredTransformItemName:n},e.name)))}function tE({item:e,onSelect:t,setHoveredTransformItemName:n}){const{name:o,icon:r,title:i,isDisabled:s}=e;return(0,d.jsxs)(ws.MenuItem,{className:(0,p.getBlockMenuDefaultClassName)(o),onClick:e=>{e.preventDefault(),t(o)},disabled:s,onMouseLeave:()=>n(null),onMouseEnter:()=>n(o),children:[(0,d.jsx)(Vu,{icon:r,showColors:!0}),i]})}var nE=({className:e,possibleBlockTransformations:t,possibleBlockVariationTransformations:n,onSelect:o,onSelectVariation:r,blocks:i})=>{const[s,l]=(0,h.useState)(),{priorityTextTransformations:a,restTransformations:c}=function(e){const t={"core/paragraph":1,"core/heading":2,"core/list":3,"core/quote":4},n=(0,h.useMemo)((()=>{const n=Object.keys(t),o=e.reduce(((e,t)=>{const{name:o}=t;return n.includes(o)?e.priorityTextTransformations.push(t):e.restTransformations.push(t),e}),{priorityTextTransformations:[],restTransformations:[]});if(1===o.priorityTextTransformations.length&&"core/quote"===o.priorityTextTransformations[0].name){const e=o.priorityTextTransformations.pop();o.restTransformations.push(e)}return o}),[e]);return n.priorityTextTransformations.sort((({name:e},{name:n})=>t[e]<t[n]?-1:1)),n}(t),u=a.length&&c.length,g=!!c.length&&(0,d.jsx)(eE,{restTransformations:c,onSelect:o,setHoveredTransformItemName:l});return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(ws.MenuGroup,{label:(0,T.__)("Transform to"),className:e,children:[s&&(0,d.jsx)(Yj,{blocks:(0,p.switchToBlockType)(i,s)}),!!n?.length&&(0,d.jsx)(Jj,{transformations:n,blocks:i,onSelect:r}),a.map((e=>(0,d.jsx)(tE,{item:e,onSelect:o,setHoveredTransformItemName:l},e.name))),!u&&g]}),!!u&&(0,d.jsx)(ws.MenuGroup,{className:e,children:g})]})};function oE(e,t,n){const o=new(wg())(e);return t&&o.remove("is-style-"+t.name),o.add("is-style-"+n.name),o.value}function rE(e){return e?.find((e=>e.isDefault))}function iE({clientId:e,onSwitch:t}){const{styles:n,block:o,blockType:r,className:i}=(0,g.useSelect)((t=>{const{getBlock:n}=t(ji),o=n(e);if(!o)return{};const r=(0,p.getBlockType)(o.name),{getBlockStyles:i}=t(p.store);return{block:o,blockType:r,styles:i(o.name),className:o.attributes.className||""}}),[e]),{updateBlockAttributes:s}=(0,g.useDispatch)(ji),l=function(e){return e&&0!==e.length?rE(e)?e:[{name:"default",label:(0,T._x)("Default","block style"),isDefault:!0},...e]:[]}(n),a=function(e,t){for(const n of new(wg())(t).values()){if(-1===n.indexOf("is-style-"))continue;const t=n.substring(9),o=e?.find((({name:e})=>e===t));if(o)return o}return rE(e)}(l,i),c=function(e,t){return(0,h.useMemo)((()=>{const n=t?.example,o=t?.name;return n&&o?(0,p.getBlockFromExample)(o,{attributes:n.attributes,innerBlocks:n.innerBlocks}):e?(0,p.cloneBlock)(e):void 0}),[t?.example?e?.name:e,t])}(o,r);return{onSelect:n=>{const o=oE(i,a,n);s(e,{className:o}),t()},stylesToRender:l,activeStyle:a,genericPreviewBlock:c,className:i}}const sE=()=>{};function lE({clientId:e,onSwitch:t=sE}){const{onSelect:n,stylesToRender:o,activeStyle:r}=iE({clientId:e,onSwitch:t});return o&&0!==o.length?(0,d.jsx)(d.Fragment,{children:o.map((e=>{const t=e.label||e.name;return(0,d.jsx)(ws.MenuItem,{icon:r.name===e.name?ip:null,onClick:()=>n(e),children:(0,d.jsx)(ws.__experimentalText,{as:"span",limit:18,ellipsizeMode:"tail",truncate:!0,children:t})},e.name)}))}):null}function aE({hoveredBlock:e,onSwitch:t}){const{clientId:n}=e;return(0,d.jsx)(ws.MenuGroup,{label:(0,T.__)("Styles"),className:"block-editor-block-switcher__styles__menugroup",children:(0,d.jsx)(lE,{clientId:n,onSwitch:t})})}const cE=(e,t,n=new Set)=>{const{clientId:o,name:r,innerBlocks:i=[]}=e;if(!n.has(o)){if(r===t)return e;for(const e of i){const o=cE(e,t,n);if(o)return o}}},uE=(e,t)=>{const n=((e,t)=>{const n=(0,p.getBlockAttributesNamesByRole)(e,"content");return n?.length?n.reduce(((e,n)=>(t[n]&&(e[n]=t[n]),e)),{}):t})(t.name,t.attributes);e.attributes={...e.attributes,...n}};var dE=(e,t)=>(0,h.useMemo)((()=>e.reduce(((e,n)=>{const o=((e,t)=>{const n=t.map((e=>(0,p.cloneBlock)(e))),o=new Set;for(const t of e){let e=!1;for(const r of n){const n=cE(r,t.name,o);if(n){e=!0,o.add(n.clientId),uE(n,t);break}}if(!e)return}return n})(t,n.blocks);return o&&e.push({...n,transformedBlocks:o}),e}),[])),[e,t]);function pE({patterns:e,onSelect:t}){const n=(0,m.useViewportMatch)("medium","<");return(0,d.jsx)("div",{className:"block-editor-block-switcher__popover-preview-container",children:(0,d.jsx)(ws.Popover,{className:"block-editor-block-switcher__popover-preview",placement:n?"bottom":"right-start",offset:16,children:(0,d.jsx)("div",{className:"block-editor-block-switcher__preview is-pattern-list-preview",children:(0,d.jsx)(hE,{patterns:e,onSelect:t})})})})}function hE({patterns:e,onSelect:t}){return(0,d.jsx)(ws.Composite,{role:"listbox",className:"block-editor-block-switcher__preview-patterns-container","aria-label":(0,T.__)("Patterns list"),children:e.map((e=>(0,d.jsx)(gE,{pattern:e,onSelect:t},e.name)))})}function gE({pattern:e,onSelect:t}){const n="block-editor-block-switcher__preview-patterns-container",o=(0,m.useInstanceId)(gE,`${n}-list__item-description`);return(0,d.jsxs)("div",{className:`${n}-list__list-item`,children:[(0,d.jsxs)(ws.Composite.Item,{render:(0,d.jsx)("div",{role:"option","aria-label":e.title,"aria-describedby":e.description?o:void 0,className:`${n}-list__item`}),onClick:()=>t(e.transformedBlocks),children:[(0,d.jsx)(kC,{blocks:e.transformedBlocks,viewportWidth:e.viewportWidth||500}),(0,d.jsx)("div",{className:`${n}-list__item-title`,children:e.title})]}),!!e.description&&(0,d.jsx)(ws.VisuallyHidden,{id:o,children:e.description})]})}var mE=function({blocks:e,patterns:t,onSelect:n}){const[o,r]=(0,h.useState)(!1),i=dE(t,e);return i.length?(0,d.jsxs)(ws.MenuGroup,{className:"block-editor-block-switcher__pattern__transforms__menugroup",children:[o&&(0,d.jsx)(pE,{patterns:i,onSelect:n}),(0,d.jsx)(ws.MenuItem,{onClick:e=>{e.preventDefault(),r(!o)},icon:Zb,children:(0,T.__)("Patterns")})]}):null};function fE({onClose:e,clientIds:t,hasBlockStyles:n,canRemove:o}){const{replaceBlocks:r,multiSelect:i,updateBlockAttributes:s}=(0,g.useDispatch)(ji),{possibleBlockTransformations:l,patterns:a,blocks:c,isUsingBindings:u}=(0,g.useSelect)((e=>{const{getBlockAttributes:n,getBlocksByClientId:o,getBlockRootClientId:r,getBlockTransformItems:i,__experimentalGetPatternTransformItems:s}=e(ji),l=r(t[0]),a=o(t);return{blocks:a,possibleBlockTransformations:i(a,l),patterns:s(a,l),isUsingBindings:t.every((e=>!!n(e)?.metadata?.bindings))}}),[t]),m=function({clientIds:e,blocks:t}){const{activeBlockVariation:n,blockVariationTransformations:o}=(0,g.useSelect)((n=>{const{getBlockAttributes:o,canRemoveBlocks:r}=n(ji),{getActiveBlockVariation:i,getBlockVariations:s}=n(p.store),l=r(e);if(1!==t.length||!l)return Xj;const[a]=t;return{blockVariationTransformations:s(a.name,"transform"),activeBlockVariation:i(a.name,o(a.clientId))}}),[e,t]);return(0,h.useMemo)((()=>o?.filter((({name:e})=>e!==n?.name))),[o,n])}({clientIds:t,blocks:c});function f(e){e.length>1&&i(e[0].clientId,e[e.length-1].clientId)}const b=1===c.length,k=b&&((0,p.isTemplatePart)(c[0])||(0,p.isReusableBlock)(c[0])),v=!!l?.length&&o&&!k,_=!!m?.length,y=!!a?.length&&o,x=v||_;if(!(n||x||y))return(0,d.jsx)("p",{className:"block-editor-block-switcher__no-transforms",children:(0,T.__)("No transforms.")});const S=b?(0,T._x)("This block is connected.","block toolbar button label and description"):(0,T._x)("These blocks are connected.","block toolbar button label and description");return(0,d.jsxs)("div",{className:"block-editor-block-switcher__container",children:[y&&(0,d.jsx)(mE,{blocks:c,patterns:a,onSelect:n=>{!function(e){r(t,e),f(e)}(n),e()}}),x&&(0,d.jsx)(nE,{className:"block-editor-block-switcher__transforms__menugroup",possibleBlockTransformations:l,possibleBlockVariationTransformations:m,blocks:c,onSelect:n=>{!function(e){const n=(0,p.switchToBlockType)(c,e);r(t,n),f(n)}(n),e()},onSelectVariation:t=>{!function(e){s(c[0].clientId,{...m.find((({name:t})=>t===e)).attributes})}(t),e()}}),n&&(0,d.jsx)(aE,{hoveredBlock:c[0],onSwitch:e}),u&&(0,d.jsx)(ws.MenuGroup,{children:(0,d.jsx)(ws.__experimentalText,{className:"block-editor-block-switcher__binding-indicator",children:S})})]})}var bE=({clientIds:e})=>{const{hasContentOnlyLocking:t,canRemove:n,hasBlockStyles:o,icon:r,invalidBlocks:i,isReusable:s,isTemplate:l,isDisabled:a,isSectionInSelection:c}=(0,g.useSelect)((t=>{const{getTemplateLock:n,getBlocksByClientId:o,getBlockAttributes:r,canRemoveBlocks:i,getBlockEditingMode:s,isSectionBlock:l}=G(t(ji)),{getBlockStyles:a,getBlockType:c,getActiveBlockVariation:u}=t(p.store),d=o(e);if(!d.length||d.some((e=>!e)))return{invalidBlocks:!0};const[{name:h}]=d,g=1===d.length,m=c(h),f=s(e[0]);let b,k;if(g){const t=u(h,r(e[0]));b=t?.icon||m.icon,k="contentOnly"===n(e[0])}else{const t=1===new Set(d.map((({name:e})=>e))).size;k=e.some((e=>"contentOnly"===n(e))),b=t?m.icon:qj}const v=e.some((e=>l(e)));return{canRemove:i(e),hasBlockStyles:g&&!!a(h)?.length,icon:b,isReusable:g&&(0,p.isReusableBlock)(d[0]),isTemplate:g&&(0,p.isTemplatePart)(d[0]),hasContentOnlyLocking:k,isDisabled:"default"!==f,isSectionInSelection:v}}),[e]),u=Sj({clientId:e?.[0],maximumLength:35}),h=(0,g.useSelect)((e=>e(hr.store).get("core","showIconLabels")),[]);if(i)return null;const m=1===e.length,f=m?u:(0,T.__)("Multiple blocks selected"),b=(s||l)&&!h&&u?u:void 0;if(window?.__experimentalContentOnlyPatternInsertion&&c||a||!o&&!n||t)return(0,d.jsx)(ws.ToolbarGroup,{children:(0,d.jsx)(ws.ToolbarButton,{disabled:!0,className:"block-editor-block-switcher__no-switcher-icon",title:f,icon:(0,d.jsx)(Vu,{className:"block-editor-block-switcher__toggle",icon:r,showColors:!0}),text:b})});const k=m?(0,T.__)("Change block type or style"):(0,T.sprintf)((0,T._n)("Change type of %d block","Change type of %d blocks",e.length),e.length);return(0,d.jsx)(ws.ToolbarGroup,{children:(0,d.jsx)(ws.ToolbarItem,{children:t=>(0,d.jsx)(ws.DropdownMenu,{className:"block-editor-block-switcher",label:f,popoverProps:{placement:"bottom-start",className:"block-editor-block-switcher__popover"},icon:(0,d.jsx)(Vu,{className:"block-editor-block-switcher__toggle",icon:r,showColors:!0}),text:b,toggleProps:{description:k,...t},menuProps:{orientation:"both"},children:({onClose:t})=>(0,d.jsx)(fE,{onClose:t,clientIds:e,hasBlockStyles:o,canRemove:n})})})})};const{Fill:kE,Slot:vE}=(0,ws.createSlotFill)("__unstableBlockToolbarLastItem");kE.Slot=vE;var _E=kE;const yE="align",xE="__experimentalBorder",SE="color",wE="customClassName",CE="typography.__experimentalFontFamily",BE="typography.fontSize",IE="typography.textAlign",jE="layout",EE=["shadow",...["typography.lineHeight",BE,"typography.__experimentalFontStyle","typography.__experimentalFontWeight",CE,IE,"typography.textColumns","typography.__experimentalTextDecoration","typography.__experimentalTextTransform","typography.__experimentalWritingMode","typography.__experimentalLetterSpacing"],xE,SE,"spacing"];const TE={align:e=>(0,p.hasBlockSupport)(e,yE),borderColor:e=>function(e,t="any"){if("web"!==h.Platform.OS)return!1;const n=(0,p.getBlockSupport)(e,xE);return!0===n||("any"===t?!!(n?.color||n?.radius||n?.width||n?.style):!!n?.[t])}(e,"color"),backgroundColor:e=>{const t=(0,p.getBlockSupport)(e,SE);return t&&!1!==t.background},textAlign:e=>(0,p.hasBlockSupport)(e,IE),textColor:e=>{const t=(0,p.getBlockSupport)(e,SE);return t&&!1!==t.text},gradient:e=>{const t=(0,p.getBlockSupport)(e,SE);return null!==t&&"object"==typeof t&&!!t.gradients},className:e=>(0,p.hasBlockSupport)(e,wE,!0),fontFamily:e=>(0,p.hasBlockSupport)(e,CE),fontSize:e=>(0,p.hasBlockSupport)(e,BE),layout:e=>(0,p.hasBlockSupport)(e,jE),style:e=>EE.some((t=>(0,p.hasBlockSupport)(e,t)))};function ME(e,t){return Object.entries(TE).reduce(((n,[o,r])=>(r(e.name)&&r(t.name)&&(n[o]=e.attributes[o]),n)),{})}function PE(e,t,n){for(let o=0;o<Math.min(t.length,e.length);o+=1)n(e[o].clientId,ME(t[o],e[o])),PE(e[o].innerBlocks,t[o].innerBlocks,n)}function RE(){const e=(0,g.useRegistry)(),{updateBlockAttributes:t}=(0,g.useDispatch)(ji),{createSuccessNotice:n,createWarningNotice:o,createErrorNotice:r}=(0,g.useDispatch)(pr.store);return(0,h.useCallback)((async i=>{let s="";try{if(!window.navigator.clipboard)return void r((0,T.__)("Unable to paste styles. This feature is only available on secure (https) sites in supporting browsers."),{type:"snackbar"});s=await window.navigator.clipboard.readText()}catch(e){return void r((0,T.__)("Unable to paste styles. Please allow browser clipboard permissions before continuing."),{type:"snackbar"})}if(!s||!function(e){try{const t=(0,p.parse)(e,{__unstableSkipMigrationLogs:!0,__unstableSkipAutop:!0});return 1!==t.length||"core/freeform"!==t[0].name}catch(e){return!1}}(s))return void o((0,T.__)("Unable to paste styles. Block styles couldn't be found within the copied content."),{type:"snackbar"});const l=(0,p.parse)(s);if(1===l.length?e.batch((()=>{PE(i,i.map((()=>l[0])),t)})):e.batch((()=>{PE(i,l,t)})),1===i.length){const e=(0,p.getBlockType)(i[0].name)?.title;n((0,T.sprintf)((0,T.__)("Pasted styles to %s."),e),{type:"snackbar"})}else n((0,T.sprintf)((0,T.__)("Pasted styles to %d blocks."),i.length),{type:"snackbar"})}),[e.batch,t,n,o,r])}function AE({clientIds:e,children:t,__experimentalUpdateSelection:n}){const{getDefaultBlockName:o,getGroupingBlockName:r}=(0,g.useSelect)(p.store),i=(0,g.useSelect)((t=>{const{canInsertBlockType:n,getBlockRootClientId:r,getBlocksByClientId:i,getDirectInsertBlock:s,canRemoveBlocks:l}=t(ji),a=i(e),c=r(e[0]),u=n(o(),c),d=c?s(c):null;return{canRemove:l(e),canInsertBlock:a.every((e=>(u||!!d)&&n(e.name,c))),canCopyStyles:a.every((e=>!!e&&((0,p.hasBlockSupport)(e.name,"color")||(0,p.hasBlockSupport)(e.name,"typography")))),canDuplicate:a.every((e=>!!e&&(0,p.hasBlockSupport)(e.name,"multiple",!0)&&n(e.name,c)))}}),[e,o]),{getBlocksByClientId:s,getBlocks:l}=(0,g.useSelect)(ji),{canRemove:a,canInsertBlock:c,canCopyStyles:u,canDuplicate:d}=i,{removeBlocks:h,replaceBlocks:m,duplicateBlocks:f,insertAfterBlock:b,insertBeforeBlock:k,flashBlock:v}=(0,g.useDispatch)(ji),_=RE();return t({canCopyStyles:u,canDuplicate:d,canInsertBlock:c,canRemove:a,onDuplicate:()=>f(e,n),onRemove:()=>h(e,n),onInsertBefore(){k(e[0])},onInsertAfter(){b(e[e.length-1])},onGroup(){if(!e.length)return;const t=r(),n=(0,p.switchToBlockType)(s(e),t);n&&m(e,n)},onUngroup(){if(!e.length)return;const t=l(e[0]);t.length&&m(e,t)},onCopy(){1===e.length&&v(e[0])},async onPasteStyles(){await _(s(e))}})}var NE=(0,ws.createSlotFill)(Symbol("CommentIconSlotFill"));var LE=function({clientId:e}){const t=(0,g.useSelect)((t=>t(ji).getBlock(e)),[e]),{replaceBlocks:n}=(0,g.useDispatch)(ji);return t&&"core/html"===t.name?(0,d.jsx)(ws.MenuItem,{onClick:()=>n(e,(0,p.rawHandler)({HTML:(0,p.getBlockContent)(t)})),children:(0,T.__)("Convert to Blocks")}):null};const{Fill:DE,Slot:OE}=(0,ws.createSlotFill)("__unstableBlockSettingsMenuFirstItem");DE.Slot=OE;var zE=DE;function VE(e){return(0,g.useSelect)((t=>{const{getBlocksByClientId:n,getSelectedBlockClientIds:o,isUngroupable:r,isGroupable:i}=t(ji),{getGroupingBlockName:s,getBlockType:l}=t(p.store),a=e?.length?e:o(),c=n(a),[u]=c,d=1===a.length&&r(a[0]);return{clientIds:a,isGroupable:i(a),isUngroupable:d,blocksSelection:c,groupingBlockName:s(),onUngroup:d&&l(u.name)?.transforms?.ungroup}}),[e])}function FE({clientIds:e,isGroupable:t,isUngroupable:n,onUngroup:o,blocksSelection:r,groupingBlockName:i,onClose:s=()=>{}}){const{getSelectedBlockClientIds:l}=(0,g.useSelect)(ji),{replaceBlocks:a}=(0,g.useDispatch)(ji);if(!t&&!n)return null;const c=l();return(0,d.jsxs)(d.Fragment,{children:[t&&(0,d.jsx)(ws.MenuItem,{shortcut:c.length>1?Wa.displayShortcut.primary("g"):void 0,onClick:()=>{(()=>{const t=(0,p.switchToBlockType)(r,i);t&&a(e,t)})(),s()},children:(0,T._x)("Group","verb")}),n&&(0,d.jsx)(ws.MenuItem,{onClick:()=>{(()=>{let t=r[0].innerBlocks;t.length&&(o&&(t=o(r[0].attributes,r[0].innerBlocks)),a(e,t))})(),s()},children:(0,T._x)("Ungroup","Ungrouping blocks from within a grouping block back into individual blocks within the Editor")})]})}function HE(e){return(0,g.useSelect)((t=>{const{canEditBlock:n,canMoveBlock:o,canRemoveBlock:r,canLockBlockType:i,getBlockName:s,getTemplateLock:l}=t(ji),a=n(e),c=o(e),u=r(e);return{canEdit:a,canMove:c,canRemove:u,canLock:i(s(e)),isContentLocked:"contentOnly"===l(e),isLocked:!a||!c||!u}}),[e])}var UE=(0,d.jsx)(ue.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,d.jsx)(ue.Path,{d:"M17 10h-1.2V7c0-2.1-1.7-3.8-3.8-3.8-2.1 0-3.8 1.7-3.8 3.8h1.5c0-1.2 1-2.2 2.2-2.2s2.2 1 2.2 2.2v3H7c-.6 0-1 .4-1 1v8c0 .6.4 1 1 1h10c.6 0 1-.4 1-1v-8c0-.6-.4-1-1-1z"})}),GE=(0,d.jsx)(ue.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,d.jsx)(ue.Path,{d:"M17 10h-1.2V7c0-2.1-1.7-3.8-3.8-3.8-2.1 0-3.8 1.7-3.8 3.8v3H7c-.6 0-1 .4-1 1v8c0 .6.4 1 1 1h10c.6 0 1-.4 1-1v-8c0-.6-.4-1-1-1zM9.8 7c0-1.2 1-2.2 2.2-2.2 1.2 0 2.2 1 2.2 2.2v3H9.8V7zm6.7 11.5h-9v-7h9v7z"})}),$E=(0,d.jsx)(ue.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,d.jsx)(ue.Path,{d:"M17 10h-1.2V7c0-2.1-1.7-3.8-3.8-3.8-2.1 0-3.8 1.7-3.8 3.8v3H7c-.6 0-1 .4-1 1v8c0 .6.4 1 1 1h10c.6 0 1-.4 1-1v-8c0-.6-.4-1-1-1zm-2.8 0H9.8V7c0-1.2 1-2.2 2.2-2.2s2.2 1 2.2 2.2v3z"})});const WE=["core/navigation"];function KE(e){return e.remove&&e.move?"all":!(!e.remove||e.move)&&"insert"}function ZE({clientId:e,onClose:t}){const[n,o]=(0,h.useState)({move:!1,remove:!1}),{canEdit:r,canMove:i,canRemove:s}=HE(e),{allowsEditLocking:l,templateLock:a,hasTemplateLock:c}=(0,g.useSelect)((t=>{const{getBlockName:n,getBlockAttributes:o}=t(ji),r=n(e),i=(0,p.getBlockType)(r);return{allowsEditLocking:WE.includes(r),templateLock:o(e)?.templateLock,hasTemplateLock:!!i?.attributes?.templateLock}}),[e]),[u,m]=(0,h.useState)(!!a),{updateBlockAttributes:f}=(0,g.useDispatch)(ji),b=Xf(e);(0,h.useEffect)((()=>{o({move:!i,remove:!s,...l?{edit:!r}:{}})}),[r,i,s,l]);const k=Object.values(n).every(Boolean),v=Object.values(n).some(Boolean)&&!k;return(0,d.jsx)(ws.Modal,{title:(0,T.sprintf)((0,T.__)("Lock %s"),b.title),overlayClassName:"block-editor-block-lock-modal",onRequestClose:t,size:"small",children:(0,d.jsxs)("form",{onSubmit:o=>{o.preventDefault(),f([e],{lock:n,templateLock:u?KE(n):void 0}),t()},children:[(0,d.jsxs)("fieldset",{className:"block-editor-block-lock-modal__options",children:[(0,d.jsx)("legend",{children:(0,T.__)("Select the features you want to lock")}),(0,d.jsx)("ul",{role:"list",className:"block-editor-block-lock-modal__checklist",children:(0,d.jsxs)("li",{children:[(0,d.jsx)(ws.CheckboxControl,{__nextHasNoMarginBottom:!0,className:"block-editor-block-lock-modal__options-all",label:(0,T.__)("Lock all"),checked:k,indeterminate:v,onChange:e=>o({move:e,remove:e,...l?{edit:e}:{}})}),(0,d.jsxs)("ul",{role:"list",className:"block-editor-block-lock-modal__checklist",children:[l&&(0,d.jsxs)("li",{className:"block-editor-block-lock-modal__checklist-item",children:[(0,d.jsx)(ws.CheckboxControl,{__nextHasNoMarginBottom:!0,label:(0,T.__)("Lock editing"),checked:!!n.edit,onChange:e=>o((t=>({...t,edit:e})))}),(0,d.jsx)(ws.Icon,{className:"block-editor-block-lock-modal__lock-icon",icon:n.edit?$E:UE})]}),(0,d.jsxs)("li",{className:"block-editor-block-lock-modal__checklist-item",children:[(0,d.jsx)(ws.CheckboxControl,{__nextHasNoMarginBottom:!0,label:(0,T.__)("Lock movement"),checked:n.move,onChange:e=>o((t=>({...t,move:e})))}),(0,d.jsx)(ws.Icon,{className:"block-editor-block-lock-modal__lock-icon",icon:n.move?$E:UE})]}),(0,d.jsxs)("li",{className:"block-editor-block-lock-modal__checklist-item",children:[(0,d.jsx)(ws.CheckboxControl,{__nextHasNoMarginBottom:!0,label:(0,T.__)("Lock removal"),checked:n.remove,onChange:e=>o((t=>({...t,remove:e})))}),(0,d.jsx)(ws.Icon,{className:"block-editor-block-lock-modal__lock-icon",icon:n.remove?$E:UE})]})]})]})}),c&&(0,d.jsx)(ws.ToggleControl,{__nextHasNoMarginBottom:!0,className:"block-editor-block-lock-modal__template-lock",label:(0,T.__)("Apply to all blocks inside"),checked:u,disabled:n.move&&!n.remove,onChange:()=>m(!u)})]}),(0,d.jsxs)(ws.Flex,{className:"block-editor-block-lock-modal__actions",justify:"flex-end",expanded:!1,children:[(0,d.jsx)(ws.FlexItem,{children:(0,d.jsx)(ws.Button,{variant:"tertiary",onClick:t,__next40pxDefaultSize:!0,children:(0,T.__)("Cancel")})}),(0,d.jsx)(ws.FlexItem,{children:(0,d.jsx)(ws.Button,{variant:"primary",type:"submit",__next40pxDefaultSize:!0,children:(0,T.__)("Apply")})})]})]})})}function qE({clientId:e}){const{canLock:t,isLocked:n}=HE(e),[o,r]=(0,h.useReducer)((e=>!e),!1);if(!t)return null;const i=n?(0,T.__)("Unlock"):(0,T.__)("Lock");return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(ws.MenuItem,{icon:n?UE:GE,onClick:r,"aria-expanded":o,"aria-haspopup":"dialog",children:i}),o&&(0,d.jsx)(ZE,{clientId:e,onClose:r})]})}const YE=()=>{};function XE({clientId:e,onToggle:t=YE}){const{blockType:n,mode:o,enabled:r}=(0,g.useSelect)((t=>{const{getBlock:n,getBlockMode:o,getSettings:r}=t(ji),i=n(e);return{mode:o(e),blockType:i?(0,p.getBlockType)(i.name):null,enabled:r().codeEditingEnabled&&!!i?.isValid}}),[e]),{toggleBlockMode:i}=(0,g.useDispatch)(ji);if(!n||!(0,p.hasBlockSupport)(n,"html",!0)||!r)return null;const s="visual"===o?(0,T.__)("Edit as HTML"):(0,T.__)("Edit visually");return(0,d.jsx)(ws.MenuItem,{onClick:()=>{i(e),t()},children:s})}function QE({clientId:e,onClose:t}){const{templateLock:n,isLockedByParent:o,isEditingAsBlocks:r}=(0,g.useSelect)((t=>{const{getContentLockingParent:n,getTemplateLock:o,getTemporarilyEditingAsBlocks:r}=G(t(ji));return{templateLock:o(e),isLockedByParent:!!n(e),isEditingAsBlocks:r()===e}}),[e]),i=(0,g.useDispatch)(ji),s=!o&&"contentOnly"===n;if(!s&&!r)return null;const{modifyContentLockBlock:l}=G(i);return!r&&s&&(0,d.jsx)(ws.MenuItem,{onClick:()=>{l(e),t()},children:(0,T._x)("Modify","Unlock content locked blocks")})}function JE({clientId:e,onClose:t}){const[n,o]=(0,h.useState)(),r=Xf(e),{metadata:i}=(0,g.useSelect)((t=>{const{getBlockAttributes:n}=t(ji);return{metadata:n(e)?.metadata}}),[e]),{updateBlockAttributes:s}=(0,g.useDispatch)(ji),l=i?.name||"",a=r?.title,c=!!l&&!!i?.bindings&&Object.values(i.bindings).some((e=>"core/pattern-overrides"===e.source)),u=void 0!==n&&n!==l,p=n===a,m=(f=n,0===f?.trim()?.length);var f;const b=u||p;return(0,d.jsx)(ws.Modal,{title:(0,T.__)("Rename"),onRequestClose:t,overlayClassName:"block-editor-block-rename-modal",focusOnMount:"firstContentElement",size:"small",children:(0,d.jsx)("form",{onSubmit:o=>{o.preventDefault(),b&&(()=>{const o=p||m?void 0:n,r=p||m?(0,T.sprintf)((0,T.__)('Block name reset to: "%s".'),n):(0,T.sprintf)((0,T.__)('Block name changed to: "%s".'),n);(0,Uo.speak)(r,"assertive"),s([e],{metadata:fs({...i,name:o})}),t()})()},children:(0,d.jsxs)(ws.__experimentalVStack,{spacing:"3",children:[(0,d.jsx)(ws.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,value:n??l,label:(0,T.__)("Name"),help:c?(0,T.__)("This block allows overrides. Changing the name can cause problems with content entered into instances of this pattern."):void 0,placeholder:a,onChange:o,onFocus:e=>e.target.select()}),(0,d.jsxs)(ws.__experimentalHStack,{justify:"right",children:[(0,d.jsx)(ws.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:t,children:(0,T.__)("Cancel")}),(0,d.jsx)(ws.Button,{__next40pxDefaultSize:!0,accessibleWhenDisabled:!0,disabled:!b,variant:"primary",type:"submit",children:(0,T.__)("Save")})]})]})})})}function eT({clientId:e}){const[t,n]=(0,h.useState)(!1);return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(ws.MenuItem,{onClick:()=>{n(!0)},"aria-expanded":t,"aria-haspopup":"dialog",children:(0,T.__)("Rename")}),t&&(0,d.jsx)(JE,{clientId:e,onClose:()=>n(!1)})]})}var tT=(0,d.jsx)(ue.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,d.jsx)(ue.Path,{d:"M3.99961 13C4.67043 13.3354 4.6703 13.3357 4.67017 13.3359L4.67298 13.3305C4.67621 13.3242 4.68184 13.3135 4.68988 13.2985C4.70595 13.2686 4.7316 13.2218 4.76695 13.1608C4.8377 13.0385 4.94692 12.8592 5.09541 12.6419C5.39312 12.2062 5.84436 11.624 6.45435 11.0431C7.67308 9.88241 9.49719 8.75 11.9996 8.75C14.502 8.75 16.3261 9.88241 17.5449 11.0431C18.1549 11.624 18.6061 12.2062 18.9038 12.6419C19.0523 12.8592 19.1615 13.0385 19.2323 13.1608C19.2676 13.2218 19.2933 13.2686 19.3093 13.2985C19.3174 13.3135 19.323 13.3242 19.3262 13.3305L19.3291 13.3359C19.3289 13.3357 19.3288 13.3354 19.9996 13C20.6704 12.6646 20.6703 12.6643 20.6701 12.664L20.6697 12.6632L20.6688 12.6614L20.6662 12.6563L20.6583 12.6408C20.6517 12.6282 20.6427 12.6108 20.631 12.5892C20.6078 12.5459 20.5744 12.4852 20.5306 12.4096C20.4432 12.2584 20.3141 12.0471 20.1423 11.7956C19.7994 11.2938 19.2819 10.626 18.5794 9.9569C17.1731 8.61759 14.9972 7.25 11.9996 7.25C9.00203 7.25 6.82614 8.61759 5.41987 9.9569C4.71736 10.626 4.19984 11.2938 3.85694 11.7956C3.68511 12.0471 3.55605 12.2584 3.4686 12.4096C3.42484 12.4852 3.39142 12.5459 3.36818 12.5892C3.35656 12.6108 3.34748 12.6282 3.34092 12.6408L3.33297 12.6563L3.33041 12.6614L3.32948 12.6632L3.32911 12.664C3.32894 12.6643 3.32879 12.6646 3.99961 13ZM11.9996 16C13.9326 16 15.4996 14.433 15.4996 12.5C15.4996 10.567 13.9326 9 11.9996 9C10.0666 9 8.49961 10.567 8.49961 12.5C8.49961 14.433 10.0666 16 11.9996 16Z"})}),nT=(0,d.jsx)(ue.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,d.jsx)(ue.Path,{d:"M20.7 12.7s0-.1-.1-.2c0-.2-.2-.4-.4-.6-.3-.5-.9-1.2-1.6-1.8-.7-.6-1.5-1.3-2.6-1.8l-.6 1.4c.9.4 1.6 1 2.1 1.5.6.6 1.1 1.2 1.4 1.6.1.2.3.4.3.5v.1l.7-.3.7-.3Zm-5.2-9.3-1.8 4c-.5-.1-1.1-.2-1.7-.2-3 0-5.2 1.4-6.6 2.7-.7.7-1.2 1.3-1.6 1.8-.2.3-.3.5-.4.6 0 0 0 .1-.1.2s0 0 .7.3l.7.3V13c0-.1.2-.3.3-.5.3-.4.7-1 1.4-1.6 1.2-1.2 3-2.3 5.5-2.3H13v.3c-.4 0-.8-.1-1.1-.1-1.9 0-3.5 1.6-3.5 3.5s.6 2.3 1.6 2.9l-2 4.4.9.4 7.6-16.2-.9-.4Zm-3 12.6c1.7-.2 3-1.7 3-3.5s-.2-1.4-.6-1.9L12.4 16Z"})});function oT({clientIds:e}){const{updateBlockAttributes:t}=(0,g.useDispatch)(ji),{createSuccessNotice:n}=(0,g.useDispatch)(pr.store),o=(0,g.useSelect)((t=>t(ji).getBlocksByClientId(e)),[e]),r=(0,g.useSelect)((e=>e(Yk.store).getShortcutRepresentation("core/editor/toggle-list-view")),[]),i=o.some((e=>!1===e.attributes.metadata?.blockVisibility));return(0,d.jsx)(ws.MenuItem,{icon:i?tT:nT,onClick:()=>{const s=!i,l=Object.fromEntries(o?.map((({clientId:e,attributes:t})=>[e,{metadata:fs({...t?.metadata,blockVisibility:!s&&void 0})}])));t(e,l,{uniqueByBlock:!0}),s&&(o.length>1?n((0,T.sprintf)((0,T.__)("Blocks hidden. You can access them via the List View (%s)."),r),{id:"block-visibility-hidden",type:"snackbar"}):n((0,T.sprintf)((0,T.__)("Block hidden. You can access it via the List View (%s)."),r),{id:"block-visibility-hidden",type:"snackbar"}))},children:i?(0,T.__)("Show"):(0,T.__)("Hide")})}const{Fill:rT,Slot:iT}=(0,ws.createSlotFill)("BlockSettingsMenuControls");function sT({...e}){return(0,d.jsx)(ws.__experimentalStyleProvider,{document,children:(0,d.jsx)(rT,{...e})})}sT.Slot=({fillProps:e,clientIds:t=null})=>{const{selectedBlocks:n,selectedClientIds:o,isContentOnly:r,canToggleSelectedBlocksVisibility:i}=(0,g.useSelect)((e=>{const{getBlocksByClientId:n,getBlockNamesByClientId:o,getSelectedBlockClientIds:r,getBlockEditingMode:i}=e(ji),s=null!==t?t:r();return{selectedBlocks:o(s),selectedClientIds:s,isContentOnly:"contentOnly"===i(s[0]),canToggleSelectedBlocksVisibility:n(s).every((e=>(0,p.hasBlockSupport)(e.name,"blockVisibility",!0)))}}),[t]),{canLock:s}=HE(o[0]),{canRename:l}=(a=n[0],{canRename:(0,p.getBlockSupport)(a,"renaming",!0)});var a;const c=1===o.length&&s&&!r,u=1===o.length&&l&&!r,h=i&&!r,m=VE(o),{isGroupable:f,isUngroupable:b}=m,k=(f||b)&&!r;return(0,d.jsx)(iT,{fillProps:{...e,selectedBlocks:n,selectedClientIds:o},children:t=>!t?.length>0&&!k&&!c?null:(0,d.jsxs)(ws.MenuGroup,{children:[k&&(0,d.jsx)(FE,{...m,onClose:e?.onClose}),c&&(0,d.jsx)(qE,{clientId:o[0]}),u&&(0,d.jsx)(eT,{clientId:o[0]}),h&&(0,d.jsx)(oT,{clientIds:o}),t,1===o.length&&(0,d.jsx)(QE,{clientId:o[0],onClose:e?.onClose}),1===e?.count&&!r&&(0,d.jsx)(XE,{clientId:e?.firstBlockClientId,onToggle:e?.onClose})]})})};var lT=sT;function aT({parentClientId:e,parentBlockType:t}){const n=(0,m.useViewportMatch)("medium","<"),{selectBlock:o}=(0,g.useDispatch)(ji),r=(0,h.useRef)(),i=Kj({ref:r,highlightParent:!0});return n?(0,d.jsx)(ws.MenuItem,{...i,ref:r,icon:(0,d.jsx)(Vu,{icon:t.icon}),onClick:()=>o(e),children:(0,T.sprintf)((0,T.__)("Select parent block (%s)"),t.title)}):null}const cT={className:"block-editor-block-settings-menu__popover",placement:"bottom-start"};function uT({clientIds:e,onCopy:t,label:n,shortcut:o,eventType:r="copy",__experimentalUpdateSelection:i=!1}){const{getBlocksByClientId:s}=(0,g.useSelect)(ji),{removeBlocks:l}=(0,g.useDispatch)(ji),a=jw(),c=(0,m.useCopyToClipboard)((()=>(0,p.serialize)(s(e))),(()=>{switch(r){case"copy":case"copyStyles":t(),a(r,e);break;case"cut":a(r,e),l(e,i)}})),u=n||(0,T.__)("Copy");return(0,d.jsx)(ws.MenuItem,{ref:c,shortcut:o,children:u})}function dT({block:e,clientIds:t,children:n,__experimentalSelectBlock:o,...r}){const i=e?.clientId,s=t.length,l=t[0],{firstParentClientId:a,parentBlockType:c,previousBlockClientId:u,selectedBlockClientIds:f,openedBlockSettingsMenu:b,isContentOnly:k,isZoomOut:v}=(0,g.useSelect)((e=>{const{getBlockName:t,getBlockRootClientId:n,getPreviousBlockClientId:o,getSelectedBlockClientIds:r,getBlockAttributes:i,getOpenedBlockSettingsMenu:s,getBlockEditingMode:a,isZoomOut:c}=G(e(ji)),{getActiveBlockVariation:u}=e(p.store),d=n(l),h=d&&t(d);return{firstParentClientId:d,parentBlockType:d&&(u(h,i(d))||(0,p.getBlockType)(h)),previousBlockClientId:o(l),selectedBlockClientIds:r(),openedBlockSettingsMenu:s(),isContentOnly:"contentOnly"===a(l),isZoomOut:c()}}),[l]),{getBlockOrder:_,getSelectedBlockClientIds:y}=(0,g.useSelect)(ji),{setOpenedBlockSettingsMenu:x}=G((0,g.useDispatch)(ji)),S=(0,g.useSelect)((e=>{const{getShortcutRepresentation:t}=e(Yk.store);return{copy:t("core/block-editor/copy"),cut:t("core/block-editor/cut"),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")}}),[]),w=f.length>0;async function C(e){if(!o)return;const t=await e;t&&t[0]&&o(t[0],!1)}function B(){if(!o)return;let e=u||a;e||(e=_()[0]);const t=w&&0===y().length;o(e,t)}const I=f?.includes(a),j=i?b===i||!1:void 0;function E(e){e&&b!==i?x(i):!e&&b&&b===i&&x(void 0)}const M=!I&&!!a;return(0,d.jsx)(AE,{clientIds:t,__experimentalUpdateSelection:!o,children:({canCopyStyles:e,canDuplicate:i,canInsertBlock:u,canRemove:p,onDuplicate:g,onInsertAfter:f,onInsertBefore:b,onRemove:_,onCopy:y,onPasteStyles:x})=>!p&&!i&&!u&&k?null:(0,d.jsx)(ws.DropdownMenu,{icon:fv,label:(0,T.__)("Options"),className:"block-editor-block-settings-menu",popoverProps:cT,open:j,onToggle:E,noIcons:!0,...r,children:({onClose:r})=>(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(ws.MenuGroup,{children:[(0,d.jsx)(zE.Slot,{fillProps:{onClose:r}}),M&&(0,d.jsx)(aT,{parentClientId:a,parentBlockType:c}),1===s&&(0,d.jsx)(LE,{clientId:l}),!k&&(0,d.jsx)(uT,{clientIds:t,onCopy:y,shortcut:S.copy}),!k&&(0,d.jsx)(uT,{clientIds:t,label:(0,T.__)("Cut"),eventType:"cut",shortcut:S.cut,__experimentalUpdateSelection:!o}),i&&(0,d.jsx)(ws.MenuItem,{onClick:(0,m.pipe)(r,g,C),shortcut:S.duplicate,children:(0,T.__)("Duplicate")}),u&&!v&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(ws.MenuItem,{onClick:(0,m.pipe)(r,b),shortcut:S.insertBefore,children:(0,T.__)("Add before")}),(0,d.jsx)(ws.MenuItem,{onClick:(0,m.pipe)(r,f),shortcut:S.insertAfter,children:(0,T.__)("Add after")})]}),1===s&&(0,d.jsx)(NE.Slot,{fillProps:{clientId:l,onClose:r}})]}),e&&!k&&(0,d.jsxs)(ws.MenuGroup,{children:[(0,d.jsx)(uT,{clientIds:t,onCopy:y,label:(0,T.__)("Copy styles"),eventType:"copyStyles"}),(0,d.jsx)(ws.MenuItem,{onClick:x,children:(0,T.__)("Paste styles")})]}),!k&&(0,d.jsx)(lT.Slot,{fillProps:{onClose:r,count:s,firstBlockClientId:l},clientIds:t}),"function"==typeof n?n({onClose:r}):h.Children.map((e=>(0,h.cloneElement)(e,{onClose:r}))),p&&(0,d.jsx)(ws.MenuGroup,{children:(0,d.jsx)(ws.MenuItem,{onClick:(0,m.pipe)(r,_,B),shortcut:S.remove,children:(0,T.__)("Delete")})})]})})})}var pT=dT;var hT=(0,ws.createSlotFill)(Symbol("CommentIconToolbarSlotFill"));var gT=function({clientIds:e,...t}){return(0,d.jsxs)(ws.ToolbarGroup,{children:[(0,d.jsx)(hT.Slot,{}),(0,d.jsx)(ws.ToolbarItem,{children:n=>(0,d.jsx)(pT,{clientIds:e,toggleProps:n,...t})})]})};function mT({clientId:e}){const{canLock:t,isLocked:n}=HE(e),[o,r]=(0,h.useReducer)((e=>!e),!1),i=(0,h.useRef)(!1);if((0,h.useEffect)((()=>{n&&(i.current=!0)}),[n]),!n&&!i.current)return null;let s=n?(0,T.__)("Unlock"):(0,T.__)("Lock");return!t&&n&&(s=(0,T.__)("Locked")),(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(ws.ToolbarGroup,{className:"block-editor-block-lock-toolbar",children:(0,d.jsx)(ws.ToolbarButton,{disabled:!t,icon:n?$E:UE,label:s,onClick:r,"aria-expanded":o,"aria-haspopup":"dialog"})}),o&&(0,d.jsx)(ZE,{clientId:e,onClose:r})]})}function fT({clientIds:e}){const{blocks:t,canToggleBlockVisibility:n}=(0,g.useSelect)((t=>{const{getBlockName:n,getBlocksByClientId:o}=t(ji),r=o(e);return{blocks:r,canToggleBlockVisibility:r.every((({clientId:e})=>(0,p.hasBlockSupport)(n(e),"blockVisibility",!0)))}}),[e]),o=t.some((e=>!1===e.attributes.metadata?.blockVisibility)),r=(0,h.useRef)(!1),{updateBlockAttributes:i}=(0,g.useDispatch)(ji);if((0,h.useEffect)((()=>{o&&(r.current=!0)}),[o]),!o&&!r.current)return null;return(0,d.jsx)(d.Fragment,{children:(0,d.jsx)(ws.ToolbarGroup,{className:"block-editor-block-lock-toolbar",children:(0,d.jsx)(ws.ToolbarButton,{disabled:!n,icon:o?nT:tT,label:o?(0,T.__)("Hidden"):(0,T.__)("Visible"),onClick:()=>{const n=Object.fromEntries(t?.map((({clientId:e,attributes:t})=>[e,{metadata:fs({...t?.metadata,blockVisibility:!!o&&void 0})}])));i(e,n,{uniqueByBlock:!0})}})})})}var bT=(0,d.jsx)(ue.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,d.jsx)(ue.Path,{d:"M18 4h-7c-1.1 0-2 .9-2 2v3H6c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2v-3h3c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-4.5 14c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-7c0-.3.2-.5.5-.5h3V13c0 1.1.9 2 2 2h2.5v3zm0-4.5H11c-.3 0-.5-.2-.5-.5v-2.5H13c.3 0 .5.2.5.5v2.5zm5-.5c0 .3-.2.5-.5.5h-3V11c0-1.1-.9-2-2-2h-2.5V6c0-.3.2-.5.5-.5h7c.3 0 .5.2.5.5v7z"})}),kT=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"M4 6.5h5a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H4V16h5a.5.5 0 0 0 .5-.5v-7A.5.5 0 0 0 9 8H4V6.5Zm16 0h-5a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h5V16h-5a.5.5 0 0 1-.5-.5v-7A.5.5 0 0 1 15 8h5V6.5Z"})}),vT=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"M17.5 4v5a2 2 0 0 1-2 2h-7a2 2 0 0 1-2-2V4H8v5a.5.5 0 0 0 .5.5h7A.5.5 0 0 0 16 9V4h1.5Zm0 16v-5a2 2 0 0 0-2-2h-7a2 2 0 0 0-2 2v5H8v-5a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 .5.5v5h1.5Z"})}),_T=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"m3 5c0-1.10457.89543-2 2-2h13.5c1.1046 0 2 .89543 2 2v13.5c0 1.1046-.8954 2-2 2h-13.5c-1.10457 0-2-.8954-2-2zm2-.5h6v6.5h-6.5v-6c0-.27614.22386-.5.5-.5zm-.5 8v6c0 .2761.22386.5.5.5h6v-6.5zm8 0v6.5h6c.2761 0 .5-.2239.5-.5v-6zm0-8v6.5h6.5v-6c0-.27614-.2239-.5-.5-.5z",fillRule:"evenodd",clipRule:"evenodd"})});const yT={group:{type:"constrained"},row:{type:"flex",flexWrap:"nowrap"},stack:{type:"flex",orientation:"vertical"},grid:{type:"grid"}};var xT=function(){const{blocksSelection:e,clientIds:t,groupingBlockName:n,isGroupable:o}=VE(),{replaceBlocks:r}=(0,g.useDispatch)(ji),{canRemove:i,variations:s}=(0,g.useSelect)((e=>{const{canRemoveBlocks:o}=e(ji),{getBlockVariations:r}=e(p.store);return{canRemove:o(t),variations:r(n,"transform")}}),[t,n]),l=o=>{const i=(0,p.switchToBlockType)(e,n);"string"!=typeof o&&(o="group"),i&&i.length>0&&(i[0].attributes.layout=yT[o],r(t,i))};if(!o||!i)return null;const a=!!s.find((({name:e})=>"group-row"===e)),c=!!s.find((({name:e})=>"group-stack"===e)),u=!!s.find((({name:e})=>"group-grid"===e));return(0,d.jsxs)(ws.ToolbarGroup,{children:[(0,d.jsx)(ws.ToolbarButton,{icon:bT,label:(0,T._x)("Group","action: convert blocks to group"),onClick:l}),a&&(0,d.jsx)(ws.ToolbarButton,{icon:kT,label:(0,T._x)("Row","action: convert blocks to row"),onClick:()=>l("row")}),c&&(0,d.jsx)(ws.ToolbarButton,{icon:vT,label:(0,T._x)("Stack","action: convert blocks to stack"),onClick:()=>l("stack")}),u&&(0,d.jsx)(ws.ToolbarButton,{icon:_T,label:(0,T._x)("Grid","action: convert blocks to grid"),onClick:()=>l("grid")})]})};function ST({clientIds:e}){const t=1===e.length?e[0]:void 0,n=(0,g.useSelect)((e=>!!t&&"html"===e(ji).getBlockMode(t)),[t]),{toggleBlockMode:o}=(0,g.useDispatch)(ji);return n?(0,d.jsx)(ws.ToolbarGroup,{children:(0,d.jsx)(ws.ToolbarButton,{onClick:()=>{o(t)},children:(0,T.__)("Edit visually")})}):null}const wT=(0,h.createContext)("");wT.displayName="__unstableBlockNameContext";var CT=wT;function BT(e){return Array.from(e.querySelectorAll("[data-toolbar-item]:not([disabled])"))}function IT(e){return e.contains(e.ownerDocument.activeElement)}function jT({toolbarRef:e,focusOnMount:t,isAccessibleToolbar:n,defaultIndex:o,onIndexChange:r,shouldUseKeyboardFocusShortcut:i,focusEditorOnEscape:s}){const[l]=(0,h.useState)(t),[a]=(0,h.useState)(o),c=(0,h.useCallback)((()=>{!function(e){const[t]=Ga.focus.tabbable.find(e);t&&t.focus({preventScroll:!0})}(e.current)}),[e]);(0,Yk.useShortcut)("core/block-editor/focus-toolbar",(()=>{i&&c()})),(0,h.useEffect)((()=>{l&&c()}),[n,l,c]),(0,h.useEffect)((()=>{const t=e.current;let n=0;return l||IT(t)||(n=window.requestAnimationFrame((()=>{const e=BT(t),n=a||0;e[n]&&IT(t)&&e[n].focus({preventScroll:!0})}))),()=>{if(window.cancelAnimationFrame(n),!r||!t)return;const e=BT(t).findIndex((e=>0===e.tabIndex));r(e)}}),[a,l,r,e]);const{getLastFocus:u}=G((0,g.useSelect)(ji));(0,h.useEffect)((()=>{const t=e.current;if(s){const e=e=>{const t=u();e.keyCode===Wa.ESCAPE&&t?.current&&(e.preventDefault(),t.current.focus())};return t.addEventListener("keydown",e),()=>{t.removeEventListener("keydown",e)}}}),[s,u,e])}function ET({children:e,focusOnMount:t,focusEditorOnEscape:n=!1,shouldUseKeyboardFocusShortcut:o=!0,__experimentalInitialIndex:r,__experimentalOnIndexChange:i,orientation:s="horizontal",...l}){const a=(0,h.useRef)(),c=function(e){const[t,n]=(0,h.useState)(!0),o=(0,h.useCallback)((()=>{const t=!Ga.focus.tabbable.find(e.current).some((e=>!("toolbarItem"in e.dataset)));t||I()("Using custom components as toolbar controls",{since:"5.6",alternative:"ToolbarItem, ToolbarButton or ToolbarDropdownMenu components",link:"https://developer.wordpress.org/block-editor/components/toolbar-button/#inside-blockcontrols"}),n(t)}),[e]);return(0,h.useLayoutEffect)((()=>{const t=new window.MutationObserver(o);return t.observe(e.current,{childList:!0,subtree:!0}),()=>t.disconnect()}),[o,t,e]),t}(a);return jT({toolbarRef:a,focusOnMount:t,defaultIndex:r,onIndexChange:i,isAccessibleToolbar:c,shouldUseKeyboardFocusShortcut:o,focusEditorOnEscape:n}),c?(0,d.jsx)(ws.Toolbar,{label:l["aria-label"],ref:a,orientation:s,...l,children:e}):(0,d.jsx)(ws.NavigableMenu,{orientation:s,role:"toolbar",ref:a,...l,children:e})}function TT(){const e=(0,g.useSelect)((e=>{const{getBlockEditingMode:t,getBlockName:n,getBlockSelectionStart:o}=e(ji),r=o(),i=r&&(0,p.getBlockType)(n(r));return i&&(0,p.hasBlockSupport)(i,"__experimentalToolbar",!0)&&"disabled"!==t(r)}),[]);return e}const MT=[],PT=6,RT={placement:"bottom-start"};function AT({clientId:e}){const{categories:t,currentPatternName:n,patterns:o}=(0,g.useSelect)((t=>{const{getBlockAttributes:n,getBlockRootClientId:o,__experimentalGetAllowedPatterns:r}=t(ji),i=n(e),s=i?.metadata?.categories||MT,l=o(e),a=s.length>0?r(l):MT;return{categories:s,currentPatternName:i?.metadata?.patternName,patterns:a}}),[e]),{replaceBlocks:r}=(0,g.useDispatch)(ji),i=(0,h.useMemo)((()=>0!==t.length&&o&&0!==o.length?o.filter((e=>{const o="core"===e.source||e.source?.startsWith("pattern-directory")&&"pattern-directory/theme"!==e.source;return 1===e.blocks.length&&!o&&n!==e.name&&e.categories?.some((e=>t.includes(e)))&&("unsynced"===e.syncStatus||!e.id)})).slice(0,PT):MT),[t,n,o]);if(i.length<2)return null;const s=n=>{const o=(n.blocks??[]).map((e=>(0,p.cloneBlock)(e)));o[0].attributes.metadata={...o[0].attributes.metadata,categories:t},r(e,o)};return(0,d.jsx)(ws.Dropdown,{popoverProps:RT,renderToggle:({onToggle:e,isOpen:t})=>(0,d.jsx)(ws.ToolbarGroup,{children:(0,d.jsx)(ws.ToolbarButton,{onClick:()=>e(!t),"aria-expanded":t,children:(0,T.__)("Change design")})}),renderContent:()=>(0,d.jsx)(ws.__experimentalDropdownContentWrapper,{className:"block-editor-block-toolbar-change-design-content-wrapper",paddingSize:"none",children:(0,d.jsx)($C,{blockPatterns:i,onClickPattern:s,showTitlesAsTooltip:!0})})})}const NT=(0,d.jsxs)(ws.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true",focusable:"false",children:[(0,d.jsx)(ws.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-3z"}),(0,d.jsx)(ws.Path,{stroke:"currentColor",strokeWidth:"1.5",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-3z"})]});var LT=function({clientId:e}){const{stylesToRender:t,activeStyle:n,className:o}=iE({clientId:e}),{updateBlockAttributes:r}=(0,g.useDispatch)(ji),{merged:i}=(0,h.useContext)(is),{globalSettings:s,globalStyles:l,blockName:a}=(0,g.useSelect)((t=>{const n=t(ji).getSettings();return{globalSettings:n.__experimentalFeatures,globalStyles:n[N],blockName:t(ji).getBlockName(e)}}),[e]),c=n?.name?Tb({settings:i?.settings??s,styles:i?.styles??l},a,n.name)?.color?.background:void 0;return t&&0!==t.length?(0,d.jsx)(ws.ToolbarGroup,{children:(0,d.jsx)(ws.ToolbarButton,{onClick:()=>{const i=(t.findIndex((e=>e.name===n.name))+1)%t.length,s=t[i],l=oE(o,n,s);r(e,{className:l})},label:(0,T.__)("Shuffle styles"),children:(0,d.jsx)(ws.Icon,{icon:NT,style:{fill:c||"transparent"}})})}):null};function DT({hideDragHandle:e,focusOnMount:t,__experimentalInitialIndex:n,__experimentalOnIndexChange:o,variant:r="unstyled"}){const{blockClientId:i,blockClientIds:s,isDefaultEditingMode:l,blockType:a,toolbarKey:c,shouldShowVisualToolbar:u,showParentSelector:f,isUsingBindings:b,hasParentPattern:k,hasContentOnlyLocking:v,showShuffleButton:_,showSlots:y,showGroupButtons:x,showLockButtons:S,showBlockVisibilityButton:w,showSwitchSectionStyleButton:C}=(0,g.useSelect)((e=>{const{getBlockName:t,getBlockMode:n,getBlockParents:o,getSelectedBlockClientIds:r,isBlockValid:i,getBlockEditingMode:s,getBlockAttributes:l,getBlockParentsByBlockName:a,getTemplateLock:c,getParentSectionBlock:u,isZoomOut:d,isSectionBlock:h}=G(e(ji)),g=r(),m=g[0],f=o(m),b=u(m)??f[f.length-1],k=t(b),v=(0,p.getBlockType)(k),_=s(m),y="default"===_,x=t(m),S=g.every((e=>i(e))),w=g.every((e=>"visual"===n(e))),C=g.every((e=>!!l(e)?.metadata?.bindings)),B=g.every((e=>a(e,"core/block",!0).length>0)),I=g.some((e=>"contentOnly"===c(e))),j=d(),E=window?.__experimentalContentOnlyPatternInsertion&&(j||h(m));return{blockClientId:m,blockClientIds:g,isDefaultEditingMode:y,blockType:m&&(0,p.getBlockType)(x),shouldShowVisualToolbar:S&&w,toolbarKey:`${m}${b}`,showParentSelector:!j&&v&&"contentOnly"!==_&&"disabled"!==s(b)&&(0,p.hasBlockSupport)(v,"__experimentalParentSelector",!0)&&1===g.length,isUsingBindings:C,hasParentPattern:B,hasContentOnlyLocking:I,showShuffleButton:j,showSlots:!j,showGroupButtons:!j,showLockButtons:!j,showBlockVisibilityButton:!j,showSwitchSectionStyleButton:E}}),[]),B=(0,h.useRef)(null),I=(0,h.useRef)(),j=Kj({ref:I}),E=!(0,m.useViewportMatch)("medium","<");if(!TT())return null;const M=s.length>1,P=(0,p.isReusableBlock)(a)||(0,p.isTemplatePart)(a),R=ms("block-editor-block-contextual-toolbar",{"has-parent":f}),A=ms("block-editor-block-toolbar",{"is-synced":P,"is-connected":b});return(0,d.jsx)(ET,{focusEditorOnEscape:!0,className:R,"aria-label":(0,T.__)("Block tools"),variant:"toolbar"===r?void 0:r,focusOnMount:t,__experimentalInitialIndex:n,__experimentalOnIndexChange:o,children:(0,d.jsxs)("div",{ref:B,className:A,children:[f&&!M&&E&&(0,d.jsx)(Zj,{}),(u||M)&&!k&&(0,d.jsx)("div",{ref:I,...j,children:(0,d.jsxs)(ws.ToolbarGroup,{className:"block-editor-block-toolbar__block-controls",children:[(0,d.jsx)(bE,{clientIds:s}),l&&w&&(0,d.jsx)(fT,{clientIds:s}),!M&&l&&S&&(0,d.jsx)(mT,{clientId:i}),(0,d.jsx)(Hj,{clientIds:s,hideDragHandle:e})]})}),!v&&u&&M&&x&&(0,d.jsx)(xT,{}),_&&(0,d.jsx)(AT,{clientId:s[0]}),C&&(0,d.jsx)(LT,{clientId:s[0]}),u&&y&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(Rs.Slot,{group:"parent",className:"block-editor-block-toolbar__slot"}),(0,d.jsx)(Rs.Slot,{group:"block",className:"block-editor-block-toolbar__slot"}),(0,d.jsx)(Rs.Slot,{className:"block-editor-block-toolbar__slot"}),(0,d.jsx)(Rs.Slot,{group:"inline",className:"block-editor-block-toolbar__slot"}),(0,d.jsx)(Rs.Slot,{group:"other",className:"block-editor-block-toolbar__slot"}),(0,d.jsx)(CT.Provider,{value:a?.name,children:(0,d.jsx)(_E.Slot,{})})]}),(0,d.jsx)(ST,{clientIds:s}),(0,d.jsx)(gT,{clientIds:s})]})},c)}function OT({hideDragHandle:e,variant:t}){return(0,d.jsx)(DT,{hideDragHandle:e,variant:t,focusOnMount:void 0,__experimentalInitialIndex:void 0,__experimentalOnIndexChange:void 0})}function zT({clientId:e,isTyping:t,__unstableContentRef:n}){const{capturingClientId:o,isInsertionPointVisible:r,lastClientId:i}=Pj(e),s=(0,h.useRef)();(0,h.useEffect)((()=>{s.current=void 0}),[e]);const{stopTyping:l}=(0,g.useDispatch)(ji),a=(0,h.useRef)(!1);(0,Yk.useShortcut)("core/block-editor/focus-toolbar",(()=>{a.current=!0,l(!0)})),(0,h.useEffect)((()=>{a.current=!1}));const c=o||e,u=Mj({contentElement:n?.current,clientId:c});return!t&&(0,d.jsx)(ef,{clientId:c,bottomClientId:i,className:ms("block-editor-block-list__block-popover",{"is-insertion-point-visible":r}),resize:!1,...u,__unstableContentRef:n,children:(0,d.jsx)(DT,{focusOnMount:a.current,__experimentalInitialIndex:s.current,__experimentalOnIndexChange:e=>{s.current=e},variant:"toolbar"})})}var VT=function({onClick:e}){return(0,d.jsx)(ws.Button,{variant:"primary",icon:cc,size:"compact",className:ms("block-editor-button-pattern-inserter__button","block-editor-block-tools__zoom-out-mode-inserter-button"),onClick:e,label:(0,T._x)("Add pattern","Generic label for pattern inserter button")})};var FT=function(){const[e,t]=(0,h.useState)(!1),{hasSelection:n,blockOrder:o,setInserterIsOpened:r,sectionRootClientId:i,selectedBlockClientId:s,blockInsertionPoint:l,insertionPointVisible:a}=(0,g.useSelect)((e=>{const{getSettings:t,getBlockOrder:n,getSelectionStart:o,getSelectedBlockClientId:r,getSectionRootClientId:i,getBlockInsertionPoint:s,isBlockInsertionPointVisible:l}=G(e(ji)),a=i();return{hasSelection:!!o().clientId,blockOrder:n(a),sectionRootClientId:a,setInserterIsOpened:t().__experimentalSetIsInserterOpened,selectedBlockClientId:r(),blockInsertionPoint:s(),insertionPointVisible:l()}}),[]),{showInsertionPoint:c}=G((0,g.useDispatch)(ji));if((0,h.useEffect)((()=>{const e=setTimeout((()=>{t(!0)}),500);return()=>{clearTimeout(e)}}),[]),!e||!n)return null;const u=s,p=o.findIndex((e=>s===e))+1,m=o[p];return a&&l?.index===p?null:(0,d.jsx)(CS,{previousClientId:u,nextClientId:m,children:(0,d.jsx)(VT,{onClick:()=>{r({rootClientId:i,insertionIndex:p,tab:"patterns",category:"all"}),c(i,p,{operation:"insert"})}})})};function HT(e){const{getSelectedBlockClientId:t,getFirstMultiSelectedBlockClientId:n,getSettings:o,isTyping:r,isDragging:i,isZoomOut:s}=G(e(ji));return{clientId:t()||n(),hasFixedToolbar:o().hasFixedToolbar,isTyping:r(),isZoomOutMode:s(),isDragging:i()}}function UT({children:e,__unstableContentRef:t,...n}){const{clientId:o,hasFixedToolbar:r,isTyping:i,isZoomOutMode:s,isDragging:l}=(0,g.useSelect)(HT,[]),a=(0,Yk.__unstableUseShortcutEventMatch)(),{getBlocksByClientId:c,getSelectedBlockClientIds:u,getBlockRootClientId:m,isGroupable:f,getBlockName:b}=(0,g.useSelect)(ji),{getGroupingBlockName:k}=(0,g.useSelect)(p.store),{showEmptyBlockSideInserter:v,showBlockToolbarPopover:_}=(0,g.useSelect)((e=>{const{getSelectedBlockClientId:t,getFirstMultiSelectedBlockClientId:n,getBlock:o,getBlockMode:r,getSettings:i,isTyping:s,isBlockInterfaceHidden:l}=G(e(ji)),a=t()||n(),c=o(a),u=!!a&&!!c,d=u&&(0,p.isUnmodifiedDefaultBlock)(c,"content")&&"html"!==r(a),h=a&&!s()&&d;return{showEmptyBlockSideInserter:h,showBlockToolbarPopover:!l()&&!i().hasFixedToolbar&&!h&&u&&!d}}),[]),y=RE(),{duplicateBlocks:x,removeBlocks:S,replaceBlocks:w,insertAfterBlock:C,insertBeforeBlock:B,selectBlock:I,moveBlocksUp:j,moveBlocksDown:E,expandBlock:M,updateBlockAttributes:P}=G((0,g.useDispatch)(ji));const R=Fm(t),A=Fm(t);return(0,d.jsx)("div",{...n,onKeyDown:function(e){if(!e.defaultPrevented)if(a("core/block-editor/move-up",e)||a("core/block-editor/move-down",e)){const t=u();if(t.length){e.preventDefault();const n=m(t[0]);"up"===(a("core/block-editor/move-up",e)?"up":"down")?j(t,n):E(t,n);const o=Array.isArray(t)?t.length:1,r=(0,T.sprintf)((0,T._n)("%d block moved.","%d blocks moved.",t.length),o);(0,Uo.speak)(r)}}else if(a("core/block-editor/duplicate",e)){const t=u();t.length&&(e.preventDefault(),x(t))}else if(a("core/block-editor/remove",e)){const t=u();t.length&&(e.preventDefault(),S(t))}else if(a("core/block-editor/paste-styles",e)){const t=u();if(t.length){e.preventDefault();const n=c(t);y(n)}}else if(a("core/block-editor/insert-after",e)){const t=u();t.length&&(e.preventDefault(),C(t[t.length-1]))}else if(a("core/block-editor/insert-before",e)){const t=u();t.length&&(e.preventDefault(),B(t[0]))}else if(a("core/block-editor/unselect",e)){if(e.target.closest("[role=toolbar]"))return;const t=u();t.length>1&&(e.preventDefault(),I(t[0]))}else if(a("core/block-editor/collapse-list-view",e)){if((0,Ga.isTextField)(e.target)||(0,Ga.isTextField)(e.target?.contentWindow?.document?.activeElement))return;e.preventDefault(),M(o)}else if(a("core/block-editor/group",e)){const t=u();if(t.length>1&&f(t)){e.preventDefault();const n=c(t),o=k(),r=(0,p.switchToBlockType)(n,o);w(t,r),(0,Uo.speak)((0,T.__)("Selected blocks are grouped."))}}else if(a("core/block-editor/toggle-block-visibility",e)){const t=u();if(t.length){e.preventDefault();const n=c(t);if(!n.every((e=>(0,p.hasBlockSupport)(b(e.clientId),"blockVisibility",!0))))return;const o=n.some((e=>!1===e.attributes.metadata?.blockVisibility)),r=Object.fromEntries(n.map((({clientId:e,attributes:t})=>[e,{metadata:fs({...t?.metadata,blockVisibility:!!o&&void 0})}])));P(t,r,{uniqueByBlock:!0})}}},children:(0,d.jsxs)(jS.Provider,{value:(0,h.useRef)(!1),children:[!i&&!s&&(0,d.jsx)(TS,{__unstableContentRef:t}),v&&(0,d.jsx)(Rj,{__unstableContentRef:t,clientId:o}),_&&(0,d.jsx)(zT,{__unstableContentRef:t,clientId:o,isTyping:i}),!s&&!r&&(0,d.jsx)(ws.Popover.Slot,{name:"block-toolbar",ref:R}),e,(0,d.jsx)(ws.Popover.Slot,{name:"__unstable-block-tools-after",ref:A}),s&&!l&&(0,d.jsx)(FT,{__unstableContentRef:t})]})})}const GT=window.wp.commands;var $T=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.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"})}),WT=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12 5.5A2.25 2.25 0 0 0 9.878 7h4.244A2.251 2.251 0 0 0 12 5.5ZM12 4a3.751 3.751 0 0 0-3.675 3H5v1.5h1.27l.818 8.997a2.75 2.75 0 0 0 2.739 2.501h4.347a2.75 2.75 0 0 0 2.738-2.5L17.73 8.5H19V7h-3.325A3.751 3.751 0 0 0 12 4Zm4.224 4.5H7.776l.806 8.861a1.25 1.25 0 0 0 1.245 1.137h4.347a1.25 1.25 0 0 0 1.245-1.137l.805-8.861Z"})});const KT=()=>function(){const{replaceBlocks:e,multiSelect:t}=(0,g.useDispatch)(ji),{blocks:n,clientIds:o,canRemove:r,possibleBlockTransformations:i,invalidSelection:s}=(0,g.useSelect)((e=>{const{getBlockRootClientId:t,getBlockTransformItems:n,getSelectedBlockClientIds:o,getBlocksByClientId:r,canRemoveBlocks:i}=e(ji),s=o(),l=r(s);if(l.filter((e=>!e)).length>0)return{invalidSelection:!0};return{blocks:l,clientIds:s,possibleBlockTransformations:n(l,t(s[0])),canRemove:i(s),invalidSelection:!1}}),[]);if(s)return{isLoading:!1,commands:[]};const l=1===n.length&&(0,p.isTemplatePart)(n[0]);function a(r){const i=(0,p.switchToBlockType)(n,r);var s;e(o,i),(s=i).length>1&&t(s[0].clientId,s[s.length-1].clientId)}const c=!!i.length&&r&&!l;if(!o||o.length<1||!c)return{isLoading:!1,commands:[]};return{isLoading:!1,commands:i.map((e=>{const{name:t,title:n,icon:o}=e;return{name:"core/block-editor/transform-to-"+t.replace("/","-"),label:(0,T.sprintf)((0,T.__)("Transform to %s"),n),icon:(0,d.jsx)(Vu,{icon:o}),callback:({close:e})=>{a(t),e()}}}))}},ZT=()=>{(0,GT.useCommandLoader)({name:"core/block-editor/blockTransforms",hook:KT()}),(0,GT.useCommandLoader)({name:"core/block-editor/blockQuickActions",hook:function(){const{clientIds:e,isUngroupable:t,isGroupable:n}=(0,g.useSelect)((e=>{const{getSelectedBlockClientIds:t,isUngroupable:n,isGroupable:o}=e(ji);return{clientIds:t(),isUngroupable:n(),isGroupable:o()}}),[]),{canInsertBlockType:o,getBlockRootClientId:r,getBlocksByClientId:i,canRemoveBlocks:s,getBlockName:l}=(0,g.useSelect)(ji),{getDefaultBlockName:a,getGroupingBlockName:c}=(0,g.useSelect)(p.store),u=i(e),{removeBlocks:d,replaceBlocks:h,duplicateBlocks:m,insertAfterBlock:f,insertBeforeBlock:b,updateBlockAttributes:k}=(0,g.useDispatch)(ji),v=()=>{if(!u.length)return;const t=c(),n=(0,p.switchToBlockType)(u,t);n&&h(e,n)},_=()=>{if(!u.length)return;const t=u[0].innerBlocks;t.length&&h(e,t)};if(!e||e.length<1)return{isLoading:!1,commands:[]};const y=r(e[0]),x=o(a(),y),S=u.every((e=>!!e&&(0,p.hasBlockSupport)(e.name,"multiple",!0)&&o(e.name,y))),w=s(e),C=u.every((({clientId:e})=>(0,p.hasBlockSupport)(l(e),"blockVisibility",!0))),B=[];if(S&&B.push({name:"duplicate",label:(0,T.__)("Duplicate"),callback:()=>m(e,!0),icon:qj}),x&&B.push({name:"add-before",label:(0,T.__)("Add before"),callback:()=>{const t=Array.isArray(e)?e[0]:t;b(t)},icon:cc},{name:"add-after",label:(0,T.__)("Add after"),callback:()=>{const t=Array.isArray(e)?e[e.length-1]:t;f(t)},icon:cc}),n&&B.push({name:"Group",label:(0,T.__)("Group"),callback:v,icon:bT}),t&&B.push({name:"ungroup",label:(0,T.__)("Ungroup"),callback:_,icon:$T}),w&&B.push({name:"remove",label:(0,T.__)("Delete"),callback:()=>d(e,!0),icon:WT}),C){const t=u.some((e=>!1===e.attributes.metadata?.blockVisibility));B.push({name:"core/toggle-block-visibility",label:t?(0,T.__)("Show"):(0,T.__)("Hide"),callback:()=>{const n=Object.fromEntries(u?.map((({clientId:e,attributes:n})=>[e,{metadata:fs({...n?.metadata,blockVisibility:!!t&&void 0})}])));k(e,n,{uniqueByBlock:!0})},icon:t?tT:nT})}return{isLoading:!1,commands:B.map((e=>({...e,name:"core/block-editor/action-"+e.name,callback:({close:t})=>{e.callback(),t()}})))}},context:"block-selection-edit"})},qT={ignoredSelectors:[/\.editor-styles-wrapper/gi]};function YT({shouldIframe:e=!0,height:t="300px",children:n=(0,d.jsx)(dw,{}),styles:o,contentRef:r,iframeProps:i}){ZT();const s=(0,m.useViewportMatch)("medium","<"),l=nw(),a=PS(),c=(0,h.useRef)(),u=(0,m.useMergeRefs)([r,a,c]),p=(0,g.useSelect)((e=>G(e(ji)).getZoomLevel()),[]),f=100===p||s?{}:{scale:p,frameSize:"40px"};return e?(0,d.jsx)(UT,{__unstableContentRef:c,style:{height:t,display:"flex"},children:(0,d.jsxs)(Fw,{...i,...f,ref:l,contentRef:u,style:{...i?.style},name:"editor-canvas",children:[(0,d.jsx)(cC,{styles:o}),n]})}):(0,d.jsxs)(UT,{__unstableContentRef:c,style:{height:t,display:"flex"},children:[(0,d.jsx)(cC,{styles:o,scope:":where(.editor-styles-wrapper)",transformOptions:qT}),(0,d.jsx)(Aw,{ref:u,className:"editor-styles-wrapper",tabIndex:-1,style:{height:"100%",width:"100%"},children:n})]})}var XT=function({children:e,height:t,styles:n}){return(0,d.jsx)(YT,{height:t,styles:n,children:e})};const QT=()=>(0,d.jsx)(ws.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:(0,d.jsx)(ws.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"})}),JT=({style:e,className:t})=>(0,d.jsx)("div",{className:"block-library-colors-selector__icon-container",children:(0,d.jsx)("div",{className:`${t} block-library-colors-selector__state-selection`,style:e,children:(0,d.jsx)(QT,{})})}),eM=({TextColor:e,BackgroundColor:t})=>({onToggle:n,isOpen:o})=>(0,d.jsx)(ws.ToolbarGroup,{children:(0,d.jsx)(ws.ToolbarButton,{className:"components-toolbar__control block-library-colors-selector__toggle",label:(0,T.__)("Open Colors Selector"),onClick:n,onKeyDown:e=>{o||e.keyCode!==Wa.DOWN||(e.preventDefault(),n())},icon:(0,d.jsx)(t,{children:(0,d.jsx)(e,{children:(0,d.jsx)(JT,{})})})})});var tM=({children:e,...t})=>(I()("wp.blockEditor.BlockColorsStyleSelector",{alternative:"block supports API",since:"6.1",version:"6.3"}),(0,d.jsx)(ws.Dropdown,{popoverProps:{placement:"bottom-start"},className:"block-library-colors-selector",contentClassName:"block-library-colors-selector__popover",renderToggle:eM(t),renderContent:()=>e})),nM=(0,d.jsx)(ue.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,d.jsx)(ue.Path,{d:"M3 6h11v1.5H3V6Zm3.5 5.5h11V13h-11v-1.5ZM21 17H10v1.5h11V17Z"})});const oM=(0,h.createContext)({});oM.displayName="ListViewContext";const rM=()=>(0,h.useContext)(oM);function iM({children:e,...t}){const n=(0,h.useRef)();return(0,h.useEffect)((()=>{n.current&&(n.current.textContent=n.current.textContent)}),[e]),(0,d.jsx)("div",{hidden:!0,...t,ref:n,children:e})}const sM=(0,h.forwardRef)((({nestingLevel:e,blockCount:t,clientId:n,...o},r)=>{const{insertedBlock:i,setInsertedBlock:s}=rM(),l=(0,m.useInstanceId)(sM),{directInsert:a,hideInserter:c}=(0,g.useSelect)((e=>{const{getBlockListSettings:t,getTemplateLock:o,isZoomOut:r}=G(e(ji)),i=t(n);return{directInsert:i?.directInsert||!1,hideInserter:!!o(n)||r()}}),[n]),u=Sj({clientId:n,context:"list-view"}),p=Sj({clientId:i?.clientId,context:"list-view"});if((0,h.useEffect)((()=>{p?.length&&(0,Uo.speak)((0,T.sprintf)((0,T.__)("%s block inserted"),p),"assertive")}),[p]),c)return null;const f=`list-view-appender__${l}`,b=(0,T.sprintf)((0,T.__)("Append to %1$s block at position %2$d, Level %3$d"),u,t+1,e);return(0,d.jsxs)("div",{className:"list-view-appender",children:[(0,d.jsx)(lI,{ref:r,rootClientId:n,position:"bottom right",isAppender:!0,selectBlockOnInsert:!1,shouldDirectInsert:a,__experimentalIsQuick:!0,...o,toggleProps:{"aria-describedby":f},onSelectOrClose:e=>{e?.clientId&&s(e)}}),(0,d.jsx)(iM,{id:f,children:b})]})})),lM=Jx(ws.__experimentalTreeGridRow),aM=(0,h.forwardRef)((({isDragged:e,isSelected:t,position:n,level:o,rowCount:r,children:i,className:s,path:l,...a},c)=>{const u=tS({clientId:a["data-block"],enableAnimation:!0,triggerAnimationOnChange:l}),p=(0,m.useMergeRefs)([c,u]);return(0,d.jsx)(lM,{ref:p,className:ms("block-editor-list-view-leaf",s),level:o,positionInSet:n,setSize:r,isExpanded:void 0,...a,children:i})}));var cM=aM;var uM=(0,d.jsx)(ue.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,d.jsx)(ue.Path,{d:"M10.97 10.159a3.382 3.382 0 0 0-2.857.955l1.724 1.723-2.836 2.913L7 17h1.25l2.913-2.837 1.723 1.723a3.38 3.38 0 0 0 .606-.825c.33-.63.446-1.343.35-2.032L17 10.695 13.305 7l-2.334 3.159Z"})}),dM=(0,d.jsx)(ue.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,d.jsx)(ue.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M15 11h-.2V9c0-1.5-1.2-2.8-2.8-2.8S9.2 7.5 9.2 9v2H9c-.6 0-1 .4-1 1v4c0 .6.4 1 1 1h6c.6 0 1-.4 1-1v-4c0-.6-.4-1-1-1zm-1.8 0h-2.5V9c0-.7.6-1.2 1.2-1.2s1.2.6 1.2 1.2v2z"})});function pM({onClick:e}){return(0,d.jsx)("span",{className:"block-editor-list-view__expander",onClick:t=>e(t,{forceToggle:!0}),"aria-hidden":"true","data-testid":"list-view-expander",children:(0,d.jsx)(Ol,{icon:(0,T.isRTL)()?nc:oc})})}const hM={"core/image":({clientId:e,attributes:t})=>{if(t.url)return{url:t.url,alt:t.alt||"",clientId:e}},"core/cover":({clientId:e,attributes:t})=>{if("image"===t.backgroundType&&t.url)return{url:t.url,alt:t.alt||"",clientId:e}},"core/media-text":({clientId:e,attributes:t})=>{if("image"===t.mediaType&&t.mediaUrl)return{url:t.mediaUrl,alt:t.mediaAlt||"",clientId:e}},"core/gallery":({innerBlocks:e})=>{const t=[],n=e?.length?hM[e[0].name]:void 0;if(!n)return t;for(const o of e){const e=n(o);if(e&&t.push(e),t.length>=3)return t}return t}};function gM({clientId:e,isExpanded:t}){const{block:n}=(0,g.useSelect)((t=>({block:t(ji).getBlock(e)})),[e]);return(0,h.useMemo)((()=>function(e,t){const n=hM[e.name],o=n?n(e):void 0;return o?Array.isArray(o)?t?[]:o:[o]:[]}(n,t)),[n,t])}const{Badge:mM}=G(ws.privateApis);var fM=(0,h.forwardRef)((function({className:e,block:{clientId:t},onClick:n,onContextMenu:o,onMouseDown:r,onToggleExpanded:i,tabIndex:s,onFocus:l,onDragStart:a,onDragEnd:c,draggable:u,isExpanded:h,ariaDescribedBy:m},f){const b=Xf(t),k=Sj({clientId:t,context:"list-view"}),{isLocked:v}=HE(t),{canToggleBlockVisibility:_,isBlockHidden:y,isContentOnly:x}=(0,g.useSelect)((e=>{const{getBlockName:n}=e(ji),{isBlockHidden:o}=G(e(ji));return{canToggleBlockVisibility:(0,p.hasBlockSupport)(n(t),"blockVisibility",!0),isBlockHidden:o(t),isContentOnly:"contentOnly"===e(ji).getBlockEditingMode(t)}}),[t]),S=v&&!x,w=_&&y,C="sticky"===b?.positionType,B=gM({clientId:t,isExpanded:h});return(0,d.jsxs)("a",{className:ms("block-editor-list-view-block-select-button",e),onClick:n,onContextMenu:o,onKeyDown:function(e){e.keyCode!==Wa.ENTER&&e.keyCode!==Wa.SPACE||n(e)},onMouseDown:r,ref:f,tabIndex:s,onFocus:l,onDragStart:e=>{e.dataTransfer.clearData(),a?.(e)},onDragEnd:c,draggable:u,href:`#block-${t}`,"aria-describedby":m,"aria-expanded":h,children:[(0,d.jsx)(pM,{onClick:i}),(0,d.jsx)(Vu,{icon:b?.icon,showColors:!0,context:"list-view"}),(0,d.jsxs)(ws.__experimentalHStack,{alignment:"center",className:"block-editor-list-view-block-select-button__label-wrapper",justify:"flex-start",spacing:1,children:[(0,d.jsx)("span",{className:"block-editor-list-view-block-select-button__title",children:(0,d.jsx)(ws.__experimentalTruncate,{ellipsizeMode:"auto",children:k})}),b?.anchor&&(0,d.jsx)("span",{className:"block-editor-list-view-block-select-button__anchor-wrapper",children:(0,d.jsx)(mM,{className:"block-editor-list-view-block-select-button__anchor",children:b.anchor})}),C&&(0,d.jsx)("span",{className:"block-editor-list-view-block-select-button__sticky",children:(0,d.jsx)(Ol,{icon:uM})}),B.length?(0,d.jsx)("span",{className:"block-editor-list-view-block-select-button__images","aria-hidden":!0,children:B.map(((e,t)=>(0,d.jsx)("span",{className:"block-editor-list-view-block-select-button__image",style:{backgroundImage:`url(${e.url})`,zIndex:B.length-t}},e.clientId)))}):null,w&&(0,d.jsx)("span",{className:"block-editor-list-view-block-select-button__block-visibility",children:(0,d.jsx)(Ol,{icon:nT})}),S&&(0,d.jsx)("span",{className:"block-editor-list-view-block-select-button__lock",children:(0,d.jsx)(Ol,{icon:dM})})]})]})}));const bM=(0,h.forwardRef)((({onClick:e,onToggleExpanded:t,block:n,isSelected:o,position:r,siblingBlockCount:i,level:s,isExpanded:l,selectedClientIds:a,...c},u)=>{const{clientId:p}=n,{AdditionalBlockContent:h,insertedBlock:g,setInsertedBlock:m}=rM(),f=a.includes(p)?a:[p];return(0,d.jsxs)(d.Fragment,{children:[h&&(0,d.jsx)(h,{block:n,insertedBlock:g,setInsertedBlock:m}),(0,d.jsx)(Aj,{appendToOwnerDocument:!0,clientIds:f,cloneClassname:"block-editor-list-view-draggable-chip",children:({draggable:a,onDragStart:p,onDragEnd:h})=>(0,d.jsx)(fM,{ref:u,className:"block-editor-list-view-block-contents",block:n,onClick:e,onToggleExpanded:t,isSelected:o,position:r,siblingBlockCount:i,level:s,draggable:a,onDragStart:p,onDragEnd:h,isExpanded:l,...c})})]})}));var kM=bM;function vM(e,t){const n=()=>{const n=t?.querySelector(`[role=row][data-block="${e}"]`);return n?Ga.focus.focusable.find(n)[0]:null};let o=n();o?o.focus():window.requestAnimationFrame((()=>{o=n(),o&&o.focus()}))}var _M=(0,h.memo)((function e({block:{clientId:t},displacement:n,isAfterDraggedBlocks:o,isDragged:r,isNesting:i,isSelected:s,isBranchSelected:l,selectBlock:a,position:c,level:u,rowCount:f,siblingBlockCount:b,showBlockMovers:k,path:v,isExpanded:_,selectedClientIds:y,isSyncedBranch:x}){const S=(0,h.useRef)(null),w=(0,h.useRef)(null),C=(0,h.useRef)(null),[B,I]=(0,h.useState)(!1),[j,E]=(0,h.useState)(),{isLocked:M,canEdit:P,canMove:R}=HE(t),A=s&&y[0]===t,N=s&&y[y.length-1]===t,{toggleBlockHighlight:L,duplicateBlocks:D,multiSelect:O,replaceBlocks:z,removeBlocks:V,insertAfterBlock:F,insertBeforeBlock:H,setOpenedBlockSettingsMenu:U,updateBlockAttributes:$}=G((0,g.useDispatch)(ji)),W=(0,m.useDebounce)(L,50),{canInsertBlockType:K,getSelectedBlockClientIds:Z,getPreviousBlockClientId:q,getBlockRootClientId:Y,getBlockOrder:X,getBlockParents:Q,getBlocksByClientId:J,canRemoveBlocks:ee,isGroupable:te}=(0,g.useSelect)(ji),{getGroupingBlockName:ne}=(0,g.useSelect)(p.store),oe=Xf(t),re=RE(),{block:ie,blockName:se,allowRightClickOverrides:le,isBlockHidden:ae}=(0,g.useSelect)((e=>{const{getBlock:n,getBlockName:o,getSettings:r}=e(ji),{isBlockHidden:i}=G(e(ji));return{block:n(t),blockName:o(t),allowRightClickOverrides:r().allowRightClickOverrides,isBlockHidden:i(t)}}),[t]),ce=(0,p.hasBlockSupport)(se,"__experimentalToolbar",!0),ue=`list-view-block-select-button__description-${(0,m.useInstanceId)(e)}`,{expand:de,collapse:pe,collapseAll:he,BlockSettingsMenu:ge,listViewInstanceId:me,expandedState:fe,setInsertedBlock:be,treeGridElementRef:ke,rootClientId:ve}=rM(),_e=(0,Yk.__unstableUseShortcutEventMatch)();function ye(){const e=Z(),n=e.includes(t),o=n?e[0]:t,r=Y(o);return{blocksToUpdate:n?e:[t],firstBlockClientId:o,firstBlockRootClientId:r,selectedBlockClientIds:e}}const xe=(0,h.useCallback)((()=>{I(!0),W(t,!0)}),[t,I,W]),Se=(0,h.useCallback)((()=>{I(!1),W(t,!1)}),[t,I,W]),we=(0,h.useCallback)((e=>{a(e,t),e.preventDefault()}),[t,a]),Ce=(0,h.useCallback)(((e,t)=>{t&&a(void 0,e,null,null),vM(e,ke?.current)}),[a,ke]),Be=(0,h.useCallback)((e=>{e.preventDefault(),e.stopPropagation(),!0===_?pe(t):!1===_&&de(t)}),[t,de,pe,_]),Ie=(0,h.useCallback)((e=>{ce&&le&&(C.current?.click(),E(new window.DOMRect(e.clientX,e.clientY,0,0)),e.preventDefault())}),[le,C,ce]),je=(0,h.useCallback)((e=>{le&&2===e.button&&e.preventDefault()}),[le]),Ee=(0,h.useMemo)((()=>{const{ownerDocument:e}=w?.current||{};if(j&&e)return{ownerDocument:e,getBoundingClientRect:()=>j}}),[j]),Te=(0,h.useCallback)((()=>{E(void 0)}),[E]);if(function({isSelected:e,selectedClientIds:t,rowItemRef:n}){const o=1===t.length;(0,h.useLayoutEffect)((()=>{if(!e||!o||!n.current)return;const t=(0,Ga.getScrollContainer)(n.current),{ownerDocument:r}=n.current;if(t===r.body||t===r.documentElement||!t)return;const i=n.current.getBoundingClientRect(),s=t.getBoundingClientRect();(i.top<s.top||i.bottom>s.bottom)&&n.current.scrollIntoView()}),[e,o,n])}({isSelected:s,rowItemRef:w,selectedClientIds:y}),!ie)return null;const Me=((e,t,n)=>(0,T.sprintf)((0,T.__)("Block %1$d of %2$d, Level %3$d."),e,t,n))(c,b,u),Pe=((e,t)=>[e?.positionLabel?`${(0,T.sprintf)((0,T.__)("Position: %s"),e.positionLabel)}.`:void 0,t?(0,T.__)("This block is locked."):void 0].filter(Boolean).join(" "))(oe,M),Re=ae?(0,T.__)("Block is hidden."):null,Ae=k&&b>0,Ne=ms("block-editor-list-view-block__mover-cell",{"is-visible":B||s}),Le=ms("block-editor-list-view-block__menu-cell",{"is-visible":B||A});let De;Ae?De=2:ce||(De=3);const Oe=ms({"is-selected":s,"is-first-selected":A,"is-last-selected":N,"is-branch-selected":l,"is-synced-branch":x,"is-dragging":r,"has-single-cell":!ce,"is-synced":oe?.isSynced,"is-draggable":R,"is-displacement-normal":"normal"===n,"is-displacement-up":"up"===n,"is-displacement-down":"down"===n,"is-after-dragged-blocks":o,"is-nesting":i}),ze=y.includes(t)?y:[t],Ve=s&&1===y.length;return(0,d.jsxs)(cM,{className:Oe,isDragged:r,onKeyDown:async function(e){if(e.defaultPrevented)return;if(e.target.closest("[role=dialog]"))return;const t=[Wa.BACKSPACE,Wa.DELETE].includes(e.keyCode);if(_e("core/block-editor/unselect",e)&&y.length>0)e.stopPropagation(),e.preventDefault(),a(e,void 0);else if(t||_e("core/block-editor/remove",e)){const{blocksToUpdate:e,firstBlockClientId:t,firstBlockRootClientId:n,selectedBlockClientIds:o}=ye();if(!ee(e))return;let r=q(t)??n;V(e,!1);const i=o.length>0&&0===Z().length;r||(r=X()[0]),Ce(r,i)}else if(_e("core/block-editor/paste-styles",e)){e.preventDefault();const{blocksToUpdate:t}=ye(),n=J(t);re(n)}else if(_e("core/block-editor/duplicate",e)){e.preventDefault();const{blocksToUpdate:t,firstBlockRootClientId:n}=ye();if(J(t).every((e=>!!e&&(0,p.hasBlockSupport)(e.name,"multiple",!0)&&K(e.name,n)))){const e=await D(t,!1);e?.length&&Ce(e[0],!1)}}else if(_e("core/block-editor/insert-before",e)){e.preventDefault();const{blocksToUpdate:t}=ye();await H(t[0]);const n=Z();U(void 0),Ce(n[0],!1)}else if(_e("core/block-editor/insert-after",e)){e.preventDefault();const{blocksToUpdate:t}=ye();await F(t.at(-1));const n=Z();U(void 0),Ce(n[0],!1)}else if(_e("core/block-editor/select-all",e)){e.preventDefault();const{firstBlockRootClientId:t,selectedBlockClientIds:n}=ye(),o=X(t);if(!o.length)return;if(Ja()(n,o)&&t&&t!==ve)return void Ce(t,!0);O(o[0],o[o.length-1],null)}else if(_e("core/block-editor/collapse-list-view",e)){e.preventDefault();const{firstBlockClientId:t}=ye(),n=Q(t,!1);he(),de(n)}else if(_e("core/block-editor/group",e)){const{blocksToUpdate:t}=ye();if(t.length>1&&te(t)){e.preventDefault();const n=J(t),o=ne(),r=(0,p.switchToBlockType)(n,o);z(t,r),(0,Uo.speak)((0,T.__)("Selected blocks are grouped."));const i=Z();U(void 0),Ce(i[0],!1)}}else if(_e("core/block-editor/toggle-block-visibility",e)){e.preventDefault();const{blocksToUpdate:t}=ye(),n=J(t);if(!n.every((e=>(0,p.hasBlockSupport)(e.name,"blockVisibility",!0))))return;const o=n.some((e=>!1===e.attributes.metadata?.blockVisibility)),r=Object.fromEntries(n.map((({clientId:e,attributes:t})=>[e,{metadata:fs({...t?.metadata,blockVisibility:!!o&&void 0})}])));$(t,r,{uniqueByBlock:!0})}},onMouseEnter:xe,onMouseLeave:Se,onFocus:xe,onBlur:Se,level:u,position:c,rowCount:f,path:v,id:`list-view-${me}-block-${t}`,"data-block":t,"data-expanded":P?_:void 0,ref:w,children:[(0,d.jsx)(ws.__experimentalTreeGridCell,{className:"block-editor-list-view-block__contents-cell",colSpan:De,ref:S,"aria-selected":!!s,children:({ref:e,tabIndex:t,onFocus:n})=>(0,d.jsxs)("div",{className:"block-editor-list-view-block__contents-container",children:[(0,d.jsx)(kM,{block:ie,onClick:we,onContextMenu:Ie,onMouseDown:je,onToggleExpanded:Be,isSelected:s,position:c,siblingBlockCount:b,level:u,ref:e,tabIndex:Ve?0:t,onFocus:n,isExpanded:P?_:void 0,selectedClientIds:y,ariaDescribedBy:ue}),(0,d.jsx)(iM,{id:ue,children:[Me,Pe,Re].filter(Boolean).join(" ")})]})}),Ae&&(0,d.jsx)(d.Fragment,{children:(0,d.jsxs)(ws.__experimentalTreeGridCell,{className:Ne,withoutGridItem:!0,children:[(0,d.jsx)(ws.__experimentalTreeGridItem,{children:({ref:e,tabIndex:n,onFocus:o})=>(0,d.jsx)(Vj,{orientation:"vertical",clientIds:[t],ref:e,tabIndex:n,onFocus:o})}),(0,d.jsx)(ws.__experimentalTreeGridItem,{children:({ref:e,tabIndex:n,onFocus:o})=>(0,d.jsx)(Fj,{orientation:"vertical",clientIds:[t],ref:e,tabIndex:n,onFocus:o})})]})}),ce&&ge&&(0,d.jsx)(ws.__experimentalTreeGridCell,{className:Le,"aria-selected":!!s,ref:C,children:({ref:e,tabIndex:t,onFocus:n})=>(0,d.jsx)(ge,{clientIds:ze,block:ie,icon:fv,label:(0,T.__)("Options"),popoverProps:{anchor:Ee},toggleProps:{ref:e,className:"block-editor-list-view-block__menu",tabIndex:t,onClick:Te,onFocus:n,size:"small"},disableOpenOnArrowDown:!0,expand:de,expandedState:fe,setInsertedBlock:be,__experimentalSelectBlock:Ce})})]})}));function yM(e,t,n,o){const r=n?.includes(e.clientId);if(r)return 0;return t[e.clientId]??o?1+e.innerBlocks.reduce(xM(t,n,o),0):1}const xM=(e,t,n)=>(o,r)=>{const i=t?.includes(r.clientId);if(i)return o;return(e[r.clientId]??n)&&r.innerBlocks.length>0?o+yM(r,e,t,n):o+1},SM=()=>{};var wM=(0,h.memo)((function e(t){const{blocks:n,selectBlock:o=SM,showBlockMovers:r,selectedClientIds:i,level:s=1,path:l="",isBranchSelected:a=!1,listPosition:c=0,fixedListWindow:u,isExpanded:p,parentId:m,shouldShowInnerBlocks:f=!0,isSyncedBranch:b=!1,showAppender:k=!0}=t,v=Xf(m),_=b||!!v?.isSynced,y=(0,g.useSelect)((e=>!m||e(ji).canEditBlock(m)),[m]),{blockDropPosition:x,blockDropTargetIndex:S,firstDraggedBlockIndex:w,blockIndexes:C,expandedState:B,draggedClientIds:I}=rM(),j=(0,h.useRef)();if(!y)return null;const E=k&&1===s,T=n.filter(Boolean),M=T.length,P=E?M+1:M;return j.current=c,(0,d.jsxs)(d.Fragment,{children:[T.map(((t,n)=>{const{clientId:c,innerBlocks:h}=t;n>0&&(j.current+=yM(T[n-1],B,I,p));const m=!!I?.includes(c),{displacement:b,isAfterDraggedBlocks:k,isNesting:v}=function({blockIndexes:e,blockDropTargetIndex:t,blockDropPosition:n,clientId:o,firstDraggedBlockIndex:r,isDragged:i}){let s,l,a;if(!i){l=!1;const i=e[o];a=i>r,null!=t&&void 0!==r?void 0!==i&&(s=i>=r&&i<t?"up":i<r&&i>=t?"down":"normal",l="number"==typeof t&&t-1===i&&"inside"===n):null===t&&void 0!==r?s=void 0!==i&&i>=r?"up":"normal":null!=t&&void 0===r?void 0!==i&&(s=i<t?"normal":"down"):null===t&&(s="normal")}return{displacement:s,isNesting:l,isAfterDraggedBlocks:a}}({blockIndexes:C,blockDropTargetIndex:S,blockDropPosition:x,clientId:c,firstDraggedBlockIndex:w,isDragged:m}),{itemInView:y}=u,E=y(j.current),R=n+1,A=l.length>0?`${l}_${R}`:`${R}`,N=!!h?.length,L=N&&f?B[c]??p:void 0,D=((e,t)=>Array.isArray(t)&&t.length?-1!==t.indexOf(e):t===e)(c,i),O=a||D&&N,z=m||E||D&&c===i[0]||0===n||n===M-1;return(0,d.jsxs)(g.AsyncModeProvider,{value:!D,children:[z&&(0,d.jsx)(_M,{block:t,selectBlock:o,isSelected:D,isBranchSelected:O,isDragged:m,level:s,position:R,rowCount:P,siblingBlockCount:M,showBlockMovers:r,path:A,isExpanded:!m&&L,listPosition:j.current,selectedClientIds:i,isSyncedBranch:_,displacement:b,isAfterDraggedBlocks:k,isNesting:v}),!z&&(0,d.jsx)("tr",{children:(0,d.jsx)("td",{className:"block-editor-list-view-placeholder"})}),N&&L&&!m&&(0,d.jsx)(e,{parentId:c,blocks:h,selectBlock:o,showBlockMovers:r,level:s+1,path:A,listPosition:j.current+1,fixedListWindow:u,isBranchSelected:O,selectedClientIds:i,isExpanded:p,isSyncedBranch:_})]},c)})),E&&(0,d.jsx)(ws.__experimentalTreeGridRow,{level:s,setSize:P,positionInSet:P,isExpanded:!0,children:(0,d.jsx)(ws.__experimentalTreeGridCell,{children:e=>(0,d.jsx)(sM,{clientId:m,nestingLevel:s,blockCount:M,...e})})})]})}));function CM({draggedBlockClientId:e,listViewRef:t,blockDropTarget:n}){const o=Xf(e),r=Sj({clientId:e,context:"list-view"}),{rootClientId:i,clientId:s,dropPosition:l}=n||{},[a,c]=(0,h.useMemo)((()=>{if(!t.current)return[];return[i?t.current.querySelector(`[data-block="${i}"]`):void 0,s?t.current.querySelector(`[data-block="${s}"]`):void 0]}),[t,i,s]),u=c||a,p=(0,T.isRTL)(),g=(0,h.useCallback)(((e,t)=>{if(!u)return 0;let n=u.offsetWidth;const o=(0,Ga.getScrollContainer)(u,"horizontal"),r=u.ownerDocument,i=o===r.body||o===r.documentElement;if(o&&!i){const r=o.getBoundingClientRect(),i=(0,T.isRTL)()?r.right-e.right:e.left-r.left,s=o.clientWidth;if(s<n+i&&(n=s-i),!p&&e.left+t<r.left)return n-=r.left-e.left,n;if(p&&e.right-t>r.right)return n-=e.right-r.right,n}return n-t}),[p,u]),m=(0,h.useMemo)((()=>{if(!u)return{};const e=u.getBoundingClientRect();return{width:g(e,0)}}),[g,u]),f=(0,h.useMemo)((()=>{if(!u)return{};const e=(0,Ga.getScrollContainer)(u),t=u.ownerDocument,n=e===t.body||e===t.documentElement;if(e&&!n){const t=e.getBoundingClientRect(),n=u.getBoundingClientRect(),o=p?t.right-n.right:n.left-t.left;if(!p&&t.left>n.left)return{transform:`translateX( ${o}px )`};if(p&&t.right<n.right)return{transform:`translateX( ${-1*o}px )`}}return{}}),[p,u]),b=(0,h.useMemo)((()=>{if(!a)return 1;const e=parseInt(a.getAttribute("aria-level"),10);return e?e+1:1}),[a]),k=(0,h.useMemo)((()=>!!u&&u.classList.contains("is-branch-selected")),[u]),v=(0,h.useMemo)((()=>{if(u&&("top"===l||"bottom"===l||"inside"===l))return{contextElement:u,getBoundingClientRect(){const e=u.getBoundingClientRect();let t=e.left,n=0;const o=(0,Ga.getScrollContainer)(u,"horizontal"),r=u.ownerDocument,i=o===r.body||o===r.documentElement;if(o&&!i){const e=o.getBoundingClientRect(),n=p?o.offsetWidth-o.clientWidth:0;t<e.left+n&&(t=e.left+n)}n="top"===l?e.top-2*e.height:e.top;const s=g(e,0),a=e.height;return new window.DOMRect(t,n,s,a)}}}),[u,l,g,p]);return u?(0,d.jsx)(ws.Popover,{animate:!1,anchor:v,focusOnMount:!1,className:"block-editor-list-view-drop-indicator--preview",variant:"unstyled",flip:!1,resize:!0,children:(0,d.jsx)("div",{style:m,className:ms("block-editor-list-view-drop-indicator__line",{"block-editor-list-view-drop-indicator__line--darker":k}),children:(0,d.jsxs)("div",{className:"block-editor-list-view-leaf","aria-level":b,children:[(0,d.jsxs)("div",{className:ms("block-editor-list-view-block-select-button","block-editor-list-view-block-contents"),style:f,children:[(0,d.jsx)(pM,{onClick:()=>{}}),(0,d.jsx)(Vu,{icon:o?.icon,showColors:!0,context:"list-view"}),(0,d.jsx)(ws.__experimentalHStack,{alignment:"center",className:"block-editor-list-view-block-select-button__label-wrapper",justify:"flex-start",spacing:1,children:(0,d.jsx)("span",{className:"block-editor-list-view-block-select-button__title",children:(0,d.jsx)(ws.__experimentalTruncate,{ellipsizeMode:"auto",children:r})})})]}),(0,d.jsx)("div",{className:"block-editor-list-view-block__menu-cell"})]})})}):null}function BM(){const{clearSelectedBlock:e,multiSelect:t,selectBlock:n}=(0,g.useDispatch)(ji),{getBlockName:o,getBlockParents:r,getBlockSelectionStart:i,getSelectedBlockClientIds:s,hasMultiSelection:l,hasSelectedBlock:a}=(0,g.useSelect)(ji),{getBlockType:c}=(0,g.useSelect)(p.store);return{updateBlockSelection:(0,h.useCallback)((async(u,d,p,h)=>{if(!u?.shiftKey&&u?.keyCode!==Wa.ESCAPE)return void n(d,h);u.preventDefault();const g="keydown"===u.type&&u.keyCode===Wa.ESCAPE,m="keydown"===u.type&&(u.keyCode===Wa.UP||u.keyCode===Wa.DOWN||u.keyCode===Wa.HOME||u.keyCode===Wa.END);if(!m&&!a()&&!l())return void n(d,null);const f=s(),b=[...r(d),d];if((g||m&&!f.some((e=>b.includes(e))))&&await e(),!g){let e=i(),n=d;m&&(a()||l()||(e=d),p&&(n=p));const o=r(e),s=r(n),{start:c,end:u}=function(e,t,n,o){const r=[...n,e],i=[...o,t],s=Math.min(r.length,i.length)-1;return{start:r[s],end:i[s]}}(e,n,o,s);await t(c,u,null)}const k=s();if((u.keyCode===Wa.HOME||u.keyCode===Wa.END)&&k.length>1)return;const v=f.filter((e=>!k.includes(e)));let _;if(1===v.length){const e=c(o(v[0]))?.title;e&&(_=(0,T.sprintf)((0,T.__)("%s deselected."),e))}else v.length>1&&(_=(0,T.sprintf)((0,T.__)("%s blocks deselected."),v.length));_&&(0,Uo.speak)(_,"assertive")}),[e,o,c,r,i,s,l,a,t,n])}}const IM=24;function jM(e,t){const n=e[t+1];return n&&n.isDraggedBlock?jM(e,t+1):n}const EM=["top","bottom"];function TM(e,t,n=!1){let o,r,i,s,l;for(let n=0;n<e.length;n++){const a=e[n];if(a.isDraggedBlock)continue;const c=a.element.getBoundingClientRect(),[u,d]=zS(t,c,EM),p=VS(t,c);if(void 0===i||u<i||p){i=u;const t=e.indexOf(a),n=e[t-1];if("top"===d&&n&&n.rootClientId===a.rootClientId&&!n.isDraggedBlock?(r=n,o="bottom",s=n.element.getBoundingClientRect(),l=t-1):(r=a,o=d,s=c,l=t),p)break}}if(!r)return;const a=function(e,t){const n=[];let o=e;for(;o;)n.push({...o}),o=t.find((e=>e.clientId===o.rootClientId));return n}(r,e),c="bottom"===o;if(c&&r.canInsertDraggedBlocksAsChild&&(r.innerBlockCount>0&&r.isExpanded||function(e,t,n=1,o=!1){const r=o?t.right-n*IM:t.left+n*IM;return(o?e.x<r-IM:e.x>r+IM)&&e.y<t.bottom}(t,s,a.length,n))){const e=r.isExpanded?0:r.innerBlockCount||0;return{rootClientId:r.clientId,clientId:r.clientId,blockIndex:e,dropPosition:"inside"}}if(c&&r.rootClientId&&function(e,t,n=1,o=!1){const r=o?t.right-n*IM:t.left+n*IM;return o?e.x>r:e.x<r}(t,s,a.length,n)){const i=jM(e,l),c=r.nestingLevel,u=i?i.nestingLevel:1;if(c&&u){const d=function(e,t,n=1,o=!1){const r=o?t.right-n*IM:t.left+n*IM,i=o?r-e.x:e.x-r,s=Math.round(i/IM);return Math.abs(s)}(t,s,a.length,n),p=Math.max(Math.min(d,c-u),0);if(a[p]){let t=r.blockIndex;if(a[p].nestingLevel===i?.nestingLevel)t=i?.blockIndex;else for(let n=l;n>=0;n--){const o=e[n];if(o.rootClientId===a[p].rootClientId){t=o.blockIndex+1;break}}return{rootClientId:a[p].rootClientId,clientId:r.clientId,blockIndex:t,dropPosition:o}}}}if(!r.canInsertDraggedBlocksAsSibling)return;const u=c?1:0;return{rootClientId:r.rootClientId,clientId:r.clientId,blockIndex:r.blockIndex+u,dropPosition:o}}const MM={leading:!1,trailing:!0};function PM({selectBlock:e}){const t=(0,g.useRegistry)(),{getBlockOrder:n,getBlockRootClientId:o,getBlocksByClientId:r,getPreviousBlockClientId:i,getSelectedBlockClientIds:s,getSettings:l,canInsertBlockType:a,canRemoveBlocks:c}=(0,g.useSelect)(ji),{flashBlock:u,removeBlocks:d,replaceBlocks:h,insertBlocks:f}=(0,g.useDispatch)(ji),b=jw();return(0,m.useRefEffect)((g=>{function m(t,n){n&&e(void 0,t,null,null),vM(t,g)}function k(e){if(e.defaultPrevented)return;if(!g.contains(e.target.ownerDocument.activeElement))return;const k=e.target.ownerDocument.activeElement?.closest("[role=row]"),v=k?.dataset?.block;if(!v)return;const{blocksToUpdate:_,firstBlockClientId:y,firstBlockRootClientId:x,originallySelectedBlockClientIds:S}=function(e){const t=s(),n=t.includes(e),r=n?t[0]:e;return{blocksToUpdate:n?t:[e],firstBlockClientId:r,firstBlockRootClientId:o(r),originallySelectedBlockClientIds:t}}(v);if(0!==_.length){if(e.preventDefault(),"copy"===e.type||"cut"===e.type){1===_.length&&u(_[0]),b(e.type,_);Mw(e,r(_),t)}if("cut"===e.type){if(!c(_))return;let e=i(y)??x;d(_,!1);const t=S.length>0&&0===s().length;e||(e=n()[0]),m(e,t)}else if("paste"===e.type){const{__experimentalCanUserUseUnfilteredHTML:t}=l(),n=function(e,t){const{plainText:n,html:o,files:r}=Ew(e);let i=[];if(r.length){const e=(0,p.getBlockTransforms)("from");i=r.reduce(((t,n)=>{const o=(0,p.findTransform)(e,(e=>"files"===e.type&&e.isMatch([n])));return o&&t.push(o.transform([n])),t}),[]).flat()}else i=(0,p.pasteHandler)({HTML:o,plainText:n,mode:"BLOCKS",canUserUseUnfilteredHTML:t});return i}(e,t);if(1===_.length){const[e]=_;if(n.every((t=>a(t.name,e))))return f(n,void 0,e),void m(n[0]?.clientId,!1)}h(_,n,n.length-1,-1),m(n[0]?.clientId,!1)}}}return g.ownerDocument.addEventListener("copy",k),g.ownerDocument.addEventListener("cut",k),g.ownerDocument.addEventListener("paste",k),()=>{g.ownerDocument.removeEventListener("copy",k),g.ownerDocument.removeEventListener("cut",k),g.ownerDocument.removeEventListener("paste",k)}}),[])}const RM=(e,t)=>"clear"===t.type?{}:Array.isArray(t.clientIds)?{...e,...t.clientIds.reduce(((e,n)=>({...e,[n]:"expand"===t.type})),{})}:e;const AM=(0,h.forwardRef)((function e({id:t,blocks:n,dropZoneElement:o,showBlockMovers:r=!1,isExpanded:i=!1,showAppender:s=!1,blockSettingsMenu:l=dT,rootClientId:a,description:c,onSelect:u,additionalBlockContent:p},f){n&&I()("`blocks` property in `wp.blockEditor.__experimentalListView`",{since:"6.3",alternative:"`rootClientId` property"});const b=(0,m.useInstanceId)(e),{clientIdsTree:k,draggedClientIds:v,selectedClientIds:_}=function({blocks:e,rootClientId:t}){return(0,g.useSelect)((n=>{const{getDraggedBlockClientIds:o,getSelectedBlockClientIds:r,getEnabledClientIdsTree:i}=G(n(ji));return{selectedClientIds:r(),draggedClientIds:o(),clientIdsTree:e??i(t)}}),[e,t])}({blocks:n,rootClientId:a}),y=function(e){return(0,h.useMemo)((()=>{const t={};let n=0;const o=e=>{e.forEach((e=>{t[e.clientId]=n,n++,e.innerBlocks.length>0&&o(e.innerBlocks)}))};return o(e),t}),[e])}(k),{getBlock:x}=(0,g.useSelect)(ji),{visibleBlockCount:S}=(0,g.useSelect)((e=>{const{getGlobalBlockCount:t,getClientIdsOfDescendants:n}=e(ji),o=v?.length>0?n(v).length+1:0;return{visibleBlockCount:t()-o}}),[v]),{updateBlockSelection:w}=BM(),[C,B]=(0,h.useReducer)(RM,{}),[j,E]=(0,h.useState)(null),{setSelectedTreeId:M}=function({firstSelectedBlockClientId:e,setExpandedState:t}){const[n,o]=(0,h.useState)(null),{selectedBlockParentClientIds:r}=(0,g.useSelect)((t=>{const{getBlockParents:n}=t(ji);return{selectedBlockParentClientIds:n(e,!1)}}),[e]);return(0,h.useEffect)((()=>{n!==e&&r?.length&&t({type:"expand",clientIds:r})}),[e,r,n,t]),{setSelectedTreeId:o}}({firstSelectedBlockClientId:_[0],setExpandedState:B}),P=(0,h.useCallback)(((e,t,n)=>{w(e,t,null,n),M(t),u&&u(x(t))}),[M,w,u,x]),{ref:R,target:A}=function({dropZoneElement:e,expandedState:t,setExpandedState:n}){const{getBlockRootClientId:o,getBlockIndex:r,getBlockCount:i,getDraggedBlockClientIds:s,canInsertBlocks:l}=(0,g.useSelect)(ji),[a,c]=(0,h.useState)(),{rootClientId:u,blockIndex:d}=a||{},p=OS(u,d),f=(0,T.isRTL)(),b=(0,m.usePrevious)(u),k=(0,h.useCallback)(((e,t)=>{const{rootClientId:o}=t||{};o&&("inside"!==t?.dropPosition||e[o]||n({type:"expand",clientIds:[o]}))}),[n]),v=(0,m.useThrottle)(k,500,MM);(0,h.useEffect)((()=>{"inside"===a?.dropPosition&&b===a?.rootClientId?v(t,a):v.cancel()}),[t,b,a,v]);const _=s(),y=(0,m.useThrottle)((0,h.useCallback)(((e,t)=>{const n={x:e.clientX,y:e.clientY},s=!!_?.length,a=TM(Array.from(t.querySelectorAll("[data-block]")).map((e=>{const t=e.dataset.block,n="true"===e.dataset.expanded,a=e.classList.contains("is-dragging"),c=parseInt(e.getAttribute("aria-level"),10),u=o(t);return{clientId:t,isExpanded:n,rootClientId:u,blockIndex:r(t),element:e,nestingLevel:c||void 0,isDraggedBlock:!!s&&a,innerBlockCount:i(t),canInsertDraggedBlocksAsSibling:!s||l(_,u),canInsertDraggedBlocksAsChild:!s||l(_,t)}})),n,f);a&&c(a)}),[l,_,i,r,o,f]),50);return{ref:(0,m.__experimentalUseDropZone)({dropZoneElement:e,onDrop(e){y.cancel(),a&&p(e),c(void 0)},onDragLeave(){y.cancel(),c(null)},onDragOver(e){y(e,e.currentTarget)},onDragEnd(){y.cancel(),c(void 0)}}),target:a}}({dropZoneElement:o,expandedState:C,setExpandedState:B}),N=(0,h.useRef)(),L=PM({selectBlock:P}),D=(0,m.useMergeRefs)([L,N,R,f]);(0,h.useEffect)((()=>{_?.length&&vM(_[0],N?.current)}),[]);const O=(0,h.useCallback)((e=>{if(!e)return;const t=Array.isArray(e)?e:[e];B({type:"expand",clientIds:t})}),[B]),z=(0,h.useCallback)((e=>{e&&B({type:"collapse",clientIds:[e]})}),[B]),V=(0,h.useCallback)((()=>{B({type:"clear"})}),[B]),F=(0,h.useCallback)((e=>{O(e?.dataset?.block)}),[O]),H=(0,h.useCallback)((e=>{z(e?.dataset?.block)}),[z]),U=(0,h.useCallback)(((e,t,n)=>{e.shiftKey&&w(e,t?.dataset?.block,n?.dataset?.block)}),[w]);!function({collapseAll:e,expand:t}){const{expandedBlock:n,getBlockParents:o}=(0,g.useSelect)((e=>{const{getBlockParents:t,getExpandedBlock:n}=G(e(ji));return{expandedBlock:n(),getBlockParents:t}}),[]);(0,h.useEffect)((()=>{if(n){const r=o(n,!1);e(),t(r)}}),[e,t,n,o])}({collapseAll:V,expand:O});const $=v?.[0],{blockDropTargetIndex:W,blockDropPosition:K,firstDraggedBlockIndex:Z}=(0,h.useMemo)((()=>{let e,t;if(A?.clientId){const t=y[A.clientId];e=void 0===t||"top"===A?.dropPosition?t:t+1}else null===A&&(e=null);if($){const e=y[$];t=void 0===e||"top"===A?.dropPosition?e:e+1}return{blockDropTargetIndex:e,blockDropPosition:A?.dropPosition,firstDraggedBlockIndex:t}}),[A,y,$]),q=(0,h.useMemo)((()=>({blockDropPosition:K,blockDropTargetIndex:W,blockIndexes:y,draggedClientIds:v,expandedState:C,expand:O,firstDraggedBlockIndex:Z,collapse:z,collapseAll:V,BlockSettingsMenu:l,listViewInstanceId:b,AdditionalBlockContent:p,insertedBlock:j,setInsertedBlock:E,treeGridElementRef:N,rootClientId:a})),[K,W,y,v,C,O,Z,z,V,l,b,p,j,E,a]),[Y]=(0,m.__experimentalUseFixedWindowList)(N,32,S,{expandedState:C,useWindowing:!0,windowOverscan:40});if(!k.length&&!s)return null;const X=c&&`block-editor-list-view-description-${b}`;return(0,d.jsxs)(g.AsyncModeProvider,{value:!0,children:[(0,d.jsx)(CM,{draggedBlockClientId:$,listViewRef:N,blockDropTarget:A}),c&&(0,d.jsx)(ws.VisuallyHidden,{id:X,children:c}),(0,d.jsx)(ws.__experimentalTreeGrid,{id:t,className:ms("block-editor-list-view-tree",{"is-dragging":v?.length>0&&void 0!==W}),"aria-label":(0,T.__)("Block navigation structure"),ref:D,onCollapseRow:H,onExpandRow:F,onFocusRow:U,applicationAriaLabel:(0,T.__)("Block navigation structure"),"aria-describedby":X,style:{"--wp-admin--list-view-dragged-items-height":v?.length?32*(v.length-1)+"px":null},children:(0,d.jsx)(oM.Provider,{value:q,children:(0,d.jsx)(wM,{blocks:k,parentId:a,selectBlock:P,showBlockMovers:r,fixedListWindow:Y,selectedClientIds:_,isExpanded:i,showAppender:s})})})]})}));var NM=(0,h.forwardRef)(((e,t)=>(0,d.jsx)(AM,{ref:t,...e,showAppender:!1,rootClientId:null,onSelect:null,additionalBlockContent:null,blockSettingsMenu:void 0})));function LM({isEnabled:e,onToggle:t,isOpen:n,innerRef:o,...r}){return(0,d.jsx)(ws.Button,{__next40pxDefaultSize:!0,...r,ref:o,icon:nM,"aria-expanded":n,"aria-haspopup":"true",onClick:e?t:void 0,label:(0,T.__)("List view"),className:"block-editor-block-navigation","aria-disabled":!e})}var DM=(0,h.forwardRef)((function({isDisabled:e,...t},n){I()("wp.blockEditor.BlockNavigationDropdown",{since:"6.1",alternative:"wp.components.Dropdown and wp.blockEditor.ListView"});const o=(0,g.useSelect)((e=>!!e(ji).getBlockCount()),[])&&!e;return(0,d.jsx)(ws.Dropdown,{contentClassName:"block-editor-block-navigation__popover",popoverProps:{placement:"bottom-start"},renderToggle:({isOpen:e,onToggle:r})=>(0,d.jsx)(LM,{...t,innerRef:n,isOpen:e,onToggle:r,isEnabled:o}),renderContent:()=>(0,d.jsxs)("div",{className:"block-editor-block-navigation__container",children:[(0,d.jsx)("p",{className:"block-editor-block-navigation__label",children:(0,T.__)("List view")}),(0,d.jsx)(NM,{})]})})}));function OM({genericPreviewBlock:e,style:t,className:n,activeStyle:o}){const r=(0,p.getBlockType)(e.name)?.example,i=oE(n,o,t),s=(0,h.useMemo)((()=>({...e,title:t.label||t.name,description:t.description,initialAttributes:{...e.attributes,className:i+" block-editor-block-styles__block-preview-container"},example:r})),[e,i]);return(0,d.jsx)(_C,{item:s})}const zM=()=>{};var VM=function({clientId:e,onSwitch:t=zM,onHoverClassName:n=zM}){const{onSelect:o,stylesToRender:r,activeStyle:i,genericPreviewBlock:s,className:l}=iE({clientId:e,onSwitch:t}),[a,c]=(0,h.useState)(null),u=(0,m.useViewportMatch)("medium","<");if(!r||0===r.length)return null;const p=(0,m.debounce)(c,250),g=e=>{a!==e?(p(e),n(e?.name??null)):p.cancel()};return(0,d.jsxs)("div",{className:"block-editor-block-styles",children:[(0,d.jsx)("div",{className:"block-editor-block-styles__variants",children:r.map((e=>{const t=e.label||e.name;return(0,d.jsx)(ws.Button,{__next40pxDefaultSize:!0,className:ms("block-editor-block-styles__item",{"is-active":i.name===e.name}),variant:"secondary",label:t,onMouseEnter:()=>g(e),onFocus:()=>g(e),onMouseLeave:()=>g(null),onBlur:()=>g(null),onClick:()=>(e=>{o(e),n(null),c(null),p.cancel()})(e),"aria-current":i.name===e.name,children:(0,d.jsx)(ws.__experimentalTruncate,{numberOfLines:1,className:"block-editor-block-styles__item-text",children:t})},e.name)}))}),a&&!u&&(0,d.jsx)(ws.Popover,{placement:"left-start",offset:34,focusOnMount:!1,children:(0,d.jsx)("div",{className:"block-editor-block-styles__preview-panel",onMouseLeave:()=>g(null),children:(0,d.jsx)(OM,{activeStyle:i,className:l,genericPreviewBlock:s,style:a})})})]})};const FM={0:(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"m9.99609 14v-.2251l.00391.0001v6.225h1.5v-14.5h2.5v14.5h1.5v-14.5h3v-1.5h-8.50391c-2.76142 0-5 2.23858-5 5 0 2.7614 2.23858 5 5 5z"})}),1:(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"M17.6 7c-.6.9-1.5 1.7-2.6 2v1h2v7h2V7h-1.4zM11 11H7V7H5v10h2v-4h4v4h2V7h-2v4z"})}),2:(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"M9 11.1H5v-4H3v10h2v-4h4v4h2v-10H9v4zm8 4c.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.6v1.5h8v-2H17z"})}),3:(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"M9 11H5V7H3v10h2v-4h4v4h2V7H9v4zm11.3 1.7c-.4-.4-1-.7-1.6-.8v-.1c.6-.2 1.1-.5 1.5-.9.3-.4.5-.8.5-1.3 0-.4-.1-.8-.3-1.1-.2-.3-.5-.6-.8-.8-.4-.2-.8-.4-1.2-.5-.6-.1-1.1-.2-1.6-.2-.6 0-1.3.1-1.8.3s-1.1.5-1.6.9l1.2 1.4c.4-.2.7-.4 1.1-.6.3-.2.7-.3 1.1-.3.4 0 .8.1 1.1.3.3.2.4.5.4.8 0 .4-.2.7-.6.9-.7.3-1.5.5-2.2.4v1.6c.5 0 1 0 1.5.1.3.1.7.2 1 .3.2.1.4.2.5.4s.1.4.1.6c0 .3-.2.7-.5.8-.4.2-.9.3-1.4.3s-1-.1-1.4-.3c-.4-.2-.8-.4-1.2-.7L13 15.6c.5.4 1 .8 1.6 1 .7.3 1.5.4 2.3.4.6 0 1.1-.1 1.6-.2.4-.1.9-.2 1.3-.5.4-.2.7-.5.9-.9.2-.4.3-.8.3-1.2 0-.6-.3-1.1-.7-1.5z"})}),4:(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"M20 13V7h-3l-4 6v2h5v2h2v-2h1v-2h-1zm-2 0h-2.8L18 9v4zm-9-2H5V7H3v10h2v-4h4v4h2V7H9v4z"})}),5:(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"M9 11H5V7H3v10h2v-4h4v4h2V7H9v4zm11.7 1.2c-.2-.3-.5-.7-.8-.9-.3-.3-.7-.5-1.1-.6-.5-.1-.9-.2-1.4-.2-.2 0-.5.1-.7.1-.2.1-.5.1-.7.2l.1-1.9h4.3V7H14l-.3 5 1 .6.5-.2.4-.1c.1-.1.3-.1.4-.1h.5c.5 0 1 .1 1.4.4.4.2.6.7.6 1.1 0 .4-.2.8-.6 1.1-.4.3-.9.4-1.4.4-.4 0-.9-.1-1.3-.3-.4-.2-.7-.4-1.1-.7 0 0-1.1 1.4-1 1.5.5.4 1 .8 1.6 1 .7.3 1.5.4 2.3.4.5 0 1-.1 1.5-.3s.9-.4 1.3-.7c.4-.3.7-.7.9-1.1s.3-.9.3-1.4-.1-1-.3-1.4z"})}),6:(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"M20.7 12.4c-.2-.3-.4-.6-.7-.9s-.6-.5-1-.6c-.4-.2-.8-.2-1.2-.2-.5 0-.9.1-1.3.3s-.8.5-1.2.8c0-.5 0-.9.2-1.4l.6-.9c.2-.2.5-.4.8-.5.6-.2 1.3-.2 1.9 0 .3.1.6.3.8.5 0 0 1.3-1.3 1.3-1.4-.4-.3-.9-.6-1.4-.8-.6-.2-1.3-.3-2-.3-.6 0-1.1.1-1.7.4-.5.2-1 .5-1.4.9-.4.4-.8 1-1 1.6-.3.7-.4 1.5-.4 2.3s.1 1.5.3 2.1c.2.6.6 1.1 1 1.5.4.4.9.7 1.4.9 1 .3 2 .3 3 0 .4-.1.8-.3 1.2-.6.3-.3.6-.6.8-1 .2-.5.3-.9.3-1.4s-.1-.9-.3-1.3zm-2 2.1c-.1.2-.3.4-.4.5-.1.1-.3.2-.5.2-.2.1-.4.1-.6.1-.2.1-.5 0-.7-.1-.2 0-.3-.2-.5-.3-.1-.2-.3-.4-.4-.6-.2-.3-.3-.7-.3-1 .3-.3.6-.5 1-.7.3-.1.7-.2 1-.2.4 0 .8.1 1.1.3.3.3.4.7.4 1.1 0 .2 0 .5-.1.7zM9 11H5V7H3v10h2v-4h4v4h2V7H9v4z"})})};function HM({level:e}){return FM[e]?(0,d.jsx)(ws.Icon,{icon:FM[e]}):null}const UM=[1,2,3,4,5,6],GM={className:"block-library-heading-level-dropdown"};function $M({options:e=UM,value:t,onChange:n}){const o=e.filter((e=>0===e||UM.includes(e))).sort(((e,t)=>e-t));return(0,d.jsx)(ws.ToolbarDropdownMenu,{popoverProps:GM,icon:(0,d.jsx)(HM,{level:t}),label:(0,T.__)("Change level"),controls:o.map((e=>{const o=e===t;return{icon:(0,d.jsx)(HM,{level:e}),title:0===e?(0,T.__)("Paragraph"):(0,T.sprintf)((0,T.__)("Heading %d"),e),isActive:o,onClick(){n(e)},role:"menuitemradio"}}))})}var WM=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.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"})});var KM=function({icon:e=WM,label:t=(0,T.__)("Choose variation"),instructions:n=(0,T.__)("Select a variation to start with:"),variations:o,onSelect:r,allowSkip:i}){const s=ms("block-editor-block-variation-picker",{"has-many-variations":o.length>4});return(0,d.jsxs)(ws.Placeholder,{icon:e,label:t,instructions:n,className:s,children:[(0,d.jsx)("ul",{className:"block-editor-block-variation-picker__variations",role:"list","aria-label":(0,T.__)("Block variations"),children:o.map((e=>(0,d.jsxs)("li",{children:[(0,d.jsx)(ws.Button,{__next40pxDefaultSize:!0,variant:"tertiary",icon:e.icon&&e.icon.src?e.icon.src:e.icon,iconSize:48,onClick:()=>r(e),className:"block-editor-block-variation-picker__variation",label:e.description||e.title}),(0,d.jsx)("span",{className:"block-editor-block-variation-picker__variation-label",children:e.title})]},e.name)))}),i&&(0,d.jsx)("div",{className:"block-editor-block-variation-picker__skip",children:(0,d.jsx)(ws.Button,{__next40pxDefaultSize:!0,variant:"link",onClick:()=>r(),children:(0,T.__)("Skip")})})]})};const ZM="carousel",qM="grid",YM=({onBlockPatternSelect:e})=>(0,d.jsx)("div",{className:"block-editor-block-pattern-setup__actions",children:(0,d.jsx)(ws.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:e,children:(0,T.__)("Choose")})}),XM=({handlePrevious:e,handleNext:t,activeSlide:n,totalSlides:o})=>(0,d.jsxs)("div",{className:"block-editor-block-pattern-setup__navigation",children:[(0,d.jsx)(ws.Button,{size:"compact",icon:(0,T.isRTL)()?Zb:qb,label:(0,T.__)("Previous pattern"),onClick:e,disabled:0===n,accessibleWhenDisabled:!0}),(0,d.jsx)(ws.Button,{size:"compact",icon:(0,T.isRTL)()?qb:Zb,label:(0,T.__)("Next pattern"),onClick:t,disabled:n===o-1,accessibleWhenDisabled:!0})]});var QM=({viewMode:e,setViewMode:t,handlePrevious:n,handleNext:o,activeSlide:r,totalSlides:i,onBlockPatternSelect:s})=>{const l=e===ZM,a=(0,d.jsxs)("div",{className:"block-editor-block-pattern-setup__display-controls",children:[(0,d.jsx)(ws.Button,{size:"compact",icon:ca,label:(0,T.__)("Carousel view"),onClick:()=>t(ZM),isPressed:l}),(0,d.jsx)(ws.Button,{size:"compact",icon:_T,label:(0,T.__)("Grid view"),onClick:()=>t(qM),isPressed:e===qM})]});return(0,d.jsxs)("div",{className:"block-editor-block-pattern-setup__toolbar",children:[l&&(0,d.jsx)(XM,{handlePrevious:n,handleNext:o,activeSlide:r,totalSlides:i}),a,l&&(0,d.jsx)(YM,{onBlockPatternSelect:s})]})};var JM=function(e,t,n){return(0,g.useSelect)((o=>{const{getBlockRootClientId:r,getPatternsByBlockTypes:i,__experimentalGetAllowedPatterns:s}=o(ji),l=r(e);return n?s(l).filter(n):i(t,l)}),[e,t,n])};const eP=({viewMode:e,activeSlide:t,patterns:n,onBlockPatternSelect:o,showTitles:r})=>{const i="block-editor-block-pattern-setup__container";if(e===ZM){const e=new Map([[t,"active-slide"],[t-1,"previous-slide"],[t+1,"next-slide"]]);return(0,d.jsx)("div",{className:"block-editor-block-pattern-setup__carousel",children:(0,d.jsx)("div",{className:i,children:(0,d.jsx)("div",{className:"carousel-container",children:n.map(((n,o)=>(0,d.jsx)(nP,{active:o===t,className:e.get(o)||"",pattern:n},n.name)))})})})}return(0,d.jsx)("div",{className:"block-editor-block-pattern-setup__grid",children:(0,d.jsx)(ws.Composite,{role:"listbox",className:i,"aria-label":(0,T.__)("Patterns list"),children:n.map((e=>(0,d.jsx)(tP,{pattern:e,onSelect:o,showTitles:r},e.name)))})})};function tP({pattern:e,onSelect:t,showTitles:n}){const o="block-editor-block-pattern-setup-list",{blocks:r,description:i,viewportWidth:s=700}=e,l=(0,m.useInstanceId)(tP,`${o}__item-description`);return(0,d.jsx)("div",{className:`${o}__list-item`,children:(0,d.jsxs)(ws.Composite.Item,{render:(0,d.jsx)("div",{"aria-describedby":i?l:void 0,"aria-label":e.title,className:`${o}__item`}),id:`${o}__pattern__${e.name}`,role:"option",onClick:()=>t(r),children:[(0,d.jsx)(kC,{blocks:r,viewportWidth:s}),n&&(0,d.jsx)("div",{className:`${o}__item-title`,children:e.title}),!!i&&(0,d.jsx)(ws.VisuallyHidden,{id:l,children:i})]})})}function nP({active:e,className:t,pattern:n,minHeight:o}){const{blocks:r,title:i,description:s}=n,l=(0,m.useInstanceId)(nP,"block-editor-block-pattern-setup-list__item-description");return(0,d.jsxs)("div",{"aria-hidden":!e,role:"img",className:`pattern-slide ${t}`,"aria-label":i,"aria-describedby":s?l:void 0,children:[(0,d.jsx)(kC,{blocks:r,minHeight:o}),!!s&&(0,d.jsx)(ws.VisuallyHidden,{id:l,children:s})]})}var oP=({clientId:e,blockName:t,filterPatternsFn:n,onBlockPatternSelect:o,initialViewMode:r=ZM,showTitles:i=!1})=>{const[s,l]=(0,h.useState)(r),[a,c]=(0,h.useState)(0),{replaceBlock:u}=(0,g.useDispatch)(ji),m=JM(e,t,n);if(!m?.length)return null;const f=o||(t=>{const n=t.map((e=>(0,p.cloneBlock)(e)));u(e,n)});return(0,d.jsx)(d.Fragment,{children:(0,d.jsxs)("div",{className:`block-editor-block-pattern-setup view-mode-${s}`,children:[(0,d.jsx)(eP,{viewMode:s,activeSlide:a,patterns:m,onBlockPatternSelect:f,showTitles:i}),(0,d.jsx)(QM,{viewMode:s,setViewMode:l,activeSlide:a,totalSlides:m.length,handleNext:()=>{c((e=>Math.min(e+1,m.length-1)))},handlePrevious:()=>{c((e=>Math.max(e-1,0)))},onBlockPatternSelect:()=>{f(m[a].blocks)}})]})})};function rP({className:e,onSelectVariation:t,selectedValue:n,variations:o}){return(0,d.jsxs)("fieldset",{className:e,children:[(0,d.jsx)(ws.VisuallyHidden,{as:"legend",children:(0,T.__)("Transform to variation")}),o.map((e=>(0,d.jsx)(ws.Button,{__next40pxDefaultSize:!0,size:"compact",icon:(0,d.jsx)(Vu,{icon:e.icon,showColors:!0}),isPressed:n===e.name,label:n===e.name?e.title:(0,T.sprintf)((0,T.__)("Transform to %s"),e.title),onClick:()=>t(e.name),"aria-label":e.title,showTooltip:!0},e.name)))]})}function iP({className:e,onSelectVariation:t,selectedValue:n,variations:o}){const r=o.map((({name:e,title:t,description:n})=>({value:e,label:t,info:n})));return(0,d.jsx)(ws.DropdownMenu,{className:e,label:(0,T.__)("Transform to variation"),text:(0,T.__)("Transform to variation"),popoverProps:{position:"bottom center",className:`${e}__popover`},icon:yI,toggleProps:{iconPosition:"right"},children:()=>(0,d.jsx)(ws.MenuGroup,{children:(0,d.jsx)(ws.MenuItemsChoice,{choices:r,value:n,onSelect:t})})})}function sP({className:e,onSelectVariation:t,selectedValue:n,variations:o}){return(0,d.jsx)("div",{className:e,children:(0,d.jsx)(ws.__experimentalToggleGroupControl,{label:(0,T.__)("Transform to variation"),value:n,hideLabelFromVision:!0,onChange:t,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,children:o.map((e=>(0,d.jsx)(ws.__experimentalToggleGroupControlOptionIcon,{icon:(0,d.jsx)(Vu,{icon:e.icon,showColors:!0}),value:e.name,label:n===e.name?e.title:(0,T.sprintf)((0,T.__)("Transform to %s"),e.title)},e.name)))})})}var lP=function({blockClientId:e}){const{updateBlockAttributes:t}=(0,g.useDispatch)(ji),{activeBlockVariation:n,variations:o,isContentOnly:r,isSection:i}=(0,g.useSelect)((t=>{const{getActiveBlockVariation:n,getBlockVariations:o}=t(p.store),{getBlockName:r,getBlockAttributes:i,getBlockEditingMode:s,isSectionBlock:l}=G(t(ji)),a=e&&r(e),{hasContentRoleAttribute:c}=G(t(p.store)),u=c(a);return{activeBlockVariation:n(a,i(e),"transform"),variations:a&&o(a,"transform"),isContentOnly:"contentOnly"===s(e)&&!u,isSection:l(e)}}),[e]),s=n?.name,l=(0,h.useMemo)((()=>{const e=new Set;return!!o&&(o.forEach((t=>{t.icon&&e.add(t.icon?.src||t.icon)})),e.size===o.length)}),[o]),a=window?.__experimentalContentOnlyPatternInsertion&&i;if(!o?.length||r||a)return null;const c=o.length>5,u=l?c?rP:sP:iP;return(0,d.jsx)(u,{className:"block-editor-block-variation-transforms",onSelectVariation:n=>{t(e,{...o.find((({name:e})=>e===n)).attributes})},selectedValue:s,variations:o})},aP=(0,m.createHigherOrderComponent)((e=>t=>{const[n,o,r,i,s]=Ti("color.palette.default","color.palette.theme","color.palette.custom","color.custom","color.defaultPalette"),l=s?[...o||[],...n||[],...r||[]]:[...o||[],...r||[]],{colors:a=l,disableCustomColors:c=!i}=t,u=a&&a.length>0||!c;return(0,d.jsx)(e,{...{...t,colors:a,disableCustomColors:c,hasColorsToChoose:u}})}),"withColorContext"),cP=aP(ws.ColorPalette);function uP({onChange:e,value:t,...n}){return(0,d.jsx)(qp,{...n,onColorChange:e,colorValue:t,gradients:[],disableCustomGradients:!0})}const dP=window.wp.date,pP=new Date;function hP({format:e,defaultFormat:t,onChange:n}){return(0,d.jsxs)(ws.__experimentalVStack,{as:"fieldset",spacing:4,className:"block-editor-date-format-picker",children:[(0,d.jsx)(ws.VisuallyHidden,{as:"legend",children:(0,T.__)("Date format")}),(0,d.jsx)(ws.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,T.__)("Default format"),help:`${(0,T.__)("Example:")}  ${(0,dP.dateI18n)(t,pP)}`,checked:!e,onChange:e=>n(e?null:t)}),e&&(0,d.jsx)(gP,{format:e,onChange:n})]})}function gP({format:e,onChange:t}){const n=[...[...new Set(["Y-m-d",(0,T._x)("n/j/Y","short date format"),(0,T._x)("n/j/Y g:i A","short date format with time"),(0,T._x)("M j, Y","medium date format"),(0,T._x)("M j, Y g:i A","medium date format with time"),(0,T._x)("F j, Y","long date format"),(0,T._x)("M j","short date format without the year")])].map(((e,t)=>({key:`suggested-${t}`,name:(0,dP.dateI18n)(e,pP),format:e}))),{key:"human-diff",name:(0,dP.humanTimeDiff)(pP),format:"human-diff"}],o={key:"custom",name:(0,T.__)("Custom"),className:"block-editor-date-format-picker__custom-format-select-control__custom-option",hint:(0,T.__)("Enter your own date format")},[r,i]=(0,h.useState)((()=>!!e&&!n.some((t=>t.format===e))));return(0,d.jsxs)(ws.__experimentalVStack,{children:[(0,d.jsx)(ws.CustomSelectControl,{__next40pxDefaultSize:!0,label:(0,T.__)("Choose a format"),options:[...n,o],value:r?o:n.find((t=>t.format===e))??o,onChange:({selectedItem:e})=>{e===o?i(!0):(i(!1),t(e.format))}}),r&&(0,d.jsx)(ws.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,T.__)("Custom format"),hideLabelFromVision:!0,help:(0,h.createInterpolateElement)((0,T.__)("Enter a date or time <Link>format string</Link>."),{Link:(0,d.jsx)(ws.ExternalLink,{href:(0,T.__)("https://wordpress.org/documentation/article/customize-date-and-time-format/")})}),value:e,onChange:e=>t(e)})]})}pP.setDate(20),pP.setMonth(pP.getMonth()-3),4===pP.getMonth()&&pP.setMonth(3);const mP=({setting:e,children:t,panelId:n,...o})=>(0,d.jsx)(ws.__experimentalToolsPanelItem,{hasValue:()=>!!e.colorValue||!!e.gradientValue,label:e.label,onDeselect:()=>{e.colorValue?e.onColorChange():e.gradientValue&&e.onGradientChange()},isShownByDefault:void 0===e.isShownByDefault||e.isShownByDefault,...o,className:"block-editor-tools-panel-color-gradient-settings__item",panelId:n,resetAllFilter:e.resetAllFilter,children:t}),fP=({colorValue:e,label:t})=>(0,d.jsxs)(ws.__experimentalHStack,{justify:"flex-start",children:[(0,d.jsx)(ws.ColorIndicator,{className:"block-editor-panel-color-gradient-settings__color-indicator",colorValue:e}),(0,d.jsx)(ws.FlexItem,{className:"block-editor-panel-color-gradient-settings__color-name",title:t,children:t})]}),bP=e=>({onToggle:t,isOpen:n})=>{const{clearable:o,colorValue:r,gradientValue:i,onColorChange:s,onGradientChange:l,label:a}=e,c=(0,h.useRef)(void 0),u={onClick:t,className:ms("block-editor-panel-color-gradient-settings__dropdown",{"is-open":n}),"aria-expanded":n,ref:c},p=r??i;return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(ws.Button,{__next40pxDefaultSize:!0,...u,children:(0,d.jsx)(fP,{colorValue:p,label:a})}),o&&p&&(0,d.jsx)(ws.Button,{__next40pxDefaultSize:!0,label:(0,T.__)("Reset"),className:"block-editor-panel-color-gradient-settings__reset",size:"small",icon:Ha,onClick:()=>{r?s():i&&l(),n&&t(),c.current?.focus()}})]})};function kP({colors:e,disableCustomColors:t,disableCustomGradients:n,enableAlpha:o,gradients:r,settings:i,__experimentalIsRenderedInSidebar:s,...l}){let a;return s&&(a={placement:"left-start",offset:36,shift:!0}),(0,d.jsx)(d.Fragment,{children:i.map(((i,c)=>{const u={clearable:!1,colorValue:i.colorValue,colors:e,disableCustomColors:t,disableCustomGradients:n,enableAlpha:o,gradientValue:i.gradientValue,gradients:r,label:i.label,onColorChange:i.onColorChange,onGradientChange:i.onGradientChange,showTitle:!1,__experimentalIsRenderedInSidebar:s,...i},p={clearable:i.clearable,label:i.label,colorValue:i.colorValue,gradientValue:i.gradientValue,onColorChange:i.onColorChange,onGradientChange:i.onGradientChange};return i&&(0,d.jsx)(mP,{setting:i,...l,children:(0,d.jsx)(ws.Dropdown,{popoverProps:a,className:"block-editor-tools-panel-color-gradient-settings__dropdown",renderToggle:bP(p),renderContent:()=>(0,d.jsx)(ws.__experimentalDropdownContentWrapper,{paddingSize:"none",children:(0,d.jsx)("div",{className:"block-editor-panel-color-gradient-settings__dropdown-content",children:(0,d.jsx)(qp,{...u})})})})},c)}))})}const vP=["colors","disableCustomColors","gradients","disableCustomGradients"],_P=({className:e,colors:t,gradients:n,disableCustomColors:o,disableCustomGradients:r,children:i,settings:s,title:l,showTitle:a=!0,__experimentalIsRenderedInSidebar:c,enableAlpha:u})=>{const p=(0,m.useInstanceId)(_P),{batch:h}=(0,g.useRegistry)();return t&&0!==t.length||n&&0!==n.length||!o||!r||!s?.every((e=>(!e.colors||0===e.colors.length)&&(!e.gradients||0===e.gradients.length)&&(void 0===e.disableCustomColors||e.disableCustomColors)&&(void 0===e.disableCustomGradients||e.disableCustomGradients)))?(0,d.jsxs)(ws.__experimentalToolsPanel,{className:ms("block-editor-panel-color-gradient-settings",e),label:a?l:void 0,resetAll:()=>{h((()=>{s.forEach((({colorValue:e,gradientValue:t,onColorChange:n,onGradientChange:o})=>{e?n():t&&o()}))}))},panelId:p,__experimentalFirstVisibleItemClass:"first",__experimentalLastVisibleItemClass:"last",children:[(0,d.jsx)(kP,{settings:s,panelId:p,colors:t,gradients:n,disableCustomColors:o,disableCustomGradients:r,__experimentalIsRenderedInSidebar:c,enableAlpha:u}),!!i&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(ws.__experimentalSpacer,{marginY:4})," ",i]})]}):null},yP=e=>{const t=Nd();return(0,d.jsx)(_P,{...{...t,...e}})};var xP=e=>vP.every((t=>e.hasOwnProperty(t)))?(0,d.jsx)(_P,{...e}):(0,d.jsx)(yP,{...e}),SP=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.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"})});const wP=100,CP=300,BP={placement:"bottom-start"},IP={crop:(0,T.__)("Image cropped."),rotate:(0,T.__)("Image rotated."),cropAndRotate:(0,T.__)("Image cropped and rotated.")};const jP=(0,h.createContext)({});jP.displayName="ImageEditingContext";const EP=()=>(0,h.useContext)(jP);function TP({id:e,url:t,naturalWidth:n,naturalHeight:o,onFinishEditing:r,onSaveImage:i,children:s}){const l=function({url:e,naturalWidth:t,naturalHeight:n}){const[o,r]=(0,h.useState)(),[i,s]=(0,h.useState)(),[l,a]=(0,h.useState)({x:0,y:0}),[c,u]=(0,h.useState)(100),[d,p]=(0,h.useState)(0),g=t/n,[m,b]=(0,h.useState)(g),k=(0,h.useCallback)((()=>{const t=(d+90)%360;let n=g;if(d%180==90&&(n=1/g),0===t)return r(),p(t),b(g),void a((e=>({x:-e.y*n,y:e.x*n})));const o=new window.Image;o.src=e,o.onload=function(e){const o=document.createElement("canvas");let i=0,s=0;t%180?(o.width=e.target.height,o.height=e.target.width):(o.width=e.target.width,o.height=e.target.height),90!==t&&180!==t||(i=o.width),270!==t&&180!==t||(s=o.height);const l=o.getContext("2d");l.translate(i,s),l.rotate(t*Math.PI/180),l.drawImage(e.target,0,0),o.toBlob((e=>{r(URL.createObjectURL(e)),p(t),b(o.width/o.height),a((e=>({x:-e.y*n,y:e.x*n})))}))};const i=(0,f.applyFilters)("media.crossOrigin",void 0,e);"string"==typeof i&&(o.crossOrigin=i)}),[d,g,e]);return(0,h.useMemo)((()=>({editedUrl:o,setEditedUrl:r,crop:i,setCrop:s,position:l,setPosition:a,zoom:c,setZoom:u,rotation:d,setRotation:p,rotateClockwise:k,aspect:m,setAspect:b,defaultAspect:g})),[o,i,l,c,d,k,m,g])}({url:t,naturalWidth:n,naturalHeight:o}),a=function({crop:e,rotation:t,url:n,id:o,onSaveImage:r,onFinishEditing:i}){const{createErrorNotice:s,createSuccessNotice:l}=(0,g.useDispatch)(pr.store),[a,c]=(0,h.useState)(!1),{editMediaEntity:u}=(0,g.useSelect)((e=>{const t=e(ji).getSettings();return{editMediaEntity:t?.[V]}}),[]),d=(0,h.useCallback)((()=>{c(!1),i()}),[i]),p=(0,h.useCallback)((async()=>{if(!u)return i(),void s((0,T.__)("Sorry, you are not allowed to edit images on this site."),{id:"image-editing-error",type:"snackbar"});c(!0);const a=[];if(t>0&&a.push({type:"rotate",args:{angle:t}}),(e.width<99.9||e.height<99.9)&&a.push({type:"crop",args:{left:e.x,top:e.y,width:e.width,height:e.height}}),0===a.length)return c(!1),void i();const d=1===a.length?a[0].type:"cropAndRotate";try{const e=await u(o,{src:n,modifiers:a},{throwOnError:!0});e&&(r({id:e.id,url:e.source_url}),l(IP[d],{type:"snackbar",actions:[{label:(0,T.__)("Undo"),onClick:()=>{r({id:o,url:n})}}]}))}catch(e){s((0,T.sprintf)((0,T.__)("Could not edit image. %s"),(0,Ga.__unstableStripHTML)(e.message)),{id:"image-editing-error",type:"snackbar"})}finally{c(!1),i()}}),[e,t,o,n,r,s,l,i,u]);return(0,h.useMemo)((()=>({isInProgress:a,apply:p,cancel:d})),[a,p,d])}({id:e,url:t,onSaveImage:i,onFinishEditing:r,...l}),c=(0,h.useMemo)((()=>({...l,...a})),[l,a]);return(0,d.jsx)(jP.Provider,{value:c,children:s})}function MP({aspectRatios:e,isDisabled:t,label:n,onClick:o,value:r}){return(0,d.jsx)(ws.MenuGroup,{label:n,children:e.map((({name:e,slug:n,ratio:i})=>(0,d.jsx)(ws.MenuItem,{disabled:t,onClick:()=>{o(i)},role:"menuitemradio",isSelected:i===r,icon:i===r?ip:void 0,children:e},n)))})}function PP(e){const[t,n,...o]=e.split("/").map(Number);return t<=0||n<=0||Number.isNaN(t)||Number.isNaN(n)||o.length?NaN:n?t/n:t}function RP({ratio:e,...t}){return{ratio:PP(e),...t}}function AP({toggleProps:e}){const{isInProgress:t,aspect:n,setAspect:o,defaultAspect:r}=EP(),[i,s,l]=Ti("dimensions.aspectRatios.default","dimensions.aspectRatios.theme","dimensions.defaultAspectRatios");return(0,d.jsx)(ws.DropdownMenu,{icon:SP,label:(0,T.__)("Aspect Ratio"),popoverProps:BP,toggleProps:e,children:({onClose:e})=>(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(MP,{isDisabled:t,onClick:t=>{o(t),e()},value:n,aspectRatios:[{slug:"original",name:(0,T.__)("Original"),ratio:r},...l?i.map(RP).filter((({ratio:e})=>1===e)):[]]}),s?.length>0&&(0,d.jsx)(MP,{label:(0,T.__)("Theme"),isDisabled:t,onClick:t=>{o(t),e()},value:n,aspectRatios:s}),l&&(0,d.jsx)(MP,{label:(0,T.__)("Landscape"),isDisabled:t,onClick:t=>{o(t),e()},value:n,aspectRatios:i.map(RP).filter((({ratio:e})=>e>1))}),l&&(0,d.jsx)(MP,{label:(0,T.__)("Portrait"),isDisabled:t,onClick:t=>{o(t),e()},value:n,aspectRatios:i.map(RP).filter((({ratio:e})=>e<1))})]})})}var NP=function(e,t){return NP=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])},NP(e,t)};function LP(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}NP(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var DP=function(){return DP=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},DP.apply(this,arguments)};Object.create;Object.create;"function"==typeof SuppressedError&&SuppressedError;var OP=n(7520),zP=n.n(OP);function VP(e,t,n,o,r){void 0===r&&(r=0);var i=KP(t.width,t.height,r),s=i.width,l=i.height;return{x:FP(e.x,s,n.width,o),y:FP(e.y,l,n.height,o)}}function FP(e,t,n,o){var r=t*o/2-n/2;return ZP(e,-r,r)}function HP(e,t){return Math.sqrt(Math.pow(e.y-t.y,2)+Math.pow(e.x-t.x,2))}function UP(e,t){return 180*Math.atan2(t.y-e.y,t.x-e.x)/Math.PI}function GP(e,t){return Math.min(e,Math.max(0,t))}function $P(e,t){return t}function WP(e,t){return{x:(t.x+e.x)/2,y:(t.y+e.y)/2}}function KP(e,t,n){var o=n*Math.PI/180;return{width:Math.abs(Math.cos(o)*e)+Math.abs(Math.sin(o)*t),height:Math.abs(Math.sin(o)*e)+Math.abs(Math.cos(o)*t)}}function ZP(e,t,n){return Math.min(Math.max(e,t),n)}function qP(){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 YP=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.imageRef=ic.createRef(),n.videoRef=ic.createRef(),n.containerPosition={x:0,y:0},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.gestureZoomStart=0,n.gestureRotationStart=0,n.isTouching=!1,n.lastPinchDistance=0,n.lastPinchRotation=0,n.rafDragTimeout=null,n.rafPinchTimeout=null,n.wheelTimer=null,n.currentDoc="undefined"!=typeof document?document:null,n.currentWindow="undefined"!=typeof window?window:null,n.resizeObserver=null,n.state={cropSize:null,hasWheelJustStarted:!1,mediaObjectFit:void 0},n.initResizeObserver=function(){if(void 0!==window.ResizeObserver&&n.containerRef){var e=!0;n.resizeObserver=new window.ResizeObserver((function(t){e?e=!1:n.computeSizes()})),n.resizeObserver.observe(n.containerRef)}},n.preventZoomSafari=function(e){return e.preventDefault()},n.cleanEvents=function(){n.currentDoc&&(n.currentDoc.removeEventListener("mousemove",n.onMouseMove),n.currentDoc.removeEventListener("mouseup",n.onDragStopped),n.currentDoc.removeEventListener("touchmove",n.onTouchMove),n.currentDoc.removeEventListener("touchend",n.onDragStopped),n.currentDoc.removeEventListener("gesturemove",n.onGestureMove),n.currentDoc.removeEventListener("gestureend",n.onGestureEnd),n.currentDoc.removeEventListener("scroll",n.onScroll))},n.clearScrollEvent=function(){n.containerRef&&n.containerRef.removeEventListener("wheel",n.onWheel),n.wheelTimer&&clearTimeout(n.wheelTimer)},n.onMediaLoad=function(){var e=n.computeSizes();e&&(n.emitCropData(),n.setInitialCrop(e)),n.props.onMediaLoaded&&n.props.onMediaLoaded(n.mediaSize)},n.setInitialCrop=function(e){if(n.props.initialCroppedAreaPercentages){var t=function(e,t,n,o,r,i){var s=KP(t.width,t.height,n),l=ZP(o.width/s.width*(100/e.width),r,i);return{crop:{x:l*s.width/2-o.width/2-s.width*l*(e.x/100),y:l*s.height/2-o.height/2-s.height*l*(e.y/100)},zoom:l}}(n.props.initialCroppedAreaPercentages,n.mediaSize,n.props.rotation,e,n.props.minZoom,n.props.maxZoom),o=t.crop,r=t.zoom;n.props.onCropChange(o),n.props.onZoomChange&&n.props.onZoomChange(r)}else if(n.props.initialCroppedAreaPixels){var i=function(e,t,n,o,r,i){void 0===n&&(n=0);var s=KP(t.naturalWidth,t.naturalHeight,n),l=ZP(function(e,t,n){var o=function(e){return e.width>e.height?e.width/e.naturalWidth:e.height/e.naturalHeight}(t);return n.height>n.width?n.height/(e.height*o):n.width/(e.width*o)}(e,t,o),r,i),a=o.height>o.width?o.height/e.height:o.width/e.width;return{crop:{x:((s.width-e.width)/2-e.x)*a,y:((s.height-e.height)/2-e.y)*a},zoom:l}}(n.props.initialCroppedAreaPixels,n.mediaSize,n.props.rotation,e,n.props.minZoom,n.props.maxZoom);o=i.crop,r=i.zoom;n.props.onCropChange(o),n.props.onZoomChange&&n.props.onZoomChange(r)}},n.computeSizes=function(){var e,t,o,r,i,s,l=n.imageRef.current||n.videoRef.current;if(l&&n.containerRef){n.containerRect=n.containerRef.getBoundingClientRect(),n.saveContainerPosition();var a=n.containerRect.width/n.containerRect.height,c=(null===(e=n.imageRef.current)||void 0===e?void 0:e.naturalWidth)||(null===(t=n.videoRef.current)||void 0===t?void 0:t.videoWidth)||0,u=(null===(o=n.imageRef.current)||void 0===o?void 0:o.naturalHeight)||(null===(r=n.videoRef.current)||void 0===r?void 0:r.videoHeight)||0,d=c/u,p=void 0;if(l.offsetWidth<c||l.offsetHeight<u)switch(n.state.mediaObjectFit){default:case"contain":p=a>d?{width:n.containerRect.height*d,height:n.containerRect.height}:{width:n.containerRect.width,height:n.containerRect.width/d};break;case"horizontal-cover":p={width:n.containerRect.width,height:n.containerRect.width/d};break;case"vertical-cover":p={width:n.containerRect.height*d,height:n.containerRect.height}}else p={width:l.offsetWidth,height:l.offsetHeight};n.mediaSize=DP(DP({},p),{naturalWidth:c,naturalHeight:u}),n.props.setMediaSize&&n.props.setMediaSize(n.mediaSize);var h=n.props.cropSize?n.props.cropSize:function(e,t,n,o,r,i){void 0===i&&(i=0);var s=KP(e,t,i),l=s.width,a=s.height,c=Math.min(l,n),u=Math.min(a,o);return c>u*r?{width:u*r,height:u}:{width:c,height:c/r}}(n.mediaSize.width,n.mediaSize.height,n.containerRect.width,n.containerRect.height,n.props.aspect,n.props.rotation);return(null===(i=n.state.cropSize)||void 0===i?void 0:i.height)===h.height&&(null===(s=n.state.cropSize)||void 0===s?void 0:s.width)===h.width||n.props.onCropSizeChange&&n.props.onCropSizeChange(h),n.setState({cropSize:h},n.recomputeCropPosition),n.props.setCropSize&&n.props.setCropSize(h),h}},n.saveContainerPosition=function(){if(n.containerRef){var e=n.containerRef.getBoundingClientRect();n.containerPosition={x:e.left,y:e.top}}},n.onMouseDown=function(e){n.currentDoc&&(e.preventDefault(),n.currentDoc.addEventListener("mousemove",n.onMouseMove),n.currentDoc.addEventListener("mouseup",n.onDragStopped),n.saveContainerPosition(),n.onDragStart(t.getMousePoint(e)))},n.onMouseMove=function(e){return n.onDrag(t.getMousePoint(e))},n.onScroll=function(e){n.currentDoc&&(e.preventDefault(),n.saveContainerPosition())},n.onTouchStart=function(e){n.currentDoc&&(n.isTouching=!0,n.props.onTouchRequest&&!n.props.onTouchRequest(e)||(n.currentDoc.addEventListener("touchmove",n.onTouchMove,{passive:!1}),n.currentDoc.addEventListener("touchend",n.onDragStopped),n.saveContainerPosition(),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.onGestureStart=function(e){n.currentDoc&&(e.preventDefault(),n.currentDoc.addEventListener("gesturechange",n.onGestureMove),n.currentDoc.addEventListener("gestureend",n.onGestureEnd),n.gestureZoomStart=n.props.zoom,n.gestureRotationStart=n.props.rotation)},n.onGestureMove=function(e){if(e.preventDefault(),!n.isTouching){var o=t.getMousePoint(e),r=n.gestureZoomStart-1+e.scale;if(n.setNewZoom(r,o,{shouldUpdatePosition:!0}),n.props.onRotationChange){var i=n.gestureRotationStart+e.rotation;n.props.onRotationChange(i)}}},n.onGestureEnd=function(e){n.cleanEvents()},n.onDragStart=function(e){var t,o,r=e.x,i=e.y;n.dragStartPosition={x:r,y:i},n.dragStartCrop=DP({},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.currentWindow&&(n.rafDragTimeout&&n.currentWindow.cancelAnimationFrame(n.rafDragTimeout),n.rafDragTimeout=n.currentWindow.requestAnimationFrame((function(){if(n.state.cropSize&&void 0!==t&&void 0!==o){var e=t-n.dragStartPosition.x,r=o-n.dragStartPosition.y,i={x:n.dragStartCrop.x+e,y:n.dragStartCrop.y+r},s=n.props.restrictPosition?VP(i,n.mediaSize,n.state.cropSize,n.props.zoom,n.props.rotation):i;n.props.onCropChange(s)}})))},n.onDragStopped=function(){var e,t;n.isTouching=!1,n.cleanEvents(),n.emitCropData(),null===(t=(e=n.props).onInteractionEnd)||void 0===t||t.call(e)},n.onWheel=function(e){if(n.currentWindow&&(!n.props.onWheelRequest||n.props.onWheelRequest(e))){e.preventDefault();var o=t.getMousePoint(e),r=zP()(e).pixelY,i=n.props.zoom-r*n.props.zoomSpeed/200;n.setNewZoom(i,o,{shouldUpdatePosition:!0}),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=n.currentWindow.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,t){var o=e.x,r=e.y;if(!n.containerRect)throw new Error("The Cropper is not mounted");return{x:n.containerRect.width/2-(o-t.x),y:n.containerRect.height/2-(r-t.y)}},n.getPointOnMedia=function(e){var t=e.x,o=e.y,r=n.props,i=r.crop,s=r.zoom;return{x:(t+i.x)/s,y:(o+i.y)/s}},n.setNewZoom=function(e,t,o){var r=(void 0===o?{}:o).shouldUpdatePosition,i=void 0===r||r;if(n.state.cropSize&&n.props.onZoomChange){var s=ZP(e,n.props.minZoom,n.props.maxZoom);if(i){var l=n.getPointOnContainer(t,n.containerPosition),a=n.getPointOnMedia(l),c={x:a.x*s-l.x,y:a.y*s-l.y},u=n.props.restrictPosition?VP(c,n.mediaSize,n.state.cropSize,s,n.props.rotation):c;n.props.onCropChange(u)}n.props.onZoomChange(s)}},n.getCropData=function(){return n.state.cropSize?function(e,t,n,o,r,i,s){void 0===i&&(i=0),void 0===s&&(s=!0);var l=s?GP:$P,a=KP(t.width,t.height,i),c=KP(t.naturalWidth,t.naturalHeight,i),u={x:l(100,((a.width-n.width/r)/2-e.x/r)/a.width*100),y:l(100,((a.height-n.height/r)/2-e.y/r)/a.height*100),width:l(100,n.width/a.width*100/r),height:l(100,n.height/a.height*100/r)},d=Math.round(l(c.width,u.width*c.width/100)),p=Math.round(l(c.height,u.height*c.height/100)),h=c.width>=c.height*o?{width:Math.round(p*o),height:p}:{width:d,height:Math.round(d/o)};return{croppedAreaPercentages:u,croppedAreaPixels:DP(DP({},h),{x:Math.round(l(c.width-h.width,u.x*c.width/100)),y:Math.round(l(c.height-h.height,u.y*c.height/100))})}}(n.props.restrictPosition?VP(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?VP(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 LP(t,e),t.prototype.componentDidMount=function(){this.currentDoc&&this.currentWindow&&(this.containerRef&&(this.containerRef.ownerDocument&&(this.currentDoc=this.containerRef.ownerDocument),this.currentDoc.defaultView&&(this.currentWindow=this.currentDoc.defaultView),this.initResizeObserver(),void 0===window.ResizeObserver&&this.currentWindow.addEventListener("resize",this.computeSizes),this.props.zoomWithScroll&&this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}),this.containerRef.addEventListener("gesturestart",this.onGestureStart)),this.currentDoc.addEventListener("scroll",this.onScroll),this.props.disableAutomaticStylesInjection||(this.styleRef=this.currentDoc.createElement("style"),this.styleRef.setAttribute("type","text/css"),this.props.nonce&&this.styleRef.setAttribute("nonce",this.props.nonce),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",this.currentDoc.head.appendChild(this.styleRef)),this.imageRef.current&&this.imageRef.current.complete&&this.onMediaLoad(),this.props.setImageRef&&this.props.setImageRef(this.imageRef),this.props.setVideoRef&&this.props.setVideoRef(this.videoRef))},t.prototype.componentWillUnmount=function(){var e,t;this.currentDoc&&this.currentWindow&&(void 0===window.ResizeObserver&&this.currentWindow.removeEventListener("resize",this.computeSizes),null===(e=this.resizeObserver)||void 0===e||e.disconnect(),this.containerRef&&this.containerRef.removeEventListener("gesturestart",this.preventZoomSafari),this.styleRef&&(null===(t=this.styleRef.parentNode)||void 0===t||t.removeChild(this.styleRef)),this.cleanEvents(),this.props.zoomWithScroll&&this.clearScrollEvent())},t.prototype.componentDidUpdate=function(e){var t,n,o,r,i,s,l,a,c;e.rotation!==this.props.rotation?(this.computeSizes(),this.recomputeCropPosition()):e.aspect!==this.props.aspect||e.objectFit!==this.props.objectFit?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===(i=e.crop)||void 0===i?void 0:i.x)===(null===(s=this.props.crop)||void 0===s?void 0:s.x)&&(null===(l=e.crop)||void 0===l?void 0:l.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===(c=this.videoRef.current)||void 0===c||c.load());var u=this.getObjectFit();u!==this.state.mediaObjectFit&&this.setState({mediaObjectFit:u},this.computeSizes)},t.prototype.getAspect=function(){var e=this.props,t=e.cropSize,n=e.aspect;return t?t.width/t.height:n},t.prototype.getObjectFit=function(){var e,t,n,o;if("cover"===this.props.objectFit){if((this.imageRef.current||this.videoRef.current)&&this.containerRef){this.containerRect=this.containerRef.getBoundingClientRect();var r=this.containerRect.width/this.containerRect.height;return((null===(e=this.imageRef.current)||void 0===e?void 0:e.naturalWidth)||(null===(t=this.videoRef.current)||void 0===t?void 0:t.videoWidth)||0)/((null===(n=this.imageRef.current)||void 0===n?void 0:n.naturalHeight)||(null===(o=this.videoRef.current)||void 0===o?void 0:o.videoHeight)||0)<r?"horizontal-cover":"vertical-cover"}return"horizontal-cover"}return this.props.objectFit},t.prototype.onPinchStart=function(e){var n=t.getTouchPoint(e.touches[0]),o=t.getTouchPoint(e.touches[1]);this.lastPinchDistance=HP(n,o),this.lastPinchRotation=UP(n,o),this.onDragStart(WP(n,o))},t.prototype.onPinchMove=function(e){var n=this;if(this.currentDoc&&this.currentWindow){var o=t.getTouchPoint(e.touches[0]),r=t.getTouchPoint(e.touches[1]),i=WP(o,r);this.onDrag(i),this.rafPinchTimeout&&this.currentWindow.cancelAnimationFrame(this.rafPinchTimeout),this.rafPinchTimeout=this.currentWindow.requestAnimationFrame((function(){var e=HP(o,r),t=n.props.zoom*(e/n.lastPinchDistance);n.setNewZoom(t,i,{shouldUpdatePosition:!1}),n.lastPinchDistance=e;var s=UP(o,r),l=n.props.rotation+(s-n.lastPinchRotation);n.props.onRotationChange&&n.props.onRotationChange(l),n.lastPinchRotation=s}))}},t.prototype.render=function(){var e=this,t=this.props,n=t.image,o=t.video,r=t.mediaProps,i=t.transform,s=t.crop,l=s.x,a=s.y,c=t.rotation,u=t.zoom,d=t.cropShape,p=t.showGrid,h=t.style,g=h.containerStyle,m=h.cropAreaStyle,f=h.mediaStyle,b=t.classes,k=b.containerClassName,v=b.cropAreaClassName,_=b.mediaClassName,y=this.state.mediaObjectFit;return ic.createElement("div",{onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,ref:function(t){return e.containerRef=t},"data-testid":"container",style:g,className:qP("reactEasyCrop_Container",k)},n?ic.createElement("img",DP({alt:"",className:qP("reactEasyCrop_Image","contain"===y&&"reactEasyCrop_Contain","horizontal-cover"===y&&"reactEasyCrop_Cover_Horizontal","vertical-cover"===y&&"reactEasyCrop_Cover_Vertical",_)},r,{src:n,ref:this.imageRef,style:DP(DP({},f),{transform:i||"translate(".concat(l,"px, ").concat(a,"px) rotate(").concat(c,"deg) scale(").concat(u,")")}),onLoad:this.onMediaLoad})):o&&ic.createElement("video",DP({autoPlay:!0,loop:!0,muted:!0,className:qP("reactEasyCrop_Video","contain"===y&&"reactEasyCrop_Contain","horizontal-cover"===y&&"reactEasyCrop_Cover_Horizontal","vertical-cover"===y&&"reactEasyCrop_Cover_Vertical",_)},r,{ref:this.videoRef,onLoadedMetadata:this.onMediaLoad,style:DP(DP({},f),{transform:i||"translate(".concat(l,"px, ").concat(a,"px) rotate(").concat(c,"deg) scale(").concat(u,")")}),controls:!1}),(Array.isArray(o)?o:[{src:o}]).map((function(e){return ic.createElement("source",DP({key:e.src},e))}))),this.state.cropSize&&ic.createElement("div",{style:DP(DP({},m),{width:this.state.cropSize.width,height:this.state.cropSize.height}),"data-testid":"cropper",className:qP("reactEasyCrop_CropArea","round"===d&&"reactEasyCrop_CropAreaRound",p&&"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}(ic.Component);function XP({url:e,width:t,height:n,naturalHeight:o,naturalWidth:r,borderProps:i}){const{isInProgress:s,editedUrl:l,position:a,zoom:c,aspect:u,setPosition:p,setCrop:h,setZoom:g,rotation:f}=EP(),[b,{width:k}]=(0,m.useResizeObserver)();let v=n||k*o/r;f%180==90&&(v=k*r/o);const _=(0,d.jsxs)("div",{className:ms("wp-block-image__crop-area",i?.className,{"is-applying":s}),style:{...i?.style,width:t||k,height:v},children:[(0,d.jsx)(YP,{image:l||e,disabled:s,minZoom:wP/100,maxZoom:CP/100,crop:a,zoom:c/100,aspect:u,onCropChange:e=>{p(e)},onCropComplete:e=>{h(e)},onZoomChange:e=>{g(100*e)}}),s&&(0,d.jsx)(ws.Spinner,{})]});return(0,d.jsxs)(d.Fragment,{children:[b,_]})}var QP=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"M13 5c-3.3 0-6 2.7-6 6 0 1.4.5 2.7 1.3 3.7l-3.8 3.8 1.1 1.1 3.8-3.8c1 .8 2.3 1.3 3.7 1.3 3.3 0 6-2.7 6-6S16.3 5 13 5zm0 10.5c-2.5 0-4.5-2-4.5-4.5s2-4.5 4.5-4.5 4.5 2 4.5 4.5-2 4.5-4.5 4.5z"})});function JP(){const{isInProgress:e,zoom:t,setZoom:n}=EP();return(0,d.jsx)(ws.Dropdown,{contentClassName:"wp-block-image__zoom",popoverProps:BP,renderToggle:({isOpen:t,onToggle:n})=>(0,d.jsx)(ws.ToolbarButton,{icon:QP,label:(0,T.__)("Zoom"),onClick:n,"aria-expanded":t,disabled:e}),renderContent:()=>(0,d.jsx)(ws.__experimentalDropdownContentWrapper,{paddingSize:"medium",children:(0,d.jsx)(ws.RangeControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,T.__)("Zoom"),min:wP,max:CP,value:Math.round(t),onChange:n})})})}var eR=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.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 tR(){const{isInProgress:e,rotateClockwise:t}=EP();return(0,d.jsx)(ws.ToolbarButton,{icon:eR,label:(0,T.__)("Rotate"),onClick:t,disabled:e})}function nR(){const{isInProgress:e,apply:t,cancel:n}=EP();return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(ws.ToolbarButton,{onClick:t,disabled:e,children:(0,T.__)("Apply")}),(0,d.jsx)(ws.ToolbarButton,{onClick:n,children:(0,T.__)("Cancel")})]})}function oR({id:e,url:t,width:n,height:o,naturalHeight:r,naturalWidth:i,onSaveImage:s,onFinishEditing:l,borderProps:a}){return(0,d.jsxs)(TP,{id:e,url:t,naturalWidth:i,naturalHeight:r,onSaveImage:s,onFinishEditing:l,children:[(0,d.jsx)(XP,{borderProps:a,url:t,width:n,height:o,naturalHeight:r,naturalWidth:i}),(0,d.jsxs)(Rs,{children:[(0,d.jsxs)(ws.ToolbarGroup,{children:[(0,d.jsx)(JP,{}),(0,d.jsx)(ws.ToolbarItem,{children:e=>(0,d.jsx)(AP,{toggleProps:e})}),(0,d.jsx)(tR,{})]}),(0,d.jsx)(ws.ToolbarGroup,{children:(0,d.jsx)(nR,{})})]})]})}const rR=[25,50,75,100],iR=()=>{};function sR(e,t,n){return{scaledWidth:Math.round(t*(e/100)),scaledHeight:Math.round(n*(e/100))}}function lR({imageSizeHelp:e,imageWidth:t,imageHeight:n,imageSizeOptions:o=[],isResizable:r=!0,slug:i,width:s,height:l,onChange:a,onChangeImage:c=iR}){const{currentHeight:u,currentWidth:p,updateDimension:g,updateDimensions:m}=function(e,t,n,o,r){const[i,s]=(0,h.useState)(t??o??""),[l,a]=(0,h.useState)(e??n??"");return(0,h.useEffect)((()=>{void 0===t&&void 0!==o&&s(o),void 0===e&&void 0!==n&&a(n)}),[o,n]),(0,h.useEffect)((()=>{void 0!==t&&Number.parseInt(t)!==Number.parseInt(i)&&s(t),void 0!==e&&Number.parseInt(e)!==Number.parseInt(l)&&a(e)}),[t,e]),{currentHeight:l,currentWidth:i,updateDimension:(e,t)=>{const n=""===t?void 0:parseInt(t,10);"width"===e?s(n):a(n),r({[e]:n})},updateDimensions:(e,t)=>{a(e??n),s(t??o),r({height:e,width:t})}}}(l,s,n,t,a),f=rR.find((e=>{const{scaledWidth:o,scaledHeight:r}=sR(e,t,n);return p===o&&u===r}));return(0,d.jsxs)(ws.__experimentalVStack,{className:"block-editor-image-size-control",spacing:"4",children:[o&&o.length>0&&(0,d.jsx)(ws.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,T.__)("Resolution"),value:i,options:o,onChange:c,help:e,size:"__unstable-large"}),r&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(ws.__experimentalHStack,{align:"baseline",spacing:"4",children:[(0,d.jsx)(ws.__experimentalNumberControl,{label:(0,T.__)("Width"),value:p,min:1,onChange:e=>g("width",e),size:"__unstable-large"}),(0,d.jsx)(ws.__experimentalNumberControl,{label:(0,T.__)("Height"),value:u,min:1,onChange:e=>g("height",e),size:"__unstable-large"})]}),(0,d.jsx)(ws.__experimentalToggleGroupControl,{label:(0,T.__)("Image size presets"),hideLabelFromVision:!0,onChange:e=>{if(void 0===e)return void m();const{scaledWidth:o,scaledHeight:r}=sR(e,t,n);m(r,o)},value:f,isBlock:!0,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,children:rR.map((e=>(0,d.jsx)(ws.__experimentalToggleGroupControlOption,{value:e,label:(0,T.sprintf)((0,T.__)("%d%%"),e)},e)))})]})]})}function aR({url:e,urlLabel:t,className:n}){const o=ms(n,"block-editor-url-popover__link-viewer-url");return e?(0,d.jsx)(ws.ExternalLink,{className:o,href:e,children:t||(0,Ua.filterURLForDisplay)((0,Ua.safeDecodeURI)(e))}):(0,d.jsx)("span",{className:o})}const{__experimentalPopoverLegacyPositionToPlacement:cR}=G(ws.privateApis),uR=(0,h.forwardRef)((({additionalControls:e,children:t,renderSettings:n,placement:o,focusOnMount:r="firstElement",position:i,...s},l)=>{let a;void 0!==i&&I()("`position` prop in wp.blockEditor.URLPopover",{since:"6.2",alternative:"`placement` prop"}),void 0!==o?a=o:void 0!==i&&(a=cR(i)),a=a||"bottom";const[c,u]=(0,h.useState)(!1),p=!!n&&c;return(0,d.jsxs)(ws.Popover,{ref:l,role:"dialog","aria-modal":"true","aria-label":(0,T.__)("Edit URL"),className:"block-editor-url-popover",focusOnMount:r,placement:a,shift:!0,variant:"toolbar",...s,children:[(0,d.jsx)("div",{className:"block-editor-url-popover__input-container",children:(0,d.jsxs)("div",{className:"block-editor-url-popover__row",children:[t,!!n&&(0,d.jsx)(ws.Button,{className:"block-editor-url-popover__settings-toggle",icon:yI,label:(0,T.__)("Link settings"),onClick:()=>{u(!c)},"aria-expanded":c,size:"compact"})]})}),p&&(0,d.jsx)("div",{className:"block-editor-url-popover__settings",children:n()}),e&&!p&&(0,d.jsx)("div",{className:"block-editor-url-popover__additional-controls",children:e})]})}));uR.LinkEditor=function({autocompleteRef:e,className:t,onChangeInputValue:n,value:o,...r}){return(0,d.jsxs)("form",{className:ms("block-editor-url-popover__link-editor",t),...r,children:[(0,d.jsx)(ac,{value:o,onChange:n,autocompleteRef:e}),(0,d.jsx)(ws.Button,{icon:tc,label:(0,T.__)("Apply"),type:"submit",size:"compact"})]})},uR.LinkViewer=function({className:e,linkClassName:t,onEditLinkClick:n,url:o,urlLabel:r,...i}){return(0,d.jsxs)("div",{className:ms("block-editor-url-popover__link-viewer",e),...i,children:[(0,d.jsx)(aR,{url:o,urlLabel:r,className:t}),n&&(0,d.jsx)(ws.Button,{icon:Wc,label:(0,T.__)("Edit"),onClick:n,size:"compact"})]})};var dR=uR;const pR=()=>{},hR=({src:e,onChange:t,onSubmit:n,onClose:o,popoverAnchor:r})=>(0,d.jsx)(dR,{anchor:r,onClose:o,children:(0,d.jsx)("form",{className:"block-editor-media-placeholder__url-input-form",onSubmit:n,children:(0,d.jsx)(ws.__experimentalInputControl,{__next40pxDefaultSize:!0,label:(0,T.__)("URL"),type:"text",hideLabelFromVision:!0,placeholder:(0,T.__)("Paste or type URL"),onChange:t,value:e,suffix:(0,d.jsx)(ws.__experimentalInputControlSuffixWrapper,{variant:"control",children:(0,d.jsx)(ws.Button,{size:"small",icon:tc,label:(0,T.__)("Apply"),type:"submit"})})})})}),gR=({src:e,onChangeSrc:t,onSelectURL:n})=>{const[o,r]=(0,h.useState)(null),[i,s]=(0,h.useState)(!1),l=()=>{s(!1),o?.focus()};return(0,d.jsxs)("div",{className:"block-editor-media-placeholder__url-input-container",children:[(0,d.jsx)(ws.Button,{__next40pxDefaultSize:!0,className:"block-editor-media-placeholder__button",onClick:()=>{s(!0)},isPressed:i,variant:"secondary","aria-haspopup":"dialog",ref:r,children:(0,T.__)("Insert from URL")}),i&&(0,d.jsx)(hR,{src:e,onChange:t,onSubmit:t=>{t.preventDefault(),e&&n&&(n(e),l())},onClose:l,popoverAnchor:o})]})};var mR=(0,ws.withFilters)("editor.MediaPlaceholder")((function({value:e={},allowedTypes:t,className:n,icon:o,labels:r={},mediaPreview:i,notices:s,isAppender:l,accept:a,addToGallery:c,multiple:u=!1,handleUpload:p=!0,disableDropZone:m,disableMediaButtons:f,onError:b,onSelect:k,onCancel:v,onSelectURL:_,onToggleFeaturedImage:y,onDoubleClick:x,onFilesPreUpload:S=pR,onHTMLDrop:w,children:C,mediaLibraryButton:B,placeholder:j,style:E}){w&&I()("wp.blockEditor.MediaPlaceholder onHTMLDrop prop",{since:"6.2",version:"6.4"});const M=(0,g.useSelect)((e=>{const{getSettings:t}=e(ji);return t().mediaUpload}),[]),[P,R]=(0,h.useState)("");(0,h.useEffect)((()=>{R(e?.src??"")}),[e?.src]);const A=n=>{if(!p||"function"==typeof p&&!p(n))return k(n);let o;if(S(n),u)if(c){let t=[];o=n=>{const o=(e??[]).filter((e=>e.id?!t.some((({id:t})=>Number(t)===Number(e.id))):!t.some((({urlSlug:t})=>e.url.includes(t)))));k(o.concat(n)),t=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])=>k(e);M({allowedTypes:t,filesList:n,onFileChange:o,onError:b,multiple:u})};async function N(e){const{blocks:n}=DS(e);if(!n?.length)return;const o=await Promise.all(n.map((e=>{const n=e.name.split("/")[1];return e.attributes.id?(e.attributes.type=n,e.attributes):new Promise(((o,r)=>{window.fetch(e.attributes.url).then((e=>e.blob())).then((i=>M({filesList:[i],additionalData:{title:e.attributes.title,alt_text:e.attributes.alt,caption:e.attributes.caption,type:n},onFileChange:([e])=>{e.id&&o(e)},allowedTypes:t,onError:r}))).catch((()=>o(e.attributes.url)))}))}))).catch((e=>b(e)));o?.length&&k(u?o:o[0])}const L=e=>{A(e.target.files)},D=j??(e=>{let{instructions:a,title:c}=r;if(M||_||(a=(0,T.__)("To edit this block, you need permission to upload media.")),void 0===a||void 0===c){const e=t??[],[n]=e,o=1===e.length,r=o&&"audio"===n,i=o&&"image"===n,s=o&&"video"===n;void 0===a&&M&&(a=(0,T.__)("Drag and drop an image or video, upload, or choose from your library."),r?a=(0,T.__)("Drag and drop an audio file, upload, or choose from your library."):i?a=(0,T.__)("Drag and drop an image, upload, or choose from your library."):s&&(a=(0,T.__)("Drag and drop a video, upload, or choose from your library."))),void 0===c&&(c=(0,T.__)("Media"),r?c=(0,T.__)("Audio"):i?c=(0,T.__)("Image"):s&&(c=(0,T.__)("Video")))}const u=ms("block-editor-media-placeholder",n,{"is-appender":l});return(0,d.jsxs)(ws.Placeholder,{icon:o,label:c,instructions:a,className:u,notices:s,onDoubleClick:x,preview:i,style:E,children:[e,C]})}),O=()=>m?null:(0,d.jsx)(ws.DropZone,{onFilesDrop:A,onDrop:N,isEligible:e=>{const n="wp-block:core/",o=[];for(const t of e.types)t.startsWith(n)&&o.push(t.slice(14));return o.every((e=>t.includes(e)))&&(!!u||1===o.length)}}),z=()=>v&&(0,d.jsx)(ws.Button,{__next40pxDefaultSize:!0,className:"block-editor-media-placeholder__cancel-button",title:(0,T.__)("Cancel"),variant:"link",onClick:v,children:(0,T.__)("Cancel")}),V=()=>_&&(0,d.jsx)(gR,{src:P,onChangeSrc:R,onSelectURL:_}),F=()=>y&&(0,d.jsx)("div",{className:"block-editor-media-placeholder__url-input-container",children:(0,d.jsx)(ws.Button,{__next40pxDefaultSize:!0,className:"block-editor-media-placeholder__button",onClick:y,variant:"secondary",children:(0,T.__)("Use featured image")})});return f?(0,d.jsx)(Xa,{children:O()}):(0,d.jsx)(Xa,{fallback:D(V()),children:(()=>{const n=B??(({open:e})=>(0,d.jsx)(ws.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:()=>{e()},children:(0,T.__)("Media Library")})),o=(0,d.jsx)(Ya,{addToGallery:c,gallery:u&&!(!t||0===t.length)&&t.every((e=>"image"===e||e.startsWith("image/"))),multiple:u,onSelect:k,allowedTypes:t,mode:"browse",value:Array.isArray(e)?e.map((({id:e})=>e)):e.id,render:n});if(M&&l)return(0,d.jsxs)(d.Fragment,{children:[O(),(0,d.jsx)(ws.FormFileUpload,{onChange:L,accept:a,multiple:!!u,render:({openFileDialog:e})=>{const t=(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(ws.Button,{__next40pxDefaultSize:!0,variant:"primary",className:ms("block-editor-media-placeholder__button","block-editor-media-placeholder__upload-button"),onClick:e,children:(0,T._x)("Upload","verb")}),o,V(),F(),z()]});return D(t)}})]});if(M){const e=(0,d.jsxs)(d.Fragment,{children:[O(),(0,d.jsx)(ws.FormFileUpload,{render:({openFileDialog:e})=>(0,d.jsx)(ws.Button,{__next40pxDefaultSize:!0,onClick:e,variant:"primary",className:ms("block-editor-media-placeholder__button","block-editor-media-placeholder__upload-button"),children:(0,T._x)("Upload","verb")}),onChange:L,accept:a,multiple:!!u}),o,V(),F(),z()]});return D(e)}return D(o)})()})}));var fR=({colorSettings:e,...t})=>{const n=e.map((e=>{if(!e)return e;const{value:t,onChange:n,...o}=e;return{...o,colorValue:t,onColorChange:n}}));return(0,d.jsx)(xP,{settings:n,gradients:[],disableCustomGradients:!0,...t})};const bR={placement:"bottom-start"};var kR=()=>(0,d.jsxs)(d.Fragment,{children:[["bold","italic","link","unknown"].map((e=>(0,d.jsx)(ws.Slot,{name:`RichText.ToolbarControls.${e}`},e))),(0,d.jsx)(ws.Slot,{name:"RichText.ToolbarControls",children:e=>{if(!e.length)return null;const t=e.map((([{props:e}])=>e)).some((({isActive:e})=>e));return(0,d.jsx)(ws.ToolbarItem,{children:n=>(0,d.jsx)(ws.DropdownMenu,{icon:yI,label:(0,T.__)("More"),toggleProps:{...n,className:ms(n.className,{"is-pressed":t}),description:(0,T.__)("Displays more block tools")},controls:xt(e.map((([{props:e}])=>e)),"title"),popoverProps:bR})})}})]});function vR({popoverAnchor:e}){return(0,d.jsx)(ws.Popover,{placement:"top",focusOnMount:!1,anchor:e,className:"block-editor-rich-text__inline-format-toolbar",__unstableSlotName:"block-toolbar",children:(0,d.jsx)(ET,{className:"block-editor-rich-text__inline-format-toolbar-group","aria-label":(0,T.__)("Format tools"),children:(0,d.jsx)(ws.ToolbarGroup,{children:(0,d.jsx)(kR,{})})})})}var _R=({inline:e,editableContentElement:t})=>e?(0,d.jsx)(vR,{popoverAnchor:t}):(0,d.jsx)(Rs,{group:"inline",children:(0,d.jsx)(kR,{})});function yR(e){return e(pe.store).getFormatTypes()}const xR=new Set(["a","audio","button","details","embed","iframe","input","label","select","textarea","video"]);function SR(e,t){return"object"!=typeof e?{[t]:e}:Object.fromEntries(Object.entries(e).map((([e,n])=>[`${t}.${e}`,n])))}function wR(e,t){return e[t]?e[t]:Object.keys(e).filter((e=>e.startsWith(t+"."))).reduce(((n,o)=>(n[o.slice(t.length+1)]=e[o],n)),{})}const CR=["`",'"',"'","“”","‘’"];function BR(e){let t=e.length;for(;t--;){const n=mr(e[t].attributes);if(n)return e[t].attributes[n]=e[t].attributes[n].toString().replace(gr,""),[e[t].clientId,n,0,0];const o=BR(e[t].innerBlocks);if(o)return o}return[]}function IR(e){if(!0===e||"p"===e||"li"===e)return!0===e?"p":e}function jR({allowedFormats:e,disableFormats:t}){return t?jR.EMPTY_ARRAY:e}jR.EMPTY_ARRAY=[];const ER=[e=>t=>{function n(n){const{inputType:o,data:r}=n,{value:i,onChange:s,registry:l}=e.current;if("insertText"!==o)return;if((0,pe.isCollapsed)(i))return;const a=(0,f.applyFilters)("blockEditor.wrapSelectionSettings",CR).find((([e,t])=>e===r||t===r));if(!a)return;const[c,u=c]=a,d=i.start,p=i.end+c.length;let h=(0,pe.insert)(i,c,d,d);h=(0,pe.insert)(h,u,p,p);const{__unstableMarkLastChangeAsPersistent:g,__unstableMarkAutomaticChange:m}=l.dispatch(ji);g(),s(h),m();const b={};for(const e in n)b[e]=n[e];b.data=u;const{ownerDocument:k}=t,{defaultView:v}=k,_=new v.InputEvent("input",b);window.queueMicrotask((()=>{n.target.dispatchEvent(_)})),n.preventDefault()}return t.addEventListener("beforeinput",n),()=>{t.removeEventListener("beforeinput",n)}},e=>t=>{function n(){const{getValue:t,onReplace:n,selectionChange:o,registry:r}=e.current;if(!n)return;const i=t(),{start:s,text:l}=i;if(" "!==l.slice(s-1,s))return;const a=l.slice(0,s).trim(),c=(0,p.getBlockTransforms)("from").filter((({type:e})=>"prefix"===e)),u=(0,p.findTransform)(c,(({prefix:e})=>a===e));if(!u)return;const d=(0,pe.toHTMLString)({value:(0,pe.insert)(i,gr,0,s)}),h=u.transform(d);return o(...BR([h])),n([h]),r.dispatch(ji).__unstableMarkAutomaticChange(),!0}function o(t){const{inputType:o,type:r}=t,{getValue:i,onChange:s,__unstableAllowPrefixTransformations:l,formatTypes:a,registry:c}=e.current;if("insertText"!==o&&"compositionend"!==r)return;if(l&&n())return;const u=i(),d=a.reduce(((e,{__unstableInputRule:t})=>(t&&(e=t(e)),e)),function(e){const t="tales of gutenberg",{start:n,text:o}=e;return n<18||o.slice(n-18,n).toLowerCase()!==t?e:(0,pe.insert)(e," 🐡🐢🦀🐤🦋🐘🐧🐹🦁🦄🦍🐼🐿🎃🐴🐝🐆🦕🦔🌱🍇π🍌🐉💧🥨🌌🍂🍠🥦🥚🥝🎟🥥🥒🛵🥖🍒🍯🎾🎲🐺🐚🐮⌛️")}(u)),{__unstableMarkLastChangeAsPersistent:p,__unstableMarkAutomaticChange:h}=c.dispatch(ji);d!==u&&(p(),s({...d,activeFormats:u.activeFormats}),h())}return t.addEventListener("input",o),t.addEventListener("compositionend",o),()=>{t.removeEventListener("input",o),t.removeEventListener("compositionend",o)}},e=>t=>{function n(t){if("insertReplacementText"!==t.inputType)return;const{registry:n}=e.current;n.dispatch(ji).__unstableMarkLastChangeAsPersistent()}return t.addEventListener("beforeinput",n),()=>{t.removeEventListener("beforeinput",n)}},()=>e=>{function t(e){(Wa.isKeyboardEvent.primary(e,"z")||Wa.isKeyboardEvent.primary(e,"y")||Wa.isKeyboardEvent.primaryShift(e,"z"))&&e.preventDefault()}return e.addEventListener("keydown",t),()=>{e.removeEventListener("keydown",t)}},e=>t=>{const{keyboardShortcuts:n}=e.current;function o(e){for(const t of n.current)t(e)}return t.addEventListener("keydown",o),()=>{t.removeEventListener("keydown",o)}},e=>t=>{const{inputEvents:n}=e.current;function o(e){for(const t of n.current)t(e)}return t.addEventListener("input",o),()=>{t.removeEventListener("input",o)}},e=>t=>{function n(t){const{keyCode:n}=t;if(t.defaultPrevented)return;if(n!==Wa.BACKSPACE&&n!==Wa.ESCAPE)return;const{registry:o}=e.current,{didAutomaticChange:r,getSettings:i}=o.select(ji),{__experimentalUndo:s}=i();s&&r()&&(t.preventDefault(),s())}return t.addEventListener("keydown",n),()=>{t.removeEventListener("keydown",n)}},e=>t=>{function n(n){const{disableFormats:o,onChange:r,value:i,formatTypes:s,tagName:l,onReplace:a,__unstableEmbedURLOnPaste:c,preserveWhiteSpace:u,pastePlainText:d}=e.current;if(!t.contains(n.target))return;if(n.defaultPrevented)return;const{plainText:h,html:g}=Ew(n);if(n.preventDefault(),window.console.log("Received HTML:\n\n",g),window.console.log("Received plain text:\n\n",h),o)return void r((0,pe.insert)(i,h));function m(e){const t=s.reduce(((e,{__unstablePasteRule:t})=>(t&&e===i&&(e=t(i,{html:g,plainText:h})),e)),i);if(t!==i)r(t);else{const t=(0,pe.create)({html:e});!function(e,t){if(t?.length){let n=e.formats.length;for(;n--;)e.formats[n]=[...t,...e.formats[n]||[]]}}(t,i.activeFormats),r((0,pe.insert)(i,t))}}if("true"===n.clipboardData.getData("rich-text"))return void m(g);if(d)return void r((0,pe.insert)(i,(0,pe.create)({text:h})));let f="INLINE";const b=h.trim();c&&(0,pe.isEmpty)(i)&&(0,Ua.isURL)(b)&&/^https?:/.test(b)&&(f="BLOCKS");const k=(0,p.pasteHandler)({HTML:g,plainText:h,mode:f,tagName:l,preserveWhiteSpace:u});"string"==typeof k?m(k):k.length>0&&a&&(0,pe.isEmpty)(i)&&a(k,k.length-1,-1)}const{defaultView:o}=t.ownerDocument;return o.addEventListener("paste",n),()=>{o.removeEventListener("paste",n)}},e=>t=>{function n(t){const{keyCode:n}=t;if(t.defaultPrevented)return;const{value:o,onMerge:r,onRemove:i}=e.current;if(n===Wa.DELETE||n===Wa.BACKSPACE){const{start:e,end:s,text:l}=o,a=n===Wa.BACKSPACE,c=o.activeFormats&&!!o.activeFormats.length;if(!(0,pe.isCollapsed)(o)||c||a&&0!==e||!a&&s!==l.length)return;r?r(!a):i&&(0,pe.isEmpty)(o)&&a&&i(!a),t.preventDefault()}}return t.addEventListener("keydown",n),()=>{t.removeEventListener("keydown",n)}},e=>t=>{function n(t){if(t.keyCode!==Wa.ENTER)return;const{onReplace:n,onSplit:o}=e.current;n&&o&&(t.__deprecatedOnSplit=!0)}function o(n){if(n.defaultPrevented)return;if(n.target!==t)return;if(n.keyCode!==Wa.ENTER)return;const{value:o,onChange:r,disableLineBreaks:i,onSplitAtEnd:s,onSplitAtDoubleLineEnd:l,registry:a}=e.current;n.preventDefault();const{text:c,start:u,end:d}=o;n.shiftKey?i||r((0,pe.insert)(o,"\n")):s&&u===d&&d===c.length?s():l&&u===d&&d===c.length&&"\n\n"===c.slice(-2)?a.batch((()=>{const e={...o};e.start=e.end-2,r((0,pe.remove)(e)),l()})):i||r((0,pe.insert)(o,"\n"))}const{defaultView:r}=t.ownerDocument;return r.addEventListener("keydown",o),t.addEventListener("keydown",n),()=>{r.removeEventListener("keydown",o),t.removeEventListener("keydown",n)}},e=>t=>{function n(){const{registry:n}=e.current;if(!n.select(ji).isMultiSelecting())return;const o=t.parentElement.closest('[contenteditable="true"]');o&&o.focus()}return t.addEventListener("focus",n),()=>{t.removeEventListener("focus",n)}}];function TR(e){const t=(0,h.useRef)(e);(0,h.useInsertionEffect)((()=>{t.current=e}));const n=(0,h.useMemo)((()=>ER.map((e=>e(t)))),[t]);return(0,m.useRefEffect)((t=>{if(!e.isSelected)return;const o=n.map((e=>e(t)));return()=>{o.forEach((e=>e()))}}),[n,e.isSelected])}const MR={},PR=Symbol("usesContext");function RR({onChange:e,onFocus:t,value:n,forwardedRef:o,settings:r}){const{name:i,edit:s,[PR]:l}=r,a=(0,h.useContext)(sv),c=(0,h.useMemo)((()=>l?Object.fromEntries(Object.entries(a).filter((([e])=>l.includes(e)))):MR),[l,a]);if(!s)return null;const u=(0,pe.getActiveFormat)(n,i),p=void 0!==u,g=(0,pe.getActiveObject)(n),m=void 0!==g&&g.type===i;return(0,d.jsx)(s,{isActive:p,activeAttributes:p&&u.attributes||{},isObjectActive:m,activeObjectAttributes:m&&g.attributes||{},value:n,onChange:e,onFocus:t,contentRef:o,context:c},i)}function AR({formatTypes:e,...t}){return e.map((e=>(0,ic.createElement)(RR,{settings:e,...t,key:e.name})))}function NR(e,t){if(WR.isEmpty(e)){const e=IR(t);return e?`<${e}></${e}>`:""}return Array.isArray(e)?(I()("wp.blockEditor.RichText value prop as children type",{since:"6.1",version:"6.3",alternative:"value prop as string",link:"https://developer.wordpress.org/block-editor/how-to-guides/block-tutorial/introducing-attributes-and-editable-fields/"}),p.children.toHTML(e)):"string"==typeof e?e:e.toHTMLString()}function LR({value:e,tagName:t,multiline:n,format:o,...r}){return e=(0,d.jsx)(h.RawHTML,{children:NR(e,n)}),t?(0,d.jsx)(t,{...r,children:e}):e}var DR=(0,h.forwardRef)((function({children:e,identifier:t,tagName:n="div",value:o="",onChange:r,multiline:i,...s},l){I()("wp.blockEditor.RichText multiline prop",{since:"6.1",version:"6.3",alternative:"nested blocks (InnerBlocks)",link:"https://developer.wordpress.org/block-editor/how-to-guides/block-tutorial/nested-blocks-inner-blocks/"});const{clientId:a}=C(),{getSelectionStart:c,getSelectionEnd:u}=(0,g.useSelect)(ji),{selectionChange:p}=(0,g.useDispatch)(ji),h=IR(i),m=`</${h}>${o=o||`<${h}></${h}>`}<${h}>`.split(`</${h}><${h}>`);function f(e){r(`<${h}>${e.join(`</${h}><${h}>`)}</${h}>`)}return m.shift(),m.pop(),(0,d.jsx)(n,{ref:l,children:m.map(((e,n)=>(0,d.jsx)(HR,{identifier:`${t}-${n}`,tagName:h,value:e,onChange:e=>{const t=m.slice();t[n]=e,f(t)},isSelected:void 0,onKeyDown:o=>{if(o.keyCode!==Wa.ENTER)return;o.preventDefault();const{offset:r}=c(),{offset:i}=u();if("number"!=typeof r||"number"!=typeof i)return;const s=(0,pe.create)({html:e});s.start=r,s.end=i;const l=(0,pe.split)(s).map((e=>(0,pe.toHTMLString)({value:e}))),d=m.slice();d.splice(n,1,...l),f(d),p(a,`${t}-${n+1}`,0,0)},onMerge:e=>{const o=m.slice();let r=0;if(e){if(!o[n+1])return;o.splice(n,2,o[n]+o[n+1]),r=o[n].length-1}else{if(!o[n-1])return;o.splice(n-1,2,o[n-1]+o[n]),r=o[n-1].length-1}f(o),p(a,`${t}-${n-(e?0:1)}`,r,r)},...s},n)))})}));const OR=(0,h.createContext)();OR.displayName="keyboardShortcutContext";const zR=(0,h.createContext)();zR.displayName="inputEventContext";const VR=Symbol("instanceId");function FR(e){const{__unstableMobileNoFocusOnMount:t,deleteEnter:n,placeholderTextColor:o,textAlign:r,selectionColor:i,tagsToEliminate:s,disableEditingMenu:l,fontSize:a,fontFamily:c,fontWeight:u,fontStyle:d,minWidth:p,maxWidth:h,disableSuggestions:g,disableAutocorrection:m,...f}=e;return f}function HR({children:e,tagName:t="div",value:n="",onChange:o,isSelected:r,multiline:i,inlineToolbar:s,wrapperClassName:l,autocompleters:a,onReplace:c,placeholder:u,allowedFormats:f,withoutInteractiveFormatting:b,onRemove:k,onMerge:v,onSplit:y,__unstableOnSplitAtEnd:x,__unstableOnSplitAtDoubleLineEnd:S,identifier:w,preserveWhiteSpace:B,__unstablePastePlainText:j,__unstableEmbedURLOnPaste:M,__unstableDisableFormats:P,disableLineBreaks:R,__unstableAllowPrefixTransformations:A,readOnly:N,...L},D){L=FR(L),y&&I()("wp.blockEditor.RichText onSplit prop",{since:"6.4",alternative:'block.json support key: "splitting"'});const O=(0,m.useInstanceId)(HR),z=(0,h.useRef)(),V=C(),{clientId:H,isSelected:U}=V,G=V[_],$=(0,h.useContext)(sv),{bindableAttributes:W}=(0,h.useContext)(pv),K=(0,g.useRegistry)(),{selectionStart:Z,selectionEnd:q,isSelected:Y,isContentOnly:X}=(0,g.useSelect)((e=>{if(!U)return{isSelected:!1};const{getSelectionStart:t,getSelectionEnd:n,getBlockEditingMode:o}=e(ji),i=t(),s=n();let l;return void 0===r?l=i.clientId===H&&s.clientId===H&&(w?i.attributeKey===w:i[VR]===O):r&&(l=i.clientId===H),{selectionStart:l?i.offset:void 0,selectionEnd:l?s.offset:void 0,isSelected:l,isContentOnly:"contentOnly"===o(H)}}),[H,w,O,r,U]),{disableBoundBlock:Q,bindingsPlaceholder:J,bindingsLabel:ee}=(0,g.useSelect)((e=>{if(!G?.[w]||!W)return{};const t=G[w],o=(0,p.getBlockBindingsSource)(t.source),r={};if(o?.usesContext?.length)for(const e of o.usesContext)r[e]=$[e];const i=!o?.canUserEditValue?.({select:e,context:r,args:t.args});if(n.length>0)return{disableBoundBlock:i,bindingsPlaceholder:null,bindingsLabel:null};const{getBlockAttributes:s}=e(ji),l=s(H);let a=null;if(o?.getFieldsList){const n=o.getFieldsList({select:e,context:r});a=n?.find((e=>E()(e.args,t?.args)))?.label}const c=a??o?.label,u=i?c:(0,T.sprintf)((0,T.__)("Add %s"),c),d=i?t?.args?.key||o?.label:(0,T.sprintf)((0,T.__)("Empty %s; start writing to edit its value"),t?.args?.key||o?.label);return{disableBoundBlock:i,bindingsPlaceholder:l?.placeholder||u,bindingsLabel:d}}),[G,w,W,n,H,$]),te=N||Q||!!$?.["pattern/overrides"]&&!("core/pattern-overrides"===G?.__default?.source),{getSelectionStart:ne,getSelectionEnd:oe,getBlockRootClientId:re}=(0,g.useSelect)(ji),{selectionChange:ie}=(0,g.useDispatch)(ji),se=jR({allowedFormats:f,disableFormats:P}),le=!se||se.length>0,ae=(0,h.useCallback)(((e,t)=>{const n={},o=void 0===e&&void 0===t,r={clientId:H,[w?"attributeKey":VR]:w||O};if("number"==typeof e||o){if(void 0===t&&re(H)!==re(oe().clientId))return;n.start={...r,offset:e}}if("number"==typeof t||o){if(void 0===e&&re(H)!==re(ne().clientId))return;n.end={...r,offset:t}}ie(n)}),[H,re,oe,ne,w,O,ie]),{formatTypes:ce,prepareHandlers:ue,valueHandlers:de,changeHandlers:he,dependencies:ge}=function({clientId:e,identifier:t,allowedFormats:n,withoutInteractiveFormatting:o,disableNoneEssentialFormatting:r=!1}){const i=(0,g.useSelect)(yR,[]),s=(0,h.useMemo)((()=>i.filter((({name:e,interactive:t,tagName:i,[F]:s})=>!(n&&!n.includes(e)||r&&!s||o&&(t||xR.has(i)))))),[i,n,r,o]),l=(0,g.useSelect)((n=>s.reduce(((o,r)=>r.__experimentalGetPropsForEditableTreePreparation?{...o,...SR(r.__experimentalGetPropsForEditableTreePreparation(n,{richTextIdentifier:t,blockClientId:e}),r.name)}:o),{})),[s,e,t]),a=(0,g.useDispatch)(),c=[],u=[],d=[],p=[];for(const e in l)p.push(l[e]);return s.forEach((n=>{if(n.__experimentalCreatePrepareEditableTree){const o=n.__experimentalCreatePrepareEditableTree(wR(l,n.name),{richTextIdentifier:t,blockClientId:e});n.__experimentalCreateOnChangeEditableValue?u.push(o):c.push(o)}if(n.__experimentalCreateOnChangeEditableValue){let o={};n.__experimentalGetPropsForEditableTreeChangeHandler&&(o=n.__experimentalGetPropsForEditableTreeChangeHandler(a,{richTextIdentifier:t,blockClientId:e}));const r=wR(l,n.name);d.push(n.__experimentalCreateOnChangeEditableValue({..."object"==typeof r?r:{},...o},{richTextIdentifier:t,blockClientId:e}))}})),{formatTypes:s,prepareHandlers:c,valueHandlers:u,changeHandlers:d,dependencies:p}}({clientId:H,identifier:w,allowedFormats:se,withoutInteractiveFormatting:b,disableNoneEssentialFormatting:X});function me(e){return ce.forEach((t=>{t.__experimentalCreatePrepareEditableTree&&(e=(0,pe.removeFormat)(e,t.name,0,e.text.length))})),e.formats}const{value:fe,getValue:be,onChange:ke,ref:ve}=(0,pe.__unstableUseRichText)({value:n,onChange(e,{__unstableFormats:t,__unstableText:n}){o(e),Object.values(he).forEach((e=>{e(t,n)}))},selectionStart:Z,selectionEnd:q,onSelectionChange:ae,placeholder:J||u,__unstableIsSelected:Y,__unstableDisableFormats:P,preserveWhiteSpace:B,__unstableDependencies:[...ge,t],__unstableAfterParse:function(e){return de.reduce(((t,n)=>n(t,e.text)),e.formats)},__unstableBeforeSerialize:me,__unstableAddInvisibleFormats:function(e){return ue.reduce(((t,n)=>n(t,e.text)),e.formats)}}),_e=function(e){return(0,ws.__unstableUseAutocompleteProps)({...e,completers:bj(e)})}({onReplace:c,completers:a,record:fe,onChange:ke});!function({html:e,value:t}){const n=(0,h.useRef)(),o=!!t.activeFormats?.length,{__unstableMarkLastChangeAsPersistent:r}=(0,g.useDispatch)(ji);(0,h.useLayoutEffect)((()=>{if(n.current){if(n.current!==t.text){const e=window.setTimeout((()=>{r()}),1e3);return n.current=t.text,()=>{window.clearTimeout(e)}}r()}else n.current=t.text}),[e,o])}({html:n,value:fe});const ye=(0,h.useRef)(new Set),xe=(0,h.useRef)(new Set);function Se(){z.current?.focus()}const we=t;return(0,d.jsxs)(d.Fragment,{children:[Y&&(0,d.jsx)(OR.Provider,{value:ye,children:(0,d.jsx)(zR.Provider,{value:xe,children:(0,d.jsxs)(ws.Popover.__unstableSlotNameProvider,{value:"__unstable-block-tools-after",children:[e&&e({value:fe,onChange:ke,onFocus:Se}),(0,d.jsx)(AR,{value:fe,onChange:ke,onFocus:Se,formatTypes:ce,forwardedRef:z})]})})}),Y&&le&&(0,d.jsx)(_R,{inline:s,editableContentElement:z.current}),(0,d.jsx)(we,{role:"textbox","aria-multiline":!R,"aria-readonly":te,...L,draggable:void 0,"aria-label":ee||L["aria-label"]||u,..._e,ref:(0,m.useMergeRefs)([ve,D,_e.ref,L.ref,TR({registry:K,getValue:be,onChange:ke,__unstableAllowPrefixTransformations:A,formatTypes:ce,onReplace:c,selectionChange:ie,isSelected:Y,disableFormats:P,value:fe,tagName:t,onSplit:y,__unstableEmbedURLOnPaste:M,pastePlainText:j,onMerge:v,onRemove:k,removeEditorOnlyFormats:me,disableLineBreaks:R,onSplitAtEnd:x,onSplitAtDoubleLineEnd:S,keyboardShortcuts:ye,inputEvents:xe}),z]),contentEditable:!te,suppressContentEditableWarning:!0,className:ms("block-editor-rich-text__editable",L.className,"rich-text"),tabIndex:0!==L.tabIndex||te?L.tabIndex:null,"data-wp-block-attribute-key":w})]})}const UR=(GR=(0,h.forwardRef)(HR),(0,h.forwardRef)(((e,t)=>{let n=e.value,o=e.onChange;Array.isArray(n)&&(I()("wp.blockEditor.RichText value prop as children type",{since:"6.1",version:"6.3",alternative:"value prop as string",link:"https://developer.wordpress.org/block-editor/how-to-guides/block-tutorial/introducing-attributes-and-editable-fields/"}),n=p.children.toHTML(e.value),o=t=>e.onChange(p.children.fromDOM((0,pe.__unstableCreateElement)(document,t).childNodes)));const r=e.multiline?DR:GR;return(0,d.jsx)(r,{...e,value:n,onChange:o,ref:t})})));var GR;UR.Content=LR,UR.isEmpty=e=>!e||0===e.length;const $R=(0,h.forwardRef)(((e,t)=>{if(C()[y]){const{children:n,tagName:o="div",value:r,onChange:i,isSelected:s,multiline:l,inlineToolbar:a,wrapperClassName:c,autocompleters:u,onReplace:p,placeholder:h,allowedFormats:g,withoutInteractiveFormatting:m,onRemove:f,onMerge:b,onSplit:k,__unstableOnSplitAtEnd:v,__unstableOnSplitAtDoubleLineEnd:_,identifier:y,preserveWhiteSpace:x,__unstablePastePlainText:S,__unstableEmbedURLOnPaste:w,__unstableDisableFormats:C,disableLineBreaks:B,__unstableAllowPrefixTransformations:I,readOnly:j,...E}=FR(e);return(0,d.jsx)(o,{ref:t,...E,dangerouslySetInnerHTML:{__html:NR(r,l)}})}return(0,d.jsx)(UR,{ref:t,...e,readOnly:!1})}));$R.Content=LR,$R.isEmpty=e=>!e||0===e.length;var WR=$R;const KR=(0,h.forwardRef)(((e,t)=>(0,d.jsx)(WR,{ref:t,...e,__unstableDisableFormats:!0})));KR.Content=({value:e="",tagName:t="div",...n})=>(0,d.jsx)(t,{...n,children:e});var ZR=KR;var qR=(0,h.forwardRef)((({__experimentalVersion:e,...t},n)=>{if(2===e)return(0,d.jsx)(ZR,{ref:n,...t});const{className:o,onChange:r,...i}=t;return(0,d.jsx)(Ev.A,{ref:n,className:ms("block-editor-plain-text",o),onChange:e=>r(e.target.value),...i})}));function YR({property:e,viewport:t,desc:n}){const o=(0,m.useInstanceId)(YR),r=n||(0,T.sprintf)((0,T._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."),e,t.label);return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("span",{"aria-describedby":`rbc-desc-${o}`,children:t.label}),(0,d.jsx)(ws.VisuallyHidden,{as:"span",id:`rbc-desc-${o}`,children:r})]})}var XR=function(e){const{title:t,property:n,toggleLabel:o,onIsResponsiveChange:r,renderDefaultControl:i,renderResponsiveControls:s,isResponsive:l=!1,defaultLabel:a={id:"all",label:(0,T._x)("All","screen sizes")},viewports:c=[{id:"small",label:(0,T.__)("Small screens")},{id:"medium",label:(0,T.__)("Medium screens")},{id:"large",label:(0,T.__)("Large screens")}]}=e;if(!t||!n||!i)return null;const u=o||(0,T.sprintf)((0,T.__)("Use the same %s on all screen sizes."),n),p=(0,T.__)("Choose whether to use the same value for all screen sizes or a unique value for each screen size."),g=i((0,d.jsx)(YR,{property:n,viewport:a}),a);return(0,d.jsxs)("fieldset",{className:"block-editor-responsive-block-control",children:[(0,d.jsx)("legend",{className:"block-editor-responsive-block-control__title",children:t}),(0,d.jsxs)("div",{className:"block-editor-responsive-block-control__inner",children:[(0,d.jsx)(ws.ToggleControl,{__nextHasNoMarginBottom:!0,className:"block-editor-responsive-block-control__toggle",label:u,checked:!l,onChange:r,help:p}),(0,d.jsxs)("div",{className:ms("block-editor-responsive-block-control__group",{"is-responsive":l}),children:[!l&&g,l&&(s?s(c):c.map((e=>(0,d.jsx)(h.Fragment,{children:i((0,d.jsx)(YR,{property:n,viewport:e}),e)},e.id))))]})]})]})};function QR({character:e,type:t,onUse:n}){const o=(0,h.useContext)(OR),r=(0,h.useRef)();return r.current=n,(0,h.useEffect)((()=>{function n(n){Wa.isKeyboardEvent[t](n,e)&&(r.current(),n.preventDefault())}return o.current.add(n),()=>{o.current.delete(n)}}),[e,t]),null}function JR({name:e,shortcutType:t,shortcutCharacter:n,...o}){let r,i="RichText.ToolbarControls";return e&&(i+=`.${e}`),t&&n&&(r=Wa.displayShortcut[t](n)),(0,d.jsx)(ws.Fill,{name:i,children:(0,d.jsx)(ws.ToolbarButton,{...o,shortcut:r})})}function eA({inputType:e,onInput:t}){const n=(0,h.useContext)(zR),o=(0,h.useRef)();return o.current=t,(0,h.useEffect)((()=>{function t(t){t.inputType===e&&(o.current(),t.preventDefault())}return n.current.add(t),()=>{n.current.delete(t)}}),[e]),null}function tA({units:e,...t}){const[n]=Ti("spacing.units"),o=(0,ws.__experimentalUseCustomUnits)({availableUnits:n||["%","px","em","rem","vw"],units:e});return(0,d.jsx)(ws.__experimentalUnitControl,{units:o,...t})}var nA=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"M20 11.2H6.8l3.7-3.7-1-1L3.9 12l5.6 5.5 1-1-3.7-3.7H20z"})});var oA=function({url:e,onChange:t}){const[n,o]=(0,h.useReducer)((e=>!e),!1);return(0,d.jsxs)("div",{className:"block-editor-url-input__button",children:[(0,d.jsx)(ws.Button,{size:"compact",icon:Ld,label:e?(0,T.__)("Edit link"):(0,T.__)("Insert link"),onClick:o,className:"components-toolbar__control",isPressed:!!e}),n&&(0,d.jsx)("form",{className:"block-editor-url-input__button-modal",onSubmit:e=>{e.preventDefault(),o()},children:(0,d.jsxs)("div",{className:"block-editor-url-input__button-modal-line",children:[(0,d.jsx)(ws.Button,{__next40pxDefaultSize:!0,className:"block-editor-url-input__back",icon:nA,label:(0,T.__)("Close"),onClick:o}),(0,d.jsx)(ac,{value:e||"",onChange:t,suffix:(0,d.jsx)(ws.__experimentalInputControlSuffixWrapper,{variant:"control",children:(0,d.jsx)(ws.Button,{size:"small",icon:tc,label:(0,T.__)("Submit"),type:"submit"})})})]})})]})},rA=(0,d.jsx)(ue.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,d.jsx)(ue.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"})});const iA="none",sA="custom",lA="media",aA="attachment",cA=["noreferrer","noopener"],uA=({linkDestination:e,onChangeUrl:t,url:n,mediaType:o="image",mediaUrl:r,mediaLink:i,linkTarget:s,linkClass:l,rel:a,showLightboxSetting:c,lightboxEnabled:u,onSetLightbox:p,resetLightbox:g})=>{const[m,f]=(0,h.useState)(!1),[b,k]=(0,h.useState)(null),[v,_]=(0,h.useState)(!1),[y,x]=(0,h.useState)(null),S=(0,h.useRef)(null),w=(0,h.useRef)();(0,h.useEffect)((()=>{if(!w.current)return;(Ga.focus.focusable.find(w.current)[0]||w.current).focus()}),[v,n,u]);const C=()=>{e!==lA&&e!==aA||x(""),_(!0)},B=()=>{_(!1)},I=()=>{const e=[{linkDestination:lA,title:(0,T.__)("Link to image file"),url:"image"===o?r:void 0,icon:rA}];return"image"===o&&i&&e.push({linkDestination:aA,title:(0,T.__)("Link to attachment page"),url:"image"===o?i:void 0,icon:pc}),e},j=(0,d.jsxs)(ws.__experimentalVStack,{spacing:"3",children:[(0,d.jsx)(ws.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,T.__)("Open in new tab"),onChange:e=>{const n=(e=>{const t=e?"_blank":void 0;let n;if(t){const e=(a??"").split(" ");cA.forEach((t=>{e.includes(t)||e.push(t)})),n=e.join(" ")}else{const e=(a??"").split(" ").filter((e=>!1===cA.includes(e)));n=e.length?e.join(" "):void 0}return{linkTarget:t,rel:n}})(e);t(n)},checked:"_blank"===s}),(0,d.jsx)(ws.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,T.__)("Link relation"),value:a??"",onChange:e=>{t({rel:e})},help:(0,h.createInterpolateElement)((0,T.__)("The <a>Link Relation</a> attribute defines the relationship between a linked resource and the current document."),{a:(0,d.jsx)(ws.ExternalLink,{href:"https://developer.mozilla.org/docs/Web/HTML/Attributes/rel"})})}),(0,d.jsx)(ws.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,T.__)("Link CSS class"),value:l||"",onChange:e=>{t({linkClass:e})}})]}),E=null!==y?y:n,M=!u||u&&!c,P=!E&&M,R=(I().find((t=>t.linkDestination===e))||{}).title;return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(ws.ToolbarButton,{icon:Ld,className:"components-toolbar__control",label:(0,T.__)("Link"),"aria-expanded":m,onClick:()=>{f(!0)},ref:k,isActive:!!n||u&&c}),m&&(0,d.jsx)(dR,{ref:w,anchor:b,onFocusOutside:e=>{const t=S.current;t&&t.contains(e.target)||(f(!1),x(null),B())},onClose:()=>{x(null),B(),f(!1)},renderSettings:M?()=>j:null,additionalControls:P&&(0,d.jsxs)(ws.NavigableMenu,{children:[I().map((e=>(0,d.jsx)(ws.MenuItem,{icon:e.icon,iconPosition:"left",onClick:()=>{x(null),(e=>{const n=I();let o;o=e?(n.find((t=>t.url===e))||{linkDestination:sA}).linkDestination:iA,t({linkDestination:o,href:e})})(e.url),B()},children:e.title},e.linkDestination))),c&&(0,d.jsx)(ws.MenuItem,{className:"block-editor-url-popover__expand-on-click",icon:vj,info:(0,T.__)("Scale the image with a lightbox effect."),iconPosition:"left",onClick:()=>{x(null),t({linkDestination:iA,href:""}),p?.(!0),B()},children:(0,T.__)("Enlarge on click")},"expand-on-click")]}),offset:13,children:u&&c&&!n&&!v?(0,d.jsxs)("div",{className:"block-editor-url-popover__expand-on-click",children:[(0,d.jsx)(Ol,{icon:vj}),(0,d.jsxs)("div",{className:"text",children:[(0,d.jsx)("p",{children:(0,T.__)("Enlarge on click")}),(0,d.jsx)("p",{className:"description",children:(0,T.__)("Scales the image with a lightbox effect")})]}),(0,d.jsx)(ws.Button,{icon:ec,label:(0,T.__)("Disable enlarge on click"),onClick:()=>{p?.(!1)},size:"compact"})]}):!n||v?(0,d.jsx)(dR.LinkEditor,{className:"block-editor-format-toolbar__link-container-content",value:E,onChangeInputValue:x,onSubmit:e=>{if(y){const e=I().find((e=>e.url===y))?.linkDestination||sA;t({href:(0,Ua.prependHTTP)(y),linkDestination:e,lightbox:{enabled:!1}})}B(),x(null),e.preventDefault()},autocompleteRef:S}):n&&!v?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(dR.LinkViewer,{className:"block-editor-format-toolbar__link-container-content",url:n,onEditLinkClick:C,urlLabel:R}),(0,d.jsx)(ws.Button,{icon:ec,label:(0,T.__)("Remove link"),onClick:()=>{t({linkDestination:iA,href:""}),g?.()},size:"compact"})]}):void 0})]})};function dA(){return I()("wp.blockEditor.PreviewOptions",{version:"6.5"}),null}function pA(e){const[t,n]=(0,h.useState)(window.innerWidth);(0,h.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",n="40px",r="auto";switch(e){case"Tablet":case"Mobile":return{width:o(e),marginTop:n,marginBottom:n,marginLeft:r,marginRight:r,height:t,overflowY:"auto"};default:return{marginLeft:r,marginRight:r}}})(e)}function hA({clientId:e}){const{updateBlockAttributes:t}=(0,g.useDispatch)(ji),{attributes:n}=(0,g.useSelect)((t=>({attributes:t(ji).getBlockAttributes(e)})),[e]);return n?.metadata?.patternName?(0,d.jsx)(ws.Button,{className:"block-editor-block-inspector-edit-contents-button",__next40pxDefaultSize:!0,variant:"secondary",onClick:()=>{const{patternName:o,...r}=n?.metadata??{};t(e,{...n,metadata:r})},children:(0,T.__)("Edit contents")}):null}function gA(){const e=(0,g.useSelect)((e=>e(ji).getBlockSelectionStart()),[]),t=(0,h.useRef)();fh(e,t);return e?(0,d.jsx)(ws.Button,{__next40pxDefaultSize:!0,variant:"secondary",className:"block-editor-skip-to-selected-block",onClick:()=>{t.current?.focus()},children:(0,T.__)("Skip to the selected block")}):null}function mA(){const e=(0,g.useSelect)((e=>e(ji).getSelectedBlockCount()),[]);return(0,d.jsxs)(ws.__experimentalHStack,{justify:"flex-start",spacing:2,className:"block-editor-multi-selection-inspector__card",children:[(0,d.jsx)(Vu,{icon:qj,showColors:!0}),(0,d.jsx)("div",{className:"block-editor-multi-selection-inspector__card-title",children:(0,T.sprintf)((0,T._n)("%d Block","%d Blocks",e),e)})]})}var fA=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.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"})}),bA=(0,d.jsx)(ue.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,d.jsx)(ue.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M20 12a8 8 0 1 1-16 0 8 8 0 0 1 16 0Zm-1.5 0a6.5 6.5 0 0 1-6.5 6.5v-13a6.5 6.5 0 0 1 6.5 6.5Z"})});const kA={name:"settings",title:(0,T.__)("Settings"),value:"settings",icon:fA},vA={name:"styles",title:(0,T.__)("Styles"),value:"styles",icon:bA},_A={name:"content",title:(0,T.__)("Content"),value:"content",icon:pc},yA={name:"list",title:(0,T.__)("List View"),value:"list-view",icon:nM};var xA=()=>{const e=(0,ws.__experimentalUseSlotFills)(Va.slotName),t=(0,ws.__experimentalUseSlotFills)(Pa.name),n=Boolean(e&&e.length),o=Boolean(t&&t.length);return n||o?(0,d.jsxs)(ws.PanelBody,{className:"block-editor-block-inspector__advanced",title:(0,T.__)("Advanced"),initialOpen:!1,children:[(0,d.jsx)(Fa.Slot,{group:"advanced"}),(0,d.jsx)(Pa.Slot,{})]}):null};const SA=()=>{const{selectedClientIds:e,selectedBlocks:t,hasPositionAttribute:n}=(0,g.useSelect)((e=>{const{getBlocksByClientId:t,getSelectedBlockClientIds:n}=e(ji),o=n(),r=t(o);return{selectedClientIds:o,selectedBlocks:r,hasPositionAttribute:r?.some((({attributes:e})=>!!e?.style?.position?.type))}}),[]),{updateBlockAttributes:o}=(0,g.useDispatch)(ji),r=Ji();function i(){if(!e?.length||!t?.length)return;const n=Object.fromEntries(t?.map((({clientId:e,attributes:t})=>[e,{style:fs({...t?.style,position:{...t?.style?.position,type:void 0,top:void 0,right:void 0,bottom:void 0,left:void 0}})}])));o(e,n,!0)}return(0,d.jsx)(ws.__experimentalToolsPanel,{className:"block-editor-block-inspector__position",label:(0,T.__)("Position"),resetAll:i,dropdownMenuProps:r,children:(0,d.jsx)(ws.__experimentalToolsPanelItem,{isShownByDefault:n,label:(0,T.__)("Position"),hasValue:()=>n,onDeselect:i,children:(0,d.jsx)(Fa.Slot,{group:"position"})})})};var wA=()=>{const e=(0,ws.__experimentalUseSlotFills)(Ma.position.name);return Boolean(e&&e.length)?(0,d.jsx)(SA,{}):null};var CA=({showAdvancedControls:e=!1})=>(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(Fa.Slot,{}),(0,d.jsx)(wA,{}),(0,d.jsx)(Fa.Slot,{group:"bindings"}),e&&(0,d.jsx)("div",{children:(0,d.jsx)(xA,{})})]});var BA=({blockName:e,clientId:t,hasBlockStyles:n,isSectionBlock:o})=>{const r=Ap({blockName:e});return(0,d.jsxs)(d.Fragment,{children:[n&&(0,d.jsx)("div",{children:(0,d.jsx)(ws.PanelBody,{title:(0,T.__)("Styles"),children:(0,d.jsx)(VM,{clientId:t})})}),!o&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(Fa.Slot,{group:"color",label:(0,T.__)("Color"),className:"color-block-support-panel__inner-wrapper"}),(0,d.jsx)(Fa.Slot,{group:"background",label:(0,T.__)("Background image")}),(0,d.jsx)(Fa.Slot,{group:"filter"}),(0,d.jsx)(Fa.Slot,{group:"typography",label:(0,T.__)("Typography")}),(0,d.jsx)(Fa.Slot,{group:"dimensions",label:(0,T.__)("Dimensions")}),(0,d.jsx)(Fa.Slot,{group:"border",label:r}),(0,d.jsx)(Fa.Slot,{group:"styles"})]})]})};function IA({clientIds:e,onSelect:t}){return e.length?(0,d.jsx)(ws.__experimentalVStack,{spacing:1,children:e.map((e=>(0,d.jsx)(jA,{onSelect:t,clientId:e},e)))}):null}function jA({clientId:e,onSelect:t}){const n=Xf(e),o=Sj({clientId:e,context:"list-view"}),{isSelected:r}=(0,g.useSelect)((t=>{const{isBlockSelected:n,hasSelectedInnerBlock:o}=t(ji);return{isSelected:n(e)||o(e,!0)}}),[e]),{selectBlock:i}=(0,g.useDispatch)(ji);return(0,d.jsx)(ws.Button,{__next40pxDefaultSize:!0,isPressed:r,onClick:async()=>{await i(e),t&&t(e)},children:(0,d.jsxs)(ws.Flex,{children:[(0,d.jsx)(ws.FlexItem,{children:(0,d.jsx)(Vu,{icon:n?.icon})}),(0,d.jsx)(ws.FlexBlock,{style:{textAlign:"left"},children:(0,d.jsx)(ws.__experimentalTruncate,{children:o})})]})})}var EA=({contentClientIds:e})=>e&&0!==e.length?(0,d.jsx)(ws.PanelBody,{title:(0,T.__)("Content"),children:(0,d.jsx)(IA,{clientIds:e})}):null;const TA=["core/navigation"];var MA=e=>!TA.includes(e);const{Tabs:PA}=G(ws.privateApis);function RA({blockName:e,clientId:t,hasBlockStyles:n,tabs:o,isSectionBlock:r,contentClientIds:i}){const s=(0,g.useSelect)((e=>e(hr.store).get("core","showIconLabels")),[]),l=MA(e)?void 0:yA.name,[a,c]=(0,h.useState)(l??o[0]?.name);return(0,h.useEffect)((()=>{if(!l&&o?.length&&a){o.find((e=>e.name===a))||c(o[0].name)}}),[o,a,l]),(0,d.jsx)("div",{className:"block-editor-block-inspector__tabs",children:(0,d.jsxs)(PA,{defaultTabId:l,selectedTabId:a,onSelect:c,children:[(0,d.jsx)(PA.TabList,{children:o.map((e=>s?(0,d.jsx)(PA.Tab,{tabId:e.name,children:e.title},e.name):(0,d.jsx)(ws.Tooltip,{text:e.title,children:(0,d.jsx)(PA.Tab,{tabId:e.name,"aria-label":e.title,children:(0,d.jsx)(ws.Icon,{icon:e.icon})})},e.name)))}),(0,d.jsx)(PA.TabPanel,{tabId:kA.name,focusable:!1,children:(0,d.jsx)(CA,{showAdvancedControls:!!e})}),(0,d.jsx)(PA.TabPanel,{tabId:vA.name,focusable:!1,children:(0,d.jsx)(BA,{blockName:e,clientId:t,hasBlockStyles:n,isSectionBlock:r})}),(0,d.jsx)(PA.TabPanel,{tabId:_A.name,focusable:!1,children:(0,d.jsx)(EA,{contentClientIds:i})}),(0,d.jsx)(PA.TabPanel,{tabId:yA.name,focusable:!1,children:(0,d.jsx)(Fa.Slot,{group:"list"})})]},t)})}const AA=[];function NA({clientId:e}){return(0,d.jsx)(ws.PanelBody,{title:(0,T.__)("Styles"),children:(0,d.jsx)(VM,{clientId:e})})}function LA({blockName:e,showAdvancedControls:t=!0,showPositionControls:n=!0,showListControls:o=!1,showBindingsControls:r=!0}){const i=Ap({blockName:e});return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(Fa.Slot,{}),o&&(0,d.jsx)(Fa.Slot,{group:"list"}),(0,d.jsx)(Fa.Slot,{group:"color",label:(0,T.__)("Color"),className:"color-block-support-panel__inner-wrapper"}),(0,d.jsx)(Fa.Slot,{group:"background",label:(0,T.__)("Background image")}),(0,d.jsx)(Fa.Slot,{group:"typography",label:(0,T.__)("Typography")}),(0,d.jsx)(Fa.Slot,{group:"dimensions",label:(0,T.__)("Dimensions")}),(0,d.jsx)(Fa.Slot,{group:"border",label:i}),(0,d.jsx)(Fa.Slot,{group:"styles"}),n&&(0,d.jsx)(wA,{}),r&&(0,d.jsx)(Fa.Slot,{group:"bindings"}),t&&(0,d.jsx)("div",{children:(0,d.jsx)(xA,{})})]})}const DA=({animate:e,wrapper:t,children:n})=>e?t(n):n,OA=({blockInspectorAnimationSettings:e,selectedBlockClientId:t,children:n})=>{const o=e&&"leftToRight"===e.enterDirection?-50:50;return(0,d.jsx)(ws.__unstableMotion.div,{animate:{x:0,opacity:1,transition:{ease:"easeInOut",duration:.14}},initial:{x:o,opacity:0},children:n},t)},zA=({clientId:e,blockName:t,isSectionBlock:n,availableTabs:o,contentClientIds:r,hasBlockStyles:i})=>{const s=o?.length>1,l=Xf(e),a=l.isSynced,c=!a&&s;return(0,d.jsxs)("div",{className:"block-editor-block-inspector",children:[(0,d.jsx)(Xb,{...l,className:a&&"is-synced",allowParentNavigation:!0,children:window?.__experimentalContentOnlyPatternInsertion&&(0,d.jsx)(hA,{clientId:e})}),(0,d.jsx)(lP,{blockClientId:e}),c&&(0,d.jsx)(RA,{hasBlockStyles:i,clientId:e,blockName:t,tabs:o,isSectionBlock:n,contentClientIds:r}),!c&&(0,d.jsxs)(d.Fragment,{children:[i&&(0,d.jsx)(NA,{clientId:e}),(0,d.jsx)(EA,{contentClientIds:r}),!n&&(0,d.jsx)(LA,{blockName:t,showListControls:!0})]}),(0,d.jsx)(gA,{},"back")]})};var VA=function(){const{selectedBlockCount:e,selectedBlockName:t,selectedBlockClientId:n,blockType:o,isSectionBlock:r,isSectionBlockInSelection:i,hasBlockStyles:s}=(0,g.useSelect)((e=>{const{getSelectedBlockClientId:t,getSelectedBlockClientIds:n,getSelectedBlockCount:o,getBlockName:r,getParentSectionBlock:i,isSectionBlock:s}=G(e(ji)),{getBlockStyles:l}=e(p.store),a=t(),c=i(a)||a,u=c&&r(c),d=u&&(0,p.getBlockType)(u),h=n().some((e=>s(e))),g=u&&l(u),m=g&&g.length>0;return{selectedBlockCount:o(),selectedBlockClientId:c,selectedBlockName:u,blockType:d,isSectionBlockInSelection:h,isSectionBlock:s(c),hasBlockStyles:m}}),[]),l=(0,g.useSelect)((e=>{if(!r||!n)return[];const{getClientIdsOfDescendants:t,getBlockName:o,getBlockEditingMode:i}=G(e(ji)),s=t(n),l=new Set;return s.forEach((e=>{if("core/navigation"===o(e)){t(e).forEach((e=>l.add(e)))}})),s.filter((e=>!l.has(e)&&("core/list-item"!==o(e)&&"contentOnly"===i(e))))}),[r,n]),a=function(e,t,n,o){const r=[],{bindings:i,border:s,color:l,default:a,dimensions:c,list:u,position:d,styles:p,typography:h,effects:m}=Ma,f=MA(e),b=(0,ws.__experimentalUseSlotFills)(u.name),k=!f&&!!b&&b.length,v=[...(0,ws.__experimentalUseSlotFills)(s.name)||[],...(0,ws.__experimentalUseSlotFills)(l.name)||[],...(0,ws.__experimentalUseSlotFills)(c.name)||[],...(0,ws.__experimentalUseSlotFills)(p.name)||[],...(0,ws.__experimentalUseSlotFills)(h.name)||[],...(0,ws.__experimentalUseSlotFills)(m.name)||[]].length,_=[...(0,ws.__experimentalUseSlotFills)(Va.slotName)||[],...(0,ws.__experimentalUseSlotFills)(i.name)||[]],y=[...(0,ws.__experimentalUseSlotFills)(a.name)||[],...(0,ws.__experimentalUseSlotFills)(d.name)||[],...k&&v>1?_:[]],x=!!(t&&t.length>0);k&&!n&&r.push(yA),x&&r.push(_A),y.length&&!n&&r.push(kA),(n?o:v)&&r.push(vA);return function(e,t={}){return void 0!==t[e]?t[e]:void 0===t.default||t.default}(e,(0,g.useSelect)((e=>e(ji).getSettings().blockInspectorTabs),[]))?r:AA}(o?.name,l,r,s),c=a?.length>1,u=function(e){return(0,g.useSelect)((t=>{if(e){const n=t(ji).getSettings().blockInspectorAnimation,o=n?.animationParent,{getSelectedBlockClientId:r,getBlockParentsByBlockName:i}=t(ji);return i(r(),o,!0)[0]||e.name===o?n?.[e.name]:null}return null}),[e])}(o),h=e>1;if(h&&!i)return(0,d.jsxs)("div",{className:"block-editor-block-inspector",children:[(0,d.jsx)(mA,{}),c?(0,d.jsx)(RA,{tabs:a}):(0,d.jsx)(LA,{blockName:t,showAdvancedControls:!1,showPositionControls:!1,showBindingsControls:!1})]});if(h&&i)return(0,d.jsx)("div",{className:"block-editor-block-inspector",children:(0,d.jsx)(mA,{})});const m=t===(0,p.getUnregisteredTypeHandlerName)();return!o||!n||m?(0,d.jsx)("span",{className:"block-editor-block-inspector__no-blocks",children:(0,T.__)("No block selected.")}):(0,d.jsx)(DA,{animate:u,wrapper:e=>(0,d.jsx)(OA,{blockInspectorAnimationSettings:u,selectedBlockClientId:n,children:e}),children:(0,d.jsx)(zA,{clientId:n,blockName:o.name,isSectionBlock:r,availableTabs:a,contentClientIds:l,hasBlockStyles:s})})};const FA=()=>(I()("__unstableUseClipboardHandler",{alternative:"BlockCanvas or WritingFlow",since:"6.4",version:"6.7"}),Pw());function HA(e){return I()("CopyHandler",{alternative:"BlockCanvas or WritingFlow",since:"6.4",version:"6.7"}),(0,d.jsx)("div",{...e,ref:Pw()})}const UA=()=>{};const GA=(0,h.forwardRef)((function({rootClientId:e,clientId:t,isAppender:n,showInserterHelpPanel:o,showMostUsedBlocks:r=!1,__experimentalInsertionIndex:i,__experimentalInitialTab:s,__experimentalInitialCategory:l,__experimentalFilterValue:a,onPatternCategorySelection:c,onSelect:u=UA,shouldFocusBlock:p=!1,onClose:h},m){const{destinationRootClientId:f}=(0,g.useSelect)((n=>{const{getBlockRootClientId:o}=n(ji);return{destinationRootClientId:e||o(t)||void 0}}),[t,e]);return(0,d.jsx)(nI,{onSelect:u,rootClientId:f,clientId:t,isAppender:n,showInserterHelpPanel:o,showMostUsedBlocks:r,__experimentalInsertionIndex:i,__experimentalFilterValue:a,onPatternCategorySelection:c,__experimentalInitialTab:s,__experimentalInitialCategory:l,shouldFocusBlock:p,ref:m,onClose:h})}));var $A=(0,h.forwardRef)((function(e,t){return(0,d.jsx)(GA,{...e,onPatternCategorySelection:void 0,ref:t})}));function WA(){return I()("wp.blockEditor.MultiSelectScrollIntoView",{hint:"This behaviour is now built-in.",since:"5.8"}),null}const KA=-1!==window.navigator.userAgent.indexOf("Trident"),ZA=new Set([Wa.UP,Wa.DOWN,Wa.LEFT,Wa.RIGHT]),qA=.75;function YA(){const e=(0,g.useSelect)((e=>e(ji).hasSelectedBlock()),[]);return(0,m.useRefEffect)((t=>{if(!e)return;const{ownerDocument:n}=t,{defaultView:o}=n;let r,i,s;function l(){r||(r=o.requestAnimationFrame((()=>{p(),r=null})))}function a(e){i&&o.cancelAnimationFrame(i),i=o.requestAnimationFrame((()=>{c(e),i=null}))}function c({keyCode:e}){if(!h())return;const r=(0,Ga.computeCaretRect)(o);if(!r)return;if(!s)return void(s=r);if(ZA.has(e))return void(s=r);const i=r.top-s.top;if(0===i)return;const l=(0,Ga.getScrollContainer)(t);if(!l)return;const a=l===n.body||l===n.documentElement,c=a?o.scrollY:l.scrollTop,u=a?0:l.getBoundingClientRect().top,d=a?s.top/o.innerHeight:(s.top-u)/(o.innerHeight-u);if(0===c&&d<qA&&function(){const e=t.querySelectorAll('[contenteditable="true"]');return e[e.length-1]===n.activeElement}())return void(s=r);const p=a?o.innerHeight:l.clientHeight;s.top+s.height>u+p||s.top<u?s=r:a?o.scrollBy(0,i):l.scrollTop+=i}function u(){n.addEventListener("selectionchange",d)}function d(){n.removeEventListener("selectionchange",d),p()}function p(){h()&&(s=(0,Ga.computeCaretRect)(o))}function h(){return t.contains(n.activeElement)&&n.activeElement.isContentEditable}return o.addEventListener("scroll",l,!0),o.addEventListener("resize",l,!0),t.addEventListener("keydown",a),t.addEventListener("keyup",c),t.addEventListener("mousedown",u),t.addEventListener("touchstart",u),()=>{o.removeEventListener("scroll",l,!0),o.removeEventListener("resize",l,!0),t.removeEventListener("keydown",a),t.removeEventListener("keyup",c),t.removeEventListener("mousedown",u),t.removeEventListener("touchstart",u),n.removeEventListener("selectionchange",d),o.cancelAnimationFrame(r),o.cancelAnimationFrame(i)}}),[e])}var XA=KA?e=>e.children:function({children:e}){return(0,d.jsx)("div",{ref:YA(),className:"block-editor__typewriter",children:e})};const QA=(0,h.createContext)({});function JA({children:e,uniqueId:t,blockName:n=""}){const o=(0,h.useContext)(QA),{name:r}=C();n=n||r;const i=(0,h.useMemo)((()=>function(e,t,n){const o={...e,[t]:e[t]?new Set(e[t]):new Set};return o[t].add(n),o}(o,n,t)),[o,n,t]);return(0,d.jsx)(QA.Provider,{value:i,children:e})}function eN(e,t=""){const n=(0,h.useContext)(QA),{name:o}=C();return t=t||o,Boolean(n[t]?.has(e))}QA.displayName="RenderedRefsContext";const tN=e=>(I()("wp.blockEditor.__experimentalRecursionProvider",{since:"6.5",alternative:"wp.blockEditor.RecursionProvider"}),(0,d.jsx)(JA,{...e})),nN=(...e)=>(I()("wp.blockEditor.__experimentalUseHasRecursion",{since:"6.5",alternative:"wp.blockEditor.useHasRecursion"}),eN(...e));function oN({title:e,help:t,actions:n=[],onClose:o}){return(0,d.jsxs)(ws.__experimentalVStack,{className:"block-editor-inspector-popover-header",spacing:4,children:[(0,d.jsxs)(ws.__experimentalHStack,{alignment:"center",children:[(0,d.jsx)(ws.__experimentalHeading,{className:"block-editor-inspector-popover-header__heading",level:2,size:13,children:e}),(0,d.jsx)(ws.__experimentalSpacer,{}),n.map((({label:e,icon:t,onClick:n})=>(0,d.jsx)(ws.Button,{size:"small",className:"block-editor-inspector-popover-header__action",label:e,icon:t,variant:!t&&"tertiary",onClick:n,children:!t&&e},e))),o&&(0,d.jsx)(ws.Button,{size:"small",className:"block-editor-inspector-popover-header__action",label:(0,T.__)("Close"),icon:XB,onClick:o})]}),t&&(0,d.jsx)(ws.__experimentalText,{children:t})]})}const rN=(0,h.forwardRef)((function({onClose:e,onChange:t,showPopoverHeaderActions:n,isCompact:o,currentDate:r,title:i,...s},l){const a={startOfWeek:(0,dP.getSettings)().l10n.startOfWeek,onChange:t,currentDate:o?void 0:r,currentTime:o?r:void 0,...s},c=o?ws.TimePicker:ws.DateTimePicker;return(0,d.jsxs)("div",{ref:l,className:"block-editor-publish-date-time-picker",children:[(0,d.jsx)(oN,{title:i||(0,T.__)("Publish"),actions:n?[{label:(0,T.__)("Now"),onClick:()=>t?.(null)}]:void 0,onClose:e}),(0,d.jsx)(c,{...a})]})}));var iN=(0,h.forwardRef)((function(e,t){return(0,d.jsx)(rN,{...e,showPopoverHeaderActions:!0,isCompact:!1,ref:t})}));const sN={button:"wp-element-button",caption:"wp-element-caption"},lN=e=>sN[e]?sN[e]:"";var aN=()=>"";function cN(e,t,n){return"core/image"===e&&n?.lightbox?.allowEditing||!!t?.lightbox}function uN({onChange:e,value:t,inheritedValue:n,panelId:o}){const r=Ji(),i=()=>{e(void 0)};let s=!1;return n?.lightbox?.enabled&&(s=n.lightbox.enabled),(0,d.jsx)(d.Fragment,{children:(0,d.jsx)(ws.__experimentalToolsPanel,{label:(0,T._x)("Settings","Image settings"),resetAll:i,panelId:o,dropdownMenuProps:r,children:(0,d.jsx)(ws.__experimentalToolsPanelItem,{hasValue:()=>!!t?.lightbox,label:(0,T.__)("Enlarge on click"),onDeselect:i,isShownByDefault:!0,panelId:o,children:(0,d.jsx)(ws.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,T.__)("Enlarge on click"),checked:s,onChange:t=>{e({enabled:t})}})})})})}function dN({value:e,onChange:t,inheritedValue:n=e}){const[o,r]=(0,h.useState)(null),i=n?.css;return(0,d.jsxs)(ws.__experimentalVStack,{spacing:3,children:[o&&(0,d.jsx)(ws.Notice,{status:"error",onRemove:()=>r(null),children:o}),(0,d.jsx)(ws.TextareaControl,{label:(0,T.__)("Additional CSS"),__nextHasNoMarginBottom:!0,value:i,onChange:n=>function(n){if(t({...e,css:n}),o){const[e]=lC([{css:n}],".for-validation-only");e&&r(null)}}(n),onBlur:function(e){if(!e?.target?.value)return void r(null);const[t]=lC([{css:e.target.value}],".for-validation-only");r(null===t?(0,T.__)("There is an error with your CSS structure."):null)},className:"block-editor-global-styles-advanced-panel__custom-css-input",spellCheck:!1})]})}const pN=new Map,hN=[],gN={caption:(0,T.__)("Caption"),link:(0,T.__)("Link"),button:(0,T.__)("Button"),heading:(0,T.__)("Heading"),h1:(0,T.__)("H1"),h2:(0,T.__)("H2"),h3:(0,T.__)("H3"),h4:(0,T.__)("H4"),h5:(0,T.__)("H5"),h6:(0,T.__)("H6"),"settings.color":(0,T.__)("Color"),"settings.typography":(0,T.__)("Typography"),"settings.shadow":(0,T.__)("Shadow"),"settings.layout":(0,T.__)("Layout"),"styles.color":(0,T.__)("Colors"),"styles.spacing":(0,T.__)("Spacing"),"styles.background":(0,T.__)("Background"),"styles.typography":(0,T.__)("Typography")},mN=function(e,t){var n,o,r=0;function i(){var i,s,l=n,a=arguments.length;e:for(;l;){if(l.args.length===arguments.length){for(s=0;s<a;s++)if(l.args[s]!==arguments[s]){l=l.next;continue e}return l!==n&&(l===o&&(o=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(i=new Array(a),s=0;s<a;s++)i[s]=arguments[s];return l={args:i,val:e.apply(null,i)},n?(n.prev=l,l.next=n):o=l,r===t.maxSize?(o=o.prev).next=null:r++,n=l,l.val}return t=t||{},i.clear=function(){n=null,o=null,r=0},i}((()=>(0,p.getBlockTypes)().reduce(((e,{name:t,title:n})=>(e[t]=n,e)),{}))),fN=e=>null!==e&&"object"==typeof e;function bN(e,t,n=""){if(!fN(e)&&!fN(t))return e!==t?n.split(".").slice(0,2).join("."):void 0;e=fN(e)?e:{},t=fN(t)?t:{};const o=new Set([...Object.keys(e),...Object.keys(t)]);let r=[];for(const i of o){const o=n?n+"."+i:i,s=bN(e[i],t[i],o);s&&(r=r.concat(s))}return r}function kN(e,t){const n=JSON.stringify({next:e,previous:t});if(pN.has(n))return pN.get(n);const o=bN({styles:{background:e?.styles?.background,color:e?.styles?.color,typography:e?.styles?.typography,spacing:e?.styles?.spacing},blocks:e?.styles?.blocks,elements:e?.styles?.elements,settings:e?.settings},{styles:{background:t?.styles?.background,color:t?.styles?.color,typography:t?.styles?.typography,spacing:t?.styles?.spacing},blocks:t?.styles?.blocks,elements:t?.styles?.elements,settings:t?.settings});if(!o.length)return pN.set(n,hN),hN;const r=[...new Set(o)].reduce(((e,t)=>{const n=function(e){if(gN[e])return gN[e];const t=e.split(".");if("blocks"===t?.[0]){const e=mN()?.[t[1]];return e||t[1]}return"elements"===t?.[0]?gN[t[1]]||t[1]:void 0}(t);return n&&e.push([t.split(".")[0],n]),e}),[]);return pN.set(n,r),r}function vN(e,t,n={}){let o=kN(e,t);const r=o.length,{maxResults:i}=n;return r?(i&&r>i&&(o=o.slice(0,i)),Object.entries(o.reduce(((e,t)=>{const n=e[t[0]]||[];return n.includes(t[1])||(e[t[0]]=[...n,t[1]]),e}),{})).map((([e,t])=>{const n=t.length,o=t.join((0,T.__)(", "));switch(e){case"blocks":return(0,T.sprintf)((0,T._n)("%s block.","%s blocks.",n),o);case"elements":return(0,T.sprintf)((0,T._n)("%s element.","%s elements.",n),o);case"settings":return(0,T.sprintf)((0,T.__)("%s settings."),o);case"styles":return(0,T.sprintf)((0,T.__)("%s styles."),o);default:return(0,T.sprintf)((0,T.__)("%s."),o)}}))):hN}function _N(e,t,n){if(null==e||!1===e)return;if(Array.isArray(e))return yN(e,t,n);switch(typeof e){case"string":case"number":return}const{type:o,props:r}=e;switch(o){case h.StrictMode:case h.Fragment:return yN(r.children,t,n);case h.RawHTML:return;case ew.Content:return xN(t,n);case LR:return void t.push(r.value)}switch(typeof o){case"string":return void 0!==r.children?yN(r.children,t,n):void 0;case"function":return _N(o.prototype&&"function"==typeof o.prototype.render?new o(r).render():o(r),t,n)}}function yN(e,...t){e=Array.isArray(e)?e:[e];for(let n=0;n<e.length;n++)_N(e[n],...t)}function xN(e,t){for(let n=0;n<t.length;n++){const{name:o,attributes:r,innerBlocks:i}=t[n];_N((0,p.getSaveElement)(o,r,(0,d.jsx)(ew.Content,{})),e,i)}}const SN=[{value:"fill",label:(0,T._x)("Fill","Scale option for dimensions control"),help:(0,T.__)("Fill the space by stretching the content.")},{value:"contain",label:(0,T._x)("Contain","Scale option for dimensions control"),help:(0,T.__)("Fit the content to the space without clipping.")},{value:"cover",label:(0,T._x)("Cover","Scale option for dimensions control"),help:(0,T.__)("Fill the space by clipping what doesn't fit.")},{value:"none",label:(0,T._x)("None","Scale option for dimensions control"),help:(0,T.__)("Do not adjust the sizing of the content. Content that is too large will be clipped, and content that is too small will have additional padding.")},{value:"scale-down",label:(0,T._x)("Scale down","Scale option for dimensions control"),help:(0,T.__)("Scale down the content to fit the space if it is too big. Content that is too small will have additional padding.")}];function wN({panelId:e,value:t,onChange:n,options:o=SN,defaultValue:r=SN[0].value,isShownByDefault:i=!0}){const s=t??"fill",l=(0,h.useMemo)((()=>o.reduce(((e,t)=>(e[t.value]=t.help,e)),{})),[o]);return(0,d.jsx)(ws.__experimentalToolsPanelItem,{label:(0,T.__)("Scale"),isShownByDefault:i,hasValue:()=>s!==r,onDeselect:()=>n(r),panelId:e,children:(0,d.jsx)(ws.__experimentalToggleGroupControl,{__nextHasNoMarginBottom:!0,label:(0,T.__)("Scale"),isBlock:!0,help:l[s],value:s,onChange:n,size:"__unstable-large",children:o.map((e=>(0,d.jsx)(ws.__experimentalToggleGroupControlOption,{...e},e.value)))})})}function CN(){return CN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},CN.apply(null,arguments)}function BN(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var IN=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|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)-.*))$/,jN=BN((function(e){return IN.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));var EN=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}(),TN=Math.abs,MN=String.fromCharCode,PN=Object.assign;function RN(e){return e.trim()}function AN(e,t,n){return e.replace(t,n)}function NN(e,t){return e.indexOf(t)}function LN(e,t){return 0|e.charCodeAt(t)}function DN(e,t,n){return e.slice(t,n)}function ON(e){return e.length}function zN(e){return e.length}function VN(e,t){return t.push(e),e}var FN=1,HN=1,UN=0,GN=0,$N=0,WN="";function KN(e,t,n,o,r,i,s){return{value:e,root:t,parent:n,type:o,props:r,children:i,line:FN,column:HN,length:s,return:""}}function ZN(e,t){return PN(KN("",null,null,"",null,null,0),e,{length:-e.length},t)}function qN(){return $N=GN>0?LN(WN,--GN):0,HN--,10===$N&&(HN=1,FN--),$N}function YN(){return $N=GN<UN?LN(WN,GN++):0,HN++,10===$N&&(HN=1,FN++),$N}function XN(){return LN(WN,GN)}function QN(){return GN}function JN(e,t){return DN(WN,e,t)}function eL(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function tL(e){return FN=HN=1,UN=ON(WN=e),GN=0,[]}function nL(e){return WN="",e}function oL(e){return RN(JN(GN-1,sL(91===e?e+2:40===e?e+1:e)))}function rL(e){for(;($N=XN())&&$N<33;)YN();return eL(e)>2||eL($N)>3?"":" "}function iL(e,t){for(;--t&&YN()&&!($N<48||$N>102||$N>57&&$N<65||$N>70&&$N<97););return JN(e,QN()+(t<6&&32==XN()&&32==YN()))}function sL(e){for(;YN();)switch($N){case e:return GN;case 34:case 39:34!==e&&39!==e&&sL($N);break;case 40:41===e&&sL(e);break;case 92:YN()}return GN}function lL(e,t){for(;YN()&&e+$N!==57&&(e+$N!==84||47!==XN()););return"/*"+JN(t,GN-1)+"*"+MN(47===e?e:YN())}function aL(e){for(;!eL(XN());)YN();return JN(e,GN)}var cL="-ms-",uL="-moz-",dL="-webkit-",pL="comm",hL="rule",gL="decl",mL="@keyframes";function fL(e,t){for(var n="",o=zN(e),r=0;r<o;r++)n+=t(e[r],r,e,t)||"";return n}function bL(e,t,n,o){switch(e.type){case"@import":case gL:return e.return=e.return||e.value;case pL:return"";case mL:return e.return=e.value+"{"+fL(e.children,o)+"}";case hL:e.value=e.props.join(",")}return ON(n=fL(e.children,o))?e.return=e.value+"{"+n+"}":""}function kL(e){return nL(vL("",null,null,null,[""],e=tL(e),0,[0],e))}function vL(e,t,n,o,r,i,s,l,a){for(var c=0,u=0,d=s,p=0,h=0,g=0,m=1,f=1,b=1,k=0,v="",_=r,y=i,x=o,S=v;f;)switch(g=k,k=YN()){case 40:if(108!=g&&58==LN(S,d-1)){-1!=NN(S+=AN(oL(k),"&","&\f"),"&\f")&&(b=-1);break}case 34:case 39:case 91:S+=oL(k);break;case 9:case 10:case 13:case 32:S+=rL(g);break;case 92:S+=iL(QN()-1,7);continue;case 47:switch(XN()){case 42:case 47:VN(yL(lL(YN(),QN()),t,n),a);break;default:S+="/"}break;case 123*m:l[c++]=ON(S)*b;case 125*m:case 59:case 0:switch(k){case 0:case 125:f=0;case 59+u:h>0&&ON(S)-d&&VN(h>32?xL(S+";",o,n,d-1):xL(AN(S," ","")+";",o,n,d-2),a);break;case 59:S+=";";default:if(VN(x=_L(S,t,n,c,u,r,l,v,_=[],y=[],d),i),123===k)if(0===u)vL(S,t,x,x,_,i,d,l,y);else switch(99===p&&110===LN(S,3)?100:p){case 100:case 109:case 115:vL(e,x,x,o&&VN(_L(e,x,x,0,0,r,l,v,r,_=[],d),y),r,y,d,l,o?_:y);break;default:vL(S,x,x,x,[""],y,0,l,y)}}c=u=h=0,m=b=1,v=S="",d=s;break;case 58:d=1+ON(S),h=g;default:if(m<1)if(123==k)--m;else if(125==k&&0==m++&&125==qN())continue;switch(S+=MN(k),k*m){case 38:b=u>0?1:(S+="\f",-1);break;case 44:l[c++]=(ON(S)-1)*b,b=1;break;case 64:45===XN()&&(S+=oL(YN())),p=XN(),u=d=ON(v=S+=aL(QN())),k++;break;case 45:45===g&&2==ON(S)&&(m=0)}}return i}function _L(e,t,n,o,r,i,s,l,a,c,u){for(var d=r-1,p=0===r?i:[""],h=zN(p),g=0,m=0,f=0;g<o;++g)for(var b=0,k=DN(e,d+1,d=TN(m=s[g])),v=e;b<h;++b)(v=RN(m>0?p[b]+" "+k:AN(k,/&\f/g,p[b])))&&(a[f++]=v);return KN(e,t,n,0===r?hL:l,a,c,u)}function yL(e,t,n){return KN(e,t,n,pL,MN($N),DN(e,2,-2),0)}function xL(e,t,n,o){return KN(e,t,n,gL,DN(e,0,o),DN(e,o+1,-1),o)}var SL=function(e,t,n){for(var o=0,r=0;o=r,r=XN(),38===o&&12===r&&(t[n]=1),!eL(r);)YN();return JN(e,GN)},wL=function(e,t){return nL(function(e,t){var n=-1,o=44;do{switch(eL(o)){case 0:38===o&&12===XN()&&(t[n]=1),e[n]+=SL(GN-1,t,n);break;case 2:e[n]+=oL(o);break;case 4:if(44===o){e[++n]=58===XN()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=MN(o)}}while(o=YN());return e}(tL(e),t))},CL=new WeakMap,BL=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,o=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||CL.get(n))&&!o){CL.set(e,!0);for(var r=[],i=wL(t,r),s=n.props,l=0,a=0;l<i.length;l++)for(var c=0;c<s.length;c++,a++)e.props[a]=r[l]?i[l].replace(/&\f/g,s[c]):s[c]+" "+i[l]}}},IL=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function jL(e,t){switch(function(e,t){return 45^LN(e,0)?(((t<<2^LN(e,0))<<2^LN(e,1))<<2^LN(e,2))<<2^LN(e,3):0}(e,t)){case 5103:return dL+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return dL+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return dL+e+uL+e+cL+e+e;case 6828:case 4268:return dL+e+cL+e+e;case 6165:return dL+e+cL+"flex-"+e+e;case 5187:return dL+e+AN(e,/(\w+).+(:[^]+)/,dL+"box-$1$2"+cL+"flex-$1$2")+e;case 5443:return dL+e+cL+"flex-item-"+AN(e,/flex-|-self/,"")+e;case 4675:return dL+e+cL+"flex-line-pack"+AN(e,/align-content|flex-|-self/,"")+e;case 5548:return dL+e+cL+AN(e,"shrink","negative")+e;case 5292:return dL+e+cL+AN(e,"basis","preferred-size")+e;case 6060:return dL+"box-"+AN(e,"-grow","")+dL+e+cL+AN(e,"grow","positive")+e;case 4554:return dL+AN(e,/([^-])(transform)/g,"$1"+dL+"$2")+e;case 6187:return AN(AN(AN(e,/(zoom-|grab)/,dL+"$1"),/(image-set)/,dL+"$1"),e,"")+e;case 5495:case 3959:return AN(e,/(image-set\([^]*)/,dL+"$1$`$1");case 4968:return AN(AN(e,/(.+:)(flex-)?(.*)/,dL+"box-pack:$3"+cL+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+dL+e+e;case 4095:case 3583:case 4068:case 2532:return AN(e,/(.+)-inline(.+)/,dL+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(ON(e)-1-t>6)switch(LN(e,t+1)){case 109:if(45!==LN(e,t+4))break;case 102:return AN(e,/(.+:)(.+)-([^]+)/,"$1"+dL+"$2-$3$1"+uL+(108==LN(e,t+3)?"$3":"$2-$3"))+e;case 115:return~NN(e,"stretch")?jL(AN(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==LN(e,t+1))break;case 6444:switch(LN(e,ON(e)-3-(~NN(e,"!important")&&10))){case 107:return AN(e,":",":"+dL)+e;case 101:return AN(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+dL+(45===LN(e,14)?"inline-":"")+"box$3$1"+dL+"$2$3$1"+cL+"$2box$3")+e}break;case 5936:switch(LN(e,t+11)){case 114:return dL+e+cL+AN(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return dL+e+cL+AN(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return dL+e+cL+AN(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return dL+e+cL+e+e}return e}var EL=[function(e,t,n,o){if(e.length>-1&&!e.return)switch(e.type){case gL:e.return=jL(e.value,e.length);break;case mL:return fL([ZN(e,{value:AN(e.value,"@","@"+dL)})],o);case hL:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return fL([ZN(e,{props:[AN(t,/:(read-\w+)/,":-moz-$1")]})],o);case"::placeholder":return fL([ZN(e,{props:[AN(t,/:(plac\w+)/,":"+dL+"input-$1")]}),ZN(e,{props:[AN(t,/:(plac\w+)/,":-moz-$1")]}),ZN(e,{props:[AN(t,/:(plac\w+)/,cL+"input-$1")]})],o)}return""}))}}];const TL=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var o=e.stylisPlugins||EL;var r,i,s={},l=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)s[t[n]]=!0;l.push(e)}));var a,c,u,d,p=[bL,(d=function(e){a.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],h=(c=[BL,IL].concat(o,p),u=zN(c),function(e,t,n,o){for(var r="",i=0;i<u;i++)r+=c[i](e,t,n,o)||"";return r});i=function(e,t,n,o){a=n,fL(kL(e?e+"{"+t.styles+"}":t.styles),h),o&&(g.inserted[t.name]=!0)};var g={key:t,sheet:new EN({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:i};return g.sheet.hydrate(l),g};const ML=function(e){for(var t,n=0,o=0,r=e.length;r>=4;++o,r-=4)t=1540483477*(65535&(t=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(r){case 3:n^=(255&e.charCodeAt(o+2))<<16;case 2:n^=(255&e.charCodeAt(o+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(o)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)};const PL={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};var RL=/[A-Z]|^ms/g,AL=/_EMO_([^_]+?)_([^]*?)_EMO_/g,NL=function(e){return 45===e.charCodeAt(1)},LL=function(e){return null!=e&&"boolean"!=typeof e},DL=BN((function(e){return NL(e)?e:e.replace(RL,"-$&").toLowerCase()})),OL=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(AL,(function(e,t,n){return VL={name:t,styles:n,next:VL},t}))}return 1===PL[e]||NL(e)||"number"!=typeof t||0===t?t:t+"px"};function zL(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 VL={name:n.name,styles:n.styles,next:VL},n.name;if(void 0!==n.styles){var o=n.next;if(void 0!==o)for(;void 0!==o;)VL={name:o.name,styles:o.styles,next:VL},o=o.next;return n.styles+";"}return function(e,t,n){var o="";if(Array.isArray(n))for(var r=0;r<n.length;r++)o+=zL(e,t,n[r])+";";else for(var i in n){var s=n[i];if("object"!=typeof s)null!=t&&void 0!==t[s]?o+=i+"{"+t[s]+"}":LL(s)&&(o+=DL(i)+":"+OL(i,s)+";");else if(!Array.isArray(s)||"string"!=typeof s[0]||null!=t&&void 0!==t[s[0]]){var l=zL(e,t,s);switch(i){case"animation":case"animationName":o+=DL(i)+":"+l+";";break;default:o+=i+"{"+l+"}"}}else for(var a=0;a<s.length;a++)LL(s[a])&&(o+=DL(i)+":"+OL(i,s[a])+";")}return o}(e,t,n);case"function":if(void 0!==e){var r=VL,i=n(e);return VL=r,zL(e,t,i)}}if(null==t)return n;var s=t[n];return void 0!==s?s:n}var VL,FL=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var HL=!!ic.useInsertionEffect&&ic.useInsertionEffect,UL=HL||function(e){return e()},GL=(0,ic.createContext)("undefined"!=typeof HTMLElement?TL({key:"css"}):null);GL.Provider;var $L=function(e){return(0,ic.forwardRef)((function(t,n){var o=(0,ic.useContext)(GL);return e(t,o,n)}))},WL=(0,ic.createContext)({});var KL=function(e,t,n){var o=e.key+"-"+t.name;!1===n&&void 0===e.registered[o]&&(e.registered[o]=t.styles)},ZL=jN,qL=function(e){return"theme"!==e},YL=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?ZL:qL},XL=function(e,t,n){var o;if(t){var r=t.shouldForwardProp;o=e.__emotion_forwardProp&&r?function(t){return e.__emotion_forwardProp(t)&&r(t)}:r}return"function"!=typeof o&&n&&(o=e.__emotion_forwardProp),o},QL=function(e){var t=e.cache,n=e.serialized,o=e.isStringTag;KL(t,n,o);UL((function(){return function(e,t,n){KL(e,t,n);var o=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var r=t;do{e.insert(t===r?"."+o:"",r,e.sheet,!0),r=r.next}while(void 0!==r)}}(t,n,o)}));return null};const JL=function e(t,n){var o,r,i=t.__emotion_real===t,s=i&&t.__emotion_base||t;void 0!==n&&(o=n.label,r=n.target);var l=XL(t,n,i),a=l||YL(s),c=!a("as");return function(){var u=arguments,d=i&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==o&&d.push("label:"+o+";"),null==u[0]||void 0===u[0].raw)d.push.apply(d,u);else{0,d.push(u[0][0]);for(var p=u.length,h=1;h<p;h++)d.push(u[h],u[0][h])}var g=$L((function(e,t,n){var o=c&&e.as||s,i="",u=[],p=e;if(null==e.theme){for(var h in p={},e)p[h]=e[h];p.theme=(0,ic.useContext)(WL)}"string"==typeof e.className?i=function(e,t,n){var o="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):o+=n+" "})),o}(t.registered,u,e.className):null!=e.className&&(i=e.className+" ");var g=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,r="";VL=void 0;var i=e[0];null==i||void 0===i.raw?(o=!1,r+=zL(n,t,i)):r+=i[0];for(var s=1;s<e.length;s++)r+=zL(n,t,e[s]),o&&(r+=i[s]);FL.lastIndex=0;for(var l,a="";null!==(l=FL.exec(r));)a+="-"+l[1];return{name:ML(r)+a,styles:r,next:VL}}(d.concat(u),t.registered,p);i+=t.key+"-"+g.name,void 0!==r&&(i+=" "+r);var m=c&&void 0===l?YL(o):a,f={};for(var b in e)c&&"as"===b||m(b)&&(f[b]=e[b]);return f.className=i,f.ref=n,(0,ic.createElement)(ic.Fragment,null,(0,ic.createElement)(QL,{cache:t,serialized:g,isStringTag:"string"==typeof o}),(0,ic.createElement)(o,f))}));return g.displayName=void 0!==o?o:"Styled("+("string"==typeof s?s:s.displayName||s.name||"Component")+")",g.defaultProps=t.defaultProps,g.__emotion_real=g,g.__emotion_base=s,g.__emotion_styles=d,g.__emotion_forwardProp=l,Object.defineProperty(g,"toString",{value:function(){return"."+r}}),g.withComponent=function(t,o){return e(t,CN({},n,o,{shouldForwardProp:XL(g,o,!0)})).apply(void 0,d)},g}};var eD=JL.bind();["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","marquee","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"].forEach((function(e){eD[e]=eD(e)}));const tD=eD(ws.__experimentalToolsPanelItem)`
+*/o=[e,t],n=function(e,t){"use strict";var n,o,r="function"==typeof Map?new Map:(n=[],o=[],{has:function(e){return n.indexOf(e)>-1},get:function(e){return o[n.indexOf(e)]},set:function(e,t){-1===n.indexOf(e)&&(n.push(e),o.push(t))},delete:function(e){var t=n.indexOf(e);t>-1&&(n.splice(t,1),o.splice(t,1))}}),i=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(e){i=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}function s(e){if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!r.has(e)){var t=null,n=null,o=null,s=function(){e.clientWidth!==n&&p()},l=function(t){window.removeEventListener("resize",s,!1),e.removeEventListener("input",p,!1),e.removeEventListener("keyup",p,!1),e.removeEventListener("autosize:destroy",l,!1),e.removeEventListener("autosize:update",p,!1),Object.keys(t).forEach((function(n){e.style[n]=t[n]})),r.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",l,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",p,!1),window.addEventListener("resize",s,!1),e.addEventListener("input",p,!1),e.addEventListener("autosize:update",p,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",r.set(e,{destroy:l,update:p}),a()}function a(){var n=window.getComputedStyle(e,null);"vertical"===n.resize?e.style.resize="none":"both"===n.resize&&(e.style.resize="horizontal"),t="content-box"===n.boxSizing?-(parseFloat(n.paddingTop)+parseFloat(n.paddingBottom)):parseFloat(n.borderTopWidth)+parseFloat(n.borderBottomWidth),isNaN(t)&&(t=0),p()}function c(t){var n=e.style.width;e.style.width="0px",e.offsetWidth,e.style.width=n,e.style.overflowY=t}function u(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push({node:e.parentNode,scrollTop:e.parentNode.scrollTop}),e=e.parentNode;return t}function d(){if(0!==e.scrollHeight){var o=u(e),r=document.documentElement&&document.documentElement.scrollTop;e.style.height="",e.style.height=e.scrollHeight+t+"px",n=e.clientWidth,o.forEach((function(e){e.node.scrollTop=e.scrollTop})),r&&(document.documentElement.scrollTop=r)}}function p(){d();var t=Math.round(parseFloat(e.style.height)),n=window.getComputedStyle(e,null),r="content-box"===n.boxSizing?Math.round(parseFloat(n.height)):e.offsetHeight;if(r<t?"hidden"===n.overflowY&&(c("scroll"),d(),r="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight):"hidden"!==n.overflowY&&(c("hidden"),d(),r="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight),o!==r){o=r;var s=i("autosize:resized");try{e.dispatchEvent(s)}catch(e){}}}}function l(e){var t=r.get(e);t&&t.destroy()}function a(e){var t=r.get(e);t&&t.update()}var c=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?((c=function(e){return e}).destroy=function(e){return e},c.update=function(e){return e}):((c=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],(function(e){return s(e,t)})),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],l),e},c.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],a),e}),t.default=c,e.exports=t.default},void 0===(r="function"==typeof n?n.apply(t,o):n)||(e.exports=r)},4462: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)}),i=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},s=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 l=n(1609),a=n(5826),c=n(4306),u=n(461),d="autosize:resized",p=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&&c(e.textarea)})):this.textarea&&c(this.textarea),this.textarea&&this.textarea.addEventListener(d,this.onResize)},t.prototype.componentWillUnmount=function(){this.textarea&&(this.textarea.removeEventListener(d,this.onResize),c.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=s(t,["onResize","maxRows","onChange","style","innerRef","children"]),c=this.state.lineHeight,u=n&&c?c*n:null;return l.createElement("textarea",i({},a,{onChange:this.onChange,style:u?i({},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&&c.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}(l.Component);t.TextareaAutosize=l.forwardRef((function(e,t){return l.createElement(p,i({},e,{innerRef:t}))}))},4725:e=>{function t(e,t){var o,r,i=e.type,s=e.value;return t&&void 0!==(r=t(e))?r:"word"===i||"space"===i?s:"string"===i?(o=e.quote||"")+s+(e.unclosed?"":o):"comment"===i?"/*"+s+(e.unclosed?"":"*/"):"div"===i?(e.before||"")+s+(e.after||""):Array.isArray(e.nodes)?(o=n(e.nodes,t),"function"!==i?o:s+"("+(e.before||"")+o+(e.after||"")+(e.unclosed?"":")")):s}function n(e,n){var o,r;if(Array.isArray(e)){for(o="",r=e.length-1;~r;r-=1)o=t(e[r],n)+o;return o}return t(e,n)}e.exports=n},5042:e=>{e.exports={nanoid:(e=21)=>{let t="",n=0|e;for(;n--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},customAlphabet:(e,t=21)=>(n=t)=>{let o="",r=0|n;for(;r--;)o+=e[Math.random()*e.length|0];return o}}},5215:e=>{"use strict";e.exports=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 o,r,i;if(Array.isArray(t)){if((o=t.length)!=n.length)return!1;for(r=o;0!=r--;)if(!e(t[r],n[r]))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((o=(i=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(r=o;0!=r--;)if(!Object.prototype.hasOwnProperty.call(n,i[r]))return!1;for(r=o;0!=r--;){var s=i[r];if(!e(t[s],n[s]))return!1}return!0}return t!=t&&n!=n}},5380:(e,t,n)=>{"use strict";let{nanoid:o}=n(5042),{isAbsolute:r,resolve:i}=n(197),{SourceMapConsumer:s,SourceMapGenerator:l}=n(1866),{fileURLToPath:a,pathToFileURL:c}=n(2739),u=n(356),d=n(5696),p=n(9746),h=Symbol("lineToIndexCache"),g=Boolean(s&&l),m=Boolean(i&&r);function f(e){if(e[h])return e[h];let t=e.css.split("\n"),n=new Array(t.length),o=0;for(let e=0,r=t.length;e<r;e++)n[e]=o,o+=t[e].length+1;return e[h]=n,n}class b{get from(){return this.file||this.id}constructor(e,t={}){if(null==e||"object"==typeof e&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),"\ufeff"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,t.document&&(this.document=t.document.toString()),t.from&&(!m||/^\w+:\/\//.test(t.from)||r(t.from)?this.file=t.from:this.file=i(t.from)),m&&g){let e=new d(this.css,t);if(e.text){this.map=e;let t=e.consumer().file;!this.file&&t&&(this.file=this.mapResolve(t))}}this.file||(this.id="<input css "+o(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,n,o={}){let r,i,s,l,a;if(t&&"object"==typeof t){let e=t,o=n;if("number"==typeof e.offset){l=e.offset;let o=this.fromOffset(l);t=o.line,n=o.col}else t=e.line,n=e.column,l=this.fromLineAndColumn(t,n);if("number"==typeof o.offset){s=o.offset;let e=this.fromOffset(s);i=e.line,r=e.col}else i=o.line,r=o.column,s=this.fromLineAndColumn(o.line,o.column)}else if(n)l=this.fromLineAndColumn(t,n);else{l=t;let e=this.fromOffset(l);t=e.line,n=e.col}let d=this.origin(t,n,i,r);return a=d?new u(e,void 0===d.endLine?d.line:{column:d.column,line:d.line},void 0===d.endLine?d.column:{column:d.endColumn,line:d.endLine},d.source,d.file,o.plugin):new u(e,void 0===i?t:{column:n,line:t},void 0===i?n:{column:r,line:i},this.css,this.file,o.plugin),a.input={column:n,endColumn:r,endLine:i,endOffset:s,line:t,offset:l,source:this.css},this.file&&(c&&(a.input.url=c(this.file).toString()),a.input.file=this.file),a}fromLineAndColumn(e,t){return f(this)[e-1]+t-1}fromOffset(e){let t=f(this),n=0;if(e>=t[t.length-1])n=t.length-1;else{let o,r=t.length-2;for(;n<r;)if(o=n+(r-n>>1),e<t[o])r=o-1;else{if(!(e>=t[o+1])){n=o;break}n=o+1}}return{col:e-t[n]+1,line:n+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:i(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,n,o){if(!this.map)return!1;let i,s,l=this.map.consumer(),u=l.originalPositionFor({column:t,line:e});if(!u.source)return!1;"number"==typeof n&&(i=l.originalPositionFor({column:o,line:n})),s=r(u.source)?c(u.source):new URL(u.source,this.map.consumer().sourceRoot||c(this.map.mapFile));let d={column:u.column,endColumn:i&&i.column,endLine:i&&i.line,line:u.line,url:s.toString()};if("file:"===s.protocol){if(!a)throw new Error("file: protocol is not available in this PostCSS build");d.file=a(s)}let p=l.sourceContentFor(u.source);return p&&(d.source=p),d}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])null!=this[t]&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}}e.exports=b,b.default=b,p&&p.registerInput&&p.registerInput(b)},5404:(e,t,n)=>{const o=n(1544);e.exports=e=>{const t=Object.assign({skipHostRelativeUrls:!0},e);return{postcssPlugin:"rebaseUrl",Declaration(n){const r=o(n.value);let i=!1;r.walk((n=>{if("function"!==n.type||"url"!==n.value)return;const o=n.nodes[0].value,r=new URL(o,e.rootUrl);return r.pathname===o&&t.skipHostRelativeUrls||(n.nodes[0].value=r.toString(),i=!0),!1})),i&&(n.value=o.stringify(r))}}},e.exports.postcss=!0},5417:(e,t)=>{"use strict";function n(){}function o(e,t,n,o,r){for(var i=0,s=t.length,l=0,a=0;i<s;i++){var c=t[i];if(c.removed){if(c.value=e.join(o.slice(a,a+c.count)),a+=c.count,i&&t[i-1].added){var u=t[i-1];t[i-1]=t[i],t[i]=u}}else{if(!c.added&&r){var d=n.slice(l,l+c.count);d=d.map((function(e,t){var n=o[a+t];return n.length>e.length?n:e})),c.value=e.join(d)}else c.value=e.join(n.slice(l,l+c.count));l+=c.count,c.added||(a+=c.count)}}var p=t[s-1];return s>1&&"string"==typeof p.value&&(p.added||p.removed)&&e.equals("",p.value)&&(t[s-2].value+=p.value,t.pop()),t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n,n.prototype={diff:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.callback;"function"==typeof n&&(r=n,n={}),this.options=n;var i=this;function s(e){return r?(setTimeout((function(){r(void 0,e)}),0),!0):e}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e));var l=(t=this.removeEmpty(this.tokenize(t))).length,a=e.length,c=1,u=l+a,d=[{newPos:-1,components:[]}],p=this.extractCommon(d[0],t,e,0);if(d[0].newPos+1>=l&&p+1>=a)return s([{value:this.join(t),count:t.length}]);function h(){for(var n=-1*c;n<=c;n+=2){var r=void 0,u=d[n-1],p=d[n+1],h=(p?p.newPos:0)-n;u&&(d[n-1]=void 0);var g=u&&u.newPos+1<l,m=p&&0<=h&&h<a;if(g||m){if(!g||m&&u.newPos<p.newPos?(r={newPos:(f=p).newPos,components:f.components.slice(0)},i.pushComponent(r.components,void 0,!0)):((r=u).newPos++,i.pushComponent(r.components,!0,void 0)),h=i.extractCommon(r,t,e,n),r.newPos+1>=l&&h+1>=a)return s(o(i,r.components,t,e,i.useLongestToken));d[n]=r}else d[n]=void 0}var f;c++}if(r)!function e(){setTimeout((function(){if(c>u)return r();h()||e()}),0)}();else for(;c<=u;){var g=h();if(g)return g}},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,i=n.length,s=e.newPos,l=s-o,a=0;s+1<r&&l+1<i&&this.equals(t[s+1],n[l+1]);)s++,l++,a++;return a&&e.components.push({count:a}),e.newPos=s,l},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("")}}},5696:(e,t,n)=>{"use strict";let{existsSync:o,readFileSync:r}=n(9977),{dirname:i,join:s}=n(197),{SourceMapConsumer:l,SourceMapGenerator:a}=n(1866);class c{constructor(e,t){if(!1===t.map)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let n=t.map?t.map.prev:void 0,o=this.loadMap(t.from,n);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=i(this.mapFile)),o&&(this.text=o)}consumer(){return this.consumerCache||(this.consumerCache=new l(this.text)),this.consumerCache}decodeInline(e){let t=e.match(/^data:application\/json;charset=utf-?8,/)||e.match(/^data:application\/json,/);if(t)return decodeURIComponent(e.substr(t[0].length));let n=e.match(/^data:application\/json;charset=utf-?8;base64,/)||e.match(/^data:application\/json;base64,/);if(n)return o=e.substr(n[0].length),Buffer?Buffer.from(o,"base64").toString():window.atob(o);var o;let r=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+r)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return"object"==typeof e&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/g);if(!t)return;let n=e.lastIndexOf(t.pop()),o=e.indexOf("*/",n);n>-1&&o>-1&&(this.annotation=this.getAnnotationURL(e.substring(n,o)))}loadFile(e){if(this.root=i(e),o(e))return this.mapFile=e,r(e,"utf-8").toString().trim()}loadMap(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"!=typeof t){if(t instanceof l)return a.fromSourceMap(t).toString();if(t instanceof a)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}{let n=t(e);if(n){let e=this.loadFile(n);if(!e)throw new Error("Unable to load previous source map: "+n.toString());return e}}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let t=this.annotation;return e&&(t=s(i(e),t)),this.loadFile(t)}}}startWith(e,t){return!!e&&e.substr(0,t.length)===t}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}e.exports=c,c.default=c},5776:e=>{"use strict";class t{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let e=t.node.rangeBy(t);this.line=e.start.line,this.column=e.start.column,this.endLine=e.end.line,this.endColumn=e.end.column}for(let e in t)this[e]=t[e]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}e.exports=t,t.default=t},5826:(e,t,n)=>{e.exports=n(628)()},6109:e=>{e.exports=function(e,t,n){return((n=window.getComputedStyle)?n(e):e.currentStyle)[t.replace(/-(\w)/gi,(function(e,t){return t.toUpperCase()}))]}},6589:(e,t,n)=>{"use strict";let o=n(7490);class r extends o{constructor(e){super(e),this.type="comment"}}e.exports=r,r.default=r},7191:(e,t,n)=>{"use strict";var o=n(2213),r=n(1087);function i(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}}i.getEventType=function(){return o.firefox()?"DOMMouseScroll":r("wheel")?"wheel":"mousewheel"},e.exports=i},7374:e=>{"use strict";let t={comma:e=>t.split(e,[","],!0),space:e=>t.split(e,[" ","\n","\t"]),split(e,t,n){let o=[],r="",i=!1,s=0,l=!1,a="",c=!1;for(let n of e)c?c=!1:"\\"===n?c=!0:l?n===a&&(l=!1):'"'===n||"'"===n?(l=!0,a=n):"("===n?s+=1:")"===n?s>0&&(s-=1):0===s&&t.includes(n)&&(i=!0),i?(""!==r&&o.push(r.trim()),r="",i=!1):r+=n;return(n||""!==r)&&o.push(r.trim()),o}};e.exports=t,t.default=t},7490:(e,t,n)=>{"use strict";let o=n(356),r=n(346),i=n(633),{isClean:s,my:l}=n(1381);function a(e,t){let n=new e.constructor;for(let o in e){if(!Object.prototype.hasOwnProperty.call(e,o))continue;if("proxyCache"===o)continue;let r=e[o],i=typeof r;"parent"===o&&"object"===i?t&&(n[o]=t):"source"===o?n[o]=r:Array.isArray(r)?n[o]=r.map((e=>a(e,n))):("object"===i&&null!==r&&(r=a(r)),n[o]=r)}return n}function c(e,t){if(t&&void 0!==t.offset)return t.offset;let n=1,o=1,r=0;for(let i=0;i<e.length;i++){if(o===t.line&&n===t.column){r=i;break}"\n"===e[i]?(n=1,o+=1):n+=1}return r}class u{get proxyOf(){return this}constructor(e={}){this.raws={},this[s]=!1,this[l]=!0;for(let t in e)if("nodes"===t){this.nodes=[];for(let n of e[t])"function"==typeof n.clone?this.append(n.clone()):this.append(n)}else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=a(this);for(let n in e)t[n]=e[n];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:n,start:o}=this.rangeBy(t);return this.source.input.error(e,{column:o.column,line:o.line},{column:n.column,line:n.line},t)}return new o(e)}getProxyProcessor(){return{get:(e,t)=>"proxyOf"===t?e:"root"===t?()=>e.root().toProxy():e[t],set:(e,t,n)=>(e[t]===n||(e[t]=n,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0)}}markClean(){this[s]=!0}markDirty(){if(this[s]){this[s]=!1;let e=this;for(;e=e.parent;)e[s]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e={}){let t=this.source.start;if(e.index)t=this.positionInside(e.index);else if(e.word){let n="document"in this.source.input?this.source.input.document:this.source.input.css,o=n.slice(c(n,this.source.start),c(n,this.source.end)).indexOf(e.word);-1!==o&&(t=this.positionInside(o))}return t}positionInside(e){let t=this.source.start.column,n=this.source.start.line,o="document"in this.source.input?this.source.input.document:this.source.input.css,r=c(o,this.source.start),i=r+e;for(let e=r;e<i;e++)"\n"===o[e]?(t=1,n+=1):t+=1;return{column:t,line:n,offset:i}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e={}){let t="document"in this.source.input?this.source.input.document:this.source.input.css,n={column:this.source.start.column,line:this.source.start.line,offset:c(t,this.source.start)},o=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:"number"==typeof this.source.end.offset?this.source.end.offset:c(t,this.source.end)+1}:{column:n.column+1,line:n.line,offset:n.offset+1};if(e.word){let r=t.slice(c(t,this.source.start),c(t,this.source.end)).indexOf(e.word);-1!==r&&(n=this.positionInside(r),o=this.positionInside(r+e.word.length))}else e.start?n={column:e.start.column,line:e.start.line,offset:c(t,e.start)}:e.index&&(n=this.positionInside(e.index)),e.end?o={column:e.end.column,line:e.end.line,offset:c(t,e.end)}:"number"==typeof e.endIndex?o=this.positionInside(e.endIndex):e.index&&(o=this.positionInside(e.index+1));return(o.line<n.line||o.line===n.line&&o.column<=n.column)&&(o={column:n.column+1,line:n.line,offset:n.offset+1}),{end:o,start:n}}raw(e,t){return(new r).raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,n=!1;for(let o of e)o===this?n=!0:n?(this.parent.insertAfter(t,o),t=o):this.parent.insertBefore(t,o);n||this.remove()}return this}root(){let e=this;for(;e.parent&&"document"!==e.parent.type;)e=e.parent;return e}toJSON(e,t){let n={},o=null==t;t=t||new Map;let r=0;for(let e in this){if(!Object.prototype.hasOwnProperty.call(this,e))continue;if("parent"===e||"proxyCache"===e)continue;let o=this[e];if(Array.isArray(o))n[e]=o.map((e=>"object"==typeof e&&e.toJSON?e.toJSON(null,t):e));else if("object"==typeof o&&o.toJSON)n[e]=o.toJSON(null,t);else if("source"===e){if(null==o)continue;let i=t.get(o.input);null==i&&(i=r,t.set(o.input,r),r++),n[e]={end:o.end,inputId:i,start:o.start}}else n[e]=o}return o&&(n.inputs=[...t.keys()].map((e=>e.toJSON()))),n}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=i){e.stringify&&(e=e.stringify);let t="";return e(this,(e=>{t+=e})),t}warn(e,t,n={}){let o={node:this};for(let e in n)o[e]=n[e];return e.warn(t,o)}}e.exports=u,u.default=u},7520:(e,t,n)=>{e.exports=n(7191)},7661:(e,t,n)=>{"use strict";let o=n(1670),r=n(4295);const i=n(9055);let s=n(633);n(3122);class l{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,t=r;try{e=t(this._css,this._opts)}catch(e){this.error=e}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(e,t,n){let r;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=n,this._map=void 0;let l=s;this.result=new i(this._processor,r,this._opts),this.result.css=t;let a=this;Object.defineProperty(this.result,"root",{get:()=>a.root});let c=new o(l,r,this._opts,t);if(c.isMap()){let[e,t]=c.generate();e&&(this.result.css=e),t&&(this.result.map=t)}else c.clearAnnotation(),this.result.css=c.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return this.async().then(e,t)}toString(){return this._css}warnings(){return[]}}e.exports=l,l.default=l},7734:e=>{"use strict";e.exports=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 o,r,i;if(Array.isArray(t)){if((o=t.length)!=n.length)return!1;for(r=o;0!=r--;)if(!e(t[r],n[r]))return!1;return!0}if(t instanceof Map&&n instanceof Map){if(t.size!==n.size)return!1;for(r of t.entries())if(!n.has(r[0]))return!1;for(r of t.entries())if(!e(r[1],n.get(r[0])))return!1;return!0}if(t instanceof Set&&n instanceof Set){if(t.size!==n.size)return!1;for(r of t.entries())if(!n.has(r[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(n)){if((o=t.length)!=n.length)return!1;for(r=o;0!=r--;)if(t[r]!==n[r])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((o=(i=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(r=o;0!=r--;)if(!Object.prototype.hasOwnProperty.call(n,i[r]))return!1;for(r=o;0!=r--;){var s=i[r];if(!e(t[s],n[s]))return!1}return!0}return t!=t&&n!=n}},8021:(e,t,n)=>{"use strict";var o;t.JJ=function(e,t,n){return r.diff(e,t,n)};var r=new(((o=n(5417))&&o.__esModule?o:{default:o}).default)},8202:e=>{"use strict";var t=!("undefined"==typeof window||!window.document||!window.document.createElement),n={canUseDOM:t,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:t&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:t&&!!window.screen,isInWorker:!t};e.exports=n},8491:e=>{var t="(".charCodeAt(0),n=")".charCodeAt(0),o="'".charCodeAt(0),r='"'.charCodeAt(0),i="\\".charCodeAt(0),s="/".charCodeAt(0),l=",".charCodeAt(0),a=":".charCodeAt(0),c="*".charCodeAt(0),u="u".charCodeAt(0),d="U".charCodeAt(0),p="+".charCodeAt(0),h=/^[a-f0-9?-]+$/i;e.exports=function(e){for(var g,m,f,b,k,v,_,y,x,S=[],w=e,C=0,B=w.charCodeAt(C),I=w.length,j=[{nodes:S}],E=0,T="",M="",P="";C<I;)if(B<=32){g=C;do{g+=1,B=w.charCodeAt(g)}while(B<=32);b=w.slice(C,g),f=S[S.length-1],B===n&&E?P=b:f&&"div"===f.type?(f.after=b,f.sourceEndIndex+=b.length):B===l||B===a||B===s&&w.charCodeAt(g+1)!==c&&(!x||x&&"function"===x.type&&"calc"!==x.value)?M=b:S.push({type:"space",sourceIndex:C,sourceEndIndex:g,value:b}),C=g}else if(B===o||B===r){g=C,b={type:"string",sourceIndex:C,quote:m=B===o?"'":'"'};do{if(k=!1,~(g=w.indexOf(m,g+1)))for(v=g;w.charCodeAt(v-1)===i;)v-=1,k=!k;else g=(w+=m).length-1,b.unclosed=!0}while(k);b.value=w.slice(C+1,g),b.sourceEndIndex=b.unclosed?g:g+1,S.push(b),C=g+1,B=w.charCodeAt(C)}else if(B===s&&w.charCodeAt(C+1)===c)b={type:"comment",sourceIndex:C,sourceEndIndex:(g=w.indexOf("*/",C))+2},-1===g&&(b.unclosed=!0,g=w.length,b.sourceEndIndex=g),b.value=w.slice(C+2,g),S.push(b),C=g+2,B=w.charCodeAt(C);else if(B!==s&&B!==c||!x||"function"!==x.type||"calc"!==x.value)if(B===s||B===l||B===a)b=w[C],S.push({type:"div",sourceIndex:C-M.length,sourceEndIndex:C+b.length,value:b,before:M,after:""}),M="",C+=1,B=w.charCodeAt(C);else if(t===B){g=C;do{g+=1,B=w.charCodeAt(g)}while(B<=32);if(y=C,b={type:"function",sourceIndex:C-T.length,value:T,before:w.slice(y+1,g)},C=g,"url"===T&&B!==o&&B!==r){g-=1;do{if(k=!1,~(g=w.indexOf(")",g+1)))for(v=g;w.charCodeAt(v-1)===i;)v-=1,k=!k;else g=(w+=")").length-1,b.unclosed=!0}while(k);_=g;do{_-=1,B=w.charCodeAt(_)}while(B<=32);y<_?(b.nodes=C!==_+1?[{type:"word",sourceIndex:C,sourceEndIndex:_+1,value:w.slice(C,_+1)}]:[],b.unclosed&&_+1!==g?(b.after="",b.nodes.push({type:"space",sourceIndex:_+1,sourceEndIndex:g,value:w.slice(_+1,g)})):(b.after=w.slice(_+1,g),b.sourceEndIndex=g)):(b.after="",b.nodes=[]),C=g+1,b.sourceEndIndex=b.unclosed?g:C,B=w.charCodeAt(C),S.push(b)}else E+=1,b.after="",b.sourceEndIndex=C+1,S.push(b),j.push(b),S=b.nodes=[],x=b;T=""}else if(n===B&&E)C+=1,B=w.charCodeAt(C),x.after=P,x.sourceEndIndex+=P.length,P="",E-=1,j[j.length-1].sourceEndIndex=C,j.pop(),S=(x=j[E]).nodes;else{g=C;do{B===i&&(g+=1),g+=1,B=w.charCodeAt(g)}while(g<I&&!(B<=32||B===o||B===r||B===l||B===a||B===s||B===t||B===c&&x&&"function"===x.type&&"calc"===x.value||B===s&&"function"===x.type&&"calc"===x.value||B===n&&E));b=w.slice(C,g),t===B?T=b:u!==b.charCodeAt(0)&&d!==b.charCodeAt(0)||p!==b.charCodeAt(1)||!h.test(b.slice(2))?S.push({type:"word",sourceIndex:C,sourceEndIndex:g,value:b}):S.push({type:"unicode-range",sourceIndex:C,sourceEndIndex:g,value:b}),C=g}else b=w[C],S.push({type:"word",sourceIndex:C-M.length,sourceEndIndex:C+b.length,value:b}),C+=1,B=w.charCodeAt(C);for(C=j.length-1;C;C-=1)j[C].unclosed=!0,j[C].sourceEndIndex=w.length;return j[0].nodes}},9055:(e,t,n)=>{"use strict";let o=n(5776);class r{get content(){return this.css}constructor(e,t,n){this.processor=e,this.messages=[],this.root=t,this.opts=n,this.css="",this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let n=new o(e,t);return this.messages.push(n),n}warnings(){return this.messages.filter((e=>"warning"===e.type))}}e.exports=r,r.default=r},9434:(e,t,n)=>{"use strict";let o,r,i=n(683);class s extends i{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,n){let o=super.normalize(e);if(t)if("prepend"===n)this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let e of o)e.raws.before=t.raws.before;return o}removeChild(e,t){let n=this.index(e);return!t&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),super.removeChild(e)}toResult(e={}){return new o(new r,this,e).stringify()}}s.registerLazyResult=e=>{o=e},s.registerProcessor=e=>{r=e},e.exports=s,s.default=s,i.registerRoot(s)},9656:(e,t,n)=>{"use strict";let o=n(271),r=n(448),i=n(7661),s=n(9434);class l{constructor(e=[]){this.version="8.5.6",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let n of e)if(!0===n.postcss?n=n():n.postcss&&(n=n.postcss),"object"==typeof n&&Array.isArray(n.plugins))t=t.concat(n.plugins);else if("object"==typeof n&&n.postcssPlugin)t.push(n);else if("function"==typeof n)t.push(n);else{if("object"!=typeof n||!n.parse&&!n.stringify)throw new Error(n+" is not a PostCSS plugin")}return t}process(e,t={}){return this.plugins.length||t.parser||t.stringifier||t.syntax?new r(this,e,t):new i(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}}e.exports=l,l.default=l,s.registerProcessor(l),o.registerProcessor(l)},9681:e=>{var t={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",Ấ:"A",Ắ:"A",Ẳ:"A",Ẵ:"A",Ặ:"A",Æ:"AE",Ầ:"A",Ằ:"A",Ȃ:"A",Ả:"A",Ạ:"A",Ẩ:"A",Ẫ:"A",Ậ:"A",Ç:"C",Ḉ:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ế:"E",Ḗ:"E",Ề:"E",Ḕ:"E",Ḝ:"E",Ȇ:"E",Ẻ:"E",Ẽ:"E",Ẹ:"E",Ể:"E",Ễ:"E",Ệ:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ḯ:"I",Ȋ:"I",Ỉ:"I",Ị:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",Ố:"O",Ṍ:"O",Ṓ:"O",Ȏ:"O",Ỏ:"O",Ọ:"O",Ổ:"O",Ỗ:"O",Ộ:"O",Ờ:"O",Ở:"O",Ỡ:"O",Ớ:"O",Ợ:"O",Ù:"U",Ú:"U",Û:"U",Ü:"U",Ủ:"U",Ụ:"U",Ử:"U",Ữ:"U",Ự:"U",Ý:"Y",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",ấ:"a",ắ:"a",ẳ:"a",ẵ:"a",ặ:"a",æ:"ae",ầ:"a",ằ:"a",ȃ:"a",ả:"a",ạ:"a",ẩ:"a",ẫ:"a",ậ:"a",ç:"c",ḉ:"c",è:"e",é:"e",ê:"e",ë:"e",ế:"e",ḗ:"e",ề:"e",ḕ:"e",ḝ:"e",ȇ:"e",ẻ:"e",ẽ:"e",ẹ:"e",ể:"e",ễ:"e",ệ:"e",ì:"i",í:"i",î:"i",ï:"i",ḯ:"i",ȋ:"i",ỉ:"i",ị:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",ố:"o",ṍ:"o",ṓ:"o",ȏ:"o",ỏ:"o",ọ:"o",ổ:"o",ỗ:"o",ộ:"o",ờ:"o",ở:"o",ỡ:"o",ớ:"o",ợ:"o",ù:"u",ú:"u",û:"u",ü:"u",ủ:"u",ụ:"u",ử:"u",ữ:"u",ự:"u",ý:"y",ÿ:"y",Ā:"A",ā:"a",Ă:"A",ă:"a",Ą:"A",ą:"a",Ć:"C",ć:"c",Ĉ:"C",ĉ:"c",Ċ:"C",ċ:"c",Č:"C",č:"c",C̆:"C",c̆:"c",Ď:"D",ď:"d",Đ:"D",đ:"d",Ē:"E",ē:"e",Ĕ:"E",ĕ:"e",Ė:"E",ė:"e",Ę:"E",ę:"e",Ě:"E",ě:"e",Ĝ:"G",Ǵ:"G",ĝ:"g",ǵ:"g",Ğ:"G",ğ:"g",Ġ:"G",ġ:"g",Ģ:"G",ģ:"g",Ĥ:"H",ĥ:"h",Ħ:"H",ħ:"h",Ḫ:"H",ḫ:"h",Ĩ:"I",ĩ:"i",Ī:"I",ī:"i",Ĭ:"I",ĭ:"i",Į:"I",į:"i",İ:"I",ı:"i",IJ:"IJ",ij:"ij",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",Ḱ:"K",ḱ:"k",K̆:"K",k̆:"k",Ĺ:"L",ĺ:"l",Ļ:"L",ļ:"l",Ľ:"L",ľ:"l",Ŀ:"L",ŀ:"l",Ł:"l",ł:"l",Ḿ:"M",ḿ:"m",M̆:"M",m̆:"m",Ń:"N",ń:"n",Ņ:"N",ņ:"n",Ň:"N",ň:"n",ʼn:"n",N̆:"N",n̆:"n",Ō:"O",ō:"o",Ŏ:"O",ŏ:"o",Ő:"O",ő:"o",Œ:"OE",œ:"oe",P̆:"P",p̆:"p",Ŕ:"R",ŕ:"r",Ŗ:"R",ŗ:"r",Ř:"R",ř:"r",R̆:"R",r̆:"r",Ȓ:"R",ȓ:"r",Ś:"S",ś:"s",Ŝ:"S",ŝ:"s",Ş:"S",Ș:"S",ș:"s",ş:"s",Š:"S",š:"s",Ţ:"T",ţ:"t",ț:"t",Ț:"T",Ť:"T",ť:"t",Ŧ:"T",ŧ:"t",T̆:"T",t̆:"t",Ũ:"U",ũ:"u",Ū:"U",ū:"u",Ŭ:"U",ŭ:"u",Ů:"U",ů:"u",Ű:"U",ű:"u",Ų:"U",ų:"u",Ȗ:"U",ȗ:"u",V̆:"V",v̆:"v",Ŵ:"W",ŵ:"w",Ẃ:"W",ẃ:"w",X̆:"X",x̆:"x",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Y̆:"Y",y̆:"y",Ź:"Z",ź:"z",Ż:"Z",ż:"z",Ž:"Z",ž:"z",ſ:"s",ƒ:"f",Ơ:"O",ơ:"o",Ư:"U",ư:"u",Ǎ:"A",ǎ:"a",Ǐ:"I",ǐ:"i",Ǒ:"O",ǒ:"o",Ǔ:"U",ǔ:"u",Ǖ:"U",ǖ:"u",Ǘ:"U",ǘ:"u",Ǚ:"U",ǚ:"u",Ǜ:"U",ǜ:"u",Ứ:"U",ứ:"u",Ṹ:"U",ṹ:"u",Ǻ:"A",ǻ:"a",Ǽ:"AE",ǽ:"ae",Ǿ:"O",ǿ:"o",Þ:"TH",þ:"th",Ṕ:"P",ṕ:"p",Ṥ:"S",ṥ:"s",X́:"X",x́:"x",Ѓ:"Г",ѓ:"г",Ќ:"К",ќ:"к",A̋:"A",a̋:"a",E̋:"E",e̋:"e",I̋:"I",i̋:"i",Ǹ:"N",ǹ:"n",Ồ:"O",ồ:"o",Ṑ:"O",ṑ:"o",Ừ:"U",ừ:"u",Ẁ:"W",ẁ:"w",Ỳ:"Y",ỳ:"y",Ȁ:"A",ȁ:"a",Ȅ:"E",ȅ:"e",Ȉ:"I",ȉ:"i",Ȍ:"O",ȍ:"o",Ȑ:"R",ȑ:"r",Ȕ:"U",ȕ:"u",B̌:"B",b̌:"b",Č̣:"C",č̣:"c",Ê̌:"E",ê̌:"e",F̌:"F",f̌:"f",Ǧ:"G",ǧ:"g",Ȟ:"H",ȟ:"h",J̌:"J",ǰ:"j",Ǩ:"K",ǩ:"k",M̌:"M",m̌:"m",P̌:"P",p̌:"p",Q̌:"Q",q̌:"q",Ř̩:"R",ř̩:"r",Ṧ:"S",ṧ:"s",V̌:"V",v̌:"v",W̌:"W",w̌:"w",X̌:"X",x̌:"x",Y̌:"Y",y̌:"y",A̧:"A",a̧:"a",B̧:"B",b̧:"b",Ḑ:"D",ḑ:"d",Ȩ:"E",ȩ:"e",Ɛ̧:"E",ɛ̧:"e",Ḩ:"H",ḩ:"h",I̧:"I",i̧:"i",Ɨ̧:"I",ɨ̧:"i",M̧:"M",m̧:"m",O̧:"O",o̧:"o",Q̧:"Q",q̧:"q",U̧:"U",u̧:"u",X̧:"X",x̧:"x",Z̧:"Z",z̧:"z",й:"и",Й:"И",ё:"е",Ё:"Е"},n=Object.keys(t).join("|"),o=new RegExp(n,"g"),r=new RegExp(n,"");function i(e){return t[e]}var s=function(e){return e.replace(o,i)};e.exports=s,e.exports.has=function(e){return!!e.match(r)},e.exports.remove=s},9746:()=>{},9977:()=>{}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var i=t[o]={exports:{}};return e[o].call(i.exports,i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{"use strict";n.r(o),n.d(o,{AlignmentControl:()=>Vg,AlignmentToolbar:()=>Fg,Autocomplete:()=>kj,BlockAlignmentControl:()=>pa,BlockAlignmentToolbar:()=>ha,BlockBreadcrumb:()=>Cj,BlockCanvas:()=>XT,BlockColorsStyleSelector:()=>tM,BlockContextProvider:()=>iv,BlockControls:()=>Rs,BlockEdit:()=>vv,BlockEditorKeyboardShortcuts:()=>Qk,BlockEditorProvider:()=>ov,BlockFormatControls:()=>Ps,BlockIcon:()=>Vu,BlockInspector:()=>VA,BlockList:()=>dw,BlockMover:()=>Hj,BlockNavigationDropdown:()=>DM,BlockPopover:()=>tf,BlockPreview:()=>kC,BlockSelectionClearer:()=>RS,BlockSettingsMenu:()=>gT,BlockSettingsMenuControls:()=>lT,BlockStyles:()=>VM,BlockTitle:()=>wj,BlockToolbar:()=>OT,BlockTools:()=>UT,BlockVerticalAlignmentControl:()=>vl,BlockVerticalAlignmentToolbar:()=>_l,ButtonBlockAppender:()=>uI,ButtonBlockerAppender:()=>cI,ColorPalette:()=>cP,ColorPaletteControl:()=>uP,ContrastChecker:()=>dh,CopyHandler:()=>HA,DefaultBlockAppender:()=>yS,FontSizePicker:()=>sj,HeadingLevelDropdown:()=>$M,HeightControl:()=>bm,InnerBlocks:()=>ew,Inserter:()=>lI,InspectorAdvancedControls:()=>Va,InspectorControls:()=>Fa,JustifyContentControl:()=>Sl,JustifyToolbar:()=>wl,LineHeightControl:()=>Oh,LinkControl:()=>uu,MediaPlaceholder:()=>mR,MediaReplaceFlow:()=>hu,MediaUpload:()=>Ya,MediaUploadCheck:()=>Xa,MultiSelectScrollIntoView:()=>WA,NavigableToolbar:()=>ET,ObserveTyping:()=>rw,PanelColorSettings:()=>fR,PlainText:()=>qR,RecursionProvider:()=>JA,RichText:()=>WR,RichTextShortcut:()=>QR,RichTextToolbarButton:()=>JR,SETTINGS_DEFAULTS:()=>P,SkipToSelectedBlock:()=>gA,Typewriter:()=>XA,URLInput:()=>ac,URLInputButton:()=>oA,URLPopover:()=>dR,Warning:()=>bv,WritingFlow:()=>Aw,__experimentalBlockAlignmentMatrixControl:()=>xj,__experimentalBlockFullHeightAligmentControl:()=>_j,__experimentalBlockPatternSetup:()=>oP,__experimentalBlockPatternsList:()=>$C,__experimentalBlockVariationPicker:()=>KM,__experimentalBlockVariationTransforms:()=>lP,__experimentalBorderRadiusControl:()=>rp,__experimentalColorGradientControl:()=>qp,__experimentalColorGradientSettingsDropdown:()=>kP,__experimentalDateFormatPicker:()=>hP,__experimentalDuotoneControl:()=>Ef,__experimentalFontAppearanceControl:()=>Lh,__experimentalFontFamilyControl:()=>Ah,__experimentalGetBorderClassesAndStyles:()=>UI,__experimentalGetColorClassesAndStyles:()=>WI,__experimentalGetElementClassName:()=>lN,__experimentalGetGapCSSValue:()=>ul,__experimentalGetGradientClass:()=>Op,__experimentalGetGradientObjectByGradientValue:()=>Vp,__experimentalGetShadowClassesAndStyles:()=>$I,__experimentalGetSpacingClassesAndStyles:()=>ZI,__experimentalImageEditor:()=>oR,__experimentalImageSizeControl:()=>lR,__experimentalImageURLInputUI:()=>uA,__experimentalInspectorPopoverHeader:()=>oN,__experimentalLetterSpacingControl:()=>zh,__experimentalLibrary:()=>$A,__experimentalLinkControl:()=>cu,__experimentalLinkControlSearchInput:()=>Gc,__experimentalLinkControlSearchItem:()=>Bc,__experimentalLinkControlSearchResults:()=>Nc,__experimentalListView:()=>NM,__experimentalPanelColorGradientSettings:()=>xP,__experimentalPreviewOptions:()=>dA,__experimentalPublishDateTimePicker:()=>iN,__experimentalRecursionProvider:()=>tN,__experimentalResponsiveBlockControl:()=>XR,__experimentalSpacingSizesControl:()=>mm,__experimentalTextDecorationControl:()=>tg,__experimentalTextTransformControl:()=>Xh,__experimentalUnitControl:()=>tA,__experimentalUseBlockOverlayActive:()=>Bj,__experimentalUseBlockPreview:()=>vC,__experimentalUseBorderProps:()=>GI,__experimentalUseColorProps:()=>KI,__experimentalUseCustomSides:()=>mf,__experimentalUseGradient:()=>Hp,__experimentalUseHasRecursion:()=>nN,__experimentalUseMultipleOriginColorsAndGradients:()=>Nd,__experimentalUseResizeCanvas:()=>pA,__experimentalWritingModeControl:()=>ig,__unstableBlockNameContext:()=>CT,__unstableBlockSettingsMenuFirstItem:()=>zE,__unstableBlockToolbarLastItem:()=>_E,__unstableEditorStyles:()=>cC,__unstableIframe:()=>Fw,__unstableInserterMenuExtension:()=>KB,__unstableRichTextInputEvent:()=>eA,__unstableUseBlockSelectionClearer:()=>PS,__unstableUseClipboardHandler:()=>FA,__unstableUseMouseMoveTypingReset:()=>nw,__unstableUseTypewriter:()=>YA,__unstableUseTypingObserver:()=>ow,createCustomColorsHOC:()=>rj,getColorClassName:()=>Ad,getColorObjectByAttributeValues:()=>Pd,getColorObjectByColorValue:()=>Rd,getComputedFluidTypographyValue:()=>zi,getCustomValueFromPreset:()=>il,getFontSize:()=>Tg,getFontSizeClass:()=>Pg,getFontSizeObjectByValue:()=>Mg,getGradientSlugByValue:()=>Fp,getGradientValueBySlug:()=>zp,getPxFromCssUnit:()=>aN,getSpacingPresetCssVar:()=>ll,getTypographyClassesAndStyles:()=>YI,isValueSpacingPreset:()=>rl,privateApis:()=>sD,store:()=>ji,storeConfig:()=>Ii,transformStyles:()=>lC,useBlockBindingsUtils:()=>dv,useBlockCommands:()=>ZT,useBlockDisplayInformation:()=>Xf,useBlockEditContext:()=>C,useBlockEditingMode:()=>ga,useBlockProps:()=>gS,useCachedTruthy:()=>XI,useHasRecursion:()=>eN,useInnerBlocksProps:()=>JS,useSetting:()=>Mi,useSettings:()=>Ti,useStyleOverride:()=>_s,withColorContext:()=>aP,withColors:()=>ij,withFontSizes:()=>cj});var e={};n.r(e),n.d(e,{getAllPatterns:()=>ze,getBlockRemovalRules:()=>Pe,getBlockSettings:()=>ye,getBlockStyles:()=>Ye,getBlockWithoutAttributes:()=>Ce,getClosestAllowedInsertionPoint:()=>et,getClosestAllowedInsertionPointForPattern:()=>tt,getContentLockingParent:()=>$e,getEnabledBlockParents:()=>Te,getEnabledClientIdsTree:()=>Ee,getExpandedBlock:()=>Ge,getInserterMediaCategories:()=>Le,getInsertionPoint:()=>nt,getLastFocus:()=>He,getLastInsertedBlocksClientIds:()=>we,getOpenedBlockSettingsMenu:()=>Re,getParentSectionBlock:()=>We,getPatternBySlug:()=>Oe,getRegisteredInserterMediaCategories:()=>Ne,getRemovalPromptData:()=>Me,getReusableBlocks:()=>Fe,getSectionRootClientId:()=>Xe,getStyleOverrides:()=>Ae,getTemporarilyEditingAsBlocks:()=>Ze,getTemporarilyEditingFocusModeToRevert:()=>qe,getZoomLevel:()=>Je,hasAllowedPatterns:()=>De,hasBlockSpotlight:()=>rt,isBlockHidden:()=>ot,isBlockInterfaceHidden:()=>Se,isBlockSubtreeDisabled:()=>Be,isContainerInsertableToInContentOnlyMode:()=>Ie,isDragging:()=>Ue,isSectionBlock:()=>Ke,isZoomOut:()=>Qe});var t={};n.r(t),n.d(t,{__experimentalGetActiveBlockIdByBlockNames:()=>To,__experimentalGetAllowedBlocks:()=>lo,__experimentalGetAllowedPatterns:()=>mo,__experimentalGetBlockListSettingsForBlocks:()=>xo,__experimentalGetDirectInsertBlock:()=>co,__experimentalGetGlobalBlocksByName:()=>zt,__experimentalGetLastBlockAttributeChanges:()=>Co,__experimentalGetParsedPattern:()=>uo,__experimentalGetPatternTransformItems:()=>ko,__experimentalGetPatternsByBlockTypes:()=>bo,__experimentalGetReusableBlockTitle:()=>So,__unstableGetBlockWithoutInnerBlocks:()=>Mt,__unstableGetClientIdWithClientIdsTree:()=>Rt,__unstableGetClientIdsTree:()=>At,__unstableGetContentLockingParent:()=>Vo,__unstableGetSelectedBlocksWithPartialSelection:()=>yn,__unstableGetTemporarilyEditingAsBlocks:()=>Fo,__unstableGetTemporarilyEditingFocusModeToRevert:()=>Ho,__unstableGetVisibleBlocks:()=>Ao,__unstableHasActiveBlockOverlayActive:()=>No,__unstableIsFullySelected:()=>bn,__unstableIsLastBlockChangeIgnored:()=>wo,__unstableIsSelectionCollapsed:()=>kn,__unstableIsSelectionMergeable:()=>_n,__unstableIsWithinBlockOverlay:()=>Lo,__unstableSelectionHasUnmergeableBlock:()=>vn,areInnerBlocksControlled:()=>Eo,canEditBlock:()=>Xn,canInsertBlockType:()=>$n,canInsertBlocks:()=>Wn,canLockBlockType:()=>Qn,canMoveBlock:()=>qn,canMoveBlocks:()=>Yn,canRemoveBlock:()=>Kn,canRemoveBlocks:()=>Zn,didAutomaticChange:()=>Io,getAdjacentBlockClientId:()=>nn,getAllowedBlocks:()=>so,getBlock:()=>Tt,getBlockAttributes:()=>Et,getBlockCount:()=>Ht,getBlockEditingMode:()=>Do,getBlockHierarchyRootClientId:()=>en,getBlockIndex:()=>Sn,getBlockInsertionPoint:()=>On,getBlockListSettings:()=>vo,getBlockMode:()=>Mn,getBlockName:()=>It,getBlockNamesByClientId:()=>Ft,getBlockOrder:()=>xn,getBlockParents:()=>Qt,getBlockParentsByBlockName:()=>Jt,getBlockRootClientId:()=>Xt,getBlockSelectionEnd:()=>Wt,getBlockSelectionStart:()=>$t,getBlockTransformItems:()=>ro,getBlocks:()=>Pt,getBlocksByClientId:()=>Vt,getBlocksByName:()=>Ot,getClientIdsOfDescendants:()=>Nt,getClientIdsWithDescendants:()=>Lt,getDirectInsertBlock:()=>ao,getDraggedBlockClientIds:()=>An,getFirstMultiSelectedBlockClientId:()=>un,getGlobalBlockCount:()=>Dt,getHoveredBlockClientId:()=>Ro,getInserterItems:()=>oo,getLastMultiSelectedBlockClientId:()=>dn,getLowestCommonAncestorWithSelectedBlock:()=>tn,getMultiSelectedBlockClientIds:()=>an,getMultiSelectedBlocks:()=>cn,getMultiSelectedBlocksEndClientId:()=>fn,getMultiSelectedBlocksStartClientId:()=>mn,getNextBlockClientId:()=>rn,getPatternsByBlockTypes:()=>fo,getPreviousBlockClientId:()=>on,getSelectedBlock:()=>Yt,getSelectedBlockClientId:()=>qt,getSelectedBlockClientIds:()=>ln,getSelectedBlockCount:()=>Kt,getSelectedBlocksInitialCaretPosition:()=>sn,getSelectionEnd:()=>Gt,getSelectionStart:()=>Ut,getSettings:()=>_o,getTemplate:()=>Fn,getTemplateLock:()=>Hn,hasBlockMovingClientId:()=>Bo,hasDraggedInnerBlock:()=>Bn,hasInserterItems:()=>io,hasMultiSelection:()=>jn,hasSelectedBlock:()=>Zt,hasSelectedInnerBlock:()=>Cn,isAncestorBeingDragged:()=>Ln,isAncestorMultiSelected:()=>gn,isBlockBeingDragged:()=>Nn,isBlockHighlighted:()=>jo,isBlockInsertionPointVisible:()=>zn,isBlockMultiSelected:()=>hn,isBlockSelected:()=>wn,isBlockValid:()=>jt,isBlockVisible:()=>Po,isBlockWithinSelection:()=>In,isCaretWithinFormattedText:()=>Dn,isDraggingBlocks:()=>Rn,isFirstMultiSelectedBlock:()=>pn,isGroupable:()=>zo,isLastBlockChangePersistent:()=>yo,isMultiSelecting:()=>En,isSelectionEnabled:()=>Tn,isTyping:()=>Pn,isUngroupable:()=>Oo,isValidTemplate:()=>Vn,wasBlockJustInserted:()=>Mo});var r={};n.r(r),n.d(r,{__experimentalUpdateSettings:()=>$o,clearBlockRemovalPrompt:()=>Xo,deleteStyleOverride:()=>tr,ensureDefaultBlock:()=>qo,expandBlock:()=>sr,hideBlockInterface:()=>Wo,modifyContentLockBlock:()=>ar,privateRemoveBlocks:()=>Zo,resetZoomLevel:()=>ur,setBlockRemovalRules:()=>Qo,setInsertionPoint:()=>lr,setLastFocus:()=>nr,setOpenedBlockSettingsMenu:()=>Jo,setStyleOverride:()=>er,setZoomLevel:()=>cr,showBlockInterface:()=>Ko,startDragging:()=>rr,stopDragging:()=>ir,stopEditingAsBlocks:()=>or,toggleBlockSpotlight:()=>dr});var i={};n.r(i),n.d(i,{__unstableDeleteSelection:()=>Wr,__unstableExpandSelection:()=>Zr,__unstableMarkAutomaticChange:()=>hi,__unstableMarkLastChangeAsPersistent:()=>di,__unstableMarkNextChangeAsNotPersistent:()=>pi,__unstableSaveReusableBlock:()=>ui,__unstableSetEditorMode:()=>gi,__unstableSetTemporarilyEditingAsBlocks:()=>Si,__unstableSplitSelection:()=>Kr,clearSelectedBlock:()=>Mr,duplicateBlocks:()=>fi,enterFormattedText:()=>ri,exitFormattedText:()=>ii,flashBlock:()=>_i,hideInsertionPoint:()=>Ur,hoverBlock:()=>Cr,insertAfterBlock:()=>ki,insertBeforeBlock:()=>bi,insertBlock:()=>Vr,insertBlocks:()=>Fr,insertDefaultBlock:()=>li,mergeBlocks:()=>qr,moveBlockToPosition:()=>zr,moveBlocksDown:()=>Lr,moveBlocksToPosition:()=>Or,moveBlocksUp:()=>Dr,multiSelect:()=>Tr,receiveBlocks:()=>yr,registerInserterMediaCategory:()=>wi,removeBlock:()=>Xr,removeBlocks:()=>Yr,replaceBlock:()=>Ar,replaceBlocks:()=>Rr,replaceInnerBlocks:()=>Qr,resetBlocks:()=>kr,resetSelection:()=>_r,selectBlock:()=>wr,selectNextBlock:()=>Ir,selectPreviousBlock:()=>Br,selectionChange:()=>si,setBlockEditingMode:()=>Ci,setBlockMovingClientId:()=>mi,setBlockVisibility:()=>xi,setHasControlledInnerBlocks:()=>yi,setTemplateValidity:()=>Gr,showInsertionPoint:()=>Hr,startDraggingBlocks:()=>ni,startMultiSelect:()=>jr,startTyping:()=>ei,stopDraggingBlocks:()=>oi,stopMultiSelect:()=>Er,stopTyping:()=>ti,synchronizeTemplate:()=>$r,toggleBlockHighlight:()=>vi,toggleBlockMode:()=>Jr,toggleSelection:()=>Pr,unsetBlockEditingMode:()=>Bi,updateBlock:()=>Sr,updateBlockAttributes:()=>xr,updateBlockListSettings:()=>ai,updateSettings:()=>ci,validateBlocksToTemplate:()=>vr});var s={};n.r(s),n.d(s,{getItems:()=>ok,getSettings:()=>lk,isUploading:()=>rk,isUploadingById:()=>sk,isUploadingByUrl:()=>ik});var l={};n.r(l),n.d(l,{getAllItems:()=>ak,getBlobUrls:()=>gk,getItem:()=>ck,getPausedUploadForPost:()=>pk,isBatchUploaded:()=>uk,isPaused:()=>hk,isUploadingToPost:()=>dk});var a={};n.r(a),n.d(a,{addItems:()=>Bk,cancelItem:()=>Ik});var c={};n.r(c),n.d(c,{addItem:()=>Tk,finishOperation:()=>Nk,pauseQueue:()=>Pk,prepareItem:()=>Lk,processItem:()=>Mk,removeItem:()=>Ak,resumeQueue:()=>Rk,revokeBlobUrls:()=>Ok,updateSettings:()=>zk,uploadItem:()=>Dk});var u={};n.r(u),n.d(u,{AdvancedPanel:()=>dN,BackgroundPanel:()=>Tu,BorderPanel:()=>Sp,ColorPanel:()=>uh,DimensionsPanel:()=>zm,FiltersPanel:()=>Uf,GlobalStylesContext:()=>is,ImageSettingsPanel:()=>uN,TypographyPanel:()=>yg,areGlobalStyleConfigsEqual:()=>os,getBlockCSSSelector:()=>Rf,getBlockSelectors:()=>Sb,getGlobalStylesChanges:()=>vN,getLayoutStyles:()=>mb,toStyles:()=>yb,useGlobalSetting:()=>cs,useGlobalStyle:()=>us,useGlobalStylesOutput:()=>Bb,useGlobalStylesOutputWithConfig:()=>Cb,useGlobalStylesReset:()=>as,useHasBackgroundPanel:()=>Iu,useHasBorderPanel:()=>gp,useHasBorderPanelControls:()=>mp,useHasColorPanel:()=>Yp,useHasDimensionsPanel:()=>Bm,useHasFiltersPanel:()=>Lf,useHasImageSettingsPanel:()=>cN,useHasTypographyPanel:()=>ag,useSettingsForBlockElement:()=>ds});const d=window.ReactJSXRuntime,p=window.wp.blocks,h=window.wp.element,g=window.wp.data,m=window.wp.compose,f=window.wp.hooks,b=Symbol("mayDisplayControls"),k=Symbol("mayDisplayParentControls"),v=Symbol("blockEditingMode"),_=Symbol("blockBindings"),y=Symbol("isPreviewMode"),x={name:"",isSelected:!1},S=(0,h.createContext)(x);S.displayName="BlockEditContext";const{Provider:w}=S;function C(){return(0,h.useContext)(S)}const B=window.wp.deprecated;var I=n.n(B),j=n(7734),E=n.n(j);const T=window.wp.i18n,M={insertUsage:{}},P={alignWide:!1,supportsLayout:!0,colors:[{name:(0,T.__)("Black"),slug:"black",color:"#000000"},{name:(0,T.__)("Cyan bluish gray"),slug:"cyan-bluish-gray",color:"#abb8c3"},{name:(0,T.__)("White"),slug:"white",color:"#ffffff"},{name:(0,T.__)("Pale pink"),slug:"pale-pink",color:"#f78da7"},{name:(0,T.__)("Vivid red"),slug:"vivid-red",color:"#cf2e2e"},{name:(0,T.__)("Luminous vivid orange"),slug:"luminous-vivid-orange",color:"#ff6900"},{name:(0,T.__)("Luminous vivid amber"),slug:"luminous-vivid-amber",color:"#fcb900"},{name:(0,T.__)("Light green cyan"),slug:"light-green-cyan",color:"#7bdcb5"},{name:(0,T.__)("Vivid green cyan"),slug:"vivid-green-cyan",color:"#00d084"},{name:(0,T.__)("Pale cyan blue"),slug:"pale-cyan-blue",color:"#8ed1fc"},{name:(0,T.__)("Vivid cyan blue"),slug:"vivid-cyan-blue",color:"#0693e3"},{name:(0,T.__)("Vivid purple"),slug:"vivid-purple",color:"#9b51e0"}],fontSizes:[{name:(0,T._x)("Small","font size name"),size:13,slug:"small"},{name:(0,T._x)("Normal","font size name"),size:16,slug:"normal"},{name:(0,T._x)("Medium","font size name"),size:20,slug:"medium"},{name:(0,T._x)("Large","font size name"),size:36,slug:"large"},{name:(0,T._x)("Huge","font size name"),size:42,slug:"huge"}],imageDefaultSize:"large",imageSizes:[{slug:"thumbnail",name:(0,T.__)("Thumbnail")},{slug:"medium",name:(0,T.__)("Medium")},{slug:"large",name:(0,T.__)("Large")},{slug:"full",name:(0,T.__)("Full Size")}],imageEditing:!0,maxWidth:580,allowedBlockTypes:!0,maxUploadFileSize:0,allowedMimeTypes:null,canLockBlocks:!0,enableOpenverseMediaCategory:!0,clearBlockSelection:!0,__experimentalCanUserUseUnfilteredHTML:!1,__experimentalBlockDirectory:!1,__mobileEnablePageTemplates:!1,__experimentalBlockPatterns:[],__experimentalBlockPatternCategories:[],isPreviewMode:!1,blockInspectorAnimation:{animationParent:"core/navigation","core/navigation":{enterDirection:"leftToRight"},"core/navigation-submenu":{enterDirection:"rightToLeft"},"core/navigation-link":{enterDirection:"rightToLeft"},"core/search":{enterDirection:"rightToLeft"},"core/social-links":{enterDirection:"rightToLeft"},"core/page-list":{enterDirection:"rightToLeft"},"core/spacer":{enterDirection:"rightToLeft"},"core/home-link":{enterDirection:"rightToLeft"},"core/site-title":{enterDirection:"rightToLeft"},"core/site-logo":{enterDirection:"rightToLeft"}},generateAnchors:!1,gradients:[{name:(0,T.__)("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:(0,T.__)("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:(0,T.__)("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:(0,T.__)("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:(0,T.__)("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:(0,T.__)("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:(0,T.__)("Blush light purple"),gradient:"linear-gradient(135deg,rgb(255,206,236) 0%,rgb(152,150,240) 100%)",slug:"blush-light-purple"},{name:(0,T.__)("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:(0,T.__)("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:(0,T.__)("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:(0,T.__)("Electric grass"),gradient:"linear-gradient(135deg,rgb(202,248,128) 0%,rgb(113,206,126) 100%)",slug:"electric-grass"},{name:(0,T.__)("Midnight"),gradient:"linear-gradient(135deg,rgb(2,3,129) 0%,rgb(40,116,252) 100%)",slug:"midnight"}],__unstableResolvedAssets:{styles:[],scripts:[]}};function R(e,t,n){return[...e.slice(0,n),...Array.isArray(t)?t:[t],...e.slice(n)]}function A(e,t,n,o=1){const r=[...e];return r.splice(t,o),R(r,e.slice(t,t+o),n)}const N=Symbol("globalStylesDataKey"),L=Symbol("globalStylesLinks"),D=Symbol("selectBlockPatternsKey"),O=Symbol("reusableBlocksSelect"),z=Symbol("sectionRootClientIdKey"),V=Symbol("mediaEditKey"),F=Symbol("essentialFormat"),H=window.wp.privateApis,{lock:U,unlock:G}=(0,H.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.","@wordpress/block-editor"),{isContentBlock:$}=G(p.privateApis),W=e=>e;function K(e,t=""){const n=new Map,o=[];return n.set(t,o),e.forEach((e=>{const{clientId:t,innerBlocks:r}=e;o.push(t),K(r,t).forEach(((e,t)=>{n.set(t,e)}))})),n}function Z(e,t=""){const n=[],o=[[t,e]];for(;o.length;){const[e,t]=o.shift();t.forEach((({innerBlocks:t,...r})=>{n.push([r.clientId,e]),t?.length&&o.push([r.clientId,t])}))}return n}function q(e,t=W){const n=[],o=[...e];for(;o.length;){const{innerBlocks:e,...r}=o.shift();o.push(...e),n.push([r.clientId,t(r)])}return n}function Y(e){return q(e,(e=>{const{attributes:t,...n}=e;return n}))}function X(e){return q(e,(e=>e.attributes))}function Q(e,t){return"UPDATE_BLOCK_ATTRIBUTES"===e.type&&void 0!==t&&"UPDATE_BLOCK_ATTRIBUTES"===t.type&&E()(e.clientIds,t.clientIds)&&function(e,t){return E()(Object.keys(e),Object.keys(t))}(e.attributes,t.attributes)}function J(e,t){const n=e.tree,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.set(e.clientId,{});for(const t of r)n.set(t.clientId,Object.assign(n.get(t.clientId),{...e.byClientId.get(t.clientId),attributes:e.attributes.get(t.clientId),innerBlocks:t.innerBlocks.map((e=>n.get(e.clientId)))}))}function ee(e,t,n=!1){const o=e.tree,r=new Set([]),i=new Set;for(const o of t){let t=n?o:e.parents.get(o);do{if(e.controlledInnerBlocks[t]){i.add(t);break}r.add(t),t=e.parents.get(t)}while(void 0!==t)}for(const e of r)o.set(e,{...o.get(e)});for(const t of r)o.get(t).innerBlocks=(e.order.get(t)||[]).map((e=>o.get(e)));for(const t of i)o.set("controlled||"+t,{innerBlocks:(e.order.get(t)||[]).map((e=>o.get(e)))})}const te=(0,m.pipe)(g.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=new Map(t.attributes),t.attributes.forEach(((n,r)=>{const{name:i}=t.byClientId.get(r);"core/block"===i&&n.ref===e&&t.attributes.set(r,{...n,ref:o})}))}return e(t,n)}),(e=>(t={},n)=>{const o=e(t,n);if(o===t)return t;switch(o.tree=t.tree?t.tree:new Map,n.type){case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":o.tree=new Map(o.tree),J(o,n.blocks),ee(o,n.rootClientId?[n.rootClientId]:[""],!0);break;case"UPDATE_BLOCK":o.tree=new Map(o.tree),o.tree.set(n.clientId,{...o.tree.get(n.clientId),...o.byClientId.get(n.clientId),attributes:o.attributes.get(n.clientId)}),ee(o,[n.clientId],!1);break;case"SYNC_DERIVED_BLOCK_ATTRIBUTES":case"UPDATE_BLOCK_ATTRIBUTES":o.tree=new Map(o.tree),n.clientIds.forEach((e=>{o.tree.set(e,{...o.tree.get(e),attributes:o.attributes.get(e)})})),ee(o,n.clientIds,!1);break;case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const e=function(e){const t={},n=[...e];for(;n.length;){const{innerBlocks:e,...o}=n.shift();n.push(...e),t[o.clientId]=!0}return t}(n.blocks);o.tree=new Map(o.tree),n.replacedClientIds.forEach((t=>{o.tree.delete(t),e[t]||o.tree.delete("controlled||"+t)})),J(o,n.blocks),ee(o,n.blocks.map((e=>e.clientId)),!1);const r=[];for(const e of n.clientIds){const n=t.parents.get(e);void 0===n||""!==n&&!o.byClientId.get(n)||r.push(n)}ee(o,r,!0);break}case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":const e=[];for(const r of n.clientIds){const n=t.parents.get(r);void 0===n||""!==n&&!o.byClientId.get(n)||e.push(n)}o.tree=new Map(o.tree),n.removedClientIds.forEach((e=>{o.tree.delete(e),o.tree.delete("controlled||"+e)})),ee(o,e,!0);break;case"MOVE_BLOCKS_TO_POSITION":{const e=[];n.fromRootClientId?e.push(n.fromRootClientId):e.push(""),n.toRootClientId&&e.push(n.toRootClientId),o.tree=new Map(o.tree),ee(o,e,!0);break}case"MOVE_BLOCKS_UP":case"MOVE_BLOCKS_DOWN":{const e=[n.rootClientId?n.rootClientId:""];o.tree=new Map(o.tree),ee(o,e,!0);break}case"SAVE_REUSABLE_BLOCK_SUCCESS":{const e=[];o.attributes.forEach(((t,r)=>{"core/block"===o.byClientId.get(r).name&&t.ref===n.updatedId&&e.push(r)})),o.tree=new Map(o.tree),e.forEach((e=>{o.tree.set(e,{...o.byClientId.get(e),attributes:o.attributes.get(e),innerBlocks:o.tree.get(e).innerBlocks})})),ee(o,e,!1)}}return o}),(e=>(t,n)=>{const o=e=>{let o=e;for(let r=0;r<o.length;r++)!t.order.get(o[r])||n.keepControlledInnerBlocks&&n.keepControlledInnerBlocks[o[r]]||(o===e&&(o=[...o]),o.push(...t.order.get(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.get(n.rootClientId)&&(r=e(r,{type:"REMOVE_BLOCKS",keepControlledInnerBlocks:o,clientIds:t.order.get(n.rootClientId)}));let i=r;if(n.blocks.length){i=e(i,{...n,type:"INSERT_BLOCKS",index:0});const r=new Map(i.order);Object.keys(o).forEach((e=>{t.order.get(e)&&r.set(e,t.order.get(e))})),i.order=r,i.tree=new Map(i.tree),Object.keys(o).forEach((e=>{const n=`controlled||${e}`;t.tree.has(n)&&i.tree.set(n,t.tree.get(n))}))}return i}),(e=>(t,n)=>{if("RESET_BLOCKS"===n.type){const e={...t,byClientId:new Map(Y(n.blocks)),attributes:new Map(X(n.blocks)),order:K(n.blocks),parents:new Map(Z(n.blocks)),controlledInnerBlocks:{}};return e.tree=new Map(t?.tree),J(e,n.blocks),e.tree.set("",{innerBlocks:n.blocks.map((t=>e.tree.get(t.clientId)))}),e}return e(t,n)}),(function(e){let t,n,o=!1;return(r,i)=>{let s,l=e(r,i);if("SET_EXPLICIT_PERSISTENT"===i.type&&(n=i.isPersistentChange,s=r.isPersistentChange??!0),void 0!==n)return s=n,s===l.isPersistentChange?l:{...l,isPersistentChange:s};const a="MARK_LAST_CHANGE_AS_PERSISTENT"===i.type||o;return r!==l||a?(l={...l,isPersistentChange:a?!o:!Q(i,t)},t=i,o="MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"===i.type,l):(o="MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"===i.type,s=r?.isPersistentChange??!0,r.isPersistentChange===s?r:{...l,isPersistentChange:s})}}),(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}}),(e=>(t,n)=>{if("SET_HAS_CONTROLLED_INNER_BLOCKS"===n.type){const o=e(t,{type:"REPLACE_INNER_BLOCKS",rootClientId:n.clientId,blocks:[]});return e(o,n)}return e(t,n)}))({byClientId(e=new Map,t){switch(t.type){case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":{const n=new Map(e);return Y(t.blocks).forEach((([e,t])=>{n.set(e,t)})),n}case"UPDATE_BLOCK":{if(!e.has(t.clientId))return e;const{attributes:n,...o}=t.updates;if(0===Object.values(o).length)return e;const r=new Map(e);return r.set(t.clientId,{...e.get(t.clientId),...o}),r}case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{if(!t.blocks)return e;const n=new Map(e);return t.replacedClientIds.forEach((e=>{n.delete(e)})),Y(t.blocks).forEach((([e,t])=>{n.set(e,t)})),n}case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const n=new Map(e);return t.removedClientIds.forEach((e=>{n.delete(e)})),n}}return e},attributes(e=new Map,t){switch(t.type){case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":{const n=new Map(e);return X(t.blocks).forEach((([e,t])=>{n.set(e,t)})),n}case"UPDATE_BLOCK":{if(!e.get(t.clientId)||!t.updates.attributes)return e;const n=new Map(e);return n.set(t.clientId,{...e.get(t.clientId),...t.updates.attributes}),n}case"SYNC_DERIVED_BLOCK_ATTRIBUTES":case"UPDATE_BLOCK_ATTRIBUTES":{if(t.clientIds.every((t=>!e.get(t))))return e;let n=!1;const o=new Map(e);for(const r of t.clientIds){const i=Object.entries(t.options?.uniqueByBlock?t.attributes[r]:t.attributes??{});if(0===i.length)continue;let s=!1;const l=e.get(r),a={};i.forEach((([e,t])=>{l[e]!==t&&(s=!0,a[e]=t)})),n=n||s,s&&o.set(r,{...l,...a})}return n?o:e}case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{if(!t.blocks)return e;const n=new Map(e);return t.replacedClientIds.forEach((e=>{n.delete(e)})),X(t.blocks).forEach((([e,t])=>{n.set(e,t)})),n}case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const n=new Map(e);return t.removedClientIds.forEach((e=>{n.delete(e)})),n}}return e},order(e=new Map,t){switch(t.type){case"RECEIVE_BLOCKS":{const n=K(t.blocks),o=new Map(e);return n.forEach(((e,t)=>{""!==t&&o.set(t,e)})),o.set("",(e.get("")??[]).concat(n[""])),o}case"INSERT_BLOCKS":{const{rootClientId:n=""}=t,o=e.get(n)||[],r=K(t.blocks,n),{index:i=o.length}=t,s=new Map(e);return r.forEach(((e,t)=>{s.set(t,e)})),s.set(n,R(o,r.get(n),i)),s}case"MOVE_BLOCKS_TO_POSITION":{const{fromRootClientId:n="",toRootClientId:o="",clientIds:r}=t,{index:i=e.get(o).length}=t;if(n===o){const t=e.get(o).indexOf(r[0]),n=new Map(e);return n.set(o,A(e.get(o),t,i,r.length)),n}const s=new Map(e);return s.set(n,e.get(n)?.filter((e=>!r.includes(e)))??[]),s.set(o,R(e.get(o),r,i)),s}case"MOVE_BLOCKS_UP":{const{clientIds:n,rootClientId:o=""}=t,r=n[0],i=e.get(o);if(!i.length||r===i[0])return e;const s=i.indexOf(r),l=new Map(e);return l.set(o,A(i,s,s-1,n.length)),l}case"MOVE_BLOCKS_DOWN":{const{clientIds:n,rootClientId:o=""}=t,r=n[0],i=n[n.length-1],s=e.get(o);if(!s.length||i===s[s.length-1])return e;const l=s.indexOf(r),a=new Map(e);return a.set(o,A(s,l,l+1,n.length)),a}case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const{clientIds:n}=t;if(!t.blocks)return e;const o=K(t.blocks),r=new Map(e);return t.replacedClientIds.forEach((e=>{r.delete(e)})),o.forEach(((e,t)=>{""!==t&&r.set(t,e)})),r.forEach(((e,t)=>{const i=Object.values(e).reduce(((e,t)=>t===n[0]?[...e,...o.get("")]:(-1===n.indexOf(t)&&e.push(t),e)),[]);r.set(t,i)})),r}case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const n=new Map(e);return t.removedClientIds.forEach((e=>{n.delete(e)})),n.forEach(((e,o)=>{const r=e?.filter((e=>!t.removedClientIds.includes(e)))??[];r.length!==e.length&&n.set(o,r)})),n}}return e},parents(e=new Map,t){switch(t.type){case"RECEIVE_BLOCKS":{const n=new Map(e);return Z(t.blocks).forEach((([e,t])=>{n.set(e,t)})),n}case"INSERT_BLOCKS":{const n=new Map(e);return Z(t.blocks,t.rootClientId||"").forEach((([e,t])=>{n.set(e,t)})),n}case"MOVE_BLOCKS_TO_POSITION":{const n=new Map(e);return t.clientIds.forEach((e=>{n.set(e,t.toRootClientId||"")})),n}case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const n=new Map(e);return t.replacedClientIds.forEach((e=>{n.delete(e)})),Z(t.blocks,e.get(t.clientIds[0])).forEach((([e,t])=>{n.set(e,t)})),n}case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const n=new Map(e);return t.removedClientIds.forEach((e=>{n.delete(e)})),n}}return e},controlledInnerBlocks:(e={},{type:t,clientId:n,hasControlledInnerBlocks:o})=>"SET_HAS_CONTROLLED_INNER_BLOCKS"===t?{...e,[n]:o}:e});function ne(e={},t){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}const oe=(0,g.combineReducers)({blocks:te,isDragging:function(e=!1,t){switch(t.type){case"START_DRAGGING":return!0;case"STOP_DRAGGING":return!1}return e},isTyping:function(e=!1,t){switch(t.type){case"START_TYPING":return!0;case"STOP_TYPING":return!1}return e},isBlockInterfaceHidden:function(e=!1,t){switch(t.type){case"HIDE_BLOCK_INTERFACE":return!0;case"SHOW_BLOCK_INTERFACE":return!1}return e},draggedBlocks:function(e=[],t){switch(t.type){case"START_DRAGGING_BLOCKS":return t.clientIds;case"STOP_DRAGGING_BLOCKS":return[]}return e},selection:function(e={},t){switch(t.type){case"SELECTION_CHANGE":return t.clientId?{selectionStart:{clientId:t.clientId,attributeKey:t.attributeKey,offset:t.startOffset},selectionEnd:{clientId:t.clientId,attributeKey:t.attributeKey,offset:t.endOffset}}:{selectionStart:t.start||e.selectionStart,selectionEnd:t.end||e.selectionEnd};case"RESET_SELECTION":const{selectionStart:n,selectionEnd:o}=t;return{selectionStart:n,selectionEnd:o};case"MULTI_SELECT":const{start:r,end:i}=t;return r===e.selectionStart?.clientId&&i===e.selectionEnd?.clientId?e:{selectionStart:{clientId:r},selectionEnd:{clientId:i}};case"RESET_BLOCKS":const s=e?.selectionStart?.clientId,l=e?.selectionEnd?.clientId;if(!s&&!l)return e;if(!t.blocks.some((e=>e.clientId===s)))return{selectionStart:{},selectionEnd:{}};if(!t.blocks.some((e=>e.clientId===l)))return{...e,selectionEnd:e.selectionStart}}const n=ne(e.selectionStart,t),o=ne(e.selectionEnd,t);return n===e.selectionStart&&o===e.selectionEnd?e:{selectionStart:n,selectionEnd:o}},isMultiSelecting:function(e=!1,t){switch(t.type){case"START_MULTI_SELECT":return!0;case"STOP_MULTI_SELECT":return!1}return e},isSelectionEnabled:function(e=!0,t){return"TOGGLE_SELECTION"===t.type?t.isSelectionEnabled:e},initialPosition:function(e=null,t){return"REPLACE_BLOCKS"===t.type&&void 0!==t.initialPosition||["MULTI_SELECT","SELECT_BLOCK","RESET_SELECTION","INSERT_BLOCKS","REPLACE_INNER_BLOCKS"].includes(t.type)?t.initialPosition:e},blocksMode:function(e={},t){if("TOGGLE_BLOCK_MODE"===t.type){const{clientId:n}=t;return{...e,[n]:e[n]&&"html"===e[n]?"visual":"html"}}return e},blockListSettings:(e={},t)=>{switch(t.type){case"REPLACE_BLOCKS":case"REMOVE_BLOCKS":return Object.fromEntries(Object.entries(e).filter((([e])=>!t.clientIds.includes(e))));case"UPDATE_BLOCK_LIST_SETTINGS":{const n="string"==typeof t.clientId?{[t.clientId]:t.settings}:t.clientId;for(const t in n)n[t]?E()(e[t],n[t])&&delete n[t]:e[t]||delete n[t];if(0===Object.keys(n).length)return e;const o={...e,...n};for(const e in n)n[e]||delete o[e];return o}}return e},insertionPoint:function(e=null,t){switch(t.type){case"SET_INSERTION_POINT":return t.value;case"SELECT_BLOCK":return null}return e},insertionCue:function(e=null,t){switch(t.type){case"SHOW_INSERTION_POINT":{const{rootClientId:n,index:o,__unstableWithInserter:r,operation:i,nearestSide:s}=t,l={rootClientId:n,index:o,__unstableWithInserter:r,operation:i,nearestSide:s};return E()(e,l)?e:l}case"HIDE_INSERTION_POINT":return null}return e},template:function(e={isValid:!0},t){return"SET_TEMPLATE_VALIDITY"===t.type?{...e,isValid:t.isValid}:e},settings:function(e=P,t){if("UPDATE_SETTINGS"===t.type){const n=t.reset?{...P,...t.settings}:{...e,...t.settings};return Object.defineProperty(n,"__unstableIsPreviewMode",{get(){return I()("__unstableIsPreviewMode",{since:"6.8",alternative:"isPreviewMode"}),this.isPreviewMode}}),n}return e},preferences:function(e=M,t){switch(t.type){case"INSERT_BLOCKS":case"REPLACE_BLOCKS":{const n=t.blocks.reduce(((e,n)=>{const{attributes:o,name:r}=n;let i=r;const s=(0,g.select)(p.store).getActiveBlockVariation(r,o);return s?.name&&(i+="/"+s.name),"core/block"===r&&(i+="/"+o.ref),{...e,[i]:{time:t.time,count:e[i]?e[i].count+1:1}}}),e.insertUsage);return{...e,insertUsage:n}}}return e},lastBlockAttributesChange:function(e=null,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.options?.uniqueByBlock?t.attributes[n]:t.attributes})),{})}return e},lastFocus:function(e=!1,t){return"LAST_FOCUS"===t.type?t.lastFocus:e},expandedBlock:function(e=null,t){switch(t.type){case"SET_BLOCK_EXPANDED_IN_LIST_VIEW":return t.clientId;case"SELECT_BLOCK":if(t.clientId!==e)return null}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(e={},t){switch(t.type){case"INSERT_BLOCKS":case"REPLACE_BLOCKS":if(!t.blocks.length)return e;const n=t.blocks.map((e=>e.clientId)),o=t.meta?.source;return{clientIds:n,source:o};case"RESET_BLOCKS":return{}}return e},temporarilyEditingAsBlocks:function(e="",t){return"SET_TEMPORARILY_EDITING_AS_BLOCKS"===t.type?t.temporarilyEditingAsBlocks:e},temporarilyEditingFocusModeRevert:function(e="",t){return"SET_TEMPORARILY_EDITING_AS_BLOCKS"===t.type?t.focusModeToRevert:e},blockVisibility:function(e={},t){return"SET_BLOCK_VISIBILITY"===t.type?{...e,...t.updates}:e},blockEditingModes:function(e=new Map,t){switch(t.type){case"SET_BLOCK_EDITING_MODE":return e.get(t.clientId)===t.mode?e:new Map(e).set(t.clientId,t.mode);case"UNSET_BLOCK_EDITING_MODE":{if(!e.has(t.clientId))return e;const n=new Map(e);return n.delete(t.clientId),n}case"RESET_BLOCKS":return e.has("")?(new Map).set("",e.get("")):e}return e},styleOverrides:function(e=new Map,t){switch(t.type){case"SET_STYLE_OVERRIDE":return new Map(e).set(t.id,t.style);case"DELETE_STYLE_OVERRIDE":{const n=new Map(e);return n.delete(t.id),n}}return e},removalPromptData:function(e=!1,t){switch(t.type){case"DISPLAY_BLOCK_REMOVAL_PROMPT":const{clientIds:e,selectPrevious:n,message:o}=t;return{clientIds:e,selectPrevious:n,message:o};case"CLEAR_BLOCK_REMOVAL_PROMPT":return!1}return e},blockRemovalRules:function(e=!1,t){return"SET_BLOCK_REMOVAL_RULES"===t.type?t.rules:e},openedBlockSettingsMenu:function(e=null,t){return"SET_OPENED_BLOCK_SETTINGS_MENU"===t.type?t?.clientId??null:e},registeredInserterMediaCategories:function(e=[],t){return"REGISTER_INSERTER_MEDIA_CATEGORY"===t.type?[...e,t.category]:e},zoomLevel:function(e=100,t){switch(t.type){case"SET_ZOOM_LEVEL":return t.zoom;case"RESET_ZOOM_LEVEL":return 100}return e},hasBlockSpotlight:function(e,t){switch(t.type){case"TOGGLE_BLOCK_SPOTLIGHT":const{clientId:n,hasBlockSpotlight:o}=t;return o?n:e===n?null:e;case"SELECT_BLOCK":return t.clientId!==e?null:e;case"SELECTION_CHANGE":return t.start?.clientId!==e||t.end?.clientId!==e?null:e;case"CLEAR_SELECTED_BLOCK":return null}return e}});function re(e,t){if(""===t){const n=e.blocks.tree.get(t);if(!n)return;return{clientId:"",...n}}if(!e.blocks.controlledInnerBlocks[t])return e.blocks.tree.get(t);const n=e.blocks.tree.get(`controlled||${t}`);return{...e.blocks.tree.get(t),innerBlocks:n?.innerBlocks}}function ie(e,t,n){const o=re(e,t);if(o&&(n(o),o?.innerBlocks?.length))for(const t of o?.innerBlocks)ie(e,t.clientId,n)}function se(e,t,n){if(!n.length)return;let o=e.blocks.parents.get(t);for(;void 0!==o;){if(n.includes(o))return o;o=e.blocks.parents.get(o)}}function le(e,t=""){const n=e?.zoomLevel<100||"auto-scaled"===e?.zoomLevel,o=new Map,r=e.settings?.[z],i=e.blocks.order.get(r),s=Array.from(e.blockEditingModes).some((([,e])=>"disabled"===e)),l=[],a=[];Object.keys(e.blocks.controlledInnerBlocks).forEach((t=>{const n=e.blocks.byClientId?.get(t);"core/template-part"===n?.name&&l.push(t),"core/block"===n?.name&&a.push(t)}));const c=[...Object.keys(e.blockListSettings).filter((t=>"contentOnly"===e.blockListSettings[t]?.templateLock)),...window?.__experimentalContentOnlyPatternInsertion?Array.from(e.blocks.attributes.keys()).filter((t=>e.blocks.attributes.get(t)?.metadata?.patternName)):[],...window?.__experimentalContentOnlyPatternInsertion?l:[]];return ie(e,t,(t=>{const{clientId:l,name:u}=t;if(!e.blockEditingModes.has(l)){if(s){let t,n=e.blocks.parents.get(l);for(;void 0!==n&&(e.blockEditingModes.has(n)&&(t=e.blockEditingModes.get(n)),!t);)n=e.blocks.parents.get(n);if("disabled"===t)return void o.set(l,"disabled")}if(n)return l===r||i?.length&&i.includes(l)?void o.set(l,"contentOnly"):void o.set(l,"disabled");if(a.length){if(a.includes(l))return se(e,l,a)?void o.set(l,"disabled"):void 0;const n=se(e,l,a);if(n){if(se(e,n,a))return void o.set(l,"disabled");if(function(e){return e?.attributes?.metadata?.bindings&&Object.keys(e?.attributes?.metadata?.bindings).length}(t))return void o.set(l,"contentOnly");o.set(l,"disabled")}}if(c.length){!!se(e,l,c)&&($(u)?o.set(l,"contentOnly"):o.set(l,"disabled"))}}})),o}function ae({prevState:e,nextState:t,addedBlocks:n,removedClientIds:o}){const r=e.derivedBlockEditingModes;let i;return o?.forEach((t=>{ie(e,t,(e=>{r.has(e.clientId)&&(i||(i=new Map(r)),i.delete(e.clientId))}))})),n?.forEach((e=>{const n=le(t,e.clientId);n.size&&(i=i?new Map([...i?.size?i:[],...n]):new Map([...r?.size?r:[],...n]))})),i}var ce=(0,m.pipe)((function(e){return(t,n)=>{const o=e(t,n);if("SET_EDITOR_MODE"!==n.type&&o===t)return t;switch(n.type){case"REMOVE_BLOCKS":{const e=ae({prevState:t,nextState:o,removedClientIds:n.clientIds});if(e)return{...o,derivedBlockEditingModes:e??t.derivedBlockEditingModes};break}case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":{const e=ae({prevState:t,nextState:o,addedBlocks:n.blocks});if(e)return{...o,derivedBlockEditingModes:e??t.derivedBlockEditingModes};break}case"UPDATE_BLOCK_ATTRIBUTES":{const e=[],r=[];for(const i of n?.clientIds){const s=n.options?.uniqueByBlock?n.attributes[i]:n.attributes;if(!s)break;s.metadata?.patternName&&!t.blocks.attributes.get(i)?.metadata?.patternName?e.push(o.blocks.tree.get(i)):s.metadata&&!s.metadata?.patternName&&t.blocks.attributes.get(i)?.metadata?.patternName&&r.push(i)}if(!e?.length&&!r?.length)break;const i=ae({prevState:t,nextState:o,addedBlocks:e,removedClientIds:r});if(i)return{...o,derivedBlockEditingModes:i??t.derivedBlockEditingModes};break}case"UPDATE_BLOCK_LIST_SETTINGS":{const e=[],r=[],i="string"==typeof n.clientId?{[n.clientId]:n.settings}:n.clientId;for(const n in i){const i="contentOnly"!==t.blockListSettings[n]?.templateLock&&"contentOnly"===o.blockListSettings[n]?.templateLock,s="contentOnly"===t.blockListSettings[n]?.templateLock&&"contentOnly"!==o.blockListSettings[n]?.templateLock;i?e.push(o.blocks.tree.get(n)):s&&r.push(n)}if(!e.length&&!r.length)break;const s=ae({prevState:t,nextState:o,addedBlocks:e,removedClientIds:r});if(s)return{...o,derivedBlockEditingModes:s??t.derivedBlockEditingModes};break}case"SET_BLOCK_EDITING_MODE":case"UNSET_BLOCK_EDITING_MODE":case"SET_HAS_CONTROLLED_INNER_BLOCKS":{const e=re(o,n.clientId);if(!e)break;const r=ae({prevState:t,nextState:o,removedClientIds:[n.clientId],addedBlocks:[e]});if(r)return{...o,derivedBlockEditingModes:r??t.derivedBlockEditingModes};break}case"REPLACE_BLOCKS":{const e=ae({prevState:t,nextState:o,addedBlocks:n.blocks,removedClientIds:n.clientIds});if(e)return{...o,derivedBlockEditingModes:e??t.derivedBlockEditingModes};break}case"REPLACE_INNER_BLOCKS":{const e=t.blocks.order.get(n.rootClientId),r=ae({prevState:t,nextState:o,addedBlocks:n.blocks,removedClientIds:e});if(r)return{...o,derivedBlockEditingModes:r??t.derivedBlockEditingModes};break}case"MOVE_BLOCKS_TO_POSITION":{const e=n.clientIds.map((e=>o.blocks.byClientId.get(e))),r=ae({prevState:t,nextState:o,addedBlocks:e,removedClientIds:n.clientIds});if(r)return{...o,derivedBlockEditingModes:r??t.derivedBlockEditingModes};break}case"UPDATE_SETTINGS":if(t?.settings?.[z]!==o?.settings?.[z])return{...o,derivedBlockEditingModes:le(o)};break;case"RESET_BLOCKS":case"SET_EDITOR_MODE":case"RESET_ZOOM_LEVEL":case"SET_ZOOM_LEVEL":return{...o,derivedBlockEditingModes:le(o)}}return o.derivedBlockEditingModes=t?.derivedBlockEditingModes??new Map,o}}),(function(e){return(t,n)=>{const o=e(t,n);return t?(o.automaticChangeStatus=t.automaticChangeStatus,"MARK_AUTOMATIC_CHANGE"===n.type?{...o,automaticChangeStatus:"pending"}:"MARK_AUTOMATIC_CHANGE_FINAL"===n.type&&"pending"===t.automaticChangeStatus?{...o,automaticChangeStatus:"final"}:o.blocks===t.blocks&&o.selection===t.selection||"final"!==o.automaticChangeStatus&&o.selection!==t.selection?o:{...o,automaticChangeStatus:void 0}):o}}))(oe);const ue=window.wp.primitives;var de=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.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"})});const pe=window.wp.richText,he=window.wp.blockSerializationDefaultParser,ge="core/block-editor";function me(e,t,n){t=Array.isArray(t)?[...t]:[t],e=Array.isArray(e)?[...e]:{...e};const o=t.pop();let r=e;for(const e of t){const t=r[e];r=r[e]=Array.isArray(t)?[...t]:{...t}}return r[o]=n,e}const fe=(e,t,n)=>{const o=Array.isArray(t)?t:t.split(".");let r=e;return o.forEach((e=>{r=r?.[e]})),r??n};const be=["color","border","dimensions","typography","spacing"],ke={"color.palette":e=>e.colors,"color.gradients":e=>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=>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},ve={"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"},_e=e=>ve[e]||e;function ye(e,t,...n){const o=It(e,t),r=[];if(t){let n=t;do{const t=It(e,n);(0,p.hasBlockSupport)(t,"__experimentalSettings",!1)&&r.push(n)}while(n=e.blocks.parents.get(n))}return n.map((n=>{if(be.includes(n))return void console.warn("Top level useSetting paths are disabled. Please use a subpath to query the information needed.");let i=(0,f.applyFilters)("blockEditor.useSetting.before",void 0,n,t,o);if(void 0!==i)return i;const s=_e(n);for(const t of r){const n=Et(e,t);if(i=fe(n.settings?.blocks?.[o],s)??fe(n.settings,s),void 0!==i)break}const l=_o(e);if(void 0===i&&o&&(i=fe(l.__experimentalFeatures?.blocks?.[o],s)),void 0===i&&(i=fe(l.__experimentalFeatures,s)),void 0!==i)return p.__EXPERIMENTAL_PATHS_WITH_OVERRIDE[s]?i.custom??i.theme??i.default:i;const a=ke[s]?.(l);return void 0!==a?a:"typography.dropCap"===s||void 0}))}const{isContentBlock:xe}=G(p.privateApis);function Se(e){return e.isBlockInterfaceHidden}function we(e){return e?.lastBlockInserted?.clientIds}function Ce(e,t){return e.blocks.byClientId.get(t)}const Be=(e,t)=>{const n=t=>"disabled"===Do(e,t)&&xn(e,t).every(n);return xn(e,t).every(n)};function Ie(e,t,n){const o=xe(t),r=It(e,n),i=xe(r);return Xe(e)===n||i&&o}function je(e,t){const n=xn(e,t),o=[];for(const t of n){const n=je(e,t);"disabled"!==Do(e,t)?o.push({clientId:t,innerBlocks:n}):o.push(...n)}return o}const Ee=(0,g.createRegistrySelector)((()=>(0,g.createSelector)(je,(e=>[e.blocks.order,e.derivedBlockEditingModes,e.blockEditingModes])))),Te=(0,g.createSelector)(((e,t,n=!1)=>Qt(e,t,n).filter((t=>"disabled"!==Do(e,t)))),(e=>[e.blocks.parents,e.blockEditingModes,e.settings.templateLock,e.blockListSettings]));function Me(e){return e.removalPromptData}function Pe(e){return e.blockRemovalRules}function Re(e){return e.openedBlockSettingsMenu}const Ae=(0,g.createSelector)((e=>{const t=Lt(e).reduce(((e,t,n)=>(e[t]=n,e)),{});return[...e.styleOverrides].sort(((e,n)=>{const[,{clientId:o}]=e,[,{clientId:r}]=n;return(t[o]??-1)-(t[r]??-1)}))}),(e=>[e.blocks.order,e.styleOverrides]));function Ne(e){return e.registeredInserterMediaCategories}const Le=(0,g.createSelector)((e=>{const{settings:{inserterMediaCategories:t,allowedMimeTypes:n,enableOpenverseMediaCategory:o},registeredInserterMediaCategories:r}=e;if(!t&&!r.length||!n)return;const i=t?.map((({name:e})=>e))||[];return[...t||[],...(r||[]).filter((({name:e})=>!i.includes(e)))].filter((e=>!(!o&&"openverse"===e.name)&&Object.values(n).some((t=>t.startsWith(`${e.mediaType}/`)))))}),(e=>[e.settings.inserterMediaCategories,e.settings.allowedMimeTypes,e.settings.enableOpenverseMediaCategory,e.registeredInserterMediaCategories])),De=(0,g.createRegistrySelector)((e=>(0,g.createSelector)(((t,n=null)=>{const{getAllPatterns:o}=G(e(ge)),r=o(),{allowedBlockTypes:i}=_o(t);return r.some((e=>{const{inserter:o=!0}=e;if(!o)return!1;const r=bt(e);return vt(r,i)&&r.every((({name:e})=>$n(t,e,n)))}))}),((t,n)=>[..._t(e)(t),...yt(e)(t,n)])))),Oe=(0,g.createRegistrySelector)((e=>(0,g.createSelector)(((t,n)=>{if(n?.startsWith("core/block/")){const o=parseInt(n.slice(11),10),r=G(e(ge)).getReusableBlocks().find((({id:e})=>e===o));return r?mt(r,t.settings.__experimentalUserPatternCategories):null}return[...t.settings.__experimentalBlockPatterns??[],...t.settings[D]?.(e)??[]].find((({name:e})=>e===n))}),((t,n)=>n?.startsWith("core/block/")?[G(e(ge)).getReusableBlocks(),t.settings.__experimentalReusableBlocks]:[t.settings.__experimentalBlockPatterns,t.settings[D]?.(e)])))),ze=(0,g.createRegistrySelector)((e=>(0,g.createSelector)((t=>[...G(e(ge)).getReusableBlocks().map((e=>mt(e,t.settings.__experimentalUserPatternCategories))),...t.settings.__experimentalBlockPatterns??[],...t.settings[D]?.(e)??[]].filter(((e,t,n)=>t===n.findIndex((t=>e.name===t.name))))),_t(e)))),Ve=[],Fe=(0,g.createRegistrySelector)((e=>t=>{const n=t.settings[O];return(n?n(e):t.settings.__experimentalReusableBlocks)??Ve}));function He(e){return e.lastFocus}function Ue(e){return e.isDragging}function Ge(e){return e.expandedBlock}const $e=(e,t)=>{let n,o=t;for(;!n&&(o=e.blocks.parents.get(o));)"contentOnly"===Hn(e,o)&&(n=o);return n},We=(e,t)=>{let n,o=t;for(;!n&&(o=e.blocks.parents.get(o));)Ke(e,o)&&(n=o);return n};function Ke(e,t){const n=It(e,t);if("core/block"===n||"contentOnly"===Hn(e,t))return!0;const o=Et(e,t),r="core/template-part"===n;return!(!o?.metadata?.patternName&&!r||!window?.__experimentalContentOnlyPatternInsertion)}function Ze(e){return e.temporarilyEditingAsBlocks}function qe(e){return e.temporarilyEditingFocusModeRevert}const Ye=(0,g.createSelector)(((e,t)=>t.reduce(((t,n)=>(t[n]=e.blocks.attributes.get(n)?.style,t)),{})),((e,t)=>[...t.map((t=>e.blocks.attributes.get(t)?.style))]));function Xe(e){return e.settings?.[z]}function Qe(e){return"auto-scaled"===e.zoomLevel||e.zoomLevel<100}function Je(e){return e.zoomLevel}function et(e,t,n=""){const o=Array.isArray(t)?t:[t],r=t=>o.every((n=>$n(e,n,t)));if(!n){if(r(n))return n;const t=Xe(e);return t&&r(t)?t:null}let i=n;for(;null!==i&&!r(i);){i=Xt(e,i)}return i}function tt(e,t,n){const{allowedBlockTypes:o}=_o(e);if(!vt(bt(t),o))return null;return et(e,bt(t).map((({blockName:e})=>e)),n)}function nt(e){return e.insertionPoint}const ot=(e,t)=>{const n=It(e,t);if(!(0,p.hasBlockSupport)(e,n,"blockVisibility",!0))return!1;const o=e.blocks.attributes.get(t);return!1===o?.metadata?.blockVisibility};function rt(e){return!!e.hasBlockSpotlight}const it={user:"user",theme:"theme",directory:"directory"},st="fully",lt="unsynced",at={name:"allPatterns",label:(0,T._x)("All","patterns")},ct={name:"myPatterns",label:(0,T.__)("My patterns")},ut={name:"core/starter-content",label:(0,T.__)("Starter content")};function dt(e,t,n){const o=e.name.startsWith("core/block"),r="core"===e.source||e.source?.startsWith("pattern-directory");return!(t!==it.theme||!o&&!r)||(!(t!==it.directory||!o&&r)||(t===it.user&&e.type!==it.user||(n===st&&""!==e.syncStatus||!(n!==lt||"unsynced"===e.syncStatus||!o))))}const pt=Symbol("isFiltered"),ht=new WeakMap,gt=new WeakMap;function mt(e,t=[]){return{name:`core/block/${e.id}`,id:e.id,type:it.user,title:e.title?.raw,categories:e.wp_pattern_category?.map((e=>{const n=t.find((({id:t})=>t===e));return n?n.slug:e})),content:e.content?.raw,syncStatus:e.wp_pattern_sync_status}}function ft(e){let t=ht.get(e);return t||(t=function(e){const t=(0,p.parse)(e.content,{__unstableSkipMigrationLogs:!0});return 1===t.length&&(t[0].attributes={...t[0].attributes,metadata:{...t[0].attributes.metadata||{},categories:e.categories,patternName:e.name,name:t[0].attributes.metadata?.name||e.title}}),{...e,blocks:t}}(e),ht.set(e,t)),t}function bt(e){let t=gt.get(e);return t||(t=(0,he.parse)(e.content),t=t.filter((e=>null!==e.blockName)),gt.set(e,t)),t}const kt=(e,t,n=null)=>"boolean"==typeof e?e:Array.isArray(e)?!(!e.includes("core/post-content")||null!==t)||e.includes(t):n,vt=(e,t)=>{if("boolean"==typeof t)return t;const n=[...e];for(;n.length>0;){const e=n.shift();if(!kt(t,e.name||e.blockName,!0))return!1;e.innerBlocks?.forEach((e=>{n.push(e)}))}return!0},_t=e=>t=>[t.settings.__experimentalBlockPatterns,t.settings.__experimentalUserPatternCategories,t.settings.__experimentalReusableBlocks,t.settings[D]?.(e),t.blockPatterns,G(e(ge)).getReusableBlocks()],yt=()=>(e,t)=>[e.blockListSettings[t],e.blocks.byClientId.get(t),e.settings.allowedBlockTypes,e.settings.templateLock,Do(e,t),Xe(e),Ke(e,t)];function xt(e,t,n="asc"){return e.concat().sort(((e,t,n)=>(o,r)=>{let i,s;if("function"==typeof e?(i=e(o),s=e(r)):(i=o[e],s=r[e]),i>s)return"asc"===n?1:-1;if(s>i)return"asc"===n?-1:1;const l=t.findIndex((e=>e===o)),a=t.findIndex((e=>e===r));return l>a?1:a>l?-1:0})(t,e,n))}const{isContentBlock:St}=G(p.privateApis),wt=[],Ct=new Set,Bt={[pt]:!0};function It(e,t){const n=e.blocks.byClientId.get(t),o="core/social-link";if("web"!==h.Platform.OS&&n?.name===o){const n=e.blocks.attributes.get(t),{service:r}=n??{};return r?`${o}-${r}`:o}return n?n.name:null}function jt(e,t){const n=e.blocks.byClientId.get(t);return!!n&&n.isValid}function Et(e,t){return e.blocks.byClientId.get(t)?e.blocks.attributes.get(t):null}function Tt(e,t){return e.blocks.byClientId.has(t)?e.blocks.tree.get(t):null}const Mt=(0,g.createSelector)(((e,t)=>{const n=e.blocks.byClientId.get(t);return n?{...n,attributes:Et(e,t)}:null}),((e,t)=>[e.blocks.byClientId.get(t),e.blocks.attributes.get(t)]));function Pt(e,t){const n=t&&Eo(e,t)?"controlled||"+t:t||"";return e.blocks.tree.get(n)?.innerBlocks||wt}const Rt=(0,g.createSelector)(((e,t)=>(I()("wp.data.select( 'core/block-editor' ).__unstableGetClientIdWithClientIdsTree",{since:"6.3",version:"6.5"}),{clientId:t,innerBlocks:At(e,t)})),(e=>[e.blocks.order])),At=(0,g.createSelector)(((e,t="")=>(I()("wp.data.select( 'core/block-editor' ).__unstableGetClientIdsTree",{since:"6.3",version:"6.5"}),xn(e,t).map((t=>Rt(e,t))))),(e=>[e.blocks.order])),Nt=(0,g.createSelector)(((e,t)=>{t=Array.isArray(t)?[...t]:[t];const n=[];for(const o of t){const t=e.blocks.order.get(o);t&&n.push(...t)}let o=0;for(;o<n.length;){const t=n[o],r=e.blocks.order.get(t);r&&n.splice(o+1,0,...r),o++}return n}),(e=>[e.blocks.order])),Lt=e=>Nt(e,""),Dt=(0,g.createSelector)(((e,t)=>{const n=Lt(e);if(!t)return n.length;let o=0;for(const r of n){e.blocks.byClientId.get(r).name===t&&o++}return o}),(e=>[e.blocks.order,e.blocks.byClientId])),Ot=(0,g.createSelector)(((e,t)=>{if(!t)return wt;const n=Array.isArray(t)?t:[t],o=Lt(e).filter((t=>{const o=e.blocks.byClientId.get(t);return n.includes(o.name)}));return o.length>0?o:wt}),(e=>[e.blocks.order,e.blocks.byClientId]));function zt(e,t){return I()("wp.data.select( 'core/block-editor' ).__experimentalGetGlobalBlocksByName",{since:"6.5",alternative:"wp.data.select( 'core/block-editor' ).getBlocksByName"}),Ot(e,t)}const Vt=(0,g.createSelector)(((e,t)=>(Array.isArray(t)?t:[t]).map((t=>Tt(e,t)))),((e,t)=>(Array.isArray(t)?t:[t]).map((t=>e.blocks.tree.get(t))))),Ft=(0,g.createSelector)(((e,t)=>Vt(e,t).filter(Boolean).map((e=>e.name))),((e,t)=>Vt(e,t)));function Ht(e,t){return xn(e,t).length}function Ut(e){return e.selection.selectionStart}function Gt(e){return e.selection.selectionEnd}function $t(e){return e.selection.selectionStart.clientId}function Wt(e){return e.selection.selectionEnd.clientId}function Kt(e){const t=an(e).length;return t||(e.selection.selectionStart.clientId?1:0)}function Zt(e){const{selectionStart:t,selectionEnd:n}=e.selection;return!!t.clientId&&t.clientId===n.clientId}function qt(e){const{selectionStart:t,selectionEnd:n}=e.selection,{clientId:o}=t;return o&&o===n.clientId?o:null}function Yt(e){const t=qt(e);return t?Tt(e,t):null}function Xt(e,t){return e.blocks.parents.get(t)??null}const Qt=(0,g.createSelector)(((e,t,n=!1)=>{const o=[];let r=t;for(;r=e.blocks.parents.get(r);)o.push(r);return o.length?n?o:o.reverse():wt}),(e=>[e.blocks.parents])),Jt=(0,g.createSelector)(((e,t,n,o=!1)=>{const r=Qt(e,t,o),i=Array.isArray(n)?e=>n.includes(e):e=>n===e;return r.filter((t=>i(It(e,t))))}),(e=>[e.blocks.parents]));function en(e,t){let n,o=t;do{n=o,o=e.blocks.parents.get(o)}while(o);return n}function tn(e,t){const n=qt(e),o=[...Qt(e,t),t],r=[...Qt(e,n),n];let i;const s=Math.min(o.length,r.length);for(let e=0;e<s&&o[e]===r[e];e++)i=o[e];return i}function nn(e,t,n=1){if(void 0===t&&(t=qt(e)),void 0===t&&(t=n<0?un(e):dn(e)),!t)return null;const o=Xt(e,t);if(null===o)return null;const{order:r}=e.blocks,i=r.get(o),s=i.indexOf(t)+1*n;return s<0||s===i.length?null:i[s]}function on(e,t){return nn(e,t,-1)}function rn(e,t){return nn(e,t,1)}function sn(e){return e.initialPosition}const ln=(0,g.createSelector)((e=>{const{selectionStart:t,selectionEnd:n}=e.selection;if(!t.clientId||!n.clientId)return wt;if(t.clientId===n.clientId)return[t.clientId];const o=Xt(e,t.clientId);if(null===o)return wt;const r=xn(e,o),i=r.indexOf(t.clientId),s=r.indexOf(n.clientId);return i>s?r.slice(s,i+1):r.slice(i,s+1)}),(e=>[e.blocks.order,e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId]));function an(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId===n.clientId?wt:ln(e)}const cn=(0,g.createSelector)((e=>{const t=an(e);return t.length?t.map((t=>Tt(e,t))):wt}),(e=>[...ln.getDependants(e),e.blocks.byClientId,e.blocks.order,e.blocks.attributes]));function un(e){return an(e)[0]||null}function dn(e){const t=an(e);return t[t.length-1]||null}function pn(e,t){return un(e)===t}function hn(e,t){return-1!==an(e).indexOf(t)}const gn=(0,g.createSelector)(((e,t)=>{let n=t,o=!1;for(;n&&!o;)n=Xt(e,n),o=hn(e,n);return o}),(e=>[e.blocks.order,e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId]));function mn(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId===n.clientId?null:t.clientId||null}function fn(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId===n.clientId?null:n.clientId||null}function bn(e){const t=Ut(e),n=Gt(e);return!t.attributeKey&&!n.attributeKey&&void 0===t.offset&&void 0===n.offset}function kn(e){const t=Ut(e),n=Gt(e);return!!t&&!!n&&t.clientId===n.clientId&&t.attributeKey===n.attributeKey&&t.offset===n.offset}function vn(e){return ln(e).some((t=>{const n=It(e,t);return!(0,p.getBlockType)(n).merge}))}function _n(e,t){const n=Ut(e),o=Gt(e);if(n.clientId===o.clientId)return!1;if(!n.attributeKey||!o.attributeKey||void 0===n.offset||void 0===o.offset)return!1;const r=Xt(e,n.clientId);if(r!==Xt(e,o.clientId))return!1;const i=xn(e,r);let s,l;i.indexOf(n.clientId)>i.indexOf(o.clientId)?(s=o,l=n):(s=n,l=o);const a=t?l.clientId:s.clientId,c=t?s.clientId:l.clientId,u=It(e,a);if(!(0,p.getBlockType)(u).merge)return!1;const d=Tt(e,c);if(d.name===u)return!0;const h=(0,p.switchToBlockType)(d,u);return h&&h.length}const yn=e=>{const t=Ut(e),n=Gt(e);if(t.clientId===n.clientId)return wt;if(!t.attributeKey||!n.attributeKey||void 0===t.offset||void 0===n.offset)return wt;const o=Xt(e,t.clientId);if(o!==Xt(e,n.clientId))return wt;const r=xn(e,o),i=r.indexOf(t.clientId),s=r.indexOf(n.clientId),[l,a]=i>s?[n,t]:[t,n],c=Tt(e,l.clientId),u=Tt(e,a.clientId),d=c.attributes[l.attributeKey],p=u.attributes[a.attributeKey];let h=(0,pe.create)({html:d}),g=(0,pe.create)({html:p});return h=(0,pe.remove)(h,0,l.offset),g=(0,pe.remove)(g,a.offset,g.text.length),[{...c,attributes:{...c.attributes,[l.attributeKey]:(0,pe.toHTMLString)({value:h})}},{...u,attributes:{...u.attributes,[a.attributeKey]:(0,pe.toHTMLString)({value:g})}}]};function xn(e,t){return e.blocks.order.get(t||"")||wt}function Sn(e,t){return xn(e,Xt(e,t)).indexOf(t)}function wn(e,t){const{selectionStart:n,selectionEnd:o}=e.selection;return n.clientId===o.clientId&&n.clientId===t}function Cn(e,t,n=!1){const o=ln(e);return!!o.length&&(n?o.some((n=>Qt(e,n,!0).includes(t))):o.some((n=>Xt(e,n)===t)))}function Bn(e,t,n=!1){return xn(e,t).some((t=>Nn(e,t)||n&&Bn(e,t,n)))}function In(e,t){if(!t)return!1;const n=an(e),o=n.indexOf(t);return o>-1&&o<n.length-1}function jn(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId!==n.clientId}function En(e){return e.isMultiSelecting}function Tn(e){return e.isSelectionEnabled}function Mn(e,t){return e.blocksMode[t]||"visual"}function Pn(e){return e.isTyping}function Rn(e){return!!e.draggedBlocks.length}function An(e){return e.draggedBlocks}function Nn(e,t){return e.draggedBlocks.includes(t)}function Ln(e,t){if(!Rn(e))return!1;return Qt(e,t).some((t=>Nn(e,t)))}function Dn(){return I()('wp.data.select( "core/block-editor" ).isCaretWithinFormattedText',{since:"6.1",version:"6.3"}),!1}const On=(0,g.createSelector)((e=>{let t,n;const{insertionCue:o,selection:{selectionEnd:r}}=e;if(null!==o)return o;const{clientId:i}=r;return i?(t=Xt(e,i)||void 0,n=Sn(e,r.clientId)+1):n=xn(e).length,{rootClientId:t,index:n}}),(e=>[e.insertionCue,e.selection.selectionEnd.clientId,e.blocks.parents,e.blocks.order]));function zn(e){return null!==e.insertionCue}function Vn(e){return e.template.isValid}function Fn(e){return e.settings.template}function Hn(e,t){return t?vo(e,t)?.templateLock??!1:e.settings.templateLock??!1}const Un=(e,t,n=null)=>{let o,r;if(t&&"object"==typeof t?(o=t,r=t.name):(o=(0,p.getBlockType)(t),r=t),!o)return!1;const{allowedBlockTypes:i}=_o(e);if(!kt(i,r,!0))return!1;const s=(Array.isArray(o.parent)?o.parent:[]).concat(Array.isArray(o.ancestor)?o.ancestor:[]);if(s.length>0){if(s.includes("core/post-content"))return!0;let t=n,o=!1;do{if(s.includes(It(e,t))){o=!0;break}t=e.blocks.parents.get(t)}while(t);return o}return!0},Gn=(e,t,n=null)=>{if(!Un(e,t,n))return!1;let o;if(t&&"object"==typeof t?(o=t,t=o.name):o=(0,p.getBlockType)(t),Hn(e,n))return!1;const r=Do(e,n??"");if("disabled"===r)return!1;const i=vo(e,n);if(n&&void 0===i)return!1;const s=St(t),l=!!Ke(e,n),a=!!We(e,n);if((l||a)&&!s)return!1;if((l||"contentOnly"===r)&&!Ie(e,t,n))return!1;const c=It(e,n),u=(0,p.getBlockType)(c),d=u?.allowedBlocks;let h=kt(d,t);if(!1!==h){const e=i?.allowedBlocks,n=kt(e,t);null!==n&&(h=n)}const g=o.parent,m=kt(g,c);let b=!0;const k=o.ancestor;if(k){b=[n,...Qt(e,n)].some((t=>kt(k,It(e,t))))}const v=b&&(null===h&&null===m||!0===h||!0===m);return v?(0,f.applyFilters)("blockEditor.__unstableCanInsertBlockType",v,o,n,{getBlock:Tt.bind(null,e),getBlockParentsByBlockName:Jt.bind(null,e)}):v},$n=(0,g.createRegistrySelector)((e=>(0,g.createSelector)(Gn,((t,n,o)=>yt(e)(t,o)))));function Wn(e,t,n=null){return t.every((t=>$n(e,It(e,t),n)))}function Kn(e,t){const n=Et(e,t);if(null===n)return!0;if(void 0!==n.lock?.remove)return!n.lock.remove;const o=Xt(e,t);if(Hn(e,o))return!1;const r=!!We(e,t),i=St(It(e,t));if(r&&!i)return!1;const s=!!Ke(e,o),l=Do(e,o);return!((s||"contentOnly"===l)&&!Ie(e,It(e,t),o))&&"disabled"!==l}function Zn(e,t){return t.every((t=>Kn(e,t)))}function qn(e,t){const n=Et(e,t);if(null===n)return!0;if(void 0!==n.lock?.move)return!n.lock.move;const o=Xt(e,t),r=Hn(e,o);if("all"===r||"contentOnly"===r)return!1;const i=!!We(e,t),s=St(It(e,t));if(i&&!s)return!1;const l=!!Ke(e,o),a=Do(e,o);return!((l||"contentOnly"===a)&&!Ie(e,It(e,t),o))&&"disabled"!==Do(e,o)}function Yn(e,t){return t.every((t=>qn(e,t)))}function Xn(e,t){const n=Et(e,t);if(null===n)return!0;const{lock:o}=n;return!o?.edit}function Qn(e,t){return!!(0,p.hasBlockSupport)(t,"lock",!0)&&!!e.settings?.canLockBlocks}function Jn(e,t){return e.preferences.insertUsage?.[t]??null}const eo=(e,t,n)=>!!(0,p.hasBlockSupport)(t,"inserter",!0)&&Gn(e,t.name,n),to=(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}},no=(e,{buildScope:t="inserter"})=>n=>{const o=n.name;let r=!1;(0,p.hasBlockSupport)(n.name,"multiple",!0)||(r=Vt(e,Lt(e)).some((({name:e})=>e===n.name)));const{time:i,count:s=0}=Jn(e,o)||{},l={id:o,name:n.name,title:n.title,icon:n.icon,isDisabled:r,frecency:to(i,s)};if("transform"===t)return l;const a=(0,p.getBlockVariations)(n.name,"inserter");return{...l,initialAttributes:{},description:n.description,category:n.category,keywords:n.keywords,parent:n.parent,ancestor:n.ancestor,variations:a,example:n.example,utility:1}},oo=(0,g.createRegistrySelector)((e=>(0,g.createSelector)(((t,n=null,o=Bt)=>{const r=Gn(t,"core/block",n)?G(e(ge)).getReusableBlocks().map((e=>{const n=e.wp_pattern_sync_status?de:{src:de,foreground:"var(--wp-block-synced-color)"},o=mt(e),{time:r,count:i=0}=Jn(t,o.name)||{},s=to(r,i);return{id:o.name,name:"core/block",initialAttributes:{ref:e.id},title:o.title,icon:n,category:"reusable",keywords:["reusable"],isDisabled:!1,utility:1,frecency:s,content:o.content,get blocks(){return ft(o).blocks},syncStatus:o.syncStatus}})):[],i=no(t,{buildScope:"inserter"});let s=(0,p.getBlockTypes)().filter((e=>(0,p.hasBlockSupport)(e,"inserter",!0))).map(i);s=!1!==o[pt]?s.filter((e=>eo(t,e,n))):s.filter((e=>Un(t,e,n))).map((e=>({...e,isAllowedInCurrentRoot:eo(t,e,n)})));const l=[],a=s.reduce(((e,n)=>{const{variations:o=[]}=n;if(o.some((({isDefault:e})=>e))||e.push(n),o.length){const r=((e,t)=>n=>{const o=`${t.id}/${n.name}`,{time:r,count:i=0}=Jn(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:to(r,i)}})(t,n);o.map(r).forEach((t=>{"core/paragraph/stretchy-paragraph"===t.id||"core/heading/stretchy-heading"===t.id?l.push(t):e.push(t)}))}return e}),[]);a.push(...l);const{core:c,noncore:u}=a.reduce(((e,t)=>{const{core:n,noncore:o}=e;return(t.name.startsWith("core/")?n:o).push(t),e}),{core:[],noncore:[]});return[...[...c,...u],...r]}),((t,n)=>[(0,p.getBlockTypes)(),G(e(ge)).getReusableBlocks(),t.blocks.order,t.preferences.insertUsage,...yt(e)(t,n)])))),ro=(0,g.createRegistrySelector)((e=>(0,g.createSelector)(((e,t,n=null)=>{const o=Array.isArray(t)?t:[t],r=no(e,{buildScope:"transform"}),i=(0,p.getBlockTypes)().filter((t=>eo(e,t,n))).map(r),s=Object.fromEntries(Object.entries(i).map((([,e])=>[e.name,e])));return xt((0,p.getPossibleBlockTransformations)(o).reduce(((e,t)=>(s[t?.name]&&e.push(s[t.name]),e)),[]),(e=>s[e.name].frecency),"desc")}),((t,n,o)=>[(0,p.getBlockTypes)(),t.preferences.insertUsage,...yt(e)(t,o)])))),io=(e,t=null)=>{if((0,p.getBlockTypes)().some((n=>eo(e,n,t))))return!0;return Gn(e,"core/block",t)},so=(0,g.createRegistrySelector)((e=>(0,g.createSelector)(((e,t=null)=>{if(!t)return;const n=(0,p.getBlockTypes)().filter((n=>eo(e,n,t)));return Gn(e,"core/block",t)&&n.push("core/block"),n}),((t,n)=>[(0,p.getBlockTypes)(),...yt(e)(t,n)])))),lo=(0,g.createSelector)(((e,t=null)=>(I()('wp.data.select( "core/block-editor" ).__experimentalGetAllowedBlocks',{alternative:'wp.data.select( "core/block-editor" ).getAllowedBlocks',since:"6.2",version:"6.4"}),so(e,t))),((e,t)=>so.getDependants(e,t)));function ao(e,t=null){if(!t)return;const{defaultBlock:n,directInsert:o}=e.blockListSettings[t]??{};return n&&o?n:void 0}function co(e,t=null){return I()('wp.data.select( "core/block-editor" ).__experimentalGetDirectInsertBlock',{alternative:'wp.data.select( "core/block-editor" ).getDirectInsertBlock',since:"6.3",version:"6.4"}),ao(e,t)}const uo=(0,g.createRegistrySelector)((e=>(t,n)=>{const o=G(e(ge)).getPatternBySlug(n);return o?ft(o):null})),po=e=>(t,n)=>[..._t(e)(t),...yt(e)(t,n)],ho=new WeakMap;function go(e){let t=ho.get(e);return t||(t={...e,get blocks(){return ft(e).blocks}},ho.set(e,t)),t}const mo=(0,g.createRegistrySelector)((e=>(0,g.createSelector)(((t,n=null,o=Bt)=>{const{getAllPatterns:r}=G(e(ge)),i=r(),{allowedBlockTypes:s}=_o(t);return i.filter((({inserter:e=!0})=>!!e)).map(go).filter((e=>vt(bt(e),s))).filter((e=>bt(e).every((({blockName:e})=>!1!==o[pt]?$n(t,e,n):Un(t,e,n)))))}),po(e)))),fo=(0,g.createRegistrySelector)((e=>(0,g.createSelector)(((t,n,o=null)=>{if(!n)return wt;const r=e(ge).__experimentalGetAllowedPatterns(o),i=Array.isArray(n)?n:[n],s=r.filter((e=>e?.blockTypes?.some?.((e=>i.includes(e)))));return 0===s.length?wt:s}),((t,n,o)=>po(e)(t,o))))),bo=(0,g.createRegistrySelector)((e=>(I()('wp.data.select( "core/block-editor" ).__experimentalGetPatternsByBlockTypes',{alternative:'wp.data.select( "core/block-editor" ).getPatternsByBlockTypes',since:"6.2",version:"6.4"}),e(ge).getPatternsByBlockTypes))),ko=(0,g.createRegistrySelector)((e=>(0,g.createSelector)(((t,n,o=null)=>{if(!n)return wt;if(n.some((({clientId:e,innerBlocks:n})=>n.length||Eo(t,e))))return wt;const r=Array.from(new Set(n.map((({name:e})=>e))));return e(ge).getPatternsByBlockTypes(r,o)}),((t,n,o)=>po(e)(t,o)))));function vo(e,t){return e.blockListSettings[t]}function _o(e){return e.settings}function yo(e){return e.blocks.isPersistentChange}const xo=(0,g.createSelector)(((e,t=[])=>t.reduce(((t,n)=>e.blockListSettings[n]?{...t,[n]:e.blockListSettings[n]}:t),{})),(e=>[e.blockListSettings])),So=(0,g.createRegistrySelector)((e=>(0,g.createSelector)(((t,n)=>{I()("wp.data.select( 'core/block-editor' ).__experimentalGetReusableBlockTitle",{since:"6.6",version:"6.8"});const o=G(e(ge)).getReusableBlocks().find((e=>e.id===n));return o?o.title?.raw:null}),(()=>[G(e(ge)).getReusableBlocks()]))));function wo(e){return e.blocks.isIgnoredChange}function Co(e){return e.lastBlockAttributesChange}function Bo(){return I()('wp.data.select( "core/block-editor" ).hasBlockMovingClientId',{since:"6.7",hint:"Block moving mode feature has been removed"}),!1}function Io(e){return!!e.automaticChangeStatus}function jo(e,t){return e.highlightedBlock===t}function Eo(e,t){return!!e.blocks.controlledInnerBlocks[t]}const To=(0,g.createSelector)(((e,t)=>{if(!t.length)return null;const n=qt(e);if(t.includes(It(e,n)))return n;const o=an(e),r=Jt(e,n||o[0],t);return r?r[r.length-1]:null}),((e,t)=>[e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId,t]));function Mo(e,t,n){const{lastBlockInserted:o}=e;return o.clientIds?.includes(t)&&o.source===n}function Po(e,t){return e.blockVisibility?.[t]??!0}function Ro(){I()("wp.data.select( 'core/block-editor' ).getHoveredBlockClientId",{since:"6.9",version:"7.1"})}const Ao=(0,g.createSelector)((e=>{const t=new Set(Object.keys(e.blockVisibility).filter((t=>e.blockVisibility[t])));return 0===t.size?Ct:t}),(e=>[e.blockVisibility]));function No(e,t){if("default"!==Do(e,t))return!1;if(!Xn(e,t))return!0;if(Qe(e)){const n=Xe(e);if(n){const o=xn(e,n);if(o?.includes(t))return!0}else if(t&&!Xt(e,t))return!0}return!(0,p.hasBlockSupport)(It(e,t),"__experimentalDisableBlockOverlay",!1)&&Eo(e,t)&&!wn(e,t)&&!Cn(e,t,!0)}function Lo(e,t){let n=e.blocks.parents.get(t);for(;n;){if(No(e,n))return!0;n=e.blocks.parents.get(n)}return!1}function Do(e,t=""){return null===t&&(t=""),e.derivedBlockEditingModes?.has(t)?e.derivedBlockEditingModes.get(t):e.blockEditingModes.has(t)?e.blockEditingModes.get(t):"default"}const Oo=(0,g.createRegistrySelector)((e=>(t,n="")=>{const o=n||qt(t);if(!o)return!1;const{getGroupingBlockName:r}=e(p.store),i=Tt(t,o),s=r();return i&&(i.name===s||(0,p.getBlockType)(i.name)?.transforms?.ungroup)&&!!i.innerBlocks.length&&Kn(t,o)})),zo=(0,g.createRegistrySelector)((e=>(t,n=wt)=>{const{getGroupingBlockName:o}=e(p.store),r=o(),i=n?.length?n:ln(t),s=i?.length?Xt(t,i[0]):void 0;return $n(t,r,s)&&i.length&&Zn(t,i)})),Vo=(e,t)=>(I()("wp.data.select( 'core/block-editor' ).__unstableGetContentLockingParent",{since:"6.1",version:"6.7"}),$e(e,t));function Fo(e){return I()("wp.data.select( 'core/block-editor' ).__unstableGetTemporarilyEditingAsBlocks",{since:"6.1",version:"6.7"}),Ze(e)}function Ho(e){return I()("wp.data.select( 'core/block-editor' ).__unstableGetTemporarilyEditingFocusModeToRevert",{since:"6.5",version:"6.7"}),qe(e)}const Uo=window.wp.a11y,Go=["inserterMediaCategories","blockInspectorAnimation","mediaSideload"];function $o(e,{stripExperimentalSettings:t=!1,reset:n=!1}={}){let o=e;Object.hasOwn(o,"__unstableIsPreviewMode")&&(I()("__unstableIsPreviewMode argument in wp.data.dispatch('core/block-editor').updateSettings",{since:"6.8",alternative:"isPreviewMode"}),o={...o},o.isPreviewMode=o.__unstableIsPreviewMode,delete o.__unstableIsPreviewMode);let r=o;if(t&&"web"===h.Platform.OS){r={};for(const e in o)Go.includes(e)||(r[e]=o[e])}return{type:"UPDATE_SETTINGS",settings:r,reset:n}}function Wo(){return{type:"HIDE_BLOCK_INTERFACE"}}function Ko(){return{type:"SHOW_BLOCK_INTERFACE"}}const Zo=(e,t=!0,n=!1)=>({select:o,dispatch:r,registry:i})=>{if(!e||!e.length)return;var s;s=e,e=Array.isArray(s)?s:[s];if(!o.canRemoveBlocks(e))return;const l=!n&&o.getBlockRemovalRules();if(l){let n=function(e){const t=[],n=[...e];for(;n.length;){const{innerBlocks:e,...o}=n.shift();n.push(...e),t.push(o)}return t};const i=n(e.map(o.getBlock));let s;for(const n of l)if(s=n.callback(i),s)return void r(Yo(e,t,s))}t&&r.selectPreviousBlock(e[0],t),i.batch((()=>{r({type:"REMOVE_BLOCKS",clientIds:e}),r(qo())}))},qo=()=>({select:e,dispatch:t})=>{if(e.getBlockCount()>0)return;const{__unstableHasCustomAppender:n}=e.getSettings();n||t.insertDefaultBlock()};function Yo(e,t,n){return{type:"DISPLAY_BLOCK_REMOVAL_PROMPT",clientIds:e,selectPrevious:t,message:n}}function Xo(){return{type:"CLEAR_BLOCK_REMOVAL_PROMPT"}}function Qo(e=!1){return{type:"SET_BLOCK_REMOVAL_RULES",rules:e}}function Jo(e){return{type:"SET_OPENED_BLOCK_SETTINGS_MENU",clientId:e}}function er(e,t){return{type:"SET_STYLE_OVERRIDE",id:e,style:t}}function tr(e){return{type:"DELETE_STYLE_OVERRIDE",id:e}}function nr(e=null){return{type:"LAST_FOCUS",lastFocus:e}}function or(e){return({select:t,dispatch:n,registry:o})=>{const r=G(o.select(ji)).getTemporarilyEditingFocusModeToRevert();n.__unstableMarkNextChangeAsNotPersistent(),n.updateBlockAttributes(e,{templateLock:"contentOnly"}),n.updateBlockListSettings(e,{...t.getBlockListSettings(e),templateLock:"contentOnly"}),n.updateSettings({focusMode:r}),n.__unstableSetTemporarilyEditingAsBlocks()}}function rr(){return{type:"START_DRAGGING"}}function ir(){return{type:"STOP_DRAGGING"}}function sr(e){return{type:"SET_BLOCK_EXPANDED_IN_LIST_VIEW",clientId:e}}function lr(e){return{type:"SET_INSERTION_POINT",value:e}}const ar=e=>({select:t,dispatch:n})=>{n.selectBlock(e),n.__unstableMarkNextChangeAsNotPersistent(),n.updateBlockAttributes(e,{templateLock:void 0}),n.updateBlockListSettings(e,{...t.getBlockListSettings(e),templateLock:!1});const o=t.getSettings().focusMode;n.updateSettings({focusMode:!0}),n.__unstableSetTemporarilyEditingAsBlocks(e,o)},cr=(e=100)=>({select:t,dispatch:n})=>{if(100!==e){const e=t.getBlockSelectionStart(),o=t.getSectionRootClientId();if(e){let r;if(o){const n=t.getBlockOrder(o);r=n?.includes(e)?e:t.getBlockParents(e).find((e=>n.includes(e)))}else r=t.getBlockHierarchyRootClientId(e);r?n.selectBlock(r):n.clearSelectedBlock(),(0,Uo.speak)((0,T.__)("You are currently in zoom-out mode."))}}n({type:"SET_ZOOM_LEVEL",zoom:e})};function ur(){return{type:"RESET_ZOOM_LEVEL"}}function dr(e,t){return{type:"TOGGLE_BLOCK_SPOTLIGHT",clientId:e,hasBlockSpotlight:t}}const pr=window.wp.notices,hr=window.wp.preferences,gr="†";function mr(e){if(e)return Object.keys(e).find((t=>{const n=e[t];return("string"==typeof n||n instanceof pe.RichTextData)&&-1!==n.toString().indexOf(gr)}))}function fr(e){for(const[t,n]of Object.entries(e.attributes))if("rich-text"===n.source||"html"===n.source)return t}const br=e=>Array.isArray(e)?e:[e],kr=e=>({dispatch:t})=>{t({type:"RESET_BLOCKS",blocks:e}),t(vr(e))},vr=e=>({select:t,dispatch:n})=>{const o=t.getTemplate(),r=t.getTemplateLock(),i=!o||"all"!==r||(0,p.doBlocksMatchTemplate)(e,o);if(i!==t.isValidTemplate())return n.setTemplateValidity(i),i};function _r(e,t,n){return{type:"RESET_SELECTION",selectionStart:e,selectionEnd:t,initialPosition:n}}function yr(e){return I()('wp.data.dispatch( "core/block-editor" ).receiveBlocks',{since:"5.9",alternative:"resetBlocks or insertBlocks"}),{type:"RECEIVE_BLOCKS",blocks:e}}function xr(e,t,n={uniqueByBlock:!1}){return"boolean"==typeof n&&(n={uniqueByBlock:n}),{type:"UPDATE_BLOCK_ATTRIBUTES",clientIds:br(e),attributes:t,options:n}}function Sr(e,t){return{type:"UPDATE_BLOCK",clientId:e,updates:t}}function wr(e,t=0){return{type:"SELECT_BLOCK",initialPosition:t,clientId:e}}function Cr(){return I()('wp.data.dispatch( "core/block-editor" ).hoverBlock',{since:"6.9",version:"7.1"}),{type:"DO_NOTHING"}}const Br=(e,t=!1)=>({select:n,dispatch:o})=>{const r=n.getPreviousBlockClientId(e);if(r)o.selectBlock(r,-1);else if(t){const t=n.getBlockRootClientId(e);t&&o.selectBlock(t,-1)}},Ir=e=>({select:t,dispatch:n})=>{const o=t.getNextBlockClientId(e);o&&n.selectBlock(o)};function jr(){return{type:"START_MULTI_SELECT"}}function Er(){return{type:"STOP_MULTI_SELECT"}}const Tr=(e,t,n=0)=>({select:o,dispatch:r})=>{if(o.getBlockRootClientId(e)!==o.getBlockRootClientId(t))return;r({type:"MULTI_SELECT",start:e,end:t,initialPosition:n});const i=o.getSelectedBlockCount();(0,Uo.speak)((0,T.sprintf)((0,T._n)("%s block selected.","%s blocks selected.",i),i),"assertive")};function Mr(){return{type:"CLEAR_SELECTED_BLOCK"}}function Pr(e=!0){return{type:"TOGGLE_SELECTION",isSelectionEnabled:e}}const Rr=(e,t,n,o=0,r)=>({select:i,dispatch:s,registry:l})=>{e=br(e),t=br(t);const a=i.getBlockRootClientId(e[0]);for(let e=0;e<t.length;e++){const n=t[e];if(!i.canInsertBlockType(n.name,a))return}l.batch((()=>{s({type:"REPLACE_BLOCKS",clientIds:e,blocks:t,time:Date.now(),indexToSelect:n,initialPosition:o,meta:r}),s.ensureDefaultBlock()}))};function Ar(e,t){return Rr(e,t)}const Nr=e=>(t,n)=>({select:o,dispatch:r})=>{o.canMoveBlocks(t)&&r({type:e,clientIds:br(t),rootClientId:n})},Lr=Nr("MOVE_BLOCKS_DOWN"),Dr=Nr("MOVE_BLOCKS_UP"),Or=(e,t="",n="",o)=>({select:r,dispatch:i})=>{if(r.canMoveBlocks(e)){if(t!==n){if(!r.canRemoveBlocks(e))return;if(!r.canInsertBlocks(e,n))return}i({type:"MOVE_BLOCKS_TO_POSITION",fromRootClientId:t,toRootClientId:n,clientIds:e,index:o})}};function zr(e,t="",n="",o){return Or([e],t,n,o)}function Vr(e,t,n,o,r){return Fr([e],t,n,o,0,r)}const Fr=(e,t,n,o=!0,r=0,i)=>({select:s,dispatch:l})=>{null!==r&&"object"==typeof r&&(i=r,r=0,I()("meta argument in wp.data.dispatch('core/block-editor')",{since:"5.8",hint:"The meta argument is now the 6th argument of the function"})),e=br(e);const a=[];for(const t of e){s.canInsertBlockType(t.name,n)&&a.push(t)}a.length&&l({type:"INSERT_BLOCKS",blocks:a,index:t,rootClientId:n,time:Date.now(),updateSelection:o,initialPosition:o?r:null,meta:i})};function Hr(e,t,n={}){const{__unstableWithInserter:o,operation:r,nearestSide:i}=n;return{type:"SHOW_INSERTION_POINT",rootClientId:e,index:t,__unstableWithInserter:o,operation:r,nearestSide:i}}const Ur=()=>({select:e,dispatch:t})=>{e.isBlockInsertionPointVisible()&&t({type:"HIDE_INSERTION_POINT"})};function Gr(e){return{type:"SET_TEMPLATE_VALIDITY",isValid:e}}const $r=()=>({select:e,dispatch:t})=>{t({type:"SYNCHRONIZE_TEMPLATE"});const n=e.getBlocks(),o=e.getTemplate(),r=(0,p.synchronizeBlocksWithTemplate)(n,o);t.resetBlocks(r)},Wr=e=>({registry:t,select:n,dispatch:o})=>{const r=n.getSelectionStart(),i=n.getSelectionEnd();if(r.clientId===i.clientId)return;if(!r.attributeKey||!i.attributeKey||void 0===r.offset||void 0===i.offset)return!1;const s=n.getBlockRootClientId(r.clientId);if(s!==n.getBlockRootClientId(i.clientId))return;const l=n.getBlockOrder(s);let a,c;l.indexOf(r.clientId)>l.indexOf(i.clientId)?(a=i,c=r):(a=r,c=i);const u=e?c:a,d=n.getBlock(u.clientId),h=(0,p.getBlockType)(d.name);if(!h.merge)return;const g=a,m=c,f=n.getBlock(g.clientId),b=n.getBlock(m.clientId),k=f.attributes[g.attributeKey],v=b.attributes[m.attributeKey];let _=(0,pe.create)({html:k}),y=(0,pe.create)({html:v});_=(0,pe.remove)(_,g.offset,_.text.length),y=(0,pe.insert)(y,gr,0,m.offset);const x=(0,p.cloneBlock)(f,{[g.attributeKey]:(0,pe.toHTMLString)({value:_})}),S=(0,p.cloneBlock)(b,{[m.attributeKey]:(0,pe.toHTMLString)({value:y})}),w=e?x:S,C=f.name===b.name?[w]:(0,p.switchToBlockType)(w,h.name);if(!C||!C.length)return;let B;if(e){const e=C.pop();B=h.merge(e.attributes,S.attributes)}else{const e=C.shift();B=h.merge(x.attributes,e.attributes)}const I=mr(B),j=B[I],E=(0,pe.create)({html:j}),T=E.text.indexOf(gr),M=(0,pe.remove)(E,T,T+1),P=(0,pe.toHTMLString)({value:M});B[I]=P;const R=n.getSelectedBlockClientIds(),A=[...e?C:[],{...d,attributes:{...d.attributes,...B}},...e?[]:C];t.batch((()=>{o.selectionChange(d.clientId,I,T,T),o.replaceBlocks(R,A,0,n.getSelectedBlocksInitialCaretPosition())}))},Kr=(e=[])=>({registry:t,select:n,dispatch:o})=>{const r=n.getSelectionStart(),i=n.getSelectionEnd(),s=n.getBlockRootClientId(r.clientId),l=n.getBlockRootClientId(i.clientId);if(s!==l)return;const a=n.getBlockOrder(s);let c,u;a.indexOf(r.clientId)>a.indexOf(i.clientId)?(c=i,u=r):(c=r,u=i);const d=c,h=u,g=n.getBlock(d.clientId),m=n.getBlock(h.clientId),f=(0,p.getBlockType)(g.name),b=(0,p.getBlockType)(m.name),k="string"==typeof d.attributeKey?d.attributeKey:fr(f),v="string"==typeof h.attributeKey?h.attributeKey:fr(b),_=n.getBlockAttributes(d.clientId),y=_?.metadata?.bindings;if(y?.[k]){if(e.length){const{createWarningNotice:e}=t.dispatch(pr.store);return void e((0,T.__)("Blocks can't be inserted into other blocks with bindings"),{type:"snackbar"})}return void o.insertAfterBlock(d.clientId)}if(!k||!v||void 0===r.offset||void 0===i.offset)return;if(d.clientId===h.clientId&&k===v&&d.offset===h.offset)if(e.length){if((0,p.isUnmodifiedDefaultBlock)(g))return void o.replaceBlocks([d.clientId],e,e.length-1,-1)}else if(!n.getBlockOrder(d.clientId).length){let e=function(){const e=(0,p.getDefaultBlockName)();return n.canInsertBlockType(e,s)?(0,p.createBlock)(e):(0,p.createBlock)(n.getBlockName(d.clientId))};const t=_[k].length;if(0===d.offset&&t)return void o.insertBlocks([e()],n.getBlockIndex(d.clientId),s,!1);if(d.offset===t)return void o.insertBlocks([e()],n.getBlockIndex(d.clientId)+1,s)}const x=g.attributes[k],S=m.attributes[v];let w=(0,pe.create)({html:x}),C=(0,pe.create)({html:S});w=(0,pe.remove)(w,d.offset,w.text.length),C=(0,pe.remove)(C,0,h.offset);let B={...g,innerBlocks:g.clientId===m.clientId?[]:g.innerBlocks,attributes:{...g.attributes,[k]:(0,pe.toHTMLString)({value:w})}},I={...m,clientId:g.clientId===m.clientId?(0,p.createBlock)(m.name).clientId:m.clientId,attributes:{...m.attributes,[v]:(0,pe.toHTMLString)({value:C})}};const j=(0,p.getDefaultBlockName)();if(g.clientId===m.clientId&&j&&I.name!==j&&n.canInsertBlockType(j,s)){const e=(0,p.switchToBlockType)(I,j);1===e?.length&&(I=e[0])}if(!e.length)return void o.replaceBlocks(n.getSelectedBlockClientIds(),[B,I]);let E;const M=[],P=[...e],R=P.shift(),A=(0,p.getBlockType)(B.name),N=A.merge&&R.name===A.name?[R]:(0,p.switchToBlockType)(R,A.name);if(N?.length){const e=N.shift();B={...B,attributes:{...B.attributes,...A.merge(B.attributes,e.attributes)}},M.push(B),E={clientId:B.clientId,attributeKey:k,offset:(0,pe.create)({html:B.attributes[k]}).text.length},P.unshift(...N)}else(0,p.isUnmodifiedBlock)(B)||M.push(B),M.push(R);const L=P.pop(),D=(0,p.getBlockType)(I.name);if(P.length&&M.push(...P),L){const e=D.merge&&D.name===L.name?[L]:(0,p.switchToBlockType)(L,D.name);if(e?.length){const t=e.pop();M.push({...I,attributes:{...I.attributes,...D.merge(t.attributes,I.attributes)}}),M.push(...e),E={clientId:I.clientId,attributeKey:v,offset:(0,pe.create)({html:t.attributes[v]}).text.length}}else M.push(L),(0,p.isUnmodifiedBlock)(I)||M.push(I)}else(0,p.isUnmodifiedBlock)(I)||M.push(I);t.batch((()=>{o.replaceBlocks(n.getSelectedBlockClientIds(),M,M.length-1,0),E&&o.selectionChange(E.clientId,E.attributeKey,E.offset,E.offset)}))},Zr=()=>({select:e,dispatch:t})=>{const n=e.getSelectionStart(),o=e.getSelectionEnd();t.selectionChange({start:{clientId:n.clientId},end:{clientId:o.clientId}})},qr=(e,t)=>({registry:n,select:o,dispatch:r})=>{const i=e,s=t,l=o.getBlock(i),a=(0,p.getBlockType)(l.name);if(!a||"disabled"===o.getBlockEditingMode(i)||"disabled"===o.getBlockEditingMode(s))return;const c=o.getBlock(s);if(!a.merge&&(0,p.getBlockSupport)(l.name,"__experimentalOnMerge")){const e=(0,p.switchToBlockType)(c,a.name);if(1!==e?.length)return void r.selectBlock(l.clientId);const[t]=e;return t.innerBlocks.length<1?void r.selectBlock(l.clientId):void n.batch((()=>{r.insertBlocks(t.innerBlocks,void 0,i),r.removeBlock(s),r.selectBlock(t.innerBlocks[0].clientId);const e=o.getNextBlockClientId(i);if(e&&o.getBlockName(i)===o.getBlockName(e)){const t=o.getBlockAttributes(i),n=o.getBlockAttributes(e);Object.keys(t).every((e=>t[e]===n[e]))&&(r.moveBlocksToPosition(o.getBlockOrder(e),e,i),r.removeBlock(e,!1))}}))}if((0,p.isUnmodifiedDefaultBlock)(l))return void r.removeBlock(i,o.isBlockSelected(i));if((0,p.isUnmodifiedDefaultBlock)(c))return void r.removeBlock(s,o.isBlockSelected(s));if(!a.merge)return void((0,p.isUnmodifiedBlock)(c,"content")?r.removeBlock(s,o.isBlockSelected(s)):r.selectBlock(l.clientId));const u=(0,p.getBlockType)(c.name),{clientId:d,attributeKey:h,offset:g}=o.getSelectionStart(),m=(d===i?a:u).attributes[h],f=(d===i||d===s)&&void 0!==h&&void 0!==g&&!!m;m||("number"==typeof h?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 h):window.console.error("The RichText identifier prop does not match any attributes defined by the block."));const b=(0,p.cloneBlock)(l),k=(0,p.cloneBlock)(c);if(f){const e=d===i?b:k,t=e.attributes[h],n=(0,pe.insert)((0,pe.create)({html:t}),gr,g,g);e.attributes[h]=(0,pe.toHTMLString)({value:n})}const v=l.name===c.name?[k]:(0,p.switchToBlockType)(k,l.name);if(!v||!v.length)return;const _=a.merge(b.attributes,v[0].attributes);if(f){const e=mr(_),t=_[e],n=(0,pe.create)({html:t}),o=n.text.indexOf(gr),i=(0,pe.remove)(n,o,o+1),s=(0,pe.toHTMLString)({value:i});_[e]=s,r.selectionChange(l.clientId,e,o,o)}r.replaceBlocks([l.clientId,c.clientId],[{...l,attributes:{...l.attributes,..._}},...v.slice(1)],0)},Yr=(e,t=!0)=>Zo(e,t);function Xr(e,t){return Yr([e],t)}function Qr(e,t,n=!1,o=0){return{type:"REPLACE_INNER_BLOCKS",rootClientId:e,blocks:t,updateSelection:n,initialPosition:n?o:null,time:Date.now()}}function Jr(e){return{type:"TOGGLE_BLOCK_MODE",clientId:e}}function ei(){return{type:"START_TYPING"}}function ti(){return{type:"STOP_TYPING"}}function ni(e=[]){return{type:"START_DRAGGING_BLOCKS",clientIds:e}}function oi(){return{type:"STOP_DRAGGING_BLOCKS"}}function ri(){return I()('wp.data.dispatch( "core/block-editor" ).enterFormattedText',{since:"6.1",version:"6.3"}),{type:"DO_NOTHING"}}function ii(){return I()('wp.data.dispatch( "core/block-editor" ).exitFormattedText',{since:"6.1",version:"6.3"}),{type:"DO_NOTHING"}}function si(e,t,n,o){return"string"==typeof e?{type:"SELECTION_CHANGE",clientId:e,attributeKey:t,startOffset:n,endOffset:o}:{type:"SELECTION_CHANGE",...e}}const li=(e,t,n)=>({dispatch:o})=>{const r=(0,p.getDefaultBlockName)();if(!r)return;const i=(0,p.createBlock)(r,e);return o.insertBlock(i,n,t)};function ai(e,t){return{type:"UPDATE_BLOCK_LIST_SETTINGS",clientId:e,settings:t}}function ci(e){return $o(e,{stripExperimentalSettings:!0})}function ui(e,t){return{type:"SAVE_REUSABLE_BLOCK_SUCCESS",id:e,updatedId:t}}function di(){return{type:"MARK_LAST_CHANGE_AS_PERSISTENT"}}function pi(){return{type:"MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"}}const hi=()=>({dispatch:e})=>{e({type:"MARK_AUTOMATIC_CHANGE"});const{requestIdleCallback:t=e=>setTimeout(e,100)}=window;t((()=>{e({type:"MARK_AUTOMATIC_CHANGE_FINAL"})}))},gi=e=>({registry:t})=>{t.dispatch(hr.store).set("core","editorTool",e),"navigation"===e?(0,Uo.speak)((0,T.__)("You are currently in Write mode.")):"edit"===e&&(0,Uo.speak)((0,T.__)("You are currently in Design mode."))};function mi(){return I()('wp.data.dispatch( "core/block-editor" ).setBlockMovingClientId',{since:"6.7",hint:"Block moving mode feature has been removed"}),{type:"DO_NOTHING"}}const fi=(e,t=!0)=>({select:n,dispatch:o})=>{if(!e||!e.length)return;const r=n.getBlocksByClientId(e);if(r.some((e=>!e)))return;if(r.map((e=>e.name)).some((e=>!(0,p.hasBlockSupport)(e,"multiple",!0))))return;const i=n.getBlockRootClientId(e[0]),s=br(e),l=n.getBlockIndex(s[s.length-1]),a=r.map((e=>(0,p.__experimentalCloneSanitizedBlock)(e)));return o.insertBlocks(a,l+1,i,t),a.length>1&&t&&o.multiSelect(a[0].clientId,a[a.length-1].clientId),a.map((e=>e.clientId))},bi=e=>({select:t,dispatch:n})=>{if(!e)return;const o=t.getBlockRootClientId(e);if(t.getTemplateLock(o))return;const r=t.getBlockIndex(e),i=o?t.getDirectInsertBlock(o):null;if(!i)return n.insertDefaultBlock({},o,r);const s={};if(i.attributesToCopy){const n=t.getBlockAttributes(e);i.attributesToCopy.forEach((e=>{n[e]&&(s[e]=n[e])}))}const l=(0,p.createBlock)(i.name,{...i.attributes,...s});return n.insertBlock(l,r,o)},ki=e=>({select:t,dispatch:n})=>{if(!e)return;const o=t.getBlockRootClientId(e);if(t.getTemplateLock(o))return;const r=t.getBlockIndex(e),i=o?t.getDirectInsertBlock(o):null;if(!i)return n.insertDefaultBlock({},o,r+1);const s={};if(i.attributesToCopy){const n=t.getBlockAttributes(e);i.attributesToCopy.forEach((e=>{n[e]&&(s[e]=n[e])}))}const l=(0,p.createBlock)(i.name,{...i.attributes,...s});return n.insertBlock(l,r+1,o)};function vi(e,t){return{type:"TOGGLE_BLOCK_HIGHLIGHT",clientId:e,isHighlighted:t}}const _i=(e,t=150)=>async({dispatch:n})=>{n(vi(e,!0)),await new Promise((e=>setTimeout(e,t))),n(vi(e,!1))};function yi(e,t){return{type:"SET_HAS_CONTROLLED_INNER_BLOCKS",hasControlledInnerBlocks:t,clientId:e}}function xi(e){return{type:"SET_BLOCK_VISIBILITY",updates:e}}function Si(e,t){return{type:"SET_TEMPORARILY_EDITING_AS_BLOCKS",temporarilyEditingAsBlocks:e,focusModeToRevert:t}}const wi=e=>({select:t,dispatch:n})=>{if(!e||"object"!=typeof e)return void console.error("Category should be an `InserterMediaCategory` object.");if(!e.name)return void console.error("Category should have a `name` that should be unique among all media categories.");if(!e.labels?.name)return void console.error("Category should have a `labels.name`.");if(!["image","audio","video"].includes(e.mediaType))return void console.error("Category should have `mediaType` property that is one of `image|audio|video`.");if(!e.fetch||"function"!=typeof e.fetch)return void console.error("Category should have a `fetch` function defined with the following signature `(InserterMediaRequest) => Promise<InserterMediaItem[]>`.");const o=t.getRegisteredInserterMediaCategories();o.some((({name:t})=>t===e.name))?console.error(`A category is already registered with the same name: "${e.name}".`):o.some((({labels:{name:t}={}})=>t===e.labels?.name))?console.error(`A category is already registered with the same labels.name: "${e.labels.name}".`):n({type:"REGISTER_INSERTER_MEDIA_CATEGORY",category:{...e,isExternalResource:!0}})};function Ci(e="",t){return{type:"SET_BLOCK_EDITING_MODE",clientId:e,mode:t}}function Bi(e=""){return{type:"UNSET_BLOCK_EDITING_MODE",clientId:e}}const Ii={reducer:ce,selectors:t,actions:i},ji=(0,g.createReduxStore)(ge,{...Ii,persist:["preferences"]}),Ei=(0,g.registerStore)(ge,{...Ii,persist:["preferences"]});function Ti(...e){const{clientId:t=null}=C();return(0,g.useSelect)((n=>G(n(ji)).getBlockSettings(t,...e)),[t,...e])}function Mi(e){I()("wp.blockEditor.useSetting",{since:"6.5",alternative:"wp.blockEditor.useSettings",note:"The new useSettings function can retrieve multiple settings at once, with better performance."});const[t]=Ti(e);return t}G(Ei).registerPrivateActions(r),G(Ei).registerPrivateSelectors(e),G(ji).registerPrivateActions(r),G(ji).registerPrivateSelectors(e);const Pi=window.wp.styleEngine,Ri="1600px",Ai="320px",Ni=1,Li=.25,Di=.75,Oi="14px";function zi({minimumFontSize:e,maximumFontSize:t,fontSize:n,minimumViewportWidth:o=Ai,maximumViewportWidth:r=Ri,scaleFactor:i=Ni,minimumFontSizeLimit:s}){if(s=Vi(s)?s:Oi,n){const o=Vi(n);if(!o?.unit)return null;const r=Vi(s,{coerceTo:o.unit});if(r?.value&&!e&&!t&&o?.value<=r?.value)return null;if(t||(t=`${o.value}${o.unit}`),!e){const t="px"===o.unit?o.value:16*o.value,n=Math.min(Math.max(1-.075*Math.log2(t),Li),Di),i=Fi(o.value*n,3);e=r?.value&&i<r?.value?`${r.value}${r.unit}`:`${i}${o.unit}`}}const l=Vi(e),a=l?.unit||"rem",c=Vi(t,{coerceTo:a});if(!l||!c)return null;const u=Vi(e,{coerceTo:"rem"}),d=Vi(r,{coerceTo:a}),p=Vi(o,{coerceTo:a});if(!d||!p||!u)return null;const h=d.value-p.value;if(!h)return null;const g=Fi(p.value/100,3),m=Fi(g,3)+a,f=Fi(((c.value-l.value)/h*100||1)*i,3);return`clamp(${e}, ${`${u.value}${u.unit} + ((1vw - ${m}) * ${f})`}, ${t})`}function Vi(e,t={}){if("string"!=typeof e&&"number"!=typeof e)return null;isFinite(e)&&(e=`${e}px`);const{coerceTo:n,rootSizeValue:o,acceptableUnits:r}={coerceTo:"",rootSizeValue:16,acceptableUnits:["rem","px","em"],...t},i=r?.join("|"),s=new RegExp(`^(\\d*\\.?\\d+)(${i}){1,1}$`),l=e.match(s);if(!l||l.length<3)return null;let[,a,c]=l,u=parseFloat(a);return"px"!==n||"em"!==c&&"rem"!==c||(u*=o,c=n),"px"!==c||"em"!==n&&"rem"!==n||(u/=o,c=n),"em"!==n&&"rem"!==n||"em"!==c&&"rem"!==c||(c=n),{value:Fi(u,3),unit:c}}function Fi(e,t=3){const n=Math.pow(10,t);return Number.isFinite(e)?parseFloat(Math.round(e*n)/n):void 0}function Hi(e){if(!e)return{};if("object"==typeof e)return e;let t;switch(e){case"normal":case"400":t=(0,T._x)("Regular","font weight");break;case"bold":case"700":t=(0,T._x)("Bold","font weight");break;case"100":t=(0,T._x)("Thin","font weight");break;case"200":t=(0,T._x)("Extra Light","font weight");break;case"300":t=(0,T._x)("Light","font weight");break;case"500":t=(0,T._x)("Medium","font weight");break;case"600":t=(0,T._x)("Semi Bold","font weight");break;case"800":t=(0,T._x)("Extra Bold","font weight");break;case"900":t=(0,T._x)("Black","font weight");break;case"1000":t=(0,T._x)("Extra Black","font weight");break;default:t=e}return{name:t,value:e}}const Ui=[{name:(0,T._x)("Regular","font style"),value:"normal"},{name:(0,T._x)("Italic","font style"),value:"italic"}],Gi=[{name:(0,T._x)("Thin","font weight"),value:"100"},{name:(0,T._x)("Extra Light","font weight"),value:"200"},{name:(0,T._x)("Light","font weight"),value:"300"},{name:(0,T._x)("Regular","font weight"),value:"400"},{name:(0,T._x)("Medium","font weight"),value:"500"},{name:(0,T._x)("Semi Bold","font weight"),value:"600"},{name:(0,T._x)("Bold","font weight"),value:"700"},{name:(0,T._x)("Extra Bold","font weight"),value:"800"},{name:(0,T._x)("Black","font weight"),value:"900"},{name:(0,T._x)("Extra Black","font weight"),value:"1000"}];function $i(e){let t=[],n=[];const o=[],r=!e||0===e?.length;let i=!1;return e?.forEach((e=>{if("string"==typeof e.fontWeight&&/\s/.test(e.fontWeight.trim())){i=!0;let[t,o]=e.fontWeight.split(" ");t=parseInt(t.slice(0,1)),o="1000"===o?10:parseInt(o.slice(0,1));for(let e=t;e<=o;e++){const t=`${e.toString()}00`;n.some((e=>e.value===t))||n.push(Hi(t))}}const o=Hi("number"==typeof e.fontWeight?e.fontWeight.toString():e.fontWeight),r=function(e){if(!e)return{};if("object"==typeof e)return e;let t;switch(e){case"normal":t=(0,T._x)("Regular","font style");break;case"italic":t=(0,T._x)("Italic","font style");break;case"oblique":t=(0,T._x)("Oblique","font style");break;default:t=e}return{name:t,value:e}}(e.fontStyle);r&&Object.keys(r).length&&(t.some((e=>e.value===r.value))||t.push(r)),o&&Object.keys(o).length&&(n.some((e=>e.value===o.value))||i||n.push(o))})),n.some((e=>e.value>="600"))||n.push({name:(0,T._x)("Bold","font weight"),value:"700"}),t.some((e=>"italic"===e.value))||t.push({name:(0,T._x)("Italic","font style"),value:"italic"}),r&&(t=Ui,n=Gi),t=0===t.length?Ui:t,n=0===n.length?Gi:n,t.forEach((({name:e,value:t})=>{n.forEach((({name:n,value:r})=>{const i="normal"===t?n:(0,T.sprintf)((0,T._x)("%1$s %2$s","font"),n,e);o.push({key:`${t}-${r}`,name:i,style:{fontStyle:t,fontWeight:r}})}))})),{fontStyles:t,fontWeights:n,combinedStyleAndWeightOptions:o,isSystemFont:r,isVariableFont:i}}function Wi(e,t){const{size:n}=e;if(!n||"0"===n||!1===e?.fluid)return n;if(!Ki(t?.typography)&&!Ki(e))return n;let o=function(e){const t=e?.typography,n=e?.layout,o=Vi(n?.wideSize)?n?.wideSize:null;return Ki(t)&&o?{fluid:{maxViewportWidth:o,...t.fluid}}:{fluid:t?.fluid}}(t);o="object"==typeof o?.fluid?o?.fluid:{};const r=zi({minimumFontSize:e?.fluid?.min,maximumFontSize:e?.fluid?.max,fontSize:n,minimumFontSizeLimit:o?.minFontSize,maximumViewportWidth:o?.maxViewportWidth,minimumViewportWidth:o?.minViewportWidth});return r||n}function Ki(e){const t=e?.fluid;return!0===t||t&&"object"==typeof t&&Object.keys(t).length>0}function Zi(e,t){if(!(t="number"==typeof t?t.toString():t)||"string"!=typeof t)return"";if(!e||0===e.length)return t;const n=e?.reduce(((e,{value:n})=>Math.abs(parseInt(n)-parseInt(t))<Math.abs(parseInt(e)-parseInt(t))?n:e),e[0]?.value);return n}const qi="body",Yi=":root",Xi=[{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:["color","duotone"],valueKey:"colors",cssVarInfix:"duotone",valueFunc:({slug:e})=>`url( '#wp-duotone-${e}' )`,classes:[]},{path:["shadow","presets"],valueKey:"shadow",cssVarInfix:"shadow",classes:[]},{path:["typography","fontSizes"],valueFunc:(e,t)=>Wi(e,t),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"}]},{path:["spacing","spacingSizes"],valueKey:"size",cssVarInfix:"spacing",classes:[]},{path:["border","radiusSizes"],valueKey:"size",cssVarInfix:"border-radius",classes:[]}],Qi={"color.background":"color","color.text":"color","filter.duotone":"duotone","elements.link.color.text":"color","elements.link.:hover.color.text":"color","elements.link.typography.fontFamily":"font-family","elements.link.typography.fontSize":"font-size","elements.button.color.text":"color","elements.button.color.background":"color","elements.caption.color.text":"color","elements.button.typography.fontFamily":"font-family","elements.button.typography.fontSize":"font-size","elements.heading.color":"color","elements.heading.color.background":"color","elements.heading.typography.fontFamily":"font-family","elements.heading.gradient":"gradient","elements.heading.color.gradient":"gradient","elements.h1.color":"color","elements.h1.color.background":"color","elements.h1.typography.fontFamily":"font-family","elements.h1.color.gradient":"gradient","elements.h2.color":"color","elements.h2.color.background":"color","elements.h2.typography.fontFamily":"font-family","elements.h2.color.gradient":"gradient","elements.h3.color":"color","elements.h3.color.background":"color","elements.h3.typography.fontFamily":"font-family","elements.h3.color.gradient":"gradient","elements.h4.color":"color","elements.h4.color.background":"color","elements.h4.typography.fontFamily":"font-family","elements.h4.color.gradient":"gradient","elements.h5.color":"color","elements.h5.color.background":"color","elements.h5.typography.fontFamily":"font-family","elements.h5.color.gradient":"gradient","elements.h6.color":"color","elements.h6.color.background":"color","elements.h6.typography.fontFamily":"font-family","elements.h6.color.gradient":"gradient","color.gradient":"gradient",shadow:"shadow","typography.fontSize":"font-size","typography.fontFamily":"font-family"};function Ji(){return(0,m.useViewportMatch)("medium","<")?{}:{popoverProps:{placement:"left-start",offset:259}}}function es(e,t,n,o,r){const i=[fe(e,["blocks",t,...n]),fe(e,n)];for(const s of i)if(s){const i=["custom","theme","default"];for(const l of i){const i=s[l];if(i){const s=i.find((e=>e[o]===r));if(s){if("slug"===o)return s;return es(e,t,n,"slug",s.slug)[o]===s[o]?s:void 0}}}}}function ts(e,t,n){if(!n||"string"!=typeof n){if("string"!=typeof n?.ref)return n;if(!(n=fe(e,n.ref))||n?.ref)return n}const o="var:",r="var(--wp--";let i;if(n.startsWith(o))i=n.slice(4).split("|");else{if(!n.startsWith(r)||!n.endsWith(")"))return n;i=n.slice(10,-1).split("--")}const[s,...l]=i;return"preset"===s?function(e,t,n,[o,r]){const i=Xi.find((e=>e.cssVarInfix===o));if(!i)return n;const s=es(e.settings,t,i.path,"slug",r);if(s){const{valueKey:n}=i;return ts(e,t,s[n])}return n}(e,t,n,l):"custom"===s?function(e,t,n,o){const r=fe(e.settings,["blocks",t,"custom",...o])??fe(e.settings,["custom",...o]);return r?ts(e,t,r):n}(e,t,n,l):n}function ns(e,t){if(!e||!t)return t;const n=e.split(","),o=t.split(","),r=[];return n.forEach((e=>{o.forEach((t=>{r.push(`${e.trim()} ${t.trim()}`)}))})),r.join(", ")}function os(e,t){return"object"!=typeof e||"object"!=typeof t?e===t:E()(e?.styles,t?.styles)&&E()(e?.settings,t?.settings)}function rs(e,t){if(!e||!t)return e;const n=function(e,t){if(!e||!t)return e;if("string"!=typeof e&&e?.ref){const n=(0,Pi.getCSSValueFromRawStyle)(fe(t,e.ref));if(n?.ref)return;return void 0===n?e:n}return e}(e,t);return n?.url&&(n.url=function(e,t){if(!e||!t||!Array.isArray(t))return e;const n=t.find((t=>t?.name===e));return n?.href?n?.href:e}(n.url,t?._links?.["wp:theme-file"])),n}const is=(0,h.createContext)({user:{},base:{},merged:{},setUserConfig:()=>{}});is.displayName="GlobalStylesContext";const ss={settings:{},styles:{}},ls=["appearanceTools","useRootPaddingAwareAlignments","background.backgroundImage","background.backgroundRepeat","background.backgroundSize","background.backgroundPosition","border.color","border.radius","border.style","border.width","border.radiusSizes","shadow.presets","shadow.defaultPresets","color.background","color.button","color.caption","color.custom","color.customDuotone","color.customGradient","color.defaultDuotone","color.defaultGradients","color.defaultPalette","color.duotone","color.gradients","color.heading","color.link","color.palette","color.text","custom","dimensions.aspectRatio","dimensions.minHeight","layout.contentSize","layout.definitions","layout.wideSize","lightbox.enabled","lightbox.allowEditing","position.fixed","position.sticky","spacing.customSpacingSize","spacing.defaultSpacingSizes","spacing.spacingSizes","spacing.spacingScale","spacing.blockGap","spacing.margin","spacing.padding","spacing.units","typography.fluid","typography.customFontSize","typography.defaultFontSizes","typography.dropCap","typography.fontFamilies","typography.fontSizes","typography.fontStyle","typography.fontWeight","typography.letterSpacing","typography.lineHeight","typography.textAlign","typography.textColumns","typography.textDecoration","typography.textTransform","typography.writingMode"],as=()=>{const{user:e,setUserConfig:t}=(0,h.useContext)(is),n={settings:e.settings,styles:e.styles};return[!!n&&!E()(n,ss),(0,h.useCallback)((()=>t(ss)),[t])]};function cs(e,t,n="all"){const{setUserConfig:o,...r}=(0,h.useContext)(is),i=t?".blocks."+t:"",s=e?"."+e:"",l=`settings${i}${s}`,a=`settings${s}`,c="all"===n?"merged":n;return[(0,h.useMemo)((()=>{const t=r[c];if(!t)throw"Unsupported source";if(e)return fe(t,l)??fe(t,a);let n={};return ls.forEach((e=>{const o=fe(t,`settings${i}.${e}`)??fe(t,`settings.${e}`);void 0!==o&&(n=me(n,e.split("."),o))})),n}),[r,c,e,l,a,i]),e=>{o((t=>me(t,l.split("."),e)))}]}function us(e,t,n="all",{shouldDecodeEncode:o=!0}={}){const{merged:r,base:i,user:s,setUserConfig:l}=(0,h.useContext)(is),a=e?"."+e:"",c=t?`styles.blocks.${t}${a}`:`styles${a}`;let u,d;switch(n){case"all":u=fe(r,c),d=o?ts(r,t,u):u;break;case"user":u=fe(s,c),d=o?ts(r,t,u):u;break;case"base":u=fe(i,c),d=o?ts(i,t,u):u;break;default:throw"Unsupported source"}return[d,n=>{l((i=>me(i,c.split("."),o?function(e,t,n,o){if(!o)return o;const r=Qi[n],i=Xi.find((e=>e.cssVarInfix===r));if(!i)return o;const{valueKey:s,path:l}=i,a=es(e,t,l,s,o);return a?`var:preset|${r}|${a.slug}`:o}(r.settings,t,e,n):n)))}]}function ds(e,t,n){const{supportedStyles:o,supports:r}=(0,g.useSelect)((e=>({supportedStyles:G(e(p.store)).getSupportedStyles(t,n),supports:e(p.store).getBlockType(t)?.supports})),[t,n]);return(0,h.useMemo)((()=>{const t={...e};return o.includes("fontSize")||(t.typography={...t.typography,fontSizes:{},customFontSize:!1,defaultFontSizes:!1}),o.includes("fontFamily")||(t.typography={...t.typography,fontFamilies:{}}),t.color={...t.color,text:t.color?.text&&o.includes("color"),background:t.color?.background&&(o.includes("background")||o.includes("backgroundColor")),button:t.color?.button&&o.includes("buttonColor"),heading:t.color?.heading&&o.includes("headingColor"),link:t.color?.link&&o.includes("linkColor"),caption:t.color?.caption&&o.includes("captionColor")},o.includes("background")||(t.color.gradients=[],t.color.customGradient=!1),o.includes("filter")||(t.color.defaultDuotone=!1,t.color.customDuotone=!1),["lineHeight","fontStyle","fontWeight","letterSpacing","textAlign","textTransform","textDecoration","writingMode"].forEach((e=>{o.includes(e)||(t.typography={...t.typography,[e]:!1})})),o.includes("columnCount")||(t.typography={...t.typography,textColumns:!1}),["contentSize","wideSize"].forEach((e=>{o.includes(e)||(t.layout={...t.layout,[e]:!1})})),["padding","margin","blockGap"].forEach((e=>{o.includes(e)||(t.spacing={...t.spacing,[e]:!1});const n=Array.isArray(r?.spacing?.[e])?r?.spacing?.[e]:r?.spacing?.[e]?.sides;n?.length&&t.spacing?.[e]&&(t.spacing={...t.spacing,[e]:{...t.spacing?.[e],sides:n}})})),["aspectRatio","minHeight"].forEach((e=>{o.includes(e)||(t.dimensions={...t.dimensions,[e]:!1})})),["radius","color","style","width"].forEach((e=>{o.includes("border"+e.charAt(0).toUpperCase()+e.slice(1))||(t.border={...t.border,[e]:!1})})),["backgroundImage","backgroundSize"].forEach((e=>{o.includes(e)||(t.background={...t.background,[e]:!1})})),t.shadow=!!o.includes("shadow")&&t.shadow,n&&(t.typography.textAlign=!1),t}),[e,o,r,n])}function ps(e){const t=e?.color?.palette?.custom,n=e?.color?.palette?.theme,o=e?.color?.palette?.default,r=e?.color?.defaultPalette;return(0,h.useMemo)((()=>{const e=[];return n&&n.length&&e.push({name:(0,T._x)("Theme","Indicates this palette comes from the theme."),colors:n}),r&&o&&o.length&&e.push({name:(0,T._x)("Default","Indicates this palette comes from WordPress."),colors:o}),t&&t.length&&e.push({name:(0,T._x)("Custom","Indicates this palette is created by the user."),colors:t}),e}),[t,n,o,r])}function hs(e){const t=e?.color?.gradients?.custom,n=e?.color?.gradients?.theme,o=e?.color?.gradients?.default,r=e?.color?.defaultGradients;return(0,h.useMemo)((()=>{const e=[];return n&&n.length&&e.push({name:(0,T._x)("Theme","Indicates this palette comes from the theme."),gradients:n}),r&&o&&o.length&&e.push({name:(0,T._x)("Default","Indicates this palette comes from WordPress."),gradients:o}),t&&t.length&&e.push({name:(0,T._x)("Custom","Indicates this palette is created by the user."),gradients:t}),e}),[t,n,o,r])}function gs(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=gs(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}const ms=function(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=gs(e))&&(o&&(o+=" "),o+=t);return o},fs=e=>{if(null===e||"object"!=typeof e||Array.isArray(e))return e;const t=Object.entries(e).map((([e,t])=>[e,fs(t)])).filter((([,e])=>void 0!==e));return t.length?Object.fromEntries(t):void 0};function bs(e,t,n,o,r,i){if(Object.values(e??{}).every((e=>!e)))return n;if(1===i.length&&n.innerBlocks.length===o.length)return n;let s=o[0]?.attributes;if(i.length>1&&o.length>1){if(!o[r])return n;s=o[r]?.attributes}let l=n;return Object.entries(e).forEach((([e,n])=>{n&&t[e].forEach((e=>{const t=fe(s,e);t&&(l={...l,attributes:me(l.attributes,e,t)})}))})),l}function ks(e,t,n){const o=(0,p.getBlockSupport)(e,t),r=o?.__experimentalSkipSerialization;return Array.isArray(r)?r.includes(n):r}const vs=new WeakMap;function _s({id:e,css:t}){return ys({id:e,css:t})}function ys({id:e,css:t,assets:n,__unstableType:o,variation:r,clientId:i}={}){const{setStyleOverride:s,deleteStyleOverride:l}=G((0,g.useDispatch)(ji)),a=(0,g.useRegistry)(),c=(0,h.useId)();(0,h.useEffect)((()=>{if(!t&&!n)return;const u=e||c,d={id:e,css:t,assets:n,__unstableType:o,variation:r,clientId:i};return vs.get(a)||vs.set(a,[]),vs.get(a).push([u,d]),window.queueMicrotask((()=>{vs.get(a)?.length&&a.batch((()=>{vs.get(a).forEach((e=>{s(...e)})),vs.set(a,[])}))})),()=>{const e=vs.get(a)?.find((([e])=>e===u));e?vs.set(a,vs.get(a).filter((([e])=>e!==u))):l(u)}}),[e,t,i,n,o,c,s,l,a])}function xs(e,t){const[n,o,r,i,s,l,a,c,u,d,p,g,m,f,b,k,v,_,y,x,S,w,C,B,I,j,E,T,M,P,R,A,N,L,D,O,z,V,F,H,U,G,$,W,K,Z,q,Y,X,Q,J,ee,te,ne,oe,re,ie]=Ti("background.backgroundImage","background.backgroundSize","typography.fontFamilies.custom","typography.fontFamilies.default","typography.fontFamilies.theme","typography.defaultFontSizes","typography.fontSizes.custom","typography.fontSizes.default","typography.fontSizes.theme","typography.customFontSize","typography.fontStyle","typography.fontWeight","typography.lineHeight","typography.textAlign","typography.textColumns","typography.textDecoration","typography.writingMode","typography.textTransform","typography.letterSpacing","spacing.padding","spacing.margin","spacing.blockGap","spacing.defaultSpacingSizes","spacing.customSpacingSize","spacing.spacingSizes.custom","spacing.spacingSizes.default","spacing.spacingSizes.theme","spacing.units","dimensions.aspectRatio","dimensions.minHeight","layout","border.color","border.radius","border.style","border.width","border.radiusSizes","color.custom","color.palette.custom","color.customDuotone","color.palette.theme","color.palette.default","color.defaultPalette","color.defaultDuotone","color.duotone.custom","color.duotone.theme","color.duotone.default","color.gradients.custom","color.gradients.theme","color.gradients.default","color.defaultGradients","color.customGradient","color.background","color.link","color.text","color.heading","color.button","shadow");return ds((0,h.useMemo)((()=>({background:{backgroundImage:n,backgroundSize:o},color:{palette:{custom:V,theme:H,default:U},gradients:{custom:q,theme:Y,default:X},duotone:{custom:W,theme:K,default:Z},defaultGradients:Q,defaultPalette:G,defaultDuotone:$,custom:z,customGradient:J,customDuotone:F,background:ee,link:te,heading:oe,button:re,text:ne},typography:{fontFamilies:{custom:r,default:i,theme:s},fontSizes:{custom:a,default:c,theme:u},customFontSize:d,defaultFontSizes:l,fontStyle:p,fontWeight:g,lineHeight:m,textAlign:f,textColumns:b,textDecoration:k,textTransform:_,letterSpacing:y,writingMode:v},spacing:{spacingSizes:{custom:I,default:j,theme:E},customSpacingSize:B,defaultSpacingSizes:C,padding:x,margin:S,blockGap:w,units:T},border:{color:A,radius:N,style:L,width:D,radiusSizes:O},dimensions:{aspectRatio:M,minHeight:P},layout:R,parentLayout:t,shadow:ie})),[n,o,r,i,s,l,a,c,u,d,p,g,m,f,b,k,_,y,v,x,S,w,C,B,I,j,E,T,M,P,R,t,A,N,L,D,O,z,V,F,H,U,G,$,W,K,Z,q,Y,X,Q,J,ee,te,ne,oe,re,ie]),e)}const Ss=(0,h.memo)((function({index:e,useBlockProps:t,setAllWrapperProps:n,...o}){const r=t(o),i=t=>n((n=>{const o=[...n];return o[e]=t,o}));return(0,h.useEffect)((()=>(i(r),()=>{i(void 0)}))),null}));(0,f.addFilter)("blocks.registerBlockType","core/compat/migrateLightBlockWrapper",(function(e){const{apiVersion:t=1}=e;return t<2&&(0,p.hasBlockSupport)(e,"lightBlockWrapper",!1)&&(e.apiVersion=2),e}));const ws=window.wp.components;var Cs={default:(0,ws.createSlotFill)("BlockControls"),block:(0,ws.createSlotFill)("BlockControlsBlock"),inline:(0,ws.createSlotFill)("BlockFormatControls"),other:(0,ws.createSlotFill)("BlockControlsOther"),parent:(0,ws.createSlotFill)("BlockControlsParent")};function Bs({group:e="default",controls:t,children:n,__experimentalShareWithChildBlocks:o=!1}){const r=function(e,t){const n=C();return n[b]?Cs[e]?.Fill:n[k]&&t?Cs.parent.Fill:null}(e,o);if(!r)return null;const i=(0,d.jsxs)(d.Fragment,{children:["default"===e&&(0,d.jsx)(ws.ToolbarGroup,{controls:t}),n]});return(0,d.jsx)(ws.__experimentalStyleProvider,{document,children:(0,d.jsx)(r,{children:e=>{const{forwardedContext:t=[]}=e;return t.reduce(((e,[t,n])=>(0,d.jsx)(t,{...n,children:e})),i)}})})}const Is=window.wp.warning;var js=n.n(Is);const{ComponentsContext:Es}=G(ws.privateApis);function Ts({group:e="default",...t}){const n=(0,h.useContext)(ws.__experimentalToolbarContext),o=(0,h.useContext)(Es),r=(0,h.useMemo)((()=>({forwardedContext:[[ws.__experimentalToolbarContext.Provider,{value:n}],[Es.Provider,{value:o}]]})),[n,o]),i=Cs[e],s=(0,ws.__experimentalUseSlotFills)(i.name);if(!i)return js()(`Unknown BlockControls group "${e}" provided.`),null;if(!s?.length)return null;const{Slot:l}=i,a=(0,d.jsx)(l,{...t,bubblesVirtually:!0,fillProps:r});return"default"===e?a:(0,d.jsx)(ws.ToolbarGroup,{children:a})}const Ms=Bs;Ms.Slot=Ts;const Ps=e=>(0,d.jsx)(Bs,{group:"inline",...e});Ps.Slot=e=>(0,d.jsx)(Ts,{group:"inline",...e});var Rs=Ms,As=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"M9 9v6h11V9H9zM4 20h1.5V4H4v16z"})}),Ns=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"M12.5 15v5H11v-5H4V9h7V4h1.5v5h7v6h-7Z"})}),Ls=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"M4 15h11V9H4v6zM18.5 4v16H20V4h-1.5z"})}),Ds=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"M9 15h6V9H9v6zm-5 5h1.5V4H4v16zM18.5 4v16H20V4h-1.5z"})}),Os=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"M4 4H5.5V20H4V4ZM7 10L17 10V14L7 14V10ZM20 4H18.5V20H20V4Z"})}),zs=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"m14.5 6.5-1 1 3.7 3.7H4v1.6h13.2l-3.7 3.7 1 1 5.6-5.5z"})}),Vs=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"m16.5 13.5-3.7 3.7V4h-1.5v13.2l-3.8-3.7-1 1 5.5 5.6 5.5-5.6z"})});const Fs={default:{name:"default",slug:"flow",className:"is-layout-flow",baseStyles:[{selector:" > .alignleft",rules:{float:"left","margin-inline-start":"0","margin-inline-end":"2em"}},{selector:" > .alignright",rules:{float:"right","margin-inline-start":"2em","margin-inline-end":"0"}},{selector:" > .aligncenter",rules:{"margin-left":"auto !important","margin-right":"auto !important"}}],spacingStyles:[{selector:" > :first-child",rules:{"margin-block-start":"0"}},{selector:" > :last-child",rules:{"margin-block-end":"0"}},{selector:" > *",rules:{"margin-block-start":null,"margin-block-end":"0"}}]},constrained:{name:"constrained",slug:"constrained",className:"is-layout-constrained",baseStyles:[{selector:" > .alignleft",rules:{float:"left","margin-inline-start":"0","margin-inline-end":"2em"}},{selector:" > .alignright",rules:{float:"right","margin-inline-start":"2em","margin-inline-end":"0"}},{selector:" > .aligncenter",rules:{"margin-left":"auto !important","margin-right":"auto !important"}},{selector:" > :where(:not(.alignleft):not(.alignright):not(.alignfull))",rules:{"max-width":"var(--wp--style--global--content-size)","margin-left":"auto !important","margin-right":"auto !important"}},{selector:" > .alignwide",rules:{"max-width":"var(--wp--style--global--wide-size)"}}],spacingStyles:[{selector:" > :first-child",rules:{"margin-block-start":"0"}},{selector:" > :last-child",rules:{"margin-block-end":"0"}},{selector:" > *",rules:{"margin-block-start":null,"margin-block-end":"0"}}]},flex:{name:"flex",slug:"flex",className:"is-layout-flex",displayMode:"flex",baseStyles:[{selector:"",rules:{"flex-wrap":"wrap","align-items":"center"}},{selector:" > :is(*, div)",rules:{margin:"0"}}],spacingStyles:[{selector:"",rules:{gap:null}}]},grid:{name:"grid",slug:"grid",className:"is-layout-grid",displayMode:"grid",baseStyles:[{selector:" > :is(*, div)",rules:{margin:"0"}}],spacingStyles:[{selector:"",rules:{gap:null}}]}};function Hs(e,t=""){return e.split(",").map((e=>`${e}${t?` ${t}`:""}`)).join(",")}function Us(e,t=Fs,n,o){let r="";return t?.[n]?.spacingStyles?.length&&o&&t[n].spacingStyles.forEach((t=>{r+=`${Hs(e,t.selector.trim())} { `,r+=Object.entries(t.rules).map((([e,t])=>`${e}: ${t||o}`)).join("; "),r+="; }"})),r}function Gs(e){const{contentSize:t,wideSize:n,type:o="default"}=e,r={},i=/^(?!0)\d+(px|em|rem|vw|vh|%|svw|lvw|dvw|svh|lvh|dvh|vi|svi|lvi|dvi|vb|svb|lvb|dvb|vmin|svmin|lvmin|dvmin|vmax|svmax|lvmax|dvmax)?$/i;return i.test(t)&&"constrained"===o&&(r.none=(0,T.sprintf)((0,T.__)("Max %s wide"),t)),i.test(n)&&(r.wide=(0,T.sprintf)((0,T.__)("Max %s wide"),n)),r}var $s=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z"})}),Ws=(0,d.jsxs)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,d.jsx)(ue.Path,{d:"m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z",style:{opacity:.25}}),(0,d.jsx)(ue.Path,{d:"m4.5 7.5v9h1.5v-9z"}),(0,d.jsx)(ue.Path,{d:"m18 7.5v9h1.5v-9z"})]}),Ks=(0,d.jsxs)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,d.jsx)(ue.Path,{d:"m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z",style:{opacity:.25}}),(0,d.jsx)(ue.Path,{d:"m7.5 6h9v-1.5h-9z"}),(0,d.jsx)(ue.Path,{d:"m7.5 19.5h9v-1.5h-9z"})]}),Zs=(0,d.jsxs)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,d.jsx)(ue.Path,{d:"m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z",style:{opacity:.25}}),(0,d.jsx)(ue.Path,{d:"m16.5 6h-9v-1.5h9z"})]}),qs=(0,d.jsxs)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,d.jsx)(ue.Path,{d:"m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z",style:{opacity:.25}}),(0,d.jsx)(ue.Path,{d:"m18 16.5v-9h1.5v9z"})]}),Ys=(0,d.jsxs)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,d.jsx)(ue.Path,{d:"m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z",style:{opacity:.25}}),(0,d.jsx)(ue.Path,{d:"m16.5 19.5h-9v-1.5h9z"})]}),Xs=(0,d.jsxs)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,d.jsx)(ue.Path,{d:"m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z",style:{opacity:.25}}),(0,d.jsx)(ue.Path,{d:"m4.5 16.5v-9h1.5v9z"})]});const Qs=8,Js=["top","right","bottom","left"],el={top:void 0,right:void 0,bottom:void 0,left:void 0},tl={custom:$s,axial:$s,horizontal:Ws,vertical:Ks,top:Zs,right:qs,bottom:Ys,left:Xs},nl={default:(0,T.__)("Spacing control"),top:(0,T.__)("Top"),bottom:(0,T.__)("Bottom"),left:(0,T.__)("Left"),right:(0,T.__)("Right"),mixed:(0,T.__)("Mixed"),vertical:(0,T.__)("Vertical"),horizontal:(0,T.__)("Horizontal"),axial:(0,T.__)("Horizontal & vertical"),custom:(0,T.__)("Custom")},ol={axial:"axial",top:"top",right:"right",bottom:"bottom",left:"left",custom:"custom"};function rl(e){return!!e?.includes&&("0"===e||e.includes("var:preset|spacing|"))}function il(e,t){if(!rl(e))return e;const n=al(e),o=t.find((e=>String(e.slug)===n));return o?.size}function sl(e,t){if(!e||rl(e)||"0"===e)return e;const n=t.find((t=>String(t.size)===String(e)));return n?.slug?`var:preset|spacing|${n.slug}`:e}function ll(e){if(!e)return;const t=e.match(/var:preset\|spacing\|(.+)/);return t?`var(--wp--preset--spacing--${t[1]})`:e}function al(e){if(!e)return;if("0"===e||"default"===e)return e;const t=e.match(/var:preset\|spacing\|(.+)/);return t?t[1]:void 0}function cl(e,t){if(!e||!e.length)return!1;const n=e.includes("horizontal")||e.includes("left")&&e.includes("right"),o=e.includes("vertical")||e.includes("top")&&e.includes("bottom");return"horizontal"===t?n:"vertical"===t?o:n||o}function ul(e,t="0"){const n=function(e){if(!e)return null;const t="string"==typeof e;return{top:t?e:e?.top,left:t?e:e?.left}}(e);if(!n)return null;const o=ll(n?.top)||t,r=ll(n?.left)||t;return o===r?o:`${o} ${r}`}var dl=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"M9 20h6V9H9v11zM4 4v1.5h16V4H4z"})}),pl=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"M20 11h-5V4H9v7H4v1.5h5V20h6v-7.5h5z"})}),hl=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"M15 4H9v11h6V4zM4 18.5V20h16v-1.5H4z"})}),gl=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"M4 4L20 4L20 5.5L4 5.5L4 4ZM10 7L14 7L14 17L10 17L10 7ZM20 18.5L4 18.5L4 20L20 20L20 18.5Z"})}),ml=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"M7 4H17V8L7 8V4ZM7 16L17 16V20L7 20V16ZM20 11.25H4V12.75H20V11.25Z"})});const fl={top:{icon:dl,title:(0,T._x)("Align top","Block vertical alignment setting")},center:{icon:pl,title:(0,T._x)("Align middle","Block vertical alignment setting")},bottom:{icon:hl,title:(0,T._x)("Align bottom","Block vertical alignment setting")},stretch:{icon:gl,title:(0,T._x)("Stretch to fill","Block vertical alignment setting")},"space-between":{icon:ml,title:(0,T._x)("Space between","Block vertical alignment setting")}},bl=["top","center","bottom"];var kl=function({value:e,onChange:t,controls:n=bl,isCollapsed:o=!0,isToolbar:r}){const i=fl[e],s=fl.top,l=r?ws.ToolbarGroup:ws.ToolbarDropdownMenu,a=r?{isCollapsed:o}:{};return(0,d.jsx)(l,{icon:i?i.icon:s.icon,label:(0,T._x)("Change vertical alignment","Block vertical alignment setting label"),controls:n.map((n=>{return{...fl[n],isActive:e===n,role:o?"menuitemradio":void 0,onClick:(r=n,()=>t(e===r?void 0:r))};var r})),...a})};const vl=e=>(0,d.jsx)(kl,{...e,isToolbar:!1}),_l=e=>(0,d.jsx)(kl,{...e,isToolbar:!0}),yl={left:As,center:Ns,right:Ls,"space-between":Ds,stretch:Os};var xl=function({allowedControls:e=["left","center","right","space-between"],isCollapsed:t=!0,onChange:n,value:o,popoverProps:r,isToolbar:i}){const s=e=>{n(e===o?void 0:e)},l=o?yl[o]:yl.left,a=[{name:"left",icon:As,title:(0,T.__)("Justify items left"),isActive:"left"===o,onClick:()=>s("left")},{name:"center",icon:Ns,title:(0,T.__)("Justify items center"),isActive:"center"===o,onClick:()=>s("center")},{name:"right",icon:Ls,title:(0,T.__)("Justify items right"),isActive:"right"===o,onClick:()=>s("right")},{name:"space-between",icon:Ds,title:(0,T.__)("Space between items"),isActive:"space-between"===o,onClick:()=>s("space-between")},{name:"stretch",icon:Os,title:(0,T.__)("Stretch items"),isActive:"stretch"===o,onClick:()=>s("stretch")}],c=i?ws.ToolbarGroup:ws.ToolbarDropdownMenu,u=i?{isCollapsed:t}:{};return(0,d.jsx)(c,{icon:l,popoverProps:r,label:(0,T.__)("Change items justification"),controls:a.filter((t=>e.includes(t.name))),...u})};const Sl=e=>(0,d.jsx)(xl,{...e,isToolbar:!1}),wl=e=>(0,d.jsx)(xl,{...e,isToolbar:!0}),Cl={left:"flex-start",right:"flex-end",center:"center","space-between":"space-between"},Bl={left:"flex-start",right:"flex-end",center:"center",stretch:"stretch"},Il={top:"flex-start",center:"center",bottom:"flex-end",stretch:"stretch","space-between":"space-between"},jl="center",El="top",Tl=["wrap","nowrap"];var Ml={name:"flex",label:(0,T.__)("Flex"),inspectorControls:function({layout:e={},onChange:t,layoutBlockSupport:n={}}){const{allowOrientation:o=!0,allowJustification:r=!0}=n;return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(ws.Flex,{children:[r&&(0,d.jsx)(ws.FlexItem,{children:(0,d.jsx)(Al,{layout:e,onChange:t})}),o&&(0,d.jsx)(ws.FlexItem,{children:(0,d.jsx)(Ll,{layout:e,onChange:t})})]}),(0,d.jsx)(Nl,{layout:e,onChange:t})]})},toolBarControls:function({layout:e={},onChange:t,layoutBlockSupport:n}){const{allowVerticalAlignment:o=!0,allowJustification:r=!0}=n;return r||o?(0,d.jsxs)(Rs,{group:"block",__experimentalShareWithChildBlocks:!0,children:[r&&(0,d.jsx)(Al,{layout:e,onChange:t,isToolbar:!0}),o&&(0,d.jsx)(Pl,{layout:e,onChange:t})]}):null},getLayoutStyle:function({selector:e,layout:t,style:n,blockName:o,hasBlockGapSupport:r,layoutDefinitions:i=Fs}){const{orientation:s="horizontal"}=t,l=n?.spacing?.blockGap&&!ks(o,"spacing","blockGap")?ul(n?.spacing?.blockGap,"0.5em"):void 0,a=Cl[t.justifyContent],c=Tl.includes(t.flexWrap)?t.flexWrap:"wrap",u=Il[t.verticalAlignment],d=Bl[t.justifyContent]||Bl.left;let p="";const h=[];return c&&"wrap"!==c&&h.push(`flex-wrap: ${c}`),"horizontal"===s?(u&&h.push(`align-items: ${u}`),a&&h.push(`justify-content: ${a}`)):(u&&h.push(`justify-content: ${u}`),h.push("flex-direction: column"),h.push(`align-items: ${d}`)),h.length&&(p=`${Hs(e)} {\n\t\t\t\t${h.join("; ")};\n\t\t\t}`),r&&l&&(p+=Us(e,i,"flex",l)),p},getOrientation(e){const{orientation:t="horizontal"}=e;return t},getAlignments:()=>[]};function Pl({layout:e,onChange:t}){const{orientation:n="horizontal"}=e,o="horizontal"===n?jl:El,{verticalAlignment:r=o}=e;return(0,d.jsx)(vl,{onChange:n=>{t({...e,verticalAlignment:n})},value:r,controls:"horizontal"===n?["top","center","bottom","stretch"]:["top","center","bottom","space-between"]})}const Rl={placement:"bottom-start"};function Al({layout:e,onChange:t,isToolbar:n=!1}){const{justifyContent:o="left",orientation:r="horizontal"}=e,i=n=>{t({...e,justifyContent:n})},s=["left","center","right"];if("horizontal"===r?s.push("space-between"):s.push("stretch"),n)return(0,d.jsx)(Sl,{allowedControls:s,value:o,onChange:i,popoverProps:Rl});const l=[{value:"left",icon:As,label:(0,T.__)("Justify items left")},{value:"center",icon:Ns,label:(0,T.__)("Justify items center")},{value:"right",icon:Ls,label:(0,T.__)("Justify items right")}];return"horizontal"===r?l.push({value:"space-between",icon:Ds,label:(0,T.__)("Space between items")}):l.push({value:"stretch",icon:Os,label:(0,T.__)("Stretch items")}),(0,d.jsx)(ws.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,T.__)("Justification"),value:o,onChange:i,className:"block-editor-hooks__flex-layout-justification-controls",children:l.map((({value:e,icon:t,label:n})=>(0,d.jsx)(ws.__experimentalToggleGroupControlOptionIcon,{value:e,icon:t,label:n},e)))})}function Nl({layout:e,onChange:t}){const{flexWrap:n="wrap"}=e;return(0,d.jsx)(ws.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,T.__)("Allow to wrap to multiple lines"),onChange:n=>{t({...e,flexWrap:n?"wrap":"nowrap"})},checked:"wrap"===n})}function Ll({layout:e,onChange:t}){const{orientation:n="horizontal",verticalAlignment:o,justifyContent:r}=e;return(0,d.jsxs)(ws.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,className:"block-editor-hooks__flex-layout-orientation-controls",label:(0,T.__)("Orientation"),value:n,onChange:n=>{let i=o,s=r;return"horizontal"===n?("space-between"===o&&(i="center"),"stretch"===r&&(s="left")):("stretch"===o&&(i="top"),"space-between"===r&&(s="left")),t({...e,orientation:n,verticalAlignment:i,justifyContent:s})},children:[(0,d.jsx)(ws.__experimentalToggleGroupControlOptionIcon,{icon:zs,value:"horizontal",label:(0,T.__)("Horizontal")}),(0,d.jsx)(ws.__experimentalToggleGroupControlOptionIcon,{icon:Vs,value:"vertical",label:(0,T.__)("Vertical")})]})}var Dl={name:"default",label:(0,T.__)("Flow"),inspectorControls:function(){return null},toolBarControls:function(){return null},getLayoutStyle:function({selector:e,style:t,blockName:n,hasBlockGapSupport:o,layoutDefinitions:r=Fs}){const i=ul(t?.spacing?.blockGap);let s="";ks(n,"spacing","blockGap")||(i?.top?s=ul(i?.top):"string"==typeof i&&(s=ul(i)));let l="";return o&&s&&(l+=Us(e,r,"default",s)),l},getOrientation:()=>"vertical",getAlignments(e,t){const n=Gs(e);if(void 0!==e.alignments)return e.alignments.includes("none")||e.alignments.unshift("none"),e.alignments.map((e=>({name:e,info:n[e]})));const o=[{name:"left"},{name:"center"},{name:"right"}];if(!t){const{contentSize:t,wideSize:r}=e;t&&o.unshift({name:"full"}),r&&o.unshift({name:"wide",info:n.wide})}return o.unshift({name:"none",info:n.none}),o}},Ol=(0,h.forwardRef)((({icon:e,size:t=24,...n},o)=>(0,h.cloneElement)(e,{width:t,height:t,...n,ref:o}))),zl=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"M19 5.5H5V4h14v1.5ZM19 20H5v-1.5h14V20ZM5 9h14v6H5V9Z"})}),Vl=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"M16 5.5H8V4h8v1.5ZM16 20H8v-1.5h8V20ZM5 9h14v6H5V9Z"})}),Fl={name:"constrained",label:(0,T.__)("Constrained"),inspectorControls:function({layout:e,onChange:t,layoutBlockSupport:n={}}){const{wideSize:o,contentSize:r,justifyContent:i="center"}=e,{allowJustification:s=!0,allowCustomContentAndWideSize:l=!0}=n,a=[{value:"left",icon:As,label:(0,T.__)("Justify items left")},{value:"center",icon:Ns,label:(0,T.__)("Justify items center")},{value:"right",icon:Ls,label:(0,T.__)("Justify items right")}],[c]=Ti("spacing.units"),u=(0,ws.__experimentalUseCustomUnits)({availableUnits:c||["%","px","em","rem","vw"]});return(0,d.jsxs)(ws.__experimentalVStack,{spacing:4,className:"block-editor-hooks__layout-constrained",children:[l&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(ws.__experimentalUnitControl,{__next40pxDefaultSize:!0,label:(0,T.__)("Content width"),labelPosition:"top",value:r||o||"",onChange:n=>{n=0>parseFloat(n)?"0":n,t({...e,contentSize:n})},units:u,prefix:(0,d.jsx)(ws.__experimentalInputControlPrefixWrapper,{variant:"icon",children:(0,d.jsx)(Ol,{icon:zl})})}),(0,d.jsx)(ws.__experimentalUnitControl,{__next40pxDefaultSize:!0,label:(0,T.__)("Wide width"),labelPosition:"top",value:o||r||"",onChange:n=>{n=0>parseFloat(n)?"0":n,t({...e,wideSize:n})},units:u,prefix:(0,d.jsx)(ws.__experimentalInputControlPrefixWrapper,{variant:"icon",children:(0,d.jsx)(Ol,{icon:Vl})})}),(0,d.jsx)("p",{className:"block-editor-hooks__layout-constrained-helptext",children:(0,T.__)("Customize the width for all elements that are assigned to the center or wide columns.")})]}),s&&(0,d.jsx)(ws.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,T.__)("Justification"),value:i,onChange:n=>{t({...e,justifyContent:n})},children:a.map((({value:e,icon:t,label:n})=>(0,d.jsx)(ws.__experimentalToggleGroupControlOptionIcon,{value:e,icon:t,label:n},e)))})]})},toolBarControls:function({layout:e={},onChange:t,layoutBlockSupport:n}){const{allowJustification:o=!0}=n;return o?(0,d.jsx)(Rs,{group:"block",__experimentalShareWithChildBlocks:!0,children:(0,d.jsx)(Ul,{layout:e,onChange:t})}):null},getLayoutStyle:function({selector:e,layout:t={},style:n,blockName:o,hasBlockGapSupport:r,layoutDefinitions:i=Fs}){const{contentSize:s,wideSize:l,justifyContent:a}=t,c=ul(n?.spacing?.blockGap);let u="";ks(o,"spacing","blockGap")||(c?.top?u=ul(c?.top):"string"==typeof c&&(u=ul(c)));const d="left"===a?"0 !important":"auto !important",p="right"===a?"0 !important":"auto !important";let h=s||l?`\n\t\t\t\t\t${Hs(e,"> :where(:not(.alignleft):not(.alignright):not(.alignfull))")} {\n\t\t\t\t\t\tmax-width: ${s??l};\n\t\t\t\t\t\tmargin-left: ${d};\n\t\t\t\t\t\tmargin-right: ${p};\n\t\t\t\t\t}\n\t\t\t\t\t${Hs(e,"> .alignwide")}  {\n\t\t\t\t\t\tmax-width: ${l??s};\n\t\t\t\t\t}\n\t\t\t\t\t${Hs(e,"> .alignfull")} {\n\t\t\t\t\t\tmax-width: none;\n\t\t\t\t\t}\n\t\t\t\t`:"";if("left"===a?h+=`${Hs(e,"> :where(:not(.alignleft):not(.alignright):not(.alignfull))")}\n\t\t\t{ margin-left: ${d}; }`:"right"===a&&(h+=`${Hs(e,"> :where(:not(.alignleft):not(.alignright):not(.alignfull))")}\n\t\t\t{ margin-right: ${p}; }`),n?.spacing?.padding){(0,Pi.getCSSRules)(n).forEach((t=>{if("paddingRight"===t.key){const n="0"===t.value?"0px":t.value;h+=`\n\t\t\t\t\t${Hs(e,"> .alignfull")} {\n\t\t\t\t\t\tmargin-right: calc(${n} * -1);\n\t\t\t\t\t}\n\t\t\t\t\t`}else if("paddingLeft"===t.key){const n="0"===t.value?"0px":t.value;h+=`\n\t\t\t\t\t${Hs(e,"> .alignfull")} {\n\t\t\t\t\t\tmargin-left: calc(${n} * -1);\n\t\t\t\t\t}\n\t\t\t\t\t`}}))}return r&&u&&(h+=Us(e,i,"constrained",u)),h},getOrientation:()=>"vertical",getAlignments(e){const t=Gs(e);if(void 0!==e.alignments)return e.alignments.includes("none")||e.alignments.unshift("none"),e.alignments.map((e=>({name:e,info:t[e]})));const{contentSize:n,wideSize:o}=e,r=[{name:"left"},{name:"center"},{name:"right"}];return n&&r.unshift({name:"full"}),o&&r.unshift({name:"wide",info:t.wide}),r.unshift({name:"none",info:t.none}),r}};const Hl={placement:"bottom-start"};function Ul({layout:e,onChange:t}){const{justifyContent:n="center"}=e;return(0,d.jsx)(Sl,{allowedControls:["left","center","right"],value:n,onChange:n=>{t({...e,justifyContent:n})},popoverProps:Hl})}const Gl={px:600,"%":100,vw:100,vh:100,em:38,rem:38,svw:100,lvw:100,dvw:100,svh:100,lvh:100,dvh:100,vi:100,svi:100,lvi:100,dvi:100,vb:100,svb:100,lvb:100,dvb:100,vmin:100,svmin:100,lvmin:100,dvmin:100,vmax:100,svmax:100,lvmax:100,dvmax:100},$l=[{value:"px",label:"px",default:0},{value:"rem",label:"rem",default:0},{value:"em",label:"em",default:0}];var Wl={name:"grid",label:(0,T.__)("Grid"),inspectorControls:function({layout:e={},onChange:t,layoutBlockSupport:n={}}){const{allowSizingOnChildren:o=!1}=n,r=window.__experimentalEnableGridInteractivity||!!e?.columnCount,i=window.__experimentalEnableGridInteractivity||!e?.columnCount;return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(ql,{layout:e,onChange:t}),(0,d.jsxs)(ws.__experimentalVStack,{spacing:4,children:[r&&(0,d.jsx)(Zl,{layout:e,onChange:t,allowSizingOnChildren:o}),i&&(0,d.jsx)(Kl,{layout:e,onChange:t})]})]})},toolBarControls:function(){return null},getLayoutStyle:function({selector:e,layout:t,style:n,blockName:o,hasBlockGapSupport:r,layoutDefinitions:i=Fs}){const{minimumColumnWidth:s=null,columnCount:l=null,rowCount:a=null}=t;const c=n?.spacing?.blockGap&&!ks(o,"spacing","blockGap")?ul(n?.spacing?.blockGap,"0.5em"):void 0;let u="";const d=[];if(s&&l>0){const e=`max(${s}, ( 100% - (${c||"1.2rem"}*${l-1}) ) / ${l})`;d.push(`grid-template-columns: repeat(auto-fill, minmax(${e}, 1fr))`,"container-type: inline-size"),a&&d.push(`grid-template-rows: repeat(${a}, minmax(1rem, auto))`)}else l?(d.push(`grid-template-columns: repeat(${l}, minmax(0, 1fr))`),a&&d.push(`grid-template-rows: repeat(${a}, minmax(1rem, auto))`)):d.push(`grid-template-columns: repeat(auto-fill, minmax(min(${s||"12rem"}, 100%), 1fr))`,"container-type: inline-size");return d.length&&(u=`${Hs(e)} { ${d.join("; ")}; }`),r&&c&&(u+=Us(e,i,"grid",c)),u},getOrientation:()=>"horizontal",getAlignments:()=>[]};function Kl({layout:e,onChange:t}){const{minimumColumnWidth:n,columnCount:o,isManualPlacement:r}=e,i=n||(r||o?null:"12rem"),[s,l="rem"]=(0,ws.__experimentalParseQuantityAndUnitFromRawValue)(i);return(0,d.jsxs)("fieldset",{className:"block-editor-hooks__grid-layout-minimum-width-control",children:[(0,d.jsx)(ws.BaseControl.VisualLabel,{as:"legend",children:(0,T.__)("Minimum column width")}),(0,d.jsxs)(ws.Flex,{gap:4,children:[(0,d.jsx)(ws.FlexItem,{isBlock:!0,children:(0,d.jsx)(ws.__experimentalUnitControl,{size:"__unstable-large",onChange:n=>{t({...e,minimumColumnWidth:""===n?void 0:n})},onUnitChange:n=>{let o;["em","rem"].includes(n)&&"px"===l?o=(s/16).toFixed(2)+n:["em","rem"].includes(l)&&"px"===n&&(o=Math.round(16*s)+n),t({...e,minimumColumnWidth:o})},value:i,units:$l,min:0,label:(0,T.__)("Minimum column width"),hideLabelFromVision:!0})}),(0,d.jsx)(ws.FlexItem,{isBlock:!0,children:(0,d.jsx)(ws.RangeControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,onChange:n=>{t({...e,minimumColumnWidth:[n,l].join("")})},value:s||0,min:0,max:Gl[l]||600,withInputField:!1,label:(0,T.__)("Minimum column width"),hideLabelFromVision:!0})})]})]})}function Zl({layout:e,onChange:t,allowSizingOnChildren:n}){const o=window.__experimentalEnableGridInteractivity?void 0:3,{columnCount:r=o,rowCount:i,isManualPlacement:s}=e;return(0,d.jsx)(d.Fragment,{children:(0,d.jsxs)("fieldset",{className:"block-editor-hooks__grid-layout-columns-and-rows-controls",children:[(!window.__experimentalEnableGridInteractivity||!s)&&(0,d.jsx)(ws.BaseControl.VisualLabel,{as:"legend",children:(0,T.__)("Columns")}),(0,d.jsxs)(ws.Flex,{gap:4,children:[(0,d.jsx)(ws.FlexItem,{isBlock:!0,children:(0,d.jsx)(ws.__experimentalNumberControl,{size:"__unstable-large",onChange:n=>{if(window.__experimentalEnableGridInteractivity){const o=""===n||"0"===n?s?1:void 0:parseInt(n,10);t({...e,columnCount:o})}else{const o=""===n||"0"===n?1:parseInt(n,10);t({...e,columnCount:o})}},value:r,min:1,label:(0,T.__)("Columns"),hideLabelFromVision:!window.__experimentalEnableGridInteractivity||!s})}),(0,d.jsx)(ws.FlexItem,{isBlock:!0,children:window.__experimentalEnableGridInteractivity&&n&&s?(0,d.jsx)(ws.__experimentalNumberControl,{size:"__unstable-large",onChange:n=>{const o=""===n||"0"===n?1:parseInt(n,10);t({...e,rowCount:o})},value:i,min:1,label:(0,T.__)("Rows")}):(0,d.jsx)(ws.RangeControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,value:r??1,onChange:n=>t({...e,columnCount:""===n||"0"===n?1:n}),min:1,max:16,withInputField:!1,label:(0,T.__)("Columns"),hideLabelFromVision:!0})})]})]})})}function ql({layout:e,onChange:t}){const{columnCount:n,rowCount:o,minimumColumnWidth:r,isManualPlacement:i}=e,[s,l]=(0,h.useState)(n||3),[a,c]=(0,h.useState)(o),[u,p]=(0,h.useState)(r||"12rem"),g=i||n&&!window.__experimentalEnableGridInteractivity?"manual":"auto",m="manual"===g?(0,T.__)("Grid items can be manually placed in any position on the grid."):(0,T.__)("Grid items are placed automatically depending on their order.");return(0,d.jsxs)(ws.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,T.__)("Grid item position"),value:g,onChange:i=>{"manual"===i?p(r||"12rem"):(l(n||3),c(o)),t({...e,columnCount:"manual"===i?s:null,rowCount:"manual"===i&&window.__experimentalEnableGridInteractivity?a:void 0,isManualPlacement:!("manual"!==i||!window.__experimentalEnableGridInteractivity)||void 0,minimumColumnWidth:"auto"===i?u:null})},isBlock:!0,help:window.__experimentalEnableGridInteractivity?m:void 0,children:[(0,d.jsx)(ws.__experimentalToggleGroupControlOption,{value:"auto",label:(0,T.__)("Auto")},"auto"),(0,d.jsx)(ws.__experimentalToggleGroupControlOption,{value:"manual",label:(0,T.__)("Manual")},"manual")]})}const Yl=[Dl,Ml,Fl,Wl];function Xl(e="default"){return Yl.find((t=>t.name===e))}const Ql={type:"default"},Jl=(0,h.createContext)(Ql);Jl.displayName="BlockLayoutContext";const ea=Jl.Provider;function ta(){return(0,h.useContext)(Jl)}const na=[],oa=["none","left","center","right","wide","full"],ra=["wide","full"];function ia(e=oa){e.includes("none")||(e=["none",...e]);const t=1===e.length&&"none"===e[0],[n,o,r]=(0,g.useSelect)((e=>{if(t)return[!1,!1,!1];const n=e(ji).getSettings();return[n.alignWide??!1,n.supportsLayout,n.__unstableIsBlockBasedTheme]}),[t]),i=ta();if(t)return na;const s=Xl(i?.type);if(o){const t=s.getAlignments(i,r).filter((t=>e.includes(t.name)));return 1===t.length&&"none"===t[0].name?na:t}if("default"!==s.name&&"constrained"!==s.name)return na;const l=e.filter((e=>i.alignments?i.alignments.includes(e):!(!n&&ra.includes(e))&&oa.includes(e))).map((e=>({name:e})));return 1===l.length&&"none"===l[0].name?na:l}var sa=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"M5 5.5h8V4H5v1.5ZM5 20h8v-1.5H5V20ZM19 9H5v6h14V9Z"})}),la=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"M19 5.5H5V4h14v1.5ZM19 20H5v-1.5h14V20ZM7 9h10v6H7V9Z"})}),aa=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"M19 5.5h-8V4h8v1.5ZM19 20h-8v-1.5h8V20ZM5 9h14v6H5V9Z"})}),ca=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"M5 4h14v11H5V4Zm11 16H8v-1.5h8V20Z"})});const ua={none:{icon:zl,title:(0,T._x)("None","Alignment option")},left:{icon:sa,title:(0,T.__)("Align left")},center:{icon:la,title:(0,T.__)("Align center")},right:{icon:aa,title:(0,T.__)("Align right")},wide:{icon:Vl,title:(0,T.__)("Wide width")},full:{icon:ca,title:(0,T.__)("Full width")}};var da=function({value:e,onChange:t,controls:n,isToolbar:o,isCollapsed:r=!0}){const i=ia(n);if(!!!i.length)return null;function s(n){t([e,"none"].includes(n)?void 0:n)}const l=ua[e],a=ua.none,c=o?ws.ToolbarGroup:ws.ToolbarDropdownMenu,u={icon:l?l.icon:a.icon,label:(0,T.__)("Align")},p=o?{isCollapsed:r,controls:i.map((({name:t})=>({...ua[t],isActive:e===t||!e&&"none"===t,role:r?"menuitemradio":void 0,onClick:()=>s(t)})))}:{toggleProps:{description:(0,T.__)("Change alignment")},children:({onClose:t})=>(0,d.jsx)(d.Fragment,{children:(0,d.jsx)(ws.MenuGroup,{className:"block-editor-block-alignment-control__menu-group",children:i.map((({name:n,info:o})=>{const{icon:r,title:i}=ua[n],l=n===e||!e&&"none"===n;return(0,d.jsx)(ws.MenuItem,{icon:r,iconPosition:"left",className:ms("components-dropdown-menu__menu-item",{"is-active":l}),isSelected:l,onClick:()=>{s(n),t()},role:"menuitemradio",info:o,children:i},n)}))})})};return(0,d.jsx)(c,{...u,...p})};const pa=e=>(0,d.jsx)(da,{...e,isToolbar:!1}),ha=e=>(0,d.jsx)(da,{...e,isToolbar:!0});function ga(e){const t=C(),{clientId:n=""}=t,{setBlockEditingMode:o,unsetBlockEditingMode:r}=(0,g.useDispatch)(ji),i=(0,g.useSelect)((e=>n?null:e(ji).getBlockEditingMode()),[n]);return(0,h.useEffect)((()=>(e&&o(n,e),()=>{e&&r(n)})),[n,e,o,r]),n?t[v]:i}const ma=["left","center","right","wide","full"],fa=["wide","full"];function ba(e,t=!0,n=!0){let o;return o=Array.isArray(e)?ma.filter((t=>e.includes(t))):!0===e?[...ma]:[],!n||!0===e&&!t?o.filter((e=>!fa.includes(e))):o}var ka={shareWithChildBlocks:!0,edit:function({name:e,align:t,setAttributes:n}){const o=ia(ba((0,p.getBlockSupport)(e,"align"),(0,p.hasBlockSupport)(e,"alignWide",!0))).map((({name:e})=>e)),r=ga();return o.length&&"default"===r?(0,d.jsx)(Rs,{group:"block",__experimentalShareWithChildBlocks:!0,children:(0,d.jsx)(pa,{value:t,onChange:t=>{if(!t){const n=(0,p.getBlockType)(e),o=n?.attributes?.align?.default;o&&(t="")}n({align:t})},controls:o})}):null},useBlockProps:function({name:e,align:t}){const n=ba((0,p.getBlockSupport)(e,"align"),(0,p.hasBlockSupport)(e,"alignWide",!0));if(ia(n).some((e=>e.name===t)))return{"data-align":t};return{}},addSaveProps:function(e,t,n){const{align:o}=n,r=(0,p.getBlockSupport)(t,"align"),i=(0,p.hasBlockSupport)(t,"alignWide",!0);ba(r,i).includes(o)&&(e.className=ms(`align${o}`,e.className));return e},attributeKeys:["align"],hasSupport:e=>(0,p.hasBlockSupport)(e,"align",!1)};(0,f.addFilter)("blocks.registerBlockType","core/editor/align/addAttribute",(function(e){return"type"in(e.attributes?.align??{})||(0,p.hasBlockSupport)(e,"align")&&(e.attributes={...e.attributes,align:{type:"string",enum:[...ma,""]}}),e}));const va=(0,ws.createSlotFill)("InspectorControls"),_a=(0,ws.createSlotFill)("InspectorAdvancedControls"),ya=(0,ws.createSlotFill)("InspectorControlsBindings"),xa=(0,ws.createSlotFill)("InspectorControlsBackground"),Sa=(0,ws.createSlotFill)("InspectorControlsBorder"),wa=(0,ws.createSlotFill)("InspectorControlsColor"),Ca=(0,ws.createSlotFill)("InspectorControlsFilter"),Ba=(0,ws.createSlotFill)("InspectorControlsDimensions"),Ia=(0,ws.createSlotFill)("InspectorControlsPosition"),ja=(0,ws.createSlotFill)("InspectorControlsTypography"),Ea=(0,ws.createSlotFill)("InspectorControlsListView"),Ta=(0,ws.createSlotFill)("InspectorControlsStyles");var Ma={default:va,advanced:_a,background:xa,bindings:ya,border:Sa,color:wa,dimensions:Ba,effects:(0,ws.createSlotFill)("InspectorControlsEffects"),filter:Ca,list:Ea,position:Ia,settings:va,styles:Ta,typography:ja};const Pa=(0,ws.createSlotFill)(Symbol("PrivateInspectorControlsAllowedBlocks"));function Ra({children:e,group:t="default",__experimentalGroup:n,resetAllFilter:o}){n&&(I()("`__experimentalGroup` property in `InspectorControlsFill`",{since:"6.2",version:"6.4",alternative:"`group`"}),t=n);const r=C(),i=Ma[t]?.Fill;return i?r[b]?(0,d.jsx)(ws.__experimentalStyleProvider,{document,children:(0,d.jsx)(i,{children:t=>(0,d.jsx)(Na,{fillProps:t,children:e,resetAllFilter:o})})}):null:(js()(`Unknown InspectorControls group "${t}" provided.`),null)}function Aa({resetAllFilter:e,children:t}){const{registerResetAllFilter:n,deregisterResetAllFilter:o}=(0,h.useContext)(ws.__experimentalToolsPanelContext);return(0,h.useEffect)((()=>{if(e&&n&&o)return n(e),()=>{o(e)}}),[e,n,o]),t}function Na({children:e,resetAllFilter:t,fillProps:n}){const{forwardedContext:o=[]}=n,r=(0,d.jsx)(Aa,{resetAllFilter:t,children:e});return o.reduce(((e,[t,n])=>(0,d.jsx)(t,{...n,children:e})),r)}function La({children:e,group:t,label:n}){const{updateBlockAttributes:o}=(0,g.useDispatch)(ji),{getBlockAttributes:r,getMultiSelectedBlockClientIds:i,getSelectedBlockClientId:s,hasMultiSelection:l}=(0,g.useSelect)(ji),a=Ji(),c=s(),u=(0,h.useCallback)(((e=[])=>{const t={},n=l()?i():[c];n.forEach((n=>{const{style:o}=r(n);let i={style:o};e.forEach((e=>{i={...i,...e(i)}})),i={...i,style:fs(i.style)},t[n]=i})),o(n,t,!0)}),[r,i,l,c,o]);return(0,d.jsx)(ws.__experimentalToolsPanel,{className:`${t}-block-support-panel`,label:n,resetAll:u,panelId:c,hasInnerWrapper:!0,shouldRenderPlaceholderItems:!0,__experimentalFirstVisibleItemClass:"first",__experimentalLastVisibleItemClass:"last",dropdownMenuProps:a,children:e},c)}function Da({Slot:e,fillProps:t,...n}){const o=(0,h.useContext)(ws.__experimentalToolsPanelContext),r=(0,h.useMemo)((()=>({...t??{},forwardedContext:[...t?.forwardedContext??[],[ws.__experimentalToolsPanelContext.Provider,{value:o}]]})),[o,t]);return(0,d.jsx)(e,{...n,fillProps:r,bubblesVirtually:!0})}function Oa({__experimentalGroup:e,group:t="default",label:n,fillProps:o,...r}){e&&(I()("`__experimentalGroup` property in `InspectorControlsSlot`",{since:"6.2",version:"6.4",alternative:"`group`"}),t=e);const i=Ma[t],s=(0,ws.__experimentalUseSlotFills)(i?.name);if(!i)return js()(`Unknown InspectorControls group "${t}" provided.`),null;if(!s?.length)return null;const{Slot:l}=i;return n?(0,d.jsx)(La,{group:t,label:n,children:(0,d.jsx)(Da,{...r,fillProps:o,Slot:l})}):(0,d.jsx)(l,{...r,fillProps:o,bubblesVirtually:!0})}const za=Ra;za.Slot=Oa;const Va=e=>(0,d.jsx)(Ra,{...e,group:"advanced"});Va.Slot=e=>(0,d.jsx)(Oa,{...e,group:"advanced"}),Va.slotName="InspectorAdvancedControls";var Fa=za,Ha=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"M7 11.5h10V13H7z"})});const Ua=window.wp.url,Ga=window.wp.dom,$a=window.wp.blob,Wa=window.wp.keycodes;var Ka=(0,d.jsxs)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,d.jsx)(ue.Path,{d:"m7 6.5 4 2.5-4 2.5z"}),(0,d.jsx)(ue.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"m5 3c-1.10457 0-2 .89543-2 2v14c0 1.1046.89543 2 2 2h14c1.1046 0 2-.8954 2-2v-14c0-1.10457-.8954-2-2-2zm14 1.5h-14c-.27614 0-.5.22386-.5.5v10.7072l3.62953-2.6465c.25108-.1831.58905-.1924.84981-.0234l2.92666 1.8969 3.5712-3.4719c.2911-.2831.7545-.2831 1.0456 0l2.9772 2.8945v-9.3568c0-.27614-.2239-.5-.5-.5zm-14.5 14.5v-1.4364l4.09643-2.987 2.99567 1.9417c.2936.1903.6798.1523.9307-.0917l3.4772-3.3806 3.4772 3.3806.0228-.0234v2.5968c0 .2761-.2239.5-.5.5h-14c-.27614 0-.5-.2239-.5-.5z"})]}),Za=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.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"})}),qa=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.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"})});var Ya=(0,ws.withFilters)("editor.MediaUpload")((()=>null));var Xa=function({fallback:e=null,children:t}){const n=(0,g.useSelect)((e=>{const{getSettings:t}=e(ji);return!!t().mediaUpload}),[]);return n?t:e};const Qa=window.wp.isShallowEqual;var Ja=n.n(Qa),ec=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"M17.031 4.703 15.576 4l-1.56 3H14v.03l-2.324 4.47H9.5V13h1.396l-1.502 2.889h-.95a3.694 3.694 0 0 1 0-7.389H10V7H8.444a5.194 5.194 0 1 0 0 10.389h.17L7.5 19.53l1.416.719L15.049 8.5h.507a3.694 3.694 0 0 1 0 7.39H14v1.5h1.556a5.194 5.194 0 0 0 .273-10.383l1.202-2.304Z"})}),tc=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"m6.734 16.106 2.176-2.38-1.093-1.028-3.846 4.158 3.846 4.158 1.093-1.028-2.176-2.38h2.811c1.125 0 2.25.03 3.374 0 1.428-.001 3.362-.25 4.963-1.277 1.66-1.065 2.868-2.906 2.868-5.859 0-2.479-1.327-4.896-3.65-5.93-1.82-.813-3.044-.8-4.806-.788l-.567.002v1.5c.184 0 .368 0 .553-.002 1.82-.007 2.704-.014 4.21.657 1.854.827 2.76 2.657 2.76 4.561 0 2.472-.973 3.824-2.178 4.596-1.258.807-2.864 1.04-4.163 1.04h-.02c-1.115.03-2.229 0-3.344 0H6.734Z"})}),nc=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"m13.1 16-3.4-4 3.4-4 1.1 1-2.6 3 2.6 3-1.1 1z"})}),oc=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"M10.8622 8.04053L14.2805 12.0286L10.8622 16.0167L9.72327 15.0405L12.3049 12.0286L9.72327 9.01672L10.8622 8.04053Z"})});var rc=function e({children:t,settingsOpen:n,setSettingsOpen:o}){const r=(0,m.useReducedMotion)(),i=r?h.Fragment:ws.__unstableAnimatePresence,s=r?"div":ws.__unstableMotion.div,l=`link-control-settings-drawer-${(0,m.useInstanceId)(e)}`;return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(ws.Button,{__next40pxDefaultSize:!0,className:"block-editor-link-control__drawer-toggle","aria-expanded":n,onClick:()=>o(!n),icon:(0,T.isRTL)()?nc:oc,"aria-controls":l,children:(0,T._x)("Advanced","Additional link settings")}),(0,d.jsx)(i,{children:n&&(0,d.jsx)(s,{className:"block-editor-link-control__drawer",hidden:!n,id:l,initial:"collapsed",animate:"open",exit:"collapsed",variants:{open:{opacity:1,height:"auto"},collapsed:{opacity:0,height:0}},transition:{duration:.1},children:(0,d.jsx)("div",{className:"block-editor-link-control__drawer-inner",children:t})})})]})},ic=n(1609);function sc(e){return"function"==typeof e}class lc extends h.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||(0,h.createRef)(),this.inputRef=e.inputRef||(0,h.createRef)(),this.updateSuggestions=(0,m.debounce)(this.updateSuggestions.bind(this),200),this.suggestionNodes=[],this.suggestionsRequest=null,this.state={suggestions:[],showSuggestions:!1,suggestionsValue:null,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.suggestionNodes[n].scrollIntoView({behavior:"instant",block:"nearest",inline:"nearest"}),e.value===o||this.props.disableSuggestions||(o?.length?this.updateSuggestions(o):r&&this.updateSuggestions())}componentDidMount(){this.shouldShowInitialSuggestions()&&this.updateSuggestions()}componentWillUnmount(){this.suggestionsRequest?.cancel?.(),this.suggestionsRequest=null}bindSuggestionNode(e){return t=>{this.suggestionNodes[e]=t}}shouldShowInitialSuggestions(){const{__experimentalShowInitialSuggestions:e=!1,value:t}=this.props;return e&&!(t&&t.length)}updateSuggestions(e=""){const{__experimentalFetchLinkSuggestions:t,__experimentalHandleURLSuggestions:n}=this.props;if(!t)return;const o=!e?.length;if(e=e.trim(),!o&&(e.length<2||!n&&(0,Ua.isURL)(e)))return this.suggestionsRequest?.cancel?.(),this.suggestionsRequest=null,void this.setState({suggestions:[],showSuggestions:!1,suggestionsValue:e,selectedSuggestion:null,loading:!1});this.setState({selectedSuggestion:null,loading:!0});const r=t(e,{isInitialSuggestions:o});r.then((t=>{this.suggestionsRequest===r&&(this.setState({suggestions:t,suggestionsValue:e,loading:!1,showSuggestions:!!t.length}),t.length?this.props.debouncedSpeak((0,T.sprintf)((0,T._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",t.length),t.length),"assertive"):this.props.debouncedSpeak((0,T.__)("No results."),"assertive"))})).catch((()=>{this.suggestionsRequest===r&&this.setState({loading:!1})})).finally((()=>{this.suggestionsRequest===r&&(this.suggestionsRequest=null)})),this.suggestionsRequest=r}onChange(e){this.props.onChange(e)}onFocus(){const{suggestions:e}=this.state,{disableSuggestions:t,value:n}=this.props;!n||t||e&&e.length||null!==this.suggestionsRequest||this.updateSuggestions(n)}onKeyDown(e){this.props.onKeyDown?.(e);const{showSuggestions:t,selectedSuggestion:n,suggestions:o,loading:r}=this.state;if(!t||!o.length||r){switch(e.keyCode){case Wa.UP:0!==e.target.selectionStart&&(e.preventDefault(),e.target.setSelectionRange(0,0));break;case Wa.DOWN:this.props.value.length!==e.target.selectionStart&&(e.preventDefault(),e.target.setSelectionRange(this.props.value.length,this.props.value.length));break;case Wa.ENTER:this.props.onSubmit&&(e.preventDefault(),this.props.onSubmit(null,e))}return}const i=this.state.suggestions[this.state.selectedSuggestion];switch(e.keyCode){case Wa.UP:{e.preventDefault();const t=n?n-1:o.length-1;this.setState({selectedSuggestion:t});break}case Wa.DOWN:{e.preventDefault();const t=null===n||n===o.length-1?0:n+1;this.setState({selectedSuggestion:t});break}case Wa.TAB:null!==this.state.selectedSuggestion&&(this.selectLink(i),this.props.speak((0,T.__)("Link selected.")));break;case Wa.ENTER:e.preventDefault(),null!==this.state.selectedSuggestion?(this.selectLink(i),this.props.onSubmit&&this.props.onSubmit(i,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({value:e,instanceId:t,disableSuggestions:n,__experimentalShowInitialSuggestions:o=!1},{showSuggestions:r}){let i=r;const s=e&&e.length;return o||s||(i=!1),!0===n&&(i=!1),{showSuggestions:i,suggestionsListboxId:`block-editor-url-input-suggestions-${t}`,suggestionOptionIdPrefix:`block-editor-url-input-suggestion-${t}`}}render(){return(0,d.jsxs)(d.Fragment,{children:[this.renderControl(),this.renderSuggestions()]})}renderControl(){const{label:e=null,className:t,isFullWidth:n,instanceId:o,placeholder:r=(0,T.__)("Paste URL or type to search"),__experimentalRenderControl:i,value:s="",hideLabelFromVision:l=!1,help:a=null,disabled:c=!1}=this.props,{loading:u,showSuggestions:p,selectedSuggestion:h,suggestionsListboxId:g,suggestionOptionIdPrefix:m}=this.state,f=`url-input-control-${o}`,b={id:f,label:e,className:ms("block-editor-url-input",t,{"is-full-width":n}),hideLabelFromVision:l},k={id:f,value:s,required:!0,type:"text",onChange:c?()=>{}:this.onChange,onFocus:c?()=>{}:this.onFocus,placeholder:r,onKeyDown:c?()=>{}:this.onKeyDown,role:"combobox","aria-label":e?void 0:(0,T.__)("URL"),"aria-expanded":p,"aria-autocomplete":"list","aria-owns":g,"aria-activedescendant":null!==h?`${m}-${h}`:void 0,ref:this.inputRef,disabled:c,suffix:this.props.suffix,help:a};return i?i(b,k,u):(0,d.jsxs)(ws.BaseControl,{__nextHasNoMarginBottom:!0,...b,children:[(0,d.jsx)(ws.__experimentalInputControl,{...k,__next40pxDefaultSize:!0}),u&&(0,d.jsx)(ws.Spinner,{})]})}renderSuggestions(){const{className:e,__experimentalRenderSuggestions:t}=this.props,{showSuggestions:n,suggestions:o,suggestionsValue:r,selectedSuggestion:i,suggestionsListboxId:s,suggestionOptionIdPrefix:l,loading:a}=this.state;if(!n||0===o.length)return null;const c={id:s,ref:this.autocompleteRef,role:"listbox"},u=(e,t)=>({role:"option",tabIndex:"-1",id:`${l}-${t}`,ref:this.bindSuggestionNode(t),"aria-selected":t===i||void 0});return sc(t)?t({suggestions:o,selectedSuggestion:i,suggestionsListProps:c,buildSuggestionItemProps:u,isLoading:a,handleSuggestionClick:this.handleOnClick,isInitialSuggestions:!r?.length,currentInputValue:r}):(0,d.jsx)(ws.Popover,{placement:"bottom",focusOnMount:!1,children:(0,d.jsx)("div",{...c,className:ms("block-editor-url-input__suggestions",{[`${e}__suggestions`]:e}),children:o.map(((e,t)=>(0,ic.createElement)(ws.Button,{__next40pxDefaultSize:!0,...u(0,t),key:e.id,className:ms("block-editor-url-input__suggestion",{"is-selected":t===i}),onClick:()=>this.handleOnClick(e)},e.title)))})})}}var ac=(0,m.compose)(m.withSafeTimeout,ws.withSpokenMessages,m.withInstanceId,(0,g.withSelect)(((e,t)=>{if(sc(t.__experimentalFetchLinkSuggestions))return;const{getSettings:n}=e(ji);return{__experimentalFetchLinkSuggestions:n().__experimentalFetchLinkSuggestions}})))(lc),cc=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"M11 12.5V17.5H12.5V12.5H17.5V11H12.5V6H11V11H6V12.5H11Z"})});var uc=({searchTerm:e,onClick:t,itemProps:n,buttonText:o})=>{if(!e)return null;let r;return r=o?"function"==typeof o?o(e):o:(0,h.createInterpolateElement)((0,T.sprintf)((0,T.__)("Create: <mark>%s</mark>"),e),{mark:(0,d.jsx)("mark",{})}),(0,d.jsx)(ws.MenuItem,{...n,iconPosition:"left",icon:cc,className:"block-editor-link-control__search-item",onClick:t,children:r})},dc=(0,d.jsx)(ue.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,d.jsx)(ue.Path,{d:"M18 5.5H6a.5.5 0 0 0-.5.5v12a.5.5 0 0 0 .5.5h12a.5.5 0 0 0 .5-.5V6a.5.5 0 0 0-.5-.5ZM6 4h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2Zm1 5h1.5v1.5H7V9Zm1.5 4.5H7V15h1.5v-1.5ZM10 9h7v1.5h-7V9Zm7 4.5h-7V15h7v-1.5Z"})}),pc=(0,d.jsxs)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,d.jsx)(ue.Path,{d:"M15.5 7.5h-7V9h7V7.5Zm-7 3.5h7v1.5h-7V11Zm7 3.5h-7V16h7v-1.5Z"}),(0,d.jsx)(ue.Path,{d:"M17 4H7a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2ZM7 5.5h10a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H7a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5Z"})]}),hc=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"M4.75 4a.75.75 0 0 0-.75.75v7.826c0 .2.08.39.22.53l6.72 6.716a2.313 2.313 0 0 0 3.276-.001l5.61-5.611-.531-.53.532.528a2.315 2.315 0 0 0 0-3.264L13.104 4.22a.75.75 0 0 0-.53-.22H4.75ZM19 12.576a.815.815 0 0 1-.236.574l-5.61 5.611a.814.814 0 0 1-1.153 0L5.5 12.264V5.5h6.763l6.5 6.502a.816.816 0 0 1 .237.574ZM8.75 9.75a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"})}),gc=(0,d.jsx)(ue.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,d.jsx)(ue.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"})}),mc=(0,d.jsx)(ue.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,d.jsx)(ue.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12.848 8a1 1 0 0 1-.914-.594l-.723-1.63a.5.5 0 0 0-.447-.276H5a.5.5 0 0 0-.5.5v11.5a.5.5 0 0 0 .5.5h14a.5.5 0 0 0 .5-.5v-9A.5.5 0 0 0 19 8h-6.152Zm.612-1.5a.5.5 0 0 1-.462-.31l-.445-1.084A2 2 0 0 0 10.763 4H5a2 2 0 0 0-2 2v11.5a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-9a2 2 0 0 0-2-2h-5.54Z"})}),fc=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.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-8Zm6.5 8c0 .6 0 1.2-.2 1.8h-2.7c0-.6.2-1.1.2-1.8s0-1.2-.2-1.8h2.7c.2.6.2 1.1.2 1.8Zm-.9-3.2h-2.4c-.3-.9-.7-1.8-1.1-2.4-.1-.2-.2-.4-.3-.5 1.6.5 3 1.6 3.8 3ZM12.8 17c-.3.5-.6 1-.8 1.3-.2-.3-.5-.8-.8-1.3-.3-.5-.6-1.1-.8-1.7h3.3c-.2.6-.5 1.2-.8 1.7Zm-2.9-3.2c-.1-.6-.2-1.1-.2-1.8s0-1.2.2-1.8H14c.1.6.2 1.1.2 1.8s0 1.2-.2 1.8H9.9ZM11.2 7c.3-.5.6-1 .8-1.3.2.3.5.8.8 1.3.3.5.6 1.1.8 1.7h-3.3c.2-.6.5-1.2.8-1.7Zm-1-1.2c-.1.2-.2.3-.3.5-.4.7-.8 1.5-1.1 2.4H6.4c.8-1.4 2.2-2.5 3.8-3Zm-1.8 8H5.7c-.2-.6-.2-1.1-.2-1.8s0-1.2.2-1.8h2.7c0 .6-.2 1.1-.2 1.8s0 1.2.2 1.8Zm-2 1.4h2.4c.3.9.7 1.8 1.1 2.4.1.2.2.4.3.5-1.6-.5-3-1.6-3.8-3Zm7.4 3c.1-.2.2-.3.3-.5.4-.7.8-1.5 1.1-2.4h2.4c-.8 1.4-2.2 2.5-3.8 3Z"})}),bc=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"M12 4L4 7.9V20h16V7.9L12 4zm6.5 14.5H14V13h-4v5.5H5.5V8.8L12 5.7l6.5 3.1v9.7z"})}),kc=(0,d.jsx)(ue.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,d.jsx)(ue.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"})});const vc={post:{icon:dc,label:(0,T.__)("Post")},page:{icon:pc,label:(0,T.__)("Page")},post_tag:{icon:hc,label:(0,T.__)("Tag")},category:{icon:gc,label:(0,T.__)("Category")},attachment:{icon:mc,label:(0,T.__)("Attachment")}};function _c({isURL:e,suggestion:t}){let n=null;return e?n=fc:t.type in vc&&(n=vc[t.type].icon,"page"===t.type&&(t.isFrontPage&&(n=bc),t.isBlogHome&&(n=kc))),n?(0,d.jsx)(Ol,{className:"block-editor-link-control__search-item-icon",icon:n}):null}function yc(e){const t=e?.trim();return t?.length?e?.replace(/^\/?/,"/"):e}function xc(e){const t=e?.trim();return t?.length?e?.replace(/\/$/,""):e}const Sc=({itemProps:e,suggestion:t,searchTerm:n,onClick:o,isURL:r=!1,shouldShowType:i=!1})=>{const s=r?(0,T.__)("Press ENTER to add this link"):(l=t.url)?(0,m.pipe)(Ua.safeDecodeURI,Ua.getPath,(e=>t=>null==t||t!=t?e:t)(""),((e,...t)=>(...n)=>e(...n,...t))(Ua.filterURLForDisplay,24),xc,yc)(l):l;var l;return(0,d.jsx)(ws.MenuItem,{...e,info:s,iconPosition:"left",icon:(0,d.jsx)(_c,{suggestion:t,isURL:r}),onClick:o,shortcut:i&&wc(t),className:"block-editor-link-control__search-item",children:(0,d.jsx)(ws.TextHighlight,{text:(0,Ga.__unstableStripHTML)(t.title),highlight:n})})};function wc(e){return e.isFrontPage?(0,T.__)("Front page"):e.isBlogHome?(0,T.__)("Blog home"):e.type in vc?vc[e.type].label:e.type}var Cc=Sc;const Bc=e=>(I()("wp.blockEditor.__experimentalLinkControlSearchItem",{since:"6.8"}),(0,d.jsx)(Sc,{...e})),Ic="__CREATE__",jc="link",Ec="mailto",Tc="internal",Mc=[jc,Ec,"tel",Tc],Pc=[{id:"opensInNewTab",title:(0,T.__)("Open in new tab")}];function Rc({withCreateSuggestion:e,currentInputValue:t,handleSuggestionClick:n,suggestionsListProps:o,buildSuggestionItemProps:r,suggestions:i,selectedSuggestion:s,isLoading:l,isInitialSuggestions:a,createSuggestionButtonText:c,suggestionsQuery:u}){const p=ms("block-editor-link-control__search-results",{"is-loading":l}),h=1===i.length&&Mc.includes(i[0].type),g=e&&!h&&!a,m=!u?.type,f=a?(0,T.__)("Suggestions"):(0,T.sprintf)((0,T.__)('Search results for "%s"'),t);return(0,d.jsx)("div",{className:"block-editor-link-control__search-results-wrapper",children:(0,d.jsx)("div",{...o,className:p,"aria-label":f,children:(0,d.jsx)(ws.MenuGroup,{children:i.map(((e,o)=>g&&Ic===e.type?(0,d.jsx)(uc,{searchTerm:t,buttonText:c,onClick:()=>n(e),itemProps:r(e,o),isSelected:o===s},e.type):Ic===e.type?null:(0,d.jsx)(Cc,{itemProps:r(e,o),suggestion:e,index:o,onClick:()=>{n(e)},isSelected:o===s,isURL:Mc.includes(e.type),searchTerm:t,shouldShowType:m,isFrontPage:e?.isFrontPage,isBlogHome:e?.isBlogHome},`${e.id}-${e.type}`)))})})})}var Ac=Rc;const Nc=e=>(I()("wp.blockEditor.__experimentalLinkControlSearchResults",{since:"6.8"}),(0,d.jsx)(Rc,{...e}));function Lc(e){if(e.includes(" "))return!1;const t=(0,Ua.getProtocol)(e),n=(0,Ua.isValidProtocol)(t),o=function(e,t=6){const n=e.split(/[?#]/)[0];return new RegExp(`(?<=\\S)\\.(?:[a-zA-Z_]{2,${t}})(?:\\/|$)`).test(n)}(e),r=e?.startsWith("www."),i=e?.startsWith("#")&&(0,Ua.isValidFragment)(e);return n||r||i||o}const Dc=()=>Promise.resolve([]),Oc=e=>{let t=jc;const n=(0,Ua.getProtocol)(e)||"";return n.includes("mailto")&&(t=Ec),n.includes("tel")&&(t="tel"),e?.startsWith("#")&&(t=Tc),Promise.resolve([{id:e,title:e,url:"URL"===t?(0,Ua.prependHTTP)(e):e,type:t}])};function zc(e,t,n){const{fetchSearchSuggestions:o,pageOnFront:r,pageForPosts:i}=(0,g.useSelect)((e=>{const{getSettings:t}=e(ji);return{pageOnFront:t().pageOnFront,pageForPosts:t().pageForPosts,fetchSearchSuggestions:t().__experimentalFetchLinkSuggestions}}),[]),s=t?Oc:Dc;return(0,h.useCallback)(((t,{isInitialSuggestions:l})=>Lc(t)?s(t,{isInitialSuggestions:l}):(async(e,t,n,o,r,i)=>{const{isInitialSuggestions:s}=t,l=await n(e,t);return l.map((e=>Number(e.id)===r?(e.isFrontPage=!0,e):Number(e.id)===i?(e.isBlogHome=!0,e):e)),s||Lc(e)||!o?l:l.concat({title:e,url:e,type:Ic})})(t,{...e,isInitialSuggestions:l},o,n,r,i)),[s,o,r,i,e,n])}const Vc=()=>Promise.resolve([]),Fc=()=>{},Hc=(0,h.forwardRef)((({value:e,children:t,currentLink:n={},className:o=null,placeholder:r=null,withCreateSuggestion:i=!1,onCreateSuggestion:s=Fc,onChange:l=Fc,onSelect:a=Fc,showSuggestions:c=!0,renderSuggestions:u=e=>(0,d.jsx)(Ac,{...e}),fetchSuggestions:p=null,allowDirectEntry:g=!0,showInitialSuggestions:m=!1,suggestionsQuery:f={},withURLSuggestion:b=!0,createSuggestionButtonText:k,hideLabelFromVision:v=!1,suffix:_,isEntity:y=!1},x)=>{const S=zc(f,g,i),w=c?p||S:Vc,[C,B]=(0,h.useState)(),I=async e=>{let t=e;if(Ic!==e.type){if(g||t&&Object.keys(t).length>=1){const{id:e,url:o,...r}=n??{};a({...r,...t},t)}}else try{t=await s(e.title),t?.url&&a(t)}catch(e){}},j=r??(0,T.__)("Search or type URL"),E=v&&""!==r?j:(0,T.__)("Link");return(0,d.jsxs)("div",{className:"block-editor-link-control__search-input-container",children:[(0,d.jsx)(ac,{disableSuggestions:n?.url===e,label:E,hideLabelFromVision:v,className:o,value:e,onChange:(e,t)=>{l(e),B(t)},placeholder:j,__experimentalRenderSuggestions:c?e=>u({...e,withCreateSuggestion:i,createSuggestionButtonText:k,suggestionsQuery:f,handleSuggestionClick:t=>{e.handleSuggestionClick&&e.handleSuggestionClick(t),I(t)}}):null,__experimentalFetchLinkSuggestions:w,__experimentalHandleURLSuggestions:!0,__experimentalShowInitialSuggestions:m,onSubmit:(t,n)=>{const o=t||C;o||e?.trim()?.length?I(o||{url:e}):n.preventDefault()},inputRef:x,suffix:_,disabled:y}),t]})}));var Uc=Hc;const Gc=e=>(I()("wp.blockEditor.__experimentalLinkControlSearchInput",{since:"6.8"}),(0,d.jsx)(Hc,{...e}));var $c=(0,d.jsx)(ue.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,d.jsx)(ue.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M5.5 12a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0ZM12 4a8 8 0 1 0 0 16 8 8 0 0 0 0-16Zm.75 4v1.5h-1.5V8h1.5Zm0 8v-5h-1.5v5h1.5Z"})}),Wc=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"m19 7-3-3-8.5 8.5-1 4 4-1L19 7Zm-7 11.5H5V20h7v-1.5Z"})}),Kc=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M5.625 5.5h9.75c.069 0 .125.056.125.125v9.75a.125.125 0 0 1-.125.125h-9.75a.125.125 0 0 1-.125-.125v-9.75c0-.069.056-.125.125-.125ZM4 5.625C4 4.728 4.728 4 5.625 4h9.75C16.273 4 17 4.728 17 5.625v9.75c0 .898-.727 1.625-1.625 1.625h-9.75A1.625 1.625 0 0 1 4 15.375v-9.75Zm14.5 11.656v-9H20v9C20 18.8 18.77 20 17.251 20H6.25v-1.5h11.001c.69 0 1.249-.528 1.249-1.219Z"})});const{Slot:Zc,Fill:qc}=(0,ws.createSlotFill)("BlockEditorLinkControlViewer");function Yc(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 Xc=function(e){const[t,n]=(0,h.useReducer)(Yc,{richData:null,isFetching:!1}),{fetchRichUrlData:o}=(0,g.useSelect)((e=>{const{getSettings:t}=e(ji);return{fetchRichUrlData:t().__experimentalFetchRichUrlData}}),[]);return(0,h.useEffect)((()=>{if(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 Qc({value:e,onEditClick:t,hasRichPreviews:n=!1,hasUnlinkControl:o=!1,onRemove:r}){const i=(0,g.useSelect)((e=>e(hr.store).get("core","showIconLabels")),[]),s=n?e?.url:null,{richData:l,isFetching:a}=Xc(s),c=l&&Object.keys(l).length,u=e&&(0,Ua.filterURLForDisplay)((0,Ua.safeDecodeURI)(e.url),24)||"",p=!e?.url?.length,h=!p&&(0,Ga.__unstableStripHTML)(l?.title||e?.title||u),f=!e?.url||h.replace(/^[a-z\-.\+]+[0-9]*:(\/\/)?/i,"").replace(/^www\./i,"")===u;let b;b=l?.icon?(0,d.jsx)("img",{src:l?.icon,alt:""}):p?(0,d.jsx)(Ol,{icon:$c,size:32}):(0,d.jsx)(Ol,{icon:fc});const{createNotice:k}=(0,g.useDispatch)(pr.store),v=(0,m.useCopyToClipboard)(e.url,(()=>{k("info",(0,T.__)("Link copied to clipboard."),{isDismissible:!0,type:"snackbar"})}));return(0,d.jsx)("div",{role:"group","aria-label":(0,T.__)("Manage link"),className:ms("block-editor-link-control__search-item",{"is-current":!0,"is-rich":c,"is-fetching":!!a,"is-preview":!0,"is-error":p,"is-url-title":h===u}),children:(0,d.jsxs)("div",{className:"block-editor-link-control__search-item-top",children:[(0,d.jsxs)("span",{className:"block-editor-link-control__search-item-header",role:"figure","aria-label":(0,T.__)("Link information"),children:[(0,d.jsx)("span",{className:ms("block-editor-link-control__search-item-icon",{"is-image":l?.icon}),children:b}),(0,d.jsx)("span",{className:"block-editor-link-control__search-item-details",children:p?(0,d.jsx)("span",{className:"block-editor-link-control__search-item-error-notice",children:(0,T.__)("Link is empty")}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(ws.ExternalLink,{className:"block-editor-link-control__search-item-title",href:e.url,children:(0,d.jsx)(ws.__experimentalTruncate,{numberOfLines:1,children:h})}),!f&&(0,d.jsx)("span",{className:"block-editor-link-control__search-item-info",children:(0,d.jsx)(ws.__experimentalTruncate,{numberOfLines:1,children:u})})]})})]}),(0,d.jsx)(ws.Button,{icon:Wc,label:(0,T.__)("Edit link"),onClick:t,size:"compact",showTooltip:!i}),o&&(0,d.jsx)(ws.Button,{icon:ec,label:(0,T.__)("Remove link"),onClick:r,size:"compact",showTooltip:!i}),(0,d.jsx)(ws.Button,{icon:Kc,label:(0,T.__)("Copy link"),ref:v,accessibleWhenDisabled:!0,disabled:p,size:"compact",showTooltip:!i}),(0,d.jsx)(Zc,{fillProps:e})]})})}const Jc=()=>{};var eu=({value:e,onChange:t=Jc,settings:n})=>{if(!n||!n.length)return null;const o=n=>o=>{t({...e,[n.id]:o})},r=n.map((n=>{if("render"in n){if("function"==typeof n.render){const o=n.render(n,e,t);return(0,d.jsx)("div",{className:"block-editor-link-control__setting",children:o},n.id)}return null}return(0,d.jsx)(ws.CheckboxControl,{__nextHasNoMarginBottom:!0,className:"block-editor-link-control__setting",label:n.title,onChange:o(n),checked:!!e&&!!e[n.id],help:n?.help},n.id)})).filter(Boolean);return(0,d.jsxs)("fieldset",{className:"block-editor-link-control__settings",children:[(0,d.jsx)(ws.VisuallyHidden,{as:"legend",children:(0,T.__)("Currently selected link settings")}),r]})};const tu=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}}};var nu=n(5215),ou=n.n(nu);const ru=()=>{},iu="core/block-editor",su="linkControlSettingsDrawer";function lu({searchInputPlaceholder:e,value:t,settings:n=Pc,onChange:o=ru,onRemove:r,onCancel:i,noDirectEntry:s=!1,showSuggestions:l=!0,showInitialSuggestions:a,forceIsEditingLink:c,createSuggestion:u,withCreateSuggestion:p,inputValue:f="",suggestionsQuery:b={},noURLSuggestion:k=!1,createSuggestionButtonText:v,hasRichPreviews:_=!1,hasTextControl:y=!1,renderControlBottom:x=null,handleEntities:S=!1}){void 0===p&&u&&(p=!0);const[w,C]=(0,h.useState)(!1),{advancedSettingsPreference:B}=(0,g.useSelect)((e=>({advancedSettingsPreference:e(hr.store).get(iu,su)??!1})),[]),{set:I}=(0,g.useDispatch)(hr.store),j=B||w,E=(0,h.useRef)(!0),M=(0,h.useRef)(),P=(0,h.useRef)(),R=(0,h.useRef)(),A=(0,h.useRef)(!1),N=n.map((({id:e})=>e)),[L,D,O,z,V]=function(e){const[t,n]=(0,h.useState)(e||{}),[o,r]=(0,h.useState)(e);return ou()(e,o)||(r(e),n(e)),[t,n,e=>{n({...t,url:e})},e=>{n({...t,title:e})},e=>o=>{const r=Object.keys(o).reduce(((t,n)=>(e.includes(n)&&(t[n]=o[n]),t)),{});n({...t,...r})}]}(t),F=S&&!!L?.id,H=(0,m.useInstanceId)(lu,"link-control"),U=F?`${H}__help`:null,G=t&&!(0,Qa.isShallowEqualObjects)(L,t),[$,W]=(0,h.useState)(void 0!==c?c:!t||!t.url),{createPage:K,isCreatingPage:Z,errorMessage:q}=function(e){const t=(0,h.useRef)(),[n,o]=(0,h.useState)(!1),[r,i]=(0,h.useState)(null);return(0,h.useEffect)((()=>()=>{t.current&&t.current.cancel()}),[]),{createPage:async function(n){o(!0),i(null);try{return t.current=tu(Promise.resolve(e(n))),await t.current.promise}catch(e){if(e&&e.isCanceled)return;throw i(e.message||(0,T.__)("An unknown error occurred during creation. Please try again.")),e}finally{o(!1)}},isCreatingPage:n,errorMessage:r}}(u);(0,h.useEffect)((()=>{void 0!==c&&W(c)}),[c]),(0,h.useEffect)((()=>{if(E.current)return;(Ga.focus.focusable.find(M.current)[0]||M.current).focus(),A.current=!1}),[$,Z]),(0,h.useEffect)((()=>(E.current=!1,()=>{E.current=!0})),[]);const Y=t?.url?.trim()?.length>0,X=()=>{A.current=!!M.current?.contains(M.current.ownerDocument.activeElement),W(!1)},Q=()=>{G&&o({...t,...L,url:te}),X()},[J,ee]=(0,h.useState)(!1);(0,h.useEffect)((()=>{J&&(R.current?.focus(),ee(!1))}),[J]);const te=f||L?.url||"",ne=!te?.trim()?.length,oe=r&&t&&!$&&!Z,re=$&&Y,ie=Y&&y,se=($||!t)&&!Z,le=!G||ne,ae=!!n?.length&&$&&Y;return(0,d.jsxs)("div",{tabIndex:-1,ref:M,className:"block-editor-link-control",children:[Z&&(0,d.jsxs)("div",{className:"block-editor-link-control__loading",children:[(0,d.jsx)(ws.Spinner,{})," ",(0,T.__)("Creating"),"…"]}),se&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{className:ms({"block-editor-link-control__search-input-wrapper":!0,"has-text-control":ie,"has-actions":re}),children:[ie&&(0,d.jsx)(ws.TextControl,{__nextHasNoMarginBottom:!0,ref:P,className:"block-editor-link-control__field block-editor-link-control__text-content",label:(0,T.__)("Text"),value:L?.title,onChange:z,onKeyDown:e=>{const{keyCode:t}=e;t!==Wa.ENTER||ne||(e.preventDefault(),Q())},__next40pxDefaultSize:!0}),(0,d.jsx)(Uc,{ref:R,currentLink:t,className:"block-editor-link-control__field block-editor-link-control__search-input",placeholder:e,value:te,withCreateSuggestion:p,onCreateSuggestion:K,onChange:O,onSelect:e=>{const t=Object.keys(e).reduce(((t,n)=>(N.includes(n)||(t[n]=e[n]),t)),{});o({...L,...t,title:L?.title||e?.title}),X()},showInitialSuggestions:a,allowDirectEntry:!s,showSuggestions:l,suggestionsQuery:b,withURLSuggestion:!k,createSuggestionButtonText:v,hideLabelFromVision:!ie,isEntity:F,suffix:(0,d.jsx)(au,{isEntity:F,showActions:re,isDisabled:le,onUnlink:()=>{const{id:e,kind:t,type:n,...o}=L;D({...o,id:void 0,kind:void 0,type:void 0,url:void 0}),ee(!0)},onSubmit:Q,helpTextId:U})}),F&&U&&(0,d.jsx)("p",{id:U,className:"block-editor-link-control__help",children:(0,T.sprintf)((0,T.__)("Synced with the selected %s."),L?.type||"item")})]}),q&&(0,d.jsx)(ws.Notice,{className:"block-editor-link-control__search-error",status:"error",isDismissible:!1,children:q})]}),t&&!$&&!Z&&(0,d.jsx)(Qc,{value:t,onEditClick:()=>W(!0),hasRichPreviews:_,hasUnlinkControl:oe,onRemove:()=>{r(),W(!0)}},t?.url),ae&&(0,d.jsx)("div",{className:"block-editor-link-control__tools",children:!ne&&(0,d.jsx)(rc,{settingsOpen:j,setSettingsOpen:e=>{I&&I(iu,su,e),C(e)},children:(0,d.jsx)(eu,{value:L,settings:n,onChange:V(N)})})}),re&&(0,d.jsxs)(ws.__experimentalHStack,{justify:"right",className:"block-editor-link-control__search-actions",children:[(0,d.jsx)(ws.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:e=>{e.preventDefault(),e.stopPropagation(),D(t),Y?X():r?.(),i?.()},children:(0,T.__)("Cancel")}),(0,d.jsx)(ws.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:le?ru:Q,className:"block-editor-link-control__search-submit","aria-disabled":le,children:(0,T.__)("Apply")})]}),!Z&&x&&x()]})}function au({isEntity:e,showActions:t,isDisabled:n,onUnlink:o,onSubmit:r,helpTextId:i}){return e?(0,d.jsx)(ws.Button,{icon:ec,onClick:o,"aria-describedby":i,showTooltip:!0,label:(0,T.__)("Unsync and edit"),__next40pxDefaultSize:!0}):t?void 0:(0,d.jsx)(ws.__experimentalInputControlSuffixWrapper,{variant:"control",children:(0,d.jsx)(ws.Button,{onClick:n?ru:r,label:(0,T.__)("Submit"),icon:tc,className:"block-editor-link-control__search-submit","aria-disabled":n,size:"small"})})}lu.ViewerFill=qc,lu.DEFAULT_LINK_SETTINGS=Pc;const cu=e=>(I()("wp.blockEditor.__experimentalLinkControl",{since:"6.8",alternative:"wp.blockEditor.LinkControl"}),(0,d.jsx)(lu,{...e}));cu.ViewerFill=lu.ViewerFill,cu.DEFAULT_LINK_SETTINGS=lu.DEFAULT_LINK_SETTINGS;var uu=lu;const du=()=>{};let pu=0;var hu=(0,m.compose)([(0,g.withDispatch)((e=>{const{createNotice:t,removeNotice:n}=e(pr.store);return{createNotice:t,removeNotice:n}})),(0,ws.withFilters)("editor.MediaReplaceFlow")])((({mediaURL:e,mediaId:t,mediaIds:n,allowedTypes:o,accept:r,onError:i,onSelect:s,onSelectURL:l,onReset:a,onToggleFeaturedImage:c,useFeaturedImage:u,onFilesUpload:p=du,name:h=(0,T.__)("Replace"),createNotice:m,removeNotice:f,children:b,multiple:k=!1,addToGallery:v,handleUpload:_=!0,popoverProps:y,renderToggle:x})=>{const{getSettings:S}=(0,g.useSelect)(ji),w="block-editor/media-replace-flow/error-notice/"+ ++pu,C=e=>{const t=(0,Ga.__unstableStripHTML)(e);i?i(t):setTimeout((()=>{m("error",t,{speak:!0,id:w,isDismissible:!0})}),1e3)},B=(e,t)=>{u&&c&&c(),t(),s(e),(0,Uo.speak)((0,T.__)("The media file has been replaced")),f(w)},I=e=>{e.keyCode===Wa.DOWN&&(e.preventDefault(),e.target.click())},j=k&&!(!o||0===o.length)&&o.every((e=>"image"===e||e.startsWith("image/")));return(0,d.jsx)(ws.Dropdown,{popoverProps:y,contentClassName:"block-editor-media-replace-flow__options",renderToggle:({isOpen:e,onToggle:t})=>x?x({"aria-expanded":e,"aria-haspopup":"true",onClick:t,onKeyDown:I,children:h}):(0,d.jsx)(ws.ToolbarButton,{"aria-expanded":e,"aria-haspopup":"true",onClick:t,onKeyDown:I,children:h}),renderContent:({onClose:i})=>(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(ws.NavigableMenu,{className:"block-editor-media-replace-flow__media-upload-menu",children:[(0,d.jsxs)(Xa,{children:[(0,d.jsx)(Ya,{gallery:j,addToGallery:v,multiple:k,value:k?n:t,onSelect:e=>B(e,i),allowedTypes:o,render:({open:e})=>(0,d.jsx)(ws.MenuItem,{icon:Ka,onClick:e,children:(0,T.__)("Open Media Library")})}),(0,d.jsx)(ws.FormFileUpload,{onChange:e=>{((e,t)=>{const n=e.target.files;if(!_)return t(),s(n);p(n),S().mediaUpload({allowedTypes:o,filesList:n,onFileChange:([e])=>{B(e,t)},onError:C})})(e,i)},accept:r,multiple:!!k,render:({openFileDialog:e})=>(0,d.jsx)(ws.MenuItem,{icon:Za,onClick:()=>{e()},children:(0,T._x)("Upload","verb")})})]}),c&&(0,d.jsx)(ws.MenuItem,{icon:qa,onClick:c,isPressed:u,children:(0,T.__)("Use featured image")}),e&&a&&(0,d.jsx)(ws.MenuItem,{onClick:()=>{a(),i()},children:(0,T.__)("Reset")}),"function"==typeof b?b({onClose:i}):b]}),l&&(0,d.jsxs)("form",{className:"block-editor-media-flow__url-input",children:[(0,d.jsx)("span",{className:"block-editor-media-replace-flow__image-url-label",children:(0,T.__)("Current media URL:")}),(0,d.jsx)(uu,{value:{url:e},settings:[],showSuggestions:!1,onChange:({url:e})=>{l(e)},searchInputPlaceholder:(0,T.__)("Paste or type URL")})]})]})})}));const gu="image",mu={placement:"left-start",offset:36,shift:!0,className:"block-editor-global-styles-background-panel__popover"},fu=()=>{},bu=e=>{window.requestAnimationFrame((()=>{const[t]=Ga.focus.tabbable.find(e?.current);t&&t.focus()}))};const ku=e=>{if(!e||isNaN(e.x)&&isNaN(e.y))return;return`${100*(isNaN(e.x)?.5:e.x)}% ${100*(isNaN(e.y)?.5:e.y)}%`},vu=e=>{if(!e)return{x:void 0,y:void 0};let[t,n]=e.split(" ").map((e=>parseFloat(e)/100));return t=isNaN(t)?void 0:t,n=isNaN(n)?t:n,{x:t,y:n}};function _u({as:e="span",imgUrl:t,toggleProps:n={},filename:o,label:r,onToggleCallback:i=fu}){const{isOpen:s,...l}=n;(0,h.useEffect)((()=>{void 0!==s&&i(s)}),[s,i]);const a=()=>(0,d.jsxs)(ws.__experimentalHStack,{justify:"flex-start",as:"span",className:"block-editor-global-styles-background-panel__inspector-preview-inner",children:[t&&(0,d.jsx)("span",{className:"block-editor-global-styles-background-panel__inspector-image-indicator-wrapper","aria-hidden":!0,children:(0,d.jsx)("span",{className:"block-editor-global-styles-background-panel__inspector-image-indicator",style:{backgroundImage:`url(${t})`}})}),(0,d.jsxs)(ws.FlexItem,{as:"span",style:t?{}:{flexGrow:1},children:[(0,d.jsx)(ws.__experimentalTruncate,{numberOfLines:1,className:"block-editor-global-styles-background-panel__inspector-media-replace-title",children:r}),(0,d.jsx)(ws.VisuallyHidden,{as:"span",children:t?(0,T.sprintf)((0,T.__)("Background image: %s"),o||r):(0,T.__)("No background image selected")})]})]});return"button"===e?(0,d.jsx)(ws.Button,{__next40pxDefaultSize:!0,...l,children:a()}):a()}function yu({label:e,filename:t,url:n,children:o,onToggle:r=fu,hasImageValue:i,onReset:s,containerRef:l}){if(!i)return;const a=e||(0,Ua.getFilename)(n)||(0,T.__)("Add background image");return(0,d.jsx)(ws.Dropdown,{popoverProps:mu,renderToggle:({onToggle:e,isOpen:o})=>{const i={onClick:e,className:"block-editor-global-styles-background-panel__dropdown-toggle","aria-expanded":o,"aria-label":(0,T.__)("Background size, position and repeat options."),isOpen:o};return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(_u,{imgUrl:n,filename:t,label:a,toggleProps:i,as:"button",onToggleCallback:r}),s&&(0,d.jsx)(ws.Button,{__next40pxDefaultSize:!0,label:(0,T.__)("Reset"),className:"block-editor-global-styles-background-panel__reset",size:"small",icon:Ha,onClick:()=>{s(),o&&e(),bu(l)}})]})},renderContent:()=>(0,d.jsx)(ws.__experimentalDropdownContentWrapper,{className:"block-editor-global-styles-background-panel__dropdown-content-wrapper",paddingSize:"medium",children:o})})}function xu(){return(0,d.jsx)(ws.Placeholder,{className:"block-editor-global-styles-background-panel__loading",children:(0,d.jsx)(ws.Spinner,{})})}function Su({onChange:e,style:t,inheritedValue:n,onRemoveImage:o=fu,onResetImage:r=fu,displayInPanel:i,defaultValues:s,containerRef:l}){const[a,c]=(0,h.useState)(!1),{getSettings:u}=(0,g.useSelect)(ji),{id:p,title:m,url:f}=t?.background?.backgroundImage||{...n?.background?.backgroundImage},{createErrorNotice:b}=(0,g.useDispatch)(pr.store),k=e=>{b(e,{type:"snackbar"}),c(!1)},v=n=>{if(!n||!n.url)return e(me(t,["background","backgroundImage"],void 0)),void c(!1);if((0,$a.isBlobURL)(n.url))return void c(!0);if(n.media_type&&n.media_type!==gu||!n.media_type&&n.type&&n.type!==gu)return void k((0,T.__)("Only images can be used as a background image."));const o=t?.background?.backgroundSize||s?.backgroundSize,r=t?.background?.backgroundPosition;e(me(t,["background"],{...t?.background,backgroundImage:{url:n.url,id:n.id,source:"file",title:n.title||void 0},backgroundPosition:r||"auto"!==o&&o?r:"50% 0",backgroundSize:o})),c(!1),bu(l)},_=ju(t),y=!_&&ju(n),x=m||(0,Ua.getFilename)(f)||(0,T.__)("Add background image");return(0,d.jsxs)("div",{className:"block-editor-global-styles-background-panel__image-tools-panel-item",children:[a&&(0,d.jsx)(xu,{}),(0,d.jsx)(hu,{mediaId:p,mediaURL:f,allowedTypes:[gu],accept:"image/*",onSelect:v,popoverProps:{className:ms({"block-editor-global-styles-background-panel__media-replace-popover":i})},name:(0,d.jsx)(_u,{imgUrl:f,filename:m,label:x}),renderToggle:e=>(0,d.jsx)(ws.Button,{...e,__next40pxDefaultSize:!0}),onError:k,onReset:()=>{bu(l),r()},children:y&&(0,d.jsx)(ws.MenuItem,{onClick:()=>{bu(l),e(me(t,["background"],{backgroundImage:"none"})),o()},children:(0,T.__)("Remove")})}),(0,d.jsx)(ws.DropZone,{onFilesDrop:e=>{u().mediaUpload({allowedTypes:[gu],filesList:e,onFileChange([e]){v(e)},onError:k,multiple:!1})},label:(0,T.__)("Drop to upload")})]})}function wu({onChange:e,style:t,inheritedValue:n,defaultValues:o}){const r=t?.background?.backgroundSize||n?.background?.backgroundSize,i=t?.background?.backgroundRepeat||n?.background?.backgroundRepeat,s=t?.background?.backgroundImage?.url||n?.background?.backgroundImage?.url,l=t?.background?.backgroundImage?.id,a=t?.background?.backgroundPosition||n?.background?.backgroundPosition,c=t?.background?.backgroundAttachment||n?.background?.backgroundAttachment;let u=!r&&l?o?.backgroundSize:r||"auto";u=["cover","contain","auto"].includes(u)?u:"auto";const p=!("no-repeat"===i||"cover"===u&&void 0===i),h=n=>{let o=i,r=a;"contain"===n&&(o="no-repeat",r=void 0),"cover"===n&&(o=void 0,r=void 0),"cover"!==u&&"contain"!==u||"auto"!==n||(o=void 0,t?.background?.backgroundImage?.id&&(r="50% 0")),n||"auto"!==u||(n="auto"),e(me(t,["background"],{...t?.background,backgroundPosition:r,backgroundRepeat:o,backgroundSize:n}))},g=!a&&l&&"contain"===r?o?.backgroundPosition:a;return(0,d.jsxs)(ws.__experimentalVStack,{spacing:3,className:"single-column",children:[(0,d.jsx)(ws.FocalPointPicker,{__nextHasNoMarginBottom:!0,label:(0,T.__)("Focal point"),url:s,value:vu(g),onChange:n=>{e(me(t,["background","backgroundPosition"],ku(n)))}}),(0,d.jsx)(ws.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,T.__)("Fixed background"),checked:"fixed"===c,onChange:()=>e(me(t,["background","backgroundAttachment"],"fixed"===c?"scroll":"fixed"))}),(0,d.jsxs)(ws.__experimentalToggleGroupControl,{__nextHasNoMarginBottom:!0,size:"__unstable-large",label:(0,T.__)("Size"),value:u,onChange:h,isBlock:!0,help:(m=r||o?.backgroundSize,"cover"===m||void 0===m?(0,T.__)("Image covers the space evenly."):"contain"===m?(0,T.__)("Image is contained without distortion."):(0,T.__)("Image has a fixed width.")),children:[(0,d.jsx)(ws.__experimentalToggleGroupControlOption,{value:"cover",label:(0,T._x)("Cover","Size option for background image control")},"cover"),(0,d.jsx)(ws.__experimentalToggleGroupControlOption,{value:"contain",label:(0,T._x)("Contain","Size option for background image control")},"contain"),(0,d.jsx)(ws.__experimentalToggleGroupControlOption,{value:"auto",label:(0,T._x)("Tile","Size option for background image control")},"tile")]}),(0,d.jsxs)(ws.__experimentalHStack,{justify:"flex-start",spacing:2,as:"span",children:[(0,d.jsx)(ws.__experimentalUnitControl,{"aria-label":(0,T.__)("Background image width"),onChange:h,value:r,size:"__unstable-large",__unstableInputWidth:"100px",min:0,placeholder:(0,T.__)("Auto"),disabled:"auto"!==u||void 0===u}),(0,d.jsx)(ws.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,T.__)("Repeat"),checked:p,onChange:()=>e(me(t,["background","backgroundRepeat"],!0===p?"no-repeat":"repeat")),disabled:"cover"===u})]})]});var m}function Cu({value:e,onChange:t,inheritedValue:n=e,settings:o,defaultValues:r={}}){const{globalStyles:i,_links:s}=(0,g.useSelect)((e=>{const{getSettings:t}=e(ji),n=t();return{globalStyles:n[N],_links:n[L]}}),[]),l=(0,h.useMemo)((()=>{const e={background:{}};return n?.background?(Object.entries(n?.background).forEach((([t,n])=>{e.background[t]=rs(n,{styles:i,_links:s})})),e):n}),[i,s,n]),a=()=>t(me(e,["background"],{})),{title:c,url:u}=e?.background?.backgroundImage||{...l?.background?.backgroundImage},p=ju(e)||ju(l),m=p&&"none"!==(e?.background?.backgroundImage||n?.background?.backgroundImage)&&(o?.background?.backgroundSize||o?.background?.backgroundPosition||o?.background?.backgroundRepeat),[f,b]=(0,h.useState)(!1),k=(0,h.useRef)();return(0,d.jsx)("div",{ref:k,className:ms("block-editor-global-styles-background-panel__inspector-media-replace-container",{"is-open":f}),children:m?(0,d.jsx)(yu,{label:c,filename:c,url:u,onToggle:b,hasImageValue:p,onReset:a,containerRef:k,children:(0,d.jsxs)(ws.__experimentalVStack,{spacing:3,className:"single-column",children:[(0,d.jsx)(Su,{onChange:t,style:e,inheritedValue:l,displayInPanel:!0,onResetImage:()=>{b(!1),a()},onRemoveImage:()=>b(!1),defaultValues:r,containerRef:k}),(0,d.jsx)(wu,{onChange:t,style:e,defaultValues:r,inheritedValue:l})]})}):(0,d.jsx)(Su,{onChange:t,style:e,inheritedValue:l,defaultValues:r,onResetImage:()=>{b(!1),a()},onRemoveImage:()=>b(!1),containerRef:k})})}const Bu={backgroundImage:!0};function Iu(e){return"web"===h.Platform.OS&&e?.background?.backgroundImage}function ju(e){return!!e?.background?.backgroundImage?.id||"string"==typeof e?.background?.backgroundImage||!!e?.background?.backgroundImage?.url}function Eu({resetAllFilter:e,onChange:t,value:n,panelId:o,children:r,headerLabel:i}){const s=Ji();return(0,d.jsx)(ws.__experimentalToolsPanel,{label:i,resetAll:()=>{const o=e(n);t(o)},panelId:o,dropdownMenuProps:s,children:r})}function Tu({as:e=Eu,value:t,onChange:n,inheritedValue:o,settings:r,panelId:i,defaultControls:s=Bu,defaultValues:l={},headerLabel:a=(0,T.__)("Background image")}){const c=Iu(r),u=(0,h.useCallback)((e=>({...e,background:{}})),[]);return(0,d.jsx)(e,{resetAllFilter:u,value:t,onChange:n,panelId:i,headerLabel:a,children:c&&(0,d.jsx)(ws.__experimentalToolsPanelItem,{hasValue:()=>!!t?.background,label:(0,T.__)("Image"),onDeselect:()=>n(me(t,["background"],{})),isShownByDefault:s.backgroundImage,panelId:i,children:(0,d.jsx)(Cu,{value:t,onChange:n,settings:r,inheritedValue:o,defaultControls:s,defaultValues:l})})})}const Mu="background",Pu={backgroundSize:"cover",backgroundPosition:"50% 50%"};function Ru(e,t="any"){const n=(0,p.getBlockSupport)(e,Mu);return!0===n||("any"===t?!!n?.backgroundImage||!!n?.backgroundSize||!!n?.backgroundRepeat:!!n?.[t])}function Au(e){if(!e||!e?.backgroundImage?.url)return;let t;return e?.backgroundSize||(t={backgroundSize:Pu.backgroundSize}),"contain"!==e?.backgroundSize||e?.backgroundPosition||(t={backgroundPosition:Pu.backgroundPosition}),t}function Nu(e){return ju(e)?"has-background":""}function Lu({children:e}){const t=(0,h.useCallback)((e=>({...e,style:{...e.style,background:void 0}})),[]);return(0,d.jsx)(Fa,{group:"background",resetAllFilter:t,children:e})}function Du({clientId:e,name:t,setAttributes:n,settings:o}){const{style:r,inheritedValue:i}=(0,g.useSelect)((n=>{const{getBlockAttributes:o,getSettings:r}=n(ji),i=r();return{style:o(e)?.style,inheritedValue:i[N]?.blocks?.[t]}}),[e,t]);if(!Iu(o)||!Ru(t,"backgroundImage"))return null;const s={...o,background:{...o.background,backgroundSize:o?.background?.backgroundSize&&Ru(t,"backgroundSize")}},l=(0,p.getBlockSupport)(t,[Mu,"defaultControls"]);return(0,d.jsx)(Tu,{inheritedValue:i,as:Lu,panelId:e,defaultValues:Pu,settings:s,onChange:e=>{n({style:fs(e)})},defaultControls:l,value:r})}var Ou={useBlockProps:function({name:e,style:t}){if(!Ru(e)||!t?.background?.backgroundImage)return;const n=Au(t?.background);return n?{style:{...n}}:void 0},attributeKeys:["style"],hasSupport:Ru};(0,f.addFilter)("blocks.registerBlockType","core/lock/addAttribute",(function(e){return"type"in(e.attributes?.lock??{})||(e.attributes={...e.attributes,lock:{type:"object"}}),e}));var zu=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.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"})});var Vu=(0,h.memo)((function({icon:e,showColors:t=!1,className:n,context:o}){"block-default"===e?.src&&(e={src:zu});const r=(0,d.jsx)(ws.Icon,{icon:e&&e.src?e.src:e,context:o}),i=t?{backgroundColor:e&&e.background,color:e&&e.foreground}:{};return(0,d.jsx)("span",{style:i,className:ms("block-editor-block-icon",n,{"has-colors":t}),children:r})}));var Fu=function({blockTypes:e,value:t,onItemChange:n}){return(0,d.jsx)("ul",{className:"block-editor-block-manager__checklist",children:e.map((e=>(0,d.jsxs)("li",{className:"block-editor-block-manager__checklist-item",children:[(0,d.jsx)(ws.CheckboxControl,{__nextHasNoMarginBottom:!0,label:e.title,checked:t.includes(e.name),onChange:(...t)=>n(e,...t)}),(0,d.jsx)(Vu,{icon:e.icon})]},e.name)))})};var Hu=function e({title:t,blockTypes:n,selectedBlockTypes:o,onChange:r}){const i=(0,m.useInstanceId)(e),s=(0,h.useCallback)(((e,t)=>{r(t?[...o,e]:o.filter((({name:t})=>t!==e.name)))}),[o,r]),l=(0,h.useCallback)((e=>{r(e?[...o,...n.filter((e=>!o.find((({name:t})=>t===e.name))))]:o.filter((e=>!n.find((({name:t})=>t===e.name)))))}),[n,o,r]);if(!n.length)return null;const a=n.map((({name:e})=>e)).filter((e=>(o??[]).some((t=>t.name===e)))),c="block-editor-block-manager__category-title-"+i,u=a.length===n.length,p=!u&&a.length>0;return(0,d.jsxs)("div",{role:"group","aria-labelledby":c,className:"block-editor-block-manager__category",children:[(0,d.jsx)(ws.CheckboxControl,{__nextHasNoMarginBottom:!0,checked:u,onChange:l,className:"block-editor-block-manager__category-title",indeterminate:p,label:(0,d.jsx)("span",{id:c,children:t})}),(0,d.jsx)(Fu,{blockTypes:n,value:a,onItemChange:s})]})};function Uu({blockTypes:e,selectedBlockTypes:t,onChange:n,showSelectAll:o=!0}){const r=(0,m.useDebounce)(Uo.speak,500),[i,s]=(0,h.useState)(""),{categories:l,isMatchingSearchTerm:a}=(0,g.useSelect)((e=>({categories:e(p.store).getCategories(),isMatchingSearchTerm:e(p.store).isMatchingSearchTerm})),[]),c=e.filter((e=>!i||a(e,i))),u=t.length>0&&t.length!==e.length,f=e.length>0&&t.length===e.length;return(0,h.useEffect)((()=>{if(!i)return;const e=c.length,t=(0,T.sprintf)((0,T._n)("%d result found.","%d results found.",e),e);r(t)}),[c?.length,i,r]),(0,d.jsxs)(ws.__experimentalVStack,{className:"block-editor-block-manager__content",spacing:4,children:[(0,d.jsx)(ws.SearchControl,{__nextHasNoMarginBottom:!0,label:(0,T.__)("Search for a block"),placeholder:(0,T.__)("Search for a block"),value:i,onChange:e=>s(e),className:"block-editor-block-manager__search"}),o&&(0,d.jsx)(ws.CheckboxControl,{className:"block-editor-block-manager__select-all",label:(0,T.__)("Select all"),checked:f,onChange:()=>{n(f?[]:e)},indeterminate:u,__nextHasNoMarginBottom:!0}),(0,d.jsxs)("div",{tabIndex:"0",role:"region","aria-label":(0,T.__)("Available block types"),className:"block-editor-block-manager__results",children:[0===c.length&&(0,d.jsx)("p",{className:"block-editor-block-manager__no-results",children:(0,T.__)("No blocks found.")}),l.map((e=>(0,d.jsx)(Hu,{title:e.title,blockTypes:c.filter((t=>t.category===e.slug)),selectedBlockTypes:t,onChange:n},e.slug))),(0,d.jsx)(Hu,{title:(0,T.__)("Uncategorized"),blockTypes:c.filter((({category:e})=>!e)),selectedBlockTypes:t,onChange:n})]})]})}function Gu({clientId:e,blockTypes:t,selectedBlockTypes:n,onClose:o}){const[r,i]=(0,h.useState)(n),{updateBlockAttributes:s}=(0,g.useDispatch)(ji);return(0,d.jsx)(ws.Modal,{title:(0,T.__)("Manage allowed blocks"),onRequestClose:o,overlayClassName:"block-editor-block-allowed-blocks-modal",focusOnMount:"firstContentElement",size:"medium",children:(0,d.jsxs)(ws.__experimentalVStack,{as:"form",onSubmit:n=>{n.preventDefault(),(()=>{const n=r.length===t.length,i=r.map((({name:e})=>e));s(e,{allowedBlocks:n?void 0:i}),o()})()},spacing:"4",children:[(0,d.jsx)(ws.__experimentalText,{children:(0,T.__)("Select which blocks can be added inside this container.")}),(0,d.jsx)(Uu,{blockTypes:t,selectedBlockTypes:r,onChange:e=>{i(e)}}),(0,d.jsxs)(ws.Flex,{className:"block-editor-block-allowed-blocks-modal__actions",justify:"flex-end",expanded:!1,children:[(0,d.jsx)(ws.FlexItem,{children:(0,d.jsx)(ws.Button,{variant:"tertiary",onClick:o,__next40pxDefaultSize:!0,children:(0,T.__)("Cancel")})}),(0,d.jsx)(ws.FlexItem,{children:(0,d.jsx)(ws.Button,{variant:"primary",type:"submit",__next40pxDefaultSize:!0,children:(0,T.__)("Apply")})})]})]})})}function $u({clientId:e}){const[t,n]=(0,h.useState)(!1),{blockTypes:o,selectedBlockNames:r}=(0,g.useSelect)((t=>{const{getBlockAttributes:n}=t(ji);return{blockTypes:t(p.store).getBlockTypes(),selectedBlockNames:n(e)?.allowedBlocks}}),[e]),i=o.filter((e=>(0,p.hasBlockSupport)(e,"inserter",!0)&&(!e.parent||e.parent.includes("core/post-content"))));if(!i)return null;const s=void 0===r?i:i.filter((e=>r.includes(e.name)));return(0,d.jsxs)("div",{className:"block-editor-block-allowed-blocks-control",children:[(0,d.jsxs)(ws.BaseControl,{help:(0,T.__)("Specify which blocks are allowed inside this container."),__nextHasNoMarginBottom:!0,children:[(0,d.jsx)(ws.BaseControl.VisualLabel,{children:(0,T.__)("Allowed Blocks")}),(0,d.jsx)(ws.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:()=>{n(!0)},className:"block-editor-block-allowed-blocks-control__button",children:(0,T.__)("Manage allowed blocks")})]}),t&&(0,d.jsx)(Gu,{clientId:e,blockTypes:i,selectedBlockTypes:s,onClose:()=>n(!1)})]})}var Wu={edit:function({clientId:e}){return(0,g.useSelect)((t=>"contentOnly"===t(ji).getBlockEditingMode(e)),[e])?null:(0,d.jsx)(Pa.Fill,{children:(0,d.jsx)($u,{clientId:e})})},attributeKeys:["allowedBlocks"],hasSupport:e=>(0,p.hasBlockSupport)(e,"allowedBlocks")};(0,f.addFilter)("blocks.registerBlockType","core/allowedBlocks/attribute",(function(e){return e?.attributes?.allowedBlocks?.type||(0,p.hasBlockSupport)(e,"allowedBlocks")&&(e.attributes={...e.attributes,allowedBlocks:{type:"array"}}),e})),(0,f.addFilter)("blocks.switchToBlockType.transformedBlock","core/allowedBlocks/addTransforms",(function(e,t,n,o){if(!(0,p.hasBlockSupport)(e.name,"allowedBlocks"))return e;if(1!==t.length&&1===o.length&&e.innerBlocks.length===t.length)return e;if(1===o.length&&t.length>1||o.length>1&&1===t.length)return e;if(o.length>1&&t.length>1&&o.length!==t.length)return e;if(e.attributes.allowedBlocks)return e;const r=t[n]?.attributes?.allowedBlocks;if(!r)return e;const i=(0,p.getBlockType)(e.name),s=i?.allowedBlocks||[];if(!s.length)return{...e,attributes:{...e.attributes,allowedBlocks:r}};const l=r.filter((e=>s.includes(e)));return{...e,attributes:{...e.attributes,allowedBlocks:l}}}));const Ku=/[\s#]/g,Zu={type:"string",source:"attribute",attribute:"id",selector:"*"};var qu={addSaveProps:function(e,t,n){(0,p.hasBlockSupport)(t,"anchor")&&(e.id=""===n.anchor?null:n.anchor);return e},edit:function({anchor:e,setAttributes:t}){if("default"!==ga())return null;const n="web"===h.Platform.OS;return(0,d.jsx)(Fa,{group:"advanced",children:(0,d.jsx)(ws.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,className:"html-anchor-control",label:(0,T.__)("HTML anchor"),help:(0,d.jsxs)(d.Fragment,{children:[(0,T.__)("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&&(0,d.jsxs)(d.Fragment,{children:[" ",(0,d.jsx)(ws.ExternalLink,{href:(0,T.__)("https://wordpress.org/documentation/article/page-jumps/"),children:(0,T.__)("Learn more about anchors")})]})]}),value:e||"",placeholder:n?null:(0,T.__)("Add an anchor"),onChange:e=>{e=e.replace(Ku,"-"),t({anchor:e})},autoCapitalize:"none",autoComplete:"off"})})},attributeKeys:["anchor"],hasSupport:e=>(0,p.hasBlockSupport)(e,"anchor")};(0,f.addFilter)("blocks.registerBlockType","core/anchor/attribute",(function(e){return"type"in(e.attributes?.anchor??{})||(0,p.hasBlockSupport)(e,"anchor")&&(e.attributes={...e.attributes,anchor:Zu}),e}));var Yu={addSaveProps:function(e,t,n){return(0,p.hasBlockSupport)(t,"ariaLabel")&&(e["aria-label"]=""===n.ariaLabel?null:n.ariaLabel),e},attributeKeys:["ariaLabel"],hasSupport:e=>(0,p.hasBlockSupport)(e,"ariaLabel")};(0,f.addFilter)("blocks.registerBlockType","core/ariaLabel/attribute",(function(e){return e?.attributes?.ariaLabel?.type||(0,p.hasBlockSupport)(e,"ariaLabel")&&(e.attributes={...e.attributes,ariaLabel:{type:"string"}}),e}));var Xu={edit:function({className:e,setAttributes:t}){return"default"!==ga()?null:(0,d.jsx)(Fa,{group:"advanced",children:(0,d.jsx)(ws.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,autoComplete:"off",label:(0,T.__)("Additional CSS class(es)"),value:e||"",onChange:e=>{t({className:""!==e?e:void 0})},help:(0,T.__)("Separate multiple classes with spaces.")})})},addSaveProps:function(e,t,n){(0,p.hasBlockSupport)(t,"customClassName",!0)&&n.className&&(e.className=ms(e.className,n.className));return e},attributeKeys:["className"],hasSupport:e=>(0,p.hasBlockSupport)(e,"customClassName",!0)};(0,f.addFilter)("blocks.registerBlockType","core/editor/custom-class-name/attribute",(function(e){return(0,p.hasBlockSupport)(e,"customClassName",!0)&&(e.attributes={...e.attributes,className:{type:"string"}}),e})),(0,f.addFilter)("blocks.switchToBlockType.transformedBlock","core/customClassName/addTransforms",(function(e,t,n,o){if(!(0,p.hasBlockSupport)(e.name,"customClassName",!0))return e;if(1===o.length&&e.innerBlocks.length===t.length)return e;if(1===o.length&&t.length>1||o.length>1&&1===t.length)return e;if(t[n]){const o=t[n]?.attributes.className;if(o&&void 0===e.attributes.className)return{...e,attributes:{...e.attributes,className:o}}}return e})),(0,f.addFilter)("blocks.getSaveContent.extraProps","core/generated-class-name/save-props",(function(e,t){return(0,p.hasBlockSupport)(t,"className",!0)&&("string"==typeof e.className?e.className=[...new Set([(0,p.getBlockDefaultClassName)(t.name),...e.className.split(" ")])].join(" ").trim():e.className=(0,p.getBlockDefaultClassName)(t.name)),e}));var Qu={grad:.9,turn:360,rad:360/(2*Math.PI)},Ju=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},ed=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},td=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e>t?e:t},nd=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},od=function(e){return{r:td(e.r,0,255),g:td(e.g,0,255),b:td(e.b,0,255),a:td(e.a)}},rd=function(e){return{r:ed(e.r),g:ed(e.g),b:ed(e.b),a:ed(e.a,3)}},id=/^#([0-9a-f]{3,8})$/i,sd=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},ld=function(e){var t=e.r,n=e.g,o=e.b,r=e.a,i=Math.max(t,n,o),s=i-Math.min(t,n,o),l=s?i===t?(n-o)/s:i===n?2+(o-t)/s:4+(t-n)/s:0;return{h:60*(l<0?l+6:l),s:i?s/i*100:0,v:i/255*100,a:r}},ad=function(e){var t=e.h,n=e.s,o=e.v,r=e.a;t=t/360*6,n/=100,o/=100;var i=Math.floor(t),s=o*(1-n),l=o*(1-(t-i)*n),a=o*(1-(1-t+i)*n),c=i%6;return{r:255*[o,l,s,s,a,o][c],g:255*[a,o,o,l,s,s][c],b:255*[s,s,a,o,o,l][c],a:r}},cd=function(e){return{h:nd(e.h),s:td(e.s,0,100),l:td(e.l,0,100),a:td(e.a)}},ud=function(e){return{h:ed(e.h),s:ed(e.s),l:ed(e.l),a:ed(e.a,3)}},dd=function(e){return ad((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},pd=function(e){return{h:(t=ld(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},hd=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,gd=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,md=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,fd=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,bd={string:[[function(e){var t=id.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?ed(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?ed(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=md.exec(e)||fd.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:od({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=hd.exec(e)||gd.exec(e);if(!t)return null;var n,o,r=cd({h:(n=t[1],o=t[2],void 0===o&&(o="deg"),Number(n)*(Qu[o]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return dd(r)},"hsl"]],object:[[function(e){var t=e.r,n=e.g,o=e.b,r=e.a,i=void 0===r?1:r;return Ju(t)&&Ju(n)&&Ju(o)?od({r:Number(t),g:Number(n),b:Number(o),a:Number(i)}):null},"rgb"],[function(e){var t=e.h,n=e.s,o=e.l,r=e.a,i=void 0===r?1:r;if(!Ju(t)||!Ju(n)||!Ju(o))return null;var s=cd({h:Number(t),s:Number(n),l:Number(o),a:Number(i)});return dd(s)},"hsl"],[function(e){var t=e.h,n=e.s,o=e.v,r=e.a,i=void 0===r?1:r;if(!Ju(t)||!Ju(n)||!Ju(o))return null;var s=function(e){return{h:nd(e.h),s:td(e.s,0,100),v:td(e.v,0,100),a:td(e.a)}}({h:Number(t),s:Number(n),v:Number(o),a:Number(i)});return ad(s)},"hsv"]]},kd=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]},vd=function(e){return"string"==typeof e?kd(e.trim(),bd.string):"object"==typeof e&&null!==e?kd(e,bd.object):[null,void 0]},_d=function(e,t){var n=pd(e);return{h:n.h,s:td(n.s+100*t,0,100),l:n.l,a:n.a}},yd=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},xd=function(e,t){var n=pd(e);return{h:n.h,s:n.s,l:td(n.l+100*t,0,100),a:n.a}},Sd=function(){function e(e){this.parsed=vd(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 ed(yd(this.rgba),2)},e.prototype.isDark=function(){return yd(this.rgba)<.5},e.prototype.isLight=function(){return yd(this.rgba)>=.5},e.prototype.toHex=function(){return t=(e=rd(this.rgba)).r,n=e.g,o=e.b,i=(r=e.a)<1?sd(ed(255*r)):"","#"+sd(t)+sd(n)+sd(o)+i;var e,t,n,o,r,i},e.prototype.toRgb=function(){return rd(this.rgba)},e.prototype.toRgbString=function(){return t=(e=rd(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 ud(pd(this.rgba))},e.prototype.toHslString=function(){return t=(e=ud(pd(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=ld(this.rgba),{h:ed(e.h),s:ed(e.s),v:ed(e.v),a:ed(e.a,3)};var e},e.prototype.invert=function(){return wd({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),wd(_d(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),wd(_d(this.rgba,-e))},e.prototype.grayscale=function(){return wd(_d(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),wd(xd(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),wd(xd(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?wd({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):ed(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=pd(this.rgba);return"number"==typeof e?wd({h:e,s:t.s,l:t.l,a:t.a}):ed(t.h)},e.prototype.isEqual=function(e){return this.toHex()===wd(e).toHex()},e}(),wd=function(e){return e instanceof Sd?e:new Sd(e)},Cd=[],Bd=function(e){e.forEach((function(e){Cd.indexOf(e)<0&&(e(Sd,bd),Cd.push(e))}))};function Id(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"},o={};for(var r in n)o[n[r]]=r;var i={};e.prototype.toName=function(t){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var r,s,l=o[this.toHex()];if(l)return l;if(null==t?void 0:t.closest){var a=this.toRgb(),c=1/0,u="black";if(!i.length)for(var d in n)i[d]=new e(n[d]).toRgb();for(var p in n){var h=(r=a,s=i[p],Math.pow(r.r-s.r,2)+Math.pow(r.g-s.g,2)+Math.pow(r.b-s.b,2));h<c&&(c=h,u=p)}return u}},t.string.push([function(t){var o=t.toLowerCase(),r="transparent"===o?"#0000":n[o];return r?new e(r).toRgb():null},"name"])}var jd=function(e){var t=e/255;return t<.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)},Ed=function(e){return.2126*jd(e.r)+.7152*jd(e.g)+.0722*jd(e.b)};function Td(e){e.prototype.luminance=function(){return e=Ed(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,r,i,s,l,a,c=t instanceof e?t:new e(t);return i=this.rgba,s=c.toRgb(),n=(l=Ed(i))>(a=Ed(s))?(l+.05)/(a+.05):(a+.05)/(l+.05),void 0===(o=2)&&(o=0),void 0===r&&(r=Math.pow(10,o)),Math.floor(r*n)/r+0},e.prototype.isReadable=function(e,t){return void 0===e&&(e="#FFF"),void 0===t&&(t={}),this.contrast(e)>=(s=void 0===(i=(n=t).size)?"normal":i,"AAA"===(r=void 0===(o=n.level)?"AA":o)&&"normal"===s?7:"AA"===r&&"large"===s?3:4.5);var n,o,r,i,s}}Bd([Id,Td]);const{kebabCase:Md}=G(ws.privateApis),Pd=(e,t,n)=>{if(t){const n=e?.find((e=>e.slug===t));if(n)return n}return{color:n}},Rd=(e,t)=>e?.find((e=>e.color===t));function Ad(e,t){if(e&&t)return`has-${Md(t)}-${e}`}function Nd(){const[e,t,n,o,r,i,s,l,a,c]=Ti("color.custom","color.palette.custom","color.palette.theme","color.palette.default","color.defaultPalette","color.customGradient","color.gradients.custom","color.gradients.theme","color.gradients.default","color.defaultGradients"),u={disableCustomColors:!e,disableCustomGradients:!i};return u.colors=(0,h.useMemo)((()=>{const e=[];return n&&n.length&&e.push({name:(0,T._x)("Theme","Indicates this palette comes from the theme."),slug:"theme",colors:n}),r&&o&&o.length&&e.push({name:(0,T._x)("Default","Indicates this palette comes from WordPress."),slug:"default",colors:o}),t&&t.length&&e.push({name:(0,T._x)("Custom","Indicates this palette is created by the user."),slug:"custom",colors:t}),e}),[t,n,o,r]),u.gradients=(0,h.useMemo)((()=>{const e=[];return l&&l.length&&e.push({name:(0,T._x)("Theme","Indicates this palette comes from the theme."),slug:"theme",gradients:l}),c&&a&&a.length&&e.push({name:(0,T._x)("Default","Indicates this palette comes from WordPress."),slug:"default",gradients:a}),s&&s.length&&e.push({name:(0,T._x)("Custom","Indicates this palette is created by the user."),slug:"custom",gradients:s}),e}),[s,l,a,c]),u.hasColorsOrGradients=!!u.colors.length||!!u.gradients.length,u}var Ld=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"M10 17.389H8.444A5.194 5.194 0 1 1 8.444 7H10v1.5H8.444a3.694 3.694 0 0 0 0 7.389H10v1.5ZM14 7h1.556a5.194 5.194 0 0 1 0 10.39H14v-1.5h1.556a3.694 3.694 0 0 0 0-7.39H14V7Zm-4.5 6h5v-1.5h-5V13Z"})});function Dd({isLinked:e,...t}){const n=e?(0,T.__)("Unlink radii"):(0,T.__)("Link radii");return(0,d.jsx)(ws.Button,{...t,className:"components-border-radius-control__linked-button",size:"small",icon:e?Ld:ec,iconSize:24,label:n})}function Od(e){return[...e].sort(((t,n)=>e.filter((e=>e===n)).length-e.filter((e=>e===t)).length)).shift()}function zd(e){return!!e?.includes&&("0"===e||e.includes("var:preset|border-radius|"))}function Vd(e){if(!e)return;if("0"===e||"default"===e)return e;const t=e.match(/var:preset\|border-radius\|(.+)/);return t?t[1]:void 0}function Fd(e,t){if(!zd(e))return e;const n=0===parseFloat(e,10)?"0":Vd(e),o=t.find((e=>String(e.slug)===n));return o?.size}function Hd(e,t,n){const o=parseInt(e,10);if("selectList"===t){if(0===o)return}else if(0===o)return"0";return`var:preset|border-radius|${n[e]?.slug}`}function Ud(e,t){if(!e||zd(e)||"0"===e)return e;const n=t.find((t=>String(t.size)===String(e)));return n?.slug?`var:preset|border-radius|${n.slug}`:e}var Gd=(0,d.jsxs)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,d.jsx)(ue.Path,{d:"m19 7.5h-7.628c-.3089-.87389-1.1423-1.5-2.122-1.5-.97966 0-1.81309.62611-2.12197 1.5h-2.12803v1.5h2.12803c.30888.87389 1.14231 1.5 2.12197 1.5.9797 0 1.8131-.62611 2.122-1.5h7.628z"}),(0,d.jsx)(ue.Path,{d:"m19 15h-2.128c-.3089-.8739-1.1423-1.5-2.122-1.5s-1.8131.6261-2.122 1.5h-7.628v1.5h7.628c.3089.8739 1.1423 1.5 2.122 1.5s1.8131-.6261 2.122-1.5h2.128z"})]}),$d=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M5.75 6A.25.25 0 0 1 6 5.75h3v-1.5H6A1.75 1.75 0 0 0 4.25 6v3h1.5V6ZM18 18.25h-3v1.5h3A1.75 1.75 0 0 0 19.75 18v-3h-1.5v3a.25.25 0 0 1-.25.25ZM18.25 9V6a.25.25 0 0 0-.25-.25h-3v-1.5h3c.966 0 1.75.784 1.75 1.75v3h-1.5Zm-12.5 9v-3h-1.5v3c0 .966.784 1.75 1.75 1.75h3v-1.5H6a.25.25 0 0 1-.25-.25Z"})}),Wd=(0,d.jsxs)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,d.jsx)(ue.G,{opacity:".25",children:(0,d.jsx)(ue.Path,{d:"M5.75 6A.25.25 0 0 1 6 5.75h3v-1.5H6A1.75 1.75 0 0 0 4.25 6v3h1.5V6ZM18 18.25h-3v1.5h3A1.75 1.75 0 0 0 19.75 18v-3h-1.5v3a.25.25 0 0 1-.25.25ZM18.25 9V6a.25.25 0 0 0-.25-.25h-3v-1.5h3c.966 0 1.75.784 1.75 1.75v3h-1.5ZM5.75 18v-3h-1.5v3c0 .966.784 1.75 1.75 1.75h3v-1.5H6a.25.25 0 0 1-.25-.25Z"})}),(0,d.jsx)(ue.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M6 5.75a.25.25 0 0 0-.25.25v3h-1.5V6c0-.966.784-1.75 1.75-1.75h3v1.5H6Z"})]}),Kd=(0,d.jsxs)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,d.jsx)(ue.G,{opacity:".25",children:(0,d.jsx)(ue.Path,{d:"M5.75 6A.25.25 0 0 1 6 5.75h3v-1.5H6A1.75 1.75 0 0 0 4.25 6v3h1.5V6ZM18 18.25h-3v1.5h3A1.75 1.75 0 0 0 19.75 18v-3h-1.5v3a.25.25 0 0 1-.25.25ZM18.25 9V6a.25.25 0 0 0-.25-.25h-3v-1.5h3c.966 0 1.75.784 1.75 1.75v3h-1.5ZM5.75 18v-3h-1.5v3c0 .966.784 1.75 1.75 1.75h3v-1.5H6a.25.25 0 0 1-.25-.25Z"})}),(0,d.jsx)(ue.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M18.25 9V6a.25.25 0 0 0-.25-.25h-3v-1.5h3c.966 0 1.75.784 1.75 1.75v3h-1.5Z"})]}),Zd=(0,d.jsxs)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,d.jsx)(ue.G,{opacity:".25",children:(0,d.jsx)(ue.Path,{d:"M5.75 6A.25.25 0 0 1 6 5.75h3v-1.5H6A1.75 1.75 0 0 0 4.25 6v3h1.5V6ZM18 18.25h-3v1.5h3A1.75 1.75 0 0 0 19.75 18v-3h-1.5v3a.25.25 0 0 1-.25.25ZM18.25 9V6a.25.25 0 0 0-.25-.25h-3v-1.5h3c.966 0 1.75.784 1.75 1.75v3h-1.5ZM5.75 18v-3h-1.5v3c0 .966.784 1.75 1.75 1.75h3v-1.5H6a.25.25 0 0 1-.25-.25Z"})}),(0,d.jsx)(ue.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M5.75 15v3c0 .138.112.25.25.25h3v1.5H6A1.75 1.75 0 0 1 4.25 18v-3h1.5Z"})]}),qd=(0,d.jsxs)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,d.jsx)(ue.G,{opacity:".25",children:(0,d.jsx)(ue.Path,{d:"M5.75 6A.25.25 0 0 1 6 5.75h3v-1.5H6A1.75 1.75 0 0 0 4.25 6v3h1.5V6ZM18 18.25h-3v1.5h3A1.75 1.75 0 0 0 19.75 18v-3h-1.5v3a.25.25 0 0 1-.25.25ZM18.25 9V6a.25.25 0 0 0-.25-.25h-3v-1.5h3c.966 0 1.75.784 1.75 1.75v3h-1.5ZM5.75 18v-3h-1.5v3c0 .966.784 1.75 1.75 1.75h3v-1.5H6a.25.25 0 0 1-.25-.25Z"})}),(0,d.jsx)(ue.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M15 18.25h3a.25.25 0 0 0 .25-.25v-3h1.5v3A1.75 1.75 0 0 1 18 19.75h-3v-1.5Z"})]});const Yd={topLeft:void 0,topRight:void 0,bottomLeft:void 0,bottomRight:void 0},Xd=8,Qd=[],Jd={all:(0,T.__)("Border radius"),topLeft:(0,T.__)("Top left"),topRight:(0,T.__)("Top right"),bottomLeft:(0,T.__)("Bottom left"),bottomRight:(0,T.__)("Bottom right")},ep={all:$d,topLeft:Wd,topRight:Kd,bottomLeft:Zd,bottomRight:qd},tp=0,np={px:100,em:20,rem:20};function op({corner:e,onChange:t,selectedUnits:n,setSelectedUnits:o,values:r,units:i,presets:s}){const l=n=>{t("all"===e?{topLeft:n,topRight:n,bottomLeft:n,bottomRight:n}:{...a,[e]:n})},a="string"!=typeof r?r:{topLeft:r,topRight:r,bottomLeft:r,bottomRight:r};let c;if("all"===e){const e=function(e,t){if(!e||"object"!=typeof e)return e;const n={};return Object.keys(e).forEach((o=>{const r=e[o];if(zd(r)){const e=Fd(r,t);n[o]=void 0!==e?e:r}else n[o]=r})),n}(a,s),t=function(e={}){if("string"==typeof e)return e;const t=Object.values(e).map((e=>{const t=(0,ws.__experimentalParseQuantityAndUnitFromRawValue)(e);return"string"==typeof e&&void 0===t[0]?[e,""]:t})),n=t.map((e=>e[0]??"")),o=t.map((e=>e[1])),r=n.every((e=>e===n[0]))?n[0]:"",i=Od(o);return 0===r||r?`${r}${i||""}`:void 0}(e);c=Ud(t,s)}else c=Ud(a[e],s);const u=zd(c)?Fd(c,s):c,[p,g]=(0,ws.__experimentalParseQuantityAndUnitFromRawValue)(u),m=c?g:n[e]||n.flat||"px",f=i&&i.find((e=>e.value===m)),b=f?.step||1,[k,v]=(0,h.useState)(void 0!==c&&!zd(c)),_=s.length<=Xd,y=function(e,t){if(void 0===e)return 0;const n=0===parseFloat(e,10)?"0":Vd(e),o=t.findIndex((e=>String(e.slug)===n));return-1!==o?o:NaN}(c,s),x=s.slice(1,s.length-1).map(((e,t)=>({value:t+1,label:void 0}))),S=x.length>0;let w=[];_||(w=[...s,{name:(0,T.__)("Custom"),slug:"custom",size:u}].map(((e,t)=>({key:t,name:e.name}))));const C=ep[e];return(0,d.jsxs)(ws.__experimentalHStack,{children:[C&&(0,d.jsx)(ws.Icon,{className:"components-border-radius-control__icon",icon:C,size:24}),(!S||k)&&(0,d.jsxs)("div",{className:"components-border-radius-control__input-controls-wrapper",children:[(0,d.jsx)(ws.Tooltip,{text:Jd[e],placement:"top",children:(0,d.jsx)("div",{className:"components-border-radius-control__tooltip-wrapper",children:(0,d.jsx)(ws.__experimentalUnitControl,{className:"components-border-radius-control__unit-control","aria-label":Jd[e],value:[p,m].join(""),onChange:e=>{if(!t)return;const n=!isNaN(parseFloat(e));l(n?e:void 0)},onUnitChange:t=>{const r={...n};"all"===e?(r.flat=t,r.topLeft=t,r.topRight=t,r.bottomLeft=t,r.bottomRight=t):r[e]=t,o(r)},size:"__unstable-large",min:tp,units:i})})}),(0,d.jsx)(ws.RangeControl,{__next40pxDefaultSize:!0,label:(0,T.__)("Border radius"),hideLabelFromVision:!0,className:"components-border-radius-control__range-control",value:p??"",min:tp,max:np[m],initialPosition:0,withInputField:!1,onChange:e=>{l(void 0!==e?`${e}${m}`:void 0)},step:b,__nextHasNoMarginBottom:!0})]}),S&&_&&!k&&(0,d.jsx)(ws.RangeControl,{__next40pxDefaultSize:!0,className:"components-border-radius-control__range-control",value:y,onChange:e=>{l(Hd(e,"range",s))},withInputField:!1,"aria-valuenow":y,"aria-valuetext":s[y]?.name,renderTooltipContent:e=>void 0===c?void 0:s[e]?.name,min:0,max:s.length-1,marks:x,label:Jd[e],hideLabelFromVision:!0,__nextHasNoMarginBottom:!0}),!_&&!k&&(0,d.jsx)(ws.CustomSelectControl,{className:"components-border-radius-control__custom-select-control",value:w.find((e=>e.key===y))||w[w.length-1],onChange:e=>{e.selectedItem.key===w.length-1?v(!0):l(Hd(e.selectedItem.key,"selectList",s))},options:w,label:Jd[e],hideLabelFromVision:!0,size:"__unstable-large"}),S&&(0,d.jsx)(ws.Button,{label:k?(0,T.__)("Use border radius preset"):(0,T.__)("Set custom border radius"),icon:Gd,onClick:()=>{v(!k)},isPressed:k,size:"small",className:"components-border-radius-control__custom-toggle",iconSize:24})]})}function rp({onChange:e,values:t,presets:n}){const[o,r]=(0,h.useState)(!function(e){return!!e&&("string"==typeof e||!!Object.values(e).filter((e=>!!e||0===e)).length)}(t)||!function(e={}){if("string"==typeof e)return!1;if(!e||"object"!=typeof e)return!1;const t=Object.values(e);if(0===t.length)return!1;const n=t[0];return!t.every((e=>e===n))}(t)),i=function(e){const t=e?.default??Qd,n=e?.custom??Qd,o=e?.theme??Qd;return(0,h.useMemo)((()=>{const e=[{name:(0,T.__)("None"),slug:"0",size:0},...n,...o,...t];return e.length>Xd?[{name:(0,T.__)("Default"),slug:"default",size:void 0},...e]:e}),[n,o,t])}(n),[s,l]=(0,h.useState)({flat:"string"==typeof t?(0,ws.__experimentalParseQuantityAndUnitFromRawValue)(t)[1]:void 0,topLeft:(0,ws.__experimentalParseQuantityAndUnitFromRawValue)(t?.topLeft)[1],topRight:(0,ws.__experimentalParseQuantityAndUnitFromRawValue)(t?.topRight)[1],bottomLeft:(0,ws.__experimentalParseQuantityAndUnitFromRawValue)(t?.bottomLeft)[1],bottomRight:(0,ws.__experimentalParseQuantityAndUnitFromRawValue)(t?.bottomRight)[1]}),[a]=Ti("spacing.units"),c=(0,ws.__experimentalUseCustomUnits)({availableUnits:a||["px","em","rem"]});return(0,d.jsxs)("fieldset",{className:"components-border-radius-control",children:[(0,d.jsxs)(ws.__experimentalHStack,{className:"components-border-radius-control__header",children:[(0,d.jsx)(ws.BaseControl.VisualLabel,{as:"legend",children:(0,T.__)("Radius")}),(0,d.jsx)(Dd,{onClick:()=>r(!o),isLinked:o})]}),o?(0,d.jsx)(d.Fragment,{children:(0,d.jsx)(op,{onChange:e,selectedUnits:s,setSelectedUnits:l,values:t,units:c,corner:"all",presets:i})}):(0,d.jsx)(ws.__experimentalVStack,{children:["topLeft","topRight","bottomLeft","bottomRight"].map((n=>(0,d.jsx)(op,{onChange:e,selectedUnits:s,setSelectedUnits:l,values:t||Yd,units:c,corner:n,presets:i},n)))})]})}var ip=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"M16.5 7.5 10 13.9l-2.5-2.4-1 1 3.5 3.6 7.5-7.6z"})}),sp=(0,d.jsx)(ue.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,d.jsx)(ue.Path,{d:"M12 8c-2.2 0-4 1.8-4 4s1.8 4 4 4 4-1.8 4-4-1.8-4-4-4zm0 6.5c-1.4 0-2.5-1.1-2.5-2.5s1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5-1.1 2.5-2.5 2.5zM12.8 3h-1.5v3h1.5V3zm-1.6 18h1.5v-3h-1.5v3zm6.8-9.8v1.5h3v-1.5h-3zm-12 0H3v1.5h3v-1.5zm9.7 5.6 2.1 2.1 1.1-1.1-2.1-2.1-1.1 1.1zM8.3 7.2 6.2 5.1 5.1 6.2l2.1 2.1 1.1-1.1zM5.1 17.8l1.1 1.1 2.1-2.1-1.1-1.1-2.1 2.1zM18.9 6.2l-1.1-1.1-2.1 2.1 1.1 1.1 2.1-2.1z"})});const lp=[];function ap({shadow:e,onShadowChange:t,settings:n}){const o=hp(n);return(0,d.jsx)("div",{className:"block-editor-global-styles__shadow-popover-container",children:(0,d.jsxs)(ws.__experimentalVStack,{spacing:4,children:[(0,d.jsx)(ws.__experimentalHeading,{level:5,children:(0,T.__)("Drop shadow")}),(0,d.jsx)(cp,{presets:o,activeShadow:e,onSelect:t}),(0,d.jsx)("div",{className:"block-editor-global-styles__clear-shadow",children:(0,d.jsx)(ws.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:()=>t(void 0),disabled:!e,accessibleWhenDisabled:!0,children:(0,T.__)("Clear")})})]})})}function cp({presets:e,activeShadow:t,onSelect:n}){return e?(0,d.jsx)(ws.Composite,{role:"listbox",className:"block-editor-global-styles__shadow__list","aria-label":(0,T.__)("Drop shadows"),children:e.map((({name:e,slug:o,shadow:r})=>(0,d.jsx)(up,{label:e,isActive:r===t,type:"unset"===o?"unset":"preset",onSelect:()=>n(r===t?void 0:r),shadow:r},o)))}):null}function up({type:e,label:t,isActive:n,onSelect:o,shadow:r}){return(0,d.jsx)(ws.Tooltip,{text:t,children:(0,d.jsx)(ws.Composite.Item,{role:"option","aria-label":t,"aria-selected":n,className:ms("block-editor-global-styles__shadow__item",{"is-active":n}),render:(0,d.jsx)("button",{className:ms("block-editor-global-styles__shadow-indicator",{unset:"unset"===e}),onClick:o,style:{boxShadow:r},"aria-label":t,children:n&&(0,d.jsx)(Ol,{icon:ip})})})})}function dp({shadow:e,onShadowChange:t,settings:n}){return(0,d.jsx)(ws.Dropdown,{popoverProps:{placement:"left-start",offset:36,shift:!0},className:"block-editor-global-styles__shadow-dropdown",renderToggle:pp(e,t),renderContent:()=>(0,d.jsx)(ws.__experimentalDropdownContentWrapper,{paddingSize:"medium",children:(0,d.jsx)(ap,{shadow:e,onShadowChange:t,settings:n})})})}function pp(e,t){return({onToggle:n,isOpen:o})=>{const r=(0,h.useRef)(void 0),i={onClick:n,className:ms("block-editor-global-styles__shadow-dropdown-toggle",{"is-open":o}),"aria-expanded":o,ref:r},s={onClick:()=>{o&&n(),t(void 0),r.current?.focus()},className:ms("block-editor-global-styles__shadow-editor__remove-button",{"is-open":o}),label:(0,T.__)("Remove")};return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(ws.Button,{__next40pxDefaultSize:!0,...i,children:(0,d.jsxs)(ws.__experimentalHStack,{justify:"flex-start",children:[(0,d.jsx)(Ol,{className:"block-editor-global-styles__toggle-icon",icon:sp,size:24}),(0,d.jsx)(ws.FlexItem,{children:(0,T.__)("Drop shadow")})]})}),!!e&&(0,d.jsx)(ws.Button,{__next40pxDefaultSize:!0,size:"small",icon:Ha,...s})]})}}function hp(e){return(0,h.useMemo)((()=>{if(!e?.shadow)return lp;const t=e?.shadow?.defaultPresets,{default:n,theme:o,custom:r}=e?.shadow?.presets??{},i={name:(0,T.__)("Unset"),slug:"unset",shadow:"none"},s=[...t&&n||lp,...o||lp,...r||lp];return s.length&&s.unshift(i),s}),[e])}function gp(e){return Object.values(mp(e)).some(Boolean)}function mp(e){return{hasBorderColor:fp(e),hasBorderRadius:bp(e),hasBorderStyle:kp(e),hasBorderWidth:vp(e),hasShadow:_p(e)}}function fp(e){return e?.border?.color}function bp(e){return e?.border?.radius}function kp(e){return e?.border?.style}function vp(e){return e?.border?.width}function _p(e){const t=hp(e);return!!e?.shadow&&t.length>0}function yp({resetAllFilter:e,onChange:t,value:n,panelId:o,children:r,label:i}){const s=Ji();return(0,d.jsx)(ws.__experimentalToolsPanel,{label:i,resetAll:()=>{const o=e(n);t(o)},panelId:o,dropdownMenuProps:s,children:r})}const xp={radius:!0,color:!0,width:!0,shadow:!0};function Sp({as:e=yp,value:t,onChange:n,inheritedValue:o=t,settings:r,panelId:i,name:s,defaultControls:l=xp}){const a=ps(r),c=(0,h.useCallback)((e=>ts({settings:r},"",e)),[r]),u=e=>{const t=a.flatMap((({colors:e})=>e)).find((({color:t})=>t===e));return t?"var:preset|color|"+t.slug:e},p=(0,h.useMemo)((()=>{if((0,ws.__experimentalHasSplitBorders)(o?.border)){const e={...o?.border};return["top","right","bottom","left"].forEach((t=>{e[t]={...e[t],color:c(e[t]?.color)}})),e}return{...o?.border,color:o?.border?.color?c(o?.border?.color):void 0}}),[o?.border,c]),g=e=>n({...t,border:e}),m=fp(r),f=kp(r),b=vp(r),k=bp(r),v=(0,h.useMemo)((()=>"object"!=typeof o?.border?.radius?c(o?.border?.radius):{topLeft:c(o?.border?.radius?.topLeft),topRight:c(o?.border?.radius?.topRight),bottomLeft:c(o?.border?.radius?.bottomLeft),bottomRight:c(o?.border?.radius?.bottomRight)}),[o?.border?.radius,c]),_=e=>g({...p,radius:e}),y=()=>{const e=t?.border?.radius;return"object"==typeof e?Object.entries(e).some(Boolean):!!e},x=_p(r),S=c(o?.shadow),w=r?.shadow?.presets??{},C=w.custom??w.theme??w.default??[],B=e=>{const o=C?.find((({shadow:t})=>t===e))?.slug;n(me(t,["shadow"],o?`var:preset|shadow|${o}`:e||void 0))},I=(0,h.useCallback)((e=>({...e,border:void 0,shadow:void 0})),[]),j=l?.color||l?.width,E=m||f||b||k,M=Ap({blockName:s,hasShadowControl:x,hasBorderControl:E});return(0,d.jsxs)(e,{resetAllFilter:I,value:t,onChange:n,panelId:i,label:M,children:[(b||m)&&(0,d.jsx)(ws.__experimentalToolsPanelItem,{hasValue:()=>(0,ws.__experimentalIsDefinedBorder)(t?.border),label:(0,T.__)("Border"),onDeselect:()=>(()=>{if(y())return g({radius:t?.border?.radius});g(void 0)})(),isShownByDefault:j,panelId:i,children:(0,d.jsx)(ws.BorderBoxControl,{colors:a,enableAlpha:!0,enableStyle:f,onChange:e=>{const t={...e};(0,ws.__experimentalHasSplitBorders)(t)?["top","right","bottom","left"].forEach((e=>{t[e]&&(t[e]={...t[e],color:u(t[e]?.color)})})):t&&(t.color=u(t.color)),g({radius:p?.radius,...t})},popoverOffset:40,popoverPlacement:"left-start",value:p,__experimentalIsRenderedInSidebar:!0,size:"__unstable-large",hideLabelFromVision:!x,label:(0,T.__)("Border")})}),k&&(0,d.jsx)(ws.__experimentalToolsPanelItem,{hasValue:y,label:(0,T.__)("Radius"),onDeselect:()=>_(void 0),isShownByDefault:l.radius,panelId:i,children:(0,d.jsx)(rp,{presets:r?.border?.radiusSizes,values:v,onChange:e=>{_(e||void 0)}})}),x&&(0,d.jsxs)(ws.__experimentalToolsPanelItem,{label:(0,T.__)("Shadow"),hasValue:()=>!!t?.shadow,onDeselect:()=>B(void 0),isShownByDefault:l.shadow,panelId:i,children:[E?(0,d.jsx)(ws.BaseControl.VisualLabel,{as:"legend",children:(0,T.__)("Shadow")}):null,(0,d.jsx)(dp,{shadow:S,onShadowChange:B,settings:r})]})]})}const wp="__experimentalBorder",Cp="shadow",Bp=(e,t,n)=>{let o;return e.some((e=>e.colors.some((e=>e[t]===n&&(o=e,!0))))),o},Ip=({colors:e,namedColor:t,customColor:n})=>{if(t){const n=Bp(e,"slug",t);if(n)return n}if(!n)return{color:void 0};const o=Bp(e,"color",n);return o||{color:n}};function jp(e){const t=/var:preset\|color\|(.+)/.exec(e);return t&&t[1]?t[1]:null}function Ep(e){if((0,ws.__experimentalHasSplitBorders)(e?.border))return{style:e,borderColor:void 0};const t=e?.border?.color,n=t?.startsWith("var:preset|color|")?t.substring(17):void 0,o={...e};return o.border={...o.border,color:n?void 0:t},{style:fs(o),borderColor:n}}function Tp(e){return(0,ws.__experimentalHasSplitBorders)(e.style?.border)?e.style:{...e.style,border:{...e.style?.border,color:e.borderColor?"var:preset|color|"+e.borderColor:e.style?.border?.color}}}function Mp({label:e,children:t,resetAllFilter:n}){const o=(0,h.useCallback)((e=>{const t=Tp(e),o=n(t);return{...e,...Ep(o)}}),[n]);return(0,d.jsx)(Fa,{group:"border",resetAllFilter:o,label:e,children:t})}function Pp({clientId:e,name:t,setAttributes:n,settings:o}){const r=gp(o);const{style:i,borderColor:s}=(0,g.useSelect)((function(t){const{style:n,borderColor:o}=t(ji).getBlockAttributes(e)||{};return{style:n,borderColor:o}}),[e]),l=(0,h.useMemo)((()=>Tp({style:i,borderColor:s})),[i,s]);if(!r)return null;const a={...(0,p.getBlockSupport)(t,[wp,"__experimentalDefaultControls"]),...(0,p.getBlockSupport)(t,[Cp,"__experimentalDefaultControls"])};return(0,d.jsx)(Sp,{as:Mp,panelId:e,settings:o,value:l,onChange:e=>{n(Ep(e))},defaultControls:a})}function Rp(e,t="any"){if("web"!==h.Platform.OS)return!1;const n=(0,p.getBlockSupport)(e,wp);return!0===n||("any"===t?!!(n?.color||n?.radius||n?.width||n?.style):!!n?.[t])}function Ap({blockName:e,hasBorderControl:t,hasShadowControl:n}={}){const o=mp(xs(e));return t||n||!e||(t=o?.hasBorderColor||o?.hasBorderStyle||o?.hasBorderWidth||o?.hasBorderRadius,n=o?.hasShadow),t&&n?(0,T.__)("Border & Shadow"):n?(0,T.__)("Shadow"):(0,T.__)("Border")}function Np(e,t,n){if(!Rp(t,"color")||ks(t,wp,"color"))return e;const o=Lp(n),r=ms(e.className,o);return e.className=r||void 0,e}function Lp(e){const{borderColor:t,style:n}=e,o=Ad("border-color",t);return ms({"has-border-color":t||n?.border?.color,[o]:!!o})}var Dp={useBlockProps:function({name:e,borderColor:t,style:n}){const{colors:o}=Nd();if(!Rp(e,"color")||ks(e,wp,"color"))return{};const{color:r}=Ip({colors:o,namedColor:t}),{color:i}=Ip({colors:o,namedColor:jp(n?.border?.top?.color)}),{color:s}=Ip({colors:o,namedColor:jp(n?.border?.right?.color)}),{color:l}=Ip({colors:o,namedColor:jp(n?.border?.bottom?.color)}),{color:a}=Ip({colors:o,namedColor:jp(n?.border?.left?.color)});return Np({style:fs({borderTopColor:i||r,borderRightColor:s||r,borderBottomColor:l||r,borderLeftColor:a||r})||{}},e,{borderColor:t,style:n})},addSaveProps:Np,attributeKeys:["borderColor","style"],hasSupport:e=>Rp(e,"color")};function Op(e){if(e)return`has-${e}-gradient-background`}function zp(e,t){const n=e?.find((e=>e.slug===t));return n&&n.gradient}function Vp(e,t){const n=e?.find((e=>e.gradient===t));return n}function Fp(e,t){const n=Vp(e,t);return n&&n.slug}function Hp({gradientAttribute:e="gradient",customGradientAttribute:t="customGradient"}={}){const{clientId:n}=C(),[o,r,i]=Ti("color.gradients.custom","color.gradients.theme","color.gradients.default"),s=(0,h.useMemo)((()=>[...o||[],...r||[],...i||[]]),[o,r,i]),{gradient:l,customGradient:a}=(0,g.useSelect)((o=>{const{getBlockAttributes:r}=o(ji),i=r(n)||{};return{customGradient:i[t],gradient:i[e]}}),[n,e,t]),{updateBlockAttributes:c}=(0,g.useDispatch)(ji),u=(0,h.useCallback)((o=>{const r=Fp(s,o);c(n,r?{[e]:r,[t]:void 0}:{[e]:void 0,[t]:o})}),[s,n,c]),d=Op(l);let p;return p=l?zp(s,l):a,{gradientClass:d,gradientValue:p,setGradient:u}}(0,f.addFilter)("blocks.registerBlockType","core/border/addAttributes",(function(e){return Rp(e,"color")?e.attributes.borderColor?e:{...e,attributes:{...e.attributes,borderColor:{type:"string"}}}:e}));const{Tabs:Up}=G(ws.privateApis),Gp=["colors","disableCustomColors","gradients","disableCustomGradients"],$p="color",Wp="gradient";function Kp({colors:e,gradients:t,disableCustomColors:n,disableCustomGradients:o,__experimentalIsRenderedInSidebar:r,className:i,label:s,onColorChange:l,onGradientChange:a,colorValue:c,gradientValue:u,clearable:p,showTitle:h=!0,enableAlpha:g,headingLevel:m}){const f=l&&(e&&e.length>0||!n),b=a&&(t&&t.length>0||!o);if(!f&&!b)return null;const k={[$p]:(0,d.jsx)(ws.ColorPalette,{value:c,onChange:b?e=>{l(e),a()}:l,colors:e,disableCustomColors:n,__experimentalIsRenderedInSidebar:r,clearable:p,enableAlpha:g,headingLevel:m}),[Wp]:(0,d.jsx)(ws.GradientPicker,{value:u,onChange:f?e=>{a(e),l()}:a,gradients:t,disableCustomGradients:o,__experimentalIsRenderedInSidebar:r,clearable:p,headingLevel:m})},v=e=>(0,d.jsx)("div",{className:"block-editor-color-gradient-control__panel",children:k[e]});return(0,d.jsx)(ws.BaseControl,{__nextHasNoMarginBottom:!0,className:ms("block-editor-color-gradient-control",i),children:(0,d.jsx)("fieldset",{className:"block-editor-color-gradient-control__fieldset",children:(0,d.jsxs)(ws.__experimentalVStack,{spacing:1,children:[h&&(0,d.jsx)("legend",{children:(0,d.jsx)("div",{className:"block-editor-color-gradient-control__color-indicator",children:(0,d.jsx)(ws.BaseControl.VisualLabel,{children:s})})}),f&&b&&(0,d.jsx)("div",{children:(0,d.jsxs)(Up,{defaultTabId:u?Wp:!!f&&$p,children:[(0,d.jsxs)(Up.TabList,{children:[(0,d.jsx)(Up.Tab,{tabId:$p,children:(0,T.__)("Color")}),(0,d.jsx)(Up.Tab,{tabId:Wp,children:(0,T.__)("Gradient")})]}),(0,d.jsx)(Up.TabPanel,{tabId:$p,className:"block-editor-color-gradient-control__panel",focusable:!1,children:k.color}),(0,d.jsx)(Up.TabPanel,{tabId:Wp,className:"block-editor-color-gradient-control__panel",focusable:!1,children:k.gradient})]})}),!b&&v($p),!f&&v(Wp)]})})})}function Zp(e){const[t,n,o,r]=Ti("color.palette","color.gradients","color.custom","color.customGradient");return(0,d.jsx)(Kp,{colors:t,gradients:n,disableCustomColors:!o,disableCustomGradients:!r,...e})}var qp=function(e){return Gp.every((t=>e.hasOwnProperty(t)))?(0,d.jsx)(Kp,{...e}):(0,d.jsx)(Zp,{...e})};function Yp(e){const t=Xp(e),n=nh(e),o=Qp(e),r=eh(e),i=th(e),s=Jp(e);return t||n||o||r||i||s}function Xp(e){const t=ps(e);return e?.color?.text&&(t?.length>0||e?.color?.custom)}function Qp(e){const t=ps(e);return e?.color?.link&&(t?.length>0||e?.color?.custom)}function Jp(e){const t=ps(e);return e?.color?.caption&&(t?.length>0||e?.color?.custom)}function eh(e){const t=ps(e),n=hs(e);return e?.color?.heading&&(t?.length>0||e?.color?.custom||n?.length>0||e?.color?.customGradient)}function th(e){const t=ps(e),n=hs(e);return e?.color?.button&&(t?.length>0||e?.color?.custom||n?.length>0||e?.color?.customGradient)}function nh(e){const t=ps(e),n=hs(e);return e?.color?.background&&(t?.length>0||e?.color?.custom||n?.length>0||e?.color?.customGradient)}function oh({resetAllFilter:e,onChange:t,value:n,panelId:o,children:r}){const i=Ji();return(0,d.jsx)(ws.__experimentalToolsPanel,{label:(0,T.__)("Elements"),resetAll:()=>{const o=e(n);t(o)},panelId:o,hasInnerWrapper:!0,headingLevel:3,className:"color-block-support-panel",__experimentalFirstVisibleItemClass:"first",__experimentalLastVisibleItemClass:"last",dropdownMenuProps:i,children:(0,d.jsx)("div",{className:"color-block-support-panel__inner-wrapper",children:r})})}const rh={text:!0,background:!0,link:!0,heading:!0,button:!0,caption:!0},ih={placement:"left-start",offset:36,shift:!0,flip:!0,resize:!1},{Tabs:sh}=G(ws.privateApis),lh=({indicators:e,label:t})=>(0,d.jsxs)(ws.__experimentalHStack,{justify:"flex-start",children:[(0,d.jsx)(ws.__experimentalZStack,{isLayered:!1,offset:-8,children:e.map(((e,t)=>(0,d.jsx)(ws.Flex,{expanded:!1,children:(0,d.jsx)(ws.ColorIndicator,{colorValue:e})},t)))}),(0,d.jsx)(ws.FlexItem,{className:"block-editor-panel-color-gradient-settings__color-name",children:t})]});function ah({isGradient:e,inheritedValue:t,userValue:n,setValue:o,colorGradientControlSettings:r}){return(0,d.jsx)(qp,{...r,showTitle:!1,enableAlpha:!0,__experimentalIsRenderedInSidebar:!0,colorValue:e?void 0:t,gradientValue:e?t:void 0,onColorChange:e?void 0:o,onGradientChange:e?o:void 0,clearable:t===n,headingLevel:3})}function ch({label:e,hasValue:t,resetValue:n,isShownByDefault:o,indicators:r,tabs:i,colorGradientControlSettings:s,panelId:l}){const a=i.find((e=>void 0!==e.userValue)),{key:c,...u}=i[0]??{},p=(0,h.useRef)(void 0);return(0,d.jsx)(ws.__experimentalToolsPanelItem,{className:"block-editor-tools-panel-color-gradient-settings__item",hasValue:t,label:e,onDeselect:n,isShownByDefault:o,panelId:l,children:(0,d.jsx)(ws.Dropdown,{popoverProps:ih,className:"block-editor-tools-panel-color-gradient-settings__dropdown",renderToggle:({onToggle:o,isOpen:i})=>{const s={onClick:o,className:ms("block-editor-panel-color-gradient-settings__dropdown",{"is-open":i}),"aria-expanded":i,ref:p};return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(ws.Button,{...s,__next40pxDefaultSize:!0,children:(0,d.jsx)(lh,{indicators:r,label:e})}),t()&&(0,d.jsx)(ws.Button,{__next40pxDefaultSize:!0,label:(0,T.__)("Reset"),className:"block-editor-panel-color-gradient-settings__reset",size:"small",icon:Ha,onClick:()=>{n(),i&&o(),p.current?.focus()}})]})},renderContent:()=>(0,d.jsx)(ws.__experimentalDropdownContentWrapper,{paddingSize:"none",children:(0,d.jsxs)("div",{className:"block-editor-panel-color-gradient-settings__dropdown-content",children:[1===i.length&&(0,d.jsx)(ah,{...u,colorGradientControlSettings:s},c),i.length>1&&(0,d.jsxs)(sh,{defaultTabId:a?.key,children:[(0,d.jsx)(sh.TabList,{children:i.map((e=>(0,d.jsx)(sh.Tab,{tabId:e.key,children:e.label},e.key)))}),i.map((e=>{const{key:t,...n}=e;return(0,d.jsx)(sh.TabPanel,{tabId:t,focusable:!1,children:(0,d.jsx)(ah,{...n,colorGradientControlSettings:s},t)},t)}))]})]})})})})}function uh({as:e=oh,value:t,onChange:n,inheritedValue:o=t,settings:r,panelId:i,defaultControls:s=rh,children:l}){const a=ps(r),c=hs(r),u=r?.color?.custom,p=r?.color?.customGradient,g=a.length>0||u,m=c.length>0||p,f=e=>ts({settings:r},"",e),b=e=>{const t=a.flatMap((({colors:e})=>e)).find((({color:t})=>t===e));return t?"var:preset|color|"+t.slug:e},k=e=>{const t=c.flatMap((({gradients:e})=>e)).find((({gradient:t})=>t===e));return t?"var:preset|gradient|"+t.slug:e},v=nh(r),_=f(o?.color?.background),y=f(t?.color?.background),x=f(o?.color?.gradient),S=f(t?.color?.gradient),w=Qp(r),C=f(o?.elements?.link?.color?.text),B=f(t?.elements?.link?.color?.text),I=f(o?.elements?.link?.[":hover"]?.color?.text),j=f(t?.elements?.link?.[":hover"]?.color?.text),E=Xp(r),M=f(o?.color?.text),P=f(t?.color?.text),R=e=>{let o=me(t,["color","text"],b(e));M===C&&(o=me(o,["elements","link","color","text"],b(e))),n(o)},A=[{name:"caption",label:(0,T.__)("Captions"),showPanel:Jp(r)},{name:"button",label:(0,T.__)("Button"),showPanel:th(r)},{name:"heading",label:(0,T.__)("Heading"),showPanel:eh(r)},{name:"h1",label:(0,T.__)("H1"),showPanel:eh(r)},{name:"h2",label:(0,T.__)("H2"),showPanel:eh(r)},{name:"h3",label:(0,T.__)("H3"),showPanel:eh(r)},{name:"h4",label:(0,T.__)("H4"),showPanel:eh(r)},{name:"h5",label:(0,T.__)("H5"),showPanel:eh(r)},{name:"h6",label:(0,T.__)("H6"),showPanel:eh(r)}],N=(0,h.useCallback)((e=>({...e,color:void 0,elements:{...e?.elements,link:{...e?.elements?.link,color:void 0,":hover":{color:void 0}},...A.reduce(((t,n)=>({...t,[n.name]:{...e?.elements?.[n.name],color:void 0}})),{})}})),[]),L=[E&&{key:"text",label:(0,T.__)("Text"),hasValue:()=>!!P,resetValue:()=>R(void 0),isShownByDefault:s.text,indicators:[M],tabs:[{key:"text",label:(0,T.__)("Text"),inheritedValue:M,setValue:R,userValue:P}]},v&&{key:"background",label:(0,T.__)("Background"),hasValue:()=>!!y||!!S,resetValue:()=>{const e=me(t,["color","background"],void 0);e.color.gradient=void 0,n(e)},isShownByDefault:s.background,indicators:[x??_],tabs:[g&&{key:"background",label:(0,T.__)("Color"),inheritedValue:_,setValue:e=>{const o=me(t,["color","background"],b(e));o.color.gradient=void 0,n(o)},userValue:y},m&&{key:"gradient",label:(0,T.__)("Gradient"),inheritedValue:x,setValue:e=>{const o=me(t,["color","gradient"],k(e));o.color.background=void 0,n(o)},userValue:S,isGradient:!0}].filter(Boolean)},w&&{key:"link",label:(0,T.__)("Link"),hasValue:()=>!!B||!!j,resetValue:()=>{let e=me(t,["elements","link",":hover","color","text"],void 0);e=me(e,["elements","link","color","text"],void 0),n(e)},isShownByDefault:s.link,indicators:[C,I],tabs:[{key:"link",label:(0,T.__)("Default"),inheritedValue:C,setValue:e=>{n(me(t,["elements","link","color","text"],b(e)))},userValue:B},{key:"hover",label:(0,T.__)("Hover"),inheritedValue:I,setValue:e=>{n(me(t,["elements","link",":hover","color","text"],b(e)))},userValue:j}]}].filter(Boolean);return A.forEach((({name:e,label:r,showPanel:i})=>{if(!i)return;const l=f(o?.elements?.[e]?.color?.background),a=f(o?.elements?.[e]?.color?.gradient),c=f(o?.elements?.[e]?.color?.text),u=f(t?.elements?.[e]?.color?.background),d=f(t?.elements?.[e]?.color?.gradient),p=f(t?.elements?.[e]?.color?.text),h="caption"!==e;L.push({key:e,label:r,hasValue:()=>!!(p||u||d),resetValue:()=>{const o=me(t,["elements",e,"color","background"],void 0);o.elements[e].color.gradient=void 0,o.elements[e].color.text=void 0,n(o)},isShownByDefault:s[e],indicators:h?[c,a??l]:[c],tabs:[g&&{key:"text",label:(0,T.__)("Text"),inheritedValue:c,setValue:o=>{n(me(t,["elements",e,"color","text"],b(o)))},userValue:p},g&&h&&{key:"background",label:(0,T.__)("Background"),inheritedValue:l,setValue:o=>{const r=me(t,["elements",e,"color","background"],b(o));r.elements[e].color.gradient=void 0,n(r)},userValue:u},m&&h&&{key:"gradient",label:(0,T.__)("Gradient"),inheritedValue:a,setValue:o=>{const r=me(t,["elements",e,"color","gradient"],k(o));r.elements[e].color.background=void 0,n(r)},userValue:d,isGradient:!0}].filter(Boolean)})})),(0,d.jsxs)(e,{resetAllFilter:N,value:t,onChange:n,panelId:i,children:[L.map((e=>{const{key:t,...n}=e;return(0,d.jsx)(ch,{...n,colorGradientControlSettings:{colors:a,disableCustomColors:!u,gradients:c,disableCustomGradients:!p},panelId:i},t)})),l]})}Bd([Id,Td]);var dh=function({backgroundColor:e,fallbackBackgroundColor:t,fallbackTextColor:n,fallbackLinkColor:o,fontSize:r,isLargeText:i,textColor:s,linkColor:l,enableAlphaChecker:a=!1}){const c=e||t;if(!c)return null;const u=s||n,p=l||o;if(!u&&!p)return null;const h=[{color:u,description:(0,T.__)("text color")},{color:p,description:(0,T.__)("link color")}],g=wd(c),m=g.alpha()<1,f=g.brightness(),b={level:"AA",size:i||!1!==i&&r>=24?"large":"small"};let k="",v="";for(const e of h){if(!e.color)continue;const t=wd(e.color),n=t.isReadable(g,b),o=t.alpha()<1;if(!n){if(m||o)continue;k=f<t.brightness()?(0,T.sprintf)((0,T.__)("This color combination may be hard for people to read. Try using a darker background color and/or a brighter %s."),e.description):(0,T.sprintf)((0,T.__)("This color combination may be hard for people to read. Try using a brighter background color and/or a darker %s."),e.description),v=(0,T.__)("This color combination may be hard for people to read.");break}o&&a&&(k=(0,T.__)("Transparent text may be hard for people to read."),v=(0,T.__)("Transparent text may be hard for people to read."))}return k?((0,Uo.speak)(v),(0,d.jsx)("div",{className:"block-editor-contrast-checker",children:(0,d.jsx)(ws.Notice,{spokenMessage:null,status:"warning",isDismissible:!1,children:k})})):null};const ph=(0,h.createContext)({refsMap:(0,m.observableMap)()});function hh({children:e}){const t=(0,h.useMemo)((()=>({refsMap:(0,m.observableMap)()})),[]);return(0,d.jsx)(ph.Provider,{value:t,children:e})}function gh(e){const{refsMap:t}=(0,h.useContext)(ph);return(0,m.useRefEffect)((n=>(t.set(e,n),()=>t.delete(e))),[e])}function mh(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function fh(e,t){const{refsMap:n}=(0,h.useContext)(ph);(0,h.useLayoutEffect)((()=>{mh(t,n.get(e));const o=n.subscribe(e,(()=>mh(t,n.get(e))));return()=>{o(),mh(t,null)}}),[n,e,t])}function bh(e){const[t,n]=(0,h.useState)(null);return fh(e,n),t}function kh(e,t){return e.ownerDocument.defaultView.getComputedStyle(e).getPropertyValue(t)}function vh(e,t){return Object.keys(t).some((n=>e[n]!==t[n]))?t:e}function _h({clientId:e}){const t=bh(e),[n,o]=(0,h.useReducer)(vh,{});return(0,h.useLayoutEffect)((()=>{function e(){o(function(e){if(!e)return{};const t=e.querySelector("a"),n=t?.innerText?kh(t,"color"):void 0,o=kh(e,"color");let r=e,i=kh(r,"background-color");for(;"rgba(0, 0, 0, 0)"===i&&r.parentNode&&r.parentNode.nodeType===r.parentNode.ELEMENT_NODE;)r=r.parentNode,i=kh(r,"background-color");return{textColor:o,backgroundColor:i,linkColor:n}}(t))}t&&window.requestAnimationFrame((()=>window.requestAnimationFrame(e)))})),(0,d.jsx)(dh,{backgroundColor:n.backgroundColor,textColor:n.textColor,linkColor:n.linkColor,enableAlphaChecker:!0})}ph.displayName="BlockRefsContext";const yh="color",xh=e=>{const t=(0,p.getBlockSupport)(e,yh);return t&&(!0===t.link||!0===t.gradient||!1!==t.background||!1!==t.text)},Sh=e=>{if("web"!==h.Platform.OS)return!1;const t=(0,p.getBlockSupport)(e,yh);return null!==t&&"object"==typeof t&&!!t.link},wh=e=>{const t=(0,p.getBlockSupport)(e,yh);return null!==t&&"object"==typeof t&&!!t.gradients},Ch=e=>{const t=(0,p.getBlockSupport)(e,yh);return t&&!1!==t.background},Bh=e=>{const t=(0,p.getBlockSupport)(e,yh);return t&&!1!==t.text};function Ih(e,t,n){if(!xh(t)||ks(t,yh))return e;const o=wh(t),{backgroundColor:r,textColor:i,gradient:s,style:l}=n,a=e=>!ks(t,yh,e),c=a("text")?Ad("color",i):void 0,u=a("gradients")?Op(s):void 0,d=a("background")?Ad("background-color",r):void 0,p=a("background")||a("gradients"),h=r||l?.color?.background||o&&(s||l?.color?.gradient),g=ms(e.className,c,u,{[d]:!(o&&l?.color?.gradient||!d),"has-text-color":a("text")&&(i||l?.color?.text),"has-background":p&&h,"has-link-color":a("link")&&l?.elements?.link?.color});return e.className=g||void 0,e}function jh(e){const t=e?.color?.text,n=t?.startsWith("var:preset|color|")?t.substring(17):void 0,o=e?.color?.background,r=o?.startsWith("var:preset|color|")?o.substring(17):void 0,i=e?.color?.gradient,s=i?.startsWith("var:preset|gradient|")?i.substring(20):void 0,l={...e};return l.color={...l.color,text:n?void 0:t,background:r?void 0:o,gradient:s?void 0:i},{style:fs(l),textColor:n,backgroundColor:r,gradient:s}}function Eh(e){return{...e.style,color:{...e.style?.color,text:e.textColor?"var:preset|color|"+e.textColor:e.style?.color?.text,background:e.backgroundColor?"var:preset|color|"+e.backgroundColor:e.style?.color?.background,gradient:e.gradient?"var:preset|gradient|"+e.gradient:e.style?.color?.gradient}}}function Th({children:e,resetAllFilter:t}){const n=(0,h.useCallback)((e=>{const n=Eh(e),o=t(n);return{...e,...jh(o)}}),[t]);return(0,d.jsx)(Fa,{group:"color",resetAllFilter:n,children:e})}function Mh({clientId:e,name:t,setAttributes:n,settings:o}){const r=Yp(o);const{style:i,textColor:s,backgroundColor:l,gradient:a}=(0,g.useSelect)((function(t){const{style:n,textColor:o,backgroundColor:r,gradient:i}=t(ji).getBlockAttributes(e)||{};return{style:n,textColor:o,backgroundColor:r,gradient:i}}),[e]),c=(0,h.useMemo)((()=>Eh({style:i,textColor:s,backgroundColor:l,gradient:a})),[i,s,l,a]);if(!r)return null;const u=(0,p.getBlockSupport)(t,[yh,"__experimentalDefaultControls"]),m="web"===h.Platform.OS&&!c?.color?.gradient&&(o?.color?.text||o?.color?.link)&&!1!==(0,p.getBlockSupport)(t,[yh,"enableContrastChecker"]);return(0,d.jsx)(uh,{as:Th,panelId:e,settings:o,value:c,onChange:e=>{n(jh(e))},defaultControls:u,enableContrastChecker:!1!==(0,p.getBlockSupport)(t,[yh,"enableContrastChecker"]),children:m&&(0,d.jsx)(_h,{clientId:e})})}var Ph={useBlockProps:function({name:e,backgroundColor:t,textColor:n,gradient:o,style:r}){const[i,s,l]=Ti("color.palette.custom","color.palette.theme","color.palette.default"),a=(0,h.useMemo)((()=>[...i||[],...s||[],...l||[]]),[i,s,l]);if(!xh(e)||ks(e,yh))return{};const c={};n&&!ks(e,yh,"text")&&(c.color=Pd(a,n)?.color),t&&!ks(e,yh,"background")&&(c.backgroundColor=Pd(a,t)?.color);const u=Ih({style:c},e,{textColor:n,backgroundColor:t,gradient:o,style:r}),d=t||r?.color?.background||o||r?.color?.gradient;return{...u,className:ms(u.className,!d&&Nu(r))}},addSaveProps:Ih,attributeKeys:["backgroundColor","textColor","gradient","style"],hasSupport:xh};const Rh={linkColor:[["style","elements","link","color","text"]],textColor:[["textColor"],["style","color","text"]],backgroundColor:[["backgroundColor"],["style","color","background"]],gradient:[["gradient"],["style","color","gradient"]]};function Ah({__next40pxDefaultSize:e=!1,__nextHasNoMarginBottom:t=!1,value:n="",onChange:o,fontFamilies:r,className:i,...s}){const[l]=Ti("typography.fontFamilies");if(r||(r=l),!r||0===r.length)return null;const a=[{key:"",name:(0,T.__)("Default")},...r.map((({fontFamily:e,name:t})=>({key:e,name:t||e,style:{fontFamily:e}})))];t||I()("Bottom margin styles for wp.blockEditor.FontFamilyControl",{since:"6.7",version:"7.0",hint:"Set the `__nextHasNoMarginBottom` prop to true to start opting into the new styles, which will become the default in a future version"}),e||void 0!==s.size&&"default"!==s.size||I()("36px default size for wp.blockEditor.__experimentalFontFamilyControl",{since:"6.8",version:"7.1",hint:"Set the `__next40pxDefaultSize` prop to true to start opting into the new default size, which will become the default in a future version."});const c=a.find((e=>e.key===n))??"";return(0,d.jsx)(ws.CustomSelectControl,{__next40pxDefaultSize:e,__shouldNotWarnDeprecated36pxSize:!0,label:(0,T.__)("Font"),value:c,onChange:({selectedItem:e})=>o(e.key),options:a,className:ms("block-editor-font-family-control",i,{"is-next-has-no-margin-bottom":t}),...s})}(0,f.addFilter)("blocks.registerBlockType","core/color/addAttribute",(function(e){return xh(e)?(e.attributes.backgroundColor||Object.assign(e.attributes,{backgroundColor:{type:"string"}}),e.attributes.textColor||Object.assign(e.attributes,{textColor:{type:"string"}}),wh(e)&&!e.attributes.gradient&&Object.assign(e.attributes,{gradient:{type:"string"}}),e):e})),(0,f.addFilter)("blocks.switchToBlockType.transformedBlock","core/color/addTransforms",(function(e,t,n,o){const r=e.name;return bs({linkColor:Sh(r),textColor:Bh(r),backgroundColor:Ch(r),gradient:wh(r)},Rh,e,t,n,o)}));const Nh=(e,t)=>e?t?(0,T.__)("Appearance"):(0,T.__)("Font style"):(0,T.__)("Font weight");function Lh(e){const{__next40pxDefaultSize:t=!1,onChange:n,hasFontStyles:o=!0,hasFontWeights:r=!0,fontFamilyFaces:i,value:{fontStyle:s,fontWeight:l},...a}=e,c=o||r,u=Nh(o,r),p={key:"default",name:(0,T.__)("Default"),style:{fontStyle:void 0,fontWeight:void 0}},{fontStyles:g,fontWeights:m,combinedStyleAndWeightOptions:f}=$i(i),b=(0,h.useMemo)((()=>o&&r?(()=>{const e=[p];return f&&e.push(...f),e})():o?(()=>{const e=[p];return g.forEach((({name:t,value:n})=>{e.push({key:n,name:t,style:{fontStyle:n,fontWeight:void 0}})})),e})():(()=>{const e=[p];return m.forEach((({name:t,value:n})=>{e.push({key:n,name:t,style:{fontStyle:void 0,fontWeight:n}})})),e})()),[e.options,g,m,f]),k=b.find((e=>e.style.fontStyle===s&&e.style.fontWeight===l))||b[0];return t||void 0!==a.size&&"default"!==a.size||I()("36px default size for wp.blockEditor.__experimentalFontAppearanceControl",{since:"6.8",version:"7.1",hint:"Set the `__next40pxDefaultSize` prop to true to start opting into the new default size, which will become the default in a future version."}),c&&(0,d.jsx)(ws.CustomSelectControl,{...a,className:"components-font-appearance-control",__next40pxDefaultSize:t,__shouldNotWarnDeprecated36pxSize:!0,label:u,describedBy:k?o?r?(0,T.sprintf)((0,T.__)("Currently selected font appearance: %s"),k.name):(0,T.sprintf)((0,T.__)("Currently selected font style: %s"),k.name):(0,T.sprintf)((0,T.__)("Currently selected font weight: %s"),k.name):(0,T.__)("No selected font appearance"),options:b,value:k,onChange:({selectedItem:e})=>n(e.style)})}const Dh=1.5;var Oh=({__next40pxDefaultSize:e=!1,value:t,onChange:n,__unstableInputWidth:o="60px",...r})=>{const i=function(e){return void 0!==e&&""!==e}(t),s=(e,t)=>{if(i)return e;switch(`${e}`){case"0.1":return 1.6;case"0":return t?e:1.4;case"":return Dh;default:return e}},l=i?t:"";return e||void 0!==r.size&&"default"!==r.size||I()("36px default size for wp.blockEditor.LineHeightControl",{since:"6.8",version:"7.1",hint:"Set the `__next40pxDefaultSize` prop to true to start opting into the new default size, which will become the default in a future version."}),(0,d.jsx)("div",{className:"block-editor-line-height-control",children:(0,d.jsx)(ws.__experimentalNumberControl,{...r,__shouldNotWarnDeprecated36pxSize:!0,__next40pxDefaultSize:e,__unstableInputWidth:o,__unstableStateReducer:(e,t)=>{const n=["insertText","insertFromPaste"].includes(t.payload.event.nativeEvent?.inputType),o=s(e.value,n);return{...e,value:o}},onChange:(e,{event:t})=>{""!==e?"click"!==t.type?n(`${e}`):n(s(`${e}`,!1)):n()},label:(0,T.__)("Line height"),placeholder:Dh,step:.01,spinFactor:10,value:l,min:0,spinControls:"custom"})})};function zh({__next40pxDefaultSize:e=!1,value:t,onChange:n,__unstableInputWidth:o="60px",...r}){const[i]=Ti("spacing.units"),s=(0,ws.__experimentalUseCustomUnits)({availableUnits:i||["px","em","rem"],defaultValues:{px:2,em:.2,rem:.2}});return e||void 0!==r.size&&"default"!==r.size||I()("36px default size for wp.blockEditor.__experimentalLetterSpacingControl",{since:"6.8",version:"7.1",hint:"Set the `__next40pxDefaultSize` prop to true to start opting into the new default size, which will become the default in a future version."}),(0,d.jsx)(ws.__experimentalUnitControl,{__next40pxDefaultSize:e,__shouldNotWarnDeprecated36pxSize:!0,...r,label:(0,T.__)("Letter spacing"),value:t,__unstableInputWidth:o,units:s,onChange:n})}var Vh=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"M13 5.5H4V4h9v1.5Zm7 7H4V11h16v1.5Zm-7 7H4V18h9v1.5Z"})}),Fh=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"M7.5 5.5h9V4h-9v1.5Zm-3.5 7h16V11H4v1.5Zm3.5 7h9V18h-9v1.5Z"})}),Hh=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"M11.111 5.5H20V4h-8.889v1.5ZM4 12.5h16V11H4v1.5Zm7.111 7H20V18h-8.889v1.5Z"})}),Uh=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"M4 12.8h16v-1.5H4v1.5zm0 7h12.4v-1.5H4v1.5zM4 4.3v1.5h16V4.3H4z"})});const Gh=[{label:(0,T.__)("Align text left"),value:"left",icon:Vh},{label:(0,T.__)("Align text center"),value:"center",icon:Fh},{label:(0,T.__)("Align text right"),value:"right",icon:Hh},{label:(0,T.__)("Justify text"),value:"justify",icon:Uh}],$h=["left","center","right"];function Wh({className:e,value:t,onChange:n,options:o=$h}){const r=(0,h.useMemo)((()=>Gh.filter((e=>o.includes(e.value)))),[o]);return r.length?(0,d.jsx)(ws.__experimentalToggleGroupControl,{isDeselectable:!0,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,T.__)("Text alignment"),className:ms("block-editor-text-alignment-control",e),value:t,onChange:e=>{n(e===t?void 0:e)},children:r.map((e=>(0,d.jsx)(ws.__experimentalToggleGroupControlOptionIcon,{value:e.value,icon:e.icon,label:e.label},e.value)))}):null}var Kh=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.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"})}),Zh=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.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"})}),qh=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.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 Yh=[{label:(0,T.__)("None"),value:"none",icon:Ha},{label:(0,T.__)("Uppercase"),value:"uppercase",icon:Kh},{label:(0,T.__)("Lowercase"),value:"lowercase",icon:Zh},{label:(0,T.__)("Capitalize"),value:"capitalize",icon:qh}];function Xh({className:e,value:t,onChange:n}){return(0,d.jsx)(ws.__experimentalToggleGroupControl,{isDeselectable:!0,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,T.__)("Letter case"),className:ms("block-editor-text-transform-control",e),value:t,onChange:e=>{n(e===t?void 0:e)},children:Yh.map((e=>(0,d.jsx)(ws.__experimentalToggleGroupControlOptionIcon,{value:e.value,icon:e.icon,label:e.label},e.value)))})}var Qh=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.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"})}),Jh=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.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"})});const eg=[{label:(0,T.__)("None"),value:"none",icon:Ha},{label:(0,T.__)("Underline"),value:"underline",icon:Qh},{label:(0,T.__)("Strikethrough"),value:"line-through",icon:Jh}];function tg({value:e,onChange:t,className:n}){return(0,d.jsx)(ws.__experimentalToggleGroupControl,{isDeselectable:!0,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,T.__)("Decoration"),className:ms("block-editor-text-decoration-control",n),value:e,onChange:n=>{t(n===e?void 0:n)},children:eg.map((e=>(0,d.jsx)(ws.__experimentalToggleGroupControlOptionIcon,{value:e.value,icon:e.icon,label:e.label},e.value)))})}var ng=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"M8.2 14.4h3.9L13 17h1.7L11 6.5H9.3L5.6 17h1.7l.9-2.6zm2-5.5 1.4 4H8.8l1.4-4zm7.4 7.5-1.3.8.8 1.4H5.5V20h14.3l-2.2-3.6z"})}),og=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"M7 5.6v1.7l2.6.9v3.9L7 13v1.7L17.5 11V9.3L7 5.6zm4.2 6V8.8l4 1.4-4 1.4zm-5.7 5.6V5.5H4v14.3l3.6-2.2-.8-1.3-1.3.9z"})});const rg=[{label:(0,T.__)("Horizontal"),value:"horizontal-tb",icon:ng},{label:(0,T.__)("Vertical"),value:(0,T.isRTL)()?"vertical-lr":"vertical-rl",icon:og}];function ig({className:e,value:t,onChange:n}){return(0,d.jsx)(ws.__experimentalToggleGroupControl,{isDeselectable:!0,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,T.__)("Orientation"),className:ms("block-editor-writing-mode-control",e),value:t,onChange:e=>{n(e===t?void 0:e)},children:rg.map((e=>(0,d.jsx)(ws.__experimentalToggleGroupControlOptionIcon,{value:e.value,icon:e.icon,label:e.label},e.value)))})}const sg=1,lg=6;function ag(e){const t=ug(e),n=dg(e),o=pg(e),r=hg(e),i=mg(e),s=gg(e),l=fg(e),a=bg(e),c=kg(e),u=cg(e);return t||n||o||r||i||s||u||l||a||c}function cg(e){return!1!==e?.typography?.defaultFontSizes&&e?.typography?.fontSizes?.default?.length||e?.typography?.fontSizes?.theme?.length||e?.typography?.fontSizes?.custom?.length||e?.typography?.customFontSize}function ug(e){return["default","theme","custom"].some((t=>e?.typography?.fontFamilies?.[t]?.length))}function dg(e){return e?.typography?.lineHeight}function pg(e){return e?.typography?.fontStyle||e?.typography?.fontWeight}function hg(e){return e?.typography?.letterSpacing}function gg(e){return e?.typography?.textTransform}function mg(e){return e?.typography?.textAlign}function fg(e){return e?.typography?.textDecoration}function bg(e){return e?.typography?.writingMode}function kg(e){return e?.typography?.textColumns}function vg({resetAllFilter:e,onChange:t,value:n,panelId:o,children:r}){const i=Ji();return(0,d.jsx)(ws.__experimentalToolsPanel,{label:(0,T.__)("Typography"),resetAll:()=>{const o=e(n);t(o)},panelId:o,dropdownMenuProps:i,children:r})}const _g={fontFamily:!0,fontSize:!0,fontAppearance:!0,lineHeight:!0,letterSpacing:!0,textAlign:!0,textTransform:!0,textDecoration:!0,writingMode:!0,textColumns:!0};function yg({as:e=vg,value:t,onChange:n,inheritedValue:o=t,settings:r,panelId:i,defaultControls:s=_g,fitText:l=!1}){const a=e=>ts({settings:r},"",e),c=ug(r),u=a(o?.typography?.fontFamily),{fontFamilies:p,fontFamilyFaces:g}=(0,h.useMemo)((()=>function(e,t){const n=e?.typography?.fontFamilies,o=["default","theme","custom"].flatMap((e=>n?.[e]??[])),r=o.find((e=>e.fontFamily===t))?.fontFace??[];return{fontFamilies:o,fontFamilyFaces:r}}(r,u)),[r,u]),m=e=>{const o=p?.find((({fontFamily:t})=>t===e))?.slug;n(me(t,["typography","fontFamily"],o?`var:preset|font-family|${o}`:e||void 0))},f=cg(r),b=!r?.typography?.customFontSize,k=function(e){const t=e?.typography?.fontSizes,n=!!e?.typography?.defaultFontSizes;return[...t?.custom??[],...t?.theme??[],...n?t?.default??[]:[]]}(r),v=a(o?.typography?.fontSize),_=(()=>{const e=o?.typography?.fontSize;if(!e||"string"!=typeof e)return;if(e.startsWith("var:preset|font-size|"))return e.replace("var:preset|font-size|","");const t=e.match(/^var\(--wp--preset--font-size--([^)]+)\)$/);return t?t[1]:void 0})(),y=(e,o)=>{n(me(t,["typography","fontSize"],(o?.slug?`var:preset|font-size|${o?.slug}`:e)||void 0))},x=pg(r),S=function(e){return e?.typography?.fontStyle?e?.typography?.fontWeight?(0,T.__)("Appearance"):(0,T.__)("Font style"):(0,T.__)("Font weight")}(r),w=r?.typography?.fontStyle,C=r?.typography?.fontWeight,B=a(o?.typography?.fontStyle),I=a(o?.typography?.fontWeight),{nearestFontStyle:j,nearestFontWeight:E}=function(e,t,n){let o=t,r=n;const{fontStyles:i,fontWeights:s,combinedStyleAndWeightOptions:l}=$i(e),a=i?.some((({value:e})=>e===t)),c=s?.some((({value:e})=>e?.toString()===n?.toString()));var u,d;return a||(o=t?(u=i,"string"==typeof(d=t)&&d&&["normal","italic","oblique"].includes(d)?!u||0===u.length||u.find((e=>e.value===d))?d:"oblique"!==d||u.find((e=>"oblique"===e.value))?"":"italic":""):l?.find((e=>e.style.fontWeight===Zi(s,n)))?.style?.fontStyle),c||(r=n?Zi(s,n):l?.find((e=>e.style.fontStyle===(o||t)))?.style?.fontWeight),{nearestFontStyle:o,nearestFontWeight:r}}(g,B,I),M=(0,h.useCallback)((({fontStyle:e,fontWeight:o})=>{e===B&&o===I||n({...t,typography:{...t?.typography,fontStyle:e||void 0,fontWeight:o||void 0}})}),[B,I,n,t]),P=(0,h.useCallback)((()=>{M({})}),[M]);(0,h.useEffect)((()=>{j&&E?M({fontStyle:j,fontWeight:E}):P()}),[j,E,P,M]);const R=dg(r),A=a(o?.typography?.lineHeight),N=e=>{n(me(t,["typography","lineHeight"],e||void 0))},L=hg(r),D=a(o?.typography?.letterSpacing),O=e=>{n(me(t,["typography","letterSpacing"],e||void 0))},z=kg(r),V=a(o?.typography?.textColumns),F=e=>{n(me(t,["typography","textColumns"],e||void 0))},H=gg(r),U=a(o?.typography?.textTransform),G=e=>{n(me(t,["typography","textTransform"],e||void 0))},$=fg(r),W=a(o?.typography?.textDecoration),K=e=>{n(me(t,["typography","textDecoration"],e||void 0))},Z=bg(r),q=a(o?.typography?.writingMode),Y=e=>{n(me(t,["typography","writingMode"],e||void 0))},X=mg(r),Q=a(o?.typography?.textAlign),J=e=>{n(me(t,["typography","textAlign"],e||void 0))},ee=(0,h.useCallback)((e=>({...e,typography:{}})),[]);return(0,d.jsxs)(e,{resetAllFilter:ee,value:t,onChange:n,panelId:i,children:[c&&(0,d.jsx)(ws.__experimentalToolsPanelItem,{label:(0,T.__)("Font"),hasValue:()=>!!t?.typography?.fontFamily,onDeselect:()=>m(void 0),isShownByDefault:s.fontFamily,panelId:i,children:(0,d.jsx)(Ah,{fontFamilies:p,value:u,onChange:m,size:"__unstable-large",__nextHasNoMarginBottom:!0})}),f&&!l&&(0,d.jsx)(ws.__experimentalToolsPanelItem,{label:(0,T.__)("Size"),hasValue:()=>!!t?.typography?.fontSize,onDeselect:()=>y(void 0),isShownByDefault:s.fontSize,panelId:i,children:(0,d.jsx)(ws.FontSizePicker,{value:_||v,valueMode:_?"slug":"literal",onChange:y,fontSizes:k,disableCustomFontSizes:b,withReset:!1,withSlider:!0,size:"__unstable-large"})}),x&&(0,d.jsx)(ws.__experimentalToolsPanelItem,{className:"single-column",label:S,hasValue:()=>!!t?.typography?.fontStyle||!!t?.typography?.fontWeight,onDeselect:P,isShownByDefault:s.fontAppearance,panelId:i,children:(0,d.jsx)(Lh,{value:{fontStyle:B,fontWeight:I},onChange:M,hasFontStyles:w,hasFontWeights:C,fontFamilyFaces:g,size:"__unstable-large"})}),R&&(0,d.jsx)(ws.__experimentalToolsPanelItem,{className:"single-column",label:(0,T.__)("Line height"),hasValue:()=>void 0!==t?.typography?.lineHeight,onDeselect:()=>N(void 0),isShownByDefault:s.lineHeight,panelId:i,children:(0,d.jsx)(Oh,{__unstableInputWidth:"auto",value:A,onChange:N,size:"__unstable-large"})}),L&&(0,d.jsx)(ws.__experimentalToolsPanelItem,{className:"single-column",label:(0,T.__)("Letter spacing"),hasValue:()=>!!t?.typography?.letterSpacing,onDeselect:()=>O(void 0),isShownByDefault:s.letterSpacing,panelId:i,children:(0,d.jsx)(zh,{value:D,onChange:O,size:"__unstable-large",__unstableInputWidth:"auto"})}),z&&(0,d.jsx)(ws.__experimentalToolsPanelItem,{className:"single-column",label:(0,T.__)("Columns"),hasValue:()=>!!t?.typography?.textColumns,onDeselect:()=>F(void 0),isShownByDefault:s.textColumns,panelId:i,children:(0,d.jsx)(ws.__experimentalNumberControl,{label:(0,T.__)("Columns"),max:lg,min:sg,onChange:F,size:"__unstable-large",spinControls:"custom",value:V,initialPosition:1})}),$&&(0,d.jsx)(ws.__experimentalToolsPanelItem,{className:"single-column",label:(0,T.__)("Decoration"),hasValue:()=>!!t?.typography?.textDecoration,onDeselect:()=>K(void 0),isShownByDefault:s.textDecoration,panelId:i,children:(0,d.jsx)(tg,{value:W,onChange:K,size:"__unstable-large",__unstableInputWidth:"auto"})}),Z&&(0,d.jsx)(ws.__experimentalToolsPanelItem,{className:"single-column",label:(0,T.__)("Orientation"),hasValue:()=>!!t?.typography?.writingMode,onDeselect:()=>Y(void 0),isShownByDefault:s.writingMode,panelId:i,children:(0,d.jsx)(ig,{value:q,onChange:Y,size:"__unstable-large",__nextHasNoMarginBottom:!0})}),H&&(0,d.jsx)(ws.__experimentalToolsPanelItem,{label:(0,T.__)("Letter case"),hasValue:()=>!!t?.typography?.textTransform,onDeselect:()=>G(void 0),isShownByDefault:s.textTransform,panelId:i,children:(0,d.jsx)(Xh,{value:U,onChange:G,showNone:!0,isBlock:!0,size:"__unstable-large",__nextHasNoMarginBottom:!0})}),X&&(0,d.jsx)(ws.__experimentalToolsPanelItem,{label:(0,T.__)("Text alignment"),hasValue:()=>!!t?.typography?.textAlign,onDeselect:()=>J(void 0),isShownByDefault:s.textAlign,panelId:i,children:(0,d.jsx)(Wh,{value:Q,onChange:J,size:"__unstable-large",__nextHasNoMarginBottom:!0})})]})}const xg="typography.lineHeight";const Sg=window.wp.tokenList;var wg=n.n(Sg);const Cg="typography.__experimentalFontFamily",{kebabCase:Bg}=G(ws.privateApis);function Ig(e,t,n){if(!(0,p.hasBlockSupport)(t,Cg))return e;if(ks(t,Jg,"fontFamily"))return e;if(!n?.fontFamily)return e;const o=new(wg())(e.className);o.add(`has-${Bg(n?.fontFamily)}-font-family`);const r=o.value;return e.className=r||void 0,e}var jg={useBlockProps:function({name:e,fontFamily:t}){return Ig({},e,{fontFamily:t})},addSaveProps:Ig,attributeKeys:["fontFamily"],hasSupport:e=>(0,p.hasBlockSupport)(e,Cg)};(0,f.addFilter)("blocks.registerBlockType","core/fontFamily/addAttribute",(function(e){return(0,p.hasBlockSupport)(e,Cg)?(e.attributes.fontFamily||Object.assign(e.attributes,{fontFamily:{type:"string"}}),e):e}));const{kebabCase:Eg}=G(ws.privateApis),Tg=(e,t,n)=>{if(t){const n=e?.find((({slug:e})=>e===t));if(n)return n}return{size:n}};function Mg(e,t){const n=e?.find((({size:e})=>e===t));return n||{size:t}}function Pg(e){if(e)return`has-${Eg(e)}-font-size`}const Rg="typography.fontSize";function Ag(e,t,n){if(!(0,p.hasBlockSupport)(t,Rg))return e;if(ks(t,Jg,"fontSize"))return e;const o=new(wg())(e.className);o.add(Pg(n.fontSize));const r=o.value;return e.className=r||void 0,e}var Ng={useBlockProps:function({name:e,fontSize:t,style:n}){const[o,r,i]=Ti("typography.fontSizes","typography.fluid","layout");if(!(0,p.hasBlockSupport)(e,Rg)||ks(e,Jg,"fontSize")||!t&&!n?.typography?.fontSize)return;let s;return n?.typography?.fontSize&&(s={style:{fontSize:Wi({size:n.typography.fontSize},{typography:{fluid:r},layout:i})}}),t&&(s={style:{fontSize:Tg(o,t,n?.typography?.fontSize).size}}),s?Ag(s,e,{fontSize:t}):void 0},addSaveProps:Ag,attributeKeys:["fontSize","style","fitText"],hasSupport:e=>(0,p.hasBlockSupport)(e,Rg)};const Lg={fontSize:[["fontSize"],["style","typography","fontSize"]]};(0,f.addFilter)("blocks.registerBlockType","core/font/addAttribute",(function(e){return(0,p.hasBlockSupport)(e,Rg)?(e.attributes.fontSize||Object.assign(e.attributes,{fontSize:{type:"string"}}),e):e})),(0,f.addFilter)("blocks.switchToBlockType.transformedBlock","core/font-size/addTransforms",(function(e,t,n,o){const r=e.name;return bs({fontSize:(0,p.hasBlockSupport)(r,Rg)},Lg,e,t,n,o)}));const Dg=[{icon:Vh,title:(0,T.__)("Align text left"),align:"left"},{icon:Fh,title:(0,T.__)("Align text center"),align:"center"},{icon:Hh,title:(0,T.__)("Align text right"),align:"right"}],Og={placement:"bottom-start"};var zg=function({value:e,onChange:t,alignmentControls:n=Dg,label:o=(0,T.__)("Align text"),description:r=(0,T.__)("Change text alignment"),isCollapsed:i=!0,isToolbar:s}){function l(n){return()=>t(e===n?void 0:n)}const a=n.find((t=>t.align===e)),c=s?ws.ToolbarGroup:ws.ToolbarDropdownMenu,u=s?{isCollapsed:i}:{toggleProps:{description:r},popoverProps:Og};return(0,d.jsx)(c,{icon:a?a.icon:(0,T.isRTL)()?Hh:Vh,label:o,controls:n.map((t=>{const{align:n}=t,o=e===n;return{...t,isActive:o,role:i?"menuitemradio":void 0,onClick:l(n)}})),...u})};const Vg=e=>(0,d.jsx)(zg,{...e,isToolbar:!1}),Fg=e=>(0,d.jsx)(zg,{...e,isToolbar:!0}),Hg="typography.textAlign",Ug=[{icon:Vh,title:(0,T.__)("Align text left"),align:"left"},{icon:Fh,title:(0,T.__)("Align text center"),align:"center"},{icon:Hh,title:(0,T.__)("Align text right"),align:"right"}],Gg=["left","center","right"],$g=[];function Wg(e){return Array.isArray(e)?Gg.filter((t=>e.includes(t))):!0===e?Gg:$g}var Kg={edit:function({style:e,name:t,setAttributes:n}){const o=xs(t),r=o?.typography?.textAlign,i=ga();if(!r||"default"!==i)return null;const s=Wg((0,p.getBlockSupport)(t,Hg));if(!s.length)return null;const l=Ug.filter((e=>s.includes(e.align)));return(0,d.jsx)(Rs,{group:"block",children:(0,d.jsx)(Vg,{value:e?.typography?.textAlign,onChange:t=>{const o={...e,typography:{...e?.typography,textAlign:t}};n({style:fs(o)})},alignmentControls:l})})},useBlockProps:function({name:e,style:t}){if(!t?.typography?.textAlign)return null;if(!Wg((0,p.getBlockSupport)(e,Hg)).length)return null;if(ks(e,Jg,"textAlign"))return null;const n=t.typography.textAlign;return{className:ms({[`has-text-align-${n}`]:n})}},addSaveProps:function(e,t,n){if(!n?.style?.typography?.textAlign)return e;const{textAlign:o}=n.style.typography,r=(0,p.getBlockSupport)(t,Hg);Wg(r).includes(o)&&!ks(t,Jg,"textAlign")&&(e.className=ms(`has-text-align-${o}`,e.className));return e},attributeKeys:["style"],hasSupport:e=>(0,p.hasBlockSupport)(e,Hg,!1)};function Zg(e,t){if(!e)return;t(0);const n=function(e,t){const n=e.scrollHeight>e.clientHeight;let o=5,r=2400,i=o;const s=window.getComputedStyle(e),l=parseFloat(s.paddingLeft)||0,a=parseFloat(s.paddingRight)||0,c=document.createRange();for(c.selectNodeContents(e);o<=r;){const s=Math.floor((o+r)/2);t(s);const u=c.getBoundingClientRect().width,d=e.scrollWidth<=e.clientWidth&&u<=e.clientWidth-l-a,p=n||e.scrollHeight<=e.clientHeight;d&&p?(i=s,o=s+1):r=s-1}return c.detach(),i}(e,t);return t(n),n}const qg={},Yg="typography.fitText";(0,f.addFilter)("blocks.registerBlockType","core/fit-text/addAttribute",(function(e){return(0,p.hasBlockSupport)(e,Yg)?e.attributes?.fitText?e:{...e,attributes:{...e.attributes,fitText:{type:"boolean"}}}:e}));var Xg={useBlockProps:function({name:e,fitText:t,clientId:n}){return function({fitText:e,name:t,clientId:n}){const o=(0,p.hasBlockSupport)(t,Yg),r=bh(n),{blockAttributes:i,parentId:s}=(0,g.useSelect)((t=>n&&o&&e?{blockAttributes:t(ji).getBlockAttributes(n),parentId:t(ji).getBlockRootClientId(n)}:qg),[n,o,e]),l=(0,h.useCallback)((()=>{if(!r||!o||!e)return;const t=`fit-text-${n}`;let i=r.ownerDocument.getElementById(t);i||(i=r.ownerDocument.createElement("style"),i.id=t,r.ownerDocument.head.appendChild(i));const s=`#block-${n}`;Zg(r,(e=>{i.textContent=0===e?"":`${s} { font-size: ${e}px !important; }`}))}),[r,n,o,e]);(0,h.useEffect)((()=>{if(!(e&&r&&n&&o))return;const t=r,i=t.style.visibility;let s,a=null,c=null,u=null;return a=window.requestAnimationFrame((()=>{t.style.visibility="hidden",c=window.requestAnimationFrame((()=>{l(),u=setTimeout((()=>{t.style.visibility=i}),10)}))})),window.ResizeObserver&&t.parentElement&&(s=new window.ResizeObserver(l),s.observe(t.parentElement),s.observe(t)),()=>{null!==a&&window.cancelAnimationFrame(a),null!==c&&window.cancelAnimationFrame(c),null!==u&&clearTimeout(u),s&&s.disconnect();const e=`fit-text-${n}`,o=t.ownerDocument.getElementById(e);o&&o.remove()}}),[e,n,s,l,r,o]),(0,h.useEffect)((()=>{if(e&&r&&o){const e=window.requestAnimationFrame((()=>{r&&l()}));return()=>window.cancelAnimationFrame(e)}}),[i,e,l,r,o])}({fitText:t,name:e,clientId:n}),t&&(0,p.hasBlockSupport)(e,Yg)?{className:"has-fit-text"}:{}},addSaveProps:function(e,t,n){if(!(0,p.hasBlockSupport)(t,Yg))return e;const{fitText:o}=n;if(!o)return e;const r=e.className?`${e.className} has-fit-text`:"has-fit-text";return{...e,className:r}},attributeKeys:["fitText"],hasSupport:e=>(0,p.hasBlockSupport)(e,Yg),edit:()=>null};function Qg(e,t){return Object.fromEntries(Object.entries(e).filter((([e])=>!t.includes(e))))}const Jg="typography",em=[xg,Rg,"typography.__experimentalFontStyle","typography.__experimentalFontWeight",Cg,Hg,"typography.textColumns","typography.__experimentalTextDecoration","typography.__experimentalWritingMode","typography.__experimentalTextTransform","typography.__experimentalLetterSpacing",Yg];function tm(e){const t={...Qg(e,["fontFamily"])},n=e?.typography?.fontSize,o=e?.typography?.fontFamily,r="string"==typeof n&&n?.startsWith("var:preset|font-size|")?n.substring(21):void 0,i=o?.startsWith("var:preset|font-family|")?o.substring(23):void 0;return t.typography={...Qg(t.typography,["fontFamily"]),fontSize:r?void 0:n},{style:fs(t),fontFamily:i,fontSize:r}}function nm(e){return{...e.style,typography:{...e.style?.typography,fontFamily:e.fontFamily?"var:preset|font-family|"+e.fontFamily:void 0,fontSize:e.fontSize?"var:preset|font-size|"+e.fontSize:e.style?.typography?.fontSize}}}function om({children:e,resetAllFilter:t}){const n=(0,h.useCallback)((e=>{const n=nm(e),o=t(n);return{...e,...tm(o)}}),[t]);return(0,d.jsx)(Fa,{group:"typography",resetAllFilter:n,children:e})}function rm({clientId:e,name:t,setAttributes:n,settings:o}){const{style:r,fontFamily:i,fontSize:s,fitText:l}=(0,g.useSelect)((function(t){const{style:n,fontFamily:o,fontSize:r,fitText:i}=t(ji).getBlockAttributes(e)||{};return{style:n,fontFamily:o,fontSize:r,fitText:i}}),[e]),a=ag(o),c=(0,h.useMemo)((()=>nm({style:r,fontFamily:i,fontSize:s})),[r,s,i]);if(!a)return null;const u=(0,p.getBlockSupport)(t,[Jg,"__experimentalDefaultControls"]);return(0,d.jsx)(yg,{as:om,panelId:e,settings:o,value:c,onChange:e=>{n(tm(e))},defaultControls:u,fitText:l})}const im=[],sm=new Intl.Collator("und",{numeric:!0}).compare;function lm(){const[e,t,n,o]=Ti("spacing.spacingSizes.custom","spacing.spacingSizes.theme","spacing.spacingSizes.default","spacing.defaultSpacingSizes"),r=e??im,i=t??im,s=n&&!1!==o?n:im;return(0,h.useMemo)((()=>{const e=[{name:(0,T.__)("None"),slug:"0",size:0},...r,...i,...s];return e.every((({slug:e})=>/^[0-9]/.test(e)))&&e.sort(((e,t)=>sm(e.slug,t.slug))),e.length>Qs?[{name:(0,T.__)("Default"),slug:"default",size:void 0},...e]:e}),[r,i,s])}const am={px:{max:300,steps:1},"%":{max:100,steps:1},vw:{max:100,steps:1},vh:{max:100,steps:1},em:{max:10,steps:.1},rm:{max:10,steps:.1},svw:{max:100,steps:1},lvw:{max:100,steps:1},dvw:{max:100,steps:1},svh:{max:100,steps:1},lvh:{max:100,steps:1},dvh:{max:100,steps:1},vi:{max:100,steps:1},svi:{max:100,steps:1},lvi:{max:100,steps:1},dvi:{max:100,steps:1},vb:{max:100,steps:1},svb:{max:100,steps:1},lvb:{max:100,steps:1},dvb:{max:100,steps:1},vmin:{max:100,steps:1},svmin:{max:100,steps:1},lvmin:{max:100,steps:1},dvmin:{max:100,steps:1},vmax:{max:100,steps:1},svmax:{max:100,steps:1},lvmax:{max:100,steps:1},dvmax:{max:100,steps:1}};function cm({icon:e,isMixed:t=!1,minimumCustomValue:n,onChange:o,onMouseOut:r,onMouseOver:i,showSideInLabel:s=!0,side:l,spacingSizes:a,type:c,value:u}){u=sl(u,a);let p=a;const f=a.length<=Qs,b=(0,g.useSelect)((e=>{const t=e(ji).getSettings();return t?.disableCustomSpacingSizes})),[k,v]=(0,h.useState)(!b&&void 0!==u&&!rl(u)),[_,y]=(0,h.useState)(n),x=(0,m.usePrevious)(u);u&&x!==u&&!rl(u)&&!0!==k&&v(!0);const[S]=Ti("spacing.units"),w=(0,ws.__experimentalUseCustomUnits)({availableUnits:S||["px","em","rem"]});let C=null;!f&&!k&&void 0!==u&&(!rl(u)||rl(u)&&t)?(p=[...a,{name:t?(0,T.__)("Mixed"):(0,T.sprintf)((0,T.__)("Custom (%s)"),u),slug:"custom",size:u}],C=p.length-1):t||(C=k?il(u,a):function(e,t){if(void 0===e)return 0;const n=0===parseFloat(e,10)?"0":al(e),o=t.findIndex((e=>String(e.slug)===n));return-1!==o?o:NaN}(u,a));const B=(0,h.useMemo)((()=>(0,ws.__experimentalParseQuantityAndUnitFromRawValue)(C)),[C])[1]||w[0]?.value,I=parseFloat(C,10),j=(e,t)=>{const n=parseInt(e,10);if("selectList"===t){if(0===n)return;if(1===n)return"0"}else if(0===n)return"0";return`var:preset|spacing|${a[e]?.slug}`},E=t?(0,T.__)("Mixed"):null,M=p.map(((e,t)=>({key:t,name:e.name}))),P=a.slice(1,a.length-1).map(((e,t)=>({value:t+1,label:void 0}))),R=Js.includes(l)&&s?nl[l]:"",A=s?c?.toLowerCase():c,N=(0,T.sprintf)((0,T._x)("%1$s %2$s","spacing"),R,A).trim();return(0,d.jsxs)(ws.__experimentalHStack,{className:"spacing-sizes-control__wrapper",children:[e&&(0,d.jsx)(ws.Icon,{className:"spacing-sizes-control__icon",icon:e,size:24}),k&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(ws.__experimentalUnitControl,{onMouseOver:i,onMouseOut:r,onFocus:i,onBlur:r,onChange:e=>o((e=>isNaN(parseFloat(e))?void 0:e)(e)),value:C,units:w,min:_,placeholder:E,disableUnits:t,label:N,hideLabelFromVision:!0,className:"spacing-sizes-control__custom-value-input",size:"__unstable-large",onDragStart:()=>{"-"===u?.charAt(0)&&y(0)},onDrag:()=>{"-"===u?.charAt(0)&&y(0)},onDragEnd:()=>{y(n)}}),(0,d.jsx)(ws.RangeControl,{__next40pxDefaultSize:!0,onMouseOver:i,onMouseOut:r,onFocus:i,onBlur:r,value:I,min:0,max:am[B]?.max??10,step:am[B]?.steps??.1,withInputField:!1,onChange:e=>{o([e,B].join(""))},className:"spacing-sizes-control__custom-value-range",__nextHasNoMarginBottom:!0,label:N,hideLabelFromVision:!0})]}),f&&!k&&(0,d.jsx)(ws.RangeControl,{__next40pxDefaultSize:!0,onMouseOver:i,onMouseOut:r,className:"spacing-sizes-control__range-control",value:C,onChange:e=>o(j(e)),onMouseDown:e=>{e?.nativeEvent?.offsetX<35&&void 0===u&&o("0")},withInputField:!1,"aria-valuenow":C,"aria-valuetext":a[C]?.name,renderTooltipContent:e=>void 0===u?void 0:a[e]?.name,min:0,max:a.length-1,marks:P,label:N,hideLabelFromVision:!0,__nextHasNoMarginBottom:!0,onFocus:i,onBlur:r}),!f&&!k&&(0,d.jsx)(ws.CustomSelectControl,{className:"spacing-sizes-control__custom-select-control",value:M.find((e=>e.key===C))||"",onChange:e=>{o(j(e.selectedItem.key,"selectList"))},options:M,label:N,hideLabelFromVision:!0,size:"__unstable-large",onMouseOver:i,onMouseOut:r,onFocus:i,onBlur:r}),!b&&(0,d.jsx)(ws.Button,{label:k?(0,T.__)("Use size preset"):(0,T.__)("Set custom size"),icon:Gd,onClick:()=>{v(!k)},isPressed:k,size:"small",className:"spacing-sizes-control__custom-toggle",iconSize:24})]})}const um=["vertical","horizontal"];function dm({minimumCustomValue:e,onChange:t,onMouseOut:n,onMouseOver:o,sides:r,spacingSizes:i,type:s,values:l}){const a=e=>n=>{if(!t)return;const o={...Object.keys(l).reduce(((e,t)=>(e[t]=sl(l[t],i),e)),{})};"vertical"===e&&(o.top=n,o.bottom=n),"horizontal"===e&&(o.left=n,o.right=n),t(o)},c=r?.length?um.filter((e=>cl(r,e))):um;return(0,d.jsx)(d.Fragment,{children:c.map((t=>{const r="vertical"===t?l.top:l.left;return(0,d.jsx)(cm,{icon:tl[t],label:nl[t],minimumCustomValue:e,onChange:a(t),onMouseOut:n,onMouseOver:o,side:t,spacingSizes:i,type:s,value:r,withInputField:!1},`spacing-sizes-control-${t}`)}))})}function pm({minimumCustomValue:e,onChange:t,onMouseOut:n,onMouseOver:o,sides:r,spacingSizes:i,type:s,values:l}){const a=r?.length?Js.filter((e=>r.includes(e))):Js,c=e=>n=>{const o={...Object.keys(l).reduce(((e,t)=>(e[t]=sl(l[t],i),e)),{})};o[e]=n,t(o)};return(0,d.jsx)(d.Fragment,{children:a.map((t=>(0,d.jsx)(cm,{icon:tl[t],label:nl[t],minimumCustomValue:e,onChange:c(t),onMouseOut:n,onMouseOver:o,side:t,spacingSizes:i,type:s,value:l[t],withInputField:!1},`spacing-sizes-control-${t}`)))})}function hm({minimumCustomValue:e,onChange:t,onMouseOut:n,onMouseOver:o,showSideInLabel:r,side:i,spacingSizes:s,type:l,values:a}){return(0,d.jsx)(cm,{label:nl[i],minimumCustomValue:e,onChange:(c=i,e=>{const n={...Object.keys(a).reduce(((e,t)=>(e[t]=sl(a[t],s),e)),{})};n[c]=e,t(n)}),onMouseOut:n,onMouseOver:o,showSideInLabel:r,side:i,spacingSizes:s,type:l,value:a[i],withInputField:!1});var c}function gm({isLinked:e,...t}){const n=e?(0,T.__)("Unlink sides"):(0,T.__)("Link sides");return(0,d.jsx)(ws.Button,{...t,size:"small",icon:e?Ld:ec,iconSize:24,label:n})}function mm({inputProps:e,label:t,minimumCustomValue:n=0,onChange:o,onMouseOut:r,onMouseOver:i,showSideInLabel:s=!0,sides:l=Js,useSelect:a,values:c}){const u=lm(),p=c||el,g=1===l?.length,m=l?.includes("horizontal")&&l?.includes("vertical")&&2===l?.length,[f,b]=(0,h.useState)(function(e={},t){const{top:n,right:o,bottom:r,left:i}=e,s=[n,o,r,i].filter(Boolean),l=!(n!==r||i!==o||!n&&!i),a=!s.length&&function(e=[]){const t={top:0,right:0,bottom:0,left:0};return e.forEach((e=>t[e]+=1)),(t.top+t.bottom)%2==0&&(t.left+t.right)%2==0}(t),c=t?.includes("horizontal")&&t?.includes("vertical")&&2===t?.length;if(cl(t)&&(l||a))return ol.axial;if(c&&1===s.length){let t;return Object.entries(e).some((([e,n])=>(t=e,void 0!==n))),t}return 1!==t?.length||s.length?ol.custom:t[0]}(p,l)),k={...e,minimumCustomValue:n,onChange:e=>{const t={...c,...e};o(t)},onMouseOut:r,onMouseOver:i,sides:l,spacingSizes:u,type:t,useSelect:a,values:p},v=Js.includes(f)&&s?nl[f]:"",_=(0,T.sprintf)((0,T._x)("%1$s %2$s","spacing"),t,v).trim();return(0,d.jsxs)("fieldset",{className:"spacing-sizes-control",children:[(0,d.jsxs)(ws.__experimentalHStack,{className:"spacing-sizes-control__header",children:[(0,d.jsx)(ws.BaseControl.VisualLabel,{as:"legend",className:"spacing-sizes-control__label",children:_}),!g&&!m&&(0,d.jsx)(gm,{label:t,onClick:()=>{b(f===ol.axial?ol.custom:ol.axial)},isLinked:f===ol.axial})]}),(0,d.jsx)(ws.__experimentalVStack,{spacing:.5,children:f===ol.axial?(0,d.jsx)(dm,{...k}):f===ol.custom?(0,d.jsx)(pm,{...k}):(0,d.jsx)(hm,{side:f,...k,showSideInLabel:s})})]})}const fm={px:{max:1e3,step:1},"%":{max:100,step:1},vw:{max:100,step:1},vh:{max:100,step:1},em:{max:50,step:.1},rem:{max:50,step:.1},svw:{max:100,step:1},lvw:{max:100,step:1},dvw:{max:100,step:1},svh:{max:100,step:1},lvh:{max:100,step:1},dvh:{max:100,step:1},vi:{max:100,step:1},svi:{max:100,step:1},lvi:{max:100,step:1},dvi:{max:100,step:1},vb:{max:100,step:1},svb:{max:100,step:1},lvb:{max:100,step:1},dvb:{max:100,step:1},vmin:{max:100,step:1},svmin:{max:100,step:1},lvmin:{max:100,step:1},dvmin:{max:100,step:1},vmax:{max:100,step:1},svmax:{max:100,step:1},lvmax:{max:100,step:1},dvmax:{max:100,step:1}};function bm({label:e=(0,T.__)("Height"),onChange:t,value:n}){const o=parseFloat(n),[r]=Ti("spacing.units"),i=(0,ws.__experimentalUseCustomUnits)({availableUnits:r||["%","px","em","rem","vh","vw"]}),s=(0,h.useMemo)((()=>(0,ws.__experimentalParseQuantityAndUnitFromRawValue)(n)),[n])[1]||i[0]?.value||"px";return(0,d.jsxs)("fieldset",{className:"block-editor-height-control",children:[(0,d.jsx)(ws.BaseControl.VisualLabel,{as:"legend",children:e}),(0,d.jsxs)(ws.Flex,{children:[(0,d.jsx)(ws.FlexItem,{isBlock:!0,children:(0,d.jsx)(ws.__experimentalUnitControl,{value:n,units:i,onChange:t,onUnitChange:e=>{const[o,r]=(0,ws.__experimentalParseQuantityAndUnitFromRawValue)(n);["em","rem"].includes(e)&&"px"===r?t((o/16).toFixed(2)+e):["em","rem"].includes(r)&&"px"===e?t(Math.round(16*o)+e):["%","vw","svw","lvw","dvw","vh","svh","lvh","dvh","vi","svi","lvi","dvi","vb","svb","lvb","dvb","vmin","svmin","lvmin","dvmin","vmax","svmax","lvmax","dvmax"].includes(e)&&o>100&&t(100+e)},min:0,size:"__unstable-large",label:e,hideLabelFromVision:!0})}),(0,d.jsx)(ws.FlexItem,{isBlock:!0,children:(0,d.jsx)(ws.__experimentalSpacer,{marginX:2,marginBottom:0,children:(0,d.jsx)(ws.RangeControl,{__next40pxDefaultSize:!0,value:o,min:0,max:fm[s]?.max??100,step:fm[s]?.step??.1,withInputField:!1,onChange:e=>{t([e,s].join(""))},__nextHasNoMarginBottom:!0,label:e,hideLabelFromVision:!0})})})]})]})}function km(e,t){const{getBlockOrder:n,getBlockAttributes:o}=(0,g.useSelect)(ji);return(r,i)=>{const s=(i-1)*t+r-1;let l=0;for(const r of n(e)){const{columnStart:e,rowStart:n}=o(r).style?.layout??{};(n-1)*t+e-1<s&&l++}return l}}function vm(e,t){const{orientation:n="horizontal"}=t;return"fill"===e?(0,T.__)("Stretch to fill available space."):"fixed"===e&&"horizontal"===n?(0,T.__)("Specify a fixed width."):"fixed"===e?(0,T.__)("Specify a fixed height."):(0,T.__)("Fit contents.")}function _m({value:e={},onChange:t,parentLayout:n,isShownByDefault:o,panelId:r}){const{type:i,default:{type:s="default"}={}}=n??{},l=i||s;return"flex"===l?(0,d.jsx)(ym,{childLayout:e,onChange:t,parentLayout:n,isShownByDefault:o,panelId:r}):"grid"===l?(0,d.jsx)(Sm,{childLayout:e,onChange:t,parentLayout:n,isShownByDefault:o,panelId:r}):null}function ym({childLayout:e,onChange:t,parentLayout:n,isShownByDefault:o,panelId:r}){const{selfStretch:i,flexSize:s}=e,{orientation:l="horizontal"}=n??{},a="horizontal"===l?(0,T.__)("Width"):(0,T.__)("Height"),[c]=Ti("spacing.units"),u=(0,ws.__experimentalUseCustomUnits)({availableUnits:c||["%","px","em","rem","vh","vw"]});return(0,h.useEffect)((()=>{"fixed"!==i||s||t({...e,selfStretch:"fit"})}),[]),(0,d.jsxs)(ws.__experimentalVStack,{as:ws.__experimentalToolsPanelItem,spacing:2,hasValue:()=>!!i,label:a,onDeselect:()=>{t({selfStretch:void 0,flexSize:void 0})},isShownByDefault:o,panelId:r,children:[(0,d.jsxs)(ws.__experimentalToggleGroupControl,{__nextHasNoMarginBottom:!0,size:"__unstable-large",label:xm(n),value:i||"fit",help:vm(i,n),onChange:e=>{t({selfStretch:e,flexSize:"fixed"!==e?null:s})},isBlock:!0,children:[(0,d.jsx)(ws.__experimentalToggleGroupControlOption,{value:"fit",label:(0,T._x)("Fit","Intrinsic block width in flex layout")},"fit"),(0,d.jsx)(ws.__experimentalToggleGroupControlOption,{value:"fill",label:(0,T._x)("Grow","Block with expanding width in flex layout")},"fill"),(0,d.jsx)(ws.__experimentalToggleGroupControlOption,{value:"fixed",label:(0,T._x)("Fixed","Block with fixed width in flex layout")},"fixed")]}),"fixed"===i&&(0,d.jsx)(ws.__experimentalUnitControl,{size:"__unstable-large",units:u,onChange:e=>{t({selfStretch:i,flexSize:e})},value:s,min:0,label:a,hideLabelFromVision:!0})]})}function xm(e){const{orientation:t="horizontal"}=e;return"horizontal"===t?(0,T.__)("Width"):(0,T.__)("Height")}function Sm({childLayout:e,onChange:t,parentLayout:n,isShownByDefault:o,panelId:r}){const{columnStart:i,rowStart:s,columnSpan:l,rowSpan:a}=e,{columnCount:c,rowCount:u}=n??{},p=(0,g.useSelect)((e=>e(ji).getBlockRootClientId(r))),{moveBlocksToPosition:h,__unstableMarkNextChangeAsNotPersistent:m}=(0,g.useDispatch)(ji),f=km(p,c||3),b=c?c-(i??1)+1:void 0,k=window.__experimentalEnableGridInteractivity&&u?u-(s??1)+1:void 0;return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(ws.Flex,{as:ws.__experimentalToolsPanelItem,hasValue:()=>!!l||!!a,label:(0,T.__)("Grid span"),onDeselect:()=>{t({columnSpan:void 0,rowSpan:void 0})},isShownByDefault:o,panelId:r,children:[(0,d.jsx)(ws.FlexItem,{style:{width:"50%"},children:(0,d.jsx)(ws.__experimentalInputControl,{size:"__unstable-large",label:(0,T.__)("Column span"),type:"number",onChange:e=>{const n=""===e?1:parseInt(e,10),o=b?Math.min(n,b):n;t({columnStart:i,rowStart:s,rowSpan:a,columnSpan:o})},value:l??1,min:1,max:b})}),(0,d.jsx)(ws.FlexItem,{style:{width:"50%"},children:(0,d.jsx)(ws.__experimentalInputControl,{size:"__unstable-large",label:(0,T.__)("Row span"),type:"number",onChange:e=>{const n=""===e?1:parseInt(e,10),o=k?Math.min(n,k):n;t({columnStart:i,rowStart:s,columnSpan:l,rowSpan:o})},value:a??1,min:1,max:k})})]}),window.__experimentalEnableGridInteractivity&&(0,d.jsxs)(ws.Flex,{as:ws.__experimentalToolsPanelItem,hasValue:()=>!!i||!!s,label:(0,T.__)("Grid placement"),onDeselect:()=>{t({columnStart:void 0,rowStart:void 0})},isShownByDefault:!1,panelId:r,children:[(0,d.jsx)(ws.FlexItem,{style:{width:"50%"},children:(0,d.jsx)(ws.__experimentalInputControl,{size:"__unstable-large",label:(0,T.__)("Column"),type:"number",onChange:e=>{const n=""===e?1:parseInt(e,10);t({columnStart:n,rowStart:s,columnSpan:l,rowSpan:a}),m(),h([r],p,p,f(n,s))},value:i??1,min:1,max:c?c-(l??1)+1:void 0})}),(0,d.jsx)(ws.FlexItem,{style:{width:"50%"},children:(0,d.jsx)(ws.__experimentalInputControl,{size:"__unstable-large",label:(0,T.__)("Row"),type:"number",onChange:e=>{const n=""===e?1:parseInt(e,10);t({columnStart:i,rowStart:n,columnSpan:l,rowSpan:a}),m(),h([r],p,p,f(i,n))},value:s??1,min:1,max:u?u-(a??1)+1:void 0})})]})]})}function wm({panelId:e,value:t,onChange:n=()=>{},options:o,defaultValue:r="auto",hasValue:i,isShownByDefault:s=!0}){const l=t??"auto",[a,c,u]=Ti("dimensions.aspectRatios.default","dimensions.aspectRatios.theme","dimensions.defaultAspectRatios"),p=c?.map((({name:e,ratio:t})=>({label:e,value:t}))),h=a?.map((({name:e,ratio:t})=>({label:e,value:t}))),g=[{label:(0,T._x)("Original","Aspect ratio option for dimensions control"),value:"auto"},...u?h:[],...p||[],{label:(0,T._x)("Custom","Aspect ratio option for dimensions control"),value:"custom",disabled:!0,hidden:!0}];return(0,d.jsx)(ws.__experimentalToolsPanelItem,{hasValue:i||(()=>l!==r),label:(0,T.__)("Aspect ratio"),onDeselect:()=>n(void 0),isShownByDefault:s,panelId:e,children:(0,d.jsx)(ws.SelectControl,{label:(0,T.__)("Aspect ratio"),value:l,options:o??g,onChange:n,size:"__unstable-large",__nextHasNoMarginBottom:!0})})}const Cm=["horizontal","vertical"];function Bm(e){const t=Im(e),n=jm(e),o=Em(e),r=Tm(e),i=Mm(e),s=Pm(e),l=Rm(e),a=Am(e);return"web"===h.Platform.OS&&(t||n||o||r||i||s||l||a)}function Im(e){return e?.layout?.contentSize}function jm(e){return e?.layout?.wideSize}function Em(e){return e?.spacing?.padding}function Tm(e){return e?.spacing?.margin}function Mm(e){return e?.spacing?.blockGap}function Pm(e){return e?.dimensions?.minHeight}function Rm(e){return e?.dimensions?.aspectRatio}function Am(e){const{type:t="default",default:{type:n="default"}={},allowSizingOnChildren:o=!1}=e?.parentLayout??{},r=("flex"===n||"flex"===t||"grid"===n||"grid"===t)&&o;return!!e?.layout&&r}function Nm(e,t){if(!t||!e)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 Lm(e){return e&&"string"==typeof e?{top:e,right:e,bottom:e,left:e}:e}function Dm({resetAllFilter:e,onChange:t,value:n,panelId:o,children:r}){const i=Ji();return(0,d.jsx)(ws.__experimentalToolsPanel,{label:(0,T.__)("Dimensions"),resetAll:()=>{const o=e(n);t(o)},panelId:o,dropdownMenuProps:i,children:r})}const Om={contentSize:!0,wideSize:!0,padding:!0,margin:!0,blockGap:!0,minHeight:!0,aspectRatio:!0,childLayout:!0};function zm({as:e=Dm,value:t,onChange:n,inheritedValue:o=t,settings:r,panelId:i,defaultControls:s=Om,onVisualize:l=()=>{},includeLayoutControls:a=!1}){const{dimensions:c,spacing:u}=r,p=e=>e&&"object"==typeof e?Object.keys(e).reduce(((t,n)=>(t[n]=ts({settings:{dimensions:c,spacing:u}},"",e[n]),t)),{}):ts({settings:{dimensions:c,spacing:u}},"",e),g=function(e){const{defaultSpacingSizes:t,spacingSizes:n}=e?.spacing||{};return!1!==t&&n?.default?.length>0||n?.theme?.length>0||n?.custom?.length>0}(r),m=(0,ws.__experimentalUseCustomUnits)({availableUnits:r?.spacing?.units||["%","px","em","rem","vw"]}),f=-1/0,[b,k]=(0,h.useState)(f),v=Im(r)&&a,_=p(o?.layout?.contentSize),y=e=>{n(me(t,["layout","contentSize"],e||void 0))},x=jm(r)&&a,S=p(o?.layout?.wideSize),w=e=>{n(me(t,["layout","wideSize"],e||void 0))},C=Em(r),B=Lm(p(o?.spacing?.padding)),I=Array.isArray(r?.spacing?.padding)?r?.spacing?.padding:r?.spacing?.padding?.sides,j=I&&I.some((e=>Cm.includes(e))),E=e=>{const o=Nm(e,I);n(me(t,["spacing","padding"],o))},M=()=>l("padding"),P=Tm(r),R=Lm(p(o?.spacing?.margin)),A=Array.isArray(r?.spacing?.margin)?r?.spacing?.margin:r?.spacing?.margin?.sides,N=A&&A.some((e=>Cm.includes(e))),L=e=>{const o=Nm(e,A);n(me(t,["spacing","margin"],o))},D=()=>l("margin"),O=Mm(r),z=Array.isArray(r?.spacing?.blockGap)?r?.spacing?.blockGap:r?.spacing?.blockGap?.sides,V=z&&z.some((e=>Cm.includes(e))),F=p(o?.spacing?.blockGap),H=function(e,t){return e?"string"==typeof e?t?{top:e,right:e,bottom:e,left:e}:{top:e}:{...e,right:e?.left,bottom:e?.top}:e}(F,V),U=e=>{n(me(t,["spacing","blockGap"],e))},G=e=>{e||U(null),!V&&e?.hasOwnProperty("top")?U(e.top):U({top:e?.top,left:e?.left})},$=Pm(r),W=p(o?.dimensions?.minHeight),K=e=>{const o=me(t,["dimensions","minHeight"],e);n(me(o,["dimensions","aspectRatio"],void 0))},Z=Rm(r),q=p(o?.dimensions?.aspectRatio),Y=Am(r),X=o?.layout,Q=(0,h.useCallback)((e=>({...e,layout:fs({...e?.layout,contentSize:void 0,wideSize:void 0,selfStretch:void 0,flexSize:void 0,columnStart:void 0,rowStart:void 0,columnSpan:void 0,rowSpan:void 0}),spacing:{...e?.spacing,padding:void 0,margin:void 0,blockGap:void 0},dimensions:{...e?.dimensions,minHeight:void 0,aspectRatio:void 0}})),[]),J=()=>l(!1);return(0,d.jsxs)(e,{resetAllFilter:Q,value:t,onChange:n,panelId:i,children:[(v||x)&&(0,d.jsx)("span",{className:"span-columns",children:(0,T.__)("Set the width of the main content area.")}),v&&(0,d.jsx)(ws.__experimentalToolsPanelItem,{label:(0,T.__)("Content width"),hasValue:()=>!!t?.layout?.contentSize,onDeselect:()=>y(void 0),isShownByDefault:s.contentSize??Om.contentSize,panelId:i,children:(0,d.jsx)(ws.__experimentalUnitControl,{__next40pxDefaultSize:!0,label:(0,T.__)("Content width"),labelPosition:"top",value:_||"",onChange:e=>{y(e)},units:m,prefix:(0,d.jsx)(ws.__experimentalInputControlPrefixWrapper,{variant:"icon",children:(0,d.jsx)(Ol,{icon:zl})})})}),x&&(0,d.jsx)(ws.__experimentalToolsPanelItem,{label:(0,T.__)("Wide width"),hasValue:()=>!!t?.layout?.wideSize,onDeselect:()=>w(void 0),isShownByDefault:s.wideSize??Om.wideSize,panelId:i,children:(0,d.jsx)(ws.__experimentalUnitControl,{__next40pxDefaultSize:!0,label:(0,T.__)("Wide width"),labelPosition:"top",value:S||"",onChange:e=>{w(e)},units:m,prefix:(0,d.jsx)(ws.__experimentalInputControlPrefixWrapper,{variant:"icon",children:(0,d.jsx)(Ol,{icon:Vl})})})}),C&&(0,d.jsxs)(ws.__experimentalToolsPanelItem,{hasValue:()=>!!t?.spacing?.padding&&Object.keys(t?.spacing?.padding).length,label:(0,T.__)("Padding"),onDeselect:()=>E(void 0),isShownByDefault:s.padding??Om.padding,className:ms({"tools-panel-item-spacing":g}),panelId:i,children:[!g&&(0,d.jsx)(ws.BoxControl,{__next40pxDefaultSize:!0,values:B,onChange:E,label:(0,T.__)("Padding"),sides:I,units:m,allowReset:!1,splitOnAxis:j,inputProps:{onMouseOver:M,onMouseOut:J}}),g&&(0,d.jsx)(mm,{values:B,onChange:E,label:(0,T.__)("Padding"),sides:I,units:m,allowReset:!1,onMouseOver:M,onMouseOut:J})]}),P&&(0,d.jsxs)(ws.__experimentalToolsPanelItem,{hasValue:()=>!!t?.spacing?.margin&&Object.keys(t?.spacing?.margin).length,label:(0,T.__)("Margin"),onDeselect:()=>L(void 0),isShownByDefault:s.margin??Om.margin,className:ms({"tools-panel-item-spacing":g}),panelId:i,children:[!g&&(0,d.jsx)(ws.BoxControl,{__next40pxDefaultSize:!0,values:R,onChange:L,inputProps:{min:b,onDragStart:()=>{k(0)},onDragEnd:()=>{k(f)},onMouseOver:D,onMouseOut:J},label:(0,T.__)("Margin"),sides:A,units:m,allowReset:!1,splitOnAxis:N}),g&&(0,d.jsx)(mm,{values:R,onChange:L,minimumCustomValue:-1/0,label:(0,T.__)("Margin"),sides:A,units:m,allowReset:!1,onMouseOver:D,onMouseOut:J})]}),O&&(0,d.jsxs)(ws.__experimentalToolsPanelItem,{hasValue:()=>!!t?.spacing?.blockGap,label:(0,T.__)("Block spacing"),onDeselect:()=>U(void 0),isShownByDefault:s.blockGap??Om.blockGap,className:ms({"tools-panel-item-spacing":g,"single-column":!g&&!V}),panelId:i,children:[!g&&(V?(0,d.jsx)(ws.BoxControl,{__next40pxDefaultSize:!0,label:(0,T.__)("Block spacing"),min:0,onChange:G,units:m,sides:z,values:H,allowReset:!1,splitOnAxis:V}):(0,d.jsx)(ws.__experimentalUnitControl,{__next40pxDefaultSize:!0,label:(0,T.__)("Block spacing"),min:0,onChange:U,units:m,value:F})),g&&(0,d.jsx)(mm,{label:(0,T.__)("Block spacing"),min:0,onChange:G,showSideInLabel:!1,sides:V?z:["top"],values:H,allowReset:!1})]}),Y&&(0,d.jsx)(_m,{value:X,onChange:e=>{n({...t,layout:{...e}})},parentLayout:r?.parentLayout,panelId:i,isShownByDefault:s.childLayout??Om.childLayout}),$&&(0,d.jsx)(ws.__experimentalToolsPanelItem,{hasValue:()=>!!t?.dimensions?.minHeight,label:(0,T.__)("Minimum height"),onDeselect:()=>{K(void 0)},isShownByDefault:s.minHeight??Om.minHeight,panelId:i,children:(0,d.jsx)(bm,{label:(0,T.__)("Minimum height"),value:W,onChange:K})}),Z&&(0,d.jsx)(wm,{hasValue:()=>!!t?.dimensions?.aspectRatio,value:q,onChange:e=>{const o=me(t,["dimensions","aspectRatio"],e);n(me(o,["dimensions","minHeight"],void 0))},panelId:i,isShownByDefault:s.aspectRatio??Om.aspectRatio})]})}const Vm=new WeakMap;var Fm=function(e){const t=(0,m.useRefEffect)((t=>{function n(n){const{deltaX:o,deltaY:r,target:i}=n,s=e.current;let l=Vm.get(s);l||(l=(0,Ga.getScrollContainer)(s),Vm.set(s,l));const a=(0,Ga.getScrollContainer)(i);t.contains(a)||l.scrollBy(o,r)}const o={passive:!0};return t.addEventListener("wheel",n,o),()=>{t.removeEventListener("wheel",n,o)}}),[e]);return e?t:null};const Hm=".block-editor-block-list__block",Um=".block-list-appender",Gm=".block-editor-button-block-appender";function $m(e,t){return e.closest(Hm)===t.closest(Hm)}function Wm(e,t){return t.closest([Hm,Um,Gm].join(","))===e}function Km(e){for(;e&&e.nodeType!==e.ELEMENT_NODE;)e=e.parentNode;if(!e)return;const t=e.closest(Hm);return t?t.id.slice(6):void 0}function Zm(e,t){const n=Math.min(e.left,t.left),o=Math.max(e.right,t.right),r=Math.max(e.bottom,t.bottom),i=Math.min(e.top,t.top);return new window.DOMRectReadOnly(n,i,o-n,r-i)}function qm(e){const t=e.ownerDocument.defaultView;if(!t)return!1;if(e.classList.contains("components-visually-hidden"))return!1;const n=e.getBoundingClientRect();if(0===n.width||0===n.height)return!1;if(e.checkVisibility)return e.checkVisibility?.({opacityProperty:!0,contentVisibilityAuto:!0,visibilityProperty:!0});const o=t.getComputedStyle(e);return"none"!==o.display&&"hidden"!==o.visibility&&"0"!==o.opacity}function Ym(e){const t=window.getComputedStyle(e);return"auto"===t.overflowX||"scroll"===t.overflowX||"auto"===t.overflowY||"scroll"===t.overflowY}const Xm=["core/navigation"];function Qm(e){const t=e.ownerDocument.defaultView;if(!t)return new window.DOMRectReadOnly;let n=e.getBoundingClientRect();const o=e.getAttribute("data-type");if(o&&Xm.includes(o)){const t=[e];let o;for(;o=t.pop();)if(!Ym(o))for(const e of o.children)if(qm(e)){n=Zm(n,e.getBoundingClientRect()),t.push(e)}}const r=Math.max(n.left,0),i=Math.min(n.right,t.innerWidth);return n=new window.DOMRectReadOnly(r,n.top,i-r,n.height),n}const Jm=Number.MAX_SAFE_INTEGER;const ef=(0,h.forwardRef)((function({clientId:e,bottomClientId:t,children:n,__unstablePopoverSlot:o,__unstableContentRef:r,shift:i=!0,...s},l){const a=bh(e),c=bh(t??e),u=(0,m.useMergeRefs)([l,Fm(r)]),[p,g]=(0,h.useReducer)((e=>(e+1)%Jm),0);(0,h.useLayoutEffect)((()=>{if(!a)return;const e=new window.MutationObserver(g);return e.observe(a,{attributes:!0}),()=>{e.disconnect()}}),[a]);const f=(0,h.useMemo)((()=>{if(!(p<0||!a||t&&!c))return{getBoundingClientRect:()=>c?Zm(Qm(a),Qm(c)):Qm(a),contextElement:a}}),[p,a,t,c]);return!a||t&&!c?null:(0,d.jsx)(ws.Popover,{ref:u,animate:!1,focusOnMount:!1,anchor:f,__unstableSlotName:o,inline:!o,placement:"top-start",resize:!1,flip:!1,shift:i,...s,className:ms("block-editor-block-popover",s.className),variant:"unstyled",children:n})}));var tf=(0,h.forwardRef)((({clientId:e,bottomClientId:t,children:n,...o},r)=>(0,d.jsx)(ef,{...o,bottomClientId:t,clientId:e,__unstableContentRef:void 0,__unstablePopoverSlot:void 0,ref:r,children:n})));function nf({selectedElement:e,additionalStyles:t={},children:n}){const[o,r]=(0,h.useState)(e.offsetWidth),[i,s]=(0,h.useState)(e.offsetHeight);(0,h.useEffect)((()=>{const t=new window.ResizeObserver((()=>{r(e.offsetWidth),s(e.offsetHeight)}));return t.observe(e,{box:"border-box"}),()=>t.disconnect()}),[e]);const l=(0,h.useMemo)((()=>({position:"absolute",width:o,height:i,...t})),[o,i,t]);return(0,d.jsx)("div",{style:l,children:n})}var of=(0,h.forwardRef)((function({clientId:e,bottomClientId:t,children:n,shift:o=!1,additionalStyles:r,...i},s){t??=e;const l=bh(e);return(0,d.jsx)(ef,{ref:s,clientId:e,bottomClientId:t,shift:o,...i,children:l&&e===t?(0,d.jsx)(nf,{selectedElement:l,additionalStyles:r,children:n}):n})}));function rf({clientId:e,value:t,computeStyle:n,forceShow:o}){const r=bh(e),[i,s]=(0,h.useReducer)((()=>n(r)));(0,h.useEffect)((()=>{if(!r)return;const e=new window.MutationObserver(s);return e.observe(r,{attributes:!0,attributeFilter:["style","class"]}),()=>{e.disconnect()}}),[r]);const l=(0,h.useRef)(t),[a,c]=(0,h.useState)(!1);return(0,h.useEffect)((()=>{if(Ja()(t,l.current)||o)return;c(!0),l.current=t;const e=setTimeout((()=>{c(!1)}),400);return()=>{c(!1),clearTimeout(e)}}),[t,o]),a||o?(0,d.jsx)(of,{clientId:e,__unstablePopoverSlot:"block-toolbar",children:(0,d.jsx)("div",{className:"block-editor__spacing-visualizer",style:i})}):null}function sf(e,t){return e.ownerDocument.defaultView.getComputedStyle(e).getPropertyValue(t)}function lf({clientId:e,value:t,forceShow:n}){return(0,d.jsx)(rf,{clientId:e,value:t?.spacing?.margin,computeStyle:e=>{const t=sf(e,"margin-top"),n=sf(e,"margin-right"),o=sf(e,"margin-bottom"),r=sf(e,"margin-left");return{borderTopWidth:t,borderRightWidth:n,borderBottomWidth:o,borderLeftWidth:r,top:t?`-${t}`:0,right:n?`-${n}`:0,bottom:o?`-${o}`:0,left:r?`-${r}`:0}},forceShow:n})}function af({clientId:e,value:t,forceShow:n}){return(0,d.jsx)(rf,{clientId:e,value:t?.spacing?.padding,computeStyle:e=>({borderTopWidth:sf(e,"padding-top"),borderRightWidth:sf(e,"padding-right"),borderBottomWidth:sf(e,"padding-bottom"),borderLeftWidth:sf(e,"padding-left")}),forceShow:n})}const cf="dimensions",uf="spacing";function df({children:e,resetAllFilter:t}){const n=(0,h.useCallback)((e=>{const n=e.style,o=t(n);return{...e,style:o}}),[t]);return(0,d.jsx)(Fa,{group:"dimensions",resetAllFilter:n,children:e})}function pf({clientId:e,name:t,setAttributes:n,settings:o}){const r=Bm(o),i=(0,g.useSelect)((t=>t(ji).getBlockAttributes(e)?.style),[e]),[s,l]=function(){const[e,t]=(0,h.useState)(!1),{hideBlockInterface:n,showBlockInterface:o}=G((0,g.useDispatch)(ji));return(0,h.useEffect)((()=>{e?n():o()}),[e,o,n]),[e,t]}();if(!r)return null;const a={...(0,p.getBlockSupport)(t,[cf,"__experimentalDefaultControls"]),...(0,p.getBlockSupport)(t,[uf,"__experimentalDefaultControls"])};return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(zm,{as:df,panelId:e,settings:o,value:i,onChange:e=>{n({style:fs(e)})},defaultControls:a,onVisualize:l}),!!o?.spacing?.padding&&(0,d.jsx)(af,{forceShow:"padding"===s,clientId:e,value:i}),!!o?.spacing?.margin&&(0,d.jsx)(lf,{forceShow:"margin"===s,clientId:e,value:i})]})}function hf(e,t="any"){if("web"!==h.Platform.OS)return!1;const n=(0,p.getBlockSupport)(e,cf);return!0===n||("any"===t?!(!n?.aspectRatio&&!n?.minHeight):!!n?.[t])}var gf={useBlockProps:function({name:e,minHeight:t,style:n}){if(!hf(e,"aspectRatio")||ks(e,cf,"aspectRatio"))return{};const o=ms({"has-aspect-ratio":!!n?.dimensions?.aspectRatio}),r={};n?.dimensions?.aspectRatio?r.minHeight="unset":(t||n?.dimensions?.minHeight)&&(r.aspectRatio="unset");return{className:o,style:r}},attributeKeys:["minHeight","style"],hasSupport:e=>hf(e,"aspectRatio")};function mf(){I()("wp.blockEditor.__experimentalUseCustomSides",{since:"6.3",version:"6.4"})}const ff=[...em,wp,yh,cf,Mu,uf,Cp],bf=e=>ff.some((t=>(0,p.hasBlockSupport)(e,t)));function kf(e={}){const t={};return(0,Pi.getCSSRules)(e).forEach((e=>{t[e.key]=e.value})),t}const vf={[`${wp}.__experimentalSkipSerialization`]:["border"],[`${yh}.__experimentalSkipSerialization`]:[yh],[`${Jg}.__experimentalSkipSerialization`]:[Jg],[`${cf}.__experimentalSkipSerialization`]:[cf],[`${uf}.__experimentalSkipSerialization`]:[uf],[`${Cp}.__experimentalSkipSerialization`]:[Cp]},_f={...vf,[`${cf}.aspectRatio`]:[`${cf}.aspectRatio`],[`${Mu}`]:[Mu]},yf={[`${cf}.aspectRatio`]:!0,[`${Mu}`]:!0},xf={gradients:"gradient"};function Sf(e,t,n=!1){if(!e)return e;let o=e;return n||(o=JSON.parse(JSON.stringify(e))),Array.isArray(t)||(t=[t]),t.forEach((e=>{if(Array.isArray(e)||(e=e.split(".")),e.length>1){const[t,...n]=e;Sf(o[t],[n],!0)}else 1===e.length&&delete o[e[0]]})),o}function wf(e,t,n,o=_f){if(!bf(t))return e;let{style:r}=n;return Object.entries(o).forEach((([e,n])=>{const o=yf[e]||(0,p.getBlockSupport)(t,e);!0===o&&(r=Sf(r,n)),Array.isArray(o)&&o.forEach((e=>{const t=xf[e]||e;r=Sf(r,[[...n,t]])}))})),e.style={...kf(r),...e.style},e}var Cf={edit:function({clientId:e,name:t,setAttributes:n,__unstableParentLayout:o}){const r=xs(t,o),i=ga(),s={clientId:e,name:t,setAttributes:n,settings:{...r,typography:{...r.typography,textAlign:!1}}};return"default"!==i?null:(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(Mh,{...s}),(0,d.jsx)(Du,{...s}),(0,d.jsx)(rm,{...s}),(0,d.jsx)(Pp,{...s}),(0,d.jsx)(pf,{...s})]})},hasSupport:bf,addSaveProps:wf,attributeKeys:["style"],useBlockProps:function({name:e,style:t}){const n=(0,m.useInstanceId)(If,"wp-elements"),o=`.${n}`,r=t?.elements,i=(0,h.useMemo)((()=>{if(!r)return;const t=[];return Bf.forEach((({elementType:n,pseudo:i,elements:s})=>{if(ks(e,yh,n))return;const l=r?.[n];if(l){const e=ns(o,p.__EXPERIMENTAL_ELEMENTS[n]);t.push((0,Pi.compileCSS)(l,{selector:e})),i&&i.forEach((e=>{l[e]&&t.push((0,Pi.compileCSS)(l[e],{selector:ns(o,`${p.__EXPERIMENTAL_ELEMENTS[n]}${e}`)}))}))}s&&s.forEach((e=>{r[e]&&t.push((0,Pi.compileCSS)(r[e],{selector:ns(o,p.__EXPERIMENTAL_ELEMENTS[e])}))}))})),t.length>0?t.join(""):void 0}),[o,r,e]);return _s({css:i}),wf({className:n},e,{style:t},vf)}};const Bf=[{elementType:"button"},{elementType:"link",pseudo:[":hover"]},{elementType:"heading",elements:["h1","h2","h3","h4","h5","h6"]}],If={};(0,f.addFilter)("blocks.registerBlockType","core/style/addAttribute",(function(e){return bf(e)?(e.attributes.style||Object.assign(e.attributes,{style:{type:"object"}}),e):e}));(0,f.addFilter)("blocks.registerBlockType","core/settings/addAttribute",(function(e){return t=e,(0,p.hasBlockSupport)(t,"__experimentalSettings",!1)?(e?.attributes?.settings||(e.attributes={...e.attributes,settings:{type:"object"}}),e):e;var t}));var jf=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"M12 4 4 19h16L12 4zm0 3.2 5.5 10.3H12V7.2z"})});var Ef=function e({id:t,colorPalette:n,duotonePalette:o,disableCustomColors:r,disableCustomDuotone:i,value:s,onChange:l}){let a;a="unset"===s?(0,d.jsx)(ws.ColorIndicator,{className:"block-editor-duotone-control__unset-indicator"}):s?(0,d.jsx)(ws.DuotoneSwatch,{values:s}):(0,d.jsx)(Ol,{icon:jf});const c=(0,T.__)("Apply duotone filter"),u=`${(0,m.useInstanceId)(e,"duotone-control",t)}__description`;return(0,d.jsx)(ws.Dropdown,{popoverProps:{className:"block-editor-duotone-control__popover",headerTitle:(0,T.__)("Duotone")},renderToggle:({isOpen:e,onToggle:t})=>(0,d.jsx)(ws.ToolbarButton,{showTooltip:!0,onClick:t,"aria-haspopup":"true","aria-expanded":e,onKeyDown:n=>{e||n.keyCode!==Wa.DOWN||(n.preventDefault(),t())},label:c,icon:a}),renderContent:()=>(0,d.jsxs)(ws.MenuGroup,{label:(0,T.__)("Duotone"),children:[(0,d.jsx)("p",{children:(0,T.__)("Create a two-tone color effect without losing your original image.")}),(0,d.jsx)(ws.DuotonePicker,{"aria-label":c,"aria-describedby":u,colorPalette:n,duotonePalette:o,disableCustomColors:r,disableCustomDuotone:i,value:s,onChange:l})]})})};function Tf(e){return`${e}{filter:none}`}function Mf(e,t){return`${e}{filter:url(#${t})}`}function Pf(e,t){const n=function(e=[]){const t={r:[],g:[],b:[],a:[]};return e.forEach((e=>{const n=wd(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}(t);return`\n<svg\n\txmlns:xlink="http://www.w3.org/1999/xlink"\n\tviewBox="0 0 0 0"\n\twidth="0"\n\theight="0"\n\tfocusable="false"\n\trole="none"\n\taria-hidden="true"\n\tstyle="visibility: hidden; position: absolute; left: -9999px; overflow: hidden;"\n>\n\t<defs>\n\t\t<filter id="${e}">\n\t\t\t\x3c!--\n\t\t\t\tUse sRGB instead of linearRGB so transparency looks correct.\n\t\t\t\tUse perceptual brightness to convert to grayscale.\n\t\t\t--\x3e\n\t\t\t<feColorMatrix color-interpolation-filters="sRGB" type="matrix" values=" .299 .587 .114 0 0 .299 .587 .114 0 0 .299 .587 .114 0 0 .299 .587 .114 0 0 "></feColorMatrix>\n\t\t\t\x3c!-- Use sRGB instead of linearRGB to be consistent with how CSS gradients work. --\x3e\n\t\t\t<feComponentTransfer color-interpolation-filters="sRGB">\n\t\t\t\t<feFuncR type="table" tableValues="${n.r.join(" ")}"></feFuncR>\n\t\t\t\t<feFuncG type="table" tableValues="${n.g.join(" ")}"></feFuncG>\n\t\t\t\t<feFuncB type="table" tableValues="${n.b.join(" ")}"></feFuncB>\n\t\t\t\t<feFuncA type="table" tableValues="${n.a.join(" ")}"></feFuncA>\n\t\t\t</feComponentTransfer>\n\t\t\t\x3c!-- Re-mask the image with the original transparency since the feColorMatrix above loses that information. --\x3e\n\t\t\t<feComposite in2="SourceGraphic" operator="in"></feComposite>\n\t\t</filter>\n\t</defs>\n</svg>`}function Rf(e,t="root",n={}){if(!t)return null;const{fallback:o=!1}=n,{name:r,selectors:i,supports:s}=e,l=i&&Object.keys(i).length>0,a=Array.isArray(t)?t.join("."):t;let c=null;if(c=l&&i.root?i?.root:s?.__experimentalSelector?s.__experimentalSelector:".wp-block-"+r.replace("core/","").replace("/","-"),"root"===a)return c;const u=Array.isArray(t)?t:t.split(".");if(1===u.length){const e=o?c:null;if(l){return fe(i,`${a}.root`,null)||fe(i,a,null)||e}const t=fe(s,`${a}.__experimentalSelector`,null);return t?ns(c,t):e}let d;return l&&(d=fe(i,a,null)),d||(o?Rf(e,u[0],n):null)}const Af=[];function Nf(e,{presetSetting:t,defaultSetting:n}){const o=!e?.color?.[n],r=e?.color?.[t]?.custom||Af,i=e?.color?.[t]?.theme||Af,s=e?.color?.[t]?.default||Af;return(0,h.useMemo)((()=>[...r,...i,...o?Af:s]),[o,r,i,s])}function Lf(e){return Df(e)}function Df(e){return e.color.customDuotone||e.color.defaultDuotone||e.color.duotone.length>0}function Of({resetAllFilter:e,onChange:t,value:n,panelId:o,children:r}){const i=Ji();return(0,d.jsx)(ws.__experimentalToolsPanel,{label:(0,T._x)("Filters","Name for applying graphical effects"),resetAll:()=>{const o=e(n);t(o)},panelId:o,dropdownMenuProps:i,children:r})}const zf={duotone:!0},Vf={placement:"left-start",offset:36,shift:!0,className:"block-editor-duotone-control__popover",headerTitle:(0,T.__)("Duotone")},Ff=({indicator:e,label:t})=>(0,d.jsxs)(ws.__experimentalHStack,{justify:"flex-start",children:[(0,d.jsx)(ws.__experimentalZStack,{isLayered:!1,offset:-8,children:(0,d.jsx)(ws.Flex,{expanded:!1,children:"unset"!==e&&e?(0,d.jsx)(ws.DuotoneSwatch,{values:e}):(0,d.jsx)(ws.ColorIndicator,{className:"block-editor-duotone-control__unset-indicator"})})}),(0,d.jsx)(ws.FlexItem,{title:t,children:t})]}),Hf=(e,t)=>({onToggle:n,isOpen:o})=>{const r=(0,h.useRef)(void 0),i={onClick:n,className:ms("block-editor-global-styles-filters-panel__dropdown-toggle",{"is-open":o}),"aria-expanded":o,ref:r},s={onClick:()=>{o&&n(),t(),r.current?.focus()},className:"block-editor-panel-duotone-settings__reset",label:(0,T.__)("Reset")};return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(ws.Button,{__next40pxDefaultSize:!0,...i,children:(0,d.jsx)(Ff,{indicator:e,label:(0,T.__)("Duotone")})}),e&&(0,d.jsx)(ws.Button,{size:"small",icon:Ha,...s})]})};function Uf({as:e=Of,value:t,onChange:n,inheritedValue:o=t,settings:r,panelId:i,defaultControls:s=zf}){const l=Df(r),a=Nf(r,{presetSetting:"duotone",defaultSetting:"defaultDuotone"}),c=Nf(r,{presetSetting:"palette",defaultSetting:"defaultPalette"}),u=(p=o?.filter?.duotone,ts({settings:r},"",p));var p;const g=e=>{const o=a.find((({colors:t})=>t===e)),r=o?`var:preset|duotone|${o.slug}`:e;n(me(t,["filter","duotone"],r))},m=()=>g(void 0),f=(0,h.useCallback)((e=>({...e,filter:{...e.filter,duotone:void 0}})),[]);return(0,d.jsx)(e,{resetAllFilter:f,value:t,onChange:n,panelId:i,children:l&&(0,d.jsx)(ws.__experimentalToolsPanelItem,{label:(0,T.__)("Duotone"),hasValue:()=>!!t?.filter?.duotone,onDeselect:m,isShownByDefault:s.duotone,panelId:i,children:(0,d.jsx)(ws.Dropdown,{popoverProps:Vf,className:"block-editor-global-styles-filters-panel__dropdown",renderToggle:Hf(u,m),renderContent:()=>(0,d.jsx)(ws.__experimentalDropdownContentWrapper,{paddingSize:"small",children:(0,d.jsxs)(ws.MenuGroup,{label:(0,T.__)("Duotone"),children:[(0,d.jsx)("p",{children:(0,T.__)("Create a two-tone color effect without losing your original image.")}),(0,d.jsx)(ws.DuotonePicker,{colorPalette:c,duotonePalette:a,disableCustomColors:!0,disableCustomDuotone:!0,value:u,onChange:g})]})})})})})}const Gf=[],$f=window?.navigator.userAgent&&window.navigator.userAgent.includes("Safari")&&!window.navigator.userAgent.includes("Chrome")&&!window.navigator.userAgent.includes("Chromium");function Wf({presetSetting:e,defaultSetting:t}){const[n,o,r,i]=Ti(t,`${e}.custom`,`${e}.theme`,`${e}.default`);return(0,h.useMemo)((()=>[...o||Gf,...r||Gf,...n&&i||Gf]),[n,o,r,i])}function Kf(e,t){if(!e)return;const n=t?.find((({slug:t})=>e===`var:preset|duotone|${t}`));return n?n.colors:void 0}Bd([Id]);var Zf={shareWithChildBlocks:!0,edit:function({style:e,setAttributes:t,name:n}){const o=e?.color?.duotone,r=xs(n),i=ga(),s=Wf({presetSetting:"color.duotone",defaultSetting:"color.defaultDuotone"}),l=Wf({presetSetting:"color.palette",defaultSetting:"color.defaultPalette"}),[a,c]=Ti("color.custom","color.customDuotone"),u=!a,p=!c||0===l?.length&&u;if(0===s?.length&&p)return null;if("default"!==i)return null;const h="unset"===o||Array.isArray(o)?o:Kf(o,s);return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(Fa,{group:"filter",children:(0,d.jsx)(Uf,{value:{filter:{duotone:h}},onChange:n=>{const o={...e,color:{...n?.filter}};t({style:fs(o)})},settings:r})}),(0,d.jsx)(Rs,{group:"block",__experimentalShareWithChildBlocks:!0,children:(0,d.jsx)(Ef,{duotonePalette:s,colorPalette:l,disableCustomDuotone:p,disableCustomColors:u,value:h,onChange:n=>{const o=function(e,t){if(!e||!Array.isArray(e))return;const n=t?.find((t=>t?.colors?.every(((t,n)=>t===e[n]))));return n?`var:preset|duotone|${n.slug}`:void 0}(n,s),r={...e,color:{...e?.color,duotone:o??n}};t({style:fs(r)})},settings:r})})]})},useBlockProps:function({clientId:e,name:t,style:n}){const o=(0,m.useInstanceId)(Yf),r=(0,h.useMemo)((()=>{const e=(0,p.getBlockType)(t);if(e){if(!(0,p.getBlockSupport)(e,"filter.duotone",!1))return null;const t=(0,p.getBlockSupport)(e,"color.__experimentalDuotone",!1);if(t){const n=Rf(e);return"string"==typeof t?ns(n,t):n}return Rf(e,"filter.duotone",{fallback:!0})}}),[t]),i=n?.color?.duotone,s=`wp-duotone-${o}`,l=r&&i;return qf({clientId:e,id:s,selector:r,attribute:i}),{className:l?s:""}},attributeKeys:["style"],hasSupport:e=>(0,p.hasBlockSupport)(e,"filter.duotone")};function qf({clientId:e,id:t,selector:n,attribute:o}){const r=Wf({presetSetting:"color.duotone",defaultSetting:"color.defaultDuotone"}),i=Array.isArray(o),s=i?void 0:Kf(o,r),l="string"==typeof o&&s;let a=null;l?a=s:("string"==typeof o&&!l||i)&&(a=o);const c=n.split(",").map((e=>`.${t}${e.trim()}`)).join(", "),u=Array.isArray(a)||"unset"===a;ys(u?{css:"unset"!==a?Mf(c,t):Tf(c),__unstableType:"presets"}:void 0),ys(u?{assets:"unset"!==a?Pf(t,a):"",__unstableType:"svgs"}:void 0);const d=bh(e);(0,h.useEffect)((()=>{if(u&&d&&$f){const e=d.style.display;d.style.setProperty("display","inline-block"),d.offsetHeight,d.style.setProperty("display",e)}}),[u,d,a])}const Yf={};function Xf(e){return(0,g.useSelect)((t=>{if(!e)return null;const{getBlockName:n,getBlockAttributes:o}=t(ji),{getBlockType:r,getActiveBlockVariation:i}=t(p.store),s=n(e),l=r(s);if(!l)return null;const a=o(e),c=i(s,a),u=(0,p.isReusableBlock)(l)||(0,p.isTemplatePart)(l),d=(u?(0,p.__experimentalGetBlockLabel)(l,a):void 0)||l.title,h=function(e){const t=e?.style?.position?.type;return"sticky"===t?(0,T.__)("Sticky"):"fixed"===t?(0,T.__)("Fixed"):null}(a),g={isSynced:u,title:d,icon:l.icon,description:l.description,anchor:a?.anchor,positionLabel:h,positionType:a?.style?.position?.type,name:a?.metadata?.name};return c?{isSynced:u,title:c.title||l.title,icon:c.icon||l.icon,description:c.description||l.description,anchor:a?.anchor,positionLabel:h,positionType:a?.style?.position?.type,name:a?.metadata?.name}:g}),[e])}(0,f.addFilter)("blocks.registerBlockType","core/editor/duotone/add-attributes",(function(e){return(0,p.hasBlockSupport)(e,"filter.duotone")?(e.attributes.style||Object.assign(e.attributes,{style:{type:"object"}}),e):e}));const Qf="position",Jf={key:"default",value:"",name:(0,T.__)("Default")},eb={key:"sticky",value:"sticky",name:(0,T._x)("Sticky","Name for the value of the CSS position property"),hint:(0,T.__)("The block will stick to the top of the window instead of scrolling.")},tb={key:"fixed",value:"fixed",name:(0,T._x)("Fixed","Name for the value of the CSS position property"),hint:(0,T.__)("The block will not move when the page is scrolled.")},nb=["top","right","bottom","left"],ob=["sticky","fixed"];function rb(e){const t=e?.style?.position?.type;return"sticky"===t||"fixed"===t}function ib({name:e}={}){const[t,n]=Ti("position.fixed","position.sticky"),o=!t&&!n;return r=e,!(0,p.getBlockSupport)(r,Qf)||o;var r}function sb({style:e={},clientId:t,name:n,setAttributes:o}){const r=function(e){const t=(0,p.getBlockSupport)(e,Qf);return!(!0!==t&&!t?.fixed)}(n),i=function(e){const t=(0,p.getBlockSupport)(e,Qf);return!(!0!==t&&!t?.sticky)}(n),s=e?.position?.type,{firstParentClientId:l}=(0,g.useSelect)((e=>{const{getBlockParents:n}=e(ji),o=n(t);return{firstParentClientId:o[o.length-1]}}),[t]),a=Xf(l),c=i&&s===eb.value&&a?(0,T.sprintf)((0,T.__)("The block will stick to the scrollable area of the parent %s block."),a.title):null,u=(0,h.useMemo)((()=>{const e=[Jf];return(i||s===eb.value)&&e.push(eb),(r||s===tb.value)&&e.push(tb),e}),[r,i,s]),m=s&&u.find((e=>e.value===s))||Jf;return h.Platform.select({web:u.length>1?(0,d.jsx)(Fa,{group:"position",children:(0,d.jsx)(ws.BaseControl,{__nextHasNoMarginBottom:!0,help:c,children:(0,d.jsx)(ws.CustomSelectControl,{__next40pxDefaultSize:!0,label:(0,T.__)("Position"),hideLabelFromVision:!0,describedBy:(0,T.sprintf)((0,T.__)("Currently selected position: %s"),m.name),options:u,value:m,onChange:({selectedItem:t})=>{(t=>{const n={...e,position:{...e?.position,type:t,top:"sticky"===t||"fixed"===t?"0px":void 0}};o({style:fs(n)})})(t.value)},size:"__unstable-large"})})}):null,native:null})}var lb={edit:function(e){return ib(e)?null:(0,d.jsx)(sb,{...e})},useBlockProps:function({name:e,style:t}){const n=(0,p.hasBlockSupport)(e,Qf),o=ib({name:e}),r=n&&!o,i=(0,m.useInstanceId)(ab),s=`.wp-container-${i}.wp-container-${i}`;let l;r&&(l=function({selector:e,style:t}){let n="";const{type:o}=t?.position||{};return ob.includes(o)?(n+=`${e} {`,n+=`position: ${o};`,nb.forEach((e=>{void 0!==t?.position?.[e]&&(n+=`${e}: ${t.position[e]};`)})),"sticky"!==o&&"fixed"!==o||(n+="z-index: 10"),n+="}",n):n}({selector:s,style:t})||"");const a=ms({[`wp-container-${i}`]:r&&!!l,[`is-position-${t?.position?.type}`]:r&&!!l&&!!t?.position?.type});return _s({css:l}),{className:a}},attributeKeys:["style"],hasSupport:e=>(0,p.hasBlockSupport)(e,Qf)};const ab={};const cb={button:"wp-element-button",caption:"wp-element-caption"},ub={__experimentalBorder:"border",color:"color",spacing:"spacing",typography:"typography"},{kebabCase:db}=G(ws.privateApis);function pb(e={},t,n){let o=[];return Object.keys(e).forEach((r=>{const i=t+db(r.replace("/","-")),s=e[r];if(s instanceof Object){const e=i+n;o=[...o,...pb(s,e,n)]}else o.push(`${i}: ${s}`)})),o}const hb=(e,t)=>{const n={};return Object.entries(e).forEach((([e,o])=>{if("root"===e||!t?.[e])return;const r="string"==typeof o;if(r||Object.entries(o).forEach((([o,r])=>{if("root"===o||!t?.[e][o])return;const i=gb({[e]:{[o]:t[e][o]}});n[r]=[...n[r]||[],...i],delete t[e][o]})),r||o.root){const i=r?o:o.root,s=gb({[e]:t[e]});n[i]=[...n[i]||[],...s],delete t[e]}})),n};function gb(e={},t="",n,o={},r=!1){const i=qi===t,s=Object.entries(p.__EXPERIMENTAL_STYLE_PROPERTY).reduce(((t,[o,{value:r,properties:s,useEngine:l,rootOnly:a}])=>{if(a&&!i)return t;const c=r;if("elements"===c[0]||l)return t;const u=fe(e,c);if("--wp--style--root--padding"===o&&("string"==typeof u||!n))return t;if(s&&"string"!=typeof u)Object.entries(s).forEach((e=>{const[n,o]=e;if(!fe(u,[o],!1))return;const r=n.startsWith("--")?n:db(n);t.push(`${r}: ${(0,Pi.getCSSValueFromRawStyle)(fe(u,[o]))}`)}));else if(fe(e,c,!1)){const n=o.startsWith("--")?o:db(o);t.push(`${n}: ${(0,Pi.getCSSValueFromRawStyle)(fe(e,c))}`)}return t}),[]);e.background&&(e.background?.backgroundImage&&(e.background.backgroundImage=rs(e.background.backgroundImage,o)),!i&&e.background?.backgroundImage?.id&&(e={...e,background:{...e.background,...Au(e.background)}}));return(0,Pi.getCSSRules)(e).forEach((e=>{if(i&&(n||r)&&e.key.startsWith("padding"))return;const t=e.key.startsWith("--")?e.key:db(e.key);let l=rs(e.value,o);"font-size"===t&&(l=Wi({size:l},o?.settings)),"aspect-ratio"===t&&s.push("min-height: unset"),s.push(`${t}: ${l}`)})),s}function mb({layoutDefinitions:e=Fs,style:t,selector:n,hasBlockGapSupport:o,hasFallbackGapSupport:r,fallbackGapValue:i}){let s="",l=o?ul(t?.spacing?.blockGap):"";if(r&&(n===qi?l=l||"0.5em":!o&&i&&(l=i)),l&&e&&(Object.values(e).forEach((({className:e,name:t,spacingStyles:r})=>{(o||"flex"===t||"grid"===t)&&r?.length&&r.forEach((t=>{const r=[];if(t.rules&&Object.entries(t.rules).forEach((([e,t])=>{r.push(`${e}: ${t||l}`)})),r.length){let i="";i=o?n===qi?`:root :where(.${e})${t?.selector||""}`:`:root :where(${n}-${e})${t?.selector||""}`:n===qi?`:where(.${e}${t?.selector||""})`:`:where(${n}.${e}${t?.selector||""})`,s+=`${i} { ${r.join("; ")}; }`}}))})),n===qi&&o&&(s+=`${Yi} { --wp--style--block-gap: ${l}; }`)),n===qi&&e){const t=["block","flex","grid"];Object.values(e).forEach((({className:e,displayMode:o,baseStyles:r})=>{o&&t.includes(o)&&(s+=`${n} .${e} { display:${o}; }`),r?.length&&r.forEach((t=>{const n=[];if(t.rules&&Object.entries(t.rules).forEach((([e,t])=>{n.push(`${e}: ${t}`)})),n.length){s+=`${`.${e}${t?.selector||""}`} { ${n.join("; ")}; }`}}))}))}return s}const fb=["border","color","dimensions","spacing","typography","filter","outline","shadow","background"];function bb(e){if(!e)return{};const t=Object.entries(e).filter((([e])=>fb.includes(e))).map((([e,t])=>[e,JSON.parse(JSON.stringify(t))]));return Object.fromEntries(t)}const kb=(e,t)=>{const n=[];if(!e?.styles)return n;const o=bb(e.styles);return o&&n.push({styles:o,selector:qi,skipSelectorWrapper:!0}),Object.entries(p.__EXPERIMENTAL_ELEMENTS).forEach((([t,o])=>{e.styles?.elements?.[t]&&n.push({styles:e.styles?.elements?.[t],selector:o,skipSelectorWrapper:!cb[t]})})),Object.entries(e.styles?.blocks??{}).forEach((([e,o])=>{const r=bb(o);if(o?.variations){const i={};Object.entries(o.variations).forEach((([o,r])=>{i[o]=bb(r),r?.css&&(i[o].css=r.css);const s=t[e]?.styleVariationSelectors?.[o];Object.entries(r?.elements??{}).forEach((([e,t])=>{t&&p.__EXPERIMENTAL_ELEMENTS[e]&&n.push({styles:t,selector:ns(s,p.__EXPERIMENTAL_ELEMENTS[e])})})),Object.entries(r?.blocks??{}).forEach((([e,o])=>{const r=ns(s,t[e]?.selector),i=ns(s,t[e]?.duotoneSelector),l=function(e,t){if(!e||!t)return;const n={};return Object.entries(t).forEach((([t,o])=>{"string"==typeof o&&(n[t]=ns(e,o)),"object"==typeof o&&(n[t]={},Object.entries(o).forEach((([o,r])=>{n[t][o]=ns(e,r)})))})),n}(s,t[e]?.featureSelectors),a=bb(o);o?.css&&(a.css=o.css),n.push({selector:r,duotoneSelector:i,featureSelectors:l,fallbackGapValue:t[e]?.fallbackGapValue,hasLayoutSupport:t[e]?.hasLayoutSupport,styles:a}),Object.entries(o.elements??{}).forEach((([e,t])=>{t&&p.__EXPERIMENTAL_ELEMENTS[e]&&n.push({styles:t,selector:ns(r,p.__EXPERIMENTAL_ELEMENTS[e])})}))}))})),r.variations=i}t?.[e]?.selector&&n.push({duotoneSelector:t[e].duotoneSelector,fallbackGapValue:t[e].fallbackGapValue,hasLayoutSupport:t[e].hasLayoutSupport,selector:t[e].selector,styles:r,featureSelectors:t[e].featureSelectors,styleVariationSelectors:t[e].styleVariationSelectors}),Object.entries(o?.elements??{}).forEach((([o,r])=>{r&&t?.[e]&&p.__EXPERIMENTAL_ELEMENTS[o]&&n.push({styles:r,selector:t[e]?.selector.split(",").map((e=>p.__EXPERIMENTAL_ELEMENTS[o].split(",").map((t=>e+" "+t)))).join(",")})}))})),n},vb=(e,t)=>{const n=[];if(!e?.settings)return n;const o=e=>{let t={};return Xi.forEach((({path:n})=>{const o=fe(e,n,!1);!1!==o&&(t=me(t,n,o))})),t},r=o(e.settings),i=e.settings?.custom;return(Object.keys(r).length>0||i)&&n.push({presets:r,custom:i,selector:Yi}),Object.entries(e.settings?.blocks??{}).forEach((([e,r])=>{const i=o(r),s=r.custom;(Object.keys(i).length>0||s)&&n.push({presets:i,custom:s,selector:t[e]?.selector})})),n},_b=(e,t)=>{const n=vb(e,t);let o="";return n.forEach((({presets:t,custom:n,selector:r})=>{const i=function(e={},t){return Xi.reduce(((n,{path:o,valueKey:r,valueFunc:i,cssVarInfix:s})=>{const l=fe(e,o,[]);return["default","theme","custom"].forEach((e=>{l[e]&&l[e].forEach((e=>{r&&!i?n.push(`--wp--preset--${s}--${db(e.slug)}: ${e[r]}`):i&&"function"==typeof i&&n.push(`--wp--preset--${s}--${db(e.slug)}: ${i(e,t)}`)}))})),n}),[])}(t,e?.settings),s=pb(n,"--wp--custom--","--");s.length>0&&i.push(...s),i.length>0&&(o+=`${r}{${i.join(";")};}`)})),o},yb=(e,t,n,o,r=!1,i=!1,s=void 0)=>{const l={blockGap:!0,blockStyles:!0,layoutStyles:!0,marginReset:!0,presets:!0,rootPadding:!0,variationStyles:!1,...s},a=kb(e,t),c=vb(e,t),u=e?.settings?.useRootPaddingAwareAlignments,{contentSize:d,wideSize:p}=e?.settings?.layout||{},h=l.marginReset||l.rootPadding||l.layoutStyles;let g="";if(l.presets&&(d||p)&&(g+=`${Yi} {`,g=d?g+` --wp--style--global--content-size: ${d};`:g,g=p?g+` --wp--style--global--wide-size: ${p};`:g,g+="}"),h&&(g+=":where(body) {margin: 0;",l.rootPadding&&u&&(g+="padding-right: 0; padding-left: 0; padding-top: var(--wp--style--root--padding-top); padding-bottom: var(--wp--style--root--padding-bottom) }\n\t\t\t\t.has-global-padding { padding-right: var(--wp--style--root--padding-right); padding-left: var(--wp--style--root--padding-left); }\n\t\t\t\t.has-global-padding > .alignfull { margin-right: calc(var(--wp--style--root--padding-right) * -1); margin-left: calc(var(--wp--style--root--padding-left) * -1); }\n\t\t\t\t.has-global-padding :where(:not(.alignfull.is-layout-flow) > .has-global-padding:not(.wp-block-block, .alignfull)) { padding-right: 0; padding-left: 0; }\n\t\t\t\t.has-global-padding :where(:not(.alignfull.is-layout-flow) > .has-global-padding:not(.wp-block-block, .alignfull)) > .alignfull { margin-left: 0; margin-right: 0;\n\t\t\t\t"),g+="}"),l.blockStyles&&a.forEach((({selector:t,duotoneSelector:s,styles:a,fallbackGapValue:c,hasLayoutSupport:d,featureSelectors:p,styleVariationSelectors:h,skipSelectorWrapper:m})=>{if(p){const e=hb(p,a);Object.entries(e).forEach((([e,t])=>{if(t.length){const n=t.join(";");g+=`:root :where(${e}){${n};}`}}))}if(s){const e={};a?.filter&&(e.filter=a.filter,delete a.filter);const t=gb(e);t.length&&(g+=`${s}{${t.join(";")};}`)}r||qi!==t&&!d||(g+=mb({style:a,selector:t,hasBlockGapSupport:n,hasFallbackGapSupport:o,fallbackGapValue:c}));const f=gb(a,t,u,e,i);if(f?.length){g+=`${m?t:`:root :where(${t})`}{${f.join(";")};}`}a?.css&&(g+=wb(a.css,`:root :where(${t})`)),l.variationStyles&&h&&Object.entries(h).forEach((([t,n])=>{const o=a?.variations?.[t];if(o){if(p){const e=hb(p,o);Object.entries(e).forEach((([e,t])=>{if(t.length){const o=function(e,t){const n=e.split(","),o=[];return n.forEach((e=>{o.push(`${t.trim()}${e.trim()}`)})),o.join(", ")}(e,n),r=t.join(";");g+=`:root :where(${o}){${r};}`}}))}const t=gb(o,n,u,e);t.length&&(g+=`:root :where(${n}){${t.join(";")};}`),o?.css&&(g+=wb(o.css,`:root :where(${n})`))}}));const b=Object.entries(a).filter((([e])=>e.startsWith(":")));b?.length&&b.forEach((([e,n])=>{const o=gb(n);if(!o?.length)return;const r=`:root :where(${t.split(",").map((t=>t+e)).join(",")}){${o.join(";")};}`;g+=r}))})),l.layoutStyles&&(g+=".wp-site-blocks > .alignleft { float: left; margin-right: 2em; }",g+=".wp-site-blocks > .alignright { float: right; margin-left: 2em; }",g+=".wp-site-blocks > .aligncenter { justify-content: center; margin-left: auto; margin-right: auto; }"),l.blockGap&&n){const t=ul(e?.styles?.spacing?.blockGap)||"0.5em";g+=`:root :where(.wp-site-blocks) > * { margin-block-start: ${t}; margin-block-end: 0; }`,g+=":root :where(.wp-site-blocks) > :first-child { margin-block-start: 0; }",g+=":root :where(.wp-site-blocks) > :last-child { margin-block-end: 0; }"}return l.presets&&c.forEach((({selector:e,presets:t})=>{qi!==e&&Yi!==e||(e="");const n=function(e="*",t={}){return Xi.reduce(((n,{path:o,cssVarInfix:r,classes:i})=>{if(!i)return n;const s=fe(t,o,[]);return["default","theme","custom"].forEach((t=>{s[t]&&s[t].forEach((({slug:t})=>{i.forEach((({classSuffix:o,propertyName:i})=>{const s=`.has-${db(t)}-${o}`,l=e.split(",").map((e=>`${e}${s}`)).join(","),a=`var(--wp--preset--${r}--${db(t)})`;n+=`${l}{${i}: ${a} !important;}`}))}))})),n}),"")}(e,t);n.length>0&&(g+=n)})),g};function xb(e,t){return vb(e,t).flatMap((({presets:e})=>function(e={}){return Xi.filter((e=>"duotone"===e.path.at(-1))).flatMap((t=>{const n=fe(e,t.path,{});return["default","theme"].filter((e=>n[e])).flatMap((e=>n[e].map((e=>Pf(`wp-duotone-${e.slug}`,e.colors))))).join("")}))}(e)))}const Sb=(e,t,n)=>{const o={};return e.forEach((e=>{const r=e.name,i=Rf(e);let s=Rf(e,"filter.duotone");if(!s){const t=Rf(e),n=(0,p.getBlockSupport)(e,"color.__experimentalDuotone",!1);s=n&&ns(t,n)}const l=!!e?.supports?.layout||!!e?.supports?.__experimentalLayout,a=e?.supports?.spacing?.blockGap?.__experimentalDefault,c=t(r),u={};c?.forEach((e=>{const t=n?`-${n}`:"",o=`${e.name}${t}`,r=function(e,t){const n=`.is-style-${e}`;if(!t)return n;const o=/((?::\([^)]+\))?\s*)([^\s:]+)/,r=(e,t,o)=>t+o+n;return t.split(",").map((e=>e.replace(o,r))).join(",")}(o,i);u[o]=r}));const d=((e,t)=>{if(e?.selectors&&Object.keys(e.selectors).length>0)return e.selectors;const n={root:t};return Object.entries(ub).forEach((([t,o])=>{const r=Rf(e,t);r&&(n[o]=r)})),n})(e,i);o[r]={duotoneSelector:s,fallbackGapValue:a,featureSelectors:Object.keys(d).length?d:void 0,hasLayoutSupport:l,name:r,selector:i,styleVariationSelectors:c?.length?u:void 0}})),o};function wb(e,t){let n="";if(!e||""===e.trim())return n;return e.split("&").forEach((e=>{if(!e||""===e.trim())return;if(!e.includes("{"))n+=`:root :where(${t}){${e.trim()}}`;else{const o=e.replace("}","").split("{");if(2!==o.length)return;const[r,i]=o,s=r.match(/([>+~\s]*::[a-zA-Z-]+)/),l=s?s[1]:"",a=s?r.replace(l,"").trim():r.trim();let c;c=""===a?t:r.startsWith(" ")?ns(t,a):function(e,t){return e.includes(",")?e.split(",").map((e=>e+t)).join(","):e+t}(t,a),n+=`:root :where(${c})${l}{${i.trim()}}`}})),n}function Cb(e={},t){const[n]=cs("spacing.blockGap"),o=null!==n,r=!o,i=(0,g.useSelect)((e=>{const{getSettings:t}=e(ji);return!!t().disableLayoutStyles})),{getBlockStyles:s}=(0,g.useSelect)(p.store);return(0,h.useMemo)((()=>{if(!e?.styles||!e?.settings)return[];const n=(l=e,l.styles?.blocks?.["core/separator"]&&l.styles?.blocks?.["core/separator"].color?.background&&!l.styles?.blocks?.["core/separator"].color?.text&&!l.styles?.blocks?.["core/separator"].border?.color?{...l,styles:{...l.styles,blocks:{...l.styles.blocks,"core/separator":{...l.styles.blocks["core/separator"],color:{...l.styles.blocks["core/separator"].color,text:l.styles?.blocks["core/separator"].color.background}}}}}:l);var l;const a=Sb((0,p.getBlockTypes)(),s),c=_b(n,a),u=yb(n,a,o,r,i,t),d=xb(n,a),h=[{css:c,isGlobalStyles:!0},{css:u,isGlobalStyles:!0},{css:n.styles.css??"",isGlobalStyles:!0},{assets:d,__unstableType:"svg",isGlobalStyles:!0}];return(0,p.getBlockTypes)().forEach((e=>{if(n.styles.blocks[e.name]?.css){const t=a[e.name].selector;h.push({css:wb(n.styles.blocks[e.name]?.css,t),isGlobalStyles:!0})}})),[h,n.settings]}),[o,r,e,i,t,s])}function Bb(e=!1){const{merged:t}=(0,h.useContext)(is);return Cb(t,e)}const Ib="is-style-";function jb(e){return e?e.split(/\s+/).reduce(((e,t)=>{if(t.startsWith(Ib)){const n=t.slice(9);"default"!==n&&e.push(n)}return e}),[]):[]}function Eb({override:e}){ys(e)}function Tb(e,t,n){if(!e?.styles?.blocks?.[t]?.variations?.[n])return;const o=t=>{Object.keys(t).forEach((n=>{const r=t[n];if("object"==typeof r&&null!==r)if(void 0!==r.ref)if("string"!=typeof r.ref||""===r.ref.trim())delete t[n];else{const o=fe(e,r.ref);o?t[n]=o:delete t[n]}else o(r),0===Object.keys(r).length&&delete t[n]}))},r=JSON.parse(JSON.stringify(e.styles.blocks[t].variations[n]));return o(r),r}var Mb={hasSupport:()=>!0,attributeKeys:["className"],isMatch:({className:e})=>jb(e).length>0,useBlockProps:function({name:e,className:t,clientId:n}){const{getBlockStyles:o}=(0,g.useSelect)(p.store),r=function(e,t=[]){const n=jb(e);if(!n)return null;for(const e of n)if(t.some((t=>t.name===e)))return e;return null}(t,o(e)),i=`${Ib}${r}-${n}`,{settings:s,styles:l}=function(e,t,n){const{merged:o}=(0,h.useContext)(is),{globalSettings:r,globalStyles:i}=(0,g.useSelect)((e=>{const t=e(ji).getSettings();return{globalSettings:t.__experimentalFeatures,globalStyles:t[N]}}),[]);return(0,h.useMemo)((()=>{const s=Tb({settings:o?.settings??r,styles:o?.styles??i},e,t);return{settings:o?.settings??r,styles:{blocks:{[e]:{variations:{[`${t}-${n}`]:s}}}}}}),[o,r,i,t,n,e])}(e,r,n),a=(0,h.useMemo)((()=>{if(!r)return;const e={settings:s,styles:l},t=Sb((0,p.getBlockTypes)(),o,n);return yb(e,t,!1,!0,!0,!0,{blockGap:!1,blockStyles:!0,layoutStyles:!1,marginReset:!1,presets:!1,rootPadding:!1,variationStyles:!0})}),[r,s,l,o,n]);return ys({id:`variation-${n}`,css:a,__unstableType:"variation",variation:r,clientId:n}),r?{className:i}:{}}};const Pb="layout",{kebabCase:Rb}=G(ws.privateApis);function Ab(e){return(0,p.hasBlockSupport)(e,"layout")||(0,p.hasBlockSupport)(e,"__experimentalLayout")}function Nb(e={},t=""){const{layout:n}=e,{default:o}=(0,p.getBlockSupport)(t,Pb)||{},r=n?.inherit||n?.contentSize||n?.wideSize?{...n,type:"constrained"}:n||o||{},i=[];if(Fs[r?.type||"default"]?.className){const e=Fs[r?.type||"default"]?.className,n=t.split("/"),o=`wp-block-${"core"===n[0]?n.pop():n.join("-")}-${e}`;i.push(e,o)}return(0,g.useSelect)((e=>(r?.inherit||r?.contentSize||"constrained"===r?.type)&&e(ji).getSettings().__experimentalFeatures?.useRootPaddingAwareAlignments),[r?.contentSize,r?.inherit,r?.type])&&i.push("has-global-padding"),r?.orientation&&i.push(`is-${Rb(r.orientation)}`),r?.justifyContent&&i.push(`is-content-justification-${Rb(r.justifyContent)}`),r?.flexWrap&&"nowrap"===r.flexWrap&&i.push("is-nowrap"),i}var Lb={shareWithChildBlocks:!0,edit:function({layout:e,setAttributes:t,name:n,clientId:o}){const r=xs(n),{layout:i}=r,{themeSupportsLayout:s}=(0,g.useSelect)((e=>{const{getSettings:t}=e(ji);return{themeSupportsLayout:t().supportsLayout}}),[]);if("default"!==ga())return null;const l=(0,p.getBlockSupport)(n,Pb,{}),a={...i,...l},{allowSwitching:c,allowEditing:u=!0,allowInheriting:h=!0,default:m}=a;if(!u)return null;const f={...l,...e},{type:b,default:{type:k="default"}={}}=f,v=b||k,_=!(!h||v&&"default"!==v&&"constrained"!==v&&!f.inherit),y=e||m||{},{inherit:x=!1,contentSize:S=null}=y;if(("default"===v||"constrained"===v)&&!s)return null;const w=Xl(v),C=Xl("constrained"),B=!y.type&&(S||x),I=!!x||!!S,j=e=>t({layout:e});return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(Fa,{children:(0,d.jsxs)(ws.PanelBody,{title:(0,T.__)("Layout"),children:[_&&(0,d.jsx)(d.Fragment,{children:(0,d.jsx)(ws.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,T.__)("Inner blocks use content width"),checked:"constrained"===w?.name||I,onChange:()=>t({layout:{type:"constrained"===w?.name||I?"default":"constrained"}}),help:"constrained"===w?.name||I?(0,T.__)("Nested blocks use content width with options for full and wide widths."):(0,T.__)("Nested blocks will fill the width of this container.")})}),!x&&c&&(0,d.jsx)(Db,{type:v,onChange:e=>t({layout:{type:e}})}),w&&"default"!==w.name&&(0,d.jsx)(w.inspectorControls,{layout:y,onChange:j,layoutBlockSupport:a,name:n,clientId:o}),C&&B&&(0,d.jsx)(C.inspectorControls,{layout:y,onChange:j,layoutBlockSupport:a,name:n,clientId:o})]})}),!x&&w&&(0,d.jsx)(w.toolBarControls,{layout:y,onChange:j,layoutBlockSupport:l,name:n,clientId:o})]})},attributeKeys:["layout"],hasSupport:e=>Ab(e)};function Db({type:e,onChange:t}){return(0,d.jsx)(ws.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,isBlock:!0,label:(0,T.__)("Layout type"),__nextHasNoMarginBottom:!0,hideLabelFromVision:!0,isAdaptiveWidth:!0,value:e,onChange:t,children:Yl.map((({name:e,label:t})=>(0,d.jsx)(ws.__experimentalToggleGroupControlOption,{value:e,label:t},e)))})}function Ob({block:e,props:t,blockGapSupport:n,layoutClasses:o}){const{name:r,attributes:i}=t,s=(0,m.useInstanceId)(e),{layout:l}=i,{default:a}=(0,p.getBlockSupport)(r,Pb)||{},c=l?.inherit||l?.contentSize||l?.wideSize?{...l,type:"constrained"}:l||a||{},u=`wp-container-${Rb(r)}-is-layout-`,h=`.${u}${s}`,g=null!==n,f=Xl(c?.type||"default"),b=f?.getLayoutStyle?.({blockName:r,selector:h,layout:c,style:i?.style,hasBlockGapSupport:g}),k=ms({[`${u}${s}`]:!!b},o);return _s({css:b}),(0,d.jsx)(e,{...t,__unstableLayoutClassNames:k})}const zb=(0,m.createHigherOrderComponent)((e=>t=>{const{clientId:n,name:o,attributes:r}=t,i=Ab(o),s=Nb(r,o),l=(0,g.useSelect)((e=>{if(!i)return;const{getSettings:t,getBlockSettings:o}=G(e(ji)),{disableLayoutStyles:r}=t();if(r)return;const[s]=o(n,"spacing.blockGap");return{blockGapSupport:s}}),[i,n]);return l?(0,d.jsx)(Ob,{block:e,props:t,layoutClasses:s,...l}):(0,d.jsx)(e,{...t,__unstableLayoutClassNames:i?s:void 0})}),"withLayoutStyles");function Vb(e,t){return Array.from({length:t},((t,n)=>e+n))}(0,f.addFilter)("blocks.registerBlockType","core/layout/addAttribute",(function(e){return"type"in(e.attributes?.layout??{})||Ab(e)&&(e.attributes={...e.attributes,layout:{type:"object"}}),e})),(0,f.addFilter)("editor.BlockListBlock","core/editor/layout/with-layout-styles",zb);class Fb{constructor({columnStart:e,rowStart:t,columnEnd:n,rowEnd:o,columnSpan:r,rowSpan:i}={}){this.columnStart=e??1,this.rowStart=t??1,this.columnEnd=void 0!==r?this.columnStart+r-1:n??this.columnStart,this.rowEnd=void 0!==i?this.rowStart+i-1:o??this.rowStart}get columnSpan(){return this.columnEnd-this.columnStart+1}get rowSpan(){return this.rowEnd-this.rowStart+1}contains(e,t){return e>=this.columnStart&&e<=this.columnEnd&&t>=this.rowStart&&t<=this.rowEnd}containsRect(e){return this.contains(e.columnStart,e.rowStart)&&this.contains(e.columnEnd,e.rowEnd)}intersectsRect(e){return this.columnStart<=e.columnEnd&&this.columnEnd>=e.columnStart&&this.rowStart<=e.rowEnd&&this.rowEnd>=e.rowStart}}function Hb(e,t){return e.ownerDocument.defaultView.getComputedStyle(e).getPropertyValue(t)}function Ub(e,t){const n=[];for(const o of e.split(" ")){const e=n[n.length-1],r=e?e.end+t:0,i=r+parseFloat(o);n.push({start:r,end:i})}return n}function Gb(e,t,n="start"){return e.reduce(((o,r,i)=>Math.abs(r[n]-t)<Math.abs(e[o][n]-t)?i:o),0)}function $b(e){const t=Hb(e,"grid-template-columns"),n=Hb(e,"grid-template-rows"),o=Hb(e,"border-top-width"),r=Hb(e,"border-right-width"),i=Hb(e,"border-bottom-width"),s=Hb(e,"border-left-width"),l=Hb(e,"padding-top"),a=Hb(e,"padding-right"),c=Hb(e,"padding-bottom"),u=Hb(e,"padding-left"),d=t.split(" ").length,p=n.split(" ").length;return{numColumns:d,numRows:p,numItems:d*p,currentColor:Hb(e,"color"),style:{gridTemplateColumns:t,gridTemplateRows:n,gap:Hb(e,"gap"),inset:`\n\t\t\t\tcalc(${l} + ${o})\n\t\t\t\tcalc(${a} + ${r})\n\t\t\t\tcalc(${c} + ${i})\n\t\t\t\tcalc(${u} + ${s})\n\t\t\t`}}}const Wb=[(0,h.createInterpolateElement)((0,T.__)("While writing, you can press <kbd>/</kbd> to quickly insert new blocks."),{kbd:(0,d.jsx)("kbd",{})}),(0,h.createInterpolateElement)((0,T.__)("Indent a list by pressing <kbd>space</kbd> at the beginning of a line."),{kbd:(0,d.jsx)("kbd",{})}),(0,h.createInterpolateElement)((0,T.__)("Outdent a list by pressing <kbd>backspace</kbd> at the beginning of a line."),{kbd:(0,d.jsx)("kbd",{})}),(0,T.__)("Drag files into the editor to automatically insert media blocks."),(0,T.__)("Change a block's type by pressing the block icon on the toolbar.")];var Kb=function(){const[e]=(0,h.useState)(Math.floor(Math.random()*Wb.length));return(0,d.jsx)(ws.Tip,{children:Wb[e]})},Zb=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"})}),qb=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"})});const{Badge:Yb}=G(ws.privateApis);var Xb=function({title:e,icon:t,description:n,blockType:o,className:r,name:i,allowParentNavigation:s,children:l}){o&&(I()("`blockType` property in `BlockCard component`",{since:"5.7",alternative:"`title, icon and description` properties"}),({title:e,icon:t,description:n}=o));const a=(0,g.useSelect)((e=>{if(!s)return;const{getSelectedBlockClientId:t,getBlockParentsByBlockName:n}=e(ji);return n(t(),"core/navigation",!0)[0]}),[s]),{selectBlock:c}=(0,g.useDispatch)(ji);return(0,d.jsxs)("div",{className:ms("block-editor-block-card",r),children:[s&&a&&(0,d.jsx)(ws.Button,{onClick:()=>c(a),label:(0,T.__)("Go to parent Navigation block"),style:{minWidth:24,padding:0},icon:(0,T.isRTL)()?Zb:qb,size:"small"}),(0,d.jsx)(Vu,{icon:t,showColors:!0}),(0,d.jsxs)(ws.__experimentalVStack,{spacing:1,children:[(0,d.jsxs)("h2",{className:"block-editor-block-card__title",children:[(0,d.jsx)("span",{className:"block-editor-block-card__name",children:i?.length?i:e}),!!i?.length&&(0,d.jsx)(Yb,{children:e})]}),n&&(0,d.jsx)(ws.__experimentalText,{className:"block-editor-block-card__description",children:n}),l]})]})},Qb=(e=>(e.Unknown="REDUX_UNKNOWN",e.Add="ADD_ITEM",e.Prepare="PREPARE_ITEM",e.Cancel="CANCEL_ITEM",e.Remove="REMOVE_ITEM",e.PauseItem="PAUSE_ITEM",e.ResumeItem="RESUME_ITEM",e.PauseQueue="PAUSE_QUEUE",e.ResumeQueue="RESUME_QUEUE",e.OperationStart="OPERATION_START",e.OperationFinish="OPERATION_FINISH",e.AddOperations="ADD_OPERATIONS",e.CacheBlobUrl="CACHE_BLOB_URL",e.RevokeBlobUrls="REVOKE_BLOB_URLS",e.UpdateSettings="UPDATE_SETTINGS",e))(Qb||{}),Jb=(e=>(e.Processing="PROCESSING",e.Paused="PAUSED",e))(Jb||{}),ek=(e=>(e.Prepare="PREPARE",e.Upload="UPLOAD",e))(ek||{});const tk={queue:[],queueStatus:"active",blobUrls:{},settings:{mediaUpload:()=>{}}};var nk=function(e=tk,t={type:Qb.Unknown}){switch(t.type){case Qb.PauseQueue:return{...e,queueStatus:"paused"};case Qb.ResumeQueue:return{...e,queueStatus:"active"};case Qb.Add:return{...e,queue:[...e.queue,t.item]};case Qb.Cancel:return{...e,queue:e.queue.map((e=>e.id===t.id?{...e,error:t.error}:e))};case Qb.Remove:return{...e,queue:e.queue.filter((e=>e.id!==t.id))};case Qb.OperationStart:return{...e,queue:e.queue.map((e=>e.id===t.id?{...e,currentOperation:t.operation}:e))};case Qb.AddOperations:return{...e,queue:e.queue.map((e=>e.id!==t.id?e:{...e,operations:[...e.operations||[],...t.operations]}))};case Qb.OperationFinish:return{...e,queue:e.queue.map((e=>{if(e.id!==t.id)return e;const n=e.operations?e.operations.slice(1):[],o=e.attachment||t.item.attachment?{...e.attachment,...t.item.attachment}:void 0;return{...e,currentOperation:void 0,operations:n,...t.item,attachment:o,additionalData:{...e.additionalData,...t.item.additionalData}}}))};case Qb.CacheBlobUrl:{const n=e.blobUrls[t.id]||[];return{...e,blobUrls:{...e.blobUrls,[t.id]:[...n,t.blobUrl]}}}case Qb.RevokeBlobUrls:{const n={...e.blobUrls};return delete n[t.id],{...e,blobUrls:n}}case Qb.UpdateSettings:return{...e,settings:{...e.settings,...t.settings}}}return e};function ok(e){return e.queue}function rk(e){return e.queue.length>=1}function ik(e,t){return e.queue.some((e=>e.attachment?.url===t||e.sourceUrl===t))}function sk(e,t){return e.queue.some((e=>e.attachment?.id===t||e.sourceAttachmentId===t))}function lk(e){return e.settings}function ak(e){return e.queue}function ck(e,t){return e.queue.find((e=>e.id===t))}function uk(e,t){return 0===e.queue.filter((e=>t===e.batchId)).length}function dk(e,t){return e.queue.some((e=>e.currentOperation===ek.Upload&&e.additionalData.post===t))}function pk(e,t){return e.queue.find((e=>e.status===Jb.Paused&&e.additionalData.post===t))}function hk(e){return"paused"===e.queueStatus}function gk(e,t){return e.blobUrls[t]||[]}const mk={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let fk;const bk=new Uint8Array(16);function kk(){if(!fk&&(fk="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!fk))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return fk(bk)}const vk=[];for(let e=0;e<256;++e)vk.push((e+256).toString(16).slice(1));function _k(e,t=0){return vk[e[t+0]]+vk[e[t+1]]+vk[e[t+2]]+vk[e[t+3]]+"-"+vk[e[t+4]]+vk[e[t+5]]+"-"+vk[e[t+6]]+vk[e[t+7]]+"-"+vk[e[t+8]]+vk[e[t+9]]+"-"+vk[e[t+10]]+vk[e[t+11]]+vk[e[t+12]]+vk[e[t+13]]+vk[e[t+14]]+vk[e[t+15]]}const yk=function(e,t,n){if(mk.randomUUID&&!t&&!e)return mk.randomUUID();const o=(e=e||{}).random||(e.rng||kk)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=o[e];return t}return _k(o)};class xk extends Error{code;file;constructor({code:e,message:t,file:n,cause:o}){super(t,{cause:o}),Object.setPrototypeOf(this,new.target.prototype),this.code=e,this.file=n}}function Sk(e,t){if(!t)return;const n=t.some((t=>t.includes("/")?t===e.type:e.type.startsWith(`${t}/`)));if(e.type&&!n)throw new xk({code:"MIME_TYPE_NOT_SUPPORTED",message:(0,T.sprintf)((0,T.__)("%s: Sorry, this file type is not supported here."),e.name),file:e})}function wk(e,t){const n=(o=t)?Object.entries(o).flatMap((([e,t])=>{const[n]=t.split("/");return[t,...e.split("|").map((e=>`${n}/${e}`))]})):null;var o;if(!n)return;const r=n.includes(e.type);if(e.type&&!r)throw new xk({code:"MIME_TYPE_NOT_ALLOWED_FOR_USER",message:(0,T.sprintf)((0,T.__)("%s: Sorry, you are not allowed to upload this file type."),e.name),file:e})}function Ck(e,t){if(e.size<=0)throw new xk({code:"EMPTY_FILE",message:(0,T.sprintf)((0,T.__)("%s: This file is empty."),e.name),file:e});if(t&&e.size>t)throw new xk({code:"SIZE_ABOVE_LIMIT",message:(0,T.sprintf)((0,T.__)("%s: This file exceeds the maximum upload size for this site."),e.name),file:e})}function Bk({files:e,onChange:t,onSuccess:n,onError:o,onBatchSuccess:r,additionalData:i,allowedTypes:s}){return async({select:l,dispatch:a})=>{const c=yk();for(const u of e){try{Sk(u,s),wk(u,l.getSettings().allowedMimeTypes)}catch(e){o?.(e);continue}try{Ck(u,l.getSettings().maxUploadFileSize)}catch(e){o?.(e);continue}a.addItem({file:u,batchId:c,onChange:t,onSuccess:n,onBatchSuccess:r,onError:o,additionalData:i})}}}function Ik(e,t,n=!1){return async({select:o,dispatch:r})=>{const i=o.getItem(e);if(i){if(i.abortController?.abort(),!n){const{onError:e}=i;e?.(t??new Error("Upload cancelled")),!e&&t&&console.error("Upload cancelled",t)}r({type:Qb.Cancel,id:e,error:t}),r.removeItem(e),r.revokeBlobUrls(e),i.batchId&&o.isBatchUploaded(i.batchId)&&i.onBatchSuccess?.()}}}function jk(e){return function(e,t){return new File([e],t,{type:e.type,lastModified:e.lastModified})}(e,e.name)}class Ek extends File{constructor(e="stub-file"){super([],e)}}function Tk({file:e,batchId:t,onChange:n,onSuccess:o,onBatchSuccess:r,onError:i,additionalData:s={},sourceUrl:l,sourceAttachmentId:a,abortController:c,operations:u}){return async({dispatch:d})=>{const p=yk(),h=function(e){if(e instanceof File)return e;const t=e.type.split("/")[1],n="application/pdf"===e.type?"document":e.type.split("/")[0];return new File([e],`${n}.${t}`,{type:e.type})}(e);let g;h instanceof Ek||(g=(0,$a.createBlobURL)(h),d({type:Qb.CacheBlobUrl,id:p,blobUrl:g})),d({type:Qb.Add,item:{id:p,batchId:t,status:Jb.Processing,sourceFile:jk(h),file:h,attachment:{url:g},additionalData:{convert_format:!1,...s},onChange:n,onSuccess:o,onBatchSuccess:r,onError:i,sourceUrl:l,sourceAttachmentId:a,abortController:c||new AbortController,operations:Array.isArray(u)?u:[ek.Prepare]}}),d.processItem(p)}}function Mk(e){return async({select:t,dispatch:n})=>{if(t.isPaused())return;const o=t.getItem(e),{attachment:r,onChange:i,onSuccess:s,onBatchSuccess:l,batchId:a}=o,c=Array.isArray(o.operations?.[0])?o.operations[0][0]:o.operations?.[0];if(r&&i?.([r]),!c)return r&&s?.([r]),n.revokeBlobUrls(e),void(a&&t.isBatchUploaded(a)&&l?.());if(c)switch(n({type:Qb.OperationStart,id:e,operation:c}),c){case ek.Prepare:n.prepareItem(o.id);break;case ek.Upload:n.uploadItem(e)}}}function Pk(){return{type:Qb.PauseQueue}}function Rk(){return async({select:e,dispatch:t})=>{t({type:Qb.ResumeQueue});for(const n of e.getAllItems())t.processItem(n.id)}}function Ak(e){return async({select:t,dispatch:n})=>{t.getItem(e)&&n({type:Qb.Remove,id:e})}}function Nk(e,t){return async({dispatch:n})=>{n({type:Qb.OperationFinish,id:e,item:t}),n.processItem(e)}}function Lk(e){return async({dispatch:t})=>{const n=[ek.Upload];t({type:Qb.AddOperations,id:e,operations:n}),t.finishOperation(e,{})}}function Dk(e){return async({select:t,dispatch:n})=>{const o=t.getItem(e);t.getSettings().mediaUpload({filesList:[o.file],additionalData:o.additionalData,signal:o.abortController?.signal,onFileChange:([t])=>{(0,$a.isBlobURL)(t.url)||n.finishOperation(e,{attachment:t})},onSuccess:([t])=>{n.finishOperation(e,{attachment:t})},onError:t=>{n.cancelItem(e,t)}})}}function Ok(e){return async({select:t,dispatch:n})=>{const o=t.getBlobUrls(e);for(const e of o)(0,$a.revokeBlobURL)(e);n({type:Qb.RevokeBlobUrls,id:e})}}function zk(e){return{type:Qb.UpdateSettings,settings:e}}const{lock:Vk,unlock:Fk}=(0,H.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.","@wordpress/upload-media"),Hk="core/upload-media",Uk={reducer:nk,selectors:s,actions:a},Gk=(0,g.createReduxStore)(Hk,{reducer:nk,selectors:s,actions:a});(0,g.register)(Gk),Fk(Gk).registerPrivateActions(c),Fk(Gk).registerPrivateSelectors(l);const $k=(0,m.createHigherOrderComponent)((e=>({useSubRegistry:t=!0,...n})=>{const o=(0,g.useRegistry)(),[r]=(0,h.useState)((()=>new WeakMap)),i=function(e,t,n){if(!n)return t;let o=e.get(t);return o||(o=(0,g.createRegistry)({},t),o.registerStore(Hk,Uk),e.set(t,o)),o}(r,o,t);return i===o?(0,d.jsx)(e,{registry:o,...n}):(0,d.jsx)(g.RegistryProvider,{value:i,children:(0,d.jsx)(e,{registry:i,...n})})}),"withRegistryProvider")((e=>{const{children:t,settings:n}=e,{updateSettings:o}=Fk((0,g.useDispatch)(Gk));return(0,h.useEffect)((()=>{o(n)}),[n,o]),(0,d.jsx)(d.Fragment,{children:t})}));var Wk=$k;var Kk=(0,m.createHigherOrderComponent)((e=>({useSubRegistry:t=!0,...n})=>{const o=(0,g.useRegistry)(),[r]=(0,h.useState)((()=>new WeakMap)),i=function(e,t,n){if(!n)return t;let o=e.get(t);return o||(o=(0,g.createRegistry)({},t),o.registerStore(ge,Ii),e.set(t,o)),o}(r,o,t);return i===o?(0,d.jsx)(e,{registry:o,...n}):(0,d.jsx)(g.RegistryProvider,{value:i,children:(0,d.jsx)(e,{registry:i,...n})})}),"withRegistryProvider");const Zk=()=>{};function qk({clientId:e=null,value:t,selection:n,onChange:o=Zk,onInput:r=Zk}){const i=(0,g.useRegistry)(),{resetBlocks:s,resetSelection:l,replaceInnerBlocks:a,setHasControlledInnerBlocks:c,__unstableMarkNextChangeAsNotPersistent:u}=i.dispatch(ji),{getBlockName:d,getBlocks:m,getSelectionStart:f,getSelectionEnd:b}=i.select(ji),k=(0,g.useSelect)((t=>!e||t(ji).areInnerBlocksControlled(e)),[e]),v=(0,h.useRef)({incoming:null,outgoing:[]}),_=(0,h.useRef)(!1),y=()=>{t&&(u(),e?i.batch((()=>{c(e,!0);const n=t.map((e=>(0,p.cloneBlock)(e)));_.current&&(v.current.incoming=n),u(),a(e,n)})):(_.current&&(v.current.incoming=t),s(t)))},x=(0,h.useRef)(r),S=(0,h.useRef)(o);(0,h.useEffect)((()=>{x.current=r,S.current=o}),[r,o]),(0,h.useEffect)((()=>{v.current.outgoing.includes(t)?v.current.outgoing[v.current.outgoing.length-1]===t&&(v.current.outgoing=[]):m(e)!==t&&(v.current.outgoing=[],y(),n&&l(n.selectionStart,n.selectionEnd,n.initialPosition))}),[t,e]);const w=(0,h.useRef)(!1);(0,h.useEffect)((()=>{w.current?k||(v.current.outgoing=[],y()):w.current=!0}),[k]),(0,h.useEffect)((()=>{const{getSelectedBlocksInitialCaretPosition:t,isLastBlockChangePersistent:n,__unstableIsLastBlockChangeIgnored:o,areInnerBlocksControlled:r}=i.select(ji);let s=m(e),l=n(),a=!1;_.current=!0;const c=i.subscribe((()=>{if(null!==e&&null===d(e))return;if(!(!e||r(e)))return;const i=n(),c=m(e),u=c!==s;if(s=c,u&&(v.current.incoming||o()))return v.current.incoming=null,void(l=i);if(u||a&&!u&&i&&!l){l=i,v.current.outgoing.push(s);(l?S.current:x.current)(s,{selection:{selectionStart:f(),selectionEnd:b(),initialPosition:t()}})}a=u}),ji);return()=>{_.current=!1,c()}}),[i,e]),(0,h.useEffect)((()=>()=>{u(),e?(c(e,!1),u(),a(e,[])):s([])}),[])}const Yk=window.wp.keyboardShortcuts;function Xk(){return null}Xk.Register=function(){const{registerShortcut:e}=(0,g.useDispatch)(Yk.store);return(0,h.useEffect)((()=>{e({name:"core/block-editor/copy",category:"block",description:(0,T.__)("Copy the selected block(s)."),keyCombination:{modifier:"primary",character:"c"}}),e({name:"core/block-editor/cut",category:"block",description:(0,T.__)("Cut the selected block(s)."),keyCombination:{modifier:"primary",character:"x"}}),e({name:"core/block-editor/paste",category:"block",description:(0,T.__)("Paste the selected block(s)."),keyCombination:{modifier:"primary",character:"v"}}),e({name:"core/block-editor/duplicate",category:"block",description:(0,T.__)("Duplicate the selected block(s)."),keyCombination:{modifier:"primaryShift",character:"d"}}),e({name:"core/block-editor/remove",category:"block",description:(0,T.__)("Remove the selected block(s)."),keyCombination:{modifier:"access",character:"z"}}),e({name:"core/block-editor/paste-styles",category:"block",description:(0,T.__)("Paste the copied style to the selected block(s)."),keyCombination:{modifier:"primaryAlt",character:"v"}}),e({name:"core/block-editor/insert-before",category:"block",description:(0,T.__)("Insert a new block before the selected block(s)."),keyCombination:{modifier:"primaryAlt",character:"t"}}),e({name:"core/block-editor/insert-after",category:"block",description:(0,T.__)("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:(0,T.__)("Delete selection."),keyCombination:{character:"del"},aliases:[{character:"backspace"}]}),e({name:"core/block-editor/select-all",category:"selection",description:(0,T.__)("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:(0,T.__)("Clear selection."),keyCombination:{character:"escape"}}),e({name:"core/block-editor/multi-text-selection",category:"selection",description:(0,T.__)("Select text across multiple blocks."),keyCombination:{modifier:"shift",character:"arrow"}}),e({name:"core/block-editor/focus-toolbar",category:"global",description:(0,T.__)("Navigate to the nearest toolbar."),keyCombination:{modifier:"alt",character:"F10"}}),e({name:"core/block-editor/move-up",category:"block",description:(0,T.__)("Move the selected block(s) up."),keyCombination:{modifier:"secondary",character:"t"}}),e({name:"core/block-editor/move-down",category:"block",description:(0,T.__)("Move the selected block(s) down."),keyCombination:{modifier:"secondary",character:"y"}}),e({name:"core/block-editor/collapse-list-view",category:"list-view",description:(0,T.__)("Collapse all other items."),keyCombination:{modifier:"alt",character:"l"}}),e({name:"core/block-editor/group",category:"block",description:(0,T.__)("Create a group block from the selected multiple blocks."),keyCombination:{modifier:"primary",character:"g"}}),e({name:"core/block-editor/toggle-block-visibility",category:"block",description:(0,T.__)("Show or hide the selected block(s)."),keyCombination:{modifier:"primaryShift",character:"h"}})}),[e]),null};var Qk=Xk;var Jk=function(e={}){return(0,h.useMemo)((()=>({mediaUpload:e.mediaUpload,mediaSideload:e.mediaSideload,maxUploadFileSize:e.maxUploadFileSize,allowedMimeTypes:e.allowedMimeTypes})),[e])};const ev=()=>{};function tv(e,{allowedTypes:t,additionalData:n={},filesList:o,onError:r=ev,onFileChange:i,onSuccess:s,onBatchSuccess:l}){e.dispatch(Gk).addItems({files:o,onChange:i,onSuccess:s,onBatchSuccess:l,onError:({message:e})=>r(e),additionalData:n,allowedTypes:t})}const nv=Kk((e=>{const{settings:t,registry:n,stripExperimentalSettings:o=!1}=e,r=Jk(t);let i=t;window.__experimentalMediaProcessing&&t.mediaUpload&&(i=(0,h.useMemo)((()=>({...t,mediaUpload:tv.bind(null,n)})),[t,n]));const{__experimentalUpdateSettings:s}=G((0,g.useDispatch)(ji));(0,h.useEffect)((()=>{s({...i,__internalIsInitialized:!0},{stripExperimentalSettings:o,reset:!0})}),[i,o,s]),qk(e);const l=(0,d.jsxs)(ws.SlotFillProvider,{passthrough:!0,children:[!i?.isPreviewMode&&(0,d.jsx)(Qk.Register,{}),(0,d.jsx)(hh,{children:e.children})]});return window.__experimentalMediaProcessing?(0,d.jsx)(Wk,{settings:r,useSubRegistry:!1,children:l}):l}));var ov=e=>(0,d.jsx)(nv,{...e,stripExperimentalSettings:!0,children:e.children});const rv=(0,h.createContext)({});function iv({value:e,children:t}){const n=(0,h.useContext)(rv),o=(0,h.useMemo)((()=>({...n,...e})),[n,e]);return(0,d.jsx)(rv.Provider,{value:o,children:t})}rv.displayName="BlockContext";var sv=rv;const lv="core/pattern-overrides";function av(e){return!e||0===Object.keys(e).length}function cv(e){return e?.__default?.source===lv}function uv(e,t){if(cv(e)){const n={};for(const o of t){const t=e[o]?e[o]:{source:lv};n[o]=t}return n}return e}function dv(e){const{clientId:t}=C(),n=e||t,{updateBlockAttributes:o}=(0,g.useDispatch)(ji),{getBlockAttributes:r}=(0,g.useRegistry)().select(ji);return{updateBlockBindings:e=>{const{metadata:{bindings:t,...i}={}}=r(n),s={...t};Object.entries(e).forEach((([e,t])=>{t||!s[e]?s[e]=t:delete s[e]}));const l={...i,bindings:s};av(l.bindings)&&delete l.bindings,o(n,{metadata:av(l)?void 0:l})},removeAllBlockBindings:()=>{const{metadata:{bindings:e,...t}={}}=r(n);o(n,{metadata:av(t)?void 0:t})}}}const pv=(0,h.createContext)({});pv.displayName="PrivateBlockContext";const hv={},gv=(0,ws.withFilters)("editor.BlockEdit")((e=>{const{name:t}=e,n=(0,p.getBlockType)(t);if(!n)return null;const o=n.edit||n.save;return(0,d.jsx)(o,{...e})}));var mv=e=>{const{name:t,clientId:n,attributes:o,setAttributes:r}=e,i=(0,g.useRegistry)(),s=(0,p.getBlockType)(t),l=(0,h.useContext)(sv),a=(0,g.useSelect)((e=>G(e(p.store)).getAllBlockBindingsSources()),[]),{bindableAttributes:c}=(0,h.useContext)(pv),{blockBindings:u,context:m,hasPatternOverrides:f}=(0,h.useMemo)((()=>{const e=s?.usesContext?Object.fromEntries(Object.entries(l).filter((([e])=>s.usesContext.includes(e)))):hv;return o?.metadata?.bindings&&Object.values(o?.metadata?.bindings||{}).forEach((t=>{a[t?.source]?.usesContext?.forEach((t=>{e[t]=l[t]}))})),{blockBindings:uv(o?.metadata?.bindings,c),context:e,hasPatternOverrides:cv(o?.metadata?.bindings)}}),[t,s?.usesContext,l,o?.metadata?.bindings,a]),b=(0,g.useSelect)((e=>{if(!u)return o;const t={},r=new Map;for(const[e,t]of Object.entries(u)){const{source:n,args:o}=t,i=a[n];i&&c?.includes(e)&&r.set(i,{...r.get(i),[e]:{args:o}})}if(r.size)for(const[o,i]of r){let r={};o.getValues?r=o.getValues({select:e,context:m,clientId:n,bindings:i}):Object.keys(i).forEach((e=>{r[e]=o.label}));for(const[e,n]of Object.entries(r))"url"!==e||n&&Lc(n)?t[e]=n:t[e]=null}return{...o,...t}}),[o,c,u,n,m,t,a]),k=(0,h.useCallback)((e=>{u?i.batch((()=>{const t={...e},o=new Map;for(const[e,n]of Object.entries(t)){if(!u[e]||!c?.includes(e))continue;const r=u[e],i=a[r?.source];i?.setValues&&(o.set(i,{...o.get(i),[e]:{args:r.args,newValue:n}}),delete t[e])}if(o.size)for(const[e,t]of o)e.setValues({select:i.select,dispatch:i.dispatch,context:m,clientId:n,bindings:t});const s=!!m["pattern/overrides"];f&&s||!Object.keys(t).length||(f&&(delete t.caption,delete t.href),r(t))})):r(e)}),[c,u,n,m,f,r,a,t,i]);if(!s)return null;if(s.apiVersion>1)return(0,d.jsx)(gv,{...e,attributes:b,context:m,setAttributes:k});const v=(0,p.hasBlockSupport)(s,"className",!0)?(0,p.getBlockDefaultClassName)(t):null,_=ms(v,o?.className,e.className);return(0,d.jsx)(gv,{...e,attributes:b,className:_,context:m,setAttributes:k})},fv=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"})});var bv=function({className:e,actions:t,children:n,secondaryActions:o}){return(0,d.jsx)("div",{style:{display:"contents",all:"initial"},children:(0,d.jsx)("div",{className:ms(e,"block-editor-warning"),children:(0,d.jsxs)("div",{className:"block-editor-warning__contents",children:[(0,d.jsx)("p",{className:"block-editor-warning__message",children:n}),(t?.length>0||o)&&(0,d.jsxs)("div",{className:"block-editor-warning__actions",children:[t?.length>0&&t.map(((e,t)=>(0,d.jsx)("span",{className:"block-editor-warning__action",children:e},t))),o&&(0,d.jsx)(ws.DropdownMenu,{className:"block-editor-warning__secondary",icon:fv,label:(0,T.__)("More options"),popoverProps:{placement:"bottom-end",className:"block-editor-warning__dropdown"},noIcons:!0,children:()=>(0,d.jsx)(ws.MenuGroup,{children:o.map(((e,t)=>(0,d.jsx)(ws.MenuItem,{onClick:e.onClick,children:e.title},t)))})})]})]})})})};function kv({originalBlockClientId:e,name:t,onReplace:n}){const{selectBlock:o}=(0,g.useDispatch)(ji),r=(0,p.getBlockType)(t);return(0,d.jsxs)(bv,{actions:[(0,d.jsx)(ws.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:()=>o(e),children:(0,T.__)("Find original")},"find-original"),(0,d.jsx)(ws.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:()=>n([]),children:(0,T.__)("Remove")},"remove")],children:[(0,d.jsxs)("strong",{children:[r?.title,": "]}),(0,T.__)("This block can only be used once.")]})}function vv({mayDisplayControls:e,mayDisplayParentControls:t,blockEditingMode:n,isPreviewMode:o,...r}){const{name:i,isSelected:s,clientId:l,attributes:a={},__unstableLayoutClassNames:c}=r,{layout:u=null,metadata:g={}}=a,{bindings:m}=g,f=(0,p.hasBlockSupport)(i,"layout",!1)||(0,p.hasBlockSupport)(i,"__experimentalLayout",!1),{originalBlockClientId:x}=(0,h.useContext)(pv);return(0,d.jsxs)(w,{value:(0,h.useMemo)((()=>({name:i,isSelected:s,clientId:l,layout:f?u:null,__unstableLayoutClassNames:c,[b]:e,[k]:t,[v]:n,[_]:m,[y]:o})),[i,s,l,f,u,c,e,t,n,m,o]),children:[(0,d.jsx)(mv,{...r}),x&&(0,d.jsx)(kv,{originalBlockClientId:x,name:i,onReplace:r.onReplace})]})}var _v=n(8021);function yv({title:e,rawContent:t,renderedContent:n,action:o,actionText:r,className:i}){return(0,d.jsxs)("div",{className:i,children:[(0,d.jsxs)("div",{className:"block-editor-block-compare__content",children:[(0,d.jsx)("h2",{className:"block-editor-block-compare__heading",children:e}),(0,d.jsx)("div",{className:"block-editor-block-compare__html",children:t}),(0,d.jsx)("div",{className:"block-editor-block-compare__preview edit-post-visual-editor",children:(0,d.jsx)(h.RawHTML,{children:(0,Ga.safeHTML)(n)})})]}),(0,d.jsx)("div",{className:"block-editor-block-compare__action",children:(0,d.jsx)(ws.Button,{__next40pxDefaultSize:!0,variant:"secondary",tabIndex:"0",onClick:o,children:r})})]})}var xv=function({block:e,onKeep:t,onConvert:n,convertor:o,convertButtonText:r}){const i=(s=o(e),(Array.isArray(s)?s:[s]).map((e=>(0,p.getSaveContent)(e.name,e.attributes,e.innerBlocks))).join(""));var s;const l=(a=e.originalContent,c=i,(0,_v.JJ)(a,c).map(((e,t)=>{const n=ms({"block-editor-block-compare__added":e.added,"block-editor-block-compare__removed":e.removed});return(0,d.jsx)("span",{className:n,children:e.value},t)})));var a,c;return(0,d.jsxs)("div",{className:"block-editor-block-compare__wrapper",children:[(0,d.jsx)(yv,{title:(0,T.__)("Current"),className:"block-editor-block-compare__current",action:t,actionText:(0,T.__)("Convert to HTML"),rawContent:e.originalContent,renderedContent:e.originalContent}),(0,d.jsx)(yv,{title:(0,T.__)("After Conversion"),className:"block-editor-block-compare__converted",action:n,actionText:r,rawContent:l,renderedContent:i})]})};const Sv=e=>(0,p.rawHandler)({HTML:e.originalContent});function wv({clientId:e}){const{block:t,canInsertHTMLBlock:n,canInsertClassicBlock:o}=(0,g.useSelect)((t=>{const{canInsertBlockType:n,getBlock:o,getBlockRootClientId:r}=t(ji),i=r(e);return{block:o(e),canInsertHTMLBlock:n("core/html",i),canInsertClassicBlock:n("core/freeform",i)}}),[e]),{replaceBlock:r}=(0,g.useDispatch)(ji),[i,s]=(0,h.useState)(!1),l=(0,h.useCallback)((()=>s(!1)),[]),a=(0,h.useMemo)((()=>({toClassic(){const e=(0,p.createBlock)("core/freeform",{content:t.originalContent});return r(t.clientId,e)},toHTML(){const e=(0,p.createBlock)("core/html",{content:t.originalContent});return r(t.clientId,e)},toBlocks(){const e=Sv(t);return r(t.clientId,e)},toRecoveredBlock(){const e=(0,p.createBlock)(t.name,t.attributes,t.innerBlocks);return r(t.clientId,e)}})),[t,r]),c=(0,h.useMemo)((()=>[{title:(0,T._x)("Resolve","imperative verb"),onClick:()=>s(!0)},n&&{title:(0,T.__)("Convert to HTML"),onClick:a.toHTML},o&&{title:(0,T.__)("Convert to Classic Block"),onClick:a.toClassic}].filter(Boolean)),[n,o,a]);return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(bv,{actions:[(0,d.jsx)(ws.Button,{__next40pxDefaultSize:!0,onClick:a.toRecoveredBlock,variant:"primary",children:(0,T.__)("Attempt recovery")},"recover")],secondaryActions:c,children:(0,T.__)("Block contains unexpected or invalid content.")}),i&&(0,d.jsx)(ws.Modal,{title:(0,T.__)("Resolve Block"),onRequestClose:l,className:"block-editor-block-compare",children:(0,d.jsx)(xv,{block:t,onKeep:a.toHTML,onConvert:a.toBlocks,convertor:Sv,convertButtonText:(0,T.__)("Convert to Blocks")})})]})}const Cv=(0,d.jsx)(bv,{className:"block-editor-block-list__block-crash-warning",children:(0,T.__)("This block has encountered an error and cannot be previewed.")});var Bv=()=>Cv;class Iv extends h.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 jv=Iv,Ev=n(4132);var Tv=function({clientId:e}){const[t,n]=(0,h.useState)(""),o=(0,g.useSelect)((t=>t(ji).getBlock(e)),[e]),{updateBlock:r}=(0,g.useDispatch)(ji);return(0,h.useEffect)((()=>{n((0,p.getBlockContent)(o))}),[o]),(0,d.jsx)(Ev.A,{className:"block-editor-block-list__block-html-textarea",value:t,onBlur:()=>{const i=(0,p.getBlockType)(o.name);if(!i)return;const s=(0,p.getBlockAttributes)(i,t,o.attributes),l=t||(0,p.getSaveContent)(i,s),[a]=t?(0,p.validateBlock)({...o,attributes:s,originalContent:l}):[!0];r(e,{attributes:s,originalContent:l,isValid:a}),t||n(l)},onChange:e=>n(e.target.value)})},Mv=Kv(),Pv=e=>Uv(e,Mv),Rv=Kv();Pv.write=e=>Uv(e,Rv);var Av=Kv();Pv.onStart=e=>Uv(e,Av);var Nv=Kv();Pv.onFrame=e=>Uv(e,Nv);var Lv=Kv();Pv.onFinish=e=>Uv(e,Lv);var Dv=[];Pv.setTimeout=(e,t)=>{let n=Pv.now()+t,o=()=>{let e=Dv.findIndex((e=>e.cancel==o));~e&&Dv.splice(e,1),Fv-=~e?1:0},r={time:n,handler:e,cancel:o};return Dv.splice(Ov(n),0,r),Fv+=1,Gv(),r};var Ov=e=>~(~Dv.findIndex((t=>t.time>e))||~Dv.length);Pv.cancel=e=>{Av.delete(e),Nv.delete(e),Lv.delete(e),Mv.delete(e),Rv.delete(e)},Pv.sync=e=>{Hv=!0,Pv.batchedUpdates(e),Hv=!1},Pv.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function o(...e){t=e,Pv.onStart(n)}return o.handler=e,o.cancel=()=>{Av.delete(n),t=null},o};var zv=typeof window<"u"?window.requestAnimationFrame:()=>{};Pv.use=e=>zv=e,Pv.now=typeof performance<"u"?()=>performance.now():Date.now,Pv.batchedUpdates=e=>e(),Pv.catch=console.error,Pv.frameLoop="always",Pv.advance=()=>{"demand"!==Pv.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):Wv()};var Vv=-1,Fv=0,Hv=!1;function Uv(e,t){Hv?(t.delete(e),e(0)):(t.add(e),Gv())}function Gv(){Vv<0&&(Vv=0,"demand"!==Pv.frameLoop&&zv($v))}function $v(){~Vv&&(zv($v),Pv.batchedUpdates(Wv))}function Wv(){let e=Vv;Vv=Pv.now();let t=Ov(Vv);t&&(Zv(Dv.splice(0,t),(e=>e.handler())),Fv-=t),Fv?(Av.flush(),Mv.flush(e?Math.min(64,Vv-e):16.667),Nv.flush(),Rv.flush(),Lv.flush()):Vv=-1}function Kv(){let e=new Set,t=e;return{add(n){Fv+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(Fv-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,Fv-=t.size,Zv(t,(t=>t(n)&&e.add(t))),Fv+=e.size,t=e)}}}function Zv(e,t){e.forEach((e=>{try{t(e)}catch(e){Pv.catch(e)}}))}var qv=Object.defineProperty,Yv={};function Xv(){}((e,t)=>{for(var n in t)qv(e,n,{get:t[n],enumerable:!0})})(Yv,{assign:()=>d_,colors:()=>a_,createStringInterpolator:()=>r_,skipAnimation:()=>c_,to:()=>i_,willAdvance:()=>u_});var Qv={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 Jv(e,t){if(Qv.arr(e)){if(!Qv.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}var e_=(e,t)=>e.forEach(t);function t_(e,t,n){if(Qv.arr(e))for(let o=0;o<e.length;o++)t.call(n,e[o],`${o}`);else for(let o in e)e.hasOwnProperty(o)&&t.call(n,e[o],o)}var n_=e=>Qv.und(e)?[]:Qv.arr(e)?e:[e];function o_(e,t){if(e.size){let n=Array.from(e);e.clear(),e_(n,t)}}var r_,i_,s_=(e,...t)=>o_(e,(e=>e(...t))),l_=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),a_=null,c_=!1,u_=Xv,d_=e=>{e.to&&(i_=e.to),e.now&&(Pv.now=e.now),void 0!==e.colors&&(a_=e.colors),null!=e.skipAnimation&&(c_=e.skipAnimation),e.createStringInterpolator&&(r_=e.createStringInterpolator),e.requestAnimationFrame&&Pv.use(e.requestAnimationFrame),e.batchedUpdates&&(Pv.batchedUpdates=e.batchedUpdates),e.willAdvance&&(u_=e.willAdvance),e.frameLoop&&(Pv.frameLoop=e.frameLoop)},p_=new Set,h_=[],g_=[],m_=0,f_={get idle(){return!p_.size&&!h_.length},start(e){m_>e.priority?(p_.add(e),Pv.onStart(b_)):(k_(e),Pv(__))},advance:__,sort(e){if(m_)Pv.onFrame((()=>f_.sort(e)));else{let t=h_.indexOf(e);~t&&(h_.splice(t,1),v_(e))}},clear(){h_=[],p_.clear()}};function b_(){p_.forEach(k_),p_.clear(),Pv(__)}function k_(e){h_.includes(e)||v_(e)}function v_(e){h_.splice(function(e,t){let n=e.findIndex(t);return n<0?e.length:n}(h_,(t=>t.priority>e.priority)),0,e)}function __(e){let t=g_;for(let n=0;n<h_.length;n++){let o=h_[n];m_=o.priority,o.idle||(u_(o),o.advance(e),o.idle||t.push(o))}return m_=0,(g_=h_).length=0,(h_=t).length>0}var y_="[-+]?\\d*\\.?\\d+",x_=y_+"%";function S_(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var w_=new RegExp("rgb"+S_(y_,y_,y_)),C_=new RegExp("rgba"+S_(y_,y_,y_,y_)),B_=new RegExp("hsl"+S_(y_,x_,x_)),I_=new RegExp("hsla"+S_(y_,x_,x_,y_)),j_=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,E_=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,T_=/^#([0-9a-fA-F]{6})$/,M_=/^#([0-9a-fA-F]{8})$/;function P_(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 R_(e,t,n){let o=n<.5?n*(1+t):n+t-n*t,r=2*n-o,i=P_(r,o,e+1/3),s=P_(r,o,e),l=P_(r,o,e-1/3);return Math.round(255*i)<<24|Math.round(255*s)<<16|Math.round(255*l)<<8}function A_(e){let t=parseInt(e,10);return t<0?0:t>255?255:t}function N_(e){return(parseFloat(e)%360+360)%360/360}function L_(e){let t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function D_(e){let t=parseFloat(e);return t<0?0:t>100?1:t/100}function O_(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=T_.exec(e))?parseInt(t[1]+"ff",16)>>>0:a_&&void 0!==a_[e]?a_[e]:(t=w_.exec(e))?(A_(t[1])<<24|A_(t[2])<<16|A_(t[3])<<8|255)>>>0:(t=C_.exec(e))?(A_(t[1])<<24|A_(t[2])<<16|A_(t[3])<<8|L_(t[4]))>>>0:(t=j_.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=M_.exec(e))?parseInt(t[1],16)>>>0:(t=E_.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=B_.exec(e))?(255|R_(N_(t[1]),D_(t[2]),D_(t[3])))>>>0:(t=I_.exec(e))?(R_(N_(t[1]),D_(t[2]),D_(t[3]))|L_(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})`)}var z_=(e,t,n)=>{if(Qv.fun(e))return e;if(Qv.arr(e))return z_({range:e,output:t,extrapolate:n});if(Qv.str(e.output[0]))return r_(e);let o=e,r=o.output,i=o.range||[0,1],s=o.extrapolateLeft||o.extrapolate||"extend",l=o.extrapolateRight||o.extrapolate||"extend",a=o.easing||(e=>e);return e=>{let t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,i);return function(e,t,n,o,r,i,s,l,a){let c=a?a(e):e;if(c<t){if("identity"===s)return c;"clamp"===s&&(c=t)}if(c>n){if("identity"===l)return c;"clamp"===l&&(c=n)}return o===r?o:t===n?e<=t?o:r:(t===-1/0?c=-c:n===1/0?c-=t:c=(c-t)/(n-t),c=i(c),o===-1/0?c=-c:r===1/0?c+=o:c=c*(r-o)+o,c)}(e,i[t],i[t+1],r[t],r[t+1],a,s,l,o.map)}};var V_=1.70158,F_=1.525*V_,H_=V_+1,U_=2*Math.PI/3,G_=2*Math.PI/4.5,$_=e=>e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,W_={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>0===e?0:Math.pow(2,10*e-10),easeOutExpo:e=>1===e?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>0===e?0:1===e?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>H_*e*e*e-V_*e*e,easeOutBack:e=>1+H_*Math.pow(e-1,3)+V_*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*(2*(F_+1)*e-F_)/2:(Math.pow(2*e-2,2)*((F_+1)*(2*e-2)+F_)+2)/2,easeInElastic:e=>0===e?0:1===e?1:-Math.pow(2,10*e-10)*Math.sin((10*e-10.75)*U_),easeOutElastic:e=>0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((10*e-.75)*U_)+1,easeInOutElastic:e=>0===e?0:1===e?1:e<.5?-Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*G_)/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*G_)/2+1,easeInBounce:e=>1-$_(1-e),easeOutBounce:$_,easeInOutBounce:e=>e<.5?(1-$_(1-2*e))/2:(1+$_(2*e-1))/2,steps:(e,t="end")=>n=>{let o=(n="end"===t?Math.min(n,.999):Math.max(n,.001))*e;return((e,t,n)=>Math.min(Math.max(n,e),t))(0,1,("end"===t?Math.floor(o):Math.ceil(o))/e)}},K_=Symbol.for("FluidValue.get"),Z_=Symbol.for("FluidValue.observers"),q_=e=>Boolean(e&&e[K_]),Y_=e=>e&&e[K_]?e[K_]():e,X_=e=>e[Z_]||null;function Q_(e,t){let n=e[Z_];n&&n.forEach((e=>{!function(e,t){e.eventObserved?e.eventObserved(t):e(t)}(e,t)}))}var J_=class{[K_];[Z_];constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");ey(this,e)}},ey=(e,t)=>ry(e,K_,t);function ty(e,t){if(e[K_]){let n=e[Z_];n||ry(e,Z_,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function ny(e,t){let n=e[Z_];if(n&&n.has(t)){let o=n.size-1;o?n.delete(t):e[Z_]=null,e.observerRemoved&&e.observerRemoved(o,t)}}var oy,ry=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),iy=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,sy=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,ly=new RegExp(`(${iy.source})(%|[a-z]+)`,"i"),ay=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,cy=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,uy=e=>{let[t,n]=dy(e);if(!t||l_())return e;let o=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(o)return o.trim();if(n&&n.startsWith("--")){return window.getComputedStyle(document.documentElement).getPropertyValue(n)||e}return n&&cy.test(n)?uy(n):n||e},dy=e=>{let t=cy.exec(e);if(!t)return[,];let[,n,o]=t;return[n,o]},py=(e,t,n,o,r)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(o)}, ${r})`,hy=e=>{oy||(oy=a_?new RegExp(`(${Object.keys(a_).join("|")})(?!\\w)`,"g"):/^\b$/);let t=e.output.map((e=>Y_(e).replace(cy,uy).replace(sy,O_).replace(oy,O_))),n=t.map((e=>e.match(iy).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=>z_({...e,output:t})));return e=>{let n=!ly.test(t[0])&&t.find((e=>ly.test(e)))?.replace(iy,""),r=0;return t[0].replace(iy,(()=>`${o[r++](e)}${n||""}`)).replace(ay,py)}},gy="react-spring: ",my=e=>{let t=e,n=!1;if("function"!=typeof t)throw new TypeError(`${gy}once requires a function parameter`);return(...e)=>{n||(t(...e),n=!0)}},fy=my(console.warn);my(console.warn);function by(e){return Qv.str(e)&&("#"==e[0]||/\d/.test(e)||!l_()&&cy.test(e)||e in(a_||{}))}new WeakMap;new Set,new WeakMap,new WeakMap,new WeakMap;var ky=l_()?ic.useEffect:ic.useLayoutEffect;function vy(){let e=(0,ic.useState)()[1],t=(()=>{let e=(0,ic.useRef)(!1);return ky((()=>(e.current=!0,()=>{e.current=!1})),[]),e})();return()=>{t.current&&e(Math.random())}}var _y=[];var yy=Symbol.for("Animated:node"),xy=e=>e&&e[yy],Sy=(e,t)=>((e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}))(e,yy,t),wy=e=>e&&e[yy]&&e[yy].getPayload(),Cy=class{payload;constructor(){Sy(this,this)}getPayload(){return this.payload||[]}},By=class extends Cy{constructor(e){super(),this._value=e,Qv.num(this._value)&&(this.lastPosition=this._value)}done=!0;elapsedTime;lastPosition;lastVelocity;v0;durationProgress=0;static create(e){return new By(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return Qv.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value!==e&&(this._value=e,!0)}reset(){let{done:e}=this;this.done=!1,Qv.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},Iy=class extends By{_string=null;_toString;constructor(e){super(0),this._toString=z_({output:[e,e]})}static create(e){return new Iy(e)}getValue(){return this._string??(this._string=this._toString(this._value))}setValue(e){if(Qv.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else{if(!super.setValue(e))return!1;this._string=null}return!0}reset(e){e&&(this._toString=z_({output:[this.getValue(),e]})),this._value=0,super.reset()}},jy={dependencies:null},Ey=class extends Cy{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){let t={};return t_(this.source,((n,o)=>{(e=>!!e&&e[yy]===e)(n)?t[o]=n.getValue(e):q_(n)?t[o]=Y_(n):e||(t[o]=n)})),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&e_(this.payload,(e=>e.reset()))}_makePayload(e){if(e){let t=new Set;return t_(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){jy.dependencies&&q_(e)&&jy.dependencies.add(e);let t=wy(e);t&&e_(t,(e=>this.add(e)))}},Ty=class extends Ey{constructor(e){super(e)}static create(e){return new Ty(e)}getValue(){return this.source.map((e=>e.getValue()))}setValue(e){let t=this.getPayload();return e.length==t.length?t.map(((t,n)=>t.setValue(e[n]))).some(Boolean):(super.setValue(e.map(My)),!0)}};function My(e){return(by(e)?Iy:By).create(e)}function Py(e){let t=xy(e);return t?t.constructor:Qv.arr(e)?Ty:by(e)?Iy:By}var Ry=(e,t)=>{let n=!Qv.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,ic.forwardRef)(((o,r)=>{let i=(0,ic.useRef)(null),s=n&&(0,ic.useCallback)((e=>{i.current=function(e,t){return e&&(Qv.fun(e)?e(t):e.current=t),t}(r,e)}),[r]),[l,a]=function(e,t){let n=new Set;return jy.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new Ey(e),jy.dependencies=null,[e,n]}(o,t),c=vy(),u=()=>{let e=i.current;n&&!e||!1===(!!e&&t.applyAnimatedValues(e,l.getValue(!0)))&&c()},d=new Ay(u,a),p=(0,ic.useRef)();ky((()=>(p.current=d,e_(a,(e=>ty(e,d))),()=>{p.current&&(e_(p.current.deps,(e=>ny(e,p.current))),Pv.cancel(p.current.update))}))),(0,ic.useEffect)(u,[]),(e=>{(0,ic.useEffect)(e,_y)})((()=>()=>{let e=p.current;e_(e.deps,(t=>ny(t,e)))}));let h=t.getComponentProps(l.getValue());return ic.createElement(e,{...h,ref:s})}))},Ay=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&Pv.write(this.update)}};var Ny=Symbol.for("AnimatedComponent"),Ly=e=>Qv.str(e)?e:e&&Qv.str(e.displayName)?e.displayName:Qv.fun(e)&&e.name||null;function Dy(e,...t){return Qv.fun(e)?e(...t):e}var Oy=(e,t)=>!0===e||!!(t&&e&&(Qv.fun(e)?e(t):n_(e).includes(t))),zy=(e,t)=>Qv.obj(e)?t&&e[t]:e,Vy=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,Fy=e=>e,Hy=(e,t=Fy)=>{let n=Uy;e.default&&!0!==e.default&&(e=e.default,n=Object.keys(e));let o={};for(let r of n){let n=t(e[r],r);Qv.und(n)||(o[r]=n)}return o},Uy=["config","onProps","onStart","onChange","onPause","onResume","onRest"],Gy={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 $y(e){let t=function(e){let t={},n=0;if(t_(e,((e,o)=>{Gy[o]||(t[o]=e,n++)})),n)return t}(e);if(t){let n={to:t};return t_(e,((e,o)=>o in t||(n[o]=e))),n}return{...e}}function Wy(e){return e=Y_(e),Qv.arr(e)?e.map(Wy):by(e)?Yv.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function Ky(e){return Qv.fun(e)||Qv.arr(e)&&Qv.obj(e[0])}var Zy={tension:170,friction:26,mass:1,damping:1,easing:W_.linear,clamp:!1},qy=class{tension;friction;frequency;damping;mass;velocity=0;restVelocity;precision;progress;duration;easing;clamp;bounce;decay;round;constructor(){Object.assign(this,Zy)}};function Yy(e,t){if(Qv.und(t.decay)){let n=!Qv.und(t.tension)||!Qv.und(t.friction);(n||!Qv.und(t.frequency)||!Qv.und(t.damping)||!Qv.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}var Xy=[],Qy=class{changed=!1;values=Xy;toValues=null;fromValues=Xy;to;from;config=new qy;immediate=!1};function Jy(e,{key:t,props:n,defaultProps:o,state:r,actions:i}){return new Promise(((s,l)=>{let a,c,u=Oy(n.cancel??o?.cancel,t);if(u)h();else{Qv.und(n.pause)||(r.paused=Oy(n.pause,t));let e=o?.pause;!0!==e&&(e=r.paused||Oy(e,t)),a=Dy(n.delay||0,t),e?(r.resumeQueue.add(p),i.pause()):(i.resume(),p())}function d(){r.resumeQueue.add(p),r.timeouts.delete(c),c.cancel(),a=c.time-Pv.now()}function p(){a>0&&!Yv.skipAnimation?(r.delayed=!0,c=Pv.setTimeout(h,a),r.pauseQueue.add(d),r.timeouts.add(c)):h()}function h(){r.delayed&&(r.delayed=!1),r.pauseQueue.delete(d),r.timeouts.delete(c),e<=(r.cancelId||0)&&(u=!0);try{i.start({...n,callId:e,cancel:u},s)}catch(e){l(e)}}}))}var ex=(e,t)=>1==t.length?t[0]:t.some((e=>e.cancelled))?ox(e.get()):t.every((e=>e.noop))?tx(e.get()):nx(e.get(),t.every((e=>e.finished))),tx=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),nx=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),ox=e=>({value:e,cancelled:!0,finished:!1});function rx(e,t,n,o){let{callId:r,parentId:i,onRest:s}=t,{asyncTo:l,promise:a}=n;return i||e!==l||t.reset?n.promise=(async()=>{n.asyncId=r,n.asyncTo=e;let c,u,d,p=Hy(t,((e,t)=>"onRest"===t?void 0:e)),h=new Promise(((e,t)=>(c=e,u=t))),g=e=>{let t=r<=(n.cancelId||0)&&ox(o)||r!==n.asyncId&&nx(o,!1);if(t)throw e.result=t,u(e),e},m=(e,t)=>{let i=new sx,s=new lx;return(async()=>{if(Yv.skipAnimation)throw ix(n),s.result=nx(o,!1),u(s),s;g(i);let l=Qv.obj(e)?{...e}:{...t,to:e};l.parentId=r,t_(p,((e,t)=>{Qv.und(l[t])&&(l[t]=e)}));let a=await o.start(l);return g(i),n.paused&&await new Promise((e=>{n.resumeQueue.add(e)})),a})()};if(Yv.skipAnimation)return ix(n),nx(o,!1);try{let t;t=Qv.arr(e)?(async e=>{for(let t of e)await m(t)})(e):Promise.resolve(e(m,o.stop.bind(o))),await Promise.all([t.then(c),h]),d=nx(o.get(),!0,!1)}catch(e){if(e instanceof sx)d=e.result;else{if(!(e instanceof lx))throw e;d=e.result}}finally{r==n.asyncId&&(n.asyncId=i,n.asyncTo=i?l:void 0,n.promise=i?a:void 0)}return Qv.fun(s)&&Pv.batchedUpdates((()=>{s(d,o,o.item)})),d})():a}function ix(e,t){o_(e.timeouts,(e=>e.cancel())),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var sx=class extends Error{result;constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},lx=class extends Error{result;constructor(){super("SkipAnimationSignal")}},ax=e=>e instanceof ux,cx=1,ux=class extends J_{id=cx++;_priority=0;get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){let e=xy(this);return e&&e.getValue()}to(...e){return Yv.to(this,e)}interpolate(...e){return fy(`${gy}The "interpolate" function is deprecated in v9 (use "to" instead)`),Yv.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){Q_(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||f_.sort(this),Q_(this,{type:"priority",parent:this,priority:e})}},dx=Symbol.for("SpringPhase"),px=e=>(1&e[dx])>0,hx=e=>(2&e[dx])>0,gx=e=>(4&e[dx])>0,mx=(e,t)=>t?e[dx]|=3:e[dx]&=-3,fx=(e,t)=>t?e[dx]|=4:e[dx]&=-5,bx=class extends ux{key;animation=new Qy;queue;defaultProps={};_state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set};_pendingCalls=new Set;_lastCallId=0;_lastToId=0;_memoizedDuration=0;constructor(e,t){if(super(),!Qv.und(e)||!Qv.und(t)){let n=Qv.obj(e)?{...e}:{...t,from:e};Qv.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(hx(this)||this._state.asyncTo)||gx(this)}get goal(){return Y_(this.animation.to)}get velocity(){let e=xy(this);return e instanceof By?e.lastVelocity||0:e.getPayload().map((e=>e.lastVelocity||0))}get hasAnimated(){return px(this)}get isAnimating(){return hx(this)}get isPaused(){return gx(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1,o=this.animation,{config:r,toValues:i}=o,s=wy(o.to);!s&&q_(o.to)&&(i=n_(Y_(o.to))),o.values.forEach(((l,a)=>{if(l.done)return;let c=l.constructor==Iy?1:s?s[a].lastPosition:i[a],u=o.immediate,d=c;if(!u){if(d=l.lastPosition,r.tension<=0)return void(l.done=!0);let t,n=l.elapsedTime+=e,i=o.fromValues[a],s=null!=l.v0?l.v0:l.v0=Qv.arr(r.velocity)?r.velocity[a]:r.velocity,p=r.precision||(i==c?.005:Math.min(1,.001*Math.abs(c-i)));if(Qv.und(r.duration))if(r.decay){let e=!0===r.decay?.998:r.decay,o=Math.exp(-(1-e)*n);d=i+s/(1-e)*(1-o),u=Math.abs(l.lastPosition-d)<=p,t=s*o}else{t=null==l.lastVelocity?s:l.lastVelocity;let n,o=r.restVelocity||p/10,a=r.clamp?0:r.bounce,h=!Qv.und(a),g=i==c?l.v0>0:i<c,m=!1,f=1,b=Math.ceil(e/f);for(let e=0;e<b&&(n=Math.abs(t)>o,n||(u=Math.abs(c-d)<=p,!u));++e){h&&(m=d==c||d>c==g,m&&(t=-t*a,d=c)),t+=(1e-6*-r.tension*(d-c)+.001*-r.friction*t)/r.mass*f,d+=t*f}}else{let o=1;r.duration>0&&(this._memoizedDuration!==r.duration&&(this._memoizedDuration=r.duration,l.durationProgress>0&&(l.elapsedTime=r.duration*l.durationProgress,n=l.elapsedTime+=e)),o=(r.progress||0)+n/this._memoizedDuration,o=o>1?1:o<0?0:o,l.durationProgress=o),d=i+r.easing(o)*(c-i),t=(d-l.lastPosition)/e,u=1==o}l.lastVelocity=t,Number.isNaN(d)&&(console.warn("Got NaN while animating:",this),u=!0)}s&&!s[a].done&&(u=!1),u?l.done=!0:t=!1,l.setValue(d,r.round)&&(n=!0)}));let l=xy(this),a=l.getValue();if(t){let e=Y_(o.to);a===e&&!n||r.decay?n&&r.decay&&this._onChange(a):(l.setValue(e),this._onChange(e)),this._stop()}else n&&this._onChange(a)}set(e){return Pv.batchedUpdates((()=>{this._stop(),this._focus(e),this._set(e)})),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(hx(this)){let{to:e,config:t}=this.animation;Pv.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 Qv.und(e)?(n=this.queue||[],this.queue=[]):n=[Qv.obj(e)?e:{...t,to:e}],Promise.all(n.map((e=>this._update(e)))).then((e=>ex(this,e)))}stop(e){let{to:t}=this.animation;return this._focus(this.get()),ix(this._state,e&&this._lastCallId),Pv.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){let t=this.key||"",{to:n,from:o}=e;n=Qv.obj(n)?n[t]:n,(null==n||Ky(n))&&(n=void 0),o=Qv.obj(o)?o[t]:o,null==o&&(o=void 0);let r={to:n,from:o};return px(this)||(e.reverse&&([n,o]=[o,n]),o=Y_(o),Qv.und(o)?xy(this)||this._set(n):this._set(o)),r}_update({...e},t){let{key:n,defaultProps:o}=this;e.default&&Object.assign(o,Hy(e,((e,t)=>/^on/.test(t)?zy(e,n):e))),Sx(this,e,"onProps"),wx(this,"onProps",e,this);let r=this._prepareNode(e);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?");let i=this._state;return Jy(++this._lastCallId,{key:n,props:e,defaultProps:o,state:i,actions:{pause:()=>{gx(this)||(fx(this,!0),s_(i.pauseQueue),wx(this,"onPause",nx(this,kx(this,this.animation.to)),this))},resume:()=>{gx(this)&&(fx(this,!1),hx(this)&&this._resume(),s_(i.resumeQueue),wx(this,"onResume",nx(this,kx(this,this.animation.to)),this))},start:this._merge.bind(this,r)}}).then((n=>{if(e.loop&&n.finished&&(!t||!n.noop)){let t=vx(e);if(t)return this._update(t,!0)}return n}))}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(ox(this));let o=!Qv.und(e.to),r=!Qv.und(e.from);if(o||r){if(!(t.callId>this._lastToId))return n(ox(this));this._lastToId=t.callId}let{key:i,defaultProps:s,animation:l}=this,{to:a,from:c}=l,{to:u=a,from:d=c}=e;r&&!o&&(!t.default||Qv.und(u))&&(u=d),t.reverse&&([u,d]=[d,u]);let p=!Jv(d,c);p&&(l.from=d),d=Y_(d);let h=!Jv(u,a);h&&this._focus(u);let g=Ky(t.to),{config:m}=l,{decay:f,velocity:b}=m;(o||r)&&(m.velocity=0),t.config&&!g&&function(e,t,n){n&&(Yy(n={...n},t),t={...n,...t}),Yy(e,t),Object.assign(e,t);for(let t in Zy)null==e[t]&&(e[t]=Zy[t]);let{mass:o,frequency:r,damping:i}=e;Qv.und(r)||(r<.01&&(r=.01),i<0&&(i=0),e.tension=Math.pow(2*Math.PI/r,2)*o,e.friction=4*Math.PI*i*o/r)}(m,Dy(t.config,i),t.config!==s.config?Dy(s.config,i):void 0);let k=xy(this);if(!k||Qv.und(u))return n(nx(this,!0));let v=Qv.und(t.reset)?r&&!t.default:!Qv.und(d)&&Oy(t.reset,i),_=v?d:this.get(),y=Wy(u),x=Qv.num(y)||Qv.arr(y)||by(y),S=!g&&(!x||Oy(s.immediate||t.immediate,i));if(h){let e=Py(u);if(e!==k.constructor){if(!S)throw Error(`Cannot animate between ${k.constructor.name} and ${e.name}, as the "to" prop suggests`);k=this._set(y)}}let w=k.constructor,C=q_(u),B=!1;if(!C){let e=v||!px(this)&&p;(h||e)&&(B=Jv(Wy(_),y),C=!B),(!Jv(l.immediate,S)&&!S||!Jv(m.decay,f)||!Jv(m.velocity,b))&&(C=!0)}if(B&&hx(this)&&(l.changed&&!v?C=!0:C||this._stop(a)),!g&&((C||q_(a))&&(l.values=k.getPayload(),l.toValues=q_(u)?null:w==Iy?[1]:n_(y)),l.immediate!=S&&(l.immediate=S,!S&&!v&&this._set(a)),C)){let{onRest:e}=l;e_(xx,(e=>Sx(this,t,e)));let o=nx(this,kx(this,a));s_(this._pendingCalls,o),this._pendingCalls.add(n),l.changed&&Pv.batchedUpdates((()=>{l.changed=!v,e?.(o,this),v?Dy(s.onRest,o):l.onStart?.(o,this)}))}v&&this._set(_),g?n(rx(t.to,t,this._state,this)):C?this._start():hx(this)&&!h?this._pendingCalls.add(n):n(tx(_))}_focus(e){let t=this.animation;e!==t.to&&(X_(this)&&this._detach(),t.to=e,X_(this)&&this._attach())}_attach(){let e=0,{to:t}=this.animation;q_(t)&&(ty(t,this),ax(t)&&(e=t.priority+1)),this.priority=e}_detach(){let{to:e}=this.animation;q_(e)&&ny(e,this)}_set(e,t=!0){let n=Y_(e);if(!Qv.und(n)){let e=xy(this);if(!e||!Jv(n,e.getValue())){let o=Py(n);e&&e.constructor==o?e.setValue(n):Sy(this,o.create(n)),e&&Pv.batchedUpdates((()=>{this._onChange(n,t)}))}}return xy(this)}_onStart(){let e=this.animation;e.changed||(e.changed=!0,wx(this,"onStart",nx(this,kx(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),Dy(this.animation.onChange,e,this)),Dy(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){let e=this.animation;xy(this).reset(Y_(e.to)),e.immediate||(e.fromValues=e.values.map((e=>e.lastPosition))),hx(this)||(mx(this,!0),gx(this)||this._resume())}_resume(){Yv.skipAnimation?this.finish():f_.start(this)}_stop(e,t){if(hx(this)){mx(this,!1);let n=this.animation;e_(n.values,(e=>{e.done=!0})),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),Q_(this,{type:"idle",parent:this});let o=t?ox(this.get()):nx(this.get(),kx(this,e??n.to));s_(this._pendingCalls,o),n.changed&&(n.changed=!1,wx(this,"onRest",o,this))}}};function kx(e,t){let n=Wy(t);return Jv(Wy(e.get()),n)}function vx(e,t=e.loop,n=e.to){let o=Dy(t);if(o){let r=!0!==o&&$y(o),i=(r||e).reverse,s=!r||r.reset;return _x({...e,loop:t,default:!1,pause:void 0,to:!i||Ky(n)?n:void 0,from:s?e.from:void 0,reset:s,...r})}}function _x(e){let{to:t,from:n}=e=$y(e),o=new Set;return Qv.obj(t)&&yx(t,o),Qv.obj(n)&&yx(n,o),e.keys=o.size?Array.from(o):null,e}function yx(e,t){t_(e,((e,n)=>null!=e&&t.add(n)))}var xx=["onStart","onRest","onChange","onPause","onResume"];function Sx(e,t,n){e.animation[n]=t[n]!==Vy(t,n)?zy(t[n],e.key):void 0}function wx(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var Cx=["onStart","onChange","onRest"],Bx=1,Ix=class{id=Bx++;springs={};queue=[];ref;_flush;_initialProps;_lastAsyncId=0;_active=new Set;_changed=new Set;_started=!1;_item;_state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set};_events={onStart:new Map,onChange:new Map,onRest:new Map};constructor(e,t){this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every((e=>e.idle&&!e.isDelayed&&!e.isPaused))}get item(){return this._item}set item(e){this._item=e}get(){let e={};return this.each(((t,n)=>e[n]=t.get())),e}set(e){for(let t in e){let n=e[t];Qv.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(_x(e)),this}start(e){let{queue:t}=this;return e?t=n_(e).map(_x):this.queue=[],this._flush?this._flush(this,t):(Px(this,t),jx(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){let n=this.springs;e_(n_(t),(t=>n[t].stop(!!e)))}else ix(this._state,this._lastAsyncId),this.each((t=>t.stop(!!e)));return this}pause(e){if(Qv.und(e))this.start({pause:!0});else{let t=this.springs;e_(n_(e),(e=>t[e].pause()))}return this}resume(e){if(Qv.und(e))this.start({pause:!1});else{let t=this.springs;e_(n_(e),(e=>t[e].resume()))}return this}each(e){t_(this.springs,e)}_onFrame(){let{onStart:e,onChange:t,onRest:n}=this._events,o=this._active.size>0,r=this._changed.size>0;(o&&!this._started||r&&!this._started)&&(this._started=!0,o_(e,(([e,t])=>{t.value=this.get(),e(t,this,this._item)})));let i=!o&&this._started,s=r||i&&n.size?this.get():null;r&&t.size&&o_(t,(([e,t])=>{t.value=s,e(t,this,this._item)})),i&&(this._started=!1,o_(n,(([e,t])=>{t.value=s,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)}Pv.onFrame(this._onFrame)}};function jx(e,t){return Promise.all(t.map((t=>Ex(e,t)))).then((t=>ex(e,t)))}async function Ex(e,t,n){let{keys:o,to:r,from:i,loop:s,onRest:l,onResolve:a}=t,c=Qv.obj(t.default)&&t.default;s&&(t.loop=!1),!1===r&&(t.to=null),!1===i&&(t.from=null);let u=Qv.arr(r)||Qv.fun(r)?r:void 0;u?(t.to=void 0,t.onRest=void 0,c&&(c.onRest=void 0)):e_(Cx,(n=>{let o=t[n];if(Qv.fun(o)){let r=e._events[n];t[n]=({finished:e,cancelled:t})=>{let n=r.get(o);n?(e||(n.finished=!1),t&&(n.cancelled=!0)):r.set(o,{value:null,finished:e||!1,cancelled:t||!1})},c&&(c[n]=t[n])}}));let d=e._state;t.pause===!d.paused?(d.paused=t.pause,s_(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);let p=(o||Object.keys(e.springs)).map((n=>e.springs[n].start(t))),h=!0===t.cancel||!0===Vy(t,"cancel");(u||h&&d.asyncId)&&p.push(Jy(++e._lastAsyncId,{props:t,state:d,actions:{pause:Xv,resume:Xv,start(t,n){h?(ix(d,e._lastAsyncId),n(ox(e))):(t.onRest=l,n(rx(u,t,d,e)))}}})),d.paused&&await new Promise((e=>{d.resumeQueue.add(e)}));let g=ex(e,await Promise.all(p));if(s&&g.finished&&(!n||!g.noop)){let n=vx(t,s,r);if(n)return Px(e,[n]),Ex(e,n,!0)}return a&&Pv.batchedUpdates((()=>a(g,e,e.item))),g}function Tx(e,t){let n=new bx;return n.key=e,t&&ty(n,t),n}function Mx(e,t,n){t.keys&&e_(t.keys,(o=>{(e[o]||(e[o]=n(o)))._prepareNode(t)}))}function Px(e,t){e_(t,(t=>{Mx(e.springs,t,(t=>Tx(t,e)))}))}var Rx=({children:e,...t})=>{let n=(0,ic.useContext)(Ax),o=t.pause||!!n.pause,r=t.immediate||!!n.immediate;t=function(e,t){let[n]=(0,ic.useState)((()=>({inputs:t,result:e()}))),o=(0,ic.useRef)(),r=o.current,i=r;return i?Boolean(t&&i.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,i.inputs))||(i={inputs:t,result:e()}):i=n,(0,ic.useEffect)((()=>{o.current=i,r==n&&(n.inputs=n.result=void 0)}),[i]),i.result}((()=>({pause:o,immediate:r})),[o,r]);let{Provider:i}=Ax;return ic.createElement(i,{value:t},e)},Ax=function(e,t){return Object.assign(e,ic.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}(Rx,{});Rx.Provider=Ax.Provider,Rx.Consumer=Ax.Consumer;var Nx=class extends ux{constructor(e,t){super(),this.source=e,this.calc=z_(...t);let n=this._get(),o=Py(n);Sy(this,o.create(n))}key;idle=!0;calc;_active=new Set;advance(e){let t=this._get();Jv(t,this.get())||(xy(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&Dx(this._active)&&Ox(this)}_get(){let e=Qv.arr(this.source)?this.source.map(Y_):n_(Y_(this.source));return this.calc(...e)}_start(){this.idle&&!Dx(this._active)&&(this.idle=!1,e_(wy(this),(e=>{e.done=!1})),Yv.skipAnimation?(Pv.batchedUpdates((()=>this.advance())),Ox(this)):f_.start(this))}_attach(){let e=1;e_(n_(this.source),(t=>{q_(t)&&ty(t,this),ax(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))})),this.priority=e,this._start()}_detach(){e_(n_(this.source),(e=>{q_(e)&&ny(e,this)})),this._active.clear(),Ox(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=n_(this.source).reduce(((e,t)=>Math.max(e,(ax(t)?t.priority:0)+1)),0))}};function Lx(e){return!1!==e.idle}function Dx(e){return!e.size||Array.from(e).every(Lx)}function Ox(e){e.idle||(e.idle=!0,e_(wy(e),(e=>{e.done=!0})),Q_(e,{type:"idle",parent:e}))}Yv.assign({createStringInterpolator:hy,to:(e,t)=>new Nx(e,t)});f_.advance;const zx=window.ReactDOM;var Vx=/^--/;function Fx(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||Vx.test(e)||Ux.hasOwnProperty(e)&&Ux[e]?(""+t).trim():t+"px"}var Hx={};var Ux={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},Gx=["Webkit","Ms","Moz","O"];Ux=Object.keys(Ux).reduce(((e,t)=>(Gx.forEach((n=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(n,t)]=e[t])),e)),Ux);var $x=/^(matrix|translate|scale|rotate|skew)/,Wx=/^(translate)/,Kx=/^(rotate|skew)/,Zx=(e,t)=>Qv.num(e)&&0!==e?e+t:e,qx=(e,t)=>Qv.arr(e)?e.every((e=>qx(e,t))):Qv.num(e)?e===t:parseFloat(e)===t,Yx=class extends Ey{constructor({x:e,y:t,z:n,...o}){let r=[],i=[];(e||t||n)&&(r.push([e||0,t||0,n||0]),i.push((e=>[`translate3d(${e.map((e=>Zx(e,"px"))).join(",")})`,qx(e,0)]))),t_(o,((e,t)=>{if("transform"===t)r.push([e||""]),i.push((e=>[e,""===e]));else if($x.test(t)){if(delete o[t],Qv.und(e))return;let n=Wx.test(t)?"px":Kx.test(t)?"deg":"";r.push(n_(e)),i.push("rotate3d"===t?([e,t,o,r])=>[`rotate3d(${e},${t},${o},${Zx(r,n)})`,qx(r,0)]:e=>[`${t}(${e.map((e=>Zx(e,n))).join(",")})`,qx(e,t.startsWith("scale")?1:0)])}})),r.length&&(o.transform=new Xx(r,i)),super(o)}},Xx=class extends J_{constructor(e,t){super(),this.inputs=e,this.transforms=t}_value=null;get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return e_(this.inputs,((n,o)=>{let r=Y_(n[0]),[i,s]=this.transforms[o](Qv.arr(r)?r:n.map(Y_));e+=" "+i,t=t&&s})),t?"none":e}observerAdded(e){1==e&&e_(this.inputs,(e=>e_(e,(e=>q_(e)&&ty(e,this)))))}observerRemoved(e){0==e&&e_(this.inputs,(e=>e_(e,(e=>q_(e)&&ny(e,this)))))}eventObserved(e){"change"==e.type&&(this._value=null),Q_(this,e)}};Yv.assign({batchedUpdates:zx.unstable_batchedUpdates,createStringInterpolator:hy,colors:{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}});var Qx=((e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=e=>new Ey(e),getComponentProps:o=e=>e}={})=>{let r={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:o},i=e=>{let t=Ly(e)||"Anonymous";return(e=Qv.str(e)?i[e]||(i[e]=Ry(e,r)):e[Ny]||(e[Ny]=Ry(e,r))).displayName=`Animated(${t})`,e};return t_(e,((t,n)=>{Qv.arr(e)&&(n=Ly(t)),i[n]=i(t)})),{animated:i}})(["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;let n="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,{style:o,children:r,scrollTop:i,scrollLeft:s,viewBox:l,...a}=t,c=Object.values(a),u=Object.keys(a).map((t=>n||e.hasAttribute(t)?t:Hx[t]||(Hx[t]=t.replace(/([A-Z])/g,(e=>"-"+e.toLowerCase())))));void 0!==r&&(e.textContent=r);for(let t in o)if(o.hasOwnProperty(t)){let n=Fx(t,o[t]);Vx.test(t)?e.style.setProperty(t,n):e.style[t]=n}u.forEach(((t,n)=>{e.setAttribute(t,c[n])})),void 0!==i&&(e.scrollTop=i),void 0!==s&&(e.scrollLeft=s),void 0!==l&&e.setAttribute("viewBox",l)},createAnimatedStyle:e=>new Yx(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),Jx=Qx.animated;function eS(e){return{top:e.offsetTop,left:e.offsetLeft}}var tS=function({triggerAnimationOnChange:e,clientId:t}){const n=(0,h.useRef)(),{isTyping:o,getGlobalBlockCount:r,isBlockSelected:i,isFirstMultiSelectedBlock:s,isBlockMultiSelected:l,isAncestorMultiSelected:a,isDraggingBlocks:c}=(0,g.useSelect)(ji),{previous:u,prevRect:d}=(0,h.useMemo)((()=>({previous:n.current&&eS(n.current),prevRect:n.current&&n.current.getBoundingClientRect()})),[e]);return(0,h.useLayoutEffect)((()=>{if(!u||!n.current)return;const e=(0,Ga.getScrollContainer)(n.current),p=i(t),h=p||s(t),g=c();function m(){if(!g&&h&&d){const t=n.current.getBoundingClientRect().top-d.top;t&&(e.scrollTop+=t)}}if(window.matchMedia("(prefers-reduced-motion: reduce)").matches||o()||r()>200)return void m();const f=p||l(t)||a(t);if(f&&g)return;const b=f?"1":"",k=new Ix({x:0,y:0,config:{mass:5,tension:2e3,friction:200},onChange({value:e}){if(!n.current)return;let{x:t,y:o}=e;t=Math.round(t),o=Math.round(o);const r=0===t&&0===o;n.current.style.transformOrigin="center center",n.current.style.transform=r?null:`translate3d(${t}px,${o}px,0)`,n.current.style.zIndex=b,m()}});n.current.style.transform=void 0;const v=eS(n.current),_=Math.round(u.left-v.left),y=Math.round(u.top-v.top);return k.start({x:0,y:0,from:{x:_,y}}),()=>{k.stop(),k.set({x:0,y:0})}}),[u,d,t,o,r,i,s,l,a,c]),n};function nS({clientId:e,initialPosition:t}){const n=(0,h.useRef)(),{isBlockSelected:o,isMultiSelecting:r,isZoomOut:i}=G((0,g.useSelect)(ji));return(0,h.useEffect)((()=>{if(!o(e)||r()||i())return;if(null==t)return;if(!n.current)return;const{ownerDocument:s}=n.current;if(Wm(n.current,s.activeElement))return;const l=Ga.focus.tabbable.find(n.current).filter((e=>(0,Ga.isTextField)(e))),a=-1===t,c=l[a?l.length-1:0]||n.current;if(Wm(n.current,c)){if(!n.current.getAttribute("contenteditable")){const e=Ga.focus.tabbable.findNext(n.current);if(e&&Wm(n.current,e)&&(0,Ga.isFormElement)(e))return void e.focus()}(0,Ga.placeCaretAtHorizontalEdge)(c,a)}else n.current.focus()}),[t,e]),n}function oS(e){e.defaultPrevented||(e.preventDefault(),e.currentTarget.classList.toggle("is-hovered","mouseover"===e.type))}function rS(e){const{isBlockSelected:t}=(0,g.useSelect)(ji),{selectBlock:n,selectionChange:o}=(0,g.useDispatch)(ji);return(0,m.useRefEffect)((r=>{function i(i){r.parentElement.closest('[contenteditable="true"]')||(t(e)?i.target.isContentEditable||o(e):Wm(r,i.target)&&n(e))}return r.addEventListener("focusin",i),()=>{r.removeEventListener("focusin",i)}}),[t,n])}function iS(e){return!e||"transparent"===e||"rgba(0, 0, 0, 0)"===e}function sS({clientId:e,isSelected:t}){const{getBlockRootClientId:n,isZoomOut:o,hasMultiSelection:r}=G((0,g.useSelect)(ji)),{insertAfterBlock:i,removeBlock:s,resetZoomLevel:l,startDraggingBlocks:a,stopDraggingBlocks:c}=G((0,g.useDispatch)(ji));return(0,m.useRefEffect)((u=>{if(t)return u.addEventListener("keydown",d),u.addEventListener("dragstart",p),()=>{u.removeEventListener("keydown",d),u.removeEventListener("dragstart",p)};function d(t){const{keyCode:n,target:r}=t;n!==Wa.ENTER&&n!==Wa.BACKSPACE&&n!==Wa.DELETE||r!==u||(0,Ga.isTextField)(r)||(t.preventDefault(),n===Wa.ENTER&&o()?l():n===Wa.ENTER?i(e):s(e))}function p(t){if(u!==t.target||u.isContentEditable||u.ownerDocument.activeElement!==u||r())return void t.preventDefault();const o=JSON.stringify({type:"block",srcClientIds:[e],srcRootClientId:n(e)});t.dataTransfer.effectAllowed="move",t.dataTransfer.clearData(),t.dataTransfer.setData("wp-blocks",o);const{ownerDocument:i}=u,{defaultView:s}=i;s.getSelection().removeAllRanges();const l=i.createElement("div");l.style.width="1px",l.style.height="1px",l.style.position="fixed",l.style.visibility="hidden",i.body.appendChild(l),t.dataTransfer.setDragImage(l,0,0);const d=u.getBoundingClientRect(),p=u.cloneNode(!0);p.style.visibility="hidden",p.style.display="none";const h=u.id;u.id=null;let g=1;{let e=u;for(;e=e.parentElement;){const{scale:t}=s.getComputedStyle(e);if(t&&"none"!==t){g=parseFloat(t);break}}}const m=1/g;u.after(p);const f={};for(const e of["transform","transformOrigin","transition","zIndex","position","top","left","pointerEvents","opacity","backgroundColor"])f[e]=u.style[e];const b=s.scrollY,k=s.scrollX,v=t.clientX,_=t.clientY;u.style.position="relative",u.style.top="0px",u.style.left="0px";const y=t.clientX-d.left,x=t.clientY-d.top,S=d.height>200?200/d.height:1;if(u.style.zIndex="1000",u.style.transformOrigin=`${y*m}px ${x*m}px`,u.style.transition="transform 0.2s ease-out",u.style.transform=`scale(${S})`,u.style.opacity="0.9",iS(s.getComputedStyle(u).backgroundColor)){let e="transparent",t=u;for(;t=t.parentElement;){const{backgroundColor:n}=s.getComputedStyle(t);if(!iS(n)){e=n;break}}u.style.backgroundColor=e}let w=!1;function C(e){w||(w=!0,u.style.pointerEvents="none");const t=s.scrollY,n=s.scrollX;u.style.top=(e.clientY-_+t-b)*m+"px",u.style.left=(e.clientX-v+n-k)*m+"px"}function B(){i.removeEventListener("dragover",C),i.removeEventListener("dragend",B),i.removeEventListener("drop",B),i.removeEventListener("scroll",C);for(const[e,t]of Object.entries(f))u.style[e]=t;p.remove(),u.id=h,l.remove(),c(),document.body.classList.remove("is-dragging-components-draggable"),i.documentElement.classList.remove("is-dragging")}i.addEventListener("dragover",C),i.addEventListener("dragend",B),i.addEventListener("drop",B),i.addEventListener("scroll",C),a([e]),document.body.classList.add("is-dragging-components-draggable"),i.documentElement.classList.add("is-dragging")}}),[e,t,n,i,s,o,l,r,a,c])}function lS(){const e=(0,h.useContext)(sw);return(0,m.useRefEffect)((t=>{if(e)return e.observe(t),()=>{e.unobserve(t)}}),[e])}function aS({isSelected:e}){const t=(0,m.useReducedMotion)();return(0,m.useRefEffect)((n=>{if(e){const{ownerDocument:e}=n,{defaultView:o}=e;if(!o.IntersectionObserver)return;const r=new o.IntersectionObserver((e=>{e[0].isIntersecting||n.scrollIntoView({behavior:t?"instant":"smooth"}),r.disconnect()}));return r.observe(n),()=>{r.disconnect()}}}),[e])}function cS({clientId:e="",isEnabled:t=!0}={}){const{getEnabledClientIdsTree:n}=G((0,g.useSelect)(ji));return(0,m.useRefEffect)((o=>{if(!t)return;const r=t=>{(t.target===o||t.target.classList.contains("is-root-container"))&&(t.defaultPrevented||(t.preventDefault(),n(e).forEach((({clientId:e})=>{const t=o.querySelector(`[data-block="${e}"]`);t&&(t.classList.remove("has-editable-outline"),t.offsetWidth,t.classList.add("has-editable-outline"))}))))};return o.addEventListener("click",r),()=>o.removeEventListener("click",r)}),[t])}const uS=new Map;function dS(e){const t=e.getAttribute("data-draggable");t&&(e.removeAttribute("data-draggable"),"true"!==t||e.getAttribute("draggable")||e.setAttribute("draggable","true"))}function pS(e){const{target:t}=e,{ownerDocument:n,isContentEditable:o,tagName:r}=t,i=["INPUT","TEXTAREA"].includes(r),s=uS.get(n);if(o||i)for(const e of s)"true"===e.getAttribute("draggable")&&e.contains(t)&&(e.removeAttribute("draggable"),e.setAttribute("data-draggable","true"));else for(const e of s)dS(e)}function hS(){return(0,m.useRefEffect)((e=>(function(e,t){let n=uS.get(e);n||(n=new Set,uS.set(e,n),e.addEventListener("pointerdown",pS)),n.add(t)}(e.ownerDocument,e),()=>{!function(e,t){const n=uS.get(e);n&&(n.delete(t),dS(t),0===n.size&&(uS.delete(e),e.removeEventListener("pointerdown",pS)))}(e.ownerDocument,e)})),[])}function gS(e={},{__unstableIsHtml:t}={}){const{clientId:n,className:o,wrapperProps:r={},isAligned:i,index:s,mode:l,name:a,blockApiVersion:c,blockTitle:u,isSelected:d,isSubtreeDisabled:p,hasOverlay:g,initialPosition:f,blockEditingMode:b,isHighlighted:k,isMultiSelected:v,isPartiallySelected:y,isReusable:x,isDragging:S,hasChildSelected:w,isEditingDisabled:B,hasEditableOutline:I,isTemporarilyEditingAsBlocks:j,defaultClassName:E,isSectionBlock:M,canMove:P,isBlockHidden:R}=(0,h.useContext)(pv),A=(0,T.sprintf)((0,T.__)("Block: %s"),u),N="html"!==l||t?"":"-visual",L=hS(),D=(0,m.useMergeRefs)([e.ref,nS({clientId:n,initialPosition:f}),gh(n),rS(n),sS({clientId:n,isSelected:d}),(0,m.useRefEffect)((e=>(e.addEventListener("mouseout",oS),e.addEventListener("mouseover",oS),()=>{e.removeEventListener("mouseout",oS),e.removeEventListener("mouseover",oS),e.classList.remove("is-hovered")})),[]),lS(),tS({triggerAnimationOnChange:s,clientId:n}),(0,m.useDisabled)({isDisabled:!g}),cS({clientId:n,isEnabled:M}),aS({isSelected:d}),P?L:void 0]),O=C(),z=!!O[_]?{"--wp-admin-theme-color":"var(--wp-block-synced-color)","--wp-admin-theme-color--rgb":"var(--wp-block-synced-color--rgb)"}:{};c<2&&n===O.clientId&&js()(`Block type "${a}" must support API version 2 or higher to work correctly with "useBlockProps" method.`);let V=!1;return"-"!==r?.style?.marginTop?.charAt(0)&&"-"!==r?.style?.marginBottom?.charAt(0)&&"-"!==r?.style?.marginLeft?.charAt(0)&&"-"!==r?.style?.marginRight?.charAt(0)||(V=!0),{tabIndex:"disabled"===b?-1:0,draggable:!(!P||w)||void 0,...r,...e,ref:D,id:`block-${n}${N}`,role:"document","aria-label":A,"data-block":n,"data-type":a,"data-title":u,inert:p?"true":void 0,className:ms("block-editor-block-list__block",{"wp-block":!i,"has-block-overlay":g,"is-selected":d,"is-highlighted":k,"is-multi-selected":v,"is-partially-selected":y,"is-reusable":x,"is-dragging":S,"has-child-selected":w,"is-editing-disabled":B,"has-editable-outline":I,"has-negative-margin":V,"is-content-locked-temporarily-editing-as-blocks":j,"is-block-hidden":R},o,e.className,r.className,E),style:{...r.style,...e.style,...z}}}function mS({children:e,isHtml:t,...n}){return(0,d.jsx)("div",{...gS(n,{__unstableIsHtml:t}),children:e})}function fS({block:{__unstableBlockSource:e},mode:t,isLocked:n,canRemove:o,clientId:r,isSelected:i,isSelectionEnabled:s,className:l,__unstableLayoutClassNames:a,name:c,isValid:u,attributes:g,wrapperProps:m,setAttributes:f,onReplace:b,onRemove:k,onInsertBlocksAfter:v,onMerge:_,toggleSelection:y}){const{mayDisplayControls:x,mayDisplayParentControls:S,themeSupportsLayout:w,...C}=(0,h.useContext)(pv),B=ta()||{};let I=(0,d.jsx)(vv,{name:c,isSelected:i,attributes:g,setAttributes:f,insertBlocksAfter:n?void 0:v,onReplace:o?b:void 0,onRemove:o?k:void 0,mergeBlocks:o?_:void 0,clientId:r,isSelectionEnabled:s,toggleSelection:y,__unstableLayoutClassNames:a,__unstableParentLayout:Object.keys(B).length?B:void 0,mayDisplayControls:x,mayDisplayParentControls:S,blockEditingMode:C.blockEditingMode,isPreviewMode:C.isPreviewMode});const j=(0,p.getBlockType)(c);j?.getEditWrapperProps&&(m=function(e,t){const n={...e,...t};return e?.hasOwnProperty("className")&&t?.hasOwnProperty("className")&&(n.className=ms(e.className,t.className)),e?.hasOwnProperty("style")&&t?.hasOwnProperty("style")&&(n.style={...e.style,...t.style}),n}(m,j.getEditWrapperProps(g)));const E=m&&!!m["data-align"]&&!w,T=l?.includes("is-position-sticky");let M;if(E&&(I=(0,d.jsx)("div",{className:ms("wp-block",T&&l),"data-align":m["data-align"],children:I})),u)M="html"===t?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("div",{style:{display:"none"},children:I}),(0,d.jsx)(mS,{isHtml:!0,children:(0,d.jsx)(Tv,{clientId:r})})]}):j?.apiVersion>1?I:(0,d.jsx)(mS,{children:I});else{const t=e?(0,p.serializeRawBlock)(e):(0,p.getSaveContent)(j,g);M=(0,d.jsxs)(mS,{className:"has-warning",children:[(0,d.jsx)(wv,{clientId:r}),(0,d.jsx)(h.RawHTML,{children:(0,Ga.safeHTML)(t)})]})}const{"data-align":P,...R}=m??{},A={...R,className:ms(R.className,P&&w&&`align${P}`,!(P&&T)&&l)};return(0,d.jsx)(pv.Provider,{value:{wrapperProps:A,isAligned:E,...C},children:(0,d.jsx)(jv,{fallback:(0,d.jsx)(mS,{className:"has-warning",children:(0,d.jsx)(Bv,{})}),children:M})})}gS.save=p.__unstableGetBlockProps;const bS=(0,g.withDispatch)(((e,t,n)=>{const{updateBlockAttributes:o,insertBlocks:r,mergeBlocks:i,replaceBlocks:s,toggleSelection:l,__unstableMarkLastChangeAsPersistent:a,moveBlocksToPosition:c,removeBlock:u,selectBlock:d}=e(ji);return{setAttributes(e){const{getMultiSelectedBlockClientIds:r}=n.select(ji),i=r(),{clientId:s,attributes:l}=t,a=i.length?i:[s],c="function"==typeof e?e(l):e;o(a,c)},onInsertBlocks(e,n){const{rootClientId:o}=t;r(e,n,o)},onInsertBlocksAfter(e){const{clientId:o,rootClientId:i}=t,{getBlockIndex:s}=n.select(ji),l=s(o);r(e,l+1,i)},onMerge(e){const{clientId:o,rootClientId:l}=t,{getPreviousBlockClientId:a,getNextBlockClientId:h,getBlock:g,getBlockAttributes:m,getBlockName:f,getBlockOrder:b,getBlockIndex:k,getBlockRootClientId:v,canInsertBlockType:_}=n.select(ji);function y(){const e=g(o),t=(0,p.getDefaultBlockName)(),r=(0,p.getBlockType)(t);if(f(o)!==t){const n=(0,p.switchToBlockType)(e,t);n&&n.length&&s(o,n)}else if((0,p.isUnmodifiedDefaultBlock)(e)){const e=h(o);e&&n.batch((()=>{u(o),d(e)}))}else if(r.merge){const n=r.merge({},e.attributes);s([o],[(0,p.createBlock)(t,n)])}}function x(e,t=!0){const o=f(e),i="text"===(0,p.getBlockType)(o).category,s=v(e),l=b(e),[a]=l;1===l.length&&(0,p.isUnmodifiedBlock)(g(a))?u(e):i?n.batch((()=>{if(_(f(a),s))c([a],e,s,k(e));else{const n=(0,p.switchToBlockType)(g(a),(0,p.getDefaultBlockName)());n&&n.length&&n.every((e=>_(e.name,s)))?(r(n,k(e),s,t),u(a,!1)):y()}!b(e).length&&(0,p.isUnmodifiedBlock)(g(e))&&u(e,!1)})):y()}if(e){if(l){const e=h(l);if(e){if(f(l)!==f(e))return void i(l,e);{const t=m(l),o=m(e);if(Object.keys(t).every((e=>t[e]===o[e])))return void n.batch((()=>{c(b(e),e,l),u(e,!1)}))}}}const e=h(o);if(!e)return;b(e).length?x(e,!1):i(o,e)}else{const e=a(o);if(e)i(e,o);else if(l){const e=a(l);if(e&&f(l)===f(e)){const t=m(l),o=m(e);if(Object.keys(t).every((e=>t[e]===o[e])))return void n.batch((()=>{c(b(l),l,e),u(l,!1)}))}x(l)}else y()}},onReplace(e,n,o){e.length&&!(0,p.isUnmodifiedDefaultBlock)(e[e.length-1])&&a();const r=1===e?.length&&Array.isArray(e[0])?e[0]:e;s([t.clientId],r,n,o)},onRemove(){u(t.clientId)},toggleSelection(e){l(e)}}}));fS=(0,m.compose)(bS,(0,ws.withFilters)("editor.BlockListBlock"))(fS);var kS=(0,h.memo)((function(e){const{clientId:t,rootClientId:n}=e,o=(0,g.useSelect)((e=>{const{isBlockSelected:o,getBlockMode:r,isSelectionEnabled:i,getTemplateLock:s,isSectionBlock:l,getBlockWithoutAttributes:a,getBlockAttributes:c,canRemoveBlock:u,canMoveBlock:d,getSettings:h,getTemporarilyEditingAsBlocks:g,getBlockEditingMode:m,getBlockName:f,isFirstMultiSelectedBlock:b,getMultiSelectedBlockClientIds:k,hasSelectedInnerBlock:v,getBlocksByName:_,getBlockIndex:y,isBlockMultiSelected:x,isBlockSubtreeDisabled:S,isBlockHighlighted:w,__unstableIsFullySelected:C,__unstableSelectionHasUnmergeableBlock:B,isBlockBeingDragged:I,isDragging:j,__unstableHasActiveBlockOverlayActive:E,getSelectedBlocksInitialCaretPosition:T}=G(e(ji)),M=a(t);if(!M)return;const{hasBlockSupport:P,getActiveBlockVariation:R}=e(p.store),A=c(t),{name:N,isValid:L}=M,D=(0,p.getBlockType)(N),{supportsLayout:O,isPreviewMode:z,__experimentalBlockBindingsSupportedAttributes:V}=h(),F=V?.[N],H=D?.apiVersion>1,U={isPreviewMode:z,blockWithoutAttributes:M,name:N,attributes:A,isValid:L,themeSupportsLayout:O,index:y(t),isReusable:(0,p.isReusableBlock)(D),className:H?A.className:void 0,defaultClassName:H?(0,p.getBlockDefaultClassName)(N):void 0,blockTitle:D?.title,isBlockHidden:!1===A?.metadata?.blockVisibility,bindableAttributes:F};if(z)return U;const{isBlockHidden:$}=G(e(ji)),W=o(t),K=u(t),Z=d(t),q=R(N,A),Y=x(t),X=v(t,!0),Q=m(t),J=(0,p.hasBlockSupport)(N,"multiple",!0)?[]:_(N),ee=J.length&&J[0]!==t;return{...U,mode:r(t),isSelectionEnabled:i(),isLocked:!!s(n),isSectionBlock:l(t),canRemove:K,canMove:Z,isSelected:W,isTemporarilyEditingAsBlocks:g()===t,blockEditingMode:Q,mayDisplayControls:W||b(t)&&k().every((e=>f(e)===N)),mayDisplayParentControls:P(f(t),"__experimentalExposeControlsToChildren",!1)&&v(t),blockApiVersion:D?.apiVersion||1,blockTitle:q?.title||D?.title,isSubtreeDisabled:"disabled"===Q&&S(t),hasOverlay:E(t)&&!j(),initialPosition:W?T():void 0,isHighlighted:w(t),isMultiSelected:Y,isPartiallySelected:Y&&!C()&&!B(),isDragging:I(t),hasChildSelected:X,isEditingDisabled:"disabled"===Q,hasEditableOutline:"disabled"!==Q&&"disabled"===m(n),originalBlockClientId:!!ee&&J[0],isBlockHidden:$(t)}}),[t,n]),{isPreviewMode:r,mode:i="visual",isSelectionEnabled:s=!1,isLocked:l=!1,canRemove:a=!1,canMove:c=!1,blockWithoutAttributes:u,name:m,attributes:f,isValid:b,isSelected:k=!1,themeSupportsLayout:v,isTemporarilyEditingAsBlocks:_,blockEditingMode:y,mayDisplayControls:x,mayDisplayParentControls:S,index:w,blockApiVersion:C,blockTitle:B,isSubtreeDisabled:I,hasOverlay:j,initialPosition:E,isHighlighted:T,isMultiSelected:M,isPartiallySelected:P,isReusable:R,isDragging:A,hasChildSelected:N,isSectionBlock:L,isEditingDisabled:D,hasEditableOutline:O,className:z,defaultClassName:V,originalBlockClientId:F,isBlockHidden:H,bindableAttributes:U}=o,$=(0,h.useMemo)((()=>({...u,attributes:f})),[u,f]);if(!o)return null;const W={isPreviewMode:r,clientId:t,className:z,index:w,mode:i,name:m,blockApiVersion:C,blockTitle:B,isSelected:k,isSubtreeDisabled:I,hasOverlay:j,initialPosition:E,blockEditingMode:y,isHighlighted:T,isMultiSelected:M,isPartiallySelected:P,isReusable:R,isDragging:A,hasChildSelected:N,isSectionBlock:L,isEditingDisabled:D,hasEditableOutline:O,isTemporarilyEditingAsBlocks:_,defaultClassName:V,mayDisplayControls:x,mayDisplayParentControls:S,originalBlockClientId:F,themeSupportsLayout:v,canMove:c,isBlockHidden:H,bindableAttributes:U};return!H||k||M||N?(0,d.jsx)(pv.Provider,{value:W,children:(0,d.jsx)(fS,{...e,mode:i,isSelectionEnabled:s,isLocked:l,canRemove:a,canMove:c,block:$,name:m,attributes:f,isValid:b,isSelected:k})}):null}));const vS=window.wp.htmlEntities,_S="\ufeff";function yS({rootClientId:e}){const{showPrompt:t,isLocked:n,placeholder:o,isManualGrid:r}=(0,g.useSelect)((t=>{const{getBlockCount:n,getSettings:o,getTemplateLock:r,getBlockAttributes:i}=t(ji),s=!n(e),{bodyPlaceholder:l}=o();return{showPrompt:s,isLocked:!!r(e),placeholder:l,isManualGrid:i(e)?.layout?.isManualPlacement}}),[e]),{insertDefaultBlock:i,startTyping:s}=(0,g.useDispatch)(ji);if(n||r)return null;const l=(0,vS.decodeEntities)(o)||(0,T.__)("Type / to choose a block"),a=()=>{i(void 0,e),s()};return(0,d.jsxs)("div",{"data-root-client-id":e||"",className:ms("block-editor-default-block-appender",{"has-visible-prompt":t}),children:[(0,d.jsx)("p",{tabIndex:"0",role:"button","aria-label":(0,T.__)("Add default block"),className:"block-editor-default-block-appender__content",onKeyDown:e=>{Wa.ENTER!==e.keyCode&&Wa.SPACE!==e.keyCode||a()},onClick:()=>a(),onFocus:()=>{t&&a()},children:t?l:_S}),(0,d.jsx)(lI,{rootClientId:e,position:"bottom right",isAppender:!0,__experimentalIsQuick:!0})]})}function xS({rootClientId:e}){return(0,g.useSelect)((t=>t(ji).canInsertBlockType((0,p.getDefaultBlockName)(),e)))?(0,d.jsx)(yS,{rootClientId:e}):(0,d.jsx)(uI,{rootClientId:e,className:"block-list-appender__toggle"})}function SS({rootClientId:e,CustomAppender:t,className:n,tagName:o="div"}){const r=(0,g.useSelect)((t=>{const{getBlockInsertionPoint:n,isBlockInsertionPointVisible:o,getBlockCount:r}=t(ji),i=n();return o()&&e===i?.rootClientId&&0===r(e)}),[e]);return(0,d.jsx)(o,{tabIndex:-1,className:ms("block-list-appender wp-block",n,{"is-drag-over":r}),contentEditable:!1,"data-block":!0,children:t?(0,d.jsx)(t,{}):(0,d.jsx)(xS,{rootClientId:e})})}const wS=Number.MAX_SAFE_INTEGER;var CS=function({previousClientId:e,nextClientId:t,children:n,__unstablePopoverSlot:o,__unstableContentRef:r,operation:i="insert",nearestSide:s="right",...l}){const[a,c]=(0,h.useReducer)((e=>(e+1)%wS),0),{orientation:u,rootClientId:p,isVisible:m}=(0,g.useSelect)((n=>{const{getBlockListSettings:o,getBlockRootClientId:r,isBlockVisible:i}=n(ji),s=r(e??t);return{orientation:o(s)?.orientation||"vertical",rootClientId:s,isVisible:i(e)&&i(t)}}),[e,t]),f=bh(e),b=bh(t),k="vertical"===u,v=(0,h.useMemo)((()=>{if(a<0||!f&&!b||!m)return;return{contextElement:"group"===i?b||f:f||b,getBoundingClientRect(){const e=f?f.getBoundingClientRect():null,t=b?b.getBoundingClientRect():null;let n=0,o=0,r=0,l=0;if("group"===i){const i=t||e;o=i.top,r=0,l=i.bottom-i.top,n="left"===s?i.left-2:i.right-2}else k?(o=e?e.bottom:t.top,r=e?e.width:t.width,l=t&&e?t.top-e.bottom:0,n=e?e.left:t.left):(o=e?e.top:t.top,l=e?e.height:t.height,(0,T.isRTL)()?(n=t?t.right:e.left,r=e&&t?e.left-t.right:0):(n=e?e.right:t.left,r=e&&t?t.left-e.right:0),r=Math.max(r,0));return new window.DOMRect(n,o,r,l)}}}),[f,b,a,k,m,i,s]),_=Fm(r);return(0,h.useLayoutEffect)((()=>{if(!f)return;const e=new window.MutationObserver(c);return e.observe(f,{attributes:!0}),()=>{e.disconnect()}}),[f]),(0,h.useLayoutEffect)((()=>{if(!b)return;const e=new window.MutationObserver(c);return e.observe(b,{attributes:!0}),()=>{e.disconnect()}}),[b]),(0,h.useLayoutEffect)((()=>{if(f)return f.ownerDocument.defaultView.addEventListener("resize",c),()=>{f.ownerDocument.defaultView?.removeEventListener("resize",c)}}),[f]),(f||b)&&m?(0,d.jsx)(ws.Popover,{ref:_,animate:!1,anchor:v,focusOnMount:!1,__unstableSlotName:o,inline:!o,...l,className:ms("block-editor-block-popover","block-editor-block-popover__inbetween",l.className),resize:!1,flip:!1,placement:"overlay",variant:"unstyled",children:(0,d.jsx)("div",{className:"block-editor-block-popover__inbetween-container",children:n})},t+"--"+p):null};const BS={hide:{opacity:0,scaleY:.75},show:{opacity:1,scaleY:1},exit:{opacity:0,scaleY:.9}};var IS=function({__unstablePopoverSlot:e,__unstableContentRef:t}){const{clientId:n}=(0,g.useSelect)((e=>{const{getBlockOrder:t,getBlockInsertionPoint:n}=e(ji),o=n(),r=t(o.rootClientId);return r.length?{clientId:r[o.index]}:{}}),[]),o=(0,m.useReducedMotion)();return(0,d.jsx)(of,{clientId:n,__unstablePopoverSlot:e,__unstableContentRef:t,className:"block-editor-block-popover__drop-zone",children:(0,d.jsx)(ws.__unstableMotion.div,{"data-testid":"block-popover-drop-zone",initial:o?BS.show:BS.hide,animate:BS.show,exit:o?BS.show:BS.exit,className:"block-editor-block-popover__drop-zone-foreground"})})};const jS=(0,h.createContext)();function ES({__unstablePopoverSlot:e,__unstableContentRef:t,operation:n="insert",nearestSide:o="right"}){const{selectBlock:r,hideInsertionPoint:i}=(0,g.useDispatch)(ji),s=(0,h.useContext)(jS),l=(0,h.useRef)(),{orientation:a,previousClientId:c,nextClientId:u,rootClientId:p,isInserterShown:f,isDistractionFree:b,isZoomOutMode:k}=(0,g.useSelect)((e=>{const{getBlockOrder:t,getBlockListSettings:n,getBlockInsertionPoint:o,isBlockBeingDragged:r,getPreviousBlockClientId:i,getNextBlockClientId:s,getSettings:l,isZoomOut:a}=G(e(ji)),c=o(),u=t(c.rootClientId);if(!u.length)return{};let d=u[c.index-1],p=u[c.index];for(;r(d);)d=i(d);for(;r(p);)p=s(p);const h=l();return{previousClientId:d,nextClientId:p,orientation:n(c.rootClientId)?.orientation||"vertical",rootClientId:c.rootClientId,isDistractionFree:h.isDistractionFree,isInserterShown:c?.__unstableWithInserter,isZoomOutMode:a()}}),[]),{getBlockEditingMode:v}=(0,g.useSelect)(ji),_=(0,m.useReducedMotion)();const y=(0,h.useCallback)((e=>{!e&&s.current&&(s.current=!1)}),[s]),x={start:{opacity:0,scale:0},rest:{opacity:1,scale:1,transition:{delay:f?.5:0,type:"tween"}},hover:{opacity:1,scale:1,transition:{delay:.5,type:"tween"}}},S={start:{scale:_?1:0},rest:{scale:1,transition:{delay:.4,type:"tween"}}};if(b)return null;if(k&&"insert"!==n)return null;const w=ms("block-editor-block-list__insertion-point","horizontal"===a||"group"===n?"is-horizontal":"is-vertical");return(0,d.jsx)(CS,{previousClientId:c,nextClientId:u,__unstablePopoverSlot:e,__unstableContentRef:t,operation:n,nearestSide:o,children:(0,d.jsxs)(ws.__unstableMotion.div,{layout:!_,initial:_?"rest":"start",animate:"rest",whileHover:"hover",whileTap:"pressed",exit:"start",ref:l,tabIndex:-1,onClick:function(e){e.target===l.current&&u&&"disabled"!==v(u)&&r(u,-1)},onFocus:function(e){e.target!==l.current&&(s.current=!0)},className:ms(w,{"is-with-inserter":f}),onHoverEnd:function(e){e.target!==l.current||s.current||i()},children:[(0,d.jsx)(ws.__unstableMotion.div,{variants:x,className:"block-editor-block-list__insertion-point-indicator","data-testid":"block-list-insertion-point-indicator"}),f&&(0,d.jsx)(ws.__unstableMotion.div,{variants:S,className:ms("block-editor-block-list__insertion-point-inserter"),children:(0,d.jsx)(lI,{ref:y,position:"bottom center",clientId:u,rootClientId:p,__experimentalIsQuick:!0,onToggle:e=>{s.current=e},onSelectOrClose:()=>{s.current=!1}})})]})})}function TS(e){const{insertionPoint:t,isVisible:n,isBlockListEmpty:o}=(0,g.useSelect)((e=>{const{getBlockInsertionPoint:t,isBlockInsertionPointVisible:n,getBlockCount:o}=e(ji),r=t();return{insertionPoint:r,isVisible:n(),isBlockListEmpty:0===o(r?.rootClientId)}}),[]);return!n||o?null:"replace"===t.operation?(0,d.jsx)(IS,{...e},`${t.rootClientId}-${t.index}`):(0,d.jsx)(ES,{operation:t.operation,nearestSide:t.nearestSide,...e})}function MS(){const e=(0,h.useContext)(jS),t=(0,g.useSelect)((e=>e(ji).getSettings().isDistractionFree||G(e(ji)).isZoomOut()),[]),{getBlockListSettings:n,getBlockIndex:o,isMultiSelecting:r,getSelectedBlockClientIds:i,getSettings:s,getTemplateLock:l,__unstableIsWithinBlockOverlay:a,getBlockEditingMode:c,getBlockName:u,getBlockAttributes:d,getParentSectionBlock:p}=G((0,g.useSelect)(ji)),{showInsertionPoint:f,hideInsertionPoint:b}=(0,g.useDispatch)(ji);return(0,m.useRefEffect)((h=>{if(!t)return h.addEventListener("mousemove",g),()=>{h.removeEventListener("mousemove",g)};function g(t){if(void 0===e||e.current)return;if(t.target.nodeType===t.target.TEXT_NODE)return;if(r())return;if(!t.target.classList.contains("block-editor-block-list__layout"))return void b();let h;if(!t.target.classList.contains("is-root-container")){h=(t.target.getAttribute("data-block")?t.target:t.target.closest("[data-block]")).getAttribute("data-block")}if(l(h)||"disabled"===c(h)||"core/block"===u(h)||h&&d(h).layout?.isManualPlacement)return;const g=n(h),m=g?.orientation||"vertical",k=!!g?.__experimentalCaptureToolbars,v=t.clientY,_=t.clientX;let y=Array.from(t.target.children).find((e=>{const t=e.getBoundingClientRect();return e.classList.contains("wp-block")&&"vertical"===m&&t.top>v||e.classList.contains("wp-block")&&"horizontal"===m&&((0,T.isRTL)()?t.right<_:t.left>_)}));if(!y)return void b();if(!y.id&&(y=y.firstElementChild,!y))return void b();const x=y.id.slice(6);if(!x||a(x)||p(x))return;if(i().includes(x)&&"vertical"===m&&!k&&!s().hasFixedToolbar)return;const S=y.getBoundingClientRect();if("horizontal"===m&&(t.clientY>S.bottom||t.clientY<S.top)||"vertical"===m&&(t.clientX>S.right||t.clientX<S.left))return void b();const w=o(x);0!==w?f(h,w,{__unstableWithInserter:!0}):b()}}),[e,n,o,r,f,b,i,t])}function PS(){const{getSettings:e,hasSelectedBlock:t,hasMultiSelection:n}=(0,g.useSelect)(ji),{clearSelectedBlock:o}=(0,g.useDispatch)(ji),{clearBlockSelection:r}=e();return(0,m.useRefEffect)((e=>{if(r)return e.addEventListener("mousedown",i),()=>{e.removeEventListener("mousedown",i)};function i(r){(t()||n())&&r.target===e&&o()}}),[t,n,o,r])}function RS(e){return(0,d.jsx)("div",{ref:PS(),...e})}jS.displayName="InsertionPointOpenRefContext";const AS=new WeakMap;function NS(){let e;return t=>(void 0!==e&&Ja()(e,t)||(e=t),e)}function LS(e){const[t]=(0,h.useState)(NS);return t(e)}function DS(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}function OS(e,t,n={}){const{operation:o="insert",nearestSide:r="right"}=n,{canInsertBlockType:i,getBlockIndex:s,getClientIdsOfDescendants:l,getBlockOrder:a,getBlocksByClientId:c,getSettings:u,getBlock:d}=(0,g.useSelect)(ji),{getGroupingBlockName:m}=(0,g.useSelect)(p.store),{insertBlocks:f,moveBlocksToPosition:b,updateBlockAttributes:k,clearSelectedBlock:v,replaceBlocks:_,removeBlocks:y}=(0,g.useDispatch)(ji),x=(0,g.useRegistry)(),S=(0,h.useCallback)(((n,s=!0,l=0,c=[])=>{Array.isArray(n)||(n=[n]);const u=a(e)[t];if("replace"===o)_(u,n,void 0,l);else if("group"===o){const t=d(u);"left"===r?n.push(t):n.unshift(t);const o=n.map((e=>(0,p.createBlock)(e.name,e.attributes,e.innerBlocks))),s=n.every((e=>"core/image"===e.name)),a=i("core/gallery",e),h=(0,p.createBlock)(s&&a?"core/gallery":m(),{layout:{type:"flex",flexWrap:s&&a?null:"nowrap"}},o);_([u,...c],h,void 0,l)}else f(n,t,e,s,l)}),[a,e,t,o,_,d,r,i,m,f]),w=(0,h.useCallback)(((n,r,i)=>{if("replace"===o){const o=c(n),r=a(e)[t];x.batch((()=>{y(n,!1),_(r,o,void 0,0)}))}else b(n,r,e,i)}),[o,a,c,b,x,y,_,t,e]),C=function(e,t,n,o,r,i,s,l,a){return c=>{const{srcRootClientId:u,srcClientIds:d,type:h,blocks:g}=DS(c);if("inserter"===h){s();const e=g.map((e=>(0,p.cloneBlock)(e)));i(e,!0,null)}if("block"===h){const s=n(d[0]);if(u===e&&s===t)return;if(d.includes(e)||o(d).some((t=>t===e)))return;if("group"===l){const e=d.map((e=>a(e)));return void i(e,!0,null,d)}const c=u===e,p=d.length;r(d,u,c&&s<t?t-p:t)}}}(e,t,s,l,w,S,v,o,d),B=function(e,t,n,o,r){return i=>{if(!t().mediaUpload)return;const s=(0,p.findTransform)((0,p.getBlockTransforms)("from"),(t=>"files"===t.type&&o(t.blockName,e)&&t.isMatch(i)));if(s){const e=s.transform(i,n);r(e)}}}(e,u,k,i,S),I=function(e){return t=>{const n=(0,p.pasteHandler)({HTML:t,mode:"BLOCKS"});n.length&&e(n)}}(S);return e=>{const t=(0,Ga.getFilesFromDataTransfer)(e.dataTransfer),n=e.dataTransfer.getData("text/html");n?I(n):t.length?B(t):C(e)}}function zS(e,t,n=["top","bottom","left","right"]){let o,r;return n.forEach((n=>{const i=function(e,t,n){const o="top"===n||"bottom"===n,{x:r,y:i}=e,s=o?r:i,l=o?i:r,a=o?t.left:t.top,c=o?t.right:t.bottom,u=t[n];let d;return d=s>=a&&s<=c?s:s<c?a:c,Math.sqrt((s-d)**2+(l-u)**2)}(e,t,n);(void 0===o||i<o)&&(o=i,r=n)})),[o,r]}function VS(e,t){return t.left<=e.x&&t.right>=e.x&&t.top<=e.y&&t.bottom>=e.y}const FS=30,HS=120,US=120;function GS(e,t,n,o){let r=!0;if(t){const e=t?.map((({name:e})=>e));r=n.every((t=>e?.includes(t)))}const i=n.map((t=>e(t))).every((e=>{const[t]=e?.parent||[];return!t||t===o}));return r&&i}function $S(e,t){const{defaultView:n}=t;return!!(n&&e instanceof n.HTMLElement&&e.closest("[data-is-insertion-point]"))}function WS({dropZoneElement:e,rootClientId:t="",parentClientId:n="",isDisabled:o=!1}={}){const r=(0,g.useRegistry)(),[i,s]=(0,h.useState)({index:null,operation:"insert"}),{getBlockType:l,getBlockVariations:a,getGroupingBlockName:c}=(0,g.useSelect)(p.store),{canInsertBlockType:u,getBlockListSettings:d,getBlocks:f,getBlockIndex:b,getDraggedBlockClientIds:k,getBlockNamesByClientId:v,getAllowedBlocks:_,isDragging:y,isGroupable:x,isZoomOut:S,getSectionRootClientId:w,getBlockParents:C}=G((0,g.useSelect)(ji)),{showInsertionPoint:B,hideInsertionPoint:I,startDragging:j,stopDragging:E}=G((0,g.useDispatch)(ji)),M=OS("before"===i.operation||"after"===i.operation?n:t,i.index,{operation:i.operation,nearestSide:i.nearestSide}),P=(0,m.useThrottle)((0,h.useCallback)(((o,i)=>{y()||j();const h=k(),g=[t,...C(t,!0)];if(h.some((e=>g.includes(e))))return;const m=_(t),I=v([t])[0],E=v(h);if(!GS(l,m,E,I))return;const M=w();if(S()&&M!==t)return;const P=f(t).filter((e=>!((0,p.hasBlockSupport)(e.name,"blockVisibility",!0)&&!1===e.attributes?.metadata?.blockVisibility)));if(0===P.length)return void r.batch((()=>{s({index:0,operation:"insert"}),B(t,0,{operation:"insert"})}));const R=P.map((e=>{const t=e.clientId;return{isUnmodifiedDefaultBlock:(0,p.isUnmodifiedDefaultBlock)(e),getBoundingClientRect:()=>{const e=i.getElementById(`block-${t}`);return e?e.getBoundingClientRect():null},blockIndex:b(t),blockOrientation:d(t)?.orientation}})),A=function(e,t,n="vertical",o={}){const r="horizontal"===n?["left","right"]:["top","bottom"];let i=0,s="before",l=1/0,a=null,c="right";const{dropZoneElement:u,parentBlockOrientation:d,rootBlockIndex:p=0}=o;if(u&&"horizontal"!==d){const e=u.getBoundingClientRect(),[n,o]=zS(t,e,["top","bottom"]);if(e.height>HS&&n<FS){if("top"===o)return[p,"before"];if("bottom"===o)return[p+1,"after"]}}const h=(0,T.isRTL)();if(u&&"horizontal"===d){const e=u.getBoundingClientRect(),[n,o]=zS(t,e,["left","right"]);if(e.width>US&&n<FS){if(h&&"right"===o||!h&&"left"===o)return[p,"before"];if(h&&"left"===o||!h&&"right"===o)return[p+1,"after"]}}e.forEach((({isUnmodifiedDefaultBlock:e,getBoundingClientRect:o,blockIndex:u,blockOrientation:d})=>{const p=o();if(!p)return;let[g,m]=zS(t,p,r);const[f,b]=zS(t,p,["left","right"]),k=VS(t,p);e&&k?g=0:"vertical"===n&&"horizontal"!==d&&(k&&f<FS||!k&&function(e,t){return t.top<=e.y&&t.bottom>=e.y}(t,p))&&(a=u,c=b),g<l&&(s="bottom"===m||!h&&"right"===m||h&&"left"===m?"after":"before",l=g,i=u)}));const g=i+("after"===s?1:-1),m=!!e[i]?.isUnmodifiedDefaultBlock,f=!!e[g]?.isUnmodifiedDefaultBlock;if(null!==a)return[a,"group",c];if(!m&&!f)return["after"===s?i+1:i,"insert"];return[m?i:g,"replace"]}(R,{x:o.clientX,y:o.clientY},d(t)?.orientation,{dropZoneElement:e,parentBlockClientId:n,parentBlockOrientation:n?d(n)?.orientation:void 0,rootBlockIndex:b(t)}),[N,L,D]=A,O=R[N]?.isUnmodifiedDefaultBlock;if(!S()||O||"insert"===L){if("group"===L){const e=P[N],n=[e.name,...E].every((e=>"core/image"===e)),o=u("core/gallery",t),r=x([e.clientId,k()]),i=a(c(),"block"),s=i&&i.find((({name:e})=>"group-row"===e));if(n&&!o&&(!r||!s))return;if(!(n||r&&s))return}r.batch((()=>{s({index:N,operation:L,nearestSide:D});const e=["before","after"].includes(L)?n:t;B(e,N,{operation:L,nearestSide:D})}))}}),[y,_,t,v,k,l,w,S,f,d,e,n,b,r,j,B,u,x,a,c]),200);return(0,m.__experimentalUseDropZone)({dropZoneElement:e,isDisabled:o,onDrop:M,onDragOver(e){P(e,e.currentTarget.ownerDocument)},onDragLeave(e){const{ownerDocument:t}=e.currentTarget;$S(e.relatedTarget,t)||$S(e.target,t)||(P.cancel(),I())},onDragEnd(){P.cancel(),E(),I()}})}const KS={};function ZS({children:e,clientId:t}){const n=function(e){return(0,g.useSelect)((t=>{const n=t(ji).getBlock(e);if(!n)return;const o=t(p.store).getBlockType(n.name);return o&&0!==Object.keys(o.providesContext).length?Object.fromEntries(Object.entries(o.providesContext).map((([e,t])=>[e,n.attributes[t]]))):void 0}),[e])}(t);return(0,d.jsx)(iv,{value:n,children:e})}const qS=(0,h.memo)(mw);function YS(e){const{clientId:t,allowedBlocks:n,prioritizedInserterBlocks:o,defaultBlock:r,directInsert:i,__experimentalDefaultBlock:s,__experimentalDirectInsert:l,template:a,templateLock:c,wrapperRef:u,templateInsertUpdatesSelection:m,__experimentalCaptureToolbars:f,__experimentalAppenderTagName:b,renderAppender:k,orientation:v,placeholder:_,layout:y,name:x,blockType:S,parentLock:w,defaultLayout:C}=e;!function(e,t,n,o,r,i,s,l,a,c,u,d){const p=(0,g.useRegistry)(),m=LS(n),f=LS(o),b=void 0===a||"contentOnly"===t?t:a;(0,h.useLayoutEffect)((()=>{const t={allowedBlocks:m,prioritizedInserterBlocks:f,templateLock:b};if(void 0!==c&&(t.__experimentalCaptureToolbars=c),void 0!==u)t.orientation=u;else{const e=Xl(d?.type);t.orientation=e.getOrientation(d)}void 0!==s&&(I()("__experimentalDefaultBlock",{alternative:"defaultBlock",since:"6.3",version:"6.4"}),t.defaultBlock=s),void 0!==r&&(t.defaultBlock=r),void 0!==l&&(I()("__experimentalDirectInsert",{alternative:"directInsert",since:"6.3",version:"6.4"}),t.directInsert=l),void 0!==i&&(t.directInsert=i),void 0!==t.directInsert&&"boolean"!=typeof t.directInsert&&I()("Using `Function` as a `directInsert` argument",{alternative:"`boolean` values",since:"6.5"}),AS.get(p)||AS.set(p,{}),AS.get(p)[e]=t,window.queueMicrotask((()=>{const e=AS.get(p);if(Object.keys(e).length){const{updateBlockListSettings:t}=p.dispatch(ji);t(e),AS.set(p,{})}}))}),[e,m,f,b,r,i,s,l,c,u,d,p])}(t,w,n,o,r,i,s,l,c,f,v,y),function(e,t,n,o){const r=(0,g.useRegistry)(),i=(0,h.useRef)(null);(0,h.useLayoutEffect)((()=>{let s=!1;const{getBlocks:l,getSelectedBlocksInitialCaretPosition:a,isBlockSelected:c}=r.select(ji),{replaceInnerBlocks:u,__unstableMarkNextChangeAsNotPersistent:d}=r.dispatch(ji);return window.queueMicrotask((()=>{if(s)return;const r=l(e),h=0===r.length||"all"===n||"contentOnly"===n,g=!E()(t,i.current);if(!h||!g)return;i.current=t;const m=(0,p.synchronizeBlocksWithTemplate)(r,t);E()(m,r)||(d(),u(e,m,0===r.length&&o&&0!==m.length&&c(e),a()))})),()=>{s=!0}}),[t,n,e,r,o])}(t,a,c,m);const B=(0,p.getBlockSupport)(x,"layout")||(0,p.getBlockSupport)(x,"__experimentalLayout")||KS,{allowSizingOnChildren:j=!1}=B,T=y||B,M=(0,h.useMemo)((()=>({...C,...T,...j&&{allowSizingOnChildren:!0}})),[C,T,j]),P=(0,d.jsx)(qS,{rootClientId:t,renderAppender:k,__experimentalAppenderTagName:b,layout:M,wrapperRef:u,placeholder:_});return S?.providesContext&&0!==Object.keys(S.providesContext).length?(0,d.jsx)(ZS,{clientId:t,children:P}):P}function XS(e){return qk(e),(0,d.jsx)(YS,{...e})}const QS=(0,h.forwardRef)(((e,t)=>{const n=JS({ref:t},e);return(0,d.jsx)("div",{className:"block-editor-inner-blocks",children:(0,d.jsx)("div",{...n})})}));function JS(e={},t={}){const{__unstableDisableLayoutClassNames:n,__unstableDisableDropZone:o,dropZoneElement:r}=t,{clientId:i,layout:s=null,__unstableLayoutClassNames:l=""}=C(),a=(0,g.useSelect)((e=>{const{getBlockName:t,isZoomOut:n,getTemplateLock:o,getBlockRootClientId:r,getBlockEditingMode:s,getBlockSettings:l,getSectionRootClientId:a}=G(e(ji));if(!i){const e=a();return{isDropZoneDisabled:n()&&""!==e}}const{hasBlockSupport:c,getBlockType:u}=e(p.store),d=t(i),h=s(i),g=r(i),[m]=l(i,"layout");let f="disabled"===h;if(n()){const e=a();f=i!==e}return{__experimentalCaptureToolbars:c(d,"__experimentalExposeControlsToChildren",!1),name:d,blockType:u(d),parentLock:o(g),parentClientId:g,isDropZoneDisabled:f,defaultLayout:m}}),[i]),{__experimentalCaptureToolbars:c,name:u,blockType:h,parentLock:f,parentClientId:b,isDropZoneDisabled:k,defaultLayout:v}=a,_=WS({dropZoneElement:r,rootClientId:i,parentClientId:b}),y=(0,m.useMergeRefs)([e.ref,o||k||s?.isManualPlacement&&window.__experimentalEnableGridInteractivity?null:_]),x={__experimentalCaptureToolbars:c,layout:s,name:u,blockType:h,parentLock:f,defaultLayout:v,...t},S=x.value&&x.onChange?XS:YS;return{...e,ref:y,className:ms(e.className,"block-editor-block-list__layout",n?"":l),children:i?(0,d.jsx)(S,{...x,clientId:i}):(0,d.jsx)(mw,{...t})}}JS.save=p.__unstableGetInnerBlocksProps,QS.DefaultBlockAppender=function(){const{clientId:e}=C();return(0,d.jsx)(yS,{rootClientId:e})},QS.ButtonBlockAppender=function({showSeparator:e,isFloating:t,onAddBlock:n,isToggle:o}){const{clientId:r}=C();return(0,d.jsx)(uI,{className:ms({"block-list-appender__toggle":o}),rootClientId:r,showSeparator:e,isFloating:t,onAddBlock:n})},QS.Content=()=>JS.save().children;var ew=QS;const tw=new Set([Wa.UP,Wa.RIGHT,Wa.DOWN,Wa.LEFT,Wa.ENTER,Wa.BACKSPACE]);function nw(){const e=(0,g.useSelect)((e=>e(ji).isTyping()),[]),{stopTyping:t}=(0,g.useDispatch)(ji);return(0,m.useRefEffect)((n=>{if(!e)return;const{ownerDocument:o}=n;let r,i;function s(e){const{clientX:n,clientY:o}=e;r&&i&&(r!==n||i!==o)&&t(),r=n,i=o}return o.addEventListener("mousemove",s),()=>{o.removeEventListener("mousemove",s)}}),[e,t])}function ow(){const{isTyping:e}=(0,g.useSelect)((e=>{const{isTyping:t}=e(ji);return{isTyping:t()}}),[]),{startTyping:t,stopTyping:n}=(0,g.useDispatch)(ji),o=nw(),r=(0,m.useRefEffect)((o=>{const{ownerDocument:r}=o,{defaultView:i}=r,s=i.getSelection();if(e){let e=function(e){const{target:t}=e;a=i.setTimeout((()=>{(0,Ga.isTextField)(t)||n()}))},t=function(e){const{keyCode:t}=e;t!==Wa.ESCAPE&&t!==Wa.TAB||n()},l=function(){s.isCollapsed||n()};let a;return o.addEventListener("focus",e),o.addEventListener("keydown",t),r.addEventListener("selectionchange",l),()=>{i.clearTimeout(a),o.removeEventListener("focus",e),o.removeEventListener("keydown",t),r.removeEventListener("selectionchange",l)}}function l(e){const{type:n,target:r}=e;(0,Ga.isTextField)(r)&&o.contains(r)&&("keydown"!==n||function(e){const{keyCode:t,shiftKey:n}=e;return!n&&tw.has(t)}(e))&&t()}return o.addEventListener("keypress",l),o.addEventListener("keydown",l),()=>{o.removeEventListener("keypress",l),o.removeEventListener("keydown",l)}}),[e,t,n]);return(0,m.useMergeRefs)([o,r])}var rw=function({children:e}){return(0,d.jsx)("div",{ref:ow(),children:e})};function iw({clientId:e,rootClientId:t="",position:n="top"}){const[o,r]=(0,h.useState)(!1),{sectionRootClientId:i,sectionClientIds:s,insertionPoint:l,blockInsertionPointVisible:a,blockInsertionPoint:c,blocksBeingDragged:u}=(0,g.useSelect)((e=>{const{getInsertionPoint:t,getBlockOrder:n,getSectionRootClientId:o,isBlockInsertionPointVisible:r,getBlockInsertionPoint:i,getDraggedBlockClientIds:s}=G(e(ji)),l=o();return{sectionRootClientId:l,sectionClientIds:n(l),insertionPoint:t(),blockInsertionPoint:i(),blockInsertionPointVisible:r(),blocksBeingDragged:s()}}),[]),p=(0,m.useReducedMotion)();if(!e)return;let f=!1;if(!(t===i&&s&&s.includes(e)))return null;const b=0===l?.index&&e===s[l.index],k=l&&l.hasOwnProperty("index")&&e===s[l.index-1];"top"===n&&(f=b||a&&0===c.index&&e===s[c.index]),"bottom"===n&&(f=k||a&&e===s[c.index-1]);const v=u[0],_=u.includes(e),y=s.indexOf(v),x=y>0?s[y-1]:null;return(_||x===e)&&(f=!1),(0,d.jsx)(ws.__unstableAnimatePresence,{children:f&&(0,d.jsx)(ws.__unstableMotion.div,{initial:{height:0},animate:{height:"calc(1 * var(--wp-block-editor-iframe-zoom-out-frame-size) / var(--wp-block-editor-iframe-zoom-out-scale)"},exit:{height:0},transition:{type:"tween",duration:p?0:.2,ease:[.6,0,.4,1]},className:ms("block-editor-block-list__zoom-out-separator",{"is-dragged-over":o}),"data-is-insertion-point":"true",onDragOver:()=>r(!0),onDragLeave:()=>r(!1),children:(0,d.jsx)(ws.__unstableMotion.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0,transition:{delay:-.125}},transition:{ease:"linear",duration:.1,delay:.125},children:(0,T.__)("Drop pattern.")})})})}const sw=(0,h.createContext)();sw.displayName="IntersectionObserverContext";const lw=new WeakMap,aw={trailing:!0};function cw({className:e,...t}){const{isOutlineMode:n,isFocusMode:o,temporarilyEditingAsBlocks:r}=(0,g.useSelect)((e=>{const{getSettings:t,getTemporarilyEditingAsBlocks:n,isTyping:o,hasBlockSpotlight:r}=G(e(ji)),{outlineMode:i,focusMode:s}=t();return{isOutlineMode:i&&!o(),isFocusMode:s||r(),temporarilyEditingAsBlocks:n()}}),[]),i=(0,g.useRegistry)(),{setBlockVisibility:s}=(0,g.useDispatch)(ji),l=(0,m.useDebounce)((0,h.useCallback)((()=>{const e={};lw.get(i).forEach((([t,n])=>{e[t]=n})),s(e)}),[i]),300,aw),a=(0,h.useMemo)((()=>{const{IntersectionObserver:e}=window;if(e)return new e((e=>{lw.get(i)||lw.set(i,[]);for(const t of e){const e=t.target.getAttribute("data-block");lw.get(i).push([e,t.isIntersecting])}l()}))}),[]),c=JS({ref:(0,m.useMergeRefs)([PS(),MS(),ow()]),className:ms("is-root-container",e,{"is-outline-mode":n,"is-focus-mode":o})},t);return(0,d.jsxs)(sw.Provider,{value:a,children:[(0,d.jsx)("div",{...c}),!!r&&(0,d.jsx)(uw,{clientId:r})]})}function uw({clientId:e}){const{stopEditingAsBlocks:t}=G((0,g.useDispatch)(ji)),n=(0,g.useSelect)((t=>{const{isBlockSelected:n,hasSelectedInnerBlock:o}=t(ji);return n(e)||o(e,!0)}),[e]);return(0,h.useEffect)((()=>{n||t(e)}),[n,e,t]),null}function dw(e){return(0,d.jsx)(w,{value:x,children:(0,d.jsx)(cw,{...e})})}const pw=[],hw=new Set;function gw({placeholder:e,rootClientId:t,renderAppender:n,__experimentalAppenderTagName:o,layout:r=Ql}){const i=!1!==n,s=!!n,{order:l,isZoomOut:a,selectedBlocks:c,visibleBlocks:u,shouldRenderAppender:h}=(0,g.useSelect)((e=>{const{getSettings:n,getBlockOrder:o,getSelectedBlockClientIds:r,__unstableGetVisibleBlocks:l,getTemplateLock:a,getBlockEditingMode:c,isSectionBlock:u,isContainerInsertableToInContentOnlyMode:d,getBlockName:h,isZoomOut:g,canInsertBlockType:m}=G(e(ji)),f=o(t);if(n().isPreviewMode)return{order:f,selectedBlocks:pw,visibleBlocks:hw};const b=r(),k=b[0],v=!(t||k||f.length&&m((0,p.getDefaultBlockName)(),t)),_=!(!t||!k||t!==k);return{order:f,selectedBlocks:b,visibleBlocks:l(),isZoomOut:g(),shouldRenderAppender:(!u(t)||d(h(k),t))&&"disabled"!==c(t)&&!a(t)&&i&&!g()&&(s||_||v)}}),[t,i,s]);return(0,d.jsxs)(ea,{value:r,children:[l.map((e=>(0,d.jsxs)(g.AsyncModeProvider,{value:!u.has(e)&&!c.includes(e),children:[a&&(0,d.jsx)(iw,{clientId:e,rootClientId:t,position:"top"}),(0,d.jsx)(kS,{rootClientId:t,clientId:e}),a&&(0,d.jsx)(iw,{clientId:e,rootClientId:t,position:"bottom"})]},e))),l.length<1&&e,h&&(0,d.jsx)(SS,{tagName:o,rootClientId:t,CustomAppender:n})]})}function mw(e){return(0,d.jsx)(g.AsyncModeProvider,{value:!1,children:(0,d.jsx)(gw,{...e})})}function fw(e){const{isMultiSelecting:t,getMultiSelectedBlockClientIds:n,hasMultiSelection:o,getSelectedBlockClientId:r,getSelectedBlocksInitialCaretPosition:i,__unstableIsFullySelected:s}=e(ji);return{isMultiSelecting:t(),multiSelectedBlockClientIds:n(),hasMultiSelection:o(),selectedBlockClientId:r(),initialPosition:i(),isFullSelection:s()}}function bw(){const{initialPosition:e,isMultiSelecting:t,multiSelectedBlockClientIds:n,hasMultiSelection:o,selectedBlockClientId:r,isFullSelection:i}=(0,g.useSelect)(fw,[]);return(0,m.useRefEffect)((r=>{const{ownerDocument:s}=r,{defaultView:l}=s;if(null==e)return;if(!o||t)return;const{length:a}=n;a<2||i&&(r.contentEditable=!0,r.focus(),l.getSelection().removeAllRanges())}),[o,t,n,r,e,i])}function kw(e,t,n,o){let r,i=Ga.focus.focusable.find(n);return t&&i.reverse(),i=i.slice(i.indexOf(e)+1),o&&(r=e.getBoundingClientRect()),i.find((function(e){if(!(e.closest("[inert]")||1===e.children.length&&$m(e,e.firstElementChild)&&"true"===e.firstElementChild.getAttribute("contenteditable"))){if(!Ga.focus.tabbable.isTabbableIndex(e))return!1;if(e.isContentEditable&&"true"!==e.contentEditable)return!1;if(o){const t=e.getBoundingClientRect();if(t.left>=r.right||t.right<=r.left)return!1}return!0}}))}function vw(){const{getMultiSelectedBlocksStartClientId:e,getMultiSelectedBlocksEndClientId:t,getSettings:n,hasMultiSelection:o,__unstableIsFullySelected:r}=(0,g.useSelect)(ji),{selectBlock:i}=(0,g.useDispatch)(ji);return(0,m.useRefEffect)((s=>{let l;function a(){l=null}function c(a){if(a.defaultPrevented)return;const{keyCode:c,target:u,shiftKey:d,ctrlKey:p,altKey:h,metaKey:g}=a,m=c===Wa.UP,f=c===Wa.DOWN,b=c===Wa.LEFT,k=c===Wa.RIGHT,v=m||b,_=b||k,y=m||f,x=_||y,S=d||p||h||g,w=y?Ga.isVerticalEdge:Ga.isHorizontalEdge,{ownerDocument:C}=s,{defaultView:B}=C;if(!x)return;if(o()){if(d)return;if(!r())return;return a.preventDefault(),void(v?i(e()):i(t(),-1))}if(!function(e,t,n){const o=t===Wa.UP||t===Wa.DOWN,{tagName:r}=e,i=e.getAttribute("type");if(o&&!n)return"INPUT"!==r||!["date","datetime-local","month","number","range","time","week"].includes(i);if("INPUT"===r)return["button","checkbox","number","color","file","image","radio","reset","submit"].includes(i);return"TEXTAREA"!==r}(u,c,S))return;y?l||(l=(0,Ga.computeCaretRect)(B)):l=null;const I=(0,Ga.isRTL)(u)?!v:v,{keepCaretInsideBlock:j}=n();if(d)(function(e,t){const n=kw(e,t,s);return n&&Km(n)})(u,v)&&w(u,v)&&(s.contentEditable=!0,s.focus());else if(!y||!(0,Ga.isVerticalEdge)(u,v)||h&&!(0,Ga.isHorizontalEdge)(u,I)||j){if(_&&B.getSelection().isCollapsed&&(0,Ga.isHorizontalEdge)(u,I)&&!j){const e=kw(u,I,s);(0,Ga.placeCaretAtHorizontalEdge)(e,v),a.preventDefault()}}else{const e=kw(u,v,s,!0);e&&((0,Ga.placeCaretAtVerticalEdge)(e,h?!v:v,h?void 0:l),a.preventDefault())}}return s.addEventListener("mousedown",a),s.addEventListener("keydown",c),()=>{s.removeEventListener("mousedown",a),s.removeEventListener("keydown",c)}}),[])}function _w(){const{getBlockOrder:e,getSelectedBlockClientIds:t,getBlockRootClientId:n}=(0,g.useSelect)(ji),{multiSelect:o,selectBlock:r}=(0,g.useDispatch)(ji),i=(0,Yk.__unstableUseShortcutEventMatch)();return(0,m.useRefEffect)((s=>{function l(l){if(!i("core/block-editor/select-all",l))return;const a=t();if(a.length<2&&!(0,Ga.isEntirelySelected)(l.target))return;l.preventDefault();const[c]=a,u=n(c),d=e(u);a.length!==d.length?o(d[0],d[d.length-1]):u&&(s.ownerDocument.defaultView.getSelection().removeAllRanges(),r(u))}return s.addEventListener("keydown",l),()=>{s.removeEventListener("keydown",l)}}),[])}function yw(e,t){e.contentEditable=t,t&&e.focus()}function xw(){const{startMultiSelect:e,stopMultiSelect:t}=(0,g.useDispatch)(ji),{isSelectionEnabled:n,hasSelectedBlock:o,isDraggingBlocks:r,isMultiSelecting:i}=(0,g.useSelect)(ji);return(0,m.useRefEffect)((s=>{const{ownerDocument:l}=s,{defaultView:a}=l;let c,u,d;function p(){t(),a.removeEventListener("mouseup",p),u=a.requestAnimationFrame((()=>{if(!o())return;yw(s,!1);const e=a.getSelection();if(e.rangeCount){const t=e.getRangeAt(0),{commonAncestorContainer:n}=t,o=t.cloneRange();c.contains(n)&&(c.focus(),e.removeAllRanges(),e.addRange(o))}}))}function h({buttons:t,target:o,relatedTarget:l}){o.contains(d)&&(o.contains(l)||r()||1===t&&(i()||s!==o&&"true"===o.getAttribute("contenteditable")&&n()&&(c=o,e(),a.addEventListener("mouseup",p),yw(s,!0))))}return s.addEventListener("mouseout",h),s.addEventListener("mousedown",(function({target:e}){d=e})),()=>{s.removeEventListener("mouseout",h),a.removeEventListener("mouseup",p),a.cancelAnimationFrame(u)}}),[e,t,n,o])}function Sw(e,t){e.contentEditable!==String(t)&&(e.contentEditable=t,t&&e.focus())}function ww(e){const t=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;return t?.closest("[data-wp-block-attribute-key]")}function Cw(){const{multiSelect:e,selectBlock:t,selectionChange:n}=(0,g.useDispatch)(ji),{getBlockParents:o,getBlockSelectionStart:r,isMultiSelecting:i}=(0,g.useSelect)(ji);return(0,m.useRefEffect)((s=>{const{ownerDocument:l}=s,{defaultView:a}=l;function c(l){const c=a.getSelection();if(!c.rangeCount)return;const u=function(e){const{anchorNode:t,anchorOffset:n}=e;return t.nodeType===t.TEXT_NODE||0===n?t:t.childNodes[n-1]}(c),d=function(e){const{focusNode:t,focusOffset:n}=e;return t.nodeType===t.TEXT_NODE||n===t.childNodes.length?t:0===n&&(0,Ga.isSelectionForward)(e)?t.previousSibling??t.parentElement:t.childNodes[n]}(c);if(!s.contains(u)||!s.contains(d))return;const p=l.shiftKey&&"mouseup"===l.type;if(c.isCollapsed&&!p){if("true"===s.contentEditable&&!i()){Sw(s,!1);let e=u.nodeType===u.ELEMENT_NODE?u:u.parentElement;e=e?.closest("[contenteditable]"),e?.focus()}return}let h=Km(u),g=Km(d);if(p){const e=r(),t=Km(l.target),n=t!==g;(h===g&&c.isCollapsed||!g||n)&&(g=t),h!==e&&(h=e)}if(void 0===h&&void 0===g)return void Sw(s,!1);if(h===g)i()?e(h,h):t(h);else{const t=[...o(h),h],r=[...o(g),g],i=function(e,t){let n=0;for(;e[n]===t[n];)n++;return n}(t,r);if(t[i]!==h||r[i]!==g)return void e(t[i],r[i]);const s=ww(u),l=ww(d);if(s&&l){const e=c.getRangeAt(0),t=(0,pe.create)({element:s,range:e,__unstableIsEditableTree:!0}),o=(0,pe.create)({element:l,range:e,__unstableIsEditableTree:!0}),r=t.start??t.end,i=o.start??o.end;n({start:{clientId:h,attributeKey:s.dataset.wpBlockAttributeKey,offset:r},end:{clientId:g,attributeKey:l.dataset.wpBlockAttributeKey,offset:i}})}else e(h,g)}}return l.addEventListener("selectionchange",c),a.addEventListener("mouseup",c),()=>{l.removeEventListener("selectionchange",c),a.removeEventListener("mouseup",c)}}),[e,t,n,o])}function Bw(){const{selectBlock:e}=(0,g.useDispatch)(ji),{isSelectionEnabled:t,getBlockSelectionStart:n,hasMultiSelection:o}=(0,g.useSelect)(ji);return(0,m.useRefEffect)((r=>{function i(i){if(!t()||0!==i.button)return;const s=n(),l=Km(i.target);i.shiftKey?s&&s!==l&&(r.contentEditable=!0,r.focus()):o()&&e(l)}return r.addEventListener("mousedown",i),()=>{r.removeEventListener("mousedown",i)}}),[e,t,n,o])}function Iw(){const{__unstableIsFullySelected:e,getSelectedBlockClientIds:t,getSelectedBlockClientId:n,__unstableIsSelectionMergeable:o,hasMultiSelection:r,getBlockName:i,canInsertBlockType:s,getBlockRootClientId:l,getSelectionStart:a,getSelectionEnd:c,getBlockAttributes:u}=(0,g.useSelect)(ji),{replaceBlocks:d,__unstableSplitSelection:h,removeBlocks:f,__unstableDeleteSelection:b,__unstableExpandSelection:k,__unstableMarkAutomaticChange:v}=(0,g.useDispatch)(ji);return(0,m.useRefEffect)((g=>{function m(e){"true"===g.contentEditable&&e.preventDefault()}function _(m){if(!m.defaultPrevented)if(r())m.keyCode===Wa.ENTER?(g.contentEditable=!1,m.preventDefault(),e()?d(t(),(0,p.createBlock)((0,p.getDefaultBlockName)())):h()):m.keyCode===Wa.BACKSPACE||m.keyCode===Wa.DELETE?(g.contentEditable=!1,m.preventDefault(),e()?f(t()):o()?b(m.keyCode===Wa.DELETE):k()):1!==m.key.length||m.metaKey||m.ctrlKey||(g.contentEditable=!1,o()?b(m.keyCode===Wa.DELETE):(m.preventDefault(),g.ownerDocument.defaultView.getSelection().removeAllRanges()));else if(m.keyCode===Wa.ENTER){if(m.shiftKey||e())return;const t=n(),o=i(t),r=a(),g=c();if(r.attributeKey===g.attributeKey){const e=u(t)[r.attributeKey],n=(0,p.getBlockTransforms)("from").filter((({type:e})=>"enter"===e)),o=(0,p.findTransform)(n,(t=>t.regExp.test(e)));if(o)return d(t,o.transform({content:e})),void v()}if(!(0,p.hasBlockSupport)(o,"splitting",!1)&&!m.__deprecatedOnSplit)return;s(o,l(t))&&(h(),m.preventDefault())}}function y(e){r()&&(g.contentEditable=!1,o()?b():(e.preventDefault(),g.ownerDocument.defaultView.getSelection().removeAllRanges()))}return g.addEventListener("beforeinput",m),g.addEventListener("keydown",_),g.addEventListener("compositionstart",y),()=>{g.removeEventListener("beforeinput",m),g.removeEventListener("keydown",_),g.removeEventListener("compositionstart",y)}}),[])}function jw(){const{getBlockName:e}=(0,g.useSelect)(ji),{getBlockType:t}=(0,g.useSelect)(p.store),{createSuccessNotice:n}=(0,g.useDispatch)(pr.store);return(0,h.useCallback)(((o,r)=>{let i="";if("copyStyles"===o)i=(0,T.__)("Styles copied to clipboard.");else if(1===r.length){const n=r[0],s=t(e(n))?.title;i="copy"===o?(0,T.sprintf)((0,T.__)('Copied "%s" to clipboard.'),s):(0,T.sprintf)((0,T.__)('Moved "%s" to clipboard.'),s)}else i="copy"===o?(0,T.sprintf)((0,T._n)("Copied %d block to clipboard.","Copied %d blocks to clipboard.",r.length),r.length):(0,T.sprintf)((0,T._n)("Moved %d block to clipboard.","Moved %d blocks to clipboard.",r.length),r.length);n(i,{type:"snackbar"})}),[n,e,t])}function Ew({clipboardData:e}){let t="",n="";try{t=e.getData("text/plain"),n=e.getData("text/html")}catch(e){return}n=function(e){const t="\x3c!--StartFragment--\x3e",n=e.indexOf(t);if(!(n>-1))return e;const o=(e=e.substring(n+20)).indexOf("\x3c!--EndFragment--\x3e");return o>-1&&(e=e.substring(0,o)),e}(n),n=function(e){const t="<meta charset='utf-8'>";return e.startsWith(t)?e.slice(22):e}(n);const o=(0,Ga.getFilesFromDataTransfer)(e);return o.length&&!function(e,t){if(t&&1===e?.length&&0===e[0].type.indexOf("image/")){const e=/<\s*img\b/gi;if(1!==t.match(e)?.length)return!0;const n=/<\s*img\b[^>]*\bsrc="file:\/\//i;if(t.match(n))return!0}return!1}(o,n)?{files:o}:{html:n,plainText:t,files:[]}}const Tw=Symbol("requiresWrapperOnCopy");function Mw(e,t,n){let o=t;const[r]=t;if(r){if(n.select(p.store).getBlockType(r.name)[Tw]){const{getBlockRootClientId:e,getBlockName:t,getBlockAttributes:i}=n.select(ji),s=e(r.clientId),l=t(s);l&&(o=(0,p.createBlock)(l,i(s),o))}}const i=(0,p.serialize)(o);e.clipboardData.setData("text/plain",function(e){e=e.replace(/<br>/g,"\n");return(0,Ga.__unstableStripHTML)(e).trim().replace(/\n\n+/g,"\n\n")}(i)),e.clipboardData.setData("text/html",i)}function Pw(){const e=(0,g.useRegistry)(),{getBlocksByClientId:t,getSelectedBlockClientIds:n,hasMultiSelection:o,getSettings:r,getBlockName:i,__unstableIsFullySelected:s,__unstableIsSelectionCollapsed:l,__unstableIsSelectionMergeable:a,__unstableGetSelectedBlocksWithPartialSelection:c,canInsertBlockType:u,getBlockRootClientId:d}=(0,g.useSelect)(ji),{flashBlock:h,removeBlocks:f,replaceBlocks:b,__unstableDeleteSelection:k,__unstableExpandSelection:v,__unstableSplitSelection:_}=(0,g.useDispatch)(ji),y=jw();return(0,m.useRefEffect)((g=>{function m(m){if(m.defaultPrevented)return;const x=n();if(0===x.length)return;if(!o()){const{target:e}=m,{ownerDocument:t}=e;if("copy"===m.type||"cut"===m.type?(0,Ga.documentHasUncollapsedSelection)(t):(0,Ga.documentHasSelection)(t)&&!t.activeElement.isContentEditable)return}const{activeElement:S}=m.target.ownerDocument;if(!g.contains(S))return;const w=a(),C=l()||s(),B=!C&&!w;if("copy"===m.type||"cut"===m.type)if(m.preventDefault(),1===x.length&&h(x[0]),B)v();else{let n;if(y(m.type,x),C)n=t(x);else{const[e,o]=c();n=[e,...t(x.slice(1,x.length-1)),o]}Mw(m,n,e)}if("cut"===m.type)C&&!B?f(x):(m.target.ownerDocument.activeElement.contentEditable=!1,k());else if("paste"===m.type){const{__experimentalCanUserUseUnfilteredHTML:e,mediaUpload:t}=r();if("true"===m.clipboardData.getData("rich-text"))return;const{plainText:n,html:l,files:a}=Ew(m),c=s();let h=[];if(a.length){if(!t)return void m.preventDefault();const e=(0,p.getBlockTransforms)("from");h=a.reduce(((t,n)=>{const o=(0,p.findTransform)(e,(e=>"files"===e.type&&e.isMatch([n])));return o&&t.push(o.transform([n])),t}),[]).flat()}else h=(0,p.pasteHandler)({HTML:l,plainText:n,mode:c?"BLOCKS":"AUTO",canUserUseUnfilteredHTML:e});if("string"==typeof h)return;if(c)return b(x,h,h.length-1,-1),void m.preventDefault();if(!o()&&!(0,p.hasBlockSupport)(i(x[0]),"splitting",!1)&&!m.__deprecatedOnSplit)return;const[g]=x,f=d(g),k=[];for(const e of h)if(u(e.name,f))k.push(e);else{const t=i(f),n=e.name!==t?(0,p.switchToBlockType)(e,t):[e];if(!n)return;for(const e of n)for(const t of e.innerBlocks)k.push(t)}_(k),m.preventDefault()}}return g.ownerDocument.addEventListener("copy",m),g.ownerDocument.addEventListener("cut",m),g.ownerDocument.addEventListener("paste",m),()=>{g.ownerDocument.removeEventListener("copy",m),g.ownerDocument.removeEventListener("cut",m),g.ownerDocument.removeEventListener("paste",m)}}),[])}function Rw(){const[e,t,n]=function(){const e=(0,h.useRef)(),t=(0,h.useRef)(),n=(0,h.useRef)(),{hasMultiSelection:o,getSelectedBlockClientId:r,getBlockCount:i,getBlockOrder:s,getLastFocus:l,getSectionRootClientId:a,isZoomOut:c}=G((0,g.useSelect)(ji)),{setLastFocus:u}=G((0,g.useDispatch)(ji)),p=(0,h.useRef)();function f(t){const n=e.current.ownerDocument===t.target.ownerDocument?e.current:e.current.ownerDocument.defaultView.frameElement;if(p.current)p.current=null;else if(o())e.current.focus();else if(r())l()?.current?l().current.focus():e.current.querySelector(`[data-block="${r()}"]`).focus();else if(c()){const t=a(),o=s(t);o.length?e.current.querySelector(`[data-block="${o[0]}"]`).focus():t?e.current.querySelector(`[data-block="${t}"]`).focus():n.focus()}else{const o=t.target.compareDocumentPosition(n)&t.target.DOCUMENT_POSITION_FOLLOWING,r=Ga.focus.tabbable.find(e.current);r.length&&(o?r[0]:r[r.length-1]).focus()}}const b=(0,d.jsx)("div",{ref:t,tabIndex:"0",onFocus:f}),k=(0,d.jsx)("div",{ref:n,tabIndex:"0",onFocus:f}),v=(0,m.useRefEffect)((o=>{function r(e){if(e.defaultPrevented)return;if(e.keyCode!==Wa.TAB)return;if(!n.current||!t.current)return;const{target:o,shiftKey:r}=e,i=r?"findPrevious":"findNext",s=Ga.focus.tabbable[i](o),l=o.closest("[data-block]"),a=l&&s&&($m(l,s)||Wm(l,s));if((0,Ga.isFormElement)(s)&&a)return;const c=r?t:n;p.current=!0,c.current.focus({preventScroll:!0})}function s(e){u({...l(),current:e.target});const{ownerDocument:t}=o;!e.relatedTarget&&e.target.hasAttribute("data-block")&&t.activeElement===t.body&&0===i()&&o.focus()}function a(o){if(o.keyCode!==Wa.TAB)return;if("region"===o.target?.getAttribute("role"))return;if(e.current===o.target)return;const r=o.shiftKey?"findPrevious":"findNext",i=Ga.focus.tabbable[r](o.target);i!==t.current&&i!==n.current||(o.preventDefault(),i.focus({preventScroll:!0}))}const{ownerDocument:c}=o,{defaultView:d}=c;return d.addEventListener("keydown",a),o.addEventListener("keydown",r),o.addEventListener("focusout",s),()=>{d.removeEventListener("keydown",a),o.removeEventListener("keydown",r),o.removeEventListener("focusout",s)}}),[]);return[b,(0,m.useMergeRefs)([e,v]),k]}(),o=(0,g.useSelect)((e=>e(ji).hasMultiSelection()),[]);return[e,(0,m.useMergeRefs)([t,Pw(),Iw(),xw(),Cw(),Bw(),bw(),_w(),vw(),(0,m.useRefEffect)((e=>(e.tabIndex=0,e.dataset.hasMultiSelection=o,o?(e.setAttribute("aria-label",(0,T.__)("Multiple selected blocks")),()=>{delete e.dataset.hasMultiSelection,e.removeAttribute("aria-label")}):()=>{delete e.dataset.hasMultiSelection})),[o])]),n]}var Aw=(0,h.forwardRef)((function({children:e,...t},n){const[o,r,i]=Rw();return(0,d.jsxs)(d.Fragment,{children:[o,(0,d.jsx)("div",{...t,ref:(0,m.useMergeRefs)([r,n]),className:ms(t.className,"block-editor-writing-flow"),children:e}),i]})}));let Nw=null;function Lw({frameSize:e,containerWidth:t,maxContainerWidth:n,scaleContainerWidth:o}){return(Math.min(t,n)-2*e)/o}function Dw({frameSize:e,iframeDocument:t,maxContainerWidth:n=750,scale:o}){const[r,{height:i}]=(0,m.useResizeObserver)(),[s,{width:l,height:a}]=(0,m.useResizeObserver)(),c=(0,h.useRef)(0),u=1!==o,d=(0,m.useReducedMotion)(),p="auto-scaled"===o,g=(0,h.useRef)(!1),f=(0,h.useRef)(null);(0,h.useEffect)((()=>{u||(c.current=l)}),[l,u]);const b=Math.max(c.current,l),k=p?Lw({frameSize:e,containerWidth:l,maxContainerWidth:n,scaleContainerWidth:b}):o,v=(0,h.useRef)({scaleValue:k,frameSize:e,containerHeight:0,scrollTop:0,scrollHeight:0}),_=(0,h.useRef)({scaleValue:k,frameSize:e,containerHeight:0,scrollTop:0,scrollHeight:0}),y=(0,h.useCallback)((()=>{const{scrollTop:e}=v.current,{scrollTop:n}=_.current;return t.documentElement.style.setProperty("--wp-block-editor-iframe-zoom-out-scroll-top",`${e}px`),t.documentElement.style.setProperty("--wp-block-editor-iframe-zoom-out-scroll-top-next",`${n}px`),t.documentElement.style.setProperty("--wp-block-editor-iframe-zoom-out-overflow-behavior",v.current.scrollHeight===v.current.containerHeight?"auto":"scroll"),t.documentElement.classList.add("zoom-out-animation"),t.documentElement.animate(function(e,t){const{scaleValue:n,frameSize:o,scrollTop:r}=e,{scaleValue:i,frameSize:s,scrollTop:l}=t;return[{translate:"0 0",scale:n,paddingTop:o/n+"px",paddingBottom:o/n+"px"},{translate:`0 ${r-l}px`,scale:i,paddingTop:s/i+"px",paddingBottom:s/i+"px"}]}(v.current,_.current),{easing:"cubic-bezier(0.46, 0.03, 0.52, 0.96)",duration:400})}),[t]),x=(0,h.useCallback)((()=>{g.current=!1,f.current=null,t.documentElement.style.setProperty("--wp-block-editor-iframe-zoom-out-scale",_.current.scaleValue),t.documentElement.style.setProperty("--wp-block-editor-iframe-zoom-out-frame-size",`${_.current.frameSize}px`),t.documentElement.classList.remove("zoom-out-animation"),t.documentElement.scrollTop=_.current.scrollTop,t.documentElement.style.removeProperty("--wp-block-editor-iframe-zoom-out-scroll-top"),t.documentElement.style.removeProperty("--wp-block-editor-iframe-zoom-out-scroll-top-next"),t.documentElement.style.removeProperty("--wp-block-editor-iframe-zoom-out-overflow-behavior"),v.current=_.current}),[t]),S=(0,h.useRef)(!1);return(0,h.useEffect)((()=>{const e=t&&S.current!==u;if(S.current=u,e&&(g.current=!0,u))return t.documentElement.classList.add("is-zoomed-out"),()=>{t.documentElement.classList.remove("is-zoomed-out")}}),[t,u]),(0,h.useEffect)((()=>{if(t&&(p&&1!==v.current.scaleValue&&(v.current.scaleValue=Lw({frameSize:v.current.frameSize,containerWidth:l,maxContainerWidth:n,scaleContainerWidth:l})),k<1&&(g.current||(t.documentElement.style.setProperty("--wp-block-editor-iframe-zoom-out-scale",k),t.documentElement.style.setProperty("--wp-block-editor-iframe-zoom-out-frame-size",`${e}px`)),t.documentElement.style.setProperty("--wp-block-editor-iframe-zoom-out-content-height",`${i}px`),t.documentElement.style.setProperty("--wp-block-editor-iframe-zoom-out-inner-height",`${a}px`),t.documentElement.style.setProperty("--wp-block-editor-iframe-zoom-out-container-width",`${l}px`),t.documentElement.style.setProperty("--wp-block-editor-iframe-zoom-out-scale-container-width",`${b}px`)),g.current))if(g.current=!1,f.current){f.current.reverse();const e=v.current,t=_.current;v.current=t,_.current=e}else v.current.scrollTop=t.documentElement.scrollTop,v.current.scrollHeight=t.documentElement.scrollHeight,v.current.containerHeight=a,_.current={scaleValue:k,frameSize:e,containerHeight:t.documentElement.clientHeight},_.current.scrollHeight=function(e,t){const{scaleValue:n,scrollHeight:o}=e,{frameSize:r,scaleValue:i}=t;return o*(i/n)+2*r}(v.current,_.current),_.current.scrollTop=function(e,t){const{containerHeight:n,frameSize:o,scaleValue:r,scrollTop:i}=e,{containerHeight:s,frameSize:l,scaleValue:a,scrollHeight:c}=t;let u=i;u=(u+n/2-o)/r-n/2,u=(u+s/2)*a+l-s/2,u=i<=o?0:u;const d=c-s;return Math.round(Math.min(Math.max(0,u),Math.max(0,d)))}(v.current,_.current),f.current=y(),d?x():f.current.onfinish=x}),[y,x,d,p,k,e,t,i,l,a,n,b]),{isZoomedOut:u,scaleContainerWidth:b,contentResizeListener:r,containerResizeListener:s}}function Ow(e,t,n){const o={};for(const t in e)o[t]=e[t];if(e instanceof n.contentDocument.defaultView.MouseEvent){const e=n.getBoundingClientRect();o.clientX+=e.left,o.clientY+=e.top}const r=new t(e.type,o);o.defaultPrevented&&r.preventDefault();!n.dispatchEvent(r)&&e.preventDefault()}function zw(e){return(0,m.useRefEffect)((()=>{const{defaultView:t}=e;if(!t)return;const{frameElement:n}=t,o=e.documentElement,r=["dragover","mousemove"],i={};for(const e of r)i[e]=e=>{const t=Object.getPrototypeOf(e).constructor.name;Ow(e,window[t],n)},o.addEventListener(e,i[e]);return()=>{for(const e of r)o.removeEventListener(e,i[e])}}))}function Vw({contentRef:e,children:t,tabIndex:n=0,scale:o=1,frameSize:r=0,readonly:i,forwardedRef:s,title:l=(0,T.__)("Editor canvas"),...a}){const{resolvedAssets:c,isPreviewMode:u}=(0,g.useSelect)((e=>{const{getSettings:t}=e(ji),n=t();return{resolvedAssets:n.__unstableResolvedAssets,isPreviewMode:n.isPreviewMode}}),[]),{styles:p="",scripts:f=""}=c,[b,k]=(0,h.useState)(),[v,_]=(0,h.useState)([]),y=PS(),[x,S,w]=Rw(),C=(0,m.useRefEffect)((e=>{let t;function n(e){e.preventDefault()}function o(e){"A"===e.target.tagName&&e.target.getAttribute("href")?.startsWith("#")&&(e.preventDefault(),t.defaultView.location.hash=e.target.getAttribute("href").slice(1))}e._load=()=>{k(e.contentDocument)};const{ownerDocument:r}=e;function i(){const{contentDocument:i}=e,{documentElement:s}=i;t=i,s.classList.add("block-editor-iframe__html"),y(s),i.dir=r.dir;for(const e of Nw||(Nw=Array.from(document.styleSheets).reduce(((e,t)=>{try{t.cssRules}catch(t){return e}const{ownerNode:n,cssRules:o}=t;if(null===n)return e;if(!o)return e;if(n.id.startsWith("wp-"))return e;if(!n.id)return e;if(function e(t){return Array.from(t).find((({selectorText:t,conditionText:n,cssRules:o})=>n?e(o):t&&(t.includes(".editor-styles-wrapper")||t.includes(".wp-block"))))}(o)){const t="STYLE"===n.tagName;if(t){const t=n.id.replace("-inline-css","-css"),o=document.getElementById(t);o&&e.push(o.cloneNode(!0))}if(e.push(n.cloneNode(!0)),!t){const t=n.id.replace("-css","-inline-css"),o=document.getElementById(t);o&&e.push(o.cloneNode(!0))}}return e}),[]),Nw))i.getElementById(e.id)||(i.head.appendChild(e.cloneNode(!0)),u||console.warn(`${e.id} was added to the iframe incorrectly. Please use block.json or enqueue_block_assets to add styles to the iframe.`,e));t.addEventListener("dragover",n,!1),t.addEventListener("drop",n,!1),t.addEventListener("click",o)}return _(Array.from(r.body.classList).filter((e=>e.startsWith("admin-color-")||e.startsWith("post-type-")||"wp-embed-responsive"===e))),e.addEventListener("load",i),()=>{delete e._load,e.removeEventListener("load",i),t?.removeEventListener("dragover",n),t?.removeEventListener("drop",n),t?.removeEventListener("click",o)}}),[]),{contentResizeListener:B,containerResizeListener:I,isZoomedOut:j,scaleContainerWidth:E}=Dw({scale:o,frameSize:parseInt(r),iframeDocument:b}),M=(0,m.useDisabled)({isDisabled:!i}),P=(0,m.useMergeRefs)([zw(b),e,y,S,M]),R=`<!doctype html>\n<html>\n\t<head>\n\t\t<meta charset="utf-8">\n\t\t<base href="${window.location.origin}">\n\t\t<script>window.frameElement._load()<\/script>\n\t\t<style>\n\t\t\thtml{\n\t\t\t\theight: auto !important;\n\t\t\t\tmin-height: 100%;\n\t\t\t}\n\t\t\t/* Lowest specificity to not override global styles */\n\t\t\t:where(body) {\n\t\t\t\tmargin: 0;\n\t\t\t\t/* Default background color in case zoom out mode background\n\t\t\t\tcolors the html element */\n\t\t\t\tbackground-color: white;\n\t\t\t}\n\t\t</style>\n\t\t${p}\n\t\t${f}\n\t</head>\n\t<body>\n\t\t<script>document.currentScript.parentElement.remove()<\/script>\n\t</body>\n</html>`,[A,N]=(0,h.useMemo)((()=>{const e=URL.createObjectURL(new window.Blob([R],{type:"text/html"}));return[e,()=>URL.revokeObjectURL(e)]}),[R]);(0,h.useEffect)((()=>N),[N]);const L=n>=0&&!u,D=(0,d.jsxs)(d.Fragment,{children:[L&&x,(0,d.jsx)("iframe",{...a,style:{...a.style,height:a.style?.height,border:0},ref:(0,m.useMergeRefs)([s,C]),tabIndex:n,src:A,title:l,onKeyDown:e=>{if(a.onKeyDown&&a.onKeyDown(e),e.currentTarget.ownerDocument!==e.target.ownerDocument){const{stopPropagation:t}=e.nativeEvent;e.nativeEvent.stopPropagation=()=>{},e.stopPropagation(),e.nativeEvent.stopPropagation=t,Ow(e,window.KeyboardEvent,e.currentTarget)}},children:b&&(0,h.createPortal)((0,d.jsxs)("body",{ref:P,className:ms("block-editor-iframe__body","editor-styles-wrapper",...v),children:[B,(0,d.jsx)(ws.__experimentalStyleProvider,{document:b,children:t})]}),b.documentElement)}),L&&w]});return(0,d.jsxs)("div",{className:"block-editor-iframe__container",children:[I,(0,d.jsx)("div",{className:ms("block-editor-iframe__scale-container",j&&"is-zoomed-out"),style:{"--wp-block-editor-iframe-zoom-out-scale-container-width":j&&`${E}px`},children:D})]})}var Fw=(0,h.forwardRef)((function(e,t){return(0,g.useSelect)((e=>e(ji).getSettings().__internalIsInitialized),[])?(0,d.jsx)(Vw,{...e,forwardedRef:t}):null}));const Hw={attribute:/\[\s*(?:(?<namespace>\*|[-\w\P{ASCII}]*)\|)?(?<name>[-\w\P{ASCII}]+)\s*(?:(?<operator>\W?=)\s*(?<value>.+?)\s*(\s(?<caseSensitive>[iIsS]))?\s*)?\]/gu,id:/#(?<name>[-\w\P{ASCII}]+)/gu,class:/\.(?<name>[-\w\P{ASCII}]+)/gu,comma:/\s*,\s*/g,combinator:/\s*[\s>+~]\s*/g,"pseudo-element":/::(?<name>[-\w\P{ASCII}]+)(?:\((?<argument>¶*)\))?/gu,"pseudo-class":/:(?<name>[-\w\P{ASCII}]+)(?:\((?<argument>¶*)\))?/gu,universal:/(?:(?<namespace>\*|[-\w\P{ASCII}]*)\|)?\*/gu,type:/(?:(?<namespace>\*|[-\w\P{ASCII}]*)\|)?(?<name>[-\w\P{ASCII}]+)/gu},Uw=new Set(["combinator","comma"]),Gw=(new Set(["not","is","where","has","matches","-moz-any","-webkit-any","nth-child","nth-last-child"]),e=>{switch(e){case"pseudo-element":case"pseudo-class":return new RegExp(Hw[e].source.replace("(?<argument>¶*)","(?<argument>.*)"),"gu");default:return Hw[e]}});function $w(e,t){let n=0,o="";for(;t<e.length;t++){const r=e[t];switch(r){case"(":++n;break;case")":--n}if(o+=r,0===n)return o}return o}const Ww=/(['"])([^\\\n]+?)\1/g,Kw=/\\./g;function Zw(e,t=Hw){if(""===(e=e.trim()))return[];const n=[];e=(e=e.replace(Kw,((e,t)=>(n.push({value:e,offset:t}),"".repeat(e.length))))).replace(Ww,((e,t,o,r)=>(n.push({value:e,offset:r}),`${t}${"".repeat(o.length)}${t}`)));{let t,o=0;for(;(t=e.indexOf("(",o))>-1;){const r=$w(e,t);n.push({value:r,offset:t}),e=`${e.substring(0,t)}(${"¶".repeat(r.length-2)})${e.substring(t+r.length)}`,o=t+r.length}}const o=function(e,t=Hw){if(!e)return[];const n=[e];for(const[e,o]of Object.entries(t))for(let t=0;t<n.length;t++){const r=n[t];if("string"!=typeof r)continue;o.lastIndex=0;const i=o.exec(r);if(!i)continue;const s=i.index-1,l=[],a=i[0],c=r.slice(0,s+1);c&&l.push(c),l.push({...i.groups,type:e,content:a});const u=r.slice(s+a.length+1);u&&l.push(u),n.splice(t,1,...l)}let o=0;for(const e of n)switch(typeof e){case"string":throw new Error(`Unexpected sequence ${e} found at index ${o}`);case"object":o+=e.content.length,e.pos=[o-e.content.length,o],Uw.has(e.type)&&(e.content=e.content.trim()||" ")}return n}(e,t),r=new Set;for(const e of n.reverse())for(const t of o){const{offset:n,value:o}=e;if(!(t.pos[0]<=n&&n+o.length<=t.pos[1]))continue;const{content:i}=t,s=n-t.pos[0];t.content=i.slice(0,s)+o+i.slice(s+o.length),t.content!==i&&r.add(t)}for(const e of r){const t=Gw(e.type);if(!t)throw new Error(`Unknown token type: ${e.type}`);t.lastIndex=0;const n=t.exec(e.content);if(!n)throw new Error(`Unable to parse content for ${e.type}: ${e.content}`);Object.assign(e,n.groups)}return o}function*qw(e,t){switch(e.type){case"list":for(let t of e.list)yield*qw(t,e);break;case"complex":yield*qw(e.left,e),yield*qw(e.right,e);break;case"compound":yield*e.list.map((t=>[t,e]));break;default:yield[e,t]}}var Yw=n(9656),Xw=n.n(Yw),Qw=n(356),Jw=n.n(Qw),eC=n(1443),tC=n.n(eC),nC=n(5404),oC=n.n(nC);const rC=new Map,iC=[{type:"type",content:"body"},{type:"type",content:"html"},{type:"pseudo-class",content:":root"},{type:"pseudo-class",content:":where(body)"},{type:"pseudo-class",content:":where(:root)"},{type:"pseudo-class",content:":where(html)"}];function sC(e,t){const n=Zw(t);let o=-1;for(let e=n.findLastIndex((({content:e,type:t})=>iC.some((n=>e===n.content&&t===n.type))))+1;e<n.length;e++)if("combinator"===n[e].type){o=e;break}const r=Zw(e);return n.splice(-1===o?n.length:o,0,{type:"combinator",content:" "},...r),function(e){let t;return t=Array.isArray(e)?e:[...qw(e)].map((([e])=>e)),t.map((e=>e.content)).join("")}(n)}var lC=(e,t="",n)=>{let o=rC.get(t);return o||(o=new WeakMap,rC.set(t,o)),e.map((e=>{let r=o.get(e);return r||(r=function({css:e,ignoredSelectors:t=[],baseURL:n},o="",r){if(!o&&!n)return e;try{const i=[...t,...r?.ignoredSelectors??[],o];return new(Xw())([o&&tC()({prefix:o,transform:(e,t,n)=>i.some((e=>e instanceof RegExp?t.match(e):t.includes(e)))?t:iC.some((e=>t.startsWith(e.content)))?sC(e,t):n}),n&&oC()({rootUrl:n})].filter(Boolean)).process(e,{}).css}catch(e){return e instanceof Jw()?console.warn("wp.blockEditor.transformStyles Failed to transform CSS.",e.message+"\n"+e.showSourceCode(!1)):console.warn("wp.blockEditor.transformStyles Failed to transform CSS.",e),null}}(e,t,n),o.set(e,r)),r}))};function aC(e,t){return(0,h.useCallback)((e=>{if(!e)return;const{ownerDocument:n}=e,{defaultView:o,body:r}=n,i=t?n.querySelector(t):r;let s;if(i)s=o?.getComputedStyle(i,null).getPropertyValue("background-color");else{const e=n.createElement("div");e.classList.add("editor-styles-wrapper"),r.appendChild(e),s=o?.getComputedStyle(e,null).getPropertyValue("background-color"),r.removeChild(e)}const l=wd(s);l.luminance()>.5||0===l.alpha()?r.classList.remove("is-dark-theme"):r.classList.add("is-dark-theme")}),[e,t])}Bd([Id,Td]);var cC=(0,h.memo)((function({styles:e,scope:t,transformOptions:n}){const o=(0,g.useSelect)((e=>G(e(ji)).getStyleOverrides()),[]),[r,i]=(0,h.useMemo)((()=>{const r=Object.values(e??[]);for(const[e,t]of o){const n=r.findIndex((({id:t})=>e===t)),o={...t,id:e};-1===n?r.push(o):r[n]=o}return[lC(r.filter((e=>e?.css)),t,n),r.filter((e=>"svgs"===e.__unstableType)).map((e=>e.assets)).join("")]}),[e,o,t,n]);return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("style",{ref:aC(r,t)}),r.map(((e,t)=>(0,d.jsx)("style",{children:e},t))),(0,d.jsx)(ws.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 0 0",width:"0",height:"0",role:"none",style:{visibility:"hidden",position:"absolute",left:"-9999px",overflow:"hidden"},dangerouslySetInnerHTML:{__html:i}})]})}));const uC=(0,h.memo)(dw),dC=2e3,pC=[];function hC({viewportWidth:e,containerWidth:t,minHeight:n,additionalStyles:o=pC}){e||(e=t);const[r,{height:i}]=(0,m.useResizeObserver)(),{styles:s}=(0,g.useSelect)((e=>({styles:e(ji).getSettings().styles})),[]),l=(0,h.useMemo)((()=>s?[...s,{css:"body{height:auto;overflow:hidden;border:none;padding:0;}",__unstableType:"presets"},...o]:s),[s,o]),a=t/e,c=i?t/(i*a):0;return(0,d.jsx)(ws.Disabled,{className:"block-editor-block-preview__content",style:{transform:`scale(${a})`,aspectRatio:c,maxHeight:i>dC?dC*a:void 0,minHeight:n},children:(0,d.jsxs)(Fw,{contentRef:(0,m.useRefEffect)((e=>{const{ownerDocument:{documentElement:t}}=e;t.classList.add("block-editor-block-preview__content-iframe"),t.style.position="absolute",t.style.width="100%",e.style.boxSizing="border-box",e.style.position="absolute",e.style.width="100%"}),[]),"aria-hidden":!0,tabIndex:-1,style:{position:"absolute",width:e,height:i,pointerEvents:"none",maxHeight:dC,minHeight:0!==a&&a<1&&n?n/a:n},children:[(0,d.jsx)(cC,{styles:l}),r,(0,d.jsx)(uC,{renderAppender:!1})]})})}function gC(e){const[t,{width:n}]=(0,m.useResizeObserver)();return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("div",{style:{position:"relative",width:"100%",height:0},children:t}),(0,d.jsx)("div",{className:"block-editor-block-preview__container",children:!!n&&(0,d.jsx)(hC,{...e,containerWidth:n})})]})}const mC=(0,window.wp.priorityQueue.createQueue)();const fC=[];const bC=(0,h.memo)((function({blocks:e,viewportWidth:t=1200,minHeight:n,additionalStyles:o=fC,__experimentalMinHeight:r,__experimentalPadding:i}){r&&(n=r,I()("The __experimentalMinHeight prop",{since:"6.2",version:"6.4",alternative:"minHeight"})),i&&(o=[...o,{css:`body { padding: ${i}px; }`}],I()("The __experimentalPadding prop of BlockPreview",{since:"6.2",version:"6.4",alternative:"additionalStyles"}));const s=(0,g.useSelect)((e=>e(ji).getSettings()),[]),l=(0,h.useMemo)((()=>({...s,focusMode:!1,isPreviewMode:!0})),[s]),a=(0,h.useMemo)((()=>Array.isArray(e)?e:[e]),[e]);return e&&0!==e.length?(0,d.jsx)(nv,{value:a,settings:l,children:(0,d.jsx)(gC,{viewportWidth:t,minHeight:n,additionalStyles:o})}):null}));bC.Async=function({children:e,placeholder:t}){const[n,o]=(0,h.useState)(!1);return(0,h.useEffect)((()=>{const e={};return mC.add(e,(()=>{(0,h.flushSync)((()=>{o(!0)}))})),()=>{mC.cancel(e)}}),[]),n?e:t};var kC=bC;function vC({blocks:e,props:t={},layout:n}){const o=(0,g.useSelect)((e=>e(ji).getSettings()),[]),r=(0,h.useMemo)((()=>({...o,styles:void 0,focusMode:!1,isPreviewMode:!0})),[o]),i=(0,m.useDisabled)(),s=(0,m.useMergeRefs)([t.ref,i]),l=(0,h.useMemo)((()=>Array.isArray(e)?e:[e]),[e]),a=(0,d.jsxs)(nv,{value:l,settings:r,children:[(0,d.jsx)(cC,{}),(0,d.jsx)(mw,{renderAppender:!1,layout:n})]});return{...t,ref:s,className:ms(t.className,"block-editor-block-preview__live-content","components-disabled"),children:e?.length?a:null}}var _C=function({item:e}){const{name:t,title:n,icon:o,description:r,initialAttributes:i,example:s}=e,l=(0,p.isReusableBlock)(e),a=(0,h.useMemo)((()=>s?(0,p.getBlockFromExample)(t,{attributes:{...s.attributes,...i},innerBlocks:s.innerBlocks}):(0,p.createBlock)(t,i)),[t,s,i]),c=144,u=s?.viewportWidth??500,g=280/u,m=0!==g&&g<1?c/g:c;return(0,d.jsxs)("div",{className:"block-editor-inserter__preview-container",children:[(0,d.jsx)("div",{className:"block-editor-inserter__preview",children:l||s?(0,d.jsx)("div",{className:"block-editor-inserter__preview-content",children:(0,d.jsx)(kC,{blocks:a,viewportWidth:u,minHeight:c,additionalStyles:[{css:`\n\t\t\t\t\t\t\t\t\t\tbody { \n\t\t\t\t\t\t\t\t\t\t\tpadding: 24px;\n\t\t\t\t\t\t\t\t\t\t\tmin-height:${Math.round(m)}px;\n\t\t\t\t\t\t\t\t\t\t\tdisplay:flex;\n\t\t\t\t\t\t\t\t\t\t\talign-items:center;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t.is-root-container { width: 100%; }\n\t\t\t\t\t\t\t\t\t`}]})}):(0,d.jsx)("div",{className:"block-editor-inserter__preview-content-missing",children:(0,T.__)("No preview available.")})}),!l&&(0,d.jsx)(Xb,{title:n,icon:o,description:r})]})};var yC=(0,h.forwardRef)((function({isFirst:e,as:t,children:n,...o},r){return(0,d.jsx)(ws.Composite.Item,{ref:r,role:"option",accessibleWhenDisabled:!0,...o,render:o=>{const r={...o,tabIndex:e?0:o.tabIndex};return t?(0,d.jsx)(t,{...r,children:n}):"function"==typeof n?n(r):(0,d.jsx)(ws.Button,{__next40pxDefaultSize:!0,...r,children:n})}})})),xC=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"M8 7h2V5H8v2zm0 6h2v-2H8v2zm0 6h2v-2H8v2zm6-14v2h2V5h-2zm0 8h2v-2h-2v2zm0 6h2v-2h-2v2z"})});function SC({count:e,icon:t,isPattern:n,fadeWhenDisabled:o}){const r=n&&(0,T.__)("Pattern");return(0,d.jsx)("div",{className:"block-editor-block-draggable-chip-wrapper",children:(0,d.jsx)("div",{className:"block-editor-block-draggable-chip","data-testid":"block-draggable-chip",children:(0,d.jsxs)(ws.Flex,{justify:"center",className:"block-editor-block-draggable-chip__content",children:[(0,d.jsx)(ws.FlexItem,{children:t?(0,d.jsx)(Vu,{icon:t}):r||(0,T.sprintf)((0,T._n)("%d block","%d blocks",e),e)}),(0,d.jsx)(ws.FlexItem,{children:(0,d.jsx)(Vu,{icon:xC})}),o&&(0,d.jsx)(ws.FlexItem,{className:"block-editor-block-draggable-chip__disabled",children:(0,d.jsx)("span",{className:"block-editor-block-draggable-chip__disabled-icon"})})]})})})}var wC=({isEnabled:e,blocks:t,icon:n,children:o,pattern:r})=>{const i=(0,g.useSelect)((e=>{const{getBlockType:n}=e(p.store);return 1===t.length&&n(t[0].name)?.icon}),[t]),{startDragging:s,stopDragging:l}=G((0,g.useDispatch)(ji)),a=(0,h.useMemo)((()=>r?.type===it.user&&"unsynced"!==r?.syncStatus?[(0,p.createBlock)("core/block",{ref:r.id})]:void 0),[r?.type,r?.syncStatus,r?.id]);if(!e)return o({draggable:!1,onDragStart:void 0,onDragEnd:void 0});const c=a??t;return(0,d.jsx)(ws.Draggable,{__experimentalTransferDataType:"wp-blocks",transferData:{type:"inserter",blocks:c},onDragStart:e=>{s();for(const t of c){const n=`wp-block:${t.name}`;e.dataTransfer.items.add("",n)}},onDragEnd:()=>{l()},__experimentalDragComponent:(0,d.jsx)(SC,{count:t.length,icon:n||!r&&i,isPattern:!!r}),children:({onDraggableStart:e,onDraggableEnd:t})=>o({draggable:!0,onDragStart:e,onDragEnd:t})})};var CC=(0,h.memo)((function({className:e,isFirst:t,item:n,onSelect:o,onHover:r,isDraggable:i,...s}){const l=(0,h.useRef)(!1),a=n.icon?{backgroundColor:n.icon.background,color:n.icon.foreground}:{},c=(0,h.useMemo)((()=>[(0,p.createBlock)(n.name,n.initialAttributes,(0,p.createBlocksFromInnerBlocksTemplate)(n.innerBlocks))]),[n.name,n.initialAttributes,n.innerBlocks]),u=(0,p.isReusableBlock)(n)&&"unsynced"!==n.syncStatus||(0,p.isTemplatePart)(n);return(0,d.jsx)(wC,{isEnabled:i&&!n.isDisabled,blocks:c,icon:n.icon,children:({draggable:i,onDragStart:c,onDragEnd:p})=>(0,d.jsx)("div",{className:ms("block-editor-block-types-list__list-item",{"is-synced":u}),draggable:i,onDragStart:e=>{l.current=!0,c&&(r(null),c(e))},onDragEnd:e=>{l.current=!1,p&&p(e)},children:(0,d.jsxs)(yC,{isFirst:t,className:ms("block-editor-block-types-list__item",e),disabled:n.isDisabled,onClick:e=>{e.preventDefault(),o(n,(0,Wa.isAppleOS)()?e.metaKey:e.ctrlKey),r(null)},onKeyDown:e=>{const{keyCode:t}=e;t===Wa.ENTER&&(e.preventDefault(),o(n,(0,Wa.isAppleOS)()?e.metaKey:e.ctrlKey),r(null))},onMouseEnter:()=>{l.current||r(n)},onMouseLeave:()=>r(null),...s,children:[(0,d.jsx)("span",{className:"block-editor-block-types-list__item-icon",style:a,children:(0,d.jsx)(Vu,{icon:n.icon,showColors:!0})}),(0,d.jsx)("span",{className:"block-editor-block-types-list__item-title",children:(0,d.jsx)(ws.__experimentalTruncate,{numberOfLines:3,children:n.title})})]})})})}));var BC=(0,h.forwardRef)((function(e,t){const[n,o]=(0,h.useState)(!1);return(0,h.useEffect)((()=>{n&&(0,Uo.speak)((0,T.__)("Use left and right arrow keys to move through blocks"))}),[n]),(0,d.jsx)("div",{ref:t,role:"listbox","aria-orientation":"horizontal",onFocus:()=>{o(!0)},onBlur:e=>{!e.currentTarget.contains(e.relatedTarget)&&o(!1)},...e})}));var IC=(0,h.forwardRef)((function(e,t){return(0,d.jsx)(ws.Composite.Group,{role:"presentation",ref:t,...e})}));function jC(e,t){const n=[];for(let o=0,r=e.length;o<r;o+=t)n.push(e.slice(o,o+t));return n}var EC=function e({items:t=[],onSelect:n,onHover:o=()=>{},children:r,label:i,isDraggable:s=!0}){const l="block-editor-block-types-list",a=(0,m.useInstanceId)(e,l);return(0,d.jsxs)(BC,{className:l,"aria-label":i,children:[jC(t,3).map(((e,t)=>(0,d.jsx)(IC,{children:e.map(((e,r)=>(0,d.jsx)(CC,{item:e,className:(0,p.getBlockMenuDefaultClassName)(e.id),onSelect:n,onHover:o,isDraggable:s&&!e.isDisabled,isFirst:0===t&&0===r,rowId:`${a}-${t}`},e.id)))},t))),r]})};var TC=function({title:e,icon:t,children:n}){return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{className:"block-editor-inserter__panel-header",children:[(0,d.jsx)("h2",{className:"block-editor-inserter__panel-title",children:e}),(0,d.jsx)(ws.Icon,{icon:t})]}),(0,d.jsx)("div",{className:"block-editor-inserter__panel-content",children:n})]})};var MC=(e,t,n)=>{const o=(0,h.useMemo)((()=>({[pt]:!!n})),[n]),[r]=(0,g.useSelect)((t=>[t(ji).getInserterItems(e,o)]),[e,o]),{getClosestAllowedInsertionPoint:i}=G((0,g.useSelect)(ji)),{createErrorNotice:s}=(0,g.useDispatch)(pr.store),[l,a]=(0,g.useSelect)((e=>{const{getCategories:t,getCollections:n}=e(p.store);return[t(),n()]}),[]);return[r,l,a,(0,h.useCallback)((({name:n,initialAttributes:o,innerBlocks:r,syncStatus:l,content:a},c)=>{const u=i(n,e);if(null===u){const e=(0,p.getBlockType)(n)?.title??n;return void s((0,T.sprintf)((0,T.__)('Block "%s" can\'t be inserted.'),e),{type:"snackbar",id:"inserter-notice"})}const d="unsynced"===l?(0,p.parse)(a,{__unstableSkipMigrationLogs:!0}):(0,p.createBlock)(n,o,(0,p.createBlocksFromInnerBlocksTemplate)(r));t(d,void 0,c,u)}),[i,e,t,s])]};function PC({key:e,children:t}){return(0,d.jsx)(h.Fragment,{children:t},e)}var RC=function({children:e}){return(0,d.jsx)(ws.Composite,{focusShift:!0,focusWrap:"horizontal",render:PC,children:e})};var AC=function(){return(0,d.jsx)("div",{className:"block-editor-inserter__no-results",children:(0,d.jsx)("p",{children:(0,T.__)("No results found.")})})};const NC=[];function LC({items:e,collections:t,categories:n,onSelectItem:o,onHover:r,showMostUsedBlocks:i,className:s}){const l=(0,h.useMemo)((()=>xt(e,"frecency","desc").slice(0,6)),[e]),a=(0,h.useMemo)((()=>e.filter((e=>!e.category))),[e]),c=(0,h.useMemo)((()=>{const n={...t};return Object.keys(t).forEach((t=>{n[t]=e.filter((e=>(e=>e.name.split("/")[0])(e)===t)),0===n[t].length&&delete n[t]})),n}),[e,t]);(0,h.useEffect)((()=>()=>r(null)),[]);const u=(0,m.useAsyncList)(n),p=n.length===u.length,g=(0,h.useMemo)((()=>Object.entries(t)),[t]),f=(0,m.useAsyncList)(p?g:NC);return(0,d.jsxs)("div",{className:s,children:[i&&e.length>3&&!!l.length&&(0,d.jsx)(TC,{title:(0,T._x)("Most used","blocks"),children:(0,d.jsx)(EC,{items:l,onSelect:o,onHover:r,label:(0,T._x)("Most used","blocks")})}),u.map((t=>{const n=e.filter((e=>e.category===t.slug));return n&&n.length?(0,d.jsx)(TC,{title:t.title,icon:t.icon,children:(0,d.jsx)(EC,{items:n,onSelect:o,onHover:r,label:t.title})},t.slug):null})),p&&a.length>0&&(0,d.jsx)(TC,{className:"block-editor-inserter__uncategorized-blocks-panel",title:(0,T.__)("Uncategorized"),children:(0,d.jsx)(EC,{items:a,onSelect:o,onHover:r,label:(0,T.__)("Uncategorized")})}),f.map((([e,t])=>{const n=c[e];return n&&n.length?(0,d.jsx)(TC,{title:t.title,icon:t.icon,children:(0,d.jsx)(EC,{items:n,onSelect:o,onHover:r,label:t.title})},e):null}))]})}var DC=(0,h.forwardRef)((function({rootClientId:e,onInsert:t,onHover:n,showMostUsedBlocks:o},r){const[i,s,l,a]=MC(e,t);if(!i.length)return(0,d.jsx)(AC,{});const c=[],u=[];for(const e of i)"reusable"!==e.category&&(e.isAllowedInCurrentRoot?c.push(e):u.push(e));return(0,d.jsx)(RC,{children:(0,d.jsxs)("div",{ref:r,children:[!!c.length&&(0,d.jsx)(d.Fragment,{children:(0,d.jsx)(LC,{items:c,categories:s,collections:l,onSelectItem:a,onHover:n,showMostUsedBlocks:o,className:"block-editor-inserter__insertable-blocks-at-selection"})}),(0,d.jsx)(LC,{items:u,categories:s,collections:l,onSelectItem:a,onHover:n,showMostUsedBlocks:o,className:"block-editor-inserter__all-blocks"})]})})}));function OC({selectedCategory:e,patternCategories:t,onClickCategory:n}){const o="block-editor-block-patterns-explorer__sidebar";return(0,d.jsx)("div",{className:`${o}__categories-list`,children:t.map((({name:t,label:r})=>(0,d.jsx)(ws.Button,{__next40pxDefaultSize:!0,label:r,className:`${o}__categories-list__item`,isPressed:e===t,onClick:()=>{n(t)},children:r},t)))})}function zC({searchValue:e,setSearchValue:t}){return(0,d.jsx)("div",{className:"block-editor-block-patterns-explorer__search",children:(0,d.jsx)(ws.SearchControl,{__nextHasNoMarginBottom:!0,onChange:t,value:e,label:(0,T.__)("Search"),placeholder:(0,T.__)("Search")})})}var VC=function({selectedCategory:e,patternCategories:t,onClickCategory:n,searchValue:o,setSearchValue:r}){return(0,d.jsxs)("div",{className:"block-editor-block-patterns-explorer__sidebar",children:[(0,d.jsx)(zC,{searchValue:o,setSearchValue:r}),!o&&(0,d.jsx)(OC,{selectedCategory:e,patternCategories:t,onClickCategory:n})]})};function FC({currentPage:e,numPages:t,changePage:n,totalItems:o}){return(0,d.jsxs)(ws.__experimentalVStack,{className:"block-editor-patterns__grid-pagination-wrapper",children:[(0,d.jsx)(ws.__experimentalText,{variant:"muted",children:(0,T.sprintf)((0,T._n)("%s item","%s items",o),o)}),t>1&&(0,d.jsxs)(ws.__experimentalHStack,{expanded:!1,spacing:3,justify:"flex-start",className:"block-editor-patterns__grid-pagination",children:[(0,d.jsxs)(ws.__experimentalHStack,{expanded:!1,spacing:1,className:"block-editor-patterns__grid-pagination-previous",children:[(0,d.jsx)(ws.Button,{variant:"tertiary",onClick:()=>n(1),disabled:1===e,"aria-label":(0,T.__)("First page"),size:"compact",accessibleWhenDisabled:!0,className:"block-editor-patterns__grid-pagination-button",children:(0,d.jsx)("span",{children:"«"})}),(0,d.jsx)(ws.Button,{variant:"tertiary",onClick:()=>n(e-1),disabled:1===e,"aria-label":(0,T.__)("Previous page"),size:"compact",accessibleWhenDisabled:!0,className:"block-editor-patterns__grid-pagination-button",children:(0,d.jsx)("span",{children:"‹"})})]}),(0,d.jsx)(ws.__experimentalText,{variant:"muted",children:(0,T.sprintf)((0,T._x)("%1$s of %2$s","paging"),e,t)}),(0,d.jsxs)(ws.__experimentalHStack,{expanded:!1,spacing:1,className:"block-editor-patterns__grid-pagination-next",children:[(0,d.jsx)(ws.Button,{variant:"tertiary",onClick:()=>n(e+1),disabled:e===t,"aria-label":(0,T.__)("Next page"),size:"compact",accessibleWhenDisabled:!0,className:"block-editor-patterns__grid-pagination-button",children:(0,d.jsx)("span",{children:"›"})}),(0,d.jsx)(ws.Button,{variant:"tertiary",onClick:()=>n(t),disabled:e===t,"aria-label":(0,T.__)("Last page"),size:"compact",accessibleWhenDisabled:!0,className:"block-editor-patterns__grid-pagination-button",children:(0,d.jsx)("span",{children:"»"})})]})]})]})}const HC=({showTooltip:e,title:t,children:n})=>e?(0,d.jsx)(ws.Tooltip,{text:t,children:n}):(0,d.jsx)(d.Fragment,{children:n});function UC({id:e,isDraggable:t,pattern:n,onClick:o,onHover:r,showTitlesAsTooltip:i,category:s,isSelected:l}){const[a,c]=(0,h.useState)(!1),{blocks:u,viewportWidth:g}=n,f=`block-editor-block-patterns-list__item-description-${(0,m.useInstanceId)(UC)}`,b=n.type===it.user,k=(0,h.useMemo)((()=>s&&t?(u??[]).map((e=>{const t=(0,p.cloneBlock)(e);return t.attributes.metadata?.categories?.includes(s)&&(t.attributes.metadata.categories=[s]),t})):u),[u,t,s]);return(0,d.jsx)(wC,{isEnabled:t,blocks:k,pattern:n,children:({draggable:t,onDragStart:s,onDragEnd:p})=>(0,d.jsx)("div",{className:"block-editor-block-patterns-list__list-item",draggable:t,onDragStart:e=>{c(!0),s&&(r?.(null),s(e))},onDragEnd:e=>{c(!1),p&&p(e)},children:(0,d.jsx)(HC,{showTooltip:i&&!b,title:n.title,children:(0,d.jsxs)(ws.Composite.Item,{render:(0,d.jsx)("div",{role:"option","aria-label":n.title,"aria-describedby":n.description?f:void 0,className:ms("block-editor-block-patterns-list__item",{"block-editor-block-patterns-list__list-item-synced":n.type===it.user&&!n.syncStatus,"is-selected":l})}),id:e,onClick:()=>{o(n,u),r?.(null)},onMouseEnter:()=>{a||r?.(n)},onMouseLeave:()=>r?.(null),children:[(0,d.jsx)(kC.Async,{placeholder:(0,d.jsx)(GC,{}),children:(0,d.jsx)(kC,{blocks:u,viewportWidth:g})}),(!i||b)&&(0,d.jsxs)(ws.__experimentalHStack,{className:"block-editor-patterns__pattern-details",spacing:2,children:[b&&!n.syncStatus&&(0,d.jsx)("div",{className:"block-editor-patterns__pattern-icon-wrapper",children:(0,d.jsx)(Ol,{className:"block-editor-patterns__pattern-icon",icon:de})}),(0,d.jsx)("div",{className:"block-editor-block-patterns-list__item-title",children:n.title})]}),!!n.description&&(0,d.jsx)(ws.VisuallyHidden,{id:f,children:n.description})]})})})})}function GC(){return(0,d.jsx)("div",{className:"block-editor-block-patterns-list__item is-placeholder"})}var $C=(0,h.forwardRef)((function({isDraggable:e,blockPatterns:t,onHover:n,onClickPattern:o,orientation:r,label:i=(0,T.__)("Block patterns"),category:s,showTitlesAsTooltip:l,pagingProps:a},c){const[u,p]=(0,h.useState)(void 0),[g,m]=(0,h.useState)(null);(0,h.useEffect)((()=>{const e=t[0]?.name;p(e)}),[t]);const f=(e,t)=>{m(e.name),o(e,t)};return(0,d.jsxs)(ws.Composite,{orientation:r,activeId:u,setActiveId:p,role:"listbox",className:"block-editor-block-patterns-list","aria-label":i,ref:c,children:[t.map((t=>(0,d.jsx)(UC,{id:t.name,pattern:t,onClick:f,onHover:n,isDraggable:e,showTitlesAsTooltip:l,category:s,isSelected:!!g&&g===t.name},t.name))),a&&(0,d.jsx)(FC,{...a})]})}));function WC({destinationRootClientId:e,destinationIndex:t,rootClientId:n,registry:o}){if(n===e)return t;const r=["",...o.select(ji).getBlockParents(e),e],i=r.indexOf(n);return-1!==i?o.select(ji).getBlockIndex(r[i+1])+1:o.select(ji).getBlockOrder(n).length}var KC=function({rootClientId:e="",insertionIndex:t,clientId:n,isAppender:o,onSelect:r,shouldFocusBlock:i=!0,selectBlockOnInsert:s=!0}){const l=(0,g.useRegistry)(),{getSelectedBlock:a,getClosestAllowedInsertionPoint:c,isBlockInsertionPointVisible:u}=G((0,g.useSelect)(ji)),{destinationRootClientId:d,destinationIndex:m}=(0,g.useSelect)((r=>{const{getSelectedBlockClientId:i,getBlockRootClientId:s,getBlockIndex:l,getBlockOrder:a,getInsertionPoint:c}=G(r(ji)),u=i();let d,p=e;const h=c();return void 0!==t?d=t:h&&h.hasOwnProperty("index")?(p=h?.rootClientId?h.rootClientId:e,d=h.index):n?d=l(n):!o&&u?(p=s(u),d=l(u)+1):d=a(p).length,{destinationRootClientId:p,destinationIndex:d}}),[e,t,n,o]),{replaceBlocks:f,insertBlocks:b,showInsertionPoint:k,hideInsertionPoint:v,setLastFocus:_}=G((0,g.useDispatch)(ji)),y=(0,h.useCallback)(((e,t,n=!1,c)=>{(n||i||s)&&_(null);const u=a();!o&&u&&(0,p.isUnmodifiedDefaultBlock)(u,"content")?f(u.clientId,e,null,i||n?0:null,t):b(e,o||void 0===c?m:WC({destinationRootClientId:d,destinationIndex:m,rootClientId:c,registry:l}),o||void 0===c?d:c,s,i||n?0:null,t);const h=Array.isArray(e)?e.length:1,g=(0,T.sprintf)((0,T._n)("%d block added.","%d blocks added.",h),h);(0,Uo.speak)(g),r&&r(e)}),[o,a,f,b,d,m,r,i,s]),x=(0,h.useCallback)((e=>{if(e&&!u()){const t=c(e.name,d);null!==t&&k(t,WC({destinationRootClientId:d,destinationIndex:m,rootClientId:t,registry:l}))}else v()}),[c,u,k,v,d,m]);return[d,y,x]};var ZC=(e,t,n,o)=>{const r=(0,h.useMemo)((()=>({[pt]:!!o})),[o]),{patternCategories:i,patterns:s,userPatternCategories:l}=(0,g.useSelect)((e=>{const{getSettings:n,__experimentalGetAllowedPatterns:o}=G(e(ji)),{__experimentalUserPatternCategories:i,__experimentalBlockPatternCategories:s}=n();return{patterns:o(t,r),userPatternCategories:i,patternCategories:s}}),[t,r]),{getClosestAllowedInsertionPointForPattern:a}=G((0,g.useSelect)(ji)),c=(0,h.useMemo)((()=>{const e=[...i];return l?.forEach((t=>{e.find((e=>e.name===t.name))||e.push(t)})),e}),[i,l]),{createSuccessNotice:u}=(0,g.useDispatch)(pr.store),d=(0,h.useCallback)(((r,i)=>{const s=o?t:a(r,t);if(null===s)return;const l=r.type===it.user&&"unsynced"!==r.syncStatus?[(0,p.createBlock)("core/block",{ref:r.id})]:i;e((l??[]).map((e=>{const t=(0,p.cloneBlock)(e);return t.attributes.metadata?.categories?.includes(n)&&(t.attributes.metadata.categories=[n]),t})),r.name,!1,s),u((0,T.sprintf)((0,T.__)('Block pattern "%s" inserted.'),r.title),{type:"snackbar",id:"inserter-notice"})}),[u,e,n,t,a,o]);return[s,c,d]},qC=n(9681),YC=n.n(qC);function XC(e){return e.toLowerCase()}var QC=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],JC=/[^A-Z0-9]+/gi;function eB(e,t,n){return t instanceof RegExp?e.replace(t,n):t.reduce((function(e,t){return e.replace(t,n)}),e)}const tB=e=>e.name||"",nB=e=>e.title,oB=e=>e.description||"",rB=e=>e.keywords||[],iB=e=>e.category,sB=()=>null,lB=[/([\p{Ll}\p{Lo}\p{N}])([\p{Lu}\p{Lt}])/gu,/([\p{Lu}\p{Lt}])([\p{Lu}\p{Lt}][\p{Ll}\p{Lo}])/gu],aB=new RegExp("(\\p{C}|\\p{P}|\\p{S})+","giu"),cB=new Map,uB=new Map;function dB(e=""){if(cB.has(e))return cB.get(e);const t=function(e,t){void 0===t&&(t={});for(var n=t.splitRegexp,o=void 0===n?QC:n,r=t.stripRegexp,i=void 0===r?JC:r,s=t.transform,l=void 0===s?XC:s,a=t.delimiter,c=void 0===a?" ":a,u=eB(eB(e,o,"$1\0$2"),i,"\0"),d=0,p=u.length;"\0"===u.charAt(d);)d++;for(;"\0"===u.charAt(p-1);)p--;return u.slice(d,p).split("\0").map(l).join(c)}(e,{splitRegexp:lB,stripRegexp:aB}).split(" ").filter(Boolean);return cB.set(e,t),t}function pB(e=""){if(uB.has(e))return uB.get(e);let t=YC()(e);return t=t.replace(/^\//,""),t=t.toLowerCase(),uB.set(e,t),t}const hB=(e="")=>dB(pB(e)),gB=(e,t,n,o)=>{if(0===hB(o).length)return e;return mB(e,o,{getCategory:e=>t.find((({slug:t})=>t===e.category))?.title,getCollection:e=>n[e.name.split("/")[0]]?.title})},mB=(e=[],t="",n={})=>{if(0===hB(t).length)return e;const o=e.map((e=>[e,fB(e,t,n)])).filter((([,e])=>e>0));return o.sort((([,e],[,t])=>t-e)),o.map((([e])=>e))};function fB(e,t,n={}){const{getName:o=tB,getTitle:r=nB,getDescription:i=oB,getKeywords:s=rB,getCategory:l=iB,getCollection:a=sB}=n,c=o(e),u=r(e),d=i(e),p=s(e),h=l(e),g=a(e),m=pB(t),f=pB(u);let b=0;if(m===f)b+=30;else if(f.startsWith(m))b+=20;else{const e=[c,u,d,...p,h,g].join(" ");0===((e,t)=>e.filter((e=>!hB(t).some((t=>t.includes(e))))))(dB(m),e).length&&(b+=10)}if(0!==b&&c.startsWith("core/")){b+=c!==e.id?1:2}return b}function bB(e,t,n,o=""){const[r,i]=(0,h.useState)(1),s=(0,m.usePrevious)(t),l=(0,m.usePrevious)(o);s===t&&l===o||1===r||i(1);const a=e.length,c=r-1,u=(0,h.useMemo)((()=>e.slice(20*c,20*c+20)),[c,e]),d=Math.ceil(e.length/20);return(0,h.useEffect)((function(){const e=(0,Ga.getScrollContainer)(n?.current);e?.scrollTo(0,0)}),[t,n]),{totalItems:a,categoryPatterns:u,numPages:d,changePage:e=>{const t=(0,Ga.getScrollContainer)(n?.current);t?.scrollTo(0,0),i(e)},currentPage:r}}function kB({filterValue:e,filteredBlockPatternsLength:t}){return e?(0,d.jsx)(ws.__experimentalHeading,{level:2,lineHeight:"48px",className:"block-editor-block-patterns-explorer__search-results-count",children:(0,T.sprintf)((0,T._n)("%d pattern found","%d patterns found",t),t)}):null}var vB=function({searchValue:e,selectedCategory:t,patternCategories:n,rootClientId:o,onModalClose:r}){const i=(0,h.useRef)(),s=(0,m.useDebounce)(Uo.speak,500),[l,a]=KC({rootClientId:o,shouldFocusBlock:!0}),[c,,u]=ZC(a,l,t),p=(0,h.useMemo)((()=>n.map((e=>e.name))),[n]),g=(0,h.useMemo)((()=>{const n=c.filter((e=>{if(t===at.name)return!0;if(t===ct.name&&e.type===it.user)return!0;if(t===ut.name&&e.blockTypes?.includes("core/post-content"))return!0;if("uncategorized"===t){const t=e.categories?.some((e=>p.includes(e)))??!1;return!e.categories?.length||!t}return e.categories?.includes(t)}));return e?mB(n,e):n}),[e,c,t,p]);(0,h.useEffect)((()=>{if(!e)return;const t=g.length,n=(0,T.sprintf)((0,T._n)("%d result found.","%d results found.",t),t);s(n)}),[e,s,g.length]);const f=bB(g,t,i),[b,k]=(0,h.useState)(e);e!==b&&(k(e),f.changePage(1));const v=!!g?.length;return(0,d.jsxs)("div",{className:"block-editor-block-patterns-explorer__list",ref:i,children:[(0,d.jsx)(kB,{filterValue:e,filteredBlockPatternsLength:g.length}),(0,d.jsx)(RC,{children:v&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)($C,{blockPatterns:f.categoryPatterns,onClickPattern:(e,t)=>{u(e,t),r()},isDraggable:!1}),(0,d.jsx)(FC,{...f})]})})]})};function _B(e,t="all"){const[n,o]=ZC(void 0,e),r=(0,h.useMemo)((()=>"all"===t?n:n.filter((e=>!dt(e,t)))),[t,n]),i=(0,h.useMemo)((()=>{const e=o.filter((e=>r.some((t=>t.categories?.includes(e.name))))).sort(((e,t)=>e.label.localeCompare(t.label)));return r.some((e=>!function(e,t){return!(!e.categories||!e.categories.length)&&e.categories.some((e=>t.some((t=>t.name===e))))}(e,o)))&&!e.find((e=>"uncategorized"===e.name))&&e.push({name:"uncategorized",label:(0,T._x)("Uncategorized")}),r.some((e=>e.blockTypes?.includes("core/post-content")))&&e.unshift(ut),r.some((e=>e.type===it.user))&&e.unshift(ct),r.length>0&&e.unshift({name:at.name,label:at.label}),(0,Uo.speak)((0,T.sprintf)((0,T._n)("%d category button displayed.","%d category buttons displayed.",e.length),e.length)),e}),[o,r]);return i}function yB({initialCategory:e,rootClientId:t,onModalClose:n}){const[o,r]=(0,h.useState)(""),[i,s]=(0,h.useState)(e?.name),l=_B(t);return(0,d.jsxs)("div",{className:"block-editor-block-patterns-explorer",children:[(0,d.jsx)(VC,{selectedCategory:i,patternCategories:l,onClickCategory:s,searchValue:o,setSearchValue:r}),(0,d.jsx)(vB,{searchValue:o,selectedCategory:i,patternCategories:l,rootClientId:t,onModalClose:n})]})}var xB=function({onModalClose:e,...t}){return(0,d.jsx)(ws.Modal,{title:(0,T.__)("Patterns"),onRequestClose:e,isFullScreen:!0,children:(0,d.jsx)(yB,{onModalClose:e,...t})})};function SB({title:e}){return(0,d.jsx)(ws.__experimentalVStack,{spacing:0,children:(0,d.jsx)(ws.__experimentalView,{children:(0,d.jsx)(ws.__experimentalSpacer,{marginBottom:0,paddingX:4,paddingY:3,children:(0,d.jsxs)(ws.__experimentalHStack,{spacing:2,children:[(0,d.jsx)(ws.Navigator.BackButton,{style:{minWidth:24,padding:0},icon:(0,T.isRTL)()?Zb:qb,size:"small",label:(0,T.__)("Back")}),(0,d.jsx)(ws.__experimentalSpacer,{children:(0,d.jsx)(ws.__experimentalHeading,{level:5,children:e})})]})})})})}function wB({categories:e,children:t}){return(0,d.jsxs)(ws.Navigator,{initialPath:"/",className:"block-editor-inserter__mobile-tab-navigation",children:[(0,d.jsx)(ws.Navigator.Screen,{path:"/",children:(0,d.jsx)(ws.__experimentalItemGroup,{children:e.map((e=>(0,d.jsx)(ws.Navigator.Button,{path:`/category/${e.name}`,as:ws.__experimentalItem,isAction:!0,children:(0,d.jsxs)(ws.__experimentalHStack,{children:[(0,d.jsx)(ws.FlexBlock,{children:e.label}),(0,d.jsx)(Ol,{icon:(0,T.isRTL)()?qb:Zb})]})},e.name)))})}),e.map((e=>(0,d.jsxs)(ws.Navigator.Screen,{path:`/category/${e.name}`,children:[(0,d.jsx)(SB,{title:(0,T.__)("Back")}),t(e)]},e.name)))]})}const CB=e=>"all"!==e&&"user"!==e,BB=[{value:"all",label:(0,T._x)("All","patterns")},{value:it.directory,label:(0,T.__)("Pattern Directory")},{value:it.theme,label:(0,T.__)("Theme & Plugins")},{value:it.user,label:(0,T.__)("User")}];function IB({setPatternSyncFilter:e,setPatternSourceFilter:t,patternSyncFilter:n,patternSourceFilter:o,scrollContainerRef:r,category:i}){const s=i.name===ct.name?it.user:o,l=CB(s),a=(e=>e.name===ct.name)(i),c=(0,h.useMemo)((()=>[{value:"all",label:(0,T._x)("All","patterns")},{value:st,label:(0,T._x)("Synced","patterns"),disabled:l},{value:lt,label:(0,T._x)("Not synced","patterns"),disabled:l}]),[l]);return(0,d.jsx)(d.Fragment,{children:(0,d.jsx)(ws.DropdownMenu,{popoverProps:{placement:"right-end"},label:(0,T.__)("Filter patterns"),toggleProps:{size:"compact"},icon:(0,d.jsx)(Ol,{icon:(0,d.jsx)(ws.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,d.jsx)(ws.Path,{d:"M10 17.5H14V16H10V17.5ZM6 6V7.5H18V6H6ZM8 12.5H16V11H8V12.5Z",fill:"currentColor"})})}),children:()=>(0,d.jsxs)(d.Fragment,{children:[!a&&(0,d.jsx)(ws.MenuGroup,{label:(0,T.__)("Source"),children:(0,d.jsx)(ws.MenuItemsChoice,{choices:BB,onSelect:n=>{var o;t(o=n),CB(o)&&e("all"),r.current?.scrollTo(0,0)},value:s})}),(0,d.jsx)(ws.MenuGroup,{label:(0,T.__)("Type"),children:(0,d.jsx)(ws.MenuItemsChoice,{choices:c,onSelect:t=>{e(t),r.current?.scrollTo(0,0)},value:n})}),(0,d.jsx)("div",{className:"block-editor-inserter__patterns-filter-help",children:(0,h.createInterpolateElement)((0,T.__)("Patterns are available from the <Link>WordPress.org Pattern Directory</Link>, bundled in the active theme, or created by users on this site. Only patterns created on this site can be synced."),{Link:(0,d.jsx)(ws.ExternalLink,{href:(0,T.__)("https://wordpress.org/patterns/")})})})]})})})}const jB=()=>{};function EB({rootClientId:e,onInsert:t,onHover:n=jB,category:o,showTitlesAsTooltip:r}){const[i,,s]=ZC(t,e,o?.name),[l,a]=(0,h.useState)("all"),[c,u]=(0,h.useState)("all"),p=_B(e,c),g=(0,h.useRef)(),m=(0,h.useMemo)((()=>i.filter((e=>!dt(e,c,l)&&(o.name===at.name||(o.name===ct.name&&e.type===it.user||(!(o.name!==ut.name||!e.blockTypes?.includes("core/post-content"))||("uncategorized"===o.name?!e.categories||!e.categories.some((e=>p.some((t=>t.name===e)))):e.categories?.includes(o.name)))))))),[i,p,o.name,c,l]),f=bB(m,o,g),{changePage:b}=f;(0,h.useEffect)((()=>()=>n(null)),[]);const k=(0,h.useCallback)((e=>{a(e),b(1)}),[a,b]),v=(0,h.useCallback)((e=>{u(e),b(1)}),[u,b]);return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(ws.__experimentalVStack,{spacing:2,className:"block-editor-inserter__patterns-category-panel-header",children:[(0,d.jsxs)(ws.__experimentalHStack,{children:[(0,d.jsx)(ws.FlexBlock,{children:(0,d.jsx)(ws.__experimentalHeading,{className:"block-editor-inserter__patterns-category-panel-title",size:13,level:4,as:"div",children:o.label})}),(0,d.jsx)(IB,{patternSyncFilter:l,patternSourceFilter:c,setPatternSyncFilter:k,setPatternSourceFilter:v,scrollContainerRef:g,category:o})]}),!m.length&&(0,d.jsx)(ws.__experimentalText,{variant:"muted",className:"block-editor-inserter__patterns-category-no-results",children:(0,T.__)("No results found")})]}),m.length>0&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(ws.__experimentalText,{size:"12",as:"p",className:"block-editor-inserter__help-text",children:(0,T.__)("Drag and drop patterns into the canvas.")}),(0,d.jsx)($C,{ref:g,blockPatterns:f.categoryPatterns,onClickPattern:s,onHover:n,label:o.label,orientation:"vertical",category:o.name,isDraggable:!0,showTitlesAsTooltip:r,patternFilter:c,pagingProps:f})]})]})}const{Tabs:TB}=G(ws.privateApis);var MB=function({categories:e,selectedCategory:t,onSelectCategory:n,children:o}){const r={type:"tween",duration:(0,m.useReducedMotion)()?0:.25,ease:[.6,0,.4,1]},i=(0,m.usePrevious)(t),s=t?t.name:null,[l,a]=(0,h.useState)(),c=e?.[0]?.name;return null===s&&!l&&c&&a(c),(0,d.jsxs)(TB,{selectOnMove:!1,selectedTabId:s,orientation:"vertical",onSelect:t=>{n(e.find((e=>e.name===t)))},activeTabId:l,onActiveTabIdChange:a,children:[(0,d.jsx)(TB.TabList,{className:"block-editor-inserter__category-tablist",children:e.map((e=>(0,d.jsx)(TB.Tab,{tabId:e.name,"aria-current":e===t?"true":void 0,children:e.label},e.name)))}),e.map((e=>(0,d.jsx)(TB.TabPanel,{tabId:e.name,focusable:!1,children:(0,d.jsx)(ws.__unstableMotion.div,{className:"block-editor-inserter__category-panel",initial:i?"open":"closed",animate:"open",variants:{open:{transform:"translateX( 0 )",transitionEnd:{zIndex:"1"}},closed:{transform:"translateX( -100% )",zIndex:"-1"}},transition:r,children:o})},e.name)))]})};var PB=function({onSelectCategory:e,selectedCategory:t,onInsert:n,rootClientId:o,children:r}){const[i,s]=(0,h.useState)(!1),l=_B(o),a=(0,m.useViewportMatch)("medium","<");return l.length?(0,d.jsxs)(d.Fragment,{children:[!a&&(0,d.jsxs)("div",{className:"block-editor-inserter__block-patterns-tabs-container",children:[(0,d.jsx)(MB,{categories:l,selectedCategory:t,onSelectCategory:e,children:r}),(0,d.jsx)(ws.Button,{__next40pxDefaultSize:!0,className:"block-editor-inserter__patterns-explore-button",onClick:()=>s(!0),variant:"secondary",children:(0,T.__)("Explore all patterns")})]}),a&&(0,d.jsx)(wB,{categories:l,children:e=>(0,d.jsx)("div",{className:"block-editor-inserter__category-panel",children:(0,d.jsx)(EB,{onInsert:n,rootClientId:o,category:e},e.name)})}),i&&(0,d.jsx)(xB,{initialCategory:t||l[0],patternCategories:l,onModalClose:()=>s(!1),rootClientId:o})]}):(0,d.jsx)(AC,{})},RB=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"M19.5 4.5h-7V6h4.44l-5.97 5.97 1.06 1.06L18 7.06v4.44h1.5v-7Zm-13 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3H17v3a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h3V5.5h-3Z"})});const AB={image:"img",video:"video",audio:"audio"};function NB(e,t){const n={id:e.id||void 0,caption:e.caption||void 0},o=e.url,r=e.alt||void 0;"image"===t?(n.url=o,n.alt=r):["video","audio"].includes(t)&&(n.src=o);const i=AB[t],s=(0,d.jsx)(i,{src:e.previewUrl||o,alt:r,controls:"audio"===t||void 0,inert:"true",onError:({currentTarget:t})=>{t.src===e.previewUrl&&(t.src=o)}});return[(0,p.createBlock)(`core/${t}`,n),s]}const LB=["image"],DB={placement:"bottom-end",className:"block-editor-inserter__media-list__item-preview-options__popover"};function OB({category:e,media:t}){if(!e.getReportUrl)return null;const n=e.getReportUrl(t);return(0,d.jsx)(ws.DropdownMenu,{className:"block-editor-inserter__media-list__item-preview-options",label:(0,T.__)("Options"),popoverProps:DB,icon:fv,children:()=>(0,d.jsx)(ws.MenuGroup,{children:(0,d.jsx)(ws.MenuItem,{onClick:()=>window.open(n,"_blank").focus(),icon:RB,children:(0,T.sprintf)((0,T.__)("Report %s"),e.mediaType)})})})}function zB({onClose:e,onSubmit:t}){return(0,d.jsxs)(ws.Modal,{title:(0,T.__)("Insert external image"),onRequestClose:e,className:"block-editor-inserter-media-tab-media-preview-inserter-external-image-modal",children:[(0,d.jsxs)(ws.__experimentalVStack,{spacing:3,children:[(0,d.jsx)("p",{children:(0,T.__)("This image cannot be uploaded to your Media Library, but it can still be inserted as an external image.")}),(0,d.jsx)("p",{children:(0,T.__)("External images can be removed by the external provider without warning and could even have legal compliance issues related to privacy legislation.")})]}),(0,d.jsxs)(ws.Flex,{className:"block-editor-block-lock-modal__actions",justify:"flex-end",expanded:!1,children:[(0,d.jsx)(ws.FlexItem,{children:(0,d.jsx)(ws.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:e,children:(0,T.__)("Cancel")})}),(0,d.jsx)(ws.FlexItem,{children:(0,d.jsx)(ws.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:t,children:(0,T.__)("Insert")})})]})]})}function VB({media:e,onClick:t,category:n}){const[o,r]=(0,h.useState)(!1),[i,s]=(0,h.useState)(!1),[l,a]=(0,h.useState)(!1),[c,u]=(0,h.useMemo)((()=>NB(e,n.mediaType)),[e,n.mediaType]),{createErrorNotice:m,createSuccessNotice:f}=(0,g.useDispatch)(pr.store),{getSettings:b,getBlock:k}=(0,g.useSelect)(ji),{updateBlockAttributes:v}=(0,g.useDispatch)(ji),_=(0,h.useCallback)((e=>{if(l)return;const n=b(),o=(0,p.cloneBlock)(e),{id:i,url:s,caption:c}=o.attributes;i||n.mediaUpload?i?t(o):(a(!0),window.fetch(s).then((e=>e.blob())).then((e=>{const r=(0,Ua.getFilename)(s)||"image.jpg",i=new File([e],r,{type:e.type});n.mediaUpload({filesList:[i],additionalData:{caption:c},onFileChange([e]){(0,$a.isBlobURL)(e.url)||(k(o.clientId)?v(o.clientId,{...o.attributes,id:e.id,url:e.url}):(t({...o,attributes:{...o.attributes,id:e.id,url:e.url}}),f((0,T.__)("Image uploaded and inserted."),{type:"snackbar",id:"inserter-notice"})),a(!1))},allowedTypes:LB,onError(e){m(e,{type:"snackbar",id:"inserter-notice"}),a(!1)}})})).catch((()=>{r(!0),a(!1)}))):r(!0)}),[l,b,t,f,v,m,k]),y="string"==typeof e.title?e.title:e.title?.rendered||(0,T.__)("no title"),x=(0,h.useCallback)((()=>s(!0)),[]),S=(0,h.useCallback)((()=>s(!1)),[]);return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(wC,{isEnabled:!0,blocks:[c],children:({draggable:t,onDragStart:o,onDragEnd:r})=>(0,d.jsx)("div",{className:ms("block-editor-inserter__media-list__list-item",{"is-hovered":i}),draggable:t,onDragStart:o,onDragEnd:r,children:(0,d.jsxs)("div",{onMouseEnter:x,onMouseLeave:S,children:[(0,d.jsx)(ws.Tooltip,{text:y,children:(0,d.jsx)(ws.Composite.Item,{render:(0,d.jsx)("div",{"aria-label":y,role:"option",className:"block-editor-inserter__media-list__item"}),onClick:()=>_(c),children:(0,d.jsxs)("div",{className:"block-editor-inserter__media-list__item-preview",children:[u,l&&(0,d.jsx)("div",{className:"block-editor-inserter__media-list__item-preview-spinner",children:(0,d.jsx)(ws.Spinner,{})})]})})}),!l&&(0,d.jsx)(OB,{category:n,media:e})]})})}),o&&(0,d.jsx)(zB,{onClose:()=>r(!1),onSubmit:()=>{t((0,p.cloneBlock)(c)),f((0,T.__)("Image inserted."),{type:"snackbar",id:"inserter-notice"}),r(!1)}})]})}var FB=function({mediaList:e,category:t,onClick:n,label:o=(0,T.__)("Media List")}){return(0,d.jsx)(ws.Composite,{role:"listbox",className:"block-editor-inserter__media-list","aria-label":o,children:e.map(((e,o)=>(0,d.jsx)(VB,{media:e,category:t,onClick:n},e.id||e.sourceId||o)))})};function HB({rootClientId:e,onInsert:t,category:n}){const[o,r,i]=(0,m.useDebouncedInput)(),{mediaList:s,isLoading:l}=function(e,t={}){const[n,o]=(0,h.useState)(),[r,i]=(0,h.useState)(!1),s=(0,h.useRef)();return(0,h.useEffect)((()=>{(async()=>{const n=JSON.stringify({category:e.name,...t});s.current=n,i(!0),o([]);const r=await(e.fetch?.(t));n===s.current&&(o(r),i(!1))})()}),[e.name,...Object.values(t)]),{mediaList:n,isLoading:r}}(n,{per_page:i?20:10,search:i}),a="block-editor-inserter__media-panel",c=n.labels.search_items||(0,T.__)("Search");return(0,d.jsxs)("div",{className:a,children:[(0,d.jsx)(ws.SearchControl,{__nextHasNoMarginBottom:!0,className:`${a}-search`,onChange:r,value:o,label:c,placeholder:c}),l&&(0,d.jsx)("div",{className:`${a}-spinner`,children:(0,d.jsx)(ws.Spinner,{})}),!l&&!s?.length&&(0,d.jsx)(AC,{}),!l&&!!s?.length&&(0,d.jsx)(FB,{rootClientId:e,onClick:t,mediaList:s,category:n})]})}const UB=["image","video","audio"];var GB=function({rootClientId:e,selectedCategory:t,onSelectCategory:n,onInsert:o,children:r}){const i=function(e){const[t,n]=(0,h.useState)([]),o=(0,g.useSelect)((e=>G(e(ji)).getInserterMediaCategories()),[]),{canInsertImage:r,canInsertVideo:i,canInsertAudio:s}=(0,g.useSelect)((t=>{const{canInsertBlockType:n}=t(ji);return{canInsertImage:n("core/image",e),canInsertVideo:n("core/video",e),canInsertAudio:n("core/audio",e)}}),[e]);return(0,h.useEffect)((()=>{(async()=>{const e=[];if(!o)return;const t=new Map(await Promise.all(o.map((async e=>{if(e.isExternalResource)return[e.name,!0];let t=[];try{t=await e.fetch({per_page:1})}catch(e){}return[e.name,!!t.length]})))),l={image:r,video:i,audio:s};o.forEach((n=>{l[n.mediaType]&&t.get(n.name)&&e.push(n)})),e.length&&n(e)})()}),[r,i,s,o]),t}(e),s=(0,m.useViewportMatch)("medium","<"),l=(0,h.useCallback)((e=>{if(!e?.url)return;const[t]=NB(e,e.type);o(t)}),[o]),a=(0,h.useMemo)((()=>i.map((e=>({...e,label:e.labels.name})))),[i]);return a.length?(0,d.jsxs)(d.Fragment,{children:[!s&&(0,d.jsxs)("div",{className:"block-editor-inserter__media-tabs-container",children:[(0,d.jsx)(MB,{categories:a,selectedCategory:t,onSelectCategory:n,children:r}),(0,d.jsx)(Xa,{children:(0,d.jsx)(Ya,{multiple:!1,onSelect:l,allowedTypes:UB,render:({open:e})=>(0,d.jsx)(ws.Button,{__next40pxDefaultSize:!0,onClick:t=>{t.target.focus(),e()},className:"block-editor-inserter__media-library-button",variant:"secondary","data-unstable-ignore-focus-outside-for-relatedtarget":".media-modal",children:(0,T.__)("Open Media Library")})})})]}),s&&(0,d.jsx)(wB,{categories:a,children:t=>(0,d.jsx)(HB,{onInsert:o,rootClientId:e,category:t})})]}):(0,d.jsx)(AC,{})};const{Fill:$B,Slot:WB}=(0,ws.createSlotFill)("__unstableInserterMenuExtension");$B.Slot=WB;var KB=$B;const ZB=(e,t)=>t?(e.sort((({id:e},{id:n})=>{let o=t.indexOf(e),r=t.indexOf(n);return o<0&&(o=t.length),r<0&&(r=t.length),o-r})),e):e,qB=[];var YB=function({filterValue:e,onSelect:t,onHover:n,onHoverPattern:o,rootClientId:r,clientId:i,isAppender:s,__experimentalInsertionIndex:l,maxBlockPatterns:a,maxBlockTypes:c,showBlockDirectory:u=!1,isDraggable:p=!0,shouldFocusBlock:f=!0,prioritizePatterns:b,selectBlockOnInsert:k,isQuick:v}){const _=(0,m.useDebounce)(Uo.speak,500),{prioritizedBlocks:y}=(0,g.useSelect)((e=>{const t=e(ji).getBlockListSettings(r);return{prioritizedBlocks:t?.prioritizedInserterBlocks||qB}}),[r]),[x,S]=KC({onSelect:t,rootClientId:r,clientId:i,isAppender:s,insertionIndex:l,shouldFocusBlock:f,selectBlockOnInsert:k}),[w,C,B,I]=MC(x,S,v),[j,,E]=ZC(S,x,void 0,v),M=(0,h.useMemo)((()=>{if(0===a)return[];const t=mB(j,e);return void 0!==a?t.slice(0,a):t}),[e,j,a]);let P=c;b&&M.length>2&&(P=0);const R=(0,h.useMemo)((()=>{if(0===P)return[];let t=xt(w.filter((e=>"core/block"!==e.name)),"frecency","desc");!e&&y.length&&(t=ZB(t,y));const n=gB(t,C,B,e);return void 0!==P?n.slice(0,P):n}),[e,w,C,B,P,y]);(0,h.useEffect)((()=>{if(!e)return;const t=R.length+M.length,n=(0,T.sprintf)((0,T._n)("%d result found.","%d results found.",t),t);_(n)}),[e,_,R,M]);const A=(0,m.useAsyncList)(R,{step:9}),N=R.length>0||M.length>0,L=!!R.length&&(0,d.jsx)(TC,{title:(0,d.jsx)(ws.VisuallyHidden,{children:(0,T.__)("Blocks")}),children:(0,d.jsx)(EC,{items:A,onSelect:I,onHover:n,label:(0,T.__)("Blocks"),isDraggable:p})}),D=!!M.length&&(0,d.jsx)(TC,{title:(0,d.jsx)(ws.VisuallyHidden,{children:(0,T.__)("Block patterns")}),children:(0,d.jsx)("div",{className:"block-editor-inserter__quick-inserter-patterns",children:(0,d.jsx)($C,{blockPatterns:M,onClickPattern:E,onHover:o,isDraggable:p})})});return(0,d.jsxs)(RC,{children:[!u&&!N&&(0,d.jsx)(AC,{}),b?D:L,!!R.length&&!!M.length&&(0,d.jsx)("div",{className:"block-editor-inserter__quick-inserter-separator"}),b?L:D,u&&(0,d.jsx)(KB.Slot,{fillProps:{onSelect:I,onHover:n,filterValue:e,hasItems:N,rootClientId:x},children:e=>e.length?e:N?null:(0,d.jsx)(AC,{})})]})},XB=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.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"})});const{Tabs:QB}=G(ws.privateApis);var JB=(0,h.forwardRef)((function({defaultTabId:e,onClose:t,onSelect:n,selectedTab:o,tabs:r,closeButtonLabel:i},s){return(0,d.jsx)("div",{className:"block-editor-tabbed-sidebar",children:(0,d.jsxs)(QB,{selectOnMove:!1,defaultTabId:e,onSelect:n,selectedTabId:o,children:[(0,d.jsxs)("div",{className:"block-editor-tabbed-sidebar__tablist-and-close-button",children:[(0,d.jsx)(ws.Button,{className:"block-editor-tabbed-sidebar__close-button",icon:XB,label:i,onClick:()=>t(),size:"compact"}),(0,d.jsx)(QB.TabList,{className:"block-editor-tabbed-sidebar__tablist",ref:s,children:r.map((e=>(0,d.jsx)(QB.Tab,{tabId:e.name,className:"block-editor-tabbed-sidebar__tab",children:e.title},e.name)))})]}),r.map((e=>(0,d.jsx)(QB.TabPanel,{tabId:e.name,focusable:!1,className:"block-editor-tabbed-sidebar__tabpanel",ref:e.panelRef,children:e.panel},e.name)))]})})}));function eI(e=!0){const{setZoomLevel:t,resetZoomLevel:n}=G((0,g.useDispatch)(ji)),{isZoomedOut:o,isZoomOut:r}=(0,g.useSelect)((e=>{const{isZoomOut:t}=G(e(ji));return{isZoomedOut:t(),isZoomOut:t}}),[]),i=(0,h.useRef)(!1),s=(0,h.useRef)(e);(0,h.useEffect)((()=>{o!==s.current&&(i.current=!1)}),[o]),(0,h.useEffect)((()=>(s.current=e,e!==r()&&(i.current=!0,e?t("auto-scaled"):n()),()=>{i.current&&r()&&n()})),[e,r,n,t])}const tI=()=>{};const nI=(0,h.forwardRef)((function({rootClientId:e,clientId:t,isAppender:n,__experimentalInsertionIndex:o,onSelect:r,showInserterHelpPanel:i,showMostUsedBlocks:s,__experimentalFilterValue:l="",shouldFocusBlock:a=!0,onPatternCategorySelection:c,onClose:u,__experimentalInitialTab:p,__experimentalInitialCategory:f},b){const{isZoomOutMode:k,hasSectionRootClientId:v}=(0,g.useSelect)((e=>{const{isZoomOut:t,getSectionRootClientId:n}=G(e(ji));return{isZoomOutMode:t(),hasSectionRootClientId:!!n()}}),[]),[_,y,x]=(0,m.useDebouncedInput)(l),[S,w]=(0,h.useState)(null),[C,B]=(0,h.useState)(f),[I,j]=(0,h.useState)("all"),[E,M]=(0,h.useState)(null),P=(0,m.useViewportMatch)("large"),[R,A]=(0,h.useState)(p||(k?"patterns":"blocks"));eI(v&&("patterns"===R||"media"===R)&&P);const[N,L,D]=KC({rootClientId:e,clientId:t,isAppender:n,insertionIndex:o,shouldFocusBlock:a}),O=(0,h.useRef)(),z=(0,h.useCallback)(((e,t,n,o)=>{L(e,t,n,o),r(e),window.requestAnimationFrame((()=>{a||O.current?.contains(b.current.ownerDocument.activeElement)||O.current?.querySelector("button").focus()}))}),[L,r,a]),V=(0,h.useCallback)(((e,t,...n)=>{D(!1),L(e,{patternName:t},...n),r()}),[L,r]),F=(0,h.useCallback)((e=>{D(e),w(e)}),[D,w]),H=(0,h.useCallback)(((e,t)=>{B(e),j(t),c?.()}),[B,c]),U="patterns"===R&&!x&&!!C,$="media"===R&&!!E,W=(0,h.useMemo)((()=>"media"===R?null:(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(ws.SearchControl,{__nextHasNoMarginBottom:!0,className:"block-editor-inserter__search",onChange:e=>{S&&w(null),y(e)},value:_,label:(0,T.__)("Search"),placeholder:(0,T.__)("Search")}),!!x&&(0,d.jsx)(YB,{filterValue:x,onSelect:r,onHover:F,rootClientId:e,clientId:t,isAppender:n,__experimentalInsertionIndex:o,showBlockDirectory:!0,shouldFocusBlock:a,prioritizePatterns:"patterns"===R})]})),[R,S,w,y,_,x,r,F,a,t,e,o,n]),K=(0,h.useMemo)((()=>(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("div",{className:"block-editor-inserter__block-list",children:(0,d.jsx)(DC,{ref:O,rootClientId:N,onInsert:z,onHover:F,showMostUsedBlocks:s})}),i&&(0,d.jsxs)("div",{className:"block-editor-inserter__tips",children:[(0,d.jsx)(ws.VisuallyHidden,{as:"h2",children:(0,T.__)("A tip for using the block editor")}),(0,d.jsx)(Kb,{})]})]})),[N,z,F,s,i]),Z=(0,h.useMemo)((()=>(0,d.jsx)(PB,{rootClientId:N,onInsert:V,onSelectCategory:H,selectedCategory:C,children:U&&(0,d.jsx)(EB,{rootClientId:N,onInsert:V,category:C,patternFilter:I,showTitlesAsTooltip:!0})})),[N,V,H,I,C,U]),q=(0,h.useMemo)((()=>(0,d.jsx)(GB,{rootClientId:N,selectedCategory:E,onSelectCategory:M,onInsert:z,children:$&&(0,d.jsx)(HB,{rootClientId:N,onInsert:z,category:E})})),[N,z,E,M,$]),Y=(0,h.useRef)();return(0,h.useLayoutEffect)((()=>{Y.current&&window.requestAnimationFrame((()=>{Y.current.querySelector('[role="tab"][aria-selected="true"]')?.focus()}))}),[]),(0,d.jsxs)("div",{className:ms("block-editor-inserter__menu",{"show-panel":U||$,"is-zoom-out":k}),ref:b,children:[(0,d.jsx)("div",{className:"block-editor-inserter__main-area",children:(0,d.jsx)(JB,{ref:Y,onSelect:e=>{"patterns"!==e&&B(null),A(e)},onClose:u,selectedTab:R,closeButtonLabel:(0,T.__)("Close Block Inserter"),tabs:[{name:"blocks",title:(0,T.__)("Blocks"),panel:(0,d.jsxs)(d.Fragment,{children:[W,"blocks"===R&&!x&&K]})},{name:"patterns",title:(0,T.__)("Patterns"),panel:(0,d.jsxs)(d.Fragment,{children:[W,"patterns"===R&&!x&&Z]})},{name:"media",title:(0,T.__)("Media"),panel:(0,d.jsxs)(d.Fragment,{children:[W,q]})}]})}),i&&S&&(0,d.jsx)(ws.Popover,{className:"block-editor-inserter__preview-container__popover",placement:"right-start",offset:16,focusOnMount:!1,animate:!1,children:(0,d.jsx)(_C,{item:S})})]})}));var oI=(0,h.forwardRef)((function(e,t){return(0,d.jsx)(nI,{...e,onPatternCategorySelection:tI,ref:t})}));function rI({onSelect:e,rootClientId:t,clientId:n,isAppender:o,selectBlockOnInsert:r,hasSearch:i=!0}){const[s,l]=(0,h.useState)(""),[a,c]=KC({onSelect:e,rootClientId:t,clientId:n,isAppender:o,selectBlockOnInsert:r}),[u]=MC(a,c,!0),{setInserterIsOpened:p,insertionIndex:m}=(0,g.useSelect)((e=>{const{getSettings:t,getBlockIndex:o,getBlockCount:r}=e(ji),i=t(),s=o(n),l=r();return{setInserterIsOpened:i.__experimentalSetIsInserterOpened,insertionIndex:-1===s?l:s}}),[n]),f=i&&u.length>6;(0,h.useEffect)((()=>{p&&p(!1)}),[p]);return(0,d.jsxs)("div",{className:ms("block-editor-inserter__quick-inserter",{"has-search":f,"has-expand":p}),children:[f&&(0,d.jsx)(ws.SearchControl,{__nextHasNoMarginBottom:!0,className:"block-editor-inserter__search",value:s,onChange:e=>{l(e)},label:(0,T.__)("Search"),placeholder:(0,T.__)("Search")}),(0,d.jsx)("div",{className:"block-editor-inserter__quick-inserter-results",children:(0,d.jsx)(YB,{filterValue:s,onSelect:e,rootClientId:t,clientId:n,isAppender:o,maxBlockPatterns:s?2:0,maxBlockTypes:6,isDraggable:!1,selectBlockOnInsert:r,isQuick:!0})}),p&&(0,d.jsx)(ws.Button,{__next40pxDefaultSize:!0,className:"block-editor-inserter__quick-inserter-expand",onClick:()=>{p({filterValue:s,onSelect:e,rootClientId:t,insertionIndex:m})},"aria-label":(0,T.__)("Browse all. This will open the main inserter panel in the editor toolbar."),children:(0,T.__)("Browse all")})]})}const iI=({onToggle:e,disabled:t,isOpen:n,blockTitle:o,hasSingleBlockType:r,toggleProps:i={}})=>{const{as:s=ws.Button,label:l,onClick:a,...c}=i;let u=l;return!u&&r?u=(0,T.sprintf)((0,T._x)("Add %s","directly add the only allowed block"),o):u||(u=(0,T._x)("Add block","Generic label for block inserter button")),(0,d.jsx)(s,{__next40pxDefaultSize:!i.as||void 0,icon:cc,label:u,tooltipPosition:"bottom",onClick:function(t){e&&e(t),a&&a(t)},className:"block-editor-inserter__toggle","aria-haspopup":!r&&"true","aria-expanded":!r&&n,disabled:t,...c})};class sI extends h.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({onToggle:e,isOpen:t}){const{disabled:n,blockTitle:o,hasSingleBlockType:r,directInsertBlock:i,toggleProps:s,hasItems:l,renderToggle:a=iI}=this.props;return a({onToggle:e,isOpen:t,disabled:n||!l,blockTitle:o,hasSingleBlockType:r,directInsertBlock:i,toggleProps:s})}renderContent({onClose:e}){const{rootClientId:t,clientId:n,isAppender:o,showInserterHelpPanel:r,__experimentalIsQuick:i,onSelectOrClose:s,selectBlockOnInsert:l}=this.props;return i?(0,d.jsx)(rI,{onSelect:t=>{const n=Array.isArray(t)&&t?.length?t[0]:t;s&&"function"==typeof s&&s(n),e()},rootClientId:t,clientId:n,isAppender:o,selectBlockOnInsert:l}):(0,d.jsx)(oI,{onSelect:()=>{e()},rootClientId:t,clientId:n,isAppender:o,showInserterHelpPanel:r})}render(){const{position:e,hasSingleBlockType:t,directInsertBlock:n,insertOnlyAllowedBlock:o,__experimentalIsQuick:r,onSelectOrClose:i}=this.props;return t||n?this.renderToggle({onToggle:o}):(0,d.jsx)(ws.Dropdown,{className:"block-editor-inserter",contentClassName:ms("block-editor-inserter__popover",{"is-quick":r}),popoverProps:{position:e,shift:!0},onToggle:this.onToggle,expandOnMobile:!0,headerTitle:(0,T.__)("Add a block"),renderToggle:this.renderToggle,renderContent:this.renderContent,onClose:i})}}var lI=(0,m.compose)([(0,g.withSelect)(((e,{clientId:t,rootClientId:n,shouldDirectInsert:o=!0})=>{const{getBlockRootClientId:r,hasInserterItems:i,getAllowedBlocks:s,getDirectInsertBlock:l}=e(ji),{getBlockVariations:a}=e(p.store),c=s(n=n||r(t)||void 0),u=o&&l(n),d=1===c?.length&&0===a(c[0].name,"inserter")?.length;let h=!1;return d&&(h=c[0]),{hasItems:i(n),hasSingleBlockType:d,blockTitle:h?h.title:"",allowedBlockType:h,directInsertBlock:u,rootClientId:n}})),(0,g.withDispatch)(((e,t,{select:n})=>({insertOnlyAllowedBlock(){const{rootClientId:o,clientId:r,isAppender:i,hasSingleBlockType:s,allowedBlockType:l,directInsertBlock:a,onSelectOrClose:c,selectBlockOnInsert:u}=t;if(!s&&!a)return;const{insertBlock:d}=e(ji);let h;if(a){const e=function(e){const{getBlock:t,getPreviousBlockClientId:i}=n(ji);if(!e||!r&&!o)return{};const s={};let l={};if(r){const e=t(r),n=t(i(r));e?.name===n?.name&&(l=n?.attributes||{})}else{const e=t(o);if(e?.innerBlocks?.length){const t=e.innerBlocks[e.innerBlocks.length-1];a&&a?.name===t.name&&(l=t.attributes)}}return e.forEach((e=>{l.hasOwnProperty(e)&&(s[e]=l[e])})),s}(a.attributesToCopy);h=(0,p.createBlock)(a.name,{...a.attributes||{},...e})}else h=(0,p.createBlock)(l.name);d(h,function(){const{getBlockIndex:e,getBlockSelectionEnd:t,getBlockOrder:s,getBlockRootClientId:l}=n(ji);if(r)return e(r);const a=t();return!i&&a&&l(a)===o?e(a)+1:s(o).length}(),o,u),c&&c(h);const g=(0,T.sprintf)((0,T.__)("%s block added"),l.title);(0,Uo.speak)(g)}}))),(0,m.ifCondition)((({hasItems:e,isAppender:t,rootClientId:n,clientId:o})=>e||!t&&!n&&!o))])(sI);function aI({rootClientId:e,className:t,onFocus:n,tabIndex:o,onSelect:r},i){return(0,d.jsx)(lI,{position:"bottom center",rootClientId:e,__experimentalIsQuick:!0,onSelectOrClose:(...e)=>{r&&"function"==typeof r&&r(...e)},renderToggle:({onToggle:e,disabled:r,isOpen:s,blockTitle:l,hasSingleBlockType:a})=>{const c=!a,u=a?(0,T.sprintf)((0,T._x)("Add %s","directly add the only allowed block"),l):(0,T._x)("Add block","Generic label for block inserter button");return(0,d.jsx)(ws.Button,{__next40pxDefaultSize:!0,ref:i,onFocus:n,tabIndex:o,className:ms(t,"block-editor-button-block-appender"),onClick:e,"aria-haspopup":c?"true":void 0,"aria-expanded":c?s:void 0,disabled:r,label:u,showTooltip:!0,children:(0,d.jsx)(Ol,{icon:cc})})},isAppender:!0})}const cI=(0,h.forwardRef)(((e,t)=>(I()("wp.blockEditor.ButtonBlockerAppender",{alternative:"wp.blockEditor.ButtonBlockAppender",since:"5.9"}),aI(e,t))));var uI=(0,h.forwardRef)(aI);function dI({clientId:e,contentRef:t,parentLayout:n}){const o=(0,g.useSelect)((e=>e(ji).getSettings().isDistractionFree),[]),r=bh(e);if(o||!r)return null;const i=n?.isManualPlacement&&window.__experimentalEnableGridInteractivity;return(0,d.jsx)(pI,{gridClientId:e,gridElement:r,isManualGrid:i,ref:t})}const pI=(0,h.forwardRef)((({gridClientId:e,gridElement:t,isManualGrid:n},o)=>{const[r,i]=(0,h.useState)((()=>$b(t))),[s,l]=(0,h.useState)(!1);return(0,h.useEffect)((()=>{const e=()=>i($b(t)),n=new window.ResizeObserver(e);n.observe(t,{box:"border-box"});const o=new window.ResizeObserver(e);return o.observe(t),()=>{n.disconnect(),o.disconnect()}}),[t]),(0,h.useEffect)((()=>{function e(){l(!0)}function t(){l(!1)}return document.addEventListener("drag",e),document.addEventListener("dragend",t),()=>{document.removeEventListener("drag",e),document.removeEventListener("dragend",t)}}),[]),(0,d.jsx)(of,{className:ms("block-editor-grid-visualizer",{"is-dropping-allowed":s}),clientId:e,__unstablePopoverSlot:"__unstable-block-tools-after",children:(0,d.jsx)("div",{ref:o,className:"block-editor-grid-visualizer__grid",style:r.style,children:n?(0,d.jsx)(hI,{gridClientId:e,gridInfo:r}):Array.from({length:r.numItems},((e,t)=>(0,d.jsx)(gI,{color:r.currentColor},t)))})})}));function hI({gridClientId:e,gridInfo:t}){const[n,o]=(0,h.useState)(null),r=(0,g.useSelect)((t=>{const{getBlockOrder:n,getBlockStyles:o}=G(t(ji));return o(n(e))}),[e]),i=(0,h.useMemo)((()=>{const e=[];for(const t of Object.values(r)){const{columnStart:n,rowStart:o,columnSpan:r=1,rowSpan:i=1}=t?.layout??{};n&&o&&e.push(new Fb({columnStart:n,rowStart:o,columnSpan:r,rowSpan:i}))}return e}),[r]);return Vb(1,t.numRows).map((r=>Vb(1,t.numColumns).map((s=>{const l=i.some((e=>e.contains(s,r))),a=n?.contains(s,r)??!1;return(0,d.jsx)(gI,{color:t.currentColor,className:a&&"is-highlighted",children:l?(0,d.jsx)(fI,{column:s,row:r,gridClientId:e,gridInfo:t,setHighlightedRect:o}):(0,d.jsx)(bI,{column:s,row:r,gridClientId:e,gridInfo:t,setHighlightedRect:o})},`${r}-${s}`)}))))}function gI({color:e,children:t,className:n}){return(0,d.jsx)("div",{className:ms("block-editor-grid-visualizer__cell",n),style:{boxShadow:`inset 0 0 0 1px color-mix(in srgb, ${e} 20%, #0000)`,color:e},children:t})}function mI(e,t,n,o,r){const{getBlockAttributes:i,getBlockRootClientId:s,canInsertBlockType:l,getBlockName:a}=(0,g.useSelect)(ji),{updateBlockAttributes:c,moveBlocksToPosition:u,__unstableMarkNextChangeAsNotPersistent:d}=(0,g.useDispatch)(ji),p=km(n,o.numColumns);return function({validateDrag:e,onDragEnter:t,onDragLeave:n,onDrop:o}){const{getDraggedBlockClientIds:r}=(0,g.useSelect)(ji);return(0,m.__experimentalUseDropZone)({onDragEnter(){const[n]=r();n&&e(n)&&t(n)},onDragLeave(){n()},onDrop(){const[t]=r();t&&e(t)&&o(t)}})}({validateDrag(r){const s=a(r);if(!l(s,n))return!1;const c=i(r),u=new Fb({columnStart:e,rowStart:t,columnSpan:c.style?.layout?.columnSpan,rowSpan:c.style?.layout?.rowSpan});return new Fb({columnSpan:o.numColumns,rowSpan:o.numRows}).containsRect(u)},onDragEnter(n){const o=i(n);r(new Fb({columnStart:e,rowStart:t,columnSpan:o.style?.layout?.columnSpan,rowSpan:o.style?.layout?.rowSpan}))},onDragLeave(){r((n=>n?.columnStart===e&&n?.rowStart===t?null:n))},onDrop(o){r(null);const l=i(o);c(o,{style:{...l.style,layout:{...l.style?.layout,columnStart:e,rowStart:t}}}),d(),u([o],s(o),n,p(e,t))}})}function fI({column:e,row:t,gridClientId:n,gridInfo:o,setHighlightedRect:r}){return(0,d.jsx)("div",{className:"block-editor-grid-visualizer__drop-zone",ref:mI(e,t,n,o,r)})}function bI({column:e,row:t,gridClientId:n,gridInfo:o,setHighlightedRect:r}){const{updateBlockAttributes:i,moveBlocksToPosition:s,__unstableMarkNextChangeAsNotPersistent:l}=(0,g.useDispatch)(ji),a=km(n,o.numColumns);return(0,d.jsx)(uI,{rootClientId:n,className:"block-editor-grid-visualizer__appender",ref:mI(e,t,n,o,r),style:{color:o.currentColor},onSelect:o=>{o&&(i(o.clientId,{style:{layout:{columnStart:e,rowStart:t}}}),l(),s([o.clientId],n,n,a(e,t)))}})}function kI({clientId:e,bounds:t,onChange:n,parentLayout:o}){const r=bh(e),i=r?.parentElement,{isManualPlacement:s}=o;return r&&i?(0,d.jsx)(vI,{clientId:e,bounds:t,blockElement:r,rootBlockElement:i,onChange:n,isManualGrid:s&&window.__experimentalEnableGridInteractivity}):null}function vI({clientId:e,bounds:t,blockElement:n,rootBlockElement:o,onChange:r,isManualGrid:i}){const[s,l]=(0,h.useState)(null),[a,c]=(0,h.useState)({top:!1,bottom:!1,left:!1,right:!1});(0,h.useEffect)((()=>{const e=new window.ResizeObserver((()=>{const e=n.getBoundingClientRect(),t=o.getBoundingClientRect();c({top:e.top>t.top,bottom:e.bottom<t.bottom,left:e.left>t.left,right:e.right<t.right})}));return e.observe(n),()=>e.disconnect()}),[n,o]);const u={right:"left",left:"right"},p={top:"flex-end",bottom:"flex-start"},g={display:"flex",justifyContent:"center",alignItems:"center",...u[s]&&{justifyContent:u[s]},...p[s]&&{alignItems:p[s]}};return(0,d.jsx)(of,{className:"block-editor-grid-item-resizer",clientId:e,__unstablePopoverSlot:"__unstable-block-tools-after",additionalStyles:g,children:(0,d.jsx)(ws.ResizableBox,{className:"block-editor-grid-item-resizer__box",size:{width:"100%",height:"100%"},enable:{bottom:a.bottom,bottomLeft:!1,bottomRight:!1,left:a.left,right:a.right,top:a.top,topLeft:!1,topRight:!1},bounds:t,boundsByDirection:!0,onPointerDown:({target:e,pointerId:t})=>{e.setPointerCapture(t)},onResizeStart:(e,t)=>{l(t)},onResizeStop:(e,t,s)=>{const l=parseFloat(Hb(o,"column-gap")),a=parseFloat(Hb(o,"row-gap")),c=Ub(Hb(o,"grid-template-columns"),l),u=Ub(Hb(o,"grid-template-rows"),a),d=new window.DOMRect(n.offsetLeft+s.offsetLeft,n.offsetTop+s.offsetTop,s.offsetWidth,s.offsetHeight),p=Gb(c,d.left)+1,h=Gb(u,d.top)+1,g=Gb(c,d.right,"end")+1,m=Gb(u,d.bottom,"end")+1;r({columnSpan:g-p+1,rowSpan:m-h+1,columnStart:i?p:void 0,rowStart:i?h:void 0})}})})}var _I=(0,d.jsx)(ue.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,d.jsx)(ue.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"})}),yI=(0,d.jsx)(ue.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,d.jsx)(ue.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"})});function xI({layout:e,parentLayout:t,onChange:n,gridClientId:o,blockClientId:r}){const{moveBlocksToPosition:i,__unstableMarkNextChangeAsNotPersistent:s}=(0,g.useDispatch)(ji),l=e?.columnStart??1,a=e?.rowStart??1,c=l+(e?.columnSpan??1)-1,u=a+(e?.rowSpan??1)-1,p=t?.columnCount,h=t?.rowCount,m=km(o,p);return(0,d.jsx)(Rs,{group:"parent",children:(0,d.jsxs)(ws.ToolbarGroup,{className:"block-editor-grid-item-mover__move-button-container",children:[(0,d.jsx)("div",{className:"block-editor-grid-item-mover__move-horizontal-button-container is-left",children:(0,d.jsx)(SI,{icon:(0,T.isRTL)()?Zb:qb,label:(0,T.__)("Move left"),description:(0,T.__)("Move left"),isDisabled:l<=1,onClick:()=>{n({columnStart:l-1}),s(),i([r],o,o,m(l-1,a))}})}),(0,d.jsxs)("div",{className:"block-editor-grid-item-mover__move-vertical-button-container",children:[(0,d.jsx)(SI,{className:"is-up-button",icon:_I,label:(0,T.__)("Move up"),description:(0,T.__)("Move up"),isDisabled:a<=1,onClick:()=>{n({rowStart:a-1}),s(),i([r],o,o,m(l,a-1))}}),(0,d.jsx)(SI,{className:"is-down-button",icon:yI,label:(0,T.__)("Move down"),description:(0,T.__)("Move down"),isDisabled:h&&u>=h,onClick:()=>{n({rowStart:a+1}),s(),i([r],o,o,m(l,a+1))}})]}),(0,d.jsx)("div",{className:"block-editor-grid-item-mover__move-horizontal-button-container is-right",children:(0,d.jsx)(SI,{icon:(0,T.isRTL)()?qb:Zb,label:(0,T.__)("Move right"),description:(0,T.__)("Move right"),isDisabled:p&&c>=p,onClick:()=>{n({columnStart:l+1}),s(),i([r],o,o,m(l+1,a))}})})]})})}function SI({className:e,icon:t,label:n,isDisabled:o,onClick:r,description:i}){const s=`block-editor-grid-item-mover-button__description-${(0,m.useInstanceId)(SI)}`;return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(ws.ToolbarButton,{className:ms("block-editor-grid-item-mover-button",e),icon:t,label:n,"aria-describedby":s,onClick:o?null:r,disabled:o,accessibleWhenDisabled:!0}),(0,d.jsx)(ws.VisuallyHidden,{id:s,children:i})]})}const wI={};function CI({clientId:e,style:t,setAttributes:n,allowSizingOnChildren:o,isManualPlacement:r,parentLayout:i}){const{rootClientId:s,isVisible:l}=(0,g.useSelect)((t=>{const{getBlockRootClientId:n,getBlockEditingMode:o,getTemplateLock:r}=t(ji),i=n(e);return r(i)||"default"!==o(i)?{rootClientId:i,isVisible:!1}:{rootClientId:i,isVisible:!0}}),[e]),[a,c]=(0,h.useState)();if(!l)return null;function u(e){n({style:{...t,layout:{...t?.layout,...e}}})}return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(dI,{clientId:s,contentRef:c,parentLayout:i}),o&&(0,d.jsx)(kI,{clientId:e,bounds:a,onChange:u,parentLayout:i}),r&&window.__experimentalEnableGridInteractivity&&(0,d.jsx)(xI,{layout:t?.layout,parentLayout:i,onChange:u,gridClientId:s,blockClientId:e})]})}var BI={useBlockProps:function({style:e}){const t=(0,g.useSelect)((e=>!e(ji).getSettings().disableLayoutStyles)),n=e?.layout??{},{selfStretch:o,flexSize:r,columnStart:i,rowStart:s,columnSpan:l,rowSpan:a}=n,c=ta()||{},{columnCount:u,minimumColumnWidth:d}=c,p=(0,m.useInstanceId)(wI),h=`.wp-container-content-${p}`;let f="";if(t&&("fixed"===o&&r?f=`${h} {\n\t\t\t\tflex-basis: ${r};\n\t\t\t\tbox-sizing: border-box;\n\t\t\t}`:"fill"===o?f=`${h} {\n\t\t\t\tflex-grow: 1;\n\t\t\t}`:i&&l?f=`${h} {\n\t\t\t\tgrid-column: ${i} / span ${l};\n\t\t\t}`:i?f=`${h} {\n\t\t\t\tgrid-column: ${i};\n\t\t\t}`:l&&(f=`${h} {\n\t\t\t\tgrid-column: span ${l};\n\t\t\t}`),s&&a?f+=`${h} {\n\t\t\t\tgrid-row: ${s} / span ${a};\n\t\t\t}`:s?f+=`${h} {\n\t\t\t\tgrid-row: ${s};\n\t\t\t}`:a&&(f+=`${h} {\n\t\t\t\tgrid-row: span ${a};\n\t\t\t}`),(l||i)&&(d||!u))){let e=parseFloat(d);isNaN(e)&&(e=12);let t=d?.replace(e,"");["px","rem","em"].includes(t)||(t="rem");let n=2;n=l&&i?l+i-1:l||i;const o="px"===t?24:1.5,r=n*e+(n-1)*o,s=2*e+o-1,a=l&&l>1?"1/-1":"auto";f+=`@container (max-width: ${Math.max(r,s)}${t}) {\n\t\t\t\t${h} {\n\t\t\t\t\tgrid-column: ${a};\n\t\t\t\t\tgrid-row: auto;\n\t\t\t\t}\n\t\t\t}`}if(_s({css:f}),f)return{className:`wp-container-content-${p}`}},edit:function({clientId:e,style:t,setAttributes:n}){const o=ta()||{},{type:r="default",allowSizingOnChildren:i=!1,isManualPlacement:s}=o;return"grid"!==r?null:(0,d.jsx)(CI,{clientId:e,style:t,setAttributes:n,allowSizingOnChildren:i,isManualPlacement:s,parentLayout:o})},attributeKeys:["style"],hasSupport:()=>!0};var II={edit:function({clientId:e}){const{templateLock:t,isLockedByParent:n,isEditingAsBlocks:o}=(0,g.useSelect)((t=>{const{getContentLockingParent:n,getTemplateLock:o,getTemporarilyEditingAsBlocks:r}=G(t(ji));return{templateLock:o(e),isLockedByParent:!!n(e),isEditingAsBlocks:r()===e}}),[e]),{stopEditingAsBlocks:r}=G((0,g.useDispatch)(ji)),i=!n&&"contentOnly"===t,s=(0,h.useCallback)((()=>{r(e)}),[e,r]);return i||o?o&&!i&&(0,d.jsx)(Rs,{group:"other",children:(0,d.jsx)(ws.ToolbarButton,{onClick:s,children:(0,T.__)("Done")})}):null},hasSupport:()=>!0};const jI="metadata";(0,f.addFilter)("blocks.registerBlockType","core/metadata/addMetaAttribute",(function(e){return e?.attributes?.[jI]?.type||(e.attributes={...e.attributes,[jI]:{type:"object"}}),e})),(0,f.addFilter)("blocks.switchToBlockType.transformedBlock","core/metadata/addTransforms",(function(e,t,n,o){if(1===o.length&&e.innerBlocks.length===t.length)return e;if(1===o.length&&t.length>1||o.length>1&&1===t.length)return e;if(o.length>1&&t.length>1&&o.length!==t.length)return e;const r=t[n]?.attributes?.metadata;if(!r)return e;const i={};return r.noteId&&!e.attributes?.metadata?.noteId&&(i.noteId=r.noteId),r.name&&!e.attributes?.metadata?.name&&(0,p.hasBlockSupport)(e.name,"renaming",!0)&&(i.name=r.name),void 0!==r.blockVisibility&&!e.attributes?.metadata?.blockVisibility&&(0,p.hasBlockSupport)(e.name,"blockVisibility",!0)&&(i.blockVisibility=r.blockVisibility),Object.keys(i).length>0?{...e,attributes:{...e.attributes,metadata:{...e.attributes.metadata,...i}}}:e}));const EI={};var TI={edit:function({name:e,clientId:t,metadata:{ignoredHookedBlocks:n=[]}={}}){const o=(0,g.useSelect)((e=>e(p.store).getBlockTypes()),[]),r=(0,h.useMemo)((()=>o?.filter((({name:t,blockHooks:o})=>o&&e in o||n.includes(t)))),[o,e,n]),i=(0,g.useSelect)((n=>{const{getBlocks:o,getBlockRootClientId:i,getGlobalBlockCount:s}=n(ji),l=i(t),a=r.reduce(((n,r)=>{if(0===s(r.name))return n;const i=r?.blockHooks?.[e];let a;switch(i){case"before":case"after":a=o(l);break;case"first_child":case"last_child":a=o(t);break;case void 0:a=[...o(l),...o(t)]}const c=a?.find((e=>e.name===r.name));return c?{...n,[r.name]:c.clientId}:n}),{});return Object.values(a).length>0?a:EI}),[r,e,t]),{getBlockIndex:s,getBlockCount:l,getBlockRootClientId:a}=(0,g.useSelect)(ji),{insertBlock:c,removeBlock:u}=(0,g.useDispatch)(ji);if(!r.length)return null;const m=r.reduce(((e,t)=>{const[n]=t.name.split("/");return e[n]||(e[n]=[]),e[n].push(t),e}),{});return(0,d.jsx)(Fa,{children:(0,d.jsxs)(ws.PanelBody,{className:"block-editor-hooks__block-hooks",title:(0,T.__)("Plugins"),initialOpen:!0,children:[(0,d.jsx)("p",{className:"block-editor-hooks__block-hooks-helptext",children:(0,T.__)("Manage the inclusion of blocks added automatically by plugins.")}),Object.keys(m).map((n=>(0,d.jsxs)(h.Fragment,{children:[(0,d.jsx)("h3",{children:n}),m[n].map((n=>{const o=n.name in i;return(0,d.jsx)(ws.ToggleControl,{__nextHasNoMarginBottom:!0,checked:o,label:n.title,onChange:()=>{if(o)u(i[n.name],!1);else{const o=n.blockHooks[e];((e,n)=>{const o=s(t),r=l(t),i=a(t);switch(n){case"before":case"after":c(e,"after"===n?o+1:o,i,!1);break;case"first_child":case"last_child":c(e,"first_child"===n?0:r,t,!1);break;case void 0:c(e,o+1,i,!1)}})((0,p.createBlock)(n.name),o)}}},n.title)}))]},n)))]})})},attributeKeys:["metadata"],hasSupport:()=>!0};const{Menu:MI}=G(ws.privateApis),PI={},RI=(e,t)=>{const n=(0,p.getBlockType)(e).attributes?.[t]?.type;return"rich-text"===n?"string":n};function AI({attribute:e,binding:t,sources:n}){const{clientId:o}=C(),{updateBlockBindings:r}=dv(),i=(0,m.useViewportMatch)("medium","<"),s=(0,h.useContext)(sv),{attributeType:l,select:a}=(0,g.useSelect)((t=>{const{name:n}=t(ji).getBlock(o);return{attributeType:RI(n,e),select:t}}),[o,e]);return(0,d.jsx)(MI,{placement:i?"bottom-start":"left-start",children:Object.entries(n).map((([n,o])=>{const c=o.data?.filter((e=>e?.type===l));return!c||0===c.length?null:(0,d.jsxs)(MI,{placement:i?"bottom-start":"left-start",children:[(0,d.jsx)(MI.SubmenuTriggerItem,{children:(0,d.jsx)(MI.ItemLabel,{children:o.label})}),(0,d.jsx)(MI.Popover,{gutter:8,children:(0,d.jsx)(MI.Group,{children:c.map((i=>{const l={source:n,args:i?.args||{key:i.key}};let c={};try{c=o.getValues({select:a,context:s,bindings:{[e]:l}})}catch(e){}return(0,d.jsxs)(MI.CheckboxItem,{onChange:()=>{const n=E()(t?.args,i.args)??i.key===t?.args?.key;r(n?{[e]:void 0}:{[e]:l})},name:e+"-binding",value:c[e],checked:E()(t?.args,i.args)??i.key===t?.args?.key,children:[(0,d.jsx)(MI.ItemLabel,{children:i?.label}),(0,d.jsx)(MI.ItemHelpText,{children:c[e]})]},n+JSON.stringify(i.args)||i.key)}))})})]},n)}))})}function NI({attribute:e,binding:t,sources:n,blockName:o}){const{source:r,args:i}=t||{},s=n?.[r];let l,a=!0;if(void 0===t){const t=RI(o,e);l=Object.values(n).some((e=>e.data?.some((e=>e?.type===t))))?(0,T.__)("Not connected"):(0,T.__)("No sources available"),a=!0}else s?l=s.data?.find((e=>E()(e.args,i)))?.label||s.label||r:(a=!1,l=(0,T.__)("Source not registered"),0===Object.keys(n).length&&(l=(0,T.__)("No sources available")));return(0,d.jsxs)(ws.__experimentalVStack,{className:"block-editor-bindings__item",spacing:0,children:[(0,d.jsx)(ws.__experimentalText,{truncate:!0,children:e}),(0,d.jsx)(ws.__experimentalText,{truncate:!0,variant:a?"muted":void 0,isDestructive:!a,children:l})]})}function LI({attribute:e,binding:t,sources:n,blockName:o}){const r=(0,m.useViewportMatch)("medium","<");return(0,d.jsx)(ws.__experimentalToolsPanelItem,{hasValue:()=>!!t,label:e,children:(0,d.jsx)(MI,{placement:r?"bottom-start":"left-start",children:(0,d.jsx)(MI.TriggerButton,{render:(0,d.jsx)(ws.__experimentalItem,{}),disabled:!0,children:(0,d.jsx)(NI,{attribute:e,binding:t,sources:n,blockName:o})})})})}function DI({attribute:e,binding:t,sources:n,blockName:o}){const{updateBlockBindings:r}=dv(),i=(0,m.useViewportMatch)("medium","<");return(0,d.jsx)(ws.__experimentalToolsPanelItem,{hasValue:()=>!!t,label:e,onDeselect:()=>{r({[e]:void 0})},children:(0,d.jsxs)(MI,{placement:i?"bottom-start":"left-start",children:[(0,d.jsx)(MI.TriggerButton,{render:(0,d.jsx)(ws.__experimentalItem,{}),children:(0,d.jsx)(NI,{attribute:e,binding:t,sources:n,blockName:o})}),(0,d.jsx)(MI.Popover,{gutter:i?8:36,children:(0,d.jsx)(AI,{attribute:e,binding:t,sources:n})})]})})}var OI={edit:({name:e,metadata:t})=>{const n=(0,h.useContext)(sv),{removeAllBlockBindings:o}=dv(),r=(0,m.useViewportMatch)("medium","<")?{}:{popoverProps:{placement:"left-start",offset:259}},i={},{sources:s,canUpdateBlockBindings:l,bindableAttributes:a}=(0,g.useSelect)((t=>{const{__experimentalBlockBindingsSupportedAttributes:o}=t(ji).getSettings(),r=o?.[e];if(!r||0===r.length)return PI;const s=(0,p.getBlockBindingsSources)();return Object.entries(s).forEach((([e,{getFieldsList:o,usesContext:r,label:s,getValues:l}])=>{const a={};if(r?.length)for(const e of r)a[e]=n[e];if(o){const n=o({select:t,context:a});i[e]={data:n||[],label:s,getValues:l}}else i[e]={data:[],label:s,getValues:l}})),{sources:Object.values(i).length>0?i:PI,canUpdateBlockBindings:t(ji).getSettings().canUpdateBlockBindings,bindableAttributes:r}}),[n,e]);if(!a||0===a.length)return null;const{bindings:c}=t||{},u=Object.values(s).some((e=>e.data&&e.data.length>0)),f=!l||!u;return void 0!==c||u?(0,d.jsx)(Fa,{group:"bindings",children:(0,d.jsxs)(ws.__experimentalToolsPanel,{label:(0,T.__)("Attributes"),resetAll:()=>{o()},dropdownMenuProps:r,className:"block-editor-bindings__panel",children:[(0,d.jsx)(ws.__experimentalItemGroup,{isBordered:!0,isSeparated:!0,children:a.map((t=>{const n=c?.[t],o=RI(e,t),r=Object.values(s).some((e=>e.data?.some((e=>e?.type===o))));return f||!r?(0,d.jsx)(LI,{attribute:t,binding:n,sources:s,blockName:e},t):(0,d.jsx)(DI,{attribute:t,binding:n,sources:s,blockName:e},t)}))}),(0,d.jsx)(ws.__experimentalText,{as:"div",variant:"muted",children:(0,d.jsx)("p",{children:(0,T.__)("Attributes connected to custom fields or other dynamic data.")})})]})}):null},attributeKeys:["metadata"],hasSupport:e=>!["core/post-date","core/navigation-link","core/navigation-submenu"].includes(e)};function zI(e,t,n,o,r=1,i=1){for(let s=i;;s++)for(let l=s===i?r:1;l<=t;l++){const t=new Fb({columnStart:l,rowStart:s,columnSpan:n,rowSpan:o});if(!e.some((e=>e.intersectsRect(t))))return[l,s]}}function VI(e){!function({clientId:e}){const{gridLayout:t,blockOrder:n,selectedBlockLayout:o}=(0,g.useSelect)((t=>{const{getBlockAttributes:n,getBlockOrder:o}=t(ji),r=t(ji).getSelectedBlock();return{gridLayout:n(e).layout??{},blockOrder:o(e),selectedBlockLayout:r?.attributes.style?.layout}}),[e]),{getBlockAttributes:r,getBlockRootClientId:i}=(0,g.useSelect)(ji),{updateBlockAttributes:s,__unstableMarkNextChangeAsNotPersistent:l}=(0,g.useDispatch)(ji),a=(0,h.useMemo)((()=>o?new Fb(o):null),[o]),c=(0,m.usePrevious)(a),u=(0,m.usePrevious)(t.isManualPlacement),d=(0,m.usePrevious)(n);(0,h.useEffect)((()=>{const o={};if(t.isManualPlacement){const s=[];for(const e of n){const{columnStart:t,rowStart:n,columnSpan:o=1,rowSpan:i=1}=r(e).style?.layout??{};t&&n&&s.push(new Fb({columnStart:t,rowStart:n,columnSpan:o,rowSpan:i}))}for(const e of n){const n=r(e),{columnStart:i,rowStart:l,columnSpan:a=1,rowSpan:u=1}=n.style?.layout??{};if(i&&l)continue;const[d,p]=zI(s,t.columnCount,a,u,c?.columnEnd,c?.rowEnd);s.push(new Fb({columnStart:d,rowStart:p,columnSpan:a,rowSpan:u})),o[e]={style:{...n.style,layout:{...n.style?.layout,columnStart:d,rowStart:p}}}}const l=Math.max(...s.map((e=>e.rowEnd)));(!t.rowCount||t.rowCount<l)&&(o[e]={layout:{...t,rowCount:l}});for(const e of d??[])if(!n.includes(e)){const t=i(e);if(null===t)continue;const n=r(t);if("grid"===n?.layout?.type)continue;const s=r(e),{columnStart:l,rowStart:a,columnSpan:c,rowSpan:u,...d}=s.style?.layout??{};if(l||a||c||u){const t=0===Object.keys(d).length;o[e]=me(s,["style","layout"],t?void 0:d)}}}else{if(!0===u)for(const e of n){const t=r(e),{columnStart:n,rowStart:i,...s}=t.style?.layout??{};if(n||i){const n=0===Object.keys(s).length;o[e]=me(t,["style","layout"],n?void 0:s)}}t.rowCount&&(o[e]={layout:{...t,rowCount:void 0}})}Object.keys(o).length&&(l(),s(Object.keys(o),o,!0))}),[e,t,d,n,c,u,l,r,i,s])}(e)}function FI({clientId:e,layout:t}){const n=(0,g.useSelect)((t=>{const{isBlockSelected:n,isDraggingBlocks:o,getTemplateLock:r,getBlockEditingMode:i}=t(ji);return!(!o()&&!n(e)||r(e)||"default"!==i(e))}),[e]);return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(VI,{clientId:e}),n&&(0,d.jsx)(dI,{clientId:e,parentLayout:t})]})}(0,f.addFilter)("blocks.registerBlockType","core/metadata/addLabelCallback",(function(e){return e.__experimentalLabel||(0,p.hasBlockSupport)(e,"renaming",!0)&&(e.__experimentalLabel=(e,{context:t})=>{const{metadata:n}=e;if("list-view"===t&&n?.name)return n.name}),e}));const HI=(0,m.createHigherOrderComponent)((e=>t=>"grid"!==t.attributes.layout?.type?(0,d.jsx)(e,{...t},"edit"):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(FI,{clientId:t.clientId,layout:t.attributes.layout}),(0,d.jsx)(e,{...t},"edit")]})),"addGridVisualizerToBlockEdit");function UI(e){const t=e.style?.border||{};return{className:Lp(e)||void 0,style:kf({border:t})}}function GI(e){const{colors:t}=Nd(),n=UI(e),{borderColor:o}=e;if(o){const e=Ip({colors:t,namedColor:o});n.style.borderColor=e.color}return n}function $I(e){return{style:kf({shadow:e.style?.shadow||""})}}function WI(e){const{backgroundColor:t,textColor:n,gradient:o,style:r}=e,i=Ad("background-color",t),s=Ad("color",n),l=Op(o),a=l||r?.color?.gradient;return{className:ms(s,l,{[i]:!a&&!!i,"has-text-color":n||r?.color?.text,"has-background":t||r?.color?.background||o||r?.color?.gradient,"has-link-color":r?.elements?.link?.color})||void 0,style:kf({color:r?.color||{}})}}function KI(e){const{backgroundColor:t,textColor:n,gradient:o}=e,[r,i,s,l,a,c]=Ti("color.palette.custom","color.palette.theme","color.palette.default","color.gradients.custom","color.gradients.theme","color.gradients.default"),u=(0,h.useMemo)((()=>[...r||[],...i||[],...s||[]]),[r,i,s]),d=(0,h.useMemo)((()=>[...l||[],...a||[],...c||[]]),[l,a,c]),p=WI(e);if(t){const e=Pd(u,t);p.style.backgroundColor=e.color}if(o&&(p.style.background=zp(d,o)),n){const e=Pd(u,n);p.style.color=e.color}return p}function ZI(e){const{style:t}=e;return{style:kf({spacing:t?.spacing||{}})}}(0,f.addFilter)("editor.BlockEdit","core/editor/grid-visualizer",HI);const{kebabCase:qI}=G(ws.privateApis);function YI(e,t){let n=e?.style?.typography||{};n={...n,fontSize:Wi({size:e?.style?.typography?.fontSize},t)};const o=kf({typography:n}),r=e?.fontFamily?`has-${qI(e.fontFamily)}-font-family`:"";return{className:ms(r,e?.style?.typography?.textAlign?`has-text-align-${e?.style?.typography?.textAlign}`:"",Pg(e?.fontSize)),style:o}}function XI(e){const[t,n]=(0,h.useState)(e);return(0,h.useEffect)((()=>{e&&n(e)}),[e]),t}var QI;!function(e){e=e.map((e=>({...e,Edit:(0,h.memo)(e.edit)})));const t=(0,m.createHigherOrderComponent)((t=>n=>{const o=C();return[...e.map(((e,t)=>{const{Edit:r,hasSupport:i,attributeKeys:s=[],shareWithChildBlocks:l}=e;if(!(o[b]||o[k]&&l)||!i(n.name))return null;const a={};for(const e of s)n.attributes[e]&&(a[e]=n.attributes[e]);return(0,d.jsx)(r,{name:n.name,isSelected:n.isSelected,clientId:n.clientId,setAttributes:n.setAttributes,__unstableParentLayout:n.__unstableParentLayout,...a},t)})),(0,d.jsx)(t,{...n},"edit")]}),"withBlockEditHooks");(0,f.addFilter)("editor.BlockEdit","core/editor/hooks",t)}([ka,Kg,qu,Xu,Cf,Zf,Xg,lb,Lb,II,TI,OI,BI,Wu].filter(Boolean)),function(e){const t=(0,m.createHigherOrderComponent)((t=>n=>{const[o,r]=(0,h.useState)(Array(e.length).fill(void 0));return[...e.map(((e,t)=>{const{hasSupport:o,attributeKeys:i=[],useBlockProps:s,isMatch:l}=e,a={};for(const e of i)n.attributes[e]&&(a[e]=n.attributes[e]);return!Object.keys(a).length||!o(n.name)||l&&!l(a)?null:(0,d.jsx)(Ss,{index:t,useBlockProps:s,setAllWrapperProps:r,name:n.name,clientId:n.clientId,...a},t)})),(0,d.jsx)(t,{...n,wrapperProps:o.filter(Boolean).reduce(((e,t)=>({...e,...t,className:ms(e.className,t.className),style:{...e.style,...t.style}})),n.wrapperProps||{})},"edit")]}),"withBlockListBlockHooks");(0,f.addFilter)("editor.BlockListBlock","core/editor/hooks",t)}([ka,Kg,Ou,Cf,Ph,gf,Zf,jg,Ng,Xg,Dp,lb,Mb,BI]),QI=[ka,Kg,qu,Yu,Xu,Dp,Xg,Ph,Cf,jg,Ng],(0,f.addFilter)("blocks.getSaveContent.extraProps","core/editor/hooks",(function(e,t,n){return QI.reduce(((e,o)=>{const{hasSupport:r,attributeKeys:i=[],addSaveProps:s}=o,l={};for(const e of i)n[e]&&(l[e]=n[e]);return Object.keys(l).length&&r(t)?s(e,t,l):e}),e)}),0),(0,f.addFilter)("blocks.getSaveContent.extraProps","core/editor/hooks",(e=>(e.hasOwnProperty("className")&&!e.className&&delete e.className,e)));const{kebabCase:JI}=G(ws.privateApis),ej=([e,...t])=>e.toUpperCase()+t.join(""),tj=e=>(0,m.createHigherOrderComponent)((t=>n=>(0,d.jsx)(t,{...n,colors:e})),"withCustomColorPalette"),nj=()=>(0,m.createHigherOrderComponent)((e=>t=>{const[n,o,r]=Ti("color.palette.custom","color.palette.theme","color.palette.default"),i=(0,h.useMemo)((()=>[...n||[],...o||[],...r||[]]),[n,o,r]);return(0,d.jsx)(e,{...t,colors:i})}),"withEditorColorPalette");function oj(e,t){const n=e.reduce(((e,t)=>({...e,..."string"==typeof t?{[t]:JI(t)}:t})),{});return(0,m.compose)([t,e=>class extends h.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 function(e,t){const n=wd(t),o=({color:e})=>n.contrast(e),r=Math.max(...e.map(o));return e.find((e=>o(e)===r)).color}(t,e)}createSetters(){return Object.keys(n).reduce(((e,t)=>{const n=ej(t),o=`custom${n}`;return e[`set${n}`]=this.createSetColor(t,o),e}),{})}createSetColor(e,t){return n=>{const o=Rd(this.props.colors,n);this.props.setAttributes({[e]:o&&o.slug?o.slug:void 0,[t]:o&&o.slug?void 0:n})}}static getDerivedStateFromProps({attributes:e,colors:t},o){return Object.entries(n).reduce(((n,[r,i])=>{const s=Pd(t,e[r],e[`custom${ej(r)}`]),l=o[r],a=l?.color;return a===s.color&&l?n[r]=l:n[r]={...s,class:Ad(i,s.slug)},n}),{})}render(){return(0,d.jsx)(e,{...{...this.props,colors:void 0,...this.state,...this.setters,colorUtils:this.colorUtils}})}}])}function rj(e){return(...t)=>{const n=tj(e);return(0,m.createHigherOrderComponent)(oj(t,n),"withCustomColors")}}function ij(...e){const t=nj();return(0,m.createHigherOrderComponent)(oj(e,t),"withColors")}var sj=function(e){const[t,n]=Ti("typography.fontSizes","typography.customFontSize");return(0,d.jsx)(ws.FontSizePicker,{...e,fontSizes:t,disableCustomFontSizes:!n})};const lj=[],aj=([e,...t])=>e.toUpperCase()+t.join("");var cj=(...e)=>{const t=e.reduce(((e,t)=>(e[t]=`custom${aj(t)}`,e)),{});return(0,m.createHigherOrderComponent)((0,m.compose)([(0,m.createHigherOrderComponent)((e=>t=>{const[n]=Ti("typography.fontSizes");return(0,d.jsx)(e,{...t,fontSizes:n||lj})}),"withFontSizes"),e=>class extends h.Component{constructor(e){super(e),this.setters=this.createSetters(),this.state={}}createSetters(){return Object.entries(t).reduce(((e,[t,n])=>(e[`set${aj(t)}`]=this.createSetFontSize(t,n),e)),{})}createSetFontSize(e,t){return n=>{const o=this.props.fontSizes?.find((({size:e})=>e===Number(n)));this.props.setAttributes({[e]:o&&o.slug?o.slug:void 0,[t]:o&&o.slug?void 0:n})}}static getDerivedStateFromProps({attributes:e,fontSizes:n},o){const r=(t,n)=>!o[n]||(e[n]?e[n]!==o[n].slug:o[n].size!==e[t]);if(!Object.values(t).some(r))return null;const i=Object.entries(t).filter((([e,t])=>r(t,e))).reduce(((t,[o,r])=>{const i=e[o],s=Tg(n,i,e[r]);return t[o]={...s,class:Pg(i)},t}),{});return{...o,...i}}render(){return(0,d.jsx)(e,{...{...this.props,fontSizes:void 0,...this.state,...this.setters}})}}]),"withFontSizes")};const uj=()=>{};var dj={name:"blocks",className:"block-editor-autocompleters__block",triggerPrefix:"/",useItems(e){const{rootClientId:t,selectedBlockId:n,prioritizedBlocks:o}=(0,g.useSelect)((e=>{const{getSelectedBlockClientId:t,getBlock:n,getBlockListSettings:o,getBlockRootClientId:r}=e(ji),{getActiveBlockVariation:i}=e(p.store),s=t(),{name:l,attributes:a}=n(s),c=i(l,a),u=r(s);return{selectedBlockId:c?`${l}/${c.name}`:l,rootClientId:u,prioritizedBlocks:o(u)?.prioritizedInserterBlocks}}),[]),[r,i,s]=MC(t,uj,!0),l=(0,h.useMemo)((()=>(e.trim()?gB(r,i,s,e):ZB(xt(r,"frecency","desc"),o)).filter((e=>e.id!==n)).slice(0,9)),[e,n,r,i,s,o]);return[(0,h.useMemo)((()=>l.map((e=>{const{title:t,icon:n,isDisabled:o}=e;return{key:`block-${e.id}`,value:e,label:(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(Vu,{icon:n,showColors:!0},"icon"),t]}),isDisabled:o}}))),[l])]},allowContext:(e,t)=>!(/\S/.test(e)||/\S/.test(t)),getOptionCompletion(e){const{name:t,initialAttributes:n,innerBlocks:o,syncStatus:r,blocks:i}=e;return{action:"replace",value:"unsynced"===r?(i??[]).map((e=>(0,p.cloneBlock)(e))):(0,p.createBlock)(t,n,(0,p.createBlocksFromInnerBlocksTemplate)(o))}}};const pj=window.wp.apiFetch;var hj=n.n(pj),gj=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"m7.3 9.7 1.4 1.4c.2-.2.3-.3.4-.5 0 0 0-.1.1-.1.3-.5.4-1.1.3-1.6L12 7 9 4 7.2 6.5c-.6-.1-1.1 0-1.6.3 0 0-.1 0-.1.1-.3.1-.4.2-.6.4l1.4 1.4L4 11v1h1l2.3-2.3zM4 20h9v-1.5H4V20zm0-5.5V16h16v-1.5H4z"})});var mj={name:"links",className:"block-editor-autocompleters__link",triggerPrefix:"[[",options:async e=>{let t=await hj()({path:(0,Ua.addQueryArgs)("/wp/v2/search",{per_page:10,search:e,type:"post",order_by:"menu_order"})});return t=t.filter((e=>""!==e.title)),t},getOptionKeywords:e=>[...e.title.split(/\s+/)],getOptionLabel:e=>(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(Ol,{icon:"page"===e.subtype?pc:gj},"icon"),(0,vS.decodeEntities)(e.title)]}),getOptionCompletion:e=>(0,d.jsx)("a",{href:e.url,children:e.title})};const fj=[];function bj({completers:e=fj}){const{name:t}=C();return(0,h.useMemo)((()=>{let n=[...e,mj];return(t===(0,p.getDefaultBlockName)()||(0,p.getBlockSupport)(t,"__experimentalSlashInserter",!1))&&(n=[...n,dj]),(0,f.hasFilter)("editor.Autocomplete.completers")&&(n===e&&(n=n.map((e=>({...e})))),n=(0,f.applyFilters)("editor.Autocomplete.completers",n,t)),n}),[e,t])}var kj=function(e){return(0,d.jsx)(ws.Autocomplete,{...e,completers:bj(e)})},vj=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"M6 4a2 2 0 0 0-2 2v3h1.5V6a.5.5 0 0 1 .5-.5h3V4H6Zm3 14.5H6a.5.5 0 0 1-.5-.5v-3H4v3a2 2 0 0 0 2 2h3v-1.5Zm6 1.5v-1.5h3a.5.5 0 0 0 .5-.5v-3H20v3a2 2 0 0 1-2 2h-3Zm3-16a2 2 0 0 1 2 2v3h-1.5V6a.5.5 0 0 0-.5-.5h-3V4h3Z"})});var _j=function({isActive:e,label:t=(0,T.__)("Full height"),onToggle:n,isDisabled:o}){return(0,d.jsx)(ws.ToolbarButton,{isActive:e,icon:vj,label:t,onClick:()=>n(!e),disabled:o})};const yj=()=>{};var xj=function(e){const{label:t=(0,T.__)("Change matrix alignment"),onChange:n=yj,value:o="center",isDisabled:r}=e,i=(0,d.jsx)(ws.AlignmentMatrixControl.Icon,{value:o});return(0,d.jsx)(ws.Dropdown,{popoverProps:{placement:"bottom-start"},renderToggle:({onToggle:e,isOpen:n})=>(0,d.jsx)(ws.ToolbarButton,{onClick:e,"aria-haspopup":"true","aria-expanded":n,onKeyDown:t=>{n||t.keyCode!==Wa.DOWN||(t.preventDefault(),e())},label:t,icon:i,showTooltip:!0,disabled:r}),renderContent:()=>(0,d.jsx)(ws.AlignmentMatrixControl,{hasFocusBorder:!1,onChange:n,value:o})})};function Sj({clientId:e,maximumLength:t,context:n}){const o=(0,g.useSelect)((t=>{if(!e)return null;const{getBlockName:o,getBlockAttributes:r}=t(ji),{getBlockType:i,getActiveBlockVariation:s}=t(p.store),l=o(e),a=i(l);if(!a)return null;const c=r(e),u=(0,p.__experimentalGetBlockLabel)(a,c,n);if(u!==a.title)return u;const d=s(l,c);return d?.title||a.title}),[e,n]);if(!o)return null;if(t&&t>0&&o.length>t){const e="...";return o.slice(0,t-e.length)+e}return o}function wj({clientId:e,maximumLength:t,context:n}){return Sj({clientId:e,maximumLength:t,context:n})}var Cj=function({rootLabelText:e}){const{selectBlock:t,clearSelectedBlock:n}=(0,g.useDispatch)(ji),{clientId:o,parents:r,hasSelection:i}=(0,g.useSelect)((e=>{const{getSelectionStart:t,getSelectedBlockClientId:n,getEnabledBlockParents:o}=G(e(ji)),r=n();return{parents:o(r),clientId:r,hasSelection:!!t().clientId}}),[]),s=e||(0,T.__)("Document"),l=(0,h.useRef)();return fh(o,l),(0,d.jsxs)("ul",{className:"block-editor-block-breadcrumb",role:"list","aria-label":(0,T.__)("Block breadcrumb"),children:[(0,d.jsxs)("li",{className:i?void 0:"block-editor-block-breadcrumb__current","aria-current":i?void 0:"true",children:[i&&(0,d.jsx)(ws.Button,{size:"small",className:"block-editor-block-breadcrumb__button",onClick:()=>{const e=l.current?.closest(".editor-styles-wrapper");n(),function(e){if(!e)return null;const t=Array.from(document.querySelectorAll('iframe[name="editor-canvas"]').values()).find((t=>(t.contentDocument||t.contentWindow.document)===e.ownerDocument))??e;return t?.closest('[role="region"]')??t}(e)?.focus()},children:s}),!i&&(0,d.jsx)("span",{children:s}),!!o&&(0,d.jsx)(Ol,{icon:oc,className:"block-editor-block-breadcrumb__separator"})]}),r.map((e=>(0,d.jsxs)("li",{children:[(0,d.jsx)(ws.Button,{size:"small",className:"block-editor-block-breadcrumb__button",onClick:()=>t(e),children:(0,d.jsx)(wj,{clientId:e,maximumLength:35})}),(0,d.jsx)(Ol,{icon:oc,className:"block-editor-block-breadcrumb__separator"})]},e))),!!o&&(0,d.jsx)("li",{className:"block-editor-block-breadcrumb__current","aria-current":"true",children:(0,d.jsx)(wj,{clientId:o,maximumLength:35})})]})};function Bj(e){return(0,g.useSelect)((t=>{const{__unstableHasActiveBlockOverlayActive:n}=t(ji);return n(e)}),[e])}const Ij={placement:"top-start"},jj={...Ij,flip:!1,shift:!0},Ej={...Ij,flip:!0,shift:!1};function Tj(e,t,n,o,r){if(!e||!t)return jj;const i=n?.scrollTop||0,s=Qm(t),l=i+e.getBoundingClientRect().top,a=e.ownerDocument.documentElement.clientHeight,c=l+o,u=s.top>c,d=s.height>a-o;return r||!u&&!d?Ej:jj}function Mj({contentElement:e,clientId:t}){const n=bh(t),[o,r]=(0,h.useState)(0),{blockIndex:i,isSticky:s}=(0,g.useSelect)((e=>{const{getBlockIndex:n,getBlockAttributes:o}=e(ji);return{blockIndex:n(t),isSticky:rb(o(t))}}),[t]),l=(0,h.useMemo)((()=>{if(e)return(0,Ga.getScrollContainer)(e)}),[e]),[a,c]=(0,h.useState)((()=>Tj(e,n,l,o,s))),u=(0,m.useRefEffect)((e=>{r(e.offsetHeight)}),[]),d=(0,h.useCallback)((()=>c(Tj(e,n,l,o,s))),[e,n,l,o]);return(0,h.useLayoutEffect)(d,[i,d]),(0,h.useLayoutEffect)((()=>{if(!e||!n)return;const t=e?.ownerDocument?.defaultView;let o;t?.addEventHandler?.("resize",d);const r=n?.ownerDocument?.defaultView;return r.ResizeObserver&&(o=new r.ResizeObserver(d),o.observe(n)),()=>{t?.removeEventHandler?.("resize",d),o&&o.disconnect()}}),[d,e,n]),{...a,ref:u}}function Pj(e){const t=(0,g.useSelect)((t=>{const{getBlockRootClientId:n,getBlockParents:o,__experimentalGetBlockListSettingsForBlocks:r,isBlockInsertionPointVisible:i,getBlockInsertionPoint:s,getBlockOrder:l,hasMultiSelection:a,getLastMultiSelectedBlockClientId:c}=t(ji),u=o(e),d=r(u),p=u.find((e=>d[e]?.__experimentalCaptureToolbars));let h=!1;if(i()){const t=s();h=l(t.rootClientId)[t.index]===e}return{capturingClientId:p,isInsertionPointVisible:h,lastClientId:a()?c():null,rootClientId:n(e)}}),[e]);return t}function Rj({clientId:e,__unstableContentRef:t}){const{capturingClientId:n,isInsertionPointVisible:o,lastClientId:r,rootClientId:i}=Pj(e),s=Mj({contentElement:t?.current,clientId:e});return(0,d.jsx)(of,{clientId:n||e,bottomClientId:r,className:ms("block-editor-block-list__block-side-inserter-popover",{"is-insertion-point-visible":o}),__unstableContentRef:t,...s,children:(0,d.jsx)("div",{className:"block-editor-block-list__empty-block-inserter",children:(0,d.jsx)(lI,{position:"bottom right",rootClientId:i,clientId:e,__experimentalIsQuick:!0})})})}var Aj=({appendToOwnerDocument:e,children:t,clientIds:n,cloneClassname:o,elementId:r,onDragStart:i,onDragEnd:s,fadeWhenDisabled:l=!1,dragComponent:a})=>{const{srcRootClientId:c,isDraggable:u,icon:f,visibleInserter:b,getBlockType:k}=(0,g.useSelect)((e=>{const{canMoveBlocks:t,getBlockRootClientId:o,getBlockName:r,getBlockAttributes:i,isBlockInsertionPointVisible:s}=e(ji),{getBlockType:l,getActiveBlockVariation:a}=e(p.store),c=o(n[0]),u=r(n[0]),d=a(u,i(n[0]));return{srcRootClientId:c,isDraggable:t(n),icon:d?.icon||l(u)?.icon,visibleInserter:s(),getBlockType:l}}),[n]),v=(0,h.useRef)(!1),[_,y,x]=function(){const e=(0,h.useRef)(null),t=(0,h.useRef)(null),n=(0,h.useRef)(null),o=(0,h.useRef)(null);return(0,h.useEffect)((()=>()=>{o.current&&(clearInterval(o.current),o.current=null)}),[]),[(0,h.useCallback)((r=>{e.current=r.clientY,n.current=(0,Ga.getScrollContainer)(r.target),o.current=setInterval((()=>{if(n.current&&t.current){const e=n.current.scrollTop+t.current;n.current.scroll({top:e})}}),25)}),[]),(0,h.useCallback)((o=>{if(!n.current)return;const r=n.current.offsetHeight,i=e.current-n.current.offsetTop,s=o.clientY-n.current.offsetTop;if(o.clientY>i){const e=Math.max(r-i-50,0),n=Math.max(s-i-50,0),o=0===e||0===n?0:n/e;t.current=25*o}else if(o.clientY<i){const e=Math.max(i-50,0),n=Math.max(i-s-50,0),o=0===e||0===n?0:n/e;t.current=-25*o}else t.current=0}),[]),()=>{e.current=null,n.current=null,o.current&&(clearInterval(o.current),o.current=null)}]}(),{getAllowedBlocks:S,getBlockNamesByClientId:w,getBlockRootClientId:C}=(0,g.useSelect)(ji),{startDraggingBlocks:B,stopDraggingBlocks:I}=(0,g.useDispatch)(ji);(0,h.useEffect)((()=>()=>{v.current&&I()}),[]);const j=bh(n[0]),E=j?.closest("body");if((0,h.useEffect)((()=>{if(!E||!l)return;const e=(0,m.throttle)((e=>{if(!e.target.closest("[data-block]"))return;const t=w(n),o=e.target.closest("[data-block]").getAttribute("data-block"),r=S(o),i=w([o])[0];let s;if(0===r?.length){const e=C(o),n=w([e])[0],r=S(e);s=GS(k,r,t,n)}else s=GS(k,r,t,i);s||b?window?.document?.body?.classList?.remove("block-draggable-invalid-drag-token"):window?.document?.body?.classList?.add("block-draggable-invalid-drag-token")}),200);return E.addEventListener("dragover",e),()=>{E.removeEventListener("dragover",e)}}),[n,E,l,S,w,C,k,b]),!u)return t({draggable:!1});const T={type:"block",srcClientIds:n,srcRootClientId:c};return(0,d.jsx)(ws.Draggable,{appendToOwnerDocument:e,cloneClassname:o,__experimentalTransferDataType:"wp-blocks",transferData:T,onDragStart:e=>{window.requestAnimationFrame((()=>{B(n),v.current=!0,_(e),i&&i()}))},onDragOver:y,onDragEnd:()=>{I(),v.current=!1,x(),s&&s()},__experimentalDragComponent:void 0!==a?a:(0,d.jsx)(SC,{count:n.length,icon:f,fadeWhenDisabled:!0}),elementId:r,children:({onDraggableStart:e,onDraggableEnd:n})=>t({draggable:!0,onDragStart:e,onDragEnd:n})})};const Nj=(e,t)=>"up"===e?"horizontal"===t?(0,T.isRTL)()?"right":"left":"up":"down"===e?"horizontal"===t?(0,T.isRTL)()?"left":"right":"down":null;function Lj(e,t,n,o,r,i,s){const l=n+1;if(e>1)return function(e,t,n,o,r,i){const s=t+1;if(n&&o)return(0,T.__)("All blocks are selected, and cannot be moved");if(r>0&&!o){const t=Nj("down",i);if("down"===t)return(0,T.sprintf)((0,T.__)("Move %1$d blocks from position %2$d down by one place"),e,s);if("left"===t)return(0,T.sprintf)((0,T.__)("Move %1$d blocks from position %2$d left by one place"),e,s);if("right"===t)return(0,T.sprintf)((0,T.__)("Move %1$d blocks from position %2$d right by one place"),e,s)}if(r>0&&o){const e=Nj("down",i);if("down"===e)return(0,T.__)("Blocks cannot be moved down as they are already at the bottom");if("left"===e)return(0,T.__)("Blocks cannot be moved left as they are already are at the leftmost position");if("right"===e)return(0,T.__)("Blocks cannot be moved right as they are already are at the rightmost position")}if(r<0&&!n){const t=Nj("up",i);if("up"===t)return(0,T.sprintf)((0,T.__)("Move %1$d blocks from position %2$d up by one place"),e,s);if("left"===t)return(0,T.sprintf)((0,T.__)("Move %1$d blocks from position %2$d left by one place"),e,s);if("right"===t)return(0,T.sprintf)((0,T.__)("Move %1$d blocks from position %2$d right by one place"),e,s)}if(r<0&&n){const e=Nj("up",i);if("up"===e)return(0,T.__)("Blocks cannot be moved up as they are already at the top");if("left"===e)return(0,T.__)("Blocks cannot be moved left as they are already are at the leftmost position");if("right"===e)return(0,T.__)("Blocks cannot be moved right as they are already are at the rightmost position")}}(e,n,o,r,i,s);if(o&&r)return(0,T.sprintf)((0,T.__)("Block %s is the only block, and cannot be moved"),t);if(i>0&&!r){const e=Nj("down",s);if("down"===e)return(0,T.sprintf)((0,T.__)("Move %1$s block from position %2$d down to position %3$d"),t,l,l+1);if("left"===e)return(0,T.sprintf)((0,T.__)("Move %1$s block from position %2$d left to position %3$d"),t,l,l+1);if("right"===e)return(0,T.sprintf)((0,T.__)("Move %1$s block from position %2$d right to position %3$d"),t,l,l+1)}if(i>0&&r){const e=Nj("down",s);if("down"===e)return(0,T.sprintf)((0,T.__)("Block %1$s is at the end of the content and can’t be moved down"),t);if("left"===e)return(0,T.sprintf)((0,T.__)("Block %1$s is at the end of the content and can’t be moved left"),t);if("right"===e)return(0,T.sprintf)((0,T.__)("Block %1$s is at the end of the content and can’t be moved right"),t)}if(i<0&&!o){const e=Nj("up",s);if("up"===e)return(0,T.sprintf)((0,T.__)("Move %1$s block from position %2$d up to position %3$d"),t,l,l-1);if("left"===e)return(0,T.sprintf)((0,T.__)("Move %1$s block from position %2$d left to position %3$d"),t,l,l-1);if("right"===e)return(0,T.sprintf)((0,T.__)("Move %1$s block from position %2$d right to position %3$d"),t,l,l-1)}if(i<0&&o){const e=Nj("up",s);if("up"===e)return(0,T.sprintf)((0,T.__)("Block %1$s is at the beginning of the content and can’t be moved up"),t);if("left"===e)return(0,T.sprintf)((0,T.__)("Block %1$s is at the beginning of the content and can’t be moved left"),t);if("right"===e)return(0,T.sprintf)((0,T.__)("Block %1$s is at the beginning of the content and can’t be moved right"),t)}}const Dj=(e,t)=>"up"===e?"horizontal"===t?(0,T.isRTL)()?Zb:qb:_I:"down"===e?"horizontal"===t?(0,T.isRTL)()?qb:Zb:yI:null,Oj=(e,t)=>"up"===e?"horizontal"===t?(0,T.isRTL)()?(0,T.__)("Move right"):(0,T.__)("Move left"):(0,T.__)("Move up"):"down"===e?"horizontal"===t?(0,T.isRTL)()?(0,T.__)("Move left"):(0,T.__)("Move right"):(0,T.__)("Move down"):null,zj=(0,h.forwardRef)((({clientIds:e,direction:t,orientation:n,...o},r)=>{const i=(0,m.useInstanceId)(zj),s=Array.isArray(e)?e:[e],l=s.length,{disabled:a}=o,{blockType:c,isDisabled:u,rootClientId:h,isFirst:f,isLast:b,firstIndex:k,orientation:v="vertical"}=(0,g.useSelect)((e=>{const{getBlockIndex:o,getBlockRootClientId:r,getBlockOrder:i,getBlock:l,getBlockListSettings:c}=e(ji),u=s[0],d=r(u),h=o(u),g=o(s[s.length-1]),m=i(d),f=l(u),b=0===h,k=g===m.length-1,{orientation:v}=c(d)||{};return{blockType:f?(0,p.getBlockType)(f.name):null,isDisabled:a||("up"===t?b:k),rootClientId:d,firstIndex:h,isFirst:b,isLast:k,orientation:n||v}}),[e,t]),{moveBlocksDown:_,moveBlocksUp:y}=(0,g.useDispatch)(ji),x="up"===t?y:_,S=`block-editor-block-mover-button__description-${i}`;return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(ws.Button,{__next40pxDefaultSize:!0,ref:r,className:ms("block-editor-block-mover-button",`is-${t}-button`),icon:Dj(t,v),label:Oj(t,v),"aria-describedby":S,...o,onClick:u?null:t=>{x(e,h),o.onClick&&o.onClick(t)},disabled:u,accessibleWhenDisabled:!0}),(0,d.jsx)(ws.VisuallyHidden,{id:S,children:Lj(l,c&&c.title,k,f,b,"up"===t?-1:1,v)})]})})),Vj=(0,h.forwardRef)(((e,t)=>(0,d.jsx)(zj,{direction:"up",ref:t,...e}))),Fj=(0,h.forwardRef)(((e,t)=>(0,d.jsx)(zj,{direction:"down",ref:t,...e})));var Hj=function({clientIds:e,hideDragHandle:t,isBlockMoverUpButtonDisabled:n,isBlockMoverDownButtonDisabled:o}){const{canMove:r,rootClientId:i,isFirst:s,isLast:l,orientation:a,isManualGrid:c}=(0,g.useSelect)((t=>{const{getBlockIndex:n,getBlockListSettings:o,canMoveBlocks:r,getBlockOrder:i,getBlockRootClientId:s,getBlockAttributes:l}=t(ji),a=Array.isArray(e)?e:[e],c=a[0],u=s(c),d=n(c),p=n(a[a.length-1]),h=i(u),{layout:g={}}=l(u)??{};return{canMove:r(e),rootClientId:u,isFirst:0===d,isLast:p===h.length-1,orientation:o(u)?.orientation,isManualGrid:"grid"===g.type&&g.isManualPlacement&&window.__experimentalEnableGridInteractivity}}),[e]);return!r||s&&l&&!i||t&&c?null:(0,d.jsxs)(ws.ToolbarGroup,{className:ms("block-editor-block-mover",{"is-horizontal":"horizontal"===a}),children:[!t&&(0,d.jsx)(Aj,{clientIds:e,fadeWhenDisabled:!0,children:e=>(0,d.jsx)(ws.Button,{__next40pxDefaultSize:!0,icon:xC,className:"block-editor-block-mover__drag-handle",label:(0,T.__)("Drag"),tabIndex:"-1",...e})}),!c&&(0,d.jsxs)("div",{className:"block-editor-block-mover__move-button-container",children:[(0,d.jsx)(ws.ToolbarItem,{children:t=>(0,d.jsx)(Vj,{disabled:n,clientIds:e,...t})}),(0,d.jsx)(ws.ToolbarItem,{children:t=>(0,d.jsx)(Fj,{disabled:o,clientIds:e,...t})})]})]})};const{clearTimeout:Uj,setTimeout:Gj}=window,$j=200;function Wj({ref:e,isFocused:t,highlightParent:n,debounceTimeout:o=$j}){const{getSelectedBlockClientId:r,getBlockRootClientId:i}=(0,g.useSelect)(ji),{toggleBlockHighlight:s}=(0,g.useDispatch)(ji),l=(0,h.useRef)(),a=(0,g.useSelect)((e=>e(ji).getSettings().isDistractionFree),[]),c=e=>{if(e&&a)return;const t=r(),o=n?i(t):t;s(o,e)},u=()=>{const n=e?.current&&e.current.matches(":hover");return!t&&!n},d=()=>{const e=l.current;e&&Uj&&Uj(e)};return(0,h.useEffect)((()=>()=>{c(!1),d()}),[]),{debouncedShowGestures:e=>{e&&e.stopPropagation(),d(),c(!0)},debouncedHideGestures:e=>{e&&e.stopPropagation(),d(),l.current=Gj((()=>{u()&&c(!1)}),o)}}}function Kj({ref:e,highlightParent:t=!1,debounceTimeout:n=$j}){const[o,r]=(0,h.useState)(!1),{debouncedShowGestures:i,debouncedHideGestures:s}=Wj({ref:e,debounceTimeout:n,isFocused:o,highlightParent:t}),l=(0,h.useRef)(!1),a=()=>e?.current&&e.current.contains(e.current.ownerDocument.activeElement);return(0,h.useEffect)((()=>{const t=e.current,n=()=>{a()&&(r(!0),i())},o=()=>{a()||(r(!1),s())};return t&&!l.current&&(t.addEventListener("focus",n,!0),t.addEventListener("blur",o,!0),l.current=!0),()=>{t&&(t.removeEventListener("focus",n),t.removeEventListener("blur",o))}}),[e,l,r,i,s]),{onMouseMove:i,onMouseLeave:s}}function Zj(){const{selectBlock:e}=(0,g.useDispatch)(ji),{parentClientId:t}=(0,g.useSelect)((e=>{const{getBlockParents:t,getSelectedBlockClientId:n,getParentSectionBlock:o}=G(e(ji)),r=n(),i=o(r),s=t(r);return{parentClientId:i??s[s.length-1]}}),[]),n=Xf(t),o=(0,h.useRef)(),r=Kj({ref:o,highlightParent:!0});return(0,d.jsx)("div",{className:"block-editor-block-parent-selector",ref:o,...r,children:(0,d.jsx)(ws.ToolbarButton,{className:"block-editor-block-parent-selector__button",onClick:()=>e(t),label:(0,T.sprintf)((0,T.__)("Select parent block: %s"),n?.title),showTooltip:!0,icon:(0,d.jsx)(Vu,{icon:n?.icon})})},t)}var qj=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M5 4.5h11a.5.5 0 0 1 .5.5v11a.5.5 0 0 1-.5.5H5a.5.5 0 0 1-.5-.5V5a.5.5 0 0 1 .5-.5ZM3 5a2 2 0 0 1 2-2h11a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5Zm17 3v10.75c0 .69-.56 1.25-1.25 1.25H6v1.5h12.75a2.75 2.75 0 0 0 2.75-2.75V8H20Z"})});function Yj({blocks:e}){return(0,m.useViewportMatch)("medium","<")?null:(0,d.jsx)("div",{className:"block-editor-block-switcher__popover-preview-container",children:(0,d.jsx)(ws.Popover,{className:"block-editor-block-switcher__popover-preview",placement:"right-start",focusOnMount:!1,offset:16,children:(0,d.jsxs)("div",{className:"block-editor-block-switcher__preview",children:[(0,d.jsx)("div",{className:"block-editor-block-switcher__preview-title",children:(0,T.__)("Preview")}),(0,d.jsx)(kC,{viewportWidth:601,blocks:e})]})})})}const Xj={};function Qj({item:e,onSelect:t,setHoveredTransformItemName:n}){const{name:o,icon:r,title:i}=e;return(0,d.jsxs)(ws.MenuItem,{className:(0,p.getBlockMenuDefaultClassName)(o),onClick:e=>{e.preventDefault(),t(o)},onMouseLeave:()=>n(null),onMouseEnter:()=>n(o),children:[(0,d.jsx)(Vu,{icon:r,showColors:!0}),i]})}var Jj=({transformations:e,onSelect:t,blocks:n})=>{const[o,r]=(0,h.useState)();return(0,d.jsxs)(d.Fragment,{children:[o&&(0,d.jsx)(Yj,{blocks:(0,p.cloneBlock)(n[0],e.find((({name:e})=>e===o)).attributes)}),e?.map((e=>(0,d.jsx)(Qj,{item:e,onSelect:t,setHoveredTransformItemName:r},e.name)))]})};function eE({restTransformations:e,onSelect:t,setHoveredTransformItemName:n}){return e.map((e=>(0,d.jsx)(tE,{item:e,onSelect:t,setHoveredTransformItemName:n},e.name)))}function tE({item:e,onSelect:t,setHoveredTransformItemName:n}){const{name:o,icon:r,title:i,isDisabled:s}=e;return(0,d.jsxs)(ws.MenuItem,{className:(0,p.getBlockMenuDefaultClassName)(o),onClick:e=>{e.preventDefault(),t(o)},disabled:s,onMouseLeave:()=>n(null),onMouseEnter:()=>n(o),children:[(0,d.jsx)(Vu,{icon:r,showColors:!0}),i]})}var nE=({className:e,possibleBlockTransformations:t,possibleBlockVariationTransformations:n,onSelect:o,onSelectVariation:r,blocks:i})=>{const[s,l]=(0,h.useState)(),{priorityTextTransformations:a,restTransformations:c}=function(e){const t={"core/paragraph":1,"core/heading":2,"core/list":3,"core/quote":4},n=(0,h.useMemo)((()=>{const n=Object.keys(t),o=e.reduce(((e,t)=>{const{name:o}=t;return n.includes(o)?e.priorityTextTransformations.push(t):e.restTransformations.push(t),e}),{priorityTextTransformations:[],restTransformations:[]});if(1===o.priorityTextTransformations.length&&"core/quote"===o.priorityTextTransformations[0].name){const e=o.priorityTextTransformations.pop();o.restTransformations.push(e)}return o}),[e]);return n.priorityTextTransformations.sort((({name:e},{name:n})=>t[e]<t[n]?-1:1)),n}(t),u=a.length&&c.length,g=!!c.length&&(0,d.jsx)(eE,{restTransformations:c,onSelect:o,setHoveredTransformItemName:l});return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(ws.MenuGroup,{label:(0,T.__)("Transform to"),className:e,children:[s&&(0,d.jsx)(Yj,{blocks:(0,p.switchToBlockType)(i,s)}),!!n?.length&&(0,d.jsx)(Jj,{transformations:n,blocks:i,onSelect:r}),a.map((e=>(0,d.jsx)(tE,{item:e,onSelect:o,setHoveredTransformItemName:l},e.name))),!u&&g]}),!!u&&(0,d.jsx)(ws.MenuGroup,{className:e,children:g})]})};function oE(e,t,n){const o=new(wg())(e);return t&&o.remove("is-style-"+t.name),o.add("is-style-"+n.name),o.value}function rE(e){return e?.find((e=>e.isDefault))}function iE({clientId:e,onSwitch:t}){const{styles:n,block:o,blockType:r,className:i}=(0,g.useSelect)((t=>{const{getBlock:n}=t(ji),o=n(e);if(!o)return{};const r=(0,p.getBlockType)(o.name),{getBlockStyles:i}=t(p.store);return{block:o,blockType:r,styles:i(o.name),className:o.attributes.className||""}}),[e]),{updateBlockAttributes:s}=(0,g.useDispatch)(ji),l=function(e){return e&&0!==e.length?rE(e)?e:[{name:"default",label:(0,T._x)("Default","block style"),isDefault:!0},...e]:[]}(n),a=function(e,t){for(const n of new(wg())(t).values()){if(-1===n.indexOf("is-style-"))continue;const t=n.substring(9),o=e?.find((({name:e})=>e===t));if(o)return o}return rE(e)}(l,i),c=function(e,t){return(0,h.useMemo)((()=>{const n=t?.example,o=t?.name;return n&&o?(0,p.getBlockFromExample)(o,{attributes:n.attributes,innerBlocks:n.innerBlocks}):e?(0,p.cloneBlock)(e):void 0}),[t?.example?e?.name:e,t])}(o,r);return{onSelect:n=>{const o=oE(i,a,n);s(e,{className:o}),t()},stylesToRender:l,activeStyle:a,genericPreviewBlock:c,className:i}}const sE=()=>{};function lE({clientId:e,onSwitch:t=sE}){const{onSelect:n,stylesToRender:o,activeStyle:r}=iE({clientId:e,onSwitch:t});return o&&0!==o.length?(0,d.jsx)(d.Fragment,{children:o.map((e=>{const t=e.label||e.name;return(0,d.jsx)(ws.MenuItem,{icon:r.name===e.name?ip:null,onClick:()=>n(e),children:(0,d.jsx)(ws.__experimentalText,{as:"span",limit:18,ellipsizeMode:"tail",truncate:!0,children:t})},e.name)}))}):null}function aE({hoveredBlock:e,onSwitch:t}){const{clientId:n}=e;return(0,d.jsx)(ws.MenuGroup,{label:(0,T.__)("Styles"),className:"block-editor-block-switcher__styles__menugroup",children:(0,d.jsx)(lE,{clientId:n,onSwitch:t})})}const cE=(e,t,n=new Set)=>{const{clientId:o,name:r,innerBlocks:i=[]}=e;if(!n.has(o)){if(r===t)return e;for(const e of i){const o=cE(e,t,n);if(o)return o}}},uE=(e,t)=>{const n=((e,t)=>{const n=(0,p.getBlockAttributesNamesByRole)(e,"content");return n?.length?n.reduce(((e,n)=>(t[n]&&(e[n]=t[n]),e)),{}):t})(t.name,t.attributes);e.attributes={...e.attributes,...n}};var dE=(e,t)=>(0,h.useMemo)((()=>e.reduce(((e,n)=>{const o=((e,t)=>{const n=t.map((e=>(0,p.cloneBlock)(e))),o=new Set;for(const t of e){let e=!1;for(const r of n){const n=cE(r,t.name,o);if(n){e=!0,o.add(n.clientId),uE(n,t);break}}if(!e)return}return n})(t,n.blocks);return o&&e.push({...n,transformedBlocks:o}),e}),[])),[e,t]);function pE({patterns:e,onSelect:t}){const n=(0,m.useViewportMatch)("medium","<");return(0,d.jsx)("div",{className:"block-editor-block-switcher__popover-preview-container",children:(0,d.jsx)(ws.Popover,{className:"block-editor-block-switcher__popover-preview",placement:n?"bottom":"right-start",offset:16,children:(0,d.jsx)("div",{className:"block-editor-block-switcher__preview is-pattern-list-preview",children:(0,d.jsx)(hE,{patterns:e,onSelect:t})})})})}function hE({patterns:e,onSelect:t}){return(0,d.jsx)(ws.Composite,{role:"listbox",className:"block-editor-block-switcher__preview-patterns-container","aria-label":(0,T.__)("Patterns list"),children:e.map((e=>(0,d.jsx)(gE,{pattern:e,onSelect:t},e.name)))})}function gE({pattern:e,onSelect:t}){const n="block-editor-block-switcher__preview-patterns-container",o=(0,m.useInstanceId)(gE,`${n}-list__item-description`);return(0,d.jsxs)("div",{className:`${n}-list__list-item`,children:[(0,d.jsxs)(ws.Composite.Item,{render:(0,d.jsx)("div",{role:"option","aria-label":e.title,"aria-describedby":e.description?o:void 0,className:`${n}-list__item`}),onClick:()=>t(e.transformedBlocks),children:[(0,d.jsx)(kC,{blocks:e.transformedBlocks,viewportWidth:e.viewportWidth||500}),(0,d.jsx)("div",{className:`${n}-list__item-title`,children:e.title})]}),!!e.description&&(0,d.jsx)(ws.VisuallyHidden,{id:o,children:e.description})]})}var mE=function({blocks:e,patterns:t,onSelect:n}){const[o,r]=(0,h.useState)(!1),i=dE(t,e);return i.length?(0,d.jsxs)(ws.MenuGroup,{className:"block-editor-block-switcher__pattern__transforms__menugroup",children:[o&&(0,d.jsx)(pE,{patterns:i,onSelect:n}),(0,d.jsx)(ws.MenuItem,{onClick:e=>{e.preventDefault(),r(!o)},icon:Zb,children:(0,T.__)("Patterns")})]}):null};function fE({onClose:e,clientIds:t,hasBlockStyles:n,canRemove:o}){const{replaceBlocks:r,multiSelect:i,updateBlockAttributes:s}=(0,g.useDispatch)(ji),{possibleBlockTransformations:l,patterns:a,blocks:c,isUsingBindings:u}=(0,g.useSelect)((e=>{const{getBlockAttributes:n,getBlocksByClientId:o,getBlockRootClientId:r,getBlockTransformItems:i,__experimentalGetPatternTransformItems:s}=e(ji),l=r(t[0]),a=o(t);return{blocks:a,possibleBlockTransformations:i(a,l),patterns:s(a,l),isUsingBindings:t.every((e=>!!n(e)?.metadata?.bindings))}}),[t]),m=function({clientIds:e,blocks:t}){const{activeBlockVariation:n,blockVariationTransformations:o}=(0,g.useSelect)((n=>{const{getBlockAttributes:o,canRemoveBlocks:r}=n(ji),{getActiveBlockVariation:i,getBlockVariations:s}=n(p.store),l=r(e);if(1!==t.length||!l)return Xj;const[a]=t;return{blockVariationTransformations:s(a.name,"transform"),activeBlockVariation:i(a.name,o(a.clientId))}}),[e,t]);return(0,h.useMemo)((()=>o?.filter((({name:e})=>e!==n?.name))),[o,n])}({clientIds:t,blocks:c});function f(e){e.length>1&&i(e[0].clientId,e[e.length-1].clientId)}const b=1===c.length,k=b&&((0,p.isTemplatePart)(c[0])||(0,p.isReusableBlock)(c[0])),v=!!l?.length&&o&&!k,_=!!m?.length,y=!!a?.length&&o,x=v||_;if(!(n||x||y))return(0,d.jsx)("p",{className:"block-editor-block-switcher__no-transforms",children:(0,T.__)("No transforms.")});const S=b?(0,T._x)("This block is connected.","block toolbar button label and description"):(0,T._x)("These blocks are connected.","block toolbar button label and description");return(0,d.jsxs)("div",{className:"block-editor-block-switcher__container",children:[y&&(0,d.jsx)(mE,{blocks:c,patterns:a,onSelect:n=>{!function(e){r(t,e),f(e)}(n),e()}}),x&&(0,d.jsx)(nE,{className:"block-editor-block-switcher__transforms__menugroup",possibleBlockTransformations:l,possibleBlockVariationTransformations:m,blocks:c,onSelect:n=>{!function(e){const n=(0,p.switchToBlockType)(c,e);r(t,n),f(n)}(n),e()},onSelectVariation:t=>{!function(e){s(c[0].clientId,{...m.find((({name:t})=>t===e)).attributes})}(t),e()}}),n&&(0,d.jsx)(aE,{hoveredBlock:c[0],onSwitch:e}),u&&(0,d.jsx)(ws.MenuGroup,{children:(0,d.jsx)(ws.__experimentalText,{className:"block-editor-block-switcher__binding-indicator",children:S})})]})}var bE=({clientIds:e})=>{const{hasContentOnlyLocking:t,canRemove:n,hasBlockStyles:o,icon:r,invalidBlocks:i,isReusable:s,isTemplate:l,isDisabled:a,isSectionInSelection:c}=(0,g.useSelect)((t=>{const{getTemplateLock:n,getBlocksByClientId:o,getBlockAttributes:r,canRemoveBlocks:i,getBlockEditingMode:s,isSectionBlock:l}=G(t(ji)),{getBlockStyles:a,getBlockType:c,getActiveBlockVariation:u}=t(p.store),d=o(e);if(!d.length||d.some((e=>!e)))return{invalidBlocks:!0};const[{name:h}]=d,g=1===d.length,m=c(h),f=s(e[0]);let b,k;if(g){const t=u(h,r(e[0]));b=t?.icon||m.icon,k="contentOnly"===n(e[0])}else{const t=1===new Set(d.map((({name:e})=>e))).size;k=e.some((e=>"contentOnly"===n(e))),b=t?m.icon:qj}const v=e.some((e=>l(e)));return{canRemove:i(e),hasBlockStyles:g&&!!a(h)?.length,icon:b,isReusable:g&&(0,p.isReusableBlock)(d[0]),isTemplate:g&&(0,p.isTemplatePart)(d[0]),hasContentOnlyLocking:k,isDisabled:"default"!==f,isSectionInSelection:v}}),[e]),u=Sj({clientId:e?.[0],maximumLength:35}),h=(0,g.useSelect)((e=>e(hr.store).get("core","showIconLabels")),[]);if(i)return null;const m=1===e.length,f=m?u:(0,T.__)("Multiple blocks selected"),b=(s||l)&&!h&&u?u:void 0;if(window?.__experimentalContentOnlyPatternInsertion&&c||a||!o&&!n||t)return(0,d.jsx)(ws.ToolbarGroup,{children:(0,d.jsx)(ws.ToolbarButton,{disabled:!0,className:"block-editor-block-switcher__no-switcher-icon",title:f,icon:(0,d.jsx)(Vu,{className:"block-editor-block-switcher__toggle",icon:r,showColors:!0}),text:b})});const k=m?(0,T.__)("Change block type or style"):(0,T.sprintf)((0,T._n)("Change type of %d block","Change type of %d blocks",e.length),e.length);return(0,d.jsx)(ws.ToolbarGroup,{children:(0,d.jsx)(ws.ToolbarItem,{children:t=>(0,d.jsx)(ws.DropdownMenu,{className:"block-editor-block-switcher",label:f,popoverProps:{placement:"bottom-start",className:"block-editor-block-switcher__popover"},icon:(0,d.jsx)(Vu,{className:"block-editor-block-switcher__toggle",icon:r,showColors:!0}),text:b,toggleProps:{description:k,...t},menuProps:{orientation:"both"},children:({onClose:t})=>(0,d.jsx)(fE,{onClose:t,clientIds:e,hasBlockStyles:o,canRemove:n})})})})};const{Fill:kE,Slot:vE}=(0,ws.createSlotFill)("__unstableBlockToolbarLastItem");kE.Slot=vE;var _E=kE;const yE="align",xE="__experimentalBorder",SE="color",wE="customClassName",CE="typography.__experimentalFontFamily",BE="typography.fontSize",IE="typography.textAlign",jE="layout",EE=["shadow",...["typography.lineHeight",BE,"typography.__experimentalFontStyle","typography.__experimentalFontWeight",CE,IE,"typography.textColumns","typography.__experimentalTextDecoration","typography.__experimentalTextTransform","typography.__experimentalWritingMode","typography.__experimentalLetterSpacing"],xE,SE,"spacing"];const TE={align:e=>(0,p.hasBlockSupport)(e,yE),borderColor:e=>function(e,t="any"){if("web"!==h.Platform.OS)return!1;const n=(0,p.getBlockSupport)(e,xE);return!0===n||("any"===t?!!(n?.color||n?.radius||n?.width||n?.style):!!n?.[t])}(e,"color"),backgroundColor:e=>{const t=(0,p.getBlockSupport)(e,SE);return t&&!1!==t.background},textAlign:e=>(0,p.hasBlockSupport)(e,IE),textColor:e=>{const t=(0,p.getBlockSupport)(e,SE);return t&&!1!==t.text},gradient:e=>{const t=(0,p.getBlockSupport)(e,SE);return null!==t&&"object"==typeof t&&!!t.gradients},className:e=>(0,p.hasBlockSupport)(e,wE,!0),fontFamily:e=>(0,p.hasBlockSupport)(e,CE),fontSize:e=>(0,p.hasBlockSupport)(e,BE),layout:e=>(0,p.hasBlockSupport)(e,jE),style:e=>EE.some((t=>(0,p.hasBlockSupport)(e,t)))};function ME(e,t){return Object.entries(TE).reduce(((n,[o,r])=>(r(e.name)&&r(t.name)&&(n[o]=e.attributes[o]),n)),{})}function PE(e,t,n){for(let o=0;o<Math.min(t.length,e.length);o+=1)n(e[o].clientId,ME(t[o],e[o])),PE(e[o].innerBlocks,t[o].innerBlocks,n)}function RE(){const e=(0,g.useRegistry)(),{updateBlockAttributes:t}=(0,g.useDispatch)(ji),{createSuccessNotice:n,createWarningNotice:o,createErrorNotice:r}=(0,g.useDispatch)(pr.store);return(0,h.useCallback)((async i=>{let s="";try{if(!window.navigator.clipboard)return void r((0,T.__)("Unable to paste styles. This feature is only available on secure (https) sites in supporting browsers."),{type:"snackbar"});s=await window.navigator.clipboard.readText()}catch(e){return void r((0,T.__)("Unable to paste styles. Please allow browser clipboard permissions before continuing."),{type:"snackbar"})}if(!s||!function(e){try{const t=(0,p.parse)(e,{__unstableSkipMigrationLogs:!0,__unstableSkipAutop:!0});return 1!==t.length||"core/freeform"!==t[0].name}catch(e){return!1}}(s))return void o((0,T.__)("Unable to paste styles. Block styles couldn't be found within the copied content."),{type:"snackbar"});const l=(0,p.parse)(s);if(1===l.length?e.batch((()=>{PE(i,i.map((()=>l[0])),t)})):e.batch((()=>{PE(i,l,t)})),1===i.length){const e=(0,p.getBlockType)(i[0].name)?.title;n((0,T.sprintf)((0,T.__)("Pasted styles to %s."),e),{type:"snackbar"})}else n((0,T.sprintf)((0,T.__)("Pasted styles to %d blocks."),i.length),{type:"snackbar"})}),[e.batch,t,n,o,r])}function AE({clientIds:e,children:t,__experimentalUpdateSelection:n}){const{getDefaultBlockName:o,getGroupingBlockName:r}=(0,g.useSelect)(p.store),i=(0,g.useSelect)((t=>{const{canInsertBlockType:n,getBlockRootClientId:r,getBlocksByClientId:i,getDirectInsertBlock:s,canRemoveBlocks:l}=t(ji),a=i(e),c=r(e[0]),u=n(o(),c),d=c?s(c):null;return{canRemove:l(e),canInsertBlock:a.every((e=>(u||!!d)&&n(e.name,c))),canCopyStyles:a.every((e=>!!e&&((0,p.hasBlockSupport)(e.name,"color")||(0,p.hasBlockSupport)(e.name,"typography")))),canDuplicate:a.every((e=>!!e&&(0,p.hasBlockSupport)(e.name,"multiple",!0)&&n(e.name,c)))}}),[e,o]),{getBlocksByClientId:s,getBlocks:l}=(0,g.useSelect)(ji),{canRemove:a,canInsertBlock:c,canCopyStyles:u,canDuplicate:d}=i,{removeBlocks:h,replaceBlocks:m,duplicateBlocks:f,insertAfterBlock:b,insertBeforeBlock:k,flashBlock:v}=(0,g.useDispatch)(ji),_=RE();return t({canCopyStyles:u,canDuplicate:d,canInsertBlock:c,canRemove:a,onDuplicate:()=>f(e,n),onRemove:()=>h(e,n),onInsertBefore(){k(e[0])},onInsertAfter(){b(e[e.length-1])},onGroup(){if(!e.length)return;const t=r(),n=(0,p.switchToBlockType)(s(e),t);n&&m(e,n)},onUngroup(){if(!e.length)return;const t=l(e[0]);t.length&&m(e,t)},onCopy(){1===e.length&&v(e[0])},async onPasteStyles(){await _(s(e))}})}var NE=(0,ws.createSlotFill)(Symbol("CommentIconSlotFill"));var LE=function({clientId:e}){const t=(0,g.useSelect)((t=>t(ji).getBlock(e)),[e]),{replaceBlocks:n}=(0,g.useDispatch)(ji);return t&&"core/html"===t.name?(0,d.jsx)(ws.MenuItem,{onClick:()=>n(e,(0,p.rawHandler)({HTML:(0,p.getBlockContent)(t)})),children:(0,T.__)("Convert to Blocks")}):null};const{Fill:DE,Slot:OE}=(0,ws.createSlotFill)("__unstableBlockSettingsMenuFirstItem");DE.Slot=OE;var zE=DE;function VE(e){return(0,g.useSelect)((t=>{const{getBlocksByClientId:n,getSelectedBlockClientIds:o,isUngroupable:r,isGroupable:i}=t(ji),{getGroupingBlockName:s,getBlockType:l}=t(p.store),a=e?.length?e:o(),c=n(a),[u]=c,d=1===a.length&&r(a[0]);return{clientIds:a,isGroupable:i(a),isUngroupable:d,blocksSelection:c,groupingBlockName:s(),onUngroup:d&&l(u.name)?.transforms?.ungroup}}),[e])}function FE({clientIds:e,isGroupable:t,isUngroupable:n,onUngroup:o,blocksSelection:r,groupingBlockName:i,onClose:s=()=>{}}){const{getSelectedBlockClientIds:l}=(0,g.useSelect)(ji),{replaceBlocks:a}=(0,g.useDispatch)(ji);if(!t&&!n)return null;const c=l();return(0,d.jsxs)(d.Fragment,{children:[t&&(0,d.jsx)(ws.MenuItem,{shortcut:c.length>1?Wa.displayShortcut.primary("g"):void 0,onClick:()=>{(()=>{const t=(0,p.switchToBlockType)(r,i);t&&a(e,t)})(),s()},children:(0,T._x)("Group","verb")}),n&&(0,d.jsx)(ws.MenuItem,{onClick:()=>{(()=>{let t=r[0].innerBlocks;t.length&&(o&&(t=o(r[0].attributes,r[0].innerBlocks)),a(e,t))})(),s()},children:(0,T._x)("Ungroup","Ungrouping blocks from within a grouping block back into individual blocks within the Editor")})]})}function HE(e){return(0,g.useSelect)((t=>{const{canEditBlock:n,canMoveBlock:o,canRemoveBlock:r,canLockBlockType:i,getBlockName:s,getTemplateLock:l}=t(ji),a=n(e),c=o(e),u=r(e);return{canEdit:a,canMove:c,canRemove:u,canLock:i(s(e)),isContentLocked:"contentOnly"===l(e),isLocked:!a||!c||!u}}),[e])}var UE=(0,d.jsx)(ue.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,d.jsx)(ue.Path,{d:"M17 10h-1.2V7c0-2.1-1.7-3.8-3.8-3.8-2.1 0-3.8 1.7-3.8 3.8h1.5c0-1.2 1-2.2 2.2-2.2s2.2 1 2.2 2.2v3H7c-.6 0-1 .4-1 1v8c0 .6.4 1 1 1h10c.6 0 1-.4 1-1v-8c0-.6-.4-1-1-1z"})}),GE=(0,d.jsx)(ue.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,d.jsx)(ue.Path,{d:"M17 10h-1.2V7c0-2.1-1.7-3.8-3.8-3.8-2.1 0-3.8 1.7-3.8 3.8v3H7c-.6 0-1 .4-1 1v8c0 .6.4 1 1 1h10c.6 0 1-.4 1-1v-8c0-.6-.4-1-1-1zM9.8 7c0-1.2 1-2.2 2.2-2.2 1.2 0 2.2 1 2.2 2.2v3H9.8V7zm6.7 11.5h-9v-7h9v7z"})}),$E=(0,d.jsx)(ue.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,d.jsx)(ue.Path,{d:"M17 10h-1.2V7c0-2.1-1.7-3.8-3.8-3.8-2.1 0-3.8 1.7-3.8 3.8v3H7c-.6 0-1 .4-1 1v8c0 .6.4 1 1 1h10c.6 0 1-.4 1-1v-8c0-.6-.4-1-1-1zm-2.8 0H9.8V7c0-1.2 1-2.2 2.2-2.2s2.2 1 2.2 2.2v3z"})});const WE=["core/navigation"];function KE(e){return e.remove&&e.move?"all":!(!e.remove||e.move)&&"insert"}function ZE({clientId:e,onClose:t}){const[n,o]=(0,h.useState)({move:!1,remove:!1}),{canEdit:r,canMove:i,canRemove:s}=HE(e),{allowsEditLocking:l,templateLock:a,hasTemplateLock:c}=(0,g.useSelect)((t=>{const{getBlockName:n,getBlockAttributes:o}=t(ji),r=n(e),i=(0,p.getBlockType)(r);return{allowsEditLocking:WE.includes(r),templateLock:o(e)?.templateLock,hasTemplateLock:!!i?.attributes?.templateLock}}),[e]),[u,m]=(0,h.useState)(!!a),{updateBlockAttributes:f}=(0,g.useDispatch)(ji),b=Xf(e);(0,h.useEffect)((()=>{o({move:!i,remove:!s,...l?{edit:!r}:{}})}),[r,i,s,l]);const k=Object.values(n).every(Boolean),v=Object.values(n).some(Boolean)&&!k;return(0,d.jsx)(ws.Modal,{title:(0,T.sprintf)((0,T.__)("Lock %s"),b.title),overlayClassName:"block-editor-block-lock-modal",onRequestClose:t,size:"small",children:(0,d.jsxs)("form",{onSubmit:o=>{o.preventDefault(),f([e],{lock:n,templateLock:u?KE(n):void 0}),t()},children:[(0,d.jsxs)("fieldset",{className:"block-editor-block-lock-modal__options",children:[(0,d.jsx)("legend",{children:(0,T.__)("Select the features you want to lock")}),(0,d.jsx)("ul",{role:"list",className:"block-editor-block-lock-modal__checklist",children:(0,d.jsxs)("li",{children:[(0,d.jsx)(ws.CheckboxControl,{__nextHasNoMarginBottom:!0,className:"block-editor-block-lock-modal__options-all",label:(0,T.__)("Lock all"),checked:k,indeterminate:v,onChange:e=>o({move:e,remove:e,...l?{edit:e}:{}})}),(0,d.jsxs)("ul",{role:"list",className:"block-editor-block-lock-modal__checklist",children:[l&&(0,d.jsxs)("li",{className:"block-editor-block-lock-modal__checklist-item",children:[(0,d.jsx)(ws.CheckboxControl,{__nextHasNoMarginBottom:!0,label:(0,T.__)("Lock editing"),checked:!!n.edit,onChange:e=>o((t=>({...t,edit:e})))}),(0,d.jsx)(ws.Icon,{className:"block-editor-block-lock-modal__lock-icon",icon:n.edit?$E:UE})]}),(0,d.jsxs)("li",{className:"block-editor-block-lock-modal__checklist-item",children:[(0,d.jsx)(ws.CheckboxControl,{__nextHasNoMarginBottom:!0,label:(0,T.__)("Lock movement"),checked:n.move,onChange:e=>o((t=>({...t,move:e})))}),(0,d.jsx)(ws.Icon,{className:"block-editor-block-lock-modal__lock-icon",icon:n.move?$E:UE})]}),(0,d.jsxs)("li",{className:"block-editor-block-lock-modal__checklist-item",children:[(0,d.jsx)(ws.CheckboxControl,{__nextHasNoMarginBottom:!0,label:(0,T.__)("Lock removal"),checked:n.remove,onChange:e=>o((t=>({...t,remove:e})))}),(0,d.jsx)(ws.Icon,{className:"block-editor-block-lock-modal__lock-icon",icon:n.remove?$E:UE})]})]})]})}),c&&(0,d.jsx)(ws.ToggleControl,{__nextHasNoMarginBottom:!0,className:"block-editor-block-lock-modal__template-lock",label:(0,T.__)("Apply to all blocks inside"),checked:u,disabled:n.move&&!n.remove,onChange:()=>m(!u)})]}),(0,d.jsxs)(ws.Flex,{className:"block-editor-block-lock-modal__actions",justify:"flex-end",expanded:!1,children:[(0,d.jsx)(ws.FlexItem,{children:(0,d.jsx)(ws.Button,{variant:"tertiary",onClick:t,__next40pxDefaultSize:!0,children:(0,T.__)("Cancel")})}),(0,d.jsx)(ws.FlexItem,{children:(0,d.jsx)(ws.Button,{variant:"primary",type:"submit",__next40pxDefaultSize:!0,children:(0,T.__)("Apply")})})]})]})})}function qE({clientId:e}){const{canLock:t,isLocked:n}=HE(e),[o,r]=(0,h.useReducer)((e=>!e),!1);if(!t)return null;const i=n?(0,T.__)("Unlock"):(0,T.__)("Lock");return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(ws.MenuItem,{icon:n?UE:GE,onClick:r,"aria-expanded":o,"aria-haspopup":"dialog",children:i}),o&&(0,d.jsx)(ZE,{clientId:e,onClose:r})]})}const YE=()=>{};function XE({clientId:e,onToggle:t=YE}){const{blockType:n,mode:o,enabled:r}=(0,g.useSelect)((t=>{const{getBlock:n,getBlockMode:o,getSettings:r}=t(ji),i=n(e);return{mode:o(e),blockType:i?(0,p.getBlockType)(i.name):null,enabled:r().codeEditingEnabled&&!!i?.isValid}}),[e]),{toggleBlockMode:i}=(0,g.useDispatch)(ji);if(!n||!(0,p.hasBlockSupport)(n,"html",!0)||!r)return null;const s="visual"===o?(0,T.__)("Edit as HTML"):(0,T.__)("Edit visually");return(0,d.jsx)(ws.MenuItem,{onClick:()=>{i(e),t()},children:s})}function QE({clientId:e,onClose:t}){const{templateLock:n,isLockedByParent:o,isEditingAsBlocks:r}=(0,g.useSelect)((t=>{const{getContentLockingParent:n,getTemplateLock:o,getTemporarilyEditingAsBlocks:r}=G(t(ji));return{templateLock:o(e),isLockedByParent:!!n(e),isEditingAsBlocks:r()===e}}),[e]),i=(0,g.useDispatch)(ji),s=!o&&"contentOnly"===n;if(!s&&!r)return null;const{modifyContentLockBlock:l}=G(i);return!r&&s&&(0,d.jsx)(ws.MenuItem,{onClick:()=>{l(e),t()},children:(0,T._x)("Modify","Unlock content locked blocks")})}function JE({clientId:e,onClose:t}){const[n,o]=(0,h.useState)(),r=Xf(e),{metadata:i}=(0,g.useSelect)((t=>{const{getBlockAttributes:n}=t(ji);return{metadata:n(e)?.metadata}}),[e]),{updateBlockAttributes:s}=(0,g.useDispatch)(ji),l=i?.name||"",a=r?.title,c=!!l&&!!i?.bindings&&Object.values(i.bindings).some((e=>"core/pattern-overrides"===e.source)),u=void 0!==n&&n!==l,p=n===a,m=(f=n,0===f?.trim()?.length);var f;const b=u||p;return(0,d.jsx)(ws.Modal,{title:(0,T.__)("Rename"),onRequestClose:t,overlayClassName:"block-editor-block-rename-modal",focusOnMount:"firstContentElement",size:"small",children:(0,d.jsx)("form",{onSubmit:o=>{o.preventDefault(),b&&(()=>{const o=p||m?void 0:n,r=p||m?(0,T.sprintf)((0,T.__)('Block name reset to: "%s".'),n):(0,T.sprintf)((0,T.__)('Block name changed to: "%s".'),n);(0,Uo.speak)(r,"assertive"),s([e],{metadata:fs({...i,name:o})}),t()})()},children:(0,d.jsxs)(ws.__experimentalVStack,{spacing:"3",children:[(0,d.jsx)(ws.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,value:n??l,label:(0,T.__)("Name"),help:c?(0,T.__)("This block allows overrides. Changing the name can cause problems with content entered into instances of this pattern."):void 0,placeholder:a,onChange:o,onFocus:e=>e.target.select()}),(0,d.jsxs)(ws.__experimentalHStack,{justify:"right",children:[(0,d.jsx)(ws.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:t,children:(0,T.__)("Cancel")}),(0,d.jsx)(ws.Button,{__next40pxDefaultSize:!0,accessibleWhenDisabled:!0,disabled:!b,variant:"primary",type:"submit",children:(0,T.__)("Save")})]})]})})})}function eT({clientId:e}){const[t,n]=(0,h.useState)(!1);return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(ws.MenuItem,{onClick:()=>{n(!0)},"aria-expanded":t,"aria-haspopup":"dialog",children:(0,T.__)("Rename")}),t&&(0,d.jsx)(JE,{clientId:e,onClose:()=>n(!1)})]})}var tT=(0,d.jsx)(ue.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,d.jsx)(ue.Path,{d:"M3.99961 13C4.67043 13.3354 4.6703 13.3357 4.67017 13.3359L4.67298 13.3305C4.67621 13.3242 4.68184 13.3135 4.68988 13.2985C4.70595 13.2686 4.7316 13.2218 4.76695 13.1608C4.8377 13.0385 4.94692 12.8592 5.09541 12.6419C5.39312 12.2062 5.84436 11.624 6.45435 11.0431C7.67308 9.88241 9.49719 8.75 11.9996 8.75C14.502 8.75 16.3261 9.88241 17.5449 11.0431C18.1549 11.624 18.6061 12.2062 18.9038 12.6419C19.0523 12.8592 19.1615 13.0385 19.2323 13.1608C19.2676 13.2218 19.2933 13.2686 19.3093 13.2985C19.3174 13.3135 19.323 13.3242 19.3262 13.3305L19.3291 13.3359C19.3289 13.3357 19.3288 13.3354 19.9996 13C20.6704 12.6646 20.6703 12.6643 20.6701 12.664L20.6697 12.6632L20.6688 12.6614L20.6662 12.6563L20.6583 12.6408C20.6517 12.6282 20.6427 12.6108 20.631 12.5892C20.6078 12.5459 20.5744 12.4852 20.5306 12.4096C20.4432 12.2584 20.3141 12.0471 20.1423 11.7956C19.7994 11.2938 19.2819 10.626 18.5794 9.9569C17.1731 8.61759 14.9972 7.25 11.9996 7.25C9.00203 7.25 6.82614 8.61759 5.41987 9.9569C4.71736 10.626 4.19984 11.2938 3.85694 11.7956C3.68511 12.0471 3.55605 12.2584 3.4686 12.4096C3.42484 12.4852 3.39142 12.5459 3.36818 12.5892C3.35656 12.6108 3.34748 12.6282 3.34092 12.6408L3.33297 12.6563L3.33041 12.6614L3.32948 12.6632L3.32911 12.664C3.32894 12.6643 3.32879 12.6646 3.99961 13ZM11.9996 16C13.9326 16 15.4996 14.433 15.4996 12.5C15.4996 10.567 13.9326 9 11.9996 9C10.0666 9 8.49961 10.567 8.49961 12.5C8.49961 14.433 10.0666 16 11.9996 16Z"})}),nT=(0,d.jsx)(ue.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,d.jsx)(ue.Path,{d:"M20.7 12.7s0-.1-.1-.2c0-.2-.2-.4-.4-.6-.3-.5-.9-1.2-1.6-1.8-.7-.6-1.5-1.3-2.6-1.8l-.6 1.4c.9.4 1.6 1 2.1 1.5.6.6 1.1 1.2 1.4 1.6.1.2.3.4.3.5v.1l.7-.3.7-.3Zm-5.2-9.3-1.8 4c-.5-.1-1.1-.2-1.7-.2-3 0-5.2 1.4-6.6 2.7-.7.7-1.2 1.3-1.6 1.8-.2.3-.3.5-.4.6 0 0 0 .1-.1.2s0 0 .7.3l.7.3V13c0-.1.2-.3.3-.5.3-.4.7-1 1.4-1.6 1.2-1.2 3-2.3 5.5-2.3H13v.3c-.4 0-.8-.1-1.1-.1-1.9 0-3.5 1.6-3.5 3.5s.6 2.3 1.6 2.9l-2 4.4.9.4 7.6-16.2-.9-.4Zm-3 12.6c1.7-.2 3-1.7 3-3.5s-.2-1.4-.6-1.9L12.4 16Z"})});function oT({clientIds:e}){const{updateBlockAttributes:t}=(0,g.useDispatch)(ji),{createSuccessNotice:n}=(0,g.useDispatch)(pr.store),o=(0,g.useSelect)((t=>t(ji).getBlocksByClientId(e)),[e]),r=(0,g.useSelect)((e=>e(Yk.store).getShortcutRepresentation("core/editor/toggle-list-view")),[]),i=o.some((e=>!1===e.attributes.metadata?.blockVisibility));return(0,d.jsx)(ws.MenuItem,{icon:i?tT:nT,onClick:()=>{const s=!i,l=Object.fromEntries(o?.map((({clientId:e,attributes:t})=>[e,{metadata:fs({...t?.metadata,blockVisibility:!s&&void 0})}])));t(e,l,{uniqueByBlock:!0}),s&&(o.length>1?n((0,T.sprintf)((0,T.__)("Blocks hidden. You can access them via the List View (%s)."),r),{id:"block-visibility-hidden",type:"snackbar"}):n((0,T.sprintf)((0,T.__)("Block hidden. You can access it via the List View (%s)."),r),{id:"block-visibility-hidden",type:"snackbar"}))},children:i?(0,T.__)("Show"):(0,T.__)("Hide")})}const{Fill:rT,Slot:iT}=(0,ws.createSlotFill)("BlockSettingsMenuControls");function sT({...e}){return(0,d.jsx)(ws.__experimentalStyleProvider,{document,children:(0,d.jsx)(rT,{...e})})}sT.Slot=({fillProps:e,clientIds:t=null})=>{const{selectedBlocks:n,selectedClientIds:o,isContentOnly:r,canToggleSelectedBlocksVisibility:i}=(0,g.useSelect)((e=>{const{getBlocksByClientId:n,getBlockNamesByClientId:o,getSelectedBlockClientIds:r,getBlockEditingMode:i}=e(ji),s=null!==t?t:r();return{selectedBlocks:o(s),selectedClientIds:s,isContentOnly:"contentOnly"===i(s[0]),canToggleSelectedBlocksVisibility:n(s).every((e=>(0,p.hasBlockSupport)(e.name,"blockVisibility",!0)))}}),[t]),{canLock:s}=HE(o[0]),{canRename:l}=(a=n[0],{canRename:(0,p.getBlockSupport)(a,"renaming",!0)});var a;const c=1===o.length&&s&&!r,u=1===o.length&&l&&!r,h=i&&!r,m=VE(o),{isGroupable:f,isUngroupable:b}=m,k=(f||b)&&!r;return(0,d.jsx)(iT,{fillProps:{...e,selectedBlocks:n,selectedClientIds:o},children:t=>!t?.length>0&&!k&&!c?null:(0,d.jsxs)(ws.MenuGroup,{children:[k&&(0,d.jsx)(FE,{...m,onClose:e?.onClose}),c&&(0,d.jsx)(qE,{clientId:o[0]}),u&&(0,d.jsx)(eT,{clientId:o[0]}),h&&(0,d.jsx)(oT,{clientIds:o}),t,1===o.length&&(0,d.jsx)(QE,{clientId:o[0],onClose:e?.onClose}),1===e?.count&&!r&&(0,d.jsx)(XE,{clientId:e?.firstBlockClientId,onToggle:e?.onClose})]})})};var lT=sT;function aT({parentClientId:e,parentBlockType:t}){const n=(0,m.useViewportMatch)("medium","<"),{selectBlock:o}=(0,g.useDispatch)(ji),r=(0,h.useRef)(),i=Kj({ref:r,highlightParent:!0});return n?(0,d.jsx)(ws.MenuItem,{...i,ref:r,icon:(0,d.jsx)(Vu,{icon:t.icon}),onClick:()=>o(e),children:(0,T.sprintf)((0,T.__)("Select parent block (%s)"),t.title)}):null}const cT={className:"block-editor-block-settings-menu__popover",placement:"bottom-start"};function uT({clientIds:e,onCopy:t,label:n,shortcut:o,eventType:r="copy",__experimentalUpdateSelection:i=!1}){const{getBlocksByClientId:s}=(0,g.useSelect)(ji),{removeBlocks:l}=(0,g.useDispatch)(ji),a=jw(),c=(0,m.useCopyToClipboard)((()=>(0,p.serialize)(s(e))),(()=>{switch(r){case"copy":case"copyStyles":t(),a(r,e);break;case"cut":a(r,e),l(e,i)}})),u=n||(0,T.__)("Copy");return(0,d.jsx)(ws.MenuItem,{ref:c,shortcut:o,children:u})}function dT({block:e,clientIds:t,children:n,__experimentalSelectBlock:o,...r}){const i=e?.clientId,s=t.length,l=t[0],{firstParentClientId:a,parentBlockType:c,previousBlockClientId:u,selectedBlockClientIds:f,openedBlockSettingsMenu:b,isContentOnly:k,isZoomOut:v}=(0,g.useSelect)((e=>{const{getBlockName:t,getBlockRootClientId:n,getPreviousBlockClientId:o,getSelectedBlockClientIds:r,getBlockAttributes:i,getOpenedBlockSettingsMenu:s,getBlockEditingMode:a,isZoomOut:c}=G(e(ji)),{getActiveBlockVariation:u}=e(p.store),d=n(l),h=d&&t(d);return{firstParentClientId:d,parentBlockType:d&&(u(h,i(d))||(0,p.getBlockType)(h)),previousBlockClientId:o(l),selectedBlockClientIds:r(),openedBlockSettingsMenu:s(),isContentOnly:"contentOnly"===a(l),isZoomOut:c()}}),[l]),{getBlockOrder:_,getSelectedBlockClientIds:y}=(0,g.useSelect)(ji),{setOpenedBlockSettingsMenu:x}=G((0,g.useDispatch)(ji)),S=(0,g.useSelect)((e=>{const{getShortcutRepresentation:t}=e(Yk.store);return{copy:t("core/block-editor/copy"),cut:t("core/block-editor/cut"),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")}}),[]),w=f.length>0;async function C(e){if(!o)return;const t=await e;t&&t[0]&&o(t[0],!1)}function B(){if(!o)return;let e=u||a;e||(e=_()[0]);const t=w&&0===y().length;o(e,t)}const I=f?.includes(a),j=i?b===i||!1:void 0;function E(e){e&&b!==i?x(i):!e&&b&&b===i&&x(void 0)}const M=!I&&!!a;return(0,d.jsx)(AE,{clientIds:t,__experimentalUpdateSelection:!o,children:({canCopyStyles:e,canDuplicate:i,canInsertBlock:u,canRemove:p,onDuplicate:g,onInsertAfter:f,onInsertBefore:b,onRemove:_,onCopy:y,onPasteStyles:x})=>!p&&!i&&!u&&k?null:(0,d.jsx)(ws.DropdownMenu,{icon:fv,label:(0,T.__)("Options"),className:"block-editor-block-settings-menu",popoverProps:cT,open:j,onToggle:E,noIcons:!0,...r,children:({onClose:r})=>(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(ws.MenuGroup,{children:[(0,d.jsx)(zE.Slot,{fillProps:{onClose:r}}),M&&(0,d.jsx)(aT,{parentClientId:a,parentBlockType:c}),1===s&&(0,d.jsx)(LE,{clientId:l}),!k&&(0,d.jsx)(uT,{clientIds:t,onCopy:y,shortcut:S.copy}),!k&&(0,d.jsx)(uT,{clientIds:t,label:(0,T.__)("Cut"),eventType:"cut",shortcut:S.cut,__experimentalUpdateSelection:!o}),i&&(0,d.jsx)(ws.MenuItem,{onClick:(0,m.pipe)(r,g,C),shortcut:S.duplicate,children:(0,T.__)("Duplicate")}),u&&!v&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(ws.MenuItem,{onClick:(0,m.pipe)(r,b),shortcut:S.insertBefore,children:(0,T.__)("Add before")}),(0,d.jsx)(ws.MenuItem,{onClick:(0,m.pipe)(r,f),shortcut:S.insertAfter,children:(0,T.__)("Add after")})]}),1===s&&(0,d.jsx)(NE.Slot,{fillProps:{clientId:l,onClose:r}})]}),e&&!k&&(0,d.jsxs)(ws.MenuGroup,{children:[(0,d.jsx)(uT,{clientIds:t,onCopy:y,label:(0,T.__)("Copy styles"),eventType:"copyStyles"}),(0,d.jsx)(ws.MenuItem,{onClick:x,children:(0,T.__)("Paste styles")})]}),!k&&(0,d.jsx)(lT.Slot,{fillProps:{onClose:r,count:s,firstBlockClientId:l},clientIds:t}),"function"==typeof n?n({onClose:r}):h.Children.map((e=>(0,h.cloneElement)(e,{onClose:r}))),p&&(0,d.jsx)(ws.MenuGroup,{children:(0,d.jsx)(ws.MenuItem,{onClick:(0,m.pipe)(r,_,B),shortcut:S.remove,children:(0,T.__)("Delete")})})]})})})}var pT=dT;var hT=(0,ws.createSlotFill)(Symbol("CommentIconToolbarSlotFill"));var gT=function({clientIds:e,...t}){return(0,d.jsxs)(ws.ToolbarGroup,{children:[(0,d.jsx)(hT.Slot,{}),(0,d.jsx)(ws.ToolbarItem,{children:n=>(0,d.jsx)(pT,{clientIds:e,toggleProps:n,...t})})]})};function mT({clientId:e}){const{canLock:t,isLocked:n}=HE(e),[o,r]=(0,h.useReducer)((e=>!e),!1),i=(0,h.useRef)(!1);if((0,h.useEffect)((()=>{n&&(i.current=!0)}),[n]),!n&&!i.current)return null;let s=n?(0,T.__)("Unlock"):(0,T.__)("Lock");return!t&&n&&(s=(0,T.__)("Locked")),(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(ws.ToolbarGroup,{className:"block-editor-block-lock-toolbar",children:(0,d.jsx)(ws.ToolbarButton,{disabled:!t,icon:n?$E:UE,label:s,onClick:r,"aria-expanded":o,"aria-haspopup":"dialog"})}),o&&(0,d.jsx)(ZE,{clientId:e,onClose:r})]})}function fT({clientIds:e}){const{blocks:t,canToggleBlockVisibility:n}=(0,g.useSelect)((t=>{const{getBlockName:n,getBlocksByClientId:o}=t(ji),r=o(e);return{blocks:r,canToggleBlockVisibility:r.every((({clientId:e})=>(0,p.hasBlockSupport)(n(e),"blockVisibility",!0)))}}),[e]),o=t.some((e=>!1===e.attributes.metadata?.blockVisibility)),r=(0,h.useRef)(!1),{updateBlockAttributes:i}=(0,g.useDispatch)(ji);if((0,h.useEffect)((()=>{o&&(r.current=!0)}),[o]),!o&&!r.current)return null;return(0,d.jsx)(d.Fragment,{children:(0,d.jsx)(ws.ToolbarGroup,{className:"block-editor-block-lock-toolbar",children:(0,d.jsx)(ws.ToolbarButton,{disabled:!n,icon:o?nT:tT,label:o?(0,T.__)("Hidden"):(0,T.__)("Visible"),onClick:()=>{const n=Object.fromEntries(t?.map((({clientId:e,attributes:t})=>[e,{metadata:fs({...t?.metadata,blockVisibility:!!o&&void 0})}])));i(e,n,{uniqueByBlock:!0})}})})})}var bT=(0,d.jsx)(ue.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,d.jsx)(ue.Path,{d:"M18 4h-7c-1.1 0-2 .9-2 2v3H6c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2v-3h3c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-4.5 14c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-7c0-.3.2-.5.5-.5h3V13c0 1.1.9 2 2 2h2.5v3zm0-4.5H11c-.3 0-.5-.2-.5-.5v-2.5H13c.3 0 .5.2.5.5v2.5zm5-.5c0 .3-.2.5-.5.5h-3V11c0-1.1-.9-2-2-2h-2.5V6c0-.3.2-.5.5-.5h7c.3 0 .5.2.5.5v7z"})}),kT=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"M4 6.5h5a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H4V16h5a.5.5 0 0 0 .5-.5v-7A.5.5 0 0 0 9 8H4V6.5Zm16 0h-5a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h5V16h-5a.5.5 0 0 1-.5-.5v-7A.5.5 0 0 1 15 8h5V6.5Z"})}),vT=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"M17.5 4v5a2 2 0 0 1-2 2h-7a2 2 0 0 1-2-2V4H8v5a.5.5 0 0 0 .5.5h7A.5.5 0 0 0 16 9V4h1.5Zm0 16v-5a2 2 0 0 0-2-2h-7a2 2 0 0 0-2 2v5H8v-5a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 .5.5v5h1.5Z"})}),_T=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"m3 5c0-1.10457.89543-2 2-2h13.5c1.1046 0 2 .89543 2 2v13.5c0 1.1046-.8954 2-2 2h-13.5c-1.10457 0-2-.8954-2-2zm2-.5h6v6.5h-6.5v-6c0-.27614.22386-.5.5-.5zm-.5 8v6c0 .2761.22386.5.5.5h6v-6.5zm8 0v6.5h6c.2761 0 .5-.2239.5-.5v-6zm0-8v6.5h6.5v-6c0-.27614-.2239-.5-.5-.5z",fillRule:"evenodd",clipRule:"evenodd"})});const yT={group:{type:"constrained"},row:{type:"flex",flexWrap:"nowrap"},stack:{type:"flex",orientation:"vertical"},grid:{type:"grid"}};var xT=function(){const{blocksSelection:e,clientIds:t,groupingBlockName:n,isGroupable:o}=VE(),{replaceBlocks:r}=(0,g.useDispatch)(ji),{canRemove:i,variations:s}=(0,g.useSelect)((e=>{const{canRemoveBlocks:o}=e(ji),{getBlockVariations:r}=e(p.store);return{canRemove:o(t),variations:r(n,"transform")}}),[t,n]),l=o=>{const i=(0,p.switchToBlockType)(e,n);"string"!=typeof o&&(o="group"),i&&i.length>0&&(i[0].attributes.layout=yT[o],r(t,i))};if(!o||!i)return null;const a=!!s.find((({name:e})=>"group-row"===e)),c=!!s.find((({name:e})=>"group-stack"===e)),u=!!s.find((({name:e})=>"group-grid"===e));return(0,d.jsxs)(ws.ToolbarGroup,{children:[(0,d.jsx)(ws.ToolbarButton,{icon:bT,label:(0,T._x)("Group","action: convert blocks to group"),onClick:l}),a&&(0,d.jsx)(ws.ToolbarButton,{icon:kT,label:(0,T._x)("Row","action: convert blocks to row"),onClick:()=>l("row")}),c&&(0,d.jsx)(ws.ToolbarButton,{icon:vT,label:(0,T._x)("Stack","action: convert blocks to stack"),onClick:()=>l("stack")}),u&&(0,d.jsx)(ws.ToolbarButton,{icon:_T,label:(0,T._x)("Grid","action: convert blocks to grid"),onClick:()=>l("grid")})]})};function ST({clientIds:e}){const t=1===e.length?e[0]:void 0,n=(0,g.useSelect)((e=>!!t&&"html"===e(ji).getBlockMode(t)),[t]),{toggleBlockMode:o}=(0,g.useDispatch)(ji);return n?(0,d.jsx)(ws.ToolbarGroup,{children:(0,d.jsx)(ws.ToolbarButton,{onClick:()=>{o(t)},children:(0,T.__)("Edit visually")})}):null}const wT=(0,h.createContext)("");wT.displayName="__unstableBlockNameContext";var CT=wT;function BT(e){return Array.from(e.querySelectorAll("[data-toolbar-item]:not([disabled])"))}function IT(e){return e.contains(e.ownerDocument.activeElement)}function jT({toolbarRef:e,focusOnMount:t,isAccessibleToolbar:n,defaultIndex:o,onIndexChange:r,shouldUseKeyboardFocusShortcut:i,focusEditorOnEscape:s}){const[l]=(0,h.useState)(t),[a]=(0,h.useState)(o),c=(0,h.useCallback)((()=>{!function(e){const[t]=Ga.focus.tabbable.find(e);t&&t.focus({preventScroll:!0})}(e.current)}),[e]);(0,Yk.useShortcut)("core/block-editor/focus-toolbar",(()=>{i&&c()})),(0,h.useEffect)((()=>{l&&c()}),[n,l,c]),(0,h.useEffect)((()=>{const t=e.current;let n=0;return l||IT(t)||(n=window.requestAnimationFrame((()=>{const e=BT(t),n=a||0;e[n]&&IT(t)&&e[n].focus({preventScroll:!0})}))),()=>{if(window.cancelAnimationFrame(n),!r||!t)return;const e=BT(t).findIndex((e=>0===e.tabIndex));r(e)}}),[a,l,r,e]);const{getLastFocus:u}=G((0,g.useSelect)(ji));(0,h.useEffect)((()=>{const t=e.current;if(s){const e=e=>{const t=u();e.keyCode===Wa.ESCAPE&&t?.current&&(e.preventDefault(),t.current.focus())};return t.addEventListener("keydown",e),()=>{t.removeEventListener("keydown",e)}}}),[s,u,e])}function ET({children:e,focusOnMount:t,focusEditorOnEscape:n=!1,shouldUseKeyboardFocusShortcut:o=!0,__experimentalInitialIndex:r,__experimentalOnIndexChange:i,orientation:s="horizontal",...l}){const a=(0,h.useRef)(),c=function(e){const[t,n]=(0,h.useState)(!0),o=(0,h.useCallback)((()=>{const t=!Ga.focus.tabbable.find(e.current).some((e=>!("toolbarItem"in e.dataset)));t||I()("Using custom components as toolbar controls",{since:"5.6",alternative:"ToolbarItem, ToolbarButton or ToolbarDropdownMenu components",link:"https://developer.wordpress.org/block-editor/components/toolbar-button/#inside-blockcontrols"}),n(t)}),[e]);return(0,h.useLayoutEffect)((()=>{const t=new window.MutationObserver(o);return t.observe(e.current,{childList:!0,subtree:!0}),()=>t.disconnect()}),[o,t,e]),t}(a);return jT({toolbarRef:a,focusOnMount:t,defaultIndex:r,onIndexChange:i,isAccessibleToolbar:c,shouldUseKeyboardFocusShortcut:o,focusEditorOnEscape:n}),c?(0,d.jsx)(ws.Toolbar,{label:l["aria-label"],ref:a,orientation:s,...l,children:e}):(0,d.jsx)(ws.NavigableMenu,{orientation:s,role:"toolbar",ref:a,...l,children:e})}function TT(){const e=(0,g.useSelect)((e=>{const{getBlockEditingMode:t,getBlockName:n,getBlockSelectionStart:o}=e(ji),r=o(),i=r&&(0,p.getBlockType)(n(r));return i&&(0,p.hasBlockSupport)(i,"__experimentalToolbar",!0)&&"disabled"!==t(r)}),[]);return e}const MT=[],PT=6,RT={placement:"bottom-start"};function AT({clientId:e}){const{categories:t,currentPatternName:n,patterns:o}=(0,g.useSelect)((t=>{const{getBlockAttributes:n,getBlockRootClientId:o,__experimentalGetAllowedPatterns:r}=t(ji),i=n(e),s=i?.metadata?.categories||MT,l=o(e),a=s.length>0?r(l):MT;return{categories:s,currentPatternName:i?.metadata?.patternName,patterns:a}}),[e]),{replaceBlocks:r}=(0,g.useDispatch)(ji),i=(0,h.useMemo)((()=>0!==t.length&&o&&0!==o.length?o.filter((e=>{const o="core"===e.source||e.source?.startsWith("pattern-directory")&&"pattern-directory/theme"!==e.source;return 1===e.blocks.length&&!o&&n!==e.name&&e.categories?.some((e=>t.includes(e)))&&("unsynced"===e.syncStatus||!e.id)})).slice(0,PT):MT),[t,n,o]);if(i.length<2)return null;const s=n=>{const o=(n.blocks??[]).map((e=>(0,p.cloneBlock)(e)));o[0].attributes.metadata={...o[0].attributes.metadata,categories:t},r(e,o)};return(0,d.jsx)(ws.Dropdown,{popoverProps:RT,renderToggle:({onToggle:e,isOpen:t})=>(0,d.jsx)(ws.ToolbarGroup,{children:(0,d.jsx)(ws.ToolbarButton,{onClick:()=>e(!t),"aria-expanded":t,children:(0,T.__)("Change design")})}),renderContent:()=>(0,d.jsx)(ws.__experimentalDropdownContentWrapper,{className:"block-editor-block-toolbar-change-design-content-wrapper",paddingSize:"none",children:(0,d.jsx)($C,{blockPatterns:i,onClickPattern:s,showTitlesAsTooltip:!0})})})}const NT=(0,d.jsxs)(ws.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true",focusable:"false",children:[(0,d.jsx)(ws.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-3z"}),(0,d.jsx)(ws.Path,{stroke:"currentColor",strokeWidth:"1.5",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-3z"})]});var LT=function({clientId:e}){const{stylesToRender:t,activeStyle:n,className:o}=iE({clientId:e}),{updateBlockAttributes:r}=(0,g.useDispatch)(ji),{merged:i}=(0,h.useContext)(is),{globalSettings:s,globalStyles:l,blockName:a}=(0,g.useSelect)((t=>{const n=t(ji).getSettings();return{globalSettings:n.__experimentalFeatures,globalStyles:n[N],blockName:t(ji).getBlockName(e)}}),[e]),c=n?.name?Tb({settings:i?.settings??s,styles:i?.styles??l},a,n.name)?.color?.background:void 0;return t&&0!==t.length?(0,d.jsx)(ws.ToolbarGroup,{children:(0,d.jsx)(ws.ToolbarButton,{onClick:()=>{const i=(t.findIndex((e=>e.name===n.name))+1)%t.length,s=t[i],l=oE(o,n,s);r(e,{className:l})},label:(0,T.__)("Shuffle styles"),children:(0,d.jsx)(ws.Icon,{icon:NT,style:{fill:c||"transparent"}})})}):null};function DT({hideDragHandle:e,focusOnMount:t,__experimentalInitialIndex:n,__experimentalOnIndexChange:o,variant:r="unstyled"}){const{blockClientId:i,blockClientIds:s,isDefaultEditingMode:l,blockType:a,toolbarKey:c,shouldShowVisualToolbar:u,showParentSelector:f,isUsingBindings:b,hasParentPattern:k,hasContentOnlyLocking:v,showShuffleButton:_,showSlots:y,showGroupButtons:x,showLockButtons:S,showBlockVisibilityButton:w,showSwitchSectionStyleButton:C}=(0,g.useSelect)((e=>{const{getBlockName:t,getBlockMode:n,getBlockParents:o,getSelectedBlockClientIds:r,isBlockValid:i,getBlockEditingMode:s,getBlockAttributes:l,getBlockParentsByBlockName:a,getTemplateLock:c,getParentSectionBlock:u,isZoomOut:d,isSectionBlock:h}=G(e(ji)),g=r(),m=g[0],f=o(m),b=u(m)??f[f.length-1],k=t(b),v=(0,p.getBlockType)(k),_=s(m),y="default"===_,x=t(m),S=g.every((e=>i(e))),w=g.every((e=>"visual"===n(e))),C=g.every((e=>!!l(e)?.metadata?.bindings)),B=g.every((e=>a(e,"core/block",!0).length>0)),I=g.some((e=>"contentOnly"===c(e))),j=d(),E=window?.__experimentalContentOnlyPatternInsertion&&(j||h(m));return{blockClientId:m,blockClientIds:g,isDefaultEditingMode:y,blockType:m&&(0,p.getBlockType)(x),shouldShowVisualToolbar:S&&w,toolbarKey:`${m}${b}`,showParentSelector:!j&&v&&"contentOnly"!==_&&"disabled"!==s(b)&&(0,p.hasBlockSupport)(v,"__experimentalParentSelector",!0)&&1===g.length,isUsingBindings:C,hasParentPattern:B,hasContentOnlyLocking:I,showShuffleButton:j,showSlots:!j,showGroupButtons:!j,showLockButtons:!j,showBlockVisibilityButton:!j,showSwitchSectionStyleButton:E}}),[]),B=(0,h.useRef)(null),I=(0,h.useRef)(),j=Kj({ref:I}),E=!(0,m.useViewportMatch)("medium","<");if(!TT())return null;const M=s.length>1,P=(0,p.isReusableBlock)(a)||(0,p.isTemplatePart)(a),R=ms("block-editor-block-contextual-toolbar",{"has-parent":f}),A=ms("block-editor-block-toolbar",{"is-synced":P,"is-connected":b});return(0,d.jsx)(ET,{focusEditorOnEscape:!0,className:R,"aria-label":(0,T.__)("Block tools"),variant:"toolbar"===r?void 0:r,focusOnMount:t,__experimentalInitialIndex:n,__experimentalOnIndexChange:o,children:(0,d.jsxs)("div",{ref:B,className:A,children:[f&&!M&&E&&(0,d.jsx)(Zj,{}),(u||M)&&!k&&(0,d.jsx)("div",{ref:I,...j,children:(0,d.jsxs)(ws.ToolbarGroup,{className:"block-editor-block-toolbar__block-controls",children:[(0,d.jsx)(bE,{clientIds:s}),l&&w&&(0,d.jsx)(fT,{clientIds:s}),!M&&l&&S&&(0,d.jsx)(mT,{clientId:i}),(0,d.jsx)(Hj,{clientIds:s,hideDragHandle:e})]})}),!v&&u&&M&&x&&(0,d.jsx)(xT,{}),_&&(0,d.jsx)(AT,{clientId:s[0]}),C&&(0,d.jsx)(LT,{clientId:s[0]}),u&&y&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(Rs.Slot,{group:"parent",className:"block-editor-block-toolbar__slot"}),(0,d.jsx)(Rs.Slot,{group:"block",className:"block-editor-block-toolbar__slot"}),(0,d.jsx)(Rs.Slot,{className:"block-editor-block-toolbar__slot"}),(0,d.jsx)(Rs.Slot,{group:"inline",className:"block-editor-block-toolbar__slot"}),(0,d.jsx)(Rs.Slot,{group:"other",className:"block-editor-block-toolbar__slot"}),(0,d.jsx)(CT.Provider,{value:a?.name,children:(0,d.jsx)(_E.Slot,{})})]}),(0,d.jsx)(ST,{clientIds:s}),(0,d.jsx)(gT,{clientIds:s})]})},c)}function OT({hideDragHandle:e,variant:t}){return(0,d.jsx)(DT,{hideDragHandle:e,variant:t,focusOnMount:void 0,__experimentalInitialIndex:void 0,__experimentalOnIndexChange:void 0})}function zT({clientId:e,isTyping:t,__unstableContentRef:n}){const{capturingClientId:o,isInsertionPointVisible:r,lastClientId:i}=Pj(e),s=(0,h.useRef)();(0,h.useEffect)((()=>{s.current=void 0}),[e]);const{stopTyping:l}=(0,g.useDispatch)(ji),a=(0,h.useRef)(!1);(0,Yk.useShortcut)("core/block-editor/focus-toolbar",(()=>{a.current=!0,l(!0)})),(0,h.useEffect)((()=>{a.current=!1}));const c=o||e,u=Mj({contentElement:n?.current,clientId:c});return!t&&(0,d.jsx)(ef,{clientId:c,bottomClientId:i,className:ms("block-editor-block-list__block-popover",{"is-insertion-point-visible":r}),resize:!1,...u,__unstableContentRef:n,children:(0,d.jsx)(DT,{focusOnMount:a.current,__experimentalInitialIndex:s.current,__experimentalOnIndexChange:e=>{s.current=e},variant:"toolbar"})})}var VT=function({onClick:e}){return(0,d.jsx)(ws.Button,{variant:"primary",icon:cc,size:"compact",className:ms("block-editor-button-pattern-inserter__button","block-editor-block-tools__zoom-out-mode-inserter-button"),onClick:e,label:(0,T._x)("Add pattern","Generic label for pattern inserter button")})};var FT=function(){const[e,t]=(0,h.useState)(!1),{hasSelection:n,blockOrder:o,setInserterIsOpened:r,sectionRootClientId:i,selectedBlockClientId:s,blockInsertionPoint:l,insertionPointVisible:a}=(0,g.useSelect)((e=>{const{getSettings:t,getBlockOrder:n,getSelectionStart:o,getSelectedBlockClientId:r,getSectionRootClientId:i,getBlockInsertionPoint:s,isBlockInsertionPointVisible:l}=G(e(ji)),a=i();return{hasSelection:!!o().clientId,blockOrder:n(a),sectionRootClientId:a,setInserterIsOpened:t().__experimentalSetIsInserterOpened,selectedBlockClientId:r(),blockInsertionPoint:s(),insertionPointVisible:l()}}),[]),{showInsertionPoint:c}=G((0,g.useDispatch)(ji));if((0,h.useEffect)((()=>{const e=setTimeout((()=>{t(!0)}),500);return()=>{clearTimeout(e)}}),[]),!e||!n)return null;const u=s,p=o.findIndex((e=>s===e))+1,m=o[p];return a&&l?.index===p?null:(0,d.jsx)(CS,{previousClientId:u,nextClientId:m,children:(0,d.jsx)(VT,{onClick:()=>{r({rootClientId:i,insertionIndex:p,tab:"patterns",category:"all"}),c(i,p,{operation:"insert"})}})})};function HT(e){const{getSelectedBlockClientId:t,getFirstMultiSelectedBlockClientId:n,getSettings:o,isTyping:r,isDragging:i,isZoomOut:s}=G(e(ji));return{clientId:t()||n(),hasFixedToolbar:o().hasFixedToolbar,isTyping:r(),isZoomOutMode:s(),isDragging:i()}}function UT({children:e,__unstableContentRef:t,...n}){const{clientId:o,hasFixedToolbar:r,isTyping:i,isZoomOutMode:s,isDragging:l}=(0,g.useSelect)(HT,[]),a=(0,Yk.__unstableUseShortcutEventMatch)(),{getBlocksByClientId:c,getSelectedBlockClientIds:u,getBlockRootClientId:m,isGroupable:f,getBlockName:b}=(0,g.useSelect)(ji),{getGroupingBlockName:k}=(0,g.useSelect)(p.store),{showEmptyBlockSideInserter:v,showBlockToolbarPopover:_}=(0,g.useSelect)((e=>{const{getSelectedBlockClientId:t,getFirstMultiSelectedBlockClientId:n,getBlock:o,getBlockMode:r,getSettings:i,isTyping:s,isBlockInterfaceHidden:l}=G(e(ji)),a=t()||n(),c=o(a),u=!!a&&!!c,d=u&&(0,p.isUnmodifiedDefaultBlock)(c,"content")&&"html"!==r(a),h=a&&!s()&&d;return{showEmptyBlockSideInserter:h,showBlockToolbarPopover:!l()&&!i().hasFixedToolbar&&!h&&u&&!d}}),[]),y=RE(),{duplicateBlocks:x,removeBlocks:S,replaceBlocks:w,insertAfterBlock:C,insertBeforeBlock:B,selectBlock:I,moveBlocksUp:j,moveBlocksDown:E,expandBlock:M,updateBlockAttributes:P}=G((0,g.useDispatch)(ji));const R=Fm(t),A=Fm(t);return(0,d.jsx)("div",{...n,onKeyDown:function(e){if(!e.defaultPrevented)if(a("core/block-editor/move-up",e)||a("core/block-editor/move-down",e)){const t=u();if(t.length){e.preventDefault();const n=m(t[0]);"up"===(a("core/block-editor/move-up",e)?"up":"down")?j(t,n):E(t,n);const o=Array.isArray(t)?t.length:1,r=(0,T.sprintf)((0,T._n)("%d block moved.","%d blocks moved.",t.length),o);(0,Uo.speak)(r)}}else if(a("core/block-editor/duplicate",e)){const t=u();t.length&&(e.preventDefault(),x(t))}else if(a("core/block-editor/remove",e)){const t=u();t.length&&(e.preventDefault(),S(t))}else if(a("core/block-editor/paste-styles",e)){const t=u();if(t.length){e.preventDefault();const n=c(t);y(n)}}else if(a("core/block-editor/insert-after",e)){const t=u();t.length&&(e.preventDefault(),C(t[t.length-1]))}else if(a("core/block-editor/insert-before",e)){const t=u();t.length&&(e.preventDefault(),B(t[0]))}else if(a("core/block-editor/unselect",e)){if(e.target.closest("[role=toolbar]"))return;const t=u();t.length>1&&(e.preventDefault(),I(t[0]))}else if(a("core/block-editor/collapse-list-view",e)){if((0,Ga.isTextField)(e.target)||(0,Ga.isTextField)(e.target?.contentWindow?.document?.activeElement))return;e.preventDefault(),M(o)}else if(a("core/block-editor/group",e)){const t=u();if(t.length>1&&f(t)){e.preventDefault();const n=c(t),o=k(),r=(0,p.switchToBlockType)(n,o);w(t,r),(0,Uo.speak)((0,T.__)("Selected blocks are grouped."))}}else if(a("core/block-editor/toggle-block-visibility",e)){const t=u();if(t.length){e.preventDefault();const n=c(t);if(!n.every((e=>(0,p.hasBlockSupport)(b(e.clientId),"blockVisibility",!0))))return;const o=n.some((e=>!1===e.attributes.metadata?.blockVisibility)),r=Object.fromEntries(n.map((({clientId:e,attributes:t})=>[e,{metadata:fs({...t?.metadata,blockVisibility:!!o&&void 0})}])));P(t,r,{uniqueByBlock:!0})}}},children:(0,d.jsxs)(jS.Provider,{value:(0,h.useRef)(!1),children:[!i&&!s&&(0,d.jsx)(TS,{__unstableContentRef:t}),v&&(0,d.jsx)(Rj,{__unstableContentRef:t,clientId:o}),_&&(0,d.jsx)(zT,{__unstableContentRef:t,clientId:o,isTyping:i}),!s&&!r&&(0,d.jsx)(ws.Popover.Slot,{name:"block-toolbar",ref:R}),e,(0,d.jsx)(ws.Popover.Slot,{name:"__unstable-block-tools-after",ref:A}),s&&!l&&(0,d.jsx)(FT,{__unstableContentRef:t})]})})}const GT=window.wp.commands;var $T=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.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"})}),WT=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12 5.5A2.25 2.25 0 0 0 9.878 7h4.244A2.251 2.251 0 0 0 12 5.5ZM12 4a3.751 3.751 0 0 0-3.675 3H5v1.5h1.27l.818 8.997a2.75 2.75 0 0 0 2.739 2.501h4.347a2.75 2.75 0 0 0 2.738-2.5L17.73 8.5H19V7h-3.325A3.751 3.751 0 0 0 12 4Zm4.224 4.5H7.776l.806 8.861a1.25 1.25 0 0 0 1.245 1.137h4.347a1.25 1.25 0 0 0 1.245-1.137l.805-8.861Z"})});const KT=()=>function(){const{replaceBlocks:e,multiSelect:t}=(0,g.useDispatch)(ji),{blocks:n,clientIds:o,canRemove:r,possibleBlockTransformations:i,invalidSelection:s}=(0,g.useSelect)((e=>{const{getBlockRootClientId:t,getBlockTransformItems:n,getSelectedBlockClientIds:o,getBlocksByClientId:r,canRemoveBlocks:i}=e(ji),s=o(),l=r(s);if(l.filter((e=>!e)).length>0)return{invalidSelection:!0};return{blocks:l,clientIds:s,possibleBlockTransformations:n(l,t(s[0])),canRemove:i(s),invalidSelection:!1}}),[]);if(s)return{isLoading:!1,commands:[]};const l=1===n.length&&(0,p.isTemplatePart)(n[0]);function a(r){const i=(0,p.switchToBlockType)(n,r);var s;e(o,i),(s=i).length>1&&t(s[0].clientId,s[s.length-1].clientId)}const c=!!i.length&&r&&!l;if(!o||o.length<1||!c)return{isLoading:!1,commands:[]};return{isLoading:!1,commands:i.map((e=>{const{name:t,title:n,icon:o}=e;return{name:"core/block-editor/transform-to-"+t.replace("/","-"),label:(0,T.sprintf)((0,T.__)("Transform to %s"),n),icon:(0,d.jsx)(Vu,{icon:o}),callback:({close:e})=>{a(t),e()}}}))}},ZT=()=>{(0,GT.useCommandLoader)({name:"core/block-editor/blockTransforms",hook:KT()}),(0,GT.useCommandLoader)({name:"core/block-editor/blockQuickActions",hook:function(){const{clientIds:e,isUngroupable:t,isGroupable:n}=(0,g.useSelect)((e=>{const{getSelectedBlockClientIds:t,isUngroupable:n,isGroupable:o}=e(ji);return{clientIds:t(),isUngroupable:n(),isGroupable:o()}}),[]),{canInsertBlockType:o,getBlockRootClientId:r,getBlocksByClientId:i,canRemoveBlocks:s,getBlockName:l}=(0,g.useSelect)(ji),{getDefaultBlockName:a,getGroupingBlockName:c}=(0,g.useSelect)(p.store),u=i(e),{removeBlocks:d,replaceBlocks:h,duplicateBlocks:m,insertAfterBlock:f,insertBeforeBlock:b,updateBlockAttributes:k}=(0,g.useDispatch)(ji),v=()=>{if(!u.length)return;const t=c(),n=(0,p.switchToBlockType)(u,t);n&&h(e,n)},_=()=>{if(!u.length)return;const t=u[0].innerBlocks;t.length&&h(e,t)};if(!e||e.length<1)return{isLoading:!1,commands:[]};const y=r(e[0]),x=o(a(),y),S=u.every((e=>!!e&&(0,p.hasBlockSupport)(e.name,"multiple",!0)&&o(e.name,y))),w=s(e),C=u.every((({clientId:e})=>(0,p.hasBlockSupport)(l(e),"blockVisibility",!0))),B=[];if(S&&B.push({name:"duplicate",label:(0,T.__)("Duplicate"),callback:()=>m(e,!0),icon:qj}),x&&B.push({name:"add-before",label:(0,T.__)("Add before"),callback:()=>{const t=Array.isArray(e)?e[0]:t;b(t)},icon:cc},{name:"add-after",label:(0,T.__)("Add after"),callback:()=>{const t=Array.isArray(e)?e[e.length-1]:t;f(t)},icon:cc}),n&&B.push({name:"Group",label:(0,T.__)("Group"),callback:v,icon:bT}),t&&B.push({name:"ungroup",label:(0,T.__)("Ungroup"),callback:_,icon:$T}),w&&B.push({name:"remove",label:(0,T.__)("Delete"),callback:()=>d(e,!0),icon:WT}),C){const t=u.some((e=>!1===e.attributes.metadata?.blockVisibility));B.push({name:"core/toggle-block-visibility",label:t?(0,T.__)("Show"):(0,T.__)("Hide"),callback:()=>{const n=Object.fromEntries(u?.map((({clientId:e,attributes:n})=>[e,{metadata:fs({...n?.metadata,blockVisibility:!!t&&void 0})}])));k(e,n,{uniqueByBlock:!0})},icon:t?tT:nT})}return{isLoading:!1,commands:B.map((e=>({...e,name:"core/block-editor/action-"+e.name,callback:({close:t})=>{e.callback(),t()}})))}},context:"block-selection-edit"})},qT={ignoredSelectors:[/\.editor-styles-wrapper/gi]};function YT({shouldIframe:e=!0,height:t="300px",children:n=(0,d.jsx)(dw,{}),styles:o,contentRef:r,iframeProps:i}){ZT();const s=(0,m.useViewportMatch)("medium","<"),l=nw(),a=PS(),c=(0,h.useRef)(),u=(0,m.useMergeRefs)([r,a,c]),p=(0,g.useSelect)((e=>G(e(ji)).getZoomLevel()),[]),f=100===p||s?{}:{scale:p,frameSize:"40px"};return e?(0,d.jsx)(UT,{__unstableContentRef:c,style:{height:t,display:"flex"},children:(0,d.jsxs)(Fw,{...i,...f,ref:l,contentRef:u,style:{...i?.style},name:"editor-canvas",children:[(0,d.jsx)(cC,{styles:o}),n]})}):(0,d.jsxs)(UT,{__unstableContentRef:c,style:{height:t,display:"flex"},children:[(0,d.jsx)(cC,{styles:o,scope:":where(.editor-styles-wrapper)",transformOptions:qT}),(0,d.jsx)(Aw,{ref:u,className:"editor-styles-wrapper",tabIndex:-1,style:{height:"100%",width:"100%"},children:n})]})}var XT=function({children:e,height:t,styles:n}){return(0,d.jsx)(YT,{height:t,styles:n,children:e})};const QT=()=>(0,d.jsx)(ws.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:(0,d.jsx)(ws.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"})}),JT=({style:e,className:t})=>(0,d.jsx)("div",{className:"block-library-colors-selector__icon-container",children:(0,d.jsx)("div",{className:`${t} block-library-colors-selector__state-selection`,style:e,children:(0,d.jsx)(QT,{})})}),eM=({TextColor:e,BackgroundColor:t})=>({onToggle:n,isOpen:o})=>(0,d.jsx)(ws.ToolbarGroup,{children:(0,d.jsx)(ws.ToolbarButton,{className:"components-toolbar__control block-library-colors-selector__toggle",label:(0,T.__)("Open Colors Selector"),onClick:n,onKeyDown:e=>{o||e.keyCode!==Wa.DOWN||(e.preventDefault(),n())},icon:(0,d.jsx)(t,{children:(0,d.jsx)(e,{children:(0,d.jsx)(JT,{})})})})});var tM=({children:e,...t})=>(I()("wp.blockEditor.BlockColorsStyleSelector",{alternative:"block supports API",since:"6.1",version:"6.3"}),(0,d.jsx)(ws.Dropdown,{popoverProps:{placement:"bottom-start"},className:"block-library-colors-selector",contentClassName:"block-library-colors-selector__popover",renderToggle:eM(t),renderContent:()=>e})),nM=(0,d.jsx)(ue.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,d.jsx)(ue.Path,{d:"M3 6h11v1.5H3V6Zm3.5 5.5h11V13h-11v-1.5ZM21 17H10v1.5h11V17Z"})});const oM=(0,h.createContext)({});oM.displayName="ListViewContext";const rM=()=>(0,h.useContext)(oM);function iM({children:e,...t}){const n=(0,h.useRef)();return(0,h.useEffect)((()=>{n.current&&(n.current.textContent=n.current.textContent)}),[e]),(0,d.jsx)("div",{hidden:!0,...t,ref:n,children:e})}const sM=(0,h.forwardRef)((({nestingLevel:e,blockCount:t,clientId:n,...o},r)=>{const{insertedBlock:i,setInsertedBlock:s}=rM(),l=(0,m.useInstanceId)(sM),{directInsert:a,hideInserter:c}=(0,g.useSelect)((e=>{const{getBlockListSettings:t,getTemplateLock:o,isZoomOut:r}=G(e(ji)),i=t(n);return{directInsert:i?.directInsert||!1,hideInserter:!!o(n)||r()}}),[n]),u=Sj({clientId:n,context:"list-view"}),p=Sj({clientId:i?.clientId,context:"list-view"});if((0,h.useEffect)((()=>{p?.length&&(0,Uo.speak)((0,T.sprintf)((0,T.__)("%s block inserted"),p),"assertive")}),[p]),c)return null;const f=`list-view-appender__${l}`,b=(0,T.sprintf)((0,T.__)("Append to %1$s block at position %2$d, Level %3$d"),u,t+1,e);return(0,d.jsxs)("div",{className:"list-view-appender",children:[(0,d.jsx)(lI,{ref:r,rootClientId:n,position:"bottom right",isAppender:!0,selectBlockOnInsert:!1,shouldDirectInsert:a,__experimentalIsQuick:!0,...o,toggleProps:{"aria-describedby":f},onSelectOrClose:e=>{e?.clientId&&s(e)}}),(0,d.jsx)(iM,{id:f,children:b})]})})),lM=Jx(ws.__experimentalTreeGridRow),aM=(0,h.forwardRef)((({isDragged:e,isSelected:t,position:n,level:o,rowCount:r,children:i,className:s,path:l,...a},c)=>{const u=tS({clientId:a["data-block"],enableAnimation:!0,triggerAnimationOnChange:l}),p=(0,m.useMergeRefs)([c,u]);return(0,d.jsx)(lM,{ref:p,className:ms("block-editor-list-view-leaf",s),level:o,positionInSet:n,setSize:r,isExpanded:void 0,...a,children:i})}));var cM=aM;var uM=(0,d.jsx)(ue.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,d.jsx)(ue.Path,{d:"M10.97 10.159a3.382 3.382 0 0 0-2.857.955l1.724 1.723-2.836 2.913L7 17h1.25l2.913-2.837 1.723 1.723a3.38 3.38 0 0 0 .606-.825c.33-.63.446-1.343.35-2.032L17 10.695 13.305 7l-2.334 3.159Z"})}),dM=(0,d.jsx)(ue.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,d.jsx)(ue.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M15 11h-.2V9c0-1.5-1.2-2.8-2.8-2.8S9.2 7.5 9.2 9v2H9c-.6 0-1 .4-1 1v4c0 .6.4 1 1 1h6c.6 0 1-.4 1-1v-4c0-.6-.4-1-1-1zm-1.8 0h-2.5V9c0-.7.6-1.2 1.2-1.2s1.2.6 1.2 1.2v2z"})});function pM({onClick:e}){return(0,d.jsx)("span",{className:"block-editor-list-view__expander",onClick:t=>e(t,{forceToggle:!0}),"aria-hidden":"true","data-testid":"list-view-expander",children:(0,d.jsx)(Ol,{icon:(0,T.isRTL)()?nc:oc})})}const hM={"core/image":({clientId:e,attributes:t})=>{if(t.url)return{url:t.url,alt:t.alt||"",clientId:e}},"core/cover":({clientId:e,attributes:t})=>{if("image"===t.backgroundType&&t.url)return{url:t.url,alt:t.alt||"",clientId:e}},"core/media-text":({clientId:e,attributes:t})=>{if("image"===t.mediaType&&t.mediaUrl)return{url:t.mediaUrl,alt:t.mediaAlt||"",clientId:e}},"core/gallery":({innerBlocks:e})=>{const t=[],n=e?.length?hM[e[0].name]:void 0;if(!n)return t;for(const o of e){const e=n(o);if(e&&t.push(e),t.length>=3)return t}return t}};function gM({clientId:e,isExpanded:t}){const{block:n}=(0,g.useSelect)((t=>({block:t(ji).getBlock(e)})),[e]);return(0,h.useMemo)((()=>function(e,t){const n=hM[e.name],o=n?n(e):void 0;return o?Array.isArray(o)?t?[]:o:[o]:[]}(n,t)),[n,t])}const{Badge:mM}=G(ws.privateApis);var fM=(0,h.forwardRef)((function({className:e,block:{clientId:t},onClick:n,onContextMenu:o,onMouseDown:r,onToggleExpanded:i,tabIndex:s,onFocus:l,onDragStart:a,onDragEnd:c,draggable:u,isExpanded:h,ariaDescribedBy:m},f){const b=Xf(t),k=Sj({clientId:t,context:"list-view"}),{isLocked:v}=HE(t),{canToggleBlockVisibility:_,isBlockHidden:y,isContentOnly:x}=(0,g.useSelect)((e=>{const{getBlockName:n}=e(ji),{isBlockHidden:o}=G(e(ji));return{canToggleBlockVisibility:(0,p.hasBlockSupport)(n(t),"blockVisibility",!0),isBlockHidden:o(t),isContentOnly:"contentOnly"===e(ji).getBlockEditingMode(t)}}),[t]),S=v&&!x,w=_&&y,C="sticky"===b?.positionType,B=gM({clientId:t,isExpanded:h});return(0,d.jsxs)("a",{className:ms("block-editor-list-view-block-select-button",e),onClick:n,onContextMenu:o,onKeyDown:function(e){e.keyCode!==Wa.ENTER&&e.keyCode!==Wa.SPACE||n(e)},onMouseDown:r,ref:f,tabIndex:s,onFocus:l,onDragStart:e=>{e.dataTransfer.clearData(),a?.(e)},onDragEnd:c,draggable:u,href:`#block-${t}`,"aria-describedby":m,"aria-expanded":h,children:[(0,d.jsx)(pM,{onClick:i}),(0,d.jsx)(Vu,{icon:b?.icon,showColors:!0,context:"list-view"}),(0,d.jsxs)(ws.__experimentalHStack,{alignment:"center",className:"block-editor-list-view-block-select-button__label-wrapper",justify:"flex-start",spacing:1,children:[(0,d.jsx)("span",{className:"block-editor-list-view-block-select-button__title",children:(0,d.jsx)(ws.__experimentalTruncate,{ellipsizeMode:"auto",children:k})}),b?.anchor&&(0,d.jsx)("span",{className:"block-editor-list-view-block-select-button__anchor-wrapper",children:(0,d.jsx)(mM,{className:"block-editor-list-view-block-select-button__anchor",children:b.anchor})}),C&&(0,d.jsx)("span",{className:"block-editor-list-view-block-select-button__sticky",children:(0,d.jsx)(Ol,{icon:uM})}),B.length?(0,d.jsx)("span",{className:"block-editor-list-view-block-select-button__images","aria-hidden":!0,children:B.map(((e,t)=>(0,d.jsx)("span",{className:"block-editor-list-view-block-select-button__image",style:{backgroundImage:`url(${e.url})`,zIndex:B.length-t}},e.clientId)))}):null,w&&(0,d.jsx)("span",{className:"block-editor-list-view-block-select-button__block-visibility",children:(0,d.jsx)(Ol,{icon:nT})}),S&&(0,d.jsx)("span",{className:"block-editor-list-view-block-select-button__lock",children:(0,d.jsx)(Ol,{icon:dM})})]})]})}));const bM=(0,h.forwardRef)((({onClick:e,onToggleExpanded:t,block:n,isSelected:o,position:r,siblingBlockCount:i,level:s,isExpanded:l,selectedClientIds:a,...c},u)=>{const{clientId:p}=n,{AdditionalBlockContent:h,insertedBlock:g,setInsertedBlock:m}=rM(),f=a.includes(p)?a:[p];return(0,d.jsxs)(d.Fragment,{children:[h&&(0,d.jsx)(h,{block:n,insertedBlock:g,setInsertedBlock:m}),(0,d.jsx)(Aj,{appendToOwnerDocument:!0,clientIds:f,cloneClassname:"block-editor-list-view-draggable-chip",children:({draggable:a,onDragStart:p,onDragEnd:h})=>(0,d.jsx)(fM,{ref:u,className:"block-editor-list-view-block-contents",block:n,onClick:e,onToggleExpanded:t,isSelected:o,position:r,siblingBlockCount:i,level:s,draggable:a,onDragStart:p,onDragEnd:h,isExpanded:l,...c})})]})}));var kM=bM;function vM(e,t){const n=()=>{const n=t?.querySelector(`[role=row][data-block="${e}"]`);return n?Ga.focus.focusable.find(n)[0]:null};let o=n();o?o.focus():window.requestAnimationFrame((()=>{o=n(),o&&o.focus()}))}var _M=(0,h.memo)((function e({block:{clientId:t},displacement:n,isAfterDraggedBlocks:o,isDragged:r,isNesting:i,isSelected:s,isBranchSelected:l,selectBlock:a,position:c,level:u,rowCount:f,siblingBlockCount:b,showBlockMovers:k,path:v,isExpanded:_,selectedClientIds:y,isSyncedBranch:x}){const S=(0,h.useRef)(null),w=(0,h.useRef)(null),C=(0,h.useRef)(null),[B,I]=(0,h.useState)(!1),[j,E]=(0,h.useState)(),{isLocked:M,canEdit:P,canMove:R}=HE(t),A=s&&y[0]===t,N=s&&y[y.length-1]===t,{toggleBlockHighlight:L,duplicateBlocks:D,multiSelect:O,replaceBlocks:z,removeBlocks:V,insertAfterBlock:F,insertBeforeBlock:H,setOpenedBlockSettingsMenu:U,updateBlockAttributes:$}=G((0,g.useDispatch)(ji)),W=(0,m.useDebounce)(L,50),{canInsertBlockType:K,getSelectedBlockClientIds:Z,getPreviousBlockClientId:q,getBlockRootClientId:Y,getBlockOrder:X,getBlockParents:Q,getBlocksByClientId:J,canRemoveBlocks:ee,isGroupable:te}=(0,g.useSelect)(ji),{getGroupingBlockName:ne}=(0,g.useSelect)(p.store),oe=Xf(t),re=RE(),{block:ie,blockName:se,allowRightClickOverrides:le,isBlockHidden:ae}=(0,g.useSelect)((e=>{const{getBlock:n,getBlockName:o,getSettings:r}=e(ji),{isBlockHidden:i}=G(e(ji));return{block:n(t),blockName:o(t),allowRightClickOverrides:r().allowRightClickOverrides,isBlockHidden:i(t)}}),[t]),ce=(0,p.hasBlockSupport)(se,"__experimentalToolbar",!0),ue=`list-view-block-select-button__description-${(0,m.useInstanceId)(e)}`,{expand:de,collapse:pe,collapseAll:he,BlockSettingsMenu:ge,listViewInstanceId:me,expandedState:fe,setInsertedBlock:be,treeGridElementRef:ke,rootClientId:ve}=rM(),_e=(0,Yk.__unstableUseShortcutEventMatch)();function ye(){const e=Z(),n=e.includes(t),o=n?e[0]:t,r=Y(o);return{blocksToUpdate:n?e:[t],firstBlockClientId:o,firstBlockRootClientId:r,selectedBlockClientIds:e}}const xe=(0,h.useCallback)((()=>{I(!0),W(t,!0)}),[t,I,W]),Se=(0,h.useCallback)((()=>{I(!1),W(t,!1)}),[t,I,W]),we=(0,h.useCallback)((e=>{a(e,t),e.preventDefault()}),[t,a]),Ce=(0,h.useCallback)(((e,t)=>{t&&a(void 0,e,null,null),vM(e,ke?.current)}),[a,ke]),Be=(0,h.useCallback)((e=>{e.preventDefault(),e.stopPropagation(),!0===_?pe(t):!1===_&&de(t)}),[t,de,pe,_]),Ie=(0,h.useCallback)((e=>{ce&&le&&(C.current?.click(),E(new window.DOMRect(e.clientX,e.clientY,0,0)),e.preventDefault())}),[le,C,ce]),je=(0,h.useCallback)((e=>{le&&2===e.button&&e.preventDefault()}),[le]),Ee=(0,h.useMemo)((()=>{const{ownerDocument:e}=w?.current||{};if(j&&e)return{ownerDocument:e,getBoundingClientRect:()=>j}}),[j]),Te=(0,h.useCallback)((()=>{E(void 0)}),[E]);if(function({isSelected:e,selectedClientIds:t,rowItemRef:n}){const o=1===t.length;(0,h.useLayoutEffect)((()=>{if(!e||!o||!n.current)return;const t=(0,Ga.getScrollContainer)(n.current),{ownerDocument:r}=n.current;if(t===r.body||t===r.documentElement||!t)return;const i=n.current.getBoundingClientRect(),s=t.getBoundingClientRect();(i.top<s.top||i.bottom>s.bottom)&&n.current.scrollIntoView()}),[e,o,n])}({isSelected:s,rowItemRef:w,selectedClientIds:y}),!ie)return null;const Me=((e,t,n)=>(0,T.sprintf)((0,T.__)("Block %1$d of %2$d, Level %3$d."),e,t,n))(c,b,u),Pe=((e,t)=>[e?.positionLabel?`${(0,T.sprintf)((0,T.__)("Position: %s"),e.positionLabel)}.`:void 0,t?(0,T.__)("This block is locked."):void 0].filter(Boolean).join(" "))(oe,M),Re=ae?(0,T.__)("Block is hidden."):null,Ae=k&&b>0,Ne=ms("block-editor-list-view-block__mover-cell",{"is-visible":B||s}),Le=ms("block-editor-list-view-block__menu-cell",{"is-visible":B||A});let De;Ae?De=2:ce||(De=3);const Oe=ms({"is-selected":s,"is-first-selected":A,"is-last-selected":N,"is-branch-selected":l,"is-synced-branch":x,"is-dragging":r,"has-single-cell":!ce,"is-synced":oe?.isSynced,"is-draggable":R,"is-displacement-normal":"normal"===n,"is-displacement-up":"up"===n,"is-displacement-down":"down"===n,"is-after-dragged-blocks":o,"is-nesting":i}),ze=y.includes(t)?y:[t],Ve=s&&1===y.length;return(0,d.jsxs)(cM,{className:Oe,isDragged:r,onKeyDown:async function(e){if(e.defaultPrevented)return;if(e.target.closest("[role=dialog]"))return;const t=[Wa.BACKSPACE,Wa.DELETE].includes(e.keyCode);if(_e("core/block-editor/unselect",e)&&y.length>0)e.stopPropagation(),e.preventDefault(),a(e,void 0);else if(t||_e("core/block-editor/remove",e)){const{blocksToUpdate:e,firstBlockClientId:t,firstBlockRootClientId:n,selectedBlockClientIds:o}=ye();if(!ee(e))return;let r=q(t)??n;V(e,!1);const i=o.length>0&&0===Z().length;r||(r=X()[0]),Ce(r,i)}else if(_e("core/block-editor/paste-styles",e)){e.preventDefault();const{blocksToUpdate:t}=ye(),n=J(t);re(n)}else if(_e("core/block-editor/duplicate",e)){e.preventDefault();const{blocksToUpdate:t,firstBlockRootClientId:n}=ye();if(J(t).every((e=>!!e&&(0,p.hasBlockSupport)(e.name,"multiple",!0)&&K(e.name,n)))){const e=await D(t,!1);e?.length&&Ce(e[0],!1)}}else if(_e("core/block-editor/insert-before",e)){e.preventDefault();const{blocksToUpdate:t}=ye();await H(t[0]);const n=Z();U(void 0),Ce(n[0],!1)}else if(_e("core/block-editor/insert-after",e)){e.preventDefault();const{blocksToUpdate:t}=ye();await F(t.at(-1));const n=Z();U(void 0),Ce(n[0],!1)}else if(_e("core/block-editor/select-all",e)){e.preventDefault();const{firstBlockRootClientId:t,selectedBlockClientIds:n}=ye(),o=X(t);if(!o.length)return;if(Ja()(n,o)&&t&&t!==ve)return void Ce(t,!0);O(o[0],o[o.length-1],null)}else if(_e("core/block-editor/collapse-list-view",e)){e.preventDefault();const{firstBlockClientId:t}=ye(),n=Q(t,!1);he(),de(n)}else if(_e("core/block-editor/group",e)){const{blocksToUpdate:t}=ye();if(t.length>1&&te(t)){e.preventDefault();const n=J(t),o=ne(),r=(0,p.switchToBlockType)(n,o);z(t,r),(0,Uo.speak)((0,T.__)("Selected blocks are grouped."));const i=Z();U(void 0),Ce(i[0],!1)}}else if(_e("core/block-editor/toggle-block-visibility",e)){e.preventDefault();const{blocksToUpdate:t}=ye(),n=J(t);if(!n.every((e=>(0,p.hasBlockSupport)(e.name,"blockVisibility",!0))))return;const o=n.some((e=>!1===e.attributes.metadata?.blockVisibility)),r=Object.fromEntries(n.map((({clientId:e,attributes:t})=>[e,{metadata:fs({...t?.metadata,blockVisibility:!!o&&void 0})}])));$(t,r,{uniqueByBlock:!0})}},onMouseEnter:xe,onMouseLeave:Se,onFocus:xe,onBlur:Se,level:u,position:c,rowCount:f,path:v,id:`list-view-${me}-block-${t}`,"data-block":t,"data-expanded":P?_:void 0,ref:w,children:[(0,d.jsx)(ws.__experimentalTreeGridCell,{className:"block-editor-list-view-block__contents-cell",colSpan:De,ref:S,"aria-selected":!!s,children:({ref:e,tabIndex:t,onFocus:n})=>(0,d.jsxs)("div",{className:"block-editor-list-view-block__contents-container",children:[(0,d.jsx)(kM,{block:ie,onClick:we,onContextMenu:Ie,onMouseDown:je,onToggleExpanded:Be,isSelected:s,position:c,siblingBlockCount:b,level:u,ref:e,tabIndex:Ve?0:t,onFocus:n,isExpanded:P?_:void 0,selectedClientIds:y,ariaDescribedBy:ue}),(0,d.jsx)(iM,{id:ue,children:[Me,Pe,Re].filter(Boolean).join(" ")})]})}),Ae&&(0,d.jsx)(d.Fragment,{children:(0,d.jsxs)(ws.__experimentalTreeGridCell,{className:Ne,withoutGridItem:!0,children:[(0,d.jsx)(ws.__experimentalTreeGridItem,{children:({ref:e,tabIndex:n,onFocus:o})=>(0,d.jsx)(Vj,{orientation:"vertical",clientIds:[t],ref:e,tabIndex:n,onFocus:o})}),(0,d.jsx)(ws.__experimentalTreeGridItem,{children:({ref:e,tabIndex:n,onFocus:o})=>(0,d.jsx)(Fj,{orientation:"vertical",clientIds:[t],ref:e,tabIndex:n,onFocus:o})})]})}),ce&&ge&&(0,d.jsx)(ws.__experimentalTreeGridCell,{className:Le,"aria-selected":!!s,ref:C,children:({ref:e,tabIndex:t,onFocus:n})=>(0,d.jsx)(ge,{clientIds:ze,block:ie,icon:fv,label:(0,T.__)("Options"),popoverProps:{anchor:Ee},toggleProps:{ref:e,className:"block-editor-list-view-block__menu",tabIndex:t,onClick:Te,onFocus:n,size:"small"},disableOpenOnArrowDown:!0,expand:de,expandedState:fe,setInsertedBlock:be,__experimentalSelectBlock:Ce})})]})}));function yM(e,t,n,o){const r=n?.includes(e.clientId);if(r)return 0;return t[e.clientId]??o?1+e.innerBlocks.reduce(xM(t,n,o),0):1}const xM=(e,t,n)=>(o,r)=>{const i=t?.includes(r.clientId);if(i)return o;return(e[r.clientId]??n)&&r.innerBlocks.length>0?o+yM(r,e,t,n):o+1},SM=()=>{};var wM=(0,h.memo)((function e(t){const{blocks:n,selectBlock:o=SM,showBlockMovers:r,selectedClientIds:i,level:s=1,path:l="",isBranchSelected:a=!1,listPosition:c=0,fixedListWindow:u,isExpanded:p,parentId:m,shouldShowInnerBlocks:f=!0,isSyncedBranch:b=!1,showAppender:k=!0}=t,v=Xf(m),_=b||!!v?.isSynced,y=(0,g.useSelect)((e=>!m||e(ji).canEditBlock(m)),[m]),{blockDropPosition:x,blockDropTargetIndex:S,firstDraggedBlockIndex:w,blockIndexes:C,expandedState:B,draggedClientIds:I}=rM(),j=(0,h.useRef)();if(!y)return null;const E=k&&1===s,T=n.filter(Boolean),M=T.length,P=E?M+1:M;return j.current=c,(0,d.jsxs)(d.Fragment,{children:[T.map(((t,n)=>{const{clientId:c,innerBlocks:h}=t;n>0&&(j.current+=yM(T[n-1],B,I,p));const m=!!I?.includes(c),{displacement:b,isAfterDraggedBlocks:k,isNesting:v}=function({blockIndexes:e,blockDropTargetIndex:t,blockDropPosition:n,clientId:o,firstDraggedBlockIndex:r,isDragged:i}){let s,l,a;if(!i){l=!1;const i=e[o];a=i>r,null!=t&&void 0!==r?void 0!==i&&(s=i>=r&&i<t?"up":i<r&&i>=t?"down":"normal",l="number"==typeof t&&t-1===i&&"inside"===n):null===t&&void 0!==r?s=void 0!==i&&i>=r?"up":"normal":null!=t&&void 0===r?void 0!==i&&(s=i<t?"normal":"down"):null===t&&(s="normal")}return{displacement:s,isNesting:l,isAfterDraggedBlocks:a}}({blockIndexes:C,blockDropTargetIndex:S,blockDropPosition:x,clientId:c,firstDraggedBlockIndex:w,isDragged:m}),{itemInView:y}=u,E=y(j.current),R=n+1,A=l.length>0?`${l}_${R}`:`${R}`,N=!!h?.length,L=N&&f?B[c]??p:void 0,D=((e,t)=>Array.isArray(t)&&t.length?-1!==t.indexOf(e):t===e)(c,i),O=a||D&&N,z=m||E||D&&c===i[0]||0===n||n===M-1;return(0,d.jsxs)(g.AsyncModeProvider,{value:!D,children:[z&&(0,d.jsx)(_M,{block:t,selectBlock:o,isSelected:D,isBranchSelected:O,isDragged:m,level:s,position:R,rowCount:P,siblingBlockCount:M,showBlockMovers:r,path:A,isExpanded:!m&&L,listPosition:j.current,selectedClientIds:i,isSyncedBranch:_,displacement:b,isAfterDraggedBlocks:k,isNesting:v}),!z&&(0,d.jsx)("tr",{children:(0,d.jsx)("td",{className:"block-editor-list-view-placeholder"})}),N&&L&&!m&&(0,d.jsx)(e,{parentId:c,blocks:h,selectBlock:o,showBlockMovers:r,level:s+1,path:A,listPosition:j.current+1,fixedListWindow:u,isBranchSelected:O,selectedClientIds:i,isExpanded:p,isSyncedBranch:_})]},c)})),E&&(0,d.jsx)(ws.__experimentalTreeGridRow,{level:s,setSize:P,positionInSet:P,isExpanded:!0,children:(0,d.jsx)(ws.__experimentalTreeGridCell,{children:e=>(0,d.jsx)(sM,{clientId:m,nestingLevel:s,blockCount:M,...e})})})]})}));function CM({draggedBlockClientId:e,listViewRef:t,blockDropTarget:n}){const o=Xf(e),r=Sj({clientId:e,context:"list-view"}),{rootClientId:i,clientId:s,dropPosition:l}=n||{},[a,c]=(0,h.useMemo)((()=>{if(!t.current)return[];return[i?t.current.querySelector(`[data-block="${i}"]`):void 0,s?t.current.querySelector(`[data-block="${s}"]`):void 0]}),[t,i,s]),u=c||a,p=(0,T.isRTL)(),g=(0,h.useCallback)(((e,t)=>{if(!u)return 0;let n=u.offsetWidth;const o=(0,Ga.getScrollContainer)(u,"horizontal"),r=u.ownerDocument,i=o===r.body||o===r.documentElement;if(o&&!i){const r=o.getBoundingClientRect(),i=(0,T.isRTL)()?r.right-e.right:e.left-r.left,s=o.clientWidth;if(s<n+i&&(n=s-i),!p&&e.left+t<r.left)return n-=r.left-e.left,n;if(p&&e.right-t>r.right)return n-=e.right-r.right,n}return n-t}),[p,u]),m=(0,h.useMemo)((()=>{if(!u)return{};const e=u.getBoundingClientRect();return{width:g(e,0)}}),[g,u]),f=(0,h.useMemo)((()=>{if(!u)return{};const e=(0,Ga.getScrollContainer)(u),t=u.ownerDocument,n=e===t.body||e===t.documentElement;if(e&&!n){const t=e.getBoundingClientRect(),n=u.getBoundingClientRect(),o=p?t.right-n.right:n.left-t.left;if(!p&&t.left>n.left)return{transform:`translateX( ${o}px )`};if(p&&t.right<n.right)return{transform:`translateX( ${-1*o}px )`}}return{}}),[p,u]),b=(0,h.useMemo)((()=>{if(!a)return 1;const e=parseInt(a.getAttribute("aria-level"),10);return e?e+1:1}),[a]),k=(0,h.useMemo)((()=>!!u&&u.classList.contains("is-branch-selected")),[u]),v=(0,h.useMemo)((()=>{if(u&&("top"===l||"bottom"===l||"inside"===l))return{contextElement:u,getBoundingClientRect(){const e=u.getBoundingClientRect();let t=e.left,n=0;const o=(0,Ga.getScrollContainer)(u,"horizontal"),r=u.ownerDocument,i=o===r.body||o===r.documentElement;if(o&&!i){const e=o.getBoundingClientRect(),n=p?o.offsetWidth-o.clientWidth:0;t<e.left+n&&(t=e.left+n)}n="top"===l?e.top-2*e.height:e.top;const s=g(e,0),a=e.height;return new window.DOMRect(t,n,s,a)}}}),[u,l,g,p]);return u?(0,d.jsx)(ws.Popover,{animate:!1,anchor:v,focusOnMount:!1,className:"block-editor-list-view-drop-indicator--preview",variant:"unstyled",flip:!1,resize:!0,children:(0,d.jsx)("div",{style:m,className:ms("block-editor-list-view-drop-indicator__line",{"block-editor-list-view-drop-indicator__line--darker":k}),children:(0,d.jsxs)("div",{className:"block-editor-list-view-leaf","aria-level":b,children:[(0,d.jsxs)("div",{className:ms("block-editor-list-view-block-select-button","block-editor-list-view-block-contents"),style:f,children:[(0,d.jsx)(pM,{onClick:()=>{}}),(0,d.jsx)(Vu,{icon:o?.icon,showColors:!0,context:"list-view"}),(0,d.jsx)(ws.__experimentalHStack,{alignment:"center",className:"block-editor-list-view-block-select-button__label-wrapper",justify:"flex-start",spacing:1,children:(0,d.jsx)("span",{className:"block-editor-list-view-block-select-button__title",children:(0,d.jsx)(ws.__experimentalTruncate,{ellipsizeMode:"auto",children:r})})})]}),(0,d.jsx)("div",{className:"block-editor-list-view-block__menu-cell"})]})})}):null}function BM(){const{clearSelectedBlock:e,multiSelect:t,selectBlock:n}=(0,g.useDispatch)(ji),{getBlockName:o,getBlockParents:r,getBlockSelectionStart:i,getSelectedBlockClientIds:s,hasMultiSelection:l,hasSelectedBlock:a}=(0,g.useSelect)(ji),{getBlockType:c}=(0,g.useSelect)(p.store);return{updateBlockSelection:(0,h.useCallback)((async(u,d,p,h)=>{if(!u?.shiftKey&&u?.keyCode!==Wa.ESCAPE)return void n(d,h);u.preventDefault();const g="keydown"===u.type&&u.keyCode===Wa.ESCAPE,m="keydown"===u.type&&(u.keyCode===Wa.UP||u.keyCode===Wa.DOWN||u.keyCode===Wa.HOME||u.keyCode===Wa.END);if(!m&&!a()&&!l())return void n(d,null);const f=s(),b=[...r(d),d];if((g||m&&!f.some((e=>b.includes(e))))&&await e(),!g){let e=i(),n=d;m&&(a()||l()||(e=d),p&&(n=p));const o=r(e),s=r(n),{start:c,end:u}=function(e,t,n,o){const r=[...n,e],i=[...o,t],s=Math.min(r.length,i.length)-1;return{start:r[s],end:i[s]}}(e,n,o,s);await t(c,u,null)}const k=s();if((u.keyCode===Wa.HOME||u.keyCode===Wa.END)&&k.length>1)return;const v=f.filter((e=>!k.includes(e)));let _;if(1===v.length){const e=c(o(v[0]))?.title;e&&(_=(0,T.sprintf)((0,T.__)("%s deselected."),e))}else v.length>1&&(_=(0,T.sprintf)((0,T.__)("%s blocks deselected."),v.length));_&&(0,Uo.speak)(_,"assertive")}),[e,o,c,r,i,s,l,a,t,n])}}const IM=24;function jM(e,t){const n=e[t+1];return n&&n.isDraggedBlock?jM(e,t+1):n}const EM=["top","bottom"];function TM(e,t,n=!1){let o,r,i,s,l;for(let n=0;n<e.length;n++){const a=e[n];if(a.isDraggedBlock)continue;const c=a.element.getBoundingClientRect(),[u,d]=zS(t,c,EM),p=VS(t,c);if(void 0===i||u<i||p){i=u;const t=e.indexOf(a),n=e[t-1];if("top"===d&&n&&n.rootClientId===a.rootClientId&&!n.isDraggedBlock?(r=n,o="bottom",s=n.element.getBoundingClientRect(),l=t-1):(r=a,o=d,s=c,l=t),p)break}}if(!r)return;const a=function(e,t){const n=[];let o=e;for(;o;)n.push({...o}),o=t.find((e=>e.clientId===o.rootClientId));return n}(r,e),c="bottom"===o;if(c&&r.canInsertDraggedBlocksAsChild&&(r.innerBlockCount>0&&r.isExpanded||function(e,t,n=1,o=!1){const r=o?t.right-n*IM:t.left+n*IM;return(o?e.x<r-IM:e.x>r+IM)&&e.y<t.bottom}(t,s,a.length,n))){const e=r.isExpanded?0:r.innerBlockCount||0;return{rootClientId:r.clientId,clientId:r.clientId,blockIndex:e,dropPosition:"inside"}}if(c&&r.rootClientId&&function(e,t,n=1,o=!1){const r=o?t.right-n*IM:t.left+n*IM;return o?e.x>r:e.x<r}(t,s,a.length,n)){const i=jM(e,l),c=r.nestingLevel,u=i?i.nestingLevel:1;if(c&&u){const d=function(e,t,n=1,o=!1){const r=o?t.right-n*IM:t.left+n*IM,i=o?r-e.x:e.x-r,s=Math.round(i/IM);return Math.abs(s)}(t,s,a.length,n),p=Math.max(Math.min(d,c-u),0);if(a[p]){let t=r.blockIndex;if(a[p].nestingLevel===i?.nestingLevel)t=i?.blockIndex;else for(let n=l;n>=0;n--){const o=e[n];if(o.rootClientId===a[p].rootClientId){t=o.blockIndex+1;break}}return{rootClientId:a[p].rootClientId,clientId:r.clientId,blockIndex:t,dropPosition:o}}}}if(!r.canInsertDraggedBlocksAsSibling)return;const u=c?1:0;return{rootClientId:r.rootClientId,clientId:r.clientId,blockIndex:r.blockIndex+u,dropPosition:o}}const MM={leading:!1,trailing:!0};function PM({selectBlock:e}){const t=(0,g.useRegistry)(),{getBlockOrder:n,getBlockRootClientId:o,getBlocksByClientId:r,getPreviousBlockClientId:i,getSelectedBlockClientIds:s,getSettings:l,canInsertBlockType:a,canRemoveBlocks:c}=(0,g.useSelect)(ji),{flashBlock:u,removeBlocks:d,replaceBlocks:h,insertBlocks:f}=(0,g.useDispatch)(ji),b=jw();return(0,m.useRefEffect)((g=>{function m(t,n){n&&e(void 0,t,null,null),vM(t,g)}function k(e){if(e.defaultPrevented)return;if(!g.contains(e.target.ownerDocument.activeElement))return;const k=e.target.ownerDocument.activeElement?.closest("[role=row]"),v=k?.dataset?.block;if(!v)return;const{blocksToUpdate:_,firstBlockClientId:y,firstBlockRootClientId:x,originallySelectedBlockClientIds:S}=function(e){const t=s(),n=t.includes(e),r=n?t[0]:e;return{blocksToUpdate:n?t:[e],firstBlockClientId:r,firstBlockRootClientId:o(r),originallySelectedBlockClientIds:t}}(v);if(0!==_.length){if(e.preventDefault(),"copy"===e.type||"cut"===e.type){1===_.length&&u(_[0]),b(e.type,_);Mw(e,r(_),t)}if("cut"===e.type){if(!c(_))return;let e=i(y)??x;d(_,!1);const t=S.length>0&&0===s().length;e||(e=n()[0]),m(e,t)}else if("paste"===e.type){const{__experimentalCanUserUseUnfilteredHTML:t}=l(),n=function(e,t){const{plainText:n,html:o,files:r}=Ew(e);let i=[];if(r.length){const e=(0,p.getBlockTransforms)("from");i=r.reduce(((t,n)=>{const o=(0,p.findTransform)(e,(e=>"files"===e.type&&e.isMatch([n])));return o&&t.push(o.transform([n])),t}),[]).flat()}else i=(0,p.pasteHandler)({HTML:o,plainText:n,mode:"BLOCKS",canUserUseUnfilteredHTML:t});return i}(e,t);if(1===_.length){const[e]=_;if(n.every((t=>a(t.name,e))))return f(n,void 0,e),void m(n[0]?.clientId,!1)}h(_,n,n.length-1,-1),m(n[0]?.clientId,!1)}}}return g.ownerDocument.addEventListener("copy",k),g.ownerDocument.addEventListener("cut",k),g.ownerDocument.addEventListener("paste",k),()=>{g.ownerDocument.removeEventListener("copy",k),g.ownerDocument.removeEventListener("cut",k),g.ownerDocument.removeEventListener("paste",k)}}),[])}const RM=(e,t)=>"clear"===t.type?{}:Array.isArray(t.clientIds)?{...e,...t.clientIds.reduce(((e,n)=>({...e,[n]:"expand"===t.type})),{})}:e;const AM=(0,h.forwardRef)((function e({id:t,blocks:n,dropZoneElement:o,showBlockMovers:r=!1,isExpanded:i=!1,showAppender:s=!1,blockSettingsMenu:l=dT,rootClientId:a,description:c,onSelect:u,additionalBlockContent:p},f){n&&I()("`blocks` property in `wp.blockEditor.__experimentalListView`",{since:"6.3",alternative:"`rootClientId` property"});const b=(0,m.useInstanceId)(e),{clientIdsTree:k,draggedClientIds:v,selectedClientIds:_}=function({blocks:e,rootClientId:t}){return(0,g.useSelect)((n=>{const{getDraggedBlockClientIds:o,getSelectedBlockClientIds:r,getEnabledClientIdsTree:i}=G(n(ji));return{selectedClientIds:r(),draggedClientIds:o(),clientIdsTree:e??i(t)}}),[e,t])}({blocks:n,rootClientId:a}),y=function(e){return(0,h.useMemo)((()=>{const t={};let n=0;const o=e=>{e.forEach((e=>{t[e.clientId]=n,n++,e.innerBlocks.length>0&&o(e.innerBlocks)}))};return o(e),t}),[e])}(k),{getBlock:x}=(0,g.useSelect)(ji),{visibleBlockCount:S}=(0,g.useSelect)((e=>{const{getGlobalBlockCount:t,getClientIdsOfDescendants:n}=e(ji),o=v?.length>0?n(v).length+1:0;return{visibleBlockCount:t()-o}}),[v]),{updateBlockSelection:w}=BM(),[C,B]=(0,h.useReducer)(RM,{}),[j,E]=(0,h.useState)(null),{setSelectedTreeId:M}=function({firstSelectedBlockClientId:e,setExpandedState:t}){const[n,o]=(0,h.useState)(null),{selectedBlockParentClientIds:r}=(0,g.useSelect)((t=>{const{getBlockParents:n}=t(ji);return{selectedBlockParentClientIds:n(e,!1)}}),[e]);return(0,h.useEffect)((()=>{n!==e&&r?.length&&t({type:"expand",clientIds:r})}),[e,r,n,t]),{setSelectedTreeId:o}}({firstSelectedBlockClientId:_[0],setExpandedState:B}),P=(0,h.useCallback)(((e,t,n)=>{w(e,t,null,n),M(t),u&&u(x(t))}),[M,w,u,x]),{ref:R,target:A}=function({dropZoneElement:e,expandedState:t,setExpandedState:n}){const{getBlockRootClientId:o,getBlockIndex:r,getBlockCount:i,getDraggedBlockClientIds:s,canInsertBlocks:l}=(0,g.useSelect)(ji),[a,c]=(0,h.useState)(),{rootClientId:u,blockIndex:d}=a||{},p=OS(u,d),f=(0,T.isRTL)(),b=(0,m.usePrevious)(u),k=(0,h.useCallback)(((e,t)=>{const{rootClientId:o}=t||{};o&&("inside"!==t?.dropPosition||e[o]||n({type:"expand",clientIds:[o]}))}),[n]),v=(0,m.useThrottle)(k,500,MM);(0,h.useEffect)((()=>{"inside"===a?.dropPosition&&b===a?.rootClientId?v(t,a):v.cancel()}),[t,b,a,v]);const _=s(),y=(0,m.useThrottle)((0,h.useCallback)(((e,t)=>{const n={x:e.clientX,y:e.clientY},s=!!_?.length,a=TM(Array.from(t.querySelectorAll("[data-block]")).map((e=>{const t=e.dataset.block,n="true"===e.dataset.expanded,a=e.classList.contains("is-dragging"),c=parseInt(e.getAttribute("aria-level"),10),u=o(t);return{clientId:t,isExpanded:n,rootClientId:u,blockIndex:r(t),element:e,nestingLevel:c||void 0,isDraggedBlock:!!s&&a,innerBlockCount:i(t),canInsertDraggedBlocksAsSibling:!s||l(_,u),canInsertDraggedBlocksAsChild:!s||l(_,t)}})),n,f);a&&c(a)}),[l,_,i,r,o,f]),50);return{ref:(0,m.__experimentalUseDropZone)({dropZoneElement:e,onDrop(e){y.cancel(),a&&p(e),c(void 0)},onDragLeave(){y.cancel(),c(null)},onDragOver(e){y(e,e.currentTarget)},onDragEnd(){y.cancel(),c(void 0)}}),target:a}}({dropZoneElement:o,expandedState:C,setExpandedState:B}),N=(0,h.useRef)(),L=PM({selectBlock:P}),D=(0,m.useMergeRefs)([L,N,R,f]);(0,h.useEffect)((()=>{_?.length&&vM(_[0],N?.current)}),[]);const O=(0,h.useCallback)((e=>{if(!e)return;const t=Array.isArray(e)?e:[e];B({type:"expand",clientIds:t})}),[B]),z=(0,h.useCallback)((e=>{e&&B({type:"collapse",clientIds:[e]})}),[B]),V=(0,h.useCallback)((()=>{B({type:"clear"})}),[B]),F=(0,h.useCallback)((e=>{O(e?.dataset?.block)}),[O]),H=(0,h.useCallback)((e=>{z(e?.dataset?.block)}),[z]),U=(0,h.useCallback)(((e,t,n)=>{e.shiftKey&&w(e,t?.dataset?.block,n?.dataset?.block)}),[w]);!function({collapseAll:e,expand:t}){const{expandedBlock:n,getBlockParents:o}=(0,g.useSelect)((e=>{const{getBlockParents:t,getExpandedBlock:n}=G(e(ji));return{expandedBlock:n(),getBlockParents:t}}),[]);(0,h.useEffect)((()=>{if(n){const r=o(n,!1);e(),t(r)}}),[e,t,n,o])}({collapseAll:V,expand:O});const $=v?.[0],{blockDropTargetIndex:W,blockDropPosition:K,firstDraggedBlockIndex:Z}=(0,h.useMemo)((()=>{let e,t;if(A?.clientId){const t=y[A.clientId];e=void 0===t||"top"===A?.dropPosition?t:t+1}else null===A&&(e=null);if($){const e=y[$];t=void 0===e||"top"===A?.dropPosition?e:e+1}return{blockDropTargetIndex:e,blockDropPosition:A?.dropPosition,firstDraggedBlockIndex:t}}),[A,y,$]),q=(0,h.useMemo)((()=>({blockDropPosition:K,blockDropTargetIndex:W,blockIndexes:y,draggedClientIds:v,expandedState:C,expand:O,firstDraggedBlockIndex:Z,collapse:z,collapseAll:V,BlockSettingsMenu:l,listViewInstanceId:b,AdditionalBlockContent:p,insertedBlock:j,setInsertedBlock:E,treeGridElementRef:N,rootClientId:a})),[K,W,y,v,C,O,Z,z,V,l,b,p,j,E,a]),[Y]=(0,m.__experimentalUseFixedWindowList)(N,32,S,{expandedState:C,useWindowing:!0,windowOverscan:40});if(!k.length&&!s)return null;const X=c&&`block-editor-list-view-description-${b}`;return(0,d.jsxs)(g.AsyncModeProvider,{value:!0,children:[(0,d.jsx)(CM,{draggedBlockClientId:$,listViewRef:N,blockDropTarget:A}),c&&(0,d.jsx)(ws.VisuallyHidden,{id:X,children:c}),(0,d.jsx)(ws.__experimentalTreeGrid,{id:t,className:ms("block-editor-list-view-tree",{"is-dragging":v?.length>0&&void 0!==W}),"aria-label":(0,T.__)("Block navigation structure"),ref:D,onCollapseRow:H,onExpandRow:F,onFocusRow:U,applicationAriaLabel:(0,T.__)("Block navigation structure"),"aria-describedby":X,style:{"--wp-admin--list-view-dragged-items-height":v?.length?32*(v.length-1)+"px":null},children:(0,d.jsx)(oM.Provider,{value:q,children:(0,d.jsx)(wM,{blocks:k,parentId:a,selectBlock:P,showBlockMovers:r,fixedListWindow:Y,selectedClientIds:_,isExpanded:i,showAppender:s})})})]})}));var NM=(0,h.forwardRef)(((e,t)=>(0,d.jsx)(AM,{ref:t,...e,showAppender:!1,rootClientId:null,onSelect:null,additionalBlockContent:null,blockSettingsMenu:void 0})));function LM({isEnabled:e,onToggle:t,isOpen:n,innerRef:o,...r}){return(0,d.jsx)(ws.Button,{__next40pxDefaultSize:!0,...r,ref:o,icon:nM,"aria-expanded":n,"aria-haspopup":"true",onClick:e?t:void 0,label:(0,T.__)("List view"),className:"block-editor-block-navigation","aria-disabled":!e})}var DM=(0,h.forwardRef)((function({isDisabled:e,...t},n){I()("wp.blockEditor.BlockNavigationDropdown",{since:"6.1",alternative:"wp.components.Dropdown and wp.blockEditor.ListView"});const o=(0,g.useSelect)((e=>!!e(ji).getBlockCount()),[])&&!e;return(0,d.jsx)(ws.Dropdown,{contentClassName:"block-editor-block-navigation__popover",popoverProps:{placement:"bottom-start"},renderToggle:({isOpen:e,onToggle:r})=>(0,d.jsx)(LM,{...t,innerRef:n,isOpen:e,onToggle:r,isEnabled:o}),renderContent:()=>(0,d.jsxs)("div",{className:"block-editor-block-navigation__container",children:[(0,d.jsx)("p",{className:"block-editor-block-navigation__label",children:(0,T.__)("List view")}),(0,d.jsx)(NM,{})]})})}));function OM({genericPreviewBlock:e,style:t,className:n,activeStyle:o}){const r=(0,p.getBlockType)(e.name)?.example,i=oE(n,o,t),s=(0,h.useMemo)((()=>({...e,title:t.label||t.name,description:t.description,initialAttributes:{...e.attributes,className:i+" block-editor-block-styles__block-preview-container"},example:r})),[e,i]);return(0,d.jsx)(_C,{item:s})}const zM=()=>{};var VM=function({clientId:e,onSwitch:t=zM,onHoverClassName:n=zM}){const{onSelect:o,stylesToRender:r,activeStyle:i,genericPreviewBlock:s,className:l}=iE({clientId:e,onSwitch:t}),[a,c]=(0,h.useState)(null),u=(0,m.useViewportMatch)("medium","<");if(!r||0===r.length)return null;const p=(0,m.debounce)(c,250),g=e=>{a!==e?(p(e),n(e?.name??null)):p.cancel()};return(0,d.jsxs)("div",{className:"block-editor-block-styles",children:[(0,d.jsx)("div",{className:"block-editor-block-styles__variants",children:r.map((e=>{const t=e.label||e.name;return(0,d.jsx)(ws.Button,{__next40pxDefaultSize:!0,className:ms("block-editor-block-styles__item",{"is-active":i.name===e.name}),variant:"secondary",label:t,onMouseEnter:()=>g(e),onFocus:()=>g(e),onMouseLeave:()=>g(null),onBlur:()=>g(null),onClick:()=>(e=>{o(e),n(null),c(null),p.cancel()})(e),"aria-current":i.name===e.name,children:(0,d.jsx)(ws.__experimentalTruncate,{numberOfLines:1,className:"block-editor-block-styles__item-text",children:t})},e.name)}))}),a&&!u&&(0,d.jsx)(ws.Popover,{placement:"left-start",offset:34,focusOnMount:!1,children:(0,d.jsx)("div",{className:"block-editor-block-styles__preview-panel",onMouseLeave:()=>g(null),children:(0,d.jsx)(OM,{activeStyle:i,className:l,genericPreviewBlock:s,style:a})})})]})};const FM={0:(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"m9.99609 14v-.2251l.00391.0001v6.225h1.5v-14.5h2.5v14.5h1.5v-14.5h3v-1.5h-8.50391c-2.76142 0-5 2.23858-5 5 0 2.7614 2.23858 5 5 5z"})}),1:(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"M17.6 7c-.6.9-1.5 1.7-2.6 2v1h2v7h2V7h-1.4zM11 11H7V7H5v10h2v-4h4v4h2V7h-2v4z"})}),2:(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"M9 11.1H5v-4H3v10h2v-4h4v4h2v-10H9v4zm8 4c.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.6v1.5h8v-2H17z"})}),3:(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"M9 11H5V7H3v10h2v-4h4v4h2V7H9v4zm11.3 1.7c-.4-.4-1-.7-1.6-.8v-.1c.6-.2 1.1-.5 1.5-.9.3-.4.5-.8.5-1.3 0-.4-.1-.8-.3-1.1-.2-.3-.5-.6-.8-.8-.4-.2-.8-.4-1.2-.5-.6-.1-1.1-.2-1.6-.2-.6 0-1.3.1-1.8.3s-1.1.5-1.6.9l1.2 1.4c.4-.2.7-.4 1.1-.6.3-.2.7-.3 1.1-.3.4 0 .8.1 1.1.3.3.2.4.5.4.8 0 .4-.2.7-.6.9-.7.3-1.5.5-2.2.4v1.6c.5 0 1 0 1.5.1.3.1.7.2 1 .3.2.1.4.2.5.4s.1.4.1.6c0 .3-.2.7-.5.8-.4.2-.9.3-1.4.3s-1-.1-1.4-.3c-.4-.2-.8-.4-1.2-.7L13 15.6c.5.4 1 .8 1.6 1 .7.3 1.5.4 2.3.4.6 0 1.1-.1 1.6-.2.4-.1.9-.2 1.3-.5.4-.2.7-.5.9-.9.2-.4.3-.8.3-1.2 0-.6-.3-1.1-.7-1.5z"})}),4:(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"M20 13V7h-3l-4 6v2h5v2h2v-2h1v-2h-1zm-2 0h-2.8L18 9v4zm-9-2H5V7H3v10h2v-4h4v4h2V7H9v4z"})}),5:(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"M9 11H5V7H3v10h2v-4h4v4h2V7H9v4zm11.7 1.2c-.2-.3-.5-.7-.8-.9-.3-.3-.7-.5-1.1-.6-.5-.1-.9-.2-1.4-.2-.2 0-.5.1-.7.1-.2.1-.5.1-.7.2l.1-1.9h4.3V7H14l-.3 5 1 .6.5-.2.4-.1c.1-.1.3-.1.4-.1h.5c.5 0 1 .1 1.4.4.4.2.6.7.6 1.1 0 .4-.2.8-.6 1.1-.4.3-.9.4-1.4.4-.4 0-.9-.1-1.3-.3-.4-.2-.7-.4-1.1-.7 0 0-1.1 1.4-1 1.5.5.4 1 .8 1.6 1 .7.3 1.5.4 2.3.4.5 0 1-.1 1.5-.3s.9-.4 1.3-.7c.4-.3.7-.7.9-1.1s.3-.9.3-1.4-.1-1-.3-1.4z"})}),6:(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"M20.7 12.4c-.2-.3-.4-.6-.7-.9s-.6-.5-1-.6c-.4-.2-.8-.2-1.2-.2-.5 0-.9.1-1.3.3s-.8.5-1.2.8c0-.5 0-.9.2-1.4l.6-.9c.2-.2.5-.4.8-.5.6-.2 1.3-.2 1.9 0 .3.1.6.3.8.5 0 0 1.3-1.3 1.3-1.4-.4-.3-.9-.6-1.4-.8-.6-.2-1.3-.3-2-.3-.6 0-1.1.1-1.7.4-.5.2-1 .5-1.4.9-.4.4-.8 1-1 1.6-.3.7-.4 1.5-.4 2.3s.1 1.5.3 2.1c.2.6.6 1.1 1 1.5.4.4.9.7 1.4.9 1 .3 2 .3 3 0 .4-.1.8-.3 1.2-.6.3-.3.6-.6.8-1 .2-.5.3-.9.3-1.4s-.1-.9-.3-1.3zm-2 2.1c-.1.2-.3.4-.4.5-.1.1-.3.2-.5.2-.2.1-.4.1-.6.1-.2.1-.5 0-.7-.1-.2 0-.3-.2-.5-.3-.1-.2-.3-.4-.4-.6-.2-.3-.3-.7-.3-1 .3-.3.6-.5 1-.7.3-.1.7-.2 1-.2.4 0 .8.1 1.1.3.3.3.4.7.4 1.1 0 .2 0 .5-.1.7zM9 11H5V7H3v10h2v-4h4v4h2V7H9v4z"})})};function HM({level:e}){return FM[e]?(0,d.jsx)(ws.Icon,{icon:FM[e]}):null}const UM=[1,2,3,4,5,6],GM={className:"block-library-heading-level-dropdown"};function $M({options:e=UM,value:t,onChange:n}){const o=e.filter((e=>0===e||UM.includes(e))).sort(((e,t)=>e-t));return(0,d.jsx)(ws.ToolbarDropdownMenu,{popoverProps:GM,icon:(0,d.jsx)(HM,{level:t}),label:(0,T.__)("Change level"),controls:o.map((e=>{const o=e===t;return{icon:(0,d.jsx)(HM,{level:e}),title:0===e?(0,T.__)("Paragraph"):(0,T.sprintf)((0,T.__)("Heading %d"),e),isActive:o,onClick(){n(e)},role:"menuitemradio"}}))})}var WM=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.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"})});var KM=function({icon:e=WM,label:t=(0,T.__)("Choose variation"),instructions:n=(0,T.__)("Select a variation to start with:"),variations:o,onSelect:r,allowSkip:i}){const s=ms("block-editor-block-variation-picker",{"has-many-variations":o.length>4});return(0,d.jsxs)(ws.Placeholder,{icon:e,label:t,instructions:n,className:s,children:[(0,d.jsx)("ul",{className:"block-editor-block-variation-picker__variations",role:"list","aria-label":(0,T.__)("Block variations"),children:o.map((e=>(0,d.jsxs)("li",{children:[(0,d.jsx)(ws.Button,{__next40pxDefaultSize:!0,variant:"tertiary",icon:e.icon&&e.icon.src?e.icon.src:e.icon,iconSize:48,onClick:()=>r(e),className:"block-editor-block-variation-picker__variation",label:e.description||e.title}),(0,d.jsx)("span",{className:"block-editor-block-variation-picker__variation-label",children:e.title})]},e.name)))}),i&&(0,d.jsx)("div",{className:"block-editor-block-variation-picker__skip",children:(0,d.jsx)(ws.Button,{__next40pxDefaultSize:!0,variant:"link",onClick:()=>r(),children:(0,T.__)("Skip")})})]})};const ZM="carousel",qM="grid",YM=({onBlockPatternSelect:e})=>(0,d.jsx)("div",{className:"block-editor-block-pattern-setup__actions",children:(0,d.jsx)(ws.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:e,children:(0,T.__)("Choose")})}),XM=({handlePrevious:e,handleNext:t,activeSlide:n,totalSlides:o})=>(0,d.jsxs)("div",{className:"block-editor-block-pattern-setup__navigation",children:[(0,d.jsx)(ws.Button,{size:"compact",icon:(0,T.isRTL)()?Zb:qb,label:(0,T.__)("Previous pattern"),onClick:e,disabled:0===n,accessibleWhenDisabled:!0}),(0,d.jsx)(ws.Button,{size:"compact",icon:(0,T.isRTL)()?qb:Zb,label:(0,T.__)("Next pattern"),onClick:t,disabled:n===o-1,accessibleWhenDisabled:!0})]});var QM=({viewMode:e,setViewMode:t,handlePrevious:n,handleNext:o,activeSlide:r,totalSlides:i,onBlockPatternSelect:s})=>{const l=e===ZM,a=(0,d.jsxs)("div",{className:"block-editor-block-pattern-setup__display-controls",children:[(0,d.jsx)(ws.Button,{size:"compact",icon:ca,label:(0,T.__)("Carousel view"),onClick:()=>t(ZM),isPressed:l}),(0,d.jsx)(ws.Button,{size:"compact",icon:_T,label:(0,T.__)("Grid view"),onClick:()=>t(qM),isPressed:e===qM})]});return(0,d.jsxs)("div",{className:"block-editor-block-pattern-setup__toolbar",children:[l&&(0,d.jsx)(XM,{handlePrevious:n,handleNext:o,activeSlide:r,totalSlides:i}),a,l&&(0,d.jsx)(YM,{onBlockPatternSelect:s})]})};var JM=function(e,t,n){return(0,g.useSelect)((o=>{const{getBlockRootClientId:r,getPatternsByBlockTypes:i,__experimentalGetAllowedPatterns:s}=o(ji),l=r(e);return n?s(l).filter(n):i(t,l)}),[e,t,n])};const eP=({viewMode:e,activeSlide:t,patterns:n,onBlockPatternSelect:o,showTitles:r})=>{const i="block-editor-block-pattern-setup__container";if(e===ZM){const e=new Map([[t,"active-slide"],[t-1,"previous-slide"],[t+1,"next-slide"]]);return(0,d.jsx)("div",{className:"block-editor-block-pattern-setup__carousel",children:(0,d.jsx)("div",{className:i,children:(0,d.jsx)("div",{className:"carousel-container",children:n.map(((n,o)=>(0,d.jsx)(nP,{active:o===t,className:e.get(o)||"",pattern:n},n.name)))})})})}return(0,d.jsx)("div",{className:"block-editor-block-pattern-setup__grid",children:(0,d.jsx)(ws.Composite,{role:"listbox",className:i,"aria-label":(0,T.__)("Patterns list"),children:n.map((e=>(0,d.jsx)(tP,{pattern:e,onSelect:o,showTitles:r},e.name)))})})};function tP({pattern:e,onSelect:t,showTitles:n}){const o="block-editor-block-pattern-setup-list",{blocks:r,description:i,viewportWidth:s=700}=e,l=(0,m.useInstanceId)(tP,`${o}__item-description`);return(0,d.jsx)("div",{className:`${o}__list-item`,children:(0,d.jsxs)(ws.Composite.Item,{render:(0,d.jsx)("div",{"aria-describedby":i?l:void 0,"aria-label":e.title,className:`${o}__item`}),id:`${o}__pattern__${e.name}`,role:"option",onClick:()=>t(r),children:[(0,d.jsx)(kC,{blocks:r,viewportWidth:s}),n&&(0,d.jsx)("div",{className:`${o}__item-title`,children:e.title}),!!i&&(0,d.jsx)(ws.VisuallyHidden,{id:l,children:i})]})})}function nP({active:e,className:t,pattern:n,minHeight:o}){const{blocks:r,title:i,description:s}=n,l=(0,m.useInstanceId)(nP,"block-editor-block-pattern-setup-list__item-description");return(0,d.jsxs)("div",{"aria-hidden":!e,role:"img",className:`pattern-slide ${t}`,"aria-label":i,"aria-describedby":s?l:void 0,children:[(0,d.jsx)(kC,{blocks:r,minHeight:o}),!!s&&(0,d.jsx)(ws.VisuallyHidden,{id:l,children:s})]})}var oP=({clientId:e,blockName:t,filterPatternsFn:n,onBlockPatternSelect:o,initialViewMode:r=ZM,showTitles:i=!1})=>{const[s,l]=(0,h.useState)(r),[a,c]=(0,h.useState)(0),{replaceBlock:u}=(0,g.useDispatch)(ji),m=JM(e,t,n);if(!m?.length)return null;const f=o||(t=>{const n=t.map((e=>(0,p.cloneBlock)(e)));u(e,n)});return(0,d.jsx)(d.Fragment,{children:(0,d.jsxs)("div",{className:`block-editor-block-pattern-setup view-mode-${s}`,children:[(0,d.jsx)(eP,{viewMode:s,activeSlide:a,patterns:m,onBlockPatternSelect:f,showTitles:i}),(0,d.jsx)(QM,{viewMode:s,setViewMode:l,activeSlide:a,totalSlides:m.length,handleNext:()=>{c((e=>Math.min(e+1,m.length-1)))},handlePrevious:()=>{c((e=>Math.max(e-1,0)))},onBlockPatternSelect:()=>{f(m[a].blocks)}})]})})};function rP({className:e,onSelectVariation:t,selectedValue:n,variations:o}){return(0,d.jsxs)("fieldset",{className:e,children:[(0,d.jsx)(ws.VisuallyHidden,{as:"legend",children:(0,T.__)("Transform to variation")}),o.map((e=>(0,d.jsx)(ws.Button,{__next40pxDefaultSize:!0,size:"compact",icon:(0,d.jsx)(Vu,{icon:e.icon,showColors:!0}),isPressed:n===e.name,label:n===e.name?e.title:(0,T.sprintf)((0,T.__)("Transform to %s"),e.title),onClick:()=>t(e.name),"aria-label":e.title,showTooltip:!0},e.name)))]})}function iP({className:e,onSelectVariation:t,selectedValue:n,variations:o}){const r=o.map((({name:e,title:t,description:n})=>({value:e,label:t,info:n})));return(0,d.jsx)(ws.DropdownMenu,{className:e,label:(0,T.__)("Transform to variation"),text:(0,T.__)("Transform to variation"),popoverProps:{position:"bottom center",className:`${e}__popover`},icon:yI,toggleProps:{iconPosition:"right"},children:()=>(0,d.jsx)(ws.MenuGroup,{children:(0,d.jsx)(ws.MenuItemsChoice,{choices:r,value:n,onSelect:t})})})}function sP({className:e,onSelectVariation:t,selectedValue:n,variations:o}){return(0,d.jsx)("div",{className:e,children:(0,d.jsx)(ws.__experimentalToggleGroupControl,{label:(0,T.__)("Transform to variation"),value:n,hideLabelFromVision:!0,onChange:t,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,children:o.map((e=>(0,d.jsx)(ws.__experimentalToggleGroupControlOptionIcon,{icon:(0,d.jsx)(Vu,{icon:e.icon,showColors:!0}),value:e.name,label:n===e.name?e.title:(0,T.sprintf)((0,T.__)("Transform to %s"),e.title)},e.name)))})})}var lP=function({blockClientId:e}){const{updateBlockAttributes:t}=(0,g.useDispatch)(ji),{activeBlockVariation:n,unfilteredVariations:o,blockName:r,isContentOnly:i,isSection:s}=(0,g.useSelect)((t=>{const{getActiveBlockVariation:n,getBlockVariations:o}=t(p.store),{getBlockName:r,getBlockAttributes:i,getBlockEditingMode:s,isSectionBlock:l}=G(t(ji)),a=e&&r(e),{hasContentRoleAttribute:c}=G(t(p.store)),u=c(a);return{activeBlockVariation:n(a,i(e),"transform"),unfilteredVariations:a&&o(a,"transform"),blockName:a,isContentOnly:"contentOnly"===s(e)&&!u,isSection:l(e)}}),[e]),l=(0,h.useMemo)((()=>"core/paragraph"===r?"stretchy-paragraph"===n?.name||o.every((e=>["paragraph","stretchy-paragraph"].includes(e.name)))?[]:o.filter((e=>"stretchy-paragraph"!==e.name)):"core/heading"===r?"stretchy-heading"===n?.name||o.every((e=>["heading","stretchy-heading"].includes(e.name)))?[]:o.filter((e=>"stretchy-heading"!==e.name)):o),[n?.name,r,o]),a=n?.name,c=(0,h.useMemo)((()=>{const e=new Set;return!!l&&(l.forEach((t=>{t.icon&&e.add(t.icon?.src||t.icon)})),e.size===l.length)}),[l]),u=window?.__experimentalContentOnlyPatternInsertion&&s;if(!l?.length||i||u)return null;const m=l.length>5,f=c?m?rP:sP:iP;return(0,d.jsx)(f,{className:"block-editor-block-variation-transforms",onSelectVariation:n=>{t(e,{...l.find((({name:e})=>e===n)).attributes})},selectedValue:a,variations:l})},aP=(0,m.createHigherOrderComponent)((e=>t=>{const[n,o,r,i,s]=Ti("color.palette.default","color.palette.theme","color.palette.custom","color.custom","color.defaultPalette"),l=s?[...o||[],...n||[],...r||[]]:[...o||[],...r||[]],{colors:a=l,disableCustomColors:c=!i}=t,u=a&&a.length>0||!c;return(0,d.jsx)(e,{...{...t,colors:a,disableCustomColors:c,hasColorsToChoose:u}})}),"withColorContext"),cP=aP(ws.ColorPalette);function uP({onChange:e,value:t,...n}){return(0,d.jsx)(qp,{...n,onColorChange:e,colorValue:t,gradients:[],disableCustomGradients:!0})}const dP=window.wp.date,pP=new Date;function hP({format:e,defaultFormat:t,onChange:n}){return(0,d.jsxs)(ws.__experimentalVStack,{as:"fieldset",spacing:4,className:"block-editor-date-format-picker",children:[(0,d.jsx)(ws.VisuallyHidden,{as:"legend",children:(0,T.__)("Date format")}),(0,d.jsx)(ws.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,T.__)("Default format"),help:`${(0,T.__)("Example:")}  ${(0,dP.dateI18n)(t,pP)}`,checked:!e,onChange:e=>n(e?null:t)}),e&&(0,d.jsx)(gP,{format:e,onChange:n})]})}function gP({format:e,onChange:t}){const n=[...[...new Set(["Y-m-d",(0,T._x)("n/j/Y","short date format"),(0,T._x)("n/j/Y g:i A","short date format with time"),(0,T._x)("M j, Y","medium date format"),(0,T._x)("M j, Y g:i A","medium date format with time"),(0,T._x)("F j, Y","long date format"),(0,T._x)("M j","short date format without the year")])].map(((e,t)=>({key:`suggested-${t}`,name:(0,dP.dateI18n)(e,pP),format:e}))),{key:"human-diff",name:(0,dP.humanTimeDiff)(pP),format:"human-diff"}],o={key:"custom",name:(0,T.__)("Custom"),className:"block-editor-date-format-picker__custom-format-select-control__custom-option",hint:(0,T.__)("Enter your own date format")},[r,i]=(0,h.useState)((()=>!!e&&!n.some((t=>t.format===e))));return(0,d.jsxs)(ws.__experimentalVStack,{children:[(0,d.jsx)(ws.CustomSelectControl,{__next40pxDefaultSize:!0,label:(0,T.__)("Choose a format"),options:[...n,o],value:r?o:n.find((t=>t.format===e))??o,onChange:({selectedItem:e})=>{e===o?i(!0):(i(!1),t(e.format))}}),r&&(0,d.jsx)(ws.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,T.__)("Custom format"),hideLabelFromVision:!0,help:(0,h.createInterpolateElement)((0,T.__)("Enter a date or time <Link>format string</Link>."),{Link:(0,d.jsx)(ws.ExternalLink,{href:(0,T.__)("https://wordpress.org/documentation/article/customize-date-and-time-format/")})}),value:e,onChange:e=>t(e)})]})}pP.setDate(20),pP.setMonth(pP.getMonth()-3),4===pP.getMonth()&&pP.setMonth(3);const mP=({setting:e,children:t,panelId:n,...o})=>(0,d.jsx)(ws.__experimentalToolsPanelItem,{hasValue:()=>!!e.colorValue||!!e.gradientValue,label:e.label,onDeselect:()=>{e.colorValue?e.onColorChange():e.gradientValue&&e.onGradientChange()},isShownByDefault:void 0===e.isShownByDefault||e.isShownByDefault,...o,className:"block-editor-tools-panel-color-gradient-settings__item",panelId:n,resetAllFilter:e.resetAllFilter,children:t}),fP=({colorValue:e,label:t})=>(0,d.jsxs)(ws.__experimentalHStack,{justify:"flex-start",children:[(0,d.jsx)(ws.ColorIndicator,{className:"block-editor-panel-color-gradient-settings__color-indicator",colorValue:e}),(0,d.jsx)(ws.FlexItem,{className:"block-editor-panel-color-gradient-settings__color-name",title:t,children:t})]}),bP=e=>({onToggle:t,isOpen:n})=>{const{clearable:o,colorValue:r,gradientValue:i,onColorChange:s,onGradientChange:l,label:a}=e,c=(0,h.useRef)(void 0),u={onClick:t,className:ms("block-editor-panel-color-gradient-settings__dropdown",{"is-open":n}),"aria-expanded":n,ref:c},p=r??i;return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(ws.Button,{__next40pxDefaultSize:!0,...u,children:(0,d.jsx)(fP,{colorValue:p,label:a})}),o&&p&&(0,d.jsx)(ws.Button,{__next40pxDefaultSize:!0,label:(0,T.__)("Reset"),className:"block-editor-panel-color-gradient-settings__reset",size:"small",icon:Ha,onClick:()=>{r?s():i&&l(),n&&t(),c.current?.focus()}})]})};function kP({colors:e,disableCustomColors:t,disableCustomGradients:n,enableAlpha:o,gradients:r,settings:i,__experimentalIsRenderedInSidebar:s,...l}){let a;return s&&(a={placement:"left-start",offset:36,shift:!0}),(0,d.jsx)(d.Fragment,{children:i.map(((i,c)=>{const u={clearable:!1,colorValue:i.colorValue,colors:e,disableCustomColors:t,disableCustomGradients:n,enableAlpha:o,gradientValue:i.gradientValue,gradients:r,label:i.label,onColorChange:i.onColorChange,onGradientChange:i.onGradientChange,showTitle:!1,__experimentalIsRenderedInSidebar:s,...i},p={clearable:i.clearable,label:i.label,colorValue:i.colorValue,gradientValue:i.gradientValue,onColorChange:i.onColorChange,onGradientChange:i.onGradientChange};return i&&(0,d.jsx)(mP,{setting:i,...l,children:(0,d.jsx)(ws.Dropdown,{popoverProps:a,className:"block-editor-tools-panel-color-gradient-settings__dropdown",renderToggle:bP(p),renderContent:()=>(0,d.jsx)(ws.__experimentalDropdownContentWrapper,{paddingSize:"none",children:(0,d.jsx)("div",{className:"block-editor-panel-color-gradient-settings__dropdown-content",children:(0,d.jsx)(qp,{...u})})})})},c)}))})}const vP=["colors","disableCustomColors","gradients","disableCustomGradients"],_P=({className:e,colors:t,gradients:n,disableCustomColors:o,disableCustomGradients:r,children:i,settings:s,title:l,showTitle:a=!0,__experimentalIsRenderedInSidebar:c,enableAlpha:u})=>{const p=(0,m.useInstanceId)(_P),{batch:h}=(0,g.useRegistry)();return t&&0!==t.length||n&&0!==n.length||!o||!r||!s?.every((e=>(!e.colors||0===e.colors.length)&&(!e.gradients||0===e.gradients.length)&&(void 0===e.disableCustomColors||e.disableCustomColors)&&(void 0===e.disableCustomGradients||e.disableCustomGradients)))?(0,d.jsxs)(ws.__experimentalToolsPanel,{className:ms("block-editor-panel-color-gradient-settings",e),label:a?l:void 0,resetAll:()=>{h((()=>{s.forEach((({colorValue:e,gradientValue:t,onColorChange:n,onGradientChange:o})=>{e?n():t&&o()}))}))},panelId:p,__experimentalFirstVisibleItemClass:"first",__experimentalLastVisibleItemClass:"last",children:[(0,d.jsx)(kP,{settings:s,panelId:p,colors:t,gradients:n,disableCustomColors:o,disableCustomGradients:r,__experimentalIsRenderedInSidebar:c,enableAlpha:u}),!!i&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(ws.__experimentalSpacer,{marginY:4})," ",i]})]}):null},yP=e=>{const t=Nd();return(0,d.jsx)(_P,{...{...t,...e}})};var xP=e=>vP.every((t=>e.hasOwnProperty(t)))?(0,d.jsx)(_P,{...e}):(0,d.jsx)(yP,{...e}),SP=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.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"})});const wP=100,CP=300,BP={placement:"bottom-start"},IP={crop:(0,T.__)("Image cropped."),rotate:(0,T.__)("Image rotated."),cropAndRotate:(0,T.__)("Image cropped and rotated.")};const jP=(0,h.createContext)({});jP.displayName="ImageEditingContext";const EP=()=>(0,h.useContext)(jP);function TP({id:e,url:t,naturalWidth:n,naturalHeight:o,onFinishEditing:r,onSaveImage:i,children:s}){const l=function({url:e,naturalWidth:t,naturalHeight:n}){const[o,r]=(0,h.useState)(),[i,s]=(0,h.useState)(),[l,a]=(0,h.useState)({x:0,y:0}),[c,u]=(0,h.useState)(100),[d,p]=(0,h.useState)(0),g=t/n,[m,b]=(0,h.useState)(g),k=(0,h.useCallback)((()=>{const t=(d+90)%360;let n=g;if(d%180==90&&(n=1/g),0===t)return r(),p(t),b(g),void a((e=>({x:-e.y*n,y:e.x*n})));const o=new window.Image;o.src=e,o.onload=function(e){const o=document.createElement("canvas");let i=0,s=0;t%180?(o.width=e.target.height,o.height=e.target.width):(o.width=e.target.width,o.height=e.target.height),90!==t&&180!==t||(i=o.width),270!==t&&180!==t||(s=o.height);const l=o.getContext("2d");l.translate(i,s),l.rotate(t*Math.PI/180),l.drawImage(e.target,0,0),o.toBlob((e=>{r(URL.createObjectURL(e)),p(t),b(o.width/o.height),a((e=>({x:-e.y*n,y:e.x*n})))}))};const i=(0,f.applyFilters)("media.crossOrigin",void 0,e);"string"==typeof i&&(o.crossOrigin=i)}),[d,g,e]);return(0,h.useMemo)((()=>({editedUrl:o,setEditedUrl:r,crop:i,setCrop:s,position:l,setPosition:a,zoom:c,setZoom:u,rotation:d,setRotation:p,rotateClockwise:k,aspect:m,setAspect:b,defaultAspect:g})),[o,i,l,c,d,k,m,g])}({url:t,naturalWidth:n,naturalHeight:o}),a=function({crop:e,rotation:t,url:n,id:o,onSaveImage:r,onFinishEditing:i}){const{createErrorNotice:s,createSuccessNotice:l}=(0,g.useDispatch)(pr.store),[a,c]=(0,h.useState)(!1),{editMediaEntity:u}=(0,g.useSelect)((e=>{const t=e(ji).getSettings();return{editMediaEntity:t?.[V]}}),[]),d=(0,h.useCallback)((()=>{c(!1),i()}),[i]),p=(0,h.useCallback)((async()=>{if(!u)return i(),void s((0,T.__)("Sorry, you are not allowed to edit images on this site."),{id:"image-editing-error",type:"snackbar"});c(!0);const a=[];if(t>0&&a.push({type:"rotate",args:{angle:t}}),(e.width<99.9||e.height<99.9)&&a.push({type:"crop",args:{left:e.x,top:e.y,width:e.width,height:e.height}}),0===a.length)return c(!1),void i();const d=1===a.length?a[0].type:"cropAndRotate";try{const e=await u(o,{src:n,modifiers:a},{throwOnError:!0});e&&(r({id:e.id,url:e.source_url}),l(IP[d],{type:"snackbar",actions:[{label:(0,T.__)("Undo"),onClick:()=>{r({id:o,url:n})}}]}))}catch(e){s((0,T.sprintf)((0,T.__)("Could not edit image. %s"),(0,Ga.__unstableStripHTML)(e.message)),{id:"image-editing-error",type:"snackbar"})}finally{c(!1),i()}}),[e,t,o,n,r,s,l,i,u]);return(0,h.useMemo)((()=>({isInProgress:a,apply:p,cancel:d})),[a,p,d])}({id:e,url:t,onSaveImage:i,onFinishEditing:r,...l}),c=(0,h.useMemo)((()=>({...l,...a})),[l,a]);return(0,d.jsx)(jP.Provider,{value:c,children:s})}function MP({aspectRatios:e,isDisabled:t,label:n,onClick:o,value:r}){return(0,d.jsx)(ws.MenuGroup,{label:n,children:e.map((({name:e,slug:n,ratio:i})=>(0,d.jsx)(ws.MenuItem,{disabled:t,onClick:()=>{o(i)},role:"menuitemradio",isSelected:i===r,icon:i===r?ip:void 0,children:e},n)))})}function PP(e){const[t,n,...o]=e.split("/").map(Number);return t<=0||n<=0||Number.isNaN(t)||Number.isNaN(n)||o.length?NaN:n?t/n:t}function RP({ratio:e,...t}){return{ratio:PP(e),...t}}function AP({toggleProps:e}){const{isInProgress:t,aspect:n,setAspect:o,defaultAspect:r}=EP(),[i,s,l]=Ti("dimensions.aspectRatios.default","dimensions.aspectRatios.theme","dimensions.defaultAspectRatios");return(0,d.jsx)(ws.DropdownMenu,{icon:SP,label:(0,T.__)("Aspect Ratio"),popoverProps:BP,toggleProps:e,children:({onClose:e})=>(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(MP,{isDisabled:t,onClick:t=>{o(t),e()},value:n,aspectRatios:[{slug:"original",name:(0,T.__)("Original"),ratio:r},...l?i.map(RP).filter((({ratio:e})=>1===e)):[]]}),s?.length>0&&(0,d.jsx)(MP,{label:(0,T.__)("Theme"),isDisabled:t,onClick:t=>{o(t),e()},value:n,aspectRatios:s}),l&&(0,d.jsx)(MP,{label:(0,T.__)("Landscape"),isDisabled:t,onClick:t=>{o(t),e()},value:n,aspectRatios:i.map(RP).filter((({ratio:e})=>e>1))}),l&&(0,d.jsx)(MP,{label:(0,T.__)("Portrait"),isDisabled:t,onClick:t=>{o(t),e()},value:n,aspectRatios:i.map(RP).filter((({ratio:e})=>e<1))})]})})}var NP=function(e,t){return NP=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])},NP(e,t)};function LP(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}NP(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var DP=function(){return DP=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},DP.apply(this,arguments)};Object.create;Object.create;"function"==typeof SuppressedError&&SuppressedError;var OP=n(7520),zP=n.n(OP);function VP(e,t,n,o,r){void 0===r&&(r=0);var i=KP(t.width,t.height,r),s=i.width,l=i.height;return{x:FP(e.x,s,n.width,o),y:FP(e.y,l,n.height,o)}}function FP(e,t,n,o){var r=t*o/2-n/2;return ZP(e,-r,r)}function HP(e,t){return Math.sqrt(Math.pow(e.y-t.y,2)+Math.pow(e.x-t.x,2))}function UP(e,t){return 180*Math.atan2(t.y-e.y,t.x-e.x)/Math.PI}function GP(e,t){return Math.min(e,Math.max(0,t))}function $P(e,t){return t}function WP(e,t){return{x:(t.x+e.x)/2,y:(t.y+e.y)/2}}function KP(e,t,n){var o=n*Math.PI/180;return{width:Math.abs(Math.cos(o)*e)+Math.abs(Math.sin(o)*t),height:Math.abs(Math.sin(o)*e)+Math.abs(Math.cos(o)*t)}}function ZP(e,t,n){return Math.min(Math.max(e,t),n)}function qP(){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 YP=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.imageRef=ic.createRef(),n.videoRef=ic.createRef(),n.containerPosition={x:0,y:0},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.gestureZoomStart=0,n.gestureRotationStart=0,n.isTouching=!1,n.lastPinchDistance=0,n.lastPinchRotation=0,n.rafDragTimeout=null,n.rafPinchTimeout=null,n.wheelTimer=null,n.currentDoc="undefined"!=typeof document?document:null,n.currentWindow="undefined"!=typeof window?window:null,n.resizeObserver=null,n.state={cropSize:null,hasWheelJustStarted:!1,mediaObjectFit:void 0},n.initResizeObserver=function(){if(void 0!==window.ResizeObserver&&n.containerRef){var e=!0;n.resizeObserver=new window.ResizeObserver((function(t){e?e=!1:n.computeSizes()})),n.resizeObserver.observe(n.containerRef)}},n.preventZoomSafari=function(e){return e.preventDefault()},n.cleanEvents=function(){n.currentDoc&&(n.currentDoc.removeEventListener("mousemove",n.onMouseMove),n.currentDoc.removeEventListener("mouseup",n.onDragStopped),n.currentDoc.removeEventListener("touchmove",n.onTouchMove),n.currentDoc.removeEventListener("touchend",n.onDragStopped),n.currentDoc.removeEventListener("gesturemove",n.onGestureMove),n.currentDoc.removeEventListener("gestureend",n.onGestureEnd),n.currentDoc.removeEventListener("scroll",n.onScroll))},n.clearScrollEvent=function(){n.containerRef&&n.containerRef.removeEventListener("wheel",n.onWheel),n.wheelTimer&&clearTimeout(n.wheelTimer)},n.onMediaLoad=function(){var e=n.computeSizes();e&&(n.emitCropData(),n.setInitialCrop(e)),n.props.onMediaLoaded&&n.props.onMediaLoaded(n.mediaSize)},n.setInitialCrop=function(e){if(n.props.initialCroppedAreaPercentages){var t=function(e,t,n,o,r,i){var s=KP(t.width,t.height,n),l=ZP(o.width/s.width*(100/e.width),r,i);return{crop:{x:l*s.width/2-o.width/2-s.width*l*(e.x/100),y:l*s.height/2-o.height/2-s.height*l*(e.y/100)},zoom:l}}(n.props.initialCroppedAreaPercentages,n.mediaSize,n.props.rotation,e,n.props.minZoom,n.props.maxZoom),o=t.crop,r=t.zoom;n.props.onCropChange(o),n.props.onZoomChange&&n.props.onZoomChange(r)}else if(n.props.initialCroppedAreaPixels){var i=function(e,t,n,o,r,i){void 0===n&&(n=0);var s=KP(t.naturalWidth,t.naturalHeight,n),l=ZP(function(e,t,n){var o=function(e){return e.width>e.height?e.width/e.naturalWidth:e.height/e.naturalHeight}(t);return n.height>n.width?n.height/(e.height*o):n.width/(e.width*o)}(e,t,o),r,i),a=o.height>o.width?o.height/e.height:o.width/e.width;return{crop:{x:((s.width-e.width)/2-e.x)*a,y:((s.height-e.height)/2-e.y)*a},zoom:l}}(n.props.initialCroppedAreaPixels,n.mediaSize,n.props.rotation,e,n.props.minZoom,n.props.maxZoom);o=i.crop,r=i.zoom;n.props.onCropChange(o),n.props.onZoomChange&&n.props.onZoomChange(r)}},n.computeSizes=function(){var e,t,o,r,i,s,l=n.imageRef.current||n.videoRef.current;if(l&&n.containerRef){n.containerRect=n.containerRef.getBoundingClientRect(),n.saveContainerPosition();var a=n.containerRect.width/n.containerRect.height,c=(null===(e=n.imageRef.current)||void 0===e?void 0:e.naturalWidth)||(null===(t=n.videoRef.current)||void 0===t?void 0:t.videoWidth)||0,u=(null===(o=n.imageRef.current)||void 0===o?void 0:o.naturalHeight)||(null===(r=n.videoRef.current)||void 0===r?void 0:r.videoHeight)||0,d=c/u,p=void 0;if(l.offsetWidth<c||l.offsetHeight<u)switch(n.state.mediaObjectFit){default:case"contain":p=a>d?{width:n.containerRect.height*d,height:n.containerRect.height}:{width:n.containerRect.width,height:n.containerRect.width/d};break;case"horizontal-cover":p={width:n.containerRect.width,height:n.containerRect.width/d};break;case"vertical-cover":p={width:n.containerRect.height*d,height:n.containerRect.height}}else p={width:l.offsetWidth,height:l.offsetHeight};n.mediaSize=DP(DP({},p),{naturalWidth:c,naturalHeight:u}),n.props.setMediaSize&&n.props.setMediaSize(n.mediaSize);var h=n.props.cropSize?n.props.cropSize:function(e,t,n,o,r,i){void 0===i&&(i=0);var s=KP(e,t,i),l=s.width,a=s.height,c=Math.min(l,n),u=Math.min(a,o);return c>u*r?{width:u*r,height:u}:{width:c,height:c/r}}(n.mediaSize.width,n.mediaSize.height,n.containerRect.width,n.containerRect.height,n.props.aspect,n.props.rotation);return(null===(i=n.state.cropSize)||void 0===i?void 0:i.height)===h.height&&(null===(s=n.state.cropSize)||void 0===s?void 0:s.width)===h.width||n.props.onCropSizeChange&&n.props.onCropSizeChange(h),n.setState({cropSize:h},n.recomputeCropPosition),n.props.setCropSize&&n.props.setCropSize(h),h}},n.saveContainerPosition=function(){if(n.containerRef){var e=n.containerRef.getBoundingClientRect();n.containerPosition={x:e.left,y:e.top}}},n.onMouseDown=function(e){n.currentDoc&&(e.preventDefault(),n.currentDoc.addEventListener("mousemove",n.onMouseMove),n.currentDoc.addEventListener("mouseup",n.onDragStopped),n.saveContainerPosition(),n.onDragStart(t.getMousePoint(e)))},n.onMouseMove=function(e){return n.onDrag(t.getMousePoint(e))},n.onScroll=function(e){n.currentDoc&&(e.preventDefault(),n.saveContainerPosition())},n.onTouchStart=function(e){n.currentDoc&&(n.isTouching=!0,n.props.onTouchRequest&&!n.props.onTouchRequest(e)||(n.currentDoc.addEventListener("touchmove",n.onTouchMove,{passive:!1}),n.currentDoc.addEventListener("touchend",n.onDragStopped),n.saveContainerPosition(),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.onGestureStart=function(e){n.currentDoc&&(e.preventDefault(),n.currentDoc.addEventListener("gesturechange",n.onGestureMove),n.currentDoc.addEventListener("gestureend",n.onGestureEnd),n.gestureZoomStart=n.props.zoom,n.gestureRotationStart=n.props.rotation)},n.onGestureMove=function(e){if(e.preventDefault(),!n.isTouching){var o=t.getMousePoint(e),r=n.gestureZoomStart-1+e.scale;if(n.setNewZoom(r,o,{shouldUpdatePosition:!0}),n.props.onRotationChange){var i=n.gestureRotationStart+e.rotation;n.props.onRotationChange(i)}}},n.onGestureEnd=function(e){n.cleanEvents()},n.onDragStart=function(e){var t,o,r=e.x,i=e.y;n.dragStartPosition={x:r,y:i},n.dragStartCrop=DP({},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.currentWindow&&(n.rafDragTimeout&&n.currentWindow.cancelAnimationFrame(n.rafDragTimeout),n.rafDragTimeout=n.currentWindow.requestAnimationFrame((function(){if(n.state.cropSize&&void 0!==t&&void 0!==o){var e=t-n.dragStartPosition.x,r=o-n.dragStartPosition.y,i={x:n.dragStartCrop.x+e,y:n.dragStartCrop.y+r},s=n.props.restrictPosition?VP(i,n.mediaSize,n.state.cropSize,n.props.zoom,n.props.rotation):i;n.props.onCropChange(s)}})))},n.onDragStopped=function(){var e,t;n.isTouching=!1,n.cleanEvents(),n.emitCropData(),null===(t=(e=n.props).onInteractionEnd)||void 0===t||t.call(e)},n.onWheel=function(e){if(n.currentWindow&&(!n.props.onWheelRequest||n.props.onWheelRequest(e))){e.preventDefault();var o=t.getMousePoint(e),r=zP()(e).pixelY,i=n.props.zoom-r*n.props.zoomSpeed/200;n.setNewZoom(i,o,{shouldUpdatePosition:!0}),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=n.currentWindow.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,t){var o=e.x,r=e.y;if(!n.containerRect)throw new Error("The Cropper is not mounted");return{x:n.containerRect.width/2-(o-t.x),y:n.containerRect.height/2-(r-t.y)}},n.getPointOnMedia=function(e){var t=e.x,o=e.y,r=n.props,i=r.crop,s=r.zoom;return{x:(t+i.x)/s,y:(o+i.y)/s}},n.setNewZoom=function(e,t,o){var r=(void 0===o?{}:o).shouldUpdatePosition,i=void 0===r||r;if(n.state.cropSize&&n.props.onZoomChange){var s=ZP(e,n.props.minZoom,n.props.maxZoom);if(i){var l=n.getPointOnContainer(t,n.containerPosition),a=n.getPointOnMedia(l),c={x:a.x*s-l.x,y:a.y*s-l.y},u=n.props.restrictPosition?VP(c,n.mediaSize,n.state.cropSize,s,n.props.rotation):c;n.props.onCropChange(u)}n.props.onZoomChange(s)}},n.getCropData=function(){return n.state.cropSize?function(e,t,n,o,r,i,s){void 0===i&&(i=0),void 0===s&&(s=!0);var l=s?GP:$P,a=KP(t.width,t.height,i),c=KP(t.naturalWidth,t.naturalHeight,i),u={x:l(100,((a.width-n.width/r)/2-e.x/r)/a.width*100),y:l(100,((a.height-n.height/r)/2-e.y/r)/a.height*100),width:l(100,n.width/a.width*100/r),height:l(100,n.height/a.height*100/r)},d=Math.round(l(c.width,u.width*c.width/100)),p=Math.round(l(c.height,u.height*c.height/100)),h=c.width>=c.height*o?{width:Math.round(p*o),height:p}:{width:d,height:Math.round(d/o)};return{croppedAreaPercentages:u,croppedAreaPixels:DP(DP({},h),{x:Math.round(l(c.width-h.width,u.x*c.width/100)),y:Math.round(l(c.height-h.height,u.y*c.height/100))})}}(n.props.restrictPosition?VP(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?VP(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 LP(t,e),t.prototype.componentDidMount=function(){this.currentDoc&&this.currentWindow&&(this.containerRef&&(this.containerRef.ownerDocument&&(this.currentDoc=this.containerRef.ownerDocument),this.currentDoc.defaultView&&(this.currentWindow=this.currentDoc.defaultView),this.initResizeObserver(),void 0===window.ResizeObserver&&this.currentWindow.addEventListener("resize",this.computeSizes),this.props.zoomWithScroll&&this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}),this.containerRef.addEventListener("gesturestart",this.onGestureStart)),this.currentDoc.addEventListener("scroll",this.onScroll),this.props.disableAutomaticStylesInjection||(this.styleRef=this.currentDoc.createElement("style"),this.styleRef.setAttribute("type","text/css"),this.props.nonce&&this.styleRef.setAttribute("nonce",this.props.nonce),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",this.currentDoc.head.appendChild(this.styleRef)),this.imageRef.current&&this.imageRef.current.complete&&this.onMediaLoad(),this.props.setImageRef&&this.props.setImageRef(this.imageRef),this.props.setVideoRef&&this.props.setVideoRef(this.videoRef))},t.prototype.componentWillUnmount=function(){var e,t;this.currentDoc&&this.currentWindow&&(void 0===window.ResizeObserver&&this.currentWindow.removeEventListener("resize",this.computeSizes),null===(e=this.resizeObserver)||void 0===e||e.disconnect(),this.containerRef&&this.containerRef.removeEventListener("gesturestart",this.preventZoomSafari),this.styleRef&&(null===(t=this.styleRef.parentNode)||void 0===t||t.removeChild(this.styleRef)),this.cleanEvents(),this.props.zoomWithScroll&&this.clearScrollEvent())},t.prototype.componentDidUpdate=function(e){var t,n,o,r,i,s,l,a,c;e.rotation!==this.props.rotation?(this.computeSizes(),this.recomputeCropPosition()):e.aspect!==this.props.aspect||e.objectFit!==this.props.objectFit?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===(i=e.crop)||void 0===i?void 0:i.x)===(null===(s=this.props.crop)||void 0===s?void 0:s.x)&&(null===(l=e.crop)||void 0===l?void 0:l.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===(c=this.videoRef.current)||void 0===c||c.load());var u=this.getObjectFit();u!==this.state.mediaObjectFit&&this.setState({mediaObjectFit:u},this.computeSizes)},t.prototype.getAspect=function(){var e=this.props,t=e.cropSize,n=e.aspect;return t?t.width/t.height:n},t.prototype.getObjectFit=function(){var e,t,n,o;if("cover"===this.props.objectFit){if((this.imageRef.current||this.videoRef.current)&&this.containerRef){this.containerRect=this.containerRef.getBoundingClientRect();var r=this.containerRect.width/this.containerRect.height;return((null===(e=this.imageRef.current)||void 0===e?void 0:e.naturalWidth)||(null===(t=this.videoRef.current)||void 0===t?void 0:t.videoWidth)||0)/((null===(n=this.imageRef.current)||void 0===n?void 0:n.naturalHeight)||(null===(o=this.videoRef.current)||void 0===o?void 0:o.videoHeight)||0)<r?"horizontal-cover":"vertical-cover"}return"horizontal-cover"}return this.props.objectFit},t.prototype.onPinchStart=function(e){var n=t.getTouchPoint(e.touches[0]),o=t.getTouchPoint(e.touches[1]);this.lastPinchDistance=HP(n,o),this.lastPinchRotation=UP(n,o),this.onDragStart(WP(n,o))},t.prototype.onPinchMove=function(e){var n=this;if(this.currentDoc&&this.currentWindow){var o=t.getTouchPoint(e.touches[0]),r=t.getTouchPoint(e.touches[1]),i=WP(o,r);this.onDrag(i),this.rafPinchTimeout&&this.currentWindow.cancelAnimationFrame(this.rafPinchTimeout),this.rafPinchTimeout=this.currentWindow.requestAnimationFrame((function(){var e=HP(o,r),t=n.props.zoom*(e/n.lastPinchDistance);n.setNewZoom(t,i,{shouldUpdatePosition:!1}),n.lastPinchDistance=e;var s=UP(o,r),l=n.props.rotation+(s-n.lastPinchRotation);n.props.onRotationChange&&n.props.onRotationChange(l),n.lastPinchRotation=s}))}},t.prototype.render=function(){var e=this,t=this.props,n=t.image,o=t.video,r=t.mediaProps,i=t.transform,s=t.crop,l=s.x,a=s.y,c=t.rotation,u=t.zoom,d=t.cropShape,p=t.showGrid,h=t.style,g=h.containerStyle,m=h.cropAreaStyle,f=h.mediaStyle,b=t.classes,k=b.containerClassName,v=b.cropAreaClassName,_=b.mediaClassName,y=this.state.mediaObjectFit;return ic.createElement("div",{onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,ref:function(t){return e.containerRef=t},"data-testid":"container",style:g,className:qP("reactEasyCrop_Container",k)},n?ic.createElement("img",DP({alt:"",className:qP("reactEasyCrop_Image","contain"===y&&"reactEasyCrop_Contain","horizontal-cover"===y&&"reactEasyCrop_Cover_Horizontal","vertical-cover"===y&&"reactEasyCrop_Cover_Vertical",_)},r,{src:n,ref:this.imageRef,style:DP(DP({},f),{transform:i||"translate(".concat(l,"px, ").concat(a,"px) rotate(").concat(c,"deg) scale(").concat(u,")")}),onLoad:this.onMediaLoad})):o&&ic.createElement("video",DP({autoPlay:!0,loop:!0,muted:!0,className:qP("reactEasyCrop_Video","contain"===y&&"reactEasyCrop_Contain","horizontal-cover"===y&&"reactEasyCrop_Cover_Horizontal","vertical-cover"===y&&"reactEasyCrop_Cover_Vertical",_)},r,{ref:this.videoRef,onLoadedMetadata:this.onMediaLoad,style:DP(DP({},f),{transform:i||"translate(".concat(l,"px, ").concat(a,"px) rotate(").concat(c,"deg) scale(").concat(u,")")}),controls:!1}),(Array.isArray(o)?o:[{src:o}]).map((function(e){return ic.createElement("source",DP({key:e.src},e))}))),this.state.cropSize&&ic.createElement("div",{style:DP(DP({},m),{width:this.state.cropSize.width,height:this.state.cropSize.height}),"data-testid":"cropper",className:qP("reactEasyCrop_CropArea","round"===d&&"reactEasyCrop_CropAreaRound",p&&"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}(ic.Component);function XP({url:e,width:t,height:n,naturalHeight:o,naturalWidth:r,borderProps:i}){const{isInProgress:s,editedUrl:l,position:a,zoom:c,aspect:u,setPosition:p,setCrop:h,setZoom:g,rotation:f}=EP(),[b,{width:k}]=(0,m.useResizeObserver)();let v=n||k*o/r;f%180==90&&(v=k*r/o);const _=(0,d.jsxs)("div",{className:ms("wp-block-image__crop-area",i?.className,{"is-applying":s}),style:{...i?.style,width:t||k,height:v},children:[(0,d.jsx)(YP,{image:l||e,disabled:s,minZoom:wP/100,maxZoom:CP/100,crop:a,zoom:c/100,aspect:u,onCropChange:e=>{p(e)},onCropComplete:e=>{h(e)},onZoomChange:e=>{g(100*e)}}),s&&(0,d.jsx)(ws.Spinner,{})]});return(0,d.jsxs)(d.Fragment,{children:[b,_]})}var QP=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"M13 5c-3.3 0-6 2.7-6 6 0 1.4.5 2.7 1.3 3.7l-3.8 3.8 1.1 1.1 3.8-3.8c1 .8 2.3 1.3 3.7 1.3 3.3 0 6-2.7 6-6S16.3 5 13 5zm0 10.5c-2.5 0-4.5-2-4.5-4.5s2-4.5 4.5-4.5 4.5 2 4.5 4.5-2 4.5-4.5 4.5z"})});function JP(){const{isInProgress:e,zoom:t,setZoom:n}=EP();return(0,d.jsx)(ws.Dropdown,{contentClassName:"wp-block-image__zoom",popoverProps:BP,renderToggle:({isOpen:t,onToggle:n})=>(0,d.jsx)(ws.ToolbarButton,{icon:QP,label:(0,T.__)("Zoom"),onClick:n,"aria-expanded":t,disabled:e}),renderContent:()=>(0,d.jsx)(ws.__experimentalDropdownContentWrapper,{paddingSize:"medium",children:(0,d.jsx)(ws.RangeControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,T.__)("Zoom"),min:wP,max:CP,value:Math.round(t),onChange:n})})})}var eR=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.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 tR(){const{isInProgress:e,rotateClockwise:t}=EP();return(0,d.jsx)(ws.ToolbarButton,{icon:eR,label:(0,T.__)("Rotate"),onClick:t,disabled:e})}function nR(){const{isInProgress:e,apply:t,cancel:n}=EP();return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(ws.ToolbarButton,{onClick:t,disabled:e,children:(0,T.__)("Apply")}),(0,d.jsx)(ws.ToolbarButton,{onClick:n,children:(0,T.__)("Cancel")})]})}function oR({id:e,url:t,width:n,height:o,naturalHeight:r,naturalWidth:i,onSaveImage:s,onFinishEditing:l,borderProps:a}){return(0,d.jsxs)(TP,{id:e,url:t,naturalWidth:i,naturalHeight:r,onSaveImage:s,onFinishEditing:l,children:[(0,d.jsx)(XP,{borderProps:a,url:t,width:n,height:o,naturalHeight:r,naturalWidth:i}),(0,d.jsxs)(Rs,{children:[(0,d.jsxs)(ws.ToolbarGroup,{children:[(0,d.jsx)(JP,{}),(0,d.jsx)(ws.ToolbarItem,{children:e=>(0,d.jsx)(AP,{toggleProps:e})}),(0,d.jsx)(tR,{})]}),(0,d.jsx)(ws.ToolbarGroup,{children:(0,d.jsx)(nR,{})})]})]})}const rR=[25,50,75,100],iR=()=>{};function sR(e,t,n){return{scaledWidth:Math.round(t*(e/100)),scaledHeight:Math.round(n*(e/100))}}function lR({imageSizeHelp:e,imageWidth:t,imageHeight:n,imageSizeOptions:o=[],isResizable:r=!0,slug:i,width:s,height:l,onChange:a,onChangeImage:c=iR}){const{currentHeight:u,currentWidth:p,updateDimension:g,updateDimensions:m}=function(e,t,n,o,r){const[i,s]=(0,h.useState)(t??o??""),[l,a]=(0,h.useState)(e??n??"");return(0,h.useEffect)((()=>{void 0===t&&void 0!==o&&s(o),void 0===e&&void 0!==n&&a(n)}),[o,n]),(0,h.useEffect)((()=>{void 0!==t&&Number.parseInt(t)!==Number.parseInt(i)&&s(t),void 0!==e&&Number.parseInt(e)!==Number.parseInt(l)&&a(e)}),[t,e]),{currentHeight:l,currentWidth:i,updateDimension:(e,t)=>{const n=""===t?void 0:parseInt(t,10);"width"===e?s(n):a(n),r({[e]:n})},updateDimensions:(e,t)=>{a(e??n),s(t??o),r({height:e,width:t})}}}(l,s,n,t,a),f=rR.find((e=>{const{scaledWidth:o,scaledHeight:r}=sR(e,t,n);return p===o&&u===r}));return(0,d.jsxs)(ws.__experimentalVStack,{className:"block-editor-image-size-control",spacing:"4",children:[o&&o.length>0&&(0,d.jsx)(ws.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,T.__)("Resolution"),value:i,options:o,onChange:c,help:e,size:"__unstable-large"}),r&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(ws.__experimentalHStack,{align:"baseline",spacing:"4",children:[(0,d.jsx)(ws.__experimentalNumberControl,{label:(0,T.__)("Width"),value:p,min:1,onChange:e=>g("width",e),size:"__unstable-large"}),(0,d.jsx)(ws.__experimentalNumberControl,{label:(0,T.__)("Height"),value:u,min:1,onChange:e=>g("height",e),size:"__unstable-large"})]}),(0,d.jsx)(ws.__experimentalToggleGroupControl,{label:(0,T.__)("Image size presets"),hideLabelFromVision:!0,onChange:e=>{if(void 0===e)return void m();const{scaledWidth:o,scaledHeight:r}=sR(e,t,n);m(r,o)},value:f,isBlock:!0,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,children:rR.map((e=>(0,d.jsx)(ws.__experimentalToggleGroupControlOption,{value:e,label:(0,T.sprintf)((0,T.__)("%d%%"),e)},e)))})]})]})}function aR({url:e,urlLabel:t,className:n}){const o=ms(n,"block-editor-url-popover__link-viewer-url");return e?(0,d.jsx)(ws.ExternalLink,{className:o,href:e,children:t||(0,Ua.filterURLForDisplay)((0,Ua.safeDecodeURI)(e))}):(0,d.jsx)("span",{className:o})}const{__experimentalPopoverLegacyPositionToPlacement:cR}=G(ws.privateApis),uR=(0,h.forwardRef)((({additionalControls:e,children:t,renderSettings:n,placement:o,focusOnMount:r="firstElement",position:i,...s},l)=>{let a;void 0!==i&&I()("`position` prop in wp.blockEditor.URLPopover",{since:"6.2",alternative:"`placement` prop"}),void 0!==o?a=o:void 0!==i&&(a=cR(i)),a=a||"bottom";const[c,u]=(0,h.useState)(!1),p=!!n&&c;return(0,d.jsxs)(ws.Popover,{ref:l,role:"dialog","aria-modal":"true","aria-label":(0,T.__)("Edit URL"),className:"block-editor-url-popover",focusOnMount:r,placement:a,shift:!0,variant:"toolbar",...s,children:[(0,d.jsx)("div",{className:"block-editor-url-popover__input-container",children:(0,d.jsxs)("div",{className:"block-editor-url-popover__row",children:[t,!!n&&(0,d.jsx)(ws.Button,{className:"block-editor-url-popover__settings-toggle",icon:yI,label:(0,T.__)("Link settings"),onClick:()=>{u(!c)},"aria-expanded":c,size:"compact"})]})}),p&&(0,d.jsx)("div",{className:"block-editor-url-popover__settings",children:n()}),e&&!p&&(0,d.jsx)("div",{className:"block-editor-url-popover__additional-controls",children:e})]})}));uR.LinkEditor=function({autocompleteRef:e,className:t,onChangeInputValue:n,value:o,...r}){return(0,d.jsxs)("form",{className:ms("block-editor-url-popover__link-editor",t),...r,children:[(0,d.jsx)(ac,{value:o,onChange:n,autocompleteRef:e}),(0,d.jsx)(ws.Button,{icon:tc,label:(0,T.__)("Apply"),type:"submit",size:"compact"})]})},uR.LinkViewer=function({className:e,linkClassName:t,onEditLinkClick:n,url:o,urlLabel:r,...i}){return(0,d.jsxs)("div",{className:ms("block-editor-url-popover__link-viewer",e),...i,children:[(0,d.jsx)(aR,{url:o,urlLabel:r,className:t}),n&&(0,d.jsx)(ws.Button,{icon:Wc,label:(0,T.__)("Edit"),onClick:n,size:"compact"})]})};var dR=uR;const pR=()=>{},hR=({src:e,onChange:t,onSubmit:n,onClose:o,popoverAnchor:r})=>(0,d.jsx)(dR,{anchor:r,onClose:o,children:(0,d.jsx)("form",{className:"block-editor-media-placeholder__url-input-form",onSubmit:n,children:(0,d.jsx)(ws.__experimentalInputControl,{__next40pxDefaultSize:!0,label:(0,T.__)("URL"),type:"text",hideLabelFromVision:!0,placeholder:(0,T.__)("Paste or type URL"),onChange:t,value:e,suffix:(0,d.jsx)(ws.__experimentalInputControlSuffixWrapper,{variant:"control",children:(0,d.jsx)(ws.Button,{size:"small",icon:tc,label:(0,T.__)("Apply"),type:"submit"})})})})}),gR=({src:e,onChangeSrc:t,onSelectURL:n})=>{const[o,r]=(0,h.useState)(null),[i,s]=(0,h.useState)(!1),l=()=>{s(!1),o?.focus()};return(0,d.jsxs)("div",{className:"block-editor-media-placeholder__url-input-container",children:[(0,d.jsx)(ws.Button,{__next40pxDefaultSize:!0,className:"block-editor-media-placeholder__button",onClick:()=>{s(!0)},isPressed:i,variant:"secondary","aria-haspopup":"dialog",ref:r,children:(0,T.__)("Insert from URL")}),i&&(0,d.jsx)(hR,{src:e,onChange:t,onSubmit:t=>{t.preventDefault(),e&&n&&(n(e),l())},onClose:l,popoverAnchor:o})]})};var mR=(0,ws.withFilters)("editor.MediaPlaceholder")((function({value:e={},allowedTypes:t,className:n,icon:o,labels:r={},mediaPreview:i,notices:s,isAppender:l,accept:a,addToGallery:c,multiple:u=!1,handleUpload:p=!0,disableDropZone:m,disableMediaButtons:f,onError:b,onSelect:k,onCancel:v,onSelectURL:_,onToggleFeaturedImage:y,onDoubleClick:x,onFilesPreUpload:S=pR,onHTMLDrop:w,children:C,mediaLibraryButton:B,placeholder:j,style:E}){w&&I()("wp.blockEditor.MediaPlaceholder onHTMLDrop prop",{since:"6.2",version:"6.4"});const M=(0,g.useSelect)((e=>{const{getSettings:t}=e(ji);return t().mediaUpload}),[]),[P,R]=(0,h.useState)("");(0,h.useEffect)((()=>{R(e?.src??"")}),[e?.src]);const A=n=>{if(!p||"function"==typeof p&&!p(n))return k(n);let o;if(S(n),u)if(c){let t=[];o=n=>{const o=(e??[]).filter((e=>e.id?!t.some((({id:t})=>Number(t)===Number(e.id))):!t.some((({urlSlug:t})=>e.url.includes(t)))));k(o.concat(n)),t=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])=>k(e);M({allowedTypes:t,filesList:n,onFileChange:o,onError:b,multiple:u})};async function N(e){const{blocks:n}=DS(e);if(!n?.length)return;const o=await Promise.all(n.map((e=>{const n=e.name.split("/")[1];return e.attributes.id?(e.attributes.type=n,e.attributes):new Promise(((o,r)=>{window.fetch(e.attributes.url).then((e=>e.blob())).then((i=>M({filesList:[i],additionalData:{title:e.attributes.title,alt_text:e.attributes.alt,caption:e.attributes.caption,type:n},onFileChange:([e])=>{e.id&&o(e)},allowedTypes:t,onError:r}))).catch((()=>o(e.attributes.url)))}))}))).catch((e=>b(e)));o?.length&&k(u?o:o[0])}const L=e=>{A(e.target.files)},D=j??(e=>{let{instructions:a,title:c}=r;if(M||_||(a=(0,T.__)("To edit this block, you need permission to upload media.")),void 0===a||void 0===c){const e=t??[],[n]=e,o=1===e.length,r=o&&"audio"===n,i=o&&"image"===n,s=o&&"video"===n;void 0===a&&M&&(a=(0,T.__)("Drag and drop an image or video, upload, or choose from your library."),r?a=(0,T.__)("Drag and drop an audio file, upload, or choose from your library."):i?a=(0,T.__)("Drag and drop an image, upload, or choose from your library."):s&&(a=(0,T.__)("Drag and drop a video, upload, or choose from your library."))),void 0===c&&(c=(0,T.__)("Media"),r?c=(0,T.__)("Audio"):i?c=(0,T.__)("Image"):s&&(c=(0,T.__)("Video")))}const u=ms("block-editor-media-placeholder",n,{"is-appender":l});return(0,d.jsxs)(ws.Placeholder,{icon:o,label:c,instructions:a,className:u,notices:s,onDoubleClick:x,preview:i,style:E,children:[e,C]})}),O=()=>m?null:(0,d.jsx)(ws.DropZone,{onFilesDrop:A,onDrop:N,isEligible:e=>{const n="wp-block:core/",o=[];for(const t of e.types)t.startsWith(n)&&o.push(t.slice(14));return o.every((e=>t.includes(e)))&&(!!u||1===o.length)}}),z=()=>v&&(0,d.jsx)(ws.Button,{__next40pxDefaultSize:!0,className:"block-editor-media-placeholder__cancel-button",title:(0,T.__)("Cancel"),variant:"link",onClick:v,children:(0,T.__)("Cancel")}),V=()=>_&&(0,d.jsx)(gR,{src:P,onChangeSrc:R,onSelectURL:_}),F=()=>y&&(0,d.jsx)("div",{className:"block-editor-media-placeholder__url-input-container",children:(0,d.jsx)(ws.Button,{__next40pxDefaultSize:!0,className:"block-editor-media-placeholder__button",onClick:y,variant:"secondary",children:(0,T.__)("Use featured image")})});return f?(0,d.jsx)(Xa,{children:O()}):(0,d.jsx)(Xa,{fallback:D(V()),children:(()=>{const n=B??(({open:e})=>(0,d.jsx)(ws.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:()=>{e()},children:(0,T.__)("Media Library")})),o=(0,d.jsx)(Ya,{addToGallery:c,gallery:u&&!(!t||0===t.length)&&t.every((e=>"image"===e||e.startsWith("image/"))),multiple:u,onSelect:k,allowedTypes:t,mode:"browse",value:Array.isArray(e)?e.map((({id:e})=>e)):e.id,render:n});if(M&&l)return(0,d.jsxs)(d.Fragment,{children:[O(),(0,d.jsx)(ws.FormFileUpload,{onChange:L,accept:a,multiple:!!u,render:({openFileDialog:e})=>{const t=(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(ws.Button,{__next40pxDefaultSize:!0,variant:"primary",className:ms("block-editor-media-placeholder__button","block-editor-media-placeholder__upload-button"),onClick:e,children:(0,T._x)("Upload","verb")}),o,V(),F(),z()]});return D(t)}})]});if(M){const e=(0,d.jsxs)(d.Fragment,{children:[O(),(0,d.jsx)(ws.FormFileUpload,{render:({openFileDialog:e})=>(0,d.jsx)(ws.Button,{__next40pxDefaultSize:!0,onClick:e,variant:"primary",className:ms("block-editor-media-placeholder__button","block-editor-media-placeholder__upload-button"),children:(0,T._x)("Upload","verb")}),onChange:L,accept:a,multiple:!!u}),o,V(),F(),z()]});return D(e)}return D(o)})()})}));var fR=({colorSettings:e,...t})=>{const n=e.map((e=>{if(!e)return e;const{value:t,onChange:n,...o}=e;return{...o,colorValue:t,onColorChange:n}}));return(0,d.jsx)(xP,{settings:n,gradients:[],disableCustomGradients:!0,...t})};const bR={placement:"bottom-start"};var kR=()=>(0,d.jsxs)(d.Fragment,{children:[["bold","italic","link","unknown"].map((e=>(0,d.jsx)(ws.Slot,{name:`RichText.ToolbarControls.${e}`},e))),(0,d.jsx)(ws.Slot,{name:"RichText.ToolbarControls",children:e=>{if(!e.length)return null;const t=e.map((([{props:e}])=>e)).some((({isActive:e})=>e));return(0,d.jsx)(ws.ToolbarItem,{children:n=>(0,d.jsx)(ws.DropdownMenu,{icon:yI,label:(0,T.__)("More"),toggleProps:{...n,className:ms(n.className,{"is-pressed":t}),description:(0,T.__)("Displays more block tools")},controls:xt(e.map((([{props:e}])=>e)),"title"),popoverProps:bR})})}})]});function vR({popoverAnchor:e}){return(0,d.jsx)(ws.Popover,{placement:"top",focusOnMount:!1,anchor:e,className:"block-editor-rich-text__inline-format-toolbar",__unstableSlotName:"block-toolbar",children:(0,d.jsx)(ET,{className:"block-editor-rich-text__inline-format-toolbar-group","aria-label":(0,T.__)("Format tools"),children:(0,d.jsx)(ws.ToolbarGroup,{children:(0,d.jsx)(kR,{})})})})}var _R=({inline:e,editableContentElement:t})=>e?(0,d.jsx)(vR,{popoverAnchor:t}):(0,d.jsx)(Rs,{group:"inline",children:(0,d.jsx)(kR,{})});function yR(e){return e(pe.store).getFormatTypes()}const xR=new Set(["a","audio","button","details","embed","iframe","input","label","select","textarea","video"]);function SR(e,t){return"object"!=typeof e?{[t]:e}:Object.fromEntries(Object.entries(e).map((([e,n])=>[`${t}.${e}`,n])))}function wR(e,t){return e[t]?e[t]:Object.keys(e).filter((e=>e.startsWith(t+"."))).reduce(((n,o)=>(n[o.slice(t.length+1)]=e[o],n)),{})}const CR=["`",'"',"'","“”","‘’"];function BR(e){let t=e.length;for(;t--;){const n=mr(e[t].attributes);if(n)return e[t].attributes[n]=e[t].attributes[n].toString().replace(gr,""),[e[t].clientId,n,0,0];const o=BR(e[t].innerBlocks);if(o)return o}return[]}function IR(e){if(!0===e||"p"===e||"li"===e)return!0===e?"p":e}function jR({allowedFormats:e,disableFormats:t}){return t?jR.EMPTY_ARRAY:e}jR.EMPTY_ARRAY=[];const ER=[e=>t=>{function n(n){const{inputType:o,data:r}=n,{value:i,onChange:s,registry:l}=e.current;if("insertText"!==o)return;if((0,pe.isCollapsed)(i))return;const a=(0,f.applyFilters)("blockEditor.wrapSelectionSettings",CR).find((([e,t])=>e===r||t===r));if(!a)return;const[c,u=c]=a,d=i.start,p=i.end+c.length;let h=(0,pe.insert)(i,c,d,d);h=(0,pe.insert)(h,u,p,p);const{__unstableMarkLastChangeAsPersistent:g,__unstableMarkAutomaticChange:m}=l.dispatch(ji);g(),s(h),m();const b={};for(const e in n)b[e]=n[e];b.data=u;const{ownerDocument:k}=t,{defaultView:v}=k,_=new v.InputEvent("input",b);window.queueMicrotask((()=>{n.target.dispatchEvent(_)})),n.preventDefault()}return t.addEventListener("beforeinput",n),()=>{t.removeEventListener("beforeinput",n)}},e=>t=>{function n(){const{getValue:t,onReplace:n,selectionChange:o,registry:r}=e.current;if(!n)return;const i=t(),{start:s,text:l}=i;if(" "!==l.slice(s-1,s))return;const a=l.slice(0,s).trim(),c=(0,p.getBlockTransforms)("from").filter((({type:e})=>"prefix"===e)),u=(0,p.findTransform)(c,(({prefix:e})=>a===e));if(!u)return;const d=(0,pe.toHTMLString)({value:(0,pe.insert)(i,gr,0,s)}),h=u.transform(d);return o(...BR([h])),n([h]),r.dispatch(ji).__unstableMarkAutomaticChange(),!0}function o(t){const{inputType:o,type:r}=t,{getValue:i,onChange:s,__unstableAllowPrefixTransformations:l,formatTypes:a,registry:c}=e.current;if("insertText"!==o&&"compositionend"!==r)return;if(l&&n())return;const u=i(),d=a.reduce(((e,{__unstableInputRule:t})=>(t&&(e=t(e)),e)),function(e){const t="tales of gutenberg",{start:n,text:o}=e;return n<18||o.slice(n-18,n).toLowerCase()!==t?e:(0,pe.insert)(e," 🐡🐢🦀🐤🦋🐘🐧🐹🦁🦄🦍🐼🐿🎃🐴🐝🐆🦕🦔🌱🍇π🍌🐉💧🥨🌌🍂🍠🥦🥚🥝🎟🥥🥒🛵🥖🍒🍯🎾🎲🐺🐚🐮⌛️")}(u)),{__unstableMarkLastChangeAsPersistent:p,__unstableMarkAutomaticChange:h}=c.dispatch(ji);d!==u&&(p(),s({...d,activeFormats:u.activeFormats}),h())}return t.addEventListener("input",o),t.addEventListener("compositionend",o),()=>{t.removeEventListener("input",o),t.removeEventListener("compositionend",o)}},e=>t=>{function n(t){if("insertReplacementText"!==t.inputType)return;const{registry:n}=e.current;n.dispatch(ji).__unstableMarkLastChangeAsPersistent()}return t.addEventListener("beforeinput",n),()=>{t.removeEventListener("beforeinput",n)}},()=>e=>{function t(e){(Wa.isKeyboardEvent.primary(e,"z")||Wa.isKeyboardEvent.primary(e,"y")||Wa.isKeyboardEvent.primaryShift(e,"z"))&&e.preventDefault()}return e.addEventListener("keydown",t),()=>{e.removeEventListener("keydown",t)}},e=>t=>{const{keyboardShortcuts:n}=e.current;function o(e){for(const t of n.current)t(e)}return t.addEventListener("keydown",o),()=>{t.removeEventListener("keydown",o)}},e=>t=>{const{inputEvents:n}=e.current;function o(e){for(const t of n.current)t(e)}return t.addEventListener("input",o),()=>{t.removeEventListener("input",o)}},e=>t=>{function n(t){const{keyCode:n}=t;if(t.defaultPrevented)return;if(n!==Wa.BACKSPACE&&n!==Wa.ESCAPE)return;const{registry:o}=e.current,{didAutomaticChange:r,getSettings:i}=o.select(ji),{__experimentalUndo:s}=i();s&&r()&&(t.preventDefault(),s())}return t.addEventListener("keydown",n),()=>{t.removeEventListener("keydown",n)}},e=>t=>{function n(n){const{disableFormats:o,onChange:r,value:i,formatTypes:s,tagName:l,onReplace:a,__unstableEmbedURLOnPaste:c,preserveWhiteSpace:u,pastePlainText:d}=e.current;if(!t.contains(n.target))return;if(n.defaultPrevented)return;const{plainText:h,html:g}=Ew(n);if(n.preventDefault(),window.console.log("Received HTML:\n\n",g),window.console.log("Received plain text:\n\n",h),o)return void r((0,pe.insert)(i,h));function m(e){const t=s.reduce(((e,{__unstablePasteRule:t})=>(t&&e===i&&(e=t(i,{html:g,plainText:h})),e)),i);if(t!==i)r(t);else{const t=(0,pe.create)({html:e});!function(e,t){if(t?.length){let n=e.formats.length;for(;n--;)e.formats[n]=[...t,...e.formats[n]||[]]}}(t,i.activeFormats),r((0,pe.insert)(i,t))}}if("true"===n.clipboardData.getData("rich-text"))return void m(g);if(d)return void r((0,pe.insert)(i,(0,pe.create)({text:h})));let f="INLINE";const b=h.trim();c&&(0,pe.isEmpty)(i)&&(0,Ua.isURL)(b)&&/^https?:/.test(b)&&(f="BLOCKS");const k=(0,p.pasteHandler)({HTML:g,plainText:h,mode:f,tagName:l,preserveWhiteSpace:u});"string"==typeof k?m(k):k.length>0&&a&&(0,pe.isEmpty)(i)&&a(k,k.length-1,-1)}const{defaultView:o}=t.ownerDocument;return o.addEventListener("paste",n),()=>{o.removeEventListener("paste",n)}},e=>t=>{function n(t){const{keyCode:n}=t;if(t.defaultPrevented)return;const{value:o,onMerge:r,onRemove:i}=e.current;if(n===Wa.DELETE||n===Wa.BACKSPACE){const{start:e,end:s,text:l}=o,a=n===Wa.BACKSPACE,c=o.activeFormats&&!!o.activeFormats.length;if(!(0,pe.isCollapsed)(o)||c||a&&0!==e||!a&&s!==l.length)return;r?r(!a):i&&(0,pe.isEmpty)(o)&&a&&i(!a),t.preventDefault()}}return t.addEventListener("keydown",n),()=>{t.removeEventListener("keydown",n)}},e=>t=>{function n(t){if(t.keyCode!==Wa.ENTER)return;const{onReplace:n,onSplit:o}=e.current;n&&o&&(t.__deprecatedOnSplit=!0)}function o(n){if(n.defaultPrevented)return;if(n.target!==t)return;if(n.keyCode!==Wa.ENTER)return;const{value:o,onChange:r,disableLineBreaks:i,onSplitAtEnd:s,onSplitAtDoubleLineEnd:l,registry:a}=e.current;n.preventDefault();const{text:c,start:u,end:d}=o;n.shiftKey?i||r((0,pe.insert)(o,"\n")):s&&u===d&&d===c.length?s():l&&u===d&&d===c.length&&"\n\n"===c.slice(-2)?a.batch((()=>{const e={...o};e.start=e.end-2,r((0,pe.remove)(e)),l()})):i||r((0,pe.insert)(o,"\n"))}const{defaultView:r}=t.ownerDocument;return r.addEventListener("keydown",o),t.addEventListener("keydown",n),()=>{r.removeEventListener("keydown",o),t.removeEventListener("keydown",n)}},e=>t=>{function n(){const{registry:n}=e.current;if(!n.select(ji).isMultiSelecting())return;const o=t.parentElement.closest('[contenteditable="true"]');o&&o.focus()}return t.addEventListener("focus",n),()=>{t.removeEventListener("focus",n)}}];function TR(e){const t=(0,h.useRef)(e);(0,h.useInsertionEffect)((()=>{t.current=e}));const n=(0,h.useMemo)((()=>ER.map((e=>e(t)))),[t]);return(0,m.useRefEffect)((t=>{if(!e.isSelected)return;const o=n.map((e=>e(t)));return()=>{o.forEach((e=>e()))}}),[n,e.isSelected])}const MR={},PR=Symbol("usesContext");function RR({onChange:e,onFocus:t,value:n,forwardedRef:o,settings:r}){const{name:i,edit:s,[PR]:l}=r,a=(0,h.useContext)(sv),c=(0,h.useMemo)((()=>l?Object.fromEntries(Object.entries(a).filter((([e])=>l.includes(e)))):MR),[l,a]);if(!s)return null;const u=(0,pe.getActiveFormat)(n,i),p=void 0!==u,g=(0,pe.getActiveObject)(n),m=void 0!==g&&g.type===i;return(0,d.jsx)(s,{isActive:p,activeAttributes:p&&u.attributes||{},isObjectActive:m,activeObjectAttributes:m&&g.attributes||{},value:n,onChange:e,onFocus:t,contentRef:o,context:c},i)}function AR({formatTypes:e,...t}){return e.map((e=>(0,ic.createElement)(RR,{settings:e,...t,key:e.name})))}function NR(e,t){if(WR.isEmpty(e)){const e=IR(t);return e?`<${e}></${e}>`:""}return Array.isArray(e)?(I()("wp.blockEditor.RichText value prop as children type",{since:"6.1",version:"6.3",alternative:"value prop as string",link:"https://developer.wordpress.org/block-editor/how-to-guides/block-tutorial/introducing-attributes-and-editable-fields/"}),p.children.toHTML(e)):"string"==typeof e?e:e.toHTMLString()}function LR({value:e,tagName:t,multiline:n,format:o,...r}){return e=(0,d.jsx)(h.RawHTML,{children:NR(e,n)}),t?(0,d.jsx)(t,{...r,children:e}):e}var DR=(0,h.forwardRef)((function({children:e,identifier:t,tagName:n="div",value:o="",onChange:r,multiline:i,...s},l){I()("wp.blockEditor.RichText multiline prop",{since:"6.1",version:"6.3",alternative:"nested blocks (InnerBlocks)",link:"https://developer.wordpress.org/block-editor/how-to-guides/block-tutorial/nested-blocks-inner-blocks/"});const{clientId:a}=C(),{getSelectionStart:c,getSelectionEnd:u}=(0,g.useSelect)(ji),{selectionChange:p}=(0,g.useDispatch)(ji),h=IR(i),m=`</${h}>${o=o||`<${h}></${h}>`}<${h}>`.split(`</${h}><${h}>`);function f(e){r(`<${h}>${e.join(`</${h}><${h}>`)}</${h}>`)}return m.shift(),m.pop(),(0,d.jsx)(n,{ref:l,children:m.map(((e,n)=>(0,d.jsx)(HR,{identifier:`${t}-${n}`,tagName:h,value:e,onChange:e=>{const t=m.slice();t[n]=e,f(t)},isSelected:void 0,onKeyDown:o=>{if(o.keyCode!==Wa.ENTER)return;o.preventDefault();const{offset:r}=c(),{offset:i}=u();if("number"!=typeof r||"number"!=typeof i)return;const s=(0,pe.create)({html:e});s.start=r,s.end=i;const l=(0,pe.split)(s).map((e=>(0,pe.toHTMLString)({value:e}))),d=m.slice();d.splice(n,1,...l),f(d),p(a,`${t}-${n+1}`,0,0)},onMerge:e=>{const o=m.slice();let r=0;if(e){if(!o[n+1])return;o.splice(n,2,o[n]+o[n+1]),r=o[n].length-1}else{if(!o[n-1])return;o.splice(n-1,2,o[n-1]+o[n]),r=o[n-1].length-1}f(o),p(a,`${t}-${n-(e?0:1)}`,r,r)},...s},n)))})}));const OR=(0,h.createContext)();OR.displayName="keyboardShortcutContext";const zR=(0,h.createContext)();zR.displayName="inputEventContext";const VR=Symbol("instanceId");function FR(e){const{__unstableMobileNoFocusOnMount:t,deleteEnter:n,placeholderTextColor:o,textAlign:r,selectionColor:i,tagsToEliminate:s,disableEditingMenu:l,fontSize:a,fontFamily:c,fontWeight:u,fontStyle:d,minWidth:p,maxWidth:h,disableSuggestions:g,disableAutocorrection:m,...f}=e;return f}function HR({children:e,tagName:t="div",value:n="",onChange:o,isSelected:r,multiline:i,inlineToolbar:s,wrapperClassName:l,autocompleters:a,onReplace:c,placeholder:u,allowedFormats:f,withoutInteractiveFormatting:b,onRemove:k,onMerge:v,onSplit:y,__unstableOnSplitAtEnd:x,__unstableOnSplitAtDoubleLineEnd:S,identifier:w,preserveWhiteSpace:B,__unstablePastePlainText:j,__unstableEmbedURLOnPaste:M,__unstableDisableFormats:P,disableLineBreaks:R,__unstableAllowPrefixTransformations:A,readOnly:N,...L},D){L=FR(L),y&&I()("wp.blockEditor.RichText onSplit prop",{since:"6.4",alternative:'block.json support key: "splitting"'});const O=(0,m.useInstanceId)(HR),z=(0,h.useRef)(),V=C(),{clientId:H,isSelected:U}=V,G=V[_],$=(0,h.useContext)(sv),{bindableAttributes:W}=(0,h.useContext)(pv),K=(0,g.useRegistry)(),{selectionStart:Z,selectionEnd:q,isSelected:Y,isContentOnly:X}=(0,g.useSelect)((e=>{if(!U)return{isSelected:!1};const{getSelectionStart:t,getSelectionEnd:n,getBlockEditingMode:o}=e(ji),i=t(),s=n();let l;return void 0===r?l=i.clientId===H&&s.clientId===H&&(w?i.attributeKey===w:i[VR]===O):r&&(l=i.clientId===H),{selectionStart:l?i.offset:void 0,selectionEnd:l?s.offset:void 0,isSelected:l,isContentOnly:"contentOnly"===o(H)}}),[H,w,O,r,U]),{disableBoundBlock:Q,bindingsPlaceholder:J,bindingsLabel:ee}=(0,g.useSelect)((e=>{if(!G?.[w]||!W)return{};const t=G[w],o=(0,p.getBlockBindingsSource)(t.source),r={};if(o?.usesContext?.length)for(const e of o.usesContext)r[e]=$[e];const i=!o?.canUserEditValue?.({select:e,context:r,args:t.args});if(n.length>0)return{disableBoundBlock:i,bindingsPlaceholder:null,bindingsLabel:null};const{getBlockAttributes:s}=e(ji),l=s(H);let a=null;if(o?.getFieldsList){const n=o.getFieldsList({select:e,context:r});a=n?.find((e=>E()(e.args,t?.args)))?.label}const c=a??o?.label,u=i?c:(0,T.sprintf)((0,T.__)("Add %s"),c),d=i?t?.args?.key||o?.label:(0,T.sprintf)((0,T.__)("Empty %s; start writing to edit its value"),t?.args?.key||o?.label);return{disableBoundBlock:i,bindingsPlaceholder:l?.placeholder||u,bindingsLabel:d}}),[G,w,W,n,H,$]),te=N||Q||!!$?.["pattern/overrides"]&&!("core/pattern-overrides"===G?.__default?.source),{getSelectionStart:ne,getSelectionEnd:oe,getBlockRootClientId:re}=(0,g.useSelect)(ji),{selectionChange:ie}=(0,g.useDispatch)(ji),se=jR({allowedFormats:f,disableFormats:P}),le=!se||se.length>0,ae=(0,h.useCallback)(((e,t)=>{const n={},o=void 0===e&&void 0===t,r={clientId:H,[w?"attributeKey":VR]:w||O};if("number"==typeof e||o){if(void 0===t&&re(H)!==re(oe().clientId))return;n.start={...r,offset:e}}if("number"==typeof t||o){if(void 0===e&&re(H)!==re(ne().clientId))return;n.end={...r,offset:t}}ie(n)}),[H,re,oe,ne,w,O,ie]),{formatTypes:ce,prepareHandlers:ue,valueHandlers:de,changeHandlers:he,dependencies:ge}=function({clientId:e,identifier:t,allowedFormats:n,withoutInteractiveFormatting:o,disableNoneEssentialFormatting:r=!1}){const i=(0,g.useSelect)(yR,[]),s=(0,h.useMemo)((()=>i.filter((({name:e,interactive:t,tagName:i,[F]:s})=>!(n&&!n.includes(e)||r&&!s||o&&(t||xR.has(i)))))),[i,n,r,o]),l=(0,g.useSelect)((n=>s.reduce(((o,r)=>r.__experimentalGetPropsForEditableTreePreparation?{...o,...SR(r.__experimentalGetPropsForEditableTreePreparation(n,{richTextIdentifier:t,blockClientId:e}),r.name)}:o),{})),[s,e,t]),a=(0,g.useDispatch)(),c=[],u=[],d=[],p=[];for(const e in l)p.push(l[e]);return s.forEach((n=>{if(n.__experimentalCreatePrepareEditableTree){const o=n.__experimentalCreatePrepareEditableTree(wR(l,n.name),{richTextIdentifier:t,blockClientId:e});n.__experimentalCreateOnChangeEditableValue?u.push(o):c.push(o)}if(n.__experimentalCreateOnChangeEditableValue){let o={};n.__experimentalGetPropsForEditableTreeChangeHandler&&(o=n.__experimentalGetPropsForEditableTreeChangeHandler(a,{richTextIdentifier:t,blockClientId:e}));const r=wR(l,n.name);d.push(n.__experimentalCreateOnChangeEditableValue({..."object"==typeof r?r:{},...o},{richTextIdentifier:t,blockClientId:e}))}})),{formatTypes:s,prepareHandlers:c,valueHandlers:u,changeHandlers:d,dependencies:p}}({clientId:H,identifier:w,allowedFormats:se,withoutInteractiveFormatting:b,disableNoneEssentialFormatting:X});function me(e){return ce.forEach((t=>{t.__experimentalCreatePrepareEditableTree&&(e=(0,pe.removeFormat)(e,t.name,0,e.text.length))})),e.formats}const{value:fe,getValue:be,onChange:ke,ref:ve}=(0,pe.__unstableUseRichText)({value:n,onChange(e,{__unstableFormats:t,__unstableText:n}){o(e),Object.values(he).forEach((e=>{e(t,n)}))},selectionStart:Z,selectionEnd:q,onSelectionChange:ae,placeholder:J||u,__unstableIsSelected:Y,__unstableDisableFormats:P,preserveWhiteSpace:B,__unstableDependencies:[...ge,t],__unstableAfterParse:function(e){return de.reduce(((t,n)=>n(t,e.text)),e.formats)},__unstableBeforeSerialize:me,__unstableAddInvisibleFormats:function(e){return ue.reduce(((t,n)=>n(t,e.text)),e.formats)}}),_e=function(e){return(0,ws.__unstableUseAutocompleteProps)({...e,completers:bj(e)})}({onReplace:c,completers:a,record:fe,onChange:ke});!function({html:e,value:t}){const n=(0,h.useRef)(),o=!!t.activeFormats?.length,{__unstableMarkLastChangeAsPersistent:r}=(0,g.useDispatch)(ji);(0,h.useLayoutEffect)((()=>{if(n.current){if(n.current!==t.text){const e=window.setTimeout((()=>{r()}),1e3);return n.current=t.text,()=>{window.clearTimeout(e)}}r()}else n.current=t.text}),[e,o])}({html:n,value:fe});const ye=(0,h.useRef)(new Set),xe=(0,h.useRef)(new Set);function Se(){z.current?.focus()}const we=t;return(0,d.jsxs)(d.Fragment,{children:[Y&&(0,d.jsx)(OR.Provider,{value:ye,children:(0,d.jsx)(zR.Provider,{value:xe,children:(0,d.jsxs)(ws.Popover.__unstableSlotNameProvider,{value:"__unstable-block-tools-after",children:[e&&e({value:fe,onChange:ke,onFocus:Se}),(0,d.jsx)(AR,{value:fe,onChange:ke,onFocus:Se,formatTypes:ce,forwardedRef:z})]})})}),Y&&le&&(0,d.jsx)(_R,{inline:s,editableContentElement:z.current}),(0,d.jsx)(we,{role:"textbox","aria-multiline":!R,"aria-readonly":te,...L,draggable:void 0,"aria-label":ee||L["aria-label"]||u,..._e,ref:(0,m.useMergeRefs)([ve,D,_e.ref,L.ref,TR({registry:K,getValue:be,onChange:ke,__unstableAllowPrefixTransformations:A,formatTypes:ce,onReplace:c,selectionChange:ie,isSelected:Y,disableFormats:P,value:fe,tagName:t,onSplit:y,__unstableEmbedURLOnPaste:M,pastePlainText:j,onMerge:v,onRemove:k,removeEditorOnlyFormats:me,disableLineBreaks:R,onSplitAtEnd:x,onSplitAtDoubleLineEnd:S,keyboardShortcuts:ye,inputEvents:xe}),z]),contentEditable:!te,suppressContentEditableWarning:!0,className:ms("block-editor-rich-text__editable",L.className,"rich-text"),tabIndex:0!==L.tabIndex||te?L.tabIndex:null,"data-wp-block-attribute-key":w})]})}const UR=(GR=(0,h.forwardRef)(HR),(0,h.forwardRef)(((e,t)=>{let n=e.value,o=e.onChange;Array.isArray(n)&&(I()("wp.blockEditor.RichText value prop as children type",{since:"6.1",version:"6.3",alternative:"value prop as string",link:"https://developer.wordpress.org/block-editor/how-to-guides/block-tutorial/introducing-attributes-and-editable-fields/"}),n=p.children.toHTML(e.value),o=t=>e.onChange(p.children.fromDOM((0,pe.__unstableCreateElement)(document,t).childNodes)));const r=e.multiline?DR:GR;return(0,d.jsx)(r,{...e,value:n,onChange:o,ref:t})})));var GR;UR.Content=LR,UR.isEmpty=e=>!e||0===e.length;const $R=(0,h.forwardRef)(((e,t)=>{if(C()[y]){const{children:n,tagName:o="div",value:r,onChange:i,isSelected:s,multiline:l,inlineToolbar:a,wrapperClassName:c,autocompleters:u,onReplace:p,placeholder:h,allowedFormats:g,withoutInteractiveFormatting:m,onRemove:f,onMerge:b,onSplit:k,__unstableOnSplitAtEnd:v,__unstableOnSplitAtDoubleLineEnd:_,identifier:y,preserveWhiteSpace:x,__unstablePastePlainText:S,__unstableEmbedURLOnPaste:w,__unstableDisableFormats:C,disableLineBreaks:B,__unstableAllowPrefixTransformations:I,readOnly:j,...E}=FR(e);return(0,d.jsx)(o,{ref:t,...E,dangerouslySetInnerHTML:{__html:NR(r,l)}})}return(0,d.jsx)(UR,{ref:t,...e,readOnly:!1})}));$R.Content=LR,$R.isEmpty=e=>!e||0===e.length;var WR=$R;const KR=(0,h.forwardRef)(((e,t)=>(0,d.jsx)(WR,{ref:t,...e,__unstableDisableFormats:!0})));KR.Content=({value:e="",tagName:t="div",...n})=>(0,d.jsx)(t,{...n,children:e});var ZR=KR;var qR=(0,h.forwardRef)((({__experimentalVersion:e,...t},n)=>{if(2===e)return(0,d.jsx)(ZR,{ref:n,...t});const{className:o,onChange:r,...i}=t;return(0,d.jsx)(Ev.A,{ref:n,className:ms("block-editor-plain-text",o),onChange:e=>r(e.target.value),...i})}));function YR({property:e,viewport:t,desc:n}){const o=(0,m.useInstanceId)(YR),r=n||(0,T.sprintf)((0,T._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."),e,t.label);return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("span",{"aria-describedby":`rbc-desc-${o}`,children:t.label}),(0,d.jsx)(ws.VisuallyHidden,{as:"span",id:`rbc-desc-${o}`,children:r})]})}var XR=function(e){const{title:t,property:n,toggleLabel:o,onIsResponsiveChange:r,renderDefaultControl:i,renderResponsiveControls:s,isResponsive:l=!1,defaultLabel:a={id:"all",label:(0,T._x)("All","screen sizes")},viewports:c=[{id:"small",label:(0,T.__)("Small screens")},{id:"medium",label:(0,T.__)("Medium screens")},{id:"large",label:(0,T.__)("Large screens")}]}=e;if(!t||!n||!i)return null;const u=o||(0,T.sprintf)((0,T.__)("Use the same %s on all screen sizes."),n),p=(0,T.__)("Choose whether to use the same value for all screen sizes or a unique value for each screen size."),g=i((0,d.jsx)(YR,{property:n,viewport:a}),a);return(0,d.jsxs)("fieldset",{className:"block-editor-responsive-block-control",children:[(0,d.jsx)("legend",{className:"block-editor-responsive-block-control__title",children:t}),(0,d.jsxs)("div",{className:"block-editor-responsive-block-control__inner",children:[(0,d.jsx)(ws.ToggleControl,{__nextHasNoMarginBottom:!0,className:"block-editor-responsive-block-control__toggle",label:u,checked:!l,onChange:r,help:p}),(0,d.jsxs)("div",{className:ms("block-editor-responsive-block-control__group",{"is-responsive":l}),children:[!l&&g,l&&(s?s(c):c.map((e=>(0,d.jsx)(h.Fragment,{children:i((0,d.jsx)(YR,{property:n,viewport:e}),e)},e.id))))]})]})]})};function QR({character:e,type:t,onUse:n}){const o=(0,h.useContext)(OR),r=(0,h.useRef)();return r.current=n,(0,h.useEffect)((()=>{function n(n){Wa.isKeyboardEvent[t](n,e)&&(r.current(),n.preventDefault())}return o.current.add(n),()=>{o.current.delete(n)}}),[e,t]),null}function JR({name:e,shortcutType:t,shortcutCharacter:n,...o}){let r,i="RichText.ToolbarControls";return e&&(i+=`.${e}`),t&&n&&(r=Wa.displayShortcut[t](n)),(0,d.jsx)(ws.Fill,{name:i,children:(0,d.jsx)(ws.ToolbarButton,{...o,shortcut:r})})}function eA({inputType:e,onInput:t}){const n=(0,h.useContext)(zR),o=(0,h.useRef)();return o.current=t,(0,h.useEffect)((()=>{function t(t){t.inputType===e&&(o.current(),t.preventDefault())}return n.current.add(t),()=>{n.current.delete(t)}}),[e]),null}function tA({units:e,...t}){const[n]=Ti("spacing.units"),o=(0,ws.__experimentalUseCustomUnits)({availableUnits:n||["%","px","em","rem","vw"],units:e});return(0,d.jsx)(ws.__experimentalUnitControl,{units:o,...t})}var nA=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.Path,{d:"M20 11.2H6.8l3.7-3.7-1-1L3.9 12l5.6 5.5 1-1-3.7-3.7H20z"})});var oA=function({url:e,onChange:t}){const[n,o]=(0,h.useReducer)((e=>!e),!1);return(0,d.jsxs)("div",{className:"block-editor-url-input__button",children:[(0,d.jsx)(ws.Button,{size:"compact",icon:Ld,label:e?(0,T.__)("Edit link"):(0,T.__)("Insert link"),onClick:o,className:"components-toolbar__control",isPressed:!!e}),n&&(0,d.jsx)("form",{className:"block-editor-url-input__button-modal",onSubmit:e=>{e.preventDefault(),o()},children:(0,d.jsxs)("div",{className:"block-editor-url-input__button-modal-line",children:[(0,d.jsx)(ws.Button,{__next40pxDefaultSize:!0,className:"block-editor-url-input__back",icon:nA,label:(0,T.__)("Close"),onClick:o}),(0,d.jsx)(ac,{value:e||"",onChange:t,suffix:(0,d.jsx)(ws.__experimentalInputControlSuffixWrapper,{variant:"control",children:(0,d.jsx)(ws.Button,{size:"small",icon:tc,label:(0,T.__)("Submit"),type:"submit"})})})]})})]})},rA=(0,d.jsx)(ue.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,d.jsx)(ue.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"})});const iA="none",sA="custom",lA="media",aA="attachment",cA=["noreferrer","noopener"],uA=({linkDestination:e,onChangeUrl:t,url:n,mediaType:o="image",mediaUrl:r,mediaLink:i,linkTarget:s,linkClass:l,rel:a,showLightboxSetting:c,lightboxEnabled:u,onSetLightbox:p,resetLightbox:g})=>{const[m,f]=(0,h.useState)(!1),[b,k]=(0,h.useState)(null),[v,_]=(0,h.useState)(!1),[y,x]=(0,h.useState)(null),S=(0,h.useRef)(null),w=(0,h.useRef)();(0,h.useEffect)((()=>{if(!w.current)return;(Ga.focus.focusable.find(w.current)[0]||w.current).focus()}),[v,n,u]);const C=()=>{e!==lA&&e!==aA||x(""),_(!0)},B=()=>{_(!1)},I=()=>{const e=[{linkDestination:lA,title:(0,T.__)("Link to image file"),url:"image"===o?r:void 0,icon:rA}];return"image"===o&&i&&e.push({linkDestination:aA,title:(0,T.__)("Link to attachment page"),url:"image"===o?i:void 0,icon:pc}),e},j=(0,d.jsxs)(ws.__experimentalVStack,{spacing:"3",children:[(0,d.jsx)(ws.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,T.__)("Open in new tab"),onChange:e=>{const n=(e=>{const t=e?"_blank":void 0;let n;if(t){const e=(a??"").split(" ");cA.forEach((t=>{e.includes(t)||e.push(t)})),n=e.join(" ")}else{const e=(a??"").split(" ").filter((e=>!1===cA.includes(e)));n=e.length?e.join(" "):void 0}return{linkTarget:t,rel:n}})(e);t(n)},checked:"_blank"===s}),(0,d.jsx)(ws.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,T.__)("Link relation"),value:a??"",onChange:e=>{t({rel:e})},help:(0,h.createInterpolateElement)((0,T.__)("The <a>Link Relation</a> attribute defines the relationship between a linked resource and the current document."),{a:(0,d.jsx)(ws.ExternalLink,{href:"https://developer.mozilla.org/docs/Web/HTML/Attributes/rel"})})}),(0,d.jsx)(ws.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,T.__)("Link CSS class"),value:l||"",onChange:e=>{t({linkClass:e})}})]}),E=null!==y?y:n,M=!u||u&&!c,P=!E&&M,R=(I().find((t=>t.linkDestination===e))||{}).title;return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(ws.ToolbarButton,{icon:Ld,className:"components-toolbar__control",label:(0,T.__)("Link"),"aria-expanded":m,onClick:()=>{f(!0)},ref:k,isActive:!!n||u&&c}),m&&(0,d.jsx)(dR,{ref:w,anchor:b,onFocusOutside:e=>{const t=S.current;t&&t.contains(e.target)||(f(!1),x(null),B())},onClose:()=>{x(null),B(),f(!1)},renderSettings:M?()=>j:null,additionalControls:P&&(0,d.jsxs)(ws.NavigableMenu,{children:[I().map((e=>(0,d.jsx)(ws.MenuItem,{icon:e.icon,iconPosition:"left",onClick:()=>{x(null),(e=>{const n=I();let o;o=e?(n.find((t=>t.url===e))||{linkDestination:sA}).linkDestination:iA,t({linkDestination:o,href:e})})(e.url),B()},children:e.title},e.linkDestination))),c&&(0,d.jsx)(ws.MenuItem,{className:"block-editor-url-popover__expand-on-click",icon:vj,info:(0,T.__)("Scale the image with a lightbox effect."),iconPosition:"left",onClick:()=>{x(null),t({linkDestination:iA,href:""}),p?.(!0),B()},children:(0,T.__)("Enlarge on click")},"expand-on-click")]}),offset:13,children:u&&c&&!n&&!v?(0,d.jsxs)("div",{className:"block-editor-url-popover__expand-on-click",children:[(0,d.jsx)(Ol,{icon:vj}),(0,d.jsxs)("div",{className:"text",children:[(0,d.jsx)("p",{children:(0,T.__)("Enlarge on click")}),(0,d.jsx)("p",{className:"description",children:(0,T.__)("Scales the image with a lightbox effect")})]}),(0,d.jsx)(ws.Button,{icon:ec,label:(0,T.__)("Disable enlarge on click"),onClick:()=>{p?.(!1)},size:"compact"})]}):!n||v?(0,d.jsx)(dR.LinkEditor,{className:"block-editor-format-toolbar__link-container-content",value:E,onChangeInputValue:x,onSubmit:e=>{if(y){const e=I().find((e=>e.url===y))?.linkDestination||sA;t({href:(0,Ua.prependHTTP)(y),linkDestination:e,lightbox:{enabled:!1}})}B(),x(null),e.preventDefault()},autocompleteRef:S}):n&&!v?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(dR.LinkViewer,{className:"block-editor-format-toolbar__link-container-content",url:n,onEditLinkClick:C,urlLabel:R}),(0,d.jsx)(ws.Button,{icon:ec,label:(0,T.__)("Remove link"),onClick:()=>{t({linkDestination:iA,href:""}),g?.()},size:"compact"})]}):void 0})]})};function dA(){return I()("wp.blockEditor.PreviewOptions",{version:"6.5"}),null}function pA(e){const[t,n]=(0,h.useState)(window.innerWidth);(0,h.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",n="40px",r="auto";switch(e){case"Tablet":case"Mobile":return{width:o(e),marginTop:n,marginBottom:n,marginLeft:r,marginRight:r,height:t,overflowY:"auto"};default:return{marginLeft:r,marginRight:r}}})(e)}function hA({clientId:e}){const{updateBlockAttributes:t}=(0,g.useDispatch)(ji),{attributes:n}=(0,g.useSelect)((t=>({attributes:t(ji).getBlockAttributes(e)})),[e]);return n?.metadata?.patternName?(0,d.jsx)(ws.Button,{className:"block-editor-block-inspector-edit-contents-button",__next40pxDefaultSize:!0,variant:"secondary",onClick:()=>{const{patternName:o,...r}=n?.metadata??{};t(e,{...n,metadata:r})},children:(0,T.__)("Edit contents")}):null}function gA(){const e=(0,g.useSelect)((e=>e(ji).getBlockSelectionStart()),[]),t=(0,h.useRef)();fh(e,t);return e?(0,d.jsx)(ws.Button,{__next40pxDefaultSize:!0,variant:"secondary",className:"block-editor-skip-to-selected-block",onClick:()=>{t.current?.focus()},children:(0,T.__)("Skip to the selected block")}):null}function mA(){const e=(0,g.useSelect)((e=>e(ji).getSelectedBlockCount()),[]);return(0,d.jsxs)(ws.__experimentalHStack,{justify:"flex-start",spacing:2,className:"block-editor-multi-selection-inspector__card",children:[(0,d.jsx)(Vu,{icon:qj,showColors:!0}),(0,d.jsx)("div",{className:"block-editor-multi-selection-inspector__card-title",children:(0,T.sprintf)((0,T._n)("%d Block","%d Blocks",e),e)})]})}var fA=(0,d.jsx)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(ue.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"})}),bA=(0,d.jsx)(ue.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,d.jsx)(ue.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M20 12a8 8 0 1 1-16 0 8 8 0 0 1 16 0Zm-1.5 0a6.5 6.5 0 0 1-6.5 6.5v-13a6.5 6.5 0 0 1 6.5 6.5Z"})});const kA={name:"settings",title:(0,T.__)("Settings"),value:"settings",icon:fA},vA={name:"styles",title:(0,T.__)("Styles"),value:"styles",icon:bA},_A={name:"content",title:(0,T.__)("Content"),value:"content",icon:pc},yA={name:"list",title:(0,T.__)("List View"),value:"list-view",icon:nM};var xA=()=>{const e=(0,ws.__experimentalUseSlotFills)(Va.slotName),t=(0,ws.__experimentalUseSlotFills)(Pa.name),n=Boolean(e&&e.length),o=Boolean(t&&t.length);return n||o?(0,d.jsxs)(ws.PanelBody,{className:"block-editor-block-inspector__advanced",title:(0,T.__)("Advanced"),initialOpen:!1,children:[(0,d.jsx)(Fa.Slot,{group:"advanced"}),(0,d.jsx)(Pa.Slot,{})]}):null};const SA=()=>{const{selectedClientIds:e,selectedBlocks:t,hasPositionAttribute:n}=(0,g.useSelect)((e=>{const{getBlocksByClientId:t,getSelectedBlockClientIds:n}=e(ji),o=n(),r=t(o);return{selectedClientIds:o,selectedBlocks:r,hasPositionAttribute:r?.some((({attributes:e})=>!!e?.style?.position?.type))}}),[]),{updateBlockAttributes:o}=(0,g.useDispatch)(ji),r=Ji();function i(){if(!e?.length||!t?.length)return;const n=Object.fromEntries(t?.map((({clientId:e,attributes:t})=>[e,{style:fs({...t?.style,position:{...t?.style?.position,type:void 0,top:void 0,right:void 0,bottom:void 0,left:void 0}})}])));o(e,n,!0)}return(0,d.jsx)(ws.__experimentalToolsPanel,{className:"block-editor-block-inspector__position",label:(0,T.__)("Position"),resetAll:i,dropdownMenuProps:r,children:(0,d.jsx)(ws.__experimentalToolsPanelItem,{isShownByDefault:n,label:(0,T.__)("Position"),hasValue:()=>n,onDeselect:i,children:(0,d.jsx)(Fa.Slot,{group:"position"})})})};var wA=()=>{const e=(0,ws.__experimentalUseSlotFills)(Ma.position.name);return Boolean(e&&e.length)?(0,d.jsx)(SA,{}):null};var CA=({showAdvancedControls:e=!1})=>(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(Fa.Slot,{}),(0,d.jsx)(wA,{}),(0,d.jsx)(Fa.Slot,{group:"bindings"}),e&&(0,d.jsx)("div",{children:(0,d.jsx)(xA,{})})]});var BA=({blockName:e,clientId:t,hasBlockStyles:n,isSectionBlock:o})=>{const r=Ap({blockName:e});return(0,d.jsxs)(d.Fragment,{children:[n&&(0,d.jsx)("div",{children:(0,d.jsx)(ws.PanelBody,{title:(0,T.__)("Styles"),children:(0,d.jsx)(VM,{clientId:t})})}),!o&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(Fa.Slot,{group:"color",label:(0,T.__)("Color"),className:"color-block-support-panel__inner-wrapper"}),(0,d.jsx)(Fa.Slot,{group:"background",label:(0,T.__)("Background image")}),(0,d.jsx)(Fa.Slot,{group:"filter"}),(0,d.jsx)(Fa.Slot,{group:"typography",label:(0,T.__)("Typography")}),(0,d.jsx)(Fa.Slot,{group:"dimensions",label:(0,T.__)("Dimensions")}),(0,d.jsx)(Fa.Slot,{group:"border",label:r}),(0,d.jsx)(Fa.Slot,{group:"styles"})]})]})};function IA({clientIds:e,onSelect:t}){return e.length?(0,d.jsx)(ws.__experimentalVStack,{spacing:1,children:e.map((e=>(0,d.jsx)(jA,{onSelect:t,clientId:e},e)))}):null}function jA({clientId:e,onSelect:t}){const n=Xf(e),o=Sj({clientId:e,context:"list-view"}),{isSelected:r}=(0,g.useSelect)((t=>{const{isBlockSelected:n,hasSelectedInnerBlock:o}=t(ji);return{isSelected:n(e)||o(e,!0)}}),[e]),{selectBlock:i}=(0,g.useDispatch)(ji);return(0,d.jsx)(ws.Button,{__next40pxDefaultSize:!0,isPressed:r,onClick:async()=>{await i(e),t&&t(e)},children:(0,d.jsxs)(ws.Flex,{children:[(0,d.jsx)(ws.FlexItem,{children:(0,d.jsx)(Vu,{icon:n?.icon})}),(0,d.jsx)(ws.FlexBlock,{style:{textAlign:"left"},children:(0,d.jsx)(ws.__experimentalTruncate,{children:o})})]})})}var EA=({contentClientIds:e})=>e&&0!==e.length?(0,d.jsx)(ws.PanelBody,{title:(0,T.__)("Content"),children:(0,d.jsx)(IA,{clientIds:e})}):null;const TA=["core/navigation"];var MA=e=>!TA.includes(e);const{Tabs:PA}=G(ws.privateApis);function RA({blockName:e,clientId:t,hasBlockStyles:n,tabs:o,isSectionBlock:r,contentClientIds:i}){const s=(0,g.useSelect)((e=>e(hr.store).get("core","showIconLabels")),[]),l=MA(e)?void 0:yA.name,[a,c]=(0,h.useState)(l??o[0]?.name);return(0,h.useEffect)((()=>{if(!l&&o?.length&&a){o.find((e=>e.name===a))||c(o[0].name)}}),[o,a,l]),(0,d.jsx)("div",{className:"block-editor-block-inspector__tabs",children:(0,d.jsxs)(PA,{defaultTabId:l,selectedTabId:a,onSelect:c,children:[(0,d.jsx)(PA.TabList,{children:o.map((e=>s?(0,d.jsx)(PA.Tab,{tabId:e.name,children:e.title},e.name):(0,d.jsx)(ws.Tooltip,{text:e.title,children:(0,d.jsx)(PA.Tab,{tabId:e.name,"aria-label":e.title,children:(0,d.jsx)(ws.Icon,{icon:e.icon})})},e.name)))}),(0,d.jsx)(PA.TabPanel,{tabId:kA.name,focusable:!1,children:(0,d.jsx)(CA,{showAdvancedControls:!!e})}),(0,d.jsx)(PA.TabPanel,{tabId:vA.name,focusable:!1,children:(0,d.jsx)(BA,{blockName:e,clientId:t,hasBlockStyles:n,isSectionBlock:r})}),(0,d.jsx)(PA.TabPanel,{tabId:_A.name,focusable:!1,children:(0,d.jsx)(EA,{contentClientIds:i})}),(0,d.jsx)(PA.TabPanel,{tabId:yA.name,focusable:!1,children:(0,d.jsx)(Fa.Slot,{group:"list"})})]},t)})}const AA=[];function NA({clientId:e}){return(0,d.jsx)(ws.PanelBody,{title:(0,T.__)("Styles"),children:(0,d.jsx)(VM,{clientId:e})})}function LA({blockName:e,showAdvancedControls:t=!0,showPositionControls:n=!0,showListControls:o=!1,showBindingsControls:r=!0}){const i=Ap({blockName:e});return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(Fa.Slot,{}),o&&(0,d.jsx)(Fa.Slot,{group:"list"}),(0,d.jsx)(Fa.Slot,{group:"color",label:(0,T.__)("Color"),className:"color-block-support-panel__inner-wrapper"}),(0,d.jsx)(Fa.Slot,{group:"background",label:(0,T.__)("Background image")}),(0,d.jsx)(Fa.Slot,{group:"typography",label:(0,T.__)("Typography")}),(0,d.jsx)(Fa.Slot,{group:"dimensions",label:(0,T.__)("Dimensions")}),(0,d.jsx)(Fa.Slot,{group:"border",label:i}),(0,d.jsx)(Fa.Slot,{group:"styles"}),n&&(0,d.jsx)(wA,{}),r&&(0,d.jsx)(Fa.Slot,{group:"bindings"}),t&&(0,d.jsx)("div",{children:(0,d.jsx)(xA,{})})]})}const DA=({animate:e,wrapper:t,children:n})=>e?t(n):n,OA=({blockInspectorAnimationSettings:e,selectedBlockClientId:t,children:n})=>{const o=e&&"leftToRight"===e.enterDirection?-50:50;return(0,d.jsx)(ws.__unstableMotion.div,{animate:{x:0,opacity:1,transition:{ease:"easeInOut",duration:.14}},initial:{x:o,opacity:0},children:n},t)},zA=({clientId:e,blockName:t,isSectionBlock:n,availableTabs:o,contentClientIds:r,hasBlockStyles:i})=>{const s=o?.length>1,l=Xf(e),a=l.isSynced,c=!a&&s;return(0,d.jsxs)("div",{className:"block-editor-block-inspector",children:[(0,d.jsx)(Xb,{...l,className:a&&"is-synced",allowParentNavigation:!0,children:window?.__experimentalContentOnlyPatternInsertion&&(0,d.jsx)(hA,{clientId:e})}),(0,d.jsx)(lP,{blockClientId:e}),c&&(0,d.jsx)(RA,{hasBlockStyles:i,clientId:e,blockName:t,tabs:o,isSectionBlock:n,contentClientIds:r}),!c&&(0,d.jsxs)(d.Fragment,{children:[i&&(0,d.jsx)(NA,{clientId:e}),(0,d.jsx)(EA,{contentClientIds:r}),!n&&(0,d.jsx)(LA,{blockName:t,showListControls:!0})]}),(0,d.jsx)(gA,{},"back")]})};var VA=function(){const{selectedBlockCount:e,selectedBlockName:t,selectedBlockClientId:n,blockType:o,isSectionBlock:r,isSectionBlockInSelection:i,hasBlockStyles:s}=(0,g.useSelect)((e=>{const{getSelectedBlockClientId:t,getSelectedBlockClientIds:n,getSelectedBlockCount:o,getBlockName:r,getParentSectionBlock:i,isSectionBlock:s}=G(e(ji)),{getBlockStyles:l}=e(p.store),a=t(),c=i(a)||a,u=c&&r(c),d=u&&(0,p.getBlockType)(u),h=n().some((e=>s(e))),g=u&&l(u),m=g&&g.length>0;return{selectedBlockCount:o(),selectedBlockClientId:c,selectedBlockName:u,blockType:d,isSectionBlockInSelection:h,isSectionBlock:s(c),hasBlockStyles:m}}),[]),l=(0,g.useSelect)((e=>{if(!r||!n)return[];const{getClientIdsOfDescendants:t,getBlockName:o,getBlockEditingMode:i}=G(e(ji)),s=t(n),l=new Set;return s.forEach((e=>{if("core/navigation"===o(e)){t(e).forEach((e=>l.add(e)))}})),s.filter((e=>!l.has(e)&&("core/list-item"!==o(e)&&"contentOnly"===i(e))))}),[r,n]),a=function(e,t,n,o){const r=[],{bindings:i,border:s,color:l,default:a,dimensions:c,list:u,position:d,styles:p,typography:h,effects:m}=Ma,f=MA(e),b=(0,ws.__experimentalUseSlotFills)(u.name),k=!f&&!!b&&b.length,v=[...(0,ws.__experimentalUseSlotFills)(s.name)||[],...(0,ws.__experimentalUseSlotFills)(l.name)||[],...(0,ws.__experimentalUseSlotFills)(c.name)||[],...(0,ws.__experimentalUseSlotFills)(p.name)||[],...(0,ws.__experimentalUseSlotFills)(h.name)||[],...(0,ws.__experimentalUseSlotFills)(m.name)||[]].length,_=[...(0,ws.__experimentalUseSlotFills)(Va.slotName)||[],...(0,ws.__experimentalUseSlotFills)(i.name)||[]],y=[...(0,ws.__experimentalUseSlotFills)(a.name)||[],...(0,ws.__experimentalUseSlotFills)(d.name)||[],...k&&v>1?_:[]],x=!!(t&&t.length>0);k&&!n&&r.push(yA),x&&r.push(_A),y.length&&!n&&r.push(kA),(n?o:v)&&r.push(vA);return function(e,t={}){return void 0!==t[e]?t[e]:void 0===t.default||t.default}(e,(0,g.useSelect)((e=>e(ji).getSettings().blockInspectorTabs),[]))?r:AA}(o?.name,l,r,s),c=a?.length>1,u=function(e){return(0,g.useSelect)((t=>{if(e){const n=t(ji).getSettings().blockInspectorAnimation,o=n?.animationParent,{getSelectedBlockClientId:r,getBlockParentsByBlockName:i}=t(ji);return i(r(),o,!0)[0]||e.name===o?n?.[e.name]:null}return null}),[e])}(o),h=e>1;if(h&&!i)return(0,d.jsxs)("div",{className:"block-editor-block-inspector",children:[(0,d.jsx)(mA,{}),c?(0,d.jsx)(RA,{tabs:a}):(0,d.jsx)(LA,{blockName:t,showAdvancedControls:!1,showPositionControls:!1,showBindingsControls:!1})]});if(h&&i)return(0,d.jsx)("div",{className:"block-editor-block-inspector",children:(0,d.jsx)(mA,{})});const m=t===(0,p.getUnregisteredTypeHandlerName)();return!o||!n||m?(0,d.jsx)("span",{className:"block-editor-block-inspector__no-blocks",children:(0,T.__)("No block selected.")}):(0,d.jsx)(DA,{animate:u,wrapper:e=>(0,d.jsx)(OA,{blockInspectorAnimationSettings:u,selectedBlockClientId:n,children:e}),children:(0,d.jsx)(zA,{clientId:n,blockName:o.name,isSectionBlock:r,availableTabs:a,contentClientIds:l,hasBlockStyles:s})})};const FA=()=>(I()("__unstableUseClipboardHandler",{alternative:"BlockCanvas or WritingFlow",since:"6.4",version:"6.7"}),Pw());function HA(e){return I()("CopyHandler",{alternative:"BlockCanvas or WritingFlow",since:"6.4",version:"6.7"}),(0,d.jsx)("div",{...e,ref:Pw()})}const UA=()=>{};const GA=(0,h.forwardRef)((function({rootClientId:e,clientId:t,isAppender:n,showInserterHelpPanel:o,showMostUsedBlocks:r=!1,__experimentalInsertionIndex:i,__experimentalInitialTab:s,__experimentalInitialCategory:l,__experimentalFilterValue:a,onPatternCategorySelection:c,onSelect:u=UA,shouldFocusBlock:p=!1,onClose:h},m){const{destinationRootClientId:f}=(0,g.useSelect)((n=>{const{getBlockRootClientId:o}=n(ji);return{destinationRootClientId:e||o(t)||void 0}}),[t,e]);return(0,d.jsx)(nI,{onSelect:u,rootClientId:f,clientId:t,isAppender:n,showInserterHelpPanel:o,showMostUsedBlocks:r,__experimentalInsertionIndex:i,__experimentalFilterValue:a,onPatternCategorySelection:c,__experimentalInitialTab:s,__experimentalInitialCategory:l,shouldFocusBlock:p,ref:m,onClose:h})}));var $A=(0,h.forwardRef)((function(e,t){return(0,d.jsx)(GA,{...e,onPatternCategorySelection:void 0,ref:t})}));function WA(){return I()("wp.blockEditor.MultiSelectScrollIntoView",{hint:"This behaviour is now built-in.",since:"5.8"}),null}const KA=-1!==window.navigator.userAgent.indexOf("Trident"),ZA=new Set([Wa.UP,Wa.DOWN,Wa.LEFT,Wa.RIGHT]),qA=.75;function YA(){const e=(0,g.useSelect)((e=>e(ji).hasSelectedBlock()),[]);return(0,m.useRefEffect)((t=>{if(!e)return;const{ownerDocument:n}=t,{defaultView:o}=n;let r,i,s;function l(){r||(r=o.requestAnimationFrame((()=>{p(),r=null})))}function a(e){i&&o.cancelAnimationFrame(i),i=o.requestAnimationFrame((()=>{c(e),i=null}))}function c({keyCode:e}){if(!h())return;const r=(0,Ga.computeCaretRect)(o);if(!r)return;if(!s)return void(s=r);if(ZA.has(e))return void(s=r);const i=r.top-s.top;if(0===i)return;const l=(0,Ga.getScrollContainer)(t);if(!l)return;const a=l===n.body||l===n.documentElement,c=a?o.scrollY:l.scrollTop,u=a?0:l.getBoundingClientRect().top,d=a?s.top/o.innerHeight:(s.top-u)/(o.innerHeight-u);if(0===c&&d<qA&&function(){const e=t.querySelectorAll('[contenteditable="true"]');return e[e.length-1]===n.activeElement}())return void(s=r);const p=a?o.innerHeight:l.clientHeight;s.top+s.height>u+p||s.top<u?s=r:a?o.scrollBy(0,i):l.scrollTop+=i}function u(){n.addEventListener("selectionchange",d)}function d(){n.removeEventListener("selectionchange",d),p()}function p(){h()&&(s=(0,Ga.computeCaretRect)(o))}function h(){return t.contains(n.activeElement)&&n.activeElement.isContentEditable}return o.addEventListener("scroll",l,!0),o.addEventListener("resize",l,!0),t.addEventListener("keydown",a),t.addEventListener("keyup",c),t.addEventListener("mousedown",u),t.addEventListener("touchstart",u),()=>{o.removeEventListener("scroll",l,!0),o.removeEventListener("resize",l,!0),t.removeEventListener("keydown",a),t.removeEventListener("keyup",c),t.removeEventListener("mousedown",u),t.removeEventListener("touchstart",u),n.removeEventListener("selectionchange",d),o.cancelAnimationFrame(r),o.cancelAnimationFrame(i)}}),[e])}var XA=KA?e=>e.children:function({children:e}){return(0,d.jsx)("div",{ref:YA(),className:"block-editor__typewriter",children:e})};const QA=(0,h.createContext)({});function JA({children:e,uniqueId:t,blockName:n=""}){const o=(0,h.useContext)(QA),{name:r}=C();n=n||r;const i=(0,h.useMemo)((()=>function(e,t,n){const o={...e,[t]:e[t]?new Set(e[t]):new Set};return o[t].add(n),o}(o,n,t)),[o,n,t]);return(0,d.jsx)(QA.Provider,{value:i,children:e})}function eN(e,t=""){const n=(0,h.useContext)(QA),{name:o}=C();return t=t||o,Boolean(n[t]?.has(e))}QA.displayName="RenderedRefsContext";const tN=e=>(I()("wp.blockEditor.__experimentalRecursionProvider",{since:"6.5",alternative:"wp.blockEditor.RecursionProvider"}),(0,d.jsx)(JA,{...e})),nN=(...e)=>(I()("wp.blockEditor.__experimentalUseHasRecursion",{since:"6.5",alternative:"wp.blockEditor.useHasRecursion"}),eN(...e));function oN({title:e,help:t,actions:n=[],onClose:o}){return(0,d.jsxs)(ws.__experimentalVStack,{className:"block-editor-inspector-popover-header",spacing:4,children:[(0,d.jsxs)(ws.__experimentalHStack,{alignment:"center",children:[(0,d.jsx)(ws.__experimentalHeading,{className:"block-editor-inspector-popover-header__heading",level:2,size:13,children:e}),(0,d.jsx)(ws.__experimentalSpacer,{}),n.map((({label:e,icon:t,onClick:n})=>(0,d.jsx)(ws.Button,{size:"small",className:"block-editor-inspector-popover-header__action",label:e,icon:t,variant:!t&&"tertiary",onClick:n,children:!t&&e},e))),o&&(0,d.jsx)(ws.Button,{size:"small",className:"block-editor-inspector-popover-header__action",label:(0,T.__)("Close"),icon:XB,onClick:o})]}),t&&(0,d.jsx)(ws.__experimentalText,{children:t})]})}const rN=(0,h.forwardRef)((function({onClose:e,onChange:t,showPopoverHeaderActions:n,isCompact:o,currentDate:r,title:i,...s},l){const a={startOfWeek:(0,dP.getSettings)().l10n.startOfWeek,onChange:t,currentDate:o?void 0:r,currentTime:o?r:void 0,...s},c=o?ws.TimePicker:ws.DateTimePicker;return(0,d.jsxs)("div",{ref:l,className:"block-editor-publish-date-time-picker",children:[(0,d.jsx)(oN,{title:i||(0,T.__)("Publish"),actions:n?[{label:(0,T.__)("Now"),onClick:()=>t?.(null)}]:void 0,onClose:e}),(0,d.jsx)(c,{...a})]})}));var iN=(0,h.forwardRef)((function(e,t){return(0,d.jsx)(rN,{...e,showPopoverHeaderActions:!0,isCompact:!1,ref:t})}));const sN={button:"wp-element-button",caption:"wp-element-caption"},lN=e=>sN[e]?sN[e]:"";var aN=()=>"";function cN(e,t,n){return"core/image"===e&&n?.lightbox?.allowEditing||!!t?.lightbox}function uN({onChange:e,value:t,inheritedValue:n,panelId:o}){const r=Ji(),i=()=>{e(void 0)};let s=!1;return n?.lightbox?.enabled&&(s=n.lightbox.enabled),(0,d.jsx)(d.Fragment,{children:(0,d.jsx)(ws.__experimentalToolsPanel,{label:(0,T._x)("Settings","Image settings"),resetAll:i,panelId:o,dropdownMenuProps:r,children:(0,d.jsx)(ws.__experimentalToolsPanelItem,{hasValue:()=>!!t?.lightbox,label:(0,T.__)("Enlarge on click"),onDeselect:i,isShownByDefault:!0,panelId:o,children:(0,d.jsx)(ws.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,T.__)("Enlarge on click"),checked:s,onChange:t=>{e({enabled:t})}})})})})}function dN({value:e,onChange:t,inheritedValue:n=e}){const[o,r]=(0,h.useState)(null),i=n?.css;return(0,d.jsxs)(ws.__experimentalVStack,{spacing:3,children:[o&&(0,d.jsx)(ws.Notice,{status:"error",onRemove:()=>r(null),children:o}),(0,d.jsx)(ws.TextareaControl,{label:(0,T.__)("Additional CSS"),__nextHasNoMarginBottom:!0,value:i,onChange:n=>function(n){if(t({...e,css:n}),o){const[e]=lC([{css:n}],".for-validation-only");e&&r(null)}}(n),onBlur:function(e){if(!e?.target?.value)return void r(null);const[t]=lC([{css:e.target.value}],".for-validation-only");r(null===t?(0,T.__)("There is an error with your CSS structure."):null)},className:"block-editor-global-styles-advanced-panel__custom-css-input",spellCheck:!1})]})}const pN=new Map,hN=[],gN={caption:(0,T.__)("Caption"),link:(0,T.__)("Link"),button:(0,T.__)("Button"),heading:(0,T.__)("Heading"),h1:(0,T.__)("H1"),h2:(0,T.__)("H2"),h3:(0,T.__)("H3"),h4:(0,T.__)("H4"),h5:(0,T.__)("H5"),h6:(0,T.__)("H6"),"settings.color":(0,T.__)("Color"),"settings.typography":(0,T.__)("Typography"),"settings.shadow":(0,T.__)("Shadow"),"settings.layout":(0,T.__)("Layout"),"styles.color":(0,T.__)("Colors"),"styles.spacing":(0,T.__)("Spacing"),"styles.background":(0,T.__)("Background"),"styles.typography":(0,T.__)("Typography")},mN=function(e,t){var n,o,r=0;function i(){var i,s,l=n,a=arguments.length;e:for(;l;){if(l.args.length===arguments.length){for(s=0;s<a;s++)if(l.args[s]!==arguments[s]){l=l.next;continue e}return l!==n&&(l===o&&(o=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(i=new Array(a),s=0;s<a;s++)i[s]=arguments[s];return l={args:i,val:e.apply(null,i)},n?(n.prev=l,l.next=n):o=l,r===t.maxSize?(o=o.prev).next=null:r++,n=l,l.val}return t=t||{},i.clear=function(){n=null,o=null,r=0},i}((()=>(0,p.getBlockTypes)().reduce(((e,{name:t,title:n})=>(e[t]=n,e)),{}))),fN=e=>null!==e&&"object"==typeof e;function bN(e,t,n=""){if(!fN(e)&&!fN(t))return e!==t?n.split(".").slice(0,2).join("."):void 0;e=fN(e)?e:{},t=fN(t)?t:{};const o=new Set([...Object.keys(e),...Object.keys(t)]);let r=[];for(const i of o){const o=n?n+"."+i:i,s=bN(e[i],t[i],o);s&&(r=r.concat(s))}return r}function kN(e,t){const n=JSON.stringify({next:e,previous:t});if(pN.has(n))return pN.get(n);const o=bN({styles:{background:e?.styles?.background,color:e?.styles?.color,typography:e?.styles?.typography,spacing:e?.styles?.spacing},blocks:e?.styles?.blocks,elements:e?.styles?.elements,settings:e?.settings},{styles:{background:t?.styles?.background,color:t?.styles?.color,typography:t?.styles?.typography,spacing:t?.styles?.spacing},blocks:t?.styles?.blocks,elements:t?.styles?.elements,settings:t?.settings});if(!o.length)return pN.set(n,hN),hN;const r=[...new Set(o)].reduce(((e,t)=>{const n=function(e){if(gN[e])return gN[e];const t=e.split(".");if("blocks"===t?.[0]){const e=mN()?.[t[1]];return e||t[1]}return"elements"===t?.[0]?gN[t[1]]||t[1]:void 0}(t);return n&&e.push([t.split(".")[0],n]),e}),[]);return pN.set(n,r),r}function vN(e,t,n={}){let o=kN(e,t);const r=o.length,{maxResults:i}=n;return r?(i&&r>i&&(o=o.slice(0,i)),Object.entries(o.reduce(((e,t)=>{const n=e[t[0]]||[];return n.includes(t[1])||(e[t[0]]=[...n,t[1]]),e}),{})).map((([e,t])=>{const n=t.length,o=t.join((0,T.__)(", "));switch(e){case"blocks":return(0,T.sprintf)((0,T._n)("%s block.","%s blocks.",n),o);case"elements":return(0,T.sprintf)((0,T._n)("%s element.","%s elements.",n),o);case"settings":return(0,T.sprintf)((0,T.__)("%s settings."),o);case"styles":return(0,T.sprintf)((0,T.__)("%s styles."),o);default:return(0,T.sprintf)((0,T.__)("%s."),o)}}))):hN}function _N(e,t,n){if(null==e||!1===e)return;if(Array.isArray(e))return yN(e,t,n);switch(typeof e){case"string":case"number":return}const{type:o,props:r}=e;switch(o){case h.StrictMode:case h.Fragment:return yN(r.children,t,n);case h.RawHTML:return;case ew.Content:return xN(t,n);case LR:return void t.push(r.value)}switch(typeof o){case"string":return void 0!==r.children?yN(r.children,t,n):void 0;case"function":return _N(o.prototype&&"function"==typeof o.prototype.render?new o(r).render():o(r),t,n)}}function yN(e,...t){e=Array.isArray(e)?e:[e];for(let n=0;n<e.length;n++)_N(e[n],...t)}function xN(e,t){for(let n=0;n<t.length;n++){const{name:o,attributes:r,innerBlocks:i}=t[n];_N((0,p.getSaveElement)(o,r,(0,d.jsx)(ew.Content,{})),e,i)}}const SN=[{value:"fill",label:(0,T._x)("Fill","Scale option for dimensions control"),help:(0,T.__)("Fill the space by stretching the content.")},{value:"contain",label:(0,T._x)("Contain","Scale option for dimensions control"),help:(0,T.__)("Fit the content to the space without clipping.")},{value:"cover",label:(0,T._x)("Cover","Scale option for dimensions control"),help:(0,T.__)("Fill the space by clipping what doesn't fit.")},{value:"none",label:(0,T._x)("None","Scale option for dimensions control"),help:(0,T.__)("Do not adjust the sizing of the content. Content that is too large will be clipped, and content that is too small will have additional padding.")},{value:"scale-down",label:(0,T._x)("Scale down","Scale option for dimensions control"),help:(0,T.__)("Scale down the content to fit the space if it is too big. Content that is too small will have additional padding.")}];function wN({panelId:e,value:t,onChange:n,options:o=SN,defaultValue:r=SN[0].value,isShownByDefault:i=!0}){const s=t??"fill",l=(0,h.useMemo)((()=>o.reduce(((e,t)=>(e[t.value]=t.help,e)),{})),[o]);return(0,d.jsx)(ws.__experimentalToolsPanelItem,{label:(0,T.__)("Scale"),isShownByDefault:i,hasValue:()=>s!==r,onDeselect:()=>n(r),panelId:e,children:(0,d.jsx)(ws.__experimentalToggleGroupControl,{__nextHasNoMarginBottom:!0,label:(0,T.__)("Scale"),isBlock:!0,help:l[s],value:s,onChange:n,size:"__unstable-large",children:o.map((e=>(0,d.jsx)(ws.__experimentalToggleGroupControlOption,{...e},e.value)))})})}function CN(){return CN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},CN.apply(null,arguments)}function BN(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var IN=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|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)-.*))$/,jN=BN((function(e){return IN.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));var EN=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}(),TN=Math.abs,MN=String.fromCharCode,PN=Object.assign;function RN(e){return e.trim()}function AN(e,t,n){return e.replace(t,n)}function NN(e,t){return e.indexOf(t)}function LN(e,t){return 0|e.charCodeAt(t)}function DN(e,t,n){return e.slice(t,n)}function ON(e){return e.length}function zN(e){return e.length}function VN(e,t){return t.push(e),e}var FN=1,HN=1,UN=0,GN=0,$N=0,WN="";function KN(e,t,n,o,r,i,s){return{value:e,root:t,parent:n,type:o,props:r,children:i,line:FN,column:HN,length:s,return:""}}function ZN(e,t){return PN(KN("",null,null,"",null,null,0),e,{length:-e.length},t)}function qN(){return $N=GN>0?LN(WN,--GN):0,HN--,10===$N&&(HN=1,FN--),$N}function YN(){return $N=GN<UN?LN(WN,GN++):0,HN++,10===$N&&(HN=1,FN++),$N}function XN(){return LN(WN,GN)}function QN(){return GN}function JN(e,t){return DN(WN,e,t)}function eL(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function tL(e){return FN=HN=1,UN=ON(WN=e),GN=0,[]}function nL(e){return WN="",e}function oL(e){return RN(JN(GN-1,sL(91===e?e+2:40===e?e+1:e)))}function rL(e){for(;($N=XN())&&$N<33;)YN();return eL(e)>2||eL($N)>3?"":" "}function iL(e,t){for(;--t&&YN()&&!($N<48||$N>102||$N>57&&$N<65||$N>70&&$N<97););return JN(e,QN()+(t<6&&32==XN()&&32==YN()))}function sL(e){for(;YN();)switch($N){case e:return GN;case 34:case 39:34!==e&&39!==e&&sL($N);break;case 40:41===e&&sL(e);break;case 92:YN()}return GN}function lL(e,t){for(;YN()&&e+$N!==57&&(e+$N!==84||47!==XN()););return"/*"+JN(t,GN-1)+"*"+MN(47===e?e:YN())}function aL(e){for(;!eL(XN());)YN();return JN(e,GN)}var cL="-ms-",uL="-moz-",dL="-webkit-",pL="comm",hL="rule",gL="decl",mL="@keyframes";function fL(e,t){for(var n="",o=zN(e),r=0;r<o;r++)n+=t(e[r],r,e,t)||"";return n}function bL(e,t,n,o){switch(e.type){case"@import":case gL:return e.return=e.return||e.value;case pL:return"";case mL:return e.return=e.value+"{"+fL(e.children,o)+"}";case hL:e.value=e.props.join(",")}return ON(n=fL(e.children,o))?e.return=e.value+"{"+n+"}":""}function kL(e){return nL(vL("",null,null,null,[""],e=tL(e),0,[0],e))}function vL(e,t,n,o,r,i,s,l,a){for(var c=0,u=0,d=s,p=0,h=0,g=0,m=1,f=1,b=1,k=0,v="",_=r,y=i,x=o,S=v;f;)switch(g=k,k=YN()){case 40:if(108!=g&&58==LN(S,d-1)){-1!=NN(S+=AN(oL(k),"&","&\f"),"&\f")&&(b=-1);break}case 34:case 39:case 91:S+=oL(k);break;case 9:case 10:case 13:case 32:S+=rL(g);break;case 92:S+=iL(QN()-1,7);continue;case 47:switch(XN()){case 42:case 47:VN(yL(lL(YN(),QN()),t,n),a);break;default:S+="/"}break;case 123*m:l[c++]=ON(S)*b;case 125*m:case 59:case 0:switch(k){case 0:case 125:f=0;case 59+u:h>0&&ON(S)-d&&VN(h>32?xL(S+";",o,n,d-1):xL(AN(S," ","")+";",o,n,d-2),a);break;case 59:S+=";";default:if(VN(x=_L(S,t,n,c,u,r,l,v,_=[],y=[],d),i),123===k)if(0===u)vL(S,t,x,x,_,i,d,l,y);else switch(99===p&&110===LN(S,3)?100:p){case 100:case 109:case 115:vL(e,x,x,o&&VN(_L(e,x,x,0,0,r,l,v,r,_=[],d),y),r,y,d,l,o?_:y);break;default:vL(S,x,x,x,[""],y,0,l,y)}}c=u=h=0,m=b=1,v=S="",d=s;break;case 58:d=1+ON(S),h=g;default:if(m<1)if(123==k)--m;else if(125==k&&0==m++&&125==qN())continue;switch(S+=MN(k),k*m){case 38:b=u>0?1:(S+="\f",-1);break;case 44:l[c++]=(ON(S)-1)*b,b=1;break;case 64:45===XN()&&(S+=oL(YN())),p=XN(),u=d=ON(v=S+=aL(QN())),k++;break;case 45:45===g&&2==ON(S)&&(m=0)}}return i}function _L(e,t,n,o,r,i,s,l,a,c,u){for(var d=r-1,p=0===r?i:[""],h=zN(p),g=0,m=0,f=0;g<o;++g)for(var b=0,k=DN(e,d+1,d=TN(m=s[g])),v=e;b<h;++b)(v=RN(m>0?p[b]+" "+k:AN(k,/&\f/g,p[b])))&&(a[f++]=v);return KN(e,t,n,0===r?hL:l,a,c,u)}function yL(e,t,n){return KN(e,t,n,pL,MN($N),DN(e,2,-2),0)}function xL(e,t,n,o){return KN(e,t,n,gL,DN(e,0,o),DN(e,o+1,-1),o)}var SL=function(e,t,n){for(var o=0,r=0;o=r,r=XN(),38===o&&12===r&&(t[n]=1),!eL(r);)YN();return JN(e,GN)},wL=function(e,t){return nL(function(e,t){var n=-1,o=44;do{switch(eL(o)){case 0:38===o&&12===XN()&&(t[n]=1),e[n]+=SL(GN-1,t,n);break;case 2:e[n]+=oL(o);break;case 4:if(44===o){e[++n]=58===XN()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=MN(o)}}while(o=YN());return e}(tL(e),t))},CL=new WeakMap,BL=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,o=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||CL.get(n))&&!o){CL.set(e,!0);for(var r=[],i=wL(t,r),s=n.props,l=0,a=0;l<i.length;l++)for(var c=0;c<s.length;c++,a++)e.props[a]=r[l]?i[l].replace(/&\f/g,s[c]):s[c]+" "+i[l]}}},IL=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function jL(e,t){switch(function(e,t){return 45^LN(e,0)?(((t<<2^LN(e,0))<<2^LN(e,1))<<2^LN(e,2))<<2^LN(e,3):0}(e,t)){case 5103:return dL+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return dL+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return dL+e+uL+e+cL+e+e;case 6828:case 4268:return dL+e+cL+e+e;case 6165:return dL+e+cL+"flex-"+e+e;case 5187:return dL+e+AN(e,/(\w+).+(:[^]+)/,dL+"box-$1$2"+cL+"flex-$1$2")+e;case 5443:return dL+e+cL+"flex-item-"+AN(e,/flex-|-self/,"")+e;case 4675:return dL+e+cL+"flex-line-pack"+AN(e,/align-content|flex-|-self/,"")+e;case 5548:return dL+e+cL+AN(e,"shrink","negative")+e;case 5292:return dL+e+cL+AN(e,"basis","preferred-size")+e;case 6060:return dL+"box-"+AN(e,"-grow","")+dL+e+cL+AN(e,"grow","positive")+e;case 4554:return dL+AN(e,/([^-])(transform)/g,"$1"+dL+"$2")+e;case 6187:return AN(AN(AN(e,/(zoom-|grab)/,dL+"$1"),/(image-set)/,dL+"$1"),e,"")+e;case 5495:case 3959:return AN(e,/(image-set\([^]*)/,dL+"$1$`$1");case 4968:return AN(AN(e,/(.+:)(flex-)?(.*)/,dL+"box-pack:$3"+cL+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+dL+e+e;case 4095:case 3583:case 4068:case 2532:return AN(e,/(.+)-inline(.+)/,dL+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(ON(e)-1-t>6)switch(LN(e,t+1)){case 109:if(45!==LN(e,t+4))break;case 102:return AN(e,/(.+:)(.+)-([^]+)/,"$1"+dL+"$2-$3$1"+uL+(108==LN(e,t+3)?"$3":"$2-$3"))+e;case 115:return~NN(e,"stretch")?jL(AN(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==LN(e,t+1))break;case 6444:switch(LN(e,ON(e)-3-(~NN(e,"!important")&&10))){case 107:return AN(e,":",":"+dL)+e;case 101:return AN(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+dL+(45===LN(e,14)?"inline-":"")+"box$3$1"+dL+"$2$3$1"+cL+"$2box$3")+e}break;case 5936:switch(LN(e,t+11)){case 114:return dL+e+cL+AN(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return dL+e+cL+AN(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return dL+e+cL+AN(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return dL+e+cL+e+e}return e}var EL=[function(e,t,n,o){if(e.length>-1&&!e.return)switch(e.type){case gL:e.return=jL(e.value,e.length);break;case mL:return fL([ZN(e,{value:AN(e.value,"@","@"+dL)})],o);case hL:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return fL([ZN(e,{props:[AN(t,/:(read-\w+)/,":-moz-$1")]})],o);case"::placeholder":return fL([ZN(e,{props:[AN(t,/:(plac\w+)/,":"+dL+"input-$1")]}),ZN(e,{props:[AN(t,/:(plac\w+)/,":-moz-$1")]}),ZN(e,{props:[AN(t,/:(plac\w+)/,cL+"input-$1")]})],o)}return""}))}}];const TL=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var o=e.stylisPlugins||EL;var r,i,s={},l=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)s[t[n]]=!0;l.push(e)}));var a,c,u,d,p=[bL,(d=function(e){a.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],h=(c=[BL,IL].concat(o,p),u=zN(c),function(e,t,n,o){for(var r="",i=0;i<u;i++)r+=c[i](e,t,n,o)||"";return r});i=function(e,t,n,o){a=n,fL(kL(e?e+"{"+t.styles+"}":t.styles),h),o&&(g.inserted[t.name]=!0)};var g={key:t,sheet:new EN({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:i};return g.sheet.hydrate(l),g};const ML=function(e){for(var t,n=0,o=0,r=e.length;r>=4;++o,r-=4)t=1540483477*(65535&(t=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(r){case 3:n^=(255&e.charCodeAt(o+2))<<16;case 2:n^=(255&e.charCodeAt(o+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(o)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)};const PL={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};var RL=/[A-Z]|^ms/g,AL=/_EMO_([^_]+?)_([^]*?)_EMO_/g,NL=function(e){return 45===e.charCodeAt(1)},LL=function(e){return null!=e&&"boolean"!=typeof e},DL=BN((function(e){return NL(e)?e:e.replace(RL,"-$&").toLowerCase()})),OL=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(AL,(function(e,t,n){return VL={name:t,styles:n,next:VL},t}))}return 1===PL[e]||NL(e)||"number"!=typeof t||0===t?t:t+"px"};function zL(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 VL={name:n.name,styles:n.styles,next:VL},n.name;if(void 0!==n.styles){var o=n.next;if(void 0!==o)for(;void 0!==o;)VL={name:o.name,styles:o.styles,next:VL},o=o.next;return n.styles+";"}return function(e,t,n){var o="";if(Array.isArray(n))for(var r=0;r<n.length;r++)o+=zL(e,t,n[r])+";";else for(var i in n){var s=n[i];if("object"!=typeof s)null!=t&&void 0!==t[s]?o+=i+"{"+t[s]+"}":LL(s)&&(o+=DL(i)+":"+OL(i,s)+";");else if(!Array.isArray(s)||"string"!=typeof s[0]||null!=t&&void 0!==t[s[0]]){var l=zL(e,t,s);switch(i){case"animation":case"animationName":o+=DL(i)+":"+l+";";break;default:o+=i+"{"+l+"}"}}else for(var a=0;a<s.length;a++)LL(s[a])&&(o+=DL(i)+":"+OL(i,s[a])+";")}return o}(e,t,n);case"function":if(void 0!==e){var r=VL,i=n(e);return VL=r,zL(e,t,i)}}if(null==t)return n;var s=t[n];return void 0!==s?s:n}var VL,FL=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var HL=!!ic.useInsertionEffect&&ic.useInsertionEffect,UL=HL||function(e){return e()},GL=(0,ic.createContext)("undefined"!=typeof HTMLElement?TL({key:"css"}):null);GL.Provider;var $L=function(e){return(0,ic.forwardRef)((function(t,n){var o=(0,ic.useContext)(GL);return e(t,o,n)}))},WL=(0,ic.createContext)({});var KL=function(e,t,n){var o=e.key+"-"+t.name;!1===n&&void 0===e.registered[o]&&(e.registered[o]=t.styles)},ZL=jN,qL=function(e){return"theme"!==e},YL=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?ZL:qL},XL=function(e,t,n){var o;if(t){var r=t.shouldForwardProp;o=e.__emotion_forwardProp&&r?function(t){return e.__emotion_forwardProp(t)&&r(t)}:r}return"function"!=typeof o&&n&&(o=e.__emotion_forwardProp),o},QL=function(e){var t=e.cache,n=e.serialized,o=e.isStringTag;KL(t,n,o);UL((function(){return function(e,t,n){KL(e,t,n);var o=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var r=t;do{e.insert(t===r?"."+o:"",r,e.sheet,!0),r=r.next}while(void 0!==r)}}(t,n,o)}));return null};const JL=function e(t,n){var o,r,i=t.__emotion_real===t,s=i&&t.__emotion_base||t;void 0!==n&&(o=n.label,r=n.target);var l=XL(t,n,i),a=l||YL(s),c=!a("as");return function(){var u=arguments,d=i&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==o&&d.push("label:"+o+";"),null==u[0]||void 0===u[0].raw)d.push.apply(d,u);else{0,d.push(u[0][0]);for(var p=u.length,h=1;h<p;h++)d.push(u[h],u[0][h])}var g=$L((function(e,t,n){var o=c&&e.as||s,i="",u=[],p=e;if(null==e.theme){for(var h in p={},e)p[h]=e[h];p.theme=(0,ic.useContext)(WL)}"string"==typeof e.className?i=function(e,t,n){var o="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):o+=n+" "})),o}(t.registered,u,e.className):null!=e.className&&(i=e.className+" ");var g=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,r="";VL=void 0;var i=e[0];null==i||void 0===i.raw?(o=!1,r+=zL(n,t,i)):r+=i[0];for(var s=1;s<e.length;s++)r+=zL(n,t,e[s]),o&&(r+=i[s]);FL.lastIndex=0;for(var l,a="";null!==(l=FL.exec(r));)a+="-"+l[1];return{name:ML(r)+a,styles:r,next:VL}}(d.concat(u),t.registered,p);i+=t.key+"-"+g.name,void 0!==r&&(i+=" "+r);var m=c&&void 0===l?YL(o):a,f={};for(var b in e)c&&"as"===b||m(b)&&(f[b]=e[b]);return f.className=i,f.ref=n,(0,ic.createElement)(ic.Fragment,null,(0,ic.createElement)(QL,{cache:t,serialized:g,isStringTag:"string"==typeof o}),(0,ic.createElement)(o,f))}));return g.displayName=void 0!==o?o:"Styled("+("string"==typeof s?s:s.displayName||s.name||"Component")+")",g.defaultProps=t.defaultProps,g.__emotion_real=g,g.__emotion_base=s,g.__emotion_styles=d,g.__emotion_forwardProp=l,Object.defineProperty(g,"toString",{value:function(){return"."+r}}),g.withComponent=function(t,o){return e(t,CN({},n,o,{shouldForwardProp:XL(g,o,!0)})).apply(void 0,d)},g}};var eD=JL.bind();["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","marquee","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"].forEach((function(e){eD[e]=eD(e)}));const tD=eD(ws.__experimentalToolsPanelItem)`
 	grid-column: span 1;
 `;function nD({panelId:e,value:t={},onChange:n=()=>{},units:o,isShownByDefault:r=!0}){const i="auto"===t.width?"":t.width??"",s="auto"===t.height?"":t.height??"",l=e=>o=>{const r={...t};o?r[e]=o:delete r[e],n(r)};return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(tD,{label:(0,T.__)("Width"),isShownByDefault:r,hasValue:()=>""!==i,onDeselect:l("width"),panelId:e,children:(0,d.jsx)(ws.__experimentalUnitControl,{label:(0,T.__)("Width"),placeholder:(0,T.__)("Auto"),labelPosition:"top",units:o,min:0,value:i,onChange:l("width"),size:"__unstable-large"})}),(0,d.jsx)(tD,{label:(0,T.__)("Height"),isShownByDefault:r,hasValue:()=>""!==s,onDeselect:l("height"),panelId:e,children:(0,d.jsx)(ws.__experimentalUnitControl,{label:(0,T.__)("Height"),placeholder:(0,T.__)("Auto"),labelPosition:"top",units:o,min:0,value:s,onChange:l("height"),size:"__unstable-large"})})]})}var oD=function({panelId:e,value:t={},onChange:n=()=>{},aspectRatioOptions:o,defaultAspectRatio:r="auto",scaleOptions:i,defaultScale:s="fill",unitsOptions:l,tools:a=["aspectRatio","widthHeight","scale"]}){const c=void 0===t.width||"auto"===t.width?null:t.width,u=void 0===t.height||"auto"===t.height?null:t.height,p=void 0===t.aspectRatio||"auto"===t.aspectRatio?null:t.aspectRatio,g=void 0===t.scale||"fill"===t.scale?null:t.scale,[m,f]=(0,h.useState)(g),[b,k]=(0,h.useState)(p),v=c&&u?"custom":b,_=p||c&&u;return(0,d.jsxs)(d.Fragment,{children:[a.includes("aspectRatio")&&(0,d.jsx)(wm,{panelId:e,options:o,defaultValue:r,value:v,onChange:e=>{const o={...t};k(e="auto"===e?null:e),e?o.aspectRatio=e:delete o.aspectRatio,e?m?o.scale=m:(o.scale=s,f(s)):delete o.scale,"custom"!==e&&c&&u&&delete o.height,n(o)}}),a.includes("widthHeight")&&(0,d.jsx)(nD,{panelId:e,units:l,value:{width:c,height:u},onChange:({width:e,height:o})=>{const r={...t};o="auto"===o?null:o,(e="auto"===e?null:e)?r.width=e:delete r.width,o?r.height=o:delete r.height,e&&o?delete r.aspectRatio:b&&(r.aspectRatio=b),b||!!e==!!o?m?r.scale=m:(r.scale=s,f(s)):delete r.scale,n(r)}}),a.includes("scale")&&_&&(0,d.jsx)(wN,{panelId:e,options:i,defaultValue:s,value:m,onChange:e=>{const o={...t};f(e="fill"===e?null:e),e?o.scale=e:delete o.scale,n(o)}})]})};const rD=[{label:(0,T._x)("Thumbnail","Image size option for resolution control"),value:"thumbnail"},{label:(0,T._x)("Medium","Image size option for resolution control"),value:"medium"},{label:(0,T._x)("Large","Image size option for resolution control"),value:"large"},{label:(0,T._x)("Full Size","Image size option for resolution control"),value:"full"}];const iD={a:(0,T.__)("The <a> element should be used for links that navigate to a different page or to a different section within the same page."),article:(0,T.__)("The <article> element should represent a self-contained, syndicatable portion of the document."),aside:(0,T.__)("The <aside> element should represent a portion of a document whose content is only indirectly related to the document's main content."),button:(0,T.__)("The <button> element should be used for interactive controls that perform an action on the current page, such as opening a modal or toggling content visibility."),div:(0,T.__)("The <div> element should only be used if the block is a design element with no semantic meaning."),footer:(0,T.__)("The <footer> element should represent a footer for its nearest sectioning element (e.g.: <section>, <article>, <main> etc.)."),header:(0,T.__)("The <header> element should represent introductory content, typically a group of introductory or navigational aids."),main:(0,T.__)("The <main> element should be used for the primary content of your document only."),nav:(0,T.__)("The <nav> element should be used to identify groups of links that are intended to be used for website or page content navigation."),section:(0,T.__)("The <section> element should represent a standalone portion of the document that can't be better represented by another element.")};const sD={};U(sD,{...u,ExperimentalBlockCanvas:YT,ExperimentalBlockEditorProvider:nv,getDuotoneFilter:Pf,getRichTextValues:function(e=[]){p.__unstableGetBlockProps.skipFilters=!0;const t=[];return xN(t,e),p.__unstableGetBlockProps.skipFilters=!1,t.map((e=>e instanceof pe.RichTextData?e:pe.RichTextData.fromHTMLString(e)))},PrivateQuickInserter:rI,extractWords:dB,getNormalizedSearchTerms:hB,normalizeString:pB,PrivateListView:AM,ResizableBoxPopover:function({clientId:e,resizableBoxProps:t,...n}){return(0,d.jsx)(of,{clientId:e,__unstablePopoverSlot:"block-toolbar",...n,children:(0,d.jsx)(ws.ResizableBox,{...t})})},useHasBlockToolbar:TT,cleanEmptyObject:fs,BlockQuickNavigation:IA,LayoutStyle:function({layout:e={},css:t,...n}){const o=Xl(e.type),[r]=Ti("spacing.blockGap"),i=null!==r;if(o){if(t)return(0,d.jsx)("style",{children:t});const r=o.getLayoutStyle?.({hasBlockGapSupport:i,layout:e,...n});if(r)return(0,d.jsx)("style",{children:r})}return null},BlockManager:Uu,BlockRemovalWarningModal:function({rules:e}){const{clientIds:t,selectPrevious:n,message:o}=(0,g.useSelect)((e=>G(e(ji)).getRemovalPromptData())),{clearBlockRemovalPrompt:r,setBlockRemovalRules:i,privateRemoveBlocks:s}=G((0,g.useDispatch)(ji));if((0,h.useEffect)((()=>(i(e),()=>{i()})),[e,i]),!o)return;return(0,d.jsxs)(ws.Modal,{title:(0,T.__)("Be careful!"),onRequestClose:r,size:"medium",children:[(0,d.jsx)("p",{children:o}),(0,d.jsxs)(ws.__experimentalHStack,{justify:"right",children:[(0,d.jsx)(ws.Button,{variant:"tertiary",onClick:r,__next40pxDefaultSize:!0,children:(0,T.__)("Cancel")}),(0,d.jsx)(ws.Button,{variant:"primary",onClick:()=>{s(t,n,!0),r()},__next40pxDefaultSize:!0,children:(0,T.__)("Delete")})]})]})},useLayoutClasses:Nb,useLayoutStyles:function(e={},t,n){const{layout:o={},style:r={}}=e,i=o?.inherit||o?.contentSize||o?.wideSize?{...o,type:"constrained"}:o||{},s=Xl(i?.type||"default"),[l]=Ti("spacing.blockGap"),a=null!==l;return s?.getLayoutStyle?.({blockName:t,selector:n,layout:o,style:r,hasBlockGapSupport:a})},DimensionsTool:oD,ResolutionTool:function({panelId:e,value:t,onChange:n,options:o=rD,defaultValue:r=rD[0].value,isShownByDefault:i=!0,resetAllFilter:s}){const l=t??r;return(0,d.jsx)(ws.__experimentalToolsPanelItem,{hasValue:()=>l!==r,label:(0,T.__)("Resolution"),onDeselect:()=>n(r),isShownByDefault:i,panelId:e,resetAllFilter:s,children:(0,d.jsx)(ws.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,T.__)("Resolution"),value:l,options:o,onChange:n,help:(0,T.__)("Select the size of the source image."),size:"__unstable-large"})})},TabbedSidebar:JB,TextAlignmentControl:Wh,usesContextKey:PR,useFlashEditableBlocks:cS,HTMLElementControl:function({tagName:e,onChange:t,clientId:n,options:o=[{label:(0,T.__)("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"}]}){const r=!!n&&o.some((e=>"main"===e.value)),i=(0,g.useSelect)((e=>{if(!r)return!1;const{getClientIdsWithDescendants:t,getBlockAttributes:o}=e(ji);return t().some((e=>e!==n&&"main"===o(e)?.tagName))}),[n,r]),s=o.map((t=>"main"===t.value&&i&&"main"!==e?{...t,disabled:!0,label:(0,T.sprintf)((0,T.__)("%s (Already in use)"),t.label)}:t));return(0,d.jsxs)(ws.__experimentalVStack,{spacing:2,className:"block-editor-html-element-control",children:[(0,d.jsx)(ws.SelectControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,T.__)("HTML element"),options:s,value:e,onChange:t,help:iD[e]}),"main"===e&&i&&(0,d.jsx)(ws.Notice,{status:"warning",isDismissible:!1,children:(0,T.__)("Multiple <main> elements detected. The duplicate may be in your content or template. This is not valid HTML and may cause accessibility issues. Please change this HTML element.")})]})},useZoomOut:eI,globalStylesDataKey:N,globalStylesLinksDataKey:L,selectBlockPatternsKey:D,requiresWrapperOnCopy:Tw,PrivateRichText:UR,PrivateInserterLibrary:GA,reusableBlocksSelectKey:O,PrivateBlockPopover:ef,PrivatePublishDateTimePicker:rN,useSpacingSizes:lm,useBlockDisplayTitle:Sj,__unstableBlockStyleVariationOverridesWithConfig:function({config:e}){const{getBlockStyles:t,overrides:n}=(0,g.useSelect)((e=>({getBlockStyles:e(p.store).getBlockStyles,overrides:G(e(ji)).getStyleOverrides()})),[]),{getBlockName:o}=(0,g.useSelect)(ji),r=(0,h.useMemo)((()=>{if(!n?.length)return;const r=[],i=[];for(const[,s]of n)if(s?.variation&&s?.clientId&&!i.includes(s.clientId)){const n=o(s.clientId),l=e?.styles?.blocks?.[n]?.variations?.[s.variation];if(l){const o={settings:e?.settings,styles:{blocks:{[n]:{variations:{[`${s.variation}-${s.clientId}`]:l}}}}},a=Sb((0,p.getBlockTypes)(),t,s.clientId),c=yb(o,a,!1,!0,!0,!0,{blockGap:!1,blockStyles:!0,layoutStyles:!1,marginReset:!1,presets:!1,rootPadding:!1,variationStyles:!0});r.push({id:`${s.variation}-${s.clientId}`,css:c,__unstableType:"variation",variation:s.variation,clientId:s.clientId}),i.push(s.clientId)}}return r}),[e,n,t,o]);if(r&&r.length)return(0,d.jsx)(d.Fragment,{children:r.map((e=>(0,d.jsx)(Eb,{override:e},e.id)))})},setBackgroundStyleDefaults:Au,sectionRootClientIdKey:z,CommentIconSlotFill:NE,CommentIconToolbarSlotFill:hT,mediaEditKey:V,essentialFormatKey:F,useBlockElement:bh,useBlockElementRef:fh})})(),(window.wp=window.wp||{}).blockEditor=o})();
\ 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 33627520ca..58e2329aad 100644
--- a/wp-includes/js/dist/block-library.js
+++ b/wp-includes/js/dist/block-library.js
@@ -30784,10 +30784,11 @@ function useEntityBinding({ clientId, attributes }) {
       }
       const { getEntityRecord, hasFinishedResolution } = select(external_wp_coreData_namespaceObject.store);
       const entityType = isTaxonomy ? "taxonomy" : "postType";
-      const entityRecord = getEntityRecord(entityType, type, id);
+      const typeForAPI = type === "tag" ? "post_tag" : type;
+      const entityRecord = getEntityRecord(entityType, typeForAPI, id);
       const hasResolved = hasFinishedResolution("getEntityRecord", [
         entityType,
-        type,
+        typeForAPI,
         id
       ]);
       return hasResolved ? entityRecord !== void 0 : true;
@@ -34041,7 +34042,7 @@ function controls_Controls({ attributes, setAttributes, clientId }) {
                   });
                 },
                 help: hasUrlBinding && !isBoundEntityAvailable ? /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
-                  MissingEntityHelpText,
+                  MissingEntityHelp,
                   {
                     id: helpTextId,
                     type: attributes.type,
@@ -34151,25 +34152,17 @@ function BindingHelpText({ type, kind }) {
     entityType
   );
 }
-function MissingEntityHelpText({ id, type, kind }) {
+function MissingEntityHelpText({ type, kind }) {
   const entityType = getEntityTypeName(type, kind);
-  return /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
-    "span",
-    {
-      id,
-      className: "navigation-link-control__error-text",
-      role: "alert",
-      "aria-live": "polite",
-      children: (0,external_wp_i18n_namespaceObject.sprintf)(
-        /* translators: %s is the entity type (e.g., "page", "post", "category") */
-        (0,external_wp_i18n_namespaceObject.__)(
-          "Synced %s is missing. Please update or remove this link."
-        ),
-        entityType
-      )
-    }
+  return (0,external_wp_i18n_namespaceObject.sprintf)(
+    /* translators: %s is the entity type (e.g., "page", "post", "category") */
+    (0,external_wp_i18n_namespaceObject.__)("Synced %s is missing. Please update or remove this link."),
+    entityType
   );
 }
+function MissingEntityHelp({ id, type, kind }) {
+  return /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)("span", { id, className: "navigation-link-control__error-text", children: /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(MissingEntityHelpText, { type, kind }) });
+}


 ;// ./node_modules/@wordpress/block-library/build-module/navigation-link/edit.js
@@ -34423,6 +34416,9 @@ function NavigationLinkEdit({
       setIsLinkOpen(true);
     }
   }
+  const instanceId = (0,external_wp_compose_namespaceObject.useInstanceId)(NavigationLinkEdit);
+  const hasMissingEntity = hasUrlBinding && !isBoundEntityAvailable;
+  const missingEntityDescriptionId = hasMissingEntity ? (0,external_wp_i18n_namespaceObject.sprintf)("navigation-link-edit-%d-desc", instanceId) : void 0;
   const blockProps = (0,external_wp_blockEditor_namespaceObject.useBlockProps)({
     ref: (0,external_wp_compose_namespaceObject.useMergeRefs)([setPopoverAnchor, listItemRef]),
     className: dist_clsx("wp-block-navigation-item", {
@@ -34435,6 +34431,8 @@ function NavigationLinkEdit({
       "has-background": !!backgroundColor || customBackgroundColor,
       [(0,external_wp_blockEditor_namespaceObject.getColorClassName)("background-color", backgroundColor)]: !!backgroundColor
     }),
+    "aria-describedby": missingEntityDescriptionId,
+    "aria-invalid": hasMissingEntity,
     style: {
       color: !textColor && customTextColor,
       backgroundColor: !backgroundColor && customBackgroundColor
@@ -34496,6 +34494,7 @@ function NavigationLinkEdit({
       }
     ) }),
     /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", { ...blockProps, children: [
+      hasMissingEntity && /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.VisuallyHidden, { id: missingEntityDescriptionId, children: /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(MissingEntityHelpText, { type, kind }) }),
       /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsxs)("a", { className: classes, children: [
         !url && !metadata?.bindings?.url ? /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)("div", { className: "wp-block-navigation-link__placeholder-text", children: /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)("span", { children: missingText }) }) : /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, { children: [
           !isInvalid && !isDraft && /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, { children: [
@@ -49536,7 +49535,7 @@ function SocialLinksEdit(props) {
                 {
                   __next40pxDefaultSize: true,
                   __nextHasNoMarginBottom: true,
-                  label: (0,external_wp_i18n_namespaceObject.__)("Icon Size"),
+                  label: (0,external_wp_i18n_namespaceObject.__)("Icon size"),
                   onChange: (newSize) => {
                     setAttributes({
                       size: newSize === "" ? void 0 : newSize
diff --git a/wp-includes/js/dist/block-library.min.js b/wp-includes/js/dist/block-library.min.js
index eb909c7bf7..b7e6f92535 100644
--- a/wp-includes/js/dist/block-library.min.js
+++ b/wp-includes/js/dist/block-library.min.js
@@ -1,4 +1,4 @@
 /*! This file is auto-generated */
-(()=>{var e,t,o={3533:e=>{"use strict";e.exports=window.wp.latexToMathml},7734:e=>{"use strict";e.exports=function e(t,o){if(t===o)return!0;if(t&&o&&"object"==typeof t&&"object"==typeof o){if(t.constructor!==o.constructor)return!1;var n,r,a;if(Array.isArray(t)){if((n=t.length)!=o.length)return!1;for(r=n;0!=r--;)if(!e(t[r],o[r]))return!1;return!0}if(t instanceof Map&&o instanceof Map){if(t.size!==o.size)return!1;for(r of t.entries())if(!o.has(r[0]))return!1;for(r of t.entries())if(!e(r[1],o.get(r[0])))return!1;return!0}if(t instanceof Set&&o instanceof Set){if(t.size!==o.size)return!1;for(r of t.entries())if(!o.has(r[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(o)){if((n=t.length)!=o.length)return!1;for(r=n;0!=r--;)if(t[r]!==o[r])return!1;return!0}if(t.constructor===RegExp)return t.source===o.source&&t.flags===o.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===o.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===o.toString();if((n=(a=Object.keys(t)).length)!==Object.keys(o).length)return!1;for(r=n;0!=r--;)if(!Object.prototype.hasOwnProperty.call(o,a[r]))return!1;for(r=n;0!=r--;){var i=a[r];if(!e(t[i],o[i]))return!1}return!0}return t!=t&&o!=o}},9681:e=>{var t={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",Ấ:"A",Ắ:"A",Ẳ:"A",Ẵ:"A",Ặ:"A",Æ:"AE",Ầ:"A",Ằ:"A",Ȃ:"A",Ả:"A",Ạ:"A",Ẩ:"A",Ẫ:"A",Ậ:"A",Ç:"C",Ḉ:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ế:"E",Ḗ:"E",Ề:"E",Ḕ:"E",Ḝ:"E",Ȇ:"E",Ẻ:"E",Ẽ:"E",Ẹ:"E",Ể:"E",Ễ:"E",Ệ:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ḯ:"I",Ȋ:"I",Ỉ:"I",Ị:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",Ố:"O",Ṍ:"O",Ṓ:"O",Ȏ:"O",Ỏ:"O",Ọ:"O",Ổ:"O",Ỗ:"O",Ộ:"O",Ờ:"O",Ở:"O",Ỡ:"O",Ớ:"O",Ợ:"O",Ù:"U",Ú:"U",Û:"U",Ü:"U",Ủ:"U",Ụ:"U",Ử:"U",Ữ:"U",Ự:"U",Ý:"Y",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",ấ:"a",ắ:"a",ẳ:"a",ẵ:"a",ặ:"a",æ:"ae",ầ:"a",ằ:"a",ȃ:"a",ả:"a",ạ:"a",ẩ:"a",ẫ:"a",ậ:"a",ç:"c",ḉ:"c",è:"e",é:"e",ê:"e",ë:"e",ế:"e",ḗ:"e",ề:"e",ḕ:"e",ḝ:"e",ȇ:"e",ẻ:"e",ẽ:"e",ẹ:"e",ể:"e",ễ:"e",ệ:"e",ì:"i",í:"i",î:"i",ï:"i",ḯ:"i",ȋ:"i",ỉ:"i",ị:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",ố:"o",ṍ:"o",ṓ:"o",ȏ:"o",ỏ:"o",ọ:"o",ổ:"o",ỗ:"o",ộ:"o",ờ:"o",ở:"o",ỡ:"o",ớ:"o",ợ:"o",ù:"u",ú:"u",û:"u",ü:"u",ủ:"u",ụ:"u",ử:"u",ữ:"u",ự:"u",ý:"y",ÿ:"y",Ā:"A",ā:"a",Ă:"A",ă:"a",Ą:"A",ą:"a",Ć:"C",ć:"c",Ĉ:"C",ĉ:"c",Ċ:"C",ċ:"c",Č:"C",č:"c",C̆:"C",c̆:"c",Ď:"D",ď:"d",Đ:"D",đ:"d",Ē:"E",ē:"e",Ĕ:"E",ĕ:"e",Ė:"E",ė:"e",Ę:"E",ę:"e",Ě:"E",ě:"e",Ĝ:"G",Ǵ:"G",ĝ:"g",ǵ:"g",Ğ:"G",ğ:"g",Ġ:"G",ġ:"g",Ģ:"G",ģ:"g",Ĥ:"H",ĥ:"h",Ħ:"H",ħ:"h",Ḫ:"H",ḫ:"h",Ĩ:"I",ĩ:"i",Ī:"I",ī:"i",Ĭ:"I",ĭ:"i",Į:"I",į:"i",İ:"I",ı:"i",IJ:"IJ",ij:"ij",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",Ḱ:"K",ḱ:"k",K̆:"K",k̆:"k",Ĺ:"L",ĺ:"l",Ļ:"L",ļ:"l",Ľ:"L",ľ:"l",Ŀ:"L",ŀ:"l",Ł:"l",ł:"l",Ḿ:"M",ḿ:"m",M̆:"M",m̆:"m",Ń:"N",ń:"n",Ņ:"N",ņ:"n",Ň:"N",ň:"n",ʼn:"n",N̆:"N",n̆:"n",Ō:"O",ō:"o",Ŏ:"O",ŏ:"o",Ő:"O",ő:"o",Œ:"OE",œ:"oe",P̆:"P",p̆:"p",Ŕ:"R",ŕ:"r",Ŗ:"R",ŗ:"r",Ř:"R",ř:"r",R̆:"R",r̆:"r",Ȓ:"R",ȓ:"r",Ś:"S",ś:"s",Ŝ:"S",ŝ:"s",Ş:"S",Ș:"S",ș:"s",ş:"s",Š:"S",š:"s",Ţ:"T",ţ:"t",ț:"t",Ț:"T",Ť:"T",ť:"t",Ŧ:"T",ŧ:"t",T̆:"T",t̆:"t",Ũ:"U",ũ:"u",Ū:"U",ū:"u",Ŭ:"U",ŭ:"u",Ů:"U",ů:"u",Ű:"U",ű:"u",Ų:"U",ų:"u",Ȗ:"U",ȗ:"u",V̆:"V",v̆:"v",Ŵ:"W",ŵ:"w",Ẃ:"W",ẃ:"w",X̆:"X",x̆:"x",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Y̆:"Y",y̆:"y",Ź:"Z",ź:"z",Ż:"Z",ż:"z",Ž:"Z",ž:"z",ſ:"s",ƒ:"f",Ơ:"O",ơ:"o",Ư:"U",ư:"u",Ǎ:"A",ǎ:"a",Ǐ:"I",ǐ:"i",Ǒ:"O",ǒ:"o",Ǔ:"U",ǔ:"u",Ǖ:"U",ǖ:"u",Ǘ:"U",ǘ:"u",Ǚ:"U",ǚ:"u",Ǜ:"U",ǜ:"u",Ứ:"U",ứ:"u",Ṹ:"U",ṹ:"u",Ǻ:"A",ǻ:"a",Ǽ:"AE",ǽ:"ae",Ǿ:"O",ǿ:"o",Þ:"TH",þ:"th",Ṕ:"P",ṕ:"p",Ṥ:"S",ṥ:"s",X́:"X",x́:"x",Ѓ:"Г",ѓ:"г",Ќ:"К",ќ:"к",A̋:"A",a̋:"a",E̋:"E",e̋:"e",I̋:"I",i̋:"i",Ǹ:"N",ǹ:"n",Ồ:"O",ồ:"o",Ṑ:"O",ṑ:"o",Ừ:"U",ừ:"u",Ẁ:"W",ẁ:"w",Ỳ:"Y",ỳ:"y",Ȁ:"A",ȁ:"a",Ȅ:"E",ȅ:"e",Ȉ:"I",ȉ:"i",Ȍ:"O",ȍ:"o",Ȑ:"R",ȑ:"r",Ȕ:"U",ȕ:"u",B̌:"B",b̌:"b",Č̣:"C",č̣:"c",Ê̌:"E",ê̌:"e",F̌:"F",f̌:"f",Ǧ:"G",ǧ:"g",Ȟ:"H",ȟ:"h",J̌:"J",ǰ:"j",Ǩ:"K",ǩ:"k",M̌:"M",m̌:"m",P̌:"P",p̌:"p",Q̌:"Q",q̌:"q",Ř̩:"R",ř̩:"r",Ṧ:"S",ṧ:"s",V̌:"V",v̌:"v",W̌:"W",w̌:"w",X̌:"X",x̌:"x",Y̌:"Y",y̌:"y",A̧:"A",a̧:"a",B̧:"B",b̧:"b",Ḑ:"D",ḑ:"d",Ȩ:"E",ȩ:"e",Ɛ̧:"E",ɛ̧:"e",Ḩ:"H",ḩ:"h",I̧:"I",i̧:"i",Ɨ̧:"I",ɨ̧:"i",M̧:"M",m̧:"m",O̧:"O",o̧:"o",Q̧:"Q",q̧:"q",U̧:"U",u̧:"u",X̧:"X",x̧:"x",Z̧:"Z",z̧:"z",й:"и",Й:"И",ё:"е",Ё:"Е"},o=Object.keys(t).join("|"),n=new RegExp(o,"g"),r=new RegExp(o,"");function a(e){return t[e]}var i=function(e){return e.replace(n,a)};e.exports=i,e.exports.has=function(e){return!!e.match(r)},e.exports.remove=i}},n={};function r(e){var t=n[e];if(void 0!==t)return t.exports;var a=n[e]={exports:{}};return o[e](a,a.exports,r),a.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,r.t=function(o,n){if(1&n&&(o=this(o)),8&n)return o;if("object"==typeof o&&o){if(4&n&&o.__esModule)return o;if(16&n&&"function"==typeof o.then)return o}var a=Object.create(null);r.r(a);var i={};e=e||[null,t({}),t([]),t(t)];for(var s=2&n&&o;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>i[e]=()=>o[e]));return i.default=()=>o,r.d(a,i),a},r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};(()=>{"use strict";r.r(a),r.d(a,{__experimentalGetCoreBlocks:()=>oP,__experimentalRegisterExperimentalCoreBlocks:()=>rP,privateApis:()=>tP,registerCoreBlocks:()=>nP});var e={};r.r(e),r.d(e,{init:()=>Pt,metadata:()=>Ct,name:()=>Tt,settings:()=>Nt});var t={};r.r(t),r.d(t,{init:()=>Ht,metadata:()=>Mt,name:()=>At,settings:()=>Lt});var o={};r.r(o),r.d(o,{init:()=>$t,metadata:()=>Rt,name:()=>Ot,settings:()=>Gt});var n={};r.r(n),r.d(n,{init:()=>Jt,metadata:()=>Ut,name:()=>Wt,settings:()=>Zt});var i={};r.r(i),r.d(i,{init:()=>eo,metadata:()=>Kt,name:()=>Yt,settings:()=>Xt});var s={};r.r(s),r.d(s,{init:()=>ho,metadata:()=>oo,name:()=>mo,settings:()=>go});var l={};r.r(l),r.d(l,{init:()=>Eo,metadata:()=>Ho,name:()=>Vo,settings:()=>Fo});var c={};r.r(c),r.d(c,{init:()=>Jo,metadata:()=>Go,name:()=>Wo,settings:()=>Zo});var u={};r.r(u),r.d(u,{init:()=>wn,metadata:()=>yn,name:()=>vn,settings:()=>kn});var d={};r.r(d),r.d(d,{init:()=>Hn,metadata:()=>zn,name:()=>An,settings:()=>Ln});var p={};r.r(p),r.d(p,{init:()=>$n,metadata:()=>Vn,name:()=>On,settings:()=>Gn});var m={};r.r(m),r.d(m,{init:()=>Yn,metadata:()=>qn,name:()=>Qn,settings:()=>Kn});var g={};r.r(g),r.d(g,{init:()=>ur,metadata:()=>sr,name:()=>lr,settings:()=>cr});var h={};r.r(h),r.d(h,{init:()=>fr,metadata:()=>pr,name:()=>xr,settings:()=>br});var _={};r.r(_),r.d(_,{init:()=>Tr,metadata:()=>jr,name:()=>Sr,settings:()=>Br});var x={};r.r(x),r.d(x,{init:()=>Wr,metadata:()=>Er,name:()=>Ur,settings:()=>qr});var b={};r.r(b),r.d(b,{init:()=>ia,metadata:()=>Jr,name:()=>ra,settings:()=>aa});var f={};r.r(f),r.d(f,{init:()=>ua,metadata:()=>sa,name:()=>la,settings:()=>ca});var y={};r.r(y),r.d(y,{init:()=>xa,metadata:()=>pa,name:()=>ha,settings:()=>_a});var v={};r.r(v),r.d(v,{init:()=>ka,metadata:()=>fa,name:()=>ya,settings:()=>va});var k={};r.r(k),r.d(k,{init:()=>Pa,metadata:()=>Ca,name:()=>Ta,settings:()=>Na});var w={};r.r(w),r.d(w,{init:()=>Aa,metadata:()=>Da,name:()=>Ma,settings:()=>za});var C={};r.r(C),r.d(C,{init:()=>Ea,metadata:()=>Ha,name:()=>Va,settings:()=>Fa});var j={};r.r(j),r.d(j,{init:()=>Xa,metadata:()=>Ga,name:()=>Ka,settings:()=>Ya});var S={};r.r(S),r.d(S,{init:()=>ai,metadata:()=>ti,name:()=>ni,settings:()=>ri});var B={};r.r(B),r.d(B,{init:()=>pi,metadata:()=>si,name:()=>ui,settings:()=>di});var T={};r.r(T),r.d(T,{init:()=>bi,metadata:()=>gi,name:()=>_i,settings:()=>xi});var N={};r.r(N),r.d(N,{init:()=>Ci,metadata:()=>yi,name:()=>ki,settings:()=>wi});var P={};r.r(P),r.d(P,{init:()=>Di,metadata:()=>Si,name:()=>Pi,settings:()=>Ii});var I={};r.r(I),r.d(I,{init:()=>zl,metadata:()=>Bl,name:()=>Dl,settings:()=>Ml});var D={};r.r(D),r.d(D,{init:()=>Gl,metadata:()=>Ll,name:()=>El,settings:()=>Ol});var M={};r.r(M),r.d(M,{init:()=>Pc,metadata:()=>yo,name:()=>Tc,settings:()=>Nc});var z={};r.r(z),r.d(z,{init:()=>Wc,metadata:()=>Oc,name:()=>Uc,settings:()=>qc});var A={};r.r(A),r.d(A,{init:()=>au,metadata:()=>Yc,name:()=>nu,settings:()=>ru});var L={};r.r(L),r.d(L,{init:()=>fu,metadata:()=>gu,name:()=>xu,settings:()=>bu});var H={};r.r(H),r.d(H,{init:()=>ju,metadata:()=>ku,name:()=>wu,settings:()=>Cu});var R={};r.r(R),r.d(R,{init:()=>zu,metadata:()=>Nu,name:()=>Du,settings:()=>Mu});var V={};r.r(V),r.d(V,{init:()=>Md,metadata:()=>Td,name:()=>Id,settings:()=>Dd});var F={};r.r(F),r.d(F,{init:()=>Kd,metadata:()=>Od,name:()=>Jd,settings:()=>Qd});var E={};r.r(E),r.d(E,{init:()=>kp,metadata:()=>hp,name:()=>yp,settings:()=>vp});var O={};r.r(O),r.d(O,{init:()=>Tp,metadata:()=>Cp,name:()=>Sp,settings:()=>Bp});var G={};r.r(G),r.d(G,{init:()=>Ap,metadata:()=>Ip,name:()=>Mp,settings:()=>zp});var $={};r.r($),r.d($,{init:()=>mm,metadata:()=>im,name:()=>dm,settings:()=>pm});var U={};r.r(U),r.d(U,{init:()=>bm,metadata:()=>hm,name:()=>_m,settings:()=>xm});var q={};r.r(q),r.d(q,{init:()=>zm,metadata:()=>ym,name:()=>Dm,settings:()=>Mm});var W={};r.r(W),r.d(W,{init:()=>cg,metadata:()=>og,name:()=>sg,settings:()=>lg});var Z={};r.r(Z),r.d(Z,{init:()=>xg,metadata:()=>pg,name:()=>hg,settings:()=>_g});var J={};r.r(J),r.d(J,{init:()=>Pg,metadata:()=>fg,name:()=>Tg,settings:()=>Ng});var Q={};r.r(Q),r.d(Q,{init:()=>Ag,metadata:()=>Dg,name:()=>Mg,settings:()=>zg});var K={};r.r(K),r.d(K,{init:()=>Sh,metadata:()=>yh,name:()=>Ch,settings:()=>jh});var Y={};r.r(Y),r.d(Y,{init:()=>Ph,metadata:()=>Bh,name:()=>Th,settings:()=>Nh});var X={};r.r(X),r.d(X,{init:()=>Hh,metadata:()=>Mh,name:()=>Ah,settings:()=>Lh});var ee={};r.r(ee),r.d(ee,{init:()=>Sx,metadata:()=>Vh,name:()=>Cx,settings:()=>jx});var te={};r.r(te),r.d(te,{init:()=>Ox,metadata:()=>Bx,name:()=>Fx,settings:()=>Ex});var oe={};r.r(oe),r.d(oe,{init:()=>Kx,metadata:()=>Gx,name:()=>Jx,settings:()=>Qx});var ne={};r.r(ne),r.d(ne,{init:()=>nb,metadata:()=>Xx,name:()=>tb,settings:()=>ob});var re={};r.r(re),r.d(re,{init:()=>mb,metadata:()=>rb,name:()=>db,settings:()=>pb});var ae={};r.r(ae),r.d(ae,{init:()=>jb,metadata:()=>hb,name:()=>wb,settings:()=>Cb});var ie={};r.r(ie),r.d(ie,{init:()=>Pb,metadata:()=>Sb,name:()=>Tb,settings:()=>Nb});var se={};r.r(se),r.d(se,{init:()=>Yb,metadata:()=>Ub,name:()=>Qb,settings:()=>Kb});var le={};r.r(le),r.d(le,{init:()=>sf,metadata:()=>ef,name:()=>rf,settings:()=>af});var ce={};r.r(ce),r.d(ce,{init:()=>mf,metadata:()=>lf,name:()=>df,settings:()=>pf});var ue={};r.r(ue),r.d(ue,{init:()=>bf,metadata:()=>gf,name:()=>_f,settings:()=>xf});var de={};r.r(de),r.d(de,{init:()=>Cf,metadata:()=>ff,name:()=>kf,settings:()=>wf});var pe={};r.r(pe),r.d(pe,{init:()=>Pf,metadata:()=>Sf,name:()=>Tf,settings:()=>Nf});var me={};r.r(me),r.d(me,{init:()=>Af,metadata:()=>Df,name:()=>Mf,settings:()=>zf});var ge={};r.r(ge),r.d(ge,{init:()=>Ef,metadata:()=>Lf,name:()=>Vf,settings:()=>Ff});var he={};r.r(he),r.d(he,{init:()=>Xf,metadata:()=>Gf,name:()=>Kf,settings:()=>Yf});var _e={};r.r(_e),r.d(_e,{init:()=>uy,metadata:()=>ey,name:()=>ly,settings:()=>cy});var xe={};r.r(xe),r.d(xe,{init:()=>_y,metadata:()=>py,name:()=>gy,settings:()=>hy});var be={};r.r(be),r.d(be,{init:()=>Iy,metadata:()=>by,name:()=>Ny,settings:()=>Py});var fe={};r.r(fe),r.d(fe,{init:()=>Vy,metadata:()=>Dy,name:()=>Hy,settings:()=>Ry});var ye={};r.r(ye),r.d(ye,{init:()=>qy,metadata:()=>Fy,name:()=>$y,settings:()=>Uy});var ve={};r.r(ve),r.d(ve,{init:()=>ov,metadata:()=>Zy,name:()=>ev,settings:()=>tv});var ke={};r.r(ke),r.d(ke,{init:()=>pv,metadata:()=>rv,name:()=>uv,settings:()=>dv});var we={};r.r(we),r.d(we,{init:()=>bv,metadata:()=>mv,name:()=>_v,settings:()=>xv});var Ce={};r.r(Ce),r.d(Ce,{init:()=>jv,metadata:()=>yv,name:()=>wv,settings:()=>Cv});var je={};r.r(je),r.d(je,{init:()=>Uv,metadata:()=>Fv,name:()=>Gv,settings:()=>$v});var Se={};r.r(Se),r.d(Se,{init:()=>rw,metadata:()=>Wv,name:()=>ow,settings:()=>nw});var Be={};r.r(Be),r.d(Be,{init:()=>cw,metadata:()=>aw,name:()=>sw,settings:()=>lw});var Te={};r.r(Te),r.d(Te,{init:()=>xw,metadata:()=>uw,name:()=>hw,settings:()=>_w});var Ne={};r.r(Ne),r.d(Ne,{init:()=>kw,metadata:()=>bw,name:()=>yw,settings:()=>vw});var Pe={};r.r(Pe),r.d(Pe,{init:()=>Bw,metadata:()=>ww,name:()=>jw,settings:()=>Sw});var Ie={};r.r(Ie),r.d(Ie,{init:()=>Dw,metadata:()=>Tw,name:()=>Pw,settings:()=>Iw});var De={};r.r(De),r.d(De,{init:()=>Ew,metadata:()=>Mw,name:()=>Vw,settings:()=>Fw});var Me={};r.r(Me),r.d(Me,{init:()=>Zw,metadata:()=>Ow,name:()=>qw,settings:()=>Ww});var ze={};r.r(ze),r.d(ze,{init:()=>mC,metadata:()=>lC,name:()=>dC,settings:()=>pC});var Ae={};r.r(Ae),r.d(Ae,{init:()=>NC,metadata:()=>hC,name:()=>BC,settings:()=>TC});var Le={};r.r(Le),r.d(Le,{init:()=>MC,metadata:()=>PC,name:()=>IC,settings:()=>DC});var He={};r.r(He),r.d(He,{init:()=>RC,metadata:()=>AC,name:()=>LC,settings:()=>HC});var Re={};r.r(Re),r.d(Re,{init:()=>qC,metadata:()=>FC,name:()=>$C,settings:()=>UC});var Ve={};r.r(Ve),r.d(Ve,{init:()=>tj,metadata:()=>JC,name:()=>XC,settings:()=>ej});var Fe={};r.r(Fe),r.d(Fe,{init:()=>lj,metadata:()=>aj,name:()=>ij,settings:()=>sj});var Ee={};r.r(Ee),r.d(Ee,{init:()=>fj,metadata:()=>uj,name:()=>xj,settings:()=>bj});var Oe={};r.r(Oe),r.d(Oe,{init:()=>Sj,metadata:()=>yj,name:()=>Cj,settings:()=>jj});var Ge={};r.r(Ge),r.d(Ge,{init:()=>zj,metadata:()=>Tj,name:()=>Dj,settings:()=>Mj});var $e={};r.r($e),r.d($e,{init:()=>Uj,metadata:()=>Fj,name:()=>Gj,settings:()=>$j});var Ue={};r.r(Ue),r.d(Ue,{init:()=>Xj,metadata:()=>Qj,name:()=>Kj,settings:()=>Yj});var qe={};r.r(qe),r.d(qe,{init:()=>mS,metadata:()=>cS,name:()=>dS,settings:()=>pS});var We={};r.r(We),r.d(We,{init:()=>XS,metadata:()=>qS,name:()=>KS,settings:()=>YS});var Ze={};r.r(Ze),r.d(Ze,{init:()=>uB,metadata:()=>tB,name:()=>lB,settings:()=>cB});var Je={};r.r(Je),r.d(Je,{init:()=>_B,metadata:()=>pB,name:()=>gB,settings:()=>hB});var Qe={};r.r(Qe),r.d(Qe,{init:()=>JB,metadata:()=>CB,name:()=>WB,settings:()=>ZB});var Ke={};r.r(Ke),r.d(Ke,{init:()=>sT,metadata:()=>KB,name:()=>aT,settings:()=>iT});var Ye={};r.r(Ye),r.d(Ye,{init:()=>mT,metadata:()=>cT,name:()=>dT,settings:()=>pT});var Xe={};r.r(Xe),r.d(Xe,{init:()=>fT,metadata:()=>hT,name:()=>xT,settings:()=>bT});var et={};r.r(et),r.d(et,{init:()=>$T,metadata:()=>yT,name:()=>OT,settings:()=>GT});var tt={};r.r(tt),r.d(tt,{init:()=>KT,metadata:()=>UT,name:()=>JT,settings:()=>QT});var ot={};r.r(ot),r.d(ot,{init:()=>oN,metadata:()=>YT,name:()=>eN,settings:()=>tN});var nt={};r.r(nt),r.d(nt,{init:()=>dN,metadata:()=>iN,name:()=>cN,settings:()=>uN});var rt={};r.r(rt),r.d(rt,{init:()=>MN,metadata:()=>mN,name:()=>IN,settings:()=>DN});var at={};r.r(at),r.d(at,{init:()=>ZN,metadata:()=>zN,name:()=>qN,settings:()=>WN});const it=window.ReactJSXRuntime,st=window.wp.blocks,lt=window.wp.data,ct=window.wp.blockEditor,ut=window.wp.serverSideRender;var dt=r.n(ut);const pt=window.wp.i18n,mt=window.wp.components,gt=window.wp.element,ht=window.wp.blob,_t=window.wp.coreData,xt=window.wp.compose;function bt(e,t,o){return(0,lt.useSelect)((n=>n(_t.store).canUser("update",{kind:e,name:t,id:o})),[e,t,o])}function ft(e={}){const t=(0,gt.useRef)(e),o=(0,gt.useRef)(!1),{getSettings:n}=(0,lt.useSelect)(ct.store);(0,gt.useLayoutEffect)((()=>{t.current=e})),(0,gt.useEffect)((()=>{if(o.current)return;if(!t.current.url||!(0,ht.isBlobURL)(t.current.url))return;const e=(0,ht.getBlobByURL)(t.current.url);if(!e)return;const{url:r,allowedTypes:a,onChange:i,onError:s}=t.current,{mediaUpload:l}=n();l&&(o.current=!0,l({filesList:[e],allowedTypes:a,onFileChange:([e])=>{(0,ht.isBlobURL)(e?.url)||((0,ht.revokeBlobURL)(r),i(e),o.current=!1)},onError:e=>{(0,ht.revokeBlobURL)(r),s(e),o.current=!1}}))}),[n])}function yt(){const{avatarURL:e}=(0,lt.useSelect)((e=>{const{getSettings:t}=e(ct.store),{__experimentalDiscussionSettings:o}=t();return o}));return e}function vt(){return(0,xt.useViewportMatch)("medium","<")?{}:{popoverProps:{placement:"left-start",offset:259}}}const kt="core/accordion-item",wt={name:kt};const Ct=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/accordion","title":"Accordion","category":"design","description":"Displays a foldable layout that groups content in collapsible sections.","example":{},"supports":{"anchor":true,"html":false,"align":["wide","full"],"background":{"backgroundImage":true,"backgroundSize":true,"__experimentalDefaultControls":{"backgroundImage":true}},"color":{"background":true,"gradients":true},"__experimentalBorder":{"color":true,"radius":true,"style":true,"width":true,"__experimentalDefaultControls":{"color":true,"radius":true,"style":true,"width":true}},"spacing":{"padding":true,"margin":["top","bottom"],"blockGap":true},"shadow":true,"layout":true,"ariaLabel":true,"interactivity":true,"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"contentRole":true},"attributes":{"iconPosition":{"type":"string","default":"right"},"showIcon":{"type":"boolean","default":true},"autoclose":{"type":"boolean","default":false},"headingLevel":{"type":"number","default":3},"levelOptions":{"type":"array"}},"providesContext":{"core/accordion-icon-position":"iconPosition","core/accordion-show-icon":"showIcon","core/accordion-heading-level":"headingLevel"},"allowedBlocks":["core/accordion-item"],"textdomain":"default","viewScriptModule":"@wordpress/block-library/accordion/view"}');function jt(e){if(!e)return;const{metadata:t,settings:o,name:n}=e;return(0,st.registerBlockType)({name:n,...t},o)}const St=window.wp.primitives;var Bt=(0,it.jsxs)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,it.jsx)(St.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M19.5 9.25L9.5 9.25L9.5 7.75L19.5 7.75L19.5 9.25Z",fill:"currentColor"}),(0,it.jsx)(St.Path,{d:"M4.5 6L8.5 8.5L4.5 11L4.5 6Z",fill:"currentColor"}),(0,it.jsx)(St.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M19.5 16.25L9.5 16.25L9.5 14.75L19.5 14.75L19.5 16.25Z",fill:"currentColor"}),(0,it.jsx)(St.Path,{d:"M4.5 13L8.5 15.5L4.5 18L4.5 13Z",fill:"currentColor"})]});const{name:Tt}=Ct,Nt={icon:Bt,example:{innerBlocks:[{name:"core/accordion-item",innerBlocks:[{name:"core/accordion-heading",attributes:{title:(0,pt.__)("Lorem ipsum dolor sit amet, consectetur.")}}]},{name:"core/accordion-item",innerBlocks:[{name:"core/accordion-heading",attributes:{title:(0,pt.__)("Suspendisse commodo lacus, interdum et.")}}]}]},edit:function({attributes:{autoclose:e,iconPosition:t,showIcon:o,headingLevel:n,levelOptions:r},clientId:a,setAttributes:i,isSelected:s}){const l=(0,lt.useRegistry)(),{getBlockOrder:c}=(0,lt.useSelect)(ct.store),u=(0,ct.useBlockProps)({role:"group"}),d=vt(),{updateBlockAttributes:p,insertBlock:m}=(0,lt.useDispatch)(ct.store),g="contentOnly"===(0,ct.useBlockEditingMode)(),h=(0,ct.useInnerBlocksProps)(u,{template:[[kt]],defaultBlock:wt,directInsert:!0,templateInsertUpdatesSelection:!0});return(0,it.jsxs)(it.Fragment,{children:[s&&!g&&(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.BlockControls,{children:(0,it.jsx)(mt.ToolbarGroup,{children:(0,it.jsx)(ct.HeadingLevelDropdown,{value:n,options:r,onChange:e=>{const t=c(a),o=[];t.forEach((e=>{const t=c(e);o.push(...t)})),l.batch((()=>{i({headingLevel:e}),p(o,{level:e})}))}})})}),(0,it.jsx)(ct.BlockControls,{group:"other",children:(0,it.jsx)(mt.ToolbarButton,{onClick:()=>{const e=(0,st.createBlock)(kt,{},[(0,st.createBlock)("core/accordion-heading",{level:n}),(0,st.createBlock)("core/accordion-panel",{})]);m(e,void 0,a)},children:(0,pt.__)("Add item")})})]}),(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{i({autoclose:!1,showIcon:!0,iconPosition:"right"})},dropdownMenuProps:d,children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Auto-close"),isShownByDefault:!0,hasValue:()=>!!e,onDeselect:()=>i({autoclose:!1}),children:(0,it.jsx)(mt.ToggleControl,{isBlock:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("Auto-close"),onChange:e=>{i({autoclose:e})},checked:e,help:(0,pt.__)("Automatically close accordions when a new one is opened.")})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Show icon"),isShownByDefault:!0,hasValue:()=>!o,onDeselect:()=>i({showIcon:!0}),children:(0,it.jsx)(mt.ToggleControl,{isBlock:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("Show icon"),onChange:e=>{i({showIcon:e,iconPosition:e?t:"right"})},checked:o,help:(0,pt.__)("Display a plus icon next to the accordion header.")})}),o&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Icon Position"),isShownByDefault:!0,hasValue:()=>"right"!==t,onDeselect:()=>i({iconPosition:"right"}),children:(0,it.jsxs)(mt.__experimentalToggleGroupControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,isBlock:!0,label:(0,pt.__)("Icon Position"),value:t,onChange:e=>{i({iconPosition:e})},children:[(0,it.jsx)(mt.__experimentalToggleGroupControlOption,{label:(0,pt.__)("Left"),value:"left"}),(0,it.jsx)(mt.__experimentalToggleGroupControlOption,{label:(0,pt.__)("Right"),value:"right"})]})})]})},"setting"),(0,it.jsx)("div",{...h})]})},save:function(){const e=ct.useBlockProps.save({role:"group"});return(0,it.jsx)("div",{...ct.useInnerBlocksProps.save(e)})}},Pt=()=>jt({name:Tt,metadata:Ct,settings:Nt});function It(e){var t,o,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(o=It(e[t]))&&(n&&(n+=" "),n+=o)}else for(o in e)e[o]&&(n&&(n+=" "),n+=o);return n}const Dt=function(){for(var e,t,o=0,n="",r=arguments.length;o<r;o++)(e=arguments[o])&&(t=It(e))&&(n&&(n+=" "),n+=t);return n};const Mt=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/accordion-item","title":"Accordion Item","category":"design","description":"Wraps the heading and panel in one unit.","parent":["core/accordion"],"allowedBlocks":["core/accordion-heading","core/accordion-panel"],"supports":{"html":false,"color":{"background":true,"gradients":true},"interactivity":true,"spacing":{"margin":["top","bottom"],"blockGap":true},"__experimentalBorder":{"color":true,"radius":true,"style":true,"width":true,"__experimentalDefaultControls":{"color":true,"radius":true,"style":true,"width":true}},"shadow":true,"layout":{"allowEditing":false},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"contentRole":true},"attributes":{"openByDefault":{"type":"boolean","default":false}},"textdomain":"default","style":"wp-block-accordion-item"}');var zt=(0,it.jsxs)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,it.jsx)(St.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M19.5 9.5L9.5 9.5L9.5 8L19.5 8L19.5 9.5Z",fill:"currentColor"}),(0,it.jsx)(St.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M19.5 13L9.5 13L9.5 11.5L19.5 11.5L19.5 13Z",fill:"currentColor"}),(0,it.jsx)(St.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M19.5 16.3999L9.5 16.3999L9.5 14.8999L19.5 14.8999L19.5 16.3999Z",fill:"currentColor"}),(0,it.jsx)(St.Path,{d:"M4.5 6.25L8.5 8.75L4.5 11.25L4.5 6.25Z",fill:"currentColor"})]});const{name:At}=Mt,Lt={icon:zt,edit:function({attributes:e,clientId:t,setAttributes:o,context:n}){const{openByDefault:r}=e,a=vt(),{isSelected:i,getBlockOrder:s}=(0,lt.useSelect)((e=>{const{isBlockSelected:o,hasSelectedInnerBlock:n,getBlockOrder:r}=e(ct.store);return{isSelected:o(t)||n(t,!0),getBlockOrder:r}}),[t]),l=s(t)[1],{updateBlockAttributes:c,__unstableMarkNextChangeAsNotPersistent:u}=(0,lt.useDispatch)(ct.store);(0,gt.useEffect)((()=>{l&&(u(),c(l,{isSelected:i}))}),[i,l,u,c]);const d=(0,ct.useBlockProps)({className:Dt({"is-open":r||i})}),p=n&&n["core/accordion-heading-level"],m=(0,ct.useInnerBlocksProps)(d,{template:[["core/accordion-heading",p?{level:p}:{}],["core/accordion-panel",{openByDefault:r}]],templateLock:"all",directInsert:!0,templateInsertUpdatesSelection:!0});return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsx)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{o({openByDefault:!1}),l&&c(l,{openByDefault:!1})},dropdownMenuProps:a,children:(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Open by default"),isShownByDefault:!0,hasValue:()=>!!r,onDeselect:()=>{o({openByDefault:!1}),l&&c(l,{openByDefault:!1})},children:(0,it.jsx)(mt.ToggleControl,{label:(0,pt.__)("Open by default"),__nextHasNoMarginBottom:!0,onChange:e=>{o({openByDefault:e}),l&&c(l,{openByDefault:e})},checked:r,help:(0,pt.__)("Accordion content will be displayed by default.")})})})},"setting"),(0,it.jsx)("div",{...m})]})},save:function({attributes:e}){const{openByDefault:t}=e,o=ct.useBlockProps.save({className:Dt({"is-open":t})}),n=ct.useInnerBlocksProps.save(o);return(0,it.jsx)("div",{...n})}},Ht=()=>jt({name:At,metadata:Mt,settings:Lt});const Rt=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/accordion-heading","title":"Accordion Heading","category":"design","description":"Displays a heading that toggles the accordion panel.","parent":["core/accordion-item"],"usesContext":["core/accordion-icon-position","core/accordion-show-icon","core/accordion-heading-level"],"supports":{"anchor":true,"color":{"background":true,"gradients":true},"align":false,"interactivity":true,"spacing":{"padding":true,"__experimentalDefaultControls":{"padding":true},"__experimentalSkipSerialization":true,"__experimentalSelector":".wp-block-accordion-heading__toggle"},"__experimentalBorder":{"color":true,"radius":true,"style":true,"width":true,"__experimentalDefaultControls":{"color":true,"radius":true,"style":true,"width":true}},"typography":{"__experimentalSkipSerialization":["textDecoration","letterSpacing"],"fontSize":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true,"fontFamily":true}},"shadow":true,"blockVisibility":false,"lock":false},"selectors":{"typography":{"letterSpacing":".wp-block-accordion-heading .wp-block-accordion-heading__toggle-title","textDecoration":".wp-block-accordion-heading .wp-block-accordion-heading__toggle-title"}},"attributes":{"openByDefault":{"type":"boolean","default":false},"title":{"type":"rich-text","source":"rich-text","selector":".wp-block-accordion-heading__toggle-title","role":"content"},"level":{"type":"number"},"iconPosition":{"type":"string","enum":["left","right"],"default":"right"},"showIcon":{"type":"boolean","default":true}},"textdomain":"default"}');var Vt=(0,it.jsxs)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,it.jsx)(St.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M19.5 12.75L9.5 12.75L9.5 11.25L19.5 11.25L19.5 12.75Z",fill:"currentColor"}),(0,it.jsx)(St.Path,{d:"M4.5 9.5L8.5 12L4.5 14.5L4.5 9.5Z",fill:"currentColor"})]});const Ft={attributes:{openByDefault:{type:"boolean",default:!1},title:{type:"rich-text",source:"rich-text",selector:".wp-block-accordion-heading__toggle-title",role:"content"},level:{type:"number"},iconPosition:{type:"string",enum:["left","right"],default:"right"},showIcon:{type:"boolean",default:!0}},supports:{anchor:!0,color:{background:!0,gradients:!0},align:!1,interactivity:!0,spacing:{padding:!0,__experimentalDefaultControls:{padding:!0},__experimentalSkipSerialization:!0,__experimentalSelector:".wp-block-accordion-heading__toggle"},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},typography:{fontSize:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0,fontFamily:!0}},shadow:!0,blockVisibility:!1},save({attributes:e}){const{level:t,title:o,iconPosition:n,showIcon:r}=e,a="h"+(t||3),i=ct.useBlockProps.save(),s=(0,ct.__experimentalGetSpacingClassesAndStyles)(e);return(0,it.jsx)(a,{...i,children:(0,it.jsxs)("button",{className:"wp-block-accordion-heading__toggle",style:s.style,children:[r&&"left"===n&&(0,it.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"}),(0,it.jsx)(ct.RichText.Content,{className:"wp-block-accordion-heading__toggle-title",tagName:"span",value:o}),r&&"right"===n&&(0,it.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"})]})})}};var Et=[Ft];const{name:Ot}=Rt,Gt={icon:Vt,edit:function({attributes:e,setAttributes:t,context:o}){const{title:n}=e,{"core/accordion-icon-position":r,"core/accordion-show-icon":a,"core/accordion-heading-level":i}=o,s="h"+i;(0,gt.useEffect)((()=>{void 0!==r&&void 0!==a&&t({iconPosition:r,showIcon:a})}),[r,a,t]);const[l,c]=(0,ct.useSettings)("typography.fluid","layout"),u=(0,ct.getTypographyClassesAndStyles)(e,{typography:{fluid:l},layout:{wideSize:c?.wideSize}}),d=(0,ct.useBlockProps)(),p=(0,ct.__experimentalGetSpacingClassesAndStyles)(e);return(0,it.jsx)(s,{...d,children:(0,it.jsxs)("button",{className:"wp-block-accordion-heading__toggle",style:p.style,tabIndex:"-1",children:[a&&"left"===r&&(0,it.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"}),(0,it.jsx)(ct.RichText,{withoutInteractiveFormatting:!0,disableLineBreaks:!0,tagName:"span",value:n,onChange:e=>t({title:e}),placeholder:(0,pt.__)("Accordion title"),className:"wp-block-accordion-heading__toggle-title",style:{letterSpacing:u.style.letterSpacing,textDecoration:u.style.textDecoration}}),a&&"right"===r&&(0,it.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"})]})})},save:function({attributes:e}){const{level:t,title:o,iconPosition:n,showIcon:r}=e,a="h"+(t||3),i=(0,ct.getTypographyClassesAndStyles)(e),s=ct.useBlockProps.save(),l=(0,ct.__experimentalGetSpacingClassesAndStyles)(e);return(0,it.jsx)(a,{...s,children:(0,it.jsxs)("button",{className:"wp-block-accordion-heading__toggle",style:l.style,children:[r&&"left"===n&&(0,it.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"}),(0,it.jsx)(ct.RichText.Content,{className:"wp-block-accordion-heading__toggle-title",tagName:"span",value:o,style:{letterSpacing:i.style.letterSpacing,textDecoration:i.style.textDecoration}}),r&&"right"===n&&(0,it.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"})]})})},deprecated:Et},$t=()=>jt({name:Ot,metadata:Rt,settings:Gt});const Ut=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/accordion-panel","title":"Accordion Panel","category":"design","description":"Contains the hidden or revealed content beneath the heading.","parent":["core/accordion-item"],"supports":{"html":false,"color":{"background":true,"gradients":true},"interactivity":true,"spacing":{"padding":true,"blockGap":true,"__experimentalDefaultControls":{"padding":true,"blockGap":true}},"__experimentalBorder":{"color":true,"radius":true,"style":true,"width":true,"__experimentalDefaultControls":{"color":true,"radius":true,"style":true,"width":true}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"shadow":true,"layout":{"allowEditing":false},"blockVisibility":false,"contentRole":true,"allowedBlocks":true,"lock":false},"attributes":{"templateLock":{"type":["string","boolean"],"enum":["all","insert","contentOnly",false],"default":false},"openByDefault":{"type":"boolean","default":false},"isSelected":{"type":"boolean","default":false}},"textdomain":"default","style":"wp-block-accordion-panel"}');var qt=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M8.10417 6.00024H6.5C5.39543 6.00024 4.5 6.89567 4.5 8.00024V10.3336H6V8.00024C6 7.7241 6.22386 7.50024 6.5 7.50024H8.10417V6.00024ZM4.5 13.6669V16.0002C4.5 17.1048 5.39543 18.0002 6.5 18.0002H8.10417V16.5002H6.5C6.22386 16.5002 6 16.2764 6 16.0002V13.6669H4.5ZM10.3958 6.00024V7.50024H13.6042V6.00024H10.3958ZM15.8958 6.00024V7.50024H17.5C17.7761 7.50024 18 7.7241 18 8.00024V10.3336H19.5V8.00024C19.5 6.89567 18.6046 6.00024 17.5 6.00024H15.8958ZM19.5 13.6669H18V16.0002C18 16.2764 17.7761 16.5002 17.5 16.5002H15.8958V18.0002H17.5C18.6046 18.0002 19.5 17.1048 19.5 16.0002V13.6669ZM13.6042 18.0002V16.5002H10.3958V18.0002H13.6042Z",fill:"currentColor"})});const{name:Wt}=Ut,Zt={icon:qt,edit:function({attributes:e}){const{allowedBlocks:t,templateLock:o,openByDefault:n,isSelected:r}=e,a=(0,ct.useBlockProps)({"aria-hidden":!r&&!n,role:"region"}),i=(0,ct.useInnerBlocksProps)(a,{allowedBlocks:t,template:[["core/paragraph",{}]],templateLock:o});return(0,it.jsx)("div",{...i})},save:function(){const e=ct.useBlockProps.save({role:"region"}),t=ct.useInnerBlocksProps.save(e);return(0,it.jsx)("div",{...t})}},Jt=()=>jt({name:Wt,metadata:Ut,settings:Zt});var Qt=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M11.934 7.406a1 1 0 0 0 .914.594H19a.5.5 0 0 1 .5.5v9a.5.5 0 0 1-.5.5H5a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5h5.764a.5.5 0 0 1 .447.276l.723 1.63Zm1.064-1.216a.5.5 0 0 0 .462.31H19a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h5.764a2 2 0 0 1 1.789 1.106l.445 1.084ZM8.5 10.5h7V12h-7v-1.5Zm7 3.5h-7v1.5h7V14Z"})});const Kt=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/archives","title":"Archives","category":"widgets","description":"Display a date archive of your posts.","textdomain":"default","attributes":{"displayAsDropdown":{"type":"boolean","default":false},"showLabel":{"type":"boolean","default":true},"showPostCounts":{"type":"boolean","default":false},"type":{"type":"string","default":"monthly"}},"supports":{"align":true,"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true},"html":false,"spacing":{"margin":true,"padding":true,"__experimentalDefaultControls":{"margin":false,"padding":false}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"color":{"gradients":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true,"link":true}},"interactivity":{"clientNavigation":true}},"editorStyle":"wp-block-archives-editor"}');const{name:Yt}=Kt,Xt={icon:Qt,example:{},edit:function({attributes:e,setAttributes:t}){const{showLabel:o,showPostCounts:n,displayAsDropdown:r,type:a}=e,i=vt();return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{t({displayAsDropdown:!1,showLabel:!0,showPostCounts:!1,type:"monthly"})},dropdownMenuProps:i,children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Display as dropdown"),isShownByDefault:!0,hasValue:()=>r,onDeselect:()=>t({displayAsDropdown:!1}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Display as dropdown"),checked:r,onChange:()=>t({displayAsDropdown:!r})})}),r&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Show label"),isShownByDefault:!0,hasValue:()=>!o,onDeselect:()=>t({showLabel:!0}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Show label"),checked:o,onChange:()=>t({showLabel:!o})})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Show post counts"),isShownByDefault:!0,hasValue:()=>n,onDeselect:()=>t({showPostCounts:!1}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Show post counts"),checked:n,onChange:()=>t({showPostCounts:!n})})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Group by"),isShownByDefault:!0,hasValue:()=>"monthly"!==a,onDeselect:()=>t({type:"monthly"}),children:(0,it.jsx)(mt.SelectControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("Group by"),options:[{label:(0,pt.__)("Year"),value:"yearly"},{label:(0,pt.__)("Month"),value:"monthly"},{label:(0,pt.__)("Week"),value:"weekly"},{label:(0,pt.__)("Day"),value:"daily"}],value:a,onChange:e=>t({type:e})})})]})}),(0,it.jsx)("div",{...(0,ct.useBlockProps)(),children:(0,it.jsx)(mt.Disabled,{children:(0,it.jsx)(dt(),{block:"core/archives",skipBlockSupportAttributes:!0,attributes:e})})})]})}},eo=()=>jt({name:Yt,metadata:Kt,settings:Xt});var to=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{fillRule:"evenodd",d:"M7.25 16.437a6.5 6.5 0 1 1 9.5 0V16A2.75 2.75 0 0 0 14 13.25h-4A2.75 2.75 0 0 0 7.25 16v.437Zm1.5 1.193a6.47 6.47 0 0 0 3.25.87 6.47 6.47 0 0 0 3.25-.87V16c0-.69-.56-1.25-1.25-1.25h-4c-.69 0-1.25.56-1.25 1.25v1.63ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm10-2a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z",clipRule:"evenodd"})});const oo=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/avatar","title":"Avatar","category":"theme","description":"Add a user’s avatar.","textdomain":"default","attributes":{"userId":{"type":"number"},"size":{"type":"number","default":96},"isLink":{"type":"boolean","default":false},"linkTarget":{"type":"string","default":"_self"}},"usesContext":["postType","postId","commentId"],"supports":{"html":false,"align":true,"alignWide":false,"spacing":{"margin":true,"padding":true,"__experimentalDefaultControls":{"margin":false,"padding":false}},"__experimentalBorder":{"__experimentalSkipSerialization":true,"radius":true,"width":true,"color":true,"style":true,"__experimentalDefaultControls":{"radius":true}},"color":{"text":false,"background":false},"filter":{"duotone":true},"interactivity":{"clientNavigation":true}},"selectors":{"border":".wp-block-avatar img","filter":{"duotone":".wp-block-avatar img"}},"editorStyle":"wp-block-avatar-editor","style":"wp-block-avatar"}'),no=window.wp.url;function ro(e){const t=e?e[0]:24,o=e?e[e.length-1]:96;return{minSize:t,maxSize:Math.floor(2.5*o)}}const ao=window.wp.htmlEntities,io={who:"authors",per_page:100,_fields:"id,name",context:"view"};function so({value:e,onChange:t}){const[o,n]=(0,gt.useState)(""),{authors:r,isLoading:a}=(0,lt.useSelect)((e=>{const{getUsers:t,isResolving:n}=e(_t.store),r={...io};return o&&(r.search=o,r.search_columns=["name"]),{authors:t(r),isLoading:n("getUsers",[r])}}),[o]),i=(0,gt.useMemo)((()=>(r??[]).map((e=>({value:e.id,label:(0,ao.decodeEntities)(e.name)})))),[r]);return(0,it.jsx)(mt.ComboboxControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("User"),help:(0,pt.__)("Select the avatar user to display, if it is blank it will use the post/page author."),value:e,onChange:t,options:i,onFilterValueChange:(0,xt.debounce)(n,300),isLoading:a})}const lo=({setAttributes:e,avatar:t,attributes:o,selectUser:n})=>{const r=vt();return(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{e({size:96,isLink:!1,linkTarget:"_self",userId:void 0})},dropdownMenuProps:r,children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Image size"),isShownByDefault:!0,hasValue:()=>96!==o?.size,onDeselect:()=>e({size:96}),children:(0,it.jsx)(mt.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,pt.__)("Image size"),onChange:t=>e({size:t}),min:t.minSize,max:t.maxSize,initialPosition:o?.size,value:o?.size})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Link to user profile"),isShownByDefault:!0,hasValue:()=>o?.isLink,onDeselect:()=>e({isLink:!1}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Link to user profile"),onChange:()=>e({isLink:!o.isLink}),checked:o.isLink})}),o.isLink&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>"_self"!==o?.linkTarget,onDeselect:()=>e({linkTarget:"_self"}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Open in new tab"),onChange:t=>e({linkTarget:t?"_blank":"_self"}),checked:"_blank"===o.linkTarget})}),n&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("User"),isShownByDefault:!0,hasValue:()=>!!o?.userId,onDeselect:()=>e({userId:void 0}),children:(0,it.jsx)(so,{value:o?.userId,onChange:t=>{e({userId:t})}})})]})})},co=({setAttributes:e,attributes:t,avatar:o,blockProps:n,isSelected:r})=>{const a=(0,ct.__experimentalUseBorderProps)(t),i=(0,no.addQueryArgs)((0,no.removeQueryArgs)(o?.src,["s"]),{s:2*t?.size});return(0,it.jsx)("div",{...n,children:(0,it.jsx)(mt.ResizableBox,{size:{width:t.size,height:t.size},showHandle:r,onResizeStop:(o,n,r,a)=>{e({size:parseInt(t.size+(a.height||a.width),10)})},lockAspectRatio:!0,enable:{top:!1,right:!(0,pt.isRTL)(),bottom:!0,left:(0,pt.isRTL)()},minWidth:o.minSize,maxWidth:o.maxSize,children:(0,it.jsx)("img",{src:i,alt:o.alt,className:Dt("avatar","avatar-"+t.size,"photo","wp-block-avatar__image",a.className),style:a.style})})})},uo=({attributes:e,context:t,setAttributes:o,isSelected:n})=>{const{commentId:r}=t,a=(0,ct.useBlockProps)(),i=function({commentId:e}){const[t]=(0,_t.useEntityProp)("root","comment","author_avatar_urls",e),[o]=(0,_t.useEntityProp)("root","comment","author_name",e),n=t?Object.values(t):null,r=t?Object.keys(t):null,{minSize:a,maxSize:i}=ro(r),s=yt();return{src:n?n[n.length-1]:s,minSize:a,maxSize:i,alt:o?(0,pt.sprintf)((0,pt.__)("%s Avatar"),o):(0,pt.__)("Default Avatar")}}({commentId:r});return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(lo,{avatar:i,setAttributes:o,attributes:e,selectUser:!1}),e.isLink?(0,it.jsx)("a",{href:"#avatar-pseudo-link",className:"wp-block-avatar__link",onClick:e=>e.preventDefault(),children:(0,it.jsx)(co,{attributes:e,avatar:i,blockProps:a,isSelected:n,setAttributes:o})}):(0,it.jsx)(co,{attributes:e,avatar:i,blockProps:a,isSelected:n,setAttributes:o})]})},po=({attributes:e,context:t,setAttributes:o,isSelected:n})=>{const{postId:r,postType:a}=t,i=function({userId:e,postId:t,postType:o}){const{authorDetails:n}=(0,lt.useSelect)((n=>{const{getEditedEntityRecord:r,getUser:a}=n(_t.store);if(e)return{authorDetails:a(e)};const i=r("postType",o,t)?.author;return{authorDetails:i?a(i):null}}),[o,t,e]),r=n?.avatar_urls?Object.values(n.avatar_urls):null,a=n?.avatar_urls?Object.keys(n.avatar_urls):null,{minSize:i,maxSize:s}=ro(a),l=yt();return{src:r?r[r.length-1]:l,minSize:i,maxSize:s,alt:n?(0,pt.sprintf)((0,pt.__)("%s Avatar"),n?.name):(0,pt.__)("Default Avatar")}}({userId:e?.userId,postId:r,postType:a}),s=(0,ct.useBlockProps)();return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(lo,{selectUser:!0,attributes:e,avatar:i,setAttributes:o}),e.isLink?(0,it.jsx)("a",{href:"#avatar-pseudo-link",className:"wp-block-avatar__link",onClick:e=>e.preventDefault(),children:(0,it.jsx)(co,{attributes:e,avatar:i,blockProps:s,isSelected:n,setAttributes:o})}):(0,it.jsx)(co,{attributes:e,avatar:i,blockProps:s,isSelected:n,setAttributes:o})]})};const{name:mo}=oo,go={icon:to,edit:function(e){return e?.context?.commentId||null===e?.context?.commentId?(0,it.jsx)(uo,{...e}):(0,it.jsx)(po,{...e})},example:{}},ho=()=>jt({name:mo,metadata:oo,settings:go});var _o=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.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"})}),xo=[{attributes:{src:{type:"string",source:"attribute",selector:"audio",attribute:"src"},caption:{type:"string",source:"html",selector:"figcaption"},id:{type:"number"},autoplay:{type:"boolean",source:"attribute",selector:"audio",attribute:"autoplay"},loop:{type:"boolean",source:"attribute",selector:"audio",attribute:"loop"},preload:{type:"string",source:"attribute",selector:"audio",attribute:"preload"}},supports:{align:!0},save({attributes:e}){const{autoplay:t,caption:o,loop:n,preload:r,src:a}=e;return(0,it.jsxs)("figure",{children:[(0,it.jsx)("audio",{controls:"controls",src:a,autoPlay:t,loop:n,preload:r}),!ct.RichText.isEmpty(o)&&(0,it.jsx)(ct.RichText.Content,{tagName:"figcaption",value:o})]})}}];const bo=window.wp.notices;function fo(e,t){var o,n,r=0;function a(){var a,i,s=o,l=arguments.length;e:for(;s;){if(s.args.length===arguments.length){for(i=0;i<l;i++)if(s.args[i]!==arguments[i]){s=s.next;continue e}return s!==o&&(s===n&&(n=s.prev),s.prev.next=s.next,s.next&&(s.next.prev=s.prev),s.next=o,s.prev=null,o.prev=s,o=s),s.val}s=s.next}for(a=new Array(l),i=0;i<l;i++)a[i]=arguments[i];return s={args:a,val:e.apply(null,a)},o?(o.prev=s,s.next=o):n=s,r===t.maxSize?(n=n.prev).next=null:r++,o=s,s.val}return t=t||{},a.clear=function(){o=null,n=null,r=0},a}const yo=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"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","role":"content"},"caption":{"type":"rich-text","source":"rich-text","selector":"figcaption","role":"content"},"type":{"type":"string","role":"content"},"providerNameSlug":{"type":"string","role":"content"},"allowResponsive":{"type":"boolean","default":true},"responsive":{"type":"boolean","default":false,"role":"content"},"previewable":{"type":"boolean","default":true,"role":"content"}},"supports":{"align":true,"spacing":{"margin":true},"interactivity":{"clientNavigation":true}},"editorStyle":"wp-block-embed-editor","style":"wp-block-embed"}'),vo=[{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"}],ko="wp-embed",wo=window.wp.privateApis,{lock:Co,unlock:jo}=(0,wo.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.","@wordpress/block-library"),{name:So}=yo,{kebabCase:Bo}=jo(mt.privateApis),To=e=>e&&e.includes('class="wp-embedded-content"'),No=(e,t={})=>{const{preview:o,attributes:n={}}=e,{url:r,providerNameSlug:a,type:i,...s}=n;if(!r||!(0,st.getBlockType)(So))return;const l=(e=>(0,st.getBlockVariations)(So)?.find((({patterns:t})=>((e,t=[])=>t.some((t=>e.match(t))))(e,t))))(r),c="wordpress"===a||i===ko;if(!c&&l&&(l.attributes.providerNameSlug!==a||!a))return(0,st.createBlock)(So,{url:r,...s,...l.attributes});const u=(0,st.getBlockVariations)(So)?.find((({name:e})=>"wordpress"===e));return u&&o&&To(o.html)&&!c?(0,st.createBlock)(So,{url:r,...u.attributes,...t}):void 0},Po=e=>{if(!e)return e;const t=vo.reduce(((e,{className:t})=>(e.push(t),e)),["wp-has-aspect-ratio"]);let o=e;for(const e of t)o=o.replace(e,"");return o.trim()};function Io(e,t,o=!0){if(!o)return Po(t);const n=document.implementation.createHTMLDocument("");n.body.innerHTML=e;const r=n.body.querySelector("iframe");if(r&&r.height&&r.width){const e=(r.width/r.height).toFixed(2);for(let o=0;o<vo.length;o++){const n=vo[o];if(e>=n.ratio){return e-n.ratio>.1?Po(t):Dt(Po(t),n.className,"wp-has-aspect-ratio")}}}return t}const Do=fo(((e,t,o,n,r=!0)=>{if(!e)return{};const a={};let{type:i="rich"}=e;const{html:s,provider_name:l}=e,c=Bo((l||t).toLowerCase());return To(s)&&(i=ko),(s||"photo"===i)&&(a.type=i,a.providerNameSlug=c),(u=o)&&vo.some((({className:e})=>u.includes(e)))||(a.className=Io(s,o,n&&r)),a;var u}));var Mo=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M6 5.5h12a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H6a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5ZM4 6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6Zm4 10h2v-1.5H8V16Zm5 0h-2v-1.5h2V16Zm1 0h2v-1.5h-2V16Z"})});function zo({attributeKey:e="caption",attributes:t,setAttributes:o,isSelected:n,insertBlocksAfter:r,placeholder:a=(0,pt.__)("Add caption"),label:i=(0,pt.__)("Caption text"),showToolbarButton:s=!0,excludeElementClassName:l,className:c,readOnly:u,tagName:d="figcaption",addLabel:p=(0,pt.__)("Add caption"),removeLabel:m=(0,pt.__)("Remove caption"),icon:g=Mo,...h}){const _=t[e],x=(0,xt.usePrevious)(_),{PrivateRichText:b}=jo(ct.privateApis),f=b.isEmpty(_),y=b.isEmpty(x),[v,k]=(0,gt.useState)(!f);(0,gt.useEffect)((()=>{!f&&y&&k(!0)}),[f,y]),(0,gt.useEffect)((()=>{!n&&f&&k(!1)}),[n,f]);const w=(0,gt.useCallback)((e=>{e&&f&&e.focus()}),[f]);return(0,it.jsxs)(it.Fragment,{children:[s&&(0,it.jsx)(ct.BlockControls,{group:"block",children:(0,it.jsx)(mt.ToolbarButton,{onClick:()=>{k(!v),v&&_&&o({[e]:void 0})},icon:g,isPressed:v,label:v?m:p})}),v&&(!b.isEmpty(_)||n)&&(0,it.jsx)(b,{identifier:e,tagName:d,className:Dt(c,l?"":(0,ct.__experimentalGetElementClassName)("caption")),ref:w,"aria-label":i,placeholder:a,value:_,onChange:t=>o({[e]:t}),inlineToolbar:!0,__unstableOnSplitAtEnd:()=>r((0,st.createBlock)((0,st.getDefaultBlockName)())),readOnly:u,...h})]})}const Ao=["audio"];var Lo=function({attributes:e,className:t,setAttributes:o,onReplace:n,isSelected:r,insertBlocksAfter:a}){const{id:i,autoplay:s,loop:l,preload:c,src:u}=e,[d,p]=(0,gt.useState)(e.blob),m="default"===(0,ct.useBlockEditingMode)();function g(e){return t=>{o({[e]:t})}}function h(e){if(e!==u){const t=No({attributes:{url:e}});if(void 0!==t&&n)return void n(t);o({src:e,id:void 0,blob:void 0}),p()}}ft({url:d,allowedTypes:Ao,onChange:b,onError:x});const{createErrorNotice:_}=(0,lt.useDispatch)(bo.store);function x(e){_(e,{type:"snackbar"})}function b(e){if(!e||!e.url)return o({src:void 0,id:void 0,caption:void 0,blob:void 0}),void p();(0,ht.isBlobURL)(e.url)?p(e.url):(o({blob:void 0,src:e.url,id:e.id,caption:e.caption}),p())}const f=Dt(t,{"is-transient":!!d}),y=(0,ct.useBlockProps)({className:f}),v=vt();return u||d?(0,it.jsxs)(it.Fragment,{children:[r&&(0,it.jsx)(ct.BlockControls,{group:"other",children:(0,it.jsx)(ct.MediaReplaceFlow,{mediaId:i,mediaURL:u,allowedTypes:Ao,accept:"audio/*",onSelect:b,onSelectURL:h,onError:x,onReset:()=>b(void 0)})}),(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{o({autoplay:!1,loop:!1,preload:void 0})},dropdownMenuProps:v,children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Autoplay"),isShownByDefault:!0,hasValue:()=>!!s,onDeselect:()=>o({autoplay:!1}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Autoplay"),onChange:g("autoplay"),checked:!!s,help:function(e){return e?(0,pt.__)("Autoplay may cause usability issues for some users."):null}})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Loop"),isShownByDefault:!0,hasValue:()=>!!l,onDeselect:()=>o({loop:!1}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Loop"),onChange:g("loop"),checked:!!l})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Preload"),isShownByDefault:!0,hasValue:()=>!!c,onDeselect:()=>o({preload:void 0}),children:(0,it.jsx)(mt.SelectControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt._x)("Preload","noun; Audio block parameter"),value:c||"",onChange:e=>o({preload:e||void 0}),options:[{value:"",label:(0,pt.__)("Browser default")},{value:"auto",label:(0,pt.__)("Auto")},{value:"metadata",label:(0,pt.__)("Metadata")},{value:"none",label:(0,pt._x)("None","Preload value")}]})})]})}),(0,it.jsxs)("figure",{...y,children:[(0,it.jsx)(mt.Disabled,{isDisabled:!r,children:(0,it.jsx)("audio",{controls:"controls",src:u??d})}),!!d&&(0,it.jsx)(mt.Spinner,{}),(0,it.jsx)(zo,{attributes:e,setAttributes:o,isSelected:r,insertBlocksAfter:a,label:(0,pt.__)("Audio caption text"),showToolbarButton:r&&m})]})]}):(0,it.jsx)("div",{...y,children:(0,it.jsx)(ct.MediaPlaceholder,{icon:(0,it.jsx)(ct.BlockIcon,{icon:_o}),onSelect:b,onSelectURL:h,accept:"audio/*",allowedTypes:Ao,value:e,onError:x})})};const Ho=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/audio","title":"Audio","category":"media","description":"Embed a simple audio player.","keywords":["music","sound","podcast","recording"],"textdomain":"default","attributes":{"blob":{"type":"string","role":"local"},"src":{"type":"string","source":"attribute","selector":"audio","attribute":"src","role":"content"},"caption":{"type":"rich-text","source":"rich-text","selector":"figcaption","role":"content"},"id":{"type":"number","role":"content"},"autoplay":{"type":"boolean","source":"attribute","selector":"audio","attribute":"autoplay"},"loop":{"type":"boolean","source":"attribute","selector":"audio","attribute":"loop"},"preload":{"type":"string","source":"attribute","selector":"audio","attribute":"preload"}},"supports":{"anchor":true,"align":true,"spacing":{"margin":true,"padding":true,"__experimentalDefaultControls":{"margin":false,"padding":false}},"interactivity":{"clientNavigation":true}},"editorStyle":"wp-block-audio-editor","style":"wp-block-audio"}');var Ro={from:[{type:"files",isMatch:e=>1===e.length&&0===e[0].type.indexOf("audio/"),transform(e){const t=e[0];return(0,st.createBlock)("core/audio",{blob:(0,ht.createBlobURL)(t)})}},{type:"shortcode",tag:"audio",attributes:{src:{type:"string",shortcode:({named:{src:e,mp3:t,m4a:o,ogg:n,wav:r,wma:a}})=>e||t||o||n||r||a},loop:{type:"string",shortcode:({named:{loop:e}})=>e},autoplay:{type:"string",shortcode:({named:{autoplay:e}})=>e},preload:{type:"string",shortcode:({named:{preload:e}})=>e}}}]};const{name:Vo}=Ho,Fo={icon:_o,example:{attributes:{src:"https://upload.wikimedia.org/wikipedia/commons/d/dd/Armstrong_Small_Step.ogg"},viewportWidth:350},transforms:Ro,deprecated:xo,edit:Lo,save:function({attributes:e}){const{autoplay:t,caption:o,loop:n,preload:r,src:a}=e;return a&&(0,it.jsxs)("figure",{...ct.useBlockProps.save(),children:[(0,it.jsx)("audio",{controls:"controls",src:a,autoPlay:t,loop:n,preload:r}),!ct.RichText.isEmpty(o)&&(0,it.jsx)(ct.RichText.Content,{tagName:"figcaption",value:o,className:(0,ct.__experimentalGetElementClassName)("caption")})]})}},Eo=()=>jt({name:Vo,metadata:Ho,settings:Fo});var Oo=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M4 13.5h3v-3H4v3Zm6-3.5 2 2-2 2 1 1 3-3-3-3-1 1Zm7 .5v3h3v-3h-3Z"})});const Go=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/breadcrumbs","title":"Breadcrumbs","__experimental":true,"category":"theme","description":"Display a breadcrumb trail for hierarchical post types or based on taxonomy terms.","textdomain":"default","attributes":{"type":{"type":"string","default":"auto","enum":["auto","postWithTerms","postWithAncestors"]},"separator":{"type":"string","default":"/"},"showHomeLink":{"type":"boolean","default":true}},"usesContext":["postId","postType","templateSlug"],"supports":{"html":false,"spacing":{"margin":true,"padding":true},"color":{"gradients":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true}},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true,"__experimentalDefaultControls":{"radius":false,"color":true,"width":true,"style":true}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true}},"style":"wp-block-breadcrumbs"}'),$o="/",Uo="auto",qo={auto:{help:(0,pt.__)("Try to automatically determine the best type of breadcrumb for the template.")},postWithAncestors:{help:(0,pt.__)("Shows breadcrumbs based on post hierarchy. Only works for hierarchical post types."),placeholderItems:[(0,pt.__)("Ancestor"),(0,pt.__)("Parent")]},postWithTerms:{help:(0,pt.__)("Shows breadcrumbs based on taxonomy terms. Chooses the first taxonomy with assigned terms and includes ancestors if the taxonomy is hierarchical."),placeholderItems:[(0,pt.__)("Category")]}};const{name:Wo}=Go,Zo={icon:Oo,edit:function({attributes:e,setAttributes:t,context:{postId:o,postType:n,templateSlug:r}}){const{separator:a,showHomeLink:i,type:s}=e,{post:l,isPostTypeHierarchical:c,hasTermsAssigned:u,isLoading:d}=(0,lt.useSelect)((e=>{if(!n)return{};const t=e(_t.store).getEntityRecord("postType",n,o),r=e(_t.store).getPostType(n),a=r&&r.taxonomies.length;let i;return a&&(i=e(_t.store).getTaxonomies({type:n,per_page:-1})),{post:t,isPostTypeHierarchical:r?.hierarchical,hasTermsAssigned:t&&(i||[]).filter((({visibility:e})=>e?.publicly_queryable)).some((e=>!!t[e.rest_base]?.length)),isLoading:!t||!r||a&&!i}}),[n,o]),[p,m]=(0,gt.useState)(0);(0,gt.useEffect)((()=>{m((e=>e+1))}),[l]);const g=(0,ct.useBlockProps)(),h=vt(),{content:_}=(0,ut.useServerSideRender)({attributes:e,skipBlockSupportAttributes:!0,block:"core/breadcrumbs",urlQueryArgs:{post_id:o,invalidationKey:p}});if(d)return(0,it.jsx)("div",{...g,children:(0,it.jsx)(mt.Spinner,{})});let x;const b=["postWithAncestors","postWithTerms"].includes(s);x=b?s:c?"postWithAncestors":"postWithTerms";let f=null;const y=!o||!n||r&&!n||"postWithAncestors"===x&&!c||"postWithTerms"===x&&!u;if(y){const e=[i&&(0,pt.__)("Home"),...r&&!b?[(0,pt.__)("Page")]:qo[x].placeholderItems].filter(Boolean);f=(0,it.jsx)("nav",{style:{"--separator":`'${a}'`},inert:"true",children:(0,it.jsxs)("ol",{children:[e.map(((e,t)=>(0,it.jsx)("li",{children:(0,it.jsx)("a",{href:`#breadcrumbs-pseudo-link-${t}`,children:e})},t))),(0,it.jsx)("li",{children:(0,it.jsx)("span",{"aria-current":"page",children:(0,pt.__)("Current")})})]})})}return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{t({separator:$o,showHomeLink:!0,type:Uo})},dropdownMenuProps:h,children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Type"),isShownByDefault:!0,hasValue:()=>s!==Uo,onDeselect:()=>t({type:Uo}),children:(0,it.jsx)(mt.SelectControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,pt.__)("Type"),value:s,onChange:e=>t({type:e}),options:[{label:(0,pt.__)("Auto"),value:"auto"},{label:(0,pt.__)("Post with ancestors"),value:"postWithAncestors"},{label:(0,pt.__)("Post with terms"),value:"postWithTerms"}],help:qo[s].help})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Show home link"),isShownByDefault:!0,hasValue:()=>!i,onDeselect:()=>t({showHomeLink:!0}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Show home link"),onChange:e=>t({showHomeLink:e}),checked:i})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Separator"),isShownByDefault:!0,hasValue:()=>a!==$o,onDeselect:()=>t({separator:$o}),children:(0,it.jsx)(mt.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,autoComplete:"off",label:(0,pt.__)("Separator"),value:a,onChange:e=>t({separator:e}),onBlur:()=>{a||t({separator:$o})}})})]})}),(0,it.jsx)("div",{...g,children:y?f:(0,it.jsx)(gt.RawHTML,{inert:"true",children:_})})]})}},Jo=()=>jt({name:Wo,metadata:Go,settings:Zo});var Qo=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.Path,{d:"M8 12.5h8V11H8v1.5Z M19 6.5H5a2 2 0 0 0-2 2V15a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V8.5a2 2 0 0 0-2-2ZM5 8h14a.5.5 0 0 1 .5.5V15a.5.5 0 0 1-.5.5H5a.5.5 0 0 1-.5-.5V8.5A.5.5 0 0 1 5 8Z"})});const{cleanEmptyObject:Ko}=jo(ct.privateApis);function Yo(e){if(!e?.style?.typography?.fontFamily)return e;const{fontFamily:t,...o}=e.style.typography;return{...e,style:Ko({...e.style,typography:o}),fontFamily:t.split("|").pop()}}const Xo=e=>{const{borderRadius:t,...o}=e,n=[t,o.style?.border?.radius].find((e=>"number"==typeof e&&0!==e));return n?{...o,style:{...o.style,border:{...o.style?.border,radius:`${n}px`}}}:o};const en=e=>{if(!e.customTextColor&&!e.customBackgroundColor&&!e.customGradient)return e;const t={color:{}};e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor),e.customGradient&&(t.color.gradient=e.customGradient);const{customTextColor:o,customBackgroundColor:n,customGradient:r,...a}=e;return{...a,style:t}},tn=e=>{const{color:t,textColor:o,...n}={...e,customTextColor:e.textColor&&"#"===e.textColor[0]?e.textColor:void 0,customBackgroundColor:e.color&&"#"===e.color[0]?e.color:void 0};return en(n)},on={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"}},nn={attributes:{tagName:{type:"string",enum:["a","button"],default:"a"},type:{type:"string",default:"button"},textAlign:{type:"string"},url:{type:"string",source:"attribute",selector:"a",attribute:"href"},title:{type:"string",source:"attribute",selector:"a,button",attribute:"title",role:"content"},text:{type:"rich-text",source:"rich-text",selector:"a,button",role:"content"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target",role:"content"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel",role:"content"},placeholder:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalWritingMode:!0,__experimentalDefaultControls:{fontSize:!0}},reusable:!1,shadow:{__experimentalSkipSerialization:!0},spacing:{__experimentalSkipSerialization:!0,padding:["horizontal","vertical"],__experimentalDefaultControls:{padding:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},__experimentalSelector:".wp-block-button__link",interactivity:{clientNavigation:!0}},save({attributes:e,className:t}){const{tagName:o,type:n,textAlign:r,fontSize:a,linkTarget:i,rel:s,style:l,text:c,title:u,url:d,width:p}=e,m=o||"a",g="button"===m,h=n||"button",_=(0,ct.__experimentalGetBorderClassesAndStyles)(e),x=(0,ct.__experimentalGetColorClassesAndStyles)(e),b=(0,ct.__experimentalGetSpacingClassesAndStyles)(e),f=(0,ct.__experimentalGetShadowClassesAndStyles)(e),y=Dt("wp-block-button__link",x.className,_.className,{[`has-text-align-${r}`]:r,"no-border-radius":0===l?.border?.radius},(0,ct.__experimentalGetElementClassName)("button")),v={..._.style,...x.style,...b.style,...f.style},k=Dt(t,{[`has-custom-width wp-block-button__width-${p}`]:p,"has-custom-font-size":a||l?.typography?.fontSize});return(0,it.jsx)("div",{...ct.useBlockProps.save({className:k}),children:(0,it.jsx)(ct.RichText.Content,{tagName:m,type:g?h:null,className:y,href:g?null:d,title:u,style:v,value:c,target:g?null:i,rel:g?null:s})})}},rn={attributes:{url:{type:"string",source:"attribute",selector:"a",attribute:"href"},title:{type:"string",source:"attribute",selector:"a",attribute:"title"},text:{type:"string",source:"html",selector:"a"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,__experimentalFontFamily:!0,__experimentalDefaultControls:{fontSize:!0}},reusable:!1,spacing:{__experimentalSkipSerialization:!0,padding:["horizontal","vertical"],__experimentalDefaultControls:{padding:!0}},__experimentalBorder:{radius:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{radius:!0}},__experimentalSelector:".wp-block-button__link"},save({attributes:e,className:t}){const{fontSize:o,linkTarget:n,rel:r,style:a,text:i,title:s,url:l,width:c}=e;if(!i)return null;const u=(0,ct.__experimentalGetBorderClassesAndStyles)(e),d=(0,ct.__experimentalGetColorClassesAndStyles)(e),p=(0,ct.__experimentalGetSpacingClassesAndStyles)(e),m=Dt("wp-block-button__link",d.className,u.className,{"no-border-radius":0===a?.border?.radius}),g={...u.style,...d.style,...p.style},h=Dt(t,{[`has-custom-width wp-block-button__width-${c}`]:c,"has-custom-font-size":o||a?.typography?.fontSize});return(0,it.jsx)("div",{...ct.useBlockProps.save({className:h}),children:(0,it.jsx)(ct.RichText.Content,{tagName:"a",className:m,href:l,title:s,style:g,value:i,target:n,rel:r})})}},an={attributes:{url:{type:"string",source:"attribute",selector:"a",attribute:"href"},title:{type:"string",source:"attribute",selector:"a",attribute:"title"},text:{type:"string",source:"html",selector:"a"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0,gradients:!0},typography:{fontSize:!0,__experimentalFontFamily:!0},reusable:!1,spacing:{__experimentalSkipSerialization:!0,padding:["horizontal","vertical"],__experimentalDefaultControls:{padding:!0}},__experimentalBorder:{radius:!0,__experimentalSkipSerialization:!0},__experimentalSelector:".wp-block-button__link"},save({attributes:e,className:t}){const{fontSize:o,linkTarget:n,rel:r,style:a,text:i,title:s,url:l,width:c}=e;if(!i)return null;const u=(0,ct.__experimentalGetBorderClassesAndStyles)(e),d=(0,ct.__experimentalGetColorClassesAndStyles)(e),p=(0,ct.__experimentalGetSpacingClassesAndStyles)(e),m=Dt("wp-block-button__link",d.className,u.className,{"no-border-radius":0===a?.border?.radius}),g={...u.style,...d.style,...p.style},h=Dt(t,{[`has-custom-width wp-block-button__width-${c}`]:c,"has-custom-font-size":o||a?.typography?.fontSize});return(0,it.jsx)("div",{...ct.useBlockProps.save({className:h}),children:(0,it.jsx)(ct.RichText.Content,{tagName:"a",className:m,href:l,title:s,style:g,value:i,target:n,rel:r})})},migrate:Yo,isEligible:({style:e})=>e?.typography?.fontFamily},sn=[nn,rn,an,{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:{...on,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},isEligible:({style:e})=>"number"==typeof e?.border?.radius,save({attributes:e,className:t}){const{fontSize:o,linkTarget:n,rel:r,style:a,text:i,title:s,url:l,width:c}=e;if(!i)return null;const u=a?.border?.radius,d=(0,ct.__experimentalGetColorClassesAndStyles)(e),p=Dt("wp-block-button__link",d.className,{"no-border-radius":0===a?.border?.radius}),m={borderRadius:u||void 0,...d.style},g=Dt(t,{[`has-custom-width wp-block-button__width-${c}`]:c,"has-custom-font-size":o||a?.typography?.fontSize});return(0,it.jsx)("div",{...ct.useBlockProps.save({className:g}),children:(0,it.jsx)(ct.RichText.Content,{tagName:"a",className:p,href:l,title:s,style:m,value:i,target:n,rel:r})})},migrate:(0,xt.compose)(Yo,Xo)},{supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0},reusable:!1,__experimentalSelector:".wp-block-button__link"},attributes:{...on,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},style:{type:"object"},width:{type:"number"}},save({attributes:e,className:t}){const{borderRadius:o,linkTarget:n,rel:r,text:a,title:i,url:s,width:l}=e,c=(0,ct.__experimentalGetColorClassesAndStyles)(e),u=Dt("wp-block-button__link",c.className,{"no-border-radius":0===o}),d={borderRadius:o?o+"px":void 0,...c.style},p=Dt(t,{[`has-custom-width wp-block-button__width-${l}`]:l});return(0,it.jsx)("div",{...ct.useBlockProps.save({className:p}),children:(0,it.jsx)(ct.RichText.Content,{tagName:"a",className:u,href:s,title:i,style:d,value:a,target:n,rel:r})})},migrate:(0,xt.compose)(Yo,Xo)},{supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0},reusable:!1,__experimentalSelector:".wp-block-button__link"},attributes:{...on,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},style:{type:"object"},width:{type:"number"}},save({attributes:e,className:t}){const{borderRadius:o,linkTarget:n,rel:r,text:a,title:i,url:s,width:l}=e,c=(0,ct.__experimentalGetColorClassesAndStyles)(e),u=Dt("wp-block-button__link",c.className,{"no-border-radius":0===o}),d={borderRadius:o?o+"px":void 0,...c.style},p=Dt(t,{[`has-custom-width wp-block-button__width-${l}`]:l});return(0,it.jsx)("div",{...ct.useBlockProps.save({className:p}),children:(0,it.jsx)(ct.RichText.Content,{tagName:"a",className:u,href:s,title:i,style:d,value:a,target:n,rel:r})})},migrate:(0,xt.compose)(Yo,Xo)},{supports:{align:!0,alignWide:!1,color:{gradients:!0}},attributes:{...on,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},style:{type:"object"}},save({attributes:e}){const{borderRadius:t,linkTarget:o,rel:n,text:r,title:a,url:i}=e,s=Dt("wp-block-button__link",{"no-border-radius":0===t}),l={borderRadius:t?t+"px":void 0};return(0,it.jsx)(ct.RichText.Content,{tagName:"a",className:s,href:i,title:a,style:l,value:r,target:o,rel:n})},migrate:Xo},{supports:{align:!0,alignWide:!1},attributes:{...on,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},customGradient:{type:"string"},gradient:{type:"string"}},isEligible:e=>!!(e.customTextColor||e.customBackgroundColor||e.customGradient||e.align),migrate:(0,xt.compose)(Xo,en,(function(e){if(!e.align)return e;const{align:t,...o}=e;return{...o,className:Dt(o.className,`align${e.align}`)}})),save({attributes:e}){const{backgroundColor:t,borderRadius:o,customBackgroundColor:n,customTextColor:r,customGradient:a,linkTarget:i,gradient:s,rel:l,text:c,textColor:u,title:d,url:p}=e,m=(0,ct.getColorClassName)("color",u),g=!a&&(0,ct.getColorClassName)("background-color",t),h=(0,ct.__experimentalGetGradientClass)(s),_=Dt("wp-block-button__link",{"has-text-color":u||r,[m]:m,"has-background":t||n||a||s,[g]:g,"no-border-radius":0===o,[h]:h}),x={background:a||void 0,backgroundColor:g||a||s?void 0:n,color:m?void 0:r,borderRadius:o?o+"px":void 0};return(0,it.jsx)("div",{children:(0,it.jsx)(ct.RichText.Content,{tagName:"a",className:_,href:p,title:d,style:x,value:c,target:i,rel:l})})}},{attributes:{...on,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()),Xo(en({...e,className:t||void 0,borderRadius:0}))},save({attributes:e}){const{backgroundColor:t,customBackgroundColor:o,customTextColor:n,linkTarget:r,rel:a,text:i,textColor:s,title:l,url:c}=e,u=(0,ct.getColorClassName)("color",s),d=(0,ct.getColorClassName)("background-color",t),p=Dt("wp-block-button__link",{"has-text-color":s||n,[u]:u,"has-background":t||o,[d]:d}),m={backgroundColor:d?void 0:o,color:u?void 0:n};return(0,it.jsx)("div",{children:(0,it.jsx)(ct.RichText.Content,{tagName:"a",className:p,href:c,title:l,style:m,value:i,target:r,rel:a})})}},{attributes:{...on,align:{type:"string",default:"none"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"}},migrate:tn,save({attributes:e}){const{url:t,text:o,title:n,backgroundColor:r,textColor:a,customBackgroundColor:i,customTextColor:s}=e,l=(0,ct.getColorClassName)("color",a),c=(0,ct.getColorClassName)("background-color",r),u=Dt("wp-block-button__link",{"has-text-color":a||s,[l]:l,"has-background":r||i,[c]:c}),d={backgroundColor:c?void 0:i,color:l?void 0:s};return(0,it.jsx)("div",{children:(0,it.jsx)(ct.RichText.Content,{tagName:"a",className:u,href:t,title:n,style:d,value:o})})}},{attributes:{...on,color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}},save({attributes:e}){const{url:t,text:o,title:n,align:r,color:a,textColor:i}=e,s={backgroundColor:a,color:i};return(0,it.jsx)("div",{className:`align${r}`,children:(0,it.jsx)(ct.RichText.Content,{tagName:"a",className:"wp-block-button__link",href:t,title:n,style:s,value:o})})},migrate:tn},{attributes:{...on,color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}},save({attributes:e}){const{url:t,text:o,title:n,align:r,color:a,textColor:i}=e;return(0,it.jsx)("div",{className:`align${r}`,style:{backgroundColor:a},children:(0,it.jsx)(ct.RichText.Content,{tagName:"a",href:t,title:n,style:{color:i},value:o})})},migrate:tn}];var ln=sn;const cn="noreferrer noopener",un="_blank",dn="nofollow";function pn(e){return e.toString().replace(/<\/?a[^>]*>/g,"")}const mn=window.wp.keycodes;var gn=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M10 17.389H8.444A5.194 5.194 0 1 1 8.444 7H10v1.5H8.444a3.694 3.694 0 0 0 0 7.389H10v1.5ZM14 7h1.556a5.194 5.194 0 0 1 0 10.39H14v-1.5h1.556a3.694 3.694 0 0 0 0-7.39H14V7Zm-4.5 6h5v-1.5h-5V13Z"})}),hn=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M17.031 4.703 15.576 4l-1.56 3H14v.03l-2.324 4.47H9.5V13h1.396l-1.502 2.889h-.95a3.694 3.694 0 0 1 0-7.389H10V7H8.444a5.194 5.194 0 1 0 0 10.389h.17L7.5 19.53l1.416.719L15.049 8.5h.507a3.694 3.694 0 0 1 0 7.39H14v1.5h1.556a5.194 5.194 0 0 0 .273-10.383l1.202-2.304Z"})});const{HTMLElementControl:_n}=jo(ct.privateApis),xn=[...ct.LinkControl.DEFAULT_LINK_SETTINGS,{id:"nofollow",title:(0,pt.__)("Mark as nofollow")}];function bn({selectedWidth:e,setAttributes:t}){const o=vt();return(0,it.jsx)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>t({width:void 0}),dropdownMenuProps:o,children:(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Width"),isShownByDefault:!0,hasValue:()=>!!e,onDeselect:()=>t({width:void 0}),__nextHasNoMarginBottom:!0,children:(0,it.jsx)(mt.__experimentalToggleGroupControl,{label:(0,pt.__)("Width"),value:e,onChange:e=>t({width:e}),isBlock:!0,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,children:[25,50,75,100].map((e=>(0,it.jsx)(mt.__experimentalToggleGroupControlOption,{value:e,label:(0,pt.sprintf)((0,pt.__)("%d%%"),e)},e)))})})})}var fn=function(e){const{attributes:t,setAttributes:o,className:n,isSelected:r,onReplace:a,mergeBlocks:i,clientId:s,context:l}=e,{tagName:c,textAlign:u,linkTarget:d,placeholder:p,rel:m,style:g,text:h,url:_,width:x,metadata:b}=t,f=c||"a",[y,v]=(0,gt.useState)(null),k=(0,ct.__experimentalUseBorderProps)(t),w=(0,ct.__experimentalUseColorProps)(t),C=(0,ct.__experimentalGetSpacingClassesAndStyles)(t),j=(0,ct.__experimentalGetShadowClassesAndStyles)(t),S=(0,gt.useRef)(),B=(0,gt.useRef)(),T=(0,ct.useBlockProps)({ref:(0,xt.useMergeRefs)([v,S]),onKeyDown:function(e){mn.isKeyboardEvent.primary(e,"k")?V(e):mn.isKeyboardEvent.primaryShift(e,"k")&&(F(),B.current?.focus())}}),N=(0,ct.useBlockEditingMode)(),[P,I]=(0,gt.useState)(!1),D=!!_,M=d===un,z=!!m?.includes(dn),A="a"===f,{createPageEntity:L,userCanCreatePages:H,lockUrlControls:R=!1}=(0,lt.useSelect)((e=>{if(!r)return{};const t=e(ct.store).getSettings(),o=(0,st.getBlockBindingsSource)(b?.bindings?.url?.source);return{createPageEntity:t.__experimentalCreatePageEntity,userCanCreatePages:t.__experimentalUserCanCreatePages,lockUrlControls:!!b?.bindings?.url&&!o?.canUserEditValue?.({select:e,context:l,args:b?.bindings?.url?.args})}}),[l,r,b?.bindings?.url]);function V(e){e.preventDefault(),I(!0)}function F(){o({url:void 0,linkTarget:void 0,rel:void 0}),I(!1)}(0,gt.useEffect)((()=>{r||I(!1)}),[r]);const E=(0,gt.useMemo)((()=>({url:_,opensInNewTab:M,nofollow:z})),[_,M,z]),O=function(e){const{replaceBlocks:t,selectionChange:o}=(0,lt.useDispatch)(ct.store),{getBlock:n,getBlockRootClientId:r,getBlockIndex:a}=(0,lt.useSelect)(ct.store),i=(0,gt.useRef)(e);return i.current=e,(0,xt.useRefEffect)((e=>{function s(e){if(e.defaultPrevented||e.keyCode!==mn.ENTER)return;const{content:s,clientId:l}=i.current;if(s.length)return;e.preventDefault();const c=n(r(l)),u=a(l),d=(0,st.cloneBlock)({...c,innerBlocks:c.innerBlocks.slice(0,u)}),p=(0,st.createBlock)((0,st.getDefaultBlockName)()),m=c.innerBlocks.slice(u+1),g=m.length?[(0,st.cloneBlock)({...c,innerBlocks:m})]:[];t(c.clientId,[d,p,...g],1),o(p.clientId)}return e.addEventListener("keydown",s),()=>{e.removeEventListener("keydown",s)}}),[])}({content:h,clientId:s}),G=(0,xt.useMergeRefs)([O,B]),[$,U]=(0,ct.useSettings)("typography.fluid","layout"),q=(0,ct.getTypographyClassesAndStyles)(t,{typography:{fluid:$},layout:{wideSize:U?.wideSize}}),W="default"===N,Z=W||A&&!R;return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)("div",{...T,className:Dt(T.className,{[`has-custom-width wp-block-button__width-${x}`]:x}),children:(0,it.jsx)(ct.RichText,{ref:G,"aria-label":(0,pt.__)("Button text"),placeholder:p||(0,pt.__)("Add text…"),value:h,onChange:e=>o({text:pn(e)}),withoutInteractiveFormatting:!0,className:Dt(n,"wp-block-button__link",w.className,k.className,q.className,{[`has-text-align-${u}`]:u,"no-border-radius":0===g?.border?.radius,"has-custom-font-size":T.style.fontSize},(0,ct.__experimentalGetElementClassName)("button")),style:{...k.style,...w.style,...C.style,...j.style,...q.style,writingMode:void 0},onReplace:a,onMerge:i,identifier:"text"})}),Z&&(0,it.jsxs)(ct.BlockControls,{group:"block",children:[W&&(0,it.jsx)(ct.AlignmentControl,{value:u,onChange:e=>{o({textAlign:e})}}),A&&!R&&(0,it.jsx)(mt.ToolbarButton,{name:"link",icon:D?hn:gn,title:D?(0,pt.__)("Unlink"):(0,pt.__)("Link"),shortcut:D?mn.displayShortcut.primaryShift("k"):mn.displayShortcut.primary("k"),onClick:D?F:V,isActive:D})]}),A&&r&&(P||D)&&!R&&(0,it.jsx)(mt.Popover,{placement:"bottom",onClose:()=>{I(!1),B.current?.focus()},anchor:y,focusOnMount:!!P&&"firstElement",__unstableSlotName:"__unstable-block-tools-after",shift:!0,children:(0,it.jsx)(ct.LinkControl,{value:E,onChange:({url:e,opensInNewTab:t,nofollow:n})=>o(function({rel:e="",url:t="",opensInNewTab:o,nofollow:n}){let r,a=e;if(o)r=un,a=a?.includes(cn)?a:a+` ${cn}`;else{const e=new RegExp(`\\b${cn}\\s*`,"g");a=a?.replace(e,"").trim()}if(n)a=a?.includes(dn)?a:(a+` ${dn}`).trim();else{const e=new RegExp(`\\b${dn}\\s*`,"g");a=a?.replace(e,"").trim()}return{url:(0,no.prependHTTP)(t),linkTarget:r,rel:a||void 0}}({rel:m,url:e,opensInNewTab:t,nofollow:n})),onRemove:()=>{F(),B.current?.focus()},forceIsEditingLink:P,settings:xn,createSuggestion:L&&async function(e){const t=await L({title:e,status:"draft"});return{id:t.id,type:t.type,title:t.title.rendered,url:t.link,kind:"post-type"}},withCreateSuggestion:H,createSuggestionButtonText:function(e){return(0,gt.createInterpolateElement)((0,pt.sprintf)((0,pt.__)("Create page: <mark>%s</mark>"),e),{mark:(0,it.jsx)("mark",{})})}})}),(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsx)(bn,{selectedWidth:x,setAttributes:o})}),(0,it.jsxs)(ct.InspectorControls,{group:"advanced",children:[(0,it.jsx)(_n,{tagName:c,onChange:e=>o({tagName:e}),options:[{label:(0,pt.__)("Default (<a>)"),value:"a"},{label:"<button>",value:"button"}]}),A&&(0,it.jsx)(mt.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("Link relation"),help:(0,gt.createInterpolateElement)((0,pt.__)("The <a>Link Relation</a> attribute defines the relationship between a linked resource and the current document."),{a:(0,it.jsx)(mt.ExternalLink,{href:"https://developer.mozilla.org/docs/Web/HTML/Attributes/rel"})}),value:m||"",onChange:e=>o({rel:e})})]})]})};const yn=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/button","title":"Button","category":"design","parent":["core/buttons"],"description":"Prompt visitors to take action with a button-style link.","keywords":["link"],"textdomain":"default","attributes":{"tagName":{"type":"string","enum":["a","button"],"default":"a"},"type":{"type":"string","default":"button"},"textAlign":{"type":"string"},"url":{"type":"string","source":"attribute","selector":"a","attribute":"href","role":"content"},"title":{"type":"string","source":"attribute","selector":"a,button","attribute":"title","role":"content"},"text":{"type":"rich-text","source":"rich-text","selector":"a,button","role":"content"},"linkTarget":{"type":"string","source":"attribute","selector":"a","attribute":"target","role":"content"},"rel":{"type":"string","source":"attribute","selector":"a","attribute":"rel","role":"content"},"placeholder":{"type":"string"},"backgroundColor":{"type":"string"},"textColor":{"type":"string"},"gradient":{"type":"string"},"width":{"type":"number"}},"supports":{"anchor":true,"splitting":true,"align":false,"alignWide":false,"color":{"__experimentalSkipSerialization":true,"gradients":true,"__experimentalDefaultControls":{"background":true,"text":true}},"typography":{"__experimentalSkipSerialization":["fontSize","lineHeight","fontFamily","fontWeight","fontStyle","textTransform","textDecoration","letterSpacing"],"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalWritingMode":true,"__experimentalDefaultControls":{"fontSize":true}},"reusable":false,"shadow":{"__experimentalSkipSerialization":true},"spacing":{"__experimentalSkipSerialization":true,"padding":["horizontal","vertical"],"__experimentalDefaultControls":{"padding":true}},"__experimentalBorder":{"color":true,"radius":true,"style":true,"width":true,"__experimentalSkipSerialization":true,"__experimentalDefaultControls":{"color":true,"radius":true,"style":true,"width":true}},"interactivity":{"clientNavigation":true}},"styles":[{"name":"fill","label":"Fill","isDefault":true},{"name":"outline","label":"Outline"}],"editorStyle":"wp-block-button-editor","style":"wp-block-button","selectors":{"root":".wp-block-button .wp-block-button__link","typography":{"writingMode":".wp-block-button"}}}');const{name:vn}=yn,kn={icon:Qo,example:{attributes:{className:"is-style-fill",text:(0,pt.__)("Call to action")}},edit:fn,save:function({attributes:e,className:t}){const{tagName:o,type:n,textAlign:r,fontSize:a,linkTarget:i,rel:s,style:l,text:c,title:u,url:d,width:p}=e,m=o||"a",g="button"===m,h=n||"button",_=(0,ct.__experimentalGetBorderClassesAndStyles)(e),x=(0,ct.__experimentalGetColorClassesAndStyles)(e),b=(0,ct.__experimentalGetSpacingClassesAndStyles)(e),f=(0,ct.__experimentalGetShadowClassesAndStyles)(e),y=(0,ct.getTypographyClassesAndStyles)(e),v=Dt("wp-block-button__link",x.className,_.className,y.className,{[`has-text-align-${r}`]:r,"no-border-radius":0===l?.border?.radius,"has-custom-font-size":a||l?.typography?.fontSize},(0,ct.__experimentalGetElementClassName)("button")),k={..._.style,...x.style,...b.style,...f.style,...y.style,writingMode:void 0},w=Dt(t,{[`has-custom-width wp-block-button__width-${p}`]:p});return(0,it.jsx)("div",{...ct.useBlockProps.save({className:w}),children:(0,it.jsx)(ct.RichText.Content,{tagName:m,type:g?h:null,className:v,href:g?null:d,title:u,style:k,value:c,target:g?null:i,rel:g?null:s})})},deprecated:ln,merge:(e,{text:t=""})=>({...e,text:(e.text||"")+t})},wn=()=>jt({name:vn,metadata:yn,settings:kn});var Cn=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.Path,{d:"M14.5 17.5H9.5V16H14.5V17.5Z M14.5 8H9.5V6.5H14.5V8Z M7 3.5H17C18.1046 3.5 19 4.39543 19 5.5V9C19 10.1046 18.1046 11 17 11H7C5.89543 11 5 10.1046 5 9V5.5C5 4.39543 5.89543 3.5 7 3.5ZM17 5H7C6.72386 5 6.5 5.22386 6.5 5.5V9C6.5 9.27614 6.72386 9.5 7 9.5H17C17.2761 9.5 17.5 9.27614 17.5 9V5.5C17.5 5.22386 17.2761 5 17 5Z M7 13H17C18.1046 13 19 13.8954 19 15V18.5C19 19.6046 18.1046 20.5 17 20.5H7C5.89543 20.5 5 19.6046 5 18.5V15C5 13.8954 5.89543 13 7 13ZM17 14.5H7C6.72386 14.5 6.5 14.7239 6.5 15V18.5C6.5 18.7761 6.72386 19 7 19H17C17.2761 19 17.5 18.7761 17.5 18.5V15C17.5 14.7239 17.2761 14.5 17 14.5Z"})});const jn=e=>{if(e.layout)return e;const{contentJustification:t,orientation:o,...n}=e;return(t||o)&&Object.assign(n,{layout:{type:"flex",...t&&{justifyContent:t},...o&&{orientation:o}}}),n},Sn=[{attributes:{contentJustification:{type:"string"},orientation:{type:"string",default:"horizontal"}},supports:{anchor:!0,align:["wide","full"],__experimentalExposeControlsToChildren:!0,spacing:{blockGap:!0,margin:["top","bottom"],__experimentalDefaultControls:{blockGap:!0}}},isEligible:({contentJustification:e,orientation:t})=>!!e||!!t,migrate:jn,save:({attributes:{contentJustification:e,orientation:t}})=>(0,it.jsx)("div",{...ct.useBlockProps.save({className:Dt({[`is-content-justification-${e}`]:e,"is-vertical":"vertical"===t})}),children:(0,it.jsx)(ct.InnerBlocks.Content,{})})},{supports:{align:["center","left","right"],anchor:!0},save:()=>(0,it.jsx)("div",{children:(0,it.jsx)(ct.InnerBlocks.Content,{})}),isEligible:({align:e})=>e&&["center","left","right"].includes(e),migrate:e=>jn({...e,align:void 0,contentJustification:e.align})}];var Bn=Sn;const Tn=window.wp.richText;function Nn(e,t,o=null){if(!e)return;const n=(0,st.getBlockType)(t);if(!n)return;const r={};if((0,st.hasBlockSupport)(n,"anchor")&&e.anchor&&(r.anchor=e.anchor),(0,st.hasBlockSupport)(n,"ariaLabel")&&e.ariaLabel&&(r.ariaLabel=e.ariaLabel),e.metadata){const t=[];if(o&&t.push("id","bindings"),t.length>0){const n=Object.entries(e.metadata).reduce(((e,[n,r])=>t.includes(n)?(e[n]="bindings"===n?o(r):r,e):e),{});Object.keys(n).length>0&&(r.metadata=n)}}return 0!==Object.keys(r).length?r:void 0}const Pn={from:[{type:"block",isMultiBlock:!0,blocks:["core/button"],transform:e=>(0,st.createBlock)("core/buttons",{},e.map((e=>(0,st.createBlock)("core/button",e))))},{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>(0,st.createBlock)("core/buttons",{},e.map((e=>{const{content:t}=e,o=(0,Tn.__unstableCreateElement)(document,t),n=o.innerText||"",r=o.querySelector("a"),a=r?.getAttribute("href");return(0,st.createBlock)("core/button",{...e,...Nn(e,"core/button",(({content:e})=>({text:e}))),text:n,url:a})}))),isMatch:e=>e.every((e=>{const t=(0,Tn.__unstableCreateElement)(document,e.content),o=t.innerText||"",n=t.querySelectorAll("a");return o.length<=30&&n.length<=1}))}]};var In=Pn;const Dn={name:"core/button",attributesToCopy:["backgroundColor","border","className","fontFamily","fontSize","gradient","style","textColor","width"]};var Mn=function({attributes:e,className:t}){const{fontSize:o,layout:n,style:r}=e,a=(0,ct.useBlockProps)({className:Dt(t,{"has-custom-font-size":o||r?.typography?.fontSize})}),{hasButtonVariations:i}=(0,lt.useSelect)((e=>({hasButtonVariations:e(st.store).getBlockVariations("core/button","inserter").length>0})),[]),s=(0,ct.useInnerBlocksProps)(a,{defaultBlock:Dn,directInsert:!i,template:[["core/button"]],templateInsertUpdatesSelection:!0,orientation:n?.orientation??"horizontal"});return(0,it.jsx)("div",{...s})};const zn=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/buttons","title":"Buttons","category":"design","allowedBlocks":["core/button"],"description":"Prompt visitors to take action with a group of button-style links.","keywords":["link"],"textdomain":"default","supports":{"anchor":true,"align":["wide","full"],"html":false,"__experimentalExposeControlsToChildren":true,"color":{"gradients":true,"text":false,"__experimentalDefaultControls":{"background":true}},"spacing":{"blockGap":["horizontal","vertical"],"padding":true,"margin":["top","bottom"],"__experimentalDefaultControls":{"blockGap":true}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"__experimentalBorder":{"color":true,"radius":true,"style":true,"width":true,"__experimentalDefaultControls":{"color":true,"radius":true,"style":true,"width":true}},"layout":{"allowSwitching":false,"allowInheriting":false,"default":{"type":"flex"}},"interactivity":{"clientNavigation":true},"contentRole":true},"editorStyle":"wp-block-buttons-editor","style":"wp-block-buttons"}');const{name:An}=zn,Ln={icon:Cn,example:{attributes:{layout:{type:"flex",justifyContent:"center"}},innerBlocks:[{name:"core/button",attributes:{text:(0,pt.__)("Find out more")}},{name:"core/button",attributes:{text:(0,pt.__)("Contact us")}}]},deprecated:Bn,transforms:In,edit:Mn,save:function({attributes:e,className:t}){const{fontSize:o,style:n}=e,r=ct.useBlockProps.save({className:Dt(t,{"has-custom-font-size":o||n?.typography?.fontSize})}),a=ct.useInnerBlocksProps.save(r);return(0,it.jsx)("div",{...a})}},Hn=()=>jt({name:An,metadata:zn,settings:Ln});var Rn=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V7h15v12zM9 10H7v2h2v-2zm0 4H7v2h2v-2zm4-4h-2v2h2v-2zm4 0h-2v2h2v-2zm-4 4h-2v2h2v-2zm4 0h-2v2h2v-2z"})});const Vn=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/calendar","title":"Calendar","category":"widgets","description":"A calendar of your site’s posts.","keywords":["posts","archive"],"textdomain":"default","attributes":{"month":{"type":"integer"},"year":{"type":"integer"}},"supports":{"align":true,"html":false,"color":{"link":true,"__experimentalSkipSerialization":["text","background"],"__experimentalDefaultControls":{"background":true,"text":true},"__experimentalSelector":"table, th"},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true}},"style":"wp-block-calendar"}'),Fn=fo((e=>{if(!e)return{};const t=new Date(e);return{year:t.getFullYear(),month:t.getMonth()+1}}));var En={from:[{type:"block",blocks:["core/archives"],transform:()=>(0,st.createBlock)("core/calendar")}],to:[{type:"block",blocks:["core/archives"],transform:()=>(0,st.createBlock)("core/archives")}]};const{name:On}=Vn,Gn={icon:Rn,example:{},edit:function({attributes:e}){const t=(0,ct.useBlockProps)(),{date:o,hasPosts:n,hasPostsResolved:r}=(0,lt.useSelect)((e=>{const{getEntityRecords:t,hasFinishedResolution:o}=e(_t.store),n={status:"publish",per_page:1},r=t("postType","post",n),a=o("getEntityRecords",["postType","post",n]);let i;const s=e("core/editor");if(s){"post"===s.getEditedPostAttribute("type")&&(i=s.getEditedPostAttribute("date"))}return{date:i,hasPostsResolved:a,hasPosts:a&&1===r?.length}}),[]);return n?(0,it.jsx)("div",{...t,children:(0,it.jsx)(mt.Disabled,{children:(0,it.jsx)(dt(),{block:"core/calendar",attributes:{...e,...Fn(o)}})})}):(0,it.jsx)("div",{...t,children:(0,it.jsx)(mt.Placeholder,{icon:Rn,label:(0,pt.__)("Calendar"),children:r?(0,pt.__)("No published posts found."):(0,it.jsx)(mt.Spinner,{})})})},transforms:En},$n=()=>jt({name:On,metadata:Vn,settings:Gn});var Un=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.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"})});const qn=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/categories","title":"Terms List","category":"widgets","description":"Display a list of all terms of a given taxonomy.","keywords":["categories"],"textdomain":"default","attributes":{"taxonomy":{"type":"string","default":"category"},"displayAsDropdown":{"type":"boolean","default":false},"showHierarchy":{"type":"boolean","default":false},"showPostCounts":{"type":"boolean","default":false},"showOnlyTopLevel":{"type":"boolean","default":false},"showEmpty":{"type":"boolean","default":false},"label":{"type":"string","role":"content"},"showLabel":{"type":"boolean","default":true}},"usesContext":["enhancedPagination"],"supports":{"align":true,"html":false,"spacing":{"margin":true,"padding":true,"__experimentalDefaultControls":{"margin":false,"padding":false}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"color":{"gradients":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true,"link":true}},"interactivity":{"clientNavigation":true},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true,"__experimentalDefaultControls":{"radius":true,"color":true,"width":true,"style":true}}},"editorStyle":"wp-block-categories-editor","style":"wp-block-categories"}');var Wn=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"m21.5 9.1-6.6-6.6-4.2 5.6c-1.2-.1-2.4.1-3.6.7-.1 0-.1.1-.2.1-.5.3-.9.6-1.2.9l3.7 3.7-5.7 5.7v1.1h1.1l5.7-5.7 3.7 3.7c.4-.4.7-.8.9-1.2.1-.1.1-.2.2-.3.6-1.1.8-2.4.6-3.6l5.6-4.1zm-7.3 3.5.1.9c.1.9 0 1.8-.4 2.6l-6-6c.8-.4 1.7-.5 2.6-.4l.9.1L15 4.9 19.1 9l-4.9 3.6z"})});const Zn=[{name:"terms",title:(0,pt.__)("Terms List"),icon:Un,attributes:{taxonomy:"post_tag"},isActive:e=>"category"!==e.taxonomy},{name:"categories",title:(0,pt.__)("Categories List"),description:(0,pt.__)("Display a list of all categories."),icon:Un,attributes:{taxonomy:"category"},isActive:["taxonomy"],isDefault:!0}];var Jn=Zn;const{name:Qn}=qn,Kn={icon:Un,example:{},edit:function e({attributes:{displayAsDropdown:t,showHierarchy:o,showPostCounts:n,showOnlyTopLevel:r,showEmpty:a,label:i,showLabel:s,taxonomy:l},setAttributes:c,className:u,clientId:d}){const p=(0,xt.useInstanceId)(e,"blocks-category-select"),{records:m,isResolvingTaxonomies:g}=(0,_t.useEntityRecords)("root","taxonomy",{per_page:-1}),h=m?.filter((e=>e.visibility.public)),_=h?.find((e=>e.slug===l)),x=!g&&_?.hierarchical,b={per_page:-1,hide_empty:!a,context:"view"};x&&r&&(b.parent=0);const{records:f,isResolving:y}=(0,_t.useEntityRecords)("taxonomy",l,b),{createWarningNotice:v}=(0,lt.useDispatch)(bo.store),k=e=>{e.preventDefault(),v((0,pt.__)("Links are disabled in the editor."),{id:`block-library/core/categories/redirection-prevented/${d}`,type:"snackbar"})},w=e=>f?.length?null===e?f:f.filter((({parent:t})=>t===e)):[],C=e=>t=>c({[e]:t}),j=e=>e?(0,ao.decodeEntities)(e).trim():(0,pt.__)("(Untitled)"),S=e=>{const t=w(e.id),{id:r,link:a,count:i,name:s}=e;return(0,it.jsxs)("li",{className:`cat-item cat-item-${r}`,children:[(0,it.jsx)("a",{href:a,onClick:k,children:j(s)}),n&&` (${i})`,x&&o&&!!t.length&&(0,it.jsx)("ul",{className:"children",children:t.map((e=>S(e)))})]},r)},B=(e,t)=>{const{id:r,count:a,name:i}=e,s=w(r);return[(0,it.jsxs)("option",{className:`level-${t}`,children:[Array.from({length:3*t}).map((()=>" ")),j(i),n&&` (${a})`]},r),x&&o&&!!s.length&&s.map((e=>B(e,t+1)))]},T=!f?.length||t||y?"div":"ul",N=Dt(u,{"wp-block-categories-list":!!f?.length&&!t&&!y,"wp-block-categories-dropdown":!!f?.length&&t&&!y}),P=(0,ct.useBlockProps)({className:N}),I=vt();return(0,it.jsxs)(T,{...P,children:[(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{c({taxonomy:"category",displayAsDropdown:!1,showHierarchy:!1,showPostCounts:!1,showOnlyTopLevel:!1,showEmpty:!1,showLabel:!0})},dropdownMenuProps:I,children:[Array.isArray(h)&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>"category"!==l,label:(0,pt.__)("Taxonomy"),onDeselect:()=>{c({taxonomy:"category"})},isShownByDefault:!0,children:(0,it.jsx)(mt.SelectControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,pt.__)("Taxonomy"),options:h.map((e=>({label:e.name,value:e.slug}))),value:l,onChange:e=>c({taxonomy:e})})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!!t,label:(0,pt.__)("Display as dropdown"),onDeselect:()=>c({displayAsDropdown:!1}),isShownByDefault:!0,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Display as dropdown"),checked:t,onChange:C("displayAsDropdown")})}),t&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!s,label:(0,pt.__)("Show label"),onDeselect:()=>c({showLabel:!0}),isShownByDefault:!0,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,className:"wp-block-categories__indentation",label:(0,pt.__)("Show label"),checked:s,onChange:C("showLabel")})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!!n,label:(0,pt.__)("Show post counts"),onDeselect:()=>c({showPostCounts:!1}),isShownByDefault:!0,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Show post counts"),checked:n,onChange:C("showPostCounts")})}),x&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!!r,label:(0,pt.__)("Show only top level terms"),onDeselect:()=>c({showOnlyTopLevel:!1}),isShownByDefault:!0,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Show only top level terms"),checked:r,onChange:C("showOnlyTopLevel")})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!!a,label:(0,pt.__)("Show empty terms"),onDeselect:()=>c({showEmpty:!1}),isShownByDefault:!0,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Show empty terms"),checked:a,onChange:C("showEmpty")})}),x&&!r&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!!o,label:(0,pt.__)("Show hierarchy"),onDeselect:()=>c({showHierarchy:!1}),isShownByDefault:!0,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Show hierarchy"),checked:o,onChange:C("showHierarchy")})})]})}),y&&(0,it.jsx)(mt.Placeholder,{icon:Wn,label:(0,pt.__)("Terms"),children:(0,it.jsx)(mt.Spinner,{})}),!y&&0===f?.length&&(0,it.jsx)("p",{children:_.labels.no_terms}),!y&&f?.length>0&&(t?(()=>{const e=w(x&&o?0:null);return(0,it.jsxs)(it.Fragment,{children:[s?(0,it.jsx)(ct.RichText,{className:"wp-block-categories__label","aria-label":(0,pt.__)("Label text"),placeholder:_?.name,withoutInteractiveFormatting:!0,value:i,onChange:e=>c({label:e})}):(0,it.jsx)(mt.VisuallyHidden,{as:"label",htmlFor:p,children:i||_?.name}),(0,it.jsxs)("select",{id:p,children:[(0,it.jsx)("option",{children:(0,pt.sprintf)((0,pt.__)("Select %s"),_?.labels?.singular_name)}),e.map((e=>B(e,0)))]})]})})():w(x&&o?0:null).map((e=>S(e))))]})},variations:Jn},Yn=()=>jt({name:Qn,metadata:qn,settings:Kn});var Xn=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.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 er=({clientId:e})=>{const{replaceBlocks:t}=(0,lt.useDispatch)(ct.store),o=(0,lt.useSelect)((t=>t(ct.store).getBlock(e)),[e]);return(0,it.jsx)(mt.ToolbarButton,{onClick:()=>t(o.clientId,(0,st.rawHandler)({HTML:(0,st.serialize)(o)})),children:(0,pt.__)("Convert to blocks")})},tr=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M6 4a2 2 0 0 0-2 2v3h1.5V6a.5.5 0 0 1 .5-.5h3V4H6Zm3 14.5H6a.5.5 0 0 1-.5-.5v-3H4v3a2 2 0 0 0 2 2h3v-1.5Zm6 1.5v-1.5h3a.5.5 0 0 0 .5-.5v-3H20v3a2 2 0 0 1-2 2h-3Zm3-16a2 2 0 0 1 2 2v3h-1.5V6a.5.5 0 0 0-.5-.5h-3V4h3Z"})});function or({onClick:e,isModalFullScreen:t}){return(0,xt.useViewportMatch)("small","<")?null:(0,it.jsx)(mt.Button,{size:"compact",onClick:e,icon:tr,isPressed:t,label:t?(0,pt.__)("Exit fullscreen"):(0,pt.__)("Enter fullscreen")})}function nr(e){const t=(0,lt.useSelect)((e=>e(ct.store).getSettings().styles));return(0,gt.useEffect)((()=>{const{baseURL:o,suffix:n,settings:r}=window.wpEditorL10n.tinymce;return window.tinymce.EditorManager.overrideDefaults({base_url:o,suffix:n}),window.wp.oldEditor.initialize(e.id,{tinymce:{...r,setup(e){e.on("init",(()=>{const o=e.getDoc();t.forEach((({css:e})=>{const t=o.createElement("style");t.innerHTML=e,o.head.appendChild(t)}))}))}}}),()=>{window.wp.oldEditor.remove(e.id)}}),[]),(0,it.jsx)("textarea",{...e})}function rr(e){const{clientId:t,attributes:{content:o},setAttributes:n,onReplace:r}=e,[a,i]=(0,gt.useState)(!1),[s,l]=(0,gt.useState)(!1),c=`editor-${t}`,u=()=>o?i(!1):r([]);return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.BlockControls,{children:(0,it.jsx)(mt.ToolbarGroup,{children:(0,it.jsx)(mt.ToolbarButton,{onClick:()=>i(!0),children:(0,pt.__)("Edit")})})}),o&&(0,it.jsx)(gt.RawHTML,{children:o}),(a||!o)&&(0,it.jsxs)(mt.Modal,{title:(0,pt.__)("Classic Editor"),onRequestClose:u,shouldCloseOnClickOutside:!1,overlayClassName:"block-editor-freeform-modal",isFullScreen:s,className:"block-editor-freeform-modal__content",headerActions:(0,it.jsx)(or,{onClick:()=>l(!s),isModalFullScreen:s}),children:[(0,it.jsx)(nr,{id:c,defaultValue:o}),(0,it.jsxs)(mt.Flex,{className:"block-editor-freeform-modal__actions",justify:"flex-end",expanded:!1,children:[(0,it.jsx)(mt.FlexItem,{children:(0,it.jsx)(mt.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:u,children:(0,pt.__)("Cancel")})}),(0,it.jsx)(mt.FlexItem,{children:(0,it.jsx)(mt.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:()=>{n({content:window.wp.oldEditor.getContent(c)}),i(!1)},children:(0,pt.__)("Save")})})]})]})]})}const{wp:ar}=window;function ir({clientId:e,attributes:{content:t},setAttributes:o,onReplace:n}){const{getMultiSelectedBlockClientIds:r}=(0,lt.useSelect)(ct.store),a=(0,gt.useRef)(!1);return(0,gt.useEffect)((()=>{if(!a.current)return;const o=window.tinymce.get(`editor-${e}`);if(!o)return;o.getContent()!==t&&o.setContent(t||"")}),[e,t]),(0,gt.useEffect)((()=>{const{baseURL:i,suffix:s}=window.wpEditorL10n.tinymce;function l(e){let a;t&&e.on("loadContent",(()=>e.setContent(t))),e.on("blur",(()=>{a=e.selection.getBookmark(2,!0);const t=document.querySelector(".interface-interface-skeleton__content"),n=t.scrollTop;return r()?.length||o({content:e.getContent()}),e.once("focus",(()=>{a&&(e.selection.moveToBookmark(a),t.scrollTop!==n&&(t.scrollTop=n))})),!1})),e.on("mousedown touchstart",(()=>{a=null}));const i=(0,xt.debounce)((()=>{const t=e.getContent();t!==e._lastChange&&(e._lastChange=t,o({content:t}))}),250);e.on("Paste Change input Undo Redo",i),e.on("remove",i.cancel),e.on("keydown",(t=>{mn.isKeyboardEvent.primary(t,"z")&&t.stopPropagation(),t.keyCode!==mn.BACKSPACE&&t.keyCode!==mn.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)||(n([]),t.preventDefault(),t.stopImmediatePropagation());const{altKey:o}=t;o&&t.keyCode===mn.F10&&t.stopPropagation()})),e.on("paste",(e=>{e.stopPropagation()})),e.on("init",(()=>{const t=e.getBody();t.ownerDocument.activeElement===t&&(t.blur(),e.focus())}))}function c(){const{settings:t}=window.wpEditorL10n.tinymce;ar.oldEditor.initialize(`editor-${e}`,{tinymce:{...t,inline:!0,content_css:!1,fixed_toolbar_container:`#toolbar-${e}`,setup:l}})}function u(){"complete"===document.readyState&&c()}return a.current=!0,window.tinymce.EditorManager.overrideDefaults({base_url:i,suffix:s}),"complete"===document.readyState?c():document.addEventListener("readystatechange",u),()=>{document.removeEventListener("readystatechange",u),ar.oldEditor.remove(`editor-${e}`),a.current=!1}}),[]),(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)("div",{id:`toolbar-${e}`,className:"block-library-classic__toolbar",onClick:function(){const t=window.tinymce.get(`editor-${e}`);t&&t.focus()},"data-placeholder":(0,pt.__)("Classic"),onKeyDown:function(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()}},"toolbar"),(0,it.jsx)("div",{id:`editor-${e}`,className:"wp-block-freeform block-library-rich-text__tinymce"},"editor")]})}const sr=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/freeform","title":"Classic","category":"text","description":"Use the classic WordPress editor.","textdomain":"default","attributes":{"content":{"type":"string","source":"raw"}},"supports":{"html":false,"className":false,"customClassName":false,"lock":false,"reusable":false,"renaming":false,"blockVisibility":false},"editorStyle":"wp-block-freeform-editor"}');const{name:lr}=sr,cr={icon:Xn,edit:function(e){const{clientId:t}=e,o=(0,lt.useSelect)((e=>e(ct.store).canRemoveBlock(t)),[t]),[n,r]=(0,gt.useState)(!1),a=(0,xt.useRefEffect)((e=>{r(e.ownerDocument!==document)}),[]);return(0,it.jsxs)(it.Fragment,{children:[o&&(0,it.jsx)(ct.BlockControls,{children:(0,it.jsx)(mt.ToolbarGroup,{children:(0,it.jsx)(er,{clientId:t})})}),(0,it.jsx)("div",{...(0,ct.useBlockProps)({ref:a}),children:n?(0,it.jsx)(rr,{...e}):(0,it.jsx)(ir,{...e})})]})},save:function({attributes:e}){const{content:t}=e;return(0,it.jsx)(gt.RawHTML,{children:t})}},ur=()=>jt({name:lr,metadata:sr,settings:cr});var dr=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.Path,{d:"M20.8 10.7l-4.3-4.3-1.1 1.1 4.3 4.3c.1.1.1.3 0 .4l-4.3 4.3 1.1 1.1 4.3-4.3c.7-.8.7-1.9 0-2.6zM4.2 11.8l4.3-4.3-1-1-4.3 4.3c-.7.7-.7 1.8 0 2.5l4.3 4.3 1.1-1.1-4.3-4.3c-.2-.1-.2-.3-.1-.4z"})});const pr=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/code","title":"Code","category":"text","description":"Display code snippets that respect your spacing and tabs.","textdomain":"default","attributes":{"content":{"type":"rich-text","source":"rich-text","selector":"code","__unstablePreserveWhiteSpace":true,"role":"content"}},"supports":{"align":["wide"],"anchor":true,"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"spacing":{"margin":["top","bottom"],"padding":true,"__experimentalDefaultControls":{"margin":false,"padding":false}},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true,"__experimentalDefaultControls":{"width":true,"color":true}},"color":{"text":true,"background":true,"gradients":true,"__experimentalDefaultControls":{"background":true,"text":true}},"interactivity":{"clientNavigation":true}},"style":"wp-block-code"}');function mr(e){return e.replace(/\[/g,"&#91;")}function gr(e){return e.replace(/^(\s*https?:)\/\/([^\s<>"]+\s*)$/m,"$1&#47;&#47;$2")}const hr={from:[{type:"enter",regExp:/^```$/,transform:()=>(0,st.createBlock)("core/code")},{type:"block",blocks:["core/paragraph"],transform:e=>{const{content:t}=e;return(0,st.createBlock)("core/code",{...e,...Nn(e,"core/code"),content:t})}},{type:"block",blocks:["core/html"],transform:e=>{const{content:t}=e;return(0,st.createBlock)("core/code",{...e,...Nn(e,"core/code"),content:(0,Tn.toHTMLString)({value:(0,Tn.create)({text:t})})})}},{type:"raw",isMatch:e=>"PRE"===e.nodeName&&1===e.children.length&&"CODE"===e.firstChild.nodeName,schema:{pre:{children:{code:{children:{"#text":{}}}}}}}],to:[{type:"block",blocks:["core/paragraph"],transform:e=>{const{content:t}=e;return(0,st.createBlock)("core/paragraph",{...Nn(e,"core/paragraph"),content:t})}}]};var _r=hr;const{name:xr}=pr,br={icon:dr,example:{attributes:{content:(0,pt.__)("// 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 );")}},merge:(e,t)=>({content:e.content+"\n\n"+t.content}),transforms:_r,edit:function({attributes:e,setAttributes:t,onRemove:o,insertBlocksAfter:n,mergeBlocks:r}){const a=(0,ct.useBlockProps)();return(0,it.jsx)("pre",{...a,children:(0,it.jsx)(ct.RichText,{tagName:"code",identifier:"content",value:e.content,onChange:e=>t({content:e}),onRemove:o,onMerge:r,placeholder:(0,pt.__)("Write code…"),"aria-label":(0,pt.__)("Code"),preserveWhiteSpace:!0,__unstablePastePlainText:!0,__unstableOnSplitAtDoubleLineEnd:()=>n((0,st.createBlock)((0,st.getDefaultBlockName)()))})})},save:function({attributes:e}){return(0,it.jsx)("pre",{...ct.useBlockProps.save(),children:(0,it.jsx)(ct.RichText.Content,{tagName:"code",value:(t="string"==typeof e.content?e.content:e.content.toHTMLString({preserveWhiteSpace:!0}),(0,xt.pipe)(mr,gr)(t||""))})});var t}},fr=()=>jt({name:xr,metadata:pr,settings:br});var yr=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M19 6H6c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zM6 17.5c-.3 0-.5-.2-.5-.5V8c0-.3.2-.5.5-.5h3v10H6zm13.5-.5c0 .3-.2.5-.5.5h-3v-10h3c.3 0 .5.2.5.5v9z"})});const vr=[{attributes:{verticalAlignment:{type:"string"},width:{type:"number",min:0,max:100}},isEligible:({width:e})=>isFinite(e),migrate:e=>({...e,width:`${e.width}%`}),save({attributes:e}){const{verticalAlignment:t,width:o}=e,n=Dt({[`is-vertically-aligned-${t}`]:t}),r={flexBasis:o+"%"};return(0,it.jsx)("div",{className:n,style:r,children:(0,it.jsx)(ct.InnerBlocks.Content,{})})}}];var kr=vr;function wr({width:e,setAttributes:t}){const[o]=(0,ct.useSettings)("spacing.units"),n=(0,mt.__experimentalUseCustomUnits)({availableUnits:o||["%","px","em","rem","vw"]}),r=vt();return(0,it.jsx)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{t({width:void 0})},dropdownMenuProps:r,children:(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>void 0!==e,label:(0,pt.__)("Width"),onDeselect:()=>t({width:void 0}),isShownByDefault:!0,children:(0,it.jsx)(mt.__experimentalUnitControl,{label:(0,pt.__)("Width"),__unstableInputWidth:"calc(50% - 8px)",__next40pxDefaultSize:!0,value:e||"",onChange:e=>{e=0>parseFloat(e)?"0":e,t({width:e})},units:n})})})}var Cr=function({attributes:{verticalAlignment:e,width:t,templateLock:o,allowedBlocks:n},setAttributes:r,clientId:a}){const i=Dt("block-core-columns",{[`is-vertically-aligned-${e}`]:e}),{columnsIds:s,hasChildBlocks:l,rootClientId:c}=(0,lt.useSelect)((e=>{const{getBlockOrder:t,getBlockRootClientId:o}=e(ct.store),n=o(a);return{hasChildBlocks:t(a).length>0,rootClientId:n,columnsIds:t(n)}}),[a]),{updateBlockAttributes:u}=(0,lt.useDispatch)(ct.store),d=Number.isFinite(t)?t+"%":t,p=(0,ct.useBlockProps)({className:i,style:d?{flexBasis:d}:void 0}),m=s.length,g=s.indexOf(a)+1,h=(0,pt.sprintf)((0,pt.__)("%1$s (%2$d of %3$d)"),p["aria-label"],g,m),_=(0,ct.useInnerBlocksProps)({...p,"aria-label":h},{templateLock:o,allowedBlocks:n,renderAppender:l?void 0:ct.InnerBlocks.ButtonBlockAppender});return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.BlockControls,{children:(0,it.jsx)(ct.BlockVerticalAlignmentToolbar,{onChange:e=>{r({verticalAlignment:e}),u(c,{verticalAlignment:null})},value:e,controls:["top","center","bottom","stretch"]})}),(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsx)(wr,{width:t,setAttributes:r})}),(0,it.jsx)("div",{..._})]})};const jr=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/column","title":"Column","category":"design","parent":["core/columns"],"description":"A single column within a columns block.","textdomain":"default","attributes":{"verticalAlignment":{"type":"string"},"width":{"type":"string"},"templateLock":{"type":["string","boolean"],"enum":["all","insert","contentOnly",false]}},"supports":{"__experimentalOnEnter":true,"anchor":true,"reusable":false,"html":false,"color":{"gradients":true,"heading":true,"button":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true}},"shadow":true,"spacing":{"blockGap":true,"padding":true,"__experimentalDefaultControls":{"padding":true,"blockGap":true}},"__experimentalBorder":{"color":true,"radius":true,"style":true,"width":true,"__experimentalDefaultControls":{"color":true,"radius":true,"style":true,"width":true}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"layout":true,"interactivity":{"clientNavigation":true},"allowedBlocks":true}}');const{name:Sr}=jr,Br={icon:yr,edit:Cr,save:function({attributes:e}){const{verticalAlignment:t,width:o}=e,n=Dt({[`is-vertically-aligned-${t}`]:t});let r;if(o&&/\d/.test(o)){let e=Number.isFinite(o)?o+"%":o;if(!Number.isFinite(o)&&o?.endsWith("%")){const t=1e12;e=Math.round(Number.parseFloat(o)*t)/t+"%"}r={flexBasis:e}}const a=ct.useBlockProps.save({className:n,style:r}),i=ct.useInnerBlocksProps.save(a);return(0,it.jsx)("div",{...i})},deprecated:kr},Tr=()=>jt({name:Sr,metadata:jr,settings:Br});var Nr=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M15 7.5h-5v10h5v-10Zm1.5 0v10H19a.5.5 0 0 0 .5-.5V8a.5.5 0 0 0-.5-.5h-2.5ZM6 7.5h2.5v10H6a.5.5 0 0 1-.5-.5V8a.5.5 0 0 1 .5-.5ZM6 6h13a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2Z"})});function Pr(e){let t,{doc:o}=Pr;o||(o=document.implementation.createHTMLDocument(""),Pr.doc=o),o.body.innerHTML=e;for(const e of o.body.firstChild.classList)if(t=e.match(/^layout-column-(\d+)$/))return Number(t[1])-1}var Ir=[{attributes:{verticalAlignment:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},textColor:{type:"string"}},migrate:e=>{if(!e.customTextColor&&!e.customBackgroundColor)return e;const t={color:{}};e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor);const{customTextColor:o,customBackgroundColor:n,...r}=e;return{...r,style:t,isStackedOnMobile:!0}},save({attributes:e}){const{verticalAlignment:t,backgroundColor:o,customBackgroundColor:n,textColor:r,customTextColor:a}=e,i=(0,ct.getColorClassName)("background-color",o),s=(0,ct.getColorClassName)("color",r),l=Dt({"has-background":o||n,"has-text-color":r||a,[i]:i,[s]:s,[`are-vertically-aligned-${t}`]:t}),c={backgroundColor:i?void 0:n,color:s?void 0:a};return(0,it.jsx)("div",{className:l||void 0,style:c,children:(0,it.jsx)(ct.InnerBlocks.Content,{})})}},{attributes:{columns:{type:"number",default:2}},isEligible:(e,t)=>!!t.some((e=>/layout-column-\d+/.test(e.originalContent)))&&t.some((e=>void 0!==Pr(e.originalContent))),migrate(e,t){const o=t.reduce(((e,t)=>{const{originalContent:o}=t;let n=Pr(o);return void 0===n&&(n=0),e[n]||(e[n]=[]),e[n].push(t),e}),[]).map((e=>(0,st.createBlock)("core/column",{},e))),{columns:n,...r}=e;return[{...r,isStackedOnMobile:!0},o]},save({attributes:e}){const{columns:t}=e;return(0,it.jsx)("div",{className:`has-${t}-columns`,children:(0,it.jsx)(ct.InnerBlocks.Content,{})})}},{attributes:{columns:{type:"number",default:2}},migrate(e,t){const{columns:o,...n}=e;return[e={...n,isStackedOnMobile:!0},t]},save({attributes:e}){const{verticalAlignment:t,columns:o}=e,n=Dt(`has-${o}-columns`,{[`are-vertically-aligned-${t}`]:t});return(0,it.jsx)("div",{className:n,children:(0,it.jsx)(ct.InnerBlocks.Content,{})})}}];const Dr=e=>{const t=parseFloat(e);return Number.isFinite(t)?parseFloat(t.toFixed(2)):void 0};function Mr(e,t){const{width:o=100/t}=e.attributes;return Dr(o)}function zr(e,t,o=e.length){const n=function(e,t=e.length){return e.reduce(((e,o)=>e+Mr(o,t)),0)}(e,o);return Object.fromEntries(Object.entries(function(e,t=e.length){return e.reduce(((e,o)=>{const n=Mr(o,t);return Object.assign(e,{[o.clientId]:n})}),{})}(e,o)).map((([e,o])=>[e,Dr(t*o/n)])))}function Ar(e,t){return e.map((e=>({...e,attributes:{...e.attributes,width:`${t[e.clientId]}%`}})))}const Lr={name:"core/column"};function Hr({clientId:e,setAttributes:t,isStackedOnMobile:o}){const{count:n,canInsertColumnBlock:r,minCount:a}=(0,lt.useSelect)((t=>{const{canInsertBlockType:o,canRemoveBlock:n,getBlockOrder:r}=t(ct.store),a=r(e),i=a.reduce(((e,t,o)=>(n(t)||e.push(o),e)),[]);return{count:a.length,canInsertColumnBlock:o("core/column",e),minCount:Math.max(...i)+1}}),[e]),{getBlocks:i}=(0,lt.useSelect)(ct.store),{replaceInnerBlocks:s}=(0,lt.useDispatch)(ct.store);function l(t,o){let n=i(e);const r=n.every((e=>{const t=e.attributes.width;return Number.isFinite(t?.endsWith?.("%")?parseFloat(t):t)}));const a=o>t;if(a&&r){const e=Dr(100/o),r=o-t;n=[...Ar(n,zr(n,100-e*r)),...Array.from({length:r}).map((()=>(0,st.createBlock)("core/column",{width:`${e}%`})))]}else if(a)n=[...n,...Array.from({length:o-t}).map((()=>(0,st.createBlock)("core/column")))];else if(o<t&&(n=n.slice(0,-(t-o)),r)){n=Ar(n,zr(n,100))}s(e,n)}const c=vt();return(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{t({isStackedOnMobile:!0})},dropdownMenuProps:c,children:[r&&(0,it.jsxs)(mt.__experimentalVStack,{spacing:4,style:{gridColumn:"1 / -1"},children:[(0,it.jsx)(mt.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,pt.__)("Columns"),value:n,onChange:e=>l(n,Math.max(a,e)),min:Math.max(1,a),max:Math.max(6,n)}),n>6&&(0,it.jsx)(mt.Notice,{status:"warning",isDismissible:!1,children:(0,pt.__)("This column count exceeds the recommended amount and may cause visual breakage.")})]}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Stack on mobile"),isShownByDefault:!0,hasValue:()=>!0!==o,onDeselect:()=>t({isStackedOnMobile:!0}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Stack on mobile"),checked:o,onChange:()=>t({isStackedOnMobile:!o})})})]})}function Rr({attributes:e,setAttributes:t,clientId:o}){const{isStackedOnMobile:n,verticalAlignment:r,templateLock:a}=e,i=(0,lt.useRegistry)(),{getBlockOrder:s}=(0,lt.useSelect)(ct.store),{updateBlockAttributes:l}=(0,lt.useDispatch)(ct.store),c=Dt({[`are-vertically-aligned-${r}`]:r,"is-not-stacked-on-mobile":!n}),u=(0,ct.useBlockProps)({className:c}),d=(0,ct.useInnerBlocksProps)(u,{defaultBlock:Lr,directInsert:!0,orientation:"horizontal",renderAppender:!1,templateLock:a});return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.BlockControls,{children:(0,it.jsx)(ct.BlockVerticalAlignmentToolbar,{onChange:function(e){const n=s(o);i.batch((()=>{t({verticalAlignment:e}),l(n,{verticalAlignment:e})}))},value:r})}),(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsx)(Hr,{clientId:o,setAttributes:t,isStackedOnMobile:n})}),(0,it.jsx)("div",{...d})]})}function Vr({clientId:e,name:t,setAttributes:o}){const{blockType:n,defaultVariation:r,variations:a}=(0,lt.useSelect)((e=>{const{getBlockVariations:o,getBlockType:n,getDefaultBlockVariation:r}=e(st.store);return{blockType:n(t),defaultVariation:r(t,"block"),variations:o(t,"block")}}),[t]),{replaceInnerBlocks:i}=(0,lt.useDispatch)(ct.store),s=(0,ct.useBlockProps)();return(0,it.jsx)("div",{...s,children:(0,it.jsx)(ct.__experimentalBlockVariationPicker,{icon:n?.icon?.src,label:n?.title,variations:a,instructions:(0,pt.__)("Divide into columns. Select a layout:"),onSelect:(t=r)=>{t.attributes&&o(t.attributes),t.innerBlocks&&i(e,(0,st.createBlocksFromInnerBlocksTemplate)(t.innerBlocks),!0)},allowSkip:!0})})}var Fr=e=>{const{clientId:t}=e,o=(0,lt.useSelect)((e=>e(ct.store).getBlocks(t).length>0),[t])?Rr:Vr;return(0,it.jsx)(o,{...e})};const Er=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/columns","title":"Columns","category":"design","allowedBlocks":["core/column"],"description":"Display content in multiple columns, with blocks added to each column.","textdomain":"default","attributes":{"verticalAlignment":{"type":"string"},"isStackedOnMobile":{"type":"boolean","default":true},"templateLock":{"type":["string","boolean"],"enum":["all","insert","contentOnly",false]}},"supports":{"anchor":true,"align":["wide","full"],"html":false,"color":{"gradients":true,"link":true,"heading":true,"button":true,"__experimentalDefaultControls":{"background":true,"text":true}},"spacing":{"blockGap":{"__experimentalDefault":"2em","sides":["horizontal","vertical"]},"margin":["top","bottom"],"padding":true,"__experimentalDefaultControls":{"padding":true,"blockGap":true}},"layout":{"allowSwitching":false,"allowInheriting":false,"allowEditing":false,"default":{"type":"flex","flexWrap":"nowrap"}},"__experimentalBorder":{"color":true,"radius":true,"style":true,"width":true,"__experimentalDefaultControls":{"color":true,"radius":true,"style":true,"width":true}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true},"shadow":true},"editorStyle":"wp-block-columns-editor","style":"wp-block-columns"}');var Or=[{name:"one-column-full",title:(0,pt.__)("100"),description:(0,pt.__)("One column"),icon:(0,it.jsx)(mt.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,it.jsx)(mt.Path,{d:"M0 10a2 2 0 0 1 2-2h44a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V10Z"})}),innerBlocks:[["core/column"]],scope:["block"]},{name:"two-columns-equal",title:(0,pt.__)("50 / 50"),description:(0,pt.__)("Two columns; equal split"),icon:(0,it.jsx)(mt.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,it.jsx)(mt.Path,{d:"M0 10a2 2 0 0 1 2-2h19a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V10Zm25 0a2 2 0 0 1 2-2h19a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H27a2 2 0 0 1-2-2V10Z"})}),isDefault:!0,innerBlocks:[["core/column"],["core/column"]],scope:["block"]},{name:"two-columns-one-third-two-thirds",title:(0,pt.__)("33 / 66"),description:(0,pt.__)("Two columns; one-third, two-thirds split"),icon:(0,it.jsx)(mt.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,it.jsx)(mt.Path,{d:"M0 10a2 2 0 0 1 2-2h11a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V10Zm17 0a2 2 0 0 1 2-2h27a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H19a2 2 0 0 1-2-2V10Z"})}),innerBlocks:[["core/column",{width:"33.33%"}],["core/column",{width:"66.66%"}]],scope:["block"]},{name:"two-columns-two-thirds-one-third",title:(0,pt.__)("66 / 33"),description:(0,pt.__)("Two columns; two-thirds, one-third split"),icon:(0,it.jsx)(mt.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,it.jsx)(mt.Path,{d:"M0 10a2 2 0 0 1 2-2h27a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V10Zm33 0a2 2 0 0 1 2-2h11a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H35a2 2 0 0 1-2-2V10Z"})}),innerBlocks:[["core/column",{width:"66.66%"}],["core/column",{width:"33.33%"}]],scope:["block"]},{name:"three-columns-equal",title:(0,pt.__)("33 / 33 / 33"),description:(0,pt.__)("Three columns; equal split"),icon:(0,it.jsx)(mt.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,it.jsx)(mt.Path,{d:"M0 10a2 2 0 0 1 2-2h10.531c1.105 0 1.969.895 1.969 2v28c0 1.105-.864 2-1.969 2H2a2 2 0 0 1-2-2V10Zm16.5 0c0-1.105.864-2 1.969-2H29.53c1.105 0 1.969.895 1.969 2v28c0 1.105-.864 2-1.969 2H18.47c-1.105 0-1.969-.895-1.969-2V10Zm17 0c0-1.105.864-2 1.969-2H46a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H35.469c-1.105 0-1.969-.895-1.969-2V10Z"})}),innerBlocks:[["core/column"],["core/column"],["core/column"]],scope:["block"]},{name:"three-columns-wider-center",title:(0,pt.__)("25 / 50 / 25"),description:(0,pt.__)("Three columns; wide center column"),icon:(0,it.jsx)(mt.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,it.jsx)(mt.Path,{d:"M0 10a2 2 0 0 1 2-2h7.531c1.105 0 1.969.895 1.969 2v28c0 1.105-.864 2-1.969 2H2a2 2 0 0 1-2-2V10Zm13.5 0c0-1.105.864-2 1.969-2H32.53c1.105 0 1.969.895 1.969 2v28c0 1.105-.864 2-1.969 2H15.47c-1.105 0-1.969-.895-1.969-2V10Zm23 0c0-1.105.864-2 1.969-2H46a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2h-7.531c-1.105 0-1.969-.895-1.969-2V10Z"})}),innerBlocks:[["core/column",{width:"25%"}],["core/column",{width:"50%"}],["core/column",{width:"25%"}]],scope:["block"]}];const Gr={from:[{type:"block",isMultiBlock:!0,blocks:["*"],__experimentalConvert:e=>{const t=+(100/e.length).toFixed(2),o=e.map((({name:e,attributes:o,innerBlocks:n})=>["core/column",{width:`${t}%`},[[e,{...o},n]]]));return(0,st.createBlock)("core/columns",{},(0,st.createBlocksFromInnerBlocksTemplate)(o))},isMatch:({length:e},t)=>(1!==t.length||"core/columns"!==t[0].name)&&(e&&e<=6)},{type:"block",blocks:["core/media-text"],priority:1,transform:(e,t)=>{const{align:o,backgroundColor:n,textColor:r,style:a,mediaAlt:i,mediaId:s,mediaPosition:l,mediaSizeSlug:c,mediaType:u,mediaUrl:d,mediaWidth:p,verticalAlignment:m}=e;let g;if("image"!==u&&u)g=["core/video",{id:s,src:d}];else{g=["core/image",{...{id:s,alt:i,url:d,sizeSlug:c},...{href:e.href,linkClass:e.linkClass,linkDestination:e.linkDestination,linkTarget:e.linkTarget,rel:e.rel}}]}const h=[["core/column",{width:`${p}%`},[g]],["core/column",{width:100-p+"%"},t]];return"right"===l&&h.reverse(),(0,st.createBlock)("core/columns",{align:o,backgroundColor:n,textColor:r,style:a,verticalAlignment:m},(0,st.createBlocksFromInnerBlocksTemplate)(h))}}],ungroup:(e,t)=>t.flatMap((e=>e.innerBlocks))};var $r=Gr;const{name:Ur}=Er,qr={icon:Nr,variations:Or,example:{viewportWidth:782,innerBlocks:[{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{content:(0,pt.__)("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent et eros eu felis.")}},{name:"core/image",attributes:{url:"https://s.w.org/images/core/5.3/Windbuchencom.jpg"}},{name:"core/paragraph",attributes:{content:(0,pt.__)("Suspendisse commodo neque lacus, a dictum orci interdum et.")}}]},{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{content:(0,pt.__)("Etiam et egestas lorem. Vivamus sagittis sit amet dolor quis lobortis. Integer sed fermentum arcu, id vulputate lacus. Etiam fermentum sem eu quam hendrerit.")}},{name:"core/paragraph",attributes:{content:(0,pt.__)("Nam risus massa, ullamcorper consectetur eros fermentum, porta aliquet ligula. Sed vel mauris nec enim.")}}]}]},deprecated:Ir,edit:Fr,save:function({attributes:e}){const{isStackedOnMobile:t,verticalAlignment:o}=e,n=Dt({[`are-vertically-aligned-${o}`]:o,"is-not-stacked-on-mobile":!t}),r=ct.useBlockProps.save({className:n}),a=ct.useInnerBlocksProps.save(r);return(0,it.jsx)("div",{...a})},transforms:$r},Wr=()=>jt({name:Ur,metadata:Er,settings:qr});var Zr=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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"})});const Jr=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/comments","title":"Comments","category":"theme","description":"An advanced block that allows displaying post comments using different visual configurations.","textdomain":"default","attributes":{"tagName":{"type":"string","default":"div"},"legacy":{"type":"boolean","default":false}},"supports":{"align":["wide","full"],"html":false,"color":{"gradients":true,"heading":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true,"link":true}},"spacing":{"margin":true,"padding":true},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true,"__experimentalDefaultControls":{"radius":true,"color":true,"width":true,"style":true}}},"editorStyle":"wp-block-comments-editor","usesContext":["postId","postType"]}');var Qr=[{attributes:{tagName:{type:"string",default:"div"}},apiVersion:3,supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}}},save({attributes:{tagName:e}}){const t=ct.useBlockProps.save(),{className:o}=t,n=o?.split(" ")||[],r=n?.filter((e=>"wp-block-comments"!==e)),a={...t,className:r.join(" ")};return(0,it.jsx)(e,{...a,children:(0,it.jsx)(ct.InnerBlocks.Content,{})})}}];const{HTMLElementControl:Kr}=jo(ct.privateApis);function Yr({attributes:{tagName:e},setAttributes:t}){return(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsx)(ct.InspectorControls,{group:"advanced",children:(0,it.jsx)(Kr,{tagName:e,onChange:e=>t({tagName:e}),options:[{label:(0,pt.__)("Default (<div>)"),value:"div"},{label:"<section>",value:"section"},{label:"<aside>",value:"aside"}]})})})}const Xr=()=>{const e=(0,xt.useInstanceId)(Xr);return(0,it.jsxs)("div",{className:"comment-respond",children:[(0,it.jsx)("h3",{className:"comment-reply-title",children:(0,pt.__)("Leave a Reply")}),(0,it.jsxs)("form",{noValidate:!0,className:"comment-form",onSubmit:e=>e.preventDefault(),children:[(0,it.jsxs)("p",{children:[(0,it.jsx)("label",{htmlFor:`comment-${e}`,children:(0,pt.__)("Comment")}),(0,it.jsx)("textarea",{id:`comment-${e}`,name:"comment",cols:"45",rows:"8",readOnly:!0})]}),(0,it.jsx)("p",{className:"form-submit wp-block-button",children:(0,it.jsx)("input",{name:"submit",type:"submit",className:Dt("wp-block-button__link",(0,ct.__experimentalGetElementClassName)("button")),label:(0,pt.__)("Post Comment"),value:(0,pt.__)("Post Comment"),"aria-disabled":"true"})})]})]})};var ea=({postId:e,postType:t})=>{const[o,n]=(0,_t.useEntityProp)("postType",t,"comment_status",e),r=void 0===t||void 0===e,{defaultCommentStatus:a}=(0,lt.useSelect)((e=>e(ct.store).getSettings().__experimentalDiscussionSettings)),i=(0,lt.useSelect)((e=>!!t&&!!e(_t.store).getPostType(t)?.supports.comments));if(!r&&"open"!==o){if("closed"===o){const e=[(0,it.jsx)(mt.Button,{__next40pxDefaultSize:!0,onClick:()=>n("open"),variant:"primary",children:(0,pt._x)("Enable comments","action that affects the current post")},"enableComments")];return(0,it.jsx)(ct.Warning,{actions:e,children:(0,pt.__)("Post Comments Form block: Comments are not enabled for this item.")})}if(!i)return(0,it.jsx)(ct.Warning,{children:(0,pt.sprintf)((0,pt.__)("Post Comments Form block: Comments are not enabled for this post type (%s)."),t)});if("open"!==a)return(0,it.jsx)(ct.Warning,{children:(0,pt.__)("Post Comments Form block: Comments are not enabled.")})}return(0,it.jsx)(Xr,{})};function ta({postType:e,postId:t}){let[o]=(0,_t.useEntityProp)("postType",e,"title",t);o=o||(0,pt.__)("Post Title");const{avatarURL:n}=(0,lt.useSelect)((e=>e(ct.store).getSettings().__experimentalDiscussionSettings));return(0,it.jsxs)("div",{className:"wp-block-comments__legacy-placeholder",inert:"true",children:[(0,it.jsx)("h3",{children:(0,pt.sprintf)((0,pt.__)("One response to %s"),o)}),(0,it.jsxs)("div",{className:"navigation",children:[(0,it.jsx)("div",{className:"alignleft",children:(0,it.jsxs)("a",{href:"#top",children:["« ",(0,pt.__)("Older Comments")]})}),(0,it.jsx)("div",{className:"alignright",children:(0,it.jsxs)("a",{href:"#top",children:[(0,pt.__)("Newer Comments")," »"]})})]}),(0,it.jsx)("ol",{className:"commentlist",children:(0,it.jsx)("li",{className:"comment even thread-even depth-1",children:(0,it.jsxs)("article",{className:"comment-body",children:[(0,it.jsxs)("footer",{className:"comment-meta",children:[(0,it.jsxs)("div",{className:"comment-author vcard",children:[(0,it.jsx)("img",{alt:(0,pt.__)("Commenter Avatar"),src:n,className:"avatar avatar-32 photo",height:"32",width:"32",loading:"lazy"}),(0,it.jsx)("b",{className:"fn",children:(0,it.jsx)("a",{href:"#top",className:"url",children:(0,pt.__)("A WordPress Commenter")})})," ",(0,it.jsxs)("span",{className:"says",children:[(0,pt.__)("says"),":"]})]}),(0,it.jsxs)("div",{className:"comment-metadata",children:[(0,it.jsx)("a",{href:"#top",children:(0,it.jsx)("time",{dateTime:"2000-01-01T00:00:00+00:00",children:(0,pt.__)("January 1, 2000 at 00:00 am")})})," ",(0,it.jsx)("span",{className:"edit-link",children:(0,it.jsx)("a",{className:"comment-edit-link",href:"#top",children:(0,pt.__)("Edit")})})]})]}),(0,it.jsx)("div",{className:"comment-content",children:(0,it.jsxs)("p",{children:[(0,pt.__)("Hi, this is a comment."),(0,it.jsx)("br",{}),(0,pt.__)("To get started with moderating, editing, and deleting comments, please visit the Comments screen in the dashboard."),(0,it.jsx)("br",{}),(0,gt.createInterpolateElement)((0,pt.__)("Commenter avatars come from <a>Gravatar</a>."),{a:(0,it.jsx)("a",{href:"https://gravatar.com/"})})]})}),(0,it.jsx)("div",{className:"reply",children:(0,it.jsx)("a",{className:"comment-reply-link",href:"#top","aria-label":(0,pt.__)("Reply to A WordPress Commenter"),children:(0,pt.__)("Reply")})})]})})}),(0,it.jsxs)("div",{className:"navigation",children:[(0,it.jsx)("div",{className:"alignleft",children:(0,it.jsxs)("a",{href:"#top",children:["« ",(0,pt.__)("Older Comments")]})}),(0,it.jsx)("div",{className:"alignright",children:(0,it.jsxs)("a",{href:"#top",children:[(0,pt.__)("Newer Comments")," »"]})})]}),(0,it.jsx)(ea,{postId:t,postType:e})]})}function oa({attributes:e,setAttributes:t,context:{postType:o,postId:n}}){const{textAlign:r}=e,a=[(0,it.jsx)(mt.Button,{__next40pxDefaultSize:!0,onClick:()=>{t({legacy:!1})},variant:"primary",children:(0,pt.__)("Switch to editable mode")},"convert")],i=(0,ct.useBlockProps)({className:Dt({[`has-text-align-${r}`]:r})});return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.BlockControls,{group:"block",children:(0,it.jsx)(ct.AlignmentControl,{value:r,onChange:e=>{t({textAlign:e})}})}),(0,it.jsxs)("div",{...i,children:[(0,it.jsx)(ct.Warning,{actions:a,children:(0,pt.__)("Comments block: You’re currently using the legacy version of the block. The following is just a placeholder - the final styling will likely look different. For a better representation and more customization options, switch the block to its editable mode.")}),(0,it.jsx)(ta,{postId:n,postType:o})]})]})}var na=[["core/comments-title"],["core/comment-template",{},[["core/columns",{},[["core/column",{width:"40px"},[["core/avatar",{size:40,style:{border:{radius:"20px"}}}]]],["core/column",{},[["core/comment-author-name",{fontSize:"small"}],["core/group",{layout:{type:"flex"},style:{spacing:{margin:{top:"0px",bottom:"0px"}}}},[["core/comment-date",{fontSize:"small"}],["core/comment-edit-link",{fontSize:"small"}]]],["core/comment-content"],["core/comment-reply-link",{fontSize:"small"}]]]]]]],["core/comments-pagination"],["core/post-comments-form"]];const{name:ra}=Jr,aa={icon:Zr,example:{},edit:function(e){const{attributes:t,setAttributes:o,clientId:n}=e,{tagName:r,legacy:a}=t,i=(0,ct.useBlockProps)(),s=(0,ct.useInnerBlocksProps)(i,{template:na});return a?(0,it.jsx)(oa,{...e}):(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(Yr,{attributes:t,setAttributes:o,clientId:n}),(0,it.jsx)(r,{...s})]})},save:function({attributes:{tagName:e,legacy:t}}){const o=ct.useBlockProps.save(),n=ct.useInnerBlocksProps.save(o);return t?null:(0,it.jsx)(e,{...n})},deprecated:Qr},ia=()=>jt({name:ra,metadata:Jr,settings:aa}),sa=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"__experimental":"fse","name":"core/comment-author-avatar","title":"Comment Author Avatar (deprecated)","category":"theme","ancestor":["core/comment-template"],"description":"This block is deprecated. Please use the Avatar block instead.","textdomain":"default","attributes":{"width":{"type":"number","default":96},"height":{"type":"number","default":96}},"usesContext":["commentId"],"supports":{"html":false,"inserter":false,"__experimentalBorder":{"radius":true,"width":true,"color":true,"style":true},"color":{"background":true,"text":false,"__experimentalDefaultControls":{"background":true}},"spacing":{"__experimentalSkipSerialization":true,"margin":true,"padding":true},"interactivity":{"clientNavigation":true}}}');const{name:la}=sa,ca={icon:to,edit:function({attributes:e,context:{commentId:t},setAttributes:o,isSelected:n}){const{height:r,width:a}=e,[i]=(0,_t.useEntityProp)("root","comment","author_avatar_urls",t),[s]=(0,_t.useEntityProp)("root","comment","author_name",t),l=i?Object.values(i):null,c=i?Object.keys(i):null,u=c?c[0]:24,d=c?c[c.length-1]:96,p=(0,ct.useBlockProps)(),m=(0,ct.__experimentalGetSpacingClassesAndStyles)(e),g=Math.floor(2.5*d),{avatarURL:h}=(0,lt.useSelect)((e=>{const{getSettings:t}=e(ct.store),{__experimentalDiscussionSettings:o}=t();return o})),_=(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsx)(mt.PanelBody,{title:(0,pt.__)("Settings"),children:(0,it.jsx)(mt.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,pt.__)("Image size"),onChange:e=>o({width:e,height:e}),min:u,max:g,initialPosition:a,value:a})})}),x=(0,it.jsx)(mt.ResizableBox,{size:{width:a,height:r},showHandle:n,onResizeStop:(e,t,n,i)=>{o({height:parseInt(r+i.height,10),width:parseInt(a+i.width,10)})},lockAspectRatio:!0,enable:{top:!1,right:!(0,pt.isRTL)(),bottom:!0,left:(0,pt.isRTL)()},minWidth:u,maxWidth:g,children:(0,it.jsx)("img",{src:l?l[l.length-1]:h,alt:`${s} ${(0,pt.__)("Avatar")}`,...p})});return(0,it.jsxs)(it.Fragment,{children:[_,(0,it.jsx)("div",{...m,children:x})]})}},ua=()=>jt({name:la,metadata:sa,settings:ca});var da=(0,it.jsxs)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,it.jsx)(St.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",fillRule:"evenodd",clipRule:"evenodd"}),(0,it.jsx)(St.Path,{d:"M15 15V15C15 13.8954 14.1046 13 13 13L11 13C9.89543 13 9 13.8954 9 15V15",fillRule:"evenodd",clipRule:"evenodd"}),(0,it.jsx)(St.Circle,{cx:"12",cy:"9",r:"2",fillRule:"evenodd",clipRule:"evenodd"})]});const pa=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/comment-author-name","title":"Comment Author Name","category":"theme","ancestor":["core/comment-template"],"description":"Displays the name of the author of the comment.","textdomain":"default","attributes":{"isLink":{"type":"boolean","default":true},"linkTarget":{"type":"string","default":"_self"},"textAlign":{"type":"string"}},"usesContext":["commentId"],"supports":{"html":false,"spacing":{"margin":true,"padding":true},"color":{"gradients":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true,"link":true}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true,"__experimentalDefaultControls":{"radius":true,"color":true,"width":true,"style":true}}},"style":"wp-block-comment-author-name"}');const ma={attributes:{isLink:{type:"boolean",default:!1},linkTarget:{type:"string",default:"_self"}},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:Yo,isEligible:({style:e})=>e?.typography?.fontFamily};var ga=[ma];const{name:ha}=pa,_a={icon:da,edit:function({attributes:{isLink:e,linkTarget:t,textAlign:o},context:{commentId:n},setAttributes:r}){const a=vt(),i=(0,ct.useBlockProps)({className:Dt({[`has-text-align-${o}`]:o})});let s=(0,lt.useSelect)((e=>{const{getEntityRecord:t}=e(_t.store),o=t("root","comment",n),r=o?.author_name;if(o&&!r){const e=t("root","user",o.author);return e?.name??(0,pt.__)("Anonymous")}return r??""}),[n]);const l=(0,it.jsx)(ct.BlockControls,{group:"block",children:(0,it.jsx)(ct.AlignmentControl,{value:o,onChange:e=>r({textAlign:e})})}),c=(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{r({isLink:!0,linkTarget:"_self"})},dropdownMenuProps:a,children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Link to authors URL"),isShownByDefault:!0,hasValue:()=>!e,onDeselect:()=>r({isLink:!0}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Link to authors URL"),onChange:()=>r({isLink:!e}),checked:e})}),e&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>"_self"!==t,onDeselect:()=>r({linkTarget:"_self"}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Open in new tab"),onChange:e=>r({linkTarget:e?"_blank":"_self"}),checked:"_blank"===t})})]})});n&&s||(s=(0,pt._x)("Comment Author","block title"));const u=e?(0,it.jsx)("a",{href:"#comment-author-pseudo-link",onClick:e=>e.preventDefault(),children:s}):s;return(0,it.jsxs)(it.Fragment,{children:[c,l,(0,it.jsx)("div",{...i,children:u})]})},deprecated:ga,example:{}},xa=()=>jt({name:ha,metadata:pa,settings:_a});var ba=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M6.68822 16.625L5.5 17.8145L5.5 5.5L18.5 5.5L18.5 16.625L6.68822 16.625ZM7.31 18.125L19 18.125C19.5523 18.125 20 17.6773 20 17.125L20 5C20 4.44772 19.5523 4 19 4H5C4.44772 4 4 4.44772 4 5V19.5247C4 19.8173 4.16123 20.086 4.41935 20.2237C4.72711 20.3878 5.10601 20.3313 5.35252 20.0845L7.31 18.125ZM16 9.99997H8V8.49997H16V9.99997ZM8 14H13V12.5H8V14Z"})});const fa=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/comment-content","title":"Comment Content","category":"theme","ancestor":["core/comment-template"],"description":"Displays the contents of a comment.","textdomain":"default","usesContext":["commentId"],"attributes":{"textAlign":{"type":"string"}},"supports":{"color":{"gradients":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true,"__experimentalDefaultControls":{"radius":true,"color":true,"width":true,"style":true}},"spacing":{"padding":["horizontal","vertical"],"__experimentalDefaultControls":{"padding":true}},"html":false},"style":"wp-block-comment-content"}');const{name:ya}=fa,va={icon:ba,edit:function({setAttributes:e,attributes:{textAlign:t},context:{commentId:o}}){const n=(0,ct.useBlockProps)({className:Dt({[`has-text-align-${t}`]:t})}),[r]=(0,_t.useEntityProp)("root","comment","content",o),a=(0,it.jsx)(ct.BlockControls,{group:"block",children:(0,it.jsx)(ct.AlignmentControl,{value:t,onChange:t=>e({textAlign:t})})});return o&&r?(0,it.jsxs)(it.Fragment,{children:[a,(0,it.jsx)("div",{...n,children:(0,it.jsx)(mt.Disabled,{children:(0,it.jsx)(gt.RawHTML,{children:r.rendered},"html")})})]}):(0,it.jsxs)(it.Fragment,{children:[a,(0,it.jsx)("div",{...n,children:(0,it.jsx)("p",{children:(0,pt._x)("Comment Content","block title")})})]})},example:{}},ka=()=>jt({name:ya,metadata:fa,settings:va});var wa=(0,it.jsxs)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,it.jsx)(St.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"}),(0,it.jsx)(St.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"})]});const Ca=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/comment-date","title":"Comment Date","category":"theme","ancestor":["core/comment-template"],"description":"Displays the date on which the comment was posted.","textdomain":"default","attributes":{"format":{"type":"string"},"isLink":{"type":"boolean","default":true}},"usesContext":["commentId"],"supports":{"html":false,"color":{"gradients":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true,"link":true}},"spacing":{"margin":true,"padding":true},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true,"__experimentalDefaultControls":{"radius":true,"color":true,"width":true,"style":true}}},"style":"wp-block-comment-date"}'),ja=window.wp.date;const Sa={attributes:{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:Yo,isEligible:({style:e})=>e?.typography?.fontFamily};var Ba=[Sa];const{name:Ta}=Ca,Na={icon:wa,edit:function({attributes:{format:e,isLink:t},context:{commentId:o},setAttributes:n}){const r=(0,ct.useBlockProps)(),a=vt();let[i]=(0,_t.useEntityProp)("root","comment","date",o);const[s=(0,ja.getSettings)().formats.date]=(0,_t.useEntityProp)("root","site","date_format"),l=(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{n({format:void 0,isLink:!0})},dropdownMenuProps:a,children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Date format"),hasValue:()=>void 0!==e,onDeselect:()=>n({format:void 0}),isShownByDefault:!0,children:(0,it.jsx)(ct.__experimentalDateFormatPicker,{format:e,defaultFormat:s,onChange:e=>n({format:e})})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Link to comment"),hasValue:()=>!t,onDeselect:()=>n({isLink:!0}),isShownByDefault:!0,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Link to comment"),onChange:()=>n({isLink:!t}),checked:t})})]})});o&&i||(i=(0,pt._x)("Comment Date","block title"));let c=i instanceof Date?(0,it.jsx)("time",{dateTime:(0,ja.dateI18n)("c",i),children:"human-diff"===e?(0,ja.humanTimeDiff)(i):(0,ja.dateI18n)(e||s,i)}):(0,it.jsx)("time",{children:i});return t&&(c=(0,it.jsx)("a",{href:"#comment-date-pseudo-link",onClick:e=>e.preventDefault(),children:c})),(0,it.jsxs)(it.Fragment,{children:[l,(0,it.jsx)("div",{...r,children:c})]})},deprecated:Ba,example:{}},Pa=()=>jt({name:Ta,metadata:Ca,settings:Na});var Ia=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.Path,{d:"m6.249 11.065.44-.44h3.186l-1.5 1.5H7.31l-1.957 1.96A.792.792 0 0 1 4 13.524V5a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v1.5L12.5 8V5.5h-7v6.315l.749-.75ZM20 19.75H7v-1.5h13v1.5Zm0-12.653-8.967 9.064L8 17l.867-2.935L17.833 5 20 7.097Z"})});const Da=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/comment-edit-link","title":"Comment Edit Link","category":"theme","ancestor":["core/comment-template"],"description":"Displays a link to edit the comment in the WordPress Dashboard. This link is only visible to users with the edit comment capability.","textdomain":"default","usesContext":["commentId"],"attributes":{"linkTarget":{"type":"string","default":"_self"},"textAlign":{"type":"string"}},"supports":{"html":false,"color":{"link":true,"gradients":true,"text":false,"__experimentalDefaultControls":{"background":true,"link":true}},"spacing":{"margin":true,"padding":true,"__experimentalDefaultControls":{"margin":false,"padding":false}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true}},"style":"wp-block-comment-edit-link"}');const{name:Ma}=Da,za={icon:Ia,edit:function({attributes:{linkTarget:e,textAlign:t},setAttributes:o}){const n=(0,ct.useBlockProps)({className:Dt({[`has-text-align-${t}`]:t})}),r=vt(),a=(0,it.jsx)(ct.BlockControls,{group:"block",children:(0,it.jsx)(ct.AlignmentControl,{value:t,onChange:e=>o({textAlign:e})})}),i=(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsx)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{o({linkTarget:"_self"})},dropdownMenuProps:r,children:(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>"_blank"===e,onDeselect:()=>o({linkTarget:"_self"}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Open in new tab"),onChange:e=>o({linkTarget:e?"_blank":"_self"}),checked:"_blank"===e})})})});return(0,it.jsxs)(it.Fragment,{children:[a,i,(0,it.jsx)("div",{...n,children:(0,it.jsx)("a",{href:"#edit-comment-pseudo-link",onClick:e=>e.preventDefault(),children:(0,pt.__)("Edit")})})]})},example:{}},Aa=()=>jt({name:Ma,metadata:Da,settings:za});var La=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.Path,{d:"M6.68822 10.625L6.24878 11.0649L5.5 11.8145L5.5 5.5L12.5 5.5V8L14 6.5V5C14 4.44772 13.5523 4 13 4H5C4.44772 4 4 4.44771 4 5V13.5247C4 13.8173 4.16123 14.086 4.41935 14.2237C4.72711 14.3878 5.10601 14.3313 5.35252 14.0845L7.31 12.125H8.375L9.875 10.625H7.31H6.68822ZM14.5605 10.4983L11.6701 13.75H16.9975C17.9963 13.75 18.7796 14.1104 19.3553 14.7048C19.9095 15.2771 20.2299 16.0224 20.4224 16.7443C20.7645 18.0276 20.7543 19.4618 20.7487 20.2544C20.7481 20.345 20.7475 20.4272 20.7475 20.4999L19.2475 20.5001C19.2475 20.4191 19.248 20.3319 19.2484 20.2394V20.2394C19.2526 19.4274 19.259 18.2035 18.973 17.1307C18.8156 16.5401 18.586 16.0666 18.2778 15.7483C17.9909 15.4521 17.5991 15.25 16.9975 15.25H11.8106L14.5303 17.9697L13.4696 19.0303L8.96956 14.5303L13.4394 9.50171L14.5605 10.4983Z"})});const Ha=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/comment-reply-link","title":"Comment Reply Link","category":"theme","ancestor":["core/comment-template"],"description":"Displays a link to reply to a comment.","textdomain":"default","usesContext":["commentId"],"attributes":{"textAlign":{"type":"string"}},"supports":{"color":{"gradients":true,"link":true,"text":false,"__experimentalDefaultControls":{"background":true,"link":true}},"spacing":{"margin":true,"padding":true,"__experimentalDefaultControls":{"margin":false,"padding":false}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true},"html":false},"style":"wp-block-comment-reply-link"}');var Ra=function({setAttributes:e,attributes:{textAlign:t}}){const o=(0,ct.useBlockProps)({className:Dt({[`has-text-align-${t}`]:t})}),n=(0,it.jsx)(ct.BlockControls,{group:"block",children:(0,it.jsx)(ct.AlignmentControl,{value:t,onChange:t=>e({textAlign:t})})});return(0,it.jsxs)(it.Fragment,{children:[n,(0,it.jsx)("div",{...o,children:(0,it.jsx)("a",{href:"#comment-reply-pseudo-link",onClick:e=>e.preventDefault(),children:(0,pt.__)("Reply")})})]})};const{name:Va}=Ha,Fa={edit:Ra,icon:La,example:{}},Ea=()=>jt({name:Va,metadata:Ha,settings:Fa});var Oa=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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"})});const Ga=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/comment-template","title":"Comment Template","category":"design","parent":["core/comments"],"description":"Contains the block elements used to display a comment, like the title, date, author, avatar and more.","textdomain":"default","usesContext":["postId"],"supports":{"align":true,"html":false,"reusable":false,"spacing":{"margin":true,"padding":true},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true,"__experimentalDefaultControls":{"radius":true,"color":true,"width":true,"style":true}}},"style":"wp-block-comment-template"}'),$a=window.wp.apiFetch;var Ua=r.n($a);const qa=({defaultPage:e,postId:t,perPage:o,queryArgs:n})=>{const[r,a]=(0,gt.useState)({}),i=`${t}_${o}`,s=r[i]||0;return(0,gt.useEffect)((()=>{s||"newest"!==e||Ua()({path:(0,no.addQueryArgs)("/wp/v2/comments",{...n,post:t,per_page:o,_fields:"id"}),method:"HEAD",parse:!1}).then((e=>{const t=parseInt(e.headers.get("X-WP-TotalPages"));a({...r,[i]:t<=1?1:t})})).catch((()=>{a({...r,[i]:1})}))}),[e,t,o,a]),"newest"===e?s:1},Wa=[["core/avatar"],["core/comment-author-name"],["core/comment-date"],["core/comment-content"],["core/comment-reply-link"],["core/comment-edit-link"]];function Za({comment:e,activeCommentId:t,setActiveCommentId:o,firstCommentId:n,blocks:r}){const{children:a,...i}=(0,ct.useInnerBlocksProps)({},{template:Wa});return(0,it.jsxs)("li",{...i,children:[e.commentId===(t||n)?a:null,(0,it.jsx)(Ja,{blocks:r,commentId:e.commentId,setActiveCommentId:o,isHidden:e.commentId===(t||n)}),e?.children?.length>0?(0,it.jsx)(Qa,{comments:e.children,activeCommentId:t,setActiveCommentId:o,blocks:r,firstCommentId:n}):null]})}const Ja=(0,gt.memo)((({blocks:e,commentId:t,setActiveCommentId:o,isHidden:n})=>{const r=(0,ct.__experimentalUseBlockPreview)({blocks:e}),a=()=>{o(t)},i={display:n?"none":void 0};return(0,it.jsx)("div",{...r,tabIndex:0,role:"button",style:i,onClick:a,onKeyPress:a})})),Qa=({comments:e,blockProps:t,activeCommentId:o,setActiveCommentId:n,blocks:r,firstCommentId:a})=>(0,it.jsx)("ol",{...t,children:e&&e.map((({commentId:e,...t},i)=>(0,it.jsx)(ct.BlockContextProvider,{value:{commentId:e<0?null:e},children:(0,it.jsx)(Za,{comment:{commentId:e,...t},activeCommentId:o,setActiveCommentId:n,blocks:r,firstCommentId:a})},t.commentId||i)))});const{name:Ka}=Ga,Ya={icon:Oa,edit:function({clientId:e,context:{postId:t}}){const o=(0,ct.useBlockProps)(),[n,r]=(0,gt.useState)(),{commentOrder:a,threadCommentsDepth:i,threadComments:s,commentsPerPage:l,pageComments:c}=(0,lt.useSelect)((e=>{const{getSettings:t}=e(ct.store);return t().__experimentalDiscussionSettings})),u=(({postId:e})=>{const t={status:"approve",order:"asc",context:"embed",parent:0,_embed:"children"},{pageComments:o,commentsPerPage:n,defaultCommentsPage:r}=(0,lt.useSelect)((e=>{const{getSettings:t}=e(ct.store),{__experimentalDiscussionSettings:o}=t();return o})),a=o?Math.min(n,100):100,i=qa({defaultPage:r,postId:e,perPage:a,queryArgs:t});return(0,gt.useMemo)((()=>i?{...t,post:e,per_page:a,page:i}:null),[e,a,i])})({postId:t}),{topLevelComments:d,blocks:p}=(0,lt.useSelect)((t=>{const{getEntityRecords:o}=t(_t.store),{getBlocks:n}=t(ct.store);return{topLevelComments:u?o("root","comment",u):null,blocks:n(e)}}),[e,u]);let m=(e=>(0,gt.useMemo)((()=>e?.map((({id:e,_embedded:t})=>{const[o]=t?.children||[[]];return{commentId:e,children:o.map((e=>({commentId:e.id})))}}))),[e]))("desc"===a&&d?[...d].reverse():d);return d?(t||(m=(({perPage:e,pageComments:t,threadComments:o,threadCommentsDepth:n})=>{const r=o?Math.min(n,3):1,a=e=>e<r?[{commentId:-(e+3),children:a(e+1)}]:[],i=[{commentId:-1,children:a(1)}];return(!t||e>=2)&&r<3&&i.push({commentId:-2,children:[]}),(!t||e>=3)&&r<2&&i.push({commentId:-3,children:[]}),i})({perPage:l,pageComments:c,threadComments:s,threadCommentsDepth:i})),m.length?(0,it.jsx)(Qa,{comments:m,blockProps:o,blocks:p,activeCommentId:n,setActiveCommentId:r,firstCommentId:m[0]?.commentId}):(0,it.jsx)("p",{...o,children:(0,pt.__)("No results found.")})):(0,it.jsx)("p",{...o,children:(0,it.jsx)(mt.Spinner,{})})},save:function(){return(0,it.jsx)(ct.InnerBlocks.Content,{})}},Xa=()=>jt({name:Ka,metadata:Ga,settings:Ya});var ei=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M16 10.5v3h3v-3h-3zm-5 3h3v-3h-3v3zM7 9l-3 3 3 3 1-1-2-2 2-2-1-1z"})});const ti=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/comments-pagination-previous","title":"Comments Previous Page","category":"theme","parent":["core/comments-pagination"],"description":"Displays the previous comment\'s page link.","textdomain":"default","attributes":{"label":{"type":"string"}},"usesContext":["postId","comments/paginationArrow"],"supports":{"reusable":false,"html":false,"color":{"gradients":true,"text":false,"__experimentalDefaultControls":{"background":true}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true}}}'),oi={none:"",arrow:"←",chevron:"«"};const{name:ni}=ti,ri={icon:ei,edit:function({attributes:{label:e},setAttributes:t,context:{"comments/paginationArrow":o}}){const n=oi[o];return(0,it.jsxs)("a",{href:"#comments-pagination-previous-pseudo-link",onClick:e=>e.preventDefault(),...(0,ct.useBlockProps)(),children:[n&&(0,it.jsx)("span",{className:`wp-block-comments-pagination-previous-arrow is-arrow-${o}`,children:n}),(0,it.jsx)(ct.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":(0,pt.__)("Older comments page link"),placeholder:(0,pt.__)("Older Comments"),value:e,onChange:e=>t({label:e})})]})},example:{attributes:{label:(0,pt.__)("Older Comments")}}},ai=()=>jt({name:ni,metadata:ti,settings:ri});var ii=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M4 13.5h6v-3H4v3zm8 0h3v-3h-3v3zm5-3v3h3v-3h-3z"})});const si=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/comments-pagination","title":"Comments Pagination","category":"theme","parent":["core/comments"],"allowedBlocks":["core/comments-pagination-previous","core/comments-pagination-numbers","core/comments-pagination-next"],"description":"Displays a paginated navigation to next/previous set of comments, when applicable.","textdomain":"default","attributes":{"paginationArrow":{"type":"string","default":"none"}},"example":{"attributes":{"paginationArrow":"none"}},"providesContext":{"comments/paginationArrow":"paginationArrow"},"supports":{"align":true,"reusable":false,"html":false,"color":{"gradients":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true,"link":true}},"layout":{"allowSwitching":false,"allowInheriting":false,"default":{"type":"flex"}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true}},"editorStyle":"wp-block-comments-pagination-editor","style":"wp-block-comments-pagination"}');function li({value:e,onChange:t}){return(0,it.jsxs)(mt.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("Arrow"),value:e,onChange:t,help:(0,pt.__)("A decorative arrow appended to the next and previous comments link."),isBlock:!0,children:[(0,it.jsx)(mt.__experimentalToggleGroupControlOption,{value:"none",label:(0,pt._x)("None","Arrow option for Comments Pagination Next/Previous blocks")}),(0,it.jsx)(mt.__experimentalToggleGroupControlOption,{value:"arrow",label:(0,pt._x)("Arrow","Arrow option for Comments Pagination Next/Previous blocks")}),(0,it.jsx)(mt.__experimentalToggleGroupControlOption,{value:"chevron",label:(0,pt._x)("Chevron","Arrow option for Comments Pagination Next/Previous blocks")})]})}const ci=[["core/comments-pagination-previous"],["core/comments-pagination-numbers"],["core/comments-pagination-next"]];const{name:ui}=si,di={icon:ii,edit:function({attributes:{paginationArrow:e},setAttributes:t,clientId:o}){const n=(0,lt.useSelect)((e=>{const{getBlocks:t}=e(ct.store),n=t(o);return n?.find((e=>["core/comments-pagination-previous","core/comments-pagination-next"].includes(e.name)))}),[]),r=(0,ct.useBlockProps)(),a=vt(),i=(0,ct.useInnerBlocksProps)(r,{template:ci});return(0,lt.useSelect)((e=>{const{getSettings:t}=e(ct.store),{__experimentalDiscussionSettings:o}=t();return o?.pageComments}),[])?(0,it.jsxs)(it.Fragment,{children:[n&&(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsx)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),dropdownMenuProps:a,resetAll:()=>t({paginationArrow:"none"}),children:(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Arrow"),hasValue:()=>"none"!==e,onDeselect:()=>t({paginationArrow:"none"}),isShownByDefault:!0,children:(0,it.jsx)(li,{value:e,onChange:e=>{t({paginationArrow:e})}})})})}),(0,it.jsx)("div",{...i})]}):(0,it.jsx)(ct.Warning,{children:(0,pt.__)("Comments Pagination block: paging comments is disabled in the Discussion Settings")})},save:function(){return(0,it.jsx)(ct.InnerBlocks.Content,{})}},pi=()=>jt({name:ui,metadata:si,settings:di});var mi=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M5 13.5h3v-3H5v3zm5 0h3v-3h-3v3zM17 9l-1 1 2 2-2 2 1 1 3-3-3-3z"})});const gi=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/comments-pagination-next","title":"Comments Next Page","category":"theme","parent":["core/comments-pagination"],"description":"Displays the next comment\'s page link.","textdomain":"default","attributes":{"label":{"type":"string"}},"usesContext":["postId","comments/paginationArrow"],"supports":{"reusable":false,"html":false,"color":{"gradients":true,"text":false,"__experimentalDefaultControls":{"background":true}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true}}}'),hi={none:"",arrow:"→",chevron:"»"};const{name:_i}=gi,xi={icon:mi,edit:function({attributes:{label:e},setAttributes:t,context:{"comments/paginationArrow":o}}){const n=hi[o];return(0,it.jsxs)("a",{href:"#comments-pagination-next-pseudo-link",onClick:e=>e.preventDefault(),...(0,ct.useBlockProps)(),children:[(0,it.jsx)(ct.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":(0,pt.__)("Newer comments page link"),placeholder:(0,pt.__)("Newer Comments"),value:e,onChange:e=>t({label:e})}),n&&(0,it.jsx)("span",{className:`wp-block-comments-pagination-next-arrow is-arrow-${o}`,children:n})]})},example:{attributes:{label:(0,pt.__)("Newer Comments")}}},bi=()=>jt({name:_i,metadata:gi,settings:xi});var fi=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M4 13.5h6v-3H4v3zm8.2-2.5.8-.3V14h1V9.3l-2.2.7.4 1zm7.1-1.2c-.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.5h2.7v-1h-.9c.3-.6.8-1.4.9-2.1 0-.3-.1-.8-.3-1.1z"})});const yi=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/comments-pagination-numbers","title":"Comments Page Numbers","category":"theme","parent":["core/comments-pagination"],"description":"Displays a list of page numbers for comments pagination.","textdomain":"default","usesContext":["postId"],"supports":{"reusable":false,"html":false,"color":{"gradients":true,"text":false,"__experimentalDefaultControls":{"background":true}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true}}}'),vi=({content:e,tag:t="a",extraClass:o=""})=>"a"===t?(0,it.jsx)(t,{className:`page-numbers ${o}`,href:"#comments-pagination-numbers-pseudo-link",onClick:e=>e.preventDefault(),children:e}):(0,it.jsx)(t,{className:`page-numbers ${o}`,children:e});const{name:ki}=yi,wi={icon:fi,edit:function(){return(0,it.jsxs)("div",{...(0,ct.useBlockProps)(),children:[(0,it.jsx)(vi,{content:"1"}),(0,it.jsx)(vi,{content:"2"}),(0,it.jsx)(vi,{content:"3",tag:"span",extraClass:"current"}),(0,it.jsx)(vi,{content:"4"}),(0,it.jsx)(vi,{content:"5"}),(0,it.jsx)(vi,{content:"...",tag:"span",extraClass:"dots"}),(0,it.jsx)(vi,{content:"8"})]})},example:{}},Ci=()=>jt({name:ki,metadata:yi,settings:wi});var ji=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"m4 5.5h2v6.5h1.5v-6.5h2v-1.5h-5.5zm16 10.5h-16v-1.5h16zm-7 4h-9v-1.5h9z"})});const Si=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/comments-title","title":"Comments Title","category":"theme","ancestor":["core/comments"],"description":"Displays a title with the number of comments.","textdomain":"default","usesContext":["postId","postType"],"attributes":{"textAlign":{"type":"string"},"showPostTitle":{"type":"boolean","default":true},"showCommentsCount":{"type":"boolean","default":true},"level":{"type":"number","default":2},"levelOptions":{"type":"array"}},"supports":{"anchor":false,"align":true,"html":false,"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true},"color":{"gradients":true,"__experimentalDefaultControls":{"background":true,"text":true}},"spacing":{"margin":true,"padding":true},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true,"__experimentalFontFamily":true,"__experimentalFontStyle":true,"__experimentalFontWeight":true}},"interactivity":{"clientNavigation":true}}}');const{attributes:Bi,supports:Ti}=Si;var Ni=[{attributes:{...Bi,singleCommentLabel:{type:"string"},multipleCommentsLabel:{type:"string"}},supports:Ti,migrate:e=>{const{singleCommentLabel:t,multipleCommentsLabel:o,...n}=e;return n},isEligible:({multipleCommentsLabel:e,singleCommentLabel:t})=>e||t,save:()=>null}];const{name:Pi}=Si,Ii={icon:ji,edit:function({attributes:{textAlign:e,showPostTitle:t,showCommentsCount:o,level:n,levelOptions:r},setAttributes:a,context:{postType:i,postId:s}}){const l="h"+n,[c,u]=(0,gt.useState)(),[d]=(0,_t.useEntityProp)("postType",i,"title",s),p=void 0===s,m=(0,ct.useBlockProps)({className:Dt({[`has-text-align-${e}`]:e})}),{threadCommentsDepth:g,threadComments:h,commentsPerPage:_,pageComments:x}=(0,lt.useSelect)((e=>{const{getSettings:t}=e(ct.store);return t().__experimentalDiscussionSettings})),b=vt();(0,gt.useEffect)((()=>{if(p){const e=h?Math.min(g,3)-1:0,t=x?_:3,o=parseInt(e)+parseInt(t);return void u(Math.min(o,3))}const e=s;Ua()({path:(0,no.addQueryArgs)("/wp/v2/comments",{post:s,_fields:"id"}),method:"HEAD",parse:!1}).then((t=>{e===s&&u(parseInt(t.headers.get("X-WP-Total")))})).catch((()=>{u(0)}))}),[s]);const f=(0,it.jsxs)(ct.BlockControls,{group:"block",children:[(0,it.jsx)(ct.AlignmentControl,{value:e,onChange:e=>a({textAlign:e})}),(0,it.jsx)(ct.HeadingLevelDropdown,{value:n,options:r,onChange:e=>a({level:e})})]}),y=(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{a({showPostTitle:!0,showCommentsCount:!0})},dropdownMenuProps:b,children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Show post title"),isShownByDefault:!0,hasValue:()=>!t,onDeselect:()=>a({showPostTitle:!0}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Show post title"),checked:t,onChange:e=>a({showPostTitle:e})})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Show comments count"),isShownByDefault:!0,hasValue:()=>!o,onDeselect:()=>a({showCommentsCount:!0}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Show comments count"),checked:o,onChange:e=>a({showCommentsCount:e})})})]})}),v=p?(0,pt.__)("“Post Title”"):`"${d}"`;let k;return k=o&&void 0!==c?t?1===c?(0,pt.sprintf)((0,pt.__)("One response to %s"),v):(0,pt.sprintf)((0,pt._n)("%1$s response to %2$s","%1$s responses to %2$s",c),c,v):1===c?(0,pt.__)("One response"):(0,pt.sprintf)((0,pt._n)("%s response","%s responses",c),c):t?1===c?(0,pt.sprintf)((0,pt.__)("Response to %s"),v):(0,pt.sprintf)((0,pt.__)("Responses to %s"),v):1===c?(0,pt.__)("Response"):(0,pt.__)("Responses"),(0,it.jsxs)(it.Fragment,{children:[f,y,(0,it.jsx)(l,{...m,children:k})]})},deprecated:Ni,example:{}},Di=()=>jt({name:Pi,metadata:Si,settings:Ii});var Mi=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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 zi={"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"},Ai="image",Li="video",Hi={x:.5,y:.5},Ri=["image","video"];function Vi({x:e,y:t}=Hi){return`${Math.round(100*e)}% ${Math.round(100*t)}%`}function Fi(e){return 50===e||void 0===e?null:"has-background-dim-"+10*Math.round(e/10)}function Ei(e){return!e||"center center"===e||"center"===e}function Oi(e){return Ei(e)?"":zi[e]}function Gi(e){return e?{backgroundImage:`url(${e})`}:{}}function $i(e){return 0!==e&&50!==e&&e?"has-background-dim-"+10*Math.round(e/10):null}function Ui(e){return{...e,dimRatio:e.url?e.dimRatio:100}}function qi(e){return e.tagName||(e={...e,tagName:"div"}),{...e}}const Wi={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"}},Zi={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]}},Ji={...Zi,useFeaturedImage:{type:"boolean",default:!1},tagName:{type:"string",default:"div"}},Qi={...Ji,isUserOverlayColor:{type:"boolean"},sizeSlug:{type:"string"},alt:{type:"string",default:""}},Ki={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}},Yi={...Ki,spacing:{padding:!0,margin:["top","bottom"],blockGap:!0,__experimentalDefaultControls:{padding:!0,blockGap:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},color:{__experimentalDuotone:"> .wp-block-cover__image-background, > .wp-block-cover__video-background",heading:!0,text:!0,background:!1,__experimentalSkipSerialization:["gradients"],enableContrastChecker:!1},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},layout:{allowJustification:!1}},Xi={attributes:Qi,supports:{...Yi,shadow:!0,dimensions:{aspectRatio:!0},interactivity:{clientNavigation:!0}},save({attributes:e}){const{backgroundType:t,gradient:o,contentPosition:n,customGradient:r,customOverlayColor:a,dimRatio:i,focalPoint:s,useFeaturedImage:l,hasParallax:c,isDark:u,isRepeated:d,overlayColor:p,url:m,alt:g,id:h,minHeight:_,minHeightUnit:x,tagName:b,sizeSlug:f}=e,y=(0,ct.getColorClassName)("background-color",p),v=(0,ct.__experimentalGetGradientClass)(o),k=Ai===t,w=Li===t,C=!(c||d),j={minHeight:(_&&x?`${_}${x}`:_)||void 0},S={backgroundColor:y?void 0:a,background:r||void 0},B=s&&C?Vi(s):void 0,T=m?`url(${m})`:void 0,N=Vi(s),P=Dt({"is-light":!u,"has-parallax":c,"is-repeated":d,"has-custom-content-position":!Ei(n)},Oi(n)),I=Dt("wp-block-cover__image-background",h?`wp-image-${h}`:null,{[`size-${f}`]:f,"has-parallax":c,"is-repeated":d}),D=o||r;return(0,it.jsxs)(b,{...ct.useBlockProps.save({className:P,style:j}),children:[(0,it.jsx)("span",{"aria-hidden":"true",className:Dt("wp-block-cover__background",y,Fi(i),{"has-background-dim":void 0!==i,"wp-block-cover__gradient-background":m&&D&&0!==i,"has-background-gradient":D,[v]:v}),style:S}),!l&&k&&m&&(C?(0,it.jsx)("img",{className:I,alt:g,src:m,style:{objectPosition:B},"data-object-fit":"cover","data-object-position":B}):(0,it.jsx)("div",{role:g?"img":void 0,"aria-label":g||void 0,className:I,style:{backgroundPosition:N,backgroundImage:T}})),w&&m&&(0,it.jsx)("video",{className:Dt("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:m,style:{objectPosition:B},"data-object-fit":"cover","data-object-position":B}),(0,it.jsx)("div",{...ct.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})}},es={attributes:Ji,supports:Yi,save({attributes:e}){const{backgroundType:t,gradient:o,contentPosition:n,customGradient:r,customOverlayColor:a,dimRatio:i,focalPoint:s,useFeaturedImage:l,hasParallax:c,isDark:u,isRepeated:d,overlayColor:p,url:m,alt:g,id:h,minHeight:_,minHeightUnit:x,tagName:b}=e,f=(0,ct.getColorClassName)("background-color",p),y=(0,ct.__experimentalGetGradientClass)(o),v=Ai===t,k=Li===t,w=!(c||d),C={minHeight:(_&&x?`${_}${x}`:_)||void 0},j={backgroundColor:f?void 0:a,background:r||void 0},S=s&&w?Vi(s):void 0,B=m?`url(${m})`:void 0,T=Vi(s),N=Dt({"is-light":!u,"has-parallax":c,"is-repeated":d,"has-custom-content-position":!Ei(n)},Oi(n)),P=Dt("wp-block-cover__image-background",h?`wp-image-${h}`:null,{"has-parallax":c,"is-repeated":d}),I=o||r;return(0,it.jsxs)(b,{...ct.useBlockProps.save({className:N,style:C}),children:[(0,it.jsx)("span",{"aria-hidden":"true",className:Dt("wp-block-cover__background",f,Fi(i),{"has-background-dim":void 0!==i,"wp-block-cover__gradient-background":m&&I&&0!==i,"has-background-gradient":I,[y]:y}),style:j}),!l&&v&&m&&(w?(0,it.jsx)("img",{className:P,alt:g,src:m,style:{objectPosition:S},"data-object-fit":"cover","data-object-position":S}):(0,it.jsx)("div",{role:"img",className:P,style:{backgroundPosition:T,backgroundImage:B}})),k&&m&&(0,it.jsx)("video",{className:Dt("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:m,style:{objectPosition:S},"data-object-fit":"cover","data-object-position":S}),(0,it.jsx)("div",{...ct.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})}},ts={attributes:Ji,supports:Yi,isEligible:e=>(void 0!==e.customOverlayColor||void 0!==e.overlayColor)&&void 0===e.isUserOverlayColor,migrate:e=>({...e,isUserOverlayColor:!0}),save({attributes:e}){const{backgroundType:t,gradient:o,contentPosition:n,customGradient:r,customOverlayColor:a,dimRatio:i,focalPoint:s,useFeaturedImage:l,hasParallax:c,isDark:u,isRepeated:d,overlayColor:p,url:m,alt:g,id:h,minHeight:_,minHeightUnit:x,tagName:b}=e,f=(0,ct.getColorClassName)("background-color",p),y=(0,ct.__experimentalGetGradientClass)(o),v=Ai===t,k=Li===t,w=!(c||d),C={minHeight:(_&&x?`${_}${x}`:_)||void 0},j={backgroundColor:f?void 0:a,background:r||void 0},S=s&&w?Vi(s):void 0,B=m?`url(${m})`:void 0,T=Vi(s),N=Dt({"is-light":!u,"has-parallax":c,"is-repeated":d,"has-custom-content-position":!Ei(n)},Oi(n)),P=Dt("wp-block-cover__image-background",h?`wp-image-${h}`:null,{"has-parallax":c,"is-repeated":d}),I=o||r;return(0,it.jsxs)(b,{...ct.useBlockProps.save({className:N,style:C}),children:[(0,it.jsx)("span",{"aria-hidden":"true",className:Dt("wp-block-cover__background",f,Fi(i),{"has-background-dim":void 0!==i,"wp-block-cover__gradient-background":m&&I&&0!==i,"has-background-gradient":I,[y]:y}),style:j}),!l&&v&&m&&(w?(0,it.jsx)("img",{className:P,alt:g,src:m,style:{objectPosition:S},"data-object-fit":"cover","data-object-position":S}):(0,it.jsx)("div",{role:"img",className:P,style:{backgroundPosition:T,backgroundImage:B}})),k&&m&&(0,it.jsx)("video",{className:Dt("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:m,style:{objectPosition:S},"data-object-fit":"cover","data-object-position":S}),(0,it.jsx)("div",{...ct.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})}},os={attributes:Zi,supports:Ki,save({attributes:e}){const{backgroundType:t,gradient:o,contentPosition:n,customGradient:r,customOverlayColor:a,dimRatio:i,focalPoint:s,useFeaturedImage:l,hasParallax:c,isDark:u,isRepeated:d,overlayColor:p,url:m,alt:g,id:h,minHeight:_,minHeightUnit:x}=e,b=(0,ct.getColorClassName)("background-color",p),f=(0,ct.__experimentalGetGradientClass)(o),y=Ai===t,v=Li===t,k=!(c||d),w={minHeight:(_&&x?`${_}${x}`:_)||void 0},C={backgroundColor:b?void 0:a,background:r||void 0},j=s&&k?Vi(s):void 0,S=m?`url(${m})`:void 0,B=Vi(s),T=Dt({"is-light":!u,"has-parallax":c,"is-repeated":d,"has-custom-content-position":!Ei(n)},Oi(n)),N=Dt("wp-block-cover__image-background",h?`wp-image-${h}`:null,{"has-parallax":c,"is-repeated":d}),P=o||r;return(0,it.jsxs)("div",{...ct.useBlockProps.save({className:T,style:w}),children:[(0,it.jsx)("span",{"aria-hidden":"true",className:Dt("wp-block-cover__background",b,Fi(i),{"has-background-dim":void 0!==i,"wp-block-cover__gradient-background":m&&P&&0!==i,"has-background-gradient":P,[f]:f}),style:C}),!l&&y&&m&&(k?(0,it.jsx)("img",{className:N,alt:g,src:m,style:{objectPosition:j},"data-object-fit":"cover","data-object-position":j}):(0,it.jsx)("div",{role:"img",className:N,style:{backgroundPosition:B,backgroundImage:S}})),v&&m&&(0,it.jsx)("video",{className:Dt("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:m,style:{objectPosition:j},"data-object-fit":"cover","data-object-position":j}),(0,it.jsx)("div",{...ct.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})},migrate:qi},ns={attributes:Zi,supports:Ki,save({attributes:e}){const{backgroundType:t,gradient:o,contentPosition:n,customGradient:r,customOverlayColor:a,dimRatio:i,focalPoint:s,useFeaturedImage:l,hasParallax:c,isDark:u,isRepeated:d,overlayColor:p,url:m,alt:g,id:h,minHeight:_,minHeightUnit:x}=e,b=(0,ct.getColorClassName)("background-color",p),f=(0,ct.__experimentalGetGradientClass)(o),y=_&&x?`${_}${x}`:_,v=Ai===t,k=Li===t,w=!(c||d),C={...!v||w||l?{}:Gi(m),minHeight:y||void 0},j={backgroundColor:b?void 0:a,background:r||void 0},S=s&&w?`${Math.round(100*s.x)}% ${Math.round(100*s.y)}%`:void 0,B=Dt({"is-light":!u,"has-parallax":c,"is-repeated":d,"has-custom-content-position":!Ei(n)},Oi(n)),T=o||r;return(0,it.jsxs)("div",{...ct.useBlockProps.save({className:B,style:C}),children:[(0,it.jsx)("span",{"aria-hidden":"true",className:Dt("wp-block-cover__background",b,Fi(i),{"has-background-dim":void 0!==i,"wp-block-cover__gradient-background":m&&T&&0!==i,"has-background-gradient":T,[f]:f}),style:j}),!l&&v&&w&&m&&(0,it.jsx)("img",{className:Dt("wp-block-cover__image-background",h?`wp-image-${h}`:null),alt:g,src:m,style:{objectPosition:S},"data-object-fit":"cover","data-object-position":S}),k&&m&&(0,it.jsx)("video",{className:Dt("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:m,style:{objectPosition:S},"data-object-fit":"cover","data-object-position":S}),(0,it.jsx)("div",{...ct.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})},migrate:qi},rs={attributes:Zi,supports:Ki,save({attributes:e}){const{backgroundType:t,gradient:o,contentPosition:n,customGradient:r,customOverlayColor:a,dimRatio:i,focalPoint:s,hasParallax:l,isDark:c,isRepeated:u,overlayColor:d,url:p,alt:m,id:g,minHeight:h,minHeightUnit:_}=e,x=(0,ct.getColorClassName)("background-color",d),b=(0,ct.__experimentalGetGradientClass)(o),f=_?`${h}${_}`:h,y=Ai===t,v=Li===t,k=!(l||u),w={...y&&!k?Gi(p):{},minHeight:f||void 0},C={backgroundColor:x?void 0:a,background:r||void 0},j=s&&k?`${Math.round(100*s.x)}% ${Math.round(100*s.y)}%`:void 0,S=Dt({"is-light":!c,"has-parallax":l,"is-repeated":u,"has-custom-content-position":!Ei(n)},Oi(n)),B=o||r;return(0,it.jsxs)("div",{...ct.useBlockProps.save({className:S,style:w}),children:[(0,it.jsx)("span",{"aria-hidden":"true",className:Dt("wp-block-cover__background",x,Fi(i),{"has-background-dim":void 0!==i,"wp-block-cover__gradient-background":p&&B&&0!==i,"has-background-gradient":B,[b]:b}),style:C}),y&&k&&p&&(0,it.jsx)("img",{className:Dt("wp-block-cover__image-background",g?`wp-image-${g}`:null),alt:m,src:p,style:{objectPosition:j},"data-object-fit":"cover","data-object-position":j}),v&&p&&(0,it.jsx)("video",{className:Dt("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:p,style:{objectPosition:j},"data-object-fit":"cover","data-object-position":j}),(0,it.jsx)("div",{...ct.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})},migrate:qi},as={attributes:Zi,supports:Ki,save({attributes:e}){const{backgroundType:t,gradient:o,contentPosition:n,customGradient:r,customOverlayColor:a,dimRatio:i,focalPoint:s,hasParallax:l,isDark:c,isRepeated:u,overlayColor:d,url:p,alt:m,id:g,minHeight:h,minHeightUnit:_}=e,x=(0,ct.getColorClassName)("background-color",d),b=(0,ct.__experimentalGetGradientClass)(o),f=_?`${h}${_}`:h,y=Ai===t,v=Li===t,k=!(l||u),w={...y&&!k?Gi(p):{},minHeight:f||void 0},C={backgroundColor:x?void 0:a,background:r||void 0},j=s&&k?`${Math.round(100*s.x)}% ${Math.round(100*s.y)}%`:void 0,S=Dt({"is-light":!c,"has-parallax":l,"is-repeated":u,"has-custom-content-position":!Ei(n)},Oi(n));return(0,it.jsxs)("div",{...ct.useBlockProps.save({className:S,style:w}),children:[(0,it.jsx)("span",{"aria-hidden":"true",className:Dt(x,Fi(i),"wp-block-cover__gradient-background",b,{"has-background-dim":void 0!==i,"has-background-gradient":o||r,[b]:!p&&b}),style:C}),y&&k&&p&&(0,it.jsx)("img",{className:Dt("wp-block-cover__image-background",g?`wp-image-${g}`:null),alt:m,src:p,style:{objectPosition:j},"data-object-fit":"cover","data-object-position":j}),v&&p&&(0,it.jsx)("video",{className:Dt("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:p,style:{objectPosition:j},"data-object-fit":"cover","data-object-position":j}),(0,it.jsx)("div",{...ct.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})},migrate:qi},is={attributes:{...Wi,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:Ki,save({attributes:e}){const{backgroundType:t,gradient:o,contentPosition:n,customGradient:r,customOverlayColor:a,dimRatio:i,focalPoint:s,hasParallax:l,isRepeated:c,overlayColor:u,url:d,alt:p,id:m,minHeight:g,minHeightUnit:h}=e,_=(0,ct.getColorClassName)("background-color",u),x=(0,ct.__experimentalGetGradientClass)(o),b=h?`${g}${h}`:g,f=Ai===t,y=Li===t,v=!(l||c),k={...f&&!v?Gi(d):{},backgroundColor:_?void 0:a,background:r&&!d?r:void 0,minHeight:b||void 0},w=s&&v?`${Math.round(100*s.x)}% ${Math.round(100*s.y)}%`:void 0,C=Dt($i(i),_,{"has-background-dim":0!==i,"has-parallax":l,"is-repeated":c,"has-background-gradient":o||r,[x]:!d&&x,"has-custom-content-position":!Ei(n)},Oi(n));return(0,it.jsxs)("div",{...ct.useBlockProps.save({className:C,style:k}),children:[d&&(o||r)&&0!==i&&(0,it.jsx)("span",{"aria-hidden":"true",className:Dt("wp-block-cover__gradient-background",x),style:r?{background:r}:void 0}),f&&v&&d&&(0,it.jsx)("img",{className:Dt("wp-block-cover__image-background",m?`wp-image-${m}`:null),alt:p,src:d,style:{objectPosition:w},"data-object-fit":"cover","data-object-position":w}),y&&d&&(0,it.jsx)("video",{className:Dt("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}),(0,it.jsx)("div",{className:"wp-block-cover__inner-container",children:(0,it.jsx)(ct.InnerBlocks.Content,{})})]})},migrate:(0,xt.compose)(Ui,qi)},ss={attributes:{...Wi,isRepeated:{type:"boolean",default:!1},minHeight:{type:"number"},minHeightUnit:{type:"string"},gradient:{type:"string"},customGradient:{type:"string"},contentPosition:{type:"string"}},supports:{align:!0},save({attributes:e}){const{backgroundType:t,gradient:o,contentPosition:n,customGradient:r,customOverlayColor:a,dimRatio:i,focalPoint:s,hasParallax:l,isRepeated:c,overlayColor:u,url:d,minHeight:p,minHeightUnit:m}=e,g=(0,ct.getColorClassName)("background-color",u),h=(0,ct.__experimentalGetGradientClass)(o),_=m?`${p}${m}`:p,x=Ai===t,b=Li===t,f=x?Gi(d):{},y={};let v;g||(f.backgroundColor=a),r&&!d&&(f.background=r),f.minHeight=_||void 0,s&&(v=`${Math.round(100*s.x)}% ${Math.round(100*s.y)}%`,x&&!l&&(f.backgroundPosition=v),b&&(y.objectPosition=v));const k=Dt($i(i),g,{"has-background-dim":0!==i,"has-parallax":l,"is-repeated":c,"has-background-gradient":o||r,[h]:!d&&h,"has-custom-content-position":!Ei(n)},Oi(n));return(0,it.jsxs)("div",{...ct.useBlockProps.save({className:k,style:f}),children:[d&&(o||r)&&0!==i&&(0,it.jsx)("span",{"aria-hidden":"true",className:Dt("wp-block-cover__gradient-background",h),style:r?{background:r}:void 0}),b&&d&&(0,it.jsx)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:d,style:y}),(0,it.jsx)("div",{className:"wp-block-cover__inner-container",children:(0,it.jsx)(ct.InnerBlocks.Content,{})})]})},migrate:(0,xt.compose)(Ui,qi)},ls={attributes:{...Wi,minHeight:{type:"number"},gradient:{type:"string"},customGradient:{type:"string"}},supports:{align:!0},save({attributes:e}){const{backgroundType:t,gradient:o,customGradient:n,customOverlayColor:r,dimRatio:a,focalPoint:i,hasParallax:s,overlayColor:l,url:c,minHeight:u}=e,d=(0,ct.getColorClassName)("background-color",l),p=(0,ct.__experimentalGetGradientClass)(o),m=t===Ai?Gi(c):{};d||(m.backgroundColor=r),i&&!s&&(m.backgroundPosition=`${Math.round(100*i.x)}% ${Math.round(100*i.y)}%`),n&&!c&&(m.background=n),m.minHeight=u||void 0;const g=Dt($i(a),d,{"has-background-dim":0!==a,"has-parallax":s,"has-background-gradient":n,[p]:!c&&p});return(0,it.jsxs)("div",{className:g,style:m,children:[c&&(o||n)&&0!==a&&(0,it.jsx)("span",{"aria-hidden":"true",className:Dt("wp-block-cover__gradient-background",p),style:n?{background:n}:void 0}),Li===t&&c&&(0,it.jsx)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:c}),(0,it.jsx)("div",{className:"wp-block-cover__inner-container",children:(0,it.jsx)(ct.InnerBlocks.Content,{})})]})},migrate:(0,xt.compose)(Ui,qi)},cs={attributes:{...Wi,minHeight:{type:"number"},gradient:{type:"string"},customGradient:{type:"string"}},supports:{align:!0},save({attributes:e}){const{backgroundType:t,gradient:o,customGradient:n,customOverlayColor:r,dimRatio:a,focalPoint:i,hasParallax:s,overlayColor:l,url:c,minHeight:u}=e,d=(0,ct.getColorClassName)("background-color",l),p=(0,ct.__experimentalGetGradientClass)(o),m=t===Ai?Gi(c):{};d||(m.backgroundColor=r),i&&!s&&(m.backgroundPosition=`${100*i.x}% ${100*i.y}%`),n&&!c&&(m.background=n),m.minHeight=u||void 0;const g=Dt($i(a),d,{"has-background-dim":0!==a,"has-parallax":s,"has-background-gradient":n,[p]:!c&&p});return(0,it.jsxs)("div",{className:g,style:m,children:[c&&(o||n)&&0!==a&&(0,it.jsx)("span",{"aria-hidden":"true",className:Dt("wp-block-cover__gradient-background",p),style:n?{background:n}:void 0}),Li===t&&c&&(0,it.jsx)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:c}),(0,it.jsx)("div",{className:"wp-block-cover__inner-container",children:(0,it.jsx)(ct.InnerBlocks.Content,{})})]})},migrate:(0,xt.compose)(Ui,qi)},us={attributes:{...Wi,title:{type:"string",source:"html",selector:"p"},contentAlign:{type:"string",default:"center"}},supports:{align:!0},save({attributes:e}){const{backgroundType:t,contentAlign:o,customOverlayColor:n,dimRatio:r,focalPoint:a,hasParallax:i,overlayColor:s,title:l,url:c}=e,u=(0,ct.getColorClassName)("background-color",s),d=t===Ai?Gi(c):{};u||(d.backgroundColor=n),a&&!i&&(d.backgroundPosition=`${100*a.x}% ${100*a.y}%`);const p=Dt($i(r),u,{"has-background-dim":0!==r,"has-parallax":i,[`has-${o}-content`]:"center"!==o});return(0,it.jsxs)("div",{className:p,style:d,children:[Li===t&&c&&(0,it.jsx)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:c}),!ct.RichText.isEmpty(l)&&(0,it.jsx)(ct.RichText.Content,{tagName:"p",className:"wp-block-cover-text",value:l})]})},migrate(e){const t={...e,dimRatio:e.url?e.dimRatio:100,tagName:e.tagName?e.tagName:"div"},{title:o,contentAlign:n,...r}=t;return[r,[(0,st.createBlock)("core/paragraph",{content:e.title,align:e.contentAlign,fontSize:"large",placeholder:(0,pt.__)("Write title…")})]]}},ds={attributes:{...Wi,title:{type:"string",source:"html",selector:"p"},contentAlign:{type:"string",default:"center"},align:{type:"string"}},supports:{className:!1},save({attributes:e}){const{url:t,title:o,hasParallax:n,dimRatio:r,align:a,contentAlign:i,overlayColor:s,customOverlayColor:l}=e,c=(0,ct.getColorClassName)("background-color",s),u=Gi(t);c||(u.backgroundColor=l);const d=Dt("wp-block-cover-image",$i(r),c,{"has-background-dim":0!==r,"has-parallax":n,[`has-${i}-content`]:"center"!==i},a?`align${a}`:null);return(0,it.jsx)("div",{className:d,style:u,children:!ct.RichText.isEmpty(o)&&(0,it.jsx)(ct.RichText.Content,{tagName:"p",className:"wp-block-cover-image-text",value:o})})},migrate(e){const t={...e,dimRatio:e.url?e.dimRatio:100,tagName:e.tagName?e.tagName:"div"},{title:o,contentAlign:n,align:r,...a}=t;return[a,[(0,st.createBlock)("core/paragraph",{content:e.title,align:e.contentAlign,fontSize:"large",placeholder:(0,pt.__)("Write title…")})]]}},ps={attributes:{...Wi,title:{type:"string",source:"html",selector:"h2"},align:{type:"string"},contentAlign:{type:"string",default:"center"}},supports:{className:!1},save({attributes:e}){const{url:t,title:o,hasParallax:n,dimRatio:r,align:a}=e,i=Gi(t),s=Dt("wp-block-cover-image",$i(r),{"has-background-dim":0!==r,"has-parallax":n},a?`align${a}`:null);return(0,it.jsx)("section",{className:s,style:i,children:(0,it.jsx)(ct.RichText.Content,{tagName:"h2",value:o})})},migrate(e){const t={...e,dimRatio:e.url?e.dimRatio:100,tagName:e.tagName?e.tagName:"div"},{title:o,contentAlign:n,align:r,...a}=t;return[a,[(0,st.createBlock)("core/paragraph",{content:e.title,align:e.contentAlign,fontSize:"large",placeholder:(0,pt.__)("Write title…")})]]}};var ms=[Xi,es,ts,os,ns,rs,as,is,ss,ls,cs,us,ds,ps];const gs="full",hs=["image"];var _s=function e({poster:t,onChange:o}){const n=(0,gt.useRef)(),[r,a]=(0,gt.useState)(!1),i=(0,xt.useInstanceId)(e,"block-library-poster-image-description"),{getSettings:s}=(0,lt.useSelect)(ct.store),{createErrorNotice:l}=(0,lt.useDispatch)(bo.store),c=e=>{s().mediaUpload({allowedTypes:hs,filesList:e,onFileChange:([e])=>{(0,ht.isBlobURL)(e?.url)?a(!0):(e&&o(e),a(!1))},onError:e=>{l(e,{id:"poster-image-upload-notice",type:"snackbar"}),a(!1)},multiple:!1})};return(0,it.jsx)(ct.MediaUploadCheck,{children:(0,it.jsxs)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Poster image"),isShownByDefault:!0,hasValue:()=>!!t,onDeselect:()=>o(void 0),children:[(0,it.jsx)(mt.BaseControl.VisualLabel,{children:(0,pt.__)("Poster image")}),(0,it.jsx)(ct.MediaUpload,{title:(0,pt.__)("Select poster image"),onSelect:o,allowedTypes:hs,render:({open:e})=>(0,it.jsxs)("div",{className:"block-library-poster-image__container",children:[t&&(0,it.jsxs)(mt.Button,{__next40pxDefaultSize:!0,onClick:e,"aria-haspopup":"dialog","aria-label":(0,pt.__)("Edit or replace the poster image."),className:"block-library-poster-image__preview",disabled:r,accessibleWhenDisabled:!0,children:[(0,it.jsx)("img",{src:t,alt:(0,pt.__)("Poster image preview"),className:"block-library-poster-image__preview-image"}),r&&(0,it.jsx)(mt.Spinner,{})]}),(0,it.jsxs)(mt.__experimentalHStack,{className:Dt("block-library-poster-image__actions",{"block-library-poster-image__actions-select":!t}),children:[(0,it.jsx)(mt.Button,{__next40pxDefaultSize:!0,onClick:e,ref:n,className:"block-library-poster-image__action","aria-describedby":i,"aria-haspopup":"dialog",variant:t?void 0:"secondary",disabled:r,accessibleWhenDisabled:!0,children:!t&&r?(0,it.jsx)(mt.Spinner,{}):t?(0,pt.__)("Replace"):(0,pt.__)("Set poster image")}),(0,it.jsx)("p",{id:i,hidden:!0,children:t?(0,pt.sprintf)((0,pt.__)("The current poster image url is %s."),t):(0,pt.__)("There is no poster image currently selected.")}),!!t&&(0,it.jsx)(mt.Button,{__next40pxDefaultSize:!0,onClick:()=>{o(void 0),n.current.focus()},className:"block-library-poster-image__action",disabled:r,accessibleWhenDisabled:!0,children:(0,pt.__)("Remove")})]}),(0,it.jsx)(mt.DropZone,{onFilesDrop:c})]})})]})})};const{cleanEmptyObject:xs,ResolutionTool:bs,HTMLElementControl:fs}=jo(ct.privateApis);function ys({onChange:e,onUnitChange:t,unit:o="px",value:n=""}){const r=`block-cover-height-input-${(0,xt.useInstanceId)(mt.__experimentalUnitControl)}`,a="px"===o,[i]=(0,ct.useSettings)("spacing.units"),s=(0,mt.__experimentalUseCustomUnits)({availableUnits:i||["px","em","rem","vw","vh"],defaultValues:{px:430,"%":20,em:20,rem:20,vw:20,vh:50}}),l=(0,gt.useMemo)((()=>{const[e]=(0,mt.__experimentalParseQuantityAndUnitFromRawValue)(n);return[e,o].join("")}),[o,n]),c=a?50:0;return(0,it.jsx)(mt.__experimentalUnitControl,{__next40pxDefaultSize:!0,label:(0,pt.__)("Minimum height"),id:r,isResetValueOnUnitChange:!0,min:c,onChange:t=>{const o=""!==t?parseFloat(t):void 0;isNaN(o)&&void 0!==o||e(o)},onUnitChange:t,units:s,value:l})}function vs({attributes:e,setAttributes:t,clientId:o,setOverlayColor:n,coverRef:r,currentSettings:a,updateDimRatio:i,featuredImage:s}){const{useFeaturedImage:l,id:c,dimRatio:u,focalPoint:d,hasParallax:p,isRepeated:m,minHeight:g,minHeightUnit:h,alt:_,tagName:x,poster:b}=e,{isVideoBackground:f,isImageBackground:y,mediaElement:v,url:k,overlayColor:w}=a,C=e.sizeSlug||gs,{gradientValue:j,setGradient:S}=(0,ct.__experimentalUseGradient)(),{getSettings:B}=(0,lt.useSelect)(ct.store),T=B()?.imageSizes,N=(0,lt.useSelect)((e=>c&&y?e(_t.store).getEntityRecord("postType","attachment",c,{context:"view"}):null),[c,y]),P=l?s:N;function I(e){const o=P?.media_details?.sizes?.[e]?.source_url;if(!o)return null;t({url:o,sizeSlug:e})}const D=T?.filter((({slug:e})=>P?.media_details?.sizes?.[e]?.source_url))?.map((({name:e,slug:t})=>({value:t,label:e}))),M=f||y&&(!p||m),z=e=>{const[t,o]=v.current?[v.current.style,"objectPosition"]:[r.current.style,"backgroundPosition"];t[o]=Vi(e)},A=(0,ct.__experimentalUseMultipleOriginColorsAndGradients)(),L=vt();return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.InspectorControls,{children:!!k&&(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{t({hasParallax:!1,focalPoint:void 0,isRepeated:!1,alt:"",poster:void 0}),I(gs)},dropdownMenuProps:L,children:[y&&(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Fixed background"),isShownByDefault:!0,hasValue:()=>!!p,onDeselect:()=>t({hasParallax:!1,focalPoint:void 0}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Fixed background"),checked:!!p,onChange:()=>{t({hasParallax:!p,...p?{}:{focalPoint:void 0}})}})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Repeated background"),isShownByDefault:!0,hasValue:()=>m,onDeselect:()=>t({isRepeated:!1}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Repeated background"),checked:m,onChange:()=>{t({isRepeated:!m})}})})]}),M&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Focal point"),isShownByDefault:!0,hasValue:()=>!!d,onDeselect:()=>t({focalPoint:void 0}),children:(0,it.jsx)(mt.FocalPointPicker,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Focal point"),url:k,value:d,onDragStart:z,onDrag:z,onChange:e=>t({focalPoint:e})})}),f&&(0,it.jsx)(_s,{poster:b,onChange:e=>t({poster:e?.url})}),!l&&k&&!f&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Alternative text"),isShownByDefault:!0,hasValue:()=>!!_,onDeselect:()=>t({alt:""}),children:(0,it.jsx)(mt.TextareaControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Alternative text"),value:_,onChange:e=>t({alt:e}),help:(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(mt.ExternalLink,{href:(0,pt.__)("https://www.w3.org/WAI/tutorials/images/decision-tree/"),children:(0,pt.__)("Describe the purpose of the image.")}),(0,it.jsx)("br",{}),(0,pt.__)("Leave empty if decorative.")]})})}),!!D?.length&&(0,it.jsx)(bs,{value:C,onChange:I,options:D,defaultValue:gs})]})}),A.hasColorsOrGradients&&(0,it.jsxs)(ct.InspectorControls,{group:"color",children:[(0,it.jsx)(ct.__experimentalColorGradientSettingsDropdown,{__experimentalIsRenderedInSidebar:!0,settings:[{colorValue:w.color,gradientValue:j,label:(0,pt.__)("Overlay"),onColorChange:n,onGradientChange:S,isShownByDefault:!0,resetAllFilter:()=>({overlayColor:void 0,customOverlayColor:void 0,gradient:void 0,customGradient:void 0}),clearable:!0}],panelId:o,...A}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>void 0!==u&&u!==(k?50:100),label:(0,pt.__)("Overlay opacity"),onDeselect:()=>i(k?50:100),resetAllFilter:()=>({dimRatio:k?50:100}),isShownByDefault:!0,panelId:o,children:(0,it.jsx)(mt.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Overlay opacity"),value:u,onChange:e=>i(e),min:0,max:100,step:10,required:!0,__next40pxDefaultSize:!0})})]}),(0,it.jsx)(ct.InspectorControls,{group:"dimensions",children:(0,it.jsx)(mt.__experimentalToolsPanelItem,{className:"single-column",hasValue:()=>!!g,label:(0,pt.__)("Minimum height"),onDeselect:()=>t({minHeight:void 0,minHeightUnit:void 0}),resetAllFilter:()=>({minHeight:void 0,minHeightUnit:void 0}),isShownByDefault:!0,panelId:o,children:(0,it.jsx)(ys,{value:e?.style?.dimensions?.aspectRatio?"":g,unit:h,onChange:o=>t({minHeight:o,style:xs({...e?.style,dimensions:{...e?.style?.dimensions,aspectRatio:void 0}})}),onUnitChange:e=>t({minHeightUnit:e})})})}),(0,it.jsx)(ct.InspectorControls,{group:"advanced",children:(0,it.jsx)(fs,{tagName:x,onChange:e=>t({tagName:e}),clientId:o,options:[{label:(0,pt.__)("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"}]})})]})}const{cleanEmptyObject:ks}=jo(ct.privateApis);function ws({attributes:e,setAttributes:t,onSelectMedia:o,currentSettings:n,toggleUseFeaturedImage:r,onClearMedia:a,blockEditingMode:i}){const{contentPosition:s,id:l,useFeaturedImage:c,minHeight:u,minHeightUnit:d}=e,{hasInnerBlocks:p,url:m}=n,[g,h]=(0,gt.useState)(u),[_,x]=(0,gt.useState)(d),b="vh"===d&&100===u&&!e?.style?.dimensions?.aspectRatio,f="contentOnly"===i;return(0,it.jsxs)(it.Fragment,{children:[!f&&(0,it.jsxs)(ct.BlockControls,{group:"block",children:[(0,it.jsx)(ct.__experimentalBlockAlignmentMatrixControl,{label:(0,pt.__)("Change content position"),value:s,onChange:e=>t({contentPosition:e}),isDisabled:!p}),(0,it.jsx)(ct.__experimentalBlockFullHeightAligmentControl,{isActive:b,onToggle:()=>b?t("vh"===_&&100===g?{minHeight:void 0,minHeightUnit:void 0}:{minHeight:g,minHeightUnit:_}):(h(u),x(d),t({minHeight:100,minHeightUnit:"vh",style:ks({...e?.style,dimensions:{...e?.style?.dimensions,aspectRatio:void 0}})})),isDisabled:!p})]}),(0,it.jsx)(ct.BlockControls,{group:"other",children:(0,it.jsx)(ct.MediaReplaceFlow,{mediaId:l,mediaURL:m,allowedTypes:Ri,accept:"image/*,video/*",onSelect:o,onToggleFeaturedImage:r,useFeaturedImage:c,name:m?(0,pt.__)("Replace"):(0,pt.__)("Add media"),onReset:a})})]})}function Cs({disableMediaButtons:e=!1,children:t,onSelectMedia:o,onError:n,style:r,toggleUseFeaturedImage:a}){return(0,it.jsx)(ct.MediaPlaceholder,{icon:(0,it.jsx)(ct.BlockIcon,{icon:Mi}),labels:{title:(0,pt.__)("Cover")},onSelect:o,accept:"image/*,video/*",allowedTypes:Ri,disableMediaButtons:e,onToggleFeaturedImage:a,onError:n,style:r,children:t})}const js={top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},{ResizableBoxPopover:Ss}=jo(ct.privateApis);function Bs({className:e,height:t,minHeight:o,onResize:n,onResizeStart:r,onResizeStop:a,showHandle:i,size:s,width:l,...c}){const[u,d]=(0,gt.useState)(!1),p={className:Dt(e,{"is-resizing":u}),enable:js,onResizeStart:(e,t,o)=>{r(o.clientHeight),n(o.clientHeight)},onResize:(e,t,o)=>{n(o.clientHeight),u||d(!0)},onResizeStop:(e,t,o)=>{a(o.clientHeight),d(!1)},showHandle:i,size:s,__experimentalShowTooltip:!0,__experimentalTooltipProps:{axis:"y",position:"bottom",isVisible:u}};return(0,it.jsx)(Ss,{className:"block-library-cover__resizable-box-popover",resizableBoxProps:p,...c})}var Ts={grad:.9,turn:360,rad:360/(2*Math.PI)},Ns=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},Ps=function(e,t,o){return void 0===t&&(t=0),void 0===o&&(o=Math.pow(10,t)),Math.round(o*e)/o+0},Is=function(e,t,o){return void 0===t&&(t=0),void 0===o&&(o=1),e>o?o:e>t?e:t},Ds=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},Ms=function(e){return{r:Is(e.r,0,255),g:Is(e.g,0,255),b:Is(e.b,0,255),a:Is(e.a)}},zs=function(e){return{r:Ps(e.r),g:Ps(e.g),b:Ps(e.b),a:Ps(e.a,3)}},As=/^#([0-9a-f]{3,8})$/i,Ls=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},Hs=function(e){var t=e.r,o=e.g,n=e.b,r=e.a,a=Math.max(t,o,n),i=a-Math.min(t,o,n),s=i?a===t?(o-n)/i:a===o?2+(n-t)/i:4+(t-o)/i:0;return{h:60*(s<0?s+6:s),s:a?i/a*100:0,v:a/255*100,a:r}},Rs=function(e){var t=e.h,o=e.s,n=e.v,r=e.a;t=t/360*6,o/=100,n/=100;var a=Math.floor(t),i=n*(1-o),s=n*(1-(t-a)*o),l=n*(1-(1-t+a)*o),c=a%6;return{r:255*[n,s,i,i,l,n][c],g:255*[l,n,n,s,i,i][c],b:255*[i,i,l,n,n,s][c],a:r}},Vs=function(e){return{h:Ds(e.h),s:Is(e.s,0,100),l:Is(e.l,0,100),a:Is(e.a)}},Fs=function(e){return{h:Ps(e.h),s:Ps(e.s),l:Ps(e.l),a:Ps(e.a,3)}},Es=function(e){return Rs((o=(t=e).s,{h:t.h,s:(o*=((n=t.l)<50?n:100-n)/100)>0?2*o/(n+o)*100:0,v:n+o,a:t.a}));var t,o,n},Os=function(e){return{h:(t=Hs(e)).h,s:(r=(200-(o=t.s))*(n=t.v)/100)>0&&r<200?o*n/100/(r<=100?r:200-r)*100:0,l:r/2,a:t.a};var t,o,n,r},Gs=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,$s=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Us=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,qs=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Ws={string:[[function(e){var t=As.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?Ps(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?Ps(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=Us.exec(e)||qs.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:Ms({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=Gs.exec(e)||$s.exec(e);if(!t)return null;var o,n,r=Vs({h:(o=t[1],n=t[2],void 0===n&&(n="deg"),Number(o)*(Ts[n]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return Es(r)},"hsl"]],object:[[function(e){var t=e.r,o=e.g,n=e.b,r=e.a,a=void 0===r?1:r;return Ns(t)&&Ns(o)&&Ns(n)?Ms({r:Number(t),g:Number(o),b:Number(n),a:Number(a)}):null},"rgb"],[function(e){var t=e.h,o=e.s,n=e.l,r=e.a,a=void 0===r?1:r;if(!Ns(t)||!Ns(o)||!Ns(n))return null;var i=Vs({h:Number(t),s:Number(o),l:Number(n),a:Number(a)});return Es(i)},"hsl"],[function(e){var t=e.h,o=e.s,n=e.v,r=e.a,a=void 0===r?1:r;if(!Ns(t)||!Ns(o)||!Ns(n))return null;var i=function(e){return{h:Ds(e.h),s:Is(e.s,0,100),v:Is(e.v,0,100),a:Is(e.a)}}({h:Number(t),s:Number(o),v:Number(n),a:Number(a)});return Rs(i)},"hsv"]]},Zs=function(e,t){for(var o=0;o<t.length;o++){var n=t[o][0](e);if(n)return[n,t[o][1]]}return[null,void 0]},Js=function(e){return"string"==typeof e?Zs(e.trim(),Ws.string):"object"==typeof e&&null!==e?Zs(e,Ws.object):[null,void 0]},Qs=function(e,t){var o=Os(e);return{h:o.h,s:Is(o.s+100*t,0,100),l:o.l,a:o.a}},Ks=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},Ys=function(e,t){var o=Os(e);return{h:o.h,s:o.s,l:Is(o.l+100*t,0,100),a:o.a}},Xs=function(){function e(e){this.parsed=Js(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 Ps(Ks(this.rgba),2)},e.prototype.isDark=function(){return Ks(this.rgba)<.5},e.prototype.isLight=function(){return Ks(this.rgba)>=.5},e.prototype.toHex=function(){return t=(e=zs(this.rgba)).r,o=e.g,n=e.b,a=(r=e.a)<1?Ls(Ps(255*r)):"","#"+Ls(t)+Ls(o)+Ls(n)+a;var e,t,o,n,r,a},e.prototype.toRgb=function(){return zs(this.rgba)},e.prototype.toRgbString=function(){return t=(e=zs(this.rgba)).r,o=e.g,n=e.b,(r=e.a)<1?"rgba("+t+", "+o+", "+n+", "+r+")":"rgb("+t+", "+o+", "+n+")";var e,t,o,n,r},e.prototype.toHsl=function(){return Fs(Os(this.rgba))},e.prototype.toHslString=function(){return t=(e=Fs(Os(this.rgba))).h,o=e.s,n=e.l,(r=e.a)<1?"hsla("+t+", "+o+"%, "+n+"%, "+r+")":"hsl("+t+", "+o+"%, "+n+"%)";var e,t,o,n,r},e.prototype.toHsv=function(){return e=Hs(this.rgba),{h:Ps(e.h),s:Ps(e.s),v:Ps(e.v),a:Ps(e.a,3)};var e},e.prototype.invert=function(){return el({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),el(Qs(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),el(Qs(this.rgba,-e))},e.prototype.grayscale=function(){return el(Qs(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),el(Ys(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),el(Ys(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?el({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):Ps(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=Os(this.rgba);return"number"==typeof e?el({h:e,s:t.s,l:t.l,a:t.a}):Ps(t.h)},e.prototype.isEqual=function(e){return this.toHex()===el(e).toHex()},e}(),el=function(e){return e instanceof Xs?e:new Xs(e)},tl=[];
+(()=>{var e,t,o={3533:e=>{"use strict";e.exports=window.wp.latexToMathml},7734:e=>{"use strict";e.exports=function e(t,o){if(t===o)return!0;if(t&&o&&"object"==typeof t&&"object"==typeof o){if(t.constructor!==o.constructor)return!1;var n,r,a;if(Array.isArray(t)){if((n=t.length)!=o.length)return!1;for(r=n;0!=r--;)if(!e(t[r],o[r]))return!1;return!0}if(t instanceof Map&&o instanceof Map){if(t.size!==o.size)return!1;for(r of t.entries())if(!o.has(r[0]))return!1;for(r of t.entries())if(!e(r[1],o.get(r[0])))return!1;return!0}if(t instanceof Set&&o instanceof Set){if(t.size!==o.size)return!1;for(r of t.entries())if(!o.has(r[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(o)){if((n=t.length)!=o.length)return!1;for(r=n;0!=r--;)if(t[r]!==o[r])return!1;return!0}if(t.constructor===RegExp)return t.source===o.source&&t.flags===o.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===o.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===o.toString();if((n=(a=Object.keys(t)).length)!==Object.keys(o).length)return!1;for(r=n;0!=r--;)if(!Object.prototype.hasOwnProperty.call(o,a[r]))return!1;for(r=n;0!=r--;){var i=a[r];if(!e(t[i],o[i]))return!1}return!0}return t!=t&&o!=o}},9681:e=>{var t={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",Ấ:"A",Ắ:"A",Ẳ:"A",Ẵ:"A",Ặ:"A",Æ:"AE",Ầ:"A",Ằ:"A",Ȃ:"A",Ả:"A",Ạ:"A",Ẩ:"A",Ẫ:"A",Ậ:"A",Ç:"C",Ḉ:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ế:"E",Ḗ:"E",Ề:"E",Ḕ:"E",Ḝ:"E",Ȇ:"E",Ẻ:"E",Ẽ:"E",Ẹ:"E",Ể:"E",Ễ:"E",Ệ:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ḯ:"I",Ȋ:"I",Ỉ:"I",Ị:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",Ố:"O",Ṍ:"O",Ṓ:"O",Ȏ:"O",Ỏ:"O",Ọ:"O",Ổ:"O",Ỗ:"O",Ộ:"O",Ờ:"O",Ở:"O",Ỡ:"O",Ớ:"O",Ợ:"O",Ù:"U",Ú:"U",Û:"U",Ü:"U",Ủ:"U",Ụ:"U",Ử:"U",Ữ:"U",Ự:"U",Ý:"Y",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",ấ:"a",ắ:"a",ẳ:"a",ẵ:"a",ặ:"a",æ:"ae",ầ:"a",ằ:"a",ȃ:"a",ả:"a",ạ:"a",ẩ:"a",ẫ:"a",ậ:"a",ç:"c",ḉ:"c",è:"e",é:"e",ê:"e",ë:"e",ế:"e",ḗ:"e",ề:"e",ḕ:"e",ḝ:"e",ȇ:"e",ẻ:"e",ẽ:"e",ẹ:"e",ể:"e",ễ:"e",ệ:"e",ì:"i",í:"i",î:"i",ï:"i",ḯ:"i",ȋ:"i",ỉ:"i",ị:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",ố:"o",ṍ:"o",ṓ:"o",ȏ:"o",ỏ:"o",ọ:"o",ổ:"o",ỗ:"o",ộ:"o",ờ:"o",ở:"o",ỡ:"o",ớ:"o",ợ:"o",ù:"u",ú:"u",û:"u",ü:"u",ủ:"u",ụ:"u",ử:"u",ữ:"u",ự:"u",ý:"y",ÿ:"y",Ā:"A",ā:"a",Ă:"A",ă:"a",Ą:"A",ą:"a",Ć:"C",ć:"c",Ĉ:"C",ĉ:"c",Ċ:"C",ċ:"c",Č:"C",č:"c",C̆:"C",c̆:"c",Ď:"D",ď:"d",Đ:"D",đ:"d",Ē:"E",ē:"e",Ĕ:"E",ĕ:"e",Ė:"E",ė:"e",Ę:"E",ę:"e",Ě:"E",ě:"e",Ĝ:"G",Ǵ:"G",ĝ:"g",ǵ:"g",Ğ:"G",ğ:"g",Ġ:"G",ġ:"g",Ģ:"G",ģ:"g",Ĥ:"H",ĥ:"h",Ħ:"H",ħ:"h",Ḫ:"H",ḫ:"h",Ĩ:"I",ĩ:"i",Ī:"I",ī:"i",Ĭ:"I",ĭ:"i",Į:"I",į:"i",İ:"I",ı:"i",IJ:"IJ",ij:"ij",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",Ḱ:"K",ḱ:"k",K̆:"K",k̆:"k",Ĺ:"L",ĺ:"l",Ļ:"L",ļ:"l",Ľ:"L",ľ:"l",Ŀ:"L",ŀ:"l",Ł:"l",ł:"l",Ḿ:"M",ḿ:"m",M̆:"M",m̆:"m",Ń:"N",ń:"n",Ņ:"N",ņ:"n",Ň:"N",ň:"n",ʼn:"n",N̆:"N",n̆:"n",Ō:"O",ō:"o",Ŏ:"O",ŏ:"o",Ő:"O",ő:"o",Œ:"OE",œ:"oe",P̆:"P",p̆:"p",Ŕ:"R",ŕ:"r",Ŗ:"R",ŗ:"r",Ř:"R",ř:"r",R̆:"R",r̆:"r",Ȓ:"R",ȓ:"r",Ś:"S",ś:"s",Ŝ:"S",ŝ:"s",Ş:"S",Ș:"S",ș:"s",ş:"s",Š:"S",š:"s",Ţ:"T",ţ:"t",ț:"t",Ț:"T",Ť:"T",ť:"t",Ŧ:"T",ŧ:"t",T̆:"T",t̆:"t",Ũ:"U",ũ:"u",Ū:"U",ū:"u",Ŭ:"U",ŭ:"u",Ů:"U",ů:"u",Ű:"U",ű:"u",Ų:"U",ų:"u",Ȗ:"U",ȗ:"u",V̆:"V",v̆:"v",Ŵ:"W",ŵ:"w",Ẃ:"W",ẃ:"w",X̆:"X",x̆:"x",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Y̆:"Y",y̆:"y",Ź:"Z",ź:"z",Ż:"Z",ż:"z",Ž:"Z",ž:"z",ſ:"s",ƒ:"f",Ơ:"O",ơ:"o",Ư:"U",ư:"u",Ǎ:"A",ǎ:"a",Ǐ:"I",ǐ:"i",Ǒ:"O",ǒ:"o",Ǔ:"U",ǔ:"u",Ǖ:"U",ǖ:"u",Ǘ:"U",ǘ:"u",Ǚ:"U",ǚ:"u",Ǜ:"U",ǜ:"u",Ứ:"U",ứ:"u",Ṹ:"U",ṹ:"u",Ǻ:"A",ǻ:"a",Ǽ:"AE",ǽ:"ae",Ǿ:"O",ǿ:"o",Þ:"TH",þ:"th",Ṕ:"P",ṕ:"p",Ṥ:"S",ṥ:"s",X́:"X",x́:"x",Ѓ:"Г",ѓ:"г",Ќ:"К",ќ:"к",A̋:"A",a̋:"a",E̋:"E",e̋:"e",I̋:"I",i̋:"i",Ǹ:"N",ǹ:"n",Ồ:"O",ồ:"o",Ṑ:"O",ṑ:"o",Ừ:"U",ừ:"u",Ẁ:"W",ẁ:"w",Ỳ:"Y",ỳ:"y",Ȁ:"A",ȁ:"a",Ȅ:"E",ȅ:"e",Ȉ:"I",ȉ:"i",Ȍ:"O",ȍ:"o",Ȑ:"R",ȑ:"r",Ȕ:"U",ȕ:"u",B̌:"B",b̌:"b",Č̣:"C",č̣:"c",Ê̌:"E",ê̌:"e",F̌:"F",f̌:"f",Ǧ:"G",ǧ:"g",Ȟ:"H",ȟ:"h",J̌:"J",ǰ:"j",Ǩ:"K",ǩ:"k",M̌:"M",m̌:"m",P̌:"P",p̌:"p",Q̌:"Q",q̌:"q",Ř̩:"R",ř̩:"r",Ṧ:"S",ṧ:"s",V̌:"V",v̌:"v",W̌:"W",w̌:"w",X̌:"X",x̌:"x",Y̌:"Y",y̌:"y",A̧:"A",a̧:"a",B̧:"B",b̧:"b",Ḑ:"D",ḑ:"d",Ȩ:"E",ȩ:"e",Ɛ̧:"E",ɛ̧:"e",Ḩ:"H",ḩ:"h",I̧:"I",i̧:"i",Ɨ̧:"I",ɨ̧:"i",M̧:"M",m̧:"m",O̧:"O",o̧:"o",Q̧:"Q",q̧:"q",U̧:"U",u̧:"u",X̧:"X",x̧:"x",Z̧:"Z",z̧:"z",й:"и",Й:"И",ё:"е",Ё:"Е"},o=Object.keys(t).join("|"),n=new RegExp(o,"g"),r=new RegExp(o,"");function a(e){return t[e]}var i=function(e){return e.replace(n,a)};e.exports=i,e.exports.has=function(e){return!!e.match(r)},e.exports.remove=i}},n={};function r(e){var t=n[e];if(void 0!==t)return t.exports;var a=n[e]={exports:{}};return o[e](a,a.exports,r),a.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,r.t=function(o,n){if(1&n&&(o=this(o)),8&n)return o;if("object"==typeof o&&o){if(4&n&&o.__esModule)return o;if(16&n&&"function"==typeof o.then)return o}var a=Object.create(null);r.r(a);var i={};e=e||[null,t({}),t([]),t(t)];for(var s=2&n&&o;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>i[e]=()=>o[e]));return i.default=()=>o,r.d(a,i),a},r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};(()=>{"use strict";r.r(a),r.d(a,{__experimentalGetCoreBlocks:()=>nP,__experimentalRegisterExperimentalCoreBlocks:()=>aP,privateApis:()=>oP,registerCoreBlocks:()=>rP});var e={};r.r(e),r.d(e,{init:()=>Pt,metadata:()=>Ct,name:()=>Tt,settings:()=>Nt});var t={};r.r(t),r.d(t,{init:()=>Ht,metadata:()=>Mt,name:()=>At,settings:()=>Lt});var o={};r.r(o),r.d(o,{init:()=>$t,metadata:()=>Rt,name:()=>Ot,settings:()=>Gt});var n={};r.r(n),r.d(n,{init:()=>Jt,metadata:()=>Ut,name:()=>Wt,settings:()=>Zt});var i={};r.r(i),r.d(i,{init:()=>eo,metadata:()=>Kt,name:()=>Yt,settings:()=>Xt});var s={};r.r(s),r.d(s,{init:()=>ho,metadata:()=>oo,name:()=>mo,settings:()=>go});var l={};r.r(l),r.d(l,{init:()=>Eo,metadata:()=>Ho,name:()=>Vo,settings:()=>Fo});var c={};r.r(c),r.d(c,{init:()=>Jo,metadata:()=>Go,name:()=>Wo,settings:()=>Zo});var u={};r.r(u),r.d(u,{init:()=>wn,metadata:()=>yn,name:()=>vn,settings:()=>kn});var d={};r.r(d),r.d(d,{init:()=>Hn,metadata:()=>zn,name:()=>An,settings:()=>Ln});var p={};r.r(p),r.d(p,{init:()=>$n,metadata:()=>Vn,name:()=>On,settings:()=>Gn});var m={};r.r(m),r.d(m,{init:()=>Yn,metadata:()=>qn,name:()=>Qn,settings:()=>Kn});var g={};r.r(g),r.d(g,{init:()=>ur,metadata:()=>sr,name:()=>lr,settings:()=>cr});var h={};r.r(h),r.d(h,{init:()=>fr,metadata:()=>pr,name:()=>xr,settings:()=>br});var _={};r.r(_),r.d(_,{init:()=>Tr,metadata:()=>jr,name:()=>Sr,settings:()=>Br});var x={};r.r(x),r.d(x,{init:()=>Wr,metadata:()=>Er,name:()=>Ur,settings:()=>qr});var b={};r.r(b),r.d(b,{init:()=>ia,metadata:()=>Jr,name:()=>ra,settings:()=>aa});var f={};r.r(f),r.d(f,{init:()=>ua,metadata:()=>sa,name:()=>la,settings:()=>ca});var y={};r.r(y),r.d(y,{init:()=>xa,metadata:()=>pa,name:()=>ha,settings:()=>_a});var v={};r.r(v),r.d(v,{init:()=>ka,metadata:()=>fa,name:()=>ya,settings:()=>va});var k={};r.r(k),r.d(k,{init:()=>Pa,metadata:()=>Ca,name:()=>Ta,settings:()=>Na});var w={};r.r(w),r.d(w,{init:()=>Aa,metadata:()=>Da,name:()=>Ma,settings:()=>za});var C={};r.r(C),r.d(C,{init:()=>Ea,metadata:()=>Ha,name:()=>Va,settings:()=>Fa});var j={};r.r(j),r.d(j,{init:()=>Xa,metadata:()=>Ga,name:()=>Ka,settings:()=>Ya});var S={};r.r(S),r.d(S,{init:()=>ai,metadata:()=>ti,name:()=>ni,settings:()=>ri});var B={};r.r(B),r.d(B,{init:()=>pi,metadata:()=>si,name:()=>ui,settings:()=>di});var T={};r.r(T),r.d(T,{init:()=>bi,metadata:()=>gi,name:()=>_i,settings:()=>xi});var N={};r.r(N),r.d(N,{init:()=>Ci,metadata:()=>yi,name:()=>ki,settings:()=>wi});var P={};r.r(P),r.d(P,{init:()=>Di,metadata:()=>Si,name:()=>Pi,settings:()=>Ii});var I={};r.r(I),r.d(I,{init:()=>zl,metadata:()=>Bl,name:()=>Dl,settings:()=>Ml});var D={};r.r(D),r.d(D,{init:()=>Gl,metadata:()=>Ll,name:()=>El,settings:()=>Ol});var M={};r.r(M),r.d(M,{init:()=>Pc,metadata:()=>yo,name:()=>Tc,settings:()=>Nc});var z={};r.r(z),r.d(z,{init:()=>Wc,metadata:()=>Oc,name:()=>Uc,settings:()=>qc});var A={};r.r(A),r.d(A,{init:()=>au,metadata:()=>Yc,name:()=>nu,settings:()=>ru});var L={};r.r(L),r.d(L,{init:()=>fu,metadata:()=>gu,name:()=>xu,settings:()=>bu});var H={};r.r(H),r.d(H,{init:()=>ju,metadata:()=>ku,name:()=>wu,settings:()=>Cu});var R={};r.r(R),r.d(R,{init:()=>zu,metadata:()=>Nu,name:()=>Du,settings:()=>Mu});var V={};r.r(V),r.d(V,{init:()=>Md,metadata:()=>Td,name:()=>Id,settings:()=>Dd});var F={};r.r(F),r.d(F,{init:()=>Kd,metadata:()=>Od,name:()=>Jd,settings:()=>Qd});var E={};r.r(E),r.d(E,{init:()=>kp,metadata:()=>hp,name:()=>yp,settings:()=>vp});var O={};r.r(O),r.d(O,{init:()=>Tp,metadata:()=>Cp,name:()=>Sp,settings:()=>Bp});var G={};r.r(G),r.d(G,{init:()=>Ap,metadata:()=>Ip,name:()=>Mp,settings:()=>zp});var $={};r.r($),r.d($,{init:()=>mm,metadata:()=>im,name:()=>dm,settings:()=>pm});var U={};r.r(U),r.d(U,{init:()=>bm,metadata:()=>hm,name:()=>_m,settings:()=>xm});var q={};r.r(q),r.d(q,{init:()=>zm,metadata:()=>ym,name:()=>Dm,settings:()=>Mm});var W={};r.r(W),r.d(W,{init:()=>cg,metadata:()=>og,name:()=>sg,settings:()=>lg});var Z={};r.r(Z),r.d(Z,{init:()=>xg,metadata:()=>pg,name:()=>hg,settings:()=>_g});var J={};r.r(J),r.d(J,{init:()=>Pg,metadata:()=>fg,name:()=>Tg,settings:()=>Ng});var Q={};r.r(Q),r.d(Q,{init:()=>Ag,metadata:()=>Dg,name:()=>Mg,settings:()=>zg});var K={};r.r(K),r.d(K,{init:()=>Sh,metadata:()=>yh,name:()=>Ch,settings:()=>jh});var Y={};r.r(Y),r.d(Y,{init:()=>Ph,metadata:()=>Bh,name:()=>Th,settings:()=>Nh});var X={};r.r(X),r.d(X,{init:()=>Hh,metadata:()=>Mh,name:()=>Ah,settings:()=>Lh});var ee={};r.r(ee),r.d(ee,{init:()=>Sx,metadata:()=>Vh,name:()=>Cx,settings:()=>jx});var te={};r.r(te),r.d(te,{init:()=>Gx,metadata:()=>Bx,name:()=>Ex,settings:()=>Ox});var oe={};r.r(oe),r.d(oe,{init:()=>Yx,metadata:()=>$x,name:()=>Qx,settings:()=>Kx});var ne={};r.r(ne),r.d(ne,{init:()=>rb,metadata:()=>eb,name:()=>ob,settings:()=>nb});var re={};r.r(re),r.d(re,{init:()=>gb,metadata:()=>ab,name:()=>pb,settings:()=>mb});var ae={};r.r(ae),r.d(ae,{init:()=>Sb,metadata:()=>_b,name:()=>Cb,settings:()=>jb});var ie={};r.r(ie),r.d(ie,{init:()=>Ib,metadata:()=>Bb,name:()=>Nb,settings:()=>Pb});var se={};r.r(se),r.d(se,{init:()=>Xb,metadata:()=>qb,name:()=>Kb,settings:()=>Yb});var le={};r.r(le),r.d(le,{init:()=>lf,metadata:()=>tf,name:()=>af,settings:()=>sf});var ce={};r.r(ce),r.d(ce,{init:()=>gf,metadata:()=>cf,name:()=>pf,settings:()=>mf});var ue={};r.r(ue),r.d(ue,{init:()=>ff,metadata:()=>hf,name:()=>xf,settings:()=>bf});var de={};r.r(de),r.d(de,{init:()=>jf,metadata:()=>yf,name:()=>wf,settings:()=>Cf});var pe={};r.r(pe),r.d(pe,{init:()=>If,metadata:()=>Bf,name:()=>Nf,settings:()=>Pf});var me={};r.r(me),r.d(me,{init:()=>Lf,metadata:()=>Mf,name:()=>zf,settings:()=>Af});var ge={};r.r(ge),r.d(ge,{init:()=>Of,metadata:()=>Hf,name:()=>Ff,settings:()=>Ef});var he={};r.r(he),r.d(he,{init:()=>ey,metadata:()=>$f,name:()=>Yf,settings:()=>Xf});var _e={};r.r(_e),r.d(_e,{init:()=>dy,metadata:()=>ty,name:()=>cy,settings:()=>uy});var xe={};r.r(xe),r.d(xe,{init:()=>xy,metadata:()=>my,name:()=>hy,settings:()=>_y});var be={};r.r(be),r.d(be,{init:()=>Dy,metadata:()=>fy,name:()=>Py,settings:()=>Iy});var fe={};r.r(fe),r.d(fe,{init:()=>Fy,metadata:()=>My,name:()=>Ry,settings:()=>Vy});var ye={};r.r(ye),r.d(ye,{init:()=>Wy,metadata:()=>Ey,name:()=>Uy,settings:()=>qy});var ve={};r.r(ve),r.d(ve,{init:()=>nv,metadata:()=>Jy,name:()=>tv,settings:()=>ov});var ke={};r.r(ke),r.d(ke,{init:()=>mv,metadata:()=>av,name:()=>dv,settings:()=>pv});var we={};r.r(we),r.d(we,{init:()=>fv,metadata:()=>gv,name:()=>xv,settings:()=>bv});var Ce={};r.r(Ce),r.d(Ce,{init:()=>Sv,metadata:()=>vv,name:()=>Cv,settings:()=>jv});var je={};r.r(je),r.d(je,{init:()=>qv,metadata:()=>Ev,name:()=>$v,settings:()=>Uv});var Se={};r.r(Se),r.d(Se,{init:()=>aw,metadata:()=>Zv,name:()=>nw,settings:()=>rw});var Be={};r.r(Be),r.d(Be,{init:()=>uw,metadata:()=>iw,name:()=>lw,settings:()=>cw});var Te={};r.r(Te),r.d(Te,{init:()=>bw,metadata:()=>dw,name:()=>_w,settings:()=>xw});var Ne={};r.r(Ne),r.d(Ne,{init:()=>ww,metadata:()=>fw,name:()=>vw,settings:()=>kw});var Pe={};r.r(Pe),r.d(Pe,{init:()=>Tw,metadata:()=>Cw,name:()=>Sw,settings:()=>Bw});var Ie={};r.r(Ie),r.d(Ie,{init:()=>Mw,metadata:()=>Nw,name:()=>Iw,settings:()=>Dw});var De={};r.r(De),r.d(De,{init:()=>Ow,metadata:()=>zw,name:()=>Fw,settings:()=>Ew});var Me={};r.r(Me),r.d(Me,{init:()=>Jw,metadata:()=>Gw,name:()=>Ww,settings:()=>Zw});var ze={};r.r(ze),r.d(ze,{init:()=>gC,metadata:()=>cC,name:()=>pC,settings:()=>mC});var Ae={};r.r(Ae),r.d(Ae,{init:()=>PC,metadata:()=>_C,name:()=>TC,settings:()=>NC});var Le={};r.r(Le),r.d(Le,{init:()=>zC,metadata:()=>IC,name:()=>DC,settings:()=>MC});var He={};r.r(He),r.d(He,{init:()=>VC,metadata:()=>LC,name:()=>HC,settings:()=>RC});var Re={};r.r(Re),r.d(Re,{init:()=>WC,metadata:()=>EC,name:()=>UC,settings:()=>qC});var Ve={};r.r(Ve),r.d(Ve,{init:()=>oj,metadata:()=>QC,name:()=>ej,settings:()=>tj});var Fe={};r.r(Fe),r.d(Fe,{init:()=>cj,metadata:()=>ij,name:()=>sj,settings:()=>lj});var Ee={};r.r(Ee),r.d(Ee,{init:()=>yj,metadata:()=>dj,name:()=>bj,settings:()=>fj});var Oe={};r.r(Oe),r.d(Oe,{init:()=>Bj,metadata:()=>vj,name:()=>jj,settings:()=>Sj});var Ge={};r.r(Ge),r.d(Ge,{init:()=>Aj,metadata:()=>Nj,name:()=>Mj,settings:()=>zj});var $e={};r.r($e),r.d($e,{init:()=>qj,metadata:()=>Ej,name:()=>$j,settings:()=>Uj});var Ue={};r.r(Ue),r.d(Ue,{init:()=>eS,metadata:()=>Kj,name:()=>Yj,settings:()=>Xj});var qe={};r.r(qe),r.d(qe,{init:()=>gS,metadata:()=>uS,name:()=>pS,settings:()=>mS});var We={};r.r(We),r.d(We,{init:()=>eB,metadata:()=>WS,name:()=>YS,settings:()=>XS});var Ze={};r.r(Ze),r.d(Ze,{init:()=>dB,metadata:()=>oB,name:()=>cB,settings:()=>uB});var Je={};r.r(Je),r.d(Je,{init:()=>xB,metadata:()=>mB,name:()=>hB,settings:()=>_B});var Qe={};r.r(Qe),r.d(Qe,{init:()=>QB,metadata:()=>jB,name:()=>ZB,settings:()=>JB});var Ke={};r.r(Ke),r.d(Ke,{init:()=>lT,metadata:()=>YB,name:()=>iT,settings:()=>sT});var Ye={};r.r(Ye),r.d(Ye,{init:()=>gT,metadata:()=>uT,name:()=>pT,settings:()=>mT});var Xe={};r.r(Xe),r.d(Xe,{init:()=>yT,metadata:()=>_T,name:()=>bT,settings:()=>fT});var et={};r.r(et),r.d(et,{init:()=>UT,metadata:()=>vT,name:()=>GT,settings:()=>$T});var tt={};r.r(tt),r.d(tt,{init:()=>YT,metadata:()=>qT,name:()=>QT,settings:()=>KT});var ot={};r.r(ot),r.d(ot,{init:()=>nN,metadata:()=>XT,name:()=>tN,settings:()=>oN});var nt={};r.r(nt),r.d(nt,{init:()=>pN,metadata:()=>sN,name:()=>uN,settings:()=>dN});var rt={};r.r(rt),r.d(rt,{init:()=>zN,metadata:()=>gN,name:()=>DN,settings:()=>MN});var at={};r.r(at),r.d(at,{init:()=>JN,metadata:()=>AN,name:()=>WN,settings:()=>ZN});const it=window.ReactJSXRuntime,st=window.wp.blocks,lt=window.wp.data,ct=window.wp.blockEditor,ut=window.wp.serverSideRender;var dt=r.n(ut);const pt=window.wp.i18n,mt=window.wp.components,gt=window.wp.element,ht=window.wp.blob,_t=window.wp.coreData,xt=window.wp.compose;function bt(e,t,o){return(0,lt.useSelect)((n=>n(_t.store).canUser("update",{kind:e,name:t,id:o})),[e,t,o])}function ft(e={}){const t=(0,gt.useRef)(e),o=(0,gt.useRef)(!1),{getSettings:n}=(0,lt.useSelect)(ct.store);(0,gt.useLayoutEffect)((()=>{t.current=e})),(0,gt.useEffect)((()=>{if(o.current)return;if(!t.current.url||!(0,ht.isBlobURL)(t.current.url))return;const e=(0,ht.getBlobByURL)(t.current.url);if(!e)return;const{url:r,allowedTypes:a,onChange:i,onError:s}=t.current,{mediaUpload:l}=n();l&&(o.current=!0,l({filesList:[e],allowedTypes:a,onFileChange:([e])=>{(0,ht.isBlobURL)(e?.url)||((0,ht.revokeBlobURL)(r),i(e),o.current=!1)},onError:e=>{(0,ht.revokeBlobURL)(r),s(e),o.current=!1}}))}),[n])}function yt(){const{avatarURL:e}=(0,lt.useSelect)((e=>{const{getSettings:t}=e(ct.store),{__experimentalDiscussionSettings:o}=t();return o}));return e}function vt(){return(0,xt.useViewportMatch)("medium","<")?{}:{popoverProps:{placement:"left-start",offset:259}}}const kt="core/accordion-item",wt={name:kt};const Ct=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/accordion","title":"Accordion","category":"design","description":"Displays a foldable layout that groups content in collapsible sections.","example":{},"supports":{"anchor":true,"html":false,"align":["wide","full"],"background":{"backgroundImage":true,"backgroundSize":true,"__experimentalDefaultControls":{"backgroundImage":true}},"color":{"background":true,"gradients":true},"__experimentalBorder":{"color":true,"radius":true,"style":true,"width":true,"__experimentalDefaultControls":{"color":true,"radius":true,"style":true,"width":true}},"spacing":{"padding":true,"margin":["top","bottom"],"blockGap":true},"shadow":true,"layout":true,"ariaLabel":true,"interactivity":true,"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"contentRole":true},"attributes":{"iconPosition":{"type":"string","default":"right"},"showIcon":{"type":"boolean","default":true},"autoclose":{"type":"boolean","default":false},"headingLevel":{"type":"number","default":3},"levelOptions":{"type":"array"}},"providesContext":{"core/accordion-icon-position":"iconPosition","core/accordion-show-icon":"showIcon","core/accordion-heading-level":"headingLevel"},"allowedBlocks":["core/accordion-item"],"textdomain":"default","viewScriptModule":"@wordpress/block-library/accordion/view"}');function jt(e){if(!e)return;const{metadata:t,settings:o,name:n}=e;return(0,st.registerBlockType)({name:n,...t},o)}const St=window.wp.primitives;var Bt=(0,it.jsxs)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,it.jsx)(St.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M19.5 9.25L9.5 9.25L9.5 7.75L19.5 7.75L19.5 9.25Z",fill:"currentColor"}),(0,it.jsx)(St.Path,{d:"M4.5 6L8.5 8.5L4.5 11L4.5 6Z",fill:"currentColor"}),(0,it.jsx)(St.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M19.5 16.25L9.5 16.25L9.5 14.75L19.5 14.75L19.5 16.25Z",fill:"currentColor"}),(0,it.jsx)(St.Path,{d:"M4.5 13L8.5 15.5L4.5 18L4.5 13Z",fill:"currentColor"})]});const{name:Tt}=Ct,Nt={icon:Bt,example:{innerBlocks:[{name:"core/accordion-item",innerBlocks:[{name:"core/accordion-heading",attributes:{title:(0,pt.__)("Lorem ipsum dolor sit amet, consectetur.")}}]},{name:"core/accordion-item",innerBlocks:[{name:"core/accordion-heading",attributes:{title:(0,pt.__)("Suspendisse commodo lacus, interdum et.")}}]}]},edit:function({attributes:{autoclose:e,iconPosition:t,showIcon:o,headingLevel:n,levelOptions:r},clientId:a,setAttributes:i,isSelected:s}){const l=(0,lt.useRegistry)(),{getBlockOrder:c}=(0,lt.useSelect)(ct.store),u=(0,ct.useBlockProps)({role:"group"}),d=vt(),{updateBlockAttributes:p,insertBlock:m}=(0,lt.useDispatch)(ct.store),g="contentOnly"===(0,ct.useBlockEditingMode)(),h=(0,ct.useInnerBlocksProps)(u,{template:[[kt]],defaultBlock:wt,directInsert:!0,templateInsertUpdatesSelection:!0});return(0,it.jsxs)(it.Fragment,{children:[s&&!g&&(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.BlockControls,{children:(0,it.jsx)(mt.ToolbarGroup,{children:(0,it.jsx)(ct.HeadingLevelDropdown,{value:n,options:r,onChange:e=>{const t=c(a),o=[];t.forEach((e=>{const t=c(e);o.push(...t)})),l.batch((()=>{i({headingLevel:e}),p(o,{level:e})}))}})})}),(0,it.jsx)(ct.BlockControls,{group:"other",children:(0,it.jsx)(mt.ToolbarButton,{onClick:()=>{const e=(0,st.createBlock)(kt,{},[(0,st.createBlock)("core/accordion-heading",{level:n}),(0,st.createBlock)("core/accordion-panel",{})]);m(e,void 0,a)},children:(0,pt.__)("Add item")})})]}),(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{i({autoclose:!1,showIcon:!0,iconPosition:"right"})},dropdownMenuProps:d,children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Auto-close"),isShownByDefault:!0,hasValue:()=>!!e,onDeselect:()=>i({autoclose:!1}),children:(0,it.jsx)(mt.ToggleControl,{isBlock:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("Auto-close"),onChange:e=>{i({autoclose:e})},checked:e,help:(0,pt.__)("Automatically close accordions when a new one is opened.")})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Show icon"),isShownByDefault:!0,hasValue:()=>!o,onDeselect:()=>i({showIcon:!0}),children:(0,it.jsx)(mt.ToggleControl,{isBlock:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("Show icon"),onChange:e=>{i({showIcon:e,iconPosition:e?t:"right"})},checked:o,help:(0,pt.__)("Display a plus icon next to the accordion header.")})}),o&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Icon Position"),isShownByDefault:!0,hasValue:()=>"right"!==t,onDeselect:()=>i({iconPosition:"right"}),children:(0,it.jsxs)(mt.__experimentalToggleGroupControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,isBlock:!0,label:(0,pt.__)("Icon Position"),value:t,onChange:e=>{i({iconPosition:e})},children:[(0,it.jsx)(mt.__experimentalToggleGroupControlOption,{label:(0,pt.__)("Left"),value:"left"}),(0,it.jsx)(mt.__experimentalToggleGroupControlOption,{label:(0,pt.__)("Right"),value:"right"})]})})]})},"setting"),(0,it.jsx)("div",{...h})]})},save:function(){const e=ct.useBlockProps.save({role:"group"});return(0,it.jsx)("div",{...ct.useInnerBlocksProps.save(e)})}},Pt=()=>jt({name:Tt,metadata:Ct,settings:Nt});function It(e){var t,o,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(o=It(e[t]))&&(n&&(n+=" "),n+=o)}else for(o in e)e[o]&&(n&&(n+=" "),n+=o);return n}const Dt=function(){for(var e,t,o=0,n="",r=arguments.length;o<r;o++)(e=arguments[o])&&(t=It(e))&&(n&&(n+=" "),n+=t);return n};const Mt=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/accordion-item","title":"Accordion Item","category":"design","description":"Wraps the heading and panel in one unit.","parent":["core/accordion"],"allowedBlocks":["core/accordion-heading","core/accordion-panel"],"supports":{"html":false,"color":{"background":true,"gradients":true},"interactivity":true,"spacing":{"margin":["top","bottom"],"blockGap":true},"__experimentalBorder":{"color":true,"radius":true,"style":true,"width":true,"__experimentalDefaultControls":{"color":true,"radius":true,"style":true,"width":true}},"shadow":true,"layout":{"allowEditing":false},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"contentRole":true},"attributes":{"openByDefault":{"type":"boolean","default":false}},"textdomain":"default","style":"wp-block-accordion-item"}');var zt=(0,it.jsxs)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,it.jsx)(St.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M19.5 9.5L9.5 9.5L9.5 8L19.5 8L19.5 9.5Z",fill:"currentColor"}),(0,it.jsx)(St.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M19.5 13L9.5 13L9.5 11.5L19.5 11.5L19.5 13Z",fill:"currentColor"}),(0,it.jsx)(St.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M19.5 16.3999L9.5 16.3999L9.5 14.8999L19.5 14.8999L19.5 16.3999Z",fill:"currentColor"}),(0,it.jsx)(St.Path,{d:"M4.5 6.25L8.5 8.75L4.5 11.25L4.5 6.25Z",fill:"currentColor"})]});const{name:At}=Mt,Lt={icon:zt,edit:function({attributes:e,clientId:t,setAttributes:o,context:n}){const{openByDefault:r}=e,a=vt(),{isSelected:i,getBlockOrder:s}=(0,lt.useSelect)((e=>{const{isBlockSelected:o,hasSelectedInnerBlock:n,getBlockOrder:r}=e(ct.store);return{isSelected:o(t)||n(t,!0),getBlockOrder:r}}),[t]),l=s(t)[1],{updateBlockAttributes:c,__unstableMarkNextChangeAsNotPersistent:u}=(0,lt.useDispatch)(ct.store);(0,gt.useEffect)((()=>{l&&(u(),c(l,{isSelected:i}))}),[i,l,u,c]);const d=(0,ct.useBlockProps)({className:Dt({"is-open":r||i})}),p=n&&n["core/accordion-heading-level"],m=(0,ct.useInnerBlocksProps)(d,{template:[["core/accordion-heading",p?{level:p}:{}],["core/accordion-panel",{openByDefault:r}]],templateLock:"all",directInsert:!0,templateInsertUpdatesSelection:!0});return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsx)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{o({openByDefault:!1}),l&&c(l,{openByDefault:!1})},dropdownMenuProps:a,children:(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Open by default"),isShownByDefault:!0,hasValue:()=>!!r,onDeselect:()=>{o({openByDefault:!1}),l&&c(l,{openByDefault:!1})},children:(0,it.jsx)(mt.ToggleControl,{label:(0,pt.__)("Open by default"),__nextHasNoMarginBottom:!0,onChange:e=>{o({openByDefault:e}),l&&c(l,{openByDefault:e})},checked:r,help:(0,pt.__)("Accordion content will be displayed by default.")})})})},"setting"),(0,it.jsx)("div",{...m})]})},save:function({attributes:e}){const{openByDefault:t}=e,o=ct.useBlockProps.save({className:Dt({"is-open":t})}),n=ct.useInnerBlocksProps.save(o);return(0,it.jsx)("div",{...n})}},Ht=()=>jt({name:At,metadata:Mt,settings:Lt});const Rt=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/accordion-heading","title":"Accordion Heading","category":"design","description":"Displays a heading that toggles the accordion panel.","parent":["core/accordion-item"],"usesContext":["core/accordion-icon-position","core/accordion-show-icon","core/accordion-heading-level"],"supports":{"anchor":true,"color":{"background":true,"gradients":true},"align":false,"interactivity":true,"spacing":{"padding":true,"__experimentalDefaultControls":{"padding":true},"__experimentalSkipSerialization":true,"__experimentalSelector":".wp-block-accordion-heading__toggle"},"__experimentalBorder":{"color":true,"radius":true,"style":true,"width":true,"__experimentalDefaultControls":{"color":true,"radius":true,"style":true,"width":true}},"typography":{"__experimentalSkipSerialization":["textDecoration","letterSpacing"],"fontSize":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true,"fontFamily":true}},"shadow":true,"blockVisibility":false,"lock":false},"selectors":{"typography":{"letterSpacing":".wp-block-accordion-heading .wp-block-accordion-heading__toggle-title","textDecoration":".wp-block-accordion-heading .wp-block-accordion-heading__toggle-title"}},"attributes":{"openByDefault":{"type":"boolean","default":false},"title":{"type":"rich-text","source":"rich-text","selector":".wp-block-accordion-heading__toggle-title","role":"content"},"level":{"type":"number"},"iconPosition":{"type":"string","enum":["left","right"],"default":"right"},"showIcon":{"type":"boolean","default":true}},"textdomain":"default"}');var Vt=(0,it.jsxs)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,it.jsx)(St.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M19.5 12.75L9.5 12.75L9.5 11.25L19.5 11.25L19.5 12.75Z",fill:"currentColor"}),(0,it.jsx)(St.Path,{d:"M4.5 9.5L8.5 12L4.5 14.5L4.5 9.5Z",fill:"currentColor"})]});const Ft={attributes:{openByDefault:{type:"boolean",default:!1},title:{type:"rich-text",source:"rich-text",selector:".wp-block-accordion-heading__toggle-title",role:"content"},level:{type:"number"},iconPosition:{type:"string",enum:["left","right"],default:"right"},showIcon:{type:"boolean",default:!0}},supports:{anchor:!0,color:{background:!0,gradients:!0},align:!1,interactivity:!0,spacing:{padding:!0,__experimentalDefaultControls:{padding:!0},__experimentalSkipSerialization:!0,__experimentalSelector:".wp-block-accordion-heading__toggle"},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},typography:{fontSize:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0,fontFamily:!0}},shadow:!0,blockVisibility:!1},save({attributes:e}){const{level:t,title:o,iconPosition:n,showIcon:r}=e,a="h"+(t||3),i=ct.useBlockProps.save(),s=(0,ct.__experimentalGetSpacingClassesAndStyles)(e);return(0,it.jsx)(a,{...i,children:(0,it.jsxs)("button",{className:"wp-block-accordion-heading__toggle",style:s.style,children:[r&&"left"===n&&(0,it.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"}),(0,it.jsx)(ct.RichText.Content,{className:"wp-block-accordion-heading__toggle-title",tagName:"span",value:o}),r&&"right"===n&&(0,it.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"})]})})}};var Et=[Ft];const{name:Ot}=Rt,Gt={icon:Vt,edit:function({attributes:e,setAttributes:t,context:o}){const{title:n}=e,{"core/accordion-icon-position":r,"core/accordion-show-icon":a,"core/accordion-heading-level":i}=o,s="h"+i;(0,gt.useEffect)((()=>{void 0!==r&&void 0!==a&&t({iconPosition:r,showIcon:a})}),[r,a,t]);const[l,c]=(0,ct.useSettings)("typography.fluid","layout"),u=(0,ct.getTypographyClassesAndStyles)(e,{typography:{fluid:l},layout:{wideSize:c?.wideSize}}),d=(0,ct.useBlockProps)(),p=(0,ct.__experimentalGetSpacingClassesAndStyles)(e);return(0,it.jsx)(s,{...d,children:(0,it.jsxs)("button",{className:"wp-block-accordion-heading__toggle",style:p.style,tabIndex:"-1",children:[a&&"left"===r&&(0,it.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"}),(0,it.jsx)(ct.RichText,{withoutInteractiveFormatting:!0,disableLineBreaks:!0,tagName:"span",value:n,onChange:e=>t({title:e}),placeholder:(0,pt.__)("Accordion title"),className:"wp-block-accordion-heading__toggle-title",style:{letterSpacing:u.style.letterSpacing,textDecoration:u.style.textDecoration}}),a&&"right"===r&&(0,it.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"})]})})},save:function({attributes:e}){const{level:t,title:o,iconPosition:n,showIcon:r}=e,a="h"+(t||3),i=(0,ct.getTypographyClassesAndStyles)(e),s=ct.useBlockProps.save(),l=(0,ct.__experimentalGetSpacingClassesAndStyles)(e);return(0,it.jsx)(a,{...s,children:(0,it.jsxs)("button",{className:"wp-block-accordion-heading__toggle",style:l.style,children:[r&&"left"===n&&(0,it.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"}),(0,it.jsx)(ct.RichText.Content,{className:"wp-block-accordion-heading__toggle-title",tagName:"span",value:o,style:{letterSpacing:i.style.letterSpacing,textDecoration:i.style.textDecoration}}),r&&"right"===n&&(0,it.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"})]})})},deprecated:Et},$t=()=>jt({name:Ot,metadata:Rt,settings:Gt});const Ut=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/accordion-panel","title":"Accordion Panel","category":"design","description":"Contains the hidden or revealed content beneath the heading.","parent":["core/accordion-item"],"supports":{"html":false,"color":{"background":true,"gradients":true},"interactivity":true,"spacing":{"padding":true,"blockGap":true,"__experimentalDefaultControls":{"padding":true,"blockGap":true}},"__experimentalBorder":{"color":true,"radius":true,"style":true,"width":true,"__experimentalDefaultControls":{"color":true,"radius":true,"style":true,"width":true}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"shadow":true,"layout":{"allowEditing":false},"blockVisibility":false,"contentRole":true,"allowedBlocks":true,"lock":false},"attributes":{"templateLock":{"type":["string","boolean"],"enum":["all","insert","contentOnly",false],"default":false},"openByDefault":{"type":"boolean","default":false},"isSelected":{"type":"boolean","default":false}},"textdomain":"default","style":"wp-block-accordion-panel"}');var qt=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M8.10417 6.00024H6.5C5.39543 6.00024 4.5 6.89567 4.5 8.00024V10.3336H6V8.00024C6 7.7241 6.22386 7.50024 6.5 7.50024H8.10417V6.00024ZM4.5 13.6669V16.0002C4.5 17.1048 5.39543 18.0002 6.5 18.0002H8.10417V16.5002H6.5C6.22386 16.5002 6 16.2764 6 16.0002V13.6669H4.5ZM10.3958 6.00024V7.50024H13.6042V6.00024H10.3958ZM15.8958 6.00024V7.50024H17.5C17.7761 7.50024 18 7.7241 18 8.00024V10.3336H19.5V8.00024C19.5 6.89567 18.6046 6.00024 17.5 6.00024H15.8958ZM19.5 13.6669H18V16.0002C18 16.2764 17.7761 16.5002 17.5 16.5002H15.8958V18.0002H17.5C18.6046 18.0002 19.5 17.1048 19.5 16.0002V13.6669ZM13.6042 18.0002V16.5002H10.3958V18.0002H13.6042Z",fill:"currentColor"})});const{name:Wt}=Ut,Zt={icon:qt,edit:function({attributes:e}){const{allowedBlocks:t,templateLock:o,openByDefault:n,isSelected:r}=e,a=(0,ct.useBlockProps)({"aria-hidden":!r&&!n,role:"region"}),i=(0,ct.useInnerBlocksProps)(a,{allowedBlocks:t,template:[["core/paragraph",{}]],templateLock:o});return(0,it.jsx)("div",{...i})},save:function(){const e=ct.useBlockProps.save({role:"region"}),t=ct.useInnerBlocksProps.save(e);return(0,it.jsx)("div",{...t})}},Jt=()=>jt({name:Wt,metadata:Ut,settings:Zt});var Qt=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M11.934 7.406a1 1 0 0 0 .914.594H19a.5.5 0 0 1 .5.5v9a.5.5 0 0 1-.5.5H5a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5h5.764a.5.5 0 0 1 .447.276l.723 1.63Zm1.064-1.216a.5.5 0 0 0 .462.31H19a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h5.764a2 2 0 0 1 1.789 1.106l.445 1.084ZM8.5 10.5h7V12h-7v-1.5Zm7 3.5h-7v1.5h7V14Z"})});const Kt=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/archives","title":"Archives","category":"widgets","description":"Display a date archive of your posts.","textdomain":"default","attributes":{"displayAsDropdown":{"type":"boolean","default":false},"showLabel":{"type":"boolean","default":true},"showPostCounts":{"type":"boolean","default":false},"type":{"type":"string","default":"monthly"}},"supports":{"align":true,"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true},"html":false,"spacing":{"margin":true,"padding":true,"__experimentalDefaultControls":{"margin":false,"padding":false}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"color":{"gradients":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true,"link":true}},"interactivity":{"clientNavigation":true}},"editorStyle":"wp-block-archives-editor"}');const{name:Yt}=Kt,Xt={icon:Qt,example:{},edit:function({attributes:e,setAttributes:t}){const{showLabel:o,showPostCounts:n,displayAsDropdown:r,type:a}=e,i=vt();return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{t({displayAsDropdown:!1,showLabel:!0,showPostCounts:!1,type:"monthly"})},dropdownMenuProps:i,children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Display as dropdown"),isShownByDefault:!0,hasValue:()=>r,onDeselect:()=>t({displayAsDropdown:!1}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Display as dropdown"),checked:r,onChange:()=>t({displayAsDropdown:!r})})}),r&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Show label"),isShownByDefault:!0,hasValue:()=>!o,onDeselect:()=>t({showLabel:!0}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Show label"),checked:o,onChange:()=>t({showLabel:!o})})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Show post counts"),isShownByDefault:!0,hasValue:()=>n,onDeselect:()=>t({showPostCounts:!1}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Show post counts"),checked:n,onChange:()=>t({showPostCounts:!n})})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Group by"),isShownByDefault:!0,hasValue:()=>"monthly"!==a,onDeselect:()=>t({type:"monthly"}),children:(0,it.jsx)(mt.SelectControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("Group by"),options:[{label:(0,pt.__)("Year"),value:"yearly"},{label:(0,pt.__)("Month"),value:"monthly"},{label:(0,pt.__)("Week"),value:"weekly"},{label:(0,pt.__)("Day"),value:"daily"}],value:a,onChange:e=>t({type:e})})})]})}),(0,it.jsx)("div",{...(0,ct.useBlockProps)(),children:(0,it.jsx)(mt.Disabled,{children:(0,it.jsx)(dt(),{block:"core/archives",skipBlockSupportAttributes:!0,attributes:e})})})]})}},eo=()=>jt({name:Yt,metadata:Kt,settings:Xt});var to=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{fillRule:"evenodd",d:"M7.25 16.437a6.5 6.5 0 1 1 9.5 0V16A2.75 2.75 0 0 0 14 13.25h-4A2.75 2.75 0 0 0 7.25 16v.437Zm1.5 1.193a6.47 6.47 0 0 0 3.25.87 6.47 6.47 0 0 0 3.25-.87V16c0-.69-.56-1.25-1.25-1.25h-4c-.69 0-1.25.56-1.25 1.25v1.63ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm10-2a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z",clipRule:"evenodd"})});const oo=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/avatar","title":"Avatar","category":"theme","description":"Add a user’s avatar.","textdomain":"default","attributes":{"userId":{"type":"number"},"size":{"type":"number","default":96},"isLink":{"type":"boolean","default":false},"linkTarget":{"type":"string","default":"_self"}},"usesContext":["postType","postId","commentId"],"supports":{"html":false,"align":true,"alignWide":false,"spacing":{"margin":true,"padding":true,"__experimentalDefaultControls":{"margin":false,"padding":false}},"__experimentalBorder":{"__experimentalSkipSerialization":true,"radius":true,"width":true,"color":true,"style":true,"__experimentalDefaultControls":{"radius":true}},"color":{"text":false,"background":false},"filter":{"duotone":true},"interactivity":{"clientNavigation":true}},"selectors":{"border":".wp-block-avatar img","filter":{"duotone":".wp-block-avatar img"}},"editorStyle":"wp-block-avatar-editor","style":"wp-block-avatar"}'),no=window.wp.url;function ro(e){const t=e?e[0]:24,o=e?e[e.length-1]:96;return{minSize:t,maxSize:Math.floor(2.5*o)}}const ao=window.wp.htmlEntities,io={who:"authors",per_page:100,_fields:"id,name",context:"view"};function so({value:e,onChange:t}){const[o,n]=(0,gt.useState)(""),{authors:r,isLoading:a}=(0,lt.useSelect)((e=>{const{getUsers:t,isResolving:n}=e(_t.store),r={...io};return o&&(r.search=o,r.search_columns=["name"]),{authors:t(r),isLoading:n("getUsers",[r])}}),[o]),i=(0,gt.useMemo)((()=>(r??[]).map((e=>({value:e.id,label:(0,ao.decodeEntities)(e.name)})))),[r]);return(0,it.jsx)(mt.ComboboxControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("User"),help:(0,pt.__)("Select the avatar user to display, if it is blank it will use the post/page author."),value:e,onChange:t,options:i,onFilterValueChange:(0,xt.debounce)(n,300),isLoading:a})}const lo=({setAttributes:e,avatar:t,attributes:o,selectUser:n})=>{const r=vt();return(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{e({size:96,isLink:!1,linkTarget:"_self",userId:void 0})},dropdownMenuProps:r,children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Image size"),isShownByDefault:!0,hasValue:()=>96!==o?.size,onDeselect:()=>e({size:96}),children:(0,it.jsx)(mt.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,pt.__)("Image size"),onChange:t=>e({size:t}),min:t.minSize,max:t.maxSize,initialPosition:o?.size,value:o?.size})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Link to user profile"),isShownByDefault:!0,hasValue:()=>o?.isLink,onDeselect:()=>e({isLink:!1}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Link to user profile"),onChange:()=>e({isLink:!o.isLink}),checked:o.isLink})}),o.isLink&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>"_self"!==o?.linkTarget,onDeselect:()=>e({linkTarget:"_self"}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Open in new tab"),onChange:t=>e({linkTarget:t?"_blank":"_self"}),checked:"_blank"===o.linkTarget})}),n&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("User"),isShownByDefault:!0,hasValue:()=>!!o?.userId,onDeselect:()=>e({userId:void 0}),children:(0,it.jsx)(so,{value:o?.userId,onChange:t=>{e({userId:t})}})})]})})},co=({setAttributes:e,attributes:t,avatar:o,blockProps:n,isSelected:r})=>{const a=(0,ct.__experimentalUseBorderProps)(t),i=(0,no.addQueryArgs)((0,no.removeQueryArgs)(o?.src,["s"]),{s:2*t?.size});return(0,it.jsx)("div",{...n,children:(0,it.jsx)(mt.ResizableBox,{size:{width:t.size,height:t.size},showHandle:r,onResizeStop:(o,n,r,a)=>{e({size:parseInt(t.size+(a.height||a.width),10)})},lockAspectRatio:!0,enable:{top:!1,right:!(0,pt.isRTL)(),bottom:!0,left:(0,pt.isRTL)()},minWidth:o.minSize,maxWidth:o.maxSize,children:(0,it.jsx)("img",{src:i,alt:o.alt,className:Dt("avatar","avatar-"+t.size,"photo","wp-block-avatar__image",a.className),style:a.style})})})},uo=({attributes:e,context:t,setAttributes:o,isSelected:n})=>{const{commentId:r}=t,a=(0,ct.useBlockProps)(),i=function({commentId:e}){const[t]=(0,_t.useEntityProp)("root","comment","author_avatar_urls",e),[o]=(0,_t.useEntityProp)("root","comment","author_name",e),n=t?Object.values(t):null,r=t?Object.keys(t):null,{minSize:a,maxSize:i}=ro(r),s=yt();return{src:n?n[n.length-1]:s,minSize:a,maxSize:i,alt:o?(0,pt.sprintf)((0,pt.__)("%s Avatar"),o):(0,pt.__)("Default Avatar")}}({commentId:r});return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(lo,{avatar:i,setAttributes:o,attributes:e,selectUser:!1}),e.isLink?(0,it.jsx)("a",{href:"#avatar-pseudo-link",className:"wp-block-avatar__link",onClick:e=>e.preventDefault(),children:(0,it.jsx)(co,{attributes:e,avatar:i,blockProps:a,isSelected:n,setAttributes:o})}):(0,it.jsx)(co,{attributes:e,avatar:i,blockProps:a,isSelected:n,setAttributes:o})]})},po=({attributes:e,context:t,setAttributes:o,isSelected:n})=>{const{postId:r,postType:a}=t,i=function({userId:e,postId:t,postType:o}){const{authorDetails:n}=(0,lt.useSelect)((n=>{const{getEditedEntityRecord:r,getUser:a}=n(_t.store);if(e)return{authorDetails:a(e)};const i=r("postType",o,t)?.author;return{authorDetails:i?a(i):null}}),[o,t,e]),r=n?.avatar_urls?Object.values(n.avatar_urls):null,a=n?.avatar_urls?Object.keys(n.avatar_urls):null,{minSize:i,maxSize:s}=ro(a),l=yt();return{src:r?r[r.length-1]:l,minSize:i,maxSize:s,alt:n?(0,pt.sprintf)((0,pt.__)("%s Avatar"),n?.name):(0,pt.__)("Default Avatar")}}({userId:e?.userId,postId:r,postType:a}),s=(0,ct.useBlockProps)();return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(lo,{selectUser:!0,attributes:e,avatar:i,setAttributes:o}),e.isLink?(0,it.jsx)("a",{href:"#avatar-pseudo-link",className:"wp-block-avatar__link",onClick:e=>e.preventDefault(),children:(0,it.jsx)(co,{attributes:e,avatar:i,blockProps:s,isSelected:n,setAttributes:o})}):(0,it.jsx)(co,{attributes:e,avatar:i,blockProps:s,isSelected:n,setAttributes:o})]})};const{name:mo}=oo,go={icon:to,edit:function(e){return e?.context?.commentId||null===e?.context?.commentId?(0,it.jsx)(uo,{...e}):(0,it.jsx)(po,{...e})},example:{}},ho=()=>jt({name:mo,metadata:oo,settings:go});var _o=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.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"})}),xo=[{attributes:{src:{type:"string",source:"attribute",selector:"audio",attribute:"src"},caption:{type:"string",source:"html",selector:"figcaption"},id:{type:"number"},autoplay:{type:"boolean",source:"attribute",selector:"audio",attribute:"autoplay"},loop:{type:"boolean",source:"attribute",selector:"audio",attribute:"loop"},preload:{type:"string",source:"attribute",selector:"audio",attribute:"preload"}},supports:{align:!0},save({attributes:e}){const{autoplay:t,caption:o,loop:n,preload:r,src:a}=e;return(0,it.jsxs)("figure",{children:[(0,it.jsx)("audio",{controls:"controls",src:a,autoPlay:t,loop:n,preload:r}),!ct.RichText.isEmpty(o)&&(0,it.jsx)(ct.RichText.Content,{tagName:"figcaption",value:o})]})}}];const bo=window.wp.notices;function fo(e,t){var o,n,r=0;function a(){var a,i,s=o,l=arguments.length;e:for(;s;){if(s.args.length===arguments.length){for(i=0;i<l;i++)if(s.args[i]!==arguments[i]){s=s.next;continue e}return s!==o&&(s===n&&(n=s.prev),s.prev.next=s.next,s.next&&(s.next.prev=s.prev),s.next=o,s.prev=null,o.prev=s,o=s),s.val}s=s.next}for(a=new Array(l),i=0;i<l;i++)a[i]=arguments[i];return s={args:a,val:e.apply(null,a)},o?(o.prev=s,s.next=o):n=s,r===t.maxSize?(n=n.prev).next=null:r++,o=s,s.val}return t=t||{},a.clear=function(){o=null,n=null,r=0},a}const yo=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"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","role":"content"},"caption":{"type":"rich-text","source":"rich-text","selector":"figcaption","role":"content"},"type":{"type":"string","role":"content"},"providerNameSlug":{"type":"string","role":"content"},"allowResponsive":{"type":"boolean","default":true},"responsive":{"type":"boolean","default":false,"role":"content"},"previewable":{"type":"boolean","default":true,"role":"content"}},"supports":{"align":true,"spacing":{"margin":true},"interactivity":{"clientNavigation":true}},"editorStyle":"wp-block-embed-editor","style":"wp-block-embed"}'),vo=[{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"}],ko="wp-embed",wo=window.wp.privateApis,{lock:Co,unlock:jo}=(0,wo.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.","@wordpress/block-library"),{name:So}=yo,{kebabCase:Bo}=jo(mt.privateApis),To=e=>e&&e.includes('class="wp-embedded-content"'),No=(e,t={})=>{const{preview:o,attributes:n={}}=e,{url:r,providerNameSlug:a,type:i,...s}=n;if(!r||!(0,st.getBlockType)(So))return;const l=(e=>(0,st.getBlockVariations)(So)?.find((({patterns:t})=>((e,t=[])=>t.some((t=>e.match(t))))(e,t))))(r),c="wordpress"===a||i===ko;if(!c&&l&&(l.attributes.providerNameSlug!==a||!a))return(0,st.createBlock)(So,{url:r,...s,...l.attributes});const u=(0,st.getBlockVariations)(So)?.find((({name:e})=>"wordpress"===e));return u&&o&&To(o.html)&&!c?(0,st.createBlock)(So,{url:r,...u.attributes,...t}):void 0},Po=e=>{if(!e)return e;const t=vo.reduce(((e,{className:t})=>(e.push(t),e)),["wp-has-aspect-ratio"]);let o=e;for(const e of t)o=o.replace(e,"");return o.trim()};function Io(e,t,o=!0){if(!o)return Po(t);const n=document.implementation.createHTMLDocument("");n.body.innerHTML=e;const r=n.body.querySelector("iframe");if(r&&r.height&&r.width){const e=(r.width/r.height).toFixed(2);for(let o=0;o<vo.length;o++){const n=vo[o];if(e>=n.ratio){return e-n.ratio>.1?Po(t):Dt(Po(t),n.className,"wp-has-aspect-ratio")}}}return t}const Do=fo(((e,t,o,n,r=!0)=>{if(!e)return{};const a={};let{type:i="rich"}=e;const{html:s,provider_name:l}=e,c=Bo((l||t).toLowerCase());return To(s)&&(i=ko),(s||"photo"===i)&&(a.type=i,a.providerNameSlug=c),(u=o)&&vo.some((({className:e})=>u.includes(e)))||(a.className=Io(s,o,n&&r)),a;var u}));var Mo=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M6 5.5h12a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H6a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5ZM4 6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6Zm4 10h2v-1.5H8V16Zm5 0h-2v-1.5h2V16Zm1 0h2v-1.5h-2V16Z"})});function zo({attributeKey:e="caption",attributes:t,setAttributes:o,isSelected:n,insertBlocksAfter:r,placeholder:a=(0,pt.__)("Add caption"),label:i=(0,pt.__)("Caption text"),showToolbarButton:s=!0,excludeElementClassName:l,className:c,readOnly:u,tagName:d="figcaption",addLabel:p=(0,pt.__)("Add caption"),removeLabel:m=(0,pt.__)("Remove caption"),icon:g=Mo,...h}){const _=t[e],x=(0,xt.usePrevious)(_),{PrivateRichText:b}=jo(ct.privateApis),f=b.isEmpty(_),y=b.isEmpty(x),[v,k]=(0,gt.useState)(!f);(0,gt.useEffect)((()=>{!f&&y&&k(!0)}),[f,y]),(0,gt.useEffect)((()=>{!n&&f&&k(!1)}),[n,f]);const w=(0,gt.useCallback)((e=>{e&&f&&e.focus()}),[f]);return(0,it.jsxs)(it.Fragment,{children:[s&&(0,it.jsx)(ct.BlockControls,{group:"block",children:(0,it.jsx)(mt.ToolbarButton,{onClick:()=>{k(!v),v&&_&&o({[e]:void 0})},icon:g,isPressed:v,label:v?m:p})}),v&&(!b.isEmpty(_)||n)&&(0,it.jsx)(b,{identifier:e,tagName:d,className:Dt(c,l?"":(0,ct.__experimentalGetElementClassName)("caption")),ref:w,"aria-label":i,placeholder:a,value:_,onChange:t=>o({[e]:t}),inlineToolbar:!0,__unstableOnSplitAtEnd:()=>r((0,st.createBlock)((0,st.getDefaultBlockName)())),readOnly:u,...h})]})}const Ao=["audio"];var Lo=function({attributes:e,className:t,setAttributes:o,onReplace:n,isSelected:r,insertBlocksAfter:a}){const{id:i,autoplay:s,loop:l,preload:c,src:u}=e,[d,p]=(0,gt.useState)(e.blob),m="default"===(0,ct.useBlockEditingMode)();function g(e){return t=>{o({[e]:t})}}function h(e){if(e!==u){const t=No({attributes:{url:e}});if(void 0!==t&&n)return void n(t);o({src:e,id:void 0,blob:void 0}),p()}}ft({url:d,allowedTypes:Ao,onChange:b,onError:x});const{createErrorNotice:_}=(0,lt.useDispatch)(bo.store);function x(e){_(e,{type:"snackbar"})}function b(e){if(!e||!e.url)return o({src:void 0,id:void 0,caption:void 0,blob:void 0}),void p();(0,ht.isBlobURL)(e.url)?p(e.url):(o({blob:void 0,src:e.url,id:e.id,caption:e.caption}),p())}const f=Dt(t,{"is-transient":!!d}),y=(0,ct.useBlockProps)({className:f}),v=vt();return u||d?(0,it.jsxs)(it.Fragment,{children:[r&&(0,it.jsx)(ct.BlockControls,{group:"other",children:(0,it.jsx)(ct.MediaReplaceFlow,{mediaId:i,mediaURL:u,allowedTypes:Ao,accept:"audio/*",onSelect:b,onSelectURL:h,onError:x,onReset:()=>b(void 0)})}),(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{o({autoplay:!1,loop:!1,preload:void 0})},dropdownMenuProps:v,children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Autoplay"),isShownByDefault:!0,hasValue:()=>!!s,onDeselect:()=>o({autoplay:!1}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Autoplay"),onChange:g("autoplay"),checked:!!s,help:function(e){return e?(0,pt.__)("Autoplay may cause usability issues for some users."):null}})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Loop"),isShownByDefault:!0,hasValue:()=>!!l,onDeselect:()=>o({loop:!1}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Loop"),onChange:g("loop"),checked:!!l})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Preload"),isShownByDefault:!0,hasValue:()=>!!c,onDeselect:()=>o({preload:void 0}),children:(0,it.jsx)(mt.SelectControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt._x)("Preload","noun; Audio block parameter"),value:c||"",onChange:e=>o({preload:e||void 0}),options:[{value:"",label:(0,pt.__)("Browser default")},{value:"auto",label:(0,pt.__)("Auto")},{value:"metadata",label:(0,pt.__)("Metadata")},{value:"none",label:(0,pt._x)("None","Preload value")}]})})]})}),(0,it.jsxs)("figure",{...y,children:[(0,it.jsx)(mt.Disabled,{isDisabled:!r,children:(0,it.jsx)("audio",{controls:"controls",src:u??d})}),!!d&&(0,it.jsx)(mt.Spinner,{}),(0,it.jsx)(zo,{attributes:e,setAttributes:o,isSelected:r,insertBlocksAfter:a,label:(0,pt.__)("Audio caption text"),showToolbarButton:r&&m})]})]}):(0,it.jsx)("div",{...y,children:(0,it.jsx)(ct.MediaPlaceholder,{icon:(0,it.jsx)(ct.BlockIcon,{icon:_o}),onSelect:b,onSelectURL:h,accept:"audio/*",allowedTypes:Ao,value:e,onError:x})})};const Ho=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/audio","title":"Audio","category":"media","description":"Embed a simple audio player.","keywords":["music","sound","podcast","recording"],"textdomain":"default","attributes":{"blob":{"type":"string","role":"local"},"src":{"type":"string","source":"attribute","selector":"audio","attribute":"src","role":"content"},"caption":{"type":"rich-text","source":"rich-text","selector":"figcaption","role":"content"},"id":{"type":"number","role":"content"},"autoplay":{"type":"boolean","source":"attribute","selector":"audio","attribute":"autoplay"},"loop":{"type":"boolean","source":"attribute","selector":"audio","attribute":"loop"},"preload":{"type":"string","source":"attribute","selector":"audio","attribute":"preload"}},"supports":{"anchor":true,"align":true,"spacing":{"margin":true,"padding":true,"__experimentalDefaultControls":{"margin":false,"padding":false}},"interactivity":{"clientNavigation":true}},"editorStyle":"wp-block-audio-editor","style":"wp-block-audio"}');var Ro={from:[{type:"files",isMatch:e=>1===e.length&&0===e[0].type.indexOf("audio/"),transform(e){const t=e[0];return(0,st.createBlock)("core/audio",{blob:(0,ht.createBlobURL)(t)})}},{type:"shortcode",tag:"audio",attributes:{src:{type:"string",shortcode:({named:{src:e,mp3:t,m4a:o,ogg:n,wav:r,wma:a}})=>e||t||o||n||r||a},loop:{type:"string",shortcode:({named:{loop:e}})=>e},autoplay:{type:"string",shortcode:({named:{autoplay:e}})=>e},preload:{type:"string",shortcode:({named:{preload:e}})=>e}}}]};const{name:Vo}=Ho,Fo={icon:_o,example:{attributes:{src:"https://upload.wikimedia.org/wikipedia/commons/d/dd/Armstrong_Small_Step.ogg"},viewportWidth:350},transforms:Ro,deprecated:xo,edit:Lo,save:function({attributes:e}){const{autoplay:t,caption:o,loop:n,preload:r,src:a}=e;return a&&(0,it.jsxs)("figure",{...ct.useBlockProps.save(),children:[(0,it.jsx)("audio",{controls:"controls",src:a,autoPlay:t,loop:n,preload:r}),!ct.RichText.isEmpty(o)&&(0,it.jsx)(ct.RichText.Content,{tagName:"figcaption",value:o,className:(0,ct.__experimentalGetElementClassName)("caption")})]})}},Eo=()=>jt({name:Vo,metadata:Ho,settings:Fo});var Oo=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M4 13.5h3v-3H4v3Zm6-3.5 2 2-2 2 1 1 3-3-3-3-1 1Zm7 .5v3h3v-3h-3Z"})});const Go=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/breadcrumbs","title":"Breadcrumbs","__experimental":true,"category":"theme","description":"Display a breadcrumb trail for hierarchical post types or based on taxonomy terms.","textdomain":"default","attributes":{"type":{"type":"string","default":"auto","enum":["auto","postWithTerms","postWithAncestors"]},"separator":{"type":"string","default":"/"},"showHomeLink":{"type":"boolean","default":true}},"usesContext":["postId","postType","templateSlug"],"supports":{"html":false,"spacing":{"margin":true,"padding":true},"color":{"gradients":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true}},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true,"__experimentalDefaultControls":{"radius":false,"color":true,"width":true,"style":true}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true}},"style":"wp-block-breadcrumbs"}'),$o="/",Uo="auto",qo={auto:{help:(0,pt.__)("Try to automatically determine the best type of breadcrumb for the template.")},postWithAncestors:{help:(0,pt.__)("Shows breadcrumbs based on post hierarchy. Only works for hierarchical post types."),placeholderItems:[(0,pt.__)("Ancestor"),(0,pt.__)("Parent")]},postWithTerms:{help:(0,pt.__)("Shows breadcrumbs based on taxonomy terms. Chooses the first taxonomy with assigned terms and includes ancestors if the taxonomy is hierarchical."),placeholderItems:[(0,pt.__)("Category")]}};const{name:Wo}=Go,Zo={icon:Oo,edit:function({attributes:e,setAttributes:t,context:{postId:o,postType:n,templateSlug:r}}){const{separator:a,showHomeLink:i,type:s}=e,{post:l,isPostTypeHierarchical:c,hasTermsAssigned:u,isLoading:d}=(0,lt.useSelect)((e=>{if(!n)return{};const t=e(_t.store).getEntityRecord("postType",n,o),r=e(_t.store).getPostType(n),a=r&&r.taxonomies.length;let i;return a&&(i=e(_t.store).getTaxonomies({type:n,per_page:-1})),{post:t,isPostTypeHierarchical:r?.hierarchical,hasTermsAssigned:t&&(i||[]).filter((({visibility:e})=>e?.publicly_queryable)).some((e=>!!t[e.rest_base]?.length)),isLoading:!t||!r||a&&!i}}),[n,o]),[p,m]=(0,gt.useState)(0);(0,gt.useEffect)((()=>{m((e=>e+1))}),[l]);const g=(0,ct.useBlockProps)(),h=vt(),{content:_}=(0,ut.useServerSideRender)({attributes:e,skipBlockSupportAttributes:!0,block:"core/breadcrumbs",urlQueryArgs:{post_id:o,invalidationKey:p}});if(d)return(0,it.jsx)("div",{...g,children:(0,it.jsx)(mt.Spinner,{})});let x;const b=["postWithAncestors","postWithTerms"].includes(s);x=b?s:c?"postWithAncestors":"postWithTerms";let f=null;const y=!o||!n||r&&!n||"postWithAncestors"===x&&!c||"postWithTerms"===x&&!u;if(y){const e=[i&&(0,pt.__)("Home"),...r&&!b?[(0,pt.__)("Page")]:qo[x].placeholderItems].filter(Boolean);f=(0,it.jsx)("nav",{style:{"--separator":`'${a}'`},inert:"true",children:(0,it.jsxs)("ol",{children:[e.map(((e,t)=>(0,it.jsx)("li",{children:(0,it.jsx)("a",{href:`#breadcrumbs-pseudo-link-${t}`,children:e})},t))),(0,it.jsx)("li",{children:(0,it.jsx)("span",{"aria-current":"page",children:(0,pt.__)("Current")})})]})})}return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{t({separator:$o,showHomeLink:!0,type:Uo})},dropdownMenuProps:h,children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Type"),isShownByDefault:!0,hasValue:()=>s!==Uo,onDeselect:()=>t({type:Uo}),children:(0,it.jsx)(mt.SelectControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,pt.__)("Type"),value:s,onChange:e=>t({type:e}),options:[{label:(0,pt.__)("Auto"),value:"auto"},{label:(0,pt.__)("Post with ancestors"),value:"postWithAncestors"},{label:(0,pt.__)("Post with terms"),value:"postWithTerms"}],help:qo[s].help})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Show home link"),isShownByDefault:!0,hasValue:()=>!i,onDeselect:()=>t({showHomeLink:!0}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Show home link"),onChange:e=>t({showHomeLink:e}),checked:i})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Separator"),isShownByDefault:!0,hasValue:()=>a!==$o,onDeselect:()=>t({separator:$o}),children:(0,it.jsx)(mt.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,autoComplete:"off",label:(0,pt.__)("Separator"),value:a,onChange:e=>t({separator:e}),onBlur:()=>{a||t({separator:$o})}})})]})}),(0,it.jsx)("div",{...g,children:y?f:(0,it.jsx)(gt.RawHTML,{inert:"true",children:_})})]})}},Jo=()=>jt({name:Wo,metadata:Go,settings:Zo});var Qo=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.Path,{d:"M8 12.5h8V11H8v1.5Z M19 6.5H5a2 2 0 0 0-2 2V15a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V8.5a2 2 0 0 0-2-2ZM5 8h14a.5.5 0 0 1 .5.5V15a.5.5 0 0 1-.5.5H5a.5.5 0 0 1-.5-.5V8.5A.5.5 0 0 1 5 8Z"})});const{cleanEmptyObject:Ko}=jo(ct.privateApis);function Yo(e){if(!e?.style?.typography?.fontFamily)return e;const{fontFamily:t,...o}=e.style.typography;return{...e,style:Ko({...e.style,typography:o}),fontFamily:t.split("|").pop()}}const Xo=e=>{const{borderRadius:t,...o}=e,n=[t,o.style?.border?.radius].find((e=>"number"==typeof e&&0!==e));return n?{...o,style:{...o.style,border:{...o.style?.border,radius:`${n}px`}}}:o};const en=e=>{if(!e.customTextColor&&!e.customBackgroundColor&&!e.customGradient)return e;const t={color:{}};e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor),e.customGradient&&(t.color.gradient=e.customGradient);const{customTextColor:o,customBackgroundColor:n,customGradient:r,...a}=e;return{...a,style:t}},tn=e=>{const{color:t,textColor:o,...n}={...e,customTextColor:e.textColor&&"#"===e.textColor[0]?e.textColor:void 0,customBackgroundColor:e.color&&"#"===e.color[0]?e.color:void 0};return en(n)},on={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"}},nn={attributes:{tagName:{type:"string",enum:["a","button"],default:"a"},type:{type:"string",default:"button"},textAlign:{type:"string"},url:{type:"string",source:"attribute",selector:"a",attribute:"href"},title:{type:"string",source:"attribute",selector:"a,button",attribute:"title",role:"content"},text:{type:"rich-text",source:"rich-text",selector:"a,button",role:"content"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target",role:"content"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel",role:"content"},placeholder:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalWritingMode:!0,__experimentalDefaultControls:{fontSize:!0}},reusable:!1,shadow:{__experimentalSkipSerialization:!0},spacing:{__experimentalSkipSerialization:!0,padding:["horizontal","vertical"],__experimentalDefaultControls:{padding:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},__experimentalSelector:".wp-block-button__link",interactivity:{clientNavigation:!0}},save({attributes:e,className:t}){const{tagName:o,type:n,textAlign:r,fontSize:a,linkTarget:i,rel:s,style:l,text:c,title:u,url:d,width:p}=e,m=o||"a",g="button"===m,h=n||"button",_=(0,ct.__experimentalGetBorderClassesAndStyles)(e),x=(0,ct.__experimentalGetColorClassesAndStyles)(e),b=(0,ct.__experimentalGetSpacingClassesAndStyles)(e),f=(0,ct.__experimentalGetShadowClassesAndStyles)(e),y=Dt("wp-block-button__link",x.className,_.className,{[`has-text-align-${r}`]:r,"no-border-radius":0===l?.border?.radius},(0,ct.__experimentalGetElementClassName)("button")),v={..._.style,...x.style,...b.style,...f.style},k=Dt(t,{[`has-custom-width wp-block-button__width-${p}`]:p,"has-custom-font-size":a||l?.typography?.fontSize});return(0,it.jsx)("div",{...ct.useBlockProps.save({className:k}),children:(0,it.jsx)(ct.RichText.Content,{tagName:m,type:g?h:null,className:y,href:g?null:d,title:u,style:v,value:c,target:g?null:i,rel:g?null:s})})}},rn={attributes:{url:{type:"string",source:"attribute",selector:"a",attribute:"href"},title:{type:"string",source:"attribute",selector:"a",attribute:"title"},text:{type:"string",source:"html",selector:"a"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,__experimentalFontFamily:!0,__experimentalDefaultControls:{fontSize:!0}},reusable:!1,spacing:{__experimentalSkipSerialization:!0,padding:["horizontal","vertical"],__experimentalDefaultControls:{padding:!0}},__experimentalBorder:{radius:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{radius:!0}},__experimentalSelector:".wp-block-button__link"},save({attributes:e,className:t}){const{fontSize:o,linkTarget:n,rel:r,style:a,text:i,title:s,url:l,width:c}=e;if(!i)return null;const u=(0,ct.__experimentalGetBorderClassesAndStyles)(e),d=(0,ct.__experimentalGetColorClassesAndStyles)(e),p=(0,ct.__experimentalGetSpacingClassesAndStyles)(e),m=Dt("wp-block-button__link",d.className,u.className,{"no-border-radius":0===a?.border?.radius}),g={...u.style,...d.style,...p.style},h=Dt(t,{[`has-custom-width wp-block-button__width-${c}`]:c,"has-custom-font-size":o||a?.typography?.fontSize});return(0,it.jsx)("div",{...ct.useBlockProps.save({className:h}),children:(0,it.jsx)(ct.RichText.Content,{tagName:"a",className:m,href:l,title:s,style:g,value:i,target:n,rel:r})})}},an={attributes:{url:{type:"string",source:"attribute",selector:"a",attribute:"href"},title:{type:"string",source:"attribute",selector:"a",attribute:"title"},text:{type:"string",source:"html",selector:"a"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0,gradients:!0},typography:{fontSize:!0,__experimentalFontFamily:!0},reusable:!1,spacing:{__experimentalSkipSerialization:!0,padding:["horizontal","vertical"],__experimentalDefaultControls:{padding:!0}},__experimentalBorder:{radius:!0,__experimentalSkipSerialization:!0},__experimentalSelector:".wp-block-button__link"},save({attributes:e,className:t}){const{fontSize:o,linkTarget:n,rel:r,style:a,text:i,title:s,url:l,width:c}=e;if(!i)return null;const u=(0,ct.__experimentalGetBorderClassesAndStyles)(e),d=(0,ct.__experimentalGetColorClassesAndStyles)(e),p=(0,ct.__experimentalGetSpacingClassesAndStyles)(e),m=Dt("wp-block-button__link",d.className,u.className,{"no-border-radius":0===a?.border?.radius}),g={...u.style,...d.style,...p.style},h=Dt(t,{[`has-custom-width wp-block-button__width-${c}`]:c,"has-custom-font-size":o||a?.typography?.fontSize});return(0,it.jsx)("div",{...ct.useBlockProps.save({className:h}),children:(0,it.jsx)(ct.RichText.Content,{tagName:"a",className:m,href:l,title:s,style:g,value:i,target:n,rel:r})})},migrate:Yo,isEligible:({style:e})=>e?.typography?.fontFamily},sn=[nn,rn,an,{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:{...on,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},isEligible:({style:e})=>"number"==typeof e?.border?.radius,save({attributes:e,className:t}){const{fontSize:o,linkTarget:n,rel:r,style:a,text:i,title:s,url:l,width:c}=e;if(!i)return null;const u=a?.border?.radius,d=(0,ct.__experimentalGetColorClassesAndStyles)(e),p=Dt("wp-block-button__link",d.className,{"no-border-radius":0===a?.border?.radius}),m={borderRadius:u||void 0,...d.style},g=Dt(t,{[`has-custom-width wp-block-button__width-${c}`]:c,"has-custom-font-size":o||a?.typography?.fontSize});return(0,it.jsx)("div",{...ct.useBlockProps.save({className:g}),children:(0,it.jsx)(ct.RichText.Content,{tagName:"a",className:p,href:l,title:s,style:m,value:i,target:n,rel:r})})},migrate:(0,xt.compose)(Yo,Xo)},{supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0},reusable:!1,__experimentalSelector:".wp-block-button__link"},attributes:{...on,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},style:{type:"object"},width:{type:"number"}},save({attributes:e,className:t}){const{borderRadius:o,linkTarget:n,rel:r,text:a,title:i,url:s,width:l}=e,c=(0,ct.__experimentalGetColorClassesAndStyles)(e),u=Dt("wp-block-button__link",c.className,{"no-border-radius":0===o}),d={borderRadius:o?o+"px":void 0,...c.style},p=Dt(t,{[`has-custom-width wp-block-button__width-${l}`]:l});return(0,it.jsx)("div",{...ct.useBlockProps.save({className:p}),children:(0,it.jsx)(ct.RichText.Content,{tagName:"a",className:u,href:s,title:i,style:d,value:a,target:n,rel:r})})},migrate:(0,xt.compose)(Yo,Xo)},{supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0},reusable:!1,__experimentalSelector:".wp-block-button__link"},attributes:{...on,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},style:{type:"object"},width:{type:"number"}},save({attributes:e,className:t}){const{borderRadius:o,linkTarget:n,rel:r,text:a,title:i,url:s,width:l}=e,c=(0,ct.__experimentalGetColorClassesAndStyles)(e),u=Dt("wp-block-button__link",c.className,{"no-border-radius":0===o}),d={borderRadius:o?o+"px":void 0,...c.style},p=Dt(t,{[`has-custom-width wp-block-button__width-${l}`]:l});return(0,it.jsx)("div",{...ct.useBlockProps.save({className:p}),children:(0,it.jsx)(ct.RichText.Content,{tagName:"a",className:u,href:s,title:i,style:d,value:a,target:n,rel:r})})},migrate:(0,xt.compose)(Yo,Xo)},{supports:{align:!0,alignWide:!1,color:{gradients:!0}},attributes:{...on,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},style:{type:"object"}},save({attributes:e}){const{borderRadius:t,linkTarget:o,rel:n,text:r,title:a,url:i}=e,s=Dt("wp-block-button__link",{"no-border-radius":0===t}),l={borderRadius:t?t+"px":void 0};return(0,it.jsx)(ct.RichText.Content,{tagName:"a",className:s,href:i,title:a,style:l,value:r,target:o,rel:n})},migrate:Xo},{supports:{align:!0,alignWide:!1},attributes:{...on,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},customGradient:{type:"string"},gradient:{type:"string"}},isEligible:e=>!!(e.customTextColor||e.customBackgroundColor||e.customGradient||e.align),migrate:(0,xt.compose)(Xo,en,(function(e){if(!e.align)return e;const{align:t,...o}=e;return{...o,className:Dt(o.className,`align${e.align}`)}})),save({attributes:e}){const{backgroundColor:t,borderRadius:o,customBackgroundColor:n,customTextColor:r,customGradient:a,linkTarget:i,gradient:s,rel:l,text:c,textColor:u,title:d,url:p}=e,m=(0,ct.getColorClassName)("color",u),g=!a&&(0,ct.getColorClassName)("background-color",t),h=(0,ct.__experimentalGetGradientClass)(s),_=Dt("wp-block-button__link",{"has-text-color":u||r,[m]:m,"has-background":t||n||a||s,[g]:g,"no-border-radius":0===o,[h]:h}),x={background:a||void 0,backgroundColor:g||a||s?void 0:n,color:m?void 0:r,borderRadius:o?o+"px":void 0};return(0,it.jsx)("div",{children:(0,it.jsx)(ct.RichText.Content,{tagName:"a",className:_,href:p,title:d,style:x,value:c,target:i,rel:l})})}},{attributes:{...on,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()),Xo(en({...e,className:t||void 0,borderRadius:0}))},save({attributes:e}){const{backgroundColor:t,customBackgroundColor:o,customTextColor:n,linkTarget:r,rel:a,text:i,textColor:s,title:l,url:c}=e,u=(0,ct.getColorClassName)("color",s),d=(0,ct.getColorClassName)("background-color",t),p=Dt("wp-block-button__link",{"has-text-color":s||n,[u]:u,"has-background":t||o,[d]:d}),m={backgroundColor:d?void 0:o,color:u?void 0:n};return(0,it.jsx)("div",{children:(0,it.jsx)(ct.RichText.Content,{tagName:"a",className:p,href:c,title:l,style:m,value:i,target:r,rel:a})})}},{attributes:{...on,align:{type:"string",default:"none"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"}},migrate:tn,save({attributes:e}){const{url:t,text:o,title:n,backgroundColor:r,textColor:a,customBackgroundColor:i,customTextColor:s}=e,l=(0,ct.getColorClassName)("color",a),c=(0,ct.getColorClassName)("background-color",r),u=Dt("wp-block-button__link",{"has-text-color":a||s,[l]:l,"has-background":r||i,[c]:c}),d={backgroundColor:c?void 0:i,color:l?void 0:s};return(0,it.jsx)("div",{children:(0,it.jsx)(ct.RichText.Content,{tagName:"a",className:u,href:t,title:n,style:d,value:o})})}},{attributes:{...on,color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}},save({attributes:e}){const{url:t,text:o,title:n,align:r,color:a,textColor:i}=e,s={backgroundColor:a,color:i};return(0,it.jsx)("div",{className:`align${r}`,children:(0,it.jsx)(ct.RichText.Content,{tagName:"a",className:"wp-block-button__link",href:t,title:n,style:s,value:o})})},migrate:tn},{attributes:{...on,color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}},save({attributes:e}){const{url:t,text:o,title:n,align:r,color:a,textColor:i}=e;return(0,it.jsx)("div",{className:`align${r}`,style:{backgroundColor:a},children:(0,it.jsx)(ct.RichText.Content,{tagName:"a",href:t,title:n,style:{color:i},value:o})})},migrate:tn}];var ln=sn;const cn="noreferrer noopener",un="_blank",dn="nofollow";function pn(e){return e.toString().replace(/<\/?a[^>]*>/g,"")}const mn=window.wp.keycodes;var gn=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M10 17.389H8.444A5.194 5.194 0 1 1 8.444 7H10v1.5H8.444a3.694 3.694 0 0 0 0 7.389H10v1.5ZM14 7h1.556a5.194 5.194 0 0 1 0 10.39H14v-1.5h1.556a3.694 3.694 0 0 0 0-7.39H14V7Zm-4.5 6h5v-1.5h-5V13Z"})}),hn=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M17.031 4.703 15.576 4l-1.56 3H14v.03l-2.324 4.47H9.5V13h1.396l-1.502 2.889h-.95a3.694 3.694 0 0 1 0-7.389H10V7H8.444a5.194 5.194 0 1 0 0 10.389h.17L7.5 19.53l1.416.719L15.049 8.5h.507a3.694 3.694 0 0 1 0 7.39H14v1.5h1.556a5.194 5.194 0 0 0 .273-10.383l1.202-2.304Z"})});const{HTMLElementControl:_n}=jo(ct.privateApis),xn=[...ct.LinkControl.DEFAULT_LINK_SETTINGS,{id:"nofollow",title:(0,pt.__)("Mark as nofollow")}];function bn({selectedWidth:e,setAttributes:t}){const o=vt();return(0,it.jsx)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>t({width:void 0}),dropdownMenuProps:o,children:(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Width"),isShownByDefault:!0,hasValue:()=>!!e,onDeselect:()=>t({width:void 0}),__nextHasNoMarginBottom:!0,children:(0,it.jsx)(mt.__experimentalToggleGroupControl,{label:(0,pt.__)("Width"),value:e,onChange:e=>t({width:e}),isBlock:!0,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,children:[25,50,75,100].map((e=>(0,it.jsx)(mt.__experimentalToggleGroupControlOption,{value:e,label:(0,pt.sprintf)((0,pt.__)("%d%%"),e)},e)))})})})}var fn=function(e){const{attributes:t,setAttributes:o,className:n,isSelected:r,onReplace:a,mergeBlocks:i,clientId:s,context:l}=e,{tagName:c,textAlign:u,linkTarget:d,placeholder:p,rel:m,style:g,text:h,url:_,width:x,metadata:b}=t,f=c||"a",[y,v]=(0,gt.useState)(null),k=(0,ct.__experimentalUseBorderProps)(t),w=(0,ct.__experimentalUseColorProps)(t),C=(0,ct.__experimentalGetSpacingClassesAndStyles)(t),j=(0,ct.__experimentalGetShadowClassesAndStyles)(t),S=(0,gt.useRef)(),B=(0,gt.useRef)(),T=(0,ct.useBlockProps)({ref:(0,xt.useMergeRefs)([v,S]),onKeyDown:function(e){mn.isKeyboardEvent.primary(e,"k")?V(e):mn.isKeyboardEvent.primaryShift(e,"k")&&(F(),B.current?.focus())}}),N=(0,ct.useBlockEditingMode)(),[P,I]=(0,gt.useState)(!1),D=!!_,M=d===un,z=!!m?.includes(dn),A="a"===f,{createPageEntity:L,userCanCreatePages:H,lockUrlControls:R=!1}=(0,lt.useSelect)((e=>{if(!r)return{};const t=e(ct.store).getSettings(),o=(0,st.getBlockBindingsSource)(b?.bindings?.url?.source);return{createPageEntity:t.__experimentalCreatePageEntity,userCanCreatePages:t.__experimentalUserCanCreatePages,lockUrlControls:!!b?.bindings?.url&&!o?.canUserEditValue?.({select:e,context:l,args:b?.bindings?.url?.args})}}),[l,r,b?.bindings?.url]);function V(e){e.preventDefault(),I(!0)}function F(){o({url:void 0,linkTarget:void 0,rel:void 0}),I(!1)}(0,gt.useEffect)((()=>{r||I(!1)}),[r]);const E=(0,gt.useMemo)((()=>({url:_,opensInNewTab:M,nofollow:z})),[_,M,z]),O=function(e){const{replaceBlocks:t,selectionChange:o}=(0,lt.useDispatch)(ct.store),{getBlock:n,getBlockRootClientId:r,getBlockIndex:a}=(0,lt.useSelect)(ct.store),i=(0,gt.useRef)(e);return i.current=e,(0,xt.useRefEffect)((e=>{function s(e){if(e.defaultPrevented||e.keyCode!==mn.ENTER)return;const{content:s,clientId:l}=i.current;if(s.length)return;e.preventDefault();const c=n(r(l)),u=a(l),d=(0,st.cloneBlock)({...c,innerBlocks:c.innerBlocks.slice(0,u)}),p=(0,st.createBlock)((0,st.getDefaultBlockName)()),m=c.innerBlocks.slice(u+1),g=m.length?[(0,st.cloneBlock)({...c,innerBlocks:m})]:[];t(c.clientId,[d,p,...g],1),o(p.clientId)}return e.addEventListener("keydown",s),()=>{e.removeEventListener("keydown",s)}}),[])}({content:h,clientId:s}),G=(0,xt.useMergeRefs)([O,B]),[$,U]=(0,ct.useSettings)("typography.fluid","layout"),q=(0,ct.getTypographyClassesAndStyles)(t,{typography:{fluid:$},layout:{wideSize:U?.wideSize}}),W="default"===N,Z=W||A&&!R;return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)("div",{...T,className:Dt(T.className,{[`has-custom-width wp-block-button__width-${x}`]:x}),children:(0,it.jsx)(ct.RichText,{ref:G,"aria-label":(0,pt.__)("Button text"),placeholder:p||(0,pt.__)("Add text…"),value:h,onChange:e=>o({text:pn(e)}),withoutInteractiveFormatting:!0,className:Dt(n,"wp-block-button__link",w.className,k.className,q.className,{[`has-text-align-${u}`]:u,"no-border-radius":0===g?.border?.radius,"has-custom-font-size":T.style.fontSize},(0,ct.__experimentalGetElementClassName)("button")),style:{...k.style,...w.style,...C.style,...j.style,...q.style,writingMode:void 0},onReplace:a,onMerge:i,identifier:"text"})}),Z&&(0,it.jsxs)(ct.BlockControls,{group:"block",children:[W&&(0,it.jsx)(ct.AlignmentControl,{value:u,onChange:e=>{o({textAlign:e})}}),A&&!R&&(0,it.jsx)(mt.ToolbarButton,{name:"link",icon:D?hn:gn,title:D?(0,pt.__)("Unlink"):(0,pt.__)("Link"),shortcut:D?mn.displayShortcut.primaryShift("k"):mn.displayShortcut.primary("k"),onClick:D?F:V,isActive:D})]}),A&&r&&(P||D)&&!R&&(0,it.jsx)(mt.Popover,{placement:"bottom",onClose:()=>{I(!1),B.current?.focus()},anchor:y,focusOnMount:!!P&&"firstElement",__unstableSlotName:"__unstable-block-tools-after",shift:!0,children:(0,it.jsx)(ct.LinkControl,{value:E,onChange:({url:e,opensInNewTab:t,nofollow:n})=>o(function({rel:e="",url:t="",opensInNewTab:o,nofollow:n}){let r,a=e;if(o)r=un,a=a?.includes(cn)?a:a+` ${cn}`;else{const e=new RegExp(`\\b${cn}\\s*`,"g");a=a?.replace(e,"").trim()}if(n)a=a?.includes(dn)?a:(a+` ${dn}`).trim();else{const e=new RegExp(`\\b${dn}\\s*`,"g");a=a?.replace(e,"").trim()}return{url:(0,no.prependHTTP)(t),linkTarget:r,rel:a||void 0}}({rel:m,url:e,opensInNewTab:t,nofollow:n})),onRemove:()=>{F(),B.current?.focus()},forceIsEditingLink:P,settings:xn,createSuggestion:L&&async function(e){const t=await L({title:e,status:"draft"});return{id:t.id,type:t.type,title:t.title.rendered,url:t.link,kind:"post-type"}},withCreateSuggestion:H,createSuggestionButtonText:function(e){return(0,gt.createInterpolateElement)((0,pt.sprintf)((0,pt.__)("Create page: <mark>%s</mark>"),e),{mark:(0,it.jsx)("mark",{})})}})}),(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsx)(bn,{selectedWidth:x,setAttributes:o})}),(0,it.jsxs)(ct.InspectorControls,{group:"advanced",children:[(0,it.jsx)(_n,{tagName:c,onChange:e=>o({tagName:e}),options:[{label:(0,pt.__)("Default (<a>)"),value:"a"},{label:"<button>",value:"button"}]}),A&&(0,it.jsx)(mt.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("Link relation"),help:(0,gt.createInterpolateElement)((0,pt.__)("The <a>Link Relation</a> attribute defines the relationship between a linked resource and the current document."),{a:(0,it.jsx)(mt.ExternalLink,{href:"https://developer.mozilla.org/docs/Web/HTML/Attributes/rel"})}),value:m||"",onChange:e=>o({rel:e})})]})]})};const yn=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/button","title":"Button","category":"design","parent":["core/buttons"],"description":"Prompt visitors to take action with a button-style link.","keywords":["link"],"textdomain":"default","attributes":{"tagName":{"type":"string","enum":["a","button"],"default":"a"},"type":{"type":"string","default":"button"},"textAlign":{"type":"string"},"url":{"type":"string","source":"attribute","selector":"a","attribute":"href","role":"content"},"title":{"type":"string","source":"attribute","selector":"a,button","attribute":"title","role":"content"},"text":{"type":"rich-text","source":"rich-text","selector":"a,button","role":"content"},"linkTarget":{"type":"string","source":"attribute","selector":"a","attribute":"target","role":"content"},"rel":{"type":"string","source":"attribute","selector":"a","attribute":"rel","role":"content"},"placeholder":{"type":"string"},"backgroundColor":{"type":"string"},"textColor":{"type":"string"},"gradient":{"type":"string"},"width":{"type":"number"}},"supports":{"anchor":true,"splitting":true,"align":false,"alignWide":false,"color":{"__experimentalSkipSerialization":true,"gradients":true,"__experimentalDefaultControls":{"background":true,"text":true}},"typography":{"__experimentalSkipSerialization":["fontSize","lineHeight","fontFamily","fontWeight","fontStyle","textTransform","textDecoration","letterSpacing"],"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalWritingMode":true,"__experimentalDefaultControls":{"fontSize":true}},"reusable":false,"shadow":{"__experimentalSkipSerialization":true},"spacing":{"__experimentalSkipSerialization":true,"padding":["horizontal","vertical"],"__experimentalDefaultControls":{"padding":true}},"__experimentalBorder":{"color":true,"radius":true,"style":true,"width":true,"__experimentalSkipSerialization":true,"__experimentalDefaultControls":{"color":true,"radius":true,"style":true,"width":true}},"interactivity":{"clientNavigation":true}},"styles":[{"name":"fill","label":"Fill","isDefault":true},{"name":"outline","label":"Outline"}],"editorStyle":"wp-block-button-editor","style":"wp-block-button","selectors":{"root":".wp-block-button .wp-block-button__link","typography":{"writingMode":".wp-block-button"}}}');const{name:vn}=yn,kn={icon:Qo,example:{attributes:{className:"is-style-fill",text:(0,pt.__)("Call to action")}},edit:fn,save:function({attributes:e,className:t}){const{tagName:o,type:n,textAlign:r,fontSize:a,linkTarget:i,rel:s,style:l,text:c,title:u,url:d,width:p}=e,m=o||"a",g="button"===m,h=n||"button",_=(0,ct.__experimentalGetBorderClassesAndStyles)(e),x=(0,ct.__experimentalGetColorClassesAndStyles)(e),b=(0,ct.__experimentalGetSpacingClassesAndStyles)(e),f=(0,ct.__experimentalGetShadowClassesAndStyles)(e),y=(0,ct.getTypographyClassesAndStyles)(e),v=Dt("wp-block-button__link",x.className,_.className,y.className,{[`has-text-align-${r}`]:r,"no-border-radius":0===l?.border?.radius,"has-custom-font-size":a||l?.typography?.fontSize},(0,ct.__experimentalGetElementClassName)("button")),k={..._.style,...x.style,...b.style,...f.style,...y.style,writingMode:void 0},w=Dt(t,{[`has-custom-width wp-block-button__width-${p}`]:p});return(0,it.jsx)("div",{...ct.useBlockProps.save({className:w}),children:(0,it.jsx)(ct.RichText.Content,{tagName:m,type:g?h:null,className:v,href:g?null:d,title:u,style:k,value:c,target:g?null:i,rel:g?null:s})})},deprecated:ln,merge:(e,{text:t=""})=>({...e,text:(e.text||"")+t})},wn=()=>jt({name:vn,metadata:yn,settings:kn});var Cn=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.Path,{d:"M14.5 17.5H9.5V16H14.5V17.5Z M14.5 8H9.5V6.5H14.5V8Z M7 3.5H17C18.1046 3.5 19 4.39543 19 5.5V9C19 10.1046 18.1046 11 17 11H7C5.89543 11 5 10.1046 5 9V5.5C5 4.39543 5.89543 3.5 7 3.5ZM17 5H7C6.72386 5 6.5 5.22386 6.5 5.5V9C6.5 9.27614 6.72386 9.5 7 9.5H17C17.2761 9.5 17.5 9.27614 17.5 9V5.5C17.5 5.22386 17.2761 5 17 5Z M7 13H17C18.1046 13 19 13.8954 19 15V18.5C19 19.6046 18.1046 20.5 17 20.5H7C5.89543 20.5 5 19.6046 5 18.5V15C5 13.8954 5.89543 13 7 13ZM17 14.5H7C6.72386 14.5 6.5 14.7239 6.5 15V18.5C6.5 18.7761 6.72386 19 7 19H17C17.2761 19 17.5 18.7761 17.5 18.5V15C17.5 14.7239 17.2761 14.5 17 14.5Z"})});const jn=e=>{if(e.layout)return e;const{contentJustification:t,orientation:o,...n}=e;return(t||o)&&Object.assign(n,{layout:{type:"flex",...t&&{justifyContent:t},...o&&{orientation:o}}}),n},Sn=[{attributes:{contentJustification:{type:"string"},orientation:{type:"string",default:"horizontal"}},supports:{anchor:!0,align:["wide","full"],__experimentalExposeControlsToChildren:!0,spacing:{blockGap:!0,margin:["top","bottom"],__experimentalDefaultControls:{blockGap:!0}}},isEligible:({contentJustification:e,orientation:t})=>!!e||!!t,migrate:jn,save:({attributes:{contentJustification:e,orientation:t}})=>(0,it.jsx)("div",{...ct.useBlockProps.save({className:Dt({[`is-content-justification-${e}`]:e,"is-vertical":"vertical"===t})}),children:(0,it.jsx)(ct.InnerBlocks.Content,{})})},{supports:{align:["center","left","right"],anchor:!0},save:()=>(0,it.jsx)("div",{children:(0,it.jsx)(ct.InnerBlocks.Content,{})}),isEligible:({align:e})=>e&&["center","left","right"].includes(e),migrate:e=>jn({...e,align:void 0,contentJustification:e.align})}];var Bn=Sn;const Tn=window.wp.richText;function Nn(e,t,o=null){if(!e)return;const n=(0,st.getBlockType)(t);if(!n)return;const r={};if((0,st.hasBlockSupport)(n,"anchor")&&e.anchor&&(r.anchor=e.anchor),(0,st.hasBlockSupport)(n,"ariaLabel")&&e.ariaLabel&&(r.ariaLabel=e.ariaLabel),e.metadata){const t=[];if(o&&t.push("id","bindings"),t.length>0){const n=Object.entries(e.metadata).reduce(((e,[n,r])=>t.includes(n)?(e[n]="bindings"===n?o(r):r,e):e),{});Object.keys(n).length>0&&(r.metadata=n)}}return 0!==Object.keys(r).length?r:void 0}const Pn={from:[{type:"block",isMultiBlock:!0,blocks:["core/button"],transform:e=>(0,st.createBlock)("core/buttons",{},e.map((e=>(0,st.createBlock)("core/button",e))))},{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>(0,st.createBlock)("core/buttons",{},e.map((e=>{const{content:t}=e,o=(0,Tn.__unstableCreateElement)(document,t),n=o.innerText||"",r=o.querySelector("a"),a=r?.getAttribute("href");return(0,st.createBlock)("core/button",{...e,...Nn(e,"core/button",(({content:e})=>({text:e}))),text:n,url:a})}))),isMatch:e=>e.every((e=>{const t=(0,Tn.__unstableCreateElement)(document,e.content),o=t.innerText||"",n=t.querySelectorAll("a");return o.length<=30&&n.length<=1}))}]};var In=Pn;const Dn={name:"core/button",attributesToCopy:["backgroundColor","border","className","fontFamily","fontSize","gradient","style","textColor","width"]};var Mn=function({attributes:e,className:t}){const{fontSize:o,layout:n,style:r}=e,a=(0,ct.useBlockProps)({className:Dt(t,{"has-custom-font-size":o||r?.typography?.fontSize})}),{hasButtonVariations:i}=(0,lt.useSelect)((e=>({hasButtonVariations:e(st.store).getBlockVariations("core/button","inserter").length>0})),[]),s=(0,ct.useInnerBlocksProps)(a,{defaultBlock:Dn,directInsert:!i,template:[["core/button"]],templateInsertUpdatesSelection:!0,orientation:n?.orientation??"horizontal"});return(0,it.jsx)("div",{...s})};const zn=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/buttons","title":"Buttons","category":"design","allowedBlocks":["core/button"],"description":"Prompt visitors to take action with a group of button-style links.","keywords":["link"],"textdomain":"default","supports":{"anchor":true,"align":["wide","full"],"html":false,"__experimentalExposeControlsToChildren":true,"color":{"gradients":true,"text":false,"__experimentalDefaultControls":{"background":true}},"spacing":{"blockGap":["horizontal","vertical"],"padding":true,"margin":["top","bottom"],"__experimentalDefaultControls":{"blockGap":true}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"__experimentalBorder":{"color":true,"radius":true,"style":true,"width":true,"__experimentalDefaultControls":{"color":true,"radius":true,"style":true,"width":true}},"layout":{"allowSwitching":false,"allowInheriting":false,"default":{"type":"flex"}},"interactivity":{"clientNavigation":true},"contentRole":true},"editorStyle":"wp-block-buttons-editor","style":"wp-block-buttons"}');const{name:An}=zn,Ln={icon:Cn,example:{attributes:{layout:{type:"flex",justifyContent:"center"}},innerBlocks:[{name:"core/button",attributes:{text:(0,pt.__)("Find out more")}},{name:"core/button",attributes:{text:(0,pt.__)("Contact us")}}]},deprecated:Bn,transforms:In,edit:Mn,save:function({attributes:e,className:t}){const{fontSize:o,style:n}=e,r=ct.useBlockProps.save({className:Dt(t,{"has-custom-font-size":o||n?.typography?.fontSize})}),a=ct.useInnerBlocksProps.save(r);return(0,it.jsx)("div",{...a})}},Hn=()=>jt({name:An,metadata:zn,settings:Ln});var Rn=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V7h15v12zM9 10H7v2h2v-2zm0 4H7v2h2v-2zm4-4h-2v2h2v-2zm4 0h-2v2h2v-2zm-4 4h-2v2h2v-2zm4 0h-2v2h2v-2z"})});const Vn=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/calendar","title":"Calendar","category":"widgets","description":"A calendar of your site’s posts.","keywords":["posts","archive"],"textdomain":"default","attributes":{"month":{"type":"integer"},"year":{"type":"integer"}},"supports":{"align":true,"html":false,"color":{"link":true,"__experimentalSkipSerialization":["text","background"],"__experimentalDefaultControls":{"background":true,"text":true},"__experimentalSelector":"table, th"},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true}},"style":"wp-block-calendar"}'),Fn=fo((e=>{if(!e)return{};const t=new Date(e);return{year:t.getFullYear(),month:t.getMonth()+1}}));var En={from:[{type:"block",blocks:["core/archives"],transform:()=>(0,st.createBlock)("core/calendar")}],to:[{type:"block",blocks:["core/archives"],transform:()=>(0,st.createBlock)("core/archives")}]};const{name:On}=Vn,Gn={icon:Rn,example:{},edit:function({attributes:e}){const t=(0,ct.useBlockProps)(),{date:o,hasPosts:n,hasPostsResolved:r}=(0,lt.useSelect)((e=>{const{getEntityRecords:t,hasFinishedResolution:o}=e(_t.store),n={status:"publish",per_page:1},r=t("postType","post",n),a=o("getEntityRecords",["postType","post",n]);let i;const s=e("core/editor");if(s){"post"===s.getEditedPostAttribute("type")&&(i=s.getEditedPostAttribute("date"))}return{date:i,hasPostsResolved:a,hasPosts:a&&1===r?.length}}),[]);return n?(0,it.jsx)("div",{...t,children:(0,it.jsx)(mt.Disabled,{children:(0,it.jsx)(dt(),{block:"core/calendar",attributes:{...e,...Fn(o)}})})}):(0,it.jsx)("div",{...t,children:(0,it.jsx)(mt.Placeholder,{icon:Rn,label:(0,pt.__)("Calendar"),children:r?(0,pt.__)("No published posts found."):(0,it.jsx)(mt.Spinner,{})})})},transforms:En},$n=()=>jt({name:On,metadata:Vn,settings:Gn});var Un=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.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"})});const qn=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/categories","title":"Terms List","category":"widgets","description":"Display a list of all terms of a given taxonomy.","keywords":["categories"],"textdomain":"default","attributes":{"taxonomy":{"type":"string","default":"category"},"displayAsDropdown":{"type":"boolean","default":false},"showHierarchy":{"type":"boolean","default":false},"showPostCounts":{"type":"boolean","default":false},"showOnlyTopLevel":{"type":"boolean","default":false},"showEmpty":{"type":"boolean","default":false},"label":{"type":"string","role":"content"},"showLabel":{"type":"boolean","default":true}},"usesContext":["enhancedPagination"],"supports":{"align":true,"html":false,"spacing":{"margin":true,"padding":true,"__experimentalDefaultControls":{"margin":false,"padding":false}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"color":{"gradients":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true,"link":true}},"interactivity":{"clientNavigation":true},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true,"__experimentalDefaultControls":{"radius":true,"color":true,"width":true,"style":true}}},"editorStyle":"wp-block-categories-editor","style":"wp-block-categories"}');var Wn=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"m21.5 9.1-6.6-6.6-4.2 5.6c-1.2-.1-2.4.1-3.6.7-.1 0-.1.1-.2.1-.5.3-.9.6-1.2.9l3.7 3.7-5.7 5.7v1.1h1.1l5.7-5.7 3.7 3.7c.4-.4.7-.8.9-1.2.1-.1.1-.2.2-.3.6-1.1.8-2.4.6-3.6l5.6-4.1zm-7.3 3.5.1.9c.1.9 0 1.8-.4 2.6l-6-6c.8-.4 1.7-.5 2.6-.4l.9.1L15 4.9 19.1 9l-4.9 3.6z"})});const Zn=[{name:"terms",title:(0,pt.__)("Terms List"),icon:Un,attributes:{taxonomy:"post_tag"},isActive:e=>"category"!==e.taxonomy},{name:"categories",title:(0,pt.__)("Categories List"),description:(0,pt.__)("Display a list of all categories."),icon:Un,attributes:{taxonomy:"category"},isActive:["taxonomy"],isDefault:!0}];var Jn=Zn;const{name:Qn}=qn,Kn={icon:Un,example:{},edit:function e({attributes:{displayAsDropdown:t,showHierarchy:o,showPostCounts:n,showOnlyTopLevel:r,showEmpty:a,label:i,showLabel:s,taxonomy:l},setAttributes:c,className:u,clientId:d}){const p=(0,xt.useInstanceId)(e,"blocks-category-select"),{records:m,isResolvingTaxonomies:g}=(0,_t.useEntityRecords)("root","taxonomy",{per_page:-1}),h=m?.filter((e=>e.visibility.public)),_=h?.find((e=>e.slug===l)),x=!g&&_?.hierarchical,b={per_page:-1,hide_empty:!a,context:"view"};x&&r&&(b.parent=0);const{records:f,isResolving:y}=(0,_t.useEntityRecords)("taxonomy",l,b),{createWarningNotice:v}=(0,lt.useDispatch)(bo.store),k=e=>{e.preventDefault(),v((0,pt.__)("Links are disabled in the editor."),{id:`block-library/core/categories/redirection-prevented/${d}`,type:"snackbar"})},w=e=>f?.length?null===e?f:f.filter((({parent:t})=>t===e)):[],C=e=>t=>c({[e]:t}),j=e=>e?(0,ao.decodeEntities)(e).trim():(0,pt.__)("(Untitled)"),S=e=>{const t=w(e.id),{id:r,link:a,count:i,name:s}=e;return(0,it.jsxs)("li",{className:`cat-item cat-item-${r}`,children:[(0,it.jsx)("a",{href:a,onClick:k,children:j(s)}),n&&` (${i})`,x&&o&&!!t.length&&(0,it.jsx)("ul",{className:"children",children:t.map((e=>S(e)))})]},r)},B=(e,t)=>{const{id:r,count:a,name:i}=e,s=w(r);return[(0,it.jsxs)("option",{className:`level-${t}`,children:[Array.from({length:3*t}).map((()=>" ")),j(i),n&&` (${a})`]},r),x&&o&&!!s.length&&s.map((e=>B(e,t+1)))]},T=!f?.length||t||y?"div":"ul",N=Dt(u,{"wp-block-categories-list":!!f?.length&&!t&&!y,"wp-block-categories-dropdown":!!f?.length&&t&&!y}),P=(0,ct.useBlockProps)({className:N}),I=vt();return(0,it.jsxs)(T,{...P,children:[(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{c({taxonomy:"category",displayAsDropdown:!1,showHierarchy:!1,showPostCounts:!1,showOnlyTopLevel:!1,showEmpty:!1,showLabel:!0})},dropdownMenuProps:I,children:[Array.isArray(h)&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>"category"!==l,label:(0,pt.__)("Taxonomy"),onDeselect:()=>{c({taxonomy:"category"})},isShownByDefault:!0,children:(0,it.jsx)(mt.SelectControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,pt.__)("Taxonomy"),options:h.map((e=>({label:e.name,value:e.slug}))),value:l,onChange:e=>c({taxonomy:e})})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!!t,label:(0,pt.__)("Display as dropdown"),onDeselect:()=>c({displayAsDropdown:!1}),isShownByDefault:!0,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Display as dropdown"),checked:t,onChange:C("displayAsDropdown")})}),t&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!s,label:(0,pt.__)("Show label"),onDeselect:()=>c({showLabel:!0}),isShownByDefault:!0,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,className:"wp-block-categories__indentation",label:(0,pt.__)("Show label"),checked:s,onChange:C("showLabel")})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!!n,label:(0,pt.__)("Show post counts"),onDeselect:()=>c({showPostCounts:!1}),isShownByDefault:!0,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Show post counts"),checked:n,onChange:C("showPostCounts")})}),x&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!!r,label:(0,pt.__)("Show only top level terms"),onDeselect:()=>c({showOnlyTopLevel:!1}),isShownByDefault:!0,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Show only top level terms"),checked:r,onChange:C("showOnlyTopLevel")})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!!a,label:(0,pt.__)("Show empty terms"),onDeselect:()=>c({showEmpty:!1}),isShownByDefault:!0,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Show empty terms"),checked:a,onChange:C("showEmpty")})}),x&&!r&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!!o,label:(0,pt.__)("Show hierarchy"),onDeselect:()=>c({showHierarchy:!1}),isShownByDefault:!0,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Show hierarchy"),checked:o,onChange:C("showHierarchy")})})]})}),y&&(0,it.jsx)(mt.Placeholder,{icon:Wn,label:(0,pt.__)("Terms"),children:(0,it.jsx)(mt.Spinner,{})}),!y&&0===f?.length&&(0,it.jsx)("p",{children:_.labels.no_terms}),!y&&f?.length>0&&(t?(()=>{const e=w(x&&o?0:null);return(0,it.jsxs)(it.Fragment,{children:[s?(0,it.jsx)(ct.RichText,{className:"wp-block-categories__label","aria-label":(0,pt.__)("Label text"),placeholder:_?.name,withoutInteractiveFormatting:!0,value:i,onChange:e=>c({label:e})}):(0,it.jsx)(mt.VisuallyHidden,{as:"label",htmlFor:p,children:i||_?.name}),(0,it.jsxs)("select",{id:p,children:[(0,it.jsx)("option",{children:(0,pt.sprintf)((0,pt.__)("Select %s"),_?.labels?.singular_name)}),e.map((e=>B(e,0)))]})]})})():w(x&&o?0:null).map((e=>S(e))))]})},variations:Jn},Yn=()=>jt({name:Qn,metadata:qn,settings:Kn});var Xn=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.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 er=({clientId:e})=>{const{replaceBlocks:t}=(0,lt.useDispatch)(ct.store),o=(0,lt.useSelect)((t=>t(ct.store).getBlock(e)),[e]);return(0,it.jsx)(mt.ToolbarButton,{onClick:()=>t(o.clientId,(0,st.rawHandler)({HTML:(0,st.serialize)(o)})),children:(0,pt.__)("Convert to blocks")})},tr=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M6 4a2 2 0 0 0-2 2v3h1.5V6a.5.5 0 0 1 .5-.5h3V4H6Zm3 14.5H6a.5.5 0 0 1-.5-.5v-3H4v3a2 2 0 0 0 2 2h3v-1.5Zm6 1.5v-1.5h3a.5.5 0 0 0 .5-.5v-3H20v3a2 2 0 0 1-2 2h-3Zm3-16a2 2 0 0 1 2 2v3h-1.5V6a.5.5 0 0 0-.5-.5h-3V4h3Z"})});function or({onClick:e,isModalFullScreen:t}){return(0,xt.useViewportMatch)("small","<")?null:(0,it.jsx)(mt.Button,{size:"compact",onClick:e,icon:tr,isPressed:t,label:t?(0,pt.__)("Exit fullscreen"):(0,pt.__)("Enter fullscreen")})}function nr(e){const t=(0,lt.useSelect)((e=>e(ct.store).getSettings().styles));return(0,gt.useEffect)((()=>{const{baseURL:o,suffix:n,settings:r}=window.wpEditorL10n.tinymce;return window.tinymce.EditorManager.overrideDefaults({base_url:o,suffix:n}),window.wp.oldEditor.initialize(e.id,{tinymce:{...r,setup(e){e.on("init",(()=>{const o=e.getDoc();t.forEach((({css:e})=>{const t=o.createElement("style");t.innerHTML=e,o.head.appendChild(t)}))}))}}}),()=>{window.wp.oldEditor.remove(e.id)}}),[]),(0,it.jsx)("textarea",{...e})}function rr(e){const{clientId:t,attributes:{content:o},setAttributes:n,onReplace:r}=e,[a,i]=(0,gt.useState)(!1),[s,l]=(0,gt.useState)(!1),c=`editor-${t}`,u=()=>o?i(!1):r([]);return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.BlockControls,{children:(0,it.jsx)(mt.ToolbarGroup,{children:(0,it.jsx)(mt.ToolbarButton,{onClick:()=>i(!0),children:(0,pt.__)("Edit")})})}),o&&(0,it.jsx)(gt.RawHTML,{children:o}),(a||!o)&&(0,it.jsxs)(mt.Modal,{title:(0,pt.__)("Classic Editor"),onRequestClose:u,shouldCloseOnClickOutside:!1,overlayClassName:"block-editor-freeform-modal",isFullScreen:s,className:"block-editor-freeform-modal__content",headerActions:(0,it.jsx)(or,{onClick:()=>l(!s),isModalFullScreen:s}),children:[(0,it.jsx)(nr,{id:c,defaultValue:o}),(0,it.jsxs)(mt.Flex,{className:"block-editor-freeform-modal__actions",justify:"flex-end",expanded:!1,children:[(0,it.jsx)(mt.FlexItem,{children:(0,it.jsx)(mt.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:u,children:(0,pt.__)("Cancel")})}),(0,it.jsx)(mt.FlexItem,{children:(0,it.jsx)(mt.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:()=>{n({content:window.wp.oldEditor.getContent(c)}),i(!1)},children:(0,pt.__)("Save")})})]})]})]})}const{wp:ar}=window;function ir({clientId:e,attributes:{content:t},setAttributes:o,onReplace:n}){const{getMultiSelectedBlockClientIds:r}=(0,lt.useSelect)(ct.store),a=(0,gt.useRef)(!1);return(0,gt.useEffect)((()=>{if(!a.current)return;const o=window.tinymce.get(`editor-${e}`);if(!o)return;o.getContent()!==t&&o.setContent(t||"")}),[e,t]),(0,gt.useEffect)((()=>{const{baseURL:i,suffix:s}=window.wpEditorL10n.tinymce;function l(e){let a;t&&e.on("loadContent",(()=>e.setContent(t))),e.on("blur",(()=>{a=e.selection.getBookmark(2,!0);const t=document.querySelector(".interface-interface-skeleton__content"),n=t.scrollTop;return r()?.length||o({content:e.getContent()}),e.once("focus",(()=>{a&&(e.selection.moveToBookmark(a),t.scrollTop!==n&&(t.scrollTop=n))})),!1})),e.on("mousedown touchstart",(()=>{a=null}));const i=(0,xt.debounce)((()=>{const t=e.getContent();t!==e._lastChange&&(e._lastChange=t,o({content:t}))}),250);e.on("Paste Change input Undo Redo",i),e.on("remove",i.cancel),e.on("keydown",(t=>{mn.isKeyboardEvent.primary(t,"z")&&t.stopPropagation(),t.keyCode!==mn.BACKSPACE&&t.keyCode!==mn.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)||(n([]),t.preventDefault(),t.stopImmediatePropagation());const{altKey:o}=t;o&&t.keyCode===mn.F10&&t.stopPropagation()})),e.on("paste",(e=>{e.stopPropagation()})),e.on("init",(()=>{const t=e.getBody();t.ownerDocument.activeElement===t&&(t.blur(),e.focus())}))}function c(){const{settings:t}=window.wpEditorL10n.tinymce;ar.oldEditor.initialize(`editor-${e}`,{tinymce:{...t,inline:!0,content_css:!1,fixed_toolbar_container:`#toolbar-${e}`,setup:l}})}function u(){"complete"===document.readyState&&c()}return a.current=!0,window.tinymce.EditorManager.overrideDefaults({base_url:i,suffix:s}),"complete"===document.readyState?c():document.addEventListener("readystatechange",u),()=>{document.removeEventListener("readystatechange",u),ar.oldEditor.remove(`editor-${e}`),a.current=!1}}),[]),(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)("div",{id:`toolbar-${e}`,className:"block-library-classic__toolbar",onClick:function(){const t=window.tinymce.get(`editor-${e}`);t&&t.focus()},"data-placeholder":(0,pt.__)("Classic"),onKeyDown:function(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()}},"toolbar"),(0,it.jsx)("div",{id:`editor-${e}`,className:"wp-block-freeform block-library-rich-text__tinymce"},"editor")]})}const sr=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/freeform","title":"Classic","category":"text","description":"Use the classic WordPress editor.","textdomain":"default","attributes":{"content":{"type":"string","source":"raw"}},"supports":{"html":false,"className":false,"customClassName":false,"lock":false,"reusable":false,"renaming":false,"blockVisibility":false},"editorStyle":"wp-block-freeform-editor"}');const{name:lr}=sr,cr={icon:Xn,edit:function(e){const{clientId:t}=e,o=(0,lt.useSelect)((e=>e(ct.store).canRemoveBlock(t)),[t]),[n,r]=(0,gt.useState)(!1),a=(0,xt.useRefEffect)((e=>{r(e.ownerDocument!==document)}),[]);return(0,it.jsxs)(it.Fragment,{children:[o&&(0,it.jsx)(ct.BlockControls,{children:(0,it.jsx)(mt.ToolbarGroup,{children:(0,it.jsx)(er,{clientId:t})})}),(0,it.jsx)("div",{...(0,ct.useBlockProps)({ref:a}),children:n?(0,it.jsx)(rr,{...e}):(0,it.jsx)(ir,{...e})})]})},save:function({attributes:e}){const{content:t}=e;return(0,it.jsx)(gt.RawHTML,{children:t})}},ur=()=>jt({name:lr,metadata:sr,settings:cr});var dr=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.Path,{d:"M20.8 10.7l-4.3-4.3-1.1 1.1 4.3 4.3c.1.1.1.3 0 .4l-4.3 4.3 1.1 1.1 4.3-4.3c.7-.8.7-1.9 0-2.6zM4.2 11.8l4.3-4.3-1-1-4.3 4.3c-.7.7-.7 1.8 0 2.5l4.3 4.3 1.1-1.1-4.3-4.3c-.2-.1-.2-.3-.1-.4z"})});const pr=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/code","title":"Code","category":"text","description":"Display code snippets that respect your spacing and tabs.","textdomain":"default","attributes":{"content":{"type":"rich-text","source":"rich-text","selector":"code","__unstablePreserveWhiteSpace":true,"role":"content"}},"supports":{"align":["wide"],"anchor":true,"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"spacing":{"margin":["top","bottom"],"padding":true,"__experimentalDefaultControls":{"margin":false,"padding":false}},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true,"__experimentalDefaultControls":{"width":true,"color":true}},"color":{"text":true,"background":true,"gradients":true,"__experimentalDefaultControls":{"background":true,"text":true}},"interactivity":{"clientNavigation":true}},"style":"wp-block-code"}');function mr(e){return e.replace(/\[/g,"&#91;")}function gr(e){return e.replace(/^(\s*https?:)\/\/([^\s<>"]+\s*)$/m,"$1&#47;&#47;$2")}const hr={from:[{type:"enter",regExp:/^```$/,transform:()=>(0,st.createBlock)("core/code")},{type:"block",blocks:["core/paragraph"],transform:e=>{const{content:t}=e;return(0,st.createBlock)("core/code",{...e,...Nn(e,"core/code"),content:t})}},{type:"block",blocks:["core/html"],transform:e=>{const{content:t}=e;return(0,st.createBlock)("core/code",{...e,...Nn(e,"core/code"),content:(0,Tn.toHTMLString)({value:(0,Tn.create)({text:t})})})}},{type:"raw",isMatch:e=>"PRE"===e.nodeName&&1===e.children.length&&"CODE"===e.firstChild.nodeName,schema:{pre:{children:{code:{children:{"#text":{}}}}}}}],to:[{type:"block",blocks:["core/paragraph"],transform:e=>{const{content:t}=e;return(0,st.createBlock)("core/paragraph",{...Nn(e,"core/paragraph"),content:t})}}]};var _r=hr;const{name:xr}=pr,br={icon:dr,example:{attributes:{content:(0,pt.__)("// 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 );")}},merge:(e,t)=>({content:e.content+"\n\n"+t.content}),transforms:_r,edit:function({attributes:e,setAttributes:t,onRemove:o,insertBlocksAfter:n,mergeBlocks:r}){const a=(0,ct.useBlockProps)();return(0,it.jsx)("pre",{...a,children:(0,it.jsx)(ct.RichText,{tagName:"code",identifier:"content",value:e.content,onChange:e=>t({content:e}),onRemove:o,onMerge:r,placeholder:(0,pt.__)("Write code…"),"aria-label":(0,pt.__)("Code"),preserveWhiteSpace:!0,__unstablePastePlainText:!0,__unstableOnSplitAtDoubleLineEnd:()=>n((0,st.createBlock)((0,st.getDefaultBlockName)()))})})},save:function({attributes:e}){return(0,it.jsx)("pre",{...ct.useBlockProps.save(),children:(0,it.jsx)(ct.RichText.Content,{tagName:"code",value:(t="string"==typeof e.content?e.content:e.content.toHTMLString({preserveWhiteSpace:!0}),(0,xt.pipe)(mr,gr)(t||""))})});var t}},fr=()=>jt({name:xr,metadata:pr,settings:br});var yr=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M19 6H6c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zM6 17.5c-.3 0-.5-.2-.5-.5V8c0-.3.2-.5.5-.5h3v10H6zm13.5-.5c0 .3-.2.5-.5.5h-3v-10h3c.3 0 .5.2.5.5v9z"})});const vr=[{attributes:{verticalAlignment:{type:"string"},width:{type:"number",min:0,max:100}},isEligible:({width:e})=>isFinite(e),migrate:e=>({...e,width:`${e.width}%`}),save({attributes:e}){const{verticalAlignment:t,width:o}=e,n=Dt({[`is-vertically-aligned-${t}`]:t}),r={flexBasis:o+"%"};return(0,it.jsx)("div",{className:n,style:r,children:(0,it.jsx)(ct.InnerBlocks.Content,{})})}}];var kr=vr;function wr({width:e,setAttributes:t}){const[o]=(0,ct.useSettings)("spacing.units"),n=(0,mt.__experimentalUseCustomUnits)({availableUnits:o||["%","px","em","rem","vw"]}),r=vt();return(0,it.jsx)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{t({width:void 0})},dropdownMenuProps:r,children:(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>void 0!==e,label:(0,pt.__)("Width"),onDeselect:()=>t({width:void 0}),isShownByDefault:!0,children:(0,it.jsx)(mt.__experimentalUnitControl,{label:(0,pt.__)("Width"),__unstableInputWidth:"calc(50% - 8px)",__next40pxDefaultSize:!0,value:e||"",onChange:e=>{e=0>parseFloat(e)?"0":e,t({width:e})},units:n})})})}var Cr=function({attributes:{verticalAlignment:e,width:t,templateLock:o,allowedBlocks:n},setAttributes:r,clientId:a}){const i=Dt("block-core-columns",{[`is-vertically-aligned-${e}`]:e}),{columnsIds:s,hasChildBlocks:l,rootClientId:c}=(0,lt.useSelect)((e=>{const{getBlockOrder:t,getBlockRootClientId:o}=e(ct.store),n=o(a);return{hasChildBlocks:t(a).length>0,rootClientId:n,columnsIds:t(n)}}),[a]),{updateBlockAttributes:u}=(0,lt.useDispatch)(ct.store),d=Number.isFinite(t)?t+"%":t,p=(0,ct.useBlockProps)({className:i,style:d?{flexBasis:d}:void 0}),m=s.length,g=s.indexOf(a)+1,h=(0,pt.sprintf)((0,pt.__)("%1$s (%2$d of %3$d)"),p["aria-label"],g,m),_=(0,ct.useInnerBlocksProps)({...p,"aria-label":h},{templateLock:o,allowedBlocks:n,renderAppender:l?void 0:ct.InnerBlocks.ButtonBlockAppender});return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.BlockControls,{children:(0,it.jsx)(ct.BlockVerticalAlignmentToolbar,{onChange:e=>{r({verticalAlignment:e}),u(c,{verticalAlignment:null})},value:e,controls:["top","center","bottom","stretch"]})}),(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsx)(wr,{width:t,setAttributes:r})}),(0,it.jsx)("div",{..._})]})};const jr=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/column","title":"Column","category":"design","parent":["core/columns"],"description":"A single column within a columns block.","textdomain":"default","attributes":{"verticalAlignment":{"type":"string"},"width":{"type":"string"},"templateLock":{"type":["string","boolean"],"enum":["all","insert","contentOnly",false]}},"supports":{"__experimentalOnEnter":true,"anchor":true,"reusable":false,"html":false,"color":{"gradients":true,"heading":true,"button":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true}},"shadow":true,"spacing":{"blockGap":true,"padding":true,"__experimentalDefaultControls":{"padding":true,"blockGap":true}},"__experimentalBorder":{"color":true,"radius":true,"style":true,"width":true,"__experimentalDefaultControls":{"color":true,"radius":true,"style":true,"width":true}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"layout":true,"interactivity":{"clientNavigation":true},"allowedBlocks":true}}');const{name:Sr}=jr,Br={icon:yr,edit:Cr,save:function({attributes:e}){const{verticalAlignment:t,width:o}=e,n=Dt({[`is-vertically-aligned-${t}`]:t});let r;if(o&&/\d/.test(o)){let e=Number.isFinite(o)?o+"%":o;if(!Number.isFinite(o)&&o?.endsWith("%")){const t=1e12;e=Math.round(Number.parseFloat(o)*t)/t+"%"}r={flexBasis:e}}const a=ct.useBlockProps.save({className:n,style:r}),i=ct.useInnerBlocksProps.save(a);return(0,it.jsx)("div",{...i})},deprecated:kr},Tr=()=>jt({name:Sr,metadata:jr,settings:Br});var Nr=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M15 7.5h-5v10h5v-10Zm1.5 0v10H19a.5.5 0 0 0 .5-.5V8a.5.5 0 0 0-.5-.5h-2.5ZM6 7.5h2.5v10H6a.5.5 0 0 1-.5-.5V8a.5.5 0 0 1 .5-.5ZM6 6h13a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2Z"})});function Pr(e){let t,{doc:o}=Pr;o||(o=document.implementation.createHTMLDocument(""),Pr.doc=o),o.body.innerHTML=e;for(const e of o.body.firstChild.classList)if(t=e.match(/^layout-column-(\d+)$/))return Number(t[1])-1}var Ir=[{attributes:{verticalAlignment:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},textColor:{type:"string"}},migrate:e=>{if(!e.customTextColor&&!e.customBackgroundColor)return e;const t={color:{}};e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor);const{customTextColor:o,customBackgroundColor:n,...r}=e;return{...r,style:t,isStackedOnMobile:!0}},save({attributes:e}){const{verticalAlignment:t,backgroundColor:o,customBackgroundColor:n,textColor:r,customTextColor:a}=e,i=(0,ct.getColorClassName)("background-color",o),s=(0,ct.getColorClassName)("color",r),l=Dt({"has-background":o||n,"has-text-color":r||a,[i]:i,[s]:s,[`are-vertically-aligned-${t}`]:t}),c={backgroundColor:i?void 0:n,color:s?void 0:a};return(0,it.jsx)("div",{className:l||void 0,style:c,children:(0,it.jsx)(ct.InnerBlocks.Content,{})})}},{attributes:{columns:{type:"number",default:2}},isEligible:(e,t)=>!!t.some((e=>/layout-column-\d+/.test(e.originalContent)))&&t.some((e=>void 0!==Pr(e.originalContent))),migrate(e,t){const o=t.reduce(((e,t)=>{const{originalContent:o}=t;let n=Pr(o);return void 0===n&&(n=0),e[n]||(e[n]=[]),e[n].push(t),e}),[]).map((e=>(0,st.createBlock)("core/column",{},e))),{columns:n,...r}=e;return[{...r,isStackedOnMobile:!0},o]},save({attributes:e}){const{columns:t}=e;return(0,it.jsx)("div",{className:`has-${t}-columns`,children:(0,it.jsx)(ct.InnerBlocks.Content,{})})}},{attributes:{columns:{type:"number",default:2}},migrate(e,t){const{columns:o,...n}=e;return[e={...n,isStackedOnMobile:!0},t]},save({attributes:e}){const{verticalAlignment:t,columns:o}=e,n=Dt(`has-${o}-columns`,{[`are-vertically-aligned-${t}`]:t});return(0,it.jsx)("div",{className:n,children:(0,it.jsx)(ct.InnerBlocks.Content,{})})}}];const Dr=e=>{const t=parseFloat(e);return Number.isFinite(t)?parseFloat(t.toFixed(2)):void 0};function Mr(e,t){const{width:o=100/t}=e.attributes;return Dr(o)}function zr(e,t,o=e.length){const n=function(e,t=e.length){return e.reduce(((e,o)=>e+Mr(o,t)),0)}(e,o);return Object.fromEntries(Object.entries(function(e,t=e.length){return e.reduce(((e,o)=>{const n=Mr(o,t);return Object.assign(e,{[o.clientId]:n})}),{})}(e,o)).map((([e,o])=>[e,Dr(t*o/n)])))}function Ar(e,t){return e.map((e=>({...e,attributes:{...e.attributes,width:`${t[e.clientId]}%`}})))}const Lr={name:"core/column"};function Hr({clientId:e,setAttributes:t,isStackedOnMobile:o}){const{count:n,canInsertColumnBlock:r,minCount:a}=(0,lt.useSelect)((t=>{const{canInsertBlockType:o,canRemoveBlock:n,getBlockOrder:r}=t(ct.store),a=r(e),i=a.reduce(((e,t,o)=>(n(t)||e.push(o),e)),[]);return{count:a.length,canInsertColumnBlock:o("core/column",e),minCount:Math.max(...i)+1}}),[e]),{getBlocks:i}=(0,lt.useSelect)(ct.store),{replaceInnerBlocks:s}=(0,lt.useDispatch)(ct.store);function l(t,o){let n=i(e);const r=n.every((e=>{const t=e.attributes.width;return Number.isFinite(t?.endsWith?.("%")?parseFloat(t):t)}));const a=o>t;if(a&&r){const e=Dr(100/o),r=o-t;n=[...Ar(n,zr(n,100-e*r)),...Array.from({length:r}).map((()=>(0,st.createBlock)("core/column",{width:`${e}%`})))]}else if(a)n=[...n,...Array.from({length:o-t}).map((()=>(0,st.createBlock)("core/column")))];else if(o<t&&(n=n.slice(0,-(t-o)),r)){n=Ar(n,zr(n,100))}s(e,n)}const c=vt();return(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{t({isStackedOnMobile:!0})},dropdownMenuProps:c,children:[r&&(0,it.jsxs)(mt.__experimentalVStack,{spacing:4,style:{gridColumn:"1 / -1"},children:[(0,it.jsx)(mt.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,pt.__)("Columns"),value:n,onChange:e=>l(n,Math.max(a,e)),min:Math.max(1,a),max:Math.max(6,n)}),n>6&&(0,it.jsx)(mt.Notice,{status:"warning",isDismissible:!1,children:(0,pt.__)("This column count exceeds the recommended amount and may cause visual breakage.")})]}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Stack on mobile"),isShownByDefault:!0,hasValue:()=>!0!==o,onDeselect:()=>t({isStackedOnMobile:!0}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Stack on mobile"),checked:o,onChange:()=>t({isStackedOnMobile:!o})})})]})}function Rr({attributes:e,setAttributes:t,clientId:o}){const{isStackedOnMobile:n,verticalAlignment:r,templateLock:a}=e,i=(0,lt.useRegistry)(),{getBlockOrder:s}=(0,lt.useSelect)(ct.store),{updateBlockAttributes:l}=(0,lt.useDispatch)(ct.store),c=Dt({[`are-vertically-aligned-${r}`]:r,"is-not-stacked-on-mobile":!n}),u=(0,ct.useBlockProps)({className:c}),d=(0,ct.useInnerBlocksProps)(u,{defaultBlock:Lr,directInsert:!0,orientation:"horizontal",renderAppender:!1,templateLock:a});return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.BlockControls,{children:(0,it.jsx)(ct.BlockVerticalAlignmentToolbar,{onChange:function(e){const n=s(o);i.batch((()=>{t({verticalAlignment:e}),l(n,{verticalAlignment:e})}))},value:r})}),(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsx)(Hr,{clientId:o,setAttributes:t,isStackedOnMobile:n})}),(0,it.jsx)("div",{...d})]})}function Vr({clientId:e,name:t,setAttributes:o}){const{blockType:n,defaultVariation:r,variations:a}=(0,lt.useSelect)((e=>{const{getBlockVariations:o,getBlockType:n,getDefaultBlockVariation:r}=e(st.store);return{blockType:n(t),defaultVariation:r(t,"block"),variations:o(t,"block")}}),[t]),{replaceInnerBlocks:i}=(0,lt.useDispatch)(ct.store),s=(0,ct.useBlockProps)();return(0,it.jsx)("div",{...s,children:(0,it.jsx)(ct.__experimentalBlockVariationPicker,{icon:n?.icon?.src,label:n?.title,variations:a,instructions:(0,pt.__)("Divide into columns. Select a layout:"),onSelect:(t=r)=>{t.attributes&&o(t.attributes),t.innerBlocks&&i(e,(0,st.createBlocksFromInnerBlocksTemplate)(t.innerBlocks),!0)},allowSkip:!0})})}var Fr=e=>{const{clientId:t}=e,o=(0,lt.useSelect)((e=>e(ct.store).getBlocks(t).length>0),[t])?Rr:Vr;return(0,it.jsx)(o,{...e})};const Er=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/columns","title":"Columns","category":"design","allowedBlocks":["core/column"],"description":"Display content in multiple columns, with blocks added to each column.","textdomain":"default","attributes":{"verticalAlignment":{"type":"string"},"isStackedOnMobile":{"type":"boolean","default":true},"templateLock":{"type":["string","boolean"],"enum":["all","insert","contentOnly",false]}},"supports":{"anchor":true,"align":["wide","full"],"html":false,"color":{"gradients":true,"link":true,"heading":true,"button":true,"__experimentalDefaultControls":{"background":true,"text":true}},"spacing":{"blockGap":{"__experimentalDefault":"2em","sides":["horizontal","vertical"]},"margin":["top","bottom"],"padding":true,"__experimentalDefaultControls":{"padding":true,"blockGap":true}},"layout":{"allowSwitching":false,"allowInheriting":false,"allowEditing":false,"default":{"type":"flex","flexWrap":"nowrap"}},"__experimentalBorder":{"color":true,"radius":true,"style":true,"width":true,"__experimentalDefaultControls":{"color":true,"radius":true,"style":true,"width":true}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true},"shadow":true},"editorStyle":"wp-block-columns-editor","style":"wp-block-columns"}');var Or=[{name:"one-column-full",title:(0,pt.__)("100"),description:(0,pt.__)("One column"),icon:(0,it.jsx)(mt.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,it.jsx)(mt.Path,{d:"M0 10a2 2 0 0 1 2-2h44a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V10Z"})}),innerBlocks:[["core/column"]],scope:["block"]},{name:"two-columns-equal",title:(0,pt.__)("50 / 50"),description:(0,pt.__)("Two columns; equal split"),icon:(0,it.jsx)(mt.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,it.jsx)(mt.Path,{d:"M0 10a2 2 0 0 1 2-2h19a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V10Zm25 0a2 2 0 0 1 2-2h19a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H27a2 2 0 0 1-2-2V10Z"})}),isDefault:!0,innerBlocks:[["core/column"],["core/column"]],scope:["block"]},{name:"two-columns-one-third-two-thirds",title:(0,pt.__)("33 / 66"),description:(0,pt.__)("Two columns; one-third, two-thirds split"),icon:(0,it.jsx)(mt.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,it.jsx)(mt.Path,{d:"M0 10a2 2 0 0 1 2-2h11a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V10Zm17 0a2 2 0 0 1 2-2h27a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H19a2 2 0 0 1-2-2V10Z"})}),innerBlocks:[["core/column",{width:"33.33%"}],["core/column",{width:"66.66%"}]],scope:["block"]},{name:"two-columns-two-thirds-one-third",title:(0,pt.__)("66 / 33"),description:(0,pt.__)("Two columns; two-thirds, one-third split"),icon:(0,it.jsx)(mt.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,it.jsx)(mt.Path,{d:"M0 10a2 2 0 0 1 2-2h27a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V10Zm33 0a2 2 0 0 1 2-2h11a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H35a2 2 0 0 1-2-2V10Z"})}),innerBlocks:[["core/column",{width:"66.66%"}],["core/column",{width:"33.33%"}]],scope:["block"]},{name:"three-columns-equal",title:(0,pt.__)("33 / 33 / 33"),description:(0,pt.__)("Three columns; equal split"),icon:(0,it.jsx)(mt.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,it.jsx)(mt.Path,{d:"M0 10a2 2 0 0 1 2-2h10.531c1.105 0 1.969.895 1.969 2v28c0 1.105-.864 2-1.969 2H2a2 2 0 0 1-2-2V10Zm16.5 0c0-1.105.864-2 1.969-2H29.53c1.105 0 1.969.895 1.969 2v28c0 1.105-.864 2-1.969 2H18.47c-1.105 0-1.969-.895-1.969-2V10Zm17 0c0-1.105.864-2 1.969-2H46a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H35.469c-1.105 0-1.969-.895-1.969-2V10Z"})}),innerBlocks:[["core/column"],["core/column"],["core/column"]],scope:["block"]},{name:"three-columns-wider-center",title:(0,pt.__)("25 / 50 / 25"),description:(0,pt.__)("Three columns; wide center column"),icon:(0,it.jsx)(mt.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,it.jsx)(mt.Path,{d:"M0 10a2 2 0 0 1 2-2h7.531c1.105 0 1.969.895 1.969 2v28c0 1.105-.864 2-1.969 2H2a2 2 0 0 1-2-2V10Zm13.5 0c0-1.105.864-2 1.969-2H32.53c1.105 0 1.969.895 1.969 2v28c0 1.105-.864 2-1.969 2H15.47c-1.105 0-1.969-.895-1.969-2V10Zm23 0c0-1.105.864-2 1.969-2H46a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2h-7.531c-1.105 0-1.969-.895-1.969-2V10Z"})}),innerBlocks:[["core/column",{width:"25%"}],["core/column",{width:"50%"}],["core/column",{width:"25%"}]],scope:["block"]}];const Gr={from:[{type:"block",isMultiBlock:!0,blocks:["*"],__experimentalConvert:e=>{const t=+(100/e.length).toFixed(2),o=e.map((({name:e,attributes:o,innerBlocks:n})=>["core/column",{width:`${t}%`},[[e,{...o},n]]]));return(0,st.createBlock)("core/columns",{},(0,st.createBlocksFromInnerBlocksTemplate)(o))},isMatch:({length:e},t)=>(1!==t.length||"core/columns"!==t[0].name)&&(e&&e<=6)},{type:"block",blocks:["core/media-text"],priority:1,transform:(e,t)=>{const{align:o,backgroundColor:n,textColor:r,style:a,mediaAlt:i,mediaId:s,mediaPosition:l,mediaSizeSlug:c,mediaType:u,mediaUrl:d,mediaWidth:p,verticalAlignment:m}=e;let g;if("image"!==u&&u)g=["core/video",{id:s,src:d}];else{g=["core/image",{...{id:s,alt:i,url:d,sizeSlug:c},...{href:e.href,linkClass:e.linkClass,linkDestination:e.linkDestination,linkTarget:e.linkTarget,rel:e.rel}}]}const h=[["core/column",{width:`${p}%`},[g]],["core/column",{width:100-p+"%"},t]];return"right"===l&&h.reverse(),(0,st.createBlock)("core/columns",{align:o,backgroundColor:n,textColor:r,style:a,verticalAlignment:m},(0,st.createBlocksFromInnerBlocksTemplate)(h))}}],ungroup:(e,t)=>t.flatMap((e=>e.innerBlocks))};var $r=Gr;const{name:Ur}=Er,qr={icon:Nr,variations:Or,example:{viewportWidth:782,innerBlocks:[{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{content:(0,pt.__)("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent et eros eu felis.")}},{name:"core/image",attributes:{url:"https://s.w.org/images/core/5.3/Windbuchencom.jpg"}},{name:"core/paragraph",attributes:{content:(0,pt.__)("Suspendisse commodo neque lacus, a dictum orci interdum et.")}}]},{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{content:(0,pt.__)("Etiam et egestas lorem. Vivamus sagittis sit amet dolor quis lobortis. Integer sed fermentum arcu, id vulputate lacus. Etiam fermentum sem eu quam hendrerit.")}},{name:"core/paragraph",attributes:{content:(0,pt.__)("Nam risus massa, ullamcorper consectetur eros fermentum, porta aliquet ligula. Sed vel mauris nec enim.")}}]}]},deprecated:Ir,edit:Fr,save:function({attributes:e}){const{isStackedOnMobile:t,verticalAlignment:o}=e,n=Dt({[`are-vertically-aligned-${o}`]:o,"is-not-stacked-on-mobile":!t}),r=ct.useBlockProps.save({className:n}),a=ct.useInnerBlocksProps.save(r);return(0,it.jsx)("div",{...a})},transforms:$r},Wr=()=>jt({name:Ur,metadata:Er,settings:qr});var Zr=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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"})});const Jr=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/comments","title":"Comments","category":"theme","description":"An advanced block that allows displaying post comments using different visual configurations.","textdomain":"default","attributes":{"tagName":{"type":"string","default":"div"},"legacy":{"type":"boolean","default":false}},"supports":{"align":["wide","full"],"html":false,"color":{"gradients":true,"heading":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true,"link":true}},"spacing":{"margin":true,"padding":true},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true,"__experimentalDefaultControls":{"radius":true,"color":true,"width":true,"style":true}}},"editorStyle":"wp-block-comments-editor","usesContext":["postId","postType"]}');var Qr=[{attributes:{tagName:{type:"string",default:"div"}},apiVersion:3,supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}}},save({attributes:{tagName:e}}){const t=ct.useBlockProps.save(),{className:o}=t,n=o?.split(" ")||[],r=n?.filter((e=>"wp-block-comments"!==e)),a={...t,className:r.join(" ")};return(0,it.jsx)(e,{...a,children:(0,it.jsx)(ct.InnerBlocks.Content,{})})}}];const{HTMLElementControl:Kr}=jo(ct.privateApis);function Yr({attributes:{tagName:e},setAttributes:t}){return(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsx)(ct.InspectorControls,{group:"advanced",children:(0,it.jsx)(Kr,{tagName:e,onChange:e=>t({tagName:e}),options:[{label:(0,pt.__)("Default (<div>)"),value:"div"},{label:"<section>",value:"section"},{label:"<aside>",value:"aside"}]})})})}const Xr=()=>{const e=(0,xt.useInstanceId)(Xr);return(0,it.jsxs)("div",{className:"comment-respond",children:[(0,it.jsx)("h3",{className:"comment-reply-title",children:(0,pt.__)("Leave a Reply")}),(0,it.jsxs)("form",{noValidate:!0,className:"comment-form",onSubmit:e=>e.preventDefault(),children:[(0,it.jsxs)("p",{children:[(0,it.jsx)("label",{htmlFor:`comment-${e}`,children:(0,pt.__)("Comment")}),(0,it.jsx)("textarea",{id:`comment-${e}`,name:"comment",cols:"45",rows:"8",readOnly:!0})]}),(0,it.jsx)("p",{className:"form-submit wp-block-button",children:(0,it.jsx)("input",{name:"submit",type:"submit",className:Dt("wp-block-button__link",(0,ct.__experimentalGetElementClassName)("button")),label:(0,pt.__)("Post Comment"),value:(0,pt.__)("Post Comment"),"aria-disabled":"true"})})]})]})};var ea=({postId:e,postType:t})=>{const[o,n]=(0,_t.useEntityProp)("postType",t,"comment_status",e),r=void 0===t||void 0===e,{defaultCommentStatus:a}=(0,lt.useSelect)((e=>e(ct.store).getSettings().__experimentalDiscussionSettings)),i=(0,lt.useSelect)((e=>!!t&&!!e(_t.store).getPostType(t)?.supports.comments));if(!r&&"open"!==o){if("closed"===o){const e=[(0,it.jsx)(mt.Button,{__next40pxDefaultSize:!0,onClick:()=>n("open"),variant:"primary",children:(0,pt._x)("Enable comments","action that affects the current post")},"enableComments")];return(0,it.jsx)(ct.Warning,{actions:e,children:(0,pt.__)("Post Comments Form block: Comments are not enabled for this item.")})}if(!i)return(0,it.jsx)(ct.Warning,{children:(0,pt.sprintf)((0,pt.__)("Post Comments Form block: Comments are not enabled for this post type (%s)."),t)});if("open"!==a)return(0,it.jsx)(ct.Warning,{children:(0,pt.__)("Post Comments Form block: Comments are not enabled.")})}return(0,it.jsx)(Xr,{})};function ta({postType:e,postId:t}){let[o]=(0,_t.useEntityProp)("postType",e,"title",t);o=o||(0,pt.__)("Post Title");const{avatarURL:n}=(0,lt.useSelect)((e=>e(ct.store).getSettings().__experimentalDiscussionSettings));return(0,it.jsxs)("div",{className:"wp-block-comments__legacy-placeholder",inert:"true",children:[(0,it.jsx)("h3",{children:(0,pt.sprintf)((0,pt.__)("One response to %s"),o)}),(0,it.jsxs)("div",{className:"navigation",children:[(0,it.jsx)("div",{className:"alignleft",children:(0,it.jsxs)("a",{href:"#top",children:["« ",(0,pt.__)("Older Comments")]})}),(0,it.jsx)("div",{className:"alignright",children:(0,it.jsxs)("a",{href:"#top",children:[(0,pt.__)("Newer Comments")," »"]})})]}),(0,it.jsx)("ol",{className:"commentlist",children:(0,it.jsx)("li",{className:"comment even thread-even depth-1",children:(0,it.jsxs)("article",{className:"comment-body",children:[(0,it.jsxs)("footer",{className:"comment-meta",children:[(0,it.jsxs)("div",{className:"comment-author vcard",children:[(0,it.jsx)("img",{alt:(0,pt.__)("Commenter Avatar"),src:n,className:"avatar avatar-32 photo",height:"32",width:"32",loading:"lazy"}),(0,it.jsx)("b",{className:"fn",children:(0,it.jsx)("a",{href:"#top",className:"url",children:(0,pt.__)("A WordPress Commenter")})})," ",(0,it.jsxs)("span",{className:"says",children:[(0,pt.__)("says"),":"]})]}),(0,it.jsxs)("div",{className:"comment-metadata",children:[(0,it.jsx)("a",{href:"#top",children:(0,it.jsx)("time",{dateTime:"2000-01-01T00:00:00+00:00",children:(0,pt.__)("January 1, 2000 at 00:00 am")})})," ",(0,it.jsx)("span",{className:"edit-link",children:(0,it.jsx)("a",{className:"comment-edit-link",href:"#top",children:(0,pt.__)("Edit")})})]})]}),(0,it.jsx)("div",{className:"comment-content",children:(0,it.jsxs)("p",{children:[(0,pt.__)("Hi, this is a comment."),(0,it.jsx)("br",{}),(0,pt.__)("To get started with moderating, editing, and deleting comments, please visit the Comments screen in the dashboard."),(0,it.jsx)("br",{}),(0,gt.createInterpolateElement)((0,pt.__)("Commenter avatars come from <a>Gravatar</a>."),{a:(0,it.jsx)("a",{href:"https://gravatar.com/"})})]})}),(0,it.jsx)("div",{className:"reply",children:(0,it.jsx)("a",{className:"comment-reply-link",href:"#top","aria-label":(0,pt.__)("Reply to A WordPress Commenter"),children:(0,pt.__)("Reply")})})]})})}),(0,it.jsxs)("div",{className:"navigation",children:[(0,it.jsx)("div",{className:"alignleft",children:(0,it.jsxs)("a",{href:"#top",children:["« ",(0,pt.__)("Older Comments")]})}),(0,it.jsx)("div",{className:"alignright",children:(0,it.jsxs)("a",{href:"#top",children:[(0,pt.__)("Newer Comments")," »"]})})]}),(0,it.jsx)(ea,{postId:t,postType:e})]})}function oa({attributes:e,setAttributes:t,context:{postType:o,postId:n}}){const{textAlign:r}=e,a=[(0,it.jsx)(mt.Button,{__next40pxDefaultSize:!0,onClick:()=>{t({legacy:!1})},variant:"primary",children:(0,pt.__)("Switch to editable mode")},"convert")],i=(0,ct.useBlockProps)({className:Dt({[`has-text-align-${r}`]:r})});return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.BlockControls,{group:"block",children:(0,it.jsx)(ct.AlignmentControl,{value:r,onChange:e=>{t({textAlign:e})}})}),(0,it.jsxs)("div",{...i,children:[(0,it.jsx)(ct.Warning,{actions:a,children:(0,pt.__)("Comments block: You’re currently using the legacy version of the block. The following is just a placeholder - the final styling will likely look different. For a better representation and more customization options, switch the block to its editable mode.")}),(0,it.jsx)(ta,{postId:n,postType:o})]})]})}var na=[["core/comments-title"],["core/comment-template",{},[["core/columns",{},[["core/column",{width:"40px"},[["core/avatar",{size:40,style:{border:{radius:"20px"}}}]]],["core/column",{},[["core/comment-author-name",{fontSize:"small"}],["core/group",{layout:{type:"flex"},style:{spacing:{margin:{top:"0px",bottom:"0px"}}}},[["core/comment-date",{fontSize:"small"}],["core/comment-edit-link",{fontSize:"small"}]]],["core/comment-content"],["core/comment-reply-link",{fontSize:"small"}]]]]]]],["core/comments-pagination"],["core/post-comments-form"]];const{name:ra}=Jr,aa={icon:Zr,example:{},edit:function(e){const{attributes:t,setAttributes:o,clientId:n}=e,{tagName:r,legacy:a}=t,i=(0,ct.useBlockProps)(),s=(0,ct.useInnerBlocksProps)(i,{template:na});return a?(0,it.jsx)(oa,{...e}):(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(Yr,{attributes:t,setAttributes:o,clientId:n}),(0,it.jsx)(r,{...s})]})},save:function({attributes:{tagName:e,legacy:t}}){const o=ct.useBlockProps.save(),n=ct.useInnerBlocksProps.save(o);return t?null:(0,it.jsx)(e,{...n})},deprecated:Qr},ia=()=>jt({name:ra,metadata:Jr,settings:aa}),sa=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"__experimental":"fse","name":"core/comment-author-avatar","title":"Comment Author Avatar (deprecated)","category":"theme","ancestor":["core/comment-template"],"description":"This block is deprecated. Please use the Avatar block instead.","textdomain":"default","attributes":{"width":{"type":"number","default":96},"height":{"type":"number","default":96}},"usesContext":["commentId"],"supports":{"html":false,"inserter":false,"__experimentalBorder":{"radius":true,"width":true,"color":true,"style":true},"color":{"background":true,"text":false,"__experimentalDefaultControls":{"background":true}},"spacing":{"__experimentalSkipSerialization":true,"margin":true,"padding":true},"interactivity":{"clientNavigation":true}}}');const{name:la}=sa,ca={icon:to,edit:function({attributes:e,context:{commentId:t},setAttributes:o,isSelected:n}){const{height:r,width:a}=e,[i]=(0,_t.useEntityProp)("root","comment","author_avatar_urls",t),[s]=(0,_t.useEntityProp)("root","comment","author_name",t),l=i?Object.values(i):null,c=i?Object.keys(i):null,u=c?c[0]:24,d=c?c[c.length-1]:96,p=(0,ct.useBlockProps)(),m=(0,ct.__experimentalGetSpacingClassesAndStyles)(e),g=Math.floor(2.5*d),{avatarURL:h}=(0,lt.useSelect)((e=>{const{getSettings:t}=e(ct.store),{__experimentalDiscussionSettings:o}=t();return o})),_=(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsx)(mt.PanelBody,{title:(0,pt.__)("Settings"),children:(0,it.jsx)(mt.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,pt.__)("Image size"),onChange:e=>o({width:e,height:e}),min:u,max:g,initialPosition:a,value:a})})}),x=(0,it.jsx)(mt.ResizableBox,{size:{width:a,height:r},showHandle:n,onResizeStop:(e,t,n,i)=>{o({height:parseInt(r+i.height,10),width:parseInt(a+i.width,10)})},lockAspectRatio:!0,enable:{top:!1,right:!(0,pt.isRTL)(),bottom:!0,left:(0,pt.isRTL)()},minWidth:u,maxWidth:g,children:(0,it.jsx)("img",{src:l?l[l.length-1]:h,alt:`${s} ${(0,pt.__)("Avatar")}`,...p})});return(0,it.jsxs)(it.Fragment,{children:[_,(0,it.jsx)("div",{...m,children:x})]})}},ua=()=>jt({name:la,metadata:sa,settings:ca});var da=(0,it.jsxs)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,it.jsx)(St.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",fillRule:"evenodd",clipRule:"evenodd"}),(0,it.jsx)(St.Path,{d:"M15 15V15C15 13.8954 14.1046 13 13 13L11 13C9.89543 13 9 13.8954 9 15V15",fillRule:"evenodd",clipRule:"evenodd"}),(0,it.jsx)(St.Circle,{cx:"12",cy:"9",r:"2",fillRule:"evenodd",clipRule:"evenodd"})]});const pa=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/comment-author-name","title":"Comment Author Name","category":"theme","ancestor":["core/comment-template"],"description":"Displays the name of the author of the comment.","textdomain":"default","attributes":{"isLink":{"type":"boolean","default":true},"linkTarget":{"type":"string","default":"_self"},"textAlign":{"type":"string"}},"usesContext":["commentId"],"supports":{"html":false,"spacing":{"margin":true,"padding":true},"color":{"gradients":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true,"link":true}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true,"__experimentalDefaultControls":{"radius":true,"color":true,"width":true,"style":true}}},"style":"wp-block-comment-author-name"}');const ma={attributes:{isLink:{type:"boolean",default:!1},linkTarget:{type:"string",default:"_self"}},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:Yo,isEligible:({style:e})=>e?.typography?.fontFamily};var ga=[ma];const{name:ha}=pa,_a={icon:da,edit:function({attributes:{isLink:e,linkTarget:t,textAlign:o},context:{commentId:n},setAttributes:r}){const a=vt(),i=(0,ct.useBlockProps)({className:Dt({[`has-text-align-${o}`]:o})});let s=(0,lt.useSelect)((e=>{const{getEntityRecord:t}=e(_t.store),o=t("root","comment",n),r=o?.author_name;if(o&&!r){const e=t("root","user",o.author);return e?.name??(0,pt.__)("Anonymous")}return r??""}),[n]);const l=(0,it.jsx)(ct.BlockControls,{group:"block",children:(0,it.jsx)(ct.AlignmentControl,{value:o,onChange:e=>r({textAlign:e})})}),c=(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{r({isLink:!0,linkTarget:"_self"})},dropdownMenuProps:a,children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Link to authors URL"),isShownByDefault:!0,hasValue:()=>!e,onDeselect:()=>r({isLink:!0}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Link to authors URL"),onChange:()=>r({isLink:!e}),checked:e})}),e&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>"_self"!==t,onDeselect:()=>r({linkTarget:"_self"}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Open in new tab"),onChange:e=>r({linkTarget:e?"_blank":"_self"}),checked:"_blank"===t})})]})});n&&s||(s=(0,pt._x)("Comment Author","block title"));const u=e?(0,it.jsx)("a",{href:"#comment-author-pseudo-link",onClick:e=>e.preventDefault(),children:s}):s;return(0,it.jsxs)(it.Fragment,{children:[c,l,(0,it.jsx)("div",{...i,children:u})]})},deprecated:ga,example:{}},xa=()=>jt({name:ha,metadata:pa,settings:_a});var ba=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M6.68822 16.625L5.5 17.8145L5.5 5.5L18.5 5.5L18.5 16.625L6.68822 16.625ZM7.31 18.125L19 18.125C19.5523 18.125 20 17.6773 20 17.125L20 5C20 4.44772 19.5523 4 19 4H5C4.44772 4 4 4.44772 4 5V19.5247C4 19.8173 4.16123 20.086 4.41935 20.2237C4.72711 20.3878 5.10601 20.3313 5.35252 20.0845L7.31 18.125ZM16 9.99997H8V8.49997H16V9.99997ZM8 14H13V12.5H8V14Z"})});const fa=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/comment-content","title":"Comment Content","category":"theme","ancestor":["core/comment-template"],"description":"Displays the contents of a comment.","textdomain":"default","usesContext":["commentId"],"attributes":{"textAlign":{"type":"string"}},"supports":{"color":{"gradients":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true,"__experimentalDefaultControls":{"radius":true,"color":true,"width":true,"style":true}},"spacing":{"padding":["horizontal","vertical"],"__experimentalDefaultControls":{"padding":true}},"html":false},"style":"wp-block-comment-content"}');const{name:ya}=fa,va={icon:ba,edit:function({setAttributes:e,attributes:{textAlign:t},context:{commentId:o}}){const n=(0,ct.useBlockProps)({className:Dt({[`has-text-align-${t}`]:t})}),[r]=(0,_t.useEntityProp)("root","comment","content",o),a=(0,it.jsx)(ct.BlockControls,{group:"block",children:(0,it.jsx)(ct.AlignmentControl,{value:t,onChange:t=>e({textAlign:t})})});return o&&r?(0,it.jsxs)(it.Fragment,{children:[a,(0,it.jsx)("div",{...n,children:(0,it.jsx)(mt.Disabled,{children:(0,it.jsx)(gt.RawHTML,{children:r.rendered},"html")})})]}):(0,it.jsxs)(it.Fragment,{children:[a,(0,it.jsx)("div",{...n,children:(0,it.jsx)("p",{children:(0,pt._x)("Comment Content","block title")})})]})},example:{}},ka=()=>jt({name:ya,metadata:fa,settings:va});var wa=(0,it.jsxs)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,it.jsx)(St.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"}),(0,it.jsx)(St.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"})]});const Ca=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/comment-date","title":"Comment Date","category":"theme","ancestor":["core/comment-template"],"description":"Displays the date on which the comment was posted.","textdomain":"default","attributes":{"format":{"type":"string"},"isLink":{"type":"boolean","default":true}},"usesContext":["commentId"],"supports":{"html":false,"color":{"gradients":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true,"link":true}},"spacing":{"margin":true,"padding":true},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true,"__experimentalDefaultControls":{"radius":true,"color":true,"width":true,"style":true}}},"style":"wp-block-comment-date"}'),ja=window.wp.date;const Sa={attributes:{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:Yo,isEligible:({style:e})=>e?.typography?.fontFamily};var Ba=[Sa];const{name:Ta}=Ca,Na={icon:wa,edit:function({attributes:{format:e,isLink:t},context:{commentId:o},setAttributes:n}){const r=(0,ct.useBlockProps)(),a=vt();let[i]=(0,_t.useEntityProp)("root","comment","date",o);const[s=(0,ja.getSettings)().formats.date]=(0,_t.useEntityProp)("root","site","date_format"),l=(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{n({format:void 0,isLink:!0})},dropdownMenuProps:a,children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Date format"),hasValue:()=>void 0!==e,onDeselect:()=>n({format:void 0}),isShownByDefault:!0,children:(0,it.jsx)(ct.__experimentalDateFormatPicker,{format:e,defaultFormat:s,onChange:e=>n({format:e})})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Link to comment"),hasValue:()=>!t,onDeselect:()=>n({isLink:!0}),isShownByDefault:!0,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Link to comment"),onChange:()=>n({isLink:!t}),checked:t})})]})});o&&i||(i=(0,pt._x)("Comment Date","block title"));let c=i instanceof Date?(0,it.jsx)("time",{dateTime:(0,ja.dateI18n)("c",i),children:"human-diff"===e?(0,ja.humanTimeDiff)(i):(0,ja.dateI18n)(e||s,i)}):(0,it.jsx)("time",{children:i});return t&&(c=(0,it.jsx)("a",{href:"#comment-date-pseudo-link",onClick:e=>e.preventDefault(),children:c})),(0,it.jsxs)(it.Fragment,{children:[l,(0,it.jsx)("div",{...r,children:c})]})},deprecated:Ba,example:{}},Pa=()=>jt({name:Ta,metadata:Ca,settings:Na});var Ia=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.Path,{d:"m6.249 11.065.44-.44h3.186l-1.5 1.5H7.31l-1.957 1.96A.792.792 0 0 1 4 13.524V5a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v1.5L12.5 8V5.5h-7v6.315l.749-.75ZM20 19.75H7v-1.5h13v1.5Zm0-12.653-8.967 9.064L8 17l.867-2.935L17.833 5 20 7.097Z"})});const Da=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/comment-edit-link","title":"Comment Edit Link","category":"theme","ancestor":["core/comment-template"],"description":"Displays a link to edit the comment in the WordPress Dashboard. This link is only visible to users with the edit comment capability.","textdomain":"default","usesContext":["commentId"],"attributes":{"linkTarget":{"type":"string","default":"_self"},"textAlign":{"type":"string"}},"supports":{"html":false,"color":{"link":true,"gradients":true,"text":false,"__experimentalDefaultControls":{"background":true,"link":true}},"spacing":{"margin":true,"padding":true,"__experimentalDefaultControls":{"margin":false,"padding":false}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true}},"style":"wp-block-comment-edit-link"}');const{name:Ma}=Da,za={icon:Ia,edit:function({attributes:{linkTarget:e,textAlign:t},setAttributes:o}){const n=(0,ct.useBlockProps)({className:Dt({[`has-text-align-${t}`]:t})}),r=vt(),a=(0,it.jsx)(ct.BlockControls,{group:"block",children:(0,it.jsx)(ct.AlignmentControl,{value:t,onChange:e=>o({textAlign:e})})}),i=(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsx)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{o({linkTarget:"_self"})},dropdownMenuProps:r,children:(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>"_blank"===e,onDeselect:()=>o({linkTarget:"_self"}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Open in new tab"),onChange:e=>o({linkTarget:e?"_blank":"_self"}),checked:"_blank"===e})})})});return(0,it.jsxs)(it.Fragment,{children:[a,i,(0,it.jsx)("div",{...n,children:(0,it.jsx)("a",{href:"#edit-comment-pseudo-link",onClick:e=>e.preventDefault(),children:(0,pt.__)("Edit")})})]})},example:{}},Aa=()=>jt({name:Ma,metadata:Da,settings:za});var La=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.Path,{d:"M6.68822 10.625L6.24878 11.0649L5.5 11.8145L5.5 5.5L12.5 5.5V8L14 6.5V5C14 4.44772 13.5523 4 13 4H5C4.44772 4 4 4.44771 4 5V13.5247C4 13.8173 4.16123 14.086 4.41935 14.2237C4.72711 14.3878 5.10601 14.3313 5.35252 14.0845L7.31 12.125H8.375L9.875 10.625H7.31H6.68822ZM14.5605 10.4983L11.6701 13.75H16.9975C17.9963 13.75 18.7796 14.1104 19.3553 14.7048C19.9095 15.2771 20.2299 16.0224 20.4224 16.7443C20.7645 18.0276 20.7543 19.4618 20.7487 20.2544C20.7481 20.345 20.7475 20.4272 20.7475 20.4999L19.2475 20.5001C19.2475 20.4191 19.248 20.3319 19.2484 20.2394V20.2394C19.2526 19.4274 19.259 18.2035 18.973 17.1307C18.8156 16.5401 18.586 16.0666 18.2778 15.7483C17.9909 15.4521 17.5991 15.25 16.9975 15.25H11.8106L14.5303 17.9697L13.4696 19.0303L8.96956 14.5303L13.4394 9.50171L14.5605 10.4983Z"})});const Ha=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/comment-reply-link","title":"Comment Reply Link","category":"theme","ancestor":["core/comment-template"],"description":"Displays a link to reply to a comment.","textdomain":"default","usesContext":["commentId"],"attributes":{"textAlign":{"type":"string"}},"supports":{"color":{"gradients":true,"link":true,"text":false,"__experimentalDefaultControls":{"background":true,"link":true}},"spacing":{"margin":true,"padding":true,"__experimentalDefaultControls":{"margin":false,"padding":false}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true},"html":false},"style":"wp-block-comment-reply-link"}');var Ra=function({setAttributes:e,attributes:{textAlign:t}}){const o=(0,ct.useBlockProps)({className:Dt({[`has-text-align-${t}`]:t})}),n=(0,it.jsx)(ct.BlockControls,{group:"block",children:(0,it.jsx)(ct.AlignmentControl,{value:t,onChange:t=>e({textAlign:t})})});return(0,it.jsxs)(it.Fragment,{children:[n,(0,it.jsx)("div",{...o,children:(0,it.jsx)("a",{href:"#comment-reply-pseudo-link",onClick:e=>e.preventDefault(),children:(0,pt.__)("Reply")})})]})};const{name:Va}=Ha,Fa={edit:Ra,icon:La,example:{}},Ea=()=>jt({name:Va,metadata:Ha,settings:Fa});var Oa=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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"})});const Ga=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/comment-template","title":"Comment Template","category":"design","parent":["core/comments"],"description":"Contains the block elements used to display a comment, like the title, date, author, avatar and more.","textdomain":"default","usesContext":["postId"],"supports":{"align":true,"html":false,"reusable":false,"spacing":{"margin":true,"padding":true},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true,"__experimentalDefaultControls":{"radius":true,"color":true,"width":true,"style":true}}},"style":"wp-block-comment-template"}'),$a=window.wp.apiFetch;var Ua=r.n($a);const qa=({defaultPage:e,postId:t,perPage:o,queryArgs:n})=>{const[r,a]=(0,gt.useState)({}),i=`${t}_${o}`,s=r[i]||0;return(0,gt.useEffect)((()=>{s||"newest"!==e||Ua()({path:(0,no.addQueryArgs)("/wp/v2/comments",{...n,post:t,per_page:o,_fields:"id"}),method:"HEAD",parse:!1}).then((e=>{const t=parseInt(e.headers.get("X-WP-TotalPages"));a({...r,[i]:t<=1?1:t})})).catch((()=>{a({...r,[i]:1})}))}),[e,t,o,a]),"newest"===e?s:1},Wa=[["core/avatar"],["core/comment-author-name"],["core/comment-date"],["core/comment-content"],["core/comment-reply-link"],["core/comment-edit-link"]];function Za({comment:e,activeCommentId:t,setActiveCommentId:o,firstCommentId:n,blocks:r}){const{children:a,...i}=(0,ct.useInnerBlocksProps)({},{template:Wa});return(0,it.jsxs)("li",{...i,children:[e.commentId===(t||n)?a:null,(0,it.jsx)(Ja,{blocks:r,commentId:e.commentId,setActiveCommentId:o,isHidden:e.commentId===(t||n)}),e?.children?.length>0?(0,it.jsx)(Qa,{comments:e.children,activeCommentId:t,setActiveCommentId:o,blocks:r,firstCommentId:n}):null]})}const Ja=(0,gt.memo)((({blocks:e,commentId:t,setActiveCommentId:o,isHidden:n})=>{const r=(0,ct.__experimentalUseBlockPreview)({blocks:e}),a=()=>{o(t)},i={display:n?"none":void 0};return(0,it.jsx)("div",{...r,tabIndex:0,role:"button",style:i,onClick:a,onKeyPress:a})})),Qa=({comments:e,blockProps:t,activeCommentId:o,setActiveCommentId:n,blocks:r,firstCommentId:a})=>(0,it.jsx)("ol",{...t,children:e&&e.map((({commentId:e,...t},i)=>(0,it.jsx)(ct.BlockContextProvider,{value:{commentId:e<0?null:e},children:(0,it.jsx)(Za,{comment:{commentId:e,...t},activeCommentId:o,setActiveCommentId:n,blocks:r,firstCommentId:a})},t.commentId||i)))});const{name:Ka}=Ga,Ya={icon:Oa,edit:function({clientId:e,context:{postId:t}}){const o=(0,ct.useBlockProps)(),[n,r]=(0,gt.useState)(),{commentOrder:a,threadCommentsDepth:i,threadComments:s,commentsPerPage:l,pageComments:c}=(0,lt.useSelect)((e=>{const{getSettings:t}=e(ct.store);return t().__experimentalDiscussionSettings})),u=(({postId:e})=>{const t={status:"approve",order:"asc",context:"embed",parent:0,_embed:"children"},{pageComments:o,commentsPerPage:n,defaultCommentsPage:r}=(0,lt.useSelect)((e=>{const{getSettings:t}=e(ct.store),{__experimentalDiscussionSettings:o}=t();return o})),a=o?Math.min(n,100):100,i=qa({defaultPage:r,postId:e,perPage:a,queryArgs:t});return(0,gt.useMemo)((()=>i?{...t,post:e,per_page:a,page:i}:null),[e,a,i])})({postId:t}),{topLevelComments:d,blocks:p}=(0,lt.useSelect)((t=>{const{getEntityRecords:o}=t(_t.store),{getBlocks:n}=t(ct.store);return{topLevelComments:u?o("root","comment",u):null,blocks:n(e)}}),[e,u]);let m=(e=>(0,gt.useMemo)((()=>e?.map((({id:e,_embedded:t})=>{const[o]=t?.children||[[]];return{commentId:e,children:o.map((e=>({commentId:e.id})))}}))),[e]))("desc"===a&&d?[...d].reverse():d);return d?(t||(m=(({perPage:e,pageComments:t,threadComments:o,threadCommentsDepth:n})=>{const r=o?Math.min(n,3):1,a=e=>e<r?[{commentId:-(e+3),children:a(e+1)}]:[],i=[{commentId:-1,children:a(1)}];return(!t||e>=2)&&r<3&&i.push({commentId:-2,children:[]}),(!t||e>=3)&&r<2&&i.push({commentId:-3,children:[]}),i})({perPage:l,pageComments:c,threadComments:s,threadCommentsDepth:i})),m.length?(0,it.jsx)(Qa,{comments:m,blockProps:o,blocks:p,activeCommentId:n,setActiveCommentId:r,firstCommentId:m[0]?.commentId}):(0,it.jsx)("p",{...o,children:(0,pt.__)("No results found.")})):(0,it.jsx)("p",{...o,children:(0,it.jsx)(mt.Spinner,{})})},save:function(){return(0,it.jsx)(ct.InnerBlocks.Content,{})}},Xa=()=>jt({name:Ka,metadata:Ga,settings:Ya});var ei=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M16 10.5v3h3v-3h-3zm-5 3h3v-3h-3v3zM7 9l-3 3 3 3 1-1-2-2 2-2-1-1z"})});const ti=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/comments-pagination-previous","title":"Comments Previous Page","category":"theme","parent":["core/comments-pagination"],"description":"Displays the previous comment\'s page link.","textdomain":"default","attributes":{"label":{"type":"string"}},"usesContext":["postId","comments/paginationArrow"],"supports":{"reusable":false,"html":false,"color":{"gradients":true,"text":false,"__experimentalDefaultControls":{"background":true}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true}}}'),oi={none:"",arrow:"←",chevron:"«"};const{name:ni}=ti,ri={icon:ei,edit:function({attributes:{label:e},setAttributes:t,context:{"comments/paginationArrow":o}}){const n=oi[o];return(0,it.jsxs)("a",{href:"#comments-pagination-previous-pseudo-link",onClick:e=>e.preventDefault(),...(0,ct.useBlockProps)(),children:[n&&(0,it.jsx)("span",{className:`wp-block-comments-pagination-previous-arrow is-arrow-${o}`,children:n}),(0,it.jsx)(ct.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":(0,pt.__)("Older comments page link"),placeholder:(0,pt.__)("Older Comments"),value:e,onChange:e=>t({label:e})})]})},example:{attributes:{label:(0,pt.__)("Older Comments")}}},ai=()=>jt({name:ni,metadata:ti,settings:ri});var ii=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M4 13.5h6v-3H4v3zm8 0h3v-3h-3v3zm5-3v3h3v-3h-3z"})});const si=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/comments-pagination","title":"Comments Pagination","category":"theme","parent":["core/comments"],"allowedBlocks":["core/comments-pagination-previous","core/comments-pagination-numbers","core/comments-pagination-next"],"description":"Displays a paginated navigation to next/previous set of comments, when applicable.","textdomain":"default","attributes":{"paginationArrow":{"type":"string","default":"none"}},"example":{"attributes":{"paginationArrow":"none"}},"providesContext":{"comments/paginationArrow":"paginationArrow"},"supports":{"align":true,"reusable":false,"html":false,"color":{"gradients":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true,"link":true}},"layout":{"allowSwitching":false,"allowInheriting":false,"default":{"type":"flex"}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true}},"editorStyle":"wp-block-comments-pagination-editor","style":"wp-block-comments-pagination"}');function li({value:e,onChange:t}){return(0,it.jsxs)(mt.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("Arrow"),value:e,onChange:t,help:(0,pt.__)("A decorative arrow appended to the next and previous comments link."),isBlock:!0,children:[(0,it.jsx)(mt.__experimentalToggleGroupControlOption,{value:"none",label:(0,pt._x)("None","Arrow option for Comments Pagination Next/Previous blocks")}),(0,it.jsx)(mt.__experimentalToggleGroupControlOption,{value:"arrow",label:(0,pt._x)("Arrow","Arrow option for Comments Pagination Next/Previous blocks")}),(0,it.jsx)(mt.__experimentalToggleGroupControlOption,{value:"chevron",label:(0,pt._x)("Chevron","Arrow option for Comments Pagination Next/Previous blocks")})]})}const ci=[["core/comments-pagination-previous"],["core/comments-pagination-numbers"],["core/comments-pagination-next"]];const{name:ui}=si,di={icon:ii,edit:function({attributes:{paginationArrow:e},setAttributes:t,clientId:o}){const n=(0,lt.useSelect)((e=>{const{getBlocks:t}=e(ct.store),n=t(o);return n?.find((e=>["core/comments-pagination-previous","core/comments-pagination-next"].includes(e.name)))}),[]),r=(0,ct.useBlockProps)(),a=vt(),i=(0,ct.useInnerBlocksProps)(r,{template:ci});return(0,lt.useSelect)((e=>{const{getSettings:t}=e(ct.store),{__experimentalDiscussionSettings:o}=t();return o?.pageComments}),[])?(0,it.jsxs)(it.Fragment,{children:[n&&(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsx)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),dropdownMenuProps:a,resetAll:()=>t({paginationArrow:"none"}),children:(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Arrow"),hasValue:()=>"none"!==e,onDeselect:()=>t({paginationArrow:"none"}),isShownByDefault:!0,children:(0,it.jsx)(li,{value:e,onChange:e=>{t({paginationArrow:e})}})})})}),(0,it.jsx)("div",{...i})]}):(0,it.jsx)(ct.Warning,{children:(0,pt.__)("Comments Pagination block: paging comments is disabled in the Discussion Settings")})},save:function(){return(0,it.jsx)(ct.InnerBlocks.Content,{})}},pi=()=>jt({name:ui,metadata:si,settings:di});var mi=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M5 13.5h3v-3H5v3zm5 0h3v-3h-3v3zM17 9l-1 1 2 2-2 2 1 1 3-3-3-3z"})});const gi=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/comments-pagination-next","title":"Comments Next Page","category":"theme","parent":["core/comments-pagination"],"description":"Displays the next comment\'s page link.","textdomain":"default","attributes":{"label":{"type":"string"}},"usesContext":["postId","comments/paginationArrow"],"supports":{"reusable":false,"html":false,"color":{"gradients":true,"text":false,"__experimentalDefaultControls":{"background":true}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true}}}'),hi={none:"",arrow:"→",chevron:"»"};const{name:_i}=gi,xi={icon:mi,edit:function({attributes:{label:e},setAttributes:t,context:{"comments/paginationArrow":o}}){const n=hi[o];return(0,it.jsxs)("a",{href:"#comments-pagination-next-pseudo-link",onClick:e=>e.preventDefault(),...(0,ct.useBlockProps)(),children:[(0,it.jsx)(ct.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":(0,pt.__)("Newer comments page link"),placeholder:(0,pt.__)("Newer Comments"),value:e,onChange:e=>t({label:e})}),n&&(0,it.jsx)("span",{className:`wp-block-comments-pagination-next-arrow is-arrow-${o}`,children:n})]})},example:{attributes:{label:(0,pt.__)("Newer Comments")}}},bi=()=>jt({name:_i,metadata:gi,settings:xi});var fi=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M4 13.5h6v-3H4v3zm8.2-2.5.8-.3V14h1V9.3l-2.2.7.4 1zm7.1-1.2c-.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.5h2.7v-1h-.9c.3-.6.8-1.4.9-2.1 0-.3-.1-.8-.3-1.1z"})});const yi=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/comments-pagination-numbers","title":"Comments Page Numbers","category":"theme","parent":["core/comments-pagination"],"description":"Displays a list of page numbers for comments pagination.","textdomain":"default","usesContext":["postId"],"supports":{"reusable":false,"html":false,"color":{"gradients":true,"text":false,"__experimentalDefaultControls":{"background":true}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true}}}'),vi=({content:e,tag:t="a",extraClass:o=""})=>"a"===t?(0,it.jsx)(t,{className:`page-numbers ${o}`,href:"#comments-pagination-numbers-pseudo-link",onClick:e=>e.preventDefault(),children:e}):(0,it.jsx)(t,{className:`page-numbers ${o}`,children:e});const{name:ki}=yi,wi={icon:fi,edit:function(){return(0,it.jsxs)("div",{...(0,ct.useBlockProps)(),children:[(0,it.jsx)(vi,{content:"1"}),(0,it.jsx)(vi,{content:"2"}),(0,it.jsx)(vi,{content:"3",tag:"span",extraClass:"current"}),(0,it.jsx)(vi,{content:"4"}),(0,it.jsx)(vi,{content:"5"}),(0,it.jsx)(vi,{content:"...",tag:"span",extraClass:"dots"}),(0,it.jsx)(vi,{content:"8"})]})},example:{}},Ci=()=>jt({name:ki,metadata:yi,settings:wi});var ji=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"m4 5.5h2v6.5h1.5v-6.5h2v-1.5h-5.5zm16 10.5h-16v-1.5h16zm-7 4h-9v-1.5h9z"})});const Si=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/comments-title","title":"Comments Title","category":"theme","ancestor":["core/comments"],"description":"Displays a title with the number of comments.","textdomain":"default","usesContext":["postId","postType"],"attributes":{"textAlign":{"type":"string"},"showPostTitle":{"type":"boolean","default":true},"showCommentsCount":{"type":"boolean","default":true},"level":{"type":"number","default":2},"levelOptions":{"type":"array"}},"supports":{"anchor":false,"align":true,"html":false,"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true},"color":{"gradients":true,"__experimentalDefaultControls":{"background":true,"text":true}},"spacing":{"margin":true,"padding":true},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true,"__experimentalFontFamily":true,"__experimentalFontStyle":true,"__experimentalFontWeight":true}},"interactivity":{"clientNavigation":true}}}');const{attributes:Bi,supports:Ti}=Si;var Ni=[{attributes:{...Bi,singleCommentLabel:{type:"string"},multipleCommentsLabel:{type:"string"}},supports:Ti,migrate:e=>{const{singleCommentLabel:t,multipleCommentsLabel:o,...n}=e;return n},isEligible:({multipleCommentsLabel:e,singleCommentLabel:t})=>e||t,save:()=>null}];const{name:Pi}=Si,Ii={icon:ji,edit:function({attributes:{textAlign:e,showPostTitle:t,showCommentsCount:o,level:n,levelOptions:r},setAttributes:a,context:{postType:i,postId:s}}){const l="h"+n,[c,u]=(0,gt.useState)(),[d]=(0,_t.useEntityProp)("postType",i,"title",s),p=void 0===s,m=(0,ct.useBlockProps)({className:Dt({[`has-text-align-${e}`]:e})}),{threadCommentsDepth:g,threadComments:h,commentsPerPage:_,pageComments:x}=(0,lt.useSelect)((e=>{const{getSettings:t}=e(ct.store);return t().__experimentalDiscussionSettings})),b=vt();(0,gt.useEffect)((()=>{if(p){const e=h?Math.min(g,3)-1:0,t=x?_:3,o=parseInt(e)+parseInt(t);return void u(Math.min(o,3))}const e=s;Ua()({path:(0,no.addQueryArgs)("/wp/v2/comments",{post:s,_fields:"id"}),method:"HEAD",parse:!1}).then((t=>{e===s&&u(parseInt(t.headers.get("X-WP-Total")))})).catch((()=>{u(0)}))}),[s]);const f=(0,it.jsxs)(ct.BlockControls,{group:"block",children:[(0,it.jsx)(ct.AlignmentControl,{value:e,onChange:e=>a({textAlign:e})}),(0,it.jsx)(ct.HeadingLevelDropdown,{value:n,options:r,onChange:e=>a({level:e})})]}),y=(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{a({showPostTitle:!0,showCommentsCount:!0})},dropdownMenuProps:b,children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Show post title"),isShownByDefault:!0,hasValue:()=>!t,onDeselect:()=>a({showPostTitle:!0}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Show post title"),checked:t,onChange:e=>a({showPostTitle:e})})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Show comments count"),isShownByDefault:!0,hasValue:()=>!o,onDeselect:()=>a({showCommentsCount:!0}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Show comments count"),checked:o,onChange:e=>a({showCommentsCount:e})})})]})}),v=p?(0,pt.__)("“Post Title”"):`"${d}"`;let k;return k=o&&void 0!==c?t?1===c?(0,pt.sprintf)((0,pt.__)("One response to %s"),v):(0,pt.sprintf)((0,pt._n)("%1$s response to %2$s","%1$s responses to %2$s",c),c,v):1===c?(0,pt.__)("One response"):(0,pt.sprintf)((0,pt._n)("%s response","%s responses",c),c):t?1===c?(0,pt.sprintf)((0,pt.__)("Response to %s"),v):(0,pt.sprintf)((0,pt.__)("Responses to %s"),v):1===c?(0,pt.__)("Response"):(0,pt.__)("Responses"),(0,it.jsxs)(it.Fragment,{children:[f,y,(0,it.jsx)(l,{...m,children:k})]})},deprecated:Ni,example:{}},Di=()=>jt({name:Pi,metadata:Si,settings:Ii});var Mi=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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 zi={"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"},Ai="image",Li="video",Hi={x:.5,y:.5},Ri=["image","video"];function Vi({x:e,y:t}=Hi){return`${Math.round(100*e)}% ${Math.round(100*t)}%`}function Fi(e){return 50===e||void 0===e?null:"has-background-dim-"+10*Math.round(e/10)}function Ei(e){return!e||"center center"===e||"center"===e}function Oi(e){return Ei(e)?"":zi[e]}function Gi(e){return e?{backgroundImage:`url(${e})`}:{}}function $i(e){return 0!==e&&50!==e&&e?"has-background-dim-"+10*Math.round(e/10):null}function Ui(e){return{...e,dimRatio:e.url?e.dimRatio:100}}function qi(e){return e.tagName||(e={...e,tagName:"div"}),{...e}}const Wi={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"}},Zi={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]}},Ji={...Zi,useFeaturedImage:{type:"boolean",default:!1},tagName:{type:"string",default:"div"}},Qi={...Ji,isUserOverlayColor:{type:"boolean"},sizeSlug:{type:"string"},alt:{type:"string",default:""}},Ki={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}},Yi={...Ki,spacing:{padding:!0,margin:["top","bottom"],blockGap:!0,__experimentalDefaultControls:{padding:!0,blockGap:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},color:{__experimentalDuotone:"> .wp-block-cover__image-background, > .wp-block-cover__video-background",heading:!0,text:!0,background:!1,__experimentalSkipSerialization:["gradients"],enableContrastChecker:!1},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},layout:{allowJustification:!1}},Xi={attributes:Qi,supports:{...Yi,shadow:!0,dimensions:{aspectRatio:!0},interactivity:{clientNavigation:!0}},save({attributes:e}){const{backgroundType:t,gradient:o,contentPosition:n,customGradient:r,customOverlayColor:a,dimRatio:i,focalPoint:s,useFeaturedImage:l,hasParallax:c,isDark:u,isRepeated:d,overlayColor:p,url:m,alt:g,id:h,minHeight:_,minHeightUnit:x,tagName:b,sizeSlug:f}=e,y=(0,ct.getColorClassName)("background-color",p),v=(0,ct.__experimentalGetGradientClass)(o),k=Ai===t,w=Li===t,C=!(c||d),j={minHeight:(_&&x?`${_}${x}`:_)||void 0},S={backgroundColor:y?void 0:a,background:r||void 0},B=s&&C?Vi(s):void 0,T=m?`url(${m})`:void 0,N=Vi(s),P=Dt({"is-light":!u,"has-parallax":c,"is-repeated":d,"has-custom-content-position":!Ei(n)},Oi(n)),I=Dt("wp-block-cover__image-background",h?`wp-image-${h}`:null,{[`size-${f}`]:f,"has-parallax":c,"is-repeated":d}),D=o||r;return(0,it.jsxs)(b,{...ct.useBlockProps.save({className:P,style:j}),children:[(0,it.jsx)("span",{"aria-hidden":"true",className:Dt("wp-block-cover__background",y,Fi(i),{"has-background-dim":void 0!==i,"wp-block-cover__gradient-background":m&&D&&0!==i,"has-background-gradient":D,[v]:v}),style:S}),!l&&k&&m&&(C?(0,it.jsx)("img",{className:I,alt:g,src:m,style:{objectPosition:B},"data-object-fit":"cover","data-object-position":B}):(0,it.jsx)("div",{role:g?"img":void 0,"aria-label":g||void 0,className:I,style:{backgroundPosition:N,backgroundImage:T}})),w&&m&&(0,it.jsx)("video",{className:Dt("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:m,style:{objectPosition:B},"data-object-fit":"cover","data-object-position":B}),(0,it.jsx)("div",{...ct.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})}},es={attributes:Ji,supports:Yi,save({attributes:e}){const{backgroundType:t,gradient:o,contentPosition:n,customGradient:r,customOverlayColor:a,dimRatio:i,focalPoint:s,useFeaturedImage:l,hasParallax:c,isDark:u,isRepeated:d,overlayColor:p,url:m,alt:g,id:h,minHeight:_,minHeightUnit:x,tagName:b}=e,f=(0,ct.getColorClassName)("background-color",p),y=(0,ct.__experimentalGetGradientClass)(o),v=Ai===t,k=Li===t,w=!(c||d),C={minHeight:(_&&x?`${_}${x}`:_)||void 0},j={backgroundColor:f?void 0:a,background:r||void 0},S=s&&w?Vi(s):void 0,B=m?`url(${m})`:void 0,T=Vi(s),N=Dt({"is-light":!u,"has-parallax":c,"is-repeated":d,"has-custom-content-position":!Ei(n)},Oi(n)),P=Dt("wp-block-cover__image-background",h?`wp-image-${h}`:null,{"has-parallax":c,"is-repeated":d}),I=o||r;return(0,it.jsxs)(b,{...ct.useBlockProps.save({className:N,style:C}),children:[(0,it.jsx)("span",{"aria-hidden":"true",className:Dt("wp-block-cover__background",f,Fi(i),{"has-background-dim":void 0!==i,"wp-block-cover__gradient-background":m&&I&&0!==i,"has-background-gradient":I,[y]:y}),style:j}),!l&&v&&m&&(w?(0,it.jsx)("img",{className:P,alt:g,src:m,style:{objectPosition:S},"data-object-fit":"cover","data-object-position":S}):(0,it.jsx)("div",{role:"img",className:P,style:{backgroundPosition:T,backgroundImage:B}})),k&&m&&(0,it.jsx)("video",{className:Dt("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:m,style:{objectPosition:S},"data-object-fit":"cover","data-object-position":S}),(0,it.jsx)("div",{...ct.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})}},ts={attributes:Ji,supports:Yi,isEligible:e=>(void 0!==e.customOverlayColor||void 0!==e.overlayColor)&&void 0===e.isUserOverlayColor,migrate:e=>({...e,isUserOverlayColor:!0}),save({attributes:e}){const{backgroundType:t,gradient:o,contentPosition:n,customGradient:r,customOverlayColor:a,dimRatio:i,focalPoint:s,useFeaturedImage:l,hasParallax:c,isDark:u,isRepeated:d,overlayColor:p,url:m,alt:g,id:h,minHeight:_,minHeightUnit:x,tagName:b}=e,f=(0,ct.getColorClassName)("background-color",p),y=(0,ct.__experimentalGetGradientClass)(o),v=Ai===t,k=Li===t,w=!(c||d),C={minHeight:(_&&x?`${_}${x}`:_)||void 0},j={backgroundColor:f?void 0:a,background:r||void 0},S=s&&w?Vi(s):void 0,B=m?`url(${m})`:void 0,T=Vi(s),N=Dt({"is-light":!u,"has-parallax":c,"is-repeated":d,"has-custom-content-position":!Ei(n)},Oi(n)),P=Dt("wp-block-cover__image-background",h?`wp-image-${h}`:null,{"has-parallax":c,"is-repeated":d}),I=o||r;return(0,it.jsxs)(b,{...ct.useBlockProps.save({className:N,style:C}),children:[(0,it.jsx)("span",{"aria-hidden":"true",className:Dt("wp-block-cover__background",f,Fi(i),{"has-background-dim":void 0!==i,"wp-block-cover__gradient-background":m&&I&&0!==i,"has-background-gradient":I,[y]:y}),style:j}),!l&&v&&m&&(w?(0,it.jsx)("img",{className:P,alt:g,src:m,style:{objectPosition:S},"data-object-fit":"cover","data-object-position":S}):(0,it.jsx)("div",{role:"img",className:P,style:{backgroundPosition:T,backgroundImage:B}})),k&&m&&(0,it.jsx)("video",{className:Dt("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:m,style:{objectPosition:S},"data-object-fit":"cover","data-object-position":S}),(0,it.jsx)("div",{...ct.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})}},os={attributes:Zi,supports:Ki,save({attributes:e}){const{backgroundType:t,gradient:o,contentPosition:n,customGradient:r,customOverlayColor:a,dimRatio:i,focalPoint:s,useFeaturedImage:l,hasParallax:c,isDark:u,isRepeated:d,overlayColor:p,url:m,alt:g,id:h,minHeight:_,minHeightUnit:x}=e,b=(0,ct.getColorClassName)("background-color",p),f=(0,ct.__experimentalGetGradientClass)(o),y=Ai===t,v=Li===t,k=!(c||d),w={minHeight:(_&&x?`${_}${x}`:_)||void 0},C={backgroundColor:b?void 0:a,background:r||void 0},j=s&&k?Vi(s):void 0,S=m?`url(${m})`:void 0,B=Vi(s),T=Dt({"is-light":!u,"has-parallax":c,"is-repeated":d,"has-custom-content-position":!Ei(n)},Oi(n)),N=Dt("wp-block-cover__image-background",h?`wp-image-${h}`:null,{"has-parallax":c,"is-repeated":d}),P=o||r;return(0,it.jsxs)("div",{...ct.useBlockProps.save({className:T,style:w}),children:[(0,it.jsx)("span",{"aria-hidden":"true",className:Dt("wp-block-cover__background",b,Fi(i),{"has-background-dim":void 0!==i,"wp-block-cover__gradient-background":m&&P&&0!==i,"has-background-gradient":P,[f]:f}),style:C}),!l&&y&&m&&(k?(0,it.jsx)("img",{className:N,alt:g,src:m,style:{objectPosition:j},"data-object-fit":"cover","data-object-position":j}):(0,it.jsx)("div",{role:"img",className:N,style:{backgroundPosition:B,backgroundImage:S}})),v&&m&&(0,it.jsx)("video",{className:Dt("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:m,style:{objectPosition:j},"data-object-fit":"cover","data-object-position":j}),(0,it.jsx)("div",{...ct.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})},migrate:qi},ns={attributes:Zi,supports:Ki,save({attributes:e}){const{backgroundType:t,gradient:o,contentPosition:n,customGradient:r,customOverlayColor:a,dimRatio:i,focalPoint:s,useFeaturedImage:l,hasParallax:c,isDark:u,isRepeated:d,overlayColor:p,url:m,alt:g,id:h,minHeight:_,minHeightUnit:x}=e,b=(0,ct.getColorClassName)("background-color",p),f=(0,ct.__experimentalGetGradientClass)(o),y=_&&x?`${_}${x}`:_,v=Ai===t,k=Li===t,w=!(c||d),C={...!v||w||l?{}:Gi(m),minHeight:y||void 0},j={backgroundColor:b?void 0:a,background:r||void 0},S=s&&w?`${Math.round(100*s.x)}% ${Math.round(100*s.y)}%`:void 0,B=Dt({"is-light":!u,"has-parallax":c,"is-repeated":d,"has-custom-content-position":!Ei(n)},Oi(n)),T=o||r;return(0,it.jsxs)("div",{...ct.useBlockProps.save({className:B,style:C}),children:[(0,it.jsx)("span",{"aria-hidden":"true",className:Dt("wp-block-cover__background",b,Fi(i),{"has-background-dim":void 0!==i,"wp-block-cover__gradient-background":m&&T&&0!==i,"has-background-gradient":T,[f]:f}),style:j}),!l&&v&&w&&m&&(0,it.jsx)("img",{className:Dt("wp-block-cover__image-background",h?`wp-image-${h}`:null),alt:g,src:m,style:{objectPosition:S},"data-object-fit":"cover","data-object-position":S}),k&&m&&(0,it.jsx)("video",{className:Dt("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:m,style:{objectPosition:S},"data-object-fit":"cover","data-object-position":S}),(0,it.jsx)("div",{...ct.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})},migrate:qi},rs={attributes:Zi,supports:Ki,save({attributes:e}){const{backgroundType:t,gradient:o,contentPosition:n,customGradient:r,customOverlayColor:a,dimRatio:i,focalPoint:s,hasParallax:l,isDark:c,isRepeated:u,overlayColor:d,url:p,alt:m,id:g,minHeight:h,minHeightUnit:_}=e,x=(0,ct.getColorClassName)("background-color",d),b=(0,ct.__experimentalGetGradientClass)(o),f=_?`${h}${_}`:h,y=Ai===t,v=Li===t,k=!(l||u),w={...y&&!k?Gi(p):{},minHeight:f||void 0},C={backgroundColor:x?void 0:a,background:r||void 0},j=s&&k?`${Math.round(100*s.x)}% ${Math.round(100*s.y)}%`:void 0,S=Dt({"is-light":!c,"has-parallax":l,"is-repeated":u,"has-custom-content-position":!Ei(n)},Oi(n)),B=o||r;return(0,it.jsxs)("div",{...ct.useBlockProps.save({className:S,style:w}),children:[(0,it.jsx)("span",{"aria-hidden":"true",className:Dt("wp-block-cover__background",x,Fi(i),{"has-background-dim":void 0!==i,"wp-block-cover__gradient-background":p&&B&&0!==i,"has-background-gradient":B,[b]:b}),style:C}),y&&k&&p&&(0,it.jsx)("img",{className:Dt("wp-block-cover__image-background",g?`wp-image-${g}`:null),alt:m,src:p,style:{objectPosition:j},"data-object-fit":"cover","data-object-position":j}),v&&p&&(0,it.jsx)("video",{className:Dt("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:p,style:{objectPosition:j},"data-object-fit":"cover","data-object-position":j}),(0,it.jsx)("div",{...ct.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})},migrate:qi},as={attributes:Zi,supports:Ki,save({attributes:e}){const{backgroundType:t,gradient:o,contentPosition:n,customGradient:r,customOverlayColor:a,dimRatio:i,focalPoint:s,hasParallax:l,isDark:c,isRepeated:u,overlayColor:d,url:p,alt:m,id:g,minHeight:h,minHeightUnit:_}=e,x=(0,ct.getColorClassName)("background-color",d),b=(0,ct.__experimentalGetGradientClass)(o),f=_?`${h}${_}`:h,y=Ai===t,v=Li===t,k=!(l||u),w={...y&&!k?Gi(p):{},minHeight:f||void 0},C={backgroundColor:x?void 0:a,background:r||void 0},j=s&&k?`${Math.round(100*s.x)}% ${Math.round(100*s.y)}%`:void 0,S=Dt({"is-light":!c,"has-parallax":l,"is-repeated":u,"has-custom-content-position":!Ei(n)},Oi(n));return(0,it.jsxs)("div",{...ct.useBlockProps.save({className:S,style:w}),children:[(0,it.jsx)("span",{"aria-hidden":"true",className:Dt(x,Fi(i),"wp-block-cover__gradient-background",b,{"has-background-dim":void 0!==i,"has-background-gradient":o||r,[b]:!p&&b}),style:C}),y&&k&&p&&(0,it.jsx)("img",{className:Dt("wp-block-cover__image-background",g?`wp-image-${g}`:null),alt:m,src:p,style:{objectPosition:j},"data-object-fit":"cover","data-object-position":j}),v&&p&&(0,it.jsx)("video",{className:Dt("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:p,style:{objectPosition:j},"data-object-fit":"cover","data-object-position":j}),(0,it.jsx)("div",{...ct.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})},migrate:qi},is={attributes:{...Wi,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:Ki,save({attributes:e}){const{backgroundType:t,gradient:o,contentPosition:n,customGradient:r,customOverlayColor:a,dimRatio:i,focalPoint:s,hasParallax:l,isRepeated:c,overlayColor:u,url:d,alt:p,id:m,minHeight:g,minHeightUnit:h}=e,_=(0,ct.getColorClassName)("background-color",u),x=(0,ct.__experimentalGetGradientClass)(o),b=h?`${g}${h}`:g,f=Ai===t,y=Li===t,v=!(l||c),k={...f&&!v?Gi(d):{},backgroundColor:_?void 0:a,background:r&&!d?r:void 0,minHeight:b||void 0},w=s&&v?`${Math.round(100*s.x)}% ${Math.round(100*s.y)}%`:void 0,C=Dt($i(i),_,{"has-background-dim":0!==i,"has-parallax":l,"is-repeated":c,"has-background-gradient":o||r,[x]:!d&&x,"has-custom-content-position":!Ei(n)},Oi(n));return(0,it.jsxs)("div",{...ct.useBlockProps.save({className:C,style:k}),children:[d&&(o||r)&&0!==i&&(0,it.jsx)("span",{"aria-hidden":"true",className:Dt("wp-block-cover__gradient-background",x),style:r?{background:r}:void 0}),f&&v&&d&&(0,it.jsx)("img",{className:Dt("wp-block-cover__image-background",m?`wp-image-${m}`:null),alt:p,src:d,style:{objectPosition:w},"data-object-fit":"cover","data-object-position":w}),y&&d&&(0,it.jsx)("video",{className:Dt("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}),(0,it.jsx)("div",{className:"wp-block-cover__inner-container",children:(0,it.jsx)(ct.InnerBlocks.Content,{})})]})},migrate:(0,xt.compose)(Ui,qi)},ss={attributes:{...Wi,isRepeated:{type:"boolean",default:!1},minHeight:{type:"number"},minHeightUnit:{type:"string"},gradient:{type:"string"},customGradient:{type:"string"},contentPosition:{type:"string"}},supports:{align:!0},save({attributes:e}){const{backgroundType:t,gradient:o,contentPosition:n,customGradient:r,customOverlayColor:a,dimRatio:i,focalPoint:s,hasParallax:l,isRepeated:c,overlayColor:u,url:d,minHeight:p,minHeightUnit:m}=e,g=(0,ct.getColorClassName)("background-color",u),h=(0,ct.__experimentalGetGradientClass)(o),_=m?`${p}${m}`:p,x=Ai===t,b=Li===t,f=x?Gi(d):{},y={};let v;g||(f.backgroundColor=a),r&&!d&&(f.background=r),f.minHeight=_||void 0,s&&(v=`${Math.round(100*s.x)}% ${Math.round(100*s.y)}%`,x&&!l&&(f.backgroundPosition=v),b&&(y.objectPosition=v));const k=Dt($i(i),g,{"has-background-dim":0!==i,"has-parallax":l,"is-repeated":c,"has-background-gradient":o||r,[h]:!d&&h,"has-custom-content-position":!Ei(n)},Oi(n));return(0,it.jsxs)("div",{...ct.useBlockProps.save({className:k,style:f}),children:[d&&(o||r)&&0!==i&&(0,it.jsx)("span",{"aria-hidden":"true",className:Dt("wp-block-cover__gradient-background",h),style:r?{background:r}:void 0}),b&&d&&(0,it.jsx)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:d,style:y}),(0,it.jsx)("div",{className:"wp-block-cover__inner-container",children:(0,it.jsx)(ct.InnerBlocks.Content,{})})]})},migrate:(0,xt.compose)(Ui,qi)},ls={attributes:{...Wi,minHeight:{type:"number"},gradient:{type:"string"},customGradient:{type:"string"}},supports:{align:!0},save({attributes:e}){const{backgroundType:t,gradient:o,customGradient:n,customOverlayColor:r,dimRatio:a,focalPoint:i,hasParallax:s,overlayColor:l,url:c,minHeight:u}=e,d=(0,ct.getColorClassName)("background-color",l),p=(0,ct.__experimentalGetGradientClass)(o),m=t===Ai?Gi(c):{};d||(m.backgroundColor=r),i&&!s&&(m.backgroundPosition=`${Math.round(100*i.x)}% ${Math.round(100*i.y)}%`),n&&!c&&(m.background=n),m.minHeight=u||void 0;const g=Dt($i(a),d,{"has-background-dim":0!==a,"has-parallax":s,"has-background-gradient":n,[p]:!c&&p});return(0,it.jsxs)("div",{className:g,style:m,children:[c&&(o||n)&&0!==a&&(0,it.jsx)("span",{"aria-hidden":"true",className:Dt("wp-block-cover__gradient-background",p),style:n?{background:n}:void 0}),Li===t&&c&&(0,it.jsx)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:c}),(0,it.jsx)("div",{className:"wp-block-cover__inner-container",children:(0,it.jsx)(ct.InnerBlocks.Content,{})})]})},migrate:(0,xt.compose)(Ui,qi)},cs={attributes:{...Wi,minHeight:{type:"number"},gradient:{type:"string"},customGradient:{type:"string"}},supports:{align:!0},save({attributes:e}){const{backgroundType:t,gradient:o,customGradient:n,customOverlayColor:r,dimRatio:a,focalPoint:i,hasParallax:s,overlayColor:l,url:c,minHeight:u}=e,d=(0,ct.getColorClassName)("background-color",l),p=(0,ct.__experimentalGetGradientClass)(o),m=t===Ai?Gi(c):{};d||(m.backgroundColor=r),i&&!s&&(m.backgroundPosition=`${100*i.x}% ${100*i.y}%`),n&&!c&&(m.background=n),m.minHeight=u||void 0;const g=Dt($i(a),d,{"has-background-dim":0!==a,"has-parallax":s,"has-background-gradient":n,[p]:!c&&p});return(0,it.jsxs)("div",{className:g,style:m,children:[c&&(o||n)&&0!==a&&(0,it.jsx)("span",{"aria-hidden":"true",className:Dt("wp-block-cover__gradient-background",p),style:n?{background:n}:void 0}),Li===t&&c&&(0,it.jsx)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:c}),(0,it.jsx)("div",{className:"wp-block-cover__inner-container",children:(0,it.jsx)(ct.InnerBlocks.Content,{})})]})},migrate:(0,xt.compose)(Ui,qi)},us={attributes:{...Wi,title:{type:"string",source:"html",selector:"p"},contentAlign:{type:"string",default:"center"}},supports:{align:!0},save({attributes:e}){const{backgroundType:t,contentAlign:o,customOverlayColor:n,dimRatio:r,focalPoint:a,hasParallax:i,overlayColor:s,title:l,url:c}=e,u=(0,ct.getColorClassName)("background-color",s),d=t===Ai?Gi(c):{};u||(d.backgroundColor=n),a&&!i&&(d.backgroundPosition=`${100*a.x}% ${100*a.y}%`);const p=Dt($i(r),u,{"has-background-dim":0!==r,"has-parallax":i,[`has-${o}-content`]:"center"!==o});return(0,it.jsxs)("div",{className:p,style:d,children:[Li===t&&c&&(0,it.jsx)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:c}),!ct.RichText.isEmpty(l)&&(0,it.jsx)(ct.RichText.Content,{tagName:"p",className:"wp-block-cover-text",value:l})]})},migrate(e){const t={...e,dimRatio:e.url?e.dimRatio:100,tagName:e.tagName?e.tagName:"div"},{title:o,contentAlign:n,...r}=t;return[r,[(0,st.createBlock)("core/paragraph",{content:e.title,align:e.contentAlign,fontSize:"large",placeholder:(0,pt.__)("Write title…")})]]}},ds={attributes:{...Wi,title:{type:"string",source:"html",selector:"p"},contentAlign:{type:"string",default:"center"},align:{type:"string"}},supports:{className:!1},save({attributes:e}){const{url:t,title:o,hasParallax:n,dimRatio:r,align:a,contentAlign:i,overlayColor:s,customOverlayColor:l}=e,c=(0,ct.getColorClassName)("background-color",s),u=Gi(t);c||(u.backgroundColor=l);const d=Dt("wp-block-cover-image",$i(r),c,{"has-background-dim":0!==r,"has-parallax":n,[`has-${i}-content`]:"center"!==i},a?`align${a}`:null);return(0,it.jsx)("div",{className:d,style:u,children:!ct.RichText.isEmpty(o)&&(0,it.jsx)(ct.RichText.Content,{tagName:"p",className:"wp-block-cover-image-text",value:o})})},migrate(e){const t={...e,dimRatio:e.url?e.dimRatio:100,tagName:e.tagName?e.tagName:"div"},{title:o,contentAlign:n,align:r,...a}=t;return[a,[(0,st.createBlock)("core/paragraph",{content:e.title,align:e.contentAlign,fontSize:"large",placeholder:(0,pt.__)("Write title…")})]]}},ps={attributes:{...Wi,title:{type:"string",source:"html",selector:"h2"},align:{type:"string"},contentAlign:{type:"string",default:"center"}},supports:{className:!1},save({attributes:e}){const{url:t,title:o,hasParallax:n,dimRatio:r,align:a}=e,i=Gi(t),s=Dt("wp-block-cover-image",$i(r),{"has-background-dim":0!==r,"has-parallax":n},a?`align${a}`:null);return(0,it.jsx)("section",{className:s,style:i,children:(0,it.jsx)(ct.RichText.Content,{tagName:"h2",value:o})})},migrate(e){const t={...e,dimRatio:e.url?e.dimRatio:100,tagName:e.tagName?e.tagName:"div"},{title:o,contentAlign:n,align:r,...a}=t;return[a,[(0,st.createBlock)("core/paragraph",{content:e.title,align:e.contentAlign,fontSize:"large",placeholder:(0,pt.__)("Write title…")})]]}};var ms=[Xi,es,ts,os,ns,rs,as,is,ss,ls,cs,us,ds,ps];const gs="full",hs=["image"];var _s=function e({poster:t,onChange:o}){const n=(0,gt.useRef)(),[r,a]=(0,gt.useState)(!1),i=(0,xt.useInstanceId)(e,"block-library-poster-image-description"),{getSettings:s}=(0,lt.useSelect)(ct.store),{createErrorNotice:l}=(0,lt.useDispatch)(bo.store),c=e=>{s().mediaUpload({allowedTypes:hs,filesList:e,onFileChange:([e])=>{(0,ht.isBlobURL)(e?.url)?a(!0):(e&&o(e),a(!1))},onError:e=>{l(e,{id:"poster-image-upload-notice",type:"snackbar"}),a(!1)},multiple:!1})};return(0,it.jsx)(ct.MediaUploadCheck,{children:(0,it.jsxs)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Poster image"),isShownByDefault:!0,hasValue:()=>!!t,onDeselect:()=>o(void 0),children:[(0,it.jsx)(mt.BaseControl.VisualLabel,{children:(0,pt.__)("Poster image")}),(0,it.jsx)(ct.MediaUpload,{title:(0,pt.__)("Select poster image"),onSelect:o,allowedTypes:hs,render:({open:e})=>(0,it.jsxs)("div",{className:"block-library-poster-image__container",children:[t&&(0,it.jsxs)(mt.Button,{__next40pxDefaultSize:!0,onClick:e,"aria-haspopup":"dialog","aria-label":(0,pt.__)("Edit or replace the poster image."),className:"block-library-poster-image__preview",disabled:r,accessibleWhenDisabled:!0,children:[(0,it.jsx)("img",{src:t,alt:(0,pt.__)("Poster image preview"),className:"block-library-poster-image__preview-image"}),r&&(0,it.jsx)(mt.Spinner,{})]}),(0,it.jsxs)(mt.__experimentalHStack,{className:Dt("block-library-poster-image__actions",{"block-library-poster-image__actions-select":!t}),children:[(0,it.jsx)(mt.Button,{__next40pxDefaultSize:!0,onClick:e,ref:n,className:"block-library-poster-image__action","aria-describedby":i,"aria-haspopup":"dialog",variant:t?void 0:"secondary",disabled:r,accessibleWhenDisabled:!0,children:!t&&r?(0,it.jsx)(mt.Spinner,{}):t?(0,pt.__)("Replace"):(0,pt.__)("Set poster image")}),(0,it.jsx)("p",{id:i,hidden:!0,children:t?(0,pt.sprintf)((0,pt.__)("The current poster image url is %s."),t):(0,pt.__)("There is no poster image currently selected.")}),!!t&&(0,it.jsx)(mt.Button,{__next40pxDefaultSize:!0,onClick:()=>{o(void 0),n.current.focus()},className:"block-library-poster-image__action",disabled:r,accessibleWhenDisabled:!0,children:(0,pt.__)("Remove")})]}),(0,it.jsx)(mt.DropZone,{onFilesDrop:c})]})})]})})};const{cleanEmptyObject:xs,ResolutionTool:bs,HTMLElementControl:fs}=jo(ct.privateApis);function ys({onChange:e,onUnitChange:t,unit:o="px",value:n=""}){const r=`block-cover-height-input-${(0,xt.useInstanceId)(mt.__experimentalUnitControl)}`,a="px"===o,[i]=(0,ct.useSettings)("spacing.units"),s=(0,mt.__experimentalUseCustomUnits)({availableUnits:i||["px","em","rem","vw","vh"],defaultValues:{px:430,"%":20,em:20,rem:20,vw:20,vh:50}}),l=(0,gt.useMemo)((()=>{const[e]=(0,mt.__experimentalParseQuantityAndUnitFromRawValue)(n);return[e,o].join("")}),[o,n]),c=a?50:0;return(0,it.jsx)(mt.__experimentalUnitControl,{__next40pxDefaultSize:!0,label:(0,pt.__)("Minimum height"),id:r,isResetValueOnUnitChange:!0,min:c,onChange:t=>{const o=""!==t?parseFloat(t):void 0;isNaN(o)&&void 0!==o||e(o)},onUnitChange:t,units:s,value:l})}function vs({attributes:e,setAttributes:t,clientId:o,setOverlayColor:n,coverRef:r,currentSettings:a,updateDimRatio:i,featuredImage:s}){const{useFeaturedImage:l,id:c,dimRatio:u,focalPoint:d,hasParallax:p,isRepeated:m,minHeight:g,minHeightUnit:h,alt:_,tagName:x,poster:b}=e,{isVideoBackground:f,isImageBackground:y,mediaElement:v,url:k,overlayColor:w}=a,C=e.sizeSlug||gs,{gradientValue:j,setGradient:S}=(0,ct.__experimentalUseGradient)(),{getSettings:B}=(0,lt.useSelect)(ct.store),T=B()?.imageSizes,N=(0,lt.useSelect)((e=>c&&y?e(_t.store).getEntityRecord("postType","attachment",c,{context:"view"}):null),[c,y]),P=l?s:N;function I(e){const o=P?.media_details?.sizes?.[e]?.source_url;if(!o)return null;t({url:o,sizeSlug:e})}const D=T?.filter((({slug:e})=>P?.media_details?.sizes?.[e]?.source_url))?.map((({name:e,slug:t})=>({value:t,label:e}))),M=f||y&&(!p||m),z=e=>{const[t,o]=v.current?[v.current.style,"objectPosition"]:[r.current.style,"backgroundPosition"];t[o]=Vi(e)},A=(0,ct.__experimentalUseMultipleOriginColorsAndGradients)(),L=vt();return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.InspectorControls,{children:!!k&&(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{t({hasParallax:!1,focalPoint:void 0,isRepeated:!1,alt:"",poster:void 0}),I(gs)},dropdownMenuProps:L,children:[y&&(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Fixed background"),isShownByDefault:!0,hasValue:()=>!!p,onDeselect:()=>t({hasParallax:!1,focalPoint:void 0}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Fixed background"),checked:!!p,onChange:()=>{t({hasParallax:!p,...p?{}:{focalPoint:void 0}})}})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Repeated background"),isShownByDefault:!0,hasValue:()=>m,onDeselect:()=>t({isRepeated:!1}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Repeated background"),checked:m,onChange:()=>{t({isRepeated:!m})}})})]}),M&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Focal point"),isShownByDefault:!0,hasValue:()=>!!d,onDeselect:()=>t({focalPoint:void 0}),children:(0,it.jsx)(mt.FocalPointPicker,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Focal point"),url:k,value:d,onDragStart:z,onDrag:z,onChange:e=>t({focalPoint:e})})}),f&&(0,it.jsx)(_s,{poster:b,onChange:e=>t({poster:e?.url})}),!l&&k&&!f&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Alternative text"),isShownByDefault:!0,hasValue:()=>!!_,onDeselect:()=>t({alt:""}),children:(0,it.jsx)(mt.TextareaControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Alternative text"),value:_,onChange:e=>t({alt:e}),help:(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(mt.ExternalLink,{href:(0,pt.__)("https://www.w3.org/WAI/tutorials/images/decision-tree/"),children:(0,pt.__)("Describe the purpose of the image.")}),(0,it.jsx)("br",{}),(0,pt.__)("Leave empty if decorative.")]})})}),!!D?.length&&(0,it.jsx)(bs,{value:C,onChange:I,options:D,defaultValue:gs})]})}),A.hasColorsOrGradients&&(0,it.jsxs)(ct.InspectorControls,{group:"color",children:[(0,it.jsx)(ct.__experimentalColorGradientSettingsDropdown,{__experimentalIsRenderedInSidebar:!0,settings:[{colorValue:w.color,gradientValue:j,label:(0,pt.__)("Overlay"),onColorChange:n,onGradientChange:S,isShownByDefault:!0,resetAllFilter:()=>({overlayColor:void 0,customOverlayColor:void 0,gradient:void 0,customGradient:void 0}),clearable:!0}],panelId:o,...A}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>void 0!==u&&u!==(k?50:100),label:(0,pt.__)("Overlay opacity"),onDeselect:()=>i(k?50:100),resetAllFilter:()=>({dimRatio:k?50:100}),isShownByDefault:!0,panelId:o,children:(0,it.jsx)(mt.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Overlay opacity"),value:u,onChange:e=>i(e),min:0,max:100,step:10,required:!0,__next40pxDefaultSize:!0})})]}),(0,it.jsx)(ct.InspectorControls,{group:"dimensions",children:(0,it.jsx)(mt.__experimentalToolsPanelItem,{className:"single-column",hasValue:()=>!!g,label:(0,pt.__)("Minimum height"),onDeselect:()=>t({minHeight:void 0,minHeightUnit:void 0}),resetAllFilter:()=>({minHeight:void 0,minHeightUnit:void 0}),isShownByDefault:!0,panelId:o,children:(0,it.jsx)(ys,{value:e?.style?.dimensions?.aspectRatio?"":g,unit:h,onChange:o=>t({minHeight:o,style:xs({...e?.style,dimensions:{...e?.style?.dimensions,aspectRatio:void 0}})}),onUnitChange:e=>t({minHeightUnit:e})})})}),(0,it.jsx)(ct.InspectorControls,{group:"advanced",children:(0,it.jsx)(fs,{tagName:x,onChange:e=>t({tagName:e}),clientId:o,options:[{label:(0,pt.__)("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"}]})})]})}const{cleanEmptyObject:ks}=jo(ct.privateApis);function ws({attributes:e,setAttributes:t,onSelectMedia:o,currentSettings:n,toggleUseFeaturedImage:r,onClearMedia:a,blockEditingMode:i}){const{contentPosition:s,id:l,useFeaturedImage:c,minHeight:u,minHeightUnit:d}=e,{hasInnerBlocks:p,url:m}=n,[g,h]=(0,gt.useState)(u),[_,x]=(0,gt.useState)(d),b="vh"===d&&100===u&&!e?.style?.dimensions?.aspectRatio,f="contentOnly"===i;return(0,it.jsxs)(it.Fragment,{children:[!f&&(0,it.jsxs)(ct.BlockControls,{group:"block",children:[(0,it.jsx)(ct.__experimentalBlockAlignmentMatrixControl,{label:(0,pt.__)("Change content position"),value:s,onChange:e=>t({contentPosition:e}),isDisabled:!p}),(0,it.jsx)(ct.__experimentalBlockFullHeightAligmentControl,{isActive:b,onToggle:()=>b?t("vh"===_&&100===g?{minHeight:void 0,minHeightUnit:void 0}:{minHeight:g,minHeightUnit:_}):(h(u),x(d),t({minHeight:100,minHeightUnit:"vh",style:ks({...e?.style,dimensions:{...e?.style?.dimensions,aspectRatio:void 0}})})),isDisabled:!p})]}),(0,it.jsx)(ct.BlockControls,{group:"other",children:(0,it.jsx)(ct.MediaReplaceFlow,{mediaId:l,mediaURL:m,allowedTypes:Ri,accept:"image/*,video/*",onSelect:o,onToggleFeaturedImage:r,useFeaturedImage:c,name:m?(0,pt.__)("Replace"):(0,pt.__)("Add media"),onReset:a})})]})}function Cs({disableMediaButtons:e=!1,children:t,onSelectMedia:o,onError:n,style:r,toggleUseFeaturedImage:a}){return(0,it.jsx)(ct.MediaPlaceholder,{icon:(0,it.jsx)(ct.BlockIcon,{icon:Mi}),labels:{title:(0,pt.__)("Cover")},onSelect:o,accept:"image/*,video/*",allowedTypes:Ri,disableMediaButtons:e,onToggleFeaturedImage:a,onError:n,style:r,children:t})}const js={top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},{ResizableBoxPopover:Ss}=jo(ct.privateApis);function Bs({className:e,height:t,minHeight:o,onResize:n,onResizeStart:r,onResizeStop:a,showHandle:i,size:s,width:l,...c}){const[u,d]=(0,gt.useState)(!1),p={className:Dt(e,{"is-resizing":u}),enable:js,onResizeStart:(e,t,o)=>{r(o.clientHeight),n(o.clientHeight)},onResize:(e,t,o)=>{n(o.clientHeight),u||d(!0)},onResizeStop:(e,t,o)=>{a(o.clientHeight),d(!1)},showHandle:i,size:s,__experimentalShowTooltip:!0,__experimentalTooltipProps:{axis:"y",position:"bottom",isVisible:u}};return(0,it.jsx)(Ss,{className:"block-library-cover__resizable-box-popover",resizableBoxProps:p,...c})}var Ts={grad:.9,turn:360,rad:360/(2*Math.PI)},Ns=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},Ps=function(e,t,o){return void 0===t&&(t=0),void 0===o&&(o=Math.pow(10,t)),Math.round(o*e)/o+0},Is=function(e,t,o){return void 0===t&&(t=0),void 0===o&&(o=1),e>o?o:e>t?e:t},Ds=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},Ms=function(e){return{r:Is(e.r,0,255),g:Is(e.g,0,255),b:Is(e.b,0,255),a:Is(e.a)}},zs=function(e){return{r:Ps(e.r),g:Ps(e.g),b:Ps(e.b),a:Ps(e.a,3)}},As=/^#([0-9a-f]{3,8})$/i,Ls=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},Hs=function(e){var t=e.r,o=e.g,n=e.b,r=e.a,a=Math.max(t,o,n),i=a-Math.min(t,o,n),s=i?a===t?(o-n)/i:a===o?2+(n-t)/i:4+(t-o)/i:0;return{h:60*(s<0?s+6:s),s:a?i/a*100:0,v:a/255*100,a:r}},Rs=function(e){var t=e.h,o=e.s,n=e.v,r=e.a;t=t/360*6,o/=100,n/=100;var a=Math.floor(t),i=n*(1-o),s=n*(1-(t-a)*o),l=n*(1-(1-t+a)*o),c=a%6;return{r:255*[n,s,i,i,l,n][c],g:255*[l,n,n,s,i,i][c],b:255*[i,i,l,n,n,s][c],a:r}},Vs=function(e){return{h:Ds(e.h),s:Is(e.s,0,100),l:Is(e.l,0,100),a:Is(e.a)}},Fs=function(e){return{h:Ps(e.h),s:Ps(e.s),l:Ps(e.l),a:Ps(e.a,3)}},Es=function(e){return Rs((o=(t=e).s,{h:t.h,s:(o*=((n=t.l)<50?n:100-n)/100)>0?2*o/(n+o)*100:0,v:n+o,a:t.a}));var t,o,n},Os=function(e){return{h:(t=Hs(e)).h,s:(r=(200-(o=t.s))*(n=t.v)/100)>0&&r<200?o*n/100/(r<=100?r:200-r)*100:0,l:r/2,a:t.a};var t,o,n,r},Gs=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,$s=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Us=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,qs=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Ws={string:[[function(e){var t=As.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?Ps(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?Ps(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=Us.exec(e)||qs.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:Ms({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=Gs.exec(e)||$s.exec(e);if(!t)return null;var o,n,r=Vs({h:(o=t[1],n=t[2],void 0===n&&(n="deg"),Number(o)*(Ts[n]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return Es(r)},"hsl"]],object:[[function(e){var t=e.r,o=e.g,n=e.b,r=e.a,a=void 0===r?1:r;return Ns(t)&&Ns(o)&&Ns(n)?Ms({r:Number(t),g:Number(o),b:Number(n),a:Number(a)}):null},"rgb"],[function(e){var t=e.h,o=e.s,n=e.l,r=e.a,a=void 0===r?1:r;if(!Ns(t)||!Ns(o)||!Ns(n))return null;var i=Vs({h:Number(t),s:Number(o),l:Number(n),a:Number(a)});return Es(i)},"hsl"],[function(e){var t=e.h,o=e.s,n=e.v,r=e.a,a=void 0===r?1:r;if(!Ns(t)||!Ns(o)||!Ns(n))return null;var i=function(e){return{h:Ds(e.h),s:Is(e.s,0,100),v:Is(e.v,0,100),a:Is(e.a)}}({h:Number(t),s:Number(o),v:Number(n),a:Number(a)});return Rs(i)},"hsv"]]},Zs=function(e,t){for(var o=0;o<t.length;o++){var n=t[o][0](e);if(n)return[n,t[o][1]]}return[null,void 0]},Js=function(e){return"string"==typeof e?Zs(e.trim(),Ws.string):"object"==typeof e&&null!==e?Zs(e,Ws.object):[null,void 0]},Qs=function(e,t){var o=Os(e);return{h:o.h,s:Is(o.s+100*t,0,100),l:o.l,a:o.a}},Ks=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},Ys=function(e,t){var o=Os(e);return{h:o.h,s:o.s,l:Is(o.l+100*t,0,100),a:o.a}},Xs=function(){function e(e){this.parsed=Js(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 Ps(Ks(this.rgba),2)},e.prototype.isDark=function(){return Ks(this.rgba)<.5},e.prototype.isLight=function(){return Ks(this.rgba)>=.5},e.prototype.toHex=function(){return t=(e=zs(this.rgba)).r,o=e.g,n=e.b,a=(r=e.a)<1?Ls(Ps(255*r)):"","#"+Ls(t)+Ls(o)+Ls(n)+a;var e,t,o,n,r,a},e.prototype.toRgb=function(){return zs(this.rgba)},e.prototype.toRgbString=function(){return t=(e=zs(this.rgba)).r,o=e.g,n=e.b,(r=e.a)<1?"rgba("+t+", "+o+", "+n+", "+r+")":"rgb("+t+", "+o+", "+n+")";var e,t,o,n,r},e.prototype.toHsl=function(){return Fs(Os(this.rgba))},e.prototype.toHslString=function(){return t=(e=Fs(Os(this.rgba))).h,o=e.s,n=e.l,(r=e.a)<1?"hsla("+t+", "+o+"%, "+n+"%, "+r+")":"hsl("+t+", "+o+"%, "+n+"%)";var e,t,o,n,r},e.prototype.toHsv=function(){return e=Hs(this.rgba),{h:Ps(e.h),s:Ps(e.s),v:Ps(e.v),a:Ps(e.a,3)};var e},e.prototype.invert=function(){return el({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),el(Qs(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),el(Qs(this.rgba,-e))},e.prototype.grayscale=function(){return el(Qs(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),el(Ys(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),el(Ys(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?el({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):Ps(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=Os(this.rgba);return"number"==typeof e?el({h:e,s:t.s,l:t.l,a:t.a}):Ps(t.h)},e.prototype.isEqual=function(e){return this.toHex()===el(e).toHex()},e}(),el=function(e){return e instanceof Xs?e:new Xs(e)},tl=[];
 /*! Fast Average Color | © 2022 Denis Seleznev | MIT License | https://github.com/fast-average-color/fast-average-color */
-function ol(e){var t=e.toString(16);return 1===t.length?"0"+t:t}function nl(e){return"#"+e.map(ol).join("")}function rl(e){return e?(t=e,Array.isArray(t[0])?e:[e]):[];var t}function al(e,t,o){for(var n=0;n<o.length;n++)if(il(e,t,o[n]))return!0;return!1}function il(e,t,o){switch(o.length){case 3:if(function(e,t,o){if(255!==e[t+3])return!0;if(e[t]===o[0]&&e[t+1]===o[1]&&e[t+2]===o[2])return!0;return!1}(e,t,o))return!0;break;case 4:if(function(e,t,o){if(e[t+3]&&o[3])return e[t]===o[0]&&e[t+1]===o[1]&&e[t+2]===o[2]&&e[t+3]===o[3];return e[t+3]===o[3]}(e,t,o))return!0;break;case 5:if(function(e,t,o){var n=o[0],r=o[1],a=o[2],i=o[3],s=o[4],l=e[t+3],c=sl(l,i,s);if(!i)return c;if(!l&&c)return!0;if(sl(e[t],n,s)&&sl(e[t+1],r,s)&&sl(e[t+2],a,s)&&c)return!0;return!1}(e,t,o))return!0;break;default:return!1}}function sl(e,t,o){return e>=t-o&&e<=t+o}function ll(e,t,o){for(var n={},r=o.ignoredColor,a=o.step,i=[0,0,0,0,0],s=0;s<t;s+=a){var l=e[s],c=e[s+1],u=e[s+2],d=e[s+3];if(!r||!al(e,s,r)){var p=Math.round(l/24)+","+Math.round(c/24)+","+Math.round(u/24);n[p]?n[p]=[n[p][0]+l*d,n[p][1]+c*d,n[p][2]+u*d,n[p][3]+d,n[p][4]+1]:n[p]=[l*d,c*d,u*d,d,1],i[4]<n[p][4]&&(i=n[p])}}var m=i[0],g=i[1],h=i[2],_=i[3],x=i[4];return _?[Math.round(m/_),Math.round(g/_),Math.round(h/_),Math.round(_/x)]:o.defaultColor}function cl(e,t,o){for(var n=0,r=0,a=0,i=0,s=0,l=o.ignoredColor,c=o.step,u=0;u<t;u+=c){var d=e[u+3],p=e[u]*d,m=e[u+1]*d,g=e[u+2]*d;l&&al(e,u,l)||(n+=p,r+=m,a+=g,i+=d,s++)}return i?[Math.round(n/i),Math.round(r/i),Math.round(a/i),Math.round(i/s)]:o.defaultColor}function ul(e,t,o){for(var n=0,r=0,a=0,i=0,s=0,l=o.ignoredColor,c=o.step,u=0;u<t;u+=c){var d=e[u],p=e[u+1],m=e[u+2],g=e[u+3];l&&al(e,u,l)||(n+=d*d*g,r+=p*p*g,a+=m*m*g,i+=g,s++)}return i?[Math.round(Math.sqrt(n/i)),Math.round(Math.sqrt(r/i)),Math.round(Math.sqrt(a/i)),Math.round(i/s)]:o.defaultColor}function dl(e){return pl(e,"defaultColor",[0,0,0,0])}function pl(e,t,o){return void 0===e[t]?o:e[t]}function ml(e){if(hl(e)){var t=e.naturalWidth,o=e.naturalHeight;return e.naturalWidth||-1===e.src.search(/\.svg(\?|$)/i)||(t=o=100),{width:t,height:o}}return function(e){return"undefined"!=typeof HTMLVideoElement&&e instanceof HTMLVideoElement}(e)?{width:e.videoWidth,height:e.videoHeight}:{width:e.width,height:e.height}}function gl(e){return function(e){return"undefined"!=typeof HTMLCanvasElement&&e instanceof HTMLCanvasElement}(e)?"canvas":function(e){return _l&&e instanceof OffscreenCanvas}(e)?"offscreencanvas":function(e){return"undefined"!=typeof ImageBitmap&&e instanceof ImageBitmap}(e)?"imagebitmap":e.src}function hl(e){return"undefined"!=typeof HTMLImageElement&&e instanceof HTMLImageElement}var _l="undefined"!=typeof OffscreenCanvas;var xl="undefined"==typeof window;function bl(e){return Error("FastAverageColor: "+e)}function fl(e,t){t||console.error(e)}var yl=function(){function e(){this.canvas=null,this.ctx=null}return e.prototype.getColorAsync=function(e,t){if(!e)return Promise.reject(bl("call .getColorAsync() without resource."));if("string"==typeof e){if("undefined"==typeof Image)return Promise.reject(bl("resource as string is not supported in this environment"));var o=new Image;return o.crossOrigin=t&&t.crossOrigin||"",o.src=e,this.bindImageEvents(o,t)}if(hl(e)&&!e.complete)return this.bindImageEvents(e,t);var n=this.getColor(e,t);return n.error?Promise.reject(n.error):Promise.resolve(n)},e.prototype.getColor=function(e,t){var o=dl(t=t||{});if(!e)return fl(a=bl("call .getColor(null) without resource"),t.silent),this.prepareResult(o,a);var n=function(e,t){var o,n=pl(t,"left",0),r=pl(t,"top",0),a=pl(t,"width",e.width),i=pl(t,"height",e.height),s=a,l=i;return"precision"===t.mode||(a>i?(o=a/i,s=100,l=Math.round(s/o)):(o=i/a,l=100,s=Math.round(l/o)),(s>a||l>i||s<10||l<10)&&(s=a,l=i)),{srcLeft:n,srcTop:r,srcWidth:a,srcHeight:i,destWidth:s,destHeight:l}}(ml(e),t);if(!(n.srcWidth&&n.srcHeight&&n.destWidth&&n.destHeight))return fl(a=bl('incorrect sizes for resource "'.concat(gl(e),'"')),t.silent),this.prepareResult(o,a);if(!this.canvas&&(this.canvas=xl?_l?new OffscreenCanvas(1,1):null:document.createElement("canvas"),!this.canvas))return fl(a=bl("OffscreenCanvas is not supported in this browser"),t.silent),this.prepareResult(o,a);if(!this.ctx){if(this.ctx=this.canvas.getContext("2d",{willReadFrequently:!0}),!this.ctx)return fl(a=bl("Canvas Context 2D is not supported in this browser"),t.silent),this.prepareResult(o);this.ctx.imageSmoothingEnabled=!1}this.canvas.width=n.destWidth,this.canvas.height=n.destHeight;try{this.ctx.clearRect(0,0,n.destWidth,n.destHeight),this.ctx.drawImage(e,n.srcLeft,n.srcTop,n.srcWidth,n.srcHeight,0,0,n.destWidth,n.destHeight);var r=this.ctx.getImageData(0,0,n.destWidth,n.destHeight).data;return this.prepareResult(this.getColorFromArray4(r,t))}catch(n){var a;return fl(a=bl("security error (CORS) for resource ".concat(gl(e),".\nDetails: https://developer.mozilla.org/en/docs/Web/HTML/CORS_enabled_image")),t.silent),!t.silent&&console.error(n),this.prepareResult(o,a)}},e.prototype.getColorFromArray4=function(e,t){t=t||{};var o=e.length,n=dl(t);if(o<4)return n;var r,a=o-o%4,i=4*(t.step||1);switch(t.algorithm||"sqrt"){case"simple":r=cl;break;case"sqrt":r=ul;break;case"dominant":r=ll;break;default:throw bl("".concat(t.algorithm," is unknown algorithm"))}return r(e,a,{defaultColor:n,ignoredColor:rl(t.ignoredColor),step:i})},e.prototype.prepareResult=function(e,t){var o,n=e.slice(0,3),r=[e[0],e[1],e[2],e[3]/255],a=(299*(o=e)[0]+587*o[1]+114*o[2])/1e3<128;return{value:[e[0],e[1],e[2],e[3]],rgb:"rgb("+n.join(",")+")",rgba:"rgba("+r.join(",")+")",hex:nl(n),hexa:nl(e),isDark:a,isLight:!a,error:t}},e.prototype.destroy=function(){this.canvas&&(this.canvas.width=1,this.canvas.height=1,this.canvas=null),this.ctx=null},e.prototype.bindImageEvents=function(e,t){var o=this;return new Promise((function(n,r){var a=function(){l();var a=o.getColor(e,t);a.error?r(a.error):n(a)},i=function(){l(),r(bl('Error loading image "'.concat(e.src,'".')))},s=function(){l(),r(bl('Image "'.concat(e.src,'" loading aborted')))},l=function(){e.removeEventListener("load",a),e.removeEventListener("error",i),e.removeEventListener("abort",s)};e.addEventListener("load",a),e.addEventListener("error",i),e.addEventListener("abort",s)}))},e}();const vl=window.wp.hooks;!function(e){e.forEach((function(e){tl.indexOf(e)<0&&(e(Xs,Ws),tl.push(e))}))}([function(e,t){var o={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"},n={};for(var r in o)n[o[r]]=r;var a={};e.prototype.toName=function(t){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var r,i,s=n[this.toHex()];if(s)return s;if(null==t?void 0:t.closest){var l=this.toRgb(),c=1/0,u="black";if(!a.length)for(var d in o)a[d]=new e(o[d]).toRgb();for(var p in o){var m=(r=l,i=a[p],Math.pow(r.r-i.r,2)+Math.pow(r.g-i.g,2)+Math.pow(r.b-i.b,2));m<c&&(c=m,u=p)}return u}},t.string.push([function(t){var n=t.toLowerCase(),r="transparent"===n?"#0000":o[n];return r?new e(r).toRgb():null},"name"])}]);const kl="#FFF";function wl(){return wl.fastAverageColor||(wl.fastAverageColor=new yl),wl.fastAverageColor}const Cl=fo((async e=>{if(!e)return kl;const{r:t,g:o,b:n,a:r}=el(kl).toRgb();try{const a=(0,vl.applyFilters)("media.crossOrigin",void 0,e);return(await wl().getColorAsync(e,{defaultColor:[t,o,n,255*r],silent:!0,crossOrigin:a})).hex}catch(e){return kl}}));function jl(e,t,o){if(t===o||100===e)return el(t).isDark();const n=el(t).alpha(e/100).toRgb(),r=el(o).toRgb(),a=(s=r,{r:(i=n).r*i.a+s.r*s.a*(1-i.a),g:i.g*i.a+s.g*s.a*(1-i.a),b:i.b*i.a+s.b*s.a*(1-i.a),a:i.a+s.a*(1-i.a)});var i,s;return el(a).isDark()}var Sl=(0,xt.compose)([(0,ct.withColors)({overlayColor:"background-color"})])((function({attributes:e,clientId:t,isSelected:o,overlayColor:n,setAttributes:r,setOverlayColor:a,toggleSelection:i,context:{postId:s,postType:l}}){const{contentPosition:c,id:u,url:d,backgroundType:p,useFeaturedImage:m,dimRatio:g,focalPoint:h,hasParallax:_,isDark:x,isRepeated:b,minHeight:f,minHeightUnit:y,alt:v,allowedBlocks:k,templateLock:w,tagName:C="div",isUserOverlayColor:j,sizeSlug:S,poster:B}=e,[T]=(0,_t.useEntityProp)("postType",l,"featured_media",s),{getSettings:N}=(0,lt.useSelect)(ct.store),{__unstableMarkNextChangeAsNotPersistent:P}=(0,lt.useDispatch)(ct.store),{media:I}=(0,lt.useSelect)((e=>({media:T&&m?e(_t.store).getEntityRecord("postType","attachment",T,{context:"view"}):void 0})),[T,m]),D=I?.media_details?.sizes?.[S]?.source_url??I?.source_url;(0,gt.useEffect)((()=>{(async()=>{if(!m)return;const e=await Cl(D);let t=n.color;j||(t=e,P(),a(t));const o=jl(g,t,e);P(),r({isDark:o,isUserOverlayColor:j||!1})})()}),[D]);const M=m?D:d?.replaceAll("&amp;","&"),z=m?Ai:p,{createErrorNotice:A}=(0,lt.useDispatch)(bo.store),{gradientClass:L,gradientValue:H}=(0,ct.__experimentalUseGradient)(),R=async e=>{const t=function(e){if(!e||!e.url&&!e.src)return{url:void 0,id:void 0};let t;if((0,ht.isBlobURL)(e.url)&&(e.type=(0,ht.getBlobTypeByURL)(e.url)),e.media_type)t=e.media_type===Ai?Ai:Li;else{if(!e.type||e.type!==Ai&&e.type!==Li)return;t=e.type}return{url:e.url||e.src,id:e.id,alt:e?.alt,backgroundType:t,...t===Li?{hasParallax:void 0}:{}}}(e),o=[e?.type,e?.media_type].includes(Ai),i=await Cl(o?e?.url:void 0);let s=n.color;j||(s=i,a(s),P());const l=void 0===d&&100===g?50:g,c=jl(l,s,i);if(z===Ai&&t?.id){const{imageDefaultSize:o}=N();S&&(e?.sizes?.[S]||e?.media_details?.sizes?.[S])?(t.sizeSlug=S,t.url=e?.sizes?.[S]?.url||e?.media_details?.sizes?.[S]?.source_url):e?.sizes?.[o]||e?.media_details?.sizes?.[o]?(t.sizeSlug=o,t.url=e?.sizes?.[o]?.url||e?.media_details?.sizes?.[o]?.source_url):t.sizeSlug=gs}r({...t,focalPoint:void 0,useFeaturedImage:void 0,dimRatio:l,isDark:c,isUserOverlayColor:j||!1})},V=()=>{let e=n.color;j||(e="#000",a(void 0),P());const t=jl(g,e,kl);r({url:void 0,id:void 0,backgroundType:void 0,focalPoint:void 0,hasParallax:void 0,isRepeated:void 0,useFeaturedImage:void 0,isDark:t})},F=async e=>{const t=await Cl(M),o=jl(g,e,t);a(e),P(),r({isUserOverlayColor:!0,isDark:o})},E=e=>{A(e,{type:"snackbar"})},O=((e,t)=>!e&&(0,ht.isBlobURL)(t))(u,M),G=Ai===z,$=Li===z,U=(0,ct.useBlockEditingMode)(),q="default"===U,[W,{height:Z,width:J}]=(0,xt.useResizeObserver)(),Q=(0,gt.useMemo)((()=>({height:"px"===y&&f?f:"auto",width:"auto"})),[f,y]),K=f&&y?`${f}${y}`:f,Y=!(_||b),X={minHeight:K||void 0},ee=M?`url(${M})`:void 0,te=Vi(h),oe={backgroundColor:n.color},ne={objectPosition:h&&Y?Vi(h):void 0},re=!!(M||n.color||H),ae=(0,lt.useSelect)((e=>e(ct.store).getBlock(t).innerBlocks.length>0),[t]),ie=(0,gt.useRef)(),se=(0,ct.useBlockProps)({ref:ie}),[le]=(0,ct.useSettings)("typography.fontSizes"),ce=function(e){return[["core/paragraph",{align:"center",placeholder:(0,pt.__)("Write title…"),...e}]]}({fontSize:le?.length>0?"large":void 0}),ue=(0,ct.useInnerBlocksProps)({className:"wp-block-cover__inner-container"},{template:ae?void 0:ce,templateInsertUpdatesSelection:!0,allowedBlocks:k,templateLock:w,dropZoneElement:ie.current}),de=(0,gt.useRef)(),pe={isVideoBackground:$,isImageBackground:G,mediaElement:de,hasInnerBlocks:ae,url:M,isImgElement:Y,overlayColor:n},me=async()=>{const e=!m,t=e?await Cl(D):kl,o=j?n.color:t;j||(a(e?o:void 0),P());const i=100===g?50:g,s=jl(i,o,t);r({id:void 0,url:void 0,useFeaturedImage:e,dimRatio:i,backgroundType:m?Ai:void 0,isDark:s})},ge=(0,it.jsx)(ws,{attributes:e,setAttributes:r,onSelectMedia:R,currentSettings:pe,toggleUseFeaturedImage:me,onClearMedia:V,blockEditingMode:U}),he=(0,it.jsx)(vs,{attributes:e,setAttributes:r,clientId:t,setOverlayColor:F,coverRef:ie,currentSettings:pe,toggleUseFeaturedImage:me,updateDimRatio:async e=>{const t=await Cl(M),o=jl(e,n.color,t);r({dimRatio:e,isDark:o})},onClearMedia:V,featuredImage:I}),_e={className:"block-library-cover__resize-container",clientId:t,height:Z,minHeight:K,onResizeStart:()=>{r({minHeightUnit:"px"}),i(!1)},onResize:e=>{r({minHeight:e})},onResizeStop:e=>{i(!0),r({minHeight:e})},showHandle:!e.style?.dimensions?.aspectRatio,size:Q,width:J};if(!m&&!ae&&!re)return(0,it.jsxs)(it.Fragment,{children:[ge,he,q&&o&&(0,it.jsx)(Bs,{..._e}),(0,it.jsxs)(C,{...se,className:Dt("is-placeholder",se.className),style:{...se.style,minHeight:K||void 0},children:[W,(0,it.jsx)(Cs,{onSelectMedia:R,onError:E,toggleUseFeaturedImage:me,children:(0,it.jsx)("div",{className:"wp-block-cover__placeholder-background-options",children:(0,it.jsx)(ct.ColorPalette,{disableCustomColors:!0,value:n.color,onChange:F,clearable:!1,asButtons:!0,"aria-label":(0,pt.__)("Overlay color")})})})]})]});const xe=Dt({"is-dark-theme":x,"is-light":!x,"is-transient":O,"has-parallax":_,"is-repeated":b,"has-custom-content-position":!Ei(c)},Oi(c)),be=M||!m||m&&!M;return(0,it.jsxs)(it.Fragment,{children:[ge,he,(0,it.jsxs)(C,{...se,className:Dt(xe,se.className),style:{...X,...se.style},"data-url":M,children:[W,!M&&m&&(0,it.jsx)(mt.Placeholder,{className:"wp-block-cover__image--placeholder-image",withIllustration:!0}),M&&G&&(Y?(0,it.jsx)("img",{ref:de,className:"wp-block-cover__image-background",alt:v,src:M,style:ne}):(0,it.jsx)("div",{ref:de,role:v?"img":void 0,"aria-label":v||void 0,className:Dt(xe,"wp-block-cover__image-background"),style:{backgroundImage:ee,backgroundPosition:te}})),M&&$&&(0,it.jsx)("video",{ref:de,className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:M,poster:B,style:ne}),be&&(0,it.jsx)("span",{"aria-hidden":"true",className:Dt("wp-block-cover__background",Fi(g),{[n.class]:n.class,"has-background-dim":void 0!==g,"wp-block-cover__gradient-background":M&&H&&0!==g,"has-background-gradient":H,[L]:L}),style:{backgroundImage:H,...oe}}),O&&(0,it.jsx)(mt.Spinner,{}),(0,it.jsx)(Cs,{disableMediaButtons:!0,onSelectMedia:R,onError:E,toggleUseFeaturedImage:me}),(0,it.jsx)("div",{...ue})]}),q&&o&&(0,it.jsx)(Bs,{..._e})]})}));const Bl=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/cover","title":"Cover","category":"media","description":"Add an image or video with a text overlay.","textdomain":"default","attributes":{"url":{"type":"string","role":"content"},"useFeaturedImage":{"type":"boolean","default":false},"id":{"type":"number"},"alt":{"type":"string","default":""},"hasParallax":{"type":"boolean","default":false},"isRepeated":{"type":"boolean","default":false},"dimRatio":{"type":"number","default":100},"overlayColor":{"type":"string"},"customOverlayColor":{"type":"string"},"isUserOverlayColor":{"type":"boolean"},"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":true},"templateLock":{"type":["string","boolean"],"enum":["all","insert","contentOnly",false]},"tagName":{"type":"string","default":"div"},"sizeSlug":{"type":"string"},"poster":{"type":"string","source":"attribute","selector":"video","attribute":"poster"}},"usesContext":["postId","postType"],"supports":{"anchor":true,"align":true,"html":false,"shadow":true,"spacing":{"padding":true,"margin":["top","bottom"],"blockGap":true,"__experimentalDefaultControls":{"padding":true,"blockGap":true}},"__experimentalBorder":{"color":true,"radius":true,"style":true,"width":true,"__experimentalDefaultControls":{"color":true,"radius":true,"style":true,"width":true}},"color":{"heading":true,"text":true,"background":false,"__experimentalSkipSerialization":["gradients"],"enableContrastChecker":false},"dimensions":{"aspectRatio":true},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"layout":{"allowJustification":false},"interactivity":{"clientNavigation":true},"filter":{"duotone":true},"allowedBlocks":true},"selectors":{"filter":{"duotone":".wp-block-cover > .wp-block-cover__image-background, .wp-block-cover > .wp-block-cover__video-background"}},"editorStyle":"wp-block-cover-editor","style":"wp-block-cover"}');const{cleanEmptyObject:Tl}=jo(ct.privateApis),Nl={from:[{type:"block",blocks:["core/image"],transform:({caption:e,url:t,alt:o,align:n,id:r,anchor:a,style:i})=>(0,st.createBlock)("core/cover",{dimRatio:50,url:t,alt:o,align:n,id:r,anchor:a,style:{color:{duotone:i?.color?.duotone}}},[(0,st.createBlock)("core/paragraph",{content:e,fontSize:"large",align:"center"})])},{type:"block",blocks:["core/video"],transform:({caption:e,src:t,align:o,id:n,anchor:r})=>(0,st.createBlock)("core/cover",{dimRatio:50,url:t,align:o,id:n,backgroundType:Li,anchor:r},[(0,st.createBlock)("core/paragraph",{content:e,fontSize:"large",align:"center"})])},{type:"block",blocks:["core/group"],transform:(e,t)=>{const{align:o,anchor:n,backgroundColor:r,gradient:a,style:i}=e;if(1===t?.length&&"core/cover"===t[0]?.name)return(0,st.createBlock)("core/cover",t[0].attributes,t[0].innerBlocks);const s={align:o,anchor:n,dimRatio:r||a||i?.color?.background||i?.color?.gradient?void 0:50,overlayColor:r,customOverlayColor:i?.color?.background,gradient:a,customGradient:i?.color?.gradient},l={...e,backgroundColor:void 0,gradient:void 0,style:Tl({...e?.style,color:i?.color?{...i?.color,background:void 0,gradient:void 0}:void 0})};return(0,st.createBlock)("core/cover",s,[(0,st.createBlock)("core/group",l,t)])}}],to:[{type:"block",blocks:["core/image"],isMatch:({backgroundType:e,url:t,overlayColor:o,customOverlayColor:n,gradient:r,customGradient:a})=>t?e===Ai:!(o||n||r||a),transform:({title:e,url:t,alt:o,align:n,id:r,anchor:a,style:i})=>(0,st.createBlock)("core/image",{caption:e,url:t,alt:o,align:n,id:r,anchor:a,style:{color:{duotone:i?.color?.duotone}}})},{type:"block",blocks:["core/video"],isMatch:({backgroundType:e,url:t,overlayColor:o,customOverlayColor:n,gradient:r,customGradient:a})=>t?e===Li:!(o||n||r||a),transform:({title:e,url:t,align:o,id:n,anchor:r})=>(0,st.createBlock)("core/video",{caption:e,src:t,id:n,align:o,anchor:r})},{type:"block",blocks:["core/group"],isMatch:({url:e,useFeaturedImage:t})=>!e&&!t,transform:(e,t)=>{const o={backgroundColor:e?.overlayColor,gradient:e?.gradient,style:Tl({...e?.style,color:e?.customOverlayColor||e?.customGradient||e?.style?.color?{background:e?.customOverlayColor,gradient:e?.customGradient,...e?.style?.color}:void 0})};if(1===t?.length&&"core/group"===t[0]?.name){const e=Tl(t[0].attributes||{});return e?.backgroundColor||e?.gradient||e?.style?.color?.background||e?.style?.color?.gradient?(0,st.createBlock)("core/group",e,t[0]?.innerBlocks):(0,st.createBlock)("core/group",{...o,...e,style:Tl({...e?.style,color:o?.style?.color||e?.style?.color?{...o?.style?.color,...e?.style?.color}:void 0})},t[0]?.innerBlocks)}return(0,st.createBlock)("core/group",{...e,...o},t)}}]};var Pl=Nl;var Il=[{name:"cover",title:(0,pt.__)("Cover"),description:(0,pt.__)("Add an image or video with a text overlay."),attributes:{layout:{type:"constrained"}},isDefault:!0,icon:Mi}];const{name:Dl}=Bl,Ml={icon:Mi,example:{attributes:{customOverlayColor:"#065174",dimRatio:40,url:"https://s.w.org/images/core/5.3/Windbuchencom.jpg",style:{typography:{fontSize:48},color:{text:"white"}}},innerBlocks:[{name:"core/paragraph",attributes:{content:`<strong>${(0,pt.__)("Snow Patrol")}</strong>`,align:"center"}}]},transforms:Pl,save:function({attributes:e}){const{backgroundType:t,gradient:o,contentPosition:n,customGradient:r,customOverlayColor:a,dimRatio:i,focalPoint:s,useFeaturedImage:l,hasParallax:c,isDark:u,isRepeated:d,overlayColor:p,url:m,alt:g,id:h,minHeight:_,minHeightUnit:x,tagName:b,sizeSlug:f,poster:y}=e,v=(0,ct.getColorClassName)("background-color",p),k=(0,ct.__experimentalGetGradientClass)(o),w=Ai===t,C=Li===t,j=!(c||d),S={minHeight:(_&&x?`${_}${x}`:_)||void 0},B={backgroundColor:v?void 0:a,background:r||void 0},T=s&&j?Vi(s):void 0,N=m?`url(${m})`:void 0,P=Vi(s),I=Dt({"is-light":!u,"has-parallax":c,"is-repeated":d,"has-custom-content-position":!Ei(n)},Oi(n)),D=Dt("wp-block-cover__image-background",h?`wp-image-${h}`:null,{[`size-${f}`]:f,"has-parallax":c,"is-repeated":d}),M=o||r;return(0,it.jsxs)(b,{...ct.useBlockProps.save({className:I,style:S}),children:[!l&&w&&m&&(j?(0,it.jsx)("img",{className:D,alt:g,src:m,style:{objectPosition:T},"data-object-fit":"cover","data-object-position":T}):(0,it.jsx)("div",{role:g?"img":void 0,"aria-label":g||void 0,className:D,style:{backgroundPosition:P,backgroundImage:N}})),C&&m&&(0,it.jsx)("video",{className:Dt("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:m,poster:y,style:{objectPosition:T},"data-object-fit":"cover","data-object-position":T}),(0,it.jsx)("span",{"aria-hidden":"true",className:Dt("wp-block-cover__background",v,Fi(i),{"has-background-dim":void 0!==i,"wp-block-cover__gradient-background":m&&M&&0!==i,"has-background-gradient":M,[k]:k}),style:B}),(0,it.jsx)("div",{...ct.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})},edit:Sl,deprecated:ms,variations:Il},zl=()=>jt({name:Dl,metadata:Bl,settings:Ml});var Al=(0,it.jsxs)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,it.jsx)(St.Path,{d:"M4 16h10v1.5H4V16Zm0-4.5h16V13H4v-1.5ZM10 7h10v1.5H10V7Z",fillRule:"evenodd",clipRule:"evenodd"}),(0,it.jsx)(St.Path,{d:"m4 5.25 4 2.5-4 2.5v-5Z"})]});const Ll=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/details","title":"Details","category":"text","description":"Hide and show additional content.","keywords":["summary","toggle","disclosure"],"textdomain":"default","attributes":{"showContent":{"type":"boolean","default":false},"summary":{"type":"rich-text","source":"rich-text","selector":"summary","role":"content"},"name":{"type":"string","source":"attribute","attribute":"name","selector":".wp-block-details"},"placeholder":{"type":"string"}},"supports":{"__experimentalOnEnter":true,"align":["wide","full"],"anchor":true,"color":{"gradients":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true}},"__experimentalBorder":{"color":true,"width":true,"style":true},"html":false,"spacing":{"margin":true,"padding":true,"blockGap":true,"__experimentalDefaultControls":{"margin":false,"padding":false}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"layout":{"allowEditing":false},"interactivity":{"clientNavigation":true},"allowedBlocks":true},"editorStyle":"wp-block-details-editor","style":"wp-block-details"}'),{withIgnoreIMEEvents:Hl}=jo(mt.privateApis),Rl=[["core/paragraph",{placeholder:(0,pt.__)("Type / to add a hidden block")}]];var Vl=function({attributes:e,setAttributes:t,clientId:o}){const{name:n,showContent:r,summary:a,allowedBlocks:i,placeholder:s}=e,l=(0,ct.useBlockProps)(),c=(0,ct.useInnerBlocksProps)(l,{template:Rl,__experimentalCaptureToolbars:!0,allowedBlocks:i}),[u,d]=(0,gt.useState)(r),p=vt(),m=(0,lt.useSelect)((e=>e(ct.store).hasSelectedInnerBlock(o,!0)),[o]);return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsx)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{t({showContent:!1})},dropdownMenuProps:p,children:(0,it.jsx)(mt.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,pt.__)("Open by default"),hasValue:()=>r,onDeselect:()=>{t({showContent:!1})},children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Open by default"),checked:r,onChange:()=>t({showContent:!r})})})})}),(0,it.jsx)(ct.InspectorControls,{group:"advanced",children:(0,it.jsx)(mt.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("Name attribute"),value:n||"",onChange:e=>t({name:e}),help:(0,pt.__)("Enables multiple Details blocks with the same name attribute to be connected, with only one open at a time.")})}),(0,it.jsxs)("details",{...c,open:u||m,onToggle:e=>d(e.target.open),name:n||"",children:[(0,it.jsx)("summary",{onKeyDown:Hl((e=>{"Enter"!==e.key||e.shiftKey||(d((e=>!e)),e.preventDefault())})),onKeyUp:e=>{" "===e.key&&e.preventDefault()},children:(0,it.jsx)(ct.RichText,{identifier:"summary","aria-label":(0,pt.__)("Write summary. Press Enter to expand or collapse the details."),placeholder:s||(0,pt.__)("Write summary…"),withoutInteractiveFormatting:!0,value:a,onChange:e=>t({summary:e})})}),c.children]})]})};var Fl={from:[{type:"block",isMultiBlock:!0,blocks:["*"],isMatch:({},e)=>!(1===e.length&&"core/details"===e[0].name),__experimentalConvert:e=>(0,st.createBlock)("core/details",{},e.map((e=>(0,st.cloneBlock)(e))))}]};const{name:El}=Ll,Ol={icon:Al,example:{attributes:{summary:(0,pt.__)("La Mancha"),showContent:!0},innerBlocks:[{name:"core/paragraph",attributes:{content:(0,pt.__)("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.")}}]},__experimentalLabel(e,{context:t}){const{summary:o}=e,n=e?.metadata?.name,r=o?.trim().length>0;return"list-view"===t&&(n||r)?n||o:"accessibility"===t?r?(0,pt.sprintf)((0,pt.__)("Details. %s"),o):(0,pt.__)("Details. Empty."):void 0},save:function({attributes:e}){const{name:t,showContent:o}=e,n=e.summary?e.summary:"Details",r=ct.useBlockProps.save();return(0,it.jsxs)("details",{...r,name:t||void 0,open:o,children:[(0,it.jsx)("summary",{children:(0,it.jsx)(ct.RichText.Content,{value:n})}),(0,it.jsx)(ct.InnerBlocks.Content,{})]})},edit:Vl,transforms:Fl},Gl=()=>jt({name:El,metadata:Ll,settings:Ol});var $l=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"m19 7-3-3-8.5 8.5-1 4 4-1L19 7Zm-7 11.5H5V20h7v-1.5Z"})});function Ul(e){return e?(0,pt.__)("This embed will preserve its aspect ratio when the browser is resized."):(0,pt.__)("This embed may not preserve its aspect ratio when the browser is resized.")}var ql=({blockSupportsResponsive:e,showEditButton:t,themeSupportsResponsive:o,allowResponsive:n,toggleResponsive:r,switchBackToURLInput:a})=>{const i=vt();return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.BlockControls,{children:(0,it.jsx)(mt.ToolbarGroup,{children:t&&(0,it.jsx)(mt.ToolbarButton,{className:"components-toolbar__control",label:(0,pt.__)("Edit URL"),icon:$l,onClick:a})})}),o&&e&&(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsx)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Media settings"),resetAll:()=>{r(!0)},dropdownMenuProps:i,children:(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Media settings"),isShownByDefault:!0,hasValue:()=>!n,onDeselect:()=>{r(!n)},children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Resize for smaller devices"),checked:n,help:Ul,onChange:r})})})})]})};const Wl=(0,it.jsx)(mt.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(mt.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"})}),Zl=(0,it.jsx)(mt.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(mt.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"})}),Jl=(0,it.jsx)(mt.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(mt.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"})}),Ql=(0,it.jsx)(mt.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(mt.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"})}),Kl={foreground:"#1da1f2",src:(0,it.jsx)(mt.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(mt.G,{children:(0,it.jsx)(mt.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"})})})},Yl={foreground:"#ff0000",src:(0,it.jsx)(mt.SVG,{viewBox:"0 0 24 24",children:(0,it.jsx)(mt.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"})})},Xl={foreground:"#3b5998",src:(0,it.jsx)(mt.SVG,{viewBox:"0 0 24 24",children:(0,it.jsx)(mt.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"})})},ec=(0,it.jsx)(mt.SVG,{viewBox:"0 0 24 24",children:(0,it.jsx)(mt.G,{children:(0,it.jsx)(mt.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"})})}),tc={foreground:"#0073AA",src:(0,it.jsx)(mt.SVG,{viewBox:"0 0 24 24",children:(0,it.jsx)(mt.G,{children:(0,it.jsx)(mt.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"})})})},oc={foreground:"#1db954",src:(0,it.jsx)(mt.SVG,{viewBox:"0 0 24 24",children:(0,it.jsx)(mt.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"})})},nc=(0,it.jsx)(mt.SVG,{viewBox:"0 0 24 24",children:(0,it.jsx)(mt.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"})}),rc={foreground:"#1ab7ea",src:(0,it.jsx)(mt.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(mt.G,{children:(0,it.jsx)(mt.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"})})})},ac=(0,it.jsx)(mt.SVG,{viewBox:"0 0 24 24",children:(0,it.jsx)(mt.Path,{d:"M22 12.068a2.184 2.184 0 0 0-2.186-2.186c-.592 0-1.13.233-1.524.609-1.505-1.075-3.566-1.774-5.86-1.864l1.004-4.695 3.261.699A1.56 1.56 0 1 0 18.255 3c-.61-.001-1.147.357-1.398.877l-3.638-.77a.382.382 0 0 0-.287.053.348.348 0 0 0-.161.251l-1.112 5.233c-2.33.072-4.426.77-5.95 1.864a2.201 2.201 0 0 0-1.523-.61 2.184 2.184 0 0 0-.896 4.176c-.036.215-.053.43-.053.663 0 3.37 3.924 6.111 8.763 6.111s8.763-2.724 8.763-6.11c0-.216-.017-.449-.053-.664A2.207 2.207 0 0 0 22 12.068Zm-15.018 1.56a1.56 1.56 0 0 1 3.118 0c0 .86-.699 1.558-1.559 1.558-.86.018-1.559-.699-1.559-1.559Zm8.728 4.139c-1.076 1.075-3.119 1.147-3.71 1.147-.61 0-2.652-.09-3.71-1.147a.4.4 0 0 1 0-.573.4.4 0 0 1 .574 0c.68.68 2.114.914 3.136.914 1.022 0 2.473-.233 3.136-.914a.4.4 0 0 1 .574 0 .436.436 0 0 1 0 .573Zm-.287-2.563a1.56 1.56 0 0 1 0-3.118c.86 0 1.56.699 1.56 1.56 0 .841-.7 1.558-1.56 1.558Z"})}),ic={foreground:"#35465c",src:(0,it.jsx)(mt.SVG,{viewBox:"0 0 24 24",children:(0,it.jsx)(mt.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"})})},sc=(0,it.jsxs)(mt.SVG,{viewBox:"0 0 24 24",children:[(0,it.jsx)(mt.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"}),(0,it.jsx)(mt.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"}),(0,it.jsx)(mt.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"})]}),lc=(0,it.jsxs)(mt.SVG,{viewBox:"0 0 24 24",children:[(0,it.jsx)(mt.Path,{d:"m.0206909 21 19.8160091-13.07806 3.5831 6.20826z",fill:"#4bc7ee"}),(0,it.jsx)(mt.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"}),(0,it.jsx)(mt.Path,{d:"m.0206909 21 15.2439091-16.38571 4.3029 7.32271z",fill:"#c3d82e"}),(0,it.jsx)(mt.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"}),(0,it.jsx)(mt.Path,{d:"m.0206909 21 19.5468091-9.063 1.6621 2.8344z",fill:"#209dbd"}),(0,it.jsx)(mt.Path,{d:"m.0206909 21 17.9209091-11.82623 1.6259 2.76323z",fill:"#7cb3c9"})]}),cc=(0,it.jsx)(mt.SVG,{viewBox:"0 0 24 24",children:(0,it.jsx)(mt.Path,{d:"M11.903 16.568c-1.82 0-3.124-1.281-3.124-2.967a2.987 2.987 0 0 1 2.989-2.989c1.663 0 2.944 1.304 2.944 3.034 0 1.663-1.281 2.922-2.81 2.922ZM17.997 3l-3.308.73v5.107c-.809-1.034-2.045-1.37-3.505-1.37-1.529 0-2.9.561-4.023 1.662-1.259 1.214-1.933 2.764-1.933 4.495 0 1.888.72 3.506 2.113 4.742 1.056.944 2.314 1.415 3.775 1.415 1.438 0 2.517-.382 3.573-1.415v1.415h3.308V3Z",fill:"#333436"})}),uc=(0,it.jsx)(mt.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(mt.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"})}),dc=(0,it.jsx)(mt.SVG,{viewBox:"0 0 44 44",children:(0,it.jsx)(mt.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"})}),pc={foreground:"#f43e37",src:(0,it.jsxs)(mt.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,it.jsx)(mt.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M24,12A12,12,0,1,1,12,0,12,12,0,0,1,24,12Z"}),(0,it.jsx)(mt.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M2.67,12a9.33,9.33,0,0,1,18.66,0H19a7,7,0,1,0-7,7v2.33A9.33,9.33,0,0,1,2.67,12ZM12,17.6A5.6,5.6,0,1,1,17.6,12h-2A3.56,3.56,0,1,0,12,15.56Z",fill:"#fff"})]})},mc=(0,it.jsx)(mt.SVG,{viewBox:"0 0 24 24",children:(0,it.jsx)(mt.Path,{fill:"#0a7aff",d:"M6.3,4.2c2.3,1.7,4.8,5.3,5.7,7.2.9-1.9,3.4-5.4,5.7-7.2,1.7-1.3,4.3-2.2,4.3.9s-.4,5.2-.6,5.9c-.7,2.6-3.3,3.2-5.6,2.8,4,.7,5.1,3,2.9,5.3-5,5.2-6.7-2.8-6.7-2.8,0,0-1.7,8-6.7,2.8-2.2-2.3-1.2-4.6,2.9-5.3-2.3.4-4.9-.3-5.6-2.8-.2-.7-.6-5.3-.6-5.9,0-3.1,2.7-2.1,4.3-.9h0Z"})});var gc=()=>(0,it.jsx)("div",{className:"wp-block-embed is-loading",children:(0,it.jsx)(mt.Spinner,{})});var hc=({icon:e,label:t,value:o,onSubmit:n,onChange:r,cannotEmbed:a,fallback:i,tryAgain:s})=>(0,it.jsxs)(mt.Placeholder,{icon:(0,it.jsx)(ct.BlockIcon,{icon:e,showColors:!0}),label:t,className:"wp-block-embed",instructions:(0,pt.__)("Paste a link to the content you want to display on your site."),children:[(0,it.jsxs)("form",{onSubmit:n,children:[(0,it.jsx)(mt.__experimentalInputControl,{__next40pxDefaultSize:!0,type:"url",value:o||"",className:"wp-block-embed__placeholder-input",label:t,hideLabelFromVision:!0,placeholder:(0,pt.__)("Enter URL to embed here…"),onChange:r}),(0,it.jsx)(mt.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",children:(0,pt._x)("Embed","button label")})]}),(0,it.jsx)("div",{className:"wp-block-embed__learn-more",children:(0,it.jsx)(mt.ExternalLink,{href:(0,pt.__)("https://wordpress.org/documentation/article/embeds/"),children:(0,pt.__)("Learn more about embeds")})}),a&&(0,it.jsxs)(mt.__experimentalVStack,{spacing:3,className:"components-placeholder__error",children:[(0,it.jsx)("div",{className:"components-placeholder__instructions",children:(0,pt.__)("Sorry, this content could not be embedded.")}),(0,it.jsxs)(mt.__experimentalHStack,{expanded:!1,spacing:3,justify:"flex-start",children:[(0,it.jsx)(mt.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:s,children:(0,pt._x)("Try again","button label")})," ",(0,it.jsx)(mt.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:i,children:(0,pt._x)("Convert to link","button label")})]})]})]});const _c={class:"className",frameborder:"frameBorder",marginheight:"marginHeight",marginwidth:"marginWidth"};function xc({html:e}){const t=(0,gt.useRef)(),o=(0,gt.useMemo)((()=>{const t=(new window.DOMParser).parseFromString(e,"text/html").querySelector("iframe"),o={};return t?(Array.from(t.attributes).forEach((({name:e,value:t})=>{"style"!==e&&(o[_c[e]||e]=t)})),o):o}),[e]);return(0,gt.useEffect)((()=>{const{ownerDocument:e}=t.current,{defaultView:n}=e;function r({data:{secret:e,message:n,value:r}={}}){"height"===n&&e===o["data-secret"]&&(t.current.height=r)}return n.addEventListener("message",r),()=>{n.removeEventListener("message",r)}}),[]),(0,it.jsx)("div",{className:"wp-block-embed__wrapper",children:(0,it.jsx)("iframe",{ref:(0,xt.useMergeRefs)([t,(0,xt.useFocusableIframe)()]),title:o.title,...o})})}function bc({preview:e,previewable:t,url:o,type:n,isSelected:r,className:a,icon:i,label:s}){const[l,c]=(0,gt.useState)(!1);!r&&l&&c(!1);const u=()=>{c(!0)},{scripts:d}=e,p="photo"===n?(e=>{const t=e.url||e.thumbnail_url,o=(0,it.jsx)("p",{children:(0,it.jsx)("img",{src:t,alt:e.title,width:"100%"})});return(0,gt.renderToString)(o)})(e):e.html,m=(0,no.getAuthority)(o),g=(0,pt.sprintf)((0,pt.__)("Embedded content from %s"),m),h=Dt(n,a,"wp-block-embed__wrapper"),_="wp-embed"===n?(0,it.jsx)(xc,{html:p}):(0,it.jsxs)("div",{className:"wp-block-embed__wrapper",children:[(0,it.jsx)(mt.SandBox,{html:p,scripts:d,title:g,type:h,onFocus:u}),!l&&(0,it.jsx)("div",{className:"block-library-embed__interactive-overlay",onMouseUp:u})]});return(0,it.jsx)(it.Fragment,{children:t?_:(0,it.jsxs)(mt.Placeholder,{icon:(0,it.jsx)(ct.BlockIcon,{icon:i,showColors:!0}),label:s,children:[(0,it.jsx)("p",{className:"components-placeholder__error",children:(0,it.jsx)("a",{href:o,children:o})}),(0,it.jsx)("p",{className:"components-placeholder__error",children:(0,pt.sprintf)((0,pt.__)("Embedded content from %s can't be previewed in the editor."),m)})]})})}var fc=e=>{const{attributes:{providerNameSlug:t,previewable:o,responsive:n,url:r},attributes:a,isSelected:i,onReplace:s,setAttributes:l,insertBlocksAfter:c,onFocus:u}=e,d={title:(0,pt._x)("Embed","block title"),icon:Wl},{icon:p,title:m}=(g=t,(0,st.getBlockVariations)(So)?.find((({name:e})=>e===g))||d);var g;const[h,_]=(0,gt.useState)(r),[x,b]=(0,gt.useState)(!1),{invalidateResolution:f}=(0,lt.useDispatch)(_t.store),{preview:y,fetching:v,themeSupportsResponsive:k,cannotEmbed:w,hasResolved:C}=(0,lt.useSelect)((e=>{const{getEmbedPreview:t,isPreviewEmbedFallback:o,isRequestingEmbedPreview:n,getThemeSupports:a,hasFinishedResolution:i}=e(_t.store);if(!r)return{fetching:!1,cannotEmbed:!1};const s=t(r),l=o(r),c=!!s&&!(!1===s?.html&&void 0===s?.type)&&!(404===s?.data?.status);return{preview:c?s:void 0,fetching:n(r),themeSupportsResponsive:a()["responsive-embeds"],cannotEmbed:!c||l,hasResolved:i("getEmbedPreview",[r])}}),[r]),j=()=>((e,t,o,n)=>{const{allowResponsive:r,className:a}=e;return{...e,...Do(t,o,a,n,r)}})(a,y,m,n);(0,gt.useEffect)((()=>{if(y?.html||!w||!C)return;const e=r.replace(/\/$/,"");_(e),b(!1),l({url:e})}),[y?.html,r,w,C,l]),(0,gt.useEffect)((()=>{if(w&&!v&&h&&"x.com"===(0,no.getAuthority)(h)){const e=new URL(h);e.host="twitter.com",l({url:e.toString()})}}),[h,w,v,l]),(0,gt.useEffect)((()=>{if(y&&!x){const t=j();if(Object.keys(t).some((e=>t[e]!==a[e]))&&l(t),s){const o=No(e,t);o&&s(o)}}}),[y,x]);const S=(0,ct.useBlockProps)();if(v)return(0,it.jsx)(St.View,{...S,children:(0,it.jsx)(gc,{})});const B=(0,pt.sprintf)((0,pt.__)("%s URL"),m);if(!y||w||x)return(0,it.jsx)(St.View,{...S,children:(0,it.jsx)(hc,{icon:p,label:B,onFocus:u,onSubmit:e=>{e&&e.preventDefault();const t=Po(a.className);b(!1),l({url:h,className:t})},value:h,cannotEmbed:w,onChange:e=>_(e),fallback:()=>function(e,t){const o=(0,it.jsx)("a",{href:e,children:e});t((0,st.createBlock)("core/paragraph",{content:(0,gt.renderToString)(o)}))}(h,s),tryAgain:()=>{f("getEmbedPreview",[h])}})});const{caption:T,type:N,allowResponsive:P,className:I}=j(),D=Dt(I,e.className);return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ql,{showEditButton:y&&!w,themeSupportsResponsive:k,blockSupportsResponsive:n,allowResponsive:P,toggleResponsive:function(e){const{className:t}=a,{html:o}=y;l({allowResponsive:e,className:Io(o,t,n&&e)})},switchBackToURLInput:()=>b(!0)}),(0,it.jsxs)("figure",{...S,className:Dt(S.className,D,{[`is-type-${N}`]:N,[`is-provider-${t}`]:t,[`wp-block-embed-${t}`]:t}),children:[(0,it.jsx)(bc,{preview:y,previewable:o,className:D,url:h,type:N,caption:T,onCaptionChange:e=>l({caption:e}),isSelected:i,icon:p,label:B,insertBlocksAfter:c,attributes:a,setAttributes:l}),(0,it.jsx)(zo,{attributes:a,setAttributes:l,isSelected:i,insertBlocksAfter:c,label:(0,pt.__)("Embed caption text"),showToolbarButton:i})]})]})};const{name:yc}=yo;var vc={from:[{type:"raw",isMatch:e=>"P"===e.nodeName&&/^\s*(https?:\/\/\S+)\s*$/i.test(e.textContent)&&1===e.textContent?.match(/https/gi)?.length,transform:e=>(0,st.createBlock)(yc,{url:e.textContent.trim()})}],to:[{type:"block",blocks:["core/paragraph"],isMatch:({url:e})=>!!e,transform:({url:e,caption:t,className:o})=>{let n=`<a href="${e}">${e}</a>`;return t?.trim()&&(n+=`<br />${t}`),(0,st.createBlock)("core/paragraph",{content:n,className:Po(o)})}}]};function kc(e){return(0,pt.sprintf)((0,pt.__)("%s Embed"),e)}const wc=[{name:"twitter",title:kc("Twitter"),icon:Kl,keywords:["tweet",(0,pt.__)("social")],description:(0,pt.__)("Embed a tweet."),patterns:[/^https?:\/\/(www\.)?twitter\.com\/.+/i],attributes:{providerNameSlug:"twitter",responsive:!0}},{name:"youtube",title:kc("YouTube"),icon:Yl,keywords:[(0,pt.__)("music"),(0,pt.__)("video")],description:(0,pt.__)("Embed a YouTube video."),patterns:[/^https?:\/\/((m|www)\.)?youtube\.com\/.+/i,/^https?:\/\/youtu\.be\/.+/i],attributes:{providerNameSlug:"youtube",responsive:!0}},{name:"facebook",title:kc("Facebook"),icon:Xl,keywords:[(0,pt.__)("social")],description:(0,pt.__)("Embed a Facebook post."),scope:["block"],patterns:[],attributes:{providerNameSlug:"facebook",previewable:!1,responsive:!0}},{name:"instagram",title:kc("Instagram"),icon:ec,keywords:[(0,pt.__)("image"),(0,pt.__)("social")],description:(0,pt.__)("Embed an Instagram post."),scope:["block"],patterns:[],attributes:{providerNameSlug:"instagram",responsive:!0}},{name:"wordpress",title:kc("WordPress"),icon:tc,keywords:[(0,pt.__)("post"),(0,pt.__)("blog")],description:(0,pt.__)("Embed a WordPress post."),attributes:{providerNameSlug:"wordpress"}},{name:"soundcloud",title:kc("SoundCloud"),icon:Zl,keywords:[(0,pt.__)("music"),(0,pt.__)("audio")],description:(0,pt.__)("Embed SoundCloud content."),patterns:[/^https?:\/\/(www\.)?soundcloud\.com\/.+/i],attributes:{providerNameSlug:"soundcloud",responsive:!0}},{name:"spotify",title:kc("Spotify"),icon:oc,keywords:[(0,pt.__)("music"),(0,pt.__)("audio")],description:(0,pt.__)("Embed Spotify content."),patterns:[/^https?:\/\/(open|play)\.spotify\.com\/.+/i],attributes:{providerNameSlug:"spotify",responsive:!0}},{name:"flickr",title:kc("Flickr"),icon:nc,keywords:[(0,pt.__)("image")],description:(0,pt.__)("Embed Flickr content."),patterns:[/^https?:\/\/(www\.)?flickr\.com\/.+/i,/^https?:\/\/flic\.kr\/.+/i],attributes:{providerNameSlug:"flickr",responsive:!0}},{name:"vimeo",title:kc("Vimeo"),icon:rc,keywords:[(0,pt.__)("video")],description:(0,pt.__)("Embed a Vimeo video."),patterns:[/^https?:\/\/(www\.)?vimeo\.com\/.+/i],attributes:{providerNameSlug:"vimeo",responsive:!0}},{name:"animoto",title:kc("Animoto"),icon:lc,description:(0,pt.__)("Embed an Animoto video."),patterns:[/^https?:\/\/(www\.)?(animoto|video214)\.com\/.+/i],attributes:{providerNameSlug:"animoto",responsive:!0}},{name:"cloudup",title:kc("Cloudup"),icon:Wl,description:(0,pt.__)("Embed Cloudup content."),patterns:[/^https?:\/\/cloudup\.com\/.+/i],attributes:{providerNameSlug:"cloudup",responsive:!0}},{name:"collegehumor",title:kc("CollegeHumor"),icon:Ql,description:(0,pt.__)("Embed CollegeHumor content."),scope:["block"],patterns:[],attributes:{providerNameSlug:"collegehumor",responsive:!0}},{name:"crowdsignal",title:kc("Crowdsignal"),icon:Wl,keywords:["polldaddy",(0,pt.__)("survey")],description:(0,pt.__)("Embed Crowdsignal (formerly Polldaddy) content."),patterns:[/^https?:\/\/((.+\.)?polldaddy\.com|poll\.fm|.+\.crowdsignal\.net|.+\.survey\.fm)\/.+/i],attributes:{providerNameSlug:"crowdsignal",responsive:!0}},{name:"dailymotion",title:kc("Dailymotion"),icon:cc,keywords:[(0,pt.__)("video")],description:(0,pt.__)("Embed a Dailymotion video."),patterns:[/^https?:\/\/(www\.)?dailymotion\.com\/.+/i],attributes:{providerNameSlug:"dailymotion",responsive:!0}},{name:"imgur",title:kc("Imgur"),icon:Jl,description:(0,pt.__)("Embed Imgur content."),patterns:[/^https?:\/\/(.+\.)?imgur\.com\/.+/i],attributes:{providerNameSlug:"imgur",responsive:!0}},{name:"issuu",title:kc("Issuu"),icon:Wl,description:(0,pt.__)("Embed Issuu content."),patterns:[/^https?:\/\/(www\.)?issuu\.com\/.+/i],attributes:{providerNameSlug:"issuu",responsive:!0}},{name:"kickstarter",title:kc("Kickstarter"),icon:Wl,description:(0,pt.__)("Embed Kickstarter content."),patterns:[/^https?:\/\/(www\.)?kickstarter\.com\/.+/i,/^https?:\/\/kck\.st\/.+/i],attributes:{providerNameSlug:"kickstarter",responsive:!0}},{name:"mixcloud",title:kc("Mixcloud"),icon:Zl,keywords:[(0,pt.__)("music"),(0,pt.__)("audio")],description:(0,pt.__)("Embed Mixcloud content."),patterns:[/^https?:\/\/(www\.)?mixcloud\.com\/.+/i],attributes:{providerNameSlug:"mixcloud",responsive:!0}},{name:"pocket-casts",title:kc("Pocket Casts"),icon:pc,keywords:[(0,pt.__)("podcast"),(0,pt.__)("audio")],description:(0,pt.__)("Embed a podcast player from Pocket Casts."),patterns:[/^https:\/\/pca.st\/\w+/i],attributes:{providerNameSlug:"pocket-casts",responsive:!0}},{name:"reddit",title:kc("Reddit"),icon:ac,description:(0,pt.__)("Embed a Reddit thread."),patterns:[/^https?:\/\/(www\.)?reddit\.com\/.+/i],attributes:{providerNameSlug:"reddit",responsive:!0}},{name:"reverbnation",title:kc("ReverbNation"),icon:Zl,description:(0,pt.__)("Embed ReverbNation content."),patterns:[/^https?:\/\/(www\.)?reverbnation\.com\/.+/i],attributes:{providerNameSlug:"reverbnation",responsive:!0}},{name:"scribd",title:kc("Scribd"),icon:Wl,description:(0,pt.__)("Embed Scribd content."),patterns:[/^https?:\/\/(www\.)?scribd\.com\/.+/i],attributes:{providerNameSlug:"scribd",responsive:!0}},{name:"smugmug",title:kc("SmugMug"),icon:Jl,description:(0,pt.__)("Embed SmugMug content."),patterns:[/^https?:\/\/(.+\.)?smugmug\.com\/.*/i],attributes:{providerNameSlug:"smugmug",previewable:!1,responsive:!0}},{name:"speaker-deck",title:kc("Speaker Deck"),icon:Wl,description:(0,pt.__)("Embed Speaker Deck content."),patterns:[/^https?:\/\/(www\.)?speakerdeck\.com\/.+/i],attributes:{providerNameSlug:"speaker-deck",responsive:!0}},{name:"tiktok",title:kc("TikTok"),icon:Ql,keywords:[(0,pt.__)("video")],description:(0,pt.__)("Embed a TikTok video."),patterns:[/^https?:\/\/(www\.)?tiktok\.com\/.+/i],attributes:{providerNameSlug:"tiktok",responsive:!0}},{name:"ted",title:kc("TED"),icon:Ql,description:(0,pt.__)("Embed a TED video."),patterns:[/^https?:\/\/(www\.|embed\.)?ted\.com\/.+/i],attributes:{providerNameSlug:"ted",responsive:!0}},{name:"tumblr",title:kc("Tumblr"),icon:ic,keywords:[(0,pt.__)("social")],description:(0,pt.__)("Embed a Tumblr post."),patterns:[/^https?:\/\/(.+)\.tumblr\.com\/.+/i],attributes:{providerNameSlug:"tumblr",responsive:!0}},{name:"videopress",title:kc("VideoPress"),icon:Ql,keywords:[(0,pt.__)("video")],description:(0,pt.__)("Embed a VideoPress video."),patterns:[/^https?:\/\/videopress\.com\/.+/i],attributes:{providerNameSlug:"videopress",responsive:!0}},{name:"wordpress-tv",title:kc("WordPress.tv"),icon:Ql,description:(0,pt.__)("Embed a WordPress.tv video."),patterns:[/^https?:\/\/wordpress\.tv\/.+/i],attributes:{providerNameSlug:"wordpress-tv",responsive:!0}},{name:"amazon-kindle",title:kc("Amazon Kindle"),icon:sc,keywords:[(0,pt.__)("ebook")],description:(0,pt.__)("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:kc("Pinterest"),icon:uc,keywords:[(0,pt.__)("social"),(0,pt.__)("bookmark")],description:(0,pt.__)("Embed Pinterest pins, boards, and profiles."),patterns:[/^https?:\/\/([a-z]{2}|www)\.pinterest\.com(\.(au|mx))?\/.*/i],attributes:{providerNameSlug:"pinterest"}},{name:"wolfram-cloud",title:kc("Wolfram"),icon:dc,description:(0,pt.__)("Embed Wolfram notebook content."),patterns:[/^https?:\/\/(www\.)?wolframcloud\.com\/obj\/.+/i],attributes:{providerNameSlug:"wolfram-cloud",responsive:!0}},{name:"bluesky",title:kc("Bluesky"),icon:mc,description:(0,pt.__)("Embed a Bluesky post."),patterns:[/^https?:\/\/bsky\.app\/profile\/.+\/post\/.+/i],attributes:{providerNameSlug:"bluesky"}}];wc.forEach((e=>{e.isActive||(e.isActive=(e,t)=>e.providerNameSlug===t.providerNameSlug)}));var Cc=wc;const{attributes:jc}=yo,Sc={attributes:jc,save({attributes:e}){const{url:t,caption:o,type:n,providerNameSlug:r}=e;if(!t)return null;const a=Dt("wp-block-embed",{[`is-type-${n}`]:n,[`is-provider-${r}`]:r,[`wp-block-embed-${r}`]:r});return(0,it.jsxs)("figure",{...ct.useBlockProps.save({className:a}),children:[(0,it.jsx)("div",{className:"wp-block-embed__wrapper",children:`\n${t}\n`}),!ct.RichText.isEmpty(o)&&(0,it.jsx)(ct.RichText.Content,{tagName:"figcaption",value:o})]})}};var Bc=[Sc,{attributes:jc,save({attributes:{url:e,caption:t,type:o,providerNameSlug:n}}){if(!e)return null;const r=Dt("wp-block-embed",{[`is-type-${o}`]:o,[`is-provider-${n}`]:n});return(0,it.jsxs)("figure",{className:r,children:[`\n${e}\n`,!ct.RichText.isEmpty(t)&&(0,it.jsx)(ct.RichText.Content,{tagName:"figcaption",value:t})]})}}];const{name:Tc}=yo,Nc={icon:Wl,edit:fc,save:function({attributes:e}){const{url:t,caption:o,type:n,providerNameSlug:r}=e;if(!t)return null;const a=Dt("wp-block-embed",{[`is-type-${n}`]:n,[`is-provider-${r}`]:r,[`wp-block-embed-${r}`]:r});return(0,it.jsxs)("figure",{...ct.useBlockProps.save({className:a}),children:[(0,it.jsx)("div",{className:"wp-block-embed__wrapper",children:`\n${t}\n`}),!ct.RichText.isEmpty(o)&&(0,it.jsx)(ct.RichText.Content,{className:(0,ct.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:o})]})},transforms:vc,variations:Cc,deprecated:Bc},Pc=()=>jt({name:Tc,metadata:yo,settings:Nc});var Ic=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12.848 8a1 1 0 0 1-.914-.594l-.723-1.63a.5.5 0 0 0-.447-.276H5a.5.5 0 0 0-.5.5v11.5a.5.5 0 0 0 .5.5h14a.5.5 0 0 0 .5-.5v-9A.5.5 0 0 0 19 8h-6.152Zm.612-1.5a.5.5 0 0 1-.462-.31l-.445-1.084A2 2 0 0 0 10.763 4H5a2 2 0 0 0-2 2v11.5a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-9a2 2 0 0 0-2-2h-5.54Z"})});const Dc={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},save({attributes:e}){const{href:t,fileId:o,fileName:n,textLinkHref:r,textLinkTarget:a,showDownloadButton:i,downloadButtonText:s,displayPreview:l,previewHeight:c}=e,u=ct.RichText.isEmpty(n)?(0,pt.__)("PDF embed"):(0,pt.sprintf)((0,pt.__)("Embed of %s."),n),d=!ct.RichText.isEmpty(n),p=d?o:void 0;return t&&(0,it.jsxs)("div",{...ct.useBlockProps.save(),children:[l&&(0,it.jsx)(it.Fragment,{children:(0,it.jsx)("object",{className:"wp-block-file__embed",data:t,type:"application/pdf",style:{width:"100%",height:`${c}px`},"aria-label":u})}),d&&(0,it.jsx)("a",{id:p,href:r,target:a,rel:a?"noreferrer noopener":void 0,children:(0,it.jsx)(ct.RichText.Content,{value:n})}),i&&(0,it.jsx)("a",{href:t,className:Dt("wp-block-file__button",(0,ct.__experimentalGetElementClassName)("button")),download:!0,"aria-describedby":p,children:(0,it.jsx)(ct.RichText.Content,{value:s})})]})}},Mc={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},save({attributes:e}){const{href:t,fileId:o,fileName:n,textLinkHref:r,textLinkTarget:a,showDownloadButton:i,downloadButtonText:s,displayPreview:l,previewHeight:c}=e,u=ct.RichText.isEmpty(n)?(0,pt.__)("PDF embed"):(0,pt.sprintf)((0,pt.__)("Embed of %s."),n),d=!ct.RichText.isEmpty(n),p=d?o:void 0;return t&&(0,it.jsxs)("div",{...ct.useBlockProps.save(),children:[l&&(0,it.jsx)(it.Fragment,{children:(0,it.jsx)("object",{className:"wp-block-file__embed",data:t,type:"application/pdf",style:{width:"100%",height:`${c}px`},"aria-label":u})}),d&&(0,it.jsx)("a",{id:p,href:r,target:a,rel:a?"noreferrer noopener":void 0,children:(0,it.jsx)(ct.RichText.Content,{value:n})}),i&&(0,it.jsx)("a",{href:t,className:"wp-block-file__button",download:!0,"aria-describedby":p,children:(0,it.jsx)(ct.RichText.Content,{value:s})})]})}},zc={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({attributes:e}){const{href:t,fileName:o,textLinkHref:n,textLinkTarget:r,showDownloadButton:a,downloadButtonText:i,displayPreview:s,previewHeight:l}=e,c=ct.RichText.isEmpty(o)?(0,pt.__)("PDF embed"):(0,pt.sprintf)((0,pt.__)("Embed of %s."),o);return t&&(0,it.jsxs)("div",{...ct.useBlockProps.save(),children:[s&&(0,it.jsx)(it.Fragment,{children:(0,it.jsx)("object",{className:"wp-block-file__embed",data:t,type:"application/pdf",style:{width:"100%",height:`${l}px`},"aria-label":c})}),!ct.RichText.isEmpty(o)&&(0,it.jsx)("a",{href:n,target:r,rel:r?"noreferrer noopener":void 0,children:(0,it.jsx)(ct.RichText.Content,{value:o})}),a&&(0,it.jsx)("a",{href:t,className:"wp-block-file__button",download:!0,children:(0,it.jsx)(ct.RichText.Content,{value:i})})]})}};var Ac=[Dc,Mc,zc];function Lc({hrefs:e,openInNewWindow:t,showDownloadButton:o,changeLinkDestinationOption:n,changeOpenInNewWindow:r,changeShowDownloadButton:a,displayPreview:i,changeDisplayPreview:s,previewHeight:l,changePreviewHeight:c}){const{href:u,textLinkHref:d,attachmentPage:p}=e,m=vt();let g=[{value:u,label:(0,pt.__)("URL")}];return p&&(g=[{value:u,label:(0,pt.__)("Media file")},{value:p,label:(0,pt.__)("Attachment page")}]),(0,it.jsx)(it.Fragment,{children:(0,it.jsxs)(ct.InspectorControls,{children:[u.endsWith(".pdf")&&(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("PDF settings"),resetAll:()=>{s(!0),c(600)},dropdownMenuProps:m,children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Show inline embed"),isShownByDefault:!0,hasValue:()=>!i,onDeselect:()=>s(!0),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Show inline embed"),help:i?(0,pt.__)("Note: Most phone and tablet browsers won't display embedded PDFs."):null,checked:!!i,onChange:s})}),i&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Height in pixels"),isShownByDefault:!0,hasValue:()=>600!==l,onDeselect:()=>c(600),children:(0,it.jsx)(mt.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,pt.__)("Height in pixels"),min:Rc,max:Math.max(Vc,l),value:l,onChange:c})})]}),(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{n(u),r(!1),a(!0)},dropdownMenuProps:m,children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Link to"),isShownByDefault:!0,hasValue:()=>d!==u,onDeselect:()=>n(u),children:(0,it.jsx)(mt.SelectControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("Link to"),value:d,options:g,onChange:n})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>!!t,onDeselect:()=>r(!1),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Open in new tab"),checked:t,onChange:r})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Show download button"),isShownByDefault:!0,hasValue:()=>!o,onDeselect:()=>a(!0),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Show download button"),checked:o,onChange:a})})]})]})})}const Hc=e=>{let t;try{t=new window.ActiveXObject(e)}catch(e){t=void 0}return t},Rc=200,Vc=2e3;function Fc({text:e,disabled:t}){const{createNotice:o}=(0,lt.useDispatch)(bo.store),n=(0,xt.useCopyToClipboard)(e,(()=>{o("info",(0,pt.__)("Copied URL to clipboard."),{isDismissible:!0,type:"snackbar"})}));return(0,it.jsx)(mt.ToolbarButton,{className:"components-clipboard-toolbar-button",ref:n,disabled:t,children:(0,pt.__)("Copy URL")})}var Ec=function({attributes:e,isSelected:t,setAttributes:o,clientId:n}){const{id:r,fileName:a,href:i,textLinkHref:s,textLinkTarget:l,showDownloadButton:c,downloadButtonText:u,displayPreview:d,previewHeight:p}=e,[m,g]=(0,gt.useState)(e.blob),{media:h}=(0,lt.useSelect)((e=>({media:void 0===r?void 0:e(_t.store).getEntityRecord("postType","attachment",r)})),[r]),{createErrorNotice:_}=(0,lt.useDispatch)(bo.store),{toggleSelection:x,__unstableMarkNextChangeAsNotPersistent:b}=(0,lt.useDispatch)(ct.store);function f(t){if(!t||!t.url)return o({href:void 0,fileName:void 0,textLinkHref:void 0,id:void 0,fileId:void 0,displayPreview:void 0,previewHeight:void 0}),void g();if((0,ht.isBlobURL)(t.url))return void g(t.url);const r="application/pdf"===(t.mime||t.mime_type)||(0,no.getFilename)(t.url).toLowerCase().endsWith(".pdf"),a={displayPreview:r?e.displayPreview??!0:void 0,previewHeight:r?e.previewHeight??600:void 0};o({href:t.url,fileName:t.title,textLinkHref:t.url,id:t.id,fileId:`wp-block-file--media-${n}`,blob:void 0,...a}),g()}function y(e){o({href:void 0}),_(e,{type:"snackbar"})}ft({url:m,onChange:f,onError:y}),(0,gt.useEffect)((()=>{ct.RichText.isEmpty(u)&&(b(),o({downloadButtonText:(0,pt._x)("Download","button label")}))}),[]);const v=h&&h.link,k=(0,ct.useBlockProps)({className:Dt(!!m&&(0,mt.__unstableGetAnimateClassName)({type:"loading"}),{"is-transient":!!m})}),w=!(!window.navigator.pdfViewerEnabled&&(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)&&!Hc("AcroPDF.PDF")&&!Hc("PDF.PdfCtrl")))&&d;return i||m?(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(Lc,{hrefs:{href:i||m,textLinkHref:s,attachmentPage:v},openInNewWindow:!!l,showDownloadButton:c,changeLinkDestinationOption:function(e){o({textLinkHref:e})},changeOpenInNewWindow:function(e){o({textLinkTarget:!!e&&"_blank"})},changeShowDownloadButton:function(e){o({showDownloadButton:e})},displayPreview:d,changeDisplayPreview:function(e){o({displayPreview:e})},previewHeight:p,changePreviewHeight:function(e){const t=Math.max(parseInt(e,10),Rc);o({previewHeight:t})}}),(0,it.jsxs)(ct.BlockControls,{group:"other",children:[(0,it.jsx)(ct.MediaReplaceFlow,{mediaId:r,mediaURL:i,accept:"*",onSelect:f,onError:y,onReset:()=>f(void 0)}),(0,it.jsx)(Fc,{text:i,disabled:(0,ht.isBlobURL)(i)})]}),(0,it.jsxs)("div",{...k,children:[w&&(0,it.jsxs)(mt.ResizableBox,{size:{height:p,width:"100%"},minHeight:Rc,maxHeight:Vc,grid:[1,10],enable:{top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},onResizeStart:()=>x(!1),onResizeStop:function(e,t,n,r){x(!0);const a=parseInt(p+r.height,10);o({previewHeight:a})},showHandle:t,children:[(0,it.jsx)("object",{className:"wp-block-file__preview",data:i,type:"application/pdf","aria-label":(0,pt.__)("Embed of the selected PDF file.")}),!t&&(0,it.jsx)("div",{className:"wp-block-file__preview-overlay"})]}),(0,it.jsxs)("div",{className:"wp-block-file__content-wrapper",children:[(0,it.jsx)(ct.RichText,{identifier:"fileName",tagName:"a",value:a,placeholder:(0,pt.__)("Write file name…"),withoutInteractiveFormatting:!0,onChange:e=>o({fileName:pn(e)}),href:s}),c&&(0,it.jsx)("div",{className:"wp-block-file__button-richtext-wrapper",children:(0,it.jsx)(ct.RichText,{identifier:"downloadButtonText",tagName:"div","aria-label":(0,pt.__)("Download button text"),className:Dt("wp-block-file__button",(0,ct.__experimentalGetElementClassName)("button")),value:u,withoutInteractiveFormatting:!0,placeholder:(0,pt.__)("Add text…"),onChange:e=>o({downloadButtonText:pn(e)})})})]})]})]}):(0,it.jsx)("div",{...k,children:(0,it.jsx)(ct.MediaPlaceholder,{icon:(0,it.jsx)(ct.BlockIcon,{icon:Ic}),labels:{title:(0,pt.__)("File"),instructions:(0,pt.__)("Drag and drop a file, upload, or choose from your library.")},onSelect:f,onError:y,accept:"*"})})};const Oc=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"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"},"blob":{"type":"string","role":"local"},"href":{"type":"string","role":"content"},"fileId":{"type":"string","source":"attribute","selector":"a:not([download])","attribute":"id"},"fileName":{"type":"rich-text","source":"rich-text","selector":"a:not([download])","role":"content"},"textLinkHref":{"type":"string","source":"attribute","selector":"a:not([download])","attribute":"href","role":"content"},"textLinkTarget":{"type":"string","source":"attribute","selector":"a:not([download])","attribute":"target"},"showDownloadButton":{"type":"boolean","default":true},"downloadButtonText":{"type":"rich-text","source":"rich-text","selector":"a[download]","role":"content"},"displayPreview":{"type":"boolean"},"previewHeight":{"type":"number","default":600}},"supports":{"anchor":true,"align":true,"spacing":{"margin":true,"padding":true},"color":{"gradients":true,"link":true,"text":false,"__experimentalDefaultControls":{"background":true,"link":true}},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true,"__experimentalDefaultControls":{"radius":true,"color":true,"width":true,"style":true}},"interactivity":true},"editorStyle":"wp-block-file-editor","style":"wp-block-file"}');const Gc={from:[{type:"files",isMatch:e=>e.length>0,priority:15,transform:e=>{const t=[];return e.forEach((e=>{const o=(0,ht.createBlobURL)(e);e.type.startsWith("video/")?t.push((0,st.createBlock)("core/video",{blob:(0,ht.createBlobURL)(e)})):e.type.startsWith("image/")?t.push((0,st.createBlock)("core/image",{blob:(0,ht.createBlobURL)(e)})):e.type.startsWith("audio/")?t.push((0,st.createBlock)("core/audio",{blob:(0,ht.createBlobURL)(e)})):t.push((0,st.createBlock)("core/file",{blob:o,fileName:e.name}))})),t}},{type:"block",blocks:["core/audio"],transform:e=>(0,st.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=>(0,st.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=>(0,st.createBlock)("core/file",{href:e.url,fileName:e.caption||(0,no.getFilename)(e.url),textLinkHref:e.url,id:e.id,anchor:e.anchor})}],to:[{type:"block",blocks:["core/audio"],isMatch:({id:e})=>{if(!e)return!1;const{getEntityRecord:t}=(0,lt.select)(_t.store),o=t("postType","attachment",e);return!!o&&o.mime_type.includes("audio")},transform:e=>(0,st.createBlock)("core/audio",{src:e.href,caption:e.fileName,id:e.id,anchor:e.anchor})},{type:"block",blocks:["core/video"],isMatch:({id:e})=>{if(!e)return!1;const{getEntityRecord:t}=(0,lt.select)(_t.store),o=t("postType","attachment",e);return!!o&&o.mime_type.includes("video")},transform:e=>(0,st.createBlock)("core/video",{src:e.href,caption:e.fileName,id:e.id,anchor:e.anchor})},{type:"block",blocks:["core/image"],isMatch:({id:e})=>{if(!e)return!1;const{getEntityRecord:t}=(0,lt.select)(_t.store),o=t("postType","attachment",e);return!!o&&o.mime_type.includes("image")},transform:e=>(0,st.createBlock)("core/image",{url:e.href,caption:e.fileName,id:e.id,anchor:e.anchor})}]};var $c=Gc;const{name:Uc}=Oc,qc={icon:Ic,example:{attributes:{href:"https://upload.wikimedia.org/wikipedia/commons/d/dd/Armstrong_Small_Step.ogg",fileName:(0,pt._x)("Armstrong_Small_Step","Name of the file")}},transforms:$c,deprecated:Ac,edit:Ec,save:function({attributes:e}){const{href:t,fileId:o,fileName:n,textLinkHref:r,textLinkTarget:a,showDownloadButton:i,downloadButtonText:s,displayPreview:l,previewHeight:c}=e,u=ct.RichText.isEmpty(n)?"PDF embed":n.toString(),d=!ct.RichText.isEmpty(n),p=d?o:void 0;return t&&(0,it.jsxs)("div",{...ct.useBlockProps.save(),children:[l&&(0,it.jsx)(it.Fragment,{children:(0,it.jsx)("object",{className:"wp-block-file__embed",data:t,type:"application/pdf",style:{width:"100%",height:`${c}px`},"aria-label":u})}),d&&(0,it.jsx)("a",{id:p,href:r,target:a,rel:a?"noreferrer noopener":void 0,children:(0,it.jsx)(ct.RichText.Content,{value:n})}),i&&(0,it.jsx)("a",{href:t,className:Dt("wp-block-file__button",(0,ct.__experimentalGetElementClassName)("button")),download:!0,"aria-describedby":p,children:(0,it.jsx)(ct.RichText.Content,{value:s})})]})}},Wc=()=>jt({name:Uc,metadata:Oc,settings:qc}),Zc=["core/form-submission-notification",{type:"success"},[["core/paragraph",{content:'<mark style="background-color:rgba(0, 0, 0, 0);color:#345C00" class="has-inline-color">'+(0,pt.__)("Your form has been submitted successfully")+"</mark>"}]]],Jc=["core/form-submission-notification",{type:"error"},[["core/paragraph",{content:'<mark style="background-color:rgba(0, 0, 0, 0);color:#CF2E2E" class="has-inline-color">'+(0,pt.__)("There was an error submitting your form.")+"</mark>"}]]],Qc=[Zc,Jc,["core/form-input",{type:"text",label:(0,pt.__)("Name"),required:!0}],["core/form-input",{type:"email",label:(0,pt.__)("Email"),required:!0}],["core/form-input",{type:"textarea",label:(0,pt.__)("Comment"),required:!0}],["core/form-submit-button",{}]];var Kc=({attributes:e,setAttributes:t,clientId:o})=>{const n=vt(),{action:r,method:a,email:i,submissionMethod:s}=e,l=(0,ct.useBlockProps)(),{hasInnerBlocks:c}=(0,lt.useSelect)((e=>{const{getBlock:t}=e(ct.store),n=t(o);return{hasInnerBlocks:!(!n||!n.innerBlocks.length)}}),[o]),u=(0,ct.useInnerBlocksProps)(l,{template:Qc,renderAppender:c?void 0:ct.InnerBlocks.ButtonBlockAppender});return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsxs)(mt.__experimentalToolsPanel,{dropdownMenuProps:n,label:(0,pt.__)("Settings"),resetAll:()=>{t({submissionMethod:"email",email:void 0,action:void 0,method:"post"})},children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>"email"!==s,label:(0,pt.__)("Submissions method"),onDeselect:()=>t({submissionMethod:"email"}),isShownByDefault:!0,children:(0,it.jsx)(mt.SelectControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,pt.__)("Submissions method"),options:[{label:(0,pt.__)("Send email"),value:"email"},{label:(0,pt.__)("- Custom -"),value:"custom"}],value:s,onChange:e=>t({submissionMethod:e}),help:"custom"===s?(0,pt.__)('Select the method to use for form submissions. Additional options for the "custom" mode can be found in the "Advanced" section.'):(0,pt.__)("Select the method to use for form submissions.")})}),"email"===s&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!!i,label:(0,pt.__)("Email for form submissions"),onDeselect:()=>t({email:void 0,action:void 0,method:"post"}),isShownByDefault:!0,children:(0,it.jsx)(mt.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,autoComplete:"off",label:(0,pt.__)("Email for form submissions"),value:i||"",required:!0,onChange:e=>{t({email:e}),t({action:`mailto:${e}`}),t({method:"post"})},help:(0,pt.__)("The email address where form submissions will be sent. Separate multiple email addresses with a comma."),type:"email"})})]})}),"email"!==s&&(0,it.jsxs)(ct.InspectorControls,{group:"advanced",children:[(0,it.jsx)(mt.SelectControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("Method"),options:[{label:"Get",value:"get"},{label:"Post",value:"post"}],value:a,onChange:e=>t({method:e}),help:(0,pt.__)("Select the method to use for form submissions.")}),(0,it.jsx)(mt.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,autoComplete:"off",label:(0,pt.__)("Form action"),value:r,onChange:e=>{t({action:e})},help:(0,pt.__)("The URL where the form should be submitted."),type:"url"})]}),(0,it.jsx)("form",{...u,encType:"email"===s?"text/plain":null})]})};const Yc=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"__experimental":true,"name":"core/form","title":"Form","category":"common","allowedBlocks":["core/paragraph","core/heading","core/form-input","core/form-submit-button","core/form-submission-notification","core/group","core/columns"],"description":"A form.","keywords":["container","wrapper","row","section"],"textdomain":"default","icon":"feedback","attributes":{"submissionMethod":{"type":"string","default":"email"},"method":{"type":"string","default":"post"},"action":{"type":"string"},"email":{"type":"string"}},"supports":{"anchor":true,"color":{"gradients":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true,"link":true}},"spacing":{"margin":true,"padding":true},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalTextDecoration":true,"__experimentalFontStyle":true,"__experimentalFontWeight":true,"__experimentalLetterSpacing":true,"__experimentalTextTransform":true,"__experimentalDefaultControls":{"fontSize":true}}}}');const Xc=[{name:"comment-form",title:(0,pt.__)("Experimental Comment form"),description:(0,pt.__)("A comment form for posts and pages."),attributes:{submissionMethod:"custom",action:"{SITE_URL}/wp-comments-post.php",method:"post",anchor:"comment-form"},isDefault:!1,innerBlocks:[["core/form-input",{type:"text",name:"author",label:(0,pt.__)("Name"),required:!0,visibilityPermissions:"logged-out"}],["core/form-input",{type:"email",name:"email",label:(0,pt.__)("Email"),required:!0,visibilityPermissions:"logged-out"}],["core/form-input",{type:"textarea",name:"comment",label:(0,pt.__)("Comment"),required:!0,visibilityPermissions:"all"}],["core/form-submit-button",{}]],scope:["inserter","transform"],isActive:e=>!e?.type||"text"===e?.type},{name:"wp-privacy-form",title:(0,pt.__)("Experimental Privacy Request Form"),keywords:["GDPR"],description:(0,pt.__)("A form to request data exports and/or deletion."),attributes:{submissionMethod:"custom",action:"",method:"post",anchor:"gdpr-form"},isDefault:!1,innerBlocks:[Zc,Jc,["core/paragraph",{content:(0,pt.__)("To request an export or deletion of your personal data on this site, please fill-in the form below. You can define the type of request you wish to perform, and your email address. Once the form is submitted, you will receive a confirmation email with instructions on the next steps.")}],["core/form-input",{type:"email",name:"email",label:(0,pt.__)("Enter your email address."),required:!0,visibilityPermissions:"all"}],["core/form-input",{type:"checkbox",name:"export_personal_data",label:(0,pt.__)("Request data export"),required:!1,visibilityPermissions:"all"}],["core/form-input",{type:"checkbox",name:"remove_personal_data",label:(0,pt.__)("Request data deletion"),required:!1,visibilityPermissions:"all"}],["core/form-submit-button",{}],["core/form-input",{type:"hidden",name:"wp-action",value:"wp_privacy_send_request"}],["core/form-input",{type:"hidden",name:"wp-privacy-request",value:"1"}]],scope:["inserter","transform"],isActive:e=>!e?.type||"text"===e?.type}];var eu=Xc;const tu={supports:{},attributes:{submissionMethod:{type:"string",default:"email"},method:{type:"string",default:"post"},action:{type:"string"},email:{type:"string"},anchor:{type:"string",source:"attribute",attribute:"id",selector:"*"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},style:{type:"object"},fontFamily:{type:"string"},fontSize:{type:"string"}},save({attributes:e}){const{submissionMethod:t}=e,o=(0,ct.__experimentalGetColorClassesAndStyles)(e),n=(0,ct.getTypographyClassesAndStyles)(e),r=(0,ct.__experimentalGetSpacingClassesAndStyles)(e),a=ct.useBlockProps.save({style:{...o.style,...n.style,...r.style},id:e.anchor});return(0,it.jsx)("form",{...a,className:"wp-block-form",encType:"email"===t?"text/plain":null,children:(0,it.jsx)(ct.InnerBlocks.Content,{})})}};var ou=[tu];const{name:nu}=Yc,ru={edit:Kc,save:function({attributes:e}){const t=ct.useBlockProps.save(),{submissionMethod:o}=e;return(0,it.jsx)("form",{...t,encType:"email"===o?"text/plain":null,children:(0,it.jsx)(ct.InnerBlocks.Content,{})})},deprecated:ou,variations:eu,example:{}},au=()=>{const e=["core/form"];return(0,vl.addFilter)("blockEditor.__unstableCanInsertBlockType","core/block-library/preventInsertingFormIntoAnotherForm",((t,o,n,{getBlock:r,getBlockParentsByBlockName:a})=>{if("core/form"!==o.name)return t;for(const t of e){if(r(n)?.name===t||a(n,t).length)return!1}return!0})),jt({name:nu,metadata:Yc,settings:ru})};var iu=r(9681),su=r.n(iu);const lu=window.wp.dom,cu=e=>su()((0,lu.__unstableStripHTML)(e)).replace(/[^\p{L}\p{N}]+/gu,"-").toLowerCase().replace(/(^-+)|(-+$)/g,""),uu={attributes:{type:{type:"string",default:"text"},name:{type:"string"},label:{type:"string",default:"Label",selector:".wp-block-form-input__label-content",source:"html",role:"content"},inlineLabel:{type:"boolean",default:!1},required:{type:"boolean",default:!1,selector:".wp-block-form-input__input",source:"attribute",attribute:"required"},placeholder:{type:"string",selector:".wp-block-form-input__input",source:"attribute",attribute:"placeholder",role:"content"},value:{type:"string",default:"",selector:"input",source:"attribute",attribute:"value"},visibilityPermissions:{type:"string",default:"all"}},supports:{anchor:!0,reusable:!1,spacing:{margin:["top","bottom"]},__experimentalBorder:{radius:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{radius:!0}}},save({attributes:e}){const{type:t,name:o,label:n,inlineLabel:r,required:a,placeholder:i,value:s}=e,l=(0,ct.__experimentalGetBorderClassesAndStyles)(e),c=(0,ct.__experimentalGetColorClassesAndStyles)(e),u={...l.style,...c.style},d=Dt("wp-block-form-input__input",c.className,l.className),p="textarea"===t?"textarea":"input",m=ct.useBlockProps.save();return"hidden"===t?(0,it.jsx)("input",{type:t,name:o,value:s}):(0,it.jsx)("div",{...m,children:(0,it.jsxs)("label",{className:Dt("wp-block-form-input__label",{"is-label-inline":r}),children:[(0,it.jsx)("span",{className:"wp-block-form-input__label-content",children:(0,it.jsx)(ct.RichText.Content,{value:n})}),(0,it.jsx)(p,{className:d,type:"textarea"===t?void 0:t,name:o||cu(n),required:a,"aria-required":a,placeholder:i||void 0,style:u})]})})}},du={attributes:{type:{type:"string",default:"text"},name:{type:"string"},label:{type:"string",default:"Label",selector:".wp-block-form-input__label-content",source:"html",role:"content"},inlineLabel:{type:"boolean",default:!1},required:{type:"boolean",default:!1,selector:".wp-block-form-input__input",source:"attribute",attribute:"required"},placeholder:{type:"string",selector:".wp-block-form-input__input",source:"attribute",attribute:"placeholder",role:"content"},value:{type:"string",default:"",selector:"input",source:"attribute",attribute:"value"},visibilityPermissions:{type:"string",default:"all"}},supports:{className:!1,anchor:!0,reusable:!1,spacing:{margin:["top","bottom"]},__experimentalBorder:{radius:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{radius:!0}}},save({attributes:e}){const{type:t,name:o,label:n,inlineLabel:r,required:a,placeholder:i,value:s}=e,l=(0,ct.__experimentalGetBorderClassesAndStyles)(e),c=(0,ct.__experimentalGetColorClassesAndStyles)(e),u={...l.style,...c.style},d=Dt("wp-block-form-input__input",c.className,l.className),p="textarea"===t?"textarea":"input";return"hidden"===t?(0,it.jsx)("input",{type:t,name:o,value:s}):(0,it.jsxs)("label",{className:Dt("wp-block-form-input__label",{"is-label-inline":r}),children:[(0,it.jsx)("span",{className:"wp-block-form-input__label-content",children:(0,it.jsx)(ct.RichText.Content,{value:n})}),(0,it.jsx)(p,{className:d,type:"textarea"===t?void 0:t,name:o||cu(n),required:a,"aria-required":a,placeholder:i||void 0,style:u})]})}};var pu=[uu,du];var mu=function({attributes:e,setAttributes:t,className:o}){const{type:n,name:r,label:a,inlineLabel:i,required:s,placeholder:l,value:c}=e,u=(0,ct.useBlockProps)(),d=vt(),p=(0,gt.useRef)(),m="textarea"===n?"textarea":"input",g=(0,ct.__experimentalUseBorderProps)(e),h=(0,ct.__experimentalUseColorProps)(e);p.current&&p.current.focus();const _="checkbox"===n||"radio"===n,x=(0,it.jsxs)(it.Fragment,{children:["hidden"!==n&&(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{t({inlineLabel:!1,required:!1})},dropdownMenuProps:d,children:["checkbox"!==n&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Inline label"),hasValue:()=>!!i,onDeselect:()=>t({inlineLabel:!1}),isShownByDefault:!0,children:(0,it.jsx)(mt.CheckboxControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Inline label"),checked:i,onChange:e=>{t({inlineLabel:e})}})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Required"),hasValue:()=>!!s,onDeselect:()=>t({required:!1}),isShownByDefault:!0,children:(0,it.jsx)(mt.CheckboxControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Required"),checked:s,onChange:e=>{t({required:e})}})})]})}),(0,it.jsx)(ct.InspectorControls,{group:"advanced",children:(0,it.jsx)(mt.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,autoComplete:"off",label:(0,pt.__)("Name"),value:r,onChange:e=>{t({name:e})},help:(0,pt.__)('Affects the "name" attribute of the input element, and is used as a name for the form submission results.')})})]}),b=(0,it.jsx)(ct.RichText,{tagName:"span",className:"wp-block-form-input__label-content",value:a,onChange:e=>t({label:e}),"aria-label":a?(0,pt.__)("Label"):(0,pt.__)("Empty label"),"data-empty":!a,placeholder:(0,pt.__)("Type the label for this input")});return"hidden"===n?(0,it.jsxs)(it.Fragment,{children:[x,(0,it.jsx)("input",{type:"hidden",className:Dt(o,"wp-block-form-input__input",h.className,g.className),"aria-label":(0,pt.__)("Value"),value:c,onChange:e=>t({value:e.target.value})})]}):(0,it.jsxs)("div",{...u,children:[x,(0,it.jsxs)("span",{className:Dt("wp-block-form-input__label",{"is-label-inline":i||"checkbox"===n}),children:[!_&&b,(0,it.jsx)(m,{type:"textarea"===n?void 0:n,className:Dt(o,"wp-block-form-input__input",h.className,g.className),"aria-label":(0,pt.__)("Optional placeholder text"),placeholder:l?void 0:(0,pt.__)("Optional placeholder…"),value:l,onChange:e=>t({placeholder:e.target.value}),"aria-required":s,style:{...g.style,...h.style}}),_&&b]})]})};const gu=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"__experimental":true,"name":"core/form-input","title":"Input Field","category":"common","ancestor":["core/form"],"description":"The basic building block for forms.","keywords":["input","form"],"textdomain":"default","icon":"forms","attributes":{"type":{"type":"string","default":"text"},"name":{"type":"string"},"label":{"type":"rich-text","default":"Label","selector":".wp-block-form-input__label-content","source":"rich-text","role":"content"},"inlineLabel":{"type":"boolean","default":false},"required":{"type":"boolean","default":false,"selector":".wp-block-form-input__input","source":"attribute","attribute":"required"},"placeholder":{"type":"string","selector":".wp-block-form-input__input","source":"attribute","attribute":"placeholder","role":"content"},"value":{"type":"string","default":"","selector":"input","source":"attribute","attribute":"value"},"visibilityPermissions":{"type":"string","default":"all"}},"supports":{"anchor":true,"reusable":false,"spacing":{"margin":["top","bottom"]},"__experimentalBorder":{"radius":true,"__experimentalSkipSerialization":true,"__experimentalDefaultControls":{"radius":true}}},"style":["wp-block-form-input"]}');const hu=[{name:"text",title:(0,pt.__)("Text Input"),icon:"edit-page",description:(0,pt.__)("A generic text input."),attributes:{type:"text"},isDefault:!0,scope:["inserter","transform"],isActive:e=>!e?.type||"text"===e?.type},{name:"textarea",title:(0,pt.__)("Textarea Input"),icon:"testimonial",description:(0,pt.__)("A textarea input to allow entering multiple lines of text."),attributes:{type:"textarea"},isDefault:!0,scope:["inserter","transform"],isActive:e=>"textarea"===e?.type},{name:"checkbox",title:(0,pt.__)("Checkbox Input"),description:(0,pt.__)("A simple checkbox input."),icon:"forms",attributes:{type:"checkbox",inlineLabel:!0},isDefault:!0,scope:["inserter","transform"],isActive:e=>"checkbox"===e?.type},{name:"email",title:(0,pt.__)("Email Input"),icon:"email",description:(0,pt.__)("Used for email addresses."),attributes:{type:"email"},isDefault:!0,scope:["inserter","transform"],isActive:e=>"email"===e?.type},{name:"url",title:(0,pt.__)("URL Input"),icon:"admin-site",description:(0,pt.__)("Used for URLs."),attributes:{type:"url"},isDefault:!0,scope:["inserter","transform"],isActive:e=>"url"===e?.type},{name:"tel",title:(0,pt.__)("Telephone Input"),icon:"phone",description:(0,pt.__)("Used for phone numbers."),attributes:{type:"tel"},isDefault:!0,scope:["inserter","transform"],isActive:e=>"tel"===e?.type},{name:"number",title:(0,pt.__)("Number Input"),icon:"edit-page",description:(0,pt.__)("A numeric input."),attributes:{type:"number"},isDefault:!0,scope:["inserter","transform"],isActive:e=>"number"===e?.type}];var _u=hu;const{name:xu}=gu,bu={deprecated:pu,edit:mu,save:function({attributes:e}){const{type:t,name:o,label:n,inlineLabel:r,required:a,placeholder:i,value:s}=e,l=(0,ct.__experimentalGetBorderClassesAndStyles)(e),c=(0,ct.__experimentalGetColorClassesAndStyles)(e),u={...l.style,...c.style},d=Dt("wp-block-form-input__input",c.className,l.className),p="textarea"===t?"textarea":"input",m=ct.useBlockProps.save(),g="checkbox"===t||"radio"===t;return"hidden"===t?(0,it.jsx)("input",{type:t,name:o,value:s}):(0,it.jsx)("div",{...m,children:(0,it.jsxs)("label",{className:Dt("wp-block-form-input__label",{"is-label-inline":r}),children:[!g&&(0,it.jsx)("span",{className:"wp-block-form-input__label-content",children:(0,it.jsx)(ct.RichText.Content,{value:n})}),(0,it.jsx)(p,{className:d,type:"textarea"===t?void 0:t,name:o||(h=n,su()((0,lu.__unstableStripHTML)(h)).replace(/[^\p{L}\p{N}]+/gu,"-").toLowerCase().replace(/(^-+)|(-+$)/g,"")),required:a,"aria-required":a,placeholder:i||void 0,style:u}),g&&(0,it.jsx)("span",{className:"wp-block-form-input__label-content",children:(0,it.jsx)(ct.RichText.Content,{value:n})})]})});var h},variations:_u,example:{}},fu=()=>jt({name:xu,metadata:gu,settings:bu}),yu=[["core/buttons",{},[["core/button",{text:(0,pt.__)("Submit"),tagName:"button",type:"submit"}]]]];var vu=()=>{const e=(0,ct.useBlockProps)(),t=(0,ct.useInnerBlocksProps)(e,{template:yu,templateLock:"all"});return(0,it.jsx)("div",{className:"wp-block-form-submit-wrapper",...t})};const ku=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"__experimental":true,"name":"core/form-submit-button","title":"Form Submit Button","category":"common","icon":"button","ancestor":["core/form"],"allowedBlocks":["core/buttons","core/button"],"description":"A submission button for forms.","keywords":["submit","button","form"],"textdomain":"default","style":["wp-block-form-submit-button"]}');const{name:wu}=ku,Cu={edit:vu,save:function(){const e=ct.useBlockProps.save();return(0,it.jsx)("div",{className:"wp-block-form-submit-wrapper",...e,children:(0,it.jsx)(ct.InnerBlocks.Content,{})})},example:{}},ju=()=>jt({name:wu,metadata:ku,settings:Cu});var Su=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.Path,{d:"M18 4h-7c-1.1 0-2 .9-2 2v3H6c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2v-3h3c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-4.5 14c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-7c0-.3.2-.5.5-.5h3V13c0 1.1.9 2 2 2h2.5v3zm0-4.5H11c-.3 0-.5-.2-.5-.5v-2.5H13c.3 0 .5.2.5.5v2.5zm5-.5c0 .3-.2.5-.5.5h-3V11c0-1.1-.9-2-2-2h-2.5V6c0-.3.2-.5.5-.5h7c.3 0 .5.2.5.5v7z"})});const Bu=[["core/paragraph",{content:(0,pt.__)("Enter the message you wish displayed for form submission error/success, and select the type of the message (success/error) from the block's options.")}]];var Tu=({attributes:e,clientId:t})=>{const{type:o}=e,n=(0,ct.useBlockProps)({className:Dt("wp-block-form-submission-notification",{[`form-notification-type-${o}`]:o})}),{hasInnerBlocks:r}=(0,lt.useSelect)((e=>{const{getBlock:o}=e(ct.store),n=o(t);return{hasInnerBlocks:!(!n||!n.innerBlocks.length)}}),[t]),a=(0,ct.useInnerBlocksProps)(n,{template:Bu,renderAppender:r?void 0:ct.InnerBlocks.ButtonBlockAppender});return(0,it.jsx)("div",{...a,"data-message-success":(0,pt.__)("Submission success notification"),"data-message-error":(0,pt.__)("Submission error notification")})};const Nu=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"__experimental":true,"name":"core/form-submission-notification","title":"Form Submission Notification","category":"common","ancestor":["core/form"],"description":"Provide a notification message after the form has been submitted.","keywords":["form","feedback","notification","message"],"textdomain":"default","icon":"feedback","attributes":{"type":{"type":"string","default":"success"}}}');const Pu=[{name:"form-submission-success",title:(0,pt.__)("Form Submission Success"),description:(0,pt.__)("Success message for form submissions."),attributes:{type:"success"},isDefault:!0,innerBlocks:[["core/paragraph",{content:(0,pt.__)("Your form has been submitted successfully."),backgroundColor:"#00D084",textColor:"#000000",style:{elements:{link:{color:{text:"#000000"}}}}}]],scope:["inserter","transform"],isActive:e=>!e?.type||"success"===e?.type},{name:"form-submission-error",title:(0,pt.__)("Form Submission Error"),description:(0,pt.__)("Error/failure message for form submissions."),attributes:{type:"error"},isDefault:!1,innerBlocks:[["core/paragraph",{content:(0,pt.__)("There was an error submitting your form."),backgroundColor:"#CF2E2E",textColor:"#FFFFFF",style:{elements:{link:{color:{text:"#FFFFFF"}}}}}]],scope:["inserter","transform"],isActive:e=>!e?.type||"error"===e?.type}];var Iu=Pu;const{name:Du}=Nu,Mu={icon:Su,edit:Tu,save:function({attributes:e}){const{type:t}=e;return(0,it.jsx)("div",{...ct.useInnerBlocksProps.save(ct.useBlockProps.save({className:Dt("wp-block-form-submission-notification",{[`form-notification-type-${t}`]:t})}))})},variations:Iu,example:{}},zu=()=>jt({name:Du,metadata:Nu,settings:Mu});var Au=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.Path,{d:"M16.375 4.5H4.625a.125.125 0 0 0-.125.125v8.254l2.859-1.54a.75.75 0 0 1 .68-.016l2.384 1.142 2.89-2.074a.75.75 0 0 1 .874 0l2.313 1.66V4.625a.125.125 0 0 0-.125-.125Zm.125 9.398-2.75-1.975-2.813 2.02a.75.75 0 0 1-.76.067l-2.444-1.17L4.5 14.583v1.792c0 .069.056.125.125.125h11.75a.125.125 0 0 0 .125-.125v-2.477ZM4.625 3C3.728 3 3 3.728 3 4.625v11.75C3 17.273 3.728 18 4.625 18h11.75c.898 0 1.625-.727 1.625-1.625V4.625C18 3.728 17.273 3 16.375 3H4.625ZM20 8v11c0 .69-.31 1-.999 1H6v1.5h13.001c1.52 0 2.499-.982 2.499-2.5V8H20Z",fillRule:"evenodd",clipRule:"evenodd"})});const Lu="none",Hu="media",Ru="lightbox",Vu="attachment",Fu="large",Eu="file",Ou="post";function Gu(e){return Math.min(3,e?.images?.length)}function $u(e,t){switch(t){case Eu:return{href:e?.source_url||e?.url,linkDestination:Hu};case Ou:return{href:e?.link,linkDestination:Vu};case Hu:return{href:e?.source_url||e?.url,linkDestination:Hu};case Vu:return{href:e?.link,linkDestination:Vu};case Lu:return{href:void 0,linkDestination:Lu}}return{}}function Uu(e){let t=e.linkTo?e.linkTo:"none";"post"===t?t="attachment":"file"===t&&(t="media");const o=e.images.map((o=>function(e,t,o){return(0,st.createBlock)("core/image",{...e.id&&{id:parseInt(e.id)},url:e.url,alt:e.alt,caption:e.caption,sizeSlug:t,...$u(e,o)})}(o,e.sizeSlug,t))),{images:n,ids:r,...a}=e;return[{...a,linkTo:t,allowResize:!1},o]}const qu={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}},save({attributes:e}){const{caption:t,columns:o,imageCrop:n}=e,r=Dt("has-nested-images",{[`columns-${o}`]:void 0!==o,"columns-default":void 0===o,"is-cropped":n}),a=ct.useBlockProps.save({className:r}),i=ct.useInnerBlocksProps.save(a);return(0,it.jsxs)("figure",{...i,children:[i.children,!ct.RichText.isEmpty(t)&&(0,it.jsx)(ct.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:t})]})}},Wu={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},fixedHeight:{type:"boolean",default:!0},linkTo:{type:"string"},sizeSlug:{type:"string",default:"large"}},supports:{anchor:!0,align:!0},save({attributes:e}){const{images:t,columns:o=Gu(e),imageCrop:n,caption:r,linkTo:a}=e,i=`columns-${o} ${n?"is-cropped":""}`;return(0,it.jsxs)("figure",{...ct.useBlockProps.save({className:i}),children:[(0,it.jsx)("ul",{className:"blocks-gallery-grid",children:t.map((e=>{let t;switch(a){case Eu:t=e.fullUrl||e.url;break;case Ou:t=e.link}const o=(0,it.jsx)("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(0,it.jsx)("li",{className:"blocks-gallery-item",children:(0,it.jsxs)("figure",{children:[t?(0,it.jsx)("a",{href:t,children:o}):o,!ct.RichText.isEmpty(e.caption)&&(0,it.jsx)(ct.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:e.caption})]})},e.id||e.url)}))}),!ct.RichText.isEmpty(r)&&(0,it.jsx)(ct.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:r})]})},migrate:e=>Uu(e)},Zu={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:({linkTo:e})=>!e||"attachment"===e||"media"===e,migrate:e=>Uu(e),save({attributes:e}){const{images:t,columns:o=Gu(e),imageCrop:n,caption:r,linkTo:a}=e;return(0,it.jsxs)("figure",{className:`columns-${o} ${n?"is-cropped":""}`,children:[(0,it.jsx)("ul",{className:"blocks-gallery-grid",children:t.map((e=>{let t;switch(a){case"media":t=e.fullUrl||e.url;break;case"attachment":t=e.link}const o=(0,it.jsx)("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(0,it.jsx)("li",{className:"blocks-gallery-item",children:(0,it.jsxs)("figure",{children:[t?(0,it.jsx)("a",{href:t,children:o}):o,!ct.RichText.isEmpty(e.caption)&&(0,it.jsx)(ct.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:e.caption})]})},e.id||e.url)}))}),!ct.RichText.isEmpty(r)&&(0,it.jsx)(ct.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:r})]})}},Ju={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:({ids:e})=>e&&e.some((e=>"string"==typeof e)),migrate:e=>Uu(e),save({attributes:e}){const{images:t,columns:o=Gu(e),imageCrop:n,caption:r,linkTo:a}=e;return(0,it.jsxs)("figure",{className:`columns-${o} ${n?"is-cropped":""}`,children:[(0,it.jsx)("ul",{className:"blocks-gallery-grid",children:t.map((e=>{let t;switch(a){case"media":t=e.fullUrl||e.url;break;case"attachment":t=e.link}const o=(0,it.jsx)("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(0,it.jsx)("li",{className:"blocks-gallery-item",children:(0,it.jsxs)("figure",{children:[t?(0,it.jsx)("a",{href:t,children:o}):o,!ct.RichText.isEmpty(e.caption)&&(0,it.jsx)(ct.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:e.caption})]})},e.id||e.url)}))}),!ct.RichText.isEmpty(r)&&(0,it.jsx)(ct.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:r})]})}},Qu={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:"string",source:"html",selector:"figcaption"}}},ids:{type:"array",default:[]},columns:{type:"number"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"}},supports:{align:!0},save({attributes:e}){const{images:t,columns:o=Gu(e),imageCrop:n,linkTo:r}=e;return(0,it.jsx)("ul",{className:`columns-${o} ${n?"is-cropped":""}`,children:t.map((e=>{let t;switch(r){case"media":t=e.fullUrl||e.url;break;case"attachment":t=e.link}const o=(0,it.jsx)("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(0,it.jsx)("li",{className:"blocks-gallery-item",children:(0,it.jsxs)("figure",{children:[t?(0,it.jsx)("a",{href:t,children:o}):o,e.caption&&e.caption.length>0&&(0,it.jsx)(ct.RichText.Content,{tagName:"figcaption",value:e.caption})]})},e.id||e.url)}))})},migrate:e=>Uu(e)},Ku={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:"string",source:"html",selector:"figcaption"}}},columns:{type:"number"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"}},isEligible:({images:e,ids:t})=>e&&e.length>0&&(!t&&e||t&&e&&t.length!==e.length||e.some(((e,o)=>!e&&null!==t[o]||parseInt(e,10)!==t[o]))),migrate:e=>Uu(e),supports:{align:!0},save({attributes:e}){const{images:t,columns:o=Gu(e),imageCrop:n,linkTo:r}=e;return(0,it.jsx)("ul",{className:`columns-${o} ${n?"is-cropped":""}`,children:t.map((e=>{let t;switch(r){case"media":t=e.url;break;case"attachment":t=e.link}const o=(0,it.jsx)("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-link":e.link,className:e.id?`wp-image-${e.id}`:null});return(0,it.jsx)("li",{className:"blocks-gallery-item",children:(0,it.jsxs)("figure",{children:[t?(0,it.jsx)("a",{href:t,children:o}):o,e.caption&&e.caption.length>0&&(0,it.jsx)(ct.RichText.Content,{tagName:"figcaption",value:e.caption})]})},e.id||e.url)}))})}},Yu={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({attributes:e}){const{images:t,columns:o=Gu(e),align:n,imageCrop:r,linkTo:a}=e,i=Dt(`columns-${o}`,{alignnone:"none"===n,"is-cropped":r});return(0,it.jsx)("div",{className:i,children:t.map((e=>{let t;switch(a){case"media":t=e.url;break;case"attachment":t=e.link}const o=(0,it.jsx)("img",{src:e.url,alt:e.alt,"data-id":e.id});return(0,it.jsx)("figure",{className:"blocks-gallery-image",children:t?(0,it.jsx)("a",{href:t,children:o}):o},e.id||e.url)}))})},migrate:e=>Uu(e)};var Xu=[qu,Wu,Zu,Ju,Qu,Ku,Yu],ed=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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"})}),td=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.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"})});const od=(0,it.jsx)(ct.BlockIcon,{icon:Au});function nd(e){return e?Math.min(3,e):3}const rd=(e,t="large")=>{const o=Object.fromEntries(Object.entries(e??{}).filter((([e])=>["alt","id","link"].includes(e))));o.url=e?.sizes?.[t]?.url||e?.media_details?.sizes?.[t]?.source_url||e?.url||e?.source_url;const n=e?.sizes?.full?.url||e?.media_details?.sizes?.full?.source_url;return n&&(o.fullUrl=n),o},ad=20,id="none",sd="media",ld="attachment",cd="custom",ud=["noreferrer","noopener"],dd=["image"],pd=["flex","grid"],md="full";function gd(e,t,o,n,r){switch(o||t){case"file":case Hu:return{href:e?.source_url||e?.url,linkDestination:sd,lightbox:r?.enabled?{...n?.lightbox,enabled:!1}:void 0};case"post":case Vu:return{href:e?.link,linkDestination:ld,lightbox:r?.enabled?{...n?.lightbox,enabled:!1}:void 0};case Ru:return{href:void 0,lightbox:r?.enabled?void 0:{...n?.lightbox,enabled:!0},linkDestination:id};case Lu:return{href:void 0,linkDestination:id,lightbox:void 0}}return{}}function hd(e,{rel:t}){const o=e?"_blank":void 0;let n;return n=o||t?function(e){let t=e;return void 0!==e&&t&&(ud.forEach((e=>{const o=new RegExp("\\b"+e+"\\b","gi");t=t.replace(o,"")})),t!==e&&(t=t.trim()),t||(t=void 0)),t}(t):void 0,{linkTarget:o,rel:n}}function _d(e){return dd.some((t=>0===e.type.indexOf(t)))}function xd(e){const{attributes:t,isSelected:o,setAttributes:n,mediaPlaceholder:r,insertBlocksAfter:a,blockProps:i,__unstableLayoutClassNames:s,isContentLocked:l,multiGallerySelection:c}=e,{align:u,columns:d,imageCrop:p}=t;return(0,it.jsxs)("figure",{...i,className:Dt(i.className,s,"blocks-gallery-grid",{[`align${u}`]:u,[`columns-${d}`]:void 0!==d,"columns-default":void 0===d,"is-cropped":p}),children:[i.children,o&&!i.children&&(0,it.jsx)(St.View,{className:"blocks-gallery-media-placeholder-wrapper",children:r}),(0,it.jsx)(zo,{attributes:t,setAttributes:n,isSelected:o,insertBlocksAfter:a,showToolbarButton:!c&&!l,className:"blocks-gallery-caption",label:(0,pt.__)("Gallery caption text"),placeholder:(0,pt.__)("Add gallery caption")})]})}function bd(e,t,o){return(0,gt.useMemo)((()=>function(){if(!e||0===e.length)return;const{imageSizes:n}=o();let r={};t&&(r=e.reduce(((e,t)=>{if(!t.id)return e;const o=n.reduce(((e,o)=>{const n=t.sizes?.[o.slug]?.url,r=t.media_details?.sizes?.[o.slug]?.source_url;return{...e,[o.slug]:n||r}}),{});return{...e,[parseInt(t.id,10)]:o}}),{}));const a=Object.values(r);return n.filter((({slug:e})=>a.some((t=>t[e])))).map((({name:e,slug:t})=>({value:t,label:e})))}()),[e,t])}function fd(e,t){const[o,n]=(0,gt.useState)([]);return(0,gt.useMemo)((()=>function(){let r=!1;const a=o.filter((t=>e.find((e=>t.clientId===e.clientId))));a.length<o.length&&(r=!0);e.forEach((e=>{e.fromSavedContent&&!a.find((t=>t.id===e.id))&&(r=!0,a.push(e))}));const i=e.filter((e=>!a.find((t=>e.clientId&&t.clientId===e.clientId))&&t?.find((t=>t.id===e.id))&&!e.fromSavedContent));(r||i?.length>0)&&n([...a,...i]);return i.length>0?i:null}()),[e,t])}const yd=[];function vd({blockGap:e,clientId:t}){const o="var( --wp--style--gallery-gap-default, var( --gallery-block--gutter-size, var( --wp--style--block-gap, 0.5em ) ) )";let n,r=o,a=o;e&&(n="string"==typeof e?(0,ct.__experimentalGetGapCSSValue)(e):(0,ct.__experimentalGetGapCSSValue)(e?.top)||o,a="string"==typeof e?(0,ct.__experimentalGetGapCSSValue)(e):(0,ct.__experimentalGetGapCSSValue)(e?.left)||o,r=n===a?n:`${n} ${a}`);const i=`#block-${t} {\n\t\t--wp--style--unstable-gallery-gap: ${"0"===a?"0px":a};\n\t\tgap: ${r}\n\t}`;return(0,ct.useStyleOverride)({css:i}),null}const kd=[{icon:ed,label:(0,pt.__)("Link images to attachment pages"),value:Vu,noticeText:(0,pt.__)("Attachment Pages")},{icon:td,label:(0,pt.__)("Link images to media files"),value:Hu,noticeText:(0,pt.__)("Media Files")},{icon:tr,label:(0,pt.__)("Enlarge on click"),value:Ru,noticeText:(0,pt.__)("Lightbox effect"),infoText:(0,pt.__)("Scale images with a lightbox effect")},{icon:hn,label:(0,pt._x)("None","Media item link option"),value:Lu,noticeText:(0,pt.__)("None")}],wd=["image"],Cd=gt.Platform.isNative?(0,pt.__)("Add media"):(0,pt.__)("Drag and drop images, upload, or choose from your library."),jd=gt.Platform.isNative?{type:"stepper"}:{},Sd={name:"core/image"},Bd=[];const Td=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/gallery","title":"Gallery","category":"media","allowedBlocks":["core/image"],"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":"rich-text","source":"rich-text","selector":".blocks-gallery-item__caption"}}},"ids":{"type":"array","items":{"type":"number"},"default":[]},"shortCodeTransforms":{"type":"array","items":{"type":"object"},"default":[]},"columns":{"type":"number","minimum":1,"maximum":8},"caption":{"type":"rich-text","source":"rich-text","selector":".blocks-gallery-caption","role":"content"},"imageCrop":{"type":"boolean","default":true},"randomOrder":{"type":"boolean","default":false},"fixedHeight":{"type":"boolean","default":true},"linkTarget":{"type":"string"},"linkTo":{"type":"string"},"sizeSlug":{"type":"string","default":"large"},"allowResize":{"type":"boolean","default":false},"aspectRatio":{"type":"string","default":"auto"}},"providesContext":{"allowResize":"allowResize","imageCrop":"imageCrop","fixedHeight":"fixedHeight"},"supports":{"anchor":true,"align":true,"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true,"__experimentalDefaultControls":{"color":true,"radius":true}},"html":false,"units":["px","em","rem","vh","vw"],"spacing":{"margin":true,"padding":true,"blockGap":["horizontal","vertical"],"__experimentalSkipSerialization":["blockGap"],"__experimentalDefaultControls":{"blockGap":true,"margin":false,"padding":false}},"color":{"text":false,"background":true,"gradients":true},"layout":{"allowSwitching":false,"allowInheriting":false,"allowEditing":false,"default":{"type":"flex"}},"interactivity":{"clientNavigation":true}},"editorStyle":"wp-block-gallery-editor","style":"wp-block-gallery"}');(0,vl.addFilter)("blocks.switchToBlockType.transformedBlock","core/gallery/update-third-party-transform-to",(function(e){if("core/gallery"===e.name&&e.attributes?.images.length>0){const t=e.attributes.images.map((({url:t,id:o,alt:n})=>(0,st.createBlock)("core/image",{url:t,id:o?parseInt(o,10):null,alt:n,sizeSlug:e.attributes.sizeSlug,linkDestination:e.attributes.linkDestination})));delete e.attributes.ids,delete e.attributes.images,e.innerBlocks=t}return e})),(0,vl.addFilter)("blocks.switchToBlockType.transformedBlock","core/gallery/update-third-party-transform-from",(function(e,t){const o=(Array.isArray(t)?t:[t]).find((t=>"core/gallery"===t.name&&t.innerBlocks.length>0&&!t.attributes.images?.length>0&&!e.name.includes("core/")));if(o){const e=o.innerBlocks.map((({attributes:{url:e,id:t,alt:o}})=>({url:e,id:t?parseInt(t,10):null,alt:o}))),t=e.map((({id:e})=>e));o.attributes.images=e,o.attributes.ids=t}return e}));const Nd={from:[{type:"block",isMultiBlock:!0,blocks:["core/image"],transform:e=>{let{align:t,sizeSlug:o}=e[0];t=e.every((e=>e.align===t))?t:void 0,o=e.every((e=>e.sizeSlug===o))?o:void 0;const n=e.filter((({url:e})=>e)).map((e=>(e.width=void 0,e.height=void 0,(0,st.createBlock)("core/image",e))));return(0,st.createBlock)("core/gallery",{align:t,sizeSlug:o},n)}},{type:"shortcode",tag:"gallery",transform({named:{ids:e,columns:t=3,link:o,orderby:n}}){const r=(e=>e?e.split(",").map((e=>parseInt(e,10))):[])(e).map((e=>parseInt(e,10)));let a=Lu;"post"===o?a=Vu:"file"===o&&(a=Hu);return(0,st.createBlock)("core/gallery",{columns:parseInt(t,10),linkTo:a,randomOrder:"rand"===n},r.map((e=>(0,st.createBlock)("core/image",{id:e}))))},isMatch:({named:e})=>void 0!==e.ids},{type:"files",priority:1,isMatch:e=>1!==e.length&&e.every((e=>0===e.type.indexOf("image/"))),transform(e){const t=e.map((e=>(0,st.createBlock)("core/image",{blob:(0,ht.createBlobURL)(e)})));return(0,st.createBlock)("core/gallery",{},t)}}],to:[{type:"block",blocks:["core/image"],transform:({align:e},t)=>t.length>0?t.map((({attributes:{url:t,alt:o,caption:n,title:r,href:a,rel:i,linkClass:s,id:l,sizeSlug:c,linkDestination:u,linkTarget:d,anchor:p,className:m}})=>(0,st.createBlock)("core/image",{align:e,url:t,alt:o,caption:n,title:r,href:a,rel:i,linkClass:s,id:l,sizeSlug:c,linkDestination:u,linkTarget:d,anchor:p,className:m}))):(0,st.createBlock)("core/image",{align:e})}]};var Pd=Nd;const{name:Id}=Td,Dd={icon:Au,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:Pd,edit:function(e){const{setAttributes:t,attributes:o,className:n,clientId:r,isSelected:a,insertBlocksAfter:i,isContentLocked:s,onFocus:l}=e,[c,u,d,p]=(0,ct.useSettings)("blocks.core/image.lightbox","dimensions.aspectRatios.default","dimensions.aspectRatios.theme","dimensions.defaultAspectRatios"),m=c?.allowEditing?kd:kd.filter((e=>e.value!==Ru)),{columns:g,imageCrop:h,randomOrder:_,linkTarget:x,linkTo:b,sizeSlug:f,aspectRatio:y}=o,{__unstableMarkNextChangeAsNotPersistent:v,replaceInnerBlocks:k,updateBlockAttributes:w,selectBlock:C}=(0,lt.useDispatch)(ct.store),{createSuccessNotice:j,createErrorNotice:S}=(0,lt.useDispatch)(bo.store),{getBlock:B,getSettings:T,innerBlockImages:N,blockWasJustInserted:P,multiGallerySelection:I}=(0,lt.useSelect)((e=>{const{getBlockName:t,getMultiSelectedBlockClientIds:o,getSettings:n,getBlock:a,wasBlockJustInserted:i}=e(ct.store),s=o();return{getBlock:a,getSettings:n,innerBlockImages:a(r)?.innerBlocks??Bd,blockWasJustInserted:i(r,"inserter_menu"),multiGallerySelection:s.length&&s.every((e=>"core/gallery"===t(e)))}}),[r]),D=(0,gt.useMemo)((()=>N?.map((e=>({clientId:e.clientId,id:e.attributes.id,url:e.attributes.url,attributes:e.attributes,fromSavedContent:Boolean(e.originalContent)})))),[N]),M=function(e){return(0,lt.useSelect)((t=>{const o=e.map((e=>e.attributes.id)).filter((e=>void 0!==e));return 0===o.length?yd:t(_t.store).getEntityRecords("postType","attachment",{include:o.join(","),per_page:-1,orderby:"include"})??yd}),[e])}(N),z=fd(D,M),A=d?.map((({name:e,ratio:t})=>({label:e,value:t}))),L=u?.map((({name:e,ratio:t})=>({label:e,value:t}))),H=[{label:(0,pt._x)("Original","Aspect ratio option for dimensions control"),value:"auto"},...p&&L||[],...A||[]];(0,gt.useEffect)((()=>{z?.forEach((e=>{v(),w(e.clientId,{...V(e.attributes),id:e.id,align:void 0})}))}),[z]);const R=bd(M,a,T);function V(e){const t=e.id?M.find((({id:t})=>t===e.id)):null;let n,r;return e.className&&""!==e.className&&(n=e.className),r=e.linkTarget||e.rel?{linkTarget:e.linkTarget,rel:e.rel}:hd(x,o),{...rd(t,f),...gd(t,b,e?.linkDestination),...r,className:n,sizeSlug:f,caption:e.caption||t.caption?.raw,alt:e.alt||t.alt_text,aspectRatio:"auto"===y?void 0:y}}function F(e){const t=gt.Platform.isNative&&e.id?M.find((({id:t})=>t===e.id)):null,o=t?t?.media_type:e.type;return wd.some((e=>0===o?.indexOf(e)))||e.blob}function E(e){const t="[object FileList]"===Object.prototype.toString.call(e),o=t?Array.from(e).map((e=>e.url?e:{blob:(0,ht.createBlobURL)(e)})):e;o.every(F)||S((0,pt.__)("If uploading to a gallery all files need to be image formats"),{id:"gallery-upload-invalid-file",type:"snackbar"});const n=o.filter((e=>e.url||F(e))).map((e=>e.url?e:{blob:e.blob||(0,ht.createBlobURL)(e)})),a=n.reduce(((e,t,o)=>(e[t.id]=o,e)),{}),i=t?N:N.filter((e=>n.find((t=>t.id===e.attributes.id)))),s=n.filter((e=>!i.find((t=>e.id===t.attributes.id)))).map((e=>(0,st.createBlock)("core/image",{id:e.id,blob:e.blob,url:e.url,caption:e.caption,alt:e.alt})));k(r,i.concat(s).sort(((e,t)=>a[e.attributes.id]-a[t.attributes.id]))),s?.length>0&&C(s[0].clientId)}function O(e){t({linkTo:e});const o={},n=[];B(r).innerBlocks.forEach((t=>{n.push(t.clientId);const r=t.attributes.id?M.find((({id:e})=>e===t.attributes.id)):null;o[t.clientId]=gd(r,e,!1,t.attributes,c)})),w(n,o,{uniqueByBlock:!0});const a=[...m].find((t=>t.value===e));j((0,pt.sprintf)((0,pt.__)("All gallery image links updated to: %s"),a.noticeText),{id:"gallery-attributes-linkTo",type:"snackbar"})}function G(e){t({columns:e})}function $(){t({imageCrop:!h})}function U(){t({randomOrder:!_})}function q(e){const o=e?"_blank":void 0;t({linkTarget:o});const n={},a=[];B(r).innerBlocks.forEach((e=>{a.push(e.clientId),n[e.clientId]=hd(o,e.attributes)})),w(a,n,{uniqueByBlock:!0});const i=e?(0,pt.__)("All gallery images updated to open in new tab"):(0,pt.__)("All gallery images updated to not open in new tab");j(i,{id:"gallery-attributes-openInNewTab",type:"snackbar"})}function W(e){t({sizeSlug:e});const o={},n=[];B(r).innerBlocks.forEach((t=>{n.push(t.clientId);const r=t.attributes.id?M.find((({id:e})=>e===t.attributes.id)):null;o[t.clientId]=function(e,t){const o=e?.media_details?.sizes?.[t]?.source_url;return o?{url:o,width:void 0,height:void 0,sizeSlug:t}:{}}(r,e)})),w(n,o,{uniqueByBlock:!0});const a=R.find((t=>t.value===e));j((0,pt.sprintf)((0,pt.__)("All gallery image sizes updated to: %s"),a?.label??e),{id:"gallery-attributes-sizeSlug",type:"snackbar"})}function Z(e){t({aspectRatio:e});const o={},n=[];B(r).innerBlocks.forEach((t=>{n.push(t.clientId),o[t.clientId]={aspectRatio:"auto"===e?void 0:e}})),w(n,o,!0);const a=H.find((t=>t.value===e));j((0,pt.sprintf)((0,pt.__)("All gallery images updated to aspect ratio: %s"),a?.label||e),{id:"gallery-attributes-aspectRatio",type:"snackbar"})}(0,gt.useEffect)((()=>{b||(v(),t({linkTo:window?.wp?.media?.view?.settings?.defaultProps?.link||Lu}))}),[b]);const J=!!D.length,Q=J&&D.some((e=>!!e.id)),K=D.some((e=>gt.Platform.isNative?0===e.url?.indexOf("file:"):!e.id&&0===e.url?.indexOf("blob:"))),Y=gt.Platform.select({web:{addToGallery:!1,disableMediaButtons:K,value:{}},native:{addToGallery:Q,isAppender:J,disableMediaButtons:J&&!a||K,value:Q?D:{},autoOpenMediaUpload:!J&&a&&P,onFocus:l}}),X=(0,it.jsx)(ct.MediaPlaceholder,{handleUpload:!1,icon:od,labels:{title:(0,pt.__)("Gallery"),instructions:Cd},onSelect:E,accept:"image/*",allowedTypes:wd,multiple:!0,onError:function(e){S(e,{type:"snackbar"})},...Y}),ee=(0,ct.useBlockProps)({className:Dt(n,"has-nested-images")}),te=gt.Platform.isNative&&{marginHorizontal:0,marginVertical:0},oe=(0,ct.useInnerBlocksProps)(ee,{defaultBlock:Sd,directInsert:!0,orientation:"horizontal",renderAppender:!1,...te}),ne=vt();if(!J)return(0,it.jsxs)(St.View,{...oe,children:[oe.children,X]});const re=b&&"none"!==b;return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsxs)(ct.InspectorControls,{children:[gt.Platform.isWeb&&(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{t({columns:void 0,imageCrop:!0,randomOrder:!1}),Z("auto"),f!==Fu&&W(Fu),x&&q(!1)},dropdownMenuProps:ne,children:[D.length>1&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,pt.__)("Columns"),hasValue:()=>!!g&&g!==D.length,onDeselect:()=>G(void 0),children:(0,it.jsx)(mt.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Columns"),value:g||nd(D.length),onChange:G,min:1,max:Math.min(8,D.length),required:!0,__next40pxDefaultSize:!0})}),R?.length>0&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,pt.__)("Resolution"),hasValue:()=>f!==Fu,onDeselect:()=>W(Fu),children:(0,it.jsx)(mt.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Resolution"),help:(0,pt.__)("Select the size of the source images."),value:f,options:R,onChange:W,hideCancelButton:!0,size:"__unstable-large"})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,pt.__)("Crop images to fit"),hasValue:()=>!h,onDeselect:()=>t({imageCrop:!0}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Crop images to fit"),checked:!!h,onChange:$})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,pt.__)("Randomize order"),hasValue:()=>!!_,onDeselect:()=>t({randomOrder:!1}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Randomize order"),checked:!!_,onChange:U})}),re&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,pt.__)("Open images in new tab"),hasValue:()=>!!x,onDeselect:()=>q(!1),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Open images in new tab"),checked:"_blank"===x,onChange:q})}),H.length>1&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!!y&&"auto"!==y,label:(0,pt.__)("Aspect ratio"),onDeselect:()=>Z("auto"),isShownByDefault:!0,children:(0,it.jsx)(mt.SelectControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("Aspect ratio"),help:(0,pt.__)("Set a consistent aspect ratio for all images in the gallery."),value:y,options:H,onChange:Z})})]}),gt.Platform.isNative&&(0,it.jsxs)(mt.PanelBody,{title:(0,pt.__)("Settings"),children:[D.length>1&&(0,it.jsx)(mt.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Columns"),value:g||nd(D.length),onChange:G,min:1,max:Math.min(8,D.length),...jd,required:!0,__next40pxDefaultSize:!0}),R?.length>0&&(0,it.jsx)(mt.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Resolution"),help:(0,pt.__)("Select the size of the source images."),value:f,options:R,onChange:W,hideCancelButton:!0,size:"__unstable-large"}),(0,it.jsx)(mt.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Link"),value:b,onChange:O,options:m,hideCancelButton:!0,size:"__unstable-large"}),(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Crop images to fit"),checked:!!h,onChange:$}),(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Randomize order"),checked:!!_,onChange:U}),re&&(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Open images in new tab"),checked:"_blank"===x,onChange:q}),H.length>1&&(0,it.jsx)(mt.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Aspect Ratio"),help:(0,pt.__)("Set a consistent aspect ratio for all images in the gallery."),value:y,options:H,onChange:Z,hideCancelButton:!0,size:"__unstable-large"})]})]}),gt.Platform.isWeb?(0,it.jsx)(ct.BlockControls,{group:"block",children:(0,it.jsx)(mt.ToolbarDropdownMenu,{icon:gn,label:(0,pt.__)("Link"),children:({onClose:e})=>(0,it.jsx)(mt.MenuGroup,{children:m.map((t=>{const o=b===t.value;return(0,it.jsx)(mt.MenuItem,{isSelected:o,className:Dt("components-dropdown-menu__menu-item",{"is-active":o}),iconPosition:"left",icon:t.icon,onClick:()=>{O(t.value),e()},role:"menuitemradio",info:t.infoText,children:t.label},t.value)}))})})}):null,gt.Platform.isWeb&&(0,it.jsxs)(it.Fragment,{children:[!I&&(0,it.jsx)(ct.BlockControls,{group:"other",children:(0,it.jsx)(ct.MediaReplaceFlow,{allowedTypes:wd,accept:"image/*",handleUpload:!1,onSelect:E,name:(0,pt.__)("Add"),multiple:!0,mediaIds:D.filter((e=>e.id)).map((e=>e.id)),addToGallery:Q})}),(0,it.jsx)(vd,{blockGap:o.style?.spacing?.blockGap,clientId:r})]}),(0,it.jsx)(xd,{...e,isContentLocked:s,images:D,mediaPlaceholder:!J||gt.Platform.isNative?X:void 0,blockProps:oe,insertBlocksAfter:i,multiGallerySelection:I})]})},save:function({attributes:e}){const{caption:t,columns:o,imageCrop:n}=e,r=Dt("has-nested-images",{[`columns-${o}`]:void 0!==o,"columns-default":void 0===o,"is-cropped":n}),a=ct.useBlockProps.save({className:r}),i=ct.useInnerBlocksProps.save(a);return(0,it.jsxs)("figure",{...i,children:[i.children,!ct.RichText.isEmpty(t)&&(0,it.jsx)(ct.RichText.Content,{tagName:"figcaption",className:Dt("blocks-gallery-caption",(0,ct.__experimentalGetElementClassName)("caption")),value:t})]})},deprecated:Xu},Md=()=>jt({name:Id,metadata:Td,settings:Dd}),zd=e=>{if(e.tagName||(e={...e,tagName:"div"}),!e.customTextColor&&!e.customBackgroundColor)return e;const t={color:{}};e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor);const{customTextColor:o,customBackgroundColor:n,...r}=e;return{...r,style:t}},Ad=[{attributes:{tagName:{type:"string",default:"div"},templateLock:{type:["string","boolean"],enum:["all","insert",!1]}},supports:{__experimentalOnEnter:!0,__experimentalSettings:!0,align:["wide","full"],anchor:!0,ariaLabel:!0,html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:["top","bottom"],padding:!0,blockGap:!0,__experimentalDefaultControls:{padding:!0,blockGap:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}},layout:!0},save:({attributes:{tagName:e}})=>(0,it.jsx)(e,{...ct.useInnerBlocksProps.save(ct.useBlockProps.save())}),isEligible:({layout:e})=>e?.inherit||e?.contentSize&&"constrained"!==e?.type,migrate:e=>{const{layout:t=null}=e;if(t?.inherit||t?.contentSize)return{...e,layout:{...t,type:"constrained"}}}},{attributes:{tagName:{type:"string",default:"div"},templateLock:{type:["string","boolean"],enum:["all","insert",!1]}},supports:{align:["wide","full"],anchor:!0,color:{gradients:!0,link:!0},spacing:{padding:!0},__experimentalBorder:{radius:!0}},save({attributes:e}){const{tagName:t}=e;return(0,it.jsx)(t,{...ct.useBlockProps.save(),children:(0,it.jsx)("div",{className:"wp-block-group__inner-container",children:(0,it.jsx)(ct.InnerBlocks.Content,{})})})}},{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1},migrate:zd,save({attributes:e}){const{backgroundColor:t,customBackgroundColor:o,textColor:n,customTextColor:r}=e,a=(0,ct.getColorClassName)("background-color",t),i=(0,ct.getColorClassName)("color",n),s=Dt(a,i,{"has-text-color":n||r,"has-background":t||o}),l={backgroundColor:a?void 0:o,color:i?void 0:r};return(0,it.jsx)("div",{className:s,style:l,children:(0,it.jsx)("div",{className:"wp-block-group__inner-container",children:(0,it.jsx)(ct.InnerBlocks.Content,{})})})}},{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}},migrate:zd,supports:{align:["wide","full"],anchor:!0,html:!1},save({attributes:e}){const{backgroundColor:t,customBackgroundColor:o,textColor:n,customTextColor:r}=e,a=(0,ct.getColorClassName)("background-color",t),i=(0,ct.getColorClassName)("color",n),s=Dt(a,{"has-text-color":n||r,"has-background":t||o}),l={backgroundColor:a?void 0:o,color:i?void 0:r};return(0,it.jsx)("div",{className:s,style:l,children:(0,it.jsx)("div",{className:"wp-block-group__inner-container",children:(0,it.jsx)(ct.InnerBlocks.Content,{})})})}},{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1},migrate:zd,save({attributes:e}){const{backgroundColor:t,customBackgroundColor:o}=e,n=(0,ct.getColorClassName)("background-color",t),r=Dt(n,{"has-background":t||o}),a={backgroundColor:n?void 0:o};return(0,it.jsx)("div",{className:r,style:a,children:(0,it.jsx)(ct.InnerBlocks.Content,{})})}}];var Ld=Ad;const Hd=(e="group")=>{const t={group:(0,it.jsx)(mt.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,it.jsx)(mt.Path,{d:"M0 10a2 2 0 0 1 2-2h44a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V10Z"})}),"group-row":(0,it.jsx)(mt.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,it.jsx)(mt.Path,{d:"M0 10a2 2 0 0 1 2-2h19a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V10Zm25 0a2 2 0 0 1 2-2h19a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H27a2 2 0 0 1-2-2V10Z"})}),"group-stack":(0,it.jsx)(mt.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,it.jsx)(mt.Path,{d:"M0 10a2 2 0 0 1 2-2h44a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V10Zm0 17a2 2 0 0 1 2-2h44a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V27Z"})}),"group-grid":(0,it.jsx)(mt.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,it.jsx)(mt.Path,{d:"M0 10a2 2 0 0 1 2-2h19a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V10Zm25 0a2 2 0 0 1 2-2h19a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H27a2 2 0 0 1-2-2V10ZM0 27a2 2 0 0 1 2-2h19a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V27Zm25 0a2 2 0 0 1 2-2h19a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H27a2 2 0 0 1-2-2V27Z"})})};return t?.[e]};var Rd=function({name:e,onSelect:t}){const o=(0,lt.useSelect)((t=>t(st.store).getBlockVariations(e,"block")),[e]),n=(0,ct.useBlockProps)({className:"wp-block-group__placeholder"});return(0,gt.useEffect)((()=>{o&&1===o.length&&t(o[0])}),[t,o]),(0,it.jsx)("div",{...n,children:(0,it.jsx)(mt.Placeholder,{instructions:(0,pt.__)("Group blocks together. Select a layout:"),children:(0,it.jsx)("ul",{role:"list",className:"wp-block-group-placeholder__variations","aria-label":(0,pt.__)("Block variations"),children:o.map((e=>(0,it.jsx)("li",{children:(0,it.jsx)(mt.Button,{__next40pxDefaultSize:!0,variant:"tertiary",icon:Hd(e.name),iconSize:48,onClick:()=>t(e),className:"wp-block-group-placeholder__variation-button",label:`${e.title}: ${e.description}`})},e.name)))})})})};const{HTMLElementControl:Vd}=jo(ct.privateApis);function Fd({tagName:e,onSelectTagName:t,clientId:o}){return(0,it.jsx)(ct.InspectorControls,{group:"advanced",children:(0,it.jsx)(Vd,{tagName:e,onChange:t,clientId:o,options:[{label:(0,pt.__)("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"}]})})}var Ed=function({attributes:e,name:t,setAttributes:o,clientId:n}){const{hasInnerBlocks:r,themeSupportsLayout:a}=(0,lt.useSelect)((e=>{const{getBlock:t,getSettings:o}=e(ct.store),r=t(n);return{hasInnerBlocks:!(!r||!r.innerBlocks.length),themeSupportsLayout:o()?.supportsLayout}}),[n]),{tagName:i="div",templateLock:s,allowedBlocks:l,layout:c={}}=e,{type:u="default"}=c,d=a||"flex"===u||"grid"===u,p=(0,gt.useRef)(),m=(0,ct.useBlockProps)({ref:p}),[g,h]=function({attributes:e={style:void 0,backgroundColor:void 0,textColor:void 0,fontSize:void 0},usedLayoutType:t="",hasInnerBlocks:o=!1}){const{style:n,backgroundColor:r,textColor:a,fontSize:i}=e,[s,l]=(0,gt.useState)(!(o||r||i||a||n||"flex"===t||"grid"===t));return(0,gt.useEffect)((()=>{(o||r||i||a||n||"flex"===t)&&l(!1)}),[r,i,a,n,t,o]),[s,l]}({attributes:e,usedLayoutType:u,hasInnerBlocks:r});let _;g?_=!1:r||(_=ct.InnerBlocks.ButtonBlockAppender);const x=(0,ct.useInnerBlocksProps)(d?m:{className:"wp-block-group__inner-container"},{dropZoneElement:p.current,templateLock:s,allowedBlocks:l,renderAppender:_}),{selectBlock:b}=(0,lt.useDispatch)(ct.store);return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(Fd,{tagName:i,onSelectTagName:e=>o({tagName:e}),clientId:n}),g&&(0,it.jsxs)(St.View,{children:[x.children,(0,it.jsx)(Rd,{name:t,onSelect:e=>{o(e.attributes),b(n,-1),h(!1)}})]}),d&&!g&&(0,it.jsx)(i,{...x}),!d&&!g&&(0,it.jsx)(i,{...m,children:(0,it.jsx)("div",{...x})})]})};const Od=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/group","title":"Group","category":"design","description":"Gather blocks in a layout container.","keywords":["container","wrapper","row","section"],"textdomain":"default","attributes":{"tagName":{"type":"string","default":"div"},"templateLock":{"type":["string","boolean"],"enum":["all","insert","contentOnly",false]}},"supports":{"__experimentalOnEnter":true,"__experimentalOnMerge":true,"__experimentalSettings":true,"align":["wide","full"],"anchor":true,"ariaLabel":true,"html":false,"background":{"backgroundImage":true,"backgroundSize":true,"__experimentalDefaultControls":{"backgroundImage":true}},"color":{"gradients":true,"heading":true,"button":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true}},"shadow":true,"spacing":{"margin":["top","bottom"],"padding":true,"blockGap":true,"__experimentalDefaultControls":{"padding":true,"blockGap":true}},"dimensions":{"minHeight":true},"__experimentalBorder":{"color":true,"radius":true,"style":true,"width":true,"__experimentalDefaultControls":{"color":true,"radius":true,"style":true,"width":true}},"position":{"sticky":true},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"layout":{"allowSizingOnChildren":true},"interactivity":{"clientNavigation":true},"allowedBlocks":true},"editorStyle":"wp-block-group-editor","style":"wp-block-group"}');var Gd={from:[{type:"block",isMultiBlock:!0,blocks:["*"],__experimentalConvert(e){const t=["wide","full"],o=e.reduce(((e,o)=>{const{align:n}=o.attributes;return t.indexOf(n)>t.indexOf(e)?n:e}),void 0),n=e.map((e=>(0,st.createBlock)(e.name,e.attributes,e.innerBlocks)));return(0,st.createBlock)("core/group",{align:o,layout:{type:"constrained"}},n)}}]},$d=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M4 6.5h5a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H4V16h5a.5.5 0 0 0 .5-.5v-7A.5.5 0 0 0 9 8H4V6.5Zm16 0h-5a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h5V16h-5a.5.5 0 0 1-.5-.5v-7A.5.5 0 0 1 15 8h5V6.5Z"})}),Ud=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M17.5 4v5a2 2 0 0 1-2 2h-7a2 2 0 0 1-2-2V4H8v5a.5.5 0 0 0 .5.5h7A.5.5 0 0 0 16 9V4h1.5Zm0 16v-5a2 2 0 0 0-2-2h-7a2 2 0 0 0-2 2v5H8v-5a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 .5.5v5h1.5Z"})}),qd=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"m3 5c0-1.10457.89543-2 2-2h13.5c1.1046 0 2 .89543 2 2v13.5c0 1.1046-.8954 2-2 2h-13.5c-1.10457 0-2-.8954-2-2zm2-.5h6v6.5h-6.5v-6c0-.27614.22386-.5.5-.5zm-.5 8v6c0 .2761.22386.5.5.5h6v-6.5zm8 0v6.5h6c.2761 0 .5-.2239.5-.5v-6zm0-8v6.5h6.5v-6c0-.27614-.2239-.5-.5-.5z",fillRule:"evenodd",clipRule:"evenodd"})});const Wd={innerBlocks:[{name:"core/paragraph",attributes:{content:(0,pt.__)("One.")}},{name:"core/paragraph",attributes:{content:(0,pt.__)("Two.")}},{name:"core/paragraph",attributes:{content:(0,pt.__)("Three.")}},{name:"core/paragraph",attributes:{content:(0,pt.__)("Four.")}},{name:"core/paragraph",attributes:{content:(0,pt.__)("Five.")}},{name:"core/paragraph",attributes:{content:(0,pt.__)("Six.")}}]};var Zd=[{name:"group",title:(0,pt.__)("Group"),description:(0,pt.__)("Gather blocks in a container."),attributes:{layout:{type:"constrained"}},isDefault:!0,scope:["block","inserter","transform"],icon:Su},{name:"group-row",title:(0,pt._x)("Row","single horizontal line"),description:(0,pt.__)("Arrange blocks horizontally."),attributes:{layout:{type:"flex",flexWrap:"nowrap"}},scope:["block","inserter","transform"],isActive:["layout.type"],icon:$d,example:Wd},{name:"group-stack",title:(0,pt.__)("Stack"),description:(0,pt.__)("Arrange blocks vertically."),attributes:{layout:{type:"flex",orientation:"vertical"}},scope:["block","inserter","transform"],isActive:["layout.type","layout.orientation"],icon:Ud,example:Wd},{name:"group-grid",title:(0,pt.__)("Grid"),description:(0,pt.__)("Arrange blocks in a grid."),attributes:{layout:{type:"grid"}},scope:["block","inserter","transform"],isActive:["layout.type"],icon:qd,example:Wd}];const{name:Jd}=Od,Qd={icon:Su,example:{attributes:{layout:{type:"constrained",justifyContent:"center"},style:{spacing:{padding:{top:"4em",right:"3em",bottom:"4em",left:"3em"}}}},innerBlocks:[{name:"core/heading",attributes:{content:(0,pt.__)("La Mancha"),textAlign:"center"}},{name:"core/paragraph",attributes:{align:"center",content:(0,pt.__)("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.")}},{name:"core/spacer",attributes:{height:"10px"}},{name:"core/button",attributes:{text:(0,pt.__)("Read more")}}],viewportWidth:600},transforms:Gd,edit:Ed,save:function({attributes:{tagName:e}}){return(0,it.jsx)(e,{...ct.useInnerBlocksProps.save(ct.useBlockProps.save())})},deprecated:Ld,variations:Zd},Kd=()=>jt({name:Jd,metadata:Od,settings:Qd});var Yd=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M6 5V18.5911L12 13.8473L18 18.5911V5H6Z"})});const Xd={className:!1,anchor:!0},ep={align:{type:"string"},content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6",default:""},level:{type:"number",default:2},placeholder:{type:"string"}},tp=e=>{if(!e.customTextColor)return e;const t={color:{text:e.customTextColor}},{customTextColor:o,...n}=e;return{...n,style:t}},op=["left","right","center"],np=e=>{const{align:t,...o}=e;return op.includes(t)?{...o,textAlign:t}:e},rp={supports:Xd,attributes:{...ep,customTextColor:{type:"string"},textColor:{type:"string"}},migrate:e=>tp(np(e)),save({attributes:e}){const{align:t,level:o,content:n,textColor:r,customTextColor:a}=e,i="h"+o,s=(0,ct.getColorClassName)("color",r),l=Dt({[s]:s});return(0,it.jsx)(ct.RichText.Content,{className:l||void 0,tagName:i,style:{textAlign:t,color:s?void 0:a},value:n})}},ap={attributes:{...ep,customTextColor:{type:"string"},textColor:{type:"string"}},migrate:e=>tp(np(e)),save({attributes:e}){const{align:t,content:o,customTextColor:n,level:r,textColor:a}=e,i="h"+r,s=(0,ct.getColorClassName)("color",a),l=Dt({[s]:s,[`has-text-align-${t}`]:t});return(0,it.jsx)(ct.RichText.Content,{className:l||void 0,tagName:i,style:{color:s?void 0:n},value:o})},supports:Xd},ip={supports:Xd,attributes:{...ep,customTextColor:{type:"string"},textColor:{type:"string"}},migrate:e=>tp(np(e)),save({attributes:e}){const{align:t,content:o,customTextColor:n,level:r,textColor:a}=e,i="h"+r,s=(0,ct.getColorClassName)("color",a),l=Dt({[s]:s,"has-text-color":a||n,[`has-text-align-${t}`]:t});return(0,it.jsx)(ct.RichText.Content,{className:l||void 0,tagName:i,style:{color:s?void 0:n},value:o})}},sp={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:ep,isEligible:({align:e})=>op.includes(e),migrate:np,save({attributes:e}){const{align:t,content:o,level:n}=e,r="h"+n,a=Dt({[`has-text-align-${t}`]:t});return(0,it.jsx)(r,{...ct.useBlockProps.save({className:a}),children:(0,it.jsx)(ct.RichText.Content,{value:o})})}},lp={supports:{align:["wide","full"],anchor:!0,className:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0,fontAppearance:!0,textTransform:!0}},__experimentalSelector:"h1,h2,h3,h4,h5,h6",__unstablePasteTextInline:!0,__experimentalSlashInserter:!0},attributes:{textAlign:{type:"string"},content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6",default:"",role:"content"},level:{type:"number",default:2},placeholder:{type:"string"}},save({attributes:e}){const{textAlign:t,content:o,level:n}=e,r="h"+n,a=Dt({[`has-text-align-${t}`]:t});return(0,it.jsx)(r,{...ct.useBlockProps.save({className:a}),children:(0,it.jsx)(ct.RichText.Content,{value:o})})}};var cp=[lp,sp,ip,ap,rp];const up={},dp=e=>su()((e=>{const t=document.createElement("div");return t.innerHTML=e,t.innerText})(e)).replace(/[^\p{L}\p{N}]+/gu,"-").toLowerCase().replace(/(^-+)|(-+$)/g,""),pp=(e,t)=>{const o=dp(t);if(""===o)return null;delete up[e];let n=o,r=0;for(;Object.values(up).includes(n);)r+=1,n=o+"-"+r;return n},mp=(e,t)=>{up[e]=t};var gp=function({attributes:e,setAttributes:t,mergeBlocks:o,onReplace:n,style:r,clientId:a}){const{textAlign:i,content:s,level:l,levelOptions:c,placeholder:u,anchor:d}=e,p="h"+l,m=(0,ct.useBlockProps)({className:Dt({[`has-text-align-${i}`]:i}),style:r}),g=(0,ct.useBlockEditingMode)(),{canGenerateAnchors:h}=(0,lt.useSelect)((e=>{const{getGlobalBlockCount:t,getSettings:o}=e(ct.store);return{canGenerateAnchors:!!o().generateAnchors||t("core/table-of-contents")>0}}),[]),{__unstableMarkNextChangeAsNotPersistent:_}=(0,lt.useDispatch)(ct.store);return(0,gt.useEffect)((()=>{if(h)return!d&&s&&(_(),t({anchor:pp(a,s)})),mp(a,d),()=>mp(a,null)}),[d,s,a,h]),(0,it.jsxs)(it.Fragment,{children:["default"===g&&(0,it.jsxs)(ct.BlockControls,{group:"block",children:[(0,it.jsx)(ct.HeadingLevelDropdown,{value:l,options:c,onChange:e=>t({level:e})}),(0,it.jsx)(ct.AlignmentControl,{value:i,onChange:e=>{t({textAlign:e})}})]}),(0,it.jsx)(ct.RichText,{identifier:"content",tagName:p,value:s,onChange:e=>{const o={content:e};!h||d&&e&&pp(a,s)!==d||(o.anchor=pp(a,e)),t(o)},onMerge:o,onReplace:n,onRemove:()=>n([]),placeholder:u||(0,pt.__)("Heading"),textAlign:i,...gt.Platform.isNative&&{deleteEnter:!0},...m})]})};const hp=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"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":"rich-text","source":"rich-text","selector":"h1,h2,h3,h4,h5,h6","role":"content"},"level":{"type":"number","default":2},"levelOptions":{"type":"array"},"placeholder":{"type":"string"}},"supports":{"align":["wide","full"],"anchor":true,"className":true,"splitting":true,"__experimentalBorder":{"color":true,"radius":true,"style":true,"width":true},"color":{"gradients":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true}},"spacing":{"margin":true,"padding":true,"__experimentalDefaultControls":{"margin":false,"padding":false}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontStyle":true,"__experimentalFontWeight":true,"__experimentalLetterSpacing":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalWritingMode":true,"fitText":true,"__experimentalDefaultControls":{"fontSize":true}},"__unstablePasteTextInline":true,"__experimentalSlashInserter":true,"interactivity":{"clientNavigation":true}},"editorStyle":"wp-block-heading-editor","style":"wp-block-heading"}');const _p={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>e.map((e=>{const{content:t,anchor:o,align:n}=e;return(0,st.createBlock)("core/heading",{...Nn(e,"core/heading",(({content:e})=>({content:e}))),content:t,anchor:o,textAlign:n})}))},{type:"raw",selector:"h1,h2,h3,h4,h5,h6",schema:({phrasingContentSchema:e,isPaste:t})=>{const o={children:e,attributes:t?[]:["style","id"]};return{h1:o,h2:o,h3:o,h4:o,h5:o,h6:o}},transform(e){const t=(0,st.getBlockAttributes)("core/heading",e.outerHTML),{textAlign:o}=e.style||{};var n;return t.level=(n=e.nodeName,Number(n.substr(1))),"left"!==o&&"center"!==o&&"right"!==o||(t.align=o),(0,st.createBlock)("core/heading",t)}},...[1,2,3,4,5,6].map((e=>({type:"prefix",prefix:Array(e+1).join("#"),transform:t=>(0,st.createBlock)("core/heading",{level:e,content:t})}))),...[1,2,3,4,5,6].map((e=>({type:"enter",regExp:new RegExp(`^/(h|H)${e}$`),transform:()=>(0,st.createBlock)("core/heading",{level:e})})))],to:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>e.map((e=>{const{content:t,textAlign:o}=e;return(0,st.createBlock)("core/paragraph",{...Nn(e,"core/paragraph",(({content:e})=>({content:e}))),content:t,align:o})}))}]};var xp=_p;const bp=[{name:"heading",title:(0,pt.__)("Heading"),description:(0,pt.__)("Introduce new sections and organize content to help visitors (and search engines) understand the structure of your content."),isDefault:!0,scope:["inserter","transform"],attributes:{fitText:void 0},icon:Yd},{name:"stretchy-heading",title:(0,pt.__)("Stretchy Heading"),description:(0,pt.__)("Heading that resizes to fit its container."),icon:(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"m3 18.6 6-4.7 6 4.7V5H3v13.6Zm16.2-9.8v1.5h2.2L17.7 14l1.1 1.1 3.7-3.7v2.2H24V8.8h-4.8Z"})}),attributes:{fitText:!0},scope:["inserter","transform"],isActive:e=>!0===e.fitText}];var fp=bp;const{name:yp}=hp,vp={icon:Yd,example:{attributes:{content:(0,pt.__)("Code is Poetry"),level:2,textAlign:"center"}},__experimentalLabel(e,{context:t}){const{content:o,level:n}=e,r=e?.metadata?.name,a=o?.trim().length>0;return"list-view"===t&&(r||a)?r||o:"accessibility"===t?a?(0,pt.sprintf)((0,pt.__)("Level %1$s. %2$s"),n,o):(0,pt.sprintf)((0,pt.__)("Level %s. Empty."),n):void 0},transforms:xp,deprecated:cp,merge:(e,t)=>({content:(e.content||"")+(t.content||"")}),edit:gp,save:function({attributes:e}){const{textAlign:t,content:o,level:n}=e,r="h"+n,a=Dt({[`has-text-align-${t}`]:t});return(0,it.jsx)(r,{...ct.useBlockProps.save({className:a}),children:(0,it.jsx)(ct.RichText.Content,{value:o})})},variations:fp},kp=()=>jt({name:yp,metadata:hp,settings:vp});var wp=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M12 4L4 7.9V20h16V7.9L12 4zm6.5 14.5H14V13h-4v5.5H5.5V8.8L12 5.7l6.5 3.1v9.7z"})});const Cp=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/home-link","category":"design","parent":["core/navigation"],"title":"Home Link","description":"Create a link that always points to the homepage of the site. Usually not necessary if there is already a site title link present in the header.","textdomain":"default","attributes":{"label":{"type":"string","role":"content"}},"usesContext":["textColor","customTextColor","backgroundColor","customBackgroundColor","fontSize","customFontSize","style"],"supports":{"reusable":false,"html":false,"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true}},"editorStyle":"wp-block-home-link-editor","style":"wp-block-home-link"}'),jp=e=>e.preventDefault();const{name:Sp}=Cp,Bp={icon:wp,edit:function({attributes:e,setAttributes:t,context:o}){const n=(0,lt.useSelect)((e=>e(_t.store).getEntityRecord("root","__unstableBase")?.home),[]),{textColor:r,backgroundColor:a,style:i}=o,s=(0,ct.useBlockProps)({className:Dt("wp-block-navigation-item",{"has-text-color":!!r||!!i?.color?.text,[`has-${r}-color`]:!!r,"has-background":!!a||!!i?.color?.background,[`has-${a}-background-color`]:!!a}),style:{color:i?.color?.text,backgroundColor:i?.color?.background}});return(0,it.jsx)("div",{...s,children:(0,it.jsx)("a",{className:"wp-block-home-link__content wp-block-navigation-item__content",href:n,onClick:jp,children:(0,it.jsx)(ct.RichText,{identifier:"label",className:"wp-block-home-link__label",value:e.label??(0,pt.__)("Home"),onChange:e=>{t({label:e})},"aria-label":(0,pt.__)("Home link text"),placeholder:(0,pt.__)("Add home link"),withoutInteractiveFormatting:!0})})})},save:function(){return(0,it.jsx)(ct.InnerBlocks.Content,{})},example:{attributes:{label:(0,pt._x)("Home Link","block example")}}},Tp=()=>jt({name:Sp,metadata:Cp,settings:Bp});var Np=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.Path,{d:"M4.8 11.4H2.1V9H1v6h1.1v-2.6h2.7V15h1.1V9H4.8v2.4zm1.9-1.3h1.7V15h1.1v-4.9h1.7V9H6.7v1.1zM16.2 9l-1.5 2.7L13.3 9h-.9l-.8 6h1.1l.5-4 1.5 2.8 1.5-2.8.5 4h1.1L17 9h-.8zm3.8 5V9h-1.1v6h3.6v-1H20z"})});function Pp({content:e,isSelected:t}){const o=(0,lt.useSelect)((e=>e(ct.store).getSettings().styles),[]),n=(0,gt.useMemo)((()=>["\n\thtml,body,:root {\n\t\tmargin: 0 !important;\n\t\tpadding: 0 !important;\n\t\toverflow: visible !important;\n\t\tmin-height: auto !important;\n\t}\n",...(0,ct.transformStyles)((o??[]).filter((e=>e.css)))]),[o]);return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(mt.SandBox,{html:e,styles:n,title:(0,pt.__)("Custom HTML Preview"),tabIndex:-1}),!t&&(0,it.jsx)("div",{className:"block-library-html__preview-overlay"})]})}const Ip=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"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":"raw","role":"content"}},"supports":{"customClassName":false,"className":false,"html":false,"interactivity":{"clientNavigation":true}},"editorStyle":"wp-block-html-editor"}');var Dp={from:[{type:"block",blocks:["core/code"],transform:({content:e})=>(0,st.createBlock)("core/html",{content:(0,Tn.create)({html:e}).text})}]};const{name:Mp}=Ip,zp={icon:Np,example:{attributes:{content:"<marquee>"+(0,pt.__)("Welcome to the wonderful world of blocks…")+"</marquee>"}},edit:function e({attributes:t,setAttributes:o,isSelected:n}){const[r,a]=(0,gt.useState)(),i=(0,gt.useContext)(mt.Disabled.Context),s=(0,xt.useInstanceId)(e,"html-edit-desc"),l=(0,lt.useSelect)((e=>e(ct.store).getSettings().isPreviewMode),[]),c=(0,ct.useBlockProps)({className:"block-library-html__edit","aria-describedby":r?s:void 0});return(0,it.jsxs)("div",{...c,children:[(0,it.jsx)(ct.BlockControls,{children:(0,it.jsxs)(mt.ToolbarGroup,{children:[(0,it.jsx)(mt.ToolbarButton,{isPressed:!r,onClick:function(){a(!1)},children:"HTML"}),(0,it.jsx)(mt.ToolbarButton,{isPressed:r,onClick:function(){a(!0)},children:(0,pt.__)("Preview")})]})}),r||l||i?(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(Pp,{content:t.content,isSelected:n}),(0,it.jsx)(mt.VisuallyHidden,{id:s,children:(0,pt.__)("HTML preview is not yet fully accessible. Please switch screen reader to virtualized mode to navigate the below iFrame.")})]}):(0,it.jsx)(ct.PlainText,{value:t.content,onChange:e=>o({content:e}),placeholder:(0,pt.__)("Write HTML…"),"aria-label":(0,pt.__)("HTML")})]})},save:function({attributes:e}){return(0,it.jsx)(gt.RawHTML,{children:e.content})},transforms:Dp},Ap=()=>jt({name:Mp,metadata:Ip,settings:zp}),Lp={attributes:{url:{type:"string",source:"attribute",selector:"img",attribute:"src"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"array",source:"children",selector:"figcaption"},href:{type:"string",source:"attribute",selector:"a",attribute:"href"},id:{type:"number"},align:{type:"string"},width:{type:"number"},height:{type:"number"}},save({attributes:e}){const{url:t,alt:o,caption:n,align:r,href:a,width:i,height:s}=e,l=i||s?{width:i,height:s}:{},c=(0,it.jsx)("img",{src:t,alt:o,...l});let u={};return i?u={width:i}:"left"!==r&&"right"!==r||(u={maxWidth:"50%"}),(0,it.jsxs)("figure",{className:r?`align${r}`:null,style:u,children:[a?(0,it.jsx)("a",{href:a,children:c}):c,!ct.RichText.isEmpty(n)&&(0,it.jsx)(ct.RichText.Content,{tagName:"figcaption",value:n})]})}},Hp={attributes:{url:{type:"string",source:"attribute",selector:"img",attribute:"src"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"array",source:"children",selector:"figcaption"},href:{type:"string",source:"attribute",selector:"a",attribute:"href"},id:{type:"number"},align:{type:"string"},width:{type:"number"},height:{type:"number"}},save({attributes:e}){const{url:t,alt:o,caption:n,align:r,href:a,width:i,height:s,id:l}=e,c=(0,it.jsx)("img",{src:t,alt:o,className:l?`wp-image-${l}`:null,width:i,height:s});return(0,it.jsxs)("figure",{className:r?`align${r}`:null,children:[a?(0,it.jsx)("a",{href:a,children:c}):c,!ct.RichText.isEmpty(n)&&(0,it.jsx)(ct.RichText.Content,{tagName:"figcaption",value:n})]})}},Rp={attributes:{url:{type:"string",source:"attribute",selector:"img",attribute:"src"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"array",source:"children",selector:"figcaption"},href:{type:"string",source:"attribute",selector:"figure > a",attribute:"href"},id:{type:"number"},align:{type:"string"},width:{type:"number"},height:{type:"number"},linkDestination:{type:"string",default:"none"}},save({attributes:e}){const{url:t,alt:o,caption:n,align:r,href:a,width:i,height:s,id:l}=e,c=Dt({[`align${r}`]:r,"is-resized":i||s}),u=(0,it.jsx)("img",{src:t,alt:o,className:l?`wp-image-${l}`:null,width:i,height:s});return(0,it.jsxs)("figure",{className:c,children:[a?(0,it.jsx)("a",{href:a,children:u}):u,!ct.RichText.isEmpty(n)&&(0,it.jsx)(ct.RichText.Content,{tagName:"figcaption",value:n})]})}},Vp={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},save({attributes:e}){const{url:t,alt:o,caption:n,align:r,href:a,rel:i,linkClass:s,width:l,height:c,id:u,linkTarget:d,sizeSlug:p,title:m}=e,g=i||void 0,h=Dt({[`align${r}`]:r,[`size-${p}`]:p,"is-resized":l||c}),_=(0,it.jsx)("img",{src:t,alt:o,className:u?`wp-image-${u}`:null,width:l,height:c,title:m}),x=(0,it.jsxs)(it.Fragment,{children:[a?(0,it.jsx)("a",{className:s,href:a,target:d,rel:g,children:_}):_,!ct.RichText.isEmpty(n)&&(0,it.jsx)(ct.RichText.Content,{tagName:"figcaption",value:n})]});return"left"===r||"right"===r||"center"===r?(0,it.jsx)("div",{...ct.useBlockProps.save(),children:(0,it.jsx)("figure",{className:h,children:x})}):(0,it.jsx)("figure",{...ct.useBlockProps.save({className:h}),children:x})}},Fp={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,__experimentalDefaultControls:{radius:!0}},__experimentalStyle:{spacing:{margin:"0 0 1em 0"}}},save({attributes:e}){const{url:t,alt:o,caption:n,align:r,href:a,rel:i,linkClass:s,width:l,height:c,id:u,linkTarget:d,sizeSlug:p,title:m}=e,g=i||void 0,h=Dt({[`align${r}`]:r,[`size-${p}`]:p,"is-resized":l||c}),_=(0,it.jsx)("img",{src:t,alt:o,className:u?`wp-image-${u}`:null,width:l,height:c,title:m}),x=(0,it.jsxs)(it.Fragment,{children:[a?(0,it.jsx)("a",{className:s,href:a,target:d,rel:g,children:_}):_,!ct.RichText.isEmpty(n)&&(0,it.jsx)(ct.RichText.Content,{tagName:"figcaption",value:n})]});return(0,it.jsx)("figure",{...ct.useBlockProps.save({className:h}),children:x})}},Ep={attributes:{align:{type:"string"},url:{type:"string",source:"attribute",selector:"img",attribute:"src",role:"content"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:"",role:"content"},caption:{type:"string",source:"html",selector:"figcaption",role:"content"},title:{type:"string",source:"attribute",selector:"img",attribute:"title",role:"content"},href:{type:"string",source:"attribute",selector:"figure > a",attribute:"href",role:"content"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number",role:"content"},width:{type:"number"},height:{type:"number"},aspectRatio:{type:"string"},scale:{type:"string"},sizeSlug:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},supports:{anchor:!0,color:{text:!1,background:!1},filter:{duotone:!0},__experimentalBorder:{color:!0,radius:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,radius:!0,width:!0}}},migrate(e){const{height:t,width:o}=e;return{...e,width:"number"==typeof o?`${o}px`:o,height:"number"==typeof t?`${t}px`:t}},save({attributes:e}){const{url:t,alt:o,caption:n,align:r,href:a,rel:i,linkClass:s,width:l,height:c,aspectRatio:u,scale:d,id:p,linkTarget:m,sizeSlug:g,title:h}=e,_=i||void 0,x=(0,ct.__experimentalGetBorderClassesAndStyles)(e),b=Dt({[`align${r}`]:r,[`size-${g}`]:g,"is-resized":l||c,"has-custom-border":!!x.className||x.style&&Object.keys(x.style).length>0}),f=Dt(x.className,{[`wp-image-${p}`]:!!p}),y=(0,it.jsx)("img",{src:t,alt:o,className:f||void 0,style:{...x.style,aspectRatio:u,objectFit:d},width:l,height:c,title:h}),v=(0,it.jsxs)(it.Fragment,{children:[a?(0,it.jsx)("a",{className:s,href:a,target:m,rel:_,children:y}):y,!ct.RichText.isEmpty(n)&&(0,it.jsx)(ct.RichText.Content,{className:(0,ct.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:n})]});return(0,it.jsx)("figure",{...ct.useBlockProps.save({className:b}),children:v})}},Op={attributes:{align:{type:"string"},url:{type:"string",source:"attribute",selector:"img",attribute:"src",role:"content"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:"",role:"content"},caption:{type:"string",source:"html",selector:"figcaption",role:"content"},title:{type:"string",source:"attribute",selector:"img",attribute:"title",role:"content"},href:{type:"string",source:"attribute",selector:"figure > a",attribute:"href",role:"content"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number",role:"content"},width:{type:"number"},height:{type:"number"},aspectRatio:{type:"string"},scale:{type:"string"},sizeSlug:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},supports:{anchor:!0,color:{text:!1,background:!1},filter:{duotone:!0},__experimentalBorder:{color:!0,radius:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,radius:!0,width:!0}}},migrate:({width:e,height:t,...o})=>({...o,width:`${e}px`,height:`${t}px`}),save({attributes:e}){const{url:t,alt:o,caption:n,align:r,href:a,rel:i,linkClass:s,width:l,height:c,aspectRatio:u,scale:d,id:p,linkTarget:m,sizeSlug:g,title:h}=e,_=i||void 0,x=(0,ct.__experimentalGetBorderClassesAndStyles)(e),b=Dt({[`align${r}`]:r,[`size-${g}`]:g,"is-resized":l||c,"has-custom-border":!!x.className||x.style&&Object.keys(x.style).length>0}),f=Dt(x.className,{[`wp-image-${p}`]:!!p}),y=(0,it.jsx)("img",{src:t,alt:o,className:f||void 0,style:{...x.style,aspectRatio:u,objectFit:d,width:l,height:c},width:l,height:c,title:h}),v=(0,it.jsxs)(it.Fragment,{children:[a?(0,it.jsx)("a",{className:s,href:a,target:m,rel:_,children:y}):y,!ct.RichText.isEmpty(n)&&(0,it.jsx)(ct.RichText.Content,{className:(0,ct.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:n})]});return(0,it.jsx)("figure",{...ct.useBlockProps.save({className:b}),children:v})}},Gp={attributes:{align:{type:"string"},behaviors:{type:"object"},url:{type:"string",source:"attribute",selector:"img",attribute:"src",role:"content"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:"",role:"content"},caption:{type:"string",source:"html",selector:"figcaption",role:"content"},title:{type:"string",source:"attribute",selector:"img",attribute:"title",role:"content"},href:{type:"string",source:"attribute",selector:"figure > a",attribute:"href",role:"content"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number",role:"content"},width:{type:"string"},height:{type:"string"},aspectRatio:{type:"string"},scale:{type:"string"},sizeSlug:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},supports:{anchor:!0,color:{text:!1,background:!1},filter:{duotone:!0},__experimentalBorder:{color:!0,radius:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,radius:!0,width:!0}}},migrate({width:e,height:t,...o}){if(!o.behaviors?.lightbox)return o;const{behaviors:{lightbox:{enabled:n}}}=o,r={...o,lightbox:{enabled:n}};return delete r.behaviors,r},isEligible:e=>!!e.behaviors,save({attributes:e}){const{url:t,alt:o,caption:n,align:r,href:a,rel:i,linkClass:s,width:l,height:c,aspectRatio:u,scale:d,id:p,linkTarget:m,sizeSlug:g,title:h}=e,_=i||void 0,x=(0,ct.__experimentalGetBorderClassesAndStyles)(e),b=Dt({[`align${r}`]:r,[`size-${g}`]:g,"is-resized":l||c,"has-custom-border":!!x.className||x.style&&Object.keys(x.style).length>0}),f=Dt(x.className,{[`wp-image-${p}`]:!!p}),y=(0,it.jsx)("img",{src:t,alt:o,className:f||void 0,style:{...x.style,aspectRatio:u,objectFit:d,width:l,height:c},title:h}),v=(0,it.jsxs)(it.Fragment,{children:[a?(0,it.jsx)("a",{className:s,href:a,target:m,rel:_,children:y}):y,!ct.RichText.isEmpty(n)&&(0,it.jsx)(ct.RichText.Content,{className:(0,ct.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:n})]});return(0,it.jsx)("figure",{...ct.useBlockProps.save({className:b}),children:v})}};var $p=[Gp,Op,Ep,Fp,Vp,Rp,Hp,Lp],Up=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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"})}),qp=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"})}),Wp=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M18 20v-2h2v-1.5H7.75a.25.25 0 0 1-.25-.25V4H6v2H4v1.5h2v8.75c0 .966.784 1.75 1.75 1.75h8.75v2H18ZM9.273 7.5h6.977a.25.25 0 0 1 .25.25v6.977H18V7.75A1.75 1.75 0 0 0 16.25 6H9.273v1.5Z"})}),Zp=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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"})}),Jp=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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"})});const{DimensionsTool:Qp,ResolutionTool:Kp}=jo(ct.privateApis),Yp=[{value:"cover",label:(0,pt._x)("Cover","Scale option for dimensions control"),help:(0,pt.__)("Image covers the space evenly.")},{value:"contain",label:(0,pt._x)("Contain","Scale option for dimensions control"),help:(0,pt.__)("Image is contained without distortion.")}],Xp={placement:"bottom-start"},em=({href:e,children:t})=>e?(0,it.jsx)("a",{href:e,onClick:e=>e.preventDefault(),"aria-disabled":!0,style:{pointerEvents:"none",cursor:"default",display:"inline"},children:t}):t;function tm({attributes:e,setAttributes:t,lockAltControls:o,lockAltControlsMessage:n,lockTitleControls:r,lockTitleControlsMessage:a}){const[i,s]=(0,gt.useState)(null),[l,c]=(0,gt.useState)(!1),[u,d]=(0,gt.useState)(!1);return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(mt.ToolbarItem,{ref:s,children:e=>(0,it.jsx)(mt.DropdownMenu,{icon:qp,label:(0,pt.__)("More"),toggleProps:{...e,description:(0,pt.__)("Displays more controls.")},popoverProps:Xp,children:({onClose:e})=>(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(mt.MenuItem,{onClick:()=>{c(!0),e()},"aria-haspopup":"dialog",children:(0,pt._x)("Alternative text","Alternative text for an image. Block toolbar label, a low character count is preferred.")}),(0,it.jsx)(mt.MenuItem,{onClick:()=>{d(!0),e()},"aria-haspopup":"dialog",children:(0,pt.__)("Title text")})]})})}),l&&(0,it.jsx)(mt.Popover,{placement:"bottom-start",anchor:i,onClose:()=>c(!1),offset:13,variant:"toolbar",children:(0,it.jsx)("div",{className:"wp-block-image__toolbar_content_textarea__container",children:(0,it.jsx)(mt.TextareaControl,{className:"wp-block-image__toolbar_content_textarea",label:(0,pt.__)("Alternative text"),value:e.alt||"",onChange:e=>t({alt:e}),disabled:o,help:o?(0,it.jsx)(it.Fragment,{children:n}):(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(mt.ExternalLink,{href:(0,pt.__)("https://www.w3.org/WAI/tutorials/images/decision-tree/"),children:(0,pt.__)("Describe the purpose of the image.")}),(0,it.jsx)("br",{}),(0,pt.__)("Leave empty if decorative.")]}),__nextHasNoMarginBottom:!0})})}),u&&(0,it.jsx)(mt.Popover,{placement:"bottom-start",anchor:i,onClose:()=>d(!1),offset:13,variant:"toolbar",children:(0,it.jsx)("div",{className:"wp-block-image__toolbar_content_textarea__container",children:(0,it.jsx)(mt.TextControl,{__next40pxDefaultSize:!0,className:"wp-block-image__toolbar_content_textarea",__nextHasNoMarginBottom:!0,label:(0,pt.__)("Title attribute"),value:e.title||"",onChange:e=>t({title:e}),disabled:r,help:r?(0,it.jsx)(it.Fragment,{children:a}):(0,it.jsxs)(it.Fragment,{children:[(0,pt.__)("Describe the role of this image on the page."),(0,it.jsx)(mt.ExternalLink,{href:"https://www.w3.org/TR/html52/dom.html#the-title-attribute",children:(0,pt.__)("(Note: many devices and browsers do not display this text.)")})]})})})})]})}function om({temporaryURL:e,attributes:t,setAttributes:o,isSingleSelected:n,insertBlocksAfter:r,onReplace:a,onSelectImage:i,onSelectURL:s,onUploadError:l,context:c,clientId:u,blockEditingMode:d,parentLayoutType:p,maxContentWidth:m}){const{url:g="",alt:h,align:_,id:x,href:b,rel:f,linkClass:y,linkDestination:v,title:k,width:w,height:C,aspectRatio:j,scale:S,linkTarget:B,sizeSlug:T,lightbox:N,metadata:P}=t,[I,D]=(0,gt.useState)(),[M,z]=(0,gt.useState)(null),[A,L]=(0,gt.useState)({}),[H,R]=(0,gt.useState)(0),V=(0,xt.useResizeObserver)((([e])=>{if(!M){const[t]=e.borderBoxSize;L({width:t.inlineSize,height:t.blockSize})}R(e.target.offsetTop)})),F=(0,gt.useCallback)((()=>{R(I?.offsetTop??0)}),[I]),E=(0,xt.useMergeRefs)([D,V]),{allowResize:O=!0}=c,G=(0,lt.useSelect)((e=>x&&n?e(_t.store).getEntityRecord("postType","attachment",x,{context:"view"}):null),[x,n]),{canInsertCover:$,imageEditing:U,imageSizes:q,maxWidth:W}=(0,lt.useSelect)((e=>{const{getBlockRootClientId:t,canInsertBlockType:o,getSettings:n}=e(ct.store),r=t(u),a=n();return{imageEditing:a.imageEditing,imageSizes:a.imageSizes,maxWidth:a.maxWidth,canInsertCover:o("core/cover",r)}}),[u]),{getBlock:Z,getSettings:J}=(0,lt.useSelect)(ct.store),{replaceBlocks:Q,toggleSelection:K}=(0,lt.useDispatch)(ct.store),{createErrorNotice:Y,createSuccessNotice:X}=(0,lt.useDispatch)(bo.store),{editEntityRecord:ee}=(0,lt.useDispatch)(_t.store),te=(0,xt.useViewportMatch)("medium"),oe=["wide","full"].includes(_),[{loadedNaturalWidth:ne,loadedNaturalHeight:re},ae]=(0,gt.useState)({}),[ie,se]=(0,gt.useState)(!1),[le,ce]=(0,gt.useState)(),[ue,de]=(0,gt.useState)(!1),pe="default"===d,me="contentOnly"===d,ge=O&&pe&&!oe&&te,he=q.filter((({slug:e})=>G?.media_details?.sizes?.[e]?.source_url)).map((({name:e,slug:t})=>({value:t,label:e})));(0,gt.useEffect)((()=>{nm(x,g)&&n&&J().mediaUpload?le||window.fetch(g.includes("?")?g:g+"?").then((e=>e.blob())).then((e=>ce(e))).catch((()=>{})):ce()}),[x,g,n,le,J]);const{naturalWidth:_e,naturalHeight:xe}=(0,gt.useMemo)((()=>({naturalWidth:I?.naturalWidth||ne||void 0,naturalHeight:I?.naturalHeight||re||void 0})),[ne,re,I?.complete]);function be(e){const t=G?.media_details?.sizes?.[e]?.source_url;if(!t)return null;o({url:t,sizeSlug:e})}(0,gt.useEffect)((()=>{n||se(!1)}),[n]);const fe=x&&_e&&xe&&U,ye=n&&fe&&!ie&&!me;const ve=(0,mt.__experimentalUseCustomUnits)({availableUnits:["px"]}),[ke]=(0,ct.useSettings)("lightbox"),we=!!N&&N?.enabled!==ke?.enabled||ke?.allowEditing,Ce=!!N?.enabled||!N&&!!ke?.enabled,je=vt(),Se=ge&&(pd.includes(p)?(0,it.jsx)(Qp,{value:{aspectRatio:j},onChange:({aspectRatio:e})=>{o({aspectRatio:e,scale:"cover"})},defaultAspectRatio:"auto",tools:["aspectRatio"]}):(0,it.jsx)(Qp,{value:{width:w,height:C,scale:S,aspectRatio:j},onChange:({width:e,height:t,scale:n,aspectRatio:r})=>{o({width:!e&&t?"auto":e,height:t,scale:n,aspectRatio:r})},defaultScale:"cover",defaultAspectRatio:"auto",scaleOptions:Yp,unitsOptions:ve})),Be=()=>{o({alt:void 0,width:void 0,height:void 0,scale:void 0,aspectRatio:void 0,lightbox:void 0}),be(md)},Te=(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsx)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:Be,dropdownMenuProps:je,children:Se})}),Ne="core/pattern-overrides"===P?.bindings?.__default?.source,{lockUrlControls:Pe=!1,lockHrefControls:Ie=!1,lockAltControls:De=!1,lockAltControlsMessage:Me,lockTitleControls:ze=!1,lockTitleControlsMessage:Ae,hideCaptionControls:Le=!1}=(0,lt.useSelect)((e=>{if(!n)return{};const{url:t,alt:o,title:r,caption:a}=P?.bindings||{},i=!!c["pattern/overrides"],s=(0,st.getBlockBindingsSource)(t?.source),l=(0,st.getBlockBindingsSource)(o?.source),u=(0,st.getBlockBindingsSource)(r?.source);return{lockUrlControls:!!t&&!s?.canUserEditValue?.({select:e,context:c,args:t?.args}),lockHrefControls:i||Ne,hideCaptionControls:!!a,lockAltControls:!!o&&!l?.canUserEditValue?.({select:e,context:c,args:o?.args}),lockAltControlsMessage:l?.label?(0,pt.sprintf)((0,pt.__)("Connected to %s"),l.label):(0,pt.__)("Connected to dynamic data"),lockTitleControls:!!r&&!u?.canUserEditValue?.({select:e,context:c,args:r?.args}),lockTitleControlsMessage:u?.label?(0,pt.sprintf)((0,pt.__)("Connected to %s"),u.label):(0,pt.__)("Connected to dynamic data")}}),[Ne,c,n,P?.bindings]),He=n&&!ie&&!Ie&&!Pe,Re=n&&$&&!me,Ve=He||ye||Re,Fe=n&&!ie&&!Pe&&(0,it.jsx)(ct.BlockControls,{group:me?"inline":"other",children:(0,it.jsx)(ct.MediaReplaceFlow,{mediaId:x,mediaURL:g,allowedTypes:dd,accept:"image/*",onSelect:i,onSelectURL:s,onError:l,name:g?(0,pt.__)("Replace"):(0,pt.__)("Add image"),onReset:()=>i(void 0)})}),Ee=(0,it.jsxs)(it.Fragment,{children:[Ve&&(0,it.jsxs)(ct.BlockControls,{group:"block",children:[He&&(0,it.jsx)(ct.__experimentalImageURLInputUI,{url:b||"",onChangeUrl:function(e){o(e)},linkDestination:v,mediaUrl:G&&G.source_url||g,mediaLink:G&&G.link,linkTarget:B,linkClass:y,rel:f,showLightboxSetting:we,lightboxEnabled:Ce,onSetLightbox:function(e){o(e&&!ke?.enabled?{lightbox:{enabled:!0}}:!e&&ke?.enabled?{lightbox:{enabled:!1}}:{lightbox:void 0})},resetLightbox:function(){o(ke?.enabled&&ke?.allowEditing?{lightbox:{enabled:!1}}:{lightbox:void 0})}}),ye&&(0,it.jsx)(mt.ToolbarButton,{onClick:()=>se(!0),icon:Wp,label:(0,pt.__)("Crop")}),Re&&(0,it.jsx)(mt.ToolbarButton,{icon:Zp,label:(0,pt.__)("Add text over image"),onClick:function(){Q(u,(0,st.switchToBlockType)(Z(u),"core/cover"))}})]}),n&&le&&(0,it.jsx)(ct.BlockControls,{children:(0,it.jsx)(mt.ToolbarGroup,{children:(0,it.jsx)(mt.ToolbarButton,{onClick:function(){const{mediaUpload:e}=J();e&&e({filesList:[le],onFileChange([e]){i(e),(0,ht.isBlobURL)(e.url)||(ce(),X((0,pt.__)("Image uploaded."),{type:"snackbar"}))},allowedTypes:dd,onError(e){Y(e,{type:"snackbar"})}})},icon:Jp,label:(0,pt.__)("Upload to Media Library")})})}),me&&(0,it.jsx)(ct.BlockControls,{group:"block",children:(0,it.jsx)(tm,{attributes:t,setAttributes:o,lockAltControls:De,lockAltControlsMessage:Me,lockTitleControls:ze,lockTitleControlsMessage:Ae})}),(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:Be,dropdownMenuProps:je,children:[n&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Alternative text"),isShownByDefault:!0,hasValue:()=>!!h,onDeselect:()=>o({alt:void 0}),children:(0,it.jsx)(mt.TextareaControl,{label:(0,pt.__)("Alternative text"),value:h||"",onChange:function(e){o({alt:e})},readOnly:De,help:De?(0,it.jsx)(it.Fragment,{children:Me}):(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(mt.ExternalLink,{href:(0,pt.__)("https://www.w3.org/WAI/tutorials/images/decision-tree/"),children:(0,pt.__)("Describe the purpose of the image.")}),(0,it.jsx)("br",{}),(0,pt.__)("Leave empty if decorative.")]}),__nextHasNoMarginBottom:!0})}),Se,!!he.length&&(0,it.jsx)(Kp,{value:T,defaultValue:md,onChange:be,options:he})]})}),(0,it.jsx)(ct.InspectorControls,{group:"advanced",children:(0,it.jsx)(mt.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,pt.__)("Title attribute"),value:k||"",onChange:function(e){o({title:e})},readOnly:ze,help:ze?(0,it.jsx)(it.Fragment,{children:Ae}):(0,it.jsxs)(it.Fragment,{children:[(0,pt.__)("Describe the role of this image on the page."),(0,it.jsx)(mt.ExternalLink,{href:"https://www.w3.org/TR/html52/dom.html#the-title-attribute",children:(0,pt.__)("(Note: many devices and browsers do not display this text.)")})]})})})]}),Oe=(0,no.getFilename)(g);let Ge;Ge=h||(Oe?(0,pt.sprintf)((0,pt.__)("This image has an empty alt attribute; its file name is %s"),Oe):(0,pt.__)("This image has an empty alt attribute"));const $e=(0,ct.__experimentalUseBorderProps)(t),Ue=(0,ct.__experimentalGetShadowClassesAndStyles)(t),qe=t.className?.includes("is-style-rounded"),{postType:We,postId:Ze,queryId:Je}=c,Qe=Number.isFinite(Je);let Ke,Ye=e&&ue?(0,it.jsx)(mt.Placeholder,{className:"wp-block-image__placeholder",withIllustration:!0,children:(0,it.jsx)(mt.Spinner,{})}):(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)("img",{src:e||g,alt:Ge,onError:function(){de(!0);const e=No({attributes:{url:g}});void 0!==e&&a(e)},onLoad:function(e){de(!1),ae({loadedNaturalWidth:e.target?.naturalWidth,loadedNaturalHeight:e.target?.naturalHeight})},ref:E,className:$e.className,width:_e,height:xe,style:{aspectRatio:j,...M?{width:A.width+M.width,height:A.height+M.height}:{width:w,height:C},objectFit:S,...$e.style,...Ue.style}}),e&&(0,it.jsx)(mt.Spinner,{})]});if(Ye=fe&&ie?(0,it.jsx)(em,{href:b,children:(0,it.jsx)(ct.__experimentalImageEditor,{id:x,url:g,...A,naturalHeight:xe,naturalWidth:_e,onSaveImage:e=>o(e),onFinishEditing:()=>{se(!1)},borderProps:qe?void 0:$e})}):(0,it.jsx)(em,{href:b,children:Ye}),ge&&n&&!ie&&!pd.includes(p)){const e=j&&function(e){const[t,o=1]=e.split("/").map(Number),n=t/o;return n===1/0||0===n?NaN:n}(j),t=A.width/A.height,n=_e/xe,r=e||t||n||1,a=_e<xe?ad:ad*r,i=xe<_e?ad:ad/r,s=m||2.5*W;let l=!1,c=!1;"center"===_?(l=!0,c=!0):(0,pt.isRTL)()?"left"===_?l=!0:c=!0:"right"===_?c=!0:l=!0,Ke=(0,it.jsx)(mt.ResizableBox,{ref:F,style:{position:"absolute",inset:`${H}px 0 0 0`},size:A,minWidth:a,maxWidth:s,minHeight:i,maxHeight:s/r,lockAspectRatio:r,enable:{top:!1,right:l,bottom:!0,left:c},onResizeStart:()=>{K(!1)},onResize:(e,t,o,n)=>{z(n)},onResizeStop:(e,t,a,i)=>{K(!0),z(null),L((e=>({width:e.width+i.width,height:e.height+i.height}))),m&&_e>=m&&Math.abs(a.offsetWidth-m)<10?o({width:void 0,height:void 0}):o({width:`${a.offsetWidth}px`,height:"auto",aspectRatio:r===n?void 0:String(r)})},resizeRatio:"center"===_?2:1})}if(!g&&!e)return(0,it.jsxs)(it.Fragment,{children:[Fe,P?.bindings?Ee:Te]});const Xe=()=>{ee("postType",We,Ze,{featured_media:x}),X((0,pt.__)("Post featured image updated."),{type:"snackbar"})},et=(0,it.jsx)(ct.BlockSettingsMenuControls,{children:({selectedClientIds:e})=>1===e.length&&!Qe&&Ze&&x&&u===e[0]&&(0,it.jsx)(mt.MenuItem,{onClick:Xe,children:(0,pt.__)("Set as featured image")})});return(0,it.jsxs)(it.Fragment,{children:[Fe,Ee,et,Ye,Ke,(0,it.jsx)(zo,{attributes:t,setAttributes:o,isSelected:n,insertBlocksAfter:r,label:(0,pt.__)("Image caption text"),showToolbarButton:n&&(pe||me)&&!Le})]})}const nm=(e,t)=>t&&!e&&!(0,ht.isBlobURL)(t);function rm(e,t){return"url"in(e?.sizes?.[t]??{})||"source_url"in(e?.media_details?.sizes?.[t]??{})}var am=function({attributes:e,setAttributes:t,isSelected:o,className:n,insertBlocksAfter:r,onReplace:a,context:i,clientId:s,__unstableParentLayout:l}){const{url:c="",caption:u,id:d,width:p,height:m,sizeSlug:g,aspectRatio:h,scale:_,align:x,metadata:b}=e,[f,y]=(0,gt.useState)(e.blob),v=(0,gt.useRef)(),k=l?.type||l?.default?.type,w=!k||"flex"!==k&&"grid"!==k,[C,j]=function(){const[e,{width:t}]=(0,xt.useResizeObserver)(),o=(0,gt.useRef)();return[(0,it.jsx)("div",{className:"wp-block","aria-hidden":"true",style:{position:"absolute",inset:0,width:"100%",height:0,margin:0},ref:o,children:e}),t]}(),[S,{width:B}]=(0,xt.useResizeObserver)(),T=B&&B<160,N=(0,gt.useRef)();(0,gt.useEffect)((()=>{N.current=u}),[u]);const{__unstableMarkNextChangeAsNotPersistent:P,replaceBlock:I}=(0,lt.useDispatch)(ct.store);(0,gt.useEffect)((()=>{["wide","full"].includes(x)&&(P(),t({width:void 0,height:void 0,aspectRatio:void 0,scale:void 0}))}),[P,x,t]);const{getSettings:D,getBlockRootClientId:M,getBlockName:z,canInsertBlockType:A}=(0,lt.useSelect)(ct.store),L=(0,ct.useBlockEditingMode)(),{createErrorNotice:H}=(0,lt.useDispatch)(bo.store);function R(e){H(e,{type:"snackbar"}),t({src:void 0,id:void 0,url:void 0,blob:void 0})}function V(o){if(Array.isArray(o))return void function(e){const t=v.current?.ownerDocument.defaultView;if(e.every((e=>e instanceof t.File))){const t=e,o=M(s);t.some((e=>!_d(e)))&&H((0,pt.__)("If uploading to a gallery all files need to be image formats"),{id:"gallery-upload-invalid-file",type:"snackbar"});const n=t.filter((e=>_d(e))).map((e=>(0,st.createBlock)("core/image",{blob:(0,ht.createBlobURL)(e)})));if("core/gallery"===z(o))I(s,n);else if(A("core/gallery",o)){const e=(0,st.createBlock)("core/gallery",{},n);I(s,e)}}}(o);if(!o||!o.url)return t({url:void 0,alt:void 0,id:void 0,title:void 0,caption:void 0,blob:void 0}),void y();if((0,ht.isBlobURL)(o.url))return void y(o.url);const{imageDefaultSize:n}=D();let r=md;g&&rm(o,g)?r=g:rm(o,n)&&(r=n);let a,i=((e,t)=>{const o=Object.fromEntries(Object.entries(e??{}).filter((([e])=>["alt","id","link","caption"].includes(e))));return o.url=e?.sizes?.[t]?.url||e?.media_details?.sizes?.[t]?.source_url||e.url,o})(o,r);if("string"==typeof i.caption&&i.caption.includes("\n")&&(i.caption=i.caption.replace(/\n/g,"<br>")),N.current&&!i.caption){const{caption:e,...t}=i;i=t}o.id&&o.id===d||(a={sizeSlug:r});let l,c=e.linkDestination;if(!c)switch(window?.wp?.media?.view?.settings?.defaultProps?.link||id){case"file":case sd:c=sd;break;case"post":case ld:c=ld;break;case cd:c=cd;break;case id:c=id}switch(c){case sd:l=o.url;break;case ld:l=o.link}i.href=l,t({blob:void 0,...i,...a,linkDestination:c}),y()}function F(e){e!==c&&(t({blob:void 0,url:e,id:void 0,sizeSlug:D().imageDefaultSize}),y())}ft({url:f,allowedTypes:dd,onChange:V,onError:R});const E=nm(d,c)?c:void 0,O=!!c&&(0,it.jsx)("img",{alt:(0,pt.__)("Edit image"),title:(0,pt.__)("Edit image"),className:"edit-image-preview",src:c}),G=(0,ct.__experimentalUseBorderProps)(e),$=(0,ct.__experimentalGetShadowClassesAndStyles)(e),U=Dt(n,{"is-transient":!!f,"is-resized":!!p||!!m,[`size-${g}`]:g,"has-custom-border":!!G.className||G.style&&Object.keys(G.style).length>0}),q=(0,ct.useBlockProps)({ref:v,className:U}),{lockUrlControls:W=!1,lockUrlControlsMessage:Z}=(0,lt.useSelect)((e=>{if(!o)return{};const t=(0,st.getBlockBindingsSource)(b?.bindings?.url?.source);return{lockUrlControls:!!b?.bindings?.url&&!t?.canUserEditValue?.({select:e,context:i,args:b?.bindings?.url?.args}),lockUrlControlsMessage:t?.label?(0,pt.sprintf)((0,pt.__)("Connected to %s"),t.label):(0,pt.__)("Connected to dynamic data")}}),[i,o,b?.bindings?.url]);return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsxs)("figure",{...q,children:[(0,it.jsx)(om,{temporaryURL:f,attributes:e,setAttributes:t,isSingleSelected:o,insertBlocksAfter:r,onReplace:a,onSelectImage:V,onSelectURL:F,onUploadError:R,context:i,clientId:s,blockEditingMode:L,parentLayoutType:k,maxContentWidth:j}),(0,it.jsx)(ct.MediaPlaceholder,{icon:(0,it.jsx)(ct.BlockIcon,{icon:td}),onSelect:V,onSelectURL:F,onError:R,placeholder:e=>(0,it.jsxs)(mt.Placeholder,{className:Dt("block-editor-media-placeholder",{[G.className]:!!G.className&&!o}),icon:!T&&(W?Up:td),withIllustration:!o||T,label:!T&&(0,pt.__)("Image"),instructions:!W&&!T&&(0,pt.__)("Drag and drop an image, upload, or choose from your library."),style:{aspectRatio:p&&m||!h?void 0:h,width:m&&h?"100%":p,height:p&&h?"100%":m,objectFit:_,...G.style,...$.style},children:[W&&!T&&Z,!W&&!T&&e,S]}),accept:"image/*",allowedTypes:dd,handleUpload:e=>1===e.length,value:{id:d,src:E},mediaPreview:O,disableMediaButtons:f||c})]}),o&&w&&C]})};const im=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/image","title":"Image","category":"media","usesContext":["allowResize","imageCrop","fixedHeight","postId","postType","queryId"],"description":"Insert an image to make a visual statement.","keywords":["img","photo","picture"],"textdomain":"default","attributes":{"blob":{"type":"string","role":"local"},"url":{"type":"string","source":"attribute","selector":"img","attribute":"src","role":"content"},"alt":{"type":"string","source":"attribute","selector":"img","attribute":"alt","default":"","role":"content"},"caption":{"type":"rich-text","source":"rich-text","selector":"figcaption","role":"content"},"lightbox":{"type":"object","enabled":{"type":"boolean"}},"title":{"type":"string","source":"attribute","selector":"img","attribute":"title","role":"content"},"href":{"type":"string","source":"attribute","selector":"figure > a","attribute":"href","role":"content"},"rel":{"type":"string","source":"attribute","selector":"figure > a","attribute":"rel"},"linkClass":{"type":"string","source":"attribute","selector":"figure > a","attribute":"class"},"id":{"type":"number","role":"content"},"width":{"type":"string"},"height":{"type":"string"},"aspectRatio":{"type":"string"},"scale":{"type":"string"},"sizeSlug":{"type":"string"},"linkDestination":{"type":"string"},"linkTarget":{"type":"string","source":"attribute","selector":"figure > a","attribute":"target"}},"supports":{"interactivity":true,"align":["left","center","right","wide","full"],"anchor":true,"color":{"text":false,"background":false},"filter":{"duotone":true},"spacing":{"margin":true},"__experimentalBorder":{"color":true,"radius":true,"width":true,"__experimentalSkipSerialization":true,"__experimentalDefaultControls":{"color":true,"radius":true,"width":true}},"shadow":{"__experimentalSkipSerialization":true}},"selectors":{"border":".wp-block-image img, .wp-block-image .wp-block-image__crop-area, .wp-block-image .components-placeholder","shadow":".wp-block-image img, .wp-block-image .wp-block-image__crop-area, .wp-block-image .components-placeholder","filter":{"duotone":".wp-block-image img, .wp-block-image .components-placeholder"}},"styles":[{"name":"default","label":"Default","isDefault":true},{"name":"rounded","label":"Rounded"}],"editorStyle":"wp-block-image-editor","style":"wp-block-image"}');function sm(e,t){const{body:o}=document.implementation.createHTMLDocument("");o.innerHTML=e;const{firstElementChild:n}=o;if(n&&"A"===n.nodeName)return n.getAttribute(t)||void 0}const lm={img:{attributes:["src","alt","title"],classes:["alignleft","aligncenter","alignright","alignnone",/^wp-image-\d+$/]}},cm={from:[{type:"raw",isMatch:e=>"FIGURE"===e.nodeName&&!!e.querySelector("img"),schema:({phrasingContentSchema:e})=>({figure:{require:["img"],children:{...lm,a:{attributes:["href","rel","target"],classes:["*"],children:lm},figcaption:{children:e}}}}),transform:e=>{const t=e.className+" "+e.querySelector("img").className,o=/(?:^|\s)align(left|center|right)(?:$|\s)/.exec(t),n=""===e.id?void 0:e.id,r=o?o[1]:void 0,a=/(?:^|\s)wp-image-(\d+)(?:$|\s)/.exec(t),i=a?Number(a[1]):void 0,s=e.querySelector("a"),l=s&&s.href?"custom":void 0,c=s&&s.href?s.href:void 0,u=s&&s.rel?s.rel:void 0,d=s&&s.className?s.className:void 0,p=(0,st.getBlockAttributes)("core/image",e.outerHTML,{align:r,id:i,linkDestination:l,href:c,rel:u,linkClass:d,anchor:n});return(0,ht.isBlobURL)(p.url)&&(p.blob=p.url,delete p.url),(0,st.createBlock)("core/image",p)}},{type:"files",isMatch:e=>e.every((e=>0===e.type.indexOf("image/"))),transform:e=>e.map((e=>(0,st.createBlock)("core/image",{blob:(0,ht.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,{shortcode:t}){const{body:o}=document.implementation.createHTMLDocument("");o.innerHTML=t.content;let n=o.querySelector("img");for(;n&&n.parentNode&&n.parentNode!==o;)n=n.parentNode;return n&&n.parentNode.removeChild(n),o.innerHTML.trim()}},href:{shortcode:(e,{shortcode:t})=>sm(t.content,"href")},rel:{shortcode:(e,{shortcode:t})=>sm(t.content,"rel")},linkClass:{shortcode:(e,{shortcode:t})=>sm(t.content,"class")},id:{type:"number",shortcode:({named:{id:e}})=>{if(e)return parseInt(e.replace("attachment_",""),10)}},align:{type:"string",shortcode:({named:{align:e="alignnone"}})=>e.replace("align","")}}}]};var um=cm;const{name:dm}=im,pm={icon:td,example:{attributes:{sizeSlug:"large",url:"https://s.w.org/images/core/5.3/MtBlanc1.jpg",caption:(0,pt.__)("Mont Blanc appears—still, snowy, and serene.")}},__experimentalLabel(e,{context:t}){const o=e?.metadata?.name;if("list-view"===t&&o)return o;if("accessibility"===t){const{caption:t,alt:o,url:n}=e;return n?o?o+(t?". "+t:""):t||"":(0,pt.__)("Empty")}},getEditWrapperProps:e=>({"data-align":e.align}),transforms:um,edit:am,save:function({attributes:e}){const{url:t,alt:o,caption:n,align:r,href:a,rel:i,linkClass:s,width:l,height:c,aspectRatio:u,scale:d,id:p,linkTarget:m,sizeSlug:g,title:h,metadata:{bindings:_={}}={}}=e,x=i||void 0,b=(0,ct.__experimentalGetBorderClassesAndStyles)(e),f=(0,ct.__experimentalGetShadowClassesAndStyles)(e),y=Dt({alignnone:"none"===r,[`size-${g}`]:g,"is-resized":l||c,"has-custom-border":!!b.className||b.style&&Object.keys(b.style).length>0}),v=Dt(b.className,{[`wp-image-${p}`]:!!p}),k=(0,it.jsx)("img",{src:t,alt:o,className:v||void 0,style:{...b.style,...f.style,aspectRatio:u,objectFit:d,width:l,height:c},title:h}),w=!ct.RichText.isEmpty(n)||_.caption||"core/pattern-overrides"===_?.__default?.source,C=(0,it.jsxs)(it.Fragment,{children:[a?(0,it.jsx)("a",{className:s,href:a,target:m,rel:x,children:k}):k,w&&(0,it.jsx)(ct.RichText.Content,{className:(0,ct.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:n})]});return(0,it.jsx)("figure",{...ct.useBlockProps.save({className:y}),children:C})},deprecated:$p},mm=()=>jt({name:dm,metadata:im,settings:pm});var gm=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.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 hm=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"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":true},"displayDate":{"type":"boolean","default":true},"displayExcerpt":{"type":"boolean","default":true}},"supports":{"align":true,"color":{"gradients":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true,"link":true}},"html":false,"spacing":{"margin":true,"padding":true},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true}},"editorStyle":"wp-block-latest-comments-editor","style":"wp-block-latest-comments"}');const{name:_m}=hm,xm={icon:gm,example:{},edit:function({attributes:e,setAttributes:t}){const{commentsToShow:o,displayAvatar:n,displayDate:r,displayExcerpt:a}=e,i={...e,style:{...e?.style,spacing:void 0}},s=vt();return(0,it.jsxs)("div",{...(0,ct.useBlockProps)(),children:[(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{t({commentsToShow:5,displayAvatar:!0,displayDate:!0,displayExcerpt:!0})},dropdownMenuProps:s,children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!n,label:(0,pt.__)("Display avatar"),onDeselect:()=>t({displayAvatar:!0}),isShownByDefault:!0,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Display avatar"),checked:n,onChange:()=>t({displayAvatar:!n})})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!r,label:(0,pt.__)("Display date"),onDeselect:()=>t({displayDate:!0}),isShownByDefault:!0,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Display date"),checked:r,onChange:()=>t({displayDate:!r})})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!a,label:(0,pt.__)("Display excerpt"),onDeselect:()=>t({displayExcerpt:!0}),isShownByDefault:!0,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Display excerpt"),checked:a,onChange:()=>t({displayExcerpt:!a})})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>5!==o,label:(0,pt.__)("Number of comments"),onDeselect:()=>t({commentsToShow:5}),isShownByDefault:!0,children:(0,it.jsx)(mt.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,pt.__)("Number of comments"),value:o,onChange:e=>t({commentsToShow:e}),min:1,max:100,required:!0})})]})}),(0,it.jsx)(mt.Disabled,{children:(0,it.jsx)(dt(),{block:"core/latest-comments",attributes:i,urlQueryArgs:{_locale:"site"}})})]})}},bm=()=>jt({name:_m,metadata:hm,settings:xm});var fm=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.Path,{d:"M18 5.5H6a.5.5 0 0 0-.5.5v12a.5.5 0 0 0 .5.5h12a.5.5 0 0 0 .5-.5V6a.5.5 0 0 0-.5-.5ZM6 4h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2Zm1 5h1.5v1.5H7V9Zm1.5 4.5H7V15h1.5v-1.5ZM10 9h7v1.5h-7V9Zm7 4.5h-7V15h7v-1.5Z"})});const ym=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"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":false},"displayPostContentRadio":{"type":"string","default":"excerpt"},"excerptLength":{"type":"number","default":55},"displayAuthor":{"type":"boolean","default":false},"displayPostDate":{"type":"boolean","default":false},"postLayout":{"type":"string","default":"list"},"columns":{"type":"number","default":3},"order":{"type":"string","default":"desc"},"orderBy":{"type":"string","default":"date"},"displayFeaturedImage":{"type":"boolean","default":false},"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":false}},"supports":{"align":true,"html":false,"color":{"gradients":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true,"link":true}},"spacing":{"margin":true,"padding":true},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true,"__experimentalDefaultControls":{"radius":true,"color":true,"width":true,"style":true}},"interactivity":{"clientNavigation":true}},"editorStyle":"wp-block-latest-posts-editor","style":"wp-block-latest-posts"}'),{attributes:vm}=ym;var km=[{attributes:{...vm,categories:{type:"string"}},supports:{align:!0,html:!1},migrate:e=>({...e,categories:[{id:Number(e.categories)}]}),isEligible:({categories:e})=>e&&"string"==typeof e,save:()=>null}],wm=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M19 5.5H5V4h14v1.5ZM19 20H5v-1.5h14V20ZM5 9h14v6H5V9Z"})}),Cm=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M5 5.5h8V4H5v1.5ZM5 20h8v-1.5H5V20ZM19 9H5v6h14V9Z"})}),jm=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M19 5.5H5V4h14v1.5ZM19 20H5v-1.5h14V20ZM7 9h10v6H7V9Z"})}),Sm=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M19 5.5h-8V4h8v1.5ZM19 20h-8v-1.5h8V20ZM5 9h14v6H5V9Z"})}),Bm=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.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"})});const Tm={per_page:-1,_fields:"id,name",context:"view"},Nm={per_page:-1,has_published_posts:["post"],context:"view"},Pm=[{value:"none",icon:wm,label:(0,pt.__)("None")},{value:"left",icon:Cm,label:(0,pt.__)("Left")},{value:"center",icon:jm,label:(0,pt.__)("Center")},{value:"right",icon:Sm,label:(0,pt.__)("Right")}];function Im({attributes:e,setAttributes:t,postCount:o}){const{postsToShow:n,order:r,orderBy:a,categories:i,selectedAuthor:s,displayFeaturedImage:l,displayPostContentRadio:c,displayPostContent:u,displayPostDate:d,displayAuthor:p,postLayout:m,columns:g,excerptLength:h,featuredImageAlign:_,featuredImageSizeSlug:x,featuredImageSizeWidth:b,featuredImageSizeHeight:f,addLinkToFeaturedImage:y}=e,{imageSizes:v,defaultImageWidth:k,defaultImageHeight:w,categoriesList:C,authorList:j}=(0,lt.useSelect)((e=>{const{getEntityRecords:t,getUsers:o}=e(_t.store),n=e(ct.store).getSettings();return{defaultImageWidth:n.imageDimensions?.[x]?.width??0,defaultImageHeight:n.imageDimensions?.[x]?.height??0,imageSizes:n.imageSizes,categoriesList:t("taxonomy","category",Tm),authorList:o(Nm)}}),[x]),S=vt(),B=v.filter((({slug:e})=>"full"!==e)).map((({name:e,slug:t})=>({value:t,label:e}))),T=C?.reduce(((e,t)=>({...e,[t.name]:t})),{})??{};return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Post content"),resetAll:()=>t({displayPostContent:!1,displayPostContentRadio:"excerpt",excerptLength:55}),dropdownMenuProps:S,children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!!u,label:(0,pt.__)("Display post content"),onDeselect:()=>t({displayPostContent:!1}),isShownByDefault:!0,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Display post content"),checked:u,onChange:e=>t({displayPostContent:e})})}),u&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>"excerpt"!==c,label:(0,pt.__)("Content length"),onDeselect:()=>t({displayPostContentRadio:"excerpt"}),isShownByDefault:!0,children:(0,it.jsx)(mt.RadioControl,{label:(0,pt.__)("Content length"),selected:c,options:[{label:(0,pt.__)("Excerpt"),value:"excerpt"},{label:(0,pt.__)("Full post"),value:"full_post"}],onChange:e=>t({displayPostContentRadio:e})})}),u&&"excerpt"===c&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>55!==h,label:(0,pt.__)("Max number of words"),onDeselect:()=>t({excerptLength:55}),isShownByDefault:!0,children:(0,it.jsx)(mt.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,pt.__)("Max number of words"),value:h,onChange:e=>t({excerptLength:e}),min:10,max:100})})]}),(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Post meta"),resetAll:()=>t({displayAuthor:!1,displayPostDate:!1}),dropdownMenuProps:S,children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!!p,label:(0,pt.__)("Display author name"),onDeselect:()=>t({displayAuthor:!1}),isShownByDefault:!0,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Display author name"),checked:p,onChange:e=>t({displayAuthor:e})})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!!d,label:(0,pt.__)("Display post date"),onDeselect:()=>t({displayPostDate:!1}),isShownByDefault:!0,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Display post date"),checked:d,onChange:e=>t({displayPostDate:e})})})]}),(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Featured image"),resetAll:()=>t({displayFeaturedImage:!1,featuredImageAlign:void 0,featuredImageSizeSlug:"thumbnail",featuredImageSizeWidth:null,featuredImageSizeHeight:null,addLinkToFeaturedImage:!1}),dropdownMenuProps:S,children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!!l,label:(0,pt.__)("Display featured image"),onDeselect:()=>t({displayFeaturedImage:!1}),isShownByDefault:!0,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Display featured image"),checked:l,onChange:e=>t({displayFeaturedImage:e})})}),l&&(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>"thumbnail"!==x||null!==b||null!==f,label:(0,pt.__)("Image size"),onDeselect:()=>t({featuredImageSizeSlug:"thumbnail",featuredImageSizeWidth:null,featuredImageSizeHeight:null}),isShownByDefault:!0,children:(0,it.jsx)(ct.__experimentalImageSizeControl,{onChange:e=>{const o={};e.hasOwnProperty("width")&&(o.featuredImageSizeWidth=e.width),e.hasOwnProperty("height")&&(o.featuredImageSizeHeight=e.height),t(o)},slug:x,width:b,height:f,imageWidth:k,imageHeight:w,imageSizeOptions:B,imageSizeHelp:(0,pt.__)("Select the size of the source image."),onChangeImage:e=>t({featuredImageSizeSlug:e,featuredImageSizeWidth:void 0,featuredImageSizeHeight:void 0})})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!!_,label:(0,pt.__)("Image alignment"),onDeselect:()=>t({featuredImageAlign:void 0}),isShownByDefault:!0,children:(0,it.jsx)(mt.__experimentalToggleGroupControl,{className:"editor-latest-posts-image-alignment-control",__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,pt.__)("Image alignment"),value:_||"none",onChange:e=>t({featuredImageAlign:"none"!==e?e:void 0}),children:Pm.map((({value:e,icon:t,label:o})=>(0,it.jsx)(mt.__experimentalToggleGroupControlOptionIcon,{value:e,icon:t,label:o},e)))})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!!y,label:(0,pt.__)("Add link to featured image"),onDeselect:()=>t({addLinkToFeaturedImage:!1}),isShownByDefault:!0,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Add link to featured image"),checked:y,onChange:e=>t({addLinkToFeaturedImage:e})})})]})]}),(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Sorting and filtering"),resetAll:()=>t({order:"desc",orderBy:"date",postsToShow:5,categories:void 0,selectedAuthor:void 0,columns:3}),dropdownMenuProps:S,children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>"desc"!==r||"date"!==a||5!==n||i?.length>0||!!s,label:(0,pt.__)("Sort and filter"),onDeselect:()=>t({order:"desc",orderBy:"date",postsToShow:5,categories:void 0,selectedAuthor:void 0}),isShownByDefault:!0,children:(0,it.jsx)(mt.QueryControls,{order:r,orderBy:a,numberOfItems:n,onOrderChange:e=>t({order:e}),onOrderByChange:e=>t({orderBy:e}),onNumberOfItemsChange:e=>t({postsToShow:e}),categorySuggestions:T,onCategoryChange:e=>{if(e.some((e=>"string"==typeof e&&!T[e])))return;const o=e.map((e=>"string"==typeof e?T[e]:e));if(o.includes(null))return!1;t({categories:o})},selectedCategories:i,onAuthorChange:e=>t({selectedAuthor:""!==e?Number(e):void 0}),authorList:j??[],selectedAuthorId:s})}),"grid"===m&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>3!==g,label:(0,pt.__)("Columns"),onDeselect:()=>t({columns:3}),isShownByDefault:!0,children:(0,it.jsx)(mt.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,pt.__)("Columns"),value:g,onChange:e=>t({columns:e}),min:2,max:o?Math.min(6,o):6,required:!0})})]})]})}const{name:Dm}=ym,Mm={icon:fm,example:{},edit:function e({attributes:t,setAttributes:o}){const n=(0,xt.useInstanceId)(e),{postsToShow:r,order:a,orderBy:i,categories:s,selectedAuthor:l,displayFeaturedImage:c,displayPostContentRadio:u,displayPostContent:d,displayPostDate:p,displayAuthor:m,postLayout:g,columns:h,excerptLength:_,featuredImageAlign:x,featuredImageSizeSlug:b,featuredImageSizeWidth:f,featuredImageSizeHeight:y,addLinkToFeaturedImage:v}=t,{latestPosts:k}=(0,lt.useSelect)((e=>{const{getEntityRecords:t}=e(_t.store),o=s&&s.length>0?s.map((e=>e.id)):[];return{latestPosts:t("postType","post",Object.fromEntries(Object.entries({categories:o,author:l,order:a,orderby:i,per_page:r,_embed:"author,wp:featuredmedia",ignore_sticky:!0}).filter((([,e])=>void 0!==e))))}}),[r,a,i,s,l]),{createWarningNotice:w}=(0,lt.useDispatch)(bo.store),C=e=>{e.preventDefault(),w((0,pt.__)("Links are disabled in the editor."),{id:`block-library/core/latest-posts/redirection-prevented/${n}`,type:"snackbar"})},j=!!k?.length,S=(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsx)(Im,{attributes:t,setAttributes:o,postCount:k?.length??0})}),B=(0,ct.useBlockProps)({className:Dt({"wp-block-latest-posts__list":!0,"is-grid":"grid"===g,"has-dates":p,"has-author":m,[`columns-${h}`]:"grid"===g})});if(!j)return(0,it.jsxs)("div",{...B,children:[S,(0,it.jsx)(mt.Placeholder,{icon:Wn,label:(0,pt.__)("Latest Posts"),children:Array.isArray(k)?(0,pt.__)("No posts found."):(0,it.jsx)(mt.Spinner,{})})]});const T=k.length>r?k.slice(0,r):k,N=[{icon:Bm,title:(0,pt._x)("List view","Latest posts block display setting"),onClick:()=>o({postLayout:"list"}),isActive:"list"===g},{icon:qd,title:(0,pt._x)("Grid view","Latest posts block display setting"),onClick:()=>o({postLayout:"grid"}),isActive:"grid"===g}],P=(0,ja.getSettings)().formats.date;return(0,it.jsxs)(it.Fragment,{children:[S,(0,it.jsx)(ct.BlockControls,{children:(0,it.jsx)(mt.ToolbarGroup,{controls:N})}),(0,it.jsx)("ul",{...B,children:T.map((e=>{const t=e.title.rendered.trim();let o=e.excerpt.rendered;const n=function(e){return e._embedded?.author?.[0]}(e),r=document.createElement("div");r.innerHTML=o,o=r.textContent||r.innerText||"";const{url:a,alt:i}=function(e,t){const o=e._embedded?.["wp:featuredmedia"]?.[0];return{url:o?.media_details?.sizes?.[t]?.source_url??o?.source_url,alt:o?.alt_text}}(e,b),s=Dt({"wp-block-latest-posts__featured-image":!0,[`align${x}`]:!!x}),l=c&&a,g=l&&(0,it.jsx)("img",{src:a,alt:i,style:{maxWidth:f,maxHeight:y}}),h=_<o.trim().split(" ").length&&""===e.excerpt.raw?(0,it.jsxs)(it.Fragment,{children:[o.trim().split(" ",_).join(" "),(0,gt.createInterpolateElement)((0,pt.sprintf)((0,pt.__)("… <a>Read more<span>: %1$s</span></a>"),t||(0,pt.__)("(no title)")),{a:(0,it.jsx)("a",{className:"wp-block-latest-posts__read-more",href:e.link,rel:"noopener noreferrer",onClick:C}),span:(0,it.jsx)("span",{className:"screen-reader-text"})})]}):o;return(0,it.jsxs)("li",{children:[l&&(0,it.jsx)("div",{className:s,children:v?(0,it.jsx)("a",{href:e.link,onClick:C,children:g}):g}),(0,it.jsx)("a",{className:"wp-block-latest-posts__post-title",href:e.link,dangerouslySetInnerHTML:t?{__html:t}:void 0,onClick:C,children:t?null:(0,pt.__)("(no title)")}),m&&n&&(0,it.jsx)("div",{className:"wp-block-latest-posts__post-author",children:(0,pt.sprintf)((0,pt.__)("by %s"),n.name)}),p&&e.date_gmt&&(0,it.jsx)("time",{dateTime:(0,ja.format)("c",e.date_gmt),className:"wp-block-latest-posts__post-date",children:(0,ja.dateI18n)(P,e.date_gmt)}),d&&"excerpt"===u&&(0,it.jsx)("div",{className:"wp-block-latest-posts__post-excerpt",children:h}),d&&"full_post"===u&&(0,it.jsx)("div",{className:"wp-block-latest-posts__post-full-content",dangerouslySetInnerHTML:{__html:e.content.raw.trim()}})]},e.id)}))})]})},deprecated:km},zm=()=>jt({name:Dm,metadata:ym,settings:Mm}),Am={A:"upper-alpha",a:"lower-alpha",I:"upper-roman",i:"lower-roman"};function Lm(e){const{values:t,start:o,reversed:n,ordered:r,type:a,...i}=e,s=document.createElement(r?"ol":"ul");s.innerHTML=t,o&&s.setAttribute("start",o),n&&s.setAttribute("reversed",!0),a&&s.setAttribute("type",a);const[l]=(0,st.rawHandler)({HTML:s.outerHTML});return[{...i,...l.attributes},l.innerBlocks]}const Hm={attributes:{ordered:{type:"boolean",default:!1,role:"content"},values:{type:"string",source:"html",selector:"ol,ul",multiline:"li",__unstableMultilineWrapperTags:["ol","ul"],default:"",role:"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({attributes:e}){const{ordered:t,values:o,type:n,reversed:r,start:a}=e,i=t?"ol":"ul";return(0,it.jsx)(i,{...ct.useBlockProps.save({type:n,reversed:r,start:a}),children:(0,it.jsx)(ct.RichText.Content,{value:o,multiline:"li"})})},migrate:Yo,isEligible:({style:e})=>e?.typography?.fontFamily},Rm={attributes:{ordered:{type:"boolean",default:!1,role:"content"},values:{type:"string",source:"html",selector:"ol,ul",multiline:"li",__unstableMultilineWrapperTags:["ol","ul"],default:"",role:"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,__experimentalDefaultControls:{background:!0,text:!0}},__unstablePasteTextInline:!0,__experimentalSelector:"ol,ul",__experimentalSlashInserter:!0},save({attributes:e}){const{ordered:t,values:o,type:n,reversed:r,start:a}=e,i=t?"ol":"ul";return(0,it.jsx)(i,{...ct.useBlockProps.save({type:n,reversed:r,start:a}),children:(0,it.jsx)(ct.RichText.Content,{value:o,multiline:"li"})})},migrate:Lm},Vm={attributes:{ordered:{type:"boolean",default:!1,role:"content"},values:{type:"string",source:"html",selector:"ol,ul",multiline:"li",__unstableMultilineWrapperTags:["ol","ul"],default:"",role:"content"},type:{type:"string"},start:{type:"number"},reversed:{type:"boolean"},placeholder:{type:"string"}},supports:{anchor:!0,className:!1,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},__unstablePasteTextInline:!0,__experimentalSelector:"ol,ul",__experimentalSlashInserter:!0},isEligible:({type:e})=>!!e,save({attributes:e}){const{ordered:t,type:o,reversed:n,start:r}=e,a=t?"ol":"ul";return(0,it.jsx)(a,{...ct.useBlockProps.save({type:o,reversed:n,start:r}),children:(0,it.jsx)(ct.InnerBlocks.Content,{})})},migrate:function(e){const{type:t}=e;return t&&Am[t]?{...e,type:Am[t]}:e}},Fm={attributes:{ordered:{type:"boolean",default:!1,role:"content"},values:{type:"string",source:"html",selector:"ol,ul",multiline:"li",__unstableMultilineWrapperTags:["ol","ul"],default:"",role:"content"},type:{type:"string"},start:{type:"number"},reversed:{type:"boolean"},placeholder:{type:"string"}},supports:{anchor:!0,className:!1,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},__unstablePasteTextInline:!0,__experimentalSelector:"ol,ul",__experimentalOnMerge:"true",__experimentalSlashInserter:!0},save({attributes:e}){const{ordered:t,type:o,reversed:n,start:r}=e,a=t?"ol":"ul";return(0,it.jsx)(a,{...ct.useBlockProps.save({reversed:n,start:r,style:{listStyleType:t&&"decimal"!==o?o:void 0}}),children:(0,it.jsx)(ct.InnerBlocks.Content,{})})}};var Em=[Fm,Vm,Rm,Hm],Om=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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"})}),Gm=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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"})}),$m=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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"})}),Um=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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"})}),qm=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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"})}),Wm=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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"})});const Zm=window.wp.deprecated;var Jm=r.n(Zm);const Qm=[{label:(0,pt.__)("Numbers"),value:"decimal"},{label:(0,pt.__)("Uppercase letters"),value:"upper-alpha"},{label:(0,pt.__)("Lowercase letters"),value:"lower-alpha"},{label:(0,pt.__)("Uppercase Roman numerals"),value:"upper-roman"},{label:(0,pt.__)("Lowercase Roman numerals"),value:"lower-roman"}];var Km=({setAttributes:e,reversed:t,start:o,type:n})=>{const r=vt();return(0,it.jsx)(ct.InspectorControls,{children:gt.Platform.isNative?(0,it.jsxs)(mt.PanelBody,{title:(0,pt.__)("Settings"),children:[(0,it.jsx)(mt.SelectControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("List style"),options:Qm,value:n,onChange:t=>e({type:t})}),(0,it.jsx)(mt.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("Start value"),type:"number",onChange:t=>{const o=parseInt(t,10);e({start:isNaN(o)?void 0:o})},value:Number.isInteger(o)?o.toString(10):"",step:"1"}),(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Reverse order"),checked:t||!1,onChange:t=>{e({reversed:t||void 0})}})]}):(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{e({type:void 0,start:void 0,reversed:void 0})},dropdownMenuProps:r,children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("List style"),isShownByDefault:!0,hasValue:()=>!!n,onDeselect:()=>e({type:void 0}),children:(0,it.jsx)(mt.SelectControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("List style"),options:Qm,value:n||"decimal",onChange:t=>e({type:t})})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Start value"),isShownByDefault:!0,hasValue:()=>!!o,onDeselect:()=>e({start:void 0}),children:(0,it.jsx)(mt.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("Start value"),type:"number",onChange:t=>{const o=parseInt(t,10);e({start:isNaN(o)?void 0:o})},value:Number.isInteger(o)?o.toString(10):"",step:"1"})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Reverse order"),isShownByDefault:!0,hasValue:()=>!!t,onDeselect:()=>e({reversed:void 0}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Reverse order"),checked:t||!1,onChange:t=>{e({reversed:t||void 0})}})})]})})};var Ym=(0,gt.forwardRef)((function(e,t){const{ordered:o,...n}=e,r=o?"ol":"ul";return(0,it.jsx)(r,{ref:t,...n})}));const Xm={name:"core/list-item"},eg=[["core/list-item"]];function tg({clientId:e}){const t=function(e){const{replaceBlocks:t,selectionChange:o}=(0,lt.useDispatch)(ct.store),{getBlockRootClientId:n,getBlockAttributes:r,getBlock:a}=(0,lt.useSelect)(ct.store);return(0,gt.useCallback)((()=>{const i=n(e),s=r(i),l=(0,st.createBlock)("core/list-item",s),{innerBlocks:c}=a(e);t([i],[l,...c]),o(c[c.length-1].clientId)}),[e])}(e),o=(0,lt.useSelect)((t=>{const{getBlockRootClientId:o,getBlockName:n}=t(ct.store);return"core/list-item"===n(o(e))}),[e]);return(0,it.jsx)(it.Fragment,{children:(0,it.jsx)(mt.ToolbarButton,{icon:(0,pt.isRTL)()?Om:Gm,title:(0,pt.__)("Outdent"),description:(0,pt.__)("Outdent list item"),disabled:!o,onClick:t})})}const og=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/list","title":"List","category":"text","allowedBlocks":["core/list-item"],"description":"An organized collection of items displayed in a specific order.","keywords":["bullet list","ordered list","numbered list"],"textdomain":"default","attributes":{"ordered":{"type":"boolean","default":false,"role":"content"},"values":{"type":"string","source":"html","selector":"ol,ul","multiline":"li","default":"","role":"content"},"type":{"type":"string"},"start":{"type":"number"},"reversed":{"type":"boolean"},"placeholder":{"type":"string"}},"supports":{"anchor":true,"html":false,"__experimentalBorder":{"color":true,"radius":true,"style":true,"width":true},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"color":{"gradients":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true}},"spacing":{"margin":true,"padding":true,"__experimentalDefaultControls":{"margin":false,"padding":false}},"__unstablePasteTextInline":true,"__experimentalOnMerge":true,"__experimentalSlashInserter":true,"interactivity":{"clientNavigation":true}},"selectors":{"border":".wp-block-list:not(.wp-block-list .wp-block-list)"},"editorStyle":"wp-block-list-editor","style":"wp-block-list"}');function ng({phrasingContentSchema:e}){const t={...e,ul:{},ol:{attributes:["type","start","reversed"]}};return["ul","ol"].forEach((e=>{t[e].children={li:{children:t}}})),t}function rg(e){return e.flatMap((({name:e,attributes:t,innerBlocks:o=[]})=>"core/list-item"===e?[t.content,...rg(o)]:rg(o)))}const ag={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph","core/heading"],transform:e=>{let t=[];if(e.length>1)t=e.map((({content:e})=>(0,st.createBlock)("core/list-item",{content:e})));else if(1===e.length){const o=(0,Tn.create)({html:e[0].content});t=(0,Tn.split)(o,"\n").map((e=>(0,st.createBlock)("core/list-item",{content:(0,Tn.toHTMLString)({value:e})})))}return(0,st.createBlock)("core/list",{anchor:e.anchor},t)}},{type:"raw",selector:"ol,ul",schema:e=>({ol:ng(e).ol,ul:ng(e).ul}),transform:function e(t){const o=t.getAttribute("type"),n={ordered:"OL"===t.tagName,anchor:""===t.id?void 0:t.id,start:t.getAttribute("start")?parseInt(t.getAttribute("start"),10):void 0,reversed:!!t.hasAttribute("reversed")||void 0,type:o&&Am[o]?Am[o]:void 0},r=Array.from(t.children).map((t=>{const o=Array.from(t.childNodes).filter((e=>e.nodeType!==e.TEXT_NODE||0!==e.textContent.trim().length));o.reverse();const[n,...r]=o;if(!("UL"===n?.tagName||"OL"===n?.tagName))return(0,st.createBlock)("core/list-item",{content:t.innerHTML});const a=r.map((e=>e.nodeType===e.TEXT_NODE?e.textContent:e.outerHTML));a.reverse();const i={content:a.join("").trim()},s=[e(n)];return(0,st.createBlock)("core/list-item",i,s)}));return(0,st.createBlock)("core/list",n,r)}},...["*","-"].map((e=>({type:"prefix",prefix:e,transform:e=>(0,st.createBlock)("core/list",{},[(0,st.createBlock)("core/list-item",{content:e})])}))),...["1.","1)"].map((e=>({type:"prefix",prefix:e,transform:e=>(0,st.createBlock)("core/list",{ordered:!0},[(0,st.createBlock)("core/list-item",{content:e})])})))],to:[...["core/paragraph","core/heading"].map((e=>({type:"block",blocks:[e],transform:(t,o)=>rg(o).map((t=>(0,st.createBlock)(e,{content:t})))})))]};var ig=ag;const{name:sg}=og,lg={icon:Bm,example:{innerBlocks:[{name:"core/list-item",attributes:{content:(0,pt.__)("Alice.")}},{name:"core/list-item",attributes:{content:(0,pt.__)("The White Rabbit.")}},{name:"core/list-item",attributes:{content:(0,pt.__)("The Cheshire Cat.")}},{name:"core/list-item",attributes:{content:(0,pt.__)("The Mad Hatter.")}},{name:"core/list-item",attributes:{content:(0,pt.__)("The Queen of Hearts.")}}]},transforms:ig,edit:function({attributes:e,setAttributes:t,clientId:o,style:n}){const{ordered:r,type:a,reversed:i,start:s}=e,l=(0,ct.useBlockProps)({style:{...gt.Platform.isNative&&n,listStyleType:r&&"decimal"!==a?a:void 0}}),c=(0,ct.useInnerBlocksProps)(l,{defaultBlock:Xm,directInsert:!0,template:eg,templateLock:!1,templateInsertUpdatesSelection:!0,...gt.Platform.isNative&&{marginVertical:8,marginHorizontal:8,renderAppender:!1},__experimentalCaptureToolbars:!0});!function(e,t){const o=(0,lt.useRegistry)(),{updateBlockAttributes:n,replaceInnerBlocks:r}=(0,lt.useDispatch)(ct.store);(0,gt.useEffect)((()=>{if(!e.values)return;const[a,i]=Lm(e);Jm()("Value attribute on the list block",{since:"6.0",version:"6.5",alternative:"inner blocks"}),o.batch((()=>{n(t,a),r(t,i)}))}),[e.values])}(e,o);const u=(0,it.jsxs)(ct.BlockControls,{group:"block",children:[(0,it.jsx)(mt.ToolbarButton,{icon:(0,pt.isRTL)()?$m:Um,title:(0,pt.__)("Unordered"),description:(0,pt.__)("Convert to unordered list"),isActive:!1===r,onClick:()=>{t({ordered:!1})}}),(0,it.jsx)(mt.ToolbarButton,{icon:(0,pt.isRTL)()?qm:Wm,title:(0,pt.__)("Ordered"),description:(0,pt.__)("Convert to ordered list"),isActive:!0===r,onClick:()=>{t({ordered:!0})}}),(0,it.jsx)(tg,{clientId:o})]});return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(Ym,{ordered:r,reversed:i,start:s,...c}),u,r&&(0,it.jsx)(Km,{setAttributes:t,reversed:i,start:s,type:a})]})},save:function({attributes:e}){const{ordered:t,type:o,reversed:n,start:r}=e,a=t?"ol":"ul";return(0,it.jsx)(a,{...ct.useBlockProps.save({reversed:n,start:r,style:{listStyleType:t&&"decimal"!==o?o:void 0}}),children:(0,it.jsx)(ct.InnerBlocks.Content,{})})},deprecated:Em},cg=()=>jt({name:sg,metadata:og,settings:lg});var ug=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M11.2 6.8c-.7 0-1.4.5-1.6 1.1l-2.8 7.5-1.2-1.8c-.1-.2-.4-.3-.6-.3H3v1.5h1.6l1.2 1.8c.6.9 1.9.7 2.2-.3l2.9-7.9s.1-.2.2-.2h7.8V6.7h-7.8Zm5.3 3.4-1.9 1.9-1.9-1.9-1.1 1.1 1.9 1.9-1.9 1.9 1.1 1.1 1.9-1.9 1.9 1.9 1.1-1.1-1.9-1.9 1.9-1.9-1.1-1.1Z"})});const{Badge:dg}=jo(mt.privateApis);const pg=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/math","title":"Math","category":"text","description":"Display mathematical notation using LaTeX.","keywords":["equation","formula","latex","mathematics"],"textdomain":"default","supports":{"html":false},"attributes":{"latex":{"type":"string","role":"content"},"mathML":{"type":"string","source":"html","selector":"math"}}}');const mg={attributes:{latex:{type:"string",role:"content"},mathML:{type:"string",source:"html",selector:"math"}},save({attributes:e}){const{latex:t,mathML:o}=e;return t?(0,it.jsx)("math",{...ct.useBlockProps.save(),display:"block",dangerouslySetInnerHTML:{__html:o}}):null}};var gg=[mg];const{name:hg}=pg,_g={icon:ug,example:{attributes:{latex:"x = \\frac{-b \\pm \\sqrt{b^2-4ac}}{2a}",mathML:'<semantics><mrow><mi>x</mi><mo>=</mo><mfrac><mrow><mo lspace="0em" rspace="0em">−</mo><mi>b</mi><mo>±</mo><msqrt><mrow><msup><mi>b</mi><mn>2</mn></msup><mo>−</mo><mn>4</mn><mi>a</mi><mi>c</mi></mrow></msqrt></mrow><mrow><mn>2</mn><mi>a</mi></mrow></mfrac></mrow><annotation encoding="application/x-tex">x = \\frac{-b \\pm \\sqrt{b^2-4ac}}{2a}</annotation></semantics>'},viewportWidth:300},edit:function({attributes:e,setAttributes:t,isSelected:o}){const{latex:n,mathML:a}=e,[i,s]=(0,gt.useState)(),[l,c]=(0,gt.useState)(null),[u,d]=(0,gt.useState)(),p=(0,gt.useRef)(n),{__unstableMarkNextChangeAsNotPersistent:m}=(0,lt.useDispatch)(ct.store);(0,gt.useEffect)((()=>{Promise.resolve().then(r.t.bind(r,3533,23)).then((e=>{d((()=>e.default)),p.current&&(m(),t({mathML:e.default(p.current,{displayMode:!0})}))}))}),[p,t,m]);const g=(0,ct.useBlockProps)({ref:s,position:"relative"});return(0,it.jsxs)("div",{...g,children:[a?(0,it.jsx)("math",{display:"block",dangerouslySetInnerHTML:{__html:a}}):"​",o&&(0,it.jsx)(mt.Popover,{placement:"bottom-start",offset:8,anchor:i,focusOnMount:"firstContentElement",children:(0,it.jsx)("div",{style:{padding:"4px",minWidth:"300px"},children:(0,it.jsxs)(mt.__experimentalVStack,{spacing:1,children:[(0,it.jsx)(mt.TextareaControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,pt.__)("LaTeX math syntax"),hideLabelFromVision:!0,value:n,className:"wp-block-math__textarea-control",onChange:e=>{if(!u)return void t({latex:e});let o="";try{o=u(e,{displayMode:!0}),c(null)}catch(e){c(e.message)}t({mathML:o,latex:e})},placeholder:(0,pt.__)("e.g., x^2, \\frac{a}{b}")}),l&&(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(dg,{intent:"error",className:"wp-block-math__error",children:l}),(0,it.jsx)("style",{children:".wp-block-math__error .components-badge__content{white-space:normal}"})]})]})})})]})},save:function({attributes:e}){const{latex:t,mathML:o}=e;return t?(0,it.jsx)("div",{...ct.useBlockProps.save(),children:(0,it.jsx)("math",{display:"block",dangerouslySetInnerHTML:{__html:o}})}):null},deprecated:gg},xg=()=>jt({name:hg,metadata:pg,settings:_g});var bg=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M12 11v1.5h8V11h-8zm-6-1c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"})});const fg=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/list-item","title":"List Item","category":"text","parent":["core/list"],"allowedBlocks":["core/list"],"description":"An individual item within a list.","textdomain":"default","attributes":{"placeholder":{"type":"string"},"content":{"type":"rich-text","source":"rich-text","selector":"li","role":"content"}},"supports":{"anchor":true,"className":false,"splitting":true,"__experimentalBorder":{"color":true,"radius":true,"style":true,"width":true},"color":{"gradients":true,"link":true,"background":true,"__experimentalDefaultControls":{"text":true}},"spacing":{"margin":true,"padding":true,"__experimentalDefaultControls":{"margin":false,"padding":false}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true}},"selectors":{"root":".wp-block-list > li","border":".wp-block-list:not(.wp-block-list .wp-block-list) > li"}}');var yg=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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"})}),vg=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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"})});function kg(e){const{replaceBlocks:t,selectionChange:o,multiSelect:n}=(0,lt.useDispatch)(ct.store),{getBlock:r,getPreviousBlockClientId:a,getSelectionStart:i,getSelectionEnd:s,hasMultiSelection:l,getMultiSelectedBlockClientIds:c}=(0,lt.useSelect)(ct.store);return(0,gt.useCallback)((()=>{const u=l(),d=u?c():[e],p=d.map((e=>(0,st.cloneBlock)(r(e)))),m=a(e),g=(0,st.cloneBlock)(r(m));g.innerBlocks?.length||(g.innerBlocks=[(0,st.createBlock)("core/list")]),g.innerBlocks[g.innerBlocks.length-1].innerBlocks.push(...p);const h=i(),_=s();return t([m,...d],[g]),u?n(p[0].clientId,p[p.length-1].clientId):o(p[0].clientId,_.attributeKey,_.clientId===h.clientId?h.offset:_.offset,_.offset),!0}),[e])}function wg(){const e=(0,lt.useRegistry)(),{moveBlocksToPosition:t,removeBlock:o,insertBlock:n,updateBlockListSettings:r}=(0,lt.useDispatch)(ct.store),{getBlockRootClientId:a,getBlockName:i,getBlockOrder:s,getBlockIndex:l,getSelectedBlockClientIds:c,getBlock:u,getBlockListSettings:d}=(0,lt.useSelect)(ct.store);return(0,gt.useCallback)(((p=c())=>{if(Array.isArray(p)||(p=[p]),!p.length)return;const m=p[0];if("core/list-item"!==i(m))return;const g=function(e){const t=a(e),o=a(t);if(o&&"core/list-item"===i(o))return o}(m);if(!g)return;const h=a(m),_=p[p.length-1],x=s(h).slice(l(_)+1);return e.batch((()=>{if(x.length){let e=s(m)[0];if(!e){const t=(0,st.cloneBlock)(u(h),{},[]);e=t.clientId,n(t,0,m,!1),r(e,d(h))}t(x,h,e)}if(t(p,h,a(g),l(g)+1),!s(h).length){o(h,!1)}})),!0}),[])}function Cg(e,t){const o=(0,lt.useRegistry)(),{getPreviousBlockClientId:n,getNextBlockClientId:r,getBlockOrder:a,getBlockRootClientId:i,getBlockName:s}=(0,lt.useSelect)(ct.store),{mergeBlocks:l,moveBlocksToPosition:c}=(0,lt.useDispatch)(ct.store),u=wg();function d(e){const t=a(e);return t.length?d(t[t.length-1]):e}function p(e){const t=i(e),o=i(t);if(o&&"core/list-item"===s(o))return o}function m(e){const t=r(e);if(t)return t;const o=p(e);return o?m(o):void 0}function g(e){const t=a(e);return t.length?a(t[0])[0]:m(e)}return r=>{function s(e,t){o.batch((()=>{const[o]=a(t);o&&(n(t)!==e||a(e).length?c(a(o),o,i(e)):c([o],t,e)),l(e,t)}))}if(r){const o=g(e);if(!o)return void t(r);p(o)?u(o):s(e,o)}else{const o=n(e);if(p(e))u(e);else if(o){s(d(o),e)}else t(r)}}}function jg({clientId:e}){const t=kg(e),o=wg(),{canIndent:n,canOutdent:r}=(0,lt.useSelect)((t=>{const{getBlockIndex:o,getBlockRootClientId:n,getBlockName:r}=t(ct.store);return{canIndent:o(e)>0,canOutdent:"core/list-item"===r(n(n(e)))}}),[e]);return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(mt.ToolbarButton,{icon:(0,pt.isRTL)()?Om:Gm,title:(0,pt.__)("Outdent"),shortcut:mn.displayShortcut.shift("Tab"),description:(0,pt.__)("Outdent list item"),disabled:!r,onClick:()=>o()}),(0,it.jsx)(mt.ToolbarButton,{icon:(0,pt.isRTL)()?yg:vg,title:(0,pt.__)("Indent"),shortcut:"Tab",description:(0,pt.__)("Indent list item"),disabled:!n,onClick:()=>t()})]})}const Sg={to:[{type:"block",blocks:["core/paragraph"],transform:(e,t=[])=>[(0,st.createBlock)("core/paragraph",e),...t.map((e=>(0,st.cloneBlock)(e)))]}]};var Bg=Sg;const{name:Tg}=fg,Ng={icon:bg,edit:function({attributes:e,setAttributes:t,clientId:o,mergeBlocks:n}){const{placeholder:r,content:a}=e,i=(0,ct.useBlockProps)(),s=(0,ct.useInnerBlocksProps)(i,{renderAppender:!1,__unstableDisableDropZone:!0}),l=function(e){const{replaceBlocks:t,selectionChange:o}=(0,lt.useDispatch)(ct.store),{getBlock:n,getBlockRootClientId:r,getBlockIndex:a,getBlockName:i}=(0,lt.useSelect)(ct.store),s=(0,gt.useRef)(e);s.current=e;const l=wg();return(0,xt.useRefEffect)((e=>{function c(e){if(e.defaultPrevented||e.keyCode!==mn.ENTER)return;const{content:c,clientId:u}=s.current;if(c.length)return;if(e.preventDefault(),"core/list-item"===i(r(r(s.current.clientId))))return void l();const d=n(r(u)),p=a(u),m=(0,st.cloneBlock)({...d,innerBlocks:d.innerBlocks.slice(0,p)}),g=(0,st.createBlock)((0,st.getDefaultBlockName)()),h=[...d.innerBlocks[p].innerBlocks[0]?.innerBlocks||[],...d.innerBlocks.slice(p+1)],_=h.length?[(0,st.cloneBlock)({...d,innerBlocks:h})]:[];t(d.clientId,[m,g,..._],1),o(g.clientId)}return e.addEventListener("keydown",c),()=>{e.removeEventListener("keydown",c)}}),[])}({content:a,clientId:o}),c=function(e){const{getSelectionStart:t,getSelectionEnd:o,getBlockIndex:n}=(0,lt.useSelect)(ct.store),r=kg(e),a=wg();return(0,xt.useRefEffect)((i=>{function s(i){const{keyCode:s,shiftKey:l,altKey:c,metaKey:u,ctrlKey:d}=i;if(i.defaultPrevented||s!==mn.SPACE&&s!==mn.TAB||c||u||d)return;const p=t(),m=o();0===p.offset&&0===m.offset&&(l?s===mn.TAB&&a()&&i.preventDefault():0!==n(e)&&r()&&i.preventDefault())}return i.addEventListener("keydown",s),()=>{i.removeEventListener("keydown",s)}}),[e,r])}(o),u=Cg(o,n);return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsxs)("li",{...s,children:[(0,it.jsx)(ct.RichText,{ref:(0,xt.useMergeRefs)([l,c]),identifier:"content",tagName:"div",onChange:e=>t({content:e}),value:a,"aria-label":(0,pt.__)("List text"),placeholder:r||(0,pt.__)("List"),onMerge:u}),s.children]}),(0,it.jsx)(ct.BlockControls,{group:"block",children:(0,it.jsx)(jg,{clientId:o})})]})},save:function({attributes:e}){return(0,it.jsxs)("li",{...ct.useBlockProps.save(),children:[(0,it.jsx)(ct.RichText.Content,{value:e.content}),(0,it.jsx)(ct.InnerBlocks.Content,{})]})},merge:(e,t)=>({...e,content:e.content+t.content}),transforms:Bg,[jo(ct.privateApis).requiresWrapperOnCopy]:!0},Pg=()=>jt({name:Tg,metadata:fg,settings:Ng});var Ig=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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 Dg=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/loginout","title":"Login/out","category":"theme","description":"Show login & logout links.","keywords":["login","logout","form"],"textdomain":"default","attributes":{"displayLoginAsForm":{"type":"boolean","default":false},"redirectToCurrent":{"type":"boolean","default":true}},"example":{"viewportWidth":350},"supports":{"className":true,"color":{"background":true,"text":false,"gradients":true,"link":true},"spacing":{"margin":true,"padding":true,"__experimentalDefaultControls":{"margin":false,"padding":false}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true},"interactivity":{"clientNavigation":true}},"style":"wp-block-loginout"}'),{name:Mg}=Dg,zg={icon:Ig,edit:function({attributes:e,setAttributes:t}){const{displayLoginAsForm:o,redirectToCurrent:n}=e,r=vt();return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{t({displayLoginAsForm:!1,redirectToCurrent:!0})},dropdownMenuProps:r,children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Display login as form"),isShownByDefault:!0,hasValue:()=>o,onDeselect:()=>t({displayLoginAsForm:!1}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Display login as form"),checked:o,onChange:()=>t({displayLoginAsForm:!o})})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Redirect to current URL"),isShownByDefault:!0,hasValue:()=>!n,onDeselect:()=>t({redirectToCurrent:!0}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Redirect to current URL"),checked:n,onChange:()=>t({redirectToCurrent:!n})})})]})}),(0,it.jsx)("div",{...(0,ct.useBlockProps)({className:"logged-in"}),children:(0,it.jsx)("a",{href:"#login-pseudo-link",children:(0,pt.__)("Log out")})})]})}},Ag=()=>jt({name:Mg,metadata:Dg,settings:zg});var Lg=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M3 6v11.5h8V6H3Zm11 3h7V7.5h-7V9Zm7 3.5h-7V11h7v1.5ZM14 16h7v-1.5h-7V16Z"})});const Hg="full",Rg=[["core/paragraph",{placeholder:(0,pt._x)("Content…","content placeholder")}]],Vg=(e,t)=>e?{backgroundImage:`url(${e})`,backgroundPosition:t?`${100*t.x}% ${100*t.y}%`:"50% 50%"}:{},Fg=(e,t)=>e?{backgroundImage:`url(${e})`,backgroundPosition:t?`${Math.round(100*t.x)}% ${Math.round(100*t.y)}%`:"50% 50%"}:{},Eg=50,Og=()=>{},Gg=e=>{if(!e.customBackgroundColor)return e;const t={color:{background:e.customBackgroundColor}},{customBackgroundColor:o,...n}=e;return{...n,style:t}},$g=e=>e.align?e:{...e,align:"wide"},Ug={align:{type:"string",default:"wide"},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:!1}},qg={...Ug,isStackedOnMobile:{type:"boolean",default:!0},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"},mediaSizeSlug:{type:"string"},verticalAlignment:{type:"string"},imageFill:{type:"boolean"},focalPoint:{type:"object"}},Wg={...qg,mediaAlt:{type:"string",source:"attribute",selector:"figure img",attribute:"alt",default:"",role:"content"},mediaId:{type:"number",role:"content"},mediaUrl:{type:"string",source:"attribute",selector:"figure video,figure img",attribute:"src",role:"content"},href:{type:"string",source:"attribute",selector:"figure a",attribute:"href",role:"content"},mediaType:{type:"string",role:"content"}},Zg={...Wg,align:{type:"string",default:"none"},useFeaturedImage:{type:"boolean",default:!1}},Jg={anchor:!0,align:["wide","full"],html:!1,color:{gradients:!0,link:!0}},Qg={...Jg,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},Kg={attributes:Zg,supports:{...Qg,__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},color:{gradients:!0,heading:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},interactivity:{clientNavigation:!0}},usesContext:["postId","postType"],save({attributes:e}){const{isStackedOnMobile:t,mediaAlt:o,mediaPosition:n,mediaType:r,mediaUrl:a,mediaWidth:i,mediaId:s,verticalAlignment:l,imageFill:c,focalPoint:u,linkClass:d,href:p,linkTarget:m,rel:g}=e,h=e.mediaSizeSlug||Hg,_=g||void 0,x=Dt({[`wp-image-${s}`]:s&&"image"===r,[`size-${h}`]:s&&"image"===r});let b=a?(0,it.jsx)("img",{src:a,alt:o,className:x||null}):null;p&&(b=(0,it.jsx)("a",{className:d,href:p,target:m,rel:_,children:b}));const f={image:()=>b,video:()=>(0,it.jsx)("video",{controls:!0,src:a})},y=Dt({"has-media-on-the-right":"right"===n,"is-stacked-on-mobile":t,[`is-vertically-aligned-${l}`]:l,"is-image-fill":c}),v=c?Fg(a,u):{};let k;i!==Eg&&(k="right"===n?`auto ${i}%`:`${i}% auto`);const w={gridTemplateColumns:k};return"right"===n?(0,it.jsxs)("div",{...ct.useBlockProps.save({className:y,style:w}),children:[(0,it.jsx)("div",{...ct.useInnerBlocksProps.save({className:"wp-block-media-text__content"})}),(0,it.jsx)("figure",{className:"wp-block-media-text__media",style:v,children:(f[r]||Og)()})]}):(0,it.jsxs)("div",{...ct.useBlockProps.save({className:y,style:w}),children:[(0,it.jsx)("figure",{className:"wp-block-media-text__media",style:v,children:(f[r]||Og)()}),(0,it.jsx)("div",{...ct.useInnerBlocksProps.save({className:"wp-block-media-text__content"})})]})}},Yg={attributes:Wg,supports:Qg,save({attributes:e}){const{isStackedOnMobile:t,mediaAlt:o,mediaPosition:n,mediaType:r,mediaUrl:a,mediaWidth:i,mediaId:s,verticalAlignment:l,imageFill:c,focalPoint:u,linkClass:d,href:p,linkTarget:m,rel:g}=e,h=e.mediaSizeSlug||Hg,_=g||void 0,x=Dt({[`wp-image-${s}`]:s&&"image"===r,[`size-${h}`]:s&&"image"===r});let b=(0,it.jsx)("img",{src:a,alt:o,className:x||null});p&&(b=(0,it.jsx)("a",{className:d,href:p,target:m,rel:_,children:b}));const f={image:()=>b,video:()=>(0,it.jsx)("video",{controls:!0,src:a})},y=Dt({"has-media-on-the-right":"right"===n,"is-stacked-on-mobile":t,[`is-vertically-aligned-${l}`]:l,"is-image-fill":c}),v=c?Fg(a,u):{};let k;i!==Eg&&(k="right"===n?`auto ${i}%`:`${i}% auto`);const w={gridTemplateColumns:k};return"right"===n?(0,it.jsxs)("div",{...ct.useBlockProps.save({className:y,style:w}),children:[(0,it.jsx)("div",{...ct.useInnerBlocksProps.save({className:"wp-block-media-text__content"})}),(0,it.jsx)("figure",{className:"wp-block-media-text__media",style:v,children:(f[r]||Og)()})]}):(0,it.jsxs)("div",{...ct.useBlockProps.save({className:y,style:w}),children:[(0,it.jsx)("figure",{className:"wp-block-media-text__media",style:v,children:(f[r]||Og)()}),(0,it.jsx)("div",{...ct.useInnerBlocksProps.save({className:"wp-block-media-text__content"})})]})},migrate:$g,isEligible(e,t,{block:o}){const{attributes:n}=o;return void 0===e.align&&!!n.className?.includes("alignwide")}},Xg={attributes:qg,supports:Jg,save({attributes:e}){const{isStackedOnMobile:t,mediaAlt:o,mediaPosition:n,mediaType:r,mediaUrl:a,mediaWidth:i,mediaId:s,verticalAlignment:l,imageFill:c,focalPoint:u,linkClass:d,href:p,linkTarget:m,rel:g}=e,h=e.mediaSizeSlug||Hg,_=g||void 0,x=Dt({[`wp-image-${s}`]:s&&"image"===r,[`size-${h}`]:s&&"image"===r});let b=(0,it.jsx)("img",{src:a,alt:o,className:x||null});p&&(b=(0,it.jsx)("a",{className:d,href:p,target:m,rel:_,children:b}));const f={image:()=>b,video:()=>(0,it.jsx)("video",{controls:!0,src:a})},y=Dt({"has-media-on-the-right":"right"===n,"is-stacked-on-mobile":t,[`is-vertically-aligned-${l}`]:l,"is-image-fill":c}),v=c?Vg(a,u):{};let k;i!==Eg&&(k="right"===n?`auto ${i}%`:`${i}% auto`);const w={gridTemplateColumns:k};return"right"===n?(0,it.jsxs)("div",{...ct.useBlockProps.save({className:y,style:w}),children:[(0,it.jsx)("div",{...ct.useInnerBlocksProps.save({className:"wp-block-media-text__content"})}),(0,it.jsx)("figure",{className:"wp-block-media-text__media",style:v,children:(f[r]||Og)()})]}):(0,it.jsxs)("div",{...ct.useBlockProps.save({className:y,style:w}),children:[(0,it.jsx)("figure",{className:"wp-block-media-text__media",style:v,children:(f[r]||Og)()}),(0,it.jsx)("div",{...ct.useInnerBlocksProps.save({className:"wp-block-media-text__content"})})]})},migrate:$g},eh={attributes:qg,supports:Jg,save({attributes:e}){const{isStackedOnMobile:t,mediaAlt:o,mediaPosition:n,mediaType:r,mediaUrl:a,mediaWidth:i,mediaId:s,verticalAlignment:l,imageFill:c,focalPoint:u,linkClass:d,href:p,linkTarget:m,rel:g}=e,h=e.mediaSizeSlug||Hg,_=g||void 0,x=Dt({[`wp-image-${s}`]:s&&"image"===r,[`size-${h}`]:s&&"image"===r});let b=(0,it.jsx)("img",{src:a,alt:o,className:x||null});p&&(b=(0,it.jsx)("a",{className:d,href:p,target:m,rel:_,children:b}));const f={image:()=>b,video:()=>(0,it.jsx)("video",{controls:!0,src:a})},y=Dt({"has-media-on-the-right":"right"===n,"is-stacked-on-mobile":t,[`is-vertically-aligned-${l}`]:l,"is-image-fill":c}),v=c?Vg(a,u):{};let k;i!==Eg&&(k="right"===n?`auto ${i}%`:`${i}% auto`);const w={gridTemplateColumns:k};return(0,it.jsxs)("div",{...ct.useBlockProps.save({className:y,style:w}),children:[(0,it.jsx)("figure",{className:"wp-block-media-text__media",style:v,children:(f[r]||Og)()}),(0,it.jsx)("div",{...ct.useInnerBlocksProps.save({className:"wp-block-media-text__content"})})]})},migrate:$g},th={attributes:{...Ug,isStackedOnMobile:{type:"boolean",default:!0},backgroundColor:{type:"string"},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:(0,xt.compose)(Gg,$g),save({attributes:e}){const{backgroundColor:t,customBackgroundColor:o,isStackedOnMobile:n,mediaAlt:r,mediaPosition:a,mediaType:i,mediaUrl:s,mediaWidth:l,mediaId:c,verticalAlignment:u,imageFill:d,focalPoint:p,linkClass:m,href:g,linkTarget:h,rel:_}=e,x=_||void 0;let b=(0,it.jsx)("img",{src:s,alt:r,className:c&&"image"===i?`wp-image-${c}`:null});g&&(b=(0,it.jsx)("a",{className:m,href:g,target:h,rel:x,children:b}));const f={image:()=>b,video:()=>(0,it.jsx)("video",{controls:!0,src:s})},y=(0,ct.getColorClassName)("background-color",t),v=Dt({"has-media-on-the-right":"right"===a,"has-background":y||o,[y]:y,"is-stacked-on-mobile":n,[`is-vertically-aligned-${u}`]:u,"is-image-fill":d}),k=d?Vg(s,p):{};let w;l!==Eg&&(w="right"===a?`auto ${l}%`:`${l}% auto`);const C={backgroundColor:y?void 0:o,gridTemplateColumns:w};return(0,it.jsxs)("div",{className:v,style:C,children:[(0,it.jsx)("figure",{className:"wp-block-media-text__media",style:k,children:(f[i]||Og)()}),(0,it.jsx)("div",{className:"wp-block-media-text__content",children:(0,it.jsx)(ct.InnerBlocks.Content,{})})]})}},oh={attributes:{...Ug,backgroundColor:{type:"string"},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:(0,xt.compose)(Gg,$g),save({attributes:e}){const{backgroundColor:t,customBackgroundColor:o,isStackedOnMobile:n,mediaAlt:r,mediaPosition:a,mediaType:i,mediaUrl:s,mediaWidth:l,mediaId:c,verticalAlignment:u,imageFill:d,focalPoint:p}=e,m={image:()=>(0,it.jsx)("img",{src:s,alt:r,className:c&&"image"===i?`wp-image-${c}`:null}),video:()=>(0,it.jsx)("video",{controls:!0,src:s})},g=(0,ct.getColorClassName)("background-color",t),h=Dt({"has-media-on-the-right":"right"===a,[g]:g,"is-stacked-on-mobile":n,[`is-vertically-aligned-${u}`]:u,"is-image-fill":d}),_=d?Vg(s,p):{};let x;l!==Eg&&(x="right"===a?`auto ${l}%`:`${l}% auto`);const b={backgroundColor:g?void 0:o,gridTemplateColumns:x};return(0,it.jsxs)("div",{className:h,style:b,children:[(0,it.jsx)("figure",{className:"wp-block-media-text__media",style:_,children:(m[i]||Og)()}),(0,it.jsx)("div",{className:"wp-block-media-text__content",children:(0,it.jsx)(ct.InnerBlocks.Content,{})})]})}},nh={attributes:{...Ug,backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},mediaUrl:{type:"string",source:"attribute",selector:"figure video,figure img",attribute:"src"}},migrate:$g,save({attributes:e}){const{backgroundColor:t,customBackgroundColor:o,isStackedOnMobile:n,mediaAlt:r,mediaPosition:a,mediaType:i,mediaUrl:s,mediaWidth:l}=e,c={image:()=>(0,it.jsx)("img",{src:s,alt:r}),video:()=>(0,it.jsx)("video",{controls:!0,src:s})},u=(0,ct.getColorClassName)("background-color",t),d=Dt({"has-media-on-the-right":"right"===a,[u]:u,"is-stacked-on-mobile":n});let p;l!==Eg&&(p="right"===a?`auto ${l}%`:`${l}% auto`);const m={backgroundColor:u?void 0:o,gridTemplateColumns:p};return(0,it.jsxs)("div",{className:d,style:m,children:[(0,it.jsx)("figure",{className:"wp-block-media-text__media",children:(c[i]||Og)()}),(0,it.jsx)("div",{className:"wp-block-media-text__content",children:(0,it.jsx)(ct.InnerBlocks.Content,{})})]})}};var rh=[Kg,Yg,Xg,eh,th,oh,nh],ah=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M4 18h6V6H4v12zm9-9.5V10h7V8.5h-7zm0 7h7V14h-7v1.5z"})}),ih=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M14 6v12h6V6h-6zM4 10h7V8.5H4V10zm0 5.5h7V14H4v1.5z"})}),sh=(0,it.jsxs)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,it.jsx)(St.Path,{d:"m7 6.5 4 2.5-4 2.5z"}),(0,it.jsx)(St.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"m5 3c-1.10457 0-2 .89543-2 2v14c0 1.1046.89543 2 2 2h14c1.1046 0 2-.8954 2-2v-14c0-1.10457-.8954-2-2-2zm14 1.5h-14c-.27614 0-.5.22386-.5.5v10.7072l3.62953-2.6465c.25108-.1831.58905-.1924.84981-.0234l2.92666 1.8969 3.5712-3.4719c.2911-.2831.7545-.2831 1.0456 0l2.9772 2.8945v-9.3568c0-.27614-.2239-.5-.5-.5zm-14.5 14.5v-1.4364l4.09643-2.987 2.99567 1.9417c.2936.1903.6798.1523.9307-.0917l3.4772-3.3806 3.4772 3.3806.0228-.0234v2.5968c0 .2761-.2239.5-.5.5h-14c-.27614 0-.5-.2239-.5-.5z"})]});function lh(e,t){return e?{objectPosition:t?`${Math.round(100*t.x)}% ${Math.round(100*t.y)}%`:"50% 50%"}:{}}const ch=["image","video"],uh=()=>{},dh=(0,gt.forwardRef)((({isSelected:e,isStackedOnMobile:t,...o},n)=>{const r=(0,xt.useViewportMatch)("small","<");return(0,it.jsx)(mt.ResizableBox,{ref:n,showHandle:e&&(!r||!t),...o})}));function ph({mediaId:e,mediaUrl:t,onSelectMedia:o,toggleUseFeaturedImage:n,useFeaturedImage:r}){return(0,it.jsx)(ct.BlockControls,{group:"other",children:(0,it.jsx)(ct.MediaReplaceFlow,{mediaId:e,mediaURL:t,allowedTypes:ch,accept:"image/*,video/*",onSelect:o,onToggleFeaturedImage:n,useFeaturedImage:r,onReset:()=>o(void 0)})})}function mh({className:e,mediaUrl:t,onSelectMedia:o,toggleUseFeaturedImage:n}){const{createErrorNotice:r}=(0,lt.useDispatch)(bo.store);return(0,it.jsx)(ct.MediaPlaceholder,{icon:(0,it.jsx)(ct.BlockIcon,{icon:sh}),labels:{title:(0,pt.__)("Media area")},className:e,onSelect:o,accept:"image/*,video/*",onToggleFeaturedImage:n,allowedTypes:ch,onError:e=>{r(e,{type:"snackbar"})},disableMediaButtons:t})}var gh=(0,gt.forwardRef)((function(e,t){const{className:o,commitWidthChange:n,focalPoint:r,imageFill:a,isSelected:i,isStackedOnMobile:s,mediaAlt:l,mediaId:c,mediaPosition:u,mediaType:d,mediaUrl:p,mediaWidth:m,onSelectMedia:g,onWidthChange:h,enableResize:_,toggleUseFeaturedImage:x,useFeaturedImage:b,featuredImageURL:f,featuredImageAlt:y,refMedia:v}=e,k=!c&&(0,ht.isBlobURL)(p),{toggleSelection:w}=(0,lt.useDispatch)(ct.store);if(p||f||b){const C=()=>{w(!1)},j=(e,t,o)=>{h(parseInt(o.style.width))},S=(e,t,o)=>{w(!0),n(parseInt(o.style.width))},B={right:_&&"left"===u,left:_&&"right"===u},T="image"===d&&a?lh(p||f,r):{},N={image:()=>b&&f?(0,it.jsx)("img",{ref:v,src:f,alt:y,style:T}):p&&(0,it.jsx)("img",{ref:v,src:p,alt:l,style:T}),video:()=>(0,it.jsx)("video",{controls:!0,ref:v,src:p})};return(0,it.jsxs)(dh,{as:"figure",className:Dt(o,"editor-media-container__resizer",{"is-transient":k}),size:{width:m+"%"},minWidth:"10%",maxWidth:"100%",enable:B,onResizeStart:C,onResize:j,onResizeStop:S,axis:"x",isSelected:i,isStackedOnMobile:s,ref:t,children:[(0,it.jsx)(ph,{onSelectMedia:g,mediaUrl:b&&f?f:p,mediaId:c,toggleUseFeaturedImage:x,useFeaturedImage:b}),(N[d]||uh)(),k&&(0,it.jsx)(mt.Spinner,{}),!b&&(0,it.jsx)(mh,{...e}),!f&&b&&(0,it.jsx)(mt.Placeholder,{className:"wp-block-media-text--placeholder-image",style:T,withIllustration:!0})]})}return(0,it.jsx)(mh,{...e})}));const{ResolutionTool:hh}=jo(ct.privateApis),_h=e=>Math.max(15,Math.min(e,85));function xh(e,t){return e?.media_details?.sizes?.[t]?.source_url}function bh({image:e,value:t,onChange:o}){const{imageSizes:n}=(0,lt.useSelect)((e=>{const{getSettings:t}=e(ct.store);return{imageSizes:t().imageSizes}}),[]);if(!n?.length)return null;const r=n.filter((({slug:t})=>xh(e,t))).map((({name:e,slug:t})=>({value:t,label:e})));return(0,it.jsx)(hh,{value:t,defaultValue:Hg,options:r,onChange:o})}var fh=function({attributes:e,isSelected:t,setAttributes:o,context:{postId:n,postType:r}}){const{focalPoint:a,href:i,imageFill:s,isStackedOnMobile:l,linkClass:c,linkDestination:u,linkTarget:d,mediaAlt:p,mediaId:m,mediaPosition:g,mediaType:h,mediaUrl:_,mediaWidth:x,mediaSizeSlug:b,rel:f,verticalAlignment:y,allowedBlocks:v,useFeaturedImage:k}=e,[w]=(0,_t.useEntityProp)("postType",r,"featured_media",n),{featuredImageMedia:C}=(0,lt.useSelect)((e=>({featuredImageMedia:w&&k?e(_t.store).getEntityRecord("postType","attachment",w,{context:"view"}):void 0})),[w,k]),{image:j}=(0,lt.useSelect)((e=>({image:m&&t?e(_t.store).getEntityRecord("postType","attachment",m,{context:"view"}):null})),[t,m]),S=k?C?.source_url:"",B=k?C?.alt_text:"",T=(0,gt.useRef)(),N=e=>{const{style:t}=T.current,{x:o,y:n}=e;t.objectPosition=`${100*o}% ${100*n}%`},[P,I]=(0,gt.useState)(null),D=function({attributes:{linkDestination:e,href:t},setAttributes:o}){return n=>{if(!n||!n.url)return void o({mediaAlt:void 0,mediaId:void 0,mediaType:void 0,mediaUrl:void 0,mediaLink:void 0,href:void 0,focalPoint:void 0,useFeaturedImage:!1});let r,a;(0,ht.isBlobURL)(n.url)&&(n.type=(0,ht.getBlobTypeByURL)(n.url)),r=n.media_type?"image"===n.media_type?"image":"video":n.type,"image"===r&&(a=n.sizes?.large?.url||n.media_details?.sizes?.large?.source_url);let i=t;"media"===e&&(i=n.url),"attachment"===e&&(i=n.link),o({mediaAlt:n.alt,mediaId:n.id,mediaType:r,mediaUrl:a||n.url,mediaLink:n.link||void 0,href:i,focalPoint:void 0,useFeaturedImage:!1})}}({attributes:e,setAttributes:o}),M=e=>{o({mediaWidth:_h(e)}),I(null)},z=Dt({"has-media-on-the-right":"right"===g,"is-selected":t,"is-stacked-on-mobile":l,[`is-vertically-aligned-${y}`]:y,"is-image-fill-element":s}),A=`${P||x}%`,L="right"===g?`1fr ${A}`:`${A} 1fr`,H={gridTemplateColumns:L,msGridColumns:L},R=e=>{const t=xh(j,e);if(!t)return null;o({mediaUrl:t,mediaSizeSlug:e})},V=vt(),F=(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{o({isStackedOnMobile:!0,imageFill:!1,mediaAlt:"",focalPoint:void 0,mediaWidth:50}),R(Hg)},dropdownMenuProps:V,children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Media width"),isShownByDefault:!0,hasValue:()=>50!==x,onDeselect:()=>o({mediaWidth:50}),children:(0,it.jsx)(mt.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,pt.__)("Media width"),value:P||x,onChange:M,min:15,max:85})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Stack on mobile"),isShownByDefault:!0,hasValue:()=>!l,onDeselect:()=>o({isStackedOnMobile:!0}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Stack on mobile"),checked:l,onChange:()=>o({isStackedOnMobile:!l})})}),"image"===h&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Crop image to fill"),isShownByDefault:!0,hasValue:()=>!!s,onDeselect:()=>o({imageFill:!1}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Crop image to fill"),checked:!!s,onChange:()=>o({imageFill:!s})})}),s&&(_||S)&&"image"===h&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Focal point"),isShownByDefault:!0,hasValue:()=>!!a,onDeselect:()=>o({focalPoint:void 0}),children:(0,it.jsx)(mt.FocalPointPicker,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Focal point"),url:k&&S?S:_,value:a,onChange:e=>o({focalPoint:e}),onDragStart:N,onDrag:N})}),"image"===h&&_&&!k&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Alternative text"),isShownByDefault:!0,hasValue:()=>!!p,onDeselect:()=>o({mediaAlt:""}),children:(0,it.jsx)(mt.TextareaControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Alternative text"),value:p,onChange:e=>{o({mediaAlt:e})},help:(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(mt.ExternalLink,{href:(0,pt.__)("https://www.w3.org/WAI/tutorials/images/decision-tree/"),children:(0,pt.__)("Describe the purpose of the image.")}),(0,it.jsx)("br",{}),(0,pt.__)("Leave empty if decorative.")]})})}),"image"===h&&!k&&(0,it.jsx)(bh,{image:j,value:b,onChange:R})]}),E=(0,ct.useBlockProps)({className:z,style:H}),O=(0,ct.useInnerBlocksProps)({className:"wp-block-media-text__content"},{template:Rg,allowedBlocks:v}),G=(0,ct.useBlockEditingMode)();return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.InspectorControls,{children:F}),(0,it.jsxs)(ct.BlockControls,{group:"block",children:["default"===G&&(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.BlockVerticalAlignmentControl,{onChange:e=>{o({verticalAlignment:e})},value:y}),(0,it.jsx)(mt.ToolbarButton,{icon:ah,title:(0,pt.__)("Show media on left"),isActive:"left"===g,onClick:()=>o({mediaPosition:"left"})}),(0,it.jsx)(mt.ToolbarButton,{icon:ih,title:(0,pt.__)("Show media on right"),isActive:"right"===g,onClick:()=>o({mediaPosition:"right"})})]}),"image"===h&&!k&&(0,it.jsx)(ct.__experimentalImageURLInputUI,{url:i||"",onChangeUrl:e=>{o(e)},linkDestination:u,mediaType:h,mediaUrl:j&&j.source_url,mediaLink:j&&j.link,linkTarget:d,linkClass:c,rel:f})]}),(0,it.jsxs)("div",{...E,children:["right"===g&&(0,it.jsx)("div",{...O}),(0,it.jsx)(gh,{className:"wp-block-media-text__media",onSelectMedia:D,onWidthChange:e=>{I(_h(e))},commitWidthChange:M,refMedia:T,enableResize:"default"===G,toggleUseFeaturedImage:()=>{o({imageFill:!1,mediaType:"image",mediaId:void 0,mediaUrl:void 0,mediaAlt:void 0,mediaLink:void 0,linkDestination:void 0,linkTarget:void 0,linkClass:void 0,rel:void 0,href:void 0,useFeaturedImage:!k})},focalPoint:a,imageFill:s,isSelected:t,isStackedOnMobile:l,mediaAlt:p,mediaId:m,mediaPosition:g,mediaType:h,mediaUrl:_,mediaWidth:x,useFeaturedImage:k,featuredImageURL:S,featuredImageAlt:B}),"right"!==g&&(0,it.jsx)("div",{...O})]})]})};const yh=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"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":"none"},"mediaAlt":{"type":"string","source":"attribute","selector":"figure img","attribute":"alt","default":"","role":"content"},"mediaPosition":{"type":"string","default":"left"},"mediaId":{"type":"number","role":"content"},"mediaUrl":{"type":"string","source":"attribute","selector":"figure video,figure img","attribute":"src","role":"content"},"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","role":"content"},"rel":{"type":"string","source":"attribute","selector":"figure a","attribute":"rel"},"linkClass":{"type":"string","source":"attribute","selector":"figure a","attribute":"class"},"mediaType":{"type":"string","role":"content"},"mediaWidth":{"type":"number","default":50},"mediaSizeSlug":{"type":"string"},"isStackedOnMobile":{"type":"boolean","default":true},"verticalAlignment":{"type":"string"},"imageFill":{"type":"boolean"},"focalPoint":{"type":"object"},"useFeaturedImage":{"type":"boolean","default":false}},"usesContext":["postId","postType"],"supports":{"anchor":true,"align":["wide","full"],"html":false,"__experimentalBorder":{"color":true,"radius":true,"style":true,"width":true,"__experimentalDefaultControls":{"color":true,"radius":true,"style":true,"width":true}},"color":{"gradients":true,"heading":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true}},"spacing":{"margin":true,"padding":true},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true},"allowedBlocks":true},"editorStyle":"wp-block-media-text-editor","style":"wp-block-media-text"}'),vh=()=>{};const kh={from:[{type:"block",blocks:["core/image"],transform:({alt:e,url:t,id:o,anchor:n})=>(0,st.createBlock)("core/media-text",{mediaAlt:e,mediaId:o,mediaUrl:t,mediaType:"image",anchor:n})},{type:"block",blocks:["core/video"],transform:({src:e,id:t,anchor:o})=>(0,st.createBlock)("core/media-text",{mediaId:t,mediaUrl:e,mediaType:"video",anchor:o})},{type:"block",blocks:["core/cover"],transform:({align:e,alt:t,anchor:o,backgroundType:n,customGradient:r,customOverlayColor:a,gradient:i,id:s,overlayColor:l,style:c,textColor:u,url:d,useFeaturedImage:p},m)=>{let g={};return r?g={style:{color:{gradient:r}}}:a&&(g={style:{color:{background:a}}}),c?.color?.text&&(g.style={color:{...g.style?.color,text:c.color.text}}),(0,st.createBlock)("core/media-text",{align:e,anchor:o,backgroundColor:l,gradient:i,mediaAlt:t,mediaId:s,mediaType:n,mediaUrl:d,textColor:u,useFeaturedImage:p,...g},m)}}],to:[{type:"block",blocks:["core/image"],isMatch:({mediaType:e,mediaUrl:t})=>!t||"image"===e,transform:({mediaAlt:e,mediaId:t,mediaUrl:o,anchor:n})=>(0,st.createBlock)("core/image",{alt:e,id:t,url:o,anchor:n})},{type:"block",blocks:["core/video"],isMatch:({mediaType:e,mediaUrl:t})=>!t||"video"===e,transform:({mediaId:e,mediaUrl:t,anchor:o})=>(0,st.createBlock)("core/video",{id:e,src:t,anchor:o})},{type:"block",blocks:["core/cover"],transform:({align:e,anchor:t,backgroundColor:o,focalPoint:n,gradient:r,mediaAlt:a,mediaId:i,mediaType:s,mediaUrl:l,style:c,textColor:u,useFeaturedImage:d},p)=>{const m={};c?.color?.gradient?m.customGradient=c.color.gradient:c?.color?.background&&(m.customOverlayColor=c.color.background),c?.color?.text&&(m.style={color:{text:c.color.text}});const g={align:e,alt:a,anchor:t,backgroundType:s,dimRatio:l||d?50:100,focalPoint:n,gradient:r,id:i,overlayColor:o,textColor:u,url:l,useFeaturedImage:d,...m};return(0,st.createBlock)("core/cover",g,p)}}]};var wh=kh;const{name:Ch}=yh,jh={icon:Lg,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:(0,pt.__)("The wren<br>Earns his living<br>Noiselessly.")}},{name:"core/paragraph",attributes:{content:(0,pt.__)("— Kobayashi Issa (一茶)")}}]},transforms:wh,edit:fh,save:function({attributes:e}){const{isStackedOnMobile:t,mediaAlt:o,mediaPosition:n,mediaType:r,mediaUrl:a,mediaWidth:i,mediaId:s,verticalAlignment:l,imageFill:c,focalPoint:u,linkClass:d,href:p,linkTarget:m,rel:g}=e,h=e.mediaSizeSlug||Hg,_=g||void 0,x=Dt({[`wp-image-${s}`]:s&&"image"===r,[`size-${h}`]:s&&"image"===r}),b=c?lh(a,u):{};let f=a?(0,it.jsx)("img",{src:a,alt:o,className:x||null,style:b}):null;p&&(f=(0,it.jsx)("a",{className:d,href:p,target:m,rel:_,children:f}));const y={image:()=>f,video:()=>(0,it.jsx)("video",{controls:!0,src:a})},v=Dt({"has-media-on-the-right":"right"===n,"is-stacked-on-mobile":t,[`is-vertically-aligned-${l}`]:l,"is-image-fill-element":c});let k;50!==i&&(k="right"===n?`auto ${i}%`:`${i}% auto`);const w={gridTemplateColumns:k};return"right"===n?(0,it.jsxs)("div",{...ct.useBlockProps.save({className:v,style:w}),children:[(0,it.jsx)("div",{...ct.useInnerBlocksProps.save({className:"wp-block-media-text__content"})}),(0,it.jsx)("figure",{className:"wp-block-media-text__media",children:(y[r]||vh)()})]}):(0,it.jsxs)("div",{...ct.useBlockProps.save({className:v,style:w}),children:[(0,it.jsx)("figure",{className:"wp-block-media-text__media",children:(y[r]||vh)()}),(0,it.jsx)("div",{...ct.useInnerBlocksProps.save({className:"wp-block-media-text__content"})})]})},deprecated:rh},Sh=()=>jt({name:Ch,metadata:yh,settings:jh});const Bh=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"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":"raw"}},"supports":{"className":false,"customClassName":false,"inserter":false,"html":false,"lock":false,"reusable":false,"renaming":false,"blockVisibility":false,"interactivity":{"clientNavigation":true}}}');const{name:Th}=Bh,Nh={name:Th,__experimentalLabel(e,{context:t}){if("accessibility"===t){const{originalName:t}=e,o=t?(0,st.getBlockType)(t):void 0;return o?o.settings.title||t:""}},edit:function({attributes:e,clientId:t}){const{originalName:o,originalUndelimitedContent:n}=e,r=!!n,{hasFreeformBlock:a,hasHTMLBlock:i}=(0,lt.useSelect)((e=>{const{canInsertBlockType:o,getBlockRootClientId:n}=e(ct.store);return{hasFreeformBlock:o("core/freeform",n(t)),hasHTMLBlock:o("core/html",n(t))}}),[t]),{replaceBlock:s}=(0,lt.useDispatch)(ct.store),l=[];let c;const u=(0,it.jsx)(mt.Button,{__next40pxDefaultSize:!0,onClick:function(){s(t,(0,st.createBlock)("core/html",{content:n}))},variant:"primary",children:(0,pt.__)("Keep as HTML")},"convert");return!r||a||o?r&&i?(c=(0,pt.sprintf)((0,pt.__)('Your site doesn’t include support for the "%s" block. You can leave it as-is, convert it to custom HTML, or remove it.'),o),l.push(u)):c=(0,pt.sprintf)((0,pt.__)('Your site doesn’t include support for the "%s" block. You can leave it as-is or remove it.'),o):i?(c=(0,pt.__)("It appears you are trying to use the deprecated Classic block. You can leave this block intact, convert its content to a Custom HTML block, or remove it entirely. Alternatively, you can refresh the page to use the Classic block."),l.push(u)):c=(0,pt.__)("It appears you are trying to use the deprecated Classic block. You can leave this block intact, or remove it entirely. Alternatively, you can refresh the page to use the Classic block."),(0,it.jsxs)("div",{...(0,ct.useBlockProps)({className:"has-warning"}),children:[(0,it.jsx)(ct.Warning,{actions:l,children:c}),(0,it.jsx)(gt.RawHTML,{children:(0,lu.safeHTML)(n)})]})},save:function({attributes:e}){return(0,it.jsx)(gt.RawHTML,{children:e.originalContent})}},Ph=()=>jt({name:Th,metadata:Bh,settings:Nh});var Ih=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.Path,{d:"M4 9v1.5h16V9H4zm12 5.5h4V13h-4v1.5zm-6 0h4V13h-4v1.5zm-6 0h4V13H4v1.5z"})});const Dh=(0,pt.__)("Read more");const Mh=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"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","default":"","role":"content"},"noTeaser":{"type":"boolean","default":false}},"supports":{"customClassName":false,"className":false,"html":false,"multiple":false,"interactivity":{"clientNavigation":true}},"editorStyle":"wp-block-more-editor"}');var zh={from:[{type:"raw",schema:{"wp-block":{attributes:["data-block"]}},isMatch:e=>e.dataset&&"core/more"===e.dataset.block,transform(e){const{customText:t,noTeaser:o}=e.dataset,n={};return t&&(n.customText=t),""===o&&(n.noTeaser=!0),(0,st.createBlock)("core/more",n)}}]};const{name:Ah}=Mh,Lh={icon:Ih,example:{},__experimentalLabel(e,{context:t}){const o=e?.metadata?.name;return"list-view"===t&&o?o:"accessibility"===t?e.customText:void 0},transforms:zh,edit:function({attributes:{customText:e,noTeaser:t},insertBlocksAfter:o,setAttributes:n}){const r=vt();return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsx)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{n({noTeaser:!1})},dropdownMenuProps:r,children:(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Hide excerpt"),isShownByDefault:!0,hasValue:()=>t,onDeselect:()=>n({noTeaser:!1}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Hide the excerpt on the full content page"),checked:!!t,onChange:()=>n({noTeaser:!t}),help:e=>e?(0,pt.__)("The excerpt is hidden."):(0,pt.__)("The excerpt is visible.")})})})}),(0,it.jsx)("div",{...(0,ct.useBlockProps)(),children:(0,it.jsx)(ct.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":(0,pt.__)('"Read more" text'),value:e,placeholder:Dh,onChange:e=>n({customText:e}),disableLineBreaks:!0,__unstableOnSplitAtEnd:()=>o((0,st.createBlock)((0,st.getDefaultBlockName)()))})})]})},save:function({attributes:{customText:e,noTeaser:t}}){const o=e?`\x3c!--more ${e}--\x3e`:"\x3c!--more--\x3e",n=t?"\x3c!--noteaser--\x3e":"";return(0,it.jsx)(gt.RawHTML,{children:[o,n].filter(Boolean).join("\n")})}},Hh=()=>jt({name:Ah,metadata:Mh,settings:Lh});var Rh=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.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"})});const Vh=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/navigation","title":"Navigation","category":"theme","allowedBlocks":["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","core/loginout","core/buttons"],"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":true},"openSubmenusOnClick":{"type":"boolean","default":false},"overlayMenu":{"type":"string","default":"mobile"},"icon":{"type":"string","default":"handle"},"hasIcon":{"type":"boolean","default":true},"__unstableLocation":{"type":"string"},"overlayBackgroundColor":{"type":"string"},"customOverlayBackgroundColor":{"type":"string"},"overlayTextColor":{"type":"string"},"customOverlayTextColor":{"type":"string"},"maxNestingLevel":{"type":"number","default":5},"templateLock":{"type":["string","boolean"],"enum":["all","insert","contentOnly",false]}},"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","maxNestingLevel":"maxNestingLevel"},"supports":{"align":["wide","full"],"ariaLabel":true,"html":false,"inserter":true,"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontStyle":true,"__experimentalFontWeight":true,"__experimentalTextTransform":true,"__experimentalFontFamily":true,"__experimentalLetterSpacing":true,"__experimentalTextDecoration":true,"__experimentalSkipSerialization":["textDecoration"],"__experimentalDefaultControls":{"fontSize":true}},"spacing":{"blockGap":true,"units":["px","em","rem","vh","vw"],"__experimentalDefaultControls":{"blockGap":true}},"layout":{"allowSwitching":false,"allowInheriting":false,"allowVerticalAlignment":false,"allowSizingOnChildren":true,"default":{"type":"flex"}},"interactivity":true,"renaming":false,"contentRole":true},"editorStyle":"wp-block-navigation-editor","style":"wp-block-navigation"}'),Fh=window.wp.a11y;var Eh=(0,it.jsxs)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,it.jsx)(St.Path,{d:"M15.5 7.5h-7V9h7V7.5Zm-7 3.5h7v1.5h-7V11Zm7 3.5h-7V16h7v-1.5Z"}),(0,it.jsx)(St.Path,{d:"M17 4H7a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2ZM7 5.5h10a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H7a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5Z"})]}),Oh=(0,gt.forwardRef)((({icon:e,size:t=24,...o},n)=>(0,gt.cloneElement)(e,{width:t,height:t,...o,ref:n}))),Gh=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"m13.06 12 6.47-6.47-1.06-1.06L12 10.94 5.53 4.47 4.47 5.53 10.94 12l-6.47 6.47 1.06 1.06L12 13.06l6.47 6.47 1.06-1.06L13.06 12Z"})});const $h={name:"core/navigation-link",attributes:{kind:"post-type",type:"page"}},Uh=["core/navigation-link/page","core/navigation-link"],qh={per_page:100,status:["publish","draft"],order:"desc",orderby:"date"},Wh=["postType","wp_navigation",qh];function Zh(e){const t=(0,_t.useResourcePermissions)({kind:"postType",name:"wp_navigation",id:e}),{navigationMenu:o,isNavigationMenuResolved:n,isNavigationMenuMissing:r}=(0,lt.useSelect)((t=>function(e,t){if(!t)return{isNavigationMenuResolved:!1,isNavigationMenuMissing:!0};const{getEntityRecord:o,getEditedEntityRecord:n,hasFinishedResolution:r}=e(_t.store),a=["postType","wp_navigation",t],i=o(...a),s=n(...a),l=r("getEditedEntityRecord",a),c="publish"===s.status||"draft"===s.status;return{isNavigationMenuResolved:l,isNavigationMenuMissing:l&&(!i||!c),navigationMenu:c?s:null}}(t,e)),[e]),{canCreate:a,canUpdate:i,canDelete:s,isResolving:l,hasResolved:c}=t,{records:u,isResolving:d,hasResolved:p}=(0,_t.useEntityRecords)("postType","wp_navigation",qh);return{navigationMenu:o,isNavigationMenuResolved:n,isNavigationMenuMissing:r,navigationMenus:u,isResolvingNavigationMenus:d,hasResolvedNavigationMenus:p,canSwitchNavigationMenu:e?u?.length>1:u?.length>0,canUserCreateNavigationMenus:a,isResolvingCanUserCreateNavigationMenus:l,hasResolvedCanUserCreateNavigationMenus:c,canUserUpdateNavigationMenu:i,hasResolvedCanUserUpdateNavigationMenu:e?c:void 0,canUserDeleteNavigationMenu:s,hasResolvedCanUserDeleteNavigationMenu:e?c:void 0}}function Jh(e){const{records:t,isResolving:o,hasResolved:n}=(0,_t.useEntityRecords)("root","menu",{per_page:-1,context:"view"}),{records:r,isResolving:a,hasResolved:i}=(0,_t.useEntityRecords)("postType","page",{parent:0,order:"asc",orderby:"id",per_page:-1,context:"view"}),{records:s,hasResolved:l}=(0,_t.useEntityRecords)("root","menuItem",{menus:e,per_page:-1,context:"view"},{enabled:!!e});return{pages:r,isResolvingPages:a,hasResolvedPages:i,hasPages:!(!i||!r?.length),menus:t,isResolvingMenus:o,hasResolvedMenus:n,hasMenus:!(!n||!t?.length),menuItems:s,hasResolvedMenuItems:l}}var Qh=({isVisible:e=!0})=>(0,it.jsx)("div",{"aria-hidden":!e||void 0,className:"wp-block-navigation-placeholder__preview",children:(0,it.jsxs)("div",{className:"wp-block-navigation-placeholder__actions__indicator",children:[(0,it.jsx)(Oh,{icon:Rh}),(0,pt.__)("Navigation")]})}),Kh=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"})});var Yh=function({currentMenuId:e,onSelectNavigationMenu:t,onSelectClassicMenu:o,onCreateNew:n,actionLabel:r,createNavigationMenuIsSuccess:a,createNavigationMenuIsError:i}){const s=(0,pt.__)("Create from '%s'"),[l,c]=(0,gt.useState)(!1);r=r||s;const{menus:u}=Jh(),{navigationMenus:d,isResolvingNavigationMenus:p,hasResolvedNavigationMenus:m,canUserCreateNavigationMenus:g,canSwitchNavigationMenu:h,isNavigationMenuMissing:_}=Zh(e),[x]=(0,_t.useEntityProp)("postType","wp_navigation","title"),b=(0,gt.useMemo)((()=>d?.map((({id:e,title:t,status:o},n)=>{const a=function(e,t,o){return e?"publish"===o?(0,ao.decodeEntities)(e):(0,pt.sprintf)((0,pt.__)("%1$s (%2$s)"),(0,ao.decodeEntities)(e),o):(0,pt.sprintf)((0,pt.__)("(no title %s)"),t)}(t?.rendered,n+1,o);return{value:e,label:a,ariaLabel:(0,pt.sprintf)(r,a),disabled:l||p||!m}}))||[]),[d,r,p,m,l]),f=!!d?.length,y=!!u?.length,v=!!h,k=!!g,w=f&&!e,C=!f&&m,j=m&&null===e,S=e&&_;let B="";return B=p?(0,pt.__)("Loading…"):w||C||j||S?(0,pt.__)("Choose or create a Navigation Menu"):x,(0,gt.useEffect)((()=>{l&&(a||i)&&c(!1)}),[m,a,g,i,l,j,C,w]),(0,it.jsx)(mt.DropdownMenu,{label:B,icon:Kh,toggleProps:{size:"small"},children:({onClose:r})=>(0,it.jsxs)(it.Fragment,{children:[v&&f&&(0,it.jsx)(mt.MenuGroup,{label:(0,pt.__)("Menus"),children:(0,it.jsx)(mt.MenuItemsChoice,{value:e,onSelect:e=>{t(e),r()},choices:b})}),k&&y&&(0,it.jsx)(mt.MenuGroup,{label:(0,pt.__)("Import Classic Menus"),children:u?.map((e=>{const t=(0,ao.decodeEntities)(e.name);return(0,it.jsx)(mt.MenuItem,{onClick:async()=>{c(!0),await o(e),c(!1),r()},"aria-label":(0,pt.sprintf)(s,t),disabled:l||p||!m,children:t},e.id)}))}),g&&(0,it.jsx)(mt.MenuGroup,{label:(0,pt.__)("Tools"),children:(0,it.jsx)(mt.MenuItem,{onClick:async()=>{c(!0),await n(),c(!1),r()},disabled:l||p||!m,children:(0,pt.__)("Create new Menu")})})]})})};function Xh({isSelected:e,currentMenuId:t,clientId:o,canUserCreateNavigationMenus:n=!1,isResolvingCanUserCreateNavigationMenus:r,onSelectNavigationMenu:a,onSelectClassicMenu:i,onCreateEmpty:s}){const{isResolvingMenus:l,hasResolvedMenus:c}=Jh();(0,gt.useEffect)((()=>{e&&(l&&(0,Fh.speak)((0,pt.__)("Loading navigation block setup options…")),c&&(0,Fh.speak)((0,pt.__)("Navigation block setup options ready.")))}),[c,l,e]);const u=l&&r;return(0,it.jsx)(it.Fragment,{children:(0,it.jsxs)(mt.Placeholder,{className:"wp-block-navigation-placeholder",children:[(0,it.jsx)(Qh,{isVisible:!e}),(0,it.jsx)("div",{"aria-hidden":!e||void 0,className:"wp-block-navigation-placeholder__controls",children:(0,it.jsxs)("div",{className:"wp-block-navigation-placeholder__actions",children:[(0,it.jsxs)("div",{className:"wp-block-navigation-placeholder__actions__indicator",children:[(0,it.jsx)(Oh,{icon:Rh})," ",(0,pt.__)("Navigation")]}),(0,it.jsx)("hr",{}),u&&(0,it.jsx)(mt.Spinner,{}),(0,it.jsx)(Yh,{currentMenuId:t,clientId:o,onSelectNavigationMenu:a,onSelectClassicMenu:i}),(0,it.jsx)("hr",{}),n&&(0,it.jsx)(mt.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:s,children:(0,pt.__)("Start empty")})]})})]})})}var e_=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M5 5v1.5h14V5H5zm0 7.8h14v-1.5H5v1.5zM5 19h14v-1.5H5V19z"})});function t_({icon:e}){return"menu"===e?(0,it.jsx)(Oh,{icon:e_}):(0,it.jsxs)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false",children:[(0,it.jsx)(St.Rect,{x:"4",y:"7.5",width:"16",height:"1.5"}),(0,it.jsx)(St.Rect,{x:"4",y:"15",width:"16",height:"1.5"})]})}function o_({children:e,id:t,isOpen:o,isResponsive:n,onToggle:r,isHiddenByDefault:a,overlayBackgroundColor:i,overlayTextColor:s,hasIcon:l,icon:c}){if(!n)return e;const u=Dt("wp-block-navigation__responsive-container",{"has-text-color":!!s.color||!!s?.class,[(0,ct.getColorClassName)("color",s?.slug)]:!!s?.slug,"has-background":!!i.color||i?.class,[(0,ct.getColorClassName)("background-color",i?.slug)]:!!i?.slug,"is-menu-open":o,"hidden-by-default":a}),d={color:!s?.slug&&s?.color,backgroundColor:!i?.slug&&i?.color&&i.color},p=Dt("wp-block-navigation__responsive-container-open",{"always-shown":a}),m=`${t}-modal`,g={className:"wp-block-navigation__responsive-dialog",...o&&{role:"dialog","aria-modal":!0,"aria-label":(0,pt.__)("Menu")}};return(0,it.jsxs)(it.Fragment,{children:[!o&&(0,it.jsxs)(mt.Button,{__next40pxDefaultSize:!0,"aria-haspopup":"true","aria-label":l&&(0,pt.__)("Open menu"),className:p,onClick:()=>r(!0),children:[l&&(0,it.jsx)(t_,{icon:c}),!l&&(0,pt.__)("Menu")]}),(0,it.jsx)("div",{className:u,style:d,id:m,children:(0,it.jsx)("div",{className:"wp-block-navigation__responsive-close",tabIndex:"-1",children:(0,it.jsxs)("div",{...g,children:[(0,it.jsxs)(mt.Button,{__next40pxDefaultSize:!0,className:"wp-block-navigation__responsive-container-close","aria-label":l&&(0,pt.__)("Close menu"),onClick:()=>r(!1),children:[l&&(0,it.jsx)(Oh,{icon:Gh}),!l&&(0,pt.__)("Close")]}),(0,it.jsx)("div",{className:"wp-block-navigation__responsive-container-content",id:`${m}-content`,children:e})]})})})]})}function n_({clientId:e,hasCustomPlaceholder:t,orientation:o,templateLock:n}){const{isImmediateParentOfSelectedBlock:r,selectedBlockHasChildren:a,isSelected:i,hasSelectedDescendant:s}=(0,lt.useSelect)((t=>{const{getBlockCount:o,hasSelectedInnerBlock:n,getSelectedBlockClientId:r}=t(ct.store),a=r();return{isImmediateParentOfSelectedBlock:n(e,!1),selectedBlockHasChildren:!!o(a),hasSelectedDescendant:n(e,!0),isSelected:a===e}}),[e]),[l,c,u]=(0,_t.useEntityBlockEditor)("postType","wp_navigation"),d=i||r&&!a,p=(0,gt.useMemo)((()=>(0,it.jsx)(Qh,{})),[]),m=!t&&!!!l?.length&&!i,g=(0,ct.useInnerBlocksProps)({className:"wp-block-navigation__container"},{value:l,onInput:c,onChange:u,prioritizedInserterBlocks:Uh,defaultBlock:$h,directInsert:!0,orientation:o,templateLock:n,renderAppender:!!(i||r&&!a||s||d)&&ct.InnerBlocks.ButtonBlockAppender,placeholder:m?p:void 0,__experimentalCaptureToolbars:!0,__unstableDisableLayoutClassNames:!0});return(0,it.jsx)("div",{...g})}function r_(){const[e,t]=(0,_t.useEntityProp)("postType","wp_navigation","title");return(0,it.jsx)(mt.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("Menu name"),value:e,onChange:t})}const a_=(e,t,o)=>{if(e===t)return!0;if("object"==typeof e&&null!=e&&"object"==typeof t&&null!=t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e){if(!t.hasOwnProperty(n))return!1;if(o&&o(n,e))return!0;if(!a_(e[n],t[n],o))return!1}return!0}return!1},i_={};function s_({blocks:e,createNavigationMenu:t,hasSelection:o}){const n=(0,gt.useRef)();(0,gt.useEffect)((()=>{n?.current||(n.current=e)}),[e]);const r=function(e,t){return!a_(e,t,((e,t)=>{if("core/page-list"===t?.name&&"innerBlocks"===e)return!0}))}(n?.current,e),a=(0,gt.useContext)(mt.Disabled.Context),i=(0,ct.useInnerBlocksProps)({className:"wp-block-navigation__container"},{renderAppender:!!o&&void 0,defaultBlock:$h,directInsert:!0}),{isSaving:s,hasResolvedAllNavigationMenus:l}=(0,lt.useSelect)((e=>{if(a)return i_;const{hasFinishedResolution:t,isSavingEntityRecord:o}=e(_t.store);return{isSaving:o("postType","wp_navigation"),hasResolvedAllNavigationMenus:t("getEntityRecords",Wh)}}),[a]);(0,gt.useEffect)((()=>{!a&&!s&&l&&o&&r&&t(null,e)}),[e,t,a,s,l,r,o]);const c=s?mt.Disabled:"div";return(0,it.jsx)(c,{...i})}function l_({onDelete:e}){const[t,o]=(0,gt.useState)(!1),n=(0,_t.useEntityId)("postType","wp_navigation"),{deleteEntityRecord:r}=(0,lt.useDispatch)(_t.store);return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(mt.Button,{__next40pxDefaultSize:!0,className:"wp-block-navigation-delete-menu-button",variant:"secondary",isDestructive:!0,onClick:()=>{o(!0)},children:(0,pt.__)("Delete menu")}),t&&(0,it.jsx)(mt.__experimentalConfirmDialog,{isOpen:!0,onConfirm:()=>{r("postType","wp_navigation",n,{force:!0}),e()},onCancel:()=>{o(!1)},confirmButtonText:(0,pt.__)("Delete"),size:"medium",children:(0,pt.__)("Are you sure you want to delete this Navigation Menu?")})]})}var c_=function({name:e,message:t=""}={}){const o=(0,gt.useRef)(),{createWarningNotice:n,removeNotice:r}=(0,lt.useDispatch)(bo.store);return[(0,gt.useCallback)((r=>{o.current||(o.current=e,n(r||t,{id:o.current,type:"snackbar"}))}),[o,n,t,e]),(0,gt.useCallback)((()=>{o.current&&(r(o.current),o.current=null)}),[o,r])]};function u_({setAttributes:e,hasIcon:t,icon:o}){return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Show icon button"),isShownByDefault:!0,hasValue:()=>!t,onDeselect:()=>e({hasIcon:!0}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Show icon button"),help:(0,pt.__)("Configure the visual appearance of the button that toggles the overlay menu."),onChange:t=>e({hasIcon:t}),checked:t})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Icon"),isShownByDefault:!0,hasValue:()=>"handle"!==o,onDeselect:()=>e({icon:"handle"}),children:(0,it.jsxs)(mt.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,className:"wp-block-navigation__overlay-menu-icon-toggle-group",label:(0,pt.__)("Icon"),value:o,onChange:t=>e({icon:t}),isBlock:!0,children:[(0,it.jsx)(mt.__experimentalToggleGroupControlOption,{value:"handle","aria-label":(0,pt.__)("handle"),label:(0,it.jsx)(t_,{icon:"handle"})}),(0,it.jsx)(mt.__experimentalToggleGroupControlOption,{value:"menu","aria-label":(0,pt.__)("menu"),label:(0,it.jsx)(t_,{icon:"menu"})})]})})]})}function d_(e){if(void 0===e)throw new Error('buildNavigationLinkEntityBinding requires a kind parameter. Only "post-type" and "taxonomy" are supported.');if("post-type"!==e&&"taxonomy"!==e)throw new Error(`Invalid kind "${e}" provided to buildNavigationLinkEntityBinding. Only 'post-type' and 'taxonomy' are supported.`);return{url:{source:"taxonomy"===e?"core/term-data":"core/post-data",args:{field:"link"}}}}function p_({clientId:e,attributes:t}){const{updateBlockBindings:o}=(0,ct.useBlockBindingsUtils)(e),{metadata:n,id:r,kind:a,type:i}=t,s=(0,ct.useBlockEditingMode)(),l=!!n?.bindings?.url&&!!r,c="post-type"===a?"core/post-data":"core/term-data",u=l&&n?.bindings?.url?.source===c,d=(0,lt.useSelect)((e=>{if(!u||!r)return!1;const t="taxonomy"===a;if(!("post-type"===a)&&!t)return!1;if("disabled"===s)return!0;const{getEntityRecord:o,hasFinishedResolution:n}=e(_t.store),l=t?"taxonomy":"postType",c=o(l,i,r);return!n("getEntityRecord",[l,i,r])||void 0!==c}),[a,i,r,u,s]),p=(0,gt.useCallback)((()=>{l&&o({url:void 0})}),[o,l,n,r]),m=(0,gt.useCallback)((e=>{const t=e?.kind??a;if(t)try{const e=d_(t);o(e)}catch(e){console.warn("Failed to create entity binding:",e.message)}}),[o,a]);return{hasUrlBinding:u,isBoundEntityAvailable:d,clearBinding:p,createBinding:m}}function m_(e){if(!e)return null;const t=g_(function(e,t="id",o="parent"){const n=Object.create(null),r=[];for(const a of e)n[a[t]]={...a,children:[]},a[o]?(n[a[o]]=n[a[o]]||{},n[a[o]].children=n[a[o]].children||[],n[a[o]].children.push(n[a[t]])):r.push(n[a[t]]);return r}(e));return(0,vl.applyFilters)("blocks.navigation.__unstableMenuItemsToBlocks",t,e)}function g_(e,t=0){let o={};const n=[...e].sort(((e,t)=>e.menu_order-t.menu_order)),r=n.map((e=>{if("block"===e.type){const[t]=(0,st.parse)(e.content.raw);return t||(0,st.createBlock)("core/freeform",{content:e.content})}const n=e.children?.length?"core/navigation-submenu":"core/navigation-link",r=function({title:e,xfn:t,classes:o,attr_title:n,object:r,object_id:a,description:i,url:s,type:l,target:c},u,d){r&&"post_tag"===r&&(r="tag");const p=l?.replace("_","-")||"custom";return{label:e?.rendered||"",...r?.length&&{type:r},kind:p,url:s||"",...t?.length&&t.join(" ").trim()&&{rel:t.join(" ").trim()},...o?.length&&o.join(" ").trim()&&{className:o.join(" ").trim()},...n?.length&&{title:n},...a&&("post-type"===p||"taxonomy"===p)&&{id:a,metadata:{bindings:d_(p)}},...i?.length&&{description:i},..."_blank"===c&&{opensInNewTab:!0},..."core/navigation-submenu"===u&&{isTopLevelItem:0===d},..."core/navigation-link"===u&&{isTopLevelLink:0===d}}}(e,n,t),{innerBlocks:a=[],mapping:i={}}=e.children?.length?g_(e.children,t+1):{};o={...o,...i};const s=(0,st.createBlock)(n,r,a);return o[e.id]=s.clientId,s}));return{innerBlocks:r,mapping:o}}const h_="success",__="error",x_="pending";let b_=null;var f_=function(e,{throwOnError:t=!1}={}){const o=(0,lt.useRegistry)(),{editEntityRecord:n}=(0,lt.useDispatch)(_t.store),[r,a]=(0,gt.useState)("idle"),[i,s]=(0,gt.useState)(null),l=(0,gt.useCallback)((async(t,r,a="publish")=>{let i,s;try{s=await o.resolveSelect(_t.store).getMenuItems({menus:t,per_page:-1,context:"view"})}catch(e){throw new Error((0,pt.sprintf)((0,pt.__)('Unable to fetch classic menu "%s" from API.'),r),{cause:e})}if(null===s)throw new Error((0,pt.sprintf)((0,pt.__)('Unable to fetch classic menu "%s" from API.'),r));const{innerBlocks:l}=m_(s);try{i=await e(r,l,a),await n("postType","wp_navigation",i.id,{status:"publish"},{throwOnError:!0})}catch(e){throw new Error((0,pt.sprintf)((0,pt.__)('Unable to create Navigation Menu "%s".'),r),{cause:e})}return i}),[e,n,o]);return{convert:(0,gt.useCallback)((async(e,o,n)=>{if(b_!==e)return b_=e,e&&o?(a(x_),s(null),await l(e,o,n).then((e=>(a(h_),b_=null,e))).catch((e=>{if(s(e?.message),a(__),b_=null,t)throw new Error((0,pt.sprintf)((0,pt.__)('Unable to create Navigation Menu "%s".'),o),{cause:e})}))):(s("Unable to convert menu. Missing menu details."),void a(__))}),[l,t]),status:r,error:i}};function y_(e,t){return e&&t?e+"//"+t:null}var v_=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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"})}),k_=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{fillRule:"evenodd",d:"M18 5.5h-8v8h8.5V6a.5.5 0 00-.5-.5zm-9.5 8h-3V6a.5.5 0 01.5-.5h2.5v8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"})}),w_=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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.5zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"})}),C_=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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"})});const j_=e=>"header"===e?v_:"footer"===e?k_:"sidebar"===e?w_:C_;const S_=["postType","wp_navigation",{status:"draft",per_page:-1}],B_=["postType","wp_navigation",{per_page:-1,status:"publish"}];function T_(e){const t=(0,gt.useContext)(mt.Disabled.Context),o=function(e){return(0,lt.useSelect)((t=>{if(!e)return;const{getBlock:o,getBlockParentsByBlockName:n}=t(ct.store),r=n(e,"core/template-part",!0);if(!r?.length)return;const{getCurrentTheme:a,getEditedEntityRecord:i}=t(_t.store),s=a(),l=(s?.default_template_part_areas||[]).map((e=>({...e,icon:j_(e.icon)})));for(const e of r){const t=o(e),{theme:n=s?.stylesheet,slug:r}=t.attributes,a=i("postType","wp_template_part",y_(n,r));if(a?.area)return l.find((e=>"uncategorized"!==e.area&&e.area===a.area))?.label}}),[e])}(t?void 0:e),n=(0,lt.useRegistry)();return(0,gt.useCallback)((async()=>{if(t)return"";const{getEntityRecords:e}=n.resolveSelect(_t.store),[r,a]=await Promise.all([e(...S_),e(...B_)]),i=o?(0,pt.sprintf)((0,pt.__)("%s menu"),o):(0,pt.__)("Menu"),s=[...r,...a].reduce(((e,t)=>t?.title?.raw?.startsWith(i)?e+1:e),0);return(s>0?`${i} ${s+1}`:i)||""}),[t,o,n])}const N_="success",P_="error",I_="pending",D_="idle";const M_=[];function z_(e){return e.ownerDocument.defaultView.getComputedStyle(e)}function A_(e,t,o){if(!e)return;t(z_(e).color);let n=e,r=z_(n).backgroundColor;for(;"rgba(0, 0, 0, 0)"===r&&n.parentNode&&n.parentNode.nodeType===n.parentNode.ELEMENT_NODE;)n=n.parentNode,r=z_(n).backgroundColor;o(r)}function L_(e,t){const{textColor:o,customTextColor:n,backgroundColor:r,customBackgroundColor:a,overlayTextColor:i,customOverlayTextColor:s,overlayBackgroundColor:l,customOverlayBackgroundColor:c,style:u}=e,d={};return t&&s?d.customTextColor=s:t&&i?d.textColor=i:n?d.customTextColor=n:o?d.textColor=o:u?.color?.text&&(d.customTextColor=u.color.text),t&&c?d.customBackgroundColor=c:t&&l?d.backgroundColor=l:a?d.customBackgroundColor=a:r?d.backgroundColor=r:u?.color?.background&&(d.customTextColor=u.color.background),d}function H_(e){return{className:Dt("wp-block-navigation__submenu-container",{"has-text-color":!(!e.textColor&&!e.customTextColor),[`has-${e.textColor}-color`]:!!e.textColor,"has-background":!(!e.backgroundColor&&!e.customBackgroundColor),[`has-${e.backgroundColor}-background-color`]:!!e.backgroundColor}),style:{color:e.customTextColor,backgroundColor:e.customBackgroundColor}}}var R_=({className:e="",disabled:t,isMenuItem:o=!1})=>{let n=mt.Button;return o&&(n=mt.MenuItem),(0,it.jsx)(n,{variant:"link",disabled:t,className:e,href:(0,no.addQueryArgs)("edit.php",{post_type:"wp_navigation"}),children:(0,pt.__)("Manage menus")})};var V_=function({onCreateNew:e,isNotice:t=!1}){const[o,n]=(0,gt.useState)(!1),r=(0,gt.createInterpolateElement)((0,pt.__)("Navigation Menu has been deleted or is unavailable. <button>Create a new Menu?</button>"),{button:(0,it.jsx)(mt.Button,{__next40pxDefaultSize:!0,onClick:()=>{n(!0),e()},variant:"link",disabled:o,accessibleWhenDisabled:!0})});return t?(0,it.jsx)(mt.Notice,{status:"warning",isDismissible:!1,children:r}):(0,it.jsx)(ct.Warning,{children:r})},F_=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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"})}),E_=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"})});const O_={className:"block-editor-block-settings-menu__popover",placement:"bottom-start"},G_=["core/navigation-link","core/navigation-submenu"];function $_({block:e,onClose:t,expandedState:o,expand:n,setInsertedBlock:r}){const{insertBlock:a,replaceBlock:i,replaceInnerBlocks:s}=(0,lt.useDispatch)(ct.store),l=e.clientId,c=!G_.includes(e.name);return(0,it.jsx)(mt.MenuItem,{icon:F_,disabled:c,onClick:()=>{const c=!1,u=(0,st.createBlock)($h.name,$h.attributes);if("core/navigation-submenu"===e.name)a(u,e.innerBlocks.length,l,c);else{const t=(0,st.createBlock)("core/navigation-submenu",e.attributes,e.innerBlocks);i(l,t),s(t.clientId,[u],c)}r(u),o[e.clientId]||n(e.clientId),t()},children:(0,pt.__)("Add submenu link")})}function U_(e){const{block:t}=e,{clientId:o}=t,{moveBlocksDown:n,moveBlocksUp:r,removeBlocks:a}=(0,lt.useDispatch)(ct.store),i=(0,pt.sprintf)((0,pt.__)("Remove %s"),(0,ct.BlockTitle)({clientId:o,maximumLength:25})),s=(0,lt.useSelect)((e=>{const{getBlockRootClientId:t}=e(ct.store);return t(o)}),[o]);return(0,it.jsx)(mt.DropdownMenu,{icon:Kh,label:(0,pt.__)("Options"),className:"block-editor-block-settings-menu",popoverProps:O_,noIcons:!0,...e,children:({onClose:l})=>(0,it.jsxs)(it.Fragment,{children:[(0,it.jsxs)(mt.MenuGroup,{children:[(0,it.jsx)(mt.MenuItem,{icon:E_,onClick:()=>{r([o],s),l()},children:(0,pt.__)("Move up")}),(0,it.jsx)(mt.MenuItem,{icon:qp,onClick:()=>{n([o],s),l()},children:(0,pt.__)("Move down")}),(0,it.jsx)($_,{block:t,onClose:l,expandedState:e.expandedState,expand:e.expand,setInsertedBlock:e.setInsertedBlock})]}),(0,it.jsx)(mt.MenuGroup,{children:(0,it.jsx)(mt.MenuItem,{onClick:()=>{a([o],!1),l()},children:i})})]})})}var q_=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M11 12.5V17.5H12.5V12.5H17.5V11H12.5V6H11V11H6V12.5H11Z"})}),W_=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M10.8622 8.04053L14.2805 12.0286L10.8622 16.0167L9.72327 15.0405L12.3049 12.0286L9.72327 9.01672L10.8622 8.04053Z"})}),Z_=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"m13.1 16-3.4-4 3.4-4 1.1 1-2.6 3 2.6 3-1.1 1z"})});function J_({className:e,onBack:t}){return(0,it.jsx)(mt.Button,{className:e,icon:(0,pt.isRTL)()?W_:Z_,onClick:e=>{e.preventDefault(),t()},size:"small",children:(0,pt.__)("Back")})}var Q_=function e({className:t,title:o,description:n,onBack:r,children:a}){const i=(0,xt.useInstanceId)(e,"link-ui-dialog-title"),s=(0,xt.useInstanceId)(e,"link-ui-dialog-description"),l=(0,xt.useFocusOnMount)("firstElement"),c=`${t}__back`;return(0,it.jsxs)("div",{className:t,role:"dialog","aria-labelledby":i,"aria-describedby":s,ref:l,children:[(0,it.jsxs)(mt.VisuallyHidden,{children:[(0,it.jsx)("h2",{id:i,children:o}),(0,it.jsx)("p",{id:s,children:n})]}),(0,it.jsx)(J_,{className:c,onBack:r}),a]})};function K_({postType:e,onBack:t,onPageCreated:o,initialTitle:n=""}){const[r,a]=(0,gt.useState)(n),[i,s]=(0,gt.useState)(!1),l=r.trim().length>0,{lastError:c,isSaving:u}=(0,lt.useSelect)((t=>({lastError:t(_t.store).getLastEntitySaveError("postType",e),isSaving:t(_t.store).isSavingEntityRecord("postType",e)})),[e]),{saveEntityRecord:d}=(0,lt.useDispatch)(_t.store);const p=u||!l;return(0,it.jsx)(Q_,{className:"link-ui-page-creator",title:(0,pt.__)("Create page"),description:(0,pt.__)("Create a new page to add to your Navigation."),onBack:t,children:(0,it.jsx)(mt.__experimentalVStack,{className:"link-ui-page-creator__inner",spacing:4,children:(0,it.jsx)("form",{onSubmit:async function(t){if(t.preventDefault(),!u&&l)try{const t=await d("postType",e,{title:r,status:i?"publish":"draft"},{throwOnError:!0});if(t){const n={id:t.id,type:e,title:(0,ao.decodeEntities)(t.title.rendered),url:t.link,kind:"post-type"};o(n)}}catch(e){}},children:(0,it.jsxs)(mt.__experimentalVStack,{spacing:4,children:[(0,it.jsx)(mt.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("Title"),onChange:a,placeholder:(0,pt.__)("No title"),value:r}),(0,it.jsx)(mt.CheckboxControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Publish immediately"),help:(0,pt.__)("If unchecked, the page will be created as a draft."),checked:i,onChange:s}),c&&(0,it.jsx)(mt.Notice,{status:"error",isDismissible:!1,children:c.message}),(0,it.jsxs)(mt.__experimentalHStack,{spacing:2,justify:"flex-end",children:[(0,it.jsx)(mt.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:t,disabled:u,accessibleWhenDisabled:!0,children:(0,pt.__)("Cancel")}),(0,it.jsx)(mt.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",isBusy:u,"aria-disabled":p,children:(0,pt.__)("Create page")})]})]})})})})}const{PrivateQuickInserter:Y_}=jo(ct.privateApis);var X_=function({clientId:e,onBack:t,onBlockInsert:o}){const{rootBlockClientId:n}=(0,lt.useSelect)((t=>{const{getBlockRootClientId:o}=t(ct.store);return{rootBlockClientId:o(e)}}),[e]);return e?(0,it.jsx)(Q_,{className:"link-ui-block-inserter",title:(0,pt.__)("Add block"),description:(0,pt.__)("Choose a block to add to your Navigation."),onBack:t,children:(0,it.jsx)(Y_,{rootClientId:n,clientId:e,isAppender:!1,prioritizePatterns:!1,selectBlockOnInsert:!o,onSelect:o||void 0,hasSearch:!1})}):null};function ex(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}:{initialSuggestionsSearchOptions:{type:"post",subtype:"page",perPage:20}}}}const tx=(0,gt.forwardRef)((function(e,t){const{label:o,url:n,opensInNewTab:r,type:a,kind:i,id:s}=e.link,{clientId:l}=e,c=a||"page",[u,d]=(0,gt.useState)(!1),[p,m]=(0,gt.useState)(!1),[g,h]=(0,gt.useState)(!1),[_,x]=(0,gt.useState)(!1),b=(0,_t.useResourcePermissions)({kind:"postType",name:c}),{isBoundEntityAvailable:f}=p_({clientId:l,attributes:e.link}),y=(0,gt.useMemo)((()=>({url:n,opensInNewTab:r,title:o&&(0,lu.__unstableStripHTML)(o),kind:i,type:a,id:s})),[o,r,n,i,a,s]),v=(0,xt.useInstanceId)(tx,"link-ui-link-control__title"),k=(0,xt.useInstanceId)(tx,"link-ui-link-control__description"),w=(0,ct.useBlockEditingMode)();return(0,it.jsxs)(mt.Popover,{ref:t,placement:"bottom",onClose:e.onClose,anchor:e.anchor,shift:!0,children:[!u&&!p&&(0,it.jsxs)("div",{role:"dialog","aria-labelledby":v,"aria-describedby":k,children:[(0,it.jsxs)(mt.VisuallyHidden,{children:[(0,it.jsx)("h2",{id:v,children:(0,pt.__)("Add link")}),(0,it.jsx)("p",{id:k,children:(0,pt.__)("Search for and add a link to your Navigation.")})]}),(0,it.jsx)(ct.LinkControl,{hasTextControl:!0,hasRichPreviews:!0,value:y,showInitialSuggestions:!0,withCreateSuggestion:!1,noDirectEntry:!!a,noURLSuggestion:!!a,suggestionsQuery:ex(a,i),onChange:e.onChange,onRemove:e.onRemove,onCancel:e.onCancel,handleEntities:f,renderControlBottom:()=>y?.url?.length?null:(0,it.jsx)(ox,{focusAddBlockButton:g,focusAddPageButton:_,setAddingBlock:()=>{d(!0),h(!1)},setAddingPage:()=>{m(!0),x(!1)},canAddPage:b?.canCreate&&"page"===a,canAddBlock:"default"===w})})]}),u&&(0,it.jsx)(X_,{clientId:e.clientId,onBack:()=>{d(!1),h(!0),x(!1)},onBlockInsert:e?.onBlockInsert}),p&&(0,it.jsx)(K_,{postType:c,onBack:()=>{m(!1),x(!0),h(!1)},onPageCreated:t=>{e.onChange(t),m(!1)},initialTitle:y?.url||""})]})})),ox=({setAddingBlock:e,setAddingPage:t,focusAddBlockButton:o,focusAddPageButton:n,canAddPage:r,canAddBlock:a})=>{const i="listbox",s=(0,gt.useRef)(),l=(0,gt.useRef)();return(0,gt.useEffect)((()=>{o&&s.current?.focus()}),[o]),(0,gt.useEffect)((()=>{n&&l.current?.focus()}),[n]),r||a?(0,it.jsxs)(mt.__experimentalVStack,{spacing:0,className:"link-ui-tools",children:[r&&(0,it.jsx)(mt.Button,{__next40pxDefaultSize:!0,ref:l,icon:q_,onClick:e=>{e.preventDefault(),t(!0)},"aria-haspopup":i,children:(0,pt.__)("Create page")}),a&&(0,it.jsx)(mt.Button,{__next40pxDefaultSize:!0,ref:s,icon:q_,onClick:t=>{t.preventDefault(),e(!0)},"aria-haspopup":i,children:(0,pt.__)("Add block")})]}):null};const nx=window.wp.escapeHtml,rx=(e={},t,o={})=>{const{label:n="",kind:r="",type:a=""}=o,{title:i="",label:s="",url:l,opensInNewTab:c,id:u,kind:d=r,type:p=a}=e,m=i||s,g=m.replace(/http(s?):\/\//gi,""),h=l?.replace(/http(s?):\/\//gi,"")??"",_=m&&m!==n&&g!==h?(0,nx.escapeHTML)(m):n||(0,nx.escapeHTML)(h),x="post_tag"===p?"tag":p.replace("-","_"),b=["post","page","tag","category"].indexOf(x)>-1,f=!d&&!b||"custom"===d?"custom":d,y={...void 0!==l?{url:l?encodeURI((0,no.safeDecodeURI)(l)):l}:{},..._&&{label:_},...void 0!==c&&{opensInNewTab:c},...f&&{kind:f},...x&&"URL"!==x&&{type:x}};if(l&&!u&&o.id){const e=((e,t)=>{if(!e||!t)return!1;const o=e=>e?e.replace(/\/+$/,""):"",n=(e,t=null)=>{try{const o=t||("undefined"!=typeof window?window.location.origin:"https://wordpress.org");return new URL(e,o)}catch(e){return null}},r=n(e);if(!r)return!0;const a=n(t,e);if(!a)return!0;const i=r.hostname,s=a.hostname,l=o((0,no.getPath)(r.toString())),c=o((0,no.getPath)(a.toString()));if(i!==s||l!==c)return!0;const u=r.searchParams.get("p"),d=a.searchParams.get("p");if(u&&d&&u!==d)return!0;const p=r.searchParams.get("page_id"),m=a.searchParams.get("page_id");return!(!p||!m||p===m)||!!(u&&m||p&&d)})(o.url,l);e&&(y.id=void 0,y.kind="custom",y.type="custom")}else u&&Number.isInteger(u)?y.id=u:o.id&&(y.kind=f,y.type=x);t(y);const v="id"in y?y.id:o.id,k="kind"in y?y.kind:o.kind;return{isEntityLink:!!v&&"custom"!==k,attributes:y}},ax=(0,pt.__)("Switch to '%s'"),ix=["core/navigation-link","core/navigation-submenu"],{PrivateListView:sx}=jo(ct.privateApis);function lx({block:e,insertedBlock:t,setInsertedBlock:o}){const{updateBlockAttributes:n,removeBlock:r}=(0,lt.useDispatch)(ct.store),a=ix?.includes(t?.name),i=t?.clientId===e.clientId,s=a&&i,{createBinding:l,clearBinding:c}=p_({clientId:t?.clientId,attributes:t?.attributes||{}});if(!s)return null;return(0,it.jsx)(tx,{clientId:t?.clientId,link:t?.attributes,onBlockInsert:e=>{t?.clientId&&e&&r(t.clientId,false),o(e)},onClose:()=>{!t?.attributes?.url&&t?.clientId&&r(t.clientId,!1),o(null)},onChange:e=>{const{isEntityLink:r,attributes:a}=rx(e,(i=t?.clientId,e=>{i&&n(i,e)}),t?.attributes);var i;r?l(a):c(a),o(null)}})}const cx=({clientId:e,currentMenuId:t,isLoading:o,isNavigationMenuMissing:n,onCreateNew:r})=>{const a=(0,lt.useSelect)((t=>!!t(ct.store).getBlockCount(e)),[e]),{navigationMenu:i}=Zh(t);if(t&&n)return(0,it.jsx)(V_,{onCreateNew:r,isNotice:!0});if(o)return(0,it.jsx)(mt.Spinner,{});const s=i?(0,pt.sprintf)((0,pt.__)("Structure for Navigation Menu: %s"),i?.title||(0,pt.__)("Untitled menu")):(0,pt.__)("You have not yet created any menus. Displaying a list of your Pages");return(0,it.jsxs)("div",{className:"wp-block-navigation__menu-inspector-controls",children:[!a&&(0,it.jsx)("p",{className:"wp-block-navigation__menu-inspector-controls__empty-message",children:(0,pt.__)("This Navigation Menu is empty.")}),(0,it.jsx)(sx,{rootClientId:e,isExpanded:!0,description:s,showAppender:!0,blockSettingsMenu:U_,additionalBlockContent:lx})]})};var ux=e=>{const{createNavigationMenuIsSuccess:t,createNavigationMenuIsError:o,currentMenuId:n=null,onCreateNew:r,onSelectClassicMenu:a,onSelectNavigationMenu:i,isManageMenusButtonDisabled:s,blockEditingMode:l}=e;return(0,it.jsx)(ct.InspectorControls,{group:"list",children:(0,it.jsxs)(mt.PanelBody,{title:null,children:[(0,it.jsxs)(mt.__experimentalHStack,{className:"wp-block-navigation-off-canvas-editor__header",children:[(0,it.jsx)(mt.__experimentalHeading,{className:"wp-block-navigation-off-canvas-editor__title",level:2,children:(0,pt.__)("Menu")}),"default"===l&&(0,it.jsx)(Yh,{currentMenuId:n,onSelectClassicMenu:a,onSelectNavigationMenu:i,onCreateNew:r,createNavigationMenuIsSuccess:t,createNavigationMenuIsError:o,actionLabel:ax,isManageMenusButtonDisabled:s})]}),(0,it.jsx)(cx,{...e})]})})};function dx({id:e,children:t}){return(0,it.jsx)(mt.VisuallyHidden,{children:(0,it.jsx)("div",{id:e,className:"wp-block-navigation__description",children:t})})}function px({id:e}){const[t]=(0,_t.useEntityProp)("postType","wp_navigation","title"),o=(0,pt.sprintf)((0,pt.__)('Navigation Menu: "%s"'),t);return(0,it.jsx)(dx,{id:e,children:o})}function mx({clientId:e}){const{insertBlock:t}=(0,lt.useDispatch)(ct.store),{getBlockCount:o}=(0,lt.useSelect)(ct.store),n=(0,gt.useCallback)((()=>{const n=o(e),r=(0,st.createBlock)($h.name,{kind:$h.attributes.kind,type:$h.attributes.type});t(r,n,e)}),[e,t,o]);return(0,it.jsx)(ct.BlockControls,{children:(0,it.jsx)(mt.ToolbarGroup,{children:(0,it.jsx)(mt.ToolbarButton,{name:"add-page",icon:Eh,onClick:n,children:(0,pt.__)("Add page")})})})}function gx({textColor:e,setTextColor:t,backgroundColor:o,setBackgroundColor:n,overlayTextColor:r,setOverlayTextColor:a,overlayBackgroundColor:i,setOverlayBackgroundColor:s,clientId:l,navRef:c}){const[u,d]=(0,gt.useState)(),[p,m]=(0,gt.useState)(),[g,h]=(0,gt.useState)(),[_,x]=(0,gt.useState)(),b="web"===gt.Platform.OS;(0,gt.useEffect)((()=>{if(!b)return;A_(c.current,m,d);const e=c.current?.querySelector('[data-type="core/navigation-submenu"] [data-type="core/navigation-link"]');e&&(r.color||i.color)&&A_(e,x,h)}),[b,r.color,i.color,c]);const f=(0,ct.__experimentalUseMultipleOriginColorsAndGradients)();return f.hasColorsOrGradients?(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.__experimentalColorGradientSettingsDropdown,{__experimentalIsRenderedInSidebar:!0,settings:[{colorValue:e.color,label:(0,pt.__)("Text"),onColorChange:t,resetAllFilter:()=>t(),clearable:!0,enableAlpha:!0},{colorValue:o.color,label:(0,pt.__)("Background"),onColorChange:n,resetAllFilter:()=>n(),clearable:!0,enableAlpha:!0},{colorValue:r.color,label:(0,pt.__)("Submenu & overlay text"),onColorChange:a,resetAllFilter:()=>a(),clearable:!0,enableAlpha:!0},{colorValue:i.color,label:(0,pt.__)("Submenu & overlay background"),onColorChange:s,resetAllFilter:()=>s(),clearable:!0,enableAlpha:!0}],panelId:l,...f,gradients:[],disableCustomGradients:!0}),b&&(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.ContrastChecker,{backgroundColor:u,textColor:p}),(0,it.jsx)(ct.ContrastChecker,{backgroundColor:g,textColor:_})]})]}):null}var hx=(0,ct.withColors)({textColor:"color"},{backgroundColor:"color"},{overlayBackgroundColor:"color"},{overlayTextColor:"color"})((function({attributes:e,setAttributes:t,clientId:o,isSelected:n,className:r,backgroundColor:a,setBackgroundColor:i,textColor:s,setTextColor:l,overlayBackgroundColor:c,setOverlayBackgroundColor:u,overlayTextColor:d,setOverlayTextColor:p,hasSubmenuIndicatorSetting:m=!0,customPlaceholder:g=null,__unstableLayoutClassNames:h}){const{openSubmenusOnClick:_,overlayMenu:x,showSubmenuIcon:b,templateLock:f,layout:{justifyContent:y,orientation:v="horizontal",flexWrap:k="wrap"}={},hasIcon:w,icon:C="handle"}=e,j=e.ref,S=(0,gt.useCallback)((e=>{t({ref:e})}),[t]),B=`navigationMenu/${j}`,T=(0,ct.useHasRecursion)(B),N=(0,ct.useBlockEditingMode)(),{menus:P}=Jh(),[I,D]=c_({name:"block-library/core/navigation/status"}),[M,z]=c_({name:"block-library/core/navigation/classic-menu-conversion"}),[A,L]=c_({name:"block-library/core/navigation/permissions/update"}),{create:H,status:R,error:V,value:F,isPending:E,isSuccess:O,isError:G}=function(e){const[t,o]=(0,gt.useState)(D_),[n,r]=(0,gt.useState)(null),[a,i]=(0,gt.useState)(null),{saveEntityRecord:s,editEntityRecord:l}=(0,lt.useDispatch)(_t.store),c=T_(e);return{create:(0,gt.useCallback)((async(e=null,t=[],n)=>{if(e&&"string"!=typeof e)throw i("Invalid title supplied when creating Navigation Menu."),o(P_),new Error("Value of supplied title argument was not a string.");o(I_),r(null),i(null),e||(e=await c().catch((e=>{throw i(e?.message),o(P_),new Error("Failed to create title when saving new Navigation Menu.",{cause:e})})));const a={title:e,content:(0,st.serialize)(t),status:n};return s("postType","wp_navigation",a).then((e=>(r(e),o(N_),"publish"!==n&&l("postType","wp_navigation",e.id,{status:"publish"}),e))).catch((e=>{throw i(e?.message),o(P_),new Error("Unable to save new Navigation Menu",{cause:e})}))}),[s,l,c]),status:t,value:n,error:a,isIdle:t===D_,isPending:t===I_,isSuccess:t===N_,isError:t===P_}}(o),$=async()=>{await H("")},{hasUncontrolledInnerBlocks:U,uncontrolledInnerBlocks:q,isInnerBlockSelected:W,innerBlocks:Z}=function(e){return(0,lt.useSelect)((t=>{const{getBlock:o,getBlocks:n,hasSelectedInnerBlock:r}=t(ct.store),a=o(e).innerBlocks,i=!!a?.length,s=i?M_:n(e);return{innerBlocks:i?a:s,hasUncontrolledInnerBlocks:i,uncontrolledInnerBlocks:a,controlledInnerBlocks:s,isInnerBlockSelected:r(e,!0)}}),[e])}(o),J=!!Z.find((e=>"core/navigation-submenu"===e.name)),{replaceInnerBlocks:Q,selectBlock:K,__unstableMarkNextChangeAsNotPersistent:Y}=(0,lt.useDispatch)(ct.store),[X,ee]=(0,gt.useState)(!1),[te,oe]=(0,gt.useState)(!1),{hasResolvedNavigationMenus:ne,isNavigationMenuResolved:re,isNavigationMenuMissing:ae,canUserUpdateNavigationMenu:ie,hasResolvedCanUserUpdateNavigationMenu:se,canUserDeleteNavigationMenu:le,hasResolvedCanUserDeleteNavigationMenu:ce,canUserCreateNavigationMenus:ue,isResolvingCanUserCreateNavigationMenus:de,hasResolvedCanUserCreateNavigationMenus:pe}=Zh(j),me=ne&&ae,{convert:ge,status:he,error:_e}=f_(H),xe=he===x_,be=(0,gt.useCallback)(((e,t={focusNavigationBlock:!1})=>{const{focusNavigationBlock:n}=t;S(e),n&&K(o)}),[K,o,S]),fe=!ae&&re,ye=U&&!fe,{getNavigationFallbackId:ve}=jo((0,lt.useSelect)(_t.store)),ke=j||ye?null:ve();(0,gt.useEffect)((()=>{j||ye||!ke||(Y(),S(ke))}),[j,S,ye,ke,Y]);const we=(0,gt.useRef)(),Ce="nav",je=!j&&!E&&!xe&&ne&&0===P?.length&&!U,Se=!ne||E||xe||!(!j||fe||xe),Be=e.style?.typography?.textDecoration,Te=(0,lt.useSelect)((e=>e(ct.store).__unstableHasActiveBlockOverlayActive(o)),[o]),Ne="never"!==x,Pe=(0,ct.useBlockProps)({ref:we,className:Dt(r,{"items-justified-right":"right"===y,"items-justified-space-between":"space-between"===y,"items-justified-left":"left"===y,"items-justified-center":"center"===y,"is-vertical":"vertical"===v,"no-wrap":"nowrap"===k,"is-responsive":Ne,"has-text-color":!!s.color||!!s?.class,[(0,ct.getColorClassName)("color",s?.slug)]:!!s?.slug,"has-background":!!a.color||a.class,[(0,ct.getColorClassName)("background-color",a?.slug)]:!!a?.slug,[`has-text-decoration-${Be}`]:Be,"block-editor-block-content-overlay":Te},h),style:{color:!s?.slug&&s?.color,backgroundColor:!a?.slug&&a?.color}}),Ie=async e=>ge(e.id,e.name,"draft"),De=e=>{be(e)};(0,gt.useEffect)((()=>{D(),E&&(0,Fh.speak)((0,pt.__)("Creating Navigation Menu.")),O&&(be(F?.id,{focusNavigationBlock:!0}),I((0,pt.__)("Navigation Menu successfully created."))),G&&I((0,pt.__)("Failed to create Navigation Menu."))}),[R,V,F?.id,G,O,E,be,D,I]),(0,gt.useEffect)((()=>{z(),he===x_&&(0,Fh.speak)((0,pt.__)("Classic menu importing.")),he===h_&&(M((0,pt.__)("Classic menu imported successfully.")),be(F?.id,{focusNavigationBlock:!0})),he===__&&M((0,pt.__)("Classic menu import failed."))}),[he,_e,z,M,F?.id,be]),(0,gt.useEffect)((()=>{n||W||L(),(n||W)&&(j&&!me&&se&&!ie&&A((0,pt.__)("You do not have permission to edit this Menu. Any changes made will not be saved.")),j||!pe||ue||A((0,pt.__)("You do not have permission to create Navigation Menus.")))}),[n,W,ie,se,ue,pe,j,L,A,me]);const Me=ue||ie,ze=Dt("wp-block-navigation__overlay-menu-preview",{open:te}),Ae=b||_?"":(0,pt.__)('The current menu options offer reduced accessibility for users and are not recommended. Enabling either "Open on Click" or "Show arrow" offers enhanced accessibility by allowing keyboard users to browse submenus selectively.'),Le=(0,gt.useRef)(!0);(0,gt.useEffect)((()=>{!Le.current&&Ae&&(0,Fh.speak)(Ae),Le.current=!1}),[Ae]);const He=(0,xt.useInstanceId)(u_,"overlay-menu-preview"),Re=vt(),Ve=(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.InspectorControls,{children:m&&(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Display"),resetAll:()=>{t({showSubmenuIcon:!0,openSubmenusOnClick:!1,overlayMenu:"mobile",hasIcon:!0,icon:"handle"})},dropdownMenuProps:Re,children:[Ne&&(0,it.jsxs)(it.Fragment,{children:[(0,it.jsxs)(mt.Button,{__next40pxDefaultSize:!0,className:ze,onClick:()=>{oe(!te)},"aria-label":(0,pt.__)("Overlay menu controls"),"aria-controls":He,"aria-expanded":te,children:[w&&(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(t_,{icon:C}),(0,it.jsx)(Oh,{icon:Gh})]}),!w&&(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)("span",{children:(0,pt.__)("Menu")}),(0,it.jsx)("span",{children:(0,pt.__)("Close")})]})]}),te&&(0,it.jsx)(mt.__experimentalVStack,{id:He,spacing:4,style:{gridColumn:"span 2"},children:(0,it.jsx)(u_,{setAttributes:t,hasIcon:w,icon:C,hidden:!te})})]}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>"mobile"!==x,label:(0,pt.__)("Overlay Menu"),onDeselect:()=>t({overlayMenu:"mobile"}),isShownByDefault:!0,children:(0,it.jsxs)(mt.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("Overlay Menu"),"aria-label":(0,pt.__)("Configure overlay menu"),value:x,help:(0,pt.__)("Collapses the navigation options in a menu icon opening an overlay."),onChange:e=>t({overlayMenu:e}),isBlock:!0,children:[(0,it.jsx)(mt.__experimentalToggleGroupControlOption,{value:"never",label:(0,pt.__)("Off")}),(0,it.jsx)(mt.__experimentalToggleGroupControlOption,{value:"mobile",label:(0,pt.__)("Mobile")}),(0,it.jsx)(mt.__experimentalToggleGroupControlOption,{value:"always",label:(0,pt.__)("Always")})]})}),J&&(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)("h3",{className:"wp-block-navigation__submenu-header",children:(0,pt.__)("Submenus")}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>_,label:(0,pt.__)("Open on click"),onDeselect:()=>t({openSubmenusOnClick:!1,showSubmenuIcon:!0}),isShownByDefault:!0,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,checked:_,onChange:e=>{t({openSubmenusOnClick:e,...e&&{showSubmenuIcon:!0}})},label:(0,pt.__)("Open on click")})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!b,label:(0,pt.__)("Show arrow"),onDeselect:()=>t({showSubmenuIcon:!0}),isDisabled:e.openSubmenusOnClick,isShownByDefault:!0,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,checked:b,onChange:e=>{t({showSubmenuIcon:e})},disabled:e.openSubmenusOnClick,label:(0,pt.__)("Show arrow")})}),Ae&&(0,it.jsx)(mt.Notice,{spokenMessage:null,status:"warning",isDismissible:!1,className:"wp-block-navigation__submenu-accessibility-notice",children:Ae})]})]})}),(0,it.jsx)(ct.InspectorControls,{group:"color",children:(0,it.jsx)(gx,{textColor:s,setTextColor:l,backgroundColor:a,setBackgroundColor:i,overlayTextColor:d,setOverlayTextColor:p,overlayBackgroundColor:c,setOverlayBackgroundColor:u,clientId:o,navRef:we})})]}),Fe=`${o}-desc`,Ee="always"===x,Oe=!Me||!ne;if(ye&&!E)return(0,it.jsxs)(Ce,{...Pe,"aria-describedby":je?void 0:Fe,children:[(0,it.jsx)(dx,{id:Fe,children:(0,pt.__)("Unsaved Navigation Menu.")}),(0,it.jsx)(ux,{clientId:o,createNavigationMenuIsSuccess:O,createNavigationMenuIsError:G,currentMenuId:j,isNavigationMenuMissing:ae,isManageMenusButtonDisabled:Oe,onCreateNew:$,onSelectClassicMenu:Ie,onSelectNavigationMenu:De,isLoading:Se,blockEditingMode:N}),"default"===N&&Ve,(0,it.jsx)(o_,{id:o,onToggle:ee,isOpen:X,hasIcon:w,icon:C,isResponsive:Ne,isHiddenByDefault:Ee,overlayBackgroundColor:c,overlayTextColor:d,children:(0,it.jsx)(s_,{createNavigationMenu:H,blocks:q,hasSelection:n||W})})]});if(j&&ae)return(0,it.jsxs)(Ce,{...Pe,children:[(0,it.jsx)(ux,{clientId:o,createNavigationMenuIsSuccess:O,createNavigationMenuIsError:G,currentMenuId:j,isNavigationMenuMissing:ae,isManageMenusButtonDisabled:Oe,onCreateNew:$,onSelectClassicMenu:Ie,onSelectNavigationMenu:De,isLoading:Se,blockEditingMode:N}),(0,it.jsx)(V_,{onCreateNew:$})]});if(fe&&T)return(0,it.jsx)("div",{...Pe,children:(0,it.jsx)(ct.Warning,{children:(0,pt.__)("Block cannot be rendered inside itself.")})});const Ge=g||Xh;return je&&g?(0,it.jsx)(Ce,{...Pe,children:(0,it.jsx)(Ge,{isSelected:n,currentMenuId:j,clientId:o,canUserCreateNavigationMenus:ue,isResolvingCanUserCreateNavigationMenus:de,onSelectNavigationMenu:De,onSelectClassicMenu:Ie,onCreateEmpty:$})}):(0,it.jsx)(_t.EntityProvider,{kind:"postType",type:"wp_navigation",id:j,children:(0,it.jsxs)(ct.RecursionProvider,{uniqueId:B,children:[(0,it.jsx)(ux,{clientId:o,createNavigationMenuIsSuccess:O,createNavigationMenuIsError:G,currentMenuId:j,isNavigationMenuMissing:ae,isManageMenusButtonDisabled:Oe,onCreateNew:$,onSelectClassicMenu:Ie,onSelectNavigationMenu:De,isLoading:Se,blockEditingMode:N}),"default"===N&&Ve,"contentOnly"===N&&fe&&(0,it.jsx)(mx,{clientId:o}),"default"===N&&fe&&(0,it.jsxs)(ct.InspectorControls,{group:"advanced",children:[se&&ie&&(0,it.jsx)(r_,{}),ce&&le&&(0,it.jsx)(l_,{onDelete:()=>{Q(o,[]),I((0,pt.__)("Navigation Menu successfully deleted."))}}),(0,it.jsx)(R_,{disabled:Oe,className:"wp-block-navigation-manage-menus-button"})]}),(0,it.jsxs)(Ce,{...Pe,"aria-describedby":je||Se?void 0:Fe,children:[Se&&!Ee&&(0,it.jsx)("div",{className:"wp-block-navigation__loading-indicator-container",children:(0,it.jsx)(mt.Spinner,{className:"wp-block-navigation__loading-indicator"})}),(!Se||Ee)&&(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(px,{id:Fe}),(0,it.jsx)(o_,{id:o,onToggle:ee,hasIcon:w,icon:C,isOpen:X,isResponsive:Ne,isHiddenByDefault:Ee,overlayBackgroundColor:c,overlayTextColor:d,children:fe&&(0,it.jsx)(n_,{clientId:o,hasCustomPlaceholder:!!g,templateLock:f,orientation:v})})]})]})]})})}));const _x={fontStyle:"var:preset|font-style|",fontWeight:"var:preset|font-weight|",textDecoration:"var:preset|text-decoration|",textTransform:"var:preset|text-transform|"},xx=({navigationMenuId:e,...t})=>({...t,ref:e}),bx=e=>{if(e.layout)return e;const{itemsJustification:t,orientation:o,...n}=e;return(t||o)&&Object.assign(n,{layout:{type:"flex",...t&&{justifyContent:t},...o&&{orientation:o}}}),n},fx={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}},layout:{allowSwitching:!1,allowInheriting:!1,default:{type:"flex"}}},save:()=>(0,it.jsx)(ct.InnerBlocks.Content,{}),isEligible:({navigationMenuId:e})=>!!e,migrate:xx},yx={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:()=>(0,it.jsx)(ct.InnerBlocks.Content,{}),isEligible:({itemsJustification:e,orientation:t})=>!!e||!!t,migrate:(0,xt.compose)(xx,bx)},vx={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:()=>(0,it.jsx)(ct.InnerBlocks.Content,{}),migrate:(0,xt.compose)(xx,bx,Yo),isEligible:({style:e})=>e?.typography?.fontFamily},kx=[fx,yx,vx,{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:(0,xt.compose)(xx,bx,Yo,(function(e){return delete e.isResponsive,{...e,overlayMenu:"mobile"}})),save:()=>(0,it.jsx)(ct.InnerBlocks.Content,{})},{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:()=>(0,it.jsx)(ct.InnerBlocks.Content,{}),isEligible(e){if(!e.style||!e.style.typography)return!1;for(const t in _x){const o=e.style.typography[t];if(o&&o.startsWith(_x[t]))return!0}return!1},migrate:(0,xt.compose)(xx,bx,Yo,(function(e){return{...e,style:{...e.style,typography:Object.fromEntries(Object.entries(e.style.typography??{}).map((([e,t])=>{const o=_x[e];if(o&&t.startsWith(o)){const n=t.slice(o.length);return"textDecoration"===e&&"strikethrough"===n?[e,"line-through"]:[e,n]}return[e,t]})))}}}))},{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:(0,xt.compose)(xx,(e=>{const{rgbTextColor:t,rgbBackgroundColor:o,...n}=e;return{...n,customTextColor:e.textColor?void 0:e.rgbTextColor,customBackgroundColor:e.backgroundColor?void 0:e.rgbBackgroundColor}})),save:()=>(0,it.jsx)(ct.InnerBlocks.Content,{})}];var wx=kx;const{name:Cx}=Vh,jx={icon:Rh,example:{attributes:{overlayMenu:"never"},innerBlocks:[{name:"core/navigation-link",attributes:{label:(0,pt.__)("Home"),url:"https://make.wordpress.org/"}},{name:"core/navigation-link",attributes:{label:(0,pt.__)("About"),url:"https://make.wordpress.org/"}},{name:"core/navigation-link",attributes:{label:(0,pt.__)("Contact"),url:"https://make.wordpress.org/"}}]},edit:hx,save:function({attributes:e}){if(!e.ref)return(0,it.jsx)(ct.InnerBlocks.Content,{})},__experimentalLabel:({ref:e})=>{if(!e)return;const t=(0,lt.select)(_t.store).getEditedEntityRecord("postType","wp_navigation",e);return t?.title?(0,ao.decodeEntities)(t.title):void 0},deprecated:wx},Sx=()=>jt({name:Cx,metadata:Vh,settings:jx}),Bx=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/navigation-link","title":"Custom Link","category":"design","parent":["core/navigation"],"allowedBlocks":["core/navigation-link","core/navigation-submenu","core/page-list"],"description":"Add a page, link, or another item to your navigation.","textdomain":"default","attributes":{"label":{"type":"string","role":"content"},"type":{"type":"string"},"description":{"type":"string"},"rel":{"type":"string"},"id":{"type":"number"},"opensInNewTab":{"type":"boolean","default":false},"url":{"type":"string"},"title":{"type":"string"},"kind":{"type":"string"},"isTopLevelLink":{"type":"boolean"}},"usesContext":["textColor","customTextColor","backgroundColor","customBackgroundColor","overlayTextColor","customOverlayTextColor","overlayBackgroundColor","customOverlayBackgroundColor","fontSize","customFontSize","showSubmenuIcon","maxNestingLevel","style"],"supports":{"reusable":false,"html":false,"__experimentalSlashInserter":true,"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"renaming":false,"interactivity":{"clientNavigation":true}},"editorStyle":"wp-block-navigation-link-editor","style":"wp-block-navigation-link"}');function Tx(e,t){if("post-type"===t)switch(e){case"post":return(0,pt.__)("post");case"page":return(0,pt.__)("page");default:return e||(0,pt.__)("post")}if("taxonomy"===t)switch(e){case"category":return(0,pt.__)("category");case"tag":return(0,pt.__)("tag");default:return e||(0,pt.__)("term")}return e||(0,pt.__)("item")}function Nx({attributes:e,setAttributes:t,clientId:o}){const{label:n,url:r,description:a,rel:i,opensInNewTab:s}=e,l=(0,gt.useRef)(r),c=vt(),u=(0,gt.useRef)(),d=(0,gt.useRef)(!1),p=(0,xt.useInstanceId)(Nx,"link-input"),m=`${p}__help`,[g,h]=(0,gt.useState)(r);(0,gt.useEffect)((()=>{h(r),l.current=r}),[r]);const{hasUrlBinding:_,isBoundEntityAvailable:x,clearBinding:b}=p_({clientId:o,attributes:e}),{updateBlockAttributes:f}=(0,lt.useDispatch)(ct.store);return(0,gt.useEffect)((()=>{!_&&d.current&&u.current?.select(),d.current=!1}),[_]),(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{t({label:"",url:"",description:"",rel:"",opensInNewTab:!1})},dropdownMenuProps:c,children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!!n,label:(0,pt.__)("Text"),onDeselect:()=>t({label:""}),isShownByDefault:!0,children:(0,it.jsx)(mt.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,pt.__)("Text"),value:n?(0,lu.__unstableStripHTML)(n):"",onChange:e=>{t({label:e})},autoComplete:"off"})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!!r,label:(0,pt.__)("Link"),onDeselect:()=>t({url:""}),isShownByDefault:!0,children:(0,it.jsx)(mt.__experimentalInputControl,{ref:u,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,id:p,label:(0,pt.__)("Link"),value:_&&!x?"":g?(0,no.safeDecodeURI)(g):"",autoComplete:"off",type:"url",disabled:_,"aria-invalid":_&&!x?"true":void 0,"aria-describedby":m,className:_&&!x?"navigation-link-control__input-with-error-suffix":void 0,onChange:e=>{x||h(e)},onFocus:()=>{x||(l.current=r)},onBlur:()=>{if(x)return;const o=g||l.current;h(o),rx({url:o},t,{...e,url:l.current})},help:_&&!x?(0,it.jsx)(Ix,{id:m,type:e.type,kind:e.kind}):x&&(0,it.jsx)(Px,{type:e.type,kind:e.kind}),suffix:_&&(0,it.jsx)(mt.Button,{icon:hn,onClick:()=>{b(),f(o,{url:l.current,id:void 0}),d.current=!0},"aria-describedby":m,showTooltip:!0,label:(0,pt.__)("Unsync and edit"),__next40pxDefaultSize:!0,className:_&&!x?"navigation-link-control__error-suffix-button":void 0})})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!!s,label:(0,pt.__)("Open in new tab"),onDeselect:()=>t({opensInNewTab:!1}),isShownByDefault:!0,children:(0,it.jsx)(mt.CheckboxControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Open in new tab"),checked:s,onChange:e=>t({opensInNewTab:e})})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!!a,label:(0,pt.__)("Description"),onDeselect:()=>t({description:""}),isShownByDefault:!0,children:(0,it.jsx)(mt.TextareaControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Description"),value:a||"",onChange:e=>{t({description:e})},help:(0,pt.__)("The description will be displayed in the menu if the current theme supports it.")})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!!i,label:(0,pt.__)("Rel attribute"),onDeselect:()=>t({rel:""}),isShownByDefault:!0,children:(0,it.jsx)(mt.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,pt.__)("Rel attribute"),value:i||"",onChange:e=>{t({rel:e})},autoComplete:"off",help:(0,pt.__)("The relationship of the linked URL as space-separated link types.")})})]})}function Px({type:e,kind:t}){const o=Tx(e,t);return(0,pt.sprintf)((0,pt.__)("Synced with the selected %s."),o)}function Ix({id:e,type:t,kind:o}){const n=Tx(t,o);return(0,it.jsx)("span",{id:e,className:"navigation-link-control__error-text",role:"alert","aria-live":"polite",children:(0,pt.sprintf)((0,pt.__)("Synced %s is missing. Please update or remove this link."),n)})}const Dx={name:"core/navigation-link"},Mx=["core/navigation-link","core/navigation-submenu"];var zx=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M4.75 4a.75.75 0 0 0-.75.75v7.826c0 .2.08.39.22.53l6.72 6.716a2.313 2.313 0 0 0 3.276-.001l5.61-5.611-.531-.53.532.528a2.315 2.315 0 0 0 0-3.264L13.104 4.22a.75.75 0 0 0-.53-.22H4.75ZM19 12.576a.815.815 0 0 1-.236.574l-5.61 5.611a.814.814 0 0 1-1.153 0L5.5 12.264V5.5h6.763l6.5 6.502a.816.816 0 0 1 .237.574ZM8.75 9.75a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"})}),Ax=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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"})});function Lx(e){switch(e){case"post":return fm;case"page":return Eh;case"tag":return zx;case"category":return Un;default:return Ax}}function Hx(e,t){if("core/navigation-link"!==t)return e;if(e.variations){const t=(e,t)=>e.type===t.type,o=e.variations.map((e=>({...e,...!e.icon&&{icon:Lx(e.name)},...!e.isActive&&{isActive:t}})));return{...e,variations:o}}return e}const Rx={from:[{type:"block",blocks:["core/site-logo"],transform:()=>(0,st.createBlock)("core/navigation-link")},{type:"block",blocks:["core/spacer"],transform:()=>(0,st.createBlock)("core/navigation-link")},{type:"block",blocks:["core/home-link"],transform:()=>(0,st.createBlock)("core/navigation-link")},{type:"block",blocks:["core/social-links"],transform:()=>(0,st.createBlock)("core/navigation-link")},{type:"block",blocks:["core/search"],transform:()=>(0,st.createBlock)("core/navigation-link")},{type:"block",blocks:["core/page-list"],transform:()=>(0,st.createBlock)("core/navigation-link")},{type:"block",blocks:["core/buttons"],transform:()=>(0,st.createBlock)("core/navigation-link")}],to:[{type:"block",blocks:["core/navigation-submenu"],transform:(e,t)=>(0,st.createBlock)("core/navigation-submenu",e,t)},{type:"block",blocks:["core/spacer"],transform:()=>(0,st.createBlock)("core/spacer")},{type:"block",blocks:["core/site-logo"],transform:()=>(0,st.createBlock)("core/site-logo")},{type:"block",blocks:["core/home-link"],transform:()=>(0,st.createBlock)("core/home-link")},{type:"block",blocks:["core/social-links"],transform:()=>(0,st.createBlock)("core/social-links")},{type:"block",blocks:["core/search"],transform:()=>(0,st.createBlock)("core/search",{showLabel:!1,buttonUseIcon:!0,buttonPosition:"button-inside"})},{type:"block",blocks:["core/page-list"],transform:()=>(0,st.createBlock)("core/page-list")},{type:"block",blocks:["core/buttons"],transform:({label:e,url:t,rel:o,title:n,opensInNewTab:r})=>(0,st.createBlock)("core/buttons",{},[(0,st.createBlock)("core/button",{text:e,url:t,rel:o,title:n,linkTarget:r?"_blank":void 0})])}]};var Vx=Rx;const{name:Fx}=Bx,Ex={icon:ed,__experimentalLabel:({label:e})=>e,merge:(e,{label:t=""})=>({...e,label:e.label+t}),edit:function({attributes:e,isSelected:t,setAttributes:o,insertBlocksAfter:n,mergeBlocks:r,onReplace:a,context:i,clientId:s}){const{id:l,label:c,type:u,url:d,description:p,kind:m,metadata:g}=e,{maxNestingLevel:h}=i,{replaceBlock:_,__unstableMarkNextChangeAsNotPersistent:x,selectBlock:b}=(0,lt.useDispatch)(ct.store),[f,y]=(0,gt.useState)(t&&!d),[v,k]=(0,gt.useState)(null),w=(0,gt.useRef)(null),C=(e=>{const[t,o]=(0,gt.useState)(!1);return(0,gt.useEffect)((()=>{const{ownerDocument:t}=e.current;function n(e){a(e)}function r(){o(!1)}function a(t){e.current.contains(t.target)?o(!0):o(!1)}return t.addEventListener("dragstart",n),t.addEventListener("dragend",r),t.addEventListener("dragenter",a),()=>{t.removeEventListener("dragstart",n),t.removeEventListener("dragend",r),t.removeEventListener("dragenter",a)}}),[e]),t})(w),j=(0,pt.__)("Add label…"),S=(0,gt.useRef)(),B=(0,gt.useRef)(),T=(0,xt.usePrevious)(d),N=(0,gt.useRef)(!d),{isAtMaxNesting:P,isTopLevelLink:I,isParentOfSelectedBlock:D,hasChildren:M,validateLinkStatus:z,parentBlockClientId:A}=(0,lt.useSelect)((e=>{const{getBlockCount:t,getBlockName:o,getBlockRootClientId:n,hasSelectedInnerBlock:r,getBlockParentsByBlockName:a,getSelectedBlockClientId:i}=e(ct.store),l=n(s),c=o(l),u="core/navigation"===c,d=i(),p=u?l:a(s,"core/navigation")[0],m="core/navigation-submenu"===c?l:p,g=d===p||r(p,!0);return{isAtMaxNesting:a(s,Mx).length>=h,isTopLevelLink:u,isParentOfSelectedBlock:r(s,!0),hasChildren:!!t(s),validateLinkStatus:g,parentBlockClientId:m}}),[s,h]),{getBlocks:L}=(0,lt.useSelect)(ct.store),{clearBinding:H,createBinding:R,hasUrlBinding:V,isBoundEntityAvailable:F}=p_({clientId:s,attributes:e}),[E,O]=((e,t,o,n)=>{const r="post-type"===e||"post"===t||"page"===t,a=Number.isInteger(o),i=(0,ct.useBlockEditingMode)(),{postStatus:s,isDeleted:l}=(0,lt.useSelect)((e=>{if(!r)return{postStatus:null,isDeleted:!1};if("disabled"===i||!n)return{postStatus:null,isDeleted:!1};const{getEntityRecord:a,hasFinishedResolution:s}=e(_t.store),l=a("postType",t,o),c=s("getEntityRecord",["postType",t,o])&&void 0===l;return{postStatus:l?.status,isDeleted:c}}),[r,i,n,t,o]);return[r&&a&&(l||s&&"trash"===s),"draft"===s]})(m,u,l,z),G=(0,gt.useCallback)((()=>{let t=L(s);0===t.length&&(t=[(0,st.createBlock)("core/navigation-link")],b(t[0].clientId));const o=(0,st.createBlock)("core/navigation-submenu",e,t);_(s,o)}),[L,s,b,_,e]);(0,gt.useEffect)((()=>{N.current&&t&&!d&&b(A)}),[]),(0,gt.useEffect)((()=>{M&&(x(),G())}),[M,x,G]),(0,gt.useEffect)((()=>{!T&&d&&f&&(0,no.isURL)((0,no.prependHTTP)(c))&&/^.+\.[a-z]+/.test(c)&&function(){S.current.focus();const{ownerDocument:e}=S.current,{defaultView:t}=e,o=t.getSelection(),n=e.createRange();n.selectNodeContents(S.current),o.removeAllRanges(),o.addRange(n)}()}),[T,d,f,c]);const{textColor:$,customTextColor:U,backgroundColor:q,customBackgroundColor:W}=L_(i,!I),Z=(0,ct.useBlockProps)({ref:(0,xt.useMergeRefs)([k,w]),className:Dt("wp-block-navigation-item",{"is-editing":t||D,"is-dragging-within":C,"has-link":!!d,"has-child":M,"has-text-color":!!$||!!U,[(0,ct.getColorClassName)("color",$)]:!!$,"has-background":!!q||W,[(0,ct.getColorClassName)("background-color",q)]:!!q}),style:{color:!$&&U,backgroundColor:!q&&W},onKeyDown:function(e){mn.isKeyboardEvent.primary(e,"k")&&(e.preventDefault(),e.stopPropagation(),y(!0))}}),J=(0,ct.useInnerBlocksProps)({...Z,className:"remove-outline"},{defaultBlock:Dx,directInsert:!0,renderAppender:!1});(!d||E||O||V&&!F)&&(Z.onClick=()=>{y(!0)});const Q=Dt("wp-block-navigation-item__content",{"wp-block-navigation-link__placeholder":!d||E||O||V&&!F}),K=function(e){let t="";switch(e){case"post":t=(0,pt.__)("Select post");break;case"page":t=(0,pt.__)("Select page");break;case"category":t=(0,pt.__)("Select category");break;case"tag":t=(0,pt.__)("Select tag");break;default:t=(0,pt.__)("Add link")}return t}(u),Y=`(${E?(0,pt.__)("Invalid"):(0,pt.__)("Draft")})`;return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.BlockControls,{children:(0,it.jsxs)(mt.ToolbarGroup,{children:[(0,it.jsx)(mt.ToolbarButton,{name:"link",icon:gn,title:(0,pt.__)("Link"),shortcut:mn.displayShortcut.primary("k"),onClick:()=>{y(!0)}}),!P&&(0,it.jsx)(mt.ToolbarButton,{name:"submenu",icon:F_,title:(0,pt.__)("Add submenu"),onClick:G})]})}),(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsx)(Nx,{attributes:e,setAttributes:o,clientId:s})}),(0,it.jsxs)("div",{...Z,children:[(0,it.jsxs)("a",{className:Q,children:[d||g?.bindings?.url?(0,it.jsxs)(it.Fragment,{children:[!E&&!O&&(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.RichText,{ref:S,identifier:"label",className:"wp-block-navigation-item__label",value:c,onChange:e=>o({label:e}),onMerge:r,onReplace:a,__unstableOnSplitAtEnd:()=>n((0,st.createBlock)("core/navigation-link")),"aria-label":(0,pt.__)("Navigation link text"),placeholder:j,withoutInteractiveFormatting:!0}),p&&(0,it.jsx)("span",{className:"wp-block-navigation-item__description",children:p})]}),(E||O)&&(0,it.jsx)("div",{className:Dt("wp-block-navigation-link__placeholder-text","wp-block-navigation-link__label",{"is-invalid":E,"is-draft":O}),children:(0,it.jsx)("span",{children:`${(0,ao.decodeEntities)(c)} ${E||O?Y:""}`.trim()})})]}):(0,it.jsx)("div",{className:"wp-block-navigation-link__placeholder-text",children:(0,it.jsx)("span",{children:K})}),f&&(0,it.jsx)(tx,{ref:B,clientId:s,link:e,onClose:()=>{y(!1),d||V?N.current&&b(s):a([])},anchor:v,onRemove:function(){o({url:void 0,label:void 0,id:void 0,kind:void 0,type:void 0,opensInNewTab:!1}),y(!1)},onChange:t=>{const{isEntityLink:n,attributes:r}=rx(t,o,e);n?R(r):H(r)}})]}),(0,it.jsx)("div",{...J})]})]})},save:function(){return(0,it.jsx)(ct.InnerBlocks.Content,{})},example:{attributes:{label:(0,pt._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:({nofollow:e,...t})=>({rel:e?"nofollow":"",...t}),save:()=>(0,it.jsx)(ct.InnerBlocks.Content,{})}],transforms:Vx},Ox=()=>((0,vl.addFilter)("blocks.registerBlockType","core/navigation-link",Hx),jt({name:Fx,metadata:Bx,settings:Ex})),Gx=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/navigation-submenu","title":"Submenu","category":"design","parent":["core/navigation"],"description":"Add a submenu to your navigation.","textdomain":"default","attributes":{"label":{"type":"string","role":"content"},"type":{"type":"string"},"description":{"type":"string"},"rel":{"type":"string"},"id":{"type":"number"},"opensInNewTab":{"type":"boolean","default":false},"url":{"type":"string"},"title":{"type":"string"},"kind":{"type":"string"},"isTopLevelItem":{"type":"boolean"}},"usesContext":["textColor","customTextColor","backgroundColor","customBackgroundColor","overlayTextColor","customOverlayTextColor","overlayBackgroundColor","customOverlayBackgroundColor","fontSize","customFontSize","showSubmenuIcon","maxNestingLevel","openSubmenusOnClick","style"],"supports":{"reusable":false,"html":false,"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true}},"editorStyle":"wp-block-navigation-submenu-editor","style":"wp-block-navigation-submenu"}');var $x=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"m13.955 20.748 8-17.5-.91-.416L19.597 6H13.5v1.5h5.411l-1.6 3.5H13.5v1.5h3.126l-1.6 3.5H13.5l.028 1.5h.812l-1.295 2.832.91.416ZM17.675 16l-.686 1.5h4.539L21.5 16h-3.825Zm2.286-5-.686 1.5H21.5V11h-1.54ZM2 12c0 3.58 2.42 5.5 6 5.5h.5V19l3-2.5-3-2.5v2H8c-2.48 0-4.5-1.52-4.5-4S5.52 7.5 8 7.5h3.5V6H8c-3.58 0-6 2.42-6 6Z"})});const Ux=()=>(0,it.jsx)(mt.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:(0,it.jsx)(mt.Path,{d:"M1.50002 4L6.00002 8L10.5 4",strokeWidth:"1.5"})}),qx=["core/navigation-link","core/navigation-submenu","core/page-list"];const Wx={to:[{type:"block",blocks:["core/navigation-link"],isMatch:(e,t)=>0===t?.innerBlocks?.length,transform:e=>(0,st.createBlock)("core/navigation-link",e)},{type:"block",blocks:["core/spacer"],isMatch:(e,t)=>0===t?.innerBlocks?.length,transform:()=>(0,st.createBlock)("core/spacer")},{type:"block",blocks:["core/site-logo"],isMatch:(e,t)=>0===t?.innerBlocks?.length,transform:()=>(0,st.createBlock)("core/site-logo")},{type:"block",blocks:["core/home-link"],isMatch:(e,t)=>0===t?.innerBlocks?.length,transform:()=>(0,st.createBlock)("core/home-link")},{type:"block",blocks:["core/social-links"],isMatch:(e,t)=>0===t?.innerBlocks?.length,transform:()=>(0,st.createBlock)("core/social-links")},{type:"block",blocks:["core/search"],isMatch:(e,t)=>0===t?.innerBlocks?.length,transform:()=>(0,st.createBlock)("core/search")}]};var Zx=Wx;const{name:Jx}=Gx,Qx={icon:({context:e})=>"list-view"===e?Eh:F_,__experimentalLabel(e,{context:t}){const{label:o}=e,n=e?.metadata?.name;return"list-view"===t&&(n||o)&&e?.metadata?.name||o},edit:function({attributes:e,isSelected:t,setAttributes:o,mergeBlocks:n,onReplace:r,context:a,clientId:i}){const{label:s,url:l,description:c}=e,{showSubmenuIcon:u,maxNestingLevel:d,openSubmenusOnClick:p}=a,m="default"!==(0,ct.useBlockEditingMode)()||p,{clearBinding:g,createBinding:h}=p_({clientId:i,attributes:e}),{__unstableMarkNextChangeAsNotPersistent:_,replaceBlock:x}=(0,lt.useDispatch)(ct.store),[b,f]=(0,gt.useState)(!1),[y,v]=(0,gt.useState)(null),k=(0,gt.useRef)(null),w=(e=>{const[t,o]=(0,gt.useState)(!1);return(0,gt.useEffect)((()=>{const{ownerDocument:t}=e.current;function n(e){a(e)}function r(){o(!1)}function a(t){e.current.contains(t.target)?o(!0):o(!1)}return t.addEventListener("dragstart",n),t.addEventListener("dragend",r),t.addEventListener("dragenter",a),()=>{t.removeEventListener("dragstart",n),t.removeEventListener("dragend",r),t.removeEventListener("dragenter",a)}}),[]),t})(k),C=(0,pt.__)("Add text…"),j=(0,gt.useRef)(),{parentCount:S,isParentOfSelectedBlock:B,isImmediateParentOfSelectedBlock:T,hasChildren:N,selectedBlockHasChildren:P,onlyDescendantIsEmptyLink:I}=(0,lt.useSelect)((e=>{const{hasSelectedInnerBlock:t,getSelectedBlockClientId:o,getBlockParentsByBlockName:n,getBlock:r,getBlockCount:a,getBlockOrder:s}=e(ct.store);let l;const c=s(o());if(1===c?.length){const e=r(c[0]);l="core/navigation-link"===e?.name&&!e?.attributes?.label}return{parentCount:n(i,"core/navigation-submenu").length,isParentOfSelectedBlock:t(i,!0),isImmediateParentOfSelectedBlock:t(i,!1),hasChildren:!!a(i),selectedBlockHasChildren:!!c?.length,onlyDescendantIsEmptyLink:l}}),[i]),D=(0,xt.usePrevious)(N);(0,gt.useEffect)((()=>{m||l||f(!0)}),[]),(0,gt.useEffect)((()=>{t||f(!1)}),[t]),(0,gt.useEffect)((()=>{b&&l&&(0,no.isURL)((0,no.prependHTTP)(s))&&/^.+\.[a-z]+/.test(s)&&function(){j.current.focus();const{ownerDocument:e}=j.current,{defaultView:t}=e,o=t.getSelection(),n=e.createRange();n.selectNodeContents(j.current),o.removeAllRanges(),o.addRange(n)}()}),[l]);const{textColor:M,customTextColor:z,backgroundColor:A,customBackgroundColor:L}=L_(a,S>0),H=(0,ct.useBlockProps)({ref:(0,xt.useMergeRefs)([v,k]),className:Dt("wp-block-navigation-item",{"is-editing":t||B,"is-dragging-within":w,"has-link":!!l,"has-child":N,"has-text-color":!!M||!!z,[(0,ct.getColorClassName)("color",M)]:!!M,"has-background":!!A||L,[(0,ct.getColorClassName)("background-color",A)]:!!A,"open-on-click":m}),style:{color:!M&&z,backgroundColor:!A&&L},onKeyDown:function(e){mn.isKeyboardEvent.primary(e,"k")&&(e.preventDefault(),e.stopPropagation(),f(!0))}}),R=L_(a,!0),V=S>=d?qx.filter((e=>"core/navigation-submenu"!==e)):qx,F=H_(R),E=(0,ct.useInnerBlocksProps)(F,{allowedBlocks:V,defaultBlock:$h,directInsert:!0,__experimentalCaptureToolbars:!0,renderAppender:!!(t||T&&!P||N)&&ct.InnerBlocks.ButtonBlockAppender}),O=m?"button":"a";function G(){const t=(0,st.createBlock)("core/navigation-link",e);x(i,t)}(0,gt.useEffect)((()=>{!N&&D&&(_(),G())}),[N,D]);const $=!P||I;return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.BlockControls,{children:(0,it.jsxs)(mt.ToolbarGroup,{children:[!m&&(0,it.jsx)(mt.ToolbarButton,{name:"link",icon:gn,title:(0,pt.__)("Link"),shortcut:mn.displayShortcut.primary("k"),onClick:()=>{f(!0)}}),(0,it.jsx)(mt.ToolbarButton,{name:"revert",icon:$x,title:(0,pt.__)("Convert to Link"),onClick:G,className:"wp-block-navigation__submenu__revert",disabled:!$})]})}),(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsx)(Nx,{attributes:e,setAttributes:o,clientId:i})}),(0,it.jsxs)("div",{...H,children:[(0,it.jsxs)(O,{className:"wp-block-navigation-item__content",children:[(0,it.jsx)(ct.RichText,{ref:j,identifier:"label",className:"wp-block-navigation-item__label",value:s,onChange:e=>o({label:e}),onMerge:n,onReplace:r,"aria-label":(0,pt.__)("Navigation link text"),placeholder:C,withoutInteractiveFormatting:!0,onClick:()=>{m||l||f(!0)}}),c&&(0,it.jsx)("span",{className:"wp-block-navigation-item__description",children:c}),!m&&b&&(0,it.jsx)(tx,{clientId:i,link:e,onClose:()=>{f(!1)},anchor:y,onRemove:()=>{o({url:""}),(0,Fh.speak)((0,pt.__)("Link removed."),"assertive")},onChange:t=>{const{isEntityLink:n,attributes:r}=rx(t,o,e);n?h(r):g(r)}})]}),(u||m)&&(0,it.jsx)("span",{className:"wp-block-navigation__submenu-icon",children:(0,it.jsx)(Ux,{})}),(0,it.jsx)("div",{...E})]})]})},example:{attributes:{label:(0,pt._x)("About","Example link text for Navigation Submenu"),type:"page"}},save:function(){return(0,it.jsx)(ct.InnerBlocks.Content,{})},transforms:Zx},Kx=()=>jt({name:Jx,metadata:Gx,settings:Qx});var Yx=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M17.5 9V6a2 2 0 0 0-2-2h-7a2 2 0 0 0-2 2v3H8V6a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 .5.5v3h1.5Zm0 6.5V18a2 2 0 0 1-2 2h-7a2 2 0 0 1-2-2v-2.5H8V18a.5.5 0 0 0 .5.5h7a.5.5 0 0 0 .5-.5v-2.5h1.5ZM4 13h16v-1.5H4V13Z"})});const Xx=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"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":false,"className":false,"html":false,"interactivity":{"clientNavigation":true}},"editorStyle":"wp-block-nextpage-editor"}');var eb={from:[{type:"raw",schema:{"wp-block":{attributes:["data-block"]}},isMatch:e=>e.dataset&&"core/nextpage"===e.dataset.block,transform:()=>(0,st.createBlock)("core/nextpage",{})}]};const{name:tb}=Xx,ob={icon:Yx,example:{},transforms:eb,edit:function(){return(0,it.jsx)("div",{...(0,ct.useBlockProps)(),children:(0,it.jsx)("span",{children:(0,pt.__)("Page break")})})},save:function(){return(0,it.jsx)(gt.RawHTML,{children:"\x3c!--nextpage--\x3e"})}},nb=()=>jt({name:tb,metadata:Xx,settings:ob}),rb=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/pattern","title":"Pattern Placeholder","category":"theme","description":"Show a block pattern.","supports":{"html":false,"inserter":false,"renaming":false,"blockVisibility":false,"interactivity":{"clientNavigation":true}},"textdomain":"default","attributes":{"slug":{"type":"string"}}}'),ab=new WeakMap;function ib(){const e=(0,lt.useRegistry)();if(!ab.has(e)){const t=new Map;ab.set(e,sb.bind(null,t))}return ab.get(e)}function sb(e,{name:t,blocks:o}){const n=[...o];for(;n.length;){const o=n.shift();for(const e of o.innerBlocks??[])n.unshift(e);"core/pattern"===o.name&&lb(e,t,o.attributes.slug)}}function lb(e,t,o){if(e.has(t)||e.set(t,new Set),e.get(t).add(o),cb(e,t))throw new TypeError(`Pattern ${t} has a circular dependency and cannot be rendered.`)}function cb(e,t,o=new Set,n=new Set){o.add(t),n.add(t);const r=e.get(t)??new Set;for(const t of r)if(o.has(t)){if(n.has(t))return!0}else if(cb(e,t,o,n))return!0;return n.delete(t),!1}var ub=({attributes:e,clientId:t})=>{const o=(0,lt.useRegistry)(),n=(0,lt.useSelect)((t=>t(ct.store).__experimentalGetParsedPattern(e.slug)),[e.slug]),r=(0,lt.useSelect)((e=>e(_t.store).getCurrentTheme()?.stylesheet),[]),{replaceBlocks:a,setBlockEditingMode:i,__unstableMarkNextChangeAsNotPersistent:s}=(0,lt.useDispatch)(ct.store),{getBlockRootClientId:l,getBlockEditingMode:c}=(0,lt.useSelect)(ct.store),[u,d]=(0,gt.useState)(!1),p=ib();(0,gt.useEffect)((()=>{if(!u&&n?.blocks){try{p(n)}catch(e){return void d(!0)}window.queueMicrotask((()=>{const e=l(t),u=n.blocks.map((e=>(0,st.cloneBlock)(function(e){return e.innerBlocks.find((e=>"core/template-part"===e.name))&&(e.innerBlocks=e.innerBlocks.map((e=>("core/template-part"===e.name&&void 0===e.attributes.theme&&(e.attributes.theme=r),e)))),"core/template-part"===e.name&&void 0===e.attributes.theme&&(e.attributes.theme=r),e}(e))));1===u.length&&n.categories?.length>0&&(u[0].attributes={...u[0].attributes,metadata:{...u[0].attributes.metadata,categories:n.categories,patternName:n.name,name:u[0].attributes.metadata.name||n.title}});const d=c(e);o.batch((()=>{s(),i(e,"default"),s(),a(t,u),s(),i(e,d)}))}))}}),[t,u,n,s,a,c,i,l]);const m=(0,ct.useBlockProps)();return u?(0,it.jsx)("div",{...m,children:(0,it.jsx)(ct.Warning,{children:(0,pt.sprintf)((0,pt.__)('Pattern "%s" cannot be rendered inside itself.'),n?.name)})}):(0,it.jsx)("div",{...m})};const{name:db}=rb,pb={edit:ub},mb=()=>jt({name:db,metadata:rb,settings:pb});var gb=(0,it.jsxs)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,it.jsx)(St.Path,{d:"M14.5 5.5h-7V7h7V5.5ZM7.5 9h7v1.5h-7V9Zm7 3.5h-7V14h7v-1.5Z"}),(0,it.jsx)(St.Path,{d:"M16 2H6a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2ZM6 3.5h10a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H6a.5.5 0 0 1-.5-.5V4a.5.5 0 0 1 .5-.5Z"}),(0,it.jsx)(St.Path,{d:"M20 8v11c0 .69-.31 1-.999 1H6v1.5h13.001c1.52 0 2.499-.982 2.499-2.5V8H20Z"})]});const hb=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/page-list","title":"Page List","category":"widgets","allowedBlocks":["core/page-list-item"],"description":"Display a list of all pages.","keywords":["menu","navigation"],"textdomain":"default","attributes":{"parentPageID":{"type":"integer","default":0},"isNested":{"type":"boolean","default":false}},"usesContext":["textColor","customTextColor","backgroundColor","customBackgroundColor","overlayTextColor","customOverlayTextColor","overlayBackgroundColor","customOverlayBackgroundColor","fontSize","customFontSize","showSubmenuIcon","style","openSubmenusOnClick"],"supports":{"reusable":false,"html":false,"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true},"color":{"text":true,"background":true,"link":true,"gradients":true,"__experimentalDefaultControls":{"background":true,"text":true,"link":true}},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true},"spacing":{"padding":true,"margin":true,"__experimentalDefaultControls":{"padding":false,"margin":false}},"contentRole":true},"editorStyle":"wp-block-page-list-editor","style":"wp-block-page-list"}');function _b(e,t){for(const o of e){if(o.attributes.id===t)return o;if(o.innerBlocks&&o.innerBlocks.length){const e=_b(o.innerBlocks,t);if(e)return e}}return null}function xb(e=[],t=null){let o=function(e=[]){const t="post-type",o={},n=[];return e.forEach((({id:e,title:r,link:a,type:i,parent:s})=>{const l=o[e]?.innerBlocks??[];o[e]=(0,st.createBlock)("core/navigation-link",{id:e,label:r.rendered,url:a,type:i,kind:t,metadata:{bindings:d_(t)}},l),s?(o[s]||(o[s]={innerBlocks:[]}),o[s].innerBlocks.push(o[e])):n.push(o[e])})),n}(e);if(t){const e=_b(o,t);e&&e.innerBlocks&&(o=e.innerBlocks)}const n=e=>{e.forEach(((e,t,o)=>{const{attributes:r,innerBlocks:a}=e;if(0!==a.length){n(a);const e=(0,st.createBlock)("core/navigation-submenu",r,a);o[t]=e}}))};return n(o),o}function bb({clientId:e,pages:t,parentClientId:o,parentPageID:n}){const{replaceBlock:r,selectBlock:a}=(0,lt.useDispatch)(ct.store);return()=>{const i=xb(t,n);r(e,i),a(o)}}const fb=(0,pt.__)("This Navigation Menu displays your website's pages. Editing it will enable you to add, delete, or reorder pages. However, new pages will no longer be added automatically.");function yb({onClick:e,onClose:t,disabled:o}){return(0,it.jsxs)(mt.Modal,{onRequestClose:t,title:(0,pt.__)("Edit Page List"),className:"wp-block-page-list-modal",aria:{describedby:(0,xt.useInstanceId)(yb,"wp-block-page-list-modal__description")},children:[(0,it.jsx)("p",{id:(0,xt.useInstanceId)(yb,"wp-block-page-list-modal__description"),children:fb}),(0,it.jsxs)("div",{className:"wp-block-page-list-modal-buttons",children:[(0,it.jsx)(mt.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:t,children:(0,pt.__)("Cancel")}),(0,it.jsx)(mt.Button,{__next40pxDefaultSize:!0,variant:"primary",accessibleWhenDisabled:!0,disabled:o,onClick:e,children:(0,pt.__)("Edit")})]})]})}const vb=()=>{};function kb({blockProps:e,innerBlocksProps:t,hasResolvedPages:o,blockList:n,pages:r,parentPageID:a}){if(!o)return(0,it.jsx)("div",{...e,children:(0,it.jsx)("div",{className:"wp-block-page-list__loading-indicator-container",children:(0,it.jsx)(mt.Spinner,{className:"wp-block-page-list__loading-indicator"})})});if(null===r)return(0,it.jsx)("div",{...e,children:(0,it.jsx)(mt.Notice,{status:"warning",isDismissible:!1,children:(0,pt.__)("Page List: Cannot retrieve Pages.")})});if(0===r.length)return(0,it.jsx)("div",{...e,children:(0,it.jsx)(mt.Notice,{status:"info",isDismissible:!1,children:(0,pt.__)("Page List: Cannot retrieve Pages.")})});if(0===n.length){const t=r.find((e=>e.id===a));return t?.title?.rendered?(0,it.jsx)("div",{...e,children:(0,it.jsx)(ct.Warning,{children:(0,pt.sprintf)((0,pt.__)('Page List: "%s" page has no children.'),t.title.rendered)})}):(0,it.jsx)("div",{...e,children:(0,it.jsx)(mt.Notice,{status:"warning",isDismissible:!1,children:(0,pt.__)("Page List: Cannot retrieve Pages.")})})}return r.length>0?(0,it.jsx)("ul",{...t}):void 0}const{name:wb}=hb,Cb={icon:gb,example:{},edit:function({context:e,clientId:t,attributes:o,setAttributes:n}){const{parentPageID:r}=o,[a,i]=(0,gt.useState)(!1),s=(0,gt.useCallback)((()=>i(!0)),[]),l=vt(),{records:c,hasResolved:u}=(0,_t.useEntityRecords)("postType","page",{per_page:100,_fields:["id","link","menu_order","parent","title","type"],orderby:"menu_order",order:"asc"}),d="showSubmenuIcon"in e&&c?.length>0&&c?.length<=100,p=(0,gt.useMemo)((()=>{if(null===c)return new Map;const e=c.sort(((e,t)=>e.menu_order===t.menu_order?e.title.rendered.localeCompare(t.title.rendered):e.menu_order-t.menu_order));return e.reduce(((e,t)=>{const{parent:o}=t;return e.has(o)?e.get(o).push(t):e.set(o,[t]),e}),new Map)}),[c]),m=(0,ct.useBlockProps)({className:Dt("wp-block-page-list",{"has-text-color":!!e.textColor,[(0,ct.getColorClassName)("color",e.textColor)]:!!e.textColor,"has-background":!!e.backgroundColor,[(0,ct.getColorClassName)("background-color",e.backgroundColor)]:!!e.backgroundColor}),style:{...e.style?.color}}),g=(0,gt.useMemo)((function e(t=0,o=0){const n=p.get(t);return n?.length?n.reduce(((t,n)=>{const r=p.has(n.id),a={value:n.id,label:"— ".repeat(o)+n.title.rendered,rawName:n.title.rendered};return t.push(a),r&&t.push(...e(n.id,o+1)),t}),[]):[]}),[p]),h=(0,gt.useMemo)((function e(t=r){const o=p.get(t);return o?.length?o.reduce(((t,o)=>{const n=p.has(o.id),r={id:o.id,label:""!==o.title?.rendered?.trim()?o.title?.rendered:(0,pt.__)("(no title)"),title:""!==o.title?.rendered?.trim()?o.title?.rendered:(0,pt.__)("(no title)"),link:o.url,hasChildren:n};let a=null;const i=e(o.id);return a=(0,st.createBlock)("core/page-list-item",r,i),t.push(a),t}),[]):[]}),[p,r]),{isNested:_,hasSelectedChild:x,parentClientId:b,hasDraggedChild:f,isChildOfNavigation:y}=(0,lt.useSelect)((e=>{const{getBlockParentsByBlockName:o,hasSelectedInnerBlock:n,hasDraggedInnerBlock:r}=e(ct.store),a=o(t,"core/navigation-submenu",!0),i=o(t,"core/navigation",!0);return{isNested:a.length>0,isChildOfNavigation:i.length>0,hasSelectedChild:n(t,!0),hasDraggedChild:r(t,!0),parentClientId:i[0]}}),[t]),v=bb({clientId:t,pages:c,parentClientId:b,parentPageID:r}),k=(0,ct.useInnerBlocksProps)(m,{renderAppender:!1,__unstableDisableDropZone:!0,templateLock:!y&&"all",onInput:vb,onChange:vb,value:h}),{selectBlock:w}=(0,lt.useDispatch)(ct.store);return(0,gt.useEffect)((()=>{(x||f)&&(s(),w(b))}),[x,f,b,w,s]),(0,gt.useEffect)((()=>{n({isNested:_})}),[_,n]),(0,it.jsxs)(it.Fragment,{children:[(g.length>0||d)&&(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{n({parentPageID:0})},dropdownMenuProps:l,children:[g.length>0&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Parent Page"),hasValue:()=>0!==r,onDeselect:()=>n({parentPageID:0}),isShownByDefault:!0,children:(0,it.jsx)(mt.ComboboxControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,className:"editor-page-attributes__parent",label:(0,pt.__)("Parent"),value:r,options:g,onChange:e=>n({parentPageID:e??0}),help:(0,pt.__)("Choose a page to show only its subpages.")})}),d&&(0,it.jsxs)("div",{style:{gridColumn:"1 / -1"},children:[(0,it.jsx)("p",{children:fb}),(0,it.jsx)(mt.Button,{__next40pxDefaultSize:!0,variant:"primary",accessibleWhenDisabled:!0,disabled:!u,onClick:v,children:(0,pt.__)("Edit")})]})]})}),d&&(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.BlockControls,{group:"other",children:(0,it.jsx)(mt.ToolbarButton,{title:(0,pt.__)("Edit"),onClick:s,children:(0,pt.__)("Edit")})}),a&&(0,it.jsx)(yb,{onClick:v,onClose:()=>i(!1),disabled:!u})]}),(0,it.jsx)(kb,{blockProps:m,innerBlocksProps:k,hasResolvedPages:u,blockList:h,pages:c,parentPageID:r})]})}},jb=()=>jt({name:wb,metadata:hb,settings:Cb}),Sb=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/page-list-item","title":"Page List Item","category":"widgets","parent":["core/page-list"],"description":"Displays a page inside a list of all pages.","keywords":["page","menu","navigation"],"textdomain":"default","attributes":{"id":{"type":"number"},"label":{"type":"string"},"title":{"type":"string"},"link":{"type":"string"},"hasChildren":{"type":"boolean"}},"usesContext":["textColor","customTextColor","backgroundColor","customBackgroundColor","overlayTextColor","customOverlayTextColor","overlayBackgroundColor","customOverlayBackgroundColor","fontSize","customFontSize","showSubmenuIcon","style","openSubmenusOnClick"],"supports":{"reusable":false,"html":false,"lock":false,"inserter":false,"__experimentalToolbar":false,"interactivity":{"clientNavigation":true}},"editorStyle":"wp-block-page-list-editor","style":"wp-block-page-list"}'),Bb=()=>(0,it.jsx)(mt.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:(0,it.jsx)(mt.Path,{d:"M1.50002 4L6.00002 8L10.5 4",strokeWidth:"1.5"})});const{name:Tb}=Sb,Nb={__experimentalLabel:({label:e})=>e,icon:Eh,example:{},edit:function({context:e,attributes:t}){const{id:o,label:n,link:r,hasChildren:a,title:i}=t,s="showSubmenuIcon"in e,l=(0,lt.useSelect)((e=>{if(!e(_t.store).canUser("read",{kind:"root",name:"site"}))return;const t=e(_t.store).getEntityRecord("root","site");return"page"===t?.show_on_front&&t?.page_on_front}),[]),c=H_(L_(e,!0)),u=(0,ct.useBlockProps)(c,{className:"wp-block-pages-list__item"}),d=(0,ct.useInnerBlocksProps)(u);return(0,it.jsxs)("li",{className:Dt("wp-block-pages-list__item",{"has-child":a,"wp-block-navigation-item":s,"open-on-click":e.openSubmenusOnClick,"open-on-hover-click":!e.openSubmenusOnClick&&e.showSubmenuIcon,"menu-item-home":o===l}),children:[a&&e.openSubmenusOnClick?(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)("button",{type:"button",className:"wp-block-navigation-item__content wp-block-navigation-submenu__toggle","aria-expanded":"false",children:(0,ao.decodeEntities)(n)}),(0,it.jsx)("span",{className:"wp-block-page-list__submenu-icon wp-block-navigation__submenu-icon",children:(0,it.jsx)(Bb,{})})]}):(0,it.jsx)("a",{className:Dt("wp-block-pages-list__item__link",{"wp-block-navigation-item__content":s}),href:r,children:(0,ao.decodeEntities)(i)}),a&&(0,it.jsxs)(it.Fragment,{children:[!e.openSubmenusOnClick&&e.showSubmenuIcon&&(0,it.jsx)("button",{className:"wp-block-navigation-item__content wp-block-navigation-submenu__toggle wp-block-page-list__submenu-icon wp-block-navigation__submenu-icon","aria-expanded":"false",type:"button",children:(0,it.jsx)(Bb,{})}),(0,it.jsx)("ul",{...d})]})]},o)}},Pb=()=>jt({name:Tb,metadata:Sb,settings:Nb});var Ib=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"m9.99609 14v-.2251l.00391.0001v6.225h1.5v-14.5h2.5v14.5h1.5v-14.5h3v-1.5h-8.50391c-2.76142 0-5 2.23858-5 5 0 2.7614 2.23858 5 5 5z"})});const Db={className:!1},Mb={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"}},zb=e=>{if(!e.customTextColor&&!e.customBackgroundColor&&!e.customFontSize)return e;const t={};(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});const{customTextColor:o,customBackgroundColor:n,customFontSize:r,...a}=e;return{...a,style:t}},{style:Ab,...Lb}=Mb,Hb=[{supports:Db,attributes:{...Lb,customTextColor:{type:"string"},customBackgroundColor:{type:"string"},customFontSize:{type:"number"}},save({attributes:e}){const{align:t,content:o,dropCap:n,direction:r}=e,a=Dt({"has-drop-cap":t!==((0,pt.isRTL)()?"left":"right")&&"center"!==t&&n,[`has-text-align-${t}`]:t});return(0,it.jsx)("p",{...ct.useBlockProps.save({className:a,dir:r}),children:(0,it.jsx)(ct.RichText.Content,{value:o})})}},{supports:Db,attributes:{...Lb,customTextColor:{type:"string"},customBackgroundColor:{type:"string"},customFontSize:{type:"number"}},migrate:zb,save({attributes:e}){const{align:t,content:o,dropCap:n,backgroundColor:r,textColor:a,customBackgroundColor:i,customTextColor:s,fontSize:l,customFontSize:c,direction:u}=e,d=(0,ct.getColorClassName)("color",a),p=(0,ct.getColorClassName)("background-color",r),m=(0,ct.getFontSizeClass)(l),g=Dt({"has-text-color":a||s,"has-background":r||i,"has-drop-cap":n,[`has-text-align-${t}`]:t,[m]:m,[d]:d,[p]:p}),h={backgroundColor:p?void 0:i,color:d?void 0:s,fontSize:m?void 0:c};return(0,it.jsx)(ct.RichText.Content,{tagName:"p",style:h,className:g||void 0,value:o,dir:u})}},{supports:Db,attributes:{...Lb,customTextColor:{type:"string"},customBackgroundColor:{type:"string"},customFontSize:{type:"number"}},migrate:zb,save({attributes:e}){const{align:t,content:o,dropCap:n,backgroundColor:r,textColor:a,customBackgroundColor:i,customTextColor:s,fontSize:l,customFontSize:c,direction:u}=e,d=(0,ct.getColorClassName)("color",a),p=(0,ct.getColorClassName)("background-color",r),m=(0,ct.getFontSizeClass)(l),g=Dt({"has-text-color":a||s,"has-background":r||i,"has-drop-cap":n,[m]:m,[d]:d,[p]:p}),h={backgroundColor:p?void 0:i,color:d?void 0:s,fontSize:m?void 0:c,textAlign:t};return(0,it.jsx)(ct.RichText.Content,{tagName:"p",style:h,className:g||void 0,value:o,dir:u})}},{supports:Db,attributes:{...Lb,customTextColor:{type:"string"},customBackgroundColor:{type:"string"},customFontSize:{type:"number"},width:{type:"string"}},migrate:zb,save({attributes:e}){const{width:t,align:o,content:n,dropCap:r,backgroundColor:a,textColor:i,customBackgroundColor:s,customTextColor:l,fontSize:c,customFontSize:u}=e,d=(0,ct.getColorClassName)("color",i),p=(0,ct.getColorClassName)("background-color",a),m=c&&`is-${c}-text`,g=Dt({[`align${t}`]:t,"has-background":a||s,"has-drop-cap":r,[m]:m,[d]:d,[p]:p}),h={backgroundColor:p?void 0:s,color:d?void 0:l,fontSize:m?void 0:u,textAlign:o};return(0,it.jsx)(ct.RichText.Content,{tagName:"p",style:h,className:g||void 0,value:n})}},{supports:Db,attributes:{...Lb,fontSize:{type:"number"}},save({attributes:e}){const{width:t,align:o,content:n,dropCap:r,backgroundColor:a,textColor:i,fontSize:s}=e,l=Dt({[`align${t}`]:t,"has-background":a,"has-drop-cap":r}),c={backgroundColor:a,color:i,fontSize:s,textAlign:o};return(0,it.jsx)("p",{style:c,className:l||void 0,children:n})},migrate:e=>zb({...e,customFontSize:Number.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:Db,attributes:{...Mb,content:{type:"string",source:"html",default:""}},save:({attributes:e})=>(0,it.jsx)(gt.RawHTML,{children:e.content}),migrate:e=>e}];var Rb=Hb,Vb=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M3 9c0 2.8 2.2 5 5 5v-.2V20h1.5V5.5H12V20h1.5V5.5h3V4H8C5.2 4 3 6.2 3 9Zm15.9-1-1.1 1 2.6 3-2.6 3 1.1 1 3.4-4-3.4-4Z"})});function Fb(e){const{batch:t}=(0,lt.useRegistry)(),{moveBlocksToPosition:o,replaceInnerBlocks:n,duplicateBlocks:r,insertBlock:a}=(0,lt.useDispatch)(ct.store),{getBlockRootClientId:i,getBlockIndex:s,getBlockOrder:l,getBlockName:c,getBlock:u,getNextBlockClientId:d,canInsertBlockType:p}=(0,lt.useSelect)(ct.store),m=(0,gt.useRef)(e);return m.current=e,(0,xt.useRefEffect)((e=>{function g(e){if(e.defaultPrevented)return;if(e.keyCode!==mn.ENTER)return;const{content:g,clientId:h}=m.current;if(g.length)return;const _=i(h);if(!(0,st.hasBlockSupport)(c(_),"__experimentalOnEnter",!1))return;const x=l(_),b=x.indexOf(h);if(b===x.length-1){let t=_;for(;!p(c(h),i(t));)t=i(t);return void("string"==typeof t&&(e.preventDefault(),o([h],_,i(t),s(t)+1)))}const f=(0,st.getDefaultBlockName)();if(!p(f,i(_)))return;e.preventDefault();const y=u(_);t((()=>{r([_]);const e=s(_);n(_,y.innerBlocks.slice(0,b)),n(d(_),y.innerBlocks.slice(b+1)),a((0,st.createBlock)(f),e+1,i(_),!0)}))}return e.addEventListener("keydown",g),()=>{e.removeEventListener("keydown",g)}}),[])}function Eb({direction:e,setDirection:t}){return(0,pt.isRTL)()&&(0,it.jsx)(mt.ToolbarButton,{icon:Vb,title:(0,pt._x)("Left to right","editor button"),isActive:"ltr"===e,onClick:()=>{t("ltr"===e?void 0:"ltr")}})}function Ob(e){return e===((0,pt.isRTL)()?"left":"right")||"center"===e}function Gb({clientId:e,attributes:t,setAttributes:o,name:n}){const[r]=(0,ct.useSettings)("typography.dropCap");if(!r)return null;const{align:a,dropCap:i}=t;let s;s=Ob(a)?(0,pt.__)("Not available for aligned text."):i?(0,pt.__)("Showing large initial letter."):(0,pt.__)("Show a large initial letter.");const l=(0,st.getBlockSupport)(n,"typography.defaultControls.dropCap",!1);return(0,it.jsx)(ct.InspectorControls,{group:"typography",children:(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!!i,label:(0,pt.__)("Drop cap"),isShownByDefault:l,onDeselect:()=>o({dropCap:!1}),resetAllFilter:()=>({dropCap:!1}),panelId:e,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Drop cap"),checked:!!i,onChange:()=>o({dropCap:!i}),help:s,disabled:Ob(a)})})})}var $b=function({attributes:e,mergeBlocks:t,onReplace:o,onRemove:n,setAttributes:r,clientId:a,isSelected:i,name:s}){const{align:l,content:c,direction:u,dropCap:d,placeholder:p}=e,m=(0,ct.useBlockProps)({ref:Fb({clientId:a,content:c}),className:Dt({"has-drop-cap":!Ob(l)&&d,[`has-text-align-${l}`]:l}),style:{direction:u}}),g=(0,ct.useBlockEditingMode)();return(0,it.jsxs)(it.Fragment,{children:["default"===g&&(0,it.jsxs)(ct.BlockControls,{group:"block",children:[(0,it.jsx)(ct.AlignmentControl,{value:l,onChange:e=>r({align:e,dropCap:!Ob(e)&&d})}),(0,it.jsx)(Eb,{direction:u,setDirection:e=>r({direction:e})})]}),i&&(0,it.jsx)(Gb,{name:s,clientId:a,attributes:e,setAttributes:r}),(0,it.jsx)(ct.RichText,{identifier:"content",tagName:"p",...m,value:c,onChange:e=>r({content:e}),onMerge:t,onReplace:o,onRemove:n,"aria-label":ct.RichText.isEmpty(c)?(0,pt.__)("Empty block; start writing or type forward slash to choose a block"):(0,pt.__)("Block: Paragraph"),"data-empty":ct.RichText.isEmpty(c),placeholder:p||(0,pt.__)("Type / to choose a block"),"data-custom-placeholder":!!p||void 0,__unstableEmbedURLOnPaste:!0,__unstableAllowPrefixTransformations:!0})]})};const Ub=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/paragraph","title":"Paragraph","category":"text","description":"Start with the basic building block of all narrative.","keywords":["text"],"textdomain":"default","attributes":{"align":{"type":"string"},"content":{"type":"rich-text","source":"rich-text","selector":"p","role":"content"},"dropCap":{"type":"boolean","default":false},"placeholder":{"type":"string"},"direction":{"type":"string","enum":["ltr","rtl"]}},"supports":{"splitting":true,"anchor":true,"className":false,"__experimentalBorder":{"color":true,"radius":true,"style":true,"width":true},"color":{"gradients":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true}},"spacing":{"margin":true,"padding":true,"__experimentalDefaultControls":{"margin":false,"padding":false}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalTextDecoration":true,"__experimentalFontStyle":true,"__experimentalFontWeight":true,"__experimentalLetterSpacing":true,"__experimentalTextTransform":true,"__experimentalWritingMode":true,"fitText":true,"__experimentalDefaultControls":{"fontSize":true}},"__experimentalSelector":"p","__unstablePasteTextInline":true,"interactivity":{"clientNavigation":true}},"editorStyle":"wp-block-paragraph-editor","style":"wp-block-paragraph"}');const qb={from:[{type:"raw",priority:20,selector:"p",schema:({phrasingContentSchema:e,isPaste:t})=>({p:{children:e,attributes:t?[]:["style","id"]}}),transform(e){const t=(0,st.getBlockAttributes)(Ub.name,e.outerHTML),{textAlign:o}=e.style||{};return"left"!==o&&"center"!==o&&"right"!==o||(t.align=o),(0,st.createBlock)(Ub.name,t)}}]};var Wb=qb;const Zb=[{name:"paragraph",title:(0,pt.__)("Paragraph"),description:(0,pt.__)("Start with the basic building block of all narrative."),isDefault:!0,scope:["block","inserter","transform"],attributes:{fitText:void 0},icon:Ib},{name:"stretchy-paragraph",title:(0,pt.__)("Stretchy Paragraph"),description:(0,pt.__)("Paragraph that resizes to fit its container."),icon:(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M3 9c0 2.8 2.2 5 5 5v-.2V20h1.5V5.5H12V20h1.5V5.5h3V4H8C5.2 4 3 6.2 3 9Zm16.2-.2v1.5h2.2L17.7 14l1.1 1.1 3.7-3.7v2.2H24V8.8h-4.8Z"})}),attributes:{fitText:!0},scope:["inserter","transform"],isActive:e=>!0===e.fitText}];var Jb=Zb;const{name:Qb}=Ub,Kb={icon:Ib,example:{attributes:{content:(0,pt.__)("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.")}},__experimentalLabel(e,{context:t}){const o=e?.metadata?.name;if("list-view"===t&&o)return o;if("accessibility"===t){if(o)return o;const{content:t}=e;return t&&0!==t.length?t:(0,pt.__)("Empty")}},transforms:Wb,deprecated:Rb,merge:(e,t)=>({content:(e.content||"")+(t.content||"")}),edit:$b,save:function({attributes:e}){const{align:t,content:o,dropCap:n,direction:r}=e,a=Dt({"has-drop-cap":t!==((0,pt.isRTL)()?"left":"right")&&"center"!==t&&n,[`has-text-align-${t}`]:t});return(0,it.jsx)("p",{...ct.useBlockProps.save({className:a,dir:r}),children:(0,it.jsx)(ct.RichText.Content,{value:o})})},variations:Jb},Yb=()=>jt({name:Qb,metadata:Ub,settings:Kb});var Xb=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.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 ef=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/post-author","title":"Author","category":"theme","description":"Display post author details such as name, avatar, and bio.","textdomain":"default","attributes":{"textAlign":{"type":"string"},"avatarSize":{"type":"number","default":48},"showAvatar":{"type":"boolean","default":true},"showBio":{"type":"boolean"},"byline":{"type":"string"},"isLink":{"type":"boolean","default":false,"role":"content"},"linkTarget":{"type":"string","default":"_self","role":"content"}},"usesContext":["postType","postId","queryId"],"supports":{"html":false,"spacing":{"margin":true,"padding":true},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"color":{"gradients":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true}},"interactivity":{"clientNavigation":true},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true,"__experimentalDefaultControls":{"radius":true,"color":true,"width":true,"style":true}},"filter":{"duotone":true}},"selectors":{"filter":{"duotone":".wp-block-post-author .wp-block-post-author__avatar img"}},"editorStyle":"wp-block-post-author-editor","style":"wp-block-post-author"}'),tf={who:"authors",per_page:100,_fields:"id,name",context:"view"};function of({value:e,onChange:t}){const[o,n]=(0,gt.useState)(""),{authors:r,isLoading:a}=(0,lt.useSelect)((e=>{const{getUsers:t,isResolving:n}=e(_t.store),r={...tf};return o&&(r.search=o,r.search_columns=["name"]),{authors:t(r),isLoading:n("getUsers",[r])}}),[o]),i=(0,gt.useMemo)((()=>{const t=(r??[]).map((e=>({value:e.id,label:(0,ao.decodeEntities)(e.name)}))),o=t.findIndex((t=>e?.id===t.value));let n=[];return o<0&&e?n=[{value:e.id,label:(0,ao.decodeEntities)(e.name)}]:o<0&&!e&&(n=[{value:0,label:(0,pt.__)("(No author)")}]),[...n,...t]}),[r,e]);return(0,it.jsx)(mt.ComboboxControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("Author"),options:i,value:e?.id,onFilterValueChange:(0,xt.debounce)(n,300),onChange:t,allowReset:!1,isLoading:a})}var nf=function({isSelected:e,context:{postType:t,postId:o,queryId:n},attributes:r,setAttributes:a}){const i=Number.isFinite(n),s=vt(),l=yt(),{authorDetails:c,canAssignAuthor:u,supportsAuthor:d}=(0,lt.useSelect)((e=>{const{getEditedEntityRecord:n,getUser:r,getPostType:a}=e(_t.store),i=n("postType",t,o),s=i?.author;return{authorDetails:s?r(s,{context:"view"}):null,supportsAuthor:a(t)?.supports?.author??!1,canAssignAuthor:!!i?._links?.["wp:action-assign-author"]}}),[t,o]),{editEntityRecord:p}=(0,lt.useDispatch)(_t.store),{textAlign:m,showAvatar:g,showBio:h,byline:_,isLink:x,linkTarget:b,avatarSize:f}=r,y=[],v=c?.name||(0,pt.__)("Post Author");c?.avatar_urls&&Object.keys(c.avatar_urls).forEach((e=>{y.push({value:e,label:`${e} x ${e}`})}));const k=(0,ct.useBlockProps)({className:Dt({[`has-text-align-${m}`]:m})}),w=!!o&&!i&&u;return d||void 0===t?(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{a({avatarSize:48,showAvatar:!0,isLink:!1,linkTarget:"_self"})},dropdownMenuProps:s,children:[w&&(0,it.jsx)("div",{style:{gridColumn:"1 / -1"},children:(0,it.jsx)(of,{value:c,onChange:e=>{p("postType",t,o,{author:e})}})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Show avatar"),isShownByDefault:!0,hasValue:()=>!g,onDeselect:()=>a({showAvatar:!0}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Show avatar"),checked:g,onChange:()=>a({showAvatar:!g})})}),g&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Avatar size"),isShownByDefault:!0,hasValue:()=>48!==f,onDeselect:()=>a({avatarSize:48}),children:(0,it.jsx)(mt.SelectControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("Avatar size"),value:f,options:y,onChange:e=>{a({avatarSize:Number(e)})}})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Show bio"),isShownByDefault:!0,hasValue:()=>!!h,onDeselect:()=>a({showBio:void 0}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Show bio"),checked:!!h,onChange:()=>a({showBio:!h})})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Link author name to author page"),isShownByDefault:!0,hasValue:()=>!!x,onDeselect:()=>a({isLink:!1}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Link author name to author page"),checked:x,onChange:()=>a({isLink:!x})})}),x&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Link target"),isShownByDefault:!0,hasValue:()=>"_self"!==b,onDeselect:()=>a({linkTarget:"_self"}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Open in new tab"),onChange:e=>a({linkTarget:e?"_blank":"_self"}),checked:"_blank"===b})})]})}),(0,it.jsx)(ct.BlockControls,{group:"block",children:(0,it.jsx)(ct.AlignmentControl,{value:m,onChange:e=>{a({textAlign:e})}})}),(0,it.jsxs)("div",{...k,children:[g&&(0,it.jsx)("div",{className:"wp-block-post-author__avatar",children:(0,it.jsx)("img",{width:f,src:c?.avatar_urls?.[f]||l,alt:c?.name||(0,pt.__)("Default Avatar")})}),(0,it.jsxs)("div",{className:"wp-block-post-author__content",children:[(!ct.RichText.isEmpty(_)||e)&&(0,it.jsx)(ct.RichText,{identifier:"byline",className:"wp-block-post-author__byline","aria-label":(0,pt.__)("Post author byline text"),placeholder:(0,pt.__)("Write byline…"),value:_,onChange:e=>a({byline:e})}),(0,it.jsx)("p",{className:"wp-block-post-author__name",children:x?(0,it.jsx)("a",{href:"#post-author-pseudo-link",onClick:e=>e.preventDefault(),children:v}):v}),h&&(0,it.jsx)("p",{className:"wp-block-post-author__bio",dangerouslySetInnerHTML:{__html:c?.description}})]})]})]}):(0,it.jsx)("div",{...k,children:(0,pt.sprintf)((0,pt.__)("This post type (%s) does not support the author."),t)})};const{name:rf}=ef,af={icon:Xb,example:{viewportWidth:350,attributes:{showBio:!0,byline:(0,pt.__)("Posted by")}},edit:nf},sf=()=>jt({name:rf,metadata:ef,settings:af}),lf=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/post-author-name","title":"Author Name","category":"theme","description":"The author name.","textdomain":"default","attributes":{"textAlign":{"type":"string"},"isLink":{"type":"boolean","default":false,"role":"content"},"linkTarget":{"type":"string","default":"_self","role":"content"}},"usesContext":["postType","postId"],"example":{"viewportWidth":350},"supports":{"html":false,"spacing":{"margin":true,"padding":true},"color":{"gradients":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true,"link":true}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true,"__experimentalDefaultControls":{"radius":true,"color":true,"width":true,"style":true}}},"style":"wp-block-post-author-name"}');var cf=function({context:{postType:e,postId:t},attributes:{textAlign:o,isLink:n,linkTarget:r},setAttributes:a}){const{authorName:i,supportsAuthor:s}=(0,lt.useSelect)((o=>{const{getEditedEntityRecord:n,getUser:r,getPostType:a}=o(_t.store),i=n("postType",e,t)?.author;return{authorName:i?r(i):null,supportsAuthor:a(e)?.supports?.author??!1}}),[e,t]),l=(0,ct.useBlockProps)({className:Dt({[`has-text-align-${o}`]:o})}),c=i?.name||(0,pt.__)("Author Name"),u=n?(0,it.jsx)("a",{href:"#author-pseudo-link",onClick:e=>e.preventDefault(),className:"wp-block-post-author-name__link",children:c}):c,d=vt();return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.BlockControls,{group:"block",children:(0,it.jsx)(ct.AlignmentControl,{value:o,onChange:e=>{a({textAlign:e})}})}),(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{a({isLink:!1,linkTarget:"_self"})},dropdownMenuProps:d,children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Link to author archive"),isShownByDefault:!0,hasValue:()=>n,onDeselect:()=>a({isLink:!1}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Link to author archive"),onChange:()=>a({isLink:!n}),checked:n})}),n&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>"_self"!==r,onDeselect:()=>a({linkTarget:"_self"}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Open in new tab"),onChange:e=>a({linkTarget:e?"_blank":"_self"}),checked:"_blank"===r})})]})}),(0,it.jsx)("div",{...l,children:s||void 0===e?u:(0,pt.sprintf)((0,pt.__)("This post type (%s) does not support the author."),e)})]})};var uf={from:[{type:"block",blocks:["core/post-author"],transform:({textAlign:e})=>(0,st.createBlock)("core/post-author-name",{textAlign:e})}],to:[{type:"block",blocks:["core/post-author"],transform:({textAlign:e})=>(0,st.createBlock)("core/post-author",{textAlign:e})}]};const{name:df}=lf,pf={icon:Xb,transforms:uf,edit:cf},mf=()=>jt({name:df,metadata:lf,settings:pf}),gf=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/post-author-biography","title":"Author Biography","category":"theme","description":"The author biography.","textdomain":"default","attributes":{"textAlign":{"type":"string"}},"usesContext":["postType","postId"],"example":{"viewportWidth":350},"supports":{"spacing":{"margin":true,"padding":true},"color":{"gradients":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true,"__experimentalDefaultControls":{"radius":true,"color":true,"width":true,"style":true}}},"style":"wp-block-post-author-biography"}');var hf=function({context:{postType:e,postId:t},attributes:{textAlign:o},setAttributes:n}){const{authorDetails:r}=(0,lt.useSelect)((o=>{const{getEditedEntityRecord:n,getUser:r}=o(_t.store),a=n("postType",e,t)?.author;return{authorDetails:a?r(a):null}}),[e,t]),a=(0,ct.useBlockProps)({className:Dt({[`has-text-align-${o}`]:o})}),i=r?.description||(0,pt.__)("Author Biography");return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.BlockControls,{group:"block",children:(0,it.jsx)(ct.AlignmentControl,{value:o,onChange:e=>{n({textAlign:e})}})}),(0,it.jsx)("div",{...a,dangerouslySetInnerHTML:{__html:i}})]})};const{name:_f}=gf,xf={icon:Xb,edit:hf},bf=()=>jt({name:_f,metadata:gf,settings:xf}),ff=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"__experimental":"fse","name":"core/post-comment","title":"Comment (deprecated)","category":"theme","allowedBlocks":["core/avatar","core/comment-author-name","core/comment-content","core/comment-date","core/comment-edit-link","core/comment-reply-link"],"description":"This block is deprecated. Please use the Comments block instead.","textdomain":"default","attributes":{"commentId":{"type":"number"}},"providesContext":{"commentId":"commentId"},"supports":{"html":false,"inserter":false,"interactivity":{"clientNavigation":true}}}');var yf=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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"})});const vf=[["core/avatar"],["core/comment-author-name"],["core/comment-date"],["core/comment-content"],["core/comment-reply-link"],["core/comment-edit-link"]];const{name:kf}=ff,wf={icon:gm,edit:function({attributes:{commentId:e},setAttributes:t}){const[o,n]=(0,gt.useState)(e),r=(0,ct.useBlockProps)(),a=(0,ct.useInnerBlocksProps)(r,{template:vf});return e?(0,it.jsx)("div",{...a}):(0,it.jsx)("div",{...r,children:(0,it.jsxs)(mt.Placeholder,{icon:yf,label:(0,pt._x)("Post Comment","block title"),instructions:(0,pt.__)("To show a comment, input the comment ID."),children:[(0,it.jsx)(mt.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,value:e,onChange:e=>n(parseInt(e))}),(0,it.jsx)(mt.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:()=>{t({commentId:o})},children:(0,pt.__)("Save")})]})})},save:function(){const e=ct.useBlockProps.save(),t=ct.useInnerBlocksProps.save(e);return(0,it.jsx)("div",{...t})}},Cf=()=>jt({name:kf,metadata:ff,settings:wf});var jf=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M13 8H4v1.5h9V8zM4 4v1.5h16V4H4zm9 8H5c-.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-1V13c0-.6-.4-1-1-1zm-2.2 6.6H7l1.6-2.2c.3-.4.5-.7.6-.9.1-.2.2-.4.2-.5 0-.2-.1-.3-.1-.4-.1-.1-.2-.1-.4-.1s-.4 0-.6.1c-.3.1-.5.3-.7.4l-.2.2-.2-1.2.1-.1c.3-.2.5-.3.8-.4.3-.1.6-.1.9-.1.3 0 .6.1.9.2.2.1.4.3.6.5.1.2.2.5.2.7 0 .3-.1.6-.2.9-.1.3-.4.7-.7 1.1l-.5.6h1.6v1.2z"})});const Sf=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/post-comments-count","title":"Comments Count","category":"theme","description":"Display a post\'s comments count.","textdomain":"default","attributes":{"textAlign":{"type":"string"}},"usesContext":["postId"],"example":{"viewportWidth":350},"supports":{"html":false,"color":{"gradients":true,"__experimentalDefaultControls":{"background":true,"text":true}},"spacing":{"margin":true,"padding":true},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true},"interactivity":{"clientNavigation":true}},"style":"wp-block-post-comments-count"}');var Bf={to:[{type:"block",blocks:["core/post-comments-link"],transform:({textAlign:e})=>(0,st.createBlock)("core/post-comments-link",{textAlign:e})}]};const{name:Tf}=Sf,Nf={icon:jf,edit:function({attributes:e,context:t,setAttributes:o}){const{textAlign:n}=e,{postId:r}=t,[a,i]=(0,gt.useState)(),s=(0,ct.useBlockProps)({className:Dt({[`has-text-align-${n}`]:n})});(0,gt.useEffect)((()=>{if(!r)return;const e=r;Ua()({path:(0,no.addQueryArgs)("/wp/v2/comments",{post:r}),parse:!1}).then((t=>{e===r&&i(t.headers.get("X-WP-Total"))}))}),[r]);const l=r&&void 0!==a,c={...s.style,textDecoration:l?s.style?.textDecoration:void 0};return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.BlockControls,{group:"block",children:(0,it.jsx)(ct.AlignmentControl,{value:n,onChange:e=>{o({textAlign:e})}})}),(0,it.jsx)("div",{...s,style:c,children:l?a:(0,it.jsx)(ct.Warning,{children:(0,pt.__)("Post Comments Count block: post not found.")})})]})},transforms:Bf},Pf=()=>jt({name:Tf,metadata:Sf,settings:Nf});var If=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M13 8H4v1.5h9V8zM4 4v1.5h16V4H4zm9 8H5c-.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-1V13c0-.6-.4-1-1-1zm-.5 6.6H6.7l-1.2 1.2v-6.3h7v5.1z"})});const Df=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/post-comments-form","title":"Comments Form","category":"theme","description":"Display a post\'s comments form.","textdomain":"default","attributes":{"textAlign":{"type":"string"}},"usesContext":["postId","postType"],"supports":{"html":false,"color":{"gradients":true,"heading":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true}},"spacing":{"margin":true,"padding":true},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontStyle":true,"__experimentalFontWeight":true,"__experimentalLetterSpacing":true,"__experimentalTextTransform":true,"__experimentalDefaultControls":{"fontSize":true}},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true,"__experimentalDefaultControls":{"radius":true,"color":true,"width":true,"style":true}}},"editorStyle":"wp-block-post-comments-form-editor","style":["wp-block-post-comments-form","wp-block-buttons","wp-block-button"],"example":{"attributes":{"textAlign":"center"}}}');const{name:Mf}=Df,zf={icon:If,edit:function e({attributes:t,context:o,setAttributes:n}){const{textAlign:r}=t,{postId:a,postType:i}=o,s=(0,xt.useInstanceId)(e),l=(0,pt.sprintf)("comments-form-edit-%d-desc",s),c=(0,ct.useBlockProps)({className:Dt({[`has-text-align-${r}`]:r}),"aria-describedby":l});return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.BlockControls,{group:"block",children:(0,it.jsx)(ct.AlignmentControl,{value:r,onChange:e=>{n({textAlign:e})}})}),(0,it.jsxs)("div",{...c,children:[(0,it.jsx)(ea,{postId:a,postType:i}),(0,it.jsx)(mt.VisuallyHidden,{id:l,children:(0,pt.__)("Comments form disabled in editor.")})]})]})}},Af=()=>jt({name:Mf,metadata:Df,settings:zf}),Lf=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/post-comments-link","title":"Comments Link","category":"theme","description":"Displays the link to the current post comments.","textdomain":"default","usesContext":["postType","postId"],"attributes":{"textAlign":{"type":"string"}},"example":{"viewportWidth":350},"supports":{"html":false,"color":{"link":true,"text":false,"__experimentalDefaultControls":{"background":true,"link":true}},"spacing":{"margin":true,"padding":true},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true,"__experimentalDefaultControls":{"radius":true,"color":true,"width":true,"style":true}}},"style":"wp-block-post-comments-link"}');var Hf=function({context:e,attributes:t,setAttributes:o}){const{textAlign:n}=t,{postType:r,postId:a}=e,[i,s]=(0,gt.useState)(),l=(0,ct.useBlockProps)({className:Dt({[`has-text-align-${n}`]:n})});(0,gt.useEffect)((()=>{if(!a)return;const e=a;Ua()({path:(0,no.addQueryArgs)("/wp/v2/comments",{post:a}),parse:!1}).then((t=>{e===a&&s(t.headers.get("X-WP-Total"))}))}),[a]);const c=(0,lt.useSelect)((e=>e(_t.store).getEditedEntityRecord("postType",r,a)),[r,a]);if(!c)return(0,it.jsx)("div",{...l,children:(0,it.jsx)(ct.Warning,{children:(0,pt.__)("Post Comments Link block: post not found.")})});const{link:u}=c;let d;if(void 0!==i){const e=parseInt(i);d=0===e?(0,pt.__)("No comments"):(0,pt.sprintf)((0,pt._n)("%s comment","%s comments",e),e.toLocaleString())}return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.BlockControls,{group:"block",children:(0,it.jsx)(ct.AlignmentControl,{value:n,onChange:e=>{o({textAlign:e})}})}),(0,it.jsx)("div",{...l,children:u&&void 0!==d?(0,it.jsx)("a",{href:u+"#comments",onClick:e=>e.preventDefault(),children:d}):(0,it.jsx)(ct.Warning,{children:(0,pt.__)("Post Comments Link block: post not found.")})})]})};var Rf={to:[{type:"block",blocks:["core/post-comments-count"],transform:({textAlign:e})=>(0,st.createBlock)("core/post-comments-count",{textAlign:e})}]};const{name:Vf}=Lf,Ff={edit:Hf,icon:jf,transforms:Rf},Ef=()=>jt({name:Vf,metadata:Lf,settings:Ff});var Of=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M4 6h12V4.5H4V6Zm16 4.5H4V9h16v1.5ZM4 15h16v-1.5H4V15Zm0 4.5h16V18H4v1.5Z"})});const Gf=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/post-content","title":"Content","category":"theme","description":"Displays the contents of a post or page.","textdomain":"default","usesContext":["postId","postType","queryId"],"attributes":{"tagName":{"type":"string","default":"div"}},"example":{"viewportWidth":350},"supports":{"align":["wide","full"],"html":false,"layout":true,"background":{"backgroundImage":true,"backgroundSize":true,"__experimentalDefaultControls":{"backgroundImage":true}},"dimensions":{"minHeight":true},"spacing":{"blockGap":true,"padding":true,"margin":true,"__experimentalDefaultControls":{"margin":false,"padding":false}},"color":{"gradients":true,"heading":true,"link":true,"__experimentalDefaultControls":{"background":false,"text":false}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true,"__experimentalDefaultControls":{"radius":true,"color":true,"width":true,"style":true}}},"style":"wp-block-post-content","editorStyle":"wp-block-post-content-editor"}'),{HTMLElementControl:$f}=jo(ct.privateApis);function Uf({parentLayout:e,layoutClassNames:t,userCanEdit:o,postType:n,postId:r,tagName:a="div"}){const[,,i]=(0,_t.useEntityProp)("postType",n,"content",r),s=(0,ct.useBlockProps)({className:t}),l=(0,gt.useMemo)((()=>i?.raw?(0,st.parse)(i.raw):[]),[i?.raw]),c=(0,ct.__experimentalUseBlockPreview)({blocks:l,props:s,layout:e});return o?(0,it.jsx)("div",{...c}):i?.protected?(0,it.jsx)(a,{...s,children:(0,it.jsx)(ct.Warning,{children:(0,pt.__)("This content is password protected.")})}):(0,it.jsx)(a,{...s,dangerouslySetInnerHTML:{__html:i?.rendered}})}function qf({context:e={},tagName:t="div"}){const{postType:o,postId:n}=e,[r,a,i]=(0,_t.useEntityBlockEditor)("postType",o,{id:n}),s=(0,lt.useSelect)((e=>e(_t.store).getEntityRecord("postType",o,n)),[o,n]),l=!!s?.content?.raw||r?.length,c=(0,ct.useInnerBlocksProps)((0,ct.useBlockProps)({className:"entry-content"}),{value:r,onInput:a,onChange:i,template:l?void 0:[["core/paragraph"]]});return(0,it.jsx)(t,{...c})}function Wf(e){const{context:{queryId:t,postType:o,postId:n}={},layoutClassNames:r,tagName:a}=e,i=bt("postType",o,n);if(void 0===i)return null;const s=Number.isFinite(t);return i&&!s?(0,it.jsx)(qf,{...e}):(0,it.jsx)(Uf,{parentLayout:e.parentLayout,layoutClassNames:r,userCanEdit:i,postType:o,postId:n,tagName:a})}function Zf({layoutClassNames:e}){const t=(0,ct.useBlockProps)({className:e});return(0,it.jsxs)("div",{...t,children:[(0,it.jsx)("p",{children:(0,pt.__)("This is the Content block, it will display all the blocks in any single post or page.")}),(0,it.jsx)("p",{children:(0,pt.__)("That might be a simple arrangement like consecutive paragraphs in a blog post, or a more elaborate composition that includes image galleries, videos, tables, columns, and any other block types.")}),(0,it.jsx)("p",{children:(0,pt.__)("If there are any Custom Post Types registered at your site, the Content block can display the contents of those entries as well.")})]})}function Jf(){const e=(0,ct.useBlockProps)();return(0,it.jsx)("div",{...e,children:(0,it.jsx)(ct.Warning,{children:(0,pt.__)("Block cannot be rendered inside itself.")})})}function Qf({tagName:e,onSelectTagName:t,clientId:o}){return(0,it.jsx)(ct.InspectorControls,{group:"advanced",children:(0,it.jsx)($f,{tagName:e,onChange:t,clientId:o,options:[{label:(0,pt.__)("Default (<div>)"),value:"div"},{label:"<main>",value:"main"},{label:"<section>",value:"section"},{label:"<article>",value:"article"}]})})}const{name:Kf}=Gf,Yf={icon:Of,edit:function({context:e,attributes:{tagName:t="div"},setAttributes:o,clientId:n,__unstableLayoutClassNames:r,__unstableParentLayout:a}){const{postId:i,postType:s}=e,l=(0,ct.useHasRecursion)(i);return i&&s&&l?(0,it.jsx)(Jf,{}):(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(Qf,{tagName:t,onSelectTagName:e=>{o({tagName:e})},clientId:n}),(0,it.jsx)(ct.RecursionProvider,{uniqueId:i,children:i&&s?(0,it.jsx)(Wf,{context:e,parentLayout:a,layoutClassNames:r}):(0,it.jsx)(Zf,{layoutClassNames:r})})]})}},Xf=()=>jt({name:Kf,metadata:Gf,settings:Yf}),ey=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/post-date","title":"Date","category":"theme","description":"Display a custom date.","textdomain":"default","attributes":{"datetime":{"type":"string","role":"content"},"textAlign":{"type":"string"},"format":{"type":"string"},"isLink":{"type":"boolean","default":false,"role":"content"}},"usesContext":["postId","postType","queryId"],"example":{"viewportWidth":350},"supports":{"html":false,"color":{"gradients":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true,"link":true}},"spacing":{"margin":true,"padding":true},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true,"__experimentalDefaultControls":{"radius":true,"color":true,"width":true,"style":true}}}}');function ty(e){return/(?:^|[^\\])[aAgh]/.test(e)}const oy={attributes:{datetime:{type:"string",role:"content"},textAlign:{type:"string"},format:{type:"string"},isLink:{type:"boolean",default:!1,role:"content"}},supports:{html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},save:()=>null,migrate:({metadata:{bindings:{datetime:{source:e,args:{key:t,...o}},...n},...r},...a})=>({metadata:{bindings:{datetime:{source:e,args:{field:t,...o}},...n},...r},...a}),isEligible:e=>"core/post-data"===e?.metadata?.bindings?.datetime?.source&&!!e?.metadata?.bindings?.datetime?.args?.key},ny={attributes:{textAlign:{type:"string"},format:{type:"string"},isLink:{type:"boolean",default:!1,role:"content"},displayType:{type:"string",default:"date"}},supports:{html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},save:()=>null,migrate({className:e,displayType:t,metadata:o,...n}){if("date"===t||"modified"===t)return"modified"===t&&(e=Dt(e,"wp-block-post-date__modified-date")),{...n,className:e,metadata:{...o,bindings:{datetime:{source:"core/post-data",args:{field:t}}}}}},isEligible:e=>!e.datetime&&!e?.metadata?.bindings?.datetime},ry={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:Yo,isEligible:({style:e})=>e?.typography?.fontFamily};var ay=[oy,ny,ry];const iy=[{name:"post-date",title:(0,pt.__)("Post Date"),description:(0,pt.__)("Display a post's publish date."),attributes:{metadata:{bindings:{datetime:{source:"core/post-data",args:{field:"date"}}}}},scope:["inserter","transform"],isActive:e=>"core/post-data"===e?.metadata?.bindings?.datetime?.source&&"date"===e?.metadata?.bindings?.datetime?.args?.field},{name:"post-date-modified",title:(0,pt.__)("Modified Date"),description:(0,pt.__)("Display a post's last updated date."),attributes:{metadata:{bindings:{datetime:{source:"core/post-data",args:{field:"modified"}}}},className:"wp-block-post-date__modified-date"},scope:["inserter","transform"],isActive:e=>"core/post-data"===e?.metadata?.bindings?.datetime?.source&&"modified"===e?.metadata?.bindings?.datetime?.args?.field}];var sy=iy;const{name:ly}=ey,cy={icon:wa,edit:function({attributes:e,context:{postType:t,queryId:o},setAttributes:n,name:r}){const{datetime:a,textAlign:i,format:s,isLink:l}=e,c=(0,ct.useBlockProps)({className:Dt({[`has-text-align-${i}`]:i})}),u=vt(),[d,p]=(0,gt.useState)(null),m=(0,gt.useMemo)((()=>({anchor:d})),[d]),{__unstableMarkNextChangeAsNotPersistent:g}=(0,lt.useDispatch)(ct.store);(0,gt.useEffect)((()=>{void 0===a&&(g(),n({datetime:new Date}))}),[a]);const h=Number.isFinite(o),_=(0,ja.getSettings)(),{postType:x,siteFormat:b=_.formats.date,siteTimeFormat:f=_.formats.time}=(0,lt.useSelect)((e=>{const{getPostType:o,getEntityRecord:n}=e(_t.store),r=n("root","site");return{siteFormat:r?.date_format,siteTimeFormat:r?.time_format,postType:t?o(t):null}}),[t]),y=(0,lt.useSelect)((t=>t(st.store).getActiveBlockVariation(r,e)?.name),[r,e]),v=(0,ct.useBlockEditingMode)();let k=(0,it.jsx)("time",{dateTime:(0,ja.dateI18n)("c",a),ref:p,children:"human-diff"===s?(0,ja.humanTimeDiff)(a):(0,ja.dateI18n)(s||b,a)});return l&&a&&(k=(0,it.jsx)("a",{href:"#post-date-pseudo-link",onClick:e=>e.preventDefault(),children:k})),(0,it.jsxs)(it.Fragment,{children:[("default"===v||!h)&&(0,it.jsxs)(ct.BlockControls,{group:"block",children:[(0,it.jsx)(ct.AlignmentControl,{value:i,onChange:e=>{n({textAlign:e})}}),"post-date-modified"!==y&&(!h||!y)&&(0,it.jsx)(mt.ToolbarGroup,{children:(0,it.jsx)(mt.Dropdown,{popoverProps:m,renderContent:({onClose:e})=>(0,it.jsx)(ct.__experimentalPublishDateTimePicker,{title:"post-date"===y?(0,pt.__)("Publish Date"):(0,pt.__)("Date"),currentDate:a,onChange:e=>n({datetime:e}),is12Hour:ty(f),onClose:e,dateOrder:(0,pt._x)("dmy","date order")}),renderToggle:({isOpen:e,onToggle:t})=>(0,it.jsx)(mt.ToolbarButton,{"aria-expanded":e,icon:$l,title:(0,pt.__)("Change Date"),onClick:t,onKeyDown:o=>{e||o.keyCode!==mn.DOWN||(o.preventDefault(),t())}})})})]}),(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{n({datetime:void 0,format:void 0,isLink:!1})},dropdownMenuProps:u,children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!!s,label:(0,pt.__)("Date Format"),onDeselect:()=>n({format:void 0}),isShownByDefault:!0,children:(0,it.jsx)(ct.__experimentalDateFormatPicker,{format:s,defaultFormat:b,onChange:e=>n({format:e})})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!1!==l,label:x?.labels.singular_name?(0,pt.sprintf)((0,pt.__)("Link to %s"),x.labels.singular_name.toLowerCase()):(0,pt.__)("Link to post"),onDeselect:()=>n({isLink:!1}),isShownByDefault:!0,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:x?.labels.singular_name?(0,pt.sprintf)((0,pt.__)("Link to %s"),x.labels.singular_name.toLowerCase()):(0,pt.__)("Link to post"),onChange:()=>n({isLink:!l}),checked:l})})]})}),(0,it.jsx)("div",{...c,children:k})]})},deprecated:ay,variations:sy},uy=()=>jt({name:ly,metadata:ey,settings:cy});var dy=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M8.001 3.984V9.47c0 1.518-.98 2.5-2.499 2.5h-.5v-1.5h.5c.69 0 1-.31 1-1V6.984H4v-3h4.001ZM4 20h9v-1.5H4V20Zm16-4H4v-1.5h16V16ZM13.001 3.984V9.47c0 1.518-.98 2.5-2.499 2.5h-.5v-1.5h.5c.69 0 1-.31 1-1V6.984H9v-3h4.001Z"})});const py=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/post-excerpt","title":"Excerpt","category":"theme","description":"Display the excerpt.","textdomain":"default","attributes":{"textAlign":{"type":"string"},"moreText":{"type":"string","role":"content"},"showMoreOnNewLine":{"type":"boolean","default":true},"excerptLength":{"type":"number","default":55}},"usesContext":["postId","postType","queryId"],"example":{"viewportWidth":350},"supports":{"html":false,"color":{"gradients":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true,"link":true}},"spacing":{"margin":true,"padding":true},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true,"__experimentalDefaultControls":{"radius":true,"color":true,"width":true,"style":true}}},"editorStyle":"wp-block-post-excerpt-editor","style":"wp-block-post-excerpt"}');var my={from:[{type:"block",blocks:["core/post-content"],transform:()=>(0,st.createBlock)("core/post-excerpt")}],to:[{type:"block",blocks:["core/post-content"],transform:()=>(0,st.createBlock)("core/post-content")}]};const{name:gy}=py,hy={icon:dy,transforms:my,edit:function({attributes:{textAlign:e,moreText:t,showMoreOnNewLine:o,excerptLength:n},setAttributes:r,isSelected:a,context:{postId:i,postType:s,queryId:l}}){const c="default"===(0,ct.useBlockEditingMode)(),u=Number.isFinite(l),d=bt("postType",s,i),[p,m,{rendered:g,protected:h}={}]=(0,_t.useEntityProp)("postType",s,"excerpt",i),_=vt(),x=(0,lt.useSelect)((e=>"page"===s||!!e(_t.store).getPostType(s)?.supports?.excerpt),[s]),b=d&&!u&&x,f=(0,ct.useBlockProps)({className:Dt({[`has-text-align-${e}`]:e})}),y=(0,pt._x)("words","Word count type. Do not translate!"),v=(0,gt.useMemo)((()=>{if(!g)return"";const e=(new window.DOMParser).parseFromString(g,"text/html");return e.body.textContent||e.body.innerText||""}),[g]);if(!s||!i)return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.BlockControls,{children:(0,it.jsx)(ct.AlignmentToolbar,{value:e,onChange:e=>r({textAlign:e})})}),(0,it.jsx)("div",{...f,children:(0,it.jsx)("p",{children:(0,pt.__)("This block will display the excerpt.")})})]});if(h&&!d)return(0,it.jsx)("div",{...f,children:(0,it.jsx)(ct.Warning,{children:(0,pt.__)("The content is currently protected and does not have the available excerpt.")})});const k=(0,it.jsx)(ct.RichText,{identifier:"moreText",className:"wp-block-post-excerpt__more-link",tagName:"a","aria-label":(0,pt.__)("“Read more” link text"),placeholder:(0,pt.__)('Add "read more" link text'),value:t,onChange:e=>r({moreText:e}),withoutInteractiveFormatting:!0}),w=Dt("wp-block-post-excerpt__excerpt",{"is-inline":!o}),C=(p||v).trim();let j="";if("words"===y)j=C.split(" ",n).join(" ");else if("characters_excluding_spaces"===y){const e=C.split("",n).join(""),t=e.length-e.replaceAll(" ","").length;j=C.split("",n+t).join("")}else"characters_including_spaces"===y&&(j=C.split("",n).join(""));const S=j!==C,B=b?(0,it.jsx)(ct.RichText,{className:w,"aria-label":(0,pt.__)("Excerpt text"),value:a?C:(S?j+"…":C)||(0,pt.__)("No excerpt found"),onChange:m,tagName:"p"}):(0,it.jsx)("p",{className:w,children:S?j+"…":C||(0,pt.__)("No excerpt found")});return(0,it.jsxs)(it.Fragment,{children:[c&&(0,it.jsx)(ct.BlockControls,{children:(0,it.jsx)(ct.AlignmentToolbar,{value:e,onChange:e=>r({textAlign:e})})}),(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{r({showMoreOnNewLine:!0,excerptLength:55})},dropdownMenuProps:_,children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!0!==o,label:(0,pt.__)("Show link on new line"),onDeselect:()=>r({showMoreOnNewLine:!0}),isShownByDefault:!0,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Show link on new line"),checked:o,onChange:e=>r({showMoreOnNewLine:e})})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>55!==n,label:(0,pt.__)("Max number of words"),onDeselect:()=>r({excerptLength:55}),isShownByDefault:!0,children:(0,it.jsx)(mt.RangeControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("Max number of words"),value:n,onChange:e=>{r({excerptLength:e})},min:"10",max:"100"})})]})}),(0,it.jsxs)("div",{...f,children:[B,!o&&" ",o?(0,it.jsx)("p",{className:"wp-block-post-excerpt__more-text",children:k}):k]})]})}},_y=()=>jt({name:gy,metadata:py,settings:hy});var xy=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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 by=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/post-featured-image","title":"Featured Image","category":"theme","description":"Display a post\'s featured image.","textdomain":"default","attributes":{"isLink":{"type":"boolean","default":false,"role":"content"},"aspectRatio":{"type":"string"},"width":{"type":"string"},"height":{"type":"string"},"scale":{"type":"string","default":"cover"},"sizeSlug":{"type":"string"},"rel":{"type":"string","attribute":"rel","default":"","role":"content"},"linkTarget":{"type":"string","default":"_self","role":"content"},"overlayColor":{"type":"string"},"customOverlayColor":{"type":"string"},"dimRatio":{"type":"number","default":0},"gradient":{"type":"string"},"customGradient":{"type":"string"},"useFirstImageFromPost":{"type":"boolean","default":false}},"usesContext":["postId","postType","queryId"],"example":{"viewportWidth":350},"supports":{"align":["left","right","center","wide","full"],"color":{"text":false,"background":false},"__experimentalBorder":{"color":true,"radius":true,"width":true,"__experimentalSkipSerialization":true,"__experimentalDefaultControls":{"color":true,"radius":true,"width":true}},"filter":{"duotone":true},"shadow":{"__experimentalSkipSerialization":true},"html":false,"spacing":{"margin":true,"padding":true},"interactivity":{"clientNavigation":true}},"selectors":{"border":".wp-block-post-featured-image img, .wp-block-post-featured-image .block-editor-media-placeholder, .wp-block-post-featured-image .wp-block-post-featured-image__overlay","shadow":".wp-block-post-featured-image img, .wp-block-post-featured-image .components-placeholder","filter":{"duotone":".wp-block-post-featured-image img, .wp-block-post-featured-image .wp-block-post-featured-image__placeholder, .wp-block-post-featured-image .components-placeholder__illustration, .wp-block-post-featured-image .components-placeholder::before"}},"editorStyle":"wp-block-post-featured-image-editor","style":"wp-block-post-featured-image"}'),fy=(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(mt.__experimentalToggleGroupControlOption,{value:"cover",label:(0,pt._x)("Cover","Scale option for Image dimension control")}),(0,it.jsx)(mt.__experimentalToggleGroupControlOption,{value:"contain",label:(0,pt._x)("Contain","Scale option for Image dimension control")}),(0,it.jsx)(mt.__experimentalToggleGroupControlOption,{value:"fill",label:(0,pt._x)("Fill","Scale option for Image dimension control")})]}),yy="cover",vy={cover:(0,pt.__)("Image is scaled and cropped to fill the entire space without being distorted."),contain:(0,pt.__)("Image is scaled to fill the space without clipping nor distorting."),fill:(0,pt.__)("Image will be stretched and distorted to completely fill the space.")};var ky=({clientId:e,attributes:{aspectRatio:t,width:o,height:n,scale:r},setAttributes:a})=>{const[i,s,l,c]=(0,ct.useSettings)("spacing.units","dimensions.aspectRatios.default","dimensions.aspectRatios.theme","dimensions.defaultAspectRatios"),u=(0,mt.__experimentalUseCustomUnits)({availableUnits:i||["px","%","vw","em","rem"]}),d=(e,t)=>{const o=parseFloat(t);isNaN(o)&&t||a({[e]:o<0?"0":t})},p=(0,pt._x)("Scale","Image scaling options"),m=n||t&&"auto"!==t,g=l?.map((({name:e,ratio:t})=>({label:e,value:t}))),h=s?.map((({name:e,ratio:t})=>({label:e,value:t}))),_=[{label:(0,pt._x)("Original","Aspect ratio option for dimensions control"),value:"auto"},...c?h:[],...g||[]];return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!!t,label:(0,pt.__)("Aspect ratio"),onDeselect:()=>a({aspectRatio:void 0}),resetAllFilter:()=>({aspectRatio:void 0}),isShownByDefault:!0,panelId:e,children:(0,it.jsx)(mt.SelectControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("Aspect ratio"),value:t,options:_,onChange:e=>a({aspectRatio:e})})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{className:"single-column",hasValue:()=>!!n,label:(0,pt.__)("Height"),onDeselect:()=>a({height:void 0}),resetAllFilter:()=>({height:void 0}),isShownByDefault:!0,panelId:e,children:(0,it.jsx)(mt.__experimentalUnitControl,{__next40pxDefaultSize:!0,label:(0,pt.__)("Height"),labelPosition:"top",value:n||"",min:0,onChange:e=>d("height",e),units:u})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{className:"single-column",hasValue:()=>!!o,label:(0,pt.__)("Width"),onDeselect:()=>a({width:void 0}),resetAllFilter:()=>({width:void 0}),isShownByDefault:!0,panelId:e,children:(0,it.jsx)(mt.__experimentalUnitControl,{__next40pxDefaultSize:!0,label:(0,pt.__)("Width"),labelPosition:"top",value:o||"",min:0,onChange:e=>d("width",e),units:u})}),m&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!!r&&r!==yy,label:p,onDeselect:()=>a({scale:yy}),resetAllFilter:()=>({scale:yy}),isShownByDefault:!0,panelId:e,children:(0,it.jsx)(mt.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:p,value:r,help:vy[r],onChange:e=>a({scale:e}),isBlock:!0,children:fy})})]})};var wy=(0,xt.compose)([(0,ct.withColors)({overlayColor:"background-color"})])((({clientId:e,attributes:t,setAttributes:o,overlayColor:n,setOverlayColor:r})=>{const{dimRatio:a}=t,{gradientValue:i,setGradient:s}=(0,ct.__experimentalUseGradient)(),l=(0,ct.__experimentalUseMultipleOriginColorsAndGradients)();return l.hasColorsOrGradients?(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.__experimentalColorGradientSettingsDropdown,{__experimentalIsRenderedInSidebar:!0,settings:[{colorValue:n.color,gradientValue:i,label:(0,pt.__)("Overlay"),onColorChange:r,onGradientChange:s,isShownByDefault:!0,resetAllFilter:()=>({overlayColor:void 0,customOverlayColor:void 0,gradient:void 0,customGradient:void 0}),clearable:!0}],panelId:e,...l}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>void 0!==a,label:(0,pt.__)("Overlay opacity"),onDeselect:()=>o({dimRatio:0}),resetAllFilter:()=>({dimRatio:0}),isShownByDefault:!0,panelId:e,children:(0,it.jsx)(mt.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Overlay opacity"),value:a,onChange:e=>o({dimRatio:e}),min:0,max:100,step:10,required:!0,__next40pxDefaultSize:!0})})]}):null}));var Cy=(0,xt.compose)([(0,ct.withColors)({overlayColor:"background-color"})])((({attributes:e,overlayColor:t})=>{const{dimRatio:o}=e,{gradientClass:n,gradientValue:r}=(0,ct.__experimentalUseGradient)(),a=(0,ct.__experimentalUseMultipleOriginColorsAndGradients)(),i=(0,ct.__experimentalUseBorderProps)(e),s={backgroundColor:t.color,backgroundImage:r,...i.style};return a.hasColorsOrGradients&&o?(0,it.jsx)("span",{"aria-hidden":"true",className:Dt("wp-block-post-featured-image__overlay",(l=o,void 0===l?null:"has-background-dim-"+10*Math.round(l/10)),{[t.class]:t.class,"has-background-dim":void 0!==o,"has-background-gradient":r,[n]:n},i.className),style:s}):null;var l}));const jy=["image"],{ResolutionTool:Sy}=jo(ct.privateApis),By="full";function Ty({image:e,value:t,onChange:o}){const{imageSizes:n}=(0,lt.useSelect)((e=>{const{getSettings:t}=e(ct.store);return{imageSizes:t().imageSizes}}),[]);if(!n?.length)return null;const r=n.filter((({slug:t})=>e?.media_details?.sizes?.[t]?.source_url)).map((({name:e,slug:t})=>({value:t,label:e})));return(0,it.jsx)(Sy,{value:t,defaultValue:By,options:r,onChange:o})}const{name:Ny}=by,Py={icon:xy,edit:function({clientId:e,attributes:t,setAttributes:o,context:{postId:n,postType:r,queryId:a}}){const i=Number.isFinite(a),{isLink:s,aspectRatio:l,height:c,width:u,scale:d,sizeSlug:p,rel:m,linkTarget:g,useFirstImageFromPost:h}=t,[_,x]=(0,gt.useState)(),[b,f]=(0,_t.useEntityProp)("postType",r,"featured_media",n),[y]=(0,_t.useEntityProp)("postType",r,"content",n),v=(0,gt.useMemo)((()=>{if(b)return b;if(!h)return;const e=/<!--\s+wp:(?:core\/)?image\s+(?<attrs>{(?:(?:[^}]+|}+(?=})|(?!}\s+\/?-->).)*)?}\s+)?-->/.exec(y);return e?.groups?.attrs&&JSON.parse(e.groups.attrs)?.id}),[b,h,y]),{media:k,postType:w,postPermalink:C}=(0,lt.useSelect)((e=>{const{getEntityRecord:t,getPostType:o,getEditedEntityRecord:a}=e(_t.store);return{media:v&&t("postType","attachment",v,{context:"view"}),postType:r&&o(r),postPermalink:a("postType",r,n)?.link}}),[v,r,n]),j=k?.media_details?.sizes?.[p]?.source_url||k?.source_url,S=(0,ct.useBlockProps)({style:{width:u,height:c,aspectRatio:l},className:Dt({"is-transient":_})}),B=(0,ct.__experimentalUseBorderProps)(t),T=(0,ct.__experimentalGetShadowClassesAndStyles)(t),N=(0,ct.useBlockEditingMode)(),P=e=>(0,it.jsx)(mt.Placeholder,{className:Dt("block-editor-media-placeholder",B.className),withIllustration:!0,style:{height:!!l&&"100%",width:!!l&&"100%",...B.style,...T.style},children:e}),I=e=>{e?.id&&f(e.id),e?.url&&(0,ht.isBlobURL)(e.url)&&x(e.url)};(0,gt.useEffect)((()=>{j&&_&&x()}),[j,_]);const{createErrorNotice:D}=(0,lt.useDispatch)(bo.store),M=e=>{D(e,{type:"snackbar"}),x()},z=vt(),A="default"===N&&(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.InspectorControls,{group:"color",children:(0,it.jsx)(wy,{attributes:t,setAttributes:o,clientId:e})}),(0,it.jsx)(ct.InspectorControls,{group:"dimensions",children:(0,it.jsx)(ky,{clientId:e,attributes:t,setAttributes:o,media:k})}),(v||i||!n)&&(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{o({isLink:!1,linkTarget:"_self",rel:"",sizeSlug:By})},dropdownMenuProps:z,children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:w?.labels.singular_name?(0,pt.sprintf)((0,pt.__)("Link to %s"),w.labels.singular_name):(0,pt.__)("Link to post"),isShownByDefault:!0,hasValue:()=>!!s,onDeselect:()=>o({isLink:!1}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:w?.labels.singular_name?(0,pt.sprintf)((0,pt.__)("Link to %s"),w.labels.singular_name):(0,pt.__)("Link to post"),onChange:()=>o({isLink:!s}),checked:s})}),s&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>"_self"!==g,onDeselect:()=>o({linkTarget:"_self"}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Open in new tab"),onChange:e=>o({linkTarget:e?"_blank":"_self"}),checked:"_blank"===g})}),s&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Link relation"),isShownByDefault:!0,hasValue:()=>!!m,onDeselect:()=>o({rel:""}),children:(0,it.jsx)(mt.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("Link relation"),help:(0,gt.createInterpolateElement)((0,pt.__)("The <a>Link Relation</a> attribute defines the relationship between a linked resource and the current document."),{a:(0,it.jsx)(mt.ExternalLink,{href:"https://developer.mozilla.org/docs/Web/HTML/Attributes/rel"})}),value:m,onChange:e=>o({rel:e})})}),!!k&&(0,it.jsx)(Ty,{image:k,value:p,onChange:e=>o({sizeSlug:e})})]})})]});let L;if(!v&&(i||!n))return(0,it.jsxs)(it.Fragment,{children:[A,(0,it.jsxs)("div",{...S,children:[s?(0,it.jsx)("a",{href:C,target:g,children:P()}):P(),(0,it.jsx)(Cy,{attributes:t,setAttributes:o,clientId:e})]})]});const H=(0,pt.__)("Add a featured image"),R={...B.style,...T.style,height:l?"100%":c,width:!!l&&"100%",objectFit:!(!c&&!l)&&d};return L=v||_?k||_?(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)("img",{className:B.className,src:_||j,alt:k&&k?.alt_text?(0,pt.sprintf)((0,pt.__)("Featured image: %s"),k.alt_text):(0,pt.__)("Featured image"),style:R}),_&&(0,it.jsx)(mt.Spinner,{})]}):P():(0,it.jsx)(ct.MediaPlaceholder,{onSelect:I,accept:"image/*",allowedTypes:jy,onError:M,placeholder:P,mediaLibraryButton:({open:e})=>(0,it.jsx)(mt.Button,{__next40pxDefaultSize:!0,icon:Jp,variant:"primary",label:H,showTooltip:!0,tooltipPosition:"top center",onClick:()=>{e()}})}),(0,it.jsxs)(it.Fragment,{children:[!_&&A,!!k&&!i&&(0,it.jsx)(ct.BlockControls,{group:"other",children:(0,it.jsx)(ct.MediaReplaceFlow,{mediaId:v,mediaURL:j,allowedTypes:jy,accept:"image/*",onSelect:I,onError:M,onReset:()=>{o({isLink:!1,linkTarget:"_self",rel:"",sizeSlug:void 0}),f(0)}})}),(0,it.jsxs)("figure",{...S,children:[s?(0,it.jsx)("a",{href:C,target:g,children:L}):L,(0,it.jsx)(Cy,{attributes:t,setAttributes:o,clientId:e})]})]})}},Iy=()=>jt({name:Ny,metadata:by,settings:Py}),Dy=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"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","role":"content"},"showTitle":{"type":"boolean","default":false},"linkLabel":{"type":"boolean","default":false},"arrow":{"type":"string","default":"none"},"taxonomy":{"type":"string","default":""}},"usesContext":["postType"],"supports":{"reusable":false,"html":false,"color":{"link":true},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalWritingMode":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true}},"style":"wp-block-post-navigation-link"}');var My=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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"})}),zy=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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"})});const Ay=[{name:"post-previous",title:(0,pt.__)("Previous Post"),description:(0,pt.__)("Displays the post link that precedes the current post."),icon:My,attributes:{type:"previous"},scope:["inserter","transform"],example:{attributes:{label:(0,pt.__)("Previous post"),arrow:"arrow"}}},{isDefault:!0,name:"post-next",title:(0,pt.__)("Next Post"),description:(0,pt.__)("Displays the post link that follows the current post."),icon:zy,attributes:{type:"next"},scope:["inserter","transform"],example:{attributes:{label:(0,pt.__)("Next post"),arrow:"arrow"}}}];Ay.forEach((e=>{e.isActive||(e.isActive=(e,t)=>e.type===t.type)}));var Ly=Ay;const{name:Hy}=Dy,Ry={edit:function({context:{postType:e},attributes:{type:t,label:o,showTitle:n,textAlign:r,linkLabel:a,arrow:i,taxonomy:s},setAttributes:l}){const c="default"===(0,ct.useBlockEditingMode)(),u="next"===t;let d=u?(0,pt.__)("Next"):(0,pt.__)("Previous");const p={none:"",arrow:u?"→":"←",chevron:u?"»":"«"}[i];n&&(d=u?(0,pt.__)("Next: "):(0,pt.__)("Previous: "));const m=u?(0,pt.__)("Next post"):(0,pt.__)("Previous post"),g=(0,ct.useBlockProps)({className:Dt({[`has-text-align-${r}`]:r})}),h=(0,lt.useSelect)((t=>{const{getTaxonomies:o}=t(_t.store);return o({type:e,per_page:-1})}),[e]),_=vt();return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{l({showTitle:!1,linkLabel:!1,arrow:"none"})},dropdownMenuProps:_,children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Display the title as a link"),isShownByDefault:!0,hasValue:()=>n,onDeselect:()=>l({showTitle:!1}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Display the title as a link"),help:(0,pt.__)("If you have entered a custom label, it will be prepended before the title."),checked:!!n,onChange:()=>l({showTitle:!n})})}),n&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Include the label as part of the link"),isShownByDefault:!0,hasValue:()=>!!a,onDeselect:()=>l({linkLabel:!1}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Include the label as part of the link"),checked:!!a,onChange:()=>l({linkLabel:!a})})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Arrow"),isShownByDefault:!0,hasValue:()=>"none"!==i,onDeselect:()=>l({arrow:"none"}),children:(0,it.jsxs)(mt.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("Arrow"),value:i,onChange:e=>{l({arrow:e})},help:(0,pt.__)("A decorative arrow for the next and previous link."),isBlock:!0,children:[(0,it.jsx)(mt.__experimentalToggleGroupControlOption,{value:"none",label:(0,pt._x)("None","Arrow option for Next/Previous link")}),(0,it.jsx)(mt.__experimentalToggleGroupControlOption,{value:"arrow",label:(0,pt._x)("Arrow","Arrow option for Next/Previous link")}),(0,it.jsx)(mt.__experimentalToggleGroupControlOption,{value:"chevron",label:(0,pt._x)("Chevron","Arrow option for Next/Previous link")})]})})]})}),(0,it.jsx)(ct.InspectorControls,{group:"advanced",children:(0,it.jsx)(mt.SelectControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("Filter by taxonomy"),value:s,options:[{label:(0,pt.__)("Unfiltered"),value:""},...(h??[]).filter((({visibility:e})=>!!e?.publicly_queryable)).map((e=>({value:e.slug,label:e.name})))],onChange:e=>l({taxonomy:e}),help:(0,pt.__)("Only link to posts that have the same taxonomy terms as the current post. For example the same tags or categories.")})}),c&&(0,it.jsx)(ct.BlockControls,{children:(0,it.jsx)(ct.AlignmentToolbar,{value:r,onChange:e=>{l({textAlign:e})}})}),(0,it.jsxs)("div",{...g,children:[!u&&p&&(0,it.jsx)("span",{className:`wp-block-post-navigation-link__arrow-previous is-arrow-${i}`,children:p}),(0,it.jsx)(ct.RichText,{tagName:"a",identifier:"label","aria-label":m,placeholder:d,value:o,withoutInteractiveFormatting:!0,onChange:e=>l({label:e})}),n&&(0,it.jsx)("a",{href:"#post-navigation-pseudo-link",onClick:e=>e.preventDefault(),children:(0,pt.__)("An example title")}),u&&p&&(0,it.jsx)("span",{className:`wp-block-post-navigation-link__arrow-next is-arrow-${i}`,"aria-hidden":!0,children:p})]})]})},variations:Ly,example:{attributes:{label:(0,pt.__)("Next post"),arrow:"arrow"}}},Vy=()=>jt({name:Hy,metadata:Dy,settings:Ry}),Fy=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/post-template","title":"Post Template","category":"theme","ancestor":["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","displayLayout","templateSlug","previewPostType","enhancedPagination","postType"],"supports":{"reusable":false,"html":false,"align":["wide","full"],"layout":true,"color":{"gradients":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"spacing":{"margin":true,"padding":true,"blockGap":{"__experimentalDefault":"1.25em"},"__experimentalDefaultControls":{"blockGap":true,"padding":false,"margin":false}},"interactivity":{"clientNavigation":true},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true}},"style":"wp-block-post-template","editorStyle":"wp-block-post-template-editor"}'),Ey=[["core/post-title"],["core/post-date",{metadata:{bindings:{datetime:{source:"core/post-data",args:{field:"date"}}}}}],["core/post-excerpt"]];function Oy({classList:e}){const t=(0,ct.useInnerBlocksProps)({className:Dt("wp-block-post",e)},{template:Ey,__unstableDisableLayoutClassNames:!0});return(0,it.jsx)("li",{...t})}const Gy=(0,gt.memo)((function({blocks:e,blockContextId:t,classList:o,isHidden:n,setActiveBlockContextId:r}){const a=(0,ct.__experimentalUseBlockPreview)({blocks:e,props:{className:Dt("wp-block-post",o)}}),i=()=>{r(t)},s={display:n?"none":void 0};return(0,it.jsx)("li",{...a,tabIndex:0,role:"button",onClick:i,onKeyPress:i,style:s})}));const{name:$y}=Fy,Uy={icon:Oa,edit:function({setAttributes:e,clientId:t,context:{query:{perPage:o,offset:n=0,postType:r,order:a,orderBy:i,author:s,search:l,exclude:c,sticky:u,inherit:d,taxQuery:p,parents:m,pages:g,format:h,..._}={},templateSlug:x,previewPostType:b},attributes:{layout:f},__unstableLayoutClassNames:y}){const{type:v,columnCount:k=3}=f||{},[w,C]=(0,gt.useState)(),{posts:j,blocks:S}=(0,lt.useSelect)((e=>{const{getEntityRecords:g,getTaxonomies:f}=e(_t.store),{getBlocks:y}=e(ct.store),v=d&&x?.startsWith("category-")&&g("taxonomy","category",{context:"view",per_page:1,_fields:["id"],slug:x.replace("category-","")}),k=d&&x?.startsWith("tag-")&&g("taxonomy","post_tag",{context:"view",per_page:1,_fields:["id"],slug:x.replace("tag-","")}),w={offset:n||0,order:a,orderby:i};if(p&&!d){const e=f({type:r,per_page:-1,context:"view"}),t=Object.entries(p).reduce(((t,[o,n])=>{const r=e?.find((({slug:e})=>e===o));return r?.rest_base&&(t[r?.rest_base]=n),t}),{});Object.keys(t).length&&Object.assign(w,t)}o&&(w.per_page=o),s&&(w.author=s),l&&(w.search=l),c?.length&&(w.exclude=c),m?.length&&(w.parent=m),h?.length&&(w.format=h),["exclude","only"].includes(u)&&(w.sticky="only"===u),["","ignore"].includes(u)&&(delete w.sticky,w.ignore_sticky="ignore"===u);let C=r;d&&(x?.startsWith("archive-")?(w.postType=x.replace("archive-",""),C=w.postType):v?w.categories=v[0]?.id:k?w.tags=k[0]?.id:x?.startsWith("taxonomy-post_format")&&(w.format=x.replace("taxonomy-post_format-post-format-","")));return{posts:g("postType",b||C,{...w,..._}),blocks:y(t)}}),[o,n,a,i,t,s,l,r,c,u,d,x,p,m,h,_,b]),B=(0,gt.useMemo)((()=>j?.map((e=>({postType:e.type,postId:e.id,classList:e.class_list??""})))),[j]),T=(0,ct.useBlockProps)({className:Dt(y,{[`columns-${k}`]:"grid"===v&&k})});if(!j)return(0,it.jsx)("p",{...T,children:(0,it.jsx)(mt.Spinner,{})});if(!j.length)return(0,it.jsxs)("p",{...T,children:[" ",(0,pt.__)("No results found.")]});const N=t=>e({layout:{...f,...t}}),P=[{icon:Bm,title:(0,pt._x)("List view","Post template block display setting"),onClick:()=>N({type:"default"}),isActive:"default"===v||"constrained"===v},{icon:qd,title:(0,pt._x)("Grid view","Post template block display setting"),onClick:()=>N({type:"grid",columnCount:k}),isActive:"grid"===v}];return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.BlockControls,{children:(0,it.jsx)(mt.ToolbarGroup,{controls:P})}),(0,it.jsx)("ul",{...T,children:B&&B.map((e=>(0,it.jsxs)(ct.BlockContextProvider,{value:e,children:[e.postId===(w||B[0]?.postId)?(0,it.jsx)(Oy,{classList:e.classList}):null,(0,it.jsx)(Gy,{blocks:S,blockContextId:e.postId,classList:e.classList,setActiveBlockContextId:C,isHidden:e.postId===(w||B[0]?.postId)})]},e.postId)))})]})},save:function(){return(0,it.jsx)(ct.InnerBlocks.Content,{})}},qy=()=>jt({name:$y,metadata:Fy,settings:Uy});var Wy=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.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"})});const Zy=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"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":", "},"prefix":{"type":"string","default":"","role":"content"},"suffix":{"type":"string","default":"","role":"content"}},"usesContext":["postId","postType"],"example":{"viewportWidth":350},"supports":{"html":false,"color":{"gradients":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true,"link":true}},"spacing":{"margin":true,"padding":true},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true,"__experimentalDefaultControls":{"radius":true,"color":true,"width":true,"style":true}}},"style":"wp-block-post-terms"}'),Jy=[];const Qy=["core/bold","core/image","core/italic","core/link","core/strikethrough","core/text-color"];var Ky=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.Path,{d:"M8.1 12.3c.1.1.3.3.5.3.2.1.4.1.6.1.2 0 .4 0 .6-.1.2-.1.4-.2.5-.3l3-3c.3-.3.5-.7.5-1.1 0-.4-.2-.8-.5-1.1L9.7 3.5c-.1-.2-.3-.3-.5-.3H5c-.4 0-.8.4-.8.8v4.2c0 .2.1.4.2.5l3.7 3.6zM5.8 4.8h3.1l3.4 3.4v.1l-3 3 .5.5-.7-.5-3.3-3.4V4.8zM4 20h9v-1.5H4V20zm0-5.5V16h16v-1.5H4z"})});const Yy={category:Wy,post_tag:Ky};function Xy(e,t){if("core/post-terms"!==t)return e;const o=e.variations.map((e=>({...e,icon:Yy[e.name]??Wy})));return{...e,variations:o}}const{name:ev}=Zy,tv={icon:Wy,edit:function({attributes:e,clientId:t,context:o,isSelected:n,setAttributes:r,insertBlocksAfter:a}){const{term:i,textAlign:s,separator:l,prefix:c,suffix:u}=e,{postId:d,postType:p}=o,m="default"===(0,ct.useBlockEditingMode)(),g=(0,lt.useSelect)((e=>{if(!i)return{};const{getTaxonomy:t}=e(_t.store),o=t(i);return o?.visibility?.publicly_queryable?o:{}}),[i]),{postTerms:h,hasPostTerms:_,isLoading:x}=function({postId:e,term:t}){const{slug:o}=t;return(0,lt.useSelect)((n=>{const r=t?.visibility?.publicly_queryable;if(!r)return{postTerms:Jy,isLoading:!1,hasPostTerms:!1};const{getEntityRecords:a,isResolving:i}=n(_t.store),s=["taxonomy",o,{post:e,per_page:-1,context:"view"}],l=a(...s);return{postTerms:l,isLoading:i("getEntityRecords",s),hasPostTerms:!!l?.length}}),[e,t?.visibility?.publicly_queryable,o])}({postId:d,term:g}),b=d&&p,f=(0,ct.useBlockDisplayInformation)(t),y=(0,ct.useBlockProps)({className:Dt({[`has-text-align-${s}`]:s,[`taxonomy-${i}`]:i})});return(0,it.jsxs)(it.Fragment,{children:[m&&(0,it.jsx)(ct.BlockControls,{children:(0,it.jsx)(ct.AlignmentToolbar,{value:s,onChange:e=>{r({textAlign:e})}})}),(0,it.jsx)(ct.InspectorControls,{group:"advanced",children:(0,it.jsx)(mt.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,autoComplete:"off",label:(0,pt.__)("Separator"),value:l||"",onChange:e=>{r({separator:e})},help:(0,pt.__)("Enter character(s) used to separate terms.")})}),(0,it.jsxs)("div",{...y,children:[x&&b&&(0,it.jsx)(mt.Spinner,{}),!x&&(n||c)&&(0,it.jsx)(ct.RichText,{identifier:"prefix",allowedFormats:Qy,className:"wp-block-post-terms__prefix","aria-label":(0,pt.__)("Prefix"),placeholder:(0,pt.__)("Prefix")+" ",value:c,onChange:e=>r({prefix:e}),tagName:"span"}),(!b||!i)&&(0,it.jsx)("span",{children:f.title}),b&&!x&&_&&h.map((e=>(0,it.jsx)("a",{href:e.link,onClick:e=>e.preventDefault(),rel:"tag",children:(0,ao.decodeEntities)(e.name)},e.id))).reduce(((e,t)=>(0,it.jsxs)(it.Fragment,{children:[e,(0,it.jsx)("span",{className:"wp-block-post-terms__separator",children:l||" "}),t]}))),b&&!x&&!_&&(g?.labels?.no_terms||(0,pt.__)("Term items not found.")),!x&&(n||u)&&(0,it.jsx)(ct.RichText,{identifier:"suffix",allowedFormats:Qy,className:"wp-block-post-terms__suffix","aria-label":(0,pt.__)("Suffix"),placeholder:" "+(0,pt.__)("Suffix"),value:u,onChange:e=>r({suffix:e}),tagName:"span",__unstableOnSplitAtEnd:()=>a((0,st.createBlock)((0,st.getDefaultBlockName)()))})]})]})}},ov=()=>((0,vl.addFilter)("blocks.registerBlockType","core/template-part",Xy),jt({name:ev,metadata:Zy,settings:tv}));var nv=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M12 3c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 16.5c-4.1 0-7.5-3.4-7.5-7.5S7.9 4.5 12 4.5s7.5 3.4 7.5 7.5-3.4 7.5-7.5 7.5zM12 7l-1 5c0 .3.2.6.4.8l4.2 2.8-2.7-4.1L12 7z"})});const rv=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/post-time-to-read","title":"Time to Read","category":"theme","description":"Show minutes required to finish reading the post. Can also show a word count.","textdomain":"default","usesContext":["postId","postType"],"attributes":{"textAlign":{"type":"string"},"displayAsRange":{"type":"boolean","default":true},"displayMode":{"type":"string","default":"time"},"averageReadingSpeed":{"type":"number","default":189}},"supports":{"color":{"gradients":true,"__experimentalDefaultControls":{"background":true,"text":true}},"html":false,"spacing":{"margin":true,"padding":true,"__experimentalDefaultControls":{"margin":false,"padding":false}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true}}}'),av=window.wp.wordcount;var iv=function({attributes:e,setAttributes:t,context:o}){const{textAlign:n,displayAsRange:r,displayMode:a,averageReadingSpeed:i}=e,{postId:s,postType:l}=o,c=vt(),[u]=(0,_t.useEntityProp)("postType",l,"content",s),[d]=(0,_t.useEntityBlockEditor)("postType",l,{id:s}),p=(0,gt.useMemo)((()=>{let e;e=u instanceof Function?u({blocks:d}):d?(0,st.__unstableSerializeAndClean)(d):u;const t=(0,pt._x)("words","Word count type. Do not translate!"),o=(0,av.count)(e||"",t);if("time"===a){if(r){let e=Math.max(1,Math.round(o/i*1.2));const t=Math.max(1,Math.round(o/i*.8));t===e&&(e+=1);const n=(0,pt._x)("%1$s–%2$s minutes","Range of minutes to read");return(0,pt.sprintf)(n,t,e)}const e=Math.max(1,Math.round(o/i));return(0,pt.sprintf)((0,pt._n)("%s minute","%s minutes",e),e)}if("words"===a)return"words"===t?(0,pt.sprintf)((0,pt._n)("%s word","%s words",o),o.toLocaleString()):(0,pt.sprintf)((0,pt._n)("%s character","%s characters",o),o.toLocaleString())}),[u,d,r,a,i]),m=(0,ct.useBlockProps)({className:Dt({[`has-text-align-${n}`]:n})});return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.BlockControls,{group:"block",children:(0,it.jsx)(ct.AlignmentControl,{value:n,onChange:e=>{t({textAlign:e})}})}),"time"===a&&(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsx)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{t({displayAsRange:!0})},dropdownMenuProps:c,children:(0,it.jsx)(mt.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,pt._x)("Display as range","Turns reading time range display on or off"),hasValue:()=>!r,onDeselect:()=>{t({displayAsRange:!0})},children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Display as range"),checked:!!r,onChange:()=>t({displayAsRange:!r})})})})}),(0,it.jsx)("div",{...m,children:p})]})},sv=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M19 5c1.1 0 2 .9 2 2v10c0 1.1-.9 2-2 2H5c-1.1 0-2-.9-2-2V7c0-1.1.9-2 2-2zM5 6.5c-.3 0-.5.2-.5.5v10c0 .3.2.5.5.5h14c.3 0 .5-.2.5-.5V7c0-.3-.2-.5-.5-.5zM14.734 9q.714 0 1.15.253.437.247.639.84.2.591.2 1.61v1.15q0 .402.036.667.04.258.172.39.138.127.437.127h.104l-.162.828h-.08q-.5 0-.776-.097a.9.9 0 0 1-.414-.283 2 2 0 0 1-.259-.448q-.316.367-.748.598-.43.23-.977.23-.524 0-.914-.213a1.56 1.56 0 0 1-.61-.58 1.65 1.65 0 0 1-.213-.84q0-.477.207-.817.213-.345.564-.568.357-.23.794-.363.437-.139.902-.196.471-.062.902-.068 0-.805-.315-1.053-.316-.247-.915-.247-.316 0-.678.098-.356.097-.805.408l-.15-.84a2.8 2.8 0 0 1 .846-.419A3.4 3.4 0 0 1 14.734 9m-5.877 1.669H9.86l.59-1.531h.689l-.585 1.53h.898l-.249.727h-.922l-.337.866h1.019l-.354.773h-.962l-.681 1.804h-.701l.69-1.804h-.999l-.693 1.804h-.69l.685-1.804H6.3l.34-.773h.915l.333-.866h-.994l.244-.726H8.16l.594-1.531h.693zm6.832 1.264q-.823.029-1.335.16-.506.133-.74.397-.236.265-.236.685 0 .454.241.66.248.202.632.202.414 0 .8-.207.39-.207.637-.552zm-7.441.328h1l.34-.866h-1z"})});const lv=[{name:"time-to-read",title:(0,pt.__)("Time to Read"),description:(0,pt.__)("Show minutes required to finish reading the post."),attributes:{displayMode:"time"},scope:["inserter","transform"],isActive:e=>"time"===e?.displayMode,icon:nv,isDefault:!0},{name:"word-count",title:(0,pt.__)("Word Count"),description:(0,pt.__)("Show the number of words in the post."),attributes:{displayMode:"words"},scope:["inserter","transform"],isActive:e=>"words"===e?.displayMode,icon:sv}];var cv=lv;const{name:uv}=rv,dv={icon:nv,edit:iv,variations:cv,example:{}},pv=()=>jt({name:uv,metadata:rv,settings:dv}),mv=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/post-title","title":"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},"levelOptions":{"type":"array"},"isLink":{"type":"boolean","default":false,"role":"content"},"rel":{"type":"string","attribute":"rel","default":"","role":"content"},"linkTarget":{"type":"string","default":"_self","role":"content"}},"example":{"viewportWidth":350},"supports":{"align":["wide","full"],"html":false,"color":{"gradients":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true,"link":true}},"spacing":{"margin":true,"padding":true},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true,"__experimentalDefaultControls":{"radius":true,"color":true,"width":true,"style":true}}},"style":"wp-block-post-title"}');const gv={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:Yo,isEligible:({style:e})=>e?.typography?.fontFamily};var hv=[gv];const{name:_v}=mv,xv={icon:ji,edit:function({attributes:{level:e,levelOptions:t,textAlign:o,isLink:n,rel:r,linkTarget:a},setAttributes:i,context:{postType:s,postId:l,queryId:c},insertBlocksAfter:u}){const d=0===e?"p":`h${e}`,p=Number.isFinite(c),m=(0,lt.useSelect)((e=>!p&&e(_t.store).canUser("update",{kind:"postType",name:s,id:l})),[p,s,l]),[g="",h,_]=(0,_t.useEntityProp)("postType",s,"title",l),[x]=(0,_t.useEntityProp)("postType",s,"link",l),b=()=>{u((0,st.createBlock)((0,st.getDefaultBlockName)()))},f=(0,ct.useBlockProps)({className:Dt({[`has-text-align-${o}`]:o})}),y=(0,ct.useBlockEditingMode)(),v=vt();let k=(0,it.jsx)(d,{...f,children:(0,pt.__)("Title")});return s&&l&&(k=m?(0,it.jsx)(ct.PlainText,{tagName:d,placeholder:(0,pt.__)("No title"),value:g,onChange:h,__experimentalVersion:2,__unstableOnSplitAtEnd:b,...f}):(0,it.jsx)(d,{...f,dangerouslySetInnerHTML:{__html:_?.rendered}})),n&&s&&l&&(k=m?(0,it.jsx)(d,{...f,children:(0,it.jsx)(ct.PlainText,{tagName:"a",href:x,target:a,rel:r,placeholder:g.length?null:(0,pt.__)("No title"),value:g,onChange:h,__experimentalVersion:2,__unstableOnSplitAtEnd:b})}):(0,it.jsx)(d,{...f,children:(0,it.jsx)("a",{href:x,target:a,rel:r,onClick:e=>e.preventDefault(),dangerouslySetInnerHTML:{__html:_?.rendered}})})),(0,it.jsxs)(it.Fragment,{children:["default"===y&&(0,it.jsxs)(it.Fragment,{children:[(0,it.jsxs)(ct.BlockControls,{group:"block",children:[(0,it.jsx)(ct.HeadingLevelDropdown,{value:e,options:t,onChange:e=>i({level:e})}),(0,it.jsx)(ct.AlignmentControl,{value:o,onChange:e=>{i({textAlign:e})}})]}),(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{i({rel:"",linkTarget:"_self",isLink:!1})},dropdownMenuProps:v,children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Make title a link"),isShownByDefault:!0,hasValue:()=>n,onDeselect:()=>i({isLink:!1}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Make title a link"),onChange:()=>i({isLink:!n}),checked:n})}),n&&(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>"_blank"===a,onDeselect:()=>i({linkTarget:"_self"}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Open in new tab"),onChange:e=>i({linkTarget:e?"_blank":"_self"}),checked:"_blank"===a})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Link relation"),isShownByDefault:!0,hasValue:()=>!!r,onDeselect:()=>i({rel:""}),children:(0,it.jsx)(mt.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("Link relation"),help:(0,gt.createInterpolateElement)((0,pt.__)("The <a>Link Relation</a> attribute defines the relationship between a linked resource and the current document."),{a:(0,it.jsx)(mt.ExternalLink,{href:"https://developer.mozilla.org/docs/Web/HTML/Attributes/rel"})}),value:r,onChange:e=>i({rel:e})})})]})]})})]}),k]})},deprecated:hv},bv=()=>jt({name:_v,metadata:mv,settings:xv});var fv=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.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"})});const yv=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"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":"rich-text","source":"rich-text","selector":"pre","__unstablePreserveWhiteSpace":true,"role":"content"}},"supports":{"anchor":true,"color":{"gradients":true,"__experimentalDefaultControls":{"background":true,"text":true}},"spacing":{"padding":true,"margin":true},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true,"__experimentalDefaultControls":{"radius":true,"color":true,"width":true,"style":true}}},"style":"wp-block-preformatted"}');const vv={from:[{type:"block",blocks:["core/code","core/paragraph","core/verse"],transform:({content:e,anchor:t})=>(0,st.createBlock)("core/preformatted",{content:e,anchor:t})},{type:"raw",isMatch:e=>"PRE"===e.nodeName&&!(1===e.children.length&&"CODE"===e.firstChild.nodeName),schema:({phrasingContentSchema:e})=>({pre:{children:e}})}],to:[{type:"block",blocks:["core/paragraph"],transform:e=>(0,st.createBlock)("core/paragraph",e)},{type:"block",blocks:["core/code"],transform:e=>(0,st.createBlock)("core/code",e)},{type:"block",blocks:["core/verse"],transform:e=>(0,st.createBlock)("core/verse",e)}]};var kv=vv;const{name:wv}=yv,Cv={icon:fv,example:{attributes:{content:(0,pt.__)("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:kv,edit:function({attributes:e,mergeBlocks:t,setAttributes:o,onRemove:n,insertBlocksAfter:r,style:a}){const{content:i}=e,s=(0,ct.useBlockProps)({style:a});return(0,it.jsx)(ct.RichText,{tagName:"pre",identifier:"content",preserveWhiteSpace:!0,value:i,onChange:e=>{o({content:e})},onRemove:n,"aria-label":(0,pt.__)("Preformatted text"),placeholder:(0,pt.__)("Write preformatted text…"),onMerge:t,...s,__unstablePastePlainText:!0,__unstableOnSplitAtDoubleLineEnd:()=>r((0,st.createBlock)((0,st.getDefaultBlockName)()))})},save:function({attributes:e}){const{content:t}=e;return(0,it.jsx)("pre",{...ct.useBlockProps.save(),children:(0,it.jsx)(ct.RichText.Content,{value:t})})},merge:(e,t)=>({content:e.content+"\n\n"+t.content})},jv=()=>jt({name:wv,metadata:yv,settings:Cv});var Sv=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.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 Bv="is-style-solid-color",Tv={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 Nv(e){if(!e)return;const t=e.match(/border-color:([^;]+)[;]?/);return t&&t[1]?t[1]:void 0}function Pv(e){const t=`</p>${e=e||"<p></p>"}<p>`.split("</p><p>");return t.shift(),t.pop(),t.join("<br>")}const Iv={attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",role:"content"},citation:{type:"string",source:"html",selector:"cite",default:"",role:"content"},textAlign:{type:"string"}},save({attributes:e}){const{textAlign:t,citation:o,value:n}=e,r=!ct.RichText.isEmpty(o);return(0,it.jsx)("figure",{...ct.useBlockProps.save({className:Dt({[`has-text-align-${t}`]:t})}),children:(0,it.jsxs)("blockquote",{children:[(0,it.jsx)(ct.RichText.Content,{value:n,multiline:!0}),r&&(0,it.jsx)(ct.RichText.Content,{tagName:"cite",value:o})]})})},migrate:({value:e,...t})=>({value:Pv(e),...t})},Dv={attributes:{...Tv},save({attributes:e}){const{mainColor:t,customMainColor:o,customTextColor:n,textColor:r,value:a,citation:i,className:s}=e,l=s?.includes(Bv);let c,u;if(l){const e=(0,ct.getColorClassName)("background-color",t);c=Dt({"has-background":e||o,[e]:e}),u={backgroundColor:e?void 0:o}}else o&&(u={borderColor:o});const d=(0,ct.getColorClassName)("color",r),p=Dt({"has-text-color":r||n,[d]:d}),m=d?void 0:{color:n};return(0,it.jsx)("figure",{...ct.useBlockProps.save({className:c,style:u}),children:(0,it.jsxs)("blockquote",{className:p,style:m,children:[(0,it.jsx)(ct.RichText.Content,{value:a,multiline:!0}),!ct.RichText.isEmpty(i)&&(0,it.jsx)(ct.RichText.Content,{tagName:"cite",value:i})]})})},migrate({value:e,className:t,mainColor:o,customMainColor:n,customTextColor:r,...a}){const i=t?.includes(Bv);let s;return n&&(s=i?{color:{background:n}}:{border:{color:n}}),r&&s&&(s.color={...s.color,text:r}),{value:Pv(e),className:t,backgroundColor:i?o:void 0,borderColor:i?void 0:o,textAlign:i?"left":void 0,style:s,...a}}},Mv={attributes:{...Tv,figureStyle:{source:"attribute",selector:"figure",attribute:"style"}},save({attributes:e}){const{mainColor:t,customMainColor:o,textColor:n,customTextColor:r,value:a,citation:i,className:s,figureStyle:l}=e,c=s?.includes(Bv);let u,d;if(c){const e=(0,ct.getColorClassName)("background-color",t);u=Dt({"has-background":e||o,[e]:e}),d={backgroundColor:e?void 0:o}}else if(o)d={borderColor:o};else if(t){d={borderColor:Nv(l)}}const p=(0,ct.getColorClassName)("color",n),m=(n||r)&&Dt("has-text-color",{[p]:p}),g=p?void 0:{color:r};return(0,it.jsx)("figure",{className:u,style:d,children:(0,it.jsxs)("blockquote",{className:m,style:g,children:[(0,it.jsx)(ct.RichText.Content,{value:a,multiline:!0}),!ct.RichText.isEmpty(i)&&(0,it.jsx)(ct.RichText.Content,{tagName:"cite",value:i})]})})},migrate({value:e,className:t,figureStyle:o,mainColor:n,customMainColor:r,customTextColor:a,...i}){const s=t?.includes(Bv);let l;if(r&&(l=s?{color:{background:r}}:{border:{color:r}}),a&&l&&(l.color={...l.color,text:a}),!s&&n&&o){const n=Nv(o);if(n)return{value:Pv(e),...i,className:t,style:{border:{color:n}}}}return{value:Pv(e),className:t,backgroundColor:s?n:void 0,borderColor:s?void 0:n,textAlign:s?"left":void 0,style:l,...i}}},zv={attributes:Tv,save({attributes:e}){const{mainColor:t,customMainColor:o,textColor:n,customTextColor:r,value:a,citation:i,className:s}=e,l=s?.includes(Bv);let c,u;if(l)c=(0,ct.getColorClassName)("background-color",t),c||(u={backgroundColor:o});else if(o)u={borderColor:o};else if(t){const e=(0,lt.select)(ct.store).getSettings().colors??[];u={borderColor:(0,ct.getColorObjectByAttributeValues)(e,t).color}}const d=(0,ct.getColorClassName)("color",n),p=n||r?Dt("has-text-color",{[d]:d}):void 0,m=d?void 0:{color:r};return(0,it.jsx)("figure",{className:c,style:u,children:(0,it.jsxs)("blockquote",{className:p,style:m,children:[(0,it.jsx)(ct.RichText.Content,{value:a,multiline:!0}),!ct.RichText.isEmpty(i)&&(0,it.jsx)(ct.RichText.Content,{tagName:"cite",value:i})]})})},migrate({value:e,className:t,mainColor:o,customMainColor:n,customTextColor:r,...a}){const i=t?.includes(Bv);let s={};return n&&(s=i?{color:{background:n}}:{border:{color:n}}),r&&s&&(s.color={...s.color,text:r}),{value:Pv(e),className:t,backgroundColor:i?o:void 0,borderColor:i?void 0:o,textAlign:i?"left":void 0,style:s,...a}}},Av={attributes:{...Tv},save({attributes:e}){const{value:t,citation:o}=e;return(0,it.jsxs)("blockquote",{children:[(0,it.jsx)(ct.RichText.Content,{value:t,multiline:!0}),!ct.RichText.isEmpty(o)&&(0,it.jsx)(ct.RichText.Content,{tagName:"cite",value:o})]})},migrate:({value:e,...t})=>({value:Pv(e),...t})},Lv={attributes:{...Tv,citation:{type:"string",source:"html",selector:"footer"},align:{type:"string",default:"none"}},save({attributes:e}){const{value:t,citation:o,align:n}=e;return(0,it.jsxs)("blockquote",{className:`align${n}`,children:[(0,it.jsx)(ct.RichText.Content,{value:t,multiline:!0}),!ct.RichText.isEmpty(o)&&(0,it.jsx)(ct.RichText.Content,{tagName:"footer",value:o})]})},migrate:({value:e,...t})=>({value:Pv(e),...t})};var Hv=[Iv,Dv,Mv,zv,Av,Lv];const Rv="web"===gt.Platform.OS;var Vv=function({attributes:e,setAttributes:t,isSelected:o,insertBlocksAfter:n}){const{textAlign:r,citation:a,value:i}=e,s=(0,ct.useBlockProps)({className:Dt({[`has-text-align-${r}`]:r})}),l=!ct.RichText.isEmpty(a)||o;return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.BlockControls,{group:"block",children:(0,it.jsx)(ct.AlignmentControl,{value:r,onChange:e=>{t({textAlign:e})}})}),(0,it.jsx)("figure",{...s,children:(0,it.jsxs)("blockquote",{children:[(0,it.jsx)(ct.RichText,{identifier:"value",tagName:"p",value:i,onChange:e=>t({value:e}),"aria-label":(0,pt.__)("Pullquote text"),placeholder:(0,pt.__)("Add quote"),textAlign:"center"}),l&&(0,it.jsx)(ct.RichText,{identifier:"citation",tagName:Rv?"cite":void 0,style:{display:"block"},value:a,"aria-label":(0,pt.__)("Pullquote citation text"),placeholder:(0,pt.__)("Add citation"),onChange:e=>t({citation:e}),className:"wp-block-pullquote__citation",__unstableMobileNoFocusOnMount:!0,textAlign:"center",__unstableOnSplitAtEnd:()=>n((0,st.createBlock)((0,st.getDefaultBlockName)()))})]})})]})};const Fv=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/pullquote","title":"Pullquote","category":"text","description":"Give special visual emphasis to a quote from your text.","textdomain":"default","attributes":{"value":{"type":"rich-text","source":"rich-text","selector":"p","role":"content"},"citation":{"type":"rich-text","source":"rich-text","selector":"cite","role":"content"},"textAlign":{"type":"string"}},"supports":{"anchor":true,"align":["left","right","wide","full"],"background":{"backgroundImage":true,"backgroundSize":true,"__experimentalDefaultControls":{"backgroundImage":true}},"color":{"gradients":true,"background":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true}},"dimensions":{"minHeight":true,"__experimentalDefaultControls":{"minHeight":false}},"spacing":{"margin":true,"padding":true},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"__experimentalBorder":{"color":true,"radius":true,"style":true,"width":true,"__experimentalDefaultControls":{"color":true,"radius":true,"style":true,"width":true}},"__experimentalStyle":{"typography":{"fontSize":"1.5em","lineHeight":"1.6"}},"interactivity":{"clientNavigation":true}},"editorStyle":"wp-block-pullquote-editor","style":"wp-block-pullquote"}');const Ev={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>(0,st.createBlock)("core/pullquote",{value:(0,Tn.toHTMLString)({value:(0,Tn.join)(e.map((({content:e})=>(0,Tn.create)({html:e}))),"\n")}),anchor:e.anchor})},{type:"block",blocks:["core/heading"],transform:({content:e,anchor:t})=>(0,st.createBlock)("core/pullquote",{value:e,anchor:t})}],to:[{type:"block",blocks:["core/paragraph"],transform:({value:e,citation:t})=>{const o=[];return e&&o.push((0,st.createBlock)("core/paragraph",{content:e})),t&&o.push((0,st.createBlock)("core/paragraph",{content:t})),0===o.length?(0,st.createBlock)("core/paragraph",{content:""}):o}},{type:"block",blocks:["core/heading"],transform:({value:e,citation:t})=>{if(!e)return(0,st.createBlock)("core/heading",{content:t});const o=(0,st.createBlock)("core/heading",{content:e});return t?[o,(0,st.createBlock)("core/heading",{content:t})]:o}}]};var Ov=Ev;const{name:Gv}=Fv,$v={icon:Sv,example:{attributes:{value:(0,pt.__)("One of the hardest things to do in technology is disrupt yourself."),citation:(0,pt.__)("Matt Mullenweg")}},transforms:Ov,edit:Vv,save:function({attributes:e}){const{textAlign:t,citation:o,value:n}=e,r=!ct.RichText.isEmpty(o);return(0,it.jsx)("figure",{...ct.useBlockProps.save({className:Dt({[`has-text-align-${t}`]:t})}),children:(0,it.jsxs)("blockquote",{children:[(0,it.jsx)(ct.RichText.Content,{tagName:"p",value:n}),r&&(0,it.jsx)(ct.RichText.Content,{tagName:"cite",value:o})]})})},deprecated:Hv},Uv=()=>jt({name:Gv,metadata:Fv,settings:$v});var qv=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.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"})});const Wv=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"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.","keywords":["posts","list","blog","blogs","custom post types"],"textdomain":"default","attributes":{"queryId":{"type":"number"},"query":{"type":"object","default":{"perPage":null,"pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":true,"taxQuery":null,"parents":[],"format":[]}},"tagName":{"type":"string","default":"div"},"namespace":{"type":"string"},"enhancedPagination":{"type":"boolean","default":false}},"usesContext":["templateSlug"],"providesContext":{"queryId":"queryId","query":"query","displayLayout":"displayLayout","enhancedPagination":"enhancedPagination"},"supports":{"align":["wide","full"],"html":false,"layout":true,"interactivity":true,"contentRole":true},"editorStyle":"wp-block-query-editor"}'),Zv=e=>{const t=e?.reduce(((e,t)=>{const{mapById:o,mapByName:n,names:r}=e;return o[t.id]=t,n[t.name]=t,r.push(t.name),e}),{mapById:{},mapByName:{},names:[]});return{entities:e,...t}},Jv=(e,t)=>{const o=t.split(".");let n=e;return o.forEach((e=>{n=n?.[e]})),n},Qv=(e,t)=>(e||[]).map((e=>({...e,name:(0,ao.decodeEntities)(Jv(e,t))}))),Kv=e=>{const t=(0,lt.useSelect)((t=>{const{getTaxonomies:o,getPostType:n}=t(_t.store);return n(e)?.taxonomies?.length>0?o({type:e,per_page:-1}):[]}),[e]);return(0,gt.useMemo)((()=>t?.filter((({visibility:e})=>!!e?.publicly_queryable))),[t])};function Yv(e,t){return!e||e.includes(t)}const Xv=e=>(0,lt.useSelect)((t=>{const{getClientIdsOfDescendants:o,getBlockName:n}=t(ct.store);return o(e).some((e=>{const t=n(e),o=Object.is((0,st.getBlockSupport)(t,"interactivity"),!0),r=(0,st.getBlockSupport)(t,"interactivity.clientNavigation");return!o&&!r}))}),[e]);function ek({enhancedPagination:e,setAttributes:t,clientId:o}){const n=Xv(o);let r=(0,pt.__)("Reload the full page—instead of just the posts list—when visitors navigate between pages.");return n&&(r=(0,pt.__)("Enhancement disabled because there are non-compatible blocks inside the Query block.")),(0,it.jsx)(it.Fragment,{children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Reload full page"),help:r,checked:!e,disabled:n,onChange:e=>{t({enhancedPagination:!e})}})})}const tk=[{label:(0,pt.__)("Newest to oldest"),value:"date/desc"},{label:(0,pt.__)("Oldest to newest"),value:"date/asc"},{label:(0,pt.__)("A → Z"),value:"title/asc"},{label:(0,pt.__)("Z → A"),value:"title/desc"}];var ok=function({order:e,orderBy:t,orderByOptions:o=tk,onChange:n}){return(0,it.jsx)(mt.SelectControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,pt.__)("Order by"),value:`${t}/${e}`,options:o,onChange:e=>{const[t,o]=e.split("/");n({order:o,orderBy:t})}})};const nk={who:"authors",per_page:-1,_fields:"id,name",context:"view"};var rk=function({value:e,onChange:t}){const o=(0,lt.useSelect)((e=>{const{getUsers:t}=e(_t.store);return t(nk)}),[]);if(!o)return null;const n=Zv(o),r=(e?e.toString().split(","):[]).reduce(((e,t)=>{const o=n.mapById[t];return o&&e.push({id:t,value:o.name}),e}),[]);return(0,it.jsx)(mt.FormTokenField,{label:(0,pt.__)("Authors"),value:r,suggestions:n.names,onChange:e=>{const o=Array.from(e.reduce(((e,t)=>{const o=((e,t)=>{const o=t?.id||e[t]?.id;if(o)return o})(n.mapByName,t);return o&&e.add(o),e}),new Set));t({author:o.join(",")})},__experimentalShowHowTo:!1,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0})};const ak=[],ik={order:"asc",_fields:"id,title",context:"view"};var sk=function({parents:e,postType:t,onChange:o}){const[n,r]=(0,gt.useState)(""),[a,i]=(0,gt.useState)(ak),[s,l]=(0,gt.useState)(ak),c=(0,xt.useDebounce)(r,250),{searchResults:u,searchHasResolved:d}=(0,lt.useSelect)((o=>{if(!n)return{searchResults:ak,searchHasResolved:!0};const{getEntityRecords:r,hasFinishedResolution:a}=o(_t.store),i=["postType",t,{...ik,search:n,orderby:"relevance",exclude:e,per_page:20}];return{searchResults:r(...i),searchHasResolved:a("getEntityRecords",i)}}),[n,t,e]),p=(0,lt.useSelect)((o=>{if(!e?.length)return ak;const{getEntityRecords:n}=o(_t.store);return n("postType",t,{...ik,include:e,per_page:e.length})}),[e,t]);(0,gt.useEffect)((()=>{if(e?.length||i(ak),!p?.length)return;const t=Zv(Qv(p,"title.rendered")),o=e.reduce(((e,o)=>{const n=t.mapById[o];return n&&e.push({id:o,value:n.name}),e}),[]);i(o)}),[e,p]);const m=(0,gt.useMemo)((()=>u?.length?Zv(Qv(u,"title.rendered")):ak),[u]);return(0,gt.useEffect)((()=>{d&&l(m.names)}),[m.names,d]),(0,it.jsx)(mt.FormTokenField,{__next40pxDefaultSize:!0,label:(0,pt.__)("Parents"),value:a,onInputChange:c,suggestions:s,onChange:e=>{const t=Array.from(e.reduce(((e,t)=>{const o=((e,t)=>{const o=t?.id||e?.[t]?.id;if(o)return o})(m.mapByName,t);return o&&e.add(o),e}),new Set));l(ak),o({parents:t})},__experimentalShowHowTo:!1,__nextHasNoMarginBottom:!0})};const lk=[],ck={order:"asc",_fields:"id,name",context:"view"},uk=(e,t)=>{const o=t?.id||e?.find((e=>e.name===t))?.id;if(o)return o;const n=t.toLocaleLowerCase();return e?.find((e=>e.name.toLocaleLowerCase()===n))?.id};function dk({onChange:e,query:t}){const{postType:o,taxQuery:n}=t,r=Kv(o);return r&&0!==r.length?(0,it.jsx)(mt.__experimentalVStack,{spacing:4,children:r.map((t=>{const o=n?.[t.slug]||[];return(0,it.jsx)(pk,{taxonomy:t,termIds:o,onChange:o=>e({taxQuery:{...n,[t.slug]:o}})},t.slug)}))}):null}function pk({taxonomy:e,termIds:t,onChange:o}){const[n,r]=(0,gt.useState)(""),[a,i]=(0,gt.useState)(lk),[s,l]=(0,gt.useState)(lk),c=(0,xt.useDebounce)(r,250),{searchResults:u,searchHasResolved:d}=(0,lt.useSelect)((o=>{if(!n)return{searchResults:lk,searchHasResolved:!0};const{getEntityRecords:r,hasFinishedResolution:a}=o(_t.store),i=["taxonomy",e.slug,{...ck,search:n,orderby:"name",exclude:t,per_page:20}];return{searchResults:r(...i),searchHasResolved:a("getEntityRecords",i)}}),[n,e.slug,t]),p=(0,lt.useSelect)((o=>{if(!t?.length)return lk;const{getEntityRecords:n}=o(_t.store);return n("taxonomy",e.slug,{...ck,include:t,per_page:t.length})}),[e.slug,t]);(0,gt.useEffect)((()=>{if(t?.length||i(lk),!p?.length)return;const e=t.reduce(((e,t)=>{const o=p.find((e=>e.id===t));return o&&e.push({id:t,value:o.name}),e}),[]);i(e)}),[t,p]),(0,gt.useEffect)((()=>{d&&l(u.map((e=>e.name)))}),[u,d]);return(0,it.jsx)("div",{className:"block-library-query-inspector__taxonomy-control",children:(0,it.jsx)(mt.FormTokenField,{label:e.name,value:a,onInputChange:c,suggestions:s,displayTransform:ao.decodeEntities,onChange:e=>{const t=new Set;for(const o of e){const e=uk(u,o);e&&t.add(e)}l(lk),o(Array.from(t))},__experimentalShowHowTo:!1,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0})})}const mk=[{value:"aside",label:(0,pt.__)("Aside")},{value:"audio",label:(0,pt.__)("Audio")},{value:"chat",label:(0,pt.__)("Chat")},{value:"gallery",label:(0,pt.__)("Gallery")},{value:"image",label:(0,pt.__)("Image")},{value:"link",label:(0,pt.__)("Link")},{value:"quote",label:(0,pt.__)("Quote")},{value:"standard",label:(0,pt.__)("Standard")},{value:"status",label:(0,pt.__)("Status")},{value:"video",label:(0,pt.__)("Video")}].sort(((e,t)=>{const o=e.label.toUpperCase(),n=t.label.toUpperCase();return o<n?-1:o>n?1:0}));function gk(e,t){return e.map((e=>t.find((t=>t.label.toLocaleLowerCase()===e.toLocaleLowerCase()))?.value)).filter(Boolean)}function hk({onChange:e,query:{format:t}}){const o=Array.isArray(t)?t:[t],{supportedFormats:n}=(0,lt.useSelect)((e=>({supportedFormats:e(_t.store).getThemeSupports().formats})),[]),r=mk.filter((e=>n.includes(e.value))),a=o.map((e=>r.find((t=>t.value===e))?.label)).filter(Boolean),i=r.filter((e=>!o.includes(e.value))).map((e=>e.label));return(0,it.jsx)(mt.FormTokenField,{label:(0,pt.__)("Formats"),value:a,suggestions:i,onChange:t=>{e({format:gk(t,r)})},__experimentalShowHowTo:!1,__experimentalExpandOnFocus:!0,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0})}const _k=[{label:(0,pt.__)("Include"),value:""},{label:(0,pt.__)("Ignore"),value:"ignore"},{label:(0,pt.__)("Exclude"),value:"exclude"},{label:(0,pt.__)("Only"),value:"only"}];function xk({value:e,onChange:t}){return(0,it.jsx)(mt.SelectControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,pt.__)("Sticky posts"),options:_k,value:e,onChange:t,help:(0,pt.__)("Sticky posts always appear first, regardless of their publish date.")})}var bk=({perPage:e,offset:t=0,onChange:o})=>(0,it.jsx)(mt.RangeControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("Items per page"),min:1,max:100,onChange:e=>{isNaN(e)||e<1||e>100||o({perPage:e,offset:t})},value:parseInt(e,10)});var fk=({offset:e=0,onChange:t})=>(0,it.jsx)(mt.__experimentalNumberControl,{__next40pxDefaultSize:!0,label:(0,pt.__)("Offset"),value:e,min:0,onChange:e=>{isNaN(e)||e<0||e>100||t({offset:e})}});var yk=({pages:e,onChange:t})=>(0,it.jsx)(mt.__experimentalNumberControl,{__next40pxDefaultSize:!0,label:(0,pt.__)("Max pages to show"),value:e,min:0,onChange:e=>{isNaN(e)||e<0||t({pages:e})},help:(0,pt.__)("Limit the pages you want to show, even if the query has more results. To show all pages use 0 (zero).")});function vk(e){const{attributes:t,setQuery:o,isSingular:n}=e,{query:r}=t,{order:a,orderBy:i,author:s,pages:l,postType:c,perPage:u,offset:d,sticky:p,inherit:m,taxQuery:g,parents:h,format:_}=r,x=function(e){return(0,lt.useSelect)((t=>t(st.store).getActiveBlockVariation("core/query",e)?.allowedControls),[e])}(t),b="post"===c,{postTypesTaxonomiesMap:f,postTypesSelectOptions:y,postTypeFormatSupportMap:v}=(()=>{const e=(0,lt.useSelect)((e=>{const{getPostTypes:t}=e(_t.store),o=["attachment"],n=t({per_page:-1})?.filter((({viewable:e,slug:t})=>e&&!o.includes(t)));return n}),[]);return{postTypesTaxonomiesMap:(0,gt.useMemo)((()=>{if(e?.length)return e.reduce(((e,t)=>(e[t.slug]=t.taxonomies,e)),{})}),[e]),postTypesSelectOptions:(0,gt.useMemo)((()=>(e||[]).map((({labels:e,slug:t})=>({label:e.singular_name,value:t})))),[e]),postTypeFormatSupportMap:(0,gt.useMemo)((()=>e?.length?e.reduce(((e,t)=>(e[t.slug]=t.supports?.["post-formats"]||!1,e)),{}):{}),[e])}})(),k=Kv(c),w=function(e){return(0,lt.useSelect)((t=>{const o=t(_t.store).getPostType(e);return o?.viewable&&o?.hierarchical}),[e])}(c),C=e=>{const t={postType:e},n=f[e],r=Object.entries(g||{}).reduce(((e,[t,o])=>(n.includes(t)&&(e[t]=o),e)),{});t.taxQuery=Object.keys(r).length?r:void 0,"post"!==e&&(t.sticky=""),t.parents=[];v[e]||(t.format=[]),o(t)},[j,S]=(0,gt.useState)(r.search),B=(0,gt.useMemo)((()=>(0,xt.debounce)((e=>{o({search:e})}),250)),[o]),T=function(e){const t=(0,lt.useSelect)((t=>{const o=t(_t.store).getPostType(e);return!!o?.supports?.["page-attributes"]}),[e]);return(0,gt.useMemo)((()=>{const e=[{label:(0,pt.__)("Newest to oldest"),value:"date/desc"},{label:(0,pt.__)("Oldest to newest"),value:"date/asc"},{label:(0,pt.__)("A → Z"),value:"title/asc"},{label:(0,pt.__)("Z → A"),value:"title/desc"}];return t&&e.push({label:(0,pt.__)("Ascending by order"),value:"menu_order/asc"},{label:(0,pt.__)("Descending by order"),value:"menu_order/desc"}),e}),[t])}(c),N=Yv(x,"inherit"),P=!m&&Yv(x,"postType"),I=(0,pt.__)("Post type"),D=(0,pt.__)("Select the type of content to display: posts, pages, or custom post types."),M=!m&&Yv(x,"order"),z=!m&&b&&Yv(x,"sticky"),A=N||P||M||z,L=!!k?.length&&Yv(x,"taxQuery"),H=Yv(x,"author"),R=Yv(x,"search"),V=Yv(x,"parents")&&w,F=v[c],E=(0,lt.useSelect)((e=>{if(!F||!Yv(x,"format"))return!1;const t=e(_t.store).getThemeSupports();return t.formats&&t.formats.length>0&&t.formats.some((e=>"standard"!==e))}),[x,F]),O=L||H||R||V||E,G=vt(),$=Yv(x,"postCount"),U=Yv(x,"offset"),q=Yv(x,"pages"),W=$||U||q,Z=n&&m;return(0,it.jsxs)(it.Fragment,{children:[A&&(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{o({postType:"post",order:"desc",orderBy:"date",sticky:"",inherit:!0})},dropdownMenuProps:G,children:[N&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!m,label:(0,pt.__)("Query type"),onDeselect:()=>o({inherit:!0}),isShownByDefault:!0,children:(0,it.jsxs)(mt.__experimentalVStack,{spacing:4,children:[(0,it.jsxs)(mt.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("Query type"),isBlock:!0,onChange:e=>{o({inherit:"default"===e})},help:m?(0,pt.__)("Display a list of posts or custom post types based on the current template."):(0,pt.__)("Display a list of posts or custom post types based on specific criteria."),value:m?"default":"custom",children:[(0,it.jsx)(mt.__experimentalToggleGroupControlOption,{value:"default",label:(0,pt.__)("Default")}),(0,it.jsx)(mt.__experimentalToggleGroupControlOption,{value:"custom",label:(0,pt.__)("Custom")})]}),Z&&(0,it.jsx)(mt.Notice,{status:"warning",isDismissible:!1,children:(0,pt.__)("Cannot inherit the current template query when placed inside the singular content (e.g., post, page, 404, blank).")})]})}),P&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>"post"!==c,label:I,onDeselect:()=>C("post"),isShownByDefault:!0,children:y.length>2?(0,it.jsx)(mt.SelectControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,options:y,value:c,label:I,onChange:C,help:D}):(0,it.jsx)(mt.__experimentalToggleGroupControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,isBlock:!0,value:c,label:I,onChange:C,help:D,children:y.map((e=>(0,it.jsx)(mt.__experimentalToggleGroupControlOption,{value:e.value,label:e.label},e.value)))})}),M&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>"desc"!==a||"date"!==i,label:(0,pt.__)("Order by"),onDeselect:()=>o({order:"desc",orderBy:"date"}),isShownByDefault:!0,children:(0,it.jsx)(ok,{order:a,orderBy:i,orderByOptions:T,onChange:o})}),z&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!!p,label:(0,pt.__)("Sticky posts"),onDeselect:()=>o({sticky:""}),isShownByDefault:!0,children:(0,it.jsx)(xk,{value:p,onChange:e=>o({sticky:e})})})]}),!m&&W&&(0,it.jsxs)(mt.__experimentalToolsPanel,{className:"block-library-query-toolspanel__display",label:(0,pt.__)("Display"),resetAll:()=>{o({offset:0,pages:0})},dropdownMenuProps:G,children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Items per page"),hasValue:()=>u>0,children:(0,it.jsx)(bk,{perPage:u,offset:d,onChange:o})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Offset"),hasValue:()=>d>0,onDeselect:()=>o({offset:0}),children:(0,it.jsx)(fk,{offset:d,onChange:o})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Max pages to show"),hasValue:()=>l>0,onDeselect:()=>o({pages:0}),children:(0,it.jsx)(yk,{pages:l,onChange:o})})]}),!m&&O&&(0,it.jsxs)(mt.__experimentalToolsPanel,{className:"block-library-query-toolspanel__filters",label:(0,pt.__)("Filters"),resetAll:()=>{o({author:"",parents:[],search:"",taxQuery:null,format:[]}),S("")},dropdownMenuProps:G,children:[L&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Taxonomies"),hasValue:()=>Object.values(g||{}).some((e=>!!e.length)),onDeselect:()=>o({taxQuery:null}),children:(0,it.jsx)(dk,{onChange:o,query:r})}),H&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!!s,label:(0,pt.__)("Authors"),onDeselect:()=>o({author:""}),children:(0,it.jsx)(rk,{value:s,onChange:o})}),R&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!!j,label:(0,pt.__)("Keyword"),onDeselect:()=>{o({search:""}),S("")},children:(0,it.jsx)(mt.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,pt.__)("Keyword"),value:j,onChange:e=>{B(e),S(e)}})}),V&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!!h?.length,label:(0,pt.__)("Parents"),onDeselect:()=>o({parents:[]}),children:(0,it.jsx)(sk,{parents:h,postType:c,onChange:o})}),E&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!!_?.length,label:(0,pt.__)("Formats"),onDeselect:()=>o({format:[]}),children:(0,it.jsx)(hk,{onChange:o,query:r})})]})]})}const kk="wp-block-query-enhanced-pagination-modal__description";function wk({clientId:e,attributes:{enhancedPagination:t},setAttributes:o}){const[n,r]=(0,gt.useState)(!1),a=Xv(e);(0,gt.useEffect)((()=>{t&&a&&(o({enhancedPagination:!1}),r(!0))}),[t,a,o]);const i=()=>{r(!1)},s=(0,pt.__)("Currently, avoiding full page reloads is not possible when non-interactive or non-client Navigation compatible blocks from plugins are present inside the Query block.")+" "+(0,pt.__)('If you still want to prevent full page reloads, remove that block, then disable "Reload full page" again in the Query Block settings.');return n&&(0,it.jsx)(mt.Modal,{title:(0,pt.__)("Query block: Reload full page enabled"),className:"wp-block-query__enhanced-pagination-modal",aria:{describedby:kk},role:"alertdialog",focusOnMount:"firstElement",isDismissible:!1,onRequestClose:i,children:(0,it.jsxs)(mt.__experimentalVStack,{alignment:"right",spacing:5,children:[(0,it.jsx)("span",{id:kk,children:s}),(0,it.jsx)(mt.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:i,children:(0,pt.__)("OK")})]})})}function Ck(e=""){return e=(e=su()(e)).trim().toLowerCase()}function jk(e,t){const o=Ck(t),n=Ck(e.title);let r=0;if(o===n)r+=30;else if(n.startsWith(o))r+=20;else{o.split(" ").every((e=>n.includes(e)))&&(r+=10)}return r}function Sk(e=[],t=""){if(!t)return e;const o=e.map((e=>[e,jk(e,t)])).filter((([,e])=>e>0));return o.sort((([,e],[,t])=>t-e)),o.map((([e])=>e))}function Bk({clientId:e,attributes:t,setIsPatternSelectionModalOpen:o}){return(0,it.jsx)(mt.Modal,{overlayClassName:"block-library-query-pattern__selection-modal",title:(0,pt.__)("Choose a pattern"),onRequestClose:()=>o(!1),isFullScreen:!0,children:(0,it.jsx)(Nk,{clientId:e,attributes:t})})}function Tk(e,t){const o=function(e,t){return(0,lt.useSelect)((o=>{const n=o(st.store).getActiveBlockVariation("core/query",t)?.name;if(!n)return"core/query";const{getBlockRootClientId:r,getPatternsByBlockTypes:a}=o(ct.store);return a(`core/query/${n}`,r(e)).length>0?`core/query/${n}`:"core/query"}),[e,t])}(e,t),n=((e,t)=>(0,lt.useSelect)((o=>{const{getBlockRootClientId:n,getPatternsByBlockTypes:r}=o(ct.store),a=n(e);return r(t,a)}),[t,e]))(e,o);return(0,gt.useMemo)((()=>n.filter((e=>e.blocks?.[0]?.name===o))),[n,o])}function Nk({clientId:e,attributes:t,showTitlesAsTooltip:o=!1,showSearch:n=!0}){const[r,a]=(0,gt.useState)(""),{replaceBlock:i,selectBlock:s}=(0,lt.useDispatch)(ct.store),l=Tk(e,t),c=(0,gt.useMemo)((()=>({previewPostType:t.query.postType})),[t.query.postType]),u=(0,gt.useMemo)((()=>Sk(l,r)),[l,r]);return(0,it.jsxs)("div",{className:"block-library-query-pattern__selection-content",children:[n&&(0,it.jsx)("div",{className:"block-library-query-pattern__selection-search",children:(0,it.jsx)(mt.SearchControl,{__nextHasNoMarginBottom:!0,onChange:a,value:r,label:(0,pt.__)("Search"),placeholder:(0,pt.__)("Search")})}),(0,it.jsx)(ct.BlockContextProvider,{value:c,children:(0,it.jsx)(ct.__experimentalBlockPatternsList,{blockPatterns:u,onClickPattern:(o,n)=>{const{newBlocks:r,queryClientIds:a}=((e,t)=>{const{query:{postType:o,inherit:n},namespace:r}=t,a=e.map((e=>(0,st.cloneBlock)(e))),i=[],s=[...a];for(;s.length>0;){const e=s.shift();"core/query"===e.name&&(e.attributes.query={...e.attributes.query,postType:o,inherit:n},r&&(e.attributes.namespace=r),i.push(e.clientId)),e.innerBlocks?.forEach((e=>{s.push(e)}))}return{newBlocks:a,queryClientIds:i}})(n,t);i(e,r),a[0]&&s(a[0])},showTitlesAsTooltip:o})})]})}function Pk({clientId:e,attributes:t,hasInnerBlocks:o}){if(!Tk(e,t).length)return null;const n=o?(0,pt.__)("Change design"):(0,pt.__)("Choose pattern");return(0,it.jsx)(mt.ToolbarGroup,{className:"wp-block-template-part__block-control-group",children:(0,it.jsx)(mt.__experimentalDropdownContentWrapper,{children:(0,it.jsx)(mt.Dropdown,{contentClassName:"block-editor-block-settings-menu__popover",focusOnMount:"firstElement",expandOnMobile:!0,renderToggle:({isOpen:e,onToggle:t})=>(0,it.jsx)(mt.ToolbarButton,{"aria-haspopup":"true","aria-expanded":e,onClick:t,children:n}),renderContent:()=>(0,it.jsx)(Nk,{clientId:e,attributes:t,showSearch:!1,showTitlesAsTooltip:!0})})})})}const{HTMLElementControl:Ik}=jo(ct.privateApis),Dk=[["core/post-template"]];function Mk({attributes:e,setAttributes:t,clientId:o,context:n,name:r}){const{queryId:a,query:i,enhancedPagination:s,tagName:l="div",query:{inherit:c}={}}=e,{templateSlug:u}=n,{isSingular:d}=function(e){if(!e)return{isSingular:!0};let t=!1,o="wp"===e?"custom":e;const n=e.includes("-")?e.split("-",1)[0]:e;return(e.includes("-")?e.split("-").slice(1).join("-"):"")&&(o=n),t=["404","blank","single","page","custom"].includes(o),{isSingular:t,templateType:o}}(u),{__unstableMarkNextChangeAsNotPersistent:p}=(0,lt.useDispatch)(ct.store),m=(0,xt.useInstanceId)(Mk),g=(0,ct.useBlockProps)(),h=(0,ct.useInnerBlocksProps)(g,{template:Dk}),{postsPerPage:_}=(0,lt.useSelect)((e=>{const{getSettings:t}=e(ct.store),{getEntityRecord:o,getEntityRecordEdits:n,canUser:r}=e(_t.store),a=r("read",{kind:"root",name:"site"})?+o("root","site")?.posts_per_page:+t().postsPerPage;return{postsPerPage:+n("root","site")?.posts_per_page||a||3}}),[]),x=(0,gt.useCallback)((e=>t((t=>({query:{...t.query,...e}})))),[t]);return(0,gt.useEffect)((()=>{const e={};(c&&i.perPage!==_||!i.perPage&&_)&&(e.perPage=_),Object.keys(e).length&&(p(),x(e))}),[i.perPage,c,_,p,x]),(0,gt.useEffect)((()=>{Number.isFinite(a)||(p(),t({queryId:m}))}),[a,m,p,t]),(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.BlockControls,{children:(0,it.jsx)(Pk,{clientId:o,attributes:e,hasInnerBlocks:!0})}),(0,it.jsx)(wk,{attributes:e,setAttributes:t,clientId:o}),(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsx)(vk,{name:r,attributes:e,setQuery:x,setAttributes:t,clientId:o,isSingular:d})}),(0,it.jsxs)(ct.InspectorControls,{group:"advanced",children:[(0,it.jsx)(Ik,{tagName:l,onChange:e=>t({tagName:e}),clientId:o,options:[{label:(0,pt.__)("Default (<div>)"),value:"div"},{label:"<main>",value:"main"},{label:"<section>",value:"section"},{label:"<aside>",value:"aside"}]}),(0,it.jsx)(ek,{enhancedPagination:s,setAttributes:t,clientId:o})]}),(0,it.jsx)(l,{...h})]})}function zk({attributes:e,clientId:t,name:o,openPatternSelectionModal:n}){const[r,a]=(0,gt.useState)(!1),[i,s]=(0,gt.useState)(0),l=(0,xt.useResizeObserver)((([e])=>{s(e.contentRect.width)})),c=i>0&&i<160,{blockType:u,activeBlockVariation:d}=(0,lt.useSelect)((t=>{const{getActiveBlockVariation:n,getBlockType:r}=t(st.store);return{blockType:r(o),activeBlockVariation:n(o,e)}}),[o,e]),p=!!Tk(t,e).length,m=d?.icon?.src||d?.icon||u?.icon?.src,g=d?.title||u?.title,h=(0,ct.useBlockProps)({ref:l});return r?(0,it.jsx)(Ak,{clientId:t,attributes:e,icon:m,label:g}):(0,it.jsxs)("div",{...h,children:[(0,it.jsx)(ct.BlockControls,{children:(0,it.jsx)(Pk,{clientId:t,attributes:e,hasInnerBlocks:!1})}),(0,it.jsxs)(mt.Placeholder,{className:"block-editor-media-placeholder",icon:!c&&m,label:!c&&g,instructions:!c&&(0,pt.__)("Choose a pattern for the query loop or start blank."),withIllustration:c,children:[!!p&&!c&&(0,it.jsx)(mt.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:n,children:(0,pt.__)("Choose")}),!c&&(0,it.jsx)(mt.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:()=>{a(!0)},children:(0,pt.__)("Start blank")})]})]})}function Ak({clientId:e,attributes:t,icon:o,label:n}){const r=function(e){const{activeVariationName:t,blockVariations:o}=(0,lt.useSelect)((t=>{const{getActiveBlockVariation:o,getBlockVariations:n}=t(st.store);return{activeVariationName:o("core/query",e)?.name,blockVariations:n("core/query","block")}}),[e]);return(0,gt.useMemo)((()=>{const e=e=>!e.attributes?.namespace;if(!t)return o.filter(e);const n=o.filter((e=>e.attributes?.namespace?.includes(t)));return n.length?n:o.filter(e)}),[t,o])}(t),{replaceInnerBlocks:a}=(0,lt.useDispatch)(ct.store),i=(0,ct.useBlockProps)();return(0,it.jsx)("div",{...i,children:(0,it.jsx)(ct.__experimentalBlockVariationPicker,{icon:o,label:n,variations:r,onSelect:t=>{t.innerBlocks&&a(e,(0,st.createBlocksFromInnerBlocksTemplate)(t.innerBlocks),!1)}})})}var Lk=e=>{const{clientId:t,attributes:o}=e,[n,r]=(0,gt.useState)(!1),a=(0,lt.useSelect)((e=>!!e(ct.store).getBlocks(t).length),[t])?Mk:zk;return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(a,{...e,openPatternSelectionModal:()=>r(!0)}),n&&(0,it.jsx)(Bk,{clientId:t,attributes:o,setIsPatternSelectionModalOpen:r})]})};const Hk=(0,it.jsx)(mt.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:(0,it.jsx)(mt.Path,{d:"M41 9H7v3h34V9zm-22 5H7v1h12v-1zM7 26h12v1H7v-1zm34-5H7v3h34v-3zM7 38h12v1H7v-1zm34-5H7v3h34v-3z"})}),Rk=(0,it.jsx)(mt.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:(0,it.jsx)(mt.Path,{d:"M41 9H7v3h34V9zm-4 5H7v1h30v-1zm4 3H7v1h34v-1zM7 20h30v1H7v-1zm0 12h30v1H7v-1zm34 3H7v1h34v-1zM7 38h30v1H7v-1zm34-11H7v3h34v-3z"})}),Vk=(0,it.jsx)(mt.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:(0,it.jsx)(mt.Path,{d:"M41 9H7v3h34V9zm-22 5H7v1h12v-1zm22 3H7v1h34v-1zM7 20h34v1H7v-1zm0 12h12v1H7v-1zm34 3H7v1h34v-1zM7 38h34v1H7v-1zm34-11H7v3h34v-3z"})}),Fk=(0,it.jsx)(mt.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:(0,it.jsx)(mt.Path,{d:"M7 9h34v6H7V9zm12 8H7v1h12v-1zm18 3H7v1h30v-1zm0 18H7v1h30v-1zM7 35h12v1H7v-1zm34-8H7v6h34v-6z"})}),Ek=["core/post-date",{metadata:{bindings:{datetime:{source:"core/post-data",args:{field:"date"}}}}}];var Ok=[{name:"title-date",title:(0,pt.__)("Title & Date"),icon:Hk,attributes:{},innerBlocks:[["core/post-template",{},[["core/post-title"],Ek]],["core/query-pagination"],["core/query-no-results"]],scope:["block"]},{name:"title-excerpt",title:(0,pt.__)("Title & Excerpt"),icon:Rk,attributes:{},innerBlocks:[["core/post-template",{},[["core/post-title"],["core/post-excerpt"]]],["core/query-pagination"],["core/query-no-results"]],scope:["block"]},{name:"title-date-excerpt",title:(0,pt.__)("Title, Date, & Excerpt"),icon:Vk,attributes:{},innerBlocks:[["core/post-template",{},[["core/post-title"],Ek,["core/post-excerpt"]]],["core/query-pagination"],["core/query-no-results"]],scope:["block"]},{name:"image-date-title",title:(0,pt.__)("Image, Date, & Title"),icon:Fk,attributes:{},innerBlocks:[["core/post-template",{},[["core/post-featured-image"],Ek,["core/post-title"]]],["core/query-pagination"],["core/query-no-results"]],scope:["block"]}];const{cleanEmptyObject:Gk}=jo(ct.privateApis),$k=e=>{const{query:t}=e,{categoryIds:o,tagIds:n,...r}=t;return(t.categoryIds?.length||t.tagIds?.length)&&(r.taxQuery={category:t.categoryIds?.length?t.categoryIds:void 0,post_tag:t.tagIds?.length?t.tagIds:void 0}),{...e,query:r}},Uk=(e,t)=>{const{style:o,backgroundColor:n,gradient:r,textColor:a,...i}=e;if(!(n||r||a||o?.color||o?.elements?.link))return[e,t];if(o&&(i.style=Gk({...o,color:void 0,elements:{...o.elements,link:void 0}})),qk(t)){const e=t[0],s=o?.color||o?.elements?.link||e.attributes.style?Gk({...e.attributes.style,color:o?.color,elements:o?.elements?.link?{link:o?.elements?.link}:void 0}):void 0;return[i,[(0,st.createBlock)("core/group",{...e.attributes,backgroundColor:n,gradient:r,textColor:a,style:s},e.innerBlocks)]]}return[i,[(0,st.createBlock)("core/group",{backgroundColor:n,gradient:r,textColor:a,style:Gk({color:o?.color,elements:o?.elements?.link?{link:o?.elements?.link}:void 0})},t)]]},qk=(e=[])=>1===e.length&&"core/group"===e[0].name,Wk=e=>{const{layout:t=null}=e;if(!t)return e;const{inherit:o=null,contentSize:n=null,...r}=t;return o||n?{...e,layout:{...r,contentSize:n,type:"constrained"}}:e},Zk=(e=[])=>{let t=null;for(const o of e){if("core/post-template"===o.name){t=o;break}o.innerBlocks.length&&(t=Zk(o.innerBlocks))}return t},Jk=(e=[],t)=>(e.forEach(((o,n)=>{"core/post-template"===o.name?e.splice(n,1,t):o.innerBlocks.length&&(o.innerBlocks=Jk(o.innerBlocks,t))})),e),Qk=(e,t)=>{const{displayLayout:o=null,...n}=e;if(!o)return[e,t];const r=Zk(t);if(!r)return[e,t];const{type:a,columns:i}=o,s="flex"===a?"grid":"default",l=(0,st.createBlock)("core/post-template",{...r.attributes,layout:{type:s,...i&&{columnCount:i}}},r.innerBlocks);return[n,Jk(t,l)]},Kk={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,t){const o=$k(e),{layout:n,...r}=o,a={...r,displayLayout:o.layout};return Qk(a,t)},save:()=>(0,it.jsx)(ct.InnerBlocks.Content,{})},Yk={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"}}},supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0},layout:!0},isEligible:({query:{categoryIds:e,tagIds:t}={}})=>e||t,migrate(e,t){const o=$k(e),[n,r]=Uk(o,t),a=Wk(n);return Qk(a,r)},save({attributes:{tagName:e="div"}}){const t=ct.useBlockProps.save(),o=ct.useInnerBlocksProps.save(t);return(0,it.jsx)(e,{...o})}},Xk={attributes:{queryId:{type:"number"},query:{type:"object",default:{perPage:null,pages:0,offset:0,postType:"post",order:"desc",orderBy:"date",author:"",search:"",exclude:[],sticky:"",inherit:!0,taxQuery:null,parents:[]}},tagName:{type:"string",default:"div"},displayLayout:{type:"object",default:{type:"list"}},namespace:{type:"string"}},supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},layout:!0},isEligible(e){const{style:t,backgroundColor:o,gradient:n,textColor:r}=e;return o||n||r||t?.color||t?.elements?.link},migrate(e,t){const[o,n]=Uk(e,t),r=Wk(o);return Qk(r,n)},save({attributes:{tagName:e="div"}}){const t=ct.useBlockProps.save(),o=ct.useInnerBlocksProps.save(t);return(0,it.jsx)(e,{...o})}},ew={attributes:{queryId:{type:"number"},query:{type:"object",default:{perPage:null,pages:0,offset:0,postType:"post",order:"desc",orderBy:"date",author:"",search:"",exclude:[],sticky:"",inherit:!0,taxQuery:null,parents:[]}},tagName:{type:"string",default:"div"},displayLayout:{type:"object",default:{type:"list"}},namespace:{type:"string"}},supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},layout:!0},save({attributes:{tagName:e="div"}}){const t=ct.useBlockProps.save(),o=ct.useInnerBlocksProps.save(t);return(0,it.jsx)(e,{...o})},isEligible:({layout:e})=>e?.inherit||e?.contentSize&&"constrained"!==e?.type,migrate(e,t){const o=Wk(e);return Qk(o,t)}};var tw=[{attributes:{queryId:{type:"number"},query:{type:"object",default:{perPage:null,pages:0,offset:0,postType:"post",order:"desc",orderBy:"date",author:"",search:"",exclude:[],sticky:"",inherit:!0,taxQuery:null,parents:[]}},tagName:{type:"string",default:"div"},displayLayout:{type:"object",default:{type:"list"}},namespace:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1,layout:!0},save({attributes:{tagName:e="div"}}){const t=ct.useBlockProps.save(),o=ct.useInnerBlocksProps.save(t);return(0,it.jsx)(e,{...o})},isEligible:({displayLayout:e})=>!!e,migrate:Qk},ew,Xk,Yk,Kk];const{name:ow}=Wv,nw={icon:qv,edit:Lk,example:{viewportWidth:650,attributes:{namespace:"core/posts-list",query:{perPage:4,pages:1,offset:0,postType:"post",order:"desc",orderBy:"date",author:"",search:"",sticky:"exclude",inherit:!1}},innerBlocks:[{name:"core/post-template",attributes:{layout:{type:"grid",columnCount:2}},innerBlocks:[{name:"core/post-title"},{name:"core/post-date",attributes:{metadata:{bindings:{datetime:{source:"core/post-data",args:{field:"date"}}}}}},{name:"core/post-excerpt"}]}]},save:function({attributes:{tagName:e="div"}}){const t=ct.useBlockProps.save(),o=ct.useInnerBlocksProps.save(t);return(0,it.jsx)(e,{...o})},variations:Ok,deprecated:tw},rw=()=>jt({name:ow,metadata:Wv,settings:nw}),aw=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/query-no-results","title":"No Results","category":"theme","description":"Contains the block elements used to render content when no query results are found.","ancestor":["core/query"],"textdomain":"default","usesContext":["queryId","query"],"supports":{"align":true,"reusable":false,"html":false,"color":{"gradients":true,"link":true},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true}}}'),iw=[["core/paragraph",{placeholder:(0,pt.__)("Add text or blocks that will display when a query returns no results.")}]];const{name:sw}=aw,lw={icon:qv,edit:function(){const e=(0,ct.useBlockProps)(),t=(0,ct.useInnerBlocksProps)(e,{template:iw});return(0,it.jsx)("div",{...t})},save:function(){return(0,it.jsx)(ct.InnerBlocks.Content,{})},example:{innerBlocks:[{name:"core/paragraph",attributes:{content:(0,pt.__)("No posts were found.")}}]}},cw=()=>jt({name:sw,metadata:aw,settings:lw}),uw=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/query-pagination","title":"Pagination","category":"theme","ancestor":["core/query"],"allowedBlocks":["core/query-pagination-previous","core/query-pagination-numbers","core/query-pagination-next"],"description":"Displays a paginated navigation to next/previous set of posts, when applicable.","textdomain":"default","attributes":{"paginationArrow":{"type":"string","default":"none"},"showLabel":{"type":"boolean","default":true}},"usesContext":["queryId","query"],"providesContext":{"paginationArrow":"paginationArrow","showLabel":"showLabel"},"supports":{"align":true,"reusable":false,"html":false,"color":{"gradients":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true,"link":true}},"layout":{"allowSwitching":false,"allowInheriting":false,"default":{"type":"flex"}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true}},"editorStyle":"wp-block-query-pagination-editor","style":"wp-block-query-pagination"}');function dw({value:e,onChange:t}){return(0,it.jsxs)(mt.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("Arrow"),value:e,onChange:t,help:(0,pt.__)("A decorative arrow appended to the next and previous page link."),isBlock:!0,children:[(0,it.jsx)(mt.__experimentalToggleGroupControlOption,{value:"none",label:(0,pt._x)("None","Arrow option for Query Pagination Next/Previous blocks")}),(0,it.jsx)(mt.__experimentalToggleGroupControlOption,{value:"arrow",label:(0,pt._x)("Arrow","Arrow option for Query Pagination Next/Previous blocks")}),(0,it.jsx)(mt.__experimentalToggleGroupControlOption,{value:"chevron",label:(0,pt._x)("Chevron","Arrow option for Query Pagination Next/Previous blocks")})]})}function pw({value:e,onChange:t}){return(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Show label text"),help:(0,pt.__)('Make label text visible, e.g. "Next Page".'),onChange:t,checked:!0===e})}const mw=[["core/query-pagination-previous"],["core/query-pagination-numbers"],["core/query-pagination-next"]];var gw=[{save:()=>(0,it.jsx)("div",{...ct.useBlockProps.save(),children:(0,it.jsx)(ct.InnerBlocks.Content,{})})}];const{name:hw}=uw,_w={icon:ii,edit:function({attributes:{paginationArrow:e,showLabel:t},setAttributes:o,clientId:n}){const r=(0,lt.useSelect)((e=>{const{getBlocks:t}=e(ct.store),o=t(n);return o?.find((e=>["core/query-pagination-next","core/query-pagination-previous"].includes(e.name)))}),[n]),{__unstableMarkNextChangeAsNotPersistent:a}=(0,lt.useDispatch)(ct.store),i=vt(),s=(0,ct.useBlockProps)(),l=(0,ct.useInnerBlocksProps)(s,{template:mw});return(0,gt.useEffect)((()=>{"none"!==e||t||(a(),o({showLabel:!0}))}),[e,o,t,a]),(0,it.jsxs)(it.Fragment,{children:[r&&(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{o({paginationArrow:"none",showLabel:!0})},dropdownMenuProps:i,children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>"none"!==e,label:(0,pt.__)("Pagination arrow"),onDeselect:()=>o({paginationArrow:"none"}),isShownByDefault:!0,children:(0,it.jsx)(dw,{value:e,onChange:e=>{o({paginationArrow:e})}})}),"none"!==e&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!t,label:(0,pt.__)("Show text"),onDeselect:()=>o({showLabel:!0}),isShownByDefault:!0,children:(0,it.jsx)(pw,{value:t,onChange:e=>{o({showLabel:e})}})})]})}),(0,it.jsx)("nav",{...l})]})},save:function(){return(0,it.jsx)(ct.InnerBlocks.Content,{})},deprecated:gw},xw=()=>jt({name:hw,metadata:uw,settings:_w}),bw=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/query-pagination-next","title":"Next Page","category":"theme","parent":["core/query-pagination"],"description":"Displays the next posts page link.","textdomain":"default","attributes":{"label":{"type":"string"}},"usesContext":["queryId","query","paginationArrow","showLabel","enhancedPagination"],"supports":{"reusable":false,"html":false,"color":{"gradients":true,"text":false,"__experimentalDefaultControls":{"background":true}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true}}}'),fw={none:"",arrow:"→",chevron:"»"};const{name:yw}=bw,vw={icon:mi,edit:function({attributes:{label:e},setAttributes:t,context:{paginationArrow:o,showLabel:n}}){const r=fw[o];return(0,it.jsxs)("a",{href:"#pagination-next-pseudo-link",onClick:e=>e.preventDefault(),...(0,ct.useBlockProps)(),children:[n&&(0,it.jsx)(ct.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":(0,pt.__)("Next page link"),placeholder:(0,pt.__)("Next Page"),value:e,onChange:e=>t({label:e})}),r&&(0,it.jsx)("span",{className:`wp-block-query-pagination-next-arrow is-arrow-${o}`,"aria-hidden":!0,children:r})]})}},kw=()=>jt({name:yw,metadata:bw,settings:vw}),ww=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/query-pagination-numbers","title":"Page Numbers","category":"theme","parent":["core/query-pagination"],"description":"Displays a list of page numbers for pagination.","textdomain":"default","attributes":{"midSize":{"type":"number","default":2}},"usesContext":["queryId","query","enhancedPagination"],"supports":{"reusable":false,"html":false,"color":{"gradients":true,"text":false,"__experimentalDefaultControls":{"background":true}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true}},"editorStyle":"wp-block-query-pagination-numbers-editor"}'),Cw=(e,t="a",o="")=>(0,it.jsx)(t,{className:`page-numbers ${o}`,children:e},e);const{name:jw}=ww,Sw={icon:fi,edit:function({attributes:e,setAttributes:t}){const{midSize:o}=e,n=(e=>{const t=[];for(let o=1;o<=e;o++)t.push(Cw(o));t.push(Cw(e+1,"span","current"));for(let o=1;o<=e;o++)t.push(Cw(e+1+o));return t.push(Cw("...","span","dots")),t.push(Cw(2*e+3)),(0,it.jsx)(it.Fragment,{children:t})})(parseInt(o,10)),r=vt();return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsx)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>t({midSize:2}),dropdownMenuProps:r,children:(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Number of links"),hasValue:()=>2!==o,onDeselect:()=>t({midSize:2}),isShownByDefault:!0,children:(0,it.jsx)(mt.RangeControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("Number of links"),help:(0,pt.__)("Specify how many links can appear before and after the current page number. Links to the first, current and last page are always visible."),value:o,onChange:e=>{t({midSize:parseInt(e,10)})},min:0,max:5,withInputField:!1})})})}),(0,it.jsx)("div",{...(0,ct.useBlockProps)(),children:n})]})},example:{}},Bw=()=>jt({name:jw,metadata:ww,settings:Sw}),Tw=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/query-pagination-previous","title":"Previous Page","category":"theme","parent":["core/query-pagination"],"description":"Displays the previous posts page link.","textdomain":"default","attributes":{"label":{"type":"string"}},"usesContext":["queryId","query","paginationArrow","showLabel","enhancedPagination"],"supports":{"reusable":false,"html":false,"color":{"gradients":true,"text":false,"__experimentalDefaultControls":{"background":true}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true}}}'),Nw={none:"",arrow:"←",chevron:"«"};const{name:Pw}=Tw,Iw={icon:ei,edit:function({attributes:{label:e},setAttributes:t,context:{paginationArrow:o,showLabel:n}}){const r=Nw[o];return(0,it.jsxs)("a",{href:"#pagination-previous-pseudo-link",onClick:e=>e.preventDefault(),...(0,ct.useBlockProps)(),children:[r&&(0,it.jsx)("span",{className:`wp-block-query-pagination-previous-arrow is-arrow-${o}`,"aria-hidden":!0,children:r}),n&&(0,it.jsx)(ct.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":(0,pt.__)("Previous page link"),placeholder:(0,pt.__)("Previous Page"),value:e,onChange:e=>t({label:e})})]})}},Dw=()=>jt({name:Pw,metadata:Tw,settings:Iw}),Mw=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"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},"levelOptions":{"type":"array"},"showPrefix":{"type":"boolean","default":true},"showSearchTerm":{"type":"boolean","default":true}},"example":{"attributes":{"type":"search"}},"usesContext":["query"],"supports":{"align":["wide","full"],"html":false,"color":{"gradients":true,"__experimentalDefaultControls":{"background":true,"text":true}},"spacing":{"margin":true,"padding":true},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontStyle":true,"__experimentalFontWeight":true,"__experimentalLetterSpacing":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true,"__experimentalDefaultControls":{"radius":true,"color":true,"width":true,"style":true}}},"style":"wp-block-query-title"}');const zw=["archive","search","post-type"];const Aw=[{isDefault:!0,name:"archive-title",title:(0,pt.__)("Archive Title"),description:(0,pt.__)("Display the archive title based on the queried object."),icon:ji,attributes:{type:"archive"},scope:["inserter"]},{isDefault:!1,name:"search-title",title:(0,pt.__)("Search Results Title"),description:(0,pt.__)("Display the search results title based on the queried object."),icon:ji,attributes:{type:"search"},scope:["inserter"]},{isDefault:!1,name:"post-type-label",title:(0,pt.__)("Post Type Label"),description:(0,pt.__)("Display the post type label based on the queried object."),icon:ji,attributes:{type:"post-type"},scope:["inserter"]}];Aw.forEach((e=>{e.isActive||(e.isActive=(e,t)=>e.type===t.type)}));var Lw=Aw;const Hw={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:Yo,isEligible:({style:e})=>e?.typography?.fontFamily};var Rw=[Hw];const{name:Vw}=Mw,Fw={icon:ji,edit:function({attributes:{type:e,level:t,levelOptions:o,textAlign:n,showPrefix:r,showSearchTerm:a},setAttributes:i,context:{query:s}}){const{archiveTypeLabel:l,archiveNameLabel:c}=function(){const e=(0,lt.useSelect)((e=>{const{getCurrentPostId:t,getCurrentPostType:o,getCurrentTemplateId:n}=e("core/editor"),r=o(),a=n()||("wp_template"===r?t():null);return a?e(_t.store).getEditedEntityRecord("postType","wp_template",a)?.slug:null}),[]),t=e?.match(/^(category|tag|taxonomy-([^-]+))$|^(((category|tag)|taxonomy-([^-]+))-(.+))$/);let o,n,r,a=!1;if(t)t[1]?o=t[2]?t[2]:t[1]:t[3]&&(o=t[6]?t[6]:t[4],n=t[7]),o="tag"===o?"post_tag":o;else{const t=e?.match(/^(author)$|^author-(.+)$/);t&&(a=!0,t[2]&&(r=t[2]))}return(0,lt.useSelect)((e=>{const{getEntityRecords:t,getTaxonomy:i,getAuthors:s}=e(_t.store);let l,c;if(o&&(l=i(o)?.labels?.singular_name),n){const e=t("taxonomy",o,{slug:n,per_page:1});e&&e[0]&&(c=e[0].name)}if(a&&(l="Author",r)){const e=s({slug:r});e&&e[0]&&(c=e[0].name)}return{archiveTypeLabel:l,archiveNameLabel:c}}),[r,a,o,n])}(),{postTypeLabel:u}=function(e){const t=(0,lt.useSelect)((e=>{const{getCurrentPostType:t}=e("core/editor");return t()}),[]);return(0,lt.useSelect)((o=>{const{getPostType:n}=o(_t.store),r=n(e||t);return{postTypeLabel:r?r.labels.singular_name:""}}),[e,t])}(s?.postType),d=vt(),p=0===t?"p":`h${t}`,m=(0,ct.useBlockProps)({className:Dt("wp-block-query-title__placeholder",{[`has-text-align-${n}`]:n})});if(!zw.includes(e))return(0,it.jsx)("div",{...m,children:(0,it.jsx)(ct.Warning,{children:(0,pt.__)("Provided type is not supported.")})});let g;if("archive"===e){let e;e=l?r?c?(0,pt.sprintf)((0,pt._x)("%1$s: %2$s","archive label"),l,c):(0,pt.sprintf)((0,pt.__)("%s: Name"),l):c||(0,pt.sprintf)((0,pt.__)("%s name"),l):r?(0,pt.__)("Archive type: Name"):(0,pt.__)("Archive title"),g=(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsx)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>i({showPrefix:!0}),dropdownMenuProps:d,children:(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!r,label:(0,pt.__)("Show archive type in title"),onDeselect:()=>i({showPrefix:!0}),isShownByDefault:!0,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Show archive type in title"),onChange:()=>i({showPrefix:!r}),checked:r})})})}),(0,it.jsx)(p,{...m,children:e})]})}if("search"===e&&(g=(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsx)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>i({showSearchTerm:!0}),dropdownMenuProps:d,children:(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!a,label:(0,pt.__)("Show search term in title"),onDeselect:()=>i({showSearchTerm:!0}),isShownByDefault:!0,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Show search term in title"),onChange:()=>i({showSearchTerm:!a}),checked:a})})})}),(0,it.jsx)(p,{...m,children:a?(0,pt.__)("Search results for: “search term”"):(0,pt.__)("Search results")})]})),"post-type"===e){let e;e=u?r?(0,pt.sprintf)((0,pt.__)('Post Type: "%s"'),u):u:r?(0,pt.__)("Post Type: Name"):(0,pt.__)("Name"),g=(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsx)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>i({showPrefix:!0}),dropdownMenuProps:d,children:(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!r,label:(0,pt.__)("Show post type label"),onDeselect:()=>i({showPrefix:!0}),isShownByDefault:!0,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Show post type label"),onChange:()=>i({showPrefix:!r}),checked:r})})})}),(0,it.jsx)(p,{...m,children:e})]})}return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsxs)(ct.BlockControls,{group:"block",children:[(0,it.jsx)(ct.HeadingLevelDropdown,{value:t,options:o,onChange:e=>i({level:e})}),(0,it.jsx)(ct.AlignmentControl,{value:n,onChange:e=>{i({textAlign:e})}})]}),g]})},variations:Lw,deprecated:Rw},Ew=()=>jt({name:Vw,metadata:Mw,settings:Fw}),Ow=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/query-total","title":"Query Total","category":"theme","ancestor":["core/query"],"description":"Display the total number of results in a query.","textdomain":"default","attributes":{"displayType":{"type":"string","default":"total-results"}},"usesContext":["queryId","query"],"supports":{"align":["wide","full"],"html":false,"spacing":{"margin":true,"padding":true},"color":{"gradients":true,"__experimentalDefaultControls":{"background":true,"text":true}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true,"__experimentalDefaultControls":{"radius":true,"color":true,"width":true,"style":true}},"interactivity":{"clientNavigation":true}},"style":"wp-block-query-total"}'),Gw=(0,it.jsx)(mt.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false",children:(0,it.jsx)(mt.Path,{d:"M4 11h4v2H4v-2zm6 0h6v2h-6v-2zm8 0h2v2h-2v-2z"})}),$w=(0,it.jsx)(mt.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false",children:(0,it.jsx)(mt.Path,{d:"M4 13h2v-2H4v2zm4 0h10v-2H8v2zm12 0h2v-2h-2v2z"})}),Uw=(0,it.jsx)(mt.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false",children:(0,it.jsx)(mt.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.5v12Zm-7-6-4.1 5h8.8v-3h-1.5v1.5h-4.2l2.9-3.5-2.9-3.5h4.2V10h1.5V7H7.4l4.1 5Z"})});const{name:qw}=Ow,Ww={icon:Uw,edit:function({attributes:e,setAttributes:t}){const{displayType:o}=e,n=(0,ct.useBlockProps)(),r=[{role:"menuitemradio",title:(0,pt.__)("Total results"),isActive:"total-results"===o,icon:Gw,onClick:()=>{t({displayType:"total-results"})}},{role:"menuitemradio",title:(0,pt.__)("Range display"),isActive:"range-display"===o,icon:$w,onClick:()=>{t({displayType:"range-display"})}}],a=(0,it.jsx)(ct.BlockControls,{children:(0,it.jsx)(mt.ToolbarGroup,{children:(0,it.jsx)(mt.ToolbarDropdownMenu,{icon:(()=>{switch(o){case"total-results":return Gw;case"range-display":return $w}})(),label:(0,pt.__)("Change display type"),controls:r})})});return(0,it.jsxs)("div",{...n,children:[a,"total-results"===o?(0,it.jsx)(it.Fragment,{children:(0,pt.__)("12 results found")}):"range-display"===o?(0,it.jsx)(it.Fragment,{children:(0,pt.__)("Displaying 1 – 10 of 12")}):null]})}},Zw=()=>jt({name:qw,metadata:Ow,settings:Ww});var Jw=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.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 Qw=e=>{const{value:t,...o}=e;return[{...o},t?(0,st.parseWithAttributeSchema)(t,{type:"array",source:"query",selector:"p",query:{content:{type:"string",source:"html"}}}).map((({content:e})=>(0,st.createBlock)("core/paragraph",{content:e}))):(0,st.createBlock)("core/paragraph")]},Kw=["left","right","center"],Yw=(e,t)=>{const{align:o,...n}=e;return[Kw.includes(o)?{...n,textAlign:o}:e,t]},Xw={attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:"",role:"content"},citation:{type:"string",source:"html",selector:"cite",default:"",role:"content"},align:{type:"string"}},supports:{anchor:!0,html:!1,__experimentalOnEnter:!0,__experimentalOnMerge:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0,fontAppearance:!0}},color:{gradients:!0,heading:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}}},isEligible:({align:e})=>Kw.includes(e),save({attributes:e}){const{align:t,citation:o}=e,n=Dt({[`has-text-align-${t}`]:t});return(0,it.jsxs)("blockquote",{...ct.useBlockProps.save({className:n}),children:[(0,it.jsx)(ct.InnerBlocks.Content,{}),!ct.RichText.isEmpty(o)&&(0,it.jsx)(ct.RichText.Content,{tagName:"cite",value:o})]})},migrate:Yw},eC={attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:"",role:"content"},citation:{type:"string",source:"html",selector:"cite",default:"",role:"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}}},save({attributes:e}){const{align:t,value:o,citation:n}=e,r=Dt({[`has-text-align-${t}`]:t});return(0,it.jsxs)("blockquote",{...ct.useBlockProps.save({className:r}),children:[(0,it.jsx)(ct.RichText.Content,{multiline:!0,value:o}),!ct.RichText.isEmpty(n)&&(0,it.jsx)(ct.RichText.Content,{tagName:"cite",value:n})]})},migrate:e=>Yw(...Qw(e))},tC={attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:""},citation:{type:"string",source:"html",selector:"cite",default:""},align:{type:"string"}},migrate:e=>Yw(...Qw(e)),save({attributes:e}){const{align:t,value:o,citation:n}=e;return(0,it.jsxs)("blockquote",{style:{textAlign:t||null},children:[(0,it.jsx)(ct.RichText.Content,{multiline:!0,value:o}),!ct.RichText.isEmpty(n)&&(0,it.jsx)(ct.RichText.Content,{tagName:"cite",value:n})]})}},oC={attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:""},citation:{type:"string",source:"html",selector:"cite",default:""},align:{type:"string"},style:{type:"number",default:1}},migrate(e){if(2===e.style){const{style:t,...o}=e;return Yw(...((e,t)=>[{...e,className:e.className?e.className+" is-style-large":"is-style-large"},t])(...Qw(o)))}return Yw(...Qw(e))},save({attributes:e}){const{align:t,value:o,citation:n,style:r}=e;return(0,it.jsxs)("blockquote",{className:2===r?"is-large":"",style:{textAlign:t||null},children:[(0,it.jsx)(ct.RichText.Content,{multiline:!0,value:o}),!ct.RichText.isEmpty(n)&&(0,it.jsx)(ct.RichText.Content,{tagName:"cite",value:n})]})}},nC={attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:""},citation:{type:"string",source:"html",selector:"footer",default:""},align:{type:"string"},style:{type:"number",default:1}},migrate(e){if(!isNaN(parseInt(e.style))){const{style:t,...o}=e;return Yw(...Qw(o))}return Yw(...Qw(e))},save({attributes:e}){const{align:t,value:o,citation:n,style:r}=e;return(0,it.jsxs)("blockquote",{className:`blocks-quote-style-${r}`,style:{textAlign:t||null},children:[(0,it.jsx)(ct.RichText.Content,{multiline:!0,value:o}),!ct.RichText.isEmpty(n)&&(0,it.jsx)(ct.RichText.Content,{tagName:"footer",value:n})]})}};var rC=[Xw,eC,tC,oC,nC],aC=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.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"})});const iC="web"===gt.Platform.OS,sC=[["core/paragraph",{}]];const lC=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"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":"","role":"content"},"citation":{"type":"rich-text","source":"rich-text","selector":"cite","role":"content"},"textAlign":{"type":"string"}},"supports":{"anchor":true,"align":["left","right","wide","full"],"html":false,"background":{"backgroundImage":true,"backgroundSize":true,"__experimentalDefaultControls":{"backgroundImage":true}},"__experimentalBorder":{"color":true,"radius":true,"style":true,"width":true,"__experimentalDefaultControls":{"color":true,"radius":true,"style":true,"width":true}},"dimensions":{"minHeight":true,"__experimentalDefaultControls":{"minHeight":false}},"__experimentalOnEnter":true,"__experimentalOnMerge":true,"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"color":{"gradients":true,"heading":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true}},"layout":{"allowEditing":false},"spacing":{"blockGap":true,"padding":true,"margin":true},"interactivity":{"clientNavigation":true},"allowedBlocks":true},"styles":[{"name":"default","label":"Default","isDefault":true},{"name":"plain","label":"Plain"}],"editorStyle":"wp-block-quote-editor","style":"wp-block-quote"}');const cC={from:[{type:"block",blocks:["core/pullquote"],transform:({value:e,align:t,citation:o,anchor:n,fontSize:r,style:a})=>(0,st.createBlock)("core/quote",{align:t,citation:o,anchor:n,fontSize:r,style:a},[(0,st.createBlock)("core/paragraph",{content:e})])},{type:"prefix",prefix:">",transform:e=>(0,st.createBlock)("core/quote",{},[(0,st.createBlock)("core/paragraph",{content:e})])},{type:"raw",schema:()=>({blockquote:{children:"*"}}),selector:"blockquote",transform:(e,t)=>(0,st.createBlock)("core/quote",{},t({HTML:e.innerHTML,mode:"BLOCKS"}))},{type:"block",isMultiBlock:!0,blocks:["*"],isMatch:({},e)=>1===e.length?["core/paragraph","core/heading","core/list","core/pullquote"].includes(e[0].name):!e.some((({name:e})=>"core/quote"===e)),__experimentalConvert:e=>(0,st.createBlock)("core/quote",{},e.map((e=>(0,st.createBlock)(e.name,e.attributes,e.innerBlocks))))}],to:[{type:"block",blocks:["core/pullquote"],isMatch:({},e)=>e.innerBlocks.every((({name:e})=>"core/paragraph"===e)),transform:({align:e,citation:t,anchor:o,fontSize:n,style:r},a)=>{const i=a.map((({attributes:e})=>`${e.content}`)).join("<br>");return(0,st.createBlock)("core/pullquote",{value:i,align:e,citation:t,anchor:o,fontSize:n,style:r})}},{type:"block",blocks:["core/paragraph"],transform:({citation:e},t)=>ct.RichText.isEmpty(e)?t:[...t,(0,st.createBlock)("core/paragraph",{content:e})]},{type:"block",blocks:["core/group"],transform:({citation:e,anchor:t},o)=>(0,st.createBlock)("core/group",{anchor:t},ct.RichText.isEmpty(e)?o:[...o,(0,st.createBlock)("core/paragraph",{content:e})])}],ungroup:({citation:e},t)=>ct.RichText.isEmpty(e)?t:[...t,(0,st.createBlock)("core/paragraph",{content:e})]};var uC=cC;const{name:dC}=lC,pC={icon:Jw,example:{attributes:{citation:(0,pt.__)("Julio Cortázar")},innerBlocks:[{name:"core/paragraph",attributes:{content:(0,pt.__)("In quoting others, we cite ourselves.")}}]},transforms:uC,edit:function({attributes:e,setAttributes:t,insertBlocksAfter:o,clientId:n,className:r,style:a,isSelected:i}){const{textAlign:s,allowedBlocks:l}=e;((e,t)=>{const o=(0,lt.useRegistry)(),{updateBlockAttributes:n,replaceInnerBlocks:r}=(0,lt.useDispatch)(ct.store);(0,gt.useEffect)((()=>{if(!e.value)return;const[a,i]=Qw(e);Jm()("Value attribute on the quote block",{since:"6.0",version:"6.5",alternative:"inner blocks"}),o.batch((()=>{n(t,a),r(t,i)}))}),[e.value])})(e,n);const c=(0,ct.useBlockProps)({className:Dt(r,{[`has-text-align-${s}`]:s}),...!iC&&{style:a}}),u=(0,ct.useInnerBlocksProps)(c,{template:sC,templateInsertUpdatesSelection:!0,__experimentalCaptureToolbars:!0,renderAppender:!1,allowedBlocks:l});return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.BlockControls,{group:"block",children:(0,it.jsx)(ct.AlignmentControl,{value:s,onChange:e=>{t({textAlign:e})}})}),(0,it.jsxs)(mt.BlockQuotation,{...u,children:[u.children,(0,it.jsx)(zo,{attributeKey:"citation",tagName:iC?"cite":"p",style:iC&&{display:"block"},isSelected:i,attributes:e,setAttributes:t,__unstableMobileNoFocusOnMount:!0,icon:aC,label:(0,pt.__)("Quote citation"),placeholder:(0,pt.__)("Add citation"),addLabel:(0,pt.__)("Add citation"),removeLabel:(0,pt.__)("Remove citation"),excludeElementClassName:!0,className:"wp-block-quote__citation",insertBlocksAfter:o,...iC?{}:{textAlign:s}})]})]})},save:function({attributes:e}){const{textAlign:t,citation:o}=e,n=Dt({[`has-text-align-${t}`]:t});return(0,it.jsxs)("blockquote",{...ct.useBlockProps.save({className:n}),children:[(0,it.jsx)(ct.InnerBlocks.Content,{}),!ct.RichText.isEmpty(o)&&(0,it.jsx)(ct.RichText.Content,{tagName:"cite",value:o})]})},deprecated:rC},mC=()=>jt({name:dC,metadata:lC,settings:pC});var gC=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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"})});const hC=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/block","title":"Pattern","category":"reusable","description":"Reuse this design across your site.","keywords":["reusable"],"textdomain":"default","attributes":{"ref":{"type":"number"},"content":{"type":"object","default":{}}},"providesContext":{"pattern/overrides":"content"},"supports":{"customClassName":false,"html":false,"inserter":false,"renaming":false,"interactivity":{"clientNavigation":true}}}'),_C=window.wp.patterns,{useLayoutClasses:xC}=jo(ct.privateApis),{hasOverridableBlocks:bC}=jo(_C.privateApis),fC=["full","wide","left","right"];function yC(){const e=(0,ct.useBlockProps)();return(0,it.jsx)("div",{...e,children:(0,it.jsx)(ct.Warning,{children:(0,pt.__)("Block cannot be rendered inside itself.")})})}const vC=()=>{};function kC({recordId:e,canOverrideBlocks:t,hasContent:o,handleEditOriginal:n,resetContent:r}){const a=(0,lt.useSelect)((t=>!!t(_t.store).canUser("update",{kind:"postType",name:"wp_block",id:e})),[e]);return(0,it.jsxs)(it.Fragment,{children:[a&&!!n&&(0,it.jsx)(ct.BlockControls,{children:(0,it.jsx)(mt.ToolbarGroup,{children:(0,it.jsx)(mt.ToolbarButton,{onClick:n,children:(0,pt.__)("Edit original")})})}),t&&(0,it.jsx)(ct.BlockControls,{children:(0,it.jsx)(mt.ToolbarGroup,{children:(0,it.jsx)(mt.ToolbarButton,{onClick:r,disabled:!o,children:(0,pt.__)("Reset")})})})]})}function wC({name:e,attributes:{ref:t,content:o},__unstableParentLayout:n,setAttributes:r}){const{record:a,hasResolved:i}=(0,_t.useEntityRecord)("postType","wp_block",t),[s]=(0,_t.useEntityBlockEditor)("postType","wp_block",{id:t}),l=i&&!a,{__unstableMarkLastChangeAsPersistent:c}=(0,lt.useDispatch)(ct.store),{onNavigateToEntityRecord:u,hasPatternOverridesSource:d}=(0,lt.useSelect)((e=>{const{getSettings:t}=e(ct.store);return{onNavigateToEntityRecord:t().onNavigateToEntityRecord,hasPatternOverridesSource:!!(0,st.getBlockBindingsSource)("core/pattern-overrides")}}),[]),p=(0,gt.useMemo)((()=>d&&bC(s)),[d,s]),{alignment:m,layout:g}=((e,t)=>{const o=(0,gt.useRef)();return(0,gt.useMemo)((()=>{if(!e?.length)return{};let n=o.current;if(void 0===n){const r="constrained"===t?.type,a=e.some((e=>fC.includes(e.attributes.align)));n=r&&a?"full":null,o.current=n}return{alignment:n,layout:n?t:void 0}}),[e,t])})(s,n),h=xC({layout:g},e),_=(0,ct.useBlockProps)({className:Dt("block-library-block__reusable-block-container",g&&h,{[`align${m}`]:m})}),x=(0,ct.useInnerBlocksProps)(_,{layout:g,value:s,onInput:vC,onChange:vC,renderAppender:s?.length?void 0:ct.InnerBlocks.ButtonBlockAppender});let b=null;return l&&(b=(0,it.jsx)(ct.Warning,{children:(0,pt.__)("Block has been deleted or is unavailable.")})),i||(b=(0,it.jsx)(mt.Placeholder,{children:(0,it.jsx)(mt.Spinner,{})})),(0,it.jsxs)(it.Fragment,{children:[i&&!l&&(0,it.jsx)(kC,{recordId:t,canOverrideBlocks:p,hasContent:!!o,handleEditOriginal:u?()=>{u({postId:t,postType:"wp_block"})}:void 0,resetContent:()=>{o&&(c(),r({content:void 0}))}}),null===b?(0,it.jsx)("div",{...x}):(0,it.jsx)("div",{..._,children:b})]})}const CC={attributes:{ref:{type:"number"},content:{type:"object"}},supports:{customClassName:!1,html:!1,inserter:!1,renaming:!1},isEligible:({content:e})=>!!e&&Object.keys(e).every((t=>{return e[t].values&&("object"==typeof(o=e[t].values)&&!Array.isArray(o)&&null!==o);var o})),migrate(e){const{content:t,...o}=e;if(t&&Object.keys(t).length){const e={...t};for(const o in t)e[o]=t[o].values;return{...o,content:e}}return e}},jC={attributes:{ref:{type:"number"},overrides:{type:"object"}},supports:{customClassName:!1,html:!1,inserter:!1,renaming:!1},isEligible:({overrides:e})=>!!e,migrate(e){const{overrides:t,...o}=e,n={};return Object.keys(t).forEach((e=>{n[e]=t[e]})),{...o,content:n}}};var SC=[CC,jC];const{name:BC}=hC,TC={deprecated:SC,edit:function(e){const{ref:t}=e.attributes;return(0,ct.useHasRecursion)(t)?(0,it.jsx)(yC,{}):(0,it.jsx)(ct.RecursionProvider,{uniqueId:t,children:(0,it.jsx)(wC,{...e})})},icon:gC,__experimentalLabel:({ref:e})=>{if(!e)return;const t=(0,lt.select)(_t.store).getEditedEntityRecord("postType","wp_block",e);return t?.title?(0,ao.decodeEntities)(t.title):void 0}},NC=()=>jt({name:BC,metadata:hC,settings:TC}),PC=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/read-more","title":"Read More","category":"theme","description":"Displays the link of a post, page, or any other content-type.","textdomain":"default","attributes":{"content":{"type":"string","role":"content"},"linkTarget":{"type":"string","default":"_self"}},"usesContext":["postId"],"supports":{"html":false,"color":{"gradients":true,"text":true},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalLetterSpacing":true,"__experimentalTextDecoration":true,"__experimentalDefaultControls":{"fontSize":true,"textDecoration":true}},"spacing":{"margin":["top","bottom"],"padding":true,"__experimentalDefaultControls":{"padding":true}},"__experimentalBorder":{"color":true,"radius":true,"width":true,"__experimentalDefaultControls":{"width":true}},"interactivity":{"clientNavigation":true}},"style":"wp-block-read-more"}');const{name:IC}=PC,DC={icon:gn,edit:function({attributes:{content:e,linkTarget:t},setAttributes:o,insertBlocksAfter:n}){const r=(0,ct.useBlockProps)(),a=vt();return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsx)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>o({linkTarget:"_self"}),dropdownMenuProps:a,children:(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>"_self"!==t,onDeselect:()=>o({linkTarget:"_self"}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Open in new tab"),onChange:e=>o({linkTarget:e?"_blank":"_self"}),checked:"_blank"===t})})})}),(0,it.jsx)(ct.RichText,{identifier:"content",tagName:"a","aria-label":(0,pt.__)("“Read more” link text"),placeholder:(0,pt.__)("Read more"),value:e,onChange:e=>o({content:e}),__unstableOnSplitAtEnd:()=>n((0,st.createBlock)((0,st.getDefaultBlockName)())),withoutInteractiveFormatting:!0,...r})]})},example:{attributes:{content:(0,pt.__)("Read more")}}},MC=()=>jt({name:IC,metadata:PC,settings:DC});var zC=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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 AC=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"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":"","role":"content"},"itemsToShow":{"type":"number","default":5},"displayExcerpt":{"type":"boolean","default":false},"displayAuthor":{"type":"boolean","default":false},"displayDate":{"type":"boolean","default":false},"excerptLength":{"type":"number","default":55},"openInNewTab":{"type":"boolean","default":false},"rel":{"type":"string"}},"supports":{"align":true,"html":false,"interactivity":{"clientNavigation":true},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true},"spacing":{"margin":true,"padding":true,"__experimentalDefaultControls":{"padding":false,"margin":false}},"color":{"background":true,"text":true,"gradients":true,"link":true}},"editorStyle":"wp-block-rss-editor","style":"wp-block-rss"}');const{name:LC}=AC,HC={icon:zC,example:{attributes:{feedURL:"https://wordpress.org"}},edit:function({attributes:e,setAttributes:t}){const[o,n]=(0,gt.useState)(!e.feedURL),{blockLayout:r,columns:a,displayAuthor:i,displayDate:s,displayExcerpt:l,excerptLength:c,feedURL:u,itemsToShow:d,openInNewTab:p,rel:m}=e,g=vt();function h(o){return()=>{const n=e[o];t({[o]:!n})}}const _=(0,ct.useBlockProps)(),x=(0,pt.__)("RSS URL");if(o)return(0,it.jsx)("div",{..._,children:(0,it.jsx)(mt.Placeholder,{icon:zC,label:x,instructions:(0,pt.__)("Display entries from any RSS or Atom feed."),children:(0,it.jsxs)("form",{onSubmit:function(e){e.preventDefault(),u&&(t({feedURL:(0,no.prependHTTP)(u)}),n(!1))},className:"wp-block-rss__placeholder-form",children:[(0,it.jsx)(mt.__experimentalInputControl,{__next40pxDefaultSize:!0,label:x,type:"url",hideLabelFromVision:!0,placeholder:(0,pt.__)("Enter URL here…"),value:u,onChange:e=>t({feedURL:e}),className:"wp-block-rss__placeholder-input"}),(0,it.jsx)(mt.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",children:(0,pt.__)("Apply")})]})})});const b=[{icon:$l,title:(0,pt.__)("Edit RSS URL"),onClick:()=>n(!0)},{icon:Bm,title:(0,pt._x)("List view","RSS block display setting"),onClick:()=>t({blockLayout:"list"}),isActive:"list"===r},{icon:qd,title:(0,pt._x)("Grid view","RSS block display setting"),onClick:()=>t({blockLayout:"grid"}),isActive:"grid"===r}],f={...e,style:{...e?.style,border:void 0,spacing:void 0}};return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.BlockControls,{children:(0,it.jsx)(mt.ToolbarGroup,{controls:b})}),(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{t({itemsToShow:5,displayAuthor:!1,displayDate:!1,displayExcerpt:!1,excerptLength:55,columns:2,openInNewTab:!1})},dropdownMenuProps:g,children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Number of items"),hasValue:()=>5!==d,onDeselect:()=>t({itemsToShow:5}),isShownByDefault:!0,children:(0,it.jsx)(mt.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,pt.__)("Number of items"),value:d,onChange:e=>t({itemsToShow:e}),min:1,max:20,required:!0})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Display author"),hasValue:()=>!!i,onDeselect:()=>t({displayAuthor:!1}),isShownByDefault:!0,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Display author"),checked:i,onChange:h("displayAuthor")})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Display date"),hasValue:()=>!!s,onDeselect:()=>t({displayDate:!1}),isShownByDefault:!0,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Display date"),checked:s,onChange:h("displayDate")})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Display excerpt"),hasValue:()=>!!l,onDeselect:()=>t({displayExcerpt:!1}),isShownByDefault:!0,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Display excerpt"),checked:l,onChange:h("displayExcerpt")})}),l&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Max number of words in excerpt"),hasValue:()=>55!==c,onDeselect:()=>t({excerptLength:55}),isShownByDefault:!0,children:(0,it.jsx)(mt.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,pt.__)("Max number of words in excerpt"),value:c,onChange:e=>t({excerptLength:e}),min:10,max:100,required:!0})}),"grid"===r&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Columns"),hasValue:()=>2!==a,onDeselect:()=>t({columns:2}),isShownByDefault:!0,children:(0,it.jsx)(mt.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,pt.__)("Columns"),value:a,onChange:e=>t({columns:e}),min:2,max:6,required:!0})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Open links in new tab"),hasValue:()=>!!p,onDeselect:()=>t({openInNewTab:!1}),isShownByDefault:!0,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Open links in new tab"),checked:p,onChange:e=>t({openInNewTab:e})})})]})}),(0,it.jsx)(ct.InspectorControls,{group:"advanced",children:(0,it.jsx)(mt.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("Link relation"),help:(0,gt.createInterpolateElement)((0,pt.__)("The <a>Link Relation</a> attribute defines the relationship between a linked resource and the current document."),{a:(0,it.jsx)(mt.ExternalLink,{href:"https://developer.mozilla.org/docs/Web/HTML/Attributes/rel"})}),value:m||"",onChange:e=>t({rel:e})})}),(0,it.jsx)("div",{..._,children:(0,it.jsx)(mt.Disabled,{children:(0,it.jsx)(dt(),{block:"core/rss",attributes:f})})})]})}},RC=()=>jt({name:LC,metadata:AC,settings:HC});var VC=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M13 5c-3.3 0-6 2.7-6 6 0 1.4.5 2.7 1.3 3.7l-3.8 3.8 1.1 1.1 3.8-3.8c1 .8 2.3 1.3 3.7 1.3 3.3 0 6-2.7 6-6S16.3 5 13 5zm0 10.5c-2.5 0-4.5-2-4.5-4.5s2-4.5 4.5-4.5 4.5 2 4.5 4.5-2 4.5-4.5 4.5z"})});const FC=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/search","title":"Search","category":"widgets","description":"Help visitors find your content.","keywords":["find"],"textdomain":"default","attributes":{"label":{"type":"string","role":"content"},"showLabel":{"type":"boolean","default":true},"placeholder":{"type":"string","default":"","role":"content"},"width":{"type":"number"},"widthUnit":{"type":"string"},"buttonText":{"type":"string","role":"content"},"buttonPosition":{"type":"string","default":"button-outside"},"buttonUseIcon":{"type":"boolean","default":false},"query":{"type":"object","default":{}},"isSearchFieldHidden":{"type":"boolean","default":false}},"supports":{"align":["left","center","right"],"color":{"gradients":true,"__experimentalSkipSerialization":true,"__experimentalDefaultControls":{"background":true,"text":true}},"interactivity":true,"typography":{"__experimentalSkipSerialization":true,"__experimentalSelector":".wp-block-search__label, .wp-block-search__input, .wp-block-search__button","fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"__experimentalBorder":{"color":true,"radius":true,"width":true,"__experimentalSkipSerialization":true,"__experimentalDefaultControls":{"color":true,"radius":true,"width":true}},"spacing":{"margin":true},"html":false},"editorStyle":"wp-block-search-editor","style":"wp-block-search"}');function EC(e){return"%"===e}const OC=[25,50,75,100];var GC=[{name:"default",isDefault:!0,attributes:{buttonText:(0,pt.__)("Search"),label:(0,pt.__)("Search")}}];const{name:$C}=FC,UC={icon:VC,example:{attributes:{buttonText:(0,pt.__)("Search"),label:(0,pt.__)("Search")},viewportWidth:400},variations:GC,edit:function({className:e,attributes:t,setAttributes:o,toggleSelection:n,isSelected:r,clientId:a}){const{label:i,showLabel:s,placeholder:l,width:c,widthUnit:u,align:d,buttonText:p,buttonPosition:m,buttonUseIcon:g,isSearchFieldHidden:h,style:_}=t,x=(0,lt.useSelect)((e=>{const{getBlockParentsByBlockName:t,wasBlockJustInserted:o}=e(ct.store);return!!t(a,"core/navigation")?.length&&o(a)}),[a]),{__unstableMarkNextChangeAsNotPersistent:b}=(0,lt.useDispatch)(ct.store);(0,gt.useEffect)((()=>{x&&(b(),o({showLabel:!1,buttonUseIcon:!0,buttonPosition:"button-inside"}))}),[b,x,o]);const f=_?.border?.radius;let y=(0,ct.__experimentalUseBorderProps)(t);"number"==typeof f&&(y={...y,style:{...y.style,borderRadius:`${f}px`}});const v=(0,ct.__experimentalUseColorProps)(t),[k,w]=(0,ct.useSettings)("typography.fluid","layout"),C=(0,ct.getTypographyClassesAndStyles)(t,{typography:{fluid:k},layout:{wideSize:w?.wideSize}}),j=`wp-block-search__width-${(0,xt.useInstanceId)(mt.__experimentalUnitControl)}`,S="button-inside"===m,B="button-outside"===m,T="no-button"===m,N="button-only"===m,P=(0,gt.useRef)(),I=(0,gt.useRef)(),D=(0,mt.__experimentalUseCustomUnits)({availableUnits:["%","px"],defaultValues:{"%":50,px:350}});(0,gt.useEffect)((()=>{N&&!r&&o({isSearchFieldHidden:!0})}),[N,r,o]),(0,gt.useEffect)((()=>{N&&r&&o({isSearchFieldHidden:!1})}),[N,r,o,c]);const M=[{label:(0,pt.__)("Button outside"),value:"button-outside"},{label:(0,pt.__)("Button inside"),value:"button-inside"},{label:(0,pt.__)("No button"),value:"no-button"},{label:(0,pt.__)("Button only"),value:"button-only"}],z=()=>{const e=Dt("wp-block-search__input",S?void 0:y.className,C.className),t={...S?{borderRadius:y.style?.borderRadius,borderTopLeftRadius:y.style?.borderTopLeftRadius,borderTopRightRadius:y.style?.borderTopRightRadius,borderBottomLeftRadius:y.style?.borderBottomLeftRadius,borderBottomRightRadius:y.style?.borderBottomRightRadius}:y.style,...C.style,textDecoration:void 0};return(0,it.jsx)("input",{type:"search",className:e,style:t,"aria-label":(0,pt.__)("Optional placeholder text"),placeholder:l?void 0:(0,pt.__)("Optional placeholder…"),value:l,onChange:e=>o({placeholder:e.target.value}),ref:P})},A=vt(),L=(0,it.jsx)(it.Fragment,{children:(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{o({width:void 0,widthUnit:void 0,showLabel:!0,buttonUseIcon:!1,buttonPosition:"button-outside",isSearchFieldHidden:!1})},dropdownMenuProps:A,children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!s,label:(0,pt.__)("Show label"),onDeselect:()=>{o({showLabel:!0})},isShownByDefault:!0,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,checked:s,label:(0,pt.__)("Show label"),onChange:e=>o({showLabel:e})})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>"button-outside"!==m,label:(0,pt.__)("Button position"),onDeselect:()=>{o({buttonPosition:"button-outside",isSearchFieldHidden:!1})},isShownByDefault:!0,children:(0,it.jsx)(mt.SelectControl,{value:m,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("Button position"),onChange:e=>{o({buttonPosition:e,isSearchFieldHidden:"button-only"===e})},options:M})}),"no-button"!==m&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!!g,label:(0,pt.__)("Use button with icon"),onDeselect:()=>{o({buttonUseIcon:!1})},isShownByDefault:!0,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,checked:g,label:(0,pt.__)("Use button with icon"),onChange:e=>o({buttonUseIcon:e})})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!!c,label:(0,pt.__)("Width"),onDeselect:()=>{o({width:void 0,widthUnit:void 0})},isShownByDefault:!0,children:(0,it.jsxs)(mt.__experimentalVStack,{children:[(0,it.jsx)(mt.__experimentalUnitControl,{__next40pxDefaultSize:!0,label:(0,pt.__)("Width"),id:j,min:EC(u)?0:220,max:EC(u)?100:void 0,step:1,onChange:e=>{const t=""===e?void 0:parseInt(e,10);o({width:t})},onUnitChange:e=>{o({width:"%"===e?50:350,widthUnit:e})},__unstableInputWidth:"80px",value:`${c}${u}`,units:D}),(0,it.jsx)(mt.__experimentalToggleGroupControl,{label:(0,pt.__)("Percentage Width"),value:OC.includes(c)&&"%"===u?c:void 0,hideLabelFromVision:!0,onChange:e=>{o({width:e,widthUnit:"%"})},isBlock:!0,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,children:OC.map((e=>(0,it.jsx)(mt.__experimentalToggleGroupControlOption,{value:e,label:(0,pt.sprintf)((0,pt.__)("%d%%"),e)},e)))})]})})]})})}),H=e=>(e=>void 0!==e&&0!==parseInt(e,10))(e)?`calc(${e} + 4px)`:void 0,R=(0,ct.useBlockProps)({className:Dt(e,S?"wp-block-search__button-inside":void 0,B?"wp-block-search__button-outside":void 0,T?"wp-block-search__no-button":void 0,N?"wp-block-search__button-only":void 0,g||T?void 0:"wp-block-search__text-button",g&&!T?"wp-block-search__icon-button":void 0,N&&h?"wp-block-search__searchfield-hidden":void 0),style:{...C.style,textDecoration:void 0}}),V=Dt("wp-block-search__label",C.className);return(0,it.jsxs)("div",{...R,children:[L,s&&(0,it.jsx)(ct.RichText,{identifier:"label",className:V,"aria-label":(0,pt.__)("Label text"),placeholder:(0,pt.__)("Add label…"),withoutInteractiveFormatting:!0,value:i,onChange:e=>o({label:e}),style:C.style}),(0,it.jsxs)(mt.ResizableBox,{size:{width:void 0===c?"auto":`${c}${u}`,height:"auto"},className:Dt("wp-block-search__inside-wrapper",S?y.className:void 0),style:(()=>{const e=S?y.style:{borderRadius:y.style?.borderRadius,borderTopLeftRadius:y.style?.borderTopLeftRadius,borderTopRightRadius:y.style?.borderTopRightRadius,borderBottomLeftRadius:y.style?.borderBottomLeftRadius,borderBottomRightRadius:y.style?.borderBottomRightRadius};if(S){if("object"==typeof f){const{borderTopLeftRadius:t,borderTopRightRadius:o,borderBottomLeftRadius:n,borderBottomRightRadius:r}=y.style;return{...e,borderTopLeftRadius:H(t),borderTopRightRadius:H(o),borderBottomLeftRadius:H(n),borderBottomRightRadius:H(r)}}const t=Number.isInteger(f)?`${f}px`:f;e.borderRadius=`calc(${t} + 4px)`}return e})(),minWidth:220,enable:N?{}:{right:"right"!==d,left:"right"===d},onResizeStart:(e,t,r)=>{o({width:parseInt(r.offsetWidth,10),widthUnit:"px"}),n(!1)},onResizeStop:(e,t,r,a)=>{o({width:parseInt(c+a.width,10)}),n(!0)},showHandle:r,children:[(S||B||N)&&(0,it.jsxs)(it.Fragment,{children:[z(),(()=>{const e=Dt("wp-block-search__button",v.className,C.className,S?void 0:y.className,g?"has-icon":void 0,(0,ct.__experimentalGetElementClassName)("button")),t={...v.style,...C.style,...S?{borderRadius:y.style?.borderRadius,borderTopLeftRadius:y.style?.borderTopLeftRadius,borderTopRightRadius:y.style?.borderTopRightRadius,borderBottomLeftRadius:y.style?.borderBottomLeftRadius,borderBottomRightRadius:y.style?.borderBottomRightRadius}:y.style},n=()=>{N&&o({isSearchFieldHidden:!h})};return(0,it.jsxs)(it.Fragment,{children:[g&&(0,it.jsx)("button",{type:"button",className:e,style:t,"aria-label":p?(0,lu.__unstableStripHTML)(p):(0,pt.__)("Search"),onClick:n,ref:I,children:(0,it.jsx)(Oh,{icon:VC})}),!g&&(0,it.jsx)(ct.RichText,{identifier:"buttonText",className:e,style:t,"aria-label":(0,pt.__)("Button text"),placeholder:(0,pt.__)("Add button text…"),withoutInteractiveFormatting:!0,value:p,onChange:e=>o({buttonText:e}),onClick:n})]})})()]}),T&&z()]})]})}},qC=()=>jt({name:$C,metadata:FC,settings:UC});var WC=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.Path,{d:"M4.5 12.5v4H3V7h1.5v3.987h15V7H21v9.5h-1.5v-4h-15Z"})});const ZC=({tagName:e,setAttributes:t})=>(0,it.jsx)(mt.SelectControl,{label:(0,pt.__)("HTML element"),value:e,onChange:e=>t({tagName:e}),options:[{label:(0,pt.__)("Default (<hr>)"),value:"hr"},{label:"<div>",value:"div"}],help:"hr"===e?(0,pt.__)("Only select <hr> if the separator conveys important information and should be announced by screen readers."):(0,pt.__)("The <div> element should only be used if the block is a design element with no semantic meaning."),__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0});const JC=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"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":{"opacity":{"type":"string","default":"alpha-channel"},"tagName":{"type":"string","enum":["hr","div"],"default":"hr"}},"supports":{"anchor":true,"align":["center","wide","full"],"color":{"enableContrastChecker":false,"__experimentalSkipSerialization":true,"gradients":true,"background":true,"text":false,"__experimentalDefaultControls":{"background":true}},"spacing":{"margin":["top","bottom"]},"interactivity":{"clientNavigation":true}},"styles":[{"name":"default","label":"Default","isDefault":true},{"name":"wide","label":"Wide Line"},{"name":"dots","label":"Dots"}],"editorStyle":"wp-block-separator-editor","style":"wp-block-separator"}');var QC={from:[{type:"enter",regExp:/^-{3,}$/,transform:()=>(0,st.createBlock)("core/separator")},{type:"raw",selector:"hr",schema:{hr:{}}}],to:[{type:"block",blocks:["core/spacer"],transform:({anchor:e})=>(0,st.createBlock)("core/spacer",{anchor:e||""})}]};const KC={attributes:{color:{type:"string"},customColor:{type:"string"}},save({attributes:e}){const{color:t,customColor:o}=e,n=(0,ct.getColorClassName)("background-color",t),r=(0,ct.getColorClassName)("color",t),a=Dt({"has-text-color has-background":t||o,[n]:n,[r]:r}),i={backgroundColor:n?void 0:o,color:r?void 0:o};return(0,it.jsx)("hr",{...ct.useBlockProps.save({className:a,style:i})})},migrate(e){const{color:t,customColor:o,...n}=e;return{...n,backgroundColor:t||void 0,opacity:"css",style:o?{color:{background:o}}:void 0,tagName:"hr"}}};var YC=[KC];const{name:XC}=JC,ej={icon:WC,example:{attributes:{customColor:"#065174",className:"is-style-wide"}},transforms:QC,edit:function({attributes:e,setAttributes:t}){const{backgroundColor:o,opacity:n,style:r,tagName:a}=e,i=(0,ct.__experimentalUseColorProps)(e),s=i?.style?.backgroundColor,l=!!r?.color?.background;!function(e,t,o){const[n,r]=(0,gt.useState)(!1),a=(0,xt.usePrevious)(t);(0,gt.useEffect)((()=>{"css"!==e||t||a||r(!0)}),[t,a,e]),(0,gt.useEffect)((()=>{"css"===e&&(n&&t||a&&t!==a)&&(o({opacity:"alpha-channel"}),r(!1))}),[n,t,a])}(n,s,t);const c=(0,ct.getColorClassName)("color",o),u=Dt({"has-text-color":o||s,[c]:c,"has-css-opacity":"css"===n,"has-alpha-channel-opacity":"alpha-channel"===n},i.className),d={color:s,backgroundColor:s},p="hr"===a?mt.HorizontalRule:a;return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.InspectorControls,{group:"advanced",children:(0,it.jsx)(ZC,{tagName:a,setAttributes:t})}),(0,it.jsx)(p,{...(0,ct.useBlockProps)({className:u,style:l?d:void 0})})]})},save:function({attributes:e}){const{backgroundColor:t,style:o,opacity:n,tagName:r}=e,a=o?.color?.background,i=(0,ct.__experimentalGetColorClassesAndStyles)(e),s=(0,ct.getColorClassName)("color",t),l=Dt({"has-text-color":t||a,[s]:s,"has-css-opacity":"css"===n,"has-alpha-channel-opacity":"alpha-channel"===n},i.className),c={backgroundColor:i?.style?.backgroundColor,color:s?void 0:a};return(0,it.jsx)(r,{...ct.useBlockProps.save({className:l,style:c})})},deprecated:YC},tj=()=>jt({name:XC,metadata:JC,settings:ej});var oj=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.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"})});const nj=window.wp.autop;var rj={from:[{type:"shortcode",tag:"[a-z][a-z0-9_-]*",attributes:{text:{type:"string",shortcode:(e,{content:t})=>(0,nj.removep)((0,nj.autop)(t))}},priority:20}]};const aj=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/shortcode","title":"Shortcode","category":"widgets","description":"Insert additional custom elements with a WordPress shortcode.","textdomain":"default","attributes":{"text":{"type":"string","source":"raw","role":"content"}},"supports":{"className":false,"customClassName":false,"html":false},"editorStyle":"wp-block-shortcode-editor"}'),{name:ij}=aj,sj={icon:oj,transforms:rj,edit:function e({attributes:t,setAttributes:o}){const n=`blocks-shortcode-input-${(0,xt.useInstanceId)(e)}`;return(0,it.jsx)("div",{...(0,ct.useBlockProps)(),children:(0,it.jsx)(mt.Placeholder,{icon:oj,label:(0,pt.__)("Shortcode"),children:(0,it.jsx)(ct.PlainText,{className:"blocks-shortcode__textarea",id:n,value:t.text,"aria-label":(0,pt.__)("Shortcode text"),placeholder:(0,pt.__)("Write shortcode here…"),onChange:e=>o({text:e})})})})},save:function({attributes:e}){return(0,it.jsx)(gt.RawHTML,{children:e.text})}},lj=()=>jt({name:ij,metadata:aj,settings:sj});var cj=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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 1.5c3.4 0 6.2 2.7 6.5 6l-1.2-.6-.8-.4c-.1 0-.2 0-.3-.1H16c-.1-.2-.4-.2-.7 0l-2.9 2.1L9 11.3h-.7L5.5 13v-1.1c0-3.6 2.9-6.5 6.5-6.5Zm0 13c-2.7 0-5-1.7-6-4l2.8-1.7 3.5 1.2h.4s.2 0 .4-.2l2.9-2.1.4.2c.6.3 1.4.7 2.1 1.1-.5 3.1-3.2 5.4-6.4 5.4Z"})});const uj=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/site-logo","title":"Site Logo","category":"theme","description":"Display an image to represent this site. Update this block and the changes apply everywhere.","textdomain":"default","attributes":{"width":{"type":"number"},"isLink":{"type":"boolean","default":true,"role":"content"},"linkTarget":{"type":"string","default":"_self","role":"content"},"shouldSyncIcon":{"type":"boolean"}},"example":{"viewportWidth":500,"attributes":{"width":350,"className":"block-editor-block-types-list__site-logo-example"}},"supports":{"html":false,"align":true,"alignWide":false,"color":{"text":false,"background":false},"spacing":{"margin":true,"padding":true,"__experimentalDefaultControls":{"margin":false,"padding":false}},"interactivity":{"clientNavigation":true},"filter":{"duotone":true}},"styles":[{"name":"default","label":"Default","isDefault":true},{"name":"rounded","label":"Rounded"}],"selectors":{"filter":{"duotone":".wp-block-site-logo img, .wp-block-site-logo .components-placeholder__illustration, .wp-block-site-logo .components-placeholder::before"}},"editorStyle":"wp-block-site-logo-editor","style":"wp-block-site-logo"}'),dj=["image"],pj="image/*",mj=({alt:e,attributes:{align:t,width:o,height:n,isLink:r,linkTarget:a,shouldSyncIcon:i},isSelected:s,setAttributes:l,setLogo:c,logoUrl:u,siteUrl:d,logoId:p,iconId:m,setIcon:g,canUserEdit:h})=>{const _=(0,xt.useViewportMatch)("medium"),x=!["wide","full"].includes(t)&&_,[{naturalWidth:b,naturalHeight:f},y]=(0,gt.useState)({}),[v,k]=(0,gt.useState)(!1),{toggleSelection:w}=(0,lt.useDispatch)(ct.store),C=vt(),j="contentOnly"===(0,ct.useBlockEditingMode)(),{imageEditing:S,maxWidth:B,title:T}=(0,lt.useSelect)((e=>{const t=e(ct.store).getSettings(),o=e(_t.store).getEntityRecord("root","__unstableBase");return{title:o?.name,imageEditing:t.imageEditing,maxWidth:t.maxWidth}}),[]);(0,gt.useEffect)((()=>{i&&p!==m&&l({shouldSyncIcon:!1})}),[]),(0,gt.useEffect)((()=>{s||k(!1)}),[s]);const N=(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)("img",{className:"custom-logo",src:u,alt:e,onLoad:e=>{y({naturalWidth:e.target.naturalWidth,naturalHeight:e.target.naturalHeight})}}),(0,ht.isBlobURL)(u)&&(0,it.jsx)(mt.Spinner,{})]});let P=N;if(r&&(P=(0,it.jsx)("a",{href:d,className:"custom-logo-link",rel:"home",title:T,onClick:e=>e.preventDefault(),children:N})),!x||!b||!f)return(0,it.jsx)("div",{style:{width:o,height:n},children:P});const I=o||120,D=b/f,M=I/D,z=b<f?ad:Math.ceil(ad*D),A=f<b?ad:Math.ceil(ad/D),L=2.5*B;let H=!1,R=!1;"center"===t?(H=!0,R=!0):(0,pt.isRTL)()?"left"===t?H=!0:R=!0:"right"===t?R=!0:H=!0;const V=p&&b&&f&&S,F=!j;let E;E=V&&v?(0,it.jsx)(ct.__experimentalImageEditor,{id:p,url:u,width:I,height:M,naturalHeight:f,naturalWidth:b,onSaveImage:e=>{c(e.id)},onFinishEditing:()=>{k(!1)}}):(0,it.jsx)(mt.ResizableBox,{size:{width:I,height:M},showHandle:s&&F,minWidth:z,maxWidth:L,minHeight:A,maxHeight:L/D,lockAspectRatio:!0,enable:{top:!1,right:H,bottom:!0,left:R},onResizeStart:function(){w(!1)},onResizeStop:(e,t,o,n)=>{w(!0),l({width:parseInt(I+n.width,10),height:parseInt(M+n.height,10)})},children:P});const O=!window?.__experimentalUseCustomizerSiteLogoUrl?d+"/wp-admin/options-general.php":d+"/wp-admin/customize.php?autofocus[section]=title_tagline",G=(0,gt.createInterpolateElement)((0,pt.__)("Site Icons are what you see in browser tabs, bookmark bars, and within the WordPress mobile apps. To use a custom icon that is different from your site logo, use the <a>Site Icon settings</a>."),{a:(0,it.jsx)("a",{href:O,target:"_blank",rel:"noopener noreferrer"})});return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),dropdownMenuProps:C,children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{isShownByDefault:!0,hasValue:()=>!!o,label:(0,pt.__)("Image width"),onDeselect:()=>l({width:void 0}),children:(0,it.jsx)(mt.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,pt.__)("Image width"),onChange:e=>l({width:e}),min:z,max:L,initialPosition:Math.min(120,L),value:o||"",disabled:!x})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{isShownByDefault:!0,hasValue:()=>!r,label:(0,pt.__)("Link image to home"),onDeselect:()=>l({isLink:!0}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Link image to home"),onChange:()=>l({isLink:!r}),checked:r})}),r&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{isShownByDefault:!0,hasValue:()=>"_blank"===a,label:(0,pt.__)("Open in new tab"),onDeselect:()=>l({linkTarget:"_self"}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Open in new tab"),onChange:e=>l({linkTarget:e?"_blank":"_self"}),checked:"_blank"===a})}),h&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{isShownByDefault:!0,hasValue:()=>!!i,label:(0,pt.__)("Use as Site Icon"),onDeselect:()=>{l({shouldSyncIcon:!1}),g(void 0)},children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Use as Site Icon"),onChange:e=>{l({shouldSyncIcon:e}),g(e?p:void 0)},checked:!!i,help:G})})]})}),V&&!v&&F&&(0,it.jsx)(ct.BlockControls,{group:"block",children:(0,it.jsx)(mt.ToolbarButton,{onClick:()=>k(!0),icon:Wp,label:(0,pt.__)("Crop")})}),E]})};function gj({mediaURL:e,...t}){return(0,it.jsx)(ct.MediaReplaceFlow,{...t,mediaURL:e,allowedTypes:dj,accept:pj})}const hj=({media:e,itemGroupProps:t})=>{const{alt_text:o,source_url:n,slug:r,media_details:a}=e??{},i=a?.sizes?.full?.file||r;return(0,it.jsx)(mt.__experimentalItemGroup,{...t,as:"span",children:(0,it.jsxs)(mt.__experimentalHStack,{justify:"flex-start",as:"span",children:[(0,it.jsx)("img",{src:n,alt:o}),(0,it.jsx)(mt.FlexItem,{as:"span",children:(0,it.jsx)(mt.__experimentalTruncate,{numberOfLines:1,className:"block-library-site-logo__inspector-media-replace-title",children:i})})]})})};var _j={to:[{type:"block",blocks:["core/site-title"],transform:({isLink:e,linkTarget:t})=>(0,st.createBlock)("core/site-title",{isLink:e,linkTarget:t})}]};const{name:xj}=uj,bj={icon:cj,example:{},edit:function({attributes:e,className:t,setAttributes:o,isSelected:n}){const{width:r,shouldSyncIcon:a}=e,{siteLogoId:i,canUserEdit:s,url:l,siteIconId:c,mediaItemData:u,isRequestingMediaItem:d}=(0,lt.useSelect)((e=>{const{canUser:t,getEntityRecord:o,getEditedEntityRecord:n}=e(_t.store),r=t("update",{kind:"root",name:"site"}),a=r?n("root","site"):void 0,i=o("root","__unstableBase"),s=r?a?.site_logo:i?.site_logo,l=a?.site_icon,c=s&&e(_t.store).getEntityRecord("postType","attachment",s,{context:"view"}),u=!!s&&!e(_t.store).hasFinishedResolution("getEntityRecord",["postType","attachment",s,{context:"view"}]);return{siteLogoId:s,canUserEdit:r,url:i?.home,mediaItemData:c,isRequestingMediaItem:u,siteIconId:l}}),[]),{getSettings:p}=(0,lt.useSelect)(ct.store),[m,g]=(0,gt.useState)(),h=vt(),{editEntityRecord:_}=(0,lt.useDispatch)(_t.store),x=(e,t=!1)=>{(a||t)&&b(e),_("root","site",void 0,{site_logo:e})},b=e=>_("root","site",void 0,{site_icon:e??null}),{alt_text:f,source_url:y}=u??{},v=e=>{if(void 0===a){const t=!c;return o({shouldSyncIcon:t}),void k(e,t)}k(e)},k=(e,t=!1)=>{if(e)return!e.id&&e.url?(g(e.url),void x(void 0)):void x(e.id,t)},{createErrorNotice:w}=(0,lt.useDispatch)(bo.store),C=e=>{w(e,{type:"snackbar"}),g()},j=e=>{p().mediaUpload({allowedTypes:dj,filesList:e,onFileChange([e]){(0,ht.isBlobURL)(e?.url)?g(e.url):v(e)},onError:C,multiple:!1})},S={mediaURL:y,name:y?(0,pt.__)("Replace"):(0,pt.__)("Choose logo"),onSelect:k,onError:C,onReset:()=>{x(null),o({width:void 0})}},B=s&&(0,it.jsx)(ct.BlockControls,{group:"other",children:(0,it.jsx)(gj,{...S})});let T;const N=void 0===i||d;N&&(T=(0,it.jsx)(mt.Spinner,{})),(0,gt.useEffect)((()=>{y&&m&&g()}),[y,m]),(y||m)&&(T=(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(mj,{alt:f,attributes:e,className:t,isSelected:n,setAttributes:o,logoUrl:m||y,setLogo:x,logoId:u?.id||i,siteUrl:l,setIcon:b,iconId:c,canUserEdit:s}),s&&(0,it.jsx)(mt.DropZone,{onFilesDrop:j})]}));const P=Dt(t,{"is-default-size":!r,"is-transient":m}),I=(0,ct.useBlockProps)({className:P}),D=(s||y)&&(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsx)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Media"),dropdownMenuProps:h,children:s?(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!!y,label:(0,pt.__)("Logo"),isShownByDefault:!0,children:(0,it.jsxs)("div",{className:"block-library-site-logo__inspector-media-replace-container",children:[(0,it.jsx)(gj,{...S,name:y?(0,it.jsx)(hj,{media:u}):(0,pt.__)("Choose logo"),renderToggle:e=>(0,it.jsx)(mt.Button,{...e,__next40pxDefaultSize:!0,children:m?(0,it.jsx)(mt.Spinner,{}):e.children})}),(0,it.jsx)(mt.DropZone,{onFilesDrop:j})]})}):(0,it.jsx)("div",{className:"block-library-site-logo__inspector-media-replace-container",style:{gridColumn:"1 / -1"},children:(0,it.jsx)(hj,{media:u,itemGroupProps:{isBordered:!0,className:"block-library-site-logo__inspector-readonly-logo-preview"}})})})});return(0,it.jsxs)("div",{...I,children:[B,D,(!!y||!!m)&&T,(N||!m&&!y&&!s)&&(0,it.jsx)(mt.Placeholder,{className:"site-logo_placeholder",withIllustration:!0,children:N&&(0,it.jsx)("span",{className:"components-placeholder__preview",children:(0,it.jsx)(mt.Spinner,{})})}),!N&&!m&&!y&&s&&(0,it.jsx)(ct.MediaPlaceholder,{onSelect:v,accept:pj,allowedTypes:dj,onError:C,placeholder:e=>{const o=Dt("block-editor-media-placeholder",t);return(0,it.jsx)(mt.Placeholder,{className:o,preview:T,withIllustration:!0,style:{width:r},children:e})},mediaLibraryButton:({open:e})=>(0,it.jsx)(mt.Button,{__next40pxDefaultSize:!0,icon:Jp,variant:"primary",label:(0,pt.__)("Choose logo"),showTooltip:!0,tooltipPosition:"middle right",onClick:()=>{e()}})})]})},transforms:_j},fj=()=>jt({name:xj,metadata:uj,settings:bj}),yj=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/site-tagline","title":"Site Tagline","category":"theme","description":"Describe in a few words what this site is about. This is important for search results, sharing on social media, and gives overall clarity to visitors.","keywords":["description"],"textdomain":"default","attributes":{"textAlign":{"type":"string"},"level":{"type":"number","default":0},"levelOptions":{"type":"array","default":[0,1,2,3,4,5,6]}},"example":{"viewportWidth":350,"attributes":{"textAlign":"center"}},"supports":{"align":["wide","full"],"html":false,"color":{"gradients":true,"__experimentalDefaultControls":{"background":true,"text":true}},"contentRole":true,"spacing":{"margin":true,"padding":true,"__experimentalDefaultControls":{"margin":false,"padding":false}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalFontStyle":true,"__experimentalFontWeight":true,"__experimentalLetterSpacing":true,"__experimentalWritingMode":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true}},"editorStyle":"wp-block-site-tagline-editor","style":"wp-block-site-tagline"}');var vj=(0,it.jsx)(mt.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",children:(0,it.jsx)(mt.Path,{d:"M4 10.5h16V9H4v1.5ZM4 15h9v-1.5H4V15Z"})});const kj={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:Yo,isEligible:({style:e})=>e?.typography?.fontFamily};var wj=[kj];const{name:Cj}=yj,jj={icon:vj,edit:function({attributes:e,setAttributes:t,insertBlocksAfter:o}){const{textAlign:n,level:r,levelOptions:a}=e,{canUserEdit:i,tagline:s}=(0,lt.useSelect)((e=>{const{canUser:t,getEntityRecord:o,getEditedEntityRecord:n}=e(_t.store),r=t("update",{kind:"root",name:"site"}),a=r?n("root","site"):{},i=o("root","__unstableBase");return{canUserEdit:r,tagline:r?a?.description:i?.description}}),[]),l=0===r?"p":`h${r}`,{editEntityRecord:c}=(0,lt.useDispatch)(_t.store),u=(0,ct.useBlockProps)({className:Dt({[`has-text-align-${n}`]:n,"wp-block-site-tagline__placeholder":!i&&!s})}),d=i?(0,it.jsx)(ct.RichText,{allowedFormats:[],onChange:function(e){c("root","site",void 0,{description:e})},"aria-label":(0,pt.__)("Site tagline text"),placeholder:(0,pt.__)("Write site tagline…"),tagName:l,value:s,disableLineBreaks:!0,__unstableOnSplitAtEnd:()=>o((0,st.createBlock)((0,st.getDefaultBlockName)())),...u}):(0,it.jsx)(l,{...u,children:s||(0,pt.__)("Site Tagline placeholder")});return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsxs)(ct.BlockControls,{group:"block",children:[(0,it.jsx)(ct.HeadingLevelDropdown,{value:r,options:a,onChange:e=>t({level:e})}),(0,it.jsx)(ct.AlignmentControl,{onChange:e=>t({textAlign:e}),value:n})]}),d]})},deprecated:wj},Sj=()=>jt({name:Cj,metadata:yj,settings:jj});var Bj=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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"})});const Tj=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"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},"levelOptions":{"type":"array","default":[0,1,2,3,4,5,6]},"textAlign":{"type":"string"},"isLink":{"type":"boolean","default":true,"role":"content"},"linkTarget":{"type":"string","default":"_self","role":"content"}},"example":{"viewportWidth":500},"supports":{"align":["wide","full"],"html":false,"color":{"gradients":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true,"link":true}},"spacing":{"padding":true,"margin":true,"__experimentalDefaultControls":{"margin":false,"padding":false}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalFontStyle":true,"__experimentalFontWeight":true,"__experimentalLetterSpacing":true,"__experimentalWritingMode":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true}},"editorStyle":"wp-block-site-title-editor","style":"wp-block-site-title"}');const Nj={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:Yo,isEligible:({style:e})=>e?.typography?.fontFamily};var Pj=[Nj];var Ij={to:[{type:"block",blocks:["core/site-logo"],transform:({isLink:e,linkTarget:t})=>(0,st.createBlock)("core/site-logo",{isLink:e,linkTarget:t})}]};const{name:Dj}=Tj,Mj={icon:Bj,example:{viewportWidth:350,attributes:{textAlign:"center"}},edit:function({attributes:e,setAttributes:t,insertBlocksAfter:o}){const{level:n,levelOptions:r,textAlign:a,isLink:i,linkTarget:s}=e,{canUserEdit:l,title:c}=(0,lt.useSelect)((e=>{const{canUser:t,getEntityRecord:o,getEditedEntityRecord:n}=e(_t.store),r=t("update",{kind:"root",name:"site"}),a=r?n("root","site"):{},i=o("root","__unstableBase");return{canUserEdit:r,title:r?a?.title:i?.name}}),[]),{editEntityRecord:u}=(0,lt.useDispatch)(_t.store),d=vt(),p=(0,ct.useBlockEditingMode)(),m=0===n?"p":`h${n}`,g=(0,ct.useBlockProps)({className:Dt({[`has-text-align-${a}`]:a,"wp-block-site-title__placeholder":!l&&!c})}),h=l?(0,it.jsx)(m,{...g,children:(0,it.jsx)(ct.RichText,{tagName:i?"a":"span",href:i?"#site-title-pseudo-link":void 0,"aria-label":(0,pt.__)("Site title text"),placeholder:(0,pt.__)("Write site title…"),value:c,onChange:function(e){u("root","site",void 0,{title:e.trim()})},allowedFormats:[],disableLineBreaks:!0,__unstableOnSplitAtEnd:()=>o((0,st.createBlock)((0,st.getDefaultBlockName)()))})}):(0,it.jsx)(m,{...g,children:i?(0,it.jsx)("a",{href:"#site-title-pseudo-link",onClick:e=>e.preventDefault(),children:(0,ao.decodeEntities)(c)||(0,pt.__)("Site Title placeholder")}):(0,it.jsx)("span",{children:(0,ao.decodeEntities)(c)||(0,pt.__)("Site Title placeholder")})});return(0,it.jsxs)(it.Fragment,{children:["default"===p&&(0,it.jsxs)(ct.BlockControls,{group:"block",children:[(0,it.jsx)(ct.HeadingLevelDropdown,{value:n,options:r,onChange:e=>t({level:e})}),(0,it.jsx)(ct.AlignmentControl,{value:a,onChange:e=>{t({textAlign:e})}})]}),(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{t({isLink:!0,linkTarget:"_self"})},dropdownMenuProps:d,children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!i,label:(0,pt.__)("Make title link to home"),onDeselect:()=>t({isLink:!0}),isShownByDefault:!0,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Make title link to home"),onChange:()=>t({isLink:!i}),checked:i})}),i&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>"_self"!==s,label:(0,pt.__)("Open in new tab"),onDeselect:()=>t({linkTarget:"_self"}),isShownByDefault:!0,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Open in new tab"),onChange:e=>t({linkTarget:e?"_blank":"_self"}),checked:"_blank"===s})})]})}),h]})},transforms:Ij,deprecated:Pj},zj=()=>jt({name:Dj,metadata:Tj,settings:Mj});var Aj=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.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"})}),Lj=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"m6.734 16.106 2.176-2.38-1.093-1.028-3.846 4.158 3.846 4.158 1.093-1.028-2.176-2.38h2.811c1.125 0 2.25.03 3.374 0 1.428-.001 3.362-.25 4.963-1.277 1.66-1.065 2.868-2.906 2.868-5.859 0-2.479-1.327-4.896-3.65-5.93-1.82-.813-3.044-.8-4.806-.788l-.567.002v1.5c.184 0 .368 0 .553-.002 1.82-.007 2.704-.014 4.21.657 1.854.827 2.76 2.657 2.76 4.561 0 2.472-.973 3.824-2.178 4.596-1.258.807-2.864 1.04-4.163 1.04h-.02c-1.115.03-2.229 0-3.344 0H6.734Z"})});const Hj=()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.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"})});const Rj=({url:e,setAttributes:t,setPopover:o,popoverAnchor:n,clientId:r})=>{const{removeBlock:a}=(0,lt.useDispatch)(ct.store);return(0,it.jsx)(ct.URLPopover,{anchor:n,"aria-label":(0,pt.__)("Edit social link"),onClose:()=>{o(!1),n?.focus()},children:(0,it.jsx)("form",{className:"block-editor-url-popover__link-editor",onSubmit:e=>{e.preventDefault(),o(!1),n?.focus()},children:(0,it.jsx)("div",{className:"block-editor-url-input",children:(0,it.jsx)(ct.URLInput,{value:e,onChange:e=>t({url:e}),placeholder:(0,pt.__)("Enter social link"),label:(0,pt.__)("Enter social link"),hideLabelFromVision:!0,disableSuggestions:!0,onKeyDown:t=>{e||t.defaultPrevented||![mn.BACKSPACE,mn.DELETE].includes(t.keyCode)||a(r)},suffix:(0,it.jsx)(mt.__experimentalInputControlSuffixWrapper,{variant:"control",children:(0,it.jsx)(mt.Button,{icon:Lj,label:(0,pt.__)("Apply"),type:"submit",size:"small"})})})})})})};var Vj=({attributes:e,context:t,isSelected:o,setAttributes:n,clientId:r,name:a})=>{const{url:i,service:s,label:l="",rel:c}=e,u=vt(),{showLabels:d,iconColor:p,iconColorValue:m,iconBackgroundColor:g,iconBackgroundColorValue:h}=t,[_,x]=(0,gt.useState)(!1),b=Dt("wp-social-link","wp-block-social-link","wp-social-link-"+s,{"wp-social-link__is-incomplete":!i,[`has-${p}-color`]:p,[`has-${g}-background-color`]:g}),[f,y]=(0,gt.useState)(null),v="contentOnly"===(0,ct.useBlockEditingMode)(),{activeVariation:k}=(0,lt.useSelect)((t=>{const{getActiveBlockVariation:o}=t(st.store);return{activeVariation:o(a,e)}}),[a,e]),{icon:w,label:C}=(j=k,j?.name?{icon:j?.icon??Hj,label:j?.title??(0,pt.__)("Social Icon")}:{icon:Hj,label:(0,pt.__)("Social Icon")});var j;const S=""===l.trim()?C:l,B=(0,gt.useRef)(),T=(0,ct.useBlockProps)({className:"wp-block-social-link-anchor",ref:(0,xt.useMergeRefs)([y,B]),onClick:()=>x(!0),onKeyDown:e=>{e.keyCode===mn.ENTER&&(e.preventDefault(),x(!0))}});return(0,it.jsxs)(it.Fragment,{children:[v&&d&&(0,it.jsx)(ct.BlockControls,{group:"other",children:(0,it.jsx)(mt.Dropdown,{popoverProps:{placement:"bottom-start"},renderToggle:({isOpen:e,onToggle:t})=>(0,it.jsx)(mt.ToolbarButton,{onClick:t,"aria-haspopup":"true","aria-expanded":e,children:(0,pt.__)("Text")}),renderContent:()=>(0,it.jsx)(mt.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,className:"wp-block-social-link__toolbar_content_text",label:(0,pt.__)("Text"),help:(0,pt.__)("Provide a text label or use the default."),value:l,onChange:e=>n({label:e}),placeholder:C})})}),(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsx)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{n({label:void 0})},dropdownMenuProps:u,children:(0,it.jsx)(mt.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,pt.__)("Text"),hasValue:()=>!!l,onDeselect:()=>{n({label:void 0})},children:(0,it.jsx)(mt.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("Text"),help:(0,pt.__)("The text is visible when enabled from the parent Social Icons block."),value:l,onChange:e=>n({label:e}),placeholder:C})})})}),(0,it.jsx)(ct.InspectorControls,{group:"advanced",children:(0,it.jsx)(mt.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("Link relation"),help:(0,gt.createInterpolateElement)((0,pt.__)("The <a>Link Relation</a> attribute defines the relationship between a linked resource and the current document."),{a:(0,it.jsx)(mt.ExternalLink,{href:"https://developer.mozilla.org/docs/Web/HTML/Attributes/rel"})}),value:c||"",onChange:e=>n({rel:e})})}),(0,it.jsxs)("li",{role:"presentation",className:b,style:{color:m,backgroundColor:h},children:[(0,it.jsxs)("button",{"aria-haspopup":"dialog",...T,role:"button",children:[(0,it.jsx)(mt.Icon,{icon:w}),(0,it.jsx)("span",{className:Dt("wp-block-social-link-label",{"screen-reader-text":!d}),children:S})]}),o&&_&&(0,it.jsx)(Rj,{url:i,setAttributes:n,setPopover:x,popoverAnchor:f,clientId:r})]})]})};const Fj=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/social-link","title":"Social Icon","category":"widgets","parent":["core/social-links"],"description":"Display an icon linking to a social profile or site.","textdomain":"default","attributes":{"url":{"type":"string","role":"content"},"service":{"type":"string"},"label":{"type":"string","role":"content"},"rel":{"type":"string"}},"usesContext":["openInNewTab","showLabels","iconColor","iconColorValue","iconBackgroundColor","iconBackgroundColorValue"],"supports":{"reusable":false,"html":false,"interactivity":{"clientNavigation":true}},"editorStyle":"wp-block-social-link-editor"}'),Ej=[{isDefault:!0,name:"wordpress",attributes:{service:"wordpress"},title:(0,pt._x)("WordPress","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.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:(0,pt._x)("500px","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.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:(0,pt._x)("Amazon","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.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:(0,pt._x)("Bandcamp","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.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:(0,pt._x)("Behance","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.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:"bluesky",attributes:{service:"bluesky"},title:(0,pt._x)("Bluesky","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.Path,{d:"M6.3,4.2c2.3,1.7,4.8,5.3,5.7,7.2.9-1.9,3.4-5.4,5.7-7.2,1.7-1.3,4.3-2.2,4.3.9s-.4,5.2-.6,5.9c-.7,2.6-3.3,3.2-5.6,2.8,4,.7,5.1,3,2.9,5.3-5,5.2-6.7-2.8-6.7-2.8,0,0-1.7,8-6.7,2.8-2.2-2.3-1.2-4.6,2.9-5.3-2.3.4-4.9-.3-5.6-2.8-.2-.7-.6-5.3-.6-5.9,0-3.1,2.7-2.1,4.3-.9h0Z"})})},{name:"chain",attributes:{service:"chain"},title:(0,pt._x)("Link","social link block variation name"),icon:Hj},{name:"codepen",attributes:{service:"codepen"},title:(0,pt._x)("CodePen","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.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:(0,pt._x)("DeviantArt","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.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:"discord",attributes:{service:"discord"},title:(0,pt._x)("Discord","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.Path,{d:"M20.317 4.369A19.88 19.88 0 0 0 15.894 3a14.145 14.145 0 0 0-.719 1.518 19.205 19.205 0 0 0-5.351 0A14.183 14.183 0 0 0 9.104 3 19.896 19.896 0 0 0 4.682 4.369a18.921 18.921 0 0 0-3.012 12.52 19.929 19.929 0 0 0 6.081 3.097c.487-.65.922-1.339 1.3-2.061a12.445 12.445 0 0 1-1.958-.896c.165-.12.326-.246.483-.374a12.445 12.445 0 0 0 8.946 0c.157.128.318.253.483.374-.627.371-1.281.683-1.958.896.379.722.813 1.41 1.3 2.061a19.94 19.94 0 0 0 6.081-3.097 18.921 18.921 0 0 0-3.012-12.52ZM8.12 15.233c-1.202 0-2.184-1.09-2.184-2.431 0-1.34.97-2.431 2.184-2.431 1.213 0 2.202 1.09 2.184 2.431 0 1.341-.97 2.431-2.184 2.431Zm7.757 0c-1.202 0-2.184-1.09-2.184-2.431 0-1.34.97-2.431 2.184-2.431 1.213 0 2.202 1.09 2.184 2.431 0 1.341-.97 2.431-2.184 2.431Z"})})},{name:"dribbble",attributes:{service:"dribbble"},title:(0,pt._x)("Dribbble","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.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:(0,pt._x)("Dropbox","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.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:(0,pt._x)("Etsy","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.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:(0,pt._x)("Facebook","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.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:(0,pt._x)("RSS Feed","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.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:(0,pt._x)("Flickr","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.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:(0,pt._x)("Foursquare","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.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:(0,pt._x)("Goodreads","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.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:(0,pt._x)("Google","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.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:(0,pt._x)("GitHub","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.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:"gravatar",attributes:{service:"gravatar"},title:(0,pt._x)("Gravatar","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.Path,{d:"M10.8001 4.69937V10.6494C10.8001 11.1001 10.9791 11.5323 11.2978 11.851C11.6165 12.1697 12.0487 12.3487 12.4994 12.3487C12.9501 12.3487 13.3824 12.1697 13.7011 11.851C14.0198 11.5323 14.1988 11.1001 14.1988 10.6494V6.69089C15.2418 7.05861 16.1371 7.75537 16.7496 8.67617C17.3622 9.59698 17.6589 10.6919 17.595 11.796C17.5311 12.9001 17.1101 13.9535 16.3954 14.7975C15.6807 15.6415 14.711 16.2303 13.6325 16.4753C12.5541 16.7202 11.4252 16.608 10.4161 16.1555C9.40691 15.703 8.57217 14.9348 8.03763 13.9667C7.50308 12.9985 7.29769 11.8828 7.45242 10.7877C7.60714 9.69266 8.11359 8.67755 8.89545 7.89537C9.20904 7.57521 9.38364 7.14426 9.38132 6.69611C9.37899 6.24797 9.19994 5.81884 8.88305 5.50195C8.56616 5.18506 8.13704 5.00601 7.68889 5.00369C7.24075 5.00137 6.80979 5.17597 6.48964 5.48956C5.09907 6.8801 4.23369 8.7098 4.04094 10.6669C3.84819 12.624 4.34 14.5873 5.43257 16.2224C6.52515 17.8575 8.15088 19.0632 10.0328 19.634C11.9146 20.2049 13.9362 20.1055 15.753 19.3529C17.5699 18.6003 19.0695 17.241 19.9965 15.5066C20.9234 13.7722 21.2203 11.7701 20.8366 9.84133C20.4528 7.91259 19.4122 6.17658 17.892 4.92911C16.3717 3.68163 14.466 2.99987 12.4994 3C12.0487 3 11.6165 3.17904 11.2978 3.49773C10.9791 3.81643 10.8001 4.24867 10.8001 4.69937Z"})})},{name:"instagram",attributes:{service:"instagram"},title:(0,pt._x)("Instagram","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.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:(0,pt._x)("Last.fm","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.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:(0,pt._x)("LinkedIn","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.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:(0,pt._x)("Mail","social link block variation name"),keywords:["email","e-mail"],icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.Path,{d:"M19 5H5c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm.5 12c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V9.8l7.5 5.6 7.5-5.6V17zm0-9.1L12 13.6 4.5 7.9V7c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v.9z"})})},{name:"mastodon",attributes:{service:"mastodon"},title:(0,pt._x)("Mastodon","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.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:(0,pt._x)("Meetup","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.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:(0,pt._x)("Medium","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.Path,{d:"M13.2,12c0,3-2.4,5.4-5.3,5.4S2.6,15,2.6,12s2.4-5.4,5.3-5.4S13.2,9,13.2,12 M19.1,12c0,2.8-1.2,5-2.7,5s-2.7-2.3-2.7-5s1.2-5,2.7-5C17.9,7,19.1,9.2,19.1,12 M21.4,12c0,2.5-0.4,4.5-0.9,4.5c-0.5,0-0.9-2-0.9-4.5s0.4-4.5,0.9-4.5C21,7.5,21.4,9.5,21.4,12"})})},{name:"patreon",attributes:{service:"patreon"},title:(0,pt._x)("Patreon","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.Path,{d:"M20 8.40755C19.9969 6.10922 18.2543 4.22555 16.2097 3.54588C13.6708 2.70188 10.3222 2.82421 7.89775 3.99921C4.95932 5.42355 4.03626 8.54355 4.00186 11.6552C3.97363 14.2136 4.2222 20.9517 7.92225 20.9997C10.6715 21.0356 11.0809 17.3967 12.3529 15.6442C13.258 14.3974 14.4233 14.0452 15.8578 13.6806C18.3233 13.0537 20.0036 11.0551 20 8.40755Z"})})},{name:"pinterest",attributes:{service:"pinterest"},title:(0,pt._x)("Pinterest","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.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:(0,pt._x)("Pocket","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.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:(0,pt._x)("Reddit","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.Path,{d:"M5.27 9.221A2.775 2.775 0 0 0 2.498 11.993a2.785 2.785 0 0 0 1.6 2.511 5.337 5.337 0 0 0 2.374 4.11 9.386 9.386 0 0 0 5.539 1.7 9.386 9.386 0 0 0 5.541-1.7 5.331 5.331 0 0 0 2.372-4.114 2.787 2.787 0 0 0 1.583-2.5 2.775 2.775 0 0 0-2.772-2.772 2.742 2.742 0 0 0-1.688.574 9.482 9.482 0 0 0-4.637-1.348v-.008a2.349 2.349 0 0 1 2.011-2.316 1.97 1.97 0 0 0 1.926 1.521 1.98 1.98 0 0 0 1.978-1.978 1.98 1.98 0 0 0-1.978-1.978 1.985 1.985 0 0 0-1.938 1.578 3.183 3.183 0 0 0-2.849 3.172v.011a9.463 9.463 0 0 0-4.59 1.35 2.741 2.741 0 0 0-1.688-.574Zm6.736 9.1a3.162 3.162 0 0 1-2.921-1.944.215.215 0 0 1 .014-.2.219.219 0 0 1 .168-.106 27.327 27.327 0 0 1 2.74-.133 27.357 27.357 0 0 1 2.74.133.219.219 0 0 1 .168.106.215.215 0 0 1 .014.2 3.158 3.158 0 0 1-2.921 1.944Zm3.743-3.157a1.265 1.265 0 0 1-1.4-1.371 1.954 1.954 0 0 1 .482-1.442 1.15 1.15 0 0 1 .842-.379 1.7 1.7 0 0 1 1.49 1.777 1.323 1.323 0 0 1-.325 1.015 1.476 1.476 0 0 1-1.089.4Zm-7.485 0a1.476 1.476 0 0 1-1.086-.4 1.323 1.323 0 0 1-.325-1.016 1.7 1.7 0 0 1 1.49-1.777 1.151 1.151 0 0 1 .843.379 1.951 1.951 0 0 1 .481 1.441 1.276 1.276 0 0 1-1.403 1.373Z"})})},{name:"skype",attributes:{service:"skype"},title:(0,pt._x)("Skype","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.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"})}),scope:[]},{name:"snapchat",attributes:{service:"snapchat"},title:(0,pt._x)("Snapchat","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.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:(0,pt._x)("SoundCloud","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.Path,{d:"M23.994 14.552a3.36 3.36 0 01-3.401 3.171h-8.176a.685.685 0 01-.679-.681V8.238a.749.749 0 01.452-.716S12.942 7 14.526 7a5.357 5.357 0 012.748.755 5.44 5.44 0 012.56 3.546c.282-.08.574-.12.868-.119a3.273 3.273 0 013.292 3.37zM10.718 8.795a.266.266 0 10-.528 0c-.224 2.96-.397 5.735 0 8.685a.265.265 0 00.528 0c.425-2.976.246-5.7 0-8.685zM9.066 9.82a.278.278 0 00-.553 0 33.183 33.183 0 000 7.663.278.278 0 00.55 0c.33-2.544.332-5.12.003-7.664zM7.406 9.56a.269.269 0 00-.535 0c-.253 2.7-.38 5.222 0 7.917a.266.266 0 10.531 0c.394-2.73.272-5.181.004-7.917zM5.754 10.331a.275.275 0 10-.55 0 28.035 28.035 0 000 7.155.272.272 0 00.54 0c.332-2.373.335-4.78.01-7.155zM4.087 12.12a.272.272 0 00-.544 0c-.393 1.843-.208 3.52.016 5.386a.26.26 0 00.512 0c.247-1.892.435-3.53.016-5.386zM2.433 11.838a.282.282 0 00-.56 0c-.349 1.882-.234 3.54.01 5.418.025.285.508.282.54 0 .269-1.907.394-3.517.01-5.418zM.762 12.76a.282.282 0 00-.56 0c-.32 1.264-.22 2.31.023 3.578a.262.262 0 00.521 0c.282-1.293.42-2.317.016-3.578z"})})},{name:"spotify",attributes:{service:"spotify"},title:(0,pt._x)("Spotify","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.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:(0,pt._x)("Telegram","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 128 128",version:"1.1",children:(0,it.jsx)(St.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:"threads",attributes:{service:"threads"},title:(0,pt._x)("Threads","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.Path,{d:"M16.3 11.3c-.1 0-.2-.1-.2-.1-.1-2.6-1.5-4-3.9-4-1.4 0-2.6.6-3.3 1.7l1.3.9c.5-.8 1.4-1 2-1 .8 0 1.4.2 1.7.7.3.3.5.8.5 1.3-.7-.1-1.4-.2-2.2-.1-2.2.1-3.7 1.4-3.6 3.2 0 .9.5 1.7 1.3 2.2.7.4 1.5.6 2.4.6 1.2-.1 2.1-.5 2.7-1.3.5-.6.8-1.4.9-2.4.6.3 1 .8 1.2 1.3.4.9.4 2.4-.8 3.6-1.1 1.1-2.3 1.5-4.3 1.5-2.1 0-3.8-.7-4.8-2S5.7 14.3 5.7 12c0-2.3.5-4.1 1.5-5.4 1.1-1.3 2.7-2 4.8-2 2.2 0 3.8.7 4.9 2 .5.7.9 1.5 1.2 2.5l1.5-.4c-.3-1.2-.8-2.2-1.5-3.1-1.3-1.7-3.3-2.6-6-2.6-2.6 0-4.7.9-6 2.6C4.9 7.2 4.3 9.3 4.3 12s.6 4.8 1.9 6.4c1.4 1.7 3.4 2.6 6 2.6 2.3 0 4-.6 5.3-2 1.8-1.8 1.7-4 1.1-5.4-.4-.9-1.2-1.7-2.3-2.3zm-4 3.8c-1 .1-2-.4-2-1.3 0-.7.5-1.5 2.1-1.6h.5c.6 0 1.1.1 1.6.2-.2 2.3-1.3 2.7-2.2 2.7z"})})},{name:"tiktok",attributes:{service:"tiktok"},title:(0,pt._x)("TikTok","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.Path,{d:"M12.4044 3.01519C13.4086 3 14.4072 3.009 15.4045 3C15.465 4.14812 15.8874 5.31762 16.7472 6.12935C17.6053 6.96134 18.819 7.34217 20 7.47099V10.4912C18.8933 10.4558 17.7814 10.2308 16.7771 9.76499C16.3397 9.57148 15.9323 9.32227 15.5334 9.06745C15.5283 11.2591 15.5426 13.4479 15.5191 15.6305C15.4592 16.679 15.1053 17.7225 14.4814 18.5866C13.4777 20.025 11.7356 20.9627 9.94635 20.992C8.84885 21.0533 7.7525 20.7608 6.81729 20.2219C5.26743 19.3286 4.17683 17.6933 4.01799 15.9382C3.99957 15.563 3.99324 15.1883 4.00878 14.8221C4.14691 13.395 4.86917 12.0297 5.99027 11.101C7.26101 10.0192 9.04107 9.50397 10.7078 9.80886C10.7233 10.9199 10.6778 12.0297 10.6778 13.1407C9.91643 12.9 9.02668 12.9675 8.36139 13.4192C7.87566 13.7269 7.50675 14.1983 7.31453 14.7316C7.15569 15.1118 7.20116 15.5343 7.21036 15.9382C7.3928 17.169 8.60368 18.2035 9.89628 18.0916C10.7532 18.0826 11.5745 17.5965 12.0211 16.8849C12.1655 16.6357 12.3273 16.3809 12.3359 16.0878C12.4113 14.7462 12.3814 13.4102 12.3906 12.0685C12.3969 9.04495 12.3814 6.02979 12.4049 3.01575L12.4044 3.01519Z"})})},{name:"tumblr",attributes:{service:"tumblr"},title:(0,pt._x)("Tumblr","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.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:(0,pt._x)("Twitch","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.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:(0,pt._x)("Twitter","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.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:(0,pt._x)("Vimeo","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.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:(0,pt._x)("VK","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.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:"whatsapp",attributes:{service:"whatsapp"},title:(0,pt._x)("WhatsApp","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.Path,{d:"M 12.011719 2 C 6.5057187 2 2.0234844 6.478375 2.0214844 11.984375 C 2.0204844 13.744375 2.4814687 15.462563 3.3554688 16.976562 L 2 22 L 7.2324219 20.763672 C 8.6914219 21.559672 10.333859 21.977516 12.005859 21.978516 L 12.009766 21.978516 C 17.514766 21.978516 21.995047 17.499141 21.998047 11.994141 C 22.000047 9.3251406 20.962172 6.8157344 19.076172 4.9277344 C 17.190172 3.0407344 14.683719 2.001 12.011719 2 z M 12.009766 4 C 14.145766 4.001 16.153109 4.8337969 17.662109 6.3417969 C 19.171109 7.8517969 20.000047 9.8581875 19.998047 11.992188 C 19.996047 16.396187 16.413812 19.978516 12.007812 19.978516 C 10.674812 19.977516 9.3544062 19.642812 8.1914062 19.007812 L 7.5175781 18.640625 L 6.7734375 18.816406 L 4.8046875 19.28125 L 5.2851562 17.496094 L 5.5019531 16.695312 L 5.0878906 15.976562 C 4.3898906 14.768562 4.0204844 13.387375 4.0214844 11.984375 C 4.0234844 7.582375 7.6067656 4 12.009766 4 z M 8.4765625 7.375 C 8.3095625 7.375 8.0395469 7.4375 7.8105469 7.6875 C 7.5815469 7.9365 6.9355469 8.5395781 6.9355469 9.7675781 C 6.9355469 10.995578 7.8300781 12.182609 7.9550781 12.349609 C 8.0790781 12.515609 9.68175 15.115234 12.21875 16.115234 C 14.32675 16.946234 14.754891 16.782234 15.212891 16.740234 C 15.670891 16.699234 16.690438 16.137687 16.898438 15.554688 C 17.106437 14.971687 17.106922 14.470187 17.044922 14.367188 C 16.982922 14.263188 16.816406 14.201172 16.566406 14.076172 C 16.317406 13.951172 15.090328 13.348625 14.861328 13.265625 C 14.632328 13.182625 14.464828 13.140625 14.298828 13.390625 C 14.132828 13.640625 13.655766 14.201187 13.509766 14.367188 C 13.363766 14.534188 13.21875 14.556641 12.96875 14.431641 C 12.71875 14.305641 11.914938 14.041406 10.960938 13.191406 C 10.218937 12.530406 9.7182656 11.714844 9.5722656 11.464844 C 9.4272656 11.215844 9.5585938 11.079078 9.6835938 10.955078 C 9.7955938 10.843078 9.9316406 10.663578 10.056641 10.517578 C 10.180641 10.371578 10.223641 10.267562 10.306641 10.101562 C 10.389641 9.9355625 10.347156 9.7890625 10.285156 9.6640625 C 10.223156 9.5390625 9.737625 8.3065 9.515625 7.8125 C 9.328625 7.3975 9.131125 7.3878594 8.953125 7.3808594 C 8.808125 7.3748594 8.6425625 7.375 8.4765625 7.375 z"})})},{name:"x",attributes:{service:"x"},keywords:["twitter"],title:(0,pt._x)("X","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.Path,{d:"M13.982 10.622 20.54 3h-1.554l-5.693 6.618L8.745 3H3.5l6.876 10.007L3.5 21h1.554l6.012-6.989L15.868 21h5.245l-7.131-10.378Zm-2.128 2.474-.697-.997-5.543-7.93H8l4.474 6.4.697.996 5.815 8.318h-2.387l-4.745-6.787Z"})})},{name:"yelp",attributes:{service:"yelp"},title:(0,pt._x)("Yelp","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.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:(0,pt._x)("YouTube","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.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"})})}];Ej.forEach((e=>{e.isActive||(e.isActive=(e,t)=>e.service===t.service)}));var Oj=Ej;const{name:Gj}=Fj,$j={icon:Aj,edit:Vj,variations:Oj},Uj=()=>jt({name:Gj,metadata:Fj,settings:$j}),qj=[{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:e=>{if(e.layout)return e;const{className:t}=e,o="items-justified-",n=new RegExp(`\\b${o}[^ ]*[ ]?\\b`,"g"),r={...e,className:t?.replace(n,"").trim()},a=t?.match(n)?.[0]?.trim();return a&&Object.assign(r,{layout:{type:"flex",justifyContent:a.slice(16)}}),r},save:e=>{const{attributes:{iconBackgroundColorValue:t,iconColorValue:o,itemsJustification:n,size:r}}=e,a=Dt(r,{"has-icon-color":o,"has-icon-background-color":t,[`items-justified-${n}`]:n}),i={"--wp--social-links--icon-color":o,"--wp--social-links--icon-background-color":t};return(0,it.jsx)("ul",{...ct.useBlockProps.save({className:a,style:i}),children:(0,it.jsx)(ct.InnerBlocks.Content,{})})}}];var Wj=qj;const Zj=[{label:(0,pt.__)("Default"),value:""},{label:(0,pt.__)("Small"),value:"has-small-icon-size"},{label:(0,pt.__)("Normal"),value:"has-normal-icon-size"},{label:(0,pt.__)("Large"),value:"has-large-icon-size"},{label:(0,pt.__)("Huge"),value:"has-huge-icon-size"}];var Jj=(0,ct.withColors)({iconColor:"icon-color",iconBackgroundColor:"icon-background-color"})((function(e){const{clientId:t,attributes:o,iconBackgroundColor:n,iconColor:r,isSelected:a,setAttributes:i,setIconBackgroundColor:s,setIconColor:l}=e,{iconBackgroundColorValue:c,iconColorValue:u,openInNewTab:d,showLabels:p,size:m}=o,{hasSocialIcons:g,hasSelectedChild:h}=(0,lt.useSelect)((e=>{const{getBlockCount:o,hasSelectedInnerBlock:n}=e(ct.store);return{hasSocialIcons:o(t)>0,hasSelectedChild:n(t)}}),[t]),_=a||h,x=o.className?.includes("is-style-logos-only"),b=vt();(0,gt.useEffect)((()=>{if(x){let e;return i((t=>(e={iconBackgroundColor:t.iconBackgroundColor,iconBackgroundColorValue:t.iconBackgroundColorValue,customIconBackgroundColor:t.customIconBackgroundColor},{iconBackgroundColor:void 0,iconBackgroundColorValue:void 0,customIconBackgroundColor:void 0}))),()=>i({...e})}}),[x,i]);const f=Dt(m,{"has-visible-labels":p,"has-icon-color":r.color||u,"has-icon-background-color":n.color||c}),y=(0,ct.useBlockProps)({className:f}),v=(0,ct.useInnerBlocksProps)(y,{templateLock:!1,orientation:o.layout?.orientation??"horizontal",__experimentalAppenderTagName:"li",renderAppender:!g||_?ct.InnerBlocks.ButtonBlockAppender:void 0}),k=[{value:r.color||u,onChange:e=>{l(e),i({iconColorValue:e})},label:(0,pt.__)("Icon color"),resetAllFilter:()=>{l(void 0),i({iconColorValue:void 0})}}];x||k.push({value:n.color||c,onChange:e=>{s(e),i({iconBackgroundColorValue:e})},label:(0,pt.__)("Icon background"),resetAllFilter:()=>{s(void 0),i({iconBackgroundColorValue:void 0})}});const w=(0,ct.__experimentalUseMultipleOriginColorsAndGradients)();return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{i({openInNewTab:!1,showLabels:!1,size:void 0})},dropdownMenuProps:b,children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{isShownByDefault:!0,hasValue:()=>!!m,label:(0,pt.__)("Icon size"),onDeselect:()=>i({size:void 0}),children:(0,it.jsx)(mt.SelectControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("Icon Size"),onChange:e=>{i({size:""===e?void 0:e})},value:m??"",options:Zj})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,pt.__)("Show text"),hasValue:()=>!!p,onDeselect:()=>i({showLabels:!1}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Show text"),checked:p,onChange:()=>i({showLabels:!p})})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,pt.__)("Open links in new tab"),hasValue:()=>!!d,onDeselect:()=>i({openInNewTab:!1}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Open links in new tab"),checked:d,onChange:()=>i({openInNewTab:!d})})})]})}),w.hasColorsOrGradients&&(0,it.jsxs)(ct.InspectorControls,{group:"color",children:[k.map((({onChange:e,label:o,value:n,resetAllFilter:r})=>(0,it.jsx)(ct.__experimentalColorGradientSettingsDropdown,{__experimentalIsRenderedInSidebar:!0,settings:[{colorValue:n,label:o,onColorChange:e,isShownByDefault:!0,resetAllFilter:r,enableAlpha:!0,clearable:!0}],panelId:t,...w},`social-links-color-${o}`))),!x&&(0,it.jsx)(ct.ContrastChecker,{textColor:u,backgroundColor:c,isLargeText:!1})]}),(0,it.jsx)("ul",{...v})]})}));const Qj=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/social-links","title":"Social Icons","category":"widgets","allowedBlocks":["core/social-link"],"description":"Display icons linking to your social profiles or sites.","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":false},"showLabels":{"type":"boolean","default":false},"size":{"type":"string"}},"providesContext":{"openInNewTab":"openInNewTab","showLabels":"showLabels","iconColor":"iconColor","iconColorValue":"iconColorValue","iconBackgroundColor":"iconBackgroundColor","iconBackgroundColorValue":"iconBackgroundColorValue"},"supports":{"align":["left","center","right"],"anchor":true,"html":false,"__experimentalExposeControlsToChildren":true,"layout":{"allowSwitching":false,"allowInheriting":false,"allowVerticalAlignment":false,"default":{"type":"flex"}},"color":{"enableContrastChecker":false,"background":true,"gradients":true,"text":false,"__experimentalDefaultControls":{"background":false}},"spacing":{"blockGap":["horizontal","vertical"],"margin":true,"padding":true,"units":["px","em","rem","vh","vw"],"__experimentalDefaultControls":{"blockGap":true,"margin":true,"padding":false}},"interactivity":{"clientNavigation":true},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true,"__experimentalDefaultControls":{"radius":true,"color":true,"width":true,"style":true}},"contentRole":true},"styles":[{"name":"default","label":"Default","isDefault":true},{"name":"logos-only","label":"Logos Only"},{"name":"pill-shape","label":"Pill Shape"}],"editorStyle":"wp-block-social-links-editor","style":"wp-block-social-links"}');const{name:Kj}=Qj,Yj={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:Aj,edit:Jj,save:function(e){const{attributes:{iconBackgroundColorValue:t,iconColorValue:o,showLabels:n,size:r}}=e,a=Dt(r,{"has-visible-labels":n,"has-icon-color":o,"has-icon-background-color":t}),i=ct.useBlockProps.save({className:a}),s=ct.useInnerBlocksProps.save(i);return(0,it.jsx)("ul",{...s})},deprecated:Wj},Xj=()=>jt({name:Kj,metadata:Qj,settings:Yj});var eS=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.Path,{d:"M7 18h4.5v1.5h-7v-7H6V17L17 6h-4.5V4.5h7v7H18V7L7 18Z"})});const tS=[{attributes:{height:{type:"number",default:100},width:{type:"number"}},migrate(e){const{height:t,width:o}=e;return{...e,width:void 0!==o?`${o}px`:void 0,height:void 0!==t?`${t}px`:void 0}},save:({attributes:e})=>(0,it.jsx)("div",{...ct.useBlockProps.save({style:{height:e.height,width:e.width},"aria-hidden":!0})})}];var oS=tS;const{useSpacingSizes:nS}=jo(ct.privateApis);function rS({label:e,onChange:t,isResizing:o,value:n=""}){const r=(0,xt.useInstanceId)(mt.__experimentalUnitControl,"block-spacer-height-input"),a=nS(),[i]=(0,ct.useSettings)("spacing.units"),s=i?i.filter((e=>"%"!==e)):["px","em","rem","vw","vh"],l=(0,mt.__experimentalUseCustomUnits)({availableUnits:s,defaultValues:{px:100,em:10,rem:10,vw:10,vh:25}}),[c,u]=(0,mt.__experimentalParseQuantityAndUnitFromRawValue)(n),d=(0,ct.isValueSpacingPreset)(n)?n:[c,o?"px":u].join("");return(0,it.jsx)(it.Fragment,{children:a?.length<2?(0,it.jsx)(mt.__experimentalUnitControl,{id:r,isResetValueOnUnitChange:!0,min:0,onChange:t,value:d,units:l,label:e,__next40pxDefaultSize:!0}):(0,it.jsx)(St.View,{className:"tools-panel-item-spacing",children:(0,it.jsx)(ct.__experimentalSpacingSizesControl,{values:{all:d},onChange:({all:e})=>{t(e)},label:e,sides:["all"],units:l,allowReset:!1,splitOnAxis:!1,showSideInLabel:!1})})})}function aS({setAttributes:e,orientation:t,height:o,width:n,isResizing:r}){const a=vt();return(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{e({width:void 0,height:"100px"})},dropdownMenuProps:a,children:["horizontal"===t&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Width"),isShownByDefault:!0,hasValue:()=>void 0!==n,onDeselect:()=>e({width:void 0}),children:(0,it.jsx)(rS,{label:(0,pt.__)("Width"),value:n,onChange:t=>e({width:t}),isResizing:r})}),"horizontal"!==t&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Height"),isShownByDefault:!0,hasValue:()=>"100px"!==o,onDeselect:()=>e({height:"100px"}),children:(0,it.jsx)(rS,{label:(0,pt.__)("Height"),value:o,onChange:t=>e({height:t}),isResizing:r})})]})})}const{useSpacingSizes:iS}=jo(ct.privateApis),sS=({orientation:e,onResizeStart:t,onResize:o,onResizeStop:n,isSelected:r,isResizing:a,setIsResizing:i,...s})=>{const l=t=>"horizontal"===e?t.clientWidth:t.clientHeight,c=e=>`${l(e)}px`;return(0,it.jsx)(mt.ResizableBox,{className:Dt("block-library-spacer__resize-container",{"resize-horizontal":"horizontal"===e,"is-resizing":a,"is-selected":r}),onResizeStart:(e,n,r)=>{const a=c(r);t(a),o(a)},onResize:(e,t,n)=>{o(c(n)),a||i(!0)},onResizeStop:(e,t,o)=>{const r=l(o);n(`${r}px`),i(!1)},__experimentalShowTooltip:!0,__experimentalTooltipProps:{axis:"horizontal"===e?"x":"y",position:"corner",isVisible:a},showHandle:r,...s})};var lS=({attributes:e,isSelected:t,setAttributes:o,toggleSelection:n,context:r,__unstableParentLayout:a,className:i})=>{const s=(0,lt.useSelect)((e=>{const t=e(ct.store).getSettings();return t?.disableCustomSpacingSizes})),{orientation:l}=r,{orientation:c,type:u,default:{type:d}={}}=a||{},p="flex"===u||!u&&"flex"===d,m=!c&&p?"horizontal":c||l,{height:g,width:h,style:_={}}=e,{layout:x={}}=_,{selfStretch:b,flexSize:f}=x,y=iS(),[v,k]=(0,gt.useState)(!1),[w,C]=(0,gt.useState)(null),[j,S]=(0,gt.useState)(null),B=()=>n(!1),T=()=>n(!0),{__unstableMarkNextChangeAsNotPersistent:N}=(0,lt.useDispatch)(ct.store),P=e=>{T(),p&&o({style:{..._,layout:{...x,flexSize:e,selfStretch:"fixed"}}}),o({height:e}),C(null)},I=e=>{T(),p&&o({style:{..._,layout:{...x,flexSize:e,selfStretch:"fixed"}}}),o({width:e}),S(null)},D="horizontal"===m?j||f:w||f,M={height:"horizontal"===m?24:(()=>{if(!p)return w||(0,ct.getSpacingPresetCssVar)(g)||void 0})(),width:"horizontal"===m?(()=>{if(!p)return j||(0,ct.getSpacingPresetCssVar)(h)||void 0})():void 0,minWidth:"vertical"===m&&p?48:void 0,flexBasis:p?D:void 0,flexGrow:p&&v?0:void 0};(0,gt.useEffect)((()=>{const e=e=>{N(),o(e)};if(p&&"fill"!==b&&"fit"!==b&&void 0===f)if("horizontal"===m){const t=(0,ct.getCustomValueFromPreset)(h,y)||(0,ct.getCustomValueFromPreset)(g,y)||"100px";e({width:"0px",style:{..._,layout:{...x,flexSize:t,selfStretch:"fixed"}}})}else{const t=(0,ct.getCustomValueFromPreset)(g,y)||(0,ct.getCustomValueFromPreset)(h,y)||"100px";e({height:"0px",style:{..._,layout:{...x,flexSize:t,selfStretch:"fixed"}}})}else!p||"fill"!==b&&"fit"!==b?p||!b&&!f||e({..."horizontal"===m?{width:f}:{height:f},style:{..._,layout:{...x,flexSize:void 0,selfStretch:void 0}}}):e("horizontal"===m?{width:void 0}:{height:void 0})}),[_,f,g,m,p,x,b,o,y,h,N]);const z=(0,ct.useBlockEditingMode)();return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(St.View,{...(0,ct.useBlockProps)({style:M,className:Dt(i,{"custom-sizes-disabled":s})}),children:"default"===z&&(A=m,"horizontal"===A?(0,it.jsx)(sS,{minWidth:0,enable:{top:!1,right:!0,bottom:!1,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},orientation:A,onResizeStart:B,onResize:S,onResizeStop:I,isSelected:t,isResizing:v,setIsResizing:k}):(0,it.jsx)(it.Fragment,{children:(0,it.jsx)(sS,{minHeight:0,enable:{top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},orientation:A,onResizeStart:B,onResize:C,onResizeStop:P,isSelected:t,isResizing:v,setIsResizing:k})}))}),!p&&(0,it.jsx)(aS,{setAttributes:o,height:w||g,width:j||h,orientation:m,isResizing:v})]});var A};const cS=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/spacer","title":"Spacer","category":"design","description":"Add white space between blocks and customize its height.","textdomain":"default","attributes":{"height":{"type":"string","default":"100px"},"width":{"type":"string"}},"usesContext":["orientation"],"supports":{"anchor":true,"spacing":{"margin":["top","bottom"],"__experimentalDefaultControls":{"margin":true}},"interactivity":{"clientNavigation":true}},"editorStyle":"wp-block-spacer-editor","style":"wp-block-spacer"}');var uS={to:[{type:"block",blocks:["core/separator"],transform:({anchor:e})=>(0,st.createBlock)("core/separator",{anchor:e||""})}]};const{name:dS}=cS,pS={icon:eS,transforms:uS,edit:lS,save:function({attributes:e}){const{height:t,width:o,style:n}=e,{layout:{selfStretch:r}={}}=n||{},a="fill"===r||"fit"===r?void 0:t;return(0,it.jsx)("div",{...ct.useBlockProps.save({style:{height:(0,ct.getSpacingPresetCssVar)(a),width:(0,ct.getSpacingPresetCssVar)(o)},"aria-hidden":!0})})},deprecated:oS},mS=()=>jt({name:dS,metadata:cS,settings:pS});var gS=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.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 hS={"subtle-light-gray":"#f3f4f5","subtle-pale-green":"#e9fbe5","subtle-pale-blue":"#e7f5fe","subtle-pale-pink":"#fcf0ef"},_S={content:{type:"rich-text",source:"rich-text"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"},colspan:{type:"string",source:"attribute",attribute:"colspan"},rowspan:{type:"string",source:"attribute",attribute:"rowspan"}},xS={attributes:{hasFixedLayout:{type:"boolean",default:!1},caption:{type:"rich-text",source:"rich-text",selector:"figcaption"},head:{type:"array",default:[],source:"query",selector:"thead tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:_S}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:_S}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:_S}}}},supports:{anchor:!0,align:!0,color:{__experimentalSkipSerialization:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalBorder:{__experimentalSkipSerialization:!0,color:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,style:!0,width:!0}},__experimentalSelector:".wp-block-table > table",interactivity:{clientNavigation:!0}},save({attributes:e}){const{hasFixedLayout:t,head:o,body:n,foot:r,caption:a}=e;if(!o.length&&!n.length&&!r.length)return null;const i=(0,ct.__experimentalGetColorClassesAndStyles)(e),s=(0,ct.__experimentalGetBorderClassesAndStyles)(e),l=Dt(i.className,s.className,{"has-fixed-layout":t}),c=!ct.RichText.isEmpty(a),u=({type:e,rows:t})=>{if(!t.length)return null;const o=`t${e}`;return(0,it.jsx)(o,{children:t.map((({cells:e},t)=>(0,it.jsx)("tr",{children:e.map((({content:e,tag:t,scope:o,align:n,colspan:r,rowspan:a},i)=>{const s=Dt({[`has-text-align-${n}`]:n});return(0,it.jsx)(ct.RichText.Content,{className:s||void 0,"data-align":n,tagName:t,value:e,scope:"th"===t?o:void 0,colSpan:r,rowSpan:a},i)}))},t)))})};return(0,it.jsxs)("figure",{...ct.useBlockProps.save(),children:[(0,it.jsxs)("table",{className:""===l?void 0:l,style:{...i.style,...s.style},children:[(0,it.jsx)(u,{type:"head",rows:o}),(0,it.jsx)(u,{type:"body",rows:n}),(0,it.jsx)(u,{type:"foot",rows:r})]}),c&&(0,it.jsx)(ct.RichText.Content,{tagName:"figcaption",value:a,className:(0,ct.__experimentalGetElementClassName)("caption")})]})}},bS={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"}},fS={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:bS}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:bS}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:bS}}}},supports:{anchor:!0,align:!0,color:{__experimentalSkipSerialization:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalBorder:{__experimentalSkipSerialization:!0,color:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,style:!0,width:!0}},__experimentalSelector:".wp-block-table > table"},save({attributes:e}){const{hasFixedLayout:t,head:o,body:n,foot:r,caption:a}=e;if(!o.length&&!n.length&&!r.length)return null;const i=(0,ct.__experimentalGetColorClassesAndStyles)(e),s=(0,ct.__experimentalGetBorderClassesAndStyles)(e),l=Dt(i.className,s.className,{"has-fixed-layout":t}),c=!ct.RichText.isEmpty(a),u=({type:e,rows:t})=>{if(!t.length)return null;const o=`t${e}`;return(0,it.jsx)(o,{children:t.map((({cells:e},t)=>(0,it.jsx)("tr",{children:e.map((({content:e,tag:t,scope:o,align:n},r)=>{const a=Dt({[`has-text-align-${n}`]:n});return(0,it.jsx)(ct.RichText.Content,{className:a||void 0,"data-align":n,tagName:t,value:e,scope:"th"===t?o:void 0},r)}))},t)))})};return(0,it.jsxs)("figure",{...ct.useBlockProps.save(),children:[(0,it.jsxs)("table",{className:""===l?void 0:l,style:{...i.style,...s.style},children:[(0,it.jsx)(u,{type:"head",rows:o}),(0,it.jsx)(u,{type:"body",rows:n}),(0,it.jsx)(u,{type:"foot",rows:r})]}),c&&(0,it.jsx)(ct.RichText.Content,{tagName:"figcaption",value:a})]})}},yS={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"}},vS={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:yS}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:yS}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:yS}}}},supports:{anchor:!0,align:!0,__experimentalSelector:".wp-block-table > table"},save:({attributes:e})=>{const{hasFixedLayout:t,head:o,body:n,foot:r,backgroundColor:a,caption:i}=e;if(!o.length&&!n.length&&!r.length)return null;const s=(0,ct.getColorClassName)("background-color",a),l=Dt(s,{"has-fixed-layout":t,"has-background":!!s}),c=!ct.RichText.isEmpty(i),u=({type:e,rows:t})=>{if(!t.length)return null;const o=`t${e}`;return(0,it.jsx)(o,{children:t.map((({cells:e},t)=>(0,it.jsx)("tr",{children:e.map((({content:e,tag:t,scope:o,align:n},r)=>{const a=Dt({[`has-text-align-${n}`]:n});return(0,it.jsx)(ct.RichText.Content,{className:a||void 0,"data-align":n,tagName:t,value:e,scope:"th"===t?o:void 0},r)}))},t)))})};return(0,it.jsxs)("figure",{...ct.useBlockProps.save(),children:[(0,it.jsxs)("table",{className:""===l?void 0:l,children:[(0,it.jsx)(u,{type:"head",rows:o}),(0,it.jsx)(u,{type:"body",rows:n}),(0,it.jsx)(u,{type:"foot",rows:r})]}),c&&(0,it.jsx)(ct.RichText.Content,{tagName:"figcaption",value:i})]})},isEligible:e=>e.backgroundColor&&e.backgroundColor in hS&&!e.style,migrate:e=>({...e,backgroundColor:void 0,style:{color:{background:hS[e.backgroundColor]}}})},kS={content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"}},wS={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:kS}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:kS}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:kS}}}},supports:{align:!0},save({attributes:e}){const{hasFixedLayout:t,head:o,body:n,foot:r,backgroundColor:a}=e;if(!o.length&&!n.length&&!r.length)return null;const i=(0,ct.getColorClassName)("background-color",a),s=Dt(i,{"has-fixed-layout":t,"has-background":!!i}),l=({type:e,rows:t})=>{if(!t.length)return null;const o=`t${e}`;return(0,it.jsx)(o,{children:t.map((({cells:e},t)=>(0,it.jsx)("tr",{children:e.map((({content:e,tag:t,scope:o},n)=>(0,it.jsx)(ct.RichText.Content,{tagName:t,value:e,scope:"th"===t?o:void 0},n)))},t)))})};return(0,it.jsxs)("table",{className:s,children:[(0,it.jsx)(l,{type:"head",rows:o}),(0,it.jsx)(l,{type:"body",rows:n}),(0,it.jsx)(l,{type:"foot",rows:r})]})}};var CS=[xS,fS,vS,wS],jS=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M13 5.5H4V4h9v1.5Zm7 7H4V11h16v1.5Zm-7 7H4V18h9v1.5Z"})}),SS=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M7.5 5.5h9V4h-9v1.5Zm-3.5 7h16V11H4v1.5Zm3.5 7h9V18h-9v1.5Z"})}),BS=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M11.111 5.5H20V4h-8.889v1.5ZM4 12.5h16V11H4v1.5Zm7.111 7H20V18h-8.889v1.5Z"})}),TS=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M21 5c0-1.1-.9-2-2-2H5c-1 0-1.9.8-2 1.8V19.2c.1.9.9 1.7 1.8 1.8H19c1.1 0 2-.9 2-2V5ZM4.5 14V5c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v9h-15Zm4 5.5H5c-.3 0-.5-.2-.5-.5v-3.5h4v4Zm5.5 0h-4v-4h4v4Zm5.5-.5c0 .3-.2.5-.5.5h-3.5v-4h4V19ZM11.2 10h-3V8.5h3v-3h1.5v3h3V10h-3v3h-1.5v-3Z"})}),NS=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M19 3H4.8c-.9.1-1.7.9-1.8 1.8V19.2c.1 1 1 1.8 2 1.8h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2Zm-9 1.5h4v4h-4v-4ZM4.5 5c0-.3.2-.5.5-.5h3.5v4h-4V5Zm15 14c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-9h15v9Zm0-10.5h-4v-4H19c.3 0 .5.2.5.5v3.5Zm-8.3 10h1.5v-3h3V14h-3v-3h-1.5v3h-3v1.5h3v3Z"})}),PS=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M19 3H4.8c-.9.1-1.7.9-1.8 1.8V19.2c.1 1 1 1.8 2 1.8h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2Zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-9h15v9Zm0-10.5h-15V5c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v3.5Zm-9.6 9.4 2.1-2.1 2.1 2.1 1.1-1.1-2.1-2.1 2.1-2.1-1.1-1.1-2.1 2.1-2.1-2.1-1.1 1.1 2.1 2.1-2.1 2.1 1.1 1.1Z"})}),IS=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1 .8 1.9 1.8 2H19.2c.9-.1 1.7-.9 1.8-1.8V5c0-1.1-.9-2-2-2Zm-5 16.5H5c-.3 0-.5-.2-.5-.5V5c0-.3.2-.5.5-.5h9v15Zm5.5-.5c0 .3-.2.5-.5.5h-3.5v-4h4V19Zm0-5h-4v-4h4v4Zm0-5.5h-4v-4H19c.3 0 .5.2.5.5v3.5Zm-11 7.3H10v-3h3v-1.5h-3v-3H8.5v3h-3v1.5h3v3Z"})}),DS=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14.2c.1.9.9 1.7 1.8 1.8H19.2c1-.1 1.8-1 1.8-2V5c0-1.1-.9-2-2-2ZM8.5 19.5H5c-.3 0-.5-.2-.5-.5v-3.5h4v4Zm0-5.5h-4v-4h4v4Zm0-5.5h-4V5c0-.3.2-.5.5-.5h3.5v4Zm11 10.5c0 .3-.2.5-.5.5h-9v-15h9c.3 0 .5.2.5.5v14Zm-4-10.8H14v3h-3v1.5h3v3h1.5v-3h3v-1.5h-3v-3Z"})}),MS=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14.2c.1.9.9 1.7 1.8 1.8H19.2c1-.1 1.8-1 1.8-2V5c0-1.1-.9-2-2-2ZM8.5 19.5H5c-.3 0-.5-.2-.5-.5V5c0-.3.2-.5.5-.5h3.5v15Zm11-.5c0 .3-.2.5-.5.5h-9v-15h9c.3 0 .5.2.5.5v14ZM16.9 8.8l-2.1 2.1-2.1-2.1-1.1 1.1 2.1 2.1-2.1 2.1 1.1 1.1 2.1-2.1 2.1 2.1 1.1-1.1-2.1-2.1L18 9.9l-1.1-1.1Z"})}),zS=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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 2v6.2h-6.8V4.4h6.2c.3 0 .5.2.5.5ZM5 4.5h6.2v6.8H4.4V5.1c0-.3.2-.5.5-.5ZM4.5 19v-6.2h6.8v6.8H5.1c-.3 0-.5-.2-.5-.5Zm14.5.5h-6.2v-6.8h6.8v6.2c0 .3-.2.5-.5.5Z"})});const AS=["align"];function LS(e,t,o){if(!t)return e;const n=Object.fromEntries(Object.entries(e).filter((([e])=>["head","body","foot"].includes(e)))),{sectionName:r,rowIndex:a}=t;return Object.fromEntries(Object.entries(n).map((([e,n])=>r&&r!==e?[e,n]:[e,n.map(((n,r)=>a&&a!==r?n:{cells:n.cells.map(((n,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:e,columnIndex:a,rowIndex:r},t)?o(n):n))}))])))}function HS(e,{sectionName:t,rowIndex:o,columnCount:n}){const r=function(e){return VS(e.head)?VS(e.body)?VS(e.foot)?void 0:e.foot[0]:e.body[0]:e.head[0]}(e),a=void 0===n?r?.cells?.length:n;return a?{[t]:[...e[t].slice(0,o),{cells:Array.from({length:a}).map(((e,o)=>{const n=r?.cells?.[o]??{};return{...Object.fromEntries(Object.entries(n).filter((([e])=>AS.includes(e)))),content:"",tag:"head"===t?"th":"td"}}))},...e[t].slice(o)]}:e}function RS(e,t){if(!VS(e[t]))return{[t]:[]};return HS(e,{sectionName:t,rowIndex:0,columnCount:e.body?.[0]?.cells?.length??1})}function VS(e){return!e||!e.length||e.every(FS)}function FS(e){return!(e.cells&&e.cells.length)}const ES=[{icon:jS,title:(0,pt.__)("Align column left"),align:"left"},{icon:SS,title:(0,pt.__)("Align column center"),align:"center"},{icon:BS,title:(0,pt.__)("Align column right"),align:"right"}],OS={head:(0,pt.__)("Header cell text"),body:(0,pt.__)("Body cell text"),foot:(0,pt.__)("Footer cell text")},GS={head:(0,pt.__)("Header label"),foot:(0,pt.__)("Footer label")};function $S({name:e,...t}){const o=`t${e}`;return(0,it.jsx)(o,{...t})}var US=function({attributes:e,setAttributes:t,insertBlocksAfter:o,isSelected:n}){const{hasFixedLayout:r,head:a,foot:i}=e,[s,l]=(0,gt.useState)(2),[c,u]=(0,gt.useState)(2),[d,p]=(0,gt.useState)(),m=(0,ct.__experimentalUseColorProps)(e),g=(0,ct.__experimentalUseBorderProps)(e),h=(0,ct.useBlockEditingMode)(),_=(0,gt.useRef)(),[x,b]=(0,gt.useState)(!1),f=vt();function y(o){d&&t(LS(e,d,(e=>({...e,content:o}))))}function v(o){if(!d)return;const{sectionName:n,rowIndex:r}=d,a=r+o;t(HS(e,{sectionName:n,rowIndex:a})),p({sectionName:n,rowIndex:a,columnIndex:0,type:"cell"})}function k(o=0){if(!d)return;const{columnIndex:n}=d,r=n+o;t(function(e,{columnIndex:t}){const o=Object.fromEntries(Object.entries(e).filter((([e])=>["head","body","foot"].includes(e))));return Object.fromEntries(Object.entries(o).map((([e,o])=>VS(o)?[e,o]:[e,o.map((o=>FS(o)||o.cells.length<t?o:{cells:[...o.cells.slice(0,t),{content:"",tag:"head"===e?"th":"td"},...o.cells.slice(t)]}))])))}(e,{columnIndex:r})),p({rowIndex:0,columnIndex:r,type:"cell"})}(0,gt.useEffect)((()=>{n||p()}),[n]),(0,gt.useEffect)((()=>{x&&(_?.current?.querySelector('td div[contentEditable="true"]')?.focus(),b(!1))}),[x]);const w=["head","body","foot"].filter((t=>!VS(e[t]))),C=[{icon:TS,title:(0,pt.__)("Insert row before"),isDisabled:!d,onClick:function(){v(0)}},{icon:NS,title:(0,pt.__)("Insert row after"),isDisabled:!d,onClick:function(){v(1)}},{icon:PS,title:(0,pt.__)("Delete row"),isDisabled:!d,onClick:function(){if(!d)return;const{sectionName:o,rowIndex:n}=d;p(),t(function(e,{sectionName:t,rowIndex:o}){return{[t]:e[t].filter(((e,t)=>t!==o))}}(e,{sectionName:o,rowIndex:n}))}},{icon:IS,title:(0,pt.__)("Insert column before"),isDisabled:!d,onClick:function(){k(0)}},{icon:DS,title:(0,pt.__)("Insert column after"),isDisabled:!d,onClick:function(){k(1)}},{icon:MS,title:(0,pt.__)("Delete column"),isDisabled:!d,onClick:function(){if(!d)return;const{sectionName:o,columnIndex:n}=d;p(),t(function(e,{columnIndex:t}){const o=Object.fromEntries(Object.entries(e).filter((([e])=>["head","body","foot"].includes(e))));return Object.fromEntries(Object.entries(o).map((([e,o])=>VS(o)?[e,o]:[e,o.map((e=>({cells:e.cells.length>=t?e.cells.filter(((e,o)=>o!==t)):e.cells}))).filter((e=>e.cells.length))])))}(e,{sectionName:o,columnIndex:n}))}}],j=w.map((t=>(0,it.jsx)($S,{name:t,children:e[t].map((({cells:e},o)=>(0,it.jsx)("tr",{children:e.map((({content:e,tag:n,scope:r,align:a,colspan:i,rowspan:s},l)=>(0,it.jsx)(n,{scope:"th"===n?r:void 0,colSpan:i,rowSpan:s,className:Dt({[`has-text-align-${a}`]:a},"wp-block-table__cell-content"),children:(0,it.jsx)(ct.RichText,{value:e,onChange:y,onFocus:()=>{p({sectionName:t,rowIndex:o,columnIndex:l,type:"cell"})},"aria-label":OS[t],placeholder:GS[t]})},l)))},o)))},t))),S=!w.length;return(0,it.jsxs)("figure",{...(0,ct.useBlockProps)({ref:_}),children:[!S&&"default"===h&&(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.BlockControls,{group:"block",children:(0,it.jsx)(ct.AlignmentControl,{label:(0,pt.__)("Change column alignment"),alignmentControls:ES,value:function(){if(d)return function(e,t,o){const{sectionName:n,rowIndex:r,columnIndex:a}=t;return e[n]?.[r]?.cells?.[a]?.[o]}(e,d,"align")}(),onChange:o=>function(o){if(!d)return;const n={type:"column",columnIndex:d.columnIndex},r=LS(e,n,(e=>({...e,align:o})));t(r)}(o)})}),(0,it.jsx)(ct.BlockControls,{group:"other",children:(0,it.jsx)(mt.ToolbarDropdownMenu,{icon:zS,label:(0,pt.__)("Edit table"),controls:C})})]}),(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{t({hasFixedLayout:!0,head:[],foot:[]})},dropdownMenuProps:f,children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!0!==r,label:(0,pt.__)("Fixed width table cells"),onDeselect:()=>t({hasFixedLayout:!0}),isShownByDefault:!0,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Fixed width table cells"),checked:!!r,onChange:function(){t({hasFixedLayout:!r})}})}),!S&&(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>a&&a.length,label:(0,pt.__)("Header section"),onDeselect:()=>t({head:[]}),isShownByDefault:!0,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Header section"),checked:!(!a||!a.length),onChange:function(){t(RS(e,"head"))}})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>i&&i.length,label:(0,pt.__)("Footer section"),onDeselect:()=>t({foot:[]}),isShownByDefault:!0,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Footer section"),checked:!(!i||!i.length),onChange:function(){t(RS(e,"foot"))}})})]})]})}),!S&&(0,it.jsx)("table",{className:Dt(m.className,g.className,{"has-fixed-layout":r,"has-individual-borders":(0,mt.__experimentalHasSplitBorders)(e?.style?.border)}),style:{...m.style,...g.style},children:j}),S?(0,it.jsx)(mt.Placeholder,{label:(0,pt.__)("Table"),icon:(0,it.jsx)(ct.BlockIcon,{icon:gS,showColors:!0}),instructions:(0,pt.__)("Insert a table for sharing data."),children:(0,it.jsxs)("form",{className:"blocks-table__placeholder-form",onSubmit:function(e){e.preventDefault(),t(function({rowCount:e,columnCount:t}){return{body:Array.from({length:e}).map((()=>({cells:Array.from({length:t}).map((()=>({content:"",tag:"td"})))})))}}({rowCount:parseInt(s,10)||2,columnCount:parseInt(c,10)||2})),b(!0)},children:[(0,it.jsx)(mt.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,type:"number",label:(0,pt.__)("Column count"),value:c,onChange:function(e){u(e)},min:"1",className:"blocks-table__placeholder-input"}),(0,it.jsx)(mt.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,type:"number",label:(0,pt.__)("Row count"),value:s,onChange:function(e){l(e)},min:"1",className:"blocks-table__placeholder-input"}),(0,it.jsx)(mt.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",children:(0,pt.__)("Create Table")})]})}):(0,it.jsx)(zo,{attributes:e,setAttributes:t,isSelected:n,insertBlocksAfter:o,label:(0,pt.__)("Table caption text"),showToolbarButton:n&&"default"===h})]})};const qS=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"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":true},"caption":{"type":"rich-text","source":"rich-text","selector":"figcaption","role":"content"},"head":{"type":"array","default":[],"source":"query","selector":"thead tr","query":{"cells":{"type":"array","default":[],"source":"query","selector":"td,th","query":{"content":{"type":"rich-text","source":"rich-text","role":"content"},"tag":{"type":"string","default":"td","source":"tag"},"scope":{"type":"string","source":"attribute","attribute":"scope"},"align":{"type":"string","source":"attribute","attribute":"data-align"},"colspan":{"type":"string","source":"attribute","attribute":"colspan"},"rowspan":{"type":"string","source":"attribute","attribute":"rowspan"}}}}},"body":{"type":"array","default":[],"source":"query","selector":"tbody tr","query":{"cells":{"type":"array","default":[],"source":"query","selector":"td,th","query":{"content":{"type":"rich-text","source":"rich-text","role":"content"},"tag":{"type":"string","default":"td","source":"tag"},"scope":{"type":"string","source":"attribute","attribute":"scope"},"align":{"type":"string","source":"attribute","attribute":"data-align"},"colspan":{"type":"string","source":"attribute","attribute":"colspan"},"rowspan":{"type":"string","source":"attribute","attribute":"rowspan"}}}}},"foot":{"type":"array","default":[],"source":"query","selector":"tfoot tr","query":{"cells":{"type":"array","default":[],"source":"query","selector":"td,th","query":{"content":{"type":"rich-text","source":"rich-text","role":"content"},"tag":{"type":"string","default":"td","source":"tag"},"scope":{"type":"string","source":"attribute","attribute":"scope"},"align":{"type":"string","source":"attribute","attribute":"data-align"},"colspan":{"type":"string","source":"attribute","attribute":"colspan"},"rowspan":{"type":"string","source":"attribute","attribute":"rowspan"}}}}}},"supports":{"anchor":true,"align":true,"color":{"__experimentalSkipSerialization":true,"gradients":true,"__experimentalDefaultControls":{"background":true,"text":true}},"spacing":{"margin":true,"padding":true,"__experimentalDefaultControls":{"margin":false,"padding":false}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontStyle":true,"__experimentalFontWeight":true,"__experimentalLetterSpacing":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalDefaultControls":{"fontSize":true}},"__experimentalBorder":{"__experimentalSkipSerialization":true,"color":true,"style":true,"width":true,"__experimentalDefaultControls":{"color":true,"style":true,"width":true}},"interactivity":{"clientNavigation":true}},"selectors":{"root":".wp-block-table > table","spacing":".wp-block-table"},"styles":[{"name":"regular","label":"Default","isDefault":true},{"name":"stripes","label":"Stripes"}],"editorStyle":"wp-block-table-editor","style":"wp-block-table"}');function WS(e){const t=parseInt(e,10);if(Number.isInteger(t))return t<0||1===t?void 0:t.toString()}const ZS=({phrasingContentSchema:e})=>({tr:{allowEmpty:!0,children:{th:{allowEmpty:!0,children:e,attributes:["scope","colspan","rowspan","style"]},td:{allowEmpty:!0,children:e,attributes:["colspan","rowspan","style"]}}}}),JS={from:[{type:"raw",selector:"table",schema:e=>({table:{children:{thead:{allowEmpty:!0,children:ZS(e)},tfoot:{allowEmpty:!0,children:ZS(e)},tbody:{allowEmpty:!0,children:ZS(e)}}}}),transform:e=>{const t=Array.from(e.children).reduce(((e,t)=>{if(!t.children.length)return e;const o=t.nodeName.toLowerCase().slice(1),n=Array.from(t.children).reduce(((e,t)=>{if(!t.children.length)return e;const o=Array.from(t.children).reduce(((e,t)=>{const o=WS(t.getAttribute("rowspan")),n=WS(t.getAttribute("colspan")),{textAlign:r}=t.style||{};let a;return"left"!==r&&"center"!==r&&"right"!==r||(a=r),e.push({tag:t.nodeName.toLowerCase(),content:t.innerHTML,rowspan:o,colspan:n,align:a}),e}),[]);return e.push({cells:o}),e}),[]);return e[o]=n,e}),{});return(0,st.createBlock)("core/table",t)}}]};var QS=JS;const{name:KS}=qS,YS={icon:gS,example:{attributes:{head:[{cells:[{content:(0,pt.__)("Version"),tag:"th"},{content:(0,pt.__)("Jazz Musician"),tag:"th"},{content:(0,pt.__)("Release Date"),tag:"th"}]}],body:[{cells:[{content:"5.2",tag:"td"},{content:(0,pt.__)("Jaco Pastorius"),tag:"td"},{content:(0,pt.__)("May 7, 2019"),tag:"td"}]},{cells:[{content:"5.1",tag:"td"},{content:(0,pt.__)("Betty Carter"),tag:"td"},{content:(0,pt.__)("February 21, 2019"),tag:"td"}]},{cells:[{content:"5.0",tag:"td"},{content:(0,pt.__)("Bebo Valdés"),tag:"td"},{content:(0,pt.__)("December 6, 2018"),tag:"td"}]}]},viewportWidth:450},transforms:QS,edit:US,save:function({attributes:e}){const{hasFixedLayout:t,head:o,body:n,foot:r,caption:a}=e;if(!o.length&&!n.length&&!r.length)return null;const i=(0,ct.__experimentalGetColorClassesAndStyles)(e),s=(0,ct.__experimentalGetBorderClassesAndStyles)(e),l=Dt(i.className,s.className,{"has-fixed-layout":t}),c=!ct.RichText.isEmpty(a),u=({type:e,rows:t})=>{if(!t.length)return null;const o=`t${e}`;return(0,it.jsx)(o,{children:t.map((({cells:e},t)=>(0,it.jsx)("tr",{children:e.map((({content:e,tag:t,scope:o,align:n,colspan:r,rowspan:a},i)=>{const s=Dt({[`has-text-align-${n}`]:n});return(0,it.jsx)(ct.RichText.Content,{className:s||void 0,"data-align":n,tagName:t,value:e,scope:"th"===t?o:void 0,colSpan:r,rowSpan:a},i)}))},t)))})};return(0,it.jsxs)("figure",{...ct.useBlockProps.save(),children:[(0,it.jsxs)("table",{className:""===l?void 0:l,style:{...i.style,...s.style},children:[(0,it.jsx)(u,{type:"head",rows:o}),(0,it.jsx)(u,{type:"body",rows:n}),(0,it.jsx)(u,{type:"foot",rows:r})]}),c&&(0,it.jsx)(ct.RichText.Content,{tagName:"figcaption",value:a,className:(0,ct.__experimentalGetElementClassName)("caption")})]})},deprecated:CS},XS=()=>jt({name:KS,metadata:qS,settings:YS});var eB=(0,it.jsxs)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,it.jsx)(St.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M20 9.484h-8.889v-1.5H20v1.5Zm0 7h-4.889v-1.5H20v1.5Zm-14 .032a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm0 1a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z"}),(0,it.jsx)(St.Path,{d:"M13 15.516a2 2 0 1 1-4 0 2 2 0 0 1 4 0ZM8 8.484a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z"})]});const tB=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"__experimental":true,"name":"core/table-of-contents","title":"Table of Contents","category":"design","description":"Summarize your post with a list of headings. Add HTML anchors to Heading blocks to link them here.","keywords":["document outline","summary"],"textdomain":"default","attributes":{"headings":{"type":"array","items":{"type":"object"},"default":[]},"onlyIncludeCurrentPage":{"type":"boolean","default":false},"maxLevel":{"type":"number"},"ordered":{"type":"boolean","default":true}},"supports":{"ariaLabel":true,"html":false,"color":{"text":true,"background":true,"gradients":true,"link":true},"spacing":{"margin":true,"padding":true},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true,"__experimentalDefaultControls":{"radius":true,"color":true,"width":true,"style":true}}},"style":"wp-block-table-of-contents"}'),oB="wp-block-table-of-contents__entry";function nB({nestedHeadingList:e,disableLinkActivation:t,onClick:o,ordered:n=!0}){return(0,it.jsx)(it.Fragment,{children:e.map(((e,r)=>{const{content:a,link:i}=e.heading,s=i?(0,it.jsx)("a",{className:oB,href:i,"aria-disabled":t||void 0,onClick:t&&"function"==typeof o?o:void 0,children:a}):(0,it.jsx)("span",{className:oB,children:a}),l=n?"ol":"ul";return(0,it.jsxs)("li",{children:[s,e.children?(0,it.jsx)(l,{children:(0,it.jsx)(nB,{nestedHeadingList:e.children,disableLinkActivation:t,onClick:t&&"function"==typeof o?o:void 0,ordered:n})}):null]},r)}))})}function rB(e){const t=[];return e.forEach(((o,n)=>{if(""!==o.content&&o.level===e[0].level)if(e[n+1]?.level>o.level){let r=e.length;for(let t=n+1;t<e.length;t++)if(e[t].level===o.level){r=t;break}t.push({heading:o,children:rB(e.slice(n+1,r))})}else t.push({heading:o,children:null})})),t}var aB=r(7734),iB=r.n(aB);function sB(e,t,o){const{getBlockAttributes:n}=e(ct.store),{updateBlockAttributes:r,__unstableMarkNextChangeAsNotPersistent:a}=t(ct.store),i=n(o);if(null===i)return;const s=function(e,t){const{getBlockAttributes:o,getBlockName:n,getBlocksByName:r,getClientIdsOfDescendants:a}=e(ct.store),i=e("core/editor").getPermalink()??null,s=0!==r("core/nextpage").length,{onlyIncludeCurrentPage:l,maxLevel:c}=o(t)??{},[u=""]=r("core/post-content"),d=a(u);let p=1;if(s&&l){const e=d.indexOf(t);for(const[t,o]of d.entries()){if(t>=e)break;"core/nextpage"===n(o)&&p++}}const m=[];let g=1,h=null;"string"==typeof i&&(h=s?(0,no.addQueryArgs)(i,{page:g}):i);for(const e of d){const t=n(e);if("core/nextpage"===t){if(g++,l&&g>p)break;"string"==typeof i&&(h=(0,no.addQueryArgs)((0,no.removeQueryArgs)(i,["page"]),{page:g}))}else if((!l||g===p)&&"core/heading"===t){const t=o(e);if(c&&t.level>c)continue;const n="string"==typeof h&&"string"==typeof t.anchor&&""!==t.anchor;m.push({content:(0,lu.__unstableStripHTML)(t.content.replace(/(<br *\/?>)+/g," ")),level:t.level,link:n?`${h}#${t.anchor}`:null})}}return m}(e,o);iB()(s,i.headings)||window.queueMicrotask((()=>{a(),r(o,{headings:s})}))}const{name:lB}=tB,cB={icon:eB,edit:function e({attributes:{headings:t=[],onlyIncludeCurrentPage:o,maxLevel:n,ordered:r=!0},clientId:a,setAttributes:i}){!function(e){const t=(0,lt.useRegistry)();(0,gt.useEffect)((()=>t.subscribe((()=>sB(t.select,t.dispatch,e)))),[t,e])}(a);const s=(0,ct.useBlockProps)(),l=(0,xt.useInstanceId)(e,"table-of-contents"),{createWarningNotice:c}=(0,lt.useDispatch)(bo.store),u=(0,lt.useSelect)((e=>{const{getBlockRootClientId:t,canInsertBlockType:o}=e(ct.store);return o("core/list",t(a))}),[a]),{replaceBlocks:d}=(0,lt.useDispatch)(ct.store),p=vt(),m=rB(t),g=(0,it.jsxs)(ct.BlockControls,{children:[(0,it.jsxs)(mt.ToolbarGroup,{children:[(0,it.jsx)(mt.ToolbarButton,{icon:(0,pt.isRTL)()?$m:Um,title:(0,pt.__)("Unordered"),description:(0,pt.__)("Convert to unordered list"),onClick:()=>i({ordered:!1}),isActive:!1===r}),(0,it.jsx)(mt.ToolbarButton,{icon:(0,pt.isRTL)()?qm:Wm,title:(0,pt.__)("Ordered"),description:(0,pt.__)("Convert to ordered list"),onClick:()=>i({ordered:!0}),isActive:!0===r})]}),u&&(0,it.jsx)(mt.ToolbarGroup,{children:(0,it.jsx)(mt.ToolbarButton,{onClick:()=>d(a,(0,st.createBlock)("core/list",{ordered:r,values:(0,gt.renderToString)((0,it.jsx)(nB,{nestedHeadingList:m,ordered:r}))})),children:(0,pt.__)("Convert to static list")})})]}),h=(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{i({onlyIncludeCurrentPage:!1,maxLevel:void 0,ordered:!0})},dropdownMenuProps:p,children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!!o,label:(0,pt.__)("Only include current page"),onDeselect:()=>i({onlyIncludeCurrentPage:!1}),isShownByDefault:!0,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Only include current page"),checked:o,onChange:e=>i({onlyIncludeCurrentPage:e}),help:o?(0,pt.__)("Only including headings from the current page (if the post is paginated)."):(0,pt.__)("Include headings from all pages (if the post is paginated).")})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!!n,label:(0,pt.__)("Limit heading levels"),onDeselect:()=>i({maxLevel:void 0}),isShownByDefault:!0,children:(0,it.jsx)(mt.SelectControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,pt.__)("Include headings down to level"),value:n||"",options:[{value:"",label:(0,pt.__)("All levels")},{value:"1",label:(0,pt.__)("Heading 1")},{value:"2",label:(0,pt.__)("Heading 2")},{value:"3",label:(0,pt.__)("Heading 3")},{value:"4",label:(0,pt.__)("Heading 4")},{value:"5",label:(0,pt.__)("Heading 5")},{value:"6",label:(0,pt.__)("Heading 6")}],onChange:e=>i({maxLevel:e?parseInt(e):void 0}),help:n?(0,pt.__)("Only include headings up to and including this level."):(0,pt.__)("Including all heading levels in the table of contents.")})})]})});if(0===t.length)return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)("div",{...s,children:(0,it.jsx)(mt.Placeholder,{icon:(0,it.jsx)(ct.BlockIcon,{icon:eB}),label:(0,pt.__)("Table of Contents"),instructions:(0,pt.__)("Start adding Heading blocks to create a table of contents. Headings with HTML anchors will be linked here.")})}),h]});const _=r?"ol":"ul";return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)("nav",{...s,children:(0,it.jsx)(_,{children:(0,it.jsx)(nB,{nestedHeadingList:m,disableLinkActivation:!0,onClick:e=>{e.preventDefault(),c((0,pt.__)("Links are disabled in the editor."),{id:`block-library/core/table-of-contents/redirection-prevented/${l}`,type:"snackbar"})},ordered:r})})}),g,h]})},save:function({attributes:{headings:e=[],ordered:t=!0}}){if(0===e.length)return null;const o=t?"ol":"ul";return(0,it.jsx)("nav",{...ct.useBlockProps.save(),children:(0,it.jsx)(o,{children:(0,it.jsx)(nB,{nestedHeadingList:rB(e),ordered:t})})})},example:{innerBlocks:[{name:"core/heading",attributes:{level:2,content:(0,pt.__)("Heading")}},{name:"core/heading",attributes:{level:3,content:(0,pt.__)("Subheading")}},{name:"core/heading",attributes:{level:2,content:(0,pt.__)("Heading")}},{name:"core/heading",attributes:{level:3,content:(0,pt.__)("Subheading")}}],attributes:{headings:[{content:(0,pt.__)("Heading"),level:2},{content:(0,pt.__)("Subheading"),level:3},{content:(0,pt.__)("Heading"),level:2},{content:(0,pt.__)("Subheading"),level:3}]}}},uB=()=>jt({name:lB,metadata:tB,settings:cB});var dB={from:[{type:"block",blocks:["core/categories"],transform:()=>(0,st.createBlock)("core/tag-cloud")}],to:[{type:"block",blocks:["core/categories"],transform:()=>(0,st.createBlock)("core/categories")}]};const pB=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/tag-cloud","title":"Tag Cloud","category":"widgets","description":"A cloud of popular keywords, each sized by how often it appears.","textdomain":"default","attributes":{"numberOfTags":{"type":"number","default":45,"minimum":1,"maximum":100},"taxonomy":{"type":"string","default":"post_tag"},"showTagCounts":{"type":"boolean","default":false},"smallestFontSize":{"type":"string","default":"8pt"},"largestFontSize":{"type":"string","default":"22pt"}},"styles":[{"name":"default","label":"Default","isDefault":true},{"name":"outline","label":"Outline"}],"supports":{"html":false,"align":true,"spacing":{"margin":true,"padding":true},"typography":{"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalLetterSpacing":true},"interactivity":{"clientNavigation":true},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true,"__experimentalDefaultControls":{"radius":true,"color":true,"width":true,"style":true}}},"editorStyle":"wp-block-tag-cloud-editor"}');var mB=function({attributes:e,setAttributes:t}){const{taxonomy:o,showTagCounts:n,numberOfTags:r,smallestFontSize:a,largestFontSize:i}=e,[s]=(0,ct.useSettings)("spacing.units"),l=vt(),c=(0,mt.__experimentalUseCustomUnits)({availableUnits:s?[...s,"pt"]:["%","px","em","rem","pt"]}),u=(0,lt.useSelect)((e=>e(_t.store).getTaxonomies({per_page:-1})),[]),d=(e,o)=>{const[n,r]=(0,mt.__experimentalParseQuantityAndUnitFromRawValue)(o);if(!Number.isFinite(n))return;const s={[e]:o};Object.entries({smallestFontSize:a,largestFontSize:i}).forEach((([t,o])=>{const[n,a]=(0,mt.__experimentalParseQuantityAndUnitFromRawValue)(o);t!==e&&a!==r&&(s[t]=`${n}${r}`)})),t(s)},p={...e,style:{...e?.style,border:void 0}},m=(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{t({taxonomy:"post_tag",showTagCounts:!1,numberOfTags:45,smallestFontSize:"8pt",largestFontSize:"22pt"})},dropdownMenuProps:l,children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>"post_tag"!==o,label:(0,pt.__)("Taxonomy"),onDeselect:()=>t({taxonomy:"post_tag"}),isShownByDefault:!0,children:(0,it.jsx)(mt.SelectControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,pt.__)("Taxonomy"),options:[{label:(0,pt.__)("- Select -"),value:"",disabled:!0},...(u??[]).filter((e=>!!e.show_cloud)).map((e=>({value:e.slug,label:e.name})))],value:o,onChange:e=>t({taxonomy:e})})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>"8pt"!==a||"22pt"!==i,label:(0,pt.__)("Font size"),onDeselect:()=>t({smallestFontSize:"8pt",largestFontSize:"22pt"}),isShownByDefault:!0,children:(0,it.jsxs)(mt.Flex,{gap:4,children:[(0,it.jsx)(mt.FlexItem,{isBlock:!0,children:(0,it.jsx)(mt.__experimentalUnitControl,{label:(0,pt.__)("Smallest size"),value:a,onChange:e=>{d("smallestFontSize",e)},units:c,min:.1,max:100,size:"__unstable-large"})}),(0,it.jsx)(mt.FlexItem,{isBlock:!0,children:(0,it.jsx)(mt.__experimentalUnitControl,{label:(0,pt.__)("Largest size"),value:i,onChange:e=>{d("largestFontSize",e)},units:c,min:.1,max:100,size:"__unstable-large"})})]})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>45!==r,label:(0,pt.__)("Number of tags"),onDeselect:()=>t({numberOfTags:45}),isShownByDefault:!0,children:(0,it.jsx)(mt.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,pt.__)("Number of tags"),value:r,onChange:e=>t({numberOfTags:e}),min:1,max:100,required:!0})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!1!==n,label:(0,pt.__)("Show tag counts"),onDeselect:()=>t({showTagCounts:!1}),isShownByDefault:!0,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Show tag counts"),checked:n,onChange:()=>t({showTagCounts:!n})})})]})});return(0,it.jsxs)(it.Fragment,{children:[m,(0,it.jsx)("div",{...(0,ct.useBlockProps)(),children:(0,it.jsx)(mt.Disabled,{children:(0,it.jsx)(dt(),{skipBlockSupportAttributes:!0,block:"core/tag-cloud",attributes:p})})})]})};const{name:gB}=pB,hB={icon:zx,example:{},edit:mB,transforms:dB},_B=()=>jt({name:gB,metadata:pB,settings:hB});var xB=function(){return xB=Object.assign||function(e){for(var t,o=1,n=arguments.length;o<n;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},xB.apply(this,arguments)};Object.create;Object.create;"function"==typeof SuppressedError&&SuppressedError;function bB(e){return e.toLowerCase()}var fB=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],yB=/[^A-Z0-9]+/gi;function vB(e,t){void 0===t&&(t={});for(var o=t.splitRegexp,n=void 0===o?fB:o,r=t.stripRegexp,a=void 0===r?yB:r,i=t.transform,s=void 0===i?bB:i,l=t.delimiter,c=void 0===l?" ":l,u=kB(kB(e,n,"$1\0$2"),a,"\0"),d=0,p=u.length;"\0"===u.charAt(d);)d++;for(;"\0"===u.charAt(p-1);)p--;return u.slice(d,p).split("\0").map(s).join(c)}function kB(e,t,o){return t instanceof RegExp?e.replace(t,o):t.reduce((function(e,t){return e.replace(t,o)}),e)}function wB(e){return function(e){return e.charAt(0).toUpperCase()+e.substr(1)}(e.toLowerCase())}const CB=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"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":true,"html":false,"reusable":false,"renaming":false,"interactivity":{"clientNavigation":true}},"editorStyle":"wp-block-template-part-editor"}');function jB(e,t){return void 0===t&&(t={}),function(e,t){return void 0===t&&(t={}),vB(e,xB({delimiter:"."},t))}(e,xB({delimiter:"-"},t))}function SB(e,t){const{templateParts:o,isResolving:n}=(0,lt.useSelect)((e=>{const{getEntityRecords:t,isResolving:o}=e(_t.store),n={per_page:-1};return{templateParts:t("postType","wp_template_part",n),isResolving:o("getEntityRecords",["postType","wp_template_part",n])}}),[]);return{templateParts:(0,gt.useMemo)((()=>o&&o.filter((o=>y_(o.theme,o.slug)!==t&&(!e||"uncategorized"===e||o.area===e)))||[]),[o,e,t]),isResolving:n}}function BB(e,t){return(0,lt.useSelect)((o=>{const n=e?`core/template-part/${e}`:"core/template-part",{getBlockRootClientId:r,getPatternsByBlockTypes:a}=o(ct.store);return a(n,r(t))}),[e,t])}function TB(e,t){const{saveEntityRecord:o}=(0,lt.useDispatch)(_t.store);return async(n=[],r=(0,pt.__)("Untitled Template Part"))=>{const a={title:r,slug:jB(r).replace(/[^\w-]+/g,"")||"wp-custom-part",content:(0,st.serialize)(n),area:e},i=await o("postType","wp_template_part",a);t({slug:i.slug,theme:i.theme,area:void 0})}}function NB(e){return(0,lt.useSelect)((t=>{const o=t(_t.store).getCurrentTheme()?.default_template_part_areas||[],n=o.find((t=>t.area===e)),r=o.find((e=>"uncategorized"===e.area));return{icon:n?.icon||r?.icon,label:n?.label||(0,pt.__)("Template Part"),tagName:n?.area_tag??"div"}}),[e])}function PB({areaLabel:e,onClose:t,onSubmit:o}){const[n,r]=(0,gt.useState)("");return(0,it.jsx)(mt.Modal,{title:(0,pt.sprintf)((0,pt.__)("Create new %s"),e.toLowerCase()),onRequestClose:t,focusOnMount:"firstContentElement",size:"small",children:(0,it.jsx)("form",{onSubmit:e=>{e.preventDefault(),o(n)},children:(0,it.jsxs)(mt.__experimentalVStack,{spacing:"5",children:[(0,it.jsx)(mt.TextControl,{label:(0,pt.__)("Name"),value:n,onChange:r,placeholder:(0,pt.__)("Custom Template Part"),__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0}),(0,it.jsxs)(mt.__experimentalHStack,{justify:"right",children:[(0,it.jsx)(mt.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:()=>{t(),r("")},children:(0,pt.__)("Cancel")}),(0,it.jsx)(mt.Button,{variant:"primary",type:"submit",accessibleWhenDisabled:!0,disabled:!n.length,__next40pxDefaultSize:!0,children:(0,pt.__)("Create")})]})]})})})}function IB({area:e,clientId:t,templatePartId:o,onOpenSelectionModal:n,setAttributes:r}){const{templateParts:a,isResolving:i}=SB(e,o),s=BB(e,t),{isBlockBasedTheme:l,canCreateTemplatePart:c}=(0,lt.useSelect)((e=>{const{getCurrentTheme:t,canUser:o}=e(_t.store);return{isBlockBasedTheme:t()?.is_block_theme,canCreateTemplatePart:o("create",{kind:"postType",name:"wp_template_part"})}}),[]),[u,d]=(0,gt.useState)(!1),p=NB(e),m=TB(e,r);return(0,it.jsxs)(mt.Placeholder,{icon:j_(p.icon),label:p.label,instructions:l?(0,pt.sprintf)((0,pt.__)("Choose an existing %s or create a new one."),p.label.toLowerCase()):(0,pt.sprintf)((0,pt.__)("Choose an existing %s."),p.label.toLowerCase()),children:[i&&(0,it.jsx)(mt.Spinner,{}),!i&&!(!a.length&&!s.length)&&(0,it.jsx)(mt.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:n,children:(0,pt.__)("Choose")}),!i&&l&&c&&(0,it.jsx)(mt.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:()=>{d(!0)},children:(0,pt.__)("Start blank")}),u&&(0,it.jsx)(PB,{areaLabel:p.label,onClose:()=>d(!1),onSubmit:e=>{m([],e)}})]})}function DB({setAttributes:e,onClose:t,templatePartId:o=null,area:n,clientId:r}){const[a,i]=(0,gt.useState)(""),{templateParts:s}=SB(n,o),l=(0,gt.useMemo)((()=>Sk(s.map((e=>function(e){return{name:y_(e.theme,e.slug),title:e.title.rendered,blocks:(0,st.parse)(e.content.raw),templatePart:e}}(e))),a)),[s,a]),c=BB(n,r),u=(0,gt.useMemo)((()=>Sk(c,a)),[c,a]),{createSuccessNotice:d}=(0,lt.useDispatch)(bo.store),p=!!l.length,m=!!u.length;return(0,it.jsxs)("div",{className:"block-library-template-part__selection-content",children:[(0,it.jsx)("div",{className:"block-library-template-part__selection-search",children:(0,it.jsx)(mt.SearchControl,{__nextHasNoMarginBottom:!0,onChange:i,value:a,label:(0,pt.__)("Search"),placeholder:(0,pt.__)("Search")})}),p&&(0,it.jsxs)("div",{children:[(0,it.jsx)("h2",{children:(0,pt.__)("Existing template parts")}),(0,it.jsx)(ct.__experimentalBlockPatternsList,{blockPatterns:l,onClickPattern:o=>{var n;n=o.templatePart,e({slug:n.slug,theme:n.theme,area:void 0}),d((0,pt.sprintf)((0,pt.__)('Template Part "%s" inserted.'),n.title?.rendered||n.slug),{type:"snackbar"}),t()}})]}),!p&&!m&&(0,it.jsx)(mt.__experimentalHStack,{alignment:"center",children:(0,it.jsx)("p",{children:(0,pt.__)("No results found.")})})]})}function MB(e){const t=(0,st.getPossibleBlockTransformations)([e]).filter((e=>{if(!e.transforms)return!0;const t=e.transforms?.from?.find((e=>e.blocks&&e.blocks.includes("*"))),o=e.transforms?.to?.find((e=>e.blocks&&e.blocks.includes("*")));return!t&&!o}));if(t.length)return(0,st.switchToBlockType)(e,t[0].name)}function zB(e=[]){return e.flatMap((e=>"core/legacy-widget"===e.name?MB(e):(0,st.createBlock)(e.name,e.attributes,zB(e.innerBlocks)))).filter((e=>!!e))}const AB={per_page:-1,_fields:"id,name,description,status,widgets"};function LB({area:e,setAttributes:t}){const[o,n]=(0,gt.useState)(""),[r,a]=(0,gt.useState)(!1),i=(0,lt.useRegistry)(),{sidebars:s,hasResolved:l}=(0,lt.useSelect)((e=>{const{getSidebars:t,hasFinishedResolution:o}=e(_t.store);return{sidebars:t(AB),hasResolved:o("getSidebars",[AB])}}),[]),{createErrorNotice:c}=(0,lt.useDispatch)(bo.store),u=TB(e,t),d=(0,gt.useMemo)((()=>{const e=(s??[]).filter((e=>"wp_inactive_widgets"!==e.id&&e.widgets.length>0)).map((e=>({value:e.id,label:e.name})));return e.length?[{value:"",label:(0,pt.__)("Select widget area")},...e]:[]}),[s]);if(!l)return(0,it.jsx)(mt.__experimentalSpacer,{marginBottom:"0"});if(l&&!d.length)return null;return(0,it.jsx)(mt.__experimentalSpacer,{marginBottom:"4",children:(0,it.jsxs)(mt.__experimentalHStack,{as:"form",onSubmit:async function(e){if(e.preventDefault(),r||!o)return;a(!0);const t=d.find((({value:e})=>e===o)),{getWidgets:n}=i.resolveSelect(_t.store),s=await n({sidebar:t.value,_embed:"about"}),l=new Set,p=s.flatMap((e=>{const t=function(e){if("block"!==e.id_base){let t;return t=e._embedded.about[0].is_multi?{idBase:e.id_base,instance:e.instance}:{id:e.id},MB((0,st.createBlock)("core/legacy-widget",t))}const t=(0,st.parse)(e.instance.raw.content,{__unstableSkipAutop:!0});if(!t.length)return;const o=t[0];return"core/widget-group"===o.name?(0,st.createBlock)((0,st.getGroupingBlockName)(),void 0,zB(o.innerBlocks)):o.innerBlocks.length>0?(0,st.cloneBlock)(o,void 0,zB(o.innerBlocks)):o}(e);return t||(l.add(e.id_base),[])}));await u(p,(0,pt.sprintf)((0,pt.__)("Widget area: %s"),t.label)),l.size&&c((0,pt.sprintf)((0,pt.__)("Unable to import the following widgets: %s."),Array.from(l).join(", ")),{type:"snackbar"}),a(!1)},children:[(0,it.jsx)(mt.FlexBlock,{children:(0,it.jsx)(mt.SelectControl,{label:(0,pt.__)("Import widget area"),value:o,options:d,onChange:e=>n(e),disabled:!d.length,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0})}),(0,it.jsx)(mt.FlexItem,{style:{marginBottom:"8px",marginTop:"auto"},children:(0,it.jsx)(mt.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",isBusy:r,"aria-disabled":r||!o,children:(0,pt._x)("Import","button label")})})]})})}const{HTMLElementControl:HB}=jo(ct.privateApis);function RB({tagName:e,setAttributes:t,isEntityAvailable:o,templatePartId:n,defaultWrapper:r,hasInnerBlocks:a,clientId:i}){const[s,l]=(0,_t.useEntityProp)("postType","wp_template_part","area",n),[c,u]=(0,_t.useEntityProp)("postType","wp_template_part","title",n),d=(0,lt.useSelect)((e=>e(_t.store).getCurrentTheme()?.default_template_part_areas||[]),[]).map((({label:e,area:t})=>({label:e,value:t})));return(0,it.jsxs)(it.Fragment,{children:[o&&(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(mt.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("Title"),value:c,onChange:e=>{u(e)},onFocus:e=>e.target.select()}),(0,it.jsx)(mt.SelectControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("Area"),labelPosition:"top",options:d,value:s,onChange:l})]}),(0,it.jsx)(HB,{tagName:e||"",onChange:e=>t({tagName:e}),clientId:i,options:[{label:(0,pt.sprintf)((0,pt.__)("Default based on area (%s)"),`<${r}>`),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"}]}),!a&&(0,it.jsx)(LB,{area:s,setAttributes:t})]})}function VB(e){return"contentOnly"!==(0,ct.useBlockEditingMode)()&&(e?void 0:ct.InnerBlocks.ButtonBlockAppender)}function FB(e){const t=(0,lt.useSelect)((e=>{const{getSettings:t}=e(ct.store);return t()?.supportsLayout}),[]),[o]=(0,ct.useSettings)("layout");if(t)return e?.inherit?o||{}:e}function EB({postId:e,layout:t,tagName:o,blockProps:n}){(0,ct.useBlockEditingMode)("disabled");const{content:r,editedBlocks:a}=(0,lt.useSelect)((t=>{if(!e)return{};const{getEditedEntityRecord:o}=t(_t.store),n=o("postType","wp_template_part",e,{context:"view"});return{editedBlocks:n.blocks,content:n.content}}),[e]),i=(0,gt.useMemo)((()=>{if(e)return a||(r&&"string"==typeof r?(0,st.parse)(r):[])}),[e,a,r]),s=(0,ct.useInnerBlocksProps)(n,{value:i,onInput:()=>{},onChange:()=>{},renderAppender:!1,layout:FB(t)});return(0,it.jsx)(o,{...s})}function OB({postId:e,hasInnerBlocks:t,layout:o,tagName:n,blockProps:r}){const a=(0,lt.useSelect)((e=>e(ct.store).getSettings().onNavigateToEntityRecord),[]),[i,s,l]=(0,_t.useEntityBlockEditor)("postType","wp_template_part",{id:e}),c=(0,ct.useInnerBlocksProps)(r,{value:i,onInput:s,onChange:l,renderAppender:VB(t),layout:FB(o)}),u="contentOnly"===(0,ct.useBlockEditingMode)()&&a?{onDoubleClick:()=>a({postId:e,postType:"wp_template_part"})}:{};return(0,it.jsx)(n,{...c,...u})}function GB({postId:e,hasInnerBlocks:t,layout:o,tagName:n,blockProps:r}){const{canViewTemplatePart:a,canEditTemplatePart:i}=(0,lt.useSelect)((t=>({canViewTemplatePart:!!t(_t.store).canUser("read",{kind:"postType",name:"wp_template_part",id:e}),canEditTemplatePart:!!t(_t.store).canUser("update",{kind:"postType",name:"wp_template_part",id:e})})),[e]);if(!a)return null;const s=i?OB:EB;return(0,it.jsx)(s,{postId:e,hasInnerBlocks:t,layout:o,tagName:n,blockProps:r})}function $B({isEntityAvailable:e,area:t,templatePartId:o,isTemplatePartSelectionOpen:n,setIsTemplatePartSelectionOpen:r}){const{templateParts:a}=SB(t,o),i=!!a.length;return e&&i&&("header"===t||"footer"===t)?(0,it.jsx)(mt.MenuItem,{onClick:()=>{r(!0)},"aria-expanded":n,"aria-haspopup":"dialog",children:(0,pt.__)("Replace")}):null}function UB({area:e,clientId:t,isEntityAvailable:o,onSelect:n}){const r=BB(e,t);return o&&!!r.length&&("header"===e||"footer"===e)?(0,it.jsx)(mt.PanelBody,{title:(0,pt.__)("Design"),children:(0,it.jsx)(ct.__experimentalBlockPatternsList,{label:(0,pt.__)("Templates"),blockPatterns:r,onClickPattern:n,showTitlesAsTooltip:!0})}):null}function qB(e,t){if("core/template-part"!==t)return e;if(e.variations){const t=(e,t)=>{const{area:o,theme:n,slug:r}=e;if(o)return o===t.area;if(!r)return!1;const{getCurrentTheme:a,getEntityRecord:i}=(0,lt.select)(_t.store),s=i("postType","wp_template_part",`${n||a()?.stylesheet}//${r}`);return s?.slug?s.slug===t.slug:s?.area===t.area},o=e.variations.map((e=>({...e,...!e.isActive&&{isActive:t},..."string"==typeof e.icon&&{icon:j_(e.icon)}})));return{...e,variations:o}}return e}const{name:WB}=CB,ZB={icon:C_,__experimentalLabel:({slug:e,theme:t})=>{if(!e)return;const{getCurrentTheme:o,getEditedEntityRecord:n}=(0,lt.select)(_t.store),r=n("postType","wp_template_part",(t||o()?.stylesheet)+"//"+e);return r?(0,ao.decodeEntities)(r.title)||function(e,t){return void 0===t&&(t={}),vB(e,xB({delimiter:" ",transform:wB},t))}(r.slug||""):void 0},edit:function({attributes:e,setAttributes:t,clientId:o}){const{createSuccessNotice:n}=(0,lt.useDispatch)(bo.store),{editEntityRecord:r}=(0,lt.useDispatch)(_t.store),a=(0,lt.useSelect)((e=>e(_t.store).getCurrentTheme()?.stylesheet),[]),{slug:i,theme:s=a,tagName:l,layout:c={}}=e,u=y_(s,i),d=(0,ct.useHasRecursion)(u),[p,m]=(0,gt.useState)(!1),{isResolved:g,hasInnerBlocks:h,isMissing:_,area:x,onNavigateToEntityRecord:b,title:f,canUserEdit:y}=(0,lt.useSelect)((t=>{const{getEditedEntityRecord:n,hasFinishedResolution:r}=t(_t.store),{getBlockCount:a,getSettings:i}=t(ct.store),s=["postType","wp_template_part",u],l=u?n(...s):null,c=l?.area||e.area,d=!!u&&r("getEditedEntityRecord",s),p=!!d&&t(_t.store).canUser("update",{kind:"postType",name:"wp_template_part",id:u});return{hasInnerBlocks:a(o)>0,isResolved:d,isMissing:d&&(!l||0===Object.keys(l).length),area:c,onNavigateToEntityRecord:i().onNavigateToEntityRecord,title:l?.title,canUserEdit:!!p}}),[u,e.area,o]),v=NB(x),k=(0,ct.useBlockProps)(),w=!i,C=!w&&!_&&g,j=l||v.tagName;return!h&&(i&&!s||i&&_)?(0,it.jsx)(j,{...k,children:(0,it.jsx)(ct.Warning,{children:(0,pt.sprintf)((0,pt.__)("Template part has been deleted or is unavailable: %s"),i)})}):C&&d?(0,it.jsx)(j,{...k,children:(0,it.jsx)(ct.Warning,{children:(0,pt.__)("Block cannot be rendered inside itself.")})}):(0,it.jsxs)(it.Fragment,{children:[(0,it.jsxs)(ct.RecursionProvider,{uniqueId:u,children:[C&&b&&y&&(0,it.jsx)(ct.BlockControls,{group:"other",children:(0,it.jsx)(mt.ToolbarButton,{onClick:()=>b({postId:u,postType:"wp_template_part"}),children:(0,pt.__)("Edit")})}),y&&(0,it.jsx)(ct.InspectorControls,{group:"advanced",children:(0,it.jsx)(RB,{tagName:l,setAttributes:t,isEntityAvailable:C,templatePartId:u,defaultWrapper:v.tagName,hasInnerBlocks:h,clientId:o})}),w&&(0,it.jsx)(j,{...k,children:(0,it.jsx)(IB,{area:e.area,templatePartId:u,clientId:o,setAttributes:t,onOpenSelectionModal:()=>m(!0)})}),(0,it.jsx)(ct.BlockSettingsMenuControls,{children:({selectedClientIds:e})=>1!==e.length||o!==e[0]?null:(0,it.jsx)($B,{isEntityAvailable:C,area:x,clientId:o,templatePartId:u,isTemplatePartSelectionOpen:p,setIsTemplatePartSelectionOpen:m})}),(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsx)(UB,{area:x,clientId:o,isEntityAvailable:C,onSelect:e=>(async e=>{await r("postType","wp_template_part",u,{blocks:e.blocks,content:(0,st.serialize)(e.blocks)}),n((0,pt.sprintf)((0,pt.__)('Template Part "%s" updated.'),f||i),{type:"snackbar"})})(e)})}),C&&(0,it.jsx)(GB,{tagName:j,blockProps:k,postId:u,hasInnerBlocks:h,layout:c}),!w&&!g&&(0,it.jsx)(j,{...k,children:(0,it.jsx)(mt.Spinner,{})})]}),p&&(0,it.jsx)(mt.Modal,{overlayClassName:"block-editor-template-part__selection-modal",title:(0,pt.sprintf)((0,pt.__)("Choose a %s"),v.label.toLowerCase()),onRequestClose:()=>m(!1),isFullScreen:!0,children:(0,it.jsx)(DB,{templatePartId:u,clientId:o,area:x,setAttributes:t,onClose:()=>m(!1)})})]})}},JB=()=>{(0,vl.addFilter)("blocks.registerBlockType","core/template-part",qB);const e=["core/post-template","core/post-content"];return(0,vl.addFilter)("blockEditor.__unstableCanInsertBlockType","core/block-library/removeTemplatePartsFromPostTemplates",((t,o,n,{getBlock:r,getBlockParentsByBlockName:a})=>{if("core/template-part"!==o.name)return t;for(const t of e){if(r(n)?.name===t||a(n,t).length)return!1}return!0})),jt({name:WB,metadata:CB,settings:ZB})};var QB=(0,it.jsxs)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,it.jsx)(St.Path,{d:"M 12.841306,16.677917 12.001264,12.71529 Q 11.835801,11.930402 11.695793,11.417042 11.560029,10.89944 11.398809,10.568514 11.237588,10.237588 11,10 10.635133,9.6351329 10.219354,9.6351329 9.8078183,9.6308902 9.4387086,10 8.9932313,10.445477 8.8574668,11.022476 8.7259449,11.595233 8.7259449,12.155262 L 7.4955791,11.196425 Q 7.5719467,10.509117 7.8307477,9.9109045 8.0937915,9.3084495 8.6410921,8.7611489 9.1799075,8.2223335 9.7569066,8.086569 q 0.5812414,-0.1400071 1.1242994,0.046669 0.543058,0.1866762 0.975808,0.6194255 0.335168,0.3351686 0.581242,0.767918 0.24183,0.4285067 0.436992,1.0564174 0.195161,0.619426 0.381837,1.527351 l 0.364867,1.756453 1.883733,-1.883732 1.018234,1.018233 z"}),(0,it.jsx)(St.Path,{d:"M12.574 4a.75.75 0 0 1 .53.22l6.723 6.724a2.315 2.315 0 0 1 0 3.264l-.532-.528.531.53-5.61 5.611a2.31 2.31 0 0 1-3.276.001l-6.72-6.716a.75.75 0 0 1-.22-.53V4.75A.75.75 0 0 1 4.75 4h7.824ZM5.5 5.5v6.764l6.501 6.497a.817.817 0 0 0 .889.178.816.816 0 0 0 .264-.178l5.61-5.61a.816.816 0 0 0-.001-1.149l-6.5-6.502H5.5Z"})]});const KB=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/term-count","title":"Term Count","category":"theme","description":"Displays the post count of a taxonomy term.","textdomain":"default","usesContext":["termId","taxonomy"],"attributes":{"bracketType":{"type":"string","enum":["none","round","square","curly","angle"],"default":"round"}},"supports":{"html":false,"color":{"gradients":true,"__experimentalDefaultControls":{"background":true,"text":true}},"spacing":{"padding":true},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true,"__experimentalDefaultControls":{"color":true,"width":true,"style":true}}},"style":"wp-block-term-count"}'),YB=(0,it.jsx)(mt.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(mt.Path,{d:"M 10 6 L 9.609375 9 L 7 9 L 7 10.5 L 9.4121094 10.5 L 9.0878906 13 L 7 13 L 7 14.5 L 8.890625 14.5 L 8.5 17.5 L 10 17.5 L 10.390625 14.5 L 12.890625 14.5 L 12.5 17.5 L 14 17.5 L 14.390625 14.5 L 17 14.5 L 17 13 L 14.587891 13 L 14.912109 10.5 L 17 10.5 L 17 9 L 15.109375 9 L 15.5 6 L 14 6 L 13.609375 9 L 11.109375 9 L 11.5 6 L 10 6 z M 10.912109 10.5 L 13.412109 10.5 L 13.087891 13 L 10.587891 13 L 10.912109 10.5 z"})}),XB=(0,it.jsx)(mt.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(mt.Path,{d:"M 10,6 9.609375,9 H 7 v 1.5 H 9.4121094 L 9.0878906,13 H 7 v 1.5 H 8.890625 L 8.5,17.5 H 10 l 0.390625,-3 h 2.5 L 12.5,17.5 H 14 l 0.390625,-3 H 17 V 13 h -2.412109 l 0.324218,-2.5 H 17 V 9 H 15.109375 L 15.5,6 H 14 l -0.390625,3 h -2.5 L 11.5,6 Z m 0.912109,4.5 h 2.5 L 13.087891,13 h -2.5 z M 18.5,3 c 0,0 1.5,4.004036 1.5,9 0,4.995964 -1.5,9 -1.5,9 H 20 c 0,0 1.5,-4.004036 1.5,-9 C 21.5,7.004036 20,3 20,3 Z M 5.5,21 C 5.5,21 4,16.995964 4,12 4,7.0040356 5.5,3 5.5,3 H 4 c 0,0 -1.5,4.004036 -1.5,9 0,4.995964 1.5,9 1.5,9 z"})}),eT=(0,it.jsx)(mt.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(mt.Path,{d:"M 21.5,21 V 3 H 18 v 1.5 h 2 v 15 H 18 V 21 Z M 2.5,3 V 21 H 6 V 19.5 H 4 V 4.5 H 6 V 3 Z M 10,6 9.609375,9 H 7 v 1.5 H 9.4121094 L 9.0878906,13 H 7 v 1.5 H 8.890625 L 8.5,17.5 H 10 l 0.390625,-3 h 2.5 L 12.5,17.5 H 14 l 0.390625,-3 H 17 V 13 h -2.412109 l 0.324218,-2.5 H 17 V 9 H 15.109375 L 15.5,6 H 14 l -0.390625,3 h -2.5 L 11.5,6 Z m 0.912109,4.5 h 2.5 L 13.087891,13 h -2.5 z"})}),tT=(0,it.jsx)(mt.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(mt.Path,{d:"M 10,6 9.609375,9 H 7 v 1.5 H 9.4121094 L 9.0878906,13 H 7 v 1.5 H 8.890625 L 8.5,17.5 H 10 l 0.390625,-3 h 2.5 L 12.5,17.5 H 14 l 0.390625,-3 H 17 V 13 h -2.412109 l 0.324218,-2.5 H 17 V 9 H 15.109375 L 15.5,6 H 14 l -0.390625,3 h -2.5 L 11.5,6 Z m 0.912109,4.5 h 2.5 L 13.087891,13 h -2.5 z M 18.5,21 c 1.104567,0 2,-0.895433 2,-2 v -4 c 0,-1.104567 0.895433,-2 2,-2 v -2 c -1.104567,0 -2,-0.895433 -2,-2 V 5 c 0,-1.104567 -0.895433,-2 -2,-2 H 17 v 1.5 h 1.5 A 0.5,0.5 0 0 1 19,5 v 5 c 0,1.104567 0.895433,2 2,2 -1.104567,0 -2,0.895433 -2,2 v 5 c 0,0.276142 -0.223858,0.5 -0.5,0.5 H 17 V 21 Z M 5.5,3 c -1.1045668,0 -2,0.8954327 -2,2 v 4 c 0,1.104567 -0.8954332,2 -2,2 v 2 c 1.1045668,0 2,0.895433 2,2 v 4 c 0,1.104567 0.8954332,2 2,2 H 7 V 19.5 H 5.5 A 0.5,0.5 0 0 1 5,19 V 14 C 5,12.895433 4.1045668,12 3,12 4.1045668,12 5,11.104567 5,10 V 5 C 5,4.7238579 5.2238579,4.5 5.5,4.5 H 7 V 3 Z"})}),oT=(0,it.jsx)(mt.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(mt.Path,{d:"M 18.970703,16.53125 23.5,12 18.970703,7.46875 17.910156,8.53125 21.378906,12 17.910156,15.46875 Z M 5.0292969,7.46875 0.5,12 5.0292969,16.53125 6.0898438,15.46875 2.6210938,12 6.0898438,8.53125 Z M 10,6 9.609375,9 H 7 v 1.5 H 9.4121094 L 9.0878906,13 H 7 v 1.5 H 8.890625 L 8.5,17.5 H 10 l 0.390625,-3 h 2.5 L 12.5,17.5 H 14 l 0.390625,-3 H 17 V 13 h -2.412109 l 0.324218,-2.5 H 17 V 9 H 15.109375 L 15.5,6 H 14 l -0.390625,3 h -2.5 L 11.5,6 Z m 0.912109,4.5 h 2.5 L 13.087891,13 h -2.5 z"})});function nT(e,t){const[o]=(0,_t.useEntityProp)("taxonomy",t,"count",e),n=function(){const e=(0,lt.useSelect)((e=>{const{getCurrentPostId:t,getCurrentPostType:o,getCurrentTemplateId:n}=e("core/editor"),r=o(),a=n()||("wp_template"===r?t():null);return a?e(_t.store).getEditedEntityRecord("postType","wp_template",a)?.slug:null}),[]),t=e?.match(/^(category|tag|taxonomy-([^-]+))$|^(((category|tag)|taxonomy-([^-]+))-(.+))$/);let o,n;t&&(t[1]?o=t[2]?t[2]:t[1]:t[3]&&(o=t[6]?t[6]:t[4],n=t[7]),o="tag"===o?"post_tag":o);return(0,lt.useSelect)((e=>{if(!o||!n)return"";const{getEntityRecords:t}=e(_t.store),r=t("taxonomy",o,{slug:n,per_page:1});return r&&r[0]&&r[0].count||""}),[o,n])}(),r=Boolean(e&&t);return{hasContext:r,termCount:r?o||"":n}}const rT={none:{label:(0,pt.__)("No brackets"),icon:YB},round:{label:(0,pt.__)("Round brackets"),icon:XB,before:"(",after:")"},square:{label:(0,pt.__)("Square brackets"),icon:eT,before:"[",after:"]"},curly:{label:(0,pt.__)("Curly brackets"),icon:tT,before:"{",after:"}"},angle:{label:(0,pt.__)("Angle brackets"),icon:oT,before:"<",after:">"}};const{name:aT}=KB,iT={icon:QB,edit:function({attributes:e,setAttributes:t,context:{termId:o,taxonomy:n}}){const{bracketType:r}=e,a=nT(o,n),i=a?.termCount||0,s=(0,ct.useBlockProps)(),l=Object.entries(rT).map((([e,{label:o,icon:n}])=>({role:"menuitemradio",title:o,isActive:r===e,icon:n,onClick:()=>{t({bracketType:e})}})));return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.BlockControls,{group:"block",children:(0,it.jsx)(mt.ToolbarDropdownMenu,{icon:rT[r]?.icon??YB,label:(0,pt.__)("Change bracket type"),controls:l})}),(0,it.jsx)("div",{...s,children:((e,t)=>{const{before:o="",after:n=""}=rT[t]||{};return`${o}${e}${n}`})(i,r)})]})}},sT=()=>jt({name:aT,metadata:KB,settings:iT});var lT=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M6.08 10.103h2.914L9.657 12h1.417L8.23 4H6.846L4 12h1.417l.663-1.897Zm1.463-4.137.994 2.857h-2l1.006-2.857ZM11 16H4v-1.5h7V16Zm1 0h8v-1.5h-8V16Zm-4 4H4v-1.5h4V20Zm7-1.5V20H9v-1.5h6Z"})});const cT=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"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","usesContext":["termId","taxonomy"],"attributes":{"textAlign":{"type":"string"}},"supports":{"align":["wide","full"],"html":false,"color":{"link":true,"__experimentalDefaultControls":{"background":true,"text":true}},"spacing":{"padding":true,"margin":true},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true,"__experimentalDefaultControls":{"radius":true,"color":true,"width":true,"style":true}}}}');function uT(e,t){const[o,n,r]=(0,_t.useEntityProp)("taxonomy",t,"description",e),a=function(){const e=(0,lt.useSelect)((e=>{const{getCurrentPostId:t,getCurrentPostType:o,getCurrentTemplateId:n}=e("core/editor"),r=o(),a=n()||("wp_template"===r?t():null);return a?e(_t.store).getEditedEntityRecord("postType","wp_template",a)?.slug:null}),[]),t=e?.match(/^(category|tag|taxonomy-([^-]+))$|^(((category|tag)|taxonomy-([^-]+))-(.+))$/);let o,n;t&&(t[1]?o=t[2]?t[2]:t[1]:t[3]&&(o=t[6]?t[6]:t[4],n=t[7]),o="tag"===o?"post_tag":o);return(0,lt.useSelect)((e=>{if(!o||!n)return"";const{getEntityRecords:t}=e(_t.store),r=t("taxonomy",o,{slug:n,per_page:1});return r&&r[0]&&r[0].description||""}),[o,n])}(),i=Boolean(e&&t);return{hasContext:i,setDescription:n,termDescription:i?r?.rendered||o||"":a}}const{name:dT}=cT,pT={icon:lT,edit:function({attributes:e,setAttributes:t,mergedStyle:o,context:{termId:n,taxonomy:r}}){const{textAlign:a}=e,{termDescription:i}=uT(n,r),s=(0,ct.useBlockProps)({className:Dt({[`has-text-align-${a}`]:a}),style:o});return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.BlockControls,{group:"block",children:(0,it.jsx)(ct.AlignmentControl,{value:a,onChange:e=>{t({textAlign:e})}})}),(0,it.jsx)("div",{...s,children:i?(0,it.jsx)("div",{dangerouslySetInnerHTML:{__html:i}}):(0,it.jsx)("div",{className:"wp-block-term-description__placeholder",children:(0,it.jsx)("span",{children:(0,pt.__)("Term Description")})})})]})},example:{}},mT=()=>jt({name:dT,metadata:cT,settings:pT});var gT=(0,it.jsxs)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,it.jsx)(St.Path,{d:"m14.95 13.889-1.061 1.061-5.552-5.553 1.06-1.06 5.552 5.552Z"}),(0,it.jsx)(St.Path,{d:"M12.574 4a.75.75 0 0 1 .53.22l6.723 6.724a2.315 2.315 0 0 1 0 3.264l-.532-.528.531.53-5.61 5.611a2.31 2.31 0 0 1-3.276.001l-6.72-6.716a.75.75 0 0 1-.22-.53V4.75A.75.75 0 0 1 4.75 4h7.824ZM5.5 5.5v6.764l6.501 6.497a.817.817 0 0 0 .889.178.816.816 0 0 0 .264-.178l5.61-5.61a.816.816 0 0 0-.001-1.149l-6.5-6.502H5.5Z"})]});const hT=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/term-name","title":"Term Name","category":"theme","description":"Displays the name of a taxonomy term.","keywords":["term title"],"textdomain":"default","usesContext":["termId","taxonomy"],"attributes":{"textAlign":{"type":"string"},"level":{"type":"number","default":0},"isLink":{"type":"boolean","default":false}},"supports":{"align":["wide","full"],"html":false,"color":{"gradients":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true,"link":true}},"spacing":{"padding":true},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true,"__experimentalDefaultControls":{"color":true,"width":true,"style":true}}},"style":"wp-block-term-name"}');function _T(e,t){const o=(0,lt.useSelect)((o=>e&&t?o(_t.store).getEntityRecord("taxonomy",t,e):null),[e,t]),n=function(){const e=(0,lt.useSelect)((e=>{const{getCurrentPostId:t,getCurrentPostType:o,getCurrentTemplateId:n}=e("core/editor"),r=o(),a=n()||("wp_template"===r?t():null);return a?e(_t.store).getEditedEntityRecord("postType","wp_template",a)?.slug:null}),[]),t=e?.match(/^(category|tag|taxonomy-([^-]+))$|^(((category|tag)|taxonomy-([^-]+))-(.+))$/);let o,n;t&&(t[3]&&(o=t[6]?t[6]:t[4],n=t[7]),o="tag"===o?"post_tag":o);return(0,lt.useSelect)((e=>{if(!o||!n)return null;const{getEntityRecords:t}=e(_t.store),r=t("taxonomy",o,{slug:n,per_page:1});return r&&r[0]?r[0]:null}),[o,n])}(),r=Boolean(e&&t);return{hasContext:r,term:r?o:n}}const{name:xT}=hT,bT={icon:gT,edit:function({attributes:e,setAttributes:t,context:{termId:o,taxonomy:n}}){const{textAlign:r,level:a=0,isLink:i}=e,{term:s}=_T(o,n),l=s?.name?(0,ao.decodeEntities)(s.name):(0,pt.__)("Term Name"),c=(0,ct.useBlockProps)({className:Dt({[`has-text-align-${r}`]:r})}),u=vt(),d=0===a?"p":`h${a}`;let p=l;return i&&(p=(0,it.jsx)("a",{href:"#term-name-pseudo-link",onClick:e=>e.preventDefault(),children:l})),(0,it.jsxs)(it.Fragment,{children:[(0,it.jsxs)(ct.BlockControls,{group:"block",children:[(0,it.jsx)(ct.HeadingLevelDropdown,{value:a,options:[0,1,2,3,4,5,6],onChange:e=>{t({level:e})}}),(0,it.jsx)(ct.AlignmentControl,{value:r,onChange:e=>{t({textAlign:e})}})]}),(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsx)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{t({isLink:!1})},dropdownMenuProps:u,children:(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!!i,label:(0,pt.__)("Make term name a link"),onDeselect:()=>t({isLink:!1}),isShownByDefault:!0,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Make term name a link"),onChange:()=>t({isLink:!i}),checked:i})})})}),(0,it.jsx)(d,{...c,children:p})]})}},fT=()=>jt({name:xT,metadata:hT,settings:bT}),yT=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/terms-query","title":"Terms Query","category":"theme","description":"An advanced block that allows displaying taxonomy terms based on different query parameters and visual configurations.","keywords":["terms","taxonomy","categories","tags","list"],"textdomain":"default","attributes":{"termQuery":{"type":"object","default":{"perPage":10,"taxonomy":"category","order":"asc","orderBy":"name","include":[],"hideEmpty":true,"showNested":false,"inherit":false}},"tagName":{"type":"string","default":"div"}},"usesContext":["templateSlug"],"providesContext":{"termQuery":"termQuery"},"supports":{"align":["wide","full"],"html":false,"layout":true,"interactivity":true}}');function vT(){const e=(0,lt.useSelect)((e=>e(_t.store).getTaxonomies({per_page:-1})),[]);return(0,gt.useMemo)((()=>e?.filter((({visibility:e})=>e?.publicly_queryable))||[]),[e])}function kT({value:e,onChange:t,...o}){const n=vT().map((e=>({label:e.name,value:e.slug})));return(0,it.jsx)(mt.SelectControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,options:n,value:e,onChange:t,...o})}function wT({orderBy:e,order:t,onChange:o,...n}){return(0,it.jsx)(mt.SelectControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,options:[{label:(0,pt.__)("Name: A → Z"),value:"name/asc"},{label:(0,pt.__)("Name: Z → A"),value:"name/desc"},{label:(0,pt.__)("Count, high to low"),value:"count/desc"},{label:(0,pt.__)("Count, low to high"),value:"count/asc"}],value:e+"/"+t,onChange:e=>{const[t,n]=e.split("/");o(t,n)},...n})}function CT({value:e,onChange:t,...o}){return(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,checked:!e,onChange:e=>t(!e),...o})}function jT({value:e,onChange:t,...o}){return(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,checked:e,onChange:t,...o})}function ST({value:e,onChange:t,label:o}){return(0,it.jsxs)(mt.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:o,isBlock:!0,onChange:e=>{t({inherit:"default"===e})},help:e?(0,pt.__)("Display terms based on the current taxonomy archive. For hierarchical taxonomies, shows children of the current term. For non-hierarchical taxonomies, shows all terms."):(0,pt.__)("Display terms based on specific criteria."),value:e?"default":"custom",children:[(0,it.jsx)(mt.__experimentalToggleGroupControlOption,{value:"default",label:(0,pt.__)("Default")}),(0,it.jsx)(mt.__experimentalToggleGroupControlOption,{value:"custom",label:(0,pt.__)("Custom")})]})}function BT({value:e,onChange:t,...o}){return(0,it.jsx)(mt.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,value:e,min:0,max:100,onChange:t,help:(0,pt.__)("Limit the number of terms you want to show. To show all terms, use 0 (zero)."),...o})}const{HTMLElementControl:TT}=jo(ct.privateApis);function NT({TagName:e,setAttributes:t,clientId:o}){return(0,it.jsx)(ct.InspectorControls,{group:"advanced",children:(0,it.jsx)(TT,{tagName:e,onChange:e=>t({tagName:e}),clientId:o,options:[{label:(0,pt.__)("Default (<div>)"),value:"div"},{label:"<main>",value:"main"},{label:"<section>",value:"section"},{label:"<aside>",value:"aside"}]})})}const PT=[],IT={order:"asc",_fields:"id,name",context:"view"};function DT({value:e,taxonomy:t,onChange:o,...n}){const[r,a]=(0,gt.useState)(""),[i,s]=(0,gt.useState)(PT),[l,c]=(0,gt.useState)(PT),u=(0,xt.useDebounce)(a,250),{searchResults:d,searchHasResolved:p}=(0,lt.useSelect)((o=>{if(!r)return{searchResults:PT,searchHasResolved:!0};const{getEntityRecords:n,hasFinishedResolution:a}=o(_t.store),i=["taxonomy",t,{...IT,search:r,orderby:"name",exclude:e,per_page:20}];return{searchResults:n(...i),searchHasResolved:a("getEntityRecords",i)}}),[r,t,e]),m=(0,lt.useSelect)((o=>{if(!e?.length)return PT;const{getEntityRecords:n}=o(_t.store);return n("taxonomy",t,{...IT,include:e,per_page:e.length})}),[e,t]);(0,gt.useEffect)((()=>{if(e?.length||s(PT),!m?.length)return;const t=e.reduce(((e,t)=>{const o=m.find((e=>e.id===t));return o&&e.push({id:t,value:(0,ao.decodeEntities)(o.name)}),e}),[]);s(t)}),[e,m]);const g=(0,gt.useMemo)((()=>{if(!d?.length)return{names:PT,mapByName:{}};const e=[],t={};return d.forEach((o=>{const n=(0,ao.decodeEntities)(o.name);e.push(n),t[n]=o})),{names:e,mapByName:t}}),[d]);(0,gt.useEffect)((()=>{p&&c(g.names)}),[g.names,p]);return(0,it.jsx)(mt.FormTokenField,{__next40pxDefaultSize:!0,value:i,onInputChange:u,suggestions:l,onChange:e=>{const t=Array.from(e.reduce(((e,t)=>{const o=((e,t)=>t?.id||e?.[t]?.id)(g.mapByName,t);return o&&e.add(o),e}),new Set));c(PT),o(t)},__experimentalShowHowTo:!1,__nextHasNoMarginBottom:!0,...n})}function MT({attributes:e,setQuery:t,setAttributes:o,clientId:n,templateSlug:r}){const{termQuery:a,tagName:i}=e,{taxonomy:s,orderBy:l,order:c,hideEmpty:u,inherit:d,showNested:p,perPage:m,include:g}=a,h=vt(),_=vT(),x=_.find((e=>e.slug===s))?.hierarchical,b=!!d,f=["taxonomy","category","tag","archive"].includes(r)||r?.startsWith("taxonomy-")||r?.startsWith("category-")||r?.startsWith("tag-"),y=x,v=!!g?.length,k=(0,pt.__)("Query type"),w=(0,pt.__)("Taxonomy"),C=(0,pt.__)("Order by"),j=(0,pt.__)("Show empty terms"),S=(0,pt.__)("Show nested terms"),B=(0,pt.__)("Max terms"),T=(0,pt.__)("Selected terms");return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{o({termQuery:{taxonomy:"category",order:"asc",orderBy:"name",include:[],hideEmpty:!0,showNested:!1,inherit:!1,perPage:10}})},dropdownMenuProps:h,children:[f&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!1!==d,label:k,onDeselect:()=>t({inherit:!1}),isShownByDefault:!0,children:(0,it.jsx)(ST,{label:k,value:d,onChange:t})}),!b&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>"category"!==s,label:w,onDeselect:()=>{t({taxonomy:"category"})},isShownByDefault:!0,children:(0,it.jsx)(kT,{label:w,value:s,onChange:e=>t({taxonomy:e,include:[]})})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>"name"!==l||"asc"!==c,label:C,onDeselect:()=>t({orderBy:"name",order:"asc"}),isShownByDefault:!0,children:(0,it.jsx)(wT,{label:C,orderBy:l,order:c,onChange:(e,o)=>{t({orderBy:e,order:o})},disabled:v,help:v?(0,pt.__)("When specific terms are selected, the order is based on their selection order."):void 0})}),!b&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!!g?.length,label:T,onDeselect:()=>t({include:[],orderBy:"name",order:"asc"}),isShownByDefault:!0,children:(0,it.jsx)(DT,{label:T,taxonomy:s,value:g,onChange:e=>t({include:e})})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!0!==u,label:j,onDeselect:()=>t({hideEmpty:!0}),isShownByDefault:!0,children:(0,it.jsx)(CT,{label:j,value:u,onChange:e=>t({hideEmpty:e})})}),y&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!1!==p,label:S,onDeselect:()=>t({showNested:!1}),isShownByDefault:!0,children:(0,it.jsx)(jT,{label:S,value:p,onChange:e=>t({showNested:e}),disabled:v,help:v?(0,pt.__)("When specific terms are selected, only those are displayed."):void 0})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>10!==m,label:B,onDeselect:()=>t({perPage:10}),isShownByDefault:!0,children:(0,it.jsx)(BT,{label:B,value:m,onChange:e=>t({perPage:e})})})]})}),(0,it.jsx)(NT,{TagName:i,setAttributes:o,clientId:n})]})}const zT=[["core/term-template"]];function AT({attributes:e,setAttributes:t,clientId:o,context:n}){const{tagName:r}=e,a=(0,ct.useBlockProps)(),i=(0,ct.useInnerBlocksProps)(a,{template:zT}),s=(0,gt.useCallback)((e=>t((t=>({termQuery:{...t.termQuery,...e}})))),[t]);return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(MT,{attributes:e,setQuery:s,setAttributes:t,clientId:o,templateSlug:n?.templateSlug}),(0,it.jsx)(r,{...i})]})}function LT({attributes:e,clientId:t,name:o}){const{blockType:n,activeBlockVariation:r,scopeVariations:a}=(0,lt.useSelect)((t=>{const{getActiveBlockVariation:n,getBlockType:r,getBlockVariations:a}=t(st.store);return{blockType:r(o),activeBlockVariation:n(o,e),scopeVariations:a(o,"block")}}),[o,e]),i=r?.icon?.src||r?.icon||n?.icon?.src,s=r?.title||n?.title,{replaceInnerBlocks:l}=(0,lt.useDispatch)(ct.store),c=(0,ct.useBlockProps)();return(0,it.jsx)("div",{...c,children:(0,it.jsx)(ct.__experimentalBlockVariationPicker,{icon:i,label:s,variations:a,onSelect:e=>{e.innerBlocks&&l(t,(0,st.createBlocksFromInnerBlocksTemplate)(e.innerBlocks),!1)}})})}var HT=e=>{const t=(0,lt.useSelect)((t=>!!t(ct.store).getBlocks(e.clientId).length),[e.clientId])?AT:LT;return(0,it.jsx)(t,{...e})};const RT=(0,it.jsx)(mt.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:(0,it.jsx)(mt.Path,{d:"M 41,9 H 7 v 3 h 34 z m 0,9 H 7 v 3 h 34 z m 0,18 H 7 v 3 h 34 z m 0,-9 H 7 v 3 h 34 z"})}),VT=(0,it.jsx)(mt.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:(0,it.jsx)(mt.Path,{d:"m 36,36 h 5 v 3 h -5 z m 0,-9 h 5 v 3 h -5 z m 0,-9 h 5 v 3 h -5 z m 0,-9 h 5 v 3 H 36 Z M 31,9 H 7 v 3 h 24 z m 0,9 H 7 v 3 h 24 z m 0,18 H 7 v 3 h 24 z m 0,-9 H 7 v 3 h 24 z"})}),FT=["core/term-name",{isLink:!0}];var ET=[{name:"name",title:(0,pt.__)("Name"),description:(0,pt.__)("Display the terms' names."),attributes:{},icon:RT,scope:["block"],innerBlocks:[["core/term-template",{},[FT]]]},{name:"name-count",title:(0,pt.__)("Name & Count"),description:(0,pt.__)("Display the terms' names and number of posts assigned to each term."),attributes:{},icon:VT,scope:["block"],innerBlocks:[["core/term-template",{},[["core/group",{layout:{type:"flex",flexWrap:"nowrap"}},[FT,["core/term-count"]]]]]]}];const{name:OT}=yT,GT={icon:qv,edit:HT,save:function({attributes:{tagName:e="div"}}){const t=ct.useBlockProps.save(),o=ct.useInnerBlocksProps.save(t);return(0,it.jsx)(e,{...o})},example:{},variations:ET},$T=()=>jt({name:OT,metadata:yT,settings:GT}),UT=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/term-template","title":"Term Template","category":"theme","ancestor":["core/terms-query"],"description":"Contains the block elements used to render a taxonomy term, like the name, description, and more.","textdomain":"default","usesContext":["termQuery"],"supports":{"reusable":false,"html":false,"align":["wide","full"],"layout":true,"color":{"gradients":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"spacing":{"margin":true,"padding":true,"blockGap":{"__experimentalDefault":"1.25em"},"__experimentalDefaultControls":{"blockGap":true,"padding":false,"margin":false}},"interactivity":{"clientNavigation":true},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true}},"style":"wp-block-term-template","editorStyle":"wp-block-term-template-editor"}'),qT=[["core/term-name"]];function WT({classList:e}){const t=(0,ct.useInnerBlocksProps)({className:Dt("wp-block-term",e)},{template:qT,__unstableDisableLayoutClassNames:!0});return(0,it.jsx)("li",{...t})}const ZT=(0,gt.memo)((function({blocks:e,blockContextId:t,classList:o,isHidden:n,setActiveBlockContextId:r}){const a=(0,ct.__experimentalUseBlockPreview)({blocks:e,props:{className:Dt("wp-block-term",o)}}),i=()=>{r(t)},s={display:n?"none":void 0};return(0,it.jsx)("li",{...a,tabIndex:0,role:"button",onClick:i,onKeyPress:i,style:s})}));const{name:JT}=UT,QT={icon:Oa,edit:function({clientId:e,attributes:{layout:t},setAttributes:o,context:{termQuery:{taxonomy:n,order:r,orderBy:a,hideEmpty:i,showNested:s=!1,perPage:l,include:c}={}},__unstableLayoutClassNames:u}){const{type:d,columnCount:p=3}=t||{},[m,g]=(0,gt.useState)(),h={hide_empty:i,order:r,orderby:a,per_page:l||-1};s||c?.length||(h.parent=0),c?.length&&(h.include=c,h.orderby="include",h.order="asc");const{records:_}=(0,_t.useEntityRecords)("taxonomy",n,h),x=(0,lt.useSelect)((t=>t(ct.store).getBlocks(e)),[e]),b=(0,ct.useBlockProps)({className:u}),f=(0,gt.useMemo)((()=>_?.map((e=>({taxonomy:n,termId:e.id,classList:`term-${e.id}`,termData:e})))),[_,n]);if(!_)return(0,it.jsx)("ul",{...b,children:(0,it.jsx)("li",{className:"wp-block-term term-loading",children:(0,it.jsx)("div",{className:"term-loading-placeholder"})})});if(!_.length)return(0,it.jsxs)("p",{...b,children:[" ",(0,pt.__)("No terms found.")]});const y=e=>o((t=>({layout:{...t.layout,...e}})));return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.BlockControls,{children:(0,it.jsx)(mt.ToolbarGroup,{controls:[{icon:Bm,title:(0,pt._x)("List view","Term template block display setting"),onClick:()=>y({type:"default"}),isActive:"default"===d||"constrained"===d},{icon:qd,title:(0,pt._x)("Grid view","Term template block display setting"),onClick:()=>y({type:"grid",columnCount:p}),isActive:"grid"===d}]})}),(0,it.jsx)("ul",{...b,children:f?.map((e=>(0,it.jsxs)(ct.BlockContextProvider,{value:e,children:[e.termId===(m||f[0]?.termId)?(0,it.jsx)(WT,{classList:e.classList}):null,(0,it.jsx)(ZT,{blocks:x,blockContextId:e.termId,classList:e.classList,setActiveBlockContextId:g,isHidden:e.termId===(m||f[0]?.termId)})]},e.termId)))})]})},save:function(){return(0,it.jsx)(ct.InnerBlocks.Content,{})},example:{}},KT=()=>jt({name:JT,metadata:UT,settings:QT});const YT=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"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":false,"interactivity":{"clientNavigation":true}},"editorStyle":"wp-block-text-columns-editor","style":"wp-block-text-columns"}');var XT={to:[{type:"block",blocks:["core/columns"],transform:({className:e,columns:t,content:o,width:n})=>(0,st.createBlock)("core/columns",{align:"wide"===n||"full"===n?n:void 0,className:e,columns:t},o.map((({children:e})=>(0,st.createBlock)("core/column",{},[(0,st.createBlock)("core/paragraph",{content:e})]))))}]};const{name:eN}=YT,tN={transforms:XT,getEditWrapperProps(e){const{width:t}=e;if("wide"===t||"full"===t)return{"data-align":t}},edit:function({attributes:e,setAttributes:t}){const{width:o,content:n,columns:r}=e;return Jm()("The Text Columns block",{since:"5.3",alternative:"the Columns block"}),(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.BlockControls,{children:(0,it.jsx)(ct.BlockAlignmentToolbar,{value:o,onChange:e=>t({width:e}),controls:["center","wide","full"]})}),(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsx)(mt.PanelBody,{children:(0,it.jsx)(mt.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,pt.__)("Columns"),value:r,onChange:e=>t({columns:e}),min:2,max:4,required:!0})})}),(0,it.jsx)("div",{...(0,ct.useBlockProps)({className:`align${o} columns-${r}`}),children:Array.from({length:r}).map(((e,o)=>(0,it.jsx)("div",{className:"wp-block-column",children:(0,it.jsx)(ct.RichText,{tagName:"p",value:n?.[o]?.children,onChange:e=>{t({content:[...n.slice(0,o),{children:e},...n.slice(o+1)]})},"aria-label":(0,pt.sprintf)((0,pt.__)("Column %d text"),o+1),placeholder:(0,pt.__)("New Column")})},`column-${o}`)))})]})},save:function({attributes:e}){const{width:t,content:o,columns:n}=e;return(0,it.jsx)("div",{...ct.useBlockProps.save({className:`align${t} columns-${n}`}),children:Array.from({length:n}).map(((e,t)=>(0,it.jsx)("div",{className:"wp-block-column",children:(0,it.jsx)(ct.RichText.Content,{tagName:"p",value:o?.[t]?.children})},`column-${t}`)))})}},oN=()=>jt({name:eN,metadata:YT,settings:tN}),nN={attributes:{content:{type:"string",source:"html",selector:"pre",default:""},textAlign:{type:"string"}},save({attributes:e}){const{textAlign:t,content:o}=e;return(0,it.jsx)(ct.RichText.Content,{tagName:"pre",style:{textAlign:t},value:o})}},rN={attributes:{content:{type:"string",source:"html",selector:"pre",default:"",__unstablePreserveWhiteSpace:!0,role:"content"},textAlign:{type:"string"}},supports:{anchor:!0,color:{gradients:!0,link:!0},typography:{fontSize:!0,__experimentalFontFamily:!0},spacing:{padding:!0}},save({attributes:e}){const{textAlign:t,content:o}=e,n=Dt({[`has-text-align-${t}`]:t});return(0,it.jsx)("pre",{...ct.useBlockProps.save({className:n}),children:(0,it.jsx)(ct.RichText.Content,{value:o})})},migrate:Yo,isEligible:({style:e})=>e?.typography?.fontFamily};var aN=[rN,nN];const iN=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"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":"rich-text","source":"rich-text","selector":"pre","__unstablePreserveWhiteSpace":true,"role":"content"},"textAlign":{"type":"string"}},"supports":{"anchor":true,"background":{"backgroundImage":true,"backgroundSize":true,"__experimentalDefaultControls":{"backgroundImage":true}},"color":{"gradients":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true}},"dimensions":{"minHeight":true,"__experimentalDefaultControls":{"minHeight":false}},"typography":{"fontSize":true,"__experimentalFontFamily":true,"lineHeight":true,"__experimentalFontStyle":true,"__experimentalFontWeight":true,"__experimentalLetterSpacing":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalWritingMode":true,"__experimentalDefaultControls":{"fontSize":true}},"spacing":{"margin":true,"padding":true,"__experimentalDefaultControls":{"margin":false,"padding":false}},"__experimentalBorder":{"radius":true,"width":true,"color":true,"style":true},"interactivity":{"clientNavigation":true}},"style":"wp-block-verse","editorStyle":"wp-block-verse-editor"}');const sN={from:[{type:"block",blocks:["core/paragraph"],transform:e=>(0,st.createBlock)("core/verse",e)}],to:[{type:"block",blocks:["core/paragraph"],transform:e=>(0,st.createBlock)("core/paragraph",e)}]};var lN=sN;const{name:cN}=iN,uN={icon:aC,example:{attributes:{content:(0,pt.__)("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:lN,deprecated:aN,merge:(e,t)=>({content:e.content+"\n\n"+t.content}),edit:function({attributes:e,setAttributes:t,mergeBlocks:o,onRemove:n,insertBlocksAfter:r,style:a}){const{textAlign:i,content:s}=e,l=(0,ct.useBlockProps)({className:Dt({[`has-text-align-${i}`]:i}),style:a});return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.BlockControls,{children:(0,it.jsx)(ct.AlignmentToolbar,{value:i,onChange:e=>{t({textAlign:e})}})}),(0,it.jsx)(ct.RichText,{tagName:"pre",identifier:"content",preserveWhiteSpace:!0,value:s,onChange:e=>{t({content:e})},"aria-label":(0,pt.__)("Verse text"),placeholder:(0,pt.__)("Write verse…"),onRemove:n,onMerge:o,textAlign:i,...l,__unstablePastePlainText:!0,__unstableOnSplitAtDoubleLineEnd:()=>r((0,st.createBlock)((0,st.getDefaultBlockName)()))})]})},save:function({attributes:e}){const{textAlign:t,content:o}=e,n=Dt({[`has-text-align-${t}`]:t});return(0,it.jsx)("pre",{...ct.useBlockProps.save({className:n}),children:(0,it.jsx)(ct.RichText.Content,{value:o})})}},dN=()=>jt({name:cN,metadata:iN,settings:uN});var pN=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.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 mN=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"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":"rich-text","source":"rich-text","selector":"figcaption","role":"content"},"controls":{"type":"boolean","source":"attribute","selector":"video","attribute":"controls","default":true},"id":{"type":"number","role":"content"},"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"},"blob":{"type":"string","role":"local"},"src":{"type":"string","source":"attribute","selector":"video","attribute":"src","role":"content"},"playsInline":{"type":"boolean","source":"attribute","selector":"video","attribute":"playsinline"},"tracks":{"role":"content","type":"array","items":{"type":"object"},"default":[]}},"supports":{"anchor":true,"align":true,"spacing":{"margin":true,"padding":true,"__experimentalDefaultControls":{"margin":false,"padding":false}},"interactivity":{"clientNavigation":true}},"editorStyle":"wp-block-video-editor","style":"wp-block-video"}');function gN({tracks:e=[]}){return e.map((e=>{const{id:t,...o}=e;return(0,it.jsx)("track",{...o},t??o.src)}))}const{attributes:hN}=mN,_N={attributes:hN,save({attributes:e}){const{autoplay:t,caption:o,controls:n,loop:r,muted:a,poster:i,preload:s,src:l,playsInline:c,tracks:u}=e;return(0,it.jsxs)("figure",{...ct.useBlockProps.save(),children:[l&&(0,it.jsx)("video",{autoPlay:t,controls:n,loop:r,muted:a,poster:i,preload:"metadata"!==s?s:void 0,src:l,playsInline:c,children:(0,it.jsx)(gN,{tracks:u})}),!ct.RichText.isEmpty(o)&&(0,it.jsx)(ct.RichText.Content,{tagName:"figcaption",value:o})]})}};var xN=[_N];const bN=[{value:"auto",label:(0,pt.__)("Auto")},{value:"metadata",label:(0,pt.__)("Metadata")},{value:"none",label:(0,pt._x)("None","Preload value")}];var fN=({setAttributes:e,attributes:t})=>{const{autoplay:o,controls:n,loop:r,muted:a,playsInline:i,preload:s}=t,l=(0,pt.__)("Autoplay may cause usability issues for some users."),c=gt.Platform.select({web:(0,gt.useCallback)((e=>e?l:null),[]),native:l}),u=(0,gt.useMemo)((()=>{const t=t=>o=>{e({[t]:o,..."autoplay"===t&&{muted:o,playsInline:o}})};return{autoplay:t("autoplay"),loop:t("loop"),muted:t("muted"),controls:t("controls"),playsInline:t("playsInline")}}),[]),d=(0,gt.useCallback)((t=>{e({preload:t})}),[]);return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Autoplay"),isShownByDefault:!0,hasValue:()=>!!o,onDeselect:()=>{e({autoplay:!1,muted:!1})},children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Autoplay"),onChange:u.autoplay,checked:!!o,help:c})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Loop"),isShownByDefault:!0,hasValue:()=>!!r,onDeselect:()=>{e({loop:!1})},children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Loop"),onChange:u.loop,checked:!!r})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Muted"),isShownByDefault:!0,hasValue:()=>!!a,onDeselect:()=>{e({muted:!1})},children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Muted"),onChange:u.muted,checked:!!a,disabled:o,help:o?(0,pt.__)("Muted because of Autoplay."):null})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Playback controls"),isShownByDefault:!0,hasValue:()=>!n,onDeselect:()=>{e({controls:!0})},children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Playback controls"),onChange:u.controls,checked:!!n})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Play inline"),isShownByDefault:!0,hasValue:()=>!!i,onDeselect:()=>{e({playsInline:!1})},children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Play inline"),onChange:u.playsInline,checked:!!i,disabled:o,help:o?(0,pt.__)("Play inline enabled because of Autoplay."):(0,pt.__)("When enabled, videos will play directly within the webpage on mobile browsers, instead of opening in a fullscreen player.")})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Preload"),isShownByDefault:!0,hasValue:()=>"metadata"!==s,onDeselect:()=>{e({preload:"metadata"})},children:(0,it.jsx)(mt.SelectControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("Preload"),value:s,onChange:d,options:bN,hideCancelButton:!0})})]})};const{Badge:yN}=jo(mt.privateApis),vN=["text/vtt"],kN=[{label:(0,pt.__)("Subtitles"),value:"subtitles"},{label:(0,pt.__)("Captions"),value:"captions"},{label:(0,pt.__)("Descriptions"),value:"descriptions"},{label:(0,pt.__)("Chapters"),value:"chapters"},{label:(0,pt.__)("Metadata"),value:"metadata"}],wN={src:"",label:"",srcLang:"en",kind:"subtitles",default:!1};function CN({tracks:e,onEditPress:t}){const o=e.map(((e,o)=>(0,it.jsxs)(mt.__experimentalHStack,{className:"block-library-video-tracks-editor__track-list-track",children:[(0,it.jsx)("span",{children:e.label}),(0,it.jsxs)(mt.__experimentalHStack,{justify:"flex-end",children:[e.default&&(0,it.jsx)(yN,{children:(0,pt.__)("Default")}),(0,it.jsx)(mt.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:()=>t(o),"aria-label":(0,pt.sprintf)((0,pt._x)("Edit %s","text tracks"),e.label),children:(0,pt.__)("Edit")})]})]},e.id??e.src)));return(0,it.jsx)(mt.MenuGroup,{label:(0,pt.__)("Text tracks"),className:"block-library-video-tracks-editor__track-list",children:o})}function jN({track:e,onChange:t,onClose:o,onRemove:n,allowSettingDefault:r}){const[a,i]=(0,gt.useState)({...wN,...e}),{src:s,label:l,srcLang:c,kind:u,default:d}=a,p=s.startsWith("blob:")?"":(0,no.getFilename)(s)||"";return(0,it.jsxs)(mt.__experimentalVStack,{className:"block-library-video-tracks-editor__single-track-editor",spacing:"4",children:[(0,it.jsx)("span",{className:"block-library-video-tracks-editor__single-track-editor-edit-track-label",children:(0,pt.__)("Edit track")}),(0,it.jsxs)("span",{children:[(0,pt.__)("File"),": ",(0,it.jsx)("b",{children:p})]}),(0,it.jsxs)(mt.__experimentalGrid,{columns:2,gap:4,children:[(0,it.jsx)(mt.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,onChange:e=>i((t=>({...t,label:e}))),label:(0,pt.__)("Label"),value:l,help:(0,pt.__)("Title of track")}),(0,it.jsx)(mt.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,onChange:e=>i((t=>({...t,srcLang:e}))),label:(0,pt.__)("Source language"),value:c,help:(0,pt.__)("Language tag (en, fr, etc.)")})]}),(0,it.jsxs)(mt.__experimentalVStack,{spacing:"4",children:[(0,it.jsx)(mt.SelectControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,className:"block-library-video-tracks-editor__single-track-editor-kind-select",options:kN,value:u,label:(0,pt.__)("Kind"),onChange:e=>i((t=>({...t,kind:e})))}),(0,it.jsx)(mt.ToggleControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("Set as default track"),checked:d,disabled:!r,onChange:e=>i((t=>({...t,default:e})))}),(0,it.jsxs)(mt.__experimentalHStack,{className:"block-library-video-tracks-editor__single-track-editor-buttons-container",children:[(0,it.jsx)(mt.Button,{__next40pxDefaultSize:!0,isDestructive:!0,variant:"link",onClick:n,children:(0,pt.__)("Remove track")}),(0,it.jsx)(mt.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:()=>{t(a),o()},children:(0,pt.__)("Apply")})]})]})]})}function SN({tracks:e=[],onChange:t}){const o=(0,lt.useSelect)((e=>e(ct.store).getSettings().mediaUpload),[]),[n,r]=(0,gt.useState)(null),a=(0,gt.useRef)(),i=(o=[],n=!1)=>{const r=new Map(e.map((e=>[e.id,e]))),a=o.map((({id:e,title:t,url:o})=>r.has(e)?r.get(e):{...wN,id:e,label:t||"",src:o}));0!==a.length&&t([...n?e:[],...a])};function s(e){const t=e.target.files;o({allowedTypes:vN,filesList:t,onFileChange:e=>{if(!Array.isArray(e))return;const t=e.filter((e=>!!e?.id));t.length&&i(t,!0)}})}return(0,gt.useEffect)((()=>{a.current?.focus()}),[n]),o?(0,it.jsx)(mt.Dropdown,{contentClassName:"block-library-video-tracks-editor",focusOnMount:!0,popoverProps:{ref:a},renderToggle:({isOpen:e,onToggle:t})=>(0,it.jsx)(mt.ToolbarGroup,{children:(0,it.jsx)(mt.ToolbarButton,{"aria-expanded":e,"aria-haspopup":"true",onClick:()=>{e||r(null),t()},children:(0,pt.__)("Text tracks")})}),renderContent:()=>null!==n?(0,it.jsx)(jN,{track:e[n],onChange:o=>{const r=[...e];r[n]=o,t(r)},onClose:()=>r(null),onRemove:()=>{t(e.filter(((e,t)=>t!==n))),r(null)},allowSettingDefault:!e.some((e=>e.default))||e[n].default}):(0,it.jsxs)(it.Fragment,{children:[0===e.length&&(0,it.jsxs)("div",{className:"block-library-video-tracks-editor__tracks-informative-message",children:[(0,it.jsx)("h2",{className:"block-library-video-tracks-editor__tracks-informative-message-title",children:(0,pt.__)("Text tracks")}),(0,it.jsx)("p",{className:"block-library-video-tracks-editor__tracks-informative-message-description",children:(0,pt.__)("Tracks can be subtitles, captions, chapters, or descriptions. They help make your content more accessible to a wider range of users.")})]}),(0,it.jsxs)(mt.NavigableMenu,{children:[(0,it.jsx)(CN,{tracks:e,onEditPress:r}),(0,it.jsx)(mt.MenuGroup,{className:"block-library-video-tracks-editor__add-tracks-container",label:(0,pt.__)("Add tracks"),children:(0,it.jsxs)(ct.MediaUploadCheck,{children:[(0,it.jsx)(ct.MediaUpload,{onSelect:i,allowedTypes:vN,value:e.map((({id:e})=>e)),multiple:!0,render:({open:e})=>(0,it.jsx)(mt.MenuItem,{icon:sh,onClick:e,children:(0,pt.__)("Open Media Library")})}),(0,it.jsx)(mt.FormFileUpload,{onChange:s,accept:".vtt,text/vtt",multiple:!0,render:({openFileDialog:e})=>(0,it.jsx)(mt.MenuItem,{icon:Jp,onClick:e,children:(0,pt._x)("Upload","verb")})})]})})]})]})}):null}const BN=["video"];var TN=function({isSelected:e,attributes:t,className:o,setAttributes:n,insertBlocksAfter:r,onReplace:a}){const i=(0,gt.useRef)(),{id:s,controls:l,poster:c,src:u,tracks:d}=t,[p,m]=(0,gt.useState)(t.blob),g=vt(),h="default"===(0,ct.useBlockEditingMode)();function _(e){if(!e||!e.url)return n({src:void 0,id:void 0,poster:void 0,caption:void 0,blob:void 0}),void m();(0,ht.isBlobURL)(e.url)?m(e.url):(n({blob:void 0,src:e.url,id:e.id,poster:e.image?.src!==e.icon?e.image?.src:void 0,caption:e.caption}),m())}function x(e){if(e!==u){const t=No({attributes:{url:e}});if(void 0!==t&&a)return void a(t);n({blob:void 0,src:e,id:void 0,poster:void 0}),m()}}ft({url:p,allowedTypes:BN,onChange:_,onError:f}),(0,gt.useEffect)((()=>{i.current&&i.current.load()}),[c]);const{createErrorNotice:b}=(0,lt.useDispatch)(bo.store);function f(e){b(e,{type:"snackbar"})}const y=t=>(0,it.jsx)(mt.Placeholder,{className:"block-editor-media-placeholder",withIllustration:!e,icon:pN,label:(0,pt.__)("Video"),instructions:(0,pt.__)("Drag and drop a video, upload, or choose from your library."),children:t}),v=Dt(o,{"is-transient":!!p}),k=(0,ct.useBlockProps)({className:v});return u||p?(0,it.jsxs)(it.Fragment,{children:[e&&(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.BlockControls,{children:(0,it.jsx)(SN,{tracks:d,onChange:e=>{n({tracks:e})}})}),(0,it.jsx)(ct.BlockControls,{group:"other",children:(0,it.jsx)(ct.MediaReplaceFlow,{mediaId:s,mediaURL:u,allowedTypes:BN,accept:"video/*",onSelect:_,onSelectURL:x,onError:f,onReset:()=>_(void 0)})})]}),(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{n({autoplay:!1,controls:!0,loop:!1,muted:!1,playsInline:!1,preload:"metadata",poster:void 0})},dropdownMenuProps:g,children:[(0,it.jsx)(fN,{setAttributes:n,attributes:t}),(0,it.jsx)(_s,{poster:c,onChange:e=>n({poster:e?.url})})]})}),(0,it.jsxs)("figure",{...k,children:[(0,it.jsx)(mt.Disabled,{isDisabled:!e,children:(0,it.jsx)("video",{controls:l,poster:c,src:u||p,ref:i,children:(0,it.jsx)(gN,{tracks:d})})}),!!p&&(0,it.jsx)(mt.Spinner,{}),(0,it.jsx)(zo,{attributes:t,setAttributes:n,isSelected:e,insertBlocksAfter:r,label:(0,pt.__)("Video caption text"),showToolbarButton:e&&h})]})]}):(0,it.jsx)("div",{...k,children:(0,it.jsx)(ct.MediaPlaceholder,{icon:(0,it.jsx)(ct.BlockIcon,{icon:pN}),onSelect:_,onSelectURL:x,accept:"video/*",allowedTypes:BN,value:t,onError:f,placeholder:y})})};const NN={from:[{type:"files",isMatch:e=>1===e.length&&0===e[0].type.indexOf("video/"),transform(e){const t=e[0];return(0,st.createBlock)("core/video",{blob:(0,ht.createBlobURL)(t)})}},{type:"shortcode",tag:"video",attributes:{src:{type:"string",shortcode:({named:{src:e,mp4:t,m4v:o,webm:n,ogv:r,flv:a}})=>e||t||o||n||r||a},poster:{type:"string",shortcode:({named:{poster:e}})=>e},loop:{type:"string",shortcode:({named:{loop:e}})=>e},autoplay:{type:"string",shortcode:({named:{autoplay:e}})=>e},preload:{type:"string",shortcode:({named:{preload:e}})=>e}}},{type:"raw",isMatch:e=>"P"===e.nodeName&&1===e.children.length&&"VIDEO"===e.firstChild.nodeName,transform:e=>{const t=e.firstChild,o={autoplay:!!t.hasAttribute("autoplay")||void 0,controls:!!t.hasAttribute("controls")&&void 0,loop:!!t.hasAttribute("loop")||void 0,muted:!!t.hasAttribute("muted")||void 0,preload:t.getAttribute("preload")||void 0,playsInline:!!t.hasAttribute("playsinline")||void 0,poster:t.getAttribute("poster")||void 0,src:t.getAttribute("src")||void 0};return(0,ht.isBlobURL)(o.src)&&(o.blob=o.src,delete o.src),(0,st.createBlock)("core/video",o)}}]};var PN=NN;const{name:IN}=mN,DN={icon:pN,example:{attributes:{src:"https://upload.wikimedia.org/wikipedia/commons/c/ca/Wood_thrush_in_Central_Park_switch_sides_%2816510%29.webm",caption:(0,pt.__)("Wood thrush singing in Central Park, NYC.")}},transforms:PN,deprecated:xN,edit:TN,save:function({attributes:e}){const{autoplay:t,caption:o,controls:n,loop:r,muted:a,poster:i,preload:s,src:l,playsInline:c,tracks:u}=e;return(0,it.jsxs)("figure",{...ct.useBlockProps.save(),children:[l&&(0,it.jsx)("video",{autoPlay:t,controls:n,loop:r,muted:a,poster:i,preload:"metadata"!==s?s:void 0,src:l,playsInline:c,children:(0,it.jsx)(gN,{tracks:u})}),!ct.RichText.isEmpty(o)&&(0,it.jsx)(ct.RichText.Content,{className:(0,ct.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:o})]})}},MN=()=>jt({name:IN,metadata:mN,settings:DN});const zN=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/footnotes","title":"Footnotes","category":"text","description":"Display footnotes added to the page.","keywords":["references"],"textdomain":"default","usesContext":["postId","postType"],"supports":{"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true,"__experimentalDefaultControls":{"radius":false,"color":false,"width":false,"style":false}},"color":{"background":true,"link":true,"text":true,"__experimentalDefaultControls":{"link":true,"text":true}},"html":false,"multiple":false,"reusable":false,"inserter":false,"spacing":{"margin":true,"padding":true,"__experimentalDefaultControls":{"margin":false,"padding":false}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalTextDecoration":true,"__experimentalFontStyle":true,"__experimentalFontWeight":true,"__experimentalLetterSpacing":true,"__experimentalTextTransform":true,"__experimentalWritingMode":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true}},"style":"wp-block-footnotes"}'),AN={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let LN;const HN=new Uint8Array(16);function RN(){if(!LN&&(LN="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!LN))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return LN(HN)}const VN=[];for(let e=0;e<256;++e)VN.push((e+256).toString(16).slice(1));function FN(e,t=0){return VN[e[t+0]]+VN[e[t+1]]+VN[e[t+2]]+VN[e[t+3]]+"-"+VN[e[t+4]]+VN[e[t+5]]+"-"+VN[e[t+6]]+VN[e[t+7]]+"-"+VN[e[t+8]]+VN[e[t+9]]+"-"+VN[e[t+10]]+VN[e[t+11]]+VN[e[t+12]]+VN[e[t+13]]+VN[e[t+14]]+VN[e[t+15]]}const EN=function(e,t,o){if(AN.randomUUID&&!t&&!e)return AN.randomUUID();const n=(e=e||{}).random||(e.rng||RN)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){o=o||0;for(let e=0;e<16;++e)t[o+e]=n[e];return t}return FN(n)},{usesContextKey:ON}=jo(ct.privateApis),GN="core/footnote",$N="core/post-content",UN={title:(0,pt.__)("Footnote"),tagName:"sup",className:"fn",attributes:{"data-fn":"data-fn"},interactive:!0,contentEditable:!1,[ON]:["postType","postId"],edit:function({value:e,onChange:t,isObjectActive:o,context:{postType:n,postId:r}}){const a=(0,lt.useRegistry)(),{getSelectedBlockClientId:i,getBlocks:s,getBlockRootClientId:l,getBlockName:c,getBlockParentsByBlockName:u}=a.select(ct.store),d=(0,lt.useSelect)((e=>{if(!e(st.store).getBlockType("core/footnotes"))return!1;const t=e(ct.store).getSettings().allowedBlockTypes;if(!1===t||Array.isArray(t)&&!t.includes("core/footnotes"))return!1;const o=e(_t.store).getEntityRecord("postType",n,r);if("string"!=typeof o?.meta?.footnotes)return!1;const{getBlockParentsByBlockName:a,getSelectedBlockClientId:i}=e(ct.store),s=a(i(),"core/block");return!s||0===s.length}),[n,r]),{selectionChange:p,insertBlock:m}=(0,lt.useDispatch)(ct.store);if(!d)return null;return(0,it.jsx)(ct.RichTextToolbarButton,{icon:Wm,title:(0,pt.__)("Footnote"),onClick:function(){a.batch((()=>{let n;if(o){const t=e.replacements[e.start];n=t?.attributes?.["data-fn"]}else{n=EN();const o=(0,Tn.insertObject)(e,{type:GN,attributes:{"data-fn":n},innerHTML:`<a href="#${n}" id="${n}-link">*</a>`},e.end,e.end);o.start=o.end-1,t(o)}const r=i(),a=u(r,$N);let d=null;{const e=[...a.length?s(a[0]):s()];for(;e.length;){const t=e.shift();if("core/footnotes"===t.name){d=t;break}e.push(...t.innerBlocks)}}if(!d){let e=l(r);for(;e&&c(e)!==$N;)e=l(e);d=(0,st.createBlock)("core/footnotes"),m(d,void 0,e)}p(d.clientId,n,0,0)}))},isActive:o})}},{name:qN}=zN,WN={icon:Wm,edit:function({context:{postType:e,postId:t}}){const[o,n]=(0,_t.useEntityProp)("postType",e,"meta",t),r="string"==typeof o?.footnotes,a=o?.footnotes?JSON.parse(o.footnotes):[],i=(0,ct.useBlockProps)();return r?a.length?(0,it.jsx)("ol",{...i,children:a.map((({id:e,content:t})=>(0,it.jsxs)("li",{onMouseDown:e=>{e.target===e.currentTarget&&(e.target.firstElementChild.focus(),e.preventDefault())},children:[(0,it.jsx)(ct.RichText,{id:e,tagName:"span",value:t,identifier:e,onFocus:e=>{e.target.textContent.trim()||e.target.scrollIntoView()},onChange:t=>{n({...o,footnotes:JSON.stringify(a.map((o=>o.id===e?{content:t,id:e}:o)))})}})," ",(0,it.jsx)("a",{href:`#${e}-link`,children:"↩︎"})]},e)))}):(0,it.jsx)("div",{...i,children:(0,it.jsx)(mt.Placeholder,{icon:(0,it.jsx)(ct.BlockIcon,{icon:Wm}),label:(0,pt.__)("Footnotes"),instructions:(0,pt.__)("Footnotes found in blocks within this document will be displayed here.")})}):(0,it.jsx)("div",{...i,children:(0,it.jsx)(mt.Placeholder,{icon:(0,it.jsx)(ct.BlockIcon,{icon:Wm}),label:(0,pt.__)("Footnotes"),instructions:(0,pt.__)("Footnotes are not supported here. Add this block to post or page content.")})})}},ZN=()=>{(0,Tn.registerFormatType)(GN,UN),jt({name:qN,metadata:zN,settings:WN})};var JN,QN,KN=Object.getOwnPropertyNames;const YN=(JN={"packages/block-library/src/utils/is-block-metadata-experimental.js"(e,t){t.exports=function(e){return e&&"__experimental"in e&&!1!==e.__experimental}}},function(){return QN||(0,JN[KN(JN)[0]])((QN={exports:{}}).exports,QN),QN.exports})(),XN=window.wp.keyboardShortcuts;var eP=function(){const{registerShortcut:e}=(0,lt.useDispatch)(XN.store),{replaceBlocks:t}=(0,lt.useDispatch)(ct.store),{getBlockName:o,getSelectedBlockClientId:n,getBlockAttributes:r}=(0,lt.useSelect)(ct.store),a=(e,a)=>{e.preventDefault();const i=n();if(null===i)return;const s=o(i),l="core/paragraph"===s,c="core/heading"===s;if(!l&&!c)return;const u=0===a?"core/paragraph":"core/heading",d=r(i);if(l&&0===a||c&&d.level===a)return;const p="core/paragraph"===s?"align":"textAlign",m="core/paragraph"===u?"align":"textAlign";t(i,(0,st.createBlock)(u,{level:a,content:d.content,[m]:d[p]}))};return(0,gt.useEffect)((()=>{e({name:"core/block-editor/transform-heading-to-paragraph",category:"block-library",description:(0,pt.__)("Transform heading to paragraph."),keyCombination:{modifier:"access",character:"0"},aliases:[{modifier:"access",character:"7"}]}),[1,2,3,4,5,6].forEach((t=>{e({name:`core/block-editor/transform-paragraph-to-heading-${t}`,category:"block-library",description:(0,pt.__)("Transform paragraph to heading."),keyCombination:{modifier:"access",character:`${t}`}})}))}),[e]),(0,XN.useShortcut)("core/block-editor/transform-heading-to-paragraph",(e=>a(e,0))),(0,XN.useShortcut)("core/block-editor/transform-paragraph-to-heading-1",(e=>a(e,1))),(0,XN.useShortcut)("core/block-editor/transform-paragraph-to-heading-2",(e=>a(e,2))),(0,XN.useShortcut)("core/block-editor/transform-paragraph-to-heading-3",(e=>a(e,3))),(0,XN.useShortcut)("core/block-editor/transform-paragraph-to-heading-4",(e=>a(e,4))),(0,XN.useShortcut)("core/block-editor/transform-paragraph-to-heading-5",(e=>a(e,5))),(0,XN.useShortcut)("core/block-editor/transform-paragraph-to-heading-6",(e=>a(e,6))),null};const tP={};Co(tP,{BlockKeyboardShortcuts:eP});const oP=()=>(()=>{const r=[se,$,E,V,W,J,ze,e,t,o,n,i,l,u,d,p,m,h,_,x,f,I,D,M,z,F,G,Z,U,q,K,Y,X,ne,ae,ie,re,Ce,je,Ae,He,Re,Ve,Fe,$e,Ue,qe,We,Je,ot,nt,rt,at,ee,te,oe,Ee,Ge,Oe,Se,Qe,s,we,xe,be,he,le,ce,de,pe,ge,_e,ve,fe,ye,ke,Te,Ne,Pe,Ie,Be,Me,Le,b,y,v,k,w,C,j,P,B,T,N,S,me,Ze,O,Q,Ke,Ye,Xe,et,tt,De,ue];return window?.__experimentalEnableBlockExperiments&&r.push(c),window?.__experimentalEnableFormBlocks&&(r.push(A),r.push(L),r.push(H),r.push(R)),window?.wp?.oldEditor&&(window?.wp?.needsClassicBlock||!window?.__experimentalDisableTinymce||new URLSearchParams(window?.location?.search).get("requiresTinymce"))&&r.push(g),r.filter(Boolean)})().filter((({metadata:e})=>!YN(e))),nP=(e=oP())=>{e.forEach((({init:e})=>e())),window.__unstableAutoRegisterBlocks&&window.__unstableAutoRegisterBlocks.forEach((e=>{const t=jo((0,lt.select)(st.store)).getBootstrappedBlockType(e).apiVersion;(0,st.registerBlockType)(e,{title:e,...t<3&&{apiVersion:3},edit:function({attributes:t}){const o=(0,ct.useBlockProps)(),{content:n,status:r,error:a}=(0,ut.useServerSideRender)({block:e,attributes:t});return"loading"===r?(0,it.jsx)("div",{...o,children:(0,pt.__)("Loading…")}):"error"===r?(0,it.jsx)("div",{...o,children:(0,pt.sprintf)((0,pt.__)("Error loading block: %s"),a)}):(0,it.jsx)("div",{...o,dangerouslySetInnerHTML:{__html:n||""}})},save:()=>null})})),(0,st.setDefaultBlockName)(Qb),window.wp&&window.wp.oldEditor&&e.some((({name:e})=>e===lr))&&(0,st.setFreeformContentHandlerName)(lr),(0,st.setUnregisteredTypeHandlerName)(Th),(0,st.setGroupingBlockName)(Jd)},rP=void 0})(),(window.wp=window.wp||{}).blockLibrary=a})();
\ No newline at end of file
+function ol(e){var t=e.toString(16);return 1===t.length?"0"+t:t}function nl(e){return"#"+e.map(ol).join("")}function rl(e){return e?(t=e,Array.isArray(t[0])?e:[e]):[];var t}function al(e,t,o){for(var n=0;n<o.length;n++)if(il(e,t,o[n]))return!0;return!1}function il(e,t,o){switch(o.length){case 3:if(function(e,t,o){if(255!==e[t+3])return!0;if(e[t]===o[0]&&e[t+1]===o[1]&&e[t+2]===o[2])return!0;return!1}(e,t,o))return!0;break;case 4:if(function(e,t,o){if(e[t+3]&&o[3])return e[t]===o[0]&&e[t+1]===o[1]&&e[t+2]===o[2]&&e[t+3]===o[3];return e[t+3]===o[3]}(e,t,o))return!0;break;case 5:if(function(e,t,o){var n=o[0],r=o[1],a=o[2],i=o[3],s=o[4],l=e[t+3],c=sl(l,i,s);if(!i)return c;if(!l&&c)return!0;if(sl(e[t],n,s)&&sl(e[t+1],r,s)&&sl(e[t+2],a,s)&&c)return!0;return!1}(e,t,o))return!0;break;default:return!1}}function sl(e,t,o){return e>=t-o&&e<=t+o}function ll(e,t,o){for(var n={},r=o.ignoredColor,a=o.step,i=[0,0,0,0,0],s=0;s<t;s+=a){var l=e[s],c=e[s+1],u=e[s+2],d=e[s+3];if(!r||!al(e,s,r)){var p=Math.round(l/24)+","+Math.round(c/24)+","+Math.round(u/24);n[p]?n[p]=[n[p][0]+l*d,n[p][1]+c*d,n[p][2]+u*d,n[p][3]+d,n[p][4]+1]:n[p]=[l*d,c*d,u*d,d,1],i[4]<n[p][4]&&(i=n[p])}}var m=i[0],g=i[1],h=i[2],_=i[3],x=i[4];return _?[Math.round(m/_),Math.round(g/_),Math.round(h/_),Math.round(_/x)]:o.defaultColor}function cl(e,t,o){for(var n=0,r=0,a=0,i=0,s=0,l=o.ignoredColor,c=o.step,u=0;u<t;u+=c){var d=e[u+3],p=e[u]*d,m=e[u+1]*d,g=e[u+2]*d;l&&al(e,u,l)||(n+=p,r+=m,a+=g,i+=d,s++)}return i?[Math.round(n/i),Math.round(r/i),Math.round(a/i),Math.round(i/s)]:o.defaultColor}function ul(e,t,o){for(var n=0,r=0,a=0,i=0,s=0,l=o.ignoredColor,c=o.step,u=0;u<t;u+=c){var d=e[u],p=e[u+1],m=e[u+2],g=e[u+3];l&&al(e,u,l)||(n+=d*d*g,r+=p*p*g,a+=m*m*g,i+=g,s++)}return i?[Math.round(Math.sqrt(n/i)),Math.round(Math.sqrt(r/i)),Math.round(Math.sqrt(a/i)),Math.round(i/s)]:o.defaultColor}function dl(e){return pl(e,"defaultColor",[0,0,0,0])}function pl(e,t,o){return void 0===e[t]?o:e[t]}function ml(e){if(hl(e)){var t=e.naturalWidth,o=e.naturalHeight;return e.naturalWidth||-1===e.src.search(/\.svg(\?|$)/i)||(t=o=100),{width:t,height:o}}return function(e){return"undefined"!=typeof HTMLVideoElement&&e instanceof HTMLVideoElement}(e)?{width:e.videoWidth,height:e.videoHeight}:{width:e.width,height:e.height}}function gl(e){return function(e){return"undefined"!=typeof HTMLCanvasElement&&e instanceof HTMLCanvasElement}(e)?"canvas":function(e){return _l&&e instanceof OffscreenCanvas}(e)?"offscreencanvas":function(e){return"undefined"!=typeof ImageBitmap&&e instanceof ImageBitmap}(e)?"imagebitmap":e.src}function hl(e){return"undefined"!=typeof HTMLImageElement&&e instanceof HTMLImageElement}var _l="undefined"!=typeof OffscreenCanvas;var xl="undefined"==typeof window;function bl(e){return Error("FastAverageColor: "+e)}function fl(e,t){t||console.error(e)}var yl=function(){function e(){this.canvas=null,this.ctx=null}return e.prototype.getColorAsync=function(e,t){if(!e)return Promise.reject(bl("call .getColorAsync() without resource."));if("string"==typeof e){if("undefined"==typeof Image)return Promise.reject(bl("resource as string is not supported in this environment"));var o=new Image;return o.crossOrigin=t&&t.crossOrigin||"",o.src=e,this.bindImageEvents(o,t)}if(hl(e)&&!e.complete)return this.bindImageEvents(e,t);var n=this.getColor(e,t);return n.error?Promise.reject(n.error):Promise.resolve(n)},e.prototype.getColor=function(e,t){var o=dl(t=t||{});if(!e)return fl(a=bl("call .getColor(null) without resource"),t.silent),this.prepareResult(o,a);var n=function(e,t){var o,n=pl(t,"left",0),r=pl(t,"top",0),a=pl(t,"width",e.width),i=pl(t,"height",e.height),s=a,l=i;return"precision"===t.mode||(a>i?(o=a/i,s=100,l=Math.round(s/o)):(o=i/a,l=100,s=Math.round(l/o)),(s>a||l>i||s<10||l<10)&&(s=a,l=i)),{srcLeft:n,srcTop:r,srcWidth:a,srcHeight:i,destWidth:s,destHeight:l}}(ml(e),t);if(!(n.srcWidth&&n.srcHeight&&n.destWidth&&n.destHeight))return fl(a=bl('incorrect sizes for resource "'.concat(gl(e),'"')),t.silent),this.prepareResult(o,a);if(!this.canvas&&(this.canvas=xl?_l?new OffscreenCanvas(1,1):null:document.createElement("canvas"),!this.canvas))return fl(a=bl("OffscreenCanvas is not supported in this browser"),t.silent),this.prepareResult(o,a);if(!this.ctx){if(this.ctx=this.canvas.getContext("2d",{willReadFrequently:!0}),!this.ctx)return fl(a=bl("Canvas Context 2D is not supported in this browser"),t.silent),this.prepareResult(o);this.ctx.imageSmoothingEnabled=!1}this.canvas.width=n.destWidth,this.canvas.height=n.destHeight;try{this.ctx.clearRect(0,0,n.destWidth,n.destHeight),this.ctx.drawImage(e,n.srcLeft,n.srcTop,n.srcWidth,n.srcHeight,0,0,n.destWidth,n.destHeight);var r=this.ctx.getImageData(0,0,n.destWidth,n.destHeight).data;return this.prepareResult(this.getColorFromArray4(r,t))}catch(n){var a;return fl(a=bl("security error (CORS) for resource ".concat(gl(e),".\nDetails: https://developer.mozilla.org/en/docs/Web/HTML/CORS_enabled_image")),t.silent),!t.silent&&console.error(n),this.prepareResult(o,a)}},e.prototype.getColorFromArray4=function(e,t){t=t||{};var o=e.length,n=dl(t);if(o<4)return n;var r,a=o-o%4,i=4*(t.step||1);switch(t.algorithm||"sqrt"){case"simple":r=cl;break;case"sqrt":r=ul;break;case"dominant":r=ll;break;default:throw bl("".concat(t.algorithm," is unknown algorithm"))}return r(e,a,{defaultColor:n,ignoredColor:rl(t.ignoredColor),step:i})},e.prototype.prepareResult=function(e,t){var o,n=e.slice(0,3),r=[e[0],e[1],e[2],e[3]/255],a=(299*(o=e)[0]+587*o[1]+114*o[2])/1e3<128;return{value:[e[0],e[1],e[2],e[3]],rgb:"rgb("+n.join(",")+")",rgba:"rgba("+r.join(",")+")",hex:nl(n),hexa:nl(e),isDark:a,isLight:!a,error:t}},e.prototype.destroy=function(){this.canvas&&(this.canvas.width=1,this.canvas.height=1,this.canvas=null),this.ctx=null},e.prototype.bindImageEvents=function(e,t){var o=this;return new Promise((function(n,r){var a=function(){l();var a=o.getColor(e,t);a.error?r(a.error):n(a)},i=function(){l(),r(bl('Error loading image "'.concat(e.src,'".')))},s=function(){l(),r(bl('Image "'.concat(e.src,'" loading aborted')))},l=function(){e.removeEventListener("load",a),e.removeEventListener("error",i),e.removeEventListener("abort",s)};e.addEventListener("load",a),e.addEventListener("error",i),e.addEventListener("abort",s)}))},e}();const vl=window.wp.hooks;!function(e){e.forEach((function(e){tl.indexOf(e)<0&&(e(Xs,Ws),tl.push(e))}))}([function(e,t){var o={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"},n={};for(var r in o)n[o[r]]=r;var a={};e.prototype.toName=function(t){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var r,i,s=n[this.toHex()];if(s)return s;if(null==t?void 0:t.closest){var l=this.toRgb(),c=1/0,u="black";if(!a.length)for(var d in o)a[d]=new e(o[d]).toRgb();for(var p in o){var m=(r=l,i=a[p],Math.pow(r.r-i.r,2)+Math.pow(r.g-i.g,2)+Math.pow(r.b-i.b,2));m<c&&(c=m,u=p)}return u}},t.string.push([function(t){var n=t.toLowerCase(),r="transparent"===n?"#0000":o[n];return r?new e(r).toRgb():null},"name"])}]);const kl="#FFF";function wl(){return wl.fastAverageColor||(wl.fastAverageColor=new yl),wl.fastAverageColor}const Cl=fo((async e=>{if(!e)return kl;const{r:t,g:o,b:n,a:r}=el(kl).toRgb();try{const a=(0,vl.applyFilters)("media.crossOrigin",void 0,e);return(await wl().getColorAsync(e,{defaultColor:[t,o,n,255*r],silent:!0,crossOrigin:a})).hex}catch(e){return kl}}));function jl(e,t,o){if(t===o||100===e)return el(t).isDark();const n=el(t).alpha(e/100).toRgb(),r=el(o).toRgb(),a=(s=r,{r:(i=n).r*i.a+s.r*s.a*(1-i.a),g:i.g*i.a+s.g*s.a*(1-i.a),b:i.b*i.a+s.b*s.a*(1-i.a),a:i.a+s.a*(1-i.a)});var i,s;return el(a).isDark()}var Sl=(0,xt.compose)([(0,ct.withColors)({overlayColor:"background-color"})])((function({attributes:e,clientId:t,isSelected:o,overlayColor:n,setAttributes:r,setOverlayColor:a,toggleSelection:i,context:{postId:s,postType:l}}){const{contentPosition:c,id:u,url:d,backgroundType:p,useFeaturedImage:m,dimRatio:g,focalPoint:h,hasParallax:_,isDark:x,isRepeated:b,minHeight:f,minHeightUnit:y,alt:v,allowedBlocks:k,templateLock:w,tagName:C="div",isUserOverlayColor:j,sizeSlug:S,poster:B}=e,[T]=(0,_t.useEntityProp)("postType",l,"featured_media",s),{getSettings:N}=(0,lt.useSelect)(ct.store),{__unstableMarkNextChangeAsNotPersistent:P}=(0,lt.useDispatch)(ct.store),{media:I}=(0,lt.useSelect)((e=>({media:T&&m?e(_t.store).getEntityRecord("postType","attachment",T,{context:"view"}):void 0})),[T,m]),D=I?.media_details?.sizes?.[S]?.source_url??I?.source_url;(0,gt.useEffect)((()=>{(async()=>{if(!m)return;const e=await Cl(D);let t=n.color;j||(t=e,P(),a(t));const o=jl(g,t,e);P(),r({isDark:o,isUserOverlayColor:j||!1})})()}),[D]);const M=m?D:d?.replaceAll("&amp;","&"),z=m?Ai:p,{createErrorNotice:A}=(0,lt.useDispatch)(bo.store),{gradientClass:L,gradientValue:H}=(0,ct.__experimentalUseGradient)(),R=async e=>{const t=function(e){if(!e||!e.url&&!e.src)return{url:void 0,id:void 0};let t;if((0,ht.isBlobURL)(e.url)&&(e.type=(0,ht.getBlobTypeByURL)(e.url)),e.media_type)t=e.media_type===Ai?Ai:Li;else{if(!e.type||e.type!==Ai&&e.type!==Li)return;t=e.type}return{url:e.url||e.src,id:e.id,alt:e?.alt,backgroundType:t,...t===Li?{hasParallax:void 0}:{}}}(e),o=[e?.type,e?.media_type].includes(Ai),i=await Cl(o?e?.url:void 0);let s=n.color;j||(s=i,a(s),P());const l=void 0===d&&100===g?50:g,c=jl(l,s,i);if(z===Ai&&t?.id){const{imageDefaultSize:o}=N();S&&(e?.sizes?.[S]||e?.media_details?.sizes?.[S])?(t.sizeSlug=S,t.url=e?.sizes?.[S]?.url||e?.media_details?.sizes?.[S]?.source_url):e?.sizes?.[o]||e?.media_details?.sizes?.[o]?(t.sizeSlug=o,t.url=e?.sizes?.[o]?.url||e?.media_details?.sizes?.[o]?.source_url):t.sizeSlug=gs}r({...t,focalPoint:void 0,useFeaturedImage:void 0,dimRatio:l,isDark:c,isUserOverlayColor:j||!1})},V=()=>{let e=n.color;j||(e="#000",a(void 0),P());const t=jl(g,e,kl);r({url:void 0,id:void 0,backgroundType:void 0,focalPoint:void 0,hasParallax:void 0,isRepeated:void 0,useFeaturedImage:void 0,isDark:t})},F=async e=>{const t=await Cl(M),o=jl(g,e,t);a(e),P(),r({isUserOverlayColor:!0,isDark:o})},E=e=>{A(e,{type:"snackbar"})},O=((e,t)=>!e&&(0,ht.isBlobURL)(t))(u,M),G=Ai===z,$=Li===z,U=(0,ct.useBlockEditingMode)(),q="default"===U,[W,{height:Z,width:J}]=(0,xt.useResizeObserver)(),Q=(0,gt.useMemo)((()=>({height:"px"===y&&f?f:"auto",width:"auto"})),[f,y]),K=f&&y?`${f}${y}`:f,Y=!(_||b),X={minHeight:K||void 0},ee=M?`url(${M})`:void 0,te=Vi(h),oe={backgroundColor:n.color},ne={objectPosition:h&&Y?Vi(h):void 0},re=!!(M||n.color||H),ae=(0,lt.useSelect)((e=>e(ct.store).getBlock(t).innerBlocks.length>0),[t]),ie=(0,gt.useRef)(),se=(0,ct.useBlockProps)({ref:ie}),[le]=(0,ct.useSettings)("typography.fontSizes"),ce=function(e){return[["core/paragraph",{align:"center",placeholder:(0,pt.__)("Write title…"),...e}]]}({fontSize:le?.length>0?"large":void 0}),ue=(0,ct.useInnerBlocksProps)({className:"wp-block-cover__inner-container"},{template:ae?void 0:ce,templateInsertUpdatesSelection:!0,allowedBlocks:k,templateLock:w,dropZoneElement:ie.current}),de=(0,gt.useRef)(),pe={isVideoBackground:$,isImageBackground:G,mediaElement:de,hasInnerBlocks:ae,url:M,isImgElement:Y,overlayColor:n},me=async()=>{const e=!m,t=e?await Cl(D):kl,o=j?n.color:t;j||(a(e?o:void 0),P());const i=100===g?50:g,s=jl(i,o,t);r({id:void 0,url:void 0,useFeaturedImage:e,dimRatio:i,backgroundType:m?Ai:void 0,isDark:s})},ge=(0,it.jsx)(ws,{attributes:e,setAttributes:r,onSelectMedia:R,currentSettings:pe,toggleUseFeaturedImage:me,onClearMedia:V,blockEditingMode:U}),he=(0,it.jsx)(vs,{attributes:e,setAttributes:r,clientId:t,setOverlayColor:F,coverRef:ie,currentSettings:pe,toggleUseFeaturedImage:me,updateDimRatio:async e=>{const t=await Cl(M),o=jl(e,n.color,t);r({dimRatio:e,isDark:o})},onClearMedia:V,featuredImage:I}),_e={className:"block-library-cover__resize-container",clientId:t,height:Z,minHeight:K,onResizeStart:()=>{r({minHeightUnit:"px"}),i(!1)},onResize:e=>{r({minHeight:e})},onResizeStop:e=>{i(!0),r({minHeight:e})},showHandle:!e.style?.dimensions?.aspectRatio,size:Q,width:J};if(!m&&!ae&&!re)return(0,it.jsxs)(it.Fragment,{children:[ge,he,q&&o&&(0,it.jsx)(Bs,{..._e}),(0,it.jsxs)(C,{...se,className:Dt("is-placeholder",se.className),style:{...se.style,minHeight:K||void 0},children:[W,(0,it.jsx)(Cs,{onSelectMedia:R,onError:E,toggleUseFeaturedImage:me,children:(0,it.jsx)("div",{className:"wp-block-cover__placeholder-background-options",children:(0,it.jsx)(ct.ColorPalette,{disableCustomColors:!0,value:n.color,onChange:F,clearable:!1,asButtons:!0,"aria-label":(0,pt.__)("Overlay color")})})})]})]});const xe=Dt({"is-dark-theme":x,"is-light":!x,"is-transient":O,"has-parallax":_,"is-repeated":b,"has-custom-content-position":!Ei(c)},Oi(c)),be=M||!m||m&&!M;return(0,it.jsxs)(it.Fragment,{children:[ge,he,(0,it.jsxs)(C,{...se,className:Dt(xe,se.className),style:{...X,...se.style},"data-url":M,children:[W,!M&&m&&(0,it.jsx)(mt.Placeholder,{className:"wp-block-cover__image--placeholder-image",withIllustration:!0}),M&&G&&(Y?(0,it.jsx)("img",{ref:de,className:"wp-block-cover__image-background",alt:v,src:M,style:ne}):(0,it.jsx)("div",{ref:de,role:v?"img":void 0,"aria-label":v||void 0,className:Dt(xe,"wp-block-cover__image-background"),style:{backgroundImage:ee,backgroundPosition:te}})),M&&$&&(0,it.jsx)("video",{ref:de,className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:M,poster:B,style:ne}),be&&(0,it.jsx)("span",{"aria-hidden":"true",className:Dt("wp-block-cover__background",Fi(g),{[n.class]:n.class,"has-background-dim":void 0!==g,"wp-block-cover__gradient-background":M&&H&&0!==g,"has-background-gradient":H,[L]:L}),style:{backgroundImage:H,...oe}}),O&&(0,it.jsx)(mt.Spinner,{}),(0,it.jsx)(Cs,{disableMediaButtons:!0,onSelectMedia:R,onError:E,toggleUseFeaturedImage:me}),(0,it.jsx)("div",{...ue})]}),q&&o&&(0,it.jsx)(Bs,{..._e})]})}));const Bl=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/cover","title":"Cover","category":"media","description":"Add an image or video with a text overlay.","textdomain":"default","attributes":{"url":{"type":"string","role":"content"},"useFeaturedImage":{"type":"boolean","default":false},"id":{"type":"number"},"alt":{"type":"string","default":""},"hasParallax":{"type":"boolean","default":false},"isRepeated":{"type":"boolean","default":false},"dimRatio":{"type":"number","default":100},"overlayColor":{"type":"string"},"customOverlayColor":{"type":"string"},"isUserOverlayColor":{"type":"boolean"},"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":true},"templateLock":{"type":["string","boolean"],"enum":["all","insert","contentOnly",false]},"tagName":{"type":"string","default":"div"},"sizeSlug":{"type":"string"},"poster":{"type":"string","source":"attribute","selector":"video","attribute":"poster"}},"usesContext":["postId","postType"],"supports":{"anchor":true,"align":true,"html":false,"shadow":true,"spacing":{"padding":true,"margin":["top","bottom"],"blockGap":true,"__experimentalDefaultControls":{"padding":true,"blockGap":true}},"__experimentalBorder":{"color":true,"radius":true,"style":true,"width":true,"__experimentalDefaultControls":{"color":true,"radius":true,"style":true,"width":true}},"color":{"heading":true,"text":true,"background":false,"__experimentalSkipSerialization":["gradients"],"enableContrastChecker":false},"dimensions":{"aspectRatio":true},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"layout":{"allowJustification":false},"interactivity":{"clientNavigation":true},"filter":{"duotone":true},"allowedBlocks":true},"selectors":{"filter":{"duotone":".wp-block-cover > .wp-block-cover__image-background, .wp-block-cover > .wp-block-cover__video-background"}},"editorStyle":"wp-block-cover-editor","style":"wp-block-cover"}');const{cleanEmptyObject:Tl}=jo(ct.privateApis),Nl={from:[{type:"block",blocks:["core/image"],transform:({caption:e,url:t,alt:o,align:n,id:r,anchor:a,style:i})=>(0,st.createBlock)("core/cover",{dimRatio:50,url:t,alt:o,align:n,id:r,anchor:a,style:{color:{duotone:i?.color?.duotone}}},[(0,st.createBlock)("core/paragraph",{content:e,fontSize:"large",align:"center"})])},{type:"block",blocks:["core/video"],transform:({caption:e,src:t,align:o,id:n,anchor:r})=>(0,st.createBlock)("core/cover",{dimRatio:50,url:t,align:o,id:n,backgroundType:Li,anchor:r},[(0,st.createBlock)("core/paragraph",{content:e,fontSize:"large",align:"center"})])},{type:"block",blocks:["core/group"],transform:(e,t)=>{const{align:o,anchor:n,backgroundColor:r,gradient:a,style:i}=e;if(1===t?.length&&"core/cover"===t[0]?.name)return(0,st.createBlock)("core/cover",t[0].attributes,t[0].innerBlocks);const s={align:o,anchor:n,dimRatio:r||a||i?.color?.background||i?.color?.gradient?void 0:50,overlayColor:r,customOverlayColor:i?.color?.background,gradient:a,customGradient:i?.color?.gradient},l={...e,backgroundColor:void 0,gradient:void 0,style:Tl({...e?.style,color:i?.color?{...i?.color,background:void 0,gradient:void 0}:void 0})};return(0,st.createBlock)("core/cover",s,[(0,st.createBlock)("core/group",l,t)])}}],to:[{type:"block",blocks:["core/image"],isMatch:({backgroundType:e,url:t,overlayColor:o,customOverlayColor:n,gradient:r,customGradient:a})=>t?e===Ai:!(o||n||r||a),transform:({title:e,url:t,alt:o,align:n,id:r,anchor:a,style:i})=>(0,st.createBlock)("core/image",{caption:e,url:t,alt:o,align:n,id:r,anchor:a,style:{color:{duotone:i?.color?.duotone}}})},{type:"block",blocks:["core/video"],isMatch:({backgroundType:e,url:t,overlayColor:o,customOverlayColor:n,gradient:r,customGradient:a})=>t?e===Li:!(o||n||r||a),transform:({title:e,url:t,align:o,id:n,anchor:r})=>(0,st.createBlock)("core/video",{caption:e,src:t,id:n,align:o,anchor:r})},{type:"block",blocks:["core/group"],isMatch:({url:e,useFeaturedImage:t})=>!e&&!t,transform:(e,t)=>{const o={backgroundColor:e?.overlayColor,gradient:e?.gradient,style:Tl({...e?.style,color:e?.customOverlayColor||e?.customGradient||e?.style?.color?{background:e?.customOverlayColor,gradient:e?.customGradient,...e?.style?.color}:void 0})};if(1===t?.length&&"core/group"===t[0]?.name){const e=Tl(t[0].attributes||{});return e?.backgroundColor||e?.gradient||e?.style?.color?.background||e?.style?.color?.gradient?(0,st.createBlock)("core/group",e,t[0]?.innerBlocks):(0,st.createBlock)("core/group",{...o,...e,style:Tl({...e?.style,color:o?.style?.color||e?.style?.color?{...o?.style?.color,...e?.style?.color}:void 0})},t[0]?.innerBlocks)}return(0,st.createBlock)("core/group",{...e,...o},t)}}]};var Pl=Nl;var Il=[{name:"cover",title:(0,pt.__)("Cover"),description:(0,pt.__)("Add an image or video with a text overlay."),attributes:{layout:{type:"constrained"}},isDefault:!0,icon:Mi}];const{name:Dl}=Bl,Ml={icon:Mi,example:{attributes:{customOverlayColor:"#065174",dimRatio:40,url:"https://s.w.org/images/core/5.3/Windbuchencom.jpg",style:{typography:{fontSize:48},color:{text:"white"}}},innerBlocks:[{name:"core/paragraph",attributes:{content:`<strong>${(0,pt.__)("Snow Patrol")}</strong>`,align:"center"}}]},transforms:Pl,save:function({attributes:e}){const{backgroundType:t,gradient:o,contentPosition:n,customGradient:r,customOverlayColor:a,dimRatio:i,focalPoint:s,useFeaturedImage:l,hasParallax:c,isDark:u,isRepeated:d,overlayColor:p,url:m,alt:g,id:h,minHeight:_,minHeightUnit:x,tagName:b,sizeSlug:f,poster:y}=e,v=(0,ct.getColorClassName)("background-color",p),k=(0,ct.__experimentalGetGradientClass)(o),w=Ai===t,C=Li===t,j=!(c||d),S={minHeight:(_&&x?`${_}${x}`:_)||void 0},B={backgroundColor:v?void 0:a,background:r||void 0},T=s&&j?Vi(s):void 0,N=m?`url(${m})`:void 0,P=Vi(s),I=Dt({"is-light":!u,"has-parallax":c,"is-repeated":d,"has-custom-content-position":!Ei(n)},Oi(n)),D=Dt("wp-block-cover__image-background",h?`wp-image-${h}`:null,{[`size-${f}`]:f,"has-parallax":c,"is-repeated":d}),M=o||r;return(0,it.jsxs)(b,{...ct.useBlockProps.save({className:I,style:S}),children:[!l&&w&&m&&(j?(0,it.jsx)("img",{className:D,alt:g,src:m,style:{objectPosition:T},"data-object-fit":"cover","data-object-position":T}):(0,it.jsx)("div",{role:g?"img":void 0,"aria-label":g||void 0,className:D,style:{backgroundPosition:P,backgroundImage:N}})),C&&m&&(0,it.jsx)("video",{className:Dt("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:m,poster:y,style:{objectPosition:T},"data-object-fit":"cover","data-object-position":T}),(0,it.jsx)("span",{"aria-hidden":"true",className:Dt("wp-block-cover__background",v,Fi(i),{"has-background-dim":void 0!==i,"wp-block-cover__gradient-background":m&&M&&0!==i,"has-background-gradient":M,[k]:k}),style:B}),(0,it.jsx)("div",{...ct.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})},edit:Sl,deprecated:ms,variations:Il},zl=()=>jt({name:Dl,metadata:Bl,settings:Ml});var Al=(0,it.jsxs)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,it.jsx)(St.Path,{d:"M4 16h10v1.5H4V16Zm0-4.5h16V13H4v-1.5ZM10 7h10v1.5H10V7Z",fillRule:"evenodd",clipRule:"evenodd"}),(0,it.jsx)(St.Path,{d:"m4 5.25 4 2.5-4 2.5v-5Z"})]});const Ll=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/details","title":"Details","category":"text","description":"Hide and show additional content.","keywords":["summary","toggle","disclosure"],"textdomain":"default","attributes":{"showContent":{"type":"boolean","default":false},"summary":{"type":"rich-text","source":"rich-text","selector":"summary","role":"content"},"name":{"type":"string","source":"attribute","attribute":"name","selector":".wp-block-details"},"placeholder":{"type":"string"}},"supports":{"__experimentalOnEnter":true,"align":["wide","full"],"anchor":true,"color":{"gradients":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true}},"__experimentalBorder":{"color":true,"width":true,"style":true},"html":false,"spacing":{"margin":true,"padding":true,"blockGap":true,"__experimentalDefaultControls":{"margin":false,"padding":false}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"layout":{"allowEditing":false},"interactivity":{"clientNavigation":true},"allowedBlocks":true},"editorStyle":"wp-block-details-editor","style":"wp-block-details"}'),{withIgnoreIMEEvents:Hl}=jo(mt.privateApis),Rl=[["core/paragraph",{placeholder:(0,pt.__)("Type / to add a hidden block")}]];var Vl=function({attributes:e,setAttributes:t,clientId:o}){const{name:n,showContent:r,summary:a,allowedBlocks:i,placeholder:s}=e,l=(0,ct.useBlockProps)(),c=(0,ct.useInnerBlocksProps)(l,{template:Rl,__experimentalCaptureToolbars:!0,allowedBlocks:i}),[u,d]=(0,gt.useState)(r),p=vt(),m=(0,lt.useSelect)((e=>e(ct.store).hasSelectedInnerBlock(o,!0)),[o]);return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsx)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{t({showContent:!1})},dropdownMenuProps:p,children:(0,it.jsx)(mt.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,pt.__)("Open by default"),hasValue:()=>r,onDeselect:()=>{t({showContent:!1})},children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Open by default"),checked:r,onChange:()=>t({showContent:!r})})})})}),(0,it.jsx)(ct.InspectorControls,{group:"advanced",children:(0,it.jsx)(mt.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("Name attribute"),value:n||"",onChange:e=>t({name:e}),help:(0,pt.__)("Enables multiple Details blocks with the same name attribute to be connected, with only one open at a time.")})}),(0,it.jsxs)("details",{...c,open:u||m,onToggle:e=>d(e.target.open),name:n||"",children:[(0,it.jsx)("summary",{onKeyDown:Hl((e=>{"Enter"!==e.key||e.shiftKey||(d((e=>!e)),e.preventDefault())})),onKeyUp:e=>{" "===e.key&&e.preventDefault()},children:(0,it.jsx)(ct.RichText,{identifier:"summary","aria-label":(0,pt.__)("Write summary. Press Enter to expand or collapse the details."),placeholder:s||(0,pt.__)("Write summary…"),withoutInteractiveFormatting:!0,value:a,onChange:e=>t({summary:e})})}),c.children]})]})};var Fl={from:[{type:"block",isMultiBlock:!0,blocks:["*"],isMatch:({},e)=>!(1===e.length&&"core/details"===e[0].name),__experimentalConvert:e=>(0,st.createBlock)("core/details",{},e.map((e=>(0,st.cloneBlock)(e))))}]};const{name:El}=Ll,Ol={icon:Al,example:{attributes:{summary:(0,pt.__)("La Mancha"),showContent:!0},innerBlocks:[{name:"core/paragraph",attributes:{content:(0,pt.__)("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.")}}]},__experimentalLabel(e,{context:t}){const{summary:o}=e,n=e?.metadata?.name,r=o?.trim().length>0;return"list-view"===t&&(n||r)?n||o:"accessibility"===t?r?(0,pt.sprintf)((0,pt.__)("Details. %s"),o):(0,pt.__)("Details. Empty."):void 0},save:function({attributes:e}){const{name:t,showContent:o}=e,n=e.summary?e.summary:"Details",r=ct.useBlockProps.save();return(0,it.jsxs)("details",{...r,name:t||void 0,open:o,children:[(0,it.jsx)("summary",{children:(0,it.jsx)(ct.RichText.Content,{value:n})}),(0,it.jsx)(ct.InnerBlocks.Content,{})]})},edit:Vl,transforms:Fl},Gl=()=>jt({name:El,metadata:Ll,settings:Ol});var $l=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"m19 7-3-3-8.5 8.5-1 4 4-1L19 7Zm-7 11.5H5V20h7v-1.5Z"})});function Ul(e){return e?(0,pt.__)("This embed will preserve its aspect ratio when the browser is resized."):(0,pt.__)("This embed may not preserve its aspect ratio when the browser is resized.")}var ql=({blockSupportsResponsive:e,showEditButton:t,themeSupportsResponsive:o,allowResponsive:n,toggleResponsive:r,switchBackToURLInput:a})=>{const i=vt();return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.BlockControls,{children:(0,it.jsx)(mt.ToolbarGroup,{children:t&&(0,it.jsx)(mt.ToolbarButton,{className:"components-toolbar__control",label:(0,pt.__)("Edit URL"),icon:$l,onClick:a})})}),o&&e&&(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsx)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Media settings"),resetAll:()=>{r(!0)},dropdownMenuProps:i,children:(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Media settings"),isShownByDefault:!0,hasValue:()=>!n,onDeselect:()=>{r(!n)},children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Resize for smaller devices"),checked:n,help:Ul,onChange:r})})})})]})};const Wl=(0,it.jsx)(mt.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(mt.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"})}),Zl=(0,it.jsx)(mt.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(mt.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"})}),Jl=(0,it.jsx)(mt.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(mt.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"})}),Ql=(0,it.jsx)(mt.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(mt.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"})}),Kl={foreground:"#1da1f2",src:(0,it.jsx)(mt.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(mt.G,{children:(0,it.jsx)(mt.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"})})})},Yl={foreground:"#ff0000",src:(0,it.jsx)(mt.SVG,{viewBox:"0 0 24 24",children:(0,it.jsx)(mt.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"})})},Xl={foreground:"#3b5998",src:(0,it.jsx)(mt.SVG,{viewBox:"0 0 24 24",children:(0,it.jsx)(mt.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"})})},ec=(0,it.jsx)(mt.SVG,{viewBox:"0 0 24 24",children:(0,it.jsx)(mt.G,{children:(0,it.jsx)(mt.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"})})}),tc={foreground:"#0073AA",src:(0,it.jsx)(mt.SVG,{viewBox:"0 0 24 24",children:(0,it.jsx)(mt.G,{children:(0,it.jsx)(mt.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"})})})},oc={foreground:"#1db954",src:(0,it.jsx)(mt.SVG,{viewBox:"0 0 24 24",children:(0,it.jsx)(mt.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"})})},nc=(0,it.jsx)(mt.SVG,{viewBox:"0 0 24 24",children:(0,it.jsx)(mt.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"})}),rc={foreground:"#1ab7ea",src:(0,it.jsx)(mt.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(mt.G,{children:(0,it.jsx)(mt.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"})})})},ac=(0,it.jsx)(mt.SVG,{viewBox:"0 0 24 24",children:(0,it.jsx)(mt.Path,{d:"M22 12.068a2.184 2.184 0 0 0-2.186-2.186c-.592 0-1.13.233-1.524.609-1.505-1.075-3.566-1.774-5.86-1.864l1.004-4.695 3.261.699A1.56 1.56 0 1 0 18.255 3c-.61-.001-1.147.357-1.398.877l-3.638-.77a.382.382 0 0 0-.287.053.348.348 0 0 0-.161.251l-1.112 5.233c-2.33.072-4.426.77-5.95 1.864a2.201 2.201 0 0 0-1.523-.61 2.184 2.184 0 0 0-.896 4.176c-.036.215-.053.43-.053.663 0 3.37 3.924 6.111 8.763 6.111s8.763-2.724 8.763-6.11c0-.216-.017-.449-.053-.664A2.207 2.207 0 0 0 22 12.068Zm-15.018 1.56a1.56 1.56 0 0 1 3.118 0c0 .86-.699 1.558-1.559 1.558-.86.018-1.559-.699-1.559-1.559Zm8.728 4.139c-1.076 1.075-3.119 1.147-3.71 1.147-.61 0-2.652-.09-3.71-1.147a.4.4 0 0 1 0-.573.4.4 0 0 1 .574 0c.68.68 2.114.914 3.136.914 1.022 0 2.473-.233 3.136-.914a.4.4 0 0 1 .574 0 .436.436 0 0 1 0 .573Zm-.287-2.563a1.56 1.56 0 0 1 0-3.118c.86 0 1.56.699 1.56 1.56 0 .841-.7 1.558-1.56 1.558Z"})}),ic={foreground:"#35465c",src:(0,it.jsx)(mt.SVG,{viewBox:"0 0 24 24",children:(0,it.jsx)(mt.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"})})},sc=(0,it.jsxs)(mt.SVG,{viewBox:"0 0 24 24",children:[(0,it.jsx)(mt.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"}),(0,it.jsx)(mt.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"}),(0,it.jsx)(mt.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"})]}),lc=(0,it.jsxs)(mt.SVG,{viewBox:"0 0 24 24",children:[(0,it.jsx)(mt.Path,{d:"m.0206909 21 19.8160091-13.07806 3.5831 6.20826z",fill:"#4bc7ee"}),(0,it.jsx)(mt.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"}),(0,it.jsx)(mt.Path,{d:"m.0206909 21 15.2439091-16.38571 4.3029 7.32271z",fill:"#c3d82e"}),(0,it.jsx)(mt.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"}),(0,it.jsx)(mt.Path,{d:"m.0206909 21 19.5468091-9.063 1.6621 2.8344z",fill:"#209dbd"}),(0,it.jsx)(mt.Path,{d:"m.0206909 21 17.9209091-11.82623 1.6259 2.76323z",fill:"#7cb3c9"})]}),cc=(0,it.jsx)(mt.SVG,{viewBox:"0 0 24 24",children:(0,it.jsx)(mt.Path,{d:"M11.903 16.568c-1.82 0-3.124-1.281-3.124-2.967a2.987 2.987 0 0 1 2.989-2.989c1.663 0 2.944 1.304 2.944 3.034 0 1.663-1.281 2.922-2.81 2.922ZM17.997 3l-3.308.73v5.107c-.809-1.034-2.045-1.37-3.505-1.37-1.529 0-2.9.561-4.023 1.662-1.259 1.214-1.933 2.764-1.933 4.495 0 1.888.72 3.506 2.113 4.742 1.056.944 2.314 1.415 3.775 1.415 1.438 0 2.517-.382 3.573-1.415v1.415h3.308V3Z",fill:"#333436"})}),uc=(0,it.jsx)(mt.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(mt.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"})}),dc=(0,it.jsx)(mt.SVG,{viewBox:"0 0 44 44",children:(0,it.jsx)(mt.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"})}),pc={foreground:"#f43e37",src:(0,it.jsxs)(mt.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,it.jsx)(mt.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M24,12A12,12,0,1,1,12,0,12,12,0,0,1,24,12Z"}),(0,it.jsx)(mt.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M2.67,12a9.33,9.33,0,0,1,18.66,0H19a7,7,0,1,0-7,7v2.33A9.33,9.33,0,0,1,2.67,12ZM12,17.6A5.6,5.6,0,1,1,17.6,12h-2A3.56,3.56,0,1,0,12,15.56Z",fill:"#fff"})]})},mc=(0,it.jsx)(mt.SVG,{viewBox:"0 0 24 24",children:(0,it.jsx)(mt.Path,{fill:"#0a7aff",d:"M6.3,4.2c2.3,1.7,4.8,5.3,5.7,7.2.9-1.9,3.4-5.4,5.7-7.2,1.7-1.3,4.3-2.2,4.3.9s-.4,5.2-.6,5.9c-.7,2.6-3.3,3.2-5.6,2.8,4,.7,5.1,3,2.9,5.3-5,5.2-6.7-2.8-6.7-2.8,0,0-1.7,8-6.7,2.8-2.2-2.3-1.2-4.6,2.9-5.3-2.3.4-4.9-.3-5.6-2.8-.2-.7-.6-5.3-.6-5.9,0-3.1,2.7-2.1,4.3-.9h0Z"})});var gc=()=>(0,it.jsx)("div",{className:"wp-block-embed is-loading",children:(0,it.jsx)(mt.Spinner,{})});var hc=({icon:e,label:t,value:o,onSubmit:n,onChange:r,cannotEmbed:a,fallback:i,tryAgain:s})=>(0,it.jsxs)(mt.Placeholder,{icon:(0,it.jsx)(ct.BlockIcon,{icon:e,showColors:!0}),label:t,className:"wp-block-embed",instructions:(0,pt.__)("Paste a link to the content you want to display on your site."),children:[(0,it.jsxs)("form",{onSubmit:n,children:[(0,it.jsx)(mt.__experimentalInputControl,{__next40pxDefaultSize:!0,type:"url",value:o||"",className:"wp-block-embed__placeholder-input",label:t,hideLabelFromVision:!0,placeholder:(0,pt.__)("Enter URL to embed here…"),onChange:r}),(0,it.jsx)(mt.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",children:(0,pt._x)("Embed","button label")})]}),(0,it.jsx)("div",{className:"wp-block-embed__learn-more",children:(0,it.jsx)(mt.ExternalLink,{href:(0,pt.__)("https://wordpress.org/documentation/article/embeds/"),children:(0,pt.__)("Learn more about embeds")})}),a&&(0,it.jsxs)(mt.__experimentalVStack,{spacing:3,className:"components-placeholder__error",children:[(0,it.jsx)("div",{className:"components-placeholder__instructions",children:(0,pt.__)("Sorry, this content could not be embedded.")}),(0,it.jsxs)(mt.__experimentalHStack,{expanded:!1,spacing:3,justify:"flex-start",children:[(0,it.jsx)(mt.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:s,children:(0,pt._x)("Try again","button label")})," ",(0,it.jsx)(mt.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:i,children:(0,pt._x)("Convert to link","button label")})]})]})]});const _c={class:"className",frameborder:"frameBorder",marginheight:"marginHeight",marginwidth:"marginWidth"};function xc({html:e}){const t=(0,gt.useRef)(),o=(0,gt.useMemo)((()=>{const t=(new window.DOMParser).parseFromString(e,"text/html").querySelector("iframe"),o={};return t?(Array.from(t.attributes).forEach((({name:e,value:t})=>{"style"!==e&&(o[_c[e]||e]=t)})),o):o}),[e]);return(0,gt.useEffect)((()=>{const{ownerDocument:e}=t.current,{defaultView:n}=e;function r({data:{secret:e,message:n,value:r}={}}){"height"===n&&e===o["data-secret"]&&(t.current.height=r)}return n.addEventListener("message",r),()=>{n.removeEventListener("message",r)}}),[]),(0,it.jsx)("div",{className:"wp-block-embed__wrapper",children:(0,it.jsx)("iframe",{ref:(0,xt.useMergeRefs)([t,(0,xt.useFocusableIframe)()]),title:o.title,...o})})}function bc({preview:e,previewable:t,url:o,type:n,isSelected:r,className:a,icon:i,label:s}){const[l,c]=(0,gt.useState)(!1);!r&&l&&c(!1);const u=()=>{c(!0)},{scripts:d}=e,p="photo"===n?(e=>{const t=e.url||e.thumbnail_url,o=(0,it.jsx)("p",{children:(0,it.jsx)("img",{src:t,alt:e.title,width:"100%"})});return(0,gt.renderToString)(o)})(e):e.html,m=(0,no.getAuthority)(o),g=(0,pt.sprintf)((0,pt.__)("Embedded content from %s"),m),h=Dt(n,a,"wp-block-embed__wrapper"),_="wp-embed"===n?(0,it.jsx)(xc,{html:p}):(0,it.jsxs)("div",{className:"wp-block-embed__wrapper",children:[(0,it.jsx)(mt.SandBox,{html:p,scripts:d,title:g,type:h,onFocus:u}),!l&&(0,it.jsx)("div",{className:"block-library-embed__interactive-overlay",onMouseUp:u})]});return(0,it.jsx)(it.Fragment,{children:t?_:(0,it.jsxs)(mt.Placeholder,{icon:(0,it.jsx)(ct.BlockIcon,{icon:i,showColors:!0}),label:s,children:[(0,it.jsx)("p",{className:"components-placeholder__error",children:(0,it.jsx)("a",{href:o,children:o})}),(0,it.jsx)("p",{className:"components-placeholder__error",children:(0,pt.sprintf)((0,pt.__)("Embedded content from %s can't be previewed in the editor."),m)})]})})}var fc=e=>{const{attributes:{providerNameSlug:t,previewable:o,responsive:n,url:r},attributes:a,isSelected:i,onReplace:s,setAttributes:l,insertBlocksAfter:c,onFocus:u}=e,d={title:(0,pt._x)("Embed","block title"),icon:Wl},{icon:p,title:m}=(g=t,(0,st.getBlockVariations)(So)?.find((({name:e})=>e===g))||d);var g;const[h,_]=(0,gt.useState)(r),[x,b]=(0,gt.useState)(!1),{invalidateResolution:f}=(0,lt.useDispatch)(_t.store),{preview:y,fetching:v,themeSupportsResponsive:k,cannotEmbed:w,hasResolved:C}=(0,lt.useSelect)((e=>{const{getEmbedPreview:t,isPreviewEmbedFallback:o,isRequestingEmbedPreview:n,getThemeSupports:a,hasFinishedResolution:i}=e(_t.store);if(!r)return{fetching:!1,cannotEmbed:!1};const s=t(r),l=o(r),c=!!s&&!(!1===s?.html&&void 0===s?.type)&&!(404===s?.data?.status);return{preview:c?s:void 0,fetching:n(r),themeSupportsResponsive:a()["responsive-embeds"],cannotEmbed:!c||l,hasResolved:i("getEmbedPreview",[r])}}),[r]),j=()=>((e,t,o,n)=>{const{allowResponsive:r,className:a}=e;return{...e,...Do(t,o,a,n,r)}})(a,y,m,n);(0,gt.useEffect)((()=>{if(y?.html||!w||!C)return;const e=r.replace(/\/$/,"");_(e),b(!1),l({url:e})}),[y?.html,r,w,C,l]),(0,gt.useEffect)((()=>{if(w&&!v&&h&&"x.com"===(0,no.getAuthority)(h)){const e=new URL(h);e.host="twitter.com",l({url:e.toString()})}}),[h,w,v,l]),(0,gt.useEffect)((()=>{if(y&&!x){const t=j();if(Object.keys(t).some((e=>t[e]!==a[e]))&&l(t),s){const o=No(e,t);o&&s(o)}}}),[y,x]);const S=(0,ct.useBlockProps)();if(v)return(0,it.jsx)(St.View,{...S,children:(0,it.jsx)(gc,{})});const B=(0,pt.sprintf)((0,pt.__)("%s URL"),m);if(!y||w||x)return(0,it.jsx)(St.View,{...S,children:(0,it.jsx)(hc,{icon:p,label:B,onFocus:u,onSubmit:e=>{e&&e.preventDefault();const t=Po(a.className);b(!1),l({url:h,className:t})},value:h,cannotEmbed:w,onChange:e=>_(e),fallback:()=>function(e,t){const o=(0,it.jsx)("a",{href:e,children:e});t((0,st.createBlock)("core/paragraph",{content:(0,gt.renderToString)(o)}))}(h,s),tryAgain:()=>{f("getEmbedPreview",[h])}})});const{caption:T,type:N,allowResponsive:P,className:I}=j(),D=Dt(I,e.className);return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ql,{showEditButton:y&&!w,themeSupportsResponsive:k,blockSupportsResponsive:n,allowResponsive:P,toggleResponsive:function(e){const{className:t}=a,{html:o}=y;l({allowResponsive:e,className:Io(o,t,n&&e)})},switchBackToURLInput:()=>b(!0)}),(0,it.jsxs)("figure",{...S,className:Dt(S.className,D,{[`is-type-${N}`]:N,[`is-provider-${t}`]:t,[`wp-block-embed-${t}`]:t}),children:[(0,it.jsx)(bc,{preview:y,previewable:o,className:D,url:h,type:N,caption:T,onCaptionChange:e=>l({caption:e}),isSelected:i,icon:p,label:B,insertBlocksAfter:c,attributes:a,setAttributes:l}),(0,it.jsx)(zo,{attributes:a,setAttributes:l,isSelected:i,insertBlocksAfter:c,label:(0,pt.__)("Embed caption text"),showToolbarButton:i})]})]})};const{name:yc}=yo;var vc={from:[{type:"raw",isMatch:e=>"P"===e.nodeName&&/^\s*(https?:\/\/\S+)\s*$/i.test(e.textContent)&&1===e.textContent?.match(/https/gi)?.length,transform:e=>(0,st.createBlock)(yc,{url:e.textContent.trim()})}],to:[{type:"block",blocks:["core/paragraph"],isMatch:({url:e})=>!!e,transform:({url:e,caption:t,className:o})=>{let n=`<a href="${e}">${e}</a>`;return t?.trim()&&(n+=`<br />${t}`),(0,st.createBlock)("core/paragraph",{content:n,className:Po(o)})}}]};function kc(e){return(0,pt.sprintf)((0,pt.__)("%s Embed"),e)}const wc=[{name:"twitter",title:kc("Twitter"),icon:Kl,keywords:["tweet",(0,pt.__)("social")],description:(0,pt.__)("Embed a tweet."),patterns:[/^https?:\/\/(www\.)?twitter\.com\/.+/i],attributes:{providerNameSlug:"twitter",responsive:!0}},{name:"youtube",title:kc("YouTube"),icon:Yl,keywords:[(0,pt.__)("music"),(0,pt.__)("video")],description:(0,pt.__)("Embed a YouTube video."),patterns:[/^https?:\/\/((m|www)\.)?youtube\.com\/.+/i,/^https?:\/\/youtu\.be\/.+/i],attributes:{providerNameSlug:"youtube",responsive:!0}},{name:"facebook",title:kc("Facebook"),icon:Xl,keywords:[(0,pt.__)("social")],description:(0,pt.__)("Embed a Facebook post."),scope:["block"],patterns:[],attributes:{providerNameSlug:"facebook",previewable:!1,responsive:!0}},{name:"instagram",title:kc("Instagram"),icon:ec,keywords:[(0,pt.__)("image"),(0,pt.__)("social")],description:(0,pt.__)("Embed an Instagram post."),scope:["block"],patterns:[],attributes:{providerNameSlug:"instagram",responsive:!0}},{name:"wordpress",title:kc("WordPress"),icon:tc,keywords:[(0,pt.__)("post"),(0,pt.__)("blog")],description:(0,pt.__)("Embed a WordPress post."),attributes:{providerNameSlug:"wordpress"}},{name:"soundcloud",title:kc("SoundCloud"),icon:Zl,keywords:[(0,pt.__)("music"),(0,pt.__)("audio")],description:(0,pt.__)("Embed SoundCloud content."),patterns:[/^https?:\/\/(www\.)?soundcloud\.com\/.+/i],attributes:{providerNameSlug:"soundcloud",responsive:!0}},{name:"spotify",title:kc("Spotify"),icon:oc,keywords:[(0,pt.__)("music"),(0,pt.__)("audio")],description:(0,pt.__)("Embed Spotify content."),patterns:[/^https?:\/\/(open|play)\.spotify\.com\/.+/i],attributes:{providerNameSlug:"spotify",responsive:!0}},{name:"flickr",title:kc("Flickr"),icon:nc,keywords:[(0,pt.__)("image")],description:(0,pt.__)("Embed Flickr content."),patterns:[/^https?:\/\/(www\.)?flickr\.com\/.+/i,/^https?:\/\/flic\.kr\/.+/i],attributes:{providerNameSlug:"flickr",responsive:!0}},{name:"vimeo",title:kc("Vimeo"),icon:rc,keywords:[(0,pt.__)("video")],description:(0,pt.__)("Embed a Vimeo video."),patterns:[/^https?:\/\/(www\.)?vimeo\.com\/.+/i],attributes:{providerNameSlug:"vimeo",responsive:!0}},{name:"animoto",title:kc("Animoto"),icon:lc,description:(0,pt.__)("Embed an Animoto video."),patterns:[/^https?:\/\/(www\.)?(animoto|video214)\.com\/.+/i],attributes:{providerNameSlug:"animoto",responsive:!0}},{name:"cloudup",title:kc("Cloudup"),icon:Wl,description:(0,pt.__)("Embed Cloudup content."),patterns:[/^https?:\/\/cloudup\.com\/.+/i],attributes:{providerNameSlug:"cloudup",responsive:!0}},{name:"collegehumor",title:kc("CollegeHumor"),icon:Ql,description:(0,pt.__)("Embed CollegeHumor content."),scope:["block"],patterns:[],attributes:{providerNameSlug:"collegehumor",responsive:!0}},{name:"crowdsignal",title:kc("Crowdsignal"),icon:Wl,keywords:["polldaddy",(0,pt.__)("survey")],description:(0,pt.__)("Embed Crowdsignal (formerly Polldaddy) content."),patterns:[/^https?:\/\/((.+\.)?polldaddy\.com|poll\.fm|.+\.crowdsignal\.net|.+\.survey\.fm)\/.+/i],attributes:{providerNameSlug:"crowdsignal",responsive:!0}},{name:"dailymotion",title:kc("Dailymotion"),icon:cc,keywords:[(0,pt.__)("video")],description:(0,pt.__)("Embed a Dailymotion video."),patterns:[/^https?:\/\/(www\.)?dailymotion\.com\/.+/i],attributes:{providerNameSlug:"dailymotion",responsive:!0}},{name:"imgur",title:kc("Imgur"),icon:Jl,description:(0,pt.__)("Embed Imgur content."),patterns:[/^https?:\/\/(.+\.)?imgur\.com\/.+/i],attributes:{providerNameSlug:"imgur",responsive:!0}},{name:"issuu",title:kc("Issuu"),icon:Wl,description:(0,pt.__)("Embed Issuu content."),patterns:[/^https?:\/\/(www\.)?issuu\.com\/.+/i],attributes:{providerNameSlug:"issuu",responsive:!0}},{name:"kickstarter",title:kc("Kickstarter"),icon:Wl,description:(0,pt.__)("Embed Kickstarter content."),patterns:[/^https?:\/\/(www\.)?kickstarter\.com\/.+/i,/^https?:\/\/kck\.st\/.+/i],attributes:{providerNameSlug:"kickstarter",responsive:!0}},{name:"mixcloud",title:kc("Mixcloud"),icon:Zl,keywords:[(0,pt.__)("music"),(0,pt.__)("audio")],description:(0,pt.__)("Embed Mixcloud content."),patterns:[/^https?:\/\/(www\.)?mixcloud\.com\/.+/i],attributes:{providerNameSlug:"mixcloud",responsive:!0}},{name:"pocket-casts",title:kc("Pocket Casts"),icon:pc,keywords:[(0,pt.__)("podcast"),(0,pt.__)("audio")],description:(0,pt.__)("Embed a podcast player from Pocket Casts."),patterns:[/^https:\/\/pca.st\/\w+/i],attributes:{providerNameSlug:"pocket-casts",responsive:!0}},{name:"reddit",title:kc("Reddit"),icon:ac,description:(0,pt.__)("Embed a Reddit thread."),patterns:[/^https?:\/\/(www\.)?reddit\.com\/.+/i],attributes:{providerNameSlug:"reddit",responsive:!0}},{name:"reverbnation",title:kc("ReverbNation"),icon:Zl,description:(0,pt.__)("Embed ReverbNation content."),patterns:[/^https?:\/\/(www\.)?reverbnation\.com\/.+/i],attributes:{providerNameSlug:"reverbnation",responsive:!0}},{name:"scribd",title:kc("Scribd"),icon:Wl,description:(0,pt.__)("Embed Scribd content."),patterns:[/^https?:\/\/(www\.)?scribd\.com\/.+/i],attributes:{providerNameSlug:"scribd",responsive:!0}},{name:"smugmug",title:kc("SmugMug"),icon:Jl,description:(0,pt.__)("Embed SmugMug content."),patterns:[/^https?:\/\/(.+\.)?smugmug\.com\/.*/i],attributes:{providerNameSlug:"smugmug",previewable:!1,responsive:!0}},{name:"speaker-deck",title:kc("Speaker Deck"),icon:Wl,description:(0,pt.__)("Embed Speaker Deck content."),patterns:[/^https?:\/\/(www\.)?speakerdeck\.com\/.+/i],attributes:{providerNameSlug:"speaker-deck",responsive:!0}},{name:"tiktok",title:kc("TikTok"),icon:Ql,keywords:[(0,pt.__)("video")],description:(0,pt.__)("Embed a TikTok video."),patterns:[/^https?:\/\/(www\.)?tiktok\.com\/.+/i],attributes:{providerNameSlug:"tiktok",responsive:!0}},{name:"ted",title:kc("TED"),icon:Ql,description:(0,pt.__)("Embed a TED video."),patterns:[/^https?:\/\/(www\.|embed\.)?ted\.com\/.+/i],attributes:{providerNameSlug:"ted",responsive:!0}},{name:"tumblr",title:kc("Tumblr"),icon:ic,keywords:[(0,pt.__)("social")],description:(0,pt.__)("Embed a Tumblr post."),patterns:[/^https?:\/\/(.+)\.tumblr\.com\/.+/i],attributes:{providerNameSlug:"tumblr",responsive:!0}},{name:"videopress",title:kc("VideoPress"),icon:Ql,keywords:[(0,pt.__)("video")],description:(0,pt.__)("Embed a VideoPress video."),patterns:[/^https?:\/\/videopress\.com\/.+/i],attributes:{providerNameSlug:"videopress",responsive:!0}},{name:"wordpress-tv",title:kc("WordPress.tv"),icon:Ql,description:(0,pt.__)("Embed a WordPress.tv video."),patterns:[/^https?:\/\/wordpress\.tv\/.+/i],attributes:{providerNameSlug:"wordpress-tv",responsive:!0}},{name:"amazon-kindle",title:kc("Amazon Kindle"),icon:sc,keywords:[(0,pt.__)("ebook")],description:(0,pt.__)("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:kc("Pinterest"),icon:uc,keywords:[(0,pt.__)("social"),(0,pt.__)("bookmark")],description:(0,pt.__)("Embed Pinterest pins, boards, and profiles."),patterns:[/^https?:\/\/([a-z]{2}|www)\.pinterest\.com(\.(au|mx))?\/.*/i],attributes:{providerNameSlug:"pinterest"}},{name:"wolfram-cloud",title:kc("Wolfram"),icon:dc,description:(0,pt.__)("Embed Wolfram notebook content."),patterns:[/^https?:\/\/(www\.)?wolframcloud\.com\/obj\/.+/i],attributes:{providerNameSlug:"wolfram-cloud",responsive:!0}},{name:"bluesky",title:kc("Bluesky"),icon:mc,description:(0,pt.__)("Embed a Bluesky post."),patterns:[/^https?:\/\/bsky\.app\/profile\/.+\/post\/.+/i],attributes:{providerNameSlug:"bluesky"}}];wc.forEach((e=>{e.isActive||(e.isActive=(e,t)=>e.providerNameSlug===t.providerNameSlug)}));var Cc=wc;const{attributes:jc}=yo,Sc={attributes:jc,save({attributes:e}){const{url:t,caption:o,type:n,providerNameSlug:r}=e;if(!t)return null;const a=Dt("wp-block-embed",{[`is-type-${n}`]:n,[`is-provider-${r}`]:r,[`wp-block-embed-${r}`]:r});return(0,it.jsxs)("figure",{...ct.useBlockProps.save({className:a}),children:[(0,it.jsx)("div",{className:"wp-block-embed__wrapper",children:`\n${t}\n`}),!ct.RichText.isEmpty(o)&&(0,it.jsx)(ct.RichText.Content,{tagName:"figcaption",value:o})]})}};var Bc=[Sc,{attributes:jc,save({attributes:{url:e,caption:t,type:o,providerNameSlug:n}}){if(!e)return null;const r=Dt("wp-block-embed",{[`is-type-${o}`]:o,[`is-provider-${n}`]:n});return(0,it.jsxs)("figure",{className:r,children:[`\n${e}\n`,!ct.RichText.isEmpty(t)&&(0,it.jsx)(ct.RichText.Content,{tagName:"figcaption",value:t})]})}}];const{name:Tc}=yo,Nc={icon:Wl,edit:fc,save:function({attributes:e}){const{url:t,caption:o,type:n,providerNameSlug:r}=e;if(!t)return null;const a=Dt("wp-block-embed",{[`is-type-${n}`]:n,[`is-provider-${r}`]:r,[`wp-block-embed-${r}`]:r});return(0,it.jsxs)("figure",{...ct.useBlockProps.save({className:a}),children:[(0,it.jsx)("div",{className:"wp-block-embed__wrapper",children:`\n${t}\n`}),!ct.RichText.isEmpty(o)&&(0,it.jsx)(ct.RichText.Content,{className:(0,ct.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:o})]})},transforms:vc,variations:Cc,deprecated:Bc},Pc=()=>jt({name:Tc,metadata:yo,settings:Nc});var Ic=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12.848 8a1 1 0 0 1-.914-.594l-.723-1.63a.5.5 0 0 0-.447-.276H5a.5.5 0 0 0-.5.5v11.5a.5.5 0 0 0 .5.5h14a.5.5 0 0 0 .5-.5v-9A.5.5 0 0 0 19 8h-6.152Zm.612-1.5a.5.5 0 0 1-.462-.31l-.445-1.084A2 2 0 0 0 10.763 4H5a2 2 0 0 0-2 2v11.5a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-9a2 2 0 0 0-2-2h-5.54Z"})});const Dc={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},save({attributes:e}){const{href:t,fileId:o,fileName:n,textLinkHref:r,textLinkTarget:a,showDownloadButton:i,downloadButtonText:s,displayPreview:l,previewHeight:c}=e,u=ct.RichText.isEmpty(n)?(0,pt.__)("PDF embed"):(0,pt.sprintf)((0,pt.__)("Embed of %s."),n),d=!ct.RichText.isEmpty(n),p=d?o:void 0;return t&&(0,it.jsxs)("div",{...ct.useBlockProps.save(),children:[l&&(0,it.jsx)(it.Fragment,{children:(0,it.jsx)("object",{className:"wp-block-file__embed",data:t,type:"application/pdf",style:{width:"100%",height:`${c}px`},"aria-label":u})}),d&&(0,it.jsx)("a",{id:p,href:r,target:a,rel:a?"noreferrer noopener":void 0,children:(0,it.jsx)(ct.RichText.Content,{value:n})}),i&&(0,it.jsx)("a",{href:t,className:Dt("wp-block-file__button",(0,ct.__experimentalGetElementClassName)("button")),download:!0,"aria-describedby":p,children:(0,it.jsx)(ct.RichText.Content,{value:s})})]})}},Mc={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},save({attributes:e}){const{href:t,fileId:o,fileName:n,textLinkHref:r,textLinkTarget:a,showDownloadButton:i,downloadButtonText:s,displayPreview:l,previewHeight:c}=e,u=ct.RichText.isEmpty(n)?(0,pt.__)("PDF embed"):(0,pt.sprintf)((0,pt.__)("Embed of %s."),n),d=!ct.RichText.isEmpty(n),p=d?o:void 0;return t&&(0,it.jsxs)("div",{...ct.useBlockProps.save(),children:[l&&(0,it.jsx)(it.Fragment,{children:(0,it.jsx)("object",{className:"wp-block-file__embed",data:t,type:"application/pdf",style:{width:"100%",height:`${c}px`},"aria-label":u})}),d&&(0,it.jsx)("a",{id:p,href:r,target:a,rel:a?"noreferrer noopener":void 0,children:(0,it.jsx)(ct.RichText.Content,{value:n})}),i&&(0,it.jsx)("a",{href:t,className:"wp-block-file__button",download:!0,"aria-describedby":p,children:(0,it.jsx)(ct.RichText.Content,{value:s})})]})}},zc={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({attributes:e}){const{href:t,fileName:o,textLinkHref:n,textLinkTarget:r,showDownloadButton:a,downloadButtonText:i,displayPreview:s,previewHeight:l}=e,c=ct.RichText.isEmpty(o)?(0,pt.__)("PDF embed"):(0,pt.sprintf)((0,pt.__)("Embed of %s."),o);return t&&(0,it.jsxs)("div",{...ct.useBlockProps.save(),children:[s&&(0,it.jsx)(it.Fragment,{children:(0,it.jsx)("object",{className:"wp-block-file__embed",data:t,type:"application/pdf",style:{width:"100%",height:`${l}px`},"aria-label":c})}),!ct.RichText.isEmpty(o)&&(0,it.jsx)("a",{href:n,target:r,rel:r?"noreferrer noopener":void 0,children:(0,it.jsx)(ct.RichText.Content,{value:o})}),a&&(0,it.jsx)("a",{href:t,className:"wp-block-file__button",download:!0,children:(0,it.jsx)(ct.RichText.Content,{value:i})})]})}};var Ac=[Dc,Mc,zc];function Lc({hrefs:e,openInNewWindow:t,showDownloadButton:o,changeLinkDestinationOption:n,changeOpenInNewWindow:r,changeShowDownloadButton:a,displayPreview:i,changeDisplayPreview:s,previewHeight:l,changePreviewHeight:c}){const{href:u,textLinkHref:d,attachmentPage:p}=e,m=vt();let g=[{value:u,label:(0,pt.__)("URL")}];return p&&(g=[{value:u,label:(0,pt.__)("Media file")},{value:p,label:(0,pt.__)("Attachment page")}]),(0,it.jsx)(it.Fragment,{children:(0,it.jsxs)(ct.InspectorControls,{children:[u.endsWith(".pdf")&&(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("PDF settings"),resetAll:()=>{s(!0),c(600)},dropdownMenuProps:m,children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Show inline embed"),isShownByDefault:!0,hasValue:()=>!i,onDeselect:()=>s(!0),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Show inline embed"),help:i?(0,pt.__)("Note: Most phone and tablet browsers won't display embedded PDFs."):null,checked:!!i,onChange:s})}),i&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Height in pixels"),isShownByDefault:!0,hasValue:()=>600!==l,onDeselect:()=>c(600),children:(0,it.jsx)(mt.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,pt.__)("Height in pixels"),min:Rc,max:Math.max(Vc,l),value:l,onChange:c})})]}),(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{n(u),r(!1),a(!0)},dropdownMenuProps:m,children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Link to"),isShownByDefault:!0,hasValue:()=>d!==u,onDeselect:()=>n(u),children:(0,it.jsx)(mt.SelectControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("Link to"),value:d,options:g,onChange:n})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>!!t,onDeselect:()=>r(!1),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Open in new tab"),checked:t,onChange:r})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Show download button"),isShownByDefault:!0,hasValue:()=>!o,onDeselect:()=>a(!0),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Show download button"),checked:o,onChange:a})})]})]})})}const Hc=e=>{let t;try{t=new window.ActiveXObject(e)}catch(e){t=void 0}return t},Rc=200,Vc=2e3;function Fc({text:e,disabled:t}){const{createNotice:o}=(0,lt.useDispatch)(bo.store),n=(0,xt.useCopyToClipboard)(e,(()=>{o("info",(0,pt.__)("Copied URL to clipboard."),{isDismissible:!0,type:"snackbar"})}));return(0,it.jsx)(mt.ToolbarButton,{className:"components-clipboard-toolbar-button",ref:n,disabled:t,children:(0,pt.__)("Copy URL")})}var Ec=function({attributes:e,isSelected:t,setAttributes:o,clientId:n}){const{id:r,fileName:a,href:i,textLinkHref:s,textLinkTarget:l,showDownloadButton:c,downloadButtonText:u,displayPreview:d,previewHeight:p}=e,[m,g]=(0,gt.useState)(e.blob),{media:h}=(0,lt.useSelect)((e=>({media:void 0===r?void 0:e(_t.store).getEntityRecord("postType","attachment",r)})),[r]),{createErrorNotice:_}=(0,lt.useDispatch)(bo.store),{toggleSelection:x,__unstableMarkNextChangeAsNotPersistent:b}=(0,lt.useDispatch)(ct.store);function f(t){if(!t||!t.url)return o({href:void 0,fileName:void 0,textLinkHref:void 0,id:void 0,fileId:void 0,displayPreview:void 0,previewHeight:void 0}),void g();if((0,ht.isBlobURL)(t.url))return void g(t.url);const r="application/pdf"===(t.mime||t.mime_type)||(0,no.getFilename)(t.url).toLowerCase().endsWith(".pdf"),a={displayPreview:r?e.displayPreview??!0:void 0,previewHeight:r?e.previewHeight??600:void 0};o({href:t.url,fileName:t.title,textLinkHref:t.url,id:t.id,fileId:`wp-block-file--media-${n}`,blob:void 0,...a}),g()}function y(e){o({href:void 0}),_(e,{type:"snackbar"})}ft({url:m,onChange:f,onError:y}),(0,gt.useEffect)((()=>{ct.RichText.isEmpty(u)&&(b(),o({downloadButtonText:(0,pt._x)("Download","button label")}))}),[]);const v=h&&h.link,k=(0,ct.useBlockProps)({className:Dt(!!m&&(0,mt.__unstableGetAnimateClassName)({type:"loading"}),{"is-transient":!!m})}),w=!(!window.navigator.pdfViewerEnabled&&(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)&&!Hc("AcroPDF.PDF")&&!Hc("PDF.PdfCtrl")))&&d;return i||m?(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(Lc,{hrefs:{href:i||m,textLinkHref:s,attachmentPage:v},openInNewWindow:!!l,showDownloadButton:c,changeLinkDestinationOption:function(e){o({textLinkHref:e})},changeOpenInNewWindow:function(e){o({textLinkTarget:!!e&&"_blank"})},changeShowDownloadButton:function(e){o({showDownloadButton:e})},displayPreview:d,changeDisplayPreview:function(e){o({displayPreview:e})},previewHeight:p,changePreviewHeight:function(e){const t=Math.max(parseInt(e,10),Rc);o({previewHeight:t})}}),(0,it.jsxs)(ct.BlockControls,{group:"other",children:[(0,it.jsx)(ct.MediaReplaceFlow,{mediaId:r,mediaURL:i,accept:"*",onSelect:f,onError:y,onReset:()=>f(void 0)}),(0,it.jsx)(Fc,{text:i,disabled:(0,ht.isBlobURL)(i)})]}),(0,it.jsxs)("div",{...k,children:[w&&(0,it.jsxs)(mt.ResizableBox,{size:{height:p,width:"100%"},minHeight:Rc,maxHeight:Vc,grid:[1,10],enable:{top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},onResizeStart:()=>x(!1),onResizeStop:function(e,t,n,r){x(!0);const a=parseInt(p+r.height,10);o({previewHeight:a})},showHandle:t,children:[(0,it.jsx)("object",{className:"wp-block-file__preview",data:i,type:"application/pdf","aria-label":(0,pt.__)("Embed of the selected PDF file.")}),!t&&(0,it.jsx)("div",{className:"wp-block-file__preview-overlay"})]}),(0,it.jsxs)("div",{className:"wp-block-file__content-wrapper",children:[(0,it.jsx)(ct.RichText,{identifier:"fileName",tagName:"a",value:a,placeholder:(0,pt.__)("Write file name…"),withoutInteractiveFormatting:!0,onChange:e=>o({fileName:pn(e)}),href:s}),c&&(0,it.jsx)("div",{className:"wp-block-file__button-richtext-wrapper",children:(0,it.jsx)(ct.RichText,{identifier:"downloadButtonText",tagName:"div","aria-label":(0,pt.__)("Download button text"),className:Dt("wp-block-file__button",(0,ct.__experimentalGetElementClassName)("button")),value:u,withoutInteractiveFormatting:!0,placeholder:(0,pt.__)("Add text…"),onChange:e=>o({downloadButtonText:pn(e)})})})]})]})]}):(0,it.jsx)("div",{...k,children:(0,it.jsx)(ct.MediaPlaceholder,{icon:(0,it.jsx)(ct.BlockIcon,{icon:Ic}),labels:{title:(0,pt.__)("File"),instructions:(0,pt.__)("Drag and drop a file, upload, or choose from your library.")},onSelect:f,onError:y,accept:"*"})})};const Oc=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"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"},"blob":{"type":"string","role":"local"},"href":{"type":"string","role":"content"},"fileId":{"type":"string","source":"attribute","selector":"a:not([download])","attribute":"id"},"fileName":{"type":"rich-text","source":"rich-text","selector":"a:not([download])","role":"content"},"textLinkHref":{"type":"string","source":"attribute","selector":"a:not([download])","attribute":"href","role":"content"},"textLinkTarget":{"type":"string","source":"attribute","selector":"a:not([download])","attribute":"target"},"showDownloadButton":{"type":"boolean","default":true},"downloadButtonText":{"type":"rich-text","source":"rich-text","selector":"a[download]","role":"content"},"displayPreview":{"type":"boolean"},"previewHeight":{"type":"number","default":600}},"supports":{"anchor":true,"align":true,"spacing":{"margin":true,"padding":true},"color":{"gradients":true,"link":true,"text":false,"__experimentalDefaultControls":{"background":true,"link":true}},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true,"__experimentalDefaultControls":{"radius":true,"color":true,"width":true,"style":true}},"interactivity":true},"editorStyle":"wp-block-file-editor","style":"wp-block-file"}');const Gc={from:[{type:"files",isMatch:e=>e.length>0,priority:15,transform:e=>{const t=[];return e.forEach((e=>{const o=(0,ht.createBlobURL)(e);e.type.startsWith("video/")?t.push((0,st.createBlock)("core/video",{blob:(0,ht.createBlobURL)(e)})):e.type.startsWith("image/")?t.push((0,st.createBlock)("core/image",{blob:(0,ht.createBlobURL)(e)})):e.type.startsWith("audio/")?t.push((0,st.createBlock)("core/audio",{blob:(0,ht.createBlobURL)(e)})):t.push((0,st.createBlock)("core/file",{blob:o,fileName:e.name}))})),t}},{type:"block",blocks:["core/audio"],transform:e=>(0,st.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=>(0,st.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=>(0,st.createBlock)("core/file",{href:e.url,fileName:e.caption||(0,no.getFilename)(e.url),textLinkHref:e.url,id:e.id,anchor:e.anchor})}],to:[{type:"block",blocks:["core/audio"],isMatch:({id:e})=>{if(!e)return!1;const{getEntityRecord:t}=(0,lt.select)(_t.store),o=t("postType","attachment",e);return!!o&&o.mime_type.includes("audio")},transform:e=>(0,st.createBlock)("core/audio",{src:e.href,caption:e.fileName,id:e.id,anchor:e.anchor})},{type:"block",blocks:["core/video"],isMatch:({id:e})=>{if(!e)return!1;const{getEntityRecord:t}=(0,lt.select)(_t.store),o=t("postType","attachment",e);return!!o&&o.mime_type.includes("video")},transform:e=>(0,st.createBlock)("core/video",{src:e.href,caption:e.fileName,id:e.id,anchor:e.anchor})},{type:"block",blocks:["core/image"],isMatch:({id:e})=>{if(!e)return!1;const{getEntityRecord:t}=(0,lt.select)(_t.store),o=t("postType","attachment",e);return!!o&&o.mime_type.includes("image")},transform:e=>(0,st.createBlock)("core/image",{url:e.href,caption:e.fileName,id:e.id,anchor:e.anchor})}]};var $c=Gc;const{name:Uc}=Oc,qc={icon:Ic,example:{attributes:{href:"https://upload.wikimedia.org/wikipedia/commons/d/dd/Armstrong_Small_Step.ogg",fileName:(0,pt._x)("Armstrong_Small_Step","Name of the file")}},transforms:$c,deprecated:Ac,edit:Ec,save:function({attributes:e}){const{href:t,fileId:o,fileName:n,textLinkHref:r,textLinkTarget:a,showDownloadButton:i,downloadButtonText:s,displayPreview:l,previewHeight:c}=e,u=ct.RichText.isEmpty(n)?"PDF embed":n.toString(),d=!ct.RichText.isEmpty(n),p=d?o:void 0;return t&&(0,it.jsxs)("div",{...ct.useBlockProps.save(),children:[l&&(0,it.jsx)(it.Fragment,{children:(0,it.jsx)("object",{className:"wp-block-file__embed",data:t,type:"application/pdf",style:{width:"100%",height:`${c}px`},"aria-label":u})}),d&&(0,it.jsx)("a",{id:p,href:r,target:a,rel:a?"noreferrer noopener":void 0,children:(0,it.jsx)(ct.RichText.Content,{value:n})}),i&&(0,it.jsx)("a",{href:t,className:Dt("wp-block-file__button",(0,ct.__experimentalGetElementClassName)("button")),download:!0,"aria-describedby":p,children:(0,it.jsx)(ct.RichText.Content,{value:s})})]})}},Wc=()=>jt({name:Uc,metadata:Oc,settings:qc}),Zc=["core/form-submission-notification",{type:"success"},[["core/paragraph",{content:'<mark style="background-color:rgba(0, 0, 0, 0);color:#345C00" class="has-inline-color">'+(0,pt.__)("Your form has been submitted successfully")+"</mark>"}]]],Jc=["core/form-submission-notification",{type:"error"},[["core/paragraph",{content:'<mark style="background-color:rgba(0, 0, 0, 0);color:#CF2E2E" class="has-inline-color">'+(0,pt.__)("There was an error submitting your form.")+"</mark>"}]]],Qc=[Zc,Jc,["core/form-input",{type:"text",label:(0,pt.__)("Name"),required:!0}],["core/form-input",{type:"email",label:(0,pt.__)("Email"),required:!0}],["core/form-input",{type:"textarea",label:(0,pt.__)("Comment"),required:!0}],["core/form-submit-button",{}]];var Kc=({attributes:e,setAttributes:t,clientId:o})=>{const n=vt(),{action:r,method:a,email:i,submissionMethod:s}=e,l=(0,ct.useBlockProps)(),{hasInnerBlocks:c}=(0,lt.useSelect)((e=>{const{getBlock:t}=e(ct.store),n=t(o);return{hasInnerBlocks:!(!n||!n.innerBlocks.length)}}),[o]),u=(0,ct.useInnerBlocksProps)(l,{template:Qc,renderAppender:c?void 0:ct.InnerBlocks.ButtonBlockAppender});return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsxs)(mt.__experimentalToolsPanel,{dropdownMenuProps:n,label:(0,pt.__)("Settings"),resetAll:()=>{t({submissionMethod:"email",email:void 0,action:void 0,method:"post"})},children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>"email"!==s,label:(0,pt.__)("Submissions method"),onDeselect:()=>t({submissionMethod:"email"}),isShownByDefault:!0,children:(0,it.jsx)(mt.SelectControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,pt.__)("Submissions method"),options:[{label:(0,pt.__)("Send email"),value:"email"},{label:(0,pt.__)("- Custom -"),value:"custom"}],value:s,onChange:e=>t({submissionMethod:e}),help:"custom"===s?(0,pt.__)('Select the method to use for form submissions. Additional options for the "custom" mode can be found in the "Advanced" section.'):(0,pt.__)("Select the method to use for form submissions.")})}),"email"===s&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!!i,label:(0,pt.__)("Email for form submissions"),onDeselect:()=>t({email:void 0,action:void 0,method:"post"}),isShownByDefault:!0,children:(0,it.jsx)(mt.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,autoComplete:"off",label:(0,pt.__)("Email for form submissions"),value:i||"",required:!0,onChange:e=>{t({email:e}),t({action:`mailto:${e}`}),t({method:"post"})},help:(0,pt.__)("The email address where form submissions will be sent. Separate multiple email addresses with a comma."),type:"email"})})]})}),"email"!==s&&(0,it.jsxs)(ct.InspectorControls,{group:"advanced",children:[(0,it.jsx)(mt.SelectControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("Method"),options:[{label:"Get",value:"get"},{label:"Post",value:"post"}],value:a,onChange:e=>t({method:e}),help:(0,pt.__)("Select the method to use for form submissions.")}),(0,it.jsx)(mt.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,autoComplete:"off",label:(0,pt.__)("Form action"),value:r,onChange:e=>{t({action:e})},help:(0,pt.__)("The URL where the form should be submitted."),type:"url"})]}),(0,it.jsx)("form",{...u,encType:"email"===s?"text/plain":null})]})};const Yc=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"__experimental":true,"name":"core/form","title":"Form","category":"common","allowedBlocks":["core/paragraph","core/heading","core/form-input","core/form-submit-button","core/form-submission-notification","core/group","core/columns"],"description":"A form.","keywords":["container","wrapper","row","section"],"textdomain":"default","icon":"feedback","attributes":{"submissionMethod":{"type":"string","default":"email"},"method":{"type":"string","default":"post"},"action":{"type":"string"},"email":{"type":"string"}},"supports":{"anchor":true,"color":{"gradients":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true,"link":true}},"spacing":{"margin":true,"padding":true},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalTextDecoration":true,"__experimentalFontStyle":true,"__experimentalFontWeight":true,"__experimentalLetterSpacing":true,"__experimentalTextTransform":true,"__experimentalDefaultControls":{"fontSize":true}}}}');const Xc=[{name:"comment-form",title:(0,pt.__)("Experimental Comment form"),description:(0,pt.__)("A comment form for posts and pages."),attributes:{submissionMethod:"custom",action:"{SITE_URL}/wp-comments-post.php",method:"post",anchor:"comment-form"},isDefault:!1,innerBlocks:[["core/form-input",{type:"text",name:"author",label:(0,pt.__)("Name"),required:!0,visibilityPermissions:"logged-out"}],["core/form-input",{type:"email",name:"email",label:(0,pt.__)("Email"),required:!0,visibilityPermissions:"logged-out"}],["core/form-input",{type:"textarea",name:"comment",label:(0,pt.__)("Comment"),required:!0,visibilityPermissions:"all"}],["core/form-submit-button",{}]],scope:["inserter","transform"],isActive:e=>!e?.type||"text"===e?.type},{name:"wp-privacy-form",title:(0,pt.__)("Experimental Privacy Request Form"),keywords:["GDPR"],description:(0,pt.__)("A form to request data exports and/or deletion."),attributes:{submissionMethod:"custom",action:"",method:"post",anchor:"gdpr-form"},isDefault:!1,innerBlocks:[Zc,Jc,["core/paragraph",{content:(0,pt.__)("To request an export or deletion of your personal data on this site, please fill-in the form below. You can define the type of request you wish to perform, and your email address. Once the form is submitted, you will receive a confirmation email with instructions on the next steps.")}],["core/form-input",{type:"email",name:"email",label:(0,pt.__)("Enter your email address."),required:!0,visibilityPermissions:"all"}],["core/form-input",{type:"checkbox",name:"export_personal_data",label:(0,pt.__)("Request data export"),required:!1,visibilityPermissions:"all"}],["core/form-input",{type:"checkbox",name:"remove_personal_data",label:(0,pt.__)("Request data deletion"),required:!1,visibilityPermissions:"all"}],["core/form-submit-button",{}],["core/form-input",{type:"hidden",name:"wp-action",value:"wp_privacy_send_request"}],["core/form-input",{type:"hidden",name:"wp-privacy-request",value:"1"}]],scope:["inserter","transform"],isActive:e=>!e?.type||"text"===e?.type}];var eu=Xc;const tu={supports:{},attributes:{submissionMethod:{type:"string",default:"email"},method:{type:"string",default:"post"},action:{type:"string"},email:{type:"string"},anchor:{type:"string",source:"attribute",attribute:"id",selector:"*"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},style:{type:"object"},fontFamily:{type:"string"},fontSize:{type:"string"}},save({attributes:e}){const{submissionMethod:t}=e,o=(0,ct.__experimentalGetColorClassesAndStyles)(e),n=(0,ct.getTypographyClassesAndStyles)(e),r=(0,ct.__experimentalGetSpacingClassesAndStyles)(e),a=ct.useBlockProps.save({style:{...o.style,...n.style,...r.style},id:e.anchor});return(0,it.jsx)("form",{...a,className:"wp-block-form",encType:"email"===t?"text/plain":null,children:(0,it.jsx)(ct.InnerBlocks.Content,{})})}};var ou=[tu];const{name:nu}=Yc,ru={edit:Kc,save:function({attributes:e}){const t=ct.useBlockProps.save(),{submissionMethod:o}=e;return(0,it.jsx)("form",{...t,encType:"email"===o?"text/plain":null,children:(0,it.jsx)(ct.InnerBlocks.Content,{})})},deprecated:ou,variations:eu,example:{}},au=()=>{const e=["core/form"];return(0,vl.addFilter)("blockEditor.__unstableCanInsertBlockType","core/block-library/preventInsertingFormIntoAnotherForm",((t,o,n,{getBlock:r,getBlockParentsByBlockName:a})=>{if("core/form"!==o.name)return t;for(const t of e){if(r(n)?.name===t||a(n,t).length)return!1}return!0})),jt({name:nu,metadata:Yc,settings:ru})};var iu=r(9681),su=r.n(iu);const lu=window.wp.dom,cu=e=>su()((0,lu.__unstableStripHTML)(e)).replace(/[^\p{L}\p{N}]+/gu,"-").toLowerCase().replace(/(^-+)|(-+$)/g,""),uu={attributes:{type:{type:"string",default:"text"},name:{type:"string"},label:{type:"string",default:"Label",selector:".wp-block-form-input__label-content",source:"html",role:"content"},inlineLabel:{type:"boolean",default:!1},required:{type:"boolean",default:!1,selector:".wp-block-form-input__input",source:"attribute",attribute:"required"},placeholder:{type:"string",selector:".wp-block-form-input__input",source:"attribute",attribute:"placeholder",role:"content"},value:{type:"string",default:"",selector:"input",source:"attribute",attribute:"value"},visibilityPermissions:{type:"string",default:"all"}},supports:{anchor:!0,reusable:!1,spacing:{margin:["top","bottom"]},__experimentalBorder:{radius:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{radius:!0}}},save({attributes:e}){const{type:t,name:o,label:n,inlineLabel:r,required:a,placeholder:i,value:s}=e,l=(0,ct.__experimentalGetBorderClassesAndStyles)(e),c=(0,ct.__experimentalGetColorClassesAndStyles)(e),u={...l.style,...c.style},d=Dt("wp-block-form-input__input",c.className,l.className),p="textarea"===t?"textarea":"input",m=ct.useBlockProps.save();return"hidden"===t?(0,it.jsx)("input",{type:t,name:o,value:s}):(0,it.jsx)("div",{...m,children:(0,it.jsxs)("label",{className:Dt("wp-block-form-input__label",{"is-label-inline":r}),children:[(0,it.jsx)("span",{className:"wp-block-form-input__label-content",children:(0,it.jsx)(ct.RichText.Content,{value:n})}),(0,it.jsx)(p,{className:d,type:"textarea"===t?void 0:t,name:o||cu(n),required:a,"aria-required":a,placeholder:i||void 0,style:u})]})})}},du={attributes:{type:{type:"string",default:"text"},name:{type:"string"},label:{type:"string",default:"Label",selector:".wp-block-form-input__label-content",source:"html",role:"content"},inlineLabel:{type:"boolean",default:!1},required:{type:"boolean",default:!1,selector:".wp-block-form-input__input",source:"attribute",attribute:"required"},placeholder:{type:"string",selector:".wp-block-form-input__input",source:"attribute",attribute:"placeholder",role:"content"},value:{type:"string",default:"",selector:"input",source:"attribute",attribute:"value"},visibilityPermissions:{type:"string",default:"all"}},supports:{className:!1,anchor:!0,reusable:!1,spacing:{margin:["top","bottom"]},__experimentalBorder:{radius:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{radius:!0}}},save({attributes:e}){const{type:t,name:o,label:n,inlineLabel:r,required:a,placeholder:i,value:s}=e,l=(0,ct.__experimentalGetBorderClassesAndStyles)(e),c=(0,ct.__experimentalGetColorClassesAndStyles)(e),u={...l.style,...c.style},d=Dt("wp-block-form-input__input",c.className,l.className),p="textarea"===t?"textarea":"input";return"hidden"===t?(0,it.jsx)("input",{type:t,name:o,value:s}):(0,it.jsxs)("label",{className:Dt("wp-block-form-input__label",{"is-label-inline":r}),children:[(0,it.jsx)("span",{className:"wp-block-form-input__label-content",children:(0,it.jsx)(ct.RichText.Content,{value:n})}),(0,it.jsx)(p,{className:d,type:"textarea"===t?void 0:t,name:o||cu(n),required:a,"aria-required":a,placeholder:i||void 0,style:u})]})}};var pu=[uu,du];var mu=function({attributes:e,setAttributes:t,className:o}){const{type:n,name:r,label:a,inlineLabel:i,required:s,placeholder:l,value:c}=e,u=(0,ct.useBlockProps)(),d=vt(),p=(0,gt.useRef)(),m="textarea"===n?"textarea":"input",g=(0,ct.__experimentalUseBorderProps)(e),h=(0,ct.__experimentalUseColorProps)(e);p.current&&p.current.focus();const _="checkbox"===n||"radio"===n,x=(0,it.jsxs)(it.Fragment,{children:["hidden"!==n&&(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{t({inlineLabel:!1,required:!1})},dropdownMenuProps:d,children:["checkbox"!==n&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Inline label"),hasValue:()=>!!i,onDeselect:()=>t({inlineLabel:!1}),isShownByDefault:!0,children:(0,it.jsx)(mt.CheckboxControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Inline label"),checked:i,onChange:e=>{t({inlineLabel:e})}})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Required"),hasValue:()=>!!s,onDeselect:()=>t({required:!1}),isShownByDefault:!0,children:(0,it.jsx)(mt.CheckboxControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Required"),checked:s,onChange:e=>{t({required:e})}})})]})}),(0,it.jsx)(ct.InspectorControls,{group:"advanced",children:(0,it.jsx)(mt.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,autoComplete:"off",label:(0,pt.__)("Name"),value:r,onChange:e=>{t({name:e})},help:(0,pt.__)('Affects the "name" attribute of the input element, and is used as a name for the form submission results.')})})]}),b=(0,it.jsx)(ct.RichText,{tagName:"span",className:"wp-block-form-input__label-content",value:a,onChange:e=>t({label:e}),"aria-label":a?(0,pt.__)("Label"):(0,pt.__)("Empty label"),"data-empty":!a,placeholder:(0,pt.__)("Type the label for this input")});return"hidden"===n?(0,it.jsxs)(it.Fragment,{children:[x,(0,it.jsx)("input",{type:"hidden",className:Dt(o,"wp-block-form-input__input",h.className,g.className),"aria-label":(0,pt.__)("Value"),value:c,onChange:e=>t({value:e.target.value})})]}):(0,it.jsxs)("div",{...u,children:[x,(0,it.jsxs)("span",{className:Dt("wp-block-form-input__label",{"is-label-inline":i||"checkbox"===n}),children:[!_&&b,(0,it.jsx)(m,{type:"textarea"===n?void 0:n,className:Dt(o,"wp-block-form-input__input",h.className,g.className),"aria-label":(0,pt.__)("Optional placeholder text"),placeholder:l?void 0:(0,pt.__)("Optional placeholder…"),value:l,onChange:e=>t({placeholder:e.target.value}),"aria-required":s,style:{...g.style,...h.style}}),_&&b]})]})};const gu=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"__experimental":true,"name":"core/form-input","title":"Input Field","category":"common","ancestor":["core/form"],"description":"The basic building block for forms.","keywords":["input","form"],"textdomain":"default","icon":"forms","attributes":{"type":{"type":"string","default":"text"},"name":{"type":"string"},"label":{"type":"rich-text","default":"Label","selector":".wp-block-form-input__label-content","source":"rich-text","role":"content"},"inlineLabel":{"type":"boolean","default":false},"required":{"type":"boolean","default":false,"selector":".wp-block-form-input__input","source":"attribute","attribute":"required"},"placeholder":{"type":"string","selector":".wp-block-form-input__input","source":"attribute","attribute":"placeholder","role":"content"},"value":{"type":"string","default":"","selector":"input","source":"attribute","attribute":"value"},"visibilityPermissions":{"type":"string","default":"all"}},"supports":{"anchor":true,"reusable":false,"spacing":{"margin":["top","bottom"]},"__experimentalBorder":{"radius":true,"__experimentalSkipSerialization":true,"__experimentalDefaultControls":{"radius":true}}},"style":["wp-block-form-input"]}');const hu=[{name:"text",title:(0,pt.__)("Text Input"),icon:"edit-page",description:(0,pt.__)("A generic text input."),attributes:{type:"text"},isDefault:!0,scope:["inserter","transform"],isActive:e=>!e?.type||"text"===e?.type},{name:"textarea",title:(0,pt.__)("Textarea Input"),icon:"testimonial",description:(0,pt.__)("A textarea input to allow entering multiple lines of text."),attributes:{type:"textarea"},isDefault:!0,scope:["inserter","transform"],isActive:e=>"textarea"===e?.type},{name:"checkbox",title:(0,pt.__)("Checkbox Input"),description:(0,pt.__)("A simple checkbox input."),icon:"forms",attributes:{type:"checkbox",inlineLabel:!0},isDefault:!0,scope:["inserter","transform"],isActive:e=>"checkbox"===e?.type},{name:"email",title:(0,pt.__)("Email Input"),icon:"email",description:(0,pt.__)("Used for email addresses."),attributes:{type:"email"},isDefault:!0,scope:["inserter","transform"],isActive:e=>"email"===e?.type},{name:"url",title:(0,pt.__)("URL Input"),icon:"admin-site",description:(0,pt.__)("Used for URLs."),attributes:{type:"url"},isDefault:!0,scope:["inserter","transform"],isActive:e=>"url"===e?.type},{name:"tel",title:(0,pt.__)("Telephone Input"),icon:"phone",description:(0,pt.__)("Used for phone numbers."),attributes:{type:"tel"},isDefault:!0,scope:["inserter","transform"],isActive:e=>"tel"===e?.type},{name:"number",title:(0,pt.__)("Number Input"),icon:"edit-page",description:(0,pt.__)("A numeric input."),attributes:{type:"number"},isDefault:!0,scope:["inserter","transform"],isActive:e=>"number"===e?.type}];var _u=hu;const{name:xu}=gu,bu={deprecated:pu,edit:mu,save:function({attributes:e}){const{type:t,name:o,label:n,inlineLabel:r,required:a,placeholder:i,value:s}=e,l=(0,ct.__experimentalGetBorderClassesAndStyles)(e),c=(0,ct.__experimentalGetColorClassesAndStyles)(e),u={...l.style,...c.style},d=Dt("wp-block-form-input__input",c.className,l.className),p="textarea"===t?"textarea":"input",m=ct.useBlockProps.save(),g="checkbox"===t||"radio"===t;return"hidden"===t?(0,it.jsx)("input",{type:t,name:o,value:s}):(0,it.jsx)("div",{...m,children:(0,it.jsxs)("label",{className:Dt("wp-block-form-input__label",{"is-label-inline":r}),children:[!g&&(0,it.jsx)("span",{className:"wp-block-form-input__label-content",children:(0,it.jsx)(ct.RichText.Content,{value:n})}),(0,it.jsx)(p,{className:d,type:"textarea"===t?void 0:t,name:o||(h=n,su()((0,lu.__unstableStripHTML)(h)).replace(/[^\p{L}\p{N}]+/gu,"-").toLowerCase().replace(/(^-+)|(-+$)/g,"")),required:a,"aria-required":a,placeholder:i||void 0,style:u}),g&&(0,it.jsx)("span",{className:"wp-block-form-input__label-content",children:(0,it.jsx)(ct.RichText.Content,{value:n})})]})});var h},variations:_u,example:{}},fu=()=>jt({name:xu,metadata:gu,settings:bu}),yu=[["core/buttons",{},[["core/button",{text:(0,pt.__)("Submit"),tagName:"button",type:"submit"}]]]];var vu=()=>{const e=(0,ct.useBlockProps)(),t=(0,ct.useInnerBlocksProps)(e,{template:yu,templateLock:"all"});return(0,it.jsx)("div",{className:"wp-block-form-submit-wrapper",...t})};const ku=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"__experimental":true,"name":"core/form-submit-button","title":"Form Submit Button","category":"common","icon":"button","ancestor":["core/form"],"allowedBlocks":["core/buttons","core/button"],"description":"A submission button for forms.","keywords":["submit","button","form"],"textdomain":"default","style":["wp-block-form-submit-button"]}');const{name:wu}=ku,Cu={edit:vu,save:function(){const e=ct.useBlockProps.save();return(0,it.jsx)("div",{className:"wp-block-form-submit-wrapper",...e,children:(0,it.jsx)(ct.InnerBlocks.Content,{})})},example:{}},ju=()=>jt({name:wu,metadata:ku,settings:Cu});var Su=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.Path,{d:"M18 4h-7c-1.1 0-2 .9-2 2v3H6c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2v-3h3c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-4.5 14c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-7c0-.3.2-.5.5-.5h3V13c0 1.1.9 2 2 2h2.5v3zm0-4.5H11c-.3 0-.5-.2-.5-.5v-2.5H13c.3 0 .5.2.5.5v2.5zm5-.5c0 .3-.2.5-.5.5h-3V11c0-1.1-.9-2-2-2h-2.5V6c0-.3.2-.5.5-.5h7c.3 0 .5.2.5.5v7z"})});const Bu=[["core/paragraph",{content:(0,pt.__)("Enter the message you wish displayed for form submission error/success, and select the type of the message (success/error) from the block's options.")}]];var Tu=({attributes:e,clientId:t})=>{const{type:o}=e,n=(0,ct.useBlockProps)({className:Dt("wp-block-form-submission-notification",{[`form-notification-type-${o}`]:o})}),{hasInnerBlocks:r}=(0,lt.useSelect)((e=>{const{getBlock:o}=e(ct.store),n=o(t);return{hasInnerBlocks:!(!n||!n.innerBlocks.length)}}),[t]),a=(0,ct.useInnerBlocksProps)(n,{template:Bu,renderAppender:r?void 0:ct.InnerBlocks.ButtonBlockAppender});return(0,it.jsx)("div",{...a,"data-message-success":(0,pt.__)("Submission success notification"),"data-message-error":(0,pt.__)("Submission error notification")})};const Nu=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"__experimental":true,"name":"core/form-submission-notification","title":"Form Submission Notification","category":"common","ancestor":["core/form"],"description":"Provide a notification message after the form has been submitted.","keywords":["form","feedback","notification","message"],"textdomain":"default","icon":"feedback","attributes":{"type":{"type":"string","default":"success"}}}');const Pu=[{name:"form-submission-success",title:(0,pt.__)("Form Submission Success"),description:(0,pt.__)("Success message for form submissions."),attributes:{type:"success"},isDefault:!0,innerBlocks:[["core/paragraph",{content:(0,pt.__)("Your form has been submitted successfully."),backgroundColor:"#00D084",textColor:"#000000",style:{elements:{link:{color:{text:"#000000"}}}}}]],scope:["inserter","transform"],isActive:e=>!e?.type||"success"===e?.type},{name:"form-submission-error",title:(0,pt.__)("Form Submission Error"),description:(0,pt.__)("Error/failure message for form submissions."),attributes:{type:"error"},isDefault:!1,innerBlocks:[["core/paragraph",{content:(0,pt.__)("There was an error submitting your form."),backgroundColor:"#CF2E2E",textColor:"#FFFFFF",style:{elements:{link:{color:{text:"#FFFFFF"}}}}}]],scope:["inserter","transform"],isActive:e=>!e?.type||"error"===e?.type}];var Iu=Pu;const{name:Du}=Nu,Mu={icon:Su,edit:Tu,save:function({attributes:e}){const{type:t}=e;return(0,it.jsx)("div",{...ct.useInnerBlocksProps.save(ct.useBlockProps.save({className:Dt("wp-block-form-submission-notification",{[`form-notification-type-${t}`]:t})}))})},variations:Iu,example:{}},zu=()=>jt({name:Du,metadata:Nu,settings:Mu});var Au=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.Path,{d:"M16.375 4.5H4.625a.125.125 0 0 0-.125.125v8.254l2.859-1.54a.75.75 0 0 1 .68-.016l2.384 1.142 2.89-2.074a.75.75 0 0 1 .874 0l2.313 1.66V4.625a.125.125 0 0 0-.125-.125Zm.125 9.398-2.75-1.975-2.813 2.02a.75.75 0 0 1-.76.067l-2.444-1.17L4.5 14.583v1.792c0 .069.056.125.125.125h11.75a.125.125 0 0 0 .125-.125v-2.477ZM4.625 3C3.728 3 3 3.728 3 4.625v11.75C3 17.273 3.728 18 4.625 18h11.75c.898 0 1.625-.727 1.625-1.625V4.625C18 3.728 17.273 3 16.375 3H4.625ZM20 8v11c0 .69-.31 1-.999 1H6v1.5h13.001c1.52 0 2.499-.982 2.499-2.5V8H20Z",fillRule:"evenodd",clipRule:"evenodd"})});const Lu="none",Hu="media",Ru="lightbox",Vu="attachment",Fu="large",Eu="file",Ou="post";function Gu(e){return Math.min(3,e?.images?.length)}function $u(e,t){switch(t){case Eu:return{href:e?.source_url||e?.url,linkDestination:Hu};case Ou:return{href:e?.link,linkDestination:Vu};case Hu:return{href:e?.source_url||e?.url,linkDestination:Hu};case Vu:return{href:e?.link,linkDestination:Vu};case Lu:return{href:void 0,linkDestination:Lu}}return{}}function Uu(e){let t=e.linkTo?e.linkTo:"none";"post"===t?t="attachment":"file"===t&&(t="media");const o=e.images.map((o=>function(e,t,o){return(0,st.createBlock)("core/image",{...e.id&&{id:parseInt(e.id)},url:e.url,alt:e.alt,caption:e.caption,sizeSlug:t,...$u(e,o)})}(o,e.sizeSlug,t))),{images:n,ids:r,...a}=e;return[{...a,linkTo:t,allowResize:!1},o]}const qu={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}},save({attributes:e}){const{caption:t,columns:o,imageCrop:n}=e,r=Dt("has-nested-images",{[`columns-${o}`]:void 0!==o,"columns-default":void 0===o,"is-cropped":n}),a=ct.useBlockProps.save({className:r}),i=ct.useInnerBlocksProps.save(a);return(0,it.jsxs)("figure",{...i,children:[i.children,!ct.RichText.isEmpty(t)&&(0,it.jsx)(ct.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:t})]})}},Wu={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},fixedHeight:{type:"boolean",default:!0},linkTo:{type:"string"},sizeSlug:{type:"string",default:"large"}},supports:{anchor:!0,align:!0},save({attributes:e}){const{images:t,columns:o=Gu(e),imageCrop:n,caption:r,linkTo:a}=e,i=`columns-${o} ${n?"is-cropped":""}`;return(0,it.jsxs)("figure",{...ct.useBlockProps.save({className:i}),children:[(0,it.jsx)("ul",{className:"blocks-gallery-grid",children:t.map((e=>{let t;switch(a){case Eu:t=e.fullUrl||e.url;break;case Ou:t=e.link}const o=(0,it.jsx)("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(0,it.jsx)("li",{className:"blocks-gallery-item",children:(0,it.jsxs)("figure",{children:[t?(0,it.jsx)("a",{href:t,children:o}):o,!ct.RichText.isEmpty(e.caption)&&(0,it.jsx)(ct.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:e.caption})]})},e.id||e.url)}))}),!ct.RichText.isEmpty(r)&&(0,it.jsx)(ct.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:r})]})},migrate:e=>Uu(e)},Zu={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:({linkTo:e})=>!e||"attachment"===e||"media"===e,migrate:e=>Uu(e),save({attributes:e}){const{images:t,columns:o=Gu(e),imageCrop:n,caption:r,linkTo:a}=e;return(0,it.jsxs)("figure",{className:`columns-${o} ${n?"is-cropped":""}`,children:[(0,it.jsx)("ul",{className:"blocks-gallery-grid",children:t.map((e=>{let t;switch(a){case"media":t=e.fullUrl||e.url;break;case"attachment":t=e.link}const o=(0,it.jsx)("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(0,it.jsx)("li",{className:"blocks-gallery-item",children:(0,it.jsxs)("figure",{children:[t?(0,it.jsx)("a",{href:t,children:o}):o,!ct.RichText.isEmpty(e.caption)&&(0,it.jsx)(ct.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:e.caption})]})},e.id||e.url)}))}),!ct.RichText.isEmpty(r)&&(0,it.jsx)(ct.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:r})]})}},Ju={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:({ids:e})=>e&&e.some((e=>"string"==typeof e)),migrate:e=>Uu(e),save({attributes:e}){const{images:t,columns:o=Gu(e),imageCrop:n,caption:r,linkTo:a}=e;return(0,it.jsxs)("figure",{className:`columns-${o} ${n?"is-cropped":""}`,children:[(0,it.jsx)("ul",{className:"blocks-gallery-grid",children:t.map((e=>{let t;switch(a){case"media":t=e.fullUrl||e.url;break;case"attachment":t=e.link}const o=(0,it.jsx)("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(0,it.jsx)("li",{className:"blocks-gallery-item",children:(0,it.jsxs)("figure",{children:[t?(0,it.jsx)("a",{href:t,children:o}):o,!ct.RichText.isEmpty(e.caption)&&(0,it.jsx)(ct.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:e.caption})]})},e.id||e.url)}))}),!ct.RichText.isEmpty(r)&&(0,it.jsx)(ct.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:r})]})}},Qu={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:"string",source:"html",selector:"figcaption"}}},ids:{type:"array",default:[]},columns:{type:"number"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"}},supports:{align:!0},save({attributes:e}){const{images:t,columns:o=Gu(e),imageCrop:n,linkTo:r}=e;return(0,it.jsx)("ul",{className:`columns-${o} ${n?"is-cropped":""}`,children:t.map((e=>{let t;switch(r){case"media":t=e.fullUrl||e.url;break;case"attachment":t=e.link}const o=(0,it.jsx)("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(0,it.jsx)("li",{className:"blocks-gallery-item",children:(0,it.jsxs)("figure",{children:[t?(0,it.jsx)("a",{href:t,children:o}):o,e.caption&&e.caption.length>0&&(0,it.jsx)(ct.RichText.Content,{tagName:"figcaption",value:e.caption})]})},e.id||e.url)}))})},migrate:e=>Uu(e)},Ku={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:"string",source:"html",selector:"figcaption"}}},columns:{type:"number"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"}},isEligible:({images:e,ids:t})=>e&&e.length>0&&(!t&&e||t&&e&&t.length!==e.length||e.some(((e,o)=>!e&&null!==t[o]||parseInt(e,10)!==t[o]))),migrate:e=>Uu(e),supports:{align:!0},save({attributes:e}){const{images:t,columns:o=Gu(e),imageCrop:n,linkTo:r}=e;return(0,it.jsx)("ul",{className:`columns-${o} ${n?"is-cropped":""}`,children:t.map((e=>{let t;switch(r){case"media":t=e.url;break;case"attachment":t=e.link}const o=(0,it.jsx)("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-link":e.link,className:e.id?`wp-image-${e.id}`:null});return(0,it.jsx)("li",{className:"blocks-gallery-item",children:(0,it.jsxs)("figure",{children:[t?(0,it.jsx)("a",{href:t,children:o}):o,e.caption&&e.caption.length>0&&(0,it.jsx)(ct.RichText.Content,{tagName:"figcaption",value:e.caption})]})},e.id||e.url)}))})}},Yu={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({attributes:e}){const{images:t,columns:o=Gu(e),align:n,imageCrop:r,linkTo:a}=e,i=Dt(`columns-${o}`,{alignnone:"none"===n,"is-cropped":r});return(0,it.jsx)("div",{className:i,children:t.map((e=>{let t;switch(a){case"media":t=e.url;break;case"attachment":t=e.link}const o=(0,it.jsx)("img",{src:e.url,alt:e.alt,"data-id":e.id});return(0,it.jsx)("figure",{className:"blocks-gallery-image",children:t?(0,it.jsx)("a",{href:t,children:o}):o},e.id||e.url)}))})},migrate:e=>Uu(e)};var Xu=[qu,Wu,Zu,Ju,Qu,Ku,Yu],ed=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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"})}),td=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.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"})});const od=(0,it.jsx)(ct.BlockIcon,{icon:Au});function nd(e){return e?Math.min(3,e):3}const rd=(e,t="large")=>{const o=Object.fromEntries(Object.entries(e??{}).filter((([e])=>["alt","id","link"].includes(e))));o.url=e?.sizes?.[t]?.url||e?.media_details?.sizes?.[t]?.source_url||e?.url||e?.source_url;const n=e?.sizes?.full?.url||e?.media_details?.sizes?.full?.source_url;return n&&(o.fullUrl=n),o},ad=20,id="none",sd="media",ld="attachment",cd="custom",ud=["noreferrer","noopener"],dd=["image"],pd=["flex","grid"],md="full";function gd(e,t,o,n,r){switch(o||t){case"file":case Hu:return{href:e?.source_url||e?.url,linkDestination:sd,lightbox:r?.enabled?{...n?.lightbox,enabled:!1}:void 0};case"post":case Vu:return{href:e?.link,linkDestination:ld,lightbox:r?.enabled?{...n?.lightbox,enabled:!1}:void 0};case Ru:return{href:void 0,lightbox:r?.enabled?void 0:{...n?.lightbox,enabled:!0},linkDestination:id};case Lu:return{href:void 0,linkDestination:id,lightbox:void 0}}return{}}function hd(e,{rel:t}){const o=e?"_blank":void 0;let n;return n=o||t?function(e){let t=e;return void 0!==e&&t&&(ud.forEach((e=>{const o=new RegExp("\\b"+e+"\\b","gi");t=t.replace(o,"")})),t!==e&&(t=t.trim()),t||(t=void 0)),t}(t):void 0,{linkTarget:o,rel:n}}function _d(e){return dd.some((t=>0===e.type.indexOf(t)))}function xd(e){const{attributes:t,isSelected:o,setAttributes:n,mediaPlaceholder:r,insertBlocksAfter:a,blockProps:i,__unstableLayoutClassNames:s,isContentLocked:l,multiGallerySelection:c}=e,{align:u,columns:d,imageCrop:p}=t;return(0,it.jsxs)("figure",{...i,className:Dt(i.className,s,"blocks-gallery-grid",{[`align${u}`]:u,[`columns-${d}`]:void 0!==d,"columns-default":void 0===d,"is-cropped":p}),children:[i.children,o&&!i.children&&(0,it.jsx)(St.View,{className:"blocks-gallery-media-placeholder-wrapper",children:r}),(0,it.jsx)(zo,{attributes:t,setAttributes:n,isSelected:o,insertBlocksAfter:a,showToolbarButton:!c&&!l,className:"blocks-gallery-caption",label:(0,pt.__)("Gallery caption text"),placeholder:(0,pt.__)("Add gallery caption")})]})}function bd(e,t,o){return(0,gt.useMemo)((()=>function(){if(!e||0===e.length)return;const{imageSizes:n}=o();let r={};t&&(r=e.reduce(((e,t)=>{if(!t.id)return e;const o=n.reduce(((e,o)=>{const n=t.sizes?.[o.slug]?.url,r=t.media_details?.sizes?.[o.slug]?.source_url;return{...e,[o.slug]:n||r}}),{});return{...e,[parseInt(t.id,10)]:o}}),{}));const a=Object.values(r);return n.filter((({slug:e})=>a.some((t=>t[e])))).map((({name:e,slug:t})=>({value:t,label:e})))}()),[e,t])}function fd(e,t){const[o,n]=(0,gt.useState)([]);return(0,gt.useMemo)((()=>function(){let r=!1;const a=o.filter((t=>e.find((e=>t.clientId===e.clientId))));a.length<o.length&&(r=!0);e.forEach((e=>{e.fromSavedContent&&!a.find((t=>t.id===e.id))&&(r=!0,a.push(e))}));const i=e.filter((e=>!a.find((t=>e.clientId&&t.clientId===e.clientId))&&t?.find((t=>t.id===e.id))&&!e.fromSavedContent));(r||i?.length>0)&&n([...a,...i]);return i.length>0?i:null}()),[e,t])}const yd=[];function vd({blockGap:e,clientId:t}){const o="var( --wp--style--gallery-gap-default, var( --gallery-block--gutter-size, var( --wp--style--block-gap, 0.5em ) ) )";let n,r=o,a=o;e&&(n="string"==typeof e?(0,ct.__experimentalGetGapCSSValue)(e):(0,ct.__experimentalGetGapCSSValue)(e?.top)||o,a="string"==typeof e?(0,ct.__experimentalGetGapCSSValue)(e):(0,ct.__experimentalGetGapCSSValue)(e?.left)||o,r=n===a?n:`${n} ${a}`);const i=`#block-${t} {\n\t\t--wp--style--unstable-gallery-gap: ${"0"===a?"0px":a};\n\t\tgap: ${r}\n\t}`;return(0,ct.useStyleOverride)({css:i}),null}const kd=[{icon:ed,label:(0,pt.__)("Link images to attachment pages"),value:Vu,noticeText:(0,pt.__)("Attachment Pages")},{icon:td,label:(0,pt.__)("Link images to media files"),value:Hu,noticeText:(0,pt.__)("Media Files")},{icon:tr,label:(0,pt.__)("Enlarge on click"),value:Ru,noticeText:(0,pt.__)("Lightbox effect"),infoText:(0,pt.__)("Scale images with a lightbox effect")},{icon:hn,label:(0,pt._x)("None","Media item link option"),value:Lu,noticeText:(0,pt.__)("None")}],wd=["image"],Cd=gt.Platform.isNative?(0,pt.__)("Add media"):(0,pt.__)("Drag and drop images, upload, or choose from your library."),jd=gt.Platform.isNative?{type:"stepper"}:{},Sd={name:"core/image"},Bd=[];const Td=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/gallery","title":"Gallery","category":"media","allowedBlocks":["core/image"],"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":"rich-text","source":"rich-text","selector":".blocks-gallery-item__caption"}}},"ids":{"type":"array","items":{"type":"number"},"default":[]},"shortCodeTransforms":{"type":"array","items":{"type":"object"},"default":[]},"columns":{"type":"number","minimum":1,"maximum":8},"caption":{"type":"rich-text","source":"rich-text","selector":".blocks-gallery-caption","role":"content"},"imageCrop":{"type":"boolean","default":true},"randomOrder":{"type":"boolean","default":false},"fixedHeight":{"type":"boolean","default":true},"linkTarget":{"type":"string"},"linkTo":{"type":"string"},"sizeSlug":{"type":"string","default":"large"},"allowResize":{"type":"boolean","default":false},"aspectRatio":{"type":"string","default":"auto"}},"providesContext":{"allowResize":"allowResize","imageCrop":"imageCrop","fixedHeight":"fixedHeight"},"supports":{"anchor":true,"align":true,"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true,"__experimentalDefaultControls":{"color":true,"radius":true}},"html":false,"units":["px","em","rem","vh","vw"],"spacing":{"margin":true,"padding":true,"blockGap":["horizontal","vertical"],"__experimentalSkipSerialization":["blockGap"],"__experimentalDefaultControls":{"blockGap":true,"margin":false,"padding":false}},"color":{"text":false,"background":true,"gradients":true},"layout":{"allowSwitching":false,"allowInheriting":false,"allowEditing":false,"default":{"type":"flex"}},"interactivity":{"clientNavigation":true}},"editorStyle":"wp-block-gallery-editor","style":"wp-block-gallery"}');(0,vl.addFilter)("blocks.switchToBlockType.transformedBlock","core/gallery/update-third-party-transform-to",(function(e){if("core/gallery"===e.name&&e.attributes?.images.length>0){const t=e.attributes.images.map((({url:t,id:o,alt:n})=>(0,st.createBlock)("core/image",{url:t,id:o?parseInt(o,10):null,alt:n,sizeSlug:e.attributes.sizeSlug,linkDestination:e.attributes.linkDestination})));delete e.attributes.ids,delete e.attributes.images,e.innerBlocks=t}return e})),(0,vl.addFilter)("blocks.switchToBlockType.transformedBlock","core/gallery/update-third-party-transform-from",(function(e,t){const o=(Array.isArray(t)?t:[t]).find((t=>"core/gallery"===t.name&&t.innerBlocks.length>0&&!t.attributes.images?.length>0&&!e.name.includes("core/")));if(o){const e=o.innerBlocks.map((({attributes:{url:e,id:t,alt:o}})=>({url:e,id:t?parseInt(t,10):null,alt:o}))),t=e.map((({id:e})=>e));o.attributes.images=e,o.attributes.ids=t}return e}));const Nd={from:[{type:"block",isMultiBlock:!0,blocks:["core/image"],transform:e=>{let{align:t,sizeSlug:o}=e[0];t=e.every((e=>e.align===t))?t:void 0,o=e.every((e=>e.sizeSlug===o))?o:void 0;const n=e.filter((({url:e})=>e)).map((e=>(e.width=void 0,e.height=void 0,(0,st.createBlock)("core/image",e))));return(0,st.createBlock)("core/gallery",{align:t,sizeSlug:o},n)}},{type:"shortcode",tag:"gallery",transform({named:{ids:e,columns:t=3,link:o,orderby:n}}){const r=(e=>e?e.split(",").map((e=>parseInt(e,10))):[])(e).map((e=>parseInt(e,10)));let a=Lu;"post"===o?a=Vu:"file"===o&&(a=Hu);return(0,st.createBlock)("core/gallery",{columns:parseInt(t,10),linkTo:a,randomOrder:"rand"===n},r.map((e=>(0,st.createBlock)("core/image",{id:e}))))},isMatch:({named:e})=>void 0!==e.ids},{type:"files",priority:1,isMatch:e=>1!==e.length&&e.every((e=>0===e.type.indexOf("image/"))),transform(e){const t=e.map((e=>(0,st.createBlock)("core/image",{blob:(0,ht.createBlobURL)(e)})));return(0,st.createBlock)("core/gallery",{},t)}}],to:[{type:"block",blocks:["core/image"],transform:({align:e},t)=>t.length>0?t.map((({attributes:{url:t,alt:o,caption:n,title:r,href:a,rel:i,linkClass:s,id:l,sizeSlug:c,linkDestination:u,linkTarget:d,anchor:p,className:m}})=>(0,st.createBlock)("core/image",{align:e,url:t,alt:o,caption:n,title:r,href:a,rel:i,linkClass:s,id:l,sizeSlug:c,linkDestination:u,linkTarget:d,anchor:p,className:m}))):(0,st.createBlock)("core/image",{align:e})}]};var Pd=Nd;const{name:Id}=Td,Dd={icon:Au,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:Pd,edit:function(e){const{setAttributes:t,attributes:o,className:n,clientId:r,isSelected:a,insertBlocksAfter:i,isContentLocked:s,onFocus:l}=e,[c,u,d,p]=(0,ct.useSettings)("blocks.core/image.lightbox","dimensions.aspectRatios.default","dimensions.aspectRatios.theme","dimensions.defaultAspectRatios"),m=c?.allowEditing?kd:kd.filter((e=>e.value!==Ru)),{columns:g,imageCrop:h,randomOrder:_,linkTarget:x,linkTo:b,sizeSlug:f,aspectRatio:y}=o,{__unstableMarkNextChangeAsNotPersistent:v,replaceInnerBlocks:k,updateBlockAttributes:w,selectBlock:C}=(0,lt.useDispatch)(ct.store),{createSuccessNotice:j,createErrorNotice:S}=(0,lt.useDispatch)(bo.store),{getBlock:B,getSettings:T,innerBlockImages:N,blockWasJustInserted:P,multiGallerySelection:I}=(0,lt.useSelect)((e=>{const{getBlockName:t,getMultiSelectedBlockClientIds:o,getSettings:n,getBlock:a,wasBlockJustInserted:i}=e(ct.store),s=o();return{getBlock:a,getSettings:n,innerBlockImages:a(r)?.innerBlocks??Bd,blockWasJustInserted:i(r,"inserter_menu"),multiGallerySelection:s.length&&s.every((e=>"core/gallery"===t(e)))}}),[r]),D=(0,gt.useMemo)((()=>N?.map((e=>({clientId:e.clientId,id:e.attributes.id,url:e.attributes.url,attributes:e.attributes,fromSavedContent:Boolean(e.originalContent)})))),[N]),M=function(e){return(0,lt.useSelect)((t=>{const o=e.map((e=>e.attributes.id)).filter((e=>void 0!==e));return 0===o.length?yd:t(_t.store).getEntityRecords("postType","attachment",{include:o.join(","),per_page:-1,orderby:"include"})??yd}),[e])}(N),z=fd(D,M),A=d?.map((({name:e,ratio:t})=>({label:e,value:t}))),L=u?.map((({name:e,ratio:t})=>({label:e,value:t}))),H=[{label:(0,pt._x)("Original","Aspect ratio option for dimensions control"),value:"auto"},...p&&L||[],...A||[]];(0,gt.useEffect)((()=>{z?.forEach((e=>{v(),w(e.clientId,{...V(e.attributes),id:e.id,align:void 0})}))}),[z]);const R=bd(M,a,T);function V(e){const t=e.id?M.find((({id:t})=>t===e.id)):null;let n,r;return e.className&&""!==e.className&&(n=e.className),r=e.linkTarget||e.rel?{linkTarget:e.linkTarget,rel:e.rel}:hd(x,o),{...rd(t,f),...gd(t,b,e?.linkDestination),...r,className:n,sizeSlug:f,caption:e.caption||t.caption?.raw,alt:e.alt||t.alt_text,aspectRatio:"auto"===y?void 0:y}}function F(e){const t=gt.Platform.isNative&&e.id?M.find((({id:t})=>t===e.id)):null,o=t?t?.media_type:e.type;return wd.some((e=>0===o?.indexOf(e)))||e.blob}function E(e){const t="[object FileList]"===Object.prototype.toString.call(e),o=t?Array.from(e).map((e=>e.url?e:{blob:(0,ht.createBlobURL)(e)})):e;o.every(F)||S((0,pt.__)("If uploading to a gallery all files need to be image formats"),{id:"gallery-upload-invalid-file",type:"snackbar"});const n=o.filter((e=>e.url||F(e))).map((e=>e.url?e:{blob:e.blob||(0,ht.createBlobURL)(e)})),a=n.reduce(((e,t,o)=>(e[t.id]=o,e)),{}),i=t?N:N.filter((e=>n.find((t=>t.id===e.attributes.id)))),s=n.filter((e=>!i.find((t=>e.id===t.attributes.id)))).map((e=>(0,st.createBlock)("core/image",{id:e.id,blob:e.blob,url:e.url,caption:e.caption,alt:e.alt})));k(r,i.concat(s).sort(((e,t)=>a[e.attributes.id]-a[t.attributes.id]))),s?.length>0&&C(s[0].clientId)}function O(e){t({linkTo:e});const o={},n=[];B(r).innerBlocks.forEach((t=>{n.push(t.clientId);const r=t.attributes.id?M.find((({id:e})=>e===t.attributes.id)):null;o[t.clientId]=gd(r,e,!1,t.attributes,c)})),w(n,o,{uniqueByBlock:!0});const a=[...m].find((t=>t.value===e));j((0,pt.sprintf)((0,pt.__)("All gallery image links updated to: %s"),a.noticeText),{id:"gallery-attributes-linkTo",type:"snackbar"})}function G(e){t({columns:e})}function $(){t({imageCrop:!h})}function U(){t({randomOrder:!_})}function q(e){const o=e?"_blank":void 0;t({linkTarget:o});const n={},a=[];B(r).innerBlocks.forEach((e=>{a.push(e.clientId),n[e.clientId]=hd(o,e.attributes)})),w(a,n,{uniqueByBlock:!0});const i=e?(0,pt.__)("All gallery images updated to open in new tab"):(0,pt.__)("All gallery images updated to not open in new tab");j(i,{id:"gallery-attributes-openInNewTab",type:"snackbar"})}function W(e){t({sizeSlug:e});const o={},n=[];B(r).innerBlocks.forEach((t=>{n.push(t.clientId);const r=t.attributes.id?M.find((({id:e})=>e===t.attributes.id)):null;o[t.clientId]=function(e,t){const o=e?.media_details?.sizes?.[t]?.source_url;return o?{url:o,width:void 0,height:void 0,sizeSlug:t}:{}}(r,e)})),w(n,o,{uniqueByBlock:!0});const a=R.find((t=>t.value===e));j((0,pt.sprintf)((0,pt.__)("All gallery image sizes updated to: %s"),a?.label??e),{id:"gallery-attributes-sizeSlug",type:"snackbar"})}function Z(e){t({aspectRatio:e});const o={},n=[];B(r).innerBlocks.forEach((t=>{n.push(t.clientId),o[t.clientId]={aspectRatio:"auto"===e?void 0:e}})),w(n,o,!0);const a=H.find((t=>t.value===e));j((0,pt.sprintf)((0,pt.__)("All gallery images updated to aspect ratio: %s"),a?.label||e),{id:"gallery-attributes-aspectRatio",type:"snackbar"})}(0,gt.useEffect)((()=>{b||(v(),t({linkTo:window?.wp?.media?.view?.settings?.defaultProps?.link||Lu}))}),[b]);const J=!!D.length,Q=J&&D.some((e=>!!e.id)),K=D.some((e=>gt.Platform.isNative?0===e.url?.indexOf("file:"):!e.id&&0===e.url?.indexOf("blob:"))),Y=gt.Platform.select({web:{addToGallery:!1,disableMediaButtons:K,value:{}},native:{addToGallery:Q,isAppender:J,disableMediaButtons:J&&!a||K,value:Q?D:{},autoOpenMediaUpload:!J&&a&&P,onFocus:l}}),X=(0,it.jsx)(ct.MediaPlaceholder,{handleUpload:!1,icon:od,labels:{title:(0,pt.__)("Gallery"),instructions:Cd},onSelect:E,accept:"image/*",allowedTypes:wd,multiple:!0,onError:function(e){S(e,{type:"snackbar"})},...Y}),ee=(0,ct.useBlockProps)({className:Dt(n,"has-nested-images")}),te=gt.Platform.isNative&&{marginHorizontal:0,marginVertical:0},oe=(0,ct.useInnerBlocksProps)(ee,{defaultBlock:Sd,directInsert:!0,orientation:"horizontal",renderAppender:!1,...te}),ne=vt();if(!J)return(0,it.jsxs)(St.View,{...oe,children:[oe.children,X]});const re=b&&"none"!==b;return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsxs)(ct.InspectorControls,{children:[gt.Platform.isWeb&&(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{t({columns:void 0,imageCrop:!0,randomOrder:!1}),Z("auto"),f!==Fu&&W(Fu),x&&q(!1)},dropdownMenuProps:ne,children:[D.length>1&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,pt.__)("Columns"),hasValue:()=>!!g&&g!==D.length,onDeselect:()=>G(void 0),children:(0,it.jsx)(mt.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Columns"),value:g||nd(D.length),onChange:G,min:1,max:Math.min(8,D.length),required:!0,__next40pxDefaultSize:!0})}),R?.length>0&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,pt.__)("Resolution"),hasValue:()=>f!==Fu,onDeselect:()=>W(Fu),children:(0,it.jsx)(mt.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Resolution"),help:(0,pt.__)("Select the size of the source images."),value:f,options:R,onChange:W,hideCancelButton:!0,size:"__unstable-large"})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,pt.__)("Crop images to fit"),hasValue:()=>!h,onDeselect:()=>t({imageCrop:!0}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Crop images to fit"),checked:!!h,onChange:$})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,pt.__)("Randomize order"),hasValue:()=>!!_,onDeselect:()=>t({randomOrder:!1}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Randomize order"),checked:!!_,onChange:U})}),re&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,pt.__)("Open images in new tab"),hasValue:()=>!!x,onDeselect:()=>q(!1),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Open images in new tab"),checked:"_blank"===x,onChange:q})}),H.length>1&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!!y&&"auto"!==y,label:(0,pt.__)("Aspect ratio"),onDeselect:()=>Z("auto"),isShownByDefault:!0,children:(0,it.jsx)(mt.SelectControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("Aspect ratio"),help:(0,pt.__)("Set a consistent aspect ratio for all images in the gallery."),value:y,options:H,onChange:Z})})]}),gt.Platform.isNative&&(0,it.jsxs)(mt.PanelBody,{title:(0,pt.__)("Settings"),children:[D.length>1&&(0,it.jsx)(mt.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Columns"),value:g||nd(D.length),onChange:G,min:1,max:Math.min(8,D.length),...jd,required:!0,__next40pxDefaultSize:!0}),R?.length>0&&(0,it.jsx)(mt.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Resolution"),help:(0,pt.__)("Select the size of the source images."),value:f,options:R,onChange:W,hideCancelButton:!0,size:"__unstable-large"}),(0,it.jsx)(mt.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Link"),value:b,onChange:O,options:m,hideCancelButton:!0,size:"__unstable-large"}),(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Crop images to fit"),checked:!!h,onChange:$}),(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Randomize order"),checked:!!_,onChange:U}),re&&(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Open images in new tab"),checked:"_blank"===x,onChange:q}),H.length>1&&(0,it.jsx)(mt.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Aspect Ratio"),help:(0,pt.__)("Set a consistent aspect ratio for all images in the gallery."),value:y,options:H,onChange:Z,hideCancelButton:!0,size:"__unstable-large"})]})]}),gt.Platform.isWeb?(0,it.jsx)(ct.BlockControls,{group:"block",children:(0,it.jsx)(mt.ToolbarDropdownMenu,{icon:gn,label:(0,pt.__)("Link"),children:({onClose:e})=>(0,it.jsx)(mt.MenuGroup,{children:m.map((t=>{const o=b===t.value;return(0,it.jsx)(mt.MenuItem,{isSelected:o,className:Dt("components-dropdown-menu__menu-item",{"is-active":o}),iconPosition:"left",icon:t.icon,onClick:()=>{O(t.value),e()},role:"menuitemradio",info:t.infoText,children:t.label},t.value)}))})})}):null,gt.Platform.isWeb&&(0,it.jsxs)(it.Fragment,{children:[!I&&(0,it.jsx)(ct.BlockControls,{group:"other",children:(0,it.jsx)(ct.MediaReplaceFlow,{allowedTypes:wd,accept:"image/*",handleUpload:!1,onSelect:E,name:(0,pt.__)("Add"),multiple:!0,mediaIds:D.filter((e=>e.id)).map((e=>e.id)),addToGallery:Q})}),(0,it.jsx)(vd,{blockGap:o.style?.spacing?.blockGap,clientId:r})]}),(0,it.jsx)(xd,{...e,isContentLocked:s,images:D,mediaPlaceholder:!J||gt.Platform.isNative?X:void 0,blockProps:oe,insertBlocksAfter:i,multiGallerySelection:I})]})},save:function({attributes:e}){const{caption:t,columns:o,imageCrop:n}=e,r=Dt("has-nested-images",{[`columns-${o}`]:void 0!==o,"columns-default":void 0===o,"is-cropped":n}),a=ct.useBlockProps.save({className:r}),i=ct.useInnerBlocksProps.save(a);return(0,it.jsxs)("figure",{...i,children:[i.children,!ct.RichText.isEmpty(t)&&(0,it.jsx)(ct.RichText.Content,{tagName:"figcaption",className:Dt("blocks-gallery-caption",(0,ct.__experimentalGetElementClassName)("caption")),value:t})]})},deprecated:Xu},Md=()=>jt({name:Id,metadata:Td,settings:Dd}),zd=e=>{if(e.tagName||(e={...e,tagName:"div"}),!e.customTextColor&&!e.customBackgroundColor)return e;const t={color:{}};e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor);const{customTextColor:o,customBackgroundColor:n,...r}=e;return{...r,style:t}},Ad=[{attributes:{tagName:{type:"string",default:"div"},templateLock:{type:["string","boolean"],enum:["all","insert",!1]}},supports:{__experimentalOnEnter:!0,__experimentalSettings:!0,align:["wide","full"],anchor:!0,ariaLabel:!0,html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:["top","bottom"],padding:!0,blockGap:!0,__experimentalDefaultControls:{padding:!0,blockGap:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}},layout:!0},save:({attributes:{tagName:e}})=>(0,it.jsx)(e,{...ct.useInnerBlocksProps.save(ct.useBlockProps.save())}),isEligible:({layout:e})=>e?.inherit||e?.contentSize&&"constrained"!==e?.type,migrate:e=>{const{layout:t=null}=e;if(t?.inherit||t?.contentSize)return{...e,layout:{...t,type:"constrained"}}}},{attributes:{tagName:{type:"string",default:"div"},templateLock:{type:["string","boolean"],enum:["all","insert",!1]}},supports:{align:["wide","full"],anchor:!0,color:{gradients:!0,link:!0},spacing:{padding:!0},__experimentalBorder:{radius:!0}},save({attributes:e}){const{tagName:t}=e;return(0,it.jsx)(t,{...ct.useBlockProps.save(),children:(0,it.jsx)("div",{className:"wp-block-group__inner-container",children:(0,it.jsx)(ct.InnerBlocks.Content,{})})})}},{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1},migrate:zd,save({attributes:e}){const{backgroundColor:t,customBackgroundColor:o,textColor:n,customTextColor:r}=e,a=(0,ct.getColorClassName)("background-color",t),i=(0,ct.getColorClassName)("color",n),s=Dt(a,i,{"has-text-color":n||r,"has-background":t||o}),l={backgroundColor:a?void 0:o,color:i?void 0:r};return(0,it.jsx)("div",{className:s,style:l,children:(0,it.jsx)("div",{className:"wp-block-group__inner-container",children:(0,it.jsx)(ct.InnerBlocks.Content,{})})})}},{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}},migrate:zd,supports:{align:["wide","full"],anchor:!0,html:!1},save({attributes:e}){const{backgroundColor:t,customBackgroundColor:o,textColor:n,customTextColor:r}=e,a=(0,ct.getColorClassName)("background-color",t),i=(0,ct.getColorClassName)("color",n),s=Dt(a,{"has-text-color":n||r,"has-background":t||o}),l={backgroundColor:a?void 0:o,color:i?void 0:r};return(0,it.jsx)("div",{className:s,style:l,children:(0,it.jsx)("div",{className:"wp-block-group__inner-container",children:(0,it.jsx)(ct.InnerBlocks.Content,{})})})}},{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1},migrate:zd,save({attributes:e}){const{backgroundColor:t,customBackgroundColor:o}=e,n=(0,ct.getColorClassName)("background-color",t),r=Dt(n,{"has-background":t||o}),a={backgroundColor:n?void 0:o};return(0,it.jsx)("div",{className:r,style:a,children:(0,it.jsx)(ct.InnerBlocks.Content,{})})}}];var Ld=Ad;const Hd=(e="group")=>{const t={group:(0,it.jsx)(mt.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,it.jsx)(mt.Path,{d:"M0 10a2 2 0 0 1 2-2h44a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V10Z"})}),"group-row":(0,it.jsx)(mt.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,it.jsx)(mt.Path,{d:"M0 10a2 2 0 0 1 2-2h19a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V10Zm25 0a2 2 0 0 1 2-2h19a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H27a2 2 0 0 1-2-2V10Z"})}),"group-stack":(0,it.jsx)(mt.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,it.jsx)(mt.Path,{d:"M0 10a2 2 0 0 1 2-2h44a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V10Zm0 17a2 2 0 0 1 2-2h44a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V27Z"})}),"group-grid":(0,it.jsx)(mt.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,it.jsx)(mt.Path,{d:"M0 10a2 2 0 0 1 2-2h19a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V10Zm25 0a2 2 0 0 1 2-2h19a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H27a2 2 0 0 1-2-2V10ZM0 27a2 2 0 0 1 2-2h19a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V27Zm25 0a2 2 0 0 1 2-2h19a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H27a2 2 0 0 1-2-2V27Z"})})};return t?.[e]};var Rd=function({name:e,onSelect:t}){const o=(0,lt.useSelect)((t=>t(st.store).getBlockVariations(e,"block")),[e]),n=(0,ct.useBlockProps)({className:"wp-block-group__placeholder"});return(0,gt.useEffect)((()=>{o&&1===o.length&&t(o[0])}),[t,o]),(0,it.jsx)("div",{...n,children:(0,it.jsx)(mt.Placeholder,{instructions:(0,pt.__)("Group blocks together. Select a layout:"),children:(0,it.jsx)("ul",{role:"list",className:"wp-block-group-placeholder__variations","aria-label":(0,pt.__)("Block variations"),children:o.map((e=>(0,it.jsx)("li",{children:(0,it.jsx)(mt.Button,{__next40pxDefaultSize:!0,variant:"tertiary",icon:Hd(e.name),iconSize:48,onClick:()=>t(e),className:"wp-block-group-placeholder__variation-button",label:`${e.title}: ${e.description}`})},e.name)))})})})};const{HTMLElementControl:Vd}=jo(ct.privateApis);function Fd({tagName:e,onSelectTagName:t,clientId:o}){return(0,it.jsx)(ct.InspectorControls,{group:"advanced",children:(0,it.jsx)(Vd,{tagName:e,onChange:t,clientId:o,options:[{label:(0,pt.__)("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"}]})})}var Ed=function({attributes:e,name:t,setAttributes:o,clientId:n}){const{hasInnerBlocks:r,themeSupportsLayout:a}=(0,lt.useSelect)((e=>{const{getBlock:t,getSettings:o}=e(ct.store),r=t(n);return{hasInnerBlocks:!(!r||!r.innerBlocks.length),themeSupportsLayout:o()?.supportsLayout}}),[n]),{tagName:i="div",templateLock:s,allowedBlocks:l,layout:c={}}=e,{type:u="default"}=c,d=a||"flex"===u||"grid"===u,p=(0,gt.useRef)(),m=(0,ct.useBlockProps)({ref:p}),[g,h]=function({attributes:e={style:void 0,backgroundColor:void 0,textColor:void 0,fontSize:void 0},usedLayoutType:t="",hasInnerBlocks:o=!1}){const{style:n,backgroundColor:r,textColor:a,fontSize:i}=e,[s,l]=(0,gt.useState)(!(o||r||i||a||n||"flex"===t||"grid"===t));return(0,gt.useEffect)((()=>{(o||r||i||a||n||"flex"===t)&&l(!1)}),[r,i,a,n,t,o]),[s,l]}({attributes:e,usedLayoutType:u,hasInnerBlocks:r});let _;g?_=!1:r||(_=ct.InnerBlocks.ButtonBlockAppender);const x=(0,ct.useInnerBlocksProps)(d?m:{className:"wp-block-group__inner-container"},{dropZoneElement:p.current,templateLock:s,allowedBlocks:l,renderAppender:_}),{selectBlock:b}=(0,lt.useDispatch)(ct.store);return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(Fd,{tagName:i,onSelectTagName:e=>o({tagName:e}),clientId:n}),g&&(0,it.jsxs)(St.View,{children:[x.children,(0,it.jsx)(Rd,{name:t,onSelect:e=>{o(e.attributes),b(n,-1),h(!1)}})]}),d&&!g&&(0,it.jsx)(i,{...x}),!d&&!g&&(0,it.jsx)(i,{...m,children:(0,it.jsx)("div",{...x})})]})};const Od=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/group","title":"Group","category":"design","description":"Gather blocks in a layout container.","keywords":["container","wrapper","row","section"],"textdomain":"default","attributes":{"tagName":{"type":"string","default":"div"},"templateLock":{"type":["string","boolean"],"enum":["all","insert","contentOnly",false]}},"supports":{"__experimentalOnEnter":true,"__experimentalOnMerge":true,"__experimentalSettings":true,"align":["wide","full"],"anchor":true,"ariaLabel":true,"html":false,"background":{"backgroundImage":true,"backgroundSize":true,"__experimentalDefaultControls":{"backgroundImage":true}},"color":{"gradients":true,"heading":true,"button":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true}},"shadow":true,"spacing":{"margin":["top","bottom"],"padding":true,"blockGap":true,"__experimentalDefaultControls":{"padding":true,"blockGap":true}},"dimensions":{"minHeight":true},"__experimentalBorder":{"color":true,"radius":true,"style":true,"width":true,"__experimentalDefaultControls":{"color":true,"radius":true,"style":true,"width":true}},"position":{"sticky":true},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"layout":{"allowSizingOnChildren":true},"interactivity":{"clientNavigation":true},"allowedBlocks":true},"editorStyle":"wp-block-group-editor","style":"wp-block-group"}');var Gd={from:[{type:"block",isMultiBlock:!0,blocks:["*"],__experimentalConvert(e){const t=["wide","full"],o=e.reduce(((e,o)=>{const{align:n}=o.attributes;return t.indexOf(n)>t.indexOf(e)?n:e}),void 0),n=e.map((e=>(0,st.createBlock)(e.name,e.attributes,e.innerBlocks)));return(0,st.createBlock)("core/group",{align:o,layout:{type:"constrained"}},n)}}]},$d=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M4 6.5h5a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H4V16h5a.5.5 0 0 0 .5-.5v-7A.5.5 0 0 0 9 8H4V6.5Zm16 0h-5a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h5V16h-5a.5.5 0 0 1-.5-.5v-7A.5.5 0 0 1 15 8h5V6.5Z"})}),Ud=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M17.5 4v5a2 2 0 0 1-2 2h-7a2 2 0 0 1-2-2V4H8v5a.5.5 0 0 0 .5.5h7A.5.5 0 0 0 16 9V4h1.5Zm0 16v-5a2 2 0 0 0-2-2h-7a2 2 0 0 0-2 2v5H8v-5a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 .5.5v5h1.5Z"})}),qd=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"m3 5c0-1.10457.89543-2 2-2h13.5c1.1046 0 2 .89543 2 2v13.5c0 1.1046-.8954 2-2 2h-13.5c-1.10457 0-2-.8954-2-2zm2-.5h6v6.5h-6.5v-6c0-.27614.22386-.5.5-.5zm-.5 8v6c0 .2761.22386.5.5.5h6v-6.5zm8 0v6.5h6c.2761 0 .5-.2239.5-.5v-6zm0-8v6.5h6.5v-6c0-.27614-.2239-.5-.5-.5z",fillRule:"evenodd",clipRule:"evenodd"})});const Wd={innerBlocks:[{name:"core/paragraph",attributes:{content:(0,pt.__)("One.")}},{name:"core/paragraph",attributes:{content:(0,pt.__)("Two.")}},{name:"core/paragraph",attributes:{content:(0,pt.__)("Three.")}},{name:"core/paragraph",attributes:{content:(0,pt.__)("Four.")}},{name:"core/paragraph",attributes:{content:(0,pt.__)("Five.")}},{name:"core/paragraph",attributes:{content:(0,pt.__)("Six.")}}]};var Zd=[{name:"group",title:(0,pt.__)("Group"),description:(0,pt.__)("Gather blocks in a container."),attributes:{layout:{type:"constrained"}},isDefault:!0,scope:["block","inserter","transform"],icon:Su},{name:"group-row",title:(0,pt._x)("Row","single horizontal line"),description:(0,pt.__)("Arrange blocks horizontally."),attributes:{layout:{type:"flex",flexWrap:"nowrap"}},scope:["block","inserter","transform"],isActive:["layout.type"],icon:$d,example:Wd},{name:"group-stack",title:(0,pt.__)("Stack"),description:(0,pt.__)("Arrange blocks vertically."),attributes:{layout:{type:"flex",orientation:"vertical"}},scope:["block","inserter","transform"],isActive:["layout.type","layout.orientation"],icon:Ud,example:Wd},{name:"group-grid",title:(0,pt.__)("Grid"),description:(0,pt.__)("Arrange blocks in a grid."),attributes:{layout:{type:"grid"}},scope:["block","inserter","transform"],isActive:["layout.type"],icon:qd,example:Wd}];const{name:Jd}=Od,Qd={icon:Su,example:{attributes:{layout:{type:"constrained",justifyContent:"center"},style:{spacing:{padding:{top:"4em",right:"3em",bottom:"4em",left:"3em"}}}},innerBlocks:[{name:"core/heading",attributes:{content:(0,pt.__)("La Mancha"),textAlign:"center"}},{name:"core/paragraph",attributes:{align:"center",content:(0,pt.__)("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.")}},{name:"core/spacer",attributes:{height:"10px"}},{name:"core/button",attributes:{text:(0,pt.__)("Read more")}}],viewportWidth:600},transforms:Gd,edit:Ed,save:function({attributes:{tagName:e}}){return(0,it.jsx)(e,{...ct.useInnerBlocksProps.save(ct.useBlockProps.save())})},deprecated:Ld,variations:Zd},Kd=()=>jt({name:Jd,metadata:Od,settings:Qd});var Yd=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M6 5V18.5911L12 13.8473L18 18.5911V5H6Z"})});const Xd={className:!1,anchor:!0},ep={align:{type:"string"},content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6",default:""},level:{type:"number",default:2},placeholder:{type:"string"}},tp=e=>{if(!e.customTextColor)return e;const t={color:{text:e.customTextColor}},{customTextColor:o,...n}=e;return{...n,style:t}},op=["left","right","center"],np=e=>{const{align:t,...o}=e;return op.includes(t)?{...o,textAlign:t}:e},rp={supports:Xd,attributes:{...ep,customTextColor:{type:"string"},textColor:{type:"string"}},migrate:e=>tp(np(e)),save({attributes:e}){const{align:t,level:o,content:n,textColor:r,customTextColor:a}=e,i="h"+o,s=(0,ct.getColorClassName)("color",r),l=Dt({[s]:s});return(0,it.jsx)(ct.RichText.Content,{className:l||void 0,tagName:i,style:{textAlign:t,color:s?void 0:a},value:n})}},ap={attributes:{...ep,customTextColor:{type:"string"},textColor:{type:"string"}},migrate:e=>tp(np(e)),save({attributes:e}){const{align:t,content:o,customTextColor:n,level:r,textColor:a}=e,i="h"+r,s=(0,ct.getColorClassName)("color",a),l=Dt({[s]:s,[`has-text-align-${t}`]:t});return(0,it.jsx)(ct.RichText.Content,{className:l||void 0,tagName:i,style:{color:s?void 0:n},value:o})},supports:Xd},ip={supports:Xd,attributes:{...ep,customTextColor:{type:"string"},textColor:{type:"string"}},migrate:e=>tp(np(e)),save({attributes:e}){const{align:t,content:o,customTextColor:n,level:r,textColor:a}=e,i="h"+r,s=(0,ct.getColorClassName)("color",a),l=Dt({[s]:s,"has-text-color":a||n,[`has-text-align-${t}`]:t});return(0,it.jsx)(ct.RichText.Content,{className:l||void 0,tagName:i,style:{color:s?void 0:n},value:o})}},sp={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:ep,isEligible:({align:e})=>op.includes(e),migrate:np,save({attributes:e}){const{align:t,content:o,level:n}=e,r="h"+n,a=Dt({[`has-text-align-${t}`]:t});return(0,it.jsx)(r,{...ct.useBlockProps.save({className:a}),children:(0,it.jsx)(ct.RichText.Content,{value:o})})}},lp={supports:{align:["wide","full"],anchor:!0,className:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0,fontAppearance:!0,textTransform:!0}},__experimentalSelector:"h1,h2,h3,h4,h5,h6",__unstablePasteTextInline:!0,__experimentalSlashInserter:!0},attributes:{textAlign:{type:"string"},content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6",default:"",role:"content"},level:{type:"number",default:2},placeholder:{type:"string"}},save({attributes:e}){const{textAlign:t,content:o,level:n}=e,r="h"+n,a=Dt({[`has-text-align-${t}`]:t});return(0,it.jsx)(r,{...ct.useBlockProps.save({className:a}),children:(0,it.jsx)(ct.RichText.Content,{value:o})})}};var cp=[lp,sp,ip,ap,rp];const up={},dp=e=>su()((e=>{const t=document.createElement("div");return t.innerHTML=e,t.innerText})(e)).replace(/[^\p{L}\p{N}]+/gu,"-").toLowerCase().replace(/(^-+)|(-+$)/g,""),pp=(e,t)=>{const o=dp(t);if(""===o)return null;delete up[e];let n=o,r=0;for(;Object.values(up).includes(n);)r+=1,n=o+"-"+r;return n},mp=(e,t)=>{up[e]=t};var gp=function({attributes:e,setAttributes:t,mergeBlocks:o,onReplace:n,style:r,clientId:a}){const{textAlign:i,content:s,level:l,levelOptions:c,placeholder:u,anchor:d}=e,p="h"+l,m=(0,ct.useBlockProps)({className:Dt({[`has-text-align-${i}`]:i}),style:r}),g=(0,ct.useBlockEditingMode)(),{canGenerateAnchors:h}=(0,lt.useSelect)((e=>{const{getGlobalBlockCount:t,getSettings:o}=e(ct.store);return{canGenerateAnchors:!!o().generateAnchors||t("core/table-of-contents")>0}}),[]),{__unstableMarkNextChangeAsNotPersistent:_}=(0,lt.useDispatch)(ct.store);return(0,gt.useEffect)((()=>{if(h)return!d&&s&&(_(),t({anchor:pp(a,s)})),mp(a,d),()=>mp(a,null)}),[d,s,a,h]),(0,it.jsxs)(it.Fragment,{children:["default"===g&&(0,it.jsxs)(ct.BlockControls,{group:"block",children:[(0,it.jsx)(ct.HeadingLevelDropdown,{value:l,options:c,onChange:e=>t({level:e})}),(0,it.jsx)(ct.AlignmentControl,{value:i,onChange:e=>{t({textAlign:e})}})]}),(0,it.jsx)(ct.RichText,{identifier:"content",tagName:p,value:s,onChange:e=>{const o={content:e};!h||d&&e&&pp(a,s)!==d||(o.anchor=pp(a,e)),t(o)},onMerge:o,onReplace:n,onRemove:()=>n([]),placeholder:u||(0,pt.__)("Heading"),textAlign:i,...gt.Platform.isNative&&{deleteEnter:!0},...m})]})};const hp=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"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":"rich-text","source":"rich-text","selector":"h1,h2,h3,h4,h5,h6","role":"content"},"level":{"type":"number","default":2},"levelOptions":{"type":"array"},"placeholder":{"type":"string"}},"supports":{"align":["wide","full"],"anchor":true,"className":true,"splitting":true,"__experimentalBorder":{"color":true,"radius":true,"style":true,"width":true},"color":{"gradients":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true}},"spacing":{"margin":true,"padding":true,"__experimentalDefaultControls":{"margin":false,"padding":false}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontStyle":true,"__experimentalFontWeight":true,"__experimentalLetterSpacing":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalWritingMode":true,"fitText":true,"__experimentalDefaultControls":{"fontSize":true}},"__unstablePasteTextInline":true,"__experimentalSlashInserter":true,"interactivity":{"clientNavigation":true}},"editorStyle":"wp-block-heading-editor","style":"wp-block-heading"}');const _p={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>e.map((e=>{const{content:t,anchor:o,align:n}=e;return(0,st.createBlock)("core/heading",{...Nn(e,"core/heading",(({content:e})=>({content:e}))),content:t,anchor:o,textAlign:n})}))},{type:"raw",selector:"h1,h2,h3,h4,h5,h6",schema:({phrasingContentSchema:e,isPaste:t})=>{const o={children:e,attributes:t?[]:["style","id"]};return{h1:o,h2:o,h3:o,h4:o,h5:o,h6:o}},transform(e){const t=(0,st.getBlockAttributes)("core/heading",e.outerHTML),{textAlign:o}=e.style||{};var n;return t.level=(n=e.nodeName,Number(n.substr(1))),"left"!==o&&"center"!==o&&"right"!==o||(t.align=o),(0,st.createBlock)("core/heading",t)}},...[1,2,3,4,5,6].map((e=>({type:"prefix",prefix:Array(e+1).join("#"),transform:t=>(0,st.createBlock)("core/heading",{level:e,content:t})}))),...[1,2,3,4,5,6].map((e=>({type:"enter",regExp:new RegExp(`^/(h|H)${e}$`),transform:()=>(0,st.createBlock)("core/heading",{level:e})})))],to:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>e.map((e=>{const{content:t,textAlign:o}=e;return(0,st.createBlock)("core/paragraph",{...Nn(e,"core/paragraph",(({content:e})=>({content:e}))),content:t,align:o})}))}]};var xp=_p;const bp=[{name:"heading",title:(0,pt.__)("Heading"),description:(0,pt.__)("Introduce new sections and organize content to help visitors (and search engines) understand the structure of your content."),isDefault:!0,scope:["inserter","transform"],attributes:{fitText:void 0},icon:Yd},{name:"stretchy-heading",title:(0,pt.__)("Stretchy Heading"),description:(0,pt.__)("Heading that resizes to fit its container."),icon:(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"m3 18.6 6-4.7 6 4.7V5H3v13.6Zm16.2-9.8v1.5h2.2L17.7 14l1.1 1.1 3.7-3.7v2.2H24V8.8h-4.8Z"})}),attributes:{fitText:!0},scope:["inserter","transform"],isActive:e=>!0===e.fitText}];var fp=bp;const{name:yp}=hp,vp={icon:Yd,example:{attributes:{content:(0,pt.__)("Code is Poetry"),level:2,textAlign:"center"}},__experimentalLabel(e,{context:t}){const{content:o,level:n}=e,r=e?.metadata?.name,a=o?.trim().length>0;return"list-view"===t&&(r||a)?r||o:"accessibility"===t?a?(0,pt.sprintf)((0,pt.__)("Level %1$s. %2$s"),n,o):(0,pt.sprintf)((0,pt.__)("Level %s. Empty."),n):void 0},transforms:xp,deprecated:cp,merge:(e,t)=>({content:(e.content||"")+(t.content||"")}),edit:gp,save:function({attributes:e}){const{textAlign:t,content:o,level:n}=e,r="h"+n,a=Dt({[`has-text-align-${t}`]:t});return(0,it.jsx)(r,{...ct.useBlockProps.save({className:a}),children:(0,it.jsx)(ct.RichText.Content,{value:o})})},variations:fp},kp=()=>jt({name:yp,metadata:hp,settings:vp});var wp=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M12 4L4 7.9V20h16V7.9L12 4zm6.5 14.5H14V13h-4v5.5H5.5V8.8L12 5.7l6.5 3.1v9.7z"})});const Cp=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/home-link","category":"design","parent":["core/navigation"],"title":"Home Link","description":"Create a link that always points to the homepage of the site. Usually not necessary if there is already a site title link present in the header.","textdomain":"default","attributes":{"label":{"type":"string","role":"content"}},"usesContext":["textColor","customTextColor","backgroundColor","customBackgroundColor","fontSize","customFontSize","style"],"supports":{"reusable":false,"html":false,"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true}},"editorStyle":"wp-block-home-link-editor","style":"wp-block-home-link"}'),jp=e=>e.preventDefault();const{name:Sp}=Cp,Bp={icon:wp,edit:function({attributes:e,setAttributes:t,context:o}){const n=(0,lt.useSelect)((e=>e(_t.store).getEntityRecord("root","__unstableBase")?.home),[]),{textColor:r,backgroundColor:a,style:i}=o,s=(0,ct.useBlockProps)({className:Dt("wp-block-navigation-item",{"has-text-color":!!r||!!i?.color?.text,[`has-${r}-color`]:!!r,"has-background":!!a||!!i?.color?.background,[`has-${a}-background-color`]:!!a}),style:{color:i?.color?.text,backgroundColor:i?.color?.background}});return(0,it.jsx)("div",{...s,children:(0,it.jsx)("a",{className:"wp-block-home-link__content wp-block-navigation-item__content",href:n,onClick:jp,children:(0,it.jsx)(ct.RichText,{identifier:"label",className:"wp-block-home-link__label",value:e.label??(0,pt.__)("Home"),onChange:e=>{t({label:e})},"aria-label":(0,pt.__)("Home link text"),placeholder:(0,pt.__)("Add home link"),withoutInteractiveFormatting:!0})})})},save:function(){return(0,it.jsx)(ct.InnerBlocks.Content,{})},example:{attributes:{label:(0,pt._x)("Home Link","block example")}}},Tp=()=>jt({name:Sp,metadata:Cp,settings:Bp});var Np=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.Path,{d:"M4.8 11.4H2.1V9H1v6h1.1v-2.6h2.7V15h1.1V9H4.8v2.4zm1.9-1.3h1.7V15h1.1v-4.9h1.7V9H6.7v1.1zM16.2 9l-1.5 2.7L13.3 9h-.9l-.8 6h1.1l.5-4 1.5 2.8 1.5-2.8.5 4h1.1L17 9h-.8zm3.8 5V9h-1.1v6h3.6v-1H20z"})});function Pp({content:e,isSelected:t}){const o=(0,lt.useSelect)((e=>e(ct.store).getSettings().styles),[]),n=(0,gt.useMemo)((()=>["\n\thtml,body,:root {\n\t\tmargin: 0 !important;\n\t\tpadding: 0 !important;\n\t\toverflow: visible !important;\n\t\tmin-height: auto !important;\n\t}\n",...(0,ct.transformStyles)((o??[]).filter((e=>e.css)))]),[o]);return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(mt.SandBox,{html:e,styles:n,title:(0,pt.__)("Custom HTML Preview"),tabIndex:-1}),!t&&(0,it.jsx)("div",{className:"block-library-html__preview-overlay"})]})}const Ip=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"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":"raw","role":"content"}},"supports":{"customClassName":false,"className":false,"html":false,"interactivity":{"clientNavigation":true}},"editorStyle":"wp-block-html-editor"}');var Dp={from:[{type:"block",blocks:["core/code"],transform:({content:e})=>(0,st.createBlock)("core/html",{content:(0,Tn.create)({html:e}).text})}]};const{name:Mp}=Ip,zp={icon:Np,example:{attributes:{content:"<marquee>"+(0,pt.__)("Welcome to the wonderful world of blocks…")+"</marquee>"}},edit:function e({attributes:t,setAttributes:o,isSelected:n}){const[r,a]=(0,gt.useState)(),i=(0,gt.useContext)(mt.Disabled.Context),s=(0,xt.useInstanceId)(e,"html-edit-desc"),l=(0,lt.useSelect)((e=>e(ct.store).getSettings().isPreviewMode),[]),c=(0,ct.useBlockProps)({className:"block-library-html__edit","aria-describedby":r?s:void 0});return(0,it.jsxs)("div",{...c,children:[(0,it.jsx)(ct.BlockControls,{children:(0,it.jsxs)(mt.ToolbarGroup,{children:[(0,it.jsx)(mt.ToolbarButton,{isPressed:!r,onClick:function(){a(!1)},children:"HTML"}),(0,it.jsx)(mt.ToolbarButton,{isPressed:r,onClick:function(){a(!0)},children:(0,pt.__)("Preview")})]})}),r||l||i?(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(Pp,{content:t.content,isSelected:n}),(0,it.jsx)(mt.VisuallyHidden,{id:s,children:(0,pt.__)("HTML preview is not yet fully accessible. Please switch screen reader to virtualized mode to navigate the below iFrame.")})]}):(0,it.jsx)(ct.PlainText,{value:t.content,onChange:e=>o({content:e}),placeholder:(0,pt.__)("Write HTML…"),"aria-label":(0,pt.__)("HTML")})]})},save:function({attributes:e}){return(0,it.jsx)(gt.RawHTML,{children:e.content})},transforms:Dp},Ap=()=>jt({name:Mp,metadata:Ip,settings:zp}),Lp={attributes:{url:{type:"string",source:"attribute",selector:"img",attribute:"src"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"array",source:"children",selector:"figcaption"},href:{type:"string",source:"attribute",selector:"a",attribute:"href"},id:{type:"number"},align:{type:"string"},width:{type:"number"},height:{type:"number"}},save({attributes:e}){const{url:t,alt:o,caption:n,align:r,href:a,width:i,height:s}=e,l=i||s?{width:i,height:s}:{},c=(0,it.jsx)("img",{src:t,alt:o,...l});let u={};return i?u={width:i}:"left"!==r&&"right"!==r||(u={maxWidth:"50%"}),(0,it.jsxs)("figure",{className:r?`align${r}`:null,style:u,children:[a?(0,it.jsx)("a",{href:a,children:c}):c,!ct.RichText.isEmpty(n)&&(0,it.jsx)(ct.RichText.Content,{tagName:"figcaption",value:n})]})}},Hp={attributes:{url:{type:"string",source:"attribute",selector:"img",attribute:"src"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"array",source:"children",selector:"figcaption"},href:{type:"string",source:"attribute",selector:"a",attribute:"href"},id:{type:"number"},align:{type:"string"},width:{type:"number"},height:{type:"number"}},save({attributes:e}){const{url:t,alt:o,caption:n,align:r,href:a,width:i,height:s,id:l}=e,c=(0,it.jsx)("img",{src:t,alt:o,className:l?`wp-image-${l}`:null,width:i,height:s});return(0,it.jsxs)("figure",{className:r?`align${r}`:null,children:[a?(0,it.jsx)("a",{href:a,children:c}):c,!ct.RichText.isEmpty(n)&&(0,it.jsx)(ct.RichText.Content,{tagName:"figcaption",value:n})]})}},Rp={attributes:{url:{type:"string",source:"attribute",selector:"img",attribute:"src"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"array",source:"children",selector:"figcaption"},href:{type:"string",source:"attribute",selector:"figure > a",attribute:"href"},id:{type:"number"},align:{type:"string"},width:{type:"number"},height:{type:"number"},linkDestination:{type:"string",default:"none"}},save({attributes:e}){const{url:t,alt:o,caption:n,align:r,href:a,width:i,height:s,id:l}=e,c=Dt({[`align${r}`]:r,"is-resized":i||s}),u=(0,it.jsx)("img",{src:t,alt:o,className:l?`wp-image-${l}`:null,width:i,height:s});return(0,it.jsxs)("figure",{className:c,children:[a?(0,it.jsx)("a",{href:a,children:u}):u,!ct.RichText.isEmpty(n)&&(0,it.jsx)(ct.RichText.Content,{tagName:"figcaption",value:n})]})}},Vp={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},save({attributes:e}){const{url:t,alt:o,caption:n,align:r,href:a,rel:i,linkClass:s,width:l,height:c,id:u,linkTarget:d,sizeSlug:p,title:m}=e,g=i||void 0,h=Dt({[`align${r}`]:r,[`size-${p}`]:p,"is-resized":l||c}),_=(0,it.jsx)("img",{src:t,alt:o,className:u?`wp-image-${u}`:null,width:l,height:c,title:m}),x=(0,it.jsxs)(it.Fragment,{children:[a?(0,it.jsx)("a",{className:s,href:a,target:d,rel:g,children:_}):_,!ct.RichText.isEmpty(n)&&(0,it.jsx)(ct.RichText.Content,{tagName:"figcaption",value:n})]});return"left"===r||"right"===r||"center"===r?(0,it.jsx)("div",{...ct.useBlockProps.save(),children:(0,it.jsx)("figure",{className:h,children:x})}):(0,it.jsx)("figure",{...ct.useBlockProps.save({className:h}),children:x})}},Fp={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,__experimentalDefaultControls:{radius:!0}},__experimentalStyle:{spacing:{margin:"0 0 1em 0"}}},save({attributes:e}){const{url:t,alt:o,caption:n,align:r,href:a,rel:i,linkClass:s,width:l,height:c,id:u,linkTarget:d,sizeSlug:p,title:m}=e,g=i||void 0,h=Dt({[`align${r}`]:r,[`size-${p}`]:p,"is-resized":l||c}),_=(0,it.jsx)("img",{src:t,alt:o,className:u?`wp-image-${u}`:null,width:l,height:c,title:m}),x=(0,it.jsxs)(it.Fragment,{children:[a?(0,it.jsx)("a",{className:s,href:a,target:d,rel:g,children:_}):_,!ct.RichText.isEmpty(n)&&(0,it.jsx)(ct.RichText.Content,{tagName:"figcaption",value:n})]});return(0,it.jsx)("figure",{...ct.useBlockProps.save({className:h}),children:x})}},Ep={attributes:{align:{type:"string"},url:{type:"string",source:"attribute",selector:"img",attribute:"src",role:"content"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:"",role:"content"},caption:{type:"string",source:"html",selector:"figcaption",role:"content"},title:{type:"string",source:"attribute",selector:"img",attribute:"title",role:"content"},href:{type:"string",source:"attribute",selector:"figure > a",attribute:"href",role:"content"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number",role:"content"},width:{type:"number"},height:{type:"number"},aspectRatio:{type:"string"},scale:{type:"string"},sizeSlug:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},supports:{anchor:!0,color:{text:!1,background:!1},filter:{duotone:!0},__experimentalBorder:{color:!0,radius:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,radius:!0,width:!0}}},migrate(e){const{height:t,width:o}=e;return{...e,width:"number"==typeof o?`${o}px`:o,height:"number"==typeof t?`${t}px`:t}},save({attributes:e}){const{url:t,alt:o,caption:n,align:r,href:a,rel:i,linkClass:s,width:l,height:c,aspectRatio:u,scale:d,id:p,linkTarget:m,sizeSlug:g,title:h}=e,_=i||void 0,x=(0,ct.__experimentalGetBorderClassesAndStyles)(e),b=Dt({[`align${r}`]:r,[`size-${g}`]:g,"is-resized":l||c,"has-custom-border":!!x.className||x.style&&Object.keys(x.style).length>0}),f=Dt(x.className,{[`wp-image-${p}`]:!!p}),y=(0,it.jsx)("img",{src:t,alt:o,className:f||void 0,style:{...x.style,aspectRatio:u,objectFit:d},width:l,height:c,title:h}),v=(0,it.jsxs)(it.Fragment,{children:[a?(0,it.jsx)("a",{className:s,href:a,target:m,rel:_,children:y}):y,!ct.RichText.isEmpty(n)&&(0,it.jsx)(ct.RichText.Content,{className:(0,ct.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:n})]});return(0,it.jsx)("figure",{...ct.useBlockProps.save({className:b}),children:v})}},Op={attributes:{align:{type:"string"},url:{type:"string",source:"attribute",selector:"img",attribute:"src",role:"content"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:"",role:"content"},caption:{type:"string",source:"html",selector:"figcaption",role:"content"},title:{type:"string",source:"attribute",selector:"img",attribute:"title",role:"content"},href:{type:"string",source:"attribute",selector:"figure > a",attribute:"href",role:"content"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number",role:"content"},width:{type:"number"},height:{type:"number"},aspectRatio:{type:"string"},scale:{type:"string"},sizeSlug:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},supports:{anchor:!0,color:{text:!1,background:!1},filter:{duotone:!0},__experimentalBorder:{color:!0,radius:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,radius:!0,width:!0}}},migrate:({width:e,height:t,...o})=>({...o,width:`${e}px`,height:`${t}px`}),save({attributes:e}){const{url:t,alt:o,caption:n,align:r,href:a,rel:i,linkClass:s,width:l,height:c,aspectRatio:u,scale:d,id:p,linkTarget:m,sizeSlug:g,title:h}=e,_=i||void 0,x=(0,ct.__experimentalGetBorderClassesAndStyles)(e),b=Dt({[`align${r}`]:r,[`size-${g}`]:g,"is-resized":l||c,"has-custom-border":!!x.className||x.style&&Object.keys(x.style).length>0}),f=Dt(x.className,{[`wp-image-${p}`]:!!p}),y=(0,it.jsx)("img",{src:t,alt:o,className:f||void 0,style:{...x.style,aspectRatio:u,objectFit:d,width:l,height:c},width:l,height:c,title:h}),v=(0,it.jsxs)(it.Fragment,{children:[a?(0,it.jsx)("a",{className:s,href:a,target:m,rel:_,children:y}):y,!ct.RichText.isEmpty(n)&&(0,it.jsx)(ct.RichText.Content,{className:(0,ct.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:n})]});return(0,it.jsx)("figure",{...ct.useBlockProps.save({className:b}),children:v})}},Gp={attributes:{align:{type:"string"},behaviors:{type:"object"},url:{type:"string",source:"attribute",selector:"img",attribute:"src",role:"content"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:"",role:"content"},caption:{type:"string",source:"html",selector:"figcaption",role:"content"},title:{type:"string",source:"attribute",selector:"img",attribute:"title",role:"content"},href:{type:"string",source:"attribute",selector:"figure > a",attribute:"href",role:"content"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number",role:"content"},width:{type:"string"},height:{type:"string"},aspectRatio:{type:"string"},scale:{type:"string"},sizeSlug:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},supports:{anchor:!0,color:{text:!1,background:!1},filter:{duotone:!0},__experimentalBorder:{color:!0,radius:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,radius:!0,width:!0}}},migrate({width:e,height:t,...o}){if(!o.behaviors?.lightbox)return o;const{behaviors:{lightbox:{enabled:n}}}=o,r={...o,lightbox:{enabled:n}};return delete r.behaviors,r},isEligible:e=>!!e.behaviors,save({attributes:e}){const{url:t,alt:o,caption:n,align:r,href:a,rel:i,linkClass:s,width:l,height:c,aspectRatio:u,scale:d,id:p,linkTarget:m,sizeSlug:g,title:h}=e,_=i||void 0,x=(0,ct.__experimentalGetBorderClassesAndStyles)(e),b=Dt({[`align${r}`]:r,[`size-${g}`]:g,"is-resized":l||c,"has-custom-border":!!x.className||x.style&&Object.keys(x.style).length>0}),f=Dt(x.className,{[`wp-image-${p}`]:!!p}),y=(0,it.jsx)("img",{src:t,alt:o,className:f||void 0,style:{...x.style,aspectRatio:u,objectFit:d,width:l,height:c},title:h}),v=(0,it.jsxs)(it.Fragment,{children:[a?(0,it.jsx)("a",{className:s,href:a,target:m,rel:_,children:y}):y,!ct.RichText.isEmpty(n)&&(0,it.jsx)(ct.RichText.Content,{className:(0,ct.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:n})]});return(0,it.jsx)("figure",{...ct.useBlockProps.save({className:b}),children:v})}};var $p=[Gp,Op,Ep,Fp,Vp,Rp,Hp,Lp],Up=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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"})}),qp=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"})}),Wp=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M18 20v-2h2v-1.5H7.75a.25.25 0 0 1-.25-.25V4H6v2H4v1.5h2v8.75c0 .966.784 1.75 1.75 1.75h8.75v2H18ZM9.273 7.5h6.977a.25.25 0 0 1 .25.25v6.977H18V7.75A1.75 1.75 0 0 0 16.25 6H9.273v1.5Z"})}),Zp=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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"})}),Jp=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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"})});const{DimensionsTool:Qp,ResolutionTool:Kp}=jo(ct.privateApis),Yp=[{value:"cover",label:(0,pt._x)("Cover","Scale option for dimensions control"),help:(0,pt.__)("Image covers the space evenly.")},{value:"contain",label:(0,pt._x)("Contain","Scale option for dimensions control"),help:(0,pt.__)("Image is contained without distortion.")}],Xp={placement:"bottom-start"},em=({href:e,children:t})=>e?(0,it.jsx)("a",{href:e,onClick:e=>e.preventDefault(),"aria-disabled":!0,style:{pointerEvents:"none",cursor:"default",display:"inline"},children:t}):t;function tm({attributes:e,setAttributes:t,lockAltControls:o,lockAltControlsMessage:n,lockTitleControls:r,lockTitleControlsMessage:a}){const[i,s]=(0,gt.useState)(null),[l,c]=(0,gt.useState)(!1),[u,d]=(0,gt.useState)(!1);return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(mt.ToolbarItem,{ref:s,children:e=>(0,it.jsx)(mt.DropdownMenu,{icon:qp,label:(0,pt.__)("More"),toggleProps:{...e,description:(0,pt.__)("Displays more controls.")},popoverProps:Xp,children:({onClose:e})=>(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(mt.MenuItem,{onClick:()=>{c(!0),e()},"aria-haspopup":"dialog",children:(0,pt._x)("Alternative text","Alternative text for an image. Block toolbar label, a low character count is preferred.")}),(0,it.jsx)(mt.MenuItem,{onClick:()=>{d(!0),e()},"aria-haspopup":"dialog",children:(0,pt.__)("Title text")})]})})}),l&&(0,it.jsx)(mt.Popover,{placement:"bottom-start",anchor:i,onClose:()=>c(!1),offset:13,variant:"toolbar",children:(0,it.jsx)("div",{className:"wp-block-image__toolbar_content_textarea__container",children:(0,it.jsx)(mt.TextareaControl,{className:"wp-block-image__toolbar_content_textarea",label:(0,pt.__)("Alternative text"),value:e.alt||"",onChange:e=>t({alt:e}),disabled:o,help:o?(0,it.jsx)(it.Fragment,{children:n}):(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(mt.ExternalLink,{href:(0,pt.__)("https://www.w3.org/WAI/tutorials/images/decision-tree/"),children:(0,pt.__)("Describe the purpose of the image.")}),(0,it.jsx)("br",{}),(0,pt.__)("Leave empty if decorative.")]}),__nextHasNoMarginBottom:!0})})}),u&&(0,it.jsx)(mt.Popover,{placement:"bottom-start",anchor:i,onClose:()=>d(!1),offset:13,variant:"toolbar",children:(0,it.jsx)("div",{className:"wp-block-image__toolbar_content_textarea__container",children:(0,it.jsx)(mt.TextControl,{__next40pxDefaultSize:!0,className:"wp-block-image__toolbar_content_textarea",__nextHasNoMarginBottom:!0,label:(0,pt.__)("Title attribute"),value:e.title||"",onChange:e=>t({title:e}),disabled:r,help:r?(0,it.jsx)(it.Fragment,{children:a}):(0,it.jsxs)(it.Fragment,{children:[(0,pt.__)("Describe the role of this image on the page."),(0,it.jsx)(mt.ExternalLink,{href:"https://www.w3.org/TR/html52/dom.html#the-title-attribute",children:(0,pt.__)("(Note: many devices and browsers do not display this text.)")})]})})})})]})}function om({temporaryURL:e,attributes:t,setAttributes:o,isSingleSelected:n,insertBlocksAfter:r,onReplace:a,onSelectImage:i,onSelectURL:s,onUploadError:l,context:c,clientId:u,blockEditingMode:d,parentLayoutType:p,maxContentWidth:m}){const{url:g="",alt:h,align:_,id:x,href:b,rel:f,linkClass:y,linkDestination:v,title:k,width:w,height:C,aspectRatio:j,scale:S,linkTarget:B,sizeSlug:T,lightbox:N,metadata:P}=t,[I,D]=(0,gt.useState)(),[M,z]=(0,gt.useState)(null),[A,L]=(0,gt.useState)({}),[H,R]=(0,gt.useState)(0),V=(0,xt.useResizeObserver)((([e])=>{if(!M){const[t]=e.borderBoxSize;L({width:t.inlineSize,height:t.blockSize})}R(e.target.offsetTop)})),F=(0,gt.useCallback)((()=>{R(I?.offsetTop??0)}),[I]),E=(0,xt.useMergeRefs)([D,V]),{allowResize:O=!0}=c,G=(0,lt.useSelect)((e=>x&&n?e(_t.store).getEntityRecord("postType","attachment",x,{context:"view"}):null),[x,n]),{canInsertCover:$,imageEditing:U,imageSizes:q,maxWidth:W}=(0,lt.useSelect)((e=>{const{getBlockRootClientId:t,canInsertBlockType:o,getSettings:n}=e(ct.store),r=t(u),a=n();return{imageEditing:a.imageEditing,imageSizes:a.imageSizes,maxWidth:a.maxWidth,canInsertCover:o("core/cover",r)}}),[u]),{getBlock:Z,getSettings:J}=(0,lt.useSelect)(ct.store),{replaceBlocks:Q,toggleSelection:K}=(0,lt.useDispatch)(ct.store),{createErrorNotice:Y,createSuccessNotice:X}=(0,lt.useDispatch)(bo.store),{editEntityRecord:ee}=(0,lt.useDispatch)(_t.store),te=(0,xt.useViewportMatch)("medium"),oe=["wide","full"].includes(_),[{loadedNaturalWidth:ne,loadedNaturalHeight:re},ae]=(0,gt.useState)({}),[ie,se]=(0,gt.useState)(!1),[le,ce]=(0,gt.useState)(),[ue,de]=(0,gt.useState)(!1),pe="default"===d,me="contentOnly"===d,ge=O&&pe&&!oe&&te,he=q.filter((({slug:e})=>G?.media_details?.sizes?.[e]?.source_url)).map((({name:e,slug:t})=>({value:t,label:e})));(0,gt.useEffect)((()=>{nm(x,g)&&n&&J().mediaUpload?le||window.fetch(g.includes("?")?g:g+"?").then((e=>e.blob())).then((e=>ce(e))).catch((()=>{})):ce()}),[x,g,n,le,J]);const{naturalWidth:_e,naturalHeight:xe}=(0,gt.useMemo)((()=>({naturalWidth:I?.naturalWidth||ne||void 0,naturalHeight:I?.naturalHeight||re||void 0})),[ne,re,I?.complete]);function be(e){const t=G?.media_details?.sizes?.[e]?.source_url;if(!t)return null;o({url:t,sizeSlug:e})}(0,gt.useEffect)((()=>{n||se(!1)}),[n]);const fe=x&&_e&&xe&&U,ye=n&&fe&&!ie&&!me;const ve=(0,mt.__experimentalUseCustomUnits)({availableUnits:["px"]}),[ke]=(0,ct.useSettings)("lightbox"),we=!!N&&N?.enabled!==ke?.enabled||ke?.allowEditing,Ce=!!N?.enabled||!N&&!!ke?.enabled,je=vt(),Se=ge&&(pd.includes(p)?(0,it.jsx)(Qp,{value:{aspectRatio:j},onChange:({aspectRatio:e})=>{o({aspectRatio:e,scale:"cover"})},defaultAspectRatio:"auto",tools:["aspectRatio"]}):(0,it.jsx)(Qp,{value:{width:w,height:C,scale:S,aspectRatio:j},onChange:({width:e,height:t,scale:n,aspectRatio:r})=>{o({width:!e&&t?"auto":e,height:t,scale:n,aspectRatio:r})},defaultScale:"cover",defaultAspectRatio:"auto",scaleOptions:Yp,unitsOptions:ve})),Be=()=>{o({alt:void 0,width:void 0,height:void 0,scale:void 0,aspectRatio:void 0,lightbox:void 0}),be(md)},Te=(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsx)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:Be,dropdownMenuProps:je,children:Se})}),Ne="core/pattern-overrides"===P?.bindings?.__default?.source,{lockUrlControls:Pe=!1,lockHrefControls:Ie=!1,lockAltControls:De=!1,lockAltControlsMessage:Me,lockTitleControls:ze=!1,lockTitleControlsMessage:Ae,hideCaptionControls:Le=!1}=(0,lt.useSelect)((e=>{if(!n)return{};const{url:t,alt:o,title:r,caption:a}=P?.bindings||{},i=!!c["pattern/overrides"],s=(0,st.getBlockBindingsSource)(t?.source),l=(0,st.getBlockBindingsSource)(o?.source),u=(0,st.getBlockBindingsSource)(r?.source);return{lockUrlControls:!!t&&!s?.canUserEditValue?.({select:e,context:c,args:t?.args}),lockHrefControls:i||Ne,hideCaptionControls:!!a,lockAltControls:!!o&&!l?.canUserEditValue?.({select:e,context:c,args:o?.args}),lockAltControlsMessage:l?.label?(0,pt.sprintf)((0,pt.__)("Connected to %s"),l.label):(0,pt.__)("Connected to dynamic data"),lockTitleControls:!!r&&!u?.canUserEditValue?.({select:e,context:c,args:r?.args}),lockTitleControlsMessage:u?.label?(0,pt.sprintf)((0,pt.__)("Connected to %s"),u.label):(0,pt.__)("Connected to dynamic data")}}),[Ne,c,n,P?.bindings]),He=n&&!ie&&!Ie&&!Pe,Re=n&&$&&!me,Ve=He||ye||Re,Fe=n&&!ie&&!Pe&&(0,it.jsx)(ct.BlockControls,{group:me?"inline":"other",children:(0,it.jsx)(ct.MediaReplaceFlow,{mediaId:x,mediaURL:g,allowedTypes:dd,accept:"image/*",onSelect:i,onSelectURL:s,onError:l,name:g?(0,pt.__)("Replace"):(0,pt.__)("Add image"),onReset:()=>i(void 0)})}),Ee=(0,it.jsxs)(it.Fragment,{children:[Ve&&(0,it.jsxs)(ct.BlockControls,{group:"block",children:[He&&(0,it.jsx)(ct.__experimentalImageURLInputUI,{url:b||"",onChangeUrl:function(e){o(e)},linkDestination:v,mediaUrl:G&&G.source_url||g,mediaLink:G&&G.link,linkTarget:B,linkClass:y,rel:f,showLightboxSetting:we,lightboxEnabled:Ce,onSetLightbox:function(e){o(e&&!ke?.enabled?{lightbox:{enabled:!0}}:!e&&ke?.enabled?{lightbox:{enabled:!1}}:{lightbox:void 0})},resetLightbox:function(){o(ke?.enabled&&ke?.allowEditing?{lightbox:{enabled:!1}}:{lightbox:void 0})}}),ye&&(0,it.jsx)(mt.ToolbarButton,{onClick:()=>se(!0),icon:Wp,label:(0,pt.__)("Crop")}),Re&&(0,it.jsx)(mt.ToolbarButton,{icon:Zp,label:(0,pt.__)("Add text over image"),onClick:function(){Q(u,(0,st.switchToBlockType)(Z(u),"core/cover"))}})]}),n&&le&&(0,it.jsx)(ct.BlockControls,{children:(0,it.jsx)(mt.ToolbarGroup,{children:(0,it.jsx)(mt.ToolbarButton,{onClick:function(){const{mediaUpload:e}=J();e&&e({filesList:[le],onFileChange([e]){i(e),(0,ht.isBlobURL)(e.url)||(ce(),X((0,pt.__)("Image uploaded."),{type:"snackbar"}))},allowedTypes:dd,onError(e){Y(e,{type:"snackbar"})}})},icon:Jp,label:(0,pt.__)("Upload to Media Library")})})}),me&&(0,it.jsx)(ct.BlockControls,{group:"block",children:(0,it.jsx)(tm,{attributes:t,setAttributes:o,lockAltControls:De,lockAltControlsMessage:Me,lockTitleControls:ze,lockTitleControlsMessage:Ae})}),(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:Be,dropdownMenuProps:je,children:[n&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Alternative text"),isShownByDefault:!0,hasValue:()=>!!h,onDeselect:()=>o({alt:void 0}),children:(0,it.jsx)(mt.TextareaControl,{label:(0,pt.__)("Alternative text"),value:h||"",onChange:function(e){o({alt:e})},readOnly:De,help:De?(0,it.jsx)(it.Fragment,{children:Me}):(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(mt.ExternalLink,{href:(0,pt.__)("https://www.w3.org/WAI/tutorials/images/decision-tree/"),children:(0,pt.__)("Describe the purpose of the image.")}),(0,it.jsx)("br",{}),(0,pt.__)("Leave empty if decorative.")]}),__nextHasNoMarginBottom:!0})}),Se,!!he.length&&(0,it.jsx)(Kp,{value:T,defaultValue:md,onChange:be,options:he})]})}),(0,it.jsx)(ct.InspectorControls,{group:"advanced",children:(0,it.jsx)(mt.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,pt.__)("Title attribute"),value:k||"",onChange:function(e){o({title:e})},readOnly:ze,help:ze?(0,it.jsx)(it.Fragment,{children:Ae}):(0,it.jsxs)(it.Fragment,{children:[(0,pt.__)("Describe the role of this image on the page."),(0,it.jsx)(mt.ExternalLink,{href:"https://www.w3.org/TR/html52/dom.html#the-title-attribute",children:(0,pt.__)("(Note: many devices and browsers do not display this text.)")})]})})})]}),Oe=(0,no.getFilename)(g);let Ge;Ge=h||(Oe?(0,pt.sprintf)((0,pt.__)("This image has an empty alt attribute; its file name is %s"),Oe):(0,pt.__)("This image has an empty alt attribute"));const $e=(0,ct.__experimentalUseBorderProps)(t),Ue=(0,ct.__experimentalGetShadowClassesAndStyles)(t),qe=t.className?.includes("is-style-rounded"),{postType:We,postId:Ze,queryId:Je}=c,Qe=Number.isFinite(Je);let Ke,Ye=e&&ue?(0,it.jsx)(mt.Placeholder,{className:"wp-block-image__placeholder",withIllustration:!0,children:(0,it.jsx)(mt.Spinner,{})}):(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)("img",{src:e||g,alt:Ge,onError:function(){de(!0);const e=No({attributes:{url:g}});void 0!==e&&a(e)},onLoad:function(e){de(!1),ae({loadedNaturalWidth:e.target?.naturalWidth,loadedNaturalHeight:e.target?.naturalHeight})},ref:E,className:$e.className,width:_e,height:xe,style:{aspectRatio:j,...M?{width:A.width+M.width,height:A.height+M.height}:{width:w,height:C},objectFit:S,...$e.style,...Ue.style}}),e&&(0,it.jsx)(mt.Spinner,{})]});if(Ye=fe&&ie?(0,it.jsx)(em,{href:b,children:(0,it.jsx)(ct.__experimentalImageEditor,{id:x,url:g,...A,naturalHeight:xe,naturalWidth:_e,onSaveImage:e=>o(e),onFinishEditing:()=>{se(!1)},borderProps:qe?void 0:$e})}):(0,it.jsx)(em,{href:b,children:Ye}),ge&&n&&!ie&&!pd.includes(p)){const e=j&&function(e){const[t,o=1]=e.split("/").map(Number),n=t/o;return n===1/0||0===n?NaN:n}(j),t=A.width/A.height,n=_e/xe,r=e||t||n||1,a=_e<xe?ad:ad*r,i=xe<_e?ad:ad/r,s=m||2.5*W;let l=!1,c=!1;"center"===_?(l=!0,c=!0):(0,pt.isRTL)()?"left"===_?l=!0:c=!0:"right"===_?c=!0:l=!0,Ke=(0,it.jsx)(mt.ResizableBox,{ref:F,style:{position:"absolute",inset:`${H}px 0 0 0`},size:A,minWidth:a,maxWidth:s,minHeight:i,maxHeight:s/r,lockAspectRatio:r,enable:{top:!1,right:l,bottom:!0,left:c},onResizeStart:()=>{K(!1)},onResize:(e,t,o,n)=>{z(n)},onResizeStop:(e,t,a,i)=>{K(!0),z(null),L((e=>({width:e.width+i.width,height:e.height+i.height}))),m&&_e>=m&&Math.abs(a.offsetWidth-m)<10?o({width:void 0,height:void 0}):o({width:`${a.offsetWidth}px`,height:"auto",aspectRatio:r===n?void 0:String(r)})},resizeRatio:"center"===_?2:1})}if(!g&&!e)return(0,it.jsxs)(it.Fragment,{children:[Fe,P?.bindings?Ee:Te]});const Xe=()=>{ee("postType",We,Ze,{featured_media:x}),X((0,pt.__)("Post featured image updated."),{type:"snackbar"})},et=(0,it.jsx)(ct.BlockSettingsMenuControls,{children:({selectedClientIds:e})=>1===e.length&&!Qe&&Ze&&x&&u===e[0]&&(0,it.jsx)(mt.MenuItem,{onClick:Xe,children:(0,pt.__)("Set as featured image")})});return(0,it.jsxs)(it.Fragment,{children:[Fe,Ee,et,Ye,Ke,(0,it.jsx)(zo,{attributes:t,setAttributes:o,isSelected:n,insertBlocksAfter:r,label:(0,pt.__)("Image caption text"),showToolbarButton:n&&(pe||me)&&!Le})]})}const nm=(e,t)=>t&&!e&&!(0,ht.isBlobURL)(t);function rm(e,t){return"url"in(e?.sizes?.[t]??{})||"source_url"in(e?.media_details?.sizes?.[t]??{})}var am=function({attributes:e,setAttributes:t,isSelected:o,className:n,insertBlocksAfter:r,onReplace:a,context:i,clientId:s,__unstableParentLayout:l}){const{url:c="",caption:u,id:d,width:p,height:m,sizeSlug:g,aspectRatio:h,scale:_,align:x,metadata:b}=e,[f,y]=(0,gt.useState)(e.blob),v=(0,gt.useRef)(),k=l?.type||l?.default?.type,w=!k||"flex"!==k&&"grid"!==k,[C,j]=function(){const[e,{width:t}]=(0,xt.useResizeObserver)(),o=(0,gt.useRef)();return[(0,it.jsx)("div",{className:"wp-block","aria-hidden":"true",style:{position:"absolute",inset:0,width:"100%",height:0,margin:0},ref:o,children:e}),t]}(),[S,{width:B}]=(0,xt.useResizeObserver)(),T=B&&B<160,N=(0,gt.useRef)();(0,gt.useEffect)((()=>{N.current=u}),[u]);const{__unstableMarkNextChangeAsNotPersistent:P,replaceBlock:I}=(0,lt.useDispatch)(ct.store);(0,gt.useEffect)((()=>{["wide","full"].includes(x)&&(P(),t({width:void 0,height:void 0,aspectRatio:void 0,scale:void 0}))}),[P,x,t]);const{getSettings:D,getBlockRootClientId:M,getBlockName:z,canInsertBlockType:A}=(0,lt.useSelect)(ct.store),L=(0,ct.useBlockEditingMode)(),{createErrorNotice:H}=(0,lt.useDispatch)(bo.store);function R(e){H(e,{type:"snackbar"}),t({src:void 0,id:void 0,url:void 0,blob:void 0})}function V(o){if(Array.isArray(o))return void function(e){const t=v.current?.ownerDocument.defaultView;if(e.every((e=>e instanceof t.File))){const t=e,o=M(s);t.some((e=>!_d(e)))&&H((0,pt.__)("If uploading to a gallery all files need to be image formats"),{id:"gallery-upload-invalid-file",type:"snackbar"});const n=t.filter((e=>_d(e))).map((e=>(0,st.createBlock)("core/image",{blob:(0,ht.createBlobURL)(e)})));if("core/gallery"===z(o))I(s,n);else if(A("core/gallery",o)){const e=(0,st.createBlock)("core/gallery",{},n);I(s,e)}}}(o);if(!o||!o.url)return t({url:void 0,alt:void 0,id:void 0,title:void 0,caption:void 0,blob:void 0}),void y();if((0,ht.isBlobURL)(o.url))return void y(o.url);const{imageDefaultSize:n}=D();let r=md;g&&rm(o,g)?r=g:rm(o,n)&&(r=n);let a,i=((e,t)=>{const o=Object.fromEntries(Object.entries(e??{}).filter((([e])=>["alt","id","link","caption"].includes(e))));return o.url=e?.sizes?.[t]?.url||e?.media_details?.sizes?.[t]?.source_url||e.url,o})(o,r);if("string"==typeof i.caption&&i.caption.includes("\n")&&(i.caption=i.caption.replace(/\n/g,"<br>")),N.current&&!i.caption){const{caption:e,...t}=i;i=t}o.id&&o.id===d||(a={sizeSlug:r});let l,c=e.linkDestination;if(!c)switch(window?.wp?.media?.view?.settings?.defaultProps?.link||id){case"file":case sd:c=sd;break;case"post":case ld:c=ld;break;case cd:c=cd;break;case id:c=id}switch(c){case sd:l=o.url;break;case ld:l=o.link}i.href=l,t({blob:void 0,...i,...a,linkDestination:c}),y()}function F(e){e!==c&&(t({blob:void 0,url:e,id:void 0,sizeSlug:D().imageDefaultSize}),y())}ft({url:f,allowedTypes:dd,onChange:V,onError:R});const E=nm(d,c)?c:void 0,O=!!c&&(0,it.jsx)("img",{alt:(0,pt.__)("Edit image"),title:(0,pt.__)("Edit image"),className:"edit-image-preview",src:c}),G=(0,ct.__experimentalUseBorderProps)(e),$=(0,ct.__experimentalGetShadowClassesAndStyles)(e),U=Dt(n,{"is-transient":!!f,"is-resized":!!p||!!m,[`size-${g}`]:g,"has-custom-border":!!G.className||G.style&&Object.keys(G.style).length>0}),q=(0,ct.useBlockProps)({ref:v,className:U}),{lockUrlControls:W=!1,lockUrlControlsMessage:Z}=(0,lt.useSelect)((e=>{if(!o)return{};const t=(0,st.getBlockBindingsSource)(b?.bindings?.url?.source);return{lockUrlControls:!!b?.bindings?.url&&!t?.canUserEditValue?.({select:e,context:i,args:b?.bindings?.url?.args}),lockUrlControlsMessage:t?.label?(0,pt.sprintf)((0,pt.__)("Connected to %s"),t.label):(0,pt.__)("Connected to dynamic data")}}),[i,o,b?.bindings?.url]);return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsxs)("figure",{...q,children:[(0,it.jsx)(om,{temporaryURL:f,attributes:e,setAttributes:t,isSingleSelected:o,insertBlocksAfter:r,onReplace:a,onSelectImage:V,onSelectURL:F,onUploadError:R,context:i,clientId:s,blockEditingMode:L,parentLayoutType:k,maxContentWidth:j}),(0,it.jsx)(ct.MediaPlaceholder,{icon:(0,it.jsx)(ct.BlockIcon,{icon:td}),onSelect:V,onSelectURL:F,onError:R,placeholder:e=>(0,it.jsxs)(mt.Placeholder,{className:Dt("block-editor-media-placeholder",{[G.className]:!!G.className&&!o}),icon:!T&&(W?Up:td),withIllustration:!o||T,label:!T&&(0,pt.__)("Image"),instructions:!W&&!T&&(0,pt.__)("Drag and drop an image, upload, or choose from your library."),style:{aspectRatio:p&&m||!h?void 0:h,width:m&&h?"100%":p,height:p&&h?"100%":m,objectFit:_,...G.style,...$.style},children:[W&&!T&&Z,!W&&!T&&e,S]}),accept:"image/*",allowedTypes:dd,handleUpload:e=>1===e.length,value:{id:d,src:E},mediaPreview:O,disableMediaButtons:f||c})]}),o&&w&&C]})};const im=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/image","title":"Image","category":"media","usesContext":["allowResize","imageCrop","fixedHeight","postId","postType","queryId"],"description":"Insert an image to make a visual statement.","keywords":["img","photo","picture"],"textdomain":"default","attributes":{"blob":{"type":"string","role":"local"},"url":{"type":"string","source":"attribute","selector":"img","attribute":"src","role":"content"},"alt":{"type":"string","source":"attribute","selector":"img","attribute":"alt","default":"","role":"content"},"caption":{"type":"rich-text","source":"rich-text","selector":"figcaption","role":"content"},"lightbox":{"type":"object","enabled":{"type":"boolean"}},"title":{"type":"string","source":"attribute","selector":"img","attribute":"title","role":"content"},"href":{"type":"string","source":"attribute","selector":"figure > a","attribute":"href","role":"content"},"rel":{"type":"string","source":"attribute","selector":"figure > a","attribute":"rel"},"linkClass":{"type":"string","source":"attribute","selector":"figure > a","attribute":"class"},"id":{"type":"number","role":"content"},"width":{"type":"string"},"height":{"type":"string"},"aspectRatio":{"type":"string"},"scale":{"type":"string"},"sizeSlug":{"type":"string"},"linkDestination":{"type":"string"},"linkTarget":{"type":"string","source":"attribute","selector":"figure > a","attribute":"target"}},"supports":{"interactivity":true,"align":["left","center","right","wide","full"],"anchor":true,"color":{"text":false,"background":false},"filter":{"duotone":true},"spacing":{"margin":true},"__experimentalBorder":{"color":true,"radius":true,"width":true,"__experimentalSkipSerialization":true,"__experimentalDefaultControls":{"color":true,"radius":true,"width":true}},"shadow":{"__experimentalSkipSerialization":true}},"selectors":{"border":".wp-block-image img, .wp-block-image .wp-block-image__crop-area, .wp-block-image .components-placeholder","shadow":".wp-block-image img, .wp-block-image .wp-block-image__crop-area, .wp-block-image .components-placeholder","filter":{"duotone":".wp-block-image img, .wp-block-image .components-placeholder"}},"styles":[{"name":"default","label":"Default","isDefault":true},{"name":"rounded","label":"Rounded"}],"editorStyle":"wp-block-image-editor","style":"wp-block-image"}');function sm(e,t){const{body:o}=document.implementation.createHTMLDocument("");o.innerHTML=e;const{firstElementChild:n}=o;if(n&&"A"===n.nodeName)return n.getAttribute(t)||void 0}const lm={img:{attributes:["src","alt","title"],classes:["alignleft","aligncenter","alignright","alignnone",/^wp-image-\d+$/]}},cm={from:[{type:"raw",isMatch:e=>"FIGURE"===e.nodeName&&!!e.querySelector("img"),schema:({phrasingContentSchema:e})=>({figure:{require:["img"],children:{...lm,a:{attributes:["href","rel","target"],classes:["*"],children:lm},figcaption:{children:e}}}}),transform:e=>{const t=e.className+" "+e.querySelector("img").className,o=/(?:^|\s)align(left|center|right)(?:$|\s)/.exec(t),n=""===e.id?void 0:e.id,r=o?o[1]:void 0,a=/(?:^|\s)wp-image-(\d+)(?:$|\s)/.exec(t),i=a?Number(a[1]):void 0,s=e.querySelector("a"),l=s&&s.href?"custom":void 0,c=s&&s.href?s.href:void 0,u=s&&s.rel?s.rel:void 0,d=s&&s.className?s.className:void 0,p=(0,st.getBlockAttributes)("core/image",e.outerHTML,{align:r,id:i,linkDestination:l,href:c,rel:u,linkClass:d,anchor:n});return(0,ht.isBlobURL)(p.url)&&(p.blob=p.url,delete p.url),(0,st.createBlock)("core/image",p)}},{type:"files",isMatch:e=>e.every((e=>0===e.type.indexOf("image/"))),transform:e=>e.map((e=>(0,st.createBlock)("core/image",{blob:(0,ht.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,{shortcode:t}){const{body:o}=document.implementation.createHTMLDocument("");o.innerHTML=t.content;let n=o.querySelector("img");for(;n&&n.parentNode&&n.parentNode!==o;)n=n.parentNode;return n&&n.parentNode.removeChild(n),o.innerHTML.trim()}},href:{shortcode:(e,{shortcode:t})=>sm(t.content,"href")},rel:{shortcode:(e,{shortcode:t})=>sm(t.content,"rel")},linkClass:{shortcode:(e,{shortcode:t})=>sm(t.content,"class")},id:{type:"number",shortcode:({named:{id:e}})=>{if(e)return parseInt(e.replace("attachment_",""),10)}},align:{type:"string",shortcode:({named:{align:e="alignnone"}})=>e.replace("align","")}}}]};var um=cm;const{name:dm}=im,pm={icon:td,example:{attributes:{sizeSlug:"large",url:"https://s.w.org/images/core/5.3/MtBlanc1.jpg",caption:(0,pt.__)("Mont Blanc appears—still, snowy, and serene.")}},__experimentalLabel(e,{context:t}){const o=e?.metadata?.name;if("list-view"===t&&o)return o;if("accessibility"===t){const{caption:t,alt:o,url:n}=e;return n?o?o+(t?". "+t:""):t||"":(0,pt.__)("Empty")}},getEditWrapperProps:e=>({"data-align":e.align}),transforms:um,edit:am,save:function({attributes:e}){const{url:t,alt:o,caption:n,align:r,href:a,rel:i,linkClass:s,width:l,height:c,aspectRatio:u,scale:d,id:p,linkTarget:m,sizeSlug:g,title:h,metadata:{bindings:_={}}={}}=e,x=i||void 0,b=(0,ct.__experimentalGetBorderClassesAndStyles)(e),f=(0,ct.__experimentalGetShadowClassesAndStyles)(e),y=Dt({alignnone:"none"===r,[`size-${g}`]:g,"is-resized":l||c,"has-custom-border":!!b.className||b.style&&Object.keys(b.style).length>0}),v=Dt(b.className,{[`wp-image-${p}`]:!!p}),k=(0,it.jsx)("img",{src:t,alt:o,className:v||void 0,style:{...b.style,...f.style,aspectRatio:u,objectFit:d,width:l,height:c},title:h}),w=!ct.RichText.isEmpty(n)||_.caption||"core/pattern-overrides"===_?.__default?.source,C=(0,it.jsxs)(it.Fragment,{children:[a?(0,it.jsx)("a",{className:s,href:a,target:m,rel:x,children:k}):k,w&&(0,it.jsx)(ct.RichText.Content,{className:(0,ct.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:n})]});return(0,it.jsx)("figure",{...ct.useBlockProps.save({className:y}),children:C})},deprecated:$p},mm=()=>jt({name:dm,metadata:im,settings:pm});var gm=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.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 hm=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"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":true},"displayDate":{"type":"boolean","default":true},"displayExcerpt":{"type":"boolean","default":true}},"supports":{"align":true,"color":{"gradients":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true,"link":true}},"html":false,"spacing":{"margin":true,"padding":true},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true}},"editorStyle":"wp-block-latest-comments-editor","style":"wp-block-latest-comments"}');const{name:_m}=hm,xm={icon:gm,example:{},edit:function({attributes:e,setAttributes:t}){const{commentsToShow:o,displayAvatar:n,displayDate:r,displayExcerpt:a}=e,i={...e,style:{...e?.style,spacing:void 0}},s=vt();return(0,it.jsxs)("div",{...(0,ct.useBlockProps)(),children:[(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{t({commentsToShow:5,displayAvatar:!0,displayDate:!0,displayExcerpt:!0})},dropdownMenuProps:s,children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!n,label:(0,pt.__)("Display avatar"),onDeselect:()=>t({displayAvatar:!0}),isShownByDefault:!0,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Display avatar"),checked:n,onChange:()=>t({displayAvatar:!n})})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!r,label:(0,pt.__)("Display date"),onDeselect:()=>t({displayDate:!0}),isShownByDefault:!0,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Display date"),checked:r,onChange:()=>t({displayDate:!r})})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!a,label:(0,pt.__)("Display excerpt"),onDeselect:()=>t({displayExcerpt:!0}),isShownByDefault:!0,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Display excerpt"),checked:a,onChange:()=>t({displayExcerpt:!a})})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>5!==o,label:(0,pt.__)("Number of comments"),onDeselect:()=>t({commentsToShow:5}),isShownByDefault:!0,children:(0,it.jsx)(mt.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,pt.__)("Number of comments"),value:o,onChange:e=>t({commentsToShow:e}),min:1,max:100,required:!0})})]})}),(0,it.jsx)(mt.Disabled,{children:(0,it.jsx)(dt(),{block:"core/latest-comments",attributes:i,urlQueryArgs:{_locale:"site"}})})]})}},bm=()=>jt({name:_m,metadata:hm,settings:xm});var fm=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.Path,{d:"M18 5.5H6a.5.5 0 0 0-.5.5v12a.5.5 0 0 0 .5.5h12a.5.5 0 0 0 .5-.5V6a.5.5 0 0 0-.5-.5ZM6 4h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2Zm1 5h1.5v1.5H7V9Zm1.5 4.5H7V15h1.5v-1.5ZM10 9h7v1.5h-7V9Zm7 4.5h-7V15h7v-1.5Z"})});const ym=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"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":false},"displayPostContentRadio":{"type":"string","default":"excerpt"},"excerptLength":{"type":"number","default":55},"displayAuthor":{"type":"boolean","default":false},"displayPostDate":{"type":"boolean","default":false},"postLayout":{"type":"string","default":"list"},"columns":{"type":"number","default":3},"order":{"type":"string","default":"desc"},"orderBy":{"type":"string","default":"date"},"displayFeaturedImage":{"type":"boolean","default":false},"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":false}},"supports":{"align":true,"html":false,"color":{"gradients":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true,"link":true}},"spacing":{"margin":true,"padding":true},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true,"__experimentalDefaultControls":{"radius":true,"color":true,"width":true,"style":true}},"interactivity":{"clientNavigation":true}},"editorStyle":"wp-block-latest-posts-editor","style":"wp-block-latest-posts"}'),{attributes:vm}=ym;var km=[{attributes:{...vm,categories:{type:"string"}},supports:{align:!0,html:!1},migrate:e=>({...e,categories:[{id:Number(e.categories)}]}),isEligible:({categories:e})=>e&&"string"==typeof e,save:()=>null}],wm=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M19 5.5H5V4h14v1.5ZM19 20H5v-1.5h14V20ZM5 9h14v6H5V9Z"})}),Cm=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M5 5.5h8V4H5v1.5ZM5 20h8v-1.5H5V20ZM19 9H5v6h14V9Z"})}),jm=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M19 5.5H5V4h14v1.5ZM19 20H5v-1.5h14V20ZM7 9h10v6H7V9Z"})}),Sm=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M19 5.5h-8V4h8v1.5ZM19 20h-8v-1.5h8V20ZM5 9h14v6H5V9Z"})}),Bm=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.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"})});const Tm={per_page:-1,_fields:"id,name",context:"view"},Nm={per_page:-1,has_published_posts:["post"],context:"view"},Pm=[{value:"none",icon:wm,label:(0,pt.__)("None")},{value:"left",icon:Cm,label:(0,pt.__)("Left")},{value:"center",icon:jm,label:(0,pt.__)("Center")},{value:"right",icon:Sm,label:(0,pt.__)("Right")}];function Im({attributes:e,setAttributes:t,postCount:o}){const{postsToShow:n,order:r,orderBy:a,categories:i,selectedAuthor:s,displayFeaturedImage:l,displayPostContentRadio:c,displayPostContent:u,displayPostDate:d,displayAuthor:p,postLayout:m,columns:g,excerptLength:h,featuredImageAlign:_,featuredImageSizeSlug:x,featuredImageSizeWidth:b,featuredImageSizeHeight:f,addLinkToFeaturedImage:y}=e,{imageSizes:v,defaultImageWidth:k,defaultImageHeight:w,categoriesList:C,authorList:j}=(0,lt.useSelect)((e=>{const{getEntityRecords:t,getUsers:o}=e(_t.store),n=e(ct.store).getSettings();return{defaultImageWidth:n.imageDimensions?.[x]?.width??0,defaultImageHeight:n.imageDimensions?.[x]?.height??0,imageSizes:n.imageSizes,categoriesList:t("taxonomy","category",Tm),authorList:o(Nm)}}),[x]),S=vt(),B=v.filter((({slug:e})=>"full"!==e)).map((({name:e,slug:t})=>({value:t,label:e}))),T=C?.reduce(((e,t)=>({...e,[t.name]:t})),{})??{};return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Post content"),resetAll:()=>t({displayPostContent:!1,displayPostContentRadio:"excerpt",excerptLength:55}),dropdownMenuProps:S,children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!!u,label:(0,pt.__)("Display post content"),onDeselect:()=>t({displayPostContent:!1}),isShownByDefault:!0,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Display post content"),checked:u,onChange:e=>t({displayPostContent:e})})}),u&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>"excerpt"!==c,label:(0,pt.__)("Content length"),onDeselect:()=>t({displayPostContentRadio:"excerpt"}),isShownByDefault:!0,children:(0,it.jsx)(mt.RadioControl,{label:(0,pt.__)("Content length"),selected:c,options:[{label:(0,pt.__)("Excerpt"),value:"excerpt"},{label:(0,pt.__)("Full post"),value:"full_post"}],onChange:e=>t({displayPostContentRadio:e})})}),u&&"excerpt"===c&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>55!==h,label:(0,pt.__)("Max number of words"),onDeselect:()=>t({excerptLength:55}),isShownByDefault:!0,children:(0,it.jsx)(mt.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,pt.__)("Max number of words"),value:h,onChange:e=>t({excerptLength:e}),min:10,max:100})})]}),(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Post meta"),resetAll:()=>t({displayAuthor:!1,displayPostDate:!1}),dropdownMenuProps:S,children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!!p,label:(0,pt.__)("Display author name"),onDeselect:()=>t({displayAuthor:!1}),isShownByDefault:!0,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Display author name"),checked:p,onChange:e=>t({displayAuthor:e})})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!!d,label:(0,pt.__)("Display post date"),onDeselect:()=>t({displayPostDate:!1}),isShownByDefault:!0,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Display post date"),checked:d,onChange:e=>t({displayPostDate:e})})})]}),(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Featured image"),resetAll:()=>t({displayFeaturedImage:!1,featuredImageAlign:void 0,featuredImageSizeSlug:"thumbnail",featuredImageSizeWidth:null,featuredImageSizeHeight:null,addLinkToFeaturedImage:!1}),dropdownMenuProps:S,children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!!l,label:(0,pt.__)("Display featured image"),onDeselect:()=>t({displayFeaturedImage:!1}),isShownByDefault:!0,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Display featured image"),checked:l,onChange:e=>t({displayFeaturedImage:e})})}),l&&(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>"thumbnail"!==x||null!==b||null!==f,label:(0,pt.__)("Image size"),onDeselect:()=>t({featuredImageSizeSlug:"thumbnail",featuredImageSizeWidth:null,featuredImageSizeHeight:null}),isShownByDefault:!0,children:(0,it.jsx)(ct.__experimentalImageSizeControl,{onChange:e=>{const o={};e.hasOwnProperty("width")&&(o.featuredImageSizeWidth=e.width),e.hasOwnProperty("height")&&(o.featuredImageSizeHeight=e.height),t(o)},slug:x,width:b,height:f,imageWidth:k,imageHeight:w,imageSizeOptions:B,imageSizeHelp:(0,pt.__)("Select the size of the source image."),onChangeImage:e=>t({featuredImageSizeSlug:e,featuredImageSizeWidth:void 0,featuredImageSizeHeight:void 0})})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!!_,label:(0,pt.__)("Image alignment"),onDeselect:()=>t({featuredImageAlign:void 0}),isShownByDefault:!0,children:(0,it.jsx)(mt.__experimentalToggleGroupControl,{className:"editor-latest-posts-image-alignment-control",__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,pt.__)("Image alignment"),value:_||"none",onChange:e=>t({featuredImageAlign:"none"!==e?e:void 0}),children:Pm.map((({value:e,icon:t,label:o})=>(0,it.jsx)(mt.__experimentalToggleGroupControlOptionIcon,{value:e,icon:t,label:o},e)))})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!!y,label:(0,pt.__)("Add link to featured image"),onDeselect:()=>t({addLinkToFeaturedImage:!1}),isShownByDefault:!0,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Add link to featured image"),checked:y,onChange:e=>t({addLinkToFeaturedImage:e})})})]})]}),(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Sorting and filtering"),resetAll:()=>t({order:"desc",orderBy:"date",postsToShow:5,categories:void 0,selectedAuthor:void 0,columns:3}),dropdownMenuProps:S,children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>"desc"!==r||"date"!==a||5!==n||i?.length>0||!!s,label:(0,pt.__)("Sort and filter"),onDeselect:()=>t({order:"desc",orderBy:"date",postsToShow:5,categories:void 0,selectedAuthor:void 0}),isShownByDefault:!0,children:(0,it.jsx)(mt.QueryControls,{order:r,orderBy:a,numberOfItems:n,onOrderChange:e=>t({order:e}),onOrderByChange:e=>t({orderBy:e}),onNumberOfItemsChange:e=>t({postsToShow:e}),categorySuggestions:T,onCategoryChange:e=>{if(e.some((e=>"string"==typeof e&&!T[e])))return;const o=e.map((e=>"string"==typeof e?T[e]:e));if(o.includes(null))return!1;t({categories:o})},selectedCategories:i,onAuthorChange:e=>t({selectedAuthor:""!==e?Number(e):void 0}),authorList:j??[],selectedAuthorId:s})}),"grid"===m&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>3!==g,label:(0,pt.__)("Columns"),onDeselect:()=>t({columns:3}),isShownByDefault:!0,children:(0,it.jsx)(mt.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,pt.__)("Columns"),value:g,onChange:e=>t({columns:e}),min:2,max:o?Math.min(6,o):6,required:!0})})]})]})}const{name:Dm}=ym,Mm={icon:fm,example:{},edit:function e({attributes:t,setAttributes:o}){const n=(0,xt.useInstanceId)(e),{postsToShow:r,order:a,orderBy:i,categories:s,selectedAuthor:l,displayFeaturedImage:c,displayPostContentRadio:u,displayPostContent:d,displayPostDate:p,displayAuthor:m,postLayout:g,columns:h,excerptLength:_,featuredImageAlign:x,featuredImageSizeSlug:b,featuredImageSizeWidth:f,featuredImageSizeHeight:y,addLinkToFeaturedImage:v}=t,{latestPosts:k}=(0,lt.useSelect)((e=>{const{getEntityRecords:t}=e(_t.store),o=s&&s.length>0?s.map((e=>e.id)):[];return{latestPosts:t("postType","post",Object.fromEntries(Object.entries({categories:o,author:l,order:a,orderby:i,per_page:r,_embed:"author,wp:featuredmedia",ignore_sticky:!0}).filter((([,e])=>void 0!==e))))}}),[r,a,i,s,l]),{createWarningNotice:w}=(0,lt.useDispatch)(bo.store),C=e=>{e.preventDefault(),w((0,pt.__)("Links are disabled in the editor."),{id:`block-library/core/latest-posts/redirection-prevented/${n}`,type:"snackbar"})},j=!!k?.length,S=(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsx)(Im,{attributes:t,setAttributes:o,postCount:k?.length??0})}),B=(0,ct.useBlockProps)({className:Dt({"wp-block-latest-posts__list":!0,"is-grid":"grid"===g,"has-dates":p,"has-author":m,[`columns-${h}`]:"grid"===g})});if(!j)return(0,it.jsxs)("div",{...B,children:[S,(0,it.jsx)(mt.Placeholder,{icon:Wn,label:(0,pt.__)("Latest Posts"),children:Array.isArray(k)?(0,pt.__)("No posts found."):(0,it.jsx)(mt.Spinner,{})})]});const T=k.length>r?k.slice(0,r):k,N=[{icon:Bm,title:(0,pt._x)("List view","Latest posts block display setting"),onClick:()=>o({postLayout:"list"}),isActive:"list"===g},{icon:qd,title:(0,pt._x)("Grid view","Latest posts block display setting"),onClick:()=>o({postLayout:"grid"}),isActive:"grid"===g}],P=(0,ja.getSettings)().formats.date;return(0,it.jsxs)(it.Fragment,{children:[S,(0,it.jsx)(ct.BlockControls,{children:(0,it.jsx)(mt.ToolbarGroup,{controls:N})}),(0,it.jsx)("ul",{...B,children:T.map((e=>{const t=e.title.rendered.trim();let o=e.excerpt.rendered;const n=function(e){return e._embedded?.author?.[0]}(e),r=document.createElement("div");r.innerHTML=o,o=r.textContent||r.innerText||"";const{url:a,alt:i}=function(e,t){const o=e._embedded?.["wp:featuredmedia"]?.[0];return{url:o?.media_details?.sizes?.[t]?.source_url??o?.source_url,alt:o?.alt_text}}(e,b),s=Dt({"wp-block-latest-posts__featured-image":!0,[`align${x}`]:!!x}),l=c&&a,g=l&&(0,it.jsx)("img",{src:a,alt:i,style:{maxWidth:f,maxHeight:y}}),h=_<o.trim().split(" ").length&&""===e.excerpt.raw?(0,it.jsxs)(it.Fragment,{children:[o.trim().split(" ",_).join(" "),(0,gt.createInterpolateElement)((0,pt.sprintf)((0,pt.__)("… <a>Read more<span>: %1$s</span></a>"),t||(0,pt.__)("(no title)")),{a:(0,it.jsx)("a",{className:"wp-block-latest-posts__read-more",href:e.link,rel:"noopener noreferrer",onClick:C}),span:(0,it.jsx)("span",{className:"screen-reader-text"})})]}):o;return(0,it.jsxs)("li",{children:[l&&(0,it.jsx)("div",{className:s,children:v?(0,it.jsx)("a",{href:e.link,onClick:C,children:g}):g}),(0,it.jsx)("a",{className:"wp-block-latest-posts__post-title",href:e.link,dangerouslySetInnerHTML:t?{__html:t}:void 0,onClick:C,children:t?null:(0,pt.__)("(no title)")}),m&&n&&(0,it.jsx)("div",{className:"wp-block-latest-posts__post-author",children:(0,pt.sprintf)((0,pt.__)("by %s"),n.name)}),p&&e.date_gmt&&(0,it.jsx)("time",{dateTime:(0,ja.format)("c",e.date_gmt),className:"wp-block-latest-posts__post-date",children:(0,ja.dateI18n)(P,e.date_gmt)}),d&&"excerpt"===u&&(0,it.jsx)("div",{className:"wp-block-latest-posts__post-excerpt",children:h}),d&&"full_post"===u&&(0,it.jsx)("div",{className:"wp-block-latest-posts__post-full-content",dangerouslySetInnerHTML:{__html:e.content.raw.trim()}})]},e.id)}))})]})},deprecated:km},zm=()=>jt({name:Dm,metadata:ym,settings:Mm}),Am={A:"upper-alpha",a:"lower-alpha",I:"upper-roman",i:"lower-roman"};function Lm(e){const{values:t,start:o,reversed:n,ordered:r,type:a,...i}=e,s=document.createElement(r?"ol":"ul");s.innerHTML=t,o&&s.setAttribute("start",o),n&&s.setAttribute("reversed",!0),a&&s.setAttribute("type",a);const[l]=(0,st.rawHandler)({HTML:s.outerHTML});return[{...i,...l.attributes},l.innerBlocks]}const Hm={attributes:{ordered:{type:"boolean",default:!1,role:"content"},values:{type:"string",source:"html",selector:"ol,ul",multiline:"li",__unstableMultilineWrapperTags:["ol","ul"],default:"",role:"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({attributes:e}){const{ordered:t,values:o,type:n,reversed:r,start:a}=e,i=t?"ol":"ul";return(0,it.jsx)(i,{...ct.useBlockProps.save({type:n,reversed:r,start:a}),children:(0,it.jsx)(ct.RichText.Content,{value:o,multiline:"li"})})},migrate:Yo,isEligible:({style:e})=>e?.typography?.fontFamily},Rm={attributes:{ordered:{type:"boolean",default:!1,role:"content"},values:{type:"string",source:"html",selector:"ol,ul",multiline:"li",__unstableMultilineWrapperTags:["ol","ul"],default:"",role:"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,__experimentalDefaultControls:{background:!0,text:!0}},__unstablePasteTextInline:!0,__experimentalSelector:"ol,ul",__experimentalSlashInserter:!0},save({attributes:e}){const{ordered:t,values:o,type:n,reversed:r,start:a}=e,i=t?"ol":"ul";return(0,it.jsx)(i,{...ct.useBlockProps.save({type:n,reversed:r,start:a}),children:(0,it.jsx)(ct.RichText.Content,{value:o,multiline:"li"})})},migrate:Lm},Vm={attributes:{ordered:{type:"boolean",default:!1,role:"content"},values:{type:"string",source:"html",selector:"ol,ul",multiline:"li",__unstableMultilineWrapperTags:["ol","ul"],default:"",role:"content"},type:{type:"string"},start:{type:"number"},reversed:{type:"boolean"},placeholder:{type:"string"}},supports:{anchor:!0,className:!1,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},__unstablePasteTextInline:!0,__experimentalSelector:"ol,ul",__experimentalSlashInserter:!0},isEligible:({type:e})=>!!e,save({attributes:e}){const{ordered:t,type:o,reversed:n,start:r}=e,a=t?"ol":"ul";return(0,it.jsx)(a,{...ct.useBlockProps.save({type:o,reversed:n,start:r}),children:(0,it.jsx)(ct.InnerBlocks.Content,{})})},migrate:function(e){const{type:t}=e;return t&&Am[t]?{...e,type:Am[t]}:e}},Fm={attributes:{ordered:{type:"boolean",default:!1,role:"content"},values:{type:"string",source:"html",selector:"ol,ul",multiline:"li",__unstableMultilineWrapperTags:["ol","ul"],default:"",role:"content"},type:{type:"string"},start:{type:"number"},reversed:{type:"boolean"},placeholder:{type:"string"}},supports:{anchor:!0,className:!1,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},__unstablePasteTextInline:!0,__experimentalSelector:"ol,ul",__experimentalOnMerge:"true",__experimentalSlashInserter:!0},save({attributes:e}){const{ordered:t,type:o,reversed:n,start:r}=e,a=t?"ol":"ul";return(0,it.jsx)(a,{...ct.useBlockProps.save({reversed:n,start:r,style:{listStyleType:t&&"decimal"!==o?o:void 0}}),children:(0,it.jsx)(ct.InnerBlocks.Content,{})})}};var Em=[Fm,Vm,Rm,Hm],Om=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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"})}),Gm=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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"})}),$m=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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"})}),Um=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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"})}),qm=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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"})}),Wm=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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"})});const Zm=window.wp.deprecated;var Jm=r.n(Zm);const Qm=[{label:(0,pt.__)("Numbers"),value:"decimal"},{label:(0,pt.__)("Uppercase letters"),value:"upper-alpha"},{label:(0,pt.__)("Lowercase letters"),value:"lower-alpha"},{label:(0,pt.__)("Uppercase Roman numerals"),value:"upper-roman"},{label:(0,pt.__)("Lowercase Roman numerals"),value:"lower-roman"}];var Km=({setAttributes:e,reversed:t,start:o,type:n})=>{const r=vt();return(0,it.jsx)(ct.InspectorControls,{children:gt.Platform.isNative?(0,it.jsxs)(mt.PanelBody,{title:(0,pt.__)("Settings"),children:[(0,it.jsx)(mt.SelectControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("List style"),options:Qm,value:n,onChange:t=>e({type:t})}),(0,it.jsx)(mt.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("Start value"),type:"number",onChange:t=>{const o=parseInt(t,10);e({start:isNaN(o)?void 0:o})},value:Number.isInteger(o)?o.toString(10):"",step:"1"}),(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Reverse order"),checked:t||!1,onChange:t=>{e({reversed:t||void 0})}})]}):(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{e({type:void 0,start:void 0,reversed:void 0})},dropdownMenuProps:r,children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("List style"),isShownByDefault:!0,hasValue:()=>!!n,onDeselect:()=>e({type:void 0}),children:(0,it.jsx)(mt.SelectControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("List style"),options:Qm,value:n||"decimal",onChange:t=>e({type:t})})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Start value"),isShownByDefault:!0,hasValue:()=>!!o,onDeselect:()=>e({start:void 0}),children:(0,it.jsx)(mt.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("Start value"),type:"number",onChange:t=>{const o=parseInt(t,10);e({start:isNaN(o)?void 0:o})},value:Number.isInteger(o)?o.toString(10):"",step:"1"})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Reverse order"),isShownByDefault:!0,hasValue:()=>!!t,onDeselect:()=>e({reversed:void 0}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Reverse order"),checked:t||!1,onChange:t=>{e({reversed:t||void 0})}})})]})})};var Ym=(0,gt.forwardRef)((function(e,t){const{ordered:o,...n}=e,r=o?"ol":"ul";return(0,it.jsx)(r,{ref:t,...n})}));const Xm={name:"core/list-item"},eg=[["core/list-item"]];function tg({clientId:e}){const t=function(e){const{replaceBlocks:t,selectionChange:o}=(0,lt.useDispatch)(ct.store),{getBlockRootClientId:n,getBlockAttributes:r,getBlock:a}=(0,lt.useSelect)(ct.store);return(0,gt.useCallback)((()=>{const i=n(e),s=r(i),l=(0,st.createBlock)("core/list-item",s),{innerBlocks:c}=a(e);t([i],[l,...c]),o(c[c.length-1].clientId)}),[e])}(e),o=(0,lt.useSelect)((t=>{const{getBlockRootClientId:o,getBlockName:n}=t(ct.store);return"core/list-item"===n(o(e))}),[e]);return(0,it.jsx)(it.Fragment,{children:(0,it.jsx)(mt.ToolbarButton,{icon:(0,pt.isRTL)()?Om:Gm,title:(0,pt.__)("Outdent"),description:(0,pt.__)("Outdent list item"),disabled:!o,onClick:t})})}const og=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/list","title":"List","category":"text","allowedBlocks":["core/list-item"],"description":"An organized collection of items displayed in a specific order.","keywords":["bullet list","ordered list","numbered list"],"textdomain":"default","attributes":{"ordered":{"type":"boolean","default":false,"role":"content"},"values":{"type":"string","source":"html","selector":"ol,ul","multiline":"li","default":"","role":"content"},"type":{"type":"string"},"start":{"type":"number"},"reversed":{"type":"boolean"},"placeholder":{"type":"string"}},"supports":{"anchor":true,"html":false,"__experimentalBorder":{"color":true,"radius":true,"style":true,"width":true},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"color":{"gradients":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true}},"spacing":{"margin":true,"padding":true,"__experimentalDefaultControls":{"margin":false,"padding":false}},"__unstablePasteTextInline":true,"__experimentalOnMerge":true,"__experimentalSlashInserter":true,"interactivity":{"clientNavigation":true}},"selectors":{"border":".wp-block-list:not(.wp-block-list .wp-block-list)"},"editorStyle":"wp-block-list-editor","style":"wp-block-list"}');function ng({phrasingContentSchema:e}){const t={...e,ul:{},ol:{attributes:["type","start","reversed"]}};return["ul","ol"].forEach((e=>{t[e].children={li:{children:t}}})),t}function rg(e){return e.flatMap((({name:e,attributes:t,innerBlocks:o=[]})=>"core/list-item"===e?[t.content,...rg(o)]:rg(o)))}const ag={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph","core/heading"],transform:e=>{let t=[];if(e.length>1)t=e.map((({content:e})=>(0,st.createBlock)("core/list-item",{content:e})));else if(1===e.length){const o=(0,Tn.create)({html:e[0].content});t=(0,Tn.split)(o,"\n").map((e=>(0,st.createBlock)("core/list-item",{content:(0,Tn.toHTMLString)({value:e})})))}return(0,st.createBlock)("core/list",{anchor:e.anchor},t)}},{type:"raw",selector:"ol,ul",schema:e=>({ol:ng(e).ol,ul:ng(e).ul}),transform:function e(t){const o=t.getAttribute("type"),n={ordered:"OL"===t.tagName,anchor:""===t.id?void 0:t.id,start:t.getAttribute("start")?parseInt(t.getAttribute("start"),10):void 0,reversed:!!t.hasAttribute("reversed")||void 0,type:o&&Am[o]?Am[o]:void 0},r=Array.from(t.children).map((t=>{const o=Array.from(t.childNodes).filter((e=>e.nodeType!==e.TEXT_NODE||0!==e.textContent.trim().length));o.reverse();const[n,...r]=o;if(!("UL"===n?.tagName||"OL"===n?.tagName))return(0,st.createBlock)("core/list-item",{content:t.innerHTML});const a=r.map((e=>e.nodeType===e.TEXT_NODE?e.textContent:e.outerHTML));a.reverse();const i={content:a.join("").trim()},s=[e(n)];return(0,st.createBlock)("core/list-item",i,s)}));return(0,st.createBlock)("core/list",n,r)}},...["*","-"].map((e=>({type:"prefix",prefix:e,transform:e=>(0,st.createBlock)("core/list",{},[(0,st.createBlock)("core/list-item",{content:e})])}))),...["1.","1)"].map((e=>({type:"prefix",prefix:e,transform:e=>(0,st.createBlock)("core/list",{ordered:!0},[(0,st.createBlock)("core/list-item",{content:e})])})))],to:[...["core/paragraph","core/heading"].map((e=>({type:"block",blocks:[e],transform:(t,o)=>rg(o).map((t=>(0,st.createBlock)(e,{content:t})))})))]};var ig=ag;const{name:sg}=og,lg={icon:Bm,example:{innerBlocks:[{name:"core/list-item",attributes:{content:(0,pt.__)("Alice.")}},{name:"core/list-item",attributes:{content:(0,pt.__)("The White Rabbit.")}},{name:"core/list-item",attributes:{content:(0,pt.__)("The Cheshire Cat.")}},{name:"core/list-item",attributes:{content:(0,pt.__)("The Mad Hatter.")}},{name:"core/list-item",attributes:{content:(0,pt.__)("The Queen of Hearts.")}}]},transforms:ig,edit:function({attributes:e,setAttributes:t,clientId:o,style:n}){const{ordered:r,type:a,reversed:i,start:s}=e,l=(0,ct.useBlockProps)({style:{...gt.Platform.isNative&&n,listStyleType:r&&"decimal"!==a?a:void 0}}),c=(0,ct.useInnerBlocksProps)(l,{defaultBlock:Xm,directInsert:!0,template:eg,templateLock:!1,templateInsertUpdatesSelection:!0,...gt.Platform.isNative&&{marginVertical:8,marginHorizontal:8,renderAppender:!1},__experimentalCaptureToolbars:!0});!function(e,t){const o=(0,lt.useRegistry)(),{updateBlockAttributes:n,replaceInnerBlocks:r}=(0,lt.useDispatch)(ct.store);(0,gt.useEffect)((()=>{if(!e.values)return;const[a,i]=Lm(e);Jm()("Value attribute on the list block",{since:"6.0",version:"6.5",alternative:"inner blocks"}),o.batch((()=>{n(t,a),r(t,i)}))}),[e.values])}(e,o);const u=(0,it.jsxs)(ct.BlockControls,{group:"block",children:[(0,it.jsx)(mt.ToolbarButton,{icon:(0,pt.isRTL)()?$m:Um,title:(0,pt.__)("Unordered"),description:(0,pt.__)("Convert to unordered list"),isActive:!1===r,onClick:()=>{t({ordered:!1})}}),(0,it.jsx)(mt.ToolbarButton,{icon:(0,pt.isRTL)()?qm:Wm,title:(0,pt.__)("Ordered"),description:(0,pt.__)("Convert to ordered list"),isActive:!0===r,onClick:()=>{t({ordered:!0})}}),(0,it.jsx)(tg,{clientId:o})]});return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(Ym,{ordered:r,reversed:i,start:s,...c}),u,r&&(0,it.jsx)(Km,{setAttributes:t,reversed:i,start:s,type:a})]})},save:function({attributes:e}){const{ordered:t,type:o,reversed:n,start:r}=e,a=t?"ol":"ul";return(0,it.jsx)(a,{...ct.useBlockProps.save({reversed:n,start:r,style:{listStyleType:t&&"decimal"!==o?o:void 0}}),children:(0,it.jsx)(ct.InnerBlocks.Content,{})})},deprecated:Em},cg=()=>jt({name:sg,metadata:og,settings:lg});var ug=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M11.2 6.8c-.7 0-1.4.5-1.6 1.1l-2.8 7.5-1.2-1.8c-.1-.2-.4-.3-.6-.3H3v1.5h1.6l1.2 1.8c.6.9 1.9.7 2.2-.3l2.9-7.9s.1-.2.2-.2h7.8V6.7h-7.8Zm5.3 3.4-1.9 1.9-1.9-1.9-1.1 1.1 1.9 1.9-1.9 1.9 1.1 1.1 1.9-1.9 1.9 1.9 1.1-1.1-1.9-1.9 1.9-1.9-1.1-1.1Z"})});const{Badge:dg}=jo(mt.privateApis);const pg=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/math","title":"Math","category":"text","description":"Display mathematical notation using LaTeX.","keywords":["equation","formula","latex","mathematics"],"textdomain":"default","supports":{"html":false},"attributes":{"latex":{"type":"string","role":"content"},"mathML":{"type":"string","source":"html","selector":"math"}}}');const mg={attributes:{latex:{type:"string",role:"content"},mathML:{type:"string",source:"html",selector:"math"}},save({attributes:e}){const{latex:t,mathML:o}=e;return t?(0,it.jsx)("math",{...ct.useBlockProps.save(),display:"block",dangerouslySetInnerHTML:{__html:o}}):null}};var gg=[mg];const{name:hg}=pg,_g={icon:ug,example:{attributes:{latex:"x = \\frac{-b \\pm \\sqrt{b^2-4ac}}{2a}",mathML:'<semantics><mrow><mi>x</mi><mo>=</mo><mfrac><mrow><mo lspace="0em" rspace="0em">−</mo><mi>b</mi><mo>±</mo><msqrt><mrow><msup><mi>b</mi><mn>2</mn></msup><mo>−</mo><mn>4</mn><mi>a</mi><mi>c</mi></mrow></msqrt></mrow><mrow><mn>2</mn><mi>a</mi></mrow></mfrac></mrow><annotation encoding="application/x-tex">x = \\frac{-b \\pm \\sqrt{b^2-4ac}}{2a}</annotation></semantics>'},viewportWidth:300},edit:function({attributes:e,setAttributes:t,isSelected:o}){const{latex:n,mathML:a}=e,[i,s]=(0,gt.useState)(),[l,c]=(0,gt.useState)(null),[u,d]=(0,gt.useState)(),p=(0,gt.useRef)(n),{__unstableMarkNextChangeAsNotPersistent:m}=(0,lt.useDispatch)(ct.store);(0,gt.useEffect)((()=>{Promise.resolve().then(r.t.bind(r,3533,23)).then((e=>{d((()=>e.default)),p.current&&(m(),t({mathML:e.default(p.current,{displayMode:!0})}))}))}),[p,t,m]);const g=(0,ct.useBlockProps)({ref:s,position:"relative"});return(0,it.jsxs)("div",{...g,children:[a?(0,it.jsx)("math",{display:"block",dangerouslySetInnerHTML:{__html:a}}):"​",o&&(0,it.jsx)(mt.Popover,{placement:"bottom-start",offset:8,anchor:i,focusOnMount:"firstContentElement",children:(0,it.jsx)("div",{style:{padding:"4px",minWidth:"300px"},children:(0,it.jsxs)(mt.__experimentalVStack,{spacing:1,children:[(0,it.jsx)(mt.TextareaControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,pt.__)("LaTeX math syntax"),hideLabelFromVision:!0,value:n,className:"wp-block-math__textarea-control",onChange:e=>{if(!u)return void t({latex:e});let o="";try{o=u(e,{displayMode:!0}),c(null)}catch(e){c(e.message)}t({mathML:o,latex:e})},placeholder:(0,pt.__)("e.g., x^2, \\frac{a}{b}")}),l&&(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(dg,{intent:"error",className:"wp-block-math__error",children:l}),(0,it.jsx)("style",{children:".wp-block-math__error .components-badge__content{white-space:normal}"})]})]})})})]})},save:function({attributes:e}){const{latex:t,mathML:o}=e;return t?(0,it.jsx)("div",{...ct.useBlockProps.save(),children:(0,it.jsx)("math",{display:"block",dangerouslySetInnerHTML:{__html:o}})}):null},deprecated:gg},xg=()=>jt({name:hg,metadata:pg,settings:_g});var bg=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M12 11v1.5h8V11h-8zm-6-1c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"})});const fg=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/list-item","title":"List Item","category":"text","parent":["core/list"],"allowedBlocks":["core/list"],"description":"An individual item within a list.","textdomain":"default","attributes":{"placeholder":{"type":"string"},"content":{"type":"rich-text","source":"rich-text","selector":"li","role":"content"}},"supports":{"anchor":true,"className":false,"splitting":true,"__experimentalBorder":{"color":true,"radius":true,"style":true,"width":true},"color":{"gradients":true,"link":true,"background":true,"__experimentalDefaultControls":{"text":true}},"spacing":{"margin":true,"padding":true,"__experimentalDefaultControls":{"margin":false,"padding":false}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true}},"selectors":{"root":".wp-block-list > li","border":".wp-block-list:not(.wp-block-list .wp-block-list) > li"}}');var yg=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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"})}),vg=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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"})});function kg(e){const{replaceBlocks:t,selectionChange:o,multiSelect:n}=(0,lt.useDispatch)(ct.store),{getBlock:r,getPreviousBlockClientId:a,getSelectionStart:i,getSelectionEnd:s,hasMultiSelection:l,getMultiSelectedBlockClientIds:c}=(0,lt.useSelect)(ct.store);return(0,gt.useCallback)((()=>{const u=l(),d=u?c():[e],p=d.map((e=>(0,st.cloneBlock)(r(e)))),m=a(e),g=(0,st.cloneBlock)(r(m));g.innerBlocks?.length||(g.innerBlocks=[(0,st.createBlock)("core/list")]),g.innerBlocks[g.innerBlocks.length-1].innerBlocks.push(...p);const h=i(),_=s();return t([m,...d],[g]),u?n(p[0].clientId,p[p.length-1].clientId):o(p[0].clientId,_.attributeKey,_.clientId===h.clientId?h.offset:_.offset,_.offset),!0}),[e])}function wg(){const e=(0,lt.useRegistry)(),{moveBlocksToPosition:t,removeBlock:o,insertBlock:n,updateBlockListSettings:r}=(0,lt.useDispatch)(ct.store),{getBlockRootClientId:a,getBlockName:i,getBlockOrder:s,getBlockIndex:l,getSelectedBlockClientIds:c,getBlock:u,getBlockListSettings:d}=(0,lt.useSelect)(ct.store);return(0,gt.useCallback)(((p=c())=>{if(Array.isArray(p)||(p=[p]),!p.length)return;const m=p[0];if("core/list-item"!==i(m))return;const g=function(e){const t=a(e),o=a(t);if(o&&"core/list-item"===i(o))return o}(m);if(!g)return;const h=a(m),_=p[p.length-1],x=s(h).slice(l(_)+1);return e.batch((()=>{if(x.length){let e=s(m)[0];if(!e){const t=(0,st.cloneBlock)(u(h),{},[]);e=t.clientId,n(t,0,m,!1),r(e,d(h))}t(x,h,e)}if(t(p,h,a(g),l(g)+1),!s(h).length){o(h,!1)}})),!0}),[])}function Cg(e,t){const o=(0,lt.useRegistry)(),{getPreviousBlockClientId:n,getNextBlockClientId:r,getBlockOrder:a,getBlockRootClientId:i,getBlockName:s}=(0,lt.useSelect)(ct.store),{mergeBlocks:l,moveBlocksToPosition:c}=(0,lt.useDispatch)(ct.store),u=wg();function d(e){const t=a(e);return t.length?d(t[t.length-1]):e}function p(e){const t=i(e),o=i(t);if(o&&"core/list-item"===s(o))return o}function m(e){const t=r(e);if(t)return t;const o=p(e);return o?m(o):void 0}function g(e){const t=a(e);return t.length?a(t[0])[0]:m(e)}return r=>{function s(e,t){o.batch((()=>{const[o]=a(t);o&&(n(t)!==e||a(e).length?c(a(o),o,i(e)):c([o],t,e)),l(e,t)}))}if(r){const o=g(e);if(!o)return void t(r);p(o)?u(o):s(e,o)}else{const o=n(e);if(p(e))u(e);else if(o){s(d(o),e)}else t(r)}}}function jg({clientId:e}){const t=kg(e),o=wg(),{canIndent:n,canOutdent:r}=(0,lt.useSelect)((t=>{const{getBlockIndex:o,getBlockRootClientId:n,getBlockName:r}=t(ct.store);return{canIndent:o(e)>0,canOutdent:"core/list-item"===r(n(n(e)))}}),[e]);return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(mt.ToolbarButton,{icon:(0,pt.isRTL)()?Om:Gm,title:(0,pt.__)("Outdent"),shortcut:mn.displayShortcut.shift("Tab"),description:(0,pt.__)("Outdent list item"),disabled:!r,onClick:()=>o()}),(0,it.jsx)(mt.ToolbarButton,{icon:(0,pt.isRTL)()?yg:vg,title:(0,pt.__)("Indent"),shortcut:"Tab",description:(0,pt.__)("Indent list item"),disabled:!n,onClick:()=>t()})]})}const Sg={to:[{type:"block",blocks:["core/paragraph"],transform:(e,t=[])=>[(0,st.createBlock)("core/paragraph",e),...t.map((e=>(0,st.cloneBlock)(e)))]}]};var Bg=Sg;const{name:Tg}=fg,Ng={icon:bg,edit:function({attributes:e,setAttributes:t,clientId:o,mergeBlocks:n}){const{placeholder:r,content:a}=e,i=(0,ct.useBlockProps)(),s=(0,ct.useInnerBlocksProps)(i,{renderAppender:!1,__unstableDisableDropZone:!0}),l=function(e){const{replaceBlocks:t,selectionChange:o}=(0,lt.useDispatch)(ct.store),{getBlock:n,getBlockRootClientId:r,getBlockIndex:a,getBlockName:i}=(0,lt.useSelect)(ct.store),s=(0,gt.useRef)(e);s.current=e;const l=wg();return(0,xt.useRefEffect)((e=>{function c(e){if(e.defaultPrevented||e.keyCode!==mn.ENTER)return;const{content:c,clientId:u}=s.current;if(c.length)return;if(e.preventDefault(),"core/list-item"===i(r(r(s.current.clientId))))return void l();const d=n(r(u)),p=a(u),m=(0,st.cloneBlock)({...d,innerBlocks:d.innerBlocks.slice(0,p)}),g=(0,st.createBlock)((0,st.getDefaultBlockName)()),h=[...d.innerBlocks[p].innerBlocks[0]?.innerBlocks||[],...d.innerBlocks.slice(p+1)],_=h.length?[(0,st.cloneBlock)({...d,innerBlocks:h})]:[];t(d.clientId,[m,g,..._],1),o(g.clientId)}return e.addEventListener("keydown",c),()=>{e.removeEventListener("keydown",c)}}),[])}({content:a,clientId:o}),c=function(e){const{getSelectionStart:t,getSelectionEnd:o,getBlockIndex:n}=(0,lt.useSelect)(ct.store),r=kg(e),a=wg();return(0,xt.useRefEffect)((i=>{function s(i){const{keyCode:s,shiftKey:l,altKey:c,metaKey:u,ctrlKey:d}=i;if(i.defaultPrevented||s!==mn.SPACE&&s!==mn.TAB||c||u||d)return;const p=t(),m=o();0===p.offset&&0===m.offset&&(l?s===mn.TAB&&a()&&i.preventDefault():0!==n(e)&&r()&&i.preventDefault())}return i.addEventListener("keydown",s),()=>{i.removeEventListener("keydown",s)}}),[e,r])}(o),u=Cg(o,n);return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsxs)("li",{...s,children:[(0,it.jsx)(ct.RichText,{ref:(0,xt.useMergeRefs)([l,c]),identifier:"content",tagName:"div",onChange:e=>t({content:e}),value:a,"aria-label":(0,pt.__)("List text"),placeholder:r||(0,pt.__)("List"),onMerge:u}),s.children]}),(0,it.jsx)(ct.BlockControls,{group:"block",children:(0,it.jsx)(jg,{clientId:o})})]})},save:function({attributes:e}){return(0,it.jsxs)("li",{...ct.useBlockProps.save(),children:[(0,it.jsx)(ct.RichText.Content,{value:e.content}),(0,it.jsx)(ct.InnerBlocks.Content,{})]})},merge:(e,t)=>({...e,content:e.content+t.content}),transforms:Bg,[jo(ct.privateApis).requiresWrapperOnCopy]:!0},Pg=()=>jt({name:Tg,metadata:fg,settings:Ng});var Ig=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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 Dg=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/loginout","title":"Login/out","category":"theme","description":"Show login & logout links.","keywords":["login","logout","form"],"textdomain":"default","attributes":{"displayLoginAsForm":{"type":"boolean","default":false},"redirectToCurrent":{"type":"boolean","default":true}},"example":{"viewportWidth":350},"supports":{"className":true,"color":{"background":true,"text":false,"gradients":true,"link":true},"spacing":{"margin":true,"padding":true,"__experimentalDefaultControls":{"margin":false,"padding":false}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true},"interactivity":{"clientNavigation":true}},"style":"wp-block-loginout"}'),{name:Mg}=Dg,zg={icon:Ig,edit:function({attributes:e,setAttributes:t}){const{displayLoginAsForm:o,redirectToCurrent:n}=e,r=vt();return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{t({displayLoginAsForm:!1,redirectToCurrent:!0})},dropdownMenuProps:r,children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Display login as form"),isShownByDefault:!0,hasValue:()=>o,onDeselect:()=>t({displayLoginAsForm:!1}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Display login as form"),checked:o,onChange:()=>t({displayLoginAsForm:!o})})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Redirect to current URL"),isShownByDefault:!0,hasValue:()=>!n,onDeselect:()=>t({redirectToCurrent:!0}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Redirect to current URL"),checked:n,onChange:()=>t({redirectToCurrent:!n})})})]})}),(0,it.jsx)("div",{...(0,ct.useBlockProps)({className:"logged-in"}),children:(0,it.jsx)("a",{href:"#login-pseudo-link",children:(0,pt.__)("Log out")})})]})}},Ag=()=>jt({name:Mg,metadata:Dg,settings:zg});var Lg=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M3 6v11.5h8V6H3Zm11 3h7V7.5h-7V9Zm7 3.5h-7V11h7v1.5ZM14 16h7v-1.5h-7V16Z"})});const Hg="full",Rg=[["core/paragraph",{placeholder:(0,pt._x)("Content…","content placeholder")}]],Vg=(e,t)=>e?{backgroundImage:`url(${e})`,backgroundPosition:t?`${100*t.x}% ${100*t.y}%`:"50% 50%"}:{},Fg=(e,t)=>e?{backgroundImage:`url(${e})`,backgroundPosition:t?`${Math.round(100*t.x)}% ${Math.round(100*t.y)}%`:"50% 50%"}:{},Eg=50,Og=()=>{},Gg=e=>{if(!e.customBackgroundColor)return e;const t={color:{background:e.customBackgroundColor}},{customBackgroundColor:o,...n}=e;return{...n,style:t}},$g=e=>e.align?e:{...e,align:"wide"},Ug={align:{type:"string",default:"wide"},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:!1}},qg={...Ug,isStackedOnMobile:{type:"boolean",default:!0},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"},mediaSizeSlug:{type:"string"},verticalAlignment:{type:"string"},imageFill:{type:"boolean"},focalPoint:{type:"object"}},Wg={...qg,mediaAlt:{type:"string",source:"attribute",selector:"figure img",attribute:"alt",default:"",role:"content"},mediaId:{type:"number",role:"content"},mediaUrl:{type:"string",source:"attribute",selector:"figure video,figure img",attribute:"src",role:"content"},href:{type:"string",source:"attribute",selector:"figure a",attribute:"href",role:"content"},mediaType:{type:"string",role:"content"}},Zg={...Wg,align:{type:"string",default:"none"},useFeaturedImage:{type:"boolean",default:!1}},Jg={anchor:!0,align:["wide","full"],html:!1,color:{gradients:!0,link:!0}},Qg={...Jg,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},Kg={attributes:Zg,supports:{...Qg,__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},color:{gradients:!0,heading:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},interactivity:{clientNavigation:!0}},usesContext:["postId","postType"],save({attributes:e}){const{isStackedOnMobile:t,mediaAlt:o,mediaPosition:n,mediaType:r,mediaUrl:a,mediaWidth:i,mediaId:s,verticalAlignment:l,imageFill:c,focalPoint:u,linkClass:d,href:p,linkTarget:m,rel:g}=e,h=e.mediaSizeSlug||Hg,_=g||void 0,x=Dt({[`wp-image-${s}`]:s&&"image"===r,[`size-${h}`]:s&&"image"===r});let b=a?(0,it.jsx)("img",{src:a,alt:o,className:x||null}):null;p&&(b=(0,it.jsx)("a",{className:d,href:p,target:m,rel:_,children:b}));const f={image:()=>b,video:()=>(0,it.jsx)("video",{controls:!0,src:a})},y=Dt({"has-media-on-the-right":"right"===n,"is-stacked-on-mobile":t,[`is-vertically-aligned-${l}`]:l,"is-image-fill":c}),v=c?Fg(a,u):{};let k;i!==Eg&&(k="right"===n?`auto ${i}%`:`${i}% auto`);const w={gridTemplateColumns:k};return"right"===n?(0,it.jsxs)("div",{...ct.useBlockProps.save({className:y,style:w}),children:[(0,it.jsx)("div",{...ct.useInnerBlocksProps.save({className:"wp-block-media-text__content"})}),(0,it.jsx)("figure",{className:"wp-block-media-text__media",style:v,children:(f[r]||Og)()})]}):(0,it.jsxs)("div",{...ct.useBlockProps.save({className:y,style:w}),children:[(0,it.jsx)("figure",{className:"wp-block-media-text__media",style:v,children:(f[r]||Og)()}),(0,it.jsx)("div",{...ct.useInnerBlocksProps.save({className:"wp-block-media-text__content"})})]})}},Yg={attributes:Wg,supports:Qg,save({attributes:e}){const{isStackedOnMobile:t,mediaAlt:o,mediaPosition:n,mediaType:r,mediaUrl:a,mediaWidth:i,mediaId:s,verticalAlignment:l,imageFill:c,focalPoint:u,linkClass:d,href:p,linkTarget:m,rel:g}=e,h=e.mediaSizeSlug||Hg,_=g||void 0,x=Dt({[`wp-image-${s}`]:s&&"image"===r,[`size-${h}`]:s&&"image"===r});let b=(0,it.jsx)("img",{src:a,alt:o,className:x||null});p&&(b=(0,it.jsx)("a",{className:d,href:p,target:m,rel:_,children:b}));const f={image:()=>b,video:()=>(0,it.jsx)("video",{controls:!0,src:a})},y=Dt({"has-media-on-the-right":"right"===n,"is-stacked-on-mobile":t,[`is-vertically-aligned-${l}`]:l,"is-image-fill":c}),v=c?Fg(a,u):{};let k;i!==Eg&&(k="right"===n?`auto ${i}%`:`${i}% auto`);const w={gridTemplateColumns:k};return"right"===n?(0,it.jsxs)("div",{...ct.useBlockProps.save({className:y,style:w}),children:[(0,it.jsx)("div",{...ct.useInnerBlocksProps.save({className:"wp-block-media-text__content"})}),(0,it.jsx)("figure",{className:"wp-block-media-text__media",style:v,children:(f[r]||Og)()})]}):(0,it.jsxs)("div",{...ct.useBlockProps.save({className:y,style:w}),children:[(0,it.jsx)("figure",{className:"wp-block-media-text__media",style:v,children:(f[r]||Og)()}),(0,it.jsx)("div",{...ct.useInnerBlocksProps.save({className:"wp-block-media-text__content"})})]})},migrate:$g,isEligible(e,t,{block:o}){const{attributes:n}=o;return void 0===e.align&&!!n.className?.includes("alignwide")}},Xg={attributes:qg,supports:Jg,save({attributes:e}){const{isStackedOnMobile:t,mediaAlt:o,mediaPosition:n,mediaType:r,mediaUrl:a,mediaWidth:i,mediaId:s,verticalAlignment:l,imageFill:c,focalPoint:u,linkClass:d,href:p,linkTarget:m,rel:g}=e,h=e.mediaSizeSlug||Hg,_=g||void 0,x=Dt({[`wp-image-${s}`]:s&&"image"===r,[`size-${h}`]:s&&"image"===r});let b=(0,it.jsx)("img",{src:a,alt:o,className:x||null});p&&(b=(0,it.jsx)("a",{className:d,href:p,target:m,rel:_,children:b}));const f={image:()=>b,video:()=>(0,it.jsx)("video",{controls:!0,src:a})},y=Dt({"has-media-on-the-right":"right"===n,"is-stacked-on-mobile":t,[`is-vertically-aligned-${l}`]:l,"is-image-fill":c}),v=c?Vg(a,u):{};let k;i!==Eg&&(k="right"===n?`auto ${i}%`:`${i}% auto`);const w={gridTemplateColumns:k};return"right"===n?(0,it.jsxs)("div",{...ct.useBlockProps.save({className:y,style:w}),children:[(0,it.jsx)("div",{...ct.useInnerBlocksProps.save({className:"wp-block-media-text__content"})}),(0,it.jsx)("figure",{className:"wp-block-media-text__media",style:v,children:(f[r]||Og)()})]}):(0,it.jsxs)("div",{...ct.useBlockProps.save({className:y,style:w}),children:[(0,it.jsx)("figure",{className:"wp-block-media-text__media",style:v,children:(f[r]||Og)()}),(0,it.jsx)("div",{...ct.useInnerBlocksProps.save({className:"wp-block-media-text__content"})})]})},migrate:$g},eh={attributes:qg,supports:Jg,save({attributes:e}){const{isStackedOnMobile:t,mediaAlt:o,mediaPosition:n,mediaType:r,mediaUrl:a,mediaWidth:i,mediaId:s,verticalAlignment:l,imageFill:c,focalPoint:u,linkClass:d,href:p,linkTarget:m,rel:g}=e,h=e.mediaSizeSlug||Hg,_=g||void 0,x=Dt({[`wp-image-${s}`]:s&&"image"===r,[`size-${h}`]:s&&"image"===r});let b=(0,it.jsx)("img",{src:a,alt:o,className:x||null});p&&(b=(0,it.jsx)("a",{className:d,href:p,target:m,rel:_,children:b}));const f={image:()=>b,video:()=>(0,it.jsx)("video",{controls:!0,src:a})},y=Dt({"has-media-on-the-right":"right"===n,"is-stacked-on-mobile":t,[`is-vertically-aligned-${l}`]:l,"is-image-fill":c}),v=c?Vg(a,u):{};let k;i!==Eg&&(k="right"===n?`auto ${i}%`:`${i}% auto`);const w={gridTemplateColumns:k};return(0,it.jsxs)("div",{...ct.useBlockProps.save({className:y,style:w}),children:[(0,it.jsx)("figure",{className:"wp-block-media-text__media",style:v,children:(f[r]||Og)()}),(0,it.jsx)("div",{...ct.useInnerBlocksProps.save({className:"wp-block-media-text__content"})})]})},migrate:$g},th={attributes:{...Ug,isStackedOnMobile:{type:"boolean",default:!0},backgroundColor:{type:"string"},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:(0,xt.compose)(Gg,$g),save({attributes:e}){const{backgroundColor:t,customBackgroundColor:o,isStackedOnMobile:n,mediaAlt:r,mediaPosition:a,mediaType:i,mediaUrl:s,mediaWidth:l,mediaId:c,verticalAlignment:u,imageFill:d,focalPoint:p,linkClass:m,href:g,linkTarget:h,rel:_}=e,x=_||void 0;let b=(0,it.jsx)("img",{src:s,alt:r,className:c&&"image"===i?`wp-image-${c}`:null});g&&(b=(0,it.jsx)("a",{className:m,href:g,target:h,rel:x,children:b}));const f={image:()=>b,video:()=>(0,it.jsx)("video",{controls:!0,src:s})},y=(0,ct.getColorClassName)("background-color",t),v=Dt({"has-media-on-the-right":"right"===a,"has-background":y||o,[y]:y,"is-stacked-on-mobile":n,[`is-vertically-aligned-${u}`]:u,"is-image-fill":d}),k=d?Vg(s,p):{};let w;l!==Eg&&(w="right"===a?`auto ${l}%`:`${l}% auto`);const C={backgroundColor:y?void 0:o,gridTemplateColumns:w};return(0,it.jsxs)("div",{className:v,style:C,children:[(0,it.jsx)("figure",{className:"wp-block-media-text__media",style:k,children:(f[i]||Og)()}),(0,it.jsx)("div",{className:"wp-block-media-text__content",children:(0,it.jsx)(ct.InnerBlocks.Content,{})})]})}},oh={attributes:{...Ug,backgroundColor:{type:"string"},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:(0,xt.compose)(Gg,$g),save({attributes:e}){const{backgroundColor:t,customBackgroundColor:o,isStackedOnMobile:n,mediaAlt:r,mediaPosition:a,mediaType:i,mediaUrl:s,mediaWidth:l,mediaId:c,verticalAlignment:u,imageFill:d,focalPoint:p}=e,m={image:()=>(0,it.jsx)("img",{src:s,alt:r,className:c&&"image"===i?`wp-image-${c}`:null}),video:()=>(0,it.jsx)("video",{controls:!0,src:s})},g=(0,ct.getColorClassName)("background-color",t),h=Dt({"has-media-on-the-right":"right"===a,[g]:g,"is-stacked-on-mobile":n,[`is-vertically-aligned-${u}`]:u,"is-image-fill":d}),_=d?Vg(s,p):{};let x;l!==Eg&&(x="right"===a?`auto ${l}%`:`${l}% auto`);const b={backgroundColor:g?void 0:o,gridTemplateColumns:x};return(0,it.jsxs)("div",{className:h,style:b,children:[(0,it.jsx)("figure",{className:"wp-block-media-text__media",style:_,children:(m[i]||Og)()}),(0,it.jsx)("div",{className:"wp-block-media-text__content",children:(0,it.jsx)(ct.InnerBlocks.Content,{})})]})}},nh={attributes:{...Ug,backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},mediaUrl:{type:"string",source:"attribute",selector:"figure video,figure img",attribute:"src"}},migrate:$g,save({attributes:e}){const{backgroundColor:t,customBackgroundColor:o,isStackedOnMobile:n,mediaAlt:r,mediaPosition:a,mediaType:i,mediaUrl:s,mediaWidth:l}=e,c={image:()=>(0,it.jsx)("img",{src:s,alt:r}),video:()=>(0,it.jsx)("video",{controls:!0,src:s})},u=(0,ct.getColorClassName)("background-color",t),d=Dt({"has-media-on-the-right":"right"===a,[u]:u,"is-stacked-on-mobile":n});let p;l!==Eg&&(p="right"===a?`auto ${l}%`:`${l}% auto`);const m={backgroundColor:u?void 0:o,gridTemplateColumns:p};return(0,it.jsxs)("div",{className:d,style:m,children:[(0,it.jsx)("figure",{className:"wp-block-media-text__media",children:(c[i]||Og)()}),(0,it.jsx)("div",{className:"wp-block-media-text__content",children:(0,it.jsx)(ct.InnerBlocks.Content,{})})]})}};var rh=[Kg,Yg,Xg,eh,th,oh,nh],ah=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M4 18h6V6H4v12zm9-9.5V10h7V8.5h-7zm0 7h7V14h-7v1.5z"})}),ih=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M14 6v12h6V6h-6zM4 10h7V8.5H4V10zm0 5.5h7V14H4v1.5z"})}),sh=(0,it.jsxs)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,it.jsx)(St.Path,{d:"m7 6.5 4 2.5-4 2.5z"}),(0,it.jsx)(St.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"m5 3c-1.10457 0-2 .89543-2 2v14c0 1.1046.89543 2 2 2h14c1.1046 0 2-.8954 2-2v-14c0-1.10457-.8954-2-2-2zm14 1.5h-14c-.27614 0-.5.22386-.5.5v10.7072l3.62953-2.6465c.25108-.1831.58905-.1924.84981-.0234l2.92666 1.8969 3.5712-3.4719c.2911-.2831.7545-.2831 1.0456 0l2.9772 2.8945v-9.3568c0-.27614-.2239-.5-.5-.5zm-14.5 14.5v-1.4364l4.09643-2.987 2.99567 1.9417c.2936.1903.6798.1523.9307-.0917l3.4772-3.3806 3.4772 3.3806.0228-.0234v2.5968c0 .2761-.2239.5-.5.5h-14c-.27614 0-.5-.2239-.5-.5z"})]});function lh(e,t){return e?{objectPosition:t?`${Math.round(100*t.x)}% ${Math.round(100*t.y)}%`:"50% 50%"}:{}}const ch=["image","video"],uh=()=>{},dh=(0,gt.forwardRef)((({isSelected:e,isStackedOnMobile:t,...o},n)=>{const r=(0,xt.useViewportMatch)("small","<");return(0,it.jsx)(mt.ResizableBox,{ref:n,showHandle:e&&(!r||!t),...o})}));function ph({mediaId:e,mediaUrl:t,onSelectMedia:o,toggleUseFeaturedImage:n,useFeaturedImage:r}){return(0,it.jsx)(ct.BlockControls,{group:"other",children:(0,it.jsx)(ct.MediaReplaceFlow,{mediaId:e,mediaURL:t,allowedTypes:ch,accept:"image/*,video/*",onSelect:o,onToggleFeaturedImage:n,useFeaturedImage:r,onReset:()=>o(void 0)})})}function mh({className:e,mediaUrl:t,onSelectMedia:o,toggleUseFeaturedImage:n}){const{createErrorNotice:r}=(0,lt.useDispatch)(bo.store);return(0,it.jsx)(ct.MediaPlaceholder,{icon:(0,it.jsx)(ct.BlockIcon,{icon:sh}),labels:{title:(0,pt.__)("Media area")},className:e,onSelect:o,accept:"image/*,video/*",onToggleFeaturedImage:n,allowedTypes:ch,onError:e=>{r(e,{type:"snackbar"})},disableMediaButtons:t})}var gh=(0,gt.forwardRef)((function(e,t){const{className:o,commitWidthChange:n,focalPoint:r,imageFill:a,isSelected:i,isStackedOnMobile:s,mediaAlt:l,mediaId:c,mediaPosition:u,mediaType:d,mediaUrl:p,mediaWidth:m,onSelectMedia:g,onWidthChange:h,enableResize:_,toggleUseFeaturedImage:x,useFeaturedImage:b,featuredImageURL:f,featuredImageAlt:y,refMedia:v}=e,k=!c&&(0,ht.isBlobURL)(p),{toggleSelection:w}=(0,lt.useDispatch)(ct.store);if(p||f||b){const C=()=>{w(!1)},j=(e,t,o)=>{h(parseInt(o.style.width))},S=(e,t,o)=>{w(!0),n(parseInt(o.style.width))},B={right:_&&"left"===u,left:_&&"right"===u},T="image"===d&&a?lh(p||f,r):{},N={image:()=>b&&f?(0,it.jsx)("img",{ref:v,src:f,alt:y,style:T}):p&&(0,it.jsx)("img",{ref:v,src:p,alt:l,style:T}),video:()=>(0,it.jsx)("video",{controls:!0,ref:v,src:p})};return(0,it.jsxs)(dh,{as:"figure",className:Dt(o,"editor-media-container__resizer",{"is-transient":k}),size:{width:m+"%"},minWidth:"10%",maxWidth:"100%",enable:B,onResizeStart:C,onResize:j,onResizeStop:S,axis:"x",isSelected:i,isStackedOnMobile:s,ref:t,children:[(0,it.jsx)(ph,{onSelectMedia:g,mediaUrl:b&&f?f:p,mediaId:c,toggleUseFeaturedImage:x,useFeaturedImage:b}),(N[d]||uh)(),k&&(0,it.jsx)(mt.Spinner,{}),!b&&(0,it.jsx)(mh,{...e}),!f&&b&&(0,it.jsx)(mt.Placeholder,{className:"wp-block-media-text--placeholder-image",style:T,withIllustration:!0})]})}return(0,it.jsx)(mh,{...e})}));const{ResolutionTool:hh}=jo(ct.privateApis),_h=e=>Math.max(15,Math.min(e,85));function xh(e,t){return e?.media_details?.sizes?.[t]?.source_url}function bh({image:e,value:t,onChange:o}){const{imageSizes:n}=(0,lt.useSelect)((e=>{const{getSettings:t}=e(ct.store);return{imageSizes:t().imageSizes}}),[]);if(!n?.length)return null;const r=n.filter((({slug:t})=>xh(e,t))).map((({name:e,slug:t})=>({value:t,label:e})));return(0,it.jsx)(hh,{value:t,defaultValue:Hg,options:r,onChange:o})}var fh=function({attributes:e,isSelected:t,setAttributes:o,context:{postId:n,postType:r}}){const{focalPoint:a,href:i,imageFill:s,isStackedOnMobile:l,linkClass:c,linkDestination:u,linkTarget:d,mediaAlt:p,mediaId:m,mediaPosition:g,mediaType:h,mediaUrl:_,mediaWidth:x,mediaSizeSlug:b,rel:f,verticalAlignment:y,allowedBlocks:v,useFeaturedImage:k}=e,[w]=(0,_t.useEntityProp)("postType",r,"featured_media",n),{featuredImageMedia:C}=(0,lt.useSelect)((e=>({featuredImageMedia:w&&k?e(_t.store).getEntityRecord("postType","attachment",w,{context:"view"}):void 0})),[w,k]),{image:j}=(0,lt.useSelect)((e=>({image:m&&t?e(_t.store).getEntityRecord("postType","attachment",m,{context:"view"}):null})),[t,m]),S=k?C?.source_url:"",B=k?C?.alt_text:"",T=(0,gt.useRef)(),N=e=>{const{style:t}=T.current,{x:o,y:n}=e;t.objectPosition=`${100*o}% ${100*n}%`},[P,I]=(0,gt.useState)(null),D=function({attributes:{linkDestination:e,href:t},setAttributes:o}){return n=>{if(!n||!n.url)return void o({mediaAlt:void 0,mediaId:void 0,mediaType:void 0,mediaUrl:void 0,mediaLink:void 0,href:void 0,focalPoint:void 0,useFeaturedImage:!1});let r,a;(0,ht.isBlobURL)(n.url)&&(n.type=(0,ht.getBlobTypeByURL)(n.url)),r=n.media_type?"image"===n.media_type?"image":"video":n.type,"image"===r&&(a=n.sizes?.large?.url||n.media_details?.sizes?.large?.source_url);let i=t;"media"===e&&(i=n.url),"attachment"===e&&(i=n.link),o({mediaAlt:n.alt,mediaId:n.id,mediaType:r,mediaUrl:a||n.url,mediaLink:n.link||void 0,href:i,focalPoint:void 0,useFeaturedImage:!1})}}({attributes:e,setAttributes:o}),M=e=>{o({mediaWidth:_h(e)}),I(null)},z=Dt({"has-media-on-the-right":"right"===g,"is-selected":t,"is-stacked-on-mobile":l,[`is-vertically-aligned-${y}`]:y,"is-image-fill-element":s}),A=`${P||x}%`,L="right"===g?`1fr ${A}`:`${A} 1fr`,H={gridTemplateColumns:L,msGridColumns:L},R=e=>{const t=xh(j,e);if(!t)return null;o({mediaUrl:t,mediaSizeSlug:e})},V=vt(),F=(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{o({isStackedOnMobile:!0,imageFill:!1,mediaAlt:"",focalPoint:void 0,mediaWidth:50}),R(Hg)},dropdownMenuProps:V,children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Media width"),isShownByDefault:!0,hasValue:()=>50!==x,onDeselect:()=>o({mediaWidth:50}),children:(0,it.jsx)(mt.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,pt.__)("Media width"),value:P||x,onChange:M,min:15,max:85})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Stack on mobile"),isShownByDefault:!0,hasValue:()=>!l,onDeselect:()=>o({isStackedOnMobile:!0}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Stack on mobile"),checked:l,onChange:()=>o({isStackedOnMobile:!l})})}),"image"===h&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Crop image to fill"),isShownByDefault:!0,hasValue:()=>!!s,onDeselect:()=>o({imageFill:!1}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Crop image to fill"),checked:!!s,onChange:()=>o({imageFill:!s})})}),s&&(_||S)&&"image"===h&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Focal point"),isShownByDefault:!0,hasValue:()=>!!a,onDeselect:()=>o({focalPoint:void 0}),children:(0,it.jsx)(mt.FocalPointPicker,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Focal point"),url:k&&S?S:_,value:a,onChange:e=>o({focalPoint:e}),onDragStart:N,onDrag:N})}),"image"===h&&_&&!k&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Alternative text"),isShownByDefault:!0,hasValue:()=>!!p,onDeselect:()=>o({mediaAlt:""}),children:(0,it.jsx)(mt.TextareaControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Alternative text"),value:p,onChange:e=>{o({mediaAlt:e})},help:(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(mt.ExternalLink,{href:(0,pt.__)("https://www.w3.org/WAI/tutorials/images/decision-tree/"),children:(0,pt.__)("Describe the purpose of the image.")}),(0,it.jsx)("br",{}),(0,pt.__)("Leave empty if decorative.")]})})}),"image"===h&&!k&&(0,it.jsx)(bh,{image:j,value:b,onChange:R})]}),E=(0,ct.useBlockProps)({className:z,style:H}),O=(0,ct.useInnerBlocksProps)({className:"wp-block-media-text__content"},{template:Rg,allowedBlocks:v}),G=(0,ct.useBlockEditingMode)();return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.InspectorControls,{children:F}),(0,it.jsxs)(ct.BlockControls,{group:"block",children:["default"===G&&(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.BlockVerticalAlignmentControl,{onChange:e=>{o({verticalAlignment:e})},value:y}),(0,it.jsx)(mt.ToolbarButton,{icon:ah,title:(0,pt.__)("Show media on left"),isActive:"left"===g,onClick:()=>o({mediaPosition:"left"})}),(0,it.jsx)(mt.ToolbarButton,{icon:ih,title:(0,pt.__)("Show media on right"),isActive:"right"===g,onClick:()=>o({mediaPosition:"right"})})]}),"image"===h&&!k&&(0,it.jsx)(ct.__experimentalImageURLInputUI,{url:i||"",onChangeUrl:e=>{o(e)},linkDestination:u,mediaType:h,mediaUrl:j&&j.source_url,mediaLink:j&&j.link,linkTarget:d,linkClass:c,rel:f})]}),(0,it.jsxs)("div",{...E,children:["right"===g&&(0,it.jsx)("div",{...O}),(0,it.jsx)(gh,{className:"wp-block-media-text__media",onSelectMedia:D,onWidthChange:e=>{I(_h(e))},commitWidthChange:M,refMedia:T,enableResize:"default"===G,toggleUseFeaturedImage:()=>{o({imageFill:!1,mediaType:"image",mediaId:void 0,mediaUrl:void 0,mediaAlt:void 0,mediaLink:void 0,linkDestination:void 0,linkTarget:void 0,linkClass:void 0,rel:void 0,href:void 0,useFeaturedImage:!k})},focalPoint:a,imageFill:s,isSelected:t,isStackedOnMobile:l,mediaAlt:p,mediaId:m,mediaPosition:g,mediaType:h,mediaUrl:_,mediaWidth:x,useFeaturedImage:k,featuredImageURL:S,featuredImageAlt:B}),"right"!==g&&(0,it.jsx)("div",{...O})]})]})};const yh=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"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":"none"},"mediaAlt":{"type":"string","source":"attribute","selector":"figure img","attribute":"alt","default":"","role":"content"},"mediaPosition":{"type":"string","default":"left"},"mediaId":{"type":"number","role":"content"},"mediaUrl":{"type":"string","source":"attribute","selector":"figure video,figure img","attribute":"src","role":"content"},"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","role":"content"},"rel":{"type":"string","source":"attribute","selector":"figure a","attribute":"rel"},"linkClass":{"type":"string","source":"attribute","selector":"figure a","attribute":"class"},"mediaType":{"type":"string","role":"content"},"mediaWidth":{"type":"number","default":50},"mediaSizeSlug":{"type":"string"},"isStackedOnMobile":{"type":"boolean","default":true},"verticalAlignment":{"type":"string"},"imageFill":{"type":"boolean"},"focalPoint":{"type":"object"},"useFeaturedImage":{"type":"boolean","default":false}},"usesContext":["postId","postType"],"supports":{"anchor":true,"align":["wide","full"],"html":false,"__experimentalBorder":{"color":true,"radius":true,"style":true,"width":true,"__experimentalDefaultControls":{"color":true,"radius":true,"style":true,"width":true}},"color":{"gradients":true,"heading":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true}},"spacing":{"margin":true,"padding":true},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true},"allowedBlocks":true},"editorStyle":"wp-block-media-text-editor","style":"wp-block-media-text"}'),vh=()=>{};const kh={from:[{type:"block",blocks:["core/image"],transform:({alt:e,url:t,id:o,anchor:n})=>(0,st.createBlock)("core/media-text",{mediaAlt:e,mediaId:o,mediaUrl:t,mediaType:"image",anchor:n})},{type:"block",blocks:["core/video"],transform:({src:e,id:t,anchor:o})=>(0,st.createBlock)("core/media-text",{mediaId:t,mediaUrl:e,mediaType:"video",anchor:o})},{type:"block",blocks:["core/cover"],transform:({align:e,alt:t,anchor:o,backgroundType:n,customGradient:r,customOverlayColor:a,gradient:i,id:s,overlayColor:l,style:c,textColor:u,url:d,useFeaturedImage:p},m)=>{let g={};return r?g={style:{color:{gradient:r}}}:a&&(g={style:{color:{background:a}}}),c?.color?.text&&(g.style={color:{...g.style?.color,text:c.color.text}}),(0,st.createBlock)("core/media-text",{align:e,anchor:o,backgroundColor:l,gradient:i,mediaAlt:t,mediaId:s,mediaType:n,mediaUrl:d,textColor:u,useFeaturedImage:p,...g},m)}}],to:[{type:"block",blocks:["core/image"],isMatch:({mediaType:e,mediaUrl:t})=>!t||"image"===e,transform:({mediaAlt:e,mediaId:t,mediaUrl:o,anchor:n})=>(0,st.createBlock)("core/image",{alt:e,id:t,url:o,anchor:n})},{type:"block",blocks:["core/video"],isMatch:({mediaType:e,mediaUrl:t})=>!t||"video"===e,transform:({mediaId:e,mediaUrl:t,anchor:o})=>(0,st.createBlock)("core/video",{id:e,src:t,anchor:o})},{type:"block",blocks:["core/cover"],transform:({align:e,anchor:t,backgroundColor:o,focalPoint:n,gradient:r,mediaAlt:a,mediaId:i,mediaType:s,mediaUrl:l,style:c,textColor:u,useFeaturedImage:d},p)=>{const m={};c?.color?.gradient?m.customGradient=c.color.gradient:c?.color?.background&&(m.customOverlayColor=c.color.background),c?.color?.text&&(m.style={color:{text:c.color.text}});const g={align:e,alt:a,anchor:t,backgroundType:s,dimRatio:l||d?50:100,focalPoint:n,gradient:r,id:i,overlayColor:o,textColor:u,url:l,useFeaturedImage:d,...m};return(0,st.createBlock)("core/cover",g,p)}}]};var wh=kh;const{name:Ch}=yh,jh={icon:Lg,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:(0,pt.__)("The wren<br>Earns his living<br>Noiselessly.")}},{name:"core/paragraph",attributes:{content:(0,pt.__)("— Kobayashi Issa (一茶)")}}]},transforms:wh,edit:fh,save:function({attributes:e}){const{isStackedOnMobile:t,mediaAlt:o,mediaPosition:n,mediaType:r,mediaUrl:a,mediaWidth:i,mediaId:s,verticalAlignment:l,imageFill:c,focalPoint:u,linkClass:d,href:p,linkTarget:m,rel:g}=e,h=e.mediaSizeSlug||Hg,_=g||void 0,x=Dt({[`wp-image-${s}`]:s&&"image"===r,[`size-${h}`]:s&&"image"===r}),b=c?lh(a,u):{};let f=a?(0,it.jsx)("img",{src:a,alt:o,className:x||null,style:b}):null;p&&(f=(0,it.jsx)("a",{className:d,href:p,target:m,rel:_,children:f}));const y={image:()=>f,video:()=>(0,it.jsx)("video",{controls:!0,src:a})},v=Dt({"has-media-on-the-right":"right"===n,"is-stacked-on-mobile":t,[`is-vertically-aligned-${l}`]:l,"is-image-fill-element":c});let k;50!==i&&(k="right"===n?`auto ${i}%`:`${i}% auto`);const w={gridTemplateColumns:k};return"right"===n?(0,it.jsxs)("div",{...ct.useBlockProps.save({className:v,style:w}),children:[(0,it.jsx)("div",{...ct.useInnerBlocksProps.save({className:"wp-block-media-text__content"})}),(0,it.jsx)("figure",{className:"wp-block-media-text__media",children:(y[r]||vh)()})]}):(0,it.jsxs)("div",{...ct.useBlockProps.save({className:v,style:w}),children:[(0,it.jsx)("figure",{className:"wp-block-media-text__media",children:(y[r]||vh)()}),(0,it.jsx)("div",{...ct.useInnerBlocksProps.save({className:"wp-block-media-text__content"})})]})},deprecated:rh},Sh=()=>jt({name:Ch,metadata:yh,settings:jh});const Bh=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"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":"raw"}},"supports":{"className":false,"customClassName":false,"inserter":false,"html":false,"lock":false,"reusable":false,"renaming":false,"blockVisibility":false,"interactivity":{"clientNavigation":true}}}');const{name:Th}=Bh,Nh={name:Th,__experimentalLabel(e,{context:t}){if("accessibility"===t){const{originalName:t}=e,o=t?(0,st.getBlockType)(t):void 0;return o?o.settings.title||t:""}},edit:function({attributes:e,clientId:t}){const{originalName:o,originalUndelimitedContent:n}=e,r=!!n,{hasFreeformBlock:a,hasHTMLBlock:i}=(0,lt.useSelect)((e=>{const{canInsertBlockType:o,getBlockRootClientId:n}=e(ct.store);return{hasFreeformBlock:o("core/freeform",n(t)),hasHTMLBlock:o("core/html",n(t))}}),[t]),{replaceBlock:s}=(0,lt.useDispatch)(ct.store),l=[];let c;const u=(0,it.jsx)(mt.Button,{__next40pxDefaultSize:!0,onClick:function(){s(t,(0,st.createBlock)("core/html",{content:n}))},variant:"primary",children:(0,pt.__)("Keep as HTML")},"convert");return!r||a||o?r&&i?(c=(0,pt.sprintf)((0,pt.__)('Your site doesn’t include support for the "%s" block. You can leave it as-is, convert it to custom HTML, or remove it.'),o),l.push(u)):c=(0,pt.sprintf)((0,pt.__)('Your site doesn’t include support for the "%s" block. You can leave it as-is or remove it.'),o):i?(c=(0,pt.__)("It appears you are trying to use the deprecated Classic block. You can leave this block intact, convert its content to a Custom HTML block, or remove it entirely. Alternatively, you can refresh the page to use the Classic block."),l.push(u)):c=(0,pt.__)("It appears you are trying to use the deprecated Classic block. You can leave this block intact, or remove it entirely. Alternatively, you can refresh the page to use the Classic block."),(0,it.jsxs)("div",{...(0,ct.useBlockProps)({className:"has-warning"}),children:[(0,it.jsx)(ct.Warning,{actions:l,children:c}),(0,it.jsx)(gt.RawHTML,{children:(0,lu.safeHTML)(n)})]})},save:function({attributes:e}){return(0,it.jsx)(gt.RawHTML,{children:e.originalContent})}},Ph=()=>jt({name:Th,metadata:Bh,settings:Nh});var Ih=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.Path,{d:"M4 9v1.5h16V9H4zm12 5.5h4V13h-4v1.5zm-6 0h4V13h-4v1.5zm-6 0h4V13H4v1.5z"})});const Dh=(0,pt.__)("Read more");const Mh=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"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","default":"","role":"content"},"noTeaser":{"type":"boolean","default":false}},"supports":{"customClassName":false,"className":false,"html":false,"multiple":false,"interactivity":{"clientNavigation":true}},"editorStyle":"wp-block-more-editor"}');var zh={from:[{type:"raw",schema:{"wp-block":{attributes:["data-block"]}},isMatch:e=>e.dataset&&"core/more"===e.dataset.block,transform(e){const{customText:t,noTeaser:o}=e.dataset,n={};return t&&(n.customText=t),""===o&&(n.noTeaser=!0),(0,st.createBlock)("core/more",n)}}]};const{name:Ah}=Mh,Lh={icon:Ih,example:{},__experimentalLabel(e,{context:t}){const o=e?.metadata?.name;return"list-view"===t&&o?o:"accessibility"===t?e.customText:void 0},transforms:zh,edit:function({attributes:{customText:e,noTeaser:t},insertBlocksAfter:o,setAttributes:n}){const r=vt();return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsx)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{n({noTeaser:!1})},dropdownMenuProps:r,children:(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Hide excerpt"),isShownByDefault:!0,hasValue:()=>t,onDeselect:()=>n({noTeaser:!1}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Hide the excerpt on the full content page"),checked:!!t,onChange:()=>n({noTeaser:!t}),help:e=>e?(0,pt.__)("The excerpt is hidden."):(0,pt.__)("The excerpt is visible.")})})})}),(0,it.jsx)("div",{...(0,ct.useBlockProps)(),children:(0,it.jsx)(ct.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":(0,pt.__)('"Read more" text'),value:e,placeholder:Dh,onChange:e=>n({customText:e}),disableLineBreaks:!0,__unstableOnSplitAtEnd:()=>o((0,st.createBlock)((0,st.getDefaultBlockName)()))})})]})},save:function({attributes:{customText:e,noTeaser:t}}){const o=e?`\x3c!--more ${e}--\x3e`:"\x3c!--more--\x3e",n=t?"\x3c!--noteaser--\x3e":"";return(0,it.jsx)(gt.RawHTML,{children:[o,n].filter(Boolean).join("\n")})}},Hh=()=>jt({name:Ah,metadata:Mh,settings:Lh});var Rh=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.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"})});const Vh=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/navigation","title":"Navigation","category":"theme","allowedBlocks":["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","core/loginout","core/buttons"],"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":true},"openSubmenusOnClick":{"type":"boolean","default":false},"overlayMenu":{"type":"string","default":"mobile"},"icon":{"type":"string","default":"handle"},"hasIcon":{"type":"boolean","default":true},"__unstableLocation":{"type":"string"},"overlayBackgroundColor":{"type":"string"},"customOverlayBackgroundColor":{"type":"string"},"overlayTextColor":{"type":"string"},"customOverlayTextColor":{"type":"string"},"maxNestingLevel":{"type":"number","default":5},"templateLock":{"type":["string","boolean"],"enum":["all","insert","contentOnly",false]}},"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","maxNestingLevel":"maxNestingLevel"},"supports":{"align":["wide","full"],"ariaLabel":true,"html":false,"inserter":true,"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontStyle":true,"__experimentalFontWeight":true,"__experimentalTextTransform":true,"__experimentalFontFamily":true,"__experimentalLetterSpacing":true,"__experimentalTextDecoration":true,"__experimentalSkipSerialization":["textDecoration"],"__experimentalDefaultControls":{"fontSize":true}},"spacing":{"blockGap":true,"units":["px","em","rem","vh","vw"],"__experimentalDefaultControls":{"blockGap":true}},"layout":{"allowSwitching":false,"allowInheriting":false,"allowVerticalAlignment":false,"allowSizingOnChildren":true,"default":{"type":"flex"}},"interactivity":true,"renaming":false,"contentRole":true},"editorStyle":"wp-block-navigation-editor","style":"wp-block-navigation"}'),Fh=window.wp.a11y;var Eh=(0,it.jsxs)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,it.jsx)(St.Path,{d:"M15.5 7.5h-7V9h7V7.5Zm-7 3.5h7v1.5h-7V11Zm7 3.5h-7V16h7v-1.5Z"}),(0,it.jsx)(St.Path,{d:"M17 4H7a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2ZM7 5.5h10a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H7a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5Z"})]}),Oh=(0,gt.forwardRef)((({icon:e,size:t=24,...o},n)=>(0,gt.cloneElement)(e,{width:t,height:t,...o,ref:n}))),Gh=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"m13.06 12 6.47-6.47-1.06-1.06L12 10.94 5.53 4.47 4.47 5.53 10.94 12l-6.47 6.47 1.06 1.06L12 13.06l6.47 6.47 1.06-1.06L13.06 12Z"})});const $h={name:"core/navigation-link",attributes:{kind:"post-type",type:"page"}},Uh=["core/navigation-link/page","core/navigation-link"],qh={per_page:100,status:["publish","draft"],order:"desc",orderby:"date"},Wh=["postType","wp_navigation",qh];function Zh(e){const t=(0,_t.useResourcePermissions)({kind:"postType",name:"wp_navigation",id:e}),{navigationMenu:o,isNavigationMenuResolved:n,isNavigationMenuMissing:r}=(0,lt.useSelect)((t=>function(e,t){if(!t)return{isNavigationMenuResolved:!1,isNavigationMenuMissing:!0};const{getEntityRecord:o,getEditedEntityRecord:n,hasFinishedResolution:r}=e(_t.store),a=["postType","wp_navigation",t],i=o(...a),s=n(...a),l=r("getEditedEntityRecord",a),c="publish"===s.status||"draft"===s.status;return{isNavigationMenuResolved:l,isNavigationMenuMissing:l&&(!i||!c),navigationMenu:c?s:null}}(t,e)),[e]),{canCreate:a,canUpdate:i,canDelete:s,isResolving:l,hasResolved:c}=t,{records:u,isResolving:d,hasResolved:p}=(0,_t.useEntityRecords)("postType","wp_navigation",qh);return{navigationMenu:o,isNavigationMenuResolved:n,isNavigationMenuMissing:r,navigationMenus:u,isResolvingNavigationMenus:d,hasResolvedNavigationMenus:p,canSwitchNavigationMenu:e?u?.length>1:u?.length>0,canUserCreateNavigationMenus:a,isResolvingCanUserCreateNavigationMenus:l,hasResolvedCanUserCreateNavigationMenus:c,canUserUpdateNavigationMenu:i,hasResolvedCanUserUpdateNavigationMenu:e?c:void 0,canUserDeleteNavigationMenu:s,hasResolvedCanUserDeleteNavigationMenu:e?c:void 0}}function Jh(e){const{records:t,isResolving:o,hasResolved:n}=(0,_t.useEntityRecords)("root","menu",{per_page:-1,context:"view"}),{records:r,isResolving:a,hasResolved:i}=(0,_t.useEntityRecords)("postType","page",{parent:0,order:"asc",orderby:"id",per_page:-1,context:"view"}),{records:s,hasResolved:l}=(0,_t.useEntityRecords)("root","menuItem",{menus:e,per_page:-1,context:"view"},{enabled:!!e});return{pages:r,isResolvingPages:a,hasResolvedPages:i,hasPages:!(!i||!r?.length),menus:t,isResolvingMenus:o,hasResolvedMenus:n,hasMenus:!(!n||!t?.length),menuItems:s,hasResolvedMenuItems:l}}var Qh=({isVisible:e=!0})=>(0,it.jsx)("div",{"aria-hidden":!e||void 0,className:"wp-block-navigation-placeholder__preview",children:(0,it.jsxs)("div",{className:"wp-block-navigation-placeholder__actions__indicator",children:[(0,it.jsx)(Oh,{icon:Rh}),(0,pt.__)("Navigation")]})}),Kh=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"})});var Yh=function({currentMenuId:e,onSelectNavigationMenu:t,onSelectClassicMenu:o,onCreateNew:n,actionLabel:r,createNavigationMenuIsSuccess:a,createNavigationMenuIsError:i}){const s=(0,pt.__)("Create from '%s'"),[l,c]=(0,gt.useState)(!1);r=r||s;const{menus:u}=Jh(),{navigationMenus:d,isResolvingNavigationMenus:p,hasResolvedNavigationMenus:m,canUserCreateNavigationMenus:g,canSwitchNavigationMenu:h,isNavigationMenuMissing:_}=Zh(e),[x]=(0,_t.useEntityProp)("postType","wp_navigation","title"),b=(0,gt.useMemo)((()=>d?.map((({id:e,title:t,status:o},n)=>{const a=function(e,t,o){return e?"publish"===o?(0,ao.decodeEntities)(e):(0,pt.sprintf)((0,pt.__)("%1$s (%2$s)"),(0,ao.decodeEntities)(e),o):(0,pt.sprintf)((0,pt.__)("(no title %s)"),t)}(t?.rendered,n+1,o);return{value:e,label:a,ariaLabel:(0,pt.sprintf)(r,a),disabled:l||p||!m}}))||[]),[d,r,p,m,l]),f=!!d?.length,y=!!u?.length,v=!!h,k=!!g,w=f&&!e,C=!f&&m,j=m&&null===e,S=e&&_;let B="";return B=p?(0,pt.__)("Loading…"):w||C||j||S?(0,pt.__)("Choose or create a Navigation Menu"):x,(0,gt.useEffect)((()=>{l&&(a||i)&&c(!1)}),[m,a,g,i,l,j,C,w]),(0,it.jsx)(mt.DropdownMenu,{label:B,icon:Kh,toggleProps:{size:"small"},children:({onClose:r})=>(0,it.jsxs)(it.Fragment,{children:[v&&f&&(0,it.jsx)(mt.MenuGroup,{label:(0,pt.__)("Menus"),children:(0,it.jsx)(mt.MenuItemsChoice,{value:e,onSelect:e=>{t(e),r()},choices:b})}),k&&y&&(0,it.jsx)(mt.MenuGroup,{label:(0,pt.__)("Import Classic Menus"),children:u?.map((e=>{const t=(0,ao.decodeEntities)(e.name);return(0,it.jsx)(mt.MenuItem,{onClick:async()=>{c(!0),await o(e),c(!1),r()},"aria-label":(0,pt.sprintf)(s,t),disabled:l||p||!m,children:t},e.id)}))}),g&&(0,it.jsx)(mt.MenuGroup,{label:(0,pt.__)("Tools"),children:(0,it.jsx)(mt.MenuItem,{onClick:async()=>{c(!0),await n(),c(!1),r()},disabled:l||p||!m,children:(0,pt.__)("Create new Menu")})})]})})};function Xh({isSelected:e,currentMenuId:t,clientId:o,canUserCreateNavigationMenus:n=!1,isResolvingCanUserCreateNavigationMenus:r,onSelectNavigationMenu:a,onSelectClassicMenu:i,onCreateEmpty:s}){const{isResolvingMenus:l,hasResolvedMenus:c}=Jh();(0,gt.useEffect)((()=>{e&&(l&&(0,Fh.speak)((0,pt.__)("Loading navigation block setup options…")),c&&(0,Fh.speak)((0,pt.__)("Navigation block setup options ready.")))}),[c,l,e]);const u=l&&r;return(0,it.jsx)(it.Fragment,{children:(0,it.jsxs)(mt.Placeholder,{className:"wp-block-navigation-placeholder",children:[(0,it.jsx)(Qh,{isVisible:!e}),(0,it.jsx)("div",{"aria-hidden":!e||void 0,className:"wp-block-navigation-placeholder__controls",children:(0,it.jsxs)("div",{className:"wp-block-navigation-placeholder__actions",children:[(0,it.jsxs)("div",{className:"wp-block-navigation-placeholder__actions__indicator",children:[(0,it.jsx)(Oh,{icon:Rh})," ",(0,pt.__)("Navigation")]}),(0,it.jsx)("hr",{}),u&&(0,it.jsx)(mt.Spinner,{}),(0,it.jsx)(Yh,{currentMenuId:t,clientId:o,onSelectNavigationMenu:a,onSelectClassicMenu:i}),(0,it.jsx)("hr",{}),n&&(0,it.jsx)(mt.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:s,children:(0,pt.__)("Start empty")})]})})]})})}var e_=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M5 5v1.5h14V5H5zm0 7.8h14v-1.5H5v1.5zM5 19h14v-1.5H5V19z"})});function t_({icon:e}){return"menu"===e?(0,it.jsx)(Oh,{icon:e_}):(0,it.jsxs)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false",children:[(0,it.jsx)(St.Rect,{x:"4",y:"7.5",width:"16",height:"1.5"}),(0,it.jsx)(St.Rect,{x:"4",y:"15",width:"16",height:"1.5"})]})}function o_({children:e,id:t,isOpen:o,isResponsive:n,onToggle:r,isHiddenByDefault:a,overlayBackgroundColor:i,overlayTextColor:s,hasIcon:l,icon:c}){if(!n)return e;const u=Dt("wp-block-navigation__responsive-container",{"has-text-color":!!s.color||!!s?.class,[(0,ct.getColorClassName)("color",s?.slug)]:!!s?.slug,"has-background":!!i.color||i?.class,[(0,ct.getColorClassName)("background-color",i?.slug)]:!!i?.slug,"is-menu-open":o,"hidden-by-default":a}),d={color:!s?.slug&&s?.color,backgroundColor:!i?.slug&&i?.color&&i.color},p=Dt("wp-block-navigation__responsive-container-open",{"always-shown":a}),m=`${t}-modal`,g={className:"wp-block-navigation__responsive-dialog",...o&&{role:"dialog","aria-modal":!0,"aria-label":(0,pt.__)("Menu")}};return(0,it.jsxs)(it.Fragment,{children:[!o&&(0,it.jsxs)(mt.Button,{__next40pxDefaultSize:!0,"aria-haspopup":"true","aria-label":l&&(0,pt.__)("Open menu"),className:p,onClick:()=>r(!0),children:[l&&(0,it.jsx)(t_,{icon:c}),!l&&(0,pt.__)("Menu")]}),(0,it.jsx)("div",{className:u,style:d,id:m,children:(0,it.jsx)("div",{className:"wp-block-navigation__responsive-close",tabIndex:"-1",children:(0,it.jsxs)("div",{...g,children:[(0,it.jsxs)(mt.Button,{__next40pxDefaultSize:!0,className:"wp-block-navigation__responsive-container-close","aria-label":l&&(0,pt.__)("Close menu"),onClick:()=>r(!1),children:[l&&(0,it.jsx)(Oh,{icon:Gh}),!l&&(0,pt.__)("Close")]}),(0,it.jsx)("div",{className:"wp-block-navigation__responsive-container-content",id:`${m}-content`,children:e})]})})})]})}function n_({clientId:e,hasCustomPlaceholder:t,orientation:o,templateLock:n}){const{isImmediateParentOfSelectedBlock:r,selectedBlockHasChildren:a,isSelected:i,hasSelectedDescendant:s}=(0,lt.useSelect)((t=>{const{getBlockCount:o,hasSelectedInnerBlock:n,getSelectedBlockClientId:r}=t(ct.store),a=r();return{isImmediateParentOfSelectedBlock:n(e,!1),selectedBlockHasChildren:!!o(a),hasSelectedDescendant:n(e,!0),isSelected:a===e}}),[e]),[l,c,u]=(0,_t.useEntityBlockEditor)("postType","wp_navigation"),d=i||r&&!a,p=(0,gt.useMemo)((()=>(0,it.jsx)(Qh,{})),[]),m=!t&&!!!l?.length&&!i,g=(0,ct.useInnerBlocksProps)({className:"wp-block-navigation__container"},{value:l,onInput:c,onChange:u,prioritizedInserterBlocks:Uh,defaultBlock:$h,directInsert:!0,orientation:o,templateLock:n,renderAppender:!!(i||r&&!a||s||d)&&ct.InnerBlocks.ButtonBlockAppender,placeholder:m?p:void 0,__experimentalCaptureToolbars:!0,__unstableDisableLayoutClassNames:!0});return(0,it.jsx)("div",{...g})}function r_(){const[e,t]=(0,_t.useEntityProp)("postType","wp_navigation","title");return(0,it.jsx)(mt.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("Menu name"),value:e,onChange:t})}const a_=(e,t,o)=>{if(e===t)return!0;if("object"==typeof e&&null!=e&&"object"==typeof t&&null!=t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e){if(!t.hasOwnProperty(n))return!1;if(o&&o(n,e))return!0;if(!a_(e[n],t[n],o))return!1}return!0}return!1},i_={};function s_({blocks:e,createNavigationMenu:t,hasSelection:o}){const n=(0,gt.useRef)();(0,gt.useEffect)((()=>{n?.current||(n.current=e)}),[e]);const r=function(e,t){return!a_(e,t,((e,t)=>{if("core/page-list"===t?.name&&"innerBlocks"===e)return!0}))}(n?.current,e),a=(0,gt.useContext)(mt.Disabled.Context),i=(0,ct.useInnerBlocksProps)({className:"wp-block-navigation__container"},{renderAppender:!!o&&void 0,defaultBlock:$h,directInsert:!0}),{isSaving:s,hasResolvedAllNavigationMenus:l}=(0,lt.useSelect)((e=>{if(a)return i_;const{hasFinishedResolution:t,isSavingEntityRecord:o}=e(_t.store);return{isSaving:o("postType","wp_navigation"),hasResolvedAllNavigationMenus:t("getEntityRecords",Wh)}}),[a]);(0,gt.useEffect)((()=>{!a&&!s&&l&&o&&r&&t(null,e)}),[e,t,a,s,l,r,o]);const c=s?mt.Disabled:"div";return(0,it.jsx)(c,{...i})}function l_({onDelete:e}){const[t,o]=(0,gt.useState)(!1),n=(0,_t.useEntityId)("postType","wp_navigation"),{deleteEntityRecord:r}=(0,lt.useDispatch)(_t.store);return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(mt.Button,{__next40pxDefaultSize:!0,className:"wp-block-navigation-delete-menu-button",variant:"secondary",isDestructive:!0,onClick:()=>{o(!0)},children:(0,pt.__)("Delete menu")}),t&&(0,it.jsx)(mt.__experimentalConfirmDialog,{isOpen:!0,onConfirm:()=>{r("postType","wp_navigation",n,{force:!0}),e()},onCancel:()=>{o(!1)},confirmButtonText:(0,pt.__)("Delete"),size:"medium",children:(0,pt.__)("Are you sure you want to delete this Navigation Menu?")})]})}var c_=function({name:e,message:t=""}={}){const o=(0,gt.useRef)(),{createWarningNotice:n,removeNotice:r}=(0,lt.useDispatch)(bo.store);return[(0,gt.useCallback)((r=>{o.current||(o.current=e,n(r||t,{id:o.current,type:"snackbar"}))}),[o,n,t,e]),(0,gt.useCallback)((()=>{o.current&&(r(o.current),o.current=null)}),[o,r])]};function u_({setAttributes:e,hasIcon:t,icon:o}){return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Show icon button"),isShownByDefault:!0,hasValue:()=>!t,onDeselect:()=>e({hasIcon:!0}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Show icon button"),help:(0,pt.__)("Configure the visual appearance of the button that toggles the overlay menu."),onChange:t=>e({hasIcon:t}),checked:t})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Icon"),isShownByDefault:!0,hasValue:()=>"handle"!==o,onDeselect:()=>e({icon:"handle"}),children:(0,it.jsxs)(mt.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,className:"wp-block-navigation__overlay-menu-icon-toggle-group",label:(0,pt.__)("Icon"),value:o,onChange:t=>e({icon:t}),isBlock:!0,children:[(0,it.jsx)(mt.__experimentalToggleGroupControlOption,{value:"handle","aria-label":(0,pt.__)("handle"),label:(0,it.jsx)(t_,{icon:"handle"})}),(0,it.jsx)(mt.__experimentalToggleGroupControlOption,{value:"menu","aria-label":(0,pt.__)("menu"),label:(0,it.jsx)(t_,{icon:"menu"})})]})})]})}function d_(e){if(void 0===e)throw new Error('buildNavigationLinkEntityBinding requires a kind parameter. Only "post-type" and "taxonomy" are supported.');if("post-type"!==e&&"taxonomy"!==e)throw new Error(`Invalid kind "${e}" provided to buildNavigationLinkEntityBinding. Only 'post-type' and 'taxonomy' are supported.`);return{url:{source:"taxonomy"===e?"core/term-data":"core/post-data",args:{field:"link"}}}}function p_({clientId:e,attributes:t}){const{updateBlockBindings:o}=(0,ct.useBlockBindingsUtils)(e),{metadata:n,id:r,kind:a,type:i}=t,s=(0,ct.useBlockEditingMode)(),l=!!n?.bindings?.url&&!!r,c="post-type"===a?"core/post-data":"core/term-data",u=l&&n?.bindings?.url?.source===c,d=(0,lt.useSelect)((e=>{if(!u||!r)return!1;const t="taxonomy"===a;if(!("post-type"===a)&&!t)return!1;if("disabled"===s)return!0;const{getEntityRecord:o,hasFinishedResolution:n}=e(_t.store),l=t?"taxonomy":"postType",c="tag"===i?"post_tag":i,d=o(l,c,r);return!n("getEntityRecord",[l,c,r])||void 0!==d}),[a,i,r,u,s]),p=(0,gt.useCallback)((()=>{l&&o({url:void 0})}),[o,l,n,r]),m=(0,gt.useCallback)((e=>{const t=e?.kind??a;if(t)try{const e=d_(t);o(e)}catch(e){console.warn("Failed to create entity binding:",e.message)}}),[o,a]);return{hasUrlBinding:u,isBoundEntityAvailable:d,clearBinding:p,createBinding:m}}function m_(e){if(!e)return null;const t=g_(function(e,t="id",o="parent"){const n=Object.create(null),r=[];for(const a of e)n[a[t]]={...a,children:[]},a[o]?(n[a[o]]=n[a[o]]||{},n[a[o]].children=n[a[o]].children||[],n[a[o]].children.push(n[a[t]])):r.push(n[a[t]]);return r}(e));return(0,vl.applyFilters)("blocks.navigation.__unstableMenuItemsToBlocks",t,e)}function g_(e,t=0){let o={};const n=[...e].sort(((e,t)=>e.menu_order-t.menu_order)),r=n.map((e=>{if("block"===e.type){const[t]=(0,st.parse)(e.content.raw);return t||(0,st.createBlock)("core/freeform",{content:e.content})}const n=e.children?.length?"core/navigation-submenu":"core/navigation-link",r=function({title:e,xfn:t,classes:o,attr_title:n,object:r,object_id:a,description:i,url:s,type:l,target:c},u,d){r&&"post_tag"===r&&(r="tag");const p=l?.replace("_","-")||"custom";return{label:e?.rendered||"",...r?.length&&{type:r},kind:p,url:s||"",...t?.length&&t.join(" ").trim()&&{rel:t.join(" ").trim()},...o?.length&&o.join(" ").trim()&&{className:o.join(" ").trim()},...n?.length&&{title:n},...a&&("post-type"===p||"taxonomy"===p)&&{id:a,metadata:{bindings:d_(p)}},...i?.length&&{description:i},..."_blank"===c&&{opensInNewTab:!0},..."core/navigation-submenu"===u&&{isTopLevelItem:0===d},..."core/navigation-link"===u&&{isTopLevelLink:0===d}}}(e,n,t),{innerBlocks:a=[],mapping:i={}}=e.children?.length?g_(e.children,t+1):{};o={...o,...i};const s=(0,st.createBlock)(n,r,a);return o[e.id]=s.clientId,s}));return{innerBlocks:r,mapping:o}}const h_="success",__="error",x_="pending";let b_=null;var f_=function(e,{throwOnError:t=!1}={}){const o=(0,lt.useRegistry)(),{editEntityRecord:n}=(0,lt.useDispatch)(_t.store),[r,a]=(0,gt.useState)("idle"),[i,s]=(0,gt.useState)(null),l=(0,gt.useCallback)((async(t,r,a="publish")=>{let i,s;try{s=await o.resolveSelect(_t.store).getMenuItems({menus:t,per_page:-1,context:"view"})}catch(e){throw new Error((0,pt.sprintf)((0,pt.__)('Unable to fetch classic menu "%s" from API.'),r),{cause:e})}if(null===s)throw new Error((0,pt.sprintf)((0,pt.__)('Unable to fetch classic menu "%s" from API.'),r));const{innerBlocks:l}=m_(s);try{i=await e(r,l,a),await n("postType","wp_navigation",i.id,{status:"publish"},{throwOnError:!0})}catch(e){throw new Error((0,pt.sprintf)((0,pt.__)('Unable to create Navigation Menu "%s".'),r),{cause:e})}return i}),[e,n,o]);return{convert:(0,gt.useCallback)((async(e,o,n)=>{if(b_!==e)return b_=e,e&&o?(a(x_),s(null),await l(e,o,n).then((e=>(a(h_),b_=null,e))).catch((e=>{if(s(e?.message),a(__),b_=null,t)throw new Error((0,pt.sprintf)((0,pt.__)('Unable to create Navigation Menu "%s".'),o),{cause:e})}))):(s("Unable to convert menu. Missing menu details."),void a(__))}),[l,t]),status:r,error:i}};function y_(e,t){return e&&t?e+"//"+t:null}var v_=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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"})}),k_=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{fillRule:"evenodd",d:"M18 5.5h-8v8h8.5V6a.5.5 0 00-.5-.5zm-9.5 8h-3V6a.5.5 0 01.5-.5h2.5v8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"})}),w_=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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.5zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"})}),C_=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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"})});const j_=e=>"header"===e?v_:"footer"===e?k_:"sidebar"===e?w_:C_;const S_=["postType","wp_navigation",{status:"draft",per_page:-1}],B_=["postType","wp_navigation",{per_page:-1,status:"publish"}];function T_(e){const t=(0,gt.useContext)(mt.Disabled.Context),o=function(e){return(0,lt.useSelect)((t=>{if(!e)return;const{getBlock:o,getBlockParentsByBlockName:n}=t(ct.store),r=n(e,"core/template-part",!0);if(!r?.length)return;const{getCurrentTheme:a,getEditedEntityRecord:i}=t(_t.store),s=a(),l=(s?.default_template_part_areas||[]).map((e=>({...e,icon:j_(e.icon)})));for(const e of r){const t=o(e),{theme:n=s?.stylesheet,slug:r}=t.attributes,a=i("postType","wp_template_part",y_(n,r));if(a?.area)return l.find((e=>"uncategorized"!==e.area&&e.area===a.area))?.label}}),[e])}(t?void 0:e),n=(0,lt.useRegistry)();return(0,gt.useCallback)((async()=>{if(t)return"";const{getEntityRecords:e}=n.resolveSelect(_t.store),[r,a]=await Promise.all([e(...S_),e(...B_)]),i=o?(0,pt.sprintf)((0,pt.__)("%s menu"),o):(0,pt.__)("Menu"),s=[...r,...a].reduce(((e,t)=>t?.title?.raw?.startsWith(i)?e+1:e),0);return(s>0?`${i} ${s+1}`:i)||""}),[t,o,n])}const N_="success",P_="error",I_="pending",D_="idle";const M_=[];function z_(e){return e.ownerDocument.defaultView.getComputedStyle(e)}function A_(e,t,o){if(!e)return;t(z_(e).color);let n=e,r=z_(n).backgroundColor;for(;"rgba(0, 0, 0, 0)"===r&&n.parentNode&&n.parentNode.nodeType===n.parentNode.ELEMENT_NODE;)n=n.parentNode,r=z_(n).backgroundColor;o(r)}function L_(e,t){const{textColor:o,customTextColor:n,backgroundColor:r,customBackgroundColor:a,overlayTextColor:i,customOverlayTextColor:s,overlayBackgroundColor:l,customOverlayBackgroundColor:c,style:u}=e,d={};return t&&s?d.customTextColor=s:t&&i?d.textColor=i:n?d.customTextColor=n:o?d.textColor=o:u?.color?.text&&(d.customTextColor=u.color.text),t&&c?d.customBackgroundColor=c:t&&l?d.backgroundColor=l:a?d.customBackgroundColor=a:r?d.backgroundColor=r:u?.color?.background&&(d.customTextColor=u.color.background),d}function H_(e){return{className:Dt("wp-block-navigation__submenu-container",{"has-text-color":!(!e.textColor&&!e.customTextColor),[`has-${e.textColor}-color`]:!!e.textColor,"has-background":!(!e.backgroundColor&&!e.customBackgroundColor),[`has-${e.backgroundColor}-background-color`]:!!e.backgroundColor}),style:{color:e.customTextColor,backgroundColor:e.customBackgroundColor}}}var R_=({className:e="",disabled:t,isMenuItem:o=!1})=>{let n=mt.Button;return o&&(n=mt.MenuItem),(0,it.jsx)(n,{variant:"link",disabled:t,className:e,href:(0,no.addQueryArgs)("edit.php",{post_type:"wp_navigation"}),children:(0,pt.__)("Manage menus")})};var V_=function({onCreateNew:e,isNotice:t=!1}){const[o,n]=(0,gt.useState)(!1),r=(0,gt.createInterpolateElement)((0,pt.__)("Navigation Menu has been deleted or is unavailable. <button>Create a new Menu?</button>"),{button:(0,it.jsx)(mt.Button,{__next40pxDefaultSize:!0,onClick:()=>{n(!0),e()},variant:"link",disabled:o,accessibleWhenDisabled:!0})});return t?(0,it.jsx)(mt.Notice,{status:"warning",isDismissible:!1,children:r}):(0,it.jsx)(ct.Warning,{children:r})},F_=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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"})}),E_=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"})});const O_={className:"block-editor-block-settings-menu__popover",placement:"bottom-start"},G_=["core/navigation-link","core/navigation-submenu"];function $_({block:e,onClose:t,expandedState:o,expand:n,setInsertedBlock:r}){const{insertBlock:a,replaceBlock:i,replaceInnerBlocks:s}=(0,lt.useDispatch)(ct.store),l=e.clientId,c=!G_.includes(e.name);return(0,it.jsx)(mt.MenuItem,{icon:F_,disabled:c,onClick:()=>{const c=!1,u=(0,st.createBlock)($h.name,$h.attributes);if("core/navigation-submenu"===e.name)a(u,e.innerBlocks.length,l,c);else{const t=(0,st.createBlock)("core/navigation-submenu",e.attributes,e.innerBlocks);i(l,t),s(t.clientId,[u],c)}r(u),o[e.clientId]||n(e.clientId),t()},children:(0,pt.__)("Add submenu link")})}function U_(e){const{block:t}=e,{clientId:o}=t,{moveBlocksDown:n,moveBlocksUp:r,removeBlocks:a}=(0,lt.useDispatch)(ct.store),i=(0,pt.sprintf)((0,pt.__)("Remove %s"),(0,ct.BlockTitle)({clientId:o,maximumLength:25})),s=(0,lt.useSelect)((e=>{const{getBlockRootClientId:t}=e(ct.store);return t(o)}),[o]);return(0,it.jsx)(mt.DropdownMenu,{icon:Kh,label:(0,pt.__)("Options"),className:"block-editor-block-settings-menu",popoverProps:O_,noIcons:!0,...e,children:({onClose:l})=>(0,it.jsxs)(it.Fragment,{children:[(0,it.jsxs)(mt.MenuGroup,{children:[(0,it.jsx)(mt.MenuItem,{icon:E_,onClick:()=>{r([o],s),l()},children:(0,pt.__)("Move up")}),(0,it.jsx)(mt.MenuItem,{icon:qp,onClick:()=>{n([o],s),l()},children:(0,pt.__)("Move down")}),(0,it.jsx)($_,{block:t,onClose:l,expandedState:e.expandedState,expand:e.expand,setInsertedBlock:e.setInsertedBlock})]}),(0,it.jsx)(mt.MenuGroup,{children:(0,it.jsx)(mt.MenuItem,{onClick:()=>{a([o],!1),l()},children:i})})]})})}var q_=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M11 12.5V17.5H12.5V12.5H17.5V11H12.5V6H11V11H6V12.5H11Z"})}),W_=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M10.8622 8.04053L14.2805 12.0286L10.8622 16.0167L9.72327 15.0405L12.3049 12.0286L9.72327 9.01672L10.8622 8.04053Z"})}),Z_=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"m13.1 16-3.4-4 3.4-4 1.1 1-2.6 3 2.6 3-1.1 1z"})});function J_({className:e,onBack:t}){return(0,it.jsx)(mt.Button,{className:e,icon:(0,pt.isRTL)()?W_:Z_,onClick:e=>{e.preventDefault(),t()},size:"small",children:(0,pt.__)("Back")})}var Q_=function e({className:t,title:o,description:n,onBack:r,children:a}){const i=(0,xt.useInstanceId)(e,"link-ui-dialog-title"),s=(0,xt.useInstanceId)(e,"link-ui-dialog-description"),l=(0,xt.useFocusOnMount)("firstElement"),c=`${t}__back`;return(0,it.jsxs)("div",{className:t,role:"dialog","aria-labelledby":i,"aria-describedby":s,ref:l,children:[(0,it.jsxs)(mt.VisuallyHidden,{children:[(0,it.jsx)("h2",{id:i,children:o}),(0,it.jsx)("p",{id:s,children:n})]}),(0,it.jsx)(J_,{className:c,onBack:r}),a]})};function K_({postType:e,onBack:t,onPageCreated:o,initialTitle:n=""}){const[r,a]=(0,gt.useState)(n),[i,s]=(0,gt.useState)(!1),l=r.trim().length>0,{lastError:c,isSaving:u}=(0,lt.useSelect)((t=>({lastError:t(_t.store).getLastEntitySaveError("postType",e),isSaving:t(_t.store).isSavingEntityRecord("postType",e)})),[e]),{saveEntityRecord:d}=(0,lt.useDispatch)(_t.store);const p=u||!l;return(0,it.jsx)(Q_,{className:"link-ui-page-creator",title:(0,pt.__)("Create page"),description:(0,pt.__)("Create a new page to add to your Navigation."),onBack:t,children:(0,it.jsx)(mt.__experimentalVStack,{className:"link-ui-page-creator__inner",spacing:4,children:(0,it.jsx)("form",{onSubmit:async function(t){if(t.preventDefault(),!u&&l)try{const t=await d("postType",e,{title:r,status:i?"publish":"draft"},{throwOnError:!0});if(t){const n={id:t.id,type:e,title:(0,ao.decodeEntities)(t.title.rendered),url:t.link,kind:"post-type"};o(n)}}catch(e){}},children:(0,it.jsxs)(mt.__experimentalVStack,{spacing:4,children:[(0,it.jsx)(mt.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("Title"),onChange:a,placeholder:(0,pt.__)("No title"),value:r}),(0,it.jsx)(mt.CheckboxControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Publish immediately"),help:(0,pt.__)("If unchecked, the page will be created as a draft."),checked:i,onChange:s}),c&&(0,it.jsx)(mt.Notice,{status:"error",isDismissible:!1,children:c.message}),(0,it.jsxs)(mt.__experimentalHStack,{spacing:2,justify:"flex-end",children:[(0,it.jsx)(mt.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:t,disabled:u,accessibleWhenDisabled:!0,children:(0,pt.__)("Cancel")}),(0,it.jsx)(mt.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",isBusy:u,"aria-disabled":p,children:(0,pt.__)("Create page")})]})]})})})})}const{PrivateQuickInserter:Y_}=jo(ct.privateApis);var X_=function({clientId:e,onBack:t,onBlockInsert:o}){const{rootBlockClientId:n}=(0,lt.useSelect)((t=>{const{getBlockRootClientId:o}=t(ct.store);return{rootBlockClientId:o(e)}}),[e]);return e?(0,it.jsx)(Q_,{className:"link-ui-block-inserter",title:(0,pt.__)("Add block"),description:(0,pt.__)("Choose a block to add to your Navigation."),onBack:t,children:(0,it.jsx)(Y_,{rootClientId:n,clientId:e,isAppender:!1,prioritizePatterns:!1,selectBlockOnInsert:!o,onSelect:o||void 0,hasSearch:!1})}):null};function ex(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}:{initialSuggestionsSearchOptions:{type:"post",subtype:"page",perPage:20}}}}const tx=(0,gt.forwardRef)((function(e,t){const{label:o,url:n,opensInNewTab:r,type:a,kind:i,id:s}=e.link,{clientId:l}=e,c=a||"page",[u,d]=(0,gt.useState)(!1),[p,m]=(0,gt.useState)(!1),[g,h]=(0,gt.useState)(!1),[_,x]=(0,gt.useState)(!1),b=(0,_t.useResourcePermissions)({kind:"postType",name:c}),{isBoundEntityAvailable:f}=p_({clientId:l,attributes:e.link}),y=(0,gt.useMemo)((()=>({url:n,opensInNewTab:r,title:o&&(0,lu.__unstableStripHTML)(o),kind:i,type:a,id:s})),[o,r,n,i,a,s]),v=(0,xt.useInstanceId)(tx,"link-ui-link-control__title"),k=(0,xt.useInstanceId)(tx,"link-ui-link-control__description"),w=(0,ct.useBlockEditingMode)();return(0,it.jsxs)(mt.Popover,{ref:t,placement:"bottom",onClose:e.onClose,anchor:e.anchor,shift:!0,children:[!u&&!p&&(0,it.jsxs)("div",{role:"dialog","aria-labelledby":v,"aria-describedby":k,children:[(0,it.jsxs)(mt.VisuallyHidden,{children:[(0,it.jsx)("h2",{id:v,children:(0,pt.__)("Add link")}),(0,it.jsx)("p",{id:k,children:(0,pt.__)("Search for and add a link to your Navigation.")})]}),(0,it.jsx)(ct.LinkControl,{hasTextControl:!0,hasRichPreviews:!0,value:y,showInitialSuggestions:!0,withCreateSuggestion:!1,noDirectEntry:!!a,noURLSuggestion:!!a,suggestionsQuery:ex(a,i),onChange:e.onChange,onRemove:e.onRemove,onCancel:e.onCancel,handleEntities:f,renderControlBottom:()=>y?.url?.length?null:(0,it.jsx)(ox,{focusAddBlockButton:g,focusAddPageButton:_,setAddingBlock:()=>{d(!0),h(!1)},setAddingPage:()=>{m(!0),x(!1)},canAddPage:b?.canCreate&&"page"===a,canAddBlock:"default"===w})})]}),u&&(0,it.jsx)(X_,{clientId:e.clientId,onBack:()=>{d(!1),h(!0),x(!1)},onBlockInsert:e?.onBlockInsert}),p&&(0,it.jsx)(K_,{postType:c,onBack:()=>{m(!1),x(!0),h(!1)},onPageCreated:t=>{e.onChange(t),m(!1)},initialTitle:y?.url||""})]})})),ox=({setAddingBlock:e,setAddingPage:t,focusAddBlockButton:o,focusAddPageButton:n,canAddPage:r,canAddBlock:a})=>{const i="listbox",s=(0,gt.useRef)(),l=(0,gt.useRef)();return(0,gt.useEffect)((()=>{o&&s.current?.focus()}),[o]),(0,gt.useEffect)((()=>{n&&l.current?.focus()}),[n]),r||a?(0,it.jsxs)(mt.__experimentalVStack,{spacing:0,className:"link-ui-tools",children:[r&&(0,it.jsx)(mt.Button,{__next40pxDefaultSize:!0,ref:l,icon:q_,onClick:e=>{e.preventDefault(),t(!0)},"aria-haspopup":i,children:(0,pt.__)("Create page")}),a&&(0,it.jsx)(mt.Button,{__next40pxDefaultSize:!0,ref:s,icon:q_,onClick:t=>{t.preventDefault(),e(!0)},"aria-haspopup":i,children:(0,pt.__)("Add block")})]}):null};const nx=window.wp.escapeHtml,rx=(e={},t,o={})=>{const{label:n="",kind:r="",type:a=""}=o,{title:i="",label:s="",url:l,opensInNewTab:c,id:u,kind:d=r,type:p=a}=e,m=i||s,g=m.replace(/http(s?):\/\//gi,""),h=l?.replace(/http(s?):\/\//gi,"")??"",_=m&&m!==n&&g!==h?(0,nx.escapeHTML)(m):n||(0,nx.escapeHTML)(h),x="post_tag"===p?"tag":p.replace("-","_"),b=["post","page","tag","category"].indexOf(x)>-1,f=!d&&!b||"custom"===d?"custom":d,y={...void 0!==l?{url:l?encodeURI((0,no.safeDecodeURI)(l)):l}:{},..._&&{label:_},...void 0!==c&&{opensInNewTab:c},...f&&{kind:f},...x&&"URL"!==x&&{type:x}};if(l&&!u&&o.id){const e=((e,t)=>{if(!e||!t)return!1;const o=e=>e?e.replace(/\/+$/,""):"",n=(e,t=null)=>{try{const o=t||("undefined"!=typeof window?window.location.origin:"https://wordpress.org");return new URL(e,o)}catch(e){return null}},r=n(e);if(!r)return!0;const a=n(t,e);if(!a)return!0;const i=r.hostname,s=a.hostname,l=o((0,no.getPath)(r.toString())),c=o((0,no.getPath)(a.toString()));if(i!==s||l!==c)return!0;const u=r.searchParams.get("p"),d=a.searchParams.get("p");if(u&&d&&u!==d)return!0;const p=r.searchParams.get("page_id"),m=a.searchParams.get("page_id");return!(!p||!m||p===m)||!!(u&&m||p&&d)})(o.url,l);e&&(y.id=void 0,y.kind="custom",y.type="custom")}else u&&Number.isInteger(u)?y.id=u:o.id&&(y.kind=f,y.type=x);t(y);const v="id"in y?y.id:o.id,k="kind"in y?y.kind:o.kind;return{isEntityLink:!!v&&"custom"!==k,attributes:y}},ax=(0,pt.__)("Switch to '%s'"),ix=["core/navigation-link","core/navigation-submenu"],{PrivateListView:sx}=jo(ct.privateApis);function lx({block:e,insertedBlock:t,setInsertedBlock:o}){const{updateBlockAttributes:n,removeBlock:r}=(0,lt.useDispatch)(ct.store),a=ix?.includes(t?.name),i=t?.clientId===e.clientId,s=a&&i,{createBinding:l,clearBinding:c}=p_({clientId:t?.clientId,attributes:t?.attributes||{}});if(!s)return null;return(0,it.jsx)(tx,{clientId:t?.clientId,link:t?.attributes,onBlockInsert:e=>{t?.clientId&&e&&r(t.clientId,false),o(e)},onClose:()=>{!t?.attributes?.url&&t?.clientId&&r(t.clientId,!1),o(null)},onChange:e=>{const{isEntityLink:r,attributes:a}=rx(e,(i=t?.clientId,e=>{i&&n(i,e)}),t?.attributes);var i;r?l(a):c(a),o(null)}})}const cx=({clientId:e,currentMenuId:t,isLoading:o,isNavigationMenuMissing:n,onCreateNew:r})=>{const a=(0,lt.useSelect)((t=>!!t(ct.store).getBlockCount(e)),[e]),{navigationMenu:i}=Zh(t);if(t&&n)return(0,it.jsx)(V_,{onCreateNew:r,isNotice:!0});if(o)return(0,it.jsx)(mt.Spinner,{});const s=i?(0,pt.sprintf)((0,pt.__)("Structure for Navigation Menu: %s"),i?.title||(0,pt.__)("Untitled menu")):(0,pt.__)("You have not yet created any menus. Displaying a list of your Pages");return(0,it.jsxs)("div",{className:"wp-block-navigation__menu-inspector-controls",children:[!a&&(0,it.jsx)("p",{className:"wp-block-navigation__menu-inspector-controls__empty-message",children:(0,pt.__)("This Navigation Menu is empty.")}),(0,it.jsx)(sx,{rootClientId:e,isExpanded:!0,description:s,showAppender:!0,blockSettingsMenu:U_,additionalBlockContent:lx})]})};var ux=e=>{const{createNavigationMenuIsSuccess:t,createNavigationMenuIsError:o,currentMenuId:n=null,onCreateNew:r,onSelectClassicMenu:a,onSelectNavigationMenu:i,isManageMenusButtonDisabled:s,blockEditingMode:l}=e;return(0,it.jsx)(ct.InspectorControls,{group:"list",children:(0,it.jsxs)(mt.PanelBody,{title:null,children:[(0,it.jsxs)(mt.__experimentalHStack,{className:"wp-block-navigation-off-canvas-editor__header",children:[(0,it.jsx)(mt.__experimentalHeading,{className:"wp-block-navigation-off-canvas-editor__title",level:2,children:(0,pt.__)("Menu")}),"default"===l&&(0,it.jsx)(Yh,{currentMenuId:n,onSelectClassicMenu:a,onSelectNavigationMenu:i,onCreateNew:r,createNavigationMenuIsSuccess:t,createNavigationMenuIsError:o,actionLabel:ax,isManageMenusButtonDisabled:s})]}),(0,it.jsx)(cx,{...e})]})})};function dx({id:e,children:t}){return(0,it.jsx)(mt.VisuallyHidden,{children:(0,it.jsx)("div",{id:e,className:"wp-block-navigation__description",children:t})})}function px({id:e}){const[t]=(0,_t.useEntityProp)("postType","wp_navigation","title"),o=(0,pt.sprintf)((0,pt.__)('Navigation Menu: "%s"'),t);return(0,it.jsx)(dx,{id:e,children:o})}function mx({clientId:e}){const{insertBlock:t}=(0,lt.useDispatch)(ct.store),{getBlockCount:o}=(0,lt.useSelect)(ct.store),n=(0,gt.useCallback)((()=>{const n=o(e),r=(0,st.createBlock)($h.name,{kind:$h.attributes.kind,type:$h.attributes.type});t(r,n,e)}),[e,t,o]);return(0,it.jsx)(ct.BlockControls,{children:(0,it.jsx)(mt.ToolbarGroup,{children:(0,it.jsx)(mt.ToolbarButton,{name:"add-page",icon:Eh,onClick:n,children:(0,pt.__)("Add page")})})})}function gx({textColor:e,setTextColor:t,backgroundColor:o,setBackgroundColor:n,overlayTextColor:r,setOverlayTextColor:a,overlayBackgroundColor:i,setOverlayBackgroundColor:s,clientId:l,navRef:c}){const[u,d]=(0,gt.useState)(),[p,m]=(0,gt.useState)(),[g,h]=(0,gt.useState)(),[_,x]=(0,gt.useState)(),b="web"===gt.Platform.OS;(0,gt.useEffect)((()=>{if(!b)return;A_(c.current,m,d);const e=c.current?.querySelector('[data-type="core/navigation-submenu"] [data-type="core/navigation-link"]');e&&(r.color||i.color)&&A_(e,x,h)}),[b,r.color,i.color,c]);const f=(0,ct.__experimentalUseMultipleOriginColorsAndGradients)();return f.hasColorsOrGradients?(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.__experimentalColorGradientSettingsDropdown,{__experimentalIsRenderedInSidebar:!0,settings:[{colorValue:e.color,label:(0,pt.__)("Text"),onColorChange:t,resetAllFilter:()=>t(),clearable:!0,enableAlpha:!0},{colorValue:o.color,label:(0,pt.__)("Background"),onColorChange:n,resetAllFilter:()=>n(),clearable:!0,enableAlpha:!0},{colorValue:r.color,label:(0,pt.__)("Submenu & overlay text"),onColorChange:a,resetAllFilter:()=>a(),clearable:!0,enableAlpha:!0},{colorValue:i.color,label:(0,pt.__)("Submenu & overlay background"),onColorChange:s,resetAllFilter:()=>s(),clearable:!0,enableAlpha:!0}],panelId:l,...f,gradients:[],disableCustomGradients:!0}),b&&(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.ContrastChecker,{backgroundColor:u,textColor:p}),(0,it.jsx)(ct.ContrastChecker,{backgroundColor:g,textColor:_})]})]}):null}var hx=(0,ct.withColors)({textColor:"color"},{backgroundColor:"color"},{overlayBackgroundColor:"color"},{overlayTextColor:"color"})((function({attributes:e,setAttributes:t,clientId:o,isSelected:n,className:r,backgroundColor:a,setBackgroundColor:i,textColor:s,setTextColor:l,overlayBackgroundColor:c,setOverlayBackgroundColor:u,overlayTextColor:d,setOverlayTextColor:p,hasSubmenuIndicatorSetting:m=!0,customPlaceholder:g=null,__unstableLayoutClassNames:h}){const{openSubmenusOnClick:_,overlayMenu:x,showSubmenuIcon:b,templateLock:f,layout:{justifyContent:y,orientation:v="horizontal",flexWrap:k="wrap"}={},hasIcon:w,icon:C="handle"}=e,j=e.ref,S=(0,gt.useCallback)((e=>{t({ref:e})}),[t]),B=`navigationMenu/${j}`,T=(0,ct.useHasRecursion)(B),N=(0,ct.useBlockEditingMode)(),{menus:P}=Jh(),[I,D]=c_({name:"block-library/core/navigation/status"}),[M,z]=c_({name:"block-library/core/navigation/classic-menu-conversion"}),[A,L]=c_({name:"block-library/core/navigation/permissions/update"}),{create:H,status:R,error:V,value:F,isPending:E,isSuccess:O,isError:G}=function(e){const[t,o]=(0,gt.useState)(D_),[n,r]=(0,gt.useState)(null),[a,i]=(0,gt.useState)(null),{saveEntityRecord:s,editEntityRecord:l}=(0,lt.useDispatch)(_t.store),c=T_(e);return{create:(0,gt.useCallback)((async(e=null,t=[],n)=>{if(e&&"string"!=typeof e)throw i("Invalid title supplied when creating Navigation Menu."),o(P_),new Error("Value of supplied title argument was not a string.");o(I_),r(null),i(null),e||(e=await c().catch((e=>{throw i(e?.message),o(P_),new Error("Failed to create title when saving new Navigation Menu.",{cause:e})})));const a={title:e,content:(0,st.serialize)(t),status:n};return s("postType","wp_navigation",a).then((e=>(r(e),o(N_),"publish"!==n&&l("postType","wp_navigation",e.id,{status:"publish"}),e))).catch((e=>{throw i(e?.message),o(P_),new Error("Unable to save new Navigation Menu",{cause:e})}))}),[s,l,c]),status:t,value:n,error:a,isIdle:t===D_,isPending:t===I_,isSuccess:t===N_,isError:t===P_}}(o),$=async()=>{await H("")},{hasUncontrolledInnerBlocks:U,uncontrolledInnerBlocks:q,isInnerBlockSelected:W,innerBlocks:Z}=function(e){return(0,lt.useSelect)((t=>{const{getBlock:o,getBlocks:n,hasSelectedInnerBlock:r}=t(ct.store),a=o(e).innerBlocks,i=!!a?.length,s=i?M_:n(e);return{innerBlocks:i?a:s,hasUncontrolledInnerBlocks:i,uncontrolledInnerBlocks:a,controlledInnerBlocks:s,isInnerBlockSelected:r(e,!0)}}),[e])}(o),J=!!Z.find((e=>"core/navigation-submenu"===e.name)),{replaceInnerBlocks:Q,selectBlock:K,__unstableMarkNextChangeAsNotPersistent:Y}=(0,lt.useDispatch)(ct.store),[X,ee]=(0,gt.useState)(!1),[te,oe]=(0,gt.useState)(!1),{hasResolvedNavigationMenus:ne,isNavigationMenuResolved:re,isNavigationMenuMissing:ae,canUserUpdateNavigationMenu:ie,hasResolvedCanUserUpdateNavigationMenu:se,canUserDeleteNavigationMenu:le,hasResolvedCanUserDeleteNavigationMenu:ce,canUserCreateNavigationMenus:ue,isResolvingCanUserCreateNavigationMenus:de,hasResolvedCanUserCreateNavigationMenus:pe}=Zh(j),me=ne&&ae,{convert:ge,status:he,error:_e}=f_(H),xe=he===x_,be=(0,gt.useCallback)(((e,t={focusNavigationBlock:!1})=>{const{focusNavigationBlock:n}=t;S(e),n&&K(o)}),[K,o,S]),fe=!ae&&re,ye=U&&!fe,{getNavigationFallbackId:ve}=jo((0,lt.useSelect)(_t.store)),ke=j||ye?null:ve();(0,gt.useEffect)((()=>{j||ye||!ke||(Y(),S(ke))}),[j,S,ye,ke,Y]);const we=(0,gt.useRef)(),Ce="nav",je=!j&&!E&&!xe&&ne&&0===P?.length&&!U,Se=!ne||E||xe||!(!j||fe||xe),Be=e.style?.typography?.textDecoration,Te=(0,lt.useSelect)((e=>e(ct.store).__unstableHasActiveBlockOverlayActive(o)),[o]),Ne="never"!==x,Pe=(0,ct.useBlockProps)({ref:we,className:Dt(r,{"items-justified-right":"right"===y,"items-justified-space-between":"space-between"===y,"items-justified-left":"left"===y,"items-justified-center":"center"===y,"is-vertical":"vertical"===v,"no-wrap":"nowrap"===k,"is-responsive":Ne,"has-text-color":!!s.color||!!s?.class,[(0,ct.getColorClassName)("color",s?.slug)]:!!s?.slug,"has-background":!!a.color||a.class,[(0,ct.getColorClassName)("background-color",a?.slug)]:!!a?.slug,[`has-text-decoration-${Be}`]:Be,"block-editor-block-content-overlay":Te},h),style:{color:!s?.slug&&s?.color,backgroundColor:!a?.slug&&a?.color}}),Ie=async e=>ge(e.id,e.name,"draft"),De=e=>{be(e)};(0,gt.useEffect)((()=>{D(),E&&(0,Fh.speak)((0,pt.__)("Creating Navigation Menu.")),O&&(be(F?.id,{focusNavigationBlock:!0}),I((0,pt.__)("Navigation Menu successfully created."))),G&&I((0,pt.__)("Failed to create Navigation Menu."))}),[R,V,F?.id,G,O,E,be,D,I]),(0,gt.useEffect)((()=>{z(),he===x_&&(0,Fh.speak)((0,pt.__)("Classic menu importing.")),he===h_&&(M((0,pt.__)("Classic menu imported successfully.")),be(F?.id,{focusNavigationBlock:!0})),he===__&&M((0,pt.__)("Classic menu import failed."))}),[he,_e,z,M,F?.id,be]),(0,gt.useEffect)((()=>{n||W||L(),(n||W)&&(j&&!me&&se&&!ie&&A((0,pt.__)("You do not have permission to edit this Menu. Any changes made will not be saved.")),j||!pe||ue||A((0,pt.__)("You do not have permission to create Navigation Menus.")))}),[n,W,ie,se,ue,pe,j,L,A,me]);const Me=ue||ie,ze=Dt("wp-block-navigation__overlay-menu-preview",{open:te}),Ae=b||_?"":(0,pt.__)('The current menu options offer reduced accessibility for users and are not recommended. Enabling either "Open on Click" or "Show arrow" offers enhanced accessibility by allowing keyboard users to browse submenus selectively.'),Le=(0,gt.useRef)(!0);(0,gt.useEffect)((()=>{!Le.current&&Ae&&(0,Fh.speak)(Ae),Le.current=!1}),[Ae]);const He=(0,xt.useInstanceId)(u_,"overlay-menu-preview"),Re=vt(),Ve=(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.InspectorControls,{children:m&&(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Display"),resetAll:()=>{t({showSubmenuIcon:!0,openSubmenusOnClick:!1,overlayMenu:"mobile",hasIcon:!0,icon:"handle"})},dropdownMenuProps:Re,children:[Ne&&(0,it.jsxs)(it.Fragment,{children:[(0,it.jsxs)(mt.Button,{__next40pxDefaultSize:!0,className:ze,onClick:()=>{oe(!te)},"aria-label":(0,pt.__)("Overlay menu controls"),"aria-controls":He,"aria-expanded":te,children:[w&&(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(t_,{icon:C}),(0,it.jsx)(Oh,{icon:Gh})]}),!w&&(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)("span",{children:(0,pt.__)("Menu")}),(0,it.jsx)("span",{children:(0,pt.__)("Close")})]})]}),te&&(0,it.jsx)(mt.__experimentalVStack,{id:He,spacing:4,style:{gridColumn:"span 2"},children:(0,it.jsx)(u_,{setAttributes:t,hasIcon:w,icon:C,hidden:!te})})]}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>"mobile"!==x,label:(0,pt.__)("Overlay Menu"),onDeselect:()=>t({overlayMenu:"mobile"}),isShownByDefault:!0,children:(0,it.jsxs)(mt.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("Overlay Menu"),"aria-label":(0,pt.__)("Configure overlay menu"),value:x,help:(0,pt.__)("Collapses the navigation options in a menu icon opening an overlay."),onChange:e=>t({overlayMenu:e}),isBlock:!0,children:[(0,it.jsx)(mt.__experimentalToggleGroupControlOption,{value:"never",label:(0,pt.__)("Off")}),(0,it.jsx)(mt.__experimentalToggleGroupControlOption,{value:"mobile",label:(0,pt.__)("Mobile")}),(0,it.jsx)(mt.__experimentalToggleGroupControlOption,{value:"always",label:(0,pt.__)("Always")})]})}),J&&(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)("h3",{className:"wp-block-navigation__submenu-header",children:(0,pt.__)("Submenus")}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>_,label:(0,pt.__)("Open on click"),onDeselect:()=>t({openSubmenusOnClick:!1,showSubmenuIcon:!0}),isShownByDefault:!0,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,checked:_,onChange:e=>{t({openSubmenusOnClick:e,...e&&{showSubmenuIcon:!0}})},label:(0,pt.__)("Open on click")})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!b,label:(0,pt.__)("Show arrow"),onDeselect:()=>t({showSubmenuIcon:!0}),isDisabled:e.openSubmenusOnClick,isShownByDefault:!0,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,checked:b,onChange:e=>{t({showSubmenuIcon:e})},disabled:e.openSubmenusOnClick,label:(0,pt.__)("Show arrow")})}),Ae&&(0,it.jsx)(mt.Notice,{spokenMessage:null,status:"warning",isDismissible:!1,className:"wp-block-navigation__submenu-accessibility-notice",children:Ae})]})]})}),(0,it.jsx)(ct.InspectorControls,{group:"color",children:(0,it.jsx)(gx,{textColor:s,setTextColor:l,backgroundColor:a,setBackgroundColor:i,overlayTextColor:d,setOverlayTextColor:p,overlayBackgroundColor:c,setOverlayBackgroundColor:u,clientId:o,navRef:we})})]}),Fe=`${o}-desc`,Ee="always"===x,Oe=!Me||!ne;if(ye&&!E)return(0,it.jsxs)(Ce,{...Pe,"aria-describedby":je?void 0:Fe,children:[(0,it.jsx)(dx,{id:Fe,children:(0,pt.__)("Unsaved Navigation Menu.")}),(0,it.jsx)(ux,{clientId:o,createNavigationMenuIsSuccess:O,createNavigationMenuIsError:G,currentMenuId:j,isNavigationMenuMissing:ae,isManageMenusButtonDisabled:Oe,onCreateNew:$,onSelectClassicMenu:Ie,onSelectNavigationMenu:De,isLoading:Se,blockEditingMode:N}),"default"===N&&Ve,(0,it.jsx)(o_,{id:o,onToggle:ee,isOpen:X,hasIcon:w,icon:C,isResponsive:Ne,isHiddenByDefault:Ee,overlayBackgroundColor:c,overlayTextColor:d,children:(0,it.jsx)(s_,{createNavigationMenu:H,blocks:q,hasSelection:n||W})})]});if(j&&ae)return(0,it.jsxs)(Ce,{...Pe,children:[(0,it.jsx)(ux,{clientId:o,createNavigationMenuIsSuccess:O,createNavigationMenuIsError:G,currentMenuId:j,isNavigationMenuMissing:ae,isManageMenusButtonDisabled:Oe,onCreateNew:$,onSelectClassicMenu:Ie,onSelectNavigationMenu:De,isLoading:Se,blockEditingMode:N}),(0,it.jsx)(V_,{onCreateNew:$})]});if(fe&&T)return(0,it.jsx)("div",{...Pe,children:(0,it.jsx)(ct.Warning,{children:(0,pt.__)("Block cannot be rendered inside itself.")})});const Ge=g||Xh;return je&&g?(0,it.jsx)(Ce,{...Pe,children:(0,it.jsx)(Ge,{isSelected:n,currentMenuId:j,clientId:o,canUserCreateNavigationMenus:ue,isResolvingCanUserCreateNavigationMenus:de,onSelectNavigationMenu:De,onSelectClassicMenu:Ie,onCreateEmpty:$})}):(0,it.jsx)(_t.EntityProvider,{kind:"postType",type:"wp_navigation",id:j,children:(0,it.jsxs)(ct.RecursionProvider,{uniqueId:B,children:[(0,it.jsx)(ux,{clientId:o,createNavigationMenuIsSuccess:O,createNavigationMenuIsError:G,currentMenuId:j,isNavigationMenuMissing:ae,isManageMenusButtonDisabled:Oe,onCreateNew:$,onSelectClassicMenu:Ie,onSelectNavigationMenu:De,isLoading:Se,blockEditingMode:N}),"default"===N&&Ve,"contentOnly"===N&&fe&&(0,it.jsx)(mx,{clientId:o}),"default"===N&&fe&&(0,it.jsxs)(ct.InspectorControls,{group:"advanced",children:[se&&ie&&(0,it.jsx)(r_,{}),ce&&le&&(0,it.jsx)(l_,{onDelete:()=>{Q(o,[]),I((0,pt.__)("Navigation Menu successfully deleted."))}}),(0,it.jsx)(R_,{disabled:Oe,className:"wp-block-navigation-manage-menus-button"})]}),(0,it.jsxs)(Ce,{...Pe,"aria-describedby":je||Se?void 0:Fe,children:[Se&&!Ee&&(0,it.jsx)("div",{className:"wp-block-navigation__loading-indicator-container",children:(0,it.jsx)(mt.Spinner,{className:"wp-block-navigation__loading-indicator"})}),(!Se||Ee)&&(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(px,{id:Fe}),(0,it.jsx)(o_,{id:o,onToggle:ee,hasIcon:w,icon:C,isOpen:X,isResponsive:Ne,isHiddenByDefault:Ee,overlayBackgroundColor:c,overlayTextColor:d,children:fe&&(0,it.jsx)(n_,{clientId:o,hasCustomPlaceholder:!!g,templateLock:f,orientation:v})})]})]})]})})}));const _x={fontStyle:"var:preset|font-style|",fontWeight:"var:preset|font-weight|",textDecoration:"var:preset|text-decoration|",textTransform:"var:preset|text-transform|"},xx=({navigationMenuId:e,...t})=>({...t,ref:e}),bx=e=>{if(e.layout)return e;const{itemsJustification:t,orientation:o,...n}=e;return(t||o)&&Object.assign(n,{layout:{type:"flex",...t&&{justifyContent:t},...o&&{orientation:o}}}),n},fx={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}},layout:{allowSwitching:!1,allowInheriting:!1,default:{type:"flex"}}},save:()=>(0,it.jsx)(ct.InnerBlocks.Content,{}),isEligible:({navigationMenuId:e})=>!!e,migrate:xx},yx={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:()=>(0,it.jsx)(ct.InnerBlocks.Content,{}),isEligible:({itemsJustification:e,orientation:t})=>!!e||!!t,migrate:(0,xt.compose)(xx,bx)},vx={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:()=>(0,it.jsx)(ct.InnerBlocks.Content,{}),migrate:(0,xt.compose)(xx,bx,Yo),isEligible:({style:e})=>e?.typography?.fontFamily},kx=[fx,yx,vx,{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:(0,xt.compose)(xx,bx,Yo,(function(e){return delete e.isResponsive,{...e,overlayMenu:"mobile"}})),save:()=>(0,it.jsx)(ct.InnerBlocks.Content,{})},{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:()=>(0,it.jsx)(ct.InnerBlocks.Content,{}),isEligible(e){if(!e.style||!e.style.typography)return!1;for(const t in _x){const o=e.style.typography[t];if(o&&o.startsWith(_x[t]))return!0}return!1},migrate:(0,xt.compose)(xx,bx,Yo,(function(e){return{...e,style:{...e.style,typography:Object.fromEntries(Object.entries(e.style.typography??{}).map((([e,t])=>{const o=_x[e];if(o&&t.startsWith(o)){const n=t.slice(o.length);return"textDecoration"===e&&"strikethrough"===n?[e,"line-through"]:[e,n]}return[e,t]})))}}}))},{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:(0,xt.compose)(xx,(e=>{const{rgbTextColor:t,rgbBackgroundColor:o,...n}=e;return{...n,customTextColor:e.textColor?void 0:e.rgbTextColor,customBackgroundColor:e.backgroundColor?void 0:e.rgbBackgroundColor}})),save:()=>(0,it.jsx)(ct.InnerBlocks.Content,{})}];var wx=kx;const{name:Cx}=Vh,jx={icon:Rh,example:{attributes:{overlayMenu:"never"},innerBlocks:[{name:"core/navigation-link",attributes:{label:(0,pt.__)("Home"),url:"https://make.wordpress.org/"}},{name:"core/navigation-link",attributes:{label:(0,pt.__)("About"),url:"https://make.wordpress.org/"}},{name:"core/navigation-link",attributes:{label:(0,pt.__)("Contact"),url:"https://make.wordpress.org/"}}]},edit:hx,save:function({attributes:e}){if(!e.ref)return(0,it.jsx)(ct.InnerBlocks.Content,{})},__experimentalLabel:({ref:e})=>{if(!e)return;const t=(0,lt.select)(_t.store).getEditedEntityRecord("postType","wp_navigation",e);return t?.title?(0,ao.decodeEntities)(t.title):void 0},deprecated:wx},Sx=()=>jt({name:Cx,metadata:Vh,settings:jx}),Bx=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/navigation-link","title":"Custom Link","category":"design","parent":["core/navigation"],"allowedBlocks":["core/navigation-link","core/navigation-submenu","core/page-list"],"description":"Add a page, link, or another item to your navigation.","textdomain":"default","attributes":{"label":{"type":"string","role":"content"},"type":{"type":"string"},"description":{"type":"string"},"rel":{"type":"string"},"id":{"type":"number"},"opensInNewTab":{"type":"boolean","default":false},"url":{"type":"string"},"title":{"type":"string"},"kind":{"type":"string"},"isTopLevelLink":{"type":"boolean"}},"usesContext":["textColor","customTextColor","backgroundColor","customBackgroundColor","overlayTextColor","customOverlayTextColor","overlayBackgroundColor","customOverlayBackgroundColor","fontSize","customFontSize","showSubmenuIcon","maxNestingLevel","style"],"supports":{"reusable":false,"html":false,"__experimentalSlashInserter":true,"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"renaming":false,"interactivity":{"clientNavigation":true}},"editorStyle":"wp-block-navigation-link-editor","style":"wp-block-navigation-link"}');function Tx(e,t){if("post-type"===t)switch(e){case"post":return(0,pt.__)("post");case"page":return(0,pt.__)("page");default:return e||(0,pt.__)("post")}if("taxonomy"===t)switch(e){case"category":return(0,pt.__)("category");case"tag":return(0,pt.__)("tag");default:return e||(0,pt.__)("term")}return e||(0,pt.__)("item")}function Nx({attributes:e,setAttributes:t,clientId:o}){const{label:n,url:r,description:a,rel:i,opensInNewTab:s}=e,l=(0,gt.useRef)(r),c=vt(),u=(0,gt.useRef)(),d=(0,gt.useRef)(!1),p=(0,xt.useInstanceId)(Nx,"link-input"),m=`${p}__help`,[g,h]=(0,gt.useState)(r);(0,gt.useEffect)((()=>{h(r),l.current=r}),[r]);const{hasUrlBinding:_,isBoundEntityAvailable:x,clearBinding:b}=p_({clientId:o,attributes:e}),{updateBlockAttributes:f}=(0,lt.useDispatch)(ct.store);return(0,gt.useEffect)((()=>{!_&&d.current&&u.current?.select(),d.current=!1}),[_]),(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{t({label:"",url:"",description:"",rel:"",opensInNewTab:!1})},dropdownMenuProps:c,children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!!n,label:(0,pt.__)("Text"),onDeselect:()=>t({label:""}),isShownByDefault:!0,children:(0,it.jsx)(mt.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,pt.__)("Text"),value:n?(0,lu.__unstableStripHTML)(n):"",onChange:e=>{t({label:e})},autoComplete:"off"})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!!r,label:(0,pt.__)("Link"),onDeselect:()=>t({url:""}),isShownByDefault:!0,children:(0,it.jsx)(mt.__experimentalInputControl,{ref:u,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,id:p,label:(0,pt.__)("Link"),value:_&&!x?"":g?(0,no.safeDecodeURI)(g):"",autoComplete:"off",type:"url",disabled:_,"aria-invalid":_&&!x?"true":void 0,"aria-describedby":m,className:_&&!x?"navigation-link-control__input-with-error-suffix":void 0,onChange:e=>{x||h(e)},onFocus:()=>{x||(l.current=r)},onBlur:()=>{if(x)return;const o=g||l.current;h(o),rx({url:o},t,{...e,url:l.current})},help:_&&!x?(0,it.jsx)(Dx,{id:m,type:e.type,kind:e.kind}):x&&(0,it.jsx)(Px,{type:e.type,kind:e.kind}),suffix:_&&(0,it.jsx)(mt.Button,{icon:hn,onClick:()=>{b(),f(o,{url:l.current,id:void 0}),d.current=!0},"aria-describedby":m,showTooltip:!0,label:(0,pt.__)("Unsync and edit"),__next40pxDefaultSize:!0,className:_&&!x?"navigation-link-control__error-suffix-button":void 0})})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!!s,label:(0,pt.__)("Open in new tab"),onDeselect:()=>t({opensInNewTab:!1}),isShownByDefault:!0,children:(0,it.jsx)(mt.CheckboxControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Open in new tab"),checked:s,onChange:e=>t({opensInNewTab:e})})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!!a,label:(0,pt.__)("Description"),onDeselect:()=>t({description:""}),isShownByDefault:!0,children:(0,it.jsx)(mt.TextareaControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Description"),value:a||"",onChange:e=>{t({description:e})},help:(0,pt.__)("The description will be displayed in the menu if the current theme supports it.")})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!!i,label:(0,pt.__)("Rel attribute"),onDeselect:()=>t({rel:""}),isShownByDefault:!0,children:(0,it.jsx)(mt.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,pt.__)("Rel attribute"),value:i||"",onChange:e=>{t({rel:e})},autoComplete:"off",help:(0,pt.__)("The relationship of the linked URL as space-separated link types.")})})]})}function Px({type:e,kind:t}){const o=Tx(e,t);return(0,pt.sprintf)((0,pt.__)("Synced with the selected %s."),o)}function Ix({type:e,kind:t}){const o=Tx(e,t);return(0,pt.sprintf)((0,pt.__)("Synced %s is missing. Please update or remove this link."),o)}function Dx({id:e,type:t,kind:o}){return(0,it.jsx)("span",{id:e,className:"navigation-link-control__error-text",children:(0,it.jsx)(Ix,{type:t,kind:o})})}const Mx={name:"core/navigation-link"},zx=["core/navigation-link","core/navigation-submenu"];var Ax=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M4.75 4a.75.75 0 0 0-.75.75v7.826c0 .2.08.39.22.53l6.72 6.716a2.313 2.313 0 0 0 3.276-.001l5.61-5.611-.531-.53.532.528a2.315 2.315 0 0 0 0-3.264L13.104 4.22a.75.75 0 0 0-.53-.22H4.75ZM19 12.576a.815.815 0 0 1-.236.574l-5.61 5.611a.814.814 0 0 1-1.153 0L5.5 12.264V5.5h6.763l6.5 6.502a.816.816 0 0 1 .237.574ZM8.75 9.75a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"})}),Lx=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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"})});function Hx(e){switch(e){case"post":return fm;case"page":return Eh;case"tag":return Ax;case"category":return Un;default:return Lx}}function Rx(e,t){if("core/navigation-link"!==t)return e;if(e.variations){const t=(e,t)=>e.type===t.type,o=e.variations.map((e=>({...e,...!e.icon&&{icon:Hx(e.name)},...!e.isActive&&{isActive:t}})));return{...e,variations:o}}return e}const Vx={from:[{type:"block",blocks:["core/site-logo"],transform:()=>(0,st.createBlock)("core/navigation-link")},{type:"block",blocks:["core/spacer"],transform:()=>(0,st.createBlock)("core/navigation-link")},{type:"block",blocks:["core/home-link"],transform:()=>(0,st.createBlock)("core/navigation-link")},{type:"block",blocks:["core/social-links"],transform:()=>(0,st.createBlock)("core/navigation-link")},{type:"block",blocks:["core/search"],transform:()=>(0,st.createBlock)("core/navigation-link")},{type:"block",blocks:["core/page-list"],transform:()=>(0,st.createBlock)("core/navigation-link")},{type:"block",blocks:["core/buttons"],transform:()=>(0,st.createBlock)("core/navigation-link")}],to:[{type:"block",blocks:["core/navigation-submenu"],transform:(e,t)=>(0,st.createBlock)("core/navigation-submenu",e,t)},{type:"block",blocks:["core/spacer"],transform:()=>(0,st.createBlock)("core/spacer")},{type:"block",blocks:["core/site-logo"],transform:()=>(0,st.createBlock)("core/site-logo")},{type:"block",blocks:["core/home-link"],transform:()=>(0,st.createBlock)("core/home-link")},{type:"block",blocks:["core/social-links"],transform:()=>(0,st.createBlock)("core/social-links")},{type:"block",blocks:["core/search"],transform:()=>(0,st.createBlock)("core/search",{showLabel:!1,buttonUseIcon:!0,buttonPosition:"button-inside"})},{type:"block",blocks:["core/page-list"],transform:()=>(0,st.createBlock)("core/page-list")},{type:"block",blocks:["core/buttons"],transform:({label:e,url:t,rel:o,title:n,opensInNewTab:r})=>(0,st.createBlock)("core/buttons",{},[(0,st.createBlock)("core/button",{text:e,url:t,rel:o,title:n,linkTarget:r?"_blank":void 0})])}]};var Fx=Vx;const{name:Ex}=Bx,Ox={icon:ed,__experimentalLabel:({label:e})=>e,merge:(e,{label:t=""})=>({...e,label:e.label+t}),edit:function e({attributes:t,isSelected:o,setAttributes:n,insertBlocksAfter:r,mergeBlocks:a,onReplace:i,context:s,clientId:l}){const{id:c,label:u,type:d,url:p,description:m,kind:g,metadata:h}=t,{maxNestingLevel:_}=s,{replaceBlock:x,__unstableMarkNextChangeAsNotPersistent:b,selectBlock:f}=(0,lt.useDispatch)(ct.store),[y,v]=(0,gt.useState)(o&&!p),[k,w]=(0,gt.useState)(null),C=(0,gt.useRef)(null),j=(e=>{const[t,o]=(0,gt.useState)(!1);return(0,gt.useEffect)((()=>{const{ownerDocument:t}=e.current;function n(e){a(e)}function r(){o(!1)}function a(t){e.current.contains(t.target)?o(!0):o(!1)}return t.addEventListener("dragstart",n),t.addEventListener("dragend",r),t.addEventListener("dragenter",a),()=>{t.removeEventListener("dragstart",n),t.removeEventListener("dragend",r),t.removeEventListener("dragenter",a)}}),[e]),t})(C),S=(0,pt.__)("Add label…"),B=(0,gt.useRef)(),T=(0,gt.useRef)(),N=(0,xt.usePrevious)(p),P=(0,gt.useRef)(!p),{isAtMaxNesting:I,isTopLevelLink:D,isParentOfSelectedBlock:M,hasChildren:z,validateLinkStatus:A,parentBlockClientId:L}=(0,lt.useSelect)((e=>{const{getBlockCount:t,getBlockName:o,getBlockRootClientId:n,hasSelectedInnerBlock:r,getBlockParentsByBlockName:a,getSelectedBlockClientId:i}=e(ct.store),s=n(l),c=o(s),u="core/navigation"===c,d=i(),p=u?s:a(l,"core/navigation")[0],m="core/navigation-submenu"===c?s:p,g=d===p||r(p,!0);return{isAtMaxNesting:a(l,zx).length>=_,isTopLevelLink:u,isParentOfSelectedBlock:r(l,!0),hasChildren:!!t(l),validateLinkStatus:g,parentBlockClientId:m}}),[l,_]),{getBlocks:H}=(0,lt.useSelect)(ct.store),{clearBinding:R,createBinding:V,hasUrlBinding:F,isBoundEntityAvailable:E}=p_({clientId:l,attributes:t}),[O,G]=((e,t,o,n)=>{const r="post-type"===e||"post"===t||"page"===t,a=Number.isInteger(o),i=(0,ct.useBlockEditingMode)(),{postStatus:s,isDeleted:l}=(0,lt.useSelect)((e=>{if(!r)return{postStatus:null,isDeleted:!1};if("disabled"===i||!n)return{postStatus:null,isDeleted:!1};const{getEntityRecord:a,hasFinishedResolution:s}=e(_t.store),l=a("postType",t,o),c=s("getEntityRecord",["postType",t,o])&&void 0===l;return{postStatus:l?.status,isDeleted:c}}),[r,i,n,t,o]);return[r&&a&&(l||s&&"trash"===s),"draft"===s]})(g,d,c,A),$=(0,gt.useCallback)((()=>{let e=H(l);0===e.length&&(e=[(0,st.createBlock)("core/navigation-link")],f(e[0].clientId));const o=(0,st.createBlock)("core/navigation-submenu",t,e);x(l,o)}),[H,l,f,x,t]);(0,gt.useEffect)((()=>{P.current&&o&&!p&&f(L)}),[]),(0,gt.useEffect)((()=>{z&&(b(),$())}),[z,b,$]),(0,gt.useEffect)((()=>{!N&&p&&y&&(0,no.isURL)((0,no.prependHTTP)(u))&&/^.+\.[a-z]+/.test(u)&&function(){B.current.focus();const{ownerDocument:e}=B.current,{defaultView:t}=e,o=t.getSelection(),n=e.createRange();n.selectNodeContents(B.current),o.removeAllRanges(),o.addRange(n)}()}),[N,p,y,u]);const{textColor:U,customTextColor:q,backgroundColor:W,customBackgroundColor:Z}=L_(s,!D),J=(0,xt.useInstanceId)(e),Q=F&&!E,K=Q?(0,pt.sprintf)("navigation-link-edit-%d-desc",J):void 0,Y=(0,ct.useBlockProps)({ref:(0,xt.useMergeRefs)([w,C]),className:Dt("wp-block-navigation-item",{"is-editing":o||M,"is-dragging-within":j,"has-link":!!p,"has-child":z,"has-text-color":!!U||!!q,[(0,ct.getColorClassName)("color",U)]:!!U,"has-background":!!W||Z,[(0,ct.getColorClassName)("background-color",W)]:!!W}),"aria-describedby":K,"aria-invalid":Q,style:{color:!U&&q,backgroundColor:!W&&Z},onKeyDown:function(e){mn.isKeyboardEvent.primary(e,"k")&&(e.preventDefault(),e.stopPropagation(),v(!0))}}),X=(0,ct.useInnerBlocksProps)({...Y,className:"remove-outline"},{defaultBlock:Mx,directInsert:!0,renderAppender:!1});(!p||O||G||F&&!E)&&(Y.onClick=()=>{v(!0)});const ee=Dt("wp-block-navigation-item__content",{"wp-block-navigation-link__placeholder":!p||O||G||F&&!E}),te=function(e){let t="";switch(e){case"post":t=(0,pt.__)("Select post");break;case"page":t=(0,pt.__)("Select page");break;case"category":t=(0,pt.__)("Select category");break;case"tag":t=(0,pt.__)("Select tag");break;default:t=(0,pt.__)("Add link")}return t}(d),oe=`(${O?(0,pt.__)("Invalid"):(0,pt.__)("Draft")})`;return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.BlockControls,{children:(0,it.jsxs)(mt.ToolbarGroup,{children:[(0,it.jsx)(mt.ToolbarButton,{name:"link",icon:gn,title:(0,pt.__)("Link"),shortcut:mn.displayShortcut.primary("k"),onClick:()=>{v(!0)}}),!I&&(0,it.jsx)(mt.ToolbarButton,{name:"submenu",icon:F_,title:(0,pt.__)("Add submenu"),onClick:$})]})}),(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsx)(Nx,{attributes:t,setAttributes:n,clientId:l})}),(0,it.jsxs)("div",{...Y,children:[Q&&(0,it.jsx)(mt.VisuallyHidden,{id:K,children:(0,it.jsx)(Ix,{type:d,kind:g})}),(0,it.jsxs)("a",{className:ee,children:[p||h?.bindings?.url?(0,it.jsxs)(it.Fragment,{children:[!O&&!G&&(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.RichText,{ref:B,identifier:"label",className:"wp-block-navigation-item__label",value:u,onChange:e=>n({label:e}),onMerge:a,onReplace:i,__unstableOnSplitAtEnd:()=>r((0,st.createBlock)("core/navigation-link")),"aria-label":(0,pt.__)("Navigation link text"),placeholder:S,withoutInteractiveFormatting:!0}),m&&(0,it.jsx)("span",{className:"wp-block-navigation-item__description",children:m})]}),(O||G)&&(0,it.jsx)("div",{className:Dt("wp-block-navigation-link__placeholder-text","wp-block-navigation-link__label",{"is-invalid":O,"is-draft":G}),children:(0,it.jsx)("span",{children:`${(0,ao.decodeEntities)(u)} ${O||G?oe:""}`.trim()})})]}):(0,it.jsx)("div",{className:"wp-block-navigation-link__placeholder-text",children:(0,it.jsx)("span",{children:te})}),y&&(0,it.jsx)(tx,{ref:T,clientId:l,link:t,onClose:()=>{v(!1),p||F?P.current&&f(l):i([])},anchor:k,onRemove:function(){n({url:void 0,label:void 0,id:void 0,kind:void 0,type:void 0,opensInNewTab:!1}),v(!1)},onChange:e=>{const{isEntityLink:o,attributes:r}=rx(e,n,t);o?V(r):R(r)}})]}),(0,it.jsx)("div",{...X})]})]})},save:function(){return(0,it.jsx)(ct.InnerBlocks.Content,{})},example:{attributes:{label:(0,pt._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:({nofollow:e,...t})=>({rel:e?"nofollow":"",...t}),save:()=>(0,it.jsx)(ct.InnerBlocks.Content,{})}],transforms:Fx},Gx=()=>((0,vl.addFilter)("blocks.registerBlockType","core/navigation-link",Rx),jt({name:Ex,metadata:Bx,settings:Ox})),$x=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/navigation-submenu","title":"Submenu","category":"design","parent":["core/navigation"],"description":"Add a submenu to your navigation.","textdomain":"default","attributes":{"label":{"type":"string","role":"content"},"type":{"type":"string"},"description":{"type":"string"},"rel":{"type":"string"},"id":{"type":"number"},"opensInNewTab":{"type":"boolean","default":false},"url":{"type":"string"},"title":{"type":"string"},"kind":{"type":"string"},"isTopLevelItem":{"type":"boolean"}},"usesContext":["textColor","customTextColor","backgroundColor","customBackgroundColor","overlayTextColor","customOverlayTextColor","overlayBackgroundColor","customOverlayBackgroundColor","fontSize","customFontSize","showSubmenuIcon","maxNestingLevel","openSubmenusOnClick","style"],"supports":{"reusable":false,"html":false,"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true}},"editorStyle":"wp-block-navigation-submenu-editor","style":"wp-block-navigation-submenu"}');var Ux=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"m13.955 20.748 8-17.5-.91-.416L19.597 6H13.5v1.5h5.411l-1.6 3.5H13.5v1.5h3.126l-1.6 3.5H13.5l.028 1.5h.812l-1.295 2.832.91.416ZM17.675 16l-.686 1.5h4.539L21.5 16h-3.825Zm2.286-5-.686 1.5H21.5V11h-1.54ZM2 12c0 3.58 2.42 5.5 6 5.5h.5V19l3-2.5-3-2.5v2H8c-2.48 0-4.5-1.52-4.5-4S5.52 7.5 8 7.5h3.5V6H8c-3.58 0-6 2.42-6 6Z"})});const qx=()=>(0,it.jsx)(mt.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:(0,it.jsx)(mt.Path,{d:"M1.50002 4L6.00002 8L10.5 4",strokeWidth:"1.5"})}),Wx=["core/navigation-link","core/navigation-submenu","core/page-list"];const Zx={to:[{type:"block",blocks:["core/navigation-link"],isMatch:(e,t)=>0===t?.innerBlocks?.length,transform:e=>(0,st.createBlock)("core/navigation-link",e)},{type:"block",blocks:["core/spacer"],isMatch:(e,t)=>0===t?.innerBlocks?.length,transform:()=>(0,st.createBlock)("core/spacer")},{type:"block",blocks:["core/site-logo"],isMatch:(e,t)=>0===t?.innerBlocks?.length,transform:()=>(0,st.createBlock)("core/site-logo")},{type:"block",blocks:["core/home-link"],isMatch:(e,t)=>0===t?.innerBlocks?.length,transform:()=>(0,st.createBlock)("core/home-link")},{type:"block",blocks:["core/social-links"],isMatch:(e,t)=>0===t?.innerBlocks?.length,transform:()=>(0,st.createBlock)("core/social-links")},{type:"block",blocks:["core/search"],isMatch:(e,t)=>0===t?.innerBlocks?.length,transform:()=>(0,st.createBlock)("core/search")}]};var Jx=Zx;const{name:Qx}=$x,Kx={icon:({context:e})=>"list-view"===e?Eh:F_,__experimentalLabel(e,{context:t}){const{label:o}=e,n=e?.metadata?.name;return"list-view"===t&&(n||o)&&e?.metadata?.name||o},edit:function({attributes:e,isSelected:t,setAttributes:o,mergeBlocks:n,onReplace:r,context:a,clientId:i}){const{label:s,url:l,description:c}=e,{showSubmenuIcon:u,maxNestingLevel:d,openSubmenusOnClick:p}=a,m="default"!==(0,ct.useBlockEditingMode)()||p,{clearBinding:g,createBinding:h}=p_({clientId:i,attributes:e}),{__unstableMarkNextChangeAsNotPersistent:_,replaceBlock:x}=(0,lt.useDispatch)(ct.store),[b,f]=(0,gt.useState)(!1),[y,v]=(0,gt.useState)(null),k=(0,gt.useRef)(null),w=(e=>{const[t,o]=(0,gt.useState)(!1);return(0,gt.useEffect)((()=>{const{ownerDocument:t}=e.current;function n(e){a(e)}function r(){o(!1)}function a(t){e.current.contains(t.target)?o(!0):o(!1)}return t.addEventListener("dragstart",n),t.addEventListener("dragend",r),t.addEventListener("dragenter",a),()=>{t.removeEventListener("dragstart",n),t.removeEventListener("dragend",r),t.removeEventListener("dragenter",a)}}),[]),t})(k),C=(0,pt.__)("Add text…"),j=(0,gt.useRef)(),{parentCount:S,isParentOfSelectedBlock:B,isImmediateParentOfSelectedBlock:T,hasChildren:N,selectedBlockHasChildren:P,onlyDescendantIsEmptyLink:I}=(0,lt.useSelect)((e=>{const{hasSelectedInnerBlock:t,getSelectedBlockClientId:o,getBlockParentsByBlockName:n,getBlock:r,getBlockCount:a,getBlockOrder:s}=e(ct.store);let l;const c=s(o());if(1===c?.length){const e=r(c[0]);l="core/navigation-link"===e?.name&&!e?.attributes?.label}return{parentCount:n(i,"core/navigation-submenu").length,isParentOfSelectedBlock:t(i,!0),isImmediateParentOfSelectedBlock:t(i,!1),hasChildren:!!a(i),selectedBlockHasChildren:!!c?.length,onlyDescendantIsEmptyLink:l}}),[i]),D=(0,xt.usePrevious)(N);(0,gt.useEffect)((()=>{m||l||f(!0)}),[]),(0,gt.useEffect)((()=>{t||f(!1)}),[t]),(0,gt.useEffect)((()=>{b&&l&&(0,no.isURL)((0,no.prependHTTP)(s))&&/^.+\.[a-z]+/.test(s)&&function(){j.current.focus();const{ownerDocument:e}=j.current,{defaultView:t}=e,o=t.getSelection(),n=e.createRange();n.selectNodeContents(j.current),o.removeAllRanges(),o.addRange(n)}()}),[l]);const{textColor:M,customTextColor:z,backgroundColor:A,customBackgroundColor:L}=L_(a,S>0),H=(0,ct.useBlockProps)({ref:(0,xt.useMergeRefs)([v,k]),className:Dt("wp-block-navigation-item",{"is-editing":t||B,"is-dragging-within":w,"has-link":!!l,"has-child":N,"has-text-color":!!M||!!z,[(0,ct.getColorClassName)("color",M)]:!!M,"has-background":!!A||L,[(0,ct.getColorClassName)("background-color",A)]:!!A,"open-on-click":m}),style:{color:!M&&z,backgroundColor:!A&&L},onKeyDown:function(e){mn.isKeyboardEvent.primary(e,"k")&&(e.preventDefault(),e.stopPropagation(),f(!0))}}),R=L_(a,!0),V=S>=d?Wx.filter((e=>"core/navigation-submenu"!==e)):Wx,F=H_(R),E=(0,ct.useInnerBlocksProps)(F,{allowedBlocks:V,defaultBlock:$h,directInsert:!0,__experimentalCaptureToolbars:!0,renderAppender:!!(t||T&&!P||N)&&ct.InnerBlocks.ButtonBlockAppender}),O=m?"button":"a";function G(){const t=(0,st.createBlock)("core/navigation-link",e);x(i,t)}(0,gt.useEffect)((()=>{!N&&D&&(_(),G())}),[N,D]);const $=!P||I;return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.BlockControls,{children:(0,it.jsxs)(mt.ToolbarGroup,{children:[!m&&(0,it.jsx)(mt.ToolbarButton,{name:"link",icon:gn,title:(0,pt.__)("Link"),shortcut:mn.displayShortcut.primary("k"),onClick:()=>{f(!0)}}),(0,it.jsx)(mt.ToolbarButton,{name:"revert",icon:Ux,title:(0,pt.__)("Convert to Link"),onClick:G,className:"wp-block-navigation__submenu__revert",disabled:!$})]})}),(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsx)(Nx,{attributes:e,setAttributes:o,clientId:i})}),(0,it.jsxs)("div",{...H,children:[(0,it.jsxs)(O,{className:"wp-block-navigation-item__content",children:[(0,it.jsx)(ct.RichText,{ref:j,identifier:"label",className:"wp-block-navigation-item__label",value:s,onChange:e=>o({label:e}),onMerge:n,onReplace:r,"aria-label":(0,pt.__)("Navigation link text"),placeholder:C,withoutInteractiveFormatting:!0,onClick:()=>{m||l||f(!0)}}),c&&(0,it.jsx)("span",{className:"wp-block-navigation-item__description",children:c}),!m&&b&&(0,it.jsx)(tx,{clientId:i,link:e,onClose:()=>{f(!1)},anchor:y,onRemove:()=>{o({url:""}),(0,Fh.speak)((0,pt.__)("Link removed."),"assertive")},onChange:t=>{const{isEntityLink:n,attributes:r}=rx(t,o,e);n?h(r):g(r)}})]}),(u||m)&&(0,it.jsx)("span",{className:"wp-block-navigation__submenu-icon",children:(0,it.jsx)(qx,{})}),(0,it.jsx)("div",{...E})]})]})},example:{attributes:{label:(0,pt._x)("About","Example link text for Navigation Submenu"),type:"page"}},save:function(){return(0,it.jsx)(ct.InnerBlocks.Content,{})},transforms:Jx},Yx=()=>jt({name:Qx,metadata:$x,settings:Kx});var Xx=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M17.5 9V6a2 2 0 0 0-2-2h-7a2 2 0 0 0-2 2v3H8V6a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 .5.5v3h1.5Zm0 6.5V18a2 2 0 0 1-2 2h-7a2 2 0 0 1-2-2v-2.5H8V18a.5.5 0 0 0 .5.5h7a.5.5 0 0 0 .5-.5v-2.5h1.5ZM4 13h16v-1.5H4V13Z"})});const eb=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"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":false,"className":false,"html":false,"interactivity":{"clientNavigation":true}},"editorStyle":"wp-block-nextpage-editor"}');var tb={from:[{type:"raw",schema:{"wp-block":{attributes:["data-block"]}},isMatch:e=>e.dataset&&"core/nextpage"===e.dataset.block,transform:()=>(0,st.createBlock)("core/nextpage",{})}]};const{name:ob}=eb,nb={icon:Xx,example:{},transforms:tb,edit:function(){return(0,it.jsx)("div",{...(0,ct.useBlockProps)(),children:(0,it.jsx)("span",{children:(0,pt.__)("Page break")})})},save:function(){return(0,it.jsx)(gt.RawHTML,{children:"\x3c!--nextpage--\x3e"})}},rb=()=>jt({name:ob,metadata:eb,settings:nb}),ab=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/pattern","title":"Pattern Placeholder","category":"theme","description":"Show a block pattern.","supports":{"html":false,"inserter":false,"renaming":false,"blockVisibility":false,"interactivity":{"clientNavigation":true}},"textdomain":"default","attributes":{"slug":{"type":"string"}}}'),ib=new WeakMap;function sb(){const e=(0,lt.useRegistry)();if(!ib.has(e)){const t=new Map;ib.set(e,lb.bind(null,t))}return ib.get(e)}function lb(e,{name:t,blocks:o}){const n=[...o];for(;n.length;){const o=n.shift();for(const e of o.innerBlocks??[])n.unshift(e);"core/pattern"===o.name&&cb(e,t,o.attributes.slug)}}function cb(e,t,o){if(e.has(t)||e.set(t,new Set),e.get(t).add(o),ub(e,t))throw new TypeError(`Pattern ${t} has a circular dependency and cannot be rendered.`)}function ub(e,t,o=new Set,n=new Set){o.add(t),n.add(t);const r=e.get(t)??new Set;for(const t of r)if(o.has(t)){if(n.has(t))return!0}else if(ub(e,t,o,n))return!0;return n.delete(t),!1}var db=({attributes:e,clientId:t})=>{const o=(0,lt.useRegistry)(),n=(0,lt.useSelect)((t=>t(ct.store).__experimentalGetParsedPattern(e.slug)),[e.slug]),r=(0,lt.useSelect)((e=>e(_t.store).getCurrentTheme()?.stylesheet),[]),{replaceBlocks:a,setBlockEditingMode:i,__unstableMarkNextChangeAsNotPersistent:s}=(0,lt.useDispatch)(ct.store),{getBlockRootClientId:l,getBlockEditingMode:c}=(0,lt.useSelect)(ct.store),[u,d]=(0,gt.useState)(!1),p=sb();(0,gt.useEffect)((()=>{if(!u&&n?.blocks){try{p(n)}catch(e){return void d(!0)}window.queueMicrotask((()=>{const e=l(t),u=n.blocks.map((e=>(0,st.cloneBlock)(function(e){return e.innerBlocks.find((e=>"core/template-part"===e.name))&&(e.innerBlocks=e.innerBlocks.map((e=>("core/template-part"===e.name&&void 0===e.attributes.theme&&(e.attributes.theme=r),e)))),"core/template-part"===e.name&&void 0===e.attributes.theme&&(e.attributes.theme=r),e}(e))));1===u.length&&n.categories?.length>0&&(u[0].attributes={...u[0].attributes,metadata:{...u[0].attributes.metadata,categories:n.categories,patternName:n.name,name:u[0].attributes.metadata.name||n.title}});const d=c(e);o.batch((()=>{s(),i(e,"default"),s(),a(t,u),s(),i(e,d)}))}))}}),[t,u,n,s,a,c,i,l]);const m=(0,ct.useBlockProps)();return u?(0,it.jsx)("div",{...m,children:(0,it.jsx)(ct.Warning,{children:(0,pt.sprintf)((0,pt.__)('Pattern "%s" cannot be rendered inside itself.'),n?.name)})}):(0,it.jsx)("div",{...m})};const{name:pb}=ab,mb={edit:db},gb=()=>jt({name:pb,metadata:ab,settings:mb});var hb=(0,it.jsxs)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,it.jsx)(St.Path,{d:"M14.5 5.5h-7V7h7V5.5ZM7.5 9h7v1.5h-7V9Zm7 3.5h-7V14h7v-1.5Z"}),(0,it.jsx)(St.Path,{d:"M16 2H6a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2ZM6 3.5h10a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H6a.5.5 0 0 1-.5-.5V4a.5.5 0 0 1 .5-.5Z"}),(0,it.jsx)(St.Path,{d:"M20 8v11c0 .69-.31 1-.999 1H6v1.5h13.001c1.52 0 2.499-.982 2.499-2.5V8H20Z"})]});const _b=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/page-list","title":"Page List","category":"widgets","allowedBlocks":["core/page-list-item"],"description":"Display a list of all pages.","keywords":["menu","navigation"],"textdomain":"default","attributes":{"parentPageID":{"type":"integer","default":0},"isNested":{"type":"boolean","default":false}},"usesContext":["textColor","customTextColor","backgroundColor","customBackgroundColor","overlayTextColor","customOverlayTextColor","overlayBackgroundColor","customOverlayBackgroundColor","fontSize","customFontSize","showSubmenuIcon","style","openSubmenusOnClick"],"supports":{"reusable":false,"html":false,"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true},"color":{"text":true,"background":true,"link":true,"gradients":true,"__experimentalDefaultControls":{"background":true,"text":true,"link":true}},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true},"spacing":{"padding":true,"margin":true,"__experimentalDefaultControls":{"padding":false,"margin":false}},"contentRole":true},"editorStyle":"wp-block-page-list-editor","style":"wp-block-page-list"}');function xb(e,t){for(const o of e){if(o.attributes.id===t)return o;if(o.innerBlocks&&o.innerBlocks.length){const e=xb(o.innerBlocks,t);if(e)return e}}return null}function bb(e=[],t=null){let o=function(e=[]){const t="post-type",o={},n=[];return e.forEach((({id:e,title:r,link:a,type:i,parent:s})=>{const l=o[e]?.innerBlocks??[];o[e]=(0,st.createBlock)("core/navigation-link",{id:e,label:r.rendered,url:a,type:i,kind:t,metadata:{bindings:d_(t)}},l),s?(o[s]||(o[s]={innerBlocks:[]}),o[s].innerBlocks.push(o[e])):n.push(o[e])})),n}(e);if(t){const e=xb(o,t);e&&e.innerBlocks&&(o=e.innerBlocks)}const n=e=>{e.forEach(((e,t,o)=>{const{attributes:r,innerBlocks:a}=e;if(0!==a.length){n(a);const e=(0,st.createBlock)("core/navigation-submenu",r,a);o[t]=e}}))};return n(o),o}function fb({clientId:e,pages:t,parentClientId:o,parentPageID:n}){const{replaceBlock:r,selectBlock:a}=(0,lt.useDispatch)(ct.store);return()=>{const i=bb(t,n);r(e,i),a(o)}}const yb=(0,pt.__)("This Navigation Menu displays your website's pages. Editing it will enable you to add, delete, or reorder pages. However, new pages will no longer be added automatically.");function vb({onClick:e,onClose:t,disabled:o}){return(0,it.jsxs)(mt.Modal,{onRequestClose:t,title:(0,pt.__)("Edit Page List"),className:"wp-block-page-list-modal",aria:{describedby:(0,xt.useInstanceId)(vb,"wp-block-page-list-modal__description")},children:[(0,it.jsx)("p",{id:(0,xt.useInstanceId)(vb,"wp-block-page-list-modal__description"),children:yb}),(0,it.jsxs)("div",{className:"wp-block-page-list-modal-buttons",children:[(0,it.jsx)(mt.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:t,children:(0,pt.__)("Cancel")}),(0,it.jsx)(mt.Button,{__next40pxDefaultSize:!0,variant:"primary",accessibleWhenDisabled:!0,disabled:o,onClick:e,children:(0,pt.__)("Edit")})]})]})}const kb=()=>{};function wb({blockProps:e,innerBlocksProps:t,hasResolvedPages:o,blockList:n,pages:r,parentPageID:a}){if(!o)return(0,it.jsx)("div",{...e,children:(0,it.jsx)("div",{className:"wp-block-page-list__loading-indicator-container",children:(0,it.jsx)(mt.Spinner,{className:"wp-block-page-list__loading-indicator"})})});if(null===r)return(0,it.jsx)("div",{...e,children:(0,it.jsx)(mt.Notice,{status:"warning",isDismissible:!1,children:(0,pt.__)("Page List: Cannot retrieve Pages.")})});if(0===r.length)return(0,it.jsx)("div",{...e,children:(0,it.jsx)(mt.Notice,{status:"info",isDismissible:!1,children:(0,pt.__)("Page List: Cannot retrieve Pages.")})});if(0===n.length){const t=r.find((e=>e.id===a));return t?.title?.rendered?(0,it.jsx)("div",{...e,children:(0,it.jsx)(ct.Warning,{children:(0,pt.sprintf)((0,pt.__)('Page List: "%s" page has no children.'),t.title.rendered)})}):(0,it.jsx)("div",{...e,children:(0,it.jsx)(mt.Notice,{status:"warning",isDismissible:!1,children:(0,pt.__)("Page List: Cannot retrieve Pages.")})})}return r.length>0?(0,it.jsx)("ul",{...t}):void 0}const{name:Cb}=_b,jb={icon:hb,example:{},edit:function({context:e,clientId:t,attributes:o,setAttributes:n}){const{parentPageID:r}=o,[a,i]=(0,gt.useState)(!1),s=(0,gt.useCallback)((()=>i(!0)),[]),l=vt(),{records:c,hasResolved:u}=(0,_t.useEntityRecords)("postType","page",{per_page:100,_fields:["id","link","menu_order","parent","title","type"],orderby:"menu_order",order:"asc"}),d="showSubmenuIcon"in e&&c?.length>0&&c?.length<=100,p=(0,gt.useMemo)((()=>{if(null===c)return new Map;const e=c.sort(((e,t)=>e.menu_order===t.menu_order?e.title.rendered.localeCompare(t.title.rendered):e.menu_order-t.menu_order));return e.reduce(((e,t)=>{const{parent:o}=t;return e.has(o)?e.get(o).push(t):e.set(o,[t]),e}),new Map)}),[c]),m=(0,ct.useBlockProps)({className:Dt("wp-block-page-list",{"has-text-color":!!e.textColor,[(0,ct.getColorClassName)("color",e.textColor)]:!!e.textColor,"has-background":!!e.backgroundColor,[(0,ct.getColorClassName)("background-color",e.backgroundColor)]:!!e.backgroundColor}),style:{...e.style?.color}}),g=(0,gt.useMemo)((function e(t=0,o=0){const n=p.get(t);return n?.length?n.reduce(((t,n)=>{const r=p.has(n.id),a={value:n.id,label:"— ".repeat(o)+n.title.rendered,rawName:n.title.rendered};return t.push(a),r&&t.push(...e(n.id,o+1)),t}),[]):[]}),[p]),h=(0,gt.useMemo)((function e(t=r){const o=p.get(t);return o?.length?o.reduce(((t,o)=>{const n=p.has(o.id),r={id:o.id,label:""!==o.title?.rendered?.trim()?o.title?.rendered:(0,pt.__)("(no title)"),title:""!==o.title?.rendered?.trim()?o.title?.rendered:(0,pt.__)("(no title)"),link:o.url,hasChildren:n};let a=null;const i=e(o.id);return a=(0,st.createBlock)("core/page-list-item",r,i),t.push(a),t}),[]):[]}),[p,r]),{isNested:_,hasSelectedChild:x,parentClientId:b,hasDraggedChild:f,isChildOfNavigation:y}=(0,lt.useSelect)((e=>{const{getBlockParentsByBlockName:o,hasSelectedInnerBlock:n,hasDraggedInnerBlock:r}=e(ct.store),a=o(t,"core/navigation-submenu",!0),i=o(t,"core/navigation",!0);return{isNested:a.length>0,isChildOfNavigation:i.length>0,hasSelectedChild:n(t,!0),hasDraggedChild:r(t,!0),parentClientId:i[0]}}),[t]),v=fb({clientId:t,pages:c,parentClientId:b,parentPageID:r}),k=(0,ct.useInnerBlocksProps)(m,{renderAppender:!1,__unstableDisableDropZone:!0,templateLock:!y&&"all",onInput:kb,onChange:kb,value:h}),{selectBlock:w}=(0,lt.useDispatch)(ct.store);return(0,gt.useEffect)((()=>{(x||f)&&(s(),w(b))}),[x,f,b,w,s]),(0,gt.useEffect)((()=>{n({isNested:_})}),[_,n]),(0,it.jsxs)(it.Fragment,{children:[(g.length>0||d)&&(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{n({parentPageID:0})},dropdownMenuProps:l,children:[g.length>0&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Parent Page"),hasValue:()=>0!==r,onDeselect:()=>n({parentPageID:0}),isShownByDefault:!0,children:(0,it.jsx)(mt.ComboboxControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,className:"editor-page-attributes__parent",label:(0,pt.__)("Parent"),value:r,options:g,onChange:e=>n({parentPageID:e??0}),help:(0,pt.__)("Choose a page to show only its subpages.")})}),d&&(0,it.jsxs)("div",{style:{gridColumn:"1 / -1"},children:[(0,it.jsx)("p",{children:yb}),(0,it.jsx)(mt.Button,{__next40pxDefaultSize:!0,variant:"primary",accessibleWhenDisabled:!0,disabled:!u,onClick:v,children:(0,pt.__)("Edit")})]})]})}),d&&(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.BlockControls,{group:"other",children:(0,it.jsx)(mt.ToolbarButton,{title:(0,pt.__)("Edit"),onClick:s,children:(0,pt.__)("Edit")})}),a&&(0,it.jsx)(vb,{onClick:v,onClose:()=>i(!1),disabled:!u})]}),(0,it.jsx)(wb,{blockProps:m,innerBlocksProps:k,hasResolvedPages:u,blockList:h,pages:c,parentPageID:r})]})}},Sb=()=>jt({name:Cb,metadata:_b,settings:jb}),Bb=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/page-list-item","title":"Page List Item","category":"widgets","parent":["core/page-list"],"description":"Displays a page inside a list of all pages.","keywords":["page","menu","navigation"],"textdomain":"default","attributes":{"id":{"type":"number"},"label":{"type":"string"},"title":{"type":"string"},"link":{"type":"string"},"hasChildren":{"type":"boolean"}},"usesContext":["textColor","customTextColor","backgroundColor","customBackgroundColor","overlayTextColor","customOverlayTextColor","overlayBackgroundColor","customOverlayBackgroundColor","fontSize","customFontSize","showSubmenuIcon","style","openSubmenusOnClick"],"supports":{"reusable":false,"html":false,"lock":false,"inserter":false,"__experimentalToolbar":false,"interactivity":{"clientNavigation":true}},"editorStyle":"wp-block-page-list-editor","style":"wp-block-page-list"}'),Tb=()=>(0,it.jsx)(mt.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:(0,it.jsx)(mt.Path,{d:"M1.50002 4L6.00002 8L10.5 4",strokeWidth:"1.5"})});const{name:Nb}=Bb,Pb={__experimentalLabel:({label:e})=>e,icon:Eh,example:{},edit:function({context:e,attributes:t}){const{id:o,label:n,link:r,hasChildren:a,title:i}=t,s="showSubmenuIcon"in e,l=(0,lt.useSelect)((e=>{if(!e(_t.store).canUser("read",{kind:"root",name:"site"}))return;const t=e(_t.store).getEntityRecord("root","site");return"page"===t?.show_on_front&&t?.page_on_front}),[]),c=H_(L_(e,!0)),u=(0,ct.useBlockProps)(c,{className:"wp-block-pages-list__item"}),d=(0,ct.useInnerBlocksProps)(u);return(0,it.jsxs)("li",{className:Dt("wp-block-pages-list__item",{"has-child":a,"wp-block-navigation-item":s,"open-on-click":e.openSubmenusOnClick,"open-on-hover-click":!e.openSubmenusOnClick&&e.showSubmenuIcon,"menu-item-home":o===l}),children:[a&&e.openSubmenusOnClick?(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)("button",{type:"button",className:"wp-block-navigation-item__content wp-block-navigation-submenu__toggle","aria-expanded":"false",children:(0,ao.decodeEntities)(n)}),(0,it.jsx)("span",{className:"wp-block-page-list__submenu-icon wp-block-navigation__submenu-icon",children:(0,it.jsx)(Tb,{})})]}):(0,it.jsx)("a",{className:Dt("wp-block-pages-list__item__link",{"wp-block-navigation-item__content":s}),href:r,children:(0,ao.decodeEntities)(i)}),a&&(0,it.jsxs)(it.Fragment,{children:[!e.openSubmenusOnClick&&e.showSubmenuIcon&&(0,it.jsx)("button",{className:"wp-block-navigation-item__content wp-block-navigation-submenu__toggle wp-block-page-list__submenu-icon wp-block-navigation__submenu-icon","aria-expanded":"false",type:"button",children:(0,it.jsx)(Tb,{})}),(0,it.jsx)("ul",{...d})]})]},o)}},Ib=()=>jt({name:Nb,metadata:Bb,settings:Pb});var Db=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"m9.99609 14v-.2251l.00391.0001v6.225h1.5v-14.5h2.5v14.5h1.5v-14.5h3v-1.5h-8.50391c-2.76142 0-5 2.23858-5 5 0 2.7614 2.23858 5 5 5z"})});const Mb={className:!1},zb={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"}},Ab=e=>{if(!e.customTextColor&&!e.customBackgroundColor&&!e.customFontSize)return e;const t={};(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});const{customTextColor:o,customBackgroundColor:n,customFontSize:r,...a}=e;return{...a,style:t}},{style:Lb,...Hb}=zb,Rb=[{supports:Mb,attributes:{...Hb,customTextColor:{type:"string"},customBackgroundColor:{type:"string"},customFontSize:{type:"number"}},save({attributes:e}){const{align:t,content:o,dropCap:n,direction:r}=e,a=Dt({"has-drop-cap":t!==((0,pt.isRTL)()?"left":"right")&&"center"!==t&&n,[`has-text-align-${t}`]:t});return(0,it.jsx)("p",{...ct.useBlockProps.save({className:a,dir:r}),children:(0,it.jsx)(ct.RichText.Content,{value:o})})}},{supports:Mb,attributes:{...Hb,customTextColor:{type:"string"},customBackgroundColor:{type:"string"},customFontSize:{type:"number"}},migrate:Ab,save({attributes:e}){const{align:t,content:o,dropCap:n,backgroundColor:r,textColor:a,customBackgroundColor:i,customTextColor:s,fontSize:l,customFontSize:c,direction:u}=e,d=(0,ct.getColorClassName)("color",a),p=(0,ct.getColorClassName)("background-color",r),m=(0,ct.getFontSizeClass)(l),g=Dt({"has-text-color":a||s,"has-background":r||i,"has-drop-cap":n,[`has-text-align-${t}`]:t,[m]:m,[d]:d,[p]:p}),h={backgroundColor:p?void 0:i,color:d?void 0:s,fontSize:m?void 0:c};return(0,it.jsx)(ct.RichText.Content,{tagName:"p",style:h,className:g||void 0,value:o,dir:u})}},{supports:Mb,attributes:{...Hb,customTextColor:{type:"string"},customBackgroundColor:{type:"string"},customFontSize:{type:"number"}},migrate:Ab,save({attributes:e}){const{align:t,content:o,dropCap:n,backgroundColor:r,textColor:a,customBackgroundColor:i,customTextColor:s,fontSize:l,customFontSize:c,direction:u}=e,d=(0,ct.getColorClassName)("color",a),p=(0,ct.getColorClassName)("background-color",r),m=(0,ct.getFontSizeClass)(l),g=Dt({"has-text-color":a||s,"has-background":r||i,"has-drop-cap":n,[m]:m,[d]:d,[p]:p}),h={backgroundColor:p?void 0:i,color:d?void 0:s,fontSize:m?void 0:c,textAlign:t};return(0,it.jsx)(ct.RichText.Content,{tagName:"p",style:h,className:g||void 0,value:o,dir:u})}},{supports:Mb,attributes:{...Hb,customTextColor:{type:"string"},customBackgroundColor:{type:"string"},customFontSize:{type:"number"},width:{type:"string"}},migrate:Ab,save({attributes:e}){const{width:t,align:o,content:n,dropCap:r,backgroundColor:a,textColor:i,customBackgroundColor:s,customTextColor:l,fontSize:c,customFontSize:u}=e,d=(0,ct.getColorClassName)("color",i),p=(0,ct.getColorClassName)("background-color",a),m=c&&`is-${c}-text`,g=Dt({[`align${t}`]:t,"has-background":a||s,"has-drop-cap":r,[m]:m,[d]:d,[p]:p}),h={backgroundColor:p?void 0:s,color:d?void 0:l,fontSize:m?void 0:u,textAlign:o};return(0,it.jsx)(ct.RichText.Content,{tagName:"p",style:h,className:g||void 0,value:n})}},{supports:Mb,attributes:{...Hb,fontSize:{type:"number"}},save({attributes:e}){const{width:t,align:o,content:n,dropCap:r,backgroundColor:a,textColor:i,fontSize:s}=e,l=Dt({[`align${t}`]:t,"has-background":a,"has-drop-cap":r}),c={backgroundColor:a,color:i,fontSize:s,textAlign:o};return(0,it.jsx)("p",{style:c,className:l||void 0,children:n})},migrate:e=>Ab({...e,customFontSize:Number.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:Mb,attributes:{...zb,content:{type:"string",source:"html",default:""}},save:({attributes:e})=>(0,it.jsx)(gt.RawHTML,{children:e.content}),migrate:e=>e}];var Vb=Rb,Fb=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M3 9c0 2.8 2.2 5 5 5v-.2V20h1.5V5.5H12V20h1.5V5.5h3V4H8C5.2 4 3 6.2 3 9Zm15.9-1-1.1 1 2.6 3-2.6 3 1.1 1 3.4-4-3.4-4Z"})});function Eb(e){const{batch:t}=(0,lt.useRegistry)(),{moveBlocksToPosition:o,replaceInnerBlocks:n,duplicateBlocks:r,insertBlock:a}=(0,lt.useDispatch)(ct.store),{getBlockRootClientId:i,getBlockIndex:s,getBlockOrder:l,getBlockName:c,getBlock:u,getNextBlockClientId:d,canInsertBlockType:p}=(0,lt.useSelect)(ct.store),m=(0,gt.useRef)(e);return m.current=e,(0,xt.useRefEffect)((e=>{function g(e){if(e.defaultPrevented)return;if(e.keyCode!==mn.ENTER)return;const{content:g,clientId:h}=m.current;if(g.length)return;const _=i(h);if(!(0,st.hasBlockSupport)(c(_),"__experimentalOnEnter",!1))return;const x=l(_),b=x.indexOf(h);if(b===x.length-1){let t=_;for(;!p(c(h),i(t));)t=i(t);return void("string"==typeof t&&(e.preventDefault(),o([h],_,i(t),s(t)+1)))}const f=(0,st.getDefaultBlockName)();if(!p(f,i(_)))return;e.preventDefault();const y=u(_);t((()=>{r([_]);const e=s(_);n(_,y.innerBlocks.slice(0,b)),n(d(_),y.innerBlocks.slice(b+1)),a((0,st.createBlock)(f),e+1,i(_),!0)}))}return e.addEventListener("keydown",g),()=>{e.removeEventListener("keydown",g)}}),[])}function Ob({direction:e,setDirection:t}){return(0,pt.isRTL)()&&(0,it.jsx)(mt.ToolbarButton,{icon:Fb,title:(0,pt._x)("Left to right","editor button"),isActive:"ltr"===e,onClick:()=>{t("ltr"===e?void 0:"ltr")}})}function Gb(e){return e===((0,pt.isRTL)()?"left":"right")||"center"===e}function $b({clientId:e,attributes:t,setAttributes:o,name:n}){const[r]=(0,ct.useSettings)("typography.dropCap");if(!r)return null;const{align:a,dropCap:i}=t;let s;s=Gb(a)?(0,pt.__)("Not available for aligned text."):i?(0,pt.__)("Showing large initial letter."):(0,pt.__)("Show a large initial letter.");const l=(0,st.getBlockSupport)(n,"typography.defaultControls.dropCap",!1);return(0,it.jsx)(ct.InspectorControls,{group:"typography",children:(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!!i,label:(0,pt.__)("Drop cap"),isShownByDefault:l,onDeselect:()=>o({dropCap:!1}),resetAllFilter:()=>({dropCap:!1}),panelId:e,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Drop cap"),checked:!!i,onChange:()=>o({dropCap:!i}),help:s,disabled:Gb(a)})})})}var Ub=function({attributes:e,mergeBlocks:t,onReplace:o,onRemove:n,setAttributes:r,clientId:a,isSelected:i,name:s}){const{align:l,content:c,direction:u,dropCap:d,placeholder:p}=e,m=(0,ct.useBlockProps)({ref:Eb({clientId:a,content:c}),className:Dt({"has-drop-cap":!Gb(l)&&d,[`has-text-align-${l}`]:l}),style:{direction:u}}),g=(0,ct.useBlockEditingMode)();return(0,it.jsxs)(it.Fragment,{children:["default"===g&&(0,it.jsxs)(ct.BlockControls,{group:"block",children:[(0,it.jsx)(ct.AlignmentControl,{value:l,onChange:e=>r({align:e,dropCap:!Gb(e)&&d})}),(0,it.jsx)(Ob,{direction:u,setDirection:e=>r({direction:e})})]}),i&&(0,it.jsx)($b,{name:s,clientId:a,attributes:e,setAttributes:r}),(0,it.jsx)(ct.RichText,{identifier:"content",tagName:"p",...m,value:c,onChange:e=>r({content:e}),onMerge:t,onReplace:o,onRemove:n,"aria-label":ct.RichText.isEmpty(c)?(0,pt.__)("Empty block; start writing or type forward slash to choose a block"):(0,pt.__)("Block: Paragraph"),"data-empty":ct.RichText.isEmpty(c),placeholder:p||(0,pt.__)("Type / to choose a block"),"data-custom-placeholder":!!p||void 0,__unstableEmbedURLOnPaste:!0,__unstableAllowPrefixTransformations:!0})]})};const qb=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/paragraph","title":"Paragraph","category":"text","description":"Start with the basic building block of all narrative.","keywords":["text"],"textdomain":"default","attributes":{"align":{"type":"string"},"content":{"type":"rich-text","source":"rich-text","selector":"p","role":"content"},"dropCap":{"type":"boolean","default":false},"placeholder":{"type":"string"},"direction":{"type":"string","enum":["ltr","rtl"]}},"supports":{"splitting":true,"anchor":true,"className":false,"__experimentalBorder":{"color":true,"radius":true,"style":true,"width":true},"color":{"gradients":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true}},"spacing":{"margin":true,"padding":true,"__experimentalDefaultControls":{"margin":false,"padding":false}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalTextDecoration":true,"__experimentalFontStyle":true,"__experimentalFontWeight":true,"__experimentalLetterSpacing":true,"__experimentalTextTransform":true,"__experimentalWritingMode":true,"fitText":true,"__experimentalDefaultControls":{"fontSize":true}},"__experimentalSelector":"p","__unstablePasteTextInline":true,"interactivity":{"clientNavigation":true}},"editorStyle":"wp-block-paragraph-editor","style":"wp-block-paragraph"}');const Wb={from:[{type:"raw",priority:20,selector:"p",schema:({phrasingContentSchema:e,isPaste:t})=>({p:{children:e,attributes:t?[]:["style","id"]}}),transform(e){const t=(0,st.getBlockAttributes)(qb.name,e.outerHTML),{textAlign:o}=e.style||{};return"left"!==o&&"center"!==o&&"right"!==o||(t.align=o),(0,st.createBlock)(qb.name,t)}}]};var Zb=Wb;const Jb=[{name:"paragraph",title:(0,pt.__)("Paragraph"),description:(0,pt.__)("Start with the basic building block of all narrative."),isDefault:!0,scope:["block","inserter","transform"],attributes:{fitText:void 0},icon:Db},{name:"stretchy-paragraph",title:(0,pt.__)("Stretchy Paragraph"),description:(0,pt.__)("Paragraph that resizes to fit its container."),icon:(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M3 9c0 2.8 2.2 5 5 5v-.2V20h1.5V5.5H12V20h1.5V5.5h3V4H8C5.2 4 3 6.2 3 9Zm16.2-.2v1.5h2.2L17.7 14l1.1 1.1 3.7-3.7v2.2H24V8.8h-4.8Z"})}),attributes:{fitText:!0},scope:["inserter","transform"],isActive:e=>!0===e.fitText}];var Qb=Jb;const{name:Kb}=qb,Yb={icon:Db,example:{attributes:{content:(0,pt.__)("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.")}},__experimentalLabel(e,{context:t}){const o=e?.metadata?.name;if("list-view"===t&&o)return o;if("accessibility"===t){if(o)return o;const{content:t}=e;return t&&0!==t.length?t:(0,pt.__)("Empty")}},transforms:Zb,deprecated:Vb,merge:(e,t)=>({content:(e.content||"")+(t.content||"")}),edit:Ub,save:function({attributes:e}){const{align:t,content:o,dropCap:n,direction:r}=e,a=Dt({"has-drop-cap":t!==((0,pt.isRTL)()?"left":"right")&&"center"!==t&&n,[`has-text-align-${t}`]:t});return(0,it.jsx)("p",{...ct.useBlockProps.save({className:a,dir:r}),children:(0,it.jsx)(ct.RichText.Content,{value:o})})},variations:Qb},Xb=()=>jt({name:Kb,metadata:qb,settings:Yb});var ef=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.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 tf=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/post-author","title":"Author","category":"theme","description":"Display post author details such as name, avatar, and bio.","textdomain":"default","attributes":{"textAlign":{"type":"string"},"avatarSize":{"type":"number","default":48},"showAvatar":{"type":"boolean","default":true},"showBio":{"type":"boolean"},"byline":{"type":"string"},"isLink":{"type":"boolean","default":false,"role":"content"},"linkTarget":{"type":"string","default":"_self","role":"content"}},"usesContext":["postType","postId","queryId"],"supports":{"html":false,"spacing":{"margin":true,"padding":true},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"color":{"gradients":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true}},"interactivity":{"clientNavigation":true},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true,"__experimentalDefaultControls":{"radius":true,"color":true,"width":true,"style":true}},"filter":{"duotone":true}},"selectors":{"filter":{"duotone":".wp-block-post-author .wp-block-post-author__avatar img"}},"editorStyle":"wp-block-post-author-editor","style":"wp-block-post-author"}'),of={who:"authors",per_page:100,_fields:"id,name",context:"view"};function nf({value:e,onChange:t}){const[o,n]=(0,gt.useState)(""),{authors:r,isLoading:a}=(0,lt.useSelect)((e=>{const{getUsers:t,isResolving:n}=e(_t.store),r={...of};return o&&(r.search=o,r.search_columns=["name"]),{authors:t(r),isLoading:n("getUsers",[r])}}),[o]),i=(0,gt.useMemo)((()=>{const t=(r??[]).map((e=>({value:e.id,label:(0,ao.decodeEntities)(e.name)}))),o=t.findIndex((t=>e?.id===t.value));let n=[];return o<0&&e?n=[{value:e.id,label:(0,ao.decodeEntities)(e.name)}]:o<0&&!e&&(n=[{value:0,label:(0,pt.__)("(No author)")}]),[...n,...t]}),[r,e]);return(0,it.jsx)(mt.ComboboxControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("Author"),options:i,value:e?.id,onFilterValueChange:(0,xt.debounce)(n,300),onChange:t,allowReset:!1,isLoading:a})}var rf=function({isSelected:e,context:{postType:t,postId:o,queryId:n},attributes:r,setAttributes:a}){const i=Number.isFinite(n),s=vt(),l=yt(),{authorDetails:c,canAssignAuthor:u,supportsAuthor:d}=(0,lt.useSelect)((e=>{const{getEditedEntityRecord:n,getUser:r,getPostType:a}=e(_t.store),i=n("postType",t,o),s=i?.author;return{authorDetails:s?r(s,{context:"view"}):null,supportsAuthor:a(t)?.supports?.author??!1,canAssignAuthor:!!i?._links?.["wp:action-assign-author"]}}),[t,o]),{editEntityRecord:p}=(0,lt.useDispatch)(_t.store),{textAlign:m,showAvatar:g,showBio:h,byline:_,isLink:x,linkTarget:b,avatarSize:f}=r,y=[],v=c?.name||(0,pt.__)("Post Author");c?.avatar_urls&&Object.keys(c.avatar_urls).forEach((e=>{y.push({value:e,label:`${e} x ${e}`})}));const k=(0,ct.useBlockProps)({className:Dt({[`has-text-align-${m}`]:m})}),w=!!o&&!i&&u;return d||void 0===t?(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{a({avatarSize:48,showAvatar:!0,isLink:!1,linkTarget:"_self"})},dropdownMenuProps:s,children:[w&&(0,it.jsx)("div",{style:{gridColumn:"1 / -1"},children:(0,it.jsx)(nf,{value:c,onChange:e=>{p("postType",t,o,{author:e})}})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Show avatar"),isShownByDefault:!0,hasValue:()=>!g,onDeselect:()=>a({showAvatar:!0}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Show avatar"),checked:g,onChange:()=>a({showAvatar:!g})})}),g&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Avatar size"),isShownByDefault:!0,hasValue:()=>48!==f,onDeselect:()=>a({avatarSize:48}),children:(0,it.jsx)(mt.SelectControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("Avatar size"),value:f,options:y,onChange:e=>{a({avatarSize:Number(e)})}})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Show bio"),isShownByDefault:!0,hasValue:()=>!!h,onDeselect:()=>a({showBio:void 0}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Show bio"),checked:!!h,onChange:()=>a({showBio:!h})})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Link author name to author page"),isShownByDefault:!0,hasValue:()=>!!x,onDeselect:()=>a({isLink:!1}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Link author name to author page"),checked:x,onChange:()=>a({isLink:!x})})}),x&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Link target"),isShownByDefault:!0,hasValue:()=>"_self"!==b,onDeselect:()=>a({linkTarget:"_self"}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Open in new tab"),onChange:e=>a({linkTarget:e?"_blank":"_self"}),checked:"_blank"===b})})]})}),(0,it.jsx)(ct.BlockControls,{group:"block",children:(0,it.jsx)(ct.AlignmentControl,{value:m,onChange:e=>{a({textAlign:e})}})}),(0,it.jsxs)("div",{...k,children:[g&&(0,it.jsx)("div",{className:"wp-block-post-author__avatar",children:(0,it.jsx)("img",{width:f,src:c?.avatar_urls?.[f]||l,alt:c?.name||(0,pt.__)("Default Avatar")})}),(0,it.jsxs)("div",{className:"wp-block-post-author__content",children:[(!ct.RichText.isEmpty(_)||e)&&(0,it.jsx)(ct.RichText,{identifier:"byline",className:"wp-block-post-author__byline","aria-label":(0,pt.__)("Post author byline text"),placeholder:(0,pt.__)("Write byline…"),value:_,onChange:e=>a({byline:e})}),(0,it.jsx)("p",{className:"wp-block-post-author__name",children:x?(0,it.jsx)("a",{href:"#post-author-pseudo-link",onClick:e=>e.preventDefault(),children:v}):v}),h&&(0,it.jsx)("p",{className:"wp-block-post-author__bio",dangerouslySetInnerHTML:{__html:c?.description}})]})]})]}):(0,it.jsx)("div",{...k,children:(0,pt.sprintf)((0,pt.__)("This post type (%s) does not support the author."),t)})};const{name:af}=tf,sf={icon:ef,example:{viewportWidth:350,attributes:{showBio:!0,byline:(0,pt.__)("Posted by")}},edit:rf},lf=()=>jt({name:af,metadata:tf,settings:sf}),cf=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/post-author-name","title":"Author Name","category":"theme","description":"The author name.","textdomain":"default","attributes":{"textAlign":{"type":"string"},"isLink":{"type":"boolean","default":false,"role":"content"},"linkTarget":{"type":"string","default":"_self","role":"content"}},"usesContext":["postType","postId"],"example":{"viewportWidth":350},"supports":{"html":false,"spacing":{"margin":true,"padding":true},"color":{"gradients":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true,"link":true}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true,"__experimentalDefaultControls":{"radius":true,"color":true,"width":true,"style":true}}},"style":"wp-block-post-author-name"}');var uf=function({context:{postType:e,postId:t},attributes:{textAlign:o,isLink:n,linkTarget:r},setAttributes:a}){const{authorName:i,supportsAuthor:s}=(0,lt.useSelect)((o=>{const{getEditedEntityRecord:n,getUser:r,getPostType:a}=o(_t.store),i=n("postType",e,t)?.author;return{authorName:i?r(i):null,supportsAuthor:a(e)?.supports?.author??!1}}),[e,t]),l=(0,ct.useBlockProps)({className:Dt({[`has-text-align-${o}`]:o})}),c=i?.name||(0,pt.__)("Author Name"),u=n?(0,it.jsx)("a",{href:"#author-pseudo-link",onClick:e=>e.preventDefault(),className:"wp-block-post-author-name__link",children:c}):c,d=vt();return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.BlockControls,{group:"block",children:(0,it.jsx)(ct.AlignmentControl,{value:o,onChange:e=>{a({textAlign:e})}})}),(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{a({isLink:!1,linkTarget:"_self"})},dropdownMenuProps:d,children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Link to author archive"),isShownByDefault:!0,hasValue:()=>n,onDeselect:()=>a({isLink:!1}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Link to author archive"),onChange:()=>a({isLink:!n}),checked:n})}),n&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>"_self"!==r,onDeselect:()=>a({linkTarget:"_self"}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Open in new tab"),onChange:e=>a({linkTarget:e?"_blank":"_self"}),checked:"_blank"===r})})]})}),(0,it.jsx)("div",{...l,children:s||void 0===e?u:(0,pt.sprintf)((0,pt.__)("This post type (%s) does not support the author."),e)})]})};var df={from:[{type:"block",blocks:["core/post-author"],transform:({textAlign:e})=>(0,st.createBlock)("core/post-author-name",{textAlign:e})}],to:[{type:"block",blocks:["core/post-author"],transform:({textAlign:e})=>(0,st.createBlock)("core/post-author",{textAlign:e})}]};const{name:pf}=cf,mf={icon:ef,transforms:df,edit:uf},gf=()=>jt({name:pf,metadata:cf,settings:mf}),hf=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/post-author-biography","title":"Author Biography","category":"theme","description":"The author biography.","textdomain":"default","attributes":{"textAlign":{"type":"string"}},"usesContext":["postType","postId"],"example":{"viewportWidth":350},"supports":{"spacing":{"margin":true,"padding":true},"color":{"gradients":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true,"__experimentalDefaultControls":{"radius":true,"color":true,"width":true,"style":true}}},"style":"wp-block-post-author-biography"}');var _f=function({context:{postType:e,postId:t},attributes:{textAlign:o},setAttributes:n}){const{authorDetails:r}=(0,lt.useSelect)((o=>{const{getEditedEntityRecord:n,getUser:r}=o(_t.store),a=n("postType",e,t)?.author;return{authorDetails:a?r(a):null}}),[e,t]),a=(0,ct.useBlockProps)({className:Dt({[`has-text-align-${o}`]:o})}),i=r?.description||(0,pt.__)("Author Biography");return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.BlockControls,{group:"block",children:(0,it.jsx)(ct.AlignmentControl,{value:o,onChange:e=>{n({textAlign:e})}})}),(0,it.jsx)("div",{...a,dangerouslySetInnerHTML:{__html:i}})]})};const{name:xf}=hf,bf={icon:ef,edit:_f},ff=()=>jt({name:xf,metadata:hf,settings:bf}),yf=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"__experimental":"fse","name":"core/post-comment","title":"Comment (deprecated)","category":"theme","allowedBlocks":["core/avatar","core/comment-author-name","core/comment-content","core/comment-date","core/comment-edit-link","core/comment-reply-link"],"description":"This block is deprecated. Please use the Comments block instead.","textdomain":"default","attributes":{"commentId":{"type":"number"}},"providesContext":{"commentId":"commentId"},"supports":{"html":false,"inserter":false,"interactivity":{"clientNavigation":true}}}');var vf=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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"})});const kf=[["core/avatar"],["core/comment-author-name"],["core/comment-date"],["core/comment-content"],["core/comment-reply-link"],["core/comment-edit-link"]];const{name:wf}=yf,Cf={icon:gm,edit:function({attributes:{commentId:e},setAttributes:t}){const[o,n]=(0,gt.useState)(e),r=(0,ct.useBlockProps)(),a=(0,ct.useInnerBlocksProps)(r,{template:kf});return e?(0,it.jsx)("div",{...a}):(0,it.jsx)("div",{...r,children:(0,it.jsxs)(mt.Placeholder,{icon:vf,label:(0,pt._x)("Post Comment","block title"),instructions:(0,pt.__)("To show a comment, input the comment ID."),children:[(0,it.jsx)(mt.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,value:e,onChange:e=>n(parseInt(e))}),(0,it.jsx)(mt.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:()=>{t({commentId:o})},children:(0,pt.__)("Save")})]})})},save:function(){const e=ct.useBlockProps.save(),t=ct.useInnerBlocksProps.save(e);return(0,it.jsx)("div",{...t})}},jf=()=>jt({name:wf,metadata:yf,settings:Cf});var Sf=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M13 8H4v1.5h9V8zM4 4v1.5h16V4H4zm9 8H5c-.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-1V13c0-.6-.4-1-1-1zm-2.2 6.6H7l1.6-2.2c.3-.4.5-.7.6-.9.1-.2.2-.4.2-.5 0-.2-.1-.3-.1-.4-.1-.1-.2-.1-.4-.1s-.4 0-.6.1c-.3.1-.5.3-.7.4l-.2.2-.2-1.2.1-.1c.3-.2.5-.3.8-.4.3-.1.6-.1.9-.1.3 0 .6.1.9.2.2.1.4.3.6.5.1.2.2.5.2.7 0 .3-.1.6-.2.9-.1.3-.4.7-.7 1.1l-.5.6h1.6v1.2z"})});const Bf=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/post-comments-count","title":"Comments Count","category":"theme","description":"Display a post\'s comments count.","textdomain":"default","attributes":{"textAlign":{"type":"string"}},"usesContext":["postId"],"example":{"viewportWidth":350},"supports":{"html":false,"color":{"gradients":true,"__experimentalDefaultControls":{"background":true,"text":true}},"spacing":{"margin":true,"padding":true},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true},"interactivity":{"clientNavigation":true}},"style":"wp-block-post-comments-count"}');var Tf={to:[{type:"block",blocks:["core/post-comments-link"],transform:({textAlign:e})=>(0,st.createBlock)("core/post-comments-link",{textAlign:e})}]};const{name:Nf}=Bf,Pf={icon:Sf,edit:function({attributes:e,context:t,setAttributes:o}){const{textAlign:n}=e,{postId:r}=t,[a,i]=(0,gt.useState)(),s=(0,ct.useBlockProps)({className:Dt({[`has-text-align-${n}`]:n})});(0,gt.useEffect)((()=>{if(!r)return;const e=r;Ua()({path:(0,no.addQueryArgs)("/wp/v2/comments",{post:r}),parse:!1}).then((t=>{e===r&&i(t.headers.get("X-WP-Total"))}))}),[r]);const l=r&&void 0!==a,c={...s.style,textDecoration:l?s.style?.textDecoration:void 0};return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.BlockControls,{group:"block",children:(0,it.jsx)(ct.AlignmentControl,{value:n,onChange:e=>{o({textAlign:e})}})}),(0,it.jsx)("div",{...s,style:c,children:l?a:(0,it.jsx)(ct.Warning,{children:(0,pt.__)("Post Comments Count block: post not found.")})})]})},transforms:Tf},If=()=>jt({name:Nf,metadata:Bf,settings:Pf});var Df=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M13 8H4v1.5h9V8zM4 4v1.5h16V4H4zm9 8H5c-.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-1V13c0-.6-.4-1-1-1zm-.5 6.6H6.7l-1.2 1.2v-6.3h7v5.1z"})});const Mf=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/post-comments-form","title":"Comments Form","category":"theme","description":"Display a post\'s comments form.","textdomain":"default","attributes":{"textAlign":{"type":"string"}},"usesContext":["postId","postType"],"supports":{"html":false,"color":{"gradients":true,"heading":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true}},"spacing":{"margin":true,"padding":true},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontStyle":true,"__experimentalFontWeight":true,"__experimentalLetterSpacing":true,"__experimentalTextTransform":true,"__experimentalDefaultControls":{"fontSize":true}},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true,"__experimentalDefaultControls":{"radius":true,"color":true,"width":true,"style":true}}},"editorStyle":"wp-block-post-comments-form-editor","style":["wp-block-post-comments-form","wp-block-buttons","wp-block-button"],"example":{"attributes":{"textAlign":"center"}}}');const{name:zf}=Mf,Af={icon:Df,edit:function e({attributes:t,context:o,setAttributes:n}){const{textAlign:r}=t,{postId:a,postType:i}=o,s=(0,xt.useInstanceId)(e),l=(0,pt.sprintf)("comments-form-edit-%d-desc",s),c=(0,ct.useBlockProps)({className:Dt({[`has-text-align-${r}`]:r}),"aria-describedby":l});return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.BlockControls,{group:"block",children:(0,it.jsx)(ct.AlignmentControl,{value:r,onChange:e=>{n({textAlign:e})}})}),(0,it.jsxs)("div",{...c,children:[(0,it.jsx)(ea,{postId:a,postType:i}),(0,it.jsx)(mt.VisuallyHidden,{id:l,children:(0,pt.__)("Comments form disabled in editor.")})]})]})}},Lf=()=>jt({name:zf,metadata:Mf,settings:Af}),Hf=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/post-comments-link","title":"Comments Link","category":"theme","description":"Displays the link to the current post comments.","textdomain":"default","usesContext":["postType","postId"],"attributes":{"textAlign":{"type":"string"}},"example":{"viewportWidth":350},"supports":{"html":false,"color":{"link":true,"text":false,"__experimentalDefaultControls":{"background":true,"link":true}},"spacing":{"margin":true,"padding":true},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true,"__experimentalDefaultControls":{"radius":true,"color":true,"width":true,"style":true}}},"style":"wp-block-post-comments-link"}');var Rf=function({context:e,attributes:t,setAttributes:o}){const{textAlign:n}=t,{postType:r,postId:a}=e,[i,s]=(0,gt.useState)(),l=(0,ct.useBlockProps)({className:Dt({[`has-text-align-${n}`]:n})});(0,gt.useEffect)((()=>{if(!a)return;const e=a;Ua()({path:(0,no.addQueryArgs)("/wp/v2/comments",{post:a}),parse:!1}).then((t=>{e===a&&s(t.headers.get("X-WP-Total"))}))}),[a]);const c=(0,lt.useSelect)((e=>e(_t.store).getEditedEntityRecord("postType",r,a)),[r,a]);if(!c)return(0,it.jsx)("div",{...l,children:(0,it.jsx)(ct.Warning,{children:(0,pt.__)("Post Comments Link block: post not found.")})});const{link:u}=c;let d;if(void 0!==i){const e=parseInt(i);d=0===e?(0,pt.__)("No comments"):(0,pt.sprintf)((0,pt._n)("%s comment","%s comments",e),e.toLocaleString())}return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.BlockControls,{group:"block",children:(0,it.jsx)(ct.AlignmentControl,{value:n,onChange:e=>{o({textAlign:e})}})}),(0,it.jsx)("div",{...l,children:u&&void 0!==d?(0,it.jsx)("a",{href:u+"#comments",onClick:e=>e.preventDefault(),children:d}):(0,it.jsx)(ct.Warning,{children:(0,pt.__)("Post Comments Link block: post not found.")})})]})};var Vf={to:[{type:"block",blocks:["core/post-comments-count"],transform:({textAlign:e})=>(0,st.createBlock)("core/post-comments-count",{textAlign:e})}]};const{name:Ff}=Hf,Ef={edit:Rf,icon:Sf,transforms:Vf},Of=()=>jt({name:Ff,metadata:Hf,settings:Ef});var Gf=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M4 6h12V4.5H4V6Zm16 4.5H4V9h16v1.5ZM4 15h16v-1.5H4V15Zm0 4.5h16V18H4v1.5Z"})});const $f=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/post-content","title":"Content","category":"theme","description":"Displays the contents of a post or page.","textdomain":"default","usesContext":["postId","postType","queryId"],"attributes":{"tagName":{"type":"string","default":"div"}},"example":{"viewportWidth":350},"supports":{"align":["wide","full"],"html":false,"layout":true,"background":{"backgroundImage":true,"backgroundSize":true,"__experimentalDefaultControls":{"backgroundImage":true}},"dimensions":{"minHeight":true},"spacing":{"blockGap":true,"padding":true,"margin":true,"__experimentalDefaultControls":{"margin":false,"padding":false}},"color":{"gradients":true,"heading":true,"link":true,"__experimentalDefaultControls":{"background":false,"text":false}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true,"__experimentalDefaultControls":{"radius":true,"color":true,"width":true,"style":true}}},"style":"wp-block-post-content","editorStyle":"wp-block-post-content-editor"}'),{HTMLElementControl:Uf}=jo(ct.privateApis);function qf({parentLayout:e,layoutClassNames:t,userCanEdit:o,postType:n,postId:r,tagName:a="div"}){const[,,i]=(0,_t.useEntityProp)("postType",n,"content",r),s=(0,ct.useBlockProps)({className:t}),l=(0,gt.useMemo)((()=>i?.raw?(0,st.parse)(i.raw):[]),[i?.raw]),c=(0,ct.__experimentalUseBlockPreview)({blocks:l,props:s,layout:e});return o?(0,it.jsx)("div",{...c}):i?.protected?(0,it.jsx)(a,{...s,children:(0,it.jsx)(ct.Warning,{children:(0,pt.__)("This content is password protected.")})}):(0,it.jsx)(a,{...s,dangerouslySetInnerHTML:{__html:i?.rendered}})}function Wf({context:e={},tagName:t="div"}){const{postType:o,postId:n}=e,[r,a,i]=(0,_t.useEntityBlockEditor)("postType",o,{id:n}),s=(0,lt.useSelect)((e=>e(_t.store).getEntityRecord("postType",o,n)),[o,n]),l=!!s?.content?.raw||r?.length,c=(0,ct.useInnerBlocksProps)((0,ct.useBlockProps)({className:"entry-content"}),{value:r,onInput:a,onChange:i,template:l?void 0:[["core/paragraph"]]});return(0,it.jsx)(t,{...c})}function Zf(e){const{context:{queryId:t,postType:o,postId:n}={},layoutClassNames:r,tagName:a}=e,i=bt("postType",o,n);if(void 0===i)return null;const s=Number.isFinite(t);return i&&!s?(0,it.jsx)(Wf,{...e}):(0,it.jsx)(qf,{parentLayout:e.parentLayout,layoutClassNames:r,userCanEdit:i,postType:o,postId:n,tagName:a})}function Jf({layoutClassNames:e}){const t=(0,ct.useBlockProps)({className:e});return(0,it.jsxs)("div",{...t,children:[(0,it.jsx)("p",{children:(0,pt.__)("This is the Content block, it will display all the blocks in any single post or page.")}),(0,it.jsx)("p",{children:(0,pt.__)("That might be a simple arrangement like consecutive paragraphs in a blog post, or a more elaborate composition that includes image galleries, videos, tables, columns, and any other block types.")}),(0,it.jsx)("p",{children:(0,pt.__)("If there are any Custom Post Types registered at your site, the Content block can display the contents of those entries as well.")})]})}function Qf(){const e=(0,ct.useBlockProps)();return(0,it.jsx)("div",{...e,children:(0,it.jsx)(ct.Warning,{children:(0,pt.__)("Block cannot be rendered inside itself.")})})}function Kf({tagName:e,onSelectTagName:t,clientId:o}){return(0,it.jsx)(ct.InspectorControls,{group:"advanced",children:(0,it.jsx)(Uf,{tagName:e,onChange:t,clientId:o,options:[{label:(0,pt.__)("Default (<div>)"),value:"div"},{label:"<main>",value:"main"},{label:"<section>",value:"section"},{label:"<article>",value:"article"}]})})}const{name:Yf}=$f,Xf={icon:Gf,edit:function({context:e,attributes:{tagName:t="div"},setAttributes:o,clientId:n,__unstableLayoutClassNames:r,__unstableParentLayout:a}){const{postId:i,postType:s}=e,l=(0,ct.useHasRecursion)(i);return i&&s&&l?(0,it.jsx)(Qf,{}):(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(Kf,{tagName:t,onSelectTagName:e=>{o({tagName:e})},clientId:n}),(0,it.jsx)(ct.RecursionProvider,{uniqueId:i,children:i&&s?(0,it.jsx)(Zf,{context:e,parentLayout:a,layoutClassNames:r}):(0,it.jsx)(Jf,{layoutClassNames:r})})]})}},ey=()=>jt({name:Yf,metadata:$f,settings:Xf}),ty=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/post-date","title":"Date","category":"theme","description":"Display a custom date.","textdomain":"default","attributes":{"datetime":{"type":"string","role":"content"},"textAlign":{"type":"string"},"format":{"type":"string"},"isLink":{"type":"boolean","default":false,"role":"content"}},"usesContext":["postId","postType","queryId"],"example":{"viewportWidth":350},"supports":{"html":false,"color":{"gradients":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true,"link":true}},"spacing":{"margin":true,"padding":true},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true,"__experimentalDefaultControls":{"radius":true,"color":true,"width":true,"style":true}}}}');function oy(e){return/(?:^|[^\\])[aAgh]/.test(e)}const ny={attributes:{datetime:{type:"string",role:"content"},textAlign:{type:"string"},format:{type:"string"},isLink:{type:"boolean",default:!1,role:"content"}},supports:{html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},save:()=>null,migrate:({metadata:{bindings:{datetime:{source:e,args:{key:t,...o}},...n},...r},...a})=>({metadata:{bindings:{datetime:{source:e,args:{field:t,...o}},...n},...r},...a}),isEligible:e=>"core/post-data"===e?.metadata?.bindings?.datetime?.source&&!!e?.metadata?.bindings?.datetime?.args?.key},ry={attributes:{textAlign:{type:"string"},format:{type:"string"},isLink:{type:"boolean",default:!1,role:"content"},displayType:{type:"string",default:"date"}},supports:{html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},save:()=>null,migrate({className:e,displayType:t,metadata:o,...n}){if("date"===t||"modified"===t)return"modified"===t&&(e=Dt(e,"wp-block-post-date__modified-date")),{...n,className:e,metadata:{...o,bindings:{datetime:{source:"core/post-data",args:{field:t}}}}}},isEligible:e=>!e.datetime&&!e?.metadata?.bindings?.datetime},ay={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:Yo,isEligible:({style:e})=>e?.typography?.fontFamily};var iy=[ny,ry,ay];const sy=[{name:"post-date",title:(0,pt.__)("Post Date"),description:(0,pt.__)("Display a post's publish date."),attributes:{metadata:{bindings:{datetime:{source:"core/post-data",args:{field:"date"}}}}},scope:["inserter","transform"],isActive:e=>"core/post-data"===e?.metadata?.bindings?.datetime?.source&&"date"===e?.metadata?.bindings?.datetime?.args?.field},{name:"post-date-modified",title:(0,pt.__)("Modified Date"),description:(0,pt.__)("Display a post's last updated date."),attributes:{metadata:{bindings:{datetime:{source:"core/post-data",args:{field:"modified"}}}},className:"wp-block-post-date__modified-date"},scope:["inserter","transform"],isActive:e=>"core/post-data"===e?.metadata?.bindings?.datetime?.source&&"modified"===e?.metadata?.bindings?.datetime?.args?.field}];var ly=sy;const{name:cy}=ty,uy={icon:wa,edit:function({attributes:e,context:{postType:t,queryId:o},setAttributes:n,name:r}){const{datetime:a,textAlign:i,format:s,isLink:l}=e,c=(0,ct.useBlockProps)({className:Dt({[`has-text-align-${i}`]:i})}),u=vt(),[d,p]=(0,gt.useState)(null),m=(0,gt.useMemo)((()=>({anchor:d})),[d]),{__unstableMarkNextChangeAsNotPersistent:g}=(0,lt.useDispatch)(ct.store);(0,gt.useEffect)((()=>{void 0===a&&(g(),n({datetime:new Date}))}),[a]);const h=Number.isFinite(o),_=(0,ja.getSettings)(),{postType:x,siteFormat:b=_.formats.date,siteTimeFormat:f=_.formats.time}=(0,lt.useSelect)((e=>{const{getPostType:o,getEntityRecord:n}=e(_t.store),r=n("root","site");return{siteFormat:r?.date_format,siteTimeFormat:r?.time_format,postType:t?o(t):null}}),[t]),y=(0,lt.useSelect)((t=>t(st.store).getActiveBlockVariation(r,e)?.name),[r,e]),v=(0,ct.useBlockEditingMode)();let k=(0,it.jsx)("time",{dateTime:(0,ja.dateI18n)("c",a),ref:p,children:"human-diff"===s?(0,ja.humanTimeDiff)(a):(0,ja.dateI18n)(s||b,a)});return l&&a&&(k=(0,it.jsx)("a",{href:"#post-date-pseudo-link",onClick:e=>e.preventDefault(),children:k})),(0,it.jsxs)(it.Fragment,{children:[("default"===v||!h)&&(0,it.jsxs)(ct.BlockControls,{group:"block",children:[(0,it.jsx)(ct.AlignmentControl,{value:i,onChange:e=>{n({textAlign:e})}}),"post-date-modified"!==y&&(!h||!y)&&(0,it.jsx)(mt.ToolbarGroup,{children:(0,it.jsx)(mt.Dropdown,{popoverProps:m,renderContent:({onClose:e})=>(0,it.jsx)(ct.__experimentalPublishDateTimePicker,{title:"post-date"===y?(0,pt.__)("Publish Date"):(0,pt.__)("Date"),currentDate:a,onChange:e=>n({datetime:e}),is12Hour:oy(f),onClose:e,dateOrder:(0,pt._x)("dmy","date order")}),renderToggle:({isOpen:e,onToggle:t})=>(0,it.jsx)(mt.ToolbarButton,{"aria-expanded":e,icon:$l,title:(0,pt.__)("Change Date"),onClick:t,onKeyDown:o=>{e||o.keyCode!==mn.DOWN||(o.preventDefault(),t())}})})})]}),(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{n({datetime:void 0,format:void 0,isLink:!1})},dropdownMenuProps:u,children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!!s,label:(0,pt.__)("Date Format"),onDeselect:()=>n({format:void 0}),isShownByDefault:!0,children:(0,it.jsx)(ct.__experimentalDateFormatPicker,{format:s,defaultFormat:b,onChange:e=>n({format:e})})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!1!==l,label:x?.labels.singular_name?(0,pt.sprintf)((0,pt.__)("Link to %s"),x.labels.singular_name.toLowerCase()):(0,pt.__)("Link to post"),onDeselect:()=>n({isLink:!1}),isShownByDefault:!0,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:x?.labels.singular_name?(0,pt.sprintf)((0,pt.__)("Link to %s"),x.labels.singular_name.toLowerCase()):(0,pt.__)("Link to post"),onChange:()=>n({isLink:!l}),checked:l})})]})}),(0,it.jsx)("div",{...c,children:k})]})},deprecated:iy,variations:ly},dy=()=>jt({name:cy,metadata:ty,settings:uy});var py=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M8.001 3.984V9.47c0 1.518-.98 2.5-2.499 2.5h-.5v-1.5h.5c.69 0 1-.31 1-1V6.984H4v-3h4.001ZM4 20h9v-1.5H4V20Zm16-4H4v-1.5h16V16ZM13.001 3.984V9.47c0 1.518-.98 2.5-2.499 2.5h-.5v-1.5h.5c.69 0 1-.31 1-1V6.984H9v-3h4.001Z"})});const my=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/post-excerpt","title":"Excerpt","category":"theme","description":"Display the excerpt.","textdomain":"default","attributes":{"textAlign":{"type":"string"},"moreText":{"type":"string","role":"content"},"showMoreOnNewLine":{"type":"boolean","default":true},"excerptLength":{"type":"number","default":55}},"usesContext":["postId","postType","queryId"],"example":{"viewportWidth":350},"supports":{"html":false,"color":{"gradients":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true,"link":true}},"spacing":{"margin":true,"padding":true},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true,"__experimentalDefaultControls":{"radius":true,"color":true,"width":true,"style":true}}},"editorStyle":"wp-block-post-excerpt-editor","style":"wp-block-post-excerpt"}');var gy={from:[{type:"block",blocks:["core/post-content"],transform:()=>(0,st.createBlock)("core/post-excerpt")}],to:[{type:"block",blocks:["core/post-content"],transform:()=>(0,st.createBlock)("core/post-content")}]};const{name:hy}=my,_y={icon:py,transforms:gy,edit:function({attributes:{textAlign:e,moreText:t,showMoreOnNewLine:o,excerptLength:n},setAttributes:r,isSelected:a,context:{postId:i,postType:s,queryId:l}}){const c="default"===(0,ct.useBlockEditingMode)(),u=Number.isFinite(l),d=bt("postType",s,i),[p,m,{rendered:g,protected:h}={}]=(0,_t.useEntityProp)("postType",s,"excerpt",i),_=vt(),x=(0,lt.useSelect)((e=>"page"===s||!!e(_t.store).getPostType(s)?.supports?.excerpt),[s]),b=d&&!u&&x,f=(0,ct.useBlockProps)({className:Dt({[`has-text-align-${e}`]:e})}),y=(0,pt._x)("words","Word count type. Do not translate!"),v=(0,gt.useMemo)((()=>{if(!g)return"";const e=(new window.DOMParser).parseFromString(g,"text/html");return e.body.textContent||e.body.innerText||""}),[g]);if(!s||!i)return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.BlockControls,{children:(0,it.jsx)(ct.AlignmentToolbar,{value:e,onChange:e=>r({textAlign:e})})}),(0,it.jsx)("div",{...f,children:(0,it.jsx)("p",{children:(0,pt.__)("This block will display the excerpt.")})})]});if(h&&!d)return(0,it.jsx)("div",{...f,children:(0,it.jsx)(ct.Warning,{children:(0,pt.__)("The content is currently protected and does not have the available excerpt.")})});const k=(0,it.jsx)(ct.RichText,{identifier:"moreText",className:"wp-block-post-excerpt__more-link",tagName:"a","aria-label":(0,pt.__)("“Read more” link text"),placeholder:(0,pt.__)('Add "read more" link text'),value:t,onChange:e=>r({moreText:e}),withoutInteractiveFormatting:!0}),w=Dt("wp-block-post-excerpt__excerpt",{"is-inline":!o}),C=(p||v).trim();let j="";if("words"===y)j=C.split(" ",n).join(" ");else if("characters_excluding_spaces"===y){const e=C.split("",n).join(""),t=e.length-e.replaceAll(" ","").length;j=C.split("",n+t).join("")}else"characters_including_spaces"===y&&(j=C.split("",n).join(""));const S=j!==C,B=b?(0,it.jsx)(ct.RichText,{className:w,"aria-label":(0,pt.__)("Excerpt text"),value:a?C:(S?j+"…":C)||(0,pt.__)("No excerpt found"),onChange:m,tagName:"p"}):(0,it.jsx)("p",{className:w,children:S?j+"…":C||(0,pt.__)("No excerpt found")});return(0,it.jsxs)(it.Fragment,{children:[c&&(0,it.jsx)(ct.BlockControls,{children:(0,it.jsx)(ct.AlignmentToolbar,{value:e,onChange:e=>r({textAlign:e})})}),(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{r({showMoreOnNewLine:!0,excerptLength:55})},dropdownMenuProps:_,children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!0!==o,label:(0,pt.__)("Show link on new line"),onDeselect:()=>r({showMoreOnNewLine:!0}),isShownByDefault:!0,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Show link on new line"),checked:o,onChange:e=>r({showMoreOnNewLine:e})})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>55!==n,label:(0,pt.__)("Max number of words"),onDeselect:()=>r({excerptLength:55}),isShownByDefault:!0,children:(0,it.jsx)(mt.RangeControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("Max number of words"),value:n,onChange:e=>{r({excerptLength:e})},min:"10",max:"100"})})]})}),(0,it.jsxs)("div",{...f,children:[B,!o&&" ",o?(0,it.jsx)("p",{className:"wp-block-post-excerpt__more-text",children:k}):k]})]})}},xy=()=>jt({name:hy,metadata:my,settings:_y});var by=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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 fy=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/post-featured-image","title":"Featured Image","category":"theme","description":"Display a post\'s featured image.","textdomain":"default","attributes":{"isLink":{"type":"boolean","default":false,"role":"content"},"aspectRatio":{"type":"string"},"width":{"type":"string"},"height":{"type":"string"},"scale":{"type":"string","default":"cover"},"sizeSlug":{"type":"string"},"rel":{"type":"string","attribute":"rel","default":"","role":"content"},"linkTarget":{"type":"string","default":"_self","role":"content"},"overlayColor":{"type":"string"},"customOverlayColor":{"type":"string"},"dimRatio":{"type":"number","default":0},"gradient":{"type":"string"},"customGradient":{"type":"string"},"useFirstImageFromPost":{"type":"boolean","default":false}},"usesContext":["postId","postType","queryId"],"example":{"viewportWidth":350},"supports":{"align":["left","right","center","wide","full"],"color":{"text":false,"background":false},"__experimentalBorder":{"color":true,"radius":true,"width":true,"__experimentalSkipSerialization":true,"__experimentalDefaultControls":{"color":true,"radius":true,"width":true}},"filter":{"duotone":true},"shadow":{"__experimentalSkipSerialization":true},"html":false,"spacing":{"margin":true,"padding":true},"interactivity":{"clientNavigation":true}},"selectors":{"border":".wp-block-post-featured-image img, .wp-block-post-featured-image .block-editor-media-placeholder, .wp-block-post-featured-image .wp-block-post-featured-image__overlay","shadow":".wp-block-post-featured-image img, .wp-block-post-featured-image .components-placeholder","filter":{"duotone":".wp-block-post-featured-image img, .wp-block-post-featured-image .wp-block-post-featured-image__placeholder, .wp-block-post-featured-image .components-placeholder__illustration, .wp-block-post-featured-image .components-placeholder::before"}},"editorStyle":"wp-block-post-featured-image-editor","style":"wp-block-post-featured-image"}'),yy=(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(mt.__experimentalToggleGroupControlOption,{value:"cover",label:(0,pt._x)("Cover","Scale option for Image dimension control")}),(0,it.jsx)(mt.__experimentalToggleGroupControlOption,{value:"contain",label:(0,pt._x)("Contain","Scale option for Image dimension control")}),(0,it.jsx)(mt.__experimentalToggleGroupControlOption,{value:"fill",label:(0,pt._x)("Fill","Scale option for Image dimension control")})]}),vy="cover",ky={cover:(0,pt.__)("Image is scaled and cropped to fill the entire space without being distorted."),contain:(0,pt.__)("Image is scaled to fill the space without clipping nor distorting."),fill:(0,pt.__)("Image will be stretched and distorted to completely fill the space.")};var wy=({clientId:e,attributes:{aspectRatio:t,width:o,height:n,scale:r},setAttributes:a})=>{const[i,s,l,c]=(0,ct.useSettings)("spacing.units","dimensions.aspectRatios.default","dimensions.aspectRatios.theme","dimensions.defaultAspectRatios"),u=(0,mt.__experimentalUseCustomUnits)({availableUnits:i||["px","%","vw","em","rem"]}),d=(e,t)=>{const o=parseFloat(t);isNaN(o)&&t||a({[e]:o<0?"0":t})},p=(0,pt._x)("Scale","Image scaling options"),m=n||t&&"auto"!==t,g=l?.map((({name:e,ratio:t})=>({label:e,value:t}))),h=s?.map((({name:e,ratio:t})=>({label:e,value:t}))),_=[{label:(0,pt._x)("Original","Aspect ratio option for dimensions control"),value:"auto"},...c?h:[],...g||[]];return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!!t,label:(0,pt.__)("Aspect ratio"),onDeselect:()=>a({aspectRatio:void 0}),resetAllFilter:()=>({aspectRatio:void 0}),isShownByDefault:!0,panelId:e,children:(0,it.jsx)(mt.SelectControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("Aspect ratio"),value:t,options:_,onChange:e=>a({aspectRatio:e})})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{className:"single-column",hasValue:()=>!!n,label:(0,pt.__)("Height"),onDeselect:()=>a({height:void 0}),resetAllFilter:()=>({height:void 0}),isShownByDefault:!0,panelId:e,children:(0,it.jsx)(mt.__experimentalUnitControl,{__next40pxDefaultSize:!0,label:(0,pt.__)("Height"),labelPosition:"top",value:n||"",min:0,onChange:e=>d("height",e),units:u})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{className:"single-column",hasValue:()=>!!o,label:(0,pt.__)("Width"),onDeselect:()=>a({width:void 0}),resetAllFilter:()=>({width:void 0}),isShownByDefault:!0,panelId:e,children:(0,it.jsx)(mt.__experimentalUnitControl,{__next40pxDefaultSize:!0,label:(0,pt.__)("Width"),labelPosition:"top",value:o||"",min:0,onChange:e=>d("width",e),units:u})}),m&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!!r&&r!==vy,label:p,onDeselect:()=>a({scale:vy}),resetAllFilter:()=>({scale:vy}),isShownByDefault:!0,panelId:e,children:(0,it.jsx)(mt.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:p,value:r,help:ky[r],onChange:e=>a({scale:e}),isBlock:!0,children:yy})})]})};var Cy=(0,xt.compose)([(0,ct.withColors)({overlayColor:"background-color"})])((({clientId:e,attributes:t,setAttributes:o,overlayColor:n,setOverlayColor:r})=>{const{dimRatio:a}=t,{gradientValue:i,setGradient:s}=(0,ct.__experimentalUseGradient)(),l=(0,ct.__experimentalUseMultipleOriginColorsAndGradients)();return l.hasColorsOrGradients?(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.__experimentalColorGradientSettingsDropdown,{__experimentalIsRenderedInSidebar:!0,settings:[{colorValue:n.color,gradientValue:i,label:(0,pt.__)("Overlay"),onColorChange:r,onGradientChange:s,isShownByDefault:!0,resetAllFilter:()=>({overlayColor:void 0,customOverlayColor:void 0,gradient:void 0,customGradient:void 0}),clearable:!0}],panelId:e,...l}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>void 0!==a,label:(0,pt.__)("Overlay opacity"),onDeselect:()=>o({dimRatio:0}),resetAllFilter:()=>({dimRatio:0}),isShownByDefault:!0,panelId:e,children:(0,it.jsx)(mt.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Overlay opacity"),value:a,onChange:e=>o({dimRatio:e}),min:0,max:100,step:10,required:!0,__next40pxDefaultSize:!0})})]}):null}));var jy=(0,xt.compose)([(0,ct.withColors)({overlayColor:"background-color"})])((({attributes:e,overlayColor:t})=>{const{dimRatio:o}=e,{gradientClass:n,gradientValue:r}=(0,ct.__experimentalUseGradient)(),a=(0,ct.__experimentalUseMultipleOriginColorsAndGradients)(),i=(0,ct.__experimentalUseBorderProps)(e),s={backgroundColor:t.color,backgroundImage:r,...i.style};return a.hasColorsOrGradients&&o?(0,it.jsx)("span",{"aria-hidden":"true",className:Dt("wp-block-post-featured-image__overlay",(l=o,void 0===l?null:"has-background-dim-"+10*Math.round(l/10)),{[t.class]:t.class,"has-background-dim":void 0!==o,"has-background-gradient":r,[n]:n},i.className),style:s}):null;var l}));const Sy=["image"],{ResolutionTool:By}=jo(ct.privateApis),Ty="full";function Ny({image:e,value:t,onChange:o}){const{imageSizes:n}=(0,lt.useSelect)((e=>{const{getSettings:t}=e(ct.store);return{imageSizes:t().imageSizes}}),[]);if(!n?.length)return null;const r=n.filter((({slug:t})=>e?.media_details?.sizes?.[t]?.source_url)).map((({name:e,slug:t})=>({value:t,label:e})));return(0,it.jsx)(By,{value:t,defaultValue:Ty,options:r,onChange:o})}const{name:Py}=fy,Iy={icon:by,edit:function({clientId:e,attributes:t,setAttributes:o,context:{postId:n,postType:r,queryId:a}}){const i=Number.isFinite(a),{isLink:s,aspectRatio:l,height:c,width:u,scale:d,sizeSlug:p,rel:m,linkTarget:g,useFirstImageFromPost:h}=t,[_,x]=(0,gt.useState)(),[b,f]=(0,_t.useEntityProp)("postType",r,"featured_media",n),[y]=(0,_t.useEntityProp)("postType",r,"content",n),v=(0,gt.useMemo)((()=>{if(b)return b;if(!h)return;const e=/<!--\s+wp:(?:core\/)?image\s+(?<attrs>{(?:(?:[^}]+|}+(?=})|(?!}\s+\/?-->).)*)?}\s+)?-->/.exec(y);return e?.groups?.attrs&&JSON.parse(e.groups.attrs)?.id}),[b,h,y]),{media:k,postType:w,postPermalink:C}=(0,lt.useSelect)((e=>{const{getEntityRecord:t,getPostType:o,getEditedEntityRecord:a}=e(_t.store);return{media:v&&t("postType","attachment",v,{context:"view"}),postType:r&&o(r),postPermalink:a("postType",r,n)?.link}}),[v,r,n]),j=k?.media_details?.sizes?.[p]?.source_url||k?.source_url,S=(0,ct.useBlockProps)({style:{width:u,height:c,aspectRatio:l},className:Dt({"is-transient":_})}),B=(0,ct.__experimentalUseBorderProps)(t),T=(0,ct.__experimentalGetShadowClassesAndStyles)(t),N=(0,ct.useBlockEditingMode)(),P=e=>(0,it.jsx)(mt.Placeholder,{className:Dt("block-editor-media-placeholder",B.className),withIllustration:!0,style:{height:!!l&&"100%",width:!!l&&"100%",...B.style,...T.style},children:e}),I=e=>{e?.id&&f(e.id),e?.url&&(0,ht.isBlobURL)(e.url)&&x(e.url)};(0,gt.useEffect)((()=>{j&&_&&x()}),[j,_]);const{createErrorNotice:D}=(0,lt.useDispatch)(bo.store),M=e=>{D(e,{type:"snackbar"}),x()},z=vt(),A="default"===N&&(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.InspectorControls,{group:"color",children:(0,it.jsx)(Cy,{attributes:t,setAttributes:o,clientId:e})}),(0,it.jsx)(ct.InspectorControls,{group:"dimensions",children:(0,it.jsx)(wy,{clientId:e,attributes:t,setAttributes:o,media:k})}),(v||i||!n)&&(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{o({isLink:!1,linkTarget:"_self",rel:"",sizeSlug:Ty})},dropdownMenuProps:z,children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:w?.labels.singular_name?(0,pt.sprintf)((0,pt.__)("Link to %s"),w.labels.singular_name):(0,pt.__)("Link to post"),isShownByDefault:!0,hasValue:()=>!!s,onDeselect:()=>o({isLink:!1}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:w?.labels.singular_name?(0,pt.sprintf)((0,pt.__)("Link to %s"),w.labels.singular_name):(0,pt.__)("Link to post"),onChange:()=>o({isLink:!s}),checked:s})}),s&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>"_self"!==g,onDeselect:()=>o({linkTarget:"_self"}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Open in new tab"),onChange:e=>o({linkTarget:e?"_blank":"_self"}),checked:"_blank"===g})}),s&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Link relation"),isShownByDefault:!0,hasValue:()=>!!m,onDeselect:()=>o({rel:""}),children:(0,it.jsx)(mt.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("Link relation"),help:(0,gt.createInterpolateElement)((0,pt.__)("The <a>Link Relation</a> attribute defines the relationship between a linked resource and the current document."),{a:(0,it.jsx)(mt.ExternalLink,{href:"https://developer.mozilla.org/docs/Web/HTML/Attributes/rel"})}),value:m,onChange:e=>o({rel:e})})}),!!k&&(0,it.jsx)(Ny,{image:k,value:p,onChange:e=>o({sizeSlug:e})})]})})]});let L;if(!v&&(i||!n))return(0,it.jsxs)(it.Fragment,{children:[A,(0,it.jsxs)("div",{...S,children:[s?(0,it.jsx)("a",{href:C,target:g,children:P()}):P(),(0,it.jsx)(jy,{attributes:t,setAttributes:o,clientId:e})]})]});const H=(0,pt.__)("Add a featured image"),R={...B.style,...T.style,height:l?"100%":c,width:!!l&&"100%",objectFit:!(!c&&!l)&&d};return L=v||_?k||_?(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)("img",{className:B.className,src:_||j,alt:k&&k?.alt_text?(0,pt.sprintf)((0,pt.__)("Featured image: %s"),k.alt_text):(0,pt.__)("Featured image"),style:R}),_&&(0,it.jsx)(mt.Spinner,{})]}):P():(0,it.jsx)(ct.MediaPlaceholder,{onSelect:I,accept:"image/*",allowedTypes:Sy,onError:M,placeholder:P,mediaLibraryButton:({open:e})=>(0,it.jsx)(mt.Button,{__next40pxDefaultSize:!0,icon:Jp,variant:"primary",label:H,showTooltip:!0,tooltipPosition:"top center",onClick:()=>{e()}})}),(0,it.jsxs)(it.Fragment,{children:[!_&&A,!!k&&!i&&(0,it.jsx)(ct.BlockControls,{group:"other",children:(0,it.jsx)(ct.MediaReplaceFlow,{mediaId:v,mediaURL:j,allowedTypes:Sy,accept:"image/*",onSelect:I,onError:M,onReset:()=>{o({isLink:!1,linkTarget:"_self",rel:"",sizeSlug:void 0}),f(0)}})}),(0,it.jsxs)("figure",{...S,children:[s?(0,it.jsx)("a",{href:C,target:g,children:L}):L,(0,it.jsx)(jy,{attributes:t,setAttributes:o,clientId:e})]})]})}},Dy=()=>jt({name:Py,metadata:fy,settings:Iy}),My=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"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","role":"content"},"showTitle":{"type":"boolean","default":false},"linkLabel":{"type":"boolean","default":false},"arrow":{"type":"string","default":"none"},"taxonomy":{"type":"string","default":""}},"usesContext":["postType"],"supports":{"reusable":false,"html":false,"color":{"link":true},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalWritingMode":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true}},"style":"wp-block-post-navigation-link"}');var zy=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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"})}),Ay=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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"})});const Ly=[{name:"post-previous",title:(0,pt.__)("Previous Post"),description:(0,pt.__)("Displays the post link that precedes the current post."),icon:zy,attributes:{type:"previous"},scope:["inserter","transform"],example:{attributes:{label:(0,pt.__)("Previous post"),arrow:"arrow"}}},{isDefault:!0,name:"post-next",title:(0,pt.__)("Next Post"),description:(0,pt.__)("Displays the post link that follows the current post."),icon:Ay,attributes:{type:"next"},scope:["inserter","transform"],example:{attributes:{label:(0,pt.__)("Next post"),arrow:"arrow"}}}];Ly.forEach((e=>{e.isActive||(e.isActive=(e,t)=>e.type===t.type)}));var Hy=Ly;const{name:Ry}=My,Vy={edit:function({context:{postType:e},attributes:{type:t,label:o,showTitle:n,textAlign:r,linkLabel:a,arrow:i,taxonomy:s},setAttributes:l}){const c="default"===(0,ct.useBlockEditingMode)(),u="next"===t;let d=u?(0,pt.__)("Next"):(0,pt.__)("Previous");const p={none:"",arrow:u?"→":"←",chevron:u?"»":"«"}[i];n&&(d=u?(0,pt.__)("Next: "):(0,pt.__)("Previous: "));const m=u?(0,pt.__)("Next post"):(0,pt.__)("Previous post"),g=(0,ct.useBlockProps)({className:Dt({[`has-text-align-${r}`]:r})}),h=(0,lt.useSelect)((t=>{const{getTaxonomies:o}=t(_t.store);return o({type:e,per_page:-1})}),[e]),_=vt();return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{l({showTitle:!1,linkLabel:!1,arrow:"none"})},dropdownMenuProps:_,children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Display the title as a link"),isShownByDefault:!0,hasValue:()=>n,onDeselect:()=>l({showTitle:!1}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Display the title as a link"),help:(0,pt.__)("If you have entered a custom label, it will be prepended before the title."),checked:!!n,onChange:()=>l({showTitle:!n})})}),n&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Include the label as part of the link"),isShownByDefault:!0,hasValue:()=>!!a,onDeselect:()=>l({linkLabel:!1}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Include the label as part of the link"),checked:!!a,onChange:()=>l({linkLabel:!a})})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Arrow"),isShownByDefault:!0,hasValue:()=>"none"!==i,onDeselect:()=>l({arrow:"none"}),children:(0,it.jsxs)(mt.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("Arrow"),value:i,onChange:e=>{l({arrow:e})},help:(0,pt.__)("A decorative arrow for the next and previous link."),isBlock:!0,children:[(0,it.jsx)(mt.__experimentalToggleGroupControlOption,{value:"none",label:(0,pt._x)("None","Arrow option for Next/Previous link")}),(0,it.jsx)(mt.__experimentalToggleGroupControlOption,{value:"arrow",label:(0,pt._x)("Arrow","Arrow option for Next/Previous link")}),(0,it.jsx)(mt.__experimentalToggleGroupControlOption,{value:"chevron",label:(0,pt._x)("Chevron","Arrow option for Next/Previous link")})]})})]})}),(0,it.jsx)(ct.InspectorControls,{group:"advanced",children:(0,it.jsx)(mt.SelectControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("Filter by taxonomy"),value:s,options:[{label:(0,pt.__)("Unfiltered"),value:""},...(h??[]).filter((({visibility:e})=>!!e?.publicly_queryable)).map((e=>({value:e.slug,label:e.name})))],onChange:e=>l({taxonomy:e}),help:(0,pt.__)("Only link to posts that have the same taxonomy terms as the current post. For example the same tags or categories.")})}),c&&(0,it.jsx)(ct.BlockControls,{children:(0,it.jsx)(ct.AlignmentToolbar,{value:r,onChange:e=>{l({textAlign:e})}})}),(0,it.jsxs)("div",{...g,children:[!u&&p&&(0,it.jsx)("span",{className:`wp-block-post-navigation-link__arrow-previous is-arrow-${i}`,children:p}),(0,it.jsx)(ct.RichText,{tagName:"a",identifier:"label","aria-label":m,placeholder:d,value:o,withoutInteractiveFormatting:!0,onChange:e=>l({label:e})}),n&&(0,it.jsx)("a",{href:"#post-navigation-pseudo-link",onClick:e=>e.preventDefault(),children:(0,pt.__)("An example title")}),u&&p&&(0,it.jsx)("span",{className:`wp-block-post-navigation-link__arrow-next is-arrow-${i}`,"aria-hidden":!0,children:p})]})]})},variations:Hy,example:{attributes:{label:(0,pt.__)("Next post"),arrow:"arrow"}}},Fy=()=>jt({name:Ry,metadata:My,settings:Vy}),Ey=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/post-template","title":"Post Template","category":"theme","ancestor":["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","displayLayout","templateSlug","previewPostType","enhancedPagination","postType"],"supports":{"reusable":false,"html":false,"align":["wide","full"],"layout":true,"color":{"gradients":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"spacing":{"margin":true,"padding":true,"blockGap":{"__experimentalDefault":"1.25em"},"__experimentalDefaultControls":{"blockGap":true,"padding":false,"margin":false}},"interactivity":{"clientNavigation":true},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true}},"style":"wp-block-post-template","editorStyle":"wp-block-post-template-editor"}'),Oy=[["core/post-title"],["core/post-date",{metadata:{bindings:{datetime:{source:"core/post-data",args:{field:"date"}}}}}],["core/post-excerpt"]];function Gy({classList:e}){const t=(0,ct.useInnerBlocksProps)({className:Dt("wp-block-post",e)},{template:Oy,__unstableDisableLayoutClassNames:!0});return(0,it.jsx)("li",{...t})}const $y=(0,gt.memo)((function({blocks:e,blockContextId:t,classList:o,isHidden:n,setActiveBlockContextId:r}){const a=(0,ct.__experimentalUseBlockPreview)({blocks:e,props:{className:Dt("wp-block-post",o)}}),i=()=>{r(t)},s={display:n?"none":void 0};return(0,it.jsx)("li",{...a,tabIndex:0,role:"button",onClick:i,onKeyPress:i,style:s})}));const{name:Uy}=Ey,qy={icon:Oa,edit:function({setAttributes:e,clientId:t,context:{query:{perPage:o,offset:n=0,postType:r,order:a,orderBy:i,author:s,search:l,exclude:c,sticky:u,inherit:d,taxQuery:p,parents:m,pages:g,format:h,..._}={},templateSlug:x,previewPostType:b},attributes:{layout:f},__unstableLayoutClassNames:y}){const{type:v,columnCount:k=3}=f||{},[w,C]=(0,gt.useState)(),{posts:j,blocks:S}=(0,lt.useSelect)((e=>{const{getEntityRecords:g,getTaxonomies:f}=e(_t.store),{getBlocks:y}=e(ct.store),v=d&&x?.startsWith("category-")&&g("taxonomy","category",{context:"view",per_page:1,_fields:["id"],slug:x.replace("category-","")}),k=d&&x?.startsWith("tag-")&&g("taxonomy","post_tag",{context:"view",per_page:1,_fields:["id"],slug:x.replace("tag-","")}),w={offset:n||0,order:a,orderby:i};if(p&&!d){const e=f({type:r,per_page:-1,context:"view"}),t=Object.entries(p).reduce(((t,[o,n])=>{const r=e?.find((({slug:e})=>e===o));return r?.rest_base&&(t[r?.rest_base]=n),t}),{});Object.keys(t).length&&Object.assign(w,t)}o&&(w.per_page=o),s&&(w.author=s),l&&(w.search=l),c?.length&&(w.exclude=c),m?.length&&(w.parent=m),h?.length&&(w.format=h),["exclude","only"].includes(u)&&(w.sticky="only"===u),["","ignore"].includes(u)&&(delete w.sticky,w.ignore_sticky="ignore"===u);let C=r;d&&(x?.startsWith("archive-")?(w.postType=x.replace("archive-",""),C=w.postType):v?w.categories=v[0]?.id:k?w.tags=k[0]?.id:x?.startsWith("taxonomy-post_format")&&(w.format=x.replace("taxonomy-post_format-post-format-","")));return{posts:g("postType",b||C,{...w,..._}),blocks:y(t)}}),[o,n,a,i,t,s,l,r,c,u,d,x,p,m,h,_,b]),B=(0,gt.useMemo)((()=>j?.map((e=>({postType:e.type,postId:e.id,classList:e.class_list??""})))),[j]),T=(0,ct.useBlockProps)({className:Dt(y,{[`columns-${k}`]:"grid"===v&&k})});if(!j)return(0,it.jsx)("p",{...T,children:(0,it.jsx)(mt.Spinner,{})});if(!j.length)return(0,it.jsxs)("p",{...T,children:[" ",(0,pt.__)("No results found.")]});const N=t=>e({layout:{...f,...t}}),P=[{icon:Bm,title:(0,pt._x)("List view","Post template block display setting"),onClick:()=>N({type:"default"}),isActive:"default"===v||"constrained"===v},{icon:qd,title:(0,pt._x)("Grid view","Post template block display setting"),onClick:()=>N({type:"grid",columnCount:k}),isActive:"grid"===v}];return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.BlockControls,{children:(0,it.jsx)(mt.ToolbarGroup,{controls:P})}),(0,it.jsx)("ul",{...T,children:B&&B.map((e=>(0,it.jsxs)(ct.BlockContextProvider,{value:e,children:[e.postId===(w||B[0]?.postId)?(0,it.jsx)(Gy,{classList:e.classList}):null,(0,it.jsx)($y,{blocks:S,blockContextId:e.postId,classList:e.classList,setActiveBlockContextId:C,isHidden:e.postId===(w||B[0]?.postId)})]},e.postId)))})]})},save:function(){return(0,it.jsx)(ct.InnerBlocks.Content,{})}},Wy=()=>jt({name:Uy,metadata:Ey,settings:qy});var Zy=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.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"})});const Jy=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"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":", "},"prefix":{"type":"string","default":"","role":"content"},"suffix":{"type":"string","default":"","role":"content"}},"usesContext":["postId","postType"],"example":{"viewportWidth":350},"supports":{"html":false,"color":{"gradients":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true,"link":true}},"spacing":{"margin":true,"padding":true},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true,"__experimentalDefaultControls":{"radius":true,"color":true,"width":true,"style":true}}},"style":"wp-block-post-terms"}'),Qy=[];const Ky=["core/bold","core/image","core/italic","core/link","core/strikethrough","core/text-color"];var Yy=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.Path,{d:"M8.1 12.3c.1.1.3.3.5.3.2.1.4.1.6.1.2 0 .4 0 .6-.1.2-.1.4-.2.5-.3l3-3c.3-.3.5-.7.5-1.1 0-.4-.2-.8-.5-1.1L9.7 3.5c-.1-.2-.3-.3-.5-.3H5c-.4 0-.8.4-.8.8v4.2c0 .2.1.4.2.5l3.7 3.6zM5.8 4.8h3.1l3.4 3.4v.1l-3 3 .5.5-.7-.5-3.3-3.4V4.8zM4 20h9v-1.5H4V20zm0-5.5V16h16v-1.5H4z"})});const Xy={category:Zy,post_tag:Yy};function ev(e,t){if("core/post-terms"!==t)return e;const o=e.variations.map((e=>({...e,icon:Xy[e.name]??Zy})));return{...e,variations:o}}const{name:tv}=Jy,ov={icon:Zy,edit:function({attributes:e,clientId:t,context:o,isSelected:n,setAttributes:r,insertBlocksAfter:a}){const{term:i,textAlign:s,separator:l,prefix:c,suffix:u}=e,{postId:d,postType:p}=o,m="default"===(0,ct.useBlockEditingMode)(),g=(0,lt.useSelect)((e=>{if(!i)return{};const{getTaxonomy:t}=e(_t.store),o=t(i);return o?.visibility?.publicly_queryable?o:{}}),[i]),{postTerms:h,hasPostTerms:_,isLoading:x}=function({postId:e,term:t}){const{slug:o}=t;return(0,lt.useSelect)((n=>{const r=t?.visibility?.publicly_queryable;if(!r)return{postTerms:Qy,isLoading:!1,hasPostTerms:!1};const{getEntityRecords:a,isResolving:i}=n(_t.store),s=["taxonomy",o,{post:e,per_page:-1,context:"view"}],l=a(...s);return{postTerms:l,isLoading:i("getEntityRecords",s),hasPostTerms:!!l?.length}}),[e,t?.visibility?.publicly_queryable,o])}({postId:d,term:g}),b=d&&p,f=(0,ct.useBlockDisplayInformation)(t),y=(0,ct.useBlockProps)({className:Dt({[`has-text-align-${s}`]:s,[`taxonomy-${i}`]:i})});return(0,it.jsxs)(it.Fragment,{children:[m&&(0,it.jsx)(ct.BlockControls,{children:(0,it.jsx)(ct.AlignmentToolbar,{value:s,onChange:e=>{r({textAlign:e})}})}),(0,it.jsx)(ct.InspectorControls,{group:"advanced",children:(0,it.jsx)(mt.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,autoComplete:"off",label:(0,pt.__)("Separator"),value:l||"",onChange:e=>{r({separator:e})},help:(0,pt.__)("Enter character(s) used to separate terms.")})}),(0,it.jsxs)("div",{...y,children:[x&&b&&(0,it.jsx)(mt.Spinner,{}),!x&&(n||c)&&(0,it.jsx)(ct.RichText,{identifier:"prefix",allowedFormats:Ky,className:"wp-block-post-terms__prefix","aria-label":(0,pt.__)("Prefix"),placeholder:(0,pt.__)("Prefix")+" ",value:c,onChange:e=>r({prefix:e}),tagName:"span"}),(!b||!i)&&(0,it.jsx)("span",{children:f.title}),b&&!x&&_&&h.map((e=>(0,it.jsx)("a",{href:e.link,onClick:e=>e.preventDefault(),rel:"tag",children:(0,ao.decodeEntities)(e.name)},e.id))).reduce(((e,t)=>(0,it.jsxs)(it.Fragment,{children:[e,(0,it.jsx)("span",{className:"wp-block-post-terms__separator",children:l||" "}),t]}))),b&&!x&&!_&&(g?.labels?.no_terms||(0,pt.__)("Term items not found.")),!x&&(n||u)&&(0,it.jsx)(ct.RichText,{identifier:"suffix",allowedFormats:Ky,className:"wp-block-post-terms__suffix","aria-label":(0,pt.__)("Suffix"),placeholder:" "+(0,pt.__)("Suffix"),value:u,onChange:e=>r({suffix:e}),tagName:"span",__unstableOnSplitAtEnd:()=>a((0,st.createBlock)((0,st.getDefaultBlockName)()))})]})]})}},nv=()=>((0,vl.addFilter)("blocks.registerBlockType","core/template-part",ev),jt({name:tv,metadata:Jy,settings:ov}));var rv=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M12 3c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 16.5c-4.1 0-7.5-3.4-7.5-7.5S7.9 4.5 12 4.5s7.5 3.4 7.5 7.5-3.4 7.5-7.5 7.5zM12 7l-1 5c0 .3.2.6.4.8l4.2 2.8-2.7-4.1L12 7z"})});const av=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/post-time-to-read","title":"Time to Read","category":"theme","description":"Show minutes required to finish reading the post. Can also show a word count.","textdomain":"default","usesContext":["postId","postType"],"attributes":{"textAlign":{"type":"string"},"displayAsRange":{"type":"boolean","default":true},"displayMode":{"type":"string","default":"time"},"averageReadingSpeed":{"type":"number","default":189}},"supports":{"color":{"gradients":true,"__experimentalDefaultControls":{"background":true,"text":true}},"html":false,"spacing":{"margin":true,"padding":true,"__experimentalDefaultControls":{"margin":false,"padding":false}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true}}}'),iv=window.wp.wordcount;var sv=function({attributes:e,setAttributes:t,context:o}){const{textAlign:n,displayAsRange:r,displayMode:a,averageReadingSpeed:i}=e,{postId:s,postType:l}=o,c=vt(),[u]=(0,_t.useEntityProp)("postType",l,"content",s),[d]=(0,_t.useEntityBlockEditor)("postType",l,{id:s}),p=(0,gt.useMemo)((()=>{let e;e=u instanceof Function?u({blocks:d}):d?(0,st.__unstableSerializeAndClean)(d):u;const t=(0,pt._x)("words","Word count type. Do not translate!"),o=(0,iv.count)(e||"",t);if("time"===a){if(r){let e=Math.max(1,Math.round(o/i*1.2));const t=Math.max(1,Math.round(o/i*.8));t===e&&(e+=1);const n=(0,pt._x)("%1$s–%2$s minutes","Range of minutes to read");return(0,pt.sprintf)(n,t,e)}const e=Math.max(1,Math.round(o/i));return(0,pt.sprintf)((0,pt._n)("%s minute","%s minutes",e),e)}if("words"===a)return"words"===t?(0,pt.sprintf)((0,pt._n)("%s word","%s words",o),o.toLocaleString()):(0,pt.sprintf)((0,pt._n)("%s character","%s characters",o),o.toLocaleString())}),[u,d,r,a,i]),m=(0,ct.useBlockProps)({className:Dt({[`has-text-align-${n}`]:n})});return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.BlockControls,{group:"block",children:(0,it.jsx)(ct.AlignmentControl,{value:n,onChange:e=>{t({textAlign:e})}})}),"time"===a&&(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsx)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{t({displayAsRange:!0})},dropdownMenuProps:c,children:(0,it.jsx)(mt.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,pt._x)("Display as range","Turns reading time range display on or off"),hasValue:()=>!r,onDeselect:()=>{t({displayAsRange:!0})},children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Display as range"),checked:!!r,onChange:()=>t({displayAsRange:!r})})})})}),(0,it.jsx)("div",{...m,children:p})]})},lv=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M19 5c1.1 0 2 .9 2 2v10c0 1.1-.9 2-2 2H5c-1.1 0-2-.9-2-2V7c0-1.1.9-2 2-2zM5 6.5c-.3 0-.5.2-.5.5v10c0 .3.2.5.5.5h14c.3 0 .5-.2.5-.5V7c0-.3-.2-.5-.5-.5zM14.734 9q.714 0 1.15.253.437.247.639.84.2.591.2 1.61v1.15q0 .402.036.667.04.258.172.39.138.127.437.127h.104l-.162.828h-.08q-.5 0-.776-.097a.9.9 0 0 1-.414-.283 2 2 0 0 1-.259-.448q-.316.367-.748.598-.43.23-.977.23-.524 0-.914-.213a1.56 1.56 0 0 1-.61-.58 1.65 1.65 0 0 1-.213-.84q0-.477.207-.817.213-.345.564-.568.357-.23.794-.363.437-.139.902-.196.471-.062.902-.068 0-.805-.315-1.053-.316-.247-.915-.247-.316 0-.678.098-.356.097-.805.408l-.15-.84a2.8 2.8 0 0 1 .846-.419A3.4 3.4 0 0 1 14.734 9m-5.877 1.669H9.86l.59-1.531h.689l-.585 1.53h.898l-.249.727h-.922l-.337.866h1.019l-.354.773h-.962l-.681 1.804h-.701l.69-1.804h-.999l-.693 1.804h-.69l.685-1.804H6.3l.34-.773h.915l.333-.866h-.994l.244-.726H8.16l.594-1.531h.693zm6.832 1.264q-.823.029-1.335.16-.506.133-.74.397-.236.265-.236.685 0 .454.241.66.248.202.632.202.414 0 .8-.207.39-.207.637-.552zm-7.441.328h1l.34-.866h-1z"})});const cv=[{name:"time-to-read",title:(0,pt.__)("Time to Read"),description:(0,pt.__)("Show minutes required to finish reading the post."),attributes:{displayMode:"time"},scope:["inserter","transform"],isActive:e=>"time"===e?.displayMode,icon:rv,isDefault:!0},{name:"word-count",title:(0,pt.__)("Word Count"),description:(0,pt.__)("Show the number of words in the post."),attributes:{displayMode:"words"},scope:["inserter","transform"],isActive:e=>"words"===e?.displayMode,icon:lv}];var uv=cv;const{name:dv}=av,pv={icon:rv,edit:sv,variations:uv,example:{}},mv=()=>jt({name:dv,metadata:av,settings:pv}),gv=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/post-title","title":"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},"levelOptions":{"type":"array"},"isLink":{"type":"boolean","default":false,"role":"content"},"rel":{"type":"string","attribute":"rel","default":"","role":"content"},"linkTarget":{"type":"string","default":"_self","role":"content"}},"example":{"viewportWidth":350},"supports":{"align":["wide","full"],"html":false,"color":{"gradients":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true,"link":true}},"spacing":{"margin":true,"padding":true},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true,"__experimentalDefaultControls":{"radius":true,"color":true,"width":true,"style":true}}},"style":"wp-block-post-title"}');const hv={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:Yo,isEligible:({style:e})=>e?.typography?.fontFamily};var _v=[hv];const{name:xv}=gv,bv={icon:ji,edit:function({attributes:{level:e,levelOptions:t,textAlign:o,isLink:n,rel:r,linkTarget:a},setAttributes:i,context:{postType:s,postId:l,queryId:c},insertBlocksAfter:u}){const d=0===e?"p":`h${e}`,p=Number.isFinite(c),m=(0,lt.useSelect)((e=>!p&&e(_t.store).canUser("update",{kind:"postType",name:s,id:l})),[p,s,l]),[g="",h,_]=(0,_t.useEntityProp)("postType",s,"title",l),[x]=(0,_t.useEntityProp)("postType",s,"link",l),b=()=>{u((0,st.createBlock)((0,st.getDefaultBlockName)()))},f=(0,ct.useBlockProps)({className:Dt({[`has-text-align-${o}`]:o})}),y=(0,ct.useBlockEditingMode)(),v=vt();let k=(0,it.jsx)(d,{...f,children:(0,pt.__)("Title")});return s&&l&&(k=m?(0,it.jsx)(ct.PlainText,{tagName:d,placeholder:(0,pt.__)("No title"),value:g,onChange:h,__experimentalVersion:2,__unstableOnSplitAtEnd:b,...f}):(0,it.jsx)(d,{...f,dangerouslySetInnerHTML:{__html:_?.rendered}})),n&&s&&l&&(k=m?(0,it.jsx)(d,{...f,children:(0,it.jsx)(ct.PlainText,{tagName:"a",href:x,target:a,rel:r,placeholder:g.length?null:(0,pt.__)("No title"),value:g,onChange:h,__experimentalVersion:2,__unstableOnSplitAtEnd:b})}):(0,it.jsx)(d,{...f,children:(0,it.jsx)("a",{href:x,target:a,rel:r,onClick:e=>e.preventDefault(),dangerouslySetInnerHTML:{__html:_?.rendered}})})),(0,it.jsxs)(it.Fragment,{children:["default"===y&&(0,it.jsxs)(it.Fragment,{children:[(0,it.jsxs)(ct.BlockControls,{group:"block",children:[(0,it.jsx)(ct.HeadingLevelDropdown,{value:e,options:t,onChange:e=>i({level:e})}),(0,it.jsx)(ct.AlignmentControl,{value:o,onChange:e=>{i({textAlign:e})}})]}),(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{i({rel:"",linkTarget:"_self",isLink:!1})},dropdownMenuProps:v,children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Make title a link"),isShownByDefault:!0,hasValue:()=>n,onDeselect:()=>i({isLink:!1}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Make title a link"),onChange:()=>i({isLink:!n}),checked:n})}),n&&(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>"_blank"===a,onDeselect:()=>i({linkTarget:"_self"}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Open in new tab"),onChange:e=>i({linkTarget:e?"_blank":"_self"}),checked:"_blank"===a})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Link relation"),isShownByDefault:!0,hasValue:()=>!!r,onDeselect:()=>i({rel:""}),children:(0,it.jsx)(mt.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("Link relation"),help:(0,gt.createInterpolateElement)((0,pt.__)("The <a>Link Relation</a> attribute defines the relationship between a linked resource and the current document."),{a:(0,it.jsx)(mt.ExternalLink,{href:"https://developer.mozilla.org/docs/Web/HTML/Attributes/rel"})}),value:r,onChange:e=>i({rel:e})})})]})]})})]}),k]})},deprecated:_v},fv=()=>jt({name:xv,metadata:gv,settings:bv});var yv=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.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"})});const vv=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"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":"rich-text","source":"rich-text","selector":"pre","__unstablePreserveWhiteSpace":true,"role":"content"}},"supports":{"anchor":true,"color":{"gradients":true,"__experimentalDefaultControls":{"background":true,"text":true}},"spacing":{"padding":true,"margin":true},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true,"__experimentalDefaultControls":{"radius":true,"color":true,"width":true,"style":true}}},"style":"wp-block-preformatted"}');const kv={from:[{type:"block",blocks:["core/code","core/paragraph","core/verse"],transform:({content:e,anchor:t})=>(0,st.createBlock)("core/preformatted",{content:e,anchor:t})},{type:"raw",isMatch:e=>"PRE"===e.nodeName&&!(1===e.children.length&&"CODE"===e.firstChild.nodeName),schema:({phrasingContentSchema:e})=>({pre:{children:e}})}],to:[{type:"block",blocks:["core/paragraph"],transform:e=>(0,st.createBlock)("core/paragraph",e)},{type:"block",blocks:["core/code"],transform:e=>(0,st.createBlock)("core/code",e)},{type:"block",blocks:["core/verse"],transform:e=>(0,st.createBlock)("core/verse",e)}]};var wv=kv;const{name:Cv}=vv,jv={icon:yv,example:{attributes:{content:(0,pt.__)("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:wv,edit:function({attributes:e,mergeBlocks:t,setAttributes:o,onRemove:n,insertBlocksAfter:r,style:a}){const{content:i}=e,s=(0,ct.useBlockProps)({style:a});return(0,it.jsx)(ct.RichText,{tagName:"pre",identifier:"content",preserveWhiteSpace:!0,value:i,onChange:e=>{o({content:e})},onRemove:n,"aria-label":(0,pt.__)("Preformatted text"),placeholder:(0,pt.__)("Write preformatted text…"),onMerge:t,...s,__unstablePastePlainText:!0,__unstableOnSplitAtDoubleLineEnd:()=>r((0,st.createBlock)((0,st.getDefaultBlockName)()))})},save:function({attributes:e}){const{content:t}=e;return(0,it.jsx)("pre",{...ct.useBlockProps.save(),children:(0,it.jsx)(ct.RichText.Content,{value:t})})},merge:(e,t)=>({content:e.content+"\n\n"+t.content})},Sv=()=>jt({name:Cv,metadata:vv,settings:jv});var Bv=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.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 Tv="is-style-solid-color",Nv={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 Pv(e){if(!e)return;const t=e.match(/border-color:([^;]+)[;]?/);return t&&t[1]?t[1]:void 0}function Iv(e){const t=`</p>${e=e||"<p></p>"}<p>`.split("</p><p>");return t.shift(),t.pop(),t.join("<br>")}const Dv={attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",role:"content"},citation:{type:"string",source:"html",selector:"cite",default:"",role:"content"},textAlign:{type:"string"}},save({attributes:e}){const{textAlign:t,citation:o,value:n}=e,r=!ct.RichText.isEmpty(o);return(0,it.jsx)("figure",{...ct.useBlockProps.save({className:Dt({[`has-text-align-${t}`]:t})}),children:(0,it.jsxs)("blockquote",{children:[(0,it.jsx)(ct.RichText.Content,{value:n,multiline:!0}),r&&(0,it.jsx)(ct.RichText.Content,{tagName:"cite",value:o})]})})},migrate:({value:e,...t})=>({value:Iv(e),...t})},Mv={attributes:{...Nv},save({attributes:e}){const{mainColor:t,customMainColor:o,customTextColor:n,textColor:r,value:a,citation:i,className:s}=e,l=s?.includes(Tv);let c,u;if(l){const e=(0,ct.getColorClassName)("background-color",t);c=Dt({"has-background":e||o,[e]:e}),u={backgroundColor:e?void 0:o}}else o&&(u={borderColor:o});const d=(0,ct.getColorClassName)("color",r),p=Dt({"has-text-color":r||n,[d]:d}),m=d?void 0:{color:n};return(0,it.jsx)("figure",{...ct.useBlockProps.save({className:c,style:u}),children:(0,it.jsxs)("blockquote",{className:p,style:m,children:[(0,it.jsx)(ct.RichText.Content,{value:a,multiline:!0}),!ct.RichText.isEmpty(i)&&(0,it.jsx)(ct.RichText.Content,{tagName:"cite",value:i})]})})},migrate({value:e,className:t,mainColor:o,customMainColor:n,customTextColor:r,...a}){const i=t?.includes(Tv);let s;return n&&(s=i?{color:{background:n}}:{border:{color:n}}),r&&s&&(s.color={...s.color,text:r}),{value:Iv(e),className:t,backgroundColor:i?o:void 0,borderColor:i?void 0:o,textAlign:i?"left":void 0,style:s,...a}}},zv={attributes:{...Nv,figureStyle:{source:"attribute",selector:"figure",attribute:"style"}},save({attributes:e}){const{mainColor:t,customMainColor:o,textColor:n,customTextColor:r,value:a,citation:i,className:s,figureStyle:l}=e,c=s?.includes(Tv);let u,d;if(c){const e=(0,ct.getColorClassName)("background-color",t);u=Dt({"has-background":e||o,[e]:e}),d={backgroundColor:e?void 0:o}}else if(o)d={borderColor:o};else if(t){d={borderColor:Pv(l)}}const p=(0,ct.getColorClassName)("color",n),m=(n||r)&&Dt("has-text-color",{[p]:p}),g=p?void 0:{color:r};return(0,it.jsx)("figure",{className:u,style:d,children:(0,it.jsxs)("blockquote",{className:m,style:g,children:[(0,it.jsx)(ct.RichText.Content,{value:a,multiline:!0}),!ct.RichText.isEmpty(i)&&(0,it.jsx)(ct.RichText.Content,{tagName:"cite",value:i})]})})},migrate({value:e,className:t,figureStyle:o,mainColor:n,customMainColor:r,customTextColor:a,...i}){const s=t?.includes(Tv);let l;if(r&&(l=s?{color:{background:r}}:{border:{color:r}}),a&&l&&(l.color={...l.color,text:a}),!s&&n&&o){const n=Pv(o);if(n)return{value:Iv(e),...i,className:t,style:{border:{color:n}}}}return{value:Iv(e),className:t,backgroundColor:s?n:void 0,borderColor:s?void 0:n,textAlign:s?"left":void 0,style:l,...i}}},Av={attributes:Nv,save({attributes:e}){const{mainColor:t,customMainColor:o,textColor:n,customTextColor:r,value:a,citation:i,className:s}=e,l=s?.includes(Tv);let c,u;if(l)c=(0,ct.getColorClassName)("background-color",t),c||(u={backgroundColor:o});else if(o)u={borderColor:o};else if(t){const e=(0,lt.select)(ct.store).getSettings().colors??[];u={borderColor:(0,ct.getColorObjectByAttributeValues)(e,t).color}}const d=(0,ct.getColorClassName)("color",n),p=n||r?Dt("has-text-color",{[d]:d}):void 0,m=d?void 0:{color:r};return(0,it.jsx)("figure",{className:c,style:u,children:(0,it.jsxs)("blockquote",{className:p,style:m,children:[(0,it.jsx)(ct.RichText.Content,{value:a,multiline:!0}),!ct.RichText.isEmpty(i)&&(0,it.jsx)(ct.RichText.Content,{tagName:"cite",value:i})]})})},migrate({value:e,className:t,mainColor:o,customMainColor:n,customTextColor:r,...a}){const i=t?.includes(Tv);let s={};return n&&(s=i?{color:{background:n}}:{border:{color:n}}),r&&s&&(s.color={...s.color,text:r}),{value:Iv(e),className:t,backgroundColor:i?o:void 0,borderColor:i?void 0:o,textAlign:i?"left":void 0,style:s,...a}}},Lv={attributes:{...Nv},save({attributes:e}){const{value:t,citation:o}=e;return(0,it.jsxs)("blockquote",{children:[(0,it.jsx)(ct.RichText.Content,{value:t,multiline:!0}),!ct.RichText.isEmpty(o)&&(0,it.jsx)(ct.RichText.Content,{tagName:"cite",value:o})]})},migrate:({value:e,...t})=>({value:Iv(e),...t})},Hv={attributes:{...Nv,citation:{type:"string",source:"html",selector:"footer"},align:{type:"string",default:"none"}},save({attributes:e}){const{value:t,citation:o,align:n}=e;return(0,it.jsxs)("blockquote",{className:`align${n}`,children:[(0,it.jsx)(ct.RichText.Content,{value:t,multiline:!0}),!ct.RichText.isEmpty(o)&&(0,it.jsx)(ct.RichText.Content,{tagName:"footer",value:o})]})},migrate:({value:e,...t})=>({value:Iv(e),...t})};var Rv=[Dv,Mv,zv,Av,Lv,Hv];const Vv="web"===gt.Platform.OS;var Fv=function({attributes:e,setAttributes:t,isSelected:o,insertBlocksAfter:n}){const{textAlign:r,citation:a,value:i}=e,s=(0,ct.useBlockProps)({className:Dt({[`has-text-align-${r}`]:r})}),l=!ct.RichText.isEmpty(a)||o;return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.BlockControls,{group:"block",children:(0,it.jsx)(ct.AlignmentControl,{value:r,onChange:e=>{t({textAlign:e})}})}),(0,it.jsx)("figure",{...s,children:(0,it.jsxs)("blockquote",{children:[(0,it.jsx)(ct.RichText,{identifier:"value",tagName:"p",value:i,onChange:e=>t({value:e}),"aria-label":(0,pt.__)("Pullquote text"),placeholder:(0,pt.__)("Add quote"),textAlign:"center"}),l&&(0,it.jsx)(ct.RichText,{identifier:"citation",tagName:Vv?"cite":void 0,style:{display:"block"},value:a,"aria-label":(0,pt.__)("Pullquote citation text"),placeholder:(0,pt.__)("Add citation"),onChange:e=>t({citation:e}),className:"wp-block-pullquote__citation",__unstableMobileNoFocusOnMount:!0,textAlign:"center",__unstableOnSplitAtEnd:()=>n((0,st.createBlock)((0,st.getDefaultBlockName)()))})]})})]})};const Ev=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/pullquote","title":"Pullquote","category":"text","description":"Give special visual emphasis to a quote from your text.","textdomain":"default","attributes":{"value":{"type":"rich-text","source":"rich-text","selector":"p","role":"content"},"citation":{"type":"rich-text","source":"rich-text","selector":"cite","role":"content"},"textAlign":{"type":"string"}},"supports":{"anchor":true,"align":["left","right","wide","full"],"background":{"backgroundImage":true,"backgroundSize":true,"__experimentalDefaultControls":{"backgroundImage":true}},"color":{"gradients":true,"background":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true}},"dimensions":{"minHeight":true,"__experimentalDefaultControls":{"minHeight":false}},"spacing":{"margin":true,"padding":true},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"__experimentalBorder":{"color":true,"radius":true,"style":true,"width":true,"__experimentalDefaultControls":{"color":true,"radius":true,"style":true,"width":true}},"__experimentalStyle":{"typography":{"fontSize":"1.5em","lineHeight":"1.6"}},"interactivity":{"clientNavigation":true}},"editorStyle":"wp-block-pullquote-editor","style":"wp-block-pullquote"}');const Ov={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>(0,st.createBlock)("core/pullquote",{value:(0,Tn.toHTMLString)({value:(0,Tn.join)(e.map((({content:e})=>(0,Tn.create)({html:e}))),"\n")}),anchor:e.anchor})},{type:"block",blocks:["core/heading"],transform:({content:e,anchor:t})=>(0,st.createBlock)("core/pullquote",{value:e,anchor:t})}],to:[{type:"block",blocks:["core/paragraph"],transform:({value:e,citation:t})=>{const o=[];return e&&o.push((0,st.createBlock)("core/paragraph",{content:e})),t&&o.push((0,st.createBlock)("core/paragraph",{content:t})),0===o.length?(0,st.createBlock)("core/paragraph",{content:""}):o}},{type:"block",blocks:["core/heading"],transform:({value:e,citation:t})=>{if(!e)return(0,st.createBlock)("core/heading",{content:t});const o=(0,st.createBlock)("core/heading",{content:e});return t?[o,(0,st.createBlock)("core/heading",{content:t})]:o}}]};var Gv=Ov;const{name:$v}=Ev,Uv={icon:Bv,example:{attributes:{value:(0,pt.__)("One of the hardest things to do in technology is disrupt yourself."),citation:(0,pt.__)("Matt Mullenweg")}},transforms:Gv,edit:Fv,save:function({attributes:e}){const{textAlign:t,citation:o,value:n}=e,r=!ct.RichText.isEmpty(o);return(0,it.jsx)("figure",{...ct.useBlockProps.save({className:Dt({[`has-text-align-${t}`]:t})}),children:(0,it.jsxs)("blockquote",{children:[(0,it.jsx)(ct.RichText.Content,{tagName:"p",value:n}),r&&(0,it.jsx)(ct.RichText.Content,{tagName:"cite",value:o})]})})},deprecated:Rv},qv=()=>jt({name:$v,metadata:Ev,settings:Uv});var Wv=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.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"})});const Zv=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"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.","keywords":["posts","list","blog","blogs","custom post types"],"textdomain":"default","attributes":{"queryId":{"type":"number"},"query":{"type":"object","default":{"perPage":null,"pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":true,"taxQuery":null,"parents":[],"format":[]}},"tagName":{"type":"string","default":"div"},"namespace":{"type":"string"},"enhancedPagination":{"type":"boolean","default":false}},"usesContext":["templateSlug"],"providesContext":{"queryId":"queryId","query":"query","displayLayout":"displayLayout","enhancedPagination":"enhancedPagination"},"supports":{"align":["wide","full"],"html":false,"layout":true,"interactivity":true,"contentRole":true},"editorStyle":"wp-block-query-editor"}'),Jv=e=>{const t=e?.reduce(((e,t)=>{const{mapById:o,mapByName:n,names:r}=e;return o[t.id]=t,n[t.name]=t,r.push(t.name),e}),{mapById:{},mapByName:{},names:[]});return{entities:e,...t}},Qv=(e,t)=>{const o=t.split(".");let n=e;return o.forEach((e=>{n=n?.[e]})),n},Kv=(e,t)=>(e||[]).map((e=>({...e,name:(0,ao.decodeEntities)(Qv(e,t))}))),Yv=e=>{const t=(0,lt.useSelect)((t=>{const{getTaxonomies:o,getPostType:n}=t(_t.store);return n(e)?.taxonomies?.length>0?o({type:e,per_page:-1}):[]}),[e]);return(0,gt.useMemo)((()=>t?.filter((({visibility:e})=>!!e?.publicly_queryable))),[t])};function Xv(e,t){return!e||e.includes(t)}const ek=e=>(0,lt.useSelect)((t=>{const{getClientIdsOfDescendants:o,getBlockName:n}=t(ct.store);return o(e).some((e=>{const t=n(e),o=Object.is((0,st.getBlockSupport)(t,"interactivity"),!0),r=(0,st.getBlockSupport)(t,"interactivity.clientNavigation");return!o&&!r}))}),[e]);function tk({enhancedPagination:e,setAttributes:t,clientId:o}){const n=ek(o);let r=(0,pt.__)("Reload the full page—instead of just the posts list—when visitors navigate between pages.");return n&&(r=(0,pt.__)("Enhancement disabled because there are non-compatible blocks inside the Query block.")),(0,it.jsx)(it.Fragment,{children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Reload full page"),help:r,checked:!e,disabled:n,onChange:e=>{t({enhancedPagination:!e})}})})}const ok=[{label:(0,pt.__)("Newest to oldest"),value:"date/desc"},{label:(0,pt.__)("Oldest to newest"),value:"date/asc"},{label:(0,pt.__)("A → Z"),value:"title/asc"},{label:(0,pt.__)("Z → A"),value:"title/desc"}];var nk=function({order:e,orderBy:t,orderByOptions:o=ok,onChange:n}){return(0,it.jsx)(mt.SelectControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,pt.__)("Order by"),value:`${t}/${e}`,options:o,onChange:e=>{const[t,o]=e.split("/");n({order:o,orderBy:t})}})};const rk={who:"authors",per_page:-1,_fields:"id,name",context:"view"};var ak=function({value:e,onChange:t}){const o=(0,lt.useSelect)((e=>{const{getUsers:t}=e(_t.store);return t(rk)}),[]);if(!o)return null;const n=Jv(o),r=(e?e.toString().split(","):[]).reduce(((e,t)=>{const o=n.mapById[t];return o&&e.push({id:t,value:o.name}),e}),[]);return(0,it.jsx)(mt.FormTokenField,{label:(0,pt.__)("Authors"),value:r,suggestions:n.names,onChange:e=>{const o=Array.from(e.reduce(((e,t)=>{const o=((e,t)=>{const o=t?.id||e[t]?.id;if(o)return o})(n.mapByName,t);return o&&e.add(o),e}),new Set));t({author:o.join(",")})},__experimentalShowHowTo:!1,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0})};const ik=[],sk={order:"asc",_fields:"id,title",context:"view"};var lk=function({parents:e,postType:t,onChange:o}){const[n,r]=(0,gt.useState)(""),[a,i]=(0,gt.useState)(ik),[s,l]=(0,gt.useState)(ik),c=(0,xt.useDebounce)(r,250),{searchResults:u,searchHasResolved:d}=(0,lt.useSelect)((o=>{if(!n)return{searchResults:ik,searchHasResolved:!0};const{getEntityRecords:r,hasFinishedResolution:a}=o(_t.store),i=["postType",t,{...sk,search:n,orderby:"relevance",exclude:e,per_page:20}];return{searchResults:r(...i),searchHasResolved:a("getEntityRecords",i)}}),[n,t,e]),p=(0,lt.useSelect)((o=>{if(!e?.length)return ik;const{getEntityRecords:n}=o(_t.store);return n("postType",t,{...sk,include:e,per_page:e.length})}),[e,t]);(0,gt.useEffect)((()=>{if(e?.length||i(ik),!p?.length)return;const t=Jv(Kv(p,"title.rendered")),o=e.reduce(((e,o)=>{const n=t.mapById[o];return n&&e.push({id:o,value:n.name}),e}),[]);i(o)}),[e,p]);const m=(0,gt.useMemo)((()=>u?.length?Jv(Kv(u,"title.rendered")):ik),[u]);return(0,gt.useEffect)((()=>{d&&l(m.names)}),[m.names,d]),(0,it.jsx)(mt.FormTokenField,{__next40pxDefaultSize:!0,label:(0,pt.__)("Parents"),value:a,onInputChange:c,suggestions:s,onChange:e=>{const t=Array.from(e.reduce(((e,t)=>{const o=((e,t)=>{const o=t?.id||e?.[t]?.id;if(o)return o})(m.mapByName,t);return o&&e.add(o),e}),new Set));l(ik),o({parents:t})},__experimentalShowHowTo:!1,__nextHasNoMarginBottom:!0})};const ck=[],uk={order:"asc",_fields:"id,name",context:"view"},dk=(e,t)=>{const o=t?.id||e?.find((e=>e.name===t))?.id;if(o)return o;const n=t.toLocaleLowerCase();return e?.find((e=>e.name.toLocaleLowerCase()===n))?.id};function pk({onChange:e,query:t}){const{postType:o,taxQuery:n}=t,r=Yv(o);return r&&0!==r.length?(0,it.jsx)(mt.__experimentalVStack,{spacing:4,children:r.map((t=>{const o=n?.[t.slug]||[];return(0,it.jsx)(mk,{taxonomy:t,termIds:o,onChange:o=>e({taxQuery:{...n,[t.slug]:o}})},t.slug)}))}):null}function mk({taxonomy:e,termIds:t,onChange:o}){const[n,r]=(0,gt.useState)(""),[a,i]=(0,gt.useState)(ck),[s,l]=(0,gt.useState)(ck),c=(0,xt.useDebounce)(r,250),{searchResults:u,searchHasResolved:d}=(0,lt.useSelect)((o=>{if(!n)return{searchResults:ck,searchHasResolved:!0};const{getEntityRecords:r,hasFinishedResolution:a}=o(_t.store),i=["taxonomy",e.slug,{...uk,search:n,orderby:"name",exclude:t,per_page:20}];return{searchResults:r(...i),searchHasResolved:a("getEntityRecords",i)}}),[n,e.slug,t]),p=(0,lt.useSelect)((o=>{if(!t?.length)return ck;const{getEntityRecords:n}=o(_t.store);return n("taxonomy",e.slug,{...uk,include:t,per_page:t.length})}),[e.slug,t]);(0,gt.useEffect)((()=>{if(t?.length||i(ck),!p?.length)return;const e=t.reduce(((e,t)=>{const o=p.find((e=>e.id===t));return o&&e.push({id:t,value:o.name}),e}),[]);i(e)}),[t,p]),(0,gt.useEffect)((()=>{d&&l(u.map((e=>e.name)))}),[u,d]);return(0,it.jsx)("div",{className:"block-library-query-inspector__taxonomy-control",children:(0,it.jsx)(mt.FormTokenField,{label:e.name,value:a,onInputChange:c,suggestions:s,displayTransform:ao.decodeEntities,onChange:e=>{const t=new Set;for(const o of e){const e=dk(u,o);e&&t.add(e)}l(ck),o(Array.from(t))},__experimentalShowHowTo:!1,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0})})}const gk=[{value:"aside",label:(0,pt.__)("Aside")},{value:"audio",label:(0,pt.__)("Audio")},{value:"chat",label:(0,pt.__)("Chat")},{value:"gallery",label:(0,pt.__)("Gallery")},{value:"image",label:(0,pt.__)("Image")},{value:"link",label:(0,pt.__)("Link")},{value:"quote",label:(0,pt.__)("Quote")},{value:"standard",label:(0,pt.__)("Standard")},{value:"status",label:(0,pt.__)("Status")},{value:"video",label:(0,pt.__)("Video")}].sort(((e,t)=>{const o=e.label.toUpperCase(),n=t.label.toUpperCase();return o<n?-1:o>n?1:0}));function hk(e,t){return e.map((e=>t.find((t=>t.label.toLocaleLowerCase()===e.toLocaleLowerCase()))?.value)).filter(Boolean)}function _k({onChange:e,query:{format:t}}){const o=Array.isArray(t)?t:[t],{supportedFormats:n}=(0,lt.useSelect)((e=>({supportedFormats:e(_t.store).getThemeSupports().formats})),[]),r=gk.filter((e=>n.includes(e.value))),a=o.map((e=>r.find((t=>t.value===e))?.label)).filter(Boolean),i=r.filter((e=>!o.includes(e.value))).map((e=>e.label));return(0,it.jsx)(mt.FormTokenField,{label:(0,pt.__)("Formats"),value:a,suggestions:i,onChange:t=>{e({format:hk(t,r)})},__experimentalShowHowTo:!1,__experimentalExpandOnFocus:!0,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0})}const xk=[{label:(0,pt.__)("Include"),value:""},{label:(0,pt.__)("Ignore"),value:"ignore"},{label:(0,pt.__)("Exclude"),value:"exclude"},{label:(0,pt.__)("Only"),value:"only"}];function bk({value:e,onChange:t}){return(0,it.jsx)(mt.SelectControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,pt.__)("Sticky posts"),options:xk,value:e,onChange:t,help:(0,pt.__)("Sticky posts always appear first, regardless of their publish date.")})}var fk=({perPage:e,offset:t=0,onChange:o})=>(0,it.jsx)(mt.RangeControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("Items per page"),min:1,max:100,onChange:e=>{isNaN(e)||e<1||e>100||o({perPage:e,offset:t})},value:parseInt(e,10)});var yk=({offset:e=0,onChange:t})=>(0,it.jsx)(mt.__experimentalNumberControl,{__next40pxDefaultSize:!0,label:(0,pt.__)("Offset"),value:e,min:0,onChange:e=>{isNaN(e)||e<0||e>100||t({offset:e})}});var vk=({pages:e,onChange:t})=>(0,it.jsx)(mt.__experimentalNumberControl,{__next40pxDefaultSize:!0,label:(0,pt.__)("Max pages to show"),value:e,min:0,onChange:e=>{isNaN(e)||e<0||t({pages:e})},help:(0,pt.__)("Limit the pages you want to show, even if the query has more results. To show all pages use 0 (zero).")});function kk(e){const{attributes:t,setQuery:o,isSingular:n}=e,{query:r}=t,{order:a,orderBy:i,author:s,pages:l,postType:c,perPage:u,offset:d,sticky:p,inherit:m,taxQuery:g,parents:h,format:_}=r,x=function(e){return(0,lt.useSelect)((t=>t(st.store).getActiveBlockVariation("core/query",e)?.allowedControls),[e])}(t),b="post"===c,{postTypesTaxonomiesMap:f,postTypesSelectOptions:y,postTypeFormatSupportMap:v}=(()=>{const e=(0,lt.useSelect)((e=>{const{getPostTypes:t}=e(_t.store),o=["attachment"],n=t({per_page:-1})?.filter((({viewable:e,slug:t})=>e&&!o.includes(t)));return n}),[]);return{postTypesTaxonomiesMap:(0,gt.useMemo)((()=>{if(e?.length)return e.reduce(((e,t)=>(e[t.slug]=t.taxonomies,e)),{})}),[e]),postTypesSelectOptions:(0,gt.useMemo)((()=>(e||[]).map((({labels:e,slug:t})=>({label:e.singular_name,value:t})))),[e]),postTypeFormatSupportMap:(0,gt.useMemo)((()=>e?.length?e.reduce(((e,t)=>(e[t.slug]=t.supports?.["post-formats"]||!1,e)),{}):{}),[e])}})(),k=Yv(c),w=function(e){return(0,lt.useSelect)((t=>{const o=t(_t.store).getPostType(e);return o?.viewable&&o?.hierarchical}),[e])}(c),C=e=>{const t={postType:e},n=f[e],r=Object.entries(g||{}).reduce(((e,[t,o])=>(n.includes(t)&&(e[t]=o),e)),{});t.taxQuery=Object.keys(r).length?r:void 0,"post"!==e&&(t.sticky=""),t.parents=[];v[e]||(t.format=[]),o(t)},[j,S]=(0,gt.useState)(r.search),B=(0,gt.useMemo)((()=>(0,xt.debounce)((e=>{o({search:e})}),250)),[o]),T=function(e){const t=(0,lt.useSelect)((t=>{const o=t(_t.store).getPostType(e);return!!o?.supports?.["page-attributes"]}),[e]);return(0,gt.useMemo)((()=>{const e=[{label:(0,pt.__)("Newest to oldest"),value:"date/desc"},{label:(0,pt.__)("Oldest to newest"),value:"date/asc"},{label:(0,pt.__)("A → Z"),value:"title/asc"},{label:(0,pt.__)("Z → A"),value:"title/desc"}];return t&&e.push({label:(0,pt.__)("Ascending by order"),value:"menu_order/asc"},{label:(0,pt.__)("Descending by order"),value:"menu_order/desc"}),e}),[t])}(c),N=Xv(x,"inherit"),P=!m&&Xv(x,"postType"),I=(0,pt.__)("Post type"),D=(0,pt.__)("Select the type of content to display: posts, pages, or custom post types."),M=!m&&Xv(x,"order"),z=!m&&b&&Xv(x,"sticky"),A=N||P||M||z,L=!!k?.length&&Xv(x,"taxQuery"),H=Xv(x,"author"),R=Xv(x,"search"),V=Xv(x,"parents")&&w,F=v[c],E=(0,lt.useSelect)((e=>{if(!F||!Xv(x,"format"))return!1;const t=e(_t.store).getThemeSupports();return t.formats&&t.formats.length>0&&t.formats.some((e=>"standard"!==e))}),[x,F]),O=L||H||R||V||E,G=vt(),$=Xv(x,"postCount"),U=Xv(x,"offset"),q=Xv(x,"pages"),W=$||U||q,Z=n&&m;return(0,it.jsxs)(it.Fragment,{children:[A&&(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{o({postType:"post",order:"desc",orderBy:"date",sticky:"",inherit:!0})},dropdownMenuProps:G,children:[N&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!m,label:(0,pt.__)("Query type"),onDeselect:()=>o({inherit:!0}),isShownByDefault:!0,children:(0,it.jsxs)(mt.__experimentalVStack,{spacing:4,children:[(0,it.jsxs)(mt.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("Query type"),isBlock:!0,onChange:e=>{o({inherit:"default"===e})},help:m?(0,pt.__)("Display a list of posts or custom post types based on the current template."):(0,pt.__)("Display a list of posts or custom post types based on specific criteria."),value:m?"default":"custom",children:[(0,it.jsx)(mt.__experimentalToggleGroupControlOption,{value:"default",label:(0,pt.__)("Default")}),(0,it.jsx)(mt.__experimentalToggleGroupControlOption,{value:"custom",label:(0,pt.__)("Custom")})]}),Z&&(0,it.jsx)(mt.Notice,{status:"warning",isDismissible:!1,children:(0,pt.__)("Cannot inherit the current template query when placed inside the singular content (e.g., post, page, 404, blank).")})]})}),P&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>"post"!==c,label:I,onDeselect:()=>C("post"),isShownByDefault:!0,children:y.length>2?(0,it.jsx)(mt.SelectControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,options:y,value:c,label:I,onChange:C,help:D}):(0,it.jsx)(mt.__experimentalToggleGroupControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,isBlock:!0,value:c,label:I,onChange:C,help:D,children:y.map((e=>(0,it.jsx)(mt.__experimentalToggleGroupControlOption,{value:e.value,label:e.label},e.value)))})}),M&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>"desc"!==a||"date"!==i,label:(0,pt.__)("Order by"),onDeselect:()=>o({order:"desc",orderBy:"date"}),isShownByDefault:!0,children:(0,it.jsx)(nk,{order:a,orderBy:i,orderByOptions:T,onChange:o})}),z&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!!p,label:(0,pt.__)("Sticky posts"),onDeselect:()=>o({sticky:""}),isShownByDefault:!0,children:(0,it.jsx)(bk,{value:p,onChange:e=>o({sticky:e})})})]}),!m&&W&&(0,it.jsxs)(mt.__experimentalToolsPanel,{className:"block-library-query-toolspanel__display",label:(0,pt.__)("Display"),resetAll:()=>{o({offset:0,pages:0})},dropdownMenuProps:G,children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Items per page"),hasValue:()=>u>0,children:(0,it.jsx)(fk,{perPage:u,offset:d,onChange:o})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Offset"),hasValue:()=>d>0,onDeselect:()=>o({offset:0}),children:(0,it.jsx)(yk,{offset:d,onChange:o})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Max pages to show"),hasValue:()=>l>0,onDeselect:()=>o({pages:0}),children:(0,it.jsx)(vk,{pages:l,onChange:o})})]}),!m&&O&&(0,it.jsxs)(mt.__experimentalToolsPanel,{className:"block-library-query-toolspanel__filters",label:(0,pt.__)("Filters"),resetAll:()=>{o({author:"",parents:[],search:"",taxQuery:null,format:[]}),S("")},dropdownMenuProps:G,children:[L&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Taxonomies"),hasValue:()=>Object.values(g||{}).some((e=>!!e.length)),onDeselect:()=>o({taxQuery:null}),children:(0,it.jsx)(pk,{onChange:o,query:r})}),H&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!!s,label:(0,pt.__)("Authors"),onDeselect:()=>o({author:""}),children:(0,it.jsx)(ak,{value:s,onChange:o})}),R&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!!j,label:(0,pt.__)("Keyword"),onDeselect:()=>{o({search:""}),S("")},children:(0,it.jsx)(mt.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,pt.__)("Keyword"),value:j,onChange:e=>{B(e),S(e)}})}),V&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!!h?.length,label:(0,pt.__)("Parents"),onDeselect:()=>o({parents:[]}),children:(0,it.jsx)(lk,{parents:h,postType:c,onChange:o})}),E&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!!_?.length,label:(0,pt.__)("Formats"),onDeselect:()=>o({format:[]}),children:(0,it.jsx)(_k,{onChange:o,query:r})})]})]})}const wk="wp-block-query-enhanced-pagination-modal__description";function Ck({clientId:e,attributes:{enhancedPagination:t},setAttributes:o}){const[n,r]=(0,gt.useState)(!1),a=ek(e);(0,gt.useEffect)((()=>{t&&a&&(o({enhancedPagination:!1}),r(!0))}),[t,a,o]);const i=()=>{r(!1)},s=(0,pt.__)("Currently, avoiding full page reloads is not possible when non-interactive or non-client Navigation compatible blocks from plugins are present inside the Query block.")+" "+(0,pt.__)('If you still want to prevent full page reloads, remove that block, then disable "Reload full page" again in the Query Block settings.');return n&&(0,it.jsx)(mt.Modal,{title:(0,pt.__)("Query block: Reload full page enabled"),className:"wp-block-query__enhanced-pagination-modal",aria:{describedby:wk},role:"alertdialog",focusOnMount:"firstElement",isDismissible:!1,onRequestClose:i,children:(0,it.jsxs)(mt.__experimentalVStack,{alignment:"right",spacing:5,children:[(0,it.jsx)("span",{id:wk,children:s}),(0,it.jsx)(mt.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:i,children:(0,pt.__)("OK")})]})})}function jk(e=""){return e=(e=su()(e)).trim().toLowerCase()}function Sk(e,t){const o=jk(t),n=jk(e.title);let r=0;if(o===n)r+=30;else if(n.startsWith(o))r+=20;else{o.split(" ").every((e=>n.includes(e)))&&(r+=10)}return r}function Bk(e=[],t=""){if(!t)return e;const o=e.map((e=>[e,Sk(e,t)])).filter((([,e])=>e>0));return o.sort((([,e],[,t])=>t-e)),o.map((([e])=>e))}function Tk({clientId:e,attributes:t,setIsPatternSelectionModalOpen:o}){return(0,it.jsx)(mt.Modal,{overlayClassName:"block-library-query-pattern__selection-modal",title:(0,pt.__)("Choose a pattern"),onRequestClose:()=>o(!1),isFullScreen:!0,children:(0,it.jsx)(Pk,{clientId:e,attributes:t})})}function Nk(e,t){const o=function(e,t){return(0,lt.useSelect)((o=>{const n=o(st.store).getActiveBlockVariation("core/query",t)?.name;if(!n)return"core/query";const{getBlockRootClientId:r,getPatternsByBlockTypes:a}=o(ct.store);return a(`core/query/${n}`,r(e)).length>0?`core/query/${n}`:"core/query"}),[e,t])}(e,t),n=((e,t)=>(0,lt.useSelect)((o=>{const{getBlockRootClientId:n,getPatternsByBlockTypes:r}=o(ct.store),a=n(e);return r(t,a)}),[t,e]))(e,o);return(0,gt.useMemo)((()=>n.filter((e=>e.blocks?.[0]?.name===o))),[n,o])}function Pk({clientId:e,attributes:t,showTitlesAsTooltip:o=!1,showSearch:n=!0}){const[r,a]=(0,gt.useState)(""),{replaceBlock:i,selectBlock:s}=(0,lt.useDispatch)(ct.store),l=Nk(e,t),c=(0,gt.useMemo)((()=>({previewPostType:t.query.postType})),[t.query.postType]),u=(0,gt.useMemo)((()=>Bk(l,r)),[l,r]);return(0,it.jsxs)("div",{className:"block-library-query-pattern__selection-content",children:[n&&(0,it.jsx)("div",{className:"block-library-query-pattern__selection-search",children:(0,it.jsx)(mt.SearchControl,{__nextHasNoMarginBottom:!0,onChange:a,value:r,label:(0,pt.__)("Search"),placeholder:(0,pt.__)("Search")})}),(0,it.jsx)(ct.BlockContextProvider,{value:c,children:(0,it.jsx)(ct.__experimentalBlockPatternsList,{blockPatterns:u,onClickPattern:(o,n)=>{const{newBlocks:r,queryClientIds:a}=((e,t)=>{const{query:{postType:o,inherit:n},namespace:r}=t,a=e.map((e=>(0,st.cloneBlock)(e))),i=[],s=[...a];for(;s.length>0;){const e=s.shift();"core/query"===e.name&&(e.attributes.query={...e.attributes.query,postType:o,inherit:n},r&&(e.attributes.namespace=r),i.push(e.clientId)),e.innerBlocks?.forEach((e=>{s.push(e)}))}return{newBlocks:a,queryClientIds:i}})(n,t);i(e,r),a[0]&&s(a[0])},showTitlesAsTooltip:o})})]})}function Ik({clientId:e,attributes:t,hasInnerBlocks:o}){if(!Nk(e,t).length)return null;const n=o?(0,pt.__)("Change design"):(0,pt.__)("Choose pattern");return(0,it.jsx)(mt.ToolbarGroup,{className:"wp-block-template-part__block-control-group",children:(0,it.jsx)(mt.__experimentalDropdownContentWrapper,{children:(0,it.jsx)(mt.Dropdown,{contentClassName:"block-editor-block-settings-menu__popover",focusOnMount:"firstElement",expandOnMobile:!0,renderToggle:({isOpen:e,onToggle:t})=>(0,it.jsx)(mt.ToolbarButton,{"aria-haspopup":"true","aria-expanded":e,onClick:t,children:n}),renderContent:()=>(0,it.jsx)(Pk,{clientId:e,attributes:t,showSearch:!1,showTitlesAsTooltip:!0})})})})}const{HTMLElementControl:Dk}=jo(ct.privateApis),Mk=[["core/post-template"]];function zk({attributes:e,setAttributes:t,clientId:o,context:n,name:r}){const{queryId:a,query:i,enhancedPagination:s,tagName:l="div",query:{inherit:c}={}}=e,{templateSlug:u}=n,{isSingular:d}=function(e){if(!e)return{isSingular:!0};let t=!1,o="wp"===e?"custom":e;const n=e.includes("-")?e.split("-",1)[0]:e;return(e.includes("-")?e.split("-").slice(1).join("-"):"")&&(o=n),t=["404","blank","single","page","custom"].includes(o),{isSingular:t,templateType:o}}(u),{__unstableMarkNextChangeAsNotPersistent:p}=(0,lt.useDispatch)(ct.store),m=(0,xt.useInstanceId)(zk),g=(0,ct.useBlockProps)(),h=(0,ct.useInnerBlocksProps)(g,{template:Mk}),{postsPerPage:_}=(0,lt.useSelect)((e=>{const{getSettings:t}=e(ct.store),{getEntityRecord:o,getEntityRecordEdits:n,canUser:r}=e(_t.store),a=r("read",{kind:"root",name:"site"})?+o("root","site")?.posts_per_page:+t().postsPerPage;return{postsPerPage:+n("root","site")?.posts_per_page||a||3}}),[]),x=(0,gt.useCallback)((e=>t((t=>({query:{...t.query,...e}})))),[t]);return(0,gt.useEffect)((()=>{const e={};(c&&i.perPage!==_||!i.perPage&&_)&&(e.perPage=_),Object.keys(e).length&&(p(),x(e))}),[i.perPage,c,_,p,x]),(0,gt.useEffect)((()=>{Number.isFinite(a)||(p(),t({queryId:m}))}),[a,m,p,t]),(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.BlockControls,{children:(0,it.jsx)(Ik,{clientId:o,attributes:e,hasInnerBlocks:!0})}),(0,it.jsx)(Ck,{attributes:e,setAttributes:t,clientId:o}),(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsx)(kk,{name:r,attributes:e,setQuery:x,setAttributes:t,clientId:o,isSingular:d})}),(0,it.jsxs)(ct.InspectorControls,{group:"advanced",children:[(0,it.jsx)(Dk,{tagName:l,onChange:e=>t({tagName:e}),clientId:o,options:[{label:(0,pt.__)("Default (<div>)"),value:"div"},{label:"<main>",value:"main"},{label:"<section>",value:"section"},{label:"<aside>",value:"aside"}]}),(0,it.jsx)(tk,{enhancedPagination:s,setAttributes:t,clientId:o})]}),(0,it.jsx)(l,{...h})]})}function Ak({attributes:e,clientId:t,name:o,openPatternSelectionModal:n}){const[r,a]=(0,gt.useState)(!1),[i,s]=(0,gt.useState)(0),l=(0,xt.useResizeObserver)((([e])=>{s(e.contentRect.width)})),c=i>0&&i<160,{blockType:u,activeBlockVariation:d}=(0,lt.useSelect)((t=>{const{getActiveBlockVariation:n,getBlockType:r}=t(st.store);return{blockType:r(o),activeBlockVariation:n(o,e)}}),[o,e]),p=!!Nk(t,e).length,m=d?.icon?.src||d?.icon||u?.icon?.src,g=d?.title||u?.title,h=(0,ct.useBlockProps)({ref:l});return r?(0,it.jsx)(Lk,{clientId:t,attributes:e,icon:m,label:g}):(0,it.jsxs)("div",{...h,children:[(0,it.jsx)(ct.BlockControls,{children:(0,it.jsx)(Ik,{clientId:t,attributes:e,hasInnerBlocks:!1})}),(0,it.jsxs)(mt.Placeholder,{className:"block-editor-media-placeholder",icon:!c&&m,label:!c&&g,instructions:!c&&(0,pt.__)("Choose a pattern for the query loop or start blank."),withIllustration:c,children:[!!p&&!c&&(0,it.jsx)(mt.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:n,children:(0,pt.__)("Choose")}),!c&&(0,it.jsx)(mt.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:()=>{a(!0)},children:(0,pt.__)("Start blank")})]})]})}function Lk({clientId:e,attributes:t,icon:o,label:n}){const r=function(e){const{activeVariationName:t,blockVariations:o}=(0,lt.useSelect)((t=>{const{getActiveBlockVariation:o,getBlockVariations:n}=t(st.store);return{activeVariationName:o("core/query",e)?.name,blockVariations:n("core/query","block")}}),[e]);return(0,gt.useMemo)((()=>{const e=e=>!e.attributes?.namespace;if(!t)return o.filter(e);const n=o.filter((e=>e.attributes?.namespace?.includes(t)));return n.length?n:o.filter(e)}),[t,o])}(t),{replaceInnerBlocks:a}=(0,lt.useDispatch)(ct.store),i=(0,ct.useBlockProps)();return(0,it.jsx)("div",{...i,children:(0,it.jsx)(ct.__experimentalBlockVariationPicker,{icon:o,label:n,variations:r,onSelect:t=>{t.innerBlocks&&a(e,(0,st.createBlocksFromInnerBlocksTemplate)(t.innerBlocks),!1)}})})}var Hk=e=>{const{clientId:t,attributes:o}=e,[n,r]=(0,gt.useState)(!1),a=(0,lt.useSelect)((e=>!!e(ct.store).getBlocks(t).length),[t])?zk:Ak;return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(a,{...e,openPatternSelectionModal:()=>r(!0)}),n&&(0,it.jsx)(Tk,{clientId:t,attributes:o,setIsPatternSelectionModalOpen:r})]})};const Rk=(0,it.jsx)(mt.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:(0,it.jsx)(mt.Path,{d:"M41 9H7v3h34V9zm-22 5H7v1h12v-1zM7 26h12v1H7v-1zm34-5H7v3h34v-3zM7 38h12v1H7v-1zm34-5H7v3h34v-3z"})}),Vk=(0,it.jsx)(mt.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:(0,it.jsx)(mt.Path,{d:"M41 9H7v3h34V9zm-4 5H7v1h30v-1zm4 3H7v1h34v-1zM7 20h30v1H7v-1zm0 12h30v1H7v-1zm34 3H7v1h34v-1zM7 38h30v1H7v-1zm34-11H7v3h34v-3z"})}),Fk=(0,it.jsx)(mt.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:(0,it.jsx)(mt.Path,{d:"M41 9H7v3h34V9zm-22 5H7v1h12v-1zm22 3H7v1h34v-1zM7 20h34v1H7v-1zm0 12h12v1H7v-1zm34 3H7v1h34v-1zM7 38h34v1H7v-1zm34-11H7v3h34v-3z"})}),Ek=(0,it.jsx)(mt.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:(0,it.jsx)(mt.Path,{d:"M7 9h34v6H7V9zm12 8H7v1h12v-1zm18 3H7v1h30v-1zm0 18H7v1h30v-1zM7 35h12v1H7v-1zm34-8H7v6h34v-6z"})}),Ok=["core/post-date",{metadata:{bindings:{datetime:{source:"core/post-data",args:{field:"date"}}}}}];var Gk=[{name:"title-date",title:(0,pt.__)("Title & Date"),icon:Rk,attributes:{},innerBlocks:[["core/post-template",{},[["core/post-title"],Ok]],["core/query-pagination"],["core/query-no-results"]],scope:["block"]},{name:"title-excerpt",title:(0,pt.__)("Title & Excerpt"),icon:Vk,attributes:{},innerBlocks:[["core/post-template",{},[["core/post-title"],["core/post-excerpt"]]],["core/query-pagination"],["core/query-no-results"]],scope:["block"]},{name:"title-date-excerpt",title:(0,pt.__)("Title, Date, & Excerpt"),icon:Fk,attributes:{},innerBlocks:[["core/post-template",{},[["core/post-title"],Ok,["core/post-excerpt"]]],["core/query-pagination"],["core/query-no-results"]],scope:["block"]},{name:"image-date-title",title:(0,pt.__)("Image, Date, & Title"),icon:Ek,attributes:{},innerBlocks:[["core/post-template",{},[["core/post-featured-image"],Ok,["core/post-title"]]],["core/query-pagination"],["core/query-no-results"]],scope:["block"]}];const{cleanEmptyObject:$k}=jo(ct.privateApis),Uk=e=>{const{query:t}=e,{categoryIds:o,tagIds:n,...r}=t;return(t.categoryIds?.length||t.tagIds?.length)&&(r.taxQuery={category:t.categoryIds?.length?t.categoryIds:void 0,post_tag:t.tagIds?.length?t.tagIds:void 0}),{...e,query:r}},qk=(e,t)=>{const{style:o,backgroundColor:n,gradient:r,textColor:a,...i}=e;if(!(n||r||a||o?.color||o?.elements?.link))return[e,t];if(o&&(i.style=$k({...o,color:void 0,elements:{...o.elements,link:void 0}})),Wk(t)){const e=t[0],s=o?.color||o?.elements?.link||e.attributes.style?$k({...e.attributes.style,color:o?.color,elements:o?.elements?.link?{link:o?.elements?.link}:void 0}):void 0;return[i,[(0,st.createBlock)("core/group",{...e.attributes,backgroundColor:n,gradient:r,textColor:a,style:s},e.innerBlocks)]]}return[i,[(0,st.createBlock)("core/group",{backgroundColor:n,gradient:r,textColor:a,style:$k({color:o?.color,elements:o?.elements?.link?{link:o?.elements?.link}:void 0})},t)]]},Wk=(e=[])=>1===e.length&&"core/group"===e[0].name,Zk=e=>{const{layout:t=null}=e;if(!t)return e;const{inherit:o=null,contentSize:n=null,...r}=t;return o||n?{...e,layout:{...r,contentSize:n,type:"constrained"}}:e},Jk=(e=[])=>{let t=null;for(const o of e){if("core/post-template"===o.name){t=o;break}o.innerBlocks.length&&(t=Jk(o.innerBlocks))}return t},Qk=(e=[],t)=>(e.forEach(((o,n)=>{"core/post-template"===o.name?e.splice(n,1,t):o.innerBlocks.length&&(o.innerBlocks=Qk(o.innerBlocks,t))})),e),Kk=(e,t)=>{const{displayLayout:o=null,...n}=e;if(!o)return[e,t];const r=Jk(t);if(!r)return[e,t];const{type:a,columns:i}=o,s="flex"===a?"grid":"default",l=(0,st.createBlock)("core/post-template",{...r.attributes,layout:{type:s,...i&&{columnCount:i}}},r.innerBlocks);return[n,Qk(t,l)]},Yk={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,t){const o=Uk(e),{layout:n,...r}=o,a={...r,displayLayout:o.layout};return Kk(a,t)},save:()=>(0,it.jsx)(ct.InnerBlocks.Content,{})},Xk={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"}}},supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0},layout:!0},isEligible:({query:{categoryIds:e,tagIds:t}={}})=>e||t,migrate(e,t){const o=Uk(e),[n,r]=qk(o,t),a=Zk(n);return Kk(a,r)},save({attributes:{tagName:e="div"}}){const t=ct.useBlockProps.save(),o=ct.useInnerBlocksProps.save(t);return(0,it.jsx)(e,{...o})}},ew={attributes:{queryId:{type:"number"},query:{type:"object",default:{perPage:null,pages:0,offset:0,postType:"post",order:"desc",orderBy:"date",author:"",search:"",exclude:[],sticky:"",inherit:!0,taxQuery:null,parents:[]}},tagName:{type:"string",default:"div"},displayLayout:{type:"object",default:{type:"list"}},namespace:{type:"string"}},supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},layout:!0},isEligible(e){const{style:t,backgroundColor:o,gradient:n,textColor:r}=e;return o||n||r||t?.color||t?.elements?.link},migrate(e,t){const[o,n]=qk(e,t),r=Zk(o);return Kk(r,n)},save({attributes:{tagName:e="div"}}){const t=ct.useBlockProps.save(),o=ct.useInnerBlocksProps.save(t);return(0,it.jsx)(e,{...o})}},tw={attributes:{queryId:{type:"number"},query:{type:"object",default:{perPage:null,pages:0,offset:0,postType:"post",order:"desc",orderBy:"date",author:"",search:"",exclude:[],sticky:"",inherit:!0,taxQuery:null,parents:[]}},tagName:{type:"string",default:"div"},displayLayout:{type:"object",default:{type:"list"}},namespace:{type:"string"}},supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},layout:!0},save({attributes:{tagName:e="div"}}){const t=ct.useBlockProps.save(),o=ct.useInnerBlocksProps.save(t);return(0,it.jsx)(e,{...o})},isEligible:({layout:e})=>e?.inherit||e?.contentSize&&"constrained"!==e?.type,migrate(e,t){const o=Zk(e);return Kk(o,t)}};var ow=[{attributes:{queryId:{type:"number"},query:{type:"object",default:{perPage:null,pages:0,offset:0,postType:"post",order:"desc",orderBy:"date",author:"",search:"",exclude:[],sticky:"",inherit:!0,taxQuery:null,parents:[]}},tagName:{type:"string",default:"div"},displayLayout:{type:"object",default:{type:"list"}},namespace:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1,layout:!0},save({attributes:{tagName:e="div"}}){const t=ct.useBlockProps.save(),o=ct.useInnerBlocksProps.save(t);return(0,it.jsx)(e,{...o})},isEligible:({displayLayout:e})=>!!e,migrate:Kk},tw,ew,Xk,Yk];const{name:nw}=Zv,rw={icon:Wv,edit:Hk,example:{viewportWidth:650,attributes:{namespace:"core/posts-list",query:{perPage:4,pages:1,offset:0,postType:"post",order:"desc",orderBy:"date",author:"",search:"",sticky:"exclude",inherit:!1}},innerBlocks:[{name:"core/post-template",attributes:{layout:{type:"grid",columnCount:2}},innerBlocks:[{name:"core/post-title"},{name:"core/post-date",attributes:{metadata:{bindings:{datetime:{source:"core/post-data",args:{field:"date"}}}}}},{name:"core/post-excerpt"}]}]},save:function({attributes:{tagName:e="div"}}){const t=ct.useBlockProps.save(),o=ct.useInnerBlocksProps.save(t);return(0,it.jsx)(e,{...o})},variations:Gk,deprecated:ow},aw=()=>jt({name:nw,metadata:Zv,settings:rw}),iw=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/query-no-results","title":"No Results","category":"theme","description":"Contains the block elements used to render content when no query results are found.","ancestor":["core/query"],"textdomain":"default","usesContext":["queryId","query"],"supports":{"align":true,"reusable":false,"html":false,"color":{"gradients":true,"link":true},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true}}}'),sw=[["core/paragraph",{placeholder:(0,pt.__)("Add text or blocks that will display when a query returns no results.")}]];const{name:lw}=iw,cw={icon:Wv,edit:function(){const e=(0,ct.useBlockProps)(),t=(0,ct.useInnerBlocksProps)(e,{template:sw});return(0,it.jsx)("div",{...t})},save:function(){return(0,it.jsx)(ct.InnerBlocks.Content,{})},example:{innerBlocks:[{name:"core/paragraph",attributes:{content:(0,pt.__)("No posts were found.")}}]}},uw=()=>jt({name:lw,metadata:iw,settings:cw}),dw=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/query-pagination","title":"Pagination","category":"theme","ancestor":["core/query"],"allowedBlocks":["core/query-pagination-previous","core/query-pagination-numbers","core/query-pagination-next"],"description":"Displays a paginated navigation to next/previous set of posts, when applicable.","textdomain":"default","attributes":{"paginationArrow":{"type":"string","default":"none"},"showLabel":{"type":"boolean","default":true}},"usesContext":["queryId","query"],"providesContext":{"paginationArrow":"paginationArrow","showLabel":"showLabel"},"supports":{"align":true,"reusable":false,"html":false,"color":{"gradients":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true,"link":true}},"layout":{"allowSwitching":false,"allowInheriting":false,"default":{"type":"flex"}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true}},"editorStyle":"wp-block-query-pagination-editor","style":"wp-block-query-pagination"}');function pw({value:e,onChange:t}){return(0,it.jsxs)(mt.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("Arrow"),value:e,onChange:t,help:(0,pt.__)("A decorative arrow appended to the next and previous page link."),isBlock:!0,children:[(0,it.jsx)(mt.__experimentalToggleGroupControlOption,{value:"none",label:(0,pt._x)("None","Arrow option for Query Pagination Next/Previous blocks")}),(0,it.jsx)(mt.__experimentalToggleGroupControlOption,{value:"arrow",label:(0,pt._x)("Arrow","Arrow option for Query Pagination Next/Previous blocks")}),(0,it.jsx)(mt.__experimentalToggleGroupControlOption,{value:"chevron",label:(0,pt._x)("Chevron","Arrow option for Query Pagination Next/Previous blocks")})]})}function mw({value:e,onChange:t}){return(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Show label text"),help:(0,pt.__)('Make label text visible, e.g. "Next Page".'),onChange:t,checked:!0===e})}const gw=[["core/query-pagination-previous"],["core/query-pagination-numbers"],["core/query-pagination-next"]];var hw=[{save:()=>(0,it.jsx)("div",{...ct.useBlockProps.save(),children:(0,it.jsx)(ct.InnerBlocks.Content,{})})}];const{name:_w}=dw,xw={icon:ii,edit:function({attributes:{paginationArrow:e,showLabel:t},setAttributes:o,clientId:n}){const r=(0,lt.useSelect)((e=>{const{getBlocks:t}=e(ct.store),o=t(n);return o?.find((e=>["core/query-pagination-next","core/query-pagination-previous"].includes(e.name)))}),[n]),{__unstableMarkNextChangeAsNotPersistent:a}=(0,lt.useDispatch)(ct.store),i=vt(),s=(0,ct.useBlockProps)(),l=(0,ct.useInnerBlocksProps)(s,{template:gw});return(0,gt.useEffect)((()=>{"none"!==e||t||(a(),o({showLabel:!0}))}),[e,o,t,a]),(0,it.jsxs)(it.Fragment,{children:[r&&(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{o({paginationArrow:"none",showLabel:!0})},dropdownMenuProps:i,children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>"none"!==e,label:(0,pt.__)("Pagination arrow"),onDeselect:()=>o({paginationArrow:"none"}),isShownByDefault:!0,children:(0,it.jsx)(pw,{value:e,onChange:e=>{o({paginationArrow:e})}})}),"none"!==e&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!t,label:(0,pt.__)("Show text"),onDeselect:()=>o({showLabel:!0}),isShownByDefault:!0,children:(0,it.jsx)(mw,{value:t,onChange:e=>{o({showLabel:e})}})})]})}),(0,it.jsx)("nav",{...l})]})},save:function(){return(0,it.jsx)(ct.InnerBlocks.Content,{})},deprecated:hw},bw=()=>jt({name:_w,metadata:dw,settings:xw}),fw=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/query-pagination-next","title":"Next Page","category":"theme","parent":["core/query-pagination"],"description":"Displays the next posts page link.","textdomain":"default","attributes":{"label":{"type":"string"}},"usesContext":["queryId","query","paginationArrow","showLabel","enhancedPagination"],"supports":{"reusable":false,"html":false,"color":{"gradients":true,"text":false,"__experimentalDefaultControls":{"background":true}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true}}}'),yw={none:"",arrow:"→",chevron:"»"};const{name:vw}=fw,kw={icon:mi,edit:function({attributes:{label:e},setAttributes:t,context:{paginationArrow:o,showLabel:n}}){const r=yw[o];return(0,it.jsxs)("a",{href:"#pagination-next-pseudo-link",onClick:e=>e.preventDefault(),...(0,ct.useBlockProps)(),children:[n&&(0,it.jsx)(ct.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":(0,pt.__)("Next page link"),placeholder:(0,pt.__)("Next Page"),value:e,onChange:e=>t({label:e})}),r&&(0,it.jsx)("span",{className:`wp-block-query-pagination-next-arrow is-arrow-${o}`,"aria-hidden":!0,children:r})]})}},ww=()=>jt({name:vw,metadata:fw,settings:kw}),Cw=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/query-pagination-numbers","title":"Page Numbers","category":"theme","parent":["core/query-pagination"],"description":"Displays a list of page numbers for pagination.","textdomain":"default","attributes":{"midSize":{"type":"number","default":2}},"usesContext":["queryId","query","enhancedPagination"],"supports":{"reusable":false,"html":false,"color":{"gradients":true,"text":false,"__experimentalDefaultControls":{"background":true}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true}},"editorStyle":"wp-block-query-pagination-numbers-editor"}'),jw=(e,t="a",o="")=>(0,it.jsx)(t,{className:`page-numbers ${o}`,children:e},e);const{name:Sw}=Cw,Bw={icon:fi,edit:function({attributes:e,setAttributes:t}){const{midSize:o}=e,n=(e=>{const t=[];for(let o=1;o<=e;o++)t.push(jw(o));t.push(jw(e+1,"span","current"));for(let o=1;o<=e;o++)t.push(jw(e+1+o));return t.push(jw("...","span","dots")),t.push(jw(2*e+3)),(0,it.jsx)(it.Fragment,{children:t})})(parseInt(o,10)),r=vt();return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsx)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>t({midSize:2}),dropdownMenuProps:r,children:(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Number of links"),hasValue:()=>2!==o,onDeselect:()=>t({midSize:2}),isShownByDefault:!0,children:(0,it.jsx)(mt.RangeControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("Number of links"),help:(0,pt.__)("Specify how many links can appear before and after the current page number. Links to the first, current and last page are always visible."),value:o,onChange:e=>{t({midSize:parseInt(e,10)})},min:0,max:5,withInputField:!1})})})}),(0,it.jsx)("div",{...(0,ct.useBlockProps)(),children:n})]})},example:{}},Tw=()=>jt({name:Sw,metadata:Cw,settings:Bw}),Nw=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/query-pagination-previous","title":"Previous Page","category":"theme","parent":["core/query-pagination"],"description":"Displays the previous posts page link.","textdomain":"default","attributes":{"label":{"type":"string"}},"usesContext":["queryId","query","paginationArrow","showLabel","enhancedPagination"],"supports":{"reusable":false,"html":false,"color":{"gradients":true,"text":false,"__experimentalDefaultControls":{"background":true}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true}}}'),Pw={none:"",arrow:"←",chevron:"«"};const{name:Iw}=Nw,Dw={icon:ei,edit:function({attributes:{label:e},setAttributes:t,context:{paginationArrow:o,showLabel:n}}){const r=Pw[o];return(0,it.jsxs)("a",{href:"#pagination-previous-pseudo-link",onClick:e=>e.preventDefault(),...(0,ct.useBlockProps)(),children:[r&&(0,it.jsx)("span",{className:`wp-block-query-pagination-previous-arrow is-arrow-${o}`,"aria-hidden":!0,children:r}),n&&(0,it.jsx)(ct.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":(0,pt.__)("Previous page link"),placeholder:(0,pt.__)("Previous Page"),value:e,onChange:e=>t({label:e})})]})}},Mw=()=>jt({name:Iw,metadata:Nw,settings:Dw}),zw=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"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},"levelOptions":{"type":"array"},"showPrefix":{"type":"boolean","default":true},"showSearchTerm":{"type":"boolean","default":true}},"example":{"attributes":{"type":"search"}},"usesContext":["query"],"supports":{"align":["wide","full"],"html":false,"color":{"gradients":true,"__experimentalDefaultControls":{"background":true,"text":true}},"spacing":{"margin":true,"padding":true},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontStyle":true,"__experimentalFontWeight":true,"__experimentalLetterSpacing":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true,"__experimentalDefaultControls":{"radius":true,"color":true,"width":true,"style":true}}},"style":"wp-block-query-title"}');const Aw=["archive","search","post-type"];const Lw=[{isDefault:!0,name:"archive-title",title:(0,pt.__)("Archive Title"),description:(0,pt.__)("Display the archive title based on the queried object."),icon:ji,attributes:{type:"archive"},scope:["inserter"]},{isDefault:!1,name:"search-title",title:(0,pt.__)("Search Results Title"),description:(0,pt.__)("Display the search results title based on the queried object."),icon:ji,attributes:{type:"search"},scope:["inserter"]},{isDefault:!1,name:"post-type-label",title:(0,pt.__)("Post Type Label"),description:(0,pt.__)("Display the post type label based on the queried object."),icon:ji,attributes:{type:"post-type"},scope:["inserter"]}];Lw.forEach((e=>{e.isActive||(e.isActive=(e,t)=>e.type===t.type)}));var Hw=Lw;const Rw={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:Yo,isEligible:({style:e})=>e?.typography?.fontFamily};var Vw=[Rw];const{name:Fw}=zw,Ew={icon:ji,edit:function({attributes:{type:e,level:t,levelOptions:o,textAlign:n,showPrefix:r,showSearchTerm:a},setAttributes:i,context:{query:s}}){const{archiveTypeLabel:l,archiveNameLabel:c}=function(){const e=(0,lt.useSelect)((e=>{const{getCurrentPostId:t,getCurrentPostType:o,getCurrentTemplateId:n}=e("core/editor"),r=o(),a=n()||("wp_template"===r?t():null);return a?e(_t.store).getEditedEntityRecord("postType","wp_template",a)?.slug:null}),[]),t=e?.match(/^(category|tag|taxonomy-([^-]+))$|^(((category|tag)|taxonomy-([^-]+))-(.+))$/);let o,n,r,a=!1;if(t)t[1]?o=t[2]?t[2]:t[1]:t[3]&&(o=t[6]?t[6]:t[4],n=t[7]),o="tag"===o?"post_tag":o;else{const t=e?.match(/^(author)$|^author-(.+)$/);t&&(a=!0,t[2]&&(r=t[2]))}return(0,lt.useSelect)((e=>{const{getEntityRecords:t,getTaxonomy:i,getAuthors:s}=e(_t.store);let l,c;if(o&&(l=i(o)?.labels?.singular_name),n){const e=t("taxonomy",o,{slug:n,per_page:1});e&&e[0]&&(c=e[0].name)}if(a&&(l="Author",r)){const e=s({slug:r});e&&e[0]&&(c=e[0].name)}return{archiveTypeLabel:l,archiveNameLabel:c}}),[r,a,o,n])}(),{postTypeLabel:u}=function(e){const t=(0,lt.useSelect)((e=>{const{getCurrentPostType:t}=e("core/editor");return t()}),[]);return(0,lt.useSelect)((o=>{const{getPostType:n}=o(_t.store),r=n(e||t);return{postTypeLabel:r?r.labels.singular_name:""}}),[e,t])}(s?.postType),d=vt(),p=0===t?"p":`h${t}`,m=(0,ct.useBlockProps)({className:Dt("wp-block-query-title__placeholder",{[`has-text-align-${n}`]:n})});if(!Aw.includes(e))return(0,it.jsx)("div",{...m,children:(0,it.jsx)(ct.Warning,{children:(0,pt.__)("Provided type is not supported.")})});let g;if("archive"===e){let e;e=l?r?c?(0,pt.sprintf)((0,pt._x)("%1$s: %2$s","archive label"),l,c):(0,pt.sprintf)((0,pt.__)("%s: Name"),l):c||(0,pt.sprintf)((0,pt.__)("%s name"),l):r?(0,pt.__)("Archive type: Name"):(0,pt.__)("Archive title"),g=(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsx)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>i({showPrefix:!0}),dropdownMenuProps:d,children:(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!r,label:(0,pt.__)("Show archive type in title"),onDeselect:()=>i({showPrefix:!0}),isShownByDefault:!0,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Show archive type in title"),onChange:()=>i({showPrefix:!r}),checked:r})})})}),(0,it.jsx)(p,{...m,children:e})]})}if("search"===e&&(g=(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsx)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>i({showSearchTerm:!0}),dropdownMenuProps:d,children:(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!a,label:(0,pt.__)("Show search term in title"),onDeselect:()=>i({showSearchTerm:!0}),isShownByDefault:!0,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Show search term in title"),onChange:()=>i({showSearchTerm:!a}),checked:a})})})}),(0,it.jsx)(p,{...m,children:a?(0,pt.__)("Search results for: “search term”"):(0,pt.__)("Search results")})]})),"post-type"===e){let e;e=u?r?(0,pt.sprintf)((0,pt.__)('Post Type: "%s"'),u):u:r?(0,pt.__)("Post Type: Name"):(0,pt.__)("Name"),g=(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsx)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>i({showPrefix:!0}),dropdownMenuProps:d,children:(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!r,label:(0,pt.__)("Show post type label"),onDeselect:()=>i({showPrefix:!0}),isShownByDefault:!0,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Show post type label"),onChange:()=>i({showPrefix:!r}),checked:r})})})}),(0,it.jsx)(p,{...m,children:e})]})}return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsxs)(ct.BlockControls,{group:"block",children:[(0,it.jsx)(ct.HeadingLevelDropdown,{value:t,options:o,onChange:e=>i({level:e})}),(0,it.jsx)(ct.AlignmentControl,{value:n,onChange:e=>{i({textAlign:e})}})]}),g]})},variations:Hw,deprecated:Vw},Ow=()=>jt({name:Fw,metadata:zw,settings:Ew}),Gw=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/query-total","title":"Query Total","category":"theme","ancestor":["core/query"],"description":"Display the total number of results in a query.","textdomain":"default","attributes":{"displayType":{"type":"string","default":"total-results"}},"usesContext":["queryId","query"],"supports":{"align":["wide","full"],"html":false,"spacing":{"margin":true,"padding":true},"color":{"gradients":true,"__experimentalDefaultControls":{"background":true,"text":true}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true,"__experimentalDefaultControls":{"radius":true,"color":true,"width":true,"style":true}},"interactivity":{"clientNavigation":true}},"style":"wp-block-query-total"}'),$w=(0,it.jsx)(mt.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false",children:(0,it.jsx)(mt.Path,{d:"M4 11h4v2H4v-2zm6 0h6v2h-6v-2zm8 0h2v2h-2v-2z"})}),Uw=(0,it.jsx)(mt.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false",children:(0,it.jsx)(mt.Path,{d:"M4 13h2v-2H4v2zm4 0h10v-2H8v2zm12 0h2v-2h-2v2z"})}),qw=(0,it.jsx)(mt.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false",children:(0,it.jsx)(mt.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.5v12Zm-7-6-4.1 5h8.8v-3h-1.5v1.5h-4.2l2.9-3.5-2.9-3.5h4.2V10h1.5V7H7.4l4.1 5Z"})});const{name:Ww}=Gw,Zw={icon:qw,edit:function({attributes:e,setAttributes:t}){const{displayType:o}=e,n=(0,ct.useBlockProps)(),r=[{role:"menuitemradio",title:(0,pt.__)("Total results"),isActive:"total-results"===o,icon:$w,onClick:()=>{t({displayType:"total-results"})}},{role:"menuitemradio",title:(0,pt.__)("Range display"),isActive:"range-display"===o,icon:Uw,onClick:()=>{t({displayType:"range-display"})}}],a=(0,it.jsx)(ct.BlockControls,{children:(0,it.jsx)(mt.ToolbarGroup,{children:(0,it.jsx)(mt.ToolbarDropdownMenu,{icon:(()=>{switch(o){case"total-results":return $w;case"range-display":return Uw}})(),label:(0,pt.__)("Change display type"),controls:r})})});return(0,it.jsxs)("div",{...n,children:[a,"total-results"===o?(0,it.jsx)(it.Fragment,{children:(0,pt.__)("12 results found")}):"range-display"===o?(0,it.jsx)(it.Fragment,{children:(0,pt.__)("Displaying 1 – 10 of 12")}):null]})}},Jw=()=>jt({name:Ww,metadata:Gw,settings:Zw});var Qw=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.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 Kw=e=>{const{value:t,...o}=e;return[{...o},t?(0,st.parseWithAttributeSchema)(t,{type:"array",source:"query",selector:"p",query:{content:{type:"string",source:"html"}}}).map((({content:e})=>(0,st.createBlock)("core/paragraph",{content:e}))):(0,st.createBlock)("core/paragraph")]},Yw=["left","right","center"],Xw=(e,t)=>{const{align:o,...n}=e;return[Yw.includes(o)?{...n,textAlign:o}:e,t]},eC={attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:"",role:"content"},citation:{type:"string",source:"html",selector:"cite",default:"",role:"content"},align:{type:"string"}},supports:{anchor:!0,html:!1,__experimentalOnEnter:!0,__experimentalOnMerge:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0,fontAppearance:!0}},color:{gradients:!0,heading:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}}},isEligible:({align:e})=>Yw.includes(e),save({attributes:e}){const{align:t,citation:o}=e,n=Dt({[`has-text-align-${t}`]:t});return(0,it.jsxs)("blockquote",{...ct.useBlockProps.save({className:n}),children:[(0,it.jsx)(ct.InnerBlocks.Content,{}),!ct.RichText.isEmpty(o)&&(0,it.jsx)(ct.RichText.Content,{tagName:"cite",value:o})]})},migrate:Xw},tC={attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:"",role:"content"},citation:{type:"string",source:"html",selector:"cite",default:"",role:"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}}},save({attributes:e}){const{align:t,value:o,citation:n}=e,r=Dt({[`has-text-align-${t}`]:t});return(0,it.jsxs)("blockquote",{...ct.useBlockProps.save({className:r}),children:[(0,it.jsx)(ct.RichText.Content,{multiline:!0,value:o}),!ct.RichText.isEmpty(n)&&(0,it.jsx)(ct.RichText.Content,{tagName:"cite",value:n})]})},migrate:e=>Xw(...Kw(e))},oC={attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:""},citation:{type:"string",source:"html",selector:"cite",default:""},align:{type:"string"}},migrate:e=>Xw(...Kw(e)),save({attributes:e}){const{align:t,value:o,citation:n}=e;return(0,it.jsxs)("blockquote",{style:{textAlign:t||null},children:[(0,it.jsx)(ct.RichText.Content,{multiline:!0,value:o}),!ct.RichText.isEmpty(n)&&(0,it.jsx)(ct.RichText.Content,{tagName:"cite",value:n})]})}},nC={attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:""},citation:{type:"string",source:"html",selector:"cite",default:""},align:{type:"string"},style:{type:"number",default:1}},migrate(e){if(2===e.style){const{style:t,...o}=e;return Xw(...((e,t)=>[{...e,className:e.className?e.className+" is-style-large":"is-style-large"},t])(...Kw(o)))}return Xw(...Kw(e))},save({attributes:e}){const{align:t,value:o,citation:n,style:r}=e;return(0,it.jsxs)("blockquote",{className:2===r?"is-large":"",style:{textAlign:t||null},children:[(0,it.jsx)(ct.RichText.Content,{multiline:!0,value:o}),!ct.RichText.isEmpty(n)&&(0,it.jsx)(ct.RichText.Content,{tagName:"cite",value:n})]})}},rC={attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:""},citation:{type:"string",source:"html",selector:"footer",default:""},align:{type:"string"},style:{type:"number",default:1}},migrate(e){if(!isNaN(parseInt(e.style))){const{style:t,...o}=e;return Xw(...Kw(o))}return Xw(...Kw(e))},save({attributes:e}){const{align:t,value:o,citation:n,style:r}=e;return(0,it.jsxs)("blockquote",{className:`blocks-quote-style-${r}`,style:{textAlign:t||null},children:[(0,it.jsx)(ct.RichText.Content,{multiline:!0,value:o}),!ct.RichText.isEmpty(n)&&(0,it.jsx)(ct.RichText.Content,{tagName:"footer",value:n})]})}};var aC=[eC,tC,oC,nC,rC],iC=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.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"})});const sC="web"===gt.Platform.OS,lC=[["core/paragraph",{}]];const cC=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"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":"","role":"content"},"citation":{"type":"rich-text","source":"rich-text","selector":"cite","role":"content"},"textAlign":{"type":"string"}},"supports":{"anchor":true,"align":["left","right","wide","full"],"html":false,"background":{"backgroundImage":true,"backgroundSize":true,"__experimentalDefaultControls":{"backgroundImage":true}},"__experimentalBorder":{"color":true,"radius":true,"style":true,"width":true,"__experimentalDefaultControls":{"color":true,"radius":true,"style":true,"width":true}},"dimensions":{"minHeight":true,"__experimentalDefaultControls":{"minHeight":false}},"__experimentalOnEnter":true,"__experimentalOnMerge":true,"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"color":{"gradients":true,"heading":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true}},"layout":{"allowEditing":false},"spacing":{"blockGap":true,"padding":true,"margin":true},"interactivity":{"clientNavigation":true},"allowedBlocks":true},"styles":[{"name":"default","label":"Default","isDefault":true},{"name":"plain","label":"Plain"}],"editorStyle":"wp-block-quote-editor","style":"wp-block-quote"}');const uC={from:[{type:"block",blocks:["core/pullquote"],transform:({value:e,align:t,citation:o,anchor:n,fontSize:r,style:a})=>(0,st.createBlock)("core/quote",{align:t,citation:o,anchor:n,fontSize:r,style:a},[(0,st.createBlock)("core/paragraph",{content:e})])},{type:"prefix",prefix:">",transform:e=>(0,st.createBlock)("core/quote",{},[(0,st.createBlock)("core/paragraph",{content:e})])},{type:"raw",schema:()=>({blockquote:{children:"*"}}),selector:"blockquote",transform:(e,t)=>(0,st.createBlock)("core/quote",{},t({HTML:e.innerHTML,mode:"BLOCKS"}))},{type:"block",isMultiBlock:!0,blocks:["*"],isMatch:({},e)=>1===e.length?["core/paragraph","core/heading","core/list","core/pullquote"].includes(e[0].name):!e.some((({name:e})=>"core/quote"===e)),__experimentalConvert:e=>(0,st.createBlock)("core/quote",{},e.map((e=>(0,st.createBlock)(e.name,e.attributes,e.innerBlocks))))}],to:[{type:"block",blocks:["core/pullquote"],isMatch:({},e)=>e.innerBlocks.every((({name:e})=>"core/paragraph"===e)),transform:({align:e,citation:t,anchor:o,fontSize:n,style:r},a)=>{const i=a.map((({attributes:e})=>`${e.content}`)).join("<br>");return(0,st.createBlock)("core/pullquote",{value:i,align:e,citation:t,anchor:o,fontSize:n,style:r})}},{type:"block",blocks:["core/paragraph"],transform:({citation:e},t)=>ct.RichText.isEmpty(e)?t:[...t,(0,st.createBlock)("core/paragraph",{content:e})]},{type:"block",blocks:["core/group"],transform:({citation:e,anchor:t},o)=>(0,st.createBlock)("core/group",{anchor:t},ct.RichText.isEmpty(e)?o:[...o,(0,st.createBlock)("core/paragraph",{content:e})])}],ungroup:({citation:e},t)=>ct.RichText.isEmpty(e)?t:[...t,(0,st.createBlock)("core/paragraph",{content:e})]};var dC=uC;const{name:pC}=cC,mC={icon:Qw,example:{attributes:{citation:(0,pt.__)("Julio Cortázar")},innerBlocks:[{name:"core/paragraph",attributes:{content:(0,pt.__)("In quoting others, we cite ourselves.")}}]},transforms:dC,edit:function({attributes:e,setAttributes:t,insertBlocksAfter:o,clientId:n,className:r,style:a,isSelected:i}){const{textAlign:s,allowedBlocks:l}=e;((e,t)=>{const o=(0,lt.useRegistry)(),{updateBlockAttributes:n,replaceInnerBlocks:r}=(0,lt.useDispatch)(ct.store);(0,gt.useEffect)((()=>{if(!e.value)return;const[a,i]=Kw(e);Jm()("Value attribute on the quote block",{since:"6.0",version:"6.5",alternative:"inner blocks"}),o.batch((()=>{n(t,a),r(t,i)}))}),[e.value])})(e,n);const c=(0,ct.useBlockProps)({className:Dt(r,{[`has-text-align-${s}`]:s}),...!sC&&{style:a}}),u=(0,ct.useInnerBlocksProps)(c,{template:lC,templateInsertUpdatesSelection:!0,__experimentalCaptureToolbars:!0,renderAppender:!1,allowedBlocks:l});return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.BlockControls,{group:"block",children:(0,it.jsx)(ct.AlignmentControl,{value:s,onChange:e=>{t({textAlign:e})}})}),(0,it.jsxs)(mt.BlockQuotation,{...u,children:[u.children,(0,it.jsx)(zo,{attributeKey:"citation",tagName:sC?"cite":"p",style:sC&&{display:"block"},isSelected:i,attributes:e,setAttributes:t,__unstableMobileNoFocusOnMount:!0,icon:iC,label:(0,pt.__)("Quote citation"),placeholder:(0,pt.__)("Add citation"),addLabel:(0,pt.__)("Add citation"),removeLabel:(0,pt.__)("Remove citation"),excludeElementClassName:!0,className:"wp-block-quote__citation",insertBlocksAfter:o,...sC?{}:{textAlign:s}})]})]})},save:function({attributes:e}){const{textAlign:t,citation:o}=e,n=Dt({[`has-text-align-${t}`]:t});return(0,it.jsxs)("blockquote",{...ct.useBlockProps.save({className:n}),children:[(0,it.jsx)(ct.InnerBlocks.Content,{}),!ct.RichText.isEmpty(o)&&(0,it.jsx)(ct.RichText.Content,{tagName:"cite",value:o})]})},deprecated:aC},gC=()=>jt({name:pC,metadata:cC,settings:mC});var hC=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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"})});const _C=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/block","title":"Pattern","category":"reusable","description":"Reuse this design across your site.","keywords":["reusable"],"textdomain":"default","attributes":{"ref":{"type":"number"},"content":{"type":"object","default":{}}},"providesContext":{"pattern/overrides":"content"},"supports":{"customClassName":false,"html":false,"inserter":false,"renaming":false,"interactivity":{"clientNavigation":true}}}'),xC=window.wp.patterns,{useLayoutClasses:bC}=jo(ct.privateApis),{hasOverridableBlocks:fC}=jo(xC.privateApis),yC=["full","wide","left","right"];function vC(){const e=(0,ct.useBlockProps)();return(0,it.jsx)("div",{...e,children:(0,it.jsx)(ct.Warning,{children:(0,pt.__)("Block cannot be rendered inside itself.")})})}const kC=()=>{};function wC({recordId:e,canOverrideBlocks:t,hasContent:o,handleEditOriginal:n,resetContent:r}){const a=(0,lt.useSelect)((t=>!!t(_t.store).canUser("update",{kind:"postType",name:"wp_block",id:e})),[e]);return(0,it.jsxs)(it.Fragment,{children:[a&&!!n&&(0,it.jsx)(ct.BlockControls,{children:(0,it.jsx)(mt.ToolbarGroup,{children:(0,it.jsx)(mt.ToolbarButton,{onClick:n,children:(0,pt.__)("Edit original")})})}),t&&(0,it.jsx)(ct.BlockControls,{children:(0,it.jsx)(mt.ToolbarGroup,{children:(0,it.jsx)(mt.ToolbarButton,{onClick:r,disabled:!o,children:(0,pt.__)("Reset")})})})]})}function CC({name:e,attributes:{ref:t,content:o},__unstableParentLayout:n,setAttributes:r}){const{record:a,hasResolved:i}=(0,_t.useEntityRecord)("postType","wp_block",t),[s]=(0,_t.useEntityBlockEditor)("postType","wp_block",{id:t}),l=i&&!a,{__unstableMarkLastChangeAsPersistent:c}=(0,lt.useDispatch)(ct.store),{onNavigateToEntityRecord:u,hasPatternOverridesSource:d}=(0,lt.useSelect)((e=>{const{getSettings:t}=e(ct.store);return{onNavigateToEntityRecord:t().onNavigateToEntityRecord,hasPatternOverridesSource:!!(0,st.getBlockBindingsSource)("core/pattern-overrides")}}),[]),p=(0,gt.useMemo)((()=>d&&fC(s)),[d,s]),{alignment:m,layout:g}=((e,t)=>{const o=(0,gt.useRef)();return(0,gt.useMemo)((()=>{if(!e?.length)return{};let n=o.current;if(void 0===n){const r="constrained"===t?.type,a=e.some((e=>yC.includes(e.attributes.align)));n=r&&a?"full":null,o.current=n}return{alignment:n,layout:n?t:void 0}}),[e,t])})(s,n),h=bC({layout:g},e),_=(0,ct.useBlockProps)({className:Dt("block-library-block__reusable-block-container",g&&h,{[`align${m}`]:m})}),x=(0,ct.useInnerBlocksProps)(_,{layout:g,value:s,onInput:kC,onChange:kC,renderAppender:s?.length?void 0:ct.InnerBlocks.ButtonBlockAppender});let b=null;return l&&(b=(0,it.jsx)(ct.Warning,{children:(0,pt.__)("Block has been deleted or is unavailable.")})),i||(b=(0,it.jsx)(mt.Placeholder,{children:(0,it.jsx)(mt.Spinner,{})})),(0,it.jsxs)(it.Fragment,{children:[i&&!l&&(0,it.jsx)(wC,{recordId:t,canOverrideBlocks:p,hasContent:!!o,handleEditOriginal:u?()=>{u({postId:t,postType:"wp_block"})}:void 0,resetContent:()=>{o&&(c(),r({content:void 0}))}}),null===b?(0,it.jsx)("div",{...x}):(0,it.jsx)("div",{..._,children:b})]})}const jC={attributes:{ref:{type:"number"},content:{type:"object"}},supports:{customClassName:!1,html:!1,inserter:!1,renaming:!1},isEligible:({content:e})=>!!e&&Object.keys(e).every((t=>{return e[t].values&&("object"==typeof(o=e[t].values)&&!Array.isArray(o)&&null!==o);var o})),migrate(e){const{content:t,...o}=e;if(t&&Object.keys(t).length){const e={...t};for(const o in t)e[o]=t[o].values;return{...o,content:e}}return e}},SC={attributes:{ref:{type:"number"},overrides:{type:"object"}},supports:{customClassName:!1,html:!1,inserter:!1,renaming:!1},isEligible:({overrides:e})=>!!e,migrate(e){const{overrides:t,...o}=e,n={};return Object.keys(t).forEach((e=>{n[e]=t[e]})),{...o,content:n}}};var BC=[jC,SC];const{name:TC}=_C,NC={deprecated:BC,edit:function(e){const{ref:t}=e.attributes;return(0,ct.useHasRecursion)(t)?(0,it.jsx)(vC,{}):(0,it.jsx)(ct.RecursionProvider,{uniqueId:t,children:(0,it.jsx)(CC,{...e})})},icon:hC,__experimentalLabel:({ref:e})=>{if(!e)return;const t=(0,lt.select)(_t.store).getEditedEntityRecord("postType","wp_block",e);return t?.title?(0,ao.decodeEntities)(t.title):void 0}},PC=()=>jt({name:TC,metadata:_C,settings:NC}),IC=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/read-more","title":"Read More","category":"theme","description":"Displays the link of a post, page, or any other content-type.","textdomain":"default","attributes":{"content":{"type":"string","role":"content"},"linkTarget":{"type":"string","default":"_self"}},"usesContext":["postId"],"supports":{"html":false,"color":{"gradients":true,"text":true},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalLetterSpacing":true,"__experimentalTextDecoration":true,"__experimentalDefaultControls":{"fontSize":true,"textDecoration":true}},"spacing":{"margin":["top","bottom"],"padding":true,"__experimentalDefaultControls":{"padding":true}},"__experimentalBorder":{"color":true,"radius":true,"width":true,"__experimentalDefaultControls":{"width":true}},"interactivity":{"clientNavigation":true}},"style":"wp-block-read-more"}');const{name:DC}=IC,MC={icon:gn,edit:function({attributes:{content:e,linkTarget:t},setAttributes:o,insertBlocksAfter:n}){const r=(0,ct.useBlockProps)(),a=vt();return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsx)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>o({linkTarget:"_self"}),dropdownMenuProps:a,children:(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>"_self"!==t,onDeselect:()=>o({linkTarget:"_self"}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Open in new tab"),onChange:e=>o({linkTarget:e?"_blank":"_self"}),checked:"_blank"===t})})})}),(0,it.jsx)(ct.RichText,{identifier:"content",tagName:"a","aria-label":(0,pt.__)("“Read more” link text"),placeholder:(0,pt.__)("Read more"),value:e,onChange:e=>o({content:e}),__unstableOnSplitAtEnd:()=>n((0,st.createBlock)((0,st.getDefaultBlockName)())),withoutInteractiveFormatting:!0,...r})]})},example:{attributes:{content:(0,pt.__)("Read more")}}},zC=()=>jt({name:DC,metadata:IC,settings:MC});var AC=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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 LC=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"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":"","role":"content"},"itemsToShow":{"type":"number","default":5},"displayExcerpt":{"type":"boolean","default":false},"displayAuthor":{"type":"boolean","default":false},"displayDate":{"type":"boolean","default":false},"excerptLength":{"type":"number","default":55},"openInNewTab":{"type":"boolean","default":false},"rel":{"type":"string"}},"supports":{"align":true,"html":false,"interactivity":{"clientNavigation":true},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true},"spacing":{"margin":true,"padding":true,"__experimentalDefaultControls":{"padding":false,"margin":false}},"color":{"background":true,"text":true,"gradients":true,"link":true}},"editorStyle":"wp-block-rss-editor","style":"wp-block-rss"}');const{name:HC}=LC,RC={icon:AC,example:{attributes:{feedURL:"https://wordpress.org"}},edit:function({attributes:e,setAttributes:t}){const[o,n]=(0,gt.useState)(!e.feedURL),{blockLayout:r,columns:a,displayAuthor:i,displayDate:s,displayExcerpt:l,excerptLength:c,feedURL:u,itemsToShow:d,openInNewTab:p,rel:m}=e,g=vt();function h(o){return()=>{const n=e[o];t({[o]:!n})}}const _=(0,ct.useBlockProps)(),x=(0,pt.__)("RSS URL");if(o)return(0,it.jsx)("div",{..._,children:(0,it.jsx)(mt.Placeholder,{icon:AC,label:x,instructions:(0,pt.__)("Display entries from any RSS or Atom feed."),children:(0,it.jsxs)("form",{onSubmit:function(e){e.preventDefault(),u&&(t({feedURL:(0,no.prependHTTP)(u)}),n(!1))},className:"wp-block-rss__placeholder-form",children:[(0,it.jsx)(mt.__experimentalInputControl,{__next40pxDefaultSize:!0,label:x,type:"url",hideLabelFromVision:!0,placeholder:(0,pt.__)("Enter URL here…"),value:u,onChange:e=>t({feedURL:e}),className:"wp-block-rss__placeholder-input"}),(0,it.jsx)(mt.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",children:(0,pt.__)("Apply")})]})})});const b=[{icon:$l,title:(0,pt.__)("Edit RSS URL"),onClick:()=>n(!0)},{icon:Bm,title:(0,pt._x)("List view","RSS block display setting"),onClick:()=>t({blockLayout:"list"}),isActive:"list"===r},{icon:qd,title:(0,pt._x)("Grid view","RSS block display setting"),onClick:()=>t({blockLayout:"grid"}),isActive:"grid"===r}],f={...e,style:{...e?.style,border:void 0,spacing:void 0}};return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.BlockControls,{children:(0,it.jsx)(mt.ToolbarGroup,{controls:b})}),(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{t({itemsToShow:5,displayAuthor:!1,displayDate:!1,displayExcerpt:!1,excerptLength:55,columns:2,openInNewTab:!1})},dropdownMenuProps:g,children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Number of items"),hasValue:()=>5!==d,onDeselect:()=>t({itemsToShow:5}),isShownByDefault:!0,children:(0,it.jsx)(mt.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,pt.__)("Number of items"),value:d,onChange:e=>t({itemsToShow:e}),min:1,max:20,required:!0})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Display author"),hasValue:()=>!!i,onDeselect:()=>t({displayAuthor:!1}),isShownByDefault:!0,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Display author"),checked:i,onChange:h("displayAuthor")})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Display date"),hasValue:()=>!!s,onDeselect:()=>t({displayDate:!1}),isShownByDefault:!0,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Display date"),checked:s,onChange:h("displayDate")})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Display excerpt"),hasValue:()=>!!l,onDeselect:()=>t({displayExcerpt:!1}),isShownByDefault:!0,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Display excerpt"),checked:l,onChange:h("displayExcerpt")})}),l&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Max number of words in excerpt"),hasValue:()=>55!==c,onDeselect:()=>t({excerptLength:55}),isShownByDefault:!0,children:(0,it.jsx)(mt.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,pt.__)("Max number of words in excerpt"),value:c,onChange:e=>t({excerptLength:e}),min:10,max:100,required:!0})}),"grid"===r&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Columns"),hasValue:()=>2!==a,onDeselect:()=>t({columns:2}),isShownByDefault:!0,children:(0,it.jsx)(mt.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,pt.__)("Columns"),value:a,onChange:e=>t({columns:e}),min:2,max:6,required:!0})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Open links in new tab"),hasValue:()=>!!p,onDeselect:()=>t({openInNewTab:!1}),isShownByDefault:!0,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Open links in new tab"),checked:p,onChange:e=>t({openInNewTab:e})})})]})}),(0,it.jsx)(ct.InspectorControls,{group:"advanced",children:(0,it.jsx)(mt.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("Link relation"),help:(0,gt.createInterpolateElement)((0,pt.__)("The <a>Link Relation</a> attribute defines the relationship between a linked resource and the current document."),{a:(0,it.jsx)(mt.ExternalLink,{href:"https://developer.mozilla.org/docs/Web/HTML/Attributes/rel"})}),value:m||"",onChange:e=>t({rel:e})})}),(0,it.jsx)("div",{..._,children:(0,it.jsx)(mt.Disabled,{children:(0,it.jsx)(dt(),{block:"core/rss",attributes:f})})})]})}},VC=()=>jt({name:HC,metadata:LC,settings:RC});var FC=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M13 5c-3.3 0-6 2.7-6 6 0 1.4.5 2.7 1.3 3.7l-3.8 3.8 1.1 1.1 3.8-3.8c1 .8 2.3 1.3 3.7 1.3 3.3 0 6-2.7 6-6S16.3 5 13 5zm0 10.5c-2.5 0-4.5-2-4.5-4.5s2-4.5 4.5-4.5 4.5 2 4.5 4.5-2 4.5-4.5 4.5z"})});const EC=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/search","title":"Search","category":"widgets","description":"Help visitors find your content.","keywords":["find"],"textdomain":"default","attributes":{"label":{"type":"string","role":"content"},"showLabel":{"type":"boolean","default":true},"placeholder":{"type":"string","default":"","role":"content"},"width":{"type":"number"},"widthUnit":{"type":"string"},"buttonText":{"type":"string","role":"content"},"buttonPosition":{"type":"string","default":"button-outside"},"buttonUseIcon":{"type":"boolean","default":false},"query":{"type":"object","default":{}},"isSearchFieldHidden":{"type":"boolean","default":false}},"supports":{"align":["left","center","right"],"color":{"gradients":true,"__experimentalSkipSerialization":true,"__experimentalDefaultControls":{"background":true,"text":true}},"interactivity":true,"typography":{"__experimentalSkipSerialization":true,"__experimentalSelector":".wp-block-search__label, .wp-block-search__input, .wp-block-search__button","fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"__experimentalBorder":{"color":true,"radius":true,"width":true,"__experimentalSkipSerialization":true,"__experimentalDefaultControls":{"color":true,"radius":true,"width":true}},"spacing":{"margin":true},"html":false},"editorStyle":"wp-block-search-editor","style":"wp-block-search"}');function OC(e){return"%"===e}const GC=[25,50,75,100];var $C=[{name:"default",isDefault:!0,attributes:{buttonText:(0,pt.__)("Search"),label:(0,pt.__)("Search")}}];const{name:UC}=EC,qC={icon:FC,example:{attributes:{buttonText:(0,pt.__)("Search"),label:(0,pt.__)("Search")},viewportWidth:400},variations:$C,edit:function({className:e,attributes:t,setAttributes:o,toggleSelection:n,isSelected:r,clientId:a}){const{label:i,showLabel:s,placeholder:l,width:c,widthUnit:u,align:d,buttonText:p,buttonPosition:m,buttonUseIcon:g,isSearchFieldHidden:h,style:_}=t,x=(0,lt.useSelect)((e=>{const{getBlockParentsByBlockName:t,wasBlockJustInserted:o}=e(ct.store);return!!t(a,"core/navigation")?.length&&o(a)}),[a]),{__unstableMarkNextChangeAsNotPersistent:b}=(0,lt.useDispatch)(ct.store);(0,gt.useEffect)((()=>{x&&(b(),o({showLabel:!1,buttonUseIcon:!0,buttonPosition:"button-inside"}))}),[b,x,o]);const f=_?.border?.radius;let y=(0,ct.__experimentalUseBorderProps)(t);"number"==typeof f&&(y={...y,style:{...y.style,borderRadius:`${f}px`}});const v=(0,ct.__experimentalUseColorProps)(t),[k,w]=(0,ct.useSettings)("typography.fluid","layout"),C=(0,ct.getTypographyClassesAndStyles)(t,{typography:{fluid:k},layout:{wideSize:w?.wideSize}}),j=`wp-block-search__width-${(0,xt.useInstanceId)(mt.__experimentalUnitControl)}`,S="button-inside"===m,B="button-outside"===m,T="no-button"===m,N="button-only"===m,P=(0,gt.useRef)(),I=(0,gt.useRef)(),D=(0,mt.__experimentalUseCustomUnits)({availableUnits:["%","px"],defaultValues:{"%":50,px:350}});(0,gt.useEffect)((()=>{N&&!r&&o({isSearchFieldHidden:!0})}),[N,r,o]),(0,gt.useEffect)((()=>{N&&r&&o({isSearchFieldHidden:!1})}),[N,r,o,c]);const M=[{label:(0,pt.__)("Button outside"),value:"button-outside"},{label:(0,pt.__)("Button inside"),value:"button-inside"},{label:(0,pt.__)("No button"),value:"no-button"},{label:(0,pt.__)("Button only"),value:"button-only"}],z=()=>{const e=Dt("wp-block-search__input",S?void 0:y.className,C.className),t={...S?{borderRadius:y.style?.borderRadius,borderTopLeftRadius:y.style?.borderTopLeftRadius,borderTopRightRadius:y.style?.borderTopRightRadius,borderBottomLeftRadius:y.style?.borderBottomLeftRadius,borderBottomRightRadius:y.style?.borderBottomRightRadius}:y.style,...C.style,textDecoration:void 0};return(0,it.jsx)("input",{type:"search",className:e,style:t,"aria-label":(0,pt.__)("Optional placeholder text"),placeholder:l?void 0:(0,pt.__)("Optional placeholder…"),value:l,onChange:e=>o({placeholder:e.target.value}),ref:P})},A=vt(),L=(0,it.jsx)(it.Fragment,{children:(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{o({width:void 0,widthUnit:void 0,showLabel:!0,buttonUseIcon:!1,buttonPosition:"button-outside",isSearchFieldHidden:!1})},dropdownMenuProps:A,children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!s,label:(0,pt.__)("Show label"),onDeselect:()=>{o({showLabel:!0})},isShownByDefault:!0,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,checked:s,label:(0,pt.__)("Show label"),onChange:e=>o({showLabel:e})})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>"button-outside"!==m,label:(0,pt.__)("Button position"),onDeselect:()=>{o({buttonPosition:"button-outside",isSearchFieldHidden:!1})},isShownByDefault:!0,children:(0,it.jsx)(mt.SelectControl,{value:m,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("Button position"),onChange:e=>{o({buttonPosition:e,isSearchFieldHidden:"button-only"===e})},options:M})}),"no-button"!==m&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!!g,label:(0,pt.__)("Use button with icon"),onDeselect:()=>{o({buttonUseIcon:!1})},isShownByDefault:!0,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,checked:g,label:(0,pt.__)("Use button with icon"),onChange:e=>o({buttonUseIcon:e})})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!!c,label:(0,pt.__)("Width"),onDeselect:()=>{o({width:void 0,widthUnit:void 0})},isShownByDefault:!0,children:(0,it.jsxs)(mt.__experimentalVStack,{children:[(0,it.jsx)(mt.__experimentalUnitControl,{__next40pxDefaultSize:!0,label:(0,pt.__)("Width"),id:j,min:OC(u)?0:220,max:OC(u)?100:void 0,step:1,onChange:e=>{const t=""===e?void 0:parseInt(e,10);o({width:t})},onUnitChange:e=>{o({width:"%"===e?50:350,widthUnit:e})},__unstableInputWidth:"80px",value:`${c}${u}`,units:D}),(0,it.jsx)(mt.__experimentalToggleGroupControl,{label:(0,pt.__)("Percentage Width"),value:GC.includes(c)&&"%"===u?c:void 0,hideLabelFromVision:!0,onChange:e=>{o({width:e,widthUnit:"%"})},isBlock:!0,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,children:GC.map((e=>(0,it.jsx)(mt.__experimentalToggleGroupControlOption,{value:e,label:(0,pt.sprintf)((0,pt.__)("%d%%"),e)},e)))})]})})]})})}),H=e=>(e=>void 0!==e&&0!==parseInt(e,10))(e)?`calc(${e} + 4px)`:void 0,R=(0,ct.useBlockProps)({className:Dt(e,S?"wp-block-search__button-inside":void 0,B?"wp-block-search__button-outside":void 0,T?"wp-block-search__no-button":void 0,N?"wp-block-search__button-only":void 0,g||T?void 0:"wp-block-search__text-button",g&&!T?"wp-block-search__icon-button":void 0,N&&h?"wp-block-search__searchfield-hidden":void 0),style:{...C.style,textDecoration:void 0}}),V=Dt("wp-block-search__label",C.className);return(0,it.jsxs)("div",{...R,children:[L,s&&(0,it.jsx)(ct.RichText,{identifier:"label",className:V,"aria-label":(0,pt.__)("Label text"),placeholder:(0,pt.__)("Add label…"),withoutInteractiveFormatting:!0,value:i,onChange:e=>o({label:e}),style:C.style}),(0,it.jsxs)(mt.ResizableBox,{size:{width:void 0===c?"auto":`${c}${u}`,height:"auto"},className:Dt("wp-block-search__inside-wrapper",S?y.className:void 0),style:(()=>{const e=S?y.style:{borderRadius:y.style?.borderRadius,borderTopLeftRadius:y.style?.borderTopLeftRadius,borderTopRightRadius:y.style?.borderTopRightRadius,borderBottomLeftRadius:y.style?.borderBottomLeftRadius,borderBottomRightRadius:y.style?.borderBottomRightRadius};if(S){if("object"==typeof f){const{borderTopLeftRadius:t,borderTopRightRadius:o,borderBottomLeftRadius:n,borderBottomRightRadius:r}=y.style;return{...e,borderTopLeftRadius:H(t),borderTopRightRadius:H(o),borderBottomLeftRadius:H(n),borderBottomRightRadius:H(r)}}const t=Number.isInteger(f)?`${f}px`:f;e.borderRadius=`calc(${t} + 4px)`}return e})(),minWidth:220,enable:N?{}:{right:"right"!==d,left:"right"===d},onResizeStart:(e,t,r)=>{o({width:parseInt(r.offsetWidth,10),widthUnit:"px"}),n(!1)},onResizeStop:(e,t,r,a)=>{o({width:parseInt(c+a.width,10)}),n(!0)},showHandle:r,children:[(S||B||N)&&(0,it.jsxs)(it.Fragment,{children:[z(),(()=>{const e=Dt("wp-block-search__button",v.className,C.className,S?void 0:y.className,g?"has-icon":void 0,(0,ct.__experimentalGetElementClassName)("button")),t={...v.style,...C.style,...S?{borderRadius:y.style?.borderRadius,borderTopLeftRadius:y.style?.borderTopLeftRadius,borderTopRightRadius:y.style?.borderTopRightRadius,borderBottomLeftRadius:y.style?.borderBottomLeftRadius,borderBottomRightRadius:y.style?.borderBottomRightRadius}:y.style},n=()=>{N&&o({isSearchFieldHidden:!h})};return(0,it.jsxs)(it.Fragment,{children:[g&&(0,it.jsx)("button",{type:"button",className:e,style:t,"aria-label":p?(0,lu.__unstableStripHTML)(p):(0,pt.__)("Search"),onClick:n,ref:I,children:(0,it.jsx)(Oh,{icon:FC})}),!g&&(0,it.jsx)(ct.RichText,{identifier:"buttonText",className:e,style:t,"aria-label":(0,pt.__)("Button text"),placeholder:(0,pt.__)("Add button text…"),withoutInteractiveFormatting:!0,value:p,onChange:e=>o({buttonText:e}),onClick:n})]})})()]}),T&&z()]})]})}},WC=()=>jt({name:UC,metadata:EC,settings:qC});var ZC=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.Path,{d:"M4.5 12.5v4H3V7h1.5v3.987h15V7H21v9.5h-1.5v-4h-15Z"})});const JC=({tagName:e,setAttributes:t})=>(0,it.jsx)(mt.SelectControl,{label:(0,pt.__)("HTML element"),value:e,onChange:e=>t({tagName:e}),options:[{label:(0,pt.__)("Default (<hr>)"),value:"hr"},{label:"<div>",value:"div"}],help:"hr"===e?(0,pt.__)("Only select <hr> if the separator conveys important information and should be announced by screen readers."):(0,pt.__)("The <div> element should only be used if the block is a design element with no semantic meaning."),__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0});const QC=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"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":{"opacity":{"type":"string","default":"alpha-channel"},"tagName":{"type":"string","enum":["hr","div"],"default":"hr"}},"supports":{"anchor":true,"align":["center","wide","full"],"color":{"enableContrastChecker":false,"__experimentalSkipSerialization":true,"gradients":true,"background":true,"text":false,"__experimentalDefaultControls":{"background":true}},"spacing":{"margin":["top","bottom"]},"interactivity":{"clientNavigation":true}},"styles":[{"name":"default","label":"Default","isDefault":true},{"name":"wide","label":"Wide Line"},{"name":"dots","label":"Dots"}],"editorStyle":"wp-block-separator-editor","style":"wp-block-separator"}');var KC={from:[{type:"enter",regExp:/^-{3,}$/,transform:()=>(0,st.createBlock)("core/separator")},{type:"raw",selector:"hr",schema:{hr:{}}}],to:[{type:"block",blocks:["core/spacer"],transform:({anchor:e})=>(0,st.createBlock)("core/spacer",{anchor:e||""})}]};const YC={attributes:{color:{type:"string"},customColor:{type:"string"}},save({attributes:e}){const{color:t,customColor:o}=e,n=(0,ct.getColorClassName)("background-color",t),r=(0,ct.getColorClassName)("color",t),a=Dt({"has-text-color has-background":t||o,[n]:n,[r]:r}),i={backgroundColor:n?void 0:o,color:r?void 0:o};return(0,it.jsx)("hr",{...ct.useBlockProps.save({className:a,style:i})})},migrate(e){const{color:t,customColor:o,...n}=e;return{...n,backgroundColor:t||void 0,opacity:"css",style:o?{color:{background:o}}:void 0,tagName:"hr"}}};var XC=[YC];const{name:ej}=QC,tj={icon:ZC,example:{attributes:{customColor:"#065174",className:"is-style-wide"}},transforms:KC,edit:function({attributes:e,setAttributes:t}){const{backgroundColor:o,opacity:n,style:r,tagName:a}=e,i=(0,ct.__experimentalUseColorProps)(e),s=i?.style?.backgroundColor,l=!!r?.color?.background;!function(e,t,o){const[n,r]=(0,gt.useState)(!1),a=(0,xt.usePrevious)(t);(0,gt.useEffect)((()=>{"css"!==e||t||a||r(!0)}),[t,a,e]),(0,gt.useEffect)((()=>{"css"===e&&(n&&t||a&&t!==a)&&(o({opacity:"alpha-channel"}),r(!1))}),[n,t,a])}(n,s,t);const c=(0,ct.getColorClassName)("color",o),u=Dt({"has-text-color":o||s,[c]:c,"has-css-opacity":"css"===n,"has-alpha-channel-opacity":"alpha-channel"===n},i.className),d={color:s,backgroundColor:s},p="hr"===a?mt.HorizontalRule:a;return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.InspectorControls,{group:"advanced",children:(0,it.jsx)(JC,{tagName:a,setAttributes:t})}),(0,it.jsx)(p,{...(0,ct.useBlockProps)({className:u,style:l?d:void 0})})]})},save:function({attributes:e}){const{backgroundColor:t,style:o,opacity:n,tagName:r}=e,a=o?.color?.background,i=(0,ct.__experimentalGetColorClassesAndStyles)(e),s=(0,ct.getColorClassName)("color",t),l=Dt({"has-text-color":t||a,[s]:s,"has-css-opacity":"css"===n,"has-alpha-channel-opacity":"alpha-channel"===n},i.className),c={backgroundColor:i?.style?.backgroundColor,color:s?void 0:a};return(0,it.jsx)(r,{...ct.useBlockProps.save({className:l,style:c})})},deprecated:XC},oj=()=>jt({name:ej,metadata:QC,settings:tj});var nj=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.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"})});const rj=window.wp.autop;var aj={from:[{type:"shortcode",tag:"[a-z][a-z0-9_-]*",attributes:{text:{type:"string",shortcode:(e,{content:t})=>(0,rj.removep)((0,rj.autop)(t))}},priority:20}]};const ij=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/shortcode","title":"Shortcode","category":"widgets","description":"Insert additional custom elements with a WordPress shortcode.","textdomain":"default","attributes":{"text":{"type":"string","source":"raw","role":"content"}},"supports":{"className":false,"customClassName":false,"html":false},"editorStyle":"wp-block-shortcode-editor"}'),{name:sj}=ij,lj={icon:nj,transforms:aj,edit:function e({attributes:t,setAttributes:o}){const n=`blocks-shortcode-input-${(0,xt.useInstanceId)(e)}`;return(0,it.jsx)("div",{...(0,ct.useBlockProps)(),children:(0,it.jsx)(mt.Placeholder,{icon:nj,label:(0,pt.__)("Shortcode"),children:(0,it.jsx)(ct.PlainText,{className:"blocks-shortcode__textarea",id:n,value:t.text,"aria-label":(0,pt.__)("Shortcode text"),placeholder:(0,pt.__)("Write shortcode here…"),onChange:e=>o({text:e})})})})},save:function({attributes:e}){return(0,it.jsx)(gt.RawHTML,{children:e.text})}},cj=()=>jt({name:sj,metadata:ij,settings:lj});var uj=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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 1.5c3.4 0 6.2 2.7 6.5 6l-1.2-.6-.8-.4c-.1 0-.2 0-.3-.1H16c-.1-.2-.4-.2-.7 0l-2.9 2.1L9 11.3h-.7L5.5 13v-1.1c0-3.6 2.9-6.5 6.5-6.5Zm0 13c-2.7 0-5-1.7-6-4l2.8-1.7 3.5 1.2h.4s.2 0 .4-.2l2.9-2.1.4.2c.6.3 1.4.7 2.1 1.1-.5 3.1-3.2 5.4-6.4 5.4Z"})});const dj=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/site-logo","title":"Site Logo","category":"theme","description":"Display an image to represent this site. Update this block and the changes apply everywhere.","textdomain":"default","attributes":{"width":{"type":"number"},"isLink":{"type":"boolean","default":true,"role":"content"},"linkTarget":{"type":"string","default":"_self","role":"content"},"shouldSyncIcon":{"type":"boolean"}},"example":{"viewportWidth":500,"attributes":{"width":350,"className":"block-editor-block-types-list__site-logo-example"}},"supports":{"html":false,"align":true,"alignWide":false,"color":{"text":false,"background":false},"spacing":{"margin":true,"padding":true,"__experimentalDefaultControls":{"margin":false,"padding":false}},"interactivity":{"clientNavigation":true},"filter":{"duotone":true}},"styles":[{"name":"default","label":"Default","isDefault":true},{"name":"rounded","label":"Rounded"}],"selectors":{"filter":{"duotone":".wp-block-site-logo img, .wp-block-site-logo .components-placeholder__illustration, .wp-block-site-logo .components-placeholder::before"}},"editorStyle":"wp-block-site-logo-editor","style":"wp-block-site-logo"}'),pj=["image"],mj="image/*",gj=({alt:e,attributes:{align:t,width:o,height:n,isLink:r,linkTarget:a,shouldSyncIcon:i},isSelected:s,setAttributes:l,setLogo:c,logoUrl:u,siteUrl:d,logoId:p,iconId:m,setIcon:g,canUserEdit:h})=>{const _=(0,xt.useViewportMatch)("medium"),x=!["wide","full"].includes(t)&&_,[{naturalWidth:b,naturalHeight:f},y]=(0,gt.useState)({}),[v,k]=(0,gt.useState)(!1),{toggleSelection:w}=(0,lt.useDispatch)(ct.store),C=vt(),j="contentOnly"===(0,ct.useBlockEditingMode)(),{imageEditing:S,maxWidth:B,title:T}=(0,lt.useSelect)((e=>{const t=e(ct.store).getSettings(),o=e(_t.store).getEntityRecord("root","__unstableBase");return{title:o?.name,imageEditing:t.imageEditing,maxWidth:t.maxWidth}}),[]);(0,gt.useEffect)((()=>{i&&p!==m&&l({shouldSyncIcon:!1})}),[]),(0,gt.useEffect)((()=>{s||k(!1)}),[s]);const N=(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)("img",{className:"custom-logo",src:u,alt:e,onLoad:e=>{y({naturalWidth:e.target.naturalWidth,naturalHeight:e.target.naturalHeight})}}),(0,ht.isBlobURL)(u)&&(0,it.jsx)(mt.Spinner,{})]});let P=N;if(r&&(P=(0,it.jsx)("a",{href:d,className:"custom-logo-link",rel:"home",title:T,onClick:e=>e.preventDefault(),children:N})),!x||!b||!f)return(0,it.jsx)("div",{style:{width:o,height:n},children:P});const I=o||120,D=b/f,M=I/D,z=b<f?ad:Math.ceil(ad*D),A=f<b?ad:Math.ceil(ad/D),L=2.5*B;let H=!1,R=!1;"center"===t?(H=!0,R=!0):(0,pt.isRTL)()?"left"===t?H=!0:R=!0:"right"===t?R=!0:H=!0;const V=p&&b&&f&&S,F=!j;let E;E=V&&v?(0,it.jsx)(ct.__experimentalImageEditor,{id:p,url:u,width:I,height:M,naturalHeight:f,naturalWidth:b,onSaveImage:e=>{c(e.id)},onFinishEditing:()=>{k(!1)}}):(0,it.jsx)(mt.ResizableBox,{size:{width:I,height:M},showHandle:s&&F,minWidth:z,maxWidth:L,minHeight:A,maxHeight:L/D,lockAspectRatio:!0,enable:{top:!1,right:H,bottom:!0,left:R},onResizeStart:function(){w(!1)},onResizeStop:(e,t,o,n)=>{w(!0),l({width:parseInt(I+n.width,10),height:parseInt(M+n.height,10)})},children:P});const O=!window?.__experimentalUseCustomizerSiteLogoUrl?d+"/wp-admin/options-general.php":d+"/wp-admin/customize.php?autofocus[section]=title_tagline",G=(0,gt.createInterpolateElement)((0,pt.__)("Site Icons are what you see in browser tabs, bookmark bars, and within the WordPress mobile apps. To use a custom icon that is different from your site logo, use the <a>Site Icon settings</a>."),{a:(0,it.jsx)("a",{href:O,target:"_blank",rel:"noopener noreferrer"})});return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),dropdownMenuProps:C,children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{isShownByDefault:!0,hasValue:()=>!!o,label:(0,pt.__)("Image width"),onDeselect:()=>l({width:void 0}),children:(0,it.jsx)(mt.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,pt.__)("Image width"),onChange:e=>l({width:e}),min:z,max:L,initialPosition:Math.min(120,L),value:o||"",disabled:!x})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{isShownByDefault:!0,hasValue:()=>!r,label:(0,pt.__)("Link image to home"),onDeselect:()=>l({isLink:!0}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Link image to home"),onChange:()=>l({isLink:!r}),checked:r})}),r&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{isShownByDefault:!0,hasValue:()=>"_blank"===a,label:(0,pt.__)("Open in new tab"),onDeselect:()=>l({linkTarget:"_self"}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Open in new tab"),onChange:e=>l({linkTarget:e?"_blank":"_self"}),checked:"_blank"===a})}),h&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{isShownByDefault:!0,hasValue:()=>!!i,label:(0,pt.__)("Use as Site Icon"),onDeselect:()=>{l({shouldSyncIcon:!1}),g(void 0)},children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Use as Site Icon"),onChange:e=>{l({shouldSyncIcon:e}),g(e?p:void 0)},checked:!!i,help:G})})]})}),V&&!v&&F&&(0,it.jsx)(ct.BlockControls,{group:"block",children:(0,it.jsx)(mt.ToolbarButton,{onClick:()=>k(!0),icon:Wp,label:(0,pt.__)("Crop")})}),E]})};function hj({mediaURL:e,...t}){return(0,it.jsx)(ct.MediaReplaceFlow,{...t,mediaURL:e,allowedTypes:pj,accept:mj})}const _j=({media:e,itemGroupProps:t})=>{const{alt_text:o,source_url:n,slug:r,media_details:a}=e??{},i=a?.sizes?.full?.file||r;return(0,it.jsx)(mt.__experimentalItemGroup,{...t,as:"span",children:(0,it.jsxs)(mt.__experimentalHStack,{justify:"flex-start",as:"span",children:[(0,it.jsx)("img",{src:n,alt:o}),(0,it.jsx)(mt.FlexItem,{as:"span",children:(0,it.jsx)(mt.__experimentalTruncate,{numberOfLines:1,className:"block-library-site-logo__inspector-media-replace-title",children:i})})]})})};var xj={to:[{type:"block",blocks:["core/site-title"],transform:({isLink:e,linkTarget:t})=>(0,st.createBlock)("core/site-title",{isLink:e,linkTarget:t})}]};const{name:bj}=dj,fj={icon:uj,example:{},edit:function({attributes:e,className:t,setAttributes:o,isSelected:n}){const{width:r,shouldSyncIcon:a}=e,{siteLogoId:i,canUserEdit:s,url:l,siteIconId:c,mediaItemData:u,isRequestingMediaItem:d}=(0,lt.useSelect)((e=>{const{canUser:t,getEntityRecord:o,getEditedEntityRecord:n}=e(_t.store),r=t("update",{kind:"root",name:"site"}),a=r?n("root","site"):void 0,i=o("root","__unstableBase"),s=r?a?.site_logo:i?.site_logo,l=a?.site_icon,c=s&&e(_t.store).getEntityRecord("postType","attachment",s,{context:"view"}),u=!!s&&!e(_t.store).hasFinishedResolution("getEntityRecord",["postType","attachment",s,{context:"view"}]);return{siteLogoId:s,canUserEdit:r,url:i?.home,mediaItemData:c,isRequestingMediaItem:u,siteIconId:l}}),[]),{getSettings:p}=(0,lt.useSelect)(ct.store),[m,g]=(0,gt.useState)(),h=vt(),{editEntityRecord:_}=(0,lt.useDispatch)(_t.store),x=(e,t=!1)=>{(a||t)&&b(e),_("root","site",void 0,{site_logo:e})},b=e=>_("root","site",void 0,{site_icon:e??null}),{alt_text:f,source_url:y}=u??{},v=e=>{if(void 0===a){const t=!c;return o({shouldSyncIcon:t}),void k(e,t)}k(e)},k=(e,t=!1)=>{if(e)return!e.id&&e.url?(g(e.url),void x(void 0)):void x(e.id,t)},{createErrorNotice:w}=(0,lt.useDispatch)(bo.store),C=e=>{w(e,{type:"snackbar"}),g()},j=e=>{p().mediaUpload({allowedTypes:pj,filesList:e,onFileChange([e]){(0,ht.isBlobURL)(e?.url)?g(e.url):v(e)},onError:C,multiple:!1})},S={mediaURL:y,name:y?(0,pt.__)("Replace"):(0,pt.__)("Choose logo"),onSelect:k,onError:C,onReset:()=>{x(null),o({width:void 0})}},B=s&&(0,it.jsx)(ct.BlockControls,{group:"other",children:(0,it.jsx)(hj,{...S})});let T;const N=void 0===i||d;N&&(T=(0,it.jsx)(mt.Spinner,{})),(0,gt.useEffect)((()=>{y&&m&&g()}),[y,m]),(y||m)&&(T=(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(gj,{alt:f,attributes:e,className:t,isSelected:n,setAttributes:o,logoUrl:m||y,setLogo:x,logoId:u?.id||i,siteUrl:l,setIcon:b,iconId:c,canUserEdit:s}),s&&(0,it.jsx)(mt.DropZone,{onFilesDrop:j})]}));const P=Dt(t,{"is-default-size":!r,"is-transient":m}),I=(0,ct.useBlockProps)({className:P}),D=(s||y)&&(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsx)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Media"),dropdownMenuProps:h,children:s?(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!!y,label:(0,pt.__)("Logo"),isShownByDefault:!0,children:(0,it.jsxs)("div",{className:"block-library-site-logo__inspector-media-replace-container",children:[(0,it.jsx)(hj,{...S,name:y?(0,it.jsx)(_j,{media:u}):(0,pt.__)("Choose logo"),renderToggle:e=>(0,it.jsx)(mt.Button,{...e,__next40pxDefaultSize:!0,children:m?(0,it.jsx)(mt.Spinner,{}):e.children})}),(0,it.jsx)(mt.DropZone,{onFilesDrop:j})]})}):(0,it.jsx)("div",{className:"block-library-site-logo__inspector-media-replace-container",style:{gridColumn:"1 / -1"},children:(0,it.jsx)(_j,{media:u,itemGroupProps:{isBordered:!0,className:"block-library-site-logo__inspector-readonly-logo-preview"}})})})});return(0,it.jsxs)("div",{...I,children:[B,D,(!!y||!!m)&&T,(N||!m&&!y&&!s)&&(0,it.jsx)(mt.Placeholder,{className:"site-logo_placeholder",withIllustration:!0,children:N&&(0,it.jsx)("span",{className:"components-placeholder__preview",children:(0,it.jsx)(mt.Spinner,{})})}),!N&&!m&&!y&&s&&(0,it.jsx)(ct.MediaPlaceholder,{onSelect:v,accept:mj,allowedTypes:pj,onError:C,placeholder:e=>{const o=Dt("block-editor-media-placeholder",t);return(0,it.jsx)(mt.Placeholder,{className:o,preview:T,withIllustration:!0,style:{width:r},children:e})},mediaLibraryButton:({open:e})=>(0,it.jsx)(mt.Button,{__next40pxDefaultSize:!0,icon:Jp,variant:"primary",label:(0,pt.__)("Choose logo"),showTooltip:!0,tooltipPosition:"middle right",onClick:()=>{e()}})})]})},transforms:xj},yj=()=>jt({name:bj,metadata:dj,settings:fj}),vj=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/site-tagline","title":"Site Tagline","category":"theme","description":"Describe in a few words what this site is about. This is important for search results, sharing on social media, and gives overall clarity to visitors.","keywords":["description"],"textdomain":"default","attributes":{"textAlign":{"type":"string"},"level":{"type":"number","default":0},"levelOptions":{"type":"array","default":[0,1,2,3,4,5,6]}},"example":{"viewportWidth":350,"attributes":{"textAlign":"center"}},"supports":{"align":["wide","full"],"html":false,"color":{"gradients":true,"__experimentalDefaultControls":{"background":true,"text":true}},"contentRole":true,"spacing":{"margin":true,"padding":true,"__experimentalDefaultControls":{"margin":false,"padding":false}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalFontStyle":true,"__experimentalFontWeight":true,"__experimentalLetterSpacing":true,"__experimentalWritingMode":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true}},"editorStyle":"wp-block-site-tagline-editor","style":"wp-block-site-tagline"}');var kj=(0,it.jsx)(mt.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",children:(0,it.jsx)(mt.Path,{d:"M4 10.5h16V9H4v1.5ZM4 15h9v-1.5H4V15Z"})});const wj={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:Yo,isEligible:({style:e})=>e?.typography?.fontFamily};var Cj=[wj];const{name:jj}=vj,Sj={icon:kj,edit:function({attributes:e,setAttributes:t,insertBlocksAfter:o}){const{textAlign:n,level:r,levelOptions:a}=e,{canUserEdit:i,tagline:s}=(0,lt.useSelect)((e=>{const{canUser:t,getEntityRecord:o,getEditedEntityRecord:n}=e(_t.store),r=t("update",{kind:"root",name:"site"}),a=r?n("root","site"):{},i=o("root","__unstableBase");return{canUserEdit:r,tagline:r?a?.description:i?.description}}),[]),l=0===r?"p":`h${r}`,{editEntityRecord:c}=(0,lt.useDispatch)(_t.store),u=(0,ct.useBlockProps)({className:Dt({[`has-text-align-${n}`]:n,"wp-block-site-tagline__placeholder":!i&&!s})}),d=i?(0,it.jsx)(ct.RichText,{allowedFormats:[],onChange:function(e){c("root","site",void 0,{description:e})},"aria-label":(0,pt.__)("Site tagline text"),placeholder:(0,pt.__)("Write site tagline…"),tagName:l,value:s,disableLineBreaks:!0,__unstableOnSplitAtEnd:()=>o((0,st.createBlock)((0,st.getDefaultBlockName)())),...u}):(0,it.jsx)(l,{...u,children:s||(0,pt.__)("Site Tagline placeholder")});return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsxs)(ct.BlockControls,{group:"block",children:[(0,it.jsx)(ct.HeadingLevelDropdown,{value:r,options:a,onChange:e=>t({level:e})}),(0,it.jsx)(ct.AlignmentControl,{onChange:e=>t({textAlign:e}),value:n})]}),d]})},deprecated:Cj},Bj=()=>jt({name:jj,metadata:vj,settings:Sj});var Tj=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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"})});const Nj=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"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},"levelOptions":{"type":"array","default":[0,1,2,3,4,5,6]},"textAlign":{"type":"string"},"isLink":{"type":"boolean","default":true,"role":"content"},"linkTarget":{"type":"string","default":"_self","role":"content"}},"example":{"viewportWidth":500},"supports":{"align":["wide","full"],"html":false,"color":{"gradients":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true,"link":true}},"spacing":{"padding":true,"margin":true,"__experimentalDefaultControls":{"margin":false,"padding":false}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalFontStyle":true,"__experimentalFontWeight":true,"__experimentalLetterSpacing":true,"__experimentalWritingMode":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true}},"editorStyle":"wp-block-site-title-editor","style":"wp-block-site-title"}');const Pj={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:Yo,isEligible:({style:e})=>e?.typography?.fontFamily};var Ij=[Pj];var Dj={to:[{type:"block",blocks:["core/site-logo"],transform:({isLink:e,linkTarget:t})=>(0,st.createBlock)("core/site-logo",{isLink:e,linkTarget:t})}]};const{name:Mj}=Nj,zj={icon:Tj,example:{viewportWidth:350,attributes:{textAlign:"center"}},edit:function({attributes:e,setAttributes:t,insertBlocksAfter:o}){const{level:n,levelOptions:r,textAlign:a,isLink:i,linkTarget:s}=e,{canUserEdit:l,title:c}=(0,lt.useSelect)((e=>{const{canUser:t,getEntityRecord:o,getEditedEntityRecord:n}=e(_t.store),r=t("update",{kind:"root",name:"site"}),a=r?n("root","site"):{},i=o("root","__unstableBase");return{canUserEdit:r,title:r?a?.title:i?.name}}),[]),{editEntityRecord:u}=(0,lt.useDispatch)(_t.store),d=vt(),p=(0,ct.useBlockEditingMode)(),m=0===n?"p":`h${n}`,g=(0,ct.useBlockProps)({className:Dt({[`has-text-align-${a}`]:a,"wp-block-site-title__placeholder":!l&&!c})}),h=l?(0,it.jsx)(m,{...g,children:(0,it.jsx)(ct.RichText,{tagName:i?"a":"span",href:i?"#site-title-pseudo-link":void 0,"aria-label":(0,pt.__)("Site title text"),placeholder:(0,pt.__)("Write site title…"),value:c,onChange:function(e){u("root","site",void 0,{title:e.trim()})},allowedFormats:[],disableLineBreaks:!0,__unstableOnSplitAtEnd:()=>o((0,st.createBlock)((0,st.getDefaultBlockName)()))})}):(0,it.jsx)(m,{...g,children:i?(0,it.jsx)("a",{href:"#site-title-pseudo-link",onClick:e=>e.preventDefault(),children:(0,ao.decodeEntities)(c)||(0,pt.__)("Site Title placeholder")}):(0,it.jsx)("span",{children:(0,ao.decodeEntities)(c)||(0,pt.__)("Site Title placeholder")})});return(0,it.jsxs)(it.Fragment,{children:["default"===p&&(0,it.jsxs)(ct.BlockControls,{group:"block",children:[(0,it.jsx)(ct.HeadingLevelDropdown,{value:n,options:r,onChange:e=>t({level:e})}),(0,it.jsx)(ct.AlignmentControl,{value:a,onChange:e=>{t({textAlign:e})}})]}),(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{t({isLink:!0,linkTarget:"_self"})},dropdownMenuProps:d,children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!i,label:(0,pt.__)("Make title link to home"),onDeselect:()=>t({isLink:!0}),isShownByDefault:!0,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Make title link to home"),onChange:()=>t({isLink:!i}),checked:i})}),i&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>"_self"!==s,label:(0,pt.__)("Open in new tab"),onDeselect:()=>t({linkTarget:"_self"}),isShownByDefault:!0,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Open in new tab"),onChange:e=>t({linkTarget:e?"_blank":"_self"}),checked:"_blank"===s})})]})}),h]})},transforms:Dj,deprecated:Ij},Aj=()=>jt({name:Mj,metadata:Nj,settings:zj});var Lj=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.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"})}),Hj=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"m6.734 16.106 2.176-2.38-1.093-1.028-3.846 4.158 3.846 4.158 1.093-1.028-2.176-2.38h2.811c1.125 0 2.25.03 3.374 0 1.428-.001 3.362-.25 4.963-1.277 1.66-1.065 2.868-2.906 2.868-5.859 0-2.479-1.327-4.896-3.65-5.93-1.82-.813-3.044-.8-4.806-.788l-.567.002v1.5c.184 0 .368 0 .553-.002 1.82-.007 2.704-.014 4.21.657 1.854.827 2.76 2.657 2.76 4.561 0 2.472-.973 3.824-2.178 4.596-1.258.807-2.864 1.04-4.163 1.04h-.02c-1.115.03-2.229 0-3.344 0H6.734Z"})});const Rj=()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.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"})});const Vj=({url:e,setAttributes:t,setPopover:o,popoverAnchor:n,clientId:r})=>{const{removeBlock:a}=(0,lt.useDispatch)(ct.store);return(0,it.jsx)(ct.URLPopover,{anchor:n,"aria-label":(0,pt.__)("Edit social link"),onClose:()=>{o(!1),n?.focus()},children:(0,it.jsx)("form",{className:"block-editor-url-popover__link-editor",onSubmit:e=>{e.preventDefault(),o(!1),n?.focus()},children:(0,it.jsx)("div",{className:"block-editor-url-input",children:(0,it.jsx)(ct.URLInput,{value:e,onChange:e=>t({url:e}),placeholder:(0,pt.__)("Enter social link"),label:(0,pt.__)("Enter social link"),hideLabelFromVision:!0,disableSuggestions:!0,onKeyDown:t=>{e||t.defaultPrevented||![mn.BACKSPACE,mn.DELETE].includes(t.keyCode)||a(r)},suffix:(0,it.jsx)(mt.__experimentalInputControlSuffixWrapper,{variant:"control",children:(0,it.jsx)(mt.Button,{icon:Hj,label:(0,pt.__)("Apply"),type:"submit",size:"small"})})})})})})};var Fj=({attributes:e,context:t,isSelected:o,setAttributes:n,clientId:r,name:a})=>{const{url:i,service:s,label:l="",rel:c}=e,u=vt(),{showLabels:d,iconColor:p,iconColorValue:m,iconBackgroundColor:g,iconBackgroundColorValue:h}=t,[_,x]=(0,gt.useState)(!1),b=Dt("wp-social-link","wp-block-social-link","wp-social-link-"+s,{"wp-social-link__is-incomplete":!i,[`has-${p}-color`]:p,[`has-${g}-background-color`]:g}),[f,y]=(0,gt.useState)(null),v="contentOnly"===(0,ct.useBlockEditingMode)(),{activeVariation:k}=(0,lt.useSelect)((t=>{const{getActiveBlockVariation:o}=t(st.store);return{activeVariation:o(a,e)}}),[a,e]),{icon:w,label:C}=(j=k,j?.name?{icon:j?.icon??Rj,label:j?.title??(0,pt.__)("Social Icon")}:{icon:Rj,label:(0,pt.__)("Social Icon")});var j;const S=""===l.trim()?C:l,B=(0,gt.useRef)(),T=(0,ct.useBlockProps)({className:"wp-block-social-link-anchor",ref:(0,xt.useMergeRefs)([y,B]),onClick:()=>x(!0),onKeyDown:e=>{e.keyCode===mn.ENTER&&(e.preventDefault(),x(!0))}});return(0,it.jsxs)(it.Fragment,{children:[v&&d&&(0,it.jsx)(ct.BlockControls,{group:"other",children:(0,it.jsx)(mt.Dropdown,{popoverProps:{placement:"bottom-start"},renderToggle:({isOpen:e,onToggle:t})=>(0,it.jsx)(mt.ToolbarButton,{onClick:t,"aria-haspopup":"true","aria-expanded":e,children:(0,pt.__)("Text")}),renderContent:()=>(0,it.jsx)(mt.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,className:"wp-block-social-link__toolbar_content_text",label:(0,pt.__)("Text"),help:(0,pt.__)("Provide a text label or use the default."),value:l,onChange:e=>n({label:e}),placeholder:C})})}),(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsx)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{n({label:void 0})},dropdownMenuProps:u,children:(0,it.jsx)(mt.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,pt.__)("Text"),hasValue:()=>!!l,onDeselect:()=>{n({label:void 0})},children:(0,it.jsx)(mt.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("Text"),help:(0,pt.__)("The text is visible when enabled from the parent Social Icons block."),value:l,onChange:e=>n({label:e}),placeholder:C})})})}),(0,it.jsx)(ct.InspectorControls,{group:"advanced",children:(0,it.jsx)(mt.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("Link relation"),help:(0,gt.createInterpolateElement)((0,pt.__)("The <a>Link Relation</a> attribute defines the relationship between a linked resource and the current document."),{a:(0,it.jsx)(mt.ExternalLink,{href:"https://developer.mozilla.org/docs/Web/HTML/Attributes/rel"})}),value:c||"",onChange:e=>n({rel:e})})}),(0,it.jsxs)("li",{role:"presentation",className:b,style:{color:m,backgroundColor:h},children:[(0,it.jsxs)("button",{"aria-haspopup":"dialog",...T,role:"button",children:[(0,it.jsx)(mt.Icon,{icon:w}),(0,it.jsx)("span",{className:Dt("wp-block-social-link-label",{"screen-reader-text":!d}),children:S})]}),o&&_&&(0,it.jsx)(Vj,{url:i,setAttributes:n,setPopover:x,popoverAnchor:f,clientId:r})]})]})};const Ej=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/social-link","title":"Social Icon","category":"widgets","parent":["core/social-links"],"description":"Display an icon linking to a social profile or site.","textdomain":"default","attributes":{"url":{"type":"string","role":"content"},"service":{"type":"string"},"label":{"type":"string","role":"content"},"rel":{"type":"string"}},"usesContext":["openInNewTab","showLabels","iconColor","iconColorValue","iconBackgroundColor","iconBackgroundColorValue"],"supports":{"reusable":false,"html":false,"interactivity":{"clientNavigation":true}},"editorStyle":"wp-block-social-link-editor"}'),Oj=[{isDefault:!0,name:"wordpress",attributes:{service:"wordpress"},title:(0,pt._x)("WordPress","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.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:(0,pt._x)("500px","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.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:(0,pt._x)("Amazon","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.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:(0,pt._x)("Bandcamp","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.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:(0,pt._x)("Behance","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.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:"bluesky",attributes:{service:"bluesky"},title:(0,pt._x)("Bluesky","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.Path,{d:"M6.3,4.2c2.3,1.7,4.8,5.3,5.7,7.2.9-1.9,3.4-5.4,5.7-7.2,1.7-1.3,4.3-2.2,4.3.9s-.4,5.2-.6,5.9c-.7,2.6-3.3,3.2-5.6,2.8,4,.7,5.1,3,2.9,5.3-5,5.2-6.7-2.8-6.7-2.8,0,0-1.7,8-6.7,2.8-2.2-2.3-1.2-4.6,2.9-5.3-2.3.4-4.9-.3-5.6-2.8-.2-.7-.6-5.3-.6-5.9,0-3.1,2.7-2.1,4.3-.9h0Z"})})},{name:"chain",attributes:{service:"chain"},title:(0,pt._x)("Link","social link block variation name"),icon:Rj},{name:"codepen",attributes:{service:"codepen"},title:(0,pt._x)("CodePen","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.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:(0,pt._x)("DeviantArt","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.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:"discord",attributes:{service:"discord"},title:(0,pt._x)("Discord","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.Path,{d:"M20.317 4.369A19.88 19.88 0 0 0 15.894 3a14.145 14.145 0 0 0-.719 1.518 19.205 19.205 0 0 0-5.351 0A14.183 14.183 0 0 0 9.104 3 19.896 19.896 0 0 0 4.682 4.369a18.921 18.921 0 0 0-3.012 12.52 19.929 19.929 0 0 0 6.081 3.097c.487-.65.922-1.339 1.3-2.061a12.445 12.445 0 0 1-1.958-.896c.165-.12.326-.246.483-.374a12.445 12.445 0 0 0 8.946 0c.157.128.318.253.483.374-.627.371-1.281.683-1.958.896.379.722.813 1.41 1.3 2.061a19.94 19.94 0 0 0 6.081-3.097 18.921 18.921 0 0 0-3.012-12.52ZM8.12 15.233c-1.202 0-2.184-1.09-2.184-2.431 0-1.34.97-2.431 2.184-2.431 1.213 0 2.202 1.09 2.184 2.431 0 1.341-.97 2.431-2.184 2.431Zm7.757 0c-1.202 0-2.184-1.09-2.184-2.431 0-1.34.97-2.431 2.184-2.431 1.213 0 2.202 1.09 2.184 2.431 0 1.341-.97 2.431-2.184 2.431Z"})})},{name:"dribbble",attributes:{service:"dribbble"},title:(0,pt._x)("Dribbble","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.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:(0,pt._x)("Dropbox","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.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:(0,pt._x)("Etsy","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.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:(0,pt._x)("Facebook","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.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:(0,pt._x)("RSS Feed","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.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:(0,pt._x)("Flickr","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.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:(0,pt._x)("Foursquare","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.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:(0,pt._x)("Goodreads","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.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:(0,pt._x)("Google","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.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:(0,pt._x)("GitHub","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.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:"gravatar",attributes:{service:"gravatar"},title:(0,pt._x)("Gravatar","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.Path,{d:"M10.8001 4.69937V10.6494C10.8001 11.1001 10.9791 11.5323 11.2978 11.851C11.6165 12.1697 12.0487 12.3487 12.4994 12.3487C12.9501 12.3487 13.3824 12.1697 13.7011 11.851C14.0198 11.5323 14.1988 11.1001 14.1988 10.6494V6.69089C15.2418 7.05861 16.1371 7.75537 16.7496 8.67617C17.3622 9.59698 17.6589 10.6919 17.595 11.796C17.5311 12.9001 17.1101 13.9535 16.3954 14.7975C15.6807 15.6415 14.711 16.2303 13.6325 16.4753C12.5541 16.7202 11.4252 16.608 10.4161 16.1555C9.40691 15.703 8.57217 14.9348 8.03763 13.9667C7.50308 12.9985 7.29769 11.8828 7.45242 10.7877C7.60714 9.69266 8.11359 8.67755 8.89545 7.89537C9.20904 7.57521 9.38364 7.14426 9.38132 6.69611C9.37899 6.24797 9.19994 5.81884 8.88305 5.50195C8.56616 5.18506 8.13704 5.00601 7.68889 5.00369C7.24075 5.00137 6.80979 5.17597 6.48964 5.48956C5.09907 6.8801 4.23369 8.7098 4.04094 10.6669C3.84819 12.624 4.34 14.5873 5.43257 16.2224C6.52515 17.8575 8.15088 19.0632 10.0328 19.634C11.9146 20.2049 13.9362 20.1055 15.753 19.3529C17.5699 18.6003 19.0695 17.241 19.9965 15.5066C20.9234 13.7722 21.2203 11.7701 20.8366 9.84133C20.4528 7.91259 19.4122 6.17658 17.892 4.92911C16.3717 3.68163 14.466 2.99987 12.4994 3C12.0487 3 11.6165 3.17904 11.2978 3.49773C10.9791 3.81643 10.8001 4.24867 10.8001 4.69937Z"})})},{name:"instagram",attributes:{service:"instagram"},title:(0,pt._x)("Instagram","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.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:(0,pt._x)("Last.fm","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.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:(0,pt._x)("LinkedIn","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.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:(0,pt._x)("Mail","social link block variation name"),keywords:["email","e-mail"],icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.Path,{d:"M19 5H5c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm.5 12c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V9.8l7.5 5.6 7.5-5.6V17zm0-9.1L12 13.6 4.5 7.9V7c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v.9z"})})},{name:"mastodon",attributes:{service:"mastodon"},title:(0,pt._x)("Mastodon","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.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:(0,pt._x)("Meetup","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.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:(0,pt._x)("Medium","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.Path,{d:"M13.2,12c0,3-2.4,5.4-5.3,5.4S2.6,15,2.6,12s2.4-5.4,5.3-5.4S13.2,9,13.2,12 M19.1,12c0,2.8-1.2,5-2.7,5s-2.7-2.3-2.7-5s1.2-5,2.7-5C17.9,7,19.1,9.2,19.1,12 M21.4,12c0,2.5-0.4,4.5-0.9,4.5c-0.5,0-0.9-2-0.9-4.5s0.4-4.5,0.9-4.5C21,7.5,21.4,9.5,21.4,12"})})},{name:"patreon",attributes:{service:"patreon"},title:(0,pt._x)("Patreon","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.Path,{d:"M20 8.40755C19.9969 6.10922 18.2543 4.22555 16.2097 3.54588C13.6708 2.70188 10.3222 2.82421 7.89775 3.99921C4.95932 5.42355 4.03626 8.54355 4.00186 11.6552C3.97363 14.2136 4.2222 20.9517 7.92225 20.9997C10.6715 21.0356 11.0809 17.3967 12.3529 15.6442C13.258 14.3974 14.4233 14.0452 15.8578 13.6806C18.3233 13.0537 20.0036 11.0551 20 8.40755Z"})})},{name:"pinterest",attributes:{service:"pinterest"},title:(0,pt._x)("Pinterest","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.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:(0,pt._x)("Pocket","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.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:(0,pt._x)("Reddit","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.Path,{d:"M5.27 9.221A2.775 2.775 0 0 0 2.498 11.993a2.785 2.785 0 0 0 1.6 2.511 5.337 5.337 0 0 0 2.374 4.11 9.386 9.386 0 0 0 5.539 1.7 9.386 9.386 0 0 0 5.541-1.7 5.331 5.331 0 0 0 2.372-4.114 2.787 2.787 0 0 0 1.583-2.5 2.775 2.775 0 0 0-2.772-2.772 2.742 2.742 0 0 0-1.688.574 9.482 9.482 0 0 0-4.637-1.348v-.008a2.349 2.349 0 0 1 2.011-2.316 1.97 1.97 0 0 0 1.926 1.521 1.98 1.98 0 0 0 1.978-1.978 1.98 1.98 0 0 0-1.978-1.978 1.985 1.985 0 0 0-1.938 1.578 3.183 3.183 0 0 0-2.849 3.172v.011a9.463 9.463 0 0 0-4.59 1.35 2.741 2.741 0 0 0-1.688-.574Zm6.736 9.1a3.162 3.162 0 0 1-2.921-1.944.215.215 0 0 1 .014-.2.219.219 0 0 1 .168-.106 27.327 27.327 0 0 1 2.74-.133 27.357 27.357 0 0 1 2.74.133.219.219 0 0 1 .168.106.215.215 0 0 1 .014.2 3.158 3.158 0 0 1-2.921 1.944Zm3.743-3.157a1.265 1.265 0 0 1-1.4-1.371 1.954 1.954 0 0 1 .482-1.442 1.15 1.15 0 0 1 .842-.379 1.7 1.7 0 0 1 1.49 1.777 1.323 1.323 0 0 1-.325 1.015 1.476 1.476 0 0 1-1.089.4Zm-7.485 0a1.476 1.476 0 0 1-1.086-.4 1.323 1.323 0 0 1-.325-1.016 1.7 1.7 0 0 1 1.49-1.777 1.151 1.151 0 0 1 .843.379 1.951 1.951 0 0 1 .481 1.441 1.276 1.276 0 0 1-1.403 1.373Z"})})},{name:"skype",attributes:{service:"skype"},title:(0,pt._x)("Skype","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.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"})}),scope:[]},{name:"snapchat",attributes:{service:"snapchat"},title:(0,pt._x)("Snapchat","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.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:(0,pt._x)("SoundCloud","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.Path,{d:"M23.994 14.552a3.36 3.36 0 01-3.401 3.171h-8.176a.685.685 0 01-.679-.681V8.238a.749.749 0 01.452-.716S12.942 7 14.526 7a5.357 5.357 0 012.748.755 5.44 5.44 0 012.56 3.546c.282-.08.574-.12.868-.119a3.273 3.273 0 013.292 3.37zM10.718 8.795a.266.266 0 10-.528 0c-.224 2.96-.397 5.735 0 8.685a.265.265 0 00.528 0c.425-2.976.246-5.7 0-8.685zM9.066 9.82a.278.278 0 00-.553 0 33.183 33.183 0 000 7.663.278.278 0 00.55 0c.33-2.544.332-5.12.003-7.664zM7.406 9.56a.269.269 0 00-.535 0c-.253 2.7-.38 5.222 0 7.917a.266.266 0 10.531 0c.394-2.73.272-5.181.004-7.917zM5.754 10.331a.275.275 0 10-.55 0 28.035 28.035 0 000 7.155.272.272 0 00.54 0c.332-2.373.335-4.78.01-7.155zM4.087 12.12a.272.272 0 00-.544 0c-.393 1.843-.208 3.52.016 5.386a.26.26 0 00.512 0c.247-1.892.435-3.53.016-5.386zM2.433 11.838a.282.282 0 00-.56 0c-.349 1.882-.234 3.54.01 5.418.025.285.508.282.54 0 .269-1.907.394-3.517.01-5.418zM.762 12.76a.282.282 0 00-.56 0c-.32 1.264-.22 2.31.023 3.578a.262.262 0 00.521 0c.282-1.293.42-2.317.016-3.578z"})})},{name:"spotify",attributes:{service:"spotify"},title:(0,pt._x)("Spotify","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.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:(0,pt._x)("Telegram","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 128 128",version:"1.1",children:(0,it.jsx)(St.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:"threads",attributes:{service:"threads"},title:(0,pt._x)("Threads","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.Path,{d:"M16.3 11.3c-.1 0-.2-.1-.2-.1-.1-2.6-1.5-4-3.9-4-1.4 0-2.6.6-3.3 1.7l1.3.9c.5-.8 1.4-1 2-1 .8 0 1.4.2 1.7.7.3.3.5.8.5 1.3-.7-.1-1.4-.2-2.2-.1-2.2.1-3.7 1.4-3.6 3.2 0 .9.5 1.7 1.3 2.2.7.4 1.5.6 2.4.6 1.2-.1 2.1-.5 2.7-1.3.5-.6.8-1.4.9-2.4.6.3 1 .8 1.2 1.3.4.9.4 2.4-.8 3.6-1.1 1.1-2.3 1.5-4.3 1.5-2.1 0-3.8-.7-4.8-2S5.7 14.3 5.7 12c0-2.3.5-4.1 1.5-5.4 1.1-1.3 2.7-2 4.8-2 2.2 0 3.8.7 4.9 2 .5.7.9 1.5 1.2 2.5l1.5-.4c-.3-1.2-.8-2.2-1.5-3.1-1.3-1.7-3.3-2.6-6-2.6-2.6 0-4.7.9-6 2.6C4.9 7.2 4.3 9.3 4.3 12s.6 4.8 1.9 6.4c1.4 1.7 3.4 2.6 6 2.6 2.3 0 4-.6 5.3-2 1.8-1.8 1.7-4 1.1-5.4-.4-.9-1.2-1.7-2.3-2.3zm-4 3.8c-1 .1-2-.4-2-1.3 0-.7.5-1.5 2.1-1.6h.5c.6 0 1.1.1 1.6.2-.2 2.3-1.3 2.7-2.2 2.7z"})})},{name:"tiktok",attributes:{service:"tiktok"},title:(0,pt._x)("TikTok","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.Path,{d:"M12.4044 3.01519C13.4086 3 14.4072 3.009 15.4045 3C15.465 4.14812 15.8874 5.31762 16.7472 6.12935C17.6053 6.96134 18.819 7.34217 20 7.47099V10.4912C18.8933 10.4558 17.7814 10.2308 16.7771 9.76499C16.3397 9.57148 15.9323 9.32227 15.5334 9.06745C15.5283 11.2591 15.5426 13.4479 15.5191 15.6305C15.4592 16.679 15.1053 17.7225 14.4814 18.5866C13.4777 20.025 11.7356 20.9627 9.94635 20.992C8.84885 21.0533 7.7525 20.7608 6.81729 20.2219C5.26743 19.3286 4.17683 17.6933 4.01799 15.9382C3.99957 15.563 3.99324 15.1883 4.00878 14.8221C4.14691 13.395 4.86917 12.0297 5.99027 11.101C7.26101 10.0192 9.04107 9.50397 10.7078 9.80886C10.7233 10.9199 10.6778 12.0297 10.6778 13.1407C9.91643 12.9 9.02668 12.9675 8.36139 13.4192C7.87566 13.7269 7.50675 14.1983 7.31453 14.7316C7.15569 15.1118 7.20116 15.5343 7.21036 15.9382C7.3928 17.169 8.60368 18.2035 9.89628 18.0916C10.7532 18.0826 11.5745 17.5965 12.0211 16.8849C12.1655 16.6357 12.3273 16.3809 12.3359 16.0878C12.4113 14.7462 12.3814 13.4102 12.3906 12.0685C12.3969 9.04495 12.3814 6.02979 12.4049 3.01575L12.4044 3.01519Z"})})},{name:"tumblr",attributes:{service:"tumblr"},title:(0,pt._x)("Tumblr","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.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:(0,pt._x)("Twitch","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.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:(0,pt._x)("Twitter","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.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:(0,pt._x)("Vimeo","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.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:(0,pt._x)("VK","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.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:"whatsapp",attributes:{service:"whatsapp"},title:(0,pt._x)("WhatsApp","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.Path,{d:"M 12.011719 2 C 6.5057187 2 2.0234844 6.478375 2.0214844 11.984375 C 2.0204844 13.744375 2.4814687 15.462563 3.3554688 16.976562 L 2 22 L 7.2324219 20.763672 C 8.6914219 21.559672 10.333859 21.977516 12.005859 21.978516 L 12.009766 21.978516 C 17.514766 21.978516 21.995047 17.499141 21.998047 11.994141 C 22.000047 9.3251406 20.962172 6.8157344 19.076172 4.9277344 C 17.190172 3.0407344 14.683719 2.001 12.011719 2 z M 12.009766 4 C 14.145766 4.001 16.153109 4.8337969 17.662109 6.3417969 C 19.171109 7.8517969 20.000047 9.8581875 19.998047 11.992188 C 19.996047 16.396187 16.413812 19.978516 12.007812 19.978516 C 10.674812 19.977516 9.3544062 19.642812 8.1914062 19.007812 L 7.5175781 18.640625 L 6.7734375 18.816406 L 4.8046875 19.28125 L 5.2851562 17.496094 L 5.5019531 16.695312 L 5.0878906 15.976562 C 4.3898906 14.768562 4.0204844 13.387375 4.0214844 11.984375 C 4.0234844 7.582375 7.6067656 4 12.009766 4 z M 8.4765625 7.375 C 8.3095625 7.375 8.0395469 7.4375 7.8105469 7.6875 C 7.5815469 7.9365 6.9355469 8.5395781 6.9355469 9.7675781 C 6.9355469 10.995578 7.8300781 12.182609 7.9550781 12.349609 C 8.0790781 12.515609 9.68175 15.115234 12.21875 16.115234 C 14.32675 16.946234 14.754891 16.782234 15.212891 16.740234 C 15.670891 16.699234 16.690438 16.137687 16.898438 15.554688 C 17.106437 14.971687 17.106922 14.470187 17.044922 14.367188 C 16.982922 14.263188 16.816406 14.201172 16.566406 14.076172 C 16.317406 13.951172 15.090328 13.348625 14.861328 13.265625 C 14.632328 13.182625 14.464828 13.140625 14.298828 13.390625 C 14.132828 13.640625 13.655766 14.201187 13.509766 14.367188 C 13.363766 14.534188 13.21875 14.556641 12.96875 14.431641 C 12.71875 14.305641 11.914938 14.041406 10.960938 13.191406 C 10.218937 12.530406 9.7182656 11.714844 9.5722656 11.464844 C 9.4272656 11.215844 9.5585938 11.079078 9.6835938 10.955078 C 9.7955938 10.843078 9.9316406 10.663578 10.056641 10.517578 C 10.180641 10.371578 10.223641 10.267562 10.306641 10.101562 C 10.389641 9.9355625 10.347156 9.7890625 10.285156 9.6640625 C 10.223156 9.5390625 9.737625 8.3065 9.515625 7.8125 C 9.328625 7.3975 9.131125 7.3878594 8.953125 7.3808594 C 8.808125 7.3748594 8.6425625 7.375 8.4765625 7.375 z"})})},{name:"x",attributes:{service:"x"},keywords:["twitter"],title:(0,pt._x)("X","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.Path,{d:"M13.982 10.622 20.54 3h-1.554l-5.693 6.618L8.745 3H3.5l6.876 10.007L3.5 21h1.554l6.012-6.989L15.868 21h5.245l-7.131-10.378Zm-2.128 2.474-.697-.997-5.543-7.93H8l4.474 6.4.697.996 5.815 8.318h-2.387l-4.745-6.787Z"})})},{name:"yelp",attributes:{service:"yelp"},title:(0,pt._x)("Yelp","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.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:(0,pt._x)("YouTube","social link block variation name"),icon:()=>(0,it.jsx)(St.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,it.jsx)(St.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"})})}];Oj.forEach((e=>{e.isActive||(e.isActive=(e,t)=>e.service===t.service)}));var Gj=Oj;const{name:$j}=Ej,Uj={icon:Lj,edit:Fj,variations:Gj},qj=()=>jt({name:$j,metadata:Ej,settings:Uj}),Wj=[{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:e=>{if(e.layout)return e;const{className:t}=e,o="items-justified-",n=new RegExp(`\\b${o}[^ ]*[ ]?\\b`,"g"),r={...e,className:t?.replace(n,"").trim()},a=t?.match(n)?.[0]?.trim();return a&&Object.assign(r,{layout:{type:"flex",justifyContent:a.slice(16)}}),r},save:e=>{const{attributes:{iconBackgroundColorValue:t,iconColorValue:o,itemsJustification:n,size:r}}=e,a=Dt(r,{"has-icon-color":o,"has-icon-background-color":t,[`items-justified-${n}`]:n}),i={"--wp--social-links--icon-color":o,"--wp--social-links--icon-background-color":t};return(0,it.jsx)("ul",{...ct.useBlockProps.save({className:a,style:i}),children:(0,it.jsx)(ct.InnerBlocks.Content,{})})}}];var Zj=Wj;const Jj=[{label:(0,pt.__)("Default"),value:""},{label:(0,pt.__)("Small"),value:"has-small-icon-size"},{label:(0,pt.__)("Normal"),value:"has-normal-icon-size"},{label:(0,pt.__)("Large"),value:"has-large-icon-size"},{label:(0,pt.__)("Huge"),value:"has-huge-icon-size"}];var Qj=(0,ct.withColors)({iconColor:"icon-color",iconBackgroundColor:"icon-background-color"})((function(e){const{clientId:t,attributes:o,iconBackgroundColor:n,iconColor:r,isSelected:a,setAttributes:i,setIconBackgroundColor:s,setIconColor:l}=e,{iconBackgroundColorValue:c,iconColorValue:u,openInNewTab:d,showLabels:p,size:m}=o,{hasSocialIcons:g,hasSelectedChild:h}=(0,lt.useSelect)((e=>{const{getBlockCount:o,hasSelectedInnerBlock:n}=e(ct.store);return{hasSocialIcons:o(t)>0,hasSelectedChild:n(t)}}),[t]),_=a||h,x=o.className?.includes("is-style-logos-only"),b=vt();(0,gt.useEffect)((()=>{if(x){let e;return i((t=>(e={iconBackgroundColor:t.iconBackgroundColor,iconBackgroundColorValue:t.iconBackgroundColorValue,customIconBackgroundColor:t.customIconBackgroundColor},{iconBackgroundColor:void 0,iconBackgroundColorValue:void 0,customIconBackgroundColor:void 0}))),()=>i({...e})}}),[x,i]);const f=Dt(m,{"has-visible-labels":p,"has-icon-color":r.color||u,"has-icon-background-color":n.color||c}),y=(0,ct.useBlockProps)({className:f}),v=(0,ct.useInnerBlocksProps)(y,{templateLock:!1,orientation:o.layout?.orientation??"horizontal",__experimentalAppenderTagName:"li",renderAppender:!g||_?ct.InnerBlocks.ButtonBlockAppender:void 0}),k=[{value:r.color||u,onChange:e=>{l(e),i({iconColorValue:e})},label:(0,pt.__)("Icon color"),resetAllFilter:()=>{l(void 0),i({iconColorValue:void 0})}}];x||k.push({value:n.color||c,onChange:e=>{s(e),i({iconBackgroundColorValue:e})},label:(0,pt.__)("Icon background"),resetAllFilter:()=>{s(void 0),i({iconBackgroundColorValue:void 0})}});const w=(0,ct.__experimentalUseMultipleOriginColorsAndGradients)();return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{i({openInNewTab:!1,showLabels:!1,size:void 0})},dropdownMenuProps:b,children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{isShownByDefault:!0,hasValue:()=>!!m,label:(0,pt.__)("Icon size"),onDeselect:()=>i({size:void 0}),children:(0,it.jsx)(mt.SelectControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("Icon size"),onChange:e=>{i({size:""===e?void 0:e})},value:m??"",options:Jj})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,pt.__)("Show text"),hasValue:()=>!!p,onDeselect:()=>i({showLabels:!1}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Show text"),checked:p,onChange:()=>i({showLabels:!p})})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,pt.__)("Open links in new tab"),hasValue:()=>!!d,onDeselect:()=>i({openInNewTab:!1}),children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Open links in new tab"),checked:d,onChange:()=>i({openInNewTab:!d})})})]})}),w.hasColorsOrGradients&&(0,it.jsxs)(ct.InspectorControls,{group:"color",children:[k.map((({onChange:e,label:o,value:n,resetAllFilter:r})=>(0,it.jsx)(ct.__experimentalColorGradientSettingsDropdown,{__experimentalIsRenderedInSidebar:!0,settings:[{colorValue:n,label:o,onColorChange:e,isShownByDefault:!0,resetAllFilter:r,enableAlpha:!0,clearable:!0}],panelId:t,...w},`social-links-color-${o}`))),!x&&(0,it.jsx)(ct.ContrastChecker,{textColor:u,backgroundColor:c,isLargeText:!1})]}),(0,it.jsx)("ul",{...v})]})}));const Kj=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/social-links","title":"Social Icons","category":"widgets","allowedBlocks":["core/social-link"],"description":"Display icons linking to your social profiles or sites.","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":false},"showLabels":{"type":"boolean","default":false},"size":{"type":"string"}},"providesContext":{"openInNewTab":"openInNewTab","showLabels":"showLabels","iconColor":"iconColor","iconColorValue":"iconColorValue","iconBackgroundColor":"iconBackgroundColor","iconBackgroundColorValue":"iconBackgroundColorValue"},"supports":{"align":["left","center","right"],"anchor":true,"html":false,"__experimentalExposeControlsToChildren":true,"layout":{"allowSwitching":false,"allowInheriting":false,"allowVerticalAlignment":false,"default":{"type":"flex"}},"color":{"enableContrastChecker":false,"background":true,"gradients":true,"text":false,"__experimentalDefaultControls":{"background":false}},"spacing":{"blockGap":["horizontal","vertical"],"margin":true,"padding":true,"units":["px","em","rem","vh","vw"],"__experimentalDefaultControls":{"blockGap":true,"margin":true,"padding":false}},"interactivity":{"clientNavigation":true},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true,"__experimentalDefaultControls":{"radius":true,"color":true,"width":true,"style":true}},"contentRole":true},"styles":[{"name":"default","label":"Default","isDefault":true},{"name":"logos-only","label":"Logos Only"},{"name":"pill-shape","label":"Pill Shape"}],"editorStyle":"wp-block-social-links-editor","style":"wp-block-social-links"}');const{name:Yj}=Kj,Xj={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:Lj,edit:Qj,save:function(e){const{attributes:{iconBackgroundColorValue:t,iconColorValue:o,showLabels:n,size:r}}=e,a=Dt(r,{"has-visible-labels":n,"has-icon-color":o,"has-icon-background-color":t}),i=ct.useBlockProps.save({className:a}),s=ct.useInnerBlocksProps.save(i);return(0,it.jsx)("ul",{...s})},deprecated:Zj},eS=()=>jt({name:Yj,metadata:Kj,settings:Xj});var tS=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.Path,{d:"M7 18h4.5v1.5h-7v-7H6V17L17 6h-4.5V4.5h7v7H18V7L7 18Z"})});const oS=[{attributes:{height:{type:"number",default:100},width:{type:"number"}},migrate(e){const{height:t,width:o}=e;return{...e,width:void 0!==o?`${o}px`:void 0,height:void 0!==t?`${t}px`:void 0}},save:({attributes:e})=>(0,it.jsx)("div",{...ct.useBlockProps.save({style:{height:e.height,width:e.width},"aria-hidden":!0})})}];var nS=oS;const{useSpacingSizes:rS}=jo(ct.privateApis);function aS({label:e,onChange:t,isResizing:o,value:n=""}){const r=(0,xt.useInstanceId)(mt.__experimentalUnitControl,"block-spacer-height-input"),a=rS(),[i]=(0,ct.useSettings)("spacing.units"),s=i?i.filter((e=>"%"!==e)):["px","em","rem","vw","vh"],l=(0,mt.__experimentalUseCustomUnits)({availableUnits:s,defaultValues:{px:100,em:10,rem:10,vw:10,vh:25}}),[c,u]=(0,mt.__experimentalParseQuantityAndUnitFromRawValue)(n),d=(0,ct.isValueSpacingPreset)(n)?n:[c,o?"px":u].join("");return(0,it.jsx)(it.Fragment,{children:a?.length<2?(0,it.jsx)(mt.__experimentalUnitControl,{id:r,isResetValueOnUnitChange:!0,min:0,onChange:t,value:d,units:l,label:e,__next40pxDefaultSize:!0}):(0,it.jsx)(St.View,{className:"tools-panel-item-spacing",children:(0,it.jsx)(ct.__experimentalSpacingSizesControl,{values:{all:d},onChange:({all:e})=>{t(e)},label:e,sides:["all"],units:l,allowReset:!1,splitOnAxis:!1,showSideInLabel:!1})})})}function iS({setAttributes:e,orientation:t,height:o,width:n,isResizing:r}){const a=vt();return(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{e({width:void 0,height:"100px"})},dropdownMenuProps:a,children:["horizontal"===t&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Width"),isShownByDefault:!0,hasValue:()=>void 0!==n,onDeselect:()=>e({width:void 0}),children:(0,it.jsx)(aS,{label:(0,pt.__)("Width"),value:n,onChange:t=>e({width:t}),isResizing:r})}),"horizontal"!==t&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Height"),isShownByDefault:!0,hasValue:()=>"100px"!==o,onDeselect:()=>e({height:"100px"}),children:(0,it.jsx)(aS,{label:(0,pt.__)("Height"),value:o,onChange:t=>e({height:t}),isResizing:r})})]})})}const{useSpacingSizes:sS}=jo(ct.privateApis),lS=({orientation:e,onResizeStart:t,onResize:o,onResizeStop:n,isSelected:r,isResizing:a,setIsResizing:i,...s})=>{const l=t=>"horizontal"===e?t.clientWidth:t.clientHeight,c=e=>`${l(e)}px`;return(0,it.jsx)(mt.ResizableBox,{className:Dt("block-library-spacer__resize-container",{"resize-horizontal":"horizontal"===e,"is-resizing":a,"is-selected":r}),onResizeStart:(e,n,r)=>{const a=c(r);t(a),o(a)},onResize:(e,t,n)=>{o(c(n)),a||i(!0)},onResizeStop:(e,t,o)=>{const r=l(o);n(`${r}px`),i(!1)},__experimentalShowTooltip:!0,__experimentalTooltipProps:{axis:"horizontal"===e?"x":"y",position:"corner",isVisible:a},showHandle:r,...s})};var cS=({attributes:e,isSelected:t,setAttributes:o,toggleSelection:n,context:r,__unstableParentLayout:a,className:i})=>{const s=(0,lt.useSelect)((e=>{const t=e(ct.store).getSettings();return t?.disableCustomSpacingSizes})),{orientation:l}=r,{orientation:c,type:u,default:{type:d}={}}=a||{},p="flex"===u||!u&&"flex"===d,m=!c&&p?"horizontal":c||l,{height:g,width:h,style:_={}}=e,{layout:x={}}=_,{selfStretch:b,flexSize:f}=x,y=sS(),[v,k]=(0,gt.useState)(!1),[w,C]=(0,gt.useState)(null),[j,S]=(0,gt.useState)(null),B=()=>n(!1),T=()=>n(!0),{__unstableMarkNextChangeAsNotPersistent:N}=(0,lt.useDispatch)(ct.store),P=e=>{T(),p&&o({style:{..._,layout:{...x,flexSize:e,selfStretch:"fixed"}}}),o({height:e}),C(null)},I=e=>{T(),p&&o({style:{..._,layout:{...x,flexSize:e,selfStretch:"fixed"}}}),o({width:e}),S(null)},D="horizontal"===m?j||f:w||f,M={height:"horizontal"===m?24:(()=>{if(!p)return w||(0,ct.getSpacingPresetCssVar)(g)||void 0})(),width:"horizontal"===m?(()=>{if(!p)return j||(0,ct.getSpacingPresetCssVar)(h)||void 0})():void 0,minWidth:"vertical"===m&&p?48:void 0,flexBasis:p?D:void 0,flexGrow:p&&v?0:void 0};(0,gt.useEffect)((()=>{const e=e=>{N(),o(e)};if(p&&"fill"!==b&&"fit"!==b&&void 0===f)if("horizontal"===m){const t=(0,ct.getCustomValueFromPreset)(h,y)||(0,ct.getCustomValueFromPreset)(g,y)||"100px";e({width:"0px",style:{..._,layout:{...x,flexSize:t,selfStretch:"fixed"}}})}else{const t=(0,ct.getCustomValueFromPreset)(g,y)||(0,ct.getCustomValueFromPreset)(h,y)||"100px";e({height:"0px",style:{..._,layout:{...x,flexSize:t,selfStretch:"fixed"}}})}else!p||"fill"!==b&&"fit"!==b?p||!b&&!f||e({..."horizontal"===m?{width:f}:{height:f},style:{..._,layout:{...x,flexSize:void 0,selfStretch:void 0}}}):e("horizontal"===m?{width:void 0}:{height:void 0})}),[_,f,g,m,p,x,b,o,y,h,N]);const z=(0,ct.useBlockEditingMode)();return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(St.View,{...(0,ct.useBlockProps)({style:M,className:Dt(i,{"custom-sizes-disabled":s})}),children:"default"===z&&(A=m,"horizontal"===A?(0,it.jsx)(lS,{minWidth:0,enable:{top:!1,right:!0,bottom:!1,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},orientation:A,onResizeStart:B,onResize:S,onResizeStop:I,isSelected:t,isResizing:v,setIsResizing:k}):(0,it.jsx)(it.Fragment,{children:(0,it.jsx)(lS,{minHeight:0,enable:{top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},orientation:A,onResizeStart:B,onResize:C,onResizeStop:P,isSelected:t,isResizing:v,setIsResizing:k})}))}),!p&&(0,it.jsx)(iS,{setAttributes:o,height:w||g,width:j||h,orientation:m,isResizing:v})]});var A};const uS=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/spacer","title":"Spacer","category":"design","description":"Add white space between blocks and customize its height.","textdomain":"default","attributes":{"height":{"type":"string","default":"100px"},"width":{"type":"string"}},"usesContext":["orientation"],"supports":{"anchor":true,"spacing":{"margin":["top","bottom"],"__experimentalDefaultControls":{"margin":true}},"interactivity":{"clientNavigation":true}},"editorStyle":"wp-block-spacer-editor","style":"wp-block-spacer"}');var dS={to:[{type:"block",blocks:["core/separator"],transform:({anchor:e})=>(0,st.createBlock)("core/separator",{anchor:e||""})}]};const{name:pS}=uS,mS={icon:tS,transforms:dS,edit:cS,save:function({attributes:e}){const{height:t,width:o,style:n}=e,{layout:{selfStretch:r}={}}=n||{},a="fill"===r||"fit"===r?void 0:t;return(0,it.jsx)("div",{...ct.useBlockProps.save({style:{height:(0,ct.getSpacingPresetCssVar)(a),width:(0,ct.getSpacingPresetCssVar)(o)},"aria-hidden":!0})})},deprecated:nS},gS=()=>jt({name:pS,metadata:uS,settings:mS});var hS=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.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 _S={"subtle-light-gray":"#f3f4f5","subtle-pale-green":"#e9fbe5","subtle-pale-blue":"#e7f5fe","subtle-pale-pink":"#fcf0ef"},xS={content:{type:"rich-text",source:"rich-text"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"},colspan:{type:"string",source:"attribute",attribute:"colspan"},rowspan:{type:"string",source:"attribute",attribute:"rowspan"}},bS={attributes:{hasFixedLayout:{type:"boolean",default:!1},caption:{type:"rich-text",source:"rich-text",selector:"figcaption"},head:{type:"array",default:[],source:"query",selector:"thead tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:xS}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:xS}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:xS}}}},supports:{anchor:!0,align:!0,color:{__experimentalSkipSerialization:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalBorder:{__experimentalSkipSerialization:!0,color:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,style:!0,width:!0}},__experimentalSelector:".wp-block-table > table",interactivity:{clientNavigation:!0}},save({attributes:e}){const{hasFixedLayout:t,head:o,body:n,foot:r,caption:a}=e;if(!o.length&&!n.length&&!r.length)return null;const i=(0,ct.__experimentalGetColorClassesAndStyles)(e),s=(0,ct.__experimentalGetBorderClassesAndStyles)(e),l=Dt(i.className,s.className,{"has-fixed-layout":t}),c=!ct.RichText.isEmpty(a),u=({type:e,rows:t})=>{if(!t.length)return null;const o=`t${e}`;return(0,it.jsx)(o,{children:t.map((({cells:e},t)=>(0,it.jsx)("tr",{children:e.map((({content:e,tag:t,scope:o,align:n,colspan:r,rowspan:a},i)=>{const s=Dt({[`has-text-align-${n}`]:n});return(0,it.jsx)(ct.RichText.Content,{className:s||void 0,"data-align":n,tagName:t,value:e,scope:"th"===t?o:void 0,colSpan:r,rowSpan:a},i)}))},t)))})};return(0,it.jsxs)("figure",{...ct.useBlockProps.save(),children:[(0,it.jsxs)("table",{className:""===l?void 0:l,style:{...i.style,...s.style},children:[(0,it.jsx)(u,{type:"head",rows:o}),(0,it.jsx)(u,{type:"body",rows:n}),(0,it.jsx)(u,{type:"foot",rows:r})]}),c&&(0,it.jsx)(ct.RichText.Content,{tagName:"figcaption",value:a,className:(0,ct.__experimentalGetElementClassName)("caption")})]})}},fS={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"}},yS={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:fS}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:fS}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:fS}}}},supports:{anchor:!0,align:!0,color:{__experimentalSkipSerialization:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalBorder:{__experimentalSkipSerialization:!0,color:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,style:!0,width:!0}},__experimentalSelector:".wp-block-table > table"},save({attributes:e}){const{hasFixedLayout:t,head:o,body:n,foot:r,caption:a}=e;if(!o.length&&!n.length&&!r.length)return null;const i=(0,ct.__experimentalGetColorClassesAndStyles)(e),s=(0,ct.__experimentalGetBorderClassesAndStyles)(e),l=Dt(i.className,s.className,{"has-fixed-layout":t}),c=!ct.RichText.isEmpty(a),u=({type:e,rows:t})=>{if(!t.length)return null;const o=`t${e}`;return(0,it.jsx)(o,{children:t.map((({cells:e},t)=>(0,it.jsx)("tr",{children:e.map((({content:e,tag:t,scope:o,align:n},r)=>{const a=Dt({[`has-text-align-${n}`]:n});return(0,it.jsx)(ct.RichText.Content,{className:a||void 0,"data-align":n,tagName:t,value:e,scope:"th"===t?o:void 0},r)}))},t)))})};return(0,it.jsxs)("figure",{...ct.useBlockProps.save(),children:[(0,it.jsxs)("table",{className:""===l?void 0:l,style:{...i.style,...s.style},children:[(0,it.jsx)(u,{type:"head",rows:o}),(0,it.jsx)(u,{type:"body",rows:n}),(0,it.jsx)(u,{type:"foot",rows:r})]}),c&&(0,it.jsx)(ct.RichText.Content,{tagName:"figcaption",value:a})]})}},vS={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"}},kS={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:vS}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:vS}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:vS}}}},supports:{anchor:!0,align:!0,__experimentalSelector:".wp-block-table > table"},save:({attributes:e})=>{const{hasFixedLayout:t,head:o,body:n,foot:r,backgroundColor:a,caption:i}=e;if(!o.length&&!n.length&&!r.length)return null;const s=(0,ct.getColorClassName)("background-color",a),l=Dt(s,{"has-fixed-layout":t,"has-background":!!s}),c=!ct.RichText.isEmpty(i),u=({type:e,rows:t})=>{if(!t.length)return null;const o=`t${e}`;return(0,it.jsx)(o,{children:t.map((({cells:e},t)=>(0,it.jsx)("tr",{children:e.map((({content:e,tag:t,scope:o,align:n},r)=>{const a=Dt({[`has-text-align-${n}`]:n});return(0,it.jsx)(ct.RichText.Content,{className:a||void 0,"data-align":n,tagName:t,value:e,scope:"th"===t?o:void 0},r)}))},t)))})};return(0,it.jsxs)("figure",{...ct.useBlockProps.save(),children:[(0,it.jsxs)("table",{className:""===l?void 0:l,children:[(0,it.jsx)(u,{type:"head",rows:o}),(0,it.jsx)(u,{type:"body",rows:n}),(0,it.jsx)(u,{type:"foot",rows:r})]}),c&&(0,it.jsx)(ct.RichText.Content,{tagName:"figcaption",value:i})]})},isEligible:e=>e.backgroundColor&&e.backgroundColor in _S&&!e.style,migrate:e=>({...e,backgroundColor:void 0,style:{color:{background:_S[e.backgroundColor]}}})},wS={content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"}},CS={attributes:{hasFixedLayout:{type:"boolean",default:!1},backgroundColor:{type:"string"},head:{type:"array",default:[],source:"query",selector:"thead tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:wS}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:wS}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:wS}}}},supports:{align:!0},save({attributes:e}){const{hasFixedLayout:t,head:o,body:n,foot:r,backgroundColor:a}=e;if(!o.length&&!n.length&&!r.length)return null;const i=(0,ct.getColorClassName)("background-color",a),s=Dt(i,{"has-fixed-layout":t,"has-background":!!i}),l=({type:e,rows:t})=>{if(!t.length)return null;const o=`t${e}`;return(0,it.jsx)(o,{children:t.map((({cells:e},t)=>(0,it.jsx)("tr",{children:e.map((({content:e,tag:t,scope:o},n)=>(0,it.jsx)(ct.RichText.Content,{tagName:t,value:e,scope:"th"===t?o:void 0},n)))},t)))})};return(0,it.jsxs)("table",{className:s,children:[(0,it.jsx)(l,{type:"head",rows:o}),(0,it.jsx)(l,{type:"body",rows:n}),(0,it.jsx)(l,{type:"foot",rows:r})]})}};var jS=[bS,yS,kS,CS],SS=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M13 5.5H4V4h9v1.5Zm7 7H4V11h16v1.5Zm-7 7H4V18h9v1.5Z"})}),BS=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M7.5 5.5h9V4h-9v1.5Zm-3.5 7h16V11H4v1.5Zm3.5 7h9V18h-9v1.5Z"})}),TS=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M11.111 5.5H20V4h-8.889v1.5ZM4 12.5h16V11H4v1.5Zm7.111 7H20V18h-8.889v1.5Z"})}),NS=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M21 5c0-1.1-.9-2-2-2H5c-1 0-1.9.8-2 1.8V19.2c.1.9.9 1.7 1.8 1.8H19c1.1 0 2-.9 2-2V5ZM4.5 14V5c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v9h-15Zm4 5.5H5c-.3 0-.5-.2-.5-.5v-3.5h4v4Zm5.5 0h-4v-4h4v4Zm5.5-.5c0 .3-.2.5-.5.5h-3.5v-4h4V19ZM11.2 10h-3V8.5h3v-3h1.5v3h3V10h-3v3h-1.5v-3Z"})}),PS=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M19 3H4.8c-.9.1-1.7.9-1.8 1.8V19.2c.1 1 1 1.8 2 1.8h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2Zm-9 1.5h4v4h-4v-4ZM4.5 5c0-.3.2-.5.5-.5h3.5v4h-4V5Zm15 14c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-9h15v9Zm0-10.5h-4v-4H19c.3 0 .5.2.5.5v3.5Zm-8.3 10h1.5v-3h3V14h-3v-3h-1.5v3h-3v1.5h3v3Z"})}),IS=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M19 3H4.8c-.9.1-1.7.9-1.8 1.8V19.2c.1 1 1 1.8 2 1.8h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2Zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-9h15v9Zm0-10.5h-15V5c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v3.5Zm-9.6 9.4 2.1-2.1 2.1 2.1 1.1-1.1-2.1-2.1 2.1-2.1-1.1-1.1-2.1 2.1-2.1-2.1-1.1 1.1 2.1 2.1-2.1 2.1 1.1 1.1Z"})}),DS=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1 .8 1.9 1.8 2H19.2c.9-.1 1.7-.9 1.8-1.8V5c0-1.1-.9-2-2-2Zm-5 16.5H5c-.3 0-.5-.2-.5-.5V5c0-.3.2-.5.5-.5h9v15Zm5.5-.5c0 .3-.2.5-.5.5h-3.5v-4h4V19Zm0-5h-4v-4h4v4Zm0-5.5h-4v-4H19c.3 0 .5.2.5.5v3.5Zm-11 7.3H10v-3h3v-1.5h-3v-3H8.5v3h-3v1.5h3v3Z"})}),MS=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14.2c.1.9.9 1.7 1.8 1.8H19.2c1-.1 1.8-1 1.8-2V5c0-1.1-.9-2-2-2ZM8.5 19.5H5c-.3 0-.5-.2-.5-.5v-3.5h4v4Zm0-5.5h-4v-4h4v4Zm0-5.5h-4V5c0-.3.2-.5.5-.5h3.5v4Zm11 10.5c0 .3-.2.5-.5.5h-9v-15h9c.3 0 .5.2.5.5v14Zm-4-10.8H14v3h-3v1.5h3v3h1.5v-3h3v-1.5h-3v-3Z"})}),zS=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14.2c.1.9.9 1.7 1.8 1.8H19.2c1-.1 1.8-1 1.8-2V5c0-1.1-.9-2-2-2ZM8.5 19.5H5c-.3 0-.5-.2-.5-.5V5c0-.3.2-.5.5-.5h3.5v15Zm11-.5c0 .3-.2.5-.5.5h-9v-15h9c.3 0 .5.2.5.5v14ZM16.9 8.8l-2.1 2.1-2.1-2.1-1.1 1.1 2.1 2.1-2.1 2.1 1.1 1.1 2.1-2.1 2.1 2.1 1.1-1.1-2.1-2.1L18 9.9l-1.1-1.1Z"})}),AS=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.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 2v6.2h-6.8V4.4h6.2c.3 0 .5.2.5.5ZM5 4.5h6.2v6.8H4.4V5.1c0-.3.2-.5.5-.5ZM4.5 19v-6.2h6.8v6.8H5.1c-.3 0-.5-.2-.5-.5Zm14.5.5h-6.2v-6.8h6.8v6.2c0 .3-.2.5-.5.5Z"})});const LS=["align"];function HS(e,t,o){if(!t)return e;const n=Object.fromEntries(Object.entries(e).filter((([e])=>["head","body","foot"].includes(e)))),{sectionName:r,rowIndex:a}=t;return Object.fromEntries(Object.entries(n).map((([e,n])=>r&&r!==e?[e,n]:[e,n.map(((n,r)=>a&&a!==r?n:{cells:n.cells.map(((n,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:e,columnIndex:a,rowIndex:r},t)?o(n):n))}))])))}function RS(e,{sectionName:t,rowIndex:o,columnCount:n}){const r=function(e){return FS(e.head)?FS(e.body)?FS(e.foot)?void 0:e.foot[0]:e.body[0]:e.head[0]}(e),a=void 0===n?r?.cells?.length:n;return a?{[t]:[...e[t].slice(0,o),{cells:Array.from({length:a}).map(((e,o)=>{const n=r?.cells?.[o]??{};return{...Object.fromEntries(Object.entries(n).filter((([e])=>LS.includes(e)))),content:"",tag:"head"===t?"th":"td"}}))},...e[t].slice(o)]}:e}function VS(e,t){if(!FS(e[t]))return{[t]:[]};return RS(e,{sectionName:t,rowIndex:0,columnCount:e.body?.[0]?.cells?.length??1})}function FS(e){return!e||!e.length||e.every(ES)}function ES(e){return!(e.cells&&e.cells.length)}const OS=[{icon:SS,title:(0,pt.__)("Align column left"),align:"left"},{icon:BS,title:(0,pt.__)("Align column center"),align:"center"},{icon:TS,title:(0,pt.__)("Align column right"),align:"right"}],GS={head:(0,pt.__)("Header cell text"),body:(0,pt.__)("Body cell text"),foot:(0,pt.__)("Footer cell text")},$S={head:(0,pt.__)("Header label"),foot:(0,pt.__)("Footer label")};function US({name:e,...t}){const o=`t${e}`;return(0,it.jsx)(o,{...t})}var qS=function({attributes:e,setAttributes:t,insertBlocksAfter:o,isSelected:n}){const{hasFixedLayout:r,head:a,foot:i}=e,[s,l]=(0,gt.useState)(2),[c,u]=(0,gt.useState)(2),[d,p]=(0,gt.useState)(),m=(0,ct.__experimentalUseColorProps)(e),g=(0,ct.__experimentalUseBorderProps)(e),h=(0,ct.useBlockEditingMode)(),_=(0,gt.useRef)(),[x,b]=(0,gt.useState)(!1),f=vt();function y(o){d&&t(HS(e,d,(e=>({...e,content:o}))))}function v(o){if(!d)return;const{sectionName:n,rowIndex:r}=d,a=r+o;t(RS(e,{sectionName:n,rowIndex:a})),p({sectionName:n,rowIndex:a,columnIndex:0,type:"cell"})}function k(o=0){if(!d)return;const{columnIndex:n}=d,r=n+o;t(function(e,{columnIndex:t}){const o=Object.fromEntries(Object.entries(e).filter((([e])=>["head","body","foot"].includes(e))));return Object.fromEntries(Object.entries(o).map((([e,o])=>FS(o)?[e,o]:[e,o.map((o=>ES(o)||o.cells.length<t?o:{cells:[...o.cells.slice(0,t),{content:"",tag:"head"===e?"th":"td"},...o.cells.slice(t)]}))])))}(e,{columnIndex:r})),p({rowIndex:0,columnIndex:r,type:"cell"})}(0,gt.useEffect)((()=>{n||p()}),[n]),(0,gt.useEffect)((()=>{x&&(_?.current?.querySelector('td div[contentEditable="true"]')?.focus(),b(!1))}),[x]);const w=["head","body","foot"].filter((t=>!FS(e[t]))),C=[{icon:NS,title:(0,pt.__)("Insert row before"),isDisabled:!d,onClick:function(){v(0)}},{icon:PS,title:(0,pt.__)("Insert row after"),isDisabled:!d,onClick:function(){v(1)}},{icon:IS,title:(0,pt.__)("Delete row"),isDisabled:!d,onClick:function(){if(!d)return;const{sectionName:o,rowIndex:n}=d;p(),t(function(e,{sectionName:t,rowIndex:o}){return{[t]:e[t].filter(((e,t)=>t!==o))}}(e,{sectionName:o,rowIndex:n}))}},{icon:DS,title:(0,pt.__)("Insert column before"),isDisabled:!d,onClick:function(){k(0)}},{icon:MS,title:(0,pt.__)("Insert column after"),isDisabled:!d,onClick:function(){k(1)}},{icon:zS,title:(0,pt.__)("Delete column"),isDisabled:!d,onClick:function(){if(!d)return;const{sectionName:o,columnIndex:n}=d;p(),t(function(e,{columnIndex:t}){const o=Object.fromEntries(Object.entries(e).filter((([e])=>["head","body","foot"].includes(e))));return Object.fromEntries(Object.entries(o).map((([e,o])=>FS(o)?[e,o]:[e,o.map((e=>({cells:e.cells.length>=t?e.cells.filter(((e,o)=>o!==t)):e.cells}))).filter((e=>e.cells.length))])))}(e,{sectionName:o,columnIndex:n}))}}],j=w.map((t=>(0,it.jsx)(US,{name:t,children:e[t].map((({cells:e},o)=>(0,it.jsx)("tr",{children:e.map((({content:e,tag:n,scope:r,align:a,colspan:i,rowspan:s},l)=>(0,it.jsx)(n,{scope:"th"===n?r:void 0,colSpan:i,rowSpan:s,className:Dt({[`has-text-align-${a}`]:a},"wp-block-table__cell-content"),children:(0,it.jsx)(ct.RichText,{value:e,onChange:y,onFocus:()=>{p({sectionName:t,rowIndex:o,columnIndex:l,type:"cell"})},"aria-label":GS[t],placeholder:$S[t]})},l)))},o)))},t))),S=!w.length;return(0,it.jsxs)("figure",{...(0,ct.useBlockProps)({ref:_}),children:[!S&&"default"===h&&(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.BlockControls,{group:"block",children:(0,it.jsx)(ct.AlignmentControl,{label:(0,pt.__)("Change column alignment"),alignmentControls:OS,value:function(){if(d)return function(e,t,o){const{sectionName:n,rowIndex:r,columnIndex:a}=t;return e[n]?.[r]?.cells?.[a]?.[o]}(e,d,"align")}(),onChange:o=>function(o){if(!d)return;const n={type:"column",columnIndex:d.columnIndex},r=HS(e,n,(e=>({...e,align:o})));t(r)}(o)})}),(0,it.jsx)(ct.BlockControls,{group:"other",children:(0,it.jsx)(mt.ToolbarDropdownMenu,{icon:AS,label:(0,pt.__)("Edit table"),controls:C})})]}),(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{t({hasFixedLayout:!0,head:[],foot:[]})},dropdownMenuProps:f,children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!0!==r,label:(0,pt.__)("Fixed width table cells"),onDeselect:()=>t({hasFixedLayout:!0}),isShownByDefault:!0,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Fixed width table cells"),checked:!!r,onChange:function(){t({hasFixedLayout:!r})}})}),!S&&(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>a&&a.length,label:(0,pt.__)("Header section"),onDeselect:()=>t({head:[]}),isShownByDefault:!0,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Header section"),checked:!(!a||!a.length),onChange:function(){t(VS(e,"head"))}})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>i&&i.length,label:(0,pt.__)("Footer section"),onDeselect:()=>t({foot:[]}),isShownByDefault:!0,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Footer section"),checked:!(!i||!i.length),onChange:function(){t(VS(e,"foot"))}})})]})]})}),!S&&(0,it.jsx)("table",{className:Dt(m.className,g.className,{"has-fixed-layout":r,"has-individual-borders":(0,mt.__experimentalHasSplitBorders)(e?.style?.border)}),style:{...m.style,...g.style},children:j}),S?(0,it.jsx)(mt.Placeholder,{label:(0,pt.__)("Table"),icon:(0,it.jsx)(ct.BlockIcon,{icon:hS,showColors:!0}),instructions:(0,pt.__)("Insert a table for sharing data."),children:(0,it.jsxs)("form",{className:"blocks-table__placeholder-form",onSubmit:function(e){e.preventDefault(),t(function({rowCount:e,columnCount:t}){return{body:Array.from({length:e}).map((()=>({cells:Array.from({length:t}).map((()=>({content:"",tag:"td"})))})))}}({rowCount:parseInt(s,10)||2,columnCount:parseInt(c,10)||2})),b(!0)},children:[(0,it.jsx)(mt.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,type:"number",label:(0,pt.__)("Column count"),value:c,onChange:function(e){u(e)},min:"1",className:"blocks-table__placeholder-input"}),(0,it.jsx)(mt.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,type:"number",label:(0,pt.__)("Row count"),value:s,onChange:function(e){l(e)},min:"1",className:"blocks-table__placeholder-input"}),(0,it.jsx)(mt.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",children:(0,pt.__)("Create Table")})]})}):(0,it.jsx)(zo,{attributes:e,setAttributes:t,isSelected:n,insertBlocksAfter:o,label:(0,pt.__)("Table caption text"),showToolbarButton:n&&"default"===h})]})};const WS=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"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":true},"caption":{"type":"rich-text","source":"rich-text","selector":"figcaption","role":"content"},"head":{"type":"array","default":[],"source":"query","selector":"thead tr","query":{"cells":{"type":"array","default":[],"source":"query","selector":"td,th","query":{"content":{"type":"rich-text","source":"rich-text","role":"content"},"tag":{"type":"string","default":"td","source":"tag"},"scope":{"type":"string","source":"attribute","attribute":"scope"},"align":{"type":"string","source":"attribute","attribute":"data-align"},"colspan":{"type":"string","source":"attribute","attribute":"colspan"},"rowspan":{"type":"string","source":"attribute","attribute":"rowspan"}}}}},"body":{"type":"array","default":[],"source":"query","selector":"tbody tr","query":{"cells":{"type":"array","default":[],"source":"query","selector":"td,th","query":{"content":{"type":"rich-text","source":"rich-text","role":"content"},"tag":{"type":"string","default":"td","source":"tag"},"scope":{"type":"string","source":"attribute","attribute":"scope"},"align":{"type":"string","source":"attribute","attribute":"data-align"},"colspan":{"type":"string","source":"attribute","attribute":"colspan"},"rowspan":{"type":"string","source":"attribute","attribute":"rowspan"}}}}},"foot":{"type":"array","default":[],"source":"query","selector":"tfoot tr","query":{"cells":{"type":"array","default":[],"source":"query","selector":"td,th","query":{"content":{"type":"rich-text","source":"rich-text","role":"content"},"tag":{"type":"string","default":"td","source":"tag"},"scope":{"type":"string","source":"attribute","attribute":"scope"},"align":{"type":"string","source":"attribute","attribute":"data-align"},"colspan":{"type":"string","source":"attribute","attribute":"colspan"},"rowspan":{"type":"string","source":"attribute","attribute":"rowspan"}}}}}},"supports":{"anchor":true,"align":true,"color":{"__experimentalSkipSerialization":true,"gradients":true,"__experimentalDefaultControls":{"background":true,"text":true}},"spacing":{"margin":true,"padding":true,"__experimentalDefaultControls":{"margin":false,"padding":false}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontStyle":true,"__experimentalFontWeight":true,"__experimentalLetterSpacing":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalDefaultControls":{"fontSize":true}},"__experimentalBorder":{"__experimentalSkipSerialization":true,"color":true,"style":true,"width":true,"__experimentalDefaultControls":{"color":true,"style":true,"width":true}},"interactivity":{"clientNavigation":true}},"selectors":{"root":".wp-block-table > table","spacing":".wp-block-table"},"styles":[{"name":"regular","label":"Default","isDefault":true},{"name":"stripes","label":"Stripes"}],"editorStyle":"wp-block-table-editor","style":"wp-block-table"}');function ZS(e){const t=parseInt(e,10);if(Number.isInteger(t))return t<0||1===t?void 0:t.toString()}const JS=({phrasingContentSchema:e})=>({tr:{allowEmpty:!0,children:{th:{allowEmpty:!0,children:e,attributes:["scope","colspan","rowspan","style"]},td:{allowEmpty:!0,children:e,attributes:["colspan","rowspan","style"]}}}}),QS={from:[{type:"raw",selector:"table",schema:e=>({table:{children:{thead:{allowEmpty:!0,children:JS(e)},tfoot:{allowEmpty:!0,children:JS(e)},tbody:{allowEmpty:!0,children:JS(e)}}}}),transform:e=>{const t=Array.from(e.children).reduce(((e,t)=>{if(!t.children.length)return e;const o=t.nodeName.toLowerCase().slice(1),n=Array.from(t.children).reduce(((e,t)=>{if(!t.children.length)return e;const o=Array.from(t.children).reduce(((e,t)=>{const o=ZS(t.getAttribute("rowspan")),n=ZS(t.getAttribute("colspan")),{textAlign:r}=t.style||{};let a;return"left"!==r&&"center"!==r&&"right"!==r||(a=r),e.push({tag:t.nodeName.toLowerCase(),content:t.innerHTML,rowspan:o,colspan:n,align:a}),e}),[]);return e.push({cells:o}),e}),[]);return e[o]=n,e}),{});return(0,st.createBlock)("core/table",t)}}]};var KS=QS;const{name:YS}=WS,XS={icon:hS,example:{attributes:{head:[{cells:[{content:(0,pt.__)("Version"),tag:"th"},{content:(0,pt.__)("Jazz Musician"),tag:"th"},{content:(0,pt.__)("Release Date"),tag:"th"}]}],body:[{cells:[{content:"5.2",tag:"td"},{content:(0,pt.__)("Jaco Pastorius"),tag:"td"},{content:(0,pt.__)("May 7, 2019"),tag:"td"}]},{cells:[{content:"5.1",tag:"td"},{content:(0,pt.__)("Betty Carter"),tag:"td"},{content:(0,pt.__)("February 21, 2019"),tag:"td"}]},{cells:[{content:"5.0",tag:"td"},{content:(0,pt.__)("Bebo Valdés"),tag:"td"},{content:(0,pt.__)("December 6, 2018"),tag:"td"}]}]},viewportWidth:450},transforms:KS,edit:qS,save:function({attributes:e}){const{hasFixedLayout:t,head:o,body:n,foot:r,caption:a}=e;if(!o.length&&!n.length&&!r.length)return null;const i=(0,ct.__experimentalGetColorClassesAndStyles)(e),s=(0,ct.__experimentalGetBorderClassesAndStyles)(e),l=Dt(i.className,s.className,{"has-fixed-layout":t}),c=!ct.RichText.isEmpty(a),u=({type:e,rows:t})=>{if(!t.length)return null;const o=`t${e}`;return(0,it.jsx)(o,{children:t.map((({cells:e},t)=>(0,it.jsx)("tr",{children:e.map((({content:e,tag:t,scope:o,align:n,colspan:r,rowspan:a},i)=>{const s=Dt({[`has-text-align-${n}`]:n});return(0,it.jsx)(ct.RichText.Content,{className:s||void 0,"data-align":n,tagName:t,value:e,scope:"th"===t?o:void 0,colSpan:r,rowSpan:a},i)}))},t)))})};return(0,it.jsxs)("figure",{...ct.useBlockProps.save(),children:[(0,it.jsxs)("table",{className:""===l?void 0:l,style:{...i.style,...s.style},children:[(0,it.jsx)(u,{type:"head",rows:o}),(0,it.jsx)(u,{type:"body",rows:n}),(0,it.jsx)(u,{type:"foot",rows:r})]}),c&&(0,it.jsx)(ct.RichText.Content,{tagName:"figcaption",value:a,className:(0,ct.__experimentalGetElementClassName)("caption")})]})},deprecated:jS},eB=()=>jt({name:YS,metadata:WS,settings:XS});var tB=(0,it.jsxs)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,it.jsx)(St.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M20 9.484h-8.889v-1.5H20v1.5Zm0 7h-4.889v-1.5H20v1.5Zm-14 .032a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm0 1a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z"}),(0,it.jsx)(St.Path,{d:"M13 15.516a2 2 0 1 1-4 0 2 2 0 0 1 4 0ZM8 8.484a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z"})]});const oB=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"__experimental":true,"name":"core/table-of-contents","title":"Table of Contents","category":"design","description":"Summarize your post with a list of headings. Add HTML anchors to Heading blocks to link them here.","keywords":["document outline","summary"],"textdomain":"default","attributes":{"headings":{"type":"array","items":{"type":"object"},"default":[]},"onlyIncludeCurrentPage":{"type":"boolean","default":false},"maxLevel":{"type":"number"},"ordered":{"type":"boolean","default":true}},"supports":{"ariaLabel":true,"html":false,"color":{"text":true,"background":true,"gradients":true,"link":true},"spacing":{"margin":true,"padding":true},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true,"__experimentalDefaultControls":{"radius":true,"color":true,"width":true,"style":true}}},"style":"wp-block-table-of-contents"}'),nB="wp-block-table-of-contents__entry";function rB({nestedHeadingList:e,disableLinkActivation:t,onClick:o,ordered:n=!0}){return(0,it.jsx)(it.Fragment,{children:e.map(((e,r)=>{const{content:a,link:i}=e.heading,s=i?(0,it.jsx)("a",{className:nB,href:i,"aria-disabled":t||void 0,onClick:t&&"function"==typeof o?o:void 0,children:a}):(0,it.jsx)("span",{className:nB,children:a}),l=n?"ol":"ul";return(0,it.jsxs)("li",{children:[s,e.children?(0,it.jsx)(l,{children:(0,it.jsx)(rB,{nestedHeadingList:e.children,disableLinkActivation:t,onClick:t&&"function"==typeof o?o:void 0,ordered:n})}):null]},r)}))})}function aB(e){const t=[];return e.forEach(((o,n)=>{if(""!==o.content&&o.level===e[0].level)if(e[n+1]?.level>o.level){let r=e.length;for(let t=n+1;t<e.length;t++)if(e[t].level===o.level){r=t;break}t.push({heading:o,children:aB(e.slice(n+1,r))})}else t.push({heading:o,children:null})})),t}var iB=r(7734),sB=r.n(iB);function lB(e,t,o){const{getBlockAttributes:n}=e(ct.store),{updateBlockAttributes:r,__unstableMarkNextChangeAsNotPersistent:a}=t(ct.store),i=n(o);if(null===i)return;const s=function(e,t){const{getBlockAttributes:o,getBlockName:n,getBlocksByName:r,getClientIdsOfDescendants:a}=e(ct.store),i=e("core/editor").getPermalink()??null,s=0!==r("core/nextpage").length,{onlyIncludeCurrentPage:l,maxLevel:c}=o(t)??{},[u=""]=r("core/post-content"),d=a(u);let p=1;if(s&&l){const e=d.indexOf(t);for(const[t,o]of d.entries()){if(t>=e)break;"core/nextpage"===n(o)&&p++}}const m=[];let g=1,h=null;"string"==typeof i&&(h=s?(0,no.addQueryArgs)(i,{page:g}):i);for(const e of d){const t=n(e);if("core/nextpage"===t){if(g++,l&&g>p)break;"string"==typeof i&&(h=(0,no.addQueryArgs)((0,no.removeQueryArgs)(i,["page"]),{page:g}))}else if((!l||g===p)&&"core/heading"===t){const t=o(e);if(c&&t.level>c)continue;const n="string"==typeof h&&"string"==typeof t.anchor&&""!==t.anchor;m.push({content:(0,lu.__unstableStripHTML)(t.content.replace(/(<br *\/?>)+/g," ")),level:t.level,link:n?`${h}#${t.anchor}`:null})}}return m}(e,o);sB()(s,i.headings)||window.queueMicrotask((()=>{a(),r(o,{headings:s})}))}const{name:cB}=oB,uB={icon:tB,edit:function e({attributes:{headings:t=[],onlyIncludeCurrentPage:o,maxLevel:n,ordered:r=!0},clientId:a,setAttributes:i}){!function(e){const t=(0,lt.useRegistry)();(0,gt.useEffect)((()=>t.subscribe((()=>lB(t.select,t.dispatch,e)))),[t,e])}(a);const s=(0,ct.useBlockProps)(),l=(0,xt.useInstanceId)(e,"table-of-contents"),{createWarningNotice:c}=(0,lt.useDispatch)(bo.store),u=(0,lt.useSelect)((e=>{const{getBlockRootClientId:t,canInsertBlockType:o}=e(ct.store);return o("core/list",t(a))}),[a]),{replaceBlocks:d}=(0,lt.useDispatch)(ct.store),p=vt(),m=aB(t),g=(0,it.jsxs)(ct.BlockControls,{children:[(0,it.jsxs)(mt.ToolbarGroup,{children:[(0,it.jsx)(mt.ToolbarButton,{icon:(0,pt.isRTL)()?$m:Um,title:(0,pt.__)("Unordered"),description:(0,pt.__)("Convert to unordered list"),onClick:()=>i({ordered:!1}),isActive:!1===r}),(0,it.jsx)(mt.ToolbarButton,{icon:(0,pt.isRTL)()?qm:Wm,title:(0,pt.__)("Ordered"),description:(0,pt.__)("Convert to ordered list"),onClick:()=>i({ordered:!0}),isActive:!0===r})]}),u&&(0,it.jsx)(mt.ToolbarGroup,{children:(0,it.jsx)(mt.ToolbarButton,{onClick:()=>d(a,(0,st.createBlock)("core/list",{ordered:r,values:(0,gt.renderToString)((0,it.jsx)(rB,{nestedHeadingList:m,ordered:r}))})),children:(0,pt.__)("Convert to static list")})})]}),h=(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{i({onlyIncludeCurrentPage:!1,maxLevel:void 0,ordered:!0})},dropdownMenuProps:p,children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!!o,label:(0,pt.__)("Only include current page"),onDeselect:()=>i({onlyIncludeCurrentPage:!1}),isShownByDefault:!0,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Only include current page"),checked:o,onChange:e=>i({onlyIncludeCurrentPage:e}),help:o?(0,pt.__)("Only including headings from the current page (if the post is paginated)."):(0,pt.__)("Include headings from all pages (if the post is paginated).")})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!!n,label:(0,pt.__)("Limit heading levels"),onDeselect:()=>i({maxLevel:void 0}),isShownByDefault:!0,children:(0,it.jsx)(mt.SelectControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,pt.__)("Include headings down to level"),value:n||"",options:[{value:"",label:(0,pt.__)("All levels")},{value:"1",label:(0,pt.__)("Heading 1")},{value:"2",label:(0,pt.__)("Heading 2")},{value:"3",label:(0,pt.__)("Heading 3")},{value:"4",label:(0,pt.__)("Heading 4")},{value:"5",label:(0,pt.__)("Heading 5")},{value:"6",label:(0,pt.__)("Heading 6")}],onChange:e=>i({maxLevel:e?parseInt(e):void 0}),help:n?(0,pt.__)("Only include headings up to and including this level."):(0,pt.__)("Including all heading levels in the table of contents.")})})]})});if(0===t.length)return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)("div",{...s,children:(0,it.jsx)(mt.Placeholder,{icon:(0,it.jsx)(ct.BlockIcon,{icon:tB}),label:(0,pt.__)("Table of Contents"),instructions:(0,pt.__)("Start adding Heading blocks to create a table of contents. Headings with HTML anchors will be linked here.")})}),h]});const _=r?"ol":"ul";return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)("nav",{...s,children:(0,it.jsx)(_,{children:(0,it.jsx)(rB,{nestedHeadingList:m,disableLinkActivation:!0,onClick:e=>{e.preventDefault(),c((0,pt.__)("Links are disabled in the editor."),{id:`block-library/core/table-of-contents/redirection-prevented/${l}`,type:"snackbar"})},ordered:r})})}),g,h]})},save:function({attributes:{headings:e=[],ordered:t=!0}}){if(0===e.length)return null;const o=t?"ol":"ul";return(0,it.jsx)("nav",{...ct.useBlockProps.save(),children:(0,it.jsx)(o,{children:(0,it.jsx)(rB,{nestedHeadingList:aB(e),ordered:t})})})},example:{innerBlocks:[{name:"core/heading",attributes:{level:2,content:(0,pt.__)("Heading")}},{name:"core/heading",attributes:{level:3,content:(0,pt.__)("Subheading")}},{name:"core/heading",attributes:{level:2,content:(0,pt.__)("Heading")}},{name:"core/heading",attributes:{level:3,content:(0,pt.__)("Subheading")}}],attributes:{headings:[{content:(0,pt.__)("Heading"),level:2},{content:(0,pt.__)("Subheading"),level:3},{content:(0,pt.__)("Heading"),level:2},{content:(0,pt.__)("Subheading"),level:3}]}}},dB=()=>jt({name:cB,metadata:oB,settings:uB});var pB={from:[{type:"block",blocks:["core/categories"],transform:()=>(0,st.createBlock)("core/tag-cloud")}],to:[{type:"block",blocks:["core/categories"],transform:()=>(0,st.createBlock)("core/categories")}]};const mB=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/tag-cloud","title":"Tag Cloud","category":"widgets","description":"A cloud of popular keywords, each sized by how often it appears.","textdomain":"default","attributes":{"numberOfTags":{"type":"number","default":45,"minimum":1,"maximum":100},"taxonomy":{"type":"string","default":"post_tag"},"showTagCounts":{"type":"boolean","default":false},"smallestFontSize":{"type":"string","default":"8pt"},"largestFontSize":{"type":"string","default":"22pt"}},"styles":[{"name":"default","label":"Default","isDefault":true},{"name":"outline","label":"Outline"}],"supports":{"html":false,"align":true,"spacing":{"margin":true,"padding":true},"typography":{"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalLetterSpacing":true},"interactivity":{"clientNavigation":true},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true,"__experimentalDefaultControls":{"radius":true,"color":true,"width":true,"style":true}}},"editorStyle":"wp-block-tag-cloud-editor"}');var gB=function({attributes:e,setAttributes:t}){const{taxonomy:o,showTagCounts:n,numberOfTags:r,smallestFontSize:a,largestFontSize:i}=e,[s]=(0,ct.useSettings)("spacing.units"),l=vt(),c=(0,mt.__experimentalUseCustomUnits)({availableUnits:s?[...s,"pt"]:["%","px","em","rem","pt"]}),u=(0,lt.useSelect)((e=>e(_t.store).getTaxonomies({per_page:-1})),[]),d=(e,o)=>{const[n,r]=(0,mt.__experimentalParseQuantityAndUnitFromRawValue)(o);if(!Number.isFinite(n))return;const s={[e]:o};Object.entries({smallestFontSize:a,largestFontSize:i}).forEach((([t,o])=>{const[n,a]=(0,mt.__experimentalParseQuantityAndUnitFromRawValue)(o);t!==e&&a!==r&&(s[t]=`${n}${r}`)})),t(s)},p={...e,style:{...e?.style,border:void 0}},m=(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{t({taxonomy:"post_tag",showTagCounts:!1,numberOfTags:45,smallestFontSize:"8pt",largestFontSize:"22pt"})},dropdownMenuProps:l,children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>"post_tag"!==o,label:(0,pt.__)("Taxonomy"),onDeselect:()=>t({taxonomy:"post_tag"}),isShownByDefault:!0,children:(0,it.jsx)(mt.SelectControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,pt.__)("Taxonomy"),options:[{label:(0,pt.__)("- Select -"),value:"",disabled:!0},...(u??[]).filter((e=>!!e.show_cloud)).map((e=>({value:e.slug,label:e.name})))],value:o,onChange:e=>t({taxonomy:e})})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>"8pt"!==a||"22pt"!==i,label:(0,pt.__)("Font size"),onDeselect:()=>t({smallestFontSize:"8pt",largestFontSize:"22pt"}),isShownByDefault:!0,children:(0,it.jsxs)(mt.Flex,{gap:4,children:[(0,it.jsx)(mt.FlexItem,{isBlock:!0,children:(0,it.jsx)(mt.__experimentalUnitControl,{label:(0,pt.__)("Smallest size"),value:a,onChange:e=>{d("smallestFontSize",e)},units:c,min:.1,max:100,size:"__unstable-large"})}),(0,it.jsx)(mt.FlexItem,{isBlock:!0,children:(0,it.jsx)(mt.__experimentalUnitControl,{label:(0,pt.__)("Largest size"),value:i,onChange:e=>{d("largestFontSize",e)},units:c,min:.1,max:100,size:"__unstable-large"})})]})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>45!==r,label:(0,pt.__)("Number of tags"),onDeselect:()=>t({numberOfTags:45}),isShownByDefault:!0,children:(0,it.jsx)(mt.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,pt.__)("Number of tags"),value:r,onChange:e=>t({numberOfTags:e}),min:1,max:100,required:!0})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!1!==n,label:(0,pt.__)("Show tag counts"),onDeselect:()=>t({showTagCounts:!1}),isShownByDefault:!0,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Show tag counts"),checked:n,onChange:()=>t({showTagCounts:!n})})})]})});return(0,it.jsxs)(it.Fragment,{children:[m,(0,it.jsx)("div",{...(0,ct.useBlockProps)(),children:(0,it.jsx)(mt.Disabled,{children:(0,it.jsx)(dt(),{skipBlockSupportAttributes:!0,block:"core/tag-cloud",attributes:p})})})]})};const{name:hB}=mB,_B={icon:Ax,example:{},edit:gB,transforms:pB},xB=()=>jt({name:hB,metadata:mB,settings:_B});var bB=function(){return bB=Object.assign||function(e){for(var t,o=1,n=arguments.length;o<n;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},bB.apply(this,arguments)};Object.create;Object.create;"function"==typeof SuppressedError&&SuppressedError;function fB(e){return e.toLowerCase()}var yB=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],vB=/[^A-Z0-9]+/gi;function kB(e,t){void 0===t&&(t={});for(var o=t.splitRegexp,n=void 0===o?yB:o,r=t.stripRegexp,a=void 0===r?vB:r,i=t.transform,s=void 0===i?fB:i,l=t.delimiter,c=void 0===l?" ":l,u=wB(wB(e,n,"$1\0$2"),a,"\0"),d=0,p=u.length;"\0"===u.charAt(d);)d++;for(;"\0"===u.charAt(p-1);)p--;return u.slice(d,p).split("\0").map(s).join(c)}function wB(e,t,o){return t instanceof RegExp?e.replace(t,o):t.reduce((function(e,t){return e.replace(t,o)}),e)}function CB(e){return function(e){return e.charAt(0).toUpperCase()+e.substr(1)}(e.toLowerCase())}const jB=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"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":true,"html":false,"reusable":false,"renaming":false,"interactivity":{"clientNavigation":true}},"editorStyle":"wp-block-template-part-editor"}');function SB(e,t){return void 0===t&&(t={}),function(e,t){return void 0===t&&(t={}),kB(e,bB({delimiter:"."},t))}(e,bB({delimiter:"-"},t))}function BB(e,t){const{templateParts:o,isResolving:n}=(0,lt.useSelect)((e=>{const{getEntityRecords:t,isResolving:o}=e(_t.store),n={per_page:-1};return{templateParts:t("postType","wp_template_part",n),isResolving:o("getEntityRecords",["postType","wp_template_part",n])}}),[]);return{templateParts:(0,gt.useMemo)((()=>o&&o.filter((o=>y_(o.theme,o.slug)!==t&&(!e||"uncategorized"===e||o.area===e)))||[]),[o,e,t]),isResolving:n}}function TB(e,t){return(0,lt.useSelect)((o=>{const n=e?`core/template-part/${e}`:"core/template-part",{getBlockRootClientId:r,getPatternsByBlockTypes:a}=o(ct.store);return a(n,r(t))}),[e,t])}function NB(e,t){const{saveEntityRecord:o}=(0,lt.useDispatch)(_t.store);return async(n=[],r=(0,pt.__)("Untitled Template Part"))=>{const a={title:r,slug:SB(r).replace(/[^\w-]+/g,"")||"wp-custom-part",content:(0,st.serialize)(n),area:e},i=await o("postType","wp_template_part",a);t({slug:i.slug,theme:i.theme,area:void 0})}}function PB(e){return(0,lt.useSelect)((t=>{const o=t(_t.store).getCurrentTheme()?.default_template_part_areas||[],n=o.find((t=>t.area===e)),r=o.find((e=>"uncategorized"===e.area));return{icon:n?.icon||r?.icon,label:n?.label||(0,pt.__)("Template Part"),tagName:n?.area_tag??"div"}}),[e])}function IB({areaLabel:e,onClose:t,onSubmit:o}){const[n,r]=(0,gt.useState)("");return(0,it.jsx)(mt.Modal,{title:(0,pt.sprintf)((0,pt.__)("Create new %s"),e.toLowerCase()),onRequestClose:t,focusOnMount:"firstContentElement",size:"small",children:(0,it.jsx)("form",{onSubmit:e=>{e.preventDefault(),o(n)},children:(0,it.jsxs)(mt.__experimentalVStack,{spacing:"5",children:[(0,it.jsx)(mt.TextControl,{label:(0,pt.__)("Name"),value:n,onChange:r,placeholder:(0,pt.__)("Custom Template Part"),__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0}),(0,it.jsxs)(mt.__experimentalHStack,{justify:"right",children:[(0,it.jsx)(mt.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:()=>{t(),r("")},children:(0,pt.__)("Cancel")}),(0,it.jsx)(mt.Button,{variant:"primary",type:"submit",accessibleWhenDisabled:!0,disabled:!n.length,__next40pxDefaultSize:!0,children:(0,pt.__)("Create")})]})]})})})}function DB({area:e,clientId:t,templatePartId:o,onOpenSelectionModal:n,setAttributes:r}){const{templateParts:a,isResolving:i}=BB(e,o),s=TB(e,t),{isBlockBasedTheme:l,canCreateTemplatePart:c}=(0,lt.useSelect)((e=>{const{getCurrentTheme:t,canUser:o}=e(_t.store);return{isBlockBasedTheme:t()?.is_block_theme,canCreateTemplatePart:o("create",{kind:"postType",name:"wp_template_part"})}}),[]),[u,d]=(0,gt.useState)(!1),p=PB(e),m=NB(e,r);return(0,it.jsxs)(mt.Placeholder,{icon:j_(p.icon),label:p.label,instructions:l?(0,pt.sprintf)((0,pt.__)("Choose an existing %s or create a new one."),p.label.toLowerCase()):(0,pt.sprintf)((0,pt.__)("Choose an existing %s."),p.label.toLowerCase()),children:[i&&(0,it.jsx)(mt.Spinner,{}),!i&&!(!a.length&&!s.length)&&(0,it.jsx)(mt.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:n,children:(0,pt.__)("Choose")}),!i&&l&&c&&(0,it.jsx)(mt.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:()=>{d(!0)},children:(0,pt.__)("Start blank")}),u&&(0,it.jsx)(IB,{areaLabel:p.label,onClose:()=>d(!1),onSubmit:e=>{m([],e)}})]})}function MB({setAttributes:e,onClose:t,templatePartId:o=null,area:n,clientId:r}){const[a,i]=(0,gt.useState)(""),{templateParts:s}=BB(n,o),l=(0,gt.useMemo)((()=>Bk(s.map((e=>function(e){return{name:y_(e.theme,e.slug),title:e.title.rendered,blocks:(0,st.parse)(e.content.raw),templatePart:e}}(e))),a)),[s,a]),c=TB(n,r),u=(0,gt.useMemo)((()=>Bk(c,a)),[c,a]),{createSuccessNotice:d}=(0,lt.useDispatch)(bo.store),p=!!l.length,m=!!u.length;return(0,it.jsxs)("div",{className:"block-library-template-part__selection-content",children:[(0,it.jsx)("div",{className:"block-library-template-part__selection-search",children:(0,it.jsx)(mt.SearchControl,{__nextHasNoMarginBottom:!0,onChange:i,value:a,label:(0,pt.__)("Search"),placeholder:(0,pt.__)("Search")})}),p&&(0,it.jsxs)("div",{children:[(0,it.jsx)("h2",{children:(0,pt.__)("Existing template parts")}),(0,it.jsx)(ct.__experimentalBlockPatternsList,{blockPatterns:l,onClickPattern:o=>{var n;n=o.templatePart,e({slug:n.slug,theme:n.theme,area:void 0}),d((0,pt.sprintf)((0,pt.__)('Template Part "%s" inserted.'),n.title?.rendered||n.slug),{type:"snackbar"}),t()}})]}),!p&&!m&&(0,it.jsx)(mt.__experimentalHStack,{alignment:"center",children:(0,it.jsx)("p",{children:(0,pt.__)("No results found.")})})]})}function zB(e){const t=(0,st.getPossibleBlockTransformations)([e]).filter((e=>{if(!e.transforms)return!0;const t=e.transforms?.from?.find((e=>e.blocks&&e.blocks.includes("*"))),o=e.transforms?.to?.find((e=>e.blocks&&e.blocks.includes("*")));return!t&&!o}));if(t.length)return(0,st.switchToBlockType)(e,t[0].name)}function AB(e=[]){return e.flatMap((e=>"core/legacy-widget"===e.name?zB(e):(0,st.createBlock)(e.name,e.attributes,AB(e.innerBlocks)))).filter((e=>!!e))}const LB={per_page:-1,_fields:"id,name,description,status,widgets"};function HB({area:e,setAttributes:t}){const[o,n]=(0,gt.useState)(""),[r,a]=(0,gt.useState)(!1),i=(0,lt.useRegistry)(),{sidebars:s,hasResolved:l}=(0,lt.useSelect)((e=>{const{getSidebars:t,hasFinishedResolution:o}=e(_t.store);return{sidebars:t(LB),hasResolved:o("getSidebars",[LB])}}),[]),{createErrorNotice:c}=(0,lt.useDispatch)(bo.store),u=NB(e,t),d=(0,gt.useMemo)((()=>{const e=(s??[]).filter((e=>"wp_inactive_widgets"!==e.id&&e.widgets.length>0)).map((e=>({value:e.id,label:e.name})));return e.length?[{value:"",label:(0,pt.__)("Select widget area")},...e]:[]}),[s]);if(!l)return(0,it.jsx)(mt.__experimentalSpacer,{marginBottom:"0"});if(l&&!d.length)return null;return(0,it.jsx)(mt.__experimentalSpacer,{marginBottom:"4",children:(0,it.jsxs)(mt.__experimentalHStack,{as:"form",onSubmit:async function(e){if(e.preventDefault(),r||!o)return;a(!0);const t=d.find((({value:e})=>e===o)),{getWidgets:n}=i.resolveSelect(_t.store),s=await n({sidebar:t.value,_embed:"about"}),l=new Set,p=s.flatMap((e=>{const t=function(e){if("block"!==e.id_base){let t;return t=e._embedded.about[0].is_multi?{idBase:e.id_base,instance:e.instance}:{id:e.id},zB((0,st.createBlock)("core/legacy-widget",t))}const t=(0,st.parse)(e.instance.raw.content,{__unstableSkipAutop:!0});if(!t.length)return;const o=t[0];return"core/widget-group"===o.name?(0,st.createBlock)((0,st.getGroupingBlockName)(),void 0,AB(o.innerBlocks)):o.innerBlocks.length>0?(0,st.cloneBlock)(o,void 0,AB(o.innerBlocks)):o}(e);return t||(l.add(e.id_base),[])}));await u(p,(0,pt.sprintf)((0,pt.__)("Widget area: %s"),t.label)),l.size&&c((0,pt.sprintf)((0,pt.__)("Unable to import the following widgets: %s."),Array.from(l).join(", ")),{type:"snackbar"}),a(!1)},children:[(0,it.jsx)(mt.FlexBlock,{children:(0,it.jsx)(mt.SelectControl,{label:(0,pt.__)("Import widget area"),value:o,options:d,onChange:e=>n(e),disabled:!d.length,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0})}),(0,it.jsx)(mt.FlexItem,{style:{marginBottom:"8px",marginTop:"auto"},children:(0,it.jsx)(mt.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",isBusy:r,"aria-disabled":r||!o,children:(0,pt._x)("Import","button label")})})]})})}const{HTMLElementControl:RB}=jo(ct.privateApis);function VB({tagName:e,setAttributes:t,isEntityAvailable:o,templatePartId:n,defaultWrapper:r,hasInnerBlocks:a,clientId:i}){const[s,l]=(0,_t.useEntityProp)("postType","wp_template_part","area",n),[c,u]=(0,_t.useEntityProp)("postType","wp_template_part","title",n),d=(0,lt.useSelect)((e=>e(_t.store).getCurrentTheme()?.default_template_part_areas||[]),[]).map((({label:e,area:t})=>({label:e,value:t})));return(0,it.jsxs)(it.Fragment,{children:[o&&(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(mt.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("Title"),value:c,onChange:e=>{u(e)},onFocus:e=>e.target.select()}),(0,it.jsx)(mt.SelectControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("Area"),labelPosition:"top",options:d,value:s,onChange:l})]}),(0,it.jsx)(RB,{tagName:e||"",onChange:e=>t({tagName:e}),clientId:i,options:[{label:(0,pt.sprintf)((0,pt.__)("Default based on area (%s)"),`<${r}>`),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"}]}),!a&&(0,it.jsx)(HB,{area:s,setAttributes:t})]})}function FB(e){return"contentOnly"!==(0,ct.useBlockEditingMode)()&&(e?void 0:ct.InnerBlocks.ButtonBlockAppender)}function EB(e){const t=(0,lt.useSelect)((e=>{const{getSettings:t}=e(ct.store);return t()?.supportsLayout}),[]),[o]=(0,ct.useSettings)("layout");if(t)return e?.inherit?o||{}:e}function OB({postId:e,layout:t,tagName:o,blockProps:n}){(0,ct.useBlockEditingMode)("disabled");const{content:r,editedBlocks:a}=(0,lt.useSelect)((t=>{if(!e)return{};const{getEditedEntityRecord:o}=t(_t.store),n=o("postType","wp_template_part",e,{context:"view"});return{editedBlocks:n.blocks,content:n.content}}),[e]),i=(0,gt.useMemo)((()=>{if(e)return a||(r&&"string"==typeof r?(0,st.parse)(r):[])}),[e,a,r]),s=(0,ct.useInnerBlocksProps)(n,{value:i,onInput:()=>{},onChange:()=>{},renderAppender:!1,layout:EB(t)});return(0,it.jsx)(o,{...s})}function GB({postId:e,hasInnerBlocks:t,layout:o,tagName:n,blockProps:r}){const a=(0,lt.useSelect)((e=>e(ct.store).getSettings().onNavigateToEntityRecord),[]),[i,s,l]=(0,_t.useEntityBlockEditor)("postType","wp_template_part",{id:e}),c=(0,ct.useInnerBlocksProps)(r,{value:i,onInput:s,onChange:l,renderAppender:FB(t),layout:EB(o)}),u="contentOnly"===(0,ct.useBlockEditingMode)()&&a?{onDoubleClick:()=>a({postId:e,postType:"wp_template_part"})}:{};return(0,it.jsx)(n,{...c,...u})}function $B({postId:e,hasInnerBlocks:t,layout:o,tagName:n,blockProps:r}){const{canViewTemplatePart:a,canEditTemplatePart:i}=(0,lt.useSelect)((t=>({canViewTemplatePart:!!t(_t.store).canUser("read",{kind:"postType",name:"wp_template_part",id:e}),canEditTemplatePart:!!t(_t.store).canUser("update",{kind:"postType",name:"wp_template_part",id:e})})),[e]);if(!a)return null;const s=i?GB:OB;return(0,it.jsx)(s,{postId:e,hasInnerBlocks:t,layout:o,tagName:n,blockProps:r})}function UB({isEntityAvailable:e,area:t,templatePartId:o,isTemplatePartSelectionOpen:n,setIsTemplatePartSelectionOpen:r}){const{templateParts:a}=BB(t,o),i=!!a.length;return e&&i&&("header"===t||"footer"===t)?(0,it.jsx)(mt.MenuItem,{onClick:()=>{r(!0)},"aria-expanded":n,"aria-haspopup":"dialog",children:(0,pt.__)("Replace")}):null}function qB({area:e,clientId:t,isEntityAvailable:o,onSelect:n}){const r=TB(e,t);return o&&!!r.length&&("header"===e||"footer"===e)?(0,it.jsx)(mt.PanelBody,{title:(0,pt.__)("Design"),children:(0,it.jsx)(ct.__experimentalBlockPatternsList,{label:(0,pt.__)("Templates"),blockPatterns:r,onClickPattern:n,showTitlesAsTooltip:!0})}):null}function WB(e,t){if("core/template-part"!==t)return e;if(e.variations){const t=(e,t)=>{const{area:o,theme:n,slug:r}=e;if(o)return o===t.area;if(!r)return!1;const{getCurrentTheme:a,getEntityRecord:i}=(0,lt.select)(_t.store),s=i("postType","wp_template_part",`${n||a()?.stylesheet}//${r}`);return s?.slug?s.slug===t.slug:s?.area===t.area},o=e.variations.map((e=>({...e,...!e.isActive&&{isActive:t},..."string"==typeof e.icon&&{icon:j_(e.icon)}})));return{...e,variations:o}}return e}const{name:ZB}=jB,JB={icon:C_,__experimentalLabel:({slug:e,theme:t})=>{if(!e)return;const{getCurrentTheme:o,getEditedEntityRecord:n}=(0,lt.select)(_t.store),r=n("postType","wp_template_part",(t||o()?.stylesheet)+"//"+e);return r?(0,ao.decodeEntities)(r.title)||function(e,t){return void 0===t&&(t={}),kB(e,bB({delimiter:" ",transform:CB},t))}(r.slug||""):void 0},edit:function({attributes:e,setAttributes:t,clientId:o}){const{createSuccessNotice:n}=(0,lt.useDispatch)(bo.store),{editEntityRecord:r}=(0,lt.useDispatch)(_t.store),a=(0,lt.useSelect)((e=>e(_t.store).getCurrentTheme()?.stylesheet),[]),{slug:i,theme:s=a,tagName:l,layout:c={}}=e,u=y_(s,i),d=(0,ct.useHasRecursion)(u),[p,m]=(0,gt.useState)(!1),{isResolved:g,hasInnerBlocks:h,isMissing:_,area:x,onNavigateToEntityRecord:b,title:f,canUserEdit:y}=(0,lt.useSelect)((t=>{const{getEditedEntityRecord:n,hasFinishedResolution:r}=t(_t.store),{getBlockCount:a,getSettings:i}=t(ct.store),s=["postType","wp_template_part",u],l=u?n(...s):null,c=l?.area||e.area,d=!!u&&r("getEditedEntityRecord",s),p=!!d&&t(_t.store).canUser("update",{kind:"postType",name:"wp_template_part",id:u});return{hasInnerBlocks:a(o)>0,isResolved:d,isMissing:d&&(!l||0===Object.keys(l).length),area:c,onNavigateToEntityRecord:i().onNavigateToEntityRecord,title:l?.title,canUserEdit:!!p}}),[u,e.area,o]),v=PB(x),k=(0,ct.useBlockProps)(),w=!i,C=!w&&!_&&g,j=l||v.tagName;return!h&&(i&&!s||i&&_)?(0,it.jsx)(j,{...k,children:(0,it.jsx)(ct.Warning,{children:(0,pt.sprintf)((0,pt.__)("Template part has been deleted or is unavailable: %s"),i)})}):C&&d?(0,it.jsx)(j,{...k,children:(0,it.jsx)(ct.Warning,{children:(0,pt.__)("Block cannot be rendered inside itself.")})}):(0,it.jsxs)(it.Fragment,{children:[(0,it.jsxs)(ct.RecursionProvider,{uniqueId:u,children:[C&&b&&y&&(0,it.jsx)(ct.BlockControls,{group:"other",children:(0,it.jsx)(mt.ToolbarButton,{onClick:()=>b({postId:u,postType:"wp_template_part"}),children:(0,pt.__)("Edit")})}),y&&(0,it.jsx)(ct.InspectorControls,{group:"advanced",children:(0,it.jsx)(VB,{tagName:l,setAttributes:t,isEntityAvailable:C,templatePartId:u,defaultWrapper:v.tagName,hasInnerBlocks:h,clientId:o})}),w&&(0,it.jsx)(j,{...k,children:(0,it.jsx)(DB,{area:e.area,templatePartId:u,clientId:o,setAttributes:t,onOpenSelectionModal:()=>m(!0)})}),(0,it.jsx)(ct.BlockSettingsMenuControls,{children:({selectedClientIds:e})=>1!==e.length||o!==e[0]?null:(0,it.jsx)(UB,{isEntityAvailable:C,area:x,clientId:o,templatePartId:u,isTemplatePartSelectionOpen:p,setIsTemplatePartSelectionOpen:m})}),(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsx)(qB,{area:x,clientId:o,isEntityAvailable:C,onSelect:e=>(async e=>{await r("postType","wp_template_part",u,{blocks:e.blocks,content:(0,st.serialize)(e.blocks)}),n((0,pt.sprintf)((0,pt.__)('Template Part "%s" updated.'),f||i),{type:"snackbar"})})(e)})}),C&&(0,it.jsx)($B,{tagName:j,blockProps:k,postId:u,hasInnerBlocks:h,layout:c}),!w&&!g&&(0,it.jsx)(j,{...k,children:(0,it.jsx)(mt.Spinner,{})})]}),p&&(0,it.jsx)(mt.Modal,{overlayClassName:"block-editor-template-part__selection-modal",title:(0,pt.sprintf)((0,pt.__)("Choose a %s"),v.label.toLowerCase()),onRequestClose:()=>m(!1),isFullScreen:!0,children:(0,it.jsx)(MB,{templatePartId:u,clientId:o,area:x,setAttributes:t,onClose:()=>m(!1)})})]})}},QB=()=>{(0,vl.addFilter)("blocks.registerBlockType","core/template-part",WB);const e=["core/post-template","core/post-content"];return(0,vl.addFilter)("blockEditor.__unstableCanInsertBlockType","core/block-library/removeTemplatePartsFromPostTemplates",((t,o,n,{getBlock:r,getBlockParentsByBlockName:a})=>{if("core/template-part"!==o.name)return t;for(const t of e){if(r(n)?.name===t||a(n,t).length)return!1}return!0})),jt({name:ZB,metadata:jB,settings:JB})};var KB=(0,it.jsxs)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,it.jsx)(St.Path,{d:"M 12.841306,16.677917 12.001264,12.71529 Q 11.835801,11.930402 11.695793,11.417042 11.560029,10.89944 11.398809,10.568514 11.237588,10.237588 11,10 10.635133,9.6351329 10.219354,9.6351329 9.8078183,9.6308902 9.4387086,10 8.9932313,10.445477 8.8574668,11.022476 8.7259449,11.595233 8.7259449,12.155262 L 7.4955791,11.196425 Q 7.5719467,10.509117 7.8307477,9.9109045 8.0937915,9.3084495 8.6410921,8.7611489 9.1799075,8.2223335 9.7569066,8.086569 q 0.5812414,-0.1400071 1.1242994,0.046669 0.543058,0.1866762 0.975808,0.6194255 0.335168,0.3351686 0.581242,0.767918 0.24183,0.4285067 0.436992,1.0564174 0.195161,0.619426 0.381837,1.527351 l 0.364867,1.756453 1.883733,-1.883732 1.018234,1.018233 z"}),(0,it.jsx)(St.Path,{d:"M12.574 4a.75.75 0 0 1 .53.22l6.723 6.724a2.315 2.315 0 0 1 0 3.264l-.532-.528.531.53-5.61 5.611a2.31 2.31 0 0 1-3.276.001l-6.72-6.716a.75.75 0 0 1-.22-.53V4.75A.75.75 0 0 1 4.75 4h7.824ZM5.5 5.5v6.764l6.501 6.497a.817.817 0 0 0 .889.178.816.816 0 0 0 .264-.178l5.61-5.61a.816.816 0 0 0-.001-1.149l-6.5-6.502H5.5Z"})]});const YB=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/term-count","title":"Term Count","category":"theme","description":"Displays the post count of a taxonomy term.","textdomain":"default","usesContext":["termId","taxonomy"],"attributes":{"bracketType":{"type":"string","enum":["none","round","square","curly","angle"],"default":"round"}},"supports":{"html":false,"color":{"gradients":true,"__experimentalDefaultControls":{"background":true,"text":true}},"spacing":{"padding":true},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true,"__experimentalDefaultControls":{"color":true,"width":true,"style":true}}},"style":"wp-block-term-count"}'),XB=(0,it.jsx)(mt.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(mt.Path,{d:"M 10 6 L 9.609375 9 L 7 9 L 7 10.5 L 9.4121094 10.5 L 9.0878906 13 L 7 13 L 7 14.5 L 8.890625 14.5 L 8.5 17.5 L 10 17.5 L 10.390625 14.5 L 12.890625 14.5 L 12.5 17.5 L 14 17.5 L 14.390625 14.5 L 17 14.5 L 17 13 L 14.587891 13 L 14.912109 10.5 L 17 10.5 L 17 9 L 15.109375 9 L 15.5 6 L 14 6 L 13.609375 9 L 11.109375 9 L 11.5 6 L 10 6 z M 10.912109 10.5 L 13.412109 10.5 L 13.087891 13 L 10.587891 13 L 10.912109 10.5 z"})}),eT=(0,it.jsx)(mt.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(mt.Path,{d:"M 10,6 9.609375,9 H 7 v 1.5 H 9.4121094 L 9.0878906,13 H 7 v 1.5 H 8.890625 L 8.5,17.5 H 10 l 0.390625,-3 h 2.5 L 12.5,17.5 H 14 l 0.390625,-3 H 17 V 13 h -2.412109 l 0.324218,-2.5 H 17 V 9 H 15.109375 L 15.5,6 H 14 l -0.390625,3 h -2.5 L 11.5,6 Z m 0.912109,4.5 h 2.5 L 13.087891,13 h -2.5 z M 18.5,3 c 0,0 1.5,4.004036 1.5,9 0,4.995964 -1.5,9 -1.5,9 H 20 c 0,0 1.5,-4.004036 1.5,-9 C 21.5,7.004036 20,3 20,3 Z M 5.5,21 C 5.5,21 4,16.995964 4,12 4,7.0040356 5.5,3 5.5,3 H 4 c 0,0 -1.5,4.004036 -1.5,9 0,4.995964 1.5,9 1.5,9 z"})}),tT=(0,it.jsx)(mt.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(mt.Path,{d:"M 21.5,21 V 3 H 18 v 1.5 h 2 v 15 H 18 V 21 Z M 2.5,3 V 21 H 6 V 19.5 H 4 V 4.5 H 6 V 3 Z M 10,6 9.609375,9 H 7 v 1.5 H 9.4121094 L 9.0878906,13 H 7 v 1.5 H 8.890625 L 8.5,17.5 H 10 l 0.390625,-3 h 2.5 L 12.5,17.5 H 14 l 0.390625,-3 H 17 V 13 h -2.412109 l 0.324218,-2.5 H 17 V 9 H 15.109375 L 15.5,6 H 14 l -0.390625,3 h -2.5 L 11.5,6 Z m 0.912109,4.5 h 2.5 L 13.087891,13 h -2.5 z"})}),oT=(0,it.jsx)(mt.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(mt.Path,{d:"M 10,6 9.609375,9 H 7 v 1.5 H 9.4121094 L 9.0878906,13 H 7 v 1.5 H 8.890625 L 8.5,17.5 H 10 l 0.390625,-3 h 2.5 L 12.5,17.5 H 14 l 0.390625,-3 H 17 V 13 h -2.412109 l 0.324218,-2.5 H 17 V 9 H 15.109375 L 15.5,6 H 14 l -0.390625,3 h -2.5 L 11.5,6 Z m 0.912109,4.5 h 2.5 L 13.087891,13 h -2.5 z M 18.5,21 c 1.104567,0 2,-0.895433 2,-2 v -4 c 0,-1.104567 0.895433,-2 2,-2 v -2 c -1.104567,0 -2,-0.895433 -2,-2 V 5 c 0,-1.104567 -0.895433,-2 -2,-2 H 17 v 1.5 h 1.5 A 0.5,0.5 0 0 1 19,5 v 5 c 0,1.104567 0.895433,2 2,2 -1.104567,0 -2,0.895433 -2,2 v 5 c 0,0.276142 -0.223858,0.5 -0.5,0.5 H 17 V 21 Z M 5.5,3 c -1.1045668,0 -2,0.8954327 -2,2 v 4 c 0,1.104567 -0.8954332,2 -2,2 v 2 c 1.1045668,0 2,0.895433 2,2 v 4 c 0,1.104567 0.8954332,2 2,2 H 7 V 19.5 H 5.5 A 0.5,0.5 0 0 1 5,19 V 14 C 5,12.895433 4.1045668,12 3,12 4.1045668,12 5,11.104567 5,10 V 5 C 5,4.7238579 5.2238579,4.5 5.5,4.5 H 7 V 3 Z"})}),nT=(0,it.jsx)(mt.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(mt.Path,{d:"M 18.970703,16.53125 23.5,12 18.970703,7.46875 17.910156,8.53125 21.378906,12 17.910156,15.46875 Z M 5.0292969,7.46875 0.5,12 5.0292969,16.53125 6.0898438,15.46875 2.6210938,12 6.0898438,8.53125 Z M 10,6 9.609375,9 H 7 v 1.5 H 9.4121094 L 9.0878906,13 H 7 v 1.5 H 8.890625 L 8.5,17.5 H 10 l 0.390625,-3 h 2.5 L 12.5,17.5 H 14 l 0.390625,-3 H 17 V 13 h -2.412109 l 0.324218,-2.5 H 17 V 9 H 15.109375 L 15.5,6 H 14 l -0.390625,3 h -2.5 L 11.5,6 Z m 0.912109,4.5 h 2.5 L 13.087891,13 h -2.5 z"})});function rT(e,t){const[o]=(0,_t.useEntityProp)("taxonomy",t,"count",e),n=function(){const e=(0,lt.useSelect)((e=>{const{getCurrentPostId:t,getCurrentPostType:o,getCurrentTemplateId:n}=e("core/editor"),r=o(),a=n()||("wp_template"===r?t():null);return a?e(_t.store).getEditedEntityRecord("postType","wp_template",a)?.slug:null}),[]),t=e?.match(/^(category|tag|taxonomy-([^-]+))$|^(((category|tag)|taxonomy-([^-]+))-(.+))$/);let o,n;t&&(t[1]?o=t[2]?t[2]:t[1]:t[3]&&(o=t[6]?t[6]:t[4],n=t[7]),o="tag"===o?"post_tag":o);return(0,lt.useSelect)((e=>{if(!o||!n)return"";const{getEntityRecords:t}=e(_t.store),r=t("taxonomy",o,{slug:n,per_page:1});return r&&r[0]&&r[0].count||""}),[o,n])}(),r=Boolean(e&&t);return{hasContext:r,termCount:r?o||"":n}}const aT={none:{label:(0,pt.__)("No brackets"),icon:XB},round:{label:(0,pt.__)("Round brackets"),icon:eT,before:"(",after:")"},square:{label:(0,pt.__)("Square brackets"),icon:tT,before:"[",after:"]"},curly:{label:(0,pt.__)("Curly brackets"),icon:oT,before:"{",after:"}"},angle:{label:(0,pt.__)("Angle brackets"),icon:nT,before:"<",after:">"}};const{name:iT}=YB,sT={icon:KB,edit:function({attributes:e,setAttributes:t,context:{termId:o,taxonomy:n}}){const{bracketType:r}=e,a=rT(o,n),i=a?.termCount||0,s=(0,ct.useBlockProps)(),l=Object.entries(aT).map((([e,{label:o,icon:n}])=>({role:"menuitemradio",title:o,isActive:r===e,icon:n,onClick:()=>{t({bracketType:e})}})));return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.BlockControls,{group:"block",children:(0,it.jsx)(mt.ToolbarDropdownMenu,{icon:aT[r]?.icon??XB,label:(0,pt.__)("Change bracket type"),controls:l})}),(0,it.jsx)("div",{...s,children:((e,t)=>{const{before:o="",after:n=""}=aT[t]||{};return`${o}${e}${n}`})(i,r)})]})}},lT=()=>jt({name:iT,metadata:YB,settings:sT});var cT=(0,it.jsx)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,it.jsx)(St.Path,{d:"M6.08 10.103h2.914L9.657 12h1.417L8.23 4H6.846L4 12h1.417l.663-1.897Zm1.463-4.137.994 2.857h-2l1.006-2.857ZM11 16H4v-1.5h7V16Zm1 0h8v-1.5h-8V16Zm-4 4H4v-1.5h4V20Zm7-1.5V20H9v-1.5h6Z"})});const uT=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"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","usesContext":["termId","taxonomy"],"attributes":{"textAlign":{"type":"string"}},"supports":{"align":["wide","full"],"html":false,"color":{"link":true,"__experimentalDefaultControls":{"background":true,"text":true}},"spacing":{"padding":true,"margin":true},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true,"__experimentalDefaultControls":{"radius":true,"color":true,"width":true,"style":true}}}}');function dT(e,t){const[o,n,r]=(0,_t.useEntityProp)("taxonomy",t,"description",e),a=function(){const e=(0,lt.useSelect)((e=>{const{getCurrentPostId:t,getCurrentPostType:o,getCurrentTemplateId:n}=e("core/editor"),r=o(),a=n()||("wp_template"===r?t():null);return a?e(_t.store).getEditedEntityRecord("postType","wp_template",a)?.slug:null}),[]),t=e?.match(/^(category|tag|taxonomy-([^-]+))$|^(((category|tag)|taxonomy-([^-]+))-(.+))$/);let o,n;t&&(t[1]?o=t[2]?t[2]:t[1]:t[3]&&(o=t[6]?t[6]:t[4],n=t[7]),o="tag"===o?"post_tag":o);return(0,lt.useSelect)((e=>{if(!o||!n)return"";const{getEntityRecords:t}=e(_t.store),r=t("taxonomy",o,{slug:n,per_page:1});return r&&r[0]&&r[0].description||""}),[o,n])}(),i=Boolean(e&&t);return{hasContext:i,setDescription:n,termDescription:i?r?.rendered||o||"":a}}const{name:pT}=uT,mT={icon:cT,edit:function({attributes:e,setAttributes:t,mergedStyle:o,context:{termId:n,taxonomy:r}}){const{textAlign:a}=e,{termDescription:i}=dT(n,r),s=(0,ct.useBlockProps)({className:Dt({[`has-text-align-${a}`]:a}),style:o});return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.BlockControls,{group:"block",children:(0,it.jsx)(ct.AlignmentControl,{value:a,onChange:e=>{t({textAlign:e})}})}),(0,it.jsx)("div",{...s,children:i?(0,it.jsx)("div",{dangerouslySetInnerHTML:{__html:i}}):(0,it.jsx)("div",{className:"wp-block-term-description__placeholder",children:(0,it.jsx)("span",{children:(0,pt.__)("Term Description")})})})]})},example:{}},gT=()=>jt({name:pT,metadata:uT,settings:mT});var hT=(0,it.jsxs)(St.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,it.jsx)(St.Path,{d:"m14.95 13.889-1.061 1.061-5.552-5.553 1.06-1.06 5.552 5.552Z"}),(0,it.jsx)(St.Path,{d:"M12.574 4a.75.75 0 0 1 .53.22l6.723 6.724a2.315 2.315 0 0 1 0 3.264l-.532-.528.531.53-5.61 5.611a2.31 2.31 0 0 1-3.276.001l-6.72-6.716a.75.75 0 0 1-.22-.53V4.75A.75.75 0 0 1 4.75 4h7.824ZM5.5 5.5v6.764l6.501 6.497a.817.817 0 0 0 .889.178.816.816 0 0 0 .264-.178l5.61-5.61a.816.816 0 0 0-.001-1.149l-6.5-6.502H5.5Z"})]});const _T=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/term-name","title":"Term Name","category":"theme","description":"Displays the name of a taxonomy term.","keywords":["term title"],"textdomain":"default","usesContext":["termId","taxonomy"],"attributes":{"textAlign":{"type":"string"},"level":{"type":"number","default":0},"isLink":{"type":"boolean","default":false}},"supports":{"align":["wide","full"],"html":false,"color":{"gradients":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true,"link":true}},"spacing":{"padding":true},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true,"__experimentalDefaultControls":{"color":true,"width":true,"style":true}}},"style":"wp-block-term-name"}');function xT(e,t){const o=(0,lt.useSelect)((o=>e&&t?o(_t.store).getEntityRecord("taxonomy",t,e):null),[e,t]),n=function(){const e=(0,lt.useSelect)((e=>{const{getCurrentPostId:t,getCurrentPostType:o,getCurrentTemplateId:n}=e("core/editor"),r=o(),a=n()||("wp_template"===r?t():null);return a?e(_t.store).getEditedEntityRecord("postType","wp_template",a)?.slug:null}),[]),t=e?.match(/^(category|tag|taxonomy-([^-]+))$|^(((category|tag)|taxonomy-([^-]+))-(.+))$/);let o,n;t&&(t[3]&&(o=t[6]?t[6]:t[4],n=t[7]),o="tag"===o?"post_tag":o);return(0,lt.useSelect)((e=>{if(!o||!n)return null;const{getEntityRecords:t}=e(_t.store),r=t("taxonomy",o,{slug:n,per_page:1});return r&&r[0]?r[0]:null}),[o,n])}(),r=Boolean(e&&t);return{hasContext:r,term:r?o:n}}const{name:bT}=_T,fT={icon:hT,edit:function({attributes:e,setAttributes:t,context:{termId:o,taxonomy:n}}){const{textAlign:r,level:a=0,isLink:i}=e,{term:s}=xT(o,n),l=s?.name?(0,ao.decodeEntities)(s.name):(0,pt.__)("Term Name"),c=(0,ct.useBlockProps)({className:Dt({[`has-text-align-${r}`]:r})}),u=vt(),d=0===a?"p":`h${a}`;let p=l;return i&&(p=(0,it.jsx)("a",{href:"#term-name-pseudo-link",onClick:e=>e.preventDefault(),children:l})),(0,it.jsxs)(it.Fragment,{children:[(0,it.jsxs)(ct.BlockControls,{group:"block",children:[(0,it.jsx)(ct.HeadingLevelDropdown,{value:a,options:[0,1,2,3,4,5,6],onChange:e=>{t({level:e})}}),(0,it.jsx)(ct.AlignmentControl,{value:r,onChange:e=>{t({textAlign:e})}})]}),(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsx)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{t({isLink:!1})},dropdownMenuProps:u,children:(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!!i,label:(0,pt.__)("Make term name a link"),onDeselect:()=>t({isLink:!1}),isShownByDefault:!0,children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Make term name a link"),onChange:()=>t({isLink:!i}),checked:i})})})}),(0,it.jsx)(d,{...c,children:p})]})}},yT=()=>jt({name:bT,metadata:_T,settings:fT}),vT=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/terms-query","title":"Terms Query","category":"theme","description":"An advanced block that allows displaying taxonomy terms based on different query parameters and visual configurations.","keywords":["terms","taxonomy","categories","tags","list"],"textdomain":"default","attributes":{"termQuery":{"type":"object","default":{"perPage":10,"taxonomy":"category","order":"asc","orderBy":"name","include":[],"hideEmpty":true,"showNested":false,"inherit":false}},"tagName":{"type":"string","default":"div"}},"usesContext":["templateSlug"],"providesContext":{"termQuery":"termQuery"},"supports":{"align":["wide","full"],"html":false,"layout":true,"interactivity":true}}');function kT(){const e=(0,lt.useSelect)((e=>e(_t.store).getTaxonomies({per_page:-1})),[]);return(0,gt.useMemo)((()=>e?.filter((({visibility:e})=>e?.publicly_queryable))||[]),[e])}function wT({value:e,onChange:t,...o}){const n=kT().map((e=>({label:e.name,value:e.slug})));return(0,it.jsx)(mt.SelectControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,options:n,value:e,onChange:t,...o})}function CT({orderBy:e,order:t,onChange:o,...n}){return(0,it.jsx)(mt.SelectControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,options:[{label:(0,pt.__)("Name: A → Z"),value:"name/asc"},{label:(0,pt.__)("Name: Z → A"),value:"name/desc"},{label:(0,pt.__)("Count, high to low"),value:"count/desc"},{label:(0,pt.__)("Count, low to high"),value:"count/asc"}],value:e+"/"+t,onChange:e=>{const[t,n]=e.split("/");o(t,n)},...n})}function jT({value:e,onChange:t,...o}){return(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,checked:!e,onChange:e=>t(!e),...o})}function ST({value:e,onChange:t,...o}){return(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,checked:e,onChange:t,...o})}function BT({value:e,onChange:t,label:o}){return(0,it.jsxs)(mt.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:o,isBlock:!0,onChange:e=>{t({inherit:"default"===e})},help:e?(0,pt.__)("Display terms based on the current taxonomy archive. For hierarchical taxonomies, shows children of the current term. For non-hierarchical taxonomies, shows all terms."):(0,pt.__)("Display terms based on specific criteria."),value:e?"default":"custom",children:[(0,it.jsx)(mt.__experimentalToggleGroupControlOption,{value:"default",label:(0,pt.__)("Default")}),(0,it.jsx)(mt.__experimentalToggleGroupControlOption,{value:"custom",label:(0,pt.__)("Custom")})]})}function TT({value:e,onChange:t,...o}){return(0,it.jsx)(mt.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,value:e,min:0,max:100,onChange:t,help:(0,pt.__)("Limit the number of terms you want to show. To show all terms, use 0 (zero)."),...o})}const{HTMLElementControl:NT}=jo(ct.privateApis);function PT({TagName:e,setAttributes:t,clientId:o}){return(0,it.jsx)(ct.InspectorControls,{group:"advanced",children:(0,it.jsx)(NT,{tagName:e,onChange:e=>t({tagName:e}),clientId:o,options:[{label:(0,pt.__)("Default (<div>)"),value:"div"},{label:"<main>",value:"main"},{label:"<section>",value:"section"},{label:"<aside>",value:"aside"}]})})}const IT=[],DT={order:"asc",_fields:"id,name",context:"view"};function MT({value:e,taxonomy:t,onChange:o,...n}){const[r,a]=(0,gt.useState)(""),[i,s]=(0,gt.useState)(IT),[l,c]=(0,gt.useState)(IT),u=(0,xt.useDebounce)(a,250),{searchResults:d,searchHasResolved:p}=(0,lt.useSelect)((o=>{if(!r)return{searchResults:IT,searchHasResolved:!0};const{getEntityRecords:n,hasFinishedResolution:a}=o(_t.store),i=["taxonomy",t,{...DT,search:r,orderby:"name",exclude:e,per_page:20}];return{searchResults:n(...i),searchHasResolved:a("getEntityRecords",i)}}),[r,t,e]),m=(0,lt.useSelect)((o=>{if(!e?.length)return IT;const{getEntityRecords:n}=o(_t.store);return n("taxonomy",t,{...DT,include:e,per_page:e.length})}),[e,t]);(0,gt.useEffect)((()=>{if(e?.length||s(IT),!m?.length)return;const t=e.reduce(((e,t)=>{const o=m.find((e=>e.id===t));return o&&e.push({id:t,value:(0,ao.decodeEntities)(o.name)}),e}),[]);s(t)}),[e,m]);const g=(0,gt.useMemo)((()=>{if(!d?.length)return{names:IT,mapByName:{}};const e=[],t={};return d.forEach((o=>{const n=(0,ao.decodeEntities)(o.name);e.push(n),t[n]=o})),{names:e,mapByName:t}}),[d]);(0,gt.useEffect)((()=>{p&&c(g.names)}),[g.names,p]);return(0,it.jsx)(mt.FormTokenField,{__next40pxDefaultSize:!0,value:i,onInputChange:u,suggestions:l,onChange:e=>{const t=Array.from(e.reduce(((e,t)=>{const o=((e,t)=>t?.id||e?.[t]?.id)(g.mapByName,t);return o&&e.add(o),e}),new Set));c(IT),o(t)},__experimentalShowHowTo:!1,__nextHasNoMarginBottom:!0,...n})}function zT({attributes:e,setQuery:t,setAttributes:o,clientId:n,templateSlug:r}){const{termQuery:a,tagName:i}=e,{taxonomy:s,orderBy:l,order:c,hideEmpty:u,inherit:d,showNested:p,perPage:m,include:g}=a,h=vt(),_=kT(),x=_.find((e=>e.slug===s))?.hierarchical,b=!!d,f=["taxonomy","category","tag","archive"].includes(r)||r?.startsWith("taxonomy-")||r?.startsWith("category-")||r?.startsWith("tag-"),y=x,v=!!g?.length,k=(0,pt.__)("Query type"),w=(0,pt.__)("Taxonomy"),C=(0,pt.__)("Order by"),j=(0,pt.__)("Show empty terms"),S=(0,pt.__)("Show nested terms"),B=(0,pt.__)("Max terms"),T=(0,pt.__)("Selected terms");return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{o({termQuery:{taxonomy:"category",order:"asc",orderBy:"name",include:[],hideEmpty:!0,showNested:!1,inherit:!1,perPage:10}})},dropdownMenuProps:h,children:[f&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!1!==d,label:k,onDeselect:()=>t({inherit:!1}),isShownByDefault:!0,children:(0,it.jsx)(BT,{label:k,value:d,onChange:t})}),!b&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>"category"!==s,label:w,onDeselect:()=>{t({taxonomy:"category"})},isShownByDefault:!0,children:(0,it.jsx)(wT,{label:w,value:s,onChange:e=>t({taxonomy:e,include:[]})})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>"name"!==l||"asc"!==c,label:C,onDeselect:()=>t({orderBy:"name",order:"asc"}),isShownByDefault:!0,children:(0,it.jsx)(CT,{label:C,orderBy:l,order:c,onChange:(e,o)=>{t({orderBy:e,order:o})},disabled:v,help:v?(0,pt.__)("When specific terms are selected, the order is based on their selection order."):void 0})}),!b&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!!g?.length,label:T,onDeselect:()=>t({include:[],orderBy:"name",order:"asc"}),isShownByDefault:!0,children:(0,it.jsx)(MT,{label:T,taxonomy:s,value:g,onChange:e=>t({include:e})})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!0!==u,label:j,onDeselect:()=>t({hideEmpty:!0}),isShownByDefault:!0,children:(0,it.jsx)(jT,{label:j,value:u,onChange:e=>t({hideEmpty:e})})}),y&&(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>!1!==p,label:S,onDeselect:()=>t({showNested:!1}),isShownByDefault:!0,children:(0,it.jsx)(ST,{label:S,value:p,onChange:e=>t({showNested:e}),disabled:v,help:v?(0,pt.__)("When specific terms are selected, only those are displayed."):void 0})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{hasValue:()=>10!==m,label:B,onDeselect:()=>t({perPage:10}),isShownByDefault:!0,children:(0,it.jsx)(TT,{label:B,value:m,onChange:e=>t({perPage:e})})})]})}),(0,it.jsx)(PT,{TagName:i,setAttributes:o,clientId:n})]})}const AT=[["core/term-template"]];function LT({attributes:e,setAttributes:t,clientId:o,context:n}){const{tagName:r}=e,a=(0,ct.useBlockProps)(),i=(0,ct.useInnerBlocksProps)(a,{template:AT}),s=(0,gt.useCallback)((e=>t((t=>({termQuery:{...t.termQuery,...e}})))),[t]);return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(zT,{attributes:e,setQuery:s,setAttributes:t,clientId:o,templateSlug:n?.templateSlug}),(0,it.jsx)(r,{...i})]})}function HT({attributes:e,clientId:t,name:o}){const{blockType:n,activeBlockVariation:r,scopeVariations:a}=(0,lt.useSelect)((t=>{const{getActiveBlockVariation:n,getBlockType:r,getBlockVariations:a}=t(st.store);return{blockType:r(o),activeBlockVariation:n(o,e),scopeVariations:a(o,"block")}}),[o,e]),i=r?.icon?.src||r?.icon||n?.icon?.src,s=r?.title||n?.title,{replaceInnerBlocks:l}=(0,lt.useDispatch)(ct.store),c=(0,ct.useBlockProps)();return(0,it.jsx)("div",{...c,children:(0,it.jsx)(ct.__experimentalBlockVariationPicker,{icon:i,label:s,variations:a,onSelect:e=>{e.innerBlocks&&l(t,(0,st.createBlocksFromInnerBlocksTemplate)(e.innerBlocks),!1)}})})}var RT=e=>{const t=(0,lt.useSelect)((t=>!!t(ct.store).getBlocks(e.clientId).length),[e.clientId])?LT:HT;return(0,it.jsx)(t,{...e})};const VT=(0,it.jsx)(mt.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:(0,it.jsx)(mt.Path,{d:"M 41,9 H 7 v 3 h 34 z m 0,9 H 7 v 3 h 34 z m 0,18 H 7 v 3 h 34 z m 0,-9 H 7 v 3 h 34 z"})}),FT=(0,it.jsx)(mt.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:(0,it.jsx)(mt.Path,{d:"m 36,36 h 5 v 3 h -5 z m 0,-9 h 5 v 3 h -5 z m 0,-9 h 5 v 3 h -5 z m 0,-9 h 5 v 3 H 36 Z M 31,9 H 7 v 3 h 24 z m 0,9 H 7 v 3 h 24 z m 0,18 H 7 v 3 h 24 z m 0,-9 H 7 v 3 h 24 z"})}),ET=["core/term-name",{isLink:!0}];var OT=[{name:"name",title:(0,pt.__)("Name"),description:(0,pt.__)("Display the terms' names."),attributes:{},icon:VT,scope:["block"],innerBlocks:[["core/term-template",{},[ET]]]},{name:"name-count",title:(0,pt.__)("Name & Count"),description:(0,pt.__)("Display the terms' names and number of posts assigned to each term."),attributes:{},icon:FT,scope:["block"],innerBlocks:[["core/term-template",{},[["core/group",{layout:{type:"flex",flexWrap:"nowrap"}},[ET,["core/term-count"]]]]]]}];const{name:GT}=vT,$T={icon:Wv,edit:RT,save:function({attributes:{tagName:e="div"}}){const t=ct.useBlockProps.save(),o=ct.useInnerBlocksProps.save(t);return(0,it.jsx)(e,{...o})},example:{},variations:OT},UT=()=>jt({name:GT,metadata:vT,settings:$T}),qT=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/term-template","title":"Term Template","category":"theme","ancestor":["core/terms-query"],"description":"Contains the block elements used to render a taxonomy term, like the name, description, and more.","textdomain":"default","usesContext":["termQuery"],"supports":{"reusable":false,"html":false,"align":["wide","full"],"layout":true,"color":{"gradients":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"spacing":{"margin":true,"padding":true,"blockGap":{"__experimentalDefault":"1.25em"},"__experimentalDefaultControls":{"blockGap":true,"padding":false,"margin":false}},"interactivity":{"clientNavigation":true},"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true}},"style":"wp-block-term-template","editorStyle":"wp-block-term-template-editor"}'),WT=[["core/term-name"]];function ZT({classList:e}){const t=(0,ct.useInnerBlocksProps)({className:Dt("wp-block-term",e)},{template:WT,__unstableDisableLayoutClassNames:!0});return(0,it.jsx)("li",{...t})}const JT=(0,gt.memo)((function({blocks:e,blockContextId:t,classList:o,isHidden:n,setActiveBlockContextId:r}){const a=(0,ct.__experimentalUseBlockPreview)({blocks:e,props:{className:Dt("wp-block-term",o)}}),i=()=>{r(t)},s={display:n?"none":void 0};return(0,it.jsx)("li",{...a,tabIndex:0,role:"button",onClick:i,onKeyPress:i,style:s})}));const{name:QT}=qT,KT={icon:Oa,edit:function({clientId:e,attributes:{layout:t},setAttributes:o,context:{termQuery:{taxonomy:n,order:r,orderBy:a,hideEmpty:i,showNested:s=!1,perPage:l,include:c}={}},__unstableLayoutClassNames:u}){const{type:d,columnCount:p=3}=t||{},[m,g]=(0,gt.useState)(),h={hide_empty:i,order:r,orderby:a,per_page:l||-1};s||c?.length||(h.parent=0),c?.length&&(h.include=c,h.orderby="include",h.order="asc");const{records:_}=(0,_t.useEntityRecords)("taxonomy",n,h),x=(0,lt.useSelect)((t=>t(ct.store).getBlocks(e)),[e]),b=(0,ct.useBlockProps)({className:u}),f=(0,gt.useMemo)((()=>_?.map((e=>({taxonomy:n,termId:e.id,classList:`term-${e.id}`,termData:e})))),[_,n]);if(!_)return(0,it.jsx)("ul",{...b,children:(0,it.jsx)("li",{className:"wp-block-term term-loading",children:(0,it.jsx)("div",{className:"term-loading-placeholder"})})});if(!_.length)return(0,it.jsxs)("p",{...b,children:[" ",(0,pt.__)("No terms found.")]});const y=e=>o((t=>({layout:{...t.layout,...e}})));return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.BlockControls,{children:(0,it.jsx)(mt.ToolbarGroup,{controls:[{icon:Bm,title:(0,pt._x)("List view","Term template block display setting"),onClick:()=>y({type:"default"}),isActive:"default"===d||"constrained"===d},{icon:qd,title:(0,pt._x)("Grid view","Term template block display setting"),onClick:()=>y({type:"grid",columnCount:p}),isActive:"grid"===d}]})}),(0,it.jsx)("ul",{...b,children:f?.map((e=>(0,it.jsxs)(ct.BlockContextProvider,{value:e,children:[e.termId===(m||f[0]?.termId)?(0,it.jsx)(ZT,{classList:e.classList}):null,(0,it.jsx)(JT,{blocks:x,blockContextId:e.termId,classList:e.classList,setActiveBlockContextId:g,isHidden:e.termId===(m||f[0]?.termId)})]},e.termId)))})]})},save:function(){return(0,it.jsx)(ct.InnerBlocks.Content,{})},example:{}},YT=()=>jt({name:QT,metadata:qT,settings:KT});const XT=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"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":false,"interactivity":{"clientNavigation":true}},"editorStyle":"wp-block-text-columns-editor","style":"wp-block-text-columns"}');var eN={to:[{type:"block",blocks:["core/columns"],transform:({className:e,columns:t,content:o,width:n})=>(0,st.createBlock)("core/columns",{align:"wide"===n||"full"===n?n:void 0,className:e,columns:t},o.map((({children:e})=>(0,st.createBlock)("core/column",{},[(0,st.createBlock)("core/paragraph",{content:e})]))))}]};const{name:tN}=XT,oN={transforms:eN,getEditWrapperProps(e){const{width:t}=e;if("wide"===t||"full"===t)return{"data-align":t}},edit:function({attributes:e,setAttributes:t}){const{width:o,content:n,columns:r}=e;return Jm()("The Text Columns block",{since:"5.3",alternative:"the Columns block"}),(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.BlockControls,{children:(0,it.jsx)(ct.BlockAlignmentToolbar,{value:o,onChange:e=>t({width:e}),controls:["center","wide","full"]})}),(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsx)(mt.PanelBody,{children:(0,it.jsx)(mt.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,pt.__)("Columns"),value:r,onChange:e=>t({columns:e}),min:2,max:4,required:!0})})}),(0,it.jsx)("div",{...(0,ct.useBlockProps)({className:`align${o} columns-${r}`}),children:Array.from({length:r}).map(((e,o)=>(0,it.jsx)("div",{className:"wp-block-column",children:(0,it.jsx)(ct.RichText,{tagName:"p",value:n?.[o]?.children,onChange:e=>{t({content:[...n.slice(0,o),{children:e},...n.slice(o+1)]})},"aria-label":(0,pt.sprintf)((0,pt.__)("Column %d text"),o+1),placeholder:(0,pt.__)("New Column")})},`column-${o}`)))})]})},save:function({attributes:e}){const{width:t,content:o,columns:n}=e;return(0,it.jsx)("div",{...ct.useBlockProps.save({className:`align${t} columns-${n}`}),children:Array.from({length:n}).map(((e,t)=>(0,it.jsx)("div",{className:"wp-block-column",children:(0,it.jsx)(ct.RichText.Content,{tagName:"p",value:o?.[t]?.children})},`column-${t}`)))})}},nN=()=>jt({name:tN,metadata:XT,settings:oN}),rN={attributes:{content:{type:"string",source:"html",selector:"pre",default:""},textAlign:{type:"string"}},save({attributes:e}){const{textAlign:t,content:o}=e;return(0,it.jsx)(ct.RichText.Content,{tagName:"pre",style:{textAlign:t},value:o})}},aN={attributes:{content:{type:"string",source:"html",selector:"pre",default:"",__unstablePreserveWhiteSpace:!0,role:"content"},textAlign:{type:"string"}},supports:{anchor:!0,color:{gradients:!0,link:!0},typography:{fontSize:!0,__experimentalFontFamily:!0},spacing:{padding:!0}},save({attributes:e}){const{textAlign:t,content:o}=e,n=Dt({[`has-text-align-${t}`]:t});return(0,it.jsx)("pre",{...ct.useBlockProps.save({className:n}),children:(0,it.jsx)(ct.RichText.Content,{value:o})})},migrate:Yo,isEligible:({style:e})=>e?.typography?.fontFamily};var iN=[aN,rN];const sN=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"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":"rich-text","source":"rich-text","selector":"pre","__unstablePreserveWhiteSpace":true,"role":"content"},"textAlign":{"type":"string"}},"supports":{"anchor":true,"background":{"backgroundImage":true,"backgroundSize":true,"__experimentalDefaultControls":{"backgroundImage":true}},"color":{"gradients":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true}},"dimensions":{"minHeight":true,"__experimentalDefaultControls":{"minHeight":false}},"typography":{"fontSize":true,"__experimentalFontFamily":true,"lineHeight":true,"__experimentalFontStyle":true,"__experimentalFontWeight":true,"__experimentalLetterSpacing":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalWritingMode":true,"__experimentalDefaultControls":{"fontSize":true}},"spacing":{"margin":true,"padding":true,"__experimentalDefaultControls":{"margin":false,"padding":false}},"__experimentalBorder":{"radius":true,"width":true,"color":true,"style":true},"interactivity":{"clientNavigation":true}},"style":"wp-block-verse","editorStyle":"wp-block-verse-editor"}');const lN={from:[{type:"block",blocks:["core/paragraph"],transform:e=>(0,st.createBlock)("core/verse",e)}],to:[{type:"block",blocks:["core/paragraph"],transform:e=>(0,st.createBlock)("core/paragraph",e)}]};var cN=lN;const{name:uN}=sN,dN={icon:iC,example:{attributes:{content:(0,pt.__)("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:cN,deprecated:iN,merge:(e,t)=>({content:e.content+"\n\n"+t.content}),edit:function({attributes:e,setAttributes:t,mergeBlocks:o,onRemove:n,insertBlocksAfter:r,style:a}){const{textAlign:i,content:s}=e,l=(0,ct.useBlockProps)({className:Dt({[`has-text-align-${i}`]:i}),style:a});return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.BlockControls,{children:(0,it.jsx)(ct.AlignmentToolbar,{value:i,onChange:e=>{t({textAlign:e})}})}),(0,it.jsx)(ct.RichText,{tagName:"pre",identifier:"content",preserveWhiteSpace:!0,value:s,onChange:e=>{t({content:e})},"aria-label":(0,pt.__)("Verse text"),placeholder:(0,pt.__)("Write verse…"),onRemove:n,onMerge:o,textAlign:i,...l,__unstablePastePlainText:!0,__unstableOnSplitAtDoubleLineEnd:()=>r((0,st.createBlock)((0,st.getDefaultBlockName)()))})]})},save:function({attributes:e}){const{textAlign:t,content:o}=e,n=Dt({[`has-text-align-${t}`]:t});return(0,it.jsx)("pre",{...ct.useBlockProps.save({className:n}),children:(0,it.jsx)(ct.RichText.Content,{value:o})})}},pN=()=>jt({name:uN,metadata:sN,settings:dN});var mN=(0,it.jsx)(St.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,it.jsx)(St.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 gN=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"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":"rich-text","source":"rich-text","selector":"figcaption","role":"content"},"controls":{"type":"boolean","source":"attribute","selector":"video","attribute":"controls","default":true},"id":{"type":"number","role":"content"},"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"},"blob":{"type":"string","role":"local"},"src":{"type":"string","source":"attribute","selector":"video","attribute":"src","role":"content"},"playsInline":{"type":"boolean","source":"attribute","selector":"video","attribute":"playsinline"},"tracks":{"role":"content","type":"array","items":{"type":"object"},"default":[]}},"supports":{"anchor":true,"align":true,"spacing":{"margin":true,"padding":true,"__experimentalDefaultControls":{"margin":false,"padding":false}},"interactivity":{"clientNavigation":true}},"editorStyle":"wp-block-video-editor","style":"wp-block-video"}');function hN({tracks:e=[]}){return e.map((e=>{const{id:t,...o}=e;return(0,it.jsx)("track",{...o},t??o.src)}))}const{attributes:_N}=gN,xN={attributes:_N,save({attributes:e}){const{autoplay:t,caption:o,controls:n,loop:r,muted:a,poster:i,preload:s,src:l,playsInline:c,tracks:u}=e;return(0,it.jsxs)("figure",{...ct.useBlockProps.save(),children:[l&&(0,it.jsx)("video",{autoPlay:t,controls:n,loop:r,muted:a,poster:i,preload:"metadata"!==s?s:void 0,src:l,playsInline:c,children:(0,it.jsx)(hN,{tracks:u})}),!ct.RichText.isEmpty(o)&&(0,it.jsx)(ct.RichText.Content,{tagName:"figcaption",value:o})]})}};var bN=[xN];const fN=[{value:"auto",label:(0,pt.__)("Auto")},{value:"metadata",label:(0,pt.__)("Metadata")},{value:"none",label:(0,pt._x)("None","Preload value")}];var yN=({setAttributes:e,attributes:t})=>{const{autoplay:o,controls:n,loop:r,muted:a,playsInline:i,preload:s}=t,l=(0,pt.__)("Autoplay may cause usability issues for some users."),c=gt.Platform.select({web:(0,gt.useCallback)((e=>e?l:null),[]),native:l}),u=(0,gt.useMemo)((()=>{const t=t=>o=>{e({[t]:o,..."autoplay"===t&&{muted:o,playsInline:o}})};return{autoplay:t("autoplay"),loop:t("loop"),muted:t("muted"),controls:t("controls"),playsInline:t("playsInline")}}),[]),d=(0,gt.useCallback)((t=>{e({preload:t})}),[]);return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Autoplay"),isShownByDefault:!0,hasValue:()=>!!o,onDeselect:()=>{e({autoplay:!1,muted:!1})},children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Autoplay"),onChange:u.autoplay,checked:!!o,help:c})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Loop"),isShownByDefault:!0,hasValue:()=>!!r,onDeselect:()=>{e({loop:!1})},children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Loop"),onChange:u.loop,checked:!!r})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Muted"),isShownByDefault:!0,hasValue:()=>!!a,onDeselect:()=>{e({muted:!1})},children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Muted"),onChange:u.muted,checked:!!a,disabled:o,help:o?(0,pt.__)("Muted because of Autoplay."):null})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Playback controls"),isShownByDefault:!0,hasValue:()=>!n,onDeselect:()=>{e({controls:!0})},children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Playback controls"),onChange:u.controls,checked:!!n})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Play inline"),isShownByDefault:!0,hasValue:()=>!!i,onDeselect:()=>{e({playsInline:!1})},children:(0,it.jsx)(mt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pt.__)("Play inline"),onChange:u.playsInline,checked:!!i,disabled:o,help:o?(0,pt.__)("Play inline enabled because of Autoplay."):(0,pt.__)("When enabled, videos will play directly within the webpage on mobile browsers, instead of opening in a fullscreen player.")})}),(0,it.jsx)(mt.__experimentalToolsPanelItem,{label:(0,pt.__)("Preload"),isShownByDefault:!0,hasValue:()=>"metadata"!==s,onDeselect:()=>{e({preload:"metadata"})},children:(0,it.jsx)(mt.SelectControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("Preload"),value:s,onChange:d,options:fN,hideCancelButton:!0})})]})};const{Badge:vN}=jo(mt.privateApis),kN=["text/vtt"],wN=[{label:(0,pt.__)("Subtitles"),value:"subtitles"},{label:(0,pt.__)("Captions"),value:"captions"},{label:(0,pt.__)("Descriptions"),value:"descriptions"},{label:(0,pt.__)("Chapters"),value:"chapters"},{label:(0,pt.__)("Metadata"),value:"metadata"}],CN={src:"",label:"",srcLang:"en",kind:"subtitles",default:!1};function jN({tracks:e,onEditPress:t}){const o=e.map(((e,o)=>(0,it.jsxs)(mt.__experimentalHStack,{className:"block-library-video-tracks-editor__track-list-track",children:[(0,it.jsx)("span",{children:e.label}),(0,it.jsxs)(mt.__experimentalHStack,{justify:"flex-end",children:[e.default&&(0,it.jsx)(vN,{children:(0,pt.__)("Default")}),(0,it.jsx)(mt.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:()=>t(o),"aria-label":(0,pt.sprintf)((0,pt._x)("Edit %s","text tracks"),e.label),children:(0,pt.__)("Edit")})]})]},e.id??e.src)));return(0,it.jsx)(mt.MenuGroup,{label:(0,pt.__)("Text tracks"),className:"block-library-video-tracks-editor__track-list",children:o})}function SN({track:e,onChange:t,onClose:o,onRemove:n,allowSettingDefault:r}){const[a,i]=(0,gt.useState)({...CN,...e}),{src:s,label:l,srcLang:c,kind:u,default:d}=a,p=s.startsWith("blob:")?"":(0,no.getFilename)(s)||"";return(0,it.jsxs)(mt.__experimentalVStack,{className:"block-library-video-tracks-editor__single-track-editor",spacing:"4",children:[(0,it.jsx)("span",{className:"block-library-video-tracks-editor__single-track-editor-edit-track-label",children:(0,pt.__)("Edit track")}),(0,it.jsxs)("span",{children:[(0,pt.__)("File"),": ",(0,it.jsx)("b",{children:p})]}),(0,it.jsxs)(mt.__experimentalGrid,{columns:2,gap:4,children:[(0,it.jsx)(mt.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,onChange:e=>i((t=>({...t,label:e}))),label:(0,pt.__)("Label"),value:l,help:(0,pt.__)("Title of track")}),(0,it.jsx)(mt.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,onChange:e=>i((t=>({...t,srcLang:e}))),label:(0,pt.__)("Source language"),value:c,help:(0,pt.__)("Language tag (en, fr, etc.)")})]}),(0,it.jsxs)(mt.__experimentalVStack,{spacing:"4",children:[(0,it.jsx)(mt.SelectControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,className:"block-library-video-tracks-editor__single-track-editor-kind-select",options:wN,value:u,label:(0,pt.__)("Kind"),onChange:e=>i((t=>({...t,kind:e})))}),(0,it.jsx)(mt.ToggleControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,pt.__)("Set as default track"),checked:d,disabled:!r,onChange:e=>i((t=>({...t,default:e})))}),(0,it.jsxs)(mt.__experimentalHStack,{className:"block-library-video-tracks-editor__single-track-editor-buttons-container",children:[(0,it.jsx)(mt.Button,{__next40pxDefaultSize:!0,isDestructive:!0,variant:"link",onClick:n,children:(0,pt.__)("Remove track")}),(0,it.jsx)(mt.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:()=>{t(a),o()},children:(0,pt.__)("Apply")})]})]})]})}function BN({tracks:e=[],onChange:t}){const o=(0,lt.useSelect)((e=>e(ct.store).getSettings().mediaUpload),[]),[n,r]=(0,gt.useState)(null),a=(0,gt.useRef)(),i=(o=[],n=!1)=>{const r=new Map(e.map((e=>[e.id,e]))),a=o.map((({id:e,title:t,url:o})=>r.has(e)?r.get(e):{...CN,id:e,label:t||"",src:o}));0!==a.length&&t([...n?e:[],...a])};function s(e){const t=e.target.files;o({allowedTypes:kN,filesList:t,onFileChange:e=>{if(!Array.isArray(e))return;const t=e.filter((e=>!!e?.id));t.length&&i(t,!0)}})}return(0,gt.useEffect)((()=>{a.current?.focus()}),[n]),o?(0,it.jsx)(mt.Dropdown,{contentClassName:"block-library-video-tracks-editor",focusOnMount:!0,popoverProps:{ref:a},renderToggle:({isOpen:e,onToggle:t})=>(0,it.jsx)(mt.ToolbarGroup,{children:(0,it.jsx)(mt.ToolbarButton,{"aria-expanded":e,"aria-haspopup":"true",onClick:()=>{e||r(null),t()},children:(0,pt.__)("Text tracks")})}),renderContent:()=>null!==n?(0,it.jsx)(SN,{track:e[n],onChange:o=>{const r=[...e];r[n]=o,t(r)},onClose:()=>r(null),onRemove:()=>{t(e.filter(((e,t)=>t!==n))),r(null)},allowSettingDefault:!e.some((e=>e.default))||e[n].default}):(0,it.jsxs)(it.Fragment,{children:[0===e.length&&(0,it.jsxs)("div",{className:"block-library-video-tracks-editor__tracks-informative-message",children:[(0,it.jsx)("h2",{className:"block-library-video-tracks-editor__tracks-informative-message-title",children:(0,pt.__)("Text tracks")}),(0,it.jsx)("p",{className:"block-library-video-tracks-editor__tracks-informative-message-description",children:(0,pt.__)("Tracks can be subtitles, captions, chapters, or descriptions. They help make your content more accessible to a wider range of users.")})]}),(0,it.jsxs)(mt.NavigableMenu,{children:[(0,it.jsx)(jN,{tracks:e,onEditPress:r}),(0,it.jsx)(mt.MenuGroup,{className:"block-library-video-tracks-editor__add-tracks-container",label:(0,pt.__)("Add tracks"),children:(0,it.jsxs)(ct.MediaUploadCheck,{children:[(0,it.jsx)(ct.MediaUpload,{onSelect:i,allowedTypes:kN,value:e.map((({id:e})=>e)),multiple:!0,render:({open:e})=>(0,it.jsx)(mt.MenuItem,{icon:sh,onClick:e,children:(0,pt.__)("Open Media Library")})}),(0,it.jsx)(mt.FormFileUpload,{onChange:s,accept:".vtt,text/vtt",multiple:!0,render:({openFileDialog:e})=>(0,it.jsx)(mt.MenuItem,{icon:Jp,onClick:e,children:(0,pt._x)("Upload","verb")})})]})})]})]})}):null}const TN=["video"];var NN=function({isSelected:e,attributes:t,className:o,setAttributes:n,insertBlocksAfter:r,onReplace:a}){const i=(0,gt.useRef)(),{id:s,controls:l,poster:c,src:u,tracks:d}=t,[p,m]=(0,gt.useState)(t.blob),g=vt(),h="default"===(0,ct.useBlockEditingMode)();function _(e){if(!e||!e.url)return n({src:void 0,id:void 0,poster:void 0,caption:void 0,blob:void 0}),void m();(0,ht.isBlobURL)(e.url)?m(e.url):(n({blob:void 0,src:e.url,id:e.id,poster:e.image?.src!==e.icon?e.image?.src:void 0,caption:e.caption}),m())}function x(e){if(e!==u){const t=No({attributes:{url:e}});if(void 0!==t&&a)return void a(t);n({blob:void 0,src:e,id:void 0,poster:void 0}),m()}}ft({url:p,allowedTypes:TN,onChange:_,onError:f}),(0,gt.useEffect)((()=>{i.current&&i.current.load()}),[c]);const{createErrorNotice:b}=(0,lt.useDispatch)(bo.store);function f(e){b(e,{type:"snackbar"})}const y=t=>(0,it.jsx)(mt.Placeholder,{className:"block-editor-media-placeholder",withIllustration:!e,icon:mN,label:(0,pt.__)("Video"),instructions:(0,pt.__)("Drag and drop a video, upload, or choose from your library."),children:t}),v=Dt(o,{"is-transient":!!p}),k=(0,ct.useBlockProps)({className:v});return u||p?(0,it.jsxs)(it.Fragment,{children:[e&&(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(ct.BlockControls,{children:(0,it.jsx)(BN,{tracks:d,onChange:e=>{n({tracks:e})}})}),(0,it.jsx)(ct.BlockControls,{group:"other",children:(0,it.jsx)(ct.MediaReplaceFlow,{mediaId:s,mediaURL:u,allowedTypes:TN,accept:"video/*",onSelect:_,onSelectURL:x,onError:f,onReset:()=>_(void 0)})})]}),(0,it.jsx)(ct.InspectorControls,{children:(0,it.jsxs)(mt.__experimentalToolsPanel,{label:(0,pt.__)("Settings"),resetAll:()=>{n({autoplay:!1,controls:!0,loop:!1,muted:!1,playsInline:!1,preload:"metadata",poster:void 0})},dropdownMenuProps:g,children:[(0,it.jsx)(yN,{setAttributes:n,attributes:t}),(0,it.jsx)(_s,{poster:c,onChange:e=>n({poster:e?.url})})]})}),(0,it.jsxs)("figure",{...k,children:[(0,it.jsx)(mt.Disabled,{isDisabled:!e,children:(0,it.jsx)("video",{controls:l,poster:c,src:u||p,ref:i,children:(0,it.jsx)(hN,{tracks:d})})}),!!p&&(0,it.jsx)(mt.Spinner,{}),(0,it.jsx)(zo,{attributes:t,setAttributes:n,isSelected:e,insertBlocksAfter:r,label:(0,pt.__)("Video caption text"),showToolbarButton:e&&h})]})]}):(0,it.jsx)("div",{...k,children:(0,it.jsx)(ct.MediaPlaceholder,{icon:(0,it.jsx)(ct.BlockIcon,{icon:mN}),onSelect:_,onSelectURL:x,accept:"video/*",allowedTypes:TN,value:t,onError:f,placeholder:y})})};const PN={from:[{type:"files",isMatch:e=>1===e.length&&0===e[0].type.indexOf("video/"),transform(e){const t=e[0];return(0,st.createBlock)("core/video",{blob:(0,ht.createBlobURL)(t)})}},{type:"shortcode",tag:"video",attributes:{src:{type:"string",shortcode:({named:{src:e,mp4:t,m4v:o,webm:n,ogv:r,flv:a}})=>e||t||o||n||r||a},poster:{type:"string",shortcode:({named:{poster:e}})=>e},loop:{type:"string",shortcode:({named:{loop:e}})=>e},autoplay:{type:"string",shortcode:({named:{autoplay:e}})=>e},preload:{type:"string",shortcode:({named:{preload:e}})=>e}}},{type:"raw",isMatch:e=>"P"===e.nodeName&&1===e.children.length&&"VIDEO"===e.firstChild.nodeName,transform:e=>{const t=e.firstChild,o={autoplay:!!t.hasAttribute("autoplay")||void 0,controls:!!t.hasAttribute("controls")&&void 0,loop:!!t.hasAttribute("loop")||void 0,muted:!!t.hasAttribute("muted")||void 0,preload:t.getAttribute("preload")||void 0,playsInline:!!t.hasAttribute("playsinline")||void 0,poster:t.getAttribute("poster")||void 0,src:t.getAttribute("src")||void 0};return(0,ht.isBlobURL)(o.src)&&(o.blob=o.src,delete o.src),(0,st.createBlock)("core/video",o)}}]};var IN=PN;const{name:DN}=gN,MN={icon:mN,example:{attributes:{src:"https://upload.wikimedia.org/wikipedia/commons/c/ca/Wood_thrush_in_Central_Park_switch_sides_%2816510%29.webm",caption:(0,pt.__)("Wood thrush singing in Central Park, NYC.")}},transforms:IN,deprecated:bN,edit:NN,save:function({attributes:e}){const{autoplay:t,caption:o,controls:n,loop:r,muted:a,poster:i,preload:s,src:l,playsInline:c,tracks:u}=e;return(0,it.jsxs)("figure",{...ct.useBlockProps.save(),children:[l&&(0,it.jsx)("video",{autoPlay:t,controls:n,loop:r,muted:a,poster:i,preload:"metadata"!==s?s:void 0,src:l,playsInline:c,children:(0,it.jsx)(hN,{tracks:u})}),!ct.RichText.isEmpty(o)&&(0,it.jsx)(ct.RichText.Content,{className:(0,ct.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:o})]})}},zN=()=>jt({name:DN,metadata:gN,settings:MN});const AN=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/footnotes","title":"Footnotes","category":"text","description":"Display footnotes added to the page.","keywords":["references"],"textdomain":"default","usesContext":["postId","postType"],"supports":{"__experimentalBorder":{"radius":true,"color":true,"width":true,"style":true,"__experimentalDefaultControls":{"radius":false,"color":false,"width":false,"style":false}},"color":{"background":true,"link":true,"text":true,"__experimentalDefaultControls":{"link":true,"text":true}},"html":false,"multiple":false,"reusable":false,"inserter":false,"spacing":{"margin":true,"padding":true,"__experimentalDefaultControls":{"margin":false,"padding":false}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalTextDecoration":true,"__experimentalFontStyle":true,"__experimentalFontWeight":true,"__experimentalLetterSpacing":true,"__experimentalTextTransform":true,"__experimentalWritingMode":true,"__experimentalDefaultControls":{"fontSize":true}},"interactivity":{"clientNavigation":true}},"style":"wp-block-footnotes"}'),LN={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let HN;const RN=new Uint8Array(16);function VN(){if(!HN&&(HN="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!HN))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return HN(RN)}const FN=[];for(let e=0;e<256;++e)FN.push((e+256).toString(16).slice(1));function EN(e,t=0){return FN[e[t+0]]+FN[e[t+1]]+FN[e[t+2]]+FN[e[t+3]]+"-"+FN[e[t+4]]+FN[e[t+5]]+"-"+FN[e[t+6]]+FN[e[t+7]]+"-"+FN[e[t+8]]+FN[e[t+9]]+"-"+FN[e[t+10]]+FN[e[t+11]]+FN[e[t+12]]+FN[e[t+13]]+FN[e[t+14]]+FN[e[t+15]]}const ON=function(e,t,o){if(LN.randomUUID&&!t&&!e)return LN.randomUUID();const n=(e=e||{}).random||(e.rng||VN)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){o=o||0;for(let e=0;e<16;++e)t[o+e]=n[e];return t}return EN(n)},{usesContextKey:GN}=jo(ct.privateApis),$N="core/footnote",UN="core/post-content",qN={title:(0,pt.__)("Footnote"),tagName:"sup",className:"fn",attributes:{"data-fn":"data-fn"},interactive:!0,contentEditable:!1,[GN]:["postType","postId"],edit:function({value:e,onChange:t,isObjectActive:o,context:{postType:n,postId:r}}){const a=(0,lt.useRegistry)(),{getSelectedBlockClientId:i,getBlocks:s,getBlockRootClientId:l,getBlockName:c,getBlockParentsByBlockName:u}=a.select(ct.store),d=(0,lt.useSelect)((e=>{if(!e(st.store).getBlockType("core/footnotes"))return!1;const t=e(ct.store).getSettings().allowedBlockTypes;if(!1===t||Array.isArray(t)&&!t.includes("core/footnotes"))return!1;const o=e(_t.store).getEntityRecord("postType",n,r);if("string"!=typeof o?.meta?.footnotes)return!1;const{getBlockParentsByBlockName:a,getSelectedBlockClientId:i}=e(ct.store),s=a(i(),"core/block");return!s||0===s.length}),[n,r]),{selectionChange:p,insertBlock:m}=(0,lt.useDispatch)(ct.store);if(!d)return null;return(0,it.jsx)(ct.RichTextToolbarButton,{icon:Wm,title:(0,pt.__)("Footnote"),onClick:function(){a.batch((()=>{let n;if(o){const t=e.replacements[e.start];n=t?.attributes?.["data-fn"]}else{n=ON();const o=(0,Tn.insertObject)(e,{type:$N,attributes:{"data-fn":n},innerHTML:`<a href="#${n}" id="${n}-link">*</a>`},e.end,e.end);o.start=o.end-1,t(o)}const r=i(),a=u(r,UN);let d=null;{const e=[...a.length?s(a[0]):s()];for(;e.length;){const t=e.shift();if("core/footnotes"===t.name){d=t;break}e.push(...t.innerBlocks)}}if(!d){let e=l(r);for(;e&&c(e)!==UN;)e=l(e);d=(0,st.createBlock)("core/footnotes"),m(d,void 0,e)}p(d.clientId,n,0,0)}))},isActive:o})}},{name:WN}=AN,ZN={icon:Wm,edit:function({context:{postType:e,postId:t}}){const[o,n]=(0,_t.useEntityProp)("postType",e,"meta",t),r="string"==typeof o?.footnotes,a=o?.footnotes?JSON.parse(o.footnotes):[],i=(0,ct.useBlockProps)();return r?a.length?(0,it.jsx)("ol",{...i,children:a.map((({id:e,content:t})=>(0,it.jsxs)("li",{onMouseDown:e=>{e.target===e.currentTarget&&(e.target.firstElementChild.focus(),e.preventDefault())},children:[(0,it.jsx)(ct.RichText,{id:e,tagName:"span",value:t,identifier:e,onFocus:e=>{e.target.textContent.trim()||e.target.scrollIntoView()},onChange:t=>{n({...o,footnotes:JSON.stringify(a.map((o=>o.id===e?{content:t,id:e}:o)))})}})," ",(0,it.jsx)("a",{href:`#${e}-link`,children:"↩︎"})]},e)))}):(0,it.jsx)("div",{...i,children:(0,it.jsx)(mt.Placeholder,{icon:(0,it.jsx)(ct.BlockIcon,{icon:Wm}),label:(0,pt.__)("Footnotes"),instructions:(0,pt.__)("Footnotes found in blocks within this document will be displayed here.")})}):(0,it.jsx)("div",{...i,children:(0,it.jsx)(mt.Placeholder,{icon:(0,it.jsx)(ct.BlockIcon,{icon:Wm}),label:(0,pt.__)("Footnotes"),instructions:(0,pt.__)("Footnotes are not supported here. Add this block to post or page content.")})})}},JN=()=>{(0,Tn.registerFormatType)($N,qN),jt({name:WN,metadata:AN,settings:ZN})};var QN,KN,YN=Object.getOwnPropertyNames;const XN=(QN={"packages/block-library/src/utils/is-block-metadata-experimental.js"(e,t){t.exports=function(e){return e&&"__experimental"in e&&!1!==e.__experimental}}},function(){return KN||(0,QN[YN(QN)[0]])((KN={exports:{}}).exports,KN),KN.exports})(),eP=window.wp.keyboardShortcuts;var tP=function(){const{registerShortcut:e}=(0,lt.useDispatch)(eP.store),{replaceBlocks:t}=(0,lt.useDispatch)(ct.store),{getBlockName:o,getSelectedBlockClientId:n,getBlockAttributes:r}=(0,lt.useSelect)(ct.store),a=(e,a)=>{e.preventDefault();const i=n();if(null===i)return;const s=o(i),l="core/paragraph"===s,c="core/heading"===s;if(!l&&!c)return;const u=0===a?"core/paragraph":"core/heading",d=r(i);if(l&&0===a||c&&d.level===a)return;const p="core/paragraph"===s?"align":"textAlign",m="core/paragraph"===u?"align":"textAlign";t(i,(0,st.createBlock)(u,{level:a,content:d.content,[m]:d[p]}))};return(0,gt.useEffect)((()=>{e({name:"core/block-editor/transform-heading-to-paragraph",category:"block-library",description:(0,pt.__)("Transform heading to paragraph."),keyCombination:{modifier:"access",character:"0"},aliases:[{modifier:"access",character:"7"}]}),[1,2,3,4,5,6].forEach((t=>{e({name:`core/block-editor/transform-paragraph-to-heading-${t}`,category:"block-library",description:(0,pt.__)("Transform paragraph to heading."),keyCombination:{modifier:"access",character:`${t}`}})}))}),[e]),(0,eP.useShortcut)("core/block-editor/transform-heading-to-paragraph",(e=>a(e,0))),(0,eP.useShortcut)("core/block-editor/transform-paragraph-to-heading-1",(e=>a(e,1))),(0,eP.useShortcut)("core/block-editor/transform-paragraph-to-heading-2",(e=>a(e,2))),(0,eP.useShortcut)("core/block-editor/transform-paragraph-to-heading-3",(e=>a(e,3))),(0,eP.useShortcut)("core/block-editor/transform-paragraph-to-heading-4",(e=>a(e,4))),(0,eP.useShortcut)("core/block-editor/transform-paragraph-to-heading-5",(e=>a(e,5))),(0,eP.useShortcut)("core/block-editor/transform-paragraph-to-heading-6",(e=>a(e,6))),null};const oP={};Co(oP,{BlockKeyboardShortcuts:tP});const nP=()=>(()=>{const r=[se,$,E,V,W,J,ze,e,t,o,n,i,l,u,d,p,m,h,_,x,f,I,D,M,z,F,G,Z,U,q,K,Y,X,ne,ae,ie,re,Ce,je,Ae,He,Re,Ve,Fe,$e,Ue,qe,We,Je,ot,nt,rt,at,ee,te,oe,Ee,Ge,Oe,Se,Qe,s,we,xe,be,he,le,ce,de,pe,ge,_e,ve,fe,ye,ke,Te,Ne,Pe,Ie,Be,Me,Le,b,y,v,k,w,C,j,P,B,T,N,S,me,Ze,O,Q,Ke,Ye,Xe,et,tt,De,ue];return window?.__experimentalEnableBlockExperiments&&r.push(c),window?.__experimentalEnableFormBlocks&&(r.push(A),r.push(L),r.push(H),r.push(R)),window?.wp?.oldEditor&&(window?.wp?.needsClassicBlock||!window?.__experimentalDisableTinymce||new URLSearchParams(window?.location?.search).get("requiresTinymce"))&&r.push(g),r.filter(Boolean)})().filter((({metadata:e})=>!XN(e))),rP=(e=nP())=>{e.forEach((({init:e})=>e())),window.__unstableAutoRegisterBlocks&&window.__unstableAutoRegisterBlocks.forEach((e=>{const t=jo((0,lt.select)(st.store)).getBootstrappedBlockType(e).apiVersion;(0,st.registerBlockType)(e,{title:e,...t<3&&{apiVersion:3},edit:function({attributes:t}){const o=(0,ct.useBlockProps)(),{content:n,status:r,error:a}=(0,ut.useServerSideRender)({block:e,attributes:t});return"loading"===r?(0,it.jsx)("div",{...o,children:(0,pt.__)("Loading…")}):"error"===r?(0,it.jsx)("div",{...o,children:(0,pt.sprintf)((0,pt.__)("Error loading block: %s"),a)}):(0,it.jsx)("div",{...o,dangerouslySetInnerHTML:{__html:n||""}})},save:()=>null})})),(0,st.setDefaultBlockName)(Kb),window.wp&&window.wp.oldEditor&&e.some((({name:e})=>e===lr))&&(0,st.setFreeformContentHandlerName)(lr),(0,st.setUnregisteredTypeHandlerName)(Th),(0,st.setGroupingBlockName)(Jd)},aP=void 0})(),(window.wp=window.wp||{}).blockLibrary=a})();
\ No newline at end of file
diff --git a/wp-includes/js/dist/editor.js b/wp-includes/js/dist/editor.js
index 373cdc13a0..25ab0ee2b0 100644
--- a/wp-includes/js/dist/editor.js
+++ b/wp-includes/js/dist/editor.js
@@ -29218,7 +29218,15 @@ function Comments({
   };
   const hasThreads = Array.isArray(threads) && threads.length > 0;
   if (!hasThreads && !isFloating) {
-    return null;
+    return /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
+      AddComment,
+      {
+        onSubmit: onAddReply,
+        newNoteFormState,
+        setNewNoteFormState,
+        commentSidebarRef
+      }
+    );
   }
   return /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, { children: [
     !isFloating && newNoteFormState === "open" && /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
@@ -29294,18 +29302,40 @@ function Thread({
     selectedThread,
     commentLastUpdated
   });
+  const isKeyboardTabbingRef = (0,external_wp_element_namespaceObject.useRef)(false);
   const onMouseEnter = () => {
     debouncedToggleBlockHighlight(thread.blockClientId, true);
   };
   const onMouseLeave = () => {
     debouncedToggleBlockHighlight(thread.blockClientId, false);
   };
+  const onFocus = () => {
+    toggleBlockHighlight(thread.blockClientId, true);
+  };
+  const onBlur = (event) => {
+    const isNoteFocused = event.relatedTarget?.closest(
+      ".editor-collab-sidebar-panel__thread"
+    );
+    const isDialogFocused = event.relatedTarget?.closest('[role="dialog"]');
+    const isTabbing = isKeyboardTabbingRef.current;
+    if (isNoteFocused && !isTabbing) {
+      return;
+    }
+    if (isDialogFocused) {
+      return;
+    }
+    if (isTabbing && event.currentTarget.contains(event.relatedTarget)) {
+      return;
+    }
+    toggleBlockHighlight(thread.blockClientId, false);
+    unselectThread();
+  };
   const handleCommentSelect = () => {
     setNewNoteFormState("closed");
     setSelectedThread(thread.id);
+    toggleBlockSpotlight(thread.blockClientId, true);
     if (!!thread.blockClientId) {
       selectBlock(thread.blockClientId, null);
-      toggleBlockSpotlight(thread.blockClientId, true);
     }
   };
   const unselectThread = () => {
@@ -29356,9 +29386,20 @@ function Thread({
       onClick: handleCommentSelect,
       onMouseEnter,
       onMouseLeave,
-      onFocus: onMouseEnter,
-      onBlur: onMouseLeave,
-      onKeyDown,
+      onFocus,
+      onBlur,
+      onKeyUp: (event) => {
+        if (event.key === "Tab") {
+          isKeyboardTabbingRef.current = false;
+        }
+      },
+      onKeyDown: (event) => {
+        if (event.key === "Tab") {
+          isKeyboardTabbingRef.current = true;
+        } else {
+          onKeyDown(event);
+        }
+      },
       tabIndex: 0,
       role: "treeitem",
       "aria-label": ariaLabel,
@@ -29379,7 +29420,7 @@ function Thread({
                 "textarea"
               );
             },
-            children: (0,external_wp_i18n_namespaceObject.__)("Add new note")
+            children: (0,external_wp_i18n_namespaceObject.__)("Add new reply")
           }
         ),
         !thread.blockClientId && /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalText, { as: "p", weight: 500, variant: "muted", children: (0,external_wp_i18n_namespaceObject.__)("Original block deleted.") }),
@@ -29560,6 +29601,12 @@ const CommentBoard = ({
   ];
   const canResolve = thread.parent === 0;
   const moreActions = parent?.status !== "approved" ? actions.filter((item) => item.isEligible(thread)) : [];
+  const deleteConfirmMessage = (
+    // When deleting a top level note, descendants will also be deleted.
+    thread.parent === 0 ? (0,external_wp_i18n_namespaceObject.__)(
+      "Are you sure you want to delete this note? This will also delete all of this note's replies."
+    ) : (0,external_wp_i18n_namespaceObject.__)("Are you sure you want to delete this reply?")
+  );
   return /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsxs)(
     external_wp_components_namespaceObject.__experimentalVStack,
     {
@@ -29620,14 +29667,20 @@ const CommentBoard = ({
                       )
                     }
                   ),
-                  /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(comments_Menu.Popover, { children: moreActions.map((action) => /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
-                    comments_Menu.Item,
+                  /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
+                    comments_Menu.Popover,
                     {
-                      onClick: () => action.onClick(),
-                      children: /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(comments_Menu.ItemLabel, { children: action.title })
-                    },
-                    action.id
-                  )) })
+                      modal: false,
+                      children: moreActions.map((action) => /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
+                        comments_Menu.Item,
+                        {
+                          onClick: () => action.onClick(),
+                          children: /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(comments_Menu.ItemLabel, { children: action.title })
+                        },
+                        action.id
+                      ))
+                    }
+                  )
                 ] })
               ] })
             }
@@ -29686,9 +29739,7 @@ const CommentBoard = ({
             onConfirm: handleConfirmDelete,
             onCancel: handleCancel,
             confirmButtonText: (0,external_wp_i18n_namespaceObject.__)("Delete"),
-            children: (0,external_wp_i18n_namespaceObject.__)(
-              "Are you sure you want to delete this note? This will also delete all of this note's replies."
-            )
+            children: deleteConfirmMessage
           }
         )
       ]
diff --git a/wp-includes/js/dist/editor.min.js b/wp-includes/js/dist/editor.min.js
index 4a81f74484..ae1b3cf5ce 100644
--- a/wp-includes/js/dist/editor.min.js
+++ b/wp-includes/js/dist/editor.min.js
@@ -11,4 +11,4 @@
  * Copyright (c) 2014-2017, Jon Schlinkert.
  * Released under the MIT License.
  */
-function ki(e){return"[object Object]"===Object.prototype.toString.call(e)}function Ci(e){var t,s;return!1!==ki(e)&&(void 0===(t=e.constructor)||!1!==ki(s=t.prototype)&&!1!==s.hasOwnProperty("isPrototypeOf"))}const{GlobalStylesContext:Pi,cleanEmptyObject:ji}=$(g.privateApis);function Ei(e,t){return Si()(e,t,{isMergeableObject:Ci,customMerge:e=>{if("backgroundImage"===e)return(e,t)=>t}})}function Ti(){const[e,t,s]=function(){const{globalStylesId:e,isReady:t,settings:s,styles:n,_links:o}=(0,d.useSelect)((e=>{const{getEntityRecord:t,getEditedEntityRecord:s,hasFinishedResolution:n,canUser:o}=e(u.store),r=e(u.store).__experimentalGetCurrentGlobalStylesId();let i;const a=r?o("update",{kind:"root",name:"globalStyles",id:r}):null;r&&"boolean"==typeof a&&(i=a?s("root","globalStyles",r):t("root","globalStyles",r,{context:"view"}));let l=!1;return n("__experimentalGetCurrentGlobalStylesId")&&(l=!r||(a?n("getEditedEntityRecord",["root","globalStyles",r]):n("getEntityRecord",["root","globalStyles",r,{context:"view"}]))),{globalStylesId:r,isReady:l,settings:i?.settings,styles:i?.styles,_links:i?._links}}),[]),{getEditedEntityRecord:r}=(0,d.useSelect)(u.store),{editEntityRecord:i}=(0,d.useDispatch)(u.store);return[t,(0,p.useMemo)((()=>({settings:s??{},styles:n??{},_links:o??{}})),[s,n,o]),(0,p.useCallback)(((t,s={})=>{const n=r("root","globalStyles",e),o="function"==typeof t?t({styles:n?.styles??{},settings:n?.settings??{},_links:n?._links??{}}):t;i("root","globalStyles",e,{styles:ji(o.styles)||{},settings:ji(o.settings)||{},_links:ji(o._links)||{}},s)}),[e,i,r])]}(),[n,o]=function(){const e=(0,d.useSelect)((e=>e(u.store).__experimentalGetCurrentThemeBaseGlobalStyles()),[]);return[!!e,e]}(),r=(0,p.useMemo)((()=>o&&t?Ei(o,t):{}),[t,o]);return(0,p.useMemo)((()=>({isReady:e&&n,user:t,base:o,merged:r,setUserConfig:s})),[r,t,o,s,e,n])}const Bi={};function Ii(e){const{RECEIVE_INTERMEDIATE_RESULTS:t}=$(u.privateApis),{getEntityRecords:s}=e(u.store);return s("postType","wp_block",{per_page:-1,[t]:!0})}const Ni=["__experimentalBlockBindingsSupportedAttributes","__experimentalBlockDirectory","__experimentalDiscussionSettings","__experimentalFeatures","__experimentalGlobalStylesBaseStyles","alignWide","blockInspectorTabs","maxUploadFileSize","allowedMimeTypes","bodyPlaceholder","canLockBlocks","canUpdateBlockBindings","capabilities","clearBlockSelection","codeEditingEnabled","colors","disableCustomColors","disableCustomFontSizes","disableCustomSpacingSizes","disableCustomGradients","disableLayoutStyles","enableCustomLineHeight","enableCustomSpacing","enableCustomUnits","enableOpenverseMediaCategory","fontSizes","gradients","generateAnchors","onNavigateToEntityRecord","imageDefaultSize","imageDimensions","imageEditing","imageSizes","isPreviewMode","isRTL","locale","maxWidth","postContentAttributes","postsPerPage","readOnly","styles","titlePlaceholder","supportsLayout","widgetTypesToHideFromLegacyWidgetBlock","__unstableHasCustomAppender","__unstableResolvedAssets","__unstableIsBlockBasedTheme"],{globalStylesDataKey:Ri,globalStylesLinksDataKey:Di,selectBlockPatternsKey:Ai,reusableBlocksSelectKey:Mi,sectionRootClientIdKey:Li,mediaEditKey:Oi}=$(g.privateApis);var Fi=function(e,t,s,n){const o=(0,m.useViewportMatch)("medium"),{allowRightClickOverrides:r,blockTypes:i,focusMode:a,hasFixedToolbar:l,isDistractionFree:c,keepCaretInsideBlock:h,hasUploadPermissions:_,hiddenBlockTypes:f,canUseUnfilteredHTML:b,userCanCreatePages:y,pageOnFront:v,pageForPosts:w,userPatternCategories:S,restBlockPatternCategories:k,sectionRootClientId:P}=(0,d.useSelect)((e=>{const{canUser:r,getRawEntityRecord:i,getEntityRecord:a,getUserPatternCategories:l,getBlockPatternCategories:c}=e(u.store),{get:d}=e(C.store),{getBlockTypes:p}=e(x.store),{getBlocksByName:m,getBlockAttributes:h}=e(g.store),_=r("read",{kind:"root",name:"site"})?a("root","site"):void 0;return{allowRightClickOverrides:d("core","allowRightClickOverrides"),blockTypes:p(),canUseUnfilteredHTML:i("postType",t,s)?._links?.hasOwnProperty("wp:action-unfiltered-html"),focusMode:d("core","focusMode"),hasFixedToolbar:d("core","fixedToolbar")||!o,hiddenBlockTypes:d("core","hiddenBlockTypes"),isDistractionFree:d("core","distractionFree"),keepCaretInsideBlock:d("core","keepCaretInsideBlock"),hasUploadPermissions:r("create",{kind:"postType",name:"attachment"})??!0,userCanCreatePages:r("create",{kind:"postType",name:"page"}),pageOnFront:_?.page_on_front,pageForPosts:_?.page_for_posts,userPatternCategories:l(),restBlockPatternCategories:c(),sectionRootClientId:"template-locked"===n?m("core/post-content")?.[0]??"":m("core/group").find((e=>"main"===h(e)?.tagName))??""}}),[t,s,o,n]),{merged:j}=Ti(),E=j.styles??Bi,T=j._links??Bi,B=e.__experimentalAdditionalBlockPatterns??e.__experimentalBlockPatterns,I=e.__experimentalAdditionalBlockPatternCategories??e.__experimentalBlockPatternCategories,N=(0,p.useMemo)((()=>[...B||[]].filter((({postTypes:e})=>!e||Array.isArray(e)&&e.includes(t)))),[B,t]),R=(0,p.useMemo)((()=>[...I||[],...k||[]].filter(((e,t,s)=>t===s.findIndex((t=>e.name===t.name))))),[I,k]),{undo:D,setIsInserterOpened:A}=(0,d.useDispatch)(vc),{editMediaEntity:M}=$((0,d.useDispatch)(u.store)),{saveEntityRecord:L}=(0,d.useDispatch)(u.store),O=(0,p.useCallback)((e=>y?L("postType","page",e):Promise.reject({message:(0,fs.__)("You do not have permission to create Pages.")})),[L,y]),F=(0,p.useMemo)((()=>{if(f&&f.length>0){return(!0===e.allowedBlockTypes?i.map((({name:e})=>e)):e.allowedBlockTypes||[]).filter((e=>!f.includes(e)))}return e.allowedBlockTypes}),[e.allowedBlockTypes,f,i]),V=!1===e.focusMode;return(0,p.useMemo)((()=>{const s={...Object.fromEntries(Object.entries(e).filter((([e])=>Ni.includes(e)))),[Ri]:E,[Di]:T,allowedBlockTypes:F,allowRightClickOverrides:r,focusMode:a&&!V,hasFixedToolbar:l,isDistractionFree:c,keepCaretInsideBlock:h,[Oi]:_?M:void 0,mediaUpload:_?yi:void 0,mediaSideload:_?vi:void 0,__experimentalBlockPatterns:N,[Ai]:e=>{const{hasFinishedResolution:s,getBlockPatternsForPostType:n}=$(e(u.store)),o=n(t);return s("getBlockPatterns")?o:void 0},[Mi]:Ii,__experimentalBlockPatternCategories:R,__experimentalUserPatternCategories:S,__experimentalFetchLinkSuggestions:(t,s)=>(0,u.__experimentalFetchLinkSuggestions)(t,s,e),inserterMediaCategories:di,__experimentalFetchRichUrlData:u.__experimentalFetchUrlData,__experimentalCanUserUseUnfilteredHTML:b,__experimentalUndo:D,outlineMode:!c&&"wp_template"===t,__experimentalCreatePageEntity:O,__experimentalUserCanCreatePages:y,pageOnFront:v,pageForPosts:w,__experimentalPreferPatternsOnRoot:"wp_template"===t,templateLock:"wp_navigation"===t?"insert":e.templateLock,template:"wp_navigation"===t?[["core/navigation",{},[]]]:e.template,__experimentalSetIsInserterOpened:A,[Li]:P,editorTool:"post-only"===n&&"wp_template"!==t?"edit":void 0};return s}),[F,r,a,V,l,c,h,e,_,S,N,R,b,D,O,y,v,w,t,A,P,E,T,n,M])};const Vi=["core/post-title","core/post-featured-image","core/post-content"];function Ui(){const e=(0,p.useMemo)((()=>[...(0,h.applyFilters)("editor.postContentBlockTypes",Vi)]),[]),t=(0,d.useSelect)((t=>{const{getPostBlocksByName:s}=$(t(vc));return s(e)}),[e]);return t}function Hi(){const e=Ui(),{templateParts:t}=(0,d.useSelect)((e=>{const{getBlocksByName:t}=e(g.store);return{templateParts:t("core/template-part")}}),[]),s=(0,d.useSelect)((e=>{const{getBlockOrder:s}=e(g.store);return t.flatMap((e=>s(e)))}),[t]),n=(0,d.useRegistry)();return(0,p.useEffect)((()=>{const{setBlockEditingMode:e,unsetBlockEditingMode:t}=n.dispatch(g.store);return e("","disabled"),()=>{t("")}}),[n]),(0,p.useEffect)((()=>{const{setBlockEditingMode:t,unsetBlockEditingMode:s}=n.dispatch(g.store);return n.batch((()=>{for(const s of e)t(s,"contentOnly")})),()=>{n.batch((()=>{for(const t of e)s(t)}))}}),[e,n]),(0,p.useEffect)((()=>{const{setBlockEditingMode:e,unsetBlockEditingMode:s}=n.dispatch(g.store);return n.batch((()=>{for(const s of t)e(s,"contentOnly")})),()=>{n.batch((()=>{for(const e of t)s(e)}))}}),[t,n]),(0,p.useEffect)((()=>{const{setBlockEditingMode:e,unsetBlockEditingMode:t}=n.dispatch(g.store);return n.batch((()=>{for(const t of s)e(t,"disabled")})),()=>{n.batch((()=>{for(const e of s)t(e)}))}}),[s,n]),null}function zi(){const e=(0,d.useSelect)((e=>e(g.store).getBlockOrder()?.[0]),[]),{setBlockEditingMode:t,unsetBlockEditingMode:s}=(0,d.useDispatch)(g.store);(0,p.useEffect)((()=>{if(e)return t(e,"contentOnly"),()=>{s(e)}}),[e,s,t])}const Gi=["wp_block","wp_template","wp_template_part"];var $i=(0,c.jsxs)(L.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,c.jsx)(L.Path,{d:"m16 15.5h-8v-1.5h8zm-7.5-2.5h-2v-2h2zm3 0h-2v-2h2zm3 0h-2v-2h2zm3 0h-2v-2h2zm-9-3h-2v-2h2zm3 0h-2v-2h2zm3 0h-2v-2h2zm3 0h-2v-2h2z"}),(0,c.jsx)(L.Path,{d:"m18.5 6.5h-13a.5.5 0 0 0 -.5.5v9.5a.5.5 0 0 0 .5.5h13a.5.5 0 0 0 .5-.5v-9.5a.5.5 0 0 0 -.5-.5zm-13-1.5h13a2 2 0 0 1 2 2v9.5a2 2 0 0 1 -2 2h-13a2 2 0 0 1 -2-2v-9.5a2 2 0 0 1 2-2z"})]}),Wi=(0,c.jsx)(L.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,c.jsx)(L.Path,{d:"M3 6h11v1.5H3V6Zm3.5 5.5h11V13h-11v-1.5ZM21 17H10v1.5h11V17Z"})}),Zi=(0,c.jsx)(L.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,c.jsx)(L.Path,{d:"M20.8 10.7l-4.3-4.3-1.1 1.1 4.3 4.3c.1.1.1.3 0 .4l-4.3 4.3 1.1 1.1 4.3-4.3c.7-.8.7-1.9 0-2.6zM4.2 11.8l4.3-4.3-1-1-4.3 4.3c-.7.7-.7 1.8 0 2.5l4.3 4.3 1.1-1.1-4.3-4.3c-.2-.1-.2-.3-.1-.4z"})}),Yi=(0,c.jsx)(L.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,c.jsx)(L.Path,{fillRule:"evenodd",clipRule:"evenodd",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-2zM8.5 18.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h2.5v13zm10-.5c0 .3-.2.5-.5.5h-8v-13h8c.3 0 .5.2.5.5v12z"})}),qi=(0,c.jsx)(L.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,c.jsx)(L.Path,{fillRule:"evenodd",clipRule:"evenodd",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-4 14.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h8v13zm4.5-.5c0 .3-.2.5-.5.5h-2.5v-13H18c.3 0 .5.2.5.5v12z"})}),Ki=(0,c.jsx)(L.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,c.jsx)(L.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"})}),Qi=(0,c.jsx)(L.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,c.jsx)(L.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"})}),Xi=(0,c.jsx)(L.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,c.jsx)(L.Path,{d:"m19 7-3-3-8.5 8.5-1 4 4-1L19 7Zm-7 11.5H5V20h7v-1.5Z"})}),Ji=(0,c.jsx)(L.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,c.jsx)(L.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"})}),ea=(0,c.jsxs)(L.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,c.jsx)(L.Path,{d:"M15.5 7.5h-7V9h7V7.5Zm-7 3.5h7v1.5h-7V11Zm7 3.5h-7V16h7v-1.5Z"}),(0,c.jsx)(L.Path,{d:"M17 4H7a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2ZM7 5.5h10a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H7a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5Z"})]}),ta=(0,c.jsx)(L.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,c.jsx)(L.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"})}),sa=(0,c.jsx)(L.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,c.jsx)(L.Path,{d:"M12 4V2.2L9 4.8l3 2.5V5.5c3.6 0 6.5 2.9 6.5 6.5 0 2.9-1.9 5.3-4.5 6.2v.2l-.1-.2c-.4.1-.7.2-1.1.2l.2 1.5c.3 0 .6-.1 1-.2 3.5-.9 6-4 6-7.7 0-4.4-3.6-8-8-8zm-7.9 7l1.5.2c.1-1.2.5-2.3 1.2-3.2l-1.1-.9C4.8 8.2 4.3 9.6 4.1 11zm1.5 1.8l-1.5.2c.1.7.3 1.4.5 2 .3.7.6 1.3 1 1.8l1.2-.8c-.3-.5-.6-1-.8-1.5s-.4-1.1-.4-1.7zm1.5 5.5c1.1.9 2.4 1.4 3.8 1.6l.2-1.5c-1.1-.1-2.2-.5-3.1-1.2l-.9 1.1z"})});const na=window.wp.commands;var oa=(0,c.jsx)(L.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,c.jsx)(L.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"})}),ra=(0,c.jsx)(L.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,c.jsx)(L.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"})});const ia=window.wp.viewport,aa=window.wp.plugins;var la=(0,c.jsx)(L.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,c.jsx)(L.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"})});function ca(e){return["core/edit-post","core/edit-site"].includes(e)?(k()(`${e} interface scope`,{alternative:"core interface scope",hint:"core/edit-post and core/edit-site are merging.",version:"6.6"}),"core"):e}function da(e,t){return"core"===e&&"edit-site/template"===t?(k()("edit-site/template sidebar",{alternative:"edit-post/document",version:"6.6"}),"edit-post/document"):"core"===e&&"edit-site/block-inspector"===t?(k()("edit-site/block-inspector sidebar",{alternative:"edit-post/block",version:"6.6"}),"edit-post/block"):t}const ua=(e,t)=>({type:"SET_DEFAULT_COMPLEMENTARY_AREA",scope:e=ca(e),area:t=da(e,t)}),pa=(e,t)=>({registry:s,dispatch:n})=>{if(!t)return;e=ca(e),t=da(e,t);s.select(C.store).get(e,"isComplementaryAreaVisible")||s.dispatch(C.store).set(e,"isComplementaryAreaVisible",!0),n({type:"ENABLE_COMPLEMENTARY_AREA",scope:e,area:t})},ma=e=>({registry:t})=>{e=ca(e);t.select(C.store).get(e,"isComplementaryAreaVisible")&&t.dispatch(C.store).set(e,"isComplementaryAreaVisible",!1)},ha=(e,t)=>({registry:s})=>{if(!t)return;e=ca(e),t=da(e,t);const n=s.select(C.store).get(e,"pinnedItems");!0!==n?.[t]&&s.dispatch(C.store).set(e,"pinnedItems",{...n,[t]:!0})},ga=(e,t)=>({registry:s})=>{if(!t)return;e=ca(e),t=da(e,t);const n=s.select(C.store).get(e,"pinnedItems");s.dispatch(C.store).set(e,"pinnedItems",{...n,[t]:!1})};function _a(e,t){return function({registry:s}){k()("dispatch( 'core/interface' ).toggleFeature",{since:"6.0",alternative:"dispatch( 'core/preferences' ).toggle"}),s.dispatch(C.store).toggle(e,t)}}function fa(e,t,s){return function({registry:n}){k()("dispatch( 'core/interface' ).setFeatureValue",{since:"6.0",alternative:"dispatch( 'core/preferences' ).set"}),n.dispatch(C.store).set(e,t,!!s)}}function ba(e,t){return function({registry:s}){k()("dispatch( 'core/interface' ).setFeatureDefaults",{since:"6.0",alternative:"dispatch( 'core/preferences' ).setDefaults"}),s.dispatch(C.store).setDefaults(e,t)}}function ya(e){return{type:"OPEN_MODAL",name:e}}function xa(){return{type:"CLOSE_MODAL"}}const va=(0,d.createRegistrySelector)((e=>(t,s)=>{s=ca(s);const n=e(C.store).get(s,"isComplementaryAreaVisible");if(void 0!==n)return!1===n?null:t?.complementaryAreas?.[s]})),wa=(0,d.createRegistrySelector)((e=>(t,s)=>{s=ca(s);const n=e(C.store).get(s,"isComplementaryAreaVisible"),o=t?.complementaryAreas?.[s];return n&&void 0===o})),Sa=(0,d.createRegistrySelector)((e=>(t,s,n)=>{n=da(s=ca(s),n);const o=e(C.store).get(s,"pinnedItems");return o?.[n]??!0})),ka=(0,d.createRegistrySelector)((e=>(t,s,n)=>(k()("select( 'core/interface' ).isFeatureActive( scope, featureName )",{since:"6.0",alternative:"select( 'core/preferences' ).get( scope, featureName )"}),!!e(C.store).get(s,n))));function Ca(e,t){return e.activeModal===t}var Pa=(0,d.combineReducers)({complementaryAreas:function(e={},t){switch(t.type){case"SET_DEFAULT_COMPLEMENTARY_AREA":{const{scope:s,area:n}=t;return e[s]?e:{...e,[s]:n}}case"ENABLE_COMPLEMENTARY_AREA":{const{scope:s,area:n}=t;return{...e,[s]:n}}}return e},activeModal:function(e=null,t){switch(t.type){case"OPEN_MODAL":return t.name;case"CLOSE_MODAL":return null}return e}});const ja=(0,d.createReduxStore)("core/interface",{reducer:Pa,actions:o,selectors:r});function Ea({as:e=Hn.Button,scope:t,identifier:s,icon:n,selectedIcon:o,name:r,shortcut:i,...a}){const l=e,u=(0,aa.usePluginContext)(),p=n||u.icon,m=s||`${u.name}/${r}`,h=(0,d.useSelect)((e=>e(ja).getActiveComplementaryArea(t)===m),[m,t]),{enableComplementaryArea:g,disableComplementaryArea:_}=(0,d.useDispatch)(ja);return(0,c.jsx)(l,{icon:o&&h?o:p,"aria-controls":m.replace("/",":"),"aria-checked":(f=a.role,["checkbox","option","radio","switch","menuitemcheckbox","menuitemradio","treeitem"].includes(f)?h:void 0),onClick:()=>{h?_(t):g(t,m)},shortcut:i,...a});var f}(0,d.register)(ja);var Ta=({children:e,className:t,toggleButtonProps:s})=>{const n=(0,c.jsx)(Ea,{icon:la,...s});return(0,c.jsxs)("div",{className:mr("components-panel__header","interface-complementary-area-header",t),tabIndex:-1,children:[e,n]})};const Ba=()=>{};function Ia({name:e,as:t=Hn.Button,onClick:s,...n}){return(0,c.jsx)(Hn.Fill,{name:e,children:({onClick:e})=>(0,c.jsx)(t,{onClick:s||e?(...t)=>{(s||Ba)(...t),(e||Ba)(...t)}:void 0,...n})})}Ia.Slot=function({name:e,as:t=Hn.MenuGroup,fillProps:s={},bubblesVirtually:n,...o}){return(0,c.jsx)(Hn.Slot,{name:e,bubblesVirtually:n,fillProps:s,children:e=>{if(!p.Children.toArray(e).length)return null;const s=[];p.Children.forEach(e,(({props:{__unstableExplicitMenuItem:e,__unstableTarget:t}})=>{t&&e&&s.push(t)}));const n=p.Children.map(e,(e=>!e.props.__unstableExplicitMenuItem&&s.includes(e.props.__unstableTarget)?null:e));return(0,c.jsx)(t,{...o,children:n})}})};var Na=Ia;const Ra=({__unstableExplicitMenuItem:e,__unstableTarget:t,...s})=>(0,c.jsx)(Hn.MenuItem,{...s});function Da({scope:e,target:t,__unstableExplicitMenuItem:s,...n}){return(0,c.jsx)(Ea,{as:n=>(0,c.jsx)(Na,{__unstableExplicitMenuItem:s,__unstableTarget:`${e}/${t}`,as:Ra,name:`${e}/plugin-more-menu`,...n}),role:"menuitemcheckbox",selectedIcon:zn,name:t,scope:e,...n})}function Aa({scope:e,...t}){return(0,c.jsx)(Hn.Fill,{name:`PinnedItems/${e}`,...t})}Aa.Slot=function({scope:e,className:t,...s}){return(0,c.jsx)(Hn.Slot,{name:`PinnedItems/${e}`,...s,children:e=>e?.length>0&&(0,c.jsx)("div",{className:mr(t,"interface-pinned-items"),children:e})})};var Ma=Aa;const La={open:{width:280},closed:{width:0},mobileOpen:{width:"100vw"}};function Oa({activeArea:e,isActive:t,scope:s,children:n,className:o,id:r}){const i=(0,m.useReducedMotion)(),a=(0,m.useViewportMatch)("medium","<"),l=(0,m.usePrevious)(e),d=(0,m.usePrevious)(t),[,u]=(0,p.useState)({});(0,p.useEffect)((()=>{u({})}),[t]);const h={type:"tween",duration:i||a||l&&e&&e!==l?0:.3,ease:[.6,0,.4,1]};return(0,c.jsx)(Hn.Fill,{name:`ComplementaryArea/${s}`,children:(0,c.jsx)(Hn.__unstableAnimatePresence,{initial:!1,children:(d||t)&&(0,c.jsx)(Hn.__unstableMotion.div,{variants:La,initial:"closed",animate:a?"mobileOpen":"open",exit:"closed",transition:h,className:"interface-complementary-area__fill",children:(0,c.jsx)("div",{id:r,className:o,style:{width:a?"100vw":280},children:n})})})})}function Fa({children:e,className:t,closeLabel:s=(0,fs.__)("Close plugin"),identifier:n,header:o,headerClassName:r,icon:i,isPinnable:a=!0,panelClassName:l,scope:u,name:h,title:g,toggleShortcut:_,isActiveByDefault:f}){const b=(0,aa.usePluginContext)(),y=i||b.icon,x=n||`${b.name}/${h}`,[v,w]=(0,p.useState)(!1),{isLoading:S,isActive:k,isPinned:P,activeArea:j,isSmall:E,isLarge:T,showIconLabels:B}=(0,d.useSelect)((e=>{const{getActiveComplementaryArea:t,isComplementaryAreaLoading:s,isItemPinned:n}=e(ja),{get:o}=e(C.store),r=t(u);return{isLoading:s(u),isActive:r===x,isPinned:n(u,x),activeArea:r,isSmall:e(ia.store).isViewportMatch("< medium"),isLarge:e(ia.store).isViewportMatch("large"),showIconLabels:o("core","showIconLabels")}}),[x,u]),I=(0,m.useViewportMatch)("medium","<");!function(e,t,s,n,o){const r=(0,p.useRef)(!1),i=(0,p.useRef)(!1),{enableComplementaryArea:a,disableComplementaryArea:l}=(0,d.useDispatch)(ja);(0,p.useEffect)((()=>{n&&o&&!r.current?(l(e),i.current=!0):i.current&&!o&&r.current?(i.current=!1,a(e,t)):i.current&&s&&s!==t&&(i.current=!1),o!==r.current&&(r.current=o)}),[n,o,e,t,s,l,a])}(u,x,j,k,E);const{enableComplementaryArea:N,disableComplementaryArea:R,pinItem:D,unpinItem:A}=(0,d.useDispatch)(ja);if((0,p.useEffect)((()=>{f&&void 0===j&&!E?N(u,x):void 0===j&&E&&R(u,x),w(!0)}),[j,f,u,x,E,N,R]),v)return(0,c.jsxs)(c.Fragment,{children:[a&&(0,c.jsx)(Ma,{scope:u,children:P&&(0,c.jsx)(Ea,{scope:u,identifier:x,isPressed:k&&(!B||T),"aria-expanded":k,"aria-disabled":S,label:g,icon:B?zn:y,showTooltip:!B,variant:B?"tertiary":void 0,size:"compact",shortcut:_})}),h&&a&&(0,c.jsx)(Da,{target:h,scope:u,icon:y,identifier:x,children:g}),(0,c.jsxs)(Oa,{activeArea:j,isActive:k,className:mr("interface-complementary-area",t),scope:u,id:x.replace("/",":"),children:[(0,c.jsx)(Ta,{className:r,closeLabel:s,onClose:()=>R(u),toggleButtonProps:{label:s,size:"compact",shortcut:_,scope:u,identifier:x},children:o||(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("h2",{className:"interface-complementary-area-header__title",children:g}),a&&!I&&(0,c.jsx)(Hn.Button,{className:"interface-complementary-area__pin-unpin-item",icon:P?oa:ra,label:P?(0,fs.__)("Unpin from toolbar"):(0,fs.__)("Pin to toolbar"),onClick:()=>(P?A:D)(u,x),isPressed:P,"aria-expanded":P,size:"compact"})]})}),(0,c.jsx)(Hn.Panel,{className:l,children:e})]})]})}Fa.Slot=function({scope:e,...t}){return(0,c.jsx)(Hn.Slot,{name:`ComplementaryArea/${e}`,...t})};var Va=Fa;var Ua=({isActive:e})=>((0,p.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")}}),[]),(0,p.useEffect)((()=>(e?document.body.classList.add("is-fullscreen-mode"):document.body.classList.remove("is-fullscreen-mode"),()=>{e&&document.body.classList.remove("is-fullscreen-mode")})),[e]),null);const Ha=(0,p.forwardRef)((({children:e,className:t,ariaLabel:s,as:n="div",...o},r)=>(0,c.jsx)(n,{ref:r,className:mr("admin-ui-navigable-region",t),"aria-label":s,role:"region",tabIndex:"-1",...o,children:e})));Ha.displayName="NavigableRegion";var za=Ha;const Ga={type:"tween",duration:.25,ease:[.6,0,.4,1]};const $a={hidden:{opacity:1,marginTop:-60},visible:{opacity:1,marginTop:0},distractionFreeHover:{opacity:1,marginTop:0,transition:{...Ga,delay:.2,delayChildren:.2}},distractionFreeHidden:{opacity:0,marginTop:-60},distractionFreeDisabled:{opacity:0,marginTop:0,transition:{...Ga,delay:.8,delayChildren:.8}}};var Wa=(0,p.forwardRef)((function({isDistractionFree:e,footer:t,header:s,editorNotices:n,sidebar:o,secondarySidebar:r,content:i,actions:a,labels:l,className:d},u){const[h,g]=(0,m.useResizeObserver)(),_=(0,m.useViewportMatch)("medium","<"),f={type:"tween",duration:(0,m.useReducedMotion)()?0:.25,ease:[.6,0,.4,1]};!function(e){(0,p.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 b={...{header:(0,fs._x)("Header","header landmark area"),body:(0,fs.__)("Content"),secondarySidebar:(0,fs.__)("Block Library"),sidebar:(0,fs._x)("Settings","settings landmark area"),actions:(0,fs.__)("Publish"),footer:(0,fs.__)("Footer")},...l};return(0,c.jsxs)("div",{ref:u,className:mr(d,"interface-interface-skeleton",!!t&&"has-footer"),children:[(0,c.jsxs)("div",{className:"interface-interface-skeleton__editor",children:[(0,c.jsx)(Hn.__unstableAnimatePresence,{initial:!1,children:!!s&&(0,c.jsx)(za,{as:Hn.__unstableMotion.div,className:"interface-interface-skeleton__header","aria-label":b.header,initial:e&&!_?"distractionFreeHidden":"hidden",whileHover:e&&!_?"distractionFreeHover":"visible",animate:e&&!_?"distractionFreeDisabled":"visible",exit:e&&!_?"distractionFreeHidden":"hidden",variants:$a,transition:f,children:s})}),e&&(0,c.jsx)("div",{className:"interface-interface-skeleton__header",children:n}),(0,c.jsxs)("div",{className:"interface-interface-skeleton__body",children:[(0,c.jsx)(Hn.__unstableAnimatePresence,{initial:!1,children:!!r&&(0,c.jsx)(za,{className:"interface-interface-skeleton__secondary-sidebar",ariaLabel:b.secondarySidebar,as:Hn.__unstableMotion.div,initial:"closed",animate:"open",exit:"closed",variants:{open:{width:g.width},closed:{width:0}},transition:f,children:(0,c.jsxs)(Hn.__unstableMotion.div,{style:{position:"absolute",width:_?"100vw":"fit-content",height:"100%",left:0},variants:{open:{x:0},closed:{x:"-100%"}},transition:f,children:[h,r]})})}),(0,c.jsx)(za,{className:"interface-interface-skeleton__content",ariaLabel:b.body,children:i}),!!o&&(0,c.jsx)(za,{className:"interface-interface-skeleton__sidebar",ariaLabel:b.sidebar,children:o}),!!a&&(0,c.jsx)(za,{className:"interface-interface-skeleton__actions",ariaLabel:b.actions,children:a})]})]}),!!t&&(0,c.jsx)(za,{className:"interface-interface-skeleton__footer",ariaLabel:b.footer,children:t})]})}));const{RenamePatternModal:Za}=$(ao.privateApis),Ya="editor/pattern-rename";function qa(){const{record:e,postType:t}=(0,d.useSelect)((e=>{const{getCurrentPostType:t,getCurrentPostId:s}=e(vc),{getEditedEntityRecord:n}=e(u.store),o=t();return{record:n("postType",o,s()),postType:o}}),[]),{closeModal:s}=(0,d.useDispatch)(ja);return(0,d.useSelect)((e=>e(ja).isModalActive(Ya)))&&t===N?(0,c.jsx)(Za,{onClose:s,pattern:e}):null}const{DuplicatePatternModal:Ka}=$(ao.privateApis),Qa="editor/pattern-duplicate";function Xa(){const{record:e,postType:t}=(0,d.useSelect)((e=>{const{getCurrentPostType:t,getCurrentPostId:s}=e(vc),{getEditedEntityRecord:n}=e(u.store),o=t();return{record:n("postType",o,s()),postType:o}}),[]),{closeModal:s}=(0,d.useDispatch)(ja);return(0,d.useSelect)((e=>e(ja).isModalActive(Qa)))&&t===N?(0,c.jsx)(Ka,{onClose:s,onSuccess:()=>s(),pattern:e}):null}const{BlockRemovalWarningModal:Ja}=$(g.privateApis),el=["core/post-content","core/post-template","core/query"],tl=[{postTypes:["wp_template","wp_template_part"],callback(e){if(e.filter((({name:e})=>el.includes(e))).length)return(0,fs._n)("Deleting this block will stop your post or page content from displaying on this template. It is not recommended.","Some of the deleted blocks will stop your post or page content from displaying on this template. It is not recommended.",e.length)}},{postTypes:["wp_block"],callback(e){if(e.filter((({attributes:e})=>e?.metadata?.bindings&&Object.values(e.metadata.bindings).some((e=>"core/pattern-overrides"===e.source)))).length)return(0,fs._n)("The deleted block allows instance overrides. Removing it may result in content not displaying where this pattern is used. Are you sure you want to proceed?","Some of the deleted blocks allow instance overrides. Removing them may result in content not displaying where this pattern is used. Are you sure you want to proceed?",e.length)}}];function sl(){const e=(0,d.useSelect)((e=>e(vc).getCurrentPostType()),[]),t=(0,p.useMemo)((()=>tl.filter((t=>t.postTypes.includes(e)))),[e]);return Ja&&t?(0,c.jsx)(Ja,{rules:t}):null}function nl({blockPatterns:e,onChoosePattern:t}){const{editEntityRecord:s}=(0,d.useDispatch)(u.store),{postType:n,postId:o}=(0,d.useSelect)((e=>{const{getCurrentPostType:t,getCurrentPostId:s}=e(vc);return{postType:t(),postId:s()}}),[]);return(0,c.jsx)(g.__experimentalBlockPatternsList,{blockPatterns:e,onClickPattern:(e,r)=>{s("postType",n,o,{blocks:r,content:({blocks:e=[]})=>(0,x.__unstableSerializeAndClean)(e)}),t()}})}function ol({onClose:e}){const[t,s]=(0,p.useState)(!0),{set:n}=(0,d.useDispatch)(C.store),o=function(){const{blockPatternsWithPostContentBlockType:e,postType:t}=(0,d.useSelect)((e=>{const{getPatternsByBlockTypes:t,getBlocksByName:s}=e(g.store),{getCurrentPostType:n,getRenderingMode:o}=e(vc);return{blockPatternsWithPostContentBlockType:t("core/post-content","post-only"===o()?"":s("core/post-content")?.[0]),postType:n()}}),[]);return(0,p.useMemo)((()=>e?.length?e.filter((e=>"page"===t&&!e.postTypes||Array.isArray(e.postTypes)&&e.postTypes.includes(t))):[]),[t,e])}();if(!(o.length>0))return null;function r(){e(),n("core","enableChoosePatternModal",t)}return(0,c.jsxs)(Hn.Modal,{className:"editor-start-page-options__modal",title:(0,fs.__)("Choose a pattern"),isFullScreen:!0,onRequestClose:r,children:[(0,c.jsx)("div",{className:"editor-start-page-options__modal-content",children:(0,c.jsx)(nl,{blockPatterns:o,onChoosePattern:r})}),(0,c.jsx)(Hn.Flex,{className:"editor-start-page-options__modal__actions",justify:"flex-start",expanded:!1,children:(0,c.jsx)(Hn.FlexItem,{children:(0,c.jsx)(Hn.CheckboxControl,{__nextHasNoMarginBottom:!0,checked:t,label:(0,fs.__)("Always show starter patterns for new pages"),onChange:e=>{s(e)}})})})]})}function rl(){const[e,t]=(0,p.useState)(!1),{isEditedPostDirty:s,isEditedPostEmpty:n}=(0,d.useSelect)(vc),{isModalActive:o}=(0,d.useSelect)(ja),{enabled:r,postId:i}=(0,d.useSelect)((e=>{const{getCurrentPostId:t,getCurrentPostType:s}=e(vc),n=e(C.store).get("core","enableChoosePatternModal");return{postId:t(),enabled:n&&B!==s()}}),[]);return(0,p.useEffect)((()=>{const e=!s()&&n(),i=o("editor/preferences");r&&e&&!i&&t(!0)}),[r,i,s,n,o]),e?(0,c.jsx)(ol,{onClose:()=>t(!1)}):null}const il=window.wp.keyboardShortcuts,al=[{keyCombination:{modifier:"primary",character:"b"},description:(0,fs.__)("Make the selected text bold.")},{keyCombination:{modifier:"primary",character:"i"},description:(0,fs.__)("Make the selected text italic.")},{keyCombination:{modifier:"primary",character:"k"},description:(0,fs.__)("Convert the selected text into a link.")},{keyCombination:{modifier:"primaryShift",character:"k"},description:(0,fs.__)("Remove a link.")},{keyCombination:{character:"[["},description:(0,fs.__)("Insert a link to a post or page.")},{keyCombination:{modifier:"primary",character:"u"},description:(0,fs.__)("Underline the selected text.")},{keyCombination:{modifier:"access",character:"d"},description:(0,fs.__)("Strikethrough the selected text.")},{keyCombination:{modifier:"access",character:"x"},description:(0,fs.__)("Make the selected text inline code.")},{keyCombination:{modifier:"access",character:"0"},aliases:[{modifier:"access",character:"7"}],description:(0,fs.__)("Convert the current heading to a paragraph.")},{keyCombination:{modifier:"access",character:"1-6"},description:(0,fs.__)("Convert the current paragraph or heading to a heading of level 1 to 6.")},{keyCombination:{modifier:"primaryShift",character:"SPACE"},description:(0,fs.__)("Add non breaking space.")}],ll=window.wp.keycodes;function cl({keyCombination:e,forceAriaLabel:t}){const s=e.modifier?ll.displayShortcutList[e.modifier](e.character):e.character,n=e.modifier?ll.shortcutAriaLabel[e.modifier](e.character):e.character;return(0,c.jsx)("kbd",{className:"editor-keyboard-shortcut-help-modal__shortcut-key-combination","aria-label":t||n,children:(Array.isArray(s)?s:[s]).map(((e,t)=>"+"===e?(0,c.jsx)(p.Fragment,{children:e},t):(0,c.jsx)("kbd",{className:"editor-keyboard-shortcut-help-modal__shortcut-key",children:e},t)))})}var dl=function({description:e,keyCombination:t,aliases:s=[],ariaLabel:n}){return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("div",{className:"editor-keyboard-shortcut-help-modal__shortcut-description",children:e}),(0,c.jsxs)("div",{className:"editor-keyboard-shortcut-help-modal__shortcut-term",children:[(0,c.jsx)(cl,{keyCombination:t,forceAriaLabel:n}),s.map(((e,t)=>(0,c.jsx)(cl,{keyCombination:e,forceAriaLabel:n},t)))]})]})};var ul=function({name:e}){const{keyCombination:t,description:s,aliases:n}=(0,d.useSelect)((t=>{const{getShortcutKeyCombination:s,getShortcutDescription:n,getShortcutAliases:o}=t(il.store);return{keyCombination:s(e),aliases:o(e),description:n(e)}}),[e]);return t?(0,c.jsx)(dl,{keyCombination:t,description:s,aliases:n}):null};const pl="editor/keyboard-shortcut-help",ml=({shortcuts:e})=>(0,c.jsx)("ul",{className:"editor-keyboard-shortcut-help-modal__shortcut-list",role:"list",children:e.map(((e,t)=>(0,c.jsx)("li",{className:"editor-keyboard-shortcut-help-modal__shortcut",children:"string"==typeof e?(0,c.jsx)(ul,{name:e}):(0,c.jsx)(dl,{...e})},t)))}),hl=({title:e,shortcuts:t,className:s})=>(0,c.jsxs)("section",{className:mr("editor-keyboard-shortcut-help-modal__section",s),children:[!!e&&(0,c.jsx)("h2",{className:"editor-keyboard-shortcut-help-modal__section-title",children:e}),(0,c.jsx)(ml,{shortcuts:t})]}),gl=({title:e,categoryName:t,additionalShortcuts:s=[]})=>{const n=(0,d.useSelect)((e=>e(il.store).getCategoryShortcuts(t)),[t]);return(0,c.jsx)(hl,{title:e,shortcuts:n.concat(s)})};var _l=function(){const e=(0,d.useSelect)((e=>e(ja).isModalActive(pl)),[]),{openModal:t,closeModal:s}=(0,d.useDispatch)(ja),n=()=>{e?s():t(pl)};return(0,il.useShortcut)("core/editor/keyboard-shortcuts",n),e?(0,c.jsxs)(Hn.Modal,{className:"editor-keyboard-shortcut-help-modal",title:(0,fs.__)("Keyboard shortcuts"),closeButtonLabel:(0,fs.__)("Close"),onRequestClose:n,children:[(0,c.jsx)(hl,{className:"editor-keyboard-shortcut-help-modal__main-shortcuts",shortcuts:["core/editor/keyboard-shortcuts"]}),(0,c.jsx)(gl,{title:(0,fs.__)("Global shortcuts"),categoryName:"global"}),(0,c.jsx)(gl,{title:(0,fs.__)("Selection shortcuts"),categoryName:"selection"}),(0,c.jsx)(gl,{title:(0,fs.__)("Block shortcuts"),categoryName:"block",additionalShortcuts:[{keyCombination:{character:"/"},description:(0,fs.__)("Change the block type after adding a new paragraph."),ariaLabel:(0,fs.__)("Forward-slash")}]}),(0,c.jsx)(hl,{title:(0,fs.__)("Text formatting"),shortcuts:al}),(0,c.jsx)(gl,{title:(0,fs.__)("List View shortcuts"),categoryName:"list-view"})]}):null};function fl({clientId:e,onClose:t}){const s=Ui(),{entity:n,onNavigateToEntityRecord:o,canEditTemplates:r}=(0,d.useSelect)((t=>{const{getBlockParentsByBlockName:n,getSettings:o,getBlockAttributes:r,getBlockParents:i}=t(g.store),{getCurrentTemplateId:a,getRenderingMode:l}=t(vc),c=n(e,"core/block",!0)[0];let d;if(c?d=t(u.store).getEntityRecord("postType","wp_block",r(c).ref):"template-locked"!==l()||i(e).some((e=>s.includes(e)))||(d=t(u.store).getEntityRecord("postType","wp_template",a())),!d)return{};return{canEditTemplates:t(u.store).canUser("create",{kind:"postType",name:"wp_template"}),entity:d,onNavigateToEntityRecord:o().onNavigateToEntityRecord}}),[e,s]);if(!n)return(0,c.jsx)(bl,{clientId:e,onClose:t});const i="wp_block"===n.type;let a=i?(0,fs.__)("Edit the pattern to move, delete, or make further changes to this block."):(0,fs.__)("Edit the template to move, delete, or make further changes to this block.");return r||(a=(0,fs.__)("Only users with permissions to edit the template can move or delete this block")),(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(g.__unstableBlockSettingsMenuFirstItem,{children:(0,c.jsx)(Hn.MenuItem,{onClick:()=>{o({postId:n.id,postType:n.type})},disabled:!r,children:i?(0,fs.__)("Edit pattern"):(0,fs.__)("Edit template")})}),(0,c.jsx)(Hn.__experimentalText,{variant:"muted",as:"p",className:"editor-content-only-settings-menu__description",children:a})]})}function bl({clientId:e,onClose:t}){const{contentLockingParent:s}=(0,d.useSelect)((t=>{const{getContentLockingParent:s}=$(t(g.store));return{contentLockingParent:s(e)}}),[e]),n=(0,g.useBlockDisplayInformation)(s),o=(0,d.useDispatch)(g.store);if(!n?.title)return null;const{modifyContentLockBlock:r}=$(o);return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(g.__unstableBlockSettingsMenuFirstItem,{children:(0,c.jsx)(Hn.MenuItem,{onClick:()=>{r(s),t()},children:(0,fs._x)("Unlock","Unlock content locked blocks")})}),(0,c.jsx)(Hn.__experimentalText,{variant:"muted",as:"p",className:"editor-content-only-settings-menu__description",children:(0,fs.__)("Temporarily unlock the parent block to edit, delete or make further changes to this block.")})]})}function yl(){return(0,c.jsx)(g.BlockSettingsMenuControls,{children:({selectedClientIds:e,onClose:t})=>1===e.length&&(0,c.jsx)(fl,{clientId:e[0],onClose:t})})}function xl(e){const{slug:t,patterns:s}=(0,d.useSelect)((e=>{const{getCurrentPostType:t,getCurrentPostId:s}=e(vc),{getEntityRecord:n,getBlockPatterns:o}=e(u.store),r=s();return{slug:n("postType",t(),r).slug,patterns:o()}}),[]),n=(0,d.useSelect)((e=>e(u.store).getCurrentTheme().stylesheet));return(0,p.useMemo)((()=>[{name:"fallback",blocks:(0,x.parse)(e),title:(0,fs.__)("Fallback content")},...s.filter((e=>Array.isArray(e.templateTypes)&&e.templateTypes.some((e=>t.startsWith(e))))).map((e=>({...e,blocks:(0,x.parse)(e.content).map((e=>function(e){return e.innerBlocks.find((e=>"core/template-part"===e.name))&&(e.innerBlocks=e.innerBlocks.map((e=>("core/template-part"===e.name&&void 0===e.attributes.theme&&(e.attributes.theme=n),e)))),"core/template-part"===e.name&&void 0===e.attributes.theme&&(e.attributes.theme=n),e}(e)))})))]),[e,t,s])}function vl({fallbackContent:e,onChoosePattern:t,postType:s}){const[,,n]=(0,u.useEntityBlockEditor)("postType",s),o=xl(e);return(0,c.jsx)(g.__experimentalBlockPatternsList,{blockPatterns:o,onClickPattern:(e,s)=>{n(s,{selection:void 0}),t()}})}function wl({slug:e,isCustom:t,onClose:s,postType:n}){const o=function(e,t=!1){return(0,d.useSelect)((s=>{const{getEntityRecord:n,getDefaultTemplateId:o}=s(u.store),r=o({slug:e,is_custom:t,ignore_empty:!0});return r?n("postType",B,r)?.content?.raw:void 0}),[e,t])}(e,t);return o?(0,c.jsxs)(Hn.Modal,{className:"editor-start-template-options__modal",title:(0,fs.__)("Choose a pattern"),closeLabel:(0,fs.__)("Cancel"),focusOnMount:"firstElement",onRequestClose:s,isFullScreen:!0,children:[(0,c.jsx)("div",{className:"editor-start-template-options__modal-content",children:(0,c.jsx)(vl,{fallbackContent:o,slug:e,isCustom:t,postType:n,onChoosePattern:()=>{s()}})}),(0,c.jsx)(Hn.Flex,{className:"editor-start-template-options__modal__actions",justify:"flex-end",expanded:!1,children:(0,c.jsx)(Hn.FlexItem,{children:(0,c.jsx)(Hn.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:s,children:(0,fs.__)("Skip")})})})]}):null}function Sl(){const[e,t]=(0,p.useState)(!1),{shouldOpenModal:s,slug:n,isCustom:o,postType:r,postId:i}=(0,d.useSelect)((e=>{const{getCurrentPostType:t,getCurrentPostId:s}=e(vc),n=t(),o=s(),{getEditedEntityRecord:r,hasEditsForEntityRecord:i}=e(u.store),a=r("postType",n,o);return{shouldOpenModal:!i("postType",n,o)&&""===a.content&&B===n,slug:a.slug,isCustom:a.is_custom,postType:n,postId:o}}),[]);return(0,p.useEffect)((()=>{t(!1)}),[r,i]),!s||e?null:(0,c.jsx)(wl,{slug:n,isCustom:o,postType:r,onClose:()=>t(!0)})}function kl(){const e=(0,d.useSelect)((e=>{const{richEditingEnabled:t,codeEditingEnabled:s}=e(vc).getEditorSettings();return!t||!s}),[]),{getBlockSelectionStart:t}=(0,d.useSelect)(g.store),{getActiveComplementaryArea:s}=(0,d.useSelect)(ja),{enableComplementaryArea:n,disableComplementaryArea:o}=(0,d.useDispatch)(ja),{redo:r,undo:i,savePost:a,setIsListViewOpened:l,switchEditorMode:c,toggleDistractionFree:u}=(0,d.useDispatch)(vc),{isEditedPostDirty:p,isPostSavingLocked:m,isListViewOpened:h,getEditorMode:_}=(0,d.useSelect)(vc);return(0,il.useShortcut)("core/editor/toggle-mode",(()=>{c("visual"===_()?"text":"visual")}),{isDisabled:e}),(0,il.useShortcut)("core/editor/toggle-distraction-free",(()=>{u()})),(0,il.useShortcut)("core/editor/undo",(e=>{i(),e.preventDefault()})),(0,il.useShortcut)("core/editor/redo",(e=>{r(),e.preventDefault()})),(0,il.useShortcut)("core/editor/save",(e=>{e.preventDefault(),m()||p()&&a()})),(0,il.useShortcut)("core/editor/toggle-list-view",(e=>{h()||(e.preventDefault(),l(!0))})),(0,il.useShortcut)("core/editor/toggle-sidebar",(e=>{e.preventDefault();if(["edit-post/document","edit-post/block"].includes(s("core")))o("core");else{const e=t()?"edit-post/block":"edit-post/document";n("core",e)}})),null}function Cl({clientId:e,onClose:t}){const{getBlocks:s}=(0,d.useSelect)(g.store),{replaceBlocks:n}=(0,d.useDispatch)(g.store);return(0,d.useSelect)((t=>t(g.store).canRemoveBlock(e)),[e])?(0,c.jsx)(Hn.MenuItem,{onClick:()=>{n(e,s(e)),t()},children:(0,fs.__)("Detach")}):null}function Pl({clientIds:e,blocks:t}){const[s,n]=(0,p.useState)(!1),{replaceBlocks:o}=(0,d.useDispatch)(g.store),{createSuccessNotice:r}=(0,d.useDispatch)(_s.store),{isBlockBasedTheme:i,canCreate:a}=(0,d.useSelect)((e=>({isBlockBasedTheme:e(u.store).getCurrentTheme()?.is_block_theme,canCreate:e(g.store).canInsertBlockType("core/template-part")})),[]);if(!i||!a)return null;return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(Hn.MenuItem,{icon:U,onClick:()=>{n(!0)},"aria-expanded":s,"aria-haspopup":"dialog",children:(0,fs.__)("Create template part")}),s&&(0,c.jsx)(Jn,{closeModal:()=>{n(!1)},blocks:t,onCreate:async t=>{o(e,(0,x.createBlock)("core/template-part",{slug:t.slug,theme:t.theme})),r((0,fs.__)("Template part created."),{type:"snackbar"})}})]})}function jl(){return(0,c.jsx)(g.BlockSettingsMenuControls,{children:({selectedClientIds:e,onClose:t})=>(0,c.jsx)(El,{clientIds:e,onClose:t})})}function El({clientIds:e,onClose:t}){const{blocks:s}=(0,d.useSelect)((t=>{const{getBlocksByClientId:s}=t(g.store);return{blocks:s(e)}}),[e]);return 1===s.length&&"core/template-part"===s[0]?.name?(0,c.jsx)(Cl,{clientId:e[0],onClose:t}):(0,c.jsx)(Pl,{clientIds:e,blocks:s})}const{ExperimentalBlockEditorProvider:Tl}=$(g.privateApis),{PatternsMenuItems:Bl}=$(ao.privateApis),Il=()=>{},Nl=["wp_block","wp_navigation","wp_template_part"];const Rl=ri((({post:e,settings:t,recovery:s,initialEdits:n,children:o,BlockEditorProviderComponent:r=Tl,__unstableTemplate:i})=>{const a=!!i,{editorSettings:l,selection:m,isReady:_,mode:f,defaultMode:b,postTypeEntities:y}=(0,d.useSelect)((t=>{const{getEditorSettings:s,getEditorSelection:n,getRenderingMode:o,__unstableIsEditorReady:r,getDefaultRenderingMode:i}=$(t(vc)),{getEntitiesConfig:l}=t(u.store),c=o(),d=i(e.type),p="template-locked"===d?a:void 0!==d,m=void 0!==d;return{editorSettings:s(),isReady:r(),mode:m?c:void 0,defaultMode:p?d:void 0,selection:n(),postTypeEntities:"wp_template"===e.type?l("postType"):null}}),[e.type,a]),v=a&&"post-only"!==f,w=v?i:e,S=(0,p.useMemo)((()=>{const t={};if("wp_template"===e.type){if("page"===e.slug)t.postType="page";else if("single"===e.slug)t.postType="post";else if("single"===e.slug.split("-")[0]){const s=y?.map((e=>e.name))||[],n=e.slug.match(`^single-(${s.join("|")})(?:-.+)?$`);n&&(t.postType=n[1])}}else Nl.includes(w.type)&&!v||(t.postId=e.id,t.postType=e.type);return{...t,templateSlug:"wp_template"===w.type?w.slug:void 0}}),[v,e.id,e.type,e.slug,w.type,w.slug,y]),{id:k,type:P}=w,j=Fi(l,P,k,f),[E,T,R]=function(e,t,s){const n="template-locked"===s?"template":"post",[o,r,i]=(0,u.useEntityBlockEditor)("postType",e.type,{id:e.id}),[a,l,c]=(0,u.useEntityBlockEditor)("postType",t?.type,{id:t?.id}),d=(0,p.useMemo)((()=>{if("wp_navigation"===e.type)return[(0,x.createBlock)("core/navigation",{ref:e.id,templateLock:!1})]}),[e.type,e.id]),m=(0,p.useMemo)((()=>d||("template"===n?a:o)),[d,n,a,o]);return t&&"template-locked"===s||"wp_navigation"===e.type?[m,Il,Il]:[m,"post"===n?r:l,"post"===n?i:c]}(e,i,f),{updatePostLock:D,setupEditor:A,updateEditorSettings:M,setCurrentTemplateId:L,setEditedPost:O,setRenderingMode:F}=$((0,d.useDispatch)(vc)),{createWarningNotice:V}=(0,d.useDispatch)(_s.store);return(0,p.useLayoutEffect)((()=>{s||(D(t.postLock),A(e,n,t.template),t.autosave&&V((0,fs.__)("There is an autosave of this post that is more recent than the version below."),{id:"autosave-exists",actions:[{label:(0,fs.__)("View the autosave"),url:t.autosave.editLink}]}))}),[]),(0,p.useEffect)((()=>{O(e.type,e.id)}),[e.type,e.id,O]),(0,p.useEffect)((()=>{M(t)}),[t,M]),(0,p.useEffect)((()=>{L(i?.id)}),[i?.id,L]),(0,p.useEffect)((()=>{b&&F(b)}),[b,F]),function(e,t){(0,p.useEffect)((()=>((0,h.addFilter)("blockEditor.__unstableCanInsertBlockType","removeTemplatePartsFromInserter",((s,n)=>!(!Gi.includes(e)&&"core/template-part"===n.name&&"post-only"===t)&&s)),(0,h.addFilter)("blockEditor.__unstableCanInsertBlockType","removePostContentFromInserter",((t,s,n,{getBlockParentsByBlockName:o})=>Gi.includes(e)||"core/post-content"!==s.name?t:o(n,"core/query").length>0)),()=>{(0,h.removeFilter)("blockEditor.__unstableCanInsertBlockType","removeTemplatePartsFromInserter"),(0,h.removeFilter)("blockEditor.__unstableCanInsertBlockType","removePostContentFromInserter")})),[e,t])}(e.type,f),(0,na.useCommandLoader)({name:"core/editor/edit-ui",hook:function(){const{editorMode:e,isListViewOpen:t,showBlockBreadcrumbs:s,isDistractionFree:n,isFocusMode:o,isPreviewMode:r,isViewable:i,isCodeEditingEnabled:a,isRichEditingEnabled:l,isPublishSidebarEnabled:c}=(0,d.useSelect)((e=>{const{get:t}=e(C.store),{isListViewOpened:s,getCurrentPostType:n,getEditorSettings:o}=e(vc),{getSettings:r}=e(g.store),{getPostType:i}=e(u.store);return{editorMode:t("core","editorMode")??"visual",isListViewOpen:s(),showBlockBreadcrumbs:t("core","showBlockBreadcrumbs"),isDistractionFree:t("core","distractionFree"),isFocusMode:t("core","focusMode"),isPreviewMode:r().isPreviewMode,isViewable:i(n())?.viewable??!1,isCodeEditingEnabled:o().codeEditingEnabled,isRichEditingEnabled:o().richEditingEnabled,isPublishSidebarEnabled:e(vc).isPublishSidebarEnabled()}}),[]),{getActiveComplementaryArea:p}=(0,d.useSelect)(ja),{toggle:m}=(0,d.useDispatch)(C.store),{createInfoNotice:h}=(0,d.useDispatch)(_s.store),{__unstableSaveForPreview:_,setIsListViewOpened:f,switchEditorMode:b,toggleDistractionFree:y,toggleSpotlightMode:x,toggleTopToolbar:v}=(0,d.useDispatch)(vc),{openModal:w,enableComplementaryArea:S,disableComplementaryArea:k}=(0,d.useDispatch)(ja),{getCurrentPostId:P}=(0,d.useSelect)(vc),j=a&&l;if(r)return{commands:[],isLoading:!1};const E=[];return E.push({name:"core/open-shortcut-help",label:(0,fs.__)("Keyboard shortcuts"),icon:$i,callback:({close:e})=>{e(),w("editor/keyboard-shortcut-help")}}),E.push({name:"core/toggle-distraction-free",label:n?(0,fs.__)("Exit Distraction free"):(0,fs.__)("Enter Distraction free"),callback:({close:e})=>{y(),e()}}),E.push({name:"core/open-preferences",label:(0,fs.__)("Editor preferences"),callback:({close:e})=>{e(),w("editor/preferences")}}),E.push({name:"core/toggle-spotlight-mode",label:o?(0,fs.__)("Exit Spotlight mode"):(0,fs.__)("Enter Spotlight mode"),callback:({close:e})=>{x(),e()}}),E.push({name:"core/toggle-list-view",label:t?(0,fs.__)("Close List View"):(0,fs.__)("Open List View"),icon:Wi,callback:({close:e})=>{f(!t),e(),h(t?(0,fs.__)("List View off."):(0,fs.__)("List View on."),{id:"core/editor/toggle-list-view/notice",type:"snackbar"})}}),E.push({name:"core/toggle-top-toolbar",label:(0,fs.__)("Top toolbar"),callback:({close:e})=>{v(),e()}}),j&&E.push({name:"core/toggle-code-editor",label:"visual"===e?(0,fs.__)("Open code editor"):(0,fs.__)("Exit code editor"),icon:Zi,callback:({close:t})=>{b("visual"===e?"text":"visual"),t()}}),E.push({name:"core/toggle-breadcrumbs",label:s?(0,fs.__)("Hide block breadcrumbs"):(0,fs.__)("Show block breadcrumbs"),callback:({close:e})=>{m("core","showBlockBreadcrumbs"),e(),h(s?(0,fs.__)("Breadcrumbs hidden."):(0,fs.__)("Breadcrumbs visible."),{id:"core/editor/toggle-breadcrumbs/notice",type:"snackbar"})}}),E.push({name:"core/open-settings-sidebar",label:(0,fs.__)("Show or hide the Settings panel"),icon:(0,fs.isRTL)()?Yi:qi,callback:({close:e})=>{const t=p("core");e(),"edit-post/document"===t?k("core"):S("core","edit-post/document")}}),E.push({name:"core/open-block-inspector",label:(0,fs.__)("Show or hide the Block settings panel"),icon:Ki,callback:({close:e})=>{const t=p("core");e(),"edit-post/block"===t?k("core"):S("core","edit-post/block")}}),E.push({name:"core/toggle-publish-sidebar",label:c?(0,fs.__)("Disable pre-publish checks"):(0,fs.__)("Enable pre-publish checks"),icon:Qi,callback:({close:e})=>{e(),m("core","isPublishSidebarEnabled"),h(c?(0,fs.__)("Pre-publish checks disabled."):(0,fs.__)("Pre-publish checks enabled."),{id:"core/editor/publish-sidebar/notice",type:"snackbar"})}}),i&&E.push({name:"core/preview-link",label:(0,fs.__)("Preview in a new tab"),icon:Fn,callback:async({close:e})=>{e();const t=P(),s=await _();window.open(s,`wp-preview-${t}`)}}),{commands:E,isLoading:!1}}}),(0,na.useCommandLoader)({name:"core/editor/contextual-commands",hook:function(){const{postType:e}=(0,d.useSelect)((e=>{const{getCurrentPostType:t}=e(vc);return{postType:t()}}),[]),{openModal:t}=(0,d.useDispatch)(ja),s=[];return e===N&&(s.push({name:"core/rename-pattern",label:(0,fs.__)("Rename pattern"),icon:Xi,callback:({close:e})=>{t(Ya),e()}}),s.push({name:"core/duplicate-pattern",label:(0,fs.__)("Duplicate pattern"),icon:Ji,callback:({close:e})=>{t(Qa),e()}})),{isLoading:!1,commands:s}},context:"entity-edit"}),(0,na.useCommandLoader)({name:"core/editor/page-content-focus",hook:function(){const{onNavigateToEntityRecord:e,goBack:t,templateId:s,isPreviewMode:n}=(0,d.useSelect)((e=>{const{getRenderingMode:t,getEditorSettings:s,getCurrentTemplateId:n}=$(e(vc)),o=s();return{isTemplateHidden:"post-only"===t(),onNavigateToEntityRecord:o.onNavigateToEntityRecord,getEditorSettings:s,goBack:o.onNavigateToPreviousEntityRecord,templateId:n(),isPreviewMode:o.isPreviewMode}}),[]),{editedRecord:o,hasResolved:r}=(0,u.useEntityRecord)("postType","wp_template",s);if(n)return{isLoading:!1,commands:[]};const i=[];return s&&r&&i.push({name:"core/switch-to-template-focus",label:(0,fs.sprintf)((0,fs.__)("Edit template: %s"),(0,Ln.decodeEntities)(o.title)),icon:W,callback:({close:t})=>{e({postId:s,postType:"wp_template"}),t()}}),t&&i.push({name:"core/switch-to-previous-entity",label:(0,fs.__)("Go back"),icon:ea,callback:({close:e})=>{t(),e()}}),{isLoading:!1,commands:i}},context:"entity-edit"}),(0,na.useCommandLoader)({name:"core/edit-site/manipulate-document",hook:function(){const{postType:e,postId:t}=(0,d.useSelect)((e=>{const{getCurrentPostId:t,getCurrentPostType:s}=e(vc);return{postType:s(),postId:t()}}),[]),{editedRecord:s,hasResolved:n}=(0,u.useEntityRecord)("postType",e,t),{revertTemplate:o}=$((0,d.useDispatch)(vc));if(!n||![I,B].includes(e))return{isLoading:!0,commands:[]};const r=[];if(On(s)){const e=s.type===B?(0,fs.sprintf)((0,fs.__)("Reset template: %s"),(0,Ln.decodeEntities)(s.title)):(0,fs.sprintf)((0,fs.__)("Reset template part: %s"),(0,Ln.decodeEntities)(s.title));r.push({name:"core/reset-template",label:e,icon:(0,fs.isRTL)()?ta:sa,callback:({close:e})=>{o(s),e()}})}return{isLoading:!n,commands:r}}}),_&&f?(0,c.jsx)(u.EntityProvider,{kind:"root",type:"site",children:(0,c.jsx)(u.EntityProvider,{kind:"postType",type:e.type,id:e.id,children:(0,c.jsx)(g.BlockContextProvider,{value:S,children:(0,c.jsxs)(r,{value:E,onChange:R,onInput:T,selection:m,settings:j,useSubRegistry:!1,children:[o,!t.isPreviewMode&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(Bl,{}),(0,c.jsx)(jl,{}),(0,c.jsx)(yl,{}),"template-locked"===f&&(0,c.jsx)(Hi,{}),"wp_navigation"===P&&(0,c.jsx)(zi,{}),(0,c.jsx)(kl,{}),(0,c.jsx)(_l,{}),(0,c.jsx)(sl,{}),(0,c.jsx)(rl,{}),(0,c.jsx)(Sl,{}),(0,c.jsx)(qa,{}),(0,c.jsx)(Xa,{})]})]})})})}):null}));function Dl(e){return(0,c.jsx)(Rl,{...e,BlockEditorProviderComponent:g.BlockEditorProvider,children:e.children})}var Al=Dl;const{useGlobalStyle:Ml}=$(g.privateApis);function Ll({template:e,post:t}){const[s="white"]=Ml("color.background"),[n]=(0,u.useEntityBlockEditor)("postType",t.type,{id:t.id}),[o]=(0,u.useEntityBlockEditor)("postType",e?.type,{id:e?.id}),r=e&&o?o:n,i=!r?.length;return(0,c.jsxs)("div",{className:"editor-fields-content-preview",style:{backgroundColor:s},children:[i&&(0,c.jsx)("span",{className:"editor-fields-content-preview__empty",children:(0,fs.__)("Empty content")}),!i&&(0,c.jsx)(g.BlockPreview.Async,{children:(0,c.jsx)(g.BlockPreview,{blocks:r})})]})}const Ol={type:"media",id:"content-preview",label:(0,fs.__)("Content preview"),render:function({item:e}){const{settings:t,template:s}=(0,d.useSelect)((t=>{const{canUser:s,getPostType:n,getTemplateId:o,getEntityRecord:r}=$(t(u.store)),i=s("read",{kind:"postType",name:"wp_template"}),a=t(vc).getEditorSettings(),l=a.supportsTemplateMode,c=n(e.type)?.viewable??!1,d=l&&c&&i?o(e.type,e.id):null;return{settings:a,template:d?r("postType","wp_template",d):void 0}}),[e.type,e.id]);return(0,c.jsx)(Dl,{post:e,settings:t,__unstableTemplate:s,children:(0,c.jsx)(Ll,{template:s,post:e})})},enableSorting:!1};var Fl=Ol;function Vl(e,t,s){return{type:"REGISTER_ENTITY_ACTION",kind:e,name:t,config:s}}function Ul(e,t,s){return{type:"UNREGISTER_ENTITY_ACTION",kind:e,name:t,actionId:s}}function Hl(e,t,s){return{type:"REGISTER_ENTITY_FIELD",kind:e,name:t,config:s}}function zl(e,t,s){return{type:"UNREGISTER_ENTITY_FIELD",kind:e,name:t,fieldId:s}}function Gl(e,t){return{type:"SET_IS_READY",kind:e,name:t}}const $l=e=>async({registry:t})=>{if($(t.select(vc)).isEntityReady("postType",e))return;$(t.dispatch(vc)).setIsReady("postType",e);const s=await t.resolveSelect(u.store).getPostType(e),n=await t.resolveSelect(u.store).canUser("create",{kind:"postType",name:e}),o=await t.resolveSelect(u.store).getCurrentTheme(),r=[s.viewable?Vn:void 0,s.supports?.revisions?Un:void 0,void 0,"wp_template_part"===s.slug&&n&&o?.is_block_theme?io:void 0,n&&"wp_block"===s.slug?ho:void 0,s.supports?.title?fo:void 0,s.supports?.["page-attributes"]?yo:void 0,"wp_block"===s.slug?Zo:void 0,qo,Xo,nr,rr,ar].filter(Boolean),i=[s.supports?.thumbnail&&o?.theme_supports?.["post-thumbnails"]&&ur,s.supports?.author&&fr,Cr,Er,Dr,s.supports?.["page-attributes"]&&Vr,s.supports?.comments&&Ur,s.supports?.trackbacks&&Hr,(s.supports?.comments||s.supports?.trackbacks)&&zr,Wr,Yr,s.supports?.editor&&s.viewable&&Fl].filter(Boolean);if(s.supports?.title){let t;t="page"===e?Xr:"wp_template"===e?Jr:"wp_block"===e?ni:oi,i.push(t)}t.batch((()=>{r.forEach((s=>{$(t.dispatch(vc)).registerEntityAction("postType",e,s)})),i.forEach((s=>{$(t.dispatch(vc)).registerEntityField("postType",e,s)}))})),(0,h.doAction)("core.registerPostTypeSchema",e)};function Wl(e){return{type:"SET_CURRENT_TEMPLATE_ID",id:e}}const Zl=e=>async({select:t,dispatch:s,registry:n})=>{const o=await n.dispatch(u.store).saveEntityRecord("postType","wp_template",e);return n.dispatch(u.store).editEntityRecord("postType",t.getCurrentPostType(),t.getCurrentPostId(),{template:o.slug}),n.dispatch(_s.store).createSuccessNotice((0,fs.__)("Custom template created. You're in template mode now."),{type:"snackbar",actions:[{label:(0,fs.__)("Go back"),onClick:()=>s.setRenderingMode(t.getEditorSettings().defaultRenderingMode)}]}),o},Yl=e=>({registry:t})=>{const s=(t.select(C.store).get("core","hiddenBlockTypes")??[]).filter((t=>!(Array.isArray(e)?e:[e]).includes(t)));t.dispatch(C.store).set("core","hiddenBlockTypes",s)},ql=e=>({registry:t})=>{const s=t.select(C.store).get("core","hiddenBlockTypes")??[],n=new Set([...s,...Array.isArray(e)?e:[e]]);t.dispatch(C.store).set("core","hiddenBlockTypes",[...n])},Kl=({onSave:e,dirtyEntityRecords:t=[],entitiesToSkip:s=[],close:n}={})=>({registry:o})=>{const r=[{kind:"postType",name:"wp_navigation"}],i="site-editor-save-success",a=o.select(u.store).getEntityRecord("root","__unstableBase")?.home;o.dispatch(_s.store).removeNotice(i);const l=t.filter((({kind:e,name:t,key:n,property:o})=>!s.some((s=>s.kind===e&&s.name===t&&s.key===n&&s.property===o))));n?.(l);const c=[],d=[];l.forEach((({kind:e,name:t,key:s,property:n})=>{"root"===e&&"site"===t?c.push(n):(r.some((s=>s.kind===e&&s.name===t))&&o.dispatch(u.store).editEntityRecord(e,t,s,{status:"publish"}),d.push(o.dispatch(u.store).saveEditedEntityRecord(e,t,s)))})),c.length&&d.push(o.dispatch(u.store).__experimentalSaveSpecifiedEntityEdits("root","site",void 0,c)),o.dispatch(g.store).__unstableMarkLastChangeAsPersistent(),Promise.all(d).then((t=>e?e(t):t)).then((e=>{e.some((e=>void 0===e))?o.dispatch(_s.store).createErrorNotice((0,fs.__)("Saving failed.")):o.dispatch(_s.store).createSuccessNotice((0,fs.__)("Site updated."),{type:"snackbar",id:i,actions:[{label:(0,fs.__)("View site"),url:a,openInNewTab:!0}]})})).catch((e=>o.dispatch(_s.store).createErrorNotice(`${(0,fs.__)("Saving failed.")} ${e}`)))},Ql=(e,{allowUndo:t=!0}={})=>async({registry:s})=>{const n="edit-site-template-reverted";if(s.dispatch(_s.store).removeNotice(n),On(e))try{const o=s.select(u.store).getEntityConfig("postType",e.type);if(!o)return void s.dispatch(_s.store).createErrorNotice((0,fs.__)("The editor has encountered an unexpected error. Please reload."),{type:"snackbar"});const r=(0,w.addQueryArgs)(`${o.baseURL}/${e.id}`,{context:"edit",source:e.origin}),i=await gs()({path:r});if(!i)return void s.dispatch(_s.store).createErrorNotice((0,fs.__)("The editor has encountered an unexpected error. Please reload."),{type:"snackbar"});const a=({blocks:e=[]})=>(0,x.__unstableSerializeAndClean)(e),l=s.select(u.store).getEditedEntityRecord("postType",e.type,e.id);s.dispatch(u.store).editEntityRecord("postType",e.type,e.id,{content:a,blocks:l.blocks,source:"custom"},{undoIgnore:!0});const c=(0,x.parse)(i?.content?.raw);if(s.dispatch(u.store).editEntityRecord("postType",e.type,i.id,{content:a,blocks:c,source:"theme"}),t){const t=()=>{s.dispatch(u.store).editEntityRecord("postType",e.type,l.id,{content:a,blocks:l.blocks,source:"custom"})};s.dispatch(_s.store).createSuccessNotice((0,fs.__)("Template reset."),{type:"snackbar",id:n,actions:[{label:(0,fs.__)("Undo"),onClick:t}]})}}catch(e){const t=e.message&&"unknown_error"!==e.code?e.message:(0,fs.__)("Template revert failed. Please reload.");s.dispatch(_s.store).createErrorNotice(t,{type:"snackbar"})}else s.dispatch(_s.store).createErrorNotice((0,fs.__)("This template is not revertable."),{type:"snackbar"})},Xl=e=>async({registry:t})=>{const s=e.every((e=>e?.has_theme_file)),n=await Promise.allSettled(e.map((e=>t.dispatch(u.store).deleteEntityRecord("postType",e.type,e.id,{force:!0},{throwOnError:!0}))));if(n.every((({status:e})=>"fulfilled"===e))){let n;if(1===e.length){let t;"string"==typeof e[0].title?t=e[0].title:"string"==typeof e[0].title?.rendered?t=e[0].title?.rendered:"string"==typeof e[0].title?.raw&&(t=e[0].title?.raw),n=s?(0,fs.sprintf)((0,fs.__)('"%s" reset.'),(0,Ln.decodeEntities)(t)):(0,fs.sprintf)((0,fs._x)('"%s" deleted.',"template part"),(0,Ln.decodeEntities)(t))}else n=s?(0,fs.__)("Items reset."):(0,fs.__)("Items deleted.");t.dispatch(_s.store).createSuccessNotice(n,{type:"snackbar",id:"editor-template-deleted-success"})}else{let e;if(1===n.length)e=n[0].reason?.message?n[0].reason.message:s?(0,fs.__)("An error occurred while reverting the item."):(0,fs.__)("An error occurred while deleting the item.");else{const t=new Set,o=n.filter((({status:e})=>"rejected"===e));for(const e of o)e.reason?.message&&t.add(e.reason.message);e=0===t.size?(0,fs.__)("An error occurred while deleting the items."):1===t.size?s?(0,fs.sprintf)((0,fs.__)("An error occurred while reverting the items: %s"),[...t][0]):(0,fs.sprintf)((0,fs.__)("An error occurred while deleting the items: %s"),[...t][0]):s?(0,fs.sprintf)((0,fs.__)("Some errors occurred while reverting the items: %s"),[...t].join(",")):(0,fs.sprintf)((0,fs.__)("Some errors occurred while deleting the items: %s"),[...t].join(","))}t.dispatch(_s.store).createErrorNotice(e,{type:"snackbar"})}},Jl=e=>({select:t,registry:s})=>{const n=t.getCurrentPostType(),o=s.select(u.store).getCurrentTheme()?.stylesheet,r=s.select(C.store).get("core","renderingModes")?.[o]??{};if(r[n]===e)return;const i={[o]:{...r,[n]:e}};s.dispatch(C.store).set("core","renderingModes",i)};function ec(e){return{type:"SET_CANVAS_MIN_HEIGHT",minHeight:e}}var tc=s(5215),sc=s.n(tc),nc=(0,c.jsx)(L.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,c.jsx)(L.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"})}),oc=(0,c.jsx)(L.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,c.jsx)(L.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"})});const rc=[];const ic={rootClientId:void 0,insertionIndex:void 0,filterValue:void 0},ac=["post-only","template-locked"],lc=(0,d.createRegistrySelector)((e=>(0,d.createSelector)((t=>{if("object"==typeof t.blockInserterPanel)return t.blockInserterPanel;if("template-locked"===st(t)){const[t]=e(g.store).getBlocksByName("core/post-content");if(t)return{rootClientId:t,insertionIndex:void 0,filterValue:void 0}}return ic}),(t=>{const[s]=e(g.store).getBlocksByName("core/post-content");return[t.blockInserterPanel,st(t),s]}))));function cc(e){return e.listViewToggleRef}function dc(e){return e.inserterSidebarToggleRef}const uc={wp_block:Ji,wp_navigation:nc,page:ea,post:oc},pc=(0,d.createRegistrySelector)((e=>(t,s,n)=>{{if("wp_template_part"===s||"wp_template"===s){const t=(e(u.store).getCurrentTheme()?.default_template_part_areas||[]).find((e=>n.area===e.area));return t?.icon?H(t.icon):W}if(uc[s])return uc[s];const t=e(u.store).getPostType(s);return"string"==typeof t?.icon&&t.icon.startsWith("dashicons-")?t.icon.slice(10):ea}})),mc=(0,d.createRegistrySelector)((e=>(t,s,n)=>{const{type:o,id:r}=ne(t),i=e(u.store).getEntityRecordNonTransientEdits("postType",s||o,n||r);if(!i?.meta)return!1;const a=e(u.store).getEntityRecord("postType",s||o,n||r)?.meta;return!sc()({...a,footnotes:void 0},{...i.meta,footnotes:void 0})}));function hc(e,...t){return function(e,t,s){return e.actions[t]?.[s]??rc}(e.dataviews,...t)}function gc(e,...t){return function(e,t,s){return e.isReady[t]?.[s]}(e.dataviews,...t)}function _c(e,...t){return function(e,t,s){return e.fields[t]?.[s]??rc}(e.dataviews,...t)}const fc=(0,d.createRegistrySelector)((e=>(0,d.createSelector)(((t,s)=>{s=Array.isArray(s)?s:[s];const{getBlocksByName:n,getBlockParents:o,getBlockName:r}=e(g.store);return n(s).filter((e=>o(e).every((e=>{const t=r(e);return"core/query"!==t&&!s.includes(t)}))))}),(()=>[e(g.store).getBlocks()])))),bc=(0,d.createRegistrySelector)((e=>(t,s)=>{const{getPostType:n,getCurrentTheme:o,hasFinishedResolution:r}=e(u.store),i=o(),a=n(s);if(!r("getPostType",[s])||!r("getCurrentTheme"))return;const l=i?.stylesheet,c=e(C.store).get("core","renderingModes")?.[l]?.[s],d=Array.isArray(a?.supports?.editor)?a.supports.editor.find((e=>"default-mode"in e))?.["default-mode"]:void 0,p=c||d;return ac.includes(p)?p:"post-only"}));function yc(e){return e.canvasMinHeight}const xc={reducer:y,selectors:e,actions:t},vc=(0,d.createReduxStore)("core/editor",{...xc});(0,d.register)(vc),$(vc).registerPrivateActions(a),$(vc).registerPrivateSelectors(l);function wc(e){const t=e.avatar_urls&&e.avatar_urls[24]?(0,c.jsx)("img",{className:"editor-autocompleters__user-avatar",alt:"",src:e.avatar_urls[24]}):(0,c.jsx)("span",{className:"editor-autocompleters__no-avatar"});return(0,c.jsxs)(c.Fragment,{children:[t,(0,c.jsx)("span",{className:"editor-autocompleters__user-name",children:e.name}),(0,c.jsx)("span",{className:"editor-autocompleters__user-slug",children:e.slug})]})}(0,h.addFilter)("blocks.registerBlockType","core/editor/custom-sources-backwards-compatibility/shim-attribute-source",(function(e){const t=Object.fromEntries(Object.entries(e.attributes??{}).filter((([,{source:e}])=>"meta"===e)).map((([e,{meta:t}])=>[e,t])));return Object.entries(t).length&&(e.edit=(e=>(0,m.createHigherOrderComponent)((t=>({attributes:s,setAttributes:n,...o})=>{const r=(0,d.useSelect)((e=>e(vc).getCurrentPostType()),[]),[i,a]=(0,u.useEntityProp)("postType",r,"meta"),l=(0,p.useMemo)((()=>({...s,...Object.fromEntries(Object.entries(e).map((([e,t])=>[e,i[t]])))})),[s,i]);return(0,c.jsx)(t,{attributes:l,setAttributes:t=>{const s=Object.fromEntries(Object.entries(t??{}).filter((([t])=>t in e)).map((([t,s])=>[e[t],s])));Object.entries(s).length&&a(s),n(t)},...o})}),"withMetaAttributeSource"))(t)(e.edit)),e}));var Sc={name:"users",className:"editor-autocompleters__user",triggerPrefix:"@",useItems(e){const t=(0,d.useSelect)((t=>{const{getUsers:s}=t(u.store);return s({context:"view",search:encodeURIComponent(e)})}),[e]);return[(0,p.useMemo)((()=>t?t.map((e=>({key:`user-${e.slug}`,value:e,label:wc(e)}))):[]),[t])]},getOptionCompletion:e=>`@${e.slug}`};(0,h.addFilter)("editor.Autocomplete.completers","editor/autocompleters/set-default-completers",(function(e=[]){return e.push({...Sc}),e})),(0,h.addFilter)("editor.MediaUpload","core/editor/components/media-upload",(()=>lr.MediaUpload));const{PatternOverridesControls:kc,ResetOverridesControl:Cc,PatternOverridesBlockControls:Pc,PATTERN_TYPES:jc,PARTIAL_SYNCING_SUPPORTED_BLOCKS:Ec,PATTERN_SYNC_TYPES:Tc}=$(ao.privateApis),Bc=(0,m.createHigherOrderComponent)((e=>t=>{const s=!!Ec[t.name];return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(e,{...t},"edit"),t.isSelected&&s&&(0,c.jsx)(Ic,{...t}),s&&(0,c.jsx)(Pc,{})]})}),"withPatternOverrideControls");function Ic(e){const t=(0,g.useBlockEditingMode)(),{hasPatternOverridesSource:s,isEditingSyncedPattern:n}=(0,d.useSelect)((e=>{const{getCurrentPostType:t,getEditedPostAttribute:s}=e(vc);return{hasPatternOverridesSource:!!(0,x.getBlockBindingsSource)("core/pattern-overrides"),isEditingSyncedPattern:t()===jc.user&&s("meta")?.wp_pattern_sync_status!==Tc.unsynced&&s("wp_pattern_sync_status")!==Tc.unsynced}}),[]),o=e.attributes.metadata?.bindings,r=!!o&&Object.values(o).some((e=>"core/pattern-overrides"===e.source)),i=n&&"default"===t,a=!n&&!!e.attributes.metadata?.name&&"disabled"!==t&&r;return s?(0,c.jsxs)(c.Fragment,{children:[i&&(0,c.jsx)(kc,{...e}),a&&(0,c.jsx)(Cc,{...e})]}):null}(0,h.addFilter)("editor.BlockEdit","core/editor/with-pattern-override-controls",Bc);const Nc=["core/navigation-link","core/navigation-submenu"];function Rc({attributes:e}){const{kind:t,id:s,type:n}=e,o=(0,g.useBlockEditingMode)(),r=(0,d.useSelect)((e=>e(g.store).getSettings().onNavigateToEntityRecord),[]),i=(0,p.useCallback)((()=>{"post-type"===t&&"page"===n&&s&&r&&r({postId:s,postType:n})}),[t,s,n,r]);return"post-type"===t&&"page"===n&&s&&r&&"contentOnly"===o?(0,c.jsx)(g.__unstableBlockToolbarLastItem,{children:(0,c.jsx)(Hn.ToolbarGroup,{children:(0,c.jsx)(Hn.ToolbarButton,{name:"view",title:(0,fs.__)("View"),onClick:i,children:(0,fs.__)("View")})})}):null}const Dc=(0,m.createHigherOrderComponent)((e=>t=>{const s=Nc.includes(t.name);return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(e,{...t},"edit"),t.isSelected&&s&&(0,c.jsx)(Rc,{...t})]})}),"withNavigationViewButton");(0,h.addFilter)("editor.BlockEdit","core/editor/with-navigation-view-button",Dc);function Ac({clientId:e}){const{selectBlock:t,flashBlock:s}=(0,d.useDispatch)(g.store),{enableComplementaryArea:n}=(0,d.useDispatch)(ja),{hasNavigationBlocks:o,firstNavigationBlockId:r,isNavigationEditable:i}=(0,d.useSelect)((t=>{const{getClientIdsOfDescendants:s,getBlockName:n,getBlockEditingMode:o}=t(g.store),r=s(e).filter((e=>"core/navigation"===n(e))),i=r.length>0,a=i?r[0]:null;return{hasNavigationBlocks:i,firstNavigationBlockId:a,isNavigationEditable:"disabled"!==o(a)}}),[e]),a=(0,p.useCallback)((()=>{r&&(t(r),s(r,500),n("core","edit-post/block"))}),[r,t,s,n]);return o&&i?(0,c.jsx)(g.BlockControls,{group:"other",children:(0,c.jsxs)(Hn.ToolbarGroup,{children:[(0,c.jsx)(Hn.__experimentalDivider,{orientation:"vertical",marginEnd:3}),(0,c.jsx)(Hn.ToolbarButton,{label:(0,fs.__)("Edit navigation"),onClick:a,children:(0,fs.__)("Edit navigation")})]})}):null}const Mc=(0,m.createHigherOrderComponent)((e=>t=>{const s="core/template-part"===t.name;return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(e,{...t},"edit"),t.isSelected&&s&&(0,c.jsx)(Ac,{clientId:t.clientId})]})}),"withTemplatePartNavigationEditButton");(0,h.addFilter)("editor.BlockEdit","core/editor/with-template-part-navigation-edit-button",Mc);class Lc extends p.Component{constructor(e){super(e),this.needsAutosave=!(!e.isDirty||!e.isAutosaveable)}componentDidMount(){this.props.disableIntervalChecks||this.setAutosaveTimer()}componentDidUpdate(e){this.props.disableIntervalChecks?this.props.editsReference!==e.editsReference&&this.props.autosave():(this.props.interval!==e.interval&&(clearTimeout(this.timerId),this.setAutosaveTimer()),this.props.isDirty&&(!this.props.isAutosaving||e.isAutosaving)?this.props.editsReference!==e.editsReference&&(this.needsAutosave=!0):this.needsAutosave=!1)}componentWillUnmount(){clearTimeout(this.timerId)}setAutosaveTimer(e=1e3*this.props.interval){this.timerId=setTimeout((()=>{this.autosaveTimerHandler()}),e)}autosaveTimerHandler(){this.props.isAutosaveable?(this.needsAutosave&&(this.needsAutosave=!1,this.props.autosave()),this.setAutosaveTimer()):this.setAutosaveTimer(1e3)}render(){return null}}var Oc=(0,m.compose)([(0,d.withSelect)(((e,t)=>{const{getReferenceByDistinctEdits:s}=e(u.store),{isEditedPostDirty:n,isEditedPostAutosaveable:o,isAutosavingPost:r,getEditorSettings:i}=e(vc),{interval:a=i().autosaveInterval}=t;return{editsReference:s(),isDirty:n(),isAutosaveable:o(),isAutosaving:r(),interval:a}})),(0,d.withDispatch)(((e,t)=>({autosave(){const{autosave:s=e(vc).autosave}=t;s()}})))])(Lc),Fc=(0,c.jsx)(L.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,c.jsx)(L.Path,{d:"M10.8622 8.04053L14.2805 12.0286L10.8622 16.0167L9.72327 15.0405L12.3049 12.0286L9.72327 9.01672L10.8622 8.04053Z"})}),Vc=(0,c.jsx)(L.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,c.jsx)(L.Path,{d:"m13.1 16-3.4-4 3.4-4 1.1 1-2.6 3 2.6 3-1.1 1z"})});const Uc=window.wp.dom;function Hc(e){const{isFrontPage:t,isPostsPage:s}=(0,d.useSelect)((t=>{const{canUser:s,getEditedEntityRecord:n}=t(u.store),o=s("read",{kind:"root",name:"site"})?n("root","site"):void 0,r=parseInt(e,10);return{isFrontPage:o?.page_on_front===r,isPostsPage:o?.page_for_posts===r}}));return t?(0,fs.__)("Homepage"):!!s&&(0,fs.__)("Posts Page")}const zc=Hn.__unstableMotion.create(Hn.Button);function Gc(e){const{postId:t,postType:s,postTypeLabel:n,documentTitle:o,isNotFound:r,templateTitle:i,onNavigateToPreviousEntityRecord:a,isTemplatePreview:l}=(0,d.useSelect)((e=>{const{getCurrentPostType:t,getCurrentPostId:s,getEditorSettings:n,getRenderingMode:o}=e(vc),{getEditedEntityRecord:r,getPostType:i,getCurrentTheme:a,isResolving:l}=e(u.store),c=t(),d=s(),p=r("postType",c,d),{default_template_types:m=[]}=a()??{},h=Y({templateTypes:m,template:p}),g=i(c)?.labels?.singular_name;return{postId:d,postType:c,postTypeLabel:g,documentTitle:p.title,isNotFound:!p&&!l("getEditedEntityRecord","postType",c,d),templateTitle:h.title,onNavigateToPreviousEntityRecord:n().onNavigateToPreviousEntityRecord,isTemplatePreview:"template-locked"===o()}}),[]),{open:h}=(0,d.useDispatch)(na.store),_=(0,m.useReducedMotion)(),f=A.includes(s),b=!!a,y=f?i:o,x=e.title||y,v=e.icon,w=Hc(t),S=(0,p.useRef)(!1);return(0,p.useEffect)((()=>{S.current=!0}),[]),(0,c.jsxs)("div",{className:mr("editor-document-bar",{"has-back-button":b}),children:[(0,c.jsx)(Hn.__unstableAnimatePresence,{children:b&&(0,c.jsx)(zc,{className:"editor-document-bar__back",icon:(0,fs.isRTL)()?Fc:Vc,onClick:e=>{e.stopPropagation(),a()},size:"compact",initial:!!S.current&&{opacity:0,transform:"translateX(15%)"},animate:{opacity:1,transform:"translateX(0%)"},exit:{opacity:0,transform:"translateX(15%)"},transition:_?{duration:0}:void 0,children:(0,fs.__)("Back")})}),!f&&l&&!b&&(0,c.jsx)(g.BlockIcon,{icon:W,className:"editor-document-bar__icon-layout"}),r?(0,c.jsx)(Hn.__experimentalText,{children:(0,fs.__)("Document not found")}):(0,c.jsxs)(Hn.Button,{className:"editor-document-bar__command",onClick:()=>h(),size:"compact",children:[(0,c.jsxs)(Hn.__unstableMotion.div,{className:"editor-document-bar__title",initial:!!S.current&&{opacity:0,transform:b?"translateX(15%)":"translateX(-15%)"},animate:{opacity:1,transform:"translateX(0%)"},transition:_?{duration:0}:void 0,children:[v&&(0,c.jsx)(g.BlockIcon,{icon:v}),(0,c.jsxs)(Hn.__experimentalText,{size:"body",as:"h1",children:[(0,c.jsx)("span",{className:"editor-document-bar__post-title",children:x?(0,Uc.__unstableStripHTML)(x):(0,fs.__)("No title")}),w&&(0,c.jsx)("span",{className:"editor-document-bar__post-type-label",children:`· ${w}`}),n&&!e.title&&!w&&(0,c.jsx)("span",{className:"editor-document-bar__post-type-label",children:`· ${(0,Ln.decodeEntities)(n)}`})]})]},b),(0,c.jsx)("span",{className:"editor-document-bar__shortcut",children:ll.displayShortcut.primary("k")})]})]})}const $c=window.wp.richText;var Wc=({children:e,isValid:t,isDisabled:s,level:n,href:o,onSelect:r})=>(0,c.jsx)("li",{className:mr("document-outline__item",`is-${n.toLowerCase()}`,{"is-invalid":!t,"is-disabled":s}),children:(0,c.jsxs)("a",{href:o,className:"document-outline__button","aria-disabled":s,onClick:function(e){s?e.preventDefault():r()},children:[(0,c.jsx)("span",{className:"document-outline__emdash","aria-hidden":"true"}),(0,c.jsx)("strong",{className:"document-outline__level",children:n}),(0,c.jsx)("span",{className:"document-outline__item-content",children:e})]})});const Zc=(0,c.jsx)("em",{children:(0,fs.__)("(Empty heading)")}),Yc=[(0,c.jsx)("br",{},"incorrect-break"),(0,c.jsx)("em",{children:(0,fs.__)("(Incorrect heading level)")},"incorrect-message")],qc=[(0,c.jsx)("br",{},"incorrect-break-h1"),(0,c.jsx)("em",{children:(0,fs.__)("(Your theme may already use a H1 for the post title)")},"incorrect-message-h1")],Kc=[(0,c.jsx)("br",{},"incorrect-break-multiple-h1"),(0,c.jsx)("em",{children:(0,fs.__)("(Multiple H1 headings are not recommended)")},"incorrect-message-multiple-h1")];function Qc(){return(0,c.jsxs)(Hn.SVG,{width:"138",height:"148",viewBox:"0 0 138 148",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,c.jsx)(Hn.Rect,{width:"138",height:"148",rx:"4",fill:"#F0F6FC"}),(0,c.jsx)(Hn.Line,{x1:"44",y1:"28",x2:"24",y2:"28",stroke:"#DDDDDD"}),(0,c.jsx)(Hn.Rect,{x:"48",y:"16",width:"27",height:"23",rx:"4",fill:"#DDDDDD"}),(0,c.jsx)(Hn.Path,{d:"M54.7585 32V23.2727H56.6037V26.8736H60.3494V23.2727H62.1903V32H60.3494V28.3949H56.6037V32H54.7585ZM67.4574 23.2727V32H65.6122V25.0241H65.5611L63.5625 26.277V24.6406L65.723 23.2727H67.4574Z",fill:"black"}),(0,c.jsx)(Hn.Line,{x1:"55",y1:"59",x2:"24",y2:"59",stroke:"#DDDDDD"}),(0,c.jsx)(Hn.Rect,{x:"59",y:"47",width:"29",height:"23",rx:"4",fill:"#DDDDDD"}),(0,c.jsx)(Hn.Path,{d:"M65.7585 63V54.2727H67.6037V57.8736H71.3494V54.2727H73.1903V63H71.3494V59.3949H67.6037V63H65.7585ZM74.6605 63V61.6705L77.767 58.794C78.0313 58.5384 78.2528 58.3082 78.4318 58.1037C78.6136 57.8991 78.7514 57.6989 78.8452 57.5028C78.9389 57.304 78.9858 57.0895 78.9858 56.8594C78.9858 56.6037 78.9276 56.3835 78.8111 56.1989C78.6946 56.0114 78.5355 55.8679 78.3338 55.7685C78.1321 55.6662 77.9034 55.6151 77.6477 55.6151C77.3807 55.6151 77.1477 55.669 76.9489 55.777C76.75 55.8849 76.5966 56.0398 76.4886 56.2415C76.3807 56.4432 76.3267 56.6832 76.3267 56.9616H74.5753C74.5753 56.3906 74.7045 55.8949 74.9631 55.4744C75.2216 55.054 75.5838 54.7287 76.0497 54.4986C76.5156 54.2685 77.0526 54.1534 77.6605 54.1534C78.2855 54.1534 78.8295 54.2642 79.2926 54.4858C79.7585 54.7045 80.1207 55.0085 80.3793 55.3977C80.6378 55.7869 80.767 56.233 80.767 56.7358C80.767 57.0653 80.7017 57.3906 80.571 57.7116C80.4432 58.0327 80.2145 58.3892 79.8849 58.7812C79.5554 59.1705 79.0909 59.6378 78.4915 60.1832L77.2173 61.4318V61.4915H80.8821V63H74.6605Z",fill:"black"}),(0,c.jsx)(Hn.Line,{x1:"80",y1:"90",x2:"24",y2:"90",stroke:"#DDDDDD"}),(0,c.jsx)(Hn.Rect,{x:"84",y:"78",width:"30",height:"23",rx:"4",fill:"#F0B849"}),(0,c.jsx)(Hn.Path,{d:"M90.7585 94V85.2727H92.6037V88.8736H96.3494V85.2727H98.1903V94H96.3494V90.3949H92.6037V94H90.7585ZM99.5284 92.4659V91.0128L103.172 85.2727H104.425V87.2841H103.683L101.386 90.919V90.9872H106.564V92.4659H99.5284ZM103.717 94V92.0227L103.751 91.3793V85.2727H105.482V94H103.717Z",fill:"black"}),(0,c.jsx)(Hn.Line,{x1:"66",y1:"121",x2:"24",y2:"121",stroke:"#DDDDDD"}),(0,c.jsx)(Hn.Rect,{x:"70",y:"109",width:"29",height:"23",rx:"4",fill:"#DDDDDD"}),(0,c.jsx)(Hn.Path,{d:"M76.7585 125V116.273H78.6037V119.874H82.3494V116.273H84.1903V125H82.3494V121.395H78.6037V125H76.7585ZM88.8864 125.119C88.25 125.119 87.6832 125.01 87.1861 124.791C86.6918 124.57 86.3011 124.266 86.0142 123.879C85.7301 123.49 85.5838 123.041 85.5753 122.533H87.4332C87.4446 122.746 87.5142 122.933 87.642 123.095C87.7727 123.254 87.946 123.378 88.1619 123.466C88.3778 123.554 88.6207 123.598 88.8906 123.598C89.1719 123.598 89.4205 123.548 89.6364 123.449C89.8523 123.349 90.0213 123.212 90.1435 123.036C90.2656 122.859 90.3267 122.656 90.3267 122.426C90.3267 122.193 90.2614 121.987 90.1307 121.808C90.0028 121.626 89.8182 121.484 89.5767 121.382C89.3381 121.28 89.054 121.229 88.7244 121.229H87.9105V119.874H88.7244C89.0028 119.874 89.2486 119.825 89.4616 119.729C89.6776 119.632 89.8452 119.499 89.9645 119.328C90.0838 119.155 90.1435 118.953 90.1435 118.723C90.1435 118.504 90.0909 118.312 89.9858 118.148C89.8835 117.98 89.7386 117.849 89.5511 117.756C89.3665 117.662 89.1506 117.615 88.9034 117.615C88.6534 117.615 88.4247 117.661 88.2173 117.751C88.0099 117.839 87.8438 117.966 87.7188 118.131C87.5938 118.295 87.527 118.489 87.5185 118.71H85.75C85.7585 118.207 85.902 117.764 86.1804 117.381C86.4588 116.997 86.8338 116.697 87.3054 116.482C87.7798 116.263 88.3153 116.153 88.9119 116.153C89.5142 116.153 90.0412 116.263 90.4929 116.482C90.9446 116.7 91.2955 116.996 91.5455 117.368C91.7983 117.737 91.9233 118.152 91.9205 118.612C91.9233 119.101 91.7713 119.509 91.4645 119.835C91.1605 120.162 90.7642 120.369 90.2756 120.457V120.526C90.9176 120.608 91.4063 120.831 91.7415 121.195C92.0795 121.555 92.2472 122.007 92.2443 122.55C92.2472 123.047 92.1037 123.489 91.8139 123.875C91.527 124.261 91.1307 124.565 90.625 124.787C90.1193 125.009 89.5398 125.119 88.8864 125.119Z",fill:"black"})]})}const Xc=(e=[])=>e.filter((e=>"core/heading"===e.name)).map((e=>({...e,level:e.attributes.level,isEmpty:Jc(e)}))),Jc=e=>!e.attributes.content||0===e.attributes.content.trim().length;function ed({onSelect:e,hasOutlineItemsDisabled:t}){const{selectBlock:s}=(0,d.useDispatch)(g.store),{title:n,isTitleSupported:o}=(0,d.useSelect)((e=>{const{getEditedPostAttribute:t}=e(vc),{getPostType:s}=e(u.store),n=s(t("type"));return{title:t("title"),isTitleSupported:n?.supports?.title??!1}})),r=(0,d.useSelect)((e=>{const{getClientIdsWithDescendants:t,getBlock:s}=e(g.store);return t().map((e=>s(e)))})),i=(0,d.useSelect)((e=>{if("post-only"===e(vc).getRenderingMode())return;const{getBlocksByName:t,getClientIdsOfDescendants:s}=e(g.store),[n]=t("core/post-content");return n?s(n):void 0}),[]),a=(0,p.useRef)(1),l=(0,p.useMemo)((()=>Xc(r)),[r]);if(l.length<1)return(0,c.jsxs)("div",{className:"editor-document-outline has-no-headings",children:[(0,c.jsx)(Qc,{}),(0,c.jsx)("p",{children:(0,fs.__)("Navigate the structure of your document and address issues like empty or incorrect heading levels.")})]});const m=document.querySelector(".editor-post-title__input"),h=o&&n&&m,_=l.reduce(((e,t)=>({...e,[t.level]:(e[t.level]||0)+1})),{})[1]>1;return(0,c.jsx)("div",{className:"document-outline",children:(0,c.jsxs)("ul",{children:[h&&(0,c.jsx)(Wc,{level:(0,fs.__)("Title"),isValid:!0,onSelect:e,href:`#${m.id}`,isDisabled:t,children:n}),l.map((n=>{const o=n.level>a.current+1,r=!(n.isEmpty||o||!n.level||1===n.level&&(_||h));return a.current=n.level,(0,c.jsxs)(Wc,{level:`H${n.level}`,isValid:r,isDisabled:t||(l=n.clientId,!(!Array.isArray(i)||i.includes(l))),href:`#block-${n.clientId}`,onSelect:()=>{s(n.clientId),e?.()},children:[n.isEmpty?Zc:(0,$c.getTextContent)((0,$c.create)({html:n.attributes.content})),o&&Yc,1===n.level&&_&&Kc,h&&1===n.level&&!_&&qc]},n.clientId);var l}))]})})}function td({children:e}){const t=(0,d.useSelect)((e=>{const{getGlobalBlockCount:t}=e(g.store);return t("core/heading")>0}));return t?e:null}var sd=function(){const{registerShortcut:e}=(0,d.useDispatch)(il.store);return(0,p.useEffect)((()=>{e({name:"core/editor/toggle-mode",category:"global",description:(0,fs.__)("Switch between visual editor and code editor."),keyCombination:{modifier:"secondary",character:"m"}}),e({name:"core/editor/save",category:"global",description:(0,fs.__)("Save your changes."),keyCombination:{modifier:"primary",character:"s"}}),e({name:"core/editor/undo",category:"global",description:(0,fs.__)("Undo your last changes."),keyCombination:{modifier:"primary",character:"z"}}),e({name:"core/editor/redo",category:"global",description:(0,fs.__)("Redo your last undo."),keyCombination:{modifier:"primaryShift",character:"z"},aliases:(0,ll.isAppleOS)()?[]:[{modifier:"primary",character:"y"}]}),e({name:"core/editor/toggle-list-view",category:"global",description:(0,fs.__)("Show or hide the List View."),keyCombination:{modifier:"access",character:"o"}}),e({name:"core/editor/toggle-distraction-free",category:"global",description:(0,fs.__)("Enter or exit distraction free mode."),keyCombination:{modifier:"primaryShift",character:"\\"}}),e({name:"core/editor/toggle-sidebar",category:"global",description:(0,fs.__)("Show or hide the Settings panel."),keyCombination:{modifier:"primaryShift",character:","}}),e({name:"core/editor/keyboard-shortcuts",category:"main",description:(0,fs.__)("Display these keyboard shortcuts."),keyCombination:{modifier:"access",character:"h"}}),e({name:"core/editor/next-region",category:"global",description:(0,fs.__)("Navigate to the next part of the editor."),keyCombination:{modifier:"ctrl",character:"`"},aliases:[{modifier:"access",character:"n"}]}),e({name:"core/editor/previous-region",category:"global",description:(0,fs.__)("Navigate to the previous part of the editor."),keyCombination:{modifier:"ctrlShift",character:"`"},aliases:[{modifier:"access",character:"p"},{modifier:"ctrlShift",character:"~"}]})}),[e]),(0,c.jsx)(g.BlockEditorKeyboardShortcuts.Register,{})},nd=(0,c.jsx)(L.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,c.jsx)(L.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"})}),od=(0,c.jsx)(L.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,c.jsx)(L.Path,{d:"M18.3 11.7c-.6-.6-1.4-.9-2.3-.9H6.7l2.9-3.3-1.1-1-4.5 5L8.5 16l1-1-2.7-2.7H16c.5 0 .9.2 1.3.5 1 1 1 3.4 1 4.5v.3h1.5v-.2c0-1.5 0-4.3-1.5-5.7z"})});var rd=(0,p.forwardRef)((function(e,t){const s=(0,ll.isAppleOS)()?ll.displayShortcut.primaryShift("z"):ll.displayShortcut.primary("y"),n=(0,d.useSelect)((e=>e(vc).hasEditorRedo()),[]),{redo:o}=(0,d.useDispatch)(vc);return(0,c.jsx)(Hn.Button,{__next40pxDefaultSize:!0,...e,ref:t,icon:(0,fs.isRTL)()?od:nd,label:(0,fs.__)("Redo"),shortcut:s,"aria-disabled":!n,onClick:n?o:void 0,className:"editor-history__redo"})}));var id=(0,p.forwardRef)((function(e,t){const s=(0,d.useSelect)((e=>e(vc).hasEditorUndo()),[]),{undo:n}=(0,d.useDispatch)(vc);return(0,c.jsx)(Hn.Button,{__next40pxDefaultSize:!0,...e,ref:t,icon:(0,fs.isRTL)()?nd:od,label:(0,fs.__)("Undo"),shortcut:ll.displayShortcut.primary("z"),"aria-disabled":!s,onClick:s?n:void 0,className:"editor-history__undo"})}));function ad(){const[e,t]=(0,p.useState)(!1),s=(0,d.useSelect)((e=>e(g.store).isValidTemplate()),[]),{setTemplateValidity:n,synchronizeTemplate:o}=(0,d.useDispatch)(g.store);return s?null:(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(Hn.Notice,{className:"editor-template-validation-notice",isDismissible:!1,status:"warning",actions:[{label:(0,fs.__)("Keep it as is"),onClick:()=>n(!0)},{label:(0,fs.__)("Reset the template"),onClick:()=>t(!0)}],children:(0,fs.__)("The content of your post doesn’t match the template assigned to your post type.")}),(0,c.jsx)(Hn.__experimentalConfirmDialog,{isOpen:e,confirmButtonText:(0,fs.__)("Reset"),onConfirm:()=>{t(!1),o()},onCancel:()=>t(!1),size:"medium",children:(0,fs.__)("Resetting the template may result in loss of content, do you want to continue?")})]})}var ld=function(){const{notices:e}=(0,d.useSelect)((e=>({notices:e(_s.store).getNotices()})),[]),{removeNotice:t}=(0,d.useDispatch)(_s.store),s=e.filter((({isDismissible:e,type:t})=>e&&"default"===t)),n=e.filter((({isDismissible:e,type:t})=>!e&&"default"===t));return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(Hn.NoticeList,{notices:n,className:"components-editor-notices__pinned"}),(0,c.jsx)(Hn.NoticeList,{notices:s,className:"components-editor-notices__dismissible",onRemove:t,children:(0,c.jsx)(ad,{})})]})};const cd=-3;function dd(){const e=(0,d.useSelect)((e=>e(_s.store).getNotices()),[]),{removeNotice:t}=(0,d.useDispatch)(_s.store),s=e.filter((({type:e})=>"snackbar"===e)).slice(cd);return(0,c.jsx)(Hn.SnackbarList,{notices:s,className:"components-editor-notices__snackbar",onRemove:t})}function ud({record:e,checked:t,onChange:s}){const{name:n,kind:o,title:r,key:i}=e,{entityRecordTitle:a,hasPostMetaChanges:l}=(0,d.useSelect)((e=>{if("postType"!==o||"wp_template"!==n)return{entityRecordTitle:r,hasPostMetaChanges:$(e(vc)).hasPostMetaChanges(n,i)};const t=e(u.store).getEditedEntityRecord(o,n,i),{default_template_types:s=[]}=e(u.store).getCurrentTheme()??{};return{entityRecordTitle:Y({template:t,templateTypes:s}).title,hasPostMetaChanges:$(e(vc)).hasPostMetaChanges(n,i)}}),[n,o,r,i]);return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(Hn.PanelRow,{children:(0,c.jsx)(Hn.CheckboxControl,{__nextHasNoMarginBottom:!0,label:(0,Ln.decodeEntities)(a)||(0,fs.__)("Untitled"),checked:t,onChange:s,className:"entities-saved-states__change-control"})}),l&&(0,c.jsx)("ul",{className:"entities-saved-states__changes",children:(0,c.jsx)("li",{children:(0,fs.__)("Post Meta.")})})]})}const{getGlobalStylesChanges:pd,GlobalStylesContext:md}=$(g.privateApis);function hd({record:e}){const{user:t}=(0,p.useContext)(md),s=(0,d.useSelect)((t=>t(u.store).getEntityRecord(e.kind,e.name,e.key)),[e.kind,e.name,e.key]),n=pd(t,s,{maxResults:10});return n.length?(0,c.jsx)("ul",{className:"entities-saved-states__changes",children:n.map((e=>(0,c.jsx)("li",{children:e},e)))}):null}function gd({record:e,count:t}){if("globalStyles"===e?.name)return null;const s=function(e,t){switch(e){case"site":return 1===t?(0,fs.__)("This change will affect your whole site."):(0,fs.__)("These changes will affect your whole site.");case"wp_template":return(0,fs.__)("This change will affect other parts of your site that use this template.");case"page":case"post":return(0,fs.__)("The following has been modified.")}}(e?.name,t);return s?(0,c.jsx)(Hn.PanelRow,{children:s}):null}function _d({list:e,unselectedEntities:t,setUnselectedEntities:s}){const n=e.length,o=e[0];let r=(0,d.useSelect)((e=>e(u.store).getEntityConfig(o.kind,o.name)),[o.kind,o.name]).label;return"wp_template_part"===o?.name&&(r=1===n?(0,fs.__)("Template Part"):(0,fs.__)("Template Parts")),(0,c.jsxs)(Hn.PanelBody,{title:r,initialOpen:!0,className:"entities-saved-states__panel-body",children:[(0,c.jsx)(gd,{record:o,count:n}),e.map((e=>(0,c.jsx)(ud,{record:e,checked:!t.some((t=>t.kind===e.kind&&t.name===e.name&&t.key===e.key&&t.property===e.property)),onChange:t=>s(e,t)},e.key||e.property))),"globalStyles"===o?.name&&(0,c.jsx)(hd,{record:o})]})}const fd=()=>{const{editedEntities:e,siteEdits:t,siteEntityConfig:s}=(0,d.useSelect)((e=>{const{__experimentalGetDirtyEntityRecords:t,getEntityRecordEdits:s,getEntityConfig:n}=e(u.store);return{editedEntities:t(),siteEdits:s("root","site"),siteEntityConfig:n("root","site")}}),[]),n=(0,p.useMemo)((()=>{const n=e.filter((e=>!("root"===e.kind&&"site"===e.name))),o=s?.meta?.labels??{},r=[];for(const e in t)r.push({kind:"root",name:"site",title:o[e]||e,property:e});return[...n,...r]}),[e,t,s]),[o,r]=(0,p.useState)([]);return{dirtyEntityRecords:n,isDirty:n.length-o.length>0,setUnselectedEntities:({kind:e,name:t,key:s,property:n},i)=>{r(i?o.filter((o=>o.kind!==e||o.name!==t||o.key!==s||o.property!==n)):[...o,{kind:e,name:t,key:s,property:n}])},unselectedEntities:o}};function bd(e){return e}function yd({close:e,renderDialog:t,variant:s}){const n=fd();return(0,c.jsx)(xd,{close:e,renderDialog:t,variant:s,...n})}function xd({additionalPrompt:e,close:t,onSave:s=bd,saveEnabled:n,saveLabel:o=(0,fs.__)("Save"),renderDialog:r,dirtyEntityRecords:i,isDirty:a,setUnselectedEntities:l,unselectedEntities:u,variant:h="default"}){const g=(0,p.useRef)(),{saveDirtyEntities:_}=$((0,d.useDispatch)(vc)),f=i.reduce(((e,t)=>{const{name:s}=t;return e[s]||(e[s]=[]),e[s].push(t),e}),{}),{site:b,wp_template:y,wp_template_part:x,...v}=f,w=[b,y,x,...Object.values(v)].filter(Array.isArray),S=n??a,k=(0,p.useCallback)((()=>t()),[t]),[C,P]=(0,m.__experimentalUseDialog)({onClose:()=>k()}),j=(0,m.useInstanceId)(xd,"entities-saved-states__panel-label"),E=(0,m.useInstanceId)(xd,"entities-saved-states__panel-description"),T=i.length?(0,fs.__)("Select the items you want to save."):void 0,B="inline"===h,I=(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(Hn.FlexItem,{isBlock:!B,as:Hn.Button,variant:B?"tertiary":"secondary",size:B?void 0:"compact",onClick:k,children:(0,fs.__)("Cancel")}),(0,c.jsx)(Hn.FlexItem,{isBlock:!B,as:Hn.Button,ref:g,variant:"primary",size:B?void 0:"compact",disabled:!S,accessibleWhenDisabled:!0,onClick:()=>_({onSave:s,dirtyEntityRecords:i,entitiesToSkip:u,close:t}),className:"editor-entities-saved-states__save-button",children:o})]});return(0,c.jsxs)("div",{ref:r?C:void 0,...r&&P,className:mr("entities-saved-states__panel",{"is-inline":B}),role:r?"dialog":void 0,"aria-labelledby":r?j:void 0,"aria-describedby":r?E:void 0,children:[!B&&(0,c.jsx)(Hn.Flex,{className:"entities-saved-states__panel-header",gap:2,children:I}),(0,c.jsxs)("div",{className:"entities-saved-states__text-prompt",children:[(0,c.jsx)("div",{className:"entities-saved-states__text-prompt--header-wrapper",children:(0,c.jsx)("strong",{id:r?j:void 0,className:"entities-saved-states__text-prompt--header",children:(0,fs.__)("Are you ready to save?")})}),(0,c.jsxs)("div",{id:r?E:void 0,children:[e,(0,c.jsx)("p",{className:"entities-saved-states__text-prompt--changes-count",children:a?(0,p.createInterpolateElement)((0,fs.sprintf)((0,fs._n)("There is <strong>%d site change</strong> waiting to be saved.","There are <strong>%d site changes</strong> waiting to be saved.",i.length),i.length),{strong:(0,c.jsx)("strong",{})}):T})]})]}),w.map((e=>(0,c.jsx)(_d,{list:e,unselectedEntities:u,setUnselectedEntities:l},e[0].name))),B&&(0,c.jsx)(Hn.Flex,{direction:"row",justify:"flex-end",className:"entities-saved-states__panel-footer",children:I})]})}function vd(){try{return(0,d.select)(vc).getEditedPostContent()}catch(e){}}function wd({text:e,children:t,variant:s="secondary"}){const n=(0,m.useCopyToClipboard)(e);return(0,c.jsx)(Hn.Button,{__next40pxDefaultSize:!0,variant:s,ref:n,children:t})}class Sd extends p.Component{constructor(){super(...arguments),this.state={error:null}}componentDidCatch(e){(0,h.doAction)("editor.ErrorBoundary.errorLogged",e)}static getDerivedStateFromError(e){return{error:e}}render(){const{error:e}=this.state,{canCopyContent:t=!1}=this.props;return e?(0,c.jsxs)(Hn.__experimentalHStack,{className:"editor-error-boundary",alignment:"baseline",spacing:4,justify:"space-between",expanded:!1,wrap:!0,children:[(0,c.jsx)(Hn.__experimentalText,{as:"p",children:(0,fs.__)("The editor has encountered an unexpected error.")}),(0,c.jsxs)(Hn.__experimentalHStack,{expanded:!1,children:[t&&(0,c.jsx)(wd,{text:vd,children:(0,fs.__)("Copy contents")}),(0,c.jsx)(wd,{variant:"primary",text:e?.stack,children:(0,fs.__)("Copy error")})]})]}):this.props.children}}var kd=Sd;const Cd=window.requestIdleCallback?window.requestIdleCallback:window.requestAnimationFrame;let Pd;function jd(){const{postId:e,isEditedPostNew:t,hasRemoteAutosave:s}=(0,d.useSelect)((e=>({postId:e(vc).getCurrentPostId(),isEditedPostNew:e(vc).isEditedPostNew(),hasRemoteAutosave:!!e(vc).getEditorSettings().autosave})),[]),{getEditedPostAttribute:n}=(0,d.useSelect)(vc),{createWarningNotice:o,removeNotice:r}=(0,d.useDispatch)(_s.store),{editPost:i,resetEditorBlocks:a}=(0,d.useDispatch)(vc);(0,p.useEffect)((()=>{let l=function(e,t){return window.sessionStorage.getItem(bs(e,t))}(e,t);if(!l)return;try{l=JSON.parse(l)}catch{return}const{post_title:c,content:d,excerpt:u}=l,p={title:c,content:d,excerpt:u};if(!Object.keys(p).some((e=>p[e]!==n(e))))return void ys(e,t);if(s)return;const m="wpEditorAutosaveRestore";o((0,fs.__)("The backup of this post in your browser is different from the version below."),{id:m,actions:[{label:(0,fs.__)("Restore the backup"),onClick(){const{content:e,...t}=p;i(t),a((0,x.parse)(p.content)),r(m)}}]})}),[t,e])}var Ed=(0,m.ifCondition)((()=>{if(void 0!==Pd)return Pd;try{window.sessionStorage.setItem("__wpEditorTestSessionStorage",""),window.sessionStorage.removeItem("__wpEditorTestSessionStorage"),Pd=!0}catch{Pd=!1}return Pd}))((function(){const{autosave:e}=(0,d.useDispatch)(vc),t=(0,p.useCallback)((()=>{Cd((()=>e({local:!0})))}),[]);jd(),function(){const{postId:e,isEditedPostNew:t,isDirty:s,isAutosaving:n,didError:o}=(0,d.useSelect)((e=>({postId:e(vc).getCurrentPostId(),isEditedPostNew:e(vc).isEditedPostNew(),isDirty:e(vc).isEditedPostDirty(),isAutosaving:e(vc).isAutosavingPost(),didError:e(vc).didPostSaveRequestFail()})),[]),r=(0,p.useRef)(s),i=(0,p.useRef)(n);(0,p.useEffect)((()=>{!o&&(i.current&&!n||r.current&&!s)&&ys(e,t),r.current=s,i.current=n}),[s,n,o]);const a=(0,m.usePrevious)(t),l=(0,m.usePrevious)(e);(0,p.useEffect)((()=>{l===e&&a&&!t&&ys(e,!0)}),[t,e])}();const s=(0,d.useSelect)((e=>e(vc).getEditorSettings().localAutosaveInterval),[]);return(0,c.jsx)(Oc,{interval:s,autosave:t})}));var Td=function({children:e}){const t=(0,d.useSelect)((e=>{const{getEditedPostAttribute:t}=e(vc),{getPostType:s}=e(u.store),n=s(t("type"));return!!n?.supports?.["page-attributes"]}),[]);return t?e:null};var Bd=function({children:e,supportKeys:t}){const s=(0,d.useSelect)((e=>{const{getEditedPostAttribute:t}=e(vc),{getPostType:s}=e(u.store);return s(t("type"))}),[]);let n=!!s;return s&&(n=(Array.isArray(t)?t:[t]).some((e=>function(e={},t){if(void 0!==e[t])return!!e[t];const[s,n]=t.split("."),[o]=Array.isArray(e[s])?e[s]:[];return Array.isArray(o)?o.includes(n):!!o?.[n]}(s.supports,e)))),n?e:null};function Id(){const e=(0,d.useSelect)((e=>e(vc).getEditedPostAttribute("menu_order")??0),[]),{editPost:t}=(0,d.useDispatch)(vc),[s,n]=(0,p.useState)(null),o=s??e;return(0,c.jsx)(Hn.Flex,{children:(0,c.jsx)(Hn.FlexBlock,{children:(0,c.jsx)(Hn.__experimentalNumberControl,{__next40pxDefaultSize:!0,label:(0,fs.__)("Order"),help:(0,fs.__)("Set the page order."),value:o,onChange:e=>{n(e);const s=Number(e);Number.isInteger(s)&&""!==e.trim?.()&&t({menu_order:s})},hideLabelFromVision:!0,onBlur:()=>{n(null)}})})})}function Nd(){return(0,c.jsx)(Bd,{supportKeys:"page-attributes",children:(0,c.jsx)(Id,{})})}var Rd=(0,p.forwardRef)((({className:e,label:t,children:s},n)=>(0,c.jsxs)(Hn.__experimentalHStack,{className:mr("editor-post-panel__row",e),ref:n,children:[t&&(0,c.jsx)("div",{className:"editor-post-panel__row-label",children:t}),(0,c.jsx)("div",{className:"editor-post-panel__row-control",children:s})]})));function Dd(e){const t=e.map((e=>({children:[],parent:void 0,...e})));if(t.some((({parent:e})=>void 0===e)))return t;const s=t.reduce(((e,t)=>{const{parent:s}=t;return e[s]||(e[s]=[]),e[s].push(t),e}),{}),n=e=>e.map((e=>{const t=s[e.id];return{...e,children:t&&t.length?n(t):[]}}));return n(s[0]||[])}const Ad=e=>(0,Ln.decodeEntities)(e),Md=e=>({...e,name:Ad(e.name)}),Ld=e=>(e??[]).map(Md);function Od(e){return e?.title?.rendered?(0,Ln.decodeEntities)(e.title.rendered):`#${e.id} (${(0,fs.__)("no title")})`}const Fd=(e,t)=>{const s=Mr()(e||"").toLowerCase(),n=Mr()(t||"").toLowerCase();return s===n?0:s.startsWith(n)?s.length:1/0};function Vd(){const{editPost:e}=(0,d.useDispatch)(vc),[t,s]=(0,p.useState)(!1),{isHierarchical:n,parentPostId:o,parentPostTitle:r,pageItems:i,isLoading:a}=(0,d.useSelect)((e=>{const{getPostType:s,getEntityRecords:n,getEntityRecord:o,isResolving:r}=e(u.store),{getCurrentPostId:i,getEditedPostAttribute:a}=e(vc),l=a("type"),c=a("parent"),d=s(l),p=i(),m=d?.hierarchical??!1,h={per_page:100,exclude:p,parent_exclude:p,orderby:"menu_order",order:"asc",_fields:"id,title,parent"};t&&(h.search=t);const g=c?o("postType",l,c):null;return{isHierarchical:m,parentPostId:c,parentPostTitle:g?Od(g):"",pageItems:m?n("postType",l,h):null,isLoading:!!m&&r("getEntityRecords",["postType",l,h])}}),[t]),l=(0,p.useMemo)((()=>{const e=(s,n=0)=>{const o=s.map((t=>[{value:t.id,label:"— ".repeat(n)+(0,Ln.decodeEntities)(t.name),rawName:t.name},...e(t.children||[],n+1)])).sort((([e],[s])=>Fd(e.rawName,t)>=Fd(s.rawName,t)?1:-1));return o.flat()};if(!i)return[];let s=i.map((e=>({id:e.id,parent:e.parent,name:Od(e)})));t||(s=Dd(s));const n=e(s),a=n.find((e=>e.value===o));return r&&!a&&n.unshift({value:o,label:r}),n}),[i,t,r,o]);if(!n)return null;return(0,c.jsx)(Hn.ComboboxControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,className:"editor-page-attributes__parent",label:(0,fs.__)("Parent"),help:(0,fs.__)("Choose a parent page."),value:o,options:l,onFilterValueChange:(0,m.debounce)((e=>{s(e)}),300),onChange:t=>{e({parent:t})},hideLabelFromVision:!0,isLoading:a})}function Ud({isOpen:e,onClick:t}){const s=(0,d.useSelect)((e=>{const{getEditedPostAttribute:t}=e(vc),s=t("parent");if(!s)return null;const{getEntityRecord:n}=e(u.store);return n("postType",t("type"),s)}),[]),n=(0,p.useMemo)((()=>s?Od(s):(0,fs.__)("None")),[s]);return(0,c.jsx)(Hn.Button,{size:"compact",className:"editor-post-parent__panel-toggle",variant:"tertiary","aria-expanded":e,"aria-label":(0,fs.sprintf)((0,fs.__)("Change parent: %s"),n),onClick:t,children:n})}function Hd(){const e=(0,d.useSelect)((e=>e(u.store).getEntityRecord("root","__unstableBase")?.home),[]),[t,s]=(0,p.useState)(null),n=(0,p.useMemo)((()=>({anchor:t,placement:"left-start",offset:36,shift:!0})),[t]);return(0,c.jsx)(Rd,{label:(0,fs.__)("Parent"),ref:s,children:(0,c.jsx)(Hn.Dropdown,{popoverProps:n,className:"editor-post-parent__panel-dropdown",contentClassName:"editor-post-parent__panel-dialog",focusOnMount:!0,renderToggle:({isOpen:e,onToggle:t})=>(0,c.jsx)(Ud,{isOpen:e,onClick:t}),renderContent:({onClose:t})=>(0,c.jsxs)("div",{className:"editor-post-parent",children:[(0,c.jsx)(g.__experimentalInspectorPopoverHeader,{title:(0,fs.__)("Parent"),onClose:t}),(0,c.jsxs)("div",{children:[(0,p.createInterpolateElement)((0,fs.sprintf)((0,fs.__)('Child pages inherit characteristics from their parent, such as URL structure. For instance, if "Pricing" is a child of "Services", its URL would be %s<wbr />/services<wbr />/pricing.'),(0,w.filterURLForDisplay)(e).replace(/([/.])/g,"<wbr />$1")),{wbr:(0,c.jsx)("wbr",{})}),(0,c.jsx)("p",{children:(0,p.createInterpolateElement)((0,fs.__)("They also show up as sub-items in the default navigation menu. <a>Learn more.</a>"),{a:(0,c.jsx)(Hn.ExternalLink,{href:(0,fs.__)("https://wordpress.org/documentation/article/page-post-settings-sidebar/#page-attributes")})})})]}),(0,c.jsx)(Vd,{})]})})})}var zd=Vd;const Gd="page-attributes";function $d(){const{isEnabled:e,postType:t}=(0,d.useSelect)((e=>{const{getEditedPostAttribute:t,isEditorPanelEnabled:s}=e(vc),{getPostType:n}=e(u.store);return{isEnabled:s(Gd),postType:n(t("type"))}}),[]);return e&&t?(0,c.jsx)(Hd,{}):null}function Wd(){return(0,c.jsx)(Td,{children:(0,c.jsx)($d,{})})}var Zd=(0,c.jsx)(L.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,c.jsx)(L.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M18.5 5.5V8H20V5.5H22.5V4H20V1.5H18.5V4H16V5.5H18.5ZM13.9624 4H6C4.89543 4 4 4.89543 4 6V18C4 19.1046 4.89543 20 6 20H18C19.1046 20 20 19.1046 20 18V10.0391H18.5V18C18.5 18.2761 18.2761 18.5 18 18.5H10L10 10.4917L16.4589 10.5139L16.4641 9.01389L5.5 8.97618V6C5.5 5.72386 5.72386 5.5 6 5.5H13.9624V4ZM5.5 10.4762V18C5.5 18.2761 5.72386 18.5 6 18.5H8.5L8.5 10.4865L5.5 10.4762Z"})});const Yd=(0,fs.__)("Custom Template");function qd({onClose:e}){const{defaultBlockTemplate:t,onNavigateToEntityRecord:s}=(0,d.useSelect)((e=>{const{getEditorSettings:t,getCurrentTemplateId:s}=e(vc);return{defaultBlockTemplate:t().defaultBlockTemplate,onNavigateToEntityRecord:t().onNavigateToEntityRecord,getTemplateId:s}})),{createTemplate:n}=$((0,d.useDispatch)(vc)),[o,r]=(0,p.useState)(""),[i,a]=(0,p.useState)(!1),l=()=>{r(""),e()};return(0,c.jsx)(Hn.Modal,{title:(0,fs.__)("Create custom template"),onRequestClose:l,focusOnMount:"firstContentElement",size:"small",overlayClassName:"editor-post-template__create-template-modal",children:(0,c.jsx)("form",{className:"editor-post-template__create-form",onSubmit:async e=>{if(e.preventDefault(),i)return;a(!0);const r=t??(0,x.serialize)([(0,x.createBlock)("core/group",{tagName:"header",layout:{inherit:!0}},[(0,x.createBlock)("core/site-title"),(0,x.createBlock)("core/site-tagline")]),(0,x.createBlock)("core/separator"),(0,x.createBlock)("core/group",{tagName:"main"},[(0,x.createBlock)("core/group",{layout:{inherit:!0}},[(0,x.createBlock)("core/post-title")]),(0,x.createBlock)("core/post-content",{layout:{inherit:!0}})])]),c=await n({slug:Kn(o||Yd)||"wp-custom-template",content:r,title:o||Yd});a(!1),s({postId:c.id,postType:"wp_template"}),l()},children:(0,c.jsxs)(Hn.__experimentalVStack,{spacing:"3",children:[(0,c.jsx)(Hn.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,fs.__)("Name"),value:o,onChange:r,placeholder:Yd,disabled:i,help:(0,fs.__)('Describe the template, e.g. "Post with sidebar". A custom template can be manually applied to any post or page.')}),(0,c.jsxs)(Hn.__experimentalHStack,{justify:"right",children:[(0,c.jsx)(Hn.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:l,children:(0,fs.__)("Cancel")}),(0,c.jsx)(Hn.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",isBusy:i,"aria-disabled":i,children:(0,fs.__)("Create")})]})]})})})}function Kd(){return(0,d.useSelect)((e=>{const{getCurrentPostId:t,getCurrentPostType:s}=e(vc);return{postId:t(),postType:s()}}),[])}function Qd(){const{postType:e,postId:t}=Kd();return(0,d.useSelect)((s=>{const{canUser:n,getEntityRecord:o,getEntityRecords:r}=s(u.store),i=n("read",{kind:"root",name:"site"})?o("root","site"):void 0,a=+t===i?.page_for_posts,l="page"===e&&+t===i?.page_on_front,c=l?r("postType","wp_template",{per_page:-1}):[],d=l&&!!c?.some((({slug:e})=>"front-page"===e));return!a&&!d}),[t,e])}function Xd(e){return(0,d.useSelect)((t=>t(u.store).getEntityRecords("postType","wp_template",{per_page:-1,post_type:e})),[e])}function Jd(e){const t=eu(),s=Qd(),n=Xd(e);return(0,p.useMemo)((()=>s&&n?.filter((e=>e.is_custom&&e.slug!==t&&!!e.content.raw))),[n,t,s])}function eu(){const{postType:e,postId:t}=Kd(),s=Xd(e),n=(0,d.useSelect)((s=>{const n=s(u.store).getEditedEntityRecord("postType",e,t);return n?.template}),[e,t]);if(n)return s?.find((e=>e.slug===n))?.slug}function tu({isOpen:e,onClick:t}){const s=(0,d.useSelect)((e=>{const t=e(vc).getEditedPostAttribute("template"),{supportsTemplateMode:s,availableTemplates:n}=e(vc).getEditorSettings();if(!s&&n[t])return n[t];const o=e(u.store).canUser("create",{kind:"postType",name:"wp_template"})&&e(vc).getCurrentTemplateId();return o?.title||o?.slug||n?.[t]}),[]);return(0,c.jsx)(Hn.Button,{__next40pxDefaultSize:!0,variant:"tertiary","aria-expanded":e,"aria-label":(0,fs.__)("Template options"),onClick:t,children:s??(0,fs.__)("Default template")})}function su({onClose:e}){const t=Qd(),{availableTemplates:s,fetchedTemplates:n,selectedTemplateSlug:o,canCreate:r,canEdit:i,currentTemplateId:a,onNavigateToEntityRecord:l,getEditorSettings:m}=(0,d.useSelect)((e=>{const{canUser:s,getEntityRecords:n}=e(u.store),o=e(vc).getEditorSettings(),r=s("create",{kind:"postType",name:"wp_template"}),i=e(vc).getCurrentTemplateId();return{availableTemplates:o.availableTemplates,fetchedTemplates:r?n("postType","wp_template",{post_type:e(vc).getCurrentPostType(),per_page:-1}):void 0,selectedTemplateSlug:e(vc).getEditedPostAttribute("template"),canCreate:t&&r&&o.supportsTemplateMode,canEdit:t&&r&&o.supportsTemplateMode&&!!i,currentTemplateId:i,onNavigateToEntityRecord:o.onNavigateToEntityRecord,getEditorSettings:e(vc).getEditorSettings}}),[t]),h=(0,p.useMemo)((()=>Object.entries({...s,...Object.fromEntries((n??[]).map((({slug:e,title:t})=>[e,t.rendered])))}).map((([e,t])=>({value:e,label:t})))),[s,n]),_=h.find((e=>e.value===o))??h.find((e=>!e.value)),{editPost:f}=(0,d.useDispatch)(vc),{createSuccessNotice:b}=(0,d.useDispatch)(_s.store),[y,x]=(0,p.useState)(!1);return(0,c.jsxs)("div",{className:"editor-post-template__classic-theme-dropdown",children:[(0,c.jsx)(g.__experimentalInspectorPopoverHeader,{title:(0,fs.__)("Template"),help:(0,fs.__)("Templates define the way content is displayed when viewing your site."),actions:r?[{icon:Zd,label:(0,fs.__)("Add template"),onClick:()=>x(!0)}]:[],onClose:e}),t?(0,c.jsx)(Hn.SelectControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,hideLabelFromVision:!0,label:(0,fs.__)("Template"),value:_?.value??"",options:h,onChange:e=>f({template:e||""})}):(0,c.jsx)(Hn.Notice,{status:"warning",isDismissible:!1,children:(0,fs.__)("The posts page template cannot be changed.")}),i&&l&&(0,c.jsx)("p",{children:(0,c.jsx)(Hn.Button,{__next40pxDefaultSize:!0,variant:"link",onClick:()=>{l({postId:a,postType:"wp_template"}),e(),b((0,fs.__)("Editing template. Changes made here affect all posts and pages that use the template."),{type:"snackbar",actions:[{label:(0,fs.__)("Go back"),onClick:()=>m().onNavigateToPreviousEntityRecord()}]})},children:(0,fs.__)("Edit template")})}),y&&(0,c.jsx)(qd,{onClose:()=>x(!1)})]})}var nu=function(){const[e,t]=(0,p.useState)(null),s=(0,p.useMemo)((()=>({anchor:e,className:"editor-post-template__dropdown",placement:"left-start",offset:36,shift:!0})),[e]);return(0,c.jsx)(Rd,{label:(0,fs.__)("Template"),ref:t,children:(0,c.jsx)(Hn.Dropdown,{popoverProps:s,focusOnMount:!0,renderToggle:({isOpen:e,onToggle:t})=>(0,c.jsx)(tu,{isOpen:e,onClick:t}),renderContent:({onClose:e})=>(0,c.jsx)(su,{onClose:e})})})};const ou=window.wp.warning;var ru=s.n(ou);const{PreferenceBaseOption:iu}=$(C.privateApis);function au(e){const{toggleEditorPanelEnabled:t}=(0,d.useDispatch)(vc),{isChecked:s,isRemoved:n}=(0,d.useSelect)((t=>{const{isEditorPanelEnabled:s,isEditorPanelRemoved:n}=t(vc);return{isChecked:s(e.panelName),isRemoved:n(e.panelName)}}),[e.panelName]);return n?null:(0,c.jsx)(iu,{isChecked:s,onChange:()=>t(e.panelName),...e})}const{Fill:lu,Slot:cu}=(0,Hn.createSlotFill)("EnablePluginDocumentSettingPanelOption"),du=({label:e,panelName:t})=>(0,c.jsx)(lu,{children:(0,c.jsx)(au,{label:e,panelName:t})});du.Slot=cu;var uu=du;const{Fill:pu,Slot:mu}=(0,Hn.createSlotFill)("PluginDocumentSettingPanel"),hu=({name:e,className:t,title:s,icon:n,children:o})=>{const{name:r}=(0,aa.usePluginContext)(),i=`${r}/${e}`,{opened:a,isEnabled:l}=(0,d.useSelect)((e=>{const{isEditorPanelOpened:t,isEditorPanelEnabled:s}=e(vc);return{opened:t(i),isEnabled:s(i)}}),[i]),{toggleEditorPanelOpened:u}=(0,d.useDispatch)(vc);return void 0===e&&ru()("PluginDocumentSettingPanel requires a name property."),(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(uu,{label:s,panelName:i}),(0,c.jsx)(pu,{children:l&&(0,c.jsx)(Hn.PanelBody,{className:t,title:s,icon:n,opened:a,onToggle:()=>u(i),children:o})})]})};hu.Slot=mu;var gu=hu;var _u=({allowedBlocks:e,icon:t,label:s,onClick:n,small:o,role:r})=>(0,c.jsx)(g.BlockSettingsMenuControls,{children:({selectedBlocks:i,onClose:a})=>((e,t)=>{return!Array.isArray(t)||(s=t,0===e.filter((e=>!s.includes(e))).length);var s})(i,e)?(0,c.jsx)(Hn.MenuItem,{onClick:(0,m.compose)(n,a),icon:t,label:o?s:void 0,role:r,children:!o&&s}):null});function fu(e){const t=(0,aa.usePluginContext)();return(0,c.jsx)(Na,{name:"core/plugin-more-menu",as:e.as??Hn.MenuItem,icon:e.icon||t.icon,...e})}const{Fill:bu,Slot:yu}=(0,Hn.createSlotFill)("PluginPostPublishPanel"),xu=({children:e,className:t,title:s,initialOpen:n=!1,icon:o})=>{const{icon:r}=(0,aa.usePluginContext)();return(0,c.jsx)(bu,{children:(0,c.jsx)(Hn.PanelBody,{className:t,initialOpen:n||!s,title:s,icon:o??r,children:e})})};xu.Slot=yu;var vu=xu;const{Fill:wu,Slot:Su}=(0,Hn.createSlotFill)("PluginPostStatusInfo"),ku=({children:e,className:t})=>(0,c.jsx)(wu,{children:(0,c.jsx)(Hn.PanelRow,{className:t,children:e})});ku.Slot=Su;var Cu=ku;const{Fill:Pu,Slot:ju}=(0,Hn.createSlotFill)("PluginPrePublishPanel"),Eu=({children:e,className:t,title:s,initialOpen:n=!1,icon:o})=>{const{icon:r}=(0,aa.usePluginContext)();return(0,c.jsx)(Pu,{children:(0,c.jsx)(Hn.PanelBody,{className:t,initialOpen:n||!s,title:s,icon:o??r,children:e})})};Eu.Slot=ju;var Tu=Eu;function Bu(e){const t=(0,aa.usePluginContext)();return(0,c.jsx)(Na,{name:"core/plugin-preview-menu",as:e.as??Hn.MenuItem,icon:e.icon||t.icon,...e})}function Iu({className:e,...t}){return(0,c.jsx)(Va,{panelClassName:e,className:"editor-sidebar",scope:"core",...t})}function Nu(e){return(0,c.jsx)(Da,{__unstableExplicitMenuItem:!0,scope:"core",...e})}function Ru(e=""){return e=(e=Mr()(e)).trim().toLowerCase()}function Du(e,t){const s=Ru(t),n=Ru(e.title);let o=0;if(s===n)o+=30;else if(n.startsWith(s))o+=20;else{s.split(" ").every((e=>n.includes(e)))&&(o+=10)}return o}function Au({onClick:e}){const[t,s]=(0,p.useState)(!1),{postType:n,postId:o}=Kd(),r=Jd(n),{editEntityRecord:i}=(0,d.useDispatch)(u.store);return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(Hn.MenuItem,{disabled:!r?.length,accessibleWhenDisabled:!0,onClick:()=>s(!0),children:(0,fs.__)("Change template")}),t&&(0,c.jsx)(Hn.Modal,{title:(0,fs.__)("Choose a template"),onRequestClose:()=>s(!1),overlayClassName:"editor-post-template__swap-template-modal",isFullScreen:!0,children:(0,c.jsx)("div",{className:"editor-post-template__swap-template-modal-content",children:(0,c.jsx)(Mu,{postType:n,onSelect:async t=>{i("postType",n,o,{template:t.name},{undoIgnore:!0}),s(!1),e()}})})})]})}function Mu({postType:e,onSelect:t}){const[s,n]=(0,p.useState)(""),o=Jd(e),r=(0,p.useMemo)((()=>o.map((e=>({name:e.slug,blocks:(0,x.parse)(e.content.raw),title:(0,Ln.decodeEntities)(e.title.rendered),id:e.id})))),[o]),i=(0,p.useMemo)((()=>function(e=[],t=""){if(!t)return e;const s=e.map((e=>[e,Du(e,t)])).filter((([,e])=>e>0));return s.sort((([,e],[,t])=>t-e)),s.map((([e])=>e))}(r,s)),[r,s]);return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(Hn.SearchControl,{__nextHasNoMarginBottom:!0,onChange:n,value:s,label:(0,fs.__)("Search"),placeholder:(0,fs.__)("Search"),className:"editor-post-template__swap-template-search"}),(0,c.jsx)(g.__experimentalBlockPatternsList,{label:(0,fs.__)("Templates"),blockPatterns:i,onClickPattern:t})]})}function Lu({onClick:e}){const t=eu(),s=Qd(),{postType:n,postId:o}=Kd(),{editEntityRecord:r}=(0,d.useDispatch)(u.store);return t&&s?(0,c.jsx)(Hn.MenuItem,{onClick:()=>{r("postType",n,o,{template:""},{undoIgnore:!0}),e()},children:(0,fs.__)("Use default template")}):null}function Ou(){const{canCreateTemplates:e}=(0,d.useSelect)((e=>{const{canUser:t}=e(u.store);return{canCreateTemplates:t("create",{kind:"postType",name:"wp_template"})}}),[]),[t,s]=(0,p.useState)(!1),n=Qd();return e&&n?(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(Hn.MenuItem,{onClick:()=>{s(!0)},children:(0,fs.__)("Create new template")}),t&&(0,c.jsx)(qd,{onClose:()=>{s(!1)}})]}):null}function Fu({id:e}){const{isTemplateHidden:t,onNavigateToEntityRecord:s,getEditorSettings:n,hasGoBack:o}=(0,d.useSelect)((e=>{const{getRenderingMode:t,getEditorSettings:s}=$(e(vc)),n=s();return{isTemplateHidden:"post-only"===t(),onNavigateToEntityRecord:n.onNavigateToEntityRecord,getEditorSettings:s,hasGoBack:n.hasOwnProperty("onNavigateToPreviousEntityRecord")}}),[]),{get:r}=(0,d.useSelect)(C.store),{editedRecord:i,hasResolved:a}=(0,u.useEntityRecord)("postType","wp_template",e),{createSuccessNotice:l}=(0,d.useDispatch)(_s.store),{setRenderingMode:m,setDefaultRenderingMode:h}=$((0,d.useDispatch)(vc)),g=(0,d.useSelect)((e=>!!e(u.store).canUser("create",{kind:"postType",name:"wp_template"})),[]),[_,f]=(0,p.useState)(null),b=(0,p.useMemo)((()=>({anchor:_,className:"editor-post-template__dropdown",placement:"left-start",offset:36,shift:!0})),[_]);if(!a)return null;const y=o?[{label:(0,fs.__)("Go back"),onClick:()=>n().onNavigateToPreviousEntityRecord()}]:void 0;return(0,c.jsx)(Rd,{label:(0,fs.__)("Template"),ref:f,children:(0,c.jsx)(Hn.DropdownMenu,{popoverProps:b,focusOnMount:!0,toggleProps:{size:"compact",variant:"tertiary",tooltipPosition:"middle left"},label:(0,fs.__)("Template options"),text:(0,Ln.decodeEntities)(i.title),icon:null,children:({onClose:e})=>(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)(Hn.MenuGroup,{children:[g&&(0,c.jsx)(Hn.MenuItem,{onClick:()=>{s({postId:i.id,postType:"wp_template"}),e(),r("core/edit-site","welcomeGuideTemplate")||l((0,fs.__)("Editing template. Changes made here affect all posts and pages that use the template."),{type:"snackbar",actions:y})},children:(0,fs.__)("Edit template")}),(0,c.jsx)(Au,{onClick:e}),(0,c.jsx)(Lu,{onClick:e}),g&&(0,c.jsx)(Ou,{})]}),(0,c.jsx)(Hn.MenuGroup,{children:(0,c.jsx)(Hn.MenuItem,{icon:t?void 0:zn,isSelected:!t,role:"menuitemcheckbox",onClick:()=>{const e=t?"template-locked":"post-only";m(e),h(e)},children:(0,fs.__)("Show template")})})]})})})}function Vu(){const{templateId:e,isBlockTheme:t}=(0,d.useSelect)((e=>{const{getCurrentTemplateId:t,getEditorSettings:s}=e(vc);return{templateId:t(),isBlockTheme:s().__unstableIsBlockBasedTheme}}),[]),s=(0,d.useSelect)((e=>{const t=e(vc).getCurrentPostType(),s=e(u.store).getPostType(t);if(!s?.viewable)return!1;const n=e(vc).getEditorSettings();if(!!n.availableTemplates&&Object.keys(n.availableTemplates).length>0)return!0;if(!n.supportsTemplateMode)return!1;return e(u.store).canUser("create",{kind:"postType",name:"wp_template"})??!1}),[]),n=(0,d.useSelect)((e=>!!s&&e(u.store).canUser("read",{kind:"postType",name:"wp_template"})),[s]);return t&&n||!s?t&&e?(0,c.jsx)(Fu,{id:e}):null:(0,c.jsx)(nu,{})}const Uu={_fields:"id,name",context:"view"},Hu={who:"authors",per_page:100,...Uu};function zu(e){const{authorId:t,authors:s,postAuthor:n,isLoading:o}=(0,d.useSelect)((t=>{const{getUser:s,getUsers:n,isResolving:o}=t(u.store),{getEditedPostAttribute:r}=t(vc),i=r("author"),a={...Hu};return e&&(a.search=e,a.search_columns=["name"]),{authorId:i,authors:n(a),postAuthor:s(i,Uu),isLoading:o("getUsers",[a])}}),[e]);return{authorId:t,authorOptions:(0,p.useMemo)((()=>{const e=(s??[]).map((e=>({value:e.id,label:(0,Ln.decodeEntities)(e.name)}))),t=e.findIndex((({value:e})=>n?.id===e));let o=[];return t<0&&n?o=[{value:n.id,label:(0,Ln.decodeEntities)(n.name)}]:t<0&&!n&&(o=[{value:0,label:(0,fs.__)("(No author)")}]),[...o,...e]}),[s,n]),postAuthor:n,isLoading:o}}function Gu(){const[e,t]=(0,p.useState)(),{editPost:s}=(0,d.useDispatch)(vc),{authorId:n,authorOptions:o,isLoading:r}=zu(e);return(0,c.jsx)(Hn.ComboboxControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,fs.__)("Author"),options:o,value:n,onFilterValueChange:(0,m.debounce)(t,300),onChange:e=>{e&&s({author:e})},allowReset:!1,hideLabelFromVision:!0,isLoading:r})}function $u(){const{editPost:e}=(0,d.useDispatch)(vc),{authorId:t,authorOptions:s}=zu();return(0,c.jsx)(Hn.SelectControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,className:"post-author-selector",label:(0,fs.__)("Author"),options:s,onChange:t=>{const s=Number(t);e({author:s})},value:t,hideLabelFromVision:!0})}var Wu=function(){return(0,d.useSelect)((e=>{const t=e(u.store).getUsers(Hu);return t?.length>=25}),[])?(0,c.jsx)(Gu,{}):(0,c.jsx)($u,{})};function Zu({children:e}){const{hasAssignAuthorAction:t}=(0,d.useSelect)((e=>{const t=e(vc).getCurrentPost();return{hasAssignAuthorAction:!!t?._links?.["wp:action-assign-author"]}}),[]);return t?(0,c.jsx)(Bd,{supportKeys:"author",children:e}):null}function Yu({isOpen:e,onClick:t}){const{postAuthor:s}=(0,d.useSelect)((e=>{const t=e(vc).getEditedPostAttribute("author");return{postAuthor:e(u.store).getUser(t,Uu)}}),[]),n=(0,Ln.decodeEntities)(s?.name)||(0,fs.__)("(No author)");return(0,c.jsx)(Hn.Button,{size:"compact",className:"editor-post-author__panel-toggle",variant:"tertiary","aria-expanded":e,"aria-label":(0,fs.sprintf)((0,fs.__)("Change author: %s"),n),onClick:t,children:n})}var qu=function(){const[e,t]=(0,p.useState)(null),s=(0,p.useMemo)((()=>({anchor:e,placement:"left-start",offset:36,shift:!0})),[e]);return(0,c.jsx)(Zu,{children:(0,c.jsx)(Rd,{label:(0,fs.__)("Author"),ref:t,children:(0,c.jsx)(Hn.Dropdown,{popoverProps:s,contentClassName:"editor-post-author__panel-dialog",focusOnMount:!0,renderToggle:({isOpen:e,onToggle:t})=>(0,c.jsx)(Yu,{isOpen:e,onClick:t}),renderContent:({onClose:e})=>(0,c.jsxs)("div",{className:"editor-post-author",children:[(0,c.jsx)(g.__experimentalInspectorPopoverHeader,{title:(0,fs.__)("Author"),onClose:e}),(0,c.jsx)(Wu,{onClose:e})]})})})})};const Ku=[{label:(0,fs._x)("Open",'Adjective: e.g. "Comments are open"'),value:"open",description:(0,fs.__)("Visitors can add new comments and replies.")},{label:(0,fs.__)("Closed"),value:"closed",description:[(0,fs.__)("Visitors cannot add new comments or replies."),(0,fs.__)("Existing comments remain visible.")].join(" ")}];var Qu=function(){const e=(0,d.useSelect)((e=>e(vc).getEditedPostAttribute("comment_status")??"open"),[]),{editPost:t}=(0,d.useDispatch)(vc);return(0,c.jsx)("form",{children:(0,c.jsx)(Hn.__experimentalVStack,{spacing:4,children:(0,c.jsx)(Hn.RadioControl,{className:"editor-change-status__options",hideLabelFromVision:!0,label:(0,fs.__)("Comment status"),options:Ku,onChange:e=>t({comment_status:e}),selected:e})})})};var Xu=function(){const e=(0,d.useSelect)((e=>e(vc).getEditedPostAttribute("ping_status")??"open"),[]),{editPost:t}=(0,d.useDispatch)(vc);return(0,c.jsx)(Hn.CheckboxControl,{__nextHasNoMarginBottom:!0,label:(0,fs.__)("Enable pingbacks & trackbacks"),checked:"open"===e,onChange:()=>t({ping_status:"open"===e?"closed":"open"}),help:(0,c.jsx)(Hn.ExternalLink,{href:(0,fs.__)("https://wordpress.org/documentation/article/trackbacks-and-pingbacks/"),children:(0,fs.__)("Learn more about pingbacks & trackbacks")})})};const Ju="discussion-panel";function ep({onClose:e}){return(0,c.jsxs)("div",{className:"editor-post-discussion",children:[(0,c.jsx)(g.__experimentalInspectorPopoverHeader,{title:(0,fs.__)("Discussion"),onClose:e}),(0,c.jsxs)(Hn.__experimentalVStack,{spacing:4,children:[(0,c.jsx)(Bd,{supportKeys:"comments",children:(0,c.jsx)(Qu,{})}),(0,c.jsx)(Bd,{supportKeys:"trackbacks",children:(0,c.jsx)(Xu,{})})]})]})}function tp({isOpen:e,onClick:t}){const{commentStatus:s,pingStatus:n,commentsSupported:o,trackbacksSupported:r}=(0,d.useSelect)((e=>{const{getEditedPostAttribute:t}=e(vc),{getPostType:s}=e(u.store),n=s(t("type"));return{commentStatus:t("comment_status")??"open",pingStatus:t("ping_status")??"open",commentsSupported:!!n.supports.comments,trackbacksSupported:!!n.supports.trackbacks}}),[]);let i;return i="open"===s?"open"===n?(0,fs._x)("Open",'Adjective: e.g. "Comments are open"'):r?(0,fs.__)("Comments only"):(0,fs._x)("Open",'Adjective: e.g. "Comments are open"'):"open"===n?o?(0,fs.__)("Pings only"):(0,fs.__)("Pings enabled"):(0,fs.__)("Closed"),(0,c.jsx)(Hn.Button,{size:"compact",className:"editor-post-discussion__panel-toggle",variant:"tertiary","aria-label":(0,fs.__)("Change discussion options"),"aria-expanded":e,onClick:t,children:i})}function sp(){const{isEnabled:e}=(0,d.useSelect)((e=>{const{isEditorPanelEnabled:t}=e(vc);return{isEnabled:t(Ju)}}),[]),[t,s]=(0,p.useState)(null),n=(0,p.useMemo)((()=>({anchor:t,placement:"left-start",offset:36,shift:!0})),[t]);return e?(0,c.jsx)(Bd,{supportKeys:["comments","trackbacks"],children:(0,c.jsx)(Rd,{label:(0,fs.__)("Discussion"),ref:s,children:(0,c.jsx)(Hn.Dropdown,{popoverProps:n,className:"editor-post-discussion__panel-dropdown",contentClassName:"editor-post-discussion__panel-dialog",focusOnMount:!0,renderToggle:({isOpen:e,onToggle:t})=>(0,c.jsx)(tp,{isOpen:e,onClick:t}),renderContent:({onClose:e})=>(0,c.jsx)(ep,{onClose:e})})})}):null}function np({hideLabelFromVision:e=!1,updateOnBlur:t=!1}){const{excerpt:s,shouldUseDescriptionLabel:n,usedAttribute:o}=(0,d.useSelect)((e=>{const{getCurrentPostType:t,getEditedPostAttribute:s}=e(vc),n=t(),o=["wp_template","wp_template_part"].includes(n)?"description":"excerpt";return{excerpt:s(o),shouldUseDescriptionLabel:["wp_template","wp_template_part","wp_block"].includes(n),usedAttribute:o}}),[]),{editPost:r}=(0,d.useDispatch)(vc),[i,a]=(0,p.useState)((0,Ln.decodeEntities)(s)),l=e=>{r({[o]:e})},u=n?(0,fs.__)("Write a description (optional)"):(0,fs.__)("Write an excerpt (optional)");return(0,c.jsx)("div",{className:"editor-post-excerpt",children:(0,c.jsx)(Hn.TextareaControl,{__nextHasNoMarginBottom:!0,label:u,hideLabelFromVision:e,className:"editor-post-excerpt__textarea",onChange:t?a:l,onBlur:t?()=>l(i):void 0,value:t?i:s,help:n?(0,fs.__)("Write a description"):(0,c.jsx)(Hn.ExternalLink,{href:(0,fs.__)("https://wordpress.org/documentation/article/page-post-settings-sidebar/#excerpt"),children:(0,fs.__)("Learn more about manual excerpts")})})})}var op=function({children:e}){return(0,c.jsx)(Bd,{supportKeys:"excerpt",children:e})};const{Fill:rp,Slot:ip}=(0,Hn.createSlotFill)("PluginPostExcerpt"),ap=({children:e,className:t})=>(0,c.jsx)(rp,{children:(0,c.jsx)(Hn.PanelRow,{className:t,children:e})});ap.Slot=ip;var lp=ap;const cp="post-excerpt";function dp(){const{isOpened:e,isEnabled:t,postType:s}=(0,d.useSelect)((e=>{const{isEditorPanelOpened:t,isEditorPanelEnabled:s,getCurrentPostType:n}=e(vc);return{isOpened:t(cp),isEnabled:s(cp),postType:n()}}),[]),{toggleEditorPanelOpened:n}=(0,d.useDispatch)(vc);if(!t)return null;const o=["wp_template","wp_template_part","wp_block"].includes(s);return(0,c.jsx)(Hn.PanelBody,{title:o?(0,fs.__)("Description"):(0,fs.__)("Excerpt"),opened:e,onToggle:()=>n(cp),children:(0,c.jsx)(lp.Slot,{children:e=>(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(np,{}),e]})})})}function up(){return(0,c.jsx)(op,{children:(0,c.jsx)(dp,{})})}function pp(){return(0,c.jsx)(op,{children:(0,c.jsx)(mp,{})})}function mp(){const{shouldRender:e,excerpt:t,shouldBeUsedAsDescription:s,allowEditing:n}=(0,d.useSelect)((e=>{const{getCurrentPostType:t,getCurrentPostId:s,getEditedPostAttribute:n,isEditorPanelEnabled:o}=e(vc),r=t(),i=["wp_template","wp_template_part"].includes(r),a="wp_block"===r,l=i||a,c=n(i?"description":"excerpt"),d=i&&e(u.store).getEntityRecord("postType",r,s()),p=o(cp)||l;return{excerpt:c,shouldRender:p,shouldBeUsedAsDescription:l,allowEditing:p&&(!l||a||d&&d.source===D&&!d.has_theme_file&&d.is_custom)}}),[]),[o,r]=(0,p.useState)(null),i=s?(0,fs.__)("Description"):(0,fs.__)("Excerpt"),a=(0,p.useMemo)((()=>({anchor:o,"aria-label":i,headerTitle:i,placement:"left-start",offset:36,shift:!0})),[o,i]);if(!e)return!1;const l=!!t&&(0,c.jsx)(Hn.__experimentalText,{align:"left",numberOfLines:4,truncate:n,children:(0,Ln.decodeEntities)(t)});if(!n)return l;const m=s?(0,fs.__)("Add a description…"):(0,fs.__)("Add an excerpt…"),h=s?(0,fs.__)("Edit description"):(0,fs.__)("Edit excerpt");return(0,c.jsxs)(Hn.__experimentalVStack,{children:[l,(0,c.jsx)(Hn.Dropdown,{className:"editor-post-excerpt__dropdown",contentClassName:"editor-post-excerpt__dropdown__content",popoverProps:a,focusOnMount:!0,ref:r,renderToggle:({onToggle:e})=>(0,c.jsx)(Hn.Button,{__next40pxDefaultSize:!0,onClick:e,variant:"link",children:l?h:m}),renderContent:({onClose:e})=>(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(g.__experimentalInspectorPopoverHeader,{title:i,onClose:e}),(0,c.jsx)(Hn.__experimentalVStack,{spacing:4,children:(0,c.jsx)(lp.Slot,{children:e=>(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(np,{hideLabelFromVision:!0,updateOnBlur:!0}),e]})})})]})})]})}function hp({children:e,supportKeys:t}){const{postType:s,themeSupports:n}=(0,d.useSelect)((e=>({postType:e(vc).getEditedPostAttribute("type"),themeSupports:e(u.store).getThemeSupports()})),[]);return(Array.isArray(t)?t:[t]).some((e=>{const t=n?.[e]??!1;return"post-thumbnails"===e&&Array.isArray(t)?t.includes(s):t}))?e:null}var gp=function({children:e}){return(0,c.jsx)(hp,{supportKeys:"post-thumbnails",children:(0,c.jsx)(Bd,{supportKeys:"thumbnail",children:e})})};const _p=["image"],fp=(0,fs.__)("Featured image"),bp=(0,fs.__)("Add a featured image"),yp=(0,c.jsx)("p",{children:(0,fs.__)("To edit the featured image, you need permission to upload media.")});const xp=(0,d.withSelect)((e=>{const{getEntityRecord:t,getPostType:s,hasFinishedResolution:n}=e(u.store),{getCurrentPostId:o,getEditedPostAttribute:r}=e(vc),i=r("featured_media");return{media:i?t("postType","attachment",i,{context:"view"}):null,currentPostId:o(),postType:s(r("type")),featuredImageId:i,isRequestingFeaturedImageMedia:!!i&&!n("getEntityRecord",["postType","attachment",i,{context:"view"}])}})),vp=(0,d.withDispatch)(((e,{noticeOperations:t},{select:s})=>{const{editPost:n}=e(vc);return{onUpdateImage(e){n({featured_media:e.id})},onDropImage(e){s(g.store).getSettings().mediaUpload({allowedTypes:["image"],filesList:e,onFileChange([e]){n({featured_media:e.id})},onError(e){t.removeAllNotices(),t.createErrorNotice(e)},multiple:!1})},onRemoveImage(){n({featured_media:0})}}}));var wp=(0,m.compose)(Hn.withNotices,xp,vp,(0,Hn.withFilters)("editor.PostFeaturedImage"))((function({currentPostId:e,featuredImageId:t,onUpdateImage:s,onRemoveImage:n,media:o,postType:r,noticeUI:i,noticeOperations:a,isRequestingFeaturedImageMedia:l}){const u=(0,p.useRef)(!1),[m,_]=(0,p.useState)(!1),{getSettings:f}=(0,d.useSelect)(g.store),{mediaSourceUrl:b}=function(e,t){if(!e)return{};const s=(0,h.applyFilters)("editor.PostFeaturedImage.imageSize","large",e.id,t);if(s in(e?.media_details?.sizes??{}))return{mediaWidth:e.media_details.sizes[s].width,mediaHeight:e.media_details.sizes[s].height,mediaSourceUrl:e.media_details.sizes[s].source_url};const n=(0,h.applyFilters)("editor.PostFeaturedImage.imageSize","thumbnail",e.id,t);return n in(e?.media_details?.sizes??{})?{mediaWidth:e.media_details.sizes[n].width,mediaHeight:e.media_details.sizes[n].height,mediaSourceUrl:e.media_details.sizes[n].source_url}:{mediaWidth:e.media_details.width,mediaHeight:e.media_details.height,mediaSourceUrl:e.source_url}}(o,e);function y(e){f().mediaUpload({allowedTypes:_p,filesList:e,onFileChange([e]){(0,Go.isBlobURL)(e?.url)?_(!0):(e&&s(e),_(!1))},onError(e){a.removeAllNotices(),a.createErrorNotice(e)},multiple:!1})}function x(e){return e.alt_text?(0,fs.sprintf)((0,fs.__)("Current image: %s"),e.alt_text):(0,fs.sprintf)((0,fs.__)("The current image has no alternative text. The file name is: %s"),e.media_details.sizes?.full?.file||e.slug)}function v(e){u.current&&e&&(e.focus(),u.current=!1)}const w=!l&&!!t&&!o;return(0,c.jsxs)(gp,{children:[i,(0,c.jsxs)("div",{className:"editor-post-featured-image",children:[o&&(0,c.jsx)("div",{id:`editor-post-featured-image-${t}-describedby`,className:"hidden",children:x(o)}),(0,c.jsx)(g.MediaUploadCheck,{fallback:yp,children:(0,c.jsx)(g.MediaUpload,{title:r?.labels?.featured_image||fp,onSelect:s,unstableFeaturedImageFlow:!0,allowedTypes:_p,modalClass:"editor-post-featured-image__media-modal",render:({open:e})=>(0,c.jsxs)("div",{className:"editor-post-featured-image__container",children:[w?(0,c.jsx)(Hn.Notice,{status:"warning",isDismissible:!1,children:(0,fs.__)("Could not retrieve the featured image data.")}):(0,c.jsxs)(Hn.Button,{__next40pxDefaultSize:!0,ref:v,className:t?"editor-post-featured-image__preview":"editor-post-featured-image__toggle",onClick:e,"aria-label":t?(0,fs.__)("Edit or replace the featured image"):null,"aria-describedby":t?`editor-post-featured-image-${t}-describedby`:null,"aria-haspopup":"dialog",disabled:m,accessibleWhenDisabled:!0,children:[!!t&&o&&(0,c.jsx)("img",{className:"editor-post-featured-image__preview-image",src:b,alt:x(o)}),(m||l)&&(0,c.jsx)(Hn.Spinner,{}),!t&&!m&&(r?.labels?.set_featured_image||bp)]}),!!t&&(0,c.jsxs)(Hn.__experimentalHStack,{className:mr("editor-post-featured-image__actions",{"editor-post-featured-image__actions-missing-image":w,"editor-post-featured-image__actions-is-requesting-image":l}),children:[(0,c.jsx)(Hn.Button,{__next40pxDefaultSize:!0,className:"editor-post-featured-image__action",onClick:e,"aria-haspopup":"dialog",variant:w?"secondary":void 0,children:(0,fs.__)("Replace")}),(0,c.jsx)(Hn.Button,{__next40pxDefaultSize:!0,className:"editor-post-featured-image__action",onClick:()=>{n(),u.current=!0},variant:w?"secondary":void 0,isDestructive:w,children:(0,fs.__)("Remove")})]}),(0,c.jsx)(Hn.DropZone,{onFilesDrop:y})]}),value:t})})]})]})}));const Sp="featured-image";function kp({withPanelBody:e=!0}){const{postType:t,isEnabled:s,isOpened:n}=(0,d.useSelect)((e=>{const{getEditedPostAttribute:t,isEditorPanelEnabled:s,isEditorPanelOpened:n}=e(vc),{getPostType:o}=e(u.store);return{postType:o(t("type")),isEnabled:s(Sp),isOpened:n(Sp)}}),[]),{toggleEditorPanelOpened:o}=(0,d.useDispatch)(vc);return s?e?(0,c.jsx)(gp,{children:(0,c.jsx)(Hn.PanelBody,{title:t?.labels?.featured_image??(0,fs.__)("Featured image"),opened:n,onToggle:()=>o(Sp),children:(0,c.jsx)(wp,{})})}):(0,c.jsx)(gp,{children:(0,c.jsx)(wp,{})}):null}function Cp({children:e}){return(0,d.useSelect)((e=>e(vc).getEditorSettings().disablePostFormats),[])?null:(0,c.jsx)(Bd,{supportKeys:"post-formats",children:e})}const Pp=[{id:"aside",caption:(0,fs.__)("Aside")},{id:"audio",caption:(0,fs.__)("Audio")},{id:"chat",caption:(0,fs.__)("Chat")},{id:"gallery",caption:(0,fs.__)("Gallery")},{id:"image",caption:(0,fs.__)("Image")},{id:"link",caption:(0,fs.__)("Link")},{id:"quote",caption:(0,fs.__)("Quote")},{id:"standard",caption:(0,fs.__)("Standard")},{id:"status",caption:(0,fs.__)("Status")},{id:"video",caption:(0,fs.__)("Video")}].sort(((e,t)=>{const s=e.caption.toUpperCase(),n=t.caption.toUpperCase();return s<n?-1:s>n?1:0}));function jp(){const e=`post-format-selector-${(0,m.useInstanceId)(jp)}`,{postFormat:t,suggestedFormat:s,supportedFormats:n}=(0,d.useSelect)((e=>{const{getEditedPostAttribute:t,getSuggestedPostFormat:s}=e(vc),n=t("format"),o=e(u.store).getThemeSupports();return{postFormat:n??"standard",suggestedFormat:s(),supportedFormats:o.formats}}),[]),o=Pp.filter((e=>n?.includes(e.id)||t===e.id)),r=o.find((e=>e.id===s)),{editPost:i}=(0,d.useDispatch)(vc),a=e=>i({format:e});return(0,c.jsx)(Cp,{children:(0,c.jsxs)("div",{className:"editor-post-format",children:[(0,c.jsx)(Hn.RadioControl,{className:"editor-post-format__options",label:(0,fs.__)("Post Format"),selected:t,onChange:e=>a(e),id:e,options:o.map((e=>({label:e.caption,value:e.id}))),hideLabelFromVision:!0}),r&&r.id!==t&&(0,c.jsx)("p",{className:"editor-post-format__suggestion",children:(0,c.jsx)(Hn.Button,{__next40pxDefaultSize:!0,variant:"link",onClick:()=>a(r.id),children:(0,fs.sprintf)((0,fs.__)("Apply suggested format: %s"),r.caption)})})]})})}var Ep=function({children:e}){const{lastRevisionId:t,revisionsCount:s}=(0,d.useSelect)((e=>{const{getCurrentPostLastRevisionId:t,getCurrentPostRevisionsCount:s}=e(vc);return{lastRevisionId:t(),revisionsCount:s()}}),[]);return!t||s<2?null:(0,c.jsx)(Bd,{supportKeys:"revisions",children:e})};function Tp(){return(0,d.useSelect)((e=>{const{getCurrentPostLastRevisionId:t,getCurrentPostRevisionsCount:s}=e(vc);return{lastRevisionId:t(),revisionsCount:s()}}),[])}function Bp(){const{lastRevisionId:e,revisionsCount:t}=Tp();return(0,c.jsx)(Ep,{children:(0,c.jsx)(Rd,{label:(0,fs.__)("Revisions"),children:(0,c.jsx)(Hn.Button,{href:(0,w.addQueryArgs)("revision.php",{revision:e}),className:"editor-private-post-last-revision__button",text:t,variant:"tertiary",size:"compact"})})})}var Ip=function(){const{lastRevisionId:e,revisionsCount:t}=Tp();return(0,c.jsx)(Ep,{children:(0,c.jsx)(Hn.Button,{__next40pxDefaultSize:!0,href:(0,w.addQueryArgs)("revision.php",{revision:e}),className:"editor-post-last-revision__title",icon:Yo,iconPosition:"right",text:(0,fs.sprintf)((0,fs.__)("Revisions (%s)"),t)})})};var Np=function(){return(0,c.jsx)(Ep,{children:(0,c.jsx)(Hn.PanelBody,{className:"editor-post-last-revision__panel",children:(0,c.jsx)(Ip,{})})})};var Rp=function e(){const t="core/editor/post-locked-modal-"+(0,m.useInstanceId)(e),{autosave:s,updatePostLock:n}=(0,d.useDispatch)(vc),{isLocked:o,isTakeover:r,user:i,postId:a,postLockUtils:l,activePostLock:g,postType:_,previewLink:f}=(0,d.useSelect)((e=>{const{isPostLocked:t,isPostLockTakeover:s,getPostLockUser:n,getCurrentPostId:o,getActivePostLock:r,getEditedPostAttribute:i,getEditedPostPreviewLink:a,getEditorSettings:l}=e(vc),{getPostType:c}=e(u.store);return{isLocked:t(),isTakeover:s(),user:n(),postId:o(),postLockUtils:l().postLockUtils,activePostLock:r(),postType:c(i("type")),previewLink:a()}}),[]);if((0,p.useEffect)((()=>{function e(){if(o||!g)return;const e=new window.FormData;if(e.append("action","wp-remove-post-lock"),e.append("_wpnonce",l.unlockNonce),e.append("post_ID",a),e.append("active_post_lock",g),window.navigator.sendBeacon)window.navigator.sendBeacon(l.ajaxUrl,e);else{const t=new window.XMLHttpRequest;t.open("POST",l.ajaxUrl,!1),t.send(e)}}return(0,h.addAction)("heartbeat.send",t,(function(e){o||(e["wp-refresh-post-lock"]={lock:g,post_id:a})})),(0,h.addAction)("heartbeat.tick",t,(function(e){if(!e["wp-refresh-post-lock"])return;const t=e["wp-refresh-post-lock"];t.lock_error?(s(),n({isLocked:!0,isTakeover:!0,user:{name:t.lock_error.name,avatar:t.lock_error.avatar_src_2x}})):t.new_lock&&n({isLocked:!1,activePostLock:t.new_lock})})),window.addEventListener("beforeunload",e),()=>{(0,h.removeAction)("heartbeat.send",t),(0,h.removeAction)("heartbeat.tick",t),window.removeEventListener("beforeunload",e)}}),[]),!o)return null;const b=i.name,y=i.avatar,x=(0,w.addQueryArgs)("post.php",{"get-post-lock":"1",lockKey:!0,post:a,action:"edit",_wpnonce:l.nonce}),v=(0,w.addQueryArgs)("edit.php",{post_type:_?.slug}),S=(0,fs.__)("Exit editor");return(0,c.jsx)(Hn.Modal,{title:r?(0,fs.__)("Someone else has taken over this post"):(0,fs.__)("This post is already being edited"),focusOnMount:!0,shouldCloseOnClickOutside:!1,shouldCloseOnEsc:!1,isDismissible:!1,className:"editor-post-locked-modal",size:"medium",children:(0,c.jsxs)(Hn.__experimentalHStack,{alignment:"top",spacing:6,children:[!!y&&(0,c.jsx)("img",{src:y,alt:(0,fs.__)("Avatar"),className:"editor-post-locked-modal__avatar",width:64,height:64}),(0,c.jsxs)("div",{children:[!!r&&(0,c.jsx)("p",{children:(0,p.createInterpolateElement)(b?(0,fs.sprintf)((0,fs.__)("<strong>%s</strong> now has editing control of this post (<PreviewLink />). Don’t worry, your changes up to this moment have been saved."),b):(0,fs.__)("Another user now has editing control of this post (<PreviewLink />). Don’t worry, your changes up to this moment have been saved."),{strong:(0,c.jsx)("strong",{}),PreviewLink:(0,c.jsx)(Hn.ExternalLink,{href:f,children:(0,fs.__)("preview")})})}),!r&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("p",{children:(0,p.createInterpolateElement)(b?(0,fs.sprintf)((0,fs.__)("<strong>%s</strong> is currently working on this post (<PreviewLink />), which means you cannot make changes, unless you take over."),b):(0,fs.__)("Another user is currently working on this post (<PreviewLink />), which means you cannot make changes, unless you take over."),{strong:(0,c.jsx)("strong",{}),PreviewLink:(0,c.jsx)(Hn.ExternalLink,{href:f,children:(0,fs.__)("preview")})})}),(0,c.jsx)("p",{children:(0,fs.__)("If you take over, the other user will lose editing control to the post, but their changes will be saved.")})]}),(0,c.jsxs)(Hn.__experimentalHStack,{className:"editor-post-locked-modal__buttons",justify:"flex-end",children:[!r&&(0,c.jsx)(Hn.Button,{__next40pxDefaultSize:!0,variant:"tertiary",href:x,children:(0,fs.__)("Take over")}),(0,c.jsx)(Hn.Button,{__next40pxDefaultSize:!0,variant:"primary",href:v,children:S})]})]})]})})};var Dp=function({children:e}){const{hasPublishAction:t,isPublished:s}=(0,d.useSelect)((e=>{const{isCurrentPostPublished:t,getCurrentPost:s}=e(vc);return{hasPublishAction:s()._links?.["wp:action-publish"]??!1,isPublished:t()}}),[]);return s||!t?null:e};var Ap=function(){const e=(0,d.useSelect)((e=>e(vc).getEditedPostAttribute("status")),[]),{editPost:t}=(0,d.useDispatch)(vc);return(0,c.jsx)(Dp,{children:(0,c.jsx)(Hn.CheckboxControl,{__nextHasNoMarginBottom:!0,label:(0,fs.__)("Pending review"),checked:"pending"===e,onChange:()=>{t({status:"pending"===e?"draft":"pending"})}})})};function Mp({className:e,textContent:t,forceIsAutosaveable:s,role:n,onPreview:o}){const{postId:r,currentPostLink:i,previewLink:a,isSaveable:l,isViewable:m}=(0,d.useSelect)((e=>{const t=e(vc),s=e(u.store).getPostType(t.getCurrentPostType("type")),n=s?.viewable??!1;return n?{postId:t.getCurrentPostId(),currentPostLink:t.getCurrentPostAttribute("link"),previewLink:t.getEditedPostPreviewLink(),isSaveable:t.isEditedPostSaveable(),isViewable:n}:{isViewable:n}}),[]),{__unstableSaveForPreview:g}=(0,d.useDispatch)(vc);if(!m)return null;const _=`wp-preview-${r}`,f=a||i;return(0,c.jsx)(Hn.Button,{variant:e?void 0:"tertiary",className:e||"editor-post-preview",href:f,target:_,accessibleWhenDisabled:!0,disabled:!l,onClick:async e=>{e.preventDefault();const t=window.open("",_);t.focus(),function(e){let t=(0,p.renderToString)((0,c.jsxs)("div",{className:"editor-post-preview-button__interstitial-message",children:[(0,c.jsxs)(Hn.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 96 96",children:[(0,c.jsx)(Hn.Path,{className:"outer",d:"M48 12c19.9 0 36 16.1 36 36S67.9 84 48 84 12 67.9 12 48s16.1-36 36-36",fill:"none"}),(0,c.jsx)(Hn.Path,{className:"inner",d:"M69.5 46.4c0-3.9-1.4-6.7-2.6-8.8-1.6-2.6-3.1-4.9-3.1-7.5 0-2.9 2.2-5.7 5.4-5.7h.4C63.9 19.2 56.4 16 48 16c-11.2 0-21 5.7-26.7 14.4h2.1c3.3 0 8.5-.4 8.5-.4 1.7-.1 1.9 2.4.2 2.6 0 0-1.7.2-3.7.3L40 67.5l7-20.9L42 33c-1.7-.1-3.3-.3-3.3-.3-1.7-.1-1.5-2.7.2-2.6 0 0 5.3.4 8.4.4 3.3 0 8.5-.4 8.5-.4 1.7-.1 1.9 2.4.2 2.6 0 0-1.7.2-3.7.3l11.5 34.3 3.3-10.4c1.6-4.5 2.4-7.8 2.4-10.5zM16.1 48c0 12.6 7.3 23.5 18 28.7L18.8 35c-1.7 4-2.7 8.4-2.7 13zm32.5 2.8L39 78.6c2.9.8 5.9 1.3 9 1.3 3.7 0 7.3-.6 10.6-1.8-.1-.1-.2-.3-.2-.4l-9.8-26.9zM76.2 36c0 3.2-.6 6.9-2.4 11.4L64 75.6c9.5-5.5 15.9-15.8 15.9-27.6 0-5.5-1.4-10.8-3.9-15.3.1 1 .2 2.1.2 3.3z",fill:"none"})]}),(0,c.jsx)("p",{children:(0,fs.__)("Generating preview…")})]}));t+='\n\t\t<style>\n\t\t\tbody {\n\t\t\t\tmargin: 0;\n\t\t\t}\n\t\t\t.editor-post-preview-button__interstitial-message {\n\t\t\t\tdisplay: flex;\n\t\t\t\tflex-direction: column;\n\t\t\t\talign-items: center;\n\t\t\t\tjustify-content: center;\n\t\t\t\theight: 100vh;\n\t\t\t\twidth: 100vw;\n\t\t\t}\n\t\t\t@-webkit-keyframes paint {\n\t\t\t\t0% {\n\t\t\t\t\tstroke-dashoffset: 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\t@-moz-keyframes paint {\n\t\t\t\t0% {\n\t\t\t\t\tstroke-dashoffset: 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\t@-o-keyframes paint {\n\t\t\t\t0% {\n\t\t\t\t\tstroke-dashoffset: 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\t@keyframes paint {\n\t\t\t\t0% {\n\t\t\t\t\tstroke-dashoffset: 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\t.editor-post-preview-button__interstitial-message svg {\n\t\t\t\twidth: 192px;\n\t\t\t\theight: 192px;\n\t\t\t\tstroke: #555d66;\n\t\t\t\tstroke-width: 0.75;\n\t\t\t}\n\t\t\t.editor-post-preview-button__interstitial-message svg .outer,\n\t\t\t.editor-post-preview-button__interstitial-message svg .inner {\n\t\t\t\tstroke-dasharray: 280;\n\t\t\t\tstroke-dashoffset: 280;\n\t\t\t\t-webkit-animation: paint 1.5s ease infinite alternate;\n\t\t\t\t-moz-animation: paint 1.5s ease infinite alternate;\n\t\t\t\t-o-animation: paint 1.5s ease infinite alternate;\n\t\t\t\tanimation: paint 1.5s ease infinite alternate;\n\t\t\t}\n\t\t\tp {\n\t\t\t\ttext-align: center;\n\t\t\t\tfont-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;\n\t\t\t}\n\t\t</style>\n\t',t=(0,h.applyFilters)("editor.PostPreview.interstitialMarkup",t),e.write(t),e.title=(0,fs.__)("Generating preview…"),e.close()}(t.document);const n=await g({forceIsAutosaveable:s});t.location=n,o?.()},role:n,size:"compact",children:t||(0,c.jsxs)(c.Fragment,{children:[(0,fs._x)("Preview","imperative verb"),(0,c.jsx)(Hn.VisuallyHidden,{as:"span",children:(0,fs.__)("(opens in a new tab)")})]})})}function Lp(){const e=(0,m.useViewportMatch)("medium","<"),{isPublished:t,isBeingScheduled:s,isSaving:n,isPublishing:o,hasPublishAction:r,isAutosaving:i,hasNonPostEntityChanges:a,postStatusHasChanged:l,postStatus:c}=(0,d.useSelect)((e=>{const{isCurrentPostPublished:t,isEditedPostBeingScheduled:s,isSavingPost:n,isPublishingPost:o,getCurrentPost:r,getCurrentPostType:i,isAutosavingPost:a,getPostEdits:l,getEditedPostAttribute:c}=e(vc);return{isPublished:t(),isBeingScheduled:s(),isSaving:n(),isPublishing:o(),hasPublishAction:r()._links?.["wp:action-publish"]??!1,postType:i(),isAutosaving:a(),hasNonPostEntityChanges:e(vc).hasNonPostEntityChanges(),postStatusHasChanged:!!l()?.status,postStatus:c("status")}}),[]);return o?(0,fs.__)("Publishing…"):(t||s)&&n&&!i?(0,fs.__)("Saving…"):r?a||t||l&&!["future","publish"].includes(c)||!l&&"future"===c?(0,fs.__)("Save"):s?(0,fs.__)("Schedule"):(0,fs.__)("Publish"):e?(0,fs.__)("Publish"):(0,fs.__)("Submit for Review")}const Op=()=>{};class Fp extends p.Component{constructor(e){super(e),this.createOnClick=this.createOnClick.bind(this),this.closeEntitiesSavedStates=this.closeEntitiesSavedStates.bind(this),this.state={entitiesSavedStatesCallback:!1}}createOnClick(e){return(...t)=>{const{hasNonPostEntityChanges:s,setEntitiesSavedStatesCallback:n}=this.props;return s&&n?(this.setState({entitiesSavedStatesCallback:()=>e(...t)}),n((()=>this.closeEntitiesSavedStates)),Op):e(...t)}}closeEntitiesSavedStates(e){const{postType:t,postId:s}=this.props,{entitiesSavedStatesCallback:n}=this.state;this.setState({entitiesSavedStatesCallback:!1},(()=>{e&&e.some((e=>"postType"===e.kind&&e.name===t&&e.key===s))&&n()}))}render(){const{forceIsDirty:e,hasPublishAction:t,isBeingScheduled:s,isOpen:n,isPostSavingLocked:o,isPublishable:r,isPublished:i,isSaveable:a,isSaving:l,isAutoSaving:d,isToggle:u,savePostStatus:p,onSubmit:m=Op,onToggle:h,visibility:g,hasNonPostEntityChanges:_,isSavingNonPostEntityChanges:f,postStatus:b,postStatusHasChanged:y}=this.props,x=(l||!a||o||!r&&!e)&&(!_||f),v=(i||l||!a||!r&&!e)&&(!_||f);let w="publish";y?w=b:t?"private"===g?w="private":s&&(w="future"):w="pending";const S={"aria-disabled":x,className:"editor-post-publish-button",isBusy:!d&&l,variant:"primary",onClick:this.createOnClick((()=>{x||(m(),p(w))})),"aria-haspopup":_?"dialog":void 0},k={"aria-disabled":v,"aria-expanded":n,className:"editor-post-publish-panel__toggle",isBusy:l&&i,variant:"primary",size:"compact",onClick:this.createOnClick((()=>{v||h()})),"aria-haspopup":_?"dialog":void 0},C=u?k:S;return(0,c.jsx)(c.Fragment,{children:(0,c.jsx)(Hn.Button,{...C,className:`${C.className} editor-post-publish-button__button`,size:"compact",children:(0,c.jsx)(Lp,{})})})}}var Vp=(0,m.compose)([(0,d.withSelect)((e=>{const{isSavingPost:t,isAutosavingPost:s,isEditedPostBeingScheduled:n,getEditedPostVisibility:o,isCurrentPostPublished:r,isEditedPostSaveable:i,isEditedPostPublishable:a,isPostSavingLocked:l,getCurrentPost:c,getCurrentPostType:d,getCurrentPostId:u,hasNonPostEntityChanges:p,isSavingNonPostEntityChanges:m,getEditedPostAttribute:h,getPostEdits:g}=e(vc);return{isSaving:t(),isAutoSaving:s(),isBeingScheduled:n(),visibility:o(),isSaveable:i(),isPostSavingLocked:l(),isPublishable:a(),isPublished:r(),hasPublishAction:c()._links?.["wp:action-publish"]??!1,postType:d(),postId:u(),postStatus:h("status"),postStatusHasChanged:g()?.status,hasNonPostEntityChanges:p(),isSavingNonPostEntityChanges:m()}})),(0,d.withDispatch)((e=>{const{editPost:t,savePost:s}=e(vc);return{savePostStatus:e=>{t({status:e},{undoIgnore:!0}),s()}}}))])(Fp),Up=(0,c.jsx)(L.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24",children:(0,c.jsx)(L.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"})});const Hp=[{label:(0,fs.__)("Public"),value:"public",description:(0,fs.__)("Visible to everyone.")},{label:(0,fs.__)("Private"),value:"private",description:(0,fs.__)("Only visible to site admins and editors.")},{label:(0,fs.__)("Password protected"),value:"password",description:(0,fs.__)("Only visible to those who know the password.")}];function zp({onClose:e}){const t=(0,m.useInstanceId)(zp),{status:s,visibility:n,password:o}=(0,d.useSelect)((e=>({status:e(vc).getEditedPostAttribute("status"),visibility:e(vc).getEditedPostVisibility(),password:e(vc).getEditedPostAttribute("password")}))),{editPost:r}=(0,d.useDispatch)(vc),[i,a]=(0,p.useState)(!!o);return(0,c.jsxs)("div",{className:"editor-post-visibility",children:[(0,c.jsx)(g.__experimentalInspectorPopoverHeader,{title:(0,fs.__)("Visibility"),help:(0,fs.__)("Control how this post is viewed."),onClose:e}),(0,c.jsxs)(Hn.__experimentalVStack,{spacing:4,children:[(0,c.jsx)(Hn.RadioControl,{label:(0,fs.__)("Visibility"),hideLabelFromVision:!0,options:Hp,selected:i?"password":n,onChange:function(e){r({public:{status:"private"===n?"draft":s,password:""},private:{status:"private",password:""},password:{status:"private"===n?"draft":s,password:o||""}}[e]),a("password"===e)}}),i&&(0,c.jsx)(Hn.TextControl,{label:(0,fs.__)("Password"),onChange:e=>{r({password:e})},value:o,placeholder:(0,fs.__)("Use a secure password"),type:"text",id:`editor-post-visibility__password-input-${t}`,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,maxLength:255})]})]})}function Gp(){return $p()}function $p(){const e=(0,d.useSelect)((e=>e(vc).getEditedPostVisibility()),[]);return Hp.find((t=>t.value===e))?.label}function Wp(e){const t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new e.constructor(+e):"number"==typeof e||"[object Number]"===t||"string"==typeof e||"[object String]"===t?new Date(e):new Date(NaN)}function Zp(e){const t=Wp(e);return t.setDate(1),t.setHours(0,0,0,0),t}function Yp(e){const t=Wp(e),s=t.getMonth();return t.setFullYear(t.getFullYear(),s+1,0),t.setHours(23,59,59,999),t}Math.pow(10,8);const qp=6e4,Kp=36e5;function Qp(e,t){const s=t?.additionalDigits??2,n=function(e){const t={},s=e.split(Xp.dateTimeDelimiter);let n;if(s.length>2)return t;/:/.test(s[0])?n=s[0]:(t.date=s[0],n=s[1],Xp.timeZoneDelimiter.test(t.date)&&(t.date=e.split(Xp.timeZoneDelimiter)[0],n=e.substr(t.date.length,e.length)));if(n){const e=Xp.timezone.exec(n);e?(t.time=n.replace(e[1],""),t.timezone=e[1]):t.time=n}return t}(e);let o;if(n.date){const e=function(e,t){const s=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),n=e.match(s);if(!n)return{year:NaN,restDateString:""};const o=n[1]?parseInt(n[1]):null,r=n[2]?parseInt(n[2]):null;return{year:null===r?o:100*r,restDateString:e.slice((n[1]||n[2]).length)}}(n.date,s);o=function(e,t){if(null===t)return new Date(NaN);const s=e.match(Jp);if(!s)return new Date(NaN);const n=!!s[4],o=sm(s[1]),r=sm(s[2])-1,i=sm(s[3]),a=sm(s[4]),l=sm(s[5])-1;if(n)return function(e,t,s){return t>=1&&t<=53&&s>=0&&s<=6}(0,a,l)?function(e,t,s){const n=new Date(0);n.setUTCFullYear(e,0,4);const o=n.getUTCDay()||7,r=7*(t-1)+s+1-o;return n.setUTCDate(n.getUTCDate()+r),n}(t,a,l):new Date(NaN);{const e=new Date(0);return function(e,t,s){return t>=0&&t<=11&&s>=1&&s<=(om[t]||(rm(e)?29:28))}(t,r,i)&&function(e,t){return t>=1&&t<=(rm(e)?366:365)}(t,o)?(e.setUTCFullYear(t,r,Math.max(o,i)),e):new Date(NaN)}}(e.restDateString,e.year)}if(!o||isNaN(o.getTime()))return new Date(NaN);const r=o.getTime();let i,a=0;if(n.time&&(a=function(e){const t=e.match(em);if(!t)return NaN;const s=nm(t[1]),n=nm(t[2]),o=nm(t[3]);if(!function(e,t,s){if(24===e)return 0===t&&0===s;return s>=0&&s<60&&t>=0&&t<60&&e>=0&&e<25}(s,n,o))return NaN;return s*Kp+n*qp+1e3*o}(n.time),isNaN(a)))return new Date(NaN);if(!n.timezone){const e=new Date(r+a),t=new Date(0);return t.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),t.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),t}return i=function(e){if("Z"===e)return 0;const t=e.match(tm);if(!t)return 0;const s="+"===t[1]?-1:1,n=parseInt(t[2]),o=t[3]&&parseInt(t[3])||0;if(!function(e,t){return t>=0&&t<=59}(0,o))return NaN;return s*(n*Kp+o*qp)}(n.timezone),isNaN(i)?new Date(NaN):new Date(r+a+i)}const Xp={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Jp=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,em=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,tm=/^([+-])(\d{2})(?::?(\d{2}))?$/;function sm(e){return e?parseInt(e):1}function nm(e){return e&&parseFloat(e.replace(",","."))||0}const om=[31,null,31,30,31,30,31,31,30,31,30,31];function rm(e){return e%400==0||e%4==0&&e%100!=0}const{PrivatePublishDateTimePicker:im}=$(g.privateApis);function am(e){return(0,c.jsx)(lm,{...e,showPopoverHeaderActions:!0,isCompact:!1})}function lm({onClose:e,showPopoverHeaderActions:t,isCompact:s}){const{postDate:n,postType:o}=(0,d.useSelect)((e=>({postDate:e(vc).getEditedPostAttribute("date"),postType:e(vc).getCurrentPostType()})),[]),{editPost:r}=(0,d.useDispatch)(vc),[i,a]=(0,p.useState)(Zp(new Date(n))),l=(0,d.useSelect)((e=>e(u.store).getEntityRecords("postType",o,{status:"publish,future",after:Zp(i).toISOString(),before:Yp(i).toISOString(),exclude:[e(vc).getCurrentPostId()],per_page:100,_fields:"id,date"})),[i,o]),m=(0,p.useMemo)((()=>(l||[]).map((({date:e})=>({date:new Date(e)})))),[l]),h=(0,v.getSettings)(),g=/a(?!\\)/i.test(h.formats.time.toLowerCase().replace(/\\\\/g,"").split("").reverse().join(""));return(0,c.jsx)(im,{currentDate:n,onChange:e=>r({date:e}),is12Hour:g,dateOrder:(0,fs._x)("dmy","date order"),events:m,onMonthPreviewed:e=>a(Qp(e)),onClose:e,isCompact:s,showPopoverHeaderActions:t})}function cm(e){return dm(e)}function dm({full:e=!1}={}){const{date:t,isFloating:s}=(0,d.useSelect)((e=>({date:e(vc).getEditedPostAttribute("date"),isFloating:e(vc).isEditedPostDateFloating()})),[]);return e?um(t):function(e,{isFloating:t=!1,now:s=new Date}={}){if(!e||t)return(0,fs.__)("Immediately");if(!function(e){const{timezone:t}=(0,v.getSettings)(),s=Number(t.offset),n=e.getTimezoneOffset()/60*-1;return s===n}(s))return um(e);const n=(0,v.getDate)(e);if(pm(n,s))return(0,fs.sprintf)((0,fs.__)("Today at %s"),(0,v.dateI18n)((0,fs._x)("g:i a","post schedule time format"),n));const o=new Date(s);if(o.setDate(o.getDate()+1),pm(n,o))return(0,fs.sprintf)((0,fs.__)("Tomorrow at %s"),(0,v.dateI18n)((0,fs._x)("g:i a","post schedule time format"),n));if(n.getFullYear()===s.getFullYear())return(0,v.dateI18n)((0,fs._x)("F j g:i a","post schedule date format without year"),n);return(0,v.dateI18n)((0,fs._x)("F j, Y g:i a","post schedule full date format"),n)}(t,{isFloating:s})}function um(e){const t=(0,v.getDate)(e),s=function(){const{timezone:e}=(0,v.getSettings)();if(e.abbr&&isNaN(Number(e.abbr)))return e.abbr;return`UTC${e.offset<0?"":"+"}${e.offsetFormatted}`}(),n=(0,v.dateI18n)((0,fs._x)("F j, Y g:i a","post schedule full date format"),t);return(0,fs.isRTL)()?`${s} ${n}`:`${n} ${s}`}function pm(e,t){return e.getDate()===t.getDate()&&e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()}const mm=3,hm={per_page:10,orderby:"count",order:"desc",hide_empty:!0,_fields:"id,name,count",context:"view"};function gm({onSelect:e,taxonomy:t}){const{_terms:s,showTerms:n}=(0,d.useSelect)((e=>{const s=e(u.store).getEntityRecords("taxonomy",t.slug,hm);return{_terms:s,showTerms:s?.length>=mm}}),[t.slug]);if(!n)return null;const o=Ld(s);return(0,c.jsxs)("div",{className:"editor-post-taxonomies__flat-term-most-used",children:[(0,c.jsx)(Hn.BaseControl.VisualLabel,{as:"h3",className:"editor-post-taxonomies__flat-term-most-used-label",children:t.labels.most_used}),(0,c.jsx)("ul",{role:"list",className:"editor-post-taxonomies__flat-term-most-used-list",children:o.map((t=>(0,c.jsx)("li",{children:(0,c.jsx)(Hn.Button,{__next40pxDefaultSize:!0,variant:"link",onClick:()=>e(t),children:t.name})},t.id)))})]})}const _m=[],fm=100,bm={per_page:fm,_fields:"id,name",context:"view"},ym=(e,t)=>Ad(e).toLowerCase()===Ad(t).toLowerCase(),xm=(e,t)=>e.map((e=>t.find((t=>ym(t.name,e)))?.id)).filter((e=>void 0!==e)),vm=({children:e,__nextHasNoMarginBottom:t})=>t?(0,c.jsx)(Hn.__experimentalVStack,{spacing:4,children:e}):(0,c.jsx)(p.Fragment,{children:e});function wm({slug:e,__nextHasNoMarginBottom:t}){const[s,n]=(0,p.useState)([]),[o,r]=(0,p.useState)(""),i=(0,m.useDebounce)(r,500);t||k()("Bottom margin styles for wp.editor.PostTaxonomiesFlatTermSelector",{since:"6.7",version:"7.0",hint:"Set the `__nextHasNoMarginBottom` prop to true to start opting into the new styles, which will become the default in a future version."});const{terms:a,termIds:l,taxonomy:h,hasAssignAction:g,hasCreateAction:_,hasResolvedTerms:f}=(0,d.useSelect)((t=>{const{getCurrentPost:s,getEditedPostAttribute:n}=t(vc),{getEntityRecords:o,getEntityRecord:r,hasFinishedResolution:i}=t(u.store),a=s(),l=r("root","taxonomy",e),c=l?n(l.rest_base):_m,d={...bm,include:c?.join(","),per_page:-1};return{hasCreateAction:!!l&&(a._links?.["wp:action-create-"+l.rest_base]??!1),hasAssignAction:!!l&&(a._links?.["wp:action-assign-"+l.rest_base]??!1),taxonomy:l,termIds:c,terms:c?.length?o("taxonomy",e,d):_m,hasResolvedTerms:i("getEntityRecords",["taxonomy",e,d])}}),[e]),{searchResults:b}=(0,d.useSelect)((t=>{const{getEntityRecords:s}=t(u.store);return{searchResults:o?s("taxonomy",e,{...bm,search:o}):_m}}),[o,e]);(0,p.useEffect)((()=>{if(f){const e=(a??[]).map((e=>Ad(e.name)));n(e)}}),[a,f]);const y=(0,p.useMemo)((()=>(b??[]).map((e=>Ad(e.name)))),[b]),{editPost:x}=(0,d.useDispatch)(vc),{saveEntityRecord:v}=(0,d.useDispatch)(u.store),{createErrorNotice:w}=(0,d.useDispatch)(_s.store);if(!g)return null;function S(e){x({[h.rest_base]:e})}const C=h?.labels?.add_new_item??("post_tag"===e?(0,fs.__)("Add Tag"):(0,fs.__)("Add Term")),P=h?.labels?.singular_name??("post_tag"===e?(0,fs.__)("Tag"):(0,fs.__)("Term")),j=(0,fs.sprintf)((0,fs._x)("%s added","term"),P),E=(0,fs.sprintf)((0,fs._x)("%s removed","term"),P),T=(0,fs.sprintf)((0,fs._x)("Remove %s","term"),P);return(0,c.jsxs)(vm,{__nextHasNoMarginBottom:t,children:[(0,c.jsx)(Hn.FormTokenField,{__next40pxDefaultSize:!0,value:s,suggestions:y,onChange:function(t){const s=[...a??[],...b??[]],o=t.reduce(((e,t)=>(e.some((e=>e.toLowerCase()===t.toLowerCase()))||e.push(t),e)),[]),r=o.filter((e=>!s.find((t=>ym(t.name,e)))));n(o),0!==r.length?_&&Promise.all(r.map((t=>async function(t){try{const s=await v("taxonomy",e,t,{throwOnError:!0});return Md(s)}catch(e){if("term_exists"!==e.code)throw e;return{id:e.data.term_id,name:t.name}}}({name:t})))).then((e=>{const t=s.concat(e);S(xm(o,t))})).catch((e=>{w(e.message,{type:"snackbar"}),S(xm(o,s))})):S(xm(o,s))},onInputChange:i,maxSuggestions:fm,label:C,messages:{added:j,removed:E,remove:T},__nextHasNoMarginBottom:t}),(0,c.jsx)(gm,{taxonomy:h,onSelect:function(t){if(l.includes(t.id))return;const s=[...l,t.id],n="post_tag"===e?(0,fs.__)("Tag"):(0,fs.__)("Term"),o=(0,fs.sprintf)((0,fs._x)("%s added","term"),h?.labels?.singular_name??n);(0,ms.speak)(o,"assertive"),S(s)}})]})}var Sm=(0,Hn.withFilters)("editor.PostTaxonomyType")(wm);const km=()=>{const e=(0,d.useSelect)((e=>{const t=e(u.store).getTaxonomy("post_tag");return t?.labels}),[]),t=e?.add_new_item??(0,fs.__)("Add tag"),s=e?.name??(0,fs.__)("Tags"),n=[(0,fs.__)("Suggestion:"),(0,c.jsx)("span",{className:"editor-post-publish-panel__link",children:t},"label")];return(0,c.jsxs)(Hn.PanelBody,{initialOpen:!1,title:n,children:[(0,c.jsx)("p",{children:(0,fs.sprintf)((0,fs.__)("%s help users and search engines navigate your site and find your content. Add a few keywords to describe your post."),s)}),(0,c.jsx)(Sm,{slug:"post_tag",__nextHasNoMarginBottom:!0})]})};var Cm=()=>{const{postHasTags:e,siteHasTags:t,isPostTypeSupported:s}=(0,d.useSelect)((e=>{const t=e(vc).getCurrentPostType(),s=e(u.store).getEntityRecord("root","taxonomy","post_tag"),n=s?.types?.includes(t),o=void 0!==s,r=s&&e(vc).getEditedPostAttribute(s.rest_base),i=!!n&&!!e(u.store).getEntityRecords("taxonomy","post_tag",{per_page:1})?.length;return{postHasTags:!!r?.length,siteHasTags:i,isPostTypeSupported:o&&n}}),[]),[n]=(0,p.useState)(e);return s&&t?n?null:(0,c.jsx)(km,{}):null};const Pm=(e,t)=>Pp.filter((t=>e?.includes(t.id))).find((e=>e.id===t)),jm=({suggestedPostFormat:e,suggestionText:t,onUpdatePostFormat:s})=>(0,c.jsx)(Hn.Button,{__next40pxDefaultSize:!0,variant:"link",onClick:()=>s(e),children:t});function Em(){const{currentPostFormat:e,suggestion:t}=(0,d.useSelect)((e=>{const{getEditedPostAttribute:t,getSuggestedPostFormat:s}=e(vc),n=e(u.store).getThemeSupports().formats??[];return{currentPostFormat:t("format"),suggestion:Pm(n,s())}}),[]),{editPost:s}=(0,d.useDispatch)(vc),n=[(0,fs.__)("Suggestion:"),(0,c.jsx)("span",{className:"editor-post-publish-panel__link",children:(0,fs.__)("Use a post format")},"label")];return t&&t.id!==e?(0,c.jsxs)(Hn.PanelBody,{initialOpen:!1,title:n,children:[(0,c.jsx)("p",{children:(0,fs.__)("Your theme uses post formats to highlight different kinds of content, like images or videos. Apply a post format to see this special styling.")}),(0,c.jsx)("p",{children:(0,c.jsx)(jm,{onUpdatePostFormat:e=>s({format:e}),suggestedPostFormat:t.id,suggestionText:(0,fs.sprintf)((0,fs.__)('Apply the "%1$s" format.'),t.caption)})})]}):null}const{normalizeTextString:Tm}=$(Hn.privateApis),{RECEIVE_INTERMEDIATE_RESULTS:Bm}=$(u.privateApis),Im={per_page:-1,orderby:"name",order:"asc",_fields:"id,name,parent",context:"view",[Bm]:!0},Nm=8,Rm=[];function Dm({slug:e}){const[t,s]=(0,p.useState)(!1),[n,o]=(0,p.useState)(""),[r,i]=(0,p.useState)(""),[a,l]=(0,p.useState)(!1),[h,g]=(0,p.useState)(""),[_,f]=(0,p.useState)([]),b=(0,m.useDebounce)(ms.speak,500),{hasCreateAction:y,hasAssignAction:x,terms:v,loading:w,availableTerms:S,taxonomy:k}=(0,d.useSelect)((t=>{const{getCurrentPost:s,getEditedPostAttribute:n}=t(vc),{getEntityRecord:o,getEntityRecords:r,isResolving:i}=t(u.store),a=o("root","taxonomy",e),l=s();return{hasCreateAction:!!a&&!!l._links?.["wp:action-create-"+a.rest_base],hasAssignAction:!!a&&!!l._links?.["wp:action-assign-"+a.rest_base],terms:a?n(a.rest_base):Rm,loading:i("getEntityRecords",["taxonomy",e,Im]),availableTerms:r("taxonomy",e,Im)||Rm,taxonomy:a}}),[e]),{editPost:C}=(0,d.useDispatch)(vc),{saveEntityRecord:P}=(0,d.useDispatch)(u.store),j=(0,p.useMemo)((()=>function(e,t){const s=e=>-1!==t.indexOf(e.id)||void 0!==e.children&&e.children.map(s).filter((e=>e)).length>0,n=[...e];return n.sort(((e,t)=>{const n=s(e),o=s(t);return n===o?0:n&&!o?-1:!n&&o?1:0})),n}(Dd(S),v)),[S]),{createErrorNotice:E}=(0,d.useDispatch)(_s.store);if(!x)return null;const T=e=>{C({[k.rest_base]:e})},B=e=>e.map((e=>(0,c.jsxs)("div",{className:"editor-post-taxonomies__hierarchical-terms-choice",children:[(0,c.jsx)(Hn.CheckboxControl,{__nextHasNoMarginBottom:!0,checked:-1!==v.indexOf(e.id),onChange:()=>{(e=>{const t=v.includes(e)?v.filter((t=>t!==e)):[...v,e];T(t)})(parseInt(e.id,10))},label:(0,Ln.decodeEntities)(e.name)}),!!e.children.length&&(0,c.jsx)("div",{className:"editor-post-taxonomies__hierarchical-terms-subchoices",children:B(e.children)})]},e.id))),I=(t,s,n)=>k?.labels?.[t]??("category"===e?s:n),N=I("add_new_item",(0,fs.__)("Add Category"),(0,fs.__)("Add Term")),R=I("new_item_name",(0,fs.__)("Add Category"),(0,fs.__)("Add Term")),D=I("parent_item",(0,fs.__)("Parent Category"),(0,fs.__)("Parent Term")),A=`— ${D} —`,M=N,L=k?.labels?.search_items??(0,fs.__)("Search Terms"),O=k?.name??(0,fs.__)("Terms"),F=S.length>=Nm;return(0,c.jsxs)(Hn.Flex,{direction:"column",gap:"4",children:[F&&!w&&(0,c.jsx)(Hn.SearchControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:L,placeholder:L,value:h,onChange:e=>{const t=j.map(function(e){const t=s=>{if(""===e)return s;const n={...s};return n.children.length>0&&(n.children=n.children.map(t).filter((e=>e))),(-1!==Tm(n.name).indexOf(Tm(e))||n.children.length>0)&&n};return t}(e)).filter((e=>e)),s=e=>{let t=0;for(let n=0;n<e.length;n++)t++,void 0!==e[n].children&&(t+=s(e[n].children));return t};g(e),f(t);const n=s(t),o=(0,fs.sprintf)((0,fs._n)("%d result found.","%d results found.",n),n);b(o,"assertive")}}),w&&(0,c.jsx)(Hn.Flex,{justify:"center",style:{height:"40px"},children:(0,c.jsx)(Hn.Spinner,{})}),(0,c.jsx)("div",{className:"editor-post-taxonomies__hierarchical-terms-list",tabIndex:"0",role:"group","aria-label":O,children:B(""!==h?_:j)}),!w&&y&&(0,c.jsx)(Hn.FlexItem,{children:(0,c.jsx)(Hn.Button,{__next40pxDefaultSize:!0,onClick:()=>{l(!a)},className:"editor-post-taxonomies__hierarchical-terms-add","aria-expanded":a,variant:"link",children:N})}),a&&(0,c.jsx)("form",{onSubmit:async a=>{if(a.preventDefault(),""===n||t)return;const l=function(e,t,s){return e.find((e=>(!e.parent&&!t||parseInt(e.parent)===parseInt(t))&&e.name.toLowerCase()===s.toLowerCase()))}(S,r,n);if(l)return v.some((e=>e===l.id))||T([...v,l.id]),o(""),void i("");let c;s(!0);try{c=await(d={name:n,parent:r||void 0},P("taxonomy",e,d,{throwOnError:!0}))}catch(e){return void E(e.message,{type:"snackbar"})}var d;const u="category"===e?(0,fs.__)("Category"):(0,fs.__)("Term"),p=(0,fs.sprintf)((0,fs._x)("%s added","term"),k?.labels?.singular_name??u);(0,ms.speak)(p,"assertive"),s(!1),o(""),i(""),T([...v,c.id])},children:(0,c.jsxs)(Hn.Flex,{direction:"column",gap:"4",children:[(0,c.jsx)(Hn.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,className:"editor-post-taxonomies__hierarchical-terms-input",label:R,value:n,onChange:e=>{o(e)},required:!0}),!!S.length&&(0,c.jsx)(Hn.TreeSelect,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:D,noOptionLabel:A,onChange:e=>{i(e)},selectedId:r,tree:j}),(0,c.jsx)(Hn.FlexItem,{children:(0,c.jsx)(Hn.Button,{__next40pxDefaultSize:!0,variant:"secondary",type:"submit",className:"editor-post-taxonomies__hierarchical-terms-submit",children:M})})]})})]})}var Am=(0,Hn.withFilters)("editor.PostTaxonomyType")(Dm);var Mm=function(){const{hasNoCategory:e,hasSiteCategories:t}=(0,d.useSelect)((e=>{const t=e(vc).getCurrentPostType(),{canUser:s,getEntityRecord:n}=e(u.store),o=n("root","taxonomy","category"),r=s("read",{kind:"root",name:"site"})?n("root","site")?.default_category:void 0,i=r?n("taxonomy","category",r):void 0,a=o&&o.types.some((e=>e===t)),l=o&&e(vc).getEditedPostAttribute(o.rest_base),c=!!a&&!!e(u.store).getEntityRecords("taxonomy","category",{exclude:[r],per_page:1})?.length;return{hasNoCategory:!!o&&!!i&&a&&(0===l?.length||1===l?.length&&i?.id===l[0]),hasSiteCategories:c}}),[]),[s,n]=(0,p.useState)(!1);if((0,p.useEffect)((()=>{e&&n(!0)}),[e]),!s||!t)return null;const o=[(0,fs.__)("Suggestion:"),(0,c.jsx)("span",{className:"editor-post-publish-panel__link",children:(0,fs.__)("Assign a category")},"label")];return(0,c.jsxs)(Hn.PanelBody,{initialOpen:!1,title:o,children:[(0,c.jsx)("p",{children:(0,fs.__)("Categories provide a helpful way to group related posts together and to quickly tell readers what a post is about.")}),(0,c.jsx)(Am,{slug:"category"})]})};function Lm(e){return Object.fromEntries(Object.entries(function(e){const t=new Set;return Object.fromEntries(e.map((e=>{const s=(0,w.getFilename)(e);let n="";if(s){const e=s.split(".");e.length>1&&e.pop(),n=e.join(".")}return n||(n=fi()),t.has(n)&&(n=`${n}-${fi()}`),t.add(n),[e,n]})))}(e)).map((([e,t])=>{const s=window.fetch(e.includes("?")?e:e+"?").then((e=>e.blob())).then((e=>new File([e],`${t}.png`,{type:e.type})));return[e,s]})))}function Om(e){const t=[];return e.forEach((e=>{t.push(e),t.push(...Om(e.innerBlocks))})),t}function Fm(e){if("core/image"===e.name||"core/cover"===e.name){const{url:t,alt:s,id:n}=e.attributes;return{url:t,alt:s,id:n}}if("core/media-text"===e.name){const{mediaUrl:t,mediaAlt:s,mediaId:n}=e.attributes;return{url:t,alt:s,id:n}}return{}}function Vm({clientId:e,alt:t,url:s}){const{selectBlock:n}=(0,d.useDispatch)(g.store);return(0,c.jsx)(Hn.__unstableMotion.img,{tabIndex:0,role:"button","aria-label":(0,fs.__)("Select image block."),onClick:()=>{n(e)},onKeyDown:t=>{"Enter"!==t.key&&" "!==t.key||(n(e),t.preventDefault())},alt:t,src:s,animate:{opacity:1},exit:{opacity:0,scale:0},style:{width:"32px",height:"32px",objectFit:"cover",borderRadius:"2px",cursor:"pointer"},whileHover:{scale:1.08}},e)}function Um(){const[e,t]=(0,p.useState)(!1),[s,n]=(0,p.useState)(!1),[o,r]=(0,p.useState)(!1),{editorBlocks:i,mediaUpload:a}=(0,d.useSelect)((e=>({editorBlocks:e(g.store).getBlocks(),mediaUpload:e(g.store).getSettings().mediaUpload})),[]),l=Om(i).filter((e=>function(e){return"core/image"===e.name||"core/cover"===e.name?e.attributes.url&&!e.attributes.id:"core/media-text"===e.name?e.attributes.mediaUrl&&!e.attributes.mediaId:void 0}(e))),{updateBlockAttributes:u}=(0,d.useDispatch)(g.store);if(!a||!l.length)return null;const m=[(0,fs.__)("Suggestion:"),(0,c.jsx)("span",{className:"editor-post-publish-panel__link",children:(0,fs.__)("External media")},"label")];return(0,c.jsxs)(Hn.PanelBody,{initialOpen:!0,title:m,children:[(0,c.jsx)("p",{children:(0,fs.__)("Upload external images to the Media Library. Images from different domains may load slowly, display incorrectly, or be removed unexpectedly.")}),(0,c.jsxs)("div",{style:{display:"inline-flex",flexWrap:"wrap",gap:"8px"},children:[(0,c.jsx)(Hn.__unstableAnimatePresence,{onExitComplete:()=>n(!1),children:l.map((e=>{const{url:t,alt:s}=Fm(e);return(0,c.jsx)(Vm,{clientId:e.clientId,url:t,alt:s},e.clientId)}))}),e||s?(0,c.jsx)(Hn.Spinner,{}):(0,c.jsx)(Hn.Button,{size:"compact",variant:"primary",onClick:function(){t(!0),r(!1);const e=new Set(l.map((e=>{const{url:t}=Fm(e);return t}))),s=Object.fromEntries(Object.entries(Lm([...e])).map((([e,t])=>[e,t.then((e=>new Promise(((t,s)=>{a({filesList:[e],onFileChange:([e])=>{(0,Go.isBlobURL)(e.url)||t(e)},onError(){s()}})}))))])));Promise.allSettled(l.map((e=>{const{url:t}=Fm(e);return s[t].then((t=>function(e,t){"core/image"!==e.name&&"core/cover"!==e.name||u(e.clientId,{id:t.id,url:t.url}),"core/media-text"===e.name&&u(e.clientId,{mediaId:t.id,mediaUrl:t.url})}(e,t))).then((()=>n(!0))).catch((()=>r(!0)))}))).finally((()=>{t(!1)}))},children:(0,fs._x)("Upload","verb")})]}),o&&(0,c.jsx)("p",{children:(0,fs.__)("Upload failed, try again.")})]})}var Hm=function({children:e}){const{isBeingScheduled:t,isRequestingSiteIcon:s,hasPublishAction:n,siteIconUrl:o,siteTitle:r,siteHome:i}=(0,d.useSelect)((e=>{const{getCurrentPost:t,isEditedPostBeingScheduled:s}=e(vc),{getEntityRecord:n,isResolving:o}=e(u.store),r=n("root","__unstableBase",void 0)||{};return{hasPublishAction:t()._links?.["wp:action-publish"]??!1,isBeingScheduled:s(),isRequestingSiteIcon:o("getEntityRecord",["root","__unstableBase",void 0]),siteIconUrl:r.site_icon_url,siteTitle:r.name,siteHome:r.home&&(0,w.filterURLForDisplay)(r.home)}}),[]);let a,l,p=(0,c.jsx)(Hn.Icon,{className:"components-site-icon",size:"36px",icon:Up});return o&&(p=(0,c.jsx)("img",{alt:(0,fs.__)("Site Icon"),className:"components-site-icon",src:o})),s&&(p=null),n?t?(a=(0,fs.__)("Are you ready to schedule?"),l=(0,fs.__)("Your work will be published at the specified date and time.")):(a=(0,fs.__)("Are you ready to publish?"),l=(0,fs.__)("Double-check your settings before publishing.")):(a=(0,fs.__)("Are you ready to submit for review?"),l=(0,fs.__)("Your work will be reviewed and then approved.")),(0,c.jsxs)("div",{className:"editor-post-publish-panel__prepublish",children:[(0,c.jsx)("div",{children:(0,c.jsx)("strong",{children:a})}),(0,c.jsx)("p",{children:l}),(0,c.jsxs)("div",{className:"components-site-card",children:[p,(0,c.jsxs)("div",{className:"components-site-info",children:[(0,c.jsx)("span",{className:"components-site-name",children:(0,Ln.decodeEntities)(r)||(0,fs.__)("(Untitled)")}),(0,c.jsx)("span",{className:"components-site-home",children:i})]})]}),(0,c.jsx)(Um,{}),n&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(Hn.PanelBody,{initialOpen:!1,title:[(0,fs.__)("Visibility:"),(0,c.jsx)("span",{className:"editor-post-publish-panel__link",children:(0,c.jsx)(Gp,{})},"label")],children:(0,c.jsx)(zp,{})}),(0,c.jsx)(Hn.PanelBody,{initialOpen:!1,title:[(0,fs.__)("Publish:"),(0,c.jsx)("span",{className:"editor-post-publish-panel__link",children:(0,c.jsx)(cm,{})},"label")],children:(0,c.jsx)(am,{})})]}),(0,c.jsx)(Em,{}),(0,c.jsx)(Cm,{}),(0,c.jsx)(Mm,{}),e]})};const zm="%postname%",Gm="%pagename%";function $m({text:e}){const[t,s]=(0,p.useState)(!1),n=(0,p.useRef)(),o=(0,m.useCopyToClipboard)(e,(()=>{s(!0),n.current&&clearTimeout(n.current),n.current=setTimeout((()=>{s(!1)}),4e3)}));return(0,p.useEffect)((()=>()=>{n.current&&clearTimeout(n.current)}),[]),(0,c.jsx)(Hn.Button,{__next40pxDefaultSize:!0,variant:"secondary",ref:o,children:t?(0,fs.__)("Copied!"):(0,fs.__)("Copy")})}function Wm({focusOnMount:e,children:t}){const{post:s,postType:n,isScheduled:o}=(0,d.useSelect)((e=>{const{getEditedPostAttribute:t,getCurrentPost:s,isCurrentPostScheduled:n}=e(vc),{getPostType:o}=e(u.store);return{post:s(),postType:o(t("type")),isScheduled:n()}}),[]),r=n?.labels?.singular_name,i=n?.labels?.view_item,a=n?.labels?.add_new_item,l="future"===s.status?(e=>{const{slug:t}=e;return e.permalink_template.includes(zm)?e.permalink_template.replace(zm,t):e.permalink_template.includes(Gm)?e.permalink_template.replace(Gm,t):e.permalink_template})(s):s.link,m=(0,w.addQueryArgs)("post-new.php",{post_type:s.type}),h=(0,p.useCallback)((t=>{e&&t&&t.focus()}),[e]),g=o?(0,c.jsxs)(c.Fragment,{children:[(0,fs.__)("is now scheduled. It will go live on")," ",(0,c.jsx)(cm,{}),"."]}):(0,fs.__)("is now live.");return(0,c.jsxs)("div",{className:"post-publish-panel__postpublish",children:[(0,c.jsxs)(Hn.PanelBody,{className:"post-publish-panel__postpublish-header",children:[(0,c.jsx)(Hn.ExternalLink,{ref:h,href:l,children:(0,Ln.decodeEntities)(s.title)||(0,fs.__)("(no title)")})," ",g]}),(0,c.jsxs)(Hn.PanelBody,{children:[(0,c.jsx)("p",{className:"post-publish-panel__postpublish-subheader",children:(0,c.jsx)("strong",{children:(0,fs.__)("What’s next?")})}),(0,c.jsxs)("div",{className:"post-publish-panel__postpublish-post-address-container",children:[(0,c.jsx)(Hn.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,className:"post-publish-panel__postpublish-post-address",readOnly:!0,label:(0,fs.sprintf)((0,fs.__)("%s address"),r),value:(0,w.safeDecodeURIComponent)(l),onFocus:e=>e.target.select()}),(0,c.jsx)("div",{className:"post-publish-panel__postpublish-post-address__copy-button-wrap",children:(0,c.jsx)($m,{text:l})})]}),(0,c.jsxs)("div",{className:"post-publish-panel__postpublish-buttons",children:[!o&&(0,c.jsxs)(Hn.Button,{variant:"primary",href:l,__next40pxDefaultSize:!0,icon:Fn,iconPosition:"right",target:"_blank",children:[i,(0,c.jsx)(Hn.VisuallyHidden,{as:"span",children:(0,fs.__)("(opens in a new tab)")})]}),(0,c.jsx)(Hn.Button,{variant:o?"primary":"secondary",__next40pxDefaultSize:!0,href:m,children:a})]})]}),t]})}class Zm extends p.Component{constructor(){super(...arguments),this.onSubmit=this.onSubmit.bind(this),this.cancelButtonNode=(0,p.createRef)()}componentDidMount(){this.timeoutID=setTimeout((()=>{this.cancelButtonNode.current.focus()}),0)}componentWillUnmount(){clearTimeout(this.timeoutID)}componentDidUpdate(e){(e.isPublished&&!this.props.isSaving&&this.props.isDirty||this.props.currentPostId!==e.currentPostId)&&this.props.onClose()}onSubmit(){const{onClose:e,hasPublishAction:t,isPostTypeViewable:s}=this.props;t&&s||e()}render(){const{forceIsDirty:e,isBeingScheduled:t,isPublished:s,isPublishSidebarEnabled:n,isScheduled:o,isSaving:r,isSavingNonPostEntityChanges:i,onClose:a,onTogglePublishSidebar:l,PostPublishExtension:d,PrePublishExtension:u,currentPostId:p,...m}=this.props,{hasPublishAction:h,isDirty:g,isPostTypeViewable:_,...f}=m,b=s||o&&t,y=!b&&!r,x=b&&!r;return(0,c.jsxs)("div",{className:"editor-post-publish-panel",...f,children:[(0,c.jsx)("div",{className:"editor-post-publish-panel__header",children:x?(0,c.jsx)(Hn.Button,{size:"compact",onClick:a,icon:la,label:(0,fs.__)("Close panel")}):(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("div",{className:"editor-post-publish-panel__header-cancel-button",children:(0,c.jsx)(Hn.Button,{ref:this.cancelButtonNode,accessibleWhenDisabled:!0,disabled:i,onClick:a,variant:"secondary",size:"compact",children:(0,fs.__)("Cancel")})}),(0,c.jsx)("div",{className:"editor-post-publish-panel__header-publish-button",children:(0,c.jsx)(Vp,{onSubmit:this.onSubmit,forceIsDirty:e})})]})}),(0,c.jsxs)("div",{className:"editor-post-publish-panel__content",children:[y&&(0,c.jsx)(Hm,{children:u&&(0,c.jsx)(u,{})}),x&&(0,c.jsx)(Wm,{focusOnMount:!0,children:d&&(0,c.jsx)(d,{})}),r&&(0,c.jsx)(Hn.Spinner,{})]}),(0,c.jsx)("div",{className:"editor-post-publish-panel__footer",children:(0,c.jsx)(Hn.CheckboxControl,{__nextHasNoMarginBottom:!0,label:(0,fs.__)("Always show pre-publish checks."),checked:n,onChange:l})})]})}}var Ym=(0,m.compose)([(0,d.withSelect)((e=>{const{getPostType:t}=e(u.store),{getCurrentPost:s,getCurrentPostId:n,getEditedPostAttribute:o,isCurrentPostPublished:r,isCurrentPostScheduled:i,isEditedPostBeingScheduled:a,isEditedPostDirty:l,isAutosavingPost:c,isSavingPost:d,isSavingNonPostEntityChanges:p}=e(vc),{isPublishSidebarEnabled:m}=e(vc),h=t(o("type"));return{hasPublishAction:s()._links?.["wp:action-publish"]??!1,isPostTypeViewable:h?.viewable,isBeingScheduled:a(),isDirty:l(),isPublished:r(),isPublishSidebarEnabled:m(),isSaving:d()&&!c(),isSavingNonPostEntityChanges:p(),isScheduled:i(),currentPostId:n()}})),(0,d.withDispatch)(((e,{isPublishSidebarEnabled:t})=>{const{disablePublishSidebar:s,enablePublishSidebar:n}=e(vc);return{onTogglePublishSidebar:()=>{t?s():n()}}})),Hn.withFocusReturn,Hn.withConstrainedTabbing])(Zm),qm=(0,c.jsx)(L.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,c.jsx)(L.Path,{d:"M17.3 10.1C17.3 7.60001 15.2 5.70001 12.5 5.70001C10.3 5.70001 8.4 7.10001 7.9 9.00001H7.7C5.7 9.00001 4 10.7 4 12.8C4 14.9 5.7 16.6 7.7 16.6H9.5V15.2H7.7C6.5 15.2 5.5 14.1 5.5 12.9C5.5 11.7 6.5 10.5 7.7 10.5H9L9.3 9.40001C9.7 8.10001 11 7.20001 12.5 7.20001C14.3 7.20001 15.8 8.50001 15.8 10.1V11.4L17.1 11.6C17.9 11.7 18.5 12.5 18.5 13.4C18.5 14.4 17.7 15.2 16.8 15.2H14.5V16.6H16.7C18.5 16.6 19.9 15.1 19.9 13.3C20 11.7 18.8 10.4 17.3 10.1Z M14.1245 14.2426L15.1852 13.182L12.0032 10L8.82007 13.1831L9.88072 14.2438L11.25 12.8745V18H12.75V12.8681L14.1245 14.2426Z"})}),Km=(0,c.jsx)(L.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,c.jsx)(L.Path,{d:"M17.3 10.1c0-2.5-2.1-4.4-4.8-4.4-2.2 0-4.1 1.4-4.6 3.3h-.2C5.7 9 4 10.7 4 12.8c0 2.1 1.7 3.8 3.7 3.8h9c1.8 0 3.2-1.5 3.2-3.3.1-1.6-1.1-2.9-2.6-3.2zm-.5 5.1h-9c-1.2 0-2.2-1.1-2.2-2.3s1-2.4 2.2-2.4h1.3l.3-1.1c.4-1.3 1.7-2.2 3.2-2.2 1.8 0 3.3 1.3 3.3 2.9v1.3l1.3.2c.8.1 1.4.9 1.4 1.8-.1 1-.9 1.8-1.8 1.8z"})});function Qm({children:e}){const{hasStickyAction:t,postType:s}=(0,d.useSelect)((e=>{const t=e(vc).getCurrentPost();return{hasStickyAction:t._links?.["wp:action-sticky"]??!1,postType:e(vc).getCurrentPostType()}}),[]);return"post"===s&&t?e:null}function Xm(){const e=(0,d.useSelect)((e=>e(vc).getEditedPostAttribute("sticky")??!1),[]),{editPost:t}=(0,d.useDispatch)(vc);return(0,c.jsx)(Qm,{children:(0,c.jsx)(Hn.CheckboxControl,{className:"editor-post-sticky__checkbox-control",label:(0,fs.__)("Sticky"),help:(0,fs.__)("Pin this post to the top of the blog."),checked:e,onChange:()=>t({sticky:!e}),__nextHasNoMarginBottom:!0})})}const Jm={"auto-draft":{label:(0,fs.__)("Draft"),icon:br},draft:{label:(0,fs.__)("Draft"),icon:br},pending:{label:(0,fs.__)("Pending"),icon:xr},private:{label:(0,fs.__)("Private"),icon:vr},future:{label:(0,fs.__)("Scheduled"),icon:yr},publish:{label:(0,fs.__)("Published"),icon:wr}},eh=[{label:(0,fs.__)("Draft"),value:"draft",description:(0,fs.__)("Not ready to publish.")},{label:(0,fs.__)("Pending"),value:"pending",description:(0,fs.__)("Waiting for review before publishing.")},{label:(0,fs.__)("Private"),value:"private",description:(0,fs.__)("Only visible to site admins and editors.")},{label:(0,fs.__)("Scheduled"),value:"future",description:(0,fs.__)("Publish automatically on a chosen date.")},{label:(0,fs.__)("Published"),value:"publish",description:(0,fs.__)("Visible to everyone.")}],th=[B,I,N,R];function sh(){const{status:e,date:t,password:s,postId:n,postType:o,canEdit:r}=(0,d.useSelect)((e=>{const{getEditedPostAttribute:t,getCurrentPostId:s,getCurrentPostType:n,getCurrentPost:o}=e(vc);return{status:t("status"),date:t("date"),password:t("password"),postId:s(),postType:n(),canEdit:o()._links?.["wp:action-publish"]??!1}}),[]),[i,a]=(0,p.useState)(!!s),l=(0,m.useInstanceId)(sh,"editor-change-status__password-input"),{editEntityRecord:h}=(0,d.useDispatch)(u.store),[_,f]=(0,p.useState)(null),b=(0,p.useMemo)((()=>({anchor:_,"aria-label":(0,fs.__)("Status & visibility"),headerTitle:(0,fs.__)("Status & visibility"),placement:"left-start",offset:36,shift:!0})),[_]);if(th.includes(o))return null;const y=({status:r=e,password:i=s,date:a=t})=>{h("postType",o,n,{status:r,date:a,password:i})},x=e=>{a(e),e||y({password:""})},v=n=>{let o=t,r=s;"future"===e&&new Date(t)>new Date&&(o=null),"private"===n&&s&&(r=""),y({status:n,date:o,password:r})};return(0,c.jsx)(Rd,{label:(0,fs.__)("Status"),ref:f,children:r?(0,c.jsx)(Hn.Dropdown,{className:"editor-post-status",contentClassName:"editor-change-status__content",popoverProps:b,focusOnMount:!0,renderToggle:({onToggle:t,isOpen:s})=>(0,c.jsx)(Hn.Button,{className:"editor-post-status__toggle",variant:"tertiary",size:"compact",onClick:t,icon:Jm[e]?.icon,"aria-label":(0,fs.sprintf)((0,fs.__)("Change status: %s"),Jm[e]?.label),"aria-expanded":s,children:Jm[e]?.label}),renderContent:({onClose:t})=>(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(g.__experimentalInspectorPopoverHeader,{title:(0,fs.__)("Status & visibility"),onClose:t}),(0,c.jsx)("form",{onSubmit:e=>{e.preventDefault(),t()},children:(0,c.jsxs)(Hn.__experimentalVStack,{spacing:4,children:[(0,c.jsx)(Hn.RadioControl,{className:"editor-change-status__options",hideLabelFromVision:!0,label:(0,fs.__)("Status"),options:eh,onChange:v,selected:"auto-draft"===e?"draft":e}),"future"===e&&(0,c.jsx)("div",{className:"editor-change-status__publish-date-wrapper",children:(0,c.jsx)(lm,{showPopoverHeaderActions:!1,isCompact:!0})}),"private"!==e&&(0,c.jsxs)(Hn.__experimentalVStack,{as:"fieldset",spacing:4,className:"editor-change-status__password-fieldset",children:[(0,c.jsx)(Hn.CheckboxControl,{__nextHasNoMarginBottom:!0,label:(0,fs.__)("Password protected"),help:(0,fs.__)("Only visible to those who know the password."),checked:i,onChange:x}),i&&(0,c.jsx)("div",{className:"editor-change-status__password-input",children:(0,c.jsx)(Hn.TextControl,{label:(0,fs.__)("Password"),onChange:e=>y({password:e}),value:s,placeholder:(0,fs.__)("Use a secure password"),type:"text",id:l,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,maxLength:255})})]}),(0,c.jsx)(Xm,{})]})})]})}):(0,c.jsx)("div",{className:"editor-post-status is-read-only",children:Jm[e]?.label})})}function nh({forceIsDirty:e}){const[t,s]=(0,p.useState)(!1),n=(0,m.useViewportMatch)("small"),{isAutosaving:o,isDirty:r,isNew:i,isPublished:a,isSaveable:l,isSaving:u,isScheduled:h,hasPublishAction:g,showIconLabels:_,postStatus:f,postStatusHasChanged:b}=(0,d.useSelect)((t=>{const{isEditedPostNew:s,isCurrentPostPublished:n,isCurrentPostScheduled:o,isEditedPostDirty:r,isSavingPost:i,isEditedPostSaveable:a,getCurrentPost:l,isAutosavingPost:c,getEditedPostAttribute:d,getPostEdits:u}=t(vc),{get:p}=t(C.store);return{isAutosaving:c(),isDirty:e||r(),isNew:s(),isPublished:n(),isSaving:i(),isSaveable:a(),isScheduled:o(),hasPublishAction:l()?._links?.["wp:action-publish"]??!1,showIconLabels:p("core","showIconLabels"),postStatus:d("status"),postStatusHasChanged:!!u()?.status}}),[e]),y="pending"===f,{savePost:x}=(0,d.useDispatch)(vc),v=(0,m.usePrevious)(u);if((0,p.useEffect)((()=>{let e;return v&&!u&&(s(!0),e=setTimeout((()=>{s(!1)}),1e3)),()=>clearTimeout(e)}),[u]),!g&&y)return null;const w=!["pending","draft","auto-draft"].includes(f)&&eh.map((({value:e})=>e)).includes(f);if(a||h||w||b&&["pending","draft"].includes(f))return null;const S=y?(0,fs.__)("Save as pending"):(0,fs.__)("Save draft"),k=(0,fs.__)("Save"),P=t||!i&&!r,j=u||P,E=u||P||!l;let T;return u?T=o?(0,fs.__)("Autosaving"):(0,fs.__)("Saving"):P?T=(0,fs.__)("Saved"):n?T=S:_&&(T=k),(0,c.jsxs)(Hn.Button,{className:l||u?mr({"editor-post-save-draft":!j,"editor-post-saved-state":j,"is-saving":u,"is-autosaving":o,"is-saved":P,[(0,Hn.__unstableGetAnimateClassName)({type:"loading"})]:u}):void 0,onClick:E?void 0:()=>x(),shortcut:E?void 0:ll.displayShortcut.primary("s"),variant:"tertiary",size:"compact",icon:n?void 0:qm,label:T||S,"aria-disabled":E,children:[j&&(0,c.jsx)(ei,{icon:P?zn:Km}),T]})}function oh({children:e}){return(0,d.useSelect)((e=>e(vc).getCurrentPost()._links?.["wp:action-publish"]??!1),[])?e:null}const rh=[B,I,N,R];function ih(){const[e,t]=(0,p.useState)(null),s=(0,d.useSelect)((e=>e(vc).getCurrentPostType()),[]),n=(0,p.useMemo)((()=>({anchor:e,"aria-label":(0,fs.__)("Change publish date"),placement:"left-start",offset:36,shift:!0})),[e]),o=dm(),r=dm({full:!0});return rh.includes(s)?null:(0,c.jsx)(oh,{children:(0,c.jsx)(Rd,{label:(0,fs.__)("Publish"),ref:t,children:(0,c.jsx)(Hn.Dropdown,{popoverProps:n,focusOnMount:!0,className:"editor-post-schedule__panel-dropdown",contentClassName:"editor-post-schedule__dialog",renderToggle:({onToggle:e,isOpen:t})=>(0,c.jsx)(Hn.Button,{size:"compact",className:"editor-post-schedule__dialog-toggle",variant:"tertiary",tooltipPosition:"middle left",onClick:e,"aria-label":(0,fs.sprintf)((0,fs.__)("Change date: %s"),o),label:r,showTooltip:o!==r,"aria-expanded":t,children:o}),renderContent:({onClose:e})=>(0,c.jsx)(am,{onClose:e})})})})}function ah(){k()("wp.editor.PostSwitchToDraftButton",{since:"6.7",version:"6.9"});const[e,t]=(0,p.useState)(!1),{editPost:s,savePost:n}=(0,d.useDispatch)(vc),{isSaving:o,isPublished:r,isScheduled:i}=(0,d.useSelect)((e=>{const{isSavingPost:t,isCurrentPostPublished:s,isCurrentPostScheduled:n}=e(vc);return{isSaving:t(),isPublished:s(),isScheduled:n()}}),[]),a=o||!r&&!i;let l,u;r?(l=(0,fs.__)("Are you sure you want to unpublish this post?"),u=(0,fs.__)("Unpublish")):i&&(l=(0,fs.__)("Are you sure you want to unschedule this post?"),u=(0,fs.__)("Unschedule"));return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(Hn.Button,{__next40pxDefaultSize:!0,className:"editor-post-switch-to-draft",onClick:()=>{a||t(!0)},"aria-disabled":a,variant:"secondary",style:{flexGrow:"1",justifyContent:"center"},children:(0,fs.__)("Switch to draft")}),(0,c.jsx)(Hn.__experimentalConfirmDialog,{isOpen:e,onConfirm:()=>{t(!1),s({status:"draft"}),n()},onCancel:()=>t(!1),confirmButtonText:u,children:l})]})}function lh(){const{syncStatus:e,postType:t}=(0,d.useSelect)((e=>{const{getEditedPostAttribute:t}=e(vc),s=t("meta");return{syncStatus:"unsynced"===s?.wp_pattern_sync_status?"unsynced":t("wp_pattern_sync_status"),postType:t("type")}}));return"wp_block"!==t?null:(0,c.jsx)(Rd,{label:(0,fs.__)("Sync status"),children:(0,c.jsx)("div",{className:"editor-post-sync-status__value",children:"unsynced"===e?(0,fs._x)("Not synced","pattern (singular)"):(0,fs._x)("Synced","pattern (singular)")})})}const ch=e=>e;var dh=function({taxonomyWrapper:e=ch}){const{postType:t,taxonomies:s}=(0,d.useSelect)((e=>({postType:e(vc).getCurrentPostType(),taxonomies:e(u.store).getEntityRecords("root","taxonomy",{per_page:-1})})),[]);return(s??[]).filter((e=>e.types.includes(t)&&e.visibility?.show_ui)).map((t=>{const s=t.hierarchical?Am:Sm,n={slug:t.slug,...t.hierarchical?{}:{__nextHasNoMarginBottom:!0}};return(0,c.jsx)(p.Fragment,{children:e((0,c.jsx)(s,{...n}),t)},`taxonomy-${t.slug}`)}))};function uh({children:e}){const t=(0,d.useSelect)((e=>{const t=e(vc).getCurrentPostType(),s=e(u.store).getEntityRecords("root","taxonomy",{per_page:-1});return s?.some((e=>e.types.includes(t)))}),[]);return t?e:null}function ph({taxonomy:e,children:t}){const s=e?.slug,n=s?`taxonomy-panel-${s}`:"",{isEnabled:o,isOpened:r}=(0,d.useSelect)((e=>{const{isEditorPanelEnabled:t,isEditorPanelOpened:o}=e(vc);return{isEnabled:!!s&&t(n),isOpened:!!s&&o(n)}}),[n,s]),{toggleEditorPanelOpened:i}=(0,d.useDispatch)(vc);if(!o)return null;const a=e?.labels?.menu_name;return a?(0,c.jsx)(Hn.PanelBody,{title:a,opened:r,onToggle:()=>i(n),children:t}):null}function mh(){return(0,c.jsx)(uh,{children:(0,c.jsx)(dh,{taxonomyWrapper:(e,t)=>(0,c.jsx)(ph,{taxonomy:t,children:e})})})}var hh=s(4132);function gh(){const e=(0,m.useInstanceId)(gh),{content:t,blocks:s,type:n,id:o}=(0,d.useSelect)((e=>{const{getEditedEntityRecord:t}=e(u.store),{getCurrentPostType:s,getCurrentPostId:n}=e(vc),o=s(),r=n(),i=t("postType",o,r);return{content:i?.content,blocks:i?.blocks,type:o,id:r}}),[]),{editEntityRecord:r}=(0,d.useDispatch)(u.store),i=(0,p.useMemo)((()=>t instanceof Function?t({blocks:s}):s?(0,x.__unstableSerializeAndClean)(s):t),[t,s]);return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(Hn.VisuallyHidden,{as:"label",htmlFor:`post-content-${e}`,children:(0,fs.__)("Type text or HTML")}),(0,c.jsx)(hh.A,{autoComplete:"off",dir:"auto",value:i,onChange:e=>{r("postType",n,o,{content:e.target.value,blocks:void 0,selection:void 0})},className:"editor-post-text-editor",id:`post-content-${e}`,placeholder:(0,fs.__)("Start writing with text or HTML")})]})}const _h="wp-block wp-block-post-title block-editor-block-list__block editor-post-title editor-post-title__input rich-text",fh=/[\r\n]+/g;function bh(e){const t=(0,p.useRef)(),{isCleanNewPost:s}=(0,d.useSelect)((e=>{const{isCleanNewPost:t}=e(vc);return{isCleanNewPost:t()}}),[]);return(0,p.useImperativeHandle)(e,(()=>({focus:()=>{t?.current?.focus()}}))),(0,p.useEffect)((()=>{if(!t.current)return;const{defaultView:e}=t.current.ownerDocument,{name:n,parent:o}=e,r="editor-canvas"===n?o.document:e.document,{activeElement:i,body:a}=r;!s||i&&a!==i||t.current.focus()}),[s]),{ref:t}}function yh(){const{editPost:e}=(0,d.useDispatch)(vc),{title:t}=(0,d.useSelect)((e=>{const{getEditedPostAttribute:t}=e(vc);return{title:t("title")}}),[]);return{title:t,setTitle:function(t){e({title:t})}}}const xh=(0,p.forwardRef)(((e,t)=>{const{placeholder:s}=(0,d.useSelect)((e=>{const{getSettings:t}=e(g.store),{titlePlaceholder:s}=t();return{placeholder:s}}),[]),[n,o]=(0,p.useState)(!1),{ref:r}=bh(t),{title:i,setTitle:a}=yh(),[l,u]=(0,p.useState)({}),{clearSelectedBlock:h,insertBlocks:_,insertDefaultBlock:f}=(0,d.useDispatch)(g.store),b=(0,Ln.decodeEntities)(s)||(0,fs.__)("Add title"),{value:y,onChange:v,ref:w}=(0,$c.__unstableUseRichText)({value:i,onChange(e){a(e.replace(fh," "))},placeholder:b,selectionStart:l.start,selectionEnd:l.end,onSelectionChange(e,t){u((s=>{const{start:n,end:o}=s;return n===e&&o===t?s:{start:e,end:t}}))},__unstableDisableFormats:!1});function S(e){_(e,0)}const k=mr(_h,{"is-selected":n});return(0,c.jsx)("h1",{ref:(0,m.useMergeRefs)([w,r]),contentEditable:!0,className:k,"aria-label":b,role:"textbox","aria-multiline":"true",onFocus:function(){o(!0),h()},onBlur:function(){o(!1),u({})},onKeyDown:function(e){e.keyCode===ll.ENTER&&(e.preventDefault(),f(void 0,void 0,0))},onPaste:function(e){const t=e.clipboardData;let s="",n="";try{s=t.getData("text/plain"),n=t.getData("text/html")}catch(e){return}window.console.log("Received HTML:\n\n",n),window.console.log("Received plain text:\n\n",s);const o=(0,x.pasteHandler)({HTML:n,plainText:s});if(e.preventDefault(),o.length)if("string"!=typeof o){const[e]=o;if(i||"core/heading"!==e.name&&"core/paragraph"!==e.name)S(o);else{const t=(0,Uc.__unstableStripHTML)(e.attributes.content);a(t),S(o.slice(1))}}else{const e=(0,Uc.__unstableStripHTML)(o);v((0,$c.insert)(y,(0,$c.create)({html:e})))}}})}));var vh=(0,p.forwardRef)(((e,t)=>(0,c.jsx)(Bd,{supportKeys:"title",children:(0,c.jsx)(xh,{ref:t})})));var wh=(0,p.forwardRef)((function(e,t){const{placeholder:s}=(0,d.useSelect)((e=>{const{getSettings:t}=e(g.store),{titlePlaceholder:s}=t();return{placeholder:s}}),[]),[n,o]=(0,p.useState)(!1),{title:r,setTitle:i}=yh(),{ref:a}=bh(t),l=mr(_h,{"is-selected":n,"is-raw-text":!0}),u=(0,Ln.decodeEntities)(s)||(0,fs.__)("Add title");return(0,c.jsx)(Hn.TextareaControl,{ref:a,value:r,onChange:function(e){i(e.replace(fh," "))},onFocus:function(){o(!0)},onBlur:function(){o(!1)},label:s,className:l,placeholder:u,hideLabelFromVision:!0,autoComplete:"off",dir:"auto",rows:1,__nextHasNoMarginBottom:!0})}));function Sh({children:e}){const{canTrashPost:t}=(0,d.useSelect)((e=>{const{isEditedPostNew:t,getCurrentPostId:s,getCurrentPostType:n}=e(vc),{canUser:o}=e(u.store),r=n(),i=s(),a=t(),l=!!i&&o("delete",{kind:"postType",name:r,id:i});return{canTrashPost:(!a||i)&&l&&!M.includes(r)}}),[]);return t?e:null}function kh({onActionPerformed:e}){const t=(0,d.useRegistry)(),{isNew:s,isDeleting:n,postId:o,title:r}=(0,d.useSelect)((e=>{const t=e(vc);return{isNew:t.isEditedPostNew(),isDeleting:t.isDeletingPost(),postId:t.getCurrentPostId(),title:t.getCurrentPostAttribute("title")}}),[]),{trashPost:i}=(0,d.useDispatch)(vc),[a,l]=(0,p.useState)(!1);if(s||!o)return null;return(0,c.jsxs)(Sh,{children:[(0,c.jsx)(Hn.Button,{__next40pxDefaultSize:!0,className:"editor-post-trash",isDestructive:!0,variant:"secondary",isBusy:n,"aria-disabled":n,onClick:n?void 0:()=>l(!0),children:(0,fs.__)("Move to trash")}),(0,c.jsx)(Hn.__experimentalConfirmDialog,{isOpen:a,onConfirm:async()=>{l(!1),await i();const s=await t.resolveSelect(vc).getCurrentPost();e?.("move-to-trash",[s])},onCancel:()=>l(!1),confirmButtonText:(0,fs.__)("Move to trash"),size:"small",children:(0,fs.sprintf)((0,fs.__)('Are you sure you want to move "%s" to the trash?'),r)})]})}function Ch({onClose:e}){const{isEditable:t,postSlug:s,postLink:n,permalinkPrefix:o,permalinkSuffix:r,permalink:i}=(0,d.useSelect)((e=>{const t=e(vc).getCurrentPost(),s=e(vc).getCurrentPostType(),n=e(u.store).getPostType(s),o=e(vc).getPermalinkParts(),r=t?._links?.["wp:action-publish"]??!1;return{isEditable:e(vc).isPermalinkEditable()&&r,postSlug:(0,w.safeDecodeURIComponent)(e(vc).getEditedPostSlug()),viewPostLabel:n?.labels.view_item,postLink:t.link,permalinkPrefix:o?.prefix,permalinkSuffix:o?.suffix,permalink:(0,w.safeDecodeURIComponent)(e(vc).getPermalink())}}),[]),{editPost:a}=(0,d.useDispatch)(vc),{createNotice:l}=(0,d.useDispatch)(_s.store),[h,_]=(0,p.useState)(!1),f=(0,m.useCopyToClipboard)(i,(()=>{l("info",(0,fs.__)("Copied Permalink to clipboard."),{isDismissible:!0,type:"snackbar"})})),b="editor-post-url__slug-description-"+(0,m.useInstanceId)(Ch);return(0,c.jsxs)("div",{className:"editor-post-url",children:[(0,c.jsx)(g.__experimentalInspectorPopoverHeader,{title:(0,fs.__)("Slug"),onClose:e}),(0,c.jsxs)(Hn.__experimentalVStack,{spacing:3,children:[t&&(0,c.jsx)("p",{className:"editor-post-url__intro",children:(0,p.createInterpolateElement)((0,fs.__)("<span>Customize the last part of the Permalink.</span> <a>Learn more.</a>"),{span:(0,c.jsx)("span",{id:b}),a:(0,c.jsx)(Hn.ExternalLink,{href:(0,fs.__)("https://wordpress.org/documentation/article/page-post-settings-sidebar/#permalink")})})}),(0,c.jsxs)("div",{children:[t&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(Hn.__experimentalInputControl,{__next40pxDefaultSize:!0,prefix:(0,c.jsx)(Hn.__experimentalInputControlPrefixWrapper,{children:"/"}),suffix:(0,c.jsx)(Hn.__experimentalInputControlSuffixWrapper,{variant:"control",children:(0,c.jsx)(Hn.Button,{icon:Tr,ref:f,size:"small",label:"Copy"})}),label:(0,fs.__)("Slug"),hideLabelFromVision:!0,value:h?"":s,autoComplete:"off",spellCheck:"false",type:"text",className:"editor-post-url__input",onChange:e=>{a({slug:e}),e?h&&_(!1):h||_(!0)},onBlur:e=>{a({slug:(0,w.cleanForSlug)(e.target.value)}),h&&_(!1)},"aria-describedby":b}),(0,c.jsxs)("p",{className:"editor-post-url__permalink",children:[(0,c.jsx)("span",{className:"editor-post-url__permalink-visual-label",children:(0,fs.__)("Permalink:")}),(0,c.jsxs)(Hn.ExternalLink,{className:"editor-post-url__link",href:n,target:"_blank",children:[(0,c.jsx)("span",{className:"editor-post-url__link-prefix",children:o}),(0,c.jsx)("span",{className:"editor-post-url__link-slug",children:s}),(0,c.jsx)("span",{className:"editor-post-url__link-suffix",children:r})]})]})]}),!t&&(0,c.jsx)(Hn.ExternalLink,{className:"editor-post-url__link",href:n,target:"_blank",children:n})]})]})]})}function Ph({children:e}){const t=(0,d.useSelect)((e=>{const t=e(vc).getCurrentPostType(),s=e(u.store).getPostType(t);if(!s?.viewable)return!1;if(!e(vc).getCurrentPost().link)return!1;return!!e(vc).getPermalinkParts()}),[]);return t?e:null}function jh(){return Eh()}function Eh(){const e=(0,d.useSelect)((e=>e(vc).getPermalink()),[]);return(0,w.filterURLForDisplay)((0,w.safeDecodeURIComponent)(e))}function Th(){const{isFrontPage:e}=(0,d.useSelect)((e=>{const{getCurrentPostId:t}=e(vc),{getEditedEntityRecord:s,canUser:n}=e(u.store),o=n("read",{kind:"root",name:"site"})?s("root","site"):void 0,r=t();return{isFrontPage:o?.page_on_front===r}}),[]),[t,s]=(0,p.useState)(null),n=(0,p.useMemo)((()=>({anchor:t,placement:"left-start",offset:36,shift:!0})),[t]),o=e?(0,fs.__)("Link"):(0,fs.__)("Slug");return(0,c.jsx)(Ph,{children:(0,c.jsxs)(Rd,{label:o,ref:s,children:[!e&&(0,c.jsx)(Hn.Dropdown,{popoverProps:n,className:"editor-post-url__panel-dropdown",contentClassName:"editor-post-url__panel-dialog",focusOnMount:!0,renderToggle:({isOpen:e,onToggle:t})=>(0,c.jsx)(Bh,{isOpen:e,onClick:t}),renderContent:({onClose:e})=>(0,c.jsx)(Ch,{onClose:e})}),e&&(0,c.jsx)(Ih,{})]})})}function Bh({isOpen:e,onClick:t}){const{slug:s}=(0,d.useSelect)((e=>({slug:e(vc).getEditedPostSlug()})),[]),n=(0,w.safeDecodeURIComponent)(s);return(0,c.jsx)(Hn.Button,{size:"compact",className:"editor-post-url__panel-toggle",variant:"tertiary","aria-expanded":e,"aria-label":(0,fs.sprintf)((0,fs.__)("Change link: %s"),n),onClick:t,children:(0,c.jsx)(c.Fragment,{children:n})})}function Ih(){const{postLink:e}=(0,d.useSelect)((e=>{const{getCurrentPost:t}=e(vc);return{postLink:t()?.link}}),[]);return(0,c.jsx)(Hn.ExternalLink,{className:"editor-post-url__front-page-link",href:e,target:"_blank",children:e})}function Nh({render:e}){return e({canEdit:(0,d.useSelect)((e=>e(vc).getCurrentPost()._links?.["wp:action-publish"]??!1))})}var Rh=(0,c.jsx)(L.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,c.jsx)(L.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M5.5 12a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0ZM12 4a8 8 0 1 0 0 16 8 8 0 0 0 0-16Zm.75 4v1.5h-1.5V8h1.5Zm0 8v-5h-1.5v5h1.5Z"})});const Dh=window.wp.wordcount;function Ah(){const e=(0,d.useSelect)((e=>e(vc).getEditedPostAttribute("content")),[]),t=(0,fs._x)("words","Word count type. Do not translate!");return(0,c.jsx)("span",{className:"word-count",children:(0,Dh.count)(e,t)})}const Mh=189;function Lh(){const e=(0,d.useSelect)((e=>e(vc).getEditedPostAttribute("content")),[]),t=(0,fs._x)("words","Word count type. Do not translate!"),s=Math.round((0,Dh.count)(e,t)/Mh),n=0===s?(0,p.createInterpolateElement)((0,fs.__)("<span>< 1</span> minute"),{span:(0,c.jsx)("span",{})}):(0,p.createInterpolateElement)((0,fs.sprintf)((0,fs._n)("<span>%s</span> minute","<span>%s</span> minutes",s),s),{span:(0,c.jsx)("span",{})});return(0,c.jsx)("span",{className:"time-to-read",children:n})}function Oh(){const e=(0,d.useSelect)((e=>e(vc).getEditedPostAttribute("content")),[]);return(0,Dh.count)(e,"characters_including_spaces")}var Fh=function({hasOutlineItemsDisabled:e,onRequestClose:t}){const{headingCount:s,paragraphCount:n,numberOfBlocks:o}=(0,d.useSelect)((e=>{const{getGlobalBlockCount:t}=e(g.store);return{headingCount:t("core/heading"),paragraphCount:t("core/paragraph"),numberOfBlocks:t()}}),[]);return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("div",{className:"table-of-contents__wrapper",role:"note","aria-label":(0,fs.__)("Document Statistics"),tabIndex:"0",children:(0,c.jsxs)("ul",{role:"list",className:"table-of-contents__counts",children:[(0,c.jsxs)("li",{className:"table-of-contents__count",children:[(0,fs.__)("Words"),(0,c.jsx)(Ah,{})]}),(0,c.jsxs)("li",{className:"table-of-contents__count",children:[(0,fs.__)("Characters"),(0,c.jsx)("span",{className:"table-of-contents__number",children:(0,c.jsx)(Oh,{})})]}),(0,c.jsxs)("li",{className:"table-of-contents__count",children:[(0,fs.__)("Time to read"),(0,c.jsx)(Lh,{})]}),(0,c.jsxs)("li",{className:"table-of-contents__count",children:[(0,fs.__)("Headings"),(0,c.jsx)("span",{className:"table-of-contents__number",children:s})]}),(0,c.jsxs)("li",{className:"table-of-contents__count",children:[(0,fs.__)("Paragraphs"),(0,c.jsx)("span",{className:"table-of-contents__number",children:n})]}),(0,c.jsxs)("li",{className:"table-of-contents__count",children:[(0,fs.__)("Blocks"),(0,c.jsx)("span",{className:"table-of-contents__number",children:o})]})]})}),s>0&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("hr",{}),(0,c.jsx)("h2",{className:"table-of-contents__title",children:(0,fs.__)("Document Outline")}),(0,c.jsx)(ed,{onSelect:t,hasOutlineItemsDisabled:e})]})]})};var Vh=(0,p.forwardRef)((function({hasOutlineItemsDisabled:e,repositionDropdown:t,...s},n){const o=(0,d.useSelect)((e=>!!e(g.store).getBlockCount()),[]);return(0,c.jsx)(Hn.Dropdown,{popoverProps:{placement:t?"right":"bottom"},className:"table-of-contents",contentClassName:"table-of-contents__popover",renderToggle:({isOpen:e,onToggle:t})=>(0,c.jsx)(Hn.Button,{__next40pxDefaultSize:!0,...s,ref:n,onClick:o?t:void 0,icon:Rh,"aria-expanded":e,"aria-haspopup":"true",label:(0,fs.__)("Details"),tooltipPosition:"bottom","aria-disabled":!o}),renderContent:({onClose:t})=>(0,c.jsx)(Fh,{onRequestClose:t,hasOutlineItemsDisabled:e})})}));function Uh(){const{__experimentalGetDirtyEntityRecords:e}=(0,d.useSelect)(u.store);return(0,p.useEffect)((()=>{const t=t=>{if(e().length>0)return t.returnValue=(0,fs.__)("You have unsaved changes. If you proceed, they will be lost."),t.returnValue};return window.addEventListener("beforeunload",t),()=>{window.removeEventListener("beforeunload",t)}}),[e]),null}const Hh=window.wp.serverSideRender;var zh=s.n(Hh);function Gh(e,t,s=[]){const n=(0,p.forwardRef)(((s,n)=>(k()("wp.editor."+e,{since:"5.3",alternative:"wp.blockEditor."+e,version:"6.2"}),(0,c.jsx)(t,{ref:n,...s}))));return s.forEach((s=>{n[s]=Gh(e+"."+s,t[s])})),n}function $h(e,t){return(...s)=>(k()("wp.editor."+e,{since:"5.3",alternative:"wp.blockEditor."+e,version:"6.2"}),t(...s))}const Wh=Gh("RichText",g.RichText,["Content"]);Wh.isEmpty=$h("RichText.isEmpty",g.RichText.isEmpty);const Zh=Gh("Autocomplete",g.Autocomplete),Yh=Gh("AlignmentToolbar",g.AlignmentToolbar),qh=Gh("BlockAlignmentToolbar",g.BlockAlignmentToolbar),Kh=Gh("BlockControls",g.BlockControls,["Slot"]),Qh=Gh("BlockEdit",g.BlockEdit),Xh=Gh("BlockEditorKeyboardShortcuts",g.BlockEditorKeyboardShortcuts),Jh=Gh("BlockFormatControls",g.BlockFormatControls,["Slot"]),eg=Gh("BlockIcon",g.BlockIcon),tg=Gh("BlockInspector",g.BlockInspector),sg=Gh("BlockList",g.BlockList),ng=Gh("BlockMover",g.BlockMover),og=Gh("BlockNavigationDropdown",g.BlockNavigationDropdown),rg=Gh("BlockSelectionClearer",g.BlockSelectionClearer),ig=Gh("BlockSettingsMenu",g.BlockSettingsMenu),ag=Gh("BlockTitle",g.BlockTitle),lg=Gh("BlockToolbar",g.BlockToolbar),cg=Gh("ColorPalette",g.ColorPalette),dg=Gh("ContrastChecker",g.ContrastChecker),ug=Gh("CopyHandler",g.CopyHandler),pg=Gh("DefaultBlockAppender",g.DefaultBlockAppender),mg=Gh("FontSizePicker",g.FontSizePicker),hg=Gh("Inserter",g.Inserter),gg=Gh("InnerBlocks",g.InnerBlocks,["ButtonBlockAppender","DefaultBlockAppender","Content"]),_g=Gh("InspectorAdvancedControls",g.InspectorAdvancedControls,["Slot"]),fg=Gh("InspectorControls",g.InspectorControls,["Slot"]),bg=Gh("PanelColorSettings",g.PanelColorSettings),yg=Gh("PlainText",g.PlainText),xg=Gh("RichTextShortcut",g.RichTextShortcut),vg=Gh("RichTextToolbarButton",g.RichTextToolbarButton),wg=Gh("__unstableRichTextInputEvent",g.__unstableRichTextInputEvent),Sg=Gh("MediaPlaceholder",g.MediaPlaceholder),kg=Gh("MediaUpload",g.MediaUpload),Cg=Gh("MediaUploadCheck",g.MediaUploadCheck),Pg=Gh("MultiSelectScrollIntoView",g.MultiSelectScrollIntoView),jg=Gh("NavigableToolbar",g.NavigableToolbar),Eg=Gh("ObserveTyping",g.ObserveTyping),Tg=Gh("SkipToSelectedBlock",g.SkipToSelectedBlock),Bg=Gh("URLInput",g.URLInput),Ig=Gh("URLInputButton",g.URLInputButton),Ng=Gh("URLPopover",g.URLPopover),Rg=Gh("Warning",g.Warning),Dg=Gh("WritingFlow",g.WritingFlow),Ag=$h("createCustomColorsHOC",g.createCustomColorsHOC),Mg=$h("getColorClassName",g.getColorClassName),Lg=$h("getColorObjectByAttributeValues",g.getColorObjectByAttributeValues),Og=$h("getColorObjectByColorValue",g.getColorObjectByColorValue),Fg=$h("getFontSize",g.getFontSize),Vg=$h("getFontSizeClass",g.getFontSizeClass),Ug=$h("withColorContext",g.withColorContext),Hg=$h("withColors",g.withColors),zg=$h("withFontSizes",g.withFontSizes),Gg=kl,$g=kl;function Wg(e){return k()("wp.editor.cleanForSlug",{since:"12.7",plugin:"Gutenberg",alternative:"wp.url.cleanForSlug"}),(0,w.cleanForSlug)(e)}var Zg=(0,Hn.createSlotFill)(Symbol("EditCanvasContainerSlot"));const Yg="__experimentalMainDashboardButton",{Fill:qg,Slot:Kg}=(0,Hn.createSlotFill)(Yg),Qg=qg;Qg.Slot=()=>{const e=(0,Hn.__experimentalUseSlotFills)(Yg);return(0,c.jsx)(Kg,{bubblesVirtually:!0,fillProps:{length:e?e.length:0}})};var Xg=Qg,Jg=(0,c.jsx)(L.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,c.jsx)(L.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"})}),e_=(0,c.jsx)(L.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,c.jsx)(L.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{useHasBlockToolbar:t_}=$(g.privateApis);function s_({isCollapsed:e,onToggle:t}){const{blockSelectionStart:s}=(0,d.useSelect)((e=>({blockSelectionStart:e(g.store).getBlockSelectionStart()})),[]),n=t_(),o=!!s;return(0,p.useEffect)((()=>{s&&t(!1)}),[s,t]),n?(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("div",{className:mr("editor-collapsible-block-toolbar",{"is-collapsed":e||!o}),children:(0,c.jsx)(g.BlockToolbar,{hideDragHandle:!0})}),(0,c.jsx)(Hn.Popover.Slot,{name:"block-toolbar"}),(0,c.jsx)(Hn.Button,{className:"editor-collapsible-block-toolbar__toggle",icon:e?Jg:e_,onClick:()=>{t(!e)},label:e?(0,fs.__)("Show block tools"):(0,fs.__)("Hide block tools"),size:"compact"})]}):null}var n_=(0,c.jsx)(L.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,c.jsx)(L.Path,{d:"M11 12.5V17.5H12.5V12.5H17.5V11H12.5V6H11V11H6V12.5H11Z"})});var o_=function({className:e,disableBlockTools:t=!1}){const{setIsInserterOpened:s,setIsListViewOpened:n}=(0,d.useDispatch)(vc),{isDistractionFree:o,isInserterOpened:r,isListViewOpen:i,listViewShortcut:a,inserterSidebarToggleRef:l,listViewToggleRef:u,showIconLabels:h}=(0,d.useSelect)((e=>{const{get:t}=e(C.store),{isListViewOpened:s,getEditorMode:n,getInserterSidebarToggleRef:o,getListViewToggleRef:r}=$(e(vc)),{getShortcutRepresentation:i}=e(il.store);return{isInserterOpened:e(vc).isInserterOpened(),isListViewOpen:s(),listViewShortcut:i("core/editor/toggle-list-view"),inserterSidebarToggleRef:o(),listViewToggleRef:r(),showIconLabels:t("core","showIconLabels"),isDistractionFree:t("core","distractionFree"),isVisualMode:"visual"===n()}}),[]),_=(0,m.useViewportMatch)("wide"),f=(0,fs.__)("Document tools"),b=(0,p.useCallback)((()=>n(!i)),[n,i]),y=(0,p.useCallback)((()=>s(!r)),[r,s]),x=(0,fs._x)("Block Inserter","Generic label for block inserter button"),v=r?(0,fs.__)("Close"):(0,fs.__)("Add");return(0,c.jsx)(g.NavigableToolbar,{className:mr("editor-document-tools","edit-post-header-toolbar",e),"aria-label":f,variant:"unstyled",children:(0,c.jsxs)("div",{className:"editor-document-tools__left",children:[!o&&(0,c.jsx)(Hn.ToolbarButton,{ref:l,className:"editor-document-tools__inserter-toggle",variant:"primary",isPressed:r,onMouseDown:e=>{r&&e.preventDefault()},onClick:y,disabled:t,icon:n_,label:h?v:x,showTooltip:!h,"aria-expanded":r}),(_||!h)&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(Hn.ToolbarItem,{as:id,showTooltip:!h,variant:h?"tertiary":void 0,size:"compact"}),(0,c.jsx)(Hn.ToolbarItem,{as:rd,showTooltip:!h,variant:h?"tertiary":void 0,size:"compact"}),!o&&(0,c.jsx)(Hn.ToolbarButton,{className:"editor-document-tools__document-overview-toggle",icon:Wi,disabled:t,isPressed:i,label:(0,fs.__)("Document Overview"),onClick:b,shortcut:a,showTooltip:!h,variant:h?"tertiary":void 0,"aria-expanded":i,ref:u})]})]})})},r_=(0,c.jsx)(L.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,c.jsx)(L.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"})});function i_(){const{createNotice:e}=(0,d.useDispatch)(_s.store),{getCurrentPostId:t,getCurrentPostType:s}=(0,d.useSelect)(vc),{getEditedEntityRecord:n}=(0,d.useSelect)(u.store);const o=(0,m.useCopyToClipboard)((function(){const e=n("postType",s(),t());return e?"function"==typeof e.content?e.content(e):e.blocks?(0,x.__unstableSerializeAndClean)(e.blocks):e.content?e.content:void 0:""}),(function(){e("info",(0,fs.__)("All content copied."),{isDismissible:!0,type:"snackbar"})}));return(0,c.jsx)(Hn.MenuItem,{ref:o,children:(0,fs.__)("Copy all blocks")})}const a_=[{value:"visual",label:(0,fs.__)("Visual editor")},{value:"text",label:(0,fs.__)("Code editor")}];var l_=function(){const{shortcut:e,isRichEditingEnabled:t,isCodeEditingEnabled:s,mode:n}=(0,d.useSelect)((e=>({shortcut:e(il.store).getShortcutRepresentation("core/editor/toggle-mode"),isRichEditingEnabled:e(vc).getEditorSettings().richEditingEnabled,isCodeEditingEnabled:e(vc).getEditorSettings().codeEditingEnabled,mode:e(vc).getEditorMode()})),[]),{switchEditorMode:o}=(0,d.useDispatch)(vc);let r=n;t||"visual"!==n||(r="text"),s||"text"!==n||(r="visual");const i=a_.map((n=>(s||"text"!==n.value||(n={...n,disabled:!0}),t||"visual"!==n.value||(n={...n,disabled:!0,info:(0,fs.__)("You can enable the visual editor in your profile settings.")}),n.value===r||n.disabled?n:{...n,shortcut:e})));return(0,c.jsx)(Hn.MenuGroup,{label:(0,fs.__)("Editor"),children:(0,c.jsx)(Hn.MenuItemsChoice,{choices:i,value:r,onSelect:o})})};const{Fill:c_,Slot:d_}=(0,Hn.createSlotFill)("ToolsMoreMenuGroup");c_.Slot=({fillProps:e})=>(0,c.jsx)(d_,{fillProps:e});var u_=c_;const{Fill:p_,Slot:m_}=(0,Hn.createSlotFill)("web"===p.Platform.OS?Symbol("ViewMoreMenuGroup"):"ViewMoreMenuGroup");p_.Slot=({fillProps:e})=>(0,c.jsx)(m_,{fillProps:e});var h_=p_;function g_(){const{openModal:e}=(0,d.useDispatch)(ja),{set:t}=(0,d.useDispatch)(C.store),{toggleDistractionFree:s}=(0,d.useDispatch)(vc),n=(0,d.useSelect)((e=>e(C.store).get("core","showIconLabels")),[]),o=()=>{t("core","distractionFree",!1)};return(0,c.jsx)(c.Fragment,{children:(0,c.jsx)(Hn.DropdownMenu,{icon:r_,label:(0,fs.__)("Options"),popoverProps:{placement:"bottom-end",className:"more-menu-dropdown__content"},toggleProps:{showTooltip:!n,...n&&{variant:"tertiary"},tooltipPosition:"bottom",size:"compact"},children:({onClose:t})=>(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)(Hn.MenuGroup,{label:(0,fs._x)("View","noun"),children:[(0,c.jsx)(C.PreferenceToggleMenuItem,{scope:"core",name:"fixedToolbar",onToggle:o,label:(0,fs.__)("Top toolbar"),info:(0,fs.__)("Access all block and document tools in a single place"),messageActivated:(0,fs.__)("Top toolbar activated."),messageDeactivated:(0,fs.__)("Top toolbar deactivated.")}),(0,c.jsx)(C.PreferenceToggleMenuItem,{scope:"core",name:"distractionFree",label:(0,fs.__)("Distraction free"),info:(0,fs.__)("Write with calmness"),handleToggling:!1,onToggle:()=>s({createNotice:!1}),messageActivated:(0,fs.__)("Distraction free mode activated."),messageDeactivated:(0,fs.__)("Distraction free mode deactivated."),shortcut:ll.displayShortcut.primaryShift("\\")}),(0,c.jsx)(C.PreferenceToggleMenuItem,{scope:"core",name:"focusMode",label:(0,fs.__)("Spotlight mode"),info:(0,fs.__)("Focus on one block at a time"),messageActivated:(0,fs.__)("Spotlight mode activated."),messageDeactivated:(0,fs.__)("Spotlight mode deactivated.")}),(0,c.jsx)(h_.Slot,{fillProps:{onClose:t}})]}),(0,c.jsx)(l_,{}),(0,c.jsx)(Na.Slot,{name:"core/plugin-more-menu",label:(0,fs.__)("Panels"),fillProps:{onClick:t}}),(0,c.jsxs)(Hn.MenuGroup,{label:(0,fs.__)("Tools"),children:[(0,c.jsx)(Hn.MenuItem,{onClick:()=>e("editor/keyboard-shortcut-help"),shortcut:ll.displayShortcut.access("h"),children:(0,fs.__)("Keyboard shortcuts")}),(0,c.jsx)(i_,{}),(0,c.jsxs)(Hn.MenuItem,{icon:Fn,href:(0,fs.__)("https://wordpress.org/documentation/article/wordpress-block-editor/"),target:"_blank",rel:"noopener noreferrer",children:[(0,fs.__)("Help"),(0,c.jsx)(Hn.VisuallyHidden,{as:"span",children:(0,fs.__)("(opens in a new tab)")})]}),(0,c.jsx)(u_.Slot,{fillProps:{onClose:t}})]}),(0,c.jsx)(Hn.MenuGroup,{children:(0,c.jsx)(Hn.MenuItem,{onClick:()=>e("editor/preferences"),children:(0,fs.__)("Preferences")})})]})})})}const __="toggle",f_="button";function b_({forceIsDirty:e,setEntitiesSavedStatesCallback:t}){let s;const n=(0,m.useViewportMatch)("medium","<"),{togglePublishSidebar:o}=(0,d.useDispatch)(vc),{hasPublishAction:r,isBeingScheduled:i,isPending:a,isPublished:l,isPublishSidebarEnabled:u,isPublishSidebarOpened:p,isScheduled:h,postStatus:g,postStatusHasChanged:_}=(0,d.useSelect)((e=>({hasPublishAction:!!e(vc).getCurrentPost()?._links?.["wp:action-publish"],isBeingScheduled:e(vc).isEditedPostBeingScheduled(),isPending:e(vc).isCurrentPostPending(),isPublished:e(vc).isCurrentPostPublished(),isPublishSidebarEnabled:e(vc).isPublishSidebarEnabled(),isPublishSidebarOpened:e(vc).isPublishSidebarOpened(),isScheduled:e(vc).isCurrentPostScheduled(),postStatus:e(vc).getEditedPostAttribute("status"),postStatusHasChanged:e(vc).getPostEdits()?.status})),[]);return s=l||_&&!["future","publish"].includes(g)||h&&i||a&&!r&&!n?f_:n||u?__:f_,(0,c.jsx)(Vp,{forceIsDirty:e,isOpen:p,isToggle:s===__,onToggle:o,setEntitiesSavedStatesCallback:t})}function y_(){const{hasLoaded:e,permalink:t,isPublished:s,label:n,showIconLabels:o}=(0,d.useSelect)((e=>{const t=e(vc).getCurrentPostType(),s=e(u.store).getPostType(t),{get:n}=e(C.store);return{permalink:e(vc).getPermalink(),isPublished:e(vc).isCurrentPostPublished(),label:s?.labels.view_item,hasLoaded:!!s,showIconLabels:n("core","showIconLabels")}}),[]);return s&&t&&e?(0,c.jsx)(Hn.Button,{icon:Fn,label:n||(0,fs.__)("View post"),href:t,target:"_blank",showTooltip:!o,size:"compact"}):null}var x_=(0,c.jsx)(L.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,c.jsx)(L.Path,{d:"M20.5 16h-.7V8c0-1.1-.9-2-2-2H6.2c-1.1 0-2 .9-2 2v8h-.7c-.8 0-1.5.7-1.5 1.5h20c0-.8-.7-1.5-1.5-1.5zM5.7 8c0-.3.2-.5.5-.5h11.6c.3 0 .5.2.5.5v7.6H5.7V8z"})}),v_=(0,c.jsx)(L.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,c.jsx)(L.Path,{d:"M15 4H9c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h6c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H9c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h6c.3 0 .5.2.5.5v12zm-4.5-.5h2V16h-2v1.5z"})}),w_=(0,c.jsx)(L.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,c.jsx)(L.Path,{d:"M17 4H7c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H7c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h10c.3 0 .5.2.5.5v12zm-7.5-.5h4V16h-4v1.5z"})});function S_({forceIsAutosaveable:e,disabled:t}){const{deviceType:s,homeUrl:n,isTemplate:o,isViewable:r,showIconLabels:i,isTemplateHidden:a,templateId:l}=(0,d.useSelect)((e=>{const{getDeviceType:t,getCurrentPostType:s,getCurrentTemplateId:n,getRenderingMode:o}=e(vc),{getEntityRecord:r,getPostType:i}=e(u.store),{get:a}=e(C.store),l=s();return{deviceType:t(),homeUrl:r("root","__unstableBase")?.home,isTemplate:"wp_template"===l,isViewable:i(l)?.viewable??!1,showIconLabels:a("core","showIconLabels"),isTemplateHidden:"post-only"===o(),templateId:n()}}),[]),{setDeviceType:p,setRenderingMode:h,setDefaultRenderingMode:_}=$((0,d.useDispatch)(vc)),{resetZoomLevel:f}=$((0,d.useDispatch)(g.store)),b=e=>{p(e),f()};if((0,m.useViewportMatch)("medium","<"))return null;const y={className:"editor-preview-dropdown__toggle",iconPosition:"right",size:"compact",showTooltip:!i,disabled:t,accessibleWhenDisabled:t},x={"aria-label":(0,fs.__)("View options")},v={desktop:x_,mobile:v_,tablet:w_},w=[{value:"Desktop",label:(0,fs.__)("Desktop"),icon:x_},{value:"Tablet",label:(0,fs.__)("Tablet"),icon:w_},{value:"Mobile",label:(0,fs.__)("Mobile"),icon:v_}];return(0,c.jsx)(Hn.DropdownMenu,{className:mr("editor-preview-dropdown",`editor-preview-dropdown--${s.toLowerCase()}`),popoverProps:{placement:"bottom-end"},toggleProps:y,menuProps:x,icon:v[s.toLowerCase()],label:(0,fs.__)("View"),disableOpenOnArrowDown:t,children:({onClose:t})=>(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(Hn.MenuGroup,{children:(0,c.jsx)(Hn.MenuItemsChoice,{choices:w,value:s,onSelect:b})}),o&&(0,c.jsx)(Hn.MenuGroup,{children:(0,c.jsxs)(Hn.MenuItem,{href:n,target:"_blank",icon:Fn,onClick:t,children:[(0,fs.__)("View site"),(0,c.jsx)(Hn.VisuallyHidden,{as:"span",children:(0,fs.__)("(opens in a new tab)")})]})}),!o&&!!l&&(0,c.jsx)(Hn.MenuGroup,{children:(0,c.jsx)(Hn.MenuItem,{icon:a?void 0:zn,isSelected:!a,role:"menuitemcheckbox",onClick:()=>{const e=a?"template-locked":"post-only";h(e),_(e),f()},children:(0,fs.__)("Show template")})}),r&&(0,c.jsx)(Hn.MenuGroup,{children:(0,c.jsx)(Mp,{className:"editor-preview-dropdown__button-external",role:"menuitem",forceIsAutosaveable:e,"aria-label":(0,fs.__)("Preview in new tab"),textContent:(0,c.jsxs)(c.Fragment,{children:[(0,fs.__)("Preview in new tab"),(0,c.jsx)(Hn.Icon,{icon:Fn})]}),onPreview:t})}),(0,c.jsx)(Na.Slot,{name:"core/plugin-preview-menu",fillProps:{onClick:t}})]})})}var k_=(0,c.jsx)(L.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,c.jsx)(L.Path,{fill:"none",d:"M5.75 12.75V18.25H11.25M12.75 5.75H18.25V11.25",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"square"})});var C_=({disabled:e})=>{const{isZoomOut:t,showIconLabels:s,isDistractionFree:n}=(0,d.useSelect)((e=>({isZoomOut:$(e(g.store)).isZoomOut(),showIconLabels:e(C.store).get("core","showIconLabels"),isDistractionFree:e(C.store).get("core","distractionFree")}))),{resetZoomLevel:o,setZoomLevel:r}=$((0,d.useDispatch)(g.store)),{registerShortcut:i,unregisterShortcut:a}=(0,d.useDispatch)(il.store);(0,p.useEffect)((()=>(i({name:"core/editor/zoom",category:"global",description:(0,fs.__)("Enter or exit zoom out."),keyCombination:{modifier:(0,ll.isAppleOS)()?"primaryShift":"secondary",character:"0"}}),()=>{a("core/editor/zoom")})),[i,a]),(0,il.useShortcut)("core/editor/zoom",(()=>{t?o():r("auto-scaled")}),{isDisabled:n});return(0,c.jsx)(Hn.Button,{accessibleWhenDisabled:!0,disabled:e,onClick:()=>{t?o():r("auto-scaled")},icon:k_,label:(0,fs.__)("Zoom Out"),isPressed:t,size:"compact",showTooltip:!s,className:"editor-zoom-out-toggle"})};const P_={distractionFreeDisabled:{y:"-50px"},distractionFreeHover:{y:0},distractionFreeHidden:{y:"-50px"},visible:{y:0},hidden:{y:0}},j_={distractionFreeDisabled:{x:"-100%"},distractionFreeHover:{x:0},distractionFreeHidden:{x:"-100%"},visible:{x:0},hidden:{x:0}};var E_=function({customSaveButton:e,forceIsDirty:t,forceDisableBlockTools:s,setEntitiesSavedStatesCallback:n,title:o}){const r=(0,m.useViewportMatch)("large"),i=(0,m.useViewportMatch)("medium"),a=(0,m.useMediaQuery)("(max-width: 403px)"),{postType:l,isTextEditor:u,isPublishSidebarOpened:h,showIconLabels:_,hasFixedToolbar:f,hasBlockSelection:b,hasSectionRootClientId:y}=(0,d.useSelect)((e=>{const{get:t}=e(C.store),{getEditorMode:s,getCurrentPostType:n,isPublishSidebarOpened:o}=e(vc),{getBlockSelectionStart:r,getSectionRootClientId:i}=$(e(g.store));return{postType:n(),isTextEditor:"text"===s(),isPublishSidebarOpened:o(),showIconLabels:t("core","showIconLabels"),hasFixedToolbar:t("core","fixedToolbar"),hasBlockSelection:!!r(),hasSectionRootClientId:!!i()}}),[]),x=["post","page","wp_template"].includes(l)&&y,v=[R,I,N].includes(l)||s,[w,S]=(0,p.useState)(!0),k=!a&&(!f||f&&(!b||w)),P=(()=>{const e=(0,Hn.__experimentalUseSlotFills)(Yg);return Boolean(e&&e.length)})();return(0,c.jsxs)("div",{className:"editor-header edit-post-header",children:[P&&(0,c.jsx)(Hn.__unstableMotion.div,{className:"editor-header__back-button",variants:j_,transition:{type:"tween"},children:(0,c.jsx)(Xg.Slot,{})}),(0,c.jsxs)(Hn.__unstableMotion.div,{variants:P_,className:"editor-header__toolbar",transition:{type:"tween"},children:[(0,c.jsx)(o_,{disableBlockTools:s||u}),f&&i&&(0,c.jsx)(s_,{isCollapsed:w,onToggle:S})]}),k&&(0,c.jsx)(Hn.__unstableMotion.div,{className:"editor-header__center",variants:P_,transition:{type:"tween"},children:(0,c.jsx)(Gc,{title:o})}),(0,c.jsxs)(Hn.__unstableMotion.div,{variants:P_,transition:{type:"tween"},className:"editor-header__settings",children:[!e&&!h&&(0,c.jsx)(nh,{forceIsDirty:t}),(0,c.jsx)(y_,{}),(0,c.jsx)(S_,{forceIsAutosaveable:t,disabled:v}),(0,c.jsx)(Mp,{className:"editor-header__post-preview-button",forceIsAutosaveable:t}),r&&x&&(0,c.jsx)(C_,{disabled:s}),(r||!_)&&(0,c.jsx)(Ma.Slot,{scope:"core"}),!e&&(0,c.jsx)(b_,{forceIsDirty:t,setEntitiesSavedStatesCallback:n}),e,(0,c.jsx)(g_,{})]})]})};const{PrivateInserterLibrary:T_}=$(g.privateApis);function B_(){const{blockSectionRootClientId:e,inserterSidebarToggleRef:t,inserter:s,showMostUsedBlocks:n,sidebarIsOpened:o}=(0,d.useSelect)((e=>{const{getInserterSidebarToggleRef:t,getInserter:s,isPublishSidebarOpened:n}=$(e(vc)),{getBlockRootClientId:o,isZoomOut:r,getSectionRootClientId:i}=$(e(g.store)),{get:a}=e(C.store),{getActiveComplementaryArea:l}=e(ja);return{inserterSidebarToggleRef:t(),inserter:s(),showMostUsedBlocks:a("core","mostUsedBlocks"),blockSectionRootClientId:(()=>{if(r()){const e=i();if(e)return e}return o()})(),sidebarIsOpened:!(!l("core")&&!n())}}),[]),{setIsInserterOpened:r}=(0,d.useDispatch)(vc),{disableComplementaryArea:i}=(0,d.useDispatch)(ja),a=(0,m.useViewportMatch)("medium","<"),l=(0,p.useRef)(),u=(0,p.useCallback)((()=>{r(!1),t.current?.focus()}),[t,r]),h=(0,p.useCallback)((e=>{e.keyCode!==ll.ESCAPE||e.defaultPrevented||(e.preventDefault(),u())}),[u]),_=(0,c.jsx)("div",{className:"editor-inserter-sidebar__content",children:(0,c.jsx)(T_,{showMostUsedBlocks:n,showInserterHelpPanel:!0,shouldFocusBlock:a,rootClientId:e,onSelect:s.onSelect,__experimentalInitialTab:s.tab,__experimentalInitialCategory:s.category,__experimentalFilterValue:s.filterValue,onPatternCategorySelection:o?()=>i("core"):void 0,ref:l,onClose:u})});return(0,c.jsx)("div",{onKeyDown:h,className:"editor-inserter-sidebar",children:_})}function I_(){return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("div",{className:"editor-list-view-sidebar__outline",children:[(0,c.jsxs)("div",{children:[(0,c.jsx)(Hn.__experimentalText,{children:(0,fs.__)("Characters:")}),(0,c.jsx)(Hn.__experimentalText,{children:(0,c.jsx)(Oh,{})})]}),(0,c.jsxs)("div",{children:[(0,c.jsx)(Hn.__experimentalText,{children:(0,fs.__)("Words:")}),(0,c.jsx)(Ah,{})]}),(0,c.jsxs)("div",{children:[(0,c.jsx)(Hn.__experimentalText,{children:(0,fs.__)("Time to read:")}),(0,c.jsx)(Lh,{})]})]}),(0,c.jsx)(ed,{})]})}const{TabbedSidebar:N_}=$(g.privateApis);function R_(){const{setIsListViewOpened:e}=(0,d.useDispatch)(vc),{getListViewToggleRef:t}=$((0,d.useSelect)(vc)),s=(0,m.useFocusOnMount)("firstElement"),n=(0,p.useCallback)((()=>{e(!1),t().current?.focus()}),[t,e]),o=(0,p.useCallback)((e=>{e.keyCode!==ll.ESCAPE||e.defaultPrevented||(e.preventDefault(),n())}),[n]),[r,i]=(0,p.useState)(null),[a,l]=(0,p.useState)("list-view"),u=(0,p.useRef)(),h=(0,p.useRef)(),_=(0,p.useRef)(),f=(0,m.useMergeRefs)([s,_,i]);const b=(0,p.useCallback)((()=>{u.current.contains(u.current.ownerDocument.activeElement)?n():function(e){const t=Uc.focus.tabbable.find(h.current)[0];if("list-view"===e){const e=Uc.focus.tabbable.find(_.current)[0];(u.current.contains(e)?e:t).focus()}else t.focus()}(a)}),[n,a]);return(0,il.useShortcut)("core/editor/toggle-list-view",b),(0,c.jsx)("div",{className:"editor-list-view-sidebar",onKeyDown:o,ref:u,children:(0,c.jsx)(N_,{tabs:[{name:"list-view",title:(0,fs._x)("List View","Post overview"),panel:(0,c.jsx)("div",{className:"editor-list-view-sidebar__list-view-container",children:(0,c.jsx)("div",{className:"editor-list-view-sidebar__list-view-panel-content",children:(0,c.jsx)(g.__experimentalListView,{dropZoneElement:r})})}),panelRef:f},{name:"outline",title:(0,fs._x)("Outline","Post overview"),panel:(0,c.jsx)("div",{className:"editor-list-view-sidebar__list-view-container",children:(0,c.jsx)(I_,{})})}],onClose:n,onSelect:e=>l(e),defaultTabId:"list-view",ref:h,closeButtonLabel:(0,fs.__)("Close")})})}const{Fill:D_,Slot:A_}=(0,Hn.createSlotFill)("ActionsPanel");function M_({setEntitiesSavedStatesCallback:e,closeEntitiesSavedStates:t,isEntitiesSavedStatesOpen:s,forceIsDirtyPublishPanel:n}){const{closePublishSidebar:o,togglePublishSidebar:r}=(0,d.useDispatch)(vc),{publishSidebarOpened:i,isPublishable:a,isDirty:l,hasOtherEntitiesChanges:u}=(0,d.useSelect)((e=>{const{isPublishSidebarOpened:t,isEditedPostPublishable:s,isCurrentPostPublished:n,isEditedPostDirty:o,hasNonPostEntityChanges:r}=e(vc),i=r();return{publishSidebarOpened:t(),isPublishable:!n()&&s(),isDirty:i||o(),hasOtherEntitiesChanges:i}}),[]),m=(0,p.useCallback)((()=>e(!0)),[]);let h;return h=i?(0,c.jsx)(Ym,{onClose:o,forceIsDirty:n,PrePublishExtension:Tu.Slot,PostPublishExtension:vu.Slot}):a&&!u?(0,c.jsx)("div",{className:"editor-layout__toggle-publish-panel",children:(0,c.jsx)(Hn.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:r,"aria-expanded":!1,children:(0,fs.__)("Open publish panel")})}):(0,c.jsx)("div",{className:"editor-layout__toggle-entities-saved-states-panel",children:(0,c.jsx)(Hn.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:m,"aria-expanded":!1,"aria-haspopup":"dialog",disabled:!l,accessibleWhenDisabled:!0,children:(0,fs.__)("Open save panel")})}),(0,c.jsxs)(c.Fragment,{children:[s&&(0,c.jsx)(yd,{close:t,renderDialog:!0}),(0,c.jsx)(A_,{bubblesVirtually:!0}),!s&&h]})}function L_({autoFocus:e=!1}){const{switchEditorMode:t}=(0,d.useDispatch)(vc),{shortcut:s,isRichEditingEnabled:n}=(0,d.useSelect)((e=>{const{getEditorSettings:t}=e(vc),{getShortcutRepresentation:s}=e(il.store);return{shortcut:s("core/editor/toggle-mode"),isRichEditingEnabled:t().richEditingEnabled}}),[]),o=(0,p.useRef)();return(0,p.useEffect)((()=>{e||o?.current?.focus()}),[e]),(0,c.jsxs)("div",{className:"editor-text-editor",children:[n&&(0,c.jsxs)("div",{className:"editor-text-editor__toolbar",children:[(0,c.jsx)("h2",{children:(0,fs.__)("Editing code")}),(0,c.jsx)(Hn.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:()=>t("visual"),shortcut:s,children:(0,fs.__)("Exit code editor")})]}),(0,c.jsxs)("div",{className:"editor-text-editor__body",children:[(0,c.jsx)(wh,{ref:o}),(0,c.jsx)(gh,{})]})]})}function O_({contentRef:e}){const{onNavigateToEntityRecord:t,templateId:s}=(0,d.useSelect)((e=>{const{getEditorSettings:t,getCurrentTemplateId:s}=e(vc);return{onNavigateToEntityRecord:t().onNavigateToEntityRecord,templateId:s()}}),[]),n=(0,d.useSelect)((e=>!!e(u.store).canUser("create",{kind:"postType",name:"wp_template"})),[]),[o,r]=(0,p.useState)(!1);return(0,p.useEffect)((()=>{const t=e=>{n&&e.target.classList.contains("is-root-container")&&"core/template-part"!==e.target.dataset?.type&&(e.defaultPrevented||(e.preventDefault(),r(!0)))},s=e.current;return s?.addEventListener("dblclick",t),()=>{s?.removeEventListener("dblclick",t)}}),[e,n]),n?(0,c.jsx)(Hn.__experimentalConfirmDialog,{isOpen:o,confirmButtonText:(0,fs.__)("Edit template"),onConfirm:()=>{r(!1),t({postId:s,postType:"wp_template"})},onCancel:()=>r(!1),size:"medium",children:(0,fs.__)("You’ve tried to select a block that is part of a template that may be used elsewhere on your site. Would you like to edit the template?")}):null}function F_({direction:e,resizeWidthBy:t}){const s=`resizable-editor__resize-help-${e}`;return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(Hn.Tooltip,{text:(0,fs.__)("Drag to resize"),children:(0,c.jsx)(Hn.__unstableMotion.button,{className:`editor-resizable-editor__resize-handle is-${e}`,"aria-label":(0,fs.__)("Drag to resize"),"aria-describedby":s,onKeyDown:function(s){const{keyCode:n}=s;n!==ll.LEFT&&n!==ll.RIGHT||(s.preventDefault(),"left"===e&&n===ll.LEFT||"right"===e&&n===ll.RIGHT?t(20):("left"===e&&n===ll.RIGHT||"right"===e&&n===ll.LEFT)&&t(-20))},variants:{active:{opacity:1,scaleY:1.3}},whileFocus:"active",whileHover:"active",whileTap:"active",role:"separator","aria-orientation":"vertical"},"handle")}),(0,c.jsx)(Hn.VisuallyHidden,{id:s,children:(0,fs.__)("Use left and right arrow keys to resize the canvas.")})]})}const V_={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 U_=function({className:e,enableResizing:t,height:s,children:n}){const[o,r]=(0,p.useState)("100%"),i=(0,p.useRef)(),a=(0,p.useCallback)((e=>{i.current&&r(i.current.offsetWidth+e)}),[]);return(0,c.jsx)(Hn.ResizableBox,{className:mr("editor-resizable-editor",e,{"is-resizable":t}),ref:e=>{i.current=e?.resizable},size:{width:t?o:"100%",height:t&&s?s:"100%"},onResizeStop:(e,t,s)=>{r(s.style.width)},minWidth:300,maxWidth:"100%",maxHeight:"100%",enable:{left:t,right:t},showHandle:t,resizeRatio:2,handleComponent:{left:(0,c.jsx)(F_,{direction:"left",resizeWidthBy:a}),right:(0,c.jsx)(F_,{direction:"right",resizeWidthBy:a})},handleClasses:void 0,handleStyles:{left:V_,right:V_},children:n})};function H_(e,t,s){return Math.min(Math.max(e,t),s)}function z_(e,t,s){const n=e-H_(e,s.left,s.right),o=t-H_(t,s.top,s.bottom);return Math.sqrt(n*n+o*o)}function G_({isEnabled:e=!0}={}){const{getEnabledClientIdsTree:t,getBlockName:s,getBlockOrder:n}=$((0,d.useSelect)(g.store)),{selectBlock:o}=(0,d.useDispatch)(g.store);return(0,m.useRefEffect)((r=>{if(!e)return;const i=e=>{(e.target===r||e.target.classList.contains("is-root-container"))&&((e,i)=>{const a=t().flatMap((({clientId:e})=>{const t=s(e);if("core/template-part"===t)return[];if("core/post-content"===t){const t=n(e);if(t.length)return t}return[e]}));let l=1/0,c=null;for(const t of a){const s=r.querySelector(`[data-block="${t}"]`);if(!s)continue;const n=z_(e,i,s.getBoundingClientRect());n<l&&n<500&&(l=n,c=t)}c&&o(c)})(e.clientX,e.clientY)};return r.addEventListener("click",i),()=>r.removeEventListener("click",i)}),[e])}function $_(){const{getSettings:e,isZoomOut:t}=$((0,d.useSelect)(g.store)),{resetZoomLevel:s}=$((0,d.useDispatch)(g.store));return(0,m.useRefEffect)((n=>{function o(n){if(t()&&!n.defaultPrevented){n.preventDefault();const{__experimentalSetIsInserterOpened:t}=e();"function"==typeof t&&t(!1),s()}}return n.addEventListener("dblclick",o),()=>{n.removeEventListener("dblclick",o)}}),[e,t,s])}const{LayoutStyle:W_,useLayoutClasses:Z_,useLayoutStyles:Y_,ExperimentalBlockCanvas:q_,useFlashEditableBlocks:K_}=$(g.privateApis),Q_=[N,B,R,I];function X_(e){for(let t=0;t<e.length;t++){if("core/post-content"===e[t].name)return e[t].attributes;if(e[t].innerBlocks.length){const s=X_(e[t].innerBlocks);if(s)return s}}}function J_(e){for(let t=0;t<e.length;t++)if("core/post-content"===e[t].name)return!0;return!1}var ef=function({autoFocus:e,styles:t,disableIframe:s=!1,iframeProps:n,contentRef:o,className:r}){const i=(0,m.useViewportMatch)("small","<"),{renderingMode:a,postContentAttributes:l,editedPostTemplate:h={},wrapperBlockName:_,wrapperUniqueId:f,deviceType:b,isFocusedEntity:y,isDesignPostType:v,postType:w,isPreview:S,canvasMinHeight:k}=(0,d.useSelect)((e=>{const{getCurrentPostId:t,getCurrentPostType:s,getCurrentTemplateId:n,getEditorSettings:o,getRenderingMode:r,getDeviceType:i,getCanvasMinHeight:a}=$(e(vc)),{getPostType:l,getEditedEntityRecord:c}=e(u.store),d=s(),p=r();let m;d===N?m="core/block":"post-only"===p&&(m="core/post-content");const h=o(),g=h.supportsTemplateMode,_=l(d),f=n(),b=f?c("postType",B,f):void 0;return{renderingMode:p,postContentAttributes:h.postContentAttributes,isDesignPostType:Q_.includes(d),editedPostTemplate:_?.viewable&&g?b:void 0,wrapperBlockName:m,wrapperUniqueId:t(),deviceType:i(),isFocusedEntity:!!h.onNavigateToPreviousEntityRecord,postType:d,isPreview:h.isPreviewMode,canvasMinHeight:a()}}),[]),{isCleanNewPost:C}=(0,d.useSelect)(vc),{hasRootPaddingAwareAlignments:P,themeHasDisabledLayoutStyles:j,themeSupportsLayout:E,isZoomedOut:T}=(0,d.useSelect)((e=>{const{getSettings:t,isZoomOut:s}=$(e(g.store)),n=t();return{themeHasDisabledLayoutStyles:n.disableLayoutStyles,themeSupportsLayout:n.supportsLayout,hasRootPaddingAwareAlignments:n.__experimentalFeatures?.useRootPaddingAwareAlignments,isZoomedOut:s()}}),[]),D=(0,p.useRef)(),A=(0,g.__experimentalUseResizeCanvas)(b),[M]=(0,g.useSettings)("layout"),L=(0,p.useMemo)((()=>"post-only"!==a||v?{type:"default"}:E?{...M,type:"constrained"}:{type:"default"}),[a,E,M,v]),O=(0,p.useMemo)((()=>{if(!h?.content&&!h?.blocks&&l)return l;if(h?.blocks)return X_(h?.blocks);const e="string"==typeof h?.content?h?.content:"";return X_((0,x.parse)(e))||{}}),[h?.content,h?.blocks,l]),F=(0,p.useMemo)((()=>{if(!h?.content&&!h?.blocks)return!1;if(h?.blocks)return J_(h?.blocks);const e="string"==typeof h?.content?h?.content:"";return J_((0,x.parse)(e))||!1}),[h?.content,h?.blocks]),{layout:V={},align:U=""}=O||{},H=Z_(O,"core/post-content"),z=mr({"is-layout-flow":!E},E&&H,U&&`align${U}`),G=Y_(O,"core/post-content",".block-editor-block-list__layout.is-root-container"),W=(0,p.useMemo)((()=>V&&("constrained"===V?.type||V?.inherit||V?.contentSize||V?.wideSize)?{...M,...V,type:"constrained"}:{...M,...V,type:"default"}),[V?.type,V?.inherit,V?.contentSize,V?.wideSize,M]),Z=l?W:L,Y="default"!==Z?.type||F?Z:L,q=(0,g.__unstableUseTypingObserver)(),K=(0,p.useRef)();(0,p.useEffect)((()=>{e&&C()&&K?.current?.focus()}),[e,C]);const Q=[R,I,N].includes(w)&&!S&&!i&&!T,X=(0,p.useMemo)((()=>{if(!D.current)return k;const{ownerDocument:e}=D.current,t=e.documentElement.scrollTop||e.body.scrollTop;return k+t}),[k]),J=(0,p.useMemo)((()=>[...t??[],{css:`:where(.block-editor-iframe__body){display:flow-root;${X?`min-height:${X}px;`:""}}.is-root-container{display:flow-root;${Q?"min-height:0!important;":""}}\n\t\t\t\t${Q?".block-editor-iframe__html{background:var(--wp-editor-canvas-background);display:flex;align-items:center;justify-content:center;min-height:100vh;}.block-editor-iframe__body{width:100%;}":""}`}]),[t,Q,X]),ee=(0,g.__unstableUseTypewriter)();return o=(0,m.useMergeRefs)([D,o,"post-only"===a?ee:null,K_({isEnabled:"template-locked"===a}),G_({isEnabled:"template-locked"===a}),$_()]),(0,c.jsx)("div",{className:mr("editor-visual-editor","edit-post-visual-editor",r,{"has-padding":y||Q,"is-resizable":Q,"is-iframed":!s}),children:(0,c.jsx)(U_,{enableResizing:Q,height:"100%",children:(0,c.jsxs)(q_,{shouldIframe:!s,contentRef:o,styles:J,height:"100%",iframeProps:{...n,style:{...n?.style,...A}},children:[E&&!j&&"post-only"===a&&!v&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(W_,{selector:".editor-visual-editor__post-title-wrapper",layout:L}),(0,c.jsx)(W_,{selector:".block-editor-block-list__layout.is-root-container",layout:Y}),U&&(0,c.jsx)(W_,{css:".is-root-container.alignwide { max-width: var(--wp--style--global--wide-size); margin-left: auto; margin-right: auto;}\n\t\t.is-root-container.alignwide:where(.is-layout-flow) > :not(.alignleft):not(.alignright) { max-width: var(--wp--style--global--wide-size);}\n\t\t.is-root-container.alignfull { max-width: none; margin-left: auto; margin-right: auto;}\n\t\t.is-root-container.alignfull:where(.is-layout-flow) > :not(.alignleft):not(.alignright) { max-width: none;}"}),G&&(0,c.jsx)(W_,{layout:W,css:G})]}),"post-only"===a&&!v&&(0,c.jsx)("div",{className:mr("editor-visual-editor__post-title-wrapper","edit-post-visual-editor__post-title-wrapper",{"has-global-padding":P}),contentEditable:!1,ref:q,style:{marginTop:"4rem"},children:(0,c.jsx)(vh,{ref:K})}),(0,c.jsxs)(g.RecursionProvider,{blockName:_,uniqueId:f,children:[(0,c.jsx)(g.BlockList,{className:mr("is-"+b.toLowerCase()+"-preview","post-only"!==a||v?"wp-site-blocks":`${z} wp-block-post-content`,{"has-global-padding":"post-only"===a&&!v&&P}),layout:Z,dropZoneElement:s?D.current:D.current?.parentNode,__unstableDisableDropZone:"template-locked"===a}),"template-locked"===a&&(0,c.jsx)(O_,{contentRef:D})]})]})})})};const tf={header:(0,fs.__)("Editor top bar"),body:(0,fs.__)("Editor content"),sidebar:(0,fs.__)("Editor settings"),actions:(0,fs.__)("Editor publish"),footer:(0,fs.__)("Editor footer")};function sf({className:e,styles:t,children:s,forceIsDirty:n,contentRef:o,disableIframe:r,autoFocus:i,customSaveButton:a,customSavePanel:l,forceDisableBlockTools:u,title:h,iframeProps:_}){const{mode:f,isInserterOpened:b,isListViewOpened:y,isDistractionFree:x,isPreviewMode:v,showBlockBreadcrumbs:w,documentLabel:S}=(0,d.useSelect)((e=>{const{get:t}=e(C.store),{getEditorSettings:s,getPostTypeLabel:n}=e(vc),o=s(),r=n();let i=e(vc).getEditorMode();return o.richEditingEnabled||"visual"!==i||(i="text"),o.codeEditingEnabled||"text"!==i||(i="visual"),{mode:i,isInserterOpened:e(vc).isInserterOpened(),isListViewOpened:e(vc).isListViewOpened(),isDistractionFree:t("core","distractionFree"),isPreviewMode:o.isPreviewMode,showBlockBreadcrumbs:t("core","showBlockBreadcrumbs"),documentLabel:r||(0,fs._x)("Document","noun, breadcrumb")}}),[]),k=(0,m.useViewportMatch)("medium"),P=y?(0,fs.__)("Document Overview"):(0,fs.__)("Block Library"),[j,E]=(0,p.useState)(!1),T=(0,p.useCallback)((e=>{"function"==typeof j&&j(e),E(!1)}),[j]);return(0,c.jsx)(Wa,{isDistractionFree:x,className:mr("editor-editor-interface",e,{"is-entity-save-view-open":!!j,"is-distraction-free":x&&!v}),labels:{...tf,secondarySidebar:P},header:!v&&(0,c.jsx)(E_,{forceIsDirty:n,setEntitiesSavedStatesCallback:E,customSaveButton:a,forceDisableBlockTools:u,title:h}),editorNotices:(0,c.jsx)(ld,{}),secondarySidebar:!v&&"visual"===f&&(b&&(0,c.jsx)(B_,{})||y&&(0,c.jsx)(R_,{})),sidebar:!v&&!x&&(0,c.jsx)(Va.Slot,{scope:"core"}),content:(0,c.jsxs)(c.Fragment,{children:[!x&&!v&&(0,c.jsx)(ld,{}),(0,c.jsx)(Zg.Slot,{children:([e])=>e||(0,c.jsxs)(c.Fragment,{children:[!v&&"text"===f&&(0,c.jsx)(L_,{autoFocus:i}),!v&&!k&&"visual"===f&&(0,c.jsx)(g.BlockToolbar,{hideDragHandle:!0}),(v||"visual"===f)&&(0,c.jsx)(ef,{styles:t,contentRef:o,disableIframe:r,autoFocus:i,iframeProps:_}),s]})})]}),footer:!v&&!x&&k&&w&&"visual"===f&&(0,c.jsx)(g.BlockBreadcrumb,{rootLabelText:S}),actions:v?void 0:l||(0,c.jsx)(M_,{closeEntitiesSavedStates:T,isEntitiesSavedStatesOpen:j,setEntitiesSavedStatesCallback:E,forceIsDirtyPublishPanel:n})})}const{OverridesPanel:nf}=$(ao.privateApis);function of(){return(0,d.useSelect)((e=>"wp_block"===e(vc).getCurrentPostType()),[])?(0,c.jsx)(nf,{}):null}function rf(e){return"string"==typeof e.title?(0,Ln.decodeEntities)(e.title):e.title&&"rendered"in e.title?(0,Ln.decodeEntities)(e.title.rendered):e.title&&"raw"in e.title?(0,Ln.decodeEntities)(e.title.raw):""}const af=({items:e,closeModal:t})=>{const[s]=e,n=rf(s),{showOnFront:o,currentHomePage:r,isSaving:i}=(0,d.useSelect)((e=>{const{getEntityRecord:t,isSavingEntityRecord:s}=e(u.store),n=t("root","site"),o=t("postType","page",n?.page_on_front);return{showOnFront:n?.show_on_front,currentHomePage:o,isSaving:s("root","site")}})),{saveEntityRecord:a}=(0,d.useDispatch)(u.store),{createSuccessNotice:l,createErrorNotice:p}=(0,d.useDispatch)(_s.store);let m="";"posts"===o?m=(0,fs.__)("This will replace the current homepage which is set to display latest posts."):r&&(m=(0,fs.sprintf)((0,fs.__)('This will replace the current homepage: "%s"'),rf(r)));const h=(0,fs.sprintf)((0,fs.__)('Set "%1$s" as the site homepage? %2$s'),n,m).trim(),g=(0,fs.__)("Set homepage");return(0,c.jsx)("form",{onSubmit:async function(e){e.preventDefault();try{await a("root","site",{page_on_front:s.id,show_on_front:"page"}),l((0,fs.__)("Homepage updated."),{type:"snackbar"})}catch(e){const t=e.message&&"unknown_error"!==e.code?e.message:(0,fs.__)("An error occurred while setting the homepage.");p(t,{type:"snackbar"})}finally{t?.()}},children:(0,c.jsxs)(Hn.__experimentalVStack,{spacing:"5",children:[(0,c.jsx)(Hn.__experimentalText,{children:h}),(0,c.jsxs)(Hn.__experimentalHStack,{justify:"right",children:[(0,c.jsx)(Hn.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:()=>{t?.()},disabled:i,accessibleWhenDisabled:!0,children:(0,fs.__)("Cancel")}),(0,c.jsx)(Hn.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",disabled:i,accessibleWhenDisabled:!0,children:g})]})]})})},lf=({items:e,closeModal:t})=>{const[s]=e,n=rf(s),{currentPostsPage:o,isPageForPostsSet:r,isSaving:i}=(0,d.useSelect)((e=>{const{getEntityRecord:t,isSavingEntityRecord:s}=e(u.store),n=t("root","site");return{currentPostsPage:t("postType","page",n?.page_for_posts),isPageForPostsSet:0!==n?.page_for_posts,isSaving:s("root","site")}})),{saveEntityRecord:a}=(0,d.useDispatch)(u.store),{createSuccessNotice:l,createErrorNotice:p}=(0,d.useDispatch)(_s.store);const m=r&&o?(0,fs.sprintf)((0,fs.__)('This will replace the current posts page: "%s"'),rf(o)):(0,fs.__)("This page will show the latest posts."),h=(0,fs.sprintf)((0,fs.__)('Set "%1$s" as the posts page? %2$s'),n,m),g=(0,fs.__)("Set posts page");return(0,c.jsx)("form",{onSubmit:async function(e){e.preventDefault();try{await a("root","site",{page_for_posts:s.id,show_on_front:"page"}),l((0,fs.__)("Posts page updated."),{type:"snackbar"})}catch(e){const t=e.message&&"unknown_error"!==e.code?e.message:(0,fs.__)("An error occurred while setting the posts page.");p(t,{type:"snackbar"})}finally{t?.()}},children:(0,c.jsxs)(Hn.__experimentalVStack,{spacing:"5",children:[(0,c.jsx)(Hn.__experimentalText,{children:h}),(0,c.jsxs)(Hn.__experimentalHStack,{justify:"right",children:[(0,c.jsx)(Hn.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:()=>{t?.()},disabled:i,accessibleWhenDisabled:!0,children:(0,fs.__)("Cancel")}),(0,c.jsx)(Hn.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",disabled:i,accessibleWhenDisabled:!0,children:g})]})]})})};function cf({postType:e,onActionPerformed:t,context:s}){const{defaultActions:n}=(0,d.useSelect)((t=>{const{getEntityActions:s}=$(t(vc));return{defaultActions:s("postType",e)}}),[e]),o=(0,d.useSelect)((t=>{if("page"!==e)return!1;const{getDefaultTemplateId:s,getEntityRecord:n,canUser:o}=t(u.store);if(!o("update",{kind:"root",name:"site"}))return!1;const r=s({slug:"front-page"});if(!r)return!0;const i=n("postType","wp_template",r);return!i||"front-page"!==i.slug}),[e]),r=(()=>{const{pageOnFront:e,pageForPosts:t}=(0,d.useSelect)((e=>{const{getEntityRecord:t,canUser:s}=e(u.store),n=s("read",{kind:"root",name:"site"})?t("root","site"):void 0;return{pageOnFront:n?.page_on_front,pageForPosts:n?.page_for_posts}}));return(0,p.useMemo)((()=>({id:"set-as-homepage",label:(0,fs.__)("Set as homepage"),isEligible:s=>"publish"===s.status&&"page"===s.type&&e!==s.id&&t!==s.id,modalFocusOnMount:"firstContentElement",RenderModal:af})),[t,e])})(),i=(()=>{const{pageOnFront:e,pageForPosts:t}=(0,d.useSelect)((e=>{const{getEntityRecord:t,canUser:s}=e(u.store),n=s("read",{kind:"root",name:"site"})?t("root","site"):void 0;return{pageOnFront:n?.page_on_front,pageForPosts:n?.page_for_posts}}));return(0,p.useMemo)((()=>({id:"set-as-posts-page",label:(0,fs.__)("Set as posts page"),isEligible:s=>"publish"===s.status&&"page"===s.type&&e!==s.id&&t!==s.id,modalFocusOnMount:"firstContentElement",RenderModal:lf})),[t,e])})(),{registerPostTypeSchema:a}=$((0,d.useDispatch)(vc));return(0,p.useEffect)((()=>{a(e)}),[a,e]),(0,p.useMemo)((()=>{let e=[...n];if(o&&e.push(r,i),e=e.sort(((e,t)=>"move-to-trash"===t.id?-1:0)),e=e.filter((e=>!e.context||e.context===s)),t)for(let s=0;s<e.length;++s){if(e[s].callback){const n=e[s].callback;e[s]={...e[s],callback:(o,r)=>{n(o,{...r,onActionPerformed:n=>{r?.onActionPerformed&&r.onActionPerformed(n),t(e[s].id,n)}})}}}if(e[s].RenderModal){const n=e[s].RenderModal;e[s]={...e[s],RenderModal:o=>(0,c.jsx)(n,{...o,onActionPerformed:n=>{o.onActionPerformed&&o.onActionPerformed(n),t(e[s].id,n)}})}}}return e}),[s,n,t,r,i,o])}const{Menu:df,kebabCase:uf}=$(Hn.privateApis);function pf({postType:e,postId:t,onActionPerformed:s}){const[n,o]=(0,p.useState)(null),{item:r,permissions:i}=(0,d.useSelect)((s=>{const{getEditedEntityRecord:n,getEntityRecordPermissions:o}=$(s(u.store));return{item:n("postType",e,t),permissions:o("postType",e,t)}}),[t,e]),a=(0,p.useMemo)((()=>({...r,permissions:i})),[r,i]),l=cf({postType:e,onActionPerformed:s}),m=(0,p.useMemo)((()=>l.filter((e=>!e.isEligible||e.isEligible(a)))),[l,a]);return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)(df,{placement:"bottom-end",children:[(0,c.jsx)(df.TriggerButton,{render:(0,c.jsx)(Hn.Button,{size:"small",icon:r_,label:(0,fs.__)("Actions"),disabled:!m.length,accessibleWhenDisabled:!0,className:"editor-all-actions-button"})}),(0,c.jsx)(df.Popover,{children:(0,c.jsx)(gf,{actions:m,items:[a],setActiveModalAction:o})})]}),!!n&&(0,c.jsx)(hf,{action:n,items:[a],closeModal:()=>o(null)})]})}function mf({action:e,onClick:t,items:s}){const n="string"==typeof e.label?e.label:e.label(s);return(0,c.jsx)(df.Item,{onClick:t,children:(0,c.jsx)(df.ItemLabel,{children:n})})}function hf({action:e,items:t,closeModal:s}){const n="string"==typeof e.label?e.label:e.label(t);return(0,c.jsx)(Hn.Modal,{title:e.modalHeader||n,__experimentalHideHeader:!!e.hideModalHeader,onRequestClose:s??(()=>{}),focusOnMount:"firstContentElement",size:"medium",overlayClassName:`editor-action-modal editor-action-modal__${uf(e.id)}`,children:(0,c.jsx)(e.RenderModal,{items:t,closeModal:s})})}function gf({actions:e,items:t,setActiveModalAction:s}){const n=(0,d.useRegistry)();return(0,c.jsx)(df.Group,{children:e.map((e=>(0,c.jsx)(mf,{action:e,onClick:()=>{"RenderModal"in e?s(e):e.callback(t,{registry:n})},items:t},e.id)))})}const{Badge:_f}=$(Hn.privateApis);function ff({postType:e,postId:t,onActionPerformed:s}){const n=(0,p.useMemo)((()=>Array.isArray(t)?t:[t]),[t]),{postTitle:o,icon:r,labels:i}=(0,d.useSelect)((t=>{const{getEditedEntityRecord:s,getCurrentTheme:o,getPostType:r}=t(u.store),{getPostIcon:i}=$(t(vc));let a="";const l=s("postType",e,n[0]);if(1===n.length){const{default_template_types:t=[]}=o()??{},s=[B,I].includes(e)?Y({template:l,templateTypes:t}):{};a=s?.title||l?.title}return{postTitle:a,icon:i(e,{area:l?.area}),labels:r(e)?.labels}}),[n,e]),a=Hc(t);let l=(0,fs.__)("No title");return i?.name&&n.length>1?l=(0,fs.sprintf)((0,fs.__)("%1$d %2$s"),n.length,i?.name):o&&(l=(0,Uc.__unstableStripHTML)(o)),(0,c.jsxs)(Hn.__experimentalVStack,{spacing:1,className:"editor-post-card-panel",children:[(0,c.jsxs)(Hn.__experimentalHStack,{spacing:2,className:"editor-post-card-panel__header",align:"flex-start",children:[(0,c.jsx)(Hn.Icon,{className:"editor-post-card-panel__icon",icon:r}),(0,c.jsxs)(Hn.__experimentalText,{numberOfLines:2,truncate:!0,className:"editor-post-card-panel__title",as:"h2",children:[(0,c.jsx)("span",{className:"editor-post-card-panel__title-name",children:l}),a&&1===n.length&&(0,c.jsx)(_f,{children:a})]}),1===n.length&&(0,c.jsx)(pf,{postType:e,postId:n[0],onActionPerformed:s})]}),n.length>1&&(0,c.jsx)(Hn.__experimentalText,{className:"editor-post-card-panel__description",children:(0,fs.sprintf)((0,fs.__)("Changes will be applied to all selected %s."),i?.name.toLowerCase())})]})}function bf(){const{postContent:e}=(0,d.useSelect)((e=>{const{getEditedPostAttribute:t,getCurrentPostType:s,getCurrentPostId:n}=e(vc),{canUser:o}=e(u.store),{getEntityRecord:r}=e(u.store),i=o("read",{kind:"root",name:"site"})?r("root","site"):void 0,a=s();return{postContent:!(+n()===i?.page_for_posts)&&![B,I].includes(a)&&t("content")}}),[]),t=(0,fs._x)("words","Word count type. Do not translate!"),s=(0,p.useMemo)((()=>e?(0,Dh.count)(e,t):0),[e,t]);if(!s)return null;const n=Math.round(s/189),o=(0,fs.sprintf)((0,fs._n)("%s word","%s words",s),s.toLocaleString()),r=n<=1?(0,fs.__)("1 minute"):(0,fs.sprintf)((0,fs._n)("%s minute","%s minutes",n),n.toLocaleString());return(0,c.jsx)("div",{className:"editor-post-content-information",children:(0,c.jsx)(Hn.__experimentalText,{children:(0,fs.sprintf)((0,fs.__)("%1$s, %2$s read time."),o,r)})})}var yf=function(){const{postFormat:e}=(0,d.useSelect)((e=>{const{getEditedPostAttribute:t}=e(vc);return{postFormat:t("format")??"standard"}}),[]),t=Pp.find((t=>t.id===e)),[s,n]=(0,p.useState)(null),o=(0,p.useMemo)((()=>({anchor:s,placement:"left-start",offset:36,shift:!0})),[s]);return(0,c.jsx)(Cp,{children:(0,c.jsx)(Rd,{label:(0,fs.__)("Format"),ref:n,children:(0,c.jsx)(Hn.Dropdown,{popoverProps:o,contentClassName:"editor-post-format__dialog",focusOnMount:!0,renderToggle:({isOpen:e,onToggle:s})=>(0,c.jsx)(Hn.Button,{size:"compact",variant:"tertiary","aria-expanded":e,"aria-label":(0,fs.sprintf)((0,fs.__)("Change format: %s"),t?.caption),onClick:s,children:t?.caption}),renderContent:({onClose:e})=>(0,c.jsxs)("div",{className:"editor-post-format__dialog-content",children:[(0,c.jsx)(g.__experimentalInspectorPopoverHeader,{title:(0,fs.__)("Format"),onClose:e}),(0,c.jsx)(jp,{})]})})})})};function xf(){const e=(0,d.useSelect)((e=>e(vc).getEditedPostAttribute("modified")),[]),t=e&&(0,fs.sprintf)((0,fs.__)("Last edited %s."),(0,v.humanTimeDiff)(e));return t?(0,c.jsx)("div",{className:"editor-post-last-edited-panel",children:(0,c.jsx)(Hn.__experimentalText,{children:t})}):null}var vf=function({className:e,children:t}){return(0,c.jsx)(Hn.__experimentalVStack,{className:mr("editor-post-panel__section",e),children:t})};const wf={};function Sf(){const{editEntityRecord:e}=(0,d.useDispatch)(u.store),{postsPageTitle:t,postsPageId:s,isTemplate:n,postSlug:o}=(0,d.useSelect)((e=>{const{getEntityRecord:t,getEditedEntityRecord:s,canUser:n}=e(u.store),o=n("read",{kind:"root",name:"site"})?t("root","site"):void 0,r=o?.page_for_posts?s("postType","page",o?.page_for_posts):wf,{getEditedPostAttribute:i,getCurrentPostType:a}=e(vc);return{postsPageId:r?.id,postsPageTitle:r?.title,isTemplate:a()===B,postSlug:i("slug")}}),[]),[r,i]=(0,p.useState)(null),a=(0,p.useMemo)((()=>({anchor:r,placement:"left-start",offset:36,shift:!0})),[r]);if(!n||!["home","index"].includes(o)||!s)return null;const l=t=>{e("postType","page",s,{title:t})},h=(0,Ln.decodeEntities)(t);return(0,c.jsx)(Rd,{label:(0,fs.__)("Blog title"),ref:i,children:(0,c.jsx)(Hn.Dropdown,{popoverProps:a,contentClassName:"editor-blog-title-dropdown__content",focusOnMount:!0,renderToggle:({isOpen:e,onToggle:t})=>(0,c.jsx)(Hn.Button,{size:"compact",variant:"tertiary","aria-expanded":e,"aria-label":(0,fs.sprintf)((0,fs.__)("Change blog title: %s"),h),onClick:t,children:h}),renderContent:({onClose:e})=>(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(g.__experimentalInspectorPopoverHeader,{title:(0,fs.__)("Blog title"),onClose:e}),(0,c.jsx)(Hn.__experimentalInputControl,{placeholder:(0,fs.__)("No title"),size:"__unstable-large",value:t,onChange:(0,m.debounce)(l,300),label:(0,fs.__)("Blog title"),help:(0,fs.__)("Set the Posts Page title. Appears in search results, and when the page is shared on social media."),hideLabelFromVision:!0})]})})})}function kf(){const{editEntityRecord:e}=(0,d.useDispatch)(u.store),{postsPerPage:t,isTemplate:s,postSlug:n}=(0,d.useSelect)((e=>{const{getEditedPostAttribute:t,getCurrentPostType:s}=e(vc),{getEditedEntityRecord:n,canUser:o}=e(u.store),r=o("read",{kind:"root",name:"site"})?n("root","site"):void 0;return{isTemplate:s()===B,postSlug:t("slug"),postsPerPage:r?.posts_per_page||1}}),[]),[o,r]=(0,p.useState)(null),i=(0,p.useMemo)((()=>({anchor:o,placement:"left-start",offset:36,shift:!0})),[o]);if(!s||!["home","index"].includes(n))return null;const a=t=>{e("root","site",void 0,{posts_per_page:t})};return(0,c.jsx)(Rd,{label:(0,fs.__)("Posts per page"),ref:r,children:(0,c.jsx)(Hn.Dropdown,{popoverProps:i,contentClassName:"editor-posts-per-page-dropdown__content",focusOnMount:!0,renderToggle:({isOpen:e,onToggle:s})=>(0,c.jsx)(Hn.Button,{size:"compact",variant:"tertiary","aria-expanded":e,"aria-label":(0,fs.__)("Change posts per page"),onClick:s,children:t}),renderContent:({onClose:e})=>(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(g.__experimentalInspectorPopoverHeader,{title:(0,fs.__)("Posts per page"),onClose:e}),(0,c.jsx)(Hn.__experimentalNumberControl,{placeholder:0,value:t,size:"__unstable-large",spinControls:"custom",step:"1",min:"1",onChange:a,label:(0,fs.__)("Posts per page"),help:(0,fs.__)("Set the default number of posts to display on blog pages, including categories and tags. Some templates may override this setting."),hideLabelFromVision:!0})]})})})}const Cf=[{label:(0,fs._x)("Open",'Adjective: e.g. "Comments are open"'),value:"open",description:(0,fs.__)("Visitors can add new comments and replies.")},{label:(0,fs.__)("Closed"),value:"",description:[(0,fs.__)("Visitors cannot add new comments or replies."),(0,fs.__)("Existing comments remain visible.")].join(" ")}];function Pf(){const{editEntityRecord:e}=(0,d.useDispatch)(u.store),{allowCommentsOnNewPosts:t,isTemplate:s,postSlug:n}=(0,d.useSelect)((e=>{const{getEditedPostAttribute:t,getCurrentPostType:s}=e(vc),{getEditedEntityRecord:n,canUser:o}=e(u.store),r=o("read",{kind:"root",name:"site"})?n("root","site"):void 0;return{isTemplate:s()===B,postSlug:t("slug"),allowCommentsOnNewPosts:r?.default_comment_status||""}}),[]),[o,r]=(0,p.useState)(null),i=(0,p.useMemo)((()=>({anchor:o,placement:"left-start",offset:36,shift:!0})),[o]);if(!s||!["home","index"].includes(n))return null;const a=t=>{e("root","site",void 0,{default_comment_status:t?"open":null})};return(0,c.jsx)(Rd,{label:(0,fs.__)("Discussion"),ref:r,children:(0,c.jsx)(Hn.Dropdown,{popoverProps:i,contentClassName:"editor-site-discussion-dropdown__content",focusOnMount:!0,renderToggle:({isOpen:e,onToggle:s})=>(0,c.jsx)(Hn.Button,{size:"compact",variant:"tertiary","aria-expanded":e,"aria-label":(0,fs.__)("Change discussion settings"),onClick:s,children:t?(0,fs.__)("Comments open"):(0,fs.__)("Comments closed")}),renderContent:({onClose:e})=>(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(g.__experimentalInspectorPopoverHeader,{title:(0,fs.__)("Discussion"),onClose:e}),(0,c.jsxs)(Hn.__experimentalVStack,{spacing:3,children:[(0,c.jsx)(Hn.__experimentalText,{children:(0,fs.__)("Changes will apply to new posts only. Individual posts may override these settings.")}),(0,c.jsx)(Hn.RadioControl,{className:"editor-site-discussion__options",hideLabelFromVision:!0,label:(0,fs.__)("Comment status"),options:Cf,onChange:a,selected:t})]})]})})})}function jf({onActionPerformed:e}){const{isRemovedPostStatusPanel:t,postType:s,postId:n}=(0,d.useSelect)((e=>{const{isEditorPanelRemoved:t,getCurrentPostType:s,getCurrentPostId:n}=e(vc);return{isRemovedPostStatusPanel:t("post-status"),postType:s(),postId:n()}}),[]);return(0,c.jsx)(vf,{className:"editor-post-summary",children:(0,c.jsx)(Cu.Slot,{children:o=>(0,c.jsx)(c.Fragment,{children:(0,c.jsxs)(Hn.__experimentalVStack,{spacing:4,children:[(0,c.jsx)(ff,{postType:s,postId:n,onActionPerformed:e}),(0,c.jsx)(kp,{withPanelBody:!1}),(0,c.jsx)(pp,{}),(0,c.jsxs)(Hn.__experimentalVStack,{spacing:1,children:[(0,c.jsx)(bf,{}),(0,c.jsx)(xf,{})]}),!t&&(0,c.jsxs)(Hn.__experimentalVStack,{spacing:4,children:[(0,c.jsxs)(Hn.__experimentalVStack,{spacing:1,children:[(0,c.jsx)(sh,{}),(0,c.jsx)(ih,{}),(0,c.jsx)(Th,{}),(0,c.jsx)(qu,{}),(0,c.jsx)(Vu,{}),(0,c.jsx)(sp,{}),(0,c.jsx)(Bp,{}),(0,c.jsx)(Wd,{}),(0,c.jsx)(lh,{}),(0,c.jsx)(Sf,{}),(0,c.jsx)(kf,{}),(0,c.jsx)(Pf,{}),(0,c.jsx)(yf,{}),o]}),(0,c.jsx)(kh,{onActionPerformed:e})]})]})})})})}const{EXCLUDED_PATTERN_SOURCES:Ef,PATTERN_TYPES:Tf}=$(ao.privateApis);function Bf(e,t){return e.innerBlocks=e.innerBlocks.map((e=>Bf(e,t))),"core/template-part"===e.name&&void 0===e.attributes.theme&&(e.attributes.theme=t),e}function If(e,t){return e.filter(((e,s,n)=>((e,t,s)=>t===s.findIndex((t=>e.name===t.name)))(e,s,n)&&(e=>!Ef.includes(e.source))(e)&&(e=>e.templateTypes?.includes(t.slug)||e.blockTypes?.includes("core/template-part/"+t.area))(e)))}function Nf(e,t){return e.map((e=>({...e,keywords:e.keywords||[],type:Tf.theme,blocks:(0,x.parse)(e.content,{__unstableSkipMigrationLogs:!0}).map((e=>Bf(e,t)))})))}function Rf({availableTemplates:e,onSelect:t}){return e&&0!==e?.length?(0,c.jsx)(g.__experimentalBlockPatternsList,{label:(0,fs.__)("Templates"),blockPatterns:e,onClickPattern:t,showTitlesAsTooltip:!0}):null}function Df(){const{area:e,name:t,slug:s,postType:n,postId:o}=(0,d.useSelect)((e=>{const{getCurrentPostType:t,getCurrentPostId:s}=e(vc),{getEditedEntityRecord:n}=e(u.store),o=t(),r=s(),i=n("postType",o,r);return{area:i?.area,name:i?.name,slug:i?.slug,postType:o,postId:r}}),[]),{editEntityRecord:r}=(0,d.useDispatch)(u.store),i=function({area:e,name:t,slug:s}){const{blockPatterns:n,restBlockPatterns:o,currentThemeStylesheet:r}=(0,d.useSelect)((e=>{const{getEditorSettings:t}=e(vc),s=t();return{blockPatterns:s.__experimentalAdditionalBlockPatterns??s.__experimentalBlockPatterns,restBlockPatterns:e(u.store).getBlockPatterns(),currentThemeStylesheet:e(u.store).getCurrentTheme().stylesheet}}),[]);return(0,p.useMemo)((()=>Nf(If([...n||[],...o||[]],{area:e,name:t,slug:s}),r)),[e,t,s,n,o,r])}({area:e,name:t,slug:s});return i?.length?(0,c.jsx)(Hn.PanelBody,{title:(0,fs.__)("Design"),initialOpen:n===I,children:(0,c.jsx)(Rf,{availableTemplates:i,onSelect:async e=>{await r("postType",n,o,{blocks:e.blocks,content:(0,x.serialize)(e.blocks)})}})}):null}function Af(){const{postType:e}=(0,d.useSelect)((e=>{const{getCurrentPostType:t}=e(vc);return{postType:t()}}),[]);return[I,B].includes(e)?(0,c.jsx)(Df,{}):null}const Mf={document:"edit-post/document",block:"edit-post/block"},{Tabs:Lf}=$(Hn.privateApis);var Of=(0,p.forwardRef)(((e,t)=>{const{documentLabel:s}=(0,d.useSelect)((e=>{const{getPostTypeLabel:t}=e(vc);return{documentLabel:t()||(0,fs._x)("Document","noun, panel")}}),[]);return(0,c.jsxs)(Lf.TabList,{ref:t,children:[(0,c.jsx)(Lf.Tab,{tabId:Mf.document,"data-tab-id":Mf.document,children:s}),(0,c.jsx)(Lf.Tab,{tabId:Mf.block,"data-tab-id":Mf.block,children:(0,fs.__)("Block")})]})}));const{BlockQuickNavigation:Ff}=$(g.privateApis),Vf=["core/post-title","core/post-featured-image","core/post-content"];function Uf(){const e=(0,p.useMemo)((()=>(0,h.applyFilters)("editor.postContentBlockTypes",Vf)),[]),{clientIds:t,postType:s,renderingMode:n}=(0,d.useSelect)((t=>{const{getCurrentPostType:s,getPostBlocksByName:n,getRenderingMode:o}=$(t(vc)),r=s();return{postType:r,clientIds:n(B===r?"core/template-part":e),renderingMode:o()}}),[e]),{enableComplementaryArea:o}=(0,d.useDispatch)(ja);return"post-only"===n&&s!==B||0===t.length?null:(0,c.jsx)(Hn.PanelBody,{title:(0,fs.__)("Content"),children:(0,c.jsx)(Ff,{clientIds:t,onSelect:()=>{o("core","edit-post/document")}})})}const{BlockQuickNavigation:Hf}=$(g.privateApis);function zf(){const e=(0,d.useSelect)((e=>{const{getBlockTypes:t}=e(x.store);return t()}),[]),t=(0,p.useMemo)((()=>e.filter((e=>"theme"===e.category)).map((({name:e})=>e))),[e]),s=(0,d.useSelect)((e=>{const{getBlocksByName:s}=e(g.store);return s(t)}),[t]);return 0===s.length?null:(0,c.jsx)(Hn.PanelBody,{title:(0,fs.__)("Content"),children:(0,c.jsx)(Hf,{clientIds:s})})}function Gf(){const e=(0,d.useSelect)((e=>{const{getCurrentPostType:t}=e(vc);return t()}),[]);return e!==I?null:(0,c.jsx)(zf,{})}var $f=function(){const{hasBlockSelection:e}=(0,d.useSelect)((e=>({hasBlockSelection:!!e(g.store).getBlockSelectionStart()})),[]),{getActiveComplementaryArea:t}=(0,d.useSelect)(ja),{enableComplementaryArea:s}=(0,d.useDispatch)(ja),{get:n}=(0,d.useSelect)(C.store);(0,p.useEffect)((()=>{const o=t("core"),r=["edit-post/document","edit-post/block"].includes(o),i=n("core","distractionFree");r&&!i&&s("core",e?"edit-post/block":"edit-post/document")}),[e,t,s,n])};const{Tabs:Wf}=$(Hn.privateApis),Zf=p.Platform.select({web:!0,native:!1}),Yf=({tabName:e,keyboardShortcut:t,onActionPerformed:s,extraPanels:n})=>{const o=(0,p.useRef)(null),r=(0,p.useContext)(Wf.Context);return(0,p.useEffect)((()=>{const t=Array.from(o.current?.querySelectorAll('[role="tab"]')||[]),s=t.find((t=>t.getAttribute("data-tab-id")===e)),n=s?.ownerDocument.activeElement;t.some((e=>n&&n.id===e.id))&&s&&s.id!==n?.id&&s?.focus()}),[e]),(0,c.jsx)(Iu,{identifier:e,header:(0,c.jsx)(Wf.Context.Provider,{value:r,children:(0,c.jsx)(Of,{ref:o})}),closeLabel:(0,fs.__)("Close Settings"),className:"editor-sidebar__panel",headerClassName:"editor-sidebar__panel-tabs",title:(0,fs._x)("Settings","panel button label"),toggleShortcut:t,icon:(0,fs.isRTL)()?Yi:qi,isActiveByDefault:Zf,children:(0,c.jsxs)(Wf.Context.Provider,{value:r,children:[(0,c.jsxs)(Wf.TabPanel,{tabId:Mf.document,focusable:!1,children:[(0,c.jsx)(jf,{onActionPerformed:s}),(0,c.jsx)(gu.Slot,{}),(0,c.jsx)(Uf,{}),(0,c.jsx)(Gf,{}),(0,c.jsx)(Af,{}),(0,c.jsx)(mh,{}),(0,c.jsx)(of,{}),n]}),(0,c.jsx)(Wf.TabPanel,{tabId:Mf.block,focusable:!1,children:(0,c.jsx)(g.BlockInspector,{})})]})})};var qf=({extraPanels:e,onActionPerformed:t})=>{$f();const{tabName:s,keyboardShortcut:n,showSummary:o}=(0,d.useSelect)((e=>{const t=e(il.store).getShortcutRepresentation("core/editor/toggle-sidebar"),s=e(ja).getActiveComplementaryArea("core");let n=s;return[Mf.block,Mf.document].includes(s)||(n=e(g.store).getBlockSelectionStart()?Mf.block:Mf.document),{tabName:n,keyboardShortcut:t,showSummary:![B,I,R].includes(e(vc).getCurrentPostType())}}),[]),{enableComplementaryArea:r}=(0,d.useDispatch)(ja),i=(0,p.useCallback)((e=>{e&&r("core",e)}),[r]);return(0,c.jsx)(Wf,{selectedTabId:s,onSelect:i,selectOnMove:!1,children:(0,c.jsx)(Yf,{tabName:s,keyboardShortcut:n,showSummary:o,onActionPerformed:t,extraPanels:e})})},Kf=(0,c.jsx)(L.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,c.jsx)(L.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 Qf="edit-post/collab-history-sidebar",Xf="edit-post/collab-sidebar",Jf=[Qf,Xf];function eb(){}const tb=["#3858E9","#9fB1FF","#1D35B4","#1A1919","#E26F56","#33F078","#FFF972","#7A00DF"];function sb(e){return tb[e%tb.length]}function nb(e,t,s){if(!t)return;const n=e?`[role=treeitem][id="comment-thread-${e}"]`:"[role=treeitem]:not([id])",o=s?`${n} ${s}`:n;return new Promise((e=>{if(t.querySelector(o))return e(t.querySelector(o));let s=null;const n=new window.MutationObserver((()=>{t.querySelector(o)&&(clearTimeout(s),n.disconnect(),e(t.querySelector(o)))}));n.observe(t,{childList:!0,subtree:!0}),s=setTimeout((()=>{n.disconnect(),e(null)}),3e3)})).then((e=>e?.focus()))}var ob=function({avatar:e,name:t,date:s,userId:n}){const o=!!e,r=(0,v.getSettings)(),{currentUserAvatar:i,currentUserName:a,currentUserId:l,dateFormat:p=r.formats.date}=(0,d.useSelect)((e=>{const{canUser:t,getCurrentUser:s,getEntityRecord:n}=e(u.store),r=t("read",{kind:"root",name:"site"})?n("root","site"):void 0;if(o)return{dateFormat:r?.date_format};const{getSettings:i}=e(g.store),{__experimentalDiscussionSettings:a}=i(),l=a?.avatarURL,c=s();return{currentUserAvatar:c?.avatar_urls?.[48]??l,currentUserName:c?.name,currentUserId:c?.id,dateFormat:r?.date_format}}),[o]),m=(0,v.getDate)(s),h=(0,v.dateI18n)("c",m),_=Math.floor((new Date-m)/864e5)<30?(0,v.humanTimeDiff)(m):(0,v.dateI18n)(p,m),f=(0,v.dateI18n)((0,fs._x)("F j, Y g:i a","Note date full date format"),s);return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("img",{src:e||i,className:"editor-collab-sidebar-panel__user-avatar",alt:(0,fs.__)("User avatar"),width:32,height:32,style:{borderColor:sb(n??l)}}),(0,c.jsxs)(Hn.__experimentalVStack,{spacing:"0",children:[(0,c.jsx)("span",{className:"editor-collab-sidebar-panel__user-name",children:t??a}),s&&(0,c.jsx)(Hn.Tooltip,{text:f,children:(0,c.jsx)("time",{dateTime:h,className:"editor-collab-sidebar-panel__user-time",children:_})})]})]})};var rb=function e({onSubmit:t,onCancel:s,thread:n,submitButtonText:o,labelText:r,reflowComments:i=eb}){const[a,l]=(0,p.useState)(n?.content?.raw??""),d=(0,m.useDebounce)(i,100),u=(0,m.useInstanceId)(e,"comment-input"),h=a===n?.content?.raw||!(g=a,g.trim()).length;var g;return(0,c.jsxs)(Hn.__experimentalVStack,{className:"editor-collab-sidebar-panel__comment-form",spacing:"4",as:"form",onSubmit:e=>{e.preventDefault(),t(a),l("")},children:[(0,c.jsx)(Hn.VisuallyHidden,{as:"label",htmlFor:u,children:r??(0,fs.__)("Note")}),(0,c.jsx)(hh.A,{id:u,value:a??"",onChange:e=>{var t;t=e.target.value,l(t),d()},rows:1,maxRows:20,onKeyDown:e=>{ll.isKeyboardEvent.primary(e,"Enter")&&!h&&e.target.parentNode.requestSubmit()}}),(0,c.jsxs)(Hn.__experimentalHStack,{spacing:"2",justify:"flex-end",wrap:!0,children:[(0,c.jsx)(Hn.Button,{size:"compact",variant:"tertiary",onClick:s,children:(0,c.jsx)(Hn.__experimentalTruncate,{children:(0,fs.__)("Cancel")})}),(0,c.jsx)(Hn.Button,{size:"compact",accessibleWhenDisabled:!0,variant:"primary",type:"submit",disabled:h,children:(0,c.jsx)(Hn.__experimentalTruncate,{children:o})})]})]})};Math.min,Math.max,Math.round,Math.floor;function ib(e){return e.split("-")[0]}function ab(e){return e.split("-")[1]}function lb(e){return"y"===e?"height":"width"}function cb(e){return["top","bottom"].includes(ib(e))?"y":"x"}function db(e){return"x"===cb(e)?"y":"x"}function ub(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function pb(e,t,s){let{reference:n,floating:o}=e;const r=cb(t),i=db(t),a=lb(i),l=ib(t),c="y"===r,d=n.x+n.width/2-o.width/2,u=n.y+n.height/2-o.height/2,p=n[a]/2-o[a]/2;let m;switch(l){case"top":m={x:d,y:n.y-o.height};break;case"bottom":m={x:d,y:n.y+n.height};break;case"right":m={x:n.x+n.width,y:u};break;case"left":m={x:n.x-o.width,y:u};break;default:m={x:n.x,y:n.y}}switch(ab(t)){case"start":m[i]-=p*(s&&c?-1:1);break;case"end":m[i]+=p*(s&&c?-1:1)}return m}const mb=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){const{x:s,y:n}=t,o=await async function(e,t){const{placement:s,platform:n,elements:o}=e,r=await(null==n.isRTL?void 0:n.isRTL(o.floating)),i=ib(s),a=ab(s),l="y"===cb(s),c=["left","top"].includes(i)?-1:1,d=r&&l?-1:1,u=(m=e,"function"==typeof(p=t)?p(m):p);var p,m;let{mainAxis:h,crossAxis:g,alignmentAxis:_}="number"==typeof u?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...u};return a&&"number"==typeof _&&(g="end"===a?-1*_:_),l?{x:g*d,y:h*c}:{x:h*c,y:g*d}}(t,e);return{x:s+o.x,y:n+o.y,data:o}}}},hb=Math.min,gb=Math.max,_b=Math.round,fb=Math.floor,bb=e=>({x:e,y:e});function yb(){return"undefined"!=typeof window}function xb(e){return Sb(e)?(e.nodeName||"").toLowerCase():"#document"}function vb(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function wb(e){var t;return null==(t=(Sb(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Sb(e){return!!yb()&&(e instanceof Node||e instanceof vb(e).Node)}function kb(e){return!!yb()&&(e instanceof Element||e instanceof vb(e).Element)}function Cb(e){return!!yb()&&(e instanceof HTMLElement||e instanceof vb(e).HTMLElement)}function Pb(e){return!(!yb()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof vb(e).ShadowRoot)}function jb(e){const{overflow:t,overflowX:s,overflowY:n,display:o}=Rb(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+s)&&!["inline","contents"].includes(o)}function Eb(e){return["table","td","th"].includes(xb(e))}function Tb(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function Bb(e){const t=Ib(),s=kb(e)?Rb(e):e;return["transform","translate","scale","rotate","perspective"].some((e=>!!s[e]&&"none"!==s[e]))||!!s.containerType&&"normal"!==s.containerType||!t&&!!s.backdropFilter&&"none"!==s.backdropFilter||!t&&!!s.filter&&"none"!==s.filter||["transform","translate","scale","rotate","perspective","filter"].some((e=>(s.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(s.contain||"").includes(e)))}function Ib(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Nb(e){return["html","body","#document"].includes(xb(e))}function Rb(e){return vb(e).getComputedStyle(e)}function Db(e){return kb(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ab(e){if("html"===xb(e))return e;const t=e.assignedSlot||e.parentNode||Pb(e)&&e.host||wb(e);return Pb(t)?t.host:t}function Mb(e){const t=Ab(e);return Nb(t)?e.ownerDocument?e.ownerDocument.body:e.body:Cb(t)&&jb(t)?t:Mb(t)}function Lb(e,t,s){var n;void 0===t&&(t=[]),void 0===s&&(s=!0);const o=Mb(e),r=o===(null==(n=e.ownerDocument)?void 0:n.body),i=vb(o);if(r){const e=function(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}(i);return t.concat(i,i.visualViewport||[],jb(o)?o:[],e&&s?Lb(e):[])}return t.concat(o,Lb(o,[],s))}function Ob(e){const t=Rb(e);let s=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=Cb(e),r=o?e.offsetWidth:s,i=o?e.offsetHeight:n,a=_b(s)!==r||_b(n)!==i;return a&&(s=r,n=i),{width:s,height:n,$:a}}function Fb(e){return kb(e)?e:e.contextElement}function Vb(e){const t=Fb(e);if(!Cb(t))return bb(1);const s=t.getBoundingClientRect(),{width:n,height:o,$:r}=Ob(t);let i=(r?_b(s.width):s.width)/n,a=(r?_b(s.height):s.height)/o;return i&&Number.isFinite(i)||(i=1),a&&Number.isFinite(a)||(a=1),{x:i,y:a}}const Ub=bb(0);function Hb(e){const t=vb(e);return Ib()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Ub}function zb(e,t,s,n){void 0===t&&(t=!1),void 0===s&&(s=!1);const o=e.getBoundingClientRect(),r=Fb(e);let i=bb(1);t&&(n?kb(n)&&(i=Vb(n)):i=Vb(e));const a=function(e,t,s){return void 0===t&&(t=!1),!(!s||t&&s!==vb(e))&&t}(r,s,n)?Hb(r):bb(0);let l=(o.left+a.x)/i.x,c=(o.top+a.y)/i.y,d=o.width/i.x,u=o.height/i.y;if(r){const e=vb(r),t=n&&kb(n)?vb(n):n;let s=e,o=s.frameElement;for(;o&&n&&t!==s;){const e=Vb(o),t=o.getBoundingClientRect(),n=Rb(o),r=t.left+(o.clientLeft+parseFloat(n.paddingLeft))*e.x,i=t.top+(o.clientTop+parseFloat(n.paddingTop))*e.y;l*=e.x,c*=e.y,d*=e.x,u*=e.y,l+=r,c+=i,s=vb(o),o=s.frameElement}}return ub({width:d,height:u,x:l,y:c})}const Gb=[":popover-open",":modal"];function $b(e){return Gb.some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function Wb(e){return zb(wb(e)).left+Db(e).scrollLeft}function Zb(e,t,s){let n;if("viewport"===t)n=function(e,t){const s=vb(e),n=wb(e),o=s.visualViewport;let r=n.clientWidth,i=n.clientHeight,a=0,l=0;if(o){r=o.width,i=o.height;const e=Ib();(!e||e&&"fixed"===t)&&(a=o.offsetLeft,l=o.offsetTop)}return{width:r,height:i,x:a,y:l}}(e,s);else if("document"===t)n=function(e){const t=wb(e),s=Db(e),n=e.ownerDocument.body,o=gb(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),r=gb(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let i=-s.scrollLeft+Wb(e);const a=-s.scrollTop;return"rtl"===Rb(n).direction&&(i+=gb(t.clientWidth,n.clientWidth)-o),{width:o,height:r,x:i,y:a}}(wb(e));else if(kb(t))n=function(e,t){const s=zb(e,!0,"fixed"===t),n=s.top+e.clientTop,o=s.left+e.clientLeft,r=Cb(e)?Vb(e):bb(1);return{width:e.clientWidth*r.x,height:e.clientHeight*r.y,x:o*r.x,y:n*r.y}}(t,s);else{const s=Hb(e);n={...t,x:t.x-s.x,y:t.y-s.y}}return ub(n)}function Yb(e,t){const s=Ab(e);return!(s===t||!kb(s)||Nb(s))&&("fixed"===Rb(s).position||Yb(s,t))}function qb(e,t,s){const n=Cb(t),o=wb(t),r="fixed"===s,i=zb(e,!0,r,t);let a={scrollLeft:0,scrollTop:0};const l=bb(0);if(n||!n&&!r)if(("body"!==xb(t)||jb(o))&&(a=Db(t)),n){const e=zb(t,!0,r,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&(l.x=Wb(o));return{x:i.left+a.scrollLeft-l.x,y:i.top+a.scrollTop-l.y,width:i.width,height:i.height}}function Kb(e,t){return Cb(e)&&"fixed"!==Rb(e).position?t?t(e):e.offsetParent:null}function Qb(e,t){const s=vb(e);if(!Cb(e)||$b(e))return s;let n=Kb(e,t);for(;n&&Eb(n)&&"static"===Rb(n).position;)n=Kb(n,t);return n&&("html"===xb(n)||"body"===xb(n)&&"static"===Rb(n).position&&!Bb(n))?s:n||function(e){let t=Ab(e);for(;Cb(t)&&!Nb(t);){if(Bb(t))return t;if(Tb(t))return null;t=Ab(t)}return null}(e)||s}const Xb={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:s,offsetParent:n,strategy:o}=e;const r="fixed"===o,i=wb(n),a=!!t&&$b(t.floating);if(n===i||a&&r)return s;let l={scrollLeft:0,scrollTop:0},c=bb(1);const d=bb(0),u=Cb(n);if((u||!u&&!r)&&(("body"!==xb(n)||jb(i))&&(l=Db(n)),Cb(n))){const e=zb(n);c=Vb(n),d.x=e.x+n.clientLeft,d.y=e.y+n.clientTop}return{width:s.width*c.x,height:s.height*c.y,x:s.x*c.x-l.scrollLeft*c.x+d.x,y:s.y*c.y-l.scrollTop*c.y+d.y}},getDocumentElement:wb,getClippingRect:function(e){let{element:t,boundary:s,rootBoundary:n,strategy:o}=e;const r=[..."clippingAncestors"===s?function(e,t){const s=t.get(e);if(s)return s;let n=Lb(e,[],!1).filter((e=>kb(e)&&"body"!==xb(e))),o=null;const r="fixed"===Rb(e).position;let i=r?Ab(e):e;for(;kb(i)&&!Nb(i);){const t=Rb(i),s=Bb(i);s||"fixed"!==t.position||(o=null),(r?!s&&!o:!s&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||jb(i)&&!s&&Yb(e,i))?n=n.filter((e=>e!==i)):o=t,i=Ab(i)}return t.set(e,n),n}(t,this._c):[].concat(s),n],i=r[0],a=r.reduce(((e,s)=>{const n=Zb(t,s,o);return e.top=gb(n.top,e.top),e.right=hb(n.right,e.right),e.bottom=hb(n.bottom,e.bottom),e.left=gb(n.left,e.left),e}),Zb(t,i,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:Qb,getElementRects:async function(e){const t=this.getOffsetParent||Qb,s=this.getDimensions;return{reference:qb(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,...await s(e.floating)}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:s}=Ob(e);return{width:t,height:s}},getScale:Vb,isElement:kb,isRTL:function(e){return"rtl"===Rb(e).direction}};function Jb(e,t,s,n){void 0===n&&(n={});const{ancestorScroll:o=!0,ancestorResize:r=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:l=!1}=n,c=Fb(e),d=o||r?[...c?Lb(c):[],...Lb(t)]:[];d.forEach((e=>{o&&e.addEventListener("scroll",s,{passive:!0}),r&&e.addEventListener("resize",s)}));const u=c&&a?function(e,t){let s,n=null;const o=wb(e);function r(){var e;clearTimeout(s),null==(e=n)||e.disconnect(),n=null}return function i(a,l){void 0===a&&(a=!1),void 0===l&&(l=1),r();const{left:c,top:d,width:u,height:p}=e.getBoundingClientRect();if(a||t(),!u||!p)return;const m={rootMargin:-fb(d)+"px "+-fb(o.clientWidth-(c+u))+"px "+-fb(o.clientHeight-(d+p))+"px "+-fb(c)+"px",threshold:gb(0,hb(1,l))||1};let h=!0;function g(e){const t=e[0].intersectionRatio;if(t!==l){if(!h)return i();t?i(!1,t):s=setTimeout((()=>{i(!1,1e-7)}),100)}h=!1}try{n=new IntersectionObserver(g,{...m,root:o.ownerDocument})}catch(e){n=new IntersectionObserver(g,m)}n.observe(e)}(!0),r}(c,s):null;let p,m=-1,h=null;i&&(h=new ResizeObserver((e=>{let[n]=e;n&&n.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame((()=>{var e;null==(e=h)||e.observe(t)}))),s()})),c&&!l&&h.observe(c),h.observe(t));let g=l?zb(e):null;return l&&function t(){const n=zb(e);!g||n.x===g.x&&n.y===g.y&&n.width===g.width&&n.height===g.height||s();g=n,p=requestAnimationFrame(t)}(),s(),()=>{var e;d.forEach((e=>{o&&e.removeEventListener("scroll",s),r&&e.removeEventListener("resize",s)})),null==u||u(),null==(e=h)||e.disconnect(),h=null,l&&cancelAnimationFrame(p)}}const ey=(e,t,s)=>{const n=new Map,o={platform:Xb,...s},r={...o.platform,_c:n};return(async(e,t,s)=>{const{placement:n="bottom",strategy:o="absolute",middleware:r=[],platform:i}=s,a=r.filter(Boolean),l=await(null==i.isRTL?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:u}=pb(c,n,l),p=n,m={},h=0;for(let s=0;s<a.length;s++){const{name:r,fn:g}=a[s],{x:_,y:f,data:b,reset:y}=await g({x:d,y:u,initialPlacement:n,placement:p,strategy:o,middlewareData:m,rects:c,platform:i,elements:{reference:e,floating:t}});d=null!=_?_:d,u=null!=f?f:u,m={...m,[r]:{...m[r],...b}},y&&h<=50&&(h++,"object"==typeof y&&(y.placement&&(p=y.placement),y.rects&&(c=!0===y.rects?await i.getElementRects({reference:e,floating:t,strategy:o}):y.rects),({x:d,y:u}=pb(c,p,l))),s=-1)}return{x:d,y:u,placement:p,strategy:o,middlewareData:m}})(e,t,{...o,platform:r})};var ty=s(1609);const sy=window.ReactDOM;var ny="undefined"!=typeof document?ty.useLayoutEffect:ty.useEffect;function oy(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let s,n,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(s=e.length,s!==t.length)return!1;for(n=s;0!=n--;)if(!oy(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),s=o.length,s!==Object.keys(t).length)return!1;for(n=s;0!=n--;)if(!{}.hasOwnProperty.call(t,o[n]))return!1;for(n=s;0!=n--;){const s=o[n];if(("_owner"!==s||!e.$$typeof)&&!oy(e[s],t[s]))return!1}return!0}return e!=e&&t!=t}function ry(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function iy(e,t){const s=ry(e);return Math.round(t*s)/s}function ay(e){const t=ty.useRef(e);return ny((()=>{t.current=e})),t}const{useBlockElementRef:ly,cleanEmptyObject:cy}=$(g.privateApis);function dy({thread:e,calculatedOffset:t,setHeights:s,selectedThread:n,setBlockRef:o,commentLastUpdated:r}){const i=(0,p.useRef)();ly(e.blockClientId,i);const a=(0,p.useCallback)(((e,t)=>{s((s=>s[e]!==t?{...s,[e]:t}:s))}),[s]),{y:l,refs:c}=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:s="absolute",middleware:n=[],platform:o,elements:{reference:r,floating:i}={},transform:a=!0,whileElementsMounted:l,open:c}=e,[d,u]=ty.useState({x:0,y:0,strategy:s,placement:t,middlewareData:{},isPositioned:!1}),[p,m]=ty.useState(n);oy(p,n)||m(n);const[h,g]=ty.useState(null),[_,f]=ty.useState(null),b=ty.useCallback((e=>{e!==w.current&&(w.current=e,g(e))}),[]),y=ty.useCallback((e=>{e!==S.current&&(S.current=e,f(e))}),[]),x=r||h,v=i||_,w=ty.useRef(null),S=ty.useRef(null),k=ty.useRef(d),C=null!=l,P=ay(l),j=ay(o),E=ty.useCallback((()=>{if(!w.current||!S.current)return;const e={placement:t,strategy:s,middleware:p};j.current&&(e.platform=j.current),ey(w.current,S.current,e).then((e=>{const t={...e,isPositioned:!0};T.current&&!oy(k.current,t)&&(k.current=t,sy.flushSync((()=>{u(t)})))}))}),[p,t,s,j]);ny((()=>{!1===c&&k.current.isPositioned&&(k.current.isPositioned=!1,u((e=>({...e,isPositioned:!1}))))}),[c]);const T=ty.useRef(!1);ny((()=>(T.current=!0,()=>{T.current=!1})),[]),ny((()=>{if(x&&(w.current=x),v&&(S.current=v),x&&v){if(P.current)return P.current(x,v,E);E()}}),[x,v,E,P,C]);const B=ty.useMemo((()=>({reference:w,floating:S,setReference:b,setFloating:y})),[b,y]),I=ty.useMemo((()=>({reference:x,floating:v})),[x,v]),N=ty.useMemo((()=>{const e={position:s,left:0,top:0};if(!I.floating)return e;const t=iy(I.floating,d.x),n=iy(I.floating,d.y);return a?{...e,transform:"translate("+t+"px, "+n+"px)",...ry(I.floating)>=1.5&&{willChange:"transform"}}:{position:s,left:t,top:n}}),[s,a,I.floating,d.x,d.y]);return ty.useMemo((()=>({...d,update:E,refs:B,elements:I,floatingStyles:N})),[d,E,B,I,N])}({placement:"right-start",middleware:[mb({crossAxis:t||-16})],whileElementsMounted:Jb});return(0,p.useEffect)((()=>{i.current&&c.setReference(i.current)}),[i,c,r]),(0,p.useEffect)((()=>{c.floating?.current&&o(e.id,i.current)}),[e.id,c.floating,o]),(0,p.useEffect)((()=>{if(c.floating?.current){const t=c.floating.current.scrollHeight;a(e.id,t)}}),[e.id,a,c.floating,n,r]),{blockRef:i,y:l,refs:c}}const{useBlockElement:uy}=$(g.privateApis);function py({onSubmit:e,newNoteFormState:t,setNewNoteFormState:s,commentSidebarRef:n,reflowComments:o=eb,isFloating:r=!1,y:i,refs:a}){const{clientId:l}=(0,d.useSelect)((e=>{const{getSelectedBlockClientId:t}=e(g.store);return{clientId:t()}}),[]),u=uy(l),{toggleBlockSpotlight:p}=$((0,d.useDispatch)(g.store));return"open"===t&&l?(0,c.jsxs)(Hn.__experimentalVStack,{className:mr("editor-collab-sidebar-panel__thread is-selected",{"is-floating":r}),spacing:"3",tabIndex:0,"aria-label":(0,fs.__)("New note"),role:"treeitem",ref:r?a.setFloating:void 0,style:r?{top:i,opacity:i?void 0:0}:void 0,onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||(p(l,!1),s("closed"))},children:[(0,c.jsx)(Hn.__experimentalHStack,{alignment:"left",spacing:"3",children:(0,c.jsx)(ob,{})}),(0,c.jsx)(rb,{onSubmit:async t=>{const{id:o}=await e({content:t});nb(o,n.current),s("creating")},onCancel:()=>{s("closed"),u?.focus(),p(l,!1)},reflowComments:o,submitButtonText:(0,fs.__)("Add note"),labelText:(0,fs.__)("New note")})]}):null}const{useBlockElement:my}=$(g.privateApis),{Menu:hy}=$(Hn.privateApis);function gy({threads:e,onEditComment:t,onAddReply:s,onCommentDelete:n,newNoteFormState:o,setNewNoteFormState:r,commentSidebarRef:i,reflowComments:a,isFloating:l=!1,commentLastUpdated:u}){const[m,h]=(0,p.useState)({}),[_,f]=(0,p.useState)(null),[b,y]=(0,p.useState)({}),[x,v]=(0,p.useState)({}),{setCanvasMinHeight:w}=$((0,d.useDispatch)(vc)),{selectBlock:S,toggleBlockSpotlight:k}=$((0,d.useDispatch)(g.store)),{blockCommentId:C,selectedBlockClientId:P,orderedBlockIds:j}=(0,d.useSelect)((e=>{const{getBlockAttributes:t,getSelectedBlockClientId:s,getClientIdsWithDescendants:n}=e(g.store),o=s();return{blockCommentId:o?t(o)?.metadata?.noteId:null,selectedBlockClientId:o,orderedBlockIds:n()}}),[]),E=my(P),T=(0,p.useMemo)((()=>{const t=[...e],s=[];if(l&&"open"===o){const e={id:"new-note-thread",blockClientId:P,content:{rendered:""}};return j.forEach((n=>{if(n===P)s.push(e);else{const e=t.find((e=>e.blockClientId===n));e&&s.push(e)}})),s}return t}),[e,l,o,P,j]),B=async e=>{const t=T.findIndex((t=>t.id===e.id)),s=T[t+1],o=T[t-1];if(await n(e),0!==e.parent)return f(e.parent),void nb(e.parent,i.current);s?(f(s.id),nb(s.id,i.current)):o?(f(o.id),nb(o.id,i.current)):(f(null),r("closed"),E?.focus())};(0,p.useEffect)((()=>{f("open"===o?"new-note-thread":C)}),[C,o]);const I=(0,p.useCallback)(((e,t)=>{v((s=>({...s,[e]:t})))}),[]);(0,p.useEffect)((()=>{const{offsets:e,minHeight:t}=(()=>{const e={};if(!l)return{offsets:e,minHeight:0};const t=T.findIndex((e=>e.id===_)),s=-1===t?0:t,n=T[s];if(!n||!x[n.id])return{offsets:e,minHeight:0};let o=x[n.id],r=o?.getBoundingClientRect();const i=r?.top||0,a=m[n.id]||0;e[n.id]=-16;let c={threadTop:i-16,threadHeight:a};for(let t=s+1;t<T.length;t++){const s=T[t];if(!x[s.id])continue;o=x[s.id],r=o?.getBoundingClientRect();const n=r?.top||0,i=m[s.id]||0;let a=-16;const l=c.threadTop+c.threadHeight;n<l+16&&(a=l-n+20),e[s.id]=a,c={threadTop:n+a,threadHeight:i}}let d={threadTop:i-16};for(let s=t-1;s>=0;s--){const t=T[s];if(!x[t.id])continue;o=x[t.id],r=o?.getBoundingClientRect();const n=r?.top||0,i=m[t.id]||0;let a=-16;n+i>d.threadTop&&(a=d.threadTop-n-i-20),e[t.id]=a,d={threadTop:n+a}}let u=0;const p=T[T.length-1];if(x[p.id]){const t=x[p.id],s=t?.getBoundingClientRect();u=(s?.top||0)+(m[p.id]||0)+(e[p.id]||0)+32}return{offsets:e,minHeight:u}})();Object.keys(e).length>0&&y(e),w(t)}),[m,x,l,T,_,w]);return Array.isArray(T)&&T.length>0||l?(0,c.jsxs)(c.Fragment,{children:[!l&&"open"===o&&(0,c.jsx)(py,{onSubmit:s,newNoteFormState:o,setNewNoteFormState:r,commentSidebarRef:i}),T.map((e=>(0,c.jsx)(_y,{thread:e,onAddReply:s,onCommentDelete:B,onEditComment:t,isSelected:_===e.id,setSelectedThread:f,setNewNoteFormState:r,commentSidebarRef:i,reflowComments:a,isFloating:l,calculatedOffset:b[e.id]??0,setHeights:h,setBlockRef:I,selectedThread:_,commentLastUpdated:u,newNoteFormState:o,onKeyDown:t=>((e,t,s)=>{if(e.defaultPrevented)return;const n=T.findIndex((e=>e.id===t.id));"Enter"!==e.key&&"ArrowRight"!==e.key||e.currentTarget!==e.target||s?("Enter"===e.key||"ArrowLeft"===e.key)&&e.currentTarget===e.target&&s||"Escape"===e.key?(f(null),r("closed"),t.blockClientId&&k(t.blockClientId,!1),nb(t.id,i.current)):"ArrowDown"===e.key&&n<T.length-1&&e.currentTarget===e.target?nb(T[n+1].id,i.current):"ArrowUp"===e.key&&n>0&&e.currentTarget===e.target?nb(T[n-1].id,i.current):"Home"===e.key&&e.currentTarget===e.target?nb(T[0].id,i.current):"End"===e.key&&e.currentTarget===e.target&&nb(T[T.length-1].id,i.current):(r("closed"),f(t.id),t.blockClientId&&(S(t.blockClientId,null),k(t.blockClientId,!0)))})(t,e,_===e.id)},e.id)))]}):null}function _y({thread:e,onEditComment:t,onAddReply:s,onCommentDelete:n,isSelected:o,setNewNoteFormState:r,commentSidebarRef:i,reflowComments:a,isFloating:l,calculatedOffset:u,setHeights:p,setBlockRef:h,setSelectedThread:_,selectedThread:f,commentLastUpdated:b,newNoteFormState:y,onKeyDown:x}){const{toggleBlockHighlight:v,selectBlock:w,toggleBlockSpotlight:S}=$((0,d.useDispatch)(g.store)),k=my(e.blockClientId),C=(0,m.useDebounce)(v,50),{y:P,refs:j}=dy({thread:e,calculatedOffset:u,setHeights:p,setBlockRef:h,selectedThread:f,commentLastUpdated:b}),E=()=>{C(e.blockClientId,!0)},T=()=>{C(e.blockClientId,!1)},B=()=>{_(null),r("closed"),S(e.blockClientId,!1)},I=e?.reply||[],N=I.length>0?I[I.length-1]:void 0,R=I.length>0?I.slice(0,-1):[],D=function(e,t=10){if(!e)return"";const s=(0,fs._x)("words","Word count type. Do not translate!"),n=e.trim();let o="";if("words"===s)o=n.split(" ",t).join(" ");else if("characters_excluding_spaces"===s){const e=n.split("",t).join(""),s=e.length-e.replaceAll(" ","").length;o=n.split("",t+s).join("")}else"characters_including_spaces"===s&&(o=n.split("",t).join(""));return o!==n?o+"…":o}((0,Uc.__unstableStripHTML)(e.content?.rendered),10),A=e.blockClientId?(0,fs.sprintf)((0,fs.__)("Note: %s"),D):(0,fs.sprintf)((0,fs.__)("Original block deleted. Note: %s"),D);return"new-note-thread"===e.id&&"open"===y&&l?(0,c.jsx)(py,{onSubmit:s,newNoteFormState:y,setNewNoteFormState:r,commentSidebarRef:i,reflowComments:a,isFloating:l,y:P,refs:j}):(0,c.jsxs)(Hn.__experimentalVStack,{className:mr("editor-collab-sidebar-panel__thread",{"is-selected":o,"is-floating":l}),id:`comment-thread-${e.id}`,spacing:"3",onClick:()=>{r("closed"),_(e.id),e.blockClientId&&(w(e.blockClientId,null),S(e.blockClientId,!0))},onMouseEnter:E,onMouseLeave:T,onFocus:E,onBlur:T,onKeyDown:x,tabIndex:0,role:"treeitem","aria-label":A,"aria-expanded":o,ref:l?j.setFloating:void 0,style:l?{top:P}:void 0,children:[(0,c.jsx)(Hn.Button,{className:"editor-collab-sidebar-panel__skip-to-comment",variant:"secondary",size:"compact",onClick:()=>{nb(e.id,i.current,"textarea")},children:(0,fs.__)("Add new note")}),!e.blockClientId&&(0,c.jsx)(Hn.__experimentalText,{as:"p",weight:500,variant:"muted",children:(0,fs.__)("Original block deleted.")}),(0,c.jsx)(fy,{thread:e,isExpanded:o,onEdit:(s={})=>{t(s),"approved"===s.status&&(B(),l?k?.focus():nb(e.id,i.current))},onDelete:n,reflowComments:a}),o&&I.map((s=>(0,c.jsx)(fy,{thread:s,parent:e,isExpanded:o,onEdit:t,onDelete:n,reflowComments:a},s.id))),!o&&R.length>0&&(0,c.jsx)(Hn.__experimentalHStack,{className:"editor-collab-sidebar-panel__more-reply-separator",children:(0,c.jsx)(Hn.Button,{size:"compact",variant:"tertiary",className:"editor-collab-sidebar-panel__more-reply-button",onClick:()=>{_(e.id),nb(e.id,i.current)},children:(0,fs.sprintf)((0,fs._n)("%s more reply","%s more replies",R.length),R.length)})}),!o&&N&&(0,c.jsx)(fy,{thread:N,parent:e,isExpanded:o,onEdit:t,onDelete:n,reflowComments:a}),o&&(0,c.jsxs)(Hn.__experimentalVStack,{spacing:"2",role:"treeitem",children:[(0,c.jsx)(Hn.__experimentalHStack,{alignment:"left",spacing:"3",justify:"flex-start",children:(0,c.jsx)(ob,{})}),(0,c.jsx)(Hn.__experimentalVStack,{spacing:"2",children:(0,c.jsx)(rb,{onSubmit:n=>{"approved"===e.status?t({id:e.id,status:"hold",content:n}):s({content:n,parent:e.id})},onCancel:t=>{t.stopPropagation(),B(),nb(e.id,i.current)},submitButtonText:"approved"===e.status?(0,fs.__)("Reopen & Reply"):(0,fs.__)("Reply"),rows:"approved"===e.status?2:4,labelText:(0,fs.sprintf)((0,fs.__)("Reply to note %1$s by %2$s"),e.id,e.author_name),reflowComments:a})})]}),!!e.blockClientId&&(0,c.jsx)(Hn.Button,{className:"editor-collab-sidebar-panel__skip-to-block",variant:"secondary",size:"compact",onClick:e=>{e.stopPropagation(),k?.focus()},children:(0,fs.__)("Back to block")})]})}const fy=({thread:e,parent:t,isExpanded:s,onEdit:n,onDelete:o,reflowComments:r})=>{const[i,a]=(0,p.useState)(!1),[l,d]=(0,p.useState)(!1),u=(0,p.useRef)(null),m=()=>{a(!1),d(!1),u.current?.focus()},h="note"===e.type&&e.meta&&("resolved"===e.meta._wp_note_status||"reopen"===e.meta._wp_note_status),g=[{id:"edit",title:(0,fs.__)("Edit"),isEligible:({status:e})=>"approved"!==e,onClick:()=>{a("edit")}},{id:"reopen",title:(0,fs._x)("Reopen","Reopen note"),isEligible:({status:e})=>"approved"===e,onClick:()=>{n({id:e.id,status:"hold"})}},{id:"delete",title:(0,fs.__)("Delete"),isEligible:()=>!0,onClick:()=>{a("delete"),d(!0)}}],_=0===e.parent,f="approved"!==t?.status?g.filter((t=>t.isEligible(e))):[];return(0,c.jsxs)(Hn.__experimentalVStack,{spacing:"2",role:0!==e.parent?"treeitem":void 0,children:[(0,c.jsxs)(Hn.__experimentalHStack,{alignment:"left",spacing:"3",justify:"flex-start",children:[(0,c.jsx)(ob,{avatar:e?.author_avatar_urls?.[48],name:e?.author_name,date:e?.date,userId:e?.author}),s&&(0,c.jsx)(Hn.FlexItem,{className:"editor-collab-sidebar-panel__comment-status",onClick:e=>{e.stopPropagation()},children:(0,c.jsxs)(Hn.__experimentalHStack,{spacing:"0",children:[_&&(0,c.jsx)(Hn.Button,{label:(0,fs._x)("Resolve","Mark note as resolved"),size:"small",icon:wr,disabled:"approved"===e.status,accessibleWhenDisabled:"approved"===e.status,onClick:()=>{n({id:e.id,status:"approved"})}}),(0,c.jsxs)(hy,{placement:"bottom-end",children:[(0,c.jsx)(hy.TriggerButton,{render:(0,c.jsx)(Hn.Button,{ref:u,size:"small",icon:r_,label:(0,fs.__)("Actions"),disabled:!f.length,accessibleWhenDisabled:!0})}),(0,c.jsx)(hy.Popover,{children:f.map((e=>(0,c.jsx)(hy.Item,{onClick:()=>e.onClick(),children:(0,c.jsx)(hy.ItemLabel,{children:e.title})},e.id)))})]})]})})]}),"edit"===i?(0,c.jsx)(rb,{onSubmit:t=>{n({id:e.id,content:t}),a(!1),u.current?.focus()},onCancel:()=>m(),thread:e,submitButtonText:(0,fs._x)("Update","verb"),labelText:(0,fs.sprintf)((0,fs.__)("Edit note %1$s by %2$s"),e.id,e.author_name),reflowComments:r}):(0,c.jsx)(p.RawHTML,{className:mr("editor-collab-sidebar-panel__user-comment",{"editor-collab-sidebar-panel__resolution-text":h}),children:h?(()=>{const t="resolved"===e.meta._wp_note_status?(0,fs.__)("Marked as resolved"):(0,fs.__)("Reopened"),s=e?.content?.raw;return s&&"string"==typeof s&&""!==s.trim()?(0,fs.sprintf)((0,fs.__)("%1$s: %2$s"),t,s):t})():e?.content?.rendered}),"delete"===i&&(0,c.jsx)(Hn.__experimentalConfirmDialog,{isOpen:l,onConfirm:()=>{o(e),a(!1),d(!1)},onCancel:m,confirmButtonText:(0,fs.__)("Delete"),children:(0,fs.__)("Are you sure you want to delete this note? This will also delete all of this note's replies.")})]})};const{CommentIconSlotFill:by}=$(g.privateApis),yy=({clientId:e,onClick:t,isDistractionFree:s})=>{const n=(0,d.useSelect)((t=>t(g.store).getBlock(e)),[e]);if(!n?.isValid||n?.name===(0,x.getUnregisteredTypeHandlerName)())return null;const o=s||"core/freeform"===n?.name;let r;return s?r=(0,fs.__)("Notes are disabled in distraction free mode."):"core/freeform"===n?.name&&(r=(0,fs.__)("Convert to blocks to add notes.")),(0,c.jsx)(Hn.MenuItem,{icon:Kf,onClick:t,"aria-haspopup":"dialog",disabled:o,info:r,children:(0,fs.__)("Add note")})};var xy=({onClick:e,isDistractionFree:t})=>(0,c.jsx)(by.Fill,{children:({clientId:s,onClose:n})=>(0,c.jsx)(yy,{clientId:s,isDistractionFree:t,onClick:()=>{e(),n()}})});const{CommentIconToolbarSlotFill:vy}=$(g.privateApis);var wy=({onClick:e,thread:t})=>{const s=(0,p.useMemo)((()=>{if(!t)return[];const e=new Map,s=[t,...t.reply];return s.sort(((e,t)=>new Date(e.date)-new Date(t.date))),s.forEach((t=>{t.author_name&&t.author_avatar_urls&&(e.has(t.author)||e.set(t.author,{name:t.author_name,avatar:t.author_avatar_urls?.[48]||t.author_avatar_urls?.[96],id:t.author,date:t.date}))})),Array.from(e.values())}),[t]);if(!s.length)return null;const n=s.length>3?s.slice(0,2):s,o=Math.max(0,s.length-n.length),r=s.length>100&&o>0?(0,fs.__)("100+"):(0,fs.sprintf)((0,fs.__)("+%s"),o);return(0,c.jsx)(vy.Fill,{children:(0,c.jsx)(Hn.ToolbarButton,{className:"comment-avatar-indicator",label:(0,fs.__)("View notes"),onClick:e,showTooltip:!0,children:(0,c.jsxs)(Hn.__experimentalHStack,{spacing:"1",children:[n.map((e=>(0,c.jsx)("img",{src:e.avatar,alt:e.name,className:"comment-avatar",style:{borderColor:sb(e.id)}},e.id))),o>0&&(0,c.jsx)(Hn.__experimentalText,{weight:500,children:r})]})})})};function Sy({newNoteFormState:e,setNewNoteFormState:t,styles:s,comments:n,commentSidebarRef:o,reflowComments:r,commentLastUpdated:i,isFloating:a=!1}){const{onCreate:l,onEdit:p,onDelete:m}=function(e=eb){const{createNotice:t}=(0,d.useDispatch)(_s.store),{saveEntityRecord:s,deleteEntityRecord:n}=(0,d.useDispatch)(u.store),{getCurrentPostId:o}=(0,d.useSelect)(vc),{getBlockAttributes:r,getSelectedBlockClientId:i}=(0,d.useSelect)(g.store),{updateBlockAttributes:a}=(0,d.useDispatch)(g.store),l=e=>{const s=e.message&&"unknown_error"!==e.code?(0,Ln.decodeEntities)(e.message):(0,fs.__)("An error occurred while performing an update.");t("error",s,{type:"snackbar",isDismissible:!0})};return{onCreate:async({content:n,parent:c})=>{try{const l=await s("root","comment",{post:o(),content:n,status:"hold",type:"note",parent:c||0},{throwOnError:!0});if(!c&&l?.id){const e=i(),t=r(e)?.metadata;a(e,{metadata:{...t,noteId:l.id}})}return t("snackbar",c?(0,fs.__)("Reply added."):(0,fs.__)("Note added."),{type:"snackbar",isDismissible:!0}),setTimeout(e,300),l}catch(t){e(),l(t)}},onEdit:async({id:n,content:r,status:i})=>{const a=i||"updated",c={approved:(0,fs.__)("Note marked as resolved."),hold:(0,fs.__)("Note reopened."),updated:(0,fs.__)("Note updated.")};try{if("approved"===i||"hold"===i){await s("root","comment",{id:n,status:i},{throwOnError:!0});const e={post:o(),content:r||"",type:"note",status:i,parent:n,meta:{_wp_note_status:"approved"===i?"resolved":"reopen"}};await s("root","comment",e,{throwOnError:!0})}else{const e={id:n,content:r,status:i};await s("root","comment",e,{throwOnError:!0})}t("snackbar",c[a]??(0,fs.__)("Note updated."),{type:"snackbar",isDismissible:!0}),e()}catch(t){e(),l(t)}},onDelete:async s=>{try{if(await n("root","comment",s.id,void 0,{throwOnError:!0}),!s.parent){const e=i(),t=r(e)?.metadata;a(e,{metadata:cy({...t,noteId:void 0})})}t("snackbar",(0,fs.__)("Note deleted."),{type:"snackbar",isDismissible:!0}),e()}catch(t){e(),l(t)}}}}(r);return(0,c.jsx)(Hn.__experimentalVStack,{className:"editor-collab-sidebar-panel",style:s,role:"tree",spacing:"3",justify:"flex-start",ref:e=>{e&&(o.current=e)},"aria-label":a?(0,fs.__)("Unresolved notes"):(0,fs.__)("All notes"),children:(0,c.jsx)(gy,{threads:n,onEditComment:p,onAddReply:l,onCommentDelete:m,newNoteFormState:e,setNewNoteFormState:t,commentSidebarRef:o,reflowComments:r,commentLastUpdated:i,isFloating:a})})}function ky({postId:e,mode:t}){const[s,n]=(0,p.useState)("closed"),{getActiveComplementaryArea:o}=(0,d.useSelect)(ja),{enableComplementaryArea:r}=(0,d.useDispatch)(ja),{toggleBlockSpotlight:i}=$((0,d.useDispatch)(g.store)),a=(0,m.useViewportMatch)("medium"),l=(0,p.useRef)(null),h=a&&"post-only"===t,{clientId:_,blockCommentId:f,isDistractionFree:b}=(0,d.useSelect)((e=>{const{getBlockAttributes:t,getSelectedBlockClientId:s,getSettings:n}=e(g.store),o=s();return{clientId:o,blockCommentId:o?t(o)?.metadata?.noteId:null,isDistractionFree:n().isDistractionFree}}),[]),{resultComments:y,unresolvedSortedThreads:x,reflowComments:v,commentLastUpdated:w}=function(e){const[t,s]=(0,p.useReducer)((()=>Date.now()),0),n={post:e,type:"note",status:"all",per_page:-1},{records:o}=(0,u.useEntityRecords)("root","comment",n,{enabled:!!e&&"number"==typeof e}),{getBlockAttributes:r}=(0,d.useSelect)(g.store),{clientIds:i}=(0,d.useSelect)((e=>{const{getClientIdsWithDescendants:t}=e(g.store);return{clientIds:t()}}),[]),{resultComments:a,unresolvedSortedThreads:l}=(0,p.useMemo)((()=>{if(!o||0===o.length)return{resultComments:[],unresolvedSortedThreads:[]};const e=i.reduce(((e,t)=>{const s=r(t)?.metadata?.noteId;return s&&(e[t]=s),e}),{}),t={},s=[];if(o.forEach((s=>{const n=Object.keys(e).find((t=>e[t]===s.id));t[s.id]={...s,reply:[],blockClientId:0===s.parent?n:null}})),o.forEach((e=>{0===e.parent?s.push(t[e.id]):t[e.parent]&&t[e.parent].reply.push(t[e.id])})),0===s?.length)return{resultComments:[],unresolvedSortedThreads:[]};const n=s.map((e=>({...e,reply:[...e.reply].reverse()}))),a=new Map(n.map((e=>[String(e.id),e]))),l=new Set(Object.values(e).map((e=>String(e)))),c=Object.values(e).map((e=>a.get(String(e)))).filter((e=>void 0!==e&&"hold"===e.status)),d=Object.values(e).map((e=>a.get(String(e)))).filter((e=>void 0!==e&&"approved"===e.status)),u=n.filter((e=>!l.has(String(e.id))));return{resultComments:[...c,...d,...u],unresolvedSortedThreads:c}}),[i,o,r]);return{resultComments:a,unresolvedSortedThreads:l,reflowComments:s,commentLastUpdated:t}}(e);!function(e=!1){const t=(0,d.useRegistry)();(0,p.useEffect)((()=>{if(!e)return;const{getActiveComplementaryArea:s}=t.select(ja),{disableComplementaryArea:n,enableComplementaryArea:o}=t.dispatch(ja),r=t.subscribe((()=>{null===s("core")&&o("core",Xf)}));return()=>{r(),s("core")===Xf&&n("core",Xf)}}),[e,t])}(h&&(x.length>0||"closed"!==s));const{merged:S}=Ti(),k=S?.styles?.color?.background,C=f?y.find((e=>e.id===f)):null,P=y.length>0||!h;async function j(){const e=await o("core"),t=Jf.find((t=>t===e));"approved"===C?.status?r("core",Qf):t&&P||r("core",h?Xf:Qf);const s=await o("core");Jf.includes(s)&&(n(C?"closed":"open"),nb(C?.id,l.current,C?void 0:"textarea"),i(_,!0))}return b?(0,c.jsx)(xy,{isDistractionFree:!0}):(0,c.jsxs)(c.Fragment,{children:[!!C&&(0,c.jsx)(wy,{thread:C,onClick:j}),(0,c.jsx)(xy,{onClick:j}),P&&(0,c.jsx)(Iu,{identifier:Qf,name:Qf,title:(0,fs.__)("All notes"),header:(0,c.jsx)("h2",{className:"interface-complementary-area-header__title",children:(0,fs.__)("All notes")}),icon:Kf,closeLabel:(0,fs.__)("Close Notes"),children:(0,c.jsx)(Sy,{comments:y,newNoteFormState:s,setNewNoteFormState:n,commentSidebarRef:l,reflowComments:v,commentLastUpdated:w})}),a&&(0,c.jsx)(Iu,{isPinnable:!1,header:!1,identifier:Xf,className:"editor-collab-sidebar",headerClassName:"editor-collab-sidebar__header",backgroundColor:k,children:(0,c.jsx)(Sy,{comments:x,newNoteFormState:s,setNewNoteFormState:n,commentSidebarRef:l,reflowComments:v,commentLastUpdated:w,styles:{backgroundColor:k},isFloating:!0})})]})}function Cy(){const{postId:e,mode:t,editorMode:s}=(0,d.useSelect)((e=>{const{getCurrentPostId:t,getRenderingMode:s,getEditorMode:n}=e(vc);return{postId:t(),mode:s(),editorMode:n()}}),[]);return e&&"number"==typeof e?"text"===s?null:(0,c.jsx)(Bd,{supportKeys:"editor.notes",children:(0,c.jsx)(ky,{postId:e,mode:t})}):null}var Py=function({postType:e,postId:t,templateId:s,settings:n,children:o,initialEdits:r,onActionPerformed:i,extraContent:a,extraSidebarPanels:l,...p}){const{post:m,template:h,hasLoadedPost:g,error:_}=(0,d.useSelect)((n=>{const{getEntityRecord:o,getResolutionError:r,hasFinishedResolution:i}=n(u.store),a=["postType",e,t];return{post:o(...a),template:s?o("postType",B,s):void 0,hasLoadedPost:i("getEntityRecord",a),error:r("getEntityRecord",a)?.message}}),[e,t,s]);return(0,c.jsxs)(c.Fragment,{children:[g&&!m&&(0,c.jsx)(Hn.Notice,{status:_?"error":"warning",isDismissible:!1,children:_||(0,fs.__)("You attempted to edit an item that doesn't exist. Perhaps it was deleted?")}),!!m&&(0,c.jsxs)(Rl,{post:m,__unstableTemplate:h,settings:n,initialEdits:r,useSubRegistry:!1,children:[(0,c.jsx)(sf,{...p,children:a}),o,(0,c.jsx)(qf,{onActionPerformed:i,extraPanels:l}),(0,c.jsx)(Cy,{})]})]})};const{PreferenceBaseOption:jy}=$(C.privateApis);function Ey(e){const t=(0,d.useSelect)((e=>e(vc).isPublishSidebarEnabled()),[]),{enablePublishSidebar:s,disablePublishSidebar:n}=(0,d.useDispatch)(vc);return(0,c.jsx)(jy,{isChecked:t,onChange:e=>e?s():n(),...e})}const{BlockManager:Ty}=$(g.privateApis),By=[];function Iy(){const{showBlockTypes:e,hideBlockTypes:t}=$((0,d.useDispatch)(vc)),{blockTypes:s,allowedBlockTypes:n,hiddenBlockTypes:o}=(0,d.useSelect)((e=>({blockTypes:e(x.store).getBlockTypes(),allowedBlockTypes:e(vc).getEditorSettings().allowedBlockTypes,hiddenBlockTypes:e(C.store).get("core","hiddenBlockTypes")??By})),[]),r=(0,p.useMemo)((()=>!0===n?s:s.filter((({name:e})=>n?.includes(e)))),[n,s]).filter((e=>(0,x.hasBlockSupport)(e,"inserter",!0)&&(!e.parent||e.parent.includes("core/post-content")))),i=o.filter((e=>r.some((t=>t.name===e)))),a=r.filter((e=>!i.includes(e.name))),l=r.length-a.length;const u=s=>{if(a.length>s.length){const e=a.filter((e=>!s.find((({name:t})=>t===e.name))));t(e.map((({name:e})=>e)))}else if(a.length<s.length){const t=s.filter((e=>!a.find((({name:t})=>t===e.name))));e(t.map((({name:e})=>e)))}};return(0,c.jsxs)("div",{className:"editor-block-visibility",children:[!!l&&(0,c.jsxs)("div",{className:"editor-block-visibility__disabled-blocks-count",children:[(0,fs.sprintf)((0,fs._n)("%d block is hidden.","%d blocks are hidden.",l),l),(0,c.jsx)(Hn.Button,{__next40pxDefaultSize:!0,variant:"link",onClick:function(){u(r)},children:(0,fs.__)("Reset")})]}),(0,c.jsx)(Ty,{blockTypes:r,selectedBlockTypes:a,onChange:u,showSelectAll:!1})]})}const{PreferencesModal:Ny,PreferencesModalTabs:Ry,PreferencesModalSection:Dy,PreferenceToggleControl:Ay}=$(C.privateApis);function My({extraSections:e={}}){const t=(0,m.useViewportMatch)("medium"),s=(0,d.useSelect)((e=>{const{getEditorSettings:s}=e(vc),{get:n}=e(C.store),o=s().richEditingEnabled;return!n("core","distractionFree")&&t&&o}),[t]),{setIsListViewOpened:n,setIsInserterOpened:o}=(0,d.useDispatch)(vc),{set:r}=(0,d.useDispatch)(C.store),i=(0,p.useMemo)((()=>[{name:"general",tabLabel:(0,fs.__)("General"),content:(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)(Dy,{title:(0,fs.__)("Interface"),children:[(0,c.jsx)(Ay,{scope:"core",featureName:"showListViewByDefault",help:(0,fs.__)("Opens the List View panel by default."),label:(0,fs.__)("Always open List View")}),s&&(0,c.jsx)(Ay,{scope:"core",featureName:"showBlockBreadcrumbs",help:(0,fs.__)("Display the block hierarchy trail at the bottom of the editor."),label:(0,fs.__)("Show block breadcrumbs")}),(0,c.jsx)(Ay,{scope:"core",featureName:"allowRightClickOverrides",help:(0,fs.__)("Allows contextual List View menus via right-click, overriding browser defaults."),label:(0,fs.__)("Allow right-click contextual menus")}),(0,c.jsx)(Ay,{scope:"core",featureName:"enableChoosePatternModal",help:(0,fs.__)("Pick from starter content when creating a new page."),label:(0,fs.__)("Show starter patterns")})]}),(0,c.jsxs)(Dy,{title:(0,fs.__)("Document settings"),description:(0,fs.__)("Select what settings are shown in the document panel."),children:[(0,c.jsx)(uu.Slot,{}),(0,c.jsx)(dh,{taxonomyWrapper:(e,t)=>(0,c.jsx)(au,{label:t.labels.menu_name,panelName:`taxonomy-panel-${t.slug}`})}),(0,c.jsx)(gp,{children:(0,c.jsx)(au,{label:(0,fs.__)("Featured image"),panelName:"featured-image"})}),(0,c.jsx)(op,{children:(0,c.jsx)(au,{label:(0,fs.__)("Excerpt"),panelName:"post-excerpt"})}),(0,c.jsx)(Bd,{supportKeys:["comments","trackbacks"],children:(0,c.jsx)(au,{label:(0,fs.__)("Discussion"),panelName:"discussion-panel"})}),(0,c.jsx)(Td,{children:(0,c.jsx)(au,{label:(0,fs.__)("Page attributes"),panelName:"page-attributes"})})]}),t&&(0,c.jsx)(Dy,{title:(0,fs.__)("Publishing"),children:(0,c.jsx)(Ey,{help:(0,fs.__)("Review settings, such as visibility and tags."),label:(0,fs.__)("Enable pre-publish checks")})}),e?.general]})},{name:"appearance",tabLabel:(0,fs.__)("Appearance"),content:(0,c.jsxs)(Dy,{title:(0,fs.__)("Appearance"),description:(0,fs.__)("Customize the editor interface to suit your needs."),children:[(0,c.jsx)(Ay,{scope:"core",featureName:"fixedToolbar",onToggle:()=>r("core","distractionFree",!1),help:(0,fs.__)("Access all block and document tools in a single place."),label:(0,fs.__)("Top toolbar")}),(0,c.jsx)(Ay,{scope:"core",featureName:"distractionFree",onToggle:()=>{r("core","fixedToolbar",!0),o(!1),n(!1)},help:(0,fs.__)("Reduce visual distractions by hiding the toolbar and other elements to focus on writing."),label:(0,fs.__)("Distraction free")}),(0,c.jsx)(Ay,{scope:"core",featureName:"focusMode",help:(0,fs.__)("Highlights the current block and fades other content."),label:(0,fs.__)("Spotlight mode")}),e?.appearance]})},{name:"accessibility",tabLabel:(0,fs.__)("Accessibility"),content:(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(Dy,{title:(0,fs.__)("Navigation"),description:(0,fs.__)("Optimize the editing experience for enhanced control."),children:(0,c.jsx)(Ay,{scope:"core",featureName:"keepCaretInsideBlock",help:(0,fs.__)("Keeps the text cursor within blocks while navigating with arrow keys, preventing it from moving to other blocks and enhancing accessibility for keyboard users."),label:(0,fs.__)("Contain text cursor inside block")})}),(0,c.jsx)(Dy,{title:(0,fs.__)("Interface"),children:(0,c.jsx)(Ay,{scope:"core",featureName:"showIconLabels",label:(0,fs.__)("Show button text labels"),help:(0,fs.__)("Show text instead of icons on buttons across the interface.")})})]})},{name:"blocks",tabLabel:(0,fs.__)("Blocks"),content:(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(Dy,{title:(0,fs.__)("Inserter"),children:(0,c.jsx)(Ay,{scope:"core",featureName:"mostUsedBlocks",help:(0,fs.__)("Adds a category with the most frequently used blocks in the inserter."),label:(0,fs.__)("Show most used blocks")})}),(0,c.jsx)(Dy,{title:(0,fs.__)("Manage block visibility"),description:(0,fs.__)("Disable blocks that you don't want to appear in the inserter. They can always be toggled back on later."),children:(0,c.jsx)(Iy,{})})]})},window.__experimentalMediaProcessing&&{name:"media",tabLabel:(0,fs.__)("Media"),content:(0,c.jsx)(c.Fragment,{children:(0,c.jsxs)(Dy,{title:(0,fs.__)("General"),description:(0,fs.__)("Customize options related to the media upload flow."),children:[(0,c.jsx)(Ay,{scope:"core/media",featureName:"optimizeOnUpload",help:(0,fs.__)("Compress media items before uploading to the server."),label:(0,fs.__)("Pre-upload compression")}),(0,c.jsx)(Ay,{scope:"core/media",featureName:"requireApproval",help:(0,fs.__)("Require approval step when optimizing existing media."),label:(0,fs.__)("Approval step")})]})})}].filter(Boolean)),[s,e,o,n,r,t]);return(0,c.jsx)(Ry,{sections:i})}var Ly=function({postType:e}){const{registerPostTypeSchema:t}=$((0,d.useDispatch)(vc));(0,p.useEffect)((()=>{t(e)}),[t,e]);const{fields:s}=(0,d.useSelect)((t=>{const{getEntityFields:s}=$(t(vc));return{fields:s("postType",e)}}),[e]);return s};const Oy="content";var Fy={name:"core/pattern-overrides",getValues({select:e,clientId:t,context:s,bindings:n}){const o=s["pattern/overrides"],{getBlockAttributes:r}=e(g.store),i=r(t),a={};for(const e of Object.keys(n)){const t=o?.[i?.metadata?.name]?.[e];void 0!==t?a[e]=""===t?void 0:t:a[e]=i[e]}return a},setValues({select:e,dispatch:t,clientId:s,bindings:n}){const{getBlockAttributes:o,getBlockParentsByBlockName:r,getBlocks:i}=e(g.store),a=o(s),l=a?.metadata?.name;if(!l)return;const[c]=r(s,"core/block",!0),d=Object.entries(n).reduce(((e,[t,{newValue:s}])=>(e[t]=s,e)),{});if(!c){const e=s=>{for(const n of s)n.attributes?.metadata?.name===l&&t(g.store).updateBlockAttributes(n.clientId,d),e(n.innerBlocks)};return void e(i())}const u=o(c)?.[Oy];t(g.store).updateBlockAttributes(c,{[Oy]:{...u,[l]:{...u?.[l],...Object.entries(d).reduce(((e,[t,s])=>(e[t]=void 0===s?"":s,e)),{})}}})},canUserEditValue:()=>!0};const Vy=["core/navigation-link","core/navigation-submenu"],Uy=[{label:(0,fs.__)("Post Date"),args:{field:"date"},type:"string"},{label:(0,fs.__)("Post Modified Date"),args:{field:"modified"},type:"string"},{label:(0,fs.__)("Post Link"),args:{field:"link"},type:"string"}];var Hy={name:"core/post-data",getValues({select:e,context:t,bindings:s,clientId:n}){const o=Uy.map((e=>e.args.field)),{getBlockAttributes:r,getBlockName:i}=e(g.store),a=i?.(n);let l,c;if(Vy.includes(a)){const e=r?.(n);l=e?.id,c=e?.type}else l=t?.postId,c=t?.postType;const{getEditedEntityRecord:d}=e(u.store),p=d("postType",c,l),m={};for(const[e,t]of Object.entries(s))o.includes(t.args.field)?m[e]=p?.[t.args.field]??Uy.find((e=>e.args.field===t.args.field)).label:m[e]={};return m},setValues({dispatch:e,context:t,bindings:s,clientId:n,select:o}){const{getBlockName:r}=o(g.store),i=r?.(n);if(Vy.includes(i))return!1;const a={};Object.values(s).forEach((({args:e,newValue:t})=>{a[e.field]=t})),e(u.store).editEntityRecord("postType",t?.postType,t?.postId,a)},canUserEditValue({select:e,context:t}){const{getBlockName:s,getSelectedBlockClientId:n}=e(g.store),o=n(),r=s?.(o);if(Vy.includes(r))return!1;if(t?.query||t?.queryId)return!1;if(!t?.postType)return!1;return!!e(u.store).canUser("update",{kind:"postType",name:t?.postType,id:t?.postId})},getFieldsList({select:e}){const t=e(g.store).getSelectedBlock();return"core/post-date"!==t?.name||Vy.includes(t?.name)?[]:Uy}};function zy(e,t){const{getRegisteredPostMeta:s}=$(e(u.store)),n=s(t?.postType),o=[];return Object.entries(n).forEach((([e,t])=>{"footnotes"!==e&&"_"!==e.charAt(0)&&o.push({label:t.title||e,args:{key:e},default:t.default,type:t.type})})),o}function Gy({select:e,context:t,args:s}){const n=zy(e,t).find((e=>e.args.key===s.key));if(!n)return s.key;if(!t?.postId)return n.default||n.label||s.key;const{getEditedEntityRecord:o}=e(u.store),r=o("postType",t?.postType,t?.postId).meta;return r?.[s.key]??n?.label??s.key}var $y={name:"core/post-meta",getValues({select:e,context:t,bindings:s}){const n={};for(const[o,r]of Object.entries(s))n[o]=Gy({select:e,context:t,args:r.args});return n},setValues({dispatch:e,context:t,bindings:s}){const n={};Object.values(s).forEach((({args:e,newValue:t})=>{n[e.key]=t})),e(u.store).editEntityRecord("postType",t?.postType,t?.postId,{meta:n})},canUserEditValue({select:e,context:t,args:s}){if(t?.query||t?.queryId)return!1;if(!t?.postType)return!1;if(!zy(e,t).some((e=>e.args.key===s.key)))return!1;if(e(vc).getEditorSettings().enableCustomFields)return!1;return!!e(u.store).canUser("update",{kind:"postType",name:t?.postType,id:t?.postId})},getFieldsList:({select:e,context:t})=>zy(e,t).map((({default:e,...t})=>({...t})))};const Wy=["core/navigation-link","core/navigation-submenu"];function Zy(e,t){return{id:{label:(0,fs.__)("Term ID"),value:t,type:"string"},name:{label:(0,fs.__)("Name"),value:e?.name,type:"string"},slug:{label:(0,fs.__)("Slug"),value:e?.slug,type:"string"},link:{label:(0,fs.__)("Link"),value:e?.link,type:"string"},description:{label:(0,fs.__)("Description"),value:e?.description,type:"string"},parent:{label:(0,fs.__)("Parent ID"),value:e?.parent,type:"string"},count:{label:(0,fs.__)("Count"),value:`(${e?.count??0})`,type:"string"}}}function Yy(e,t,s){const{getEntityRecord:n}=e(u.store),{getBlockAttributes:o,getBlockName:r}=e(g.store);let i,a;const l=r?.(s);let c,d;if(Wy.includes(l)){const e=o?.(s);c=e?.id;const t=e?.type;d="tag"===t?"post_tag":t}else c=t?.termId,d=t?.taxonomy;return d&&c?(i=n("taxonomy",d,c),!i&&t?.termData&&(i=t.termData),i&&(a=Zy(i,c))):t?.termData&&(i=t.termData,a=Zy(i,i?.term_id)),a&&Object.keys(a).length?a:null}var qy={name:"core/term-data",usesContext:["taxonomy","termId","termData"],getValues({select:e,context:t,bindings:s,clientId:n}){const o=Yy(e,t,n),r={};for(const[e,t]of Object.entries(s)){const s=t.args.field,{value:n,label:i}=o?.[s]||{};r[e]=n??i??s}return r},setValues:({dispatch:e,context:t,bindings:s})=>!1,canUserEditValue({select:e,context:t,args:s}){const{getBlockName:n,getSelectedBlockClientId:o}=e(g.store),r=o(),i=n?.(r);if(Wy.includes(i))return!1;if(t?.termQuery)return!1;if(!t?.taxonomy||!t?.termId)return!1;Yy(e,t,void 0)?.[s.field];return!1},getFieldsList({select:e,context:t}){const s=e(g.store).getSelectedBlockClientId(),n=Yy(e,t,s);return n?Object.entries(n).map((([e,t])=>({label:t.label,type:t.type,args:{field:e}}))):[]}};const{store:Ky,...Qy}=i,Xy={};function Jy(e,t,s){const{registerEntityAction:n}=$((0,d.dispatch)(vc))}function ex(e,t,s){const{unregisterEntityAction:n}=$((0,d.dispatch)(vc))}function tx(e,t,s){const{registerEntityField:n}=$((0,d.dispatch)(vc))}function sx(e,t,s){const{unregisterEntityField:n}=$((0,d.dispatch)(vc))}G(Xy,{CreateTemplatePartModal:Jn,patternTitleField:ni,templateTitleField:Jr,BackButton:Xg,EntitiesSavedStatesExtensible:xd,Editor:Py,EditorContentSlotFill:Zg,GlobalStylesProvider:function({children:e}){const t=Ti();return t.isReady?(0,c.jsx)(Pi.Provider,{value:t,children:e}):null},mergeBaseAndUserConfigs:Ei,PluginPostExcerpt:lp,PostCardPanel:ff,PreferencesModal:function({extraSections:e={}}){const t=(0,d.useSelect)((e=>e(ja).isModalActive("editor/preferences")),[]),{closeModal:s}=(0,d.useDispatch)(ja);return t?(0,c.jsx)(Ny,{closeModal:s,children:(0,c.jsx)(My,{extraSections:e})}):null},usePostActions:cf,usePostFields:Ly,ToolsMoreMenuGroup:u_,ViewMoreMenuGroup:h_,ResizableEditor:U_,registerCoreBlockBindingsSources:function(){(0,x.registerBlockBindingsSource)(Fy),(0,x.registerBlockBindingsSource)(Hy),(0,x.registerBlockBindingsSource)($y),(0,x.registerBlockBindingsSource)(qy)},getTemplateInfo:Y,interfaceStore:Ky,...Qy})})(),(window.wp=window.wp||{}).editor=n})();
\ No newline at end of file
+function ki(e){return"[object Object]"===Object.prototype.toString.call(e)}function Ci(e){var t,s;return!1!==ki(e)&&(void 0===(t=e.constructor)||!1!==ki(s=t.prototype)&&!1!==s.hasOwnProperty("isPrototypeOf"))}const{GlobalStylesContext:Pi,cleanEmptyObject:ji}=$(g.privateApis);function Ei(e,t){return Si()(e,t,{isMergeableObject:Ci,customMerge:e=>{if("backgroundImage"===e)return(e,t)=>t}})}function Ti(){const[e,t,s]=function(){const{globalStylesId:e,isReady:t,settings:s,styles:n,_links:o}=(0,d.useSelect)((e=>{const{getEntityRecord:t,getEditedEntityRecord:s,hasFinishedResolution:n,canUser:o}=e(u.store),r=e(u.store).__experimentalGetCurrentGlobalStylesId();let i;const a=r?o("update",{kind:"root",name:"globalStyles",id:r}):null;r&&"boolean"==typeof a&&(i=a?s("root","globalStyles",r):t("root","globalStyles",r,{context:"view"}));let l=!1;return n("__experimentalGetCurrentGlobalStylesId")&&(l=!r||(a?n("getEditedEntityRecord",["root","globalStyles",r]):n("getEntityRecord",["root","globalStyles",r,{context:"view"}]))),{globalStylesId:r,isReady:l,settings:i?.settings,styles:i?.styles,_links:i?._links}}),[]),{getEditedEntityRecord:r}=(0,d.useSelect)(u.store),{editEntityRecord:i}=(0,d.useDispatch)(u.store);return[t,(0,p.useMemo)((()=>({settings:s??{},styles:n??{},_links:o??{}})),[s,n,o]),(0,p.useCallback)(((t,s={})=>{const n=r("root","globalStyles",e),o="function"==typeof t?t({styles:n?.styles??{},settings:n?.settings??{},_links:n?._links??{}}):t;i("root","globalStyles",e,{styles:ji(o.styles)||{},settings:ji(o.settings)||{},_links:ji(o._links)||{}},s)}),[e,i,r])]}(),[n,o]=function(){const e=(0,d.useSelect)((e=>e(u.store).__experimentalGetCurrentThemeBaseGlobalStyles()),[]);return[!!e,e]}(),r=(0,p.useMemo)((()=>o&&t?Ei(o,t):{}),[t,o]);return(0,p.useMemo)((()=>({isReady:e&&n,user:t,base:o,merged:r,setUserConfig:s})),[r,t,o,s,e,n])}const Bi={};function Ii(e){const{RECEIVE_INTERMEDIATE_RESULTS:t}=$(u.privateApis),{getEntityRecords:s}=e(u.store);return s("postType","wp_block",{per_page:-1,[t]:!0})}const Ni=["__experimentalBlockBindingsSupportedAttributes","__experimentalBlockDirectory","__experimentalDiscussionSettings","__experimentalFeatures","__experimentalGlobalStylesBaseStyles","alignWide","blockInspectorTabs","maxUploadFileSize","allowedMimeTypes","bodyPlaceholder","canLockBlocks","canUpdateBlockBindings","capabilities","clearBlockSelection","codeEditingEnabled","colors","disableCustomColors","disableCustomFontSizes","disableCustomSpacingSizes","disableCustomGradients","disableLayoutStyles","enableCustomLineHeight","enableCustomSpacing","enableCustomUnits","enableOpenverseMediaCategory","fontSizes","gradients","generateAnchors","onNavigateToEntityRecord","imageDefaultSize","imageDimensions","imageEditing","imageSizes","isPreviewMode","isRTL","locale","maxWidth","postContentAttributes","postsPerPage","readOnly","styles","titlePlaceholder","supportsLayout","widgetTypesToHideFromLegacyWidgetBlock","__unstableHasCustomAppender","__unstableResolvedAssets","__unstableIsBlockBasedTheme"],{globalStylesDataKey:Ri,globalStylesLinksDataKey:Di,selectBlockPatternsKey:Ai,reusableBlocksSelectKey:Mi,sectionRootClientIdKey:Li,mediaEditKey:Oi}=$(g.privateApis);var Fi=function(e,t,s,n){const o=(0,m.useViewportMatch)("medium"),{allowRightClickOverrides:r,blockTypes:i,focusMode:a,hasFixedToolbar:l,isDistractionFree:c,keepCaretInsideBlock:h,hasUploadPermissions:_,hiddenBlockTypes:f,canUseUnfilteredHTML:b,userCanCreatePages:y,pageOnFront:v,pageForPosts:w,userPatternCategories:S,restBlockPatternCategories:k,sectionRootClientId:P}=(0,d.useSelect)((e=>{const{canUser:r,getRawEntityRecord:i,getEntityRecord:a,getUserPatternCategories:l,getBlockPatternCategories:c}=e(u.store),{get:d}=e(C.store),{getBlockTypes:p}=e(x.store),{getBlocksByName:m,getBlockAttributes:h}=e(g.store),_=r("read",{kind:"root",name:"site"})?a("root","site"):void 0;return{allowRightClickOverrides:d("core","allowRightClickOverrides"),blockTypes:p(),canUseUnfilteredHTML:i("postType",t,s)?._links?.hasOwnProperty("wp:action-unfiltered-html"),focusMode:d("core","focusMode"),hasFixedToolbar:d("core","fixedToolbar")||!o,hiddenBlockTypes:d("core","hiddenBlockTypes"),isDistractionFree:d("core","distractionFree"),keepCaretInsideBlock:d("core","keepCaretInsideBlock"),hasUploadPermissions:r("create",{kind:"postType",name:"attachment"})??!0,userCanCreatePages:r("create",{kind:"postType",name:"page"}),pageOnFront:_?.page_on_front,pageForPosts:_?.page_for_posts,userPatternCategories:l(),restBlockPatternCategories:c(),sectionRootClientId:"template-locked"===n?m("core/post-content")?.[0]??"":m("core/group").find((e=>"main"===h(e)?.tagName))??""}}),[t,s,o,n]),{merged:j}=Ti(),E=j.styles??Bi,T=j._links??Bi,B=e.__experimentalAdditionalBlockPatterns??e.__experimentalBlockPatterns,I=e.__experimentalAdditionalBlockPatternCategories??e.__experimentalBlockPatternCategories,N=(0,p.useMemo)((()=>[...B||[]].filter((({postTypes:e})=>!e||Array.isArray(e)&&e.includes(t)))),[B,t]),R=(0,p.useMemo)((()=>[...I||[],...k||[]].filter(((e,t,s)=>t===s.findIndex((t=>e.name===t.name))))),[I,k]),{undo:D,setIsInserterOpened:A}=(0,d.useDispatch)(vc),{editMediaEntity:M}=$((0,d.useDispatch)(u.store)),{saveEntityRecord:L}=(0,d.useDispatch)(u.store),O=(0,p.useCallback)((e=>y?L("postType","page",e):Promise.reject({message:(0,fs.__)("You do not have permission to create Pages.")})),[L,y]),F=(0,p.useMemo)((()=>{if(f&&f.length>0){return(!0===e.allowedBlockTypes?i.map((({name:e})=>e)):e.allowedBlockTypes||[]).filter((e=>!f.includes(e)))}return e.allowedBlockTypes}),[e.allowedBlockTypes,f,i]),V=!1===e.focusMode;return(0,p.useMemo)((()=>{const s={...Object.fromEntries(Object.entries(e).filter((([e])=>Ni.includes(e)))),[Ri]:E,[Di]:T,allowedBlockTypes:F,allowRightClickOverrides:r,focusMode:a&&!V,hasFixedToolbar:l,isDistractionFree:c,keepCaretInsideBlock:h,[Oi]:_?M:void 0,mediaUpload:_?yi:void 0,mediaSideload:_?vi:void 0,__experimentalBlockPatterns:N,[Ai]:e=>{const{hasFinishedResolution:s,getBlockPatternsForPostType:n}=$(e(u.store)),o=n(t);return s("getBlockPatterns")?o:void 0},[Mi]:Ii,__experimentalBlockPatternCategories:R,__experimentalUserPatternCategories:S,__experimentalFetchLinkSuggestions:(t,s)=>(0,u.__experimentalFetchLinkSuggestions)(t,s,e),inserterMediaCategories:di,__experimentalFetchRichUrlData:u.__experimentalFetchUrlData,__experimentalCanUserUseUnfilteredHTML:b,__experimentalUndo:D,outlineMode:!c&&"wp_template"===t,__experimentalCreatePageEntity:O,__experimentalUserCanCreatePages:y,pageOnFront:v,pageForPosts:w,__experimentalPreferPatternsOnRoot:"wp_template"===t,templateLock:"wp_navigation"===t?"insert":e.templateLock,template:"wp_navigation"===t?[["core/navigation",{},[]]]:e.template,__experimentalSetIsInserterOpened:A,[Li]:P,editorTool:"post-only"===n&&"wp_template"!==t?"edit":void 0};return s}),[F,r,a,V,l,c,h,e,_,S,N,R,b,D,O,y,v,w,t,A,P,E,T,n,M])};const Vi=["core/post-title","core/post-featured-image","core/post-content"];function Ui(){const e=(0,p.useMemo)((()=>[...(0,h.applyFilters)("editor.postContentBlockTypes",Vi)]),[]),t=(0,d.useSelect)((t=>{const{getPostBlocksByName:s}=$(t(vc));return s(e)}),[e]);return t}function Hi(){const e=Ui(),{templateParts:t}=(0,d.useSelect)((e=>{const{getBlocksByName:t}=e(g.store);return{templateParts:t("core/template-part")}}),[]),s=(0,d.useSelect)((e=>{const{getBlockOrder:s}=e(g.store);return t.flatMap((e=>s(e)))}),[t]),n=(0,d.useRegistry)();return(0,p.useEffect)((()=>{const{setBlockEditingMode:e,unsetBlockEditingMode:t}=n.dispatch(g.store);return e("","disabled"),()=>{t("")}}),[n]),(0,p.useEffect)((()=>{const{setBlockEditingMode:t,unsetBlockEditingMode:s}=n.dispatch(g.store);return n.batch((()=>{for(const s of e)t(s,"contentOnly")})),()=>{n.batch((()=>{for(const t of e)s(t)}))}}),[e,n]),(0,p.useEffect)((()=>{const{setBlockEditingMode:e,unsetBlockEditingMode:s}=n.dispatch(g.store);return n.batch((()=>{for(const s of t)e(s,"contentOnly")})),()=>{n.batch((()=>{for(const e of t)s(e)}))}}),[t,n]),(0,p.useEffect)((()=>{const{setBlockEditingMode:e,unsetBlockEditingMode:t}=n.dispatch(g.store);return n.batch((()=>{for(const t of s)e(t,"disabled")})),()=>{n.batch((()=>{for(const e of s)t(e)}))}}),[s,n]),null}function zi(){const e=(0,d.useSelect)((e=>e(g.store).getBlockOrder()?.[0]),[]),{setBlockEditingMode:t,unsetBlockEditingMode:s}=(0,d.useDispatch)(g.store);(0,p.useEffect)((()=>{if(e)return t(e,"contentOnly"),()=>{s(e)}}),[e,s,t])}const Gi=["wp_block","wp_template","wp_template_part"];var $i=(0,c.jsxs)(L.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,c.jsx)(L.Path,{d:"m16 15.5h-8v-1.5h8zm-7.5-2.5h-2v-2h2zm3 0h-2v-2h2zm3 0h-2v-2h2zm3 0h-2v-2h2zm-9-3h-2v-2h2zm3 0h-2v-2h2zm3 0h-2v-2h2zm3 0h-2v-2h2z"}),(0,c.jsx)(L.Path,{d:"m18.5 6.5h-13a.5.5 0 0 0 -.5.5v9.5a.5.5 0 0 0 .5.5h13a.5.5 0 0 0 .5-.5v-9.5a.5.5 0 0 0 -.5-.5zm-13-1.5h13a2 2 0 0 1 2 2v9.5a2 2 0 0 1 -2 2h-13a2 2 0 0 1 -2-2v-9.5a2 2 0 0 1 2-2z"})]}),Wi=(0,c.jsx)(L.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,c.jsx)(L.Path,{d:"M3 6h11v1.5H3V6Zm3.5 5.5h11V13h-11v-1.5ZM21 17H10v1.5h11V17Z"})}),Zi=(0,c.jsx)(L.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,c.jsx)(L.Path,{d:"M20.8 10.7l-4.3-4.3-1.1 1.1 4.3 4.3c.1.1.1.3 0 .4l-4.3 4.3 1.1 1.1 4.3-4.3c.7-.8.7-1.9 0-2.6zM4.2 11.8l4.3-4.3-1-1-4.3 4.3c-.7.7-.7 1.8 0 2.5l4.3 4.3 1.1-1.1-4.3-4.3c-.2-.1-.2-.3-.1-.4z"})}),Yi=(0,c.jsx)(L.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,c.jsx)(L.Path,{fillRule:"evenodd",clipRule:"evenodd",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-2zM8.5 18.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h2.5v13zm10-.5c0 .3-.2.5-.5.5h-8v-13h8c.3 0 .5.2.5.5v12z"})}),qi=(0,c.jsx)(L.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,c.jsx)(L.Path,{fillRule:"evenodd",clipRule:"evenodd",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-4 14.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h8v13zm4.5-.5c0 .3-.2.5-.5.5h-2.5v-13H18c.3 0 .5.2.5.5v12z"})}),Ki=(0,c.jsx)(L.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,c.jsx)(L.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"})}),Qi=(0,c.jsx)(L.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,c.jsx)(L.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"})}),Xi=(0,c.jsx)(L.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,c.jsx)(L.Path,{d:"m19 7-3-3-8.5 8.5-1 4 4-1L19 7Zm-7 11.5H5V20h7v-1.5Z"})}),Ji=(0,c.jsx)(L.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,c.jsx)(L.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"})}),ea=(0,c.jsxs)(L.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,c.jsx)(L.Path,{d:"M15.5 7.5h-7V9h7V7.5Zm-7 3.5h7v1.5h-7V11Zm7 3.5h-7V16h7v-1.5Z"}),(0,c.jsx)(L.Path,{d:"M17 4H7a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2ZM7 5.5h10a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H7a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5Z"})]}),ta=(0,c.jsx)(L.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,c.jsx)(L.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"})}),sa=(0,c.jsx)(L.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,c.jsx)(L.Path,{d:"M12 4V2.2L9 4.8l3 2.5V5.5c3.6 0 6.5 2.9 6.5 6.5 0 2.9-1.9 5.3-4.5 6.2v.2l-.1-.2c-.4.1-.7.2-1.1.2l.2 1.5c.3 0 .6-.1 1-.2 3.5-.9 6-4 6-7.7 0-4.4-3.6-8-8-8zm-7.9 7l1.5.2c.1-1.2.5-2.3 1.2-3.2l-1.1-.9C4.8 8.2 4.3 9.6 4.1 11zm1.5 1.8l-1.5.2c.1.7.3 1.4.5 2 .3.7.6 1.3 1 1.8l1.2-.8c-.3-.5-.6-1-.8-1.5s-.4-1.1-.4-1.7zm1.5 5.5c1.1.9 2.4 1.4 3.8 1.6l.2-1.5c-1.1-.1-2.2-.5-3.1-1.2l-.9 1.1z"})});const na=window.wp.commands;var oa=(0,c.jsx)(L.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,c.jsx)(L.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"})}),ra=(0,c.jsx)(L.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,c.jsx)(L.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"})});const ia=window.wp.viewport,aa=window.wp.plugins;var la=(0,c.jsx)(L.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,c.jsx)(L.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"})});function ca(e){return["core/edit-post","core/edit-site"].includes(e)?(k()(`${e} interface scope`,{alternative:"core interface scope",hint:"core/edit-post and core/edit-site are merging.",version:"6.6"}),"core"):e}function da(e,t){return"core"===e&&"edit-site/template"===t?(k()("edit-site/template sidebar",{alternative:"edit-post/document",version:"6.6"}),"edit-post/document"):"core"===e&&"edit-site/block-inspector"===t?(k()("edit-site/block-inspector sidebar",{alternative:"edit-post/block",version:"6.6"}),"edit-post/block"):t}const ua=(e,t)=>({type:"SET_DEFAULT_COMPLEMENTARY_AREA",scope:e=ca(e),area:t=da(e,t)}),pa=(e,t)=>({registry:s,dispatch:n})=>{if(!t)return;e=ca(e),t=da(e,t);s.select(C.store).get(e,"isComplementaryAreaVisible")||s.dispatch(C.store).set(e,"isComplementaryAreaVisible",!0),n({type:"ENABLE_COMPLEMENTARY_AREA",scope:e,area:t})},ma=e=>({registry:t})=>{e=ca(e);t.select(C.store).get(e,"isComplementaryAreaVisible")&&t.dispatch(C.store).set(e,"isComplementaryAreaVisible",!1)},ha=(e,t)=>({registry:s})=>{if(!t)return;e=ca(e),t=da(e,t);const n=s.select(C.store).get(e,"pinnedItems");!0!==n?.[t]&&s.dispatch(C.store).set(e,"pinnedItems",{...n,[t]:!0})},ga=(e,t)=>({registry:s})=>{if(!t)return;e=ca(e),t=da(e,t);const n=s.select(C.store).get(e,"pinnedItems");s.dispatch(C.store).set(e,"pinnedItems",{...n,[t]:!1})};function _a(e,t){return function({registry:s}){k()("dispatch( 'core/interface' ).toggleFeature",{since:"6.0",alternative:"dispatch( 'core/preferences' ).toggle"}),s.dispatch(C.store).toggle(e,t)}}function fa(e,t,s){return function({registry:n}){k()("dispatch( 'core/interface' ).setFeatureValue",{since:"6.0",alternative:"dispatch( 'core/preferences' ).set"}),n.dispatch(C.store).set(e,t,!!s)}}function ba(e,t){return function({registry:s}){k()("dispatch( 'core/interface' ).setFeatureDefaults",{since:"6.0",alternative:"dispatch( 'core/preferences' ).setDefaults"}),s.dispatch(C.store).setDefaults(e,t)}}function ya(e){return{type:"OPEN_MODAL",name:e}}function xa(){return{type:"CLOSE_MODAL"}}const va=(0,d.createRegistrySelector)((e=>(t,s)=>{s=ca(s);const n=e(C.store).get(s,"isComplementaryAreaVisible");if(void 0!==n)return!1===n?null:t?.complementaryAreas?.[s]})),wa=(0,d.createRegistrySelector)((e=>(t,s)=>{s=ca(s);const n=e(C.store).get(s,"isComplementaryAreaVisible"),o=t?.complementaryAreas?.[s];return n&&void 0===o})),Sa=(0,d.createRegistrySelector)((e=>(t,s,n)=>{n=da(s=ca(s),n);const o=e(C.store).get(s,"pinnedItems");return o?.[n]??!0})),ka=(0,d.createRegistrySelector)((e=>(t,s,n)=>(k()("select( 'core/interface' ).isFeatureActive( scope, featureName )",{since:"6.0",alternative:"select( 'core/preferences' ).get( scope, featureName )"}),!!e(C.store).get(s,n))));function Ca(e,t){return e.activeModal===t}var Pa=(0,d.combineReducers)({complementaryAreas:function(e={},t){switch(t.type){case"SET_DEFAULT_COMPLEMENTARY_AREA":{const{scope:s,area:n}=t;return e[s]?e:{...e,[s]:n}}case"ENABLE_COMPLEMENTARY_AREA":{const{scope:s,area:n}=t;return{...e,[s]:n}}}return e},activeModal:function(e=null,t){switch(t.type){case"OPEN_MODAL":return t.name;case"CLOSE_MODAL":return null}return e}});const ja=(0,d.createReduxStore)("core/interface",{reducer:Pa,actions:o,selectors:r});function Ea({as:e=Hn.Button,scope:t,identifier:s,icon:n,selectedIcon:o,name:r,shortcut:i,...a}){const l=e,u=(0,aa.usePluginContext)(),p=n||u.icon,m=s||`${u.name}/${r}`,h=(0,d.useSelect)((e=>e(ja).getActiveComplementaryArea(t)===m),[m,t]),{enableComplementaryArea:g,disableComplementaryArea:_}=(0,d.useDispatch)(ja);return(0,c.jsx)(l,{icon:o&&h?o:p,"aria-controls":m.replace("/",":"),"aria-checked":(f=a.role,["checkbox","option","radio","switch","menuitemcheckbox","menuitemradio","treeitem"].includes(f)?h:void 0),onClick:()=>{h?_(t):g(t,m)},shortcut:i,...a});var f}(0,d.register)(ja);var Ta=({children:e,className:t,toggleButtonProps:s})=>{const n=(0,c.jsx)(Ea,{icon:la,...s});return(0,c.jsxs)("div",{className:mr("components-panel__header","interface-complementary-area-header",t),tabIndex:-1,children:[e,n]})};const Ba=()=>{};function Ia({name:e,as:t=Hn.Button,onClick:s,...n}){return(0,c.jsx)(Hn.Fill,{name:e,children:({onClick:e})=>(0,c.jsx)(t,{onClick:s||e?(...t)=>{(s||Ba)(...t),(e||Ba)(...t)}:void 0,...n})})}Ia.Slot=function({name:e,as:t=Hn.MenuGroup,fillProps:s={},bubblesVirtually:n,...o}){return(0,c.jsx)(Hn.Slot,{name:e,bubblesVirtually:n,fillProps:s,children:e=>{if(!p.Children.toArray(e).length)return null;const s=[];p.Children.forEach(e,(({props:{__unstableExplicitMenuItem:e,__unstableTarget:t}})=>{t&&e&&s.push(t)}));const n=p.Children.map(e,(e=>!e.props.__unstableExplicitMenuItem&&s.includes(e.props.__unstableTarget)?null:e));return(0,c.jsx)(t,{...o,children:n})}})};var Na=Ia;const Ra=({__unstableExplicitMenuItem:e,__unstableTarget:t,...s})=>(0,c.jsx)(Hn.MenuItem,{...s});function Da({scope:e,target:t,__unstableExplicitMenuItem:s,...n}){return(0,c.jsx)(Ea,{as:n=>(0,c.jsx)(Na,{__unstableExplicitMenuItem:s,__unstableTarget:`${e}/${t}`,as:Ra,name:`${e}/plugin-more-menu`,...n}),role:"menuitemcheckbox",selectedIcon:zn,name:t,scope:e,...n})}function Aa({scope:e,...t}){return(0,c.jsx)(Hn.Fill,{name:`PinnedItems/${e}`,...t})}Aa.Slot=function({scope:e,className:t,...s}){return(0,c.jsx)(Hn.Slot,{name:`PinnedItems/${e}`,...s,children:e=>e?.length>0&&(0,c.jsx)("div",{className:mr(t,"interface-pinned-items"),children:e})})};var Ma=Aa;const La={open:{width:280},closed:{width:0},mobileOpen:{width:"100vw"}};function Oa({activeArea:e,isActive:t,scope:s,children:n,className:o,id:r}){const i=(0,m.useReducedMotion)(),a=(0,m.useViewportMatch)("medium","<"),l=(0,m.usePrevious)(e),d=(0,m.usePrevious)(t),[,u]=(0,p.useState)({});(0,p.useEffect)((()=>{u({})}),[t]);const h={type:"tween",duration:i||a||l&&e&&e!==l?0:.3,ease:[.6,0,.4,1]};return(0,c.jsx)(Hn.Fill,{name:`ComplementaryArea/${s}`,children:(0,c.jsx)(Hn.__unstableAnimatePresence,{initial:!1,children:(d||t)&&(0,c.jsx)(Hn.__unstableMotion.div,{variants:La,initial:"closed",animate:a?"mobileOpen":"open",exit:"closed",transition:h,className:"interface-complementary-area__fill",children:(0,c.jsx)("div",{id:r,className:o,style:{width:a?"100vw":280},children:n})})})})}function Fa({children:e,className:t,closeLabel:s=(0,fs.__)("Close plugin"),identifier:n,header:o,headerClassName:r,icon:i,isPinnable:a=!0,panelClassName:l,scope:u,name:h,title:g,toggleShortcut:_,isActiveByDefault:f}){const b=(0,aa.usePluginContext)(),y=i||b.icon,x=n||`${b.name}/${h}`,[v,w]=(0,p.useState)(!1),{isLoading:S,isActive:k,isPinned:P,activeArea:j,isSmall:E,isLarge:T,showIconLabels:B}=(0,d.useSelect)((e=>{const{getActiveComplementaryArea:t,isComplementaryAreaLoading:s,isItemPinned:n}=e(ja),{get:o}=e(C.store),r=t(u);return{isLoading:s(u),isActive:r===x,isPinned:n(u,x),activeArea:r,isSmall:e(ia.store).isViewportMatch("< medium"),isLarge:e(ia.store).isViewportMatch("large"),showIconLabels:o("core","showIconLabels")}}),[x,u]),I=(0,m.useViewportMatch)("medium","<");!function(e,t,s,n,o){const r=(0,p.useRef)(!1),i=(0,p.useRef)(!1),{enableComplementaryArea:a,disableComplementaryArea:l}=(0,d.useDispatch)(ja);(0,p.useEffect)((()=>{n&&o&&!r.current?(l(e),i.current=!0):i.current&&!o&&r.current?(i.current=!1,a(e,t)):i.current&&s&&s!==t&&(i.current=!1),o!==r.current&&(r.current=o)}),[n,o,e,t,s,l,a])}(u,x,j,k,E);const{enableComplementaryArea:N,disableComplementaryArea:R,pinItem:D,unpinItem:A}=(0,d.useDispatch)(ja);if((0,p.useEffect)((()=>{f&&void 0===j&&!E?N(u,x):void 0===j&&E&&R(u,x),w(!0)}),[j,f,u,x,E,N,R]),v)return(0,c.jsxs)(c.Fragment,{children:[a&&(0,c.jsx)(Ma,{scope:u,children:P&&(0,c.jsx)(Ea,{scope:u,identifier:x,isPressed:k&&(!B||T),"aria-expanded":k,"aria-disabled":S,label:g,icon:B?zn:y,showTooltip:!B,variant:B?"tertiary":void 0,size:"compact",shortcut:_})}),h&&a&&(0,c.jsx)(Da,{target:h,scope:u,icon:y,identifier:x,children:g}),(0,c.jsxs)(Oa,{activeArea:j,isActive:k,className:mr("interface-complementary-area",t),scope:u,id:x.replace("/",":"),children:[(0,c.jsx)(Ta,{className:r,closeLabel:s,onClose:()=>R(u),toggleButtonProps:{label:s,size:"compact",shortcut:_,scope:u,identifier:x},children:o||(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("h2",{className:"interface-complementary-area-header__title",children:g}),a&&!I&&(0,c.jsx)(Hn.Button,{className:"interface-complementary-area__pin-unpin-item",icon:P?oa:ra,label:P?(0,fs.__)("Unpin from toolbar"):(0,fs.__)("Pin to toolbar"),onClick:()=>(P?A:D)(u,x),isPressed:P,"aria-expanded":P,size:"compact"})]})}),(0,c.jsx)(Hn.Panel,{className:l,children:e})]})]})}Fa.Slot=function({scope:e,...t}){return(0,c.jsx)(Hn.Slot,{name:`ComplementaryArea/${e}`,...t})};var Va=Fa;var Ua=({isActive:e})=>((0,p.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")}}),[]),(0,p.useEffect)((()=>(e?document.body.classList.add("is-fullscreen-mode"):document.body.classList.remove("is-fullscreen-mode"),()=>{e&&document.body.classList.remove("is-fullscreen-mode")})),[e]),null);const Ha=(0,p.forwardRef)((({children:e,className:t,ariaLabel:s,as:n="div",...o},r)=>(0,c.jsx)(n,{ref:r,className:mr("admin-ui-navigable-region",t),"aria-label":s,role:"region",tabIndex:"-1",...o,children:e})));Ha.displayName="NavigableRegion";var za=Ha;const Ga={type:"tween",duration:.25,ease:[.6,0,.4,1]};const $a={hidden:{opacity:1,marginTop:-60},visible:{opacity:1,marginTop:0},distractionFreeHover:{opacity:1,marginTop:0,transition:{...Ga,delay:.2,delayChildren:.2}},distractionFreeHidden:{opacity:0,marginTop:-60},distractionFreeDisabled:{opacity:0,marginTop:0,transition:{...Ga,delay:.8,delayChildren:.8}}};var Wa=(0,p.forwardRef)((function({isDistractionFree:e,footer:t,header:s,editorNotices:n,sidebar:o,secondarySidebar:r,content:i,actions:a,labels:l,className:d},u){const[h,g]=(0,m.useResizeObserver)(),_=(0,m.useViewportMatch)("medium","<"),f={type:"tween",duration:(0,m.useReducedMotion)()?0:.25,ease:[.6,0,.4,1]};!function(e){(0,p.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 b={...{header:(0,fs._x)("Header","header landmark area"),body:(0,fs.__)("Content"),secondarySidebar:(0,fs.__)("Block Library"),sidebar:(0,fs._x)("Settings","settings landmark area"),actions:(0,fs.__)("Publish"),footer:(0,fs.__)("Footer")},...l};return(0,c.jsxs)("div",{ref:u,className:mr(d,"interface-interface-skeleton",!!t&&"has-footer"),children:[(0,c.jsxs)("div",{className:"interface-interface-skeleton__editor",children:[(0,c.jsx)(Hn.__unstableAnimatePresence,{initial:!1,children:!!s&&(0,c.jsx)(za,{as:Hn.__unstableMotion.div,className:"interface-interface-skeleton__header","aria-label":b.header,initial:e&&!_?"distractionFreeHidden":"hidden",whileHover:e&&!_?"distractionFreeHover":"visible",animate:e&&!_?"distractionFreeDisabled":"visible",exit:e&&!_?"distractionFreeHidden":"hidden",variants:$a,transition:f,children:s})}),e&&(0,c.jsx)("div",{className:"interface-interface-skeleton__header",children:n}),(0,c.jsxs)("div",{className:"interface-interface-skeleton__body",children:[(0,c.jsx)(Hn.__unstableAnimatePresence,{initial:!1,children:!!r&&(0,c.jsx)(za,{className:"interface-interface-skeleton__secondary-sidebar",ariaLabel:b.secondarySidebar,as:Hn.__unstableMotion.div,initial:"closed",animate:"open",exit:"closed",variants:{open:{width:g.width},closed:{width:0}},transition:f,children:(0,c.jsxs)(Hn.__unstableMotion.div,{style:{position:"absolute",width:_?"100vw":"fit-content",height:"100%",left:0},variants:{open:{x:0},closed:{x:"-100%"}},transition:f,children:[h,r]})})}),(0,c.jsx)(za,{className:"interface-interface-skeleton__content",ariaLabel:b.body,children:i}),!!o&&(0,c.jsx)(za,{className:"interface-interface-skeleton__sidebar",ariaLabel:b.sidebar,children:o}),!!a&&(0,c.jsx)(za,{className:"interface-interface-skeleton__actions",ariaLabel:b.actions,children:a})]})]}),!!t&&(0,c.jsx)(za,{className:"interface-interface-skeleton__footer",ariaLabel:b.footer,children:t})]})}));const{RenamePatternModal:Za}=$(ao.privateApis),Ya="editor/pattern-rename";function qa(){const{record:e,postType:t}=(0,d.useSelect)((e=>{const{getCurrentPostType:t,getCurrentPostId:s}=e(vc),{getEditedEntityRecord:n}=e(u.store),o=t();return{record:n("postType",o,s()),postType:o}}),[]),{closeModal:s}=(0,d.useDispatch)(ja);return(0,d.useSelect)((e=>e(ja).isModalActive(Ya)))&&t===N?(0,c.jsx)(Za,{onClose:s,pattern:e}):null}const{DuplicatePatternModal:Ka}=$(ao.privateApis),Qa="editor/pattern-duplicate";function Xa(){const{record:e,postType:t}=(0,d.useSelect)((e=>{const{getCurrentPostType:t,getCurrentPostId:s}=e(vc),{getEditedEntityRecord:n}=e(u.store),o=t();return{record:n("postType",o,s()),postType:o}}),[]),{closeModal:s}=(0,d.useDispatch)(ja);return(0,d.useSelect)((e=>e(ja).isModalActive(Qa)))&&t===N?(0,c.jsx)(Ka,{onClose:s,onSuccess:()=>s(),pattern:e}):null}const{BlockRemovalWarningModal:Ja}=$(g.privateApis),el=["core/post-content","core/post-template","core/query"],tl=[{postTypes:["wp_template","wp_template_part"],callback(e){if(e.filter((({name:e})=>el.includes(e))).length)return(0,fs._n)("Deleting this block will stop your post or page content from displaying on this template. It is not recommended.","Some of the deleted blocks will stop your post or page content from displaying on this template. It is not recommended.",e.length)}},{postTypes:["wp_block"],callback(e){if(e.filter((({attributes:e})=>e?.metadata?.bindings&&Object.values(e.metadata.bindings).some((e=>"core/pattern-overrides"===e.source)))).length)return(0,fs._n)("The deleted block allows instance overrides. Removing it may result in content not displaying where this pattern is used. Are you sure you want to proceed?","Some of the deleted blocks allow instance overrides. Removing them may result in content not displaying where this pattern is used. Are you sure you want to proceed?",e.length)}}];function sl(){const e=(0,d.useSelect)((e=>e(vc).getCurrentPostType()),[]),t=(0,p.useMemo)((()=>tl.filter((t=>t.postTypes.includes(e)))),[e]);return Ja&&t?(0,c.jsx)(Ja,{rules:t}):null}function nl({blockPatterns:e,onChoosePattern:t}){const{editEntityRecord:s}=(0,d.useDispatch)(u.store),{postType:n,postId:o}=(0,d.useSelect)((e=>{const{getCurrentPostType:t,getCurrentPostId:s}=e(vc);return{postType:t(),postId:s()}}),[]);return(0,c.jsx)(g.__experimentalBlockPatternsList,{blockPatterns:e,onClickPattern:(e,r)=>{s("postType",n,o,{blocks:r,content:({blocks:e=[]})=>(0,x.__unstableSerializeAndClean)(e)}),t()}})}function ol({onClose:e}){const[t,s]=(0,p.useState)(!0),{set:n}=(0,d.useDispatch)(C.store),o=function(){const{blockPatternsWithPostContentBlockType:e,postType:t}=(0,d.useSelect)((e=>{const{getPatternsByBlockTypes:t,getBlocksByName:s}=e(g.store),{getCurrentPostType:n,getRenderingMode:o}=e(vc);return{blockPatternsWithPostContentBlockType:t("core/post-content","post-only"===o()?"":s("core/post-content")?.[0]),postType:n()}}),[]);return(0,p.useMemo)((()=>e?.length?e.filter((e=>"page"===t&&!e.postTypes||Array.isArray(e.postTypes)&&e.postTypes.includes(t))):[]),[t,e])}();if(!(o.length>0))return null;function r(){e(),n("core","enableChoosePatternModal",t)}return(0,c.jsxs)(Hn.Modal,{className:"editor-start-page-options__modal",title:(0,fs.__)("Choose a pattern"),isFullScreen:!0,onRequestClose:r,children:[(0,c.jsx)("div",{className:"editor-start-page-options__modal-content",children:(0,c.jsx)(nl,{blockPatterns:o,onChoosePattern:r})}),(0,c.jsx)(Hn.Flex,{className:"editor-start-page-options__modal__actions",justify:"flex-start",expanded:!1,children:(0,c.jsx)(Hn.FlexItem,{children:(0,c.jsx)(Hn.CheckboxControl,{__nextHasNoMarginBottom:!0,checked:t,label:(0,fs.__)("Always show starter patterns for new pages"),onChange:e=>{s(e)}})})})]})}function rl(){const[e,t]=(0,p.useState)(!1),{isEditedPostDirty:s,isEditedPostEmpty:n}=(0,d.useSelect)(vc),{isModalActive:o}=(0,d.useSelect)(ja),{enabled:r,postId:i}=(0,d.useSelect)((e=>{const{getCurrentPostId:t,getCurrentPostType:s}=e(vc),n=e(C.store).get("core","enableChoosePatternModal");return{postId:t(),enabled:n&&B!==s()}}),[]);return(0,p.useEffect)((()=>{const e=!s()&&n(),i=o("editor/preferences");r&&e&&!i&&t(!0)}),[r,i,s,n,o]),e?(0,c.jsx)(ol,{onClose:()=>t(!1)}):null}const il=window.wp.keyboardShortcuts,al=[{keyCombination:{modifier:"primary",character:"b"},description:(0,fs.__)("Make the selected text bold.")},{keyCombination:{modifier:"primary",character:"i"},description:(0,fs.__)("Make the selected text italic.")},{keyCombination:{modifier:"primary",character:"k"},description:(0,fs.__)("Convert the selected text into a link.")},{keyCombination:{modifier:"primaryShift",character:"k"},description:(0,fs.__)("Remove a link.")},{keyCombination:{character:"[["},description:(0,fs.__)("Insert a link to a post or page.")},{keyCombination:{modifier:"primary",character:"u"},description:(0,fs.__)("Underline the selected text.")},{keyCombination:{modifier:"access",character:"d"},description:(0,fs.__)("Strikethrough the selected text.")},{keyCombination:{modifier:"access",character:"x"},description:(0,fs.__)("Make the selected text inline code.")},{keyCombination:{modifier:"access",character:"0"},aliases:[{modifier:"access",character:"7"}],description:(0,fs.__)("Convert the current heading to a paragraph.")},{keyCombination:{modifier:"access",character:"1-6"},description:(0,fs.__)("Convert the current paragraph or heading to a heading of level 1 to 6.")},{keyCombination:{modifier:"primaryShift",character:"SPACE"},description:(0,fs.__)("Add non breaking space.")}],ll=window.wp.keycodes;function cl({keyCombination:e,forceAriaLabel:t}){const s=e.modifier?ll.displayShortcutList[e.modifier](e.character):e.character,n=e.modifier?ll.shortcutAriaLabel[e.modifier](e.character):e.character;return(0,c.jsx)("kbd",{className:"editor-keyboard-shortcut-help-modal__shortcut-key-combination","aria-label":t||n,children:(Array.isArray(s)?s:[s]).map(((e,t)=>"+"===e?(0,c.jsx)(p.Fragment,{children:e},t):(0,c.jsx)("kbd",{className:"editor-keyboard-shortcut-help-modal__shortcut-key",children:e},t)))})}var dl=function({description:e,keyCombination:t,aliases:s=[],ariaLabel:n}){return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("div",{className:"editor-keyboard-shortcut-help-modal__shortcut-description",children:e}),(0,c.jsxs)("div",{className:"editor-keyboard-shortcut-help-modal__shortcut-term",children:[(0,c.jsx)(cl,{keyCombination:t,forceAriaLabel:n}),s.map(((e,t)=>(0,c.jsx)(cl,{keyCombination:e,forceAriaLabel:n},t)))]})]})};var ul=function({name:e}){const{keyCombination:t,description:s,aliases:n}=(0,d.useSelect)((t=>{const{getShortcutKeyCombination:s,getShortcutDescription:n,getShortcutAliases:o}=t(il.store);return{keyCombination:s(e),aliases:o(e),description:n(e)}}),[e]);return t?(0,c.jsx)(dl,{keyCombination:t,description:s,aliases:n}):null};const pl="editor/keyboard-shortcut-help",ml=({shortcuts:e})=>(0,c.jsx)("ul",{className:"editor-keyboard-shortcut-help-modal__shortcut-list",role:"list",children:e.map(((e,t)=>(0,c.jsx)("li",{className:"editor-keyboard-shortcut-help-modal__shortcut",children:"string"==typeof e?(0,c.jsx)(ul,{name:e}):(0,c.jsx)(dl,{...e})},t)))}),hl=({title:e,shortcuts:t,className:s})=>(0,c.jsxs)("section",{className:mr("editor-keyboard-shortcut-help-modal__section",s),children:[!!e&&(0,c.jsx)("h2",{className:"editor-keyboard-shortcut-help-modal__section-title",children:e}),(0,c.jsx)(ml,{shortcuts:t})]}),gl=({title:e,categoryName:t,additionalShortcuts:s=[]})=>{const n=(0,d.useSelect)((e=>e(il.store).getCategoryShortcuts(t)),[t]);return(0,c.jsx)(hl,{title:e,shortcuts:n.concat(s)})};var _l=function(){const e=(0,d.useSelect)((e=>e(ja).isModalActive(pl)),[]),{openModal:t,closeModal:s}=(0,d.useDispatch)(ja),n=()=>{e?s():t(pl)};return(0,il.useShortcut)("core/editor/keyboard-shortcuts",n),e?(0,c.jsxs)(Hn.Modal,{className:"editor-keyboard-shortcut-help-modal",title:(0,fs.__)("Keyboard shortcuts"),closeButtonLabel:(0,fs.__)("Close"),onRequestClose:n,children:[(0,c.jsx)(hl,{className:"editor-keyboard-shortcut-help-modal__main-shortcuts",shortcuts:["core/editor/keyboard-shortcuts"]}),(0,c.jsx)(gl,{title:(0,fs.__)("Global shortcuts"),categoryName:"global"}),(0,c.jsx)(gl,{title:(0,fs.__)("Selection shortcuts"),categoryName:"selection"}),(0,c.jsx)(gl,{title:(0,fs.__)("Block shortcuts"),categoryName:"block",additionalShortcuts:[{keyCombination:{character:"/"},description:(0,fs.__)("Change the block type after adding a new paragraph."),ariaLabel:(0,fs.__)("Forward-slash")}]}),(0,c.jsx)(hl,{title:(0,fs.__)("Text formatting"),shortcuts:al}),(0,c.jsx)(gl,{title:(0,fs.__)("List View shortcuts"),categoryName:"list-view"})]}):null};function fl({clientId:e,onClose:t}){const s=Ui(),{entity:n,onNavigateToEntityRecord:o,canEditTemplates:r}=(0,d.useSelect)((t=>{const{getBlockParentsByBlockName:n,getSettings:o,getBlockAttributes:r,getBlockParents:i}=t(g.store),{getCurrentTemplateId:a,getRenderingMode:l}=t(vc),c=n(e,"core/block",!0)[0];let d;if(c?d=t(u.store).getEntityRecord("postType","wp_block",r(c).ref):"template-locked"!==l()||i(e).some((e=>s.includes(e)))||(d=t(u.store).getEntityRecord("postType","wp_template",a())),!d)return{};return{canEditTemplates:t(u.store).canUser("create",{kind:"postType",name:"wp_template"}),entity:d,onNavigateToEntityRecord:o().onNavigateToEntityRecord}}),[e,s]);if(!n)return(0,c.jsx)(bl,{clientId:e,onClose:t});const i="wp_block"===n.type;let a=i?(0,fs.__)("Edit the pattern to move, delete, or make further changes to this block."):(0,fs.__)("Edit the template to move, delete, or make further changes to this block.");return r||(a=(0,fs.__)("Only users with permissions to edit the template can move or delete this block")),(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(g.__unstableBlockSettingsMenuFirstItem,{children:(0,c.jsx)(Hn.MenuItem,{onClick:()=>{o({postId:n.id,postType:n.type})},disabled:!r,children:i?(0,fs.__)("Edit pattern"):(0,fs.__)("Edit template")})}),(0,c.jsx)(Hn.__experimentalText,{variant:"muted",as:"p",className:"editor-content-only-settings-menu__description",children:a})]})}function bl({clientId:e,onClose:t}){const{contentLockingParent:s}=(0,d.useSelect)((t=>{const{getContentLockingParent:s}=$(t(g.store));return{contentLockingParent:s(e)}}),[e]),n=(0,g.useBlockDisplayInformation)(s),o=(0,d.useDispatch)(g.store);if(!n?.title)return null;const{modifyContentLockBlock:r}=$(o);return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(g.__unstableBlockSettingsMenuFirstItem,{children:(0,c.jsx)(Hn.MenuItem,{onClick:()=>{r(s),t()},children:(0,fs._x)("Unlock","Unlock content locked blocks")})}),(0,c.jsx)(Hn.__experimentalText,{variant:"muted",as:"p",className:"editor-content-only-settings-menu__description",children:(0,fs.__)("Temporarily unlock the parent block to edit, delete or make further changes to this block.")})]})}function yl(){return(0,c.jsx)(g.BlockSettingsMenuControls,{children:({selectedClientIds:e,onClose:t})=>1===e.length&&(0,c.jsx)(fl,{clientId:e[0],onClose:t})})}function xl(e){const{slug:t,patterns:s}=(0,d.useSelect)((e=>{const{getCurrentPostType:t,getCurrentPostId:s}=e(vc),{getEntityRecord:n,getBlockPatterns:o}=e(u.store),r=s();return{slug:n("postType",t(),r).slug,patterns:o()}}),[]),n=(0,d.useSelect)((e=>e(u.store).getCurrentTheme().stylesheet));return(0,p.useMemo)((()=>[{name:"fallback",blocks:(0,x.parse)(e),title:(0,fs.__)("Fallback content")},...s.filter((e=>Array.isArray(e.templateTypes)&&e.templateTypes.some((e=>t.startsWith(e))))).map((e=>({...e,blocks:(0,x.parse)(e.content).map((e=>function(e){return e.innerBlocks.find((e=>"core/template-part"===e.name))&&(e.innerBlocks=e.innerBlocks.map((e=>("core/template-part"===e.name&&void 0===e.attributes.theme&&(e.attributes.theme=n),e)))),"core/template-part"===e.name&&void 0===e.attributes.theme&&(e.attributes.theme=n),e}(e)))})))]),[e,t,s])}function vl({fallbackContent:e,onChoosePattern:t,postType:s}){const[,,n]=(0,u.useEntityBlockEditor)("postType",s),o=xl(e);return(0,c.jsx)(g.__experimentalBlockPatternsList,{blockPatterns:o,onClickPattern:(e,s)=>{n(s,{selection:void 0}),t()}})}function wl({slug:e,isCustom:t,onClose:s,postType:n}){const o=function(e,t=!1){return(0,d.useSelect)((s=>{const{getEntityRecord:n,getDefaultTemplateId:o}=s(u.store),r=o({slug:e,is_custom:t,ignore_empty:!0});return r?n("postType",B,r)?.content?.raw:void 0}),[e,t])}(e,t);return o?(0,c.jsxs)(Hn.Modal,{className:"editor-start-template-options__modal",title:(0,fs.__)("Choose a pattern"),closeLabel:(0,fs.__)("Cancel"),focusOnMount:"firstElement",onRequestClose:s,isFullScreen:!0,children:[(0,c.jsx)("div",{className:"editor-start-template-options__modal-content",children:(0,c.jsx)(vl,{fallbackContent:o,slug:e,isCustom:t,postType:n,onChoosePattern:()=>{s()}})}),(0,c.jsx)(Hn.Flex,{className:"editor-start-template-options__modal__actions",justify:"flex-end",expanded:!1,children:(0,c.jsx)(Hn.FlexItem,{children:(0,c.jsx)(Hn.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:s,children:(0,fs.__)("Skip")})})})]}):null}function Sl(){const[e,t]=(0,p.useState)(!1),{shouldOpenModal:s,slug:n,isCustom:o,postType:r,postId:i}=(0,d.useSelect)((e=>{const{getCurrentPostType:t,getCurrentPostId:s}=e(vc),n=t(),o=s(),{getEditedEntityRecord:r,hasEditsForEntityRecord:i}=e(u.store),a=r("postType",n,o);return{shouldOpenModal:!i("postType",n,o)&&""===a.content&&B===n,slug:a.slug,isCustom:a.is_custom,postType:n,postId:o}}),[]);return(0,p.useEffect)((()=>{t(!1)}),[r,i]),!s||e?null:(0,c.jsx)(wl,{slug:n,isCustom:o,postType:r,onClose:()=>t(!0)})}function kl(){const e=(0,d.useSelect)((e=>{const{richEditingEnabled:t,codeEditingEnabled:s}=e(vc).getEditorSettings();return!t||!s}),[]),{getBlockSelectionStart:t}=(0,d.useSelect)(g.store),{getActiveComplementaryArea:s}=(0,d.useSelect)(ja),{enableComplementaryArea:n,disableComplementaryArea:o}=(0,d.useDispatch)(ja),{redo:r,undo:i,savePost:a,setIsListViewOpened:l,switchEditorMode:c,toggleDistractionFree:u}=(0,d.useDispatch)(vc),{isEditedPostDirty:p,isPostSavingLocked:m,isListViewOpened:h,getEditorMode:_}=(0,d.useSelect)(vc);return(0,il.useShortcut)("core/editor/toggle-mode",(()=>{c("visual"===_()?"text":"visual")}),{isDisabled:e}),(0,il.useShortcut)("core/editor/toggle-distraction-free",(()=>{u()})),(0,il.useShortcut)("core/editor/undo",(e=>{i(),e.preventDefault()})),(0,il.useShortcut)("core/editor/redo",(e=>{r(),e.preventDefault()})),(0,il.useShortcut)("core/editor/save",(e=>{e.preventDefault(),m()||p()&&a()})),(0,il.useShortcut)("core/editor/toggle-list-view",(e=>{h()||(e.preventDefault(),l(!0))})),(0,il.useShortcut)("core/editor/toggle-sidebar",(e=>{e.preventDefault();if(["edit-post/document","edit-post/block"].includes(s("core")))o("core");else{const e=t()?"edit-post/block":"edit-post/document";n("core",e)}})),null}function Cl({clientId:e,onClose:t}){const{getBlocks:s}=(0,d.useSelect)(g.store),{replaceBlocks:n}=(0,d.useDispatch)(g.store);return(0,d.useSelect)((t=>t(g.store).canRemoveBlock(e)),[e])?(0,c.jsx)(Hn.MenuItem,{onClick:()=>{n(e,s(e)),t()},children:(0,fs.__)("Detach")}):null}function Pl({clientIds:e,blocks:t}){const[s,n]=(0,p.useState)(!1),{replaceBlocks:o}=(0,d.useDispatch)(g.store),{createSuccessNotice:r}=(0,d.useDispatch)(_s.store),{isBlockBasedTheme:i,canCreate:a}=(0,d.useSelect)((e=>({isBlockBasedTheme:e(u.store).getCurrentTheme()?.is_block_theme,canCreate:e(g.store).canInsertBlockType("core/template-part")})),[]);if(!i||!a)return null;return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(Hn.MenuItem,{icon:U,onClick:()=>{n(!0)},"aria-expanded":s,"aria-haspopup":"dialog",children:(0,fs.__)("Create template part")}),s&&(0,c.jsx)(Jn,{closeModal:()=>{n(!1)},blocks:t,onCreate:async t=>{o(e,(0,x.createBlock)("core/template-part",{slug:t.slug,theme:t.theme})),r((0,fs.__)("Template part created."),{type:"snackbar"})}})]})}function jl(){return(0,c.jsx)(g.BlockSettingsMenuControls,{children:({selectedClientIds:e,onClose:t})=>(0,c.jsx)(El,{clientIds:e,onClose:t})})}function El({clientIds:e,onClose:t}){const{blocks:s}=(0,d.useSelect)((t=>{const{getBlocksByClientId:s}=t(g.store);return{blocks:s(e)}}),[e]);return 1===s.length&&"core/template-part"===s[0]?.name?(0,c.jsx)(Cl,{clientId:e[0],onClose:t}):(0,c.jsx)(Pl,{clientIds:e,blocks:s})}const{ExperimentalBlockEditorProvider:Tl}=$(g.privateApis),{PatternsMenuItems:Bl}=$(ao.privateApis),Il=()=>{},Nl=["wp_block","wp_navigation","wp_template_part"];const Rl=ri((({post:e,settings:t,recovery:s,initialEdits:n,children:o,BlockEditorProviderComponent:r=Tl,__unstableTemplate:i})=>{const a=!!i,{editorSettings:l,selection:m,isReady:_,mode:f,defaultMode:b,postTypeEntities:y}=(0,d.useSelect)((t=>{const{getEditorSettings:s,getEditorSelection:n,getRenderingMode:o,__unstableIsEditorReady:r,getDefaultRenderingMode:i}=$(t(vc)),{getEntitiesConfig:l}=t(u.store),c=o(),d=i(e.type),p="template-locked"===d?a:void 0!==d,m=void 0!==d;return{editorSettings:s(),isReady:r(),mode:m?c:void 0,defaultMode:p?d:void 0,selection:n(),postTypeEntities:"wp_template"===e.type?l("postType"):null}}),[e.type,a]),v=a&&"post-only"!==f,w=v?i:e,S=(0,p.useMemo)((()=>{const t={};if("wp_template"===e.type){if("page"===e.slug)t.postType="page";else if("single"===e.slug)t.postType="post";else if("single"===e.slug.split("-")[0]){const s=y?.map((e=>e.name))||[],n=e.slug.match(`^single-(${s.join("|")})(?:-.+)?$`);n&&(t.postType=n[1])}}else Nl.includes(w.type)&&!v||(t.postId=e.id,t.postType=e.type);return{...t,templateSlug:"wp_template"===w.type?w.slug:void 0}}),[v,e.id,e.type,e.slug,w.type,w.slug,y]),{id:k,type:P}=w,j=Fi(l,P,k,f),[E,T,R]=function(e,t,s){const n="template-locked"===s?"template":"post",[o,r,i]=(0,u.useEntityBlockEditor)("postType",e.type,{id:e.id}),[a,l,c]=(0,u.useEntityBlockEditor)("postType",t?.type,{id:t?.id}),d=(0,p.useMemo)((()=>{if("wp_navigation"===e.type)return[(0,x.createBlock)("core/navigation",{ref:e.id,templateLock:!1})]}),[e.type,e.id]),m=(0,p.useMemo)((()=>d||("template"===n?a:o)),[d,n,a,o]);return t&&"template-locked"===s||"wp_navigation"===e.type?[m,Il,Il]:[m,"post"===n?r:l,"post"===n?i:c]}(e,i,f),{updatePostLock:D,setupEditor:A,updateEditorSettings:M,setCurrentTemplateId:L,setEditedPost:O,setRenderingMode:F}=$((0,d.useDispatch)(vc)),{createWarningNotice:V}=(0,d.useDispatch)(_s.store);return(0,p.useLayoutEffect)((()=>{s||(D(t.postLock),A(e,n,t.template),t.autosave&&V((0,fs.__)("There is an autosave of this post that is more recent than the version below."),{id:"autosave-exists",actions:[{label:(0,fs.__)("View the autosave"),url:t.autosave.editLink}]}))}),[]),(0,p.useEffect)((()=>{O(e.type,e.id)}),[e.type,e.id,O]),(0,p.useEffect)((()=>{M(t)}),[t,M]),(0,p.useEffect)((()=>{L(i?.id)}),[i?.id,L]),(0,p.useEffect)((()=>{b&&F(b)}),[b,F]),function(e,t){(0,p.useEffect)((()=>((0,h.addFilter)("blockEditor.__unstableCanInsertBlockType","removeTemplatePartsFromInserter",((s,n)=>!(!Gi.includes(e)&&"core/template-part"===n.name&&"post-only"===t)&&s)),(0,h.addFilter)("blockEditor.__unstableCanInsertBlockType","removePostContentFromInserter",((t,s,n,{getBlockParentsByBlockName:o})=>Gi.includes(e)||"core/post-content"!==s.name?t:o(n,"core/query").length>0)),()=>{(0,h.removeFilter)("blockEditor.__unstableCanInsertBlockType","removeTemplatePartsFromInserter"),(0,h.removeFilter)("blockEditor.__unstableCanInsertBlockType","removePostContentFromInserter")})),[e,t])}(e.type,f),(0,na.useCommandLoader)({name:"core/editor/edit-ui",hook:function(){const{editorMode:e,isListViewOpen:t,showBlockBreadcrumbs:s,isDistractionFree:n,isFocusMode:o,isPreviewMode:r,isViewable:i,isCodeEditingEnabled:a,isRichEditingEnabled:l,isPublishSidebarEnabled:c}=(0,d.useSelect)((e=>{const{get:t}=e(C.store),{isListViewOpened:s,getCurrentPostType:n,getEditorSettings:o}=e(vc),{getSettings:r}=e(g.store),{getPostType:i}=e(u.store);return{editorMode:t("core","editorMode")??"visual",isListViewOpen:s(),showBlockBreadcrumbs:t("core","showBlockBreadcrumbs"),isDistractionFree:t("core","distractionFree"),isFocusMode:t("core","focusMode"),isPreviewMode:r().isPreviewMode,isViewable:i(n())?.viewable??!1,isCodeEditingEnabled:o().codeEditingEnabled,isRichEditingEnabled:o().richEditingEnabled,isPublishSidebarEnabled:e(vc).isPublishSidebarEnabled()}}),[]),{getActiveComplementaryArea:p}=(0,d.useSelect)(ja),{toggle:m}=(0,d.useDispatch)(C.store),{createInfoNotice:h}=(0,d.useDispatch)(_s.store),{__unstableSaveForPreview:_,setIsListViewOpened:f,switchEditorMode:b,toggleDistractionFree:y,toggleSpotlightMode:x,toggleTopToolbar:v}=(0,d.useDispatch)(vc),{openModal:w,enableComplementaryArea:S,disableComplementaryArea:k}=(0,d.useDispatch)(ja),{getCurrentPostId:P}=(0,d.useSelect)(vc),j=a&&l;if(r)return{commands:[],isLoading:!1};const E=[];return E.push({name:"core/open-shortcut-help",label:(0,fs.__)("Keyboard shortcuts"),icon:$i,callback:({close:e})=>{e(),w("editor/keyboard-shortcut-help")}}),E.push({name:"core/toggle-distraction-free",label:n?(0,fs.__)("Exit Distraction free"):(0,fs.__)("Enter Distraction free"),callback:({close:e})=>{y(),e()}}),E.push({name:"core/open-preferences",label:(0,fs.__)("Editor preferences"),callback:({close:e})=>{e(),w("editor/preferences")}}),E.push({name:"core/toggle-spotlight-mode",label:o?(0,fs.__)("Exit Spotlight mode"):(0,fs.__)("Enter Spotlight mode"),callback:({close:e})=>{x(),e()}}),E.push({name:"core/toggle-list-view",label:t?(0,fs.__)("Close List View"):(0,fs.__)("Open List View"),icon:Wi,callback:({close:e})=>{f(!t),e(),h(t?(0,fs.__)("List View off."):(0,fs.__)("List View on."),{id:"core/editor/toggle-list-view/notice",type:"snackbar"})}}),E.push({name:"core/toggle-top-toolbar",label:(0,fs.__)("Top toolbar"),callback:({close:e})=>{v(),e()}}),j&&E.push({name:"core/toggle-code-editor",label:"visual"===e?(0,fs.__)("Open code editor"):(0,fs.__)("Exit code editor"),icon:Zi,callback:({close:t})=>{b("visual"===e?"text":"visual"),t()}}),E.push({name:"core/toggle-breadcrumbs",label:s?(0,fs.__)("Hide block breadcrumbs"):(0,fs.__)("Show block breadcrumbs"),callback:({close:e})=>{m("core","showBlockBreadcrumbs"),e(),h(s?(0,fs.__)("Breadcrumbs hidden."):(0,fs.__)("Breadcrumbs visible."),{id:"core/editor/toggle-breadcrumbs/notice",type:"snackbar"})}}),E.push({name:"core/open-settings-sidebar",label:(0,fs.__)("Show or hide the Settings panel"),icon:(0,fs.isRTL)()?Yi:qi,callback:({close:e})=>{const t=p("core");e(),"edit-post/document"===t?k("core"):S("core","edit-post/document")}}),E.push({name:"core/open-block-inspector",label:(0,fs.__)("Show or hide the Block settings panel"),icon:Ki,callback:({close:e})=>{const t=p("core");e(),"edit-post/block"===t?k("core"):S("core","edit-post/block")}}),E.push({name:"core/toggle-publish-sidebar",label:c?(0,fs.__)("Disable pre-publish checks"):(0,fs.__)("Enable pre-publish checks"),icon:Qi,callback:({close:e})=>{e(),m("core","isPublishSidebarEnabled"),h(c?(0,fs.__)("Pre-publish checks disabled."):(0,fs.__)("Pre-publish checks enabled."),{id:"core/editor/publish-sidebar/notice",type:"snackbar"})}}),i&&E.push({name:"core/preview-link",label:(0,fs.__)("Preview in a new tab"),icon:Fn,callback:async({close:e})=>{e();const t=P(),s=await _();window.open(s,`wp-preview-${t}`)}}),{commands:E,isLoading:!1}}}),(0,na.useCommandLoader)({name:"core/editor/contextual-commands",hook:function(){const{postType:e}=(0,d.useSelect)((e=>{const{getCurrentPostType:t}=e(vc);return{postType:t()}}),[]),{openModal:t}=(0,d.useDispatch)(ja),s=[];return e===N&&(s.push({name:"core/rename-pattern",label:(0,fs.__)("Rename pattern"),icon:Xi,callback:({close:e})=>{t(Ya),e()}}),s.push({name:"core/duplicate-pattern",label:(0,fs.__)("Duplicate pattern"),icon:Ji,callback:({close:e})=>{t(Qa),e()}})),{isLoading:!1,commands:s}},context:"entity-edit"}),(0,na.useCommandLoader)({name:"core/editor/page-content-focus",hook:function(){const{onNavigateToEntityRecord:e,goBack:t,templateId:s,isPreviewMode:n}=(0,d.useSelect)((e=>{const{getRenderingMode:t,getEditorSettings:s,getCurrentTemplateId:n}=$(e(vc)),o=s();return{isTemplateHidden:"post-only"===t(),onNavigateToEntityRecord:o.onNavigateToEntityRecord,getEditorSettings:s,goBack:o.onNavigateToPreviousEntityRecord,templateId:n(),isPreviewMode:o.isPreviewMode}}),[]),{editedRecord:o,hasResolved:r}=(0,u.useEntityRecord)("postType","wp_template",s);if(n)return{isLoading:!1,commands:[]};const i=[];return s&&r&&i.push({name:"core/switch-to-template-focus",label:(0,fs.sprintf)((0,fs.__)("Edit template: %s"),(0,Ln.decodeEntities)(o.title)),icon:W,callback:({close:t})=>{e({postId:s,postType:"wp_template"}),t()}}),t&&i.push({name:"core/switch-to-previous-entity",label:(0,fs.__)("Go back"),icon:ea,callback:({close:e})=>{t(),e()}}),{isLoading:!1,commands:i}},context:"entity-edit"}),(0,na.useCommandLoader)({name:"core/edit-site/manipulate-document",hook:function(){const{postType:e,postId:t}=(0,d.useSelect)((e=>{const{getCurrentPostId:t,getCurrentPostType:s}=e(vc);return{postType:s(),postId:t()}}),[]),{editedRecord:s,hasResolved:n}=(0,u.useEntityRecord)("postType",e,t),{revertTemplate:o}=$((0,d.useDispatch)(vc));if(!n||![I,B].includes(e))return{isLoading:!0,commands:[]};const r=[];if(On(s)){const e=s.type===B?(0,fs.sprintf)((0,fs.__)("Reset template: %s"),(0,Ln.decodeEntities)(s.title)):(0,fs.sprintf)((0,fs.__)("Reset template part: %s"),(0,Ln.decodeEntities)(s.title));r.push({name:"core/reset-template",label:e,icon:(0,fs.isRTL)()?ta:sa,callback:({close:e})=>{o(s),e()}})}return{isLoading:!n,commands:r}}}),_&&f?(0,c.jsx)(u.EntityProvider,{kind:"root",type:"site",children:(0,c.jsx)(u.EntityProvider,{kind:"postType",type:e.type,id:e.id,children:(0,c.jsx)(g.BlockContextProvider,{value:S,children:(0,c.jsxs)(r,{value:E,onChange:R,onInput:T,selection:m,settings:j,useSubRegistry:!1,children:[o,!t.isPreviewMode&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(Bl,{}),(0,c.jsx)(jl,{}),(0,c.jsx)(yl,{}),"template-locked"===f&&(0,c.jsx)(Hi,{}),"wp_navigation"===P&&(0,c.jsx)(zi,{}),(0,c.jsx)(kl,{}),(0,c.jsx)(_l,{}),(0,c.jsx)(sl,{}),(0,c.jsx)(rl,{}),(0,c.jsx)(Sl,{}),(0,c.jsx)(qa,{}),(0,c.jsx)(Xa,{})]})]})})})}):null}));function Dl(e){return(0,c.jsx)(Rl,{...e,BlockEditorProviderComponent:g.BlockEditorProvider,children:e.children})}var Al=Dl;const{useGlobalStyle:Ml}=$(g.privateApis);function Ll({template:e,post:t}){const[s="white"]=Ml("color.background"),[n]=(0,u.useEntityBlockEditor)("postType",t.type,{id:t.id}),[o]=(0,u.useEntityBlockEditor)("postType",e?.type,{id:e?.id}),r=e&&o?o:n,i=!r?.length;return(0,c.jsxs)("div",{className:"editor-fields-content-preview",style:{backgroundColor:s},children:[i&&(0,c.jsx)("span",{className:"editor-fields-content-preview__empty",children:(0,fs.__)("Empty content")}),!i&&(0,c.jsx)(g.BlockPreview.Async,{children:(0,c.jsx)(g.BlockPreview,{blocks:r})})]})}const Ol={type:"media",id:"content-preview",label:(0,fs.__)("Content preview"),render:function({item:e}){const{settings:t,template:s}=(0,d.useSelect)((t=>{const{canUser:s,getPostType:n,getTemplateId:o,getEntityRecord:r}=$(t(u.store)),i=s("read",{kind:"postType",name:"wp_template"}),a=t(vc).getEditorSettings(),l=a.supportsTemplateMode,c=n(e.type)?.viewable??!1,d=l&&c&&i?o(e.type,e.id):null;return{settings:a,template:d?r("postType","wp_template",d):void 0}}),[e.type,e.id]);return(0,c.jsx)(Dl,{post:e,settings:t,__unstableTemplate:s,children:(0,c.jsx)(Ll,{template:s,post:e})})},enableSorting:!1};var Fl=Ol;function Vl(e,t,s){return{type:"REGISTER_ENTITY_ACTION",kind:e,name:t,config:s}}function Ul(e,t,s){return{type:"UNREGISTER_ENTITY_ACTION",kind:e,name:t,actionId:s}}function Hl(e,t,s){return{type:"REGISTER_ENTITY_FIELD",kind:e,name:t,config:s}}function zl(e,t,s){return{type:"UNREGISTER_ENTITY_FIELD",kind:e,name:t,fieldId:s}}function Gl(e,t){return{type:"SET_IS_READY",kind:e,name:t}}const $l=e=>async({registry:t})=>{if($(t.select(vc)).isEntityReady("postType",e))return;$(t.dispatch(vc)).setIsReady("postType",e);const s=await t.resolveSelect(u.store).getPostType(e),n=await t.resolveSelect(u.store).canUser("create",{kind:"postType",name:e}),o=await t.resolveSelect(u.store).getCurrentTheme(),r=[s.viewable?Vn:void 0,s.supports?.revisions?Un:void 0,void 0,"wp_template_part"===s.slug&&n&&o?.is_block_theme?io:void 0,n&&"wp_block"===s.slug?ho:void 0,s.supports?.title?fo:void 0,s.supports?.["page-attributes"]?yo:void 0,"wp_block"===s.slug?Zo:void 0,qo,Xo,nr,rr,ar].filter(Boolean),i=[s.supports?.thumbnail&&o?.theme_supports?.["post-thumbnails"]&&ur,s.supports?.author&&fr,Cr,Er,Dr,s.supports?.["page-attributes"]&&Vr,s.supports?.comments&&Ur,s.supports?.trackbacks&&Hr,(s.supports?.comments||s.supports?.trackbacks)&&zr,Wr,Yr,s.supports?.editor&&s.viewable&&Fl].filter(Boolean);if(s.supports?.title){let t;t="page"===e?Xr:"wp_template"===e?Jr:"wp_block"===e?ni:oi,i.push(t)}t.batch((()=>{r.forEach((s=>{$(t.dispatch(vc)).registerEntityAction("postType",e,s)})),i.forEach((s=>{$(t.dispatch(vc)).registerEntityField("postType",e,s)}))})),(0,h.doAction)("core.registerPostTypeSchema",e)};function Wl(e){return{type:"SET_CURRENT_TEMPLATE_ID",id:e}}const Zl=e=>async({select:t,dispatch:s,registry:n})=>{const o=await n.dispatch(u.store).saveEntityRecord("postType","wp_template",e);return n.dispatch(u.store).editEntityRecord("postType",t.getCurrentPostType(),t.getCurrentPostId(),{template:o.slug}),n.dispatch(_s.store).createSuccessNotice((0,fs.__)("Custom template created. You're in template mode now."),{type:"snackbar",actions:[{label:(0,fs.__)("Go back"),onClick:()=>s.setRenderingMode(t.getEditorSettings().defaultRenderingMode)}]}),o},Yl=e=>({registry:t})=>{const s=(t.select(C.store).get("core","hiddenBlockTypes")??[]).filter((t=>!(Array.isArray(e)?e:[e]).includes(t)));t.dispatch(C.store).set("core","hiddenBlockTypes",s)},ql=e=>({registry:t})=>{const s=t.select(C.store).get("core","hiddenBlockTypes")??[],n=new Set([...s,...Array.isArray(e)?e:[e]]);t.dispatch(C.store).set("core","hiddenBlockTypes",[...n])},Kl=({onSave:e,dirtyEntityRecords:t=[],entitiesToSkip:s=[],close:n}={})=>({registry:o})=>{const r=[{kind:"postType",name:"wp_navigation"}],i="site-editor-save-success",a=o.select(u.store).getEntityRecord("root","__unstableBase")?.home;o.dispatch(_s.store).removeNotice(i);const l=t.filter((({kind:e,name:t,key:n,property:o})=>!s.some((s=>s.kind===e&&s.name===t&&s.key===n&&s.property===o))));n?.(l);const c=[],d=[];l.forEach((({kind:e,name:t,key:s,property:n})=>{"root"===e&&"site"===t?c.push(n):(r.some((s=>s.kind===e&&s.name===t))&&o.dispatch(u.store).editEntityRecord(e,t,s,{status:"publish"}),d.push(o.dispatch(u.store).saveEditedEntityRecord(e,t,s)))})),c.length&&d.push(o.dispatch(u.store).__experimentalSaveSpecifiedEntityEdits("root","site",void 0,c)),o.dispatch(g.store).__unstableMarkLastChangeAsPersistent(),Promise.all(d).then((t=>e?e(t):t)).then((e=>{e.some((e=>void 0===e))?o.dispatch(_s.store).createErrorNotice((0,fs.__)("Saving failed.")):o.dispatch(_s.store).createSuccessNotice((0,fs.__)("Site updated."),{type:"snackbar",id:i,actions:[{label:(0,fs.__)("View site"),url:a,openInNewTab:!0}]})})).catch((e=>o.dispatch(_s.store).createErrorNotice(`${(0,fs.__)("Saving failed.")} ${e}`)))},Ql=(e,{allowUndo:t=!0}={})=>async({registry:s})=>{const n="edit-site-template-reverted";if(s.dispatch(_s.store).removeNotice(n),On(e))try{const o=s.select(u.store).getEntityConfig("postType",e.type);if(!o)return void s.dispatch(_s.store).createErrorNotice((0,fs.__)("The editor has encountered an unexpected error. Please reload."),{type:"snackbar"});const r=(0,w.addQueryArgs)(`${o.baseURL}/${e.id}`,{context:"edit",source:e.origin}),i=await gs()({path:r});if(!i)return void s.dispatch(_s.store).createErrorNotice((0,fs.__)("The editor has encountered an unexpected error. Please reload."),{type:"snackbar"});const a=({blocks:e=[]})=>(0,x.__unstableSerializeAndClean)(e),l=s.select(u.store).getEditedEntityRecord("postType",e.type,e.id);s.dispatch(u.store).editEntityRecord("postType",e.type,e.id,{content:a,blocks:l.blocks,source:"custom"},{undoIgnore:!0});const c=(0,x.parse)(i?.content?.raw);if(s.dispatch(u.store).editEntityRecord("postType",e.type,i.id,{content:a,blocks:c,source:"theme"}),t){const t=()=>{s.dispatch(u.store).editEntityRecord("postType",e.type,l.id,{content:a,blocks:l.blocks,source:"custom"})};s.dispatch(_s.store).createSuccessNotice((0,fs.__)("Template reset."),{type:"snackbar",id:n,actions:[{label:(0,fs.__)("Undo"),onClick:t}]})}}catch(e){const t=e.message&&"unknown_error"!==e.code?e.message:(0,fs.__)("Template revert failed. Please reload.");s.dispatch(_s.store).createErrorNotice(t,{type:"snackbar"})}else s.dispatch(_s.store).createErrorNotice((0,fs.__)("This template is not revertable."),{type:"snackbar"})},Xl=e=>async({registry:t})=>{const s=e.every((e=>e?.has_theme_file)),n=await Promise.allSettled(e.map((e=>t.dispatch(u.store).deleteEntityRecord("postType",e.type,e.id,{force:!0},{throwOnError:!0}))));if(n.every((({status:e})=>"fulfilled"===e))){let n;if(1===e.length){let t;"string"==typeof e[0].title?t=e[0].title:"string"==typeof e[0].title?.rendered?t=e[0].title?.rendered:"string"==typeof e[0].title?.raw&&(t=e[0].title?.raw),n=s?(0,fs.sprintf)((0,fs.__)('"%s" reset.'),(0,Ln.decodeEntities)(t)):(0,fs.sprintf)((0,fs._x)('"%s" deleted.',"template part"),(0,Ln.decodeEntities)(t))}else n=s?(0,fs.__)("Items reset."):(0,fs.__)("Items deleted.");t.dispatch(_s.store).createSuccessNotice(n,{type:"snackbar",id:"editor-template-deleted-success"})}else{let e;if(1===n.length)e=n[0].reason?.message?n[0].reason.message:s?(0,fs.__)("An error occurred while reverting the item."):(0,fs.__)("An error occurred while deleting the item.");else{const t=new Set,o=n.filter((({status:e})=>"rejected"===e));for(const e of o)e.reason?.message&&t.add(e.reason.message);e=0===t.size?(0,fs.__)("An error occurred while deleting the items."):1===t.size?s?(0,fs.sprintf)((0,fs.__)("An error occurred while reverting the items: %s"),[...t][0]):(0,fs.sprintf)((0,fs.__)("An error occurred while deleting the items: %s"),[...t][0]):s?(0,fs.sprintf)((0,fs.__)("Some errors occurred while reverting the items: %s"),[...t].join(",")):(0,fs.sprintf)((0,fs.__)("Some errors occurred while deleting the items: %s"),[...t].join(","))}t.dispatch(_s.store).createErrorNotice(e,{type:"snackbar"})}},Jl=e=>({select:t,registry:s})=>{const n=t.getCurrentPostType(),o=s.select(u.store).getCurrentTheme()?.stylesheet,r=s.select(C.store).get("core","renderingModes")?.[o]??{};if(r[n]===e)return;const i={[o]:{...r,[n]:e}};s.dispatch(C.store).set("core","renderingModes",i)};function ec(e){return{type:"SET_CANVAS_MIN_HEIGHT",minHeight:e}}var tc=s(5215),sc=s.n(tc),nc=(0,c.jsx)(L.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,c.jsx)(L.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"})}),oc=(0,c.jsx)(L.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,c.jsx)(L.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"})});const rc=[];const ic={rootClientId:void 0,insertionIndex:void 0,filterValue:void 0},ac=["post-only","template-locked"],lc=(0,d.createRegistrySelector)((e=>(0,d.createSelector)((t=>{if("object"==typeof t.blockInserterPanel)return t.blockInserterPanel;if("template-locked"===st(t)){const[t]=e(g.store).getBlocksByName("core/post-content");if(t)return{rootClientId:t,insertionIndex:void 0,filterValue:void 0}}return ic}),(t=>{const[s]=e(g.store).getBlocksByName("core/post-content");return[t.blockInserterPanel,st(t),s]}))));function cc(e){return e.listViewToggleRef}function dc(e){return e.inserterSidebarToggleRef}const uc={wp_block:Ji,wp_navigation:nc,page:ea,post:oc},pc=(0,d.createRegistrySelector)((e=>(t,s,n)=>{{if("wp_template_part"===s||"wp_template"===s){const t=(e(u.store).getCurrentTheme()?.default_template_part_areas||[]).find((e=>n.area===e.area));return t?.icon?H(t.icon):W}if(uc[s])return uc[s];const t=e(u.store).getPostType(s);return"string"==typeof t?.icon&&t.icon.startsWith("dashicons-")?t.icon.slice(10):ea}})),mc=(0,d.createRegistrySelector)((e=>(t,s,n)=>{const{type:o,id:r}=ne(t),i=e(u.store).getEntityRecordNonTransientEdits("postType",s||o,n||r);if(!i?.meta)return!1;const a=e(u.store).getEntityRecord("postType",s||o,n||r)?.meta;return!sc()({...a,footnotes:void 0},{...i.meta,footnotes:void 0})}));function hc(e,...t){return function(e,t,s){return e.actions[t]?.[s]??rc}(e.dataviews,...t)}function gc(e,...t){return function(e,t,s){return e.isReady[t]?.[s]}(e.dataviews,...t)}function _c(e,...t){return function(e,t,s){return e.fields[t]?.[s]??rc}(e.dataviews,...t)}const fc=(0,d.createRegistrySelector)((e=>(0,d.createSelector)(((t,s)=>{s=Array.isArray(s)?s:[s];const{getBlocksByName:n,getBlockParents:o,getBlockName:r}=e(g.store);return n(s).filter((e=>o(e).every((e=>{const t=r(e);return"core/query"!==t&&!s.includes(t)}))))}),(()=>[e(g.store).getBlocks()])))),bc=(0,d.createRegistrySelector)((e=>(t,s)=>{const{getPostType:n,getCurrentTheme:o,hasFinishedResolution:r}=e(u.store),i=o(),a=n(s);if(!r("getPostType",[s])||!r("getCurrentTheme"))return;const l=i?.stylesheet,c=e(C.store).get("core","renderingModes")?.[l]?.[s],d=Array.isArray(a?.supports?.editor)?a.supports.editor.find((e=>"default-mode"in e))?.["default-mode"]:void 0,p=c||d;return ac.includes(p)?p:"post-only"}));function yc(e){return e.canvasMinHeight}const xc={reducer:y,selectors:e,actions:t},vc=(0,d.createReduxStore)("core/editor",{...xc});(0,d.register)(vc),$(vc).registerPrivateActions(a),$(vc).registerPrivateSelectors(l);function wc(e){const t=e.avatar_urls&&e.avatar_urls[24]?(0,c.jsx)("img",{className:"editor-autocompleters__user-avatar",alt:"",src:e.avatar_urls[24]}):(0,c.jsx)("span",{className:"editor-autocompleters__no-avatar"});return(0,c.jsxs)(c.Fragment,{children:[t,(0,c.jsx)("span",{className:"editor-autocompleters__user-name",children:e.name}),(0,c.jsx)("span",{className:"editor-autocompleters__user-slug",children:e.slug})]})}(0,h.addFilter)("blocks.registerBlockType","core/editor/custom-sources-backwards-compatibility/shim-attribute-source",(function(e){const t=Object.fromEntries(Object.entries(e.attributes??{}).filter((([,{source:e}])=>"meta"===e)).map((([e,{meta:t}])=>[e,t])));return Object.entries(t).length&&(e.edit=(e=>(0,m.createHigherOrderComponent)((t=>({attributes:s,setAttributes:n,...o})=>{const r=(0,d.useSelect)((e=>e(vc).getCurrentPostType()),[]),[i,a]=(0,u.useEntityProp)("postType",r,"meta"),l=(0,p.useMemo)((()=>({...s,...Object.fromEntries(Object.entries(e).map((([e,t])=>[e,i[t]])))})),[s,i]);return(0,c.jsx)(t,{attributes:l,setAttributes:t=>{const s=Object.fromEntries(Object.entries(t??{}).filter((([t])=>t in e)).map((([t,s])=>[e[t],s])));Object.entries(s).length&&a(s),n(t)},...o})}),"withMetaAttributeSource"))(t)(e.edit)),e}));var Sc={name:"users",className:"editor-autocompleters__user",triggerPrefix:"@",useItems(e){const t=(0,d.useSelect)((t=>{const{getUsers:s}=t(u.store);return s({context:"view",search:encodeURIComponent(e)})}),[e]);return[(0,p.useMemo)((()=>t?t.map((e=>({key:`user-${e.slug}`,value:e,label:wc(e)}))):[]),[t])]},getOptionCompletion:e=>`@${e.slug}`};(0,h.addFilter)("editor.Autocomplete.completers","editor/autocompleters/set-default-completers",(function(e=[]){return e.push({...Sc}),e})),(0,h.addFilter)("editor.MediaUpload","core/editor/components/media-upload",(()=>lr.MediaUpload));const{PatternOverridesControls:kc,ResetOverridesControl:Cc,PatternOverridesBlockControls:Pc,PATTERN_TYPES:jc,PARTIAL_SYNCING_SUPPORTED_BLOCKS:Ec,PATTERN_SYNC_TYPES:Tc}=$(ao.privateApis),Bc=(0,m.createHigherOrderComponent)((e=>t=>{const s=!!Ec[t.name];return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(e,{...t},"edit"),t.isSelected&&s&&(0,c.jsx)(Ic,{...t}),s&&(0,c.jsx)(Pc,{})]})}),"withPatternOverrideControls");function Ic(e){const t=(0,g.useBlockEditingMode)(),{hasPatternOverridesSource:s,isEditingSyncedPattern:n}=(0,d.useSelect)((e=>{const{getCurrentPostType:t,getEditedPostAttribute:s}=e(vc);return{hasPatternOverridesSource:!!(0,x.getBlockBindingsSource)("core/pattern-overrides"),isEditingSyncedPattern:t()===jc.user&&s("meta")?.wp_pattern_sync_status!==Tc.unsynced&&s("wp_pattern_sync_status")!==Tc.unsynced}}),[]),o=e.attributes.metadata?.bindings,r=!!o&&Object.values(o).some((e=>"core/pattern-overrides"===e.source)),i=n&&"default"===t,a=!n&&!!e.attributes.metadata?.name&&"disabled"!==t&&r;return s?(0,c.jsxs)(c.Fragment,{children:[i&&(0,c.jsx)(kc,{...e}),a&&(0,c.jsx)(Cc,{...e})]}):null}(0,h.addFilter)("editor.BlockEdit","core/editor/with-pattern-override-controls",Bc);const Nc=["core/navigation-link","core/navigation-submenu"];function Rc({attributes:e}){const{kind:t,id:s,type:n}=e,o=(0,g.useBlockEditingMode)(),r=(0,d.useSelect)((e=>e(g.store).getSettings().onNavigateToEntityRecord),[]),i=(0,p.useCallback)((()=>{"post-type"===t&&"page"===n&&s&&r&&r({postId:s,postType:n})}),[t,s,n,r]);return"post-type"===t&&"page"===n&&s&&r&&"contentOnly"===o?(0,c.jsx)(g.__unstableBlockToolbarLastItem,{children:(0,c.jsx)(Hn.ToolbarGroup,{children:(0,c.jsx)(Hn.ToolbarButton,{name:"view",title:(0,fs.__)("View"),onClick:i,children:(0,fs.__)("View")})})}):null}const Dc=(0,m.createHigherOrderComponent)((e=>t=>{const s=Nc.includes(t.name);return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(e,{...t},"edit"),t.isSelected&&s&&(0,c.jsx)(Rc,{...t})]})}),"withNavigationViewButton");(0,h.addFilter)("editor.BlockEdit","core/editor/with-navigation-view-button",Dc);function Ac({clientId:e}){const{selectBlock:t,flashBlock:s}=(0,d.useDispatch)(g.store),{enableComplementaryArea:n}=(0,d.useDispatch)(ja),{hasNavigationBlocks:o,firstNavigationBlockId:r,isNavigationEditable:i}=(0,d.useSelect)((t=>{const{getClientIdsOfDescendants:s,getBlockName:n,getBlockEditingMode:o}=t(g.store),r=s(e).filter((e=>"core/navigation"===n(e))),i=r.length>0,a=i?r[0]:null;return{hasNavigationBlocks:i,firstNavigationBlockId:a,isNavigationEditable:"disabled"!==o(a)}}),[e]),a=(0,p.useCallback)((()=>{r&&(t(r),s(r,500),n("core","edit-post/block"))}),[r,t,s,n]);return o&&i?(0,c.jsx)(g.BlockControls,{group:"other",children:(0,c.jsxs)(Hn.ToolbarGroup,{children:[(0,c.jsx)(Hn.__experimentalDivider,{orientation:"vertical",marginEnd:3}),(0,c.jsx)(Hn.ToolbarButton,{label:(0,fs.__)("Edit navigation"),onClick:a,children:(0,fs.__)("Edit navigation")})]})}):null}const Mc=(0,m.createHigherOrderComponent)((e=>t=>{const s="core/template-part"===t.name;return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(e,{...t},"edit"),t.isSelected&&s&&(0,c.jsx)(Ac,{clientId:t.clientId})]})}),"withTemplatePartNavigationEditButton");(0,h.addFilter)("editor.BlockEdit","core/editor/with-template-part-navigation-edit-button",Mc);class Lc extends p.Component{constructor(e){super(e),this.needsAutosave=!(!e.isDirty||!e.isAutosaveable)}componentDidMount(){this.props.disableIntervalChecks||this.setAutosaveTimer()}componentDidUpdate(e){this.props.disableIntervalChecks?this.props.editsReference!==e.editsReference&&this.props.autosave():(this.props.interval!==e.interval&&(clearTimeout(this.timerId),this.setAutosaveTimer()),this.props.isDirty&&(!this.props.isAutosaving||e.isAutosaving)?this.props.editsReference!==e.editsReference&&(this.needsAutosave=!0):this.needsAutosave=!1)}componentWillUnmount(){clearTimeout(this.timerId)}setAutosaveTimer(e=1e3*this.props.interval){this.timerId=setTimeout((()=>{this.autosaveTimerHandler()}),e)}autosaveTimerHandler(){this.props.isAutosaveable?(this.needsAutosave&&(this.needsAutosave=!1,this.props.autosave()),this.setAutosaveTimer()):this.setAutosaveTimer(1e3)}render(){return null}}var Oc=(0,m.compose)([(0,d.withSelect)(((e,t)=>{const{getReferenceByDistinctEdits:s}=e(u.store),{isEditedPostDirty:n,isEditedPostAutosaveable:o,isAutosavingPost:r,getEditorSettings:i}=e(vc),{interval:a=i().autosaveInterval}=t;return{editsReference:s(),isDirty:n(),isAutosaveable:o(),isAutosaving:r(),interval:a}})),(0,d.withDispatch)(((e,t)=>({autosave(){const{autosave:s=e(vc).autosave}=t;s()}})))])(Lc),Fc=(0,c.jsx)(L.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,c.jsx)(L.Path,{d:"M10.8622 8.04053L14.2805 12.0286L10.8622 16.0167L9.72327 15.0405L12.3049 12.0286L9.72327 9.01672L10.8622 8.04053Z"})}),Vc=(0,c.jsx)(L.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,c.jsx)(L.Path,{d:"m13.1 16-3.4-4 3.4-4 1.1 1-2.6 3 2.6 3-1.1 1z"})});const Uc=window.wp.dom;function Hc(e){const{isFrontPage:t,isPostsPage:s}=(0,d.useSelect)((t=>{const{canUser:s,getEditedEntityRecord:n}=t(u.store),o=s("read",{kind:"root",name:"site"})?n("root","site"):void 0,r=parseInt(e,10);return{isFrontPage:o?.page_on_front===r,isPostsPage:o?.page_for_posts===r}}));return t?(0,fs.__)("Homepage"):!!s&&(0,fs.__)("Posts Page")}const zc=Hn.__unstableMotion.create(Hn.Button);function Gc(e){const{postId:t,postType:s,postTypeLabel:n,documentTitle:o,isNotFound:r,templateTitle:i,onNavigateToPreviousEntityRecord:a,isTemplatePreview:l}=(0,d.useSelect)((e=>{const{getCurrentPostType:t,getCurrentPostId:s,getEditorSettings:n,getRenderingMode:o}=e(vc),{getEditedEntityRecord:r,getPostType:i,getCurrentTheme:a,isResolving:l}=e(u.store),c=t(),d=s(),p=r("postType",c,d),{default_template_types:m=[]}=a()??{},h=Y({templateTypes:m,template:p}),g=i(c)?.labels?.singular_name;return{postId:d,postType:c,postTypeLabel:g,documentTitle:p.title,isNotFound:!p&&!l("getEditedEntityRecord","postType",c,d),templateTitle:h.title,onNavigateToPreviousEntityRecord:n().onNavigateToPreviousEntityRecord,isTemplatePreview:"template-locked"===o()}}),[]),{open:h}=(0,d.useDispatch)(na.store),_=(0,m.useReducedMotion)(),f=A.includes(s),b=!!a,y=f?i:o,x=e.title||y,v=e.icon,w=Hc(t),S=(0,p.useRef)(!1);return(0,p.useEffect)((()=>{S.current=!0}),[]),(0,c.jsxs)("div",{className:mr("editor-document-bar",{"has-back-button":b}),children:[(0,c.jsx)(Hn.__unstableAnimatePresence,{children:b&&(0,c.jsx)(zc,{className:"editor-document-bar__back",icon:(0,fs.isRTL)()?Fc:Vc,onClick:e=>{e.stopPropagation(),a()},size:"compact",initial:!!S.current&&{opacity:0,transform:"translateX(15%)"},animate:{opacity:1,transform:"translateX(0%)"},exit:{opacity:0,transform:"translateX(15%)"},transition:_?{duration:0}:void 0,children:(0,fs.__)("Back")})}),!f&&l&&!b&&(0,c.jsx)(g.BlockIcon,{icon:W,className:"editor-document-bar__icon-layout"}),r?(0,c.jsx)(Hn.__experimentalText,{children:(0,fs.__)("Document not found")}):(0,c.jsxs)(Hn.Button,{className:"editor-document-bar__command",onClick:()=>h(),size:"compact",children:[(0,c.jsxs)(Hn.__unstableMotion.div,{className:"editor-document-bar__title",initial:!!S.current&&{opacity:0,transform:b?"translateX(15%)":"translateX(-15%)"},animate:{opacity:1,transform:"translateX(0%)"},transition:_?{duration:0}:void 0,children:[v&&(0,c.jsx)(g.BlockIcon,{icon:v}),(0,c.jsxs)(Hn.__experimentalText,{size:"body",as:"h1",children:[(0,c.jsx)("span",{className:"editor-document-bar__post-title",children:x?(0,Uc.__unstableStripHTML)(x):(0,fs.__)("No title")}),w&&(0,c.jsx)("span",{className:"editor-document-bar__post-type-label",children:`· ${w}`}),n&&!e.title&&!w&&(0,c.jsx)("span",{className:"editor-document-bar__post-type-label",children:`· ${(0,Ln.decodeEntities)(n)}`})]})]},b),(0,c.jsx)("span",{className:"editor-document-bar__shortcut",children:ll.displayShortcut.primary("k")})]})]})}const $c=window.wp.richText;var Wc=({children:e,isValid:t,isDisabled:s,level:n,href:o,onSelect:r})=>(0,c.jsx)("li",{className:mr("document-outline__item",`is-${n.toLowerCase()}`,{"is-invalid":!t,"is-disabled":s}),children:(0,c.jsxs)("a",{href:o,className:"document-outline__button","aria-disabled":s,onClick:function(e){s?e.preventDefault():r()},children:[(0,c.jsx)("span",{className:"document-outline__emdash","aria-hidden":"true"}),(0,c.jsx)("strong",{className:"document-outline__level",children:n}),(0,c.jsx)("span",{className:"document-outline__item-content",children:e})]})});const Zc=(0,c.jsx)("em",{children:(0,fs.__)("(Empty heading)")}),Yc=[(0,c.jsx)("br",{},"incorrect-break"),(0,c.jsx)("em",{children:(0,fs.__)("(Incorrect heading level)")},"incorrect-message")],qc=[(0,c.jsx)("br",{},"incorrect-break-h1"),(0,c.jsx)("em",{children:(0,fs.__)("(Your theme may already use a H1 for the post title)")},"incorrect-message-h1")],Kc=[(0,c.jsx)("br",{},"incorrect-break-multiple-h1"),(0,c.jsx)("em",{children:(0,fs.__)("(Multiple H1 headings are not recommended)")},"incorrect-message-multiple-h1")];function Qc(){return(0,c.jsxs)(Hn.SVG,{width:"138",height:"148",viewBox:"0 0 138 148",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,c.jsx)(Hn.Rect,{width:"138",height:"148",rx:"4",fill:"#F0F6FC"}),(0,c.jsx)(Hn.Line,{x1:"44",y1:"28",x2:"24",y2:"28",stroke:"#DDDDDD"}),(0,c.jsx)(Hn.Rect,{x:"48",y:"16",width:"27",height:"23",rx:"4",fill:"#DDDDDD"}),(0,c.jsx)(Hn.Path,{d:"M54.7585 32V23.2727H56.6037V26.8736H60.3494V23.2727H62.1903V32H60.3494V28.3949H56.6037V32H54.7585ZM67.4574 23.2727V32H65.6122V25.0241H65.5611L63.5625 26.277V24.6406L65.723 23.2727H67.4574Z",fill:"black"}),(0,c.jsx)(Hn.Line,{x1:"55",y1:"59",x2:"24",y2:"59",stroke:"#DDDDDD"}),(0,c.jsx)(Hn.Rect,{x:"59",y:"47",width:"29",height:"23",rx:"4",fill:"#DDDDDD"}),(0,c.jsx)(Hn.Path,{d:"M65.7585 63V54.2727H67.6037V57.8736H71.3494V54.2727H73.1903V63H71.3494V59.3949H67.6037V63H65.7585ZM74.6605 63V61.6705L77.767 58.794C78.0313 58.5384 78.2528 58.3082 78.4318 58.1037C78.6136 57.8991 78.7514 57.6989 78.8452 57.5028C78.9389 57.304 78.9858 57.0895 78.9858 56.8594C78.9858 56.6037 78.9276 56.3835 78.8111 56.1989C78.6946 56.0114 78.5355 55.8679 78.3338 55.7685C78.1321 55.6662 77.9034 55.6151 77.6477 55.6151C77.3807 55.6151 77.1477 55.669 76.9489 55.777C76.75 55.8849 76.5966 56.0398 76.4886 56.2415C76.3807 56.4432 76.3267 56.6832 76.3267 56.9616H74.5753C74.5753 56.3906 74.7045 55.8949 74.9631 55.4744C75.2216 55.054 75.5838 54.7287 76.0497 54.4986C76.5156 54.2685 77.0526 54.1534 77.6605 54.1534C78.2855 54.1534 78.8295 54.2642 79.2926 54.4858C79.7585 54.7045 80.1207 55.0085 80.3793 55.3977C80.6378 55.7869 80.767 56.233 80.767 56.7358C80.767 57.0653 80.7017 57.3906 80.571 57.7116C80.4432 58.0327 80.2145 58.3892 79.8849 58.7812C79.5554 59.1705 79.0909 59.6378 78.4915 60.1832L77.2173 61.4318V61.4915H80.8821V63H74.6605Z",fill:"black"}),(0,c.jsx)(Hn.Line,{x1:"80",y1:"90",x2:"24",y2:"90",stroke:"#DDDDDD"}),(0,c.jsx)(Hn.Rect,{x:"84",y:"78",width:"30",height:"23",rx:"4",fill:"#F0B849"}),(0,c.jsx)(Hn.Path,{d:"M90.7585 94V85.2727H92.6037V88.8736H96.3494V85.2727H98.1903V94H96.3494V90.3949H92.6037V94H90.7585ZM99.5284 92.4659V91.0128L103.172 85.2727H104.425V87.2841H103.683L101.386 90.919V90.9872H106.564V92.4659H99.5284ZM103.717 94V92.0227L103.751 91.3793V85.2727H105.482V94H103.717Z",fill:"black"}),(0,c.jsx)(Hn.Line,{x1:"66",y1:"121",x2:"24",y2:"121",stroke:"#DDDDDD"}),(0,c.jsx)(Hn.Rect,{x:"70",y:"109",width:"29",height:"23",rx:"4",fill:"#DDDDDD"}),(0,c.jsx)(Hn.Path,{d:"M76.7585 125V116.273H78.6037V119.874H82.3494V116.273H84.1903V125H82.3494V121.395H78.6037V125H76.7585ZM88.8864 125.119C88.25 125.119 87.6832 125.01 87.1861 124.791C86.6918 124.57 86.3011 124.266 86.0142 123.879C85.7301 123.49 85.5838 123.041 85.5753 122.533H87.4332C87.4446 122.746 87.5142 122.933 87.642 123.095C87.7727 123.254 87.946 123.378 88.1619 123.466C88.3778 123.554 88.6207 123.598 88.8906 123.598C89.1719 123.598 89.4205 123.548 89.6364 123.449C89.8523 123.349 90.0213 123.212 90.1435 123.036C90.2656 122.859 90.3267 122.656 90.3267 122.426C90.3267 122.193 90.2614 121.987 90.1307 121.808C90.0028 121.626 89.8182 121.484 89.5767 121.382C89.3381 121.28 89.054 121.229 88.7244 121.229H87.9105V119.874H88.7244C89.0028 119.874 89.2486 119.825 89.4616 119.729C89.6776 119.632 89.8452 119.499 89.9645 119.328C90.0838 119.155 90.1435 118.953 90.1435 118.723C90.1435 118.504 90.0909 118.312 89.9858 118.148C89.8835 117.98 89.7386 117.849 89.5511 117.756C89.3665 117.662 89.1506 117.615 88.9034 117.615C88.6534 117.615 88.4247 117.661 88.2173 117.751C88.0099 117.839 87.8438 117.966 87.7188 118.131C87.5938 118.295 87.527 118.489 87.5185 118.71H85.75C85.7585 118.207 85.902 117.764 86.1804 117.381C86.4588 116.997 86.8338 116.697 87.3054 116.482C87.7798 116.263 88.3153 116.153 88.9119 116.153C89.5142 116.153 90.0412 116.263 90.4929 116.482C90.9446 116.7 91.2955 116.996 91.5455 117.368C91.7983 117.737 91.9233 118.152 91.9205 118.612C91.9233 119.101 91.7713 119.509 91.4645 119.835C91.1605 120.162 90.7642 120.369 90.2756 120.457V120.526C90.9176 120.608 91.4063 120.831 91.7415 121.195C92.0795 121.555 92.2472 122.007 92.2443 122.55C92.2472 123.047 92.1037 123.489 91.8139 123.875C91.527 124.261 91.1307 124.565 90.625 124.787C90.1193 125.009 89.5398 125.119 88.8864 125.119Z",fill:"black"})]})}const Xc=(e=[])=>e.filter((e=>"core/heading"===e.name)).map((e=>({...e,level:e.attributes.level,isEmpty:Jc(e)}))),Jc=e=>!e.attributes.content||0===e.attributes.content.trim().length;function ed({onSelect:e,hasOutlineItemsDisabled:t}){const{selectBlock:s}=(0,d.useDispatch)(g.store),{title:n,isTitleSupported:o}=(0,d.useSelect)((e=>{const{getEditedPostAttribute:t}=e(vc),{getPostType:s}=e(u.store),n=s(t("type"));return{title:t("title"),isTitleSupported:n?.supports?.title??!1}})),r=(0,d.useSelect)((e=>{const{getClientIdsWithDescendants:t,getBlock:s}=e(g.store);return t().map((e=>s(e)))})),i=(0,d.useSelect)((e=>{if("post-only"===e(vc).getRenderingMode())return;const{getBlocksByName:t,getClientIdsOfDescendants:s}=e(g.store),[n]=t("core/post-content");return n?s(n):void 0}),[]),a=(0,p.useRef)(1),l=(0,p.useMemo)((()=>Xc(r)),[r]);if(l.length<1)return(0,c.jsxs)("div",{className:"editor-document-outline has-no-headings",children:[(0,c.jsx)(Qc,{}),(0,c.jsx)("p",{children:(0,fs.__)("Navigate the structure of your document and address issues like empty or incorrect heading levels.")})]});const m=document.querySelector(".editor-post-title__input"),h=o&&n&&m,_=l.reduce(((e,t)=>({...e,[t.level]:(e[t.level]||0)+1})),{})[1]>1;return(0,c.jsx)("div",{className:"document-outline",children:(0,c.jsxs)("ul",{children:[h&&(0,c.jsx)(Wc,{level:(0,fs.__)("Title"),isValid:!0,onSelect:e,href:`#${m.id}`,isDisabled:t,children:n}),l.map((n=>{const o=n.level>a.current+1,r=!(n.isEmpty||o||!n.level||1===n.level&&(_||h));return a.current=n.level,(0,c.jsxs)(Wc,{level:`H${n.level}`,isValid:r,isDisabled:t||(l=n.clientId,!(!Array.isArray(i)||i.includes(l))),href:`#block-${n.clientId}`,onSelect:()=>{s(n.clientId),e?.()},children:[n.isEmpty?Zc:(0,$c.getTextContent)((0,$c.create)({html:n.attributes.content})),o&&Yc,1===n.level&&_&&Kc,h&&1===n.level&&!_&&qc]},n.clientId);var l}))]})})}function td({children:e}){const t=(0,d.useSelect)((e=>{const{getGlobalBlockCount:t}=e(g.store);return t("core/heading")>0}));return t?e:null}var sd=function(){const{registerShortcut:e}=(0,d.useDispatch)(il.store);return(0,p.useEffect)((()=>{e({name:"core/editor/toggle-mode",category:"global",description:(0,fs.__)("Switch between visual editor and code editor."),keyCombination:{modifier:"secondary",character:"m"}}),e({name:"core/editor/save",category:"global",description:(0,fs.__)("Save your changes."),keyCombination:{modifier:"primary",character:"s"}}),e({name:"core/editor/undo",category:"global",description:(0,fs.__)("Undo your last changes."),keyCombination:{modifier:"primary",character:"z"}}),e({name:"core/editor/redo",category:"global",description:(0,fs.__)("Redo your last undo."),keyCombination:{modifier:"primaryShift",character:"z"},aliases:(0,ll.isAppleOS)()?[]:[{modifier:"primary",character:"y"}]}),e({name:"core/editor/toggle-list-view",category:"global",description:(0,fs.__)("Show or hide the List View."),keyCombination:{modifier:"access",character:"o"}}),e({name:"core/editor/toggle-distraction-free",category:"global",description:(0,fs.__)("Enter or exit distraction free mode."),keyCombination:{modifier:"primaryShift",character:"\\"}}),e({name:"core/editor/toggle-sidebar",category:"global",description:(0,fs.__)("Show or hide the Settings panel."),keyCombination:{modifier:"primaryShift",character:","}}),e({name:"core/editor/keyboard-shortcuts",category:"main",description:(0,fs.__)("Display these keyboard shortcuts."),keyCombination:{modifier:"access",character:"h"}}),e({name:"core/editor/next-region",category:"global",description:(0,fs.__)("Navigate to the next part of the editor."),keyCombination:{modifier:"ctrl",character:"`"},aliases:[{modifier:"access",character:"n"}]}),e({name:"core/editor/previous-region",category:"global",description:(0,fs.__)("Navigate to the previous part of the editor."),keyCombination:{modifier:"ctrlShift",character:"`"},aliases:[{modifier:"access",character:"p"},{modifier:"ctrlShift",character:"~"}]})}),[e]),(0,c.jsx)(g.BlockEditorKeyboardShortcuts.Register,{})},nd=(0,c.jsx)(L.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,c.jsx)(L.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"})}),od=(0,c.jsx)(L.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,c.jsx)(L.Path,{d:"M18.3 11.7c-.6-.6-1.4-.9-2.3-.9H6.7l2.9-3.3-1.1-1-4.5 5L8.5 16l1-1-2.7-2.7H16c.5 0 .9.2 1.3.5 1 1 1 3.4 1 4.5v.3h1.5v-.2c0-1.5 0-4.3-1.5-5.7z"})});var rd=(0,p.forwardRef)((function(e,t){const s=(0,ll.isAppleOS)()?ll.displayShortcut.primaryShift("z"):ll.displayShortcut.primary("y"),n=(0,d.useSelect)((e=>e(vc).hasEditorRedo()),[]),{redo:o}=(0,d.useDispatch)(vc);return(0,c.jsx)(Hn.Button,{__next40pxDefaultSize:!0,...e,ref:t,icon:(0,fs.isRTL)()?od:nd,label:(0,fs.__)("Redo"),shortcut:s,"aria-disabled":!n,onClick:n?o:void 0,className:"editor-history__redo"})}));var id=(0,p.forwardRef)((function(e,t){const s=(0,d.useSelect)((e=>e(vc).hasEditorUndo()),[]),{undo:n}=(0,d.useDispatch)(vc);return(0,c.jsx)(Hn.Button,{__next40pxDefaultSize:!0,...e,ref:t,icon:(0,fs.isRTL)()?nd:od,label:(0,fs.__)("Undo"),shortcut:ll.displayShortcut.primary("z"),"aria-disabled":!s,onClick:s?n:void 0,className:"editor-history__undo"})}));function ad(){const[e,t]=(0,p.useState)(!1),s=(0,d.useSelect)((e=>e(g.store).isValidTemplate()),[]),{setTemplateValidity:n,synchronizeTemplate:o}=(0,d.useDispatch)(g.store);return s?null:(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(Hn.Notice,{className:"editor-template-validation-notice",isDismissible:!1,status:"warning",actions:[{label:(0,fs.__)("Keep it as is"),onClick:()=>n(!0)},{label:(0,fs.__)("Reset the template"),onClick:()=>t(!0)}],children:(0,fs.__)("The content of your post doesn’t match the template assigned to your post type.")}),(0,c.jsx)(Hn.__experimentalConfirmDialog,{isOpen:e,confirmButtonText:(0,fs.__)("Reset"),onConfirm:()=>{t(!1),o()},onCancel:()=>t(!1),size:"medium",children:(0,fs.__)("Resetting the template may result in loss of content, do you want to continue?")})]})}var ld=function(){const{notices:e}=(0,d.useSelect)((e=>({notices:e(_s.store).getNotices()})),[]),{removeNotice:t}=(0,d.useDispatch)(_s.store),s=e.filter((({isDismissible:e,type:t})=>e&&"default"===t)),n=e.filter((({isDismissible:e,type:t})=>!e&&"default"===t));return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(Hn.NoticeList,{notices:n,className:"components-editor-notices__pinned"}),(0,c.jsx)(Hn.NoticeList,{notices:s,className:"components-editor-notices__dismissible",onRemove:t,children:(0,c.jsx)(ad,{})})]})};const cd=-3;function dd(){const e=(0,d.useSelect)((e=>e(_s.store).getNotices()),[]),{removeNotice:t}=(0,d.useDispatch)(_s.store),s=e.filter((({type:e})=>"snackbar"===e)).slice(cd);return(0,c.jsx)(Hn.SnackbarList,{notices:s,className:"components-editor-notices__snackbar",onRemove:t})}function ud({record:e,checked:t,onChange:s}){const{name:n,kind:o,title:r,key:i}=e,{entityRecordTitle:a,hasPostMetaChanges:l}=(0,d.useSelect)((e=>{if("postType"!==o||"wp_template"!==n)return{entityRecordTitle:r,hasPostMetaChanges:$(e(vc)).hasPostMetaChanges(n,i)};const t=e(u.store).getEditedEntityRecord(o,n,i),{default_template_types:s=[]}=e(u.store).getCurrentTheme()??{};return{entityRecordTitle:Y({template:t,templateTypes:s}).title,hasPostMetaChanges:$(e(vc)).hasPostMetaChanges(n,i)}}),[n,o,r,i]);return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(Hn.PanelRow,{children:(0,c.jsx)(Hn.CheckboxControl,{__nextHasNoMarginBottom:!0,label:(0,Ln.decodeEntities)(a)||(0,fs.__)("Untitled"),checked:t,onChange:s,className:"entities-saved-states__change-control"})}),l&&(0,c.jsx)("ul",{className:"entities-saved-states__changes",children:(0,c.jsx)("li",{children:(0,fs.__)("Post Meta.")})})]})}const{getGlobalStylesChanges:pd,GlobalStylesContext:md}=$(g.privateApis);function hd({record:e}){const{user:t}=(0,p.useContext)(md),s=(0,d.useSelect)((t=>t(u.store).getEntityRecord(e.kind,e.name,e.key)),[e.kind,e.name,e.key]),n=pd(t,s,{maxResults:10});return n.length?(0,c.jsx)("ul",{className:"entities-saved-states__changes",children:n.map((e=>(0,c.jsx)("li",{children:e},e)))}):null}function gd({record:e,count:t}){if("globalStyles"===e?.name)return null;const s=function(e,t){switch(e){case"site":return 1===t?(0,fs.__)("This change will affect your whole site."):(0,fs.__)("These changes will affect your whole site.");case"wp_template":return(0,fs.__)("This change will affect other parts of your site that use this template.");case"page":case"post":return(0,fs.__)("The following has been modified.")}}(e?.name,t);return s?(0,c.jsx)(Hn.PanelRow,{children:s}):null}function _d({list:e,unselectedEntities:t,setUnselectedEntities:s}){const n=e.length,o=e[0];let r=(0,d.useSelect)((e=>e(u.store).getEntityConfig(o.kind,o.name)),[o.kind,o.name]).label;return"wp_template_part"===o?.name&&(r=1===n?(0,fs.__)("Template Part"):(0,fs.__)("Template Parts")),(0,c.jsxs)(Hn.PanelBody,{title:r,initialOpen:!0,className:"entities-saved-states__panel-body",children:[(0,c.jsx)(gd,{record:o,count:n}),e.map((e=>(0,c.jsx)(ud,{record:e,checked:!t.some((t=>t.kind===e.kind&&t.name===e.name&&t.key===e.key&&t.property===e.property)),onChange:t=>s(e,t)},e.key||e.property))),"globalStyles"===o?.name&&(0,c.jsx)(hd,{record:o})]})}const fd=()=>{const{editedEntities:e,siteEdits:t,siteEntityConfig:s}=(0,d.useSelect)((e=>{const{__experimentalGetDirtyEntityRecords:t,getEntityRecordEdits:s,getEntityConfig:n}=e(u.store);return{editedEntities:t(),siteEdits:s("root","site"),siteEntityConfig:n("root","site")}}),[]),n=(0,p.useMemo)((()=>{const n=e.filter((e=>!("root"===e.kind&&"site"===e.name))),o=s?.meta?.labels??{},r=[];for(const e in t)r.push({kind:"root",name:"site",title:o[e]||e,property:e});return[...n,...r]}),[e,t,s]),[o,r]=(0,p.useState)([]);return{dirtyEntityRecords:n,isDirty:n.length-o.length>0,setUnselectedEntities:({kind:e,name:t,key:s,property:n},i)=>{r(i?o.filter((o=>o.kind!==e||o.name!==t||o.key!==s||o.property!==n)):[...o,{kind:e,name:t,key:s,property:n}])},unselectedEntities:o}};function bd(e){return e}function yd({close:e,renderDialog:t,variant:s}){const n=fd();return(0,c.jsx)(xd,{close:e,renderDialog:t,variant:s,...n})}function xd({additionalPrompt:e,close:t,onSave:s=bd,saveEnabled:n,saveLabel:o=(0,fs.__)("Save"),renderDialog:r,dirtyEntityRecords:i,isDirty:a,setUnselectedEntities:l,unselectedEntities:u,variant:h="default"}){const g=(0,p.useRef)(),{saveDirtyEntities:_}=$((0,d.useDispatch)(vc)),f=i.reduce(((e,t)=>{const{name:s}=t;return e[s]||(e[s]=[]),e[s].push(t),e}),{}),{site:b,wp_template:y,wp_template_part:x,...v}=f,w=[b,y,x,...Object.values(v)].filter(Array.isArray),S=n??a,k=(0,p.useCallback)((()=>t()),[t]),[C,P]=(0,m.__experimentalUseDialog)({onClose:()=>k()}),j=(0,m.useInstanceId)(xd,"entities-saved-states__panel-label"),E=(0,m.useInstanceId)(xd,"entities-saved-states__panel-description"),T=i.length?(0,fs.__)("Select the items you want to save."):void 0,B="inline"===h,I=(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(Hn.FlexItem,{isBlock:!B,as:Hn.Button,variant:B?"tertiary":"secondary",size:B?void 0:"compact",onClick:k,children:(0,fs.__)("Cancel")}),(0,c.jsx)(Hn.FlexItem,{isBlock:!B,as:Hn.Button,ref:g,variant:"primary",size:B?void 0:"compact",disabled:!S,accessibleWhenDisabled:!0,onClick:()=>_({onSave:s,dirtyEntityRecords:i,entitiesToSkip:u,close:t}),className:"editor-entities-saved-states__save-button",children:o})]});return(0,c.jsxs)("div",{ref:r?C:void 0,...r&&P,className:mr("entities-saved-states__panel",{"is-inline":B}),role:r?"dialog":void 0,"aria-labelledby":r?j:void 0,"aria-describedby":r?E:void 0,children:[!B&&(0,c.jsx)(Hn.Flex,{className:"entities-saved-states__panel-header",gap:2,children:I}),(0,c.jsxs)("div",{className:"entities-saved-states__text-prompt",children:[(0,c.jsx)("div",{className:"entities-saved-states__text-prompt--header-wrapper",children:(0,c.jsx)("strong",{id:r?j:void 0,className:"entities-saved-states__text-prompt--header",children:(0,fs.__)("Are you ready to save?")})}),(0,c.jsxs)("div",{id:r?E:void 0,children:[e,(0,c.jsx)("p",{className:"entities-saved-states__text-prompt--changes-count",children:a?(0,p.createInterpolateElement)((0,fs.sprintf)((0,fs._n)("There is <strong>%d site change</strong> waiting to be saved.","There are <strong>%d site changes</strong> waiting to be saved.",i.length),i.length),{strong:(0,c.jsx)("strong",{})}):T})]})]}),w.map((e=>(0,c.jsx)(_d,{list:e,unselectedEntities:u,setUnselectedEntities:l},e[0].name))),B&&(0,c.jsx)(Hn.Flex,{direction:"row",justify:"flex-end",className:"entities-saved-states__panel-footer",children:I})]})}function vd(){try{return(0,d.select)(vc).getEditedPostContent()}catch(e){}}function wd({text:e,children:t,variant:s="secondary"}){const n=(0,m.useCopyToClipboard)(e);return(0,c.jsx)(Hn.Button,{__next40pxDefaultSize:!0,variant:s,ref:n,children:t})}class Sd extends p.Component{constructor(){super(...arguments),this.state={error:null}}componentDidCatch(e){(0,h.doAction)("editor.ErrorBoundary.errorLogged",e)}static getDerivedStateFromError(e){return{error:e}}render(){const{error:e}=this.state,{canCopyContent:t=!1}=this.props;return e?(0,c.jsxs)(Hn.__experimentalHStack,{className:"editor-error-boundary",alignment:"baseline",spacing:4,justify:"space-between",expanded:!1,wrap:!0,children:[(0,c.jsx)(Hn.__experimentalText,{as:"p",children:(0,fs.__)("The editor has encountered an unexpected error.")}),(0,c.jsxs)(Hn.__experimentalHStack,{expanded:!1,children:[t&&(0,c.jsx)(wd,{text:vd,children:(0,fs.__)("Copy contents")}),(0,c.jsx)(wd,{variant:"primary",text:e?.stack,children:(0,fs.__)("Copy error")})]})]}):this.props.children}}var kd=Sd;const Cd=window.requestIdleCallback?window.requestIdleCallback:window.requestAnimationFrame;let Pd;function jd(){const{postId:e,isEditedPostNew:t,hasRemoteAutosave:s}=(0,d.useSelect)((e=>({postId:e(vc).getCurrentPostId(),isEditedPostNew:e(vc).isEditedPostNew(),hasRemoteAutosave:!!e(vc).getEditorSettings().autosave})),[]),{getEditedPostAttribute:n}=(0,d.useSelect)(vc),{createWarningNotice:o,removeNotice:r}=(0,d.useDispatch)(_s.store),{editPost:i,resetEditorBlocks:a}=(0,d.useDispatch)(vc);(0,p.useEffect)((()=>{let l=function(e,t){return window.sessionStorage.getItem(bs(e,t))}(e,t);if(!l)return;try{l=JSON.parse(l)}catch{return}const{post_title:c,content:d,excerpt:u}=l,p={title:c,content:d,excerpt:u};if(!Object.keys(p).some((e=>p[e]!==n(e))))return void ys(e,t);if(s)return;const m="wpEditorAutosaveRestore";o((0,fs.__)("The backup of this post in your browser is different from the version below."),{id:m,actions:[{label:(0,fs.__)("Restore the backup"),onClick(){const{content:e,...t}=p;i(t),a((0,x.parse)(p.content)),r(m)}}]})}),[t,e])}var Ed=(0,m.ifCondition)((()=>{if(void 0!==Pd)return Pd;try{window.sessionStorage.setItem("__wpEditorTestSessionStorage",""),window.sessionStorage.removeItem("__wpEditorTestSessionStorage"),Pd=!0}catch{Pd=!1}return Pd}))((function(){const{autosave:e}=(0,d.useDispatch)(vc),t=(0,p.useCallback)((()=>{Cd((()=>e({local:!0})))}),[]);jd(),function(){const{postId:e,isEditedPostNew:t,isDirty:s,isAutosaving:n,didError:o}=(0,d.useSelect)((e=>({postId:e(vc).getCurrentPostId(),isEditedPostNew:e(vc).isEditedPostNew(),isDirty:e(vc).isEditedPostDirty(),isAutosaving:e(vc).isAutosavingPost(),didError:e(vc).didPostSaveRequestFail()})),[]),r=(0,p.useRef)(s),i=(0,p.useRef)(n);(0,p.useEffect)((()=>{!o&&(i.current&&!n||r.current&&!s)&&ys(e,t),r.current=s,i.current=n}),[s,n,o]);const a=(0,m.usePrevious)(t),l=(0,m.usePrevious)(e);(0,p.useEffect)((()=>{l===e&&a&&!t&&ys(e,!0)}),[t,e])}();const s=(0,d.useSelect)((e=>e(vc).getEditorSettings().localAutosaveInterval),[]);return(0,c.jsx)(Oc,{interval:s,autosave:t})}));var Td=function({children:e}){const t=(0,d.useSelect)((e=>{const{getEditedPostAttribute:t}=e(vc),{getPostType:s}=e(u.store),n=s(t("type"));return!!n?.supports?.["page-attributes"]}),[]);return t?e:null};var Bd=function({children:e,supportKeys:t}){const s=(0,d.useSelect)((e=>{const{getEditedPostAttribute:t}=e(vc),{getPostType:s}=e(u.store);return s(t("type"))}),[]);let n=!!s;return s&&(n=(Array.isArray(t)?t:[t]).some((e=>function(e={},t){if(void 0!==e[t])return!!e[t];const[s,n]=t.split("."),[o]=Array.isArray(e[s])?e[s]:[];return Array.isArray(o)?o.includes(n):!!o?.[n]}(s.supports,e)))),n?e:null};function Id(){const e=(0,d.useSelect)((e=>e(vc).getEditedPostAttribute("menu_order")??0),[]),{editPost:t}=(0,d.useDispatch)(vc),[s,n]=(0,p.useState)(null),o=s??e;return(0,c.jsx)(Hn.Flex,{children:(0,c.jsx)(Hn.FlexBlock,{children:(0,c.jsx)(Hn.__experimentalNumberControl,{__next40pxDefaultSize:!0,label:(0,fs.__)("Order"),help:(0,fs.__)("Set the page order."),value:o,onChange:e=>{n(e);const s=Number(e);Number.isInteger(s)&&""!==e.trim?.()&&t({menu_order:s})},hideLabelFromVision:!0,onBlur:()=>{n(null)}})})})}function Nd(){return(0,c.jsx)(Bd,{supportKeys:"page-attributes",children:(0,c.jsx)(Id,{})})}var Rd=(0,p.forwardRef)((({className:e,label:t,children:s},n)=>(0,c.jsxs)(Hn.__experimentalHStack,{className:mr("editor-post-panel__row",e),ref:n,children:[t&&(0,c.jsx)("div",{className:"editor-post-panel__row-label",children:t}),(0,c.jsx)("div",{className:"editor-post-panel__row-control",children:s})]})));function Dd(e){const t=e.map((e=>({children:[],parent:void 0,...e})));if(t.some((({parent:e})=>void 0===e)))return t;const s=t.reduce(((e,t)=>{const{parent:s}=t;return e[s]||(e[s]=[]),e[s].push(t),e}),{}),n=e=>e.map((e=>{const t=s[e.id];return{...e,children:t&&t.length?n(t):[]}}));return n(s[0]||[])}const Ad=e=>(0,Ln.decodeEntities)(e),Md=e=>({...e,name:Ad(e.name)}),Ld=e=>(e??[]).map(Md);function Od(e){return e?.title?.rendered?(0,Ln.decodeEntities)(e.title.rendered):`#${e.id} (${(0,fs.__)("no title")})`}const Fd=(e,t)=>{const s=Mr()(e||"").toLowerCase(),n=Mr()(t||"").toLowerCase();return s===n?0:s.startsWith(n)?s.length:1/0};function Vd(){const{editPost:e}=(0,d.useDispatch)(vc),[t,s]=(0,p.useState)(!1),{isHierarchical:n,parentPostId:o,parentPostTitle:r,pageItems:i,isLoading:a}=(0,d.useSelect)((e=>{const{getPostType:s,getEntityRecords:n,getEntityRecord:o,isResolving:r}=e(u.store),{getCurrentPostId:i,getEditedPostAttribute:a}=e(vc),l=a("type"),c=a("parent"),d=s(l),p=i(),m=d?.hierarchical??!1,h={per_page:100,exclude:p,parent_exclude:p,orderby:"menu_order",order:"asc",_fields:"id,title,parent"};t&&(h.search=t);const g=c?o("postType",l,c):null;return{isHierarchical:m,parentPostId:c,parentPostTitle:g?Od(g):"",pageItems:m?n("postType",l,h):null,isLoading:!!m&&r("getEntityRecords",["postType",l,h])}}),[t]),l=(0,p.useMemo)((()=>{const e=(s,n=0)=>{const o=s.map((t=>[{value:t.id,label:"— ".repeat(n)+(0,Ln.decodeEntities)(t.name),rawName:t.name},...e(t.children||[],n+1)])).sort((([e],[s])=>Fd(e.rawName,t)>=Fd(s.rawName,t)?1:-1));return o.flat()};if(!i)return[];let s=i.map((e=>({id:e.id,parent:e.parent,name:Od(e)})));t||(s=Dd(s));const n=e(s),a=n.find((e=>e.value===o));return r&&!a&&n.unshift({value:o,label:r}),n}),[i,t,r,o]);if(!n)return null;return(0,c.jsx)(Hn.ComboboxControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,className:"editor-page-attributes__parent",label:(0,fs.__)("Parent"),help:(0,fs.__)("Choose a parent page."),value:o,options:l,onFilterValueChange:(0,m.debounce)((e=>{s(e)}),300),onChange:t=>{e({parent:t})},hideLabelFromVision:!0,isLoading:a})}function Ud({isOpen:e,onClick:t}){const s=(0,d.useSelect)((e=>{const{getEditedPostAttribute:t}=e(vc),s=t("parent");if(!s)return null;const{getEntityRecord:n}=e(u.store);return n("postType",t("type"),s)}),[]),n=(0,p.useMemo)((()=>s?Od(s):(0,fs.__)("None")),[s]);return(0,c.jsx)(Hn.Button,{size:"compact",className:"editor-post-parent__panel-toggle",variant:"tertiary","aria-expanded":e,"aria-label":(0,fs.sprintf)((0,fs.__)("Change parent: %s"),n),onClick:t,children:n})}function Hd(){const e=(0,d.useSelect)((e=>e(u.store).getEntityRecord("root","__unstableBase")?.home),[]),[t,s]=(0,p.useState)(null),n=(0,p.useMemo)((()=>({anchor:t,placement:"left-start",offset:36,shift:!0})),[t]);return(0,c.jsx)(Rd,{label:(0,fs.__)("Parent"),ref:s,children:(0,c.jsx)(Hn.Dropdown,{popoverProps:n,className:"editor-post-parent__panel-dropdown",contentClassName:"editor-post-parent__panel-dialog",focusOnMount:!0,renderToggle:({isOpen:e,onToggle:t})=>(0,c.jsx)(Ud,{isOpen:e,onClick:t}),renderContent:({onClose:t})=>(0,c.jsxs)("div",{className:"editor-post-parent",children:[(0,c.jsx)(g.__experimentalInspectorPopoverHeader,{title:(0,fs.__)("Parent"),onClose:t}),(0,c.jsxs)("div",{children:[(0,p.createInterpolateElement)((0,fs.sprintf)((0,fs.__)('Child pages inherit characteristics from their parent, such as URL structure. For instance, if "Pricing" is a child of "Services", its URL would be %s<wbr />/services<wbr />/pricing.'),(0,w.filterURLForDisplay)(e).replace(/([/.])/g,"<wbr />$1")),{wbr:(0,c.jsx)("wbr",{})}),(0,c.jsx)("p",{children:(0,p.createInterpolateElement)((0,fs.__)("They also show up as sub-items in the default navigation menu. <a>Learn more.</a>"),{a:(0,c.jsx)(Hn.ExternalLink,{href:(0,fs.__)("https://wordpress.org/documentation/article/page-post-settings-sidebar/#page-attributes")})})})]}),(0,c.jsx)(Vd,{})]})})})}var zd=Vd;const Gd="page-attributes";function $d(){const{isEnabled:e,postType:t}=(0,d.useSelect)((e=>{const{getEditedPostAttribute:t,isEditorPanelEnabled:s}=e(vc),{getPostType:n}=e(u.store);return{isEnabled:s(Gd),postType:n(t("type"))}}),[]);return e&&t?(0,c.jsx)(Hd,{}):null}function Wd(){return(0,c.jsx)(Td,{children:(0,c.jsx)($d,{})})}var Zd=(0,c.jsx)(L.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,c.jsx)(L.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M18.5 5.5V8H20V5.5H22.5V4H20V1.5H18.5V4H16V5.5H18.5ZM13.9624 4H6C4.89543 4 4 4.89543 4 6V18C4 19.1046 4.89543 20 6 20H18C19.1046 20 20 19.1046 20 18V10.0391H18.5V18C18.5 18.2761 18.2761 18.5 18 18.5H10L10 10.4917L16.4589 10.5139L16.4641 9.01389L5.5 8.97618V6C5.5 5.72386 5.72386 5.5 6 5.5H13.9624V4ZM5.5 10.4762V18C5.5 18.2761 5.72386 18.5 6 18.5H8.5L8.5 10.4865L5.5 10.4762Z"})});const Yd=(0,fs.__)("Custom Template");function qd({onClose:e}){const{defaultBlockTemplate:t,onNavigateToEntityRecord:s}=(0,d.useSelect)((e=>{const{getEditorSettings:t,getCurrentTemplateId:s}=e(vc);return{defaultBlockTemplate:t().defaultBlockTemplate,onNavigateToEntityRecord:t().onNavigateToEntityRecord,getTemplateId:s}})),{createTemplate:n}=$((0,d.useDispatch)(vc)),[o,r]=(0,p.useState)(""),[i,a]=(0,p.useState)(!1),l=()=>{r(""),e()};return(0,c.jsx)(Hn.Modal,{title:(0,fs.__)("Create custom template"),onRequestClose:l,focusOnMount:"firstContentElement",size:"small",overlayClassName:"editor-post-template__create-template-modal",children:(0,c.jsx)("form",{className:"editor-post-template__create-form",onSubmit:async e=>{if(e.preventDefault(),i)return;a(!0);const r=t??(0,x.serialize)([(0,x.createBlock)("core/group",{tagName:"header",layout:{inherit:!0}},[(0,x.createBlock)("core/site-title"),(0,x.createBlock)("core/site-tagline")]),(0,x.createBlock)("core/separator"),(0,x.createBlock)("core/group",{tagName:"main"},[(0,x.createBlock)("core/group",{layout:{inherit:!0}},[(0,x.createBlock)("core/post-title")]),(0,x.createBlock)("core/post-content",{layout:{inherit:!0}})])]),c=await n({slug:Kn(o||Yd)||"wp-custom-template",content:r,title:o||Yd});a(!1),s({postId:c.id,postType:"wp_template"}),l()},children:(0,c.jsxs)(Hn.__experimentalVStack,{spacing:"3",children:[(0,c.jsx)(Hn.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,fs.__)("Name"),value:o,onChange:r,placeholder:Yd,disabled:i,help:(0,fs.__)('Describe the template, e.g. "Post with sidebar". A custom template can be manually applied to any post or page.')}),(0,c.jsxs)(Hn.__experimentalHStack,{justify:"right",children:[(0,c.jsx)(Hn.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:l,children:(0,fs.__)("Cancel")}),(0,c.jsx)(Hn.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",isBusy:i,"aria-disabled":i,children:(0,fs.__)("Create")})]})]})})})}function Kd(){return(0,d.useSelect)((e=>{const{getCurrentPostId:t,getCurrentPostType:s}=e(vc);return{postId:t(),postType:s()}}),[])}function Qd(){const{postType:e,postId:t}=Kd();return(0,d.useSelect)((s=>{const{canUser:n,getEntityRecord:o,getEntityRecords:r}=s(u.store),i=n("read",{kind:"root",name:"site"})?o("root","site"):void 0,a=+t===i?.page_for_posts,l="page"===e&&+t===i?.page_on_front,c=l?r("postType","wp_template",{per_page:-1}):[],d=l&&!!c?.some((({slug:e})=>"front-page"===e));return!a&&!d}),[t,e])}function Xd(e){return(0,d.useSelect)((t=>t(u.store).getEntityRecords("postType","wp_template",{per_page:-1,post_type:e})),[e])}function Jd(e){const t=eu(),s=Qd(),n=Xd(e);return(0,p.useMemo)((()=>s&&n?.filter((e=>e.is_custom&&e.slug!==t&&!!e.content.raw))),[n,t,s])}function eu(){const{postType:e,postId:t}=Kd(),s=Xd(e),n=(0,d.useSelect)((s=>{const n=s(u.store).getEditedEntityRecord("postType",e,t);return n?.template}),[e,t]);if(n)return s?.find((e=>e.slug===n))?.slug}function tu({isOpen:e,onClick:t}){const s=(0,d.useSelect)((e=>{const t=e(vc).getEditedPostAttribute("template"),{supportsTemplateMode:s,availableTemplates:n}=e(vc).getEditorSettings();if(!s&&n[t])return n[t];const o=e(u.store).canUser("create",{kind:"postType",name:"wp_template"})&&e(vc).getCurrentTemplateId();return o?.title||o?.slug||n?.[t]}),[]);return(0,c.jsx)(Hn.Button,{__next40pxDefaultSize:!0,variant:"tertiary","aria-expanded":e,"aria-label":(0,fs.__)("Template options"),onClick:t,children:s??(0,fs.__)("Default template")})}function su({onClose:e}){const t=Qd(),{availableTemplates:s,fetchedTemplates:n,selectedTemplateSlug:o,canCreate:r,canEdit:i,currentTemplateId:a,onNavigateToEntityRecord:l,getEditorSettings:m}=(0,d.useSelect)((e=>{const{canUser:s,getEntityRecords:n}=e(u.store),o=e(vc).getEditorSettings(),r=s("create",{kind:"postType",name:"wp_template"}),i=e(vc).getCurrentTemplateId();return{availableTemplates:o.availableTemplates,fetchedTemplates:r?n("postType","wp_template",{post_type:e(vc).getCurrentPostType(),per_page:-1}):void 0,selectedTemplateSlug:e(vc).getEditedPostAttribute("template"),canCreate:t&&r&&o.supportsTemplateMode,canEdit:t&&r&&o.supportsTemplateMode&&!!i,currentTemplateId:i,onNavigateToEntityRecord:o.onNavigateToEntityRecord,getEditorSettings:e(vc).getEditorSettings}}),[t]),h=(0,p.useMemo)((()=>Object.entries({...s,...Object.fromEntries((n??[]).map((({slug:e,title:t})=>[e,t.rendered])))}).map((([e,t])=>({value:e,label:t})))),[s,n]),_=h.find((e=>e.value===o))??h.find((e=>!e.value)),{editPost:f}=(0,d.useDispatch)(vc),{createSuccessNotice:b}=(0,d.useDispatch)(_s.store),[y,x]=(0,p.useState)(!1);return(0,c.jsxs)("div",{className:"editor-post-template__classic-theme-dropdown",children:[(0,c.jsx)(g.__experimentalInspectorPopoverHeader,{title:(0,fs.__)("Template"),help:(0,fs.__)("Templates define the way content is displayed when viewing your site."),actions:r?[{icon:Zd,label:(0,fs.__)("Add template"),onClick:()=>x(!0)}]:[],onClose:e}),t?(0,c.jsx)(Hn.SelectControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,hideLabelFromVision:!0,label:(0,fs.__)("Template"),value:_?.value??"",options:h,onChange:e=>f({template:e||""})}):(0,c.jsx)(Hn.Notice,{status:"warning",isDismissible:!1,children:(0,fs.__)("The posts page template cannot be changed.")}),i&&l&&(0,c.jsx)("p",{children:(0,c.jsx)(Hn.Button,{__next40pxDefaultSize:!0,variant:"link",onClick:()=>{l({postId:a,postType:"wp_template"}),e(),b((0,fs.__)("Editing template. Changes made here affect all posts and pages that use the template."),{type:"snackbar",actions:[{label:(0,fs.__)("Go back"),onClick:()=>m().onNavigateToPreviousEntityRecord()}]})},children:(0,fs.__)("Edit template")})}),y&&(0,c.jsx)(qd,{onClose:()=>x(!1)})]})}var nu=function(){const[e,t]=(0,p.useState)(null),s=(0,p.useMemo)((()=>({anchor:e,className:"editor-post-template__dropdown",placement:"left-start",offset:36,shift:!0})),[e]);return(0,c.jsx)(Rd,{label:(0,fs.__)("Template"),ref:t,children:(0,c.jsx)(Hn.Dropdown,{popoverProps:s,focusOnMount:!0,renderToggle:({isOpen:e,onToggle:t})=>(0,c.jsx)(tu,{isOpen:e,onClick:t}),renderContent:({onClose:e})=>(0,c.jsx)(su,{onClose:e})})})};const ou=window.wp.warning;var ru=s.n(ou);const{PreferenceBaseOption:iu}=$(C.privateApis);function au(e){const{toggleEditorPanelEnabled:t}=(0,d.useDispatch)(vc),{isChecked:s,isRemoved:n}=(0,d.useSelect)((t=>{const{isEditorPanelEnabled:s,isEditorPanelRemoved:n}=t(vc);return{isChecked:s(e.panelName),isRemoved:n(e.panelName)}}),[e.panelName]);return n?null:(0,c.jsx)(iu,{isChecked:s,onChange:()=>t(e.panelName),...e})}const{Fill:lu,Slot:cu}=(0,Hn.createSlotFill)("EnablePluginDocumentSettingPanelOption"),du=({label:e,panelName:t})=>(0,c.jsx)(lu,{children:(0,c.jsx)(au,{label:e,panelName:t})});du.Slot=cu;var uu=du;const{Fill:pu,Slot:mu}=(0,Hn.createSlotFill)("PluginDocumentSettingPanel"),hu=({name:e,className:t,title:s,icon:n,children:o})=>{const{name:r}=(0,aa.usePluginContext)(),i=`${r}/${e}`,{opened:a,isEnabled:l}=(0,d.useSelect)((e=>{const{isEditorPanelOpened:t,isEditorPanelEnabled:s}=e(vc);return{opened:t(i),isEnabled:s(i)}}),[i]),{toggleEditorPanelOpened:u}=(0,d.useDispatch)(vc);return void 0===e&&ru()("PluginDocumentSettingPanel requires a name property."),(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(uu,{label:s,panelName:i}),(0,c.jsx)(pu,{children:l&&(0,c.jsx)(Hn.PanelBody,{className:t,title:s,icon:n,opened:a,onToggle:()=>u(i),children:o})})]})};hu.Slot=mu;var gu=hu;var _u=({allowedBlocks:e,icon:t,label:s,onClick:n,small:o,role:r})=>(0,c.jsx)(g.BlockSettingsMenuControls,{children:({selectedBlocks:i,onClose:a})=>((e,t)=>{return!Array.isArray(t)||(s=t,0===e.filter((e=>!s.includes(e))).length);var s})(i,e)?(0,c.jsx)(Hn.MenuItem,{onClick:(0,m.compose)(n,a),icon:t,label:o?s:void 0,role:r,children:!o&&s}):null});function fu(e){const t=(0,aa.usePluginContext)();return(0,c.jsx)(Na,{name:"core/plugin-more-menu",as:e.as??Hn.MenuItem,icon:e.icon||t.icon,...e})}const{Fill:bu,Slot:yu}=(0,Hn.createSlotFill)("PluginPostPublishPanel"),xu=({children:e,className:t,title:s,initialOpen:n=!1,icon:o})=>{const{icon:r}=(0,aa.usePluginContext)();return(0,c.jsx)(bu,{children:(0,c.jsx)(Hn.PanelBody,{className:t,initialOpen:n||!s,title:s,icon:o??r,children:e})})};xu.Slot=yu;var vu=xu;const{Fill:wu,Slot:Su}=(0,Hn.createSlotFill)("PluginPostStatusInfo"),ku=({children:e,className:t})=>(0,c.jsx)(wu,{children:(0,c.jsx)(Hn.PanelRow,{className:t,children:e})});ku.Slot=Su;var Cu=ku;const{Fill:Pu,Slot:ju}=(0,Hn.createSlotFill)("PluginPrePublishPanel"),Eu=({children:e,className:t,title:s,initialOpen:n=!1,icon:o})=>{const{icon:r}=(0,aa.usePluginContext)();return(0,c.jsx)(Pu,{children:(0,c.jsx)(Hn.PanelBody,{className:t,initialOpen:n||!s,title:s,icon:o??r,children:e})})};Eu.Slot=ju;var Tu=Eu;function Bu(e){const t=(0,aa.usePluginContext)();return(0,c.jsx)(Na,{name:"core/plugin-preview-menu",as:e.as??Hn.MenuItem,icon:e.icon||t.icon,...e})}function Iu({className:e,...t}){return(0,c.jsx)(Va,{panelClassName:e,className:"editor-sidebar",scope:"core",...t})}function Nu(e){return(0,c.jsx)(Da,{__unstableExplicitMenuItem:!0,scope:"core",...e})}function Ru(e=""){return e=(e=Mr()(e)).trim().toLowerCase()}function Du(e,t){const s=Ru(t),n=Ru(e.title);let o=0;if(s===n)o+=30;else if(n.startsWith(s))o+=20;else{s.split(" ").every((e=>n.includes(e)))&&(o+=10)}return o}function Au({onClick:e}){const[t,s]=(0,p.useState)(!1),{postType:n,postId:o}=Kd(),r=Jd(n),{editEntityRecord:i}=(0,d.useDispatch)(u.store);return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(Hn.MenuItem,{disabled:!r?.length,accessibleWhenDisabled:!0,onClick:()=>s(!0),children:(0,fs.__)("Change template")}),t&&(0,c.jsx)(Hn.Modal,{title:(0,fs.__)("Choose a template"),onRequestClose:()=>s(!1),overlayClassName:"editor-post-template__swap-template-modal",isFullScreen:!0,children:(0,c.jsx)("div",{className:"editor-post-template__swap-template-modal-content",children:(0,c.jsx)(Mu,{postType:n,onSelect:async t=>{i("postType",n,o,{template:t.name},{undoIgnore:!0}),s(!1),e()}})})})]})}function Mu({postType:e,onSelect:t}){const[s,n]=(0,p.useState)(""),o=Jd(e),r=(0,p.useMemo)((()=>o.map((e=>({name:e.slug,blocks:(0,x.parse)(e.content.raw),title:(0,Ln.decodeEntities)(e.title.rendered),id:e.id})))),[o]),i=(0,p.useMemo)((()=>function(e=[],t=""){if(!t)return e;const s=e.map((e=>[e,Du(e,t)])).filter((([,e])=>e>0));return s.sort((([,e],[,t])=>t-e)),s.map((([e])=>e))}(r,s)),[r,s]);return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(Hn.SearchControl,{__nextHasNoMarginBottom:!0,onChange:n,value:s,label:(0,fs.__)("Search"),placeholder:(0,fs.__)("Search"),className:"editor-post-template__swap-template-search"}),(0,c.jsx)(g.__experimentalBlockPatternsList,{label:(0,fs.__)("Templates"),blockPatterns:i,onClickPattern:t})]})}function Lu({onClick:e}){const t=eu(),s=Qd(),{postType:n,postId:o}=Kd(),{editEntityRecord:r}=(0,d.useDispatch)(u.store);return t&&s?(0,c.jsx)(Hn.MenuItem,{onClick:()=>{r("postType",n,o,{template:""},{undoIgnore:!0}),e()},children:(0,fs.__)("Use default template")}):null}function Ou(){const{canCreateTemplates:e}=(0,d.useSelect)((e=>{const{canUser:t}=e(u.store);return{canCreateTemplates:t("create",{kind:"postType",name:"wp_template"})}}),[]),[t,s]=(0,p.useState)(!1),n=Qd();return e&&n?(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(Hn.MenuItem,{onClick:()=>{s(!0)},children:(0,fs.__)("Create new template")}),t&&(0,c.jsx)(qd,{onClose:()=>{s(!1)}})]}):null}function Fu({id:e}){const{isTemplateHidden:t,onNavigateToEntityRecord:s,getEditorSettings:n,hasGoBack:o}=(0,d.useSelect)((e=>{const{getRenderingMode:t,getEditorSettings:s}=$(e(vc)),n=s();return{isTemplateHidden:"post-only"===t(),onNavigateToEntityRecord:n.onNavigateToEntityRecord,getEditorSettings:s,hasGoBack:n.hasOwnProperty("onNavigateToPreviousEntityRecord")}}),[]),{get:r}=(0,d.useSelect)(C.store),{editedRecord:i,hasResolved:a}=(0,u.useEntityRecord)("postType","wp_template",e),{createSuccessNotice:l}=(0,d.useDispatch)(_s.store),{setRenderingMode:m,setDefaultRenderingMode:h}=$((0,d.useDispatch)(vc)),g=(0,d.useSelect)((e=>!!e(u.store).canUser("create",{kind:"postType",name:"wp_template"})),[]),[_,f]=(0,p.useState)(null),b=(0,p.useMemo)((()=>({anchor:_,className:"editor-post-template__dropdown",placement:"left-start",offset:36,shift:!0})),[_]);if(!a)return null;const y=o?[{label:(0,fs.__)("Go back"),onClick:()=>n().onNavigateToPreviousEntityRecord()}]:void 0;return(0,c.jsx)(Rd,{label:(0,fs.__)("Template"),ref:f,children:(0,c.jsx)(Hn.DropdownMenu,{popoverProps:b,focusOnMount:!0,toggleProps:{size:"compact",variant:"tertiary",tooltipPosition:"middle left"},label:(0,fs.__)("Template options"),text:(0,Ln.decodeEntities)(i.title),icon:null,children:({onClose:e})=>(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)(Hn.MenuGroup,{children:[g&&(0,c.jsx)(Hn.MenuItem,{onClick:()=>{s({postId:i.id,postType:"wp_template"}),e(),r("core/edit-site","welcomeGuideTemplate")||l((0,fs.__)("Editing template. Changes made here affect all posts and pages that use the template."),{type:"snackbar",actions:y})},children:(0,fs.__)("Edit template")}),(0,c.jsx)(Au,{onClick:e}),(0,c.jsx)(Lu,{onClick:e}),g&&(0,c.jsx)(Ou,{})]}),(0,c.jsx)(Hn.MenuGroup,{children:(0,c.jsx)(Hn.MenuItem,{icon:t?void 0:zn,isSelected:!t,role:"menuitemcheckbox",onClick:()=>{const e=t?"template-locked":"post-only";m(e),h(e)},children:(0,fs.__)("Show template")})})]})})})}function Vu(){const{templateId:e,isBlockTheme:t}=(0,d.useSelect)((e=>{const{getCurrentTemplateId:t,getEditorSettings:s}=e(vc);return{templateId:t(),isBlockTheme:s().__unstableIsBlockBasedTheme}}),[]),s=(0,d.useSelect)((e=>{const t=e(vc).getCurrentPostType(),s=e(u.store).getPostType(t);if(!s?.viewable)return!1;const n=e(vc).getEditorSettings();if(!!n.availableTemplates&&Object.keys(n.availableTemplates).length>0)return!0;if(!n.supportsTemplateMode)return!1;return e(u.store).canUser("create",{kind:"postType",name:"wp_template"})??!1}),[]),n=(0,d.useSelect)((e=>!!s&&e(u.store).canUser("read",{kind:"postType",name:"wp_template"})),[s]);return t&&n||!s?t&&e?(0,c.jsx)(Fu,{id:e}):null:(0,c.jsx)(nu,{})}const Uu={_fields:"id,name",context:"view"},Hu={who:"authors",per_page:100,...Uu};function zu(e){const{authorId:t,authors:s,postAuthor:n,isLoading:o}=(0,d.useSelect)((t=>{const{getUser:s,getUsers:n,isResolving:o}=t(u.store),{getEditedPostAttribute:r}=t(vc),i=r("author"),a={...Hu};return e&&(a.search=e,a.search_columns=["name"]),{authorId:i,authors:n(a),postAuthor:s(i,Uu),isLoading:o("getUsers",[a])}}),[e]);return{authorId:t,authorOptions:(0,p.useMemo)((()=>{const e=(s??[]).map((e=>({value:e.id,label:(0,Ln.decodeEntities)(e.name)}))),t=e.findIndex((({value:e})=>n?.id===e));let o=[];return t<0&&n?o=[{value:n.id,label:(0,Ln.decodeEntities)(n.name)}]:t<0&&!n&&(o=[{value:0,label:(0,fs.__)("(No author)")}]),[...o,...e]}),[s,n]),postAuthor:n,isLoading:o}}function Gu(){const[e,t]=(0,p.useState)(),{editPost:s}=(0,d.useDispatch)(vc),{authorId:n,authorOptions:o,isLoading:r}=zu(e);return(0,c.jsx)(Hn.ComboboxControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,fs.__)("Author"),options:o,value:n,onFilterValueChange:(0,m.debounce)(t,300),onChange:e=>{e&&s({author:e})},allowReset:!1,hideLabelFromVision:!0,isLoading:r})}function $u(){const{editPost:e}=(0,d.useDispatch)(vc),{authorId:t,authorOptions:s}=zu();return(0,c.jsx)(Hn.SelectControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,className:"post-author-selector",label:(0,fs.__)("Author"),options:s,onChange:t=>{const s=Number(t);e({author:s})},value:t,hideLabelFromVision:!0})}var Wu=function(){return(0,d.useSelect)((e=>{const t=e(u.store).getUsers(Hu);return t?.length>=25}),[])?(0,c.jsx)(Gu,{}):(0,c.jsx)($u,{})};function Zu({children:e}){const{hasAssignAuthorAction:t}=(0,d.useSelect)((e=>{const t=e(vc).getCurrentPost();return{hasAssignAuthorAction:!!t?._links?.["wp:action-assign-author"]}}),[]);return t?(0,c.jsx)(Bd,{supportKeys:"author",children:e}):null}function Yu({isOpen:e,onClick:t}){const{postAuthor:s}=(0,d.useSelect)((e=>{const t=e(vc).getEditedPostAttribute("author");return{postAuthor:e(u.store).getUser(t,Uu)}}),[]),n=(0,Ln.decodeEntities)(s?.name)||(0,fs.__)("(No author)");return(0,c.jsx)(Hn.Button,{size:"compact",className:"editor-post-author__panel-toggle",variant:"tertiary","aria-expanded":e,"aria-label":(0,fs.sprintf)((0,fs.__)("Change author: %s"),n),onClick:t,children:n})}var qu=function(){const[e,t]=(0,p.useState)(null),s=(0,p.useMemo)((()=>({anchor:e,placement:"left-start",offset:36,shift:!0})),[e]);return(0,c.jsx)(Zu,{children:(0,c.jsx)(Rd,{label:(0,fs.__)("Author"),ref:t,children:(0,c.jsx)(Hn.Dropdown,{popoverProps:s,contentClassName:"editor-post-author__panel-dialog",focusOnMount:!0,renderToggle:({isOpen:e,onToggle:t})=>(0,c.jsx)(Yu,{isOpen:e,onClick:t}),renderContent:({onClose:e})=>(0,c.jsxs)("div",{className:"editor-post-author",children:[(0,c.jsx)(g.__experimentalInspectorPopoverHeader,{title:(0,fs.__)("Author"),onClose:e}),(0,c.jsx)(Wu,{onClose:e})]})})})})};const Ku=[{label:(0,fs._x)("Open",'Adjective: e.g. "Comments are open"'),value:"open",description:(0,fs.__)("Visitors can add new comments and replies.")},{label:(0,fs.__)("Closed"),value:"closed",description:[(0,fs.__)("Visitors cannot add new comments or replies."),(0,fs.__)("Existing comments remain visible.")].join(" ")}];var Qu=function(){const e=(0,d.useSelect)((e=>e(vc).getEditedPostAttribute("comment_status")??"open"),[]),{editPost:t}=(0,d.useDispatch)(vc);return(0,c.jsx)("form",{children:(0,c.jsx)(Hn.__experimentalVStack,{spacing:4,children:(0,c.jsx)(Hn.RadioControl,{className:"editor-change-status__options",hideLabelFromVision:!0,label:(0,fs.__)("Comment status"),options:Ku,onChange:e=>t({comment_status:e}),selected:e})})})};var Xu=function(){const e=(0,d.useSelect)((e=>e(vc).getEditedPostAttribute("ping_status")??"open"),[]),{editPost:t}=(0,d.useDispatch)(vc);return(0,c.jsx)(Hn.CheckboxControl,{__nextHasNoMarginBottom:!0,label:(0,fs.__)("Enable pingbacks & trackbacks"),checked:"open"===e,onChange:()=>t({ping_status:"open"===e?"closed":"open"}),help:(0,c.jsx)(Hn.ExternalLink,{href:(0,fs.__)("https://wordpress.org/documentation/article/trackbacks-and-pingbacks/"),children:(0,fs.__)("Learn more about pingbacks & trackbacks")})})};const Ju="discussion-panel";function ep({onClose:e}){return(0,c.jsxs)("div",{className:"editor-post-discussion",children:[(0,c.jsx)(g.__experimentalInspectorPopoverHeader,{title:(0,fs.__)("Discussion"),onClose:e}),(0,c.jsxs)(Hn.__experimentalVStack,{spacing:4,children:[(0,c.jsx)(Bd,{supportKeys:"comments",children:(0,c.jsx)(Qu,{})}),(0,c.jsx)(Bd,{supportKeys:"trackbacks",children:(0,c.jsx)(Xu,{})})]})]})}function tp({isOpen:e,onClick:t}){const{commentStatus:s,pingStatus:n,commentsSupported:o,trackbacksSupported:r}=(0,d.useSelect)((e=>{const{getEditedPostAttribute:t}=e(vc),{getPostType:s}=e(u.store),n=s(t("type"));return{commentStatus:t("comment_status")??"open",pingStatus:t("ping_status")??"open",commentsSupported:!!n.supports.comments,trackbacksSupported:!!n.supports.trackbacks}}),[]);let i;return i="open"===s?"open"===n?(0,fs._x)("Open",'Adjective: e.g. "Comments are open"'):r?(0,fs.__)("Comments only"):(0,fs._x)("Open",'Adjective: e.g. "Comments are open"'):"open"===n?o?(0,fs.__)("Pings only"):(0,fs.__)("Pings enabled"):(0,fs.__)("Closed"),(0,c.jsx)(Hn.Button,{size:"compact",className:"editor-post-discussion__panel-toggle",variant:"tertiary","aria-label":(0,fs.__)("Change discussion options"),"aria-expanded":e,onClick:t,children:i})}function sp(){const{isEnabled:e}=(0,d.useSelect)((e=>{const{isEditorPanelEnabled:t}=e(vc);return{isEnabled:t(Ju)}}),[]),[t,s]=(0,p.useState)(null),n=(0,p.useMemo)((()=>({anchor:t,placement:"left-start",offset:36,shift:!0})),[t]);return e?(0,c.jsx)(Bd,{supportKeys:["comments","trackbacks"],children:(0,c.jsx)(Rd,{label:(0,fs.__)("Discussion"),ref:s,children:(0,c.jsx)(Hn.Dropdown,{popoverProps:n,className:"editor-post-discussion__panel-dropdown",contentClassName:"editor-post-discussion__panel-dialog",focusOnMount:!0,renderToggle:({isOpen:e,onToggle:t})=>(0,c.jsx)(tp,{isOpen:e,onClick:t}),renderContent:({onClose:e})=>(0,c.jsx)(ep,{onClose:e})})})}):null}function np({hideLabelFromVision:e=!1,updateOnBlur:t=!1}){const{excerpt:s,shouldUseDescriptionLabel:n,usedAttribute:o}=(0,d.useSelect)((e=>{const{getCurrentPostType:t,getEditedPostAttribute:s}=e(vc),n=t(),o=["wp_template","wp_template_part"].includes(n)?"description":"excerpt";return{excerpt:s(o),shouldUseDescriptionLabel:["wp_template","wp_template_part","wp_block"].includes(n),usedAttribute:o}}),[]),{editPost:r}=(0,d.useDispatch)(vc),[i,a]=(0,p.useState)((0,Ln.decodeEntities)(s)),l=e=>{r({[o]:e})},u=n?(0,fs.__)("Write a description (optional)"):(0,fs.__)("Write an excerpt (optional)");return(0,c.jsx)("div",{className:"editor-post-excerpt",children:(0,c.jsx)(Hn.TextareaControl,{__nextHasNoMarginBottom:!0,label:u,hideLabelFromVision:e,className:"editor-post-excerpt__textarea",onChange:t?a:l,onBlur:t?()=>l(i):void 0,value:t?i:s,help:n?(0,fs.__)("Write a description"):(0,c.jsx)(Hn.ExternalLink,{href:(0,fs.__)("https://wordpress.org/documentation/article/page-post-settings-sidebar/#excerpt"),children:(0,fs.__)("Learn more about manual excerpts")})})})}var op=function({children:e}){return(0,c.jsx)(Bd,{supportKeys:"excerpt",children:e})};const{Fill:rp,Slot:ip}=(0,Hn.createSlotFill)("PluginPostExcerpt"),ap=({children:e,className:t})=>(0,c.jsx)(rp,{children:(0,c.jsx)(Hn.PanelRow,{className:t,children:e})});ap.Slot=ip;var lp=ap;const cp="post-excerpt";function dp(){const{isOpened:e,isEnabled:t,postType:s}=(0,d.useSelect)((e=>{const{isEditorPanelOpened:t,isEditorPanelEnabled:s,getCurrentPostType:n}=e(vc);return{isOpened:t(cp),isEnabled:s(cp),postType:n()}}),[]),{toggleEditorPanelOpened:n}=(0,d.useDispatch)(vc);if(!t)return null;const o=["wp_template","wp_template_part","wp_block"].includes(s);return(0,c.jsx)(Hn.PanelBody,{title:o?(0,fs.__)("Description"):(0,fs.__)("Excerpt"),opened:e,onToggle:()=>n(cp),children:(0,c.jsx)(lp.Slot,{children:e=>(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(np,{}),e]})})})}function up(){return(0,c.jsx)(op,{children:(0,c.jsx)(dp,{})})}function pp(){return(0,c.jsx)(op,{children:(0,c.jsx)(mp,{})})}function mp(){const{shouldRender:e,excerpt:t,shouldBeUsedAsDescription:s,allowEditing:n}=(0,d.useSelect)((e=>{const{getCurrentPostType:t,getCurrentPostId:s,getEditedPostAttribute:n,isEditorPanelEnabled:o}=e(vc),r=t(),i=["wp_template","wp_template_part"].includes(r),a="wp_block"===r,l=i||a,c=n(i?"description":"excerpt"),d=i&&e(u.store).getEntityRecord("postType",r,s()),p=o(cp)||l;return{excerpt:c,shouldRender:p,shouldBeUsedAsDescription:l,allowEditing:p&&(!l||a||d&&d.source===D&&!d.has_theme_file&&d.is_custom)}}),[]),[o,r]=(0,p.useState)(null),i=s?(0,fs.__)("Description"):(0,fs.__)("Excerpt"),a=(0,p.useMemo)((()=>({anchor:o,"aria-label":i,headerTitle:i,placement:"left-start",offset:36,shift:!0})),[o,i]);if(!e)return!1;const l=!!t&&(0,c.jsx)(Hn.__experimentalText,{align:"left",numberOfLines:4,truncate:n,children:(0,Ln.decodeEntities)(t)});if(!n)return l;const m=s?(0,fs.__)("Add a description…"):(0,fs.__)("Add an excerpt…"),h=s?(0,fs.__)("Edit description"):(0,fs.__)("Edit excerpt");return(0,c.jsxs)(Hn.__experimentalVStack,{children:[l,(0,c.jsx)(Hn.Dropdown,{className:"editor-post-excerpt__dropdown",contentClassName:"editor-post-excerpt__dropdown__content",popoverProps:a,focusOnMount:!0,ref:r,renderToggle:({onToggle:e})=>(0,c.jsx)(Hn.Button,{__next40pxDefaultSize:!0,onClick:e,variant:"link",children:l?h:m}),renderContent:({onClose:e})=>(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(g.__experimentalInspectorPopoverHeader,{title:i,onClose:e}),(0,c.jsx)(Hn.__experimentalVStack,{spacing:4,children:(0,c.jsx)(lp.Slot,{children:e=>(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(np,{hideLabelFromVision:!0,updateOnBlur:!0}),e]})})})]})})]})}function hp({children:e,supportKeys:t}){const{postType:s,themeSupports:n}=(0,d.useSelect)((e=>({postType:e(vc).getEditedPostAttribute("type"),themeSupports:e(u.store).getThemeSupports()})),[]);return(Array.isArray(t)?t:[t]).some((e=>{const t=n?.[e]??!1;return"post-thumbnails"===e&&Array.isArray(t)?t.includes(s):t}))?e:null}var gp=function({children:e}){return(0,c.jsx)(hp,{supportKeys:"post-thumbnails",children:(0,c.jsx)(Bd,{supportKeys:"thumbnail",children:e})})};const _p=["image"],fp=(0,fs.__)("Featured image"),bp=(0,fs.__)("Add a featured image"),yp=(0,c.jsx)("p",{children:(0,fs.__)("To edit the featured image, you need permission to upload media.")});const xp=(0,d.withSelect)((e=>{const{getEntityRecord:t,getPostType:s,hasFinishedResolution:n}=e(u.store),{getCurrentPostId:o,getEditedPostAttribute:r}=e(vc),i=r("featured_media");return{media:i?t("postType","attachment",i,{context:"view"}):null,currentPostId:o(),postType:s(r("type")),featuredImageId:i,isRequestingFeaturedImageMedia:!!i&&!n("getEntityRecord",["postType","attachment",i,{context:"view"}])}})),vp=(0,d.withDispatch)(((e,{noticeOperations:t},{select:s})=>{const{editPost:n}=e(vc);return{onUpdateImage(e){n({featured_media:e.id})},onDropImage(e){s(g.store).getSettings().mediaUpload({allowedTypes:["image"],filesList:e,onFileChange([e]){n({featured_media:e.id})},onError(e){t.removeAllNotices(),t.createErrorNotice(e)},multiple:!1})},onRemoveImage(){n({featured_media:0})}}}));var wp=(0,m.compose)(Hn.withNotices,xp,vp,(0,Hn.withFilters)("editor.PostFeaturedImage"))((function({currentPostId:e,featuredImageId:t,onUpdateImage:s,onRemoveImage:n,media:o,postType:r,noticeUI:i,noticeOperations:a,isRequestingFeaturedImageMedia:l}){const u=(0,p.useRef)(!1),[m,_]=(0,p.useState)(!1),{getSettings:f}=(0,d.useSelect)(g.store),{mediaSourceUrl:b}=function(e,t){if(!e)return{};const s=(0,h.applyFilters)("editor.PostFeaturedImage.imageSize","large",e.id,t);if(s in(e?.media_details?.sizes??{}))return{mediaWidth:e.media_details.sizes[s].width,mediaHeight:e.media_details.sizes[s].height,mediaSourceUrl:e.media_details.sizes[s].source_url};const n=(0,h.applyFilters)("editor.PostFeaturedImage.imageSize","thumbnail",e.id,t);return n in(e?.media_details?.sizes??{})?{mediaWidth:e.media_details.sizes[n].width,mediaHeight:e.media_details.sizes[n].height,mediaSourceUrl:e.media_details.sizes[n].source_url}:{mediaWidth:e.media_details.width,mediaHeight:e.media_details.height,mediaSourceUrl:e.source_url}}(o,e);function y(e){f().mediaUpload({allowedTypes:_p,filesList:e,onFileChange([e]){(0,Go.isBlobURL)(e?.url)?_(!0):(e&&s(e),_(!1))},onError(e){a.removeAllNotices(),a.createErrorNotice(e)},multiple:!1})}function x(e){return e.alt_text?(0,fs.sprintf)((0,fs.__)("Current image: %s"),e.alt_text):(0,fs.sprintf)((0,fs.__)("The current image has no alternative text. The file name is: %s"),e.media_details.sizes?.full?.file||e.slug)}function v(e){u.current&&e&&(e.focus(),u.current=!1)}const w=!l&&!!t&&!o;return(0,c.jsxs)(gp,{children:[i,(0,c.jsxs)("div",{className:"editor-post-featured-image",children:[o&&(0,c.jsx)("div",{id:`editor-post-featured-image-${t}-describedby`,className:"hidden",children:x(o)}),(0,c.jsx)(g.MediaUploadCheck,{fallback:yp,children:(0,c.jsx)(g.MediaUpload,{title:r?.labels?.featured_image||fp,onSelect:s,unstableFeaturedImageFlow:!0,allowedTypes:_p,modalClass:"editor-post-featured-image__media-modal",render:({open:e})=>(0,c.jsxs)("div",{className:"editor-post-featured-image__container",children:[w?(0,c.jsx)(Hn.Notice,{status:"warning",isDismissible:!1,children:(0,fs.__)("Could not retrieve the featured image data.")}):(0,c.jsxs)(Hn.Button,{__next40pxDefaultSize:!0,ref:v,className:t?"editor-post-featured-image__preview":"editor-post-featured-image__toggle",onClick:e,"aria-label":t?(0,fs.__)("Edit or replace the featured image"):null,"aria-describedby":t?`editor-post-featured-image-${t}-describedby`:null,"aria-haspopup":"dialog",disabled:m,accessibleWhenDisabled:!0,children:[!!t&&o&&(0,c.jsx)("img",{className:"editor-post-featured-image__preview-image",src:b,alt:x(o)}),(m||l)&&(0,c.jsx)(Hn.Spinner,{}),!t&&!m&&(r?.labels?.set_featured_image||bp)]}),!!t&&(0,c.jsxs)(Hn.__experimentalHStack,{className:mr("editor-post-featured-image__actions",{"editor-post-featured-image__actions-missing-image":w,"editor-post-featured-image__actions-is-requesting-image":l}),children:[(0,c.jsx)(Hn.Button,{__next40pxDefaultSize:!0,className:"editor-post-featured-image__action",onClick:e,"aria-haspopup":"dialog",variant:w?"secondary":void 0,children:(0,fs.__)("Replace")}),(0,c.jsx)(Hn.Button,{__next40pxDefaultSize:!0,className:"editor-post-featured-image__action",onClick:()=>{n(),u.current=!0},variant:w?"secondary":void 0,isDestructive:w,children:(0,fs.__)("Remove")})]}),(0,c.jsx)(Hn.DropZone,{onFilesDrop:y})]}),value:t})})]})]})}));const Sp="featured-image";function kp({withPanelBody:e=!0}){const{postType:t,isEnabled:s,isOpened:n}=(0,d.useSelect)((e=>{const{getEditedPostAttribute:t,isEditorPanelEnabled:s,isEditorPanelOpened:n}=e(vc),{getPostType:o}=e(u.store);return{postType:o(t("type")),isEnabled:s(Sp),isOpened:n(Sp)}}),[]),{toggleEditorPanelOpened:o}=(0,d.useDispatch)(vc);return s?e?(0,c.jsx)(gp,{children:(0,c.jsx)(Hn.PanelBody,{title:t?.labels?.featured_image??(0,fs.__)("Featured image"),opened:n,onToggle:()=>o(Sp),children:(0,c.jsx)(wp,{})})}):(0,c.jsx)(gp,{children:(0,c.jsx)(wp,{})}):null}function Cp({children:e}){return(0,d.useSelect)((e=>e(vc).getEditorSettings().disablePostFormats),[])?null:(0,c.jsx)(Bd,{supportKeys:"post-formats",children:e})}const Pp=[{id:"aside",caption:(0,fs.__)("Aside")},{id:"audio",caption:(0,fs.__)("Audio")},{id:"chat",caption:(0,fs.__)("Chat")},{id:"gallery",caption:(0,fs.__)("Gallery")},{id:"image",caption:(0,fs.__)("Image")},{id:"link",caption:(0,fs.__)("Link")},{id:"quote",caption:(0,fs.__)("Quote")},{id:"standard",caption:(0,fs.__)("Standard")},{id:"status",caption:(0,fs.__)("Status")},{id:"video",caption:(0,fs.__)("Video")}].sort(((e,t)=>{const s=e.caption.toUpperCase(),n=t.caption.toUpperCase();return s<n?-1:s>n?1:0}));function jp(){const e=`post-format-selector-${(0,m.useInstanceId)(jp)}`,{postFormat:t,suggestedFormat:s,supportedFormats:n}=(0,d.useSelect)((e=>{const{getEditedPostAttribute:t,getSuggestedPostFormat:s}=e(vc),n=t("format"),o=e(u.store).getThemeSupports();return{postFormat:n??"standard",suggestedFormat:s(),supportedFormats:o.formats}}),[]),o=Pp.filter((e=>n?.includes(e.id)||t===e.id)),r=o.find((e=>e.id===s)),{editPost:i}=(0,d.useDispatch)(vc),a=e=>i({format:e});return(0,c.jsx)(Cp,{children:(0,c.jsxs)("div",{className:"editor-post-format",children:[(0,c.jsx)(Hn.RadioControl,{className:"editor-post-format__options",label:(0,fs.__)("Post Format"),selected:t,onChange:e=>a(e),id:e,options:o.map((e=>({label:e.caption,value:e.id}))),hideLabelFromVision:!0}),r&&r.id!==t&&(0,c.jsx)("p",{className:"editor-post-format__suggestion",children:(0,c.jsx)(Hn.Button,{__next40pxDefaultSize:!0,variant:"link",onClick:()=>a(r.id),children:(0,fs.sprintf)((0,fs.__)("Apply suggested format: %s"),r.caption)})})]})})}var Ep=function({children:e}){const{lastRevisionId:t,revisionsCount:s}=(0,d.useSelect)((e=>{const{getCurrentPostLastRevisionId:t,getCurrentPostRevisionsCount:s}=e(vc);return{lastRevisionId:t(),revisionsCount:s()}}),[]);return!t||s<2?null:(0,c.jsx)(Bd,{supportKeys:"revisions",children:e})};function Tp(){return(0,d.useSelect)((e=>{const{getCurrentPostLastRevisionId:t,getCurrentPostRevisionsCount:s}=e(vc);return{lastRevisionId:t(),revisionsCount:s()}}),[])}function Bp(){const{lastRevisionId:e,revisionsCount:t}=Tp();return(0,c.jsx)(Ep,{children:(0,c.jsx)(Rd,{label:(0,fs.__)("Revisions"),children:(0,c.jsx)(Hn.Button,{href:(0,w.addQueryArgs)("revision.php",{revision:e}),className:"editor-private-post-last-revision__button",text:t,variant:"tertiary",size:"compact"})})})}var Ip=function(){const{lastRevisionId:e,revisionsCount:t}=Tp();return(0,c.jsx)(Ep,{children:(0,c.jsx)(Hn.Button,{__next40pxDefaultSize:!0,href:(0,w.addQueryArgs)("revision.php",{revision:e}),className:"editor-post-last-revision__title",icon:Yo,iconPosition:"right",text:(0,fs.sprintf)((0,fs.__)("Revisions (%s)"),t)})})};var Np=function(){return(0,c.jsx)(Ep,{children:(0,c.jsx)(Hn.PanelBody,{className:"editor-post-last-revision__panel",children:(0,c.jsx)(Ip,{})})})};var Rp=function e(){const t="core/editor/post-locked-modal-"+(0,m.useInstanceId)(e),{autosave:s,updatePostLock:n}=(0,d.useDispatch)(vc),{isLocked:o,isTakeover:r,user:i,postId:a,postLockUtils:l,activePostLock:g,postType:_,previewLink:f}=(0,d.useSelect)((e=>{const{isPostLocked:t,isPostLockTakeover:s,getPostLockUser:n,getCurrentPostId:o,getActivePostLock:r,getEditedPostAttribute:i,getEditedPostPreviewLink:a,getEditorSettings:l}=e(vc),{getPostType:c}=e(u.store);return{isLocked:t(),isTakeover:s(),user:n(),postId:o(),postLockUtils:l().postLockUtils,activePostLock:r(),postType:c(i("type")),previewLink:a()}}),[]);if((0,p.useEffect)((()=>{function e(){if(o||!g)return;const e=new window.FormData;if(e.append("action","wp-remove-post-lock"),e.append("_wpnonce",l.unlockNonce),e.append("post_ID",a),e.append("active_post_lock",g),window.navigator.sendBeacon)window.navigator.sendBeacon(l.ajaxUrl,e);else{const t=new window.XMLHttpRequest;t.open("POST",l.ajaxUrl,!1),t.send(e)}}return(0,h.addAction)("heartbeat.send",t,(function(e){o||(e["wp-refresh-post-lock"]={lock:g,post_id:a})})),(0,h.addAction)("heartbeat.tick",t,(function(e){if(!e["wp-refresh-post-lock"])return;const t=e["wp-refresh-post-lock"];t.lock_error?(s(),n({isLocked:!0,isTakeover:!0,user:{name:t.lock_error.name,avatar:t.lock_error.avatar_src_2x}})):t.new_lock&&n({isLocked:!1,activePostLock:t.new_lock})})),window.addEventListener("beforeunload",e),()=>{(0,h.removeAction)("heartbeat.send",t),(0,h.removeAction)("heartbeat.tick",t),window.removeEventListener("beforeunload",e)}}),[]),!o)return null;const b=i.name,y=i.avatar,x=(0,w.addQueryArgs)("post.php",{"get-post-lock":"1",lockKey:!0,post:a,action:"edit",_wpnonce:l.nonce}),v=(0,w.addQueryArgs)("edit.php",{post_type:_?.slug}),S=(0,fs.__)("Exit editor");return(0,c.jsx)(Hn.Modal,{title:r?(0,fs.__)("Someone else has taken over this post"):(0,fs.__)("This post is already being edited"),focusOnMount:!0,shouldCloseOnClickOutside:!1,shouldCloseOnEsc:!1,isDismissible:!1,className:"editor-post-locked-modal",size:"medium",children:(0,c.jsxs)(Hn.__experimentalHStack,{alignment:"top",spacing:6,children:[!!y&&(0,c.jsx)("img",{src:y,alt:(0,fs.__)("Avatar"),className:"editor-post-locked-modal__avatar",width:64,height:64}),(0,c.jsxs)("div",{children:[!!r&&(0,c.jsx)("p",{children:(0,p.createInterpolateElement)(b?(0,fs.sprintf)((0,fs.__)("<strong>%s</strong> now has editing control of this post (<PreviewLink />). Don’t worry, your changes up to this moment have been saved."),b):(0,fs.__)("Another user now has editing control of this post (<PreviewLink />). Don’t worry, your changes up to this moment have been saved."),{strong:(0,c.jsx)("strong",{}),PreviewLink:(0,c.jsx)(Hn.ExternalLink,{href:f,children:(0,fs.__)("preview")})})}),!r&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("p",{children:(0,p.createInterpolateElement)(b?(0,fs.sprintf)((0,fs.__)("<strong>%s</strong> is currently working on this post (<PreviewLink />), which means you cannot make changes, unless you take over."),b):(0,fs.__)("Another user is currently working on this post (<PreviewLink />), which means you cannot make changes, unless you take over."),{strong:(0,c.jsx)("strong",{}),PreviewLink:(0,c.jsx)(Hn.ExternalLink,{href:f,children:(0,fs.__)("preview")})})}),(0,c.jsx)("p",{children:(0,fs.__)("If you take over, the other user will lose editing control to the post, but their changes will be saved.")})]}),(0,c.jsxs)(Hn.__experimentalHStack,{className:"editor-post-locked-modal__buttons",justify:"flex-end",children:[!r&&(0,c.jsx)(Hn.Button,{__next40pxDefaultSize:!0,variant:"tertiary",href:x,children:(0,fs.__)("Take over")}),(0,c.jsx)(Hn.Button,{__next40pxDefaultSize:!0,variant:"primary",href:v,children:S})]})]})]})})};var Dp=function({children:e}){const{hasPublishAction:t,isPublished:s}=(0,d.useSelect)((e=>{const{isCurrentPostPublished:t,getCurrentPost:s}=e(vc);return{hasPublishAction:s()._links?.["wp:action-publish"]??!1,isPublished:t()}}),[]);return s||!t?null:e};var Ap=function(){const e=(0,d.useSelect)((e=>e(vc).getEditedPostAttribute("status")),[]),{editPost:t}=(0,d.useDispatch)(vc);return(0,c.jsx)(Dp,{children:(0,c.jsx)(Hn.CheckboxControl,{__nextHasNoMarginBottom:!0,label:(0,fs.__)("Pending review"),checked:"pending"===e,onChange:()=>{t({status:"pending"===e?"draft":"pending"})}})})};function Mp({className:e,textContent:t,forceIsAutosaveable:s,role:n,onPreview:o}){const{postId:r,currentPostLink:i,previewLink:a,isSaveable:l,isViewable:m}=(0,d.useSelect)((e=>{const t=e(vc),s=e(u.store).getPostType(t.getCurrentPostType("type")),n=s?.viewable??!1;return n?{postId:t.getCurrentPostId(),currentPostLink:t.getCurrentPostAttribute("link"),previewLink:t.getEditedPostPreviewLink(),isSaveable:t.isEditedPostSaveable(),isViewable:n}:{isViewable:n}}),[]),{__unstableSaveForPreview:g}=(0,d.useDispatch)(vc);if(!m)return null;const _=`wp-preview-${r}`,f=a||i;return(0,c.jsx)(Hn.Button,{variant:e?void 0:"tertiary",className:e||"editor-post-preview",href:f,target:_,accessibleWhenDisabled:!0,disabled:!l,onClick:async e=>{e.preventDefault();const t=window.open("",_);t.focus(),function(e){let t=(0,p.renderToString)((0,c.jsxs)("div",{className:"editor-post-preview-button__interstitial-message",children:[(0,c.jsxs)(Hn.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 96 96",children:[(0,c.jsx)(Hn.Path,{className:"outer",d:"M48 12c19.9 0 36 16.1 36 36S67.9 84 48 84 12 67.9 12 48s16.1-36 36-36",fill:"none"}),(0,c.jsx)(Hn.Path,{className:"inner",d:"M69.5 46.4c0-3.9-1.4-6.7-2.6-8.8-1.6-2.6-3.1-4.9-3.1-7.5 0-2.9 2.2-5.7 5.4-5.7h.4C63.9 19.2 56.4 16 48 16c-11.2 0-21 5.7-26.7 14.4h2.1c3.3 0 8.5-.4 8.5-.4 1.7-.1 1.9 2.4.2 2.6 0 0-1.7.2-3.7.3L40 67.5l7-20.9L42 33c-1.7-.1-3.3-.3-3.3-.3-1.7-.1-1.5-2.7.2-2.6 0 0 5.3.4 8.4.4 3.3 0 8.5-.4 8.5-.4 1.7-.1 1.9 2.4.2 2.6 0 0-1.7.2-3.7.3l11.5 34.3 3.3-10.4c1.6-4.5 2.4-7.8 2.4-10.5zM16.1 48c0 12.6 7.3 23.5 18 28.7L18.8 35c-1.7 4-2.7 8.4-2.7 13zm32.5 2.8L39 78.6c2.9.8 5.9 1.3 9 1.3 3.7 0 7.3-.6 10.6-1.8-.1-.1-.2-.3-.2-.4l-9.8-26.9zM76.2 36c0 3.2-.6 6.9-2.4 11.4L64 75.6c9.5-5.5 15.9-15.8 15.9-27.6 0-5.5-1.4-10.8-3.9-15.3.1 1 .2 2.1.2 3.3z",fill:"none"})]}),(0,c.jsx)("p",{children:(0,fs.__)("Generating preview…")})]}));t+='\n\t\t<style>\n\t\t\tbody {\n\t\t\t\tmargin: 0;\n\t\t\t}\n\t\t\t.editor-post-preview-button__interstitial-message {\n\t\t\t\tdisplay: flex;\n\t\t\t\tflex-direction: column;\n\t\t\t\talign-items: center;\n\t\t\t\tjustify-content: center;\n\t\t\t\theight: 100vh;\n\t\t\t\twidth: 100vw;\n\t\t\t}\n\t\t\t@-webkit-keyframes paint {\n\t\t\t\t0% {\n\t\t\t\t\tstroke-dashoffset: 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\t@-moz-keyframes paint {\n\t\t\t\t0% {\n\t\t\t\t\tstroke-dashoffset: 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\t@-o-keyframes paint {\n\t\t\t\t0% {\n\t\t\t\t\tstroke-dashoffset: 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\t@keyframes paint {\n\t\t\t\t0% {\n\t\t\t\t\tstroke-dashoffset: 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\t.editor-post-preview-button__interstitial-message svg {\n\t\t\t\twidth: 192px;\n\t\t\t\theight: 192px;\n\t\t\t\tstroke: #555d66;\n\t\t\t\tstroke-width: 0.75;\n\t\t\t}\n\t\t\t.editor-post-preview-button__interstitial-message svg .outer,\n\t\t\t.editor-post-preview-button__interstitial-message svg .inner {\n\t\t\t\tstroke-dasharray: 280;\n\t\t\t\tstroke-dashoffset: 280;\n\t\t\t\t-webkit-animation: paint 1.5s ease infinite alternate;\n\t\t\t\t-moz-animation: paint 1.5s ease infinite alternate;\n\t\t\t\t-o-animation: paint 1.5s ease infinite alternate;\n\t\t\t\tanimation: paint 1.5s ease infinite alternate;\n\t\t\t}\n\t\t\tp {\n\t\t\t\ttext-align: center;\n\t\t\t\tfont-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;\n\t\t\t}\n\t\t</style>\n\t',t=(0,h.applyFilters)("editor.PostPreview.interstitialMarkup",t),e.write(t),e.title=(0,fs.__)("Generating preview…"),e.close()}(t.document);const n=await g({forceIsAutosaveable:s});t.location=n,o?.()},role:n,size:"compact",children:t||(0,c.jsxs)(c.Fragment,{children:[(0,fs._x)("Preview","imperative verb"),(0,c.jsx)(Hn.VisuallyHidden,{as:"span",children:(0,fs.__)("(opens in a new tab)")})]})})}function Lp(){const e=(0,m.useViewportMatch)("medium","<"),{isPublished:t,isBeingScheduled:s,isSaving:n,isPublishing:o,hasPublishAction:r,isAutosaving:i,hasNonPostEntityChanges:a,postStatusHasChanged:l,postStatus:c}=(0,d.useSelect)((e=>{const{isCurrentPostPublished:t,isEditedPostBeingScheduled:s,isSavingPost:n,isPublishingPost:o,getCurrentPost:r,getCurrentPostType:i,isAutosavingPost:a,getPostEdits:l,getEditedPostAttribute:c}=e(vc);return{isPublished:t(),isBeingScheduled:s(),isSaving:n(),isPublishing:o(),hasPublishAction:r()._links?.["wp:action-publish"]??!1,postType:i(),isAutosaving:a(),hasNonPostEntityChanges:e(vc).hasNonPostEntityChanges(),postStatusHasChanged:!!l()?.status,postStatus:c("status")}}),[]);return o?(0,fs.__)("Publishing…"):(t||s)&&n&&!i?(0,fs.__)("Saving…"):r?a||t||l&&!["future","publish"].includes(c)||!l&&"future"===c?(0,fs.__)("Save"):s?(0,fs.__)("Schedule"):(0,fs.__)("Publish"):e?(0,fs.__)("Publish"):(0,fs.__)("Submit for Review")}const Op=()=>{};class Fp extends p.Component{constructor(e){super(e),this.createOnClick=this.createOnClick.bind(this),this.closeEntitiesSavedStates=this.closeEntitiesSavedStates.bind(this),this.state={entitiesSavedStatesCallback:!1}}createOnClick(e){return(...t)=>{const{hasNonPostEntityChanges:s,setEntitiesSavedStatesCallback:n}=this.props;return s&&n?(this.setState({entitiesSavedStatesCallback:()=>e(...t)}),n((()=>this.closeEntitiesSavedStates)),Op):e(...t)}}closeEntitiesSavedStates(e){const{postType:t,postId:s}=this.props,{entitiesSavedStatesCallback:n}=this.state;this.setState({entitiesSavedStatesCallback:!1},(()=>{e&&e.some((e=>"postType"===e.kind&&e.name===t&&e.key===s))&&n()}))}render(){const{forceIsDirty:e,hasPublishAction:t,isBeingScheduled:s,isOpen:n,isPostSavingLocked:o,isPublishable:r,isPublished:i,isSaveable:a,isSaving:l,isAutoSaving:d,isToggle:u,savePostStatus:p,onSubmit:m=Op,onToggle:h,visibility:g,hasNonPostEntityChanges:_,isSavingNonPostEntityChanges:f,postStatus:b,postStatusHasChanged:y}=this.props,x=(l||!a||o||!r&&!e)&&(!_||f),v=(i||l||!a||!r&&!e)&&(!_||f);let w="publish";y?w=b:t?"private"===g?w="private":s&&(w="future"):w="pending";const S={"aria-disabled":x,className:"editor-post-publish-button",isBusy:!d&&l,variant:"primary",onClick:this.createOnClick((()=>{x||(m(),p(w))})),"aria-haspopup":_?"dialog":void 0},k={"aria-disabled":v,"aria-expanded":n,className:"editor-post-publish-panel__toggle",isBusy:l&&i,variant:"primary",size:"compact",onClick:this.createOnClick((()=>{v||h()})),"aria-haspopup":_?"dialog":void 0},C=u?k:S;return(0,c.jsx)(c.Fragment,{children:(0,c.jsx)(Hn.Button,{...C,className:`${C.className} editor-post-publish-button__button`,size:"compact",children:(0,c.jsx)(Lp,{})})})}}var Vp=(0,m.compose)([(0,d.withSelect)((e=>{const{isSavingPost:t,isAutosavingPost:s,isEditedPostBeingScheduled:n,getEditedPostVisibility:o,isCurrentPostPublished:r,isEditedPostSaveable:i,isEditedPostPublishable:a,isPostSavingLocked:l,getCurrentPost:c,getCurrentPostType:d,getCurrentPostId:u,hasNonPostEntityChanges:p,isSavingNonPostEntityChanges:m,getEditedPostAttribute:h,getPostEdits:g}=e(vc);return{isSaving:t(),isAutoSaving:s(),isBeingScheduled:n(),visibility:o(),isSaveable:i(),isPostSavingLocked:l(),isPublishable:a(),isPublished:r(),hasPublishAction:c()._links?.["wp:action-publish"]??!1,postType:d(),postId:u(),postStatus:h("status"),postStatusHasChanged:g()?.status,hasNonPostEntityChanges:p(),isSavingNonPostEntityChanges:m()}})),(0,d.withDispatch)((e=>{const{editPost:t,savePost:s}=e(vc);return{savePostStatus:e=>{t({status:e},{undoIgnore:!0}),s()}}}))])(Fp),Up=(0,c.jsx)(L.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24",children:(0,c.jsx)(L.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"})});const Hp=[{label:(0,fs.__)("Public"),value:"public",description:(0,fs.__)("Visible to everyone.")},{label:(0,fs.__)("Private"),value:"private",description:(0,fs.__)("Only visible to site admins and editors.")},{label:(0,fs.__)("Password protected"),value:"password",description:(0,fs.__)("Only visible to those who know the password.")}];function zp({onClose:e}){const t=(0,m.useInstanceId)(zp),{status:s,visibility:n,password:o}=(0,d.useSelect)((e=>({status:e(vc).getEditedPostAttribute("status"),visibility:e(vc).getEditedPostVisibility(),password:e(vc).getEditedPostAttribute("password")}))),{editPost:r}=(0,d.useDispatch)(vc),[i,a]=(0,p.useState)(!!o);return(0,c.jsxs)("div",{className:"editor-post-visibility",children:[(0,c.jsx)(g.__experimentalInspectorPopoverHeader,{title:(0,fs.__)("Visibility"),help:(0,fs.__)("Control how this post is viewed."),onClose:e}),(0,c.jsxs)(Hn.__experimentalVStack,{spacing:4,children:[(0,c.jsx)(Hn.RadioControl,{label:(0,fs.__)("Visibility"),hideLabelFromVision:!0,options:Hp,selected:i?"password":n,onChange:function(e){r({public:{status:"private"===n?"draft":s,password:""},private:{status:"private",password:""},password:{status:"private"===n?"draft":s,password:o||""}}[e]),a("password"===e)}}),i&&(0,c.jsx)(Hn.TextControl,{label:(0,fs.__)("Password"),onChange:e=>{r({password:e})},value:o,placeholder:(0,fs.__)("Use a secure password"),type:"text",id:`editor-post-visibility__password-input-${t}`,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,maxLength:255})]})]})}function Gp(){return $p()}function $p(){const e=(0,d.useSelect)((e=>e(vc).getEditedPostVisibility()),[]);return Hp.find((t=>t.value===e))?.label}function Wp(e){const t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new e.constructor(+e):"number"==typeof e||"[object Number]"===t||"string"==typeof e||"[object String]"===t?new Date(e):new Date(NaN)}function Zp(e){const t=Wp(e);return t.setDate(1),t.setHours(0,0,0,0),t}function Yp(e){const t=Wp(e),s=t.getMonth();return t.setFullYear(t.getFullYear(),s+1,0),t.setHours(23,59,59,999),t}Math.pow(10,8);const qp=6e4,Kp=36e5;function Qp(e,t){const s=t?.additionalDigits??2,n=function(e){const t={},s=e.split(Xp.dateTimeDelimiter);let n;if(s.length>2)return t;/:/.test(s[0])?n=s[0]:(t.date=s[0],n=s[1],Xp.timeZoneDelimiter.test(t.date)&&(t.date=e.split(Xp.timeZoneDelimiter)[0],n=e.substr(t.date.length,e.length)));if(n){const e=Xp.timezone.exec(n);e?(t.time=n.replace(e[1],""),t.timezone=e[1]):t.time=n}return t}(e);let o;if(n.date){const e=function(e,t){const s=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),n=e.match(s);if(!n)return{year:NaN,restDateString:""};const o=n[1]?parseInt(n[1]):null,r=n[2]?parseInt(n[2]):null;return{year:null===r?o:100*r,restDateString:e.slice((n[1]||n[2]).length)}}(n.date,s);o=function(e,t){if(null===t)return new Date(NaN);const s=e.match(Jp);if(!s)return new Date(NaN);const n=!!s[4],o=sm(s[1]),r=sm(s[2])-1,i=sm(s[3]),a=sm(s[4]),l=sm(s[5])-1;if(n)return function(e,t,s){return t>=1&&t<=53&&s>=0&&s<=6}(0,a,l)?function(e,t,s){const n=new Date(0);n.setUTCFullYear(e,0,4);const o=n.getUTCDay()||7,r=7*(t-1)+s+1-o;return n.setUTCDate(n.getUTCDate()+r),n}(t,a,l):new Date(NaN);{const e=new Date(0);return function(e,t,s){return t>=0&&t<=11&&s>=1&&s<=(om[t]||(rm(e)?29:28))}(t,r,i)&&function(e,t){return t>=1&&t<=(rm(e)?366:365)}(t,o)?(e.setUTCFullYear(t,r,Math.max(o,i)),e):new Date(NaN)}}(e.restDateString,e.year)}if(!o||isNaN(o.getTime()))return new Date(NaN);const r=o.getTime();let i,a=0;if(n.time&&(a=function(e){const t=e.match(em);if(!t)return NaN;const s=nm(t[1]),n=nm(t[2]),o=nm(t[3]);if(!function(e,t,s){if(24===e)return 0===t&&0===s;return s>=0&&s<60&&t>=0&&t<60&&e>=0&&e<25}(s,n,o))return NaN;return s*Kp+n*qp+1e3*o}(n.time),isNaN(a)))return new Date(NaN);if(!n.timezone){const e=new Date(r+a),t=new Date(0);return t.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),t.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),t}return i=function(e){if("Z"===e)return 0;const t=e.match(tm);if(!t)return 0;const s="+"===t[1]?-1:1,n=parseInt(t[2]),o=t[3]&&parseInt(t[3])||0;if(!function(e,t){return t>=0&&t<=59}(0,o))return NaN;return s*(n*Kp+o*qp)}(n.timezone),isNaN(i)?new Date(NaN):new Date(r+a+i)}const Xp={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Jp=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,em=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,tm=/^([+-])(\d{2})(?::?(\d{2}))?$/;function sm(e){return e?parseInt(e):1}function nm(e){return e&&parseFloat(e.replace(",","."))||0}const om=[31,null,31,30,31,30,31,31,30,31,30,31];function rm(e){return e%400==0||e%4==0&&e%100!=0}const{PrivatePublishDateTimePicker:im}=$(g.privateApis);function am(e){return(0,c.jsx)(lm,{...e,showPopoverHeaderActions:!0,isCompact:!1})}function lm({onClose:e,showPopoverHeaderActions:t,isCompact:s}){const{postDate:n,postType:o}=(0,d.useSelect)((e=>({postDate:e(vc).getEditedPostAttribute("date"),postType:e(vc).getCurrentPostType()})),[]),{editPost:r}=(0,d.useDispatch)(vc),[i,a]=(0,p.useState)(Zp(new Date(n))),l=(0,d.useSelect)((e=>e(u.store).getEntityRecords("postType",o,{status:"publish,future",after:Zp(i).toISOString(),before:Yp(i).toISOString(),exclude:[e(vc).getCurrentPostId()],per_page:100,_fields:"id,date"})),[i,o]),m=(0,p.useMemo)((()=>(l||[]).map((({date:e})=>({date:new Date(e)})))),[l]),h=(0,v.getSettings)(),g=/a(?!\\)/i.test(h.formats.time.toLowerCase().replace(/\\\\/g,"").split("").reverse().join(""));return(0,c.jsx)(im,{currentDate:n,onChange:e=>r({date:e}),is12Hour:g,dateOrder:(0,fs._x)("dmy","date order"),events:m,onMonthPreviewed:e=>a(Qp(e)),onClose:e,isCompact:s,showPopoverHeaderActions:t})}function cm(e){return dm(e)}function dm({full:e=!1}={}){const{date:t,isFloating:s}=(0,d.useSelect)((e=>({date:e(vc).getEditedPostAttribute("date"),isFloating:e(vc).isEditedPostDateFloating()})),[]);return e?um(t):function(e,{isFloating:t=!1,now:s=new Date}={}){if(!e||t)return(0,fs.__)("Immediately");if(!function(e){const{timezone:t}=(0,v.getSettings)(),s=Number(t.offset),n=e.getTimezoneOffset()/60*-1;return s===n}(s))return um(e);const n=(0,v.getDate)(e);if(pm(n,s))return(0,fs.sprintf)((0,fs.__)("Today at %s"),(0,v.dateI18n)((0,fs._x)("g:i a","post schedule time format"),n));const o=new Date(s);if(o.setDate(o.getDate()+1),pm(n,o))return(0,fs.sprintf)((0,fs.__)("Tomorrow at %s"),(0,v.dateI18n)((0,fs._x)("g:i a","post schedule time format"),n));if(n.getFullYear()===s.getFullYear())return(0,v.dateI18n)((0,fs._x)("F j g:i a","post schedule date format without year"),n);return(0,v.dateI18n)((0,fs._x)("F j, Y g:i a","post schedule full date format"),n)}(t,{isFloating:s})}function um(e){const t=(0,v.getDate)(e),s=function(){const{timezone:e}=(0,v.getSettings)();if(e.abbr&&isNaN(Number(e.abbr)))return e.abbr;return`UTC${e.offset<0?"":"+"}${e.offsetFormatted}`}(),n=(0,v.dateI18n)((0,fs._x)("F j, Y g:i a","post schedule full date format"),t);return(0,fs.isRTL)()?`${s} ${n}`:`${n} ${s}`}function pm(e,t){return e.getDate()===t.getDate()&&e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()}const mm=3,hm={per_page:10,orderby:"count",order:"desc",hide_empty:!0,_fields:"id,name,count",context:"view"};function gm({onSelect:e,taxonomy:t}){const{_terms:s,showTerms:n}=(0,d.useSelect)((e=>{const s=e(u.store).getEntityRecords("taxonomy",t.slug,hm);return{_terms:s,showTerms:s?.length>=mm}}),[t.slug]);if(!n)return null;const o=Ld(s);return(0,c.jsxs)("div",{className:"editor-post-taxonomies__flat-term-most-used",children:[(0,c.jsx)(Hn.BaseControl.VisualLabel,{as:"h3",className:"editor-post-taxonomies__flat-term-most-used-label",children:t.labels.most_used}),(0,c.jsx)("ul",{role:"list",className:"editor-post-taxonomies__flat-term-most-used-list",children:o.map((t=>(0,c.jsx)("li",{children:(0,c.jsx)(Hn.Button,{__next40pxDefaultSize:!0,variant:"link",onClick:()=>e(t),children:t.name})},t.id)))})]})}const _m=[],fm=100,bm={per_page:fm,_fields:"id,name",context:"view"},ym=(e,t)=>Ad(e).toLowerCase()===Ad(t).toLowerCase(),xm=(e,t)=>e.map((e=>t.find((t=>ym(t.name,e)))?.id)).filter((e=>void 0!==e)),vm=({children:e,__nextHasNoMarginBottom:t})=>t?(0,c.jsx)(Hn.__experimentalVStack,{spacing:4,children:e}):(0,c.jsx)(p.Fragment,{children:e});function wm({slug:e,__nextHasNoMarginBottom:t}){const[s,n]=(0,p.useState)([]),[o,r]=(0,p.useState)(""),i=(0,m.useDebounce)(r,500);t||k()("Bottom margin styles for wp.editor.PostTaxonomiesFlatTermSelector",{since:"6.7",version:"7.0",hint:"Set the `__nextHasNoMarginBottom` prop to true to start opting into the new styles, which will become the default in a future version."});const{terms:a,termIds:l,taxonomy:h,hasAssignAction:g,hasCreateAction:_,hasResolvedTerms:f}=(0,d.useSelect)((t=>{const{getCurrentPost:s,getEditedPostAttribute:n}=t(vc),{getEntityRecords:o,getEntityRecord:r,hasFinishedResolution:i}=t(u.store),a=s(),l=r("root","taxonomy",e),c=l?n(l.rest_base):_m,d={...bm,include:c?.join(","),per_page:-1};return{hasCreateAction:!!l&&(a._links?.["wp:action-create-"+l.rest_base]??!1),hasAssignAction:!!l&&(a._links?.["wp:action-assign-"+l.rest_base]??!1),taxonomy:l,termIds:c,terms:c?.length?o("taxonomy",e,d):_m,hasResolvedTerms:i("getEntityRecords",["taxonomy",e,d])}}),[e]),{searchResults:b}=(0,d.useSelect)((t=>{const{getEntityRecords:s}=t(u.store);return{searchResults:o?s("taxonomy",e,{...bm,search:o}):_m}}),[o,e]);(0,p.useEffect)((()=>{if(f){const e=(a??[]).map((e=>Ad(e.name)));n(e)}}),[a,f]);const y=(0,p.useMemo)((()=>(b??[]).map((e=>Ad(e.name)))),[b]),{editPost:x}=(0,d.useDispatch)(vc),{saveEntityRecord:v}=(0,d.useDispatch)(u.store),{createErrorNotice:w}=(0,d.useDispatch)(_s.store);if(!g)return null;function S(e){x({[h.rest_base]:e})}const C=h?.labels?.add_new_item??("post_tag"===e?(0,fs.__)("Add Tag"):(0,fs.__)("Add Term")),P=h?.labels?.singular_name??("post_tag"===e?(0,fs.__)("Tag"):(0,fs.__)("Term")),j=(0,fs.sprintf)((0,fs._x)("%s added","term"),P),E=(0,fs.sprintf)((0,fs._x)("%s removed","term"),P),T=(0,fs.sprintf)((0,fs._x)("Remove %s","term"),P);return(0,c.jsxs)(vm,{__nextHasNoMarginBottom:t,children:[(0,c.jsx)(Hn.FormTokenField,{__next40pxDefaultSize:!0,value:s,suggestions:y,onChange:function(t){const s=[...a??[],...b??[]],o=t.reduce(((e,t)=>(e.some((e=>e.toLowerCase()===t.toLowerCase()))||e.push(t),e)),[]),r=o.filter((e=>!s.find((t=>ym(t.name,e)))));n(o),0!==r.length?_&&Promise.all(r.map((t=>async function(t){try{const s=await v("taxonomy",e,t,{throwOnError:!0});return Md(s)}catch(e){if("term_exists"!==e.code)throw e;return{id:e.data.term_id,name:t.name}}}({name:t})))).then((e=>{const t=s.concat(e);S(xm(o,t))})).catch((e=>{w(e.message,{type:"snackbar"}),S(xm(o,s))})):S(xm(o,s))},onInputChange:i,maxSuggestions:fm,label:C,messages:{added:j,removed:E,remove:T},__nextHasNoMarginBottom:t}),(0,c.jsx)(gm,{taxonomy:h,onSelect:function(t){if(l.includes(t.id))return;const s=[...l,t.id],n="post_tag"===e?(0,fs.__)("Tag"):(0,fs.__)("Term"),o=(0,fs.sprintf)((0,fs._x)("%s added","term"),h?.labels?.singular_name??n);(0,ms.speak)(o,"assertive"),S(s)}})]})}var Sm=(0,Hn.withFilters)("editor.PostTaxonomyType")(wm);const km=()=>{const e=(0,d.useSelect)((e=>{const t=e(u.store).getTaxonomy("post_tag");return t?.labels}),[]),t=e?.add_new_item??(0,fs.__)("Add tag"),s=e?.name??(0,fs.__)("Tags"),n=[(0,fs.__)("Suggestion:"),(0,c.jsx)("span",{className:"editor-post-publish-panel__link",children:t},"label")];return(0,c.jsxs)(Hn.PanelBody,{initialOpen:!1,title:n,children:[(0,c.jsx)("p",{children:(0,fs.sprintf)((0,fs.__)("%s help users and search engines navigate your site and find your content. Add a few keywords to describe your post."),s)}),(0,c.jsx)(Sm,{slug:"post_tag",__nextHasNoMarginBottom:!0})]})};var Cm=()=>{const{postHasTags:e,siteHasTags:t,isPostTypeSupported:s}=(0,d.useSelect)((e=>{const t=e(vc).getCurrentPostType(),s=e(u.store).getEntityRecord("root","taxonomy","post_tag"),n=s?.types?.includes(t),o=void 0!==s,r=s&&e(vc).getEditedPostAttribute(s.rest_base),i=!!n&&!!e(u.store).getEntityRecords("taxonomy","post_tag",{per_page:1})?.length;return{postHasTags:!!r?.length,siteHasTags:i,isPostTypeSupported:o&&n}}),[]),[n]=(0,p.useState)(e);return s&&t?n?null:(0,c.jsx)(km,{}):null};const Pm=(e,t)=>Pp.filter((t=>e?.includes(t.id))).find((e=>e.id===t)),jm=({suggestedPostFormat:e,suggestionText:t,onUpdatePostFormat:s})=>(0,c.jsx)(Hn.Button,{__next40pxDefaultSize:!0,variant:"link",onClick:()=>s(e),children:t});function Em(){const{currentPostFormat:e,suggestion:t}=(0,d.useSelect)((e=>{const{getEditedPostAttribute:t,getSuggestedPostFormat:s}=e(vc),n=e(u.store).getThemeSupports().formats??[];return{currentPostFormat:t("format"),suggestion:Pm(n,s())}}),[]),{editPost:s}=(0,d.useDispatch)(vc),n=[(0,fs.__)("Suggestion:"),(0,c.jsx)("span",{className:"editor-post-publish-panel__link",children:(0,fs.__)("Use a post format")},"label")];return t&&t.id!==e?(0,c.jsxs)(Hn.PanelBody,{initialOpen:!1,title:n,children:[(0,c.jsx)("p",{children:(0,fs.__)("Your theme uses post formats to highlight different kinds of content, like images or videos. Apply a post format to see this special styling.")}),(0,c.jsx)("p",{children:(0,c.jsx)(jm,{onUpdatePostFormat:e=>s({format:e}),suggestedPostFormat:t.id,suggestionText:(0,fs.sprintf)((0,fs.__)('Apply the "%1$s" format.'),t.caption)})})]}):null}const{normalizeTextString:Tm}=$(Hn.privateApis),{RECEIVE_INTERMEDIATE_RESULTS:Bm}=$(u.privateApis),Im={per_page:-1,orderby:"name",order:"asc",_fields:"id,name,parent",context:"view",[Bm]:!0},Nm=8,Rm=[];function Dm({slug:e}){const[t,s]=(0,p.useState)(!1),[n,o]=(0,p.useState)(""),[r,i]=(0,p.useState)(""),[a,l]=(0,p.useState)(!1),[h,g]=(0,p.useState)(""),[_,f]=(0,p.useState)([]),b=(0,m.useDebounce)(ms.speak,500),{hasCreateAction:y,hasAssignAction:x,terms:v,loading:w,availableTerms:S,taxonomy:k}=(0,d.useSelect)((t=>{const{getCurrentPost:s,getEditedPostAttribute:n}=t(vc),{getEntityRecord:o,getEntityRecords:r,isResolving:i}=t(u.store),a=o("root","taxonomy",e),l=s();return{hasCreateAction:!!a&&!!l._links?.["wp:action-create-"+a.rest_base],hasAssignAction:!!a&&!!l._links?.["wp:action-assign-"+a.rest_base],terms:a?n(a.rest_base):Rm,loading:i("getEntityRecords",["taxonomy",e,Im]),availableTerms:r("taxonomy",e,Im)||Rm,taxonomy:a}}),[e]),{editPost:C}=(0,d.useDispatch)(vc),{saveEntityRecord:P}=(0,d.useDispatch)(u.store),j=(0,p.useMemo)((()=>function(e,t){const s=e=>-1!==t.indexOf(e.id)||void 0!==e.children&&e.children.map(s).filter((e=>e)).length>0,n=[...e];return n.sort(((e,t)=>{const n=s(e),o=s(t);return n===o?0:n&&!o?-1:!n&&o?1:0})),n}(Dd(S),v)),[S]),{createErrorNotice:E}=(0,d.useDispatch)(_s.store);if(!x)return null;const T=e=>{C({[k.rest_base]:e})},B=e=>e.map((e=>(0,c.jsxs)("div",{className:"editor-post-taxonomies__hierarchical-terms-choice",children:[(0,c.jsx)(Hn.CheckboxControl,{__nextHasNoMarginBottom:!0,checked:-1!==v.indexOf(e.id),onChange:()=>{(e=>{const t=v.includes(e)?v.filter((t=>t!==e)):[...v,e];T(t)})(parseInt(e.id,10))},label:(0,Ln.decodeEntities)(e.name)}),!!e.children.length&&(0,c.jsx)("div",{className:"editor-post-taxonomies__hierarchical-terms-subchoices",children:B(e.children)})]},e.id))),I=(t,s,n)=>k?.labels?.[t]??("category"===e?s:n),N=I("add_new_item",(0,fs.__)("Add Category"),(0,fs.__)("Add Term")),R=I("new_item_name",(0,fs.__)("Add Category"),(0,fs.__)("Add Term")),D=I("parent_item",(0,fs.__)("Parent Category"),(0,fs.__)("Parent Term")),A=`— ${D} —`,M=N,L=k?.labels?.search_items??(0,fs.__)("Search Terms"),O=k?.name??(0,fs.__)("Terms"),F=S.length>=Nm;return(0,c.jsxs)(Hn.Flex,{direction:"column",gap:"4",children:[F&&!w&&(0,c.jsx)(Hn.SearchControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:L,placeholder:L,value:h,onChange:e=>{const t=j.map(function(e){const t=s=>{if(""===e)return s;const n={...s};return n.children.length>0&&(n.children=n.children.map(t).filter((e=>e))),(-1!==Tm(n.name).indexOf(Tm(e))||n.children.length>0)&&n};return t}(e)).filter((e=>e)),s=e=>{let t=0;for(let n=0;n<e.length;n++)t++,void 0!==e[n].children&&(t+=s(e[n].children));return t};g(e),f(t);const n=s(t),o=(0,fs.sprintf)((0,fs._n)("%d result found.","%d results found.",n),n);b(o,"assertive")}}),w&&(0,c.jsx)(Hn.Flex,{justify:"center",style:{height:"40px"},children:(0,c.jsx)(Hn.Spinner,{})}),(0,c.jsx)("div",{className:"editor-post-taxonomies__hierarchical-terms-list",tabIndex:"0",role:"group","aria-label":O,children:B(""!==h?_:j)}),!w&&y&&(0,c.jsx)(Hn.FlexItem,{children:(0,c.jsx)(Hn.Button,{__next40pxDefaultSize:!0,onClick:()=>{l(!a)},className:"editor-post-taxonomies__hierarchical-terms-add","aria-expanded":a,variant:"link",children:N})}),a&&(0,c.jsx)("form",{onSubmit:async a=>{if(a.preventDefault(),""===n||t)return;const l=function(e,t,s){return e.find((e=>(!e.parent&&!t||parseInt(e.parent)===parseInt(t))&&e.name.toLowerCase()===s.toLowerCase()))}(S,r,n);if(l)return v.some((e=>e===l.id))||T([...v,l.id]),o(""),void i("");let c;s(!0);try{c=await(d={name:n,parent:r||void 0},P("taxonomy",e,d,{throwOnError:!0}))}catch(e){return void E(e.message,{type:"snackbar"})}var d;const u="category"===e?(0,fs.__)("Category"):(0,fs.__)("Term"),p=(0,fs.sprintf)((0,fs._x)("%s added","term"),k?.labels?.singular_name??u);(0,ms.speak)(p,"assertive"),s(!1),o(""),i(""),T([...v,c.id])},children:(0,c.jsxs)(Hn.Flex,{direction:"column",gap:"4",children:[(0,c.jsx)(Hn.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,className:"editor-post-taxonomies__hierarchical-terms-input",label:R,value:n,onChange:e=>{o(e)},required:!0}),!!S.length&&(0,c.jsx)(Hn.TreeSelect,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:D,noOptionLabel:A,onChange:e=>{i(e)},selectedId:r,tree:j}),(0,c.jsx)(Hn.FlexItem,{children:(0,c.jsx)(Hn.Button,{__next40pxDefaultSize:!0,variant:"secondary",type:"submit",className:"editor-post-taxonomies__hierarchical-terms-submit",children:M})})]})})]})}var Am=(0,Hn.withFilters)("editor.PostTaxonomyType")(Dm);var Mm=function(){const{hasNoCategory:e,hasSiteCategories:t}=(0,d.useSelect)((e=>{const t=e(vc).getCurrentPostType(),{canUser:s,getEntityRecord:n}=e(u.store),o=n("root","taxonomy","category"),r=s("read",{kind:"root",name:"site"})?n("root","site")?.default_category:void 0,i=r?n("taxonomy","category",r):void 0,a=o&&o.types.some((e=>e===t)),l=o&&e(vc).getEditedPostAttribute(o.rest_base),c=!!a&&!!e(u.store).getEntityRecords("taxonomy","category",{exclude:[r],per_page:1})?.length;return{hasNoCategory:!!o&&!!i&&a&&(0===l?.length||1===l?.length&&i?.id===l[0]),hasSiteCategories:c}}),[]),[s,n]=(0,p.useState)(!1);if((0,p.useEffect)((()=>{e&&n(!0)}),[e]),!s||!t)return null;const o=[(0,fs.__)("Suggestion:"),(0,c.jsx)("span",{className:"editor-post-publish-panel__link",children:(0,fs.__)("Assign a category")},"label")];return(0,c.jsxs)(Hn.PanelBody,{initialOpen:!1,title:o,children:[(0,c.jsx)("p",{children:(0,fs.__)("Categories provide a helpful way to group related posts together and to quickly tell readers what a post is about.")}),(0,c.jsx)(Am,{slug:"category"})]})};function Lm(e){return Object.fromEntries(Object.entries(function(e){const t=new Set;return Object.fromEntries(e.map((e=>{const s=(0,w.getFilename)(e);let n="";if(s){const e=s.split(".");e.length>1&&e.pop(),n=e.join(".")}return n||(n=fi()),t.has(n)&&(n=`${n}-${fi()}`),t.add(n),[e,n]})))}(e)).map((([e,t])=>{const s=window.fetch(e.includes("?")?e:e+"?").then((e=>e.blob())).then((e=>new File([e],`${t}.png`,{type:e.type})));return[e,s]})))}function Om(e){const t=[];return e.forEach((e=>{t.push(e),t.push(...Om(e.innerBlocks))})),t}function Fm(e){if("core/image"===e.name||"core/cover"===e.name){const{url:t,alt:s,id:n}=e.attributes;return{url:t,alt:s,id:n}}if("core/media-text"===e.name){const{mediaUrl:t,mediaAlt:s,mediaId:n}=e.attributes;return{url:t,alt:s,id:n}}return{}}function Vm({clientId:e,alt:t,url:s}){const{selectBlock:n}=(0,d.useDispatch)(g.store);return(0,c.jsx)(Hn.__unstableMotion.img,{tabIndex:0,role:"button","aria-label":(0,fs.__)("Select image block."),onClick:()=>{n(e)},onKeyDown:t=>{"Enter"!==t.key&&" "!==t.key||(n(e),t.preventDefault())},alt:t,src:s,animate:{opacity:1},exit:{opacity:0,scale:0},style:{width:"32px",height:"32px",objectFit:"cover",borderRadius:"2px",cursor:"pointer"},whileHover:{scale:1.08}},e)}function Um(){const[e,t]=(0,p.useState)(!1),[s,n]=(0,p.useState)(!1),[o,r]=(0,p.useState)(!1),{editorBlocks:i,mediaUpload:a}=(0,d.useSelect)((e=>({editorBlocks:e(g.store).getBlocks(),mediaUpload:e(g.store).getSettings().mediaUpload})),[]),l=Om(i).filter((e=>function(e){return"core/image"===e.name||"core/cover"===e.name?e.attributes.url&&!e.attributes.id:"core/media-text"===e.name?e.attributes.mediaUrl&&!e.attributes.mediaId:void 0}(e))),{updateBlockAttributes:u}=(0,d.useDispatch)(g.store);if(!a||!l.length)return null;const m=[(0,fs.__)("Suggestion:"),(0,c.jsx)("span",{className:"editor-post-publish-panel__link",children:(0,fs.__)("External media")},"label")];return(0,c.jsxs)(Hn.PanelBody,{initialOpen:!0,title:m,children:[(0,c.jsx)("p",{children:(0,fs.__)("Upload external images to the Media Library. Images from different domains may load slowly, display incorrectly, or be removed unexpectedly.")}),(0,c.jsxs)("div",{style:{display:"inline-flex",flexWrap:"wrap",gap:"8px"},children:[(0,c.jsx)(Hn.__unstableAnimatePresence,{onExitComplete:()=>n(!1),children:l.map((e=>{const{url:t,alt:s}=Fm(e);return(0,c.jsx)(Vm,{clientId:e.clientId,url:t,alt:s},e.clientId)}))}),e||s?(0,c.jsx)(Hn.Spinner,{}):(0,c.jsx)(Hn.Button,{size:"compact",variant:"primary",onClick:function(){t(!0),r(!1);const e=new Set(l.map((e=>{const{url:t}=Fm(e);return t}))),s=Object.fromEntries(Object.entries(Lm([...e])).map((([e,t])=>[e,t.then((e=>new Promise(((t,s)=>{a({filesList:[e],onFileChange:([e])=>{(0,Go.isBlobURL)(e.url)||t(e)},onError(){s()}})}))))])));Promise.allSettled(l.map((e=>{const{url:t}=Fm(e);return s[t].then((t=>function(e,t){"core/image"!==e.name&&"core/cover"!==e.name||u(e.clientId,{id:t.id,url:t.url}),"core/media-text"===e.name&&u(e.clientId,{mediaId:t.id,mediaUrl:t.url})}(e,t))).then((()=>n(!0))).catch((()=>r(!0)))}))).finally((()=>{t(!1)}))},children:(0,fs._x)("Upload","verb")})]}),o&&(0,c.jsx)("p",{children:(0,fs.__)("Upload failed, try again.")})]})}var Hm=function({children:e}){const{isBeingScheduled:t,isRequestingSiteIcon:s,hasPublishAction:n,siteIconUrl:o,siteTitle:r,siteHome:i}=(0,d.useSelect)((e=>{const{getCurrentPost:t,isEditedPostBeingScheduled:s}=e(vc),{getEntityRecord:n,isResolving:o}=e(u.store),r=n("root","__unstableBase",void 0)||{};return{hasPublishAction:t()._links?.["wp:action-publish"]??!1,isBeingScheduled:s(),isRequestingSiteIcon:o("getEntityRecord",["root","__unstableBase",void 0]),siteIconUrl:r.site_icon_url,siteTitle:r.name,siteHome:r.home&&(0,w.filterURLForDisplay)(r.home)}}),[]);let a,l,p=(0,c.jsx)(Hn.Icon,{className:"components-site-icon",size:"36px",icon:Up});return o&&(p=(0,c.jsx)("img",{alt:(0,fs.__)("Site Icon"),className:"components-site-icon",src:o})),s&&(p=null),n?t?(a=(0,fs.__)("Are you ready to schedule?"),l=(0,fs.__)("Your work will be published at the specified date and time.")):(a=(0,fs.__)("Are you ready to publish?"),l=(0,fs.__)("Double-check your settings before publishing.")):(a=(0,fs.__)("Are you ready to submit for review?"),l=(0,fs.__)("Your work will be reviewed and then approved.")),(0,c.jsxs)("div",{className:"editor-post-publish-panel__prepublish",children:[(0,c.jsx)("div",{children:(0,c.jsx)("strong",{children:a})}),(0,c.jsx)("p",{children:l}),(0,c.jsxs)("div",{className:"components-site-card",children:[p,(0,c.jsxs)("div",{className:"components-site-info",children:[(0,c.jsx)("span",{className:"components-site-name",children:(0,Ln.decodeEntities)(r)||(0,fs.__)("(Untitled)")}),(0,c.jsx)("span",{className:"components-site-home",children:i})]})]}),(0,c.jsx)(Um,{}),n&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(Hn.PanelBody,{initialOpen:!1,title:[(0,fs.__)("Visibility:"),(0,c.jsx)("span",{className:"editor-post-publish-panel__link",children:(0,c.jsx)(Gp,{})},"label")],children:(0,c.jsx)(zp,{})}),(0,c.jsx)(Hn.PanelBody,{initialOpen:!1,title:[(0,fs.__)("Publish:"),(0,c.jsx)("span",{className:"editor-post-publish-panel__link",children:(0,c.jsx)(cm,{})},"label")],children:(0,c.jsx)(am,{})})]}),(0,c.jsx)(Em,{}),(0,c.jsx)(Cm,{}),(0,c.jsx)(Mm,{}),e]})};const zm="%postname%",Gm="%pagename%";function $m({text:e}){const[t,s]=(0,p.useState)(!1),n=(0,p.useRef)(),o=(0,m.useCopyToClipboard)(e,(()=>{s(!0),n.current&&clearTimeout(n.current),n.current=setTimeout((()=>{s(!1)}),4e3)}));return(0,p.useEffect)((()=>()=>{n.current&&clearTimeout(n.current)}),[]),(0,c.jsx)(Hn.Button,{__next40pxDefaultSize:!0,variant:"secondary",ref:o,children:t?(0,fs.__)("Copied!"):(0,fs.__)("Copy")})}function Wm({focusOnMount:e,children:t}){const{post:s,postType:n,isScheduled:o}=(0,d.useSelect)((e=>{const{getEditedPostAttribute:t,getCurrentPost:s,isCurrentPostScheduled:n}=e(vc),{getPostType:o}=e(u.store);return{post:s(),postType:o(t("type")),isScheduled:n()}}),[]),r=n?.labels?.singular_name,i=n?.labels?.view_item,a=n?.labels?.add_new_item,l="future"===s.status?(e=>{const{slug:t}=e;return e.permalink_template.includes(zm)?e.permalink_template.replace(zm,t):e.permalink_template.includes(Gm)?e.permalink_template.replace(Gm,t):e.permalink_template})(s):s.link,m=(0,w.addQueryArgs)("post-new.php",{post_type:s.type}),h=(0,p.useCallback)((t=>{e&&t&&t.focus()}),[e]),g=o?(0,c.jsxs)(c.Fragment,{children:[(0,fs.__)("is now scheduled. It will go live on")," ",(0,c.jsx)(cm,{}),"."]}):(0,fs.__)("is now live.");return(0,c.jsxs)("div",{className:"post-publish-panel__postpublish",children:[(0,c.jsxs)(Hn.PanelBody,{className:"post-publish-panel__postpublish-header",children:[(0,c.jsx)(Hn.ExternalLink,{ref:h,href:l,children:(0,Ln.decodeEntities)(s.title)||(0,fs.__)("(no title)")})," ",g]}),(0,c.jsxs)(Hn.PanelBody,{children:[(0,c.jsx)("p",{className:"post-publish-panel__postpublish-subheader",children:(0,c.jsx)("strong",{children:(0,fs.__)("What’s next?")})}),(0,c.jsxs)("div",{className:"post-publish-panel__postpublish-post-address-container",children:[(0,c.jsx)(Hn.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,className:"post-publish-panel__postpublish-post-address",readOnly:!0,label:(0,fs.sprintf)((0,fs.__)("%s address"),r),value:(0,w.safeDecodeURIComponent)(l),onFocus:e=>e.target.select()}),(0,c.jsx)("div",{className:"post-publish-panel__postpublish-post-address__copy-button-wrap",children:(0,c.jsx)($m,{text:l})})]}),(0,c.jsxs)("div",{className:"post-publish-panel__postpublish-buttons",children:[!o&&(0,c.jsxs)(Hn.Button,{variant:"primary",href:l,__next40pxDefaultSize:!0,icon:Fn,iconPosition:"right",target:"_blank",children:[i,(0,c.jsx)(Hn.VisuallyHidden,{as:"span",children:(0,fs.__)("(opens in a new tab)")})]}),(0,c.jsx)(Hn.Button,{variant:o?"primary":"secondary",__next40pxDefaultSize:!0,href:m,children:a})]})]}),t]})}class Zm extends p.Component{constructor(){super(...arguments),this.onSubmit=this.onSubmit.bind(this),this.cancelButtonNode=(0,p.createRef)()}componentDidMount(){this.timeoutID=setTimeout((()=>{this.cancelButtonNode.current.focus()}),0)}componentWillUnmount(){clearTimeout(this.timeoutID)}componentDidUpdate(e){(e.isPublished&&!this.props.isSaving&&this.props.isDirty||this.props.currentPostId!==e.currentPostId)&&this.props.onClose()}onSubmit(){const{onClose:e,hasPublishAction:t,isPostTypeViewable:s}=this.props;t&&s||e()}render(){const{forceIsDirty:e,isBeingScheduled:t,isPublished:s,isPublishSidebarEnabled:n,isScheduled:o,isSaving:r,isSavingNonPostEntityChanges:i,onClose:a,onTogglePublishSidebar:l,PostPublishExtension:d,PrePublishExtension:u,currentPostId:p,...m}=this.props,{hasPublishAction:h,isDirty:g,isPostTypeViewable:_,...f}=m,b=s||o&&t,y=!b&&!r,x=b&&!r;return(0,c.jsxs)("div",{className:"editor-post-publish-panel",...f,children:[(0,c.jsx)("div",{className:"editor-post-publish-panel__header",children:x?(0,c.jsx)(Hn.Button,{size:"compact",onClick:a,icon:la,label:(0,fs.__)("Close panel")}):(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("div",{className:"editor-post-publish-panel__header-cancel-button",children:(0,c.jsx)(Hn.Button,{ref:this.cancelButtonNode,accessibleWhenDisabled:!0,disabled:i,onClick:a,variant:"secondary",size:"compact",children:(0,fs.__)("Cancel")})}),(0,c.jsx)("div",{className:"editor-post-publish-panel__header-publish-button",children:(0,c.jsx)(Vp,{onSubmit:this.onSubmit,forceIsDirty:e})})]})}),(0,c.jsxs)("div",{className:"editor-post-publish-panel__content",children:[y&&(0,c.jsx)(Hm,{children:u&&(0,c.jsx)(u,{})}),x&&(0,c.jsx)(Wm,{focusOnMount:!0,children:d&&(0,c.jsx)(d,{})}),r&&(0,c.jsx)(Hn.Spinner,{})]}),(0,c.jsx)("div",{className:"editor-post-publish-panel__footer",children:(0,c.jsx)(Hn.CheckboxControl,{__nextHasNoMarginBottom:!0,label:(0,fs.__)("Always show pre-publish checks."),checked:n,onChange:l})})]})}}var Ym=(0,m.compose)([(0,d.withSelect)((e=>{const{getPostType:t}=e(u.store),{getCurrentPost:s,getCurrentPostId:n,getEditedPostAttribute:o,isCurrentPostPublished:r,isCurrentPostScheduled:i,isEditedPostBeingScheduled:a,isEditedPostDirty:l,isAutosavingPost:c,isSavingPost:d,isSavingNonPostEntityChanges:p}=e(vc),{isPublishSidebarEnabled:m}=e(vc),h=t(o("type"));return{hasPublishAction:s()._links?.["wp:action-publish"]??!1,isPostTypeViewable:h?.viewable,isBeingScheduled:a(),isDirty:l(),isPublished:r(),isPublishSidebarEnabled:m(),isSaving:d()&&!c(),isSavingNonPostEntityChanges:p(),isScheduled:i(),currentPostId:n()}})),(0,d.withDispatch)(((e,{isPublishSidebarEnabled:t})=>{const{disablePublishSidebar:s,enablePublishSidebar:n}=e(vc);return{onTogglePublishSidebar:()=>{t?s():n()}}})),Hn.withFocusReturn,Hn.withConstrainedTabbing])(Zm),qm=(0,c.jsx)(L.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,c.jsx)(L.Path,{d:"M17.3 10.1C17.3 7.60001 15.2 5.70001 12.5 5.70001C10.3 5.70001 8.4 7.10001 7.9 9.00001H7.7C5.7 9.00001 4 10.7 4 12.8C4 14.9 5.7 16.6 7.7 16.6H9.5V15.2H7.7C6.5 15.2 5.5 14.1 5.5 12.9C5.5 11.7 6.5 10.5 7.7 10.5H9L9.3 9.40001C9.7 8.10001 11 7.20001 12.5 7.20001C14.3 7.20001 15.8 8.50001 15.8 10.1V11.4L17.1 11.6C17.9 11.7 18.5 12.5 18.5 13.4C18.5 14.4 17.7 15.2 16.8 15.2H14.5V16.6H16.7C18.5 16.6 19.9 15.1 19.9 13.3C20 11.7 18.8 10.4 17.3 10.1Z M14.1245 14.2426L15.1852 13.182L12.0032 10L8.82007 13.1831L9.88072 14.2438L11.25 12.8745V18H12.75V12.8681L14.1245 14.2426Z"})}),Km=(0,c.jsx)(L.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,c.jsx)(L.Path,{d:"M17.3 10.1c0-2.5-2.1-4.4-4.8-4.4-2.2 0-4.1 1.4-4.6 3.3h-.2C5.7 9 4 10.7 4 12.8c0 2.1 1.7 3.8 3.7 3.8h9c1.8 0 3.2-1.5 3.2-3.3.1-1.6-1.1-2.9-2.6-3.2zm-.5 5.1h-9c-1.2 0-2.2-1.1-2.2-2.3s1-2.4 2.2-2.4h1.3l.3-1.1c.4-1.3 1.7-2.2 3.2-2.2 1.8 0 3.3 1.3 3.3 2.9v1.3l1.3.2c.8.1 1.4.9 1.4 1.8-.1 1-.9 1.8-1.8 1.8z"})});function Qm({children:e}){const{hasStickyAction:t,postType:s}=(0,d.useSelect)((e=>{const t=e(vc).getCurrentPost();return{hasStickyAction:t._links?.["wp:action-sticky"]??!1,postType:e(vc).getCurrentPostType()}}),[]);return"post"===s&&t?e:null}function Xm(){const e=(0,d.useSelect)((e=>e(vc).getEditedPostAttribute("sticky")??!1),[]),{editPost:t}=(0,d.useDispatch)(vc);return(0,c.jsx)(Qm,{children:(0,c.jsx)(Hn.CheckboxControl,{className:"editor-post-sticky__checkbox-control",label:(0,fs.__)("Sticky"),help:(0,fs.__)("Pin this post to the top of the blog."),checked:e,onChange:()=>t({sticky:!e}),__nextHasNoMarginBottom:!0})})}const Jm={"auto-draft":{label:(0,fs.__)("Draft"),icon:br},draft:{label:(0,fs.__)("Draft"),icon:br},pending:{label:(0,fs.__)("Pending"),icon:xr},private:{label:(0,fs.__)("Private"),icon:vr},future:{label:(0,fs.__)("Scheduled"),icon:yr},publish:{label:(0,fs.__)("Published"),icon:wr}},eh=[{label:(0,fs.__)("Draft"),value:"draft",description:(0,fs.__)("Not ready to publish.")},{label:(0,fs.__)("Pending"),value:"pending",description:(0,fs.__)("Waiting for review before publishing.")},{label:(0,fs.__)("Private"),value:"private",description:(0,fs.__)("Only visible to site admins and editors.")},{label:(0,fs.__)("Scheduled"),value:"future",description:(0,fs.__)("Publish automatically on a chosen date.")},{label:(0,fs.__)("Published"),value:"publish",description:(0,fs.__)("Visible to everyone.")}],th=[B,I,N,R];function sh(){const{status:e,date:t,password:s,postId:n,postType:o,canEdit:r}=(0,d.useSelect)((e=>{const{getEditedPostAttribute:t,getCurrentPostId:s,getCurrentPostType:n,getCurrentPost:o}=e(vc);return{status:t("status"),date:t("date"),password:t("password"),postId:s(),postType:n(),canEdit:o()._links?.["wp:action-publish"]??!1}}),[]),[i,a]=(0,p.useState)(!!s),l=(0,m.useInstanceId)(sh,"editor-change-status__password-input"),{editEntityRecord:h}=(0,d.useDispatch)(u.store),[_,f]=(0,p.useState)(null),b=(0,p.useMemo)((()=>({anchor:_,"aria-label":(0,fs.__)("Status & visibility"),headerTitle:(0,fs.__)("Status & visibility"),placement:"left-start",offset:36,shift:!0})),[_]);if(th.includes(o))return null;const y=({status:r=e,password:i=s,date:a=t})=>{h("postType",o,n,{status:r,date:a,password:i})},x=e=>{a(e),e||y({password:""})},v=n=>{let o=t,r=s;"future"===e&&new Date(t)>new Date&&(o=null),"private"===n&&s&&(r=""),y({status:n,date:o,password:r})};return(0,c.jsx)(Rd,{label:(0,fs.__)("Status"),ref:f,children:r?(0,c.jsx)(Hn.Dropdown,{className:"editor-post-status",contentClassName:"editor-change-status__content",popoverProps:b,focusOnMount:!0,renderToggle:({onToggle:t,isOpen:s})=>(0,c.jsx)(Hn.Button,{className:"editor-post-status__toggle",variant:"tertiary",size:"compact",onClick:t,icon:Jm[e]?.icon,"aria-label":(0,fs.sprintf)((0,fs.__)("Change status: %s"),Jm[e]?.label),"aria-expanded":s,children:Jm[e]?.label}),renderContent:({onClose:t})=>(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(g.__experimentalInspectorPopoverHeader,{title:(0,fs.__)("Status & visibility"),onClose:t}),(0,c.jsx)("form",{onSubmit:e=>{e.preventDefault(),t()},children:(0,c.jsxs)(Hn.__experimentalVStack,{spacing:4,children:[(0,c.jsx)(Hn.RadioControl,{className:"editor-change-status__options",hideLabelFromVision:!0,label:(0,fs.__)("Status"),options:eh,onChange:v,selected:"auto-draft"===e?"draft":e}),"future"===e&&(0,c.jsx)("div",{className:"editor-change-status__publish-date-wrapper",children:(0,c.jsx)(lm,{showPopoverHeaderActions:!1,isCompact:!0})}),"private"!==e&&(0,c.jsxs)(Hn.__experimentalVStack,{as:"fieldset",spacing:4,className:"editor-change-status__password-fieldset",children:[(0,c.jsx)(Hn.CheckboxControl,{__nextHasNoMarginBottom:!0,label:(0,fs.__)("Password protected"),help:(0,fs.__)("Only visible to those who know the password."),checked:i,onChange:x}),i&&(0,c.jsx)("div",{className:"editor-change-status__password-input",children:(0,c.jsx)(Hn.TextControl,{label:(0,fs.__)("Password"),onChange:e=>y({password:e}),value:s,placeholder:(0,fs.__)("Use a secure password"),type:"text",id:l,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,maxLength:255})})]}),(0,c.jsx)(Xm,{})]})})]})}):(0,c.jsx)("div",{className:"editor-post-status is-read-only",children:Jm[e]?.label})})}function nh({forceIsDirty:e}){const[t,s]=(0,p.useState)(!1),n=(0,m.useViewportMatch)("small"),{isAutosaving:o,isDirty:r,isNew:i,isPublished:a,isSaveable:l,isSaving:u,isScheduled:h,hasPublishAction:g,showIconLabels:_,postStatus:f,postStatusHasChanged:b}=(0,d.useSelect)((t=>{const{isEditedPostNew:s,isCurrentPostPublished:n,isCurrentPostScheduled:o,isEditedPostDirty:r,isSavingPost:i,isEditedPostSaveable:a,getCurrentPost:l,isAutosavingPost:c,getEditedPostAttribute:d,getPostEdits:u}=t(vc),{get:p}=t(C.store);return{isAutosaving:c(),isDirty:e||r(),isNew:s(),isPublished:n(),isSaving:i(),isSaveable:a(),isScheduled:o(),hasPublishAction:l()?._links?.["wp:action-publish"]??!1,showIconLabels:p("core","showIconLabels"),postStatus:d("status"),postStatusHasChanged:!!u()?.status}}),[e]),y="pending"===f,{savePost:x}=(0,d.useDispatch)(vc),v=(0,m.usePrevious)(u);if((0,p.useEffect)((()=>{let e;return v&&!u&&(s(!0),e=setTimeout((()=>{s(!1)}),1e3)),()=>clearTimeout(e)}),[u]),!g&&y)return null;const w=!["pending","draft","auto-draft"].includes(f)&&eh.map((({value:e})=>e)).includes(f);if(a||h||w||b&&["pending","draft"].includes(f))return null;const S=y?(0,fs.__)("Save as pending"):(0,fs.__)("Save draft"),k=(0,fs.__)("Save"),P=t||!i&&!r,j=u||P,E=u||P||!l;let T;return u?T=o?(0,fs.__)("Autosaving"):(0,fs.__)("Saving"):P?T=(0,fs.__)("Saved"):n?T=S:_&&(T=k),(0,c.jsxs)(Hn.Button,{className:l||u?mr({"editor-post-save-draft":!j,"editor-post-saved-state":j,"is-saving":u,"is-autosaving":o,"is-saved":P,[(0,Hn.__unstableGetAnimateClassName)({type:"loading"})]:u}):void 0,onClick:E?void 0:()=>x(),shortcut:E?void 0:ll.displayShortcut.primary("s"),variant:"tertiary",size:"compact",icon:n?void 0:qm,label:T||S,"aria-disabled":E,children:[j&&(0,c.jsx)(ei,{icon:P?zn:Km}),T]})}function oh({children:e}){return(0,d.useSelect)((e=>e(vc).getCurrentPost()._links?.["wp:action-publish"]??!1),[])?e:null}const rh=[B,I,N,R];function ih(){const[e,t]=(0,p.useState)(null),s=(0,d.useSelect)((e=>e(vc).getCurrentPostType()),[]),n=(0,p.useMemo)((()=>({anchor:e,"aria-label":(0,fs.__)("Change publish date"),placement:"left-start",offset:36,shift:!0})),[e]),o=dm(),r=dm({full:!0});return rh.includes(s)?null:(0,c.jsx)(oh,{children:(0,c.jsx)(Rd,{label:(0,fs.__)("Publish"),ref:t,children:(0,c.jsx)(Hn.Dropdown,{popoverProps:n,focusOnMount:!0,className:"editor-post-schedule__panel-dropdown",contentClassName:"editor-post-schedule__dialog",renderToggle:({onToggle:e,isOpen:t})=>(0,c.jsx)(Hn.Button,{size:"compact",className:"editor-post-schedule__dialog-toggle",variant:"tertiary",tooltipPosition:"middle left",onClick:e,"aria-label":(0,fs.sprintf)((0,fs.__)("Change date: %s"),o),label:r,showTooltip:o!==r,"aria-expanded":t,children:o}),renderContent:({onClose:e})=>(0,c.jsx)(am,{onClose:e})})})})}function ah(){k()("wp.editor.PostSwitchToDraftButton",{since:"6.7",version:"6.9"});const[e,t]=(0,p.useState)(!1),{editPost:s,savePost:n}=(0,d.useDispatch)(vc),{isSaving:o,isPublished:r,isScheduled:i}=(0,d.useSelect)((e=>{const{isSavingPost:t,isCurrentPostPublished:s,isCurrentPostScheduled:n}=e(vc);return{isSaving:t(),isPublished:s(),isScheduled:n()}}),[]),a=o||!r&&!i;let l,u;r?(l=(0,fs.__)("Are you sure you want to unpublish this post?"),u=(0,fs.__)("Unpublish")):i&&(l=(0,fs.__)("Are you sure you want to unschedule this post?"),u=(0,fs.__)("Unschedule"));return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(Hn.Button,{__next40pxDefaultSize:!0,className:"editor-post-switch-to-draft",onClick:()=>{a||t(!0)},"aria-disabled":a,variant:"secondary",style:{flexGrow:"1",justifyContent:"center"},children:(0,fs.__)("Switch to draft")}),(0,c.jsx)(Hn.__experimentalConfirmDialog,{isOpen:e,onConfirm:()=>{t(!1),s({status:"draft"}),n()},onCancel:()=>t(!1),confirmButtonText:u,children:l})]})}function lh(){const{syncStatus:e,postType:t}=(0,d.useSelect)((e=>{const{getEditedPostAttribute:t}=e(vc),s=t("meta");return{syncStatus:"unsynced"===s?.wp_pattern_sync_status?"unsynced":t("wp_pattern_sync_status"),postType:t("type")}}));return"wp_block"!==t?null:(0,c.jsx)(Rd,{label:(0,fs.__)("Sync status"),children:(0,c.jsx)("div",{className:"editor-post-sync-status__value",children:"unsynced"===e?(0,fs._x)("Not synced","pattern (singular)"):(0,fs._x)("Synced","pattern (singular)")})})}const ch=e=>e;var dh=function({taxonomyWrapper:e=ch}){const{postType:t,taxonomies:s}=(0,d.useSelect)((e=>({postType:e(vc).getCurrentPostType(),taxonomies:e(u.store).getEntityRecords("root","taxonomy",{per_page:-1})})),[]);return(s??[]).filter((e=>e.types.includes(t)&&e.visibility?.show_ui)).map((t=>{const s=t.hierarchical?Am:Sm,n={slug:t.slug,...t.hierarchical?{}:{__nextHasNoMarginBottom:!0}};return(0,c.jsx)(p.Fragment,{children:e((0,c.jsx)(s,{...n}),t)},`taxonomy-${t.slug}`)}))};function uh({children:e}){const t=(0,d.useSelect)((e=>{const t=e(vc).getCurrentPostType(),s=e(u.store).getEntityRecords("root","taxonomy",{per_page:-1});return s?.some((e=>e.types.includes(t)))}),[]);return t?e:null}function ph({taxonomy:e,children:t}){const s=e?.slug,n=s?`taxonomy-panel-${s}`:"",{isEnabled:o,isOpened:r}=(0,d.useSelect)((e=>{const{isEditorPanelEnabled:t,isEditorPanelOpened:o}=e(vc);return{isEnabled:!!s&&t(n),isOpened:!!s&&o(n)}}),[n,s]),{toggleEditorPanelOpened:i}=(0,d.useDispatch)(vc);if(!o)return null;const a=e?.labels?.menu_name;return a?(0,c.jsx)(Hn.PanelBody,{title:a,opened:r,onToggle:()=>i(n),children:t}):null}function mh(){return(0,c.jsx)(uh,{children:(0,c.jsx)(dh,{taxonomyWrapper:(e,t)=>(0,c.jsx)(ph,{taxonomy:t,children:e})})})}var hh=s(4132);function gh(){const e=(0,m.useInstanceId)(gh),{content:t,blocks:s,type:n,id:o}=(0,d.useSelect)((e=>{const{getEditedEntityRecord:t}=e(u.store),{getCurrentPostType:s,getCurrentPostId:n}=e(vc),o=s(),r=n(),i=t("postType",o,r);return{content:i?.content,blocks:i?.blocks,type:o,id:r}}),[]),{editEntityRecord:r}=(0,d.useDispatch)(u.store),i=(0,p.useMemo)((()=>t instanceof Function?t({blocks:s}):s?(0,x.__unstableSerializeAndClean)(s):t),[t,s]);return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(Hn.VisuallyHidden,{as:"label",htmlFor:`post-content-${e}`,children:(0,fs.__)("Type text or HTML")}),(0,c.jsx)(hh.A,{autoComplete:"off",dir:"auto",value:i,onChange:e=>{r("postType",n,o,{content:e.target.value,blocks:void 0,selection:void 0})},className:"editor-post-text-editor",id:`post-content-${e}`,placeholder:(0,fs.__)("Start writing with text or HTML")})]})}const _h="wp-block wp-block-post-title block-editor-block-list__block editor-post-title editor-post-title__input rich-text",fh=/[\r\n]+/g;function bh(e){const t=(0,p.useRef)(),{isCleanNewPost:s}=(0,d.useSelect)((e=>{const{isCleanNewPost:t}=e(vc);return{isCleanNewPost:t()}}),[]);return(0,p.useImperativeHandle)(e,(()=>({focus:()=>{t?.current?.focus()}}))),(0,p.useEffect)((()=>{if(!t.current)return;const{defaultView:e}=t.current.ownerDocument,{name:n,parent:o}=e,r="editor-canvas"===n?o.document:e.document,{activeElement:i,body:a}=r;!s||i&&a!==i||t.current.focus()}),[s]),{ref:t}}function yh(){const{editPost:e}=(0,d.useDispatch)(vc),{title:t}=(0,d.useSelect)((e=>{const{getEditedPostAttribute:t}=e(vc);return{title:t("title")}}),[]);return{title:t,setTitle:function(t){e({title:t})}}}const xh=(0,p.forwardRef)(((e,t)=>{const{placeholder:s}=(0,d.useSelect)((e=>{const{getSettings:t}=e(g.store),{titlePlaceholder:s}=t();return{placeholder:s}}),[]),[n,o]=(0,p.useState)(!1),{ref:r}=bh(t),{title:i,setTitle:a}=yh(),[l,u]=(0,p.useState)({}),{clearSelectedBlock:h,insertBlocks:_,insertDefaultBlock:f}=(0,d.useDispatch)(g.store),b=(0,Ln.decodeEntities)(s)||(0,fs.__)("Add title"),{value:y,onChange:v,ref:w}=(0,$c.__unstableUseRichText)({value:i,onChange(e){a(e.replace(fh," "))},placeholder:b,selectionStart:l.start,selectionEnd:l.end,onSelectionChange(e,t){u((s=>{const{start:n,end:o}=s;return n===e&&o===t?s:{start:e,end:t}}))},__unstableDisableFormats:!1});function S(e){_(e,0)}const k=mr(_h,{"is-selected":n});return(0,c.jsx)("h1",{ref:(0,m.useMergeRefs)([w,r]),contentEditable:!0,className:k,"aria-label":b,role:"textbox","aria-multiline":"true",onFocus:function(){o(!0),h()},onBlur:function(){o(!1),u({})},onKeyDown:function(e){e.keyCode===ll.ENTER&&(e.preventDefault(),f(void 0,void 0,0))},onPaste:function(e){const t=e.clipboardData;let s="",n="";try{s=t.getData("text/plain"),n=t.getData("text/html")}catch(e){return}window.console.log("Received HTML:\n\n",n),window.console.log("Received plain text:\n\n",s);const o=(0,x.pasteHandler)({HTML:n,plainText:s});if(e.preventDefault(),o.length)if("string"!=typeof o){const[e]=o;if(i||"core/heading"!==e.name&&"core/paragraph"!==e.name)S(o);else{const t=(0,Uc.__unstableStripHTML)(e.attributes.content);a(t),S(o.slice(1))}}else{const e=(0,Uc.__unstableStripHTML)(o);v((0,$c.insert)(y,(0,$c.create)({html:e})))}}})}));var vh=(0,p.forwardRef)(((e,t)=>(0,c.jsx)(Bd,{supportKeys:"title",children:(0,c.jsx)(xh,{ref:t})})));var wh=(0,p.forwardRef)((function(e,t){const{placeholder:s}=(0,d.useSelect)((e=>{const{getSettings:t}=e(g.store),{titlePlaceholder:s}=t();return{placeholder:s}}),[]),[n,o]=(0,p.useState)(!1),{title:r,setTitle:i}=yh(),{ref:a}=bh(t),l=mr(_h,{"is-selected":n,"is-raw-text":!0}),u=(0,Ln.decodeEntities)(s)||(0,fs.__)("Add title");return(0,c.jsx)(Hn.TextareaControl,{ref:a,value:r,onChange:function(e){i(e.replace(fh," "))},onFocus:function(){o(!0)},onBlur:function(){o(!1)},label:s,className:l,placeholder:u,hideLabelFromVision:!0,autoComplete:"off",dir:"auto",rows:1,__nextHasNoMarginBottom:!0})}));function Sh({children:e}){const{canTrashPost:t}=(0,d.useSelect)((e=>{const{isEditedPostNew:t,getCurrentPostId:s,getCurrentPostType:n}=e(vc),{canUser:o}=e(u.store),r=n(),i=s(),a=t(),l=!!i&&o("delete",{kind:"postType",name:r,id:i});return{canTrashPost:(!a||i)&&l&&!M.includes(r)}}),[]);return t?e:null}function kh({onActionPerformed:e}){const t=(0,d.useRegistry)(),{isNew:s,isDeleting:n,postId:o,title:r}=(0,d.useSelect)((e=>{const t=e(vc);return{isNew:t.isEditedPostNew(),isDeleting:t.isDeletingPost(),postId:t.getCurrentPostId(),title:t.getCurrentPostAttribute("title")}}),[]),{trashPost:i}=(0,d.useDispatch)(vc),[a,l]=(0,p.useState)(!1);if(s||!o)return null;return(0,c.jsxs)(Sh,{children:[(0,c.jsx)(Hn.Button,{__next40pxDefaultSize:!0,className:"editor-post-trash",isDestructive:!0,variant:"secondary",isBusy:n,"aria-disabled":n,onClick:n?void 0:()=>l(!0),children:(0,fs.__)("Move to trash")}),(0,c.jsx)(Hn.__experimentalConfirmDialog,{isOpen:a,onConfirm:async()=>{l(!1),await i();const s=await t.resolveSelect(vc).getCurrentPost();e?.("move-to-trash",[s])},onCancel:()=>l(!1),confirmButtonText:(0,fs.__)("Move to trash"),size:"small",children:(0,fs.sprintf)((0,fs.__)('Are you sure you want to move "%s" to the trash?'),r)})]})}function Ch({onClose:e}){const{isEditable:t,postSlug:s,postLink:n,permalinkPrefix:o,permalinkSuffix:r,permalink:i}=(0,d.useSelect)((e=>{const t=e(vc).getCurrentPost(),s=e(vc).getCurrentPostType(),n=e(u.store).getPostType(s),o=e(vc).getPermalinkParts(),r=t?._links?.["wp:action-publish"]??!1;return{isEditable:e(vc).isPermalinkEditable()&&r,postSlug:(0,w.safeDecodeURIComponent)(e(vc).getEditedPostSlug()),viewPostLabel:n?.labels.view_item,postLink:t.link,permalinkPrefix:o?.prefix,permalinkSuffix:o?.suffix,permalink:(0,w.safeDecodeURIComponent)(e(vc).getPermalink())}}),[]),{editPost:a}=(0,d.useDispatch)(vc),{createNotice:l}=(0,d.useDispatch)(_s.store),[h,_]=(0,p.useState)(!1),f=(0,m.useCopyToClipboard)(i,(()=>{l("info",(0,fs.__)("Copied Permalink to clipboard."),{isDismissible:!0,type:"snackbar"})})),b="editor-post-url__slug-description-"+(0,m.useInstanceId)(Ch);return(0,c.jsxs)("div",{className:"editor-post-url",children:[(0,c.jsx)(g.__experimentalInspectorPopoverHeader,{title:(0,fs.__)("Slug"),onClose:e}),(0,c.jsxs)(Hn.__experimentalVStack,{spacing:3,children:[t&&(0,c.jsx)("p",{className:"editor-post-url__intro",children:(0,p.createInterpolateElement)((0,fs.__)("<span>Customize the last part of the Permalink.</span> <a>Learn more.</a>"),{span:(0,c.jsx)("span",{id:b}),a:(0,c.jsx)(Hn.ExternalLink,{href:(0,fs.__)("https://wordpress.org/documentation/article/page-post-settings-sidebar/#permalink")})})}),(0,c.jsxs)("div",{children:[t&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(Hn.__experimentalInputControl,{__next40pxDefaultSize:!0,prefix:(0,c.jsx)(Hn.__experimentalInputControlPrefixWrapper,{children:"/"}),suffix:(0,c.jsx)(Hn.__experimentalInputControlSuffixWrapper,{variant:"control",children:(0,c.jsx)(Hn.Button,{icon:Tr,ref:f,size:"small",label:"Copy"})}),label:(0,fs.__)("Slug"),hideLabelFromVision:!0,value:h?"":s,autoComplete:"off",spellCheck:"false",type:"text",className:"editor-post-url__input",onChange:e=>{a({slug:e}),e?h&&_(!1):h||_(!0)},onBlur:e=>{a({slug:(0,w.cleanForSlug)(e.target.value)}),h&&_(!1)},"aria-describedby":b}),(0,c.jsxs)("p",{className:"editor-post-url__permalink",children:[(0,c.jsx)("span",{className:"editor-post-url__permalink-visual-label",children:(0,fs.__)("Permalink:")}),(0,c.jsxs)(Hn.ExternalLink,{className:"editor-post-url__link",href:n,target:"_blank",children:[(0,c.jsx)("span",{className:"editor-post-url__link-prefix",children:o}),(0,c.jsx)("span",{className:"editor-post-url__link-slug",children:s}),(0,c.jsx)("span",{className:"editor-post-url__link-suffix",children:r})]})]})]}),!t&&(0,c.jsx)(Hn.ExternalLink,{className:"editor-post-url__link",href:n,target:"_blank",children:n})]})]})]})}function Ph({children:e}){const t=(0,d.useSelect)((e=>{const t=e(vc).getCurrentPostType(),s=e(u.store).getPostType(t);if(!s?.viewable)return!1;if(!e(vc).getCurrentPost().link)return!1;return!!e(vc).getPermalinkParts()}),[]);return t?e:null}function jh(){return Eh()}function Eh(){const e=(0,d.useSelect)((e=>e(vc).getPermalink()),[]);return(0,w.filterURLForDisplay)((0,w.safeDecodeURIComponent)(e))}function Th(){const{isFrontPage:e}=(0,d.useSelect)((e=>{const{getCurrentPostId:t}=e(vc),{getEditedEntityRecord:s,canUser:n}=e(u.store),o=n("read",{kind:"root",name:"site"})?s("root","site"):void 0,r=t();return{isFrontPage:o?.page_on_front===r}}),[]),[t,s]=(0,p.useState)(null),n=(0,p.useMemo)((()=>({anchor:t,placement:"left-start",offset:36,shift:!0})),[t]),o=e?(0,fs.__)("Link"):(0,fs.__)("Slug");return(0,c.jsx)(Ph,{children:(0,c.jsxs)(Rd,{label:o,ref:s,children:[!e&&(0,c.jsx)(Hn.Dropdown,{popoverProps:n,className:"editor-post-url__panel-dropdown",contentClassName:"editor-post-url__panel-dialog",focusOnMount:!0,renderToggle:({isOpen:e,onToggle:t})=>(0,c.jsx)(Bh,{isOpen:e,onClick:t}),renderContent:({onClose:e})=>(0,c.jsx)(Ch,{onClose:e})}),e&&(0,c.jsx)(Ih,{})]})})}function Bh({isOpen:e,onClick:t}){const{slug:s}=(0,d.useSelect)((e=>({slug:e(vc).getEditedPostSlug()})),[]),n=(0,w.safeDecodeURIComponent)(s);return(0,c.jsx)(Hn.Button,{size:"compact",className:"editor-post-url__panel-toggle",variant:"tertiary","aria-expanded":e,"aria-label":(0,fs.sprintf)((0,fs.__)("Change link: %s"),n),onClick:t,children:(0,c.jsx)(c.Fragment,{children:n})})}function Ih(){const{postLink:e}=(0,d.useSelect)((e=>{const{getCurrentPost:t}=e(vc);return{postLink:t()?.link}}),[]);return(0,c.jsx)(Hn.ExternalLink,{className:"editor-post-url__front-page-link",href:e,target:"_blank",children:e})}function Nh({render:e}){return e({canEdit:(0,d.useSelect)((e=>e(vc).getCurrentPost()._links?.["wp:action-publish"]??!1))})}var Rh=(0,c.jsx)(L.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,c.jsx)(L.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M5.5 12a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0ZM12 4a8 8 0 1 0 0 16 8 8 0 0 0 0-16Zm.75 4v1.5h-1.5V8h1.5Zm0 8v-5h-1.5v5h1.5Z"})});const Dh=window.wp.wordcount;function Ah(){const e=(0,d.useSelect)((e=>e(vc).getEditedPostAttribute("content")),[]),t=(0,fs._x)("words","Word count type. Do not translate!");return(0,c.jsx)("span",{className:"word-count",children:(0,Dh.count)(e,t)})}const Mh=189;function Lh(){const e=(0,d.useSelect)((e=>e(vc).getEditedPostAttribute("content")),[]),t=(0,fs._x)("words","Word count type. Do not translate!"),s=Math.round((0,Dh.count)(e,t)/Mh),n=0===s?(0,p.createInterpolateElement)((0,fs.__)("<span>< 1</span> minute"),{span:(0,c.jsx)("span",{})}):(0,p.createInterpolateElement)((0,fs.sprintf)((0,fs._n)("<span>%s</span> minute","<span>%s</span> minutes",s),s),{span:(0,c.jsx)("span",{})});return(0,c.jsx)("span",{className:"time-to-read",children:n})}function Oh(){const e=(0,d.useSelect)((e=>e(vc).getEditedPostAttribute("content")),[]);return(0,Dh.count)(e,"characters_including_spaces")}var Fh=function({hasOutlineItemsDisabled:e,onRequestClose:t}){const{headingCount:s,paragraphCount:n,numberOfBlocks:o}=(0,d.useSelect)((e=>{const{getGlobalBlockCount:t}=e(g.store);return{headingCount:t("core/heading"),paragraphCount:t("core/paragraph"),numberOfBlocks:t()}}),[]);return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("div",{className:"table-of-contents__wrapper",role:"note","aria-label":(0,fs.__)("Document Statistics"),tabIndex:"0",children:(0,c.jsxs)("ul",{role:"list",className:"table-of-contents__counts",children:[(0,c.jsxs)("li",{className:"table-of-contents__count",children:[(0,fs.__)("Words"),(0,c.jsx)(Ah,{})]}),(0,c.jsxs)("li",{className:"table-of-contents__count",children:[(0,fs.__)("Characters"),(0,c.jsx)("span",{className:"table-of-contents__number",children:(0,c.jsx)(Oh,{})})]}),(0,c.jsxs)("li",{className:"table-of-contents__count",children:[(0,fs.__)("Time to read"),(0,c.jsx)(Lh,{})]}),(0,c.jsxs)("li",{className:"table-of-contents__count",children:[(0,fs.__)("Headings"),(0,c.jsx)("span",{className:"table-of-contents__number",children:s})]}),(0,c.jsxs)("li",{className:"table-of-contents__count",children:[(0,fs.__)("Paragraphs"),(0,c.jsx)("span",{className:"table-of-contents__number",children:n})]}),(0,c.jsxs)("li",{className:"table-of-contents__count",children:[(0,fs.__)("Blocks"),(0,c.jsx)("span",{className:"table-of-contents__number",children:o})]})]})}),s>0&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("hr",{}),(0,c.jsx)("h2",{className:"table-of-contents__title",children:(0,fs.__)("Document Outline")}),(0,c.jsx)(ed,{onSelect:t,hasOutlineItemsDisabled:e})]})]})};var Vh=(0,p.forwardRef)((function({hasOutlineItemsDisabled:e,repositionDropdown:t,...s},n){const o=(0,d.useSelect)((e=>!!e(g.store).getBlockCount()),[]);return(0,c.jsx)(Hn.Dropdown,{popoverProps:{placement:t?"right":"bottom"},className:"table-of-contents",contentClassName:"table-of-contents__popover",renderToggle:({isOpen:e,onToggle:t})=>(0,c.jsx)(Hn.Button,{__next40pxDefaultSize:!0,...s,ref:n,onClick:o?t:void 0,icon:Rh,"aria-expanded":e,"aria-haspopup":"true",label:(0,fs.__)("Details"),tooltipPosition:"bottom","aria-disabled":!o}),renderContent:({onClose:t})=>(0,c.jsx)(Fh,{onRequestClose:t,hasOutlineItemsDisabled:e})})}));function Uh(){const{__experimentalGetDirtyEntityRecords:e}=(0,d.useSelect)(u.store);return(0,p.useEffect)((()=>{const t=t=>{if(e().length>0)return t.returnValue=(0,fs.__)("You have unsaved changes. If you proceed, they will be lost."),t.returnValue};return window.addEventListener("beforeunload",t),()=>{window.removeEventListener("beforeunload",t)}}),[e]),null}const Hh=window.wp.serverSideRender;var zh=s.n(Hh);function Gh(e,t,s=[]){const n=(0,p.forwardRef)(((s,n)=>(k()("wp.editor."+e,{since:"5.3",alternative:"wp.blockEditor."+e,version:"6.2"}),(0,c.jsx)(t,{ref:n,...s}))));return s.forEach((s=>{n[s]=Gh(e+"."+s,t[s])})),n}function $h(e,t){return(...s)=>(k()("wp.editor."+e,{since:"5.3",alternative:"wp.blockEditor."+e,version:"6.2"}),t(...s))}const Wh=Gh("RichText",g.RichText,["Content"]);Wh.isEmpty=$h("RichText.isEmpty",g.RichText.isEmpty);const Zh=Gh("Autocomplete",g.Autocomplete),Yh=Gh("AlignmentToolbar",g.AlignmentToolbar),qh=Gh("BlockAlignmentToolbar",g.BlockAlignmentToolbar),Kh=Gh("BlockControls",g.BlockControls,["Slot"]),Qh=Gh("BlockEdit",g.BlockEdit),Xh=Gh("BlockEditorKeyboardShortcuts",g.BlockEditorKeyboardShortcuts),Jh=Gh("BlockFormatControls",g.BlockFormatControls,["Slot"]),eg=Gh("BlockIcon",g.BlockIcon),tg=Gh("BlockInspector",g.BlockInspector),sg=Gh("BlockList",g.BlockList),ng=Gh("BlockMover",g.BlockMover),og=Gh("BlockNavigationDropdown",g.BlockNavigationDropdown),rg=Gh("BlockSelectionClearer",g.BlockSelectionClearer),ig=Gh("BlockSettingsMenu",g.BlockSettingsMenu),ag=Gh("BlockTitle",g.BlockTitle),lg=Gh("BlockToolbar",g.BlockToolbar),cg=Gh("ColorPalette",g.ColorPalette),dg=Gh("ContrastChecker",g.ContrastChecker),ug=Gh("CopyHandler",g.CopyHandler),pg=Gh("DefaultBlockAppender",g.DefaultBlockAppender),mg=Gh("FontSizePicker",g.FontSizePicker),hg=Gh("Inserter",g.Inserter),gg=Gh("InnerBlocks",g.InnerBlocks,["ButtonBlockAppender","DefaultBlockAppender","Content"]),_g=Gh("InspectorAdvancedControls",g.InspectorAdvancedControls,["Slot"]),fg=Gh("InspectorControls",g.InspectorControls,["Slot"]),bg=Gh("PanelColorSettings",g.PanelColorSettings),yg=Gh("PlainText",g.PlainText),xg=Gh("RichTextShortcut",g.RichTextShortcut),vg=Gh("RichTextToolbarButton",g.RichTextToolbarButton),wg=Gh("__unstableRichTextInputEvent",g.__unstableRichTextInputEvent),Sg=Gh("MediaPlaceholder",g.MediaPlaceholder),kg=Gh("MediaUpload",g.MediaUpload),Cg=Gh("MediaUploadCheck",g.MediaUploadCheck),Pg=Gh("MultiSelectScrollIntoView",g.MultiSelectScrollIntoView),jg=Gh("NavigableToolbar",g.NavigableToolbar),Eg=Gh("ObserveTyping",g.ObserveTyping),Tg=Gh("SkipToSelectedBlock",g.SkipToSelectedBlock),Bg=Gh("URLInput",g.URLInput),Ig=Gh("URLInputButton",g.URLInputButton),Ng=Gh("URLPopover",g.URLPopover),Rg=Gh("Warning",g.Warning),Dg=Gh("WritingFlow",g.WritingFlow),Ag=$h("createCustomColorsHOC",g.createCustomColorsHOC),Mg=$h("getColorClassName",g.getColorClassName),Lg=$h("getColorObjectByAttributeValues",g.getColorObjectByAttributeValues),Og=$h("getColorObjectByColorValue",g.getColorObjectByColorValue),Fg=$h("getFontSize",g.getFontSize),Vg=$h("getFontSizeClass",g.getFontSizeClass),Ug=$h("withColorContext",g.withColorContext),Hg=$h("withColors",g.withColors),zg=$h("withFontSizes",g.withFontSizes),Gg=kl,$g=kl;function Wg(e){return k()("wp.editor.cleanForSlug",{since:"12.7",plugin:"Gutenberg",alternative:"wp.url.cleanForSlug"}),(0,w.cleanForSlug)(e)}var Zg=(0,Hn.createSlotFill)(Symbol("EditCanvasContainerSlot"));const Yg="__experimentalMainDashboardButton",{Fill:qg,Slot:Kg}=(0,Hn.createSlotFill)(Yg),Qg=qg;Qg.Slot=()=>{const e=(0,Hn.__experimentalUseSlotFills)(Yg);return(0,c.jsx)(Kg,{bubblesVirtually:!0,fillProps:{length:e?e.length:0}})};var Xg=Qg,Jg=(0,c.jsx)(L.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,c.jsx)(L.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"})}),e_=(0,c.jsx)(L.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,c.jsx)(L.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{useHasBlockToolbar:t_}=$(g.privateApis);function s_({isCollapsed:e,onToggle:t}){const{blockSelectionStart:s}=(0,d.useSelect)((e=>({blockSelectionStart:e(g.store).getBlockSelectionStart()})),[]),n=t_(),o=!!s;return(0,p.useEffect)((()=>{s&&t(!1)}),[s,t]),n?(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("div",{className:mr("editor-collapsible-block-toolbar",{"is-collapsed":e||!o}),children:(0,c.jsx)(g.BlockToolbar,{hideDragHandle:!0})}),(0,c.jsx)(Hn.Popover.Slot,{name:"block-toolbar"}),(0,c.jsx)(Hn.Button,{className:"editor-collapsible-block-toolbar__toggle",icon:e?Jg:e_,onClick:()=>{t(!e)},label:e?(0,fs.__)("Show block tools"):(0,fs.__)("Hide block tools"),size:"compact"})]}):null}var n_=(0,c.jsx)(L.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,c.jsx)(L.Path,{d:"M11 12.5V17.5H12.5V12.5H17.5V11H12.5V6H11V11H6V12.5H11Z"})});var o_=function({className:e,disableBlockTools:t=!1}){const{setIsInserterOpened:s,setIsListViewOpened:n}=(0,d.useDispatch)(vc),{isDistractionFree:o,isInserterOpened:r,isListViewOpen:i,listViewShortcut:a,inserterSidebarToggleRef:l,listViewToggleRef:u,showIconLabels:h}=(0,d.useSelect)((e=>{const{get:t}=e(C.store),{isListViewOpened:s,getEditorMode:n,getInserterSidebarToggleRef:o,getListViewToggleRef:r}=$(e(vc)),{getShortcutRepresentation:i}=e(il.store);return{isInserterOpened:e(vc).isInserterOpened(),isListViewOpen:s(),listViewShortcut:i("core/editor/toggle-list-view"),inserterSidebarToggleRef:o(),listViewToggleRef:r(),showIconLabels:t("core","showIconLabels"),isDistractionFree:t("core","distractionFree"),isVisualMode:"visual"===n()}}),[]),_=(0,m.useViewportMatch)("wide"),f=(0,fs.__)("Document tools"),b=(0,p.useCallback)((()=>n(!i)),[n,i]),y=(0,p.useCallback)((()=>s(!r)),[r,s]),x=(0,fs._x)("Block Inserter","Generic label for block inserter button"),v=r?(0,fs.__)("Close"):(0,fs.__)("Add");return(0,c.jsx)(g.NavigableToolbar,{className:mr("editor-document-tools","edit-post-header-toolbar",e),"aria-label":f,variant:"unstyled",children:(0,c.jsxs)("div",{className:"editor-document-tools__left",children:[!o&&(0,c.jsx)(Hn.ToolbarButton,{ref:l,className:"editor-document-tools__inserter-toggle",variant:"primary",isPressed:r,onMouseDown:e=>{r&&e.preventDefault()},onClick:y,disabled:t,icon:n_,label:h?v:x,showTooltip:!h,"aria-expanded":r}),(_||!h)&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(Hn.ToolbarItem,{as:id,showTooltip:!h,variant:h?"tertiary":void 0,size:"compact"}),(0,c.jsx)(Hn.ToolbarItem,{as:rd,showTooltip:!h,variant:h?"tertiary":void 0,size:"compact"}),!o&&(0,c.jsx)(Hn.ToolbarButton,{className:"editor-document-tools__document-overview-toggle",icon:Wi,disabled:t,isPressed:i,label:(0,fs.__)("Document Overview"),onClick:b,shortcut:a,showTooltip:!h,variant:h?"tertiary":void 0,"aria-expanded":i,ref:u})]})]})})},r_=(0,c.jsx)(L.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,c.jsx)(L.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"})});function i_(){const{createNotice:e}=(0,d.useDispatch)(_s.store),{getCurrentPostId:t,getCurrentPostType:s}=(0,d.useSelect)(vc),{getEditedEntityRecord:n}=(0,d.useSelect)(u.store);const o=(0,m.useCopyToClipboard)((function(){const e=n("postType",s(),t());return e?"function"==typeof e.content?e.content(e):e.blocks?(0,x.__unstableSerializeAndClean)(e.blocks):e.content?e.content:void 0:""}),(function(){e("info",(0,fs.__)("All content copied."),{isDismissible:!0,type:"snackbar"})}));return(0,c.jsx)(Hn.MenuItem,{ref:o,children:(0,fs.__)("Copy all blocks")})}const a_=[{value:"visual",label:(0,fs.__)("Visual editor")},{value:"text",label:(0,fs.__)("Code editor")}];var l_=function(){const{shortcut:e,isRichEditingEnabled:t,isCodeEditingEnabled:s,mode:n}=(0,d.useSelect)((e=>({shortcut:e(il.store).getShortcutRepresentation("core/editor/toggle-mode"),isRichEditingEnabled:e(vc).getEditorSettings().richEditingEnabled,isCodeEditingEnabled:e(vc).getEditorSettings().codeEditingEnabled,mode:e(vc).getEditorMode()})),[]),{switchEditorMode:o}=(0,d.useDispatch)(vc);let r=n;t||"visual"!==n||(r="text"),s||"text"!==n||(r="visual");const i=a_.map((n=>(s||"text"!==n.value||(n={...n,disabled:!0}),t||"visual"!==n.value||(n={...n,disabled:!0,info:(0,fs.__)("You can enable the visual editor in your profile settings.")}),n.value===r||n.disabled?n:{...n,shortcut:e})));return(0,c.jsx)(Hn.MenuGroup,{label:(0,fs.__)("Editor"),children:(0,c.jsx)(Hn.MenuItemsChoice,{choices:i,value:r,onSelect:o})})};const{Fill:c_,Slot:d_}=(0,Hn.createSlotFill)("ToolsMoreMenuGroup");c_.Slot=({fillProps:e})=>(0,c.jsx)(d_,{fillProps:e});var u_=c_;const{Fill:p_,Slot:m_}=(0,Hn.createSlotFill)("web"===p.Platform.OS?Symbol("ViewMoreMenuGroup"):"ViewMoreMenuGroup");p_.Slot=({fillProps:e})=>(0,c.jsx)(m_,{fillProps:e});var h_=p_;function g_(){const{openModal:e}=(0,d.useDispatch)(ja),{set:t}=(0,d.useDispatch)(C.store),{toggleDistractionFree:s}=(0,d.useDispatch)(vc),n=(0,d.useSelect)((e=>e(C.store).get("core","showIconLabels")),[]),o=()=>{t("core","distractionFree",!1)};return(0,c.jsx)(c.Fragment,{children:(0,c.jsx)(Hn.DropdownMenu,{icon:r_,label:(0,fs.__)("Options"),popoverProps:{placement:"bottom-end",className:"more-menu-dropdown__content"},toggleProps:{showTooltip:!n,...n&&{variant:"tertiary"},tooltipPosition:"bottom",size:"compact"},children:({onClose:t})=>(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)(Hn.MenuGroup,{label:(0,fs._x)("View","noun"),children:[(0,c.jsx)(C.PreferenceToggleMenuItem,{scope:"core",name:"fixedToolbar",onToggle:o,label:(0,fs.__)("Top toolbar"),info:(0,fs.__)("Access all block and document tools in a single place"),messageActivated:(0,fs.__)("Top toolbar activated."),messageDeactivated:(0,fs.__)("Top toolbar deactivated.")}),(0,c.jsx)(C.PreferenceToggleMenuItem,{scope:"core",name:"distractionFree",label:(0,fs.__)("Distraction free"),info:(0,fs.__)("Write with calmness"),handleToggling:!1,onToggle:()=>s({createNotice:!1}),messageActivated:(0,fs.__)("Distraction free mode activated."),messageDeactivated:(0,fs.__)("Distraction free mode deactivated."),shortcut:ll.displayShortcut.primaryShift("\\")}),(0,c.jsx)(C.PreferenceToggleMenuItem,{scope:"core",name:"focusMode",label:(0,fs.__)("Spotlight mode"),info:(0,fs.__)("Focus on one block at a time"),messageActivated:(0,fs.__)("Spotlight mode activated."),messageDeactivated:(0,fs.__)("Spotlight mode deactivated.")}),(0,c.jsx)(h_.Slot,{fillProps:{onClose:t}})]}),(0,c.jsx)(l_,{}),(0,c.jsx)(Na.Slot,{name:"core/plugin-more-menu",label:(0,fs.__)("Panels"),fillProps:{onClick:t}}),(0,c.jsxs)(Hn.MenuGroup,{label:(0,fs.__)("Tools"),children:[(0,c.jsx)(Hn.MenuItem,{onClick:()=>e("editor/keyboard-shortcut-help"),shortcut:ll.displayShortcut.access("h"),children:(0,fs.__)("Keyboard shortcuts")}),(0,c.jsx)(i_,{}),(0,c.jsxs)(Hn.MenuItem,{icon:Fn,href:(0,fs.__)("https://wordpress.org/documentation/article/wordpress-block-editor/"),target:"_blank",rel:"noopener noreferrer",children:[(0,fs.__)("Help"),(0,c.jsx)(Hn.VisuallyHidden,{as:"span",children:(0,fs.__)("(opens in a new tab)")})]}),(0,c.jsx)(u_.Slot,{fillProps:{onClose:t}})]}),(0,c.jsx)(Hn.MenuGroup,{children:(0,c.jsx)(Hn.MenuItem,{onClick:()=>e("editor/preferences"),children:(0,fs.__)("Preferences")})})]})})})}const __="toggle",f_="button";function b_({forceIsDirty:e,setEntitiesSavedStatesCallback:t}){let s;const n=(0,m.useViewportMatch)("medium","<"),{togglePublishSidebar:o}=(0,d.useDispatch)(vc),{hasPublishAction:r,isBeingScheduled:i,isPending:a,isPublished:l,isPublishSidebarEnabled:u,isPublishSidebarOpened:p,isScheduled:h,postStatus:g,postStatusHasChanged:_}=(0,d.useSelect)((e=>({hasPublishAction:!!e(vc).getCurrentPost()?._links?.["wp:action-publish"],isBeingScheduled:e(vc).isEditedPostBeingScheduled(),isPending:e(vc).isCurrentPostPending(),isPublished:e(vc).isCurrentPostPublished(),isPublishSidebarEnabled:e(vc).isPublishSidebarEnabled(),isPublishSidebarOpened:e(vc).isPublishSidebarOpened(),isScheduled:e(vc).isCurrentPostScheduled(),postStatus:e(vc).getEditedPostAttribute("status"),postStatusHasChanged:e(vc).getPostEdits()?.status})),[]);return s=l||_&&!["future","publish"].includes(g)||h&&i||a&&!r&&!n?f_:n||u?__:f_,(0,c.jsx)(Vp,{forceIsDirty:e,isOpen:p,isToggle:s===__,onToggle:o,setEntitiesSavedStatesCallback:t})}function y_(){const{hasLoaded:e,permalink:t,isPublished:s,label:n,showIconLabels:o}=(0,d.useSelect)((e=>{const t=e(vc).getCurrentPostType(),s=e(u.store).getPostType(t),{get:n}=e(C.store);return{permalink:e(vc).getPermalink(),isPublished:e(vc).isCurrentPostPublished(),label:s?.labels.view_item,hasLoaded:!!s,showIconLabels:n("core","showIconLabels")}}),[]);return s&&t&&e?(0,c.jsx)(Hn.Button,{icon:Fn,label:n||(0,fs.__)("View post"),href:t,target:"_blank",showTooltip:!o,size:"compact"}):null}var x_=(0,c.jsx)(L.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,c.jsx)(L.Path,{d:"M20.5 16h-.7V8c0-1.1-.9-2-2-2H6.2c-1.1 0-2 .9-2 2v8h-.7c-.8 0-1.5.7-1.5 1.5h20c0-.8-.7-1.5-1.5-1.5zM5.7 8c0-.3.2-.5.5-.5h11.6c.3 0 .5.2.5.5v7.6H5.7V8z"})}),v_=(0,c.jsx)(L.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,c.jsx)(L.Path,{d:"M15 4H9c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h6c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H9c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h6c.3 0 .5.2.5.5v12zm-4.5-.5h2V16h-2v1.5z"})}),w_=(0,c.jsx)(L.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,c.jsx)(L.Path,{d:"M17 4H7c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H7c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h10c.3 0 .5.2.5.5v12zm-7.5-.5h4V16h-4v1.5z"})});function S_({forceIsAutosaveable:e,disabled:t}){const{deviceType:s,homeUrl:n,isTemplate:o,isViewable:r,showIconLabels:i,isTemplateHidden:a,templateId:l}=(0,d.useSelect)((e=>{const{getDeviceType:t,getCurrentPostType:s,getCurrentTemplateId:n,getRenderingMode:o}=e(vc),{getEntityRecord:r,getPostType:i}=e(u.store),{get:a}=e(C.store),l=s();return{deviceType:t(),homeUrl:r("root","__unstableBase")?.home,isTemplate:"wp_template"===l,isViewable:i(l)?.viewable??!1,showIconLabels:a("core","showIconLabels"),isTemplateHidden:"post-only"===o(),templateId:n()}}),[]),{setDeviceType:p,setRenderingMode:h,setDefaultRenderingMode:_}=$((0,d.useDispatch)(vc)),{resetZoomLevel:f}=$((0,d.useDispatch)(g.store)),b=e=>{p(e),f()};if((0,m.useViewportMatch)("medium","<"))return null;const y={className:"editor-preview-dropdown__toggle",iconPosition:"right",size:"compact",showTooltip:!i,disabled:t,accessibleWhenDisabled:t},x={"aria-label":(0,fs.__)("View options")},v={desktop:x_,mobile:v_,tablet:w_},w=[{value:"Desktop",label:(0,fs.__)("Desktop"),icon:x_},{value:"Tablet",label:(0,fs.__)("Tablet"),icon:w_},{value:"Mobile",label:(0,fs.__)("Mobile"),icon:v_}];return(0,c.jsx)(Hn.DropdownMenu,{className:mr("editor-preview-dropdown",`editor-preview-dropdown--${s.toLowerCase()}`),popoverProps:{placement:"bottom-end"},toggleProps:y,menuProps:x,icon:v[s.toLowerCase()],label:(0,fs.__)("View"),disableOpenOnArrowDown:t,children:({onClose:t})=>(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(Hn.MenuGroup,{children:(0,c.jsx)(Hn.MenuItemsChoice,{choices:w,value:s,onSelect:b})}),o&&(0,c.jsx)(Hn.MenuGroup,{children:(0,c.jsxs)(Hn.MenuItem,{href:n,target:"_blank",icon:Fn,onClick:t,children:[(0,fs.__)("View site"),(0,c.jsx)(Hn.VisuallyHidden,{as:"span",children:(0,fs.__)("(opens in a new tab)")})]})}),!o&&!!l&&(0,c.jsx)(Hn.MenuGroup,{children:(0,c.jsx)(Hn.MenuItem,{icon:a?void 0:zn,isSelected:!a,role:"menuitemcheckbox",onClick:()=>{const e=a?"template-locked":"post-only";h(e),_(e),f()},children:(0,fs.__)("Show template")})}),r&&(0,c.jsx)(Hn.MenuGroup,{children:(0,c.jsx)(Mp,{className:"editor-preview-dropdown__button-external",role:"menuitem",forceIsAutosaveable:e,"aria-label":(0,fs.__)("Preview in new tab"),textContent:(0,c.jsxs)(c.Fragment,{children:[(0,fs.__)("Preview in new tab"),(0,c.jsx)(Hn.Icon,{icon:Fn})]}),onPreview:t})}),(0,c.jsx)(Na.Slot,{name:"core/plugin-preview-menu",fillProps:{onClick:t}})]})})}var k_=(0,c.jsx)(L.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,c.jsx)(L.Path,{fill:"none",d:"M5.75 12.75V18.25H11.25M12.75 5.75H18.25V11.25",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"square"})});var C_=({disabled:e})=>{const{isZoomOut:t,showIconLabels:s,isDistractionFree:n}=(0,d.useSelect)((e=>({isZoomOut:$(e(g.store)).isZoomOut(),showIconLabels:e(C.store).get("core","showIconLabels"),isDistractionFree:e(C.store).get("core","distractionFree")}))),{resetZoomLevel:o,setZoomLevel:r}=$((0,d.useDispatch)(g.store)),{registerShortcut:i,unregisterShortcut:a}=(0,d.useDispatch)(il.store);(0,p.useEffect)((()=>(i({name:"core/editor/zoom",category:"global",description:(0,fs.__)("Enter or exit zoom out."),keyCombination:{modifier:(0,ll.isAppleOS)()?"primaryShift":"secondary",character:"0"}}),()=>{a("core/editor/zoom")})),[i,a]),(0,il.useShortcut)("core/editor/zoom",(()=>{t?o():r("auto-scaled")}),{isDisabled:n});return(0,c.jsx)(Hn.Button,{accessibleWhenDisabled:!0,disabled:e,onClick:()=>{t?o():r("auto-scaled")},icon:k_,label:(0,fs.__)("Zoom Out"),isPressed:t,size:"compact",showTooltip:!s,className:"editor-zoom-out-toggle"})};const P_={distractionFreeDisabled:{y:"-50px"},distractionFreeHover:{y:0},distractionFreeHidden:{y:"-50px"},visible:{y:0},hidden:{y:0}},j_={distractionFreeDisabled:{x:"-100%"},distractionFreeHover:{x:0},distractionFreeHidden:{x:"-100%"},visible:{x:0},hidden:{x:0}};var E_=function({customSaveButton:e,forceIsDirty:t,forceDisableBlockTools:s,setEntitiesSavedStatesCallback:n,title:o}){const r=(0,m.useViewportMatch)("large"),i=(0,m.useViewportMatch)("medium"),a=(0,m.useMediaQuery)("(max-width: 403px)"),{postType:l,isTextEditor:u,isPublishSidebarOpened:h,showIconLabels:_,hasFixedToolbar:f,hasBlockSelection:b,hasSectionRootClientId:y}=(0,d.useSelect)((e=>{const{get:t}=e(C.store),{getEditorMode:s,getCurrentPostType:n,isPublishSidebarOpened:o}=e(vc),{getBlockSelectionStart:r,getSectionRootClientId:i}=$(e(g.store));return{postType:n(),isTextEditor:"text"===s(),isPublishSidebarOpened:o(),showIconLabels:t("core","showIconLabels"),hasFixedToolbar:t("core","fixedToolbar"),hasBlockSelection:!!r(),hasSectionRootClientId:!!i()}}),[]),x=["post","page","wp_template"].includes(l)&&y,v=[R,I,N].includes(l)||s,[w,S]=(0,p.useState)(!0),k=!a&&(!f||f&&(!b||w)),P=(()=>{const e=(0,Hn.__experimentalUseSlotFills)(Yg);return Boolean(e&&e.length)})();return(0,c.jsxs)("div",{className:"editor-header edit-post-header",children:[P&&(0,c.jsx)(Hn.__unstableMotion.div,{className:"editor-header__back-button",variants:j_,transition:{type:"tween"},children:(0,c.jsx)(Xg.Slot,{})}),(0,c.jsxs)(Hn.__unstableMotion.div,{variants:P_,className:"editor-header__toolbar",transition:{type:"tween"},children:[(0,c.jsx)(o_,{disableBlockTools:s||u}),f&&i&&(0,c.jsx)(s_,{isCollapsed:w,onToggle:S})]}),k&&(0,c.jsx)(Hn.__unstableMotion.div,{className:"editor-header__center",variants:P_,transition:{type:"tween"},children:(0,c.jsx)(Gc,{title:o})}),(0,c.jsxs)(Hn.__unstableMotion.div,{variants:P_,transition:{type:"tween"},className:"editor-header__settings",children:[!e&&!h&&(0,c.jsx)(nh,{forceIsDirty:t}),(0,c.jsx)(y_,{}),(0,c.jsx)(S_,{forceIsAutosaveable:t,disabled:v}),(0,c.jsx)(Mp,{className:"editor-header__post-preview-button",forceIsAutosaveable:t}),r&&x&&(0,c.jsx)(C_,{disabled:s}),(r||!_)&&(0,c.jsx)(Ma.Slot,{scope:"core"}),!e&&(0,c.jsx)(b_,{forceIsDirty:t,setEntitiesSavedStatesCallback:n}),e,(0,c.jsx)(g_,{})]})]})};const{PrivateInserterLibrary:T_}=$(g.privateApis);function B_(){const{blockSectionRootClientId:e,inserterSidebarToggleRef:t,inserter:s,showMostUsedBlocks:n,sidebarIsOpened:o}=(0,d.useSelect)((e=>{const{getInserterSidebarToggleRef:t,getInserter:s,isPublishSidebarOpened:n}=$(e(vc)),{getBlockRootClientId:o,isZoomOut:r,getSectionRootClientId:i}=$(e(g.store)),{get:a}=e(C.store),{getActiveComplementaryArea:l}=e(ja);return{inserterSidebarToggleRef:t(),inserter:s(),showMostUsedBlocks:a("core","mostUsedBlocks"),blockSectionRootClientId:(()=>{if(r()){const e=i();if(e)return e}return o()})(),sidebarIsOpened:!(!l("core")&&!n())}}),[]),{setIsInserterOpened:r}=(0,d.useDispatch)(vc),{disableComplementaryArea:i}=(0,d.useDispatch)(ja),a=(0,m.useViewportMatch)("medium","<"),l=(0,p.useRef)(),u=(0,p.useCallback)((()=>{r(!1),t.current?.focus()}),[t,r]),h=(0,p.useCallback)((e=>{e.keyCode!==ll.ESCAPE||e.defaultPrevented||(e.preventDefault(),u())}),[u]),_=(0,c.jsx)("div",{className:"editor-inserter-sidebar__content",children:(0,c.jsx)(T_,{showMostUsedBlocks:n,showInserterHelpPanel:!0,shouldFocusBlock:a,rootClientId:e,onSelect:s.onSelect,__experimentalInitialTab:s.tab,__experimentalInitialCategory:s.category,__experimentalFilterValue:s.filterValue,onPatternCategorySelection:o?()=>i("core"):void 0,ref:l,onClose:u})});return(0,c.jsx)("div",{onKeyDown:h,className:"editor-inserter-sidebar",children:_})}function I_(){return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("div",{className:"editor-list-view-sidebar__outline",children:[(0,c.jsxs)("div",{children:[(0,c.jsx)(Hn.__experimentalText,{children:(0,fs.__)("Characters:")}),(0,c.jsx)(Hn.__experimentalText,{children:(0,c.jsx)(Oh,{})})]}),(0,c.jsxs)("div",{children:[(0,c.jsx)(Hn.__experimentalText,{children:(0,fs.__)("Words:")}),(0,c.jsx)(Ah,{})]}),(0,c.jsxs)("div",{children:[(0,c.jsx)(Hn.__experimentalText,{children:(0,fs.__)("Time to read:")}),(0,c.jsx)(Lh,{})]})]}),(0,c.jsx)(ed,{})]})}const{TabbedSidebar:N_}=$(g.privateApis);function R_(){const{setIsListViewOpened:e}=(0,d.useDispatch)(vc),{getListViewToggleRef:t}=$((0,d.useSelect)(vc)),s=(0,m.useFocusOnMount)("firstElement"),n=(0,p.useCallback)((()=>{e(!1),t().current?.focus()}),[t,e]),o=(0,p.useCallback)((e=>{e.keyCode!==ll.ESCAPE||e.defaultPrevented||(e.preventDefault(),n())}),[n]),[r,i]=(0,p.useState)(null),[a,l]=(0,p.useState)("list-view"),u=(0,p.useRef)(),h=(0,p.useRef)(),_=(0,p.useRef)(),f=(0,m.useMergeRefs)([s,_,i]);const b=(0,p.useCallback)((()=>{u.current.contains(u.current.ownerDocument.activeElement)?n():function(e){const t=Uc.focus.tabbable.find(h.current)[0];if("list-view"===e){const e=Uc.focus.tabbable.find(_.current)[0];(u.current.contains(e)?e:t).focus()}else t.focus()}(a)}),[n,a]);return(0,il.useShortcut)("core/editor/toggle-list-view",b),(0,c.jsx)("div",{className:"editor-list-view-sidebar",onKeyDown:o,ref:u,children:(0,c.jsx)(N_,{tabs:[{name:"list-view",title:(0,fs._x)("List View","Post overview"),panel:(0,c.jsx)("div",{className:"editor-list-view-sidebar__list-view-container",children:(0,c.jsx)("div",{className:"editor-list-view-sidebar__list-view-panel-content",children:(0,c.jsx)(g.__experimentalListView,{dropZoneElement:r})})}),panelRef:f},{name:"outline",title:(0,fs._x)("Outline","Post overview"),panel:(0,c.jsx)("div",{className:"editor-list-view-sidebar__list-view-container",children:(0,c.jsx)(I_,{})})}],onClose:n,onSelect:e=>l(e),defaultTabId:"list-view",ref:h,closeButtonLabel:(0,fs.__)("Close")})})}const{Fill:D_,Slot:A_}=(0,Hn.createSlotFill)("ActionsPanel");function M_({setEntitiesSavedStatesCallback:e,closeEntitiesSavedStates:t,isEntitiesSavedStatesOpen:s,forceIsDirtyPublishPanel:n}){const{closePublishSidebar:o,togglePublishSidebar:r}=(0,d.useDispatch)(vc),{publishSidebarOpened:i,isPublishable:a,isDirty:l,hasOtherEntitiesChanges:u}=(0,d.useSelect)((e=>{const{isPublishSidebarOpened:t,isEditedPostPublishable:s,isCurrentPostPublished:n,isEditedPostDirty:o,hasNonPostEntityChanges:r}=e(vc),i=r();return{publishSidebarOpened:t(),isPublishable:!n()&&s(),isDirty:i||o(),hasOtherEntitiesChanges:i}}),[]),m=(0,p.useCallback)((()=>e(!0)),[]);let h;return h=i?(0,c.jsx)(Ym,{onClose:o,forceIsDirty:n,PrePublishExtension:Tu.Slot,PostPublishExtension:vu.Slot}):a&&!u?(0,c.jsx)("div",{className:"editor-layout__toggle-publish-panel",children:(0,c.jsx)(Hn.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:r,"aria-expanded":!1,children:(0,fs.__)("Open publish panel")})}):(0,c.jsx)("div",{className:"editor-layout__toggle-entities-saved-states-panel",children:(0,c.jsx)(Hn.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:m,"aria-expanded":!1,"aria-haspopup":"dialog",disabled:!l,accessibleWhenDisabled:!0,children:(0,fs.__)("Open save panel")})}),(0,c.jsxs)(c.Fragment,{children:[s&&(0,c.jsx)(yd,{close:t,renderDialog:!0}),(0,c.jsx)(A_,{bubblesVirtually:!0}),!s&&h]})}function L_({autoFocus:e=!1}){const{switchEditorMode:t}=(0,d.useDispatch)(vc),{shortcut:s,isRichEditingEnabled:n}=(0,d.useSelect)((e=>{const{getEditorSettings:t}=e(vc),{getShortcutRepresentation:s}=e(il.store);return{shortcut:s("core/editor/toggle-mode"),isRichEditingEnabled:t().richEditingEnabled}}),[]),o=(0,p.useRef)();return(0,p.useEffect)((()=>{e||o?.current?.focus()}),[e]),(0,c.jsxs)("div",{className:"editor-text-editor",children:[n&&(0,c.jsxs)("div",{className:"editor-text-editor__toolbar",children:[(0,c.jsx)("h2",{children:(0,fs.__)("Editing code")}),(0,c.jsx)(Hn.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:()=>t("visual"),shortcut:s,children:(0,fs.__)("Exit code editor")})]}),(0,c.jsxs)("div",{className:"editor-text-editor__body",children:[(0,c.jsx)(wh,{ref:o}),(0,c.jsx)(gh,{})]})]})}function O_({contentRef:e}){const{onNavigateToEntityRecord:t,templateId:s}=(0,d.useSelect)((e=>{const{getEditorSettings:t,getCurrentTemplateId:s}=e(vc);return{onNavigateToEntityRecord:t().onNavigateToEntityRecord,templateId:s()}}),[]),n=(0,d.useSelect)((e=>!!e(u.store).canUser("create",{kind:"postType",name:"wp_template"})),[]),[o,r]=(0,p.useState)(!1);return(0,p.useEffect)((()=>{const t=e=>{n&&e.target.classList.contains("is-root-container")&&"core/template-part"!==e.target.dataset?.type&&(e.defaultPrevented||(e.preventDefault(),r(!0)))},s=e.current;return s?.addEventListener("dblclick",t),()=>{s?.removeEventListener("dblclick",t)}}),[e,n]),n?(0,c.jsx)(Hn.__experimentalConfirmDialog,{isOpen:o,confirmButtonText:(0,fs.__)("Edit template"),onConfirm:()=>{r(!1),t({postId:s,postType:"wp_template"})},onCancel:()=>r(!1),size:"medium",children:(0,fs.__)("You’ve tried to select a block that is part of a template that may be used elsewhere on your site. Would you like to edit the template?")}):null}function F_({direction:e,resizeWidthBy:t}){const s=`resizable-editor__resize-help-${e}`;return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(Hn.Tooltip,{text:(0,fs.__)("Drag to resize"),children:(0,c.jsx)(Hn.__unstableMotion.button,{className:`editor-resizable-editor__resize-handle is-${e}`,"aria-label":(0,fs.__)("Drag to resize"),"aria-describedby":s,onKeyDown:function(s){const{keyCode:n}=s;n!==ll.LEFT&&n!==ll.RIGHT||(s.preventDefault(),"left"===e&&n===ll.LEFT||"right"===e&&n===ll.RIGHT?t(20):("left"===e&&n===ll.RIGHT||"right"===e&&n===ll.LEFT)&&t(-20))},variants:{active:{opacity:1,scaleY:1.3}},whileFocus:"active",whileHover:"active",whileTap:"active",role:"separator","aria-orientation":"vertical"},"handle")}),(0,c.jsx)(Hn.VisuallyHidden,{id:s,children:(0,fs.__)("Use left and right arrow keys to resize the canvas.")})]})}const V_={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 U_=function({className:e,enableResizing:t,height:s,children:n}){const[o,r]=(0,p.useState)("100%"),i=(0,p.useRef)(),a=(0,p.useCallback)((e=>{i.current&&r(i.current.offsetWidth+e)}),[]);return(0,c.jsx)(Hn.ResizableBox,{className:mr("editor-resizable-editor",e,{"is-resizable":t}),ref:e=>{i.current=e?.resizable},size:{width:t?o:"100%",height:t&&s?s:"100%"},onResizeStop:(e,t,s)=>{r(s.style.width)},minWidth:300,maxWidth:"100%",maxHeight:"100%",enable:{left:t,right:t},showHandle:t,resizeRatio:2,handleComponent:{left:(0,c.jsx)(F_,{direction:"left",resizeWidthBy:a}),right:(0,c.jsx)(F_,{direction:"right",resizeWidthBy:a})},handleClasses:void 0,handleStyles:{left:V_,right:V_},children:n})};function H_(e,t,s){return Math.min(Math.max(e,t),s)}function z_(e,t,s){const n=e-H_(e,s.left,s.right),o=t-H_(t,s.top,s.bottom);return Math.sqrt(n*n+o*o)}function G_({isEnabled:e=!0}={}){const{getEnabledClientIdsTree:t,getBlockName:s,getBlockOrder:n}=$((0,d.useSelect)(g.store)),{selectBlock:o}=(0,d.useDispatch)(g.store);return(0,m.useRefEffect)((r=>{if(!e)return;const i=e=>{(e.target===r||e.target.classList.contains("is-root-container"))&&((e,i)=>{const a=t().flatMap((({clientId:e})=>{const t=s(e);if("core/template-part"===t)return[];if("core/post-content"===t){const t=n(e);if(t.length)return t}return[e]}));let l=1/0,c=null;for(const t of a){const s=r.querySelector(`[data-block="${t}"]`);if(!s)continue;const n=z_(e,i,s.getBoundingClientRect());n<l&&n<500&&(l=n,c=t)}c&&o(c)})(e.clientX,e.clientY)};return r.addEventListener("click",i),()=>r.removeEventListener("click",i)}),[e])}function $_(){const{getSettings:e,isZoomOut:t}=$((0,d.useSelect)(g.store)),{resetZoomLevel:s}=$((0,d.useDispatch)(g.store));return(0,m.useRefEffect)((n=>{function o(n){if(t()&&!n.defaultPrevented){n.preventDefault();const{__experimentalSetIsInserterOpened:t}=e();"function"==typeof t&&t(!1),s()}}return n.addEventListener("dblclick",o),()=>{n.removeEventListener("dblclick",o)}}),[e,t,s])}const{LayoutStyle:W_,useLayoutClasses:Z_,useLayoutStyles:Y_,ExperimentalBlockCanvas:q_,useFlashEditableBlocks:K_}=$(g.privateApis),Q_=[N,B,R,I];function X_(e){for(let t=0;t<e.length;t++){if("core/post-content"===e[t].name)return e[t].attributes;if(e[t].innerBlocks.length){const s=X_(e[t].innerBlocks);if(s)return s}}}function J_(e){for(let t=0;t<e.length;t++)if("core/post-content"===e[t].name)return!0;return!1}var ef=function({autoFocus:e,styles:t,disableIframe:s=!1,iframeProps:n,contentRef:o,className:r}){const i=(0,m.useViewportMatch)("small","<"),{renderingMode:a,postContentAttributes:l,editedPostTemplate:h={},wrapperBlockName:_,wrapperUniqueId:f,deviceType:b,isFocusedEntity:y,isDesignPostType:v,postType:w,isPreview:S,canvasMinHeight:k}=(0,d.useSelect)((e=>{const{getCurrentPostId:t,getCurrentPostType:s,getCurrentTemplateId:n,getEditorSettings:o,getRenderingMode:r,getDeviceType:i,getCanvasMinHeight:a}=$(e(vc)),{getPostType:l,getEditedEntityRecord:c}=e(u.store),d=s(),p=r();let m;d===N?m="core/block":"post-only"===p&&(m="core/post-content");const h=o(),g=h.supportsTemplateMode,_=l(d),f=n(),b=f?c("postType",B,f):void 0;return{renderingMode:p,postContentAttributes:h.postContentAttributes,isDesignPostType:Q_.includes(d),editedPostTemplate:_?.viewable&&g?b:void 0,wrapperBlockName:m,wrapperUniqueId:t(),deviceType:i(),isFocusedEntity:!!h.onNavigateToPreviousEntityRecord,postType:d,isPreview:h.isPreviewMode,canvasMinHeight:a()}}),[]),{isCleanNewPost:C}=(0,d.useSelect)(vc),{hasRootPaddingAwareAlignments:P,themeHasDisabledLayoutStyles:j,themeSupportsLayout:E,isZoomedOut:T}=(0,d.useSelect)((e=>{const{getSettings:t,isZoomOut:s}=$(e(g.store)),n=t();return{themeHasDisabledLayoutStyles:n.disableLayoutStyles,themeSupportsLayout:n.supportsLayout,hasRootPaddingAwareAlignments:n.__experimentalFeatures?.useRootPaddingAwareAlignments,isZoomedOut:s()}}),[]),D=(0,p.useRef)(),A=(0,g.__experimentalUseResizeCanvas)(b),[M]=(0,g.useSettings)("layout"),L=(0,p.useMemo)((()=>"post-only"!==a||v?{type:"default"}:E?{...M,type:"constrained"}:{type:"default"}),[a,E,M,v]),O=(0,p.useMemo)((()=>{if(!h?.content&&!h?.blocks&&l)return l;if(h?.blocks)return X_(h?.blocks);const e="string"==typeof h?.content?h?.content:"";return X_((0,x.parse)(e))||{}}),[h?.content,h?.blocks,l]),F=(0,p.useMemo)((()=>{if(!h?.content&&!h?.blocks)return!1;if(h?.blocks)return J_(h?.blocks);const e="string"==typeof h?.content?h?.content:"";return J_((0,x.parse)(e))||!1}),[h?.content,h?.blocks]),{layout:V={},align:U=""}=O||{},H=Z_(O,"core/post-content"),z=mr({"is-layout-flow":!E},E&&H,U&&`align${U}`),G=Y_(O,"core/post-content",".block-editor-block-list__layout.is-root-container"),W=(0,p.useMemo)((()=>V&&("constrained"===V?.type||V?.inherit||V?.contentSize||V?.wideSize)?{...M,...V,type:"constrained"}:{...M,...V,type:"default"}),[V?.type,V?.inherit,V?.contentSize,V?.wideSize,M]),Z=l?W:L,Y="default"!==Z?.type||F?Z:L,q=(0,g.__unstableUseTypingObserver)(),K=(0,p.useRef)();(0,p.useEffect)((()=>{e&&C()&&K?.current?.focus()}),[e,C]);const Q=[R,I,N].includes(w)&&!S&&!i&&!T,X=(0,p.useMemo)((()=>{if(!D.current)return k;const{ownerDocument:e}=D.current,t=e.documentElement.scrollTop||e.body.scrollTop;return k+t}),[k]),J=(0,p.useMemo)((()=>[...t??[],{css:`:where(.block-editor-iframe__body){display:flow-root;${X?`min-height:${X}px;`:""}}.is-root-container{display:flow-root;${Q?"min-height:0!important;":""}}\n\t\t\t\t${Q?".block-editor-iframe__html{background:var(--wp-editor-canvas-background);display:flex;align-items:center;justify-content:center;min-height:100vh;}.block-editor-iframe__body{width:100%;}":""}`}]),[t,Q,X]),ee=(0,g.__unstableUseTypewriter)();return o=(0,m.useMergeRefs)([D,o,"post-only"===a?ee:null,K_({isEnabled:"template-locked"===a}),G_({isEnabled:"template-locked"===a}),$_()]),(0,c.jsx)("div",{className:mr("editor-visual-editor","edit-post-visual-editor",r,{"has-padding":y||Q,"is-resizable":Q,"is-iframed":!s}),children:(0,c.jsx)(U_,{enableResizing:Q,height:"100%",children:(0,c.jsxs)(q_,{shouldIframe:!s,contentRef:o,styles:J,height:"100%",iframeProps:{...n,style:{...n?.style,...A}},children:[E&&!j&&"post-only"===a&&!v&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(W_,{selector:".editor-visual-editor__post-title-wrapper",layout:L}),(0,c.jsx)(W_,{selector:".block-editor-block-list__layout.is-root-container",layout:Y}),U&&(0,c.jsx)(W_,{css:".is-root-container.alignwide { max-width: var(--wp--style--global--wide-size); margin-left: auto; margin-right: auto;}\n\t\t.is-root-container.alignwide:where(.is-layout-flow) > :not(.alignleft):not(.alignright) { max-width: var(--wp--style--global--wide-size);}\n\t\t.is-root-container.alignfull { max-width: none; margin-left: auto; margin-right: auto;}\n\t\t.is-root-container.alignfull:where(.is-layout-flow) > :not(.alignleft):not(.alignright) { max-width: none;}"}),G&&(0,c.jsx)(W_,{layout:W,css:G})]}),"post-only"===a&&!v&&(0,c.jsx)("div",{className:mr("editor-visual-editor__post-title-wrapper","edit-post-visual-editor__post-title-wrapper",{"has-global-padding":P}),contentEditable:!1,ref:q,style:{marginTop:"4rem"},children:(0,c.jsx)(vh,{ref:K})}),(0,c.jsxs)(g.RecursionProvider,{blockName:_,uniqueId:f,children:[(0,c.jsx)(g.BlockList,{className:mr("is-"+b.toLowerCase()+"-preview","post-only"!==a||v?"wp-site-blocks":`${z} wp-block-post-content`,{"has-global-padding":"post-only"===a&&!v&&P}),layout:Z,dropZoneElement:s?D.current:D.current?.parentNode,__unstableDisableDropZone:"template-locked"===a}),"template-locked"===a&&(0,c.jsx)(O_,{contentRef:D})]})]})})})};const tf={header:(0,fs.__)("Editor top bar"),body:(0,fs.__)("Editor content"),sidebar:(0,fs.__)("Editor settings"),actions:(0,fs.__)("Editor publish"),footer:(0,fs.__)("Editor footer")};function sf({className:e,styles:t,children:s,forceIsDirty:n,contentRef:o,disableIframe:r,autoFocus:i,customSaveButton:a,customSavePanel:l,forceDisableBlockTools:u,title:h,iframeProps:_}){const{mode:f,isInserterOpened:b,isListViewOpened:y,isDistractionFree:x,isPreviewMode:v,showBlockBreadcrumbs:w,documentLabel:S}=(0,d.useSelect)((e=>{const{get:t}=e(C.store),{getEditorSettings:s,getPostTypeLabel:n}=e(vc),o=s(),r=n();let i=e(vc).getEditorMode();return o.richEditingEnabled||"visual"!==i||(i="text"),o.codeEditingEnabled||"text"!==i||(i="visual"),{mode:i,isInserterOpened:e(vc).isInserterOpened(),isListViewOpened:e(vc).isListViewOpened(),isDistractionFree:t("core","distractionFree"),isPreviewMode:o.isPreviewMode,showBlockBreadcrumbs:t("core","showBlockBreadcrumbs"),documentLabel:r||(0,fs._x)("Document","noun, breadcrumb")}}),[]),k=(0,m.useViewportMatch)("medium"),P=y?(0,fs.__)("Document Overview"):(0,fs.__)("Block Library"),[j,E]=(0,p.useState)(!1),T=(0,p.useCallback)((e=>{"function"==typeof j&&j(e),E(!1)}),[j]);return(0,c.jsx)(Wa,{isDistractionFree:x,className:mr("editor-editor-interface",e,{"is-entity-save-view-open":!!j,"is-distraction-free":x&&!v}),labels:{...tf,secondarySidebar:P},header:!v&&(0,c.jsx)(E_,{forceIsDirty:n,setEntitiesSavedStatesCallback:E,customSaveButton:a,forceDisableBlockTools:u,title:h}),editorNotices:(0,c.jsx)(ld,{}),secondarySidebar:!v&&"visual"===f&&(b&&(0,c.jsx)(B_,{})||y&&(0,c.jsx)(R_,{})),sidebar:!v&&!x&&(0,c.jsx)(Va.Slot,{scope:"core"}),content:(0,c.jsxs)(c.Fragment,{children:[!x&&!v&&(0,c.jsx)(ld,{}),(0,c.jsx)(Zg.Slot,{children:([e])=>e||(0,c.jsxs)(c.Fragment,{children:[!v&&"text"===f&&(0,c.jsx)(L_,{autoFocus:i}),!v&&!k&&"visual"===f&&(0,c.jsx)(g.BlockToolbar,{hideDragHandle:!0}),(v||"visual"===f)&&(0,c.jsx)(ef,{styles:t,contentRef:o,disableIframe:r,autoFocus:i,iframeProps:_}),s]})})]}),footer:!v&&!x&&k&&w&&"visual"===f&&(0,c.jsx)(g.BlockBreadcrumb,{rootLabelText:S}),actions:v?void 0:l||(0,c.jsx)(M_,{closeEntitiesSavedStates:T,isEntitiesSavedStatesOpen:j,setEntitiesSavedStatesCallback:E,forceIsDirtyPublishPanel:n})})}const{OverridesPanel:nf}=$(ao.privateApis);function of(){return(0,d.useSelect)((e=>"wp_block"===e(vc).getCurrentPostType()),[])?(0,c.jsx)(nf,{}):null}function rf(e){return"string"==typeof e.title?(0,Ln.decodeEntities)(e.title):e.title&&"rendered"in e.title?(0,Ln.decodeEntities)(e.title.rendered):e.title&&"raw"in e.title?(0,Ln.decodeEntities)(e.title.raw):""}const af=({items:e,closeModal:t})=>{const[s]=e,n=rf(s),{showOnFront:o,currentHomePage:r,isSaving:i}=(0,d.useSelect)((e=>{const{getEntityRecord:t,isSavingEntityRecord:s}=e(u.store),n=t("root","site"),o=t("postType","page",n?.page_on_front);return{showOnFront:n?.show_on_front,currentHomePage:o,isSaving:s("root","site")}})),{saveEntityRecord:a}=(0,d.useDispatch)(u.store),{createSuccessNotice:l,createErrorNotice:p}=(0,d.useDispatch)(_s.store);let m="";"posts"===o?m=(0,fs.__)("This will replace the current homepage which is set to display latest posts."):r&&(m=(0,fs.sprintf)((0,fs.__)('This will replace the current homepage: "%s"'),rf(r)));const h=(0,fs.sprintf)((0,fs.__)('Set "%1$s" as the site homepage? %2$s'),n,m).trim(),g=(0,fs.__)("Set homepage");return(0,c.jsx)("form",{onSubmit:async function(e){e.preventDefault();try{await a("root","site",{page_on_front:s.id,show_on_front:"page"}),l((0,fs.__)("Homepage updated."),{type:"snackbar"})}catch(e){const t=e.message&&"unknown_error"!==e.code?e.message:(0,fs.__)("An error occurred while setting the homepage.");p(t,{type:"snackbar"})}finally{t?.()}},children:(0,c.jsxs)(Hn.__experimentalVStack,{spacing:"5",children:[(0,c.jsx)(Hn.__experimentalText,{children:h}),(0,c.jsxs)(Hn.__experimentalHStack,{justify:"right",children:[(0,c.jsx)(Hn.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:()=>{t?.()},disabled:i,accessibleWhenDisabled:!0,children:(0,fs.__)("Cancel")}),(0,c.jsx)(Hn.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",disabled:i,accessibleWhenDisabled:!0,children:g})]})]})})},lf=({items:e,closeModal:t})=>{const[s]=e,n=rf(s),{currentPostsPage:o,isPageForPostsSet:r,isSaving:i}=(0,d.useSelect)((e=>{const{getEntityRecord:t,isSavingEntityRecord:s}=e(u.store),n=t("root","site");return{currentPostsPage:t("postType","page",n?.page_for_posts),isPageForPostsSet:0!==n?.page_for_posts,isSaving:s("root","site")}})),{saveEntityRecord:a}=(0,d.useDispatch)(u.store),{createSuccessNotice:l,createErrorNotice:p}=(0,d.useDispatch)(_s.store);const m=r&&o?(0,fs.sprintf)((0,fs.__)('This will replace the current posts page: "%s"'),rf(o)):(0,fs.__)("This page will show the latest posts."),h=(0,fs.sprintf)((0,fs.__)('Set "%1$s" as the posts page? %2$s'),n,m),g=(0,fs.__)("Set posts page");return(0,c.jsx)("form",{onSubmit:async function(e){e.preventDefault();try{await a("root","site",{page_for_posts:s.id,show_on_front:"page"}),l((0,fs.__)("Posts page updated."),{type:"snackbar"})}catch(e){const t=e.message&&"unknown_error"!==e.code?e.message:(0,fs.__)("An error occurred while setting the posts page.");p(t,{type:"snackbar"})}finally{t?.()}},children:(0,c.jsxs)(Hn.__experimentalVStack,{spacing:"5",children:[(0,c.jsx)(Hn.__experimentalText,{children:h}),(0,c.jsxs)(Hn.__experimentalHStack,{justify:"right",children:[(0,c.jsx)(Hn.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:()=>{t?.()},disabled:i,accessibleWhenDisabled:!0,children:(0,fs.__)("Cancel")}),(0,c.jsx)(Hn.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",disabled:i,accessibleWhenDisabled:!0,children:g})]})]})})};function cf({postType:e,onActionPerformed:t,context:s}){const{defaultActions:n}=(0,d.useSelect)((t=>{const{getEntityActions:s}=$(t(vc));return{defaultActions:s("postType",e)}}),[e]),o=(0,d.useSelect)((t=>{if("page"!==e)return!1;const{getDefaultTemplateId:s,getEntityRecord:n,canUser:o}=t(u.store);if(!o("update",{kind:"root",name:"site"}))return!1;const r=s({slug:"front-page"});if(!r)return!0;const i=n("postType","wp_template",r);return!i||"front-page"!==i.slug}),[e]),r=(()=>{const{pageOnFront:e,pageForPosts:t}=(0,d.useSelect)((e=>{const{getEntityRecord:t,canUser:s}=e(u.store),n=s("read",{kind:"root",name:"site"})?t("root","site"):void 0;return{pageOnFront:n?.page_on_front,pageForPosts:n?.page_for_posts}}));return(0,p.useMemo)((()=>({id:"set-as-homepage",label:(0,fs.__)("Set as homepage"),isEligible:s=>"publish"===s.status&&"page"===s.type&&e!==s.id&&t!==s.id,modalFocusOnMount:"firstContentElement",RenderModal:af})),[t,e])})(),i=(()=>{const{pageOnFront:e,pageForPosts:t}=(0,d.useSelect)((e=>{const{getEntityRecord:t,canUser:s}=e(u.store),n=s("read",{kind:"root",name:"site"})?t("root","site"):void 0;return{pageOnFront:n?.page_on_front,pageForPosts:n?.page_for_posts}}));return(0,p.useMemo)((()=>({id:"set-as-posts-page",label:(0,fs.__)("Set as posts page"),isEligible:s=>"publish"===s.status&&"page"===s.type&&e!==s.id&&t!==s.id,modalFocusOnMount:"firstContentElement",RenderModal:lf})),[t,e])})(),{registerPostTypeSchema:a}=$((0,d.useDispatch)(vc));return(0,p.useEffect)((()=>{a(e)}),[a,e]),(0,p.useMemo)((()=>{let e=[...n];if(o&&e.push(r,i),e=e.sort(((e,t)=>"move-to-trash"===t.id?-1:0)),e=e.filter((e=>!e.context||e.context===s)),t)for(let s=0;s<e.length;++s){if(e[s].callback){const n=e[s].callback;e[s]={...e[s],callback:(o,r)=>{n(o,{...r,onActionPerformed:n=>{r?.onActionPerformed&&r.onActionPerformed(n),t(e[s].id,n)}})}}}if(e[s].RenderModal){const n=e[s].RenderModal;e[s]={...e[s],RenderModal:o=>(0,c.jsx)(n,{...o,onActionPerformed:n=>{o.onActionPerformed&&o.onActionPerformed(n),t(e[s].id,n)}})}}}return e}),[s,n,t,r,i,o])}const{Menu:df,kebabCase:uf}=$(Hn.privateApis);function pf({postType:e,postId:t,onActionPerformed:s}){const[n,o]=(0,p.useState)(null),{item:r,permissions:i}=(0,d.useSelect)((s=>{const{getEditedEntityRecord:n,getEntityRecordPermissions:o}=$(s(u.store));return{item:n("postType",e,t),permissions:o("postType",e,t)}}),[t,e]),a=(0,p.useMemo)((()=>({...r,permissions:i})),[r,i]),l=cf({postType:e,onActionPerformed:s}),m=(0,p.useMemo)((()=>l.filter((e=>!e.isEligible||e.isEligible(a)))),[l,a]);return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)(df,{placement:"bottom-end",children:[(0,c.jsx)(df.TriggerButton,{render:(0,c.jsx)(Hn.Button,{size:"small",icon:r_,label:(0,fs.__)("Actions"),disabled:!m.length,accessibleWhenDisabled:!0,className:"editor-all-actions-button"})}),(0,c.jsx)(df.Popover,{children:(0,c.jsx)(gf,{actions:m,items:[a],setActiveModalAction:o})})]}),!!n&&(0,c.jsx)(hf,{action:n,items:[a],closeModal:()=>o(null)})]})}function mf({action:e,onClick:t,items:s}){const n="string"==typeof e.label?e.label:e.label(s);return(0,c.jsx)(df.Item,{onClick:t,children:(0,c.jsx)(df.ItemLabel,{children:n})})}function hf({action:e,items:t,closeModal:s}){const n="string"==typeof e.label?e.label:e.label(t);return(0,c.jsx)(Hn.Modal,{title:e.modalHeader||n,__experimentalHideHeader:!!e.hideModalHeader,onRequestClose:s??(()=>{}),focusOnMount:"firstContentElement",size:"medium",overlayClassName:`editor-action-modal editor-action-modal__${uf(e.id)}`,children:(0,c.jsx)(e.RenderModal,{items:t,closeModal:s})})}function gf({actions:e,items:t,setActiveModalAction:s}){const n=(0,d.useRegistry)();return(0,c.jsx)(df.Group,{children:e.map((e=>(0,c.jsx)(mf,{action:e,onClick:()=>{"RenderModal"in e?s(e):e.callback(t,{registry:n})},items:t},e.id)))})}const{Badge:_f}=$(Hn.privateApis);function ff({postType:e,postId:t,onActionPerformed:s}){const n=(0,p.useMemo)((()=>Array.isArray(t)?t:[t]),[t]),{postTitle:o,icon:r,labels:i}=(0,d.useSelect)((t=>{const{getEditedEntityRecord:s,getCurrentTheme:o,getPostType:r}=t(u.store),{getPostIcon:i}=$(t(vc));let a="";const l=s("postType",e,n[0]);if(1===n.length){const{default_template_types:t=[]}=o()??{},s=[B,I].includes(e)?Y({template:l,templateTypes:t}):{};a=s?.title||l?.title}return{postTitle:a,icon:i(e,{area:l?.area}),labels:r(e)?.labels}}),[n,e]),a=Hc(t);let l=(0,fs.__)("No title");return i?.name&&n.length>1?l=(0,fs.sprintf)((0,fs.__)("%1$d %2$s"),n.length,i?.name):o&&(l=(0,Uc.__unstableStripHTML)(o)),(0,c.jsxs)(Hn.__experimentalVStack,{spacing:1,className:"editor-post-card-panel",children:[(0,c.jsxs)(Hn.__experimentalHStack,{spacing:2,className:"editor-post-card-panel__header",align:"flex-start",children:[(0,c.jsx)(Hn.Icon,{className:"editor-post-card-panel__icon",icon:r}),(0,c.jsxs)(Hn.__experimentalText,{numberOfLines:2,truncate:!0,className:"editor-post-card-panel__title",as:"h2",children:[(0,c.jsx)("span",{className:"editor-post-card-panel__title-name",children:l}),a&&1===n.length&&(0,c.jsx)(_f,{children:a})]}),1===n.length&&(0,c.jsx)(pf,{postType:e,postId:n[0],onActionPerformed:s})]}),n.length>1&&(0,c.jsx)(Hn.__experimentalText,{className:"editor-post-card-panel__description",children:(0,fs.sprintf)((0,fs.__)("Changes will be applied to all selected %s."),i?.name.toLowerCase())})]})}function bf(){const{postContent:e}=(0,d.useSelect)((e=>{const{getEditedPostAttribute:t,getCurrentPostType:s,getCurrentPostId:n}=e(vc),{canUser:o}=e(u.store),{getEntityRecord:r}=e(u.store),i=o("read",{kind:"root",name:"site"})?r("root","site"):void 0,a=s();return{postContent:!(+n()===i?.page_for_posts)&&![B,I].includes(a)&&t("content")}}),[]),t=(0,fs._x)("words","Word count type. Do not translate!"),s=(0,p.useMemo)((()=>e?(0,Dh.count)(e,t):0),[e,t]);if(!s)return null;const n=Math.round(s/189),o=(0,fs.sprintf)((0,fs._n)("%s word","%s words",s),s.toLocaleString()),r=n<=1?(0,fs.__)("1 minute"):(0,fs.sprintf)((0,fs._n)("%s minute","%s minutes",n),n.toLocaleString());return(0,c.jsx)("div",{className:"editor-post-content-information",children:(0,c.jsx)(Hn.__experimentalText,{children:(0,fs.sprintf)((0,fs.__)("%1$s, %2$s read time."),o,r)})})}var yf=function(){const{postFormat:e}=(0,d.useSelect)((e=>{const{getEditedPostAttribute:t}=e(vc);return{postFormat:t("format")??"standard"}}),[]),t=Pp.find((t=>t.id===e)),[s,n]=(0,p.useState)(null),o=(0,p.useMemo)((()=>({anchor:s,placement:"left-start",offset:36,shift:!0})),[s]);return(0,c.jsx)(Cp,{children:(0,c.jsx)(Rd,{label:(0,fs.__)("Format"),ref:n,children:(0,c.jsx)(Hn.Dropdown,{popoverProps:o,contentClassName:"editor-post-format__dialog",focusOnMount:!0,renderToggle:({isOpen:e,onToggle:s})=>(0,c.jsx)(Hn.Button,{size:"compact",variant:"tertiary","aria-expanded":e,"aria-label":(0,fs.sprintf)((0,fs.__)("Change format: %s"),t?.caption),onClick:s,children:t?.caption}),renderContent:({onClose:e})=>(0,c.jsxs)("div",{className:"editor-post-format__dialog-content",children:[(0,c.jsx)(g.__experimentalInspectorPopoverHeader,{title:(0,fs.__)("Format"),onClose:e}),(0,c.jsx)(jp,{})]})})})})};function xf(){const e=(0,d.useSelect)((e=>e(vc).getEditedPostAttribute("modified")),[]),t=e&&(0,fs.sprintf)((0,fs.__)("Last edited %s."),(0,v.humanTimeDiff)(e));return t?(0,c.jsx)("div",{className:"editor-post-last-edited-panel",children:(0,c.jsx)(Hn.__experimentalText,{children:t})}):null}var vf=function({className:e,children:t}){return(0,c.jsx)(Hn.__experimentalVStack,{className:mr("editor-post-panel__section",e),children:t})};const wf={};function Sf(){const{editEntityRecord:e}=(0,d.useDispatch)(u.store),{postsPageTitle:t,postsPageId:s,isTemplate:n,postSlug:o}=(0,d.useSelect)((e=>{const{getEntityRecord:t,getEditedEntityRecord:s,canUser:n}=e(u.store),o=n("read",{kind:"root",name:"site"})?t("root","site"):void 0,r=o?.page_for_posts?s("postType","page",o?.page_for_posts):wf,{getEditedPostAttribute:i,getCurrentPostType:a}=e(vc);return{postsPageId:r?.id,postsPageTitle:r?.title,isTemplate:a()===B,postSlug:i("slug")}}),[]),[r,i]=(0,p.useState)(null),a=(0,p.useMemo)((()=>({anchor:r,placement:"left-start",offset:36,shift:!0})),[r]);if(!n||!["home","index"].includes(o)||!s)return null;const l=t=>{e("postType","page",s,{title:t})},h=(0,Ln.decodeEntities)(t);return(0,c.jsx)(Rd,{label:(0,fs.__)("Blog title"),ref:i,children:(0,c.jsx)(Hn.Dropdown,{popoverProps:a,contentClassName:"editor-blog-title-dropdown__content",focusOnMount:!0,renderToggle:({isOpen:e,onToggle:t})=>(0,c.jsx)(Hn.Button,{size:"compact",variant:"tertiary","aria-expanded":e,"aria-label":(0,fs.sprintf)((0,fs.__)("Change blog title: %s"),h),onClick:t,children:h}),renderContent:({onClose:e})=>(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(g.__experimentalInspectorPopoverHeader,{title:(0,fs.__)("Blog title"),onClose:e}),(0,c.jsx)(Hn.__experimentalInputControl,{placeholder:(0,fs.__)("No title"),size:"__unstable-large",value:t,onChange:(0,m.debounce)(l,300),label:(0,fs.__)("Blog title"),help:(0,fs.__)("Set the Posts Page title. Appears in search results, and when the page is shared on social media."),hideLabelFromVision:!0})]})})})}function kf(){const{editEntityRecord:e}=(0,d.useDispatch)(u.store),{postsPerPage:t,isTemplate:s,postSlug:n}=(0,d.useSelect)((e=>{const{getEditedPostAttribute:t,getCurrentPostType:s}=e(vc),{getEditedEntityRecord:n,canUser:o}=e(u.store),r=o("read",{kind:"root",name:"site"})?n("root","site"):void 0;return{isTemplate:s()===B,postSlug:t("slug"),postsPerPage:r?.posts_per_page||1}}),[]),[o,r]=(0,p.useState)(null),i=(0,p.useMemo)((()=>({anchor:o,placement:"left-start",offset:36,shift:!0})),[o]);if(!s||!["home","index"].includes(n))return null;const a=t=>{e("root","site",void 0,{posts_per_page:t})};return(0,c.jsx)(Rd,{label:(0,fs.__)("Posts per page"),ref:r,children:(0,c.jsx)(Hn.Dropdown,{popoverProps:i,contentClassName:"editor-posts-per-page-dropdown__content",focusOnMount:!0,renderToggle:({isOpen:e,onToggle:s})=>(0,c.jsx)(Hn.Button,{size:"compact",variant:"tertiary","aria-expanded":e,"aria-label":(0,fs.__)("Change posts per page"),onClick:s,children:t}),renderContent:({onClose:e})=>(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(g.__experimentalInspectorPopoverHeader,{title:(0,fs.__)("Posts per page"),onClose:e}),(0,c.jsx)(Hn.__experimentalNumberControl,{placeholder:0,value:t,size:"__unstable-large",spinControls:"custom",step:"1",min:"1",onChange:a,label:(0,fs.__)("Posts per page"),help:(0,fs.__)("Set the default number of posts to display on blog pages, including categories and tags. Some templates may override this setting."),hideLabelFromVision:!0})]})})})}const Cf=[{label:(0,fs._x)("Open",'Adjective: e.g. "Comments are open"'),value:"open",description:(0,fs.__)("Visitors can add new comments and replies.")},{label:(0,fs.__)("Closed"),value:"",description:[(0,fs.__)("Visitors cannot add new comments or replies."),(0,fs.__)("Existing comments remain visible.")].join(" ")}];function Pf(){const{editEntityRecord:e}=(0,d.useDispatch)(u.store),{allowCommentsOnNewPosts:t,isTemplate:s,postSlug:n}=(0,d.useSelect)((e=>{const{getEditedPostAttribute:t,getCurrentPostType:s}=e(vc),{getEditedEntityRecord:n,canUser:o}=e(u.store),r=o("read",{kind:"root",name:"site"})?n("root","site"):void 0;return{isTemplate:s()===B,postSlug:t("slug"),allowCommentsOnNewPosts:r?.default_comment_status||""}}),[]),[o,r]=(0,p.useState)(null),i=(0,p.useMemo)((()=>({anchor:o,placement:"left-start",offset:36,shift:!0})),[o]);if(!s||!["home","index"].includes(n))return null;const a=t=>{e("root","site",void 0,{default_comment_status:t?"open":null})};return(0,c.jsx)(Rd,{label:(0,fs.__)("Discussion"),ref:r,children:(0,c.jsx)(Hn.Dropdown,{popoverProps:i,contentClassName:"editor-site-discussion-dropdown__content",focusOnMount:!0,renderToggle:({isOpen:e,onToggle:s})=>(0,c.jsx)(Hn.Button,{size:"compact",variant:"tertiary","aria-expanded":e,"aria-label":(0,fs.__)("Change discussion settings"),onClick:s,children:t?(0,fs.__)("Comments open"):(0,fs.__)("Comments closed")}),renderContent:({onClose:e})=>(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(g.__experimentalInspectorPopoverHeader,{title:(0,fs.__)("Discussion"),onClose:e}),(0,c.jsxs)(Hn.__experimentalVStack,{spacing:3,children:[(0,c.jsx)(Hn.__experimentalText,{children:(0,fs.__)("Changes will apply to new posts only. Individual posts may override these settings.")}),(0,c.jsx)(Hn.RadioControl,{className:"editor-site-discussion__options",hideLabelFromVision:!0,label:(0,fs.__)("Comment status"),options:Cf,onChange:a,selected:t})]})]})})})}function jf({onActionPerformed:e}){const{isRemovedPostStatusPanel:t,postType:s,postId:n}=(0,d.useSelect)((e=>{const{isEditorPanelRemoved:t,getCurrentPostType:s,getCurrentPostId:n}=e(vc);return{isRemovedPostStatusPanel:t("post-status"),postType:s(),postId:n()}}),[]);return(0,c.jsx)(vf,{className:"editor-post-summary",children:(0,c.jsx)(Cu.Slot,{children:o=>(0,c.jsx)(c.Fragment,{children:(0,c.jsxs)(Hn.__experimentalVStack,{spacing:4,children:[(0,c.jsx)(ff,{postType:s,postId:n,onActionPerformed:e}),(0,c.jsx)(kp,{withPanelBody:!1}),(0,c.jsx)(pp,{}),(0,c.jsxs)(Hn.__experimentalVStack,{spacing:1,children:[(0,c.jsx)(bf,{}),(0,c.jsx)(xf,{})]}),!t&&(0,c.jsxs)(Hn.__experimentalVStack,{spacing:4,children:[(0,c.jsxs)(Hn.__experimentalVStack,{spacing:1,children:[(0,c.jsx)(sh,{}),(0,c.jsx)(ih,{}),(0,c.jsx)(Th,{}),(0,c.jsx)(qu,{}),(0,c.jsx)(Vu,{}),(0,c.jsx)(sp,{}),(0,c.jsx)(Bp,{}),(0,c.jsx)(Wd,{}),(0,c.jsx)(lh,{}),(0,c.jsx)(Sf,{}),(0,c.jsx)(kf,{}),(0,c.jsx)(Pf,{}),(0,c.jsx)(yf,{}),o]}),(0,c.jsx)(kh,{onActionPerformed:e})]})]})})})})}const{EXCLUDED_PATTERN_SOURCES:Ef,PATTERN_TYPES:Tf}=$(ao.privateApis);function Bf(e,t){return e.innerBlocks=e.innerBlocks.map((e=>Bf(e,t))),"core/template-part"===e.name&&void 0===e.attributes.theme&&(e.attributes.theme=t),e}function If(e,t){return e.filter(((e,s,n)=>((e,t,s)=>t===s.findIndex((t=>e.name===t.name)))(e,s,n)&&(e=>!Ef.includes(e.source))(e)&&(e=>e.templateTypes?.includes(t.slug)||e.blockTypes?.includes("core/template-part/"+t.area))(e)))}function Nf(e,t){return e.map((e=>({...e,keywords:e.keywords||[],type:Tf.theme,blocks:(0,x.parse)(e.content,{__unstableSkipMigrationLogs:!0}).map((e=>Bf(e,t)))})))}function Rf({availableTemplates:e,onSelect:t}){return e&&0!==e?.length?(0,c.jsx)(g.__experimentalBlockPatternsList,{label:(0,fs.__)("Templates"),blockPatterns:e,onClickPattern:t,showTitlesAsTooltip:!0}):null}function Df(){const{area:e,name:t,slug:s,postType:n,postId:o}=(0,d.useSelect)((e=>{const{getCurrentPostType:t,getCurrentPostId:s}=e(vc),{getEditedEntityRecord:n}=e(u.store),o=t(),r=s(),i=n("postType",o,r);return{area:i?.area,name:i?.name,slug:i?.slug,postType:o,postId:r}}),[]),{editEntityRecord:r}=(0,d.useDispatch)(u.store),i=function({area:e,name:t,slug:s}){const{blockPatterns:n,restBlockPatterns:o,currentThemeStylesheet:r}=(0,d.useSelect)((e=>{const{getEditorSettings:t}=e(vc),s=t();return{blockPatterns:s.__experimentalAdditionalBlockPatterns??s.__experimentalBlockPatterns,restBlockPatterns:e(u.store).getBlockPatterns(),currentThemeStylesheet:e(u.store).getCurrentTheme().stylesheet}}),[]);return(0,p.useMemo)((()=>Nf(If([...n||[],...o||[]],{area:e,name:t,slug:s}),r)),[e,t,s,n,o,r])}({area:e,name:t,slug:s});return i?.length?(0,c.jsx)(Hn.PanelBody,{title:(0,fs.__)("Design"),initialOpen:n===I,children:(0,c.jsx)(Rf,{availableTemplates:i,onSelect:async e=>{await r("postType",n,o,{blocks:e.blocks,content:(0,x.serialize)(e.blocks)})}})}):null}function Af(){const{postType:e}=(0,d.useSelect)((e=>{const{getCurrentPostType:t}=e(vc);return{postType:t()}}),[]);return[I,B].includes(e)?(0,c.jsx)(Df,{}):null}const Mf={document:"edit-post/document",block:"edit-post/block"},{Tabs:Lf}=$(Hn.privateApis);var Of=(0,p.forwardRef)(((e,t)=>{const{documentLabel:s}=(0,d.useSelect)((e=>{const{getPostTypeLabel:t}=e(vc);return{documentLabel:t()||(0,fs._x)("Document","noun, panel")}}),[]);return(0,c.jsxs)(Lf.TabList,{ref:t,children:[(0,c.jsx)(Lf.Tab,{tabId:Mf.document,"data-tab-id":Mf.document,children:s}),(0,c.jsx)(Lf.Tab,{tabId:Mf.block,"data-tab-id":Mf.block,children:(0,fs.__)("Block")})]})}));const{BlockQuickNavigation:Ff}=$(g.privateApis),Vf=["core/post-title","core/post-featured-image","core/post-content"];function Uf(){const e=(0,p.useMemo)((()=>(0,h.applyFilters)("editor.postContentBlockTypes",Vf)),[]),{clientIds:t,postType:s,renderingMode:n}=(0,d.useSelect)((t=>{const{getCurrentPostType:s,getPostBlocksByName:n,getRenderingMode:o}=$(t(vc)),r=s();return{postType:r,clientIds:n(B===r?"core/template-part":e),renderingMode:o()}}),[e]),{enableComplementaryArea:o}=(0,d.useDispatch)(ja);return"post-only"===n&&s!==B||0===t.length?null:(0,c.jsx)(Hn.PanelBody,{title:(0,fs.__)("Content"),children:(0,c.jsx)(Ff,{clientIds:t,onSelect:()=>{o("core","edit-post/document")}})})}const{BlockQuickNavigation:Hf}=$(g.privateApis);function zf(){const e=(0,d.useSelect)((e=>{const{getBlockTypes:t}=e(x.store);return t()}),[]),t=(0,p.useMemo)((()=>e.filter((e=>"theme"===e.category)).map((({name:e})=>e))),[e]),s=(0,d.useSelect)((e=>{const{getBlocksByName:s}=e(g.store);return s(t)}),[t]);return 0===s.length?null:(0,c.jsx)(Hn.PanelBody,{title:(0,fs.__)("Content"),children:(0,c.jsx)(Hf,{clientIds:s})})}function Gf(){const e=(0,d.useSelect)((e=>{const{getCurrentPostType:t}=e(vc);return t()}),[]);return e!==I?null:(0,c.jsx)(zf,{})}var $f=function(){const{hasBlockSelection:e}=(0,d.useSelect)((e=>({hasBlockSelection:!!e(g.store).getBlockSelectionStart()})),[]),{getActiveComplementaryArea:t}=(0,d.useSelect)(ja),{enableComplementaryArea:s}=(0,d.useDispatch)(ja),{get:n}=(0,d.useSelect)(C.store);(0,p.useEffect)((()=>{const o=t("core"),r=["edit-post/document","edit-post/block"].includes(o),i=n("core","distractionFree");r&&!i&&s("core",e?"edit-post/block":"edit-post/document")}),[e,t,s,n])};const{Tabs:Wf}=$(Hn.privateApis),Zf=p.Platform.select({web:!0,native:!1}),Yf=({tabName:e,keyboardShortcut:t,onActionPerformed:s,extraPanels:n})=>{const o=(0,p.useRef)(null),r=(0,p.useContext)(Wf.Context);return(0,p.useEffect)((()=>{const t=Array.from(o.current?.querySelectorAll('[role="tab"]')||[]),s=t.find((t=>t.getAttribute("data-tab-id")===e)),n=s?.ownerDocument.activeElement;t.some((e=>n&&n.id===e.id))&&s&&s.id!==n?.id&&s?.focus()}),[e]),(0,c.jsx)(Iu,{identifier:e,header:(0,c.jsx)(Wf.Context.Provider,{value:r,children:(0,c.jsx)(Of,{ref:o})}),closeLabel:(0,fs.__)("Close Settings"),className:"editor-sidebar__panel",headerClassName:"editor-sidebar__panel-tabs",title:(0,fs._x)("Settings","panel button label"),toggleShortcut:t,icon:(0,fs.isRTL)()?Yi:qi,isActiveByDefault:Zf,children:(0,c.jsxs)(Wf.Context.Provider,{value:r,children:[(0,c.jsxs)(Wf.TabPanel,{tabId:Mf.document,focusable:!1,children:[(0,c.jsx)(jf,{onActionPerformed:s}),(0,c.jsx)(gu.Slot,{}),(0,c.jsx)(Uf,{}),(0,c.jsx)(Gf,{}),(0,c.jsx)(Af,{}),(0,c.jsx)(mh,{}),(0,c.jsx)(of,{}),n]}),(0,c.jsx)(Wf.TabPanel,{tabId:Mf.block,focusable:!1,children:(0,c.jsx)(g.BlockInspector,{})})]})})};var qf=({extraPanels:e,onActionPerformed:t})=>{$f();const{tabName:s,keyboardShortcut:n,showSummary:o}=(0,d.useSelect)((e=>{const t=e(il.store).getShortcutRepresentation("core/editor/toggle-sidebar"),s=e(ja).getActiveComplementaryArea("core");let n=s;return[Mf.block,Mf.document].includes(s)||(n=e(g.store).getBlockSelectionStart()?Mf.block:Mf.document),{tabName:n,keyboardShortcut:t,showSummary:![B,I,R].includes(e(vc).getCurrentPostType())}}),[]),{enableComplementaryArea:r}=(0,d.useDispatch)(ja),i=(0,p.useCallback)((e=>{e&&r("core",e)}),[r]);return(0,c.jsx)(Wf,{selectedTabId:s,onSelect:i,selectOnMove:!1,children:(0,c.jsx)(Yf,{tabName:s,keyboardShortcut:n,showSummary:o,onActionPerformed:t,extraPanels:e})})},Kf=(0,c.jsx)(L.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,c.jsx)(L.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 Qf="edit-post/collab-history-sidebar",Xf="edit-post/collab-sidebar",Jf=[Qf,Xf];function eb(){}const tb=["#3858E9","#9fB1FF","#1D35B4","#1A1919","#E26F56","#33F078","#FFF972","#7A00DF"];function sb(e){return tb[e%tb.length]}function nb(e,t,s){if(!t)return;const n=e?`[role=treeitem][id="comment-thread-${e}"]`:"[role=treeitem]:not([id])",o=s?`${n} ${s}`:n;return new Promise((e=>{if(t.querySelector(o))return e(t.querySelector(o));let s=null;const n=new window.MutationObserver((()=>{t.querySelector(o)&&(clearTimeout(s),n.disconnect(),e(t.querySelector(o)))}));n.observe(t,{childList:!0,subtree:!0}),s=setTimeout((()=>{n.disconnect(),e(null)}),3e3)})).then((e=>e?.focus()))}var ob=function({avatar:e,name:t,date:s,userId:n}){const o=!!e,r=(0,v.getSettings)(),{currentUserAvatar:i,currentUserName:a,currentUserId:l,dateFormat:p=r.formats.date}=(0,d.useSelect)((e=>{const{canUser:t,getCurrentUser:s,getEntityRecord:n}=e(u.store),r=t("read",{kind:"root",name:"site"})?n("root","site"):void 0;if(o)return{dateFormat:r?.date_format};const{getSettings:i}=e(g.store),{__experimentalDiscussionSettings:a}=i(),l=a?.avatarURL,c=s();return{currentUserAvatar:c?.avatar_urls?.[48]??l,currentUserName:c?.name,currentUserId:c?.id,dateFormat:r?.date_format}}),[o]),m=(0,v.getDate)(s),h=(0,v.dateI18n)("c",m),_=Math.floor((new Date-m)/864e5)<30?(0,v.humanTimeDiff)(m):(0,v.dateI18n)(p,m),f=(0,v.dateI18n)((0,fs._x)("F j, Y g:i a","Note date full date format"),s);return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("img",{src:e||i,className:"editor-collab-sidebar-panel__user-avatar",alt:(0,fs.__)("User avatar"),width:32,height:32,style:{borderColor:sb(n??l)}}),(0,c.jsxs)(Hn.__experimentalVStack,{spacing:"0",children:[(0,c.jsx)("span",{className:"editor-collab-sidebar-panel__user-name",children:t??a}),s&&(0,c.jsx)(Hn.Tooltip,{text:f,children:(0,c.jsx)("time",{dateTime:h,className:"editor-collab-sidebar-panel__user-time",children:_})})]})]})};var rb=function e({onSubmit:t,onCancel:s,thread:n,submitButtonText:o,labelText:r,reflowComments:i=eb}){const[a,l]=(0,p.useState)(n?.content?.raw??""),d=(0,m.useDebounce)(i,100),u=(0,m.useInstanceId)(e,"comment-input"),h=a===n?.content?.raw||!(g=a,g.trim()).length;var g;return(0,c.jsxs)(Hn.__experimentalVStack,{className:"editor-collab-sidebar-panel__comment-form",spacing:"4",as:"form",onSubmit:e=>{e.preventDefault(),t(a),l("")},children:[(0,c.jsx)(Hn.VisuallyHidden,{as:"label",htmlFor:u,children:r??(0,fs.__)("Note")}),(0,c.jsx)(hh.A,{id:u,value:a??"",onChange:e=>{var t;t=e.target.value,l(t),d()},rows:1,maxRows:20,onKeyDown:e=>{ll.isKeyboardEvent.primary(e,"Enter")&&!h&&e.target.parentNode.requestSubmit()}}),(0,c.jsxs)(Hn.__experimentalHStack,{spacing:"2",justify:"flex-end",wrap:!0,children:[(0,c.jsx)(Hn.Button,{size:"compact",variant:"tertiary",onClick:s,children:(0,c.jsx)(Hn.__experimentalTruncate,{children:(0,fs.__)("Cancel")})}),(0,c.jsx)(Hn.Button,{size:"compact",accessibleWhenDisabled:!0,variant:"primary",type:"submit",disabled:h,children:(0,c.jsx)(Hn.__experimentalTruncate,{children:o})})]})]})};Math.min,Math.max,Math.round,Math.floor;function ib(e){return e.split("-")[0]}function ab(e){return e.split("-")[1]}function lb(e){return"y"===e?"height":"width"}function cb(e){return["top","bottom"].includes(ib(e))?"y":"x"}function db(e){return"x"===cb(e)?"y":"x"}function ub(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function pb(e,t,s){let{reference:n,floating:o}=e;const r=cb(t),i=db(t),a=lb(i),l=ib(t),c="y"===r,d=n.x+n.width/2-o.width/2,u=n.y+n.height/2-o.height/2,p=n[a]/2-o[a]/2;let m;switch(l){case"top":m={x:d,y:n.y-o.height};break;case"bottom":m={x:d,y:n.y+n.height};break;case"right":m={x:n.x+n.width,y:u};break;case"left":m={x:n.x-o.width,y:u};break;default:m={x:n.x,y:n.y}}switch(ab(t)){case"start":m[i]-=p*(s&&c?-1:1);break;case"end":m[i]+=p*(s&&c?-1:1)}return m}const mb=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){const{x:s,y:n}=t,o=await async function(e,t){const{placement:s,platform:n,elements:o}=e,r=await(null==n.isRTL?void 0:n.isRTL(o.floating)),i=ib(s),a=ab(s),l="y"===cb(s),c=["left","top"].includes(i)?-1:1,d=r&&l?-1:1,u=(m=e,"function"==typeof(p=t)?p(m):p);var p,m;let{mainAxis:h,crossAxis:g,alignmentAxis:_}="number"==typeof u?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...u};return a&&"number"==typeof _&&(g="end"===a?-1*_:_),l?{x:g*d,y:h*c}:{x:h*c,y:g*d}}(t,e);return{x:s+o.x,y:n+o.y,data:o}}}},hb=Math.min,gb=Math.max,_b=Math.round,fb=Math.floor,bb=e=>({x:e,y:e});function yb(){return"undefined"!=typeof window}function xb(e){return Sb(e)?(e.nodeName||"").toLowerCase():"#document"}function vb(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function wb(e){var t;return null==(t=(Sb(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Sb(e){return!!yb()&&(e instanceof Node||e instanceof vb(e).Node)}function kb(e){return!!yb()&&(e instanceof Element||e instanceof vb(e).Element)}function Cb(e){return!!yb()&&(e instanceof HTMLElement||e instanceof vb(e).HTMLElement)}function Pb(e){return!(!yb()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof vb(e).ShadowRoot)}function jb(e){const{overflow:t,overflowX:s,overflowY:n,display:o}=Rb(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+s)&&!["inline","contents"].includes(o)}function Eb(e){return["table","td","th"].includes(xb(e))}function Tb(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function Bb(e){const t=Ib(),s=kb(e)?Rb(e):e;return["transform","translate","scale","rotate","perspective"].some((e=>!!s[e]&&"none"!==s[e]))||!!s.containerType&&"normal"!==s.containerType||!t&&!!s.backdropFilter&&"none"!==s.backdropFilter||!t&&!!s.filter&&"none"!==s.filter||["transform","translate","scale","rotate","perspective","filter"].some((e=>(s.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(s.contain||"").includes(e)))}function Ib(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Nb(e){return["html","body","#document"].includes(xb(e))}function Rb(e){return vb(e).getComputedStyle(e)}function Db(e){return kb(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ab(e){if("html"===xb(e))return e;const t=e.assignedSlot||e.parentNode||Pb(e)&&e.host||wb(e);return Pb(t)?t.host:t}function Mb(e){const t=Ab(e);return Nb(t)?e.ownerDocument?e.ownerDocument.body:e.body:Cb(t)&&jb(t)?t:Mb(t)}function Lb(e,t,s){var n;void 0===t&&(t=[]),void 0===s&&(s=!0);const o=Mb(e),r=o===(null==(n=e.ownerDocument)?void 0:n.body),i=vb(o);if(r){const e=function(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}(i);return t.concat(i,i.visualViewport||[],jb(o)?o:[],e&&s?Lb(e):[])}return t.concat(o,Lb(o,[],s))}function Ob(e){const t=Rb(e);let s=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=Cb(e),r=o?e.offsetWidth:s,i=o?e.offsetHeight:n,a=_b(s)!==r||_b(n)!==i;return a&&(s=r,n=i),{width:s,height:n,$:a}}function Fb(e){return kb(e)?e:e.contextElement}function Vb(e){const t=Fb(e);if(!Cb(t))return bb(1);const s=t.getBoundingClientRect(),{width:n,height:o,$:r}=Ob(t);let i=(r?_b(s.width):s.width)/n,a=(r?_b(s.height):s.height)/o;return i&&Number.isFinite(i)||(i=1),a&&Number.isFinite(a)||(a=1),{x:i,y:a}}const Ub=bb(0);function Hb(e){const t=vb(e);return Ib()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Ub}function zb(e,t,s,n){void 0===t&&(t=!1),void 0===s&&(s=!1);const o=e.getBoundingClientRect(),r=Fb(e);let i=bb(1);t&&(n?kb(n)&&(i=Vb(n)):i=Vb(e));const a=function(e,t,s){return void 0===t&&(t=!1),!(!s||t&&s!==vb(e))&&t}(r,s,n)?Hb(r):bb(0);let l=(o.left+a.x)/i.x,c=(o.top+a.y)/i.y,d=o.width/i.x,u=o.height/i.y;if(r){const e=vb(r),t=n&&kb(n)?vb(n):n;let s=e,o=s.frameElement;for(;o&&n&&t!==s;){const e=Vb(o),t=o.getBoundingClientRect(),n=Rb(o),r=t.left+(o.clientLeft+parseFloat(n.paddingLeft))*e.x,i=t.top+(o.clientTop+parseFloat(n.paddingTop))*e.y;l*=e.x,c*=e.y,d*=e.x,u*=e.y,l+=r,c+=i,s=vb(o),o=s.frameElement}}return ub({width:d,height:u,x:l,y:c})}const Gb=[":popover-open",":modal"];function $b(e){return Gb.some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function Wb(e){return zb(wb(e)).left+Db(e).scrollLeft}function Zb(e,t,s){let n;if("viewport"===t)n=function(e,t){const s=vb(e),n=wb(e),o=s.visualViewport;let r=n.clientWidth,i=n.clientHeight,a=0,l=0;if(o){r=o.width,i=o.height;const e=Ib();(!e||e&&"fixed"===t)&&(a=o.offsetLeft,l=o.offsetTop)}return{width:r,height:i,x:a,y:l}}(e,s);else if("document"===t)n=function(e){const t=wb(e),s=Db(e),n=e.ownerDocument.body,o=gb(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),r=gb(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let i=-s.scrollLeft+Wb(e);const a=-s.scrollTop;return"rtl"===Rb(n).direction&&(i+=gb(t.clientWidth,n.clientWidth)-o),{width:o,height:r,x:i,y:a}}(wb(e));else if(kb(t))n=function(e,t){const s=zb(e,!0,"fixed"===t),n=s.top+e.clientTop,o=s.left+e.clientLeft,r=Cb(e)?Vb(e):bb(1);return{width:e.clientWidth*r.x,height:e.clientHeight*r.y,x:o*r.x,y:n*r.y}}(t,s);else{const s=Hb(e);n={...t,x:t.x-s.x,y:t.y-s.y}}return ub(n)}function Yb(e,t){const s=Ab(e);return!(s===t||!kb(s)||Nb(s))&&("fixed"===Rb(s).position||Yb(s,t))}function qb(e,t,s){const n=Cb(t),o=wb(t),r="fixed"===s,i=zb(e,!0,r,t);let a={scrollLeft:0,scrollTop:0};const l=bb(0);if(n||!n&&!r)if(("body"!==xb(t)||jb(o))&&(a=Db(t)),n){const e=zb(t,!0,r,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&(l.x=Wb(o));return{x:i.left+a.scrollLeft-l.x,y:i.top+a.scrollTop-l.y,width:i.width,height:i.height}}function Kb(e,t){return Cb(e)&&"fixed"!==Rb(e).position?t?t(e):e.offsetParent:null}function Qb(e,t){const s=vb(e);if(!Cb(e)||$b(e))return s;let n=Kb(e,t);for(;n&&Eb(n)&&"static"===Rb(n).position;)n=Kb(n,t);return n&&("html"===xb(n)||"body"===xb(n)&&"static"===Rb(n).position&&!Bb(n))?s:n||function(e){let t=Ab(e);for(;Cb(t)&&!Nb(t);){if(Bb(t))return t;if(Tb(t))return null;t=Ab(t)}return null}(e)||s}const Xb={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:s,offsetParent:n,strategy:o}=e;const r="fixed"===o,i=wb(n),a=!!t&&$b(t.floating);if(n===i||a&&r)return s;let l={scrollLeft:0,scrollTop:0},c=bb(1);const d=bb(0),u=Cb(n);if((u||!u&&!r)&&(("body"!==xb(n)||jb(i))&&(l=Db(n)),Cb(n))){const e=zb(n);c=Vb(n),d.x=e.x+n.clientLeft,d.y=e.y+n.clientTop}return{width:s.width*c.x,height:s.height*c.y,x:s.x*c.x-l.scrollLeft*c.x+d.x,y:s.y*c.y-l.scrollTop*c.y+d.y}},getDocumentElement:wb,getClippingRect:function(e){let{element:t,boundary:s,rootBoundary:n,strategy:o}=e;const r=[..."clippingAncestors"===s?function(e,t){const s=t.get(e);if(s)return s;let n=Lb(e,[],!1).filter((e=>kb(e)&&"body"!==xb(e))),o=null;const r="fixed"===Rb(e).position;let i=r?Ab(e):e;for(;kb(i)&&!Nb(i);){const t=Rb(i),s=Bb(i);s||"fixed"!==t.position||(o=null),(r?!s&&!o:!s&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||jb(i)&&!s&&Yb(e,i))?n=n.filter((e=>e!==i)):o=t,i=Ab(i)}return t.set(e,n),n}(t,this._c):[].concat(s),n],i=r[0],a=r.reduce(((e,s)=>{const n=Zb(t,s,o);return e.top=gb(n.top,e.top),e.right=hb(n.right,e.right),e.bottom=hb(n.bottom,e.bottom),e.left=gb(n.left,e.left),e}),Zb(t,i,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:Qb,getElementRects:async function(e){const t=this.getOffsetParent||Qb,s=this.getDimensions;return{reference:qb(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,...await s(e.floating)}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:s}=Ob(e);return{width:t,height:s}},getScale:Vb,isElement:kb,isRTL:function(e){return"rtl"===Rb(e).direction}};function Jb(e,t,s,n){void 0===n&&(n={});const{ancestorScroll:o=!0,ancestorResize:r=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:l=!1}=n,c=Fb(e),d=o||r?[...c?Lb(c):[],...Lb(t)]:[];d.forEach((e=>{o&&e.addEventListener("scroll",s,{passive:!0}),r&&e.addEventListener("resize",s)}));const u=c&&a?function(e,t){let s,n=null;const o=wb(e);function r(){var e;clearTimeout(s),null==(e=n)||e.disconnect(),n=null}return function i(a,l){void 0===a&&(a=!1),void 0===l&&(l=1),r();const{left:c,top:d,width:u,height:p}=e.getBoundingClientRect();if(a||t(),!u||!p)return;const m={rootMargin:-fb(d)+"px "+-fb(o.clientWidth-(c+u))+"px "+-fb(o.clientHeight-(d+p))+"px "+-fb(c)+"px",threshold:gb(0,hb(1,l))||1};let h=!0;function g(e){const t=e[0].intersectionRatio;if(t!==l){if(!h)return i();t?i(!1,t):s=setTimeout((()=>{i(!1,1e-7)}),100)}h=!1}try{n=new IntersectionObserver(g,{...m,root:o.ownerDocument})}catch(e){n=new IntersectionObserver(g,m)}n.observe(e)}(!0),r}(c,s):null;let p,m=-1,h=null;i&&(h=new ResizeObserver((e=>{let[n]=e;n&&n.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame((()=>{var e;null==(e=h)||e.observe(t)}))),s()})),c&&!l&&h.observe(c),h.observe(t));let g=l?zb(e):null;return l&&function t(){const n=zb(e);!g||n.x===g.x&&n.y===g.y&&n.width===g.width&&n.height===g.height||s();g=n,p=requestAnimationFrame(t)}(),s(),()=>{var e;d.forEach((e=>{o&&e.removeEventListener("scroll",s),r&&e.removeEventListener("resize",s)})),null==u||u(),null==(e=h)||e.disconnect(),h=null,l&&cancelAnimationFrame(p)}}const ey=(e,t,s)=>{const n=new Map,o={platform:Xb,...s},r={...o.platform,_c:n};return(async(e,t,s)=>{const{placement:n="bottom",strategy:o="absolute",middleware:r=[],platform:i}=s,a=r.filter(Boolean),l=await(null==i.isRTL?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:u}=pb(c,n,l),p=n,m={},h=0;for(let s=0;s<a.length;s++){const{name:r,fn:g}=a[s],{x:_,y:f,data:b,reset:y}=await g({x:d,y:u,initialPlacement:n,placement:p,strategy:o,middlewareData:m,rects:c,platform:i,elements:{reference:e,floating:t}});d=null!=_?_:d,u=null!=f?f:u,m={...m,[r]:{...m[r],...b}},y&&h<=50&&(h++,"object"==typeof y&&(y.placement&&(p=y.placement),y.rects&&(c=!0===y.rects?await i.getElementRects({reference:e,floating:t,strategy:o}):y.rects),({x:d,y:u}=pb(c,p,l))),s=-1)}return{x:d,y:u,placement:p,strategy:o,middlewareData:m}})(e,t,{...o,platform:r})};var ty=s(1609);const sy=window.ReactDOM;var ny="undefined"!=typeof document?ty.useLayoutEffect:ty.useEffect;function oy(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let s,n,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(s=e.length,s!==t.length)return!1;for(n=s;0!=n--;)if(!oy(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),s=o.length,s!==Object.keys(t).length)return!1;for(n=s;0!=n--;)if(!{}.hasOwnProperty.call(t,o[n]))return!1;for(n=s;0!=n--;){const s=o[n];if(("_owner"!==s||!e.$$typeof)&&!oy(e[s],t[s]))return!1}return!0}return e!=e&&t!=t}function ry(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function iy(e,t){const s=ry(e);return Math.round(t*s)/s}function ay(e){const t=ty.useRef(e);return ny((()=>{t.current=e})),t}const{useBlockElementRef:ly,cleanEmptyObject:cy}=$(g.privateApis);function dy({thread:e,calculatedOffset:t,setHeights:s,selectedThread:n,setBlockRef:o,commentLastUpdated:r}){const i=(0,p.useRef)();ly(e.blockClientId,i);const a=(0,p.useCallback)(((e,t)=>{s((s=>s[e]!==t?{...s,[e]:t}:s))}),[s]),{y:l,refs:c}=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:s="absolute",middleware:n=[],platform:o,elements:{reference:r,floating:i}={},transform:a=!0,whileElementsMounted:l,open:c}=e,[d,u]=ty.useState({x:0,y:0,strategy:s,placement:t,middlewareData:{},isPositioned:!1}),[p,m]=ty.useState(n);oy(p,n)||m(n);const[h,g]=ty.useState(null),[_,f]=ty.useState(null),b=ty.useCallback((e=>{e!==w.current&&(w.current=e,g(e))}),[]),y=ty.useCallback((e=>{e!==S.current&&(S.current=e,f(e))}),[]),x=r||h,v=i||_,w=ty.useRef(null),S=ty.useRef(null),k=ty.useRef(d),C=null!=l,P=ay(l),j=ay(o),E=ty.useCallback((()=>{if(!w.current||!S.current)return;const e={placement:t,strategy:s,middleware:p};j.current&&(e.platform=j.current),ey(w.current,S.current,e).then((e=>{const t={...e,isPositioned:!0};T.current&&!oy(k.current,t)&&(k.current=t,sy.flushSync((()=>{u(t)})))}))}),[p,t,s,j]);ny((()=>{!1===c&&k.current.isPositioned&&(k.current.isPositioned=!1,u((e=>({...e,isPositioned:!1}))))}),[c]);const T=ty.useRef(!1);ny((()=>(T.current=!0,()=>{T.current=!1})),[]),ny((()=>{if(x&&(w.current=x),v&&(S.current=v),x&&v){if(P.current)return P.current(x,v,E);E()}}),[x,v,E,P,C]);const B=ty.useMemo((()=>({reference:w,floating:S,setReference:b,setFloating:y})),[b,y]),I=ty.useMemo((()=>({reference:x,floating:v})),[x,v]),N=ty.useMemo((()=>{const e={position:s,left:0,top:0};if(!I.floating)return e;const t=iy(I.floating,d.x),n=iy(I.floating,d.y);return a?{...e,transform:"translate("+t+"px, "+n+"px)",...ry(I.floating)>=1.5&&{willChange:"transform"}}:{position:s,left:t,top:n}}),[s,a,I.floating,d.x,d.y]);return ty.useMemo((()=>({...d,update:E,refs:B,elements:I,floatingStyles:N})),[d,E,B,I,N])}({placement:"right-start",middleware:[mb({crossAxis:t||-16})],whileElementsMounted:Jb});return(0,p.useEffect)((()=>{i.current&&c.setReference(i.current)}),[i,c,r]),(0,p.useEffect)((()=>{c.floating?.current&&o(e.id,i.current)}),[e.id,c.floating,o]),(0,p.useEffect)((()=>{if(c.floating?.current){const t=c.floating.current.scrollHeight;a(e.id,t)}}),[e.id,a,c.floating,n,r]),{blockRef:i,y:l,refs:c}}const{useBlockElement:uy}=$(g.privateApis);function py({onSubmit:e,newNoteFormState:t,setNewNoteFormState:s,commentSidebarRef:n,reflowComments:o=eb,isFloating:r=!1,y:i,refs:a}){const{clientId:l}=(0,d.useSelect)((e=>{const{getSelectedBlockClientId:t}=e(g.store);return{clientId:t()}}),[]),u=uy(l),{toggleBlockSpotlight:p}=$((0,d.useDispatch)(g.store));return"open"===t&&l?(0,c.jsxs)(Hn.__experimentalVStack,{className:mr("editor-collab-sidebar-panel__thread is-selected",{"is-floating":r}),spacing:"3",tabIndex:0,"aria-label":(0,fs.__)("New note"),role:"treeitem",ref:r?a.setFloating:void 0,style:r?{top:i,opacity:i?void 0:0}:void 0,onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||(p(l,!1),s("closed"))},children:[(0,c.jsx)(Hn.__experimentalHStack,{alignment:"left",spacing:"3",children:(0,c.jsx)(ob,{})}),(0,c.jsx)(rb,{onSubmit:async t=>{const{id:o}=await e({content:t});nb(o,n.current),s("creating")},onCancel:()=>{s("closed"),u?.focus(),p(l,!1)},reflowComments:o,submitButtonText:(0,fs.__)("Add note"),labelText:(0,fs.__)("New note")})]}):null}const{useBlockElement:my}=$(g.privateApis),{Menu:hy}=$(Hn.privateApis);function gy({threads:e,onEditComment:t,onAddReply:s,onCommentDelete:n,newNoteFormState:o,setNewNoteFormState:r,commentSidebarRef:i,reflowComments:a,isFloating:l=!1,commentLastUpdated:u}){const[m,h]=(0,p.useState)({}),[_,f]=(0,p.useState)(null),[b,y]=(0,p.useState)({}),[x,v]=(0,p.useState)({}),{setCanvasMinHeight:w}=$((0,d.useDispatch)(vc)),{selectBlock:S,toggleBlockSpotlight:k}=$((0,d.useDispatch)(g.store)),{blockCommentId:C,selectedBlockClientId:P,orderedBlockIds:j}=(0,d.useSelect)((e=>{const{getBlockAttributes:t,getSelectedBlockClientId:s,getClientIdsWithDescendants:n}=e(g.store),o=s();return{blockCommentId:o?t(o)?.metadata?.noteId:null,selectedBlockClientId:o,orderedBlockIds:n()}}),[]),E=my(P),T=(0,p.useMemo)((()=>{const t=[...e],s=[];if(l&&"open"===o){const e={id:"new-note-thread",blockClientId:P,content:{rendered:""}};return j.forEach((n=>{if(n===P)s.push(e);else{const e=t.find((e=>e.blockClientId===n));e&&s.push(e)}})),s}return t}),[e,l,o,P,j]),B=async e=>{const t=T.findIndex((t=>t.id===e.id)),s=T[t+1],o=T[t-1];if(await n(e),0!==e.parent)return f(e.parent),void nb(e.parent,i.current);s?(f(s.id),nb(s.id,i.current)):o?(f(o.id),nb(o.id,i.current)):(f(null),r("closed"),E?.focus())};(0,p.useEffect)((()=>{f("open"===o?"new-note-thread":C)}),[C,o]);const I=(0,p.useCallback)(((e,t)=>{v((s=>({...s,[e]:t})))}),[]);(0,p.useEffect)((()=>{const{offsets:e,minHeight:t}=(()=>{const e={};if(!l)return{offsets:e,minHeight:0};const t=T.findIndex((e=>e.id===_)),s=-1===t?0:t,n=T[s];if(!n||!x[n.id])return{offsets:e,minHeight:0};let o=x[n.id],r=o?.getBoundingClientRect();const i=r?.top||0,a=m[n.id]||0;e[n.id]=-16;let c={threadTop:i-16,threadHeight:a};for(let t=s+1;t<T.length;t++){const s=T[t];if(!x[s.id])continue;o=x[s.id],r=o?.getBoundingClientRect();const n=r?.top||0,i=m[s.id]||0;let a=-16;const l=c.threadTop+c.threadHeight;n<l+16&&(a=l-n+20),e[s.id]=a,c={threadTop:n+a,threadHeight:i}}let d={threadTop:i-16};for(let s=t-1;s>=0;s--){const t=T[s];if(!x[t.id])continue;o=x[t.id],r=o?.getBoundingClientRect();const n=r?.top||0,i=m[t.id]||0;let a=-16;n+i>d.threadTop&&(a=d.threadTop-n-i-20),e[t.id]=a,d={threadTop:n+a}}let u=0;const p=T[T.length-1];if(x[p.id]){const t=x[p.id],s=t?.getBoundingClientRect();u=(s?.top||0)+(m[p.id]||0)+(e[p.id]||0)+32}return{offsets:e,minHeight:u}})();Object.keys(e).length>0&&y(e),w(t)}),[m,x,l,T,_,w]);return Array.isArray(T)&&T.length>0||l?(0,c.jsxs)(c.Fragment,{children:[!l&&"open"===o&&(0,c.jsx)(py,{onSubmit:s,newNoteFormState:o,setNewNoteFormState:r,commentSidebarRef:i}),T.map((e=>(0,c.jsx)(_y,{thread:e,onAddReply:s,onCommentDelete:B,onEditComment:t,isSelected:_===e.id,setSelectedThread:f,setNewNoteFormState:r,commentSidebarRef:i,reflowComments:a,isFloating:l,calculatedOffset:b[e.id]??0,setHeights:h,setBlockRef:I,selectedThread:_,commentLastUpdated:u,newNoteFormState:o,onKeyDown:t=>((e,t,s)=>{if(e.defaultPrevented)return;const n=T.findIndex((e=>e.id===t.id));"Enter"!==e.key&&"ArrowRight"!==e.key||e.currentTarget!==e.target||s?("Enter"===e.key||"ArrowLeft"===e.key)&&e.currentTarget===e.target&&s||"Escape"===e.key?(f(null),r("closed"),t.blockClientId&&k(t.blockClientId,!1),nb(t.id,i.current)):"ArrowDown"===e.key&&n<T.length-1&&e.currentTarget===e.target?nb(T[n+1].id,i.current):"ArrowUp"===e.key&&n>0&&e.currentTarget===e.target?nb(T[n-1].id,i.current):"Home"===e.key&&e.currentTarget===e.target?nb(T[0].id,i.current):"End"===e.key&&e.currentTarget===e.target&&nb(T[T.length-1].id,i.current):(r("closed"),f(t.id),t.blockClientId&&(S(t.blockClientId,null),k(t.blockClientId,!0)))})(t,e,_===e.id)},e.id)))]}):(0,c.jsx)(py,{onSubmit:s,newNoteFormState:o,setNewNoteFormState:r,commentSidebarRef:i})}function _y({thread:e,onEditComment:t,onAddReply:s,onCommentDelete:n,isSelected:o,setNewNoteFormState:r,commentSidebarRef:i,reflowComments:a,isFloating:l,calculatedOffset:u,setHeights:h,setBlockRef:_,setSelectedThread:f,selectedThread:b,commentLastUpdated:y,newNoteFormState:x,onKeyDown:v}){const{toggleBlockHighlight:w,selectBlock:S,toggleBlockSpotlight:k}=$((0,d.useDispatch)(g.store)),C=my(e.blockClientId),P=(0,m.useDebounce)(w,50),{y:j,refs:E}=dy({thread:e,calculatedOffset:u,setHeights:h,setBlockRef:_,selectedThread:b,commentLastUpdated:y}),T=(0,p.useRef)(!1),B=()=>{f(null),r("closed"),k(e.blockClientId,!1)},I=e?.reply||[],N=I.length>0?I[I.length-1]:void 0,R=I.length>0?I.slice(0,-1):[],D=function(e,t=10){if(!e)return"";const s=(0,fs._x)("words","Word count type. Do not translate!"),n=e.trim();let o="";if("words"===s)o=n.split(" ",t).join(" ");else if("characters_excluding_spaces"===s){const e=n.split("",t).join(""),s=e.length-e.replaceAll(" ","").length;o=n.split("",t+s).join("")}else"characters_including_spaces"===s&&(o=n.split("",t).join(""));return o!==n?o+"…":o}((0,Uc.__unstableStripHTML)(e.content?.rendered),10),A=e.blockClientId?(0,fs.sprintf)((0,fs.__)("Note: %s"),D):(0,fs.sprintf)((0,fs.__)("Original block deleted. Note: %s"),D);return"new-note-thread"===e.id&&"open"===x&&l?(0,c.jsx)(py,{onSubmit:s,newNoteFormState:x,setNewNoteFormState:r,commentSidebarRef:i,reflowComments:a,isFloating:l,y:j,refs:E}):(0,c.jsxs)(Hn.__experimentalVStack,{className:mr("editor-collab-sidebar-panel__thread",{"is-selected":o,"is-floating":l}),id:`comment-thread-${e.id}`,spacing:"3",onClick:()=>{r("closed"),f(e.id),k(e.blockClientId,!0),e.blockClientId&&S(e.blockClientId,null)},onMouseEnter:()=>{P(e.blockClientId,!0)},onMouseLeave:()=>{P(e.blockClientId,!1)},onFocus:()=>{w(e.blockClientId,!0)},onBlur:t=>{const s=t.relatedTarget?.closest(".editor-collab-sidebar-panel__thread"),n=t.relatedTarget?.closest('[role="dialog"]'),o=T.current;s&&!o||n||o&&t.currentTarget.contains(t.relatedTarget)||(w(e.blockClientId,!1),B())},onKeyUp:e=>{"Tab"===e.key&&(T.current=!1)},onKeyDown:e=>{"Tab"===e.key?T.current=!0:v(e)},tabIndex:0,role:"treeitem","aria-label":A,"aria-expanded":o,ref:l?E.setFloating:void 0,style:l?{top:j}:void 0,children:[(0,c.jsx)(Hn.Button,{className:"editor-collab-sidebar-panel__skip-to-comment",variant:"secondary",size:"compact",onClick:()=>{nb(e.id,i.current,"textarea")},children:(0,fs.__)("Add new reply")}),!e.blockClientId&&(0,c.jsx)(Hn.__experimentalText,{as:"p",weight:500,variant:"muted",children:(0,fs.__)("Original block deleted.")}),(0,c.jsx)(fy,{thread:e,isExpanded:o,onEdit:(s={})=>{t(s),"approved"===s.status&&(B(),l?C?.focus():nb(e.id,i.current))},onDelete:n,reflowComments:a}),o&&I.map((s=>(0,c.jsx)(fy,{thread:s,parent:e,isExpanded:o,onEdit:t,onDelete:n,reflowComments:a},s.id))),!o&&R.length>0&&(0,c.jsx)(Hn.__experimentalHStack,{className:"editor-collab-sidebar-panel__more-reply-separator",children:(0,c.jsx)(Hn.Button,{size:"compact",variant:"tertiary",className:"editor-collab-sidebar-panel__more-reply-button",onClick:()=>{f(e.id),nb(e.id,i.current)},children:(0,fs.sprintf)((0,fs._n)("%s more reply","%s more replies",R.length),R.length)})}),!o&&N&&(0,c.jsx)(fy,{thread:N,parent:e,isExpanded:o,onEdit:t,onDelete:n,reflowComments:a}),o&&(0,c.jsxs)(Hn.__experimentalVStack,{spacing:"2",role:"treeitem",children:[(0,c.jsx)(Hn.__experimentalHStack,{alignment:"left",spacing:"3",justify:"flex-start",children:(0,c.jsx)(ob,{})}),(0,c.jsx)(Hn.__experimentalVStack,{spacing:"2",children:(0,c.jsx)(rb,{onSubmit:n=>{"approved"===e.status?t({id:e.id,status:"hold",content:n}):s({content:n,parent:e.id})},onCancel:t=>{t.stopPropagation(),B(),nb(e.id,i.current)},submitButtonText:"approved"===e.status?(0,fs.__)("Reopen & Reply"):(0,fs.__)("Reply"),rows:"approved"===e.status?2:4,labelText:(0,fs.sprintf)((0,fs.__)("Reply to note %1$s by %2$s"),e.id,e.author_name),reflowComments:a})})]}),!!e.blockClientId&&(0,c.jsx)(Hn.Button,{className:"editor-collab-sidebar-panel__skip-to-block",variant:"secondary",size:"compact",onClick:e=>{e.stopPropagation(),C?.focus()},children:(0,fs.__)("Back to block")})]})}const fy=({thread:e,parent:t,isExpanded:s,onEdit:n,onDelete:o,reflowComments:r})=>{const[i,a]=(0,p.useState)(!1),[l,d]=(0,p.useState)(!1),u=(0,p.useRef)(null),m=()=>{a(!1),d(!1),u.current?.focus()},h="note"===e.type&&e.meta&&("resolved"===e.meta._wp_note_status||"reopen"===e.meta._wp_note_status),g=[{id:"edit",title:(0,fs.__)("Edit"),isEligible:({status:e})=>"approved"!==e,onClick:()=>{a("edit")}},{id:"reopen",title:(0,fs._x)("Reopen","Reopen note"),isEligible:({status:e})=>"approved"===e,onClick:()=>{n({id:e.id,status:"hold"})}},{id:"delete",title:(0,fs.__)("Delete"),isEligible:()=>!0,onClick:()=>{a("delete"),d(!0)}}],_=0===e.parent,f="approved"!==t?.status?g.filter((t=>t.isEligible(e))):[],b=0===e.parent?(0,fs.__)("Are you sure you want to delete this note? This will also delete all of this note's replies."):(0,fs.__)("Are you sure you want to delete this reply?");return(0,c.jsxs)(Hn.__experimentalVStack,{spacing:"2",role:0!==e.parent?"treeitem":void 0,children:[(0,c.jsxs)(Hn.__experimentalHStack,{alignment:"left",spacing:"3",justify:"flex-start",children:[(0,c.jsx)(ob,{avatar:e?.author_avatar_urls?.[48],name:e?.author_name,date:e?.date,userId:e?.author}),s&&(0,c.jsx)(Hn.FlexItem,{className:"editor-collab-sidebar-panel__comment-status",onClick:e=>{e.stopPropagation()},children:(0,c.jsxs)(Hn.__experimentalHStack,{spacing:"0",children:[_&&(0,c.jsx)(Hn.Button,{label:(0,fs._x)("Resolve","Mark note as resolved"),size:"small",icon:wr,disabled:"approved"===e.status,accessibleWhenDisabled:"approved"===e.status,onClick:()=>{n({id:e.id,status:"approved"})}}),(0,c.jsxs)(hy,{placement:"bottom-end",children:[(0,c.jsx)(hy.TriggerButton,{render:(0,c.jsx)(Hn.Button,{ref:u,size:"small",icon:r_,label:(0,fs.__)("Actions"),disabled:!f.length,accessibleWhenDisabled:!0})}),(0,c.jsx)(hy.Popover,{modal:!1,children:f.map((e=>(0,c.jsx)(hy.Item,{onClick:()=>e.onClick(),children:(0,c.jsx)(hy.ItemLabel,{children:e.title})},e.id)))})]})]})})]}),"edit"===i?(0,c.jsx)(rb,{onSubmit:t=>{n({id:e.id,content:t}),a(!1),u.current?.focus()},onCancel:()=>m(),thread:e,submitButtonText:(0,fs._x)("Update","verb"),labelText:(0,fs.sprintf)((0,fs.__)("Edit note %1$s by %2$s"),e.id,e.author_name),reflowComments:r}):(0,c.jsx)(p.RawHTML,{className:mr("editor-collab-sidebar-panel__user-comment",{"editor-collab-sidebar-panel__resolution-text":h}),children:h?(()=>{const t="resolved"===e.meta._wp_note_status?(0,fs.__)("Marked as resolved"):(0,fs.__)("Reopened"),s=e?.content?.raw;return s&&"string"==typeof s&&""!==s.trim()?(0,fs.sprintf)((0,fs.__)("%1$s: %2$s"),t,s):t})():e?.content?.rendered}),"delete"===i&&(0,c.jsx)(Hn.__experimentalConfirmDialog,{isOpen:l,onConfirm:()=>{o(e),a(!1),d(!1)},onCancel:m,confirmButtonText:(0,fs.__)("Delete"),children:b})]})};const{CommentIconSlotFill:by}=$(g.privateApis),yy=({clientId:e,onClick:t,isDistractionFree:s})=>{const n=(0,d.useSelect)((t=>t(g.store).getBlock(e)),[e]);if(!n?.isValid||n?.name===(0,x.getUnregisteredTypeHandlerName)())return null;const o=s||"core/freeform"===n?.name;let r;return s?r=(0,fs.__)("Notes are disabled in distraction free mode."):"core/freeform"===n?.name&&(r=(0,fs.__)("Convert to blocks to add notes.")),(0,c.jsx)(Hn.MenuItem,{icon:Kf,onClick:t,"aria-haspopup":"dialog",disabled:o,info:r,children:(0,fs.__)("Add note")})};var xy=({onClick:e,isDistractionFree:t})=>(0,c.jsx)(by.Fill,{children:({clientId:s,onClose:n})=>(0,c.jsx)(yy,{clientId:s,isDistractionFree:t,onClick:()=>{e(),n()}})});const{CommentIconToolbarSlotFill:vy}=$(g.privateApis);var wy=({onClick:e,thread:t})=>{const s=(0,p.useMemo)((()=>{if(!t)return[];const e=new Map,s=[t,...t.reply];return s.sort(((e,t)=>new Date(e.date)-new Date(t.date))),s.forEach((t=>{t.author_name&&t.author_avatar_urls&&(e.has(t.author)||e.set(t.author,{name:t.author_name,avatar:t.author_avatar_urls?.[48]||t.author_avatar_urls?.[96],id:t.author,date:t.date}))})),Array.from(e.values())}),[t]);if(!s.length)return null;const n=s.length>3?s.slice(0,2):s,o=Math.max(0,s.length-n.length),r=s.length>100&&o>0?(0,fs.__)("100+"):(0,fs.sprintf)((0,fs.__)("+%s"),o);return(0,c.jsx)(vy.Fill,{children:(0,c.jsx)(Hn.ToolbarButton,{className:"comment-avatar-indicator",label:(0,fs.__)("View notes"),onClick:e,showTooltip:!0,children:(0,c.jsxs)(Hn.__experimentalHStack,{spacing:"1",children:[n.map((e=>(0,c.jsx)("img",{src:e.avatar,alt:e.name,className:"comment-avatar",style:{borderColor:sb(e.id)}},e.id))),o>0&&(0,c.jsx)(Hn.__experimentalText,{weight:500,children:r})]})})})};function Sy({newNoteFormState:e,setNewNoteFormState:t,styles:s,comments:n,commentSidebarRef:o,reflowComments:r,commentLastUpdated:i,isFloating:a=!1}){const{onCreate:l,onEdit:p,onDelete:m}=function(e=eb){const{createNotice:t}=(0,d.useDispatch)(_s.store),{saveEntityRecord:s,deleteEntityRecord:n}=(0,d.useDispatch)(u.store),{getCurrentPostId:o}=(0,d.useSelect)(vc),{getBlockAttributes:r,getSelectedBlockClientId:i}=(0,d.useSelect)(g.store),{updateBlockAttributes:a}=(0,d.useDispatch)(g.store),l=e=>{const s=e.message&&"unknown_error"!==e.code?(0,Ln.decodeEntities)(e.message):(0,fs.__)("An error occurred while performing an update.");t("error",s,{type:"snackbar",isDismissible:!0})};return{onCreate:async({content:n,parent:c})=>{try{const l=await s("root","comment",{post:o(),content:n,status:"hold",type:"note",parent:c||0},{throwOnError:!0});if(!c&&l?.id){const e=i(),t=r(e)?.metadata;a(e,{metadata:{...t,noteId:l.id}})}return t("snackbar",c?(0,fs.__)("Reply added."):(0,fs.__)("Note added."),{type:"snackbar",isDismissible:!0}),setTimeout(e,300),l}catch(t){e(),l(t)}},onEdit:async({id:n,content:r,status:i})=>{const a=i||"updated",c={approved:(0,fs.__)("Note marked as resolved."),hold:(0,fs.__)("Note reopened."),updated:(0,fs.__)("Note updated.")};try{if("approved"===i||"hold"===i){await s("root","comment",{id:n,status:i},{throwOnError:!0});const e={post:o(),content:r||"",type:"note",status:i,parent:n,meta:{_wp_note_status:"approved"===i?"resolved":"reopen"}};await s("root","comment",e,{throwOnError:!0})}else{const e={id:n,content:r,status:i};await s("root","comment",e,{throwOnError:!0})}t("snackbar",c[a]??(0,fs.__)("Note updated."),{type:"snackbar",isDismissible:!0}),e()}catch(t){e(),l(t)}},onDelete:async s=>{try{if(await n("root","comment",s.id,void 0,{throwOnError:!0}),!s.parent){const e=i(),t=r(e)?.metadata;a(e,{metadata:cy({...t,noteId:void 0})})}t("snackbar",(0,fs.__)("Note deleted."),{type:"snackbar",isDismissible:!0}),e()}catch(t){e(),l(t)}}}}(r);return(0,c.jsx)(Hn.__experimentalVStack,{className:"editor-collab-sidebar-panel",style:s,role:"tree",spacing:"3",justify:"flex-start",ref:e=>{e&&(o.current=e)},"aria-label":a?(0,fs.__)("Unresolved notes"):(0,fs.__)("All notes"),children:(0,c.jsx)(gy,{threads:n,onEditComment:p,onAddReply:l,onCommentDelete:m,newNoteFormState:e,setNewNoteFormState:t,commentSidebarRef:o,reflowComments:r,commentLastUpdated:i,isFloating:a})})}function ky({postId:e,mode:t}){const[s,n]=(0,p.useState)("closed"),{getActiveComplementaryArea:o}=(0,d.useSelect)(ja),{enableComplementaryArea:r}=(0,d.useDispatch)(ja),{toggleBlockSpotlight:i}=$((0,d.useDispatch)(g.store)),a=(0,m.useViewportMatch)("medium"),l=(0,p.useRef)(null),h=a&&"post-only"===t,{clientId:_,blockCommentId:f,isDistractionFree:b}=(0,d.useSelect)((e=>{const{getBlockAttributes:t,getSelectedBlockClientId:s,getSettings:n}=e(g.store),o=s();return{clientId:o,blockCommentId:o?t(o)?.metadata?.noteId:null,isDistractionFree:n().isDistractionFree}}),[]),{resultComments:y,unresolvedSortedThreads:x,reflowComments:v,commentLastUpdated:w}=function(e){const[t,s]=(0,p.useReducer)((()=>Date.now()),0),n={post:e,type:"note",status:"all",per_page:-1},{records:o}=(0,u.useEntityRecords)("root","comment",n,{enabled:!!e&&"number"==typeof e}),{getBlockAttributes:r}=(0,d.useSelect)(g.store),{clientIds:i}=(0,d.useSelect)((e=>{const{getClientIdsWithDescendants:t}=e(g.store);return{clientIds:t()}}),[]),{resultComments:a,unresolvedSortedThreads:l}=(0,p.useMemo)((()=>{if(!o||0===o.length)return{resultComments:[],unresolvedSortedThreads:[]};const e=i.reduce(((e,t)=>{const s=r(t)?.metadata?.noteId;return s&&(e[t]=s),e}),{}),t={},s=[];if(o.forEach((s=>{const n=Object.keys(e).find((t=>e[t]===s.id));t[s.id]={...s,reply:[],blockClientId:0===s.parent?n:null}})),o.forEach((e=>{0===e.parent?s.push(t[e.id]):t[e.parent]&&t[e.parent].reply.push(t[e.id])})),0===s?.length)return{resultComments:[],unresolvedSortedThreads:[]};const n=s.map((e=>({...e,reply:[...e.reply].reverse()}))),a=new Map(n.map((e=>[String(e.id),e]))),l=new Set(Object.values(e).map((e=>String(e)))),c=Object.values(e).map((e=>a.get(String(e)))).filter((e=>void 0!==e&&"hold"===e.status)),d=Object.values(e).map((e=>a.get(String(e)))).filter((e=>void 0!==e&&"approved"===e.status)),u=n.filter((e=>!l.has(String(e.id))));return{resultComments:[...c,...d,...u],unresolvedSortedThreads:c}}),[i,o,r]);return{resultComments:a,unresolvedSortedThreads:l,reflowComments:s,commentLastUpdated:t}}(e);!function(e=!1){const t=(0,d.useRegistry)();(0,p.useEffect)((()=>{if(!e)return;const{getActiveComplementaryArea:s}=t.select(ja),{disableComplementaryArea:n,enableComplementaryArea:o}=t.dispatch(ja),r=t.subscribe((()=>{null===s("core")&&o("core",Xf)}));return()=>{r(),s("core")===Xf&&n("core",Xf)}}),[e,t])}(h&&(x.length>0||"closed"!==s));const{merged:S}=Ti(),k=S?.styles?.color?.background,C=f?y.find((e=>e.id===f)):null,P=y.length>0||!h;async function j(){const e=await o("core"),t=Jf.find((t=>t===e));"approved"===C?.status?r("core",Qf):t&&P||r("core",h?Xf:Qf);const s=await o("core");Jf.includes(s)&&(n(C?"closed":"open"),nb(C?.id,l.current,C?void 0:"textarea"),i(_,!0))}return b?(0,c.jsx)(xy,{isDistractionFree:!0}):(0,c.jsxs)(c.Fragment,{children:[!!C&&(0,c.jsx)(wy,{thread:C,onClick:j}),(0,c.jsx)(xy,{onClick:j}),P&&(0,c.jsx)(Iu,{identifier:Qf,name:Qf,title:(0,fs.__)("All notes"),header:(0,c.jsx)("h2",{className:"interface-complementary-area-header__title",children:(0,fs.__)("All notes")}),icon:Kf,closeLabel:(0,fs.__)("Close Notes"),children:(0,c.jsx)(Sy,{comments:y,newNoteFormState:s,setNewNoteFormState:n,commentSidebarRef:l,reflowComments:v,commentLastUpdated:w})}),a&&(0,c.jsx)(Iu,{isPinnable:!1,header:!1,identifier:Xf,className:"editor-collab-sidebar",headerClassName:"editor-collab-sidebar__header",backgroundColor:k,children:(0,c.jsx)(Sy,{comments:x,newNoteFormState:s,setNewNoteFormState:n,commentSidebarRef:l,reflowComments:v,commentLastUpdated:w,styles:{backgroundColor:k},isFloating:!0})})]})}function Cy(){const{postId:e,mode:t,editorMode:s}=(0,d.useSelect)((e=>{const{getCurrentPostId:t,getRenderingMode:s,getEditorMode:n}=e(vc);return{postId:t(),mode:s(),editorMode:n()}}),[]);return e&&"number"==typeof e?"text"===s?null:(0,c.jsx)(Bd,{supportKeys:"editor.notes",children:(0,c.jsx)(ky,{postId:e,mode:t})}):null}var Py=function({postType:e,postId:t,templateId:s,settings:n,children:o,initialEdits:r,onActionPerformed:i,extraContent:a,extraSidebarPanels:l,...p}){const{post:m,template:h,hasLoadedPost:g,error:_}=(0,d.useSelect)((n=>{const{getEntityRecord:o,getResolutionError:r,hasFinishedResolution:i}=n(u.store),a=["postType",e,t];return{post:o(...a),template:s?o("postType",B,s):void 0,hasLoadedPost:i("getEntityRecord",a),error:r("getEntityRecord",a)?.message}}),[e,t,s]);return(0,c.jsxs)(c.Fragment,{children:[g&&!m&&(0,c.jsx)(Hn.Notice,{status:_?"error":"warning",isDismissible:!1,children:_||(0,fs.__)("You attempted to edit an item that doesn't exist. Perhaps it was deleted?")}),!!m&&(0,c.jsxs)(Rl,{post:m,__unstableTemplate:h,settings:n,initialEdits:r,useSubRegistry:!1,children:[(0,c.jsx)(sf,{...p,children:a}),o,(0,c.jsx)(qf,{onActionPerformed:i,extraPanels:l}),(0,c.jsx)(Cy,{})]})]})};const{PreferenceBaseOption:jy}=$(C.privateApis);function Ey(e){const t=(0,d.useSelect)((e=>e(vc).isPublishSidebarEnabled()),[]),{enablePublishSidebar:s,disablePublishSidebar:n}=(0,d.useDispatch)(vc);return(0,c.jsx)(jy,{isChecked:t,onChange:e=>e?s():n(),...e})}const{BlockManager:Ty}=$(g.privateApis),By=[];function Iy(){const{showBlockTypes:e,hideBlockTypes:t}=$((0,d.useDispatch)(vc)),{blockTypes:s,allowedBlockTypes:n,hiddenBlockTypes:o}=(0,d.useSelect)((e=>({blockTypes:e(x.store).getBlockTypes(),allowedBlockTypes:e(vc).getEditorSettings().allowedBlockTypes,hiddenBlockTypes:e(C.store).get("core","hiddenBlockTypes")??By})),[]),r=(0,p.useMemo)((()=>!0===n?s:s.filter((({name:e})=>n?.includes(e)))),[n,s]).filter((e=>(0,x.hasBlockSupport)(e,"inserter",!0)&&(!e.parent||e.parent.includes("core/post-content")))),i=o.filter((e=>r.some((t=>t.name===e)))),a=r.filter((e=>!i.includes(e.name))),l=r.length-a.length;const u=s=>{if(a.length>s.length){const e=a.filter((e=>!s.find((({name:t})=>t===e.name))));t(e.map((({name:e})=>e)))}else if(a.length<s.length){const t=s.filter((e=>!a.find((({name:t})=>t===e.name))));e(t.map((({name:e})=>e)))}};return(0,c.jsxs)("div",{className:"editor-block-visibility",children:[!!l&&(0,c.jsxs)("div",{className:"editor-block-visibility__disabled-blocks-count",children:[(0,fs.sprintf)((0,fs._n)("%d block is hidden.","%d blocks are hidden.",l),l),(0,c.jsx)(Hn.Button,{__next40pxDefaultSize:!0,variant:"link",onClick:function(){u(r)},children:(0,fs.__)("Reset")})]}),(0,c.jsx)(Ty,{blockTypes:r,selectedBlockTypes:a,onChange:u,showSelectAll:!1})]})}const{PreferencesModal:Ny,PreferencesModalTabs:Ry,PreferencesModalSection:Dy,PreferenceToggleControl:Ay}=$(C.privateApis);function My({extraSections:e={}}){const t=(0,m.useViewportMatch)("medium"),s=(0,d.useSelect)((e=>{const{getEditorSettings:s}=e(vc),{get:n}=e(C.store),o=s().richEditingEnabled;return!n("core","distractionFree")&&t&&o}),[t]),{setIsListViewOpened:n,setIsInserterOpened:o}=(0,d.useDispatch)(vc),{set:r}=(0,d.useDispatch)(C.store),i=(0,p.useMemo)((()=>[{name:"general",tabLabel:(0,fs.__)("General"),content:(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)(Dy,{title:(0,fs.__)("Interface"),children:[(0,c.jsx)(Ay,{scope:"core",featureName:"showListViewByDefault",help:(0,fs.__)("Opens the List View panel by default."),label:(0,fs.__)("Always open List View")}),s&&(0,c.jsx)(Ay,{scope:"core",featureName:"showBlockBreadcrumbs",help:(0,fs.__)("Display the block hierarchy trail at the bottom of the editor."),label:(0,fs.__)("Show block breadcrumbs")}),(0,c.jsx)(Ay,{scope:"core",featureName:"allowRightClickOverrides",help:(0,fs.__)("Allows contextual List View menus via right-click, overriding browser defaults."),label:(0,fs.__)("Allow right-click contextual menus")}),(0,c.jsx)(Ay,{scope:"core",featureName:"enableChoosePatternModal",help:(0,fs.__)("Pick from starter content when creating a new page."),label:(0,fs.__)("Show starter patterns")})]}),(0,c.jsxs)(Dy,{title:(0,fs.__)("Document settings"),description:(0,fs.__)("Select what settings are shown in the document panel."),children:[(0,c.jsx)(uu.Slot,{}),(0,c.jsx)(dh,{taxonomyWrapper:(e,t)=>(0,c.jsx)(au,{label:t.labels.menu_name,panelName:`taxonomy-panel-${t.slug}`})}),(0,c.jsx)(gp,{children:(0,c.jsx)(au,{label:(0,fs.__)("Featured image"),panelName:"featured-image"})}),(0,c.jsx)(op,{children:(0,c.jsx)(au,{label:(0,fs.__)("Excerpt"),panelName:"post-excerpt"})}),(0,c.jsx)(Bd,{supportKeys:["comments","trackbacks"],children:(0,c.jsx)(au,{label:(0,fs.__)("Discussion"),panelName:"discussion-panel"})}),(0,c.jsx)(Td,{children:(0,c.jsx)(au,{label:(0,fs.__)("Page attributes"),panelName:"page-attributes"})})]}),t&&(0,c.jsx)(Dy,{title:(0,fs.__)("Publishing"),children:(0,c.jsx)(Ey,{help:(0,fs.__)("Review settings, such as visibility and tags."),label:(0,fs.__)("Enable pre-publish checks")})}),e?.general]})},{name:"appearance",tabLabel:(0,fs.__)("Appearance"),content:(0,c.jsxs)(Dy,{title:(0,fs.__)("Appearance"),description:(0,fs.__)("Customize the editor interface to suit your needs."),children:[(0,c.jsx)(Ay,{scope:"core",featureName:"fixedToolbar",onToggle:()=>r("core","distractionFree",!1),help:(0,fs.__)("Access all block and document tools in a single place."),label:(0,fs.__)("Top toolbar")}),(0,c.jsx)(Ay,{scope:"core",featureName:"distractionFree",onToggle:()=>{r("core","fixedToolbar",!0),o(!1),n(!1)},help:(0,fs.__)("Reduce visual distractions by hiding the toolbar and other elements to focus on writing."),label:(0,fs.__)("Distraction free")}),(0,c.jsx)(Ay,{scope:"core",featureName:"focusMode",help:(0,fs.__)("Highlights the current block and fades other content."),label:(0,fs.__)("Spotlight mode")}),e?.appearance]})},{name:"accessibility",tabLabel:(0,fs.__)("Accessibility"),content:(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(Dy,{title:(0,fs.__)("Navigation"),description:(0,fs.__)("Optimize the editing experience for enhanced control."),children:(0,c.jsx)(Ay,{scope:"core",featureName:"keepCaretInsideBlock",help:(0,fs.__)("Keeps the text cursor within blocks while navigating with arrow keys, preventing it from moving to other blocks and enhancing accessibility for keyboard users."),label:(0,fs.__)("Contain text cursor inside block")})}),(0,c.jsx)(Dy,{title:(0,fs.__)("Interface"),children:(0,c.jsx)(Ay,{scope:"core",featureName:"showIconLabels",label:(0,fs.__)("Show button text labels"),help:(0,fs.__)("Show text instead of icons on buttons across the interface.")})})]})},{name:"blocks",tabLabel:(0,fs.__)("Blocks"),content:(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(Dy,{title:(0,fs.__)("Inserter"),children:(0,c.jsx)(Ay,{scope:"core",featureName:"mostUsedBlocks",help:(0,fs.__)("Adds a category with the most frequently used blocks in the inserter."),label:(0,fs.__)("Show most used blocks")})}),(0,c.jsx)(Dy,{title:(0,fs.__)("Manage block visibility"),description:(0,fs.__)("Disable blocks that you don't want to appear in the inserter. They can always be toggled back on later."),children:(0,c.jsx)(Iy,{})})]})},window.__experimentalMediaProcessing&&{name:"media",tabLabel:(0,fs.__)("Media"),content:(0,c.jsx)(c.Fragment,{children:(0,c.jsxs)(Dy,{title:(0,fs.__)("General"),description:(0,fs.__)("Customize options related to the media upload flow."),children:[(0,c.jsx)(Ay,{scope:"core/media",featureName:"optimizeOnUpload",help:(0,fs.__)("Compress media items before uploading to the server."),label:(0,fs.__)("Pre-upload compression")}),(0,c.jsx)(Ay,{scope:"core/media",featureName:"requireApproval",help:(0,fs.__)("Require approval step when optimizing existing media."),label:(0,fs.__)("Approval step")})]})})}].filter(Boolean)),[s,e,o,n,r,t]);return(0,c.jsx)(Ry,{sections:i})}var Ly=function({postType:e}){const{registerPostTypeSchema:t}=$((0,d.useDispatch)(vc));(0,p.useEffect)((()=>{t(e)}),[t,e]);const{fields:s}=(0,d.useSelect)((t=>{const{getEntityFields:s}=$(t(vc));return{fields:s("postType",e)}}),[e]);return s};const Oy="content";var Fy={name:"core/pattern-overrides",getValues({select:e,clientId:t,context:s,bindings:n}){const o=s["pattern/overrides"],{getBlockAttributes:r}=e(g.store),i=r(t),a={};for(const e of Object.keys(n)){const t=o?.[i?.metadata?.name]?.[e];void 0!==t?a[e]=""===t?void 0:t:a[e]=i[e]}return a},setValues({select:e,dispatch:t,clientId:s,bindings:n}){const{getBlockAttributes:o,getBlockParentsByBlockName:r,getBlocks:i}=e(g.store),a=o(s),l=a?.metadata?.name;if(!l)return;const[c]=r(s,"core/block",!0),d=Object.entries(n).reduce(((e,[t,{newValue:s}])=>(e[t]=s,e)),{});if(!c){const e=s=>{for(const n of s)n.attributes?.metadata?.name===l&&t(g.store).updateBlockAttributes(n.clientId,d),e(n.innerBlocks)};return void e(i())}const u=o(c)?.[Oy];t(g.store).updateBlockAttributes(c,{[Oy]:{...u,[l]:{...u?.[l],...Object.entries(d).reduce(((e,[t,s])=>(e[t]=void 0===s?"":s,e)),{})}}})},canUserEditValue:()=>!0};const Vy=["core/navigation-link","core/navigation-submenu"],Uy=[{label:(0,fs.__)("Post Date"),args:{field:"date"},type:"string"},{label:(0,fs.__)("Post Modified Date"),args:{field:"modified"},type:"string"},{label:(0,fs.__)("Post Link"),args:{field:"link"},type:"string"}];var Hy={name:"core/post-data",getValues({select:e,context:t,bindings:s,clientId:n}){const o=Uy.map((e=>e.args.field)),{getBlockAttributes:r,getBlockName:i}=e(g.store),a=i?.(n);let l,c;if(Vy.includes(a)){const e=r?.(n);l=e?.id,c=e?.type}else l=t?.postId,c=t?.postType;const{getEditedEntityRecord:d}=e(u.store),p=d("postType",c,l),m={};for(const[e,t]of Object.entries(s))o.includes(t.args.field)?m[e]=p?.[t.args.field]??Uy.find((e=>e.args.field===t.args.field)).label:m[e]={};return m},setValues({dispatch:e,context:t,bindings:s,clientId:n,select:o}){const{getBlockName:r}=o(g.store),i=r?.(n);if(Vy.includes(i))return!1;const a={};Object.values(s).forEach((({args:e,newValue:t})=>{a[e.field]=t})),e(u.store).editEntityRecord("postType",t?.postType,t?.postId,a)},canUserEditValue({select:e,context:t}){const{getBlockName:s,getSelectedBlockClientId:n}=e(g.store),o=n(),r=s?.(o);if(Vy.includes(r))return!1;if(t?.query||t?.queryId)return!1;if(!t?.postType)return!1;return!!e(u.store).canUser("update",{kind:"postType",name:t?.postType,id:t?.postId})},getFieldsList({select:e}){const t=e(g.store).getSelectedBlock();return"core/post-date"!==t?.name||Vy.includes(t?.name)?[]:Uy}};function zy(e,t){const{getRegisteredPostMeta:s}=$(e(u.store)),n=s(t?.postType),o=[];return Object.entries(n).forEach((([e,t])=>{"footnotes"!==e&&"_"!==e.charAt(0)&&o.push({label:t.title||e,args:{key:e},default:t.default,type:t.type})})),o}function Gy({select:e,context:t,args:s}){const n=zy(e,t).find((e=>e.args.key===s.key));if(!n)return s.key;if(!t?.postId)return n.default||n.label||s.key;const{getEditedEntityRecord:o}=e(u.store),r=o("postType",t?.postType,t?.postId).meta;return r?.[s.key]??n?.label??s.key}var $y={name:"core/post-meta",getValues({select:e,context:t,bindings:s}){const n={};for(const[o,r]of Object.entries(s))n[o]=Gy({select:e,context:t,args:r.args});return n},setValues({dispatch:e,context:t,bindings:s}){const n={};Object.values(s).forEach((({args:e,newValue:t})=>{n[e.key]=t})),e(u.store).editEntityRecord("postType",t?.postType,t?.postId,{meta:n})},canUserEditValue({select:e,context:t,args:s}){if(t?.query||t?.queryId)return!1;if(!t?.postType)return!1;if(!zy(e,t).some((e=>e.args.key===s.key)))return!1;if(e(vc).getEditorSettings().enableCustomFields)return!1;return!!e(u.store).canUser("update",{kind:"postType",name:t?.postType,id:t?.postId})},getFieldsList:({select:e,context:t})=>zy(e,t).map((({default:e,...t})=>({...t})))};const Wy=["core/navigation-link","core/navigation-submenu"];function Zy(e,t){return{id:{label:(0,fs.__)("Term ID"),value:t,type:"string"},name:{label:(0,fs.__)("Name"),value:e?.name,type:"string"},slug:{label:(0,fs.__)("Slug"),value:e?.slug,type:"string"},link:{label:(0,fs.__)("Link"),value:e?.link,type:"string"},description:{label:(0,fs.__)("Description"),value:e?.description,type:"string"},parent:{label:(0,fs.__)("Parent ID"),value:e?.parent,type:"string"},count:{label:(0,fs.__)("Count"),value:`(${e?.count??0})`,type:"string"}}}function Yy(e,t,s){const{getEntityRecord:n}=e(u.store),{getBlockAttributes:o,getBlockName:r}=e(g.store);let i,a;const l=r?.(s);let c,d;if(Wy.includes(l)){const e=o?.(s);c=e?.id;const t=e?.type;d="tag"===t?"post_tag":t}else c=t?.termId,d=t?.taxonomy;return d&&c?(i=n("taxonomy",d,c),!i&&t?.termData&&(i=t.termData),i&&(a=Zy(i,c))):t?.termData&&(i=t.termData,a=Zy(i,i?.term_id)),a&&Object.keys(a).length?a:null}var qy={name:"core/term-data",usesContext:["taxonomy","termId","termData"],getValues({select:e,context:t,bindings:s,clientId:n}){const o=Yy(e,t,n),r={};for(const[e,t]of Object.entries(s)){const s=t.args.field,{value:n,label:i}=o?.[s]||{};r[e]=n??i??s}return r},setValues:({dispatch:e,context:t,bindings:s})=>!1,canUserEditValue({select:e,context:t,args:s}){const{getBlockName:n,getSelectedBlockClientId:o}=e(g.store),r=o(),i=n?.(r);if(Wy.includes(i))return!1;if(t?.termQuery)return!1;if(!t?.taxonomy||!t?.termId)return!1;Yy(e,t,void 0)?.[s.field];return!1},getFieldsList({select:e,context:t}){const s=e(g.store).getSelectedBlockClientId(),n=Yy(e,t,s);return n?Object.entries(n).map((([e,t])=>({label:t.label,type:t.type,args:{field:e}}))):[]}};const{store:Ky,...Qy}=i,Xy={};function Jy(e,t,s){const{registerEntityAction:n}=$((0,d.dispatch)(vc))}function ex(e,t,s){const{unregisterEntityAction:n}=$((0,d.dispatch)(vc))}function tx(e,t,s){const{registerEntityField:n}=$((0,d.dispatch)(vc))}function sx(e,t,s){const{unregisterEntityField:n}=$((0,d.dispatch)(vc))}G(Xy,{CreateTemplatePartModal:Jn,patternTitleField:ni,templateTitleField:Jr,BackButton:Xg,EntitiesSavedStatesExtensible:xd,Editor:Py,EditorContentSlotFill:Zg,GlobalStylesProvider:function({children:e}){const t=Ti();return t.isReady?(0,c.jsx)(Pi.Provider,{value:t,children:e}):null},mergeBaseAndUserConfigs:Ei,PluginPostExcerpt:lp,PostCardPanel:ff,PreferencesModal:function({extraSections:e={}}){const t=(0,d.useSelect)((e=>e(ja).isModalActive("editor/preferences")),[]),{closeModal:s}=(0,d.useDispatch)(ja);return t?(0,c.jsx)(Ny,{closeModal:s,children:(0,c.jsx)(My,{extraSections:e})}):null},usePostActions:cf,usePostFields:Ly,ToolsMoreMenuGroup:u_,ViewMoreMenuGroup:h_,ResizableEditor:U_,registerCoreBlockBindingsSources:function(){(0,x.registerBlockBindingsSource)(Fy),(0,x.registerBlockBindingsSource)(Hy),(0,x.registerBlockBindingsSource)($y),(0,x.registerBlockBindingsSource)(qy)},getTemplateInfo:Y,interfaceStore:Ky,...Qy})})(),(window.wp=window.wp||{}).editor=n})();
\ No newline at end of file
diff --git a/wp-includes/js/dist/script-modules/block-editor/utils/fit-text-frontend.js b/wp-includes/js/dist/script-modules/block-editor/utils/fit-text-frontend.js
index 2b3292b4e5..d13ead3752 100644
--- a/wp-includes/js/dist/script-modules/block-editor/utils/fit-text-frontend.js
+++ b/wp-includes/js/dist/script-modules/block-editor/utils/fit-text-frontend.js
@@ -35,10 +35,17 @@ function findOptimalFontSize(textElement, applyFontSize) {
   let minSize = 5;
   let maxSize = 2400;
   let bestSize = minSize;
+  const computedStyle = window.getComputedStyle(textElement);
+  const paddingLeft = parseFloat(computedStyle.paddingLeft) || 0;
+  const paddingRight = parseFloat(computedStyle.paddingRight) || 0;
+  const range = document.createRange();
+  range.selectNodeContents(textElement);
   while (minSize <= maxSize) {
     const midSize = Math.floor((minSize + maxSize) / 2);
     applyFontSize(midSize);
-    const fitsWidth = textElement.scrollWidth <= textElement.clientWidth;
+    const rect = range.getBoundingClientRect();
+    const textWidth = rect.width;
+    const fitsWidth = textElement.scrollWidth <= textElement.clientWidth && textWidth <= textElement.clientWidth - paddingLeft - paddingRight;
     const fitsHeight = alreadyHasScrollableHeight || textElement.scrollHeight <= textElement.clientHeight;
     if (fitsWidth && fitsHeight) {
       bestSize = midSize;
@@ -47,6 +54,7 @@ function findOptimalFontSize(textElement, applyFontSize) {
       maxSize = midSize - 1;
     }
   }
+  range.detach();
   return bestSize;
 }
 function optimizeFitText(textElement, applyFontSize) {
diff --git a/wp-includes/js/dist/script-modules/block-editor/utils/fit-text-frontend.min.js b/wp-includes/js/dist/script-modules/block-editor/utils/fit-text-frontend.min.js
index 54cb25c99e..565be86c05 100644
--- a/wp-includes/js/dist/script-modules/block-editor/utils/fit-text-frontend.min.js
+++ b/wp-includes/js/dist/script-modules/block-editor/utils/fit-text-frontend.min.js
@@ -1 +1 @@
-import*as e from"@wordpress/interactivity";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const n=(e=>{var n={};return t.d(n,e),n})({getContext:()=>e.getContext,getElement:()=>e.getElement,store:()=>e.store});function r(e,t){if(!e)return;t(0);const n=function(e,t){const n=e.scrollHeight>e.clientHeight;let r=5,o=2400,i=r;for(;r<=o;){const s=Math.floor((r+o)/2);t(s);const c=e.scrollWidth<=e.clientWidth,l=n||e.scrollHeight<=e.clientHeight;c&&l?(i=s,r=s+1):o=s-1}return i}(e,t);return t(n),n}(0,n.store)("core/fit-text",{callbacks:{init(){const e=(0,n.getContext)(),{ref:t}=(0,n.getElement)(),o=e=>{t.style.fontSize=0===e?"":`${e}px`};if(e.fontSize=r(t,o),window.ResizeObserver&&t.parentElement){const n=new window.ResizeObserver((()=>{e.fontSize=r(t,o)}));return n.observe(t.parentElement),n.observe(t),()=>{n&&n.disconnect()}}}}});
\ No newline at end of file
+import*as e from"@wordpress/interactivity";var t={d:(e,n)=>{for(var o in n)t.o(n,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:n[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const n=(e=>{var n={};return t.d(n,e),n})({getContext:()=>e.getContext,getElement:()=>e.getElement,store:()=>e.store});function o(e,t){if(!e)return;t(0);const n=function(e,t){const n=e.scrollHeight>e.clientHeight;let o=5,r=2400,i=o;const c=window.getComputedStyle(e),s=parseFloat(c.paddingLeft)||0,l=parseFloat(c.paddingRight)||0,a=document.createRange();for(a.selectNodeContents(e);o<=r;){const c=Math.floor((o+r)/2);t(c);const d=a.getBoundingClientRect().width,g=e.scrollWidth<=e.clientWidth&&d<=e.clientWidth-s-l,f=n||e.scrollHeight<=e.clientHeight;g&&f?(i=c,o=c+1):r=c-1}return a.detach(),i}(e,t);return t(n),n}(0,n.store)("core/fit-text",{callbacks:{init(){const e=(0,n.getContext)(),{ref:t}=(0,n.getElement)(),r=e=>{t.style.fontSize=0===e?"":`${e}px`};if(e.fontSize=o(t,r),window.ResizeObserver&&t.parentElement){const n=new window.ResizeObserver((()=>{e.fontSize=o(t,r)}));return n.observe(t.parentElement),n.observe(t),()=>{n&&n.disconnect()}}}}});
\ No newline at end of file
diff --git a/wp-includes/version.php b/wp-includes/version.php
index 080cd1c98a..c54d92dd15 100644
--- a/wp-includes/version.php
+++ b/wp-includes/version.php
@@ -16,7 +16,7 @@
  *
  * @global string $wp_version
  */
-$wp_version = '7.0-alpha-61261';
+$wp_version = '7.0-alpha-61262';

 /**
  * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.