diff --git a/wp-includes/assets/script-loader-packages.php b/wp-includes/assets/script-loader-packages.php index d6cefb19f6..5fe3a5767a 100644 --- a/wp-includes/assets/script-loader-packages.php +++ b/wp-includes/assets/script-loader-packages.php @@ -1 +1 @@ - array('dependencies' => array('wp-dom-ready', 'wp-i18n', 'wp-polyfill'), 'version' => 'e7e97f7c0a0eb49124f7ca0d9294594a'), 'annotations.js' => array('dependencies' => array('lodash', 'wp-data', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-rich-text'), 'version' => '78e0fecb08916ea717fa098886de19de'), 'api-fetch.js' => array('dependencies' => array('wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => 'dc0ad12a15f885caa01aaa23eca67c67'), 'autop.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'cd3c420b4dbe2c6616328f56fef5fbe6'), 'blob.js' => array('dependencies' => array('wp-polyfill'), 'version' => '8b8f9a773357d01a523f9e9eb4f51d14'), 'block-directory.js' => array('dependencies' => array('lodash', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-data-controls', 'wp-edit-post', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives'), 'version' => '90182d2e43bfbe134939fb62d7b175c7'), 'block-editor.js' => array('dependencies' => array('lodash', 'react', 'wp-a11y', 'wp-blob', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-shortcode', 'wp-token-list', 'wp-url', 'wp-wordcount'), 'version' => '2d48410c269333e416297a008e7f46b7'), 'block-library.js' => array('dependencies' => array('lodash', 'moment', 'react', 'wp-api-fetch', 'wp-autop', 'wp-blob', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-keycodes', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-reusable-blocks', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-viewport'), 'version' => 'ebefdcfe36e773980c41666273c34f03'), 'block-serialization-default-parser.js' => array('dependencies' => array('wp-polyfill'), 'version' => '5f11041f01403668dc3caa7456ebb879'), 'blocks.js' => array('dependencies' => array('lodash', 'wp-autop', 'wp-blob', 'wp-block-serialization-default-parser', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-primitives', 'wp-shortcode'), 'version' => '2d0ac38ff5b234980d6c8850c2533266'), 'components.js' => array('dependencies' => array('lodash', 'moment', 'react', 'wp-a11y', 'wp-compose', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-warning'), 'version' => '3f22bab64db7f4c41b7bfcb68b5ef0a4'), 'compose.js' => array('dependencies' => array('lodash', 'react', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-polyfill', 'wp-priority-queue'), 'version' => 'bf1364a05d66fe631bafae0ed66c0120'), 'core-data.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-blocks', 'wp-data', 'wp-data-controls', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-url'), 'version' => '5d632fde9e1420eaa1f2cfc730968fc0'), 'data.js' => array('dependencies' => array('lodash', 'react', 'wp-compose', 'wp-deprecated', 'wp-element', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-priority-queue', 'wp-redux-routine'), 'version' => '5914a2a52646fcc582f3653f01060a3f'), 'data-controls.js' => array('dependencies' => array('wp-api-fetch', 'wp-data', 'wp-deprecated', 'wp-polyfill'), 'version' => 'd431705d6cdccbeed386b0dda3cab9a4'), 'date.js' => array('dependencies' => array('moment', 'wp-polyfill'), 'version' => '1850a54beb5b0cb2bfb0ef1ba6f17987'), 'deprecated.js' => array('dependencies' => array('wp-hooks', 'wp-polyfill'), 'version' => '1c2b18d12c0f9c4961d2f53775bb7671'), 'dom.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '345e666bc784cb37ab33b2619aca6a8b'), 'dom-ready.js' => array('dependencies' => array('wp-polyfill'), 'version' => '6cdcf6bbc71e357d5994c55cd0e7d41d'), 'edit-post.js' => array('dependencies' => array('lodash', 'wp-a11y', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-data-controls', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-url', 'wp-viewport', 'wp-warning'), 'version' => '204f3e10e72bcb8f85e4b7eec2854ad9'), 'editor.js' => array('dependencies' => array('lodash', 'react', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-data-controls', 'wp-date', 'wp-deprecated', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-reusable-blocks', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-wordcount'), 'version' => '9bbe586b4e4f123fcb640e8f6bd9cccc'), 'element.js' => array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-escape-html', 'wp-polyfill'), 'version' => 'd75668a068c0d31632dc101d1cd44ced'), 'escape-html.js' => array('dependencies' => array('wp-polyfill'), 'version' => '695654572d53787192fb05c3513be31e'), 'format-library.js' => array('dependencies' => array('lodash', 'wp-a11y', 'wp-block-editor', 'wp-components', 'wp-data', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-url'), 'version' => '3f7bf687e5b5969c24d4dc8195e54cc4'), 'hooks.js' => array('dependencies' => array('wp-polyfill'), 'version' => '6e88f593b100fa67d5715e83ccb0b980'), 'html-entities.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'a8ab9618c6f1a96ad61217ed0200c6de'), 'i18n.js' => array('dependencies' => array('wp-hooks', 'wp-polyfill'), 'version' => '1d31ffe0ef9571a924bcf414441d68ac'), 'is-shallow-equal.js' => array('dependencies' => array('wp-polyfill'), 'version' => '3ab3774bfbcaae9fd629d9e1083762a1'), 'keyboard-shortcuts.js' => array('dependencies' => array('lodash', 'wp-compose', 'wp-data', 'wp-keycodes', 'wp-polyfill'), 'version' => '5bb4e35231bcd4ef01945f4e85439cb5'), 'keycodes.js' => array('dependencies' => array('lodash', 'wp-i18n', 'wp-polyfill'), 'version' => '6ee3dce62767a56a86a9ee06020ed7c6'), 'list-reusable-blocks.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '8b2f289f2db39d8bd5bb65d3c353b83e'), 'media-utils.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-blob', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => 'f0887e7d0e7beaa9e6edfdfc0997f11e'), 'notices.js' => array('dependencies' => array('lodash', 'wp-data', 'wp-polyfill'), 'version' => 'bbcae332505740be5015cb4a9bafe04d'), 'nux.js' => array('dependencies' => array('lodash', 'wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives'), 'version' => '32346a1129f494cf5fd7b37c8d34a949'), 'plugins.js' => array('dependencies' => array('lodash', 'wp-compose', 'wp-element', 'wp-hooks', 'wp-polyfill', 'wp-primitives'), 'version' => '78da6e4567f3f33445866d17c9a48f47'), 'primitives.js' => array('dependencies' => array('wp-element', 'wp-polyfill'), 'version' => 'c7089b39bfea30b0c21a4e95cb43e959'), 'priority-queue.js' => array('dependencies' => array('wp-polyfill'), 'version' => '5efa8ff78ec0584ddd281db1822292de'), 'redux-routine.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => 'be5b0b16231fe39e3f7510027e737d44'), 'reusable-blocks.js' => array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => '2f0640d1f565c266fbeff111cc10101f'), 'rich-text.js' => array('dependencies' => array('lodash', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-escape-html', 'wp-keycodes', 'wp-polyfill'), 'version' => '7fbf3496d28e49fb8f9d11e29c010950'), 'server-side-render.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-components', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => '366be3bf8adeaad17e581903a328ac92'), 'shortcode.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '6a5bf809b3db55934f320a776cee8d6e'), 'token-list.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => 'c298503bf06f4c33082bef8c963ae1d1'), 'url.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '5fd56aed1746e2cad5cb7e9dc5dd6919'), 'viewport.js' => array('dependencies' => array('lodash', 'wp-compose', 'wp-data', 'wp-element', 'wp-polyfill'), 'version' => 'ad650e71062ec3ea7059504ba84345a8'), 'warning.js' => array('dependencies' => array('wp-polyfill'), 'version' => '6262ab67d78000ed1c0d3693a399921c'), 'wordcount.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '6d090e5d4c16a4aaced7ea310f2a54d3')); \ No newline at end of file + array('dependencies' => array('wp-dom-ready', 'wp-i18n', 'wp-polyfill'), 'version' => 'e7e97f7c0a0eb49124f7ca0d9294594a'), 'annotations.js' => array('dependencies' => array('lodash', 'wp-data', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-rich-text'), 'version' => '78e0fecb08916ea717fa098886de19de'), 'api-fetch.js' => array('dependencies' => array('wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => 'dc0ad12a15f885caa01aaa23eca67c67'), 'autop.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'cd3c420b4dbe2c6616328f56fef5fbe6'), 'blob.js' => array('dependencies' => array('wp-polyfill'), 'version' => '8b8f9a773357d01a523f9e9eb4f51d14'), 'block-directory.js' => array('dependencies' => array('lodash', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-data-controls', 'wp-edit-post', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives'), 'version' => '90182d2e43bfbe134939fb62d7b175c7'), 'block-editor.js' => array('dependencies' => array('lodash', 'react', 'wp-a11y', 'wp-blob', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-shortcode', 'wp-token-list', 'wp-url', 'wp-wordcount'), 'version' => '2d48410c269333e416297a008e7f46b7'), 'block-library.js' => array('dependencies' => array('lodash', 'moment', 'react', 'wp-api-fetch', 'wp-autop', 'wp-blob', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-keycodes', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-reusable-blocks', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-viewport'), 'version' => 'ab4c4bc890619c851624249be3ce1b57'), 'block-serialization-default-parser.js' => array('dependencies' => array('wp-polyfill'), 'version' => '5f11041f01403668dc3caa7456ebb879'), 'blocks.js' => array('dependencies' => array('lodash', 'wp-autop', 'wp-blob', 'wp-block-serialization-default-parser', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-primitives', 'wp-shortcode'), 'version' => 'f8dbcec2205f97b3bee4450700fbef77'), 'components.js' => array('dependencies' => array('lodash', 'moment', 'react', 'wp-a11y', 'wp-compose', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-warning'), 'version' => '3f22bab64db7f4c41b7bfcb68b5ef0a4'), 'compose.js' => array('dependencies' => array('lodash', 'react', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-polyfill', 'wp-priority-queue'), 'version' => 'bf1364a05d66fe631bafae0ed66c0120'), 'core-data.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-blocks', 'wp-data', 'wp-data-controls', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-url'), 'version' => '5d632fde9e1420eaa1f2cfc730968fc0'), 'data.js' => array('dependencies' => array('lodash', 'react', 'wp-compose', 'wp-deprecated', 'wp-element', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-priority-queue', 'wp-redux-routine'), 'version' => '5914a2a52646fcc582f3653f01060a3f'), 'data-controls.js' => array('dependencies' => array('wp-api-fetch', 'wp-data', 'wp-deprecated', 'wp-polyfill'), 'version' => 'd431705d6cdccbeed386b0dda3cab9a4'), 'date.js' => array('dependencies' => array('moment', 'wp-polyfill'), 'version' => '1850a54beb5b0cb2bfb0ef1ba6f17987'), 'deprecated.js' => array('dependencies' => array('wp-hooks', 'wp-polyfill'), 'version' => '1c2b18d12c0f9c4961d2f53775bb7671'), 'dom.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '345e666bc784cb37ab33b2619aca6a8b'), 'dom-ready.js' => array('dependencies' => array('wp-polyfill'), 'version' => '6cdcf6bbc71e357d5994c55cd0e7d41d'), 'edit-post.js' => array('dependencies' => array('lodash', 'wp-a11y', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-data-controls', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-url', 'wp-viewport', 'wp-warning'), 'version' => '204f3e10e72bcb8f85e4b7eec2854ad9'), 'editor.js' => array('dependencies' => array('lodash', 'react', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-data-controls', 'wp-date', 'wp-deprecated', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-reusable-blocks', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-wordcount'), 'version' => '46afcb63e78beb3d6c4b4a3f3b180415'), 'element.js' => array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-escape-html', 'wp-polyfill'), 'version' => 'd75668a068c0d31632dc101d1cd44ced'), 'escape-html.js' => array('dependencies' => array('wp-polyfill'), 'version' => '695654572d53787192fb05c3513be31e'), 'format-library.js' => array('dependencies' => array('lodash', 'wp-a11y', 'wp-block-editor', 'wp-components', 'wp-data', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-url'), 'version' => '3f7bf687e5b5969c24d4dc8195e54cc4'), 'hooks.js' => array('dependencies' => array('wp-polyfill'), 'version' => '6e88f593b100fa67d5715e83ccb0b980'), 'html-entities.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'a8ab9618c6f1a96ad61217ed0200c6de'), 'i18n.js' => array('dependencies' => array('wp-hooks', 'wp-polyfill'), 'version' => '1d31ffe0ef9571a924bcf414441d68ac'), 'is-shallow-equal.js' => array('dependencies' => array('wp-polyfill'), 'version' => '3ab3774bfbcaae9fd629d9e1083762a1'), 'keyboard-shortcuts.js' => array('dependencies' => array('lodash', 'wp-compose', 'wp-data', 'wp-keycodes', 'wp-polyfill'), 'version' => '5bb4e35231bcd4ef01945f4e85439cb5'), 'keycodes.js' => array('dependencies' => array('lodash', 'wp-i18n', 'wp-polyfill'), 'version' => '6ee3dce62767a56a86a9ee06020ed7c6'), 'list-reusable-blocks.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '8b2f289f2db39d8bd5bb65d3c353b83e'), 'media-utils.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-blob', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => 'f0887e7d0e7beaa9e6edfdfc0997f11e'), 'notices.js' => array('dependencies' => array('lodash', 'wp-data', 'wp-polyfill'), 'version' => 'bbcae332505740be5015cb4a9bafe04d'), 'nux.js' => array('dependencies' => array('lodash', 'wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives'), 'version' => '32346a1129f494cf5fd7b37c8d34a949'), 'plugins.js' => array('dependencies' => array('lodash', 'wp-compose', 'wp-element', 'wp-hooks', 'wp-polyfill', 'wp-primitives'), 'version' => '78da6e4567f3f33445866d17c9a48f47'), 'primitives.js' => array('dependencies' => array('wp-element', 'wp-polyfill'), 'version' => 'c7089b39bfea30b0c21a4e95cb43e959'), 'priority-queue.js' => array('dependencies' => array('wp-polyfill'), 'version' => '5efa8ff78ec0584ddd281db1822292de'), 'redux-routine.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => 'be5b0b16231fe39e3f7510027e737d44'), 'reusable-blocks.js' => array('dependencies' => array('lodash', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => '6e994607485ec411ecc68a13d77fd5ce'), 'rich-text.js' => array('dependencies' => array('lodash', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-escape-html', 'wp-keycodes', 'wp-polyfill'), 'version' => '7fbf3496d28e49fb8f9d11e29c010950'), 'server-side-render.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-components', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => '366be3bf8adeaad17e581903a328ac92'), 'shortcode.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '6a5bf809b3db55934f320a776cee8d6e'), 'token-list.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => 'c298503bf06f4c33082bef8c963ae1d1'), 'url.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '5fd56aed1746e2cad5cb7e9dc5dd6919'), 'viewport.js' => array('dependencies' => array('lodash', 'wp-compose', 'wp-data', 'wp-element', 'wp-polyfill'), 'version' => 'ad650e71062ec3ea7059504ba84345a8'), 'warning.js' => array('dependencies' => array('wp-polyfill'), 'version' => '6262ab67d78000ed1c0d3693a399921c'), 'wordcount.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '6d090e5d4c16a4aaced7ea310f2a54d3')); \ No newline at end of file diff --git a/wp-includes/blocks/social-link.php b/wp-includes/blocks/social-link.php index 4e7e556d11..4f8893511d 100644 --- a/wp-includes/blocks/social-link.php +++ b/wp-includes/blocks/social-link.php @@ -33,7 +33,12 @@ function render_block_core_social_link( $attributes, $content, $block ) { } $icon = block_core_social_link_get_icon( $service ); - $wrapper_attributes = get_block_wrapper_attributes( array( 'class' => 'wp-social-link wp-social-link-' . $service . $class_name ) ); + $wrapper_attributes = get_block_wrapper_attributes( + array( + 'class' => 'wp-social-link wp-social-link-' . $service . $class_name, + 'style' => block_core_social_link_get_color_styles( $block->context ), + ) + ); return '
".concat(e,"
")})}},{type:"raw",isMatch:function(e){var t,r=(t=!1,function(e){return"P"===e.nodeName||(t||"CITE"!==e.nodeName?void 0:(t=!0,!0))});return"BLOCKQUOTE"===e.nodeName&&Array.from(e.childNodes).every(r)},schema:function(e){var t=e.phrasingContentSchema;return{blockquote:{children:{p:{children:t},cite:{children:t}}}}}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.value,r=e.citation,n=[];return t&&""!==t&&n.push.apply(n,Object(q.a)(Object(_r.split)(Object(_r.create)({html:t,multilineTag:"p"}),"\u2028").map((function(e){return Object(K.createBlock)("core/paragraph",{content:Object(_r.toHTMLString)({value:e})})})))),r&&""!==r&&n.push(Object(K.createBlock)("core/paragraph",{content:r})),0===n.length?Object(K.createBlock)("core/paragraph",{content:""}):n}},{type:"block",blocks:["core/heading"],transform:function(e){var t=e.value,r=e.citation,n=Object(Yt.a)(e,["value","citation"]);if(""===t)return Object(K.createBlock)("core/heading",{content:r});var c=Object(_r.split)(Object(_r.create)({html:t,multilineTag:"p"}),"\u2028"),o=Object(K.createBlock)("core/heading",{content:Object(_r.toHTMLString)({value:c[0]})});if(!r&&1===c.length)return o;var a=c.slice(1);return[o,Object(K.createBlock)("core/quote",Er(Er({},n),{},{citation:r,value:Object(_r.toHTMLString)({value:a.length?Object(_r.join)(c.slice(1),"\u2028"):Object(_r.create)(),multilineTag:"p"})}))]}},{type:"block",blocks:["core/pullquote"],transform:function(e){var t=e.value,r=e.citation,n=e.anchor;return Object(K.createBlock)("core/pullquote",{value:t,citation:r,anchor:n})}}]};function xr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Sr(e){for(var t=1;t"+Object(X.__)("One of the hardest things to do in technology is disrupt yourself.")+"
",citation:Object(X.__)("Matt Mullenweg")}},styles:[{name:"default",label:Object(X._x)("Default","block style"),isDefault:!0},{name:"solid-color",label:Object(X.__)("Solid color")}],transforms:Ll,edit:Vl,save:function(e){var t,r,n=e.attributes,c=n.mainColor,o=n.customMainColor,a=n.textColor,i=n.customTextColor,l=n.value,s=n.citation,u=n.className;if(Object(J.includes)(u,Sl)){var b=Object(Y.getColorClassName)("background-color",c);t=ne()(Object(Z.a)({"has-background":b||o},b,b)),r={backgroundColor:b?void 0:o}}else o&&(r={borderColor:o});var m=Object(Y.getColorClassName)("color",a),d=(a||i)&&ne()("has-text-color",Object(Z.a)({},m,m)),p=m?void 0:{color:i};return Object(Q.createElement)("figure",Y.useBlockProps.save({className:t,style:r}),Object(Q.createElement)("blockquote",{className:d,style:p},Object(Q.createElement)(Y.RichText.Content,{value:l,multiline:!0}),!Y.RichText.isEmpty(s)&&Object(Q.createElement)(Y.RichText.Content,{tagName:"cite",value:s})))},deprecated:Nl},Fl=r(146),Ul=Object(Q.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Q.createElement)(ee.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"}));var Wl={apiVersion:2,name:"core/block",category:"reusable",attributes:{ref:{type:"number"}},supports:{customClassName:!1,html:!1,inserter:!1},editorStyle:"wp-block-editor"},ql=Wl.name,Zl={title:Object(X._x)("Reusable Block","block title"),description:Object(X.__)("Create and save content to reuse across your site. Update the block, and the changes apply everywhere it’s used."),edit:function(e){var t=e.attributes.ref,r=e.clientId,n=Object(Y.__experimentalUseNoRecursiveRenders)(t),c=Object(be.a)(n,2),o=c[0],a=c[1],i=Object(de.useSelect)((function(e){var r=e($.store).getEntityRecord("postType","wp_block",t),n=e($.store).hasFinishedResolution("getEntityRecord",["postType","wp_block",t]);return{hasResolved:n,isMissing:n&&!r}}),[t,r]),l=i.isMissing,s=i.hasResolved,u=Object(de.useDispatch)(Fl.store).__experimentalConvertBlockToStatic,b=Object($.useEntityBlockEditor)("postType","wp_block",{id:t}),m=Object(be.a)(b,3),d=m[0],p=m[1],g=m[2],h=Object($.useEntityProp)("postType","wp_block","title",t),f=Object(be.a)(h,2),O=f[0],v=f[1],j=Object(Y.__experimentalUseInnerBlocksProps)({},{value:d,onInput:p,onChange:g,renderAppender:null!=d&&d.length?void 0:Y.InnerBlocks.ButtonBlockAppender}),y=Object(Y.useBlockProps)();return o?Object(Q.createElement)("div",y,Object(Q.createElement)(Y.Warning,null,Object(X.__)("Block cannot be rendered inside itself."))):l?Object(Q.createElement)("div",y,Object(Q.createElement)(Y.Warning,null,Object(X.__)("Block has been deleted or is unavailable."))):s?Object(Q.createElement)(a,null,Object(Q.createElement)("div",y,Object(Q.createElement)(Y.BlockControls,null,Object(Q.createElement)(me.ToolbarGroup,null,Object(Q.createElement)(me.ToolbarButton,{onClick:function(){return u(r)},label:Object(X.__)("Convert to regular blocks"),icon:Ul,showTooltip:!0}))),Object(Q.createElement)(Y.InspectorControls,null,Object(Q.createElement)(me.PanelBody,null,Object(Q.createElement)(me.TextControl,{label:Object(X.__)("Name"),value:O,onChange:v}))),Object(Q.createElement)("div",{className:"block-library-block__reusable-block-container"},Object(Q.createElement)("div",j)))):Object(Q.createElement)("div",y,Object(Q.createElement)(me.Placeholder,null,Object(Q.createElement)(me.Spinner,null)))}},$l=Object(Q.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Q.createElement)(ee.Path,{d:"M5 10.2h-.8v1.5H5c1.9 0 3.8.8 5.1 2.1 1.4 1.4 2.1 3.2 2.1 5.1v.8h1.5V19c0-2.3-.9-4.5-2.6-6.2-1.6-1.6-3.8-2.6-6.1-2.6zm10.4-1.6C12.6 5.8 8.9 4.2 5 4.2h-.8v1.5H5c3.5 0 6.9 1.4 9.4 3.9s3.9 5.8 3.9 9.4v.8h1.5V19c0-3.9-1.6-7.6-4.4-10.4zM4 20h3v-3H4v3z"}));var Yl={apiVersion:2,name:"core/rss",category:"widgets",attributes:{columns:{type:"number",default:2},blockLayout:{type:"string",default:"list"},feedURL:{type:"string",default:""},itemsToShow:{type:"number",default:5},displayExcerpt:{type:"boolean",default:!1},displayAuthor:{type:"boolean",default:!1},displayDate:{type:"boolean",default:!1},excerptLength:{type:"number",default:55}},supports:{align:!0,html:!1},editorStyle:"wp-block-rss-editor",style:"wp-block-rss"},Kl=Yl.name,Jl={title:Object(X._x)("RSS","block title"),description:Object(X.__)("Display entries from any RSS or Atom feed."),icon:$l,keywords:[Object(X.__)("atom"),Object(X.__)("feed")],example:{attributes:{feedURL:"https://wordpress.org"}},edit:function(e){var t=e.attributes,r=e.setAttributes,n=Object(Q.useState)(!t.feedURL),c=Object(be.a)(n,2),o=c[0],a=c[1],i=t.blockLayout,l=t.columns,s=t.displayAuthor,u=t.displayDate,b=t.displayExcerpt,m=t.excerptLength,d=t.feedURL,p=t.itemsToShow;function g(e){return function(){var n=t[e];r(Object(Z.a)({},e,!n))}}var h=Object(Y.useBlockProps)();if(o)return Object(Q.createElement)("div",h,Object(Q.createElement)(me.Placeholder,{icon:$l,label:"RSS"},Object(Q.createElement)("form",{onSubmit:function(e){e.preventDefault(),d&&a(!1)},className:"wp-block-rss__placeholder-form"},Object(Q.createElement)(me.TextControl,{placeholder:Object(X.__)("Enter URL here…"),value:d,onChange:function(e){return r({feedURL:e})},className:"wp-block-rss__placeholder-input"}),Object(Q.createElement)(me.Button,{isPrimary:!0,type:"submit"},Object(X.__)("Use URL")))));var f=[{icon:$r.a,title:Object(X.__)("Edit RSS URL"),onClick:function(){return a(!0)}},{icon:zi,title:Object(X.__)("List view"),onClick:function(){return r({blockLayout:"list"})},isActive:"list"===i},{icon:Ni,title:Object(X.__)("Grid view"),onClick:function(){return r({blockLayout:"grid"})},isActive:"grid"===i}];return Object(Q.createElement)(Q.Fragment,null,Object(Q.createElement)(Y.BlockControls,null,Object(Q.createElement)(me.ToolbarGroup,{controls:f})),Object(Q.createElement)(Y.InspectorControls,null,Object(Q.createElement)(me.PanelBody,{title:Object(X.__)("RSS settings")},Object(Q.createElement)(me.RangeControl,{label:Object(X.__)("Number of items"),value:p,onChange:function(e){return r({itemsToShow:e})},min:1,max:10,required:!0}),Object(Q.createElement)(me.ToggleControl,{label:Object(X.__)("Display author"),checked:s,onChange:g("displayAuthor")}),Object(Q.createElement)(me.ToggleControl,{label:Object(X.__)("Display date"),checked:u,onChange:g("displayDate")}),Object(Q.createElement)(me.ToggleControl,{label:Object(X.__)("Display excerpt"),checked:b,onChange:g("displayExcerpt")}),b&&Object(Q.createElement)(me.RangeControl,{label:Object(X.__)("Max number of words in excerpt"),value:m,onChange:function(e){return r({excerptLength:e})},min:10,max:100,required:!0}),"grid"===i&&Object(Q.createElement)(me.RangeControl,{label:Object(X.__)("Columns"),value:l,onChange:function(e){return r({columns:e})},min:2,max:6,required:!0}))),Object(Q.createElement)("div",h,Object(Q.createElement)(me.Disabled,null,Object(Q.createElement)(hn.a,{block:"core/rss",attributes:t}))))}},Xl=Object(Q.createElement)(me.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Q.createElement)(me.Rect,{x:"7",y:"10",width:"10",height:"4",rx:"1",fill:"currentColor"})),Ql=Object(Q.createElement)(me.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Q.createElement)(me.Rect,{x:"4.75",y:"15.25",width:"6.5",height:"9.5",transform:"rotate(-90 4.75 15.25)",stroke:"currentColor",strokeWidth:"1.5",fill:"none"}),Object(Q.createElement)(me.Rect,{x:"16",y:"10",width:"4",height:"4",rx:"1",fill:"currentColor"})),es=Object(Q.createElement)(me.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Q.createElement)(me.Rect,{x:"4.75",y:"15.25",width:"6.5",height:"14.5",transform:"rotate(-90 4.75 15.25)",stroke:"currentColor",strokeWidth:"1.5",fill:"none"}),Object(Q.createElement)(me.Rect,{x:"14",y:"10",width:"4",height:"4",rx:"1",fill:"currentColor"})),ts=Object(Q.createElement)(me.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Q.createElement)(me.Rect,{x:"4.75",y:"15.25",width:"6.5",height:"14.5",transform:"rotate(-90 4.75 15.25)",stroke:"currentColor",fill:"none",strokeWidth:"1.5"})),rs=Object(Q.createElement)(me.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Q.createElement)(me.Rect,{x:"4.75",y:"7.75",width:"14.5",height:"8.5",rx:"1.25",stroke:"currentColor",fill:"none",strokeWidth:"1.5"}),Object(Q.createElement)(me.Rect,{x:"8",y:"11",width:"8",height:"2",fill:"currentColor"})),ns=Object(Q.createElement)(me.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Q.createElement)(me.Rect,{x:"4.75",y:"17.25",width:"5.5",height:"14.5",transform:"rotate(-90 4.75 17.25)",stroke:"currentColor",fill:"none",strokeWidth:"1.5"}),Object(Q.createElement)(me.Rect,{x:"4",y:"7",width:"10",height:"2",fill:"currentColor"})),cs=[{value:"%",label:"%",default:50},{value:"px",label:"px",default:350}];var os=[{name:"default",isDefault:!0,attributes:{buttonText:Object(X.__)("Search"),label:Object(X.__)("Search")}}],as={apiVersion:2,name:"core/search",category:"widgets",attributes:{label:{type:"string"},showLabel:{type:"boolean",default:!0},placeholder:{type:"string",default:""},width:{type:"number"},widthUnit:{type:"string"},buttonText:{type:"string"},buttonPosition:{type:"string",default:"button-outside"},buttonUseIcon:{type:"boolean",default:!1}},supports:{align:["left","center","right"],html:!1},editorStyle:"wp-block-search-editor",style:"wp-block-search"},is=as.name,ls={title:Object(X._x)("Search","block title"),description:Object(X.__)("Help visitors find your content."),icon:_t.a,keywords:[Object(X.__)("find")],example:{},variations:os,edit:function(e){var t=e.className,r=e.attributes,n=e.setAttributes,c=e.toggleSelection,o=e.isSelected,a=r.label,i=r.showLabel,l=r.placeholder,s=r.width,u=r.widthUnit,b=r.align,m=r.buttonText,d=r.buttonPosition,p=r.buttonUseIcon,g=Object(xe.useInstanceId)(Y.__experimentalUnitControl),h="wp-block-search__width-".concat(g),f=function(){return Object(Q.createElement)("input",{className:"wp-block-search__input","aria-label":Object(X.__)("Optional placeholder text"),placeholder:l?void 0:Object(X.__)("Optional placeholder…"),value:l,onChange:function(e){return n({placeholder:e.target.value})}})},O=function(){return Object(Q.createElement)(Q.Fragment,null,p&&Object(Q.createElement)(me.Button,{icon:_t.a,className:"wp-block-search__button"}),!p&&Object(Q.createElement)(Y.RichText,{className:"wp-block-search__button","aria-label":Object(X.__)("Button text"),placeholder:Object(X.__)("Add button text…"),withoutInteractiveFormatting:!0,value:m,onChange:function(e){return n({buttonText:e})}}))},v=Object(Q.createElement)(Q.Fragment,null,Object(Q.createElement)(Y.BlockControls,null,Object(Q.createElement)(me.ToolbarGroup,null,Object(Q.createElement)(me.ToolbarButton,{title:Object(X.__)("Toggle search label"),icon:ns,onClick:function(){n({showLabel:!i})},className:i?"is-pressed":void 0}),Object(Q.createElement)(me.DropdownMenu,{icon:function(){switch(d){case"button-inside":return es;case"button-outside":return Ql;case"no-button":return ts;case"button-only":return Xl}}(),label:Object(X.__)("Change button position")},(function(e){var t=e.onClose;return Object(Q.createElement)(me.MenuGroup,{className:"wp-block-search__button-position-menu"},Object(Q.createElement)(me.MenuItem,{icon:ts,onClick:function(){n({buttonPosition:"no-button"}),t()}},Object(X.__)("No Button")),Object(Q.createElement)(me.MenuItem,{icon:Ql,onClick:function(){n({buttonPosition:"button-outside"}),t()}},Object(X.__)("Button Outside")),Object(Q.createElement)(me.MenuItem,{icon:es,onClick:function(){n({buttonPosition:"button-inside"}),t()}},Object(X.__)("Button Inside")))})),"no-button"!==d&&Object(Q.createElement)(me.ToolbarButton,{title:Object(X.__)("Use button with icon"),icon:rs,onClick:function(){n({buttonUseIcon:!p})},className:p?"is-pressed":void 0}))),Object(Q.createElement)(Y.InspectorControls,null,Object(Q.createElement)(me.PanelBody,{title:Object(X.__)("Display Settings")},Object(Q.createElement)(me.BaseControl,{label:Object(X.__)("Width"),id:h},Object(Q.createElement)(Y.__experimentalUnitControl,{id:h,min:"".concat(220).concat("px"),onChange:function(e){var t="%"===u&&parseInt(e,10)>100?100:e;n({width:parseInt(t,10)})},onUnitChange:function(e){n({width:"%"===e?50:350,widthUnit:e})},style:{maxWidth:80},value:"".concat(s).concat(u),unit:u,units:cs}),Object(Q.createElement)(me.ButtonGroup,{className:"wp-block-search__components-button-group","aria-label":Object(X.__)("Percentage Width")},[25,50,75,100].map((function(e){return Object(Q.createElement)(me.Button,{key:e,isSmall:!0,isPrimary:"".concat(e,"%")==="".concat(s).concat(u),onClick:function(){return n({width:e,widthUnit:"%"})}},e,"%")}))))))),j=Object(Y.useBlockProps)({className:ne()(t,"button-inside"===d?"wp-block-search__button-inside":void 0,"button-outside"===d?"wp-block-search__button-outside":void 0,"no-button"===d?"wp-block-search__no-button":void 0,"button-only"===d?"wp-block-search__button-only":void 0,p||"no-button"===d?void 0:"wp-block-search__text-button",p&&"no-button"!==d?"wp-block-search__icon-button":void 0)});return Object(Q.createElement)("div",j,v,i&&Object(Q.createElement)(Y.RichText,{className:"wp-block-search__label","aria-label":Object(X.__)("Label text"),placeholder:Object(X.__)("Add label…"),withoutInteractiveFormatting:!0,value:a,onChange:function(e){return n({label:e})}}),Object(Q.createElement)(me.ResizableBox,{size:{width:"".concat(s).concat(u)},className:"wp-block-search__inside-wrapper",minWidth:220,enable:"button-only"===d?{}:{right:"right"!==b,left:"right"===b},onResizeStart:function(e,t,r){n({width:parseInt(r.offsetWidth,10),widthUnit:"px"}),c(!1)},onResizeStop:function(e,t,r,o){n({width:parseInt(s+o.width,10)}),c(!0)},showHandle:o},("button-inside"===d||"button-outside"===d)&&Object(Q.createElement)(Q.Fragment,null,f(),O()),"button-only"===d&&O(),"no-button"===d&&f()))}},ss=Object(Q.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(Q.createElement)(ee.Path,{d:"M18 4h-7c-1.1 0-2 .9-2 2v3H6c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2v-3h3c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-4.5 14c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-7c0-.3.2-.5.5-.5h3V13c0 1.1.9 2 2 2h2.5v3zm0-4.5H11c-.3 0-.5-.2-.5-.5v-2.5H13c.3 0 .5.2.5.5v2.5zm5-.5c0 .3-.2.5-.5.5h-3V11c0-1.1-.9-2-2-2h-2.5V6c0-.3.2-.5.5-.5h7c.3 0 .5.2.5.5v7z"}));function us(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function bs(e){for(var t=1;t".concat(e,"
")})}},{type:"raw",isMatch:function(e){var t,r=(t=!1,function(e){return"P"===e.nodeName||(t||"CITE"!==e.nodeName?void 0:(t=!0,!0))});return"BLOCKQUOTE"===e.nodeName&&Array.from(e.childNodes).every(r)},schema:function(e){var t=e.phrasingContentSchema;return{blockquote:{children:{p:{children:t},cite:{children:t}}}}}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.value,r=e.citation,n=[];return t&&""!==t&&n.push.apply(n,Object(q.a)(Object(_r.split)(Object(_r.create)({html:t,multilineTag:"p"}),"\u2028").map((function(e){return Object(K.createBlock)("core/paragraph",{content:Object(_r.toHTMLString)({value:e})})})))),r&&""!==r&&n.push(Object(K.createBlock)("core/paragraph",{content:r})),0===n.length?Object(K.createBlock)("core/paragraph",{content:""}):n}},{type:"block",blocks:["core/heading"],transform:function(e){var t=e.value,r=e.citation,n=Object(Yt.a)(e,["value","citation"]);if(""===t)return Object(K.createBlock)("core/heading",{content:r});var o=Object(_r.split)(Object(_r.create)({html:t,multilineTag:"p"}),"\u2028"),c=Object(K.createBlock)("core/heading",{content:Object(_r.toHTMLString)({value:o[0]})});if(!r&&1===o.length)return c;var a=o.slice(1);return[c,Object(K.createBlock)("core/quote",Er(Er({},n),{},{citation:r,value:Object(_r.toHTMLString)({value:a.length?Object(_r.join)(o.slice(1),"\u2028"):Object(_r.create)(),multilineTag:"p"})}))]}},{type:"block",blocks:["core/pullquote"],transform:function(e){var t=e.value,r=e.citation,n=e.anchor;return Object(K.createBlock)("core/pullquote",{value:t,citation:r,anchor:n})}}]};function xr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Sr(e){for(var t=1;t"+Object(X.__)("One of the hardest things to do in technology is disrupt yourself.")+"
",citation:Object(X.__)("Matt Mullenweg")}},styles:[{name:"default",label:Object(X._x)("Default","block style"),isDefault:!0},{name:"solid-color",label:Object(X.__)("Solid color")}],transforms:Ll,edit:Vl,save:function(e){var t,r,n=e.attributes,o=n.mainColor,c=n.customMainColor,a=n.textColor,i=n.customTextColor,l=n.value,s=n.citation,u=n.className;if(Object(J.includes)(u,Sl)){var b=Object(Y.getColorClassName)("background-color",o);t=ne()(Object(Z.a)({"has-background":b||c},b,b)),r={backgroundColor:b?void 0:c}}else c&&(r={borderColor:c});var m=Object(Y.getColorClassName)("color",a),d=(a||i)&&ne()("has-text-color",Object(Z.a)({},m,m)),p=m?void 0:{color:i};return Object(Q.createElement)("figure",Y.useBlockProps.save({className:t,style:r}),Object(Q.createElement)("blockquote",{className:d,style:p},Object(Q.createElement)(Y.RichText.Content,{value:l,multiline:!0}),!Y.RichText.isEmpty(s)&&Object(Q.createElement)(Y.RichText.Content,{tagName:"cite",value:s})))},deprecated:Nl},Fl=r(146),Ul=Object(Q.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Q.createElement)(ee.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"}));var Wl={apiVersion:2,name:"core/block",category:"reusable",attributes:{ref:{type:"number"}},supports:{customClassName:!1,html:!1,inserter:!1},editorStyle:"wp-block-editor"},ql=Wl.name,Zl={title:Object(X._x)("Reusable Block","block title"),description:Object(X.__)("Create and save content to reuse across your site. Update the block, and the changes apply everywhere it’s used."),edit:function(e){var t=e.attributes.ref,r=e.clientId,n=Object(Y.__experimentalUseNoRecursiveRenders)(t),o=Object(be.a)(n,2),c=o[0],a=o[1],i=Object(de.useSelect)((function(e){var r=e($.store).getEntityRecord("postType","wp_block",t),n=e($.store).hasFinishedResolution("getEntityRecord",["postType","wp_block",t]);return{hasResolved:n,isMissing:n&&!r}}),[t,r]),l=i.isMissing,s=i.hasResolved,u=Object(de.useDispatch)(Fl.store).__experimentalConvertBlockToStatic,b=Object($.useEntityBlockEditor)("postType","wp_block",{id:t}),m=Object(be.a)(b,3),d=m[0],p=m[1],g=m[2],h=Object($.useEntityProp)("postType","wp_block","title",t),f=Object(be.a)(h,2),O=f[0],v=f[1],j=Object(Y.__experimentalUseInnerBlocksProps)({},{value:d,onInput:p,onChange:g,renderAppender:null!=d&&d.length?void 0:Y.InnerBlocks.ButtonBlockAppender}),y=Object(Y.useBlockProps)();return c?Object(Q.createElement)("div",y,Object(Q.createElement)(Y.Warning,null,Object(X.__)("Block cannot be rendered inside itself."))):l?Object(Q.createElement)("div",y,Object(Q.createElement)(Y.Warning,null,Object(X.__)("Block has been deleted or is unavailable."))):s?Object(Q.createElement)(a,null,Object(Q.createElement)("div",y,Object(Q.createElement)(Y.BlockControls,null,Object(Q.createElement)(me.ToolbarGroup,null,Object(Q.createElement)(me.ToolbarButton,{onClick:function(){return u(r)},label:Object(X.__)("Convert to regular blocks"),icon:Ul,showTooltip:!0}))),Object(Q.createElement)(Y.InspectorControls,null,Object(Q.createElement)(me.PanelBody,null,Object(Q.createElement)(me.TextControl,{label:Object(X.__)("Name"),value:O,onChange:v}))),Object(Q.createElement)("div",{className:"block-library-block__reusable-block-container"},Object(Q.createElement)("div",j)))):Object(Q.createElement)("div",y,Object(Q.createElement)(me.Placeholder,null,Object(Q.createElement)(me.Spinner,null)))}},$l=Object(Q.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Q.createElement)(ee.Path,{d:"M5 10.2h-.8v1.5H5c1.9 0 3.8.8 5.1 2.1 1.4 1.4 2.1 3.2 2.1 5.1v.8h1.5V19c0-2.3-.9-4.5-2.6-6.2-1.6-1.6-3.8-2.6-6.1-2.6zm10.4-1.6C12.6 5.8 8.9 4.2 5 4.2h-.8v1.5H5c3.5 0 6.9 1.4 9.4 3.9s3.9 5.8 3.9 9.4v.8h1.5V19c0-3.9-1.6-7.6-4.4-10.4zM4 20h3v-3H4v3z"}));var Yl={apiVersion:2,name:"core/rss",category:"widgets",attributes:{columns:{type:"number",default:2},blockLayout:{type:"string",default:"list"},feedURL:{type:"string",default:""},itemsToShow:{type:"number",default:5},displayExcerpt:{type:"boolean",default:!1},displayAuthor:{type:"boolean",default:!1},displayDate:{type:"boolean",default:!1},excerptLength:{type:"number",default:55}},supports:{align:!0,html:!1},editorStyle:"wp-block-rss-editor",style:"wp-block-rss"},Kl=Yl.name,Jl={title:Object(X._x)("RSS","block title"),description:Object(X.__)("Display entries from any RSS or Atom feed."),icon:$l,keywords:[Object(X.__)("atom"),Object(X.__)("feed")],example:{attributes:{feedURL:"https://wordpress.org"}},edit:function(e){var t=e.attributes,r=e.setAttributes,n=Object(Q.useState)(!t.feedURL),o=Object(be.a)(n,2),c=o[0],a=o[1],i=t.blockLayout,l=t.columns,s=t.displayAuthor,u=t.displayDate,b=t.displayExcerpt,m=t.excerptLength,d=t.feedURL,p=t.itemsToShow;function g(e){return function(){var n=t[e];r(Object(Z.a)({},e,!n))}}var h=Object(Y.useBlockProps)();if(c)return Object(Q.createElement)("div",h,Object(Q.createElement)(me.Placeholder,{icon:$l,label:"RSS"},Object(Q.createElement)("form",{onSubmit:function(e){e.preventDefault(),d&&a(!1)},className:"wp-block-rss__placeholder-form"},Object(Q.createElement)(me.TextControl,{placeholder:Object(X.__)("Enter URL here…"),value:d,onChange:function(e){return r({feedURL:e})},className:"wp-block-rss__placeholder-input"}),Object(Q.createElement)(me.Button,{isPrimary:!0,type:"submit"},Object(X.__)("Use URL")))));var f=[{icon:$r.a,title:Object(X.__)("Edit RSS URL"),onClick:function(){return a(!0)}},{icon:zi,title:Object(X.__)("List view"),onClick:function(){return r({blockLayout:"list"})},isActive:"list"===i},{icon:Ni,title:Object(X.__)("Grid view"),onClick:function(){return r({blockLayout:"grid"})},isActive:"grid"===i}];return Object(Q.createElement)(Q.Fragment,null,Object(Q.createElement)(Y.BlockControls,null,Object(Q.createElement)(me.ToolbarGroup,{controls:f})),Object(Q.createElement)(Y.InspectorControls,null,Object(Q.createElement)(me.PanelBody,{title:Object(X.__)("RSS settings")},Object(Q.createElement)(me.RangeControl,{label:Object(X.__)("Number of items"),value:p,onChange:function(e){return r({itemsToShow:e})},min:1,max:10,required:!0}),Object(Q.createElement)(me.ToggleControl,{label:Object(X.__)("Display author"),checked:s,onChange:g("displayAuthor")}),Object(Q.createElement)(me.ToggleControl,{label:Object(X.__)("Display date"),checked:u,onChange:g("displayDate")}),Object(Q.createElement)(me.ToggleControl,{label:Object(X.__)("Display excerpt"),checked:b,onChange:g("displayExcerpt")}),b&&Object(Q.createElement)(me.RangeControl,{label:Object(X.__)("Max number of words in excerpt"),value:m,onChange:function(e){return r({excerptLength:e})},min:10,max:100,required:!0}),"grid"===i&&Object(Q.createElement)(me.RangeControl,{label:Object(X.__)("Columns"),value:l,onChange:function(e){return r({columns:e})},min:2,max:6,required:!0}))),Object(Q.createElement)("div",h,Object(Q.createElement)(me.Disabled,null,Object(Q.createElement)(hn.a,{block:"core/rss",attributes:t}))))}},Xl=Object(Q.createElement)(me.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Q.createElement)(me.Rect,{x:"7",y:"10",width:"10",height:"4",rx:"1",fill:"currentColor"})),Ql=Object(Q.createElement)(me.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Q.createElement)(me.Rect,{x:"4.75",y:"15.25",width:"6.5",height:"9.5",transform:"rotate(-90 4.75 15.25)",stroke:"currentColor",strokeWidth:"1.5",fill:"none"}),Object(Q.createElement)(me.Rect,{x:"16",y:"10",width:"4",height:"4",rx:"1",fill:"currentColor"})),es=Object(Q.createElement)(me.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Q.createElement)(me.Rect,{x:"4.75",y:"15.25",width:"6.5",height:"14.5",transform:"rotate(-90 4.75 15.25)",stroke:"currentColor",strokeWidth:"1.5",fill:"none"}),Object(Q.createElement)(me.Rect,{x:"14",y:"10",width:"4",height:"4",rx:"1",fill:"currentColor"})),ts=Object(Q.createElement)(me.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Q.createElement)(me.Rect,{x:"4.75",y:"15.25",width:"6.5",height:"14.5",transform:"rotate(-90 4.75 15.25)",stroke:"currentColor",fill:"none",strokeWidth:"1.5"})),rs=Object(Q.createElement)(me.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Q.createElement)(me.Rect,{x:"4.75",y:"7.75",width:"14.5",height:"8.5",rx:"1.25",stroke:"currentColor",fill:"none",strokeWidth:"1.5"}),Object(Q.createElement)(me.Rect,{x:"8",y:"11",width:"8",height:"2",fill:"currentColor"})),ns=Object(Q.createElement)(me.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Q.createElement)(me.Rect,{x:"4.75",y:"17.25",width:"5.5",height:"14.5",transform:"rotate(-90 4.75 17.25)",stroke:"currentColor",fill:"none",strokeWidth:"1.5"}),Object(Q.createElement)(me.Rect,{x:"4",y:"7",width:"10",height:"2",fill:"currentColor"})),os=[{value:"%",label:"%",default:50},{value:"px",label:"px",default:350}];var cs=[{name:"default",isDefault:!0,attributes:{buttonText:Object(X.__)("Search"),label:Object(X.__)("Search")}}],as={apiVersion:2,name:"core/search",category:"widgets",attributes:{label:{type:"string"},showLabel:{type:"boolean",default:!0},placeholder:{type:"string",default:""},width:{type:"number"},widthUnit:{type:"string"},buttonText:{type:"string"},buttonPosition:{type:"string",default:"button-outside"},buttonUseIcon:{type:"boolean",default:!1}},supports:{align:["left","center","right"],html:!1},editorStyle:"wp-block-search-editor",style:"wp-block-search"},is=as.name,ls={title:Object(X._x)("Search","block title"),description:Object(X.__)("Help visitors find your content."),icon:_t.a,keywords:[Object(X.__)("find")],example:{},variations:cs,edit:function(e){var t=e.className,r=e.attributes,n=e.setAttributes,o=e.toggleSelection,c=e.isSelected,a=r.label,i=r.showLabel,l=r.placeholder,s=r.width,u=r.widthUnit,b=r.align,m=r.buttonText,d=r.buttonPosition,p=r.buttonUseIcon,g=Object(xe.useInstanceId)(Y.__experimentalUnitControl),h="wp-block-search__width-".concat(g),f=function(){return Object(Q.createElement)("input",{className:"wp-block-search__input","aria-label":Object(X.__)("Optional placeholder text"),placeholder:l?void 0:Object(X.__)("Optional placeholder…"),value:l,onChange:function(e){return n({placeholder:e.target.value})}})},O=function(){return Object(Q.createElement)(Q.Fragment,null,p&&Object(Q.createElement)(me.Button,{icon:_t.a,className:"wp-block-search__button"}),!p&&Object(Q.createElement)(Y.RichText,{className:"wp-block-search__button","aria-label":Object(X.__)("Button text"),placeholder:Object(X.__)("Add button text…"),withoutInteractiveFormatting:!0,value:m,onChange:function(e){return n({buttonText:e})}}))},v=Object(Q.createElement)(Q.Fragment,null,Object(Q.createElement)(Y.BlockControls,null,Object(Q.createElement)(me.ToolbarGroup,null,Object(Q.createElement)(me.ToolbarButton,{title:Object(X.__)("Toggle search label"),icon:ns,onClick:function(){n({showLabel:!i})},className:i?"is-pressed":void 0}),Object(Q.createElement)(me.DropdownMenu,{icon:function(){switch(d){case"button-inside":return es;case"button-outside":return Ql;case"no-button":return ts;case"button-only":return Xl}}(),label:Object(X.__)("Change button position")},(function(e){var t=e.onClose;return Object(Q.createElement)(me.MenuGroup,{className:"wp-block-search__button-position-menu"},Object(Q.createElement)(me.MenuItem,{icon:ts,onClick:function(){n({buttonPosition:"no-button"}),t()}},Object(X.__)("No Button")),Object(Q.createElement)(me.MenuItem,{icon:Ql,onClick:function(){n({buttonPosition:"button-outside"}),t()}},Object(X.__)("Button Outside")),Object(Q.createElement)(me.MenuItem,{icon:es,onClick:function(){n({buttonPosition:"button-inside"}),t()}},Object(X.__)("Button Inside")))})),"no-button"!==d&&Object(Q.createElement)(me.ToolbarButton,{title:Object(X.__)("Use button with icon"),icon:rs,onClick:function(){n({buttonUseIcon:!p})},className:p?"is-pressed":void 0}))),Object(Q.createElement)(Y.InspectorControls,null,Object(Q.createElement)(me.PanelBody,{title:Object(X.__)("Display Settings")},Object(Q.createElement)(me.BaseControl,{label:Object(X.__)("Width"),id:h},Object(Q.createElement)(Y.__experimentalUnitControl,{id:h,min:"".concat(220).concat("px"),onChange:function(e){var t="%"===u&&parseInt(e,10)>100?100:e;n({width:parseInt(t,10)})},onUnitChange:function(e){n({width:"%"===e?50:350,widthUnit:e})},style:{maxWidth:80},value:"".concat(s).concat(u),unit:u,units:os}),Object(Q.createElement)(me.ButtonGroup,{className:"wp-block-search__components-button-group","aria-label":Object(X.__)("Percentage Width")},[25,50,75,100].map((function(e){return Object(Q.createElement)(me.Button,{key:e,isSmall:!0,isPrimary:"".concat(e,"%")==="".concat(s).concat(u),onClick:function(){return n({width:e,widthUnit:"%"})}},e,"%")}))))))),j=Object(Y.useBlockProps)({className:ne()(t,"button-inside"===d?"wp-block-search__button-inside":void 0,"button-outside"===d?"wp-block-search__button-outside":void 0,"no-button"===d?"wp-block-search__no-button":void 0,"button-only"===d?"wp-block-search__button-only":void 0,p||"no-button"===d?void 0:"wp-block-search__text-button",p&&"no-button"!==d?"wp-block-search__icon-button":void 0)});return Object(Q.createElement)("div",j,v,i&&Object(Q.createElement)(Y.RichText,{className:"wp-block-search__label","aria-label":Object(X.__)("Label text"),placeholder:Object(X.__)("Add label…"),withoutInteractiveFormatting:!0,value:a,onChange:function(e){return n({label:e})}}),Object(Q.createElement)(me.ResizableBox,{size:{width:"".concat(s).concat(u)},className:"wp-block-search__inside-wrapper",minWidth:220,enable:"button-only"===d?{}:{right:"right"!==b,left:"right"===b},onResizeStart:function(e,t,r){n({width:parseInt(r.offsetWidth,10),widthUnit:"px"}),o(!1)},onResizeStop:function(e,t,r,c){n({width:parseInt(s+c.width,10)}),o(!0)},showHandle:c},("button-inside"===d||"button-outside"===d)&&Object(Q.createElement)(Q.Fragment,null,f(),O()),"button-only"===d&&O(),"no-button"===d&&f()))}},ss=Object(Q.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(Q.createElement)(ee.Path,{d:"M18 4h-7c-1.1 0-2 .9-2 2v3H6c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2v-3h3c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-4.5 14c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-7c0-.3.2-.5.5-.5h3V13c0 1.1.9 2 2 2h2.5v3zm0-4.5H11c-.3 0-.5-.2-.5-.5v-2.5H13c.3 0 .5.2.5.5v2.5zm5-.5c0 .3-.2.5-.5.5h-3V11c0-1.1-.9-2-2-2h-2.5V6c0-.3.2-.5.5-.5h7c.3 0 .5.2.5.5v7z"}));function us(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function bs(e){for(var t=1;t[^\r]+?<\/pre>)/gm,(function(e,t){var r=t;return r=(r=r.replace(/^ /gm,"¨0")).replace(/¨0/g,"")})),i.subParser("hashBlock")("","gim"),e=r.converter._dispatch("hashPreCodeTags.after",e,t,r)})),i.subParser("headers",(function(e,t,r){"use strict";e=r.converter._dispatch("headers.before",e,t,r);var n=isNaN(parseInt(t.headerLevelStart))?1:parseInt(t.headerLevelStart),a=t.smoothLivePreview?/^(.+)[ \t]*\n={2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n=+[ \t]*\n+/gm,o=t.smoothLivePreview?/^(.+)[ \t]*\n-{2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n-+[ \t]*\n+/gm;e=(e=e.replace(a,(function(e,a){var o=i.subParser("spanGamut")(a,t,r),s=t.noHeaderId?"":' id="'+c(a)+'"',u="\n"+e+"\n",t,r)})),e=r.converter._dispatch("blockQuotes.after",e,t,r)})),i.subParser("codeBlocks",(function(e,t,r){"use strict";e=r.converter._dispatch("codeBlocks.before",e,t,r);return e=(e=(e+="¨0").replace(/(?:\n\n|^)((?:(?:[ ]{4}|\t).*\n+)+)(\n*[ ]{0,3}[^ \t\n]|(?=¨0))/g,(function(e,n,a){var o=n,s=a,c="\n";return o=i.subParser("outdent")(o,t,r),o=i.subParser("encodeCode")(o,t,r),o=(o=(o=i.subParser("detab")(o,t,r)).replace(/^\n+/g,"")).replace(/\n+$/g,""),t.omitExtraWLInCodeBlocks&&(c=""),o="",i.subParser("hashBlock")(o,t,r)+s}))).replace(/¨0/,""),e=r.converter._dispatch("codeBlocks.after",e,t,r)})),i.subParser("codeSpans",(function(e,t,r){"use strict";return void 0===(e=r.converter._dispatch("codeSpans.before",e,t,r))&&(e=""),e=e.replace(/(^|[^\\])(`+)([^\r]*?[^`])\2(?!`)/gm,(function(e,n,a,o){var s=o;return s=(s=s.replace(/^([ \t]*)/g,"")).replace(/[ \t]*$/g,""),s=n+""+o+c+"
"+(s=i.subParser("encodeCode")(s,t,r))+"
",s=i.subParser("hashHTMLSpans")(s,t,r)})),e=r.converter._dispatch("codeSpans.after",e,t,r)})),i.subParser("completeHTMLDocument",(function(e,t,r){"use strict";if(!t.completeHTMLDocument)return e;e=r.converter._dispatch("completeHTMLDocument.before",e,t,r);var n="html",a="\n",i="",o='\n',s="",c="";for(var u in void 0!==r.metadata.parsed.doctype&&(a="\n","html"!==(n=r.metadata.parsed.doctype.toString().toLowerCase())&&"html5"!==n||(o='')),r.metadata.parsed)if(r.metadata.parsed.hasOwnProperty(u))switch(u.toLowerCase()){case"doctype":break;case"title":i=""+r.metadata.parsed.title+" \n";break;case"charset":o="html"===n||"html5"===n?'\n':'\n';break;case"language":case"lang":s=' lang="'+r.metadata.parsed[u]+'"',c+='\n';break;default:c+='\n'}return e=a+"\n\n"+i+o+c+"\n\n"+e.trim()+"\n\n",e=r.converter._dispatch("completeHTMLDocument.after",e,t,r)})),i.subParser("detab",(function(e,t,r){"use strict";return e=(e=(e=(e=(e=(e=r.converter._dispatch("detab.before",e,t,r)).replace(/\t(?=\t)/g," ")).replace(/\t/g,"¨A¨B")).replace(/¨B(.+?)¨A/g,(function(e,t){for(var r=t,n=4-r.length%4,a=0;a/g,">"),e=r.converter._dispatch("encodeAmpsAndAngles.after",e,t,r)})),i.subParser("encodeBackslashEscapes",(function(e,t,r){"use strict";return e=(e=(e=r.converter._dispatch("encodeBackslashEscapes.before",e,t,r)).replace(/\\(\\)/g,i.helper.escapeCharactersCallback)).replace(/\\([`*_{}\[\]()>#+.!~=|-])/g,i.helper.escapeCharactersCallback),e=r.converter._dispatch("encodeBackslashEscapes.after",e,t,r)})),i.subParser("encodeCode",(function(e,t,r){"use strict";return e=(e=r.converter._dispatch("encodeCode.before",e,t,r)).replace(/&/g,"&").replace(//g,">").replace(/([*_{}\[\]\\=~-])/g,i.helper.escapeCharactersCallback),e=r.converter._dispatch("encodeCode.after",e,t,r)})),i.subParser("escapeSpecialCharsWithinTagAttributes",(function(e,t,r){"use strict";return e=(e=(e=r.converter._dispatch("escapeSpecialCharsWithinTagAttributes.before",e,t,r)).replace(/<\/?[a-z\d_:-]+(?:[\s]+[\s\S]+?)?>/gi,(function(e){return e.replace(/(.)<\/?code>(?=.)/g,"$1`").replace(/([\\`*_~=|])/g,i.helper.escapeCharactersCallback)}))).replace(/-]|-[^>])(?:[^-]|-[^-])*)--)>/gi,(function(e){return e.replace(/([\\`*_~=|])/g,i.helper.escapeCharactersCallback)})),e=r.converter._dispatch("escapeSpecialCharsWithinTagAttributes.after",e,t,r)})),i.subParser("githubCodeBlocks",(function(e,t,r){"use strict";return t.ghCodeBlocks?(e=r.converter._dispatch("githubCodeBlocks.before",e,t,r),e=(e=(e+="¨0").replace(/(?:^|\n)(?: {0,3})(```+|~~~+)(?: *)([^\s`~]*)\n([\s\S]*?)\n(?: {0,3})\1/g,(function(e,n,a,o){var s=t.omitExtraWLInCodeBlocks?"":"\n";return o=i.subParser("encodeCode")(o,t,r),o=" ",o=i.subParser("hashBlock")(o,t,r),"\n\n¨G"+(r.ghCodeBlocks.push({text:e,codeblock:o})-1)+"G\n\n"}))).replace(/¨0/,""),r.converter._dispatch("githubCodeBlocks.after",e,t,r)):e})),i.subParser("hashBlock",(function(e,t,r){"use strict";return e=(e=r.converter._dispatch("hashBlock.before",e,t,r)).replace(/(^\n+|\n+$)/g,""),e="\n\n¨K"+(r.gHtmlBlocks.push(e)-1)+"K\n\n",e=r.converter._dispatch("hashBlock.after",e,t,r)})),i.subParser("hashCodeTags",(function(e,t,r){"use strict";e=r.converter._dispatch("hashCodeTags.before",e,t,r);return e=i.helper.replaceRecursiveRegExp(e,(function(e,n,a,o){var s=a+i.subParser("encodeCode")(n,t,r)+o;return"¨C"+(r.gHtmlSpans.push(s)-1)+"C"}),""+(o=(o=(o=i.subParser("detab")(o,t,r)).replace(/^\n+/g,"")).replace(/\n+$/g,""))+s+"
]*>","
","gim"),e=r.converter._dispatch("hashCodeTags.after",e,t,r)})),i.subParser("hashElement",(function(e,t,r){"use strict";return function(e,t){var n=t;return n=(n=(n=n.replace(/\n\n/g,"\n")).replace(/^\n/,"")).replace(/\n+$/g,""),n="\n\n¨K"+(r.gHtmlBlocks.push(n)-1)+"K\n\n"}})),i.subParser("hashHTMLBlocks",(function(e,t,r){"use strict";e=r.converter._dispatch("hashHTMLBlocks.before",e,t,r);var n=["pre","div","h1","h2","h3","h4","h5","h6","blockquote","table","dl","ol","ul","script","noscript","form","fieldset","iframe","math","style","section","header","footer","nav","article","aside","address","audio","canvas","figure","hgroup","output","video","p"],a=function(e,t,n,a){var i=e;return-1!==n.search(/\bmarkdown\b/)&&(i=n+r.converter.makeHtml(t)+a),"\n\n¨K"+(r.gHtmlBlocks.push(i)-1)+"K\n\n"};t.backslashEscapesHTMLTags&&(e=e.replace(/\\<(\/?[^>]+?)>/g,(function(e,t){return"<"+t+">"})));for(var o=0;o]*>)","im"),u="<"+n[o]+"\\b[^>]*>",l=""+n[o]+">";-1!==(s=i.helper.regexIndexOf(e,c));){var d=i.helper.splitAtIndex(e,s),f=i.helper.replaceRecursiveRegExp(d[1],a,u,l,"im");if(f===d[1])break;e=d[0].concat(f)}return e=e.replace(/(\n {0,3}(<(hr)\b([^<>])*?\/?>)[ \t]*(?=\n{2,}))/g,i.subParser("hashElement")(e,t,r)),e=(e=i.helper.replaceRecursiveRegExp(e,(function(e){return"\n\n¨K"+(r.gHtmlBlocks.push(e)-1)+"K\n\n"}),"^ {0,3}\x3c!--","--\x3e","gm")).replace(/(?:\n\n)( {0,3}(?:<([?%])[^\r]*?\2>)[ \t]*(?=\n{2,}))/g,i.subParser("hashElement")(e,t,r)),e=r.converter._dispatch("hashHTMLBlocks.after",e,t,r)})),i.subParser("hashHTMLSpans",(function(e,t,r){"use strict";function n(e){return"¨C"+(r.gHtmlSpans.push(e)-1)+"C"}return e=(e=(e=(e=(e=r.converter._dispatch("hashHTMLSpans.before",e,t,r)).replace(/<[^>]+?\/>/gi,(function(e){return n(e)}))).replace(/<([^>]+?)>[\s\S]*?<\/\1>/g,(function(e){return n(e)}))).replace(/<([^>]+?)\s[^>]+?>[\s\S]*?<\/\1>/g,(function(e){return n(e)}))).replace(/<[^>]+?>/gi,(function(e){return n(e)})),e=r.converter._dispatch("hashHTMLSpans.after",e,t,r)})),i.subParser("unhashHTMLSpans",(function(e,t,r){"use strict";e=r.converter._dispatch("unhashHTMLSpans.before",e,t,r);for(var n=0;n ]*>\\s* ]*>","^ {0,3}
\\s*
"),c+="
",a.push(c))}for(o=a.length,s=0;s]*>/.test(l)&&(d=!0)}a[s]=l}return e=(e=(e=a.join("\n")).replace(/^\n+/g,"")).replace(/\n+$/g,""),r.converter._dispatch("paragraphs.after",e,t,r)})),i.subParser("runExtension",(function(e,t,r,n){"use strict";if(e.filter)t=e.filter(t,n.converter,r);else if(e.regex){var a=e.regex;a instanceof RegExp||(a=new RegExp(a,"g")),t=t.replace(a,e.replace)}return t})),i.subParser("spanGamut",(function(e,t,r){"use strict";return e=r.converter._dispatch("spanGamut.before",e,t,r),e=i.subParser("codeSpans")(e,t,r),e=i.subParser("escapeSpecialCharsWithinTagAttributes")(e,t,r),e=i.subParser("encodeBackslashEscapes")(e,t,r),e=i.subParser("images")(e,t,r),e=i.subParser("anchors")(e,t,r),e=i.subParser("autoLinks")(e,t,r),e=i.subParser("simplifiedAutoLinks")(e,t,r),e=i.subParser("emoji")(e,t,r),e=i.subParser("underline")(e,t,r),e=i.subParser("italicsAndBold")(e,t,r),e=i.subParser("strikethrough")(e,t,r),e=i.subParser("ellipsis")(e,t,r),e=i.subParser("hashHTMLSpans")(e,t,r),e=i.subParser("encodeAmpsAndAngles")(e,t,r),t.simpleLineBreaks?/\n\n¨K/.test(e)||(e=e.replace(/\n+/g,"
\n")):e=e.replace(/ +\n/g,"
\n"),e=r.converter._dispatch("spanGamut.after",e,t,r)})),i.subParser("strikethrough",(function(e,t,r){"use strict";return t.strikethrough&&(e=(e=r.converter._dispatch("strikethrough.before",e,t,r)).replace(/(?:~){2}([\s\S]+?)(?:~){2}/g,(function(e,n){return function(e){return t.simplifiedAutoLink&&(e=i.subParser("simplifiedAutoLinks")(e,t,r)),""+e+""}(n)})),e=r.converter._dispatch("strikethrough.after",e,t,r)),e})),i.subParser("stripLinkDefinitions",(function(e,t,r){"use strict";var n=function(e,n,a,o,s,c,u){return n=n.toLowerCase(),a.match(/^data:.+?\/.+?;base64,/)?r.gUrls[n]=a.replace(/\s/g,""):r.gUrls[n]=i.subParser("encodeAmpsAndAngles")(a,t,r),c?c+u:(u&&(r.gTitles[n]=u.replace(/"|'/g,""")),t.parseImgDimensions&&o&&s&&(r.gDimensions[n]={width:o,height:s}),"")};return e=(e=(e=(e+="¨0").replace(/^ {0,3}\[(.+)]:[ \t]*\n?[ \t]*(data:.+?\/.+?;base64,[A-Za-z0-9+/=\n]+?)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n\n|(?=¨0)|(?=\n\[))/gm,n)).replace(/^ {0,3}\[(.+)]:[ \t]*\n?[ \t]*([^>\s]+)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n+|(?=¨0))/gm,n)).replace(/¨0/,"")})),i.subParser("tables",(function(e,t,r){"use strict";if(!t.tables)return e;function n(e,n){return""+i.subParser("spanGamut")(e,t,r)+" \n"}function a(e){var a,o=e.split("\n");for(a=0;a"+(c=i.subParser("spanGamut")(c,t,r))+"\n"));for(a=0;a\n\n\n",a=0;a\n";for(var i=0;i\n"}return r+=" \n\n"}(h,b)}return e=(e=(e=(e=r.converter._dispatch("tables.before",e,t,r)).replace(/\\(\|)/g,i.helper.escapeCharactersCallback)).replace(/^ {0,3}\|?.+\|.+\n {0,3}\|?[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*:?[ \t]*(?:[-=]){2,}[\s\S]+?(?:\n\n|¨0)/gm,a)).replace(/^ {0,3}\|.+\|[ \t]*\n {0,3}\|[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*\n( {0,3}\|.+\|[ \t]*\n)*(?:\n|¨0)/gm,a),e=r.converter._dispatch("tables.after",e,t,r)})),i.subParser("underline",(function(e,t,r){"use strict";return t.underline?(e=r.converter._dispatch("underline.before",e,t,r),e=(e=t.literalMidWordUnderscores?(e=e.replace(/\b___(\S[\s\S]*?)___\b/g,(function(e,t){return""+t+""}))).replace(/\b__(\S[\s\S]*?)__\b/g,(function(e,t){return""+t+""})):(e=e.replace(/___(\S[\s\S]*?)___/g,(function(e,t){return/\S$/.test(t)?""+t+"":e}))).replace(/__(\S[\s\S]*?)__/g,(function(e,t){return/\S$/.test(t)?""+t+"":e}))).replace(/(_)/g,i.helper.escapeCharactersCallback),e=r.converter._dispatch("underline.after",e,t,r)):e})),i.subParser("unescapeSpecialChars",(function(e,t,r){"use strict";return e=(e=r.converter._dispatch("unescapeSpecialChars.before",e,t,r)).replace(/¨E(\d+)E/g,(function(e,t){var r=parseInt(t);return String.fromCharCode(r)})),e=r.converter._dispatch("unescapeSpecialChars.after",e,t,r)})),i.subParser("makeMarkdown.blockquote",(function(e,t){"use strict";var r="";if(e.hasChildNodes())for(var n=e.childNodes,a=n.length,o=0;o ")})),i.subParser("makeMarkdown.codeBlock",(function(e,t){"use strict";var r=e.getAttribute("language"),n=e.getAttribute("precodenum");return"```"+r+"\n"+t.preList[n]+"\n```"})),i.subParser("makeMarkdown.codeSpan",(function(e){"use strict";return"`"+e.innerHTML+"`"})),i.subParser("makeMarkdown.emphasis",(function(e,t){"use strict";var r="";if(e.hasChildNodes()){r+="*";for(var n=e.childNodes,a=n.length,o=0;o",e.hasAttribute("width")&&e.hasAttribute("height")&&(t+=" ="+e.getAttribute("width")+"x"+e.getAttribute("height")),e.hasAttribute("title")&&(t+=' "'+e.getAttribute("title")+'"'),t+=")"),t})),i.subParser("makeMarkdown.links",(function(e,t){"use strict";var r="";if(e.hasChildNodes()&&e.hasAttribute("href")){var n=e.childNodes,a=n.length;r="[";for(var o=0;o",e.hasAttribute("title")&&(r+=' "'+e.getAttribute("title")+'"'),r+=")"}return r})),i.subParser("makeMarkdown.list",(function(e,t,r){"use strict";var n="";if(!e.hasChildNodes())return"";for(var a=e.childNodes,o=a.length,s=e.getAttribute("start")||1,c=0;c"+t.preList[r]+""})),i.subParser("makeMarkdown.strikethrough",(function(e,t){"use strict";var r="";if(e.hasChildNodes()){r+="~~";for(var n=e.childNodes,a=n.length,o=0;otr>th"),c=e.querySelectorAll("tbody>tr");for(r=0;rh&&(h=g)}for(r=0;r/g,"\\$1>")).replace(/^#/gm,"\\#")).replace(/^(\s*)([-=]{3,})(\s*)$/,"$1\\$2$3")).replace(/^( {0,3}\d+)\./gm,"$1\\.")).replace(/^( {0,3})([+-])/gm,"$1\\$2")).replace(/]([\s]*)\(/g,"\\]$1\\(")).replace(/^ {0,3}\[([\S \t]*?)]:/gm,"\\[$1]:")}));void 0===(n=function(){"use strict";return i}.call(t,r,t,e))||(e.exports=n)}).call(this)},31:function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r(24);function a(e,t){if(e){if("string"==typeof e)return Object(n.a)(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Object(n.a)(e,t):void 0}}},33:function(e,t){e.exports=window.wp.hooks},35:function(e,t){e.exports=window.wp.deprecated},37:function(e,t,r){"use strict";function n(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}r.d(t,"a",(function(){return n}))},38:function(e,t,r){"use strict";function n(e){if(Array.isArray(e))return e}r.d(t,"a",(function(){return n}))},39:function(e,t,r){"use strict";function n(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}r.d(t,"a",(function(){return n}))},4:function(e,t){e.exports=window.wp.data},41:function(e,t,r){"use strict";var n,a;function i(e){return[e]}function o(){var e={clear:function(){e.head=null}};return e}function s(e,t,r){var n;if(e.length!==t.length)return!1;for(n=r;n0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1?arguments[1]:void 0;switch(r.type){case"REMOVE_BLOCK_TYPES":return-1!==r.names.indexOf(t)?null:t;case e:return r.name||null}return t}}var h=p("SET_DEFAULT_BLOCK_NAME"),g=p("SET_FREEFORM_FALLBACK_BLOCK_NAME"),b=p("SET_UNREGISTERED_FALLBACK_BLOCK_NAME"),m=p("SET_GROUPING_BLOCK_NAME");var _=Object(i.combineReducers)({blockTypes:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ADD_BLOCK_TYPES":return d(d({},e),Object(c.keyBy)(Object(c.map)(t.blockTypes,(function(e){return Object(c.omit)(e,"styles ")})),"name"));case"REMOVE_BLOCK_TYPES":return Object(c.omit)(e,t.names)}return e},blockStyles:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ADD_BLOCK_TYPES":return d(d({},e),Object(c.mapValues)(Object(c.keyBy)(t.blockTypes,"name"),(function(t){return Object(c.uniqBy)([].concat(Object(o.a)(Object(c.get)(t,["styles"],[])),Object(o.a)(Object(c.get)(e,[t.name],[]))),(function(e){return e.name}))})));case"ADD_BLOCK_STYLES":return d(d({},e),{},Object(s.a)({},t.blockName,Object(c.uniqBy)([].concat(Object(o.a)(Object(c.get)(e,[t.blockName],[])),Object(o.a)(t.styles)),(function(e){return e.name}))));case"REMOVE_BLOCK_STYLES":return d(d({},e),{},Object(s.a)({},t.blockName,Object(c.filter)(Object(c.get)(e,[t.blockName],[]),(function(e){return-1===t.styleNames.indexOf(e.name)}))))}return e},blockVariations:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ADD_BLOCK_TYPES":return d(d({},e),Object(c.mapValues)(Object(c.keyBy)(t.blockTypes,"name"),(function(t){return Object(c.uniqBy)([].concat(Object(o.a)(Object(c.get)(t,["variations"],[])),Object(o.a)(Object(c.get)(e,[t.name],[]))),(function(e){return e.name}))})));case"ADD_BLOCK_VARIATIONS":return d(d({},e),{},Object(s.a)({},t.blockName,Object(c.uniqBy)([].concat(Object(o.a)(Object(c.get)(e,[t.blockName],[])),Object(o.a)(t.variations)),(function(e){return e.name}))));case"REMOVE_BLOCK_VARIATIONS":return d(d({},e),{},Object(s.a)({},t.blockName,Object(c.filter)(Object(c.get)(e,[t.blockName],[]),(function(e){return-1===t.variationNames.indexOf(e.name)}))))}return e},defaultBlockName:h,freeformFallbackBlockName:g,unregisteredFallbackBlockName:b,groupingBlockName:m,categories:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_CATEGORIES":return t.categories||[];case"UPDATE_CATEGORY":if(!t.category||Object(c.isEmpty)(t.category))return e;var r=Object(c.find)(e,["slug",t.slug]);if(r)return Object(c.map)(e,(function(e){return e.slug===t.slug?d(d({},e),t.category):e}))}return e},collections:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ADD_BLOCK_COLLECTION":return d(d({},e),{},Object(s.a)({},t.namespace,{title:t.title,icon:t.icon}));case"REMOVE_BLOCK_COLLECTION":return Object(c.omit)(e,t.namespace)}return e}}),v=r(41);function y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function w(e){for(var t=1;t0},H=function(e,t){return Object(c.some)(D(e,t),(function(t){return M(e,t,"inserter",!0)}))};function V(e){return{type:"ADD_BLOCK_TYPES",blockTypes:Object(c.castArray)(e)}}function R(e){return{type:"REMOVE_BLOCK_TYPES",names:Object(c.castArray)(e)}}function F(e,t){return{type:"ADD_BLOCK_STYLES",styles:Object(c.castArray)(t),blockName:e}}function $(e,t){return{type:"REMOVE_BLOCK_STYLES",styleNames:Object(c.castArray)(t),blockName:e}}function q(e,t){return{type:"ADD_BLOCK_VARIATIONS",variations:Object(c.castArray)(t),blockName:e}}function U(e,t){return{type:"REMOVE_BLOCK_VARIATIONS",variationNames:Object(c.castArray)(t),blockName:e}}function G(e){return{type:"SET_DEFAULT_BLOCK_NAME",name:e}}function K(e){return{type:"SET_FREEFORM_FALLBACK_BLOCK_NAME",name:e}}function W(e){return{type:"SET_UNREGISTERED_FALLBACK_BLOCK_NAME",name:e}}function Q(e){return{type:"SET_GROUPING_BLOCK_NAME",name:e}}function Y(e){return{type:"SET_CATEGORIES",categories:e}}function Z(e,t){return{type:"UPDATE_CATEGORY",slug:e,category:t}}function X(e,t,r){return{type:"ADD_BLOCK_COLLECTION",namespace:e,title:t,icon:r}}function J(e){return{type:"REMOVE_BLOCK_COLLECTION",namespace:e}}var ee=Object(i.createReduxStore)("core/blocks",{reducer:_,selectors:n,actions:a});Object(i.register)(ee);var te=r(11),re=r(204),ne=r(33),ae=r(215),ie=r(60),oe=r.n(ie),se=r(0),ce=r(27);function ue(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function le(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:"visual";if("core/template-part"===e.name&&t.slug){var n,a=Object(i.select)("core").getEntityRecord("postType","wp_template_part",t.theme+"//"+t.slug);if(a)return Object(c.startCase)((null===(n=a.title)||void 0===n?void 0:n.rendered)||a.slug)}var o=e.__experimentalLabel,s=e.title,u=o&&o(t,{context:r});return u?Object(ce.__unstableStripHTML)(u):s}function me(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"vertical",a=e.title,i=be(e,t,"accessibility"),o=void 0!==r,s=i&&i!==a;return o&&"vertical"===n?s?Object(u.sprintf)(Object(u.__)("%1$s Block. Row %2$d. %3$s"),a,r,i):Object(u.sprintf)(Object(u.__)("%1$s Block. Row %2$d"),a,r):o&&"horizontal"===n?s?Object(u.sprintf)(Object(u.__)("%1$s Block. Column %2$d. %3$s"),a,r,i):Object(u.sprintf)(Object(u.__)("%1$s Block. Column %2$d"),a,r):s?Object(u.sprintf)(Object(u.__)("%1$s Block. %2$s"),a,i):Object(u.sprintf)(Object(u.__)("%s Block"),a)}function _e(e,t){var r=ze(e);if(void 0===r)throw new Error("Block type '".concat(e,"' is not registered."));return Object(c.reduce)(r.attributes,(function(e,r,n){var a=t[n];return void 0!==a?e[n]=a:r.hasOwnProperty("default")&&(e[n]=r.default),-1!==["node","children"].indexOf(r.source)&&("string"==typeof e[n]?e[n]=[e[n]]:Array.isArray(e[n])||(e[n]=[])),e}),{})}var ve=["attributes","supports","save","migrate","isEligible","apiVersion"],ye={"--wp--style--color--link":{value:["color","link"],support:["color","link"]},background:{value:["color","gradient"],support:["color","gradients"]},backgroundColor:{value:["color","background"],support:["color"]},borderRadius:{value:["border","radius"],support:["__experimentalBorder","radius"]},color:{value:["color","text"],support:["color"]},fontFamily:{value:["typography","fontFamily"],support:["__experimentalFontFamily"]},fontSize:{value:["typography","fontSize"],support:["fontSize"]},fontStyle:{value:["typography","fontStyle"],support:["__experimentalFontStyle"]},fontWeight:{value:["typography","fontWeight"],support:["__experimentalFontWeight"]},lineHeight:{value:["typography","lineHeight"],support:["lineHeight"]},padding:{value:["spacing","padding"],support:["spacing","padding"],properties:["top","right","bottom","left"]},textDecoration:{value:["typography","textDecoration"],support:["__experimentalTextDecoration"]},textTransform:{value:["typography","textTransform"],support:["__experimentalTextTransform"]}};function we(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ke(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=_e(e,t),a=Object(re.a)();return{clientId:a,name:e,isValid:!0,attributes:n,innerBlocks:r}}function Je(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map((function(e){var t=Array.isArray(e)?e:[e.name,e.attributes,e.innerBlocks],r=Object(te.a)(t,3),n=r[0],a=r[1],i=r[2];return Xe(n,a,Je(void 0===i?[]:i))}))}function et(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,n=Object(re.a)(),a=_e(e.name,Ze(Ze({},e.attributes),t));return Ze(Ze({},e),{},{clientId:n,attributes:a,innerBlocks:r||e.innerBlocks.map((function(e){return et(e)}))})}function tt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,n=Object(re.a)();return Ze(Ze({},e),{},{clientId:n,attributes:Ze(Ze({},e.attributes),t),innerBlocks:r||e.innerBlocks.map((function(e){return tt(e)}))})}var rt=function(e,t,r){if(Object(c.isEmpty)(r))return!1;var n=r.length>1,a=Object(c.first)(r).name;if(!(nt(e)||!n||e.isMultiBlock))return!1;if(!nt(e)&&!Object(c.every)(r,{name:a}))return!1;if(!("block"===e.type))return!1;var i=Object(c.first)(r);if(!("from"!==t||-1!==e.blocks.indexOf(i.name)||nt(e)))return!1;if(!n&&at(i.name)&&at(e.blockName))return!1;if(Object(c.isFunction)(e.isMatch)){var o=e.isMultiBlock?r.map((function(e){return e.attributes})):i.attributes;if(!e.isMatch(o))return!1}return!0},nt=function(e){return e&&"block"===e.type&&Array.isArray(e.blocks)&&e.blocks.includes("*")},at=function(e){return e===Ee()};function it(e){if(Object(c.isEmpty)(e))return[];var t=function(e){if(Object(c.isEmpty)(e))return[];var t=Ie();return Object(c.filter)(t,(function(t){return!!ot(st("from",t.name),(function(t){return rt(t,"from",e)}))}))}(e),r=function(e){if(Object(c.isEmpty)(e))return[];var t=st("to",ze(Object(c.first)(e).name).name),r=Object(c.filter)(t,(function(t){return t&&rt(t,"to",e)}));return Object(c.flatMap)(r,(function(e){return e.blocks})).map((function(e){return ze(e)}))}(e);return Object(c.uniq)([].concat(Object(o.a)(t),Object(o.a)(r)))}function ot(e,t){for(var r=Object(ne.createHooks)(),n=function(n){var a=e[n];t(a)&&r.addFilter("transform","transform/"+n.toString(),(function(e){return e||a}),a.priority)},a=0;a1,i=n[0],o=i.name,s=st("from",t),u=ot(st("to",o),(function(e){return"block"===e.type&&(nt(e)||-1!==e.blocks.indexOf(t))&&(!a||e.isMultiBlock)}))||ot(s,(function(e){return"block"===e.type&&(nt(e)||-1!==e.blocks.indexOf(o))&&(!a||e.isMultiBlock)}));if(!u)return null;if(r=u.isMultiBlock?Object(c.has)(u,"__experimentalConvert")?u.__experimentalConvert(n):u.transform(n.map((function(e){return e.attributes})),n.map((function(e){return e.innerBlocks}))):Object(c.has)(u,"__experimentalConvert")?u.__experimentalConvert(i):u.transform(i.attributes,i.innerBlocks),!Object(c.isObjectLike)(r))return null;if((r=Object(c.castArray)(r)).some((function(e){return!ze(e.name)})))return null;var l=Object(c.findIndex)(r,(function(e){return e.name===t}));return l<0?null:r.map((function(t,r){var n=Ze(Ze({},t),{},{clientId:r===l?i.clientId:t.clientId});return Object(ne.applyFilters)("blocks.switchToBlockType.transformedBlock",n,e)}))}var ut=function e(t,r){return Xe(t,r.attributes,Object(c.map)(r.innerBlocks,(function(t){return e(t.name,t)})))};function lt(e,t){for(var r,n=t.split(".");r=n.shift();){if(!(r in e))return;e=e[r]}return e}var dt,ft=function(){return dt||(dt=document.implementation.createHTMLDocument("")),dt};function pt(e,t){if(t){if("string"==typeof e){var r=ft();r.body.innerHTML=e,e=r.body}if("function"==typeof t)return t(e);if(Object===t.constructor)return Object.keys(t).reduce((function(r,n){return r[n]=pt(e,t[n]),r}),{})}}function ht(e,t){return 1===arguments.length&&(t=e,e=void 0),function(r){var n=r;if(e&&(n=r.querySelector(e)),n)return lt(n,t)}}var gt=r(115),bt=r(284),mt=r(147),_t=r(25),vt=r(26),yt=/^#[xX]([A-Fa-f0-9]+)$/,wt=/^#([0-9]+)$/,kt=/^([A-Za-z0-9]+)$/,Ot=(function(){function e(e){this.named=e}e.prototype.parse=function(e){if(e){var t=e.match(yt);return t?String.fromCharCode(parseInt(t[1],16)):(t=e.match(wt))?String.fromCharCode(parseInt(t[1],10)):(t=e.match(kt))?this.named[t[1]]:void 0}}}(),/[\t\n\f ]/),jt=/[A-Za-z]/,Tt=/\r\n?/g;function Ct(e){return Ot.test(e)}function xt(e){return jt.test(e)}var Pt=function(){function e(e,t,r){void 0===r&&(r="precompile"),this.delegate=e,this.entityParser=t,this.mode=r,this.state="beforeData",this.line=-1,this.column=-1,this.input="",this.index=-1,this.tagNameBuffer="",this.states={beforeData:function(){var e=this.peek();if("<"!==e||this.isIgnoredEndTag()){if("precompile"===this.mode&&"\n"===e){var t=this.tagNameBuffer.toLowerCase();"pre"!==t&&"textarea"!==t||this.consume()}this.transitionTo("data"),this.delegate.beginData()}else this.transitionTo("tagOpen"),this.markTagStart(),this.consume()},data:function(){var e=this.peek(),t=this.tagNameBuffer;"<"!==e||this.isIgnoredEndTag()?"&"===e&&"script"!==t&&"style"!==t?(this.consume(),this.delegate.appendToData(this.consumeCharRef()||"&")):(this.consume(),this.delegate.appendToData(e)):(this.delegate.finishData(),this.transitionTo("tagOpen"),this.markTagStart(),this.consume())},tagOpen:function(){var e=this.consume();"!"===e?this.transitionTo("markupDeclarationOpen"):"/"===e?this.transitionTo("endTagOpen"):("@"===e||":"===e||xt(e))&&(this.transitionTo("tagName"),this.tagNameBuffer="",this.delegate.beginStartTag(),this.appendToTagName(e))},markupDeclarationOpen:function(){var e=this.consume();"-"===e&&"-"===this.peek()?(this.consume(),this.transitionTo("commentStart"),this.delegate.beginComment()):"DOCTYPE"===e.toUpperCase()+this.input.substring(this.index,this.index+6).toUpperCase()&&(this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.transitionTo("doctype"),this.delegate.beginDoctype&&this.delegate.beginDoctype())},doctype:function(){Ct(this.consume())&&this.transitionTo("beforeDoctypeName")},beforeDoctypeName:function(){var e=this.consume();Ct(e)||(this.transitionTo("doctypeName"),this.delegate.appendToDoctypeName&&this.delegate.appendToDoctypeName(e.toLowerCase()))},doctypeName:function(){var e=this.consume();Ct(e)?this.transitionTo("afterDoctypeName"):">"===e?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeName&&this.delegate.appendToDoctypeName(e.toLowerCase())},afterDoctypeName:function(){var e=this.consume();if(!Ct(e))if(">"===e)this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData");else{var t=e.toUpperCase()+this.input.substring(this.index,this.index+5).toUpperCase(),r="PUBLIC"===t.toUpperCase(),n="SYSTEM"===t.toUpperCase();(r||n)&&(this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.consume()),r?this.transitionTo("afterDoctypePublicKeyword"):n&&this.transitionTo("afterDoctypeSystemKeyword")}},afterDoctypePublicKeyword:function(){var e=this.peek();Ct(e)?(this.transitionTo("beforeDoctypePublicIdentifier"),this.consume()):'"'===e?(this.transitionTo("doctypePublicIdentifierDoubleQuoted"),this.consume()):"'"===e?(this.transitionTo("doctypePublicIdentifierSingleQuoted"),this.consume()):">"===e&&(this.consume(),this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData"))},doctypePublicIdentifierDoubleQuoted:function(){var e=this.consume();'"'===e?this.transitionTo("afterDoctypePublicIdentifier"):">"===e?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypePublicIdentifier&&this.delegate.appendToDoctypePublicIdentifier(e)},doctypePublicIdentifierSingleQuoted:function(){var e=this.consume();"'"===e?this.transitionTo("afterDoctypePublicIdentifier"):">"===e?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypePublicIdentifier&&this.delegate.appendToDoctypePublicIdentifier(e)},afterDoctypePublicIdentifier:function(){var e=this.consume();Ct(e)?this.transitionTo("betweenDoctypePublicAndSystemIdentifiers"):">"===e?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):'"'===e?this.transitionTo("doctypeSystemIdentifierDoubleQuoted"):"'"===e&&this.transitionTo("doctypeSystemIdentifierSingleQuoted")},betweenDoctypePublicAndSystemIdentifiers:function(){var e=this.consume();Ct(e)||(">"===e?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):'"'===e?this.transitionTo("doctypeSystemIdentifierDoubleQuoted"):"'"===e&&this.transitionTo("doctypeSystemIdentifierSingleQuoted"))},doctypeSystemIdentifierDoubleQuoted:function(){var e=this.consume();'"'===e?this.transitionTo("afterDoctypeSystemIdentifier"):">"===e?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeSystemIdentifier&&this.delegate.appendToDoctypeSystemIdentifier(e)},doctypeSystemIdentifierSingleQuoted:function(){var e=this.consume();"'"===e?this.transitionTo("afterDoctypeSystemIdentifier"):">"===e?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeSystemIdentifier&&this.delegate.appendToDoctypeSystemIdentifier(e)},afterDoctypeSystemIdentifier:function(){var e=this.consume();Ct(e)||">"===e&&(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData"))},commentStart:function(){var e=this.consume();"-"===e?this.transitionTo("commentStartDash"):">"===e?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData(e),this.transitionTo("comment"))},commentStartDash:function(){var e=this.consume();"-"===e?this.transitionTo("commentEnd"):">"===e?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData("-"),this.transitionTo("comment"))},comment:function(){var e=this.consume();"-"===e?this.transitionTo("commentEndDash"):this.delegate.appendToCommentData(e)},commentEndDash:function(){var e=this.consume();"-"===e?this.transitionTo("commentEnd"):(this.delegate.appendToCommentData("-"+e),this.transitionTo("comment"))},commentEnd:function(){var e=this.consume();">"===e?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData("--"+e),this.transitionTo("comment"))},tagName:function(){var e=this.consume();Ct(e)?this.transitionTo("beforeAttributeName"):"/"===e?this.transitionTo("selfClosingStartTag"):">"===e?(this.delegate.finishTag(),this.transitionTo("beforeData")):this.appendToTagName(e)},endTagName:function(){var e=this.consume();Ct(e)?(this.transitionTo("beforeAttributeName"),this.tagNameBuffer=""):"/"===e?(this.transitionTo("selfClosingStartTag"),this.tagNameBuffer=""):">"===e?(this.delegate.finishTag(),this.transitionTo("beforeData"),this.tagNameBuffer=""):this.appendToTagName(e)},beforeAttributeName:function(){var e=this.peek();Ct(e)?this.consume():"/"===e?(this.transitionTo("selfClosingStartTag"),this.consume()):">"===e?(this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):"="===e?(this.delegate.reportSyntaxError("attribute name cannot start with equals sign"),this.transitionTo("attributeName"),this.delegate.beginAttribute(),this.consume(),this.delegate.appendToAttributeName(e)):(this.transitionTo("attributeName"),this.delegate.beginAttribute())},attributeName:function(){var e=this.peek();Ct(e)?(this.transitionTo("afterAttributeName"),this.consume()):"/"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):"="===e?(this.transitionTo("beforeAttributeValue"),this.consume()):">"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):'"'===e||"'"===e||"<"===e?(this.delegate.reportSyntaxError(e+" is not a valid character within attribute names"),this.consume(),this.delegate.appendToAttributeName(e)):(this.consume(),this.delegate.appendToAttributeName(e))},afterAttributeName:function(){var e=this.peek();Ct(e)?this.consume():"/"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):"="===e?(this.consume(),this.transitionTo("beforeAttributeValue")):">"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.transitionTo("attributeName"),this.delegate.beginAttribute(),this.consume(),this.delegate.appendToAttributeName(e))},beforeAttributeValue:function(){var e=this.peek();Ct(e)?this.consume():'"'===e?(this.transitionTo("attributeValueDoubleQuoted"),this.delegate.beginAttributeValue(!0),this.consume()):"'"===e?(this.transitionTo("attributeValueSingleQuoted"),this.delegate.beginAttributeValue(!0),this.consume()):">"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.transitionTo("attributeValueUnquoted"),this.delegate.beginAttributeValue(!1),this.consume(),this.delegate.appendToAttributeValue(e))},attributeValueDoubleQuoted:function(){var e=this.consume();'"'===e?(this.delegate.finishAttributeValue(),this.transitionTo("afterAttributeValueQuoted")):"&"===e?this.delegate.appendToAttributeValue(this.consumeCharRef()||"&"):this.delegate.appendToAttributeValue(e)},attributeValueSingleQuoted:function(){var e=this.consume();"'"===e?(this.delegate.finishAttributeValue(),this.transitionTo("afterAttributeValueQuoted")):"&"===e?this.delegate.appendToAttributeValue(this.consumeCharRef()||"&"):this.delegate.appendToAttributeValue(e)},attributeValueUnquoted:function(){var e=this.peek();Ct(e)?(this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("beforeAttributeName")):"/"===e?(this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):"&"===e?(this.consume(),this.delegate.appendToAttributeValue(this.consumeCharRef()||"&")):">"===e?(this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.consume(),this.delegate.appendToAttributeValue(e))},afterAttributeValueQuoted:function(){var e=this.peek();Ct(e)?(this.consume(),this.transitionTo("beforeAttributeName")):"/"===e?(this.consume(),this.transitionTo("selfClosingStartTag")):">"===e?(this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):this.transitionTo("beforeAttributeName")},selfClosingStartTag:function(){">"===this.peek()?(this.consume(),this.delegate.markTagAsSelfClosing(),this.delegate.finishTag(),this.transitionTo("beforeData")):this.transitionTo("beforeAttributeName")},endTagOpen:function(){var e=this.consume();("@"===e||":"===e||xt(e))&&(this.transitionTo("endTagName"),this.tagNameBuffer="",this.delegate.beginEndTag(),this.appendToTagName(e))}},this.reset()}return e.prototype.reset=function(){this.transitionTo("beforeData"),this.input="",this.tagNameBuffer="",this.index=0,this.line=1,this.column=0,this.delegate.reset()},e.prototype.transitionTo=function(e){this.state=e},e.prototype.tokenize=function(e){this.reset(),this.tokenizePart(e),this.tokenizeEOF()},e.prototype.tokenizePart=function(e){for(this.input+=function(e){return e.replace(Tt,"\n")}(e);this.index"!==this.input.substring(this.index,this.index+8)||"style"===e&&""!==this.input.substring(this.index,this.index+8)||"script"===e&&"<\/script>"!==this.input.substring(this.index,this.index+9)},e}(),St=function(){function e(e,t){void 0===t&&(t={}),this.options=t,this.token=null,this.startLine=1,this.startColumn=0,this.tokens=[],this.tokenizer=new Pt(this,e,t.mode),this._currentAttribute=void 0}return e.prototype.tokenize=function(e){return this.tokens=[],this.tokenizer.tokenize(e),this.tokens},e.prototype.tokenizePart=function(e){return this.tokens=[],this.tokenizer.tokenizePart(e),this.tokens},e.prototype.tokenizeEOF=function(){return this.tokens=[],this.tokenizer.tokenizeEOF(),this.tokens[0]},e.prototype.reset=function(){this.token=null,this.startLine=1,this.startColumn=0},e.prototype.current=function(){var e=this.token;if(null===e)throw new Error("token was unexpectedly null");if(0===arguments.length)return e;for(var t=0;t1?r-1:0),a=1;a0&&void 0!==arguments[0]?arguments[0]:{},t=Gt.blockType,r=Gt.attributes;return Object(ne.applyFilters)("blocks.getSaveContent.extraProps",$t({},e),t,r)}function Wt(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=ge(e),a=n.save;if(a.prototype instanceof se.Component){var i=new a({attributes:t});a=i.render.bind(i)}Gt.blockType=n,Gt.attributes=t;var o=a({attributes:t,innerBlocks:r}),s=n.apiVersion>1||Ve(n,"lightBlockWrapper",!1);if(Object(c.isObject)(o)&&Object(ne.hasFilter)("blocks.getSaveContent.extraProps")&&!s){var u=Object(ne.applyFilters)("blocks.getSaveContent.extraProps",$t({},o.props),n,t);Dt()(u,o.props)||(o=Object(se.cloneElement)(o,u))}return o=Object(ne.applyFilters)("blocks.getSaveElement",o,n,t),Object(se.createElement)(Rt,{innerBlocks:r},o)}function Qt(e,t,r){var n=ge(e);return Object(se.renderToString)(Wt(n,t,r))}function Yt(e,t){return Object(c.reduce)(e.attributes,(function(e,r,n){var a=t[n];return void 0===a||void 0!==r.source||"default"in r&&r.default===a||(e[n]=a),e}),{})}function Zt(e){var t=e.originalContent;if(e.isValid||e.innerBlocks.length)try{t=Qt(e.name,e.attributes,e.innerBlocks)}catch(e){}return t}function Xt(e,t,r){var n=Object(c.isEmpty)(t)?"":function(e){return JSON.stringify(e).replace(/--/g,"\\u002d\\u002d").replace(//g,"\\u003e").replace(/&/g,"\\u0026").replace(/\\"/g,"\\u0022")}(t)+" ",a=Object(c.startsWith)(e,"core/")?e.slice(5):e;return r?"\x3c!-- wp:".concat(a," ").concat(n,"--\x3e\n")+r+"\n\x3c!-- /wp:".concat(a," --\x3e"):"\x3c!-- wp:".concat(a," ").concat(n,"/--\x3e")}function Jt(e){1===e.length&&fe(e[0])&&(e=[]);var t=er(e);return 1===e.length&&e[0].name===Ae()&&(t=Object(gt.removep)(t)),t}function er(e,t){return Object(c.castArray)(e).map((function(e){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.isInnerBlocks,n=void 0!==r&&r,a=e.name,i=Zt(e);if(a===Ne()||!n&&a===Ae())return i;var o=ze(a),s=Yt(o,e.attributes);return Xt(a,s,i)}(e,t)})).join("\n\n")}function tr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var rr=/[\t\n\r\v\f ]+/g,nr=/^[\t\n\r\v\f ]*$/,ar=/^url\s*\(['"\s]*(.*?)['"\s]*\)$/,ir=["allowfullscreen","allowpaymentrequest","allowusermedia","async","autofocus","autoplay","checked","controls","default","defer","disabled","download","formnovalidate","hidden","ismap","itemscope","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected","typemustmatch"],or=[].concat(ir,["autocapitalize","autocomplete","charset","contenteditable","crossorigin","decoding","dir","draggable","enctype","formenctype","formmethod","http-equiv","inputmode","kind","method","preload","scope","shape","spellcheck","translate","type","wrap"]),sr=[c.identity,function(e){return fr(e).join(" ")}],cr=/^[\da-z]+$/i,ur=/^#\d+$/,lr=/^#x[\da-f]+$/i;var dr=function(){function e(){Object(_t.a)(this,e)}return Object(vt.a)(e,[{key:"parse",value:function(e){if(t=e,cr.test(t)||ur.test(t)||lr.test(t))return Object(At.decodeEntities)("&"+e+";");var t}}]),e}();function fr(e){return e.trim().split(rr)}function pr(e){return e.attributes.filter((function(e){var t=Object(te.a)(e,2),r=t[0];return t[1]||0===r.indexOf("data-")||Object(c.includes)(or,r)}))}function hr(e,t){for(var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Et(),n=e.chars,a=t.chars,i=0;i2&&void 0!==arguments[2]?arguments[2]:Et();if(e.length!==t.length)return r.warning("Expected attributes %o, instead saw %o.",t,e),!1;for(var n={},a=0;a2&&void 0!==arguments[2]?arguments[2]:Et();return e.tagName!==t.tagName&&e.tagName.toLowerCase()!==t.tagName.toLowerCase()?(r.warning("Expected tag name `%s`, instead saw `%s`.",t.tagName,e.tagName),!1):vr.apply(void 0,Object(o.a)([e,t].map(pr)).concat([r]))},Chars:hr,Comment:hr};function wr(e){for(var t;t=e.shift();){if("Chars"!==t.type)return t;if(!nr.test(t.chars))return t}}function kr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Et();try{return new St(new dr).tokenize(e)}catch(r){t.warning("Malformed HTML detected: %s",e)}return null}function Or(e,t){return!!e.selfClosing&&!(!t||t.tagName!==e.tagName||"EndTag"!==t.type)}function jr(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Et();if(e===t)return!0;var n,a,i=[e,t].map((function(e){return kr(e,r)})),o=Object(te.a)(i,2),s=o[0],c=o[1];if(!s||!c)return!1;for(;n=wr(s);){if(!(a=wr(c)))return r.warning("Expected end of content, instead saw %o.",n),!1;if(n.type!==a.type)return r.warning("Expected token of type `%s` (%o), instead saw `%s` (%o).",a.type,a,n.type,n),!1;var u=yr[n.type];if(u&&!u(n,a,r))return!1;Or(n,c[0])?wr(c):Or(a,s[0])&&wr(s)}return!(a=wr(c))||(r.warning("Expected %o, instead saw end of content.",a),!1)}function Tr(e,t,r){var n,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Bt(),i=ge(e);try{n=Qt(i,t)}catch(e){return a.error("Block validation failed because an error occurred while generating block content:\n\n%s",e.toString()),{isValid:!1,validationIssues:a.getItems()}}var o=jr(r,n,a);return o||a.error("Block validation failed for `%s` (%o).\n\nContent generated by `save` function:\n\n%s\n\nContent retrieved from post body:\n\n%s",i.name,i,n,r),{isValid:o,validationIssues:a.getItems()}}function Cr(e,t,r){return Tr(e,t,r,Et()).isValid}function xr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Pr(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:{},n=ge(e),a=Object(c.mapValues)(n.attributes,(function(e,n){return Fr(n,e,t,r)}));return Object(ne.applyFilters)("blocks.getBlockAttributes",a,n,t,r)}function qr(e,t){var r=Ir({},t);if("core/cover-image"===e&&(e="core/cover"),"core/text"!==e&&"core/cover-text"!==e||(e="core/paragraph"),e&&0===e.indexOf("core/social-link-")&&(r.service=e.substring(17),e="core/social-link"),e&&0===e.indexOf("core-embed/")){var n=e.substring(11),a={speaker:"speaker-deck",polldaddy:"crowdsignal"};r.providerNameSlug=n in a?a[n]:n,["amazon-kindle","wordpress"].includes(n)||(r.responsive=!0),e="core/embed"}return{name:e,attributes:r}}function Ur(e){var t=e.blockName,r=e.attrs,n=e.innerBlocks,a=void 0===n?[]:n,i=e.innerHTML,s=e.innerContent,u=Ae(),l=Ne()||u;r=r||{},i=i.trim();var d=t||u,f=qr(d,r);d=f.name,r=f.attributes,d===u&&(i=Object(gt.autop)(i).trim());var p=ze(d);if(!p){var h={attrs:r,blockName:t,innerBlocks:a,innerContent:s},g=Gr(h,{isCommentDelimited:!1}),b=Gr(h,{isCommentDelimited:!0});d&&(i=b),r={originalName:t,originalContent:b,originalUndelimitedContent:g},p=ze(d=l)}a=(a=a.map(Ur)).filter((function(e){return e}));var m=d===u||d===l;if(p&&(i||!m)){var _=Xe(d,$r(p,i,r),a);if(!m){var v=Tr(p,_.attributes,i),y=v.isValid,w=v.validationIssues;_.isValid=y,_.validationIssues=w}return _.originalContent=_.originalContent||i,(_=function(e,t){var r=ze(e.name),n=r.deprecated;if(!n||!n.length)return e;for(var a=e,i=a.originalContent,s=a.innerBlocks,u=0;u0&&(_.isValid?console.info("Block successfully updated for `%s` (%o).\n\nNew content generated by `save` function:\n\n%s\n\nContent retrieved from post body:\n\n%s",p.name,p,Qt(p,_.attributes),_.originalContent):_.validationIssues.forEach((function(e){var t=e.log,r=e.args;return t.apply(void 0,Object(o.a)(r))}))),_}}function Gr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.isCommentDelimited,n=void 0===r||r,a=e.blockName,i=e.attrs,o=void 0===i?{}:i,s=e.innerBlocks,c=void 0===s?[]:s,u=e.innerContent,l=void 0===u?[]:u,d=0,f=l.map((function(e){return null!==e?e:Gr(c[d++],t)})).join("\n").replace(/\n+/g,"\n").trim();return n?Xt(a,o,f):f}var Kr,Wr=(Kr=bt.parse,function(e){return Kr(e).reduce((function(e,t){var r=Ur(t);return r&&e.push(r),e}),[])}),Qr=Wr;function Yr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Zr(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:e,r=e.ownerDocument.createElement("figure");t.parentNode.insertBefore(r,t),r.appendChild(e)}function yn(e,t,r){if(function(e,t){var r=e.nodeName.toLowerCase();return"figcaption"!==r&&!Object(ce.isTextContent)(e)&&Object(c.has)(t,["figure","children",r])}(e,r)){var n=e,a=e.parentNode;(function(e,t){var r=e.nodeName.toLowerCase();return Object(c.has)(t,["figure","children","a","children",r])})(e,r)&&"A"===a.nodeName&&1===a.childNodes.length&&(n=e.parentNode);var i=n.closest("p,div");i?e.classList?(e.classList.contains("alignright")||e.classList.contains("alignleft")||e.classList.contains("aligncenter")||!i.textContent.trim())&&vn(n,i):vn(n,i):"BODY"===n.parentNode.nodeName&&vn(n)}}var wn=r(129);function kn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function On(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],a=st("from"),i=ot(a,(function(e){return-1===n.indexOf(e.blockName)&&"shortcode"===e.type&&Object(c.some)(Object(c.castArray)(e.tag),(function(e){return Object(wn.regexp)(e).test(t)}))}));if(!i)return[t];var s,u=Object(c.castArray)(i.tag),l=Object(c.find)(u,(function(e){return Object(wn.regexp)(e).test(t)})),d=r;if(s=Object(wn.next)(l,t,r)){r=s.index+s.content.length;var f=t.substr(0,s.index),p=t.substr(r);if(!(Object(c.includes)(s.shortcode.content||"","<")||/(\n|)\s*$/.test(f)&&/^\s*(\n|<\/p>)/.test(p)))return e(t,r);if(i.isMatch&&!i.isMatch(s.shortcode.attrs))return e(t,d,[].concat(Object(o.a)(n),[i.blockName]));var h=Object(c.mapValues)(Object(c.pickBy)(i.attributes,(function(e){return e.shortcode})),(function(e){return e.shortcode(s.shortcode.attrs,s)})),g=Xe(i.blockName,$r(On(On({},ze(i.blockName)),{},{attributes:i.attributes}),s.shortcode.content,h));return[].concat(Object(o.a)(e(f)),[g],Object(o.a)(e(p)))}return[t]},Tn=r(285),Cn=new(r.n(Tn).a.Converter)({noHeaderId:!0,tables:!0,literalMidWordUnderscores:!0,omitExtraWLInCodeBlocks:!0,simpleLineBreaks:!0,strikethrough:!0});function xn(e){if("IFRAME"===e.nodeName){var t=e.ownerDocument.createTextNode(e.src);e.parentNode.replaceChild(t,e)}}function Pn(e){e.id&&0===e.id.indexOf("docs-internal-guid-")&&Object(ce.unwrap)(e)}function Sn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function An(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0,n=document.implementation.createHTMLDocument("");return n.body.innerHTML=e,Bn(n.body.childNodes,t,n,r),n.body.innerHTML}function Dn(e,t){var r=e["".concat(t,"Sibling")];if(r&&Object(ce.isPhrasingContent)(r))return r;var n=e.parentNode;return n&&Object(ce.isPhrasingContent)(n)?Dn(n,t):void 0}function Ln(e){if(e.nodeType===e.TEXT_NODE){for(var t=e;t=t.parentNode;)if(t.nodeType===t.ELEMENT_NODE&&"PRE"===t.nodeName)return;var r,n=e.data.replace(/[ \r\n\t]+/g," ");if(" "===n[0]){var a=Dn(e,"previous");a&&"BR"!==a.nodeName&&" "!==a.textContent.slice(-1)||(n=n.slice(1))}if(" "===n[n.length-1]){var i=Dn(e,"next");(!i||"BR"===i.nodeName||i.nodeType===i.TEXT_NODE&&(" "===(r=i.textContent[0])||"\r"===r||"\n"===r||"\t"===r))&&(n=n.slice(0,-1))}n?e.data=n:e.parentNode.removeChild(e)}}function Mn(e){"BR"===e.nodeName&&(Dn(e,"next")||e.parentNode.removeChild(e))}function zn(e){"P"===e.nodeName&&(e.hasChildNodes()||e.parentNode.removeChild(e))}function In(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Hn(e){for(var t=1;t]+>/g,"")).replace(/^\s*]*>\s*]*>(?:\s*)?/i,"")).replace(/(?:\s*)?<\/body>\s*<\/html>\s*$/i,""),"INLINE"!==s){var d=n||i;if(-1!==d.indexOf("\x3c!-- wp:"))return Wr(d)}if(String.prototype.normalize&&(n=n.normalize()),!i||n&&!function(e){return!/<(?!br[ />])/i.test(e)}(n)||(t=i,n=Cn.makeHtml(function(e){return e.replace(/((?:^|\n)```)([^\n`]+)(```(?:$|\n))/,(function(e,t,r,n){return"".concat(t,"\n").concat(r,"\n").concat(n)}))}(t)),"AUTO"===s&&-1===i.indexOf("\n")&&0!==i.indexOf("")&&0===n.indexOf("
")&&(s="INLINE")),"INLINE"===s)return Rn(n,l);var f=jn(n),p=f.length>1;if("AUTO"===s&&!p&&function(e,t){var r=document.implementation.createHTMLDocument("");r.body.innerHTML=e;var n=Array.from(r.body.children);return!n.some(an)&&nn(n,t)}(n,u))return Rn(n,l);var h=Object(ce.getPhrasingContentSchema)("paste"),g=En("paste"),b=Object(c.compact)(Object(c.flatMap)(f,(function(e){if("string"!=typeof e)return e;var t=[Pn,ln,sn,fn,mn,on,tn,rn,xn,yn,_n],r=Hn(Hn({},g),h);return e=Nn(e,t,g),e=Nn(e=en(e=Object(ce.removeInvalidHTML)(e,r)),[Ln,Mn,zn],g),Vn.log("Processed HTML piece:\n\n",e),Jr(e)})));if("AUTO"===s&&1===b.length&&Ve(b[0].name,"__unstablePasteTextInline",!1)){var m=i.trim();if(""!==m&&-1===m.indexOf("\n"))return Object(ce.removeInvalidHTML)(Zt(b[0]),h)}return b}var $n=r(35),qn=r.n($n);function Un(e){return qn()("wp.blocks.getPhrasingContentSchema",{alternative:"wp.dom.getPhrasingContentSchema"}),Object(ce.getPhrasingContentSchema)(e)}function Gn(e){var t=e.HTML,r=void 0===t?"":t;if(-1!==r.indexOf("\x3c!-- wp:"))return Wr(r);var n=jn(r),a=En();return Object(c.compact)(Object(c.flatMap)(n,(function(e){return"string"!=typeof e?e:Jr(e=en(e=Nn(e,[fn,tn,yn,_n],a)))})))}function Kn(){return Object(i.select)(ee).getCategories()}function Wn(e){Object(i.dispatch)(ee).setCategories(e)}function Qn(e,t){Object(i.dispatch)(ee).updateCategory(e,t)}function Yn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Zn(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.length===t.length&&Object(c.every)(t,(function(t,r){var n=Object(te.a)(t,3),a=n[0],i=n[2],o=e[r];return a===o.name&&Xn(o.innerBlocks,i)}))}function Jn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return t?Object(c.map)(t,(function(t,r){var n=Object(te.a)(t,3),a=n[0],i=n[1],o=n[2],s=e[r];if(s&&s.name===a){var u=Jn(s.innerBlocks,o);return Zn(Zn({},s),{},{innerBlocks:u})}var l=ze(a),d=function(e,t){return Object(c.mapValues)(t,(function(t,r){return f(e[r],t)}))},f=function(e,t){return r=e,"html"===Object(c.get)(r,["source"])&&Object(c.isArray)(t)?Object(se.renderToString)(t):function(e){return"query"===Object(c.get)(e,["source"])}(e)&&t?t.map((function(t){return d(e.query,t)})):t;var r},p=qr(a,d(Object(c.get)(l,["attributes"],{}),i));return Xe(p.name,p.attributes,Jn([],o))})):e}},5:function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,"a",(function(){return n}))},60:function(e,t,r){var n;!function(a){var i=/^\s+/,o=/\s+$/,s=0,c=a.round,u=a.min,l=a.max,d=a.random;function f(e,t){if(t=t||{},(e=e||"")instanceof f)return e;if(!(this instanceof f))return new f(e,t);var r=function(e){var t={r:0,g:0,b:0},r=1,n=null,s=null,c=null,d=!1,f=!1;"string"==typeof e&&(e=function(e){e=e.replace(i,"").replace(o,"").toLowerCase();var t,r=!1;if(A[e])e=A[e],r=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};if(t=$.rgb.exec(e))return{r:t[1],g:t[2],b:t[3]};if(t=$.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=$.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=$.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=$.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=$.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=$.hex8.exec(e))return{r:L(t[1]),g:L(t[2]),b:L(t[3]),a:H(t[4]),format:r?"name":"hex8"};if(t=$.hex6.exec(e))return{r:L(t[1]),g:L(t[2]),b:L(t[3]),format:r?"name":"hex"};if(t=$.hex4.exec(e))return{r:L(t[1]+""+t[1]),g:L(t[2]+""+t[2]),b:L(t[3]+""+t[3]),a:H(t[4]+""+t[4]),format:r?"name":"hex8"};if(t=$.hex3.exec(e))return{r:L(t[1]+""+t[1]),g:L(t[2]+""+t[2]),b:L(t[3]+""+t[3]),format:r?"name":"hex"};return!1}(e));"object"==typeof e&&(q(e.r)&&q(e.g)&&q(e.b)?(p=e.r,h=e.g,g=e.b,t={r:255*N(p,255),g:255*N(h,255),b:255*N(g,255)},d=!0,f="%"===String(e.r).substr(-1)?"prgb":"rgb"):q(e.h)&&q(e.s)&&q(e.v)?(n=z(e.s),s=z(e.v),t=function(e,t,r){e=6*N(e,360),t=N(t,100),r=N(r,100);var n=a.floor(e),i=e-n,o=r*(1-t),s=r*(1-i*t),c=r*(1-(1-i)*t),u=n%6;return{r:255*[r,s,o,o,c,r][u],g:255*[c,r,r,s,o,o][u],b:255*[o,o,c,r,r,s][u]}}(e.h,n,s),d=!0,f="hsv"):q(e.h)&&q(e.s)&&q(e.l)&&(n=z(e.s),c=z(e.l),t=function(e,t,r){var n,a,i;function o(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}if(e=N(e,360),t=N(t,100),r=N(r,100),0===t)n=a=i=r;else{var s=r<.5?r*(1+t):r+t-r*t,c=2*r-s;n=o(c,s,e+1/3),a=o(c,s,e),i=o(c,s,e-1/3)}return{r:255*n,g:255*a,b:255*i}}(e.h,n,c),d=!0,f="hsl"),e.hasOwnProperty("a")&&(r=e.a));var p,h,g;return r=B(r),{ok:d,format:e.format||f,r:u(255,l(t.r,0)),g:u(255,l(t.g,0)),b:u(255,l(t.b,0)),a:r}}(e);this._originalInput=e,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=c(100*this._a)/100,this._format=t.format||r.format,this._gradientType=t.gradientType,this._r<1&&(this._r=c(this._r)),this._g<1&&(this._g=c(this._g)),this._b<1&&(this._b=c(this._b)),this._ok=r.ok,this._tc_id=s++}function p(e,t,r){e=N(e,255),t=N(t,255),r=N(r,255);var n,a,i=l(e,t,r),o=u(e,t,r),s=(i+o)/2;if(i==o)n=a=0;else{var c=i-o;switch(a=s>.5?c/(2-i-o):c/(i+o),i){case e:n=(t-r)/c+(t>1)+720)%360;--t;)n.h=(n.h+a)%360,i.push(f(n));return i}function S(e,t){t=t||6;for(var r=f(e).toHsv(),n=r.h,a=r.s,i=r.v,o=[],s=1/t;t--;)o.push(f({h:n,s:a,v:i})),i=(i+s)%1;return o}f.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,r,n=this.toRgb();return e=n.r/255,t=n.g/255,r=n.b/255,.2126*(e<=.03928?e/12.92:a.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:a.pow((t+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:a.pow((r+.055)/1.055,2.4))},setAlpha:function(e){return this._a=B(e),this._roundA=c(100*this._a)/100,this},toHsv:function(){var e=h(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=h(this._r,this._g,this._b),t=c(360*e.h),r=c(100*e.s),n=c(100*e.v);return 1==this._a?"hsv("+t+", "+r+"%, "+n+"%)":"hsva("+t+", "+r+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var e=p(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=p(this._r,this._g,this._b),t=c(360*e.h),r=c(100*e.s),n=c(100*e.l);return 1==this._a?"hsl("+t+", "+r+"%, "+n+"%)":"hsla("+t+", "+r+"%, "+n+"%, "+this._roundA+")"},toHex:function(e){return g(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,r,n,a){var i=[M(c(e).toString(16)),M(c(t).toString(16)),M(c(r).toString(16)),M(I(n))];if(a&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1))return i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0);return i.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:c(this._r),g:c(this._g),b:c(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+c(this._r)+", "+c(this._g)+", "+c(this._b)+")":"rgba("+c(this._r)+", "+c(this._g)+", "+c(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:c(100*N(this._r,255))+"%",g:c(100*N(this._g,255))+"%",b:c(100*N(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+c(100*N(this._r,255))+"%, "+c(100*N(this._g,255))+"%, "+c(100*N(this._b,255))+"%)":"rgba("+c(100*N(this._r,255))+"%, "+c(100*N(this._g,255))+"%, "+c(100*N(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(E[g(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+b(this._r,this._g,this._b,this._a),r=t,n=this._gradientType?"GradientType = 1, ":"";if(e){var a=f(e);r="#"+b(a._r,a._g,a._b,a._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+t+",endColorstr="+r+")"},toString:function(e){var t=!!e;e=e||this._format;var r=!1,n=this._a<1&&this._a>=0;return t||!n||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(r=this.toRgbString()),"prgb"===e&&(r=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(r=this.toHexString()),"hex3"===e&&(r=this.toHexString(!0)),"hex4"===e&&(r=this.toHex8String(!0)),"hex8"===e&&(r=this.toHex8String()),"name"===e&&(r=this.toName()),"hsl"===e&&(r=this.toHslString()),"hsv"===e&&(r=this.toHsvString()),r||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return f(this.toString())},_applyModification:function(e,t){var r=e.apply(null,[this].concat([].slice.call(t)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(y,arguments)},brighten:function(){return this._applyModification(w,arguments)},darken:function(){return this._applyModification(k,arguments)},desaturate:function(){return this._applyModification(m,arguments)},saturate:function(){return this._applyModification(_,arguments)},greyscale:function(){return this._applyModification(v,arguments)},spin:function(){return this._applyModification(O,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(P,arguments)},complement:function(){return this._applyCombination(j,arguments)},monochromatic:function(){return this._applyCombination(S,arguments)},splitcomplement:function(){return this._applyCombination(x,arguments)},triad:function(){return this._applyCombination(T,arguments)},tetrad:function(){return this._applyCombination(C,arguments)}},f.fromRatio=function(e,t){if("object"==typeof e){var r={};for(var n in e)e.hasOwnProperty(n)&&(r[n]="a"===n?e[n]:z(e[n]));e=r}return f(e,t)},f.equals=function(e,t){return!(!e||!t)&&f(e).toRgbString()==f(t).toRgbString()},f.random=function(){return f.fromRatio({r:d(),g:d(),b:d()})},f.mix=function(e,t,r){r=0===r?0:r||50;var n=f(e).toRgb(),a=f(t).toRgb(),i=r/100;return f({r:(a.r-n.r)*i+n.r,g:(a.g-n.g)*i+n.g,b:(a.b-n.b)*i+n.b,a:(a.a-n.a)*i+n.a})},f.readability=function(e,t){var r=f(e),n=f(t);return(a.max(r.getLuminance(),n.getLuminance())+.05)/(a.min(r.getLuminance(),n.getLuminance())+.05)},f.isReadable=function(e,t,r){var n,a,i=f.readability(e,t);switch(a=!1,(n=function(e){var t,r;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),r=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==r&&"large"!==r&&(r="small");return{level:t,size:r}}(r)).level+n.size){case"AAsmall":case"AAAlarge":a=i>=4.5;break;case"AAlarge":a=i>=3;break;case"AAAsmall":a=i>=7}return a},f.mostReadable=function(e,t,r){var n,a,i,o,s=null,c=0;a=(r=r||{}).includeFallbackColors,i=r.level,o=r.size;for(var u=0;uc&&(c=n,s=f(t[u]));return f.isReadable(e,s,{level:i,size:o})||!a?s:(r.includeFallbackColors=!1,f.mostReadable(e,["#fff","#000"],r))};var A=f.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},E=f.hexNames=function(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[e[r]]=r);return t}(A);function B(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function N(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var r=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=u(t,l(0,parseFloat(e))),r&&(e=parseInt(e*t,10)/100),a.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function D(e){return u(1,l(0,e))}function L(e){return parseInt(e,16)}function M(e){return 1==e.length?"0"+e:""+e}function z(e){return e<=1&&(e=100*e+"%"),e}function I(e){return a.round(255*parseFloat(e)).toString(16)}function H(e){return L(e)/255}var V,R,F,$=(R="[\\s|\\(]+("+(V="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+V+")[,|\\s]+("+V+")\\s*\\)?",F="[\\s|\\(]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")\\s*\\)?",{CSS_UNIT:new RegExp(V),rgb:new RegExp("rgb"+R),rgba:new RegExp("rgba"+F),hsl:new RegExp("hsl"+R),hsla:new RegExp("hsla"+F),hsv:new RegExp("hsv"+R),hsva:new RegExp("hsva"+F),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function q(e){return!!$.CSS_UNIT.exec(e)}e.exports?e.exports=f:void 0===(n=function(){return f}.call(t,r,t,e))||(e.exports=n)}(Math)},63:function(e,t){e.exports=window.wp.isShallowEqual},64:function(e,t){e.exports=window.wp.htmlEntities},7:function(e,t){e.exports=window.wp.primitives},8:function(e,t,r){"use strict";function n(){return(n=Object.assign||function(e){for(var t=1;t (GFM Style)",type:"boolean"},requireSpaceBeforeHeadingText:{defaultValue:!1,description:"Makes adding a space between `#` and the header text mandatory (GFM Style)",type:"boolean"},ghMentions:{defaultValue:!1,description:"Enables github @mentions",type:"boolean"},ghMentionsLink:{defaultValue:"https://github.com/{u}",description:"Changes the link generated by @mentions. Only applies if ghMentions option is enabled.",type:"string"},encodeEmails:{defaultValue:!0,description:"Encode e-mail addresses through the use of Character Entities, transforming ASCII e-mail addresses into its equivalent decimal entities",type:"boolean"},openLinksInNewWindow:{defaultValue:!1,description:"Open all links in new windows",type:"boolean"},backslashEscapesHTMLTags:{defaultValue:!1,description:"Support for HTML Tag escaping. ex: foo",type:"boolean"},emoji:{defaultValue:!1,description:"Enable emoji support. Ex: `this is a :smile: emoji`",type:"boolean"},underline:{defaultValue:!1,description:"Enable support for underline. Syntax is double or triple underscores: `__underline word__`. With this option enabled, underscores no longer parses into `` and ``",type:"boolean"},completeHTMLDocument:{defaultValue:!1,description:"Outputs a complete html document, including ``, `` and `` tags",type:"boolean"},metadata:{defaultValue:!1,description:"Enable support for document metadata (defined at the top of the document between `«««` and `»»»` or between `---` and `---`).",type:"boolean"},splitAdjacentBlockquotes:{defaultValue:!1,description:"Split adjacent blockquote blocks",type:"boolean"}};if(!1===e)return JSON.parse(JSON.stringify(t));var r={};for(var n in t)t.hasOwnProperty(n)&&(r[n]=t[n].defaultValue);return r}var i={},o={},s={},c=a(!0),u="vanilla",l={github:{omitExtraWLInCodeBlocks:!0,simplifiedAutoLink:!0,excludeTrailingPunctuationFromURLs:!0,literalMidWordUnderscores:!0,strikethrough:!0,tables:!0,tablesHeaderId:!0,ghCodeBlocks:!0,tasklists:!0,disableForced4SpacesIndentedSublists:!0,simpleLineBreaks:!0,requireSpaceBeforeHeadingText:!0,ghCompatibleHeaderId:!0,ghMentions:!0,backslashEscapesHTMLTags:!0,emoji:!0,splitAdjacentBlockquotes:!0},original:{noHeaderId:!0,ghCodeBlocks:!1},ghost:{omitExtraWLInCodeBlocks:!0,parseImgDimensions:!0,simplifiedAutoLink:!0,excludeTrailingPunctuationFromURLs:!0,literalMidWordUnderscores:!0,strikethrough:!0,tables:!0,tablesHeaderId:!0,ghCodeBlocks:!0,tasklists:!0,smoothLivePreview:!0,simpleLineBreaks:!0,requireSpaceBeforeHeadingText:!0,ghMentions:!1,encodeEmails:!0},vanilla:a(!0),allOn:function(){"use strict";var e=a(!0),t={};for(var r in e)e.hasOwnProperty(r)&&(t[r]=!0);return t}()};function d(e,t){"use strict";var r=t?"Error in "+t+" extension->":"Error in unnamed extension",n={valid:!0,error:""};i.helper.isArray(e)||(e=[e]);for(var a=0;a").replace(/&/g,"&")};var p=function(e,t,r,n){"use strict";var a,i,o,s,c,u=n||"",l=u.indexOf("g")>-1,d=new RegExp(t+"|"+r,"g"+u.replace(/g/g,"")),f=new RegExp(t,u.replace(/g/g,"")),p=[];do{for(a=0;o=d.exec(e);)if(f.test(o[0]))a++||(s=(i=d.lastIndex)-o[0].length);else if(a&&!--a){c=o.index+o[0].length;var h={left:{start:s,end:i},match:{start:i,end:o.index},right:{start:o.index,end:c},wholeMatch:{start:s,end:c}};if(p.push(h),!l)return p}}while(a&&(d.lastIndex=i));return p};i.helper.matchRecursiveRegExp=function(e,t,r,n){"use strict";for(var a=p(e,t,r,n),i=[],o=0;o0){var l=[];0!==s[0].wholeMatch.start&&l.push(e.slice(0,s[0].wholeMatch.start));for(var d=0;d=0?n+(r||0):n},i.helper.splitAtIndex=function(e,t){"use strict";if(!i.helper.isString(e))throw"InvalidArgumentError: first parameter of showdown.helper.regexIndexOf function must be a string";return[e.substring(0,t),e.substring(t)]},i.helper.encodeEmailAddress=function(e){"use strict";var t=[function(e){return""+e.charCodeAt(0)+";"},function(e){return""+e.charCodeAt(0).toString(16)+";"},function(e){return e}];return e=e.replace(/./g,(function(e){if("@"===e)e=t[Math.floor(2*Math.random())](e);else{var r=Math.random();e=r>.9?t[2](e):r>.45?t[1](e):t[0](e)}return e}))},i.helper.padEnd=function(e,t,r){"use strict";return t>>=0,r=String(r||" "),e.length>t?String(e):((t-=e.length)>r.length&&(r+=r.repeat(t/r.length)),String(e)+r.slice(0,t))},"undefined"==typeof console&&(console={warn:function(e){"use strict";alert(e)},log:function(e){"use strict";alert(e)},error:function(e){"use strict";throw e}}),i.helper.regexes={asteriskDashAndColon:/([*_:~])/g},i.helper.emojis={"+1":"👍","-1":"👎",100:"💯",1234:"🔢","1st_place_medal":"🥇","2nd_place_medal":"🥈","3rd_place_medal":"🥉","8ball":"🎱",a:"🅰️",ab:"🆎",abc:"🔤",abcd:"🔡",accept:"🉑",aerial_tramway:"🚡",airplane:"✈️",alarm_clock:"⏰",alembic:"⚗️",alien:"👽",ambulance:"🚑",amphora:"🏺",anchor:"⚓️",angel:"👼",anger:"💢",angry:"😠",anguished:"😧",ant:"🐜",apple:"🍎",aquarius:"♒️",aries:"♈️",arrow_backward:"◀️",arrow_double_down:"⏬",arrow_double_up:"⏫",arrow_down:"⬇️",arrow_down_small:"🔽",arrow_forward:"▶️",arrow_heading_down:"⤵️",arrow_heading_up:"⤴️",arrow_left:"⬅️",arrow_lower_left:"↙️",arrow_lower_right:"↘️",arrow_right:"➡️",arrow_right_hook:"↪️",arrow_up:"⬆️",arrow_up_down:"↕️",arrow_up_small:"🔼",arrow_upper_left:"↖️",arrow_upper_right:"↗️",arrows_clockwise:"🔃",arrows_counterclockwise:"🔄",art:"🎨",articulated_lorry:"🚛",artificial_satellite:"🛰",astonished:"😲",athletic_shoe:"👟",atm:"🏧",atom_symbol:"⚛️",avocado:"🥑",b:"🅱️",baby:"👶",baby_bottle:"🍼",baby_chick:"🐤",baby_symbol:"🚼",back:"🔙",bacon:"🥓",badminton:"🏸",baggage_claim:"🛄",baguette_bread:"🥖",balance_scale:"⚖️",balloon:"🎈",ballot_box:"🗳",ballot_box_with_check:"☑️",bamboo:"🎍",banana:"🍌",bangbang:"‼️",bank:"🏦",bar_chart:"📊",barber:"💈",baseball:"⚾️",basketball:"🏀",basketball_man:"⛹️",basketball_woman:"⛹️♀️",bat:"🦇",bath:"🛀",bathtub:"🛁",battery:"🔋",beach_umbrella:"🏖",bear:"🐻",bed:"🛏",bee:"🐝",beer:"🍺",beers:"🍻",beetle:"🐞",beginner:"🔰",bell:"🔔",bellhop_bell:"🛎",bento:"🍱",biking_man:"🚴",bike:"🚲",biking_woman:"🚴♀️",bikini:"👙",biohazard:"☣️",bird:"🐦",birthday:"🎂",black_circle:"⚫️",black_flag:"🏴",black_heart:"🖤",black_joker:"🃏",black_large_square:"⬛️",black_medium_small_square:"◾️",black_medium_square:"◼️",black_nib:"✒️",black_small_square:"▪️",black_square_button:"🔲",blonde_man:"👱",blonde_woman:"👱♀️",blossom:"🌼",blowfish:"🐡",blue_book:"📘",blue_car:"🚙",blue_heart:"💙",blush:"😊",boar:"🐗",boat:"⛵️",bomb:"💣",book:"📖",bookmark:"🔖",bookmark_tabs:"📑",books:"📚",boom:"💥",boot:"👢",bouquet:"💐",bowing_man:"🙇",bow_and_arrow:"🏹",bowing_woman:"🙇♀️",bowling:"🎳",boxing_glove:"🥊",boy:"👦",bread:"🍞",bride_with_veil:"👰",bridge_at_night:"🌉",briefcase:"💼",broken_heart:"💔",bug:"🐛",building_construction:"🏗",bulb:"💡",bullettrain_front:"🚅",bullettrain_side:"🚄",burrito:"🌯",bus:"🚌",business_suit_levitating:"🕴",busstop:"🚏",bust_in_silhouette:"👤",busts_in_silhouette:"👥",butterfly:"🦋",cactus:"🌵",cake:"🍰",calendar:"📆",call_me_hand:"🤙",calling:"📲",camel:"🐫",camera:"📷",camera_flash:"📸",camping:"🏕",cancer:"♋️",candle:"🕯",candy:"🍬",canoe:"🛶",capital_abcd:"🔠",capricorn:"♑️",car:"🚗",card_file_box:"🗃",card_index:"📇",card_index_dividers:"🗂",carousel_horse:"🎠",carrot:"🥕",cat:"🐱",cat2:"🐈",cd:"💿",chains:"⛓",champagne:"🍾",chart:"💹",chart_with_downwards_trend:"📉",chart_with_upwards_trend:"📈",checkered_flag:"🏁",cheese:"🧀",cherries:"🍒",cherry_blossom:"🌸",chestnut:"🌰",chicken:"🐔",children_crossing:"🚸",chipmunk:"🐿",chocolate_bar:"🍫",christmas_tree:"🎄",church:"⛪️",cinema:"🎦",circus_tent:"🎪",city_sunrise:"🌇",city_sunset:"🌆",cityscape:"🏙",cl:"🆑",clamp:"🗜",clap:"👏",clapper:"🎬",classical_building:"🏛",clinking_glasses:"🥂",clipboard:"📋",clock1:"🕐",clock10:"🕙",clock1030:"🕥",clock11:"🕚",clock1130:"🕦",clock12:"🕛",clock1230:"🕧",clock130:"🕜",clock2:"🕑",clock230:"🕝",clock3:"🕒",clock330:"🕞",clock4:"🕓",clock430:"🕟",clock5:"🕔",clock530:"🕠",clock6:"🕕",clock630:"🕡",clock7:"🕖",clock730:"🕢",clock8:"🕗",clock830:"🕣",clock9:"🕘",clock930:"🕤",closed_book:"📕",closed_lock_with_key:"🔐",closed_umbrella:"🌂",cloud:"☁️",cloud_with_lightning:"🌩",cloud_with_lightning_and_rain:"⛈",cloud_with_rain:"🌧",cloud_with_snow:"🌨",clown_face:"🤡",clubs:"♣️",cocktail:"🍸",coffee:"☕️",coffin:"⚰️",cold_sweat:"😰",comet:"☄️",computer:"💻",computer_mouse:"🖱",confetti_ball:"🎊",confounded:"😖",confused:"😕",congratulations:"㊗️",construction:"🚧",construction_worker_man:"👷",construction_worker_woman:"👷♀️",control_knobs:"🎛",convenience_store:"🏪",cookie:"🍪",cool:"🆒",policeman:"👮",copyright:"©️",corn:"🌽",couch_and_lamp:"🛋",couple:"👫",couple_with_heart_woman_man:"💑",couple_with_heart_man_man:"👨❤️👨",couple_with_heart_woman_woman:"👩❤️👩",couplekiss_man_man:"👨❤️💋👨",couplekiss_man_woman:"💏",couplekiss_woman_woman:"👩❤️💋👩",cow:"🐮",cow2:"🐄",cowboy_hat_face:"🤠",crab:"🦀",crayon:"🖍",credit_card:"💳",crescent_moon:"🌙",cricket:"🏏",crocodile:"🐊",croissant:"🥐",crossed_fingers:"🤞",crossed_flags:"🎌",crossed_swords:"⚔️",crown:"👑",cry:"😢",crying_cat_face:"😿",crystal_ball:"🔮",cucumber:"🥒",cupid:"💘",curly_loop:"➰",currency_exchange:"💱",curry:"🍛",custard:"🍮",customs:"🛃",cyclone:"🌀",dagger:"🗡",dancer:"💃",dancing_women:"👯",dancing_men:"👯♂️",dango:"🍡",dark_sunglasses:"🕶",dart:"🎯",dash:"💨",date:"📅",deciduous_tree:"🌳",deer:"🦌",department_store:"🏬",derelict_house:"🏚",desert:"🏜",desert_island:"🏝",desktop_computer:"🖥",male_detective:"🕵️",diamond_shape_with_a_dot_inside:"💠",diamonds:"♦️",disappointed:"😞",disappointed_relieved:"😥",dizzy:"💫",dizzy_face:"😵",do_not_litter:"🚯",dog:"🐶",dog2:"🐕",dollar:"💵",dolls:"🎎",dolphin:"🐬",door:"🚪",doughnut:"🍩",dove:"🕊",dragon:"🐉",dragon_face:"🐲",dress:"👗",dromedary_camel:"🐪",drooling_face:"🤤",droplet:"💧",drum:"🥁",duck:"🦆",dvd:"📀","e-mail":"📧",eagle:"🦅",ear:"👂",ear_of_rice:"🌾",earth_africa:"🌍",earth_americas:"🌎",earth_asia:"🌏",egg:"🥚",eggplant:"🍆",eight_pointed_black_star:"✴️",eight_spoked_asterisk:"✳️",electric_plug:"🔌",elephant:"🐘",email:"✉️",end:"🔚",envelope_with_arrow:"📩",euro:"💶",european_castle:"🏰",european_post_office:"🏤",evergreen_tree:"🌲",exclamation:"❗️",expressionless:"😑",eye:"👁",eye_speech_bubble:"👁🗨",eyeglasses:"👓",eyes:"👀",face_with_head_bandage:"🤕",face_with_thermometer:"🤒",fist_oncoming:"👊",factory:"🏭",fallen_leaf:"🍂",family_man_woman_boy:"👪",family_man_boy:"👨👦",family_man_boy_boy:"👨👦👦",family_man_girl:"👨👧",family_man_girl_boy:"👨👧👦",family_man_girl_girl:"👨👧👧",family_man_man_boy:"👨👨👦",family_man_man_boy_boy:"👨👨👦👦",family_man_man_girl:"👨👨👧",family_man_man_girl_boy:"👨👨👧👦",family_man_man_girl_girl:"👨👨👧👧",family_man_woman_boy_boy:"👨👩👦👦",family_man_woman_girl:"👨👩👧",family_man_woman_girl_boy:"👨👩👧👦",family_man_woman_girl_girl:"👨👩👧👧",family_woman_boy:"👩👦",family_woman_boy_boy:"👩👦👦",family_woman_girl:"👩👧",family_woman_girl_boy:"👩👧👦",family_woman_girl_girl:"👩👧👧",family_woman_woman_boy:"👩👩👦",family_woman_woman_boy_boy:"👩👩👦👦",family_woman_woman_girl:"👩👩👧",family_woman_woman_girl_boy:"👩👩👧👦",family_woman_woman_girl_girl:"👩👩👧👧",fast_forward:"⏩",fax:"📠",fearful:"😨",feet:"🐾",female_detective:"🕵️♀️",ferris_wheel:"🎡",ferry:"⛴",field_hockey:"🏑",file_cabinet:"🗄",file_folder:"📁",film_projector:"📽",film_strip:"🎞",fire:"🔥",fire_engine:"🚒",fireworks:"🎆",first_quarter_moon:"🌓",first_quarter_moon_with_face:"🌛",fish:"🐟",fish_cake:"🍥",fishing_pole_and_fish:"🎣",fist_raised:"✊",fist_left:"🤛",fist_right:"🤜",flags:"🎏",flashlight:"🔦",fleur_de_lis:"⚜️",flight_arrival:"🛬",flight_departure:"🛫",floppy_disk:"💾",flower_playing_cards:"🎴",flushed:"😳",fog:"🌫",foggy:"🌁",football:"🏈",footprints:"👣",fork_and_knife:"🍴",fountain:"⛲️",fountain_pen:"🖋",four_leaf_clover:"🍀",fox_face:"🦊",framed_picture:"🖼",free:"🆓",fried_egg:"🍳",fried_shrimp:"🍤",fries:"🍟",frog:"🐸",frowning:"😦",frowning_face:"☹️",frowning_man:"🙍♂️",frowning_woman:"🙍",middle_finger:"🖕",fuelpump:"⛽️",full_moon:"🌕",full_moon_with_face:"🌝",funeral_urn:"⚱️",game_die:"🎲",gear:"⚙️",gem:"💎",gemini:"♊️",ghost:"👻",gift:"🎁",gift_heart:"💝",girl:"👧",globe_with_meridians:"🌐",goal_net:"🥅",goat:"🐐",golf:"⛳️",golfing_man:"🏌️",golfing_woman:"🏌️♀️",gorilla:"🦍",grapes:"🍇",green_apple:"🍏",green_book:"📗",green_heart:"💚",green_salad:"🥗",grey_exclamation:"❕",grey_question:"❔",grimacing:"😬",grin:"😁",grinning:"😀",guardsman:"💂",guardswoman:"💂♀️",guitar:"🎸",gun:"🔫",haircut_woman:"💇",haircut_man:"💇♂️",hamburger:"🍔",hammer:"🔨",hammer_and_pick:"⚒",hammer_and_wrench:"🛠",hamster:"🐹",hand:"✋",handbag:"👜",handshake:"🤝",hankey:"💩",hatched_chick:"🐥",hatching_chick:"🐣",headphones:"🎧",hear_no_evil:"🙉",heart:"❤️",heart_decoration:"💟",heart_eyes:"😍",heart_eyes_cat:"😻",heartbeat:"💓",heartpulse:"💗",hearts:"♥️",heavy_check_mark:"✔️",heavy_division_sign:"➗",heavy_dollar_sign:"💲",heavy_heart_exclamation:"❣️",heavy_minus_sign:"➖",heavy_multiplication_x:"✖️",heavy_plus_sign:"➕",helicopter:"🚁",herb:"🌿",hibiscus:"🌺",high_brightness:"🔆",high_heel:"👠",hocho:"🔪",hole:"🕳",honey_pot:"🍯",horse:"🐴",horse_racing:"🏇",hospital:"🏥",hot_pepper:"🌶",hotdog:"🌭",hotel:"🏨",hotsprings:"♨️",hourglass:"⌛️",hourglass_flowing_sand:"⏳",house:"🏠",house_with_garden:"🏡",houses:"🏘",hugs:"🤗",hushed:"😯",ice_cream:"🍨",ice_hockey:"🏒",ice_skate:"⛸",icecream:"🍦",id:"🆔",ideograph_advantage:"🉐",imp:"👿",inbox_tray:"📥",incoming_envelope:"📨",tipping_hand_woman:"💁",information_source:"ℹ️",innocent:"😇",interrobang:"⁉️",iphone:"📱",izakaya_lantern:"🏮",jack_o_lantern:"🎃",japan:"🗾",japanese_castle:"🏯",japanese_goblin:"👺",japanese_ogre:"👹",jeans:"👖",joy:"😂",joy_cat:"😹",joystick:"🕹",kaaba:"🕋",key:"🔑",keyboard:"⌨️",keycap_ten:"🔟",kick_scooter:"🛴",kimono:"👘",kiss:"💋",kissing:"😗",kissing_cat:"😽",kissing_closed_eyes:"😚",kissing_heart:"😘",kissing_smiling_eyes:"😙",kiwi_fruit:"🥝",koala:"🐨",koko:"🈁",label:"🏷",large_blue_circle:"🔵",large_blue_diamond:"🔷",large_orange_diamond:"🔶",last_quarter_moon:"🌗",last_quarter_moon_with_face:"🌜",latin_cross:"✝️",laughing:"😆",leaves:"🍃",ledger:"📒",left_luggage:"🛅",left_right_arrow:"↔️",leftwards_arrow_with_hook:"↩️",lemon:"🍋",leo:"♌️",leopard:"🐆",level_slider:"🎚",libra:"♎️",light_rail:"🚈",link:"🔗",lion:"🦁",lips:"👄",lipstick:"💄",lizard:"🦎",lock:"🔒",lock_with_ink_pen:"🔏",lollipop:"🍭",loop:"➿",loud_sound:"🔊",loudspeaker:"📢",love_hotel:"🏩",love_letter:"💌",low_brightness:"🔅",lying_face:"🤥",m:"Ⓜ️",mag:"🔍",mag_right:"🔎",mahjong:"🀄️",mailbox:"📫",mailbox_closed:"📪",mailbox_with_mail:"📬",mailbox_with_no_mail:"📭",man:"👨",man_artist:"👨🎨",man_astronaut:"👨🚀",man_cartwheeling:"🤸♂️",man_cook:"👨🍳",man_dancing:"🕺",man_facepalming:"🤦♂️",man_factory_worker:"👨🏭",man_farmer:"👨🌾",man_firefighter:"👨🚒",man_health_worker:"👨⚕️",man_in_tuxedo:"🤵",man_judge:"👨⚖️",man_juggling:"🤹♂️",man_mechanic:"👨🔧",man_office_worker:"👨💼",man_pilot:"👨✈️",man_playing_handball:"🤾♂️",man_playing_water_polo:"🤽♂️",man_scientist:"👨🔬",man_shrugging:"🤷♂️",man_singer:"👨🎤",man_student:"👨🎓",man_teacher:"👨🏫",man_technologist:"👨💻",man_with_gua_pi_mao:"👲",man_with_turban:"👳",tangerine:"🍊",mans_shoe:"👞",mantelpiece_clock:"🕰",maple_leaf:"🍁",martial_arts_uniform:"🥋",mask:"😷",massage_woman:"💆",massage_man:"💆♂️",meat_on_bone:"🍖",medal_military:"🎖",medal_sports:"🏅",mega:"📣",melon:"🍈",memo:"📝",men_wrestling:"🤼♂️",menorah:"🕎",mens:"🚹",metal:"🤘",metro:"🚇",microphone:"🎤",microscope:"🔬",milk_glass:"🥛",milky_way:"🌌",minibus:"🚐",minidisc:"💽",mobile_phone_off:"📴",money_mouth_face:"🤑",money_with_wings:"💸",moneybag:"💰",monkey:"🐒",monkey_face:"🐵",monorail:"🚝",moon:"🌔",mortar_board:"🎓",mosque:"🕌",motor_boat:"🛥",motor_scooter:"🛵",motorcycle:"🏍",motorway:"🛣",mount_fuji:"🗻",mountain:"⛰",mountain_biking_man:"🚵",mountain_biking_woman:"🚵♀️",mountain_cableway:"🚠",mountain_railway:"🚞",mountain_snow:"🏔",mouse:"🐭",mouse2:"🐁",movie_camera:"🎥",moyai:"🗿",mrs_claus:"🤶",muscle:"💪",mushroom:"🍄",musical_keyboard:"🎹",musical_note:"🎵",musical_score:"🎼",mute:"🔇",nail_care:"💅",name_badge:"📛",national_park:"🏞",nauseated_face:"🤢",necktie:"👔",negative_squared_cross_mark:"❎",nerd_face:"🤓",neutral_face:"😐",new:"🆕",new_moon:"🌑",new_moon_with_face:"🌚",newspaper:"📰",newspaper_roll:"🗞",next_track_button:"⏭",ng:"🆖",no_good_man:"🙅♂️",no_good_woman:"🙅",night_with_stars:"🌃",no_bell:"🔕",no_bicycles:"🚳",no_entry:"⛔️",no_entry_sign:"🚫",no_mobile_phones:"📵",no_mouth:"😶",no_pedestrians:"🚷",no_smoking:"🚭","non-potable_water":"🚱",nose:"👃",notebook:"📓",notebook_with_decorative_cover:"📔",notes:"🎶",nut_and_bolt:"🔩",o:"⭕️",o2:"🅾️",ocean:"🌊",octopus:"🐙",oden:"🍢",office:"🏢",oil_drum:"🛢",ok:"🆗",ok_hand:"👌",ok_man:"🙆♂️",ok_woman:"🙆",old_key:"🗝",older_man:"👴",older_woman:"👵",om:"🕉",on:"🔛",oncoming_automobile:"🚘",oncoming_bus:"🚍",oncoming_police_car:"🚔",oncoming_taxi:"🚖",open_file_folder:"📂",open_hands:"👐",open_mouth:"😮",open_umbrella:"☂️",ophiuchus:"⛎",orange_book:"📙",orthodox_cross:"☦️",outbox_tray:"📤",owl:"🦉",ox:"🐂",package:"📦",page_facing_up:"📄",page_with_curl:"📃",pager:"📟",paintbrush:"🖌",palm_tree:"🌴",pancakes:"🥞",panda_face:"🐼",paperclip:"📎",paperclips:"🖇",parasol_on_ground:"⛱",parking:"🅿️",part_alternation_mark:"〽️",partly_sunny:"⛅️",passenger_ship:"🛳",passport_control:"🛂",pause_button:"⏸",peace_symbol:"☮️",peach:"🍑",peanuts:"🥜",pear:"🍐",pen:"🖊",pencil2:"✏️",penguin:"🐧",pensive:"😔",performing_arts:"🎭",persevere:"😣",person_fencing:"🤺",pouting_woman:"🙎",phone:"☎️",pick:"⛏",pig:"🐷",pig2:"🐖",pig_nose:"🐽",pill:"💊",pineapple:"🍍",ping_pong:"🏓",pisces:"♓️",pizza:"🍕",place_of_worship:"🛐",plate_with_cutlery:"🍽",play_or_pause_button:"⏯",point_down:"👇",point_left:"👈",point_right:"👉",point_up:"☝️",point_up_2:"👆",police_car:"🚓",policewoman:"👮♀️",poodle:"🐩",popcorn:"🍿",post_office:"🏣",postal_horn:"📯",postbox:"📮",potable_water:"🚰",potato:"🥔",pouch:"👝",poultry_leg:"🍗",pound:"💷",rage:"😡",pouting_cat:"😾",pouting_man:"🙎♂️",pray:"🙏",prayer_beads:"📿",pregnant_woman:"🤰",previous_track_button:"⏮",prince:"🤴",princess:"👸",printer:"🖨",purple_heart:"💜",purse:"👛",pushpin:"📌",put_litter_in_its_place:"🚮",question:"❓",rabbit:"🐰",rabbit2:"🐇",racehorse:"🐎",racing_car:"🏎",radio:"📻",radio_button:"🔘",radioactive:"☢️",railway_car:"🚃",railway_track:"🛤",rainbow:"🌈",rainbow_flag:"🏳️🌈",raised_back_of_hand:"🤚",raised_hand_with_fingers_splayed:"🖐",raised_hands:"🙌",raising_hand_woman:"🙋",raising_hand_man:"🙋♂️",ram:"🐏",ramen:"🍜",rat:"🐀",record_button:"⏺",recycle:"♻️",red_circle:"🔴",registered:"®️",relaxed:"☺️",relieved:"😌",reminder_ribbon:"🎗",repeat:"🔁",repeat_one:"🔂",rescue_worker_helmet:"⛑",restroom:"🚻",revolving_hearts:"💞",rewind:"⏪",rhinoceros:"🦏",ribbon:"🎀",rice:"🍚",rice_ball:"🍙",rice_cracker:"🍘",rice_scene:"🎑",right_anger_bubble:"🗯",ring:"💍",robot:"🤖",rocket:"🚀",rofl:"🤣",roll_eyes:"🙄",roller_coaster:"🎢",rooster:"🐓",rose:"🌹",rosette:"🏵",rotating_light:"🚨",round_pushpin:"📍",rowing_man:"🚣",rowing_woman:"🚣♀️",rugby_football:"🏉",running_man:"🏃",running_shirt_with_sash:"🎽",running_woman:"🏃♀️",sa:"🈂️",sagittarius:"♐️",sake:"🍶",sandal:"👡",santa:"🎅",satellite:"📡",saxophone:"🎷",school:"🏫",school_satchel:"🎒",scissors:"✂️",scorpion:"🦂",scorpius:"♏️",scream:"😱",scream_cat:"🙀",scroll:"📜",seat:"💺",secret:"㊙️",see_no_evil:"🙈",seedling:"🌱",selfie:"🤳",shallow_pan_of_food:"🥘",shamrock:"☘️",shark:"🦈",shaved_ice:"🍧",sheep:"🐑",shell:"🐚",shield:"🛡",shinto_shrine:"⛩",ship:"🚢",shirt:"👕",shopping:"🛍",shopping_cart:"🛒",shower:"🚿",shrimp:"🦐",signal_strength:"📶",six_pointed_star:"🔯",ski:"🎿",skier:"⛷",skull:"💀",skull_and_crossbones:"☠️",sleeping:"😴",sleeping_bed:"🛌",sleepy:"😪",slightly_frowning_face:"🙁",slightly_smiling_face:"🙂",slot_machine:"🎰",small_airplane:"🛩",small_blue_diamond:"🔹",small_orange_diamond:"🔸",small_red_triangle:"🔺",small_red_triangle_down:"🔻",smile:"😄",smile_cat:"😸",smiley:"😃",smiley_cat:"😺",smiling_imp:"😈",smirk:"😏",smirk_cat:"😼",smoking:"🚬",snail:"🐌",snake:"🐍",sneezing_face:"🤧",snowboarder:"🏂",snowflake:"❄️",snowman:"⛄️",snowman_with_snow:"☃️",sob:"😭",soccer:"⚽️",soon:"🔜",sos:"🆘",sound:"🔉",space_invader:"👾",spades:"♠️",spaghetti:"🍝",sparkle:"❇️",sparkler:"🎇",sparkles:"✨",sparkling_heart:"💖",speak_no_evil:"🙊",speaker:"🔈",speaking_head:"🗣",speech_balloon:"💬",speedboat:"🚤",spider:"🕷",spider_web:"🕸",spiral_calendar:"🗓",spiral_notepad:"🗒",spoon:"🥄",squid:"🦑",stadium:"🏟",star:"⭐️",star2:"🌟",star_and_crescent:"☪️",star_of_david:"✡️",stars:"🌠",station:"🚉",statue_of_liberty:"🗽",steam_locomotive:"🚂",stew:"🍲",stop_button:"⏹",stop_sign:"🛑",stopwatch:"⏱",straight_ruler:"📏",strawberry:"🍓",stuck_out_tongue:"😛",stuck_out_tongue_closed_eyes:"😝",stuck_out_tongue_winking_eye:"😜",studio_microphone:"🎙",stuffed_flatbread:"🥙",sun_behind_large_cloud:"🌥",sun_behind_rain_cloud:"🌦",sun_behind_small_cloud:"🌤",sun_with_face:"🌞",sunflower:"🌻",sunglasses:"😎",sunny:"☀️",sunrise:"🌅",sunrise_over_mountains:"🌄",surfing_man:"🏄",surfing_woman:"🏄♀️",sushi:"🍣",suspension_railway:"🚟",sweat:"😓",sweat_drops:"💦",sweat_smile:"😅",sweet_potato:"🍠",swimming_man:"🏊",swimming_woman:"🏊♀️",symbols:"🔣",synagogue:"🕍",syringe:"💉",taco:"🌮",tada:"🎉",tanabata_tree:"🎋",taurus:"♉️",taxi:"🚕",tea:"🍵",telephone_receiver:"📞",telescope:"🔭",tennis:"🎾",tent:"⛺️",thermometer:"🌡",thinking:"🤔",thought_balloon:"💭",ticket:"🎫",tickets:"🎟",tiger:"🐯",tiger2:"🐅",timer_clock:"⏲",tipping_hand_man:"💁♂️",tired_face:"😫",tm:"™️",toilet:"🚽",tokyo_tower:"🗼",tomato:"🍅",tongue:"👅",top:"🔝",tophat:"🎩",tornado:"🌪",trackball:"🖲",tractor:"🚜",traffic_light:"🚥",train:"🚋",train2:"🚆",tram:"🚊",triangular_flag_on_post:"🚩",triangular_ruler:"📐",trident:"🔱",triumph:"😤",trolleybus:"🚎",trophy:"🏆",tropical_drink:"🍹",tropical_fish:"🐠",truck:"🚚",trumpet:"🎺",tulip:"🌷",tumbler_glass:"🥃",turkey:"🦃",turtle:"🐢",tv:"📺",twisted_rightwards_arrows:"🔀",two_hearts:"💕",two_men_holding_hands:"👬",two_women_holding_hands:"👭",u5272:"🈹",u5408:"🈴",u55b6:"🈺",u6307:"🈯️",u6708:"🈷️",u6709:"🈶",u6e80:"🈵",u7121:"🈚️",u7533:"🈸",u7981:"🈲",u7a7a:"🈳",umbrella:"☔️",unamused:"😒",underage:"🔞",unicorn:"🦄",unlock:"🔓",up:"🆙",upside_down_face:"🙃",v:"✌️",vertical_traffic_light:"🚦",vhs:"📼",vibration_mode:"📳",video_camera:"📹",video_game:"🎮",violin:"🎻",virgo:"♍️",volcano:"🌋",volleyball:"🏐",vs:"🆚",vulcan_salute:"🖖",walking_man:"🚶",walking_woman:"🚶♀️",waning_crescent_moon:"🌘",waning_gibbous_moon:"🌖",warning:"⚠️",wastebasket:"🗑",watch:"⌚️",water_buffalo:"🐃",watermelon:"🍉",wave:"👋",wavy_dash:"〰️",waxing_crescent_moon:"🌒",wc:"🚾",weary:"😩",wedding:"💒",weight_lifting_man:"🏋️",weight_lifting_woman:"🏋️♀️",whale:"🐳",whale2:"🐋",wheel_of_dharma:"☸️",wheelchair:"♿️",white_check_mark:"✅",white_circle:"⚪️",white_flag:"🏳️",white_flower:"💮",white_large_square:"⬜️",white_medium_small_square:"◽️",white_medium_square:"◻️",white_small_square:"▫️",white_square_button:"🔳",wilted_flower:"🥀",wind_chime:"🎐",wind_face:"🌬",wine_glass:"🍷",wink:"😉",wolf:"🐺",woman:"👩",woman_artist:"👩🎨",woman_astronaut:"👩🚀",woman_cartwheeling:"🤸♀️",woman_cook:"👩🍳",woman_facepalming:"🤦♀️",woman_factory_worker:"👩🏭",woman_farmer:"👩🌾",woman_firefighter:"👩🚒",woman_health_worker:"👩⚕️",woman_judge:"👩⚖️",woman_juggling:"🤹♀️",woman_mechanic:"👩🔧",woman_office_worker:"👩💼",woman_pilot:"👩✈️",woman_playing_handball:"🤾♀️",woman_playing_water_polo:"🤽♀️",woman_scientist:"👩🔬",woman_shrugging:"🤷♀️",woman_singer:"👩🎤",woman_student:"👩🎓",woman_teacher:"👩🏫",woman_technologist:"👩💻",woman_with_turban:"👳♀️",womans_clothes:"👚",womans_hat:"👒",women_wrestling:"🤼♀️",womens:"🚺",world_map:"🗺",worried:"😟",wrench:"🔧",writing_hand:"✍️",x:"❌",yellow_heart:"💛",yen:"💴",yin_yang:"☯️",yum:"😋",zap:"⚡️",zipper_mouth_face:"🤐",zzz:"💤",octocat:'',showdown:"S"},i.Converter=function(e){"use strict";var t={},r=[],n=[],a={},o=u,f={parsed:{},raw:"",format:""};function p(e,t){if(t=t||null,i.helper.isString(e)){if(t=e=i.helper.stdExtName(e),i.extensions[e])return console.warn("DEPRECATION WARNING: "+e+" is an old extension that uses a deprecated loading method.Please inform the developer that the extension should be updated!"),void function(e,t){"function"==typeof e&&(e=e(new i.Converter));i.helper.isArray(e)||(e=[e]);var a=d(e,t);if(!a.valid)throw Error(a.error);for(var o=0;o [ \t]+,">¨NBSP;<"),!t){if(!window||!window.document)throw new Error("HTMLParser is undefined. If in a webworker or nodejs environment, you need to provide a WHATWG DOM and HTML such as JSDOM");t=window.document}var r=t.createElement("div");r.innerHTML=e;var n={preList:function(e){for(var t=e.querySelectorAll("pre"),r=[],n=0;n'}else r.push(t[n].innerHTML),t[n].innerHTML="",t[n].setAttribute("prenum",n.toString());return r}(r)};!function e(t){for(var r=0;r? ?(['"].*['"])?\)$/m)>-1)o="";else if(!o){if(a||(a=n.toLowerCase().replace(/ ?\n/g," ")),o="#"+a,i.helper.isUndefined(r.gUrls[a]))return e;o=r.gUrls[a],i.helper.isUndefined(r.gTitles[a])||(u=r.gTitles[a])}var l='"+n+""};return e=(e=(e=(e=(e=r.converter._dispatch("anchors.before",e,t,r)).replace(/\[((?:\[[^\]]*]|[^\[\]])*)] ?(?:\n *)?\[(.*?)]()()()()/g,n)).replace(/\[((?:\[[^\]]*]|[^\[\]])*)]()[ \t]*\([ \t]?<([^>]*)>(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,n)).replace(/\[((?:\[[^\]]*]|[^\[\]])*)]()[ \t]*\([ \t]?([\S]+?(?:\([\S]*?\)[\S]*?)?)>?(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,n)).replace(/\[([^\[\]]+)]()()()()()/g,n),t.ghMentions&&(e=e.replace(/(^|\s)(\\)?(@([a-z\d]+(?:[a-z\d.-]+?[a-z\d]+)*))/gim,(function(e,r,n,a,o){if("\\"===n)return r+a;if(!i.helper.isString(t.ghMentionsLink))throw new Error("ghMentionsLink option must be a string");var s=t.ghMentionsLink.replace(/\{u}/g,o),c="";return t.openLinksInNewWindow&&(c=' rel="noopener noreferrer" target="¨E95Eblank"'),r+'"+a+""}))),e=r.converter._dispatch("anchors.after",e,t,r)}));var h=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+?\.[^'">\s]+?)()(\1)?(?=\s|$)(?!["<>])/gi,g=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+\.[^'">\s]+?)([.!?,()\[\]])?(\1)?(?=\s|$)(?!["<>])/gi,b=/()<(((https?|ftp|dict):\/\/|www\.)[^'">\s]+)()>()/gi,m=/(^|\s)(?:mailto:)?([A-Za-z0-9!#$%&'*+-/=?^_`{|}~.]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)(?=$|\s)/gim,_=/<()(?:mailto:)?([-.\w]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)>/gi,v=function(e){"use strict";return function(t,r,n,a,o,s,c){var u=n=n.replace(i.helper.regexes.asteriskDashAndColon,i.helper.escapeCharactersCallback),l="",d="",f=r||"",p=c||"";return/^www\./i.test(n)&&(n=n.replace(/^www\./i,"http://www.")),e.excludeTrailingPunctuationFromURLs&&s&&(l=s),e.openLinksInNewWindow&&(d=' rel="noopener noreferrer" target="¨E95Eblank"'),f+'"+u+""+l+p}},y=function(e,t){"use strict";return function(r,n,a){var o="mailto:";return n=n||"",a=i.subParser("unescapeSpecialChars")(a,e,t),e.encodeEmails?(o=i.helper.encodeEmailAddress(o+a),a=i.helper.encodeEmailAddress(a)):o+=a,n+''+a+""}};i.subParser("autoLinks",(function(e,t,r){"use strict";return e=(e=(e=r.converter._dispatch("autoLinks.before",e,t,r)).replace(b,v(t))).replace(_,y(t,r)),e=r.converter._dispatch("autoLinks.after",e,t,r)})),i.subParser("simplifiedAutoLinks",(function(e,t,r){"use strict";return t.simplifiedAutoLink?(e=r.converter._dispatch("simplifiedAutoLinks.before",e,t,r),e=(e=t.excludeTrailingPunctuationFromURLs?e.replace(g,v(t)):e.replace(h,v(t))).replace(m,y(t,r)),e=r.converter._dispatch("simplifiedAutoLinks.after",e,t,r)):e})),i.subParser("blockGamut",(function(e,t,r){"use strict";return e=r.converter._dispatch("blockGamut.before",e,t,r),e=i.subParser("blockQuotes")(e,t,r),e=i.subParser("headers")(e,t,r),e=i.subParser("horizontalRule")(e,t,r),e=i.subParser("lists")(e,t,r),e=i.subParser("codeBlocks")(e,t,r),e=i.subParser("tables")(e,t,r),e=i.subParser("hashHTMLBlocks")(e,t,r),e=i.subParser("paragraphs")(e,t,r),e=r.converter._dispatch("blockGamut.after",e,t,r)})),i.subParser("blockQuotes",(function(e,t,r){"use strict";e=r.converter._dispatch("blockQuotes.before",e,t,r),e+="\n\n";var n=/(^ {0,3}>[ \t]?.+\n(.+\n)*\n*)+/gm;return t.splitAdjacentBlockquotes&&(n=/^ {0,3}>[\s\S]*?(?:\n\n)/gm),e=e.replace(n,(function(e){return e=(e=(e=e.replace(/^[ \t]*>[ \t]?/gm,"")).replace(/¨0/g,"")).replace(/^[ \t]+$/gm,""),e=i.subParser("githubCodeBlocks")(e,t,r),e=(e=(e=i.subParser("blockGamut")(e,t,r)).replace(/(^|\n)/g,"$1 ")).replace(/(\s*[^\r]+?<\/pre>)/gm,(function(e,t){var r=t;return r=(r=r.replace(/^ /gm,"¨0")).replace(/¨0/g,"")})),i.subParser("hashBlock")("\n"+e+"\n
",t,r)})),e=r.converter._dispatch("blockQuotes.after",e,t,r)})),i.subParser("codeBlocks",(function(e,t,r){"use strict";e=r.converter._dispatch("codeBlocks.before",e,t,r);return e=(e=(e+="¨0").replace(/(?:\n\n|^)((?:(?:[ ]{4}|\t).*\n+)+)(\n*[ ]{0,3}[^ \t\n]|(?=¨0))/g,(function(e,n,a){var o=n,s=a,c="\n";return o=i.subParser("outdent")(o,t,r),o=i.subParser("encodeCode")(o,t,r),o=(o=(o=i.subParser("detab")(o,t,r)).replace(/^\n+/g,"")).replace(/\n+$/g,""),t.omitExtraWLInCodeBlocks&&(c=""),o=""+o+c+"
",i.subParser("hashBlock")(o,t,r)+s}))).replace(/¨0/,""),e=r.converter._dispatch("codeBlocks.after",e,t,r)})),i.subParser("codeSpans",(function(e,t,r){"use strict";return void 0===(e=r.converter._dispatch("codeSpans.before",e,t,r))&&(e=""),e=e.replace(/(^|[^\\])(`+)([^\r]*?[^`])\2(?!`)/gm,(function(e,n,a,o){var s=o;return s=(s=s.replace(/^([ \t]*)/g,"")).replace(/[ \t]*$/g,""),s=n+""+(s=i.subParser("encodeCode")(s,t,r))+"
",s=i.subParser("hashHTMLSpans")(s,t,r)})),e=r.converter._dispatch("codeSpans.after",e,t,r)})),i.subParser("completeHTMLDocument",(function(e,t,r){"use strict";if(!t.completeHTMLDocument)return e;e=r.converter._dispatch("completeHTMLDocument.before",e,t,r);var n="html",a="\n",i="",o='\n',s="",c="";for(var u in void 0!==r.metadata.parsed.doctype&&(a="\n","html"!==(n=r.metadata.parsed.doctype.toString().toLowerCase())&&"html5"!==n||(o='')),r.metadata.parsed)if(r.metadata.parsed.hasOwnProperty(u))switch(u.toLowerCase()){case"doctype":break;case"title":i=""+r.metadata.parsed.title+" \n";break;case"charset":o="html"===n||"html5"===n?'\n':'\n';break;case"language":case"lang":s=' lang="'+r.metadata.parsed[u]+'"',c+='\n';break;default:c+='\n'}return e=a+"\n\n"+i+o+c+"\n\n"+e.trim()+"\n\n",e=r.converter._dispatch("completeHTMLDocument.after",e,t,r)})),i.subParser("detab",(function(e,t,r){"use strict";return e=(e=(e=(e=(e=(e=r.converter._dispatch("detab.before",e,t,r)).replace(/\t(?=\t)/g," ")).replace(/\t/g,"¨A¨B")).replace(/¨B(.+?)¨A/g,(function(e,t){for(var r=t,n=4-r.length%4,a=0;a/g,">"),e=r.converter._dispatch("encodeAmpsAndAngles.after",e,t,r)})),i.subParser("encodeBackslashEscapes",(function(e,t,r){"use strict";return e=(e=(e=r.converter._dispatch("encodeBackslashEscapes.before",e,t,r)).replace(/\\(\\)/g,i.helper.escapeCharactersCallback)).replace(/\\([`*_{}\[\]()>#+.!~=|-])/g,i.helper.escapeCharactersCallback),e=r.converter._dispatch("encodeBackslashEscapes.after",e,t,r)})),i.subParser("encodeCode",(function(e,t,r){"use strict";return e=(e=r.converter._dispatch("encodeCode.before",e,t,r)).replace(/&/g,"&").replace(//g,">").replace(/([*_{}\[\]\\=~-])/g,i.helper.escapeCharactersCallback),e=r.converter._dispatch("encodeCode.after",e,t,r)})),i.subParser("escapeSpecialCharsWithinTagAttributes",(function(e,t,r){"use strict";return e=(e=(e=r.converter._dispatch("escapeSpecialCharsWithinTagAttributes.before",e,t,r)).replace(/<\/?[a-z\d_:-]+(?:[\s]+[\s\S]+?)?>/gi,(function(e){return e.replace(/(.)<\/?code>(?=.)/g,"$1`").replace(/([\\`*_~=|])/g,i.helper.escapeCharactersCallback)}))).replace(/-]|-[^>])(?:[^-]|-[^-])*)--)>/gi,(function(e){return e.replace(/([\\`*_~=|])/g,i.helper.escapeCharactersCallback)})),e=r.converter._dispatch("escapeSpecialCharsWithinTagAttributes.after",e,t,r)})),i.subParser("githubCodeBlocks",(function(e,t,r){"use strict";return t.ghCodeBlocks?(e=r.converter._dispatch("githubCodeBlocks.before",e,t,r),e=(e=(e+="¨0").replace(/(?:^|\n)(?: {0,3})(```+|~~~+)(?: *)([^\s`~]*)\n([\s\S]*?)\n(?: {0,3})\1/g,(function(e,n,a,o){var s=t.omitExtraWLInCodeBlocks?"":"\n";return o=i.subParser("encodeCode")(o,t,r),o=""+(o=(o=(o=i.subParser("detab")(o,t,r)).replace(/^\n+/g,"")).replace(/\n+$/g,""))+s+"
",o=i.subParser("hashBlock")(o,t,r),"\n\n¨G"+(r.ghCodeBlocks.push({text:e,codeblock:o})-1)+"G\n\n"}))).replace(/¨0/,""),r.converter._dispatch("githubCodeBlocks.after",e,t,r)):e})),i.subParser("hashBlock",(function(e,t,r){"use strict";return e=(e=r.converter._dispatch("hashBlock.before",e,t,r)).replace(/(^\n+|\n+$)/g,""),e="\n\n¨K"+(r.gHtmlBlocks.push(e)-1)+"K\n\n",e=r.converter._dispatch("hashBlock.after",e,t,r)})),i.subParser("hashCodeTags",(function(e,t,r){"use strict";e=r.converter._dispatch("hashCodeTags.before",e,t,r);return e=i.helper.replaceRecursiveRegExp(e,(function(e,n,a,o){var s=a+i.subParser("encodeCode")(n,t,r)+o;return"¨C"+(r.gHtmlSpans.push(s)-1)+"C"}),"]*>","
","gim"),e=r.converter._dispatch("hashCodeTags.after",e,t,r)})),i.subParser("hashElement",(function(e,t,r){"use strict";return function(e,t){var n=t;return n=(n=(n=n.replace(/\n\n/g,"\n")).replace(/^\n/,"")).replace(/\n+$/g,""),n="\n\n¨K"+(r.gHtmlBlocks.push(n)-1)+"K\n\n"}})),i.subParser("hashHTMLBlocks",(function(e,t,r){"use strict";e=r.converter._dispatch("hashHTMLBlocks.before",e,t,r);var n=["pre","div","h1","h2","h3","h4","h5","h6","blockquote","table","dl","ol","ul","script","noscript","form","fieldset","iframe","math","style","section","header","footer","nav","article","aside","address","audio","canvas","figure","hgroup","output","video","p"],a=function(e,t,n,a){var i=e;return-1!==n.search(/\bmarkdown\b/)&&(i=n+r.converter.makeHtml(t)+a),"\n\n¨K"+(r.gHtmlBlocks.push(i)-1)+"K\n\n"};t.backslashEscapesHTMLTags&&(e=e.replace(/\\<(\/?[^>]+?)>/g,(function(e,t){return"<"+t+">"})));for(var o=0;o]*>)","im"),u="<"+n[o]+"\\b[^>]*>",l=""+n[o]+">";-1!==(s=i.helper.regexIndexOf(e,c));){var d=i.helper.splitAtIndex(e,s),f=i.helper.replaceRecursiveRegExp(d[1],a,u,l,"im");if(f===d[1])break;e=d[0].concat(f)}return e=e.replace(/(\n {0,3}(<(hr)\b([^<>])*?\/?>)[ \t]*(?=\n{2,}))/g,i.subParser("hashElement")(e,t,r)),e=(e=i.helper.replaceRecursiveRegExp(e,(function(e){return"\n\n¨K"+(r.gHtmlBlocks.push(e)-1)+"K\n\n"}),"^ {0,3}\x3c!--","--\x3e","gm")).replace(/(?:\n\n)( {0,3}(?:<([?%])[^\r]*?\2>)[ \t]*(?=\n{2,}))/g,i.subParser("hashElement")(e,t,r)),e=r.converter._dispatch("hashHTMLBlocks.after",e,t,r)})),i.subParser("hashHTMLSpans",(function(e,t,r){"use strict";function n(e){return"¨C"+(r.gHtmlSpans.push(e)-1)+"C"}return e=(e=(e=(e=(e=r.converter._dispatch("hashHTMLSpans.before",e,t,r)).replace(/<[^>]+?\/>/gi,(function(e){return n(e)}))).replace(/<([^>]+?)>[\s\S]*?<\/\1>/g,(function(e){return n(e)}))).replace(/<([^>]+?)\s[^>]+?>[\s\S]*?<\/\1>/g,(function(e){return n(e)}))).replace(/<[^>]+?>/gi,(function(e){return n(e)})),e=r.converter._dispatch("hashHTMLSpans.after",e,t,r)})),i.subParser("unhashHTMLSpans",(function(e,t,r){"use strict";e=r.converter._dispatch("unhashHTMLSpans.before",e,t,r);for(var n=0;n]*>\\s*]*>","^ {0,3}
\\s*
","gim"),e=r.converter._dispatch("hashPreCodeTags.after",e,t,r)})),i.subParser("headers",(function(e,t,r){"use strict";e=r.converter._dispatch("headers.before",e,t,r);var n=isNaN(parseInt(t.headerLevelStart))?1:parseInt(t.headerLevelStart),a=t.smoothLivePreview?/^(.+)[ \t]*\n={2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n=+[ \t]*\n+/gm,o=t.smoothLivePreview?/^(.+)[ \t]*\n-{2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n-+[ \t]*\n+/gm;e=(e=e.replace(a,(function(e,a){var o=i.subParser("spanGamut")(a,t,r),s=t.noHeaderId?"":' id="'+c(a)+'"',u=""+o+" ";return i.subParser("hashBlock")(u,t,r)}))).replace(o,(function(e,a){var o=i.subParser("spanGamut")(a,t,r),s=t.noHeaderId?"":' id="'+c(a)+'"',u=n+1,l=""+o+" ";return i.subParser("hashBlock")(l,t,r)}));var s=t.requireSpaceBeforeHeadingText?/^(#{1,6})[ \t]+(.+?)[ \t]*#*\n+/gm:/^(#{1,6})[ \t]*(.+?)[ \t]*#*\n+/gm;function c(e){var n,a;if(t.customizedHeaderId){var o=e.match(/\{([^{]+?)}\s*$/);o&&o[1]&&(e=o[1])}return n=e,a=i.helper.isString(t.prefixHeaderId)?t.prefixHeaderId:!0===t.prefixHeaderId?"section-":"",t.rawPrefixHeaderId||(n=a+n),n=t.ghCompatibleHeaderId?n.replace(/ /g,"-").replace(/&/g,"").replace(/¨T/g,"").replace(/¨D/g,"").replace(/[&+$,\/:;=?@"#{}|^¨~\[\]`\\*)(%.!'<>]/g,"").toLowerCase():t.rawHeaderId?n.replace(/ /g,"-").replace(/&/g,"&").replace(/¨T/g,"¨").replace(/¨D/g,"$").replace(/["']/g,"-").toLowerCase():n.replace(/[^\w]/g,"").toLowerCase(),t.rawPrefixHeaderId&&(n=a+n),r.hashLinkCounts[n]?n=n+"-"+r.hashLinkCounts[n]++:r.hashLinkCounts[n]=1,n}return e=e.replace(s,(function(e,a,o){var s=o;t.customizedHeaderId&&(s=o.replace(/\s?\{([^{]+?)}\s*$/,""));var u=i.subParser("spanGamut")(s,t,r),l=t.noHeaderId?"":' id="'+c(o)+'"',d=n-1+a.length,f=""+u+" ";return i.subParser("hashBlock")(f,t,r)})),e=r.converter._dispatch("headers.after",e,t,r)})),i.subParser("horizontalRule",(function(e,t,r){"use strict";e=r.converter._dispatch("horizontalRule.before",e,t,r);var n=i.subParser("hashBlock")("
",t,r);return e=(e=(e=e.replace(/^ {0,2}( ?-){3,}[ \t]*$/gm,n)).replace(/^ {0,2}( ?\*){3,}[ \t]*$/gm,n)).replace(/^ {0,2}( ?_){3,}[ \t]*$/gm,n),e=r.converter._dispatch("horizontalRule.after",e,t,r)})),i.subParser("images",(function(e,t,r){"use strict";function n(e,t,n,a,o,s,c,u){var l=r.gUrls,d=r.gTitles,f=r.gDimensions;if(n=n.toLowerCase(),u||(u=""),e.search(/\(\s*>? ?(['"].*['"])?\)$/m)>-1)a="";else if(""===a||null===a){if(""!==n&&null!==n||(n=t.toLowerCase().replace(/ ?\n/g," ")),a="#"+n,i.helper.isUndefined(l[n]))return e;a=l[n],i.helper.isUndefined(d[n])||(u=d[n]),i.helper.isUndefined(f[n])||(o=f[n].width,s=f[n].height)}t=t.replace(/"/g,""").replace(i.helper.regexes.asteriskDashAndColon,i.helper.escapeCharactersCallback);var p='"}return e=(e=(e=(e=(e=(e=r.converter._dispatch("images.before",e,t,r)).replace(/!\[([^\]]*?)] ?(?:\n *)?\[([\s\S]*?)]()()()()()/g,n)).replace(/!\[([^\]]*?)][ \t]*()\([ \t]?(data:.+?\/.+?;base64,[A-Za-z0-9+/=\n]+?)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g,(function(e,t,r,a,i,o,s,c){return n(e,t,r,a=a.replace(/\s/g,""),i,o,s,c)}))).replace(/!\[([^\]]*?)][ \t]*()\([ \t]?<([^>]*)>(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(?:(["'])([^"]*?)\6))?[ \t]?\)/g,n)).replace(/!\[([^\]]*?)][ \t]*()\([ \t]?([\S]+?(?:\([\S]*?\)[\S]*?)?)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g,n)).replace(/!\[([^\[\]]+)]()()()()()/g,n),e=r.converter._dispatch("images.after",e,t,r)})),i.subParser("italicsAndBold",(function(e,t,r){"use strict";function n(e,t,r){return t+e+r}return e=r.converter._dispatch("italicsAndBold.before",e,t,r),e=t.literalMidWordUnderscores?(e=(e=e.replace(/\b___(\S[\s\S]*?)___\b/g,(function(e,t){return n(t,"","")}))).replace(/\b__(\S[\s\S]*?)__\b/g,(function(e,t){return n(t,"","")}))).replace(/\b_(\S[\s\S]*?)_\b/g,(function(e,t){return n(t,"","")})):(e=(e=e.replace(/___(\S[\s\S]*?)___/g,(function(e,t){return/\S$/.test(t)?n(t,"",""):e}))).replace(/__(\S[\s\S]*?)__/g,(function(e,t){return/\S$/.test(t)?n(t,"",""):e}))).replace(/_([^\s_][\s\S]*?)_/g,(function(e,t){return/\S$/.test(t)?n(t,"",""):e})),e=t.literalMidWordAsterisks?(e=(e=e.replace(/([^*]|^)\B\*\*\*(\S[\s\S]*?)\*\*\*\B(?!\*)/g,(function(e,t,r){return n(r,t+"","")}))).replace(/([^*]|^)\B\*\*(\S[\s\S]*?)\*\*\B(?!\*)/g,(function(e,t,r){return n(r,t+"","")}))).replace(/([^*]|^)\B\*(\S[\s\S]*?)\*\B(?!\*)/g,(function(e,t,r){return n(r,t+"","")})):(e=(e=e.replace(/\*\*\*(\S[\s\S]*?)\*\*\*/g,(function(e,t){return/\S$/.test(t)?n(t,"",""):e}))).replace(/\*\*(\S[\s\S]*?)\*\*/g,(function(e,t){return/\S$/.test(t)?n(t,"",""):e}))).replace(/\*([^\s*][\s\S]*?)\*/g,(function(e,t){return/\S$/.test(t)?n(t,"",""):e})),e=r.converter._dispatch("italicsAndBold.after",e,t,r)})),i.subParser("lists",(function(e,t,r){"use strict";function n(e,n){r.gListLevel++,e=e.replace(/\n{2,}$/,"\n");var a=/(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0| {0,3}([*+-]|\d+[.])[ \t]+))/gm,o=/\n[ \t]*\n(?!¨0)/.test(e+="¨0");return t.disableForced4SpacesIndentedSublists&&(a=/(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0|\2([*+-]|\d+[.])[ \t]+))/gm),e=(e=e.replace(a,(function(e,n,a,s,c,u,l){l=l&&""!==l.trim();var d=i.subParser("outdent")(c,t,r),f="";return u&&t.tasklists&&(f=' class="task-list-item" style="list-style-type: none;"',d=d.replace(/^[ \t]*\[(x|X| )?]/m,(function(){var e='"}))),d=d.replace(/^([-*+]|\d\.)[ \t]+[\S\n ]*/g,(function(e){return"¨A"+e})),n||d.search(/\n{2,}/)>-1?(d=i.subParser("githubCodeBlocks")(d,t,r),d=i.subParser("blockGamut")(d,t,r)):(d=(d=i.subParser("lists")(d,t,r)).replace(/\n$/,""),d=(d=i.subParser("hashHTMLBlocks")(d,t,r)).replace(/\n\n+/g,"\n\n"),d=o?i.subParser("paragraphs")(d,t,r):i.subParser("spanGamut")(d,t,r)),d=""+(d=d.replace("¨A",""))+" \n"}))).replace(/¨0/g,""),r.gListLevel--,n&&(e=e.replace(/\s+$/,"")),e}function a(e,t){if("ol"===t){var r=e.match(/^ *(\d+)\./);if(r&&"1"!==r[1])return' start="'+r[1]+'"'}return""}function o(e,r,i){var o=t.disableForced4SpacesIndentedSublists?/^ ?\d+\.[ \t]/gm:/^ {0,3}\d+\.[ \t]/gm,s=t.disableForced4SpacesIndentedSublists?/^ ?[*+-][ \t]/gm:/^ {0,3}[*+-][ \t]/gm,c="ul"===r?o:s,u="";if(-1!==e.search(c))!function t(l){var d=l.search(c),f=a(e,r);-1!==d?(u+="\n\n<"+r+f+">\n"+n(l.slice(0,d),!!i)+""+r+">\n",c="ul"===(r="ul"===r?"ol":"ul")?o:s,t(l.slice(d))):u+="\n\n<"+r+f+">\n"+n(l,!!i)+""+r+">\n"}(e);else{var l=a(e,r);u="\n\n<"+r+l+">\n"+n(e,!!i)+""+r+">\n"}return u}return e=r.converter._dispatch("lists.before",e,t,r),e+="¨0",e=(e=r.gListLevel?e.replace(/^(( {0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(¨0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm,(function(e,t,r){return o(t,r.search(/[*+-]/g)>-1?"ul":"ol",!0)})):e.replace(/(\n\n|^\n?)(( {0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(¨0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm,(function(e,t,r,n){return o(r,n.search(/[*+-]/g)>-1?"ul":"ol",!1)}))).replace(/¨0/,""),e=r.converter._dispatch("lists.after",e,t,r)})),i.subParser("metadata",(function(e,t,r){"use strict";if(!t.metadata)return e;function n(e){r.metadata.raw=e,(e=(e=e.replace(/&/g,"&").replace(/"/g,""")).replace(/\n {4}/g," ")).replace(/^([\S ]+): +([\s\S]+?)$/gm,(function(e,t,n){return r.metadata.parsed[t]=n,""}))}return e=(e=(e=(e=r.converter._dispatch("metadata.before",e,t,r)).replace(/^\s*«««+(\S*?)\n([\s\S]+?)\n»»»+\n/,(function(e,t,r){return n(r),"¨M"}))).replace(/^\s*---+(\S*?)\n([\s\S]+?)\n---+\n/,(function(e,t,a){return t&&(r.metadata.format=t),n(a),"¨M"}))).replace(/¨M/g,""),e=r.converter._dispatch("metadata.after",e,t,r)})),i.subParser("outdent",(function(e,t,r){"use strict";return e=(e=(e=r.converter._dispatch("outdent.before",e,t,r)).replace(/^(\t|[ ]{1,4})/gm,"¨0")).replace(/¨0/g,""),e=r.converter._dispatch("outdent.after",e,t,r)})),i.subParser("paragraphs",(function(e,t,r){"use strict";for(var n=(e=(e=(e=r.converter._dispatch("paragraphs.before",e,t,r)).replace(/^\n+/g,"")).replace(/\n+$/g,"")).split(/\n{2,}/g),a=[],o=n.length,s=0;s=0?a.push(c):c.search(/\S/)>=0&&(c=(c=i.subParser("spanGamut")(c,t,r)).replace(/^([ \t]*)/g,""),c+="
",a.push(c))}for(o=a.length,s=0;s]*>\s*]*>/.test(l)&&(d=!0)}a[s]=l}return e=(e=(e=a.join("\n")).replace(/^\n+/g,"")).replace(/\n+$/g,""),r.converter._dispatch("paragraphs.after",e,t,r)})),i.subParser("runExtension",(function(e,t,r,n){"use strict";if(e.filter)t=e.filter(t,n.converter,r);else if(e.regex){var a=e.regex;a instanceof RegExp||(a=new RegExp(a,"g")),t=t.replace(a,e.replace)}return t})),i.subParser("spanGamut",(function(e,t,r){"use strict";return e=r.converter._dispatch("spanGamut.before",e,t,r),e=i.subParser("codeSpans")(e,t,r),e=i.subParser("escapeSpecialCharsWithinTagAttributes")(e,t,r),e=i.subParser("encodeBackslashEscapes")(e,t,r),e=i.subParser("images")(e,t,r),e=i.subParser("anchors")(e,t,r),e=i.subParser("autoLinks")(e,t,r),e=i.subParser("simplifiedAutoLinks")(e,t,r),e=i.subParser("emoji")(e,t,r),e=i.subParser("underline")(e,t,r),e=i.subParser("italicsAndBold")(e,t,r),e=i.subParser("strikethrough")(e,t,r),e=i.subParser("ellipsis")(e,t,r),e=i.subParser("hashHTMLSpans")(e,t,r),e=i.subParser("encodeAmpsAndAngles")(e,t,r),t.simpleLineBreaks?/\n\n¨K/.test(e)||(e=e.replace(/\n+/g,"
\n")):e=e.replace(/ +\n/g,"
\n"),e=r.converter._dispatch("spanGamut.after",e,t,r)})),i.subParser("strikethrough",(function(e,t,r){"use strict";return t.strikethrough&&(e=(e=r.converter._dispatch("strikethrough.before",e,t,r)).replace(/(?:~){2}([\s\S]+?)(?:~){2}/g,(function(e,n){return function(e){return t.simplifiedAutoLink&&(e=i.subParser("simplifiedAutoLinks")(e,t,r)),""+e+""}(n)})),e=r.converter._dispatch("strikethrough.after",e,t,r)),e})),i.subParser("stripLinkDefinitions",(function(e,t,r){"use strict";var n=function(e,n,a,o,s,c,u){return n=n.toLowerCase(),a.match(/^data:.+?\/.+?;base64,/)?r.gUrls[n]=a.replace(/\s/g,""):r.gUrls[n]=i.subParser("encodeAmpsAndAngles")(a,t,r),c?c+u:(u&&(r.gTitles[n]=u.replace(/"|'/g,""")),t.parseImgDimensions&&o&&s&&(r.gDimensions[n]={width:o,height:s}),"")};return e=(e=(e=(e+="¨0").replace(/^ {0,3}\[(.+)]:[ \t]*\n?[ \t]*(data:.+?\/.+?;base64,[A-Za-z0-9+/=\n]+?)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n\n|(?=¨0)|(?=\n\[))/gm,n)).replace(/^ {0,3}\[(.+)]:[ \t]*\n?[ \t]*([^>\s]+)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n+|(?=¨0))/gm,n)).replace(/¨0/,"")})),i.subParser("tables",(function(e,t,r){"use strict";if(!t.tables)return e;function n(e,n){return""+i.subParser("spanGamut")(e,t,r)+" \n"}function a(e){var a,o=e.split("\n");for(a=0;a"+(c=i.subParser("spanGamut")(c,t,r))+"\n"));for(a=0;a\n\n\n",a=0;a\n";for(var i=0;i\n"}return r+=" \n\n"}(h,b)}return e=(e=(e=(e=r.converter._dispatch("tables.before",e,t,r)).replace(/\\(\|)/g,i.helper.escapeCharactersCallback)).replace(/^ {0,3}\|?.+\|.+\n {0,3}\|?[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*:?[ \t]*(?:[-=]){2,}[\s\S]+?(?:\n\n|¨0)/gm,a)).replace(/^ {0,3}\|.+\|[ \t]*\n {0,3}\|[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*\n( {0,3}\|.+\|[ \t]*\n)*(?:\n|¨0)/gm,a),e=r.converter._dispatch("tables.after",e,t,r)})),i.subParser("underline",(function(e,t,r){"use strict";return t.underline?(e=r.converter._dispatch("underline.before",e,t,r),e=(e=t.literalMidWordUnderscores?(e=e.replace(/\b___(\S[\s\S]*?)___\b/g,(function(e,t){return""+t+""}))).replace(/\b__(\S[\s\S]*?)__\b/g,(function(e,t){return""+t+""})):(e=e.replace(/___(\S[\s\S]*?)___/g,(function(e,t){return/\S$/.test(t)?""+t+"":e}))).replace(/__(\S[\s\S]*?)__/g,(function(e,t){return/\S$/.test(t)?""+t+"":e}))).replace(/(_)/g,i.helper.escapeCharactersCallback),e=r.converter._dispatch("underline.after",e,t,r)):e})),i.subParser("unescapeSpecialChars",(function(e,t,r){"use strict";return e=(e=r.converter._dispatch("unescapeSpecialChars.before",e,t,r)).replace(/¨E(\d+)E/g,(function(e,t){var r=parseInt(t);return String.fromCharCode(r)})),e=r.converter._dispatch("unescapeSpecialChars.after",e,t,r)})),i.subParser("makeMarkdown.blockquote",(function(e,t){"use strict";var r="";if(e.hasChildNodes())for(var n=e.childNodes,a=n.length,o=0;o ")})),i.subParser("makeMarkdown.codeBlock",(function(e,t){"use strict";var r=e.getAttribute("language"),n=e.getAttribute("precodenum");return"```"+r+"\n"+t.preList[n]+"\n```"})),i.subParser("makeMarkdown.codeSpan",(function(e){"use strict";return"`"+e.innerHTML+"`"})),i.subParser("makeMarkdown.emphasis",(function(e,t){"use strict";var r="";if(e.hasChildNodes()){r+="*";for(var n=e.childNodes,a=n.length,o=0;o",e.hasAttribute("width")&&e.hasAttribute("height")&&(t+=" ="+e.getAttribute("width")+"x"+e.getAttribute("height")),e.hasAttribute("title")&&(t+=' "'+e.getAttribute("title")+'"'),t+=")"),t})),i.subParser("makeMarkdown.links",(function(e,t){"use strict";var r="";if(e.hasChildNodes()&&e.hasAttribute("href")){var n=e.childNodes,a=n.length;r="[";for(var o=0;o",e.hasAttribute("title")&&(r+=' "'+e.getAttribute("title")+'"'),r+=")"}return r})),i.subParser("makeMarkdown.list",(function(e,t,r){"use strict";var n="";if(!e.hasChildNodes())return"";for(var a=e.childNodes,o=a.length,s=e.getAttribute("start")||1,c=0;c"+t.preList[r]+""})),i.subParser("makeMarkdown.strikethrough",(function(e,t){"use strict";var r="";if(e.hasChildNodes()){r+="~~";for(var n=e.childNodes,a=n.length,o=0;otr>th"),c=e.querySelectorAll("tbody>tr");for(r=0;rh&&(h=g)}for(r=0;r/g,"\\$1>")).replace(/^#/gm,"\\#")).replace(/^(\s*)([-=]{3,})(\s*)$/,"$1\\$2$3")).replace(/^( {0,3}\d+)\./gm,"$1\\.")).replace(/^( {0,3})([+-])/gm,"$1\\$2")).replace(/]([\s]*)\(/g,"\\]$1\\(")).replace(/^ {0,3}\[([\S \t]*?)]:/gm,"\\[$1]:")}));void 0===(n=function(){"use strict";return i}.call(t,r,t,e))||(e.exports=n)}).call(this)},31:function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r(24);function a(e,t){if(e){if("string"==typeof e)return Object(n.a)(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Object(n.a)(e,t):void 0}}},33:function(e,t){e.exports=window.wp.hooks},35:function(e,t){e.exports=window.wp.deprecated},37:function(e,t,r){"use strict";function n(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}r.d(t,"a",(function(){return n}))},38:function(e,t,r){"use strict";function n(e){if(Array.isArray(e))return e}r.d(t,"a",(function(){return n}))},39:function(e,t,r){"use strict";function n(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}r.d(t,"a",(function(){return n}))},4:function(e,t){e.exports=window.wp.data},41:function(e,t,r){"use strict";var n,a;function i(e){return[e]}function o(){var e={clear:function(){e.head=null}};return e}function s(e,t,r){var n;if(e.length!==t.length)return!1;for(n=r;n0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1?arguments[1]:void 0;switch(r.type){case"REMOVE_BLOCK_TYPES":return-1!==r.names.indexOf(t)?null:t;case e:return r.name||null}return t}}var h=p("SET_DEFAULT_BLOCK_NAME"),g=p("SET_FREEFORM_FALLBACK_BLOCK_NAME"),b=p("SET_UNREGISTERED_FALLBACK_BLOCK_NAME"),m=p("SET_GROUPING_BLOCK_NAME");var _=Object(i.combineReducers)({blockTypes:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ADD_BLOCK_TYPES":return d(d({},e),Object(c.keyBy)(Object(c.map)(t.blockTypes,(function(e){return Object(c.omit)(e,"styles ")})),"name"));case"REMOVE_BLOCK_TYPES":return Object(c.omit)(e,t.names)}return e},blockStyles:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ADD_BLOCK_TYPES":return d(d({},e),Object(c.mapValues)(Object(c.keyBy)(t.blockTypes,"name"),(function(t){return Object(c.uniqBy)([].concat(Object(o.a)(Object(c.get)(t,["styles"],[])),Object(o.a)(Object(c.get)(e,[t.name],[]))),(function(e){return e.name}))})));case"ADD_BLOCK_STYLES":return d(d({},e),{},Object(s.a)({},t.blockName,Object(c.uniqBy)([].concat(Object(o.a)(Object(c.get)(e,[t.blockName],[])),Object(o.a)(t.styles)),(function(e){return e.name}))));case"REMOVE_BLOCK_STYLES":return d(d({},e),{},Object(s.a)({},t.blockName,Object(c.filter)(Object(c.get)(e,[t.blockName],[]),(function(e){return-1===t.styleNames.indexOf(e.name)}))))}return e},blockVariations:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ADD_BLOCK_TYPES":return d(d({},e),Object(c.mapValues)(Object(c.keyBy)(t.blockTypes,"name"),(function(t){return Object(c.uniqBy)([].concat(Object(o.a)(Object(c.get)(t,["variations"],[])),Object(o.a)(Object(c.get)(e,[t.name],[]))),(function(e){return e.name}))})));case"ADD_BLOCK_VARIATIONS":return d(d({},e),{},Object(s.a)({},t.blockName,Object(c.uniqBy)([].concat(Object(o.a)(Object(c.get)(e,[t.blockName],[])),Object(o.a)(t.variations)),(function(e){return e.name}))));case"REMOVE_BLOCK_VARIATIONS":return d(d({},e),{},Object(s.a)({},t.blockName,Object(c.filter)(Object(c.get)(e,[t.blockName],[]),(function(e){return-1===t.variationNames.indexOf(e.name)}))))}return e},defaultBlockName:h,freeformFallbackBlockName:g,unregisteredFallbackBlockName:b,groupingBlockName:m,categories:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_CATEGORIES":return t.categories||[];case"UPDATE_CATEGORY":if(!t.category||Object(c.isEmpty)(t.category))return e;var r=Object(c.find)(e,["slug",t.slug]);if(r)return Object(c.map)(e,(function(e){return e.slug===t.slug?d(d({},e),t.category):e}))}return e},collections:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ADD_BLOCK_COLLECTION":return d(d({},e),{},Object(s.a)({},t.namespace,{title:t.title,icon:t.icon}));case"REMOVE_BLOCK_COLLECTION":return Object(c.omit)(e,t.namespace)}return e}}),v=r(41);function y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function w(e){for(var t=1;t0},H=function(e,t){return Object(c.some)(D(e,t),(function(t){return M(e,t,"inserter",!0)}))};function V(e){return{type:"ADD_BLOCK_TYPES",blockTypes:Object(c.castArray)(e)}}function R(e){return{type:"REMOVE_BLOCK_TYPES",names:Object(c.castArray)(e)}}function F(e,t){return{type:"ADD_BLOCK_STYLES",styles:Object(c.castArray)(t),blockName:e}}function $(e,t){return{type:"REMOVE_BLOCK_STYLES",styleNames:Object(c.castArray)(t),blockName:e}}function q(e,t){return{type:"ADD_BLOCK_VARIATIONS",variations:Object(c.castArray)(t),blockName:e}}function U(e,t){return{type:"REMOVE_BLOCK_VARIATIONS",variationNames:Object(c.castArray)(t),blockName:e}}function G(e){return{type:"SET_DEFAULT_BLOCK_NAME",name:e}}function K(e){return{type:"SET_FREEFORM_FALLBACK_BLOCK_NAME",name:e}}function W(e){return{type:"SET_UNREGISTERED_FALLBACK_BLOCK_NAME",name:e}}function Q(e){return{type:"SET_GROUPING_BLOCK_NAME",name:e}}function Y(e){return{type:"SET_CATEGORIES",categories:e}}function Z(e,t){return{type:"UPDATE_CATEGORY",slug:e,category:t}}function X(e,t,r){return{type:"ADD_BLOCK_COLLECTION",namespace:e,title:t,icon:r}}function J(e){return{type:"REMOVE_BLOCK_COLLECTION",namespace:e}}var ee=Object(i.createReduxStore)("core/blocks",{reducer:_,selectors:n,actions:a});Object(i.register)(ee);var te=r(11),re=r(204),ne=r(33),ae=r(215),ie=r(60),oe=r.n(ie),se=r(0),ce=r(27);function ue(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function le(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:"visual";if("core/template-part"===e.name&&t.slug){var n,a=Object(i.select)("core").getEntityRecord("postType","wp_template_part",t.theme+"//"+t.slug);if(a)return Object(c.startCase)((null===(n=a.title)||void 0===n?void 0:n.rendered)||a.slug)}var o=e.__experimentalLabel,s=e.title,u=o&&o(t,{context:r});return u?Object(ce.__unstableStripHTML)(u):s}function me(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"vertical",a=e.title,i=be(e,t,"accessibility"),o=void 0!==r,s=i&&i!==a;return o&&"vertical"===n?s?Object(u.sprintf)(Object(u.__)("%1$s Block. Row %2$d. %3$s"),a,r,i):Object(u.sprintf)(Object(u.__)("%1$s Block. Row %2$d"),a,r):o&&"horizontal"===n?s?Object(u.sprintf)(Object(u.__)("%1$s Block. Column %2$d. %3$s"),a,r,i):Object(u.sprintf)(Object(u.__)("%1$s Block. Column %2$d"),a,r):s?Object(u.sprintf)(Object(u.__)("%1$s Block. %2$s"),a,i):Object(u.sprintf)(Object(u.__)("%s Block"),a)}function _e(e,t){var r=ze(e);if(void 0===r)throw new Error("Block type '".concat(e,"' is not registered."));return Object(c.reduce)(r.attributes,(function(e,r,n){var a=t[n];return void 0!==a?e[n]=a:r.hasOwnProperty("default")&&(e[n]=r.default),-1!==["node","children"].indexOf(r.source)&&("string"==typeof e[n]?e[n]=[e[n]]:Array.isArray(e[n])||(e[n]=[])),e}),{})}var ve=["attributes","supports","save","migrate","isEligible","apiVersion"],ye={"--wp--style--color--link":{value:["color","link"],support:["color","link"]},background:{value:["color","gradient"],support:["color","gradients"]},backgroundColor:{value:["color","background"],support:["color"]},borderRadius:{value:["border","radius"],support:["__experimentalBorder","radius"]},color:{value:["color","text"],support:["color"]},fontFamily:{value:["typography","fontFamily"],support:["__experimentalFontFamily"]},fontSize:{value:["typography","fontSize"],support:["fontSize"]},fontStyle:{value:["typography","fontStyle"],support:["__experimentalFontStyle"]},fontWeight:{value:["typography","fontWeight"],support:["__experimentalFontWeight"]},lineHeight:{value:["typography","lineHeight"],support:["lineHeight"]},padding:{value:["spacing","padding"],support:["spacing","padding"],properties:["top","right","bottom","left"]},textDecoration:{value:["typography","textDecoration"],support:["__experimentalTextDecoration"]},textTransform:{value:["typography","textTransform"],support:["__experimentalTextTransform"]}};function we(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ke(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=_e(e,t),a=Object(re.a)();return{clientId:a,name:e,isValid:!0,attributes:n,innerBlocks:r}}function Je(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map((function(e){var t=Array.isArray(e)?e:[e.name,e.attributes,e.innerBlocks],r=Object(te.a)(t,3),n=r[0],a=r[1],i=r[2];return Xe(n,a,Je(void 0===i?[]:i))}))}function et(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,n=Object(re.a)(),a=_e(e.name,Ze(Ze({},e.attributes),t));return Ze(Ze({},e),{},{clientId:n,attributes:a,innerBlocks:r||e.innerBlocks.map((function(e){return et(e)}))})}function tt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,n=Object(re.a)();return Ze(Ze({},e),{},{clientId:n,attributes:Ze(Ze({},e.attributes),t),innerBlocks:r||e.innerBlocks.map((function(e){return tt(e)}))})}var rt=function(e,t,r){if(Object(c.isEmpty)(r))return!1;var n=r.length>1,a=Object(c.first)(r).name;if(!(nt(e)||!n||e.isMultiBlock))return!1;if(!nt(e)&&!Object(c.every)(r,{name:a}))return!1;if(!("block"===e.type))return!1;var i=Object(c.first)(r);if(!("from"!==t||-1!==e.blocks.indexOf(i.name)||nt(e)))return!1;if(!n&&at(i.name)&&at(e.blockName))return!1;if(Object(c.isFunction)(e.isMatch)){var o=e.isMultiBlock?r.map((function(e){return e.attributes})):i.attributes;if(!e.isMatch(o))return!1}return!0},nt=function(e){return e&&"block"===e.type&&Array.isArray(e.blocks)&&e.blocks.includes("*")},at=function(e){return e===Ee()};function it(e){if(Object(c.isEmpty)(e))return[];var t=function(e){if(Object(c.isEmpty)(e))return[];var t=Ie();return Object(c.filter)(t,(function(t){return!!ot(st("from",t.name),(function(t){return rt(t,"from",e)}))}))}(e),r=function(e){if(Object(c.isEmpty)(e))return[];var t=st("to",ze(Object(c.first)(e).name).name),r=Object(c.filter)(t,(function(t){return t&&rt(t,"to",e)}));return Object(c.flatMap)(r,(function(e){return e.blocks})).map((function(e){return ze(e)}))}(e);return Object(c.uniq)([].concat(Object(o.a)(t),Object(o.a)(r)))}function ot(e,t){for(var r=Object(ne.createHooks)(),n=function(n){var a=e[n];t(a)&&r.addFilter("transform","transform/"+n.toString(),(function(e){return e||a}),a.priority)},a=0;a1,i=n[0],o=i.name,s=st("from",t),u=ot(st("to",o),(function(e){return"block"===e.type&&(nt(e)||-1!==e.blocks.indexOf(t))&&(!a||e.isMultiBlock)}))||ot(s,(function(e){return"block"===e.type&&(nt(e)||-1!==e.blocks.indexOf(o))&&(!a||e.isMultiBlock)}));if(!u)return null;if(r=u.isMultiBlock?Object(c.has)(u,"__experimentalConvert")?u.__experimentalConvert(n):u.transform(n.map((function(e){return e.attributes})),n.map((function(e){return e.innerBlocks}))):Object(c.has)(u,"__experimentalConvert")?u.__experimentalConvert(i):u.transform(i.attributes,i.innerBlocks),!Object(c.isObjectLike)(r))return null;if((r=Object(c.castArray)(r)).some((function(e){return!ze(e.name)})))return null;var l=Object(c.findIndex)(r,(function(e){return e.name===t}));return l<0?null:r.map((function(t,r){var n=Ze(Ze({},t),{},{clientId:r===l?i.clientId:t.clientId});return Object(ne.applyFilters)("blocks.switchToBlockType.transformedBlock",n,e)}))}var ut=function e(t,r){return Xe(t,r.attributes,Object(c.map)(r.innerBlocks,(function(t){return e(t.name,t)})))};function lt(e,t){for(var r,n=t.split(".");r=n.shift();){if(!(r in e))return;e=e[r]}return e}var dt,ft=function(){return dt||(dt=document.implementation.createHTMLDocument("")),dt};function pt(e,t){if(t){if("string"==typeof e){var r=ft();r.body.innerHTML=e,e=r.body}if("function"==typeof t)return t(e);if(Object===t.constructor)return Object.keys(t).reduce((function(r,n){return r[n]=pt(e,t[n]),r}),{})}}function ht(e,t){return 1===arguments.length&&(t=e,e=void 0),function(r){var n=r;if(e&&(n=r.querySelector(e)),n)return lt(n,t)}}var gt=r(115),bt=r(284),mt=r(147),_t=r(25),vt=r(26),yt=/^#[xX]([A-Fa-f0-9]+)$/,wt=/^#([0-9]+)$/,kt=/^([A-Za-z0-9]+)$/,Ot=(function(){function e(e){this.named=e}e.prototype.parse=function(e){if(e){var t=e.match(yt);return t?String.fromCharCode(parseInt(t[1],16)):(t=e.match(wt))?String.fromCharCode(parseInt(t[1],10)):(t=e.match(kt))?this.named[t[1]]:void 0}}}(),/[\t\n\f ]/),jt=/[A-Za-z]/,Tt=/\r\n?/g;function Ct(e){return Ot.test(e)}function xt(e){return jt.test(e)}var Pt=function(){function e(e,t,r){void 0===r&&(r="precompile"),this.delegate=e,this.entityParser=t,this.mode=r,this.state="beforeData",this.line=-1,this.column=-1,this.input="",this.index=-1,this.tagNameBuffer="",this.states={beforeData:function(){var e=this.peek();if("<"!==e||this.isIgnoredEndTag()){if("precompile"===this.mode&&"\n"===e){var t=this.tagNameBuffer.toLowerCase();"pre"!==t&&"textarea"!==t||this.consume()}this.transitionTo("data"),this.delegate.beginData()}else this.transitionTo("tagOpen"),this.markTagStart(),this.consume()},data:function(){var e=this.peek(),t=this.tagNameBuffer;"<"!==e||this.isIgnoredEndTag()?"&"===e&&"script"!==t&&"style"!==t?(this.consume(),this.delegate.appendToData(this.consumeCharRef()||"&")):(this.consume(),this.delegate.appendToData(e)):(this.delegate.finishData(),this.transitionTo("tagOpen"),this.markTagStart(),this.consume())},tagOpen:function(){var e=this.consume();"!"===e?this.transitionTo("markupDeclarationOpen"):"/"===e?this.transitionTo("endTagOpen"):("@"===e||":"===e||xt(e))&&(this.transitionTo("tagName"),this.tagNameBuffer="",this.delegate.beginStartTag(),this.appendToTagName(e))},markupDeclarationOpen:function(){var e=this.consume();"-"===e&&"-"===this.peek()?(this.consume(),this.transitionTo("commentStart"),this.delegate.beginComment()):"DOCTYPE"===e.toUpperCase()+this.input.substring(this.index,this.index+6).toUpperCase()&&(this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.transitionTo("doctype"),this.delegate.beginDoctype&&this.delegate.beginDoctype())},doctype:function(){Ct(this.consume())&&this.transitionTo("beforeDoctypeName")},beforeDoctypeName:function(){var e=this.consume();Ct(e)||(this.transitionTo("doctypeName"),this.delegate.appendToDoctypeName&&this.delegate.appendToDoctypeName(e.toLowerCase()))},doctypeName:function(){var e=this.consume();Ct(e)?this.transitionTo("afterDoctypeName"):">"===e?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeName&&this.delegate.appendToDoctypeName(e.toLowerCase())},afterDoctypeName:function(){var e=this.consume();if(!Ct(e))if(">"===e)this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData");else{var t=e.toUpperCase()+this.input.substring(this.index,this.index+5).toUpperCase(),r="PUBLIC"===t.toUpperCase(),n="SYSTEM"===t.toUpperCase();(r||n)&&(this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.consume()),r?this.transitionTo("afterDoctypePublicKeyword"):n&&this.transitionTo("afterDoctypeSystemKeyword")}},afterDoctypePublicKeyword:function(){var e=this.peek();Ct(e)?(this.transitionTo("beforeDoctypePublicIdentifier"),this.consume()):'"'===e?(this.transitionTo("doctypePublicIdentifierDoubleQuoted"),this.consume()):"'"===e?(this.transitionTo("doctypePublicIdentifierSingleQuoted"),this.consume()):">"===e&&(this.consume(),this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData"))},doctypePublicIdentifierDoubleQuoted:function(){var e=this.consume();'"'===e?this.transitionTo("afterDoctypePublicIdentifier"):">"===e?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypePublicIdentifier&&this.delegate.appendToDoctypePublicIdentifier(e)},doctypePublicIdentifierSingleQuoted:function(){var e=this.consume();"'"===e?this.transitionTo("afterDoctypePublicIdentifier"):">"===e?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypePublicIdentifier&&this.delegate.appendToDoctypePublicIdentifier(e)},afterDoctypePublicIdentifier:function(){var e=this.consume();Ct(e)?this.transitionTo("betweenDoctypePublicAndSystemIdentifiers"):">"===e?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):'"'===e?this.transitionTo("doctypeSystemIdentifierDoubleQuoted"):"'"===e&&this.transitionTo("doctypeSystemIdentifierSingleQuoted")},betweenDoctypePublicAndSystemIdentifiers:function(){var e=this.consume();Ct(e)||(">"===e?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):'"'===e?this.transitionTo("doctypeSystemIdentifierDoubleQuoted"):"'"===e&&this.transitionTo("doctypeSystemIdentifierSingleQuoted"))},doctypeSystemIdentifierDoubleQuoted:function(){var e=this.consume();'"'===e?this.transitionTo("afterDoctypeSystemIdentifier"):">"===e?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeSystemIdentifier&&this.delegate.appendToDoctypeSystemIdentifier(e)},doctypeSystemIdentifierSingleQuoted:function(){var e=this.consume();"'"===e?this.transitionTo("afterDoctypeSystemIdentifier"):">"===e?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeSystemIdentifier&&this.delegate.appendToDoctypeSystemIdentifier(e)},afterDoctypeSystemIdentifier:function(){var e=this.consume();Ct(e)||">"===e&&(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData"))},commentStart:function(){var e=this.consume();"-"===e?this.transitionTo("commentStartDash"):">"===e?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData(e),this.transitionTo("comment"))},commentStartDash:function(){var e=this.consume();"-"===e?this.transitionTo("commentEnd"):">"===e?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData("-"),this.transitionTo("comment"))},comment:function(){var e=this.consume();"-"===e?this.transitionTo("commentEndDash"):this.delegate.appendToCommentData(e)},commentEndDash:function(){var e=this.consume();"-"===e?this.transitionTo("commentEnd"):(this.delegate.appendToCommentData("-"+e),this.transitionTo("comment"))},commentEnd:function(){var e=this.consume();">"===e?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData("--"+e),this.transitionTo("comment"))},tagName:function(){var e=this.consume();Ct(e)?this.transitionTo("beforeAttributeName"):"/"===e?this.transitionTo("selfClosingStartTag"):">"===e?(this.delegate.finishTag(),this.transitionTo("beforeData")):this.appendToTagName(e)},endTagName:function(){var e=this.consume();Ct(e)?(this.transitionTo("beforeAttributeName"),this.tagNameBuffer=""):"/"===e?(this.transitionTo("selfClosingStartTag"),this.tagNameBuffer=""):">"===e?(this.delegate.finishTag(),this.transitionTo("beforeData"),this.tagNameBuffer=""):this.appendToTagName(e)},beforeAttributeName:function(){var e=this.peek();Ct(e)?this.consume():"/"===e?(this.transitionTo("selfClosingStartTag"),this.consume()):">"===e?(this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):"="===e?(this.delegate.reportSyntaxError("attribute name cannot start with equals sign"),this.transitionTo("attributeName"),this.delegate.beginAttribute(),this.consume(),this.delegate.appendToAttributeName(e)):(this.transitionTo("attributeName"),this.delegate.beginAttribute())},attributeName:function(){var e=this.peek();Ct(e)?(this.transitionTo("afterAttributeName"),this.consume()):"/"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):"="===e?(this.transitionTo("beforeAttributeValue"),this.consume()):">"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):'"'===e||"'"===e||"<"===e?(this.delegate.reportSyntaxError(e+" is not a valid character within attribute names"),this.consume(),this.delegate.appendToAttributeName(e)):(this.consume(),this.delegate.appendToAttributeName(e))},afterAttributeName:function(){var e=this.peek();Ct(e)?this.consume():"/"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):"="===e?(this.consume(),this.transitionTo("beforeAttributeValue")):">"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.transitionTo("attributeName"),this.delegate.beginAttribute(),this.consume(),this.delegate.appendToAttributeName(e))},beforeAttributeValue:function(){var e=this.peek();Ct(e)?this.consume():'"'===e?(this.transitionTo("attributeValueDoubleQuoted"),this.delegate.beginAttributeValue(!0),this.consume()):"'"===e?(this.transitionTo("attributeValueSingleQuoted"),this.delegate.beginAttributeValue(!0),this.consume()):">"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.transitionTo("attributeValueUnquoted"),this.delegate.beginAttributeValue(!1),this.consume(),this.delegate.appendToAttributeValue(e))},attributeValueDoubleQuoted:function(){var e=this.consume();'"'===e?(this.delegate.finishAttributeValue(),this.transitionTo("afterAttributeValueQuoted")):"&"===e?this.delegate.appendToAttributeValue(this.consumeCharRef()||"&"):this.delegate.appendToAttributeValue(e)},attributeValueSingleQuoted:function(){var e=this.consume();"'"===e?(this.delegate.finishAttributeValue(),this.transitionTo("afterAttributeValueQuoted")):"&"===e?this.delegate.appendToAttributeValue(this.consumeCharRef()||"&"):this.delegate.appendToAttributeValue(e)},attributeValueUnquoted:function(){var e=this.peek();Ct(e)?(this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("beforeAttributeName")):"/"===e?(this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):"&"===e?(this.consume(),this.delegate.appendToAttributeValue(this.consumeCharRef()||"&")):">"===e?(this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.consume(),this.delegate.appendToAttributeValue(e))},afterAttributeValueQuoted:function(){var e=this.peek();Ct(e)?(this.consume(),this.transitionTo("beforeAttributeName")):"/"===e?(this.consume(),this.transitionTo("selfClosingStartTag")):">"===e?(this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):this.transitionTo("beforeAttributeName")},selfClosingStartTag:function(){">"===this.peek()?(this.consume(),this.delegate.markTagAsSelfClosing(),this.delegate.finishTag(),this.transitionTo("beforeData")):this.transitionTo("beforeAttributeName")},endTagOpen:function(){var e=this.consume();("@"===e||":"===e||xt(e))&&(this.transitionTo("endTagName"),this.tagNameBuffer="",this.delegate.beginEndTag(),this.appendToTagName(e))}},this.reset()}return e.prototype.reset=function(){this.transitionTo("beforeData"),this.input="",this.tagNameBuffer="",this.index=0,this.line=1,this.column=0,this.delegate.reset()},e.prototype.transitionTo=function(e){this.state=e},e.prototype.tokenize=function(e){this.reset(),this.tokenizePart(e),this.tokenizeEOF()},e.prototype.tokenizePart=function(e){for(this.input+=function(e){return e.replace(Tt,"\n")}(e);this.index"!==this.input.substring(this.index,this.index+8)||"style"===e&&""!==this.input.substring(this.index,this.index+8)||"script"===e&&"<\/script>"!==this.input.substring(this.index,this.index+9)},e}(),St=function(){function e(e,t){void 0===t&&(t={}),this.options=t,this.token=null,this.startLine=1,this.startColumn=0,this.tokens=[],this.tokenizer=new Pt(this,e,t.mode),this._currentAttribute=void 0}return e.prototype.tokenize=function(e){return this.tokens=[],this.tokenizer.tokenize(e),this.tokens},e.prototype.tokenizePart=function(e){return this.tokens=[],this.tokenizer.tokenizePart(e),this.tokens},e.prototype.tokenizeEOF=function(){return this.tokens=[],this.tokenizer.tokenizeEOF(),this.tokens[0]},e.prototype.reset=function(){this.token=null,this.startLine=1,this.startColumn=0},e.prototype.current=function(){var e=this.token;if(null===e)throw new Error("token was unexpectedly null");if(0===arguments.length)return e;for(var t=0;t1?r-1:0),a=1;a0&&void 0!==arguments[0]?arguments[0]:{},t=Gt.blockType,r=Gt.attributes;return Object(ne.applyFilters)("blocks.getSaveContent.extraProps",$t({},e),t,r)}function Wt(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=ge(e),a=n.save;if(a.prototype instanceof se.Component){var i=new a({attributes:t});a=i.render.bind(i)}Gt.blockType=n,Gt.attributes=t;var o=a({attributes:t,innerBlocks:r}),s=n.apiVersion>1||Ve(n,"lightBlockWrapper",!1);if(Object(c.isObject)(o)&&Object(ne.hasFilter)("blocks.getSaveContent.extraProps")&&!s){var u=Object(ne.applyFilters)("blocks.getSaveContent.extraProps",$t({},o.props),n,t);Dt()(u,o.props)||(o=Object(se.cloneElement)(o,u))}return o=Object(ne.applyFilters)("blocks.getSaveElement",o,n,t),Object(se.createElement)(Rt,{innerBlocks:r},o)}function Qt(e,t,r){var n=ge(e);return Object(se.renderToString)(Wt(n,t,r))}function Yt(e,t){return Object(c.reduce)(e.attributes,(function(e,r,n){var a=t[n];return void 0===a||void 0!==r.source||"default"in r&&r.default===a||(e[n]=a),e}),{})}function Zt(e){var t=e.originalContent;if(e.isValid||e.innerBlocks.length)try{t=Qt(e.name,e.attributes,e.innerBlocks)}catch(e){}return t}function Xt(e,t,r){var n=Object(c.isEmpty)(t)?"":function(e){return JSON.stringify(e).replace(/--/g,"\\u002d\\u002d").replace(//g,"\\u003e").replace(/&/g,"\\u0026").replace(/\\"/g,"\\u0022")}(t)+" ",a=Object(c.startsWith)(e,"core/")?e.slice(5):e;return r?"\x3c!-- wp:".concat(a," ").concat(n,"--\x3e\n")+r+"\n\x3c!-- /wp:".concat(a," --\x3e"):"\x3c!-- wp:".concat(a," ").concat(n,"/--\x3e")}function Jt(e){1===e.length&&fe(e[0])&&(e=[]);var t=er(e);return 1===e.length&&e[0].name===Ae()&&(t=Object(gt.removep)(t)),t}function er(e,t){return Object(c.castArray)(e).map((function(e){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.isInnerBlocks,n=void 0!==r&&r,a=e.name,i=Zt(e);if(a===Ne()||!n&&a===Ae())return i;var o=ze(a),s=Yt(o,e.attributes);return Xt(a,s,i)}(e,t)})).join("\n\n")}function tr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var rr=/[\t\n\r\v\f ]+/g,nr=/^[\t\n\r\v\f ]*$/,ar=/^url\s*\(['"\s]*(.*?)['"\s]*\)$/,ir=["allowfullscreen","allowpaymentrequest","allowusermedia","async","autofocus","autoplay","checked","controls","default","defer","disabled","download","formnovalidate","hidden","ismap","itemscope","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected","typemustmatch"],or=[].concat(ir,["autocapitalize","autocomplete","charset","contenteditable","crossorigin","decoding","dir","draggable","enctype","formenctype","formmethod","http-equiv","inputmode","kind","method","preload","scope","shape","spellcheck","translate","type","wrap"]),sr=[c.identity,function(e){return fr(e).join(" ")}],cr=/^[\da-z]+$/i,ur=/^#\d+$/,lr=/^#x[\da-f]+$/i;var dr=function(){function e(){Object(_t.a)(this,e)}return Object(vt.a)(e,[{key:"parse",value:function(e){if(t=e,cr.test(t)||ur.test(t)||lr.test(t))return Object(At.decodeEntities)("&"+e+";");var t}}]),e}();function fr(e){return e.trim().split(rr)}function pr(e){return e.attributes.filter((function(e){var t=Object(te.a)(e,2),r=t[0];return t[1]||0===r.indexOf("data-")||Object(c.includes)(or,r)}))}function hr(e,t){for(var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Et(),n=e.chars,a=t.chars,i=0;i2&&void 0!==arguments[2]?arguments[2]:Et();if(e.length!==t.length)return r.warning("Expected attributes %o, instead saw %o.",t,e),!1;for(var n={},a=0;a2&&void 0!==arguments[2]?arguments[2]:Et();return e.tagName!==t.tagName&&e.tagName.toLowerCase()!==t.tagName.toLowerCase()?(r.warning("Expected tag name `%s`, instead saw `%s`.",t.tagName,e.tagName),!1):vr.apply(void 0,Object(o.a)([e,t].map(pr)).concat([r]))},Chars:hr,Comment:hr};function wr(e){for(var t;t=e.shift();){if("Chars"!==t.type)return t;if(!nr.test(t.chars))return t}}function kr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Et();try{return new St(new dr).tokenize(e)}catch(r){t.warning("Malformed HTML detected: %s",e)}return null}function Or(e,t){return!!e.selfClosing&&!(!t||t.tagName!==e.tagName||"EndTag"!==t.type)}function jr(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Et();if(e===t)return!0;var n,a,i=[e,t].map((function(e){return kr(e,r)})),o=Object(te.a)(i,2),s=o[0],c=o[1];if(!s||!c)return!1;for(;n=wr(s);){if(!(a=wr(c)))return r.warning("Expected end of content, instead saw %o.",n),!1;if(n.type!==a.type)return r.warning("Expected token of type `%s` (%o), instead saw `%s` (%o).",a.type,a,n.type,n),!1;var u=yr[n.type];if(u&&!u(n,a,r))return!1;Or(n,c[0])?wr(c):Or(a,s[0])&&wr(s)}return!(a=wr(c))||(r.warning("Expected %o, instead saw end of content.",a),!1)}function Tr(e,t,r){var n,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Bt(),i=ge(e);try{n=Qt(i,t)}catch(e){return a.error("Block validation failed because an error occurred while generating block content:\n\n%s",e.toString()),{isValid:!1,validationIssues:a.getItems()}}var o=jr(r,n,a);return o||a.error("Block validation failed for `%s` (%o).\n\nContent generated by `save` function:\n\n%s\n\nContent retrieved from post body:\n\n%s",i.name,i,n,r),{isValid:o,validationIssues:a.getItems()}}function Cr(e,t,r){return Tr(e,t,r,Et()).isValid}function xr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Pr(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:{},n=ge(e),a=Object(c.mapValues)(n.attributes,(function(e,n){return Fr(n,e,t,r)}));return Object(ne.applyFilters)("blocks.getBlockAttributes",a,n,t,r)}function qr(e,t){var r=Ir({},t);if("core/cover-image"===e&&(e="core/cover"),"core/text"!==e&&"core/cover-text"!==e||(e="core/paragraph"),e&&0===e.indexOf("core/social-link-")&&(r.service=e.substring(17),e="core/social-link"),e&&0===e.indexOf("core-embed/")){var n=e.substring(11),a={speaker:"speaker-deck",polldaddy:"crowdsignal"};r.providerNameSlug=n in a?a[n]:n,["amazon-kindle","wordpress"].includes(n)||(r.responsive=!0),e="core/embed"}return{name:e,attributes:r}}function Ur(e){var t=e.blockName,r=e.attrs,n=e.innerBlocks,a=void 0===n?[]:n,i=e.innerHTML,s=e.innerContent,u=Ae(),l=Ne()||u;r=r||{},i=i.trim();var d=t||u,f=qr(d,r);d=f.name,r=f.attributes,d===u&&(i=Object(gt.autop)(i).trim());var p=ze(d);if(!p){var h={attrs:r,blockName:t,innerBlocks:a,innerContent:s},g=Gr(h,{isCommentDelimited:!1}),b=Gr(h,{isCommentDelimited:!0});d&&(i=b),r={originalName:t,originalContent:b,originalUndelimitedContent:g},p=ze(d=l)}a=(a=a.map(Ur)).filter((function(e){return e}));var m=d===u||d===l;if(p&&(i||!m)){var _=Xe(d,$r(p,i,r),a);if(!m){var v=Tr(p,_.attributes,i),y=v.isValid,w=v.validationIssues;_.isValid=y,_.validationIssues=w}return _.originalContent=_.originalContent||i,(_=function(e,t){var r=ze(e.name),n=r.deprecated;if(!n||!n.length)return e;for(var a=e,i=a.originalContent,s=a.innerBlocks,u=0;u0&&(_.isValid?console.info("Block successfully updated for `%s` (%o).\n\nNew content generated by `save` function:\n\n%s\n\nContent retrieved from post body:\n\n%s",p.name,p,Qt(p,_.attributes),_.originalContent):_.validationIssues.forEach((function(e){var t=e.log,r=e.args;return t.apply(void 0,Object(o.a)(r))}))),_}}function Gr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.isCommentDelimited,n=void 0===r||r,a=e.blockName,i=e.attrs,o=void 0===i?{}:i,s=e.innerBlocks,c=void 0===s?[]:s,u=e.innerContent,l=void 0===u?[]:u,d=0,f=l.map((function(e){return null!==e?e:Gr(c[d++],t)})).join("\n").replace(/\n+/g,"\n").trim();return n?Xt(a,o,f):f}var Kr,Wr=(Kr=bt.parse,function(e){return Kr(e).reduce((function(e,t){var r=Ur(t);return r&&e.push(r),e}),[])}),Qr=Wr;function Yr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Zr(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:e,r=e.ownerDocument.createElement("figure");t.parentNode.insertBefore(r,t),r.appendChild(e)}function yn(e,t,r){if(function(e,t){var r=e.nodeName.toLowerCase();return"figcaption"!==r&&!Object(ce.isTextContent)(e)&&Object(c.has)(t,["figure","children",r])}(e,r)){var n=e,a=e.parentNode;(function(e,t){var r=e.nodeName.toLowerCase();return Object(c.has)(t,["figure","children","a","children",r])})(e,r)&&"A"===a.nodeName&&1===a.childNodes.length&&(n=e.parentNode);var i=n.closest("p,div");i?e.classList?(e.classList.contains("alignright")||e.classList.contains("alignleft")||e.classList.contains("aligncenter")||!i.textContent.trim())&&vn(n,i):vn(n,i):"BODY"===n.parentNode.nodeName&&vn(n)}}var wn=r(129);function kn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function On(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],a=st("from"),i=ot(a,(function(e){return-1===n.indexOf(e.blockName)&&"shortcode"===e.type&&Object(c.some)(Object(c.castArray)(e.tag),(function(e){return Object(wn.regexp)(e).test(t)}))}));if(!i)return[t];var s,u=Object(c.castArray)(i.tag),l=Object(c.find)(u,(function(e){return Object(wn.regexp)(e).test(t)})),d=r;if(s=Object(wn.next)(l,t,r)){r=s.index+s.content.length;var f=t.substr(0,s.index),p=t.substr(r);if(!(Object(c.includes)(s.shortcode.content||"","<")||/(\n|)\s*$/.test(f)&&/^\s*(\n|<\/p>)/.test(p)))return e(t,r);if(i.isMatch&&!i.isMatch(s.shortcode.attrs))return e(t,d,[].concat(Object(o.a)(n),[i.blockName]));var h=Object(c.mapValues)(Object(c.pickBy)(i.attributes,(function(e){return e.shortcode})),(function(e){return e.shortcode(s.shortcode.attrs,s)})),g=Xe(i.blockName,$r(On(On({},ze(i.blockName)),{},{attributes:i.attributes}),s.shortcode.content,h));return[].concat(Object(o.a)(e(f)),[g],Object(o.a)(e(p)))}return[t]},Tn=r(285),Cn=new(r.n(Tn).a.Converter)({noHeaderId:!0,tables:!0,literalMidWordUnderscores:!0,omitExtraWLInCodeBlocks:!0,simpleLineBreaks:!0,strikethrough:!0});function xn(e){if("IFRAME"===e.nodeName){var t=e.ownerDocument.createTextNode(e.src);e.parentNode.replaceChild(t,e)}}function Pn(e){e.id&&0===e.id.indexOf("docs-internal-guid-")&&Object(ce.unwrap)(e)}function Sn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function An(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0,n=document.implementation.createHTMLDocument("");return n.body.innerHTML=e,Bn(n.body.childNodes,t,n,r),n.body.innerHTML}function Dn(e,t){var r=e["".concat(t,"Sibling")];if(r&&Object(ce.isPhrasingContent)(r))return r;var n=e.parentNode;return n&&Object(ce.isPhrasingContent)(n)?Dn(n,t):void 0}function Ln(e){if(e.nodeType===e.TEXT_NODE){for(var t=e;t=t.parentNode;)if(t.nodeType===t.ELEMENT_NODE&&"PRE"===t.nodeName)return;var r,n=e.data.replace(/[ \r\n\t]+/g," ");if(" "===n[0]){var a=Dn(e,"previous");a&&"BR"!==a.nodeName&&" "!==a.textContent.slice(-1)||(n=n.slice(1))}if(" "===n[n.length-1]){var i=Dn(e,"next");(!i||"BR"===i.nodeName||i.nodeType===i.TEXT_NODE&&(" "===(r=i.textContent[0])||"\r"===r||"\n"===r||"\t"===r))&&(n=n.slice(0,-1))}n?e.data=n:e.parentNode.removeChild(e)}}function Mn(e){"BR"===e.nodeName&&(Dn(e,"next")||e.parentNode.removeChild(e))}function zn(e){"P"===e.nodeName&&(e.hasChildNodes()||e.parentNode.removeChild(e))}function In(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Hn(e){for(var t=1;t]+>/g,"")).replace(/^\s*]*>\s*]*>(?:\s*)?/i,"")).replace(/(?:\s*)?<\/body>\s*<\/html>\s*$/i,""),"INLINE"!==s){var d=n||i;if(-1!==d.indexOf("\x3c!-- wp:"))return Wr(d)}if(String.prototype.normalize&&(n=n.normalize()),!i||n&&!function(e){return!/<(?!br[ />])/i.test(e)}(n)||(t=i,n=Cn.makeHtml(function(e){return e.replace(/((?:^|\n)```)([^\n`]+)(```(?:$|\n))/,(function(e,t,r,n){return"".concat(t,"\n").concat(r,"\n").concat(n)}))}(t)),"AUTO"===s&&-1===i.indexOf("\n")&&0!==i.indexOf("")&&0===n.indexOf("
")&&(s="INLINE")),"INLINE"===s)return Rn(n,l);var f=jn(n),p=f.length>1;if("AUTO"===s&&!p&&function(e,t){var r=document.implementation.createHTMLDocument("");r.body.innerHTML=e;var n=Array.from(r.body.children);return!n.some(an)&&nn(n,t)}(n,u))return Rn(n,l);var h=Object(ce.getPhrasingContentSchema)("paste"),g=En("paste"),b=Object(c.compact)(Object(c.flatMap)(f,(function(e){if("string"!=typeof e)return e;var t=[Pn,ln,sn,fn,mn,on,tn,rn,xn,yn,_n],r=Hn(Hn({},g),h);return e=Nn(e,t,g),e=Nn(e=en(e=Object(ce.removeInvalidHTML)(e,r)),[Ln,Mn,zn],g),Vn.log("Processed HTML piece:\n\n",e),Jr(e)})));if("AUTO"===s&&1===b.length&&Ve(b[0].name,"__unstablePasteTextInline",!1)){var m=i.trim();if(""!==m&&-1===m.indexOf("\n"))return Object(ce.removeInvalidHTML)(Zt(b[0]),h)}return b}var $n=r(35),qn=r.n($n);function Un(e){return qn()("wp.blocks.getPhrasingContentSchema",{alternative:"wp.dom.getPhrasingContentSchema"}),Object(ce.getPhrasingContentSchema)(e)}function Gn(e){var t=e.HTML,r=void 0===t?"":t;if(-1!==r.indexOf("\x3c!-- wp:"))return Wr(r);var n=jn(r),a=En();return Object(c.compact)(Object(c.flatMap)(n,(function(e){return"string"!=typeof e?e:Jr(e=en(e=Nn(e,[fn,tn,yn,_n],a)))})))}function Kn(){return Object(i.select)(ee).getCategories()}function Wn(e){Object(i.dispatch)(ee).setCategories(e)}function Qn(e,t){Object(i.dispatch)(ee).updateCategory(e,t)}function Yn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Zn(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.length===t.length&&Object(c.every)(t,(function(t,r){var n=Object(te.a)(t,3),a=n[0],i=n[2],o=e[r];return a===o.name&&Xn(o.innerBlocks,i)}))}function Jn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return t?Object(c.map)(t,(function(t,r){var n=Object(te.a)(t,3),a=n[0],i=n[1],o=n[2],s=e[r];if(s&&s.name===a){var u=Jn(s.innerBlocks,o);return Zn(Zn({},s),{},{innerBlocks:u})}var l=ze(a),d=function(e,t){return Object(c.mapValues)(t,(function(t,r){return f(e[r],t)}))},f=function(e,t){return r=e,"html"===Object(c.get)(r,["source"])&&Object(c.isArray)(t)?Object(se.renderToString)(t):function(e){return"query"===Object(c.get)(e,["source"])}(e)&&t?t.map((function(t){return d(e.query,t)})):t;var r},p=qr(a,d(Object(c.get)(l,["attributes"],{}),i));return Xe(p.name,p.attributes,Jn([],o))})):e}},5:function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,"a",(function(){return n}))},60:function(e,t,r){var n;!function(a){var i=/^\s+/,o=/\s+$/,s=0,c=a.round,u=a.min,l=a.max,d=a.random;function f(e,t){if(t=t||{},(e=e||"")instanceof f)return e;if(!(this instanceof f))return new f(e,t);var r=function(e){var t={r:0,g:0,b:0},r=1,n=null,s=null,c=null,d=!1,f=!1;"string"==typeof e&&(e=function(e){e=e.replace(i,"").replace(o,"").toLowerCase();var t,r=!1;if(A[e])e=A[e],r=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};if(t=$.rgb.exec(e))return{r:t[1],g:t[2],b:t[3]};if(t=$.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=$.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=$.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=$.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=$.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=$.hex8.exec(e))return{r:L(t[1]),g:L(t[2]),b:L(t[3]),a:H(t[4]),format:r?"name":"hex8"};if(t=$.hex6.exec(e))return{r:L(t[1]),g:L(t[2]),b:L(t[3]),format:r?"name":"hex"};if(t=$.hex4.exec(e))return{r:L(t[1]+""+t[1]),g:L(t[2]+""+t[2]),b:L(t[3]+""+t[3]),a:H(t[4]+""+t[4]),format:r?"name":"hex8"};if(t=$.hex3.exec(e))return{r:L(t[1]+""+t[1]),g:L(t[2]+""+t[2]),b:L(t[3]+""+t[3]),format:r?"name":"hex"};return!1}(e));"object"==typeof e&&(q(e.r)&&q(e.g)&&q(e.b)?(p=e.r,h=e.g,g=e.b,t={r:255*N(p,255),g:255*N(h,255),b:255*N(g,255)},d=!0,f="%"===String(e.r).substr(-1)?"prgb":"rgb"):q(e.h)&&q(e.s)&&q(e.v)?(n=z(e.s),s=z(e.v),t=function(e,t,r){e=6*N(e,360),t=N(t,100),r=N(r,100);var n=a.floor(e),i=e-n,o=r*(1-t),s=r*(1-i*t),c=r*(1-(1-i)*t),u=n%6;return{r:255*[r,s,o,o,c,r][u],g:255*[c,r,r,s,o,o][u],b:255*[o,o,c,r,r,s][u]}}(e.h,n,s),d=!0,f="hsv"):q(e.h)&&q(e.s)&&q(e.l)&&(n=z(e.s),c=z(e.l),t=function(e,t,r){var n,a,i;function o(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}if(e=N(e,360),t=N(t,100),r=N(r,100),0===t)n=a=i=r;else{var s=r<.5?r*(1+t):r+t-r*t,c=2*r-s;n=o(c,s,e+1/3),a=o(c,s,e),i=o(c,s,e-1/3)}return{r:255*n,g:255*a,b:255*i}}(e.h,n,c),d=!0,f="hsl"),e.hasOwnProperty("a")&&(r=e.a));var p,h,g;return r=B(r),{ok:d,format:e.format||f,r:u(255,l(t.r,0)),g:u(255,l(t.g,0)),b:u(255,l(t.b,0)),a:r}}(e);this._originalInput=e,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=c(100*this._a)/100,this._format=t.format||r.format,this._gradientType=t.gradientType,this._r<1&&(this._r=c(this._r)),this._g<1&&(this._g=c(this._g)),this._b<1&&(this._b=c(this._b)),this._ok=r.ok,this._tc_id=s++}function p(e,t,r){e=N(e,255),t=N(t,255),r=N(r,255);var n,a,i=l(e,t,r),o=u(e,t,r),s=(i+o)/2;if(i==o)n=a=0;else{var c=i-o;switch(a=s>.5?c/(2-i-o):c/(i+o),i){case e:n=(t-r)/c+(t>1)+720)%360;--t;)n.h=(n.h+a)%360,i.push(f(n));return i}function S(e,t){t=t||6;for(var r=f(e).toHsv(),n=r.h,a=r.s,i=r.v,o=[],s=1/t;t--;)o.push(f({h:n,s:a,v:i})),i=(i+s)%1;return o}f.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,r,n=this.toRgb();return e=n.r/255,t=n.g/255,r=n.b/255,.2126*(e<=.03928?e/12.92:a.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:a.pow((t+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:a.pow((r+.055)/1.055,2.4))},setAlpha:function(e){return this._a=B(e),this._roundA=c(100*this._a)/100,this},toHsv:function(){var e=h(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=h(this._r,this._g,this._b),t=c(360*e.h),r=c(100*e.s),n=c(100*e.v);return 1==this._a?"hsv("+t+", "+r+"%, "+n+"%)":"hsva("+t+", "+r+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var e=p(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=p(this._r,this._g,this._b),t=c(360*e.h),r=c(100*e.s),n=c(100*e.l);return 1==this._a?"hsl("+t+", "+r+"%, "+n+"%)":"hsla("+t+", "+r+"%, "+n+"%, "+this._roundA+")"},toHex:function(e){return g(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,r,n,a){var i=[M(c(e).toString(16)),M(c(t).toString(16)),M(c(r).toString(16)),M(I(n))];if(a&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1))return i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0);return i.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:c(this._r),g:c(this._g),b:c(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+c(this._r)+", "+c(this._g)+", "+c(this._b)+")":"rgba("+c(this._r)+", "+c(this._g)+", "+c(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:c(100*N(this._r,255))+"%",g:c(100*N(this._g,255))+"%",b:c(100*N(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+c(100*N(this._r,255))+"%, "+c(100*N(this._g,255))+"%, "+c(100*N(this._b,255))+"%)":"rgba("+c(100*N(this._r,255))+"%, "+c(100*N(this._g,255))+"%, "+c(100*N(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(E[g(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+b(this._r,this._g,this._b,this._a),r=t,n=this._gradientType?"GradientType = 1, ":"";if(e){var a=f(e);r="#"+b(a._r,a._g,a._b,a._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+t+",endColorstr="+r+")"},toString:function(e){var t=!!e;e=e||this._format;var r=!1,n=this._a<1&&this._a>=0;return t||!n||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(r=this.toRgbString()),"prgb"===e&&(r=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(r=this.toHexString()),"hex3"===e&&(r=this.toHexString(!0)),"hex4"===e&&(r=this.toHex8String(!0)),"hex8"===e&&(r=this.toHex8String()),"name"===e&&(r=this.toName()),"hsl"===e&&(r=this.toHslString()),"hsv"===e&&(r=this.toHsvString()),r||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return f(this.toString())},_applyModification:function(e,t){var r=e.apply(null,[this].concat([].slice.call(t)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(y,arguments)},brighten:function(){return this._applyModification(w,arguments)},darken:function(){return this._applyModification(k,arguments)},desaturate:function(){return this._applyModification(m,arguments)},saturate:function(){return this._applyModification(_,arguments)},greyscale:function(){return this._applyModification(v,arguments)},spin:function(){return this._applyModification(O,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(P,arguments)},complement:function(){return this._applyCombination(j,arguments)},monochromatic:function(){return this._applyCombination(S,arguments)},splitcomplement:function(){return this._applyCombination(x,arguments)},triad:function(){return this._applyCombination(T,arguments)},tetrad:function(){return this._applyCombination(C,arguments)}},f.fromRatio=function(e,t){if("object"==typeof e){var r={};for(var n in e)e.hasOwnProperty(n)&&(r[n]="a"===n?e[n]:z(e[n]));e=r}return f(e,t)},f.equals=function(e,t){return!(!e||!t)&&f(e).toRgbString()==f(t).toRgbString()},f.random=function(){return f.fromRatio({r:d(),g:d(),b:d()})},f.mix=function(e,t,r){r=0===r?0:r||50;var n=f(e).toRgb(),a=f(t).toRgb(),i=r/100;return f({r:(a.r-n.r)*i+n.r,g:(a.g-n.g)*i+n.g,b:(a.b-n.b)*i+n.b,a:(a.a-n.a)*i+n.a})},f.readability=function(e,t){var r=f(e),n=f(t);return(a.max(r.getLuminance(),n.getLuminance())+.05)/(a.min(r.getLuminance(),n.getLuminance())+.05)},f.isReadable=function(e,t,r){var n,a,i=f.readability(e,t);switch(a=!1,(n=function(e){var t,r;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),r=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==r&&"large"!==r&&(r="small");return{level:t,size:r}}(r)).level+n.size){case"AAsmall":case"AAAlarge":a=i>=4.5;break;case"AAlarge":a=i>=3;break;case"AAAsmall":a=i>=7}return a},f.mostReadable=function(e,t,r){var n,a,i,o,s=null,c=0;a=(r=r||{}).includeFallbackColors,i=r.level,o=r.size;for(var u=0;uc&&(c=n,s=f(t[u]));return f.isReadable(e,s,{level:i,size:o})||!a?s:(r.includeFallbackColors=!1,f.mostReadable(e,["#fff","#000"],r))};var A=f.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},E=f.hexNames=function(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[e[r]]=r);return t}(A);function B(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function N(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var r=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=u(t,l(0,parseFloat(e))),r&&(e=parseInt(e*t,10)/100),a.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function D(e){return u(1,l(0,e))}function L(e){return parseInt(e,16)}function M(e){return 1==e.length?"0"+e:""+e}function z(e){return e<=1&&(e=100*e+"%"),e}function I(e){return a.round(255*parseFloat(e)).toString(16)}function H(e){return L(e)/255}var V,R,F,$=(R="[\\s|\\(]+("+(V="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+V+")[,|\\s]+("+V+")\\s*\\)?",F="[\\s|\\(]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")\\s*\\)?",{CSS_UNIT:new RegExp(V),rgb:new RegExp("rgb"+R),rgba:new RegExp("rgba"+F),hsl:new RegExp("hsl"+R),hsla:new RegExp("hsla"+F),hsv:new RegExp("hsv"+R),hsva:new RegExp("hsva"+F),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function q(e){return!!$.CSS_UNIT.exec(e)}e.exports?e.exports=f:void 0===(n=function(){return f}.call(t,r,t,e))||(e.exports=n)}(Math)},63:function(e,t){e.exports=window.wp.isShallowEqual},64:function(e,t){e.exports=window.wp.htmlEntities},7:function(e,t){e.exports=window.wp.primitives},8:function(e,t,r){"use strict";function n(){return(n=Object.assign||function(e){for(var t=1;t-1},get:function(e){return r[n.indexOf(e)]},set:function(e,t){-1===n.indexOf(e)&&(n.push(e),r.push(t))},delete:function(e){var t=n.indexOf(e);t>-1&&(n.splice(t,1),r.splice(t,1))}}),i=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(e){i=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}function c(e){if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!o.has(e)){var t,n=null,r=null,c=null,a=function(){e.clientWidth!==r&&d()},s=function(t){window.removeEventListener("resize",a,!1),e.removeEventListener("input",d,!1),e.removeEventListener("keyup",d,!1),e.removeEventListener("autosize:destroy",s,!1),e.removeEventListener("autosize:update",d,!1),Object.keys(t).forEach((function(n){e.style[n]=t[n]})),o.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",s,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",d,!1),window.addEventListener("resize",a,!1),e.addEventListener("input",d,!1),e.addEventListener("autosize:update",d,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",o.set(e,{destroy:s,update:d}),"vertical"===(t=window.getComputedStyle(e,null)).resize?e.style.resize="none":"both"===t.resize&&(e.style.resize="horizontal"),n="content-box"===t.boxSizing?-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),isNaN(n)&&(n=0),d()}function u(t){var n=e.style.width;e.style.width="0px",e.offsetWidth,e.style.width=n,e.style.overflowY=t}function l(){if(0!==e.scrollHeight){var t=function(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push({node:e.parentNode,scrollTop:e.parentNode.scrollTop}),e=e.parentNode;return t}(e),o=document.documentElement&&document.documentElement.scrollTop;e.style.height="",e.style.height=e.scrollHeight+n+"px",r=e.clientWidth,t.forEach((function(e){e.node.scrollTop=e.scrollTop})),o&&(document.documentElement.scrollTop=o)}}function d(){l();var t=Math.round(parseFloat(e.style.height)),n=window.getComputedStyle(e,null),r="content-box"===n.boxSizing?Math.round(parseFloat(n.height)):e.offsetHeight;if(re.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}n.d(t,"a",(function(){return r}))},457:function(e,t,n){"use strict";n.r(t),n.d(t,"storeConfig",(function(){return Cr})),n.d(t,"store",(function(){return xr})),n.d(t,"userAutocompleter",(function(){return w})),n.d(t,"AutosaveMonitor",(function(){return Ur})),n.d(t,"DocumentOutline",(function(){return $r})),n.d(t,"DocumentOutlineCheck",(function(){return Yr})),n.d(t,"VisualEditorGlobalKeyboardShortcuts",(function(){return eo})),n.d(t,"EditorGlobalKeyboardShortcuts",(function(){return to})),n.d(t,"TextEditorGlobalKeyboardShortcuts",(function(){return no})),n.d(t,"EditorKeyboardShortcutsRegister",(function(){return ro})),n.d(t,"EditorHistoryRedo",(function(){return so})),n.d(t,"EditorHistoryUndo",(function(){return lo})),n.d(t,"EditorNotices",(function(){return bo})),n.d(t,"EntitiesSavedStates",(function(){return _o})),n.d(t,"ErrorBoundary",(function(){return So})),n.d(t,"LocalAutosaveMonitor",(function(){return Co})),n.d(t,"PageAttributesCheck",(function(){return xo})),n.d(t,"PageAttributesOrder",(function(){return Io})),n.d(t,"PageAttributesParent",(function(){return Uo})),n.d(t,"PageTemplate",(function(){return Fo})),n.d(t,"PostAuthor",(function(){return Ho})),n.d(t,"PostAuthorCheck",(function(){return Wo})),n.d(t,"PostComments",(function(){return Go})),n.d(t,"PostExcerpt",(function(){return qo})),n.d(t,"PostExcerptCheck",(function(){return Ko})),n.d(t,"PostFeaturedImage",(function(){return ni})),n.d(t,"PostFeaturedImageCheck",(function(){return $o})),n.d(t,"PostFormat",(function(){return ii})),n.d(t,"PostFormatCheck",(function(){return ri})),n.d(t,"PostLastRevision",(function(){return si})),n.d(t,"PostLastRevisionCheck",(function(){return ai})),n.d(t,"PostLockedModal",(function(){return pi})),n.d(t,"PostPendingStatus",(function(){return fi})),n.d(t,"PostPendingStatusCheck",(function(){return bi})),n.d(t,"PostPingbacks",(function(){return hi})),n.d(t,"PostPreviewButton",(function(){return di})),n.d(t,"PostPublishButton",(function(){return gi})),n.d(t,"PostPublishButtonLabel",(function(){return mi})),n.d(t,"PostPublishPanel",(function(){return Xi})),n.d(t,"PostSavedState",(function(){return rc})),n.d(t,"PostSchedule",(function(){return ki})),n.d(t,"PostScheduleCheck",(function(){return oc})),n.d(t,"PostScheduleLabel",(function(){return Ei})),n.d(t,"PostSlug",(function(){return sc})),n.d(t,"PostSlugCheck",(function(){return ic})),n.d(t,"PostSticky",(function(){return lc})),n.d(t,"PostStickyCheck",(function(){return uc})),n.d(t,"PostSwitchToDraftButton",(function(){return nc})),n.d(t,"PostTaxonomies",(function(){return vc})),n.d(t,"PostTaxonomiesCheck",(function(){return Oc})),n.d(t,"PostTextEditor",(function(){return yc})),n.d(t,"PostTitle",(function(){return wc})),n.d(t,"PostTrash",(function(){return Pc})),n.d(t,"PostTrashCheck",(function(){return Sc})),n.d(t,"PostTypeSupportCheck",(function(){return Bo})),n.d(t,"PostVisibility",(function(){return Pi})),n.d(t,"PostVisibilityLabel",(function(){return Si})),n.d(t,"PostVisibilityCheck",(function(){return kc})),n.d(t,"TableOfContents",(function(){return Ac})),n.d(t,"UnsavedChangesWarning",(function(){return Ic})),n.d(t,"WordCount",(function(){return Cc})),n.d(t,"EditorProvider",(function(){return Gc})),n.d(t,"ServerSideRender",(function(){return Kc.a})),n.d(t,"RichText",(function(){return Yc})),n.d(t,"Autocomplete",(function(){return Xc})),n.d(t,"AlignmentToolbar",(function(){return Jc})),n.d(t,"BlockAlignmentToolbar",(function(){return Zc})),n.d(t,"BlockControls",(function(){return ea})),n.d(t,"BlockEdit",(function(){return ta})),n.d(t,"BlockEditorKeyboardShortcuts",(function(){return na})),n.d(t,"BlockFormatControls",(function(){return ra})),n.d(t,"BlockIcon",(function(){return oa})),n.d(t,"BlockInspector",(function(){return ia})),n.d(t,"BlockList",(function(){return ca})),n.d(t,"BlockMover",(function(){return aa})),n.d(t,"BlockNavigationDropdown",(function(){return sa})),n.d(t,"BlockSelectionClearer",(function(){return ua})),n.d(t,"BlockSettingsMenu",(function(){return la})),n.d(t,"BlockTitle",(function(){return da})),n.d(t,"BlockToolbar",(function(){return pa})),n.d(t,"ColorPalette",(function(){return ba})),n.d(t,"ContrastChecker",(function(){return fa})),n.d(t,"CopyHandler",(function(){return ha})),n.d(t,"DefaultBlockAppender",(function(){return ma})),n.d(t,"FontSizePicker",(function(){return va})),n.d(t,"Inserter",(function(){return Oa})),n.d(t,"InnerBlocks",(function(){return ga})),n.d(t,"InspectorAdvancedControls",(function(){return ja})),n.d(t,"InspectorControls",(function(){return ya})),n.d(t,"PanelColorSettings",(function(){return _a})),n.d(t,"PlainText",(function(){return wa})),n.d(t,"RichTextShortcut",(function(){return Pa})),n.d(t,"RichTextToolbarButton",(function(){return Sa})),n.d(t,"__unstableRichTextInputEvent",(function(){return ka})),n.d(t,"MediaPlaceholder",(function(){return Ea})),n.d(t,"MediaUpload",(function(){return Ta})),n.d(t,"MediaUploadCheck",(function(){return Ca})),n.d(t,"MultiSelectScrollIntoView",(function(){return xa})),n.d(t,"NavigableToolbar",(function(){return Ba})),n.d(t,"ObserveTyping",(function(){return Aa})),n.d(t,"PreserveScrollInReorder",(function(){return Ia})),n.d(t,"SkipToSelectedBlock",(function(){return Ra})),n.d(t,"URLInput",(function(){return Da})),n.d(t,"URLInputButton",(function(){return Na})),n.d(t,"URLPopover",(function(){return La})),n.d(t,"Warning",(function(){return Ua})),n.d(t,"WritingFlow",(function(){return Fa})),n.d(t,"createCustomColorsHOC",(function(){return Ma})),n.d(t,"getColorClassName",(function(){return Va})),n.d(t,"getColorObjectByAttributeValues",(function(){return za})),n.d(t,"getColorObjectByColorValue",(function(){return Ha})),n.d(t,"getFontSize",(function(){return Wa})),n.d(t,"getFontSizeClass",(function(){return Ga})),n.d(t,"withColorContext",(function(){return qa})),n.d(t,"withColors",(function(){return Ka})),n.d(t,"withFontSizes",(function(){return Qa})),n.d(t,"mediaUpload",(function(){return Mc})),n.d(t,"cleanForSlug",(function(){return W})),n.d(t,"transformStyles",(function(){return i.transformStyles}));var r={};n.r(r),n.d(r,"hasEditorUndo",(function(){return $})),n.d(r,"hasEditorRedo",(function(){return Y})),n.d(r,"isEditedPostNew",(function(){return X})),n.d(r,"hasChangedContent",(function(){return J})),n.d(r,"isEditedPostDirty",(function(){return Z})),n.d(r,"hasNonPostEntityChanges",(function(){return ee})),n.d(r,"isCleanNewPost",(function(){return te})),n.d(r,"getCurrentPost",(function(){return ne})),n.d(r,"getCurrentPostType",(function(){return re})),n.d(r,"getCurrentPostId",(function(){return oe})),n.d(r,"getCurrentPostRevisionsCount",(function(){return ie})),n.d(r,"getCurrentPostLastRevisionId",(function(){return ce})),n.d(r,"getPostEdits",(function(){return ae})),n.d(r,"getReferenceByDistinctEdits",(function(){return se})),n.d(r,"getCurrentPostAttribute",(function(){return ue})),n.d(r,"getEditedPostAttribute",(function(){return le})),n.d(r,"getAutosaveAttribute",(function(){return de})),n.d(r,"getEditedPostVisibility",(function(){return pe})),n.d(r,"isCurrentPostPending",(function(){return be})),n.d(r,"isCurrentPostPublished",(function(){return fe})),n.d(r,"isCurrentPostScheduled",(function(){return he})),n.d(r,"isEditedPostPublishable",(function(){return me})),n.d(r,"isEditedPostSaveable",(function(){return ve})),n.d(r,"isEditedPostEmpty",(function(){return Oe})),n.d(r,"isEditedPostAutosaveable",(function(){return ge})),n.d(r,"getAutosave",(function(){return je})),n.d(r,"hasAutosave",(function(){return ye})),n.d(r,"isEditedPostBeingScheduled",(function(){return _e})),n.d(r,"isEditedPostDateFloating",(function(){return we})),n.d(r,"isSavingPost",(function(){return Pe})),n.d(r,"didPostSaveRequestSucceed",(function(){return Se})),n.d(r,"didPostSaveRequestFail",(function(){return ke})),n.d(r,"isAutosavingPost",(function(){return Ee})),n.d(r,"isPreviewingPost",(function(){return Te})),n.d(r,"getEditedPostPreviewLink",(function(){return Ce})),n.d(r,"getSuggestedPostFormat",(function(){return xe})),n.d(r,"getBlocksForSerialization",(function(){return Be})),n.d(r,"getEditedPostContent",(function(){return Ae})),n.d(r,"isPublishingPost",(function(){return Ie})),n.d(r,"isPermalinkEditable",(function(){return Re})),n.d(r,"getPermalink",(function(){return De})),n.d(r,"getEditedPostSlug",(function(){return Ne})),n.d(r,"getPermalinkParts",(function(){return Le})),n.d(r,"isPostLocked",(function(){return Ue})),n.d(r,"isPostSavingLocked",(function(){return Fe})),n.d(r,"isPostAutosavingLocked",(function(){return Me})),n.d(r,"isPostLockTakeover",(function(){return Ve})),n.d(r,"getPostLockUser",(function(){return ze})),n.d(r,"getActivePostLock",(function(){return He})),n.d(r,"canUserUseUnfilteredHTML",(function(){return We})),n.d(r,"isPublishSidebarEnabled",(function(){return Ge})),n.d(r,"getEditorBlocks",(function(){return qe})),n.d(r,"getEditorSelectionStart",(function(){return Ke})),n.d(r,"getEditorSelectionEnd",(function(){return Qe})),n.d(r,"__unstableIsEditorReady",(function(){return $e})),n.d(r,"getEditorSettings",(function(){return Ye})),n.d(r,"getStateBeforeOptimisticTransaction",(function(){return Xe})),n.d(r,"inSomeHistory",(function(){return Je})),n.d(r,"getBlockName",(function(){return et})),n.d(r,"isBlockValid",(function(){return tt})),n.d(r,"getBlockAttributes",(function(){return nt})),n.d(r,"getBlock",(function(){return rt})),n.d(r,"getBlocks",(function(){return ot})),n.d(r,"__unstableGetBlockWithoutInnerBlocks",(function(){return it})),n.d(r,"getClientIdsOfDescendants",(function(){return ct})),n.d(r,"getClientIdsWithDescendants",(function(){return at})),n.d(r,"getGlobalBlockCount",(function(){return st})),n.d(r,"getBlocksByClientId",(function(){return ut})),n.d(r,"getBlockCount",(function(){return lt})),n.d(r,"getBlockSelectionStart",(function(){return dt})),n.d(r,"getBlockSelectionEnd",(function(){return pt})),n.d(r,"getSelectedBlockCount",(function(){return bt})),n.d(r,"hasSelectedBlock",(function(){return ft})),n.d(r,"getSelectedBlockClientId",(function(){return ht})),n.d(r,"getSelectedBlock",(function(){return mt})),n.d(r,"getBlockRootClientId",(function(){return vt})),n.d(r,"getBlockHierarchyRootClientId",(function(){return Ot})),n.d(r,"getAdjacentBlockClientId",(function(){return gt})),n.d(r,"getPreviousBlockClientId",(function(){return jt})),n.d(r,"getNextBlockClientId",(function(){return yt})),n.d(r,"getSelectedBlocksInitialCaretPosition",(function(){return _t})),n.d(r,"getMultiSelectedBlockClientIds",(function(){return wt})),n.d(r,"getMultiSelectedBlocks",(function(){return Pt})),n.d(r,"getFirstMultiSelectedBlockClientId",(function(){return St})),n.d(r,"getLastMultiSelectedBlockClientId",(function(){return kt})),n.d(r,"isFirstMultiSelectedBlock",(function(){return Et})),n.d(r,"isBlockMultiSelected",(function(){return Tt})),n.d(r,"isAncestorMultiSelected",(function(){return Ct})),n.d(r,"getMultiSelectedBlocksStartClientId",(function(){return xt})),n.d(r,"getMultiSelectedBlocksEndClientId",(function(){return Bt})),n.d(r,"getBlockOrder",(function(){return At})),n.d(r,"getBlockIndex",(function(){return It})),n.d(r,"isBlockSelected",(function(){return Rt})),n.d(r,"hasSelectedInnerBlock",(function(){return Dt})),n.d(r,"isBlockWithinSelection",(function(){return Nt})),n.d(r,"hasMultiSelection",(function(){return Lt})),n.d(r,"isMultiSelecting",(function(){return Ut})),n.d(r,"isSelectionEnabled",(function(){return Ft})),n.d(r,"getBlockMode",(function(){return Mt})),n.d(r,"isTyping",(function(){return Vt})),n.d(r,"isCaretWithinFormattedText",(function(){return zt})),n.d(r,"getBlockInsertionPoint",(function(){return Ht})),n.d(r,"isBlockInsertionPointVisible",(function(){return Wt})),n.d(r,"isValidTemplate",(function(){return Gt})),n.d(r,"getTemplate",(function(){return qt})),n.d(r,"getTemplateLock",(function(){return Kt})),n.d(r,"canInsertBlockType",(function(){return Qt})),n.d(r,"getInserterItems",(function(){return $t})),n.d(r,"hasInserterItems",(function(){return Yt})),n.d(r,"getBlockListSettings",(function(){return Xt})),n.d(r,"__experimentalGetDefaultTemplateTypes",(function(){return Jt})),n.d(r,"__experimentalGetDefaultTemplateType",(function(){return Zt})),n.d(r,"__experimentalGetTemplateInfo",(function(){return en}));var o={};n.r(o),n.d(o,"setupEditor",(function(){return yn})),n.d(o,"__experimentalTearDownEditor",(function(){return _n})),n.d(o,"resetPost",(function(){return wn})),n.d(o,"resetAutosave",(function(){return Pn})),n.d(o,"__experimentalRequestPostUpdateStart",(function(){return Sn})),n.d(o,"__experimentalRequestPostUpdateFinish",(function(){return kn})),n.d(o,"updatePost",(function(){return En})),n.d(o,"setupEditorState",(function(){return Tn})),n.d(o,"editPost",(function(){return Cn})),n.d(o,"savePost",(function(){return xn})),n.d(o,"refreshPost",(function(){return Bn})),n.d(o,"trashPost",(function(){return An})),n.d(o,"autosave",(function(){return In})),n.d(o,"redo",(function(){return Rn})),n.d(o,"undo",(function(){return Dn})),n.d(o,"createUndoLevel",(function(){return Nn})),n.d(o,"updatePostLock",(function(){return Ln})),n.d(o,"enablePublishSidebar",(function(){return Un})),n.d(o,"disablePublishSidebar",(function(){return Fn})),n.d(o,"lockPostSaving",(function(){return Mn})),n.d(o,"unlockPostSaving",(function(){return Vn})),n.d(o,"lockPostAutosaving",(function(){return zn})),n.d(o,"unlockPostAutosaving",(function(){return Hn})),n.d(o,"resetEditorBlocks",(function(){return Wn})),n.d(o,"updateEditorSettings",(function(){return Gn})),n.d(o,"resetBlocks",(function(){return Kn})),n.d(o,"receiveBlocks",(function(){return Qn})),n.d(o,"updateBlock",(function(){return $n})),n.d(o,"updateBlockAttributes",(function(){return Yn})),n.d(o,"selectBlock",(function(){return Xn})),n.d(o,"startMultiSelect",(function(){return Jn})),n.d(o,"stopMultiSelect",(function(){return Zn})),n.d(o,"multiSelect",(function(){return er})),n.d(o,"clearSelectedBlock",(function(){return tr})),n.d(o,"toggleSelection",(function(){return nr})),n.d(o,"replaceBlocks",(function(){return rr})),n.d(o,"replaceBlock",(function(){return or})),n.d(o,"moveBlocksDown",(function(){return ir})),n.d(o,"moveBlocksUp",(function(){return cr})),n.d(o,"moveBlockToPosition",(function(){return ar})),n.d(o,"insertBlock",(function(){return sr})),n.d(o,"insertBlocks",(function(){return ur})),n.d(o,"showInsertionPoint",(function(){return lr})),n.d(o,"hideInsertionPoint",(function(){return dr})),n.d(o,"setTemplateValidity",(function(){return pr})),n.d(o,"synchronizeTemplate",(function(){return br})),n.d(o,"mergeBlocks",(function(){return fr})),n.d(o,"removeBlocks",(function(){return hr})),n.d(o,"removeBlock",(function(){return mr})),n.d(o,"toggleBlockMode",(function(){return vr})),n.d(o,"startTyping",(function(){return Or})),n.d(o,"stopTyping",(function(){return gr})),n.d(o,"enterFormattedText",(function(){return jr})),n.d(o,"exitFormattedText",(function(){return yr})),n.d(o,"insertDefaultBlock",(function(){return _r})),n.d(o,"updateBlockListSettings",(function(){return wr}));var i=n(6),c=n(57),a=n(21),s=n(8),u=n(5),l=n(11),d=n(13),p=n(0),b=n(2),f=n(9),h=n(4),m=n(12),v=n(33);function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:[];return e.push(Object(b.clone)(w)),e}));var P=n(49),S=n(42);function k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function E(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SETUP_EDITOR_STATE":case"RESET_POST":return t.post.id}return e},postType:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SETUP_EDITOR_STATE":case"RESET_POST":return t.post.type}return e},preferences:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:T,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ENABLE_PUBLISH_SIDEBAR":return B(B({},e),{},{isPublishSidebarEnabled:!0});case"DISABLE_PUBLISH_SIDEBAR":return B(B({},e),{},{isPublishSidebarEnabled:!1})}return e},saving:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"REQUEST_POST_UPDATE_START":case"REQUEST_POST_UPDATE_FINISH":return{pending:"REQUEST_POST_UPDATE_START"===t.type,options:t.options||{}}}return e},postLock:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{isLocked:!1},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"UPDATE_POST_LOCK":return t.lock}return e},template:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{isValid:!0},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_TEMPLATE_VALIDITY":return B(B({},e),{},{isValid:t.isValid})}return e},postSavingLock:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"LOCK_POST_SAVING":return B(B({},e),{},Object(u.a)({},t.lockName,!0));case"UNLOCK_POST_SAVING":return Object(b.omit)(e,t.lockName)}return e},isReady:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SETUP_EDITOR_STATE":return!0;case"TEAR_DOWN_EDITOR":return!1}return e},editorSettings:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:C,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"UPDATE_EDITOR_SETTINGS":return B(B({},e),t.settings)}return e},postAutosavingLock:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"LOCK_POST_AUTOSAVING":return B(B({},e),{},Object(u.a)({},t.lockName,!0));case"UNLOCK_POST_AUTOSAVING":return Object(b.omit)(e,t.lockName)}return e}}),R=n(41),D=n(69),N=n(32),L=n(35),U=n.n(L),F=new Set(["meta"]),M="core/editor",V=/%(?:postname|pagename)%/,z=["title","excerpt","content"];function H(e,t){return Object(N.addQueryArgs)(e,t)}function W(e){return e?Object(b.trim)(Object(b.deburr)(e).replace(/[\s\./]+/g,"-").replace(/[^\w-]+/g,"").toLowerCase(),"-"):""}function G(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function q(e){for(var t=1;t1)return!1;var n=t[0].name;if(n!==Object(f.getDefaultBlockName)()&&n!==Object(f.getFreeformContentHandlerName)())return!1}return!Ae(e)}var ge=Object(h.createRegistrySelector)((function(e){return function(t){if(!ve(t))return!1;if(Me(t))return!1;var n=re(t),r=oe(t),o=e("core").hasFetchedAutosaves(n,r),i=Object(b.get)(e("core").getCurrentUser(),["id"]),c=e("core").getAutosave(n,r,i);return!!o&&(!c||(!!J(t)||["title","excerpt"].some((function(e){return A(c[e])!==le(t,e)}))))}})),je=Object(h.createRegistrySelector)((function(e){return function(t){U()("`wp.data.select( 'core/editor' ).getAutosave()`",{alternative:"`wp.data.select( 'core' ).getAutosave( postType, postId, userId )`",plugin:"Gutenberg"});var n=re(t),r=oe(t),o=Object(b.get)(e("core").getCurrentUser(),["id"]),i=e("core").getAutosave(n,r,o);return Object(b.mapValues)(Object(b.pick)(i,z),A)}})),ye=Object(h.createRegistrySelector)((function(e){return function(t){U()("`wp.data.select( 'core/editor' ).hasAutosave()`",{alternative:"`!! wp.data.select( 'core' ).getAutosave( postType, postId, userId )`",plugin:"Gutenberg"});var n=re(t),r=oe(t),o=Object(b.get)(e("core").getCurrentUser(),["id"]);return!!e("core").getAutosave(n,r,o)}}));function _e(e){var t=le(e,"date"),n=new Date(Number(Object(D.getDate)(t))-6e4);return Object(D.isInTheFuture)(n)}function we(e){var t=le(e,"date"),n=le(e,"modified"),r=ne(e).status;return("draft"===r||"auto-draft"===r||"pending"===r)&&(t===n||null===t)}var Pe=Object(h.createRegistrySelector)((function(e){return function(t){var n=re(t),r=oe(t);return e("core").isSavingEntityRecord("postType",n,r)}})),Se=Object(h.createRegistrySelector)((function(e){return function(t){var n=re(t),r=oe(t);return!e("core").getLastEntitySaveError("postType",n,r)}})),ke=Object(h.createRegistrySelector)((function(e){return function(t){var n=re(t),r=oe(t);return!!e("core").getLastEntitySaveError("postType",n,r)}}));function Ee(e){return!!Pe(e)&&!!Object(b.get)(e.saving,["options","isAutosave"])}function Te(e){return!!Pe(e)&&!!e.saving.options.isPreview}function Ce(e){if(!e.saving.pending&&!Pe(e)){var t=de(e,"preview_link");t||(t=le(e,"link"))&&(t=Object(N.addQueryArgs)(t,{preview:!0}));var n=le(e,"featured_media");return t&&n?Object(N.addQueryArgs)(t,{_thumbnail_id:n}):t}}function xe(e){var t,n=qe(e);if(n.length>2)return null;if(1===n.length&&"core/embed"===(t=n[0].name)){var r,o=null===(r=n[0].attributes)||void 0===r?void 0:r.providerNameSlug;["youtube","vimeo"].includes(o)?t="core/video":["spotify","soundcloud"].includes(o)&&(t="core/audio")}switch(2===n.length&&"core/paragraph"===n[1].name&&(t=n[0].name),t){case"core/image":return"image";case"core/quote":case"core/pullquote":return"quote";case"core/gallery":return"gallery";case"core/video":return"video";case"core/audio":return"audio";default:return null}}function Be(e){U()("`core/editor` getBlocksForSerialization selector",{plugin:"Gutenberg",alternative:"getEditorBlocks",hint:"Blocks serialization pre-processing occurs at save time"});var t=e.editor.present.blocks.value;return 1===t.length&&Object(f.isUnmodifiedDefaultBlock)(t[0])?[]:t}var Ae=Object(h.createRegistrySelector)((function(e){return function(t){var n=oe(t),r=re(t),o=e("core").getEditedEntityRecord("postType",r,n);if(o){if("function"==typeof o.content)return o.content(o);if(o.blocks)return Object(f.__unstableSerializeAndClean)(o.blocks);if(o.content)return o.content}return""}}));function Ie(e){return Pe(e)&&!fe(e)&&"publish"===le(e,"status")}function Re(e){var t=le(e,"permalink_template");return V.test(t)}function De(e){var t=Le(e);if(!t)return null;var n=t.prefix,r=t.postName,o=t.suffix;return Re(e)?n+r+o:n}function Ne(e){return le(e,"slug")||W(le(e,"title"))||oe(e)}function Le(e){var t=le(e,"permalink_template");if(!t)return null;var n=le(e,"slug")||le(e,"generated_slug"),r=t.split(V),o=Object(l.a)(r,2);return{prefix:o[0],postName:n,suffix:o[1]}}function Ue(e){return e.postLock.isLocked}function Fe(e){return Object.keys(e.postSavingLock).length>0}function Me(e){return Object.keys(e.postAutosavingLock).length>0}function Ve(e){return e.postLock.isTakeover}function ze(e){return e.postLock.user}function He(e){return e.postLock.activePostLock}function We(e){return Object(b.has)(ne(e),["_links","wp:action-unfiltered-html"])}function Ge(e){return e.preferences.hasOwnProperty("isPublishSidebarEnabled")?e.preferences.isPublishSidebarEnabled:T.isPublishSidebarEnabled}function qe(e){return le(e,"blocks")||Q}function Ke(e){return le(e,"selectionStart")}function Qe(e){return le(e,"selectionEnd")}function $e(e){return e.isReady}function Ye(e){return e.editorSettings}function Xe(){return U()("select('core/editor').getStateBeforeOptimisticTransaction",{hint:"No state history is kept on this store anymore"}),null}function Je(){return U()("select('core/editor').inSomeHistory",{hint:"No state history is kept on this store anymore"}),!1}function Ze(e){return Object(h.createRegistrySelector)((function(t){return function(n){var r;U()("`wp.data.select( 'core/editor' )."+e+"`",{alternative:"`wp.data.select( 'core/block-editor' )."+e+"`"});for(var o=arguments.length,i=new Array(o>1?o-1:0),c=1;c]*>/.test(r.message)&&(a=[a,r.message].join(" ")),[a,{id:"SAVE_POST_NOTICE_ID"}]}function un(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ln(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return{type:"REQUEST_POST_UPDATE_START",options:e}}function kn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{type:"REQUEST_POST_UPDATE_FINISH",options:e}}function En(){return U()("wp.data.dispatch( 'core/editor' ).updatePost",{alternative:"User the core entitires store instead"}),{type:"DO_NOTHING"}}function Tn(e){return{type:"SETUP_EDITOR_STATE",post:e}}function Cn(e,t){var n,r,o;return rn.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,h.controls.select(M,"getCurrentPost");case 2:return n=i.sent,r=n.id,o=n.type,i.next=7,h.controls.dispatch("core","editEntityRecord","postType",o,r,e,t);case 7:case"end":return i.stop()}}),bn)}function xn(){var e,t,n,r,o,i,c,a=arguments;return rn.a.wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return e=a.length>0&&void 0!==a[0]?a[0]:{},s.next=3,h.controls.select(M,"isEditedPostSaveable");case 3:if(s.sent){s.next=5;break}return s.abrupt("return");case 5:return s.next=7,h.controls.select(M,"getEditedPostContent");case 7:if(s.t0=s.sent,t={content:s.t0},e.isAutosave){s.next=12;break}return s.next=12,h.controls.dispatch(M,"editPost",t,{undoIgnore:!0});case 12:return s.next=14,Sn(e);case 14:return s.next=16,h.controls.select(M,"getCurrentPost");case 16:return n=s.sent,s.t1=ln,s.t2=ln,s.t3={id:n.id},s.next=22,h.controls.select("core","getEntityRecordNonTransientEdits","postType",n.type,n.id);case 22:return s.t4=s.sent,s.t5=(0,s.t2)(s.t3,s.t4),s.t6=t,t=(0,s.t1)(s.t5,s.t6),s.next=28,h.controls.dispatch("core","saveEntityRecord","postType",n.type,t,e);case 28:return s.next=30,kn(e);case 30:return s.next=32,h.controls.select("core","getLastEntitySaveError","postType",n.type,n.id);case 32:if(!(r=s.sent)){s.next=40;break}if(!(o=sn({post:n,edits:t,error:r})).length){s.next=38;break}return s.next=38,h.controls.dispatch.apply(h.controls,[on.store,"createErrorNotice"].concat(Object(tn.a)(o)));case 38:s.next=58;break;case 40:return s.next=42,h.controls.select(M,"getCurrentPost");case 42:return i=s.sent,s.t7=an,s.t8=n,s.t9=i,s.next=48,h.controls.resolveSelect("core","getPostType",i.type);case 48:if(s.t10=s.sent,s.t11=e,s.t12={previousPost:s.t8,post:s.t9,postType:s.t10,options:s.t11},!(c=(0,s.t7)(s.t12)).length){s.next=55;break}return s.next=55,h.controls.dispatch.apply(h.controls,[on.store,"createSuccessNotice"].concat(Object(tn.a)(c)));case 55:if(e.isAutosave){s.next=58;break}return s.next=58,h.controls.dispatch("core/block-editor","__unstableMarkLastChangeAsPersistent");case 58:case"end":return s.stop()}}),fn)}function Bn(){var e,t,n,r;return rn.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,h.controls.select(M,"getCurrentPost");case 2:return e=o.sent,o.next=5,h.controls.select(M,"getCurrentPostType");case 5:return t=o.sent,o.next=8,h.controls.resolveSelect("core","getPostType",t);case 8:return n=o.sent,o.next=11,Object(P.apiFetch)({path:"/wp/v2/".concat(n.rest_base,"/").concat(e.id)+"?context=edit&_timestamp=".concat(Date.now())});case 11:return r=o.sent,o.next=14,h.controls.dispatch(M,"resetPost",r);case 14:case"end":return o.stop()}}),hn)}function An(){var e,t,n;return rn.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,h.controls.select(M,"getCurrentPostType");case 2:return e=r.sent,r.next=5,h.controls.resolveSelect("core","getPostType",e);case 5:return t=r.sent,r.next=8,h.controls.dispatch(on.store,"removeNotice","TRASH_POST_NOTICE_ID");case 8:return r.prev=8,r.next=11,h.controls.select(M,"getCurrentPost");case 11:return n=r.sent,r.next=14,Object(P.apiFetch)({path:"/wp/v2/".concat(t.rest_base,"/").concat(n.id),method:"DELETE"});case 14:return r.next=16,h.controls.dispatch(M,"savePost");case 16:r.next=22;break;case 18:return r.prev=18,r.t0=r.catch(8),r.next=22,h.controls.dispatch.apply(h.controls,[on.store,"createErrorNotice"].concat(Object(tn.a)([(o={error:r.t0}).error.message&&"unknown_error"!==o.error.code?o.error.message:Object(cn.__)("Trashing failed"),{id:"TRASH_POST_NOTICE_ID"}])));case 22:case"end":return r.stop()}var o}),mn,null,[[8,18]])}function In(){var e,t,n,r,o,i,c,a,s,u=arguments;return rn.a.wrap((function(l){for(;;)switch(l.prev=l.next){case 0:if(e=u.length>0&&void 0!==u[0]?u[0]:{},t=e.local,n=void 0!==t&&t,r=Object(d.a)(e,["local"]),!n){l.next=21;break}return l.next=4,h.controls.select(M,"getCurrentPost");case 4:return o=l.sent,l.next=7,h.controls.select(M,"isEditedPostNew");case 7:return i=l.sent,l.next=10,h.controls.select(M,"getEditedPostAttribute","title");case 10:return c=l.sent,l.next=13,h.controls.select(M,"getEditedPostAttribute","content");case 13:return a=l.sent,l.next=16,h.controls.select(M,"getEditedPostAttribute","excerpt");case 16:return s=l.sent,l.next=19,{type:"LOCAL_AUTOSAVE_SET",postId:o.id,isPostNew:i,title:c,content:a,excerpt:s};case 19:l.next=23;break;case 21:return l.next=23,h.controls.dispatch(M,"savePost",ln({isAutosave:!0},r));case 23:case"end":return l.stop()}}),vn)}function Rn(){return rn.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,h.controls.dispatch("core","redo");case 2:case"end":return e.stop()}}),On)}function Dn(){return rn.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,h.controls.dispatch("core","undo");case 2:case"end":return e.stop()}}),gn)}function Nn(){return{type:"CREATE_UNDO_LEVEL"}}function Ln(e){return{type:"UPDATE_POST_LOCK",lock:e}}function Un(){return{type:"ENABLE_PUBLISH_SIDEBAR"}}function Fn(){return{type:"DISABLE_PUBLISH_SIDEBAR"}}function Mn(e){return{type:"LOCK_POST_SAVING",lockName:e}}function Vn(e){return{type:"UNLOCK_POST_SAVING",lockName:e}}function zn(e){return{type:"LOCK_POST_AUTOSAVING",lockName:e}}function Hn(e){return{type:"UNLOCK_POST_AUTOSAVING",lockName:e}}function Wn(e){var t,n,r,o,i,c,a,s,u=arguments;return rn.a.wrap((function(l){for(;;)switch(l.prev=l.next){case 0:if(t=u.length>1&&void 0!==u[1]?u[1]:{},n=t.__unstableShouldCreateUndoLevel,r=t.selectionStart,o=t.selectionEnd,i={blocks:e,selectionStart:r,selectionEnd:o},!1===n){l.next=19;break}return l.next=6,h.controls.select(M,"getCurrentPost");case 6:return c=l.sent,a=c.id,s=c.type,l.next=11,h.controls.select("core","getEditedEntityRecord","postType",s,a);case 11:if(l.t0=l.sent.blocks,l.t1=i.blocks,!(l.t0===l.t1)){l.next=18;break}return l.next=17,h.controls.dispatch("core","__unstableCreateUndoLevel","postType",s,a);case 17:return l.abrupt("return",l.sent);case 18:i.content=function(e){var t=e.blocks,n=void 0===t?[]:t;return Object(f.__unstableSerializeAndClean)(n)};case 19:return l.delegateYield(Cn(i),"t2",20);case 20:case"end":return l.stop()}}),jn)}function Gn(e){return{type:"UPDATE_EDITOR_SETTINGS",settings:e}}var qn=function(e){return rn.a.mark((function t(){var n,r,o,i=arguments;return rn.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:for(U()("`wp.data.dispatch( 'core/editor' )."+e+"`",{alternative:"`wp.data.dispatch( 'core/block-editor' )."+e+"`"}),n=i.length,r=new Array(n),o=0;o0&&void 0!==arguments[0]?arguments[0]:1e3*this.props.interval;this.timerId=setTimeout((function(){e.autosaveTimerHandler()}),t)}},{key:"autosaveTimerHandler",value:function(){this.props.isAutosaveable?(this.needsAutosave&&(this.needsAutosave=!1,this.props.autosave()),this.setAutosaveTimer()):this.setAutosaveTimer(1e3)}},{key:"render",value:function(){return null}}]),n}(p.Component),Ur=Object(m.compose)([Object(h.withSelect)((function(e,t){var n=e("core").getReferenceByDistinctEdits,r=e("core/editor"),o=r.isEditedPostDirty,i=r.isEditedPostAutosaveable,c=r.isAutosavingPost,a=r.getEditorSettings,s=t.interval,u=void 0===s?a().autosaveInterval:s;return{editsReference:n(),isDirty:o(),isAutosaveable:i(),isAutosaving:c(),interval:u}})),Object(h.withDispatch)((function(e,t){return{autosave:function(){var n=t.autosave,r=void 0===n?e("core/editor").autosave:n;r()}}}))])(Lr),Fr=n(10),Mr=n.n(Fr),Vr=function(e){var t=e.children,n=e.isValid,r=e.level,o=e.href,i=e.onSelect;return Object(p.createElement)("li",{className:Mr()("document-outline__item","is-".concat(r.toLowerCase()),{"is-invalid":!n})},Object(p.createElement)("a",{href:o,className:"document-outline__button",onClick:i},Object(p.createElement)("span",{className:"document-outline__emdash","aria-hidden":"true"}),Object(p.createElement)("strong",{className:"document-outline__level"},r),Object(p.createElement)("span",{className:"document-outline__item-content"},t)))};function zr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Hr(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:[];return Object(b.flatMap)(t,(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"core/heading"===t.name?Hr(Hr({},t),{},{level:t.attributes.level,isEmpty:Qr(t)}):e(t.innerBlocks)}))}(n);if(s.length<1)return null;var u=1,l=document.querySelector(".editor-post-title__input"),d=i&&r&&l,f=Object(b.countBy)(s,"level")[1]>1;return Object(p.createElement)("div",{className:"document-outline"},Object(p.createElement)("ul",null,d&&Object(p.createElement)(Vr,{level:Object(cn.__)("Title"),isValid:!0,onSelect:o,href:"#".concat(l.id),isDisabled:c},r),s.map((function(e,t){var n=e.level>u+1,r=!(e.isEmpty||n||!e.level||1===e.level&&(f||d));return u=e.level,Object(p.createElement)(Vr,{key:t,level:"H".concat(e.level),isValid:r,isDisabled:c,href:"#block-".concat(e.clientId),onSelect:o},e.isEmpty?Wr:Object(a.getTextContent)(Object(a.create)({html:e.attributes.content})),n&&Gr,1===e.level&&f&&Kr,d&&1===e.level&&!f&&qr)}))))}));var Yr=Object(h.withSelect)((function(e){return{blocks:e("core/block-editor").getBlocks()}}))((function(e){var t=e.blocks,n=e.children;return Object(b.filter)(t,(function(e){return"core/heading"===e.name})).length<1?null:n})),Xr=n(46);var Jr=function(e){var t=e.resetBlocksOnSave,n=Object(h.useDispatch)("core/editor"),r=n.resetEditorBlocks,o=n.savePost,i=Object(h.useSelect)((function(e){var t=e("core/editor");return{isEditedPostDirty:t.isEditedPostDirty,getPostEdits:t.getPostEdits}}),[]),c=i.isEditedPostDirty,a=i.getPostEdits;return Object(Xr.useShortcut)("core/editor/save",(function(e){if(e.preventDefault(),c()){if(t){var n=a();if(n.content&&"string"==typeof n.content){var i=Object(f.parse)(n.content);r(i)}}o()}}),{bindGlobal:!0}),null};function Zr(){var e=Object(h.useDispatch)("core/editor"),t=e.redo,n=e.undo;return Object(Xr.useShortcut)("core/editor/undo",(function(e){n(),e.preventDefault()}),{bindGlobal:!0}),Object(Xr.useShortcut)("core/editor/redo",(function(e){t(),e.preventDefault()}),{bindGlobal:!0}),Object(p.createElement)(p.Fragment,null,Object(p.createElement)(i.BlockEditorKeyboardShortcuts,null),Object(p.createElement)(Jr,null))}var eo=Zr;function to(){return U()("EditorGlobalKeyboardShortcuts",{alternative:"VisualEditorGlobalKeyboardShortcuts",plugin:"Gutenberg"}),Object(p.createElement)(Zr,null)}function no(){return Object(p.createElement)(Jr,{resetBlocksOnSave:!0})}var ro=function(){var e=Object(h.useDispatch)(Xr.store).registerShortcut;return Object(p.useEffect)((function(){e({name:"core/editor/save",category:"global",description:Object(cn.__)("Save your changes."),keyCombination:{modifier:"primary",character:"s"}}),e({name:"core/editor/undo",category:"global",description:Object(cn.__)("Undo your last changes."),keyCombination:{modifier:"primary",character:"z"}}),e({name:"core/editor/redo",category:"global",description:Object(cn.__)("Redo your last undo."),keyCombination:{modifier:"primaryShift",character:"z"}})}),[e]),Object(p.createElement)(i.BlockEditorKeyboardShortcuts.Register,null)},oo=n(3),io=n(17),co=n(7),ao=Object(p.createElement)(co.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(p.createElement)(co.Path,{d:"M15.6 6.5l-1.1 1 2.9 3.3H8c-.9 0-1.7.3-2.3.9-1.4 1.5-1.4 4.2-1.4 5.6v.2h1.5v-.3c0-1.1 0-3.5 1-4.5.3-.3.7-.5 1.3-.5h9.2L14.5 15l1.1 1.1 4.6-4.6-4.6-5z"}));var so=Object(p.forwardRef)((function(e,t){var n=Object(h.useSelect)((function(e){return e("core/editor").hasEditorRedo()}),[]),r=Object(h.useDispatch)("core/editor").redo;return Object(p.createElement)(oo.Button,Object(s.a)({},e,{ref:t,icon:ao,label:Object(cn.__)("Redo"),shortcut:io.displayShortcut.primaryShift("z"),"aria-disabled":!n,onClick:n?r:void 0,className:"editor-history__redo"}))})),uo=Object(p.createElement)(co.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(p.createElement)(co.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 lo=Object(p.forwardRef)((function(e,t){var n=Object(h.useSelect)((function(e){return e("core/editor").hasEditorUndo()}),[]),r=Object(h.useDispatch)("core/editor").undo;return Object(p.createElement)(oo.Button,Object(s.a)({},e,{ref:t,icon:uo,label:Object(cn.__)("Undo"),shortcut:io.displayShortcut.primary("z"),"aria-disabled":!n,onClick:n?r:void 0,className:"editor-history__undo"}))}));var po=Object(m.compose)([Object(h.withSelect)((function(e){return{isValid:e("core/block-editor").isValidTemplate()}})),Object(h.withDispatch)((function(e){var t=e("core/block-editor"),n=t.setTemplateValidity;return{resetTemplateValidity:function(){return n(!0)},synchronizeTemplate:t.synchronizeTemplate}}))])((function(e){var t=e.isValid,n=Object(d.a)(e,["isValid"]);return t?null:Object(p.createElement)(oo.Notice,{className:"editor-template-validation-notice",isDismissible:!1,status:"warning",actions:[{label:Object(cn.__)("Keep it as is"),onClick:n.resetTemplateValidity},{label:Object(cn.__)("Reset the template"),onClick:function(){window.confirm(Object(cn.__)("Resetting the template may result in loss of content, do you want to continue?"))&&n.synchronizeTemplate()},isPrimary:!0}]},Object(cn.__)("The content of your post doesn’t match the template assigned to your post type."))}));var bo=Object(m.compose)([Object(h.withSelect)((function(e){return{notices:e(on.store).getNotices()}})),Object(h.withDispatch)((function(e){return{onRemove:e(on.store).removeNotice}}))])((function(e){var t=e.notices,n=e.onRemove,r=Object(b.filter)(t,{isDismissible:!0,type:"default"}),o=Object(b.filter)(t,{isDismissible:!1,type:"default"}),i=Object(b.filter)(t,{type:"snackbar"});return Object(p.createElement)(p.Fragment,null,Object(p.createElement)(oo.NoticeList,{notices:o,className:"components-editor-notices__pinned"}),Object(p.createElement)(oo.NoticeList,{notices:r,className:"components-editor-notices__dismissible",onRemove:n},Object(p.createElement)(po,null)),Object(p.createElement)(oo.SnackbarList,{notices:i,className:"components-editor-notices__snackbar",onRemove:n}))})),fo=n(160),ho=n(313),mo=Object(p.createElement)(co.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(p.createElement)(co.Path,{d:"M7 5.5h10a.5.5 0 01.5.5v12a.5.5 0 01-.5.5H7a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM17 4H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V6a2 2 0 00-2-2zm-1 3.75H8v1.5h8v-1.5zM8 11h8v1.5H8V11zm6 3.25H8v1.5h6v-1.5z"}));function vo(e){var t=e.record,n=e.checked,r=e.onChange,o=e.closePanel,i=t.name,c=t.kind,a=t.title,s=t.key,u=Object(h.useSelect)((function(e){var t,n=e("core").getEditedEntityRecord(c,i,s).blocks,r=void 0===n?[]:n,o=e("core/block-editor").getBlockParents(null===(t=r[0])||void 0===t?void 0:t.clientId);return o[o.length-1]}),[]),l=Object(h.useSelect)((function(e){if("postType"!==c||"wp_template"!==i)return a;var t=e("core").getEditedEntityRecord(c,i,s);return e("core/editor").__experimentalGetTemplateInfo(t).title}),[i,c,a,s]),d=Object(h.useSelect)((function(e){return e("core/block-editor").getSelectedBlockClientId()===u}),[u]),b=d?Object(cn.__)("Selected"):Object(cn.__)("Select"),f=Object(h.useDispatch)("core/block-editor").selectBlock,m=Object(p.useCallback)((function(){return f(u)}),[u]),v=Object(p.useCallback)((function(){f(u),o()}),[u]);return Object(p.createElement)(oo.PanelRow,null,Object(p.createElement)(oo.CheckboxControl,{label:Object(p.createElement)("strong",null,l||Object(cn.__)("Untitled")),checked:n,onChange:r}),u?Object(p.createElement)(p.Fragment,null,Object(p.createElement)(oo.Button,{onClick:m,className:"entities-saved-states__find-entity",disabled:d},b),Object(p.createElement)(oo.Button,{onClick:v,className:"entities-saved-states__find-entity-small",disabled:d},b)):null)}var Oo={site:ho.a,page:mo};function go(e){var t=e.list,n=e.unselectedEntities,r=e.setUnselectedEntities,o=e.closePanel,i=t[0],c=Object(h.useSelect)((function(e){return e("core").getEntity(i.kind,i.name)}),[i.kind,i.name]),a=i.name,s=Oo[a];return Object(p.createElement)(oo.PanelBody,{title:c.label,initialOpen:!0,icon:s},t.map((function(e){return Object(p.createElement)(vo,{key:e.key||"site",record:e,checked:!Object(b.some)(n,(function(t){return t.kind===e.kind&&t.name===e.name&&t.key===e.key})),onChange:function(t){return r(e,t)},closePanel:o})})))}var jo={wp_template_part:function(e){return Object(cn._n)("template part","template parts",e)},wp_template:function(e){return Object(cn._n)("template","templates",e)},post:function(e){return Object(cn._n)("post","posts",e)},page:function(e){return Object(cn._n)("page","pages",e)},site:function(e){return Object(cn._n)("site","sites",e)}},yo={0:Object(cn.__)("There are no changes."),1:Object(cn.__)("The following changes have been made to your %s."),2:Object(cn.__)("The following changes have been made to your %1$s and %2$s."),3:Object(cn.__)("The following changes have been made to your %1$s, %2$s, and %3$s."),4:Object(cn.__)("The following changes have been made to your %1$s, %2$s, %3$s, and %4$s."),5:Object(cn.__)("The following changes have been made to your %1$s, %2$s, %3$s, %4$s, and %5$s.")};var _o=Object(oo.withFocusReturn)((function(e){var t=e.isOpen,n=e.close,r=Object(h.useSelect)((function(e){return{dirtyEntityRecords:e("core").__experimentalGetDirtyEntityRecords()}}),[]).dirtyEntityRecords,o=Object(h.useDispatch)("core").saveEditedEntityRecord,i=Object.values(Object(b.groupBy)(r,"name")),c=[];i.forEach((function(e){jo[e[0].name]&&c.push(jo[e[0].name](e.length))}));var a=yo[c.length]||Object(cn.__)("The following changes have been made to multiple entities."),s=cn.sprintf.apply(void 0,[a].concat(c)),u=Object(p.useState)([]),d=Object(l.a)(u,2),f=d[0],m=d[1],v=function(e,t){var n=e.kind,r=e.name,o=e.key;m(t?f.filter((function(e){return e.kind!==n||e.name!==r||e.key!==o})):[].concat(Object(tn.a)(f),[{kind:n,name:r,key:o}]))},O=Object(p.useCallback)((function(){return n()}),[n]);return t?Object(p.createElement)("div",{className:"entities-saved-states__panel"},Object(p.createElement)("div",{className:"entities-saved-states__panel-header"},Object(p.createElement)(oo.Button,{isPrimary:!0,disabled:r.length-f.length==0,onClick:function(){var e=r.filter((function(e){var t=e.kind,n=e.name,r=e.key;return!Object(b.some)(f,(function(e){return e.kind===t&&e.name===n&&e.key===r}))}));n(e),e.forEach((function(e){var t=e.kind,n=e.name,r=e.key;o(t,n,r)}))},className:"editor-entities-saved-states__save-button"},Object(cn.__)("Save")),Object(p.createElement)(oo.Button,{onClick:O,icon:fo.a,label:Object(cn.__)("Close panel")})),Object(p.createElement)("div",{className:"entities-saved-states__text-prompt"},Object(p.createElement)("strong",null,Object(cn.__)("Are you ready to save?")),Object(p.createElement)("p",null,s)),i.map((function(e){return Object(p.createElement)(go,{key:e[0].name,list:e,closePanel:O,unselectedEntities:f,setUnselectedEntities:v})}))):null})),wo=n(18);function Po(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Dr.a)(e);if(t){var o=Object(Dr.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Rr.a)(this,n)}}var So=function(e){Object(Ir.a)(n,e);var t=Po(n);function n(){var e;return Object(Br.a)(this,n),(e=t.apply(this,arguments)).reboot=e.reboot.bind(Object(wo.a)(e)),e.getContent=e.getContent.bind(Object(wo.a)(e)),e.state={error:null},e}return Object(Ar.a)(n,[{key:"componentDidCatch",value:function(e){this.setState({error:e})}},{key:"reboot",value:function(){this.props.onError()}},{key:"getContent",value:function(){try{return Object(h.select)("core/editor").getEditedPostContent()}catch(e){}}},{key:"render",value:function(){var e=this.state.error;return e?Object(p.createElement)(i.Warning,{className:"editor-error-boundary",actions:[Object(p.createElement)(oo.Button,{key:"recovery",onClick:this.reboot,isSecondary:!0},Object(cn.__)("Attempt Recovery")),Object(p.createElement)(oo.ClipboardButton,{key:"copy-post",text:this.getContent,isSecondary:!0},Object(cn.__)("Copy Post Text")),Object(p.createElement)(oo.ClipboardButton,{key:"copy-error",text:e.stack,isSecondary:!0},Object(cn.__)("Copy Error"))]},Object(cn.__)("The editor has encountered an unexpected error.")):this.props.children}}]),n}(p.Component),ko=window.requestIdleCallback?window.requestIdleCallback:window.requestAnimationFrame,Eo=Object(b.once)((function(){try{return window.sessionStorage.setItem("__wpEditorTestSessionStorage",""),window.sessionStorage.removeItem("__wpEditorTestSessionStorage"),!0}catch(e){return!1}}));function To(){var e=Object(h.useSelect)((function(e){return{postId:e("core/editor").getCurrentPostId(),isEditedPostNew:e("core/editor").isEditedPostNew(),getEditedPostAttribute:e("core/editor").getEditedPostAttribute,hasRemoteAutosave:!!e("core/editor").getEditorSettings().autosave}}),[]),t=e.postId,n=e.isEditedPostNew,r=e.getEditedPostAttribute,o=e.hasRemoteAutosave,i=Object(h.useDispatch)(on.store),c=i.createWarningNotice,a=i.removeNotice,s=Object(h.useDispatch)("core/editor"),u=s.editPost,l=s.resetEditorBlocks;Object(p.useEffect)((function(){var e=function(e,t){return window.sessionStorage.getItem(Pr(e,t))}(t,n);if(e){try{e=JSON.parse(e)}catch(e){return}var i=e,s={title:i.post_title,content:i.content,excerpt:i.excerpt};if(Object.keys(s).some((function(e){return s[e]!==r(e)}))){if(!o){var d=Object(b.uniqueId)("wpEditorAutosaveRestore");c(Object(cn.__)("The backup of this post in your browser is different from the version below."),{id:d,actions:[{label:Object(cn.__)("Restore the backup"),onClick:function(){u(Object(b.omit)(s,["content"])),l(Object(f.parse)(s.content)),a(d)}}]})}}else Sr(t,n)}}),[n,t])}var Co=Object(m.ifCondition)(Eo)((function(){var e=Object(h.useDispatch)("core/editor").autosave,t=Object(p.useCallback)((function(){ko((function(){return e({local:!0})}))}),[]);To(),function(){var e=Object(h.useSelect)((function(e){return{postId:e("core/editor").getCurrentPostId(),isEditedPostNew:e("core/editor").isEditedPostNew(),isDirty:e("core/editor").isEditedPostDirty(),isAutosaving:e("core/editor").isAutosavingPost(),didError:e("core/editor").didPostSaveRequestFail()}}),[]),t=e.postId,n=e.isEditedPostNew,r=e.isDirty,o=e.isAutosaving,i=e.didError,c=Object(p.useRef)(r),a=Object(p.useRef)(o);Object(p.useEffect)((function(){!i&&(a.current&&!o||c.current&&!r)&&Sr(t,n),c.current=r,a.current=o}),[r,o,i]);var s=Object(m.usePrevious)(n),u=Object(m.usePrevious)(t);Object(p.useEffect)((function(){u===t&&s&&!n&&Sr(t,!0)}),[n,t])}();var n=Object(h.useSelect)((function(e){return{localAutosaveInterval:e("core/editor").getEditorSettings().__experimentalLocalAutosaveInterval}}),[]).localAutosaveInterval;return Object(p.createElement)(Ur,{interval:n,autosave:t})}));var xo=Object(h.withSelect)((function(e){var t=e("core/editor"),n=t.getEditedPostAttribute,r=t.getEditorSettings,o=e("core").getPostType,i=r().availableTemplates;return{postType:o(n("type")),availableTemplates:i}}))((function(e){var t=e.availableTemplates,n=e.postType,r=e.children;return!Object(b.get)(n,["supports","page-attributes"],!1)&&Object(b.isEmpty)(t)?null:r}));var Bo=Object(h.withSelect)((function(e){var t=e("core/editor").getEditedPostAttribute;return{postType:(0,e("core").getPostType)(t("type"))}}))((function(e){var t=e.postType,n=e.children,r=e.supportKeys,o=!0;return t&&(o=Object(b.some)(Object(b.castArray)(r),(function(e){return!!t.supports[e]}))),o?n:null})),Ao=Object(m.withState)({orderInput:null})((function(e){var t=e.onUpdateOrder,n=e.order,r=void 0===n?0:n,o=e.orderInput,i=e.setState,c=null===o?r:o;return Object(p.createElement)(oo.TextControl,{className:"editor-page-attributes__order",type:"number",label:Object(cn.__)("Order"),value:c,onChange:function(e){i({orderInput:e});var n=Number(e);Number.isInteger(n)&&""!==Object(b.invoke)(e,["trim"])&&t(Number(e))},size:6,onBlur:function(){i({orderInput:null})}})}));var Io=Object(m.compose)([Object(h.withSelect)((function(e){return{order:e("core/editor").getEditedPostAttribute("menu_order")}})),Object(h.withDispatch)((function(e){return{onUpdateOrder:function(t){e("core/editor").editPost({menu_order:t})}}}))])((function(e){return Object(p.createElement)(Bo,{supportKeys:"page-attributes"},Object(p.createElement)(Ao,e))}));function Ro(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Do(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:0;return Object(b.flatMap)(t,(function(t){return[{value:t.id,label:Object(b.repeat)("— ",n)+Object(b.unescape)(t.name)}].concat(Object(tn.a)(e(t.children||[],n+1)))}))}(e),n=Object(b.find)(t,(function(e){return e.value===s}));return a&&!n&&t.unshift({value:s,label:Lo(a)}),t}),[v]);return f&&m?Object(p.createElement)(oo.ComboboxControl,{className:"editor-page-attributes__parent",label:m,value:s,options:O,onFilterValueChange:Object(b.debounce)((function(e){o(e)}),300),onChange:function(t){e({parent:t})}}):null};var Fo=Object(m.compose)(Object(h.withSelect)((function(e){var t=e("core/editor"),n=t.getEditedPostAttribute,r=(0,t.getEditorSettings)().availableTemplates;return{selectedTemplate:n("template"),availableTemplates:r}})),Object(h.withDispatch)((function(e){return{onUpdate:function(t){e("core/editor").editPost({template:t||""})}}})))((function(e){var t=e.availableTemplates,n=e.selectedTemplate,r=e.onUpdate;return Object(b.isEmpty)(t)?null:Object(p.createElement)(oo.SelectControl,{label:Object(cn.__)("Template:"),value:n,onChange:r,className:"editor-page-attributes__template",options:Object(b.map)(t,(function(e,t){return{value:t,label:e}}))})}));var Mo=function(){var e=Object(p.useState)(),t=Object(l.a)(e,2),n=t[0],r=t[1],o=Object(h.useSelect)((function(e){var t=e("core"),r=t.__unstableGetAuthor,o=t.getAuthors,i=t.isResolving,c=e("core/editor").getEditedPostAttribute,a=r(c("author")),s=n&&""!==n?{search:n}:{};return{authorId:c("author"),postAuthor:a,authors:o(s),isLoading:i("core","getAuthors",[s])}}),[n]),i=o.authorId,c=o.isLoading,a=o.authors,s=o.postAuthor,u=Object(h.useDispatch)("core/editor").editPost,d=Object(p.useMemo)((function(){var e=(null!=a?a:[]).map((function(e){return{value:e.id,label:e.name}}));return e.findIndex((function(e){var t=e.value;return(null==s?void 0:s.id)===t}))<0&&s?[{value:s.id,label:s.name}].concat(Object(tn.a)(e)):e}),[a,s]);return Object(p.useEffect)((function(){s&&r(s.name)}),[s]),s?Object(p.createElement)(oo.ComboboxControl,{label:Object(cn.__)("Author"),options:d,value:i,onFilterValueChange:Object(b.debounce)((function(e){r(e)}),300),onChange:function(e){e&&u({author:e})},isLoading:c,allowReset:!1}):null},Vo=n(64);var zo=function(){var e=Object(h.useDispatch)("core/editor").editPost,t=Object(h.useSelect)((function(e){var t=e("core").getAuthors();return{postAuthor:e("core/editor").getEditedPostAttribute("author"),authors:t.map((function(e){return{label:Object(Vo.decodeEntities)(e.name),value:e.id}}))}}),[]),n=t.postAuthor,r=t.authors;return Object(p.createElement)(oo.SelectControl,{className:"post-author-selector",label:Object(cn.__)("Author"),options:r,onChange:function(t){var n=Number(t);e({author:n})},value:n})};var Ho=function(){return Object(h.useSelect)((function(e){var t=e("core").getUsers({who:"authors",per_page:26});return(null==t?void 0:t.length)>=25}),[])?Object(p.createElement)(Mo,null):Object(p.createElement)(zo,null)};var Wo=Object(m.compose)([Object(h.withSelect)((function(e){var t=e("core/editor").getCurrentPost();return{hasAssignAuthorAction:Object(b.get)(t,["_links","wp:action-assign-author"],!1),postType:e("core/editor").getCurrentPostType(),authors:e("core").getAuthors()}})),m.withInstanceId])((function(e){var t=e.hasAssignAuthorAction,n=e.authors,r=e.children;return!t||!n||1>=n.length?null:Object(p.createElement)(Bo,{supportKeys:"author"},r)}));var Go=Object(m.compose)([Object(h.withSelect)((function(e){return{commentStatus:e("core/editor").getEditedPostAttribute("comment_status")}})),Object(h.withDispatch)((function(e){return{editPost:e("core/editor").editPost}}))])((function(e){var t=e.commentStatus,n=void 0===t?"open":t,r=Object(d.a)(e,["commentStatus"]);return Object(p.createElement)(oo.CheckboxControl,{label:Object(cn.__)("Allow comments"),checked:"open"===n,onChange:function(){return r.editPost({comment_status:"open"===n?"closed":"open"})}})}));var qo=Object(m.compose)([Object(h.withSelect)((function(e){return{excerpt:e("core/editor").getEditedPostAttribute("excerpt")}})),Object(h.withDispatch)((function(e){return{onUpdateExcerpt:function(t){e("core/editor").editPost({excerpt:t})}}}))])((function(e){var t=e.excerpt,n=e.onUpdateExcerpt;return Object(p.createElement)("div",{className:"editor-post-excerpt"},Object(p.createElement)(oo.TextareaControl,{label:Object(cn.__)("Write an excerpt (optional)"),className:"editor-post-excerpt__textarea",onChange:function(e){return n(e)},value:t}),Object(p.createElement)(oo.ExternalLink,{href:Object(cn.__)("https://wordpress.org/support/article/excerpt/")},Object(cn.__)("Learn more about manual excerpts")))}));var Ko=function(e){return Object(p.createElement)(Bo,Object(s.a)({},e,{supportKeys:"excerpt"}))};var Qo=Object(h.withSelect)((function(e){var t=e("core").getThemeSupports;return{postType:(0,e("core/editor").getEditedPostAttribute)("type"),themeSupports:t()}}))((function(e){var t=e.themeSupports,n=e.children,r=e.postType,o=e.supportKeys;return Object(b.some)(Object(b.castArray)(o),(function(e){var n=Object(b.get)(t,[e],!1);return"post-thumbnails"===e&&Object(b.isArray)(n)?Object(b.includes)(n,r):n}))?n:null}));var $o=function(e){return Object(p.createElement)(Qo,{supportKeys:"post-thumbnails"},Object(p.createElement)(Bo,Object(s.a)({},e,{supportKeys:"thumbnail"})))},Yo=["image"],Xo=Object(cn.__)("Featured image"),Jo=Object(cn.__)("Set featured image"),Zo=Object(cn.__)("Remove image");var ei=Object(h.withSelect)((function(e){var t=e("core"),n=t.getMedia,r=t.getPostType,o=e("core/editor"),i=o.getCurrentPostId,c=o.getEditedPostAttribute,a=c("featured_media");return{media:a?n(a):null,currentPostId:i(),postType:r(c("type")),featuredImageId:a}})),ti=Object(h.withDispatch)((function(e,t,n){var r=t.noticeOperations,o=n.select,i=e("core/editor").editPost;return{onUpdateImage:function(e){i({featured_media:e.id})},onDropImage:function(e){o("core/block-editor").getSettings().mediaUpload({allowedTypes:["image"],filesList:e,onFileChange:function(e){var t=Object(l.a)(e,1)[0];i({featured_media:t.id})},onError:function(e){r.removeAllNotices(),r.createErrorNotice(e)}})},onRemoveImage:function(){i({featured_media:0})}}})),ni=Object(m.compose)(oo.withNotices,ei,ti,Object(oo.withFilters)("editor.PostFeaturedImage"))((function(e){var t,n,r,o,c,a=e.currentPostId,s=e.featuredImageId,u=e.onUpdateImage,l=e.onDropImage,d=e.onRemoveImage,f=e.media,h=e.postType,m=e.noticeUI,O=Object(b.get)(h,["labels"],{}),g=Object(p.createElement)("p",null,Object(cn.__)("To edit the featured image, you need permission to upload media."));if(f){var j=Object(v.applyFilters)("editor.PostFeaturedImage.imageSize","post-thumbnail",f.id,a);if(Object(b.has)(f,["media_details","sizes",j]))r=f.media_details.sizes[j].width,o=f.media_details.sizes[j].height,c=f.media_details.sizes[j].source_url;else{var y=Object(v.applyFilters)("editor.PostFeaturedImage.imageSize","thumbnail",f.id,a);Object(b.has)(f,["media_details","sizes",y])?(r=f.media_details.sizes[y].width,o=f.media_details.sizes[y].height,c=f.media_details.sizes[y].source_url):(r=f.media_details.width,o=f.media_details.height,c=f.source_url)}}return Object(p.createElement)($o,null,m,Object(p.createElement)("div",{className:"editor-post-featured-image"},f&&Object(p.createElement)("div",{id:"editor-post-featured-image-".concat(s,"-describedby"),className:"hidden"},f.alt_text&&Object(cn.sprintf)(Object(cn.__)("Current image: %s"),f.alt_text),!f.alt_text&&Object(cn.sprintf)(Object(cn.__)("The current image has no alternative text. The file name is: %s"),(null===(t=f.media_details.sizes)||void 0===t||null===(n=t.full)||void 0===n?void 0:n.file)||f.slug)),Object(p.createElement)(i.MediaUploadCheck,{fallback:g},Object(p.createElement)(i.MediaUpload,{title:O.featured_image||Xo,onSelect:u,unstableFeaturedImageFlow:!0,allowedTypes:Yo,modalClass:"editor-post-featured-image__media-modal",render:function(e){var t=e.open;return Object(p.createElement)("div",{className:"editor-post-featured-image__container"},Object(p.createElement)(oo.Button,{className:s?"editor-post-featured-image__preview":"editor-post-featured-image__toggle",onClick:t,"aria-label":s?Object(cn.__)("Edit or update the image"):null,"aria-describedby":s?"editor-post-featured-image-".concat(s,"-describedby"):null},!!s&&f&&Object(p.createElement)(oo.ResponsiveWrapper,{naturalWidth:r,naturalHeight:o,isInline:!0},Object(p.createElement)("img",{src:c,alt:""})),!!s&&!f&&Object(p.createElement)(oo.Spinner,null),!s&&(O.set_featured_image||Jo)),Object(p.createElement)(oo.DropZone,{onFilesDrop:l}))},value:s})),!!s&&f&&!f.isLoading&&Object(p.createElement)(i.MediaUploadCheck,null,Object(p.createElement)(i.MediaUpload,{title:O.featured_image||Xo,onSelect:u,unstableFeaturedImageFlow:!0,allowedTypes:Yo,modalClass:"editor-post-featured-image__media-modal",render:function(e){var t=e.open;return Object(p.createElement)(oo.Button,{onClick:t,isSecondary:!0},Object(cn.__)("Replace Image"))}})),!!s&&Object(p.createElement)(i.MediaUploadCheck,null,Object(p.createElement)(oo.Button,{onClick:d,isLink:!0,isDestructive:!0},O.remove_featured_image||Zo))))}));var ri=Object(h.withSelect)((function(e){return{disablePostFormats:e("core/editor").getEditorSettings().disablePostFormats}}))((function(e){var t=e.disablePostFormats,n=Object(d.a)(e,["disablePostFormats"]);return!t&&Object(p.createElement)(Bo,Object(s.a)({},n,{supportKeys:"post-formats"}))})),oi=[{id:"aside",caption:Object(cn.__)("Aside")},{id:"audio",caption:Object(cn.__)("Audio")},{id:"chat",caption:Object(cn.__)("Chat")},{id:"gallery",caption:Object(cn.__)("Gallery")},{id:"image",caption:Object(cn.__)("Image")},{id:"link",caption:Object(cn.__)("Link")},{id:"quote",caption:Object(cn.__)("Quote")},{id:"standard",caption:Object(cn.__)("Standard")},{id:"status",caption:Object(cn.__)("Status")},{id:"video",caption:Object(cn.__)("Video")}].sort((function(e,t){var n=e.caption.toUpperCase(),r=t.caption.toUpperCase();return nr?1:0}));function ii(){var e=Object(m.useInstanceId)(ii),t="post-format-selector-".concat(e),n=Object(h.useSelect)((function(e){var t=e("core/editor"),n=t.getEditedPostAttribute,r=t.getSuggestedPostFormat,o=n("format"),i=e("core").getThemeSupports();return{postFormat:null!=o?o:"standard",suggestedFormat:r(),supportedFormats:Object(b.union)([o],Object(b.get)(i,["formats"],[]))}}),[]),r=n.postFormat,o=n.suggestedFormat,i=n.supportedFormats,c=oi.filter((function(e){return Object(b.includes)(i,e.id)})),a=Object(b.find)(c,(function(e){return e.id===o})),s=Object(h.useDispatch)("core/editor").editPost,u=function(e){return s({format:e})};return Object(p.createElement)(ri,null,Object(p.createElement)("div",{className:"editor-post-format"},Object(p.createElement)("div",{className:"editor-post-format__content"},Object(p.createElement)("label",{htmlFor:t},Object(cn.__)("Post Format")),Object(p.createElement)(oo.SelectControl,{value:r,onChange:function(e){return u(e)},id:t,options:c.map((function(e){return{label:e.caption,value:e.id}}))})),a&&a.id!==r&&Object(p.createElement)("div",{className:"editor-post-format__suggestion"},Object(cn.__)("Suggestion:")," ",Object(p.createElement)(oo.Button,{isLink:!0,onClick:function(){return u(a.id)}},a.caption))))}var ci=Object(p.createElement)(co.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(p.createElement)(co.Path,{d:"M5.5 12h1.75l-2.5 3-2.5-3H4a8 8 0 113.134 6.35l.907-1.194A6.5 6.5 0 105.5 12zm9.53 1.97l-2.28-2.28V8.5a.75.75 0 00-1.5 0V12a.747.747 0 00.218.529l1.282-.84-1.28.842 2.5 2.5a.75.75 0 101.06-1.061z"}));var ai=Object(h.withSelect)((function(e){var t=e("core/editor"),n=t.getCurrentPostLastRevisionId,r=t.getCurrentPostRevisionsCount;return{lastRevisionId:n(),revisionsCount:r()}}))((function(e){var t=e.lastRevisionId,n=e.revisionsCount,r=e.children;return!t||n<2?null:Object(p.createElement)(Bo,{supportKeys:"revisions"},r)}));var si=Object(h.withSelect)((function(e){var t=e("core/editor"),n=t.getCurrentPostLastRevisionId,r=t.getCurrentPostRevisionsCount;return{lastRevisionId:n(),revisionsCount:r()}}))((function(e){var t=e.lastRevisionId,n=e.revisionsCount;return Object(p.createElement)(ai,null,Object(p.createElement)(oo.Button,{href:H("revision.php",{revision:t,gutenberg:!0}),className:"editor-post-last-revision__title",icon:ci},Object(cn.sprintf)(Object(cn._n)("%d Revision","%d Revisions",n),n)))}));function ui(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Dr.a)(e);if(t){var o=Object(Dr.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Rr.a)(this,n)}}var li=function(e){Object(Ir.a)(n,e);var t=ui(n);function n(){var e;return Object(Br.a)(this,n),(e=t.apply(this,arguments)).buttonRef=Object(p.createRef)(),e.openPreviewWindow=e.openPreviewWindow.bind(Object(wo.a)(e)),e}return Object(Ar.a)(n,[{key:"componentDidUpdate",value:function(e){var t=this.props.previewLink;t&&!e.previewLink&&this.setPreviewWindowLink(t)}},{key:"setPreviewWindowLink",value:function(e){var t=this.previewWindow;t&&!t.closed&&(t.location=e,this.buttonRef.current&&this.buttonRef.current.focus())}},{key:"getWindowTarget",value:function(){var e=this.props.postId;return"wp-preview-".concat(e)}},{key:"openPreviewWindow",value:function(e){var t,n;(e.preventDefault(),this.previewWindow&&!this.previewWindow.closed||(this.previewWindow=window.open("",this.getWindowTarget())),this.previewWindow.focus(),this.props.isAutosaveable)?(this.props.isDraft?this.props.savePost({isPreview:!0}):this.props.autosave({isPreview:!0}),t=this.previewWindow.document,n=Object(p.renderToString)(Object(p.createElement)("div",{className:"editor-post-preview-button__interstitial-message"},Object(p.createElement)(oo.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 96 96"},Object(p.createElement)(oo.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"}),Object(p.createElement)(oo.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"})),Object(p.createElement)("p",null,Object(cn.__)("Generating preview…")))),n+='\n\t\t\n\t',n=Object(v.applyFilters)("editor.PostPreview.interstitialMarkup",n),t.write(n),t.title=Object(cn.__)("Generating preview…"),t.close()):this.setPreviewWindowLink(e.target.href)}},{key:"render",value:function(){var e=this.props,t=e.previewLink,n=e.currentPostLink,r=e.isSaveable,o=e.role,i=t||n,c=Mr()({"editor-post-preview":!this.props.className},this.props.className);return Object(p.createElement)(oo.Button,{isTertiary:!this.props.className,className:c,href:i,target:this.getWindowTarget(),disabled:!r,onClick:this.openPreviewWindow,ref:this.buttonRef,role:o},this.props.textContent?this.props.textContent:Object(p.createElement)(p.Fragment,null,Object(cn._x)("Preview","imperative verb"),Object(p.createElement)(oo.VisuallyHidden,{as:"span"},Object(cn.__)("(opens in a new tab)"))))}}]),n}(p.Component),di=Object(m.compose)([Object(h.withSelect)((function(e,t){var n=t.forcePreviewLink,r=t.forceIsAutosaveable,o=e("core/editor"),i=o.getCurrentPostId,c=o.getCurrentPostAttribute,a=o.getEditedPostAttribute,s=o.isEditedPostSaveable,u=o.isEditedPostAutosaveable,l=o.getEditedPostPreviewLink,d=e("core").getPostType,p=l(),f=d(a("type"));return{postId:i(),currentPostLink:c("link"),previewLink:void 0!==n?n:p,isSaveable:s(),isAutosaveable:r||u(),isViewable:Object(b.get)(f,["viewable"],!1),isDraft:-1!==["draft","auto-draft"].indexOf(a("status"))}})),Object(h.withDispatch)((function(e){return{autosave:e("core/editor").autosave,savePost:e("core/editor").savePost}})),Object(m.ifCondition)((function(e){return e.isViewable}))])(li);function pi(){var e="core/editor/post-locked-modal-"+Object(m.useInstanceId)(pi),t=Object(h.useDispatch)("core/editor"),n=t.autosave,r=t.updatePostLock,o=Object(h.useSelect)((function(e){var t=e("core/editor"),n=t.isPostLocked,r=t.isPostLockTakeover,o=t.getPostLockUser,i=t.getCurrentPostId,c=t.getActivePostLock,a=t.getEditedPostAttribute,s=t.getEditorSettings,u=e("core").getPostType;return{isLocked:n(),isTakeover:r(),user:o(),postId:i(),postLockUtils:s().postLockUtils,activePostLock:c(),postType:u(a("type"))}})),i=o.isLocked,c=o.isTakeover,a=o.user,s=o.postId,u=o.postLockUtils,l=o.activePostLock,d=o.postType;if(Object(p.useEffect)((function(){function t(){if(!i&&l){var e=new window.FormData;if(e.append("action","wp-remove-post-lock"),e.append("_wpnonce",u.unlockNonce),e.append("post_ID",s),e.append("active_post_lock",l),window.navigator.sendBeacon)window.navigator.sendBeacon(u.ajaxUrl,e);else{var t=new window.XMLHttpRequest;t.open("POST",u.ajaxUrl,!1),t.send(e)}}}return Object(v.addAction)("heartbeat.send",e,(function(e){i||(e["wp-refresh-post-lock"]={lock:l,post_id:s})})),Object(v.addAction)("heartbeat.tick",e,(function(e){if(e["wp-refresh-post-lock"]){var t=e["wp-refresh-post-lock"];t.lock_error?(n(),r({isLocked:!0,isTakeover:!0,user:{avatar:t.lock_error.avatar_src}})):t.new_lock&&r({isLocked:!1,activePostLock:t.new_lock})}})),window.addEventListener("beforeunload",t),function(){Object(v.removeAction)("heartbeat.send",e),Object(v.removeAction)("heartbeat.tick",e),window.removeEventListener("beforeunload",t)}}),[]),!i)return null;var f=a.name,O=a.avatar,g=Object(N.addQueryArgs)("post.php",{"get-post-lock":"1",lockKey:!0,post:s,action:"edit",_wpnonce:u.nonce}),j=H("edit.php",{post_type:Object(b.get)(d,["slug"])}),y=Object(cn.__)("Exit the Editor");return Object(p.createElement)(oo.Modal,{title:c?Object(cn.__)("Someone else has taken over this post."):Object(cn.__)("This post is already being edited."),focusOnMount:!0,shouldCloseOnClickOutside:!1,shouldCloseOnEsc:!1,isDismissible:!1,className:"editor-post-locked-modal"},!!O&&Object(p.createElement)("img",{src:O,alt:Object(cn.__)("Avatar"),className:"editor-post-locked-modal__avatar"}),!!c&&Object(p.createElement)("div",null,Object(p.createElement)("div",null,f?Object(cn.sprintf)(Object(cn.__)("%s now has editing control of this post. Don’t worry, your changes up to this moment have been saved."),f):Object(cn.__)("Another user now has editing control of this post. Don’t worry, your changes up to this moment have been saved.")),Object(p.createElement)("div",{className:"editor-post-locked-modal__buttons"},Object(p.createElement)(oo.Button,{isPrimary:!0,href:j},y))),!c&&Object(p.createElement)("div",null,Object(p.createElement)("div",null,f?Object(cn.sprintf)(Object(cn.__)("%s is currently working on this post, which means you cannot make changes, unless you take over."),f):Object(cn.__)("Another user is currently working on this post, which means you cannot make changes, unless you take over.")),Object(p.createElement)("div",{className:"editor-post-locked-modal__buttons"},Object(p.createElement)(oo.Button,{isSecondary:!0,href:j},y),Object(p.createElement)(di,null),Object(p.createElement)(oo.Button,{isPrimary:!0,href:g},Object(cn.__)("Take Over")))))}var bi=Object(m.compose)(Object(h.withSelect)((function(e){var t=e("core/editor"),n=t.isCurrentPostPublished,r=t.getCurrentPostType,o=t.getCurrentPost;return{hasPublishAction:Object(b.get)(o(),["_links","wp:action-publish"],!1),isPublished:n(),postType:r()}})))((function(e){var t=e.hasPublishAction,n=e.isPublished,r=e.children;return n||!t?null:r}));var fi=Object(m.compose)(Object(h.withSelect)((function(e){return{status:e("core/editor").getEditedPostAttribute("status")}})),Object(h.withDispatch)((function(e){return{onUpdateStatus:function(t){e("core/editor").editPost({status:t})}}})))((function(e){var t=e.status,n=e.onUpdateStatus;return Object(p.createElement)(bi,null,Object(p.createElement)(oo.CheckboxControl,{label:Object(cn.__)("Pending review"),checked:"pending"===t,onChange:function(){n("pending"===t?"draft":"pending")}}))}));var hi=Object(m.compose)([Object(h.withSelect)((function(e){return{pingStatus:e("core/editor").getEditedPostAttribute("ping_status")}})),Object(h.withDispatch)((function(e){return{editPost:e("core/editor").editPost}}))])((function(e){var t=e.pingStatus,n=void 0===t?"open":t,r=Object(d.a)(e,["pingStatus"]);return Object(p.createElement)(oo.CheckboxControl,{label:Object(cn.__)("Allow pingbacks & trackbacks"),checked:"open"===n,onChange:function(){return r.editPost({ping_status:"open"===n?"closed":"open"})}})}));var mi=Object(m.compose)([Object(h.withSelect)((function(e,t){var n=t.forceIsSaving,r=e("core/editor"),o=r.isCurrentPostPublished,i=r.isEditedPostBeingScheduled,c=r.isSavingPost,a=r.isPublishingPost,s=r.getCurrentPost,u=r.getCurrentPostType,l=r.isAutosavingPost;return{isPublished:o(),isBeingScheduled:i(),isSaving:n||c(),isPublishing:a(),hasPublishAction:Object(b.get)(s(),["_links","wp:action-publish"],!1),postType:u(),isAutosaving:l()}}))])((function(e){var t=e.isPublished,n=e.isBeingScheduled,r=e.isSaving,o=e.isPublishing,i=e.hasPublishAction,c=e.isAutosaving,a=e.hasNonPostEntityChanges;return o?Object(cn.__)("Publishing…"):t&&r&&!c?Object(cn.__)("Updating…"):n&&r&&!c?Object(cn.__)("Scheduling…"):i?t?a?Object(cn.__)("Update…"):Object(cn.__)("Update"):n?a?Object(cn.__)("Schedule…"):Object(cn.__)("Schedule"):Object(cn.__)("Publish"):a?Object(cn.__)("Submit for Review…"):Object(cn.__)("Submit for Review")}));function vi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Dr.a)(e);if(t){var o=Object(Dr.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Rr.a)(this,n)}}var Oi=function(e){Object(Ir.a)(n,e);var t=vi(n);function n(e){var r;return Object(Br.a)(this,n),(r=t.call(this,e)).buttonNode=Object(p.createRef)(),r.createOnClick=r.createOnClick.bind(Object(wo.a)(r)),r.closeEntitiesSavedStates=r.closeEntitiesSavedStates.bind(Object(wo.a)(r)),r.state={entitiesSavedStatesCallback:!1},r}return Object(Ar.a)(n,[{key:"componentDidMount",value:function(){this.props.focusOnMount&&this.buttonNode.current.focus()}},{key:"createOnClick",value:function(e){var t=this;return function(){for(var n=arguments.length,r=new Array(n),o=0;o1&&void 0!==arguments[1]?arguments[1]:"";r({status:e,password:t})}}})),m.withInstanceId])(wi);var Si=Object(h.withSelect)((function(e){return{visibility:e("core/editor").getEditedPostVisibility()}}))((function(e){var t=e.visibility;return Object(b.find)(yi,{value:t}).label}));var ki=Object(m.compose)([Object(h.withSelect)((function(e){return{date:e("core/editor").getEditedPostAttribute("date")}})),Object(h.withDispatch)((function(e){return{onUpdateDate:function(t){e("core/editor").editPost({date:t})}}}))])((function(e){var t=e.date,n=e.onUpdateDate,r=Object(p.useRef)(),o=Object(D.__experimentalGetSettings)(),i=/a(?!\\)/i.test(o.formats.time.toLowerCase().replace(/\\\\/g,"").split("").reverse().join(""));return Object(p.createElement)(oo.DateTimePicker,{ref:r,currentDate:t,onChange:function(e){n(e),r.current.ownerDocument.activeElement.blur()},is12Hour:i})}));var Ei=Object(h.withSelect)((function(e){return{date:e("core/editor").getEditedPostAttribute("date"),isFloating:e("core/editor").isEditedPostDateFloating()}}))((function(e){var t=e.date,n=e.isFloating,r=Object(D.__experimentalGetSettings)();return t&&!n?Object(D.format)("".concat(r.formats.date," ").concat(r.formats.time),t):Object(cn.__)("Immediately")}));function Ti(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Dr.a)(e);if(t){var o=Object(Dr.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Rr.a)(this,n)}}function Ci(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xi(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},n=this.props.taxonomy,r=xi(xi({},Bi),t),o=_()({path:Object(N.addQueryArgs)("/wp/v2/".concat(n.rest_base),r)});return o.then(Di).then((function(t){e.setState((function(e){return{availableTerms:e.availableTerms.concat(t.filter((function(t){return!Object(b.find)(e.availableTerms,(function(e){return e.id===t.id}))})))}})),e.updateSelectedTerms(e.props.terms)})),o}},{key:"updateSelectedTerms",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=t.reduce((function(t,n){var r=Object(b.find)(e.state.availableTerms,(function(e){return e.id===n}));return r&&t.push(r.name),t}),[]);this.setState({selectedTerms:n})}},{key:"findOrCreateTerm",value:function(e){var t=this,n=this.props.taxonomy,r=Object(b.escape)(e);return _()({path:"/wp/v2/".concat(n.rest_base),method:"POST",data:{name:r}}).catch((function(o){return"term_exists"===o.code?(t.addRequest=_()({path:Object(N.addQueryArgs)("/wp/v2/".concat(n.rest_base),xi(xi({},Bi),{},{search:r}))}).then(Di),t.addRequest.then((function(t){return Object(b.find)(t,(function(t){return Ii(t.name,e)}))}))):Promise.reject(o)})).then(Ri)}},{key:"onChange",value:function(e){var t=this,n=Object(b.uniqBy)(e,(function(e){return e.toLowerCase()}));this.setState({selectedTerms:n});var r=n.filter((function(e){return!Object(b.find)(t.state.availableTerms,(function(t){return Ii(t.name,e)}))})),o=function(e,t){return e.map((function(e){return Object(b.find)(t,(function(t){return Ii(t.name,e)})).id}))};if(0===r.length)return this.props.onUpdateTerms(o(n,this.state.availableTerms),this.props.taxonomy.rest_base);Promise.all(r.map(this.findOrCreateTerm)).then((function(e){var r=t.state.availableTerms.concat(e);return t.setState({availableTerms:r}),t.props.onUpdateTerms(o(n,r),t.props.taxonomy.rest_base)}))}},{key:"searchTerms",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";Object(b.invoke)(this.searchRequest,["abort"]),e.length>=3&&(this.searchRequest=this.fetchTerms({search:e}))}},{key:"render",value:function(){var e=this.props,t=e.slug,n=e.taxonomy;if(!e.hasAssignAction)return null;var r=this.state,o=r.loading,i=r.availableTerms,c=r.selectedTerms,a=i.map((function(e){return e.name})),s=Object(b.get)(n,["labels","add_new_item"],"post_tag"===t?Object(cn.__)("Add new tag"):Object(cn.__)("Add new Term")),u=Object(b.get)(n,["labels","singular_name"],"post_tag"===t?Object(cn.__)("Tag"):Object(cn.__)("Term")),l=Object(cn.sprintf)(Object(cn._x)("%s added","term"),u),d=Object(cn.sprintf)(Object(cn._x)("%s removed","term"),u),f=Object(cn.sprintf)(Object(cn._x)("Remove %s","term"),u);return Object(p.createElement)(oo.FormTokenField,{value:c,suggestions:a,onChange:this.onChange,onInputChange:this.searchTerms,maxSuggestions:20,disabled:o,label:s,messages:{added:l,removed:d,remove:f}})}}]),n}(p.Component),Li=Object(m.compose)(Object(h.withSelect)((function(e,t){var n=t.slug,r=e("core/editor").getCurrentPost,o=(0,e("core").getTaxonomy)(n);return{hasCreateAction:!!o&&Object(b.get)(r(),["_links","wp:action-create-"+o.rest_base],!1),hasAssignAction:!!o&&Object(b.get)(r(),["_links","wp:action-assign-"+o.rest_base],!1),terms:o?e("core/editor").getEditedPostAttribute(o.rest_base):[],taxonomy:o}})),Object(h.withDispatch)((function(e){return{onUpdateTerms:function(t,n){e("core/editor").editPost(Object(u.a)({},n,t))}}})),Object(oo.withFilters)("editor.PostTaxonomyType"))(Ni);function Ui(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Dr.a)(e);if(t){var o=Object(Dr.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Rr.a)(this,n)}}var Fi=function(){var e=[Object(cn.__)("Suggestion:"),Object(p.createElement)("span",{className:"editor-post-publish-panel__link",key:"label"},Object(cn.__)("Add tags"))];return Object(p.createElement)(oo.PanelBody,{initialOpen:!1,title:e},Object(p.createElement)("p",null,Object(cn.__)("Tags help users and search engines navigate your site and find your content. Add a few keywords to describe your post.")),Object(p.createElement)(Li,{slug:"post_tag"}))},Mi=function(e){Object(Ir.a)(n,e);var t=Ui(n);function n(e){var r;return Object(Br.a)(this,n),(r=t.call(this,e)).state={hadTagsWhenOpeningThePanel:e.hasTags},r}return Object(Ar.a)(n,[{key:"render",value:function(){return this.state.hadTagsWhenOpeningThePanel?null:Object(p.createElement)(Fi,null)}}]),n}(p.Component),Vi=Object(m.compose)(Object(h.withSelect)((function(e){var t=e("core/editor").getCurrentPostType(),n=e("core").getTaxonomy("post_tag"),r=n&&e("core/editor").getEditedPostAttribute(n.rest_base);return{areTagsFetched:void 0!==n,isPostTypeSupported:n&&Object(b.some)(n.types,(function(e){return e===t})),hasTags:r&&r.length}})),Object(m.ifCondition)((function(e){var t=e.areTagsFetched;return e.isPostTypeSupported&&t})))(Mi),zi=function(e,t){var n=oi.filter((function(t){return Object(b.includes)(e,t.id)}));return Object(b.find)(n,(function(e){return e.id===t}))},Hi=function(e){var t=e.suggestedPostFormat,n=e.suggestionText,r=e.onUpdatePostFormat;return Object(p.createElement)(oo.Button,{isLink:!0,onClick:function(){return r(t)}},n)};function Wi(){var e=Object(h.useSelect)((function(e){var t=e("core/editor"),n=t.getEditedPostAttribute,r=t.getSuggestedPostFormat,o=Object(b.get)(e("core").getThemeSupports(),["formats"],[]);return{currentPostFormat:n("format"),suggestion:zi(o,r())}}),[]),t=e.currentPostFormat,n=e.suggestion,r=Object(h.useDispatch)("core/editor").editPost,o=[Object(cn.__)("Suggestion:"),Object(p.createElement)("span",{className:"editor-post-publish-panel__link",key:"label"},Object(cn.__)("Use a post format"))];return n&&n.id!==t?Object(p.createElement)(oo.PanelBody,{initialOpen:!1,title:o},Object(p.createElement)("p",null,Object(cn.__)("Your theme uses post formats to highlight different kinds of content, like images or videos. Apply a post format to see this special styling.")),Object(p.createElement)("p",null,Object(p.createElement)(Hi,{onUpdatePostFormat:function(e){return r({format:e})},suggestedPostFormat:n.id,suggestionText:Object(cn.sprintf)(Object(cn.__)('Apply the "%1$s" format.'),n.caption)}))):null}var Gi=Object(h.withSelect)((function(e){var t=e("core/editor"),n=t.getCurrentPost,r=t.isEditedPostBeingScheduled;return{hasPublishAction:Object(b.get)(n(),["_links","wp:action-publish"],!1),isBeingScheduled:r()}}))((function(e){var t,n,r=e.hasPublishAction,o=e.isBeingScheduled,i=e.children;return r?o?(t=Object(cn.__)("Are you ready to schedule?"),n=Object(cn.__)("Your work will be published at the specified date and time.")):(t=Object(cn.__)("Are you ready to publish?"),n=Object(cn.__)("Double-check your settings before publishing.")):(t=Object(cn.__)("Are you ready to submit for review?"),n=Object(cn.__)("When you’re ready, submit your work for review, and an Editor will be able to approve it for you.")),Object(p.createElement)("div",{className:"editor-post-publish-panel__prepublish"},Object(p.createElement)("div",null,Object(p.createElement)("strong",null,t)),Object(p.createElement)("p",null,n),r&&Object(p.createElement)(p.Fragment,null,Object(p.createElement)(oo.PanelBody,{initialOpen:!1,title:[Object(cn.__)("Visibility:"),Object(p.createElement)("span",{className:"editor-post-publish-panel__link",key:"label"},Object(p.createElement)(Si,null))]},Object(p.createElement)(Pi,null)),Object(p.createElement)(oo.PanelBody,{initialOpen:!1,title:[Object(cn.__)("Publish:"),Object(p.createElement)("span",{className:"editor-post-publish-panel__link",key:"label"},Object(p.createElement)(Ei,null))]},Object(p.createElement)(ki,null))),Object(p.createElement)(Wi,null),Object(p.createElement)(Vi,null),i)}));function qi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Dr.a)(e);if(t){var o=Object(Dr.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Rr.a)(this,n)}}var Ki=function(e){Object(Ir.a)(n,e);var t=qi(n);function n(){var e;return Object(Br.a)(this,n),(e=t.apply(this,arguments)).state={showCopyConfirmation:!1},e.onCopy=e.onCopy.bind(Object(wo.a)(e)),e.onSelectInput=e.onSelectInput.bind(Object(wo.a)(e)),e.postLink=Object(p.createRef)(),e}return Object(Ar.a)(n,[{key:"componentDidMount",value:function(){this.props.focusOnMount&&this.postLink.current.focus()}},{key:"componentWillUnmount",value:function(){clearTimeout(this.dismissCopyConfirmation)}},{key:"onCopy",value:function(){var e=this;this.setState({showCopyConfirmation:!0}),clearTimeout(this.dismissCopyConfirmation),this.dismissCopyConfirmation=setTimeout((function(){e.setState({showCopyConfirmation:!1})}),4e3)}},{key:"onSelectInput",value:function(e){e.target.select()}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.isScheduled,r=e.post,o=e.postType,i=Object(b.get)(o,["labels","singular_name"]),c=Object(b.get)(o,["labels","view_item"]),a="future"===r.status?function(e){var t=e.slug;return e.permalink_template.includes("%postname%")?e.permalink_template.replace("%postname%",t):e.permalink_template}(r):r.link,s=n?Object(p.createElement)(p.Fragment,null,Object(cn.__)("is now scheduled. It will go live on")," ",Object(p.createElement)(Ei,null),"."):Object(cn.__)("is now live.");return Object(p.createElement)("div",{className:"post-publish-panel__postpublish"},Object(p.createElement)(oo.PanelBody,{className:"post-publish-panel__postpublish-header"},Object(p.createElement)("a",{ref:this.postLink,href:a},Object(Vo.decodeEntities)(r.title)||Object(cn.__)("(no title)"))," ",s),Object(p.createElement)(oo.PanelBody,null,Object(p.createElement)("p",{className:"post-publish-panel__postpublish-subheader"},Object(p.createElement)("strong",null,Object(cn.__)("What’s next?"))),Object(p.createElement)(oo.TextControl,{className:"post-publish-panel__postpublish-post-address",readOnly:!0,label:Object(cn.sprintf)(Object(cn.__)("%s address"),i),value:Object(N.safeDecodeURIComponent)(a),onFocus:this.onSelectInput}),Object(p.createElement)("div",{className:"post-publish-panel__postpublish-buttons"},!n&&Object(p.createElement)(oo.Button,{isSecondary:!0,href:a},c),Object(p.createElement)(oo.ClipboardButton,{isSecondary:!0,text:a,onCopy:this.onCopy},this.state.showCopyConfirmation?Object(cn.__)("Copied!"):Object(cn.__)("Copy Link")))),t)}}]),n}(p.Component),Qi=Object(h.withSelect)((function(e){var t=e("core/editor"),n=t.getEditedPostAttribute,r=t.getCurrentPost,o=t.isCurrentPostScheduled,i=e("core").getPostType;return{post:r(),postType:i(n("type")),isScheduled:o()}}))(Ki);function $i(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Dr.a)(e);if(t){var o=Object(Dr.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Rr.a)(this,n)}}var Yi=function(e){Object(Ir.a)(n,e);var t=$i(n);function n(){var e;return Object(Br.a)(this,n),(e=t.apply(this,arguments)).onSubmit=e.onSubmit.bind(Object(wo.a)(e)),e}return Object(Ar.a)(n,[{key:"componentDidUpdate",value:function(e){e.isPublished&&!this.props.isSaving&&this.props.isDirty&&this.props.onClose()}},{key:"onSubmit",value:function(){var e=this.props,t=e.onClose,n=e.hasPublishAction,r=e.isPostTypeViewable;n&&r||t()}},{key:"render",value:function(){var e=this.props,t=e.forceIsDirty,n=e.forceIsSaving,r=e.isBeingScheduled,o=e.isPublished,i=e.isPublishSidebarEnabled,c=e.isScheduled,a=e.isSaving,u=e.onClose,l=e.onTogglePublishSidebar,f=e.PostPublishExtension,h=e.PrePublishExtension,m=Object(d.a)(e,["forceIsDirty","forceIsSaving","isBeingScheduled","isPublished","isPublishSidebarEnabled","isScheduled","isSaving","onClose","onTogglePublishSidebar","PostPublishExtension","PrePublishExtension"]),v=Object(b.omit)(m,["hasPublishAction","isDirty","isPostTypeViewable"]),O=o||c&&r,g=!O&&!a,j=O&&!a;return Object(p.createElement)("div",Object(s.a)({className:"editor-post-publish-panel"},v),Object(p.createElement)("div",{className:"editor-post-publish-panel__header"},j?Object(p.createElement)(oo.Button,{onClick:u,icon:ji.a,label:Object(cn.__)("Close panel")}):Object(p.createElement)(p.Fragment,null,Object(p.createElement)("div",{className:"editor-post-publish-panel__header-publish-button"},Object(p.createElement)(gi,{focusOnMount:!0,onSubmit:this.onSubmit,forceIsDirty:t,forceIsSaving:n})),Object(p.createElement)("div",{className:"editor-post-publish-panel__header-cancel-button"},Object(p.createElement)(oo.Button,{onClick:u,isSecondary:!0},Object(cn.__)("Cancel"))))),Object(p.createElement)("div",{className:"editor-post-publish-panel__content"},g&&Object(p.createElement)(Gi,null,h&&Object(p.createElement)(h,null)),j&&Object(p.createElement)(Qi,{focusOnMount:!0},f&&Object(p.createElement)(f,null)),a&&Object(p.createElement)(oo.Spinner,null)),Object(p.createElement)("div",{className:"editor-post-publish-panel__footer"},Object(p.createElement)(oo.CheckboxControl,{label:Object(cn.__)("Always show pre-publish checks."),checked:i,onChange:l})))}}]),n}(p.Component),Xi=Object(m.compose)([Object(h.withSelect)((function(e){var t=e("core").getPostType,n=e("core/editor"),r=n.getCurrentPost,o=n.getEditedPostAttribute,i=n.isCurrentPostPublished,c=n.isCurrentPostScheduled,a=n.isEditedPostBeingScheduled,s=n.isEditedPostDirty,u=n.isSavingPost,l=e("core/editor").isPublishSidebarEnabled,d=t(o("type"));return{hasPublishAction:Object(b.get)(r(),["_links","wp:action-publish"],!1),isPostTypeViewable:Object(b.get)(d,["viewable"],!1),isBeingScheduled:a(),isDirty:s(),isPublished:i(),isPublishSidebarEnabled:l(),isSaving:u(),isScheduled:c()}})),Object(h.withDispatch)((function(e,t){var n=t.isPublishSidebarEnabled,r=e("core/editor"),o=r.disablePublishSidebar,i=r.enablePublishSidebar;return{onTogglePublishSidebar:function(){n?o():i()}}})),oo.withFocusReturn,oo.withConstrainedTabbing])(Yi),Ji=n(138),Zi=Object(p.createElement)(co.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(p.createElement)(co.Path,{d:"M14.9 9c1.8.2 3.1 1.7 3.1 3.5 0 1.9-1.6 3.5-3.5 3.5h-10C2.6 16 1 14.4 1 12.5 1 10.7 2.3 9.3 4.1 9 4 8.9 4 8.7 4 8.5 4 7.1 5.1 6 6.5 6c.3 0 .7.1.9.2C8.1 4.9 9.4 4 11 4c2.2 0 4 1.8 4 4 0 .4-.1.7-.1 1z"})),ec=n(161),tc=Object(p.createElement)(co.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(p.createElement)(co.Path,{d:"M14.8 9c.1-.3.2-.6.2-1 0-2.2-1.8-4-4-4-1.5 0-2.9.9-3.5 2.2-.3-.1-.7-.2-1-.2C5.1 6 4 7.1 4 8.5c0 .2 0 .4.1.5-1.8.3-3.1 1.7-3.1 3.5C1 14.4 2.6 16 4.5 16H8v-3H5l4.5-4.5L14 13h-3v3h3.5c1.9 0 3.5-1.6 3.5-3.5 0-1.8-1.4-3.3-3.2-3.5z"}));var nc=Object(m.compose)([Object(h.withSelect)((function(e){var t=e("core/editor"),n=t.isSavingPost,r=t.isCurrentPostPublished,o=t.isCurrentPostScheduled;return{isSaving:n(),isPublished:r(),isScheduled:o()}})),Object(h.withDispatch)((function(e){var t=e("core/editor"),n=t.editPost,r=t.savePost;return{onClick:function(){n({status:"draft"}),r()}}}))])((function(e){var t=e.isSaving,n=e.isPublished,r=e.isScheduled,o=e.onClick,i=Object(m.useViewportMatch)("small","<");return n||r?Object(p.createElement)(oo.Button,{className:"editor-post-switch-to-draft",onClick:function(){var e;n?e=Object(cn.__)("Are you sure you want to unpublish this post?"):r&&(e=Object(cn.__)("Are you sure you want to unschedule this post?")),window.confirm(e)&&o()},disabled:t,isTertiary:!0},i?Object(cn.__)("Draft"):Object(cn.__)("Switch to draft")):null}));function rc(e){var t=e.forceIsDirty,n=e.forceIsSaving,r=e.showIconLabels,o=void 0!==r&&r,i=Object(p.useState)(!1),c=Object(l.a)(i,2),a=c[0],s=c[1],u=Object(m.useViewportMatch)("small"),d=Object(h.useSelect)((function(e){var r,o,i,c=e("core/editor"),a=c.isEditedPostNew,s=c.isCurrentPostPublished,u=c.isCurrentPostScheduled,l=c.isEditedPostDirty,d=c.isSavingPost,p=c.isEditedPostSaveable,b=c.getCurrentPost,f=c.isAutosavingPost,h=c.getEditedPostAttribute;return{isAutosaving:f(),isDirty:t||l(),isNew:a(),isPending:"pending"===h("status"),isPublished:s(),isSaving:n||d(),isSaveable:p(),isScheduled:u(),hasPublishAction:null!==(r=null===(o=b())||void 0===o||null===(i=o._links)||void 0===i?void 0:i["wp:action-publish"])&&void 0!==r&&r}}),[t,n]),b=d.isAutosaving,f=d.isDirty,v=d.isNew,O=d.isPending,g=d.isPublished,j=d.isSaveable,y=d.isSaving,_=d.isScheduled,w=d.hasPublishAction,P=Object(h.useDispatch)("core/editor").savePost,S=Object(m.usePrevious)(y);if(Object(p.useEffect)((function(){var e;return S&&!y&&(s(!0),e=setTimeout((function(){s(!1)}),1e3)),function(){return clearTimeout(e)}}),[y]),y){var k=Mr()("editor-post-saved-state","is-saving",Object(oo.__unstableGetAnimateClassName)({type:"loading"}),{"is-autosaving":b});return Object(p.createElement)("span",{className:k},Object(p.createElement)(Ji.a,{icon:Zi}),b?Object(cn.__)("Autosaving"):Object(cn.__)("Saving"))}if(g||_)return Object(p.createElement)(nc,null);if(!j)return null;if(a||!v&&!f)return Object(p.createElement)("span",{className:"editor-post-saved-state is-saved"},Object(p.createElement)(Ji.a,{icon:ec.a}),Object(cn.__)("Saved"));if(!w&&O)return null;var E=O?Object(cn.__)("Save as pending"):Object(cn.__)("Save draft"),T=Object(cn.__)("Save");return u?Object(p.createElement)(oo.Button,{className:"editor-post-save-draft",onClick:function(){return P()},shortcut:io.displayShortcut.primary("s"),isTertiary:!0},E):Object(p.createElement)(oo.Button,{className:"editor-post-save-draft",label:E,onClick:function(){return P()},shortcut:io.displayShortcut.primary("s"),icon:tc},o&&T)}var oc=Object(m.compose)([Object(h.withSelect)((function(e){var t=e("core/editor"),n=t.getCurrentPost,r=t.getCurrentPostType;return{hasPublishAction:Object(b.get)(n(),["_links","wp:action-publish"],!1),postType:r()}}))])((function(e){var t=e.hasPublishAction,n=e.children;return t?n:null}));function ic(e){var t=e.children;return Object(p.createElement)(Bo,{supportKeys:"slug"},t)}function cc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Dr.a)(e);if(t){var o=Object(Dr.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Rr.a)(this,n)}}var ac=function(e){Object(Ir.a)(n,e);var t=cc(n);function n(e){var r,o=e.postSlug,i=e.postTitle,c=e.postID;return Object(Br.a)(this,n),(r=t.apply(this,arguments)).state={editedSlug:Object(N.safeDecodeURIComponent)(o)||W(i)||c},r.setSlug=r.setSlug.bind(Object(wo.a)(r)),r}return Object(Ar.a)(n,[{key:"setSlug",value:function(e){var t=this.props,n=t.postSlug,r=t.onUpdateSlug,o=W(e.target.value);o!==n&&r(o)}},{key:"render",value:function(){var e=this,t=this.props.instanceId,n=this.state.editedSlug,r="editor-post-slug-"+t;return Object(p.createElement)(ic,null,Object(p.createElement)("label",{htmlFor:r},Object(cn.__)("Slug")),Object(p.createElement)("input",{type:"text",id:r,value:n,onChange:function(t){return e.setState({editedSlug:t.target.value})},onBlur:this.setSlug,className:"editor-post-slug__input"}))}}]),n}(p.Component),sc=Object(m.compose)([Object(h.withSelect)((function(e){var t=e("core/editor"),n=t.getCurrentPost,r=t.getEditedPostAttribute,o=n().id;return{postSlug:r("slug"),postTitle:r("title"),postID:o}})),Object(h.withDispatch)((function(e){var t=e("core/editor").editPost;return{onUpdateSlug:function(e){t({slug:e})}}})),m.withInstanceId])(ac);var uc=Object(m.compose)([Object(h.withSelect)((function(e){var t=e("core/editor").getCurrentPost();return{hasStickyAction:Object(b.get)(t,["_links","wp:action-sticky"],!1),postType:e("core/editor").getCurrentPostType()}}))])((function(e){var t=e.hasStickyAction,n=e.postType,r=e.children;return"post"===n&&t?r:null}));var lc=Object(m.compose)([Object(h.withSelect)((function(e){return{postSticky:e("core/editor").getEditedPostAttribute("sticky")}})),Object(h.withDispatch)((function(e){return{onUpdateSticky:function(t){e("core/editor").editPost({sticky:t})}}}))])((function(e){var t=e.onUpdateSticky,n=e.postSticky,r=void 0!==n&&n;return Object(p.createElement)(uc,null,Object(p.createElement)(oo.CheckboxControl,{label:Object(cn.__)("Stick to the top of the blog"),checked:r,onChange:function(){return t(!r)}}))}));function dc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pc(e){for(var t=1;t0)};return e.sort((function(e,t){var r=n(e),o=n(t);return r===o?0:r&&!o?-1:!r&&o?1:0})),e}},{key:"setFilterValue",value:function(e){var t=this.state.availableTermsTree,n=e.target.value,r=t.map(this.getFilterMatcher(n)).filter((function(e){return e}));this.setState({filterValue:n,filteredTermsTree:r});var o=function e(t){for(var n=0,r=0;r0&&(r.children=r.children.map(t).filter((function(e){return e}))),(-1!==r.name.toLowerCase().indexOf(e.toLowerCase())||r.children.length>0)&&r}}},{key:"renderTerms",value:function(e){var t=this,n=this.props.terms,r=void 0===n?[]:n;return e.map((function(e){return Object(p.createElement)("div",{key:e.id,className:"editor-post-taxonomies__hierarchical-terms-choice"},Object(p.createElement)(oo.CheckboxControl,{checked:-1!==r.indexOf(e.id),onChange:function(){var n=parseInt(e.id,10);t.onChange(n)},label:Object(b.unescape)(e.name)}),!!e.children.length&&Object(p.createElement)("div",{className:"editor-post-taxonomies__hierarchical-terms-subchoices"},t.renderTerms(e.children)))}))}},{key:"render",value:function(){var e=this.props,t=e.slug,n=e.taxonomy,r=e.instanceId,o=e.hasCreateAction;if(!e.hasAssignAction)return null;var i=this.state,c=i.availableTermsTree,a=i.availableTerms,s=i.filteredTermsTree,u=i.formName,l=i.formParent,d=i.loading,f=i.showForm,h=i.filterValue,m=function(e,r,o){return Object(b.get)(n,["labels",e],"category"===t?r:o)},v=m("add_new_item",Object(cn.__)("Add new category"),Object(cn.__)("Add new term")),O=m("new_item_name",Object(cn.__)("Add new category"),Object(cn.__)("Add new term")),g=m("parent_item",Object(cn.__)("Parent Category"),Object(cn.__)("Parent Term")),j="— ".concat(g," —"),y=v,_="editor-post-taxonomies__hierarchical-terms-input-".concat(r),w="editor-post-taxonomies__hierarchical-terms-filter-".concat(r),P=Object(b.get)(this.props.taxonomy,["labels","search_items"],Object(cn.__)("Search Terms")),S=Object(b.get)(this.props.taxonomy,["name"],Object(cn.__)("Terms")),k=a.length>=8;return[k&&Object(p.createElement)("label",{key:"filter-label",htmlFor:w},P),k&&Object(p.createElement)("input",{type:"search",id:w,value:h,onChange:this.setFilterValue,className:"editor-post-taxonomies__hierarchical-terms-filter",key:"term-filter-input"}),Object(p.createElement)("div",{className:"editor-post-taxonomies__hierarchical-terms-list",key:"term-list",tabIndex:"0",role:"group","aria-label":S},this.renderTerms(""!==h?s:c)),!d&&o&&Object(p.createElement)(oo.Button,{key:"term-add-button",onClick:this.onToggleForm,className:"editor-post-taxonomies__hierarchical-terms-add","aria-expanded":f,isLink:!0},v),f&&Object(p.createElement)("form",{onSubmit:this.onAddTerm,key:"hierarchical-terms-form"},Object(p.createElement)("label",{htmlFor:_,className:"editor-post-taxonomies__hierarchical-terms-label"},O),Object(p.createElement)("input",{type:"text",id:_,className:"editor-post-taxonomies__hierarchical-terms-input",value:u,onChange:this.onChangeFormName,required:!0}),!!a.length&&Object(p.createElement)(oo.TreeSelect,{label:g,noOptionLabel:j,onChange:this.onChangeFormParent,selectedId:l,tree:c}),Object(p.createElement)(oo.Button,{isSecondary:!0,type:"submit",className:"editor-post-taxonomies__hierarchical-terms-submit"},y))]}}]),n}(p.Component),mc=Object(m.compose)([Object(h.withSelect)((function(e,t){var n=t.slug,r=e("core/editor").getCurrentPost,o=(0,e("core").getTaxonomy)(n);return{hasCreateAction:!!o&&Object(b.get)(r(),["_links","wp:action-create-"+o.rest_base],!1),hasAssignAction:!!o&&Object(b.get)(r(),["_links","wp:action-assign-"+o.rest_base],!1),terms:o?e("core/editor").getEditedPostAttribute(o.rest_base):[],taxonomy:o}})),Object(h.withDispatch)((function(e){return{onUpdateTerms:function(t,n){e("core/editor").editPost(Object(u.a)({},n,t))}}})),oo.withSpokenMessages,m.withInstanceId,Object(oo.withFilters)("editor.PostTaxonomyType")])(hc);var vc=Object(m.compose)([Object(h.withSelect)((function(e){return{postType:e("core/editor").getCurrentPostType(),taxonomies:e("core").getTaxonomies({per_page:-1})}}))])((function(e){var t=e.postType,n=e.taxonomies,r=e.taxonomyWrapper,o=void 0===r?b.identity:r,i=Object(b.filter)(n,(function(e){return Object(b.includes)(e.types,t)}));return Object(b.filter)(i,(function(e){return e.visibility.show_ui})).map((function(e){var t=e.hierarchical?mc:Li;return Object(p.createElement)(p.Fragment,{key:"taxonomy-".concat(e.slug)},o(Object(p.createElement)(t,{slug:e.slug}),e))}))}));var Oc=Object(m.compose)([Object(h.withSelect)((function(e){return{postType:e("core/editor").getCurrentPostType(),taxonomies:e("core").getTaxonomies({per_page:-1})}}))])((function(e){var t=e.postType,n=e.taxonomies,r=e.children;return Object(b.some)(n,(function(e){return Object(b.includes)(e.types,t)}))?r:null})),gc=n(91),jc=n.n(gc);function yc(){var e=Object(h.useSelect)((function(e){return e("core/editor").getEditedPostContent()}),[]),t=Object(h.useDispatch)("core/editor"),n=t.editPost,r=t.resetEditorBlocks,o=Object(p.useState)(e),i=Object(l.a)(o,2),c=i[0],a=i[1],s=Object(p.useState)(!1),u=Object(l.a)(s,2),d=u[0],b=u[1],v=Object(m.useInstanceId)(yc);d||c===e||a(e);var O=function(){var e=Object(f.parse)(c);r(e)};Object(p.useEffect)((function(){var e=setTimeout(O,300);return function(){clearTimeout(e)}}),[c]);return Object(p.createElement)(p.Fragment,null,Object(p.createElement)(oo.VisuallyHidden,{as:"label",htmlFor:"post-content-".concat(v)},Object(cn.__)("Type text or HTML")),Object(p.createElement)(jc.a,{autoComplete:"off",dir:"auto",value:c,onChange:function(e){var t=e.target.value;n({content:t}),a(t),b(!0)},onBlur:function(){d&&(O(),b(!1))},className:"editor-post-text-editor",id:"post-content-".concat(v),placeholder:Object(cn.__)("Start writing with text or HTML")}))}var _c=/[\r\n]+/g;function wc(){var e=Object(m.useInstanceId)(wc),t=Object(p.useRef)(),n=Object(p.useState)(!1),r=Object(l.a)(n,2),o=r[0],i=r[1],c=Object(h.useDispatch)("core/editor").editPost,a=Object(h.useDispatch)("core/block-editor"),s=a.insertDefaultBlock,u=a.clearSelectedBlock,d=a.insertBlocks,b=Object(h.useSelect)((function(e){var t=e("core/editor"),n=t.getEditedPostAttribute,r=t.isCleanNewPost,o=(0,e("core/block-editor").getSettings)(),i=o.titlePlaceholder,c=o.focusMode,a=o.hasFixedToolbar;return{isCleanNewPost:r(),title:n("title"),placeholder:i,isFocusMode:c,hasFixedToolbar:a}})),v=b.isCleanNewPost,O=b.title,g=b.placeholder,j=b.isFocusMode,y=b.hasFixedToolbar;function _(e){d(e,0)}function w(e){c({title:e})}function P(){i(!1)}Object(p.useEffect)((function(){var e=t.current.ownerDocument,n=e.activeElement,r=e.body;!v||n&&r!==n||t.current.focus()}),[v]);var S=Mr()("wp-block editor-post-title editor-post-title__block",{"is-selected":o,"is-focus-mode":j,"has-fixed-toolbar":y}),k=Object(Vo.decodeEntities)(g);return Object(p.createElement)(Bo,{supportKeys:"title"},Object(p.createElement)("div",{className:S},Object(p.createElement)(oo.VisuallyHidden,{as:"label",htmlFor:"post-title-".concat(e)},k||Object(cn.__)("Add title")),Object(p.createElement)(jc.a,{ref:t,id:"post-title-".concat(e),className:"editor-post-title__input",value:O,onChange:function(e){w(e.target.value.replace(_c," "))},placeholder:k||Object(cn.__)("Add title"),onFocus:function(){i(!0),u()},onBlur:P,onKeyDown:function(e){e.keyCode===io.ENTER&&(e.preventDefault(),s(void 0,void 0,0))},onKeyPress:P,onPaste:function(e){var t=e.clipboardData,n="",r="";try{n=t.getData("text/plain"),r=t.getData("text/html")}catch(e){try{r=t.getData("Text")}catch(e){return}}window.console.log("Received HTML:\n\n",r),window.console.log("Received plain text:\n\n",n);var o=Object(f.pasteHandler)({HTML:r,plainText:n});if("string"!=typeof o&&o.length){e.preventDefault();var i=Object(l.a)(o,1)[0];O||"core/heading"!==i.name&&"core/paragraph"!==i.name?_(o):(w(i.attributes.content),_(o.slice(1)))}}})))}var Pc=Object(m.compose)([Object(h.withSelect)((function(e){var t=e("core/editor"),n=t.isEditedPostNew,r=t.getCurrentPostId,o=t.getCurrentPostType;return{isNew:n(),postId:r(),postType:o()}})),Object(h.withDispatch)((function(e){return{trashPost:e("core/editor").trashPost}}))])((function(e){var t=e.isNew,n=e.postId,r=e.postType,o=Object(d.a)(e,["isNew","postId","postType"]);return t||!n?null:Object(p.createElement)(oo.Button,{className:"editor-post-trash",isDestructive:!0,isTertiary:!0,onClick:function(){return o.trashPost(n,r)}},Object(cn.__)("Move to trash"))}));var Sc=Object(h.withSelect)((function(e){var t=e("core/editor"),n=t.isEditedPostNew,r=t.getCurrentPostId,o=t.getCurrentPostType,i=e("core"),c=i.getPostType,a=i.canUser,s=r(),u=c(o()),l=(null==u?void 0:u.rest_base)||"";return{isNew:n(),postId:s,canUserDelete:!(!s||!l)&&a("delete",l,s)}}))((function(e){var t=e.isNew,n=e.postId,r=e.canUserDelete,o=e.children;return!t&&n&&r?o:null}));var kc=Object(m.compose)([Object(h.withSelect)((function(e){var t=e("core/editor"),n=t.getCurrentPost,r=t.getCurrentPostType;return{hasPublishAction:Object(b.get)(n(),["_links","wp:action-publish"],!1),postType:r()}}))])((function(e){var t=e.hasPublishAction;return(0,e.render)({canEdit:t})})),Ec=Object(p.createElement)(co.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(p.createElement)(co.Path,{d:"M12 3.2c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8 0-4.8-4-8.8-8.8-8.8zm0 16c-4 0-7.2-3.3-7.2-7.2C4.8 8 8 4.8 12 4.8s7.2 3.3 7.2 7.2c0 4-3.2 7.2-7.2 7.2zM11 17h2v-6h-2v6zm0-8h2V7h-2v2z"})),Tc=n(126);function Cc(){var e=Object(h.useSelect)((function(e){return e("core/editor").getEditedPostAttribute("content")})),t=Object(cn._x)("words","Word count type. Do not translate!");return Object(p.createElement)("span",{className:"word-count"},Object(Tc.count)(e,t))}function xc(){var e=Object(h.useSelect)((function(e){return e("core/editor").getEditedPostAttribute("content")}));return Object(Tc.count)(e,"characters_including_spaces")}var Bc=function(e){var t=e.hasOutlineItemsDisabled,n=e.onRequestClose,r=Object(h.useSelect)((function(e){var t=e("core/block-editor").getGlobalBlockCount;return{headingCount:t("core/heading"),paragraphCount:t("core/paragraph"),numberOfBlocks:t()}}),[]),o=r.headingCount,i=r.paragraphCount,c=r.numberOfBlocks;return Object(p.createElement)(p.Fragment,null,Object(p.createElement)("div",{className:"table-of-contents__wrapper",role:"note","aria-label":Object(cn.__)("Document Statistics"),tabIndex:"0"},Object(p.createElement)("ul",{role:"list",className:"table-of-contents__counts"},Object(p.createElement)("li",{className:"table-of-contents__count"},Object(cn.__)("Characters"),Object(p.createElement)("span",{className:"table-of-contents__number"},Object(p.createElement)(xc,null))),Object(p.createElement)("li",{className:"table-of-contents__count"},Object(cn.__)("Words"),Object(p.createElement)(Cc,null)),Object(p.createElement)("li",{className:"table-of-contents__count"},Object(cn.__)("Headings"),Object(p.createElement)("span",{className:"table-of-contents__number"},o)),Object(p.createElement)("li",{className:"table-of-contents__count"},Object(cn.__)("Paragraphs"),Object(p.createElement)("span",{className:"table-of-contents__number"},i)),Object(p.createElement)("li",{className:"table-of-contents__count"},Object(cn.__)("Blocks"),Object(p.createElement)("span",{className:"table-of-contents__number"},c)))),o>0&&Object(p.createElement)(p.Fragment,null,Object(p.createElement)("hr",null),Object(p.createElement)("h2",{className:"table-of-contents__title"},Object(cn.__)("Document Outline")),Object(p.createElement)($r,{onSelect:n,hasOutlineItemsDisabled:t})))};var Ac=Object(p.forwardRef)((function(e,t){var n=e.hasOutlineItemsDisabled,r=e.repositionDropdown,o=Object(d.a)(e,["hasOutlineItemsDisabled","repositionDropdown"]),i=Object(h.useSelect)((function(e){return!!e("core/block-editor").getBlockCount()}),[]);return Object(p.createElement)(oo.Dropdown,{position:r?"middle right right":"bottom",className:"table-of-contents",contentClassName:"table-of-contents__popover",renderToggle:function(e){var n=e.isOpen,r=e.onToggle;return Object(p.createElement)(oo.Button,Object(s.a)({},o,{ref:t,onClick:i?r:void 0,icon:Ec,"aria-expanded":n,"aria-haspopup":"true",label:Object(cn.__)("Details"),tooltipPosition:"bottom","aria-disabled":!i}))},renderContent:function(e){var t=e.onClose;return Object(p.createElement)(Bc,{onRequestClose:t,hasOutlineItemsDisabled:n})}})}));function Ic(){var e=Object(h.useSelect)((function(e){return function(){return(0,e("core").__experimentalGetDirtyEntityRecords)().length>0}}),[]),t=function(t){if(e())return t.returnValue=Object(cn.__)("You have unsaved changes. If you proceed, they will be lost."),t.returnValue};return Object(p.useEffect)((function(){return window.addEventListener("beforeunload",t),function(){window.removeEventListener("beforeunload",t)}}),[]),null}var Rc=n(146),Dc=Object(m.createHigherOrderComponent)((function(e){return Object(h.withRegistry)((function(t){var n=t.useSubRegistry,r=void 0===n||n,o=t.registry,c=Object(d.a)(t,["useSubRegistry","registry"]);if(!r)return Object(p.createElement)(e,c);var a=Object(p.useState)(null),s=Object(l.a)(a,2),u=s[0],b=s[1];return Object(p.useEffect)((function(){var e=Object(h.createRegistry)({"core/block-editor":i.storeConfig},o);e.registerStore("core/editor",Cr),b(e)}),[o]),u?Object(p.createElement)(h.RegistryProvider,{value:u},Object(p.createElement)(e,c)):null}))}),"withRegistryProvider"),Nc=n(47),Lc=n(154);function Uc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fc(e){for(var t=1;t1&&void 0!==f[1]?f[1]:{},r=n.isInitialSuggestions,o=n.type,i=n.subtype,c=n.page,a=n.perPage,s=f.length>2&&void 0!==f[2]?f[2]:{},u=s.disablePostFormats,l=void 0!==u&&u,d=a||r?3:20,p=[],o&&"post"!==o||p.push(_()({path:Object(N.addQueryArgs)("/wp/v2/search",{search:t,page:c,per_page:d,type:"post",subtype:i})}).catch((function(){return[]}))),o&&"term"!==o||p.push(_()({path:Object(N.addQueryArgs)("/wp/v2/search",{search:t,page:c,per_page:d,type:"term",subtype:i})}).catch((function(){return[]}))),l||o&&"post-format"!==o||p.push(_()({path:Object(N.addQueryArgs)("/wp/v2/search",{search:t,page:c,per_page:d,type:"post-format",subtype:i})}).catch((function(){return[]}))),e.abrupt("return",Promise.all(p).then((function(e){return Object(b.map)(Object(b.flatten)(e).filter((function(e){return!!e.id})).slice(0,d),(function(e){return{id:e.id,url:e.url,title:Object(Vo.decodeEntities)(e.title)||Object(cn.__)("(no title)"),type:e.subtype||e.type}}))})));case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();var Wc=function(e,t){var n=Object(h.useSelect)((function(e){var t=e(xr),n=t.canUserUseUnfilteredHTML,r=t.isPostTitleSelected,o=e(c.store).canUser;return{canUseUnfilteredHTML:n(),reusableBlocks:e("core").getEntityRecords("postType","wp_block",{per_page:p.Platform.select({web:-1,native:100})}),hasUploadPermissions:Object(b.defaultTo)(o("create","media"),!0),isTitleSelected:r&&r()}}),[]),r=n.reusableBlocks,o=n.hasUploadPermissions,i=n.canUseUnfilteredHTML,a=n.isTitleSelected,s=Object(h.useDispatch)(xr).undo;return Object(p.useMemo)((function(){return zc(zc({},Object(b.pick)(e,["__experimentalBlockDirectory","__experimentalBlockPatterns","__experimentalBlockPatternCategories","__experimentalFeatures","__experimentalGlobalStylesUserEntityId","__experimentalGlobalStylesBaseStyles","__experimentalPreferredStyleVariations","__experimentalSetIsInserterOpened","alignWide","allowedBlockTypes","availableLegacyWidgets","bodyPlaceholder","codeEditingEnabled","colors","disableCustomColors","disableCustomFontSizes","disableCustomGradients","enableCustomUnits","enableCustomLineHeight","focusMode","fontSizes","gradients","hasFixedToolbar","hasReducedUI","imageEditing","imageSizes","imageDimensions","isRTL","keepCaretInsideBlock","maxWidth","onUpdateDefaultBlockStyles","styles","template","templateLock","titlePlaceholder"])),{},{mediaUpload:o?Mc:void 0,__experimentalReusableBlocks:r,__experimentalFetchLinkSuggestions:Object(b.partialRight)(Hc,e),__experimentalCanUserUseUnfilteredHTML:i,__experimentalUndo:s,__experimentalShouldInsertAtTheTop:a,outlineMode:t})}),[e,o,r,i,s,a,t])};var Gc=Dc((function(e){var t=e.__unstableTemplate,n=e.post,r=e.settings,o=e.recovery,a=e.initialEdits,s=e.children,u=Object(p.useMemo)((function(){return"wp_template"===n.type?{}:{postId:n.id,postType:n.type}}),[n.id,n.type]),d=Object(h.useSelect)((function(e){var t=e(xr),n=t.getEditorSelectionStart,r=t.getEditorSelectionEnd;return{isReady:(0,t.__unstableIsEditorReady)(),selectionStart:n(),selectionEnd:r()}}),[]),b=d.selectionEnd,f=d.selectionStart,m=d.isReady,v=null!=t?t:n,O=v.id,g=v.type,j=Object(c.useEntityBlockEditor)("postType",g,{id:O}),y=Object(l.a)(j,3),_=y[0],w=y[1],P=y[2],S=Wc(r,!!t),k=Object(h.useDispatch)(xr),E=k.updatePostLock,T=k.setupEditor,C=k.updateEditorSettings,x=k.__experimentalTearDownEditor,B=Object(h.useDispatch)(on.store).createWarningNotice;return Object(p.useLayoutEffect)((function(){if(!o)return E(r.postLock),T(n,a,r.template),r.autosave&&B(Object(cn.__)("There is an autosave of this post that is more recent than the version below."),{id:"autosave-exists",actions:[{label:Object(cn.__)("View the autosave"),url:r.autosave.editLink}]}),function(){x()}}),[]),Object(p.useEffect)((function(){C(r)}),[r]),m?Object(p.createElement)(c.EntityProvider,{kind:"root",type:"site"},Object(p.createElement)(c.EntityProvider,{kind:"postType",type:n.type,id:n.id},Object(p.createElement)(i.BlockContextProvider,{value:u},Object(p.createElement)(i.BlockEditorProvider,{value:_,onChange:P,onInput:w,selectionStart:f,selectionEnd:b,settings:S,useSubRegistry:!1},s,Object(p.createElement)(Rc.ReusableBlocksMenuItems,null))))):null})),qc=n(80),Kc=n.n(qc);function Qc(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=Object(p.forwardRef)((function(n,r){return U()("wp.editor."+e,{alternative:"wp.blockEditor."+e}),Object(p.createElement)(t,Object(s.a)({ref:r},n))}));return n.forEach((function(n){r[n]=Qc(e+"."+n,t[n])})),r}function $c(e,t){return function(){return U()("wp.editor."+e,{alternative:"wp.blockEditor."+e}),t.apply(void 0,arguments)}}var Yc=Qc("RichText",i.RichText,["Content"]);Yc.isEmpty=$c("RichText.isEmpty",i.RichText.isEmpty);var Xc=Qc("Autocomplete",i.Autocomplete),Jc=Qc("AlignmentToolbar",i.AlignmentToolbar),Zc=Qc("BlockAlignmentToolbar",i.BlockAlignmentToolbar),ea=Qc("BlockControls",i.BlockControls,["Slot"]),ta=Qc("BlockEdit",i.BlockEdit),na=Qc("BlockEditorKeyboardShortcuts",i.BlockEditorKeyboardShortcuts),ra=Qc("BlockFormatControls",i.BlockFormatControls,["Slot"]),oa=Qc("BlockIcon",i.BlockIcon),ia=Qc("BlockInspector",i.BlockInspector),ca=Qc("BlockList",i.BlockList),aa=Qc("BlockMover",i.BlockMover),sa=Qc("BlockNavigationDropdown",i.BlockNavigationDropdown),ua=Qc("BlockSelectionClearer",i.BlockSelectionClearer),la=Qc("BlockSettingsMenu",i.BlockSettingsMenu),da=Qc("BlockTitle",i.BlockTitle),pa=Qc("BlockToolbar",i.BlockToolbar),ba=Qc("ColorPalette",i.ColorPalette),fa=Qc("ContrastChecker",i.ContrastChecker),ha=Qc("CopyHandler",i.CopyHandler),ma=Qc("DefaultBlockAppender",i.DefaultBlockAppender),va=Qc("FontSizePicker",i.FontSizePicker),Oa=Qc("Inserter",i.Inserter),ga=Qc("InnerBlocks",i.InnerBlocks,["ButtonBlockAppender","DefaultBlockAppender","Content"]),ja=Qc("InspectorAdvancedControls",i.InspectorAdvancedControls,["Slot"]),ya=Qc("InspectorControls",i.InspectorControls,["Slot"]),_a=Qc("PanelColorSettings",i.PanelColorSettings),wa=Qc("PlainText",i.PlainText),Pa=Qc("RichTextShortcut",i.RichTextShortcut),Sa=Qc("RichTextToolbarButton",i.RichTextToolbarButton),ka=Qc("__unstableRichTextInputEvent",i.__unstableRichTextInputEvent),Ea=Qc("MediaPlaceholder",i.MediaPlaceholder),Ta=Qc("MediaUpload",i.MediaUpload),Ca=Qc("MediaUploadCheck",i.MediaUploadCheck),xa=Qc("MultiSelectScrollIntoView",i.MultiSelectScrollIntoView),Ba=Qc("NavigableToolbar",i.NavigableToolbar),Aa=Qc("ObserveTyping",i.ObserveTyping),Ia=Qc("PreserveScrollInReorder",i.PreserveScrollInReorder),Ra=Qc("SkipToSelectedBlock",i.SkipToSelectedBlock),Da=Qc("URLInput",i.URLInput),Na=Qc("URLInputButton",i.URLInputButton),La=Qc("URLPopover",i.URLPopover),Ua=Qc("Warning",i.Warning),Fa=Qc("WritingFlow",i.WritingFlow),Ma=$c("createCustomColorsHOC",i.createCustomColorsHOC),Va=$c("getColorClassName",i.getColorClassName),za=$c("getColorObjectByAttributeValues",i.getColorObjectByAttributeValues),Ha=$c("getColorObjectByColorValue",i.getColorObjectByColorValue),Wa=$c("getFontSize",i.getFontSize),Ga=$c("getFontSizeClass",i.getFontSizeClass),qa=$c("withColorContext",i.withColorContext),Ka=$c("withColors",i.withColors),Qa=$c("withFontSizes",i.withFontSizes)},46:function(e,t){e.exports=window.wp.keyboardShortcuts},47:function(e,t,n){"use strict";function r(e,t,n,r,o,i,c){try{var a=e[i](c),s=a.value}catch(e){return void n(e)}a.done?t(s):Promise.resolve(s).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(o,i){var c=e.apply(t,n);function a(e){r(c,o,i,a,s,"next",e)}function s(e){r(c,o,i,a,s,"throw",e)}a(void 0)}))}}n.d(t,"a",(function(){return o}))},49:function(e,t){e.exports=window.wp.dataControls},5:function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return r}))},50:function(e,t){e.exports=window.wp.apiFetch},51:function(e,t){e.exports=window.wp.notices},52:function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}n.d(t,"a",(function(){return r}))},57:function(e,t){e.exports=window.wp.coreData},6:function(e,t){e.exports=window.wp.blockEditor},64:function(e,t){e.exports=window.wp.htmlEntities},69:function(e,t){e.exports=window.wp.date},7:function(e,t){e.exports=window.wp.primitives},8:function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t-1},get:function(e){return r[n.indexOf(e)]},set:function(e,t){-1===n.indexOf(e)&&(n.push(e),r.push(t))},delete:function(e){var t=n.indexOf(e);t>-1&&(n.splice(t,1),r.splice(t,1))}}),i=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(e){i=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}function c(e){if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!o.has(e)){var t,n=null,r=null,c=null,a=function(){e.clientWidth!==r&&d()},s=function(t){window.removeEventListener("resize",a,!1),e.removeEventListener("input",d,!1),e.removeEventListener("keyup",d,!1),e.removeEventListener("autosize:destroy",s,!1),e.removeEventListener("autosize:update",d,!1),Object.keys(t).forEach((function(n){e.style[n]=t[n]})),o.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",s,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",d,!1),window.addEventListener("resize",a,!1),e.addEventListener("input",d,!1),e.addEventListener("autosize:update",d,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",o.set(e,{destroy:s,update:d}),"vertical"===(t=window.getComputedStyle(e,null)).resize?e.style.resize="none":"both"===t.resize&&(e.style.resize="horizontal"),n="content-box"===t.boxSizing?-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),isNaN(n)&&(n=0),d()}function u(t){var n=e.style.width;e.style.width="0px",e.offsetWidth,e.style.width=n,e.style.overflowY=t}function l(){if(0!==e.scrollHeight){var t=function(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push({node:e.parentNode,scrollTop:e.parentNode.scrollTop}),e=e.parentNode;return t}(e),o=document.documentElement&&document.documentElement.scrollTop;e.style.height="",e.style.height=e.scrollHeight+n+"px",r=e.clientWidth,t.forEach((function(e){e.node.scrollTop=e.scrollTop})),o&&(document.documentElement.scrollTop=o)}}function d(){l();var t=Math.round(parseFloat(e.style.height)),n=window.getComputedStyle(e,null),r="content-box"===n.boxSizing?Math.round(parseFloat(n.height)):e.offsetHeight;if(re.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}n.d(t,"a",(function(){return r}))},457:function(e,t,n){"use strict";n.r(t),n.d(t,"storeConfig",(function(){return Cr})),n.d(t,"store",(function(){return xr})),n.d(t,"userAutocompleter",(function(){return w})),n.d(t,"AutosaveMonitor",(function(){return Ur})),n.d(t,"DocumentOutline",(function(){return $r})),n.d(t,"DocumentOutlineCheck",(function(){return Yr})),n.d(t,"VisualEditorGlobalKeyboardShortcuts",(function(){return eo})),n.d(t,"EditorGlobalKeyboardShortcuts",(function(){return to})),n.d(t,"TextEditorGlobalKeyboardShortcuts",(function(){return no})),n.d(t,"EditorKeyboardShortcutsRegister",(function(){return ro})),n.d(t,"EditorHistoryRedo",(function(){return so})),n.d(t,"EditorHistoryUndo",(function(){return lo})),n.d(t,"EditorNotices",(function(){return bo})),n.d(t,"EntitiesSavedStates",(function(){return _o})),n.d(t,"ErrorBoundary",(function(){return So})),n.d(t,"LocalAutosaveMonitor",(function(){return Co})),n.d(t,"PageAttributesCheck",(function(){return xo})),n.d(t,"PageAttributesOrder",(function(){return Io})),n.d(t,"PageAttributesParent",(function(){return Uo})),n.d(t,"PageTemplate",(function(){return Fo})),n.d(t,"PostAuthor",(function(){return Ho})),n.d(t,"PostAuthorCheck",(function(){return Wo})),n.d(t,"PostComments",(function(){return Go})),n.d(t,"PostExcerpt",(function(){return qo})),n.d(t,"PostExcerptCheck",(function(){return Ko})),n.d(t,"PostFeaturedImage",(function(){return ni})),n.d(t,"PostFeaturedImageCheck",(function(){return $o})),n.d(t,"PostFormat",(function(){return ii})),n.d(t,"PostFormatCheck",(function(){return ri})),n.d(t,"PostLastRevision",(function(){return si})),n.d(t,"PostLastRevisionCheck",(function(){return ai})),n.d(t,"PostLockedModal",(function(){return pi})),n.d(t,"PostPendingStatus",(function(){return fi})),n.d(t,"PostPendingStatusCheck",(function(){return bi})),n.d(t,"PostPingbacks",(function(){return hi})),n.d(t,"PostPreviewButton",(function(){return di})),n.d(t,"PostPublishButton",(function(){return gi})),n.d(t,"PostPublishButtonLabel",(function(){return mi})),n.d(t,"PostPublishPanel",(function(){return Xi})),n.d(t,"PostSavedState",(function(){return rc})),n.d(t,"PostSchedule",(function(){return ki})),n.d(t,"PostScheduleCheck",(function(){return oc})),n.d(t,"PostScheduleLabel",(function(){return Ei})),n.d(t,"PostSlug",(function(){return sc})),n.d(t,"PostSlugCheck",(function(){return ic})),n.d(t,"PostSticky",(function(){return lc})),n.d(t,"PostStickyCheck",(function(){return uc})),n.d(t,"PostSwitchToDraftButton",(function(){return nc})),n.d(t,"PostTaxonomies",(function(){return vc})),n.d(t,"PostTaxonomiesCheck",(function(){return Oc})),n.d(t,"PostTextEditor",(function(){return yc})),n.d(t,"PostTitle",(function(){return wc})),n.d(t,"PostTrash",(function(){return Pc})),n.d(t,"PostTrashCheck",(function(){return Sc})),n.d(t,"PostTypeSupportCheck",(function(){return Bo})),n.d(t,"PostVisibility",(function(){return Pi})),n.d(t,"PostVisibilityLabel",(function(){return Si})),n.d(t,"PostVisibilityCheck",(function(){return kc})),n.d(t,"TableOfContents",(function(){return Ac})),n.d(t,"UnsavedChangesWarning",(function(){return Ic})),n.d(t,"WordCount",(function(){return Cc})),n.d(t,"EditorProvider",(function(){return Gc})),n.d(t,"ServerSideRender",(function(){return Kc.a})),n.d(t,"RichText",(function(){return Yc})),n.d(t,"Autocomplete",(function(){return Xc})),n.d(t,"AlignmentToolbar",(function(){return Jc})),n.d(t,"BlockAlignmentToolbar",(function(){return Zc})),n.d(t,"BlockControls",(function(){return ea})),n.d(t,"BlockEdit",(function(){return ta})),n.d(t,"BlockEditorKeyboardShortcuts",(function(){return na})),n.d(t,"BlockFormatControls",(function(){return ra})),n.d(t,"BlockIcon",(function(){return oa})),n.d(t,"BlockInspector",(function(){return ia})),n.d(t,"BlockList",(function(){return ca})),n.d(t,"BlockMover",(function(){return aa})),n.d(t,"BlockNavigationDropdown",(function(){return sa})),n.d(t,"BlockSelectionClearer",(function(){return ua})),n.d(t,"BlockSettingsMenu",(function(){return la})),n.d(t,"BlockTitle",(function(){return da})),n.d(t,"BlockToolbar",(function(){return pa})),n.d(t,"ColorPalette",(function(){return ba})),n.d(t,"ContrastChecker",(function(){return fa})),n.d(t,"CopyHandler",(function(){return ha})),n.d(t,"DefaultBlockAppender",(function(){return ma})),n.d(t,"FontSizePicker",(function(){return va})),n.d(t,"Inserter",(function(){return Oa})),n.d(t,"InnerBlocks",(function(){return ga})),n.d(t,"InspectorAdvancedControls",(function(){return ja})),n.d(t,"InspectorControls",(function(){return ya})),n.d(t,"PanelColorSettings",(function(){return _a})),n.d(t,"PlainText",(function(){return wa})),n.d(t,"RichTextShortcut",(function(){return Pa})),n.d(t,"RichTextToolbarButton",(function(){return Sa})),n.d(t,"__unstableRichTextInputEvent",(function(){return ka})),n.d(t,"MediaPlaceholder",(function(){return Ea})),n.d(t,"MediaUpload",(function(){return Ta})),n.d(t,"MediaUploadCheck",(function(){return Ca})),n.d(t,"MultiSelectScrollIntoView",(function(){return xa})),n.d(t,"NavigableToolbar",(function(){return Ba})),n.d(t,"ObserveTyping",(function(){return Aa})),n.d(t,"PreserveScrollInReorder",(function(){return Ia})),n.d(t,"SkipToSelectedBlock",(function(){return Ra})),n.d(t,"URLInput",(function(){return Da})),n.d(t,"URLInputButton",(function(){return Na})),n.d(t,"URLPopover",(function(){return La})),n.d(t,"Warning",(function(){return Ua})),n.d(t,"WritingFlow",(function(){return Fa})),n.d(t,"createCustomColorsHOC",(function(){return Ma})),n.d(t,"getColorClassName",(function(){return Va})),n.d(t,"getColorObjectByAttributeValues",(function(){return za})),n.d(t,"getColorObjectByColorValue",(function(){return Ha})),n.d(t,"getFontSize",(function(){return Wa})),n.d(t,"getFontSizeClass",(function(){return Ga})),n.d(t,"withColorContext",(function(){return qa})),n.d(t,"withColors",(function(){return Ka})),n.d(t,"withFontSizes",(function(){return Qa})),n.d(t,"mediaUpload",(function(){return Mc})),n.d(t,"cleanForSlug",(function(){return W})),n.d(t,"transformStyles",(function(){return i.transformStyles}));var r={};n.r(r),n.d(r,"hasEditorUndo",(function(){return $})),n.d(r,"hasEditorRedo",(function(){return Y})),n.d(r,"isEditedPostNew",(function(){return X})),n.d(r,"hasChangedContent",(function(){return J})),n.d(r,"isEditedPostDirty",(function(){return Z})),n.d(r,"hasNonPostEntityChanges",(function(){return ee})),n.d(r,"isCleanNewPost",(function(){return te})),n.d(r,"getCurrentPost",(function(){return ne})),n.d(r,"getCurrentPostType",(function(){return re})),n.d(r,"getCurrentPostId",(function(){return oe})),n.d(r,"getCurrentPostRevisionsCount",(function(){return ie})),n.d(r,"getCurrentPostLastRevisionId",(function(){return ce})),n.d(r,"getPostEdits",(function(){return ae})),n.d(r,"getReferenceByDistinctEdits",(function(){return se})),n.d(r,"getCurrentPostAttribute",(function(){return ue})),n.d(r,"getEditedPostAttribute",(function(){return le})),n.d(r,"getAutosaveAttribute",(function(){return de})),n.d(r,"getEditedPostVisibility",(function(){return pe})),n.d(r,"isCurrentPostPending",(function(){return be})),n.d(r,"isCurrentPostPublished",(function(){return fe})),n.d(r,"isCurrentPostScheduled",(function(){return he})),n.d(r,"isEditedPostPublishable",(function(){return me})),n.d(r,"isEditedPostSaveable",(function(){return ve})),n.d(r,"isEditedPostEmpty",(function(){return Oe})),n.d(r,"isEditedPostAutosaveable",(function(){return ge})),n.d(r,"getAutosave",(function(){return je})),n.d(r,"hasAutosave",(function(){return ye})),n.d(r,"isEditedPostBeingScheduled",(function(){return _e})),n.d(r,"isEditedPostDateFloating",(function(){return we})),n.d(r,"isSavingPost",(function(){return Pe})),n.d(r,"didPostSaveRequestSucceed",(function(){return Se})),n.d(r,"didPostSaveRequestFail",(function(){return ke})),n.d(r,"isAutosavingPost",(function(){return Ee})),n.d(r,"isPreviewingPost",(function(){return Te})),n.d(r,"getEditedPostPreviewLink",(function(){return Ce})),n.d(r,"getSuggestedPostFormat",(function(){return xe})),n.d(r,"getBlocksForSerialization",(function(){return Be})),n.d(r,"getEditedPostContent",(function(){return Ae})),n.d(r,"isPublishingPost",(function(){return Ie})),n.d(r,"isPermalinkEditable",(function(){return Re})),n.d(r,"getPermalink",(function(){return De})),n.d(r,"getEditedPostSlug",(function(){return Ne})),n.d(r,"getPermalinkParts",(function(){return Le})),n.d(r,"isPostLocked",(function(){return Ue})),n.d(r,"isPostSavingLocked",(function(){return Fe})),n.d(r,"isPostAutosavingLocked",(function(){return Me})),n.d(r,"isPostLockTakeover",(function(){return Ve})),n.d(r,"getPostLockUser",(function(){return ze})),n.d(r,"getActivePostLock",(function(){return He})),n.d(r,"canUserUseUnfilteredHTML",(function(){return We})),n.d(r,"isPublishSidebarEnabled",(function(){return Ge})),n.d(r,"getEditorBlocks",(function(){return qe})),n.d(r,"getEditorSelectionStart",(function(){return Ke})),n.d(r,"getEditorSelectionEnd",(function(){return Qe})),n.d(r,"__unstableIsEditorReady",(function(){return $e})),n.d(r,"getEditorSettings",(function(){return Ye})),n.d(r,"getStateBeforeOptimisticTransaction",(function(){return Xe})),n.d(r,"inSomeHistory",(function(){return Je})),n.d(r,"getBlockName",(function(){return et})),n.d(r,"isBlockValid",(function(){return tt})),n.d(r,"getBlockAttributes",(function(){return nt})),n.d(r,"getBlock",(function(){return rt})),n.d(r,"getBlocks",(function(){return ot})),n.d(r,"__unstableGetBlockWithoutInnerBlocks",(function(){return it})),n.d(r,"getClientIdsOfDescendants",(function(){return ct})),n.d(r,"getClientIdsWithDescendants",(function(){return at})),n.d(r,"getGlobalBlockCount",(function(){return st})),n.d(r,"getBlocksByClientId",(function(){return ut})),n.d(r,"getBlockCount",(function(){return lt})),n.d(r,"getBlockSelectionStart",(function(){return dt})),n.d(r,"getBlockSelectionEnd",(function(){return pt})),n.d(r,"getSelectedBlockCount",(function(){return bt})),n.d(r,"hasSelectedBlock",(function(){return ft})),n.d(r,"getSelectedBlockClientId",(function(){return ht})),n.d(r,"getSelectedBlock",(function(){return mt})),n.d(r,"getBlockRootClientId",(function(){return vt})),n.d(r,"getBlockHierarchyRootClientId",(function(){return Ot})),n.d(r,"getAdjacentBlockClientId",(function(){return gt})),n.d(r,"getPreviousBlockClientId",(function(){return jt})),n.d(r,"getNextBlockClientId",(function(){return yt})),n.d(r,"getSelectedBlocksInitialCaretPosition",(function(){return _t})),n.d(r,"getMultiSelectedBlockClientIds",(function(){return wt})),n.d(r,"getMultiSelectedBlocks",(function(){return Pt})),n.d(r,"getFirstMultiSelectedBlockClientId",(function(){return St})),n.d(r,"getLastMultiSelectedBlockClientId",(function(){return kt})),n.d(r,"isFirstMultiSelectedBlock",(function(){return Et})),n.d(r,"isBlockMultiSelected",(function(){return Tt})),n.d(r,"isAncestorMultiSelected",(function(){return Ct})),n.d(r,"getMultiSelectedBlocksStartClientId",(function(){return xt})),n.d(r,"getMultiSelectedBlocksEndClientId",(function(){return Bt})),n.d(r,"getBlockOrder",(function(){return At})),n.d(r,"getBlockIndex",(function(){return It})),n.d(r,"isBlockSelected",(function(){return Rt})),n.d(r,"hasSelectedInnerBlock",(function(){return Dt})),n.d(r,"isBlockWithinSelection",(function(){return Nt})),n.d(r,"hasMultiSelection",(function(){return Lt})),n.d(r,"isMultiSelecting",(function(){return Ut})),n.d(r,"isSelectionEnabled",(function(){return Ft})),n.d(r,"getBlockMode",(function(){return Mt})),n.d(r,"isTyping",(function(){return Vt})),n.d(r,"isCaretWithinFormattedText",(function(){return zt})),n.d(r,"getBlockInsertionPoint",(function(){return Ht})),n.d(r,"isBlockInsertionPointVisible",(function(){return Wt})),n.d(r,"isValidTemplate",(function(){return Gt})),n.d(r,"getTemplate",(function(){return qt})),n.d(r,"getTemplateLock",(function(){return Kt})),n.d(r,"canInsertBlockType",(function(){return Qt})),n.d(r,"getInserterItems",(function(){return $t})),n.d(r,"hasInserterItems",(function(){return Yt})),n.d(r,"getBlockListSettings",(function(){return Xt})),n.d(r,"__experimentalGetDefaultTemplateTypes",(function(){return Jt})),n.d(r,"__experimentalGetDefaultTemplateType",(function(){return Zt})),n.d(r,"__experimentalGetTemplateInfo",(function(){return en}));var o={};n.r(o),n.d(o,"setupEditor",(function(){return yn})),n.d(o,"__experimentalTearDownEditor",(function(){return _n})),n.d(o,"resetPost",(function(){return wn})),n.d(o,"resetAutosave",(function(){return Pn})),n.d(o,"__experimentalRequestPostUpdateStart",(function(){return Sn})),n.d(o,"__experimentalRequestPostUpdateFinish",(function(){return kn})),n.d(o,"updatePost",(function(){return En})),n.d(o,"setupEditorState",(function(){return Tn})),n.d(o,"editPost",(function(){return Cn})),n.d(o,"savePost",(function(){return xn})),n.d(o,"refreshPost",(function(){return Bn})),n.d(o,"trashPost",(function(){return An})),n.d(o,"autosave",(function(){return In})),n.d(o,"redo",(function(){return Rn})),n.d(o,"undo",(function(){return Dn})),n.d(o,"createUndoLevel",(function(){return Nn})),n.d(o,"updatePostLock",(function(){return Ln})),n.d(o,"enablePublishSidebar",(function(){return Un})),n.d(o,"disablePublishSidebar",(function(){return Fn})),n.d(o,"lockPostSaving",(function(){return Mn})),n.d(o,"unlockPostSaving",(function(){return Vn})),n.d(o,"lockPostAutosaving",(function(){return zn})),n.d(o,"unlockPostAutosaving",(function(){return Hn})),n.d(o,"resetEditorBlocks",(function(){return Wn})),n.d(o,"updateEditorSettings",(function(){return Gn})),n.d(o,"resetBlocks",(function(){return Kn})),n.d(o,"receiveBlocks",(function(){return Qn})),n.d(o,"updateBlock",(function(){return $n})),n.d(o,"updateBlockAttributes",(function(){return Yn})),n.d(o,"selectBlock",(function(){return Xn})),n.d(o,"startMultiSelect",(function(){return Jn})),n.d(o,"stopMultiSelect",(function(){return Zn})),n.d(o,"multiSelect",(function(){return er})),n.d(o,"clearSelectedBlock",(function(){return tr})),n.d(o,"toggleSelection",(function(){return nr})),n.d(o,"replaceBlocks",(function(){return rr})),n.d(o,"replaceBlock",(function(){return or})),n.d(o,"moveBlocksDown",(function(){return ir})),n.d(o,"moveBlocksUp",(function(){return cr})),n.d(o,"moveBlockToPosition",(function(){return ar})),n.d(o,"insertBlock",(function(){return sr})),n.d(o,"insertBlocks",(function(){return ur})),n.d(o,"showInsertionPoint",(function(){return lr})),n.d(o,"hideInsertionPoint",(function(){return dr})),n.d(o,"setTemplateValidity",(function(){return pr})),n.d(o,"synchronizeTemplate",(function(){return br})),n.d(o,"mergeBlocks",(function(){return fr})),n.d(o,"removeBlocks",(function(){return hr})),n.d(o,"removeBlock",(function(){return mr})),n.d(o,"toggleBlockMode",(function(){return vr})),n.d(o,"startTyping",(function(){return Or})),n.d(o,"stopTyping",(function(){return gr})),n.d(o,"enterFormattedText",(function(){return jr})),n.d(o,"exitFormattedText",(function(){return yr})),n.d(o,"insertDefaultBlock",(function(){return _r})),n.d(o,"updateBlockListSettings",(function(){return wr}));var i=n(6),c=n(57),a=n(21),s=n(8),u=n(5),l=n(11),d=n(13),p=n(0),b=n(2),f=n(9),h=n(4),m=n(12),v=n(33);function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:[];return e.push(Object(b.clone)(w)),e}));var P=n(49),S=n(42);function k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function E(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SETUP_EDITOR_STATE":case"RESET_POST":return t.post.id}return e},postType:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SETUP_EDITOR_STATE":case"RESET_POST":return t.post.type}return e},preferences:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:T,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ENABLE_PUBLISH_SIDEBAR":return B(B({},e),{},{isPublishSidebarEnabled:!0});case"DISABLE_PUBLISH_SIDEBAR":return B(B({},e),{},{isPublishSidebarEnabled:!1})}return e},saving:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"REQUEST_POST_UPDATE_START":case"REQUEST_POST_UPDATE_FINISH":return{pending:"REQUEST_POST_UPDATE_START"===t.type,options:t.options||{}}}return e},postLock:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{isLocked:!1},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"UPDATE_POST_LOCK":return t.lock}return e},template:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{isValid:!0},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_TEMPLATE_VALIDITY":return B(B({},e),{},{isValid:t.isValid})}return e},postSavingLock:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"LOCK_POST_SAVING":return B(B({},e),{},Object(u.a)({},t.lockName,!0));case"UNLOCK_POST_SAVING":return Object(b.omit)(e,t.lockName)}return e},isReady:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SETUP_EDITOR_STATE":return!0;case"TEAR_DOWN_EDITOR":return!1}return e},editorSettings:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:C,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"UPDATE_EDITOR_SETTINGS":return B(B({},e),t.settings)}return e},postAutosavingLock:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"LOCK_POST_AUTOSAVING":return B(B({},e),{},Object(u.a)({},t.lockName,!0));case"UNLOCK_POST_AUTOSAVING":return Object(b.omit)(e,t.lockName)}return e}}),R=n(41),D=n(69),N=n(32),L=n(35),U=n.n(L),F=new Set(["meta"]),M="core/editor",V=/%(?:postname|pagename)%/,z=["title","excerpt","content"];function H(e,t){return Object(N.addQueryArgs)(e,t)}function W(e){return e?Object(b.trim)(Object(b.deburr)(e).replace(/[\s\./]+/g,"-").replace(/[^\w-]+/g,"").toLowerCase(),"-"):""}function G(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function q(e){for(var t=1;t1)return!1;var n=t[0].name;if(n!==Object(f.getDefaultBlockName)()&&n!==Object(f.getFreeformContentHandlerName)())return!1}return!Ae(e)}var ge=Object(h.createRegistrySelector)((function(e){return function(t){if(!ve(t))return!1;if(Me(t))return!1;var n=re(t),r=oe(t),o=e("core").hasFetchedAutosaves(n,r),i=Object(b.get)(e("core").getCurrentUser(),["id"]),c=e("core").getAutosave(n,r,i);return!!o&&(!c||(!!J(t)||["title","excerpt"].some((function(e){return A(c[e])!==le(t,e)}))))}})),je=Object(h.createRegistrySelector)((function(e){return function(t){U()("`wp.data.select( 'core/editor' ).getAutosave()`",{alternative:"`wp.data.select( 'core' ).getAutosave( postType, postId, userId )`",plugin:"Gutenberg"});var n=re(t),r=oe(t),o=Object(b.get)(e("core").getCurrentUser(),["id"]),i=e("core").getAutosave(n,r,o);return Object(b.mapValues)(Object(b.pick)(i,z),A)}})),ye=Object(h.createRegistrySelector)((function(e){return function(t){U()("`wp.data.select( 'core/editor' ).hasAutosave()`",{alternative:"`!! wp.data.select( 'core' ).getAutosave( postType, postId, userId )`",plugin:"Gutenberg"});var n=re(t),r=oe(t),o=Object(b.get)(e("core").getCurrentUser(),["id"]);return!!e("core").getAutosave(n,r,o)}}));function _e(e){var t=le(e,"date"),n=new Date(Number(Object(D.getDate)(t))-6e4);return Object(D.isInTheFuture)(n)}function we(e){var t=le(e,"date"),n=le(e,"modified"),r=ne(e).status;return("draft"===r||"auto-draft"===r||"pending"===r)&&(t===n||null===t)}var Pe=Object(h.createRegistrySelector)((function(e){return function(t){var n=re(t),r=oe(t);return e("core").isSavingEntityRecord("postType",n,r)}})),Se=Object(h.createRegistrySelector)((function(e){return function(t){var n=re(t),r=oe(t);return!e("core").getLastEntitySaveError("postType",n,r)}})),ke=Object(h.createRegistrySelector)((function(e){return function(t){var n=re(t),r=oe(t);return!!e("core").getLastEntitySaveError("postType",n,r)}}));function Ee(e){return!!Pe(e)&&!!Object(b.get)(e.saving,["options","isAutosave"])}function Te(e){return!!Pe(e)&&!!e.saving.options.isPreview}function Ce(e){if(!e.saving.pending&&!Pe(e)){var t=de(e,"preview_link");t||(t=le(e,"link"))&&(t=Object(N.addQueryArgs)(t,{preview:!0}));var n=le(e,"featured_media");return t&&n?Object(N.addQueryArgs)(t,{_thumbnail_id:n}):t}}function xe(e){var t,n=qe(e);if(n.length>2)return null;if(1===n.length&&"core/embed"===(t=n[0].name)){var r,o=null===(r=n[0].attributes)||void 0===r?void 0:r.providerNameSlug;["youtube","vimeo"].includes(o)?t="core/video":["spotify","soundcloud"].includes(o)&&(t="core/audio")}switch(2===n.length&&"core/paragraph"===n[1].name&&(t=n[0].name),t){case"core/image":return"image";case"core/quote":case"core/pullquote":return"quote";case"core/gallery":return"gallery";case"core/video":return"video";case"core/audio":return"audio";default:return null}}function Be(e){U()("`core/editor` getBlocksForSerialization selector",{plugin:"Gutenberg",alternative:"getEditorBlocks",hint:"Blocks serialization pre-processing occurs at save time"});var t=e.editor.present.blocks.value;return 1===t.length&&Object(f.isUnmodifiedDefaultBlock)(t[0])?[]:t}var Ae=Object(h.createRegistrySelector)((function(e){return function(t){var n=oe(t),r=re(t),o=e("core").getEditedEntityRecord("postType",r,n);if(o){if("function"==typeof o.content)return o.content(o);if(o.blocks)return Object(f.__unstableSerializeAndClean)(o.blocks);if(o.content)return o.content}return""}}));function Ie(e){return Pe(e)&&!fe(e)&&"publish"===le(e,"status")}function Re(e){var t=le(e,"permalink_template");return V.test(t)}function De(e){var t=Le(e);if(!t)return null;var n=t.prefix,r=t.postName,o=t.suffix;return Re(e)?n+r+o:n}function Ne(e){return le(e,"slug")||W(le(e,"title"))||oe(e)}function Le(e){var t=le(e,"permalink_template");if(!t)return null;var n=le(e,"slug")||le(e,"generated_slug"),r=t.split(V),o=Object(l.a)(r,2);return{prefix:o[0],postName:n,suffix:o[1]}}function Ue(e){return e.postLock.isLocked}function Fe(e){return Object.keys(e.postSavingLock).length>0}function Me(e){return Object.keys(e.postAutosavingLock).length>0}function Ve(e){return e.postLock.isTakeover}function ze(e){return e.postLock.user}function He(e){return e.postLock.activePostLock}function We(e){return Object(b.has)(ne(e),["_links","wp:action-unfiltered-html"])}function Ge(e){return e.preferences.hasOwnProperty("isPublishSidebarEnabled")?e.preferences.isPublishSidebarEnabled:T.isPublishSidebarEnabled}function qe(e){return le(e,"blocks")||Q}function Ke(e){return le(e,"selectionStart")}function Qe(e){return le(e,"selectionEnd")}function $e(e){return e.isReady}function Ye(e){return e.editorSettings}function Xe(){return U()("select('core/editor').getStateBeforeOptimisticTransaction",{hint:"No state history is kept on this store anymore"}),null}function Je(){return U()("select('core/editor').inSomeHistory",{hint:"No state history is kept on this store anymore"}),!1}function Ze(e){return Object(h.createRegistrySelector)((function(t){return function(n){var r;U()("`wp.data.select( 'core/editor' )."+e+"`",{alternative:"`wp.data.select( 'core/block-editor' )."+e+"`"});for(var o=arguments.length,i=new Array(o>1?o-1:0),c=1;c]*>/.test(r.message)&&(a=[a,r.message].join(" ")),[a,{id:"SAVE_POST_NOTICE_ID"}]}function un(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ln(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return{type:"REQUEST_POST_UPDATE_START",options:e}}function kn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{type:"REQUEST_POST_UPDATE_FINISH",options:e}}function En(){return U()("wp.data.dispatch( 'core/editor' ).updatePost",{alternative:"User the core entitires store instead"}),{type:"DO_NOTHING"}}function Tn(e){return{type:"SETUP_EDITOR_STATE",post:e}}function Cn(e,t){var n,r,o;return rn.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,h.controls.select(M,"getCurrentPost");case 2:return n=i.sent,r=n.id,o=n.type,i.next=7,h.controls.dispatch("core","editEntityRecord","postType",o,r,e,t);case 7:case"end":return i.stop()}}),bn)}function xn(){var e,t,n,r,o,i,c,a=arguments;return rn.a.wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return e=a.length>0&&void 0!==a[0]?a[0]:{},s.next=3,h.controls.select(M,"isEditedPostSaveable");case 3:if(s.sent){s.next=5;break}return s.abrupt("return");case 5:return s.next=7,h.controls.select(M,"getEditedPostContent");case 7:if(s.t0=s.sent,t={content:s.t0},e.isAutosave){s.next=12;break}return s.next=12,h.controls.dispatch(M,"editPost",t,{undoIgnore:!0});case 12:return s.next=14,Sn(e);case 14:return s.next=16,h.controls.select(M,"getCurrentPost");case 16:return n=s.sent,s.t1=ln,s.t2=ln,s.t3={id:n.id},s.next=22,h.controls.select("core","getEntityRecordNonTransientEdits","postType",n.type,n.id);case 22:return s.t4=s.sent,s.t5=(0,s.t2)(s.t3,s.t4),s.t6=t,t=(0,s.t1)(s.t5,s.t6),s.next=28,h.controls.dispatch("core","saveEntityRecord","postType",n.type,t,e);case 28:return s.next=30,kn(e);case 30:return s.next=32,h.controls.select("core","getLastEntitySaveError","postType",n.type,n.id);case 32:if(!(r=s.sent)){s.next=40;break}if(!(o=sn({post:n,edits:t,error:r})).length){s.next=38;break}return s.next=38,h.controls.dispatch.apply(h.controls,[on.store,"createErrorNotice"].concat(Object(tn.a)(o)));case 38:s.next=58;break;case 40:return s.next=42,h.controls.select(M,"getCurrentPost");case 42:return i=s.sent,s.t7=an,s.t8=n,s.t9=i,s.next=48,h.controls.resolveSelect("core","getPostType",i.type);case 48:if(s.t10=s.sent,s.t11=e,s.t12={previousPost:s.t8,post:s.t9,postType:s.t10,options:s.t11},!(c=(0,s.t7)(s.t12)).length){s.next=55;break}return s.next=55,h.controls.dispatch.apply(h.controls,[on.store,"createSuccessNotice"].concat(Object(tn.a)(c)));case 55:if(e.isAutosave){s.next=58;break}return s.next=58,h.controls.dispatch("core/block-editor","__unstableMarkLastChangeAsPersistent");case 58:case"end":return s.stop()}}),fn)}function Bn(){var e,t,n,r;return rn.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,h.controls.select(M,"getCurrentPost");case 2:return e=o.sent,o.next=5,h.controls.select(M,"getCurrentPostType");case 5:return t=o.sent,o.next=8,h.controls.resolveSelect("core","getPostType",t);case 8:return n=o.sent,o.next=11,Object(P.apiFetch)({path:"/wp/v2/".concat(n.rest_base,"/").concat(e.id)+"?context=edit&_timestamp=".concat(Date.now())});case 11:return r=o.sent,o.next=14,h.controls.dispatch(M,"resetPost",r);case 14:case"end":return o.stop()}}),hn)}function An(){var e,t,n;return rn.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,h.controls.select(M,"getCurrentPostType");case 2:return e=r.sent,r.next=5,h.controls.resolveSelect("core","getPostType",e);case 5:return t=r.sent,r.next=8,h.controls.dispatch(on.store,"removeNotice","TRASH_POST_NOTICE_ID");case 8:return r.prev=8,r.next=11,h.controls.select(M,"getCurrentPost");case 11:return n=r.sent,r.next=14,Object(P.apiFetch)({path:"/wp/v2/".concat(t.rest_base,"/").concat(n.id),method:"DELETE"});case 14:return r.next=16,h.controls.dispatch(M,"savePost");case 16:r.next=22;break;case 18:return r.prev=18,r.t0=r.catch(8),r.next=22,h.controls.dispatch.apply(h.controls,[on.store,"createErrorNotice"].concat(Object(tn.a)([(o={error:r.t0}).error.message&&"unknown_error"!==o.error.code?o.error.message:Object(cn.__)("Trashing failed"),{id:"TRASH_POST_NOTICE_ID"}])));case 22:case"end":return r.stop()}var o}),mn,null,[[8,18]])}function In(){var e,t,n,r,o,i,c,a,s,u=arguments;return rn.a.wrap((function(l){for(;;)switch(l.prev=l.next){case 0:if(e=u.length>0&&void 0!==u[0]?u[0]:{},t=e.local,n=void 0!==t&&t,r=Object(d.a)(e,["local"]),!n){l.next=21;break}return l.next=4,h.controls.select(M,"getCurrentPost");case 4:return o=l.sent,l.next=7,h.controls.select(M,"isEditedPostNew");case 7:return i=l.sent,l.next=10,h.controls.select(M,"getEditedPostAttribute","title");case 10:return c=l.sent,l.next=13,h.controls.select(M,"getEditedPostAttribute","content");case 13:return a=l.sent,l.next=16,h.controls.select(M,"getEditedPostAttribute","excerpt");case 16:return s=l.sent,l.next=19,{type:"LOCAL_AUTOSAVE_SET",postId:o.id,isPostNew:i,title:c,content:a,excerpt:s};case 19:l.next=23;break;case 21:return l.next=23,h.controls.dispatch(M,"savePost",ln({isAutosave:!0},r));case 23:case"end":return l.stop()}}),vn)}function Rn(){return rn.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,h.controls.dispatch("core","redo");case 2:case"end":return e.stop()}}),On)}function Dn(){return rn.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,h.controls.dispatch("core","undo");case 2:case"end":return e.stop()}}),gn)}function Nn(){return{type:"CREATE_UNDO_LEVEL"}}function Ln(e){return{type:"UPDATE_POST_LOCK",lock:e}}function Un(){return{type:"ENABLE_PUBLISH_SIDEBAR"}}function Fn(){return{type:"DISABLE_PUBLISH_SIDEBAR"}}function Mn(e){return{type:"LOCK_POST_SAVING",lockName:e}}function Vn(e){return{type:"UNLOCK_POST_SAVING",lockName:e}}function zn(e){return{type:"LOCK_POST_AUTOSAVING",lockName:e}}function Hn(e){return{type:"UNLOCK_POST_AUTOSAVING",lockName:e}}function Wn(e){var t,n,r,o,i,c,a,s,u=arguments;return rn.a.wrap((function(l){for(;;)switch(l.prev=l.next){case 0:if(t=u.length>1&&void 0!==u[1]?u[1]:{},n=t.__unstableShouldCreateUndoLevel,r=t.selectionStart,o=t.selectionEnd,i={blocks:e,selectionStart:r,selectionEnd:o},!1===n){l.next=19;break}return l.next=6,h.controls.select(M,"getCurrentPost");case 6:return c=l.sent,a=c.id,s=c.type,l.next=11,h.controls.select("core","getEditedEntityRecord","postType",s,a);case 11:if(l.t0=l.sent.blocks,l.t1=i.blocks,!(l.t0===l.t1)){l.next=18;break}return l.next=17,h.controls.dispatch("core","__unstableCreateUndoLevel","postType",s,a);case 17:return l.abrupt("return",l.sent);case 18:i.content=function(e){var t=e.blocks,n=void 0===t?[]:t;return Object(f.__unstableSerializeAndClean)(n)};case 19:return l.delegateYield(Cn(i),"t2",20);case 20:case"end":return l.stop()}}),jn)}function Gn(e){return{type:"UPDATE_EDITOR_SETTINGS",settings:e}}var qn=function(e){return rn.a.mark((function t(){var n,r,o,i=arguments;return rn.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:for(U()("`wp.data.dispatch( 'core/editor' )."+e+"`",{alternative:"`wp.data.dispatch( 'core/block-editor' )."+e+"`"}),n=i.length,r=new Array(n),o=0;o0&&void 0!==arguments[0]?arguments[0]:1e3*this.props.interval;this.timerId=setTimeout((function(){e.autosaveTimerHandler()}),t)}},{key:"autosaveTimerHandler",value:function(){this.props.isAutosaveable?(this.needsAutosave&&(this.needsAutosave=!1,this.props.autosave()),this.setAutosaveTimer()):this.setAutosaveTimer(1e3)}},{key:"render",value:function(){return null}}]),n}(p.Component),Ur=Object(m.compose)([Object(h.withSelect)((function(e,t){var n=e("core").getReferenceByDistinctEdits,r=e("core/editor"),o=r.isEditedPostDirty,i=r.isEditedPostAutosaveable,c=r.isAutosavingPost,a=r.getEditorSettings,s=t.interval,u=void 0===s?a().autosaveInterval:s;return{editsReference:n(),isDirty:o(),isAutosaveable:i(),isAutosaving:c(),interval:u}})),Object(h.withDispatch)((function(e,t){return{autosave:function(){var n=t.autosave,r=void 0===n?e("core/editor").autosave:n;r()}}}))])(Lr),Fr=n(10),Mr=n.n(Fr),Vr=function(e){var t=e.children,n=e.isValid,r=e.level,o=e.href,i=e.onSelect;return Object(p.createElement)("li",{className:Mr()("document-outline__item","is-".concat(r.toLowerCase()),{"is-invalid":!n})},Object(p.createElement)("a",{href:o,className:"document-outline__button",onClick:i},Object(p.createElement)("span",{className:"document-outline__emdash","aria-hidden":"true"}),Object(p.createElement)("strong",{className:"document-outline__level"},r),Object(p.createElement)("span",{className:"document-outline__item-content"},t)))};function zr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Hr(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:[];return Object(b.flatMap)(t,(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"core/heading"===t.name?Hr(Hr({},t),{},{level:t.attributes.level,isEmpty:Qr(t)}):e(t.innerBlocks)}))}(n);if(s.length<1)return null;var u=1,l=document.querySelector(".editor-post-title__input"),d=i&&r&&l,f=Object(b.countBy)(s,"level")[1]>1;return Object(p.createElement)("div",{className:"document-outline"},Object(p.createElement)("ul",null,d&&Object(p.createElement)(Vr,{level:Object(cn.__)("Title"),isValid:!0,onSelect:o,href:"#".concat(l.id),isDisabled:c},r),s.map((function(e,t){var n=e.level>u+1,r=!(e.isEmpty||n||!e.level||1===e.level&&(f||d));return u=e.level,Object(p.createElement)(Vr,{key:t,level:"H".concat(e.level),isValid:r,isDisabled:c,href:"#block-".concat(e.clientId),onSelect:o},e.isEmpty?Wr:Object(a.getTextContent)(Object(a.create)({html:e.attributes.content})),n&&Gr,1===e.level&&f&&Kr,d&&1===e.level&&!f&&qr)}))))}));var Yr=Object(h.withSelect)((function(e){return{blocks:e("core/block-editor").getBlocks()}}))((function(e){var t=e.blocks,n=e.children;return Object(b.filter)(t,(function(e){return"core/heading"===e.name})).length<1?null:n})),Xr=n(46);var Jr=function(e){var t=e.resetBlocksOnSave,n=Object(h.useDispatch)("core/editor"),r=n.resetEditorBlocks,o=n.savePost,i=Object(h.useSelect)((function(e){var t=e("core/editor");return{isEditedPostDirty:t.isEditedPostDirty,getPostEdits:t.getPostEdits}}),[]),c=i.isEditedPostDirty,a=i.getPostEdits;return Object(Xr.useShortcut)("core/editor/save",(function(e){if(e.preventDefault(),c()){if(t){var n=a();if(n.content&&"string"==typeof n.content){var i=Object(f.parse)(n.content);r(i)}}o()}}),{bindGlobal:!0}),null};function Zr(){var e=Object(h.useDispatch)("core/editor"),t=e.redo,n=e.undo;return Object(Xr.useShortcut)("core/editor/undo",(function(e){n(),e.preventDefault()}),{bindGlobal:!0}),Object(Xr.useShortcut)("core/editor/redo",(function(e){t(),e.preventDefault()}),{bindGlobal:!0}),Object(p.createElement)(p.Fragment,null,Object(p.createElement)(i.BlockEditorKeyboardShortcuts,null),Object(p.createElement)(Jr,null))}var eo=Zr;function to(){return U()("EditorGlobalKeyboardShortcuts",{alternative:"VisualEditorGlobalKeyboardShortcuts",plugin:"Gutenberg"}),Object(p.createElement)(Zr,null)}function no(){return Object(p.createElement)(Jr,{resetBlocksOnSave:!0})}var ro=function(){var e=Object(h.useDispatch)(Xr.store).registerShortcut;return Object(p.useEffect)((function(){e({name:"core/editor/save",category:"global",description:Object(cn.__)("Save your changes."),keyCombination:{modifier:"primary",character:"s"}}),e({name:"core/editor/undo",category:"global",description:Object(cn.__)("Undo your last changes."),keyCombination:{modifier:"primary",character:"z"}}),e({name:"core/editor/redo",category:"global",description:Object(cn.__)("Redo your last undo."),keyCombination:{modifier:"primaryShift",character:"z"}})}),[e]),Object(p.createElement)(i.BlockEditorKeyboardShortcuts.Register,null)},oo=n(3),io=n(17),co=n(7),ao=Object(p.createElement)(co.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(p.createElement)(co.Path,{d:"M15.6 6.5l-1.1 1 2.9 3.3H8c-.9 0-1.7.3-2.3.9-1.4 1.5-1.4 4.2-1.4 5.6v.2h1.5v-.3c0-1.1 0-3.5 1-4.5.3-.3.7-.5 1.3-.5h9.2L14.5 15l1.1 1.1 4.6-4.6-4.6-5z"}));var so=Object(p.forwardRef)((function(e,t){var n=Object(h.useSelect)((function(e){return e("core/editor").hasEditorRedo()}),[]),r=Object(h.useDispatch)("core/editor").redo;return Object(p.createElement)(oo.Button,Object(s.a)({},e,{ref:t,icon:ao,label:Object(cn.__)("Redo"),shortcut:io.displayShortcut.primaryShift("z"),"aria-disabled":!n,onClick:n?r:void 0,className:"editor-history__redo"}))})),uo=Object(p.createElement)(co.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(p.createElement)(co.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 lo=Object(p.forwardRef)((function(e,t){var n=Object(h.useSelect)((function(e){return e("core/editor").hasEditorUndo()}),[]),r=Object(h.useDispatch)("core/editor").undo;return Object(p.createElement)(oo.Button,Object(s.a)({},e,{ref:t,icon:uo,label:Object(cn.__)("Undo"),shortcut:io.displayShortcut.primary("z"),"aria-disabled":!n,onClick:n?r:void 0,className:"editor-history__undo"}))}));var po=Object(m.compose)([Object(h.withSelect)((function(e){return{isValid:e("core/block-editor").isValidTemplate()}})),Object(h.withDispatch)((function(e){var t=e("core/block-editor"),n=t.setTemplateValidity;return{resetTemplateValidity:function(){return n(!0)},synchronizeTemplate:t.synchronizeTemplate}}))])((function(e){var t=e.isValid,n=Object(d.a)(e,["isValid"]);return t?null:Object(p.createElement)(oo.Notice,{className:"editor-template-validation-notice",isDismissible:!1,status:"warning",actions:[{label:Object(cn.__)("Keep it as is"),onClick:n.resetTemplateValidity},{label:Object(cn.__)("Reset the template"),onClick:function(){window.confirm(Object(cn.__)("Resetting the template may result in loss of content, do you want to continue?"))&&n.synchronizeTemplate()},isPrimary:!0}]},Object(cn.__)("The content of your post doesn’t match the template assigned to your post type."))}));var bo=Object(m.compose)([Object(h.withSelect)((function(e){return{notices:e(on.store).getNotices()}})),Object(h.withDispatch)((function(e){return{onRemove:e(on.store).removeNotice}}))])((function(e){var t=e.notices,n=e.onRemove,r=Object(b.filter)(t,{isDismissible:!0,type:"default"}),o=Object(b.filter)(t,{isDismissible:!1,type:"default"}),i=Object(b.filter)(t,{type:"snackbar"});return Object(p.createElement)(p.Fragment,null,Object(p.createElement)(oo.NoticeList,{notices:o,className:"components-editor-notices__pinned"}),Object(p.createElement)(oo.NoticeList,{notices:r,className:"components-editor-notices__dismissible",onRemove:n},Object(p.createElement)(po,null)),Object(p.createElement)(oo.SnackbarList,{notices:i,className:"components-editor-notices__snackbar",onRemove:n}))})),fo=n(160),ho=n(313),mo=Object(p.createElement)(co.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(p.createElement)(co.Path,{d:"M7 5.5h10a.5.5 0 01.5.5v12a.5.5 0 01-.5.5H7a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM17 4H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V6a2 2 0 00-2-2zm-1 3.75H8v1.5h8v-1.5zM8 11h8v1.5H8V11zm6 3.25H8v1.5h6v-1.5z"}));function vo(e){var t=e.record,n=e.checked,r=e.onChange,o=e.closePanel,i=t.name,c=t.kind,a=t.title,s=t.key,u=Object(h.useSelect)((function(e){var t,n=e("core").getEditedEntityRecord(c,i,s).blocks,r=void 0===n?[]:n,o=e("core/block-editor").getBlockParents(null===(t=r[0])||void 0===t?void 0:t.clientId);return o[o.length-1]}),[]),l=Object(h.useSelect)((function(e){if("postType"!==c||"wp_template"!==i)return a;var t=e("core").getEditedEntityRecord(c,i,s);return e("core/editor").__experimentalGetTemplateInfo(t).title}),[i,c,a,s]),d=Object(h.useSelect)((function(e){return e("core/block-editor").getSelectedBlockClientId()===u}),[u]),b=d?Object(cn.__)("Selected"):Object(cn.__)("Select"),f=Object(h.useDispatch)("core/block-editor").selectBlock,m=Object(p.useCallback)((function(){return f(u)}),[u]),v=Object(p.useCallback)((function(){f(u),o()}),[u]);return Object(p.createElement)(oo.PanelRow,null,Object(p.createElement)(oo.CheckboxControl,{label:Object(p.createElement)("strong",null,l||Object(cn.__)("Untitled")),checked:n,onChange:r}),u?Object(p.createElement)(p.Fragment,null,Object(p.createElement)(oo.Button,{onClick:m,className:"entities-saved-states__find-entity",disabled:d},b),Object(p.createElement)(oo.Button,{onClick:v,className:"entities-saved-states__find-entity-small",disabled:d},b)):null)}var Oo={site:ho.a,page:mo};function go(e){var t=e.list,n=e.unselectedEntities,r=e.setUnselectedEntities,o=e.closePanel,i=t[0],c=Object(h.useSelect)((function(e){return e("core").getEntity(i.kind,i.name)}),[i.kind,i.name]),a=i.name,s=Oo[a];return Object(p.createElement)(oo.PanelBody,{title:c.label,initialOpen:!0,icon:s},t.map((function(e){return Object(p.createElement)(vo,{key:e.key||"site",record:e,checked:!Object(b.some)(n,(function(t){return t.kind===e.kind&&t.name===e.name&&t.key===e.key})),onChange:function(t){return r(e,t)},closePanel:o})})))}var jo={wp_template_part:function(e){return Object(cn._n)("template part","template parts",e)},wp_template:function(e){return Object(cn._n)("template","templates",e)},post:function(e){return Object(cn._n)("post","posts",e)},page:function(e){return Object(cn._n)("page","pages",e)},site:function(e){return Object(cn._n)("site","sites",e)}},yo={0:Object(cn.__)("There are no changes."),1:Object(cn.__)("The following changes have been made to your %s."),2:Object(cn.__)("The following changes have been made to your %1$s and %2$s."),3:Object(cn.__)("The following changes have been made to your %1$s, %2$s, and %3$s."),4:Object(cn.__)("The following changes have been made to your %1$s, %2$s, %3$s, and %4$s."),5:Object(cn.__)("The following changes have been made to your %1$s, %2$s, %3$s, %4$s, and %5$s.")};var _o=Object(oo.withFocusReturn)((function(e){var t=e.isOpen,n=e.close,r=Object(h.useSelect)((function(e){return{dirtyEntityRecords:e("core").__experimentalGetDirtyEntityRecords()}}),[]).dirtyEntityRecords,o=Object(h.useDispatch)("core").saveEditedEntityRecord,i=Object.values(Object(b.groupBy)(r,"name")),c=[];i.forEach((function(e){jo[e[0].name]&&c.push(jo[e[0].name](e.length))}));var a=yo[c.length]||Object(cn.__)("The following changes have been made to multiple entities."),s=cn.sprintf.apply(void 0,[a].concat(c)),u=Object(p.useState)([]),d=Object(l.a)(u,2),f=d[0],m=d[1],v=function(e,t){var n=e.kind,r=e.name,o=e.key;m(t?f.filter((function(e){return e.kind!==n||e.name!==r||e.key!==o})):[].concat(Object(tn.a)(f),[{kind:n,name:r,key:o}]))},O=Object(p.useCallback)((function(){return n()}),[n]);return t?Object(p.createElement)("div",{className:"entities-saved-states__panel"},Object(p.createElement)("div",{className:"entities-saved-states__panel-header"},Object(p.createElement)(oo.Button,{isPrimary:!0,disabled:r.length-f.length==0,onClick:function(){var e=r.filter((function(e){var t=e.kind,n=e.name,r=e.key;return!Object(b.some)(f,(function(e){return e.kind===t&&e.name===n&&e.key===r}))}));n(e),e.forEach((function(e){var t=e.kind,n=e.name,r=e.key;o(t,n,r)}))},className:"editor-entities-saved-states__save-button"},Object(cn.__)("Save")),Object(p.createElement)(oo.Button,{onClick:O,icon:fo.a,label:Object(cn.__)("Close panel")})),Object(p.createElement)("div",{className:"entities-saved-states__text-prompt"},Object(p.createElement)("strong",null,Object(cn.__)("Are you ready to save?")),Object(p.createElement)("p",null,s)),i.map((function(e){return Object(p.createElement)(go,{key:e[0].name,list:e,closePanel:O,unselectedEntities:f,setUnselectedEntities:v})}))):null})),wo=n(18);function Po(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Dr.a)(e);if(t){var o=Object(Dr.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Rr.a)(this,n)}}var So=function(e){Object(Ir.a)(n,e);var t=Po(n);function n(){var e;return Object(Br.a)(this,n),(e=t.apply(this,arguments)).reboot=e.reboot.bind(Object(wo.a)(e)),e.getContent=e.getContent.bind(Object(wo.a)(e)),e.state={error:null},e}return Object(Ar.a)(n,[{key:"componentDidCatch",value:function(e){this.setState({error:e})}},{key:"reboot",value:function(){this.props.onError()}},{key:"getContent",value:function(){try{return Object(h.select)("core/editor").getEditedPostContent()}catch(e){}}},{key:"render",value:function(){var e=this.state.error;return e?Object(p.createElement)(i.Warning,{className:"editor-error-boundary",actions:[Object(p.createElement)(oo.Button,{key:"recovery",onClick:this.reboot,isSecondary:!0},Object(cn.__)("Attempt Recovery")),Object(p.createElement)(oo.ClipboardButton,{key:"copy-post",text:this.getContent,isSecondary:!0},Object(cn.__)("Copy Post Text")),Object(p.createElement)(oo.ClipboardButton,{key:"copy-error",text:e.stack,isSecondary:!0},Object(cn.__)("Copy Error"))]},Object(cn.__)("The editor has encountered an unexpected error.")):this.props.children}}]),n}(p.Component),ko=window.requestIdleCallback?window.requestIdleCallback:window.requestAnimationFrame,Eo=Object(b.once)((function(){try{return window.sessionStorage.setItem("__wpEditorTestSessionStorage",""),window.sessionStorage.removeItem("__wpEditorTestSessionStorage"),!0}catch(e){return!1}}));function To(){var e=Object(h.useSelect)((function(e){return{postId:e("core/editor").getCurrentPostId(),isEditedPostNew:e("core/editor").isEditedPostNew(),getEditedPostAttribute:e("core/editor").getEditedPostAttribute,hasRemoteAutosave:!!e("core/editor").getEditorSettings().autosave}}),[]),t=e.postId,n=e.isEditedPostNew,r=e.getEditedPostAttribute,o=e.hasRemoteAutosave,i=Object(h.useDispatch)(on.store),c=i.createWarningNotice,a=i.removeNotice,s=Object(h.useDispatch)("core/editor"),u=s.editPost,l=s.resetEditorBlocks;Object(p.useEffect)((function(){var e=function(e,t){return window.sessionStorage.getItem(Pr(e,t))}(t,n);if(e){try{e=JSON.parse(e)}catch(e){return}var i=e,s={title:i.post_title,content:i.content,excerpt:i.excerpt};if(Object.keys(s).some((function(e){return s[e]!==r(e)}))){if(!o){var d=Object(b.uniqueId)("wpEditorAutosaveRestore");c(Object(cn.__)("The backup of this post in your browser is different from the version below."),{id:d,actions:[{label:Object(cn.__)("Restore the backup"),onClick:function(){u(Object(b.omit)(s,["content"])),l(Object(f.parse)(s.content)),a(d)}}]})}}else Sr(t,n)}}),[n,t])}var Co=Object(m.ifCondition)(Eo)((function(){var e=Object(h.useDispatch)("core/editor").autosave,t=Object(p.useCallback)((function(){ko((function(){return e({local:!0})}))}),[]);To(),function(){var e=Object(h.useSelect)((function(e){return{postId:e("core/editor").getCurrentPostId(),isEditedPostNew:e("core/editor").isEditedPostNew(),isDirty:e("core/editor").isEditedPostDirty(),isAutosaving:e("core/editor").isAutosavingPost(),didError:e("core/editor").didPostSaveRequestFail()}}),[]),t=e.postId,n=e.isEditedPostNew,r=e.isDirty,o=e.isAutosaving,i=e.didError,c=Object(p.useRef)(r),a=Object(p.useRef)(o);Object(p.useEffect)((function(){!i&&(a.current&&!o||c.current&&!r)&&Sr(t,n),c.current=r,a.current=o}),[r,o,i]);var s=Object(m.usePrevious)(n),u=Object(m.usePrevious)(t);Object(p.useEffect)((function(){u===t&&s&&!n&&Sr(t,!0)}),[n,t])}();var n=Object(h.useSelect)((function(e){return{localAutosaveInterval:e("core/editor").getEditorSettings().__experimentalLocalAutosaveInterval}}),[]).localAutosaveInterval;return Object(p.createElement)(Ur,{interval:n,autosave:t})}));var xo=Object(h.withSelect)((function(e){var t=e("core/editor"),n=t.getEditedPostAttribute,r=t.getEditorSettings,o=e("core").getPostType,i=r().availableTemplates;return{postType:o(n("type")),availableTemplates:i}}))((function(e){var t=e.availableTemplates,n=e.postType,r=e.children;return!Object(b.get)(n,["supports","page-attributes"],!1)&&Object(b.isEmpty)(t)?null:r}));var Bo=Object(h.withSelect)((function(e){var t=e("core/editor").getEditedPostAttribute;return{postType:(0,e("core").getPostType)(t("type"))}}))((function(e){var t=e.postType,n=e.children,r=e.supportKeys,o=!0;return t&&(o=Object(b.some)(Object(b.castArray)(r),(function(e){return!!t.supports[e]}))),o?n:null})),Ao=Object(m.withState)({orderInput:null})((function(e){var t=e.onUpdateOrder,n=e.order,r=void 0===n?0:n,o=e.orderInput,i=e.setState,c=null===o?r:o;return Object(p.createElement)(oo.TextControl,{className:"editor-page-attributes__order",type:"number",label:Object(cn.__)("Order"),value:c,onChange:function(e){i({orderInput:e});var n=Number(e);Number.isInteger(n)&&""!==Object(b.invoke)(e,["trim"])&&t(Number(e))},size:6,onBlur:function(){i({orderInput:null})}})}));var Io=Object(m.compose)([Object(h.withSelect)((function(e){return{order:e("core/editor").getEditedPostAttribute("menu_order")}})),Object(h.withDispatch)((function(e){return{onUpdateOrder:function(t){e("core/editor").editPost({menu_order:t})}}}))])((function(e){return Object(p.createElement)(Bo,{supportKeys:"page-attributes"},Object(p.createElement)(Ao,e))}));function Ro(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Do(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:0;return Object(b.flatMap)(t,(function(t){return[{value:t.id,label:Object(b.repeat)("— ",n)+Object(b.unescape)(t.name)}].concat(Object(tn.a)(e(t.children||[],n+1)))}))}(e),n=Object(b.find)(t,(function(e){return e.value===s}));return a&&!n&&t.unshift({value:s,label:Lo(a)}),t}),[v]);return f&&m?Object(p.createElement)(oo.ComboboxControl,{className:"editor-page-attributes__parent",label:m,value:s,options:O,onFilterValueChange:Object(b.debounce)((function(e){o(e)}),300),onChange:function(t){e({parent:t})}}):null};var Fo=Object(m.compose)(Object(h.withSelect)((function(e){var t=e("core/editor"),n=t.getEditedPostAttribute,r=(0,t.getEditorSettings)().availableTemplates;return{selectedTemplate:n("template"),availableTemplates:r}})),Object(h.withDispatch)((function(e){return{onUpdate:function(t){e("core/editor").editPost({template:t||""})}}})))((function(e){var t=e.availableTemplates,n=e.selectedTemplate,r=e.onUpdate;return Object(b.isEmpty)(t)?null:Object(p.createElement)(oo.SelectControl,{label:Object(cn.__)("Template:"),value:n,onChange:r,className:"editor-page-attributes__template",options:Object(b.map)(t,(function(e,t){return{value:t,label:e}}))})}));var Mo=function(){var e=Object(p.useState)(),t=Object(l.a)(e,2),n=t[0],r=t[1],o=Object(h.useSelect)((function(e){var t=e("core"),r=t.__unstableGetAuthor,o=t.getAuthors,i=t.isResolving,c=e("core/editor").getEditedPostAttribute,a=r(c("author")),s=n&&""!==n?{search:n}:{};return{authorId:c("author"),postAuthor:a,authors:o(s),isLoading:i("core","getAuthors",[s])}}),[n]),i=o.authorId,c=o.isLoading,a=o.authors,s=o.postAuthor,u=Object(h.useDispatch)("core/editor").editPost,d=Object(p.useMemo)((function(){var e=(null!=a?a:[]).map((function(e){return{value:e.id,label:e.name}}));return e.findIndex((function(e){var t=e.value;return(null==s?void 0:s.id)===t}))<0&&s?[{value:s.id,label:s.name}].concat(Object(tn.a)(e)):e}),[a,s]);return Object(p.useEffect)((function(){s&&r(s.name)}),[s]),s?Object(p.createElement)(oo.ComboboxControl,{label:Object(cn.__)("Author"),options:d,value:i,onFilterValueChange:Object(b.debounce)((function(e){r(e)}),300),onChange:function(e){e&&u({author:e})},isLoading:c,allowReset:!1}):null},Vo=n(64);var zo=function(){var e=Object(h.useDispatch)("core/editor").editPost,t=Object(h.useSelect)((function(e){var t=e("core").getAuthors();return{postAuthor:e("core/editor").getEditedPostAttribute("author"),authors:t.map((function(e){return{label:Object(Vo.decodeEntities)(e.name),value:e.id}}))}}),[]),n=t.postAuthor,r=t.authors;return Object(p.createElement)(oo.SelectControl,{className:"post-author-selector",label:Object(cn.__)("Author"),options:r,onChange:function(t){var n=Number(t);e({author:n})},value:n})};var Ho=function(){return Object(h.useSelect)((function(e){var t=e("core").getUsers({who:"authors",per_page:26});return(null==t?void 0:t.length)>=25}),[])?Object(p.createElement)(Mo,null):Object(p.createElement)(zo,null)};var Wo=Object(m.compose)([Object(h.withSelect)((function(e){var t=e("core/editor").getCurrentPost();return{hasAssignAuthorAction:Object(b.get)(t,["_links","wp:action-assign-author"],!1),postType:e("core/editor").getCurrentPostType(),authors:e("core").getAuthors()}})),m.withInstanceId])((function(e){var t=e.hasAssignAuthorAction,n=e.authors,r=e.children;return!t||!n||1>=n.length?null:Object(p.createElement)(Bo,{supportKeys:"author"},r)}));var Go=Object(m.compose)([Object(h.withSelect)((function(e){return{commentStatus:e("core/editor").getEditedPostAttribute("comment_status")}})),Object(h.withDispatch)((function(e){return{editPost:e("core/editor").editPost}}))])((function(e){var t=e.commentStatus,n=void 0===t?"open":t,r=Object(d.a)(e,["commentStatus"]);return Object(p.createElement)(oo.CheckboxControl,{label:Object(cn.__)("Allow comments"),checked:"open"===n,onChange:function(){return r.editPost({comment_status:"open"===n?"closed":"open"})}})}));var qo=Object(m.compose)([Object(h.withSelect)((function(e){return{excerpt:e("core/editor").getEditedPostAttribute("excerpt")}})),Object(h.withDispatch)((function(e){return{onUpdateExcerpt:function(t){e("core/editor").editPost({excerpt:t})}}}))])((function(e){var t=e.excerpt,n=e.onUpdateExcerpt;return Object(p.createElement)("div",{className:"editor-post-excerpt"},Object(p.createElement)(oo.TextareaControl,{label:Object(cn.__)("Write an excerpt (optional)"),className:"editor-post-excerpt__textarea",onChange:function(e){return n(e)},value:t}),Object(p.createElement)(oo.ExternalLink,{href:Object(cn.__)("https://wordpress.org/support/article/excerpt/")},Object(cn.__)("Learn more about manual excerpts")))}));var Ko=function(e){return Object(p.createElement)(Bo,Object(s.a)({},e,{supportKeys:"excerpt"}))};var Qo=Object(h.withSelect)((function(e){var t=e("core").getThemeSupports;return{postType:(0,e("core/editor").getEditedPostAttribute)("type"),themeSupports:t()}}))((function(e){var t=e.themeSupports,n=e.children,r=e.postType,o=e.supportKeys;return Object(b.some)(Object(b.castArray)(o),(function(e){var n=Object(b.get)(t,[e],!1);return"post-thumbnails"===e&&Object(b.isArray)(n)?Object(b.includes)(n,r):n}))?n:null}));var $o=function(e){return Object(p.createElement)(Qo,{supportKeys:"post-thumbnails"},Object(p.createElement)(Bo,Object(s.a)({},e,{supportKeys:"thumbnail"})))},Yo=["image"],Xo=Object(cn.__)("Featured image"),Jo=Object(cn.__)("Set featured image"),Zo=Object(cn.__)("Remove image");var ei=Object(h.withSelect)((function(e){var t=e("core"),n=t.getMedia,r=t.getPostType,o=e("core/editor"),i=o.getCurrentPostId,c=o.getEditedPostAttribute,a=c("featured_media");return{media:a?n(a):null,currentPostId:i(),postType:r(c("type")),featuredImageId:a}})),ti=Object(h.withDispatch)((function(e,t,n){var r=t.noticeOperations,o=n.select,i=e("core/editor").editPost;return{onUpdateImage:function(e){i({featured_media:e.id})},onDropImage:function(e){o("core/block-editor").getSettings().mediaUpload({allowedTypes:["image"],filesList:e,onFileChange:function(e){var t=Object(l.a)(e,1)[0];i({featured_media:t.id})},onError:function(e){r.removeAllNotices(),r.createErrorNotice(e)}})},onRemoveImage:function(){i({featured_media:0})}}})),ni=Object(m.compose)(oo.withNotices,ei,ti,Object(oo.withFilters)("editor.PostFeaturedImage"))((function(e){var t,n,r,o,c,a=e.currentPostId,s=e.featuredImageId,u=e.onUpdateImage,l=e.onDropImage,d=e.onRemoveImage,f=e.media,h=e.postType,m=e.noticeUI,O=Object(b.get)(h,["labels"],{}),g=Object(p.createElement)("p",null,Object(cn.__)("To edit the featured image, you need permission to upload media."));if(f){var j=Object(v.applyFilters)("editor.PostFeaturedImage.imageSize","post-thumbnail",f.id,a);if(Object(b.has)(f,["media_details","sizes",j]))r=f.media_details.sizes[j].width,o=f.media_details.sizes[j].height,c=f.media_details.sizes[j].source_url;else{var y=Object(v.applyFilters)("editor.PostFeaturedImage.imageSize","thumbnail",f.id,a);Object(b.has)(f,["media_details","sizes",y])?(r=f.media_details.sizes[y].width,o=f.media_details.sizes[y].height,c=f.media_details.sizes[y].source_url):(r=f.media_details.width,o=f.media_details.height,c=f.source_url)}}return Object(p.createElement)($o,null,m,Object(p.createElement)("div",{className:"editor-post-featured-image"},f&&Object(p.createElement)("div",{id:"editor-post-featured-image-".concat(s,"-describedby"),className:"hidden"},f.alt_text&&Object(cn.sprintf)(Object(cn.__)("Current image: %s"),f.alt_text),!f.alt_text&&Object(cn.sprintf)(Object(cn.__)("The current image has no alternative text. The file name is: %s"),(null===(t=f.media_details.sizes)||void 0===t||null===(n=t.full)||void 0===n?void 0:n.file)||f.slug)),Object(p.createElement)(i.MediaUploadCheck,{fallback:g},Object(p.createElement)(i.MediaUpload,{title:O.featured_image||Xo,onSelect:u,unstableFeaturedImageFlow:!0,allowedTypes:Yo,modalClass:"editor-post-featured-image__media-modal",render:function(e){var t=e.open;return Object(p.createElement)("div",{className:"editor-post-featured-image__container"},Object(p.createElement)(oo.Button,{className:s?"editor-post-featured-image__preview":"editor-post-featured-image__toggle",onClick:t,"aria-label":s?Object(cn.__)("Edit or update the image"):null,"aria-describedby":s?"editor-post-featured-image-".concat(s,"-describedby"):null},!!s&&f&&Object(p.createElement)(oo.ResponsiveWrapper,{naturalWidth:r,naturalHeight:o,isInline:!0},Object(p.createElement)("img",{src:c,alt:""})),!!s&&!f&&Object(p.createElement)(oo.Spinner,null),!s&&(O.set_featured_image||Jo)),Object(p.createElement)(oo.DropZone,{onFilesDrop:l}))},value:s})),!!s&&f&&!f.isLoading&&Object(p.createElement)(i.MediaUploadCheck,null,Object(p.createElement)(i.MediaUpload,{title:O.featured_image||Xo,onSelect:u,unstableFeaturedImageFlow:!0,allowedTypes:Yo,modalClass:"editor-post-featured-image__media-modal",render:function(e){var t=e.open;return Object(p.createElement)(oo.Button,{onClick:t,isSecondary:!0},Object(cn.__)("Replace Image"))}})),!!s&&Object(p.createElement)(i.MediaUploadCheck,null,Object(p.createElement)(oo.Button,{onClick:d,isLink:!0,isDestructive:!0},O.remove_featured_image||Zo))))}));var ri=Object(h.withSelect)((function(e){return{disablePostFormats:e("core/editor").getEditorSettings().disablePostFormats}}))((function(e){var t=e.disablePostFormats,n=Object(d.a)(e,["disablePostFormats"]);return!t&&Object(p.createElement)(Bo,Object(s.a)({},n,{supportKeys:"post-formats"}))})),oi=[{id:"aside",caption:Object(cn.__)("Aside")},{id:"audio",caption:Object(cn.__)("Audio")},{id:"chat",caption:Object(cn.__)("Chat")},{id:"gallery",caption:Object(cn.__)("Gallery")},{id:"image",caption:Object(cn.__)("Image")},{id:"link",caption:Object(cn.__)("Link")},{id:"quote",caption:Object(cn.__)("Quote")},{id:"standard",caption:Object(cn.__)("Standard")},{id:"status",caption:Object(cn.__)("Status")},{id:"video",caption:Object(cn.__)("Video")}].sort((function(e,t){var n=e.caption.toUpperCase(),r=t.caption.toUpperCase();return nr?1:0}));function ii(){var e=Object(m.useInstanceId)(ii),t="post-format-selector-".concat(e),n=Object(h.useSelect)((function(e){var t=e("core/editor"),n=t.getEditedPostAttribute,r=t.getSuggestedPostFormat,o=n("format"),i=e("core").getThemeSupports();return{postFormat:null!=o?o:"standard",suggestedFormat:r(),supportedFormats:Object(b.union)([o],Object(b.get)(i,["formats"],[]))}}),[]),r=n.postFormat,o=n.suggestedFormat,i=n.supportedFormats,c=oi.filter((function(e){return Object(b.includes)(i,e.id)})),a=Object(b.find)(c,(function(e){return e.id===o})),s=Object(h.useDispatch)("core/editor").editPost,u=function(e){return s({format:e})};return Object(p.createElement)(ri,null,Object(p.createElement)("div",{className:"editor-post-format"},Object(p.createElement)("div",{className:"editor-post-format__content"},Object(p.createElement)("label",{htmlFor:t},Object(cn.__)("Post Format")),Object(p.createElement)(oo.SelectControl,{value:r,onChange:function(e){return u(e)},id:t,options:c.map((function(e){return{label:e.caption,value:e.id}}))})),a&&a.id!==r&&Object(p.createElement)("div",{className:"editor-post-format__suggestion"},Object(cn.__)("Suggestion:")," ",Object(p.createElement)(oo.Button,{isLink:!0,onClick:function(){return u(a.id)}},a.caption))))}var ci=Object(p.createElement)(co.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(p.createElement)(co.Path,{d:"M5.5 12h1.75l-2.5 3-2.5-3H4a8 8 0 113.134 6.35l.907-1.194A6.5 6.5 0 105.5 12zm9.53 1.97l-2.28-2.28V8.5a.75.75 0 00-1.5 0V12a.747.747 0 00.218.529l1.282-.84-1.28.842 2.5 2.5a.75.75 0 101.06-1.061z"}));var ai=Object(h.withSelect)((function(e){var t=e("core/editor"),n=t.getCurrentPostLastRevisionId,r=t.getCurrentPostRevisionsCount;return{lastRevisionId:n(),revisionsCount:r()}}))((function(e){var t=e.lastRevisionId,n=e.revisionsCount,r=e.children;return!t||n<2?null:Object(p.createElement)(Bo,{supportKeys:"revisions"},r)}));var si=Object(h.withSelect)((function(e){var t=e("core/editor"),n=t.getCurrentPostLastRevisionId,r=t.getCurrentPostRevisionsCount;return{lastRevisionId:n(),revisionsCount:r()}}))((function(e){var t=e.lastRevisionId,n=e.revisionsCount;return Object(p.createElement)(ai,null,Object(p.createElement)(oo.Button,{href:H("revision.php",{revision:t,gutenberg:!0}),className:"editor-post-last-revision__title",icon:ci},Object(cn.sprintf)(Object(cn._n)("%d Revision","%d Revisions",n),n)))}));function ui(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Dr.a)(e);if(t){var o=Object(Dr.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Rr.a)(this,n)}}var li=function(e){Object(Ir.a)(n,e);var t=ui(n);function n(){var e;return Object(Br.a)(this,n),(e=t.apply(this,arguments)).buttonRef=Object(p.createRef)(),e.openPreviewWindow=e.openPreviewWindow.bind(Object(wo.a)(e)),e}return Object(Ar.a)(n,[{key:"componentDidUpdate",value:function(e){var t=this.props.previewLink;t&&!e.previewLink&&this.setPreviewWindowLink(t)}},{key:"setPreviewWindowLink",value:function(e){var t=this.previewWindow;t&&!t.closed&&(t.location=e,this.buttonRef.current&&this.buttonRef.current.focus())}},{key:"getWindowTarget",value:function(){var e=this.props.postId;return"wp-preview-".concat(e)}},{key:"openPreviewWindow",value:function(e){var t,n;(e.preventDefault(),this.previewWindow&&!this.previewWindow.closed||(this.previewWindow=window.open("",this.getWindowTarget())),this.previewWindow.focus(),this.props.isAutosaveable)?(this.props.isDraft?this.props.savePost({isPreview:!0}):this.props.autosave({isPreview:!0}),t=this.previewWindow.document,n=Object(p.renderToString)(Object(p.createElement)("div",{className:"editor-post-preview-button__interstitial-message"},Object(p.createElement)(oo.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 96 96"},Object(p.createElement)(oo.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"}),Object(p.createElement)(oo.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"})),Object(p.createElement)("p",null,Object(cn.__)("Generating preview…")))),n+='\n\t\t\n\t',n=Object(v.applyFilters)("editor.PostPreview.interstitialMarkup",n),t.write(n),t.title=Object(cn.__)("Generating preview…"),t.close()):this.setPreviewWindowLink(e.target.href)}},{key:"render",value:function(){var e=this.props,t=e.previewLink,n=e.currentPostLink,r=e.isSaveable,o=e.role,i=t||n,c=Mr()({"editor-post-preview":!this.props.className},this.props.className);return Object(p.createElement)(oo.Button,{isTertiary:!this.props.className,className:c,href:i,target:this.getWindowTarget(),disabled:!r,onClick:this.openPreviewWindow,ref:this.buttonRef,role:o},this.props.textContent?this.props.textContent:Object(p.createElement)(p.Fragment,null,Object(cn._x)("Preview","imperative verb"),Object(p.createElement)(oo.VisuallyHidden,{as:"span"},Object(cn.__)("(opens in a new tab)"))))}}]),n}(p.Component),di=Object(m.compose)([Object(h.withSelect)((function(e,t){var n=t.forcePreviewLink,r=t.forceIsAutosaveable,o=e("core/editor"),i=o.getCurrentPostId,c=o.getCurrentPostAttribute,a=o.getEditedPostAttribute,s=o.isEditedPostSaveable,u=o.isEditedPostAutosaveable,l=o.getEditedPostPreviewLink,d=e("core").getPostType,p=l(),f=d(a("type"));return{postId:i(),currentPostLink:c("link"),previewLink:void 0!==n?n:p,isSaveable:s(),isAutosaveable:r||u(),isViewable:Object(b.get)(f,["viewable"],!1),isDraft:-1!==["draft","auto-draft"].indexOf(a("status"))}})),Object(h.withDispatch)((function(e){return{autosave:e("core/editor").autosave,savePost:e("core/editor").savePost}})),Object(m.ifCondition)((function(e){return e.isViewable}))])(li);function pi(){var e="core/editor/post-locked-modal-"+Object(m.useInstanceId)(pi),t=Object(h.useDispatch)("core/editor"),n=t.autosave,r=t.updatePostLock,o=Object(h.useSelect)((function(e){var t=e("core/editor"),n=t.isPostLocked,r=t.isPostLockTakeover,o=t.getPostLockUser,i=t.getCurrentPostId,c=t.getActivePostLock,a=t.getEditedPostAttribute,s=t.getEditorSettings,u=e("core").getPostType;return{isLocked:n(),isTakeover:r(),user:o(),postId:i(),postLockUtils:s().postLockUtils,activePostLock:c(),postType:u(a("type"))}})),i=o.isLocked,c=o.isTakeover,a=o.user,s=o.postId,u=o.postLockUtils,l=o.activePostLock,d=o.postType;if(Object(p.useEffect)((function(){function t(){if(!i&&l){var e=new window.FormData;if(e.append("action","wp-remove-post-lock"),e.append("_wpnonce",u.unlockNonce),e.append("post_ID",s),e.append("active_post_lock",l),window.navigator.sendBeacon)window.navigator.sendBeacon(u.ajaxUrl,e);else{var t=new window.XMLHttpRequest;t.open("POST",u.ajaxUrl,!1),t.send(e)}}}return Object(v.addAction)("heartbeat.send",e,(function(e){i||(e["wp-refresh-post-lock"]={lock:l,post_id:s})})),Object(v.addAction)("heartbeat.tick",e,(function(e){if(e["wp-refresh-post-lock"]){var t=e["wp-refresh-post-lock"];t.lock_error?(n(),r({isLocked:!0,isTakeover:!0,user:{avatar:t.lock_error.avatar_src}})):t.new_lock&&r({isLocked:!1,activePostLock:t.new_lock})}})),window.addEventListener("beforeunload",t),function(){Object(v.removeAction)("heartbeat.send",e),Object(v.removeAction)("heartbeat.tick",e),window.removeEventListener("beforeunload",t)}}),[]),!i)return null;var f=a.name,O=a.avatar,g=Object(N.addQueryArgs)("post.php",{"get-post-lock":"1",lockKey:!0,post:s,action:"edit",_wpnonce:u.nonce}),j=H("edit.php",{post_type:Object(b.get)(d,["slug"])}),y=Object(cn.__)("Exit the Editor");return Object(p.createElement)(oo.Modal,{title:c?Object(cn.__)("Someone else has taken over this post."):Object(cn.__)("This post is already being edited."),focusOnMount:!0,shouldCloseOnClickOutside:!1,shouldCloseOnEsc:!1,isDismissible:!1,className:"editor-post-locked-modal"},!!O&&Object(p.createElement)("img",{src:O,alt:Object(cn.__)("Avatar"),className:"editor-post-locked-modal__avatar"}),!!c&&Object(p.createElement)("div",null,Object(p.createElement)("div",null,f?Object(cn.sprintf)(Object(cn.__)("%s now has editing control of this post. Don’t worry, your changes up to this moment have been saved."),f):Object(cn.__)("Another user now has editing control of this post. Don’t worry, your changes up to this moment have been saved.")),Object(p.createElement)("div",{className:"editor-post-locked-modal__buttons"},Object(p.createElement)(oo.Button,{isPrimary:!0,href:j},y))),!c&&Object(p.createElement)("div",null,Object(p.createElement)("div",null,f?Object(cn.sprintf)(Object(cn.__)("%s is currently working on this post, which means you cannot make changes, unless you take over."),f):Object(cn.__)("Another user is currently working on this post, which means you cannot make changes, unless you take over.")),Object(p.createElement)("div",{className:"editor-post-locked-modal__buttons"},Object(p.createElement)(oo.Button,{isSecondary:!0,href:j},y),Object(p.createElement)(di,null),Object(p.createElement)(oo.Button,{isPrimary:!0,href:g},Object(cn.__)("Take Over")))))}var bi=Object(m.compose)(Object(h.withSelect)((function(e){var t=e("core/editor"),n=t.isCurrentPostPublished,r=t.getCurrentPostType,o=t.getCurrentPost;return{hasPublishAction:Object(b.get)(o(),["_links","wp:action-publish"],!1),isPublished:n(),postType:r()}})))((function(e){var t=e.hasPublishAction,n=e.isPublished,r=e.children;return n||!t?null:r}));var fi=Object(m.compose)(Object(h.withSelect)((function(e){return{status:e("core/editor").getEditedPostAttribute("status")}})),Object(h.withDispatch)((function(e){return{onUpdateStatus:function(t){e("core/editor").editPost({status:t})}}})))((function(e){var t=e.status,n=e.onUpdateStatus;return Object(p.createElement)(bi,null,Object(p.createElement)(oo.CheckboxControl,{label:Object(cn.__)("Pending review"),checked:"pending"===t,onChange:function(){n("pending"===t?"draft":"pending")}}))}));var hi=Object(m.compose)([Object(h.withSelect)((function(e){return{pingStatus:e("core/editor").getEditedPostAttribute("ping_status")}})),Object(h.withDispatch)((function(e){return{editPost:e("core/editor").editPost}}))])((function(e){var t=e.pingStatus,n=void 0===t?"open":t,r=Object(d.a)(e,["pingStatus"]);return Object(p.createElement)(oo.CheckboxControl,{label:Object(cn.__)("Allow pingbacks & trackbacks"),checked:"open"===n,onChange:function(){return r.editPost({ping_status:"open"===n?"closed":"open"})}})}));var mi=Object(m.compose)([Object(h.withSelect)((function(e,t){var n=t.forceIsSaving,r=e("core/editor"),o=r.isCurrentPostPublished,i=r.isEditedPostBeingScheduled,c=r.isSavingPost,a=r.isPublishingPost,s=r.getCurrentPost,u=r.getCurrentPostType,l=r.isAutosavingPost;return{isPublished:o(),isBeingScheduled:i(),isSaving:n||c(),isPublishing:a(),hasPublishAction:Object(b.get)(s(),["_links","wp:action-publish"],!1),postType:u(),isAutosaving:l()}}))])((function(e){var t=e.isPublished,n=e.isBeingScheduled,r=e.isSaving,o=e.isPublishing,i=e.hasPublishAction,c=e.isAutosaving,a=e.hasNonPostEntityChanges;return o?Object(cn.__)("Publishing…"):t&&r&&!c?Object(cn.__)("Updating…"):n&&r&&!c?Object(cn.__)("Scheduling…"):i?t?a?Object(cn.__)("Update…"):Object(cn.__)("Update"):n?a?Object(cn.__)("Schedule…"):Object(cn.__)("Schedule"):Object(cn.__)("Publish"):a?Object(cn.__)("Submit for Review…"):Object(cn.__)("Submit for Review")}));function vi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Dr.a)(e);if(t){var o=Object(Dr.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Rr.a)(this,n)}}var Oi=function(e){Object(Ir.a)(n,e);var t=vi(n);function n(e){var r;return Object(Br.a)(this,n),(r=t.call(this,e)).buttonNode=Object(p.createRef)(),r.createOnClick=r.createOnClick.bind(Object(wo.a)(r)),r.closeEntitiesSavedStates=r.closeEntitiesSavedStates.bind(Object(wo.a)(r)),r.state={entitiesSavedStatesCallback:!1},r}return Object(Ar.a)(n,[{key:"componentDidMount",value:function(){this.props.focusOnMount&&this.buttonNode.current.focus()}},{key:"createOnClick",value:function(e){var t=this;return function(){for(var n=arguments.length,r=new Array(n),o=0;o1&&void 0!==arguments[1]?arguments[1]:"";r({status:e,password:t})}}})),m.withInstanceId])(wi);var Si=Object(h.withSelect)((function(e){return{visibility:e("core/editor").getEditedPostVisibility()}}))((function(e){var t=e.visibility;return Object(b.find)(yi,{value:t}).label}));var ki=Object(m.compose)([Object(h.withSelect)((function(e){return{date:e("core/editor").getEditedPostAttribute("date")}})),Object(h.withDispatch)((function(e){return{onUpdateDate:function(t){e("core/editor").editPost({date:t})}}}))])((function(e){var t=e.date,n=e.onUpdateDate,r=Object(p.useRef)(),o=Object(D.__experimentalGetSettings)(),i=/a(?!\\)/i.test(o.formats.time.toLowerCase().replace(/\\\\/g,"").split("").reverse().join(""));return Object(p.createElement)(oo.DateTimePicker,{ref:r,currentDate:t,onChange:function(e){n(e),r.current.ownerDocument.activeElement.blur()},is12Hour:i})}));var Ei=Object(h.withSelect)((function(e){return{date:e("core/editor").getEditedPostAttribute("date"),isFloating:e("core/editor").isEditedPostDateFloating()}}))((function(e){var t=e.date,n=e.isFloating,r=Object(D.__experimentalGetSettings)();return t&&!n?Object(D.format)("".concat(r.formats.date," ").concat(r.formats.time),t):Object(cn.__)("Immediately")}));function Ti(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Dr.a)(e);if(t){var o=Object(Dr.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Rr.a)(this,n)}}function Ci(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xi(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},n=this.props.taxonomy,r=xi(xi({},Bi),t),o=_()({path:Object(N.addQueryArgs)("/wp/v2/".concat(n.rest_base),r)});return o.then(Di).then((function(t){e.setState((function(e){return{availableTerms:e.availableTerms.concat(t.filter((function(t){return!Object(b.find)(e.availableTerms,(function(e){return e.id===t.id}))})))}})),e.updateSelectedTerms(e.props.terms)})),o}},{key:"updateSelectedTerms",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=t.reduce((function(t,n){var r=Object(b.find)(e.state.availableTerms,(function(e){return e.id===n}));return r&&t.push(r.name),t}),[]);this.setState({selectedTerms:n})}},{key:"findOrCreateTerm",value:function(e){var t=this,n=this.props.taxonomy,r=Object(b.escape)(e);return _()({path:"/wp/v2/".concat(n.rest_base),method:"POST",data:{name:r}}).catch((function(o){return"term_exists"===o.code?(t.addRequest=_()({path:Object(N.addQueryArgs)("/wp/v2/".concat(n.rest_base),xi(xi({},Bi),{},{search:r}))}).then(Di),t.addRequest.then((function(t){return Object(b.find)(t,(function(t){return Ii(t.name,e)}))}))):Promise.reject(o)})).then(Ri)}},{key:"onChange",value:function(e){var t=this,n=Object(b.uniqBy)(e,(function(e){return e.toLowerCase()}));this.setState({selectedTerms:n});var r=n.filter((function(e){return!Object(b.find)(t.state.availableTerms,(function(t){return Ii(t.name,e)}))})),o=function(e,t){return e.map((function(e){return Object(b.find)(t,(function(t){return Ii(t.name,e)})).id}))};if(0===r.length)return this.props.onUpdateTerms(o(n,this.state.availableTerms),this.props.taxonomy.rest_base);Promise.all(r.map(this.findOrCreateTerm)).then((function(e){var r=t.state.availableTerms.concat(e);return t.setState({availableTerms:r}),t.props.onUpdateTerms(o(n,r),t.props.taxonomy.rest_base)}))}},{key:"searchTerms",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";Object(b.invoke)(this.searchRequest,["abort"]),e.length>=3&&(this.searchRequest=this.fetchTerms({search:e}))}},{key:"render",value:function(){var e=this.props,t=e.slug,n=e.taxonomy;if(!e.hasAssignAction)return null;var r=this.state,o=r.loading,i=r.availableTerms,c=r.selectedTerms,a=i.map((function(e){return e.name})),s=Object(b.get)(n,["labels","add_new_item"],"post_tag"===t?Object(cn.__)("Add new tag"):Object(cn.__)("Add new Term")),u=Object(b.get)(n,["labels","singular_name"],"post_tag"===t?Object(cn.__)("Tag"):Object(cn.__)("Term")),l=Object(cn.sprintf)(Object(cn._x)("%s added","term"),u),d=Object(cn.sprintf)(Object(cn._x)("%s removed","term"),u),f=Object(cn.sprintf)(Object(cn._x)("Remove %s","term"),u);return Object(p.createElement)(oo.FormTokenField,{value:c,suggestions:a,onChange:this.onChange,onInputChange:this.searchTerms,maxSuggestions:20,disabled:o,label:s,messages:{added:l,removed:d,remove:f}})}}]),n}(p.Component),Li=Object(m.compose)(Object(h.withSelect)((function(e,t){var n=t.slug,r=e("core/editor").getCurrentPost,o=(0,e("core").getTaxonomy)(n);return{hasCreateAction:!!o&&Object(b.get)(r(),["_links","wp:action-create-"+o.rest_base],!1),hasAssignAction:!!o&&Object(b.get)(r(),["_links","wp:action-assign-"+o.rest_base],!1),terms:o?e("core/editor").getEditedPostAttribute(o.rest_base):[],taxonomy:o}})),Object(h.withDispatch)((function(e){return{onUpdateTerms:function(t,n){e("core/editor").editPost(Object(u.a)({},n,t))}}})),Object(oo.withFilters)("editor.PostTaxonomyType"))(Ni);function Ui(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Dr.a)(e);if(t){var o=Object(Dr.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Rr.a)(this,n)}}var Fi=function(){var e=[Object(cn.__)("Suggestion:"),Object(p.createElement)("span",{className:"editor-post-publish-panel__link",key:"label"},Object(cn.__)("Add tags"))];return Object(p.createElement)(oo.PanelBody,{initialOpen:!1,title:e},Object(p.createElement)("p",null,Object(cn.__)("Tags help users and search engines navigate your site and find your content. Add a few keywords to describe your post.")),Object(p.createElement)(Li,{slug:"post_tag"}))},Mi=function(e){Object(Ir.a)(n,e);var t=Ui(n);function n(e){var r;return Object(Br.a)(this,n),(r=t.call(this,e)).state={hadTagsWhenOpeningThePanel:e.hasTags},r}return Object(Ar.a)(n,[{key:"render",value:function(){return this.state.hadTagsWhenOpeningThePanel?null:Object(p.createElement)(Fi,null)}}]),n}(p.Component),Vi=Object(m.compose)(Object(h.withSelect)((function(e){var t=e("core/editor").getCurrentPostType(),n=e("core").getTaxonomy("post_tag"),r=n&&e("core/editor").getEditedPostAttribute(n.rest_base);return{areTagsFetched:void 0!==n,isPostTypeSupported:n&&Object(b.some)(n.types,(function(e){return e===t})),hasTags:r&&r.length}})),Object(m.ifCondition)((function(e){var t=e.areTagsFetched;return e.isPostTypeSupported&&t})))(Mi),zi=function(e,t){var n=oi.filter((function(t){return Object(b.includes)(e,t.id)}));return Object(b.find)(n,(function(e){return e.id===t}))},Hi=function(e){var t=e.suggestedPostFormat,n=e.suggestionText,r=e.onUpdatePostFormat;return Object(p.createElement)(oo.Button,{isLink:!0,onClick:function(){return r(t)}},n)};function Wi(){var e=Object(h.useSelect)((function(e){var t=e("core/editor"),n=t.getEditedPostAttribute,r=t.getSuggestedPostFormat,o=Object(b.get)(e("core").getThemeSupports(),["formats"],[]);return{currentPostFormat:n("format"),suggestion:zi(o,r())}}),[]),t=e.currentPostFormat,n=e.suggestion,r=Object(h.useDispatch)("core/editor").editPost,o=[Object(cn.__)("Suggestion:"),Object(p.createElement)("span",{className:"editor-post-publish-panel__link",key:"label"},Object(cn.__)("Use a post format"))];return n&&n.id!==t?Object(p.createElement)(oo.PanelBody,{initialOpen:!1,title:o},Object(p.createElement)("p",null,Object(cn.__)("Your theme uses post formats to highlight different kinds of content, like images or videos. Apply a post format to see this special styling.")),Object(p.createElement)("p",null,Object(p.createElement)(Hi,{onUpdatePostFormat:function(e){return r({format:e})},suggestedPostFormat:n.id,suggestionText:Object(cn.sprintf)(Object(cn.__)('Apply the "%1$s" format.'),n.caption)}))):null}var Gi=Object(h.withSelect)((function(e){var t=e("core/editor"),n=t.getCurrentPost,r=t.isEditedPostBeingScheduled;return{hasPublishAction:Object(b.get)(n(),["_links","wp:action-publish"],!1),isBeingScheduled:r()}}))((function(e){var t,n,r=e.hasPublishAction,o=e.isBeingScheduled,i=e.children;return r?o?(t=Object(cn.__)("Are you ready to schedule?"),n=Object(cn.__)("Your work will be published at the specified date and time.")):(t=Object(cn.__)("Are you ready to publish?"),n=Object(cn.__)("Double-check your settings before publishing.")):(t=Object(cn.__)("Are you ready to submit for review?"),n=Object(cn.__)("When you’re ready, submit your work for review, and an Editor will be able to approve it for you.")),Object(p.createElement)("div",{className:"editor-post-publish-panel__prepublish"},Object(p.createElement)("div",null,Object(p.createElement)("strong",null,t)),Object(p.createElement)("p",null,n),r&&Object(p.createElement)(p.Fragment,null,Object(p.createElement)(oo.PanelBody,{initialOpen:!1,title:[Object(cn.__)("Visibility:"),Object(p.createElement)("span",{className:"editor-post-publish-panel__link",key:"label"},Object(p.createElement)(Si,null))]},Object(p.createElement)(Pi,null)),Object(p.createElement)(oo.PanelBody,{initialOpen:!1,title:[Object(cn.__)("Publish:"),Object(p.createElement)("span",{className:"editor-post-publish-panel__link",key:"label"},Object(p.createElement)(Ei,null))]},Object(p.createElement)(ki,null))),Object(p.createElement)(Wi,null),Object(p.createElement)(Vi,null),i)}));function qi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Dr.a)(e);if(t){var o=Object(Dr.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Rr.a)(this,n)}}var Ki=function(e){Object(Ir.a)(n,e);var t=qi(n);function n(){var e;return Object(Br.a)(this,n),(e=t.apply(this,arguments)).state={showCopyConfirmation:!1},e.onCopy=e.onCopy.bind(Object(wo.a)(e)),e.onSelectInput=e.onSelectInput.bind(Object(wo.a)(e)),e.postLink=Object(p.createRef)(),e}return Object(Ar.a)(n,[{key:"componentDidMount",value:function(){this.props.focusOnMount&&this.postLink.current.focus()}},{key:"componentWillUnmount",value:function(){clearTimeout(this.dismissCopyConfirmation)}},{key:"onCopy",value:function(){var e=this;this.setState({showCopyConfirmation:!0}),clearTimeout(this.dismissCopyConfirmation),this.dismissCopyConfirmation=setTimeout((function(){e.setState({showCopyConfirmation:!1})}),4e3)}},{key:"onSelectInput",value:function(e){e.target.select()}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.isScheduled,r=e.post,o=e.postType,i=Object(b.get)(o,["labels","singular_name"]),c=Object(b.get)(o,["labels","view_item"]),a="future"===r.status?function(e){var t=e.slug;return e.permalink_template.includes("%postname%")?e.permalink_template.replace("%postname%",t):e.permalink_template}(r):r.link,s=n?Object(p.createElement)(p.Fragment,null,Object(cn.__)("is now scheduled. It will go live on")," ",Object(p.createElement)(Ei,null),"."):Object(cn.__)("is now live.");return Object(p.createElement)("div",{className:"post-publish-panel__postpublish"},Object(p.createElement)(oo.PanelBody,{className:"post-publish-panel__postpublish-header"},Object(p.createElement)("a",{ref:this.postLink,href:a},Object(Vo.decodeEntities)(r.title)||Object(cn.__)("(no title)"))," ",s),Object(p.createElement)(oo.PanelBody,null,Object(p.createElement)("p",{className:"post-publish-panel__postpublish-subheader"},Object(p.createElement)("strong",null,Object(cn.__)("What’s next?"))),Object(p.createElement)(oo.TextControl,{className:"post-publish-panel__postpublish-post-address",readOnly:!0,label:Object(cn.sprintf)(Object(cn.__)("%s address"),i),value:Object(N.safeDecodeURIComponent)(a),onFocus:this.onSelectInput}),Object(p.createElement)("div",{className:"post-publish-panel__postpublish-buttons"},!n&&Object(p.createElement)(oo.Button,{isSecondary:!0,href:a},c),Object(p.createElement)(oo.ClipboardButton,{isSecondary:!0,text:a,onCopy:this.onCopy},this.state.showCopyConfirmation?Object(cn.__)("Copied!"):Object(cn.__)("Copy Link")))),t)}}]),n}(p.Component),Qi=Object(h.withSelect)((function(e){var t=e("core/editor"),n=t.getEditedPostAttribute,r=t.getCurrentPost,o=t.isCurrentPostScheduled,i=e("core").getPostType;return{post:r(),postType:i(n("type")),isScheduled:o()}}))(Ki);function $i(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Dr.a)(e);if(t){var o=Object(Dr.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Rr.a)(this,n)}}var Yi=function(e){Object(Ir.a)(n,e);var t=$i(n);function n(){var e;return Object(Br.a)(this,n),(e=t.apply(this,arguments)).onSubmit=e.onSubmit.bind(Object(wo.a)(e)),e}return Object(Ar.a)(n,[{key:"componentDidUpdate",value:function(e){e.isPublished&&!this.props.isSaving&&this.props.isDirty&&this.props.onClose()}},{key:"onSubmit",value:function(){var e=this.props,t=e.onClose,n=e.hasPublishAction,r=e.isPostTypeViewable;n&&r||t()}},{key:"render",value:function(){var e=this.props,t=e.forceIsDirty,n=e.forceIsSaving,r=e.isBeingScheduled,o=e.isPublished,i=e.isPublishSidebarEnabled,c=e.isScheduled,a=e.isSaving,u=e.onClose,l=e.onTogglePublishSidebar,f=e.PostPublishExtension,h=e.PrePublishExtension,m=Object(d.a)(e,["forceIsDirty","forceIsSaving","isBeingScheduled","isPublished","isPublishSidebarEnabled","isScheduled","isSaving","onClose","onTogglePublishSidebar","PostPublishExtension","PrePublishExtension"]),v=Object(b.omit)(m,["hasPublishAction","isDirty","isPostTypeViewable"]),O=o||c&&r,g=!O&&!a,j=O&&!a;return Object(p.createElement)("div",Object(s.a)({className:"editor-post-publish-panel"},v),Object(p.createElement)("div",{className:"editor-post-publish-panel__header"},j?Object(p.createElement)(oo.Button,{onClick:u,icon:ji.a,label:Object(cn.__)("Close panel")}):Object(p.createElement)(p.Fragment,null,Object(p.createElement)("div",{className:"editor-post-publish-panel__header-publish-button"},Object(p.createElement)(gi,{focusOnMount:!0,onSubmit:this.onSubmit,forceIsDirty:t,forceIsSaving:n})),Object(p.createElement)("div",{className:"editor-post-publish-panel__header-cancel-button"},Object(p.createElement)(oo.Button,{onClick:u,isSecondary:!0},Object(cn.__)("Cancel"))))),Object(p.createElement)("div",{className:"editor-post-publish-panel__content"},g&&Object(p.createElement)(Gi,null,h&&Object(p.createElement)(h,null)),j&&Object(p.createElement)(Qi,{focusOnMount:!0},f&&Object(p.createElement)(f,null)),a&&Object(p.createElement)(oo.Spinner,null)),Object(p.createElement)("div",{className:"editor-post-publish-panel__footer"},Object(p.createElement)(oo.CheckboxControl,{label:Object(cn.__)("Always show pre-publish checks."),checked:i,onChange:l})))}}]),n}(p.Component),Xi=Object(m.compose)([Object(h.withSelect)((function(e){var t=e("core").getPostType,n=e("core/editor"),r=n.getCurrentPost,o=n.getEditedPostAttribute,i=n.isCurrentPostPublished,c=n.isCurrentPostScheduled,a=n.isEditedPostBeingScheduled,s=n.isEditedPostDirty,u=n.isSavingPost,l=e("core/editor").isPublishSidebarEnabled,d=t(o("type"));return{hasPublishAction:Object(b.get)(r(),["_links","wp:action-publish"],!1),isPostTypeViewable:Object(b.get)(d,["viewable"],!1),isBeingScheduled:a(),isDirty:s(),isPublished:i(),isPublishSidebarEnabled:l(),isSaving:u(),isScheduled:c()}})),Object(h.withDispatch)((function(e,t){var n=t.isPublishSidebarEnabled,r=e("core/editor"),o=r.disablePublishSidebar,i=r.enablePublishSidebar;return{onTogglePublishSidebar:function(){n?o():i()}}})),oo.withFocusReturn,oo.withConstrainedTabbing])(Yi),Ji=n(138),Zi=Object(p.createElement)(co.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(p.createElement)(co.Path,{d:"M14.9 9c1.8.2 3.1 1.7 3.1 3.5 0 1.9-1.6 3.5-3.5 3.5h-10C2.6 16 1 14.4 1 12.5 1 10.7 2.3 9.3 4.1 9 4 8.9 4 8.7 4 8.5 4 7.1 5.1 6 6.5 6c.3 0 .7.1.9.2C8.1 4.9 9.4 4 11 4c2.2 0 4 1.8 4 4 0 .4-.1.7-.1 1z"})),ec=n(161),tc=Object(p.createElement)(co.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(p.createElement)(co.Path,{d:"M14.8 9c.1-.3.2-.6.2-1 0-2.2-1.8-4-4-4-1.5 0-2.9.9-3.5 2.2-.3-.1-.7-.2-1-.2C5.1 6 4 7.1 4 8.5c0 .2 0 .4.1.5-1.8.3-3.1 1.7-3.1 3.5C1 14.4 2.6 16 4.5 16H8v-3H5l4.5-4.5L14 13h-3v3h3.5c1.9 0 3.5-1.6 3.5-3.5 0-1.8-1.4-3.3-3.2-3.5z"}));var nc=Object(m.compose)([Object(h.withSelect)((function(e){var t=e("core/editor"),n=t.isSavingPost,r=t.isCurrentPostPublished,o=t.isCurrentPostScheduled;return{isSaving:n(),isPublished:r(),isScheduled:o()}})),Object(h.withDispatch)((function(e){var t=e("core/editor"),n=t.editPost,r=t.savePost;return{onClick:function(){n({status:"draft"}),r()}}}))])((function(e){var t=e.isSaving,n=e.isPublished,r=e.isScheduled,o=e.onClick,i=Object(m.useViewportMatch)("small","<");return n||r?Object(p.createElement)(oo.Button,{className:"editor-post-switch-to-draft",onClick:function(){var e;n?e=Object(cn.__)("Are you sure you want to unpublish this post?"):r&&(e=Object(cn.__)("Are you sure you want to unschedule this post?")),window.confirm(e)&&o()},disabled:t,isTertiary:!0},i?Object(cn.__)("Draft"):Object(cn.__)("Switch to draft")):null}));function rc(e){var t=e.forceIsDirty,n=e.forceIsSaving,r=e.showIconLabels,o=void 0!==r&&r,i=Object(p.useState)(!1),c=Object(l.a)(i,2),a=c[0],s=c[1],u=Object(m.useViewportMatch)("small"),d=Object(h.useSelect)((function(e){var r,o,i,c=e("core/editor"),a=c.isEditedPostNew,s=c.isCurrentPostPublished,u=c.isCurrentPostScheduled,l=c.isEditedPostDirty,d=c.isSavingPost,p=c.isEditedPostSaveable,b=c.getCurrentPost,f=c.isAutosavingPost,h=c.getEditedPostAttribute;return{isAutosaving:f(),isDirty:t||l(),isNew:a(),isPending:"pending"===h("status"),isPublished:s(),isSaving:n||d(),isSaveable:p(),isScheduled:u(),hasPublishAction:null!==(r=null===(o=b())||void 0===o||null===(i=o._links)||void 0===i?void 0:i["wp:action-publish"])&&void 0!==r&&r}}),[t,n]),b=d.isAutosaving,f=d.isDirty,v=d.isNew,O=d.isPending,g=d.isPublished,j=d.isSaveable,y=d.isSaving,_=d.isScheduled,w=d.hasPublishAction,P=Object(h.useDispatch)("core/editor").savePost,S=Object(m.usePrevious)(y);if(Object(p.useEffect)((function(){var e;return S&&!y&&(s(!0),e=setTimeout((function(){s(!1)}),1e3)),function(){return clearTimeout(e)}}),[y]),y){var k=Mr()("editor-post-saved-state","is-saving",Object(oo.__unstableGetAnimateClassName)({type:"loading"}),{"is-autosaving":b});return Object(p.createElement)("span",{className:k},Object(p.createElement)(Ji.a,{icon:Zi}),b?Object(cn.__)("Autosaving"):Object(cn.__)("Saving"))}if(g||_)return Object(p.createElement)(nc,null);if(!j)return null;if(a||!v&&!f)return Object(p.createElement)("span",{className:"editor-post-saved-state is-saved"},Object(p.createElement)(Ji.a,{icon:ec.a}),Object(cn.__)("Saved"));if(!w&&O)return null;var E=O?Object(cn.__)("Save as pending"):Object(cn.__)("Save draft"),T=Object(cn.__)("Save");return u?Object(p.createElement)(oo.Button,{className:"editor-post-save-draft",onClick:function(){return P()},shortcut:io.displayShortcut.primary("s"),isTertiary:!0},E):Object(p.createElement)(oo.Button,{className:"editor-post-save-draft",label:E,onClick:function(){return P()},shortcut:io.displayShortcut.primary("s"),icon:tc},o&&T)}var oc=Object(m.compose)([Object(h.withSelect)((function(e){var t=e("core/editor"),n=t.getCurrentPost,r=t.getCurrentPostType;return{hasPublishAction:Object(b.get)(n(),["_links","wp:action-publish"],!1),postType:r()}}))])((function(e){var t=e.hasPublishAction,n=e.children;return t?n:null}));function ic(e){var t=e.children;return Object(p.createElement)(Bo,{supportKeys:"slug"},t)}function cc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Dr.a)(e);if(t){var o=Object(Dr.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Rr.a)(this,n)}}var ac=function(e){Object(Ir.a)(n,e);var t=cc(n);function n(e){var r,o=e.postSlug,i=e.postTitle,c=e.postID;return Object(Br.a)(this,n),(r=t.apply(this,arguments)).state={editedSlug:Object(N.safeDecodeURIComponent)(o)||W(i)||c},r.setSlug=r.setSlug.bind(Object(wo.a)(r)),r}return Object(Ar.a)(n,[{key:"setSlug",value:function(e){var t=this.props,n=t.postSlug,r=t.onUpdateSlug,o=W(e.target.value);o!==n&&r(o)}},{key:"render",value:function(){var e=this,t=this.props.instanceId,n=this.state.editedSlug,r="editor-post-slug-"+t;return Object(p.createElement)(ic,null,Object(p.createElement)("label",{htmlFor:r},Object(cn.__)("Slug")),Object(p.createElement)("input",{type:"text",id:r,value:n,onChange:function(t){return e.setState({editedSlug:t.target.value})},onBlur:this.setSlug,className:"editor-post-slug__input"}))}}]),n}(p.Component),sc=Object(m.compose)([Object(h.withSelect)((function(e){var t=e("core/editor"),n=t.getCurrentPost,r=t.getEditedPostAttribute,o=n().id;return{postSlug:r("slug"),postTitle:r("title"),postID:o}})),Object(h.withDispatch)((function(e){var t=e("core/editor").editPost;return{onUpdateSlug:function(e){t({slug:e})}}})),m.withInstanceId])(ac);var uc=Object(m.compose)([Object(h.withSelect)((function(e){var t=e("core/editor").getCurrentPost();return{hasStickyAction:Object(b.get)(t,["_links","wp:action-sticky"],!1),postType:e("core/editor").getCurrentPostType()}}))])((function(e){var t=e.hasStickyAction,n=e.postType,r=e.children;return"post"===n&&t?r:null}));var lc=Object(m.compose)([Object(h.withSelect)((function(e){return{postSticky:e("core/editor").getEditedPostAttribute("sticky")}})),Object(h.withDispatch)((function(e){return{onUpdateSticky:function(t){e("core/editor").editPost({sticky:t})}}}))])((function(e){var t=e.onUpdateSticky,n=e.postSticky,r=void 0!==n&&n;return Object(p.createElement)(uc,null,Object(p.createElement)(oo.CheckboxControl,{label:Object(cn.__)("Stick to the top of the blog"),checked:r,onChange:function(){return t(!r)}}))}));function dc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pc(e){for(var t=1;t0)};return e.sort((function(e,t){var r=n(e),o=n(t);return r===o?0:r&&!o?-1:!r&&o?1:0})),e}},{key:"setFilterValue",value:function(e){var t=this.state.availableTermsTree,n=e.target.value,r=t.map(this.getFilterMatcher(n)).filter((function(e){return e}));this.setState({filterValue:n,filteredTermsTree:r});var o=function e(t){for(var n=0,r=0;r0&&(r.children=r.children.map(t).filter((function(e){return e}))),(-1!==r.name.toLowerCase().indexOf(e.toLowerCase())||r.children.length>0)&&r}}},{key:"renderTerms",value:function(e){var t=this,n=this.props.terms,r=void 0===n?[]:n;return e.map((function(e){return Object(p.createElement)("div",{key:e.id,className:"editor-post-taxonomies__hierarchical-terms-choice"},Object(p.createElement)(oo.CheckboxControl,{checked:-1!==r.indexOf(e.id),onChange:function(){var n=parseInt(e.id,10);t.onChange(n)},label:Object(b.unescape)(e.name)}),!!e.children.length&&Object(p.createElement)("div",{className:"editor-post-taxonomies__hierarchical-terms-subchoices"},t.renderTerms(e.children)))}))}},{key:"render",value:function(){var e=this.props,t=e.slug,n=e.taxonomy,r=e.instanceId,o=e.hasCreateAction;if(!e.hasAssignAction)return null;var i=this.state,c=i.availableTermsTree,a=i.availableTerms,s=i.filteredTermsTree,u=i.formName,l=i.formParent,d=i.loading,f=i.showForm,h=i.filterValue,m=function(e,r,o){return Object(b.get)(n,["labels",e],"category"===t?r:o)},v=m("add_new_item",Object(cn.__)("Add new category"),Object(cn.__)("Add new term")),O=m("new_item_name",Object(cn.__)("Add new category"),Object(cn.__)("Add new term")),g=m("parent_item",Object(cn.__)("Parent Category"),Object(cn.__)("Parent Term")),j="— ".concat(g," —"),y=v,_="editor-post-taxonomies__hierarchical-terms-input-".concat(r),w="editor-post-taxonomies__hierarchical-terms-filter-".concat(r),P=Object(b.get)(this.props.taxonomy,["labels","search_items"],Object(cn.__)("Search Terms")),S=Object(b.get)(this.props.taxonomy,["name"],Object(cn.__)("Terms")),k=a.length>=8;return[k&&Object(p.createElement)("label",{key:"filter-label",htmlFor:w},P),k&&Object(p.createElement)("input",{type:"search",id:w,value:h,onChange:this.setFilterValue,className:"editor-post-taxonomies__hierarchical-terms-filter",key:"term-filter-input"}),Object(p.createElement)("div",{className:"editor-post-taxonomies__hierarchical-terms-list",key:"term-list",tabIndex:"0",role:"group","aria-label":S},this.renderTerms(""!==h?s:c)),!d&&o&&Object(p.createElement)(oo.Button,{key:"term-add-button",onClick:this.onToggleForm,className:"editor-post-taxonomies__hierarchical-terms-add","aria-expanded":f,isLink:!0},v),f&&Object(p.createElement)("form",{onSubmit:this.onAddTerm,key:"hierarchical-terms-form"},Object(p.createElement)("label",{htmlFor:_,className:"editor-post-taxonomies__hierarchical-terms-label"},O),Object(p.createElement)("input",{type:"text",id:_,className:"editor-post-taxonomies__hierarchical-terms-input",value:u,onChange:this.onChangeFormName,required:!0}),!!a.length&&Object(p.createElement)(oo.TreeSelect,{label:g,noOptionLabel:j,onChange:this.onChangeFormParent,selectedId:l,tree:c}),Object(p.createElement)(oo.Button,{isSecondary:!0,type:"submit",className:"editor-post-taxonomies__hierarchical-terms-submit"},y))]}}]),n}(p.Component),mc=Object(m.compose)([Object(h.withSelect)((function(e,t){var n=t.slug,r=e("core/editor").getCurrentPost,o=(0,e("core").getTaxonomy)(n);return{hasCreateAction:!!o&&Object(b.get)(r(),["_links","wp:action-create-"+o.rest_base],!1),hasAssignAction:!!o&&Object(b.get)(r(),["_links","wp:action-assign-"+o.rest_base],!1),terms:o?e("core/editor").getEditedPostAttribute(o.rest_base):[],taxonomy:o}})),Object(h.withDispatch)((function(e){return{onUpdateTerms:function(t,n){e("core/editor").editPost(Object(u.a)({},n,t))}}})),oo.withSpokenMessages,m.withInstanceId,Object(oo.withFilters)("editor.PostTaxonomyType")])(hc);var vc=Object(m.compose)([Object(h.withSelect)((function(e){return{postType:e("core/editor").getCurrentPostType(),taxonomies:e("core").getTaxonomies({per_page:-1})}}))])((function(e){var t=e.postType,n=e.taxonomies,r=e.taxonomyWrapper,o=void 0===r?b.identity:r,i=Object(b.filter)(n,(function(e){return Object(b.includes)(e.types,t)}));return Object(b.filter)(i,(function(e){return e.visibility.show_ui})).map((function(e){var t=e.hierarchical?mc:Li;return Object(p.createElement)(p.Fragment,{key:"taxonomy-".concat(e.slug)},o(Object(p.createElement)(t,{slug:e.slug}),e))}))}));var Oc=Object(m.compose)([Object(h.withSelect)((function(e){return{postType:e("core/editor").getCurrentPostType(),taxonomies:e("core").getTaxonomies({per_page:-1})}}))])((function(e){var t=e.postType,n=e.taxonomies,r=e.children;return Object(b.some)(n,(function(e){return Object(b.includes)(e.types,t)}))?r:null})),gc=n(91),jc=n.n(gc);function yc(){var e=Object(h.useSelect)((function(e){return e("core/editor").getEditedPostContent()}),[]),t=Object(h.useDispatch)("core/editor"),n=t.editPost,r=t.resetEditorBlocks,o=Object(p.useState)(e),i=Object(l.a)(o,2),c=i[0],a=i[1],s=Object(p.useState)(!1),u=Object(l.a)(s,2),d=u[0],b=u[1],v=Object(m.useInstanceId)(yc);d||c===e||a(e);var O=function(){var e=Object(f.parse)(c);r(e)};Object(p.useEffect)((function(){var e=setTimeout(O,300);return function(){clearTimeout(e)}}),[c]);return Object(p.createElement)(p.Fragment,null,Object(p.createElement)(oo.VisuallyHidden,{as:"label",htmlFor:"post-content-".concat(v)},Object(cn.__)("Type text or HTML")),Object(p.createElement)(jc.a,{autoComplete:"off",dir:"auto",value:c,onChange:function(e){var t=e.target.value;n({content:t}),a(t),b(!0)},onBlur:function(){d&&(O(),b(!1))},className:"editor-post-text-editor",id:"post-content-".concat(v),placeholder:Object(cn.__)("Start writing with text or HTML")}))}var _c=/[\r\n]+/g;function wc(){var e=Object(m.useInstanceId)(wc),t=Object(p.useRef)(),n=Object(p.useState)(!1),r=Object(l.a)(n,2),o=r[0],i=r[1],c=Object(h.useDispatch)("core/editor").editPost,a=Object(h.useDispatch)("core/block-editor"),s=a.insertDefaultBlock,u=a.clearSelectedBlock,d=a.insertBlocks,b=Object(h.useSelect)((function(e){var t=e("core/editor"),n=t.getEditedPostAttribute,r=t.isCleanNewPost,o=(0,e("core/block-editor").getSettings)(),i=o.titlePlaceholder,c=o.focusMode,a=o.hasFixedToolbar;return{isCleanNewPost:r(),title:n("title"),placeholder:i,isFocusMode:c,hasFixedToolbar:a}})),v=b.isCleanNewPost,O=b.title,g=b.placeholder,j=b.isFocusMode,y=b.hasFixedToolbar;function _(e){d(e,0)}function w(e){c({title:e})}function P(){i(!1)}Object(p.useEffect)((function(){var e=t.current.ownerDocument,n=e.activeElement,r=e.body;!v||n&&r!==n||t.current.focus()}),[v]);var S=Mr()("wp-block editor-post-title editor-post-title__block",{"is-selected":o,"is-focus-mode":j,"has-fixed-toolbar":y}),k=Object(Vo.decodeEntities)(g);return Object(p.createElement)(Bo,{supportKeys:"title"},Object(p.createElement)("div",{className:S},Object(p.createElement)(oo.VisuallyHidden,{as:"label",htmlFor:"post-title-".concat(e)},k||Object(cn.__)("Add title")),Object(p.createElement)(jc.a,{ref:t,id:"post-title-".concat(e),className:"editor-post-title__input",value:O,onChange:function(e){w(e.target.value.replace(_c," "))},placeholder:k||Object(cn.__)("Add title"),onFocus:function(){i(!0),u()},onBlur:P,onKeyDown:function(e){e.keyCode===io.ENTER&&(e.preventDefault(),s(void 0,void 0,0))},onKeyPress:P,onPaste:function(e){var t=e.clipboardData,n="",r="";try{n=t.getData("text/plain"),r=t.getData("text/html")}catch(e){try{r=t.getData("Text")}catch(e){return}}window.console.log("Received HTML:\n\n",r),window.console.log("Received plain text:\n\n",n);var o=Object(f.pasteHandler)({HTML:r,plainText:n});if("string"!=typeof o&&o.length){e.preventDefault();var i=Object(l.a)(o,1)[0];O||"core/heading"!==i.name&&"core/paragraph"!==i.name?_(o):(w(i.attributes.content),_(o.slice(1)))}}})))}var Pc=Object(m.compose)([Object(h.withSelect)((function(e){var t=e("core/editor"),n=t.isEditedPostNew,r=t.getCurrentPostId,o=t.getCurrentPostType;return{isNew:n(),postId:r(),postType:o()}})),Object(h.withDispatch)((function(e){return{trashPost:e("core/editor").trashPost}}))])((function(e){var t=e.isNew,n=e.postId,r=e.postType,o=Object(d.a)(e,["isNew","postId","postType"]);return t||!n?null:Object(p.createElement)(oo.Button,{className:"editor-post-trash",isDestructive:!0,isTertiary:!0,onClick:function(){return o.trashPost(n,r)}},Object(cn.__)("Move to trash"))}));var Sc=Object(h.withSelect)((function(e){var t=e("core/editor"),n=t.isEditedPostNew,r=t.getCurrentPostId,o=t.getCurrentPostType,i=e("core"),c=i.getPostType,a=i.canUser,s=r(),u=c(o()),l=(null==u?void 0:u.rest_base)||"";return{isNew:n(),postId:s,canUserDelete:!(!s||!l)&&a("delete",l,s)}}))((function(e){var t=e.isNew,n=e.postId,r=e.canUserDelete,o=e.children;return!t&&n&&r?o:null}));var kc=Object(m.compose)([Object(h.withSelect)((function(e){var t=e("core/editor"),n=t.getCurrentPost,r=t.getCurrentPostType;return{hasPublishAction:Object(b.get)(n(),["_links","wp:action-publish"],!1),postType:r()}}))])((function(e){var t=e.hasPublishAction;return(0,e.render)({canEdit:t})})),Ec=Object(p.createElement)(co.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(p.createElement)(co.Path,{d:"M12 3.2c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8 0-4.8-4-8.8-8.8-8.8zm0 16c-4 0-7.2-3.3-7.2-7.2C4.8 8 8 4.8 12 4.8s7.2 3.3 7.2 7.2c0 4-3.2 7.2-7.2 7.2zM11 17h2v-6h-2v6zm0-8h2V7h-2v2z"})),Tc=n(126);function Cc(){var e=Object(h.useSelect)((function(e){return e("core/editor").getEditedPostAttribute("content")})),t=Object(cn._x)("words","Word count type. Do not translate!");return Object(p.createElement)("span",{className:"word-count"},Object(Tc.count)(e,t))}function xc(){var e=Object(h.useSelect)((function(e){return e("core/editor").getEditedPostAttribute("content")}));return Object(Tc.count)(e,"characters_including_spaces")}var Bc=function(e){var t=e.hasOutlineItemsDisabled,n=e.onRequestClose,r=Object(h.useSelect)((function(e){var t=e("core/block-editor").getGlobalBlockCount;return{headingCount:t("core/heading"),paragraphCount:t("core/paragraph"),numberOfBlocks:t()}}),[]),o=r.headingCount,i=r.paragraphCount,c=r.numberOfBlocks;return Object(p.createElement)(p.Fragment,null,Object(p.createElement)("div",{className:"table-of-contents__wrapper",role:"note","aria-label":Object(cn.__)("Document Statistics"),tabIndex:"0"},Object(p.createElement)("ul",{role:"list",className:"table-of-contents__counts"},Object(p.createElement)("li",{className:"table-of-contents__count"},Object(cn.__)("Characters"),Object(p.createElement)("span",{className:"table-of-contents__number"},Object(p.createElement)(xc,null))),Object(p.createElement)("li",{className:"table-of-contents__count"},Object(cn.__)("Words"),Object(p.createElement)(Cc,null)),Object(p.createElement)("li",{className:"table-of-contents__count"},Object(cn.__)("Headings"),Object(p.createElement)("span",{className:"table-of-contents__number"},o)),Object(p.createElement)("li",{className:"table-of-contents__count"},Object(cn.__)("Paragraphs"),Object(p.createElement)("span",{className:"table-of-contents__number"},i)),Object(p.createElement)("li",{className:"table-of-contents__count"},Object(cn.__)("Blocks"),Object(p.createElement)("span",{className:"table-of-contents__number"},c)))),o>0&&Object(p.createElement)(p.Fragment,null,Object(p.createElement)("hr",null),Object(p.createElement)("h2",{className:"table-of-contents__title"},Object(cn.__)("Document Outline")),Object(p.createElement)($r,{onSelect:n,hasOutlineItemsDisabled:t})))};var Ac=Object(p.forwardRef)((function(e,t){var n=e.hasOutlineItemsDisabled,r=e.repositionDropdown,o=Object(d.a)(e,["hasOutlineItemsDisabled","repositionDropdown"]),i=Object(h.useSelect)((function(e){return!!e("core/block-editor").getBlockCount()}),[]);return Object(p.createElement)(oo.Dropdown,{position:r?"middle right right":"bottom",className:"table-of-contents",contentClassName:"table-of-contents__popover",renderToggle:function(e){var n=e.isOpen,r=e.onToggle;return Object(p.createElement)(oo.Button,Object(s.a)({},o,{ref:t,onClick:i?r:void 0,icon:Ec,"aria-expanded":n,"aria-haspopup":"true",label:Object(cn.__)("Details"),tooltipPosition:"bottom","aria-disabled":!i}))},renderContent:function(e){var t=e.onClose;return Object(p.createElement)(Bc,{onRequestClose:t,hasOutlineItemsDisabled:n})}})}));function Ic(){var e=Object(h.useSelect)((function(e){return function(){return(0,e("core").__experimentalGetDirtyEntityRecords)().length>0}}),[]),t=function(t){if(e())return t.returnValue=Object(cn.__)("You have unsaved changes. If you proceed, they will be lost."),t.returnValue};return Object(p.useEffect)((function(){return window.addEventListener("beforeunload",t),function(){window.removeEventListener("beforeunload",t)}}),[]),null}var Rc=n(146),Dc=Object(m.createHigherOrderComponent)((function(e){return Object(h.withRegistry)((function(t){var n=t.useSubRegistry,r=void 0===n||n,o=t.registry,c=Object(d.a)(t,["useSubRegistry","registry"]);if(!r)return Object(p.createElement)(e,c);var a=Object(p.useState)(null),s=Object(l.a)(a,2),u=s[0],b=s[1];return Object(p.useEffect)((function(){var e=Object(h.createRegistry)({"core/block-editor":i.storeConfig},o);e.registerStore("core/editor",Cr),b(e)}),[o]),u?Object(p.createElement)(h.RegistryProvider,{value:u},Object(p.createElement)(e,c)):null}))}),"withRegistryProvider"),Nc=n(47),Lc=n(154);function Uc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fc(e){for(var t=1;t1&&void 0!==f[1]?f[1]:{},r=n.isInitialSuggestions,o=n.type,i=n.subtype,c=n.page,a=n.perPage,s=f.length>2&&void 0!==f[2]?f[2]:{},u=s.disablePostFormats,l=void 0!==u&&u,d=a||r?3:20,p=[],o&&"post"!==o||p.push(_()({path:Object(N.addQueryArgs)("/wp/v2/search",{search:t,page:c,per_page:d,type:"post",subtype:i})}).catch((function(){return[]}))),o&&"term"!==o||p.push(_()({path:Object(N.addQueryArgs)("/wp/v2/search",{search:t,page:c,per_page:d,type:"term",subtype:i})}).catch((function(){return[]}))),l||o&&"post-format"!==o||p.push(_()({path:Object(N.addQueryArgs)("/wp/v2/search",{search:t,page:c,per_page:d,type:"post-format",subtype:i})}).catch((function(){return[]}))),e.abrupt("return",Promise.all(p).then((function(e){return Object(b.map)(Object(b.flatten)(e).filter((function(e){return!!e.id})).slice(0,d),(function(e){return{id:e.id,url:e.url,title:Object(Vo.decodeEntities)(e.title)||Object(cn.__)("(no title)"),type:e.subtype||e.type}}))})));case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();var Wc=function(e,t){var n=Object(h.useSelect)((function(e){var t=e(xr),n=t.canUserUseUnfilteredHTML,r=t.isPostTitleSelected,o=e(c.store).canUser;return{canUseUnfilteredHTML:n(),reusableBlocks:e(c.store).getEntityRecords("postType","wp_block",{per_page:p.Platform.select({web:-1,native:100})}),hasUploadPermissions:Object(b.defaultTo)(o("create","media"),!0),isTitleSelected:r&&r()}}),[]),r=n.reusableBlocks,o=n.hasUploadPermissions,i=n.canUseUnfilteredHTML,a=n.isTitleSelected,s=Object(h.useDispatch)(xr).undo;return Object(p.useMemo)((function(){return zc(zc({},Object(b.pick)(e,["__experimentalBlockDirectory","__experimentalBlockPatternCategories","__experimentalBlockPatterns","__experimentalFeatures","__experimentalGlobalStylesBaseStyles","__experimentalGlobalStylesUserEntityId","__experimentalPreferredStyleVariations","__experimentalSetIsInserterOpened","alignWide","allowedBlockTypes","availableLegacyWidgets","bodyPlaceholder","codeEditingEnabled","colors","disableCustomColors","disableCustomFontSizes","disableCustomGradients","enableCustomLineHeight","enableCustomSpacing","enableCustomUnits","focusMode","fontSizes","gradients","hasFixedToolbar","hasReducedUI","imageDimensions","imageEditing","imageSizes","isRTL","keepCaretInsideBlock","maxWidth","onUpdateDefaultBlockStyles","styles","template","templateLock","titlePlaceholder"])),{},{mediaUpload:o?Mc:void 0,__experimentalReusableBlocks:r,__experimentalFetchLinkSuggestions:Object(b.partialRight)(Hc,e),__experimentalCanUserUseUnfilteredHTML:i,__experimentalUndo:s,__experimentalShouldInsertAtTheTop:a,outlineMode:t})}),[e,o,r,i,s,a,t])};var Gc=Dc((function(e){var t=e.__unstableTemplate,n=e.post,r=e.settings,o=e.recovery,a=e.initialEdits,s=e.children,u=Object(p.useMemo)((function(){return"wp_template"===n.type?{}:{postId:n.id,postType:n.type}}),[n.id,n.type]),d=Object(h.useSelect)((function(e){var t=e(xr),n=t.getEditorSelectionStart,r=t.getEditorSelectionEnd;return{isReady:(0,t.__unstableIsEditorReady)(),selectionStart:n(),selectionEnd:r()}}),[]),b=d.selectionEnd,f=d.selectionStart,m=d.isReady,v=null!=t?t:n,O=v.id,g=v.type,j=Object(c.useEntityBlockEditor)("postType",g,{id:O}),y=Object(l.a)(j,3),_=y[0],w=y[1],P=y[2],S=Wc(r,!!t),k=Object(h.useDispatch)(xr),E=k.updatePostLock,T=k.setupEditor,C=k.updateEditorSettings,x=k.__experimentalTearDownEditor,B=Object(h.useDispatch)(on.store).createWarningNotice;return Object(p.useLayoutEffect)((function(){if(!o)return E(r.postLock),T(n,a,r.template),r.autosave&&B(Object(cn.__)("There is an autosave of this post that is more recent than the version below."),{id:"autosave-exists",actions:[{label:Object(cn.__)("View the autosave"),url:r.autosave.editLink}]}),function(){x()}}),[]),Object(p.useEffect)((function(){C(r)}),[r]),m?Object(p.createElement)(c.EntityProvider,{kind:"root",type:"site"},Object(p.createElement)(c.EntityProvider,{kind:"postType",type:n.type,id:n.id},Object(p.createElement)(i.BlockContextProvider,{value:u},Object(p.createElement)(i.BlockEditorProvider,{value:_,onChange:P,onInput:w,selectionStart:f,selectionEnd:b,settings:S,useSubRegistry:!1},s,Object(p.createElement)(Rc.ReusableBlocksMenuItems,null))))):null})),qc=n(80),Kc=n.n(qc);function Qc(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=Object(p.forwardRef)((function(n,r){return U()("wp.editor."+e,{alternative:"wp.blockEditor."+e}),Object(p.createElement)(t,Object(s.a)({ref:r},n))}));return n.forEach((function(n){r[n]=Qc(e+"."+n,t[n])})),r}function $c(e,t){return function(){return U()("wp.editor."+e,{alternative:"wp.blockEditor."+e}),t.apply(void 0,arguments)}}var Yc=Qc("RichText",i.RichText,["Content"]);Yc.isEmpty=$c("RichText.isEmpty",i.RichText.isEmpty);var Xc=Qc("Autocomplete",i.Autocomplete),Jc=Qc("AlignmentToolbar",i.AlignmentToolbar),Zc=Qc("BlockAlignmentToolbar",i.BlockAlignmentToolbar),ea=Qc("BlockControls",i.BlockControls,["Slot"]),ta=Qc("BlockEdit",i.BlockEdit),na=Qc("BlockEditorKeyboardShortcuts",i.BlockEditorKeyboardShortcuts),ra=Qc("BlockFormatControls",i.BlockFormatControls,["Slot"]),oa=Qc("BlockIcon",i.BlockIcon),ia=Qc("BlockInspector",i.BlockInspector),ca=Qc("BlockList",i.BlockList),aa=Qc("BlockMover",i.BlockMover),sa=Qc("BlockNavigationDropdown",i.BlockNavigationDropdown),ua=Qc("BlockSelectionClearer",i.BlockSelectionClearer),la=Qc("BlockSettingsMenu",i.BlockSettingsMenu),da=Qc("BlockTitle",i.BlockTitle),pa=Qc("BlockToolbar",i.BlockToolbar),ba=Qc("ColorPalette",i.ColorPalette),fa=Qc("ContrastChecker",i.ContrastChecker),ha=Qc("CopyHandler",i.CopyHandler),ma=Qc("DefaultBlockAppender",i.DefaultBlockAppender),va=Qc("FontSizePicker",i.FontSizePicker),Oa=Qc("Inserter",i.Inserter),ga=Qc("InnerBlocks",i.InnerBlocks,["ButtonBlockAppender","DefaultBlockAppender","Content"]),ja=Qc("InspectorAdvancedControls",i.InspectorAdvancedControls,["Slot"]),ya=Qc("InspectorControls",i.InspectorControls,["Slot"]),_a=Qc("PanelColorSettings",i.PanelColorSettings),wa=Qc("PlainText",i.PlainText),Pa=Qc("RichTextShortcut",i.RichTextShortcut),Sa=Qc("RichTextToolbarButton",i.RichTextToolbarButton),ka=Qc("__unstableRichTextInputEvent",i.__unstableRichTextInputEvent),Ea=Qc("MediaPlaceholder",i.MediaPlaceholder),Ta=Qc("MediaUpload",i.MediaUpload),Ca=Qc("MediaUploadCheck",i.MediaUploadCheck),xa=Qc("MultiSelectScrollIntoView",i.MultiSelectScrollIntoView),Ba=Qc("NavigableToolbar",i.NavigableToolbar),Aa=Qc("ObserveTyping",i.ObserveTyping),Ia=Qc("PreserveScrollInReorder",i.PreserveScrollInReorder),Ra=Qc("SkipToSelectedBlock",i.SkipToSelectedBlock),Da=Qc("URLInput",i.URLInput),Na=Qc("URLInputButton",i.URLInputButton),La=Qc("URLPopover",i.URLPopover),Ua=Qc("Warning",i.Warning),Fa=Qc("WritingFlow",i.WritingFlow),Ma=$c("createCustomColorsHOC",i.createCustomColorsHOC),Va=$c("getColorClassName",i.getColorClassName),za=$c("getColorObjectByAttributeValues",i.getColorObjectByAttributeValues),Ha=$c("getColorObjectByColorValue",i.getColorObjectByColorValue),Wa=$c("getFontSize",i.getFontSize),Ga=$c("getFontSizeClass",i.getFontSizeClass),qa=$c("withColorContext",i.withColorContext),Ka=$c("withColors",i.withColors),Qa=$c("withFontSizes",i.withFontSizes)},46:function(e,t){e.exports=window.wp.keyboardShortcuts},47:function(e,t,n){"use strict";function r(e,t,n,r,o,i,c){try{var a=e[i](c),s=a.value}catch(e){return void n(e)}a.done?t(s):Promise.resolve(s).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(o,i){var c=e.apply(t,n);function a(e){r(c,o,i,a,s,"next",e)}function s(e){r(c,o,i,a,s,"throw",e)}a(void 0)}))}}n.d(t,"a",(function(){return o}))},49:function(e,t){e.exports=window.wp.dataControls},5:function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return r}))},50:function(e,t){e.exports=window.wp.apiFetch},51:function(e,t){e.exports=window.wp.notices},52:function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}n.d(t,"a",(function(){return r}))},57:function(e,t){e.exports=window.wp.coreData},6:function(e,t){e.exports=window.wp.blockEditor},64:function(e,t){e.exports=window.wp.htmlEntities},69:function(e,t){e.exports=window.wp.date},7:function(e,t){e.exports=window.wp.primitives},8:function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return"SET_EDITING_REUSABLE_BLOCK"===(null==t?void 0:t.type)?B(B({},e),{},Object(m.a)({},t.clientId,t.isEditing)):e}});function x(e,t){return e.isEditingReusableBlock[t]}var R=Object(i.createReduxStore)("core/reusable-blocks",{actions:r,controls:O,reducer:h,selectors:c});Object(i.register)(R);var I=n(0),S=n(3),C=n(7),T=Object(I.createElement)(C.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(I.createElement)(C.Path,{d:"M7 7.2h8.2L13.5 9l1.1 1.1 3.6-3.6-3.5-4-1.1 1 1.9 2.3H7c-.9 0-1.7.3-2.3.9-1.4 1.5-1.4 4.2-1.4 5.6v.2h1.5v-.3c0-1.1 0-3.5 1-4.5.3-.3.7-.5 1.2-.5zm13.8 4V11h-1.5v.3c0 1.1 0 3.5-1 4.5-.3.3-.7.5-1.3.5H8.8l1.7-1.7-1.1-1.1L5.9 17l3.5 4 1.1-1-1.9-2.3H17c.9 0 1.7-.3 2.3-.9 1.5-1.4 1.5-4.2 1.5-5.6z"})),L=n(51);function P(e){var t=e.clientIds,n=e.rootClientId,r=Object(i.useSelect)((function(e){var r,c=e("core").canUser,o=e("core/block-editor"),i=o.getBlocksByClientId,u=o.canInsertBlockType,l=null!==(r=i(t))&&void 0!==r?r:[];return!(1===l.length&&l[0]&&Object(s.isReusableBlock)(l[0])&&!!e("core").getEntityRecord("postType","wp_block",l[0].attributes.ref))&&u("core/block",n)&&l.every((function(e){return!!e&&e.isValid&&Object(s.hasBlockSupport)(e.name,"reusable",!0)}))&&!!c("create","blocks")}),[t]),c=Object(i.useDispatch)(R).__experimentalConvertBlocksToReusable,u=Object(i.useDispatch)(L.store),b=u.createSuccessNotice,d=u.createErrorNotice,f=Object(I.useCallback)(Object(a.a)(l.a.mark((function e(){return l.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,c(t);case 3:b(Object(p.__)("Block created."),{type:"snackbar"}),e.next=9;break;case 6:e.prev=6,e.t0=e.catch(0),d(e.t0.message,{type:"snackbar"});case 9:case"end":return e.stop()}}),e,null,[[0,6]])}))),[t]);return r?Object(I.createElement)(o.BlockSettingsMenuControls,null,(function(e){var t=e.onClose;return Object(I.createElement)(S.MenuItem,{icon:T,onClick:function(){f(),t()}},Object(p.__)("Add to Reusable blocks"))})):null}var D=n(32);var M=function(e){var t=e.clientId;return Object(i.useSelect)((function(e){var n=e("core/block-editor").getBlock,r=e("core").canUser,c=n(t);return{isVisible:!!c&&Object(s.isReusableBlock)(c)&&!!r("update","blocks",c.attributes.ref)}}),[t]).isVisible?Object(I.createElement)(o.BlockSettingsMenuControls,null,Object(I.createElement)(S.MenuItem,{href:Object(D.addQueryArgs)("edit.php",{post_type:"wp_block"})},Object(p.__)("Manage Reusable blocks"))):null};var A=Object(i.withSelect)((function(e){return{clientIds:(0,e("core/block-editor").getSelectedBlockClientIds)()}}))((function(e){var t=e.clientIds,n=e.rootClientId;return Object(I.createElement)(I.Fragment,null,Object(I.createElement)(P,{clientIds:t,rootClientId:n}),1===t.length&&Object(I.createElement)(M,{clientId:t[0]}))}))},47:function(e,t,n){"use strict";function r(e,t,n,r,c,o,i){try{var u=e[o](i),l=u.value}catch(e){return void n(e)}u.done?t(l):Promise.resolve(l).then(r,c)}function c(e){return function(){var t=this,n=arguments;return new Promise((function(c,o){var i=e.apply(t,n);function u(e){r(i,c,o,u,l,"next",e)}function l(e){r(i,c,o,u,l,"throw",e)}u(void 0)}))}}n.d(t,"a",(function(){return c}))},5:function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return r}))},51:function(e,t){e.exports=window.wp.notices},57:function(e,t){e.exports=window.wp.coreData},6:function(e,t){e.exports=window.wp.blockEditor},7:function(e,t){e.exports=window.wp.primitives},9:function(e,t){e.exports=window.wp.blocks}});
\ No newline at end of file
+this.wp=this.wp||{},this.wp.reusableBlocks=function(e){var t={};function n(r){if(t[r])return t[r].exports;var c=t[r]={i:r,l:!1,exports:{}};return e[r].call(c.exports,c,c.exports,n),c.l=!0,c.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var c in e)n.d(r,c,function(t){return e[t]}.bind(null,c));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=468)}({0:function(e,t){e.exports=window.wp.element},1:function(e,t){e.exports=window.wp.i18n},16:function(e,t){e.exports=window.regeneratorRuntime},2:function(e,t){e.exports=window.lodash},3:function(e,t){e.exports=window.wp.components},32:function(e,t){e.exports=window.wp.url},4:function(e,t){e.exports=window.wp.data},468:function(e,t,n){"use strict";n.r(t),n.d(t,"store",(function(){return I})),n.d(t,"ReusableBlocksMenuItems",(function(){return U}));var r={};n.r(r),n.d(r,"__experimentalConvertBlockToStatic",(function(){return _})),n.d(r,"__experimentalConvertBlocksToReusable",(function(){return y})),n.d(r,"__experimentalDeleteReusableBlock",(function(){return E})),n.d(r,"__experimentalSetEditingReusableBlock",(function(){return m}));var c={};n.r(c),n.d(c,"__experimentalIsEditingReusableBlock",(function(){return R}));var o=n(6),i=(n(57),n(4)),u=n(16),l=n.n(u),a=n(47),s=n(2),p=n(9),b=n(1);function d(e){return{type:"CONVERT_BLOCK_TO_STATIC",clientId:e}}function f(e){return{type:"CONVERT_BLOCKS_TO_REUSABLE",clientIds:e}}function O(e){return{type:"DELETE_REUSABLE_BLOCK",id:e}}var w={CONVERT_BLOCK_TO_STATIC:Object(i.createRegistryControl)((function(e){return function(t){var n=t.clientId,r=e.select("core/block-editor").getBlock(n),c=e.select("core").getEditedEntityRecord("postType","wp_block",r.attributes.ref),o=Object(p.parse)(Object(s.isFunction)(c.content)?c.content(c):c.content);e.dispatch("core/block-editor").replaceBlocks(r.clientId,o)}})),CONVERT_BLOCKS_TO_REUSABLE:Object(i.createRegistryControl)((function(e){return function(){var t=Object(a.a)(l.a.mark((function t(n){var r,c,o,i;return l.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=n.clientIds,c={title:Object(b.__)("Untitled Reusable Block"),content:Object(p.serialize)(e.select("core/block-editor").getBlocksByClientId(r)),status:"publish"},t.next=4,e.dispatch("core").saveEntityRecord("postType","wp_block",c);case 4:o=t.sent,i=Object(p.createBlock)("core/block",{ref:o.id}),e.dispatch("core/block-editor").replaceBlocks(r,i),e.dispatch(I).__experimentalSetEditingReusableBlock(i.clientId,!0);case 8:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()})),DELETE_REUSABLE_BLOCK:Object(i.createRegistryControl)((function(e){return function(){var t=Object(a.a)(l.a.mark((function t(n){var r,c,o,i;return l.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=n.id,e.select("core").getEditedEntityRecord("postType","wp_block",r)){t.next=4;break}return t.abrupt("return");case 4:return c=e.select("core/block-editor").getBlocks(),o=c.filter((function(e){return Object(p.isReusableBlock)(e)&&e.attributes.ref===r})),(i=o.map((function(e){return e.clientId}))).length&&e.dispatch("core/block-editor").removeBlocks(i),t.next=10,e.dispatch("core").deleteEntityRecord("postType","wp_block",r);case 10:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}))},k=l.a.mark(_),v=l.a.mark(y),j=l.a.mark(E);function _(e){return l.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,d(e);case 2:case"end":return t.stop()}}),k)}function y(e){return l.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,f(e);case 2:case"end":return t.stop()}}),v)}function E(e){return l.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,O(e);case 2:case"end":return t.stop()}}),j)}function m(e,t){return{type:"SET_EDITING_REUSABLE_BLOCK",clientId:e,isEditing:t}}var g=n(5);function B(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return"SET_EDITING_REUSABLE_BLOCK"===(null==t?void 0:t.type)?h(h({},e),{},Object(g.a)({},t.clientId,t.isEditing)):e}});function R(e,t){return e.isEditingReusableBlock[t]}var I=Object(i.createReduxStore)("core/reusable-blocks",{actions:r,controls:w,reducer:x,selectors:c});Object(i.register)(I);var S=n(0),C=n(3),T=n(7),L=Object(S.createElement)(T.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(S.createElement)(T.Path,{d:"M7 7.2h8.2L13.5 9l1.1 1.1 3.6-3.6-3.5-4-1.1 1 1.9 2.3H7c-.9 0-1.7.3-2.3.9-1.4 1.5-1.4 4.2-1.4 5.6v.2h1.5v-.3c0-1.1 0-3.5 1-4.5.3-.3.7-.5 1.2-.5zm13.8 4V11h-1.5v.3c0 1.1 0 3.5-1 4.5-.3.3-.7.5-1.3.5H8.8l1.7-1.7-1.1-1.1L5.9 17l3.5 4 1.1-1-1.9-2.3H17c.9 0 1.7-.3 2.3-.9 1.5-1.4 1.5-4.2 1.5-5.6z"})),P=n(51);function D(e){var t=e.clientIds,n=e.rootClientId,r=Object(i.useSelect)((function(e){var r,c=e("core").canUser,o=e("core/block-editor"),i=o.getBlocksByClientId,u=o.canInsertBlockType,l=null!==(r=i(t))&&void 0!==r?r:[];return!(1===l.length&&l[0]&&Object(p.isReusableBlock)(l[0])&&!!e("core").getEntityRecord("postType","wp_block",l[0].attributes.ref))&&u("core/block",n)&&l.every((function(e){return!!e&&e.isValid&&Object(p.hasBlockSupport)(e.name,"reusable",!0)}))&&!!c("create","blocks")}),[t]),c=Object(i.useDispatch)(I).__experimentalConvertBlocksToReusable,u=Object(i.useDispatch)(P.store),s=u.createSuccessNotice,d=u.createErrorNotice,f=Object(S.useCallback)(Object(a.a)(l.a.mark((function e(){return l.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,c(t);case 3:s(Object(b.__)("Block created."),{type:"snackbar"}),e.next=9;break;case 6:e.prev=6,e.t0=e.catch(0),d(e.t0.message,{type:"snackbar"});case 9:case"end":return e.stop()}}),e,null,[[0,6]])}))),[t]);return r?Object(S.createElement)(o.BlockSettingsMenuControls,null,(function(e){var t=e.onClose;return Object(S.createElement)(C.MenuItem,{icon:L,onClick:function(){f(),t()}},Object(b.__)("Add to Reusable blocks"))})):null}var M=n(32);var A=function(e){var t=e.clientId;return Object(i.useSelect)((function(e){var n=e("core/block-editor").getBlock,r=e("core").canUser,c=n(t);return{isVisible:!!c&&Object(p.isReusableBlock)(c)&&!!r("update","blocks",c.attributes.ref)}}),[t]).isVisible?Object(S.createElement)(o.BlockSettingsMenuControls,null,Object(S.createElement)(C.MenuItem,{href:Object(M.addQueryArgs)("edit.php",{post_type:"wp_block"})},Object(b.__)("Manage Reusable blocks"))):null};var U=Object(i.withSelect)((function(e){return{clientIds:(0,e("core/block-editor").getSelectedBlockClientIds)()}}))((function(e){var t=e.clientIds,n=e.rootClientId;return Object(S.createElement)(S.Fragment,null,Object(S.createElement)(D,{clientIds:t,rootClientId:n}),1===t.length&&Object(S.createElement)(A,{clientId:t[0]}))}))},47:function(e,t,n){"use strict";function r(e,t,n,r,c,o,i){try{var u=e[o](i),l=u.value}catch(e){return void n(e)}u.done?t(l):Promise.resolve(l).then(r,c)}function c(e){return function(){var t=this,n=arguments;return new Promise((function(c,o){var i=e.apply(t,n);function u(e){r(i,c,o,u,l,"next",e)}function l(e){r(i,c,o,u,l,"throw",e)}u(void 0)}))}}n.d(t,"a",(function(){return c}))},5:function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return r}))},51:function(e,t){e.exports=window.wp.notices},57:function(e,t){e.exports=window.wp.coreData},6:function(e,t){e.exports=window.wp.blockEditor},7:function(e,t){e.exports=window.wp.primitives},9:function(e,t){e.exports=window.wp.blocks}});
\ No newline at end of file
diff --git a/wp-includes/version.php b/wp-includes/version.php
index 2bf37f92ab..ce9104c5c1 100644
--- a/wp-includes/version.php
+++ b/wp-includes/version.php
@@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
-$wp_version = '5.8-alpha-50456';
+$wp_version = '5.8-alpha-50458';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.