Gutenberg - Version 10.5.0

Version Description

Download this release

Release Info

Developer gutenbergplugin
Plugin Icon 128x128 Gutenberg
Version 10.5.0
Comparing to
See all releases

Code changes from version 10.4.1 to 10.5.0

README.md CHANGED
@@ -1,11 +1,11 @@
1
  # Gutenberg
2
 
3
  [![End-to-End Tests](https://github.com/WordPress/gutenberg/workflows/End-to-End%20Tests/badge.svg)](https://github.com/WordPress/gutenberg/actions?query=workflow%3A%22End-to-End+Tests%22+branch%3Atrunk)
4
- [![Static Analysis (Linting, License, Type checks...)](https://github.com/WordPress/gutenberg/workflows/Static%20Analysis%20(Linting,%20License,%20Type%20checks...)/badge.svg)](https://github.com/WordPress/gutenberg/actions?query=workflow%3A%22Static+Analysis+%28Linting%2C+License%2C+Type+checks...%29%22+branch%3Atrunk)
5
  [![Unit Tests](https://github.com/WordPress/gutenberg/workflows/Unit%20Tests/badge.svg)](https://github.com/WordPress/gutenberg/actions?query=workflow%3A%22Unit+Tests%22+branch%3Atrunk)
6
  [![Create Block](https://github.com/WordPress/gutenberg/workflows/Create%20Block/badge.svg)](https://github.com/WordPress/gutenberg/actions?query=workflow%3A%22Create+Block%22+branch%3Atrunk)
7
- [![React Native E2E Tests (iOS)](https://github.com/WordPress/gutenberg/workflows/React%20Native%20E2E%20Tests%20(iOS)/badge.svg)](https://github.com/WordPress/gutenberg/actions?query=workflow%3A%22React+Native+E2E+Tests+%28iOS%29%22+branch%3Atrunk)
8
- [![React Native E2E Tests (Android)](https://github.com/WordPress/gutenberg/workflows/React%20Native%20E2E%20Tests%20(Android)/badge.svg)](https://github.com/WordPress/gutenberg/actions?query=workflow%3A%22React+Native+E2E+Tests+%28Android%29%22+branch%3Atrunk)
9
 
10
  [![lerna](https://img.shields.io/badge/maintained%20with-lerna-cc00ff.svg)](https://lerna.js.org)
11
 
1
  # Gutenberg
2
 
3
  [![End-to-End Tests](https://github.com/WordPress/gutenberg/workflows/End-to-End%20Tests/badge.svg)](https://github.com/WordPress/gutenberg/actions?query=workflow%3A%22End-to-End+Tests%22+branch%3Atrunk)
4
+ [![Static Analysis (Linting, License, Type checks...)](<https://github.com/WordPress/gutenberg/workflows/Static%20Analysis%20(Linting,%20License,%20Type%20checks...)/badge.svg>)](https://github.com/WordPress/gutenberg/actions?query=workflow%3A%22Static+Analysis+%28Linting%2C+License%2C+Type+checks...%29%22+branch%3Atrunk)
5
  [![Unit Tests](https://github.com/WordPress/gutenberg/workflows/Unit%20Tests/badge.svg)](https://github.com/WordPress/gutenberg/actions?query=workflow%3A%22Unit+Tests%22+branch%3Atrunk)
6
  [![Create Block](https://github.com/WordPress/gutenberg/workflows/Create%20Block/badge.svg)](https://github.com/WordPress/gutenberg/actions?query=workflow%3A%22Create+Block%22+branch%3Atrunk)
7
+ [![React Native E2E Tests (iOS)](<https://github.com/WordPress/gutenberg/workflows/React%20Native%20E2E%20Tests%20(iOS)/badge.svg>)](https://github.com/WordPress/gutenberg/actions?query=workflow%3A%22React+Native+E2E+Tests+%28iOS%29%22+branch%3Atrunk)
8
+ [![React Native E2E Tests (Android)](<https://github.com/WordPress/gutenberg/workflows/React%20Native%20E2E%20Tests%20(Android)/badge.svg>)](https://github.com/WordPress/gutenberg/actions?query=workflow%3A%22React+Native+E2E+Tests+%28Android%29%22+branch%3Atrunk)
9
 
10
  [![lerna](https://img.shields.io/badge/maintained%20with-lerna-cc00ff.svg)](https://lerna.js.org)
11
 
build/a11y/index.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('wp-dom-ready', 'wp-i18n', 'wp-polyfill'), 'version' => '2e825e4fc2587cbebe58fe60ab5d73d6');
1
+ <?php return array('dependencies' => array('wp-dom-ready', 'wp-i18n', 'wp-polyfill'), 'version' => '0cbb3e5ba036a3590573e340a8658c00');
build/a11y/index.js CHANGED
@@ -1 +1 @@
1
- window.wp=window.wp||{},window.wp.a11y=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=571)}({1:function(e,t){e.exports=window.wp.i18n},355:function(e,t){e.exports=window.wp.domReady},571:function(e,t,n){"use strict";n.r(t),n.d(t,"setup",(function(){return p})),n.d(t,"speak",(function(){return u}));var r=n(355),i=n.n(r),o=n(1);function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"polite",t=document.createElement("div");t.id="a11y-speak-".concat(e),t.className="a11y-speak-region",t.setAttribute("style","position: absolute;margin: -1px;padding: 0;height: 1px;width: 1px;overflow: hidden;clip: rect(1px, 1px, 1px, 1px);-webkit-clip-path: inset(50%);clip-path: inset(50%);border: 0;word-wrap: normal !important;"),t.setAttribute("aria-live",e),t.setAttribute("aria-relevant","additions text"),t.setAttribute("aria-atomic","true");var n=document,r=n.body;return r&&r.appendChild(t),t}var d="";function p(){var e=document.getElementById("a11y-speak-intro-text"),t=document.getElementById("a11y-speak-assertive"),n=document.getElementById("a11y-speak-polite");null===e&&function(){var e=document.createElement("p");e.id="a11y-speak-intro-text",e.className="a11y-speak-intro-text",e.textContent=Object(o.__)("Notifications"),e.setAttribute("style","position: absolute;margin: -1px;padding: 0;height: 1px;width: 1px;overflow: hidden;clip: rect(1px, 1px, 1px, 1px);-webkit-clip-path: inset(50%);clip-path: inset(50%);border: 0;word-wrap: normal !important;"),e.setAttribute("hidden","hidden");var t=document.body;t&&t.appendChild(e)}(),null===t&&a("assertive"),null===n&&a("polite")}function u(e,t){!function(){for(var e=document.getElementsByClassName("a11y-speak-region"),t=document.getElementById("a11y-speak-intro-text"),n=0;n<e.length;n++)e[n].textContent="";t&&t.setAttribute("hidden","hidden")}(),e=function(e){return e=e.replace(/<[^<>]+>/g," "),d===e&&(e+=" "),d=e,e}(e);var n=document.getElementById("a11y-speak-intro-text"),r=document.getElementById("a11y-speak-assertive"),i=document.getElementById("a11y-speak-polite");r&&"assertive"===t?r.textContent=e:i&&(i.textContent=e),n&&n.removeAttribute("hidden")}i()(p)}});
1
+ window.wp=window.wp||{},window.wp.a11y=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=571)}({1:function(e,t){e.exports=window.wp.i18n},354:function(e,t){e.exports=window.wp.domReady},571:function(e,t,n){"use strict";n.r(t),n.d(t,"setup",(function(){return p})),n.d(t,"speak",(function(){return u}));var r=n(354),i=n.n(r),o=n(1);function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"polite",t=document.createElement("div");t.id="a11y-speak-".concat(e),t.className="a11y-speak-region",t.setAttribute("style","position: absolute;margin: -1px;padding: 0;height: 1px;width: 1px;overflow: hidden;clip: rect(1px, 1px, 1px, 1px);-webkit-clip-path: inset(50%);clip-path: inset(50%);border: 0;word-wrap: normal !important;"),t.setAttribute("aria-live",e),t.setAttribute("aria-relevant","additions text"),t.setAttribute("aria-atomic","true");var n=document,r=n.body;return r&&r.appendChild(t),t}var d="";function p(){var e=document.getElementById("a11y-speak-intro-text"),t=document.getElementById("a11y-speak-assertive"),n=document.getElementById("a11y-speak-polite");null===e&&function(){var e=document.createElement("p");e.id="a11y-speak-intro-text",e.className="a11y-speak-intro-text",e.textContent=Object(o.__)("Notifications"),e.setAttribute("style","position: absolute;margin: -1px;padding: 0;height: 1px;width: 1px;overflow: hidden;clip: rect(1px, 1px, 1px, 1px);-webkit-clip-path: inset(50%);clip-path: inset(50%);border: 0;word-wrap: normal !important;"),e.setAttribute("hidden","hidden");var t=document.body;t&&t.appendChild(e)}(),null===t&&a("assertive"),null===n&&a("polite")}function u(e,t){!function(){for(var e=document.getElementsByClassName("a11y-speak-region"),t=document.getElementById("a11y-speak-intro-text"),n=0;n<e.length;n++)e[n].textContent="";t&&t.setAttribute("hidden","hidden")}(),e=function(e){return e=e.replace(/<[^<>]+>/g," "),d===e&&(e+=" "),d=e,e}(e);var n=document.getElementById("a11y-speak-intro-text"),r=document.getElementById("a11y-speak-assertive"),i=document.getElementById("a11y-speak-polite");r&&"assertive"===t?r.textContent=e:i&&(i.textContent=e),n&&n.removeAttribute("hidden")}i()(p)}});
build/annotations/index.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('lodash', 'wp-data', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-rich-text'), 'version' => '0301d90bfa1d0ffac1363f0a4262a3f2');
1
+ <?php return array('dependencies' => array('lodash', 'wp-data', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-rich-text'), 'version' => '2f5a727409a9616646bd10af7fdc7a84');
build/annotations/index.js CHANGED
@@ -1 +1 @@
1
- window.wp=window.wp||{},window.wp.annotations=function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=562)}({1:function(t,e){t.exports=window.wp.i18n},13:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(49);function o(t,e){if(null==t)return{};var n,o,a=Object(r.a)(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(o=0;o<i.length;o++)n=i[o],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(a[n]=t[n])}return a}},15:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(25),o=n(44),a=n(29);function i(t){return function(t){if(Array.isArray(t))return Object(r.a)(t)}(t)||Object(o.a)(t)||Object(a.a)(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},2:function(t,e){t.exports=window.lodash},215:function(t,e,n){"use strict";var r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),o=new Uint8Array(16);function a(){if(!r)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(o)}for(var i=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,u=function(t){return"string"==typeof t&&i.test(t)},c=[],l=0;l<256;++l)c.push((l+256).toString(16).substr(1));e.a=function(t,e,n){var r=(t=t||{}).random||(t.rng||a)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,e){n=n||0;for(var o=0;o<16;++o)e[n+o]=r[o];return e}return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(c[t[e+0]]+c[t[e+1]]+c[t[e+2]]+c[t[e+3]]+"-"+c[t[e+4]]+c[t[e+5]]+"-"+c[t[e+6]]+c[t[e+7]]+"-"+c[t[e+8]]+c[t[e+9]]+"-"+c[t[e+10]]+c[t[e+11]]+c[t[e+12]]+c[t[e+13]]+c[t[e+14]]+c[t[e+15]]).toLowerCase();if(!u(n))throw TypeError("Stringified UUID is invalid");return n}(r)}},25:function(t,e,n){"use strict";function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}n.d(e,"a",(function(){return r}))},26:function(t,e){t.exports=window.wp.richText},29:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(25);function o(t,e){if(t){if("string"==typeof t)return Object(r.a)(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r.a)(t,e):void 0}}},34:function(t,e){t.exports=window.wp.hooks},4:function(t,e){t.exports=window.wp.data},44:function(t,e,n){"use strict";function r(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}n.d(e,"a",(function(){return r}))},49:function(t,e,n){"use strict";function r(t,e){if(null==t)return{};var n,r,o={},a=Object.keys(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}n.d(e,"a",(function(){return r}))},50:function(t,e,n){"use strict";var r,o;function a(t){return[t]}function i(){var t={clear:function(){t.head=null}};return t}function u(t,e,n){var r;if(t.length!==e.length)return!1;for(r=n;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}r={},o="undefined"!=typeof WeakMap,e.a=function(t,e){var n,c;function l(){n=o?new WeakMap:i()}function f(){var n,r,o,a,i,l=arguments.length;for(a=new Array(l),o=0;o<l;o++)a[o]=arguments[o];for(i=e.apply(null,a),(n=c(i)).isUniqueByDependants||(n.lastDependants&&!u(i,n.lastDependants,0)&&n.clear(),n.lastDependants=i),r=n.head;r;){if(u(r.args,a,1))return r!==n.head&&(r.prev.next=r.next,r.next&&(r.next.prev=r.prev),r.next=n.head,r.prev=null,n.head.prev=r,n.head=r),r.val;r=r.next}return r={val:t.apply(null,a)},a[0]=null,r.args=a,n.head&&(n.head.prev=r,r.next=n.head),n.head=r,r.val}return e||(e=a),c=o?function(t){var e,o,a,u,c,l=n,f=!0;for(e=0;e<t.length;e++){if(!(c=o=t[e])||"object"!=typeof c){f=!1;break}l.has(o)?l=l.get(o):(a=new WeakMap,l.set(o,a),l=a)}return l.has(r)||((u=i()).isUniqueByDependants=f,l.set(r,u)),l.get(r)}:function(){return n},f.getDependants=e,f.clear=l,l(),f}},562:function(t,e,n){"use strict";n.r(e),n.d(e,"store",(function(){return k}));var r={};n.r(r),n.d(r,"__experimentalGetAnnotationsForBlock",(function(){return _})),n.d(r,"__experimentalGetAllAnnotationsForBlock",(function(){return T})),n.d(r,"__experimentalGetAnnotationsForRichText",(function(){return N})),n.d(r,"__experimentalGetAnnotations",(function(){return P}));var o={};n.r(o),n.d(o,"__experimentalAddAnnotation",(function(){return I})),n.d(o,"__experimentalRemoveAnnotation",(function(){return R})),n.d(o,"__experimentalUpdateAnnotationRange",(function(){return S})),n.d(o,"__experimentalRemoveAnnotationsBySource",(function(){return D}));var a=n(13),i=n(26),u=n(1),c="core/annotations",l={name:"core/annotation",title:Object(u.__)("Annotation"),tagName:"mark",className:"annotation-text",attributes:{className:"class",id:"id"},edit:function(){return null},__experimentalGetPropsForEditableTreePreparation:function(t,e){var n=e.richTextIdentifier,r=e.blockClientId;return{annotations:t(c).__experimentalGetAnnotationsForRichText(r,n)}},__experimentalCreatePrepareEditableTree:function(t){var e=t.annotations;return function(t,n){if(0===e.length)return t;var r={formats:t,text:n};return(r=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.forEach((function(e){var n=e.start,r=e.end;n>t.text.length&&(n=t.text.length),r>t.text.length&&(r=t.text.length);var o="annotation-text-"+e.source,a="annotation-text-"+e.id;t=Object(i.applyFormat)(t,{type:"core/annotation",attributes:{className:o,id:a}},n,r)})),t}(r,e)).formats}},__experimentalGetPropsForEditableTreeChangeHandler:function(t){return{removeAnnotation:t(c).__experimentalRemoveAnnotation,updateAnnotationRange:t(c).__experimentalUpdateAnnotationRange}},__experimentalCreateOnChangeEditableValue:function(t){return function(e){var n=function(t){var e={};return t.forEach((function(t,n){(t=(t=t||[]).filter((function(t){return"core/annotation"===t.type}))).forEach((function(t){var r=t.attributes.id;r=r.replace("annotation-text-",""),e.hasOwnProperty(r)||(e[r]={start:n}),e[r].end=n+1}))})),e}(e),r=t.removeAnnotation,o=t.updateAnnotationRange;!function(t,e,n){var r=n.removeAnnotation,o=n.updateAnnotationRange;t.forEach((function(t){var n=e[t.id];if(n){var a=t.start,i=t.end;a===n.start&&i===n.end||o(t.id,n.start,n.end)}else r(t.id)}))}(t.annotations,n,{removeAnnotation:r,updateAnnotationRange:o})}}},f=l.name,s=Object(a.a)(l,["name"]);Object(i.registerFormatType)(f,s);var d=n(34),p=n(4);Object(d.addFilter)("editor.BlockListBlock","core/annotations",(function(t){return Object(p.withSelect)((function(t,e){var n=e.clientId,r=e.className;return{className:t(c).__experimentalGetAnnotationsForBlock(n).map((function(t){return"is-annotated-by-"+t.source})).concat(r).filter(Boolean).join(" ")}}))(t)}));var b=n(15),v=n(6),O=n(2);function y(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function g(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?y(Object(n),!0).forEach((function(e){Object(v.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function m(t,e){var n=t.filter(e);return t.length===n.length?t:n}function h(t){return Object(O.isNumber)(t.start)&&Object(O.isNumber)(t.end)&&t.start<=t.end}var j=n(50);function x(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function A(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?x(Object(n),!0).forEach((function(e){Object(v.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var w=[],_=Object(j.a)((function(t,e){var n;return(null!==(n=null==t?void 0:t[e])&&void 0!==n?n:[]).filter((function(t){return"block"===t.selector}))}),(function(t,e){var n;return[null!==(n=null==t?void 0:t[e])&&void 0!==n?n:w]}));function T(t,e){var n;return null!==(n=null==t?void 0:t[e])&&void 0!==n?n:w}var N=Object(j.a)((function(t,e,n){var r;return(null!==(r=null==t?void 0:t[e])&&void 0!==r?r:[]).filter((function(t){return"range"===t.selector&&n===t.richTextIdentifier})).map((function(t){var e=t.range,n=Object(a.a)(t,["range"]);return A(A({},e),n)}))}),(function(t,e){var n;return[null!==(n=null==t?void 0:t[e])&&void 0!==n?n:w]}));function P(t){return Object(O.flatMap)(t,(function(t){return t}))}var E=n(215);function I(t){var e=t.blockClientId,n=t.richTextIdentifier,r=void 0===n?null:n,o=t.range,a=void 0===o?null:o,i=t.selector,u=void 0===i?"range":i,c=t.source,l=void 0===c?"default":c,f=t.id,s={type:"ANNOTATION_ADD",id:void 0===f?Object(E.a)():f,blockClientId:e,richTextIdentifier:r,source:l,selector:u};return"range"===u&&(s.range=a),s}function R(t){return{type:"ANNOTATION_REMOVE",annotationId:t}}function S(t,e,n){return{type:"ANNOTATION_UPDATE_RANGE",annotationId:t,start:e,end:n}}function D(t){return{type:"ANNOTATION_REMOVE_SOURCE",source:t}}var k=Object(p.createReduxStore)(c,{reducer:function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;switch(n.type){case"ANNOTATION_ADD":var r=n.blockClientId,o={id:n.id,blockClientId:r,richTextIdentifier:n.richTextIdentifier,source:n.source,selector:n.selector,range:n.range};if("range"===o.selector&&!h(o.range))return e;var a=null!==(t=null==e?void 0:e[r])&&void 0!==t?t:[];return g(g({},e),{},Object(v.a)({},r,[].concat(Object(b.a)(a),[o])));case"ANNOTATION_REMOVE":return Object(O.mapValues)(e,(function(t){return m(t,(function(t){return t.id!==n.annotationId}))}));case"ANNOTATION_UPDATE_RANGE":return Object(O.mapValues)(e,(function(t){var e=!1,r=t.map((function(t){return t.id===n.annotationId?(e=!0,g(g({},t),{},{range:{start:n.start,end:n.end}})):t}));return e?r:t}));case"ANNOTATION_REMOVE_SOURCE":return Object(O.mapValues)(e,(function(t){return m(t,(function(t){return t.source!==n.source}))}))}return e},selectors:r,actions:o});Object(p.register)(k)},6:function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,"a",(function(){return r}))}});
1
+ window.wp=window.wp||{},window.wp.annotations=function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=562)}({1:function(t,e){t.exports=window.wp.i18n},13:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(50);function o(t,e){if(null==t)return{};var n,o,a=Object(r.a)(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(o=0;o<i.length;o++)n=i[o],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(a[n]=t[n])}return a}},15:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(25),o=n(44),a=n(30);function i(t){return function(t){if(Array.isArray(t))return Object(r.a)(t)}(t)||Object(o.a)(t)||Object(a.a)(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},2:function(t,e){t.exports=window.lodash},216:function(t,e,n){"use strict";var r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),o=new Uint8Array(16);function a(){if(!r)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(o)}for(var i=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,u=function(t){return"string"==typeof t&&i.test(t)},c=[],l=0;l<256;++l)c.push((l+256).toString(16).substr(1));e.a=function(t,e,n){var r=(t=t||{}).random||(t.rng||a)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,e){n=n||0;for(var o=0;o<16;++o)e[n+o]=r[o];return e}return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(c[t[e+0]]+c[t[e+1]]+c[t[e+2]]+c[t[e+3]]+"-"+c[t[e+4]]+c[t[e+5]]+"-"+c[t[e+6]]+c[t[e+7]]+"-"+c[t[e+8]]+c[t[e+9]]+"-"+c[t[e+10]]+c[t[e+11]]+c[t[e+12]]+c[t[e+13]]+c[t[e+14]]+c[t[e+15]]).toLowerCase();if(!u(n))throw TypeError("Stringified UUID is invalid");return n}(r)}},25:function(t,e,n){"use strict";function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}n.d(e,"a",(function(){return r}))},26:function(t,e){t.exports=window.wp.richText},30:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(25);function o(t,e){if(t){if("string"==typeof t)return Object(r.a)(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r.a)(t,e):void 0}}},32:function(t,e){t.exports=window.wp.hooks},4:function(t,e){t.exports=window.wp.data},44:function(t,e,n){"use strict";function r(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}n.d(e,"a",(function(){return r}))},49:function(t,e,n){"use strict";var r,o;function a(t){return[t]}function i(){var t={clear:function(){t.head=null}};return t}function u(t,e,n){var r;if(t.length!==e.length)return!1;for(r=n;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}r={},o="undefined"!=typeof WeakMap,e.a=function(t,e){var n,c;function l(){n=o?new WeakMap:i()}function f(){var n,r,o,a,i,l=arguments.length;for(a=new Array(l),o=0;o<l;o++)a[o]=arguments[o];for(i=e.apply(null,a),(n=c(i)).isUniqueByDependants||(n.lastDependants&&!u(i,n.lastDependants,0)&&n.clear(),n.lastDependants=i),r=n.head;r;){if(u(r.args,a,1))return r!==n.head&&(r.prev.next=r.next,r.next&&(r.next.prev=r.prev),r.next=n.head,r.prev=null,n.head.prev=r,n.head=r),r.val;r=r.next}return r={val:t.apply(null,a)},a[0]=null,r.args=a,n.head&&(n.head.prev=r,r.next=n.head),n.head=r,r.val}return e||(e=a),c=o?function(t){var e,o,a,u,c,l=n,f=!0;for(e=0;e<t.length;e++){if(!(c=o=t[e])||"object"!=typeof c){f=!1;break}l.has(o)?l=l.get(o):(a=new WeakMap,l.set(o,a),l=a)}return l.has(r)||((u=i()).isUniqueByDependants=f,l.set(r,u)),l.get(r)}:function(){return n},f.getDependants=e,f.clear=l,l(),f}},5:function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,"a",(function(){return r}))},50:function(t,e,n){"use strict";function r(t,e){if(null==t)return{};var n,r,o={},a=Object.keys(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}n.d(e,"a",(function(){return r}))},562:function(t,e,n){"use strict";n.r(e),n.d(e,"store",(function(){return k}));var r={};n.r(r),n.d(r,"__experimentalGetAnnotationsForBlock",(function(){return _})),n.d(r,"__experimentalGetAllAnnotationsForBlock",(function(){return T})),n.d(r,"__experimentalGetAnnotationsForRichText",(function(){return N})),n.d(r,"__experimentalGetAnnotations",(function(){return P}));var o={};n.r(o),n.d(o,"__experimentalAddAnnotation",(function(){return I})),n.d(o,"__experimentalRemoveAnnotation",(function(){return R})),n.d(o,"__experimentalUpdateAnnotationRange",(function(){return S})),n.d(o,"__experimentalRemoveAnnotationsBySource",(function(){return D}));var a=n(13),i=n(26),u=n(1),c="core/annotations",l={name:"core/annotation",title:Object(u.__)("Annotation"),tagName:"mark",className:"annotation-text",attributes:{className:"class",id:"id"},edit:function(){return null},__experimentalGetPropsForEditableTreePreparation:function(t,e){var n=e.richTextIdentifier,r=e.blockClientId;return{annotations:t(c).__experimentalGetAnnotationsForRichText(r,n)}},__experimentalCreatePrepareEditableTree:function(t){var e=t.annotations;return function(t,n){if(0===e.length)return t;var r={formats:t,text:n};return(r=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.forEach((function(e){var n=e.start,r=e.end;n>t.text.length&&(n=t.text.length),r>t.text.length&&(r=t.text.length);var o="annotation-text-"+e.source,a="annotation-text-"+e.id;t=Object(i.applyFormat)(t,{type:"core/annotation",attributes:{className:o,id:a}},n,r)})),t}(r,e)).formats}},__experimentalGetPropsForEditableTreeChangeHandler:function(t){return{removeAnnotation:t(c).__experimentalRemoveAnnotation,updateAnnotationRange:t(c).__experimentalUpdateAnnotationRange}},__experimentalCreateOnChangeEditableValue:function(t){return function(e){var n=function(t){var e={};return t.forEach((function(t,n){(t=(t=t||[]).filter((function(t){return"core/annotation"===t.type}))).forEach((function(t){var r=t.attributes.id;r=r.replace("annotation-text-",""),e.hasOwnProperty(r)||(e[r]={start:n}),e[r].end=n+1}))})),e}(e),r=t.removeAnnotation,o=t.updateAnnotationRange;!function(t,e,n){var r=n.removeAnnotation,o=n.updateAnnotationRange;t.forEach((function(t){var n=e[t.id];if(n){var a=t.start,i=t.end;a===n.start&&i===n.end||o(t.id,n.start,n.end)}else r(t.id)}))}(t.annotations,n,{removeAnnotation:r,updateAnnotationRange:o})}}},f=l.name,s=Object(a.a)(l,["name"]);Object(i.registerFormatType)(f,s);var d=n(32),p=n(4);Object(d.addFilter)("editor.BlockListBlock","core/annotations",(function(t){return Object(p.withSelect)((function(t,e){var n=e.clientId,r=e.className;return{className:t(c).__experimentalGetAnnotationsForBlock(n).map((function(t){return"is-annotated-by-"+t.source})).concat(r).filter(Boolean).join(" ")}}))(t)}));var b=n(15),v=n(5),O=n(2);function y(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function g(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?y(Object(n),!0).forEach((function(e){Object(v.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function m(t,e){var n=t.filter(e);return t.length===n.length?t:n}function h(t){return Object(O.isNumber)(t.start)&&Object(O.isNumber)(t.end)&&t.start<=t.end}var j=n(49);function x(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function A(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?x(Object(n),!0).forEach((function(e){Object(v.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var w=[],_=Object(j.a)((function(t,e){var n;return(null!==(n=null==t?void 0:t[e])&&void 0!==n?n:[]).filter((function(t){return"block"===t.selector}))}),(function(t,e){var n;return[null!==(n=null==t?void 0:t[e])&&void 0!==n?n:w]}));function T(t,e){var n;return null!==(n=null==t?void 0:t[e])&&void 0!==n?n:w}var N=Object(j.a)((function(t,e,n){var r;return(null!==(r=null==t?void 0:t[e])&&void 0!==r?r:[]).filter((function(t){return"range"===t.selector&&n===t.richTextIdentifier})).map((function(t){var e=t.range,n=Object(a.a)(t,["range"]);return A(A({},e),n)}))}),(function(t,e){var n;return[null!==(n=null==t?void 0:t[e])&&void 0!==n?n:w]}));function P(t){return Object(O.flatMap)(t,(function(t){return t}))}var E=n(216);function I(t){var e=t.blockClientId,n=t.richTextIdentifier,r=void 0===n?null:n,o=t.range,a=void 0===o?null:o,i=t.selector,u=void 0===i?"range":i,c=t.source,l=void 0===c?"default":c,f=t.id,s={type:"ANNOTATION_ADD",id:void 0===f?Object(E.a)():f,blockClientId:e,richTextIdentifier:r,source:l,selector:u};return"range"===u&&(s.range=a),s}function R(t){return{type:"ANNOTATION_REMOVE",annotationId:t}}function S(t,e,n){return{type:"ANNOTATION_UPDATE_RANGE",annotationId:t,start:e,end:n}}function D(t){return{type:"ANNOTATION_REMOVE_SOURCE",source:t}}var k=Object(p.createReduxStore)(c,{reducer:function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;switch(n.type){case"ANNOTATION_ADD":var r=n.blockClientId,o={id:n.id,blockClientId:r,richTextIdentifier:n.richTextIdentifier,source:n.source,selector:n.selector,range:n.range};if("range"===o.selector&&!h(o.range))return e;var a=null!==(t=null==e?void 0:e[r])&&void 0!==t?t:[];return g(g({},e),{},Object(v.a)({},r,[].concat(Object(b.a)(a),[o])));case"ANNOTATION_REMOVE":return Object(O.mapValues)(e,(function(t){return m(t,(function(t){return t.id!==n.annotationId}))}));case"ANNOTATION_UPDATE_RANGE":return Object(O.mapValues)(e,(function(t){var e=!1,r=t.map((function(t){return t.id===n.annotationId?(e=!0,g(g({},t),{},{range:{start:n.start,end:n.end}})):t}));return e?r:t}));case"ANNOTATION_REMOVE_SOURCE":return Object(O.mapValues)(e,(function(t){return m(t,(function(t){return t.source!==n.source}))}))}return e},selectors:r,actions:o});Object(p.register)(k)}});
build/api-fetch/index.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => 'a1b5e6ac8a3e7023dc0784f27d935d27');
1
+ <?php return array('dependencies' => array('wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => 'ea448fcef0be6a7bdcacb6ff2bc401cf');
build/api-fetch/index.js CHANGED
@@ -1 +1 @@
1
- window.wp=window.wp||{},window.wp.apiFetch=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=561)}({1:function(e,t){e.exports=window.wp.i18n},13:function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(49);function o(e,t){if(null==e)return{};var r,o,c=Object(n.a)(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(c[r]=e[r])}return c}},16:function(e,t){e.exports=window.regeneratorRuntime},31:function(e,t){e.exports=window.wp.url},46:function(e,t,r){"use strict";function n(e,t,r,n,o,c,i){try{var u=e[c](i),a=u.value}catch(e){return void r(e)}u.done?t(a):Promise.resolve(a).then(n,o)}function o(e){return function(){var t=this,r=arguments;return new Promise((function(o,c){var i=e.apply(t,r);function u(e){n(i,o,c,u,a,"next",e)}function a(e){n(i,o,c,u,a,"throw",e)}u(void 0)}))}}r.d(t,"a",(function(){return o}))},49:function(e,t,r){"use strict";function n(e,t){if(null==e)return{};var r,n,o={},c=Object.keys(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}r.d(t,"a",(function(){return n}))},561:function(e,t,r){"use strict";r.r(t);var n=r(6),o=r(13),c=r(1);function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){Object(n.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){Object(n.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var p=function(e,t){var r,n,o=e.path;return"string"==typeof e.namespace&&"string"==typeof e.endpoint&&(r=e.namespace.replace(/^\/|\/$/g,""),o=(n=e.endpoint.replace(/^\//,""))?r+"/"+n:r),delete e.namespace,delete e.endpoint,t(s(s({},e),{},{path:o}))};function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach((function(t){Object(n.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function O(e){var t=e.split("?"),r=t[1],n=t[0];return r?n+"?"+r.split("&").map((function(e){return e.split("=")})).sort((function(e,t){return e[0].localeCompare(t[0])})).map((function(e){return e.join("=")})).join("&"):n}var b=r(46),d=r(16),j=r.n(d),y=r(31);function h(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 v(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?h(Object(r),!0).forEach((function(t){Object(n.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var w=function(e){return e.json?e.json():Promise.reject(e)},g=function(e){return function(e){if(!e)return{};var t=e.match(/<([^>]+)>; rel="next"/);return t?{next:t[1]}:{}}(e.headers.get("link")).next},P=function(e){var t=!!e.path&&-1!==e.path.indexOf("per_page=-1"),r=!!e.url&&-1!==e.url.indexOf("per_page=-1");return t||r},m=function(){var e=Object(b.a)(j.a.mark((function e(t,r){var n,c,i,u,a,s;return j.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!1!==t.parse){e.next=2;break}return e.abrupt("return",r(t));case 2:if(P(t)){e.next=4;break}return e.abrupt("return",r(t));case 4:return e.next=6,I(v(v({},(f={per_page:100},void 0,void 0,l=(p=t).path,O=p.url,v(v({},Object(o.a)(p,["path","url"])),{},{url:O&&Object(y.addQueryArgs)(O,f),path:l&&Object(y.addQueryArgs)(l,f)}))),{},{parse:!1}));case 6:return n=e.sent,e.next=9,w(n);case 9:if(c=e.sent,Array.isArray(c)){e.next=12;break}return e.abrupt("return",c);case 12:if(i=g(n)){e.next=15;break}return e.abrupt("return",c);case 15:u=[].concat(c);case 16:if(!i){e.next=27;break}return e.next=19,I(v(v({},t),{},{path:void 0,url:i,parse:!1}));case 19:return a=e.sent,e.next=22,w(a);case 22:s=e.sent,u=u.concat(s),i=g(a),e.next=16;break;case 27:return e.abrupt("return",u);case 28:case"end":return e.stop()}var p,f,l,O}),e)})));return function(_x,t){return e.apply(this,arguments)}}();function x(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 D(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?x(Object(r),!0).forEach((function(t){Object(n.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):x(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var S=new Set(["PATCH","PUT","DELETE"]),_=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return t?204===e.status?null:e.json?e.json():Promise.reject(e):e},E=function(e){var t={code:"invalid_json",message:Object(c.__)("The response is not a valid JSON response.")};if(!e||!e.json)throw t;return e.json().catch((function(){throw t}))},k=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Promise.resolve(_(e,t)).catch((function(e){return T(e,t)}))};function T(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!t)throw e;return E(e).then((function(e){var t={code:"unknown_error",message:Object(c.__)("An unknown error occurred.")};throw e||t}))}function A(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function M(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?A(Object(r),!0).forEach((function(t){Object(n.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):A(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function C(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function N(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?C(Object(r),!0).forEach((function(t){Object(n.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):C(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Q={Accept:"application/json, */*;q=0.1"},R={credentials:"include"},L=[function(e,t){return"string"!=typeof e.url||Object(y.hasQueryArg)(e.url,"_locale")||(e.url=Object(y.addQueryArgs)(e.url,{_locale:"user"})),"string"!=typeof e.path||Object(y.hasQueryArg)(e.path,"_locale")||(e.path=Object(y.addQueryArgs)(e.path,{_locale:"user"})),t(e)},p,function(e,t){var r=e.method,n=void 0===r?"GET":r;return S.has(n.toUpperCase())&&(e=D(D({},e),{},{headers:D(D({},e.headers),{},{"X-HTTP-Method-Override":n,"Content-Type":"application/json"}),method:"POST"})),t(e)},m],U=function(e){if(e.status>=200&&e.status<300)return e;throw e},G=function(e){var t=e.url,r=e.path,n=e.data,i=e.parse,u=void 0===i||i,a=Object(o.a)(e,["url","path","data","parse"]),s=e.body,p=e.headers;return p=N(N({},Q),p),n&&(s=JSON.stringify(n),p["Content-Type"]="application/json"),window.fetch(t||r||window.location.href,N(N(N({},R),a),{},{body:s,headers:p})).then((function(e){return Promise.resolve(e).then(U).catch((function(e){return T(e,u)})).then((function(e){return k(e,u)}))}),(function(){throw{code:"fetch_error",message:Object(c.__)("You are probably offline.")}}))};function H(e){return L.reduceRight((function(e,t){return function(r){return t(r,e)}}),G)(e).catch((function(t){return"rest_cookie_invalid_nonce"!==t.code?Promise.reject(t):window.fetch(H.nonceEndpoint).then(U).then((function(e){return e.text()})).then((function(t){return H.nonceMiddleware.nonce=t,H(e)}))}))}H.use=function(e){L.unshift(e)},H.setFetchHandler=function(e){G=e},H.createNonceMiddleware=function(e){var t=function e(t,r){var n=t.headers,o=void 0===n?{}:n;for(var c in o)if("x-wp-nonce"===c.toLowerCase()&&o[c]===e.nonce)return r(t);return r(u(u({},t),{},{headers:u(u({},o),{},{"X-WP-Nonce":e.nonce})}))};return t.nonce=e,t},H.createPreloadingMiddleware=function(e){var t=Object.keys(e).reduce((function(t,r){return t[O(r)]=e[r],t}),{});return function(e,r){var n=e.parse,o=void 0===n||n;if("string"==typeof e.path){var c=e.method||"GET",i=O(e.path);if("GET"===c&&t[i]){var u=t[i];return delete t[i],Promise.resolve(o?u.body:new window.Response(JSON.stringify(u.body),{status:200,statusText:"OK",headers:u.headers}))}if("OPTIONS"===c&&t[c]&&t[c][i])return Promise.resolve(t[c][i])}return r(e)}},H.createRootURLMiddleware=function(e){return function(t,r){return p(t,(function(t){var n,o=t.url,c=t.path;return"string"==typeof c&&(n=e,-1!==e.indexOf("?")&&(c=c.replace("?","&")),c=c.replace(/^\//,""),"string"==typeof n&&-1!==n.indexOf("?")&&(c=c.replace("?","&")),o=n+c),r(l(l({},t),{},{url:o}))}))}},H.fetchAllMiddleware=m,H.mediaUploadMiddleware=function(e,t){if(!(e.path&&-1!==e.path.indexOf("/wp/v2/media")||e.url&&-1!==e.url.indexOf("/wp/v2/media")))return t(e);var r=0;return t(M(M({},e),{},{parse:!1})).catch((function(n){var o=n.headers.get("x-wp-upload-attachment-id");return n.status>=500&&n.status<600&&o?function e(n){return r++,t({path:"/wp/v2/media/".concat(n,"/post-process"),method:"POST",data:{action:"create-image-subsizes"},parse:!1}).catch((function(){return r<5?e(n):(t({path:"/wp/v2/media/".concat(n,"?force=true"),method:"DELETE"}),Promise.reject())}))}(o).catch((function(){return!1!==e.parse?Promise.reject({code:"post_process",message:Object(c.__)("Media upload failed. If this is a photo or a large image, please scale it down and try again.")}):Promise.reject(n)})):T(n,e.parse)})).then((function(t){return k(t,e.parse)}))};var I=t.default=H},6:function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,"a",(function(){return n}))}}).default;
1
+ window.wp=window.wp||{},window.wp.apiFetch=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=561)}({1:function(e,t){e.exports=window.wp.i18n},13:function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(50);function o(e,t){if(null==e)return{};var r,o,c=Object(n.a)(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(c[r]=e[r])}return c}},16:function(e,t){e.exports=window.regeneratorRuntime},31:function(e,t){e.exports=window.wp.url},46:function(e,t,r){"use strict";function n(e,t,r,n,o,c,i){try{var u=e[c](i),a=u.value}catch(e){return void r(e)}u.done?t(a):Promise.resolve(a).then(n,o)}function o(e){return function(){var t=this,r=arguments;return new Promise((function(o,c){var i=e.apply(t,r);function u(e){n(i,o,c,u,a,"next",e)}function a(e){n(i,o,c,u,a,"throw",e)}u(void 0)}))}}r.d(t,"a",(function(){return o}))},5:function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,"a",(function(){return n}))},50:function(e,t,r){"use strict";function n(e,t){if(null==e)return{};var r,n,o={},c=Object.keys(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}r.d(t,"a",(function(){return n}))},561:function(e,t,r){"use strict";r.r(t);var n=r(5),o=r(13),c=r(1);function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){Object(n.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){Object(n.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var p=function(e,t){var r,n,o=e.path;return"string"==typeof e.namespace&&"string"==typeof e.endpoint&&(r=e.namespace.replace(/^\/|\/$/g,""),o=(n=e.endpoint.replace(/^\//,""))?r+"/"+n:r),delete e.namespace,delete e.endpoint,t(s(s({},e),{},{path:o}))};function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach((function(t){Object(n.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function O(e){var t=e.split("?"),r=t[1],n=t[0];return r?n+"?"+r.split("&").map((function(e){return e.split("=")})).sort((function(e,t){return e[0].localeCompare(t[0])})).map((function(e){return e.join("=")})).join("&"):n}var b=r(46),d=r(16),j=r.n(d),y=r(31);function h(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 v(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?h(Object(r),!0).forEach((function(t){Object(n.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var w=function(e){return e.json?e.json():Promise.reject(e)},g=function(e){return function(e){if(!e)return{};var t=e.match(/<([^>]+)>; rel="next"/);return t?{next:t[1]}:{}}(e.headers.get("link")).next},P=function(e){var t=!!e.path&&-1!==e.path.indexOf("per_page=-1"),r=!!e.url&&-1!==e.url.indexOf("per_page=-1");return t||r},m=function(){var e=Object(b.a)(j.a.mark((function e(t,r){var n,c,i,u,a,s;return j.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!1!==t.parse){e.next=2;break}return e.abrupt("return",r(t));case 2:if(P(t)){e.next=4;break}return e.abrupt("return",r(t));case 4:return e.next=6,I(v(v({},(f={per_page:100},void 0,void 0,l=(p=t).path,O=p.url,v(v({},Object(o.a)(p,["path","url"])),{},{url:O&&Object(y.addQueryArgs)(O,f),path:l&&Object(y.addQueryArgs)(l,f)}))),{},{parse:!1}));case 6:return n=e.sent,e.next=9,w(n);case 9:if(c=e.sent,Array.isArray(c)){e.next=12;break}return e.abrupt("return",c);case 12:if(i=g(n)){e.next=15;break}return e.abrupt("return",c);case 15:u=[].concat(c);case 16:if(!i){e.next=27;break}return e.next=19,I(v(v({},t),{},{path:void 0,url:i,parse:!1}));case 19:return a=e.sent,e.next=22,w(a);case 22:s=e.sent,u=u.concat(s),i=g(a),e.next=16;break;case 27:return e.abrupt("return",u);case 28:case"end":return e.stop()}var p,f,l,O}),e)})));return function(_x,t){return e.apply(this,arguments)}}();function x(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 D(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?x(Object(r),!0).forEach((function(t){Object(n.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):x(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var S=new Set(["PATCH","PUT","DELETE"]),_=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return t?204===e.status?null:e.json?e.json():Promise.reject(e):e},E=function(e){var t={code:"invalid_json",message:Object(c.__)("The response is not a valid JSON response.")};if(!e||!e.json)throw t;return e.json().catch((function(){throw t}))},k=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Promise.resolve(_(e,t)).catch((function(e){return T(e,t)}))};function T(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!t)throw e;return E(e).then((function(e){var t={code:"unknown_error",message:Object(c.__)("An unknown error occurred.")};throw e||t}))}function A(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function M(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?A(Object(r),!0).forEach((function(t){Object(n.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):A(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function C(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function N(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?C(Object(r),!0).forEach((function(t){Object(n.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):C(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Q={Accept:"application/json, */*;q=0.1"},R={credentials:"include"},L=[function(e,t){return"string"!=typeof e.url||Object(y.hasQueryArg)(e.url,"_locale")||(e.url=Object(y.addQueryArgs)(e.url,{_locale:"user"})),"string"!=typeof e.path||Object(y.hasQueryArg)(e.path,"_locale")||(e.path=Object(y.addQueryArgs)(e.path,{_locale:"user"})),t(e)},p,function(e,t){var r=e.method,n=void 0===r?"GET":r;return S.has(n.toUpperCase())&&(e=D(D({},e),{},{headers:D(D({},e.headers),{},{"X-HTTP-Method-Override":n,"Content-Type":"application/json"}),method:"POST"})),t(e)},m],U=function(e){if(e.status>=200&&e.status<300)return e;throw e},G=function(e){var t=e.url,r=e.path,n=e.data,i=e.parse,u=void 0===i||i,a=Object(o.a)(e,["url","path","data","parse"]),s=e.body,p=e.headers;return p=N(N({},Q),p),n&&(s=JSON.stringify(n),p["Content-Type"]="application/json"),window.fetch(t||r||window.location.href,N(N(N({},R),a),{},{body:s,headers:p})).then((function(e){return Promise.resolve(e).then(U).catch((function(e){return T(e,u)})).then((function(e){return k(e,u)}))}),(function(){throw{code:"fetch_error",message:Object(c.__)("You are probably offline.")}}))};function H(e){return L.reduceRight((function(e,t){return function(r){return t(r,e)}}),G)(e).catch((function(t){return"rest_cookie_invalid_nonce"!==t.code?Promise.reject(t):window.fetch(H.nonceEndpoint).then(U).then((function(e){return e.text()})).then((function(t){return H.nonceMiddleware.nonce=t,H(e)}))}))}H.use=function(e){L.unshift(e)},H.setFetchHandler=function(e){G=e},H.createNonceMiddleware=function(e){var t=function e(t,r){var n=t.headers,o=void 0===n?{}:n;for(var c in o)if("x-wp-nonce"===c.toLowerCase()&&o[c]===e.nonce)return r(t);return r(u(u({},t),{},{headers:u(u({},o),{},{"X-WP-Nonce":e.nonce})}))};return t.nonce=e,t},H.createPreloadingMiddleware=function(e){var t=Object.keys(e).reduce((function(t,r){return t[O(r)]=e[r],t}),{});return function(e,r){var n=e.parse,o=void 0===n||n;if("string"==typeof e.path){var c=e.method||"GET",i=O(e.path);if("GET"===c&&t[i]){var u=t[i];return delete t[i],Promise.resolve(o?u.body:new window.Response(JSON.stringify(u.body),{status:200,statusText:"OK",headers:u.headers}))}if("OPTIONS"===c&&t[c]&&t[c][i])return Promise.resolve(o?t[c][i].body:t[c][i])}return r(e)}},H.createRootURLMiddleware=function(e){return function(t,r){return p(t,(function(t){var n,o=t.url,c=t.path;return"string"==typeof c&&(n=e,-1!==e.indexOf("?")&&(c=c.replace("?","&")),c=c.replace(/^\//,""),"string"==typeof n&&-1!==n.indexOf("?")&&(c=c.replace("?","&")),o=n+c),r(l(l({},t),{},{url:o}))}))}},H.fetchAllMiddleware=m,H.mediaUploadMiddleware=function(e,t){if(!(e.path&&-1!==e.path.indexOf("/wp/v2/media")||e.url&&-1!==e.url.indexOf("/wp/v2/media")))return t(e);var r=0;return t(M(M({},e),{},{parse:!1})).catch((function(n){var o=n.headers.get("x-wp-upload-attachment-id");return n.status>=500&&n.status<600&&o?function e(n){return r++,t({path:"/wp/v2/media/".concat(n,"/post-process"),method:"POST",data:{action:"create-image-subsizes"},parse:!1}).catch((function(){return r<5?e(n):(t({path:"/wp/v2/media/".concat(n,"?force=true"),method:"DELETE"}),Promise.reject())}))}(o).catch((function(){return!1!==e.parse?Promise.reject({code:"post_process",message:Object(c.__)("Media upload failed. If this is a photo or a large image, please scale it down and try again.")}):Promise.reject(n)})):T(n,e.parse)})).then((function(t){return k(t,e.parse)}))};var I=t.default=H}}).default;
build/autop/index.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('wp-polyfill'), 'version' => '608159f42c0877525c51c6cff4f77ef7');
1
+ <?php return array('dependencies' => array('wp-polyfill'), 'version' => '29f8e6fd302c6d82ef44655a29bb4acc');
build/autop/index.js CHANGED
@@ -1 +1 @@
1
- window.wp=window.wp||{},window.wp.autop=function(e){var r={};function n(t){if(r[t])return r[t].exports;var p=r[t]={i:t,l:!1,exports:{}};return e[t].call(p.exports,p,p.exports,n),p.l=!0,p.exports}return n.m=e,n.c=r,n.d=function(e,r,t){n.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,r){if(1&r&&(e=n(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(n.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var p in e)n.d(t,p,function(r){return e[r]}.bind(null,p));return t},n.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(r,"a",r),r},n.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},n.p="",n(n.s=404)}({10:function(e,r,n){"use strict";n.d(r,"a",(function(){return a}));var t=n(39),p=n(29),c=n(40);function a(e,r){return Object(t.a)(e)||function(e,r){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],_n=!0,t=!1,p=void 0;try{for(var c,a=e[Symbol.iterator]();!(_n=(c=a.next()).done)&&(n.push(c.value),!r||n.length!==r);_n=!0);}catch(e){t=!0,p=e}finally{try{_n||null==a.return||a.return()}finally{if(t)throw p}}return n}}(e,r)||Object(p.a)(e,r)||Object(c.a)()}},25:function(e,r,n){"use strict";function t(e,r){(null==r||r>e.length)&&(r=e.length);for(var n=0,t=new Array(r);n<r;n++)t[n]=e[n];return t}n.d(r,"a",(function(){return t}))},29:function(e,r,n){"use strict";n.d(r,"a",(function(){return p}));var t=n(25);function p(e,r){if(e){if("string"==typeof e)return Object(t.a)(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(t.a)(e,r):void 0}}},39:function(e,r,n){"use strict";function t(e){if(Array.isArray(e))return e}n.d(r,"a",(function(){return t}))},40:function(e,r,n){"use strict";function t(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(r,"a",(function(){return t}))},404:function(e,r,n){"use strict";n.r(r),n.d(r,"autop",(function(){return a})),n.d(r,"removep",(function(){return o}));var t=n(10),p=new RegExp("(<((?=!--|!\\[CDATA\\[)((?=!-)!(?:-(?!->)[^\\-]*)*(?:--\x3e)?|!\\[CDATA\\[[^\\]]*(?:](?!]>)[^\\]]*)*?(?:]]>)?)|[^>]*>?))");function c(e,r){for(var n=function(e){for(var r,n=[],t=e;r=t.match(p);){var c=r.index;n.push(t.slice(0,c)),n.push(r[0]),t=t.slice(c+r[0].length)}return t.length&&n.push(t),n}(e),t=!1,c=Object.keys(r),a=1;a<n.length;a+=2)for(var o=0;o<c.length;o++){var i=c[o];if(-1!==n[a].indexOf(i)){n[a]=n[a].replace(new RegExp(i,"g"),r[i]),t=!0;break}}return t&&(e=n.join("")),e}function a(e){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=[];if(""===e.trim())return"";if(-1!==(e+="\n").indexOf("<pre")){var p=e.split("</pre>"),a=p.pop();e="";for(var o=0;o<p.length;o++){var i=p[o],l=i.indexOf("<pre");if(-1!==l){var u="<pre wp-pre-tag-"+o+"></pre>";n.push([u,i.substr(l)+"</pre>"]),e+=i.substr(0,l)+u}else e+=i}e+=a}var s="(?:table|thead|tfoot|caption|col|colgroup|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|pre|form|map|area|blockquote|address|math|style|p|h[1-6]|hr|fieldset|legend|section|article|aside|hgroup|header|footer|nav|figure|figcaption|details|menu|summary)";-1!==(e=c(e=(e=(e=(e=e.replace(/<br\s*\/?>\s*<br\s*\/?>/g,"\n\n")).replace(new RegExp("(<"+s+"[\\s/>])","g"),"\n\n$1")).replace(new RegExp("(</"+s+">)","g"),"$1\n\n")).replace(/\r\n|\r/g,"\n"),{"\n":" \x3c!-- wpnl --\x3e "})).indexOf("<option")&&(e=(e=e.replace(/\s*<option/g,"<option")).replace(/<\/option>\s*/g,"</option>")),-1!==e.indexOf("</object>")&&(e=(e=(e=e.replace(/(<object[^>]*>)\s*/g,"$1")).replace(/\s*<\/object>/g,"</object>")).replace(/\s*(<\/?(?:param|embed)[^>]*>)\s*/g,"$1")),-1===e.indexOf("<source")&&-1===e.indexOf("<track")||(e=(e=(e=e.replace(/([<\[](?:audio|video)[^>\]]*[>\]])\s*/g,"$1")).replace(/\s*([<\[]\/(?:audio|video)[>\]])/g,"$1")).replace(/\s*(<(?:source|track)[^>]*>)\s*/g,"$1")),-1!==e.indexOf("<figcaption")&&(e=(e=e.replace(/\s*(<figcaption[^>]*>)/,"$1")).replace(/<\/figcaption>\s*/,"</figcaption>"));var f=(e=e.replace(/\n\n+/g,"\n\n")).split(/\n\s*\n/).filter(Boolean);return e="",f.forEach((function(r){e+="<p>"+r.replace(/^\n*|\n*$/g,"")+"</p>\n"})),e=(e=(e=(e=(e=(e=(e=(e=e.replace(/<p>\s*<\/p>/g,"")).replace(/<p>([^<]+)<\/(div|address|form)>/g,"<p>$1</p></$2>")).replace(new RegExp("<p>\\s*(</?"+s+"[^>]*>)\\s*</p>","g"),"$1")).replace(/<p>(<li.+?)<\/p>/g,"$1")).replace(/<p><blockquote([^>]*)>/gi,"<blockquote$1><p>")).replace(/<\/blockquote><\/p>/g,"</p></blockquote>")).replace(new RegExp("<p>\\s*(</?"+s+"[^>]*>)","g"),"$1")).replace(new RegExp("(</?"+s+"[^>]*>)\\s*</p>","g"),"$1"),r&&(e=(e=(e=(e=e.replace(/<(script|style).*?<\/\\1>/g,(function(e){return e[0].replace(/\n/g,"<WPPreserveNewline />")}))).replace(/<br>|<br\/>/g,"<br />")).replace(/(<br \/>)?\s*\n/g,(function(e,r){return r?e:"<br />\n"}))).replace(/<WPPreserveNewline \/>/g,"\n")),e=(e=(e=e.replace(new RegExp("(</?"+s+"[^>]*>)\\s*<br />","g"),"$1")).replace(/<br \/>(\s*<\/?(?:p|li|div|dl|dd|dt|th|pre|td|ul|ol)[^>]*>)/g,"$1")).replace(/\n<\/p>$/g,"</p>"),n.forEach((function(r){var n=Object(t.a)(r,2),p=n[0],c=n[1];e=e.replace(p,c)})),-1!==e.indexOf("\x3c!-- wpnl --\x3e")&&(e=e.replace(/\s?<!-- wpnl -->\s?/g,"\n")),e}function o(e){var r="blockquote|ul|ol|li|dl|dt|dd|table|thead|tbody|tfoot|tr|th|td|h[1-6]|fieldset|figure",n=r+"|div|p",t=r+"|pre",p=[],c=!1,a=!1;return e?(-1===e.indexOf("<script")&&-1===e.indexOf("<style")||(e=e.replace(/<(script|style)[^>]*>[\s\S]*?<\/\1>/g,(function(e){return p.push(e),"<wp-preserve>"}))),-1!==e.indexOf("<pre")&&(c=!0,e=e.replace(/<pre[^>]*>[\s\S]+?<\/pre>/g,(function(e){return(e=(e=e.replace(/<br ?\/?>(\r\n|\n)?/g,"<wp-line-break>")).replace(/<\/?p( [^>]*)?>(\r\n|\n)?/g,"<wp-line-break>")).replace(/\r?\n/g,"<wp-line-break>")}))),-1!==e.indexOf("[caption")&&(a=!0,e=e.replace(/\[caption[\s\S]+?\[\/caption\]/g,(function(e){return e.replace(/<br([^>]*)>/g,"<wp-temp-br$1>").replace(/[\r\n\t]+/,"")}))),-1!==(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=e.replace(new RegExp("\\s*</("+n+")>\\s*","g"),"</$1>\n")).replace(new RegExp("\\s*<((?:"+n+")(?: [^>]*)?)>","g"),"\n<$1>")).replace(/(<p [^>]+>[\s\S]*?)<\/p>/g,"$1</p#>")).replace(/<div( [^>]*)?>\s*<p>/gi,"<div$1>\n\n")).replace(/\s*<p>/gi,"")).replace(/\s*<\/p>\s*/gi,"\n\n")).replace(/\n[\s\u00a0]+\n/g,"\n\n")).replace(/(\s*)<br ?\/?>\s*/gi,(function(e,r){return r&&-1!==r.indexOf("\n")?"\n\n":"\n"}))).replace(/\s*<div/g,"\n<div")).replace(/<\/div>\s*/g,"</div>\n")).replace(/\s*\[caption([^\[]+)\[\/caption\]\s*/gi,"\n\n[caption$1[/caption]\n\n")).replace(/caption\]\n\n+\[caption/g,"caption]\n\n[caption")).replace(new RegExp("\\s*<((?:"+t+")(?: [^>]*)?)\\s*>","g"),"\n<$1>")).replace(new RegExp("\\s*</("+t+")>\\s*","g"),"</$1>\n")).replace(/<((li|dt|dd)[^>]*)>/g," \t<$1>")).indexOf("<option")&&(e=(e=e.replace(/\s*<option/g,"\n<option")).replace(/\s*<\/select>/g,"\n</select>")),-1!==e.indexOf("<hr")&&(e=e.replace(/\s*<hr( [^>]*)?>\s*/g,"\n\n<hr$1>\n\n")),-1!==e.indexOf("<object")&&(e=e.replace(/<object[\s\S]+?<\/object>/g,(function(e){return e.replace(/[\r\n]+/g,"")}))),e=(e=(e=(e=e.replace(/<\/p#>/g,"</p>\n")).replace(/\s*(<p [^>]+>[\s\S]*?<\/p>)/g,"\n$1")).replace(/^\s+/,"")).replace(/[\s\u00a0]+$/,""),c&&(e=e.replace(/<wp-line-break>/g,"\n")),a&&(e=e.replace(/<wp-temp-br([^>]*)>/g,"<br$1>")),p.length&&(e=e.replace(/<wp-preserve>/g,(function(){return p.shift()}))),e):""}}});
1
+ window.wp=window.wp||{},window.wp.autop=function(e){var r={};function n(t){if(r[t])return r[t].exports;var p=r[t]={i:t,l:!1,exports:{}};return e[t].call(p.exports,p,p.exports,n),p.l=!0,p.exports}return n.m=e,n.c=r,n.d=function(e,r,t){n.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,r){if(1&r&&(e=n(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(n.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var p in e)n.d(t,p,function(r){return e[r]}.bind(null,p));return t},n.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(r,"a",r),r},n.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},n.p="",n(n.s=401)}({25:function(e,r,n){"use strict";function t(e,r){(null==r||r>e.length)&&(r=e.length);for(var n=0,t=new Array(r);n<r;n++)t[n]=e[n];return t}n.d(r,"a",(function(){return t}))},30:function(e,r,n){"use strict";n.d(r,"a",(function(){return p}));var t=n(25);function p(e,r){if(e){if("string"==typeof e)return Object(t.a)(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(t.a)(e,r):void 0}}},39:function(e,r,n){"use strict";function t(e){if(Array.isArray(e))return e}n.d(r,"a",(function(){return t}))},40:function(e,r,n){"use strict";function t(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(r,"a",(function(){return t}))},401:function(e,r,n){"use strict";n.r(r),n.d(r,"autop",(function(){return a})),n.d(r,"removep",(function(){return o}));var t=n(9),p=new RegExp("(<((?=!--|!\\[CDATA\\[)((?=!-)!(?:-(?!->)[^\\-]*)*(?:--\x3e)?|!\\[CDATA\\[[^\\]]*(?:](?!]>)[^\\]]*)*?(?:]]>)?)|[^>]*>?))");function c(e,r){for(var n=function(e){for(var r,n=[],t=e;r=t.match(p);){var c=r.index;n.push(t.slice(0,c)),n.push(r[0]),t=t.slice(c+r[0].length)}return t.length&&n.push(t),n}(e),t=!1,c=Object.keys(r),a=1;a<n.length;a+=2)for(var o=0;o<c.length;o++){var i=c[o];if(-1!==n[a].indexOf(i)){n[a]=n[a].replace(new RegExp(i,"g"),r[i]),t=!0;break}}return t&&(e=n.join("")),e}function a(e){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=[];if(""===e.trim())return"";if(-1!==(e+="\n").indexOf("<pre")){var p=e.split("</pre>"),a=p.pop();e="";for(var o=0;o<p.length;o++){var i=p[o],l=i.indexOf("<pre");if(-1!==l){var u="<pre wp-pre-tag-"+o+"></pre>";n.push([u,i.substr(l)+"</pre>"]),e+=i.substr(0,l)+u}else e+=i}e+=a}var s="(?:table|thead|tfoot|caption|col|colgroup|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|pre|form|map|area|blockquote|address|math|style|p|h[1-6]|hr|fieldset|legend|section|article|aside|hgroup|header|footer|nav|figure|figcaption|details|menu|summary)";-1!==(e=c(e=(e=(e=(e=e.replace(/<br\s*\/?>\s*<br\s*\/?>/g,"\n\n")).replace(new RegExp("(<"+s+"[\\s/>])","g"),"\n\n$1")).replace(new RegExp("(</"+s+">)","g"),"$1\n\n")).replace(/\r\n|\r/g,"\n"),{"\n":" \x3c!-- wpnl --\x3e "})).indexOf("<option")&&(e=(e=e.replace(/\s*<option/g,"<option")).replace(/<\/option>\s*/g,"</option>")),-1!==e.indexOf("</object>")&&(e=(e=(e=e.replace(/(<object[^>]*>)\s*/g,"$1")).replace(/\s*<\/object>/g,"</object>")).replace(/\s*(<\/?(?:param|embed)[^>]*>)\s*/g,"$1")),-1===e.indexOf("<source")&&-1===e.indexOf("<track")||(e=(e=(e=e.replace(/([<\[](?:audio|video)[^>\]]*[>\]])\s*/g,"$1")).replace(/\s*([<\[]\/(?:audio|video)[>\]])/g,"$1")).replace(/\s*(<(?:source|track)[^>]*>)\s*/g,"$1")),-1!==e.indexOf("<figcaption")&&(e=(e=e.replace(/\s*(<figcaption[^>]*>)/,"$1")).replace(/<\/figcaption>\s*/,"</figcaption>"));var f=(e=e.replace(/\n\n+/g,"\n\n")).split(/\n\s*\n/).filter(Boolean);return e="",f.forEach((function(r){e+="<p>"+r.replace(/^\n*|\n*$/g,"")+"</p>\n"})),e=(e=(e=(e=(e=(e=(e=(e=e.replace(/<p>\s*<\/p>/g,"")).replace(/<p>([^<]+)<\/(div|address|form)>/g,"<p>$1</p></$2>")).replace(new RegExp("<p>\\s*(</?"+s+"[^>]*>)\\s*</p>","g"),"$1")).replace(/<p>(<li.+?)<\/p>/g,"$1")).replace(/<p><blockquote([^>]*)>/gi,"<blockquote$1><p>")).replace(/<\/blockquote><\/p>/g,"</p></blockquote>")).replace(new RegExp("<p>\\s*(</?"+s+"[^>]*>)","g"),"$1")).replace(new RegExp("(</?"+s+"[^>]*>)\\s*</p>","g"),"$1"),r&&(e=(e=(e=(e=e.replace(/<(script|style).*?<\/\\1>/g,(function(e){return e[0].replace(/\n/g,"<WPPreserveNewline />")}))).replace(/<br>|<br\/>/g,"<br />")).replace(/(<br \/>)?\s*\n/g,(function(e,r){return r?e:"<br />\n"}))).replace(/<WPPreserveNewline \/>/g,"\n")),e=(e=(e=e.replace(new RegExp("(</?"+s+"[^>]*>)\\s*<br />","g"),"$1")).replace(/<br \/>(\s*<\/?(?:p|li|div|dl|dd|dt|th|pre|td|ul|ol)[^>]*>)/g,"$1")).replace(/\n<\/p>$/g,"</p>"),n.forEach((function(r){var n=Object(t.a)(r,2),p=n[0],c=n[1];e=e.replace(p,c)})),-1!==e.indexOf("\x3c!-- wpnl --\x3e")&&(e=e.replace(/\s?<!-- wpnl -->\s?/g,"\n")),e}function o(e){var r="blockquote|ul|ol|li|dl|dt|dd|table|thead|tbody|tfoot|tr|th|td|h[1-6]|fieldset|figure",n=r+"|div|p",t=r+"|pre",p=[],c=!1,a=!1;return e?(-1===e.indexOf("<script")&&-1===e.indexOf("<style")||(e=e.replace(/<(script|style)[^>]*>[\s\S]*?<\/\1>/g,(function(e){return p.push(e),"<wp-preserve>"}))),-1!==e.indexOf("<pre")&&(c=!0,e=e.replace(/<pre[^>]*>[\s\S]+?<\/pre>/g,(function(e){return(e=(e=e.replace(/<br ?\/?>(\r\n|\n)?/g,"<wp-line-break>")).replace(/<\/?p( [^>]*)?>(\r\n|\n)?/g,"<wp-line-break>")).replace(/\r?\n/g,"<wp-line-break>")}))),-1!==e.indexOf("[caption")&&(a=!0,e=e.replace(/\[caption[\s\S]+?\[\/caption\]/g,(function(e){return e.replace(/<br([^>]*)>/g,"<wp-temp-br$1>").replace(/[\r\n\t]+/,"")}))),-1!==(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=e.replace(new RegExp("\\s*</("+n+")>\\s*","g"),"</$1>\n")).replace(new RegExp("\\s*<((?:"+n+")(?: [^>]*)?)>","g"),"\n<$1>")).replace(/(<p [^>]+>[\s\S]*?)<\/p>/g,"$1</p#>")).replace(/<div( [^>]*)?>\s*<p>/gi,"<div$1>\n\n")).replace(/\s*<p>/gi,"")).replace(/\s*<\/p>\s*/gi,"\n\n")).replace(/\n[\s\u00a0]+\n/g,"\n\n")).replace(/(\s*)<br ?\/?>\s*/gi,(function(e,r){return r&&-1!==r.indexOf("\n")?"\n\n":"\n"}))).replace(/\s*<div/g,"\n<div")).replace(/<\/div>\s*/g,"</div>\n")).replace(/\s*\[caption([^\[]+)\[\/caption\]\s*/gi,"\n\n[caption$1[/caption]\n\n")).replace(/caption\]\n\n+\[caption/g,"caption]\n\n[caption")).replace(new RegExp("\\s*<((?:"+t+")(?: [^>]*)?)\\s*>","g"),"\n<$1>")).replace(new RegExp("\\s*</("+t+")>\\s*","g"),"</$1>\n")).replace(/<((li|dt|dd)[^>]*)>/g," \t<$1>")).indexOf("<option")&&(e=(e=e.replace(/\s*<option/g,"\n<option")).replace(/\s*<\/select>/g,"\n</select>")),-1!==e.indexOf("<hr")&&(e=e.replace(/\s*<hr( [^>]*)?>\s*/g,"\n\n<hr$1>\n\n")),-1!==e.indexOf("<object")&&(e=e.replace(/<object[\s\S]+?<\/object>/g,(function(e){return e.replace(/[\r\n]+/g,"")}))),e=(e=(e=(e=e.replace(/<\/p#>/g,"</p>\n")).replace(/\s*(<p [^>]+>[\s\S]*?<\/p>)/g,"\n$1")).replace(/^\s+/,"")).replace(/[\s\u00a0]+$/,""),c&&(e=e.replace(/<wp-line-break>/g,"\n")),a&&(e=e.replace(/<wp-temp-br([^>]*)>/g,"<br$1>")),p.length&&(e=e.replace(/<wp-preserve>/g,(function(){return p.shift()}))),e):""}},9:function(e,r,n){"use strict";n.d(r,"a",(function(){return a}));var t=n(39),p=n(30),c=n(40);function a(e,r){return Object(t.a)(e)||function(e,r){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],_n=!0,t=!1,p=void 0;try{for(var c,a=e[Symbol.iterator]();!(_n=(c=a.next()).done)&&(n.push(c.value),!r||n.length!==r);_n=!0);}catch(e){t=!0,p=e}finally{try{_n||null==a.return||a.return()}finally{if(t)throw p}}return n}}(e,r)||Object(p.a)(e,r)||Object(c.a)()}}});
build/blob/index.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('wp-polyfill'), 'version' => '8679268ce6582b034594ee22eba6d37e');
1
+ <?php return array('dependencies' => array('wp-polyfill'), 'version' => 'c10ca8f0b09f99e624b1bae0887aa6fc');
build/blob/index.js CHANGED
@@ -1 +1 @@
1
- window.wp=window.wp||{},window.wp.blob=function(e){var n={};function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)t.d(r,o,function(n){return e[n]}.bind(null,o));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=405)}({405:function(e,n,t){"use strict";t.r(n),t.d(n,"createBlobURL",(function(){return f})),t.d(n,"getBlobByURL",(function(){return c})),t.d(n,"getBlobTypeByURL",(function(){return l})),t.d(n,"revokeBlobURL",(function(){return d})),t.d(n,"isBlobURL",(function(){return a}));var r=window.URL,o=r.createObjectURL,u=r.revokeObjectURL,i={};function f(e){var n=o(e);return i[n]=e,n}function c(e){return i[e]}function l(e){var n;return null===(n=c(e))||void 0===n?void 0:n.type.split("/")[0]}function d(e){i[e]&&u(e),delete i[e]}function a(e){return!(!e||!e.indexOf)&&0===e.indexOf("blob:")}}});
1
+ window.wp=window.wp||{},window.wp.blob=function(e){var n={};function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)t.d(r,o,function(n){return e[n]}.bind(null,o));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=402)}({402:function(e,n,t){"use strict";t.r(n),t.d(n,"createBlobURL",(function(){return f})),t.d(n,"getBlobByURL",(function(){return c})),t.d(n,"getBlobTypeByURL",(function(){return l})),t.d(n,"revokeBlobURL",(function(){return d})),t.d(n,"isBlobURL",(function(){return a}));var r=window.URL,o=r.createObjectURL,u=r.revokeObjectURL,i={};function f(e){var n=o(e);return i[n]=e,n}function c(e){return i[e]}function l(e){var n;return null===(n=c(e))||void 0===n?void 0:n.type.split("/")[0]}function d(e){i[e]&&u(e),delete i[e]}function a(e){return!(!e||!e.indexOf)&&0===e.indexOf("blob:")}}});
build/block-directory/index.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('lodash', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-data-controls', 'wp-edit-post', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives'), 'version' => '9fa2b43e8215926e866f168dfe816985');
1
+ <?php return array('dependencies' => array('lodash', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-data-controls', 'wp-edit-post', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives'), 'version' => '778bae8f9e64c14c37344ad9e14a8f90');
build/block-directory/index.js CHANGED
@@ -1,5 +1,5 @@
1
- window.wp=window.wp||{},window.wp.blockDirectory=function(e){var t={};function n(r){if(t[r])return t[r].exports;var c=t[r]={i:r,l:!1,exports:{}};return e[r].call(c.exports,c,c.exports,n),c.l=!0,c.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var c in e)n.d(r,c,function(t){return e[t]}.bind(null,c));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=554)}({0:function(e,t){e.exports=window.wp.element},1:function(e,t){e.exports=window.wp.i18n},10:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(39),c=n(29),o=n(40);function a(e,t){return Object(r.a)(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],_n=!0,r=!1,c=void 0;try{for(var o,a=e[Symbol.iterator]();!(_n=(o=a.next()).done)&&(n.push(o.value),!t||n.length!==t);_n=!0);}catch(e){r=!0,c=e}finally{try{_n||null==a.return||a.return()}finally{if(r)throw c}}return n}}(e,t)||Object(c.a)(e,t)||Object(o.a)()}},11:function(e,t){e.exports=window.wp.blocks},13:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(49);function c(e,t){if(null==e)return{};var n,c,o=Object(r.a)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(c=0;c<a.length;c++)n=a[c],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}},14:function(e,t){e.exports=window.wp.compose},15:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(25),c=n(44),o=n(29);function a(e){return function(e){if(Array.isArray(e))return Object(r.a)(e)}(e)||Object(c.a)(e)||Object(o.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},16:function(e,t){e.exports=window.regeneratorRuntime},165:function(e,t,n){"use strict";var r=n(6),c=n(13),o=n(0);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}t.a=function(e){var t=e.icon,n=e.size,l=void 0===n?24:n,i=Object(c.a)(e,["icon","size"]);return Object(o.cloneElement)(t,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({width:l,height:l},i))}},2:function(e,t){e.exports=window.lodash},204:function(e,t,n){"use strict";var r=n(0),c=n(7),o=Object(r.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(c.Path,{d:"M11.776 4.454a.25.25 0 01.448 0l2.069 4.192a.25.25 0 00.188.137l4.626.672a.25.25 0 01.139.426l-3.348 3.263a.25.25 0 00-.072.222l.79 4.607a.25.25 0 01-.362.263l-4.138-2.175a.25.25 0 00-.232 0l-4.138 2.175a.25.25 0 01-.363-.263l.79-4.607a.25.25 0 00-.071-.222L4.754 9.881a.25.25 0 01.139-.426l4.626-.672a.25.25 0 00.188-.137l2.069-4.192z"}));t.a=o},205:function(e,t,n){"use strict";var r=n(0),c=n(7),o=Object(r.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(c.Path,{fillRule:"evenodd",d:"M9.706 8.646a.25.25 0 01-.188.137l-4.626.672a.25.25 0 00-.139.427l3.348 3.262a.25.25 0 01.072.222l-.79 4.607a.25.25 0 00.362.264l4.138-2.176a.25.25 0 01.233 0l4.137 2.175a.25.25 0 00.363-.263l-.79-4.607a.25.25 0 01.072-.222l3.347-3.262a.25.25 0 00-.139-.427l-4.626-.672a.25.25 0 01-.188-.137l-2.069-4.192a.25.25 0 00-.448 0L9.706 8.646zM12 7.39l-.948 1.921a1.75 1.75 0 01-1.317.957l-2.12.308 1.534 1.495c.412.402.6.982.503 1.55l-.362 2.11 1.896-.997a1.75 1.75 0 011.629 0l1.895.997-.362-2.11a1.75 1.75 0 01.504-1.55l1.533-1.495-2.12-.308a1.75 1.75 0 01-1.317-.957L12 7.39z",clipRule:"evenodd"}));t.a=o},206:function(e,t,n){"use strict";var r=n(0),c=n(7),o=Object(r.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(c.Path,{d:"M19 8h-1V6h-5v2h-2V6H6v2H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-8c0-1.1-.9-2-2-2zm.5 10c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-8c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v8z"}));t.a=o},23:function(e,t){e.exports=window.wp.coreData},25:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,"a",(function(){return r}))},29:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(25);function c(e,t){if(e){if("string"==typeof e)return Object(r.a)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r.a)(e,t):void 0}}},3:function(e,t){e.exports=window.wp.components},34:function(e,t){e.exports=window.wp.hooks},356:function(e,t){e.exports=window.wp.editPost},36:function(e,t){e.exports=window.wp.editor},39:function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,"a",(function(){return r}))},4:function(e,t){e.exports=window.wp.data},40:function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,"a",(function(){return r}))},44:function(e,t,n){"use strict";function r(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}n.d(t,"a",(function(){return r}))},45:function(e,t){e.exports=window.wp.notices},46:function(e,t,n){"use strict";function r(e,t,n,r,c,o,a){try{var l=e[o](a),i=l.value}catch(e){return void n(e)}l.done?t(i):Promise.resolve(i).then(r,c)}function c(e){return function(){var t=this,n=arguments;return new Promise((function(c,o){var a=e.apply(t,n);function l(e){r(a,c,o,l,i,"next",e)}function i(e){r(a,c,o,l,i,"throw",e)}l(void 0)}))}}n.d(t,"a",(function(){return c}))},49:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,c={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(c[n]=e[n]);return c}n.d(t,"a",(function(){return r}))},5:function(e,t){e.exports=window.wp.blockEditor},52:function(e,t){e.exports=window.wp.apiFetch},55:function(e,t){e.exports=window.wp.a11y},554:function(e,t,n){"use strict";n.r(t),n.d(t,"store",(function(){return ce}));var r={};n.r(r),n.d(r,"isRequestingDownloadableBlocks",(function(){return v})),n.d(r,"getDownloadableBlocks",(function(){return g})),n.d(r,"getInstalledBlockTypes",(function(){return w})),n.d(r,"getNewBlockTypes",(function(){return h})),n.d(r,"getUnusedBlockTypes",(function(){return E})),n.d(r,"isInstalling",(function(){return _})),n.d(r,"getErrorNotices",(function(){return B})),n.d(r,"getErrorNoticeForBlock",(function(){return x}));var c={};n.r(c),n.d(c,"fetchDownloadableBlocks",(function(){return U})),n.d(c,"receiveDownloadableBlocks",(function(){return q})),n.d(c,"installBlockType",(function(){return Y})),n.d(c,"uninstallBlockType",(function(){return G})),n.d(c,"addInstalledBlockType",(function(){return W})),n.d(c,"removeInstalledBlockType",(function(){return J})),n.d(c,"setIsInstalling",(function(){return Q})),n.d(c,"setErrorNotice",(function(){return X})),n.d(c,"clearErrorNotice",(function(){return Z}));var o=n(0),a=n(68),l=n(34),i=n(11),s=n(4),u=n(36),b=n(6),d=n(56),f=n(15),p=n(2);function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?O(Object(n),!0).forEach((function(t){Object(b.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var j=Object(s.combineReducers)({downloadableBlocks:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"FETCH_DOWNLOADABLE_BLOCKS":return m(m({},e),{},Object(b.a)({},t.filterValue,{isRequesting:!0}));case"RECEIVE_DOWNLOADABLE_BLOCKS":return m(m({},e),{},Object(b.a)({},t.filterValue,{results:t.downloadableBlocks,isRequesting:!1}))}return e},blockManagement:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{installedBlockTypes:[],isInstalling:{}},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ADD_INSTALLED_BLOCK_TYPE":return m(m({},e),{},{installedBlockTypes:[].concat(Object(f.a)(e.installedBlockTypes),[t.item])});case"REMOVE_INSTALLED_BLOCK_TYPE":return m(m({},e),{},{installedBlockTypes:e.installedBlockTypes.filter((function(e){return e.name!==t.item.name}))});case"SET_INSTALLING_BLOCK":return m(m({},e),{},{isInstalling:m(m({},e.isInstalling),{},Object(b.a)({},t.blockId,t.isInstalling))})}return e},errorNotices:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_ERROR_NOTICE":return m(m({},e),{},Object(b.a)({},t.blockId,{message:t.message,isFatal:t.isFatal}));case"CLEAR_ERROR_NOTICE":return Object(p.omit)(e,t.blockId)}return e}}),y=n(5);function k(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(!t.length)return!1;if(t.some((function(t){return t.name===e.name})))return!0;for(var n=0;n<t.length;n++)if(k(e,t[n].innerBlocks))return!0;return!1}function v(e,t){return!(!e.downloadableBlocks[t]||!e.downloadableBlocks[t].isRequesting)&&e.downloadableBlocks[t].isRequesting}function g(e,t){return e.downloadableBlocks[t]&&e.downloadableBlocks[t].results?e.downloadableBlocks[t].results:[]}function w(e){return e.blockManagement.installedBlockTypes}var h=Object(s.createRegistrySelector)((function(e){return function(t){var n=e(y.store).getBlocks();return w(t).filter((function(e){return k(e,n)}))}})),E=Object(s.createRegistrySelector)((function(e){return function(t){var n=e(y.store).getBlocks();return w(t).filter((function(e){return!k(e,n)}))}}));function _(e,t){return e.blockManagement.isInstalling[t]||!1}function B(e){return e.errorNotices}function x(e,t){return e.errorNotices[t]}var S=n(16),I=n.n(S),N=n(1),T=n(45),P=n(46),L=n(52),D=n.n(L);function A(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return C(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?C(e,void 0):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,c=function(){};return{s:c,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:c}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,l=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw o}}}}function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var R=function(e){return new Promise((function(t,n){var r=document.createElement(e.nodeName);["id","rel","src","href","type"].forEach((function(t){e[t]&&(r[t]=e[t])})),e.innerHTML&&r.appendChild(document.createTextNode(e.innerHTML)),r.onload=function(){return t(!0)},r.onerror=function(){return n(new Error("Error loading asset."))},document.body.appendChild(r),("link"===r.nodeName.toLowerCase()||"script"===r.nodeName.toLowerCase()&&!r.src)&&t()}))};function M(e){return{type:"LOAD_ASSETS",assets:e}}var F={LOAD_ASSETS:function(){return Object(P.a)(I.a.mark((function e(){var t,n,r,c,o,a,l;return I.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,D()({url:document.location.href,parse:!1});case 2:return t=e.sent,e.next=5,t.text();case 5:n=e.sent,r=(new window.DOMParser).parseFromString(n,"text/html"),c=Array.from(r.querySelectorAll('link[rel="stylesheet"],script')).filter((function(e){return e.id&&!document.getElementById(e.id)})),o=A(c),e.prev=9,o.s();case 11:if((a=o.n()).done){e.next=17;break}return l=a.value,e.next=15,R(l);case 15:e.next=11;break;case 17:e.next=22;break;case 19:e.prev=19,e.t0=e.catch(9),o.e(e.t0);case 22:return e.prev=22,o.f(),e.finish(22);case 25:case"end":return e.stop()}}),e,null,[[9,19,22,25]])})))()}};function V(e){if(!e)return!1;var t=e.links["wp:plugin"]||e.links.self;return!(!t||!t.length)&&t[0].href}var H=I.a.mark(Y),z=I.a.mark(G);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){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?K(Object(n),!0).forEach((function(t){Object(b.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):K(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function U(e){return{type:"FETCH_DOWNLOADABLE_BLOCKS",filterValue:e}}function q(e,t){return{type:"RECEIVE_DOWNLOADABLE_BLOCKS",downloadableBlocks:e,filterValue:t}}function Y(e){var t,n,r,c,o,a,l,u,b;return I.a.wrap((function(f){for(;;)switch(f.prev=f.next){case 0:return t=e.id,n=e.assets,r=!1,f.next=4,Z(t);case 4:return f.prev=4,f.next=7,Q(e.id,!0);case 7:if(c=V(e),o={},!c){f.next=14;break}return f.next=12,Object(d.apiFetch)({url:c,data:{status:"active"},method:"PUT"});case 12:f.next=18;break;case 14:return f.next=16,Object(d.apiFetch)({path:"wp/v2/plugins",data:{slug:e.id,status:"active"},method:"POST"});case 16:a=f.sent,o=a._links;case 18:return f.next=20,W($($({},e),{},{links:$($({},e.links),o)}));case 20:return f.next=22,M(n);case 22:return f.next=24,s.controls.select(i.store.name,"getBlockTypes");case 24:if(f.sent.some((function(t){return t.name===e.name}))){f.next=27;break}throw new Error(Object(N.__)("Error registering block. Try reloading the page."));case 27:return f.next=29,s.controls.dispatch(T.store,"createInfoNotice",Object(N.sprintf)(// translators: %s is the block title.
2
- Object(N.__)("Block %s installed and added."),e.title),{speak:!0,type:"snackbar"});case 29:r=!0,f.next=42;break;case 32:return f.prev=32,f.t0=f.catch(4),l=f.t0.message||Object(N.__)("An error occurred."),u=f.t0 instanceof Error,(b={folder_exists:Object(N.__)("This block is already installed. Try reloading the page."),unable_to_connect_to_filesystem:Object(N.__)("Error installing block. You can reload the page and try again.")})[f.t0.code]&&(u=!0,l=b[f.t0.code]),f.next=40,X(t,l,u);case 40:return f.next=42,s.controls.dispatch(T.store,"createErrorNotice",l,{speak:!0,isDismissible:!0});case 42:return f.next=44,Q(e.id,!1);case 44:return f.abrupt("return",r);case 45:case"end":return f.stop()}}),H,null,[[4,32]])}function G(e){return I.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Object(d.apiFetch)({url:V(e),data:{status:"inactive"},method:"PUT"});case 3:return t.next=5,Object(d.apiFetch)({url:V(e),method:"DELETE"});case 5:return t.next=7,J(e);case 7:t.next=13;break;case 9:return t.prev=9,t.t0=t.catch(0),t.next=13,s.controls.dispatch(T.store,"createErrorNotice",t.t0.message||Object(N.__)("An error occurred."));case 13:case"end":return t.stop()}}),z,null,[[0,9]])}function W(e){return{type:"ADD_INSTALLED_BLOCK_TYPE",item:e}}function J(e){return{type:"REMOVE_INSTALLED_BLOCK_TYPE",item:e}}function Q(e,t){return{type:"SET_INSTALLING_BLOCK",blockId:e,isInstalling:t}}function X(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{type:"SET_ERROR_NOTICE",blockId:e,message:t,isFatal:n}}function Z(e){return{type:"CLEAR_ERROR_NOTICE",blockId:e}}var ee={getDownloadableBlocks:I.a.mark((function e(t){var n,r;return I.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return");case 2:return e.prev=2,e.next=5,U(t);case 5:return e.next=7,Object(d.apiFetch)({path:"wp/v2/block-directory/search?term=".concat(t)});case 7:return n=e.sent,r=n.map((function(e){return Object(p.mapKeys)(e,(function(e,t){return Object(p.camelCase)(t)}))})),e.next=11,q(r,t);case 11:e.next=15;break;case 13:e.prev=13,e.t0=e.catch(2);case 15:case"end":return e.stop()}}),e,null,[[2,13]])}))};function te(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 ne(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?te(Object(n),!0).forEach((function(t){Object(b.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):te(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var re={reducer:j,selectors:r,actions:c,controls:ne(ne({},d.controls),F),resolvers:ee},ce=Object(s.createReduxStore)("core/block-directory",re);function oe(){var e=Object(s.useDispatch)(ce).uninstallBlockType,t=Object(s.useSelect)((function(e){var t=e(u.store),n=t.isAutosavingPost;return(0,t.isSavingPost)()&&!n()}),[]),n=Object(s.useSelect)((function(e){return e(ce).getUnusedBlockTypes()}),[]);return Object(o.useEffect)((function(){t&&n.length&&n.forEach((function(t){e(t),Object(i.unregisterBlockType)(t.name)}))}),[t]),null}Object(s.register)(ce);var ae=n(10),le=n(3),ie=n(14),se=n(23),ue=n(9),be=n(71),de=n(165),fe=n(204),pe=n(7),Oe=Object(o.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(pe.Path,{d:"M9.518 8.783a.25.25 0 00.188-.137l2.069-4.192a.25.25 0 01.448 0l2.07 4.192a.25.25 0 00.187.137l4.626.672a.25.25 0 01.139.427l-3.347 3.262a.25.25 0 00-.072.222l.79 4.607a.25.25 0 01-.363.264l-4.137-2.176a.25.25 0 00-.233 0l-4.138 2.175a.25.25 0 01-.362-.263l.79-4.607a.25.25 0 00-.072-.222L4.753 9.882a.25.25 0 01.14-.427l4.625-.672zM12 14.533c.28 0 .559.067.814.2l1.895.997-.362-2.11a1.75 1.75 0 01.504-1.55l1.533-1.495-2.12-.308a1.75 1.75 0 01-1.317-.957L12 7.39v7.143z"})),me=n(205),je=function(e){var t=e.rating,n=.5*Math.round(t/.5),r=Math.floor(t),c=Math.ceil(t-r),a=5-(r+c);return Object(o.createElement)("span",{"aria-label":Object(N.sprintf)(
3
  /* translators: %s: number of stars. */
4
  Object(N.__)("%s out of 5 stars"),n)},Object(p.times)(r,(function(e){return Object(o.createElement)(de.a,{key:"full_stars_".concat(e),className:"block-directory-block-ratings__star-full",icon:fe.a,size:16})})),Object(p.times)(c,(function(e){return Object(o.createElement)(de.a,{key:"half_stars_".concat(e),className:"block-directory-block-ratings__star-half-full",icon:Oe,size:16})})),Object(p.times)(a,(function(e){return Object(o.createElement)(de.a,{key:"empty_stars_".concat(e),className:"block-directory-block-ratings__star-empty",icon:me.a,size:16})})))},ye=function(e){var t=e.rating;return Object(o.createElement)("span",{className:"block-directory-block-ratings"},Object(o.createElement)(je,{rating:t}))},ke=function(e){var t=e.icon,n="block-directory-downloadable-block-icon";return null!==t.match(/\.(jpeg|jpg|gif|png|svg)(?:\?.*)?$/)?Object(o.createElement)("img",{className:n,src:t,alt:""}):Object(o.createElement)(y.BlockIcon,{className:n,icon:t,showColors:!0})},ve=function(e){var t=e.block,n=Object(s.useSelect)((function(e){return e(ce).getErrorNoticeForBlock(t.id)}),[t]);return n?Object(o.createElement)("div",{className:"block-directory-downloadable-block-notice"},Object(o.createElement)("div",{className:"block-directory-downloadable-block-notice__content"},n.message,n.isFatal?" "+Object(N.__)("Try reloading the page."):null)):null};function ge(e,t){var n=e.title,r=e.rating,c=e.ratingCount,o=t.hasNotice,a=t.isInstalled,l=t.isInstalling,i=.5*Math.round(r/.5);return!a&&o?Object(N.sprintf)("Retry installing %s.",Object(be.decodeEntities)(n)):a?Object(N.sprintf)("Add %s.",Object(be.decodeEntities)(n)):l?Object(N.sprintf)("Installing %s.",Object(be.decodeEntities)(n)):c<1?Object(N.sprintf)("Install %s.",Object(be.decodeEntities)(n)):Object(N.sprintf)(
5
  /* translators: %1$s: block title, %2$s: average rating, %3$s: total ratings count. */
@@ -7,7 +7,7 @@ Object(N._n)("Install %1$s. %2$s stars with %3$s review.","Install %1$s. %2$s st
7
  /* translators: %1$s: block title, %2$s: author name. */
8
  Object(N.__)("%1$s <span>by %2$s</span>"),Object(be.decodeEntities)(b),c),{span:Object(o.createElement)("span",{className:"block-directory-downloadable-block-list-item__author"})})),p?Object(o.createElement)(ve,{block:n}):Object(o.createElement)(o.Fragment,null,Object(o.createElement)("span",{className:"block-directory-downloadable-block-list-item__desc"},j||Object(be.decodeEntities)(a)),m&&!(d||O)&&Object(o.createElement)(le.VisuallyHidden,null,Object(N.__)("Install block")))))},he=function(e){var t=e.items,n=e.onHover,r=void 0===n?p.noop:n,c=e.onSelect,a=Object(le.__unstableUseCompositeState)(),l=Object(s.useDispatch)(ce).installBlockType;return t.length?Object(o.createElement)(le.__unstableComposite,Object(ue.a)({},a,{role:"listbox",className:"block-directory-downloadable-blocks-list","aria-label":Object(N.__)("Blocks available for install")}),t.map((function(e){return Object(o.createElement)(we,{key:e.id,composite:a,onClick:function(){Object(i.getBlockType)(e.name)?c(e):l(e).then((function(t){t&&c(e)})),r(null)},onHover:r,item:e})}))):null},Ee=n(55),_e=function(e){var t=e.children,n=e.downloadableItems,r=e.hasLocalBlocks,c=n.length;return Object(o.useEffect)((function(){Object(Ee.speak)(Object(N.sprintf)(
9
  /* translators: %d: number of available blocks. */
10
- Object(N._n)("%d additional block is available to install.","%d additional blocks are available to install.",c),c))}),[c]),Object(o.createElement)(o.Fragment,null,!r&&Object(o.createElement)("p",{className:"block-directory-downloadable-blocks-panel__no-local"},Object(N.__)("No results available from your installed blocks.")),Object(o.createElement)("div",{className:"block-editor-inserter__quick-inserter-separator"}),Object(o.createElement)("div",{className:"block-directory-downloadable-blocks-panel"},Object(o.createElement)("div",{className:"block-directory-downloadable-blocks-panel__header"},Object(o.createElement)("h2",{className:"block-directory-downloadable-blocks-panel__title"},Object(N.__)("Available to install")),Object(o.createElement)("p",{className:"block-directory-downloadable-blocks-panel__description"},Object(N.__)("Select a block to install and add it to your post."))),t))},Be=n(206),xe=function(){return Object(o.createElement)("div",{className:"block-editor-inserter__no-results"},Object(o.createElement)(de.a,{className:"block-editor-inserter__no-results-icon",icon:Be.a}),Object(o.createElement)("p",null,Object(N.__)("No results found.")))},Se=Object(ie.compose)([Object(s.withSelect)((function(e,t){var n=t.filterValue,r=t.rootClientId,c=void 0===r?null:r,o=e(ce),a=o.getDownloadableBlocks,l=o.isRequestingDownloadableBlocks,i=e(y.store).canInsertBlockType,s=e(se.store).canUser("read","block-directory/search");return{downloadableItems:s?a(n).filter((function(e){return i(e,c,!0)})):[],hasPermission:s,isLoading:l(n)}}))])((function(e){var t=e.downloadableItems,n=e.onSelect,r=e.onHover,c=e.hasLocalBlocks,a=e.hasPermission,l=e.isLoading,i=e.isTyping;return void 0===a||l||i?Object(o.createElement)(o.Fragment,null,a&&!c&&Object(o.createElement)(o.Fragment,null,Object(o.createElement)("p",{className:"block-directory-downloadable-blocks-panel__no-local"},Object(N.__)("No results available from your installed blocks.")),Object(o.createElement)("div",{className:"block-editor-inserter__quick-inserter-separator"})),Object(o.createElement)("div",{className:"block-directory-downloadable-blocks-panel has-blocks-loading"},Object(o.createElement)(le.Spinner,null))):!1===a?c?null:Object(o.createElement)(xe,null):t.length?Object(o.createElement)(_e,{downloadableItems:t,hasLocalBlocks:c},Object(o.createElement)(he,{items:t,onSelect:n,onHover:r})):!c&&Object(o.createElement)(xe,null)})),Ie=function(){var e=Object(o.useState)(""),t=Object(ae.a)(e,2),n=t[0],r=t[1],c=Object(p.debounce)(r,400);return Object(o.createElement)(y.__experimentalInserterMenuExtension,null,(function(e){var t=e.onSelect,r=e.onHover,a=e.filterValue,l=e.hasItems,i=e.rootClientId;return n!==a&&c(a),n?Object(o.createElement)(Se,{onSelect:t,onHover:r,rootClientId:i,filterValue:n,hasLocalBlocks:l,isTyping:a!==n}):null}))},Ne=n(356);function Te(e){var t=e.items;return t.length?Object(o.createElement)("ul",{className:"block-directory-compact-list"},t.map((function(e){var t=e.icon,n=e.id,r=e.title,c=e.author;return Object(o.createElement)("li",{key:n,className:"block-directory-compact-list__item"},Object(o.createElement)(ke,{icon:t,title:r}),Object(o.createElement)("div",{className:"block-directory-compact-list__item-details"},Object(o.createElement)("div",{className:"block-directory-compact-list__item-title"},r),Object(o.createElement)("div",{className:"block-directory-compact-list__item-author"},Object(N.sprintf)(
11
  /* translators: %s: Name of the block author. */
12
  Object(N.__)("By %s"),c))))}))):null}function Pe(){var e=Object(s.useSelect)((function(e){return e(ce).getNewBlockTypes()}),[]);return e.length?Object(o.createElement)(Ne.PluginPrePublishPanel,{icon:Be.a,title:Object(N.sprintf)(// translators: %d: number of blocks (number).
13
  Object(N._n)("Added: %d block","Added: %d blocks",e.length),e.length),initialOpen:!0},Object(o.createElement)("p",{className:"installed-blocks-pre-publish-panel__copy"},Object(N._n)("The following block has been added to your site.","The following blocks have been added to your site.",e.length)),Object(o.createElement)(Te,{items:e})):null}var Le=n(13);function De(e){var t=e.attributes,n=e.block,r=e.clientId,c=Object(s.useSelect)((function(e){return e(ce).isInstalling(n.id)})),a=Object(s.useDispatch)(ce).installBlockType,l=Object(s.useDispatch)(y.store).replaceBlock;return Object(o.createElement)(le.Button,{onClick:function(){return a(n).then((function(e){if(e){var c=Object(i.getBlockType)(n.name),o=Object(i.parse)(t.originalContent),a=Object(ae.a)(o,1)[0];a&&l(r,Object(i.createBlock)(c.name,a.attributes,a.innerBlocks))}}))},disabled:c,isBusy:c,isPrimary:!0},Object(N.sprintf)(
@@ -16,4 +16,4 @@ Object(N.__)("Install %s"),n.title))}var Ae=function(e){var t=e.originalBlock,n=
16
  /* translators: %s: block name */
17
  Object(N.__)("Your site doesn’t include support for the %s block. You can try installing the block or remove it entirely."),t.title||c),f=[Object(o.createElement)(De,{key:"install",block:t,attributes:n.attributes,clientId:n.clientId})];return u&&b&&(d=Object(N.sprintf)(
18
  /* translators: %s: block name */
19
- Object(N.__)("Your site doesn’t include support for the %s block. You can try installing the block, convert it to a Custom HTML block, or remove it entirely."),t.title||c),f.push(Object(o.createElement)(le.Button,{key:"convert",onClick:function(){l(n.clientId,Object(i.createBlock)("core/html",{content:a}))},isLink:!0},Object(N.__)("Keep as HTML")))),Object(o.createElement)("div",Object(y.useBlockProps)(),Object(o.createElement)(y.Warning,{actions:f},d),Object(o.createElement)(o.RawHTML,null,a))};Object(a.registerPlugin)("block-directory",{render:function(){return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(oe,null),Object(o.createElement)(Ie,null),Object(o.createElement)(Pe,null))}}),Object(l.addFilter)("blocks.registerBlockType","block-directory/fallback",(function(e,t){return"core/missing"!==t||(e.edit=(n=e.edit,function(e){var t=e.attributes.originalName,r=Object(s.useSelect)((function(e){var n=(0,e(ce).getDownloadableBlocks)("block:"+t).filter((function(e){var n=e.name;return t===n}));return{hasPermission:e(se.store).canUser("read","block-directory/search"),block:n.length&&n[0]}}),[t]),c=r.block;return r.hasPermission&&c?Object(o.createElement)(Ae,Object(ue.a)({},e,{originalBlock:c})):Object(o.createElement)(n,e)})),e;var n}))},56:function(e,t){e.exports=window.wp.dataControls},6: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}))},68:function(e,t){e.exports=window.wp.plugins},7:function(e,t){e.exports=window.wp.primitives},71:function(e,t){e.exports=window.wp.htmlEntities},9:function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.d(t,"a",(function(){return r}))}});
1
+ window.wp=window.wp||{},window.wp.blockDirectory=function(e){var t={};function n(r){if(t[r])return t[r].exports;var c=t[r]={i:r,l:!1,exports:{}};return e[r].call(c.exports,c,c.exports,n),c.l=!0,c.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var c in e)n.d(r,c,function(t){return e[t]}.bind(null,c));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=554)}({0:function(e,t){e.exports=window.wp.element},1:function(e,t){e.exports=window.wp.i18n},10:function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.d(t,"a",(function(){return r}))},11:function(e,t){e.exports=window.wp.blocks},13:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(50);function c(e,t){if(null==e)return{};var n,c,o=Object(r.a)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(c=0;c<a.length;c++)n=a[c],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}},14:function(e,t){e.exports=window.wp.compose},15:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(25),c=n(44),o=n(30);function a(e){return function(e){if(Array.isArray(e))return Object(r.a)(e)}(e)||Object(c.a)(e)||Object(o.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},153:function(e,t,n){"use strict";var r=n(5),c=n(13),o=n(0);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}t.a=function(e){var t=e.icon,n=e.size,l=void 0===n?24:n,i=Object(c.a)(e,["icon","size"]);return Object(o.cloneElement)(t,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({width:l,height:l},i))}},16:function(e,t){e.exports=window.regeneratorRuntime},19:function(e,t){e.exports=window.wp.coreData},2:function(e,t){e.exports=window.lodash},205:function(e,t,n){"use strict";var r=n(0),c=n(7),o=Object(r.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(c.Path,{d:"M11.776 4.454a.25.25 0 01.448 0l2.069 4.192a.25.25 0 00.188.137l4.626.672a.25.25 0 01.139.426l-3.348 3.263a.25.25 0 00-.072.222l.79 4.607a.25.25 0 01-.362.263l-4.138-2.175a.25.25 0 00-.232 0l-4.138 2.175a.25.25 0 01-.363-.263l.79-4.607a.25.25 0 00-.071-.222L4.754 9.881a.25.25 0 01.139-.426l4.626-.672a.25.25 0 00.188-.137l2.069-4.192z"}));t.a=o},206:function(e,t,n){"use strict";var r=n(0),c=n(7),o=Object(r.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(c.Path,{fillRule:"evenodd",d:"M9.706 8.646a.25.25 0 01-.188.137l-4.626.672a.25.25 0 00-.139.427l3.348 3.262a.25.25 0 01.072.222l-.79 4.607a.25.25 0 00.362.264l4.138-2.176a.25.25 0 01.233 0l4.137 2.175a.25.25 0 00.363-.263l-.79-4.607a.25.25 0 01.072-.222l3.347-3.262a.25.25 0 00-.139-.427l-4.626-.672a.25.25 0 01-.188-.137l-2.069-4.192a.25.25 0 00-.448 0L9.706 8.646zM12 7.39l-.948 1.921a1.75 1.75 0 01-1.317.957l-2.12.308 1.534 1.495c.412.402.6.982.503 1.55l-.362 2.11 1.896-.997a1.75 1.75 0 011.629 0l1.895.997-.362-2.11a1.75 1.75 0 01.504-1.55l1.533-1.495-2.12-.308a1.75 1.75 0 01-1.317-.957L12 7.39z",clipRule:"evenodd"}));t.a=o},207:function(e,t,n){"use strict";var r=n(0),c=n(7),o=Object(r.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(c.Path,{d:"M19 8h-1V6h-5v2h-2V6H6v2H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-8c0-1.1-.9-2-2-2zm.5 10c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-8c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v8z"}));t.a=o},25:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,"a",(function(){return r}))},3:function(e,t){e.exports=window.wp.components},30:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(25);function c(e,t){if(e){if("string"==typeof e)return Object(r.a)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r.a)(e,t):void 0}}},32:function(e,t){e.exports=window.wp.hooks},355:function(e,t){e.exports=window.wp.editPost},36:function(e,t){e.exports=window.wp.editor},39:function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,"a",(function(){return r}))},4:function(e,t){e.exports=window.wp.data},40:function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,"a",(function(){return r}))},44:function(e,t,n){"use strict";function r(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}n.d(t,"a",(function(){return r}))},45:function(e,t){e.exports=window.wp.notices},46:function(e,t,n){"use strict";function r(e,t,n,r,c,o,a){try{var l=e[o](a),i=l.value}catch(e){return void n(e)}l.done?t(i):Promise.resolve(i).then(r,c)}function c(e){return function(){var t=this,n=arguments;return new Promise((function(c,o){var a=e.apply(t,n);function l(e){r(a,c,o,l,i,"next",e)}function i(e){r(a,c,o,l,i,"throw",e)}l(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}))},50:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,c={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(c[n]=e[n]);return c}n.d(t,"a",(function(){return r}))},52:function(e,t){e.exports=window.wp.apiFetch},55:function(e,t){e.exports=window.wp.a11y},554:function(e,t,n){"use strict";n.r(t),n.d(t,"store",(function(){return ce}));var r={};n.r(r),n.d(r,"isRequestingDownloadableBlocks",(function(){return v})),n.d(r,"getDownloadableBlocks",(function(){return g})),n.d(r,"getInstalledBlockTypes",(function(){return w})),n.d(r,"getNewBlockTypes",(function(){return h})),n.d(r,"getUnusedBlockTypes",(function(){return E})),n.d(r,"isInstalling",(function(){return _})),n.d(r,"getErrorNotices",(function(){return B})),n.d(r,"getErrorNoticeForBlock",(function(){return x}));var c={};n.r(c),n.d(c,"fetchDownloadableBlocks",(function(){return U})),n.d(c,"receiveDownloadableBlocks",(function(){return q})),n.d(c,"installBlockType",(function(){return Y})),n.d(c,"uninstallBlockType",(function(){return G})),n.d(c,"addInstalledBlockType",(function(){return W})),n.d(c,"removeInstalledBlockType",(function(){return J})),n.d(c,"setIsInstalling",(function(){return Q})),n.d(c,"setErrorNotice",(function(){return X})),n.d(c,"clearErrorNotice",(function(){return Z}));var o=n(0),a=n(69),l=n(32),i=n(11),s=n(4),u=n(36),b=n(5),d=n(56),f=n(15),p=n(2);function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?O(Object(n),!0).forEach((function(t){Object(b.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var j=Object(s.combineReducers)({downloadableBlocks:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"FETCH_DOWNLOADABLE_BLOCKS":return m(m({},e),{},Object(b.a)({},t.filterValue,{isRequesting:!0}));case"RECEIVE_DOWNLOADABLE_BLOCKS":return m(m({},e),{},Object(b.a)({},t.filterValue,{results:t.downloadableBlocks,isRequesting:!1}))}return e},blockManagement:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{installedBlockTypes:[],isInstalling:{}},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ADD_INSTALLED_BLOCK_TYPE":return m(m({},e),{},{installedBlockTypes:[].concat(Object(f.a)(e.installedBlockTypes),[t.item])});case"REMOVE_INSTALLED_BLOCK_TYPE":return m(m({},e),{},{installedBlockTypes:e.installedBlockTypes.filter((function(e){return e.name!==t.item.name}))});case"SET_INSTALLING_BLOCK":return m(m({},e),{},{isInstalling:m(m({},e.isInstalling),{},Object(b.a)({},t.blockId,t.isInstalling))})}return e},errorNotices:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_ERROR_NOTICE":return m(m({},e),{},Object(b.a)({},t.blockId,{message:t.message,isFatal:t.isFatal}));case"CLEAR_ERROR_NOTICE":return Object(p.omit)(e,t.blockId)}return e}}),y=n(6);function k(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(!t.length)return!1;if(t.some((function(t){return t.name===e.name})))return!0;for(var n=0;n<t.length;n++)if(k(e,t[n].innerBlocks))return!0;return!1}function v(e,t){return!(!e.downloadableBlocks[t]||!e.downloadableBlocks[t].isRequesting)&&e.downloadableBlocks[t].isRequesting}function g(e,t){return e.downloadableBlocks[t]&&e.downloadableBlocks[t].results?e.downloadableBlocks[t].results:[]}function w(e){return e.blockManagement.installedBlockTypes}var h=Object(s.createRegistrySelector)((function(e){return function(t){var n=e(y.store).getBlocks();return w(t).filter((function(e){return k(e,n)}))}})),E=Object(s.createRegistrySelector)((function(e){return function(t){var n=e(y.store).getBlocks();return w(t).filter((function(e){return!k(e,n)}))}}));function _(e,t){return e.blockManagement.isInstalling[t]||!1}function B(e){return e.errorNotices}function x(e,t){return e.errorNotices[t]}var S=n(16),I=n.n(S),N=n(1),T=n(45),P=n(46),L=n(52),D=n.n(L);function A(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return C(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?C(e,void 0):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,c=function(){};return{s:c,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:c}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,l=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw o}}}}function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var R=function(e){return new Promise((function(t,n){var r=document.createElement(e.nodeName);["id","rel","src","href","type"].forEach((function(t){e[t]&&(r[t]=e[t])})),e.innerHTML&&r.appendChild(document.createTextNode(e.innerHTML)),r.onload=function(){return t(!0)},r.onerror=function(){return n(new Error("Error loading asset."))},document.body.appendChild(r),("link"===r.nodeName.toLowerCase()||"script"===r.nodeName.toLowerCase()&&!r.src)&&t()}))};function M(e){return{type:"LOAD_ASSETS",assets:e}}var F={LOAD_ASSETS:function(){return Object(P.a)(I.a.mark((function e(){var t,n,r,c,o,a,l;return I.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,D()({url:document.location.href,parse:!1});case 2:return t=e.sent,e.next=5,t.text();case 5:n=e.sent,r=(new window.DOMParser).parseFromString(n,"text/html"),c=Array.from(r.querySelectorAll('link[rel="stylesheet"],script')).filter((function(e){return e.id&&!document.getElementById(e.id)})),o=A(c),e.prev=9,o.s();case 11:if((a=o.n()).done){e.next=17;break}return l=a.value,e.next=15,R(l);case 15:e.next=11;break;case 17:e.next=22;break;case 19:e.prev=19,e.t0=e.catch(9),o.e(e.t0);case 22:return e.prev=22,o.f(),e.finish(22);case 25:case"end":return e.stop()}}),e,null,[[9,19,22,25]])})))()}};function V(e){if(!e)return!1;var t=e.links["wp:plugin"]||e.links.self;return!(!t||!t.length)&&t[0].href}var H=I.a.mark(Y),z=I.a.mark(G);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){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?K(Object(n),!0).forEach((function(t){Object(b.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):K(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function U(e){return{type:"FETCH_DOWNLOADABLE_BLOCKS",filterValue:e}}function q(e,t){return{type:"RECEIVE_DOWNLOADABLE_BLOCKS",downloadableBlocks:e,filterValue:t}}function Y(e){var t,n,r,c,o,a,l,u,b;return I.a.wrap((function(f){for(;;)switch(f.prev=f.next){case 0:return t=e.id,n=e.assets,r=!1,f.next=4,Z(t);case 4:return f.prev=4,f.next=7,Q(e.id,!0);case 7:if(c=V(e),o={},!c){f.next=14;break}return f.next=12,Object(d.apiFetch)({url:c,data:{status:"active"},method:"PUT"});case 12:f.next=18;break;case 14:return f.next=16,Object(d.apiFetch)({path:"wp/v2/plugins",data:{slug:e.id,status:"active"},method:"POST"});case 16:a=f.sent,o=a._links;case 18:return f.next=20,W($($({},e),{},{links:$($({},e.links),o)}));case 20:return f.next=22,M(n);case 22:return f.next=24,s.controls.select(i.store.name,"getBlockTypes");case 24:if(f.sent.some((function(t){return t.name===e.name}))){f.next=27;break}throw new Error(Object(N.__)("Error registering block. Try reloading the page."));case 27:return f.next=29,s.controls.dispatch(T.store,"createInfoNotice",Object(N.sprintf)(// translators: %s is the block title.
2
+ Object(N.__)("Block %s installed and added."),e.title),{speak:!0,type:"snackbar"});case 29:r=!0,f.next=42;break;case 32:return f.prev=32,f.t0=f.catch(4),l=f.t0.message||Object(N.__)("An error occurred."),u=f.t0 instanceof Error,(b={folder_exists:Object(N.__)("This block is already installed. Try reloading the page."),unable_to_connect_to_filesystem:Object(N.__)("Error installing block. You can reload the page and try again.")})[f.t0.code]&&(u=!0,l=b[f.t0.code]),f.next=40,X(t,l,u);case 40:return f.next=42,s.controls.dispatch(T.store,"createErrorNotice",l,{speak:!0,isDismissible:!0});case 42:return f.next=44,Q(e.id,!1);case 44:return f.abrupt("return",r);case 45:case"end":return f.stop()}}),H,null,[[4,32]])}function G(e){return I.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Object(d.apiFetch)({url:V(e),data:{status:"inactive"},method:"PUT"});case 3:return t.next=5,Object(d.apiFetch)({url:V(e),method:"DELETE"});case 5:return t.next=7,J(e);case 7:t.next=13;break;case 9:return t.prev=9,t.t0=t.catch(0),t.next=13,s.controls.dispatch(T.store,"createErrorNotice",t.t0.message||Object(N.__)("An error occurred."));case 13:case"end":return t.stop()}}),z,null,[[0,9]])}function W(e){return{type:"ADD_INSTALLED_BLOCK_TYPE",item:e}}function J(e){return{type:"REMOVE_INSTALLED_BLOCK_TYPE",item:e}}function Q(e,t){return{type:"SET_INSTALLING_BLOCK",blockId:e,isInstalling:t}}function X(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{type:"SET_ERROR_NOTICE",blockId:e,message:t,isFatal:n}}function Z(e){return{type:"CLEAR_ERROR_NOTICE",blockId:e}}var ee={getDownloadableBlocks:I.a.mark((function e(t){var n,r;return I.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return");case 2:return e.prev=2,e.next=5,U(t);case 5:return e.next=7,Object(d.apiFetch)({path:"wp/v2/block-directory/search?term=".concat(t)});case 7:return n=e.sent,r=n.map((function(e){return Object(p.mapKeys)(e,(function(e,t){return Object(p.camelCase)(t)}))})),e.next=11,q(r,t);case 11:e.next=15;break;case 13:e.prev=13,e.t0=e.catch(2);case 15:case"end":return e.stop()}}),e,null,[[2,13]])}))};function te(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 ne(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?te(Object(n),!0).forEach((function(t){Object(b.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):te(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var re={reducer:j,selectors:r,actions:c,controls:ne(ne({},d.controls),F),resolvers:ee},ce=Object(s.createReduxStore)("core/block-directory",re);function oe(){var e=Object(s.useDispatch)(ce).uninstallBlockType,t=Object(s.useSelect)((function(e){var t=e(u.store),n=t.isAutosavingPost;return(0,t.isSavingPost)()&&!n()}),[]),n=Object(s.useSelect)((function(e){return e(ce).getUnusedBlockTypes()}),[]);return Object(o.useEffect)((function(){t&&n.length&&n.forEach((function(t){e(t),Object(i.unregisterBlockType)(t.name)}))}),[t]),null}Object(s.register)(ce);var ae=n(9),le=n(3),ie=n(14),se=n(19),ue=n(10),be=n(71),de=n(153),fe=n(205),pe=n(7),Oe=Object(o.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(pe.Path,{d:"M9.518 8.783a.25.25 0 00.188-.137l2.069-4.192a.25.25 0 01.448 0l2.07 4.192a.25.25 0 00.187.137l4.626.672a.25.25 0 01.139.427l-3.347 3.262a.25.25 0 00-.072.222l.79 4.607a.25.25 0 01-.363.264l-4.137-2.176a.25.25 0 00-.233 0l-4.138 2.175a.25.25 0 01-.362-.263l.79-4.607a.25.25 0 00-.072-.222L4.753 9.882a.25.25 0 01.14-.427l4.625-.672zM12 14.533c.28 0 .559.067.814.2l1.895.997-.362-2.11a1.75 1.75 0 01.504-1.55l1.533-1.495-2.12-.308a1.75 1.75 0 01-1.317-.957L12 7.39v7.143z"})),me=n(206),je=function(e){var t=e.rating,n=.5*Math.round(t/.5),r=Math.floor(t),c=Math.ceil(t-r),a=5-(r+c);return Object(o.createElement)("span",{"aria-label":Object(N.sprintf)(
3
  /* translators: %s: number of stars. */
4
  Object(N.__)("%s out of 5 stars"),n)},Object(p.times)(r,(function(e){return Object(o.createElement)(de.a,{key:"full_stars_".concat(e),className:"block-directory-block-ratings__star-full",icon:fe.a,size:16})})),Object(p.times)(c,(function(e){return Object(o.createElement)(de.a,{key:"half_stars_".concat(e),className:"block-directory-block-ratings__star-half-full",icon:Oe,size:16})})),Object(p.times)(a,(function(e){return Object(o.createElement)(de.a,{key:"empty_stars_".concat(e),className:"block-directory-block-ratings__star-empty",icon:me.a,size:16})})))},ye=function(e){var t=e.rating;return Object(o.createElement)("span",{className:"block-directory-block-ratings"},Object(o.createElement)(je,{rating:t}))},ke=function(e){var t=e.icon,n="block-directory-downloadable-block-icon";return null!==t.match(/\.(jpeg|jpg|gif|png|svg)(?:\?.*)?$/)?Object(o.createElement)("img",{className:n,src:t,alt:""}):Object(o.createElement)(y.BlockIcon,{className:n,icon:t,showColors:!0})},ve=function(e){var t=e.block,n=Object(s.useSelect)((function(e){return e(ce).getErrorNoticeForBlock(t.id)}),[t]);return n?Object(o.createElement)("div",{className:"block-directory-downloadable-block-notice"},Object(o.createElement)("div",{className:"block-directory-downloadable-block-notice__content"},n.message,n.isFatal?" "+Object(N.__)("Try reloading the page."):null)):null};function ge(e,t){var n=e.title,r=e.rating,c=e.ratingCount,o=t.hasNotice,a=t.isInstalled,l=t.isInstalling,i=.5*Math.round(r/.5);return!a&&o?Object(N.sprintf)("Retry installing %s.",Object(be.decodeEntities)(n)):a?Object(N.sprintf)("Add %s.",Object(be.decodeEntities)(n)):l?Object(N.sprintf)("Installing %s.",Object(be.decodeEntities)(n)):c<1?Object(N.sprintf)("Install %s.",Object(be.decodeEntities)(n)):Object(N.sprintf)(
5
  /* translators: %1$s: block title, %2$s: average rating, %3$s: total ratings count. */
7
  /* translators: %1$s: block title, %2$s: author name. */
8
  Object(N.__)("%1$s <span>by %2$s</span>"),Object(be.decodeEntities)(b),c),{span:Object(o.createElement)("span",{className:"block-directory-downloadable-block-list-item__author"})})),p?Object(o.createElement)(ve,{block:n}):Object(o.createElement)(o.Fragment,null,Object(o.createElement)("span",{className:"block-directory-downloadable-block-list-item__desc"},j||Object(be.decodeEntities)(a)),m&&!(d||O)&&Object(o.createElement)(le.VisuallyHidden,null,Object(N.__)("Install block")))))},he=function(e){var t=e.items,n=e.onHover,r=void 0===n?p.noop:n,c=e.onSelect,a=Object(le.__unstableUseCompositeState)(),l=Object(s.useDispatch)(ce).installBlockType;return t.length?Object(o.createElement)(le.__unstableComposite,Object(ue.a)({},a,{role:"listbox",className:"block-directory-downloadable-blocks-list","aria-label":Object(N.__)("Blocks available for install")}),t.map((function(e){return Object(o.createElement)(we,{key:e.id,composite:a,onClick:function(){Object(i.getBlockType)(e.name)?c(e):l(e).then((function(t){t&&c(e)})),r(null)},onHover:r,item:e})}))):null},Ee=n(55),_e=function(e){var t=e.children,n=e.downloadableItems,r=e.hasLocalBlocks,c=n.length;return Object(o.useEffect)((function(){Object(Ee.speak)(Object(N.sprintf)(
9
  /* translators: %d: number of available blocks. */
10
+ Object(N._n)("%d additional block is available to install.","%d additional blocks are available to install.",c),c))}),[c]),Object(o.createElement)(o.Fragment,null,!r&&Object(o.createElement)("p",{className:"block-directory-downloadable-blocks-panel__no-local"},Object(N.__)("No results available from your installed blocks.")),Object(o.createElement)("div",{className:"block-editor-inserter__quick-inserter-separator"}),Object(o.createElement)("div",{className:"block-directory-downloadable-blocks-panel"},Object(o.createElement)("div",{className:"block-directory-downloadable-blocks-panel__header"},Object(o.createElement)("h2",{className:"block-directory-downloadable-blocks-panel__title"},Object(N.__)("Available to install")),Object(o.createElement)("p",{className:"block-directory-downloadable-blocks-panel__description"},Object(N.__)("Select a block to install and add it to your post."))),t))},Be=n(207),xe=function(){return Object(o.createElement)("div",{className:"block-editor-inserter__no-results"},Object(o.createElement)(de.a,{className:"block-editor-inserter__no-results-icon",icon:Be.a}),Object(o.createElement)("p",null,Object(N.__)("No results found.")))},Se=Object(ie.compose)([Object(s.withSelect)((function(e,t){var n=t.filterValue,r=t.rootClientId,c=void 0===r?null:r,o=e(ce),a=o.getDownloadableBlocks,l=o.isRequestingDownloadableBlocks,i=e(y.store).canInsertBlockType,s=e(se.store).canUser("read","block-directory/search");return{downloadableItems:s?a(n).filter((function(e){return i(e,c,!0)})):[],hasPermission:s,isLoading:l(n)}}))])((function(e){var t=e.downloadableItems,n=e.onSelect,r=e.onHover,c=e.hasLocalBlocks,a=e.hasPermission,l=e.isLoading,i=e.isTyping;return void 0===a||l||i?Object(o.createElement)(o.Fragment,null,a&&!c&&Object(o.createElement)(o.Fragment,null,Object(o.createElement)("p",{className:"block-directory-downloadable-blocks-panel__no-local"},Object(N.__)("No results available from your installed blocks.")),Object(o.createElement)("div",{className:"block-editor-inserter__quick-inserter-separator"})),Object(o.createElement)("div",{className:"block-directory-downloadable-blocks-panel has-blocks-loading"},Object(o.createElement)(le.Spinner,null))):!1===a?c?null:Object(o.createElement)(xe,null):t.length?Object(o.createElement)(_e,{downloadableItems:t,hasLocalBlocks:c},Object(o.createElement)(he,{items:t,onSelect:n,onHover:r})):!c&&Object(o.createElement)(xe,null)})),Ie=function(){var e=Object(o.useState)(""),t=Object(ae.a)(e,2),n=t[0],r=t[1],c=Object(p.debounce)(r,400);return Object(o.createElement)(y.__experimentalInserterMenuExtension,null,(function(e){var t=e.onSelect,r=e.onHover,a=e.filterValue,l=e.hasItems,i=e.rootClientId;return n!==a&&c(a),n?Object(o.createElement)(Se,{onSelect:t,onHover:r,rootClientId:i,filterValue:n,hasLocalBlocks:l,isTyping:a!==n}):null}))},Ne=n(355);function Te(e){var t=e.items;return t.length?Object(o.createElement)("ul",{className:"block-directory-compact-list"},t.map((function(e){var t=e.icon,n=e.id,r=e.title,c=e.author;return Object(o.createElement)("li",{key:n,className:"block-directory-compact-list__item"},Object(o.createElement)(ke,{icon:t,title:r}),Object(o.createElement)("div",{className:"block-directory-compact-list__item-details"},Object(o.createElement)("div",{className:"block-directory-compact-list__item-title"},r),Object(o.createElement)("div",{className:"block-directory-compact-list__item-author"},Object(N.sprintf)(
11
  /* translators: %s: Name of the block author. */
12
  Object(N.__)("By %s"),c))))}))):null}function Pe(){var e=Object(s.useSelect)((function(e){return e(ce).getNewBlockTypes()}),[]);return e.length?Object(o.createElement)(Ne.PluginPrePublishPanel,{icon:Be.a,title:Object(N.sprintf)(// translators: %d: number of blocks (number).
13
  Object(N._n)("Added: %d block","Added: %d blocks",e.length),e.length),initialOpen:!0},Object(o.createElement)("p",{className:"installed-blocks-pre-publish-panel__copy"},Object(N._n)("The following block has been added to your site.","The following blocks have been added to your site.",e.length)),Object(o.createElement)(Te,{items:e})):null}var Le=n(13);function De(e){var t=e.attributes,n=e.block,r=e.clientId,c=Object(s.useSelect)((function(e){return e(ce).isInstalling(n.id)})),a=Object(s.useDispatch)(ce).installBlockType,l=Object(s.useDispatch)(y.store).replaceBlock;return Object(o.createElement)(le.Button,{onClick:function(){return a(n).then((function(e){if(e){var c=Object(i.getBlockType)(n.name),o=Object(i.parse)(t.originalContent),a=Object(ae.a)(o,1)[0];a&&l(r,Object(i.createBlock)(c.name,a.attributes,a.innerBlocks))}}))},disabled:c,isBusy:c,isPrimary:!0},Object(N.sprintf)(
16
  /* translators: %s: block name */
17
  Object(N.__)("Your site doesn’t include support for the %s block. You can try installing the block or remove it entirely."),t.title||c),f=[Object(o.createElement)(De,{key:"install",block:t,attributes:n.attributes,clientId:n.clientId})];return u&&b&&(d=Object(N.sprintf)(
18
  /* translators: %s: block name */
19
+ Object(N.__)("Your site doesn’t include support for the %s block. You can try installing the block, convert it to a Custom HTML block, or remove it entirely."),t.title||c),f.push(Object(o.createElement)(le.Button,{key:"convert",onClick:function(){l(n.clientId,Object(i.createBlock)("core/html",{content:a}))},isLink:!0},Object(N.__)("Keep as HTML")))),Object(o.createElement)("div",Object(y.useBlockProps)(),Object(o.createElement)(y.Warning,{actions:f},d),Object(o.createElement)(o.RawHTML,null,a))};Object(a.registerPlugin)("block-directory",{render:function(){return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(oe,null),Object(o.createElement)(Ie,null),Object(o.createElement)(Pe,null))}}),Object(l.addFilter)("blocks.registerBlockType","block-directory/fallback",(function(e,t){return"core/missing"!==t||(e.edit=(n=e.edit,function(e){var t=e.attributes.originalName,r=Object(s.useSelect)((function(e){var n=(0,e(ce).getDownloadableBlocks)("block:"+t).filter((function(e){var n=e.name;return t===n}));return{hasPermission:e(se.store).canUser("read","block-directory/search"),block:n.length&&n[0]}}),[t]),c=r.block;return r.hasPermission&&c?Object(o.createElement)(Ae,Object(ue.a)({},e,{originalBlock:c})):Object(o.createElement)(n,e)})),e;var n}))},56:function(e,t){e.exports=window.wp.dataControls},6:function(e,t){e.exports=window.wp.blockEditor},69:function(e,t){e.exports=window.wp.plugins},7:function(e,t){e.exports=window.wp.primitives},71:function(e,t){e.exports=window.wp.htmlEntities},9:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(39),c=n(30),o=n(40);function a(e,t){return Object(r.a)(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],_n=!0,r=!1,c=void 0;try{for(var o,a=e[Symbol.iterator]();!(_n=(o=a.next()).done)&&(n.push(o.value),!t||n.length!==t);_n=!0);}catch(e){r=!0,c=e}finally{try{_n||null==a.return||a.return()}finally{if(r)throw c}}return n}}(e,t)||Object(c.a)(e,t)||Object(o.a)()}}});
build/block-editor/index.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return 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' => 'ec31849543e74762dec3b8177507fce9');
1
+ <?php return 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' => 'c578bb471bc56bc77ea35827f0ed1f8d');
build/block-editor/index.js CHANGED
@@ -1,80 +1,82 @@
1
- window.wp=window.wp||{},window.wp.blockEditor=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=542)}({0:function(e,t){e.exports=window.wp.element},1:function(e,t){e.exports=window.wp.i18n},10:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(39),o=n(29),c=n(40);function i(e,t){return Object(r.a)(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],_n=!0,r=!1,o=void 0;try{for(var c,i=e[Symbol.iterator]();!(_n=(c=i.next()).done)&&(n.push(c.value),!t||n.length!==t);_n=!0);}catch(e){r=!0,o=e}finally{try{_n||null==i.return||i.return()}finally{if(r)throw o}}return n}}(e,t)||Object(o.a)(e,t)||Object(c.a)()}},11:function(e,t){e.exports=window.wp.blocks},119:function(e,t,n){"use strict";t.__esModule=!0;var r=n(239);t.default=r.TextareaAutosize},12:function(e,t,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var c=typeof r;if("string"===c||"number"===c)e.push(r);else if(Array.isArray(r))e.push(o.apply(null,r));else if("object"===c)for(var i in r)n.call(r,i)&&r[i]&&e.push(i)}}return e.join(" ")}e.exports?e.exports=o:void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},13:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(49);function o(e,t){if(null==e)return{};var n,o,c=Object(r.a)(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(c[n]=e[n])}return c}},132:function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"}));t.a=c},14:function(e,t){e.exports=window.wp.compose},142:function(e,t,n){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(232)),c=r(n(233)),i=n(8),a=r(i),l=r(n(207)),s=r(n(235)),u={arr:Array.isArray,obj:function(e){return"[object Object]"===Object.prototype.toString.call(e)},fun:function(e){return"function"==typeof e},str:function(e){return"string"==typeof e},num:function(e){return"number"==typeof e},und:function(e){return void 0===e},nul:function(e){return null===e},set:function(e){return e instanceof Set},map:function(e){return e instanceof Map},equ:function(e,t){if(typeof e!=typeof t)return!1;if(u.str(e)||u.num(e))return e===t;if(u.obj(e)&&u.obj(t)&&Object.keys(e).length+Object.keys(t).length===0)return!0;var n;for(n in e)if(!(n in t))return!1;for(n in t)if(e[n]!==t[n])return!1;return!u.und(n)||e===t}};function d(){var e=i.useState(!1)[1];return i.useCallback((function(){return e((function(e){return!e}))}),[])}function b(e,t){return u.und(e)||u.nul(e)?t:e}function f(e){return u.und(e)?[]:u.arr(e)?e:[e]}function p(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return u.fun(e)?e.apply(void 0,n):e}function m(e){var t=function(e){return e.to,e.from,e.config,e.onStart,e.onRest,e.onFrame,e.children,e.reset,e.reverse,e.force,e.immediate,e.delay,e.attach,e.destroyed,e.interpolateTo,e.ref,e.lazy,c(e,["to","from","config","onStart","onRest","onFrame","children","reset","reverse","force","immediate","delay","attach","destroyed","interpolateTo","ref","lazy"])}(e);if(u.und(t))return o({to:t},e);var n=Object.keys(e).reduce((function(n,r){var c;return u.und(t[r])?o({},n,((c={})[r]=e[r],c)):n}),{});return o({to:t},n)}var v,O,g=function(){function e(){this.payload=void 0,this.children=[]}var t=e.prototype;return t.getAnimatedValue=function(){return this.getValue()},t.getPayload=function(){return this.payload||this},t.attach=function(){},t.detach=function(){},t.getChildren=function(){return this.children},t.addChild=function(e){0===this.children.length&&this.attach(),this.children.push(e)},t.removeChild=function(e){var t=this.children.indexOf(e);this.children.splice(t,1),0===this.children.length&&this.detach()},e}(),h=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).payload=[],t.attach=function(){return t.payload.forEach((function(e){return e instanceof g&&e.addChild(s(t))}))},t.detach=function(){return t.payload.forEach((function(e){return e instanceof g&&e.removeChild(s(t))}))},t}return l(t,e),t}(g),j=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).payload={},t.attach=function(){return Object.values(t.payload).forEach((function(e){return e instanceof g&&e.addChild(s(t))}))},t.detach=function(){return Object.values(t.payload).forEach((function(e){return e instanceof g&&e.removeChild(s(t))}))},t}l(t,e);var n=t.prototype;return n.getValue=function(e){void 0===e&&(e=!1);var t={};for(var n in this.payload){var r=this.payload[n];(!e||r instanceof g)&&(t[n]=r instanceof g?r[e?"getAnimatedValue":"getValue"]():r)}return t},n.getAnimatedValue=function(){return this.getValue(!0)},t}(g);function k(e,t){v={fn:e,transform:t}}function y(e){O=e}var _,E=function(e){return"undefined"!=typeof window?window.requestAnimationFrame(e):-1},w=function(e){"undefined"!=typeof window&&window.cancelAnimationFrame(e)};function C(e){_=e}var S,B=function(){return Date.now()};function I(e){S=e}var x,P,T=function(e){return e.current};function N(e){x=e}var D=Object.freeze({get applyAnimatedValues(){return v},injectApplyAnimatedValues:k,get colorNames(){return O},injectColorNames:y,get requestFrame(){return E},get cancelFrame(){return w},injectFrame:function(e,t){E=e,w=t},get interpolation(){return _},injectStringInterpolator:C,get now(){return B},injectNow:function(e){B=e},get defaultElement(){return S},injectDefaultElement:I,get animatedApi(){return T},injectAnimatedApi:function(e){T=e},get createAnimatedStyle(){return x},injectCreateAnimatedStyle:N,get manualFrameloop(){return P},injectManualFrameloop:function(e){P=e}}),A=function(e){function t(t,n){var r;return(r=e.call(this)||this).update=void 0,r.payload=t.style?o({},t,{style:x(t.style)}):t,r.update=n,r.attach(),r}return l(t,e),t}(j),L=!1,R=new Set,M=function e(){if(!L)return!1;var t=B(),n=R,r=Array.isArray(n),o=0;for(n=r?n:n[Symbol.iterator]();;){var c;if(r){if(o>=n.length)break;c=n[o++]}else{if((o=n.next()).done)break;c=o.value}for(var i=c,a=!1,l=0;l<i.configs.length;l++){for(var s=i.configs[l],u=void 0,d=void 0,b=0;b<s.animatedValues.length;b++){var f=s.animatedValues[b];if(!f.done){var p=s.fromValues[b],m=s.toValues[b],v=f.lastPosition,O=m instanceof g,h=Array.isArray(s.initialVelocity)?s.initialVelocity[b]:s.initialVelocity;if(O&&(m=m.getValue()),s.immediate)f.setValue(m),f.done=!0;else if("string"!=typeof p&&"string"!=typeof m){if(void 0!==s.duration)v=p+s.easing((t-f.startTime)/s.duration)*(m-p),u=t>=f.startTime+s.duration;else if(s.decay)v=p+h/(1-.998)*(1-Math.exp(-(1-.998)*(t-f.startTime))),(u=Math.abs(f.lastPosition-v)<.1)&&(m=v);else{d=void 0!==f.lastTime?f.lastTime:t,h=void 0!==f.lastVelocity?f.lastVelocity:s.initialVelocity,t>d+64&&(d=t);for(var j=Math.floor(t-d),k=0;k<j;++k)v+=1*(h+=(-s.tension*(v-m)+-s.friction*h)/s.mass*1/1e3)/1e3;var y=!(!s.clamp||0===s.tension)&&(p<m?v>m:v<m),_=Math.abs(h)<=s.precision,w=0===s.tension||Math.abs(m-v)<=s.precision;u=y||_&&w,f.lastVelocity=h,f.lastTime=t}O&&!s.toValues[b].done&&(u=!1),u?(f.value!==m&&(v=m),f.done=!0):a=!0,f.setValue(v),f.lastPosition=v}else f.setValue(m),f.done=!0}}i.props.onFrame&&(i.values[s.name]=s.interpolation.getValue())}i.props.onFrame&&i.props.onFrame(i.values),a||(R.delete(i),i.stop(!0))}return R.size?P?P():E(e):L=!1,L};function F(e,t,n){if("function"==typeof e)return e;if(Array.isArray(e))return F({range:e,output:t,extrapolate:n});if(_&&"string"==typeof e.output[0])return _(e);var r=e,o=r.output,c=r.range||[0,1],i=r.extrapolateLeft||r.extrapolate||"extend",a=r.extrapolateRight||r.extrapolate||"extend",l=r.easing||function(e){return e};return function(e){var t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,c);return function(e,t,n,r,o,c,i,a,l){var s=l?l(e):e;if(s<t){if("identity"===i)return s;"clamp"===i&&(s=t)}if(s>n){if("identity"===a)return s;"clamp"===a&&(s=n)}return r===o?r:t===n?e<=t?r:o:(t===-1/0?s=-s:n===1/0?s-=t:s=(s-t)/(n-t),s=c(s),r===-1/0?s=-s:o===1/0?s+=r:s=s*(o-r)+r,s)}(e,c[t],c[t+1],o[t],o[t+1],l,i,a,r.map)}}var V=function(e){function t(n,r,o){var c;return(c=e.call(this)||this).calc=void 0,c.payload=n instanceof h&&!(n instanceof t)?n.getPayload():Array.isArray(n)?n:[n],c.calc=F(r,o),c}l(t,e);var n=t.prototype;return n.getValue=function(){return this.calc.apply(this,this.payload.map((function(e){return e.getValue()})))},n.updateConfig=function(e,t){this.calc=F(e,t)},n.interpolate=function(e,n){return new t(this,e,n)},t}(h),H=function(e){function t(t){var n;return(n=e.call(this)||this).animatedStyles=new Set,n.value=void 0,n.startPosition=void 0,n.lastPosition=void 0,n.lastVelocity=void 0,n.startTime=void 0,n.lastTime=void 0,n.done=!1,n.setValue=function(e,t){void 0===t&&(t=!0),n.value=e,t&&n.flush()},n.value=t,n.startPosition=t,n.lastPosition=t,n}l(t,e);var n=t.prototype;return n.flush=function(){0===this.animatedStyles.size&&function e(t,n){"update"in t?n.add(t):t.getChildren().forEach((function(t){return e(t,n)}))}(this,this.animatedStyles),this.animatedStyles.forEach((function(e){return e.update()}))},n.clearStyles=function(){this.animatedStyles.clear()},n.getValue=function(){return this.value},n.interpolate=function(e,t){return new V(this,e,t)},t}(g),z=function(e){function t(t){var n;return(n=e.call(this)||this).payload=t.map((function(e){return new H(e)})),n}l(t,e);var n=t.prototype;return n.setValue=function(e,t){var n=this;void 0===t&&(t=!0),Array.isArray(e)?e.length===this.payload.length&&e.forEach((function(e,r){return n.payload[r].setValue(e,t)})):this.payload.forEach((function(n){return n.setValue(e,t)}))},n.getValue=function(){return this.payload.map((function(e){return e.getValue()}))},n.interpolate=function(e,t){return new V(this,e,t)},t}(h),G=0,U=function(){function e(){var e=this;this.id=void 0,this.idle=!0,this.hasChanged=!1,this.guid=0,this.local=0,this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.listeners=[],this.queue=[],this.localQueue=void 0,this.getValues=function(){return e.interpolations},this.id=G++}var t=e.prototype;return t.update=function(e){if(!e)return this;var t=m(e),n=t.delay,r=void 0===n?0:n,i=t.to,a=c(t,["delay","to"]);if(u.arr(i)||u.fun(i))this.queue.push(o({},a,{delay:r,to:i}));else if(i){var l={};Object.entries(i).forEach((function(e){var t,n=e[0],c=e[1],i=o({to:(t={},t[n]=c,t),delay:p(r,n)},a),s=l[i.delay]&&l[i.delay].to;l[i.delay]=o({},l[i.delay],i,{to:o({},s,i.to)})})),this.queue=Object.values(l)}return this.queue=this.queue.sort((function(e,t){return e.delay-t.delay})),this.diff(a),this},t.start=function(e){var t=this;if(this.queue.length){this.idle=!1,this.localQueue&&this.localQueue.forEach((function(e){var n=e.from,r=void 0===n?{}:n,c=e.to,i=void 0===c?{}:c;u.obj(r)&&(t.merged=o({},r,t.merged)),u.obj(i)&&(t.merged=o({},t.merged,i))}));var n=this.local=++this.guid,r=this.localQueue=this.queue;this.queue=[],r.forEach((function(o,i){var a=o.delay,l=c(o,["delay"]),s=function(o){i===r.length-1&&n===t.guid&&o&&(t.idle=!0,t.props.onRest&&t.props.onRest(t.merged)),e&&e()},d=u.arr(l.to)||u.fun(l.to);a?setTimeout((function(){n===t.guid&&(d?t.runAsync(l,s):t.diff(l).start(s))}),a):d?t.runAsync(l,s):t.diff(l).start(s)}))}else u.fun(e)&&this.listeners.push(e),this.props.onStart&&this.props.onStart(),this,R.has(this)||R.add(this),L||(L=!0,E(P||M));return this},t.stop=function(e){return this.listeners.forEach((function(t){return t(e)})),this.listeners=[],this},t.pause=function(e){return this.stop(!0),e&&(this,R.has(this)&&R.delete(this)),this},t.runAsync=function(e,t){var n=this,r=(e.delay,c(e,["delay"])),i=this.local,a=Promise.resolve(void 0);if(u.arr(r.to))for(var l=function(e){var t=e,c=o({},r,m(r.to[t]));u.arr(c.config)&&(c.config=c.config[t]),a=a.then((function(){if(i===n.guid)return new Promise((function(e){return n.diff(c).start(e)}))}))},s=0;s<r.to.length;s++)l(s);else if(u.fun(r.to)){var d,b=0;a=a.then((function(){return r.to((function(e){var t=o({},r,m(e));if(u.arr(t.config)&&(t.config=t.config[b]),b++,i===n.guid)return d=new Promise((function(e){return n.diff(t).start(e)}))}),(function(e){return void 0===e&&(e=!0),n.stop(e)})).then((function(){return d}))}))}a.then(t)},t.diff=function(e){var t=this;this.props=o({},this.props,e);var n=this.props,r=n.from,c=void 0===r?{}:r,i=n.to,a=void 0===i?{}:i,l=n.config,s=void 0===l?{}:l,d=n.reverse,m=n.attach,v=n.reset,g=n.immediate;if(d){var h=[a,c];c=h[0],a=h[1]}this.merged=o({},c,this.merged,a),this.hasChanged=!1;var j=m&&m(this);if(this.animations=Object.entries(this.merged).reduce((function(e,n){var r=n[0],i=n[1],a=e[r]||{},l=u.num(i),d=u.str(i)&&!i.startsWith("#")&&!/\d/.test(i)&&!O[i],m=u.arr(i),h=!l&&!m&&!d,k=u.und(c[r])?i:c[r],y=l||m||d?i:1,E=p(s,r);j&&(y=j.animations[r].parent);var w,C=a.parent,S=a.interpolation,I=f(j?y.getPayload():y),x=i;h&&(x=_({range:[0,1],output:[i,i]})(1));var P,T=S&&S.getValue(),N=!u.und(C)&&a.animatedValues.some((function(e){return!e.done})),D=!u.equ(x,T),A=!u.equ(x,a.previous),L=!u.equ(E,a.config);if(v||A&&D||L){var R;if(l||d)C=S=a.parent||new H(k);else if(m)C=S=a.parent||new z(k);else if(h){var M=a.interpolation&&a.interpolation.calc(a.parent.value);M=void 0===M||v?k:M,a.parent?(C=a.parent).setValue(0,!1):C=new H(0);var F={output:[M,i]};a.interpolation?(S=a.interpolation,a.interpolation.updateConfig(F)):S=C.interpolate(F)}return I=f(j?y.getPayload():y),w=f(C.getPayload()),v&&!h&&C.setValue(k,!1),t.hasChanged=!0,w.forEach((function(e){e.startPosition=e.value,e.lastPosition=e.value,e.lastVelocity=N?e.lastVelocity:void 0,e.lastTime=N?e.lastTime:void 0,e.startTime=B(),e.done=!1,e.animatedStyles.clear()})),p(g,r)&&C.setValue(h?y:i,!1),o({},e,((R={})[r]=o({},a,{name:r,parent:C,interpolation:S,animatedValues:w,toValues:I,previous:x,config:E,fromValues:f(C.getValue()),immediate:p(g,r),initialVelocity:b(E.velocity,0),clamp:b(E.clamp,!1),precision:b(E.precision,.01),tension:b(E.tension,170),friction:b(E.friction,26),mass:b(E.mass,1),duration:E.duration,easing:b(E.easing,(function(e){return e})),decay:E.decay}),R))}return D?e:(h&&(C.setValue(1,!1),S.updateConfig({output:[x,x]})),C.done=!0,t.hasChanged=!0,o({},e,((P={})[r]=o({},e[r],{previous:x}),P)))}),this.animations),this.hasChanged)for(var k in this.configs=Object.values(this.animations),this.values={},this.interpolations={},this.animations)this.interpolations[k]=this.animations[k].interpolation,this.values[k]=this.animations[k].interpolation.getValue();return this},t.destroy=function(){this.stop(),this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.local=0},e}(),W=function(e,t){var n=i.useRef(!1),r=i.useRef(),o=u.fun(t),c=i.useMemo((function(){var n;return r.current&&(r.current.map((function(e){return e.destroy()})),r.current=void 0),[new Array(e).fill().map((function(e,r){var c=new U,i=o?p(t,r,c):t[r];return 0===r&&(n=i.ref),c.update(i),n||c.start(),c})),n]}),[e]),a=c[0],l=c[1];r.current=a,i.useImperativeHandle(l,(function(){return{start:function(){return Promise.all(r.current.map((function(e){return new Promise((function(t){return e.start(t)}))})))},stop:function(e){return r.current.forEach((function(t){return t.stop(e)}))},get controllers(){return r.current}}}));var s=i.useMemo((function(){return function(e){return r.current.map((function(t,n){t.update(o?p(e,n,t):e[n]),l||t.start()}))}}),[e]);i.useEffect((function(){n.current?o||s(t):l||r.current.forEach((function(e){return e.start()}))})),i.useEffect((function(){return n.current=!0,function(){return r.current.forEach((function(e){return e.destroy()}))}}),[]);var d=r.current.map((function(e){return e.getValues()}));return o?[d,s,function(e){return r.current.forEach((function(t){return t.pause(e)}))}]:d},K=0,q=function(e,t){return("function"==typeof t?e.map(t):f(t)).map(String)},$=function(e){var t=e.items,n=e.keys,r=void 0===n?function(e){return e}:n,i=c(e,["items","keys"]);return t=f(void 0!==t?t:null),o({items:t,keys:q(t,r)},i)};function Y(e,t){var n=function(){if(o){if(c>=r.length)return"break";i=r[c++]}else{if((c=r.next()).done)return"break";i=c.value}var n=i.key,a=function(e){return e.key!==n};(u.und(t)||t===n)&&(e.current.instances.delete(n),e.current.transitions=e.current.transitions.filter(a),e.current.deleted=e.current.deleted.filter(a))},r=e.current.deleted,o=Array.isArray(r),c=0;for(r=o?r:r[Symbol.iterator]();;){var i;if("break"===n())break}e.current.forceUpdate()}var X=function(e){function t(t){var n;return void 0===t&&(t={}),n=e.call(this)||this,!t.transform||t.transform instanceof g||(t=v.transform(t)),n.payload=t,n}return l(t,e),t}(j),Q={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},Z="[-+]?\\d*\\.?\\d+";function J(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"\\(\\s*("+t.join(")\\s*,\\s*(")+")\\s*\\)"}var ee=new RegExp("rgb"+J(Z,Z,Z)),te=new RegExp("rgba"+J(Z,Z,Z,Z)),ne=new RegExp("hsl"+J(Z,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%")),re=new RegExp("hsla"+J(Z,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%",Z)),oe=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ce=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ie=/^#([0-9a-fA-F]{6})$/,ae=/^#([0-9a-fA-F]{8})$/;function le(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function se(e,t,n){var r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,c=le(o,r,e+1/3),i=le(o,r,e),a=le(o,r,e-1/3);return Math.round(255*c)<<24|Math.round(255*i)<<16|Math.round(255*a)<<8}function ue(e){var t=parseInt(e,10);return t<0?0:t>255?255:t}function de(e){return(parseFloat(e)%360+360)%360/360}function be(e){var t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function fe(e){var t=parseFloat(e);return t<0?0:t>100?1:t/100}function pe(e){var t,n,r="number"==typeof(t=e)?t>>>0===t&&t>=0&&t<=4294967295?t:null:(n=ie.exec(t))?parseInt(n[1]+"ff",16)>>>0:Q.hasOwnProperty(t)?Q[t]:(n=ee.exec(t))?(ue(n[1])<<24|ue(n[2])<<16|ue(n[3])<<8|255)>>>0:(n=te.exec(t))?(ue(n[1])<<24|ue(n[2])<<16|ue(n[3])<<8|be(n[4]))>>>0:(n=oe.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+"ff",16)>>>0:(n=ae.exec(t))?parseInt(n[1],16)>>>0:(n=ce.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+n[4]+n[4],16)>>>0:(n=ne.exec(t))?(255|se(de(n[1]),fe(n[2]),fe(n[3])))>>>0:(n=re.exec(t))?(se(de(n[1]),fe(n[2]),fe(n[3]))|be(n[4]))>>>0:null;return null===r?e:"rgba("+((4278190080&(r=r||0))>>>24)+", "+((16711680&r)>>>16)+", "+((65280&r)>>>8)+", "+(255&r)/255+")"}var me=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,ve=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Oe=new RegExp("("+Object.keys(Q).join("|")+")","g"),ge={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},he=["Webkit","Ms","Moz","O"];function je(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ge.hasOwnProperty(e)&&ge[e]?(""+t).trim():t+"px"}ge=Object.keys(ge).reduce((function(e,t){return he.forEach((function(n){return e[function(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}(n,t)]=e[t]})),e}),ge);var ke={};N((function(e){return new X(e)})),I("div"),C((function(e){var t=e.output.map((function(e){return e.replace(ve,pe)})).map((function(e){return e.replace(Oe,pe)})),n=t[0].match(me).map((function(){return[]}));t.forEach((function(e){e.match(me).forEach((function(e,t){return n[t].push(+e)}))}));var r=t[0].match(me).map((function(t,r){return F(o({},e,{output:n[r]}))}));return function(e){var n=0;return t[0].replace(me,(function(){return r[n++](e)})).replace(/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,(function(e,t,n,r,o){return"rgba("+Math.round(t)+", "+Math.round(n)+", "+Math.round(r)+", "+o+")"}))}})),y(Q),k((function(e,t){if(!e.nodeType||void 0===e.setAttribute)return!1;var n=t.style,r=t.children,o=t.scrollTop,i=t.scrollLeft,a=c(t,["style","children","scrollTop","scrollLeft"]),l="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName;for(var s in void 0!==o&&(e.scrollTop=o),void 0!==i&&(e.scrollLeft=i),void 0!==r&&(e.textContent=r),n)if(n.hasOwnProperty(s)){var u=0===s.indexOf("--"),d=je(s,n[s],u);"float"===s&&(s="cssFloat"),u?e.style.setProperty(s,d):e.style[s]=d}for(var b in a){var f=l?b:ke[b]||(ke[b]=b.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()})));void 0!==e.getAttribute(f)&&e.setAttribute(f,a[b])}}),(function(e){return e}));var ye,_e,Ee=(ye=function(e){return i.forwardRef((function(t,n){var r=d(),l=i.useRef(!0),s=i.useRef(null),b=i.useRef(null),f=i.useCallback((function(e){var t=s.current;s.current=new A(e,(function(){b.current&&!1===v.fn(b.current,s.current.getAnimatedValue())&&r()})),t&&t.detach()}),[]);i.useEffect((function(){return function(){l.current=!1,s.current&&s.current.detach()}}),[]),i.useImperativeHandle(n,(function(){return T(b,l,r)})),f(t);var p=s.current.getValue(),m=(p.scrollTop,p.scrollLeft,c(p,["scrollTop","scrollLeft"]));return a.createElement(e,o({},m,{ref:function(e){return b.current=(t=e,(r=n)&&(u.fun(r)?r(t):u.obj(r)&&(r.current=t)),t);var t,r}}))}))},void 0===(_e=!1)&&(_e=!0),function(e){return(u.arr(e)?e:Object.keys(e)).reduce((function(e,t){var n=_e?t[0].toLowerCase()+t.substring(1):t;return e[n]=ye(n),e}),ye)}),we=Ee(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]);t.apply=Ee,t.config={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},t.update=M,t.animated=we,t.a=we,t.interpolate=function(e,t,n){return e&&new V(e,t,n)},t.Globals=D,t.useSpring=function(e){var t=u.fun(e),n=W(1,t?e:[e]),r=n[0],o=n[1],c=n[2];return t?[r[0],o,c]:r},t.useTrail=function(e,t){var n=i.useRef(!1),r=u.fun(t),c=p(t),a=i.useRef(),l=W(e,(function(e,t){return 0===e&&(a.current=[]),a.current.push(t),o({},c,{config:p(c.config,e),attach:e>0&&function(){return a.current[e-1]}})})),s=l[0],d=l[1],b=l[2],f=i.useMemo((function(){return function(e){return d((function(t,n){e.reverse;var r=e.reverse?t+1:t-1,i=a.current[r];return o({},e,{config:p(e.config||c.config,t),attach:i&&function(){return i}})}))}}),[e,c.reverse]);return i.useEffect((function(){n.current&&!r&&f(t)})),i.useEffect((function(){n.current=!0}),[]),r?[s,f,b]:s},t.useTransition=function(e,t,n){var r=o({items:e,keys:t||function(e){return e}},n),a=$(r),l=a.lazy,s=void 0!==l&&l,u=(a.unique,a.reset),b=void 0!==u&&u,f=(a.enter,a.leave,a.update,a.onDestroyed),m=(a.keys,a.items,a.onFrame),v=a.onRest,O=a.onStart,g=a.ref,h=c(a,["lazy","unique","reset","enter","leave","update","onDestroyed","keys","items","onFrame","onRest","onStart","ref"]),j=d(),k=i.useRef(!1),y=i.useRef({mounted:!1,first:!0,deleted:[],current:{},transitions:[],prevProps:{},paused:!!r.ref,instances:!k.current&&new Map,forceUpdate:j});return i.useImperativeHandle(r.ref,(function(){return{start:function(){return Promise.all(Array.from(y.current.instances).map((function(e){var t=e[1];return new Promise((function(e){return t.start(e)}))})))},stop:function(e){return Array.from(y.current.instances).forEach((function(t){return t[1].stop(e)}))},get controllers(){return Array.from(y.current.instances).map((function(e){return e[1]}))}}})),y.current=function(e,t){for(var n=e.first,r=e.prevProps,i=c(e,["first","prevProps"]),a=$(t),l=a.items,s=a.keys,u=a.initial,d=a.from,b=a.enter,f=a.leave,m=a.update,v=a.trail,O=void 0===v?0:v,g=a.unique,h=a.config,j=a.order,k=void 0===j?["enter","leave","update"]:j,y=$(r),_=y.keys,E=y.items,w=o({},i.current),C=[].concat(i.deleted),S=Object.keys(w),B=new Set(S),I=new Set(s),x=s.filter((function(e){return!B.has(e)})),P=i.transitions.filter((function(e){return!e.destroyed&&!I.has(e.originalKey)})).map((function(e){return e.originalKey})),T=s.filter((function(e){return B.has(e)})),N=-O;k.length;)switch(k.shift()){case"enter":x.forEach((function(e,t){g&&C.find((function(t){return t.originalKey===e}))&&(C=C.filter((function(t){return t.originalKey!==e})));var r=s.indexOf(e),o=l[r],c=n&&void 0!==u?"initial":"enter";w[e]={slot:c,originalKey:e,key:g?String(e):K++,item:o,trail:N+=O,config:p(h,o,c),from:p(n&&void 0!==u?u||{}:d,o),to:p(b,o)}}));break;case"leave":P.forEach((function(e){var t=_.indexOf(e),n=E[t];C.unshift(o({},w[e],{slot:"leave",destroyed:!0,left:_[Math.max(0,t-1)],right:_[Math.min(_.length,t+1)],trail:N+=O,config:p(h,n,"leave"),to:p(f,n)})),delete w[e]}));break;case"update":T.forEach((function(e){var t=s.indexOf(e),n=l[t];w[e]=o({},w[e],{item:n,slot:"update",trail:N+=O,config:p(h,n,"update"),to:p(m,n)})}))}var D=s.map((function(e){return w[e]}));return C.forEach((function(e){var t,n=e.left,r=(e.right,c(e,["left","right"]));-1!==(t=D.findIndex((function(e){return e.originalKey===n})))&&(t+=1),t=Math.max(0,t),D=[].concat(D.slice(0,t),[r],D.slice(t))})),o({},i,{changed:x.length||P.length||T.length,first:n&&0===x.length,transitions:D,current:w,deleted:C,prevProps:t})}(y.current,r),y.current.changed&&y.current.transitions.forEach((function(e){var t=e.slot,n=e.from,r=e.to,c=e.config,i=e.trail,a=e.key,l=e.item;y.current.instances.has(a)||y.current.instances.set(a,new U);var u=y.current.instances.get(a),d=o({},h,{to:r,from:n,config:c,ref:g,onRest:function(n){y.current.mounted&&(e.destroyed&&(g||s||Y(y,a),f&&f(l)),!Array.from(y.current.instances).some((function(e){return!e[1].idle}))&&(g||s)&&y.current.deleted.length>0&&Y(y),v&&v(l,t,n))},onStart:O&&function(){return O(l,t)},onFrame:m&&function(e){return m(l,t,e)},delay:i,reset:b&&"enter"===t});u.update(d),y.current.paused||u.start()})),i.useEffect((function(){return y.current.mounted=k.current=!0,function(){y.current.mounted=k.current=!1,Array.from(y.current.instances).map((function(e){return e[1].destroy()})),y.current.instances.clear()}}),[]),y.current.transitions.map((function(e){var t=e.item,n=e.slot,r=e.key;return{item:t,key:r,state:n,props:y.current.instances.get(r).getValues()}}))},t.useChain=function(e,t,n){void 0===n&&(n=1e3);var r=i.useRef();i.useEffect((function(){u.equ(e,r.current)?e.forEach((function(e){var t=e.current;return t&&t.start()})):t?e.forEach((function(e,r){var c=e.current;if(c){var i=c.controllers;if(i.length){var a=n*t[r];i.forEach((function(e){e.queue=e.queue.map((function(e){return o({},e,{delay:e.delay+a})})),e.start()}))}}})):e.reduce((function(e,t,n){var r=t.current;return e.then((function(){return r.start()}))}),Promise.resolve()),r.current=e}))},t.useSprings=W},15:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(25),o=n(44),c=n(29);function i(e){return function(e){if(Array.isArray(e))return Object(r.a)(e)}(e)||Object(o.a)(e)||Object(c.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},150:function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M18.3 5.6L9.9 16.9l-4.6-3.4-.9 1.2 5.8 4.3 9.3-12.6z"}));t.a=c},155:function(e,t,n){"use strict";e.exports=n(236)},156:function(e,t){e.exports=window.wp.wordcount},16:function(e,t){e.exports=window.regeneratorRuntime},160:function(e,t){e.exports=window.wp.shortcode},165:function(e,t,n){"use strict";var r=n(6),o=n(13),c=n(0);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}t.a=function(e){var t=e.icon,n=e.size,a=void 0===n?24:n,l=Object(o.a)(e,["icon","size"]);return Object(c.cloneElement)(t,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({width:a,height:a},l))}},166:function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"}));t.a=c},17:function(e,t){e.exports=window.wp.keycodes},176:function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z"}));t.a=c},177:function(e,t,n){"use strict";var r=n(178);function o(){}function c(){}c.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,c,i){if(i!==r){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:c,resetWarningCache:o};return n.PropTypes=n,n}},178:function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},19:function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",(function(){return r}))},191:function(e,t){e.exports=window.wp.tokenList},2:function(e,t){e.exports=window.lodash},206:function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M19 8h-1V6h-5v2h-2V6H6v2H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-8c0-1.1-.9-2-2-2zm.5 10c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-8c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v8z"}));t.a=c},207:function(e,t,n){var r=n(234);e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)},e.exports.default=e.exports,e.exports.__esModule=!0},221:function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},232:function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.default=e.exports,e.exports.__esModule=!0,n.apply(this,arguments)}e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},233:function(e,t){e.exports=function(e,t){if(null==e)return{};var n,r,o={},c=Object.keys(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||(o[n]=e[n]);return o},e.exports.default=e.exports,e.exports.__esModule=!0},234:function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},e.exports.default=e.exports,e.exports.__esModule=!0,n(t,r)}e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},235:function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.default=e.exports,e.exports.__esModule=!0},236:function(e,t,n){"use strict";var r=n(237);e.exports=function(e,t,n){n=n||{},9===t.nodeType&&(t=r.getWindow(t));var o=n.allowHorizontalScroll,c=n.onlyScrollIfNeeded,i=n.alignWithTop,a=n.alignWithLeft,l=n.offsetTop||0,s=n.offsetLeft||0,u=n.offsetBottom||0,d=n.offsetRight||0;o=void 0===o||o;var b=r.isWindow(t),f=r.offset(e),p=r.outerHeight(e),m=r.outerWidth(e),v=void 0,O=void 0,g=void 0,h=void 0,j=void 0,k=void 0,y=void 0,_=void 0,E=void 0,w=void 0;b?(y=t,w=r.height(y),E=r.width(y),_={left:r.scrollLeft(y),top:r.scrollTop(y)},j={left:f.left-_.left-s,top:f.top-_.top-l},k={left:f.left+m-(_.left+E)+d,top:f.top+p-(_.top+w)+u},h=_):(v=r.offset(t),O=t.clientHeight,g=t.clientWidth,h={left:t.scrollLeft,top:t.scrollTop},j={left:f.left-(v.left+(parseFloat(r.css(t,"borderLeftWidth"))||0))-s,top:f.top-(v.top+(parseFloat(r.css(t,"borderTopWidth"))||0))-l},k={left:f.left+m-(v.left+g+(parseFloat(r.css(t,"borderRightWidth"))||0))+d,top:f.top+p-(v.top+O+(parseFloat(r.css(t,"borderBottomWidth"))||0))+u}),j.top<0||k.top>0?!0===i?r.scrollTop(t,h.top+j.top):!1===i?r.scrollTop(t,h.top+k.top):j.top<0?r.scrollTop(t,h.top+j.top):r.scrollTop(t,h.top+k.top):c||((i=void 0===i||!!i)?r.scrollTop(t,h.top+j.top):r.scrollTop(t,h.top+k.top)),o&&(j.left<0||k.left>0?!0===a?r.scrollLeft(t,h.left+j.left):!1===a?r.scrollLeft(t,h.left+k.left):j.left<0?r.scrollLeft(t,h.left+j.left):r.scrollLeft(t,h.left+k.left):c||((a=void 0===a||!!a)?r.scrollLeft(t,h.left+j.left):r.scrollLeft(t,h.left+k.left)))}},237:function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};function c(e,t){var n=e["page"+(t?"Y":"X")+"Offset"],r="scroll"+(t?"Top":"Left");if("number"!=typeof n){var o=e.document;"number"!=typeof(n=o.documentElement[r])&&(n=o.body[r])}return n}function i(e){return c(e)}function a(e){return c(e,!0)}function l(e){var t=function(e){var t,n=void 0,r=void 0,o=e.ownerDocument,c=o.body,i=o&&o.documentElement;return n=(t=e.getBoundingClientRect()).left,r=t.top,{left:n-=i.clientLeft||c.clientLeft||0,top:r-=i.clientTop||c.clientTop||0}}(e),n=e.ownerDocument,r=n.defaultView||n.parentWindow;return t.left+=i(r),t.top+=a(r),t}var s=new RegExp("^("+/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source+")(?!px)[a-z%]+$","i"),u=/^(top|right|bottom|left)$/,d="left",b=void 0;function f(e,t){for(var n=0;n<e.length;n++)t(e[n])}function p(e){return"border-box"===b(e,"boxSizing")}"undefined"!=typeof window&&(b=window.getComputedStyle?function(e,t,n){var r="",o=e.ownerDocument,c=n||o.defaultView.getComputedStyle(e,null);return c&&(r=c.getPropertyValue(t)||c[t]),r}:function(e,t){var n=e.currentStyle&&e.currentStyle[t];if(s.test(n)&&!u.test(t)){var r=e.style,o=r[d],c=e.runtimeStyle[d];e.runtimeStyle[d]=e.currentStyle[d],r[d]="fontSize"===t?"1em":n||0,n=r.pixelLeft+"px",r[d]=o,e.runtimeStyle[d]=c}return""===n?"auto":n});var m=["margin","border","padding"];function v(e,t,n){var r={},o=e.style,c=void 0;for(c in t)t.hasOwnProperty(c)&&(r[c]=o[c],o[c]=t[c]);for(c in n.call(e),t)t.hasOwnProperty(c)&&(o[c]=r[c])}function O(e,t,n){var r=0,o=void 0,c=void 0,i=void 0;for(c=0;c<t.length;c++)if(o=t[c])for(i=0;i<n.length;i++){var a;a="border"===o?o+n[i]+"Width":o+n[i],r+=parseFloat(b(e,a))||0}return r}function g(e){return null!=e&&e==e.window}var h={};function j(e,t,n){if(g(e))return"width"===t?h.viewportWidth(e):h.viewportHeight(e);if(9===e.nodeType)return"width"===t?h.docWidth(e):h.docHeight(e);var r="width"===t?["Left","Right"]:["Top","Bottom"],o="width"===t?e.offsetWidth:e.offsetHeight,c=(b(e),p(e)),i=0;(null==o||o<=0)&&(o=void 0,(null==(i=b(e,t))||Number(i)<0)&&(i=e.style[t]||0),i=parseFloat(i)||0),void 0===n&&(n=c?1:-1);var a=void 0!==o||c,l=o||i;if(-1===n)return a?l-O(e,["border","padding"],r):i;if(a){var s=2===n?-O(e,["border"],r):O(e,["margin"],r);return l+(1===n?0:s)}return i+O(e,m.slice(n),r)}f(["Width","Height"],(function(e){h["doc"+e]=function(t){var n=t.document;return Math.max(n.documentElement["scroll"+e],n.body["scroll"+e],h["viewport"+e](n))},h["viewport"+e]=function(t){var n="client"+e,r=t.document,o=r.body,c=r.documentElement[n];return"CSS1Compat"===r.compatMode&&c||o&&o[n]||c}}));var k={position:"absolute",visibility:"hidden",display:"block"};function y(e){var t=void 0,n=arguments;return 0!==e.offsetWidth?t=j.apply(void 0,n):v(e,k,(function(){t=j.apply(void 0,n)})),t}function _(e,t,n){var r=n;if("object"!==(void 0===t?"undefined":o(t)))return void 0!==r?("number"==typeof r&&(r+="px"),void(e.style[t]=r)):b(e,t);for(var c in t)t.hasOwnProperty(c)&&_(e,c,t[c])}f(["width","height"],(function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);h["outer"+t]=function(t,n){return t&&y(t,e,n?0:1)};var n="width"===e?["Left","Right"]:["Top","Bottom"];h[e]=function(t,r){return void 0===r?t&&y(t,e,-1):t?(b(t),p(t)&&(r+=O(t,["padding","border"],n)),_(t,e,r)):void 0}})),e.exports=r({getWindow:function(e){var t=e.ownerDocument||e;return t.defaultView||t.parentWindow},offset:function(e,t){if(void 0===t)return l(e);!function(e,t){"static"===_(e,"position")&&(e.style.position="relative");var n=l(e),r={},o=void 0,c=void 0;for(c in t)t.hasOwnProperty(c)&&(o=parseFloat(_(e,c))||0,r[c]=o+t[c]-n[c]);_(e,r)}(e,t)},isWindow:g,each:f,css:_,clone:function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);if(e.overflow)for(var n in e)e.hasOwnProperty(n)&&(t.overflow[n]=e.overflow[n]);return t},scrollLeft:function(e,t){if(g(e)){if(void 0===t)return i(e);window.scrollTo(t,a(e))}else{if(void 0===t)return e.scrollLeft;e.scrollLeft=t}},scrollTop:function(e,t){if(g(e)){if(void 0===t)return a(e);window.scrollTo(i(e),t)}else{if(void 0===t)return e.scrollTop;e.scrollTop=t}},viewportWidth:0,viewportHeight:0},h)},238:function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(o.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"}));t.a=c},239:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function __(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}),c=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n};t.__esModule=!0;var a=n(8),l=n(37),s=n(240),u=n(241),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={lineHeight:null},t.textarea=null,t.onResize=function(e){t.props.onResize&&t.props.onResize(e)},t.updateLineHeight=function(){t.textarea&&t.setState({lineHeight:u(t.textarea)})},t.onChange=function(e){var n=t.props.onChange;t.currentValue=e.currentTarget.value,n&&n(e)},t}return o(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props,n=t.maxRows,r=t.async;"number"==typeof n&&this.updateLineHeight(),"number"==typeof n||r?setTimeout((function(){return e.textarea&&s(e.textarea)})):this.textarea&&s(this.textarea),this.textarea&&this.textarea.addEventListener("autosize:resized",this.onResize)},t.prototype.componentWillUnmount=function(){this.textarea&&(this.textarea.removeEventListener("autosize:resized",this.onResize),s.destroy(this.textarea))},t.prototype.render=function(){var e=this,t=this.props,n=(t.onResize,t.maxRows),r=(t.onChange,t.style),o=(t.innerRef,t.children),l=i(t,["onResize","maxRows","onChange","style","innerRef","children"]),s=this.state.lineHeight,u=n&&s?s*n:null;return a.createElement("textarea",c({},l,{onChange:this.onChange,style:u?c({},r,{maxHeight:u}):r,ref:function(t){e.textarea=t,"function"==typeof e.props.innerRef?e.props.innerRef(t):e.props.innerRef&&(e.props.innerRef.current=t)}}),o)},t.prototype.componentDidUpdate=function(){this.textarea&&s.update(this.textarea)},t.defaultProps={rows:1,async:!1},t.propTypes={rows:l.number,maxRows:l.number,onResize:l.func,innerRef:l.any,async:l.bool},t}(a.Component);t.TextareaAutosize=a.forwardRef((function(e,t){return a.createElement(d,c({},e,{innerRef:t}))}))},24:function(e,t,n){"use strict";function r(e){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return r}))},240:function(e,t,n){var r,o;void 0===(o="function"==typeof(r=function(e,t){"use strict";var n,r,o="function"==typeof Map?new Map:(n=[],r=[],{has:function(e){return n.indexOf(e)>-1},get:function(e){return r[n.indexOf(e)]},set:function(e,t){-1===n.indexOf(e)&&(n.push(e),r.push(t))},delete:function(e){var t=n.indexOf(e);t>-1&&(n.splice(t,1),r.splice(t,1))}}),c=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(e){c=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}function i(e){var t=o.get(e);t&&t.destroy()}function a(e){var t=o.get(e);t&&t.update()}var l=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?((l=function(e){return e}).destroy=function(e){return e},l.update=function(e){return e}):((l=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],(function(e){return function(e){if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!o.has(e)){var t,n=null,r=null,i=null,a=function(){e.clientWidth!==r&&d()},l=function(t){window.removeEventListener("resize",a,!1),e.removeEventListener("input",d,!1),e.removeEventListener("keyup",d,!1),e.removeEventListener("autosize:destroy",l,!1),e.removeEventListener("autosize:update",d,!1),Object.keys(t).forEach((function(n){e.style[n]=t[n]})),o.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",l,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",d,!1),window.addEventListener("resize",a,!1),e.addEventListener("input",d,!1),e.addEventListener("autosize:update",d,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",o.set(e,{destroy:l,update:d}),"vertical"===(t=window.getComputedStyle(e,null)).resize?e.style.resize="none":"both"===t.resize&&(e.style.resize="horizontal"),n="content-box"===t.boxSizing?-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),isNaN(n)&&(n=0),d()}function s(t){var n=e.style.width;e.style.width="0px",e.offsetWidth,e.style.width=n,e.style.overflowY=t}function u(){if(0!==e.scrollHeight){var t=function(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push({node:e.parentNode,scrollTop:e.parentNode.scrollTop}),e=e.parentNode;return t}(e),o=document.documentElement&&document.documentElement.scrollTop;e.style.height="",e.style.height=e.scrollHeight+n+"px",r=e.clientWidth,t.forEach((function(e){e.node.scrollTop=e.scrollTop})),o&&(document.documentElement.scrollTop=o)}}function d(){u();var t=Math.round(parseFloat(e.style.height)),n=window.getComputedStyle(e,null),r="content-box"===n.boxSizing?Math.round(parseFloat(n.height)):e.offsetHeight;if(r<t?"hidden"===n.overflowY&&(s("scroll"),u(),r="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight):"hidden"!==n.overflowY&&(s("hidden"),u(),r="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight),i!==r){i=r;var o=c("autosize:resized");try{e.dispatchEvent(o)}catch(e){}}}}(e)})),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],i),e},l.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],a),e}),t.default=l,e.exports=t.default})?r.apply(t,[e,t]):r)||(e.exports=o)},241:function(e,t,n){var r=n(242);e.exports=function(e){var t=r(e,"line-height"),n=parseFloat(t,10);if(t===n+""){var o=e.style.lineHeight;e.style.lineHeight=t+"em",t=r(e,"line-height"),n=parseFloat(t,10),o?e.style.lineHeight=o:delete e.style.lineHeight}if(-1!==t.indexOf("pt")?(n*=4,n/=3):-1!==t.indexOf("mm")?(n*=96,n/=25.4):-1!==t.indexOf("cm")?(n*=96,n/=2.54):-1!==t.indexOf("in")?n*=96:-1!==t.indexOf("pc")&&(n*=16),n=Math.round(n),"normal"===t){var c=e.nodeName,i=document.createElement(c);i.innerHTML="&nbsp;","TEXTAREA"===c.toUpperCase()&&i.setAttribute("rows","1");var a=r(e,"font-size");i.style.fontSize=a,i.style.padding="0px",i.style.border="0px";var l=document.body;l.appendChild(i),n=i.offsetHeight,l.removeChild(i)}return n}},242:function(e,t){e.exports=function(e,t,n){return((n=window.getComputedStyle)?n(e):e.currentStyle)[t.replace(/-(\w)/gi,(function(e,t){return t.toUpperCase()}))]}},243:function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M15.6 7.2H14v1.5h1.6c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.8 0 5.2-2.3 5.2-5.2 0-2.9-2.3-5.2-5.2-5.2zM4.7 12.4c0-2 1.7-3.7 3.7-3.7H10V7.2H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H10v-1.5H8.4c-2 0-3.7-1.7-3.7-3.7zm4.6.9h5.3v-1.5H9.3v1.5z"}));t.a=c},25:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,"a",(function(){return r}))},259:function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M20.1 5.1L16.9 2 6.2 12.7l-1.3 4.4 4.5-1.3L20.1 5.1zM4 20.8h8v-1.5H4v1.5z"}));t.a=c},26:function(e,t){e.exports=window.wp.richText},28:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",(function(){return r}))},280:function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(o.Path,{d:"M13.8 5.2H3v1.5h10.8V5.2zm-3.6 12v1.5H21v-1.5H10.2zm7.2-6H6.6v1.5h10.8v-1.5z"}));t.a=c},281:function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M13.5 6C10.5 6 8 8.5 8 11.5c0 1.1.3 2.1.9 3l-3.4 3 1 1.1 3.4-2.9c1 .9 2.2 1.4 3.6 1.4 3 0 5.5-2.5 5.5-5.5C19 8.5 16.5 6 13.5 6zm0 9.5c-2.2 0-4-1.8-4-4s1.8-4 4-4 4 1.8 4 4-1.8 4-4 4z"}));t.a=c},282:function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"}));t.a=c},283:function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"}));t.a=c},284:function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"}));t.a=c},285:function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"}));t.a=c},286:function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(r.createElement)(o.Path,{d:"M6.734 16.106l2.176-2.38-1.093-1.028-3.846 4.158 3.846 4.157 1.093-1.027-2.176-2.38h2.811c1.125 0 2.25.03 3.374 0 1.428-.001 3.362-.25 4.963-1.277 1.66-1.065 2.868-2.906 2.868-5.859 0-2.479-1.327-4.896-3.65-5.93-1.82-.813-3.044-.8-4.806-.788l-.567.002v1.5c.184 0 .368 0 .553-.002 1.82-.007 2.704-.014 4.21.657 1.854.827 2.76 2.657 2.76 4.561 0 2.472-.973 3.824-2.178 4.596-1.258.807-2.864 1.04-4.163 1.04h-.02c-1.115.03-2.229 0-3.344 0H6.734z"}));t.a=c},287:function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M18.5 15v3.5H13V6.7l4.5 4.1 1-1.1-6.2-5.8-5.8 5.8 1 1.1 4-4v11.7h-6V15H4v5h16v-5z"}));t.a=c},29:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(25);function o(e,t){if(e){if("string"==typeof e)return Object(r.a)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r.a)(e,t):void 0}}},3:function(e,t){e.exports=window.wp.components},30:function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}n.d(t,"a",(function(){return o}))},31:function(e,t){e.exports=window.wp.url},32:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(58);function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Object(r.a)(e,t)}},33:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(61),o=n.n(r),c=n(19);function i(e,t){return!t||"object"!==o()(t)&&"function"!=typeof t?Object(c.a)(e):t}},34:function(e,t){e.exports=window.wp.hooks},35:function(e,t){e.exports=window.wp.dom},357:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.diffChars=function(e,t,n){return o.diff(e,t,n)},t.characterDiff=void 0;var o=new(((r=n(411))&&r.__esModule?r:{default:r}).default);t.characterDiff=o},358:function(e,t,n){"use strict";t.match=function(e,t){return l(e).some((function(e){var n=e.inverse,r="all"===e.type||t.type===e.type;if(r&&n||!r&&!n)return!1;var o=e.expressions.every((function(e){var n=e.feature,r=e.modifier,o=e.value,c=t[n];if(!c)return!1;switch(n){case"orientation":case"scan":return c.toLowerCase()===o.toLowerCase();case"width":case"height":case"device-width":case"device-height":o=d(o),c=d(c);break;case"resolution":o=u(o),c=u(c);break;case"aspect-ratio":case"device-aspect-ratio":case"device-pixel-ratio":o=s(o),c=s(c);break;case"grid":case"color":case"color-index":case"monochrome":o=parseInt(o,10)||1,c=parseInt(c,10)||0}switch(r){case"min":return c>=o;case"max":return c<=o;default:return c===o}}));return o&&!n||!o&&n}))},t.parse=l;var r=/(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i,o=/\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/,c=/^(?:(min|max)-)?(.+)/,i=/(em|rem|px|cm|mm|in|pt|pc)?$/,a=/(dpi|dpcm|dppx)?$/;function l(e){return e.split(",").map((function(e){var t=(e=e.trim()).match(r),n=t[1],i=t[2],a=t[3]||"",l={};return l.inverse=!!n&&"not"===n.toLowerCase(),l.type=i?i.toLowerCase():"all",a=a.match(/\([^\)]+\)/g)||[],l.expressions=a.map((function(e){var t=e.match(o),n=t[1].toLowerCase().match(c);return{modifier:n[1],feature:n[2],value:t[2]}})),l}))}function s(e){var t,n=Number(e);return n||(n=(t=e.match(/^(\d+)\s*\/\s*(\d+)$/))[1]/t[2]),n}function u(e){var t=parseFloat(e);switch(String(e).match(a)[1]){case"dpcm":return t/2.54;case"dppx":return 96*t;default:return t}}function d(e){var t=parseFloat(e);switch(String(e).match(i)[1]){case"em":case"rem":return 16*t;case"cm":return 96*t/2.54;case"mm":return 96*t/2.54/10;case"in":return 96*t;case"pt":return 72*t;case"pc":return 72*t/12;default:return t}}},359:function(e,t){var n=e.exports=function(e){return new r(e)};function r(e){this.value=e}function o(e,t,n){var r=[],o=[],a=!0;return function e(d){var b=n?c(d):d,f={},p=!0,m={node:b,node_:d,path:[].concat(r),parent:o[o.length-1],parents:o,key:r.slice(-1)[0],isRoot:0===r.length,level:r.length,circular:null,update:function(e,t){m.isRoot||(m.parent.node[m.key]=e),m.node=e,t&&(p=!1)},delete:function(e){delete m.parent.node[m.key],e&&(p=!1)},remove:function(e){l(m.parent.node)?m.parent.node.splice(m.key,1):delete m.parent.node[m.key],e&&(p=!1)},keys:null,before:function(e){f.before=e},after:function(e){f.after=e},pre:function(e){f.pre=e},post:function(e){f.post=e},stop:function(){a=!1},block:function(){p=!1}};if(!a)return m;function v(){if("object"==typeof m.node&&null!==m.node){m.keys&&m.node_===m.node||(m.keys=i(m.node)),m.isLeaf=0==m.keys.length;for(var e=0;e<o.length;e++)if(o[e].node_===d){m.circular=o[e];break}}else m.isLeaf=!0,m.keys=null;m.notLeaf=!m.isLeaf,m.notRoot=!m.isRoot}v();var O=t.call(m,m.node);return void 0!==O&&m.update&&m.update(O),f.before&&f.before.call(m,m.node),p?("object"!=typeof m.node||null===m.node||m.circular||(o.push(m),v(),s(m.keys,(function(t,o){r.push(t),f.pre&&f.pre.call(m,m.node[t],t);var c=e(m.node[t]);n&&u.call(m.node,t)&&(m.node[t]=c.node),c.isLast=o==m.keys.length-1,c.isFirst=0==o,f.post&&f.post.call(m,c),r.pop()})),o.pop()),f.after&&f.after.call(m,m.node),m):m}(e).node}function c(e){if("object"==typeof e&&null!==e){var t;if(l(e))t=[];else if("[object Date]"===a(e))t=new Date(e.getTime?e.getTime():e);else if(function(e){return"[object RegExp]"===a(e)}(e))t=new RegExp(e);else if(function(e){return"[object Error]"===a(e)}(e))t={message:e.message};else if(function(e){return"[object Boolean]"===a(e)}(e))t=new Boolean(e);else if(function(e){return"[object Number]"===a(e)}(e))t=new Number(e);else if(function(e){return"[object String]"===a(e)}(e))t=new String(e);else if(Object.create&&Object.getPrototypeOf)t=Object.create(Object.getPrototypeOf(e));else if(e.constructor===Object)t={};else{var n=e.constructor&&e.constructor.prototype||e.__proto__||{},r=function(){};r.prototype=n,t=new r}return s(i(e),(function(n){t[n]=e[n]})),t}return e}r.prototype.get=function(e){for(var t=this.value,n=0;n<e.length;n++){var r=e[n];if(!t||!u.call(t,r)){t=void 0;break}t=t[r]}return t},r.prototype.has=function(e){for(var t=this.value,n=0;n<e.length;n++){var r=e[n];if(!t||!u.call(t,r))return!1;t=t[r]}return!0},r.prototype.set=function(e,t){for(var n=this.value,r=0;r<e.length-1;r++){var o=e[r];u.call(n,o)||(n[o]={}),n=n[o]}return n[e[r]]=t,t},r.prototype.map=function(e){return o(this.value,e,!0)},r.prototype.forEach=function(e){return this.value=o(this.value,e,!1),this.value},r.prototype.reduce=function(e,t){var n=1===arguments.length,r=n?this.value:t;return this.forEach((function(t){this.isRoot&&n||(r=e.call(this,r,t))})),r},r.prototype.paths=function(){var e=[];return this.forEach((function(t){e.push(this.path)})),e},r.prototype.nodes=function(){var e=[];return this.forEach((function(t){e.push(this.node)})),e},r.prototype.clone=function(){var e=[],t=[];return function n(r){for(var o=0;o<e.length;o++)if(e[o]===r)return t[o];if("object"==typeof r&&null!==r){var a=c(r);return e.push(r),t.push(a),s(i(r),(function(e){a[e]=n(r[e])})),e.pop(),t.pop(),a}return r}(this.value)};var i=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};function a(e){return Object.prototype.toString.call(e)}var l=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},s=function(e,t){if(e.forEach)return e.forEach(t);for(var n=0;n<e.length;n++)t(e[n],n,e)};s(i(r.prototype),(function(e){n[e]=function(t){var n=[].slice.call(arguments,1),o=new r(t);return o[e].apply(o,n)}}));var u=Object.hasOwnProperty||function(e,t){return t in e}},37:function(e,t,n){e.exports=n(177)()},39:function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,"a",(function(){return r}))},4:function(e,t){e.exports=window.wp.data},40:function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,"a",(function(){return r}))},406:function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M9.1 9v-.5c0-.6.2-1.1.7-1.4.5-.3 1.2-.5 2-.5.7 0 1.4.1 2.1.3.7.2 1.4.5 2.1.9l.2-1.9c-.6-.3-1.2-.5-1.9-.7-.8-.1-1.6-.2-2.4-.2-1.5 0-2.7.3-3.6 1-.8.7-1.2 1.5-1.2 2.6V9h2zM20 12H4v1h8.3c.3.1.6.2.8.3.5.2.9.5 1.1.8.3.3.4.7.4 1.2 0 .7-.2 1.1-.8 1.5-.5.3-1.2.5-2.1.5-.8 0-1.6-.1-2.4-.3-.8-.2-1.5-.5-2.2-.8L7 18.1c.5.2 1.2.4 2 .6.8.2 1.6.3 2.4.3 1.7 0 3-.3 3.9-1 .9-.7 1.3-1.6 1.3-2.8 0-.9-.2-1.7-.7-2.2H20v-1z"}));t.a=c},407:function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M4 19.8h8.9v-1.5H4v1.5zm8.9-15.6H4v1.5h8.9V4.2zm-8.9 7v1.5h16v-1.5H4z"}));t.a=c},408:function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M16.4 4.2H7.6v1.5h8.9V4.2zM4 11.2v1.5h16v-1.5H4zm3.6 8.6h8.9v-1.5H7.6v1.5z"}));t.a=c},409:function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M11.1 19.8H20v-1.5h-8.9v1.5zm0-15.6v1.5H20V4.2h-8.9zM4 12.8h16v-1.5H4v1.5z"}));t.a=c},410:function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(o.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"}));t.a=c},411:function(e,t,n){"use strict";function r(){}function o(e,t,n,r,o){for(var c=0,i=t.length,a=0,l=0;c<i;c++){var s=t[c];if(s.removed){if(s.value=e.join(r.slice(l,l+s.count)),l+=s.count,c&&t[c-1].added){var u=t[c-1];t[c-1]=t[c],t[c]=u}}else{if(!s.added&&o){var d=n.slice(a,a+s.count);d=d.map((function(e,t){var n=r[l+t];return n.length>e.length?n:e})),s.value=e.join(d)}else s.value=e.join(n.slice(a,a+s.count));a+=s.count,s.added||(l+=s.count)}}var b=t[i-1];return i>1&&"string"==typeof b.value&&(b.added||b.removed)&&e.equals("",b.value)&&(t[i-2].value+=b.value,t.pop()),t}function c(e){return{newPos:e.newPos,components:e.components.slice(0)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r,r.prototype={diff:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.callback;"function"==typeof n&&(r=n,n={}),this.options=n;var i=this;function a(e){return r?(setTimeout((function(){r(void 0,e)}),0),!0):e}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e));var l=(t=this.removeEmpty(this.tokenize(t))).length,s=e.length,u=1,d=l+s,b=[{newPos:-1,components:[]}],f=this.extractCommon(b[0],t,e,0);if(b[0].newPos+1>=l&&f+1>=s)return a([{value:this.join(t),count:t.length}]);function p(){for(var n=-1*u;n<=u;n+=2){var r=void 0,d=b[n-1],f=b[n+1],p=(f?f.newPos:0)-n;d&&(b[n-1]=void 0);var m=d&&d.newPos+1<l,v=f&&0<=p&&p<s;if(m||v){if(!m||v&&d.newPos<f.newPos?(r=c(f),i.pushComponent(r.components,void 0,!0)):((r=d).newPos++,i.pushComponent(r.components,!0,void 0)),p=i.extractCommon(r,t,e,n),r.newPos+1>=l&&p+1>=s)return a(o(i,r.components,t,e,i.useLongestToken));b[n]=r}else b[n]=void 0}u++}if(r)!function e(){setTimeout((function(){if(u>d)return r();p()||e()}),0)}();else for(;u<=d;){var m=p();if(m)return m}},pushComponent:function(e,t,n){var r=e[e.length-1];r&&r.added===t&&r.removed===n?e[e.length-1]={count:r.count+1,added:t,removed:n}:e.push({count:1,added:t,removed:n})},extractCommon:function(e,t,n,r){for(var o=t.length,c=n.length,i=e.newPos,a=i-r,l=0;i+1<o&&a+1<c&&this.equals(t[i+1],n[a+1]);)i++,a++,l++;return l&&e.components.push({count:l}),e.newPos=i,a},equals:function(e,t){return this.options.comparator?this.options.comparator(e,t):e===t||this.options.ignoreCase&&e.toLowerCase()===t.toLowerCase()},removeEmpty:function(e){for(var t=[],n=0;n<e.length;n++)e[n]&&t.push(e[n]);return t},castInput:function(e){return e},tokenize:function(e){return e.split("")},join:function(e){return e.join("")}}},412:function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M18.7 3H5.3C4 3 3 4 3 5.3v13.4C3 20 4 21 5.3 21h13.4c1.3 0 2.3-1 2.3-2.3V5.3C21 4 20 3 18.7 3zm.8 15.7c0 .4-.4.8-.8.8H5.3c-.4 0-.8-.4-.8-.8V5.3c0-.4.4-.8.8-.8h13.4c.4 0 .8.4.8.8v13.4zM10 15l5-3-5-3v6z"}));t.a=c},42:function(e,t){e.exports=window.wp.deprecated},44:function(e,t,n){"use strict";function r(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}n.d(t,"a",(function(){return r}))},45:function(e,t){e.exports=window.wp.notices},46:function(e,t,n){"use strict";function r(e,t,n,r,o,c,i){try{var a=e[c](i),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(o,c){var i=e.apply(t,n);function a(e){r(i,o,c,a,l,"next",e)}function l(e){r(i,o,c,a,l,"throw",e)}a(void 0)}))}}n.d(t,"a",(function(){return o}))},47:function(e,t){e.exports=window.wp.keyboardShortcuts},49:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o={},c=Object.keys(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,"a",(function(){return r}))},50:function(e,t,n){"use strict";var r,o;function c(e){return[e]}function i(){var e={clear:function(){e.head=null}};return e}function a(e,t,n){var r;if(e.length!==t.length)return!1;for(r=n;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}r={},o="undefined"!=typeof WeakMap,t.a=function(e,t){var n,l;function s(){n=o?new WeakMap:i()}function u(){var n,r,o,c,i,s=arguments.length;for(c=new Array(s),o=0;o<s;o++)c[o]=arguments[o];for(i=t.apply(null,c),(n=l(i)).isUniqueByDependants||(n.lastDependants&&!a(i,n.lastDependants,0)&&n.clear(),n.lastDependants=i),r=n.head;r;){if(a(r.args,c,1))return r!==n.head&&(r.prev.next=r.next,r.next&&(r.next.prev=r.prev),r.next=n.head,r.prev=null,n.head.prev=r,n.head=r),r.val;r=r.next}return r={val:e.apply(null,c)},c[0]=null,r.args=c,n.head&&(n.head.prev=r,r.next=n.head),n.head=r,r.val}return t||(t=c),l=o?function(e){var t,o,c,a,l,s=n,u=!0;for(t=0;t<e.length;t++){if(!(l=o=e[t])||"object"!=typeof l){u=!1;break}s.has(o)?s=s.get(o):(c=new WeakMap,s.set(o,c),s=c)}return s.has(r)||((a=i()).isUniqueByDependants=u,s.set(r,a)),s.get(r)}:function(){return n},u.getDependants=t,u.clear=s,s(),u}},53:function(e,t){e.exports=window.wp.blob},542:function(e,t,n){"use strict";n.r(t),n.d(t,"getColorClassName",(function(){return Ro})),n.d(t,"getColorObjectByAttributeValues",(function(){return Ao})),n.d(t,"getColorObjectByColorValue",(function(){return Lo})),n.d(t,"createCustomColorsHOC",(function(){return ia})),n.d(t,"withColors",(function(){return aa})),n.d(t,"__experimentalUseColors",(function(){return _a})),n.d(t,"__experimentalGetGradientClass",(function(){return Fo})),n.d(t,"getGradientValueBySlug",(function(){return Vo})),n.d(t,"__experimentalGetGradientObjectByGradientValue",(function(){return Ho})),n.d(t,"getGradientSlugByValue",(function(){return zo})),n.d(t,"__experimentalUseGradient",(function(){return Go})),n.d(t,"getFontSize",(function(){return pi})),n.d(t,"getFontSizeClass",(function(){return vi})),n.d(t,"getFontSizeObjectByValue",(function(){return mi})),n.d(t,"FontSizePicker",(function(){return Oi})),n.d(t,"withFontSizes",(function(){return Ba})),n.d(t,"AlignmentControl",(function(){return Ra})),n.d(t,"AlignmentToolbar",(function(){return Ma})),n.d(t,"Autocomplete",(function(){return nl})),n.d(t,"BlockAlignmentControl",(function(){return qr})),n.d(t,"BlockAlignmentToolbar",(function(){return $r})),n.d(t,"__experimentalBlockFullHeightAligmentControl",(function(){return ol})),n.d(t,"__experimentalBlockAlignmentMatrixControl",(function(){return cl})),n.d(t,"BlockBreadcrumb",(function(){return ll})),n.d(t,"BlockContextProvider",(function(){return bl})),n.d(t,"BlockControls",(function(){return Cr})),n.d(t,"BlockFormatControls",(function(){return wr})),n.d(t,"BlockColorsStyleSelector",(function(){return vl})),n.d(t,"BlockEdit",(function(){return hl})),n.d(t,"useBlockEditContext",(function(){return h})),n.d(t,"BlockIcon",(function(){return Ja})),n.d(t,"BlockNavigationDropdown",(function(){return Db})),n.d(t,"__experimentalBlockNavigationBlockFill",(function(){return hb})),n.d(t,"__experimentalBlockNavigationEditor",(function(){return Xb})),n.d(t,"__experimentalBlockNavigationTree",(function(){return Pb})),n.d(t,"__experimentalBlockVariationPicker",(function(){return Zb})),n.d(t,"__experimentalBlockVariationTransforms",(function(){return tf})),n.d(t,"BlockVerticalAlignmentToolbar",(function(){return bf})),n.d(t,"BlockVerticalAlignmentControl",(function(){return df})),n.d(t,"ButtonBlockerAppender",(function(){return Su})),n.d(t,"ColorPalette",(function(){return vf})),n.d(t,"ColorPaletteControl",(function(){return Of})),n.d(t,"ContrastChecker",(function(){return uc})),n.d(t,"__experimentalGradientPicker",(function(){return jf})),n.d(t,"__experimentalGradientPickerControl",(function(){return kf})),n.d(t,"__experimentalGradientPickerPanel",(function(){return yf})),n.d(t,"__experimentalFontAppearanceControl",(function(){return ei})),n.d(t,"__experimentalFontFamilyControl",(function(){return ai})),n.d(t,"__experimentalColorGradientControl",(function(){return Jo})),n.d(t,"__experimentalPanelColorGradientSettings",(function(){return lc})),n.d(t,"__experimentalImageSizeControl",(function(){return Ef})),n.d(t,"InnerBlocks",(function(){return Rf})),n.d(t,"__experimentalUseInnerBlocksProps",(function(){return Lf})),n.d(t,"InspectorAdvancedControls",(function(){return io})),n.d(t,"InspectorControls",(function(){return bo})),n.d(t,"JustifyToolbar",(function(){return Wf})),n.d(t,"JustifyContentControl",(function(){return Uf})),n.d(t,"__experimentalLinkControl",(function(){return jp})),n.d(t,"__experimentalLinkControlSearchInput",(function(){return fp})),n.d(t,"__experimentalLinkControlSearchResults",(function(){return np})),n.d(t,"__experimentalLinkControlSearchItem",(function(){return tp})),n.d(t,"LineHeightControl",(function(){return qc})),n.d(t,"MediaReplaceFlow",(function(){return wp})),n.d(t,"MediaPlaceholder",(function(){return Pp})),n.d(t,"MediaUpload",(function(){return _p})),n.d(t,"MediaUploadCheck",(function(){return Ep})),n.d(t,"PanelColorSettings",(function(){return ba})),n.d(t,"PlainText",(function(){return Dp})),n.d(t,"__experimentalResponsiveBlockControl",(function(){return Lp})),n.d(t,"RichText",(function(){return Yb})),n.d(t,"RichTextShortcut",(function(){return Rp})),n.d(t,"RichTextToolbarButton",(function(){return Mp})),n.d(t,"__unstableRichTextInputEvent",(function(){return Fp})),n.d(t,"ToolSelector",(function(){return Hp})),n.d(t,"__experimentalUnitControl",(function(){return Si})),n.d(t,"URLInput",(function(){return Zf})),n.d(t,"URLInputButton",(function(){return Up})),n.d(t,"URLPopover",(function(){return Ip})),n.d(t,"__experimentalImageURLInputUI",(function(){return $p})),n.d(t,"withColorContext",(function(){return mf})),n.d(t,"__experimentalBlockSettingsMenuFirstItem",(function(){return _d})),n.d(t,"__experimentalInserterMenuExtension",(function(){return pu})),n.d(t,"__experimentalPreviewOptions",(function(){return Xp})),n.d(t,"__experimentalUseResizeCanvas",(function(){return rm})),n.d(t,"BlockInspector",(function(){return um})),n.d(t,"BlockList",(function(){return Yd})),n.d(t,"useBlockProps",(function(){return rb})),n.d(t,"__experimentalBlock",(function(){return pm})),n.d(t,"__experimentalLayoutStyle",(function(){return Mr})),n.d(t,"BlockMover",(function(){return Uu})),n.d(t,"BlockPreview",(function(){return Ns})),n.d(t,"BlockSelectionClearer",(function(){return vm})),n.d(t,"__unstableUseBlockSelectionClearer",(function(){return mm})),n.d(t,"BlockSettingsMenu",(function(){return Dd})),n.d(t,"BlockSettingsMenuControls",(function(){return xd})),n.d(t,"BlockTitle",(function(){return al})),n.d(t,"BlockToolbar",(function(){return Ad})),n.d(t,"CopyHandler",(function(){return vd})),n.d(t,"__unstableUseClipboardHandler",(function(){return md})),n.d(t,"DefaultBlockAppender",(function(){return Cu})),n.d(t,"__unstableEditorStyles",(function(){return Hm})),n.d(t,"Inserter",(function(){return wu})),n.d(t,"__experimentalLibrary",(function(){return zm})),n.d(t,"__experimentalSearchForm",(function(){return ws})),n.d(t,"BlockEditorKeyboardShortcuts",(function(){return Um})),n.d(t,"MultiSelectScrollIntoView",(function(){return Ud})),n.d(t,"NavigableToolbar",(function(){return Gu})),n.d(t,"ObserveTyping",(function(){return $m})),n.d(t,"__unstableUseTypingObserver",(function(){return qm})),n.d(t,"__unstableUseMouseMoveTypingReset",(function(){return Km})),n.d(t,"PreserveScrollInReorder",(function(){return Ym})),n.d(t,"SkipToSelectedBlock",(function(){return om})),n.d(t,"Typewriter",(function(){return Jm})),n.d(t,"__unstableUseTypewriter",(function(){return Zm})),n.d(t,"Warning",(function(){return Gl})),n.d(t,"WritingFlow",(function(){return vs})),n.d(t,"__unstableUseCanvasClickRedirect",(function(){return tv})),n.d(t,"useBlockDisplayInformation",(function(){return il})),n.d(t,"__unstableIframe",(function(){return ov})),n.d(t,"__experimentalUseNoRecursiveRenders",(function(){return lv})),n.d(t,"BlockEditorProvider",(function(){return Is})),n.d(t,"__experimentalUseSimulatedMediaQuery",(function(){return nm})),n.d(t,"__experimentalUseEditorFeature",(function(){return _o})),n.d(t,"transformStyles",(function(){return Fm})),n.d(t,"validateThemeColors",(function(){return sv})),n.d(t,"validateThemeGradients",(function(){return uv})),n.d(t,"__experimentalGetMatchingVariation",(function(){return Jb})),n.d(t,"storeConfig",(function(){return gr})),n.d(t,"store",(function(){return hr})),n.d(t,"SETTINGS_DEFAULTS",(function(){return E}));var r={};n.r(r),n.d(r,"getBlockName",(function(){return Y})),n.d(r,"isBlockValid",(function(){return X})),n.d(r,"getBlockAttributes",(function(){return Q})),n.d(r,"getBlock",(function(){return Z})),n.d(r,"__unstableGetBlockWithoutInnerBlocks",(function(){return J})),n.d(r,"getBlocks",(function(){return ee})),n.d(r,"__unstableGetBlockWithBlockTree",(function(){return te})),n.d(r,"__unstableGetBlockTree",(function(){return ne})),n.d(r,"__unstableGetClientIdWithClientIdsTree",(function(){return re})),n.d(r,"__unstableGetClientIdsTree",(function(){return oe})),n.d(r,"getClientIdsOfDescendants",(function(){return ce})),n.d(r,"getClientIdsWithDescendants",(function(){return ie})),n.d(r,"getGlobalBlockCount",(function(){return ae})),n.d(r,"getBlocksByClientId",(function(){return le})),n.d(r,"getBlockCount",(function(){return se})),n.d(r,"getSelectionStart",(function(){return ue})),n.d(r,"getSelectionEnd",(function(){return de})),n.d(r,"getBlockSelectionStart",(function(){return be})),n.d(r,"getBlockSelectionEnd",(function(){return fe})),n.d(r,"getSelectedBlockCount",(function(){return pe})),n.d(r,"hasSelectedBlock",(function(){return me})),n.d(r,"getSelectedBlockClientId",(function(){return ve})),n.d(r,"getSelectedBlock",(function(){return Oe})),n.d(r,"getBlockRootClientId",(function(){return ge})),n.d(r,"getBlockParents",(function(){return he})),n.d(r,"getBlockParentsByBlockName",(function(){return je})),n.d(r,"getBlockHierarchyRootClientId",(function(){return ke})),n.d(r,"getLowestCommonAncestorWithSelectedBlock",(function(){return ye})),n.d(r,"getAdjacentBlockClientId",(function(){return _e})),n.d(r,"getPreviousBlockClientId",(function(){return Ee})),n.d(r,"getNextBlockClientId",(function(){return we})),n.d(r,"getSelectedBlocksInitialCaretPosition",(function(){return Ce})),n.d(r,"getSelectedBlockClientIds",(function(){return Se})),n.d(r,"getMultiSelectedBlockClientIds",(function(){return Be})),n.d(r,"getMultiSelectedBlocks",(function(){return Ie})),n.d(r,"getFirstMultiSelectedBlockClientId",(function(){return xe})),n.d(r,"getLastMultiSelectedBlockClientId",(function(){return Pe})),n.d(r,"isFirstMultiSelectedBlock",(function(){return Te})),n.d(r,"isBlockMultiSelected",(function(){return Ne})),n.d(r,"isAncestorMultiSelected",(function(){return De})),n.d(r,"getMultiSelectedBlocksStartClientId",(function(){return Ae})),n.d(r,"getMultiSelectedBlocksEndClientId",(function(){return Le})),n.d(r,"getBlockOrder",(function(){return Re})),n.d(r,"getBlockIndex",(function(){return Me})),n.d(r,"isBlockSelected",(function(){return Fe})),n.d(r,"hasSelectedInnerBlock",(function(){return Ve})),n.d(r,"isBlockWithinSelection",(function(){return He})),n.d(r,"hasMultiSelection",(function(){return ze})),n.d(r,"isMultiSelecting",(function(){return Ge})),n.d(r,"isSelectionEnabled",(function(){return Ue})),n.d(r,"getBlockMode",(function(){return We})),n.d(r,"isTyping",(function(){return Ke})),n.d(r,"isDraggingBlocks",(function(){return qe})),n.d(r,"getDraggedBlockClientIds",(function(){return $e})),n.d(r,"isBlockBeingDragged",(function(){return Ye})),n.d(r,"isAncestorBeingDragged",(function(){return Xe})),n.d(r,"isCaretWithinFormattedText",(function(){return Qe})),n.d(r,"getBlockInsertionPoint",(function(){return Ze})),n.d(r,"isBlockInsertionPointVisible",(function(){return Je})),n.d(r,"isValidTemplate",(function(){return et})),n.d(r,"getTemplate",(function(){return tt})),n.d(r,"getTemplateLock",(function(){return nt})),n.d(r,"canInsertBlockType",(function(){return ot})),n.d(r,"canInsertBlocks",(function(){return ct})),n.d(r,"getInserterItems",(function(){return dt})),n.d(r,"getBlockTransformItems",(function(){return bt})),n.d(r,"hasInserterItems",(function(){return ft})),n.d(r,"__experimentalGetAllowedBlocks",(function(){return pt})),n.d(r,"__experimentalGetParsedPattern",(function(){return mt})),n.d(r,"__experimentalGetAllowedPatterns",(function(){return vt})),n.d(r,"__experimentalGetPatternsByBlockTypes",(function(){return Ot})),n.d(r,"getBlockListSettings",(function(){return gt})),n.d(r,"getSettings",(function(){return ht})),n.d(r,"isLastBlockChangePersistent",(function(){return jt})),n.d(r,"__experimentalGetBlockListSettingsForBlocks",(function(){return kt})),n.d(r,"__experimentalGetParsedReusableBlock",(function(){return yt})),n.d(r,"__experimentalGetReusableBlockTitle",(function(){return _t})),n.d(r,"__unstableIsLastBlockChangeIgnored",(function(){return Et})),n.d(r,"__experimentalGetLastBlockAttributeChanges",(function(){return wt})),n.d(r,"isNavigationMode",(function(){return St})),n.d(r,"hasBlockMovingClientId",(function(){return Bt})),n.d(r,"didAutomaticChange",(function(){return It})),n.d(r,"isBlockHighlighted",(function(){return xt})),n.d(r,"areInnerBlocksControlled",(function(){return Pt})),n.d(r,"__experimentalGetActiveBlockIdByBlockNames",(function(){return Tt}));var o={};n.r(o),n.d(o,"resetBlocks",(function(){return bn})),n.d(o,"validateBlocksToTemplate",(function(){return fn})),n.d(o,"resetSelection",(function(){return pn})),n.d(o,"receiveBlocks",(function(){return mn})),n.d(o,"updateBlockAttributes",(function(){return vn})),n.d(o,"updateBlock",(function(){return On})),n.d(o,"selectBlock",(function(){return gn})),n.d(o,"selectPreviousBlock",(function(){return hn})),n.d(o,"selectNextBlock",(function(){return jn})),n.d(o,"startMultiSelect",(function(){return kn})),n.d(o,"stopMultiSelect",(function(){return yn})),n.d(o,"multiSelect",(function(){return En})),n.d(o,"clearSelectedBlock",(function(){return wn})),n.d(o,"toggleSelection",(function(){return Cn})),n.d(o,"replaceBlocks",(function(){return Bn})),n.d(o,"replaceBlock",(function(){return In})),n.d(o,"moveBlocksDown",(function(){return Pn})),n.d(o,"moveBlocksUp",(function(){return Tn})),n.d(o,"moveBlocksToPosition",(function(){return Nn})),n.d(o,"moveBlockToPosition",(function(){return Dn})),n.d(o,"insertBlock",(function(){return An})),n.d(o,"insertBlocks",(function(){return Ln})),n.d(o,"__unstableSetInsertionPoint",(function(){return Rn})),n.d(o,"showInsertionPoint",(function(){return Mn})),n.d(o,"hideInsertionPoint",(function(){return Fn})),n.d(o,"setTemplateValidity",(function(){return Vn})),n.d(o,"synchronizeTemplate",(function(){return Hn})),n.d(o,"mergeBlocks",(function(){return zn})),n.d(o,"removeBlocks",(function(){return Gn})),n.d(o,"removeBlock",(function(){return Un})),n.d(o,"replaceInnerBlocks",(function(){return Wn})),n.d(o,"toggleBlockMode",(function(){return Kn})),n.d(o,"startTyping",(function(){return qn})),n.d(o,"stopTyping",(function(){return $n})),n.d(o,"startDraggingBlocks",(function(){return Yn})),n.d(o,"stopDraggingBlocks",(function(){return Xn})),n.d(o,"enterFormattedText",(function(){return Qn})),n.d(o,"exitFormattedText",(function(){return Zn})),n.d(o,"selectionChange",(function(){return Jn})),n.d(o,"insertDefaultBlock",(function(){return er})),n.d(o,"updateBlockListSettings",(function(){return tr})),n.d(o,"updateSettings",(function(){return nr})),n.d(o,"__unstableSaveReusableBlock",(function(){return rr})),n.d(o,"__unstableMarkLastChangeAsPersistent",(function(){return or})),n.d(o,"__unstableMarkNextChangeAsNotPersistent",(function(){return cr})),n.d(o,"__unstableMarkAutomaticChange",(function(){return ir})),n.d(o,"__unstableMarkAutomaticChangeFinal",(function(){return ar})),n.d(o,"setNavigationMode",(function(){return lr})),n.d(o,"setBlockMovingClientId",(function(){return sr})),n.d(o,"duplicateBlocks",(function(){return ur})),n.d(o,"insertBeforeBlock",(function(){return dr})),n.d(o,"insertAfterBlock",(function(){return br})),n.d(o,"toggleBlockHighlight",(function(){return fr})),n.d(o,"flashBlock",(function(){return pr})),n.d(o,"setHasControlledInnerBlocks",(function(){return mr}));var c=n(26),i=n(9),a=n(6),l=n(0),s=n(12),u=n.n(s),d=n(2),b=n(14),f=n(34),p=n(11),m=n(3),v=n(4),O=Object(l.createContext)({name:"",isSelected:!1,clientId:null}),g=O.Provider;function h(){return Object(l.useContext)(O)}var j=n(13),k=n(15),y=n(1),_={insertUsage:{}},E={alignWide:!1,supportsLayout:!0,colors:[{name:Object(y.__)("Black"),slug:"black",color:"#000000"},{name:Object(y.__)("Cyan bluish gray"),slug:"cyan-bluish-gray",color:"#abb8c3"},{name:Object(y.__)("White"),slug:"white",color:"#ffffff"},{name:Object(y.__)("Pale pink"),slug:"pale-pink",color:"#f78da7"},{name:Object(y.__)("Vivid red"),slug:"vivid-red",color:"#cf2e2e"},{name:Object(y.__)("Luminous vivid orange"),slug:"luminous-vivid-orange",color:"#ff6900"},{name:Object(y.__)("Luminous vivid amber"),slug:"luminous-vivid-amber",color:"#fcb900"},{name:Object(y.__)("Light green cyan"),slug:"light-green-cyan",color:"#7bdcb5"},{name:Object(y.__)("Vivid green cyan"),slug:"vivid-green-cyan",color:"#00d084"},{name:Object(y.__)("Pale cyan blue"),slug:"pale-cyan-blue",color:"#8ed1fc"},{name:Object(y.__)("Vivid cyan blue"),slug:"vivid-cyan-blue",color:"#0693e3"},{name:Object(y.__)("Vivid purple"),slug:"vivid-purple",color:"#9b51e0"}],fontSizes:[{name:Object(y._x)("Small","font size name"),size:13,slug:"small"},{name:Object(y._x)("Normal","font size name"),size:16,slug:"normal"},{name:Object(y._x)("Medium","font size name"),size:20,slug:"medium"},{name:Object(y._x)("Large","font size name"),size:36,slug:"large"},{name:Object(y._x)("Huge","font size name"),size:42,slug:"huge"}],imageDefaultSize:"large",imageSizes:[{slug:"thumbnail",name:Object(y.__)("Thumbnail")},{slug:"medium",name:Object(y.__)("Medium")},{slug:"large",name:Object(y.__)("Large")},{slug:"full",name:Object(y.__)("Full Size")}],imageEditing:!0,maxWidth:580,allowedBlockTypes:!0,maxUploadFileSize:0,allowedMimeTypes:null,__experimentalCanUserUseUnfilteredHTML:!1,__experimentalBlockDirectory:!1,__mobileEnablePageTemplates:!1,__experimentalBlockPatterns:[],__experimentalBlockPatternCategories:[],__experimentalSpotlightEntityBlocks:[],gradients:[{name:Object(y.__)("Vivid cyan blue to vivid purple"),gradient:"linear-gradient(135deg,rgba(6,147,227,1) 0%,rgb(155,81,224) 100%)",slug:"vivid-cyan-blue-to-vivid-purple"},{name:Object(y.__)("Light green cyan to vivid green cyan"),gradient:"linear-gradient(135deg,rgb(122,220,180) 0%,rgb(0,208,130) 100%)",slug:"light-green-cyan-to-vivid-green-cyan"},{name:Object(y.__)("Luminous vivid amber to luminous vivid orange"),gradient:"linear-gradient(135deg,rgba(252,185,0,1) 0%,rgba(255,105,0,1) 100%)",slug:"luminous-vivid-amber-to-luminous-vivid-orange"},{name:Object(y.__)("Luminous vivid orange to vivid red"),gradient:"linear-gradient(135deg,rgba(255,105,0,1) 0%,rgb(207,46,46) 100%)",slug:"luminous-vivid-orange-to-vivid-red"},{name:Object(y.__)("Very light gray to cyan bluish gray"),gradient:"linear-gradient(135deg,rgb(238,238,238) 0%,rgb(169,184,195) 100%)",slug:"very-light-gray-to-cyan-bluish-gray"},{name:Object(y.__)("Cool to warm spectrum"),gradient:"linear-gradient(135deg,rgb(74,234,220) 0%,rgb(151,120,209) 20%,rgb(207,42,186) 40%,rgb(238,44,130) 60%,rgb(251,105,98) 80%,rgb(254,248,76) 100%)",slug:"cool-to-warm-spectrum"},{name:Object(y.__)("Blush light purple"),gradient:"linear-gradient(135deg,rgb(255,206,236) 0%,rgb(152,150,240) 100%)",slug:"blush-light-purple"},{name:Object(y.__)("Blush bordeaux"),gradient:"linear-gradient(135deg,rgb(254,205,165) 0%,rgb(254,45,45) 50%,rgb(107,0,62) 100%)",slug:"blush-bordeaux"},{name:Object(y.__)("Luminous dusk"),gradient:"linear-gradient(135deg,rgb(255,203,112) 0%,rgb(199,81,192) 50%,rgb(65,88,208) 100%)",slug:"luminous-dusk"},{name:Object(y.__)("Pale ocean"),gradient:"linear-gradient(135deg,rgb(255,245,203) 0%,rgb(182,227,212) 50%,rgb(51,167,181) 100%)",slug:"pale-ocean"},{name:Object(y.__)("Electric grass"),gradient:"linear-gradient(135deg,rgb(202,248,128) 0%,rgb(113,206,126) 100%)",slug:"electric-grass"},{name:Object(y.__)("Midnight"),gradient:"linear-gradient(135deg,rgb(2,3,129) 0%,rgb(40,116,252) 100%)",slug:"midnight"}]};function w(e,t,n){return[].concat(Object(k.a)(e.slice(0,n)),Object(k.a)(Object(d.castArray)(t)),Object(k.a)(e.slice(n)))}function C(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,o=Object(k.a)(e);return o.splice(t,r),w(o,e.slice(t,t+r),n)}function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function B(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?S(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function I(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=Object(a.a)({},t,[]);return e.forEach((function(e){var r=e.clientId,o=e.innerBlocks;n[t].push(r),Object.assign(n,I(o,r))})),n}function x(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.reduce((function(e,n){return Object.assign(e,Object(a.a)({},n.clientId,t),x(n.innerBlocks,n.clientId))}),{})}function P(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d.identity,n={},r=Object(k.a)(e);r.length;){var o=r.shift(),c=o.innerBlocks,i=Object(j.a)(o,["innerBlocks"]);r.push.apply(r,Object(k.a)(c)),n[i.clientId]=t(i)}return n}function T(e){return P(e,(function(e){return Object(d.omit)(e,"attributes")}))}function N(e){return P(e,(function(e){return e.attributes}))}function D(e,t){return e===t?B({},e):t}function A(e,t){return"UPDATE_BLOCK_ATTRIBUTES"===e.type&&void 0!==t&&"UPDATE_BLOCK_ATTRIBUTES"===t.type&&Object(d.isEqual)(e.clientIds,t.clientIds)&&(n=e.attributes,r=t.attributes,Object(d.isEqual)(Object(d.keys)(n),Object(d.keys)(r)));var n,r}var L=function(e){return e.reduce((function(e,t){return e[t]={},e}),{})},R=Object(d.flow)(v.combineReducers,(function(e){return function(t,n){if(t&&"SAVE_REUSABLE_BLOCK_SUCCESS"===n.type){var r=n.id,o=n.updatedId;if(r===o)return t;(t=B({},t)).attributes=Object(d.mapValues)(t.attributes,(function(e,n){return"core/block"===t.byClientId[n].name&&e.ref===r?B(B({},e),{},{ref:o}):e}))}return e(t,n)}}),(function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,r=e(t,n);if(r===t)return t;r.cache=t.cache?t.cache:{};var o=function(e){return e.reduce((function(e,n){var r=n;do{e.push(r),r=t.parents[r]}while(r&&!t.controlledInnerBlocks[r]);return e}),[])};switch(n.type){case"RESET_BLOCKS":r.cache=Object(d.mapValues)(P(n.blocks),(function(){return{}}));break;case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":var c=Object(d.keys)(P(n.blocks));n.rootClientId&&!t.controlledInnerBlocks[n.rootClientId]&&c.push(n.rootClientId),r.cache=B(B({},r.cache),L(o(c)));break;case"UPDATE_BLOCK":r.cache=B(B({},r.cache),L(o([n.clientId])));break;case"UPDATE_BLOCK_ATTRIBUTES":r.cache=B(B({},r.cache),L(o(n.clientIds)));break;case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":var i=L(o(n.replacedClientIds));r.cache=B(B(B({},Object(d.omit)(r.cache,n.replacedClientIds)),Object(d.omit)(i,n.replacedClientIds)),L(Object(d.keys)(P(n.blocks))));break;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":r.cache=B(B({},Object(d.omit)(r.cache,n.removedClientIds)),L(Object(d.difference)(o(n.clientIds),n.clientIds)));break;case"MOVE_BLOCKS_TO_POSITION":var a=Object(k.a)(n.clientIds);n.fromRootClientId&&a.push(n.fromRootClientId),n.toRootClientId&&a.push(n.toRootClientId),r.cache=B(B({},r.cache),L(o(a)));break;case"MOVE_BLOCKS_UP":case"MOVE_BLOCKS_DOWN":var l=[];n.rootClientId&&l.push(n.rootClientId),r.cache=B(B({},r.cache),L(o(l)));break;case"SAVE_REUSABLE_BLOCK_SUCCESS":var s=Object(d.keys)(Object(d.omitBy)(r.attributes,(function(e,t){return"core/block"!==r.byClientId[t].name||e.ref!==n.updatedId})));r.cache=B(B({},r.cache),L(o(s)))}return r}}),(function(e){return function(t,n){var r=function(e){for(var r=e,o=0;o<r.length;o++){var c;!t.order[r[o]]||n.keepControlledInnerBlocks&&n.keepControlledInnerBlocks[r[o]]||(r===e&&(r=Object(k.a)(r)),(c=r).push.apply(c,Object(k.a)(t.order[r[o]])))}return r};if(t)switch(n.type){case"REMOVE_BLOCKS":n=B(B({},n),{},{type:"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN",removedClientIds:r(n.clientIds)});break;case"REPLACE_BLOCKS":n=B(B({},n),{},{type:"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN",replacedClientIds:r(n.clientIds)})}return e(t,n)}}),(function(e){return function(t,n){if("REPLACE_INNER_BLOCKS"!==n.type)return e(t,n);var r={};if(Object.keys(t.controlledInnerBlocks).length)for(var o=Object(k.a)(n.blocks);o.length;){var c=o.shift(),i=c.innerBlocks,a=Object(j.a)(c,["innerBlocks"]);o.push.apply(o,Object(k.a)(i)),t.controlledInnerBlocks[a.clientId]&&(r[a.clientId]=!0)}var l=t;t.order[n.rootClientId]&&(l=e(l,{type:"REMOVE_BLOCKS",keepControlledInnerBlocks:r,clientIds:t.order[n.rootClientId]}));var s=l;return n.blocks.length&&((s=e(s,B(B({},n),{},{type:"INSERT_BLOCKS",index:0}))).order=B(B({},s.order),Object(d.reduce)(r,(function(e,n,r){return t.order[r]&&(e[r]=t.order[r]),e}),{}))),s}}),(function(e){return function(t,n){if(t&&"RESET_BLOCKS"===n.type){var r=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object(d.reduce)(t[n],(function(n,o){return r[o]?n:[].concat(Object(k.a)(n),[o],Object(k.a)(e(t,o)))}),[])}(t.order,"",t.controlledInnerBlocks),o=Object.keys(Object(d.pickBy)(t.controlledInnerBlocks));return B(B({},t),{},{byClientId:B(B({},Object(d.omit)(t.byClientId,r)),T(n.blocks)),attributes:B(B({},Object(d.omit)(t.attributes,r)),N(n.blocks)),order:B(B({},Object(d.omit)(t.order,r)),Object(d.omit)(I(n.blocks),o)),parents:B(B({},Object(d.omit)(t.parents,r)),x(n.blocks)),cache:B(B({},Object(d.omit)(t.cache,r)),Object(d.omit)(Object(d.mapValues)(P(n.blocks),(function(){return{}})),o))})}return e(t,n)}}),(function(e){var t,n=!1;return function(r,o){var c=e(r,o),i="MARK_LAST_CHANGE_AS_PERSISTENT"===o.type||n;if(r===c&&!i){var a;n="MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"===o.type;var l=null===(a=null==r?void 0:r.isPersistentChange)||void 0===a||a;return r.isPersistentChange===l?r:B(B({},c),{},{isPersistentChange:l})}return c=B(B({},c),{},{isPersistentChange:i?!n:!A(o,t)}),t=o,n="MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"===o.type,c}}),(function(e){var t=new Set(["RECEIVE_BLOCKS"]);return function(n,r){var o=e(n,r);return o!==n&&(o.isIgnoredChange=t.has(r.type)),o}}))({byClientId:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RESET_BLOCKS":return T(t.blocks);case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":return B(B({},e),T(t.blocks));case"UPDATE_BLOCK":if(!e[t.clientId])return e;var n=Object(d.omit)(t.updates,"attributes");return Object(d.isEmpty)(n)?e:B(B({},e),{},Object(a.a)({},t.clientId,B(B({},e[t.clientId]),n)));case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return t.blocks?B(B({},Object(d.omit)(e,t.replacedClientIds)),T(t.blocks)):e;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(d.omit)(e,t.removedClientIds)}return e},attributes:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RESET_BLOCKS":return N(t.blocks);case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":return B(B({},e),N(t.blocks));case"UPDATE_BLOCK":return e[t.clientId]&&t.updates.attributes?B(B({},e),{},Object(a.a)({},t.clientId,B(B({},e[t.clientId]),t.updates.attributes))):e;case"UPDATE_BLOCK_ATTRIBUTES":if(t.clientIds.every((function(t){return!e[t]})))return e;var n=t.clientIds.reduce((function(n,r){return B(B({},n),{},Object(a.a)({},r,Object(d.reduce)(t.uniqueByBlock?t.attributes[r]:t.attributes,(function(t,n,o){return n!==t[o]&&((t=D(e[r],t))[o]=n),t}),e[r])))}),{});return t.clientIds.every((function(t){return n[t]===e[t]}))?e:B(B({},e),n);case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return t.blocks?B(B({},Object(d.omit)(e,t.replacedClientIds)),N(t.blocks)):e;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(d.omit)(e,t.removedClientIds)}return e},order:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RESET_BLOCKS":return I(t.blocks);case"RECEIVE_BLOCKS":return B(B({},e),Object(d.omit)(I(t.blocks),""));case"INSERT_BLOCKS":var n=t.rootClientId,r=void 0===n?"":n,o=e[r]||[],c=I(t.blocks,r),i=t.index,l=void 0===i?o.length:i;return B(B(B({},e),c),{},Object(a.a)({},r,w(o,c[r],l)));case"MOVE_BLOCKS_TO_POSITION":var s,u=t.fromRootClientId,b=void 0===u?"":u,f=t.toRootClientId,p=void 0===f?"":f,m=t.clientIds,v=t.index,O=void 0===v?e[p].length:v;if(b===p){var g=e[p],h=g.indexOf(m[0]);return B(B({},e),{},Object(a.a)({},p,C(e[p],h,O,m.length)))}return B(B({},e),{},(s={},Object(a.a)(s,b,d.without.apply(void 0,[e[b]].concat(Object(k.a)(m)))),Object(a.a)(s,p,w(e[p],m,O)),s));case"MOVE_BLOCKS_UP":var j=t.clientIds,y=t.rootClientId,_=void 0===y?"":y,E=Object(d.first)(j),S=e[_];if(!S.length||E===Object(d.first)(S))return e;var x=S.indexOf(E);return B(B({},e),{},Object(a.a)({},_,C(S,x,x-1,j.length)));case"MOVE_BLOCKS_DOWN":var P=t.clientIds,T=t.rootClientId,N=void 0===T?"":T,D=Object(d.first)(P),A=Object(d.last)(P),L=e[N];if(!L.length||A===Object(d.last)(L))return e;var R=L.indexOf(D);return B(B({},e),{},Object(a.a)({},N,C(L,R,R+1,P.length)));case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":var M=t.clientIds;if(!t.blocks)return e;var F=I(t.blocks);return Object(d.flow)([function(e){return Object(d.omit)(e,t.replacedClientIds)},function(e){return B(B({},e),Object(d.omit)(F,""))},function(e){return Object(d.mapValues)(e,(function(e){return Object(d.reduce)(e,(function(e,t){return t===M[0]?[].concat(Object(k.a)(e),Object(k.a)(F[""])):(-1===M.indexOf(t)&&e.push(t),e)}),[])}))}])(e);case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(d.flow)([function(e){return Object(d.omit)(e,t.removedClientIds)},function(e){return Object(d.mapValues)(e,(function(e){return d.without.apply(void 0,[e].concat(Object(k.a)(t.removedClientIds)))}))}])(e)}return e},parents:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RESET_BLOCKS":return x(t.blocks);case"RECEIVE_BLOCKS":return B(B({},e),x(t.blocks));case"INSERT_BLOCKS":return B(B({},e),x(t.blocks,t.rootClientId||""));case"MOVE_BLOCKS_TO_POSITION":return B(B({},e),t.clientIds.reduce((function(e,n){return e[n]=t.toRootClientId||"",e}),{}));case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return B(B({},Object(d.omit)(e,t.replacedClientIds)),x(t.blocks,e[t.clientIds[0]]));case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(d.omit)(e,t.removedClientIds)}return e},controlledInnerBlocks:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.clientId,o=t.hasControlledInnerBlocks;return"SET_HAS_CONTROLLED_INNER_BLOCKS"===n?B(B({},e),{},Object(a.a)({},r,o)):e}});function M(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"CLEAR_SELECTED_BLOCK":return e.clientId?{}:e;case"SELECT_BLOCK":return t.clientId===e.clientId?e:{clientId:t.clientId};case"REPLACE_INNER_BLOCKS":case"INSERT_BLOCKS":return t.updateSelection&&t.blocks.length?{clientId:t.blocks[0].clientId}:e;case"REMOVE_BLOCKS":return t.clientIds&&t.clientIds.length&&-1!==t.clientIds.indexOf(e.clientId)?{}:e;case"REPLACE_BLOCKS":if(-1===t.clientIds.indexOf(e.clientId))return e;var n=t.indexToSelect||t.blocks.length-1,r=t.blocks[n];return r?r.clientId===e.clientId?e:{clientId:r.clientId}:{}}return e}function F(e,t,n){switch(t.type){case"CLEAR_SELECTED_BLOCK":case"SELECT_BLOCK":case"SELECTION_CHANGE":case"REPLACE_INNER_BLOCKS":case"INSERT_BLOCKS":case"REMOVE_BLOCKS":case"REPLACE_BLOCKS":return n}return e}var V=Object(v.combineReducers)({blocks:R,isTyping:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"START_TYPING":return!0;case"STOP_TYPING":return!1}return e},draggedBlocks:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"START_DRAGGING_BLOCKS":return t.clientIds;case"STOP_DRAGGING_BLOCKS":return[]}return e},isCaretWithinFormattedText:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ENTER_FORMATTED_TEXT":return!0;case"EXIT_FORMATTED_TEXT":return!1}return e},selection:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;switch(r.type){case"SELECTION_CHANGE":return{selectionStart:{clientId:r.clientId,attributeKey:r.attributeKey,offset:r.startOffset},selectionEnd:{clientId:r.clientId,attributeKey:r.attributeKey,offset:r.endOffset}};case"RESET_SELECTION":var o=r.selectionStart,c=r.selectionEnd;return{selectionStart:o,selectionEnd:c};case"MULTI_SELECT":var i=r.start,a=r.end;return{selectionStart:{clientId:i},selectionEnd:{clientId:a}};case"RESET_BLOCKS":var l=null==n||null===(e=n.selectionStart)||void 0===e?void 0:e.clientId,s=null==n||null===(t=n.selectionEnd)||void 0===t?void 0:t.clientId;if(!l&&!s)return n;if(!r.blocks.some((function(e){return e.clientId===l})))return{selectionStart:{},selectionEnd:{}};if(!r.blocks.some((function(e){return e.clientId===s})))return B(B({},n),{},{selectionEnd:n.selectionStart})}return{selectionStart:M(n.selectionStart,r),selectionEnd:M(n.selectionEnd,r)}},isMultiSelecting:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"START_MULTI_SELECT":return!0;case"STOP_MULTI_SELECT":return!1}return e},isSelectionEnabled:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"TOGGLE_SELECTION":return t.isSelectionEnabled}return e},initialPosition:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;return"REPLACE_BLOCKS"===t.type&&void 0!==t.initialPosition||["SELECT_BLOCK","RESET_SELECTION","INSERT_BLOCKS","REPLACE_INNER_BLOCKS"].includes(t.type)?t.initialPosition:e},blocksMode:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if("TOGGLE_BLOCK_MODE"===t.type){var n=t.clientId;return B(B({},e),{},Object(a.a)({},n,e[n]&&"html"===e[n]?"visual":"html"))}return e},blockListSettings:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"REPLACE_BLOCKS":case"REMOVE_BLOCKS":return Object(d.omit)(e,t.clientIds);case"UPDATE_BLOCK_LIST_SETTINGS":var n=t.clientId;return t.settings?Object(d.isEqual)(e[n],t.settings)?e:B(B({},e),{},Object(a.a)({},n,t.settings)):e.hasOwnProperty(n)?Object(d.omit)(e,n):e}return e},insertionPoint:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_INSERTION_POINT":case"SHOW_INSERTION_POINT":var n=t.rootClientId,r=t.index;return{rootClientId:n,index:r}}return F(e,t,null)},insertionPointVisibility:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SHOW_INSERTION_POINT":return!0;case"HIDE_INSERTION_POINT":return!1}return F(e,t,!1)},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},settings:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:E,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"UPDATE_SETTINGS":return B(B({},e),t.settings)}return e},preferences:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:_,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"INSERT_BLOCKS":case"REPLACE_BLOCKS":return t.blocks.reduce((function(e,n){var r=n.attributes,o=n.name,c=Object(p.getBlockVariations)(o),i=null==c?void 0:c.find((function(e){var t;return null===(t=e.isActive)||void 0===t?void 0:t.call(e,r,e.attributes)})),l=null!=i&&i.name?"".concat(o,"/").concat(i.name):o,s={name:l};return"core/block"===o&&(s.ref=r.ref,l+="/"+r.ref),B(B({},e),{},{insertUsage:B(B({},e.insertUsage),{},Object(a.a)({},l,{time:t.time,count:e.insertUsage[l]?e.insertUsage[l].count+1:1,insert:s}))})}),e)}return e},lastBlockAttributesChange:function(e,t){switch(t.type){case"UPDATE_BLOCK":if(!t.updates.attributes)break;return Object(a.a)({},t.clientId,t.updates.attributes);case"UPDATE_BLOCK_ATTRIBUTES":return t.clientIds.reduce((function(e,n){return B(B({},e),{},Object(a.a)({},n,t.uniqueByBlock?t.attributes[n]:t.attributes))}),{})}return null},isNavigationMode:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"INSERT_BLOCKS"!==t.type&&("SET_NAVIGATION_MODE"===t.type?t.isNavigationMode:e)},hasBlockMovingClientId:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;return"SET_BLOCK_MOVING_MODE"===t.type?t.hasBlockMovingClientId:"SET_NAVIGATION_MODE"===t.type?null:e},automaticChangeStatus:function(e,t){switch(t.type){case"MARK_AUTOMATIC_CHANGE":return"pending";case"MARK_AUTOMATIC_CHANGE_FINAL":return"pending"===e?"final":void 0;case"SELECTION_CHANGE":return"final"!==e?e:void 0;case"START_TYPING":case"STOP_TYPING":return e}},highlightedBlock:function(e,t){switch(t.type){case"TOGGLE_BLOCK_HIGHLIGHT":var n=t.clientId;return t.isHighlighted?n:e===n?null:e;case"SELECT_BLOCK":if(t.clientId!==e)return null}return e}}),H=n(62),z=n(50);function G(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return U(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?U(e,void 0):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,i=!0,a=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return i=e.done,e},e:function(e){a=!0,c=e},f:function(){try{i||null==n.return||n.return()}finally{if(a)throw c}}}}function U(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function W(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function K(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?W(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):W(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var q=Object(l.createElement)(m.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(m.Rect,{x:"0",fill:"none",width:"24",height:"24"}),Object(l.createElement)(m.G,null,Object(l.createElement)(m.Path,{d:"M19 3H5c-1.105 0-2 .895-2 2v14c0 1.105.895 2 2 2h14c1.105 0 2-.895 2-2V5c0-1.105-.895-2-2-2zM6 6h5v5H6V6zm4.5 13C9.12 19 8 17.88 8 16.5S9.12 14 10.5 14s2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5zm3-6l3-5 3 5h-6z"}))),$=[];function Y(e,t){var n=e.blocks.byClientId[t];if("web"!==l.Platform.OS&&"core/social-link"===(null==n?void 0:n.name)){var r=e.blocks.attributes[t].service;return r?"".concat("core/social-link","-").concat(r):"core/social-link"}return n?n.name:null}function X(e,t){var n=e.blocks.byClientId[t];return!!n&&n.isValid}function Q(e,t){return e.blocks.byClientId[t]?e.blocks.attributes[t]:null}var Z=Object(z.a)((function(e,t){var n=e.blocks.byClientId[t];return n?K(K({},n),{},{attributes:Q(e,t),innerBlocks:Pt(e,t)?$:ee(e,t)}):null}),(function(e,t){return[e.blocks.cache[t]]})),J=Object(z.a)((function(e,t){var n=e.blocks.byClientId[t];return n?K(K({},n),{},{attributes:Q(e,t)}):null}),(function(e,t){return[e.blocks.byClientId[t],e.blocks.attributes[t]]})),ee=Object(z.a)((function(e,t){return Object(d.map)(Re(e,t),(function(t){return Z(e,t)}))}),(function(e,t){return Object(d.map)(e.blocks.order[t||""],(function(t){return e.blocks.cache[t]}))})),te=Object(z.a)((function(e,t){var n=e.blocks.byClientId[t];return n?K(K({},n),{},{attributes:Q(e,t),innerBlocks:ne(e,t)}):null}),(function(e){return[e.blocks.byClientId,e.blocks.order,e.blocks.attributes]})),ne=Object(z.a)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Object(d.map)(Re(e,t),(function(t){return te(e,t)}))}),(function(e){return[e.blocks.byClientId,e.blocks.order,e.blocks.attributes]})),re=Object(z.a)((function(e,t){return{clientId:t,innerBlocks:oe(e,t)}}),(function(e){return[e.blocks.order]})),oe=Object(z.a)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Object(d.map)(Re(e,t),(function(t){return re(e,t)}))}),(function(e){return[e.blocks.order]})),ce=function e(t,n){return Object(d.flatMap)(n,(function(n){var r=Re(t,n);return[].concat(Object(k.a)(r),Object(k.a)(e(t,r)))}))},ie=Object(z.a)((function(e){var t=Re(e);return[].concat(Object(k.a)(t),Object(k.a)(ce(e,t)))}),(function(e){return[e.blocks.order]})),ae=Object(z.a)((function(e,t){var n=ie(e);return t?Object(d.reduce)(n,(function(n,r){return e.blocks.byClientId[r].name===t?n+1:n}),0):n.length}),(function(e){return[e.blocks.order,e.blocks.byClientId]})),le=Object(z.a)((function(e,t){return Object(d.map)(Object(d.castArray)(t),(function(t){return Z(e,t)}))}),(function(e){return[e.blocks.byClientId,e.blocks.order,e.blocks.attributes]}));function se(e,t){return Re(e,t).length}function ue(e){return e.selection.selectionStart}function de(e){return e.selection.selectionEnd}function be(e){return e.selection.selectionStart.clientId}function fe(e){return e.selection.selectionEnd.clientId}function pe(e){return Be(e).length||(e.selection.selectionStart.clientId?1:0)}function me(e){var t=e.selection,n=t.selectionStart,r=t.selectionEnd;return!!n.clientId&&n.clientId===r.clientId}function ve(e){var t=e.selection,n=t.selectionStart,r=t.selectionEnd,o=n.clientId;return o&&o===r.clientId?o:null}function Oe(e){var t=ve(e);return t?Z(e,t):null}function ge(e,t){return void 0!==e.blocks.parents[t]?e.blocks.parents[t]:null}var he=Object(z.a)((function(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=[],o=t;e.blocks.parents[o];)o=e.blocks.parents[o],r.push(o);return n?r:r.reverse()}),(function(e){return[e.blocks.parents]})),je=Object(z.a)((function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=he(e,t,r);return Object(d.map)(Object(d.filter)(Object(d.map)(o,(function(t){return{id:t,name:Y(e,t)}})),(function(e){var t=e.name;return Array.isArray(n)?n.includes(t):t===n})),(function(e){return e.id}))}),(function(e){return[e.blocks.parents]}));function ke(e,t){var n,r=t;do{n=r,r=e.blocks.parents[r]}while(r);return n}function ye(e,t){for(var n,r=ve(e),o=[].concat(Object(k.a)(he(e,t)),[t]),c=[].concat(Object(k.a)(he(e,r)),[r]),i=Math.min(o.length,c.length),a=0;a<i&&o[a]===c[a];a++)n=o[a];return n}function _e(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;if(void 0===t&&(t=ve(e)),void 0===t&&(t=n<0?xe(e):Pe(e)),!t)return null;var r=ge(e,t);if(null===r)return null;var o=e.blocks.order,c=o[r],i=c.indexOf(t),a=i+1*n;return a<0||a===c.length?null:c[a]}function Ee(e,t){return _e(e,t,-1)}function we(e,t){return _e(e,t,1)}function Ce(e){return e.initialPosition}var Se=Object(z.a)((function(e){var t=e.selection,n=t.selectionStart,r=t.selectionEnd;if(void 0===n.clientId||void 0===r.clientId)return $;if(n.clientId===r.clientId)return[n.clientId];var o=ge(e,n.clientId);if(null===o)return $;var c=Re(e,o),i=c.indexOf(n.clientId),a=c.indexOf(r.clientId);return i>a?c.slice(a,i+1):c.slice(i,a+1)}),(function(e){return[e.blocks.order,e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId]}));function Be(e){var t=e.selection,n=t.selectionStart,r=t.selectionEnd;return n.clientId===r.clientId?$:Se(e)}var Ie=Object(z.a)((function(e){var t=Be(e);return t.length?t.map((function(t){return Z(e,t)})):$}),(function(e){return[].concat(Object(k.a)(Se.getDependants(e)),[e.blocks.byClientId,e.blocks.order,e.blocks.attributes])}));function xe(e){return Object(d.first)(Be(e))||null}function Pe(e){return Object(d.last)(Be(e))||null}function Te(e,t){return xe(e)===t}function Ne(e,t){return-1!==Be(e).indexOf(t)}var De=Object(z.a)((function(e,t){for(var n=t,r=!1;n&&!r;)r=Ne(e,n=ge(e,n));return r}),(function(e){return[e.blocks.order,e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId]}));function Ae(e){var t=e.selection,n=t.selectionStart,r=t.selectionEnd;return n.clientId===r.clientId?null:n.clientId||null}function Le(e){var t=e.selection,n=t.selectionStart,r=t.selectionEnd;return n.clientId===r.clientId?null:r.clientId||null}function Re(e,t){return e.blocks.order[t||""]||$}function Me(e,t,n){return Re(e,n).indexOf(t)}function Fe(e,t){var n=e.selection,r=n.selectionStart,o=n.selectionEnd;return r.clientId===o.clientId&&r.clientId===t}function Ve(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return Object(d.some)(Re(e,t),(function(t){return Fe(e,t)||Ne(e,t)||n&&Ve(e,t,n)}))}function He(e,t){if(!t)return!1;var n=Be(e),r=n.indexOf(t);return r>-1&&r<n.length-1}function ze(e){var t=e.selection,n=t.selectionStart,r=t.selectionEnd;return n.clientId!==r.clientId}function Ge(e){return e.isMultiSelecting}function Ue(e){return e.isSelectionEnabled}function We(e,t){return e.blocksMode[t]||"visual"}function Ke(e){return e.isTyping}function qe(e){return!!e.draggedBlocks.length}function $e(e){return e.draggedBlocks}function Ye(e,t){return e.draggedBlocks.includes(t)}function Xe(e,t){if(!qe(e))return!1;var n=he(e,t);return Object(d.some)(n,(function(t){return Ye(e,t)}))}function Qe(e){return e.isCaretWithinFormattedText}function Ze(e){var t,n,r=e.insertionPoint,o=e.selection.selectionEnd;if(null!==r)return r;var c=o.clientId;return c?(t=ge(e,c)||void 0,n=Me(e,o.clientId,t)+1):n=Re(e).length,{rootClientId:t,index:n}}function Je(e){return e.insertionPointVisibility}function et(e){return e.template.isValid}function tt(e){return e.settings.template}function nt(e,t){if(!t)return e.settings.templateLock;var n=gt(e,t);return n?n.templateLock:null}var rt=function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return Object(d.isBoolean)(e)?e:Object(d.isArray)(e)?!(!e.includes("core/post-content")||null!==t)||e.includes(t):n};if(t&&"object"===Object(H.a)(t)?t=(n=t).name:n=Object(p.getBlockType)(t),!n)return!1;var c=ht(e),i=c.allowedBlockTypes,a=o(i,t,!0);if(!a)return!1;var l=!!nt(e,r);if(l)return!1;var s=gt(e,r);if(r&&void 0===s)return!1;var u=null==s?void 0:s.allowedBlocks,b=o(u,t),f=n.parent,m=Y(e,r),v=o(f,m);return null!==b&&null!==v?b||v:null!==b?b:null===v||v},ot=Object(z.a)(rt,(function(e,t,n){return[e.blockListSettings[n],e.blocks.byClientId[n],e.settings.allowedBlockTypes,e.settings.templateLock]}));function ct(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return t.every((function(t){return ot(e,Y(e,t),n)}))}function it(e,t){var n,r;return null!==(n=null===(r=e.preferences.insertUsage)||void 0===r?void 0:r[t])&&void 0!==n?n:null}var at=function(e,t,n){return!!Object(p.hasBlockSupport)(t,"inserter",!0)&&rt(e,t.name,n)},lt=function(e,t){return function(n){var r="".concat(t.id,"/").concat(n.name),o=it(e,r)||{},c=o.time,i=o.count,a=void 0===i?0:i;return K(K({},t),{},{id:r,icon:n.icon||t.icon,title:n.title||t.title,description:n.description||t.description,category:n.category||t.category,example:n.hasOwnProperty("example")?n.example:t.example,initialAttributes:K(K({},t.initialAttributes),n.attributes),innerBlocks:n.innerBlocks,keywords:n.keywords||t.keywords,frecency:st(c,a)})}},st=function(e,t){if(!e)return t;var n=Date.now()-e;switch(!0){case n<36e5:return 4*t;case n<864e5:return 2*t;case n<6048e5:return t/2;default:return t/4}},ut=function(e,t){var n=t.buildScope,r=void 0===n?"inserter":n;return function(t){var n=t.name,o=!1;Object(p.hasBlockSupport)(t.name,"multiple",!0)||(o=Object(d.some)(le(e,ie(e)),{name:t.name}));var c=it(e,n)||{},i=c.time,a=c.count,l=void 0===a?0:a,s={id:n,name:t.name,title:t.title,icon:t.icon,isDisabled:o,frecency:st(i,l)};if("transform"===r)return s;var u=t.variations.filter((function(e){var t=e.scope;return!t||t.includes("inserter")}));return K(K({},s),{},{initialAttributes:{},description:t.description,category:t.category,keywords:t.keywords,variations:u,example:t.example,utility:1})}},dt=Object(z.a)((function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=ut(e,{buildScope:"inserter"}),o=function(t){var n,r="core/block/".concat(t.id),o=yt(e,t.id);1===o.length&&(n=Object(p.getBlockType)(o[0].name));var c=it(e,r)||{},i=c.time,a=c.count,l=st(i,void 0===a?0:a);return{id:r,name:"core/block",initialAttributes:{ref:t.id},title:t.title.raw,icon:n?n.icon:q,category:"reusable",keywords:[],isDisabled:!1,utility:1,frecency:l}},c=Object(p.getBlockTypes)().filter((function(t){return at(e,t,n)})).map(r),i=rt(e,"core/block",n)?Ct(e).map(o):[],a=c.filter((function(e){var t=e.variations;return!(void 0===t?[]:t).some((function(e){return e.isDefault}))})),l=[],s=G(c);try{for(s.s();!(t=s.n()).done;){var u=t.value,d=u.variations,b=void 0===d?[]:d;if(b.length){var f=lt(e,u);l.push.apply(l,Object(k.a)(b.map(f)))}}}catch(e){s.e(e)}finally{s.f()}var m=function(e,t){var n=e.name.startsWith("core/"),r=t.name.startsWith("core/");return n&&r?0:n&&!r?-1:1},v=[].concat(Object(k.a)(a),l).sort(m);return[].concat(Object(k.a)(v),Object(k.a)(i))}),(function(e,t){return[e.blockListSettings[t],e.blocks.byClientId,e.blocks.order,e.preferences.insertUsage,e.settings.allowedBlockTypes,e.settings.templateLock,Ct(e),Object(p.getBlockTypes)()]})),bt=Object(z.a)((function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=ut(e,{buildScope:"transform"}),o=Object(p.getBlockTypes)().filter((function(t){return at(e,t,n)})).map(r),c=Object(d.mapKeys)(o,(function(e){return e.name})),i=Object(p.getPossibleBlockTransformations)(t).reduce((function(e,t){return c[null==t?void 0:t.name]&&e.push(c[t.name]),e}),[]),a=Object(d.orderBy)(i,(function(e){return c[e.name].frecency}),"desc");return a}),(function(e,t){return[e.blockListSettings[t],e.blocks.byClientId,e.preferences.insertUsage,e.settings.allowedBlockTypes,e.settings.templateLock,Object(p.getBlockTypes)()]})),ft=Object(z.a)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=Object(d.some)(Object(p.getBlockTypes)(),(function(n){return at(e,n,t)}));if(n)return!0;var r=rt(e,"core/block",t)&&Ct(e).length>0;return r}),(function(e,t){return[e.blockListSettings[t],e.blocks.byClientId,e.settings.allowedBlockTypes,e.settings.templateLock,Ct(e),Object(p.getBlockTypes)()]})),pt=Object(z.a)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(t)return Object(d.filter)(Object(p.getBlockTypes)(),(function(n){return at(e,n,t)}))}),(function(e,t){return[e.blockListSettings[t],e.blocks.byClientId,e.settings.allowedBlockTypes,e.settings.templateLock,Object(p.getBlockTypes)()]})),mt=Object(z.a)((function(e,t){var n=e.settings.__experimentalBlockPatterns.find((function(e){return e.name===t}));return n?K(K({},n),{},{blocks:Object(p.parse)(n.content)}):null}),(function(e){return[e.settings.__experimentalBlockPatterns]})),vt=Object(z.a)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=e.settings.__experimentalBlockPatterns,r=n.map((function(t){var n=t.name;return mt(e,n)})),o=Object(d.filter)(r,(function(n){return n.blocks.every((function(n){var r=n.name;return ot(e,r,t)}))}));return o}),(function(e,t){return[e.settings.__experimentalBlockPatterns,e.settings.allowedBlockTypes,e.settings.templateLock,e.blockListSettings[t],e.blocks.byClientId[t]]})),Ot=Object(z.a)((function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!t)return $;var r=vt(e,n),o=Array.isArray(t)?t:[t];return r.filter((function(e){var t,n;return null==e||null===(t=e.blockTypes)||void 0===t||null===(n=t.some)||void 0===n?void 0:n.call(t,(function(e){return o.includes(e)}))}))}),(function(e,t){return Object(k.a)(vt.getDependants(e,t))}));function gt(e,t){return e.blockListSettings[t]}function ht(e){return e.settings}function jt(e){return e.blocks.isPersistentChange}var kt=Object(z.a)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.reduce((function(t,n){return e.blockListSettings[n]?K(K({},t),{},Object(a.a)({},n,e.blockListSettings[n])):t}),{})}),(function(e){return[e.blockListSettings]})),yt=Object(z.a)((function(e,t){var n=Object(d.find)(Ct(e),(function(e){return e.id===t}));return n?Object(p.parse)("string"==typeof n.content.raw?n.content.raw:n.content):null}),(function(e){return[Ct(e)]})),_t=Object(z.a)((function(e,t){var n,r=Object(d.find)(Ct(e),(function(e){return e.id===t}));return r?null===(n=r.title)||void 0===n?void 0:n.raw:null}),(function(e){return[Ct(e)]}));function Et(e){return e.blocks.isIgnoredChange}function wt(e){return e.lastBlockAttributesChange}function Ct(e){var t,n;return null!==(t=null==e||null===(n=e.settings)||void 0===n?void 0:n.__experimentalReusableBlocks)&&void 0!==t?t:$}function St(e){return e.isNavigationMode}function Bt(e){return e.hasBlockMovingClientId}function It(e){return!!e.automaticChangeStatus}function xt(e,t){return e.highlightedBlock===t}function Pt(e,t){return!!e.blocks.controlledInnerBlocks[t]}var Tt=Object(z.a)((function(e,t){if(!t.length)return null;var n=ve(e);if(t.includes(Y(e,n)))return n;var r=Be(e),o=je(e,n||r[0],t);return o?Object(d.last)(o):null}),(function(e,t){return[e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId,t]})),Nt=n(16),Dt=n.n(Nt),At=n(55),Lt=n(42),Rt=n.n(Lt),Mt={SLEEP:function(e){var t=e.duration;return new Promise((function(e){setTimeout(e,t)}))},MARK_AUTOMATIC_CHANGE_FINAL_CONTROL:Object(v.createRegistryControl)((function(e){return function(){var t=window.requestIdleCallback;(void 0===t?function(e){return setTimeout(e,100)}:t)((function(){return e.dispatch(hr).__unstableMarkAutomaticChangeFinal()}))}}))},Ft="core/block-editor";function Vt(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Ht(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ht(e,void 0):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,i=!0,a=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return i=e.done,e},e:function(e){a=!0,c=e},f:function(){try{i||null==n.return||n.return()}finally{if(a)throw c}}}}function Ht(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function zt(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 Gt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zt(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ut=Dt.a.mark(dn),Wt=Dt.a.mark(bn),Kt=Dt.a.mark(fn),qt=Dt.a.mark(hn),$t=Dt.a.mark(jn),Yt=Dt.a.mark(En),Xt=Dt.a.mark(Bn),Qt=Dt.a.mark(Nn),Zt=Dt.a.mark(Dn),Jt=Dt.a.mark(Ln),en=Dt.a.mark(Hn),tn=Dt.a.mark(zn),nn=Dt.a.mark(Gn),rn=Dt.a.mark(ir),on=Dt.a.mark(lr),cn=Dt.a.mark(sr),an=Dt.a.mark(ur),ln=Dt.a.mark(dr),sn=Dt.a.mark(br),un=Dt.a.mark(pr);function dn(){return Dt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,v.controls.select(Ft,"getBlockCount");case 2:if(0!==e.sent){e.next=7;break}return e.next=6,er();case 6:return e.abrupt("return",e.sent);case 7:case"end":return e.stop()}}),Ut)}function bn(e){return Dt.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,{type:"RESET_BLOCKS",blocks:e};case 2:return t.delegateYield(fn(e),"t0",3);case 3:return t.abrupt("return",t.t0);case 4:case"end":return t.stop()}}),Wt)}function fn(e){var t,n,r,o;return Dt.a.wrap((function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,v.controls.select(Ft,"getTemplate");case 2:return t=c.sent,c.next=5,v.controls.select(Ft,"getTemplateLock");case 5:return n=c.sent,r=!t||"all"!==n||Object(p.doBlocksMatchTemplate)(e,t),c.next=9,v.controls.select(Ft,"isValidTemplate");case 9:if(o=c.sent,r===o){c.next=14;break}return c.next=13,Vn(r);case 13:return c.abrupt("return",r);case 14:case"end":return c.stop()}}),Kt)}function pn(e,t,n){return{type:"RESET_SELECTION",selectionStart:e,selectionEnd:t,initialPosition:n}}function mn(e){return{type:"RECEIVE_BLOCKS",blocks:e}}function vn(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{type:"UPDATE_BLOCK_ATTRIBUTES",clientIds:Object(d.castArray)(e),attributes:t,uniqueByBlock:n}}function On(e,t){return{type:"UPDATE_BLOCK",clientId:e,updates:t}}function gn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{type:"SELECT_BLOCK",initialPosition:t,clientId:e}}function hn(e){var t;return Dt.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,v.controls.select(Ft,"getPreviousBlockClientId",e);case 2:if(!(t=n.sent)){n.next=7;break}return n.next=6,gn(t,-1);case 6:return n.abrupt("return",[t]);case 7:case"end":return n.stop()}}),qt)}function jn(e){var t;return Dt.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,v.controls.select(Ft,"getNextBlockClientId",e);case 2:if(!(t=n.sent)){n.next=7;break}return n.next=6,gn(t);case 6:return n.abrupt("return",[t]);case 7:case"end":return n.stop()}}),$t)}function kn(){return{type:"START_MULTI_SELECT"}}function yn(){return{type:"STOP_MULTI_SELECT"}}function En(e,t){var n;return Dt.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,{type:"MULTI_SELECT",start:e,end:t};case 2:return r.next=4,v.controls.select(Ft,"getSelectedBlockCount");case 4:n=r.sent,Object(At.speak)(Object(y.sprintf)(
2
  /* translators: %s: number of selected blocks */
3
- Object(y._n)("%s block selected.","%s blocks selected.",n),n),"assertive");case 6:case"end":return r.stop()}}),Yt)}function wn(){return{type:"CLEAR_SELECTED_BLOCK"}}function Cn(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return{type:"TOGGLE_SELECTION",isSelectionEnabled:e}}function Sn(e,t){var n,r,o=null!==(n=null==t||null===(r=t.__experimentalPreferredStyleVariations)||void 0===r?void 0:r.value)&&void 0!==n?n:{};return e.map((function(e){var t,n=e.name;if(!Object(p.hasBlockSupport)(n,"defaultStylePicker",!0))return e;if(!o[n])return e;var r=null===(t=e.attributes)||void 0===t?void 0:t.className;if(null!=r&&r.includes("is-style-"))return e;var c=e.attributes,i=void 0===c?{}:c,a=o[n];return Gt(Gt({},e),{},{attributes:Gt(Gt({},i),{},{className:"".concat(r||""," is-style-").concat(a).trim()})})}))}function Bn(e,t,n){var r,o,c,i,a,l=arguments;return Dt.a.wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return r=l.length>3&&void 0!==l[3]?l[3]:0,o=l.length>4?l[4]:void 0,e=Object(d.castArray)(e),s.t0=Sn,s.t1=Object(d.castArray)(t),s.next=7,v.controls.select(Ft,"getSettings");case 7:return s.t2=s.sent,t=(0,s.t0)(s.t1,s.t2),s.next=11,v.controls.select(Ft,"getBlockRootClientId",Object(d.first)(e));case 11:c=s.sent,i=0;case 13:if(!(i<t.length)){s.next=23;break}return a=t[i],s.next=17,v.controls.select(Ft,"canInsertBlockType",a.name,c);case 17:if(s.sent){s.next=20;break}return s.abrupt("return");case 20:i++,s.next=13;break;case 23:return s.next=25,{type:"REPLACE_BLOCKS",clientIds:e,blocks:t,time:Date.now(),indexToSelect:n,initialPosition:r,meta:o};case 25:return s.delegateYield(dn(),"t3",26);case 26:case"end":return s.stop()}}),Xt)}function In(e,t){return Bn(e,t)}function xn(e){return function(t,n){return{clientIds:Object(d.castArray)(t),type:e,rootClientId:n}}}var Pn=xn("MOVE_BLOCKS_DOWN"),Tn=xn("MOVE_BLOCKS_UP");function Nn(e){var t,n,r,o,c,i=arguments;return Dt.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t=i.length>1&&void 0!==i[1]?i[1]:"",n=i.length>2&&void 0!==i[2]?i[2]:"",r=i.length>3?i[3]:void 0,a.next=5,v.controls.select(Ft,"getTemplateLock",t);case 5:if("all"!==(o=a.sent)){a.next=8;break}return a.abrupt("return");case 8:if(c={type:"MOVE_BLOCKS_TO_POSITION",fromRootClientId:t,toRootClientId:n,clientIds:e,index:r},t!==n){a.next=13;break}return a.next=12,c;case 12:return a.abrupt("return");case 13:if("insert"!==o){a.next=15;break}return a.abrupt("return");case 15:return a.next=17,v.controls.select(Ft,"canInsertBlocks",e,n);case 17:if(!a.sent){a.next=21;break}return a.next=21,c;case 21:case"end":return a.stop()}}),Qt)}function Dn(e){var t,n,r,o=arguments;return Dt.a.wrap((function(c){for(;;)switch(c.prev=c.next){case 0:return t=o.length>1&&void 0!==o[1]?o[1]:"",n=o.length>2&&void 0!==o[2]?o[2]:"",r=o.length>3?o[3]:void 0,c.next=5,Nn([e],t,n,r);case 5:case"end":return c.stop()}}),Zt)}function An(e,t,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return Ln([e],t,n,r)}function Ln(e,t,n){var r,o,c,i,a,l,s,u=arguments;return Dt.a.wrap((function(b){for(;;)switch(b.prev=b.next){case 0:return r=!(u.length>3&&void 0!==u[3])||u[3],o=u.length>4&&void 0!==u[4]?u[4]:0,c=u.length>5?u[5]:void 0,Object(d.isObject)(o)&&(c=o,o=0,Rt()("meta argument in wp.data.dispatch('core/block-editor')",{since:"10.1",plugin:"Gutenberg",hint:"The meta argument is now the 6th argument of the function"})),b.t0=Sn,b.t1=Object(d.castArray)(e),b.next=8,v.controls.select(Ft,"getSettings");case 8:b.t2=b.sent,e=(0,b.t0)(b.t1,b.t2),i=[],a=Vt(e),b.prev=12,a.s();case 14:if((l=a.n()).done){b.next=22;break}return s=l.value,b.next=18,v.controls.select(Ft,"canInsertBlockType",s.name,n);case 18:b.sent&&i.push(s);case 20:b.next=14;break;case 22:b.next=27;break;case 24:b.prev=24,b.t3=b.catch(12),a.e(b.t3);case 27:return b.prev=27,a.f(),b.finish(27);case 30:if(!i.length){b.next=32;break}return b.abrupt("return",{type:"INSERT_BLOCKS",blocks:i,index:t,rootClientId:n,time:Date.now(),updateSelection:r,initialPosition:r?o:null,meta:c});case 32:case"end":return b.stop()}}),Jt,null,[[12,24,27,30]])}function Rn(e,t){return{type:"SET_INSERTION_POINT",rootClientId:e,index:t}}function Mn(e,t){return{type:"SHOW_INSERTION_POINT",rootClientId:e,index:t}}function Fn(){return{type:"HIDE_INSERTION_POINT"}}function Vn(e){return{type:"SET_TEMPLATE_VALIDITY",isValid:e}}function Hn(){var e,t,n;return Dt.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,{type:"SYNCHRONIZE_TEMPLATE"};case 2:return r.next=4,v.controls.select(Ft,"getBlocks");case 4:return e=r.sent,r.next=7,v.controls.select(Ft,"getTemplate");case 7:return t=r.sent,n=Object(p.synchronizeBlocksWithTemplate)(e,t),r.next=11,bn(n);case 11:return r.abrupt("return",r.sent);case 12:case"end":return r.stop()}}),en)}function zn(e,t){var n,r,o,i,a,l,s,u,b,f,m,O,g,h,j,y,_,E,w,C,S,B,I,x,P,T,N,D,A,L,R,M,F,V;return Dt.a.wrap((function(z){for(;;)switch(z.prev=z.next){case 0:return n=[e,t],z.next=3,{type:"MERGE_BLOCKS",blocks:n};case 3:return r=n[0],o=n[1],z.next=6,v.controls.select(Ft,"getBlock",r);case 6:if(i=z.sent,(a=Object(p.getBlockType)(i.name)).merge){z.next=12;break}return z.next=11,gn(i.clientId);case 11:return z.abrupt("return");case 12:return z.next=14,v.controls.select(Ft,"getBlock",o);case 14:return l=z.sent,s=Object(p.getBlockType)(l.name),z.next=18,v.controls.select(Ft,"getSelectionStart");case 18:if(u=z.sent,b=u.clientId,f=u.attributeKey,m=u.offset,O=(b===r?a:s).attributes[f],g=(b===r||b===o)&&void 0!==f&&void 0!==m&&!!O,O||("number"==typeof f?window.console.error("RichText needs an identifier prop that is the block attribute key of the attribute it controls. Its type is expected to be a string, but was ".concat(Object(H.a)(f))):window.console.error("The RichText identifier prop does not match any attributes defined by the block.")),h="†",j=Object(p.cloneBlock)(i),y=Object(p.cloneBlock)(l),g&&(E=(_=b===r?j:y).attributes[f],w=O.multiline,C=O.__unstableMultilineWrapperTags,S=O.__unstablePreserveWhiteSpace,B=Object(c.insert)(Object(c.create)({html:E,multilineTag:w,multilineWrapperTags:C,preserveWhiteSpace:S}),h,m,m),_.attributes[f]=Object(c.toHTMLString)({value:B,multilineTag:w,preserveWhiteSpace:S})),(I=i.name===l.name?[y]:Object(p.switchToBlockType)(y,i.name))&&I.length){z.next=33;break}return z.abrupt("return");case 33:if(x=a.merge(j.attributes,I[0].attributes),!g){z.next=45;break}return P=Object(d.findKey)(x,(function(e){return"string"==typeof e&&-1!==e.indexOf(h)})),T=x[P],N=a.attributes[P],D=N.multiline,A=N.__unstableMultilineWrapperTags,L=N.__unstablePreserveWhiteSpace,R=Object(c.create)({html:T,multilineTag:D,multilineWrapperTags:A,preserveWhiteSpace:L}),M=R.text.indexOf(h),F=Object(c.remove)(R,M,M+1),V=Object(c.toHTMLString)({value:F,multilineTag:D,preserveWhiteSpace:L}),x[P]=V,z.next=45,Jn(i.clientId,P,M,M);case 45:return z.delegateYield(Bn([i.clientId,l.clientId],[Gt(Gt({},i),{},{attributes:Gt(Gt({},i.attributes),x)})].concat(Object(k.a)(I.slice(1)))),"t0",46);case 46:case"end":return z.stop()}}),tn)}function Gn(e){var t,n,r,o,c=arguments;return Dt.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(t=!(c.length>1&&void 0!==c[1])||c[1],e&&e.length){i.next=3;break}return i.abrupt("return");case 3:return e=Object(d.castArray)(e),i.next=6,v.controls.select(Ft,"getBlockRootClientId",e[0]);case 6:return n=i.sent,i.next=9,v.controls.select(Ft,"getTemplateLock",n);case 9:if(!i.sent){i.next=12;break}return i.abrupt("return");case 12:if(!t){i.next=18;break}return i.next=15,hn(e[0]);case 15:r=i.sent,i.next=21;break;case 18:return i.next=20,v.controls.select(Ft,"getPreviousBlockClientId",e[0]);case 20:r=i.sent;case 21:return i.next=23,{type:"REMOVE_BLOCKS",clientIds:e};case 23:return i.delegateYield(dn(),"t0",24);case 24:return o=i.t0,i.abrupt("return",[r||o]);case 26:case"end":return i.stop()}}),nn)}function Un(e,t){return Gn([e],t)}function Wn(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return{type:"REPLACE_INNER_BLOCKS",rootClientId:e,blocks:t,updateSelection:n,initialPosition:n?r:null,time:Date.now()}}function Kn(e){return{type:"TOGGLE_BLOCK_MODE",clientId:e}}function qn(){return{type:"START_TYPING"}}function $n(){return{type:"STOP_TYPING"}}function Yn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return{type:"START_DRAGGING_BLOCKS",clientIds:e}}function Xn(){return{type:"STOP_DRAGGING_BLOCKS"}}function Qn(){return{type:"ENTER_FORMATTED_TEXT"}}function Zn(){return{type:"EXIT_FORMATTED_TEXT"}}function Jn(e,t,n,r){return{type:"SELECTION_CHANGE",clientId:e,attributeKey:t,startOffset:n,endOffset:r}}function er(e,t,n){var r=Object(p.getDefaultBlockName)();if(r)return An(Object(p.createBlock)(r,e),n,t)}function tr(e,t){return{type:"UPDATE_BLOCK_LIST_SETTINGS",clientId:e,settings:t}}function nr(e){return{type:"UPDATE_SETTINGS",settings:e}}function rr(e,t){return{type:"SAVE_REUSABLE_BLOCK_SUCCESS",id:e,updatedId:t}}function or(){return{type:"MARK_LAST_CHANGE_AS_PERSISTENT"}}function cr(){return{type:"MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"}}function ir(){return Dt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,{type:"MARK_AUTOMATIC_CHANGE"};case 2:return e.next=4,{type:"MARK_AUTOMATIC_CHANGE_FINAL_CONTROL"};case 4:case"end":return e.stop()}}),rn)}function ar(){return{type:"MARK_AUTOMATIC_CHANGE_FINAL"}}function lr(){var e,t=arguments;return Dt.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e=!(t.length>0&&void 0!==t[0])||t[0],n.next=3,{type:"SET_NAVIGATION_MODE",isNavigationMode:e};case 3:e?Object(At.speak)(Object(y.__)("You are currently in navigation mode. Navigate blocks using the Tab key and Arrow keys. Use Left and Right Arrow keys to move between nesting levels. To exit navigation mode and edit the selected block, press Enter.")):Object(At.speak)(Object(y.__)("You are currently in edit mode. To return to the navigation mode, press Escape."));case 4:case"end":return n.stop()}}),on)}function sr(){var e,t=arguments;return Dt.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e=t.length>0&&void 0!==t[0]?t[0]:null,n.next=3,{type:"SET_BLOCK_MOVING_MODE",hasBlockMovingClientId:e};case 3:e&&Object(At.speak)(Object(y.__)("Use the Tab key and Arrow keys to choose new block location. Use Left and Right Arrow keys to move between nesting levels. Once location is selected press Enter or Space to move the block."));case 4:case"end":return n.stop()}}),cn)}function ur(e){var t,n,r,o,c,i,a=arguments;return Dt.a.wrap((function(l){for(;;)switch(l.prev=l.next){case 0:if(t=!(a.length>1&&void 0!==a[1])||a[1],e||e.length){l.next=3;break}return l.abrupt("return");case 3:return l.next=5,v.controls.select(Ft,"getBlocksByClientId",e);case 5:return n=l.sent,l.next=8,v.controls.select(Ft,"getBlockRootClientId",e[0]);case 8:if(r=l.sent,!Object(d.some)(n,(function(e){return!e}))){l.next=11;break}return l.abrupt("return");case 11:if(o=n.map((function(e){return e.name})),!Object(d.some)(o,(function(e){return!Object(p.hasBlockSupport)(e,"multiple",!0)}))){l.next=14;break}return l.abrupt("return");case 14:return l.next=16,v.controls.select(Ft,"getBlockIndex",Object(d.last)(Object(d.castArray)(e)),r);case 16:return c=l.sent,i=n.map((function(e){return Object(p.__experimentalCloneSanitizedBlock)(e)})),l.next=20,Ln(i,c+1,r,t);case 20:if(!(i.length>1&&t)){l.next=23;break}return l.next=23,En(Object(d.first)(i).clientId,Object(d.last)(i).clientId);case 23:return l.abrupt("return",i.map((function(e){return e.clientId})));case 24:case"end":return l.stop()}}),an)}function dr(e){var t,n;return Dt.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e){r.next=2;break}return r.abrupt("return");case 2:return r.next=4,v.controls.select(Ft,"getBlockRootClientId",e);case 4:return t=r.sent,r.next=7,v.controls.select(Ft,"getTemplateLock",t);case 7:if(!r.sent){r.next=10;break}return r.abrupt("return");case 10:return r.next=12,v.controls.select(Ft,"getBlockIndex",e,t);case 12:return n=r.sent,r.next=15,er({},t,n);case 15:return r.abrupt("return",r.sent);case 16:case"end":return r.stop()}}),ln)}function br(e){var t,n;return Dt.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e){r.next=2;break}return r.abrupt("return");case 2:return r.next=4,v.controls.select(Ft,"getBlockRootClientId",e);case 4:return t=r.sent,r.next=7,v.controls.select(Ft,"getTemplateLock",t);case 7:if(!r.sent){r.next=10;break}return r.abrupt("return");case 10:return r.next=12,v.controls.select(Ft,"getBlockIndex",e,t);case 12:return n=r.sent,r.next=15,er({},t,n+1);case 15:return r.abrupt("return",r.sent);case 16:case"end":return r.stop()}}),sn)}function fr(e,t){return{type:"TOGGLE_BLOCK_HIGHLIGHT",clientId:e,isHighlighted:t}}function pr(e){return Dt.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fr(e,!0);case 2:return t.next=4,{type:"SLEEP",duration:150};case 4:return t.next=6,fr(e,!1);case 6:case"end":return t.stop()}}),un)}function mr(e,t){return{type:"SET_HAS_CONTROLLED_INNER_BLOCKS",hasControlledInnerBlocks:t,clientId:e}}function vr(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 Or(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vr(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var gr={reducer:V,selectors:r,actions:o,controls:Mt},hr=Object(v.createReduxStore)(Ft,Or(Or({},gr),{},{persist:["preferences"]}));function jr(){var e=h(),t=e.isSelected,n=e.clientId,r=e.name,o=Object(v.useSelect)((function(e){if(!t){var o=e(hr),c=o.getBlockName,i=o.isFirstMultiSelectedBlock,a=o.getMultiSelectedBlockClientIds;return!!i(n)&&a().every((function(e){return c(e)===r}))}}),[n,t,r]);return t||o}Object(v.registerStore)(Ft,Or(Or({},gr),{},{persist:["preferences"]}));var kr={default:Object(m.createSlotFill)("BlockControls"),block:Object(m.createSlotFill)("BlockControlsBlock"),inline:Object(m.createSlotFill)("BlockFormatControls"),other:Object(m.createSlotFill)("BlockControlsOther")};function yr(e){var t=e.group,n=void 0===t?"default":t,r=e.controls,o=e.children;if(!jr())return null;var c=kr[n].Fill;return Object(l.createElement)(c,null,(function(e){var t=Object(d.isEmpty)(e)?null:e;return Object(l.createElement)(m.__experimentalToolbarContext.Provider,{value:t},"default"===n&&Object(l.createElement)(m.ToolbarGroup,{controls:r}),o)}))}function _r(e){var t=e.group,n=void 0===t?"default":t,r=Object(j.a)(e,["group"]),o=Object(l.useContext)(m.__experimentalToolbarContext),c=kr[n].Slot,a=Object(m.__experimentalUseSlot)(c.__unstableName);return Boolean(a.fills&&a.fills.length)?"default"===n?Object(l.createElement)(c,Object(i.a)({},r,{bubblesVirtually:!0,fillProps:o})):Object(l.createElement)(m.ToolbarGroup,null,Object(l.createElement)(c,Object(i.a)({},r,{bubblesVirtually:!0,fillProps:o}))):null}var Er=yr;Er.Slot=_r;var wr=function(e){return Object(l.createElement)(yr,Object(i.a)({group:"inline"},e))};wr.Slot=function(e){return Object(l.createElement)(_r,Object(i.a)({group:"inline"},e))};var Cr=Er,Sr=n(7),Br=Object(l.createElement)(Sr.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(Sr.Path,{d:"M4 9v6h14V9H4zm8-4.8H4v1.5h8V4.2zM4 19.8h8v-1.5H4v1.5z"})),Ir=Object(l.createElement)(Sr.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(Sr.Path,{d:"M5 15h14V9H5v6zm0 4.8h14v-1.5H5v1.5zM5 4.2v1.5h14V4.2H5z"})),xr=Object(l.createElement)(Sr.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(Sr.Path,{d:"M6 15h14V9H6v6zm6-10.8v1.5h8V4.2h-8zm0 15.6h8v-1.5h-8v1.5z"})),Pr=Object(l.createElement)(Sr.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(Sr.Path,{d:"M5 9v6h14V9H5zm11-4.8H8v1.5h8V4.2zM8 19.8h8v-1.5H8v1.5z"})),Tr=Object(l.createElement)(Sr.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(Sr.Path,{d:"M5 4v11h14V4H5zm3 15.8h8v-1.5H8v1.5z"})),Nr={type:"default"},Dr=Object(l.createContext)(Nr);function Ar(e,t){return e.split(",").map((function(e){return".editor-styles-wrapper ".concat(e," ").concat(t)})).join(",")}var Lr=Dr.Provider;function Rr(){return Object(l.useContext)(Dr)}function Mr(e){var t=e.selector,n=e.layout,r=void 0===n?{}:n,o=r.contentSize,c=r.wideSize,i=o||c?"\n\t\t\t\t".concat(Ar(t,"> *")," {\n\t\t\t\t\tmax-width: ").concat(null!=o?o:c,";\n\t\t\t\t\tmargin-left: auto;\n\t\t\t\t\tmargin-right: auto;\n\t\t\t\t}\n\n\t\t\t\t").concat(Ar(t,'> [data-align="wide"]')," {\n\t\t\t\t\tmax-width: ").concat(null!=c?c:o,";\n\t\t\t\t}\n\n\t\t\t\t").concat(Ar(t,'> [data-align="full"]')," {\n\t\t\t\t\tmax-width: none;\n\t\t\t\t}\n\t\t\t"):"";return i+="\n\t\t".concat(Ar(t,'> [data-align="left"]')," {\n\t\t\tfloat: left;\n\t\t\tmargin-right: 2em;\n\t\t}\n\n\t\t").concat(Ar(t,'> [data-align="right"]')," {\n\t\t\tfloat: right;\n\t\t\tmargin-left: 2em;\n\t\t}\n\t"),Object(l.createElement)("style",null,i)}var Fr=["left","center","right","wide","full"],Vr=["wide","full"];function Hr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Fr,t=Object(v.useSelect)((function(e){return{wideControlsEnabled:(0,e(hr).getSettings)().alignWide}}),[]),n=t.wideControlsEnabled,r=void 0!==n&&n,o=Rr(),c="default"===o.type;if(!c)return[];var i=o.alignments,a=void 0===i?Fr:i,l=e.filter((function(e){return(o.alignments||r||!Vr.includes(e))&&a.includes(e)}));return l}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 Gr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zr(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ur={left:{icon:Br,title:Object(y.__)("Align left")},center:{icon:Ir,title:Object(y.__)("Align center")},right:{icon:xr,title:Object(y.__)("Align right")},wide:{icon:Pr,title:Object(y.__)("Wide width")},full:{icon:Tr,title:Object(y.__)("Full width")}},Wr={isAlternate:!0},Kr=function(e){var t=e.value,n=e.onChange,r=e.controls,o=e.isToolbar,c=e.isCollapsed,a=void 0===c||c,s=e.isToolbarButton,u=void 0===s||s,d=Hr(r);if(0===d.length)return null;var b=Ur[t],f=Ur.center,p=o?m.ToolbarGroup:m.DropdownMenu,v=o?{isCollapsed:a}:{isToolbarButton:u};return Object(l.createElement)(p,Object(i.a)({popoverProps:Wr,icon:b?b.icon:f.icon,label:Object(y.__)("Align"),toggleProps:{describedBy:Object(y.__)("Change alignment")},controls:d.map((function(e){return Gr(Gr({},Ur[e]),{},{isActive:t===e,role:a?"menuitemradio":void 0,onClick:(r=e,function(){return n(t===r?void 0:r)})});var r}))},v))};function qr(e){return Object(l.createElement)(Kr,Object(i.a)({},e,{isToolbar:!1}))}function $r(e){return Object(l.createElement)(Kr,Object(i.a)({},e,{isToolbar:!0}))}function Yr(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 Xr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yr(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Qr=["left","center","right","wide","full"],Zr=["wide","full"];function Jr(e){var t,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return t=Array.isArray(e)?Qr.filter((function(t){return e.includes(t)})):!0===e?Qr:[],!r||!0===e&&!n?d.without.apply(void 0,[t].concat(Zr)):t}var eo=Object(b.createHigherOrderComponent)((function(e){return function(t){var n=t.name,r=Hr(Jr(Object(p.getBlockSupport)(n,"align"),Object(p.hasBlockSupport)(n,"alignWide",!0)));return[r.length>0&&t.isSelected&&Object(l.createElement)(Cr,{key:"align-controls",group:"block"},Object(l.createElement)(qr,{value:t.attributes.align,onChange:function(e){var n,r;e||(null===(n=Object(p.getBlockType)(t.name).attributes)||void 0===n||null===(r=n.align)||void 0===r?void 0:r.default)&&(e=""),t.setAttributes({align:e})},controls:r})),Object(l.createElement)(e,Object(i.a)({key:"edit"},t))]}}),"withToolbarControls"),to=Object(b.createHigherOrderComponent)((function(e){return function(t){var n=t.name,r=t.attributes.align,o=Hr(Jr(Object(p.getBlockSupport)(n,"align"),Object(p.hasBlockSupport)(n,"alignWide",!0)));if(void 0===r)return Object(l.createElement)(e,t);var c=t.wrapperProps;return o.includes(r)&&(c=Xr(Xr({},c),{},{"data-align":r})),Object(l.createElement)(e,Object(i.a)({},t,{wrapperProps:c}))}}));Object(f.addFilter)("blocks.registerBlockType","core/align/addAttribute",(function(e){return Object(d.has)(e.attributes,["align","type"])||Object(p.hasBlockSupport)(e,"align")&&(e.attributes=Xr(Xr({},e.attributes),{},{align:{type:"string",enum:[].concat(Qr,[""])}})),e})),Object(f.addFilter)("editor.BlockListBlock","core/editor/align/with-data-align",to),Object(f.addFilter)("editor.BlockEdit","core/editor/align/with-toolbar-controls",eo),Object(f.addFilter)("blocks.getSaveContent.extraProps","core/align/addAssignedAlign",(function(e,t,n){var r=n.align;return Jr(Object(p.getBlockSupport)(t,"align"),Object(p.hasBlockSupport)(t,"alignWide",!0)).includes(r)&&(e.className=u()("align".concat(r),e.className)),e}));var no=Object(m.createSlotFill)("InspectorAdvancedControls"),ro=no.Fill,oo=no.Slot;function co(e){var t=e.children;return h().isSelected?Object(l.createElement)(ro,null,t):null}co.slotName="InspectorAdvancedControls",co.Slot=oo;var io=co,ao=Object(m.createSlotFill)("InspectorControls"),lo=ao.Fill,so=ao.Slot;function uo(e){var t=e.children;return jr()?Object(l.createElement)(lo,null,t):null}uo.Slot=so;var bo=uo;function fo(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 po(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fo(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var mo=/[\s#]/g,vo=Object(b.createHigherOrderComponent)((function(e){return function(t){if(Object(p.hasBlockSupport)(t.name,"anchor")&&t.isSelected){var n="web"===l.Platform.OS,r=Object(l.createElement)(m.TextControl,{className:"html-anchor-control",label:Object(y.__)("HTML anchor"),help:Object(l.createElement)(l.Fragment,null,Object(y.__)("Enter a word or two — without spaces — to make a unique web address just for this block, called an “anchor.” Then, you’ll be able to link directly to this section of your page."),Object(l.createElement)(m.ExternalLink,{href:"https://wordpress.org/support/article/page-jumps/"},Object(y.__)("Learn more about anchors"))),value:t.attributes.anchor||"",placeholder:n?null:Object(y.__)("Add an anchor"),onChange:function(e){e=e.replace(mo,"-"),t.setAttributes({anchor:e})},autoCapitalize:"none",autoComplete:"off"});return Object(l.createElement)(l.Fragment,null,Object(l.createElement)(e,t),n&&Object(l.createElement)(io,null,r),!n&&"core/heading"===t.name&&Object(l.createElement)(bo,null,Object(l.createElement)(m.PanelBody,{title:Object(y.__)("Heading settings")},r)))}return Object(l.createElement)(e,t)}}),"withInspectorControl");function Oo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function go(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Oo(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Oo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}Object(f.addFilter)("blocks.registerBlockType","core/anchor/attribute",(function(e){return Object(d.has)(e.attributes,["anchor","type"])||Object(p.hasBlockSupport)(e,"anchor")&&(e.attributes=po(po({},e.attributes),{},{anchor:{type:"string",source:"attribute",attribute:"id",selector:"*"}})),e})),Object(f.addFilter)("editor.BlockEdit","core/editor/anchor/with-inspector-control",vo),Object(f.addFilter)("blocks.getSaveContent.extraProps","core/anchor/save-props",(function(e,t,n){return Object(p.hasBlockSupport)(t,"anchor")&&(e.id=""===n.anchor?null:n.anchor),e}));var ho=Object(b.createHigherOrderComponent)((function(e){return function(t){return Object(p.hasBlockSupport)(t.name,"customClassName",!0)&&t.isSelected?Object(l.createElement)(l.Fragment,null,Object(l.createElement)(e,t),Object(l.createElement)(io,null,Object(l.createElement)(m.TextControl,{autoComplete:"off",label:Object(y.__)("Additional CSS class(es)"),value:t.attributes.className||"",onChange:function(e){t.setAttributes({className:""!==e?e:void 0})},help:Object(y.__)("Separate multiple classes with spaces.")}))):Object(l.createElement)(e,t)}}),"withInspectorControl");function jo(e){e="<div data-custom-class-name>".concat(e,"</div>");var t=Object(p.parseWithAttributeSchema)(e,{type:"string",source:"attribute",selector:"[data-custom-class-name] > *",attribute:"class"});return t?t.trim().split(/\s+/):[]}Object(f.addFilter)("blocks.registerBlockType","core/custom-class-name/attribute",(function(e){return Object(p.hasBlockSupport)(e,"customClassName",!0)&&(e.attributes=go(go({},e.attributes),{},{className:{type:"string"}})),e})),Object(f.addFilter)("editor.BlockEdit","core/editor/custom-class-name/with-inspector-control",ho),Object(f.addFilter)("blocks.getSaveContent.extraProps","core/custom-class-name/save-props",(function(e,t,n){return Object(p.hasBlockSupport)(t,"customClassName",!0)&&n.className&&(e.className=u()(e.className,n.className)),e})),Object(f.addFilter)("blocks.getBlockAttributes","core/custom-class-name/addParsedDifference",(function(e,t,n){if(Object(p.hasBlockSupport)(t,"customClassName",!0)){var r=Object(d.omit)(e,["className"]),o=Object(p.getSaveContent)(t,r),c=jo(o),i=jo(n),a=Object(d.difference)(i,c);a.length?e.className=a.join(" "):o&&delete e.className}return e})),Object(f.addFilter)("blocks.getSaveContent.extraProps","core/generated-class-name/save-props",(function(e,t){return Object(p.hasBlockSupport)(t,"className",!0)&&("string"==typeof e.className?e.className=Object(d.uniq)([Object(p.getBlockDefaultClassName)(t.name)].concat(Object(k.a)(e.className.split(" ")))).join(" ").trim():e.className=Object(p.getBlockDefaultClassName)(t.name)),e}));var ko={"color.palette":function(e){return void 0===e.colors?void 0:e.colors},"color.gradients":function(e){return void 0===e.gradients?void 0:e.gradients},"color.custom":function(e){return void 0===e.disableCustomColors?void 0:!e.disableCustomColors},"color.customGradient":function(e){return void 0===e.disableCustomGradients?void 0:!e.disableCustomGradients},"typography.fontSizes":function(e){return void 0===e.fontSizes?void 0:e.fontSizes},"typography.customFontSize":function(e){return void 0===e.disableCustomFontSizes?void 0:!e.disableCustomFontSizes},"typography.customLineHeight":function(e){return e.enableCustomLineHeight},"spacing.units":function(e){if(void 0!==e.enableCustomUnits)return!0===e.enableCustomUnits?["px","em","rem","vh","vw"]:e.enableCustomUnits},"spacing.customPadding":function(e){return e.enableCustomSpacing}};function yo(e,t){for(var n in t)if(t[n]!==e[n])return!1;return!0}function _o(e){var t=h(),n=t.name,r=t.clientId;return Object(v.useSelect)((function(t){var o,c=t(hr),i=c.getBlockAttributes,a=(0,c.getSettings)(),l=t(p.store).getBlockType(n),s=n,u=Object(d.get)(l,["supports","__experimentalSelector"]);if(r&&Object(d.isObject)(u)){var b=i(r)||{};for(var f in u)if(yo(b,u[f].attributes)){s=f;break}}var m="__experimentalFeatures.defaults.".concat(e),v="__experimentalFeatures.".concat(s,".").concat(e),O=null!==(o=Object(d.get)(a,v))&&void 0!==o?o:Object(d.get)(a,m);if(void 0!==O)return O;var g=ko[e]?ko[e](a):void 0;return void 0!==g?g:"typography.dropCap"===e||void 0}),[n,r,e])}var Eo=function e(t){if(!Object(d.isObject)(t))return t;var n=Object(d.pickBy)(Object(d.mapValues)(t,e),d.identity);return Object(d.isEqual)(n,{})?void 0:n};function wo(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 Co(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wo(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function So(e){var t,n=e.attributes.style,r=e.setAttributes;return Io(e)?null:Object(l.createElement)(m.RangeControl,{value:null==n||null===(t=n.border)||void 0===t?void 0:t.radius,label:Object(y.__)("Border radius"),min:0,max:50,initialPosition:0,allowReset:!0,onChange:function(e){var t=Co(Co({},n),{},{border:Co(Co({},null==n?void 0:n.border),{},{radius:e})});void 0===e&&(t=Eo(t)),r({style:t})}})}function Bo(e){var t=Object(p.getBlockSupport)(e,xo);return!!(!0===t||null!=t&&t.radius)}function Io(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,n=!_o("border.customRadius");return!Bo(t)||n}var xo="__experimentalBorder";function Po(e){var t=To(e),n=function(e){if("web"!==l.Platform.OS)return!1;var t=Object(p.getBlockSupport)(e,xo);return!!(!0===t||null!=t&&t.radius)}(e.name);return t||!n?null:Object(l.createElement)(bo,null,Object(l.createElement)(m.PanelBody,{title:Object(y.__)("Border settings")},Object(l.createElement)(So,e)))}var To=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=[Io(e)];return t.every(Boolean)},No=n(67),Do=n.n(No),Ao=function(e,t,n){if(t){var r=Object(d.find)(e,{slug:t});if(r)return r}return{color:n}},Lo=function(e,t){return Object(d.find)(e,{color:t})};function Ro(e,t){if(e&&t)return"has-".concat(Object(d.kebabCase)(t),"-").concat(e)}var Mo=[];function Fo(e){if(e)return"has-".concat(e,"-gradient-background")}function Vo(e,t){var n=Object(d.find)(e,["slug",t]);return n&&n.gradient}function Ho(e,t){return Object(d.find)(e,["gradient",t])}function zo(e,t){var n=Ho(e,t);return n&&n.slug}function Go(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.gradientAttribute,n=void 0===t?"gradient":t,r=e.customGradientAttribute,o=void 0===r?"customGradient":r,c=h(),i=c.clientId,s=_o("color.gradients")||Mo,u=Object(v.useSelect)((function(e){var t=(0,e(hr).getBlockAttributes)(i)||{};return{customGradient:t[o],gradient:t[n]}}),[i,n,o]),d=u.gradient,b=u.customGradient,f=Object(v.useDispatch)(hr),p=f.updateBlockAttributes,m=Object(l.useCallback)((function(e){var t,r,c=zo(s,e);p(i,c?(r={},Object(a.a)(r,n,c),Object(a.a)(r,o,void 0),r):(t={},Object(a.a)(t,n,void 0),Object(a.a)(t,o,e),t))}),[s,i,p]),O=Fo(d);return{gradientClass:O,gradientValue:d?Vo(s,d):b,setGradient:m}}var Uo=n(10);function Wo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ko(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wo(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}
4
  // translators: first %s: the color name or value (e.g. red or #ff0000)
5
- var qo=Object(y.__)("(Color: %s)"),$o=Object(y.__)("(Gradient: %s)"),Yo=["colors","disableCustomColors","gradients","disableCustomGradients"];// translators: first %s: the gradient name or value (e.g. red to green or linear-gradient(135deg,rgba(6,147,227,1) 0%,rgb(155,81,224) 100%)
6
- function Xo(e){var t,n,r=e.colors,o=e.gradients,c=e.label,i=e.currentTab,a=e.colorValue,s=e.gradientValue;if("color"===i){if(a){var u=Lo(r,t=a),d=u&&u.name;n=Object(y.sprintf)(qo,d||t)}}else if("gradient"===i&&s){var b=Ho(o,t=s),f=b&&b.name;n=Object(y.sprintf)($o,f||t)}return Object(l.createElement)(l.Fragment,null,c,!!t&&Object(l.createElement)(m.ColorIndicator,{colorValue:t,"aria-label":n}))}function Qo(e){var t=e.colors,n=e.gradients,r=e.disableCustomColors,o=e.disableCustomGradients,c=e.className,i=e.label,a=e.onColorChange,s=e.onGradientChange,b=e.colorValue,f=e.gradientValue,p=e.clearable,v=a&&(!Object(d.isEmpty)(t)||!r),O=s&&(!Object(d.isEmpty)(n)||!o),g=Object(l.useState)(f?"gradient":!!v&&"color"),h=Object(Uo.a)(g,2),j=h[0],k=h[1];return v||O?Object(l.createElement)(m.BaseControl,{className:u()("block-editor-color-gradient-control",c)},Object(l.createElement)("fieldset",null,Object(l.createElement)("legend",null,Object(l.createElement)("div",{className:"block-editor-color-gradient-control__color-indicator"},Object(l.createElement)(m.BaseControl.VisualLabel,null,Object(l.createElement)(Xo,{currentTab:j,label:i,colorValue:b,gradientValue:f})))),v&&O&&Object(l.createElement)(m.ButtonGroup,{className:"block-editor-color-gradient-control__button-tabs"},Object(l.createElement)(m.Button,{isSmall:!0,isPressed:"color"===j,onClick:function(){return k("color")}},Object(y.__)("Solid")),Object(l.createElement)(m.Button,{isSmall:!0,isPressed:"gradient"===j,onClick:function(){return k("gradient")}},Object(y.__)("Gradient"))),("color"===j||!O)&&Object(l.createElement)(m.ColorPalette,{value:b,onChange:O?function(e){a(e),s()}:a,colors:t,disableCustomColors:r,clearable:p}),("gradient"===j||!v)&&Object(l.createElement)(m.__experimentalGradientPicker,{value:f,onChange:v?function(e){s(e),a()}:s,gradients:n,disableCustomGradients:o,clearable:p}))):null}function Zo(e){var t={};return t.colors=_o("color.palette"),t.gradients=_o("color.gradients"),t.disableCustomColors=!_o("color.custom"),t.disableCustomGradients=!_o("color.customGradient"),Object(l.createElement)(Qo,Ko(Ko({},t),e))}var Jo=function(e){return Object(d.every)(Yo,(function(t){return e.hasOwnProperty(t)}))?Object(l.createElement)(Qo,e):Object(l.createElement)(Zo,e)};function ec(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 tc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ec(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ec(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}
7
  // translators: first %s: The type of color or gradient (e.g. background, overlay...), second %s: the color name or value (e.g. red or #ff0000)
8
- var nc=Object(y.__)("(%s: color %s)"),rc=Object(y.__)("(%s: gradient %s)"),oc=["colors","disableCustomColors","gradients","disableCustomGradients"],cc=function(e){var t=e.colors,n=e.gradients;return e.settings.map((function(e,r){var o,c=e.colorValue,i=e.gradientValue,a=e.label,s=e.colors,u=e.gradients;if(!c&&!i)return null;if(c){var d=Lo(s||t,c);o=Object(y.sprintf)(nc,a.toLowerCase(),d&&d.name||c)}else{var b=Ho(u||n,c);o=Object(y.sprintf)(rc,a.toLowerCase(),b&&b.name||i)}return Object(l.createElement)(m.ColorIndicator,{key:r,colorValue:c||i,"aria-label":o})}))},ic=function(e){var t=e.className,n=e.colors,r=e.gradients,o=e.disableCustomColors,c=e.disableCustomGradients,a=e.children,s=e.settings,b=e.title,f=Object(j.a)(e,["className","colors","gradients","disableCustomColors","disableCustomGradients","children","settings","title"]);if(Object(d.isEmpty)(n)&&Object(d.isEmpty)(r)&&o&&c&&Object(d.every)(s,(function(e){return Object(d.isEmpty)(e.colors)&&Object(d.isEmpty)(e.gradients)&&(void 0===e.disableCustomColors||e.disableCustomColors)&&(void 0===e.disableCustomGradients||e.disableCustomGradients)})))return null;var p=Object(l.createElement)("span",{className:"block-editor-panel-color-gradient-settings__panel-title"},b,Object(l.createElement)(cc,{colors:n,gradients:r,settings:s}));return Object(l.createElement)(m.PanelBody,Object(i.a)({className:u()("block-editor-panel-color-gradient-settings",t),title:p},f),s.map((function(e,t){return Object(l.createElement)(Jo,Object(i.a)({key:t},tc({colors:n,gradients:r,disableCustomColors:o,disableCustomGradients:c},e)))})),a)},ac=function(e){var t={};return t.colors=_o("color.palette"),t.gradients=_o("color.gradients"),t.disableCustomColors=!_o("color.custom"),t.disableCustomGradients=!_o("color.customGradient"),Object(l.createElement)(ic,tc(tc({},t),e))},lc=function(e){return Object(d.every)(oc,(function(t){return e.hasOwnProperty(t)}))?Object(l.createElement)(ic,e):Object(l.createElement)(ac,e)};// translators: first %s: The type of color or gradient (e.g. background, overlay...), second %s: the color name or value (e.g. red or #ff0000)
9
- function sc(e){var t=e.tinyBackgroundColor,n=e.tinyTextColor,r=e.backgroundColor,o=e.textColor,c=t.getBrightness()<n.getBrightness()?Object(y.__)("This color combination may be hard for people to read. Try using a darker background color and/or a brighter text color."):Object(y.__)("This color combination may be hard for people to read. Try using a brighter background color and/or a darker text color.");return Object(l.useEffect)((function(){Object(At.speak)(Object(y.__)("This color combination may be hard for people to read."))}),[r,o]),Object(l.createElement)("div",{className:"block-editor-contrast-checker"},Object(l.createElement)(m.Notice,{spokenMessage:null,status:"warning",isDismissible:!1},c))}var uc=function(e){var t=e.backgroundColor,n=e.fallbackBackgroundColor,r=e.fallbackTextColor,o=e.fontSize,c=e.isLargeText,i=e.textColor;if(!t&&!n||!i&&!r)return null;var a=Do()(t||n),s=Do()(i||r);return 1!==a.getAlpha()||1!==s.getAlpha()||Do.a.isReadable(a,s,{level:"AA",size:c||!1!==c&&o>=24?"large":"small"})?null:Object(l.createElement)(sc,{backgroundColor:t,textColor:i,tinyBackgroundColor:a,tinyTextColor:s})};function dc(e,t){return t.getElementById("block-"+e)}function bc(e,t){return t.closest(".block-editor-block-list__block")===e}function fc(e){for(;e&&e.nodeType!==e.ELEMENT_NODE;)e=e.parentNode;if(e){var t=e.closest(".block-editor-block-list__block");if(t)return t.id.slice("block-".length)}}function pc(e){return e.ownerDocument.defaultView.getComputedStyle(e)}function mc(e){var t=e.settings,n=e.clientId,r=e.enableContrastChecking,o=void 0===r||r,c=Object(l.useState)(),i=Object(Uo.a)(c,2),a=i[0],s=i[1],u=Object(l.useState)(),d=Object(Uo.a)(u,2),b=d[0],f=d[1];return Object(l.useEffect)((function(){if(o){var e=dc(n,document);if(e){f(pc(e).color);for(var t=e,r=pc(t).backgroundColor;"rgba(0, 0, 0, 0)"===r&&t.parentNode&&t.parentNode.nodeType===t.parentNode.ELEMENT_NODE;)r=pc(t=t.parentNode).backgroundColor;s(r)}}})),Object(l.createElement)(bo,null,Object(l.createElement)(lc,{title:Object(y.__)("Color settings"),initialOpen:!1,settings:t},o&&Object(l.createElement)(uc,{backgroundColor:a,textColor:b})))}function vc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Oc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vc(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var gc=[],hc=function(e){var t=Object(p.getBlockSupport)(e,"color");return t&&(!0===t.link||!0===t.gradient||!1!==t.background||!1!==t.text)},jc=function(e){var t=Object(p.getBlockSupport)(e,"color");return null==t?void 0:t.__experimentalSkipSerialization},kc=function(e){if("web"!==l.Platform.OS)return!1;var t=Object(p.getBlockSupport)(e,"color");return Object(d.isObject)(t)&&!!t.link},yc=function(e){if("web"!==l.Platform.OS)return!1;var t=Object(p.getBlockSupport)(e,"color");return Object(d.isObject)(t)&&!!t.gradients},_c=function(e){var t=Object(p.getBlockSupport)(e,"color");return t&&!1!==t.text};function Ec(e,t,n){var r,o,c,i,l,s;if(!hc(t)||jc(t))return e;var d=yc(t),b=n.backgroundColor,f=n.textColor,p=n.gradient,m=n.style,v=Ro("background-color",b),O=Fo(p),g=Ro("color",f),h=u()(e.className,g,O,(s={},Object(a.a)(s,v,!(d&&null!=m&&null!==(r=m.color)&&void 0!==r&&r.gradient||!v)),Object(a.a)(s,"has-text-color",f||(null==m||null===(o=m.color)||void 0===o?void 0:o.text)),Object(a.a)(s,"has-background",b||(null==m||null===(c=m.color)||void 0===c?void 0:c.background)||d&&(p||(null==m||null===(i=m.color)||void 0===i?void 0:i.gradient))),Object(a.a)(s,"has-link-color",null==m||null===(l=m.color)||void 0===l?void 0:l.link),s));return e.className=h||void 0,e}var wc=function(e,t){var n=/var:preset\|color\|(.+)/.exec(t);return n&&n[1]?Ao(e,n[1]).color:t};function Cc(e){var t,n,r,o,c,i,s=e.name,u=e.attributes,d=_o("color.link"),b=_o("color.palette")||gc,f=_o("color.gradients")||gc,m=Object(l.useRef)(u);if(Object(l.useEffect)((function(){m.current=u}),[u]),!hc(s)||"web"!==l.Platform.OS)return null;var v,O,g,h=(v=s,(O=Object(p.getBlockSupport)(v,"color"))&&!1!==O.background),j=yc(s),_=u.style,E=u.textColor,w=u.backgroundColor,C=u.gradient;if(j&&C)g=Vo(f,C);else if(j){var S;g=null==_||null===(S=_.color)||void 0===S?void 0:S.gradient}var B=function(t){return function(n){var r,o,c=Lo(b,n),i=t+"Color",l=Oc(Oc({},m.current.style),{},{color:Oc(Oc({},null===(r=m.current)||void 0===r||null===(o=r.style)||void 0===o?void 0:o.color),{},Object(a.a)({},t,null!=c&&c.slug?void 0:n))}),s=null!=c&&c.slug?c.slug:void 0,u=Object(a.a)({style:Eo(l)},i,s);e.setAttributes(u),m.current=Oc(Oc({},m.current),u)}};return Object(l.createElement)(mc,{enableContrastChecking:!("web"!==l.Platform.OS||C||null!=_&&null!==(t=_.color)&&void 0!==t&&t.gradient),clientId:e.clientId,settings:[].concat(Object(k.a)(_c(s)?[{label:Object(y.__)("Text Color"),onColorChange:B("text"),colorValue:Ao(b,E,null==_||null===(n=_.color)||void 0===n?void 0:n.text).color}]:[]),Object(k.a)(h||j?[{label:Object(y.__)("Background Color"),onColorChange:h?B("background"):void 0,colorValue:Ao(b,w,null==_||null===(r=_.color)||void 0===r?void 0:r.background).color,gradientValue:g,onGradientChange:j?function(t){var n,r=zo(f,t);if(r){var o,c,i,a=Oc(Oc({},null===(o=m.current)||void 0===o?void 0:o.style),{},{color:Oc(Oc({},null===(c=m.current)||void 0===c||null===(i=c.style)||void 0===i?void 0:i.color),{},{gradient:void 0})});n={style:Eo(a),gradient:r}}else{var l,s,u,d=Oc(Oc({},null===(l=m.current)||void 0===l?void 0:l.style),{},{color:Oc(Oc({},null===(s=m.current)||void 0===s||null===(u=s.style)||void 0===u?void 0:u.color),{},{gradient:t})});n={style:Eo(d),gradient:void 0}}e.setAttributes(n),m.current=Oc(Oc({},m.current),n)}:void 0}]:[]),Object(k.a)(d&&kc(s)?[{label:Object(y.__)("Link Color"),onColorChange:function(t){var n,r=Lo(b,t);e.setAttributes({style:Oc(Oc({},e.attributes.style),{},{color:Oc(Oc({},null===(n=e.attributes.style)||void 0===n?void 0:n.color),{},{link:null!=r&&r.slug?"var:preset|color|".concat(r.slug):t})})})},colorValue:wc(b,null==_||null===(o=_.color)||void 0===o?void 0:o.link),clearable:!(null===(c=e.attributes.style)||void 0===c||null===(i=c.color)||void 0===i||!i.link)}]:[]))})}var Sc=Object(b.createHigherOrderComponent)((function(e){return function(t){var n,r,o,c=t.name,a=t.attributes,s=a.backgroundColor,u=a.textColor,d=_o("color.palette")||gc;if(!hc(c)||jc(c))return Object(l.createElement)(e,t);var b={color:u?null===(n=Ao(d,u))||void 0===n?void 0:n.color:void 0,backgroundColor:s?null===(r=Ao(d,s))||void 0===r?void 0:r.color:void 0},f=t.wrapperProps;return f=Oc(Oc({},t.wrapperProps),{},{style:Oc(Oc({},b),null===(o=t.wrapperProps)||void 0===o?void 0:o.style)}),Object(l.createElement)(e,Object(i.a)({},t,{wrapperProps:f}))}}));Object(f.addFilter)("blocks.registerBlockType","core/color/addAttribute",(function(e){return hc(e)?(e.attributes.backgroundColor||Object.assign(e.attributes,{backgroundColor:{type:"string"}}),e.attributes.textColor||Object.assign(e.attributes,{textColor:{type:"string"}}),yc(e)&&!e.attributes.gradient&&Object.assign(e.attributes,{gradient:{type:"string"}}),e):e})),Object(f.addFilter)("blocks.getSaveContent.extraProps","core/color/addSaveProps",Ec),Object(f.addFilter)("blocks.registerBlockType","core/color/addEditProps",(function(e){if(!hc(e)||jc(e))return e;var t=e.getEditWrapperProps;return e.getEditWrapperProps=function(n){var r={};return t&&(r=t(n)),Ec(r,e,n)},e})),Object(f.addFilter)("editor.BlockListBlock","core/color/with-color-palette-styles",Sc);var Bc=Object(l.createElement)(Sr.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(Sr.Path,{d:"M7 18v1h10v-1H7zm5-2c1.5 0 2.6-.4 3.4-1.2.8-.8 1.1-2 1.1-3.5V5H15v5.8c0 1.2-.2 2.1-.6 2.8-.4.7-1.2 1-2.4 1s-2-.3-2.4-1c-.4-.7-.6-1.6-.6-2.8V5H7.5v6.2c0 1.5.4 2.7 1.1 3.5.8.9 1.9 1.3 3.4 1.3z"})),Ic=n(406),xc=[{name:Object(y.__)("Underline"),value:"underline",icon:Bc},{name:Object(y.__)("Strikethrough"),value:"line-through",icon:Ic.a}];function Pc(e){var t=e.value,n=e.onChange;return Object(l.createElement)("fieldset",{className:"block-editor-text-decoration-control"},Object(l.createElement)("legend",null,Object(y.__)("Decoration")),Object(l.createElement)("div",{className:"block-editor-text-decoration-control__buttons"},xc.map((function(e){return Object(l.createElement)(m.Button,{key:e.value,icon:e.icon,isSmall:!0,isPressed:e.value===t,onClick:function(){return n(e.value===t?void 0:e.value)},"aria-label":e.name})}))))}function Tc(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 Nc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tc(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Dc(e){var t,n=e.attributes.style,r=e.setAttributes;return Ac(e)?null:Object(l.createElement)(Pc,{value:null==n||null===(t=n.typography)||void 0===t?void 0:t.textDecoration,onChange:function(e){r({style:Eo(Nc(Nc({},n),{},{typography:Nc(Nc({},null==n?void 0:n.typography),{},{textDecoration:e})}))})}})}function Ac(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,n=!Object(p.hasBlockSupport)(t,"__experimentalTextDecoration"),r=_o("typography.customTextDecorations");return n||!r}var Lc=Object(l.createElement)(Sr.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(Sr.Path,{d:"M6.1 6.8L2.1 18h1.6l1.1-3h4.3l1.1 3h1.6l-4-11.2H6.1zm-.8 6.8L7 8.9l1.7 4.7H5.3zm15.1-.7c-.4-.5-.9-.8-1.6-1 .4-.2.7-.5.8-.9.2-.4.3-.9.3-1.4 0-.9-.3-1.6-.8-2-.6-.5-1.3-.7-2.4-.7h-3.5V18h4.2c1.1 0 2-.3 2.6-.8.6-.6 1-1.4 1-2.4-.1-.8-.3-1.4-.6-1.9zm-5.7-4.7h1.8c.6 0 1.1.1 1.4.4.3.2.5.7.5 1.3 0 .6-.2 1.1-.5 1.3-.3.2-.8.4-1.4.4h-1.8V8.2zm4 8c-.4.3-.9.5-1.5.5h-2.6v-3.8h2.6c1.4 0 2 .6 2 1.9.1.6-.1 1-.5 1.4z"})),Rc=Object(l.createElement)(Sr.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(Sr.Path,{d:"M11 16.8c-.1-.1-.2-.3-.3-.5v-2.6c0-.9-.1-1.7-.3-2.2-.2-.5-.5-.9-.9-1.2-.4-.2-.9-.3-1.6-.3-.5 0-1 .1-1.5.2s-.9.3-1.2.6l.2 1.2c.4-.3.7-.4 1.1-.5.3-.1.7-.2 1-.2.6 0 1 .1 1.3.4.3.2.4.7.4 1.4-1.2 0-2.3.2-3.3.7s-1.4 1.1-1.4 2.1c0 .7.2 1.2.7 1.6.4.4 1 .6 1.8.6.9 0 1.7-.4 2.4-1.2.1.3.2.5.4.7.1.2.3.3.6.4.3.1.6.1 1.1.1h.1l.2-1.2h-.1c-.4.1-.6 0-.7-.1zM9.2 16c-.2.3-.5.6-.9.8-.3.1-.7.2-1.1.2-.4 0-.7-.1-.9-.3-.2-.2-.3-.5-.3-.9 0-.6.2-1 .7-1.3.5-.3 1.3-.4 2.5-.5v2zm10.6-3.9c-.3-.6-.7-1.1-1.2-1.5-.6-.4-1.2-.6-1.9-.6-.5 0-.9.1-1.4.3-.4.2-.8.5-1.1.8V6h-1.4v12h1.3l.2-1c.2.4.6.6 1 .8.4.2.9.3 1.4.3.7 0 1.2-.2 1.8-.5.5-.4 1-.9 1.3-1.5.3-.6.5-1.3.5-2.1-.1-.6-.2-1.3-.5-1.9zm-1.7 4c-.4.5-.9.8-1.6.8s-1.2-.2-1.7-.7c-.4-.5-.7-1.2-.7-2.1 0-.9.2-1.6.7-2.1.4-.5 1-.7 1.7-.7s1.2.3 1.6.8c.4.5.6 1.2.6 2s-.2 1.4-.6 2z"})),Mc=Object(l.createElement)(Sr.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(Sr.Path,{d:"M7.1 6.8L3.1 18h1.6l1.1-3h4.3l1.1 3h1.6l-4-11.2H7.1zm-.8 6.8L8 8.9l1.7 4.7H6.3zm14.5-1.5c-.3-.6-.7-1.1-1.2-1.5-.6-.4-1.2-.6-1.9-.6-.5 0-.9.1-1.4.3-.4.2-.8.5-1.1.8V6h-1.4v12h1.3l.2-1c.2.4.6.6 1 .8.4.2.9.3 1.4.3.7 0 1.2-.2 1.8-.5.5-.4 1-.9 1.3-1.5.3-.6.5-1.3.5-2.1-.1-.6-.2-1.3-.5-1.9zm-1.7 4c-.4.5-.9.8-1.6.8s-1.2-.2-1.7-.7c-.4-.5-.7-1.2-.7-2.1 0-.9.2-1.6.7-2.1.4-.5 1-.7 1.7-.7s1.2.3 1.6.8c.4.5.6 1.2.6 2 .1.8-.2 1.4-.6 2z"})),Fc=[{name:Object(y.__)("Uppercase"),value:"uppercase",icon:Lc},{name:Object(y.__)("Lowercase"),value:"lowercase",icon:Rc},{name:Object(y.__)("Capitalize"),value:"capitalize",icon:Mc}];function Vc(e){var t=e.value,n=e.onChange;return Object(l.createElement)("fieldset",{className:"block-editor-text-transform-control"},Object(l.createElement)("legend",null,Object(y.__)("Letter case")),Object(l.createElement)("div",{className:"block-editor-text-transform-control__buttons"},Fc.map((function(e){return Object(l.createElement)(m.Button,{key:e.value,icon:e.icon,isSmall:!0,isPressed:t===e.value,"aria-label":e.name,onClick:function(){return n(t===e.value?void 0:e.value)}})}))))}function Hc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function zc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hc(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Gc(e){var t,n=e.attributes.style,r=e.setAttributes;return Uc(e)?null:Object(l.createElement)(Vc,{value:null==n||null===(t=n.typography)||void 0===t?void 0:t.textTransform,onChange:function(e){r({style:Eo(zc(zc({},n),{},{typography:zc(zc({},null==n?void 0:n.typography),{},{textTransform:e})}))})}})}function Uc(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,n=!Object(p.hasBlockSupport)(t,"__experimentalTextTransform"),r=_o("typography.customTextTransforms");return n||!r}function Wc(e){var t=!Ac(e),n=!Uc(e);return t||n?Object(l.createElement)("div",{className:"block-editor-text-decoration-and-transform"},t&&Object(l.createElement)(Dc,e),n&&Object(l.createElement)(Gc,e)):null}var Kc=n(17);function qc(e){var t=e.value,n=e.onChange,r=function(e){return void 0!==e&&""!==e}(t),o=r?t:"";return Object(l.createElement)("div",{className:"block-editor-line-height-control"},Object(l.createElement)(m.TextControl,{autoComplete:"off",onKeyDown:function(e){e.keyCode!==Kc.ZERO||r||(e.preventDefault(),n("0"))},onChange:function(e){if(r)n(e);else{var t=e;switch(e){case"".concat(.1):t=1.6;break;case"0":t=1.4}n(t)}},label:Object(y.__)("Line height"),placeholder:1.5,step:.1,type:"number",value:o,min:0}))}function $c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Yc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$c(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Xc(e){var t,n=e.attributes.style;return Qc(e)?null:Object(l.createElement)(qc,{value:null==n||null===(t=n.typography)||void 0===t?void 0:t.lineHeight,onChange:function(t){var r=Yc(Yc({},n),{},{typography:Yc(Yc({},null==n?void 0:n.typography),{},{lineHeight:t})});e.setAttributes({style:Eo(r)})}})}function Qc(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,n=!_o("typography.customLineHeight");return!Object(p.hasBlockSupport)(t,"lineHeight")||n}var Zc=[{name:Object(y.__)("Regular"),value:"normal"},{name:Object(y.__)("Italic"),value:"italic"}],Jc=[{name:Object(y.__)("Thin"),value:"100"},{name:Object(y.__)("Extra Light"),value:"200"},{name:Object(y.__)("Light"),value:"300"},{name:Object(y.__)("Regular"),value:"400"},{name:Object(y.__)("Medium"),value:"500"},{name:Object(y.__)("Semi Bold"),value:"600"},{name:Object(y.__)("Bold"),value:"700"},{name:Object(y.__)("Extra Bold"),value:"800"},{name:Object(y.__)("Black"),value:"900"}];function ei(e){var t=e.onChange,n=e.hasFontStyles,r=void 0===n||n,o=e.hasFontWeights,c=void 0===o||o,i=e.value,a=i.fontStyle,s=i.fontWeight,u=r||c,d={key:"default",name:Object(y.__)("Default"),style:{fontStyle:void 0,fontWeight:void 0}},b=Object(l.useMemo)((function(){return r&&c?(e=[d],Zc.forEach((function(t){var n=t.name,r=t.value;Jc.forEach((function(t){var o=t.name,c=t.value,i="normal"===r?o:Object(y.sprintf)(
10
  /* translators: 1: Font weight name. 2: Font style name. */
11
- Object(y.__)("%1$s %2$s"),o,n);e.push({key:"".concat(r,"-").concat(c),name:i,style:{fontStyle:r,fontWeight:c}})}))})),e):r?function(){var e=[d];return Zc.forEach((function(t){var n=t.name,r=t.value;e.push({key:r,name:n,style:{fontStyle:r,fontWeight:void 0}})})),e}():function(){var e=[d];return Jc.forEach((function(t){var n=t.name,r=t.value;e.push({key:r,name:n,style:{fontStyle:void 0,fontWeight:r}})})),e}();var e}),[e.options]),f=b.find((function(e){return e.style.fontStyle===a&&e.style.fontWeight===s}));return Object(l.createElement)("fieldset",{className:"components-font-appearance-control"},u&&Object(l.createElement)(m.CustomSelectControl,{className:"components-font-appearance-control__select",label:r?c?Object(y.__)("Appearance"):Object(y.__)("Font style"):Object(y.__)("Font weight"),options:b,value:f,onChange:function(e){var n=e.selectedItem;return t(n.style)}}))}function ti(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 ni(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ti(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ti(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ri(e){var t,n,r=e.attributes.style,o=e.setAttributes,c=!oi(e),i=!ci(e);if(!c&&!i)return null;var a=null==r||null===(t=r.typography)||void 0===t?void 0:t.fontStyle,s=null==r||null===(n=r.typography)||void 0===n?void 0:n.fontWeight;return Object(l.createElement)(ei,{onChange:function(e){o({style:Eo(ni(ni({},r),{},{typography:ni(ni({},null==r?void 0:r.typography),{},{fontStyle:e.fontStyle,fontWeight:e.fontWeight})}))})},hasFontStyles:c,hasFontWeights:i,value:{fontStyle:a,fontWeight:s}})}function oi(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,n=Object(p.hasBlockSupport)(t,"__experimentalFontStyle"),r=_o("typography.customFontStyle");return!n||!r}function ci(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,n=Object(p.hasBlockSupport)(t,"__experimentalFontWeight"),r=_o("typography.customFontWeight");return!n||!r}function ii(e){var t=oi(e),n=ci(e);return t&&n}function ai(e){var t=e.value,n=void 0===t?"":t,r=e.onChange,o=e.fontFamilies,c=Object(j.a)(e,["value","onChange","fontFamilies"]),a=_o("typography.fontFamilies");if(o||(o=a),Object(d.isEmpty)(o))return null;var s=[{value:"",label:Object(y.__)("Default")}].concat(Object(k.a)(o.map((function(e){var t=e.fontFamily;return{value:t,label:e.name||t}}))));return Object(l.createElement)(m.SelectControl,Object(i.a)({label:Object(y.__)("Font family"),options:s,value:n,onChange:r,labelPosition:"top"},c))}function li(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function si(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?li(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):li(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ui(e){var t,n=e.name,r=e.setAttributes,o=e.attributes.style,c=void 0===o?{}:o,i=_o("typography.fontFamilies");if(di({name:n}))return null;var a=function(e,t){var n=/var:preset\|font-family\|(.+)/.exec(t);if(n&&n[1]){var r=Object(d.find)(e,(function(e){return e.slug===n[1]}));if(r)return r.fontFamily}return t}(i,null===(t=c.typography)||void 0===t?void 0:t.fontFamily);return Object(l.createElement)(ai,{className:"block-editor-hooks-font-family-control",fontFamilies:i,value:a,onChange:function(e){var t=Object(d.find)(i,(function(t){return t.fontFamily===e}));r({style:Eo(si(si({},c),{},{typography:si(si({},c.typography||{}),{},{fontFamily:t?"var:preset|font-family|".concat(t.slug):e||void 0})}))})}})}function di(e){var t=e.name,n=_o("typography.fontFamilies");return!n||0===n.length||!Object(p.hasBlockSupport)(t,"__experimentalFontFamily")}var bi=n(191),fi=n.n(bi),pi=function(e,t,n){if(t){var r=Object(d.find)(e,{slug:t});if(r)return r}return{size:n}};function mi(e,t){return Object(d.find)(e,{size:t})||{size:t}}function vi(e){if(e)return"has-".concat(Object(d.kebabCase)(e),"-font-size")}var Oi=function(e){var t=_o("typography.fontSizes"),n=!_o("typography.customFontSize");return Object(l.createElement)(m.FontSizePicker,Object(i.a)({},e,{fontSizes:t,disableCustomFontSizes:n}))};function gi(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 hi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gi(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ji(e,t,n){if(!Object(p.hasBlockSupport)(t,"fontSize"))return e;var r=new fi.a(e.className);r.add(vi(n.fontSize));var o=r.value;return e.className=o||void 0,e}function ki(e){var t,n,r=e.attributes,o=r.fontSize,c=r.style,i=e.setAttributes,a=yi(e),s=_o("typography.fontSizes");if(a)return null;var u=pi(s,o,null==c||null===(t=c.typography)||void 0===t?void 0:t.fontSize),d=(null==u?void 0:u.size)||(null==c||null===(n=c.typography)||void 0===n?void 0:n.fontSize)||o;return Object(l.createElement)(Oi,{onChange:function(e){var t=mi(s,e).slug;i({style:Eo(hi(hi({},c),{},{typography:hi(hi({},null==c?void 0:c.typography),{},{fontSize:t?void 0:e})})),fontSize:t})},value:d})}function yi(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,n=_o("typography.fontSizes"),r=!(null==n||!n.length);return!Object(p.hasBlockSupport)(t,"fontSize")||!r}var _i=Object(b.createHigherOrderComponent)((function(e){return function(t){var n,r=_o("typography.fontSizes"),o=t.name,c=t.attributes,i=c.fontSize,a=c.style,s=t.wrapperProps,u=hi({},t);if(Object(p.hasBlockSupport)(o,"fontSize")&&i&&(null==a||null===(n=a.typography)||void 0===n||!n.fontSize)){var d,b=pi(r,i,null==a||null===(d=a.typography)||void 0===d?void 0:d.fontSize).size;u.wrapperProps=hi(hi({},s),{},{style:hi({fontSize:b},null==s?void 0:s.style)})}return Object(l.createElement)(e,u)}}),"withFontSizeInlineStyles");Object(f.addFilter)("blocks.registerBlockType","core/font/addAttribute",(function(e){return Object(p.hasBlockSupport)(e,"fontSize")?(e.attributes.fontSize||Object.assign(e.attributes,{fontSize:{type:"string"}}),e):e})),Object(f.addFilter)("blocks.getSaveContent.extraProps","core/font/addSaveProps",ji),Object(f.addFilter)("blocks.registerBlockType","core/font/addEditProps",(function(e){if(!Object(p.hasBlockSupport)(e,"fontSize"))return e;var t=e.getEditWrapperProps;return e.getEditWrapperProps=function(n){var r={};return t&&(r=t(n)),ji(r,e,n)},e})),Object(f.addFilter)("editor.BlockListBlock","core/font-size/with-font-size-inline-styles",_i);var Ei=["lineHeight","fontSize","__experimentalFontStyle","__experimentalFontWeight","__experimentalFontFamily","__experimentalTextDecoration","__experimentalTextTransform"];function wi(e){var t=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=[ii(e),yi(e),Qc(e),di(e),Ac(e),Uc(e)];return t.filter(Boolean).length===t.length}(e),n=Ci(e.name);return t||!n?null:Object(l.createElement)(bo,null,Object(l.createElement)(m.PanelBody,{title:Object(y.__)("Typography")},Object(l.createElement)(m.__unstableComponentSystemProvider,{__unstableNextInclude:["WPComponentsFontSizePicker"]},Object(l.createElement)(ui,e),Object(l.createElement)(ki,e),Object(l.createElement)(ri,e),Object(l.createElement)(Xc,e),Object(l.createElement)(Wc,e))))}var Ci=function(e){return"web"===l.Platform.OS&&Ei.some((function(t){return Object(p.hasBlockSupport)(e,t)}))};function Si(e){var t=e.units,n=Object(j.a)(e,["units"]),r=Bi(t);return Object(l.createElement)(m.__experimentalUnitControl,Object(i.a)({units:r},n))}function Bi(e){var t=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.filter((function(t){return e.includes(t.value)}))}(_o("spacing.units")||[],e);return 0!==t.length&&t}function Ii(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;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ii(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ii(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Pi(e){var t,n=e.name,r=e.attributes.style,o=e.setAttributes,c=Bi();return function(e){var t=Object(p.getBlockSupport)(e,"spacing");return t&&!1!==t.padding}(n)?l.Platform.select({web:Object(l.createElement)(l.Fragment,null,Object(l.createElement)(m.__experimentalBoxControl,{values:null==r||null===(t=r.spacing)||void 0===t?void 0:t.padding,onChange:function(e){var t=xi(xi({},r),{},{spacing:{padding:e}});o({style:Eo(t)})},onChangeShowVisualizer:function(e){var t=xi(xi({},r),{},{visualizers:{padding:e}});o({style:Eo(t)})},label:Object(y.__)("Padding"),units:c})),native:null}):null}function Ti(e){var t=e.children,n=Object(j.a)(e,["children"]);return _o("spacing.customPadding")?Object(l.createElement)(bo,n,Object(l.createElement)(m.PanelBody,{title:Object(y.__)("Spacing")},t)):null}function Ni(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 Di(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ni(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ni(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ai=[].concat(Object(k.a)(Ei),[xo,"color","spacing"]),Li=function(e){return Ai.some((function(t){return Object(p.hasBlockSupport)(e,t)}))};function Ri(e){if(Object(d.startsWith)(e,"var:")){var t=e.slice("var:".length).split("|").join("--");return"var(--wp--".concat(t,")")}return e}function Mi(e,t,n){if(!Li(t))return e;var r,o,c=(r=n.style,o=Object(a.a)({border:Object(p.getBlockSupport)(t,xo)},"color",Object(p.getBlockSupport)(t,"color")),Object(d.omitBy)(r,(function(e,t){var n;return!(null===(n=o[t])||void 0===n||!n.__experimentalSkipSerialization)})));return e.style=Di(Di({},function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={};return Object.keys(p.__EXPERIMENTAL_STYLE_PROPERTY).forEach((function(n){var r=p.__EXPERIMENTAL_STYLE_PROPERTY[n].value,o=p.__EXPERIMENTAL_STYLE_PROPERTY[n].properties;Object(d.has)(e,r)&&(o?o.forEach((function(o){t[n+Object(d.capitalize)(o)]=Ri(Object(d.get)(e,[].concat(Object(k.a)(r),[o])))})):t[n]=Ri(Object(d.get)(e,r)))})),t}(c)),e.style),e}var Fi=Object(b.createHigherOrderComponent)((function(e){return function(t){var n=t.name,r=Object(p.hasBlockSupport)(n,"spacing");return[Object(l.createElement)(wi,Object(i.a)({key:"typography"},t)),Object(l.createElement)(Po,Object(i.a)({key:"border"},t)),Object(l.createElement)(Cc,Object(i.a)({key:"colors"},t)),Object(l.createElement)(e,Object(i.a)({key:"edit"},t)),r&&Object(l.createElement)(Ti,{key:"spacing"},Object(l.createElement)(Pi,t))]}}),"withToolbarControls");Object(f.addFilter)("blocks.registerBlockType","core/style/addAttribute",(function(e){return Li(e)?(e.attributes.style||Object.assign(e.attributes,{style:{type:"object"}}),e):e})),Object(f.addFilter)("blocks.getSaveContent.extraProps","core/style/addSaveProps",Mi),Object(f.addFilter)("blocks.registerBlockType","core/style/addEditProps",(function(e){if(!Li(e))return e;var t=e.getEditWrapperProps;return e.getEditWrapperProps=function(n){var r={};return t&&(r=t(n)),Mi(r,e,n)},e})),Object(f.addFilter)("editor.BlockEdit","core/style/with-block-controls",Fi);var Vi=n(165);function Hi(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 zi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hi(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Gi="web"===l.Platform.OS,Ui=[{value:"%",label:Gi?"%":Object(y.__)("Percentage (%)"),default:""},{value:"px",label:Gi?"px":Object(y.__)("Pixels (px)"),default:""},{value:"em",label:Gi?"em":Object(y.__)("Relative to parent font size (em)"),default:""},{value:"rem",label:Gi?"rem":Object(y.__)("Relative to root font size (rem)"),default:""},{value:"vw",label:Gi?"vw":Object(y.__)("Viewport width (vw)"),default:""}];function Wi(e){var t=e.setAttributes,n=e.attributes.layout,r=void 0===n?{}:n,o=r.wideSize,c=r.contentSize,i=r.inherit,a=void 0!==i&&i,s=_o("layout");return Object(v.useSelect)((function(e){return(0,e(hr).getSettings)().supportsLayout}),[])?Object(l.createElement)(bo,null,Object(l.createElement)(m.PanelBody,{title:Object(y.__)("Layout")},!!s&&Object(l.createElement)(m.ToggleControl,{label:Object(y.__)("Inherit default layout"),checked:!!a,onChange:function(){return t({layout:{inherit:!a}})}}),!a&&Object(l.createElement)("div",{className:"block-editor-hooks__layout-controls"},Object(l.createElement)("div",{className:"block-editor-hooks__layout-controls-unit"},Object(l.createElement)(m.__experimentalUnitControl,{label:Object(y.__)("Content"),labelPosition:"top",__unstableInputWidth:"80px",value:c||o||"",onChange:function(e){e=0>parseFloat(e)?"0":e,t({layout:zi(zi({},r),{},{contentSize:e})})},units:Ui}),Object(l.createElement)(Vi.a,{icon:Ir})),Object(l.createElement)("div",{className:"block-editor-hooks__layout-controls-unit"},Object(l.createElement)(m.__experimentalUnitControl,{label:Object(y.__)("Wide"),labelPosition:"top",__unstableInputWidth:"80px",value:o||c||"",onChange:function(e){e=0>parseFloat(e)?"0":e,t({layout:zi(zi({},r),{},{wideSize:e})})},units:Ui}),Object(l.createElement)(Vi.a,{icon:Pr}))),Object(l.createElement)("p",{className:"block-editor-hooks__layout-controls-helptext"},Object(y.__)("Customize the width for all elements that are assigned to the center or wide columns.")))):null}var Ki=Object(b.createHigherOrderComponent)((function(e){return function(t){var n=t.name;return[Object(p.hasBlockSupport)(n,"__experimentalLayout")&&Object(l.createElement)(Wi,Object(i.a)({key:"layout"},t)),Object(l.createElement)(e,Object(i.a)({key:"edit"},t))]}}),"withInspectorControls"),qi=Object(b.createHigherOrderComponent)((function(e){return function(t){var n=t.name,r=t.attributes,o=Object(p.hasBlockSupport)(n,"__experimentalLayout"),c=Object(b.useInstanceId)(e),a=_o("layout")||{};if(!o)return Object(l.createElement)(e,t);var s=r.layout,d=void 0===s?{}:s,f=d&&d.inherit?a:d,m=u()(null==t?void 0:t.className,"wp-container-".concat(c));return Object(l.createElement)(l.Fragment,null,Object(l.createElement)(Mr,{selector:".wp-container-".concat(c),layout:f}),Object(l.createElement)(e,Object(i.a)({},t,{className:m})))}}));Object(f.addFilter)("blocks.registerBlockType","core/layout/addAttribute",(function(e){return Object(d.has)(e.attributes,["layout","type"])||Object(p.hasBlockSupport)(e,"__experimentalLayout")&&(e.attributes=zi(zi({},e.attributes),{},{layout:{type:"object"}})),e})),Object(f.addFilter)("editor.BlockListBlock","core/editor/layout/with-layout-styles",qi),Object(f.addFilter)("editor.BlockEdit","core/editor/layout/with-inspector-controls",Ki);var $i=n(28),Yi=n(30),Xi=n(19),Qi=n(32),Zi=n(33),Ji=n(24);function ea(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 ta(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ea(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ea(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var na=[],ra=function(e){return Object(b.createHigherOrderComponent)((function(t){return function(n){return Object(l.createElement)(t,Object(i.a)({},n,{colors:e}))}}),"withCustomColorPalette")},oa=function(){return Object(b.createHigherOrderComponent)((function(e){return function(t){var n=_o("color.palette")||na;return Object(l.createElement)(e,Object(i.a)({},t,{colors:n}))}}),"withEditorColorPalette")};function ca(e,t){var n=Object(d.reduce)(e,(function(e,t){return ta(ta({},e),Object(d.isString)(t)?Object(a.a)({},t,Object(d.kebabCase)(t)):t)}),{});return Object(b.compose)([t,function(e){return function(t){Object(Qi.a)(i,t);var r,o,c=(r=i,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Object(Ji.a)(r);if(o){var n=Object(Ji.a)(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return Object(Zi.a)(this,e)});function i(e){var t;return Object($i.a)(this,i),(t=c.call(this,e)).setters=t.createSetters(),t.colorUtils={getMostReadableColor:t.getMostReadableColor.bind(Object(Xi.a)(t))},t.state={},t}return Object(Yi.a)(i,[{key:"getMostReadableColor",value:function(e){return function(e,t){return Do.a.mostReadable(t,Object(d.map)(e,"color")).toHexString()}(this.props.colors,e)}},{key:"createSetters",value:function(){var e=this;return Object(d.reduce)(n,(function(t,n,r){var o=Object(d.upperFirst)(r),c="custom".concat(o);return t["set".concat(o)]=e.createSetColor(r,c),t}),{})}},{key:"createSetColor",value:function(e,t){var n=this;return function(r){var o,c=Lo(n.props.colors,r);n.props.setAttributes((o={},Object(a.a)(o,e,c&&c.slug?c.slug:void 0),Object(a.a)(o,t,c&&c.slug?void 0:r),o))}}},{key:"render",value:function(){return Object(l.createElement)(e,ta(ta(ta(ta({},this.props),{},{colors:void 0},this.state),this.setters),{},{colorUtils:this.colorUtils}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var r=e.attributes,o=e.colors;return Object(d.reduce)(n,(function(e,n,c){var i=Ao(o,r[c],r["custom".concat(Object(d.upperFirst)(c))]),a=t[c];return(null==a?void 0:a.color)===i.color&&a?e[c]=a:e[c]=ta(ta({},i),{},{class:Ro(n,i.slug)}),e}),{})}}]),i}(l.Component)}])}function ia(e){return function(){for(var t=ra(e),n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return Object(b.createHigherOrderComponent)(ca(r,t),"withCustomColors")}}function aa(){for(var e=oa(),t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Object(b.createHigherOrderComponent)(ca(n,e),"withColors")}var la=n(79),sa=n.n(la);function ua(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 da(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ua(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ua(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ba=function(e){var t=e.colorSettings,n=Object(j.a)(e,["colorSettings"]),r=t.map((function(e){var t=e.value,n=e.onChange;return da(da({},Object(j.a)(e,["value","onChange"])),{},{colorValue:t,onColorChange:n})}));return Object(l.createElement)(lc,Object(i.a)({settings:r,gradients:[],disableCustomGradients:!0},n))},fa=function(e,t,n){return"function"==typeof e?e(t):!0===e?n:e};function pa(e){var t=e.title,n=e.colorSettings,r=e.colorPanelProps,o=e.contrastCheckers,c=e.detectedBackgroundColor,a=e.detectedColor,s=e.panelChildren,u=e.initialOpen;return Object(l.createElement)(ba,Object(i.a)({title:t,initialOpen:u,colorSettings:Object.values(n)},r),o&&(Array.isArray(o)?o.map((function(e){var t=e.backgroundColor,r=e.textColor,o=Object(j.a)(e,["backgroundColor","textColor"]);return t=fa(t,n,c),r=fa(r,n,a),Object(l.createElement)(uc,Object(i.a)({key:"".concat(t,"-").concat(r),backgroundColor:t,textColor:r},o))})):Object(d.map)(n,(function(e){var t=e.value,r=o.backgroundColor,s=o.textColor;return r=fa(r||t,n,c),s=fa(s||t,n,a),Object(l.createElement)(uc,Object(i.a)({},o,{key:"".concat(r,"-").concat(s),backgroundColor:r,textColor:s}))}))),"function"==typeof s?s(n):s)}function ma(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return va(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?va(e,void 0):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,i=!0,a=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return i=e.done,e},e:function(e){a=!0,c=e},f:function(){try{i||null==n.return||n.return()}finally{if(a)throw c}}}}function va(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Oa(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 ga(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Oa(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Oa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ha(e){return e.ownerDocument.defaultView.getComputedStyle(e)}var ja=[],ka={textColor:Object(y.__)("Text Color"),backgroundColor:Object(y.__)("Background Color")},ya=function(e){return Object(l.createElement)(bo,null,Object(l.createElement)(pa,e))};function _a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{panelTitle:Object(y.__)("Color settings")},n=t.panelTitle,r=void 0===n?Object(y.__)("Color settings"):n,o=t.colorPanelProps,c=t.contrastCheckers,i=t.panelChildren,s=t.colorDetector,b=(s=void 0===s?{}:s).targetRef,f=s.backgroundColorTargetRef,p=void 0===f?b:f,m=s.textColorTargetRef,O=void 0===m?b:m,g=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],j=h(),_=j.clientId,E=_o("color.palette")||ja,w=Object(v.useSelect)((function(e){return{attributes:(0,e(hr).getBlockAttributes)(_)}}),[_]),C=w.attributes,S=Object(v.useDispatch)(hr),B=S.updateBlockAttributes,I=Object(l.useCallback)((function(e){return B(_,e)}),[B,_]),x=Object(l.useMemo)((function(){return sa()((function(e,t,n,r,o,c){return function(i){var s,b=i.children,f=i.className,p=void 0===f?"":f,m=i.style,v=void 0===m?{}:m,O={};r?O=Object(a.a)({},t,o):c&&(O=Object(a.a)({},t,c));var g={className:u()(p,(s={},Object(a.a)(s,"has-".concat(Object(d.kebabCase)(r),"-").concat(Object(d.kebabCase)(t)),r),Object(a.a)(s,n||"has-".concat(Object(d.kebabCase)(e)),r||c),s)),style:ga(ga({},O),v)};return Object(d.isFunction)(b)?b(g):l.Children.map(b,(function(e){return Object(l.cloneElement)(e,{className:u()(e.props.className,g.className),style:ga(ga({},g.style),e.props.style||{})})}))}}),{maxSize:e.length})}),[e.length]),P=Object(l.useMemo)((function(){return sa()((function(e,t){return function(n){var r=t.find((function(e){return e.color===n}));I(Object(a.a)({},r?Object(d.camelCase)("custom ".concat(e)):e,void 0)),I(Object(a.a)({},r?e:Object(d.camelCase)("custom ".concat(e)),r?r.slug:n))}}),{maxSize:e.length})}),[I,e.length]),T=Object(l.useState)(),N=Object(Uo.a)(T,2),D=N[0],A=N[1],L=Object(l.useState)(),R=Object(Uo.a)(L,2),M=R[0],F=R[1];return Object(l.useEffect)((function(){if(c){var e,t=!1,n=!1,r=ma(Object(d.castArray)(c));try{for(r.s();!(e=r.n()).done;){var o=e.value,i=o.backgroundColor,a=o.textColor;if(t||(t=!0===i),n||(n=!0===a),t&&n)break}}catch(e){r.e(e)}finally{r.f()}if(n&&F(ha(O.current).color),t){for(var l=p.current,s=ha(l).backgroundColor;"rgba(0, 0, 0, 0)"===s&&l.parentNode&&l.parentNode.nodeType===l.parentNode.ELEMENT_NODE;)s=ha(l=l.parentNode).backgroundColor;A(s)}}}),[e.reduce((function(e,t){return"".concat(e," | ").concat(C[t.name]," | ").concat(C[Object(d.camelCase)("custom ".concat(t.name))])}),"")].concat(Object(k.a)(g))),Object(l.useMemo)((function(){var t={},n=e.reduce((function(e,n){"string"==typeof n&&(n={name:n});var r=ga(ga({},n),{},{color:C[n.name]}),o=r.name,c=r.property,i=void 0===c?o:c,a=r.className,l=r.panelLabel,s=void 0===l?n.label||ka[o]||Object(d.startCase)(o):l,u=r.componentName,b=void 0===u?Object(d.startCase)(o).replace(/\s/g,""):u,f=r.color,p=void 0===f?n.color:f,m=r.colors,v=void 0===m?E:m,O=C[Object(d.camelCase)("custom ".concat(o))],g=O?void 0:v.find((function(e){return e.slug===p}));return e[b]=x(o,i,a,p,g&&g.color,O),e[b].displayName=b,e[b].color=O||g&&g.color,e[b].slug=p,e[b].setColor=P(o,v),t[b]={value:g?g.color:C[Object(d.camelCase)("custom ".concat(o))],onChange:e[b].setColor,label:s,colors:v},v||delete t[b].colors,e}),{}),a={title:r,initialOpen:!1,colorSettings:t,colorPanelProps:o,contrastCheckers:c,detectedBackgroundColor:D,detectedColor:M,panelChildren:i};return ga(ga({},n),{},{ColorPanel:Object(l.createElement)(pa,a),InspectorControlsColorPanel:Object(l.createElement)(ya,a)})}),[C,I,M,D].concat(Object(k.a)(g)))}function Ea(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 wa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ea(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ea(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ca(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ji.a)(e);if(t){var o=Object(Ji.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Zi.a)(this,n)}}var Sa=[],Ba=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Object(d.reduce)(t,(function(e,t){return e[t]="custom".concat(Object(d.upperFirst)(t)),e}),{});return Object(b.createHigherOrderComponent)(Object(b.compose)([Object(b.createHigherOrderComponent)((function(e){return function(t){var n=_o("typography.fontSizes")||Sa;return Object(l.createElement)(e,Object(i.a)({},t,{fontSizes:n}))}}),"withFontSizes"),function(e){return function(t){Object(Qi.a)(o,t);var n=Ca(o);function o(e){var t;return Object($i.a)(this,o),(t=n.call(this,e)).setters=t.createSetters(),t.state={},t}return Object(Yi.a)(o,[{key:"createSetters",value:function(){var e=this;return Object(d.reduce)(r,(function(t,n,r){var o=Object(d.upperFirst)(r);return t["set".concat(o)]=e.createSetFontSize(r,n),t}),{})}},{key:"createSetFontSize",value:function(e,t){var n=this;return function(r){var o,c=Object(d.find)(n.props.fontSizes,{size:Number(r)});n.props.setAttributes((o={},Object(a.a)(o,e,c&&c.slug?c.slug:void 0),Object(a.a)(o,t,c&&c.slug?void 0:r),o))}}},{key:"render",value:function(){return Object(l.createElement)(e,wa(wa(wa({},this.props),{},{fontSizes:void 0},this.state),this.setters))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.attributes,o=e.fontSizes,c=function(e,r){return!t[r]||(n[r]?n[r]!==t[r].slug:t[r].size!==n[e])};if(!Object(d.some)(r,c))return null;var i=Object(d.reduce)(Object(d.pickBy)(r,c),(function(e,t,r){var c=n[r],i=pi(o,c,n[t]);return e[r]=wa(wa({},i),{},{class:vi(c)}),e}),{});return wa(wa({},t),i)}}]),o}(l.Component)}]),"withFontSizes")},Ia=n(407),xa=n(408),Pa=n(409);function Ta(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 Na(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ta(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ta(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Da=[{icon:Ia.a,title:Object(y.__)("Align text left"),align:"left"},{icon:xa.a,title:Object(y.__)("Align text center"),align:"center"},{icon:Pa.a,title:Object(y.__)("Align text right"),align:"right"}],Aa={position:"bottom right",isAlternate:!0},La=function(e){var t=e.value,n=e.onChange,r=e.alignmentControls,o=void 0===r?Da:r,c=e.label,a=void 0===c?Object(y.__)("Align"):c,s=e.describedBy,u=void 0===s?Object(y.__)("Change text alignment"):s,b=e.isCollapsed,f=void 0===b||b,p=e.isToolbar,v=e.isToolbarButton,O=void 0===v||v;function g(e){return function(){return n(t===e?void 0:e)}}var h=Object(d.find)(o,(function(e){return e.align===t})),j=p?m.ToolbarGroup:m.DropdownMenu,k=p?{isCollapsed:f}:{isToolbarButton:O};return Object(l.createElement)(j,Object(i.a)({icon:h?h.icon:Object(y.isRTL)()?Pa.a:Ia.a,label:a,toggleProps:{describedBy:u},popoverProps:Aa,controls:o.map((function(e){var n=e.align,r=t===n;return Na(Na({},e),{},{isActive:r,role:f?"menuitemradio":void 0,onClick:g(n)})}))},k))};function Ra(e){return Object(l.createElement)(La,Object(i.a)({},e,{isToolbar:!1}))}function Ma(e){return Object(l.createElement)(La,Object(i.a)({},e,{isToolbar:!0}))}var Fa=function(e){return e.name||""},Va=function(e){return e.title},Ha=function(e){return e.description||""},za=function(e){return e.keywords||[]},Ga=function(e){return e.category},Ua=function(){return null};function Wa(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return(e=(e=Object(d.deburr)(e)).replace(/^\//,"")).toLowerCase()}var Ka=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return Object(d.words)(Wa(e))},qa=function(e,t){return Object(d.differenceWith)(e,Ka(t),(function(e,t){return t.includes(e)}))},$a=function(e,t,n,r){return 0===Ka(r).length?e:Ya(e,r,{getCategory:function(e){var n;return null===(n=Object(d.find)(t,{slug:e.category}))||void 0===n?void 0:n.title},getCollection:function(e){var t;return null===(t=n[e.name.split("/")[0]])||void 0===t?void 0:t.title}})},Ya=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Ka(t);if(0===r.length)return e;var o=e.map((function(e){return[e,Xa(e,t,n)]})).filter((function(e){return Object(Uo.a)(e,2)[1]>0}));return o.sort((function(e,t){var n=Object(Uo.a)(e,2)[1];return Object(Uo.a)(t,2)[1]-n})),o.map((function(e){return Object(Uo.a)(e,1)[0]}))};function Xa(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.getName,o=void 0===r?Fa:r,c=n.getTitle,i=void 0===c?Va:c,a=n.getDescription,l=void 0===a?Ha:a,s=n.getKeywords,u=void 0===s?za:s,b=n.getCategory,f=void 0===b?Ga:b,p=n.getCollection,m=void 0===p?Ua:p,v=o(e),O=i(e),g=l(e),h=u(e),j=f(e),y=m(e),_=Wa(t),E=Wa(O),w=0;if(_===E)w+=30;else if(E.startsWith(_))w+=20;else{var C=[v,O,g].concat(Object(k.a)(h),[j,y]).join(" "),S=Object(d.words)(_),B=qa(S,C);0===B.length&&(w+=10)}return 0!==w&&v.startsWith("core/")&&w++,w}var Qa=function(e,t){var n=Object(v.useSelect)((function(t){var n=t(hr).getInserterItems,r=t(p.store),o=r.getCategories,c=r.getCollections;return{categories:o(),collections:c(),items:n(e)}}),[e]),r=n.categories,o=n.collections;return[n.items,r,o,Object(l.useCallback)((function(e,n){var r=e.name,o=e.initialAttributes,c=e.innerBlocks,i=Object(p.createBlock)(r,o,Object(p.createBlocksFromInnerBlocksTemplate)(c));t(i,void 0,n)}),[t])]},Za=n(206);function Ja(e){var t,n=e.icon,r=e.showColors,o=void 0!==r&&r,c=e.className;"block-default"===(null===(t=n)||void 0===t?void 0:t.src)&&(n={src:Za.a});var i=Object(l.createElement)(m.Icon,{icon:n&&n.src?n.src:n}),a=o?{backgroundColor:n&&n.background,color:n&&n.foreground}:{};return Object(l.createElement)("span",{style:a,className:u()("block-editor-block-icon",c,{"has-colors":o})},i)}var el={name:"blocks",className:"block-editor-autocompleters__block",triggerPrefix:"/",useItems:function(e){var t=Object(v.useSelect)((function(e){var t=e(hr),n=t.getSelectedBlockClientId,r=t.getBlockName,o=t.getBlockInsertionPoint,c=n();return{selectedBlockName:c?r(c):null,rootClientId:o().rootClientId}}),[]),n=t.rootClientId,r=t.selectedBlockName,o=Qa(n,d.noop),c=Object(Uo.a)(o,3),i=c[0],a=c[1],s=c[2],u=Object(l.useMemo)((function(){return(e.trim()?$a(i,a,s,e):Object(d.orderBy)(i,["frecency"],["desc"])).filter((function(e){return e.name!==r})).slice(0,9)}),[e,r,i,a,s]);return[Object(l.useMemo)((function(){return u.map((function(e){var t=e.title,n=e.icon,r=e.isDisabled;return{key:"block-".concat(e.id),value:e,label:Object(l.createElement)(l.Fragment,null,Object(l.createElement)(Ja,{key:"icon",icon:n,showColors:!0}),t),isDisabled:r}}))}),[u])]},allowContext:function(e,t){return!(/\S/.test(e)||/\S/.test(t))},getOptionCompletion:function(e){var t=e.name,n=e.initialAttributes,r=e.innerBlocks;return{action:"replace",value:Object(p.createBlock)(t,n,Object(p.createBlocksFromInnerBlocksTemplate)(r))}}},tl=[],nl=function(e){var t=h().name,n=e.completers,r=void 0===n?tl:n;return r=Object(l.useMemo)((function(){var e=r;return t===Object(p.getDefaultBlockName)()&&(e=e.concat([el])),Object(f.hasFilter)("editor.Autocomplete.completers")&&(e===r&&(e=e.map(d.clone)),e=Object(f.applyFilters)("editor.Autocomplete.completers",e,t)),e}),[r,t]),Object(l.createElement)(m.Autocomplete,Object(i.a)({},e,{completers:r}))},rl=Object(l.createElement)(Sr.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(Sr.Path,{d:"M4.2 9h1.5V5.8H9V4.2H4.2V9zm14 9.2H15v1.5h4.8V15h-1.5v3.2zM15 4.2v1.5h3.2V9h1.5V4.2H15zM5.8 15H4.2v4.8H9v-1.5H5.8V15z"})),ol=function(e){var t=e.isActive,n=e.label,r=void 0===n?Object(y.__)("Toggle full height"):n,o=e.onToggle,c=e.isDisabled;return Object(l.createElement)(m.ToolbarButton,{isActive:t,icon:rl,label:r,onClick:function(){return o(!t)},disabled:c})},cl=function(e){var t=e.label,n=void 0===t?Object(y.__)("Change matrix alignment"):t,r=e.onChange,o=void 0===r?d.noop:r,c=e.value,i=void 0===c?"center":c,a=e.isDisabled,s=Object(l.createElement)(m.__experimentalAlignmentMatrixControl.Icon,{value:i}),u="block-editor-block-alignment-matrix-control",b="".concat(u,"__popover");return Object(l.createElement)(m.Dropdown,{position:"bottom right",className:u,popoverProps:{className:b,isAlternate:!0},renderToggle:function(e){var t=e.onToggle,r=e.isOpen;return Object(l.createElement)(m.ToolbarButton,{onClick:t,"aria-haspopup":"true","aria-expanded":r,onKeyDown:function(e){r||e.keyCode!==Kc.DOWN||(e.preventDefault(),e.stopPropagation(),t())},label:n,icon:s,showTooltip:!0,disabled:a})},renderContent:function(){return Object(l.createElement)(m.__experimentalAlignmentMatrixControl,{hasFocusBorder:!1,onChange:o,value:i})}})};function il(e){return Object(v.useSelect)((function(t){if(!e)return null;var n=t(hr),r=n.getBlockName,o=n.getBlockAttributes,c=t(p.store),i=c.getBlockType,a=c.getBlockVariations,l=r(e),s=i(l);if(!s)return null;var u=a(l),d={title:s.title,icon:s.icon,description:s.description};if(null==u||!u.length)return d;var b=o(e),f=u.find((function(e){var t;return null===(t=e.isActive)||void 0===t?void 0:t.call(e,b,e.attributes)}));return f?{title:f.title||s.title,icon:f.icon||s.icon,description:f.description||s.description}:d}),[e])}function al(e){var t=e.clientId,n=Object(v.useSelect)((function(e){if(!t)return{};var n=e(hr),r=n.getBlockName,o=n.getBlockAttributes,c=n.__experimentalGetReusableBlockTitle,i=r(t);if(!i)return{};var a=Object(p.isReusableBlock)(Object(p.getBlockType)(i));return{attributes:o(t),name:i,reusableBlockTitle:a&&c(o(t).ref)}}),[t]),r=n.attributes,o=n.name,c=n.reusableBlockTitle,i=il(t);if(!o||!i)return null;var a=Object(p.getBlockType)(o),l=c||Object(p.__experimentalGetBlockLabel)(a,r);return l!==a.title?Object(d.truncate)(l,{length:35}):i.title}var ll=function(){var e=Object(v.useDispatch)(hr),t=e.selectBlock,n=e.clearSelectedBlock,r=Object(v.useSelect)((function(e){var t=e(hr),n=t.getSelectionStart,r=t.getSelectedBlockClientId,o=t.getBlockParents,c=r();return{parents:o(c),clientId:c,hasSelection:!!n().clientId}}),[]),o=r.clientId,c=r.parents,i=r.hasSelection;return Object(l.createElement)("ul",{className:"block-editor-block-breadcrumb",role:"list","aria-label":Object(y.__)("Block breadcrumb")},Object(l.createElement)("li",{className:i?void 0:"block-editor-block-breadcrumb__current","aria-current":i?void 0:"true"},i&&Object(l.createElement)(m.Button,{className:"block-editor-block-breadcrumb__button",isTertiary:!0,onClick:n},Object(y.__)("Document")),!i&&Object(y.__)("Document")),c.map((function(e){return Object(l.createElement)("li",{key:e},Object(l.createElement)(m.Button,{className:"block-editor-block-breadcrumb__button",isTertiary:!0,onClick:function(){return t(e)}},Object(l.createElement)(al,{clientId:e})))})),!!o&&Object(l.createElement)("li",{className:"block-editor-block-breadcrumb__current","aria-current":"true"},Object(l.createElement)(al,{clientId:o})))};function sl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ul(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sl(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var dl=Object(l.createContext)({});function bl(e){var t=e.value,n=e.children,r=Object(l.useContext)(dl),o=Object(l.useMemo)((function(){return ul(ul({},r),t)}),[r,t]);return Object(l.createElement)(dl.Provider,{value:o,children:n})}var fl=dl,pl=function(){return Object(l.createElement)(m.SVG,{xmlns:"https://www.w3.org/2000/svg",viewBox:"0 0 20 20"},Object(l.createElement)(m.Path,{d:"M7.434 5l3.18 9.16H8.538l-.692-2.184H4.628l-.705 2.184H2L5.18 5h2.254zm-1.13 1.904h-.115l-1.148 3.593H7.44L6.304 6.904zM14.348 7.006c1.853 0 2.9.876 2.9 2.374v4.78h-1.79v-.914h-.114c-.362.64-1.123 1.022-2.031 1.022-1.346 0-2.292-.826-2.292-2.108 0-1.27.972-2.006 2.71-2.107l1.696-.102V9.38c0-.584-.42-.914-1.18-.914-.667 0-1.112.228-1.264.647h-1.701c.12-1.295 1.307-2.107 3.066-2.107zm1.079 4.1l-1.416.09c-.793.056-1.18.342-1.18.844 0 .52.45.837 1.091.837.857 0 1.505-.545 1.505-1.256v-.515z"}))},ml=function(e){var t=e.style,n=e.className;return Object(l.createElement)("div",{className:"block-library-colors-selector__icon-container"},Object(l.createElement)("div",{className:"".concat(n," block-library-colors-selector__state-selection"),style:t},Object(l.createElement)(pl,null)))},vl=function(e){var t,n,r,o=e.children,c=Object(j.a)(e,["children"]);return Object(l.createElement)(m.Dropdown,{position:"bottom right",className:"block-library-colors-selector",contentClassName:"block-library-colors-selector__popover",renderToggle:(t=c,n=t.TextColor,r=t.BackgroundColor,function(e){var t=e.onToggle,o=e.isOpen;return Object(l.createElement)(m.ToolbarGroup,null,Object(l.createElement)(m.ToolbarButton,{className:"components-toolbar__control block-library-colors-selector__toggle",label:Object(y.__)("Open Colors Selector"),onClick:t,onKeyDown:function(e){o||e.keyCode!==Kc.DOWN||(e.preventDefault(),e.stopPropagation(),t())},icon:Object(l.createElement)(r,null,Object(l.createElement)(n,null,Object(l.createElement)(ml,null)))}))}),renderContent:function(){return o}})},Ol={},gl=Object(m.withFilters)("editor.BlockEdit")((function(e){var t=e.attributes,n=void 0===t?{}:t,r=e.name,o=Object(p.getBlockType)(r),c=Object(l.useContext)(fl),a=Object(l.useMemo)((function(){return o&&o.usesContext?Object(d.pick)(c,o.usesContext):Ol}),[o,c]);if(!o)return null;var s=o.edit||o.save;if(o.apiVersion>1||Object(p.hasBlockSupport)(o,"lightBlockWrapper",!1))return Object(l.createElement)(s,Object(i.a)({},e,{context:a}));var b=Object(p.hasBlockSupport)(o,"className",!0)?Object(p.getBlockDefaultClassName)(r):null,f=u()(b,n.className);return Object(l.createElement)(s,Object(i.a)({},e,{context:a,className:f}))}));function hl(e){var t={name:e.name,isSelected:e.isSelected,clientId:e.clientId};return Object(l.createElement)(g,{value:Object(l.useMemo)((function(){return t}),Object.values(t))},Object(l.createElement)(gl,e))}var jl=n(47),kl=n(280),yl=n(46),_l=n(284),El=n(142),wl=n(35),Cl=function(e){return e+1},Sl=function(e){return{top:e.offsetTop,left:e.offsetLeft}},Bl=function(e){var t=e.isSelected,n=e.adjustScrolling,r=e.enableAnimation,o=e.triggerAnimationOnChange,c=Object(l.useRef)(),i=Object(b.useReducedMotion)()||!r,a=Object(l.useReducer)(Cl,0),s=Object(Uo.a)(a,2),u=s[0],d=s[1],f=Object(l.useReducer)(Cl,0),p=Object(Uo.a)(f,2),m=p[0],v=p[1],O=Object(l.useState)({x:0,y:0}),g=Object(Uo.a)(O,2),h=g[0],j=g[1],k=Object(l.useMemo)((function(){return c.current?Sl(c.current):null}),[o]),y=Object(l.useMemo)((function(){if(!n||!c.current)return function(){};var e=Object(wl.getScrollContainer)(c.current);if(!e)return function(){};var t=c.current.getBoundingClientRect();return function(){var n=c.current.getBoundingClientRect().top-t.top;n&&(e.scrollTop+=n)}}),[o,n]);function _(e){var n=e.x,r=e.y;n=Math.round(n),r=Math.round(r),n===_.x&&r===_.y||(function(e){var n=e.x,r=e.y;if(c.current){var o=0===n&&0===r;c.current.style.transformOrigin=o?"":"center",c.current.style.transform=o?"":"translate3d(".concat(n,"px,").concat(r,"px,0)"),c.current.style.zIndex=!t||o?"":"1",y()}}({x:n,y:r}),_.x=n,_.y=r)}return Object(l.useLayoutEffect)((function(){u&&v()}),[u]),Object(l.useLayoutEffect)((function(){if(k)if(i)y();else{c.current.style.transform="";var e=Sl(c.current);d(),j({x:Math.round(k.left-e.left),y:Math.round(k.top-e.top)})}}),[o]),_.x=0,_.y=0,Object(El.useSpring)({from:{x:h.x,y:h.y},to:{x:0,y:0},reset:u!==m,config:{mass:5,tension:2e3,friction:200},immediate:i,onFrame:_}),c},Il=Object(El.animated)(m.__experimentalTreeGridRow);function xl(e){var t=e.isSelected,n=e.position,r=e.level,o=e.rowCount,c=e.children,a=e.className,s=e.path,d=Object(j.a)(e,["isSelected","position","level","rowCount","children","className","path"]),b=Bl({isSelected:t,adjustScrolling:!1,enableAnimation:!0,triggerAnimationOnChange:s.join("_")});return Object(l.createElement)(Il,Object(i.a)({ref:b,className:u()("block-editor-block-navigation-leaf",a),level:r,positionInSet:n,setSize:o},d),c)}var Pl=n(282),Tl=n(283),Nl=n(410),Dl=n(238);var Al=function(e,t){return"up"===e?"horizontal"===t?Object(y.isRTL)()?Pl.a:Tl.a:Nl.a:"down"===e?"horizontal"===t?Object(y.isRTL)()?Tl.a:Pl.a:Dl.a:null},Ll=function(e,t){return"up"===e?"horizontal"===t?Object(y.isRTL)()?Object(y.__)("Move right"):Object(y.__)("Move left"):Object(y.__)("Move up"):"down"===e?"horizontal"===t?Object(y.isRTL)()?Object(y.__)("Move left"):Object(y.__)("Move right"):Object(y.__)("Move down"):null},Rl=Object(l.forwardRef)((function(e,t){var n=e.clientIds,r=e.direction,o=e.orientation,c=Object(j.a)(e,["clientIds","direction","orientation"]),a=Object(b.useInstanceId)(Rl),s=Object(d.castArray)(n).length,f=Object(v.useSelect)((function(e){var t=e(hr),c=t.getBlockIndex,i=t.getBlockRootClientId,a=t.getBlockOrder,l=t.getBlock,s=t.getBlockListSettings,u=Object(d.castArray)(n),b=Object(d.first)(u),f=i(b),m=c(b,f),v=c(Object(d.last)(u),f),O=a(f),g=l(b),h=0===m,j=v===O.length-1,k=(s(f)||{}).orientation;return{blockType:g?Object(p.getBlockType)(g.name):null,isDisabled:"up"===r?h:j,rootClientId:f,firstIndex:m,isFirst:h,isLast:j,orientation:o||k}}),[n,r]),O=f.blockType,g=f.isDisabled,h=f.rootClientId,k=f.isFirst,_=f.isLast,E=f.firstIndex,w=f.orientation,C=void 0===w?"vertical":w,S=Object(v.useDispatch)(hr),B=S.moveBlocksDown,I=S.moveBlocksUp,x="up"===r?I:B,P="block-editor-block-mover-button__description-".concat(a);return Object(l.createElement)(l.Fragment,null,Object(l.createElement)(m.Button,Object(i.a)({ref:t,className:u()("block-editor-block-mover-button","is-".concat(r,"-button")),icon:Al(r,C),label:Ll(r,C),"aria-describedby":P},c,{onClick:g?null:function(e){x(n,h),c.onClick&&c.onClick(e)},"aria-disabled":g})),Object(l.createElement)("span",{id:P,className:"block-editor-block-mover-button__description"},function(e,t,n,r,o,c,i){var a=n+1,l=function(e){return"up"===e?"horizontal"===i?Object(y.isRTL)()?"right":"left":"up":"down"===e?"horizontal"===i?Object(y.isRTL)()?"left":"right":"down":null};if(e>1)return function(e,t,n,r,o){var c=t+1;return o<0&&n?Object(y.__)("Blocks cannot be moved up as they are already at the top"):o>0&&r?Object(y.__)("Blocks cannot be moved down as they are already at the bottom"):o<0&&!n?Object(y.sprintf)(// translators: 1: Number of selected blocks, 2: Position of selected blocks
12
- Object(y._n)("Move %1$d block from position %2$d up by one place","Move %1$d blocks from position %2$d up by one place",e),e,c):o>0&&!r?Object(y.sprintf)(// translators: 1: Number of selected blocks, 2: Position of selected blocks
13
- Object(y._n)("Move %1$d block from position %2$d down by one place","Move %1$d blocks from position %2$d down by one place",e),e,c):void 0}(e,n,r,o,c);if(r&&o)return Object(y.sprintf)(// translators: %s: Type of block (i.e. Text, Image etc)
14
- Object(y.__)("Block %s is the only block, and cannot be moved"),t);if(c>0&&!o){var s=l("down");if("down"===s)return Object(y.sprintf)(// translators: 1: Type of block (i.e. Text, Image etc), 2: Position of selected block, 3: New position
15
- Object(y.__)("Move %1$s block from position %2$d down to position %3$d"),t,a,a+1);if("left"===s)return Object(y.sprintf)(// translators: 1: Type of block (i.e. Text, Image etc), 2: Position of selected block, 3: New position
16
- Object(y.__)("Move %1$s block from position %2$d left to position %3$d"),t,a,a+1);if("right"===s)return Object(y.sprintf)(// translators: 1: Type of block (i.e. Text, Image etc), 2: Position of selected block, 3: New position
17
- Object(y.__)("Move %1$s block from position %2$d right to position %3$d"),t,a,a+1)}if(c>0&&o){var u=l("down");if("down"===u)return Object(y.sprintf)(// translators: 1: Type of block (i.e. Text, Image etc)
18
- Object(y.__)("Block %1$s is at the end of the content and can’t be moved down"),t);if("left"===u)return Object(y.sprintf)(// translators: 1: Type of block (i.e. Text, Image etc)
19
- Object(y.__)("Block %1$s is at the end of the content and can’t be moved left"),t);if("right"===u)return Object(y.sprintf)(// translators: 1: Type of block (i.e. Text, Image etc)
20
- Object(y.__)("Block %1$s is at the end of the content and can’t be moved right"),t)}if(c<0&&!r){var d=l("up");if("up"===d)return Object(y.sprintf)(// translators: 1: Type of block (i.e. Text, Image etc), 2: Position of selected block, 3: New position
21
- Object(y.__)("Move %1$s block from position %2$d up to position %3$d"),t,a,a-1);if("left"===d)return Object(y.sprintf)(// translators: 1: Type of block (i.e. Text, Image etc), 2: Position of selected block, 3: New position
22
- Object(y.__)("Move %1$s block from position %2$d left to position %3$d"),t,a,a-1);if("right"===d)return Object(y.sprintf)(// translators: 1: Type of block (i.e. Text, Image etc), 2: Position of selected block, 3: New position
23
- Object(y.__)("Move %1$s block from position %2$d right to position %3$d"),t,a,a-1)}if(c<0&&r){var b=l("up");if("up"===b)return Object(y.sprintf)(// translators: 1: Type of block (i.e. Text, Image etc)
24
- Object(y.__)("Block %1$s is at the beginning of the content and can’t be moved up"),t);if("left"===b)return Object(y.sprintf)(// translators: 1: Type of block (i.e. Text, Image etc)
25
- Object(y.__)("Block %1$s is at the beginning of the content and can’t be moved left"),t);if("right"===b)return Object(y.sprintf)(// translators: 1: Type of block (i.e. Text, Image etc)
26
- Object(y.__)("Block %1$s is at the beginning of the content and can’t be moved right"),t)}}(s,O&&O.title,E,k,_,"up"===r?-1:1,C)))})),Ml=Object(l.forwardRef)((function(e,t){return Object(l.createElement)(Rl,Object(i.a)({direction:"up",ref:t},e))})),Fl=Object(l.forwardRef)((function(e,t){return Object(l.createElement)(Rl,Object(i.a)({direction:"down",ref:t},e))})),Vl=Object(l.createContext)({__experimentalFeatures:!1,__experimentalPersistentListViewFeatures:!1}),Hl=function(){return Object(l.useContext)(Vl)},zl=Object(l.createElement)(Sr.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(Sr.Path,{d:"M11 13h2v-2h-2v2zm-6 0h2v-2H5v2zm12-2v2h2v-2h-2z"})),Gl=function(e){var t=e.className,n=e.actions,r=e.children,o=e.secondaryActions;return Object(l.createElement)("div",{className:u()(t,"block-editor-warning")},Object(l.createElement)("div",{className:"block-editor-warning__contents"},Object(l.createElement)("p",{className:"block-editor-warning__message"},r),(l.Children.count(n)>0||o)&&Object(l.createElement)("div",{className:"block-editor-warning__actions"},l.Children.count(n)>0&&l.Children.map(n,(function(e,t){return Object(l.createElement)("span",{key:t,className:"block-editor-warning__action"},e)})),o&&Object(l.createElement)(m.DropdownMenu,{className:"block-editor-warning__secondary",icon:zl,label:Object(y.__)("More options"),popoverProps:{position:"bottom left",className:"block-editor-warning__dropdown"},noIcons:!0},(function(){return Object(l.createElement)(m.MenuGroup,null,o.map((function(e,t){return Object(l.createElement)(m.MenuItem,{onClick:e.onClick,key:t},e.title)})))})))))},Ul=n(357),Wl=function(e){var t=e.title,n=e.rawContent,r=e.renderedContent,o=e.action,c=e.actionText,i=e.className;return Object(l.createElement)("div",{className:i},Object(l.createElement)("div",{className:"block-editor-block-compare__content"},Object(l.createElement)("h2",{className:"block-editor-block-compare__heading"},t),Object(l.createElement)("div",{className:"block-editor-block-compare__html"},n),Object(l.createElement)("div",{className:"block-editor-block-compare__preview edit-post-visual-editor"},r)),Object(l.createElement)("div",{className:"block-editor-block-compare__action"},Object(l.createElement)(m.Button,{isSecondary:!0,tabIndex:"0",onClick:o},c)))},Kl=function(e){var t,n,r,o,c=e.block,i=e.onKeep,a=e.onConvert,s=e.convertor,b=e.convertButtonText,f={rawContent:c.originalContent,renderedContent:Object(p.getSaveElement)(c.name,c.attributes)},m=(t=s(c),r=(n=Object(d.castArray)(t)).map((function(e){return Object(p.getSaveContent)(e.name,e.attributes,e.innerBlocks)})),o=n.map((function(e){return Object(p.getSaveElement)(e.name,e.attributes,e.innerBlocks)})),{rawContent:r.join(""),renderedContent:o}),v=function(e,t){return Object(Ul.diffChars)(e,t).map((function(e,t){var n=u()({"block-editor-block-compare__added":e.added,"block-editor-block-compare__removed":e.removed});return Object(l.createElement)("span",{key:t,className:n},e.value)}))}(f.rawContent,m.rawContent);return Object(l.createElement)("div",{className:"block-editor-block-compare__wrapper"},Object(l.createElement)(Wl,{title:Object(y.__)("Current"),className:"block-editor-block-compare__current",action:i,actionText:Object(y.__)("Convert to HTML"),rawContent:f.rawContent,renderedContent:f.renderedContent}),Object(l.createElement)(Wl,{title:Object(y.__)("After Conversion"),className:"block-editor-block-compare__converted",action:a,actionText:b,rawContent:v,renderedContent:m.renderedContent}))},ql=function(e){return Object(p.rawHandler)({HTML:e.originalContent})},$l=Object(b.compose)([Object(v.withSelect)((function(e,t){var n=t.clientId;return{block:e(hr).getBlock(n)}})),Object(v.withDispatch)((function(e,t){var n=t.block,r=e(hr).replaceBlock;return{convertToClassic:function(){r(n.clientId,function(e){return Object(p.createBlock)("core/freeform",{content:e.originalContent})}(n))},convertToHTML:function(){r(n.clientId,function(e){return Object(p.createBlock)("core/html",{content:e.originalContent})}(n))},convertToBlocks:function(){r(n.clientId,ql(n))},attemptBlockRecovery:function(){var e,t,o,c;r(n.clientId,(t=(e=n).name,o=e.attributes,c=e.innerBlocks,Object(p.createBlock)(t,o,c)))}}}))])((function(e){var t=e.convertToHTML,n=e.convertToBlocks,r=e.convertToClassic,o=e.attemptBlockRecovery,c=e.block,i=!!Object(p.getBlockType)("core/html"),a=Object(l.useState)(!1),s=Object(Uo.a)(a,2),u=s[0],d=s[1],b=Object(l.useCallback)((function(){return d(!0)}),[]),f=Object(l.useCallback)((function(){return d(!1)}),[]),v=Object(l.useMemo)((function(){return[{
27
  // translators: Button to fix block content
28
- title:Object(y._x)("Resolve","imperative verb"),onClick:b},i&&{title:Object(y.__)("Convert to HTML"),onClick:t},{title:Object(y.__)("Convert to Classic Block"),onClick:r}].filter(Boolean)}),[b,t,r]);return Object(l.createElement)(l.Fragment,null,Object(l.createElement)(Gl,{actions:[Object(l.createElement)(m.Button,{key:"recover",onClick:o,isPrimary:!0},Object(y.__)("Attempt Block Recovery"))],secondaryActions:v},Object(y.__)("This block contains unexpected or invalid content.")),u&&Object(l.createElement)(m.Modal,{title:// translators: Dialog title to fix block content
29
- Object(y.__)("Resolve Block"),onRequestClose:f,className:"block-editor-block-compare"},Object(l.createElement)(Kl,{block:c,onKeep:t,onConvert:n,convertor:ql,convertButtonText:Object(y.__)("Convert to Blocks")})))})),Yl=Object(l.createElement)(Gl,{className:"block-editor-block-list__block-crash-warning"},Object(y.__)("This block has encountered an error and cannot be previewed.")),Xl=function(){return Yl};var Ql=function(e){Object(Qi.a)(o,e);var t,n,r=(t=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=Object(Ji.a)(t);if(n){var o=Object(Ji.a)(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return Object(Zi.a)(this,e)});function o(){var e;return Object($i.a)(this,o),(e=r.apply(this,arguments)).state={hasError:!1},e}return Object(Yi.a)(o,[{key:"componentDidCatch",value:function(){this.setState({hasError:!0})}},{key:"render",value:function(){return this.state.hasError?this.props.fallback:this.props.children}}]),o}(l.Component),Zl=n(119),Jl=n.n(Zl),es=function(e){var t=e.clientId,n=Object(l.useState)(""),r=Object(Uo.a)(n,2),o=r[0],c=r[1],i=Object(v.useSelect)((function(e){return e(hr).getBlock(t)}),[t]),a=Object(v.useDispatch)(hr).updateBlock;return Object(l.useEffect)((function(){c(Object(p.getBlockContent)(i))}),[i]),Object(l.createElement)(Jl.a,{className:"block-editor-block-list__block-html-textarea",value:o,onBlur:function(){var e=Object(p.getBlockType)(i.name),n=Object(p.getBlockAttributes)(e,o,i.attributes),r=o||Object(p.getSaveContent)(e,n),l=!o||Object(p.isValidBlockContent)(e,n,r);a(t,{attributes:n,originalContent:r,isValid:l}),o||c({content:r})},onChange:function(e){return c(e.target.value)}})};function ts(e){var t=Object(l.useRef)(),n=function(e){return Object(v.useSelect)((function(t){var n=t(hr),r=n.getSelectedBlocksInitialCaretPosition,o=n.isMultiSelecting,c=n.isNavigationMode;if((0,n.isBlockSelected)(e)&&!o()&&!c())return r()}),[e])}(e);return Object(l.useEffect)((function(){if(null!=n&&t.current){var e=t.current.ownerDocument;if(!t.current.contains(e.activeElement)){var r=wl.focus.tabbable.find(t.current).filter((function(e){return Object(wl.isTextField)(e)})),o=-1===n,c=(o?d.last:d.first)(r)||t.current;bc(t.current,c)&&!c.closest(".block-list-appender")?Object(wl.placeCaretAtHorizontalEdge)(c,o):t.current.focus()}}}),[n]),t}function ns(e){if(!e.defaultPrevented){var t="mouseover"===e.type?"add":"remove";e.preventDefault(),e.currentTarget.classList[t]("is-hovered")}}function rs(){var e=Object(v.useSelect)((function(e){var t=e(hr),n=t.isNavigationMode,r=t.getSettings;return n()||r().outlineMode}),[]);return Object(b.useRefEffect)((function(t){if(e)return t.addEventListener("mouseout",ns),t.addEventListener("mouseover",ns),function(){t.removeEventListener("mouseout",ns),t.removeEventListener("mouseover",ns),t.classList.remove("is-hovered")}}),[e])}function os(e){return Object(v.useSelect)((function(t){var n=t(hr),r=n.isBlockBeingDragged,o=n.isBlockHighlighted,c=n.isBlockSelected,i=n.isBlockMultiSelected,a=n.getBlockName,l=n.getSettings,s=n.hasSelectedInnerBlock,d=n.__experimentalGetActiveBlockIdByBlockNames,b=l().__experimentalSpotlightEntityBlocks,f=r(e),m=c(e),v=a(e),O=s(e,!0),g=d(b);return u()("block-editor-block-list__block",{"is-selected":m,"is-highlighted":o(e),"is-multi-selected":i(e),"is-reusable":Object(p.isReusableBlock)(Object(p.getBlockType)(v)),"is-dragging":f,"has-child-selected":O,"has-active-entity":g,"is-active-entity":g===e})}),[e])}function cs(e){return Object(v.useSelect)((function(t){var n=t(hr).getBlockName(e),r=Object(p.getBlockType)(n);if(r.apiVersion>1||Object(p.hasBlockSupport)(r,"lightBlockWrapper",!1))return Object(p.getBlockDefaultClassName)(n)}),[e])}function is(e){return Object(v.useSelect)((function(t){var n=t(hr),r=n.getBlockName,o=(0,n.getBlockAttributes)(e).className;if(o){var c=Object(p.getBlockType)(r(e));if(c.apiVersion>1||Object(p.hasBlockSupport)(c,"lightBlockWrapper",!1))return o}}),[e])}function as(e){return Object(v.useSelect)((function(t){var n=t(hr),r=n.hasBlockMovingClientId,o=n.canInsertBlockType,c=n.getBlockName,i=n.getBlockRootClientId;if((0,n.isBlockSelected)(e)){var a=r();if(a)return u()("is-block-moving-mode",{"can-insert-moving-block":o(c(a),i(e))})}}),[e])}var ls=Object(l.forwardRef)((function(e,t){var n=e.selectedClientId,r=e.isReverse,o=e.containerRef,c=e.noCapture,i=e.lastFocus,a=e.hasMultiSelection,s=e.multiSelectionContainer,u=Object(v.useSelect)((function(e){return e(hr).isNavigationMode()})),b=Object(v.useDispatch)(hr).setNavigationMode;return Object(l.createElement)("div",{ref:t,tabIndex:u?void 0:"0",onFocus:function(){if(c.current)c.current=null;else if(n)i.current.focus();else{if(a)return void s.current.focus();b(!0);var e=wl.focus.tabbable.find(o.current);e.length&&(r?Object(d.last)(e).focus():Object(d.first)(e).focus())}},style:{position:"fixed"}})}));function ss(e,t){for(var n="start"===t?"firstChild":"lastChild",r="start"===t?"nextSibling":"previousSibling";e[n];)for(e=e[n];e.nodeType===e.TEXT_NODE&&/^[ \t\n]*$/.test(e.data)&&e[r];)e=e[r];return e}function us(e){var t=e(hr),n=t.isSelectionEnabled,r=t.isMultiSelecting,o=t.getMultiSelectedBlockClientIds,c=t.hasMultiSelection,i=t.getBlockParents,a=t.getSelectedBlockClientId;return{isSelectionEnabled:n(),isMultiSelecting:r(),multiSelectedBlockClientIds:o(),hasMultiSelection:c(),getBlockParents:i,selectedBlockClientId:a()}}function ds(e,t){Array.from(e.querySelectorAll(".rich-text")).forEach((function(e){t?e.setAttribute("contenteditable",!0):e.removeAttribute("contenteditable")}))}var bs=Object(l.createContext)();function fs(e){var t=e.tagName;return"INPUT"===t||"BUTTON"===t||"SELECT"===t||"TEXTAREA"===t}function ps(e,t,n,r){var o,c=wl.focus.focusable.find(n);return t&&(c=Object(d.reverse)(c)),c=c.slice(c.indexOf(e)+1),r&&(o=e.getBoundingClientRect()),Object(d.find)(c,(function(e){if(!wl.focus.tabbable.isTabbableIndex(e))return!1;if(e.isContentEditable&&"true"!==e.contentEditable)return!1;if(r){var t=e.getBoundingClientRect();if(t.left>=o.right||t.right<=o.left)return!1}return!0}))}function ms(e){var t=e(hr),n=t.getSelectedBlockClientId,r=t.getMultiSelectedBlocksStartClientId,o=t.getMultiSelectedBlocksEndClientId,c=t.getPreviousBlockClientId,i=t.getNextBlockClientId,a=t.getFirstMultiSelectedBlockClientId,l=t.getLastMultiSelectedBlockClientId,s=t.hasMultiSelection,u=t.getBlockOrder,b=t.isSelectionEnabled,f=t.getBlockSelectionStart,p=t.isMultiSelecting,m=t.getSettings,v=n(),O=r(),g=o(),h=u();return{selectedBlockClientId:v,selectionStartClientId:O,selectionBeforeEndClientId:c(g||v),selectionAfterEndClientId:i(g||v),selectedFirstClientId:a(),selectedLastClientId:l(),hasMultiSelection:s(),firstBlock:Object(d.first)(h),lastBlock:Object(d.last)(h),isSelectionEnabled:b(),blockSelectionStart:f(),isMultiSelecting:p(),keepCaretInsideBlock:m().keepCaretInsideBlock}}function vs(e){var t=e.children,n=Object(l.useRef)(),r=Object(l.useRef)(),o=Object(l.useRef)(),c=Object(l.useRef)(),i=Object(l.useRef)(),a=Object(l.useRef)(),s=Object(l.useRef)(),u=Object(v.useSelect)(ms,[]),d=u.selectedBlockClientId,b=u.selectionStartClientId,f=u.selectionBeforeEndClientId,p=u.selectionAfterEndClientId,m=u.selectedFirstClientId,O=u.selectedLastClientId,g=u.hasMultiSelection,h=u.firstBlock,j=u.lastBlock,_=u.isSelectionEnabled,E=u.blockSelectionStart,w=u.isMultiSelecting,C=u.keepCaretInsideBlock,S=Object(v.useDispatch)(hr),B=S.multiSelect,I=S.selectBlock,x=S.setNavigationMode;function P(e){var t=e?f:p;t&&B(b||d,t)}function T(e){var t=e?m:O;t&&I(t)}Object(l.useEffect)((function(){g&&!w&&c.current.focus()}),[g,w]);var N=function(e){var t=Object(v.useSelect)(us,[]),n=t.isSelectionEnabled,r=t.isMultiSelecting,o=t.multiSelectedBlockClientIds,c=t.hasMultiSelection,i=t.getBlockParents,a=t.selectedBlockClientId,s=Object(v.useDispatch)(hr),u=s.startMultiSelect,d=s.stopMultiSelect,b=s.multiSelect,f=s.selectBlock,p=Object(l.useRef)(),m=Object(l.useRef)(),O=Object(l.useRef)();Object(l.useEffect)((function(){var t=e.current.ownerDocument,n=t.defaultView;if(c&&!r){var i=o.length;if(!(i<2)){var l=o[0],s=o[i-1],u=dc(l,t),d=dc(s,t),b=n.getSelection(),f=t.createRange();u=ss(u,"start"),d=ss(d,"end"),f.setStartBefore(u),f.setEndAfter(d),b.removeAllRanges(),b.addRange(f)}}else{if(!a||r)return;var p=n.getSelection();if(p.rangeCount&&!p.isCollapsed){var m=dc(a,t),v=p.getRangeAt(0),O=v.startContainer,g=v.endContainer;!m||m.contains(O)&&m.contains(g)||p.removeAllRanges()}}}),[c,r,o,f,a]);var g=Object(l.useCallback)((function(t){var n=t.isSelectionEnd,r=e.current.ownerDocument.defaultView.getSelection();if(r.rangeCount&&!r.isCollapsed){var o=fc(r.focusNode);if(m.current===o){if(f(o),n&&(ds(e.current,!0),r.rangeCount)){var c=r.getRangeAt(0).commonAncestorContainer;O.current.contains(c)&&O.current.focus()}}else{var a=[].concat(Object(k.a)(i(m.current)),[m.current]),l=[].concat(Object(k.a)(i(o)),[o]),s=Math.min(a.length,l.length)-1;b(a[s],l[s])}}else ds(e.current,!0)}),[f,i,b]),h=Object(l.useCallback)((function(){var t=e.current.ownerDocument,n=t.defaultView;t.removeEventListener("selectionchange",g),n.removeEventListener("mouseup",h),p.current=n.requestAnimationFrame((function(){g({isSelectionEnd:!0}),d()}))}),[g,d]);return Object(l.useEffect)((function(){var t=e.current.ownerDocument,n=t.defaultView;return function(){t.removeEventListener("selectionchange",g),n.removeEventListener("mouseup",h),n.cancelAnimationFrame(p.current)}}),[g,h]),Object(l.useCallback)((function(t){if(n){var r=e.current.ownerDocument,o=r.defaultView;m.current=t,O.current=r.activeElement,u(),r.addEventListener("selectionchange",g),o.addEventListener("mouseup",h),ds(e.current,!1)}}),[n,u,h])}(n),D=Object(l.useRef)();return Object(l.useEffect)((function(){function e(e){D.current=e.target}return n.current.addEventListener("focusout",e),function(){n.current.removeEventListener("focusout",e)}}),[]),Object(l.createElement)(bs.Provider,{value:N},Object(l.createElement)(ls,{ref:r,selectedClientId:d,containerRef:n,noCapture:a,lastFocus:D,hasMultiSelection:g,multiSelectionContainer:c}),Object(l.createElement)("div",{ref:c,tabIndex:g?"0":void 0,"aria-label":g?Object(y.__)("Multiple selected blocks"):void 0,style:{position:"fixed"},onKeyDown:function(e){var t=e.keyCode,n=e.shiftKey,c=t===Kc.UP,i=t===Kc.DOWN,l=t===Kc.LEFT,s=t===Kc.RIGHT,u=c||l,d=l||s||c||i;t===Kc.TAB?(a.current=!0,n?r.current.focus():o.current.focus()):d&&((n?P:T)(u),e.preventDefault())}}),Object(l.createElement)("div",{ref:n,className:"block-editor-writing-flow",onKeyDown:function(e){var t=e.keyCode,c=e.target;if(n.current.contains(c)){var l=t===Kc.UP,u=t===Kc.DOWN,b=t===Kc.LEFT,m=t===Kc.RIGHT,v=t===Kc.TAB,O=t===Kc.ESCAPE,g=l||b,k=b||m,y=l||u,_=k||y,E=e.shiftKey,w=E||e.ctrlKey||e.altKey||e.metaKey,S=y?wl.isVerticalEdge:wl.isHorizontalEdge,I=n.current.ownerDocument.defaultView;if(d){if(v){var T=E?"findPrevious":"findNext";if(fs(c)&&fs(wl.focus.tabbable[T](c)))return;var N=E?r:o;return a.current=!0,void N.current.focus()}O&&x(!0)}if(y?s.current||(s.current=Object(wl.computeCaretRect)(I)):s.current=null,!_)return Kc.isKeyboardEvent.primary(e)&&(i.current=Object(wl.isEntirelySelected)(c)),void(Kc.isKeyboardEvent.primary(e,"a")&&((c.isContentEditable?i.current:Object(wl.isEntirelySelected)(c))&&(B(h,j),e.preventDefault()),i.current=!0));if(!e.nativeEvent.defaultPrevented&&function(e,t,n){if((t===Kc.UP||t===Kc.DOWN)&&!n)return!0;var r=e.tagName;return"INPUT"!==r&&"TEXTAREA"!==r}(c,t,w)){var D,A="rtl"===(D=c).ownerDocument.defaultView.getComputedStyle(D).direction?!g:g;if(E)(g&&f||!g&&p)&&function(e,t){var r,o,c=ps(e,t,n.current);return!(c&&(r=e,o=c,r.closest(".block-editor-block-list__block")===o.closest(".block-editor-block-list__block")))}(c,g)&&S(c,g)&&(P(g),e.preventDefault());else if(y&&Object(wl.isVerticalEdge)(c,g)&&!C){var L=ps(c,g,n.current,!0);L&&(Object(wl.placeCaretAtVerticalEdge)(L,g,s.current),e.preventDefault())}else if(k&&I.getSelection().isCollapsed&&Object(wl.isHorizontalEdge)(c,A)&&!C){var R=ps(c,A,n.current);Object(wl.placeCaretAtHorizontalEdge)(R,A),e.preventDefault()}}}},onMouseDown:function(e){if(s.current=null,_&&0===e.button){var t=fc(e.target);t&&(e.shiftKey?E!==t&&(B(E,t),e.preventDefault()):g&&I(t))}}},t),Object(l.createElement)(ls,{ref:o,selectedClientId:d,containerRef:n,noCapture:a,lastFocus:D,hasMultiSelection:g,multiSelectionContainer:c,isReverse:!0}))}function Os(e){var t=Object(l.useContext)(bs),n=Object(v.useSelect)((function(t){var n=t(hr),r=n.isBlockSelected,o=n.getBlockRootClientId,c=n.getBlockIndex;return{isSelected:r(e),rootClientId:o(e),index:c(e)}}),[e]),r=n.isSelected,o=n.rootClientId,c=n.index,i=Object(v.useDispatch)(hr),a=i.insertDefaultBlock,s=i.removeBlock,u=i.selectBlock;return Object(b.useRefEffect)((function(n){if(!r){function i(t){bc(n,t.target)&&u(e)}return n.addEventListener("focusin",i),function(){n.removeEventListener("focusin",i)}}function l(t){var r=t.keyCode,i=t.target;r!==Kc.ENTER&&r!==Kc.BACKSPACE&&r!==Kc.DELETE||i!==n||Object(wl.isTextField)(i)||(t.preventDefault(),r===Kc.ENTER?a({},o,c+1):s(e))}function d(n){1===n.buttons&&t(e)}function b(e){e.preventDefault()}return n.addEventListener("keydown",l),n.addEventListener("mouseleave",d),n.addEventListener("dragstart",b),function(){n.removeEventListener("mouseleave",d),n.removeEventListener("keydown",l),n.removeEventListener("dragstart",b)}}),[r,o,c,t,a,s,u])}function gs(e){var t=Object(v.useSelect)((function(t){var n=t(hr),r=n.isNavigationMode,o=n.isBlockSelected;return r()&&o(e)}),[]),n=Object(v.useDispatch)(hr).setNavigationMode;return Object(b.useRefEffect)((function(e){if(t)return e.addEventListener("mousedown",r),function(){e.addEventListener("mousedown",r)};function r(){n(!1)}}),[t])}var hs=n(71),js=n(176),ks=[Object(l.createInterpolateElement)(Object(y.__)("While writing, you can press <kbd>/</kbd> to quickly insert new blocks."),{kbd:Object(l.createElement)("kbd",null)}),Object(l.createInterpolateElement)(Object(y.__)("Indent a list by pressing <kbd>space</kbd> at the beginning of a line."),{kbd:Object(l.createElement)("kbd",null)}),Object(l.createInterpolateElement)(Object(y.__)("Outdent a list by pressing <kbd>backspace</kbd> at the beginning of a line."),{kbd:Object(l.createElement)("kbd",null)}),Object(y.__)("Drag files into the editor to automatically insert media blocks."),Object(y.__)("Change a block's type by pressing the block icon on the toolbar.")],ys=function(){var e=Object(l.useState)(Math.floor(Math.random()*ks.length)),t=Object(Uo.a)(e,1)[0];return Object(l.createElement)(m.Tip,null,ks[t])},_s=n(132),Es=n(281),ws=function e(t){var n=t.className,r=t.onChange,o=t.value,c=t.label,i=t.placeholder,a=Object(b.useInstanceId)(e),s=Object(l.useRef)();return Object(l.createElement)("div",{className:u()("block-editor-inserter__search",n)},Object(l.createElement)(m.VisuallyHidden,{as:"label",htmlFor:"block-editor-inserter__search-".concat(a)},c||i),Object(l.createElement)("input",{ref:s,className:"block-editor-inserter__search-input",id:"block-editor-inserter__search-".concat(a),type:"search",placeholder:i,onChange:function(e){return r(e.target.value)},autoComplete:"off",value:o||""}),Object(l.createElement)("div",{className:"block-editor-inserter__search-icon"},!!o&&Object(l.createElement)(m.Button,{icon:_s.a,label:Object(y.__)("Reset search"),onClick:function(){r(""),s.current.focus()}}),!o&&Object(l.createElement)(Vi.a,{icon:Es.a})))},Cs=function(e){var t=e.title,n=e.icon,r=e.description,o=e.blockType;return o&&(Rt()("`blockType` property in `BlockCard component`",{since:"5.7",alternative:"`title, icon and description` properties"}),t=o.title,n=o.icon,r=o.description),Object(l.createElement)("div",{className:"block-editor-block-card"},Object(l.createElement)(Ja,{icon:n,showColors:!0}),Object(l.createElement)("div",{className:"block-editor-block-card__content"},Object(l.createElement)("h2",{className:"block-editor-block-card__title"},t),Object(l.createElement)("span",{className:"block-editor-block-card__description"},r)))};function Ss(e){var t=e.clientId,n=void 0===t?null:t,r=e.value,o=e.selection,c=e.onChange,i=void 0===c?d.noop:c,a=e.onInput,s=void 0===a?d.noop:a,u=Object(v.useRegistry)(),b=u.dispatch(hr),f=b.resetBlocks,m=b.resetSelection,O=b.replaceInnerBlocks,g=b.setHasControlledInnerBlocks,h=b.__unstableMarkNextChangeAsNotPersistent,j=u.select(hr),k=j.getBlockName,y=j.getBlocks,_=Object(l.useRef)({incoming:null,outgoing:[]}),E=Object(l.useRef)(!1),w=Object(l.useRef)(s),C=Object(l.useRef)(i);Object(l.useEffect)((function(){w.current=s,C.current=i}),[s,i]),Object(l.useEffect)((function(){_.current.outgoing.includes(r)?Object(d.last)(_.current.outgoing)===r&&(_.current.outgoing=[]):y(n)!==r&&(_.current.outgoing=[],function(){if(r)if(h(),n){g(n,!0),h();var e=r.map((function(e){return Object(p.cloneBlock)(e)}));E.current&&(_.current.incoming=e),O(n,e)}else E.current&&(_.current.incoming=r),f(r)}(),o&&m(o.selectionStart,o.selectionEnd,o.initialPosition))}),[r,n]),Object(l.useEffect)((function(){var e=u.select(hr),t=e.getSelectionStart,r=e.getSelectionEnd,o=e.getSelectedBlocksInitialCaretPosition,c=e.isLastBlockChangePersistent,i=e.__unstableIsLastBlockChangeIgnored,a=y(n),l=c(),s=!1;E.current=!0;var d=u.subscribe((function(){if(null===n||null!==k(n)){var e=c(),u=y(n),d=u!==a;if(a=u,d&&(_.current.incoming||i()))return _.current.incoming=null,void(l=e);(d||s&&!d&&e&&!l)&&(l=e,_.current.outgoing.push(a),(l?C.current:w.current)(a,{selection:{selectionStart:t(),selectionEnd:r(),initialPosition:o()}})),s=d}}));return function(){return d()}}),[u,n])}var Bs,Is=Object(b.createHigherOrderComponent)((function(e){return Object(v.withRegistry)((function(t){var n=t.useSubRegistry,r=void 0===n||n,o=t.registry,c=Object(j.a)(t,["useSubRegistry","registry"]);if(!r)return Object(l.createElement)(e,Object(i.a)({registry:o},c));var a=Object(l.useState)(null),s=Object(Uo.a)(a,2),u=s[0],d=s[1];return Object(l.useEffect)((function(){var e=Object(v.createRegistry)({},o);e.registerStore(Ft,gr),d(e)}),[o]),u?Object(l.createElement)(v.RegistryProvider,{value:u},Object(l.createElement)(e,Object(i.a)({registry:u},c))):null}))}),"withRegistryProvider")((function(e){var t=e.children,n=e.settings,r=Object(v.useDispatch)(hr).updateSettings;return Object(l.useEffect)((function(){r(n)}),[n]),Ss(e),t}));function xs(e){var t=e.onClick;return Object(l.createElement)("div",{tabIndex:0,role:"button",onClick:t,onKeyPress:t},Object(l.createElement)(m.Disabled,null,Object(l.createElement)(Yd,null)))}var Ps=function(e){var t=e.viewportWidth,n=e.__experimentalPadding,r=Object(b.useResizeObserver)(),o=Object(Uo.a)(r,2),c=o[0],i=o[1].width,a=Object(b.useResizeObserver)(),s=Object(Uo.a)(a,2),u=s[0],d=s[1].height;Bs=Bs||Object(b.pure)(Yd);var f=(i-2*n)/t;return Object(l.createElement)("div",{className:"block-editor-block-preview__container editor-styles-wrapper","aria-hidden":!0,style:{height:d*f+2*n}},c,Object(l.createElement)(m.Disabled,{style:{transform:"scale(".concat(f,")"),width:t,left:n,right:n,top:n},className:"block-editor-block-preview__content"},u,Object(l.createElement)(Bs,null)))};function Ts(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Ns=Object(l.memo)((function(e){var t=e.blocks,n=e.__experimentalPadding,r=void 0===n?0:n,o=e.viewportWidth,c=void 0===o?1200:o,i=e.__experimentalLive,s=void 0!==i&&i,u=e.__experimentalOnClick,b=Object(v.useSelect)((function(e){return e(hr).getSettings()}),[]),f=Object(l.useMemo)((function(){var e=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ts(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ts(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},b);return e.__experimentalBlockPatterns=[],e}),[b]),p=Object(l.useMemo)((function(){return Object(d.castArray)(t)}),[t]);return t&&0!==t.length?Object(l.createElement)(Is,{value:p,settings:f},s?Object(l.createElement)(xs,{onClick:u}):Object(l.createElement)(Ps,{viewportWidth:c,__experimentalPadding:r})):null}));function Ds(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 As(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ds(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ds(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ls=function(e){var t,n,r=e.item,o=r.name,c=r.title,i=r.icon,a=r.description,s=r.initialAttributes,u=Object(p.getBlockType)(o),d=Object(p.isReusableBlock)(r);return Object(l.createElement)("div",{className:"block-editor-inserter__preview-container"},Object(l.createElement)("div",{className:"block-editor-inserter__preview"},d||u.example?Object(l.createElement)("div",{className:"block-editor-inserter__preview-content"},Object(l.createElement)(Ns,{__experimentalPadding:16,viewportWidth:null!==(t=null===(n=u.example)||void 0===n?void 0:n.viewportWidth)&&void 0!==t?t:500,blocks:u.example?Object(p.getBlockFromExample)(r.name,{attributes:As(As({},u.example.attributes),s),innerBlocks:u.example.innerBlocks}):Object(p.createBlock)(o,s)})):Object(l.createElement)("div",{className:"block-editor-inserter__preview-content-missing"},Object(y.__)("No Preview Available."))),!d&&Object(l.createElement)(Cs,{title:c,icon:i,description:a}))},Rs=Object(l.createContext)();function Ms(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 Fs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ms(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ms(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Vs=Object(l.forwardRef)((function(e,t){var n=e.isFirst,r=e.as,o=e.children,c=Object(j.a)(e,["isFirst","as","children"]),a=Object(l.useContext)(Rs);return Object(l.createElement)(m.__unstableCompositeItem,Object(i.a)({ref:t,state:a,role:"option",focusable:!0},c),(function(e){var t=Fs(Fs({},e),{},{tabIndex:n?0:e.tabIndex});return r?Object(l.createElement)(r,t,o):"function"==typeof o?o(t):Object(l.createElement)(m.Button,t,o)}))})),Hs=Object(l.createElement)(Sr.SVG,{width:"18",height:"18",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18"},Object(l.createElement)(Sr.Path,{d:"M5 4h2V2H5v2zm6-2v2h2V2h-2zm-6 8h2V8H5v2zm6 0h2V8h-2v2zm-6 6h2v-2H5v2zm6 0h2v-2h-2v2z"}));function zs(e){var t=e.count,n=e.icon;return Object(l.createElement)("div",{className:"block-editor-block-draggable-chip-wrapper"},Object(l.createElement)("div",{className:"block-editor-block-draggable-chip"},Object(l.createElement)(m.Flex,{justify:"center",className:"block-editor-block-draggable-chip__content"},Object(l.createElement)(m.FlexItem,null,n?Object(l.createElement)(Ja,{icon:n}):Object(y.sprintf)(
30
  /* translators: %d: Number of blocks. */
31
- Object(y._n)("%d block","%d blocks",t),t)),Object(l.createElement)(m.FlexItem,null,Object(l.createElement)(Ja,{icon:Hs})))))}var Gs=function(e){var t=e.isEnabled,n=e.blocks,r=e.icon,o=e.children,c={type:"inserter",blocks:n};return Object(l.createElement)(m.Draggable,{transferData:c,__experimentalDragComponent:Object(l.createElement)(zs,{count:n.length,icon:r})},(function(e){var n=e.onDraggableStart,r=e.onDraggableEnd;return o({draggable:t,onDragStart:t?n:void 0,onDragEnd:t?r:void 0})}))};function Us(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window,t=e.navigator.platform;return-1!==t.indexOf("Mac")||["iPad","iPhone"].includes(t)}var Ws=Object(l.memo)((function(e){var t=e.className,n=e.isFirst,r=e.item,o=e.onSelect,c=e.onHover,a=e.isDraggable,s=Object(j.a)(e,["className","isFirst","item","onSelect","onHover","isDraggable"]),d=Object(l.useRef)(!1),b=r.icon?{backgroundColor:r.icon.background,color:r.icon.foreground}:{},f=Object(l.useMemo)((function(){return[Object(p.createBlock)(r.name,r.initialAttributes,Object(p.createBlocksFromInnerBlocksTemplate)(r.innerBlocks))]}),[r.name,r.initialAttributes,r.initialAttributes]);return Object(l.createElement)(Gs,{isEnabled:a&&!r.disabled,blocks:f,icon:r.icon},(function(e){var a=e.draggable,f=e.onDragStart,p=e.onDragEnd;return Object(l.createElement)("div",{className:"block-editor-block-types-list__list-item",draggable:a,onDragStart:function(e){d.current=!0,f&&(c(null),f(e))},onDragEnd:function(e){d.current=!1,p&&p(e)}},Object(l.createElement)(Vs,Object(i.a)({isFirst:n,className:u()("block-editor-block-types-list__item",t),disabled:r.isDisabled,onClick:function(e){e.preventDefault(),o(r,Us()?e.metaKey:e.ctrlKey),c(null)},onKeyDown:function(e){e.keyCode===Kc.ENTER&&(e.preventDefault(),o(r,Us()?e.metaKey:e.ctrlKey),c(null))},onFocus:function(){d.current||c(r)},onMouseEnter:function(){d.current||c(r)},onMouseLeave:function(){return c(null)},onBlur:function(){return c(null)}},s),Object(l.createElement)("span",{className:"block-editor-block-types-list__item-icon",style:b},Object(l.createElement)(Ja,{icon:r.icon,showColors:!0})),Object(l.createElement)("span",{className:"block-editor-block-types-list__item-title"},r.title)))}))})),Ks=Object(l.forwardRef)((function(e,t){var n=Object(l.useState)(!1),r=Object(Uo.a)(n,2),o=r[0],c=r[1];return Object(l.useEffect)((function(){o&&Object(At.speak)(Object(y.__)("Use left and right arrow keys to move through blocks"))}),[o]),Object(l.createElement)("div",Object(i.a)({ref:t,role:"listbox","aria-orientation":"horizontal",onFocus:function(){c(!0)},onBlur:function(e){!e.currentTarget.contains(e.relatedTarget)&&c(!1)}},e))})),qs=Object(l.forwardRef)((function(e,t){var n=Object(l.useContext)(Rs);return Object(l.createElement)(m.__unstableCompositeGroup,Object(i.a)({state:n,role:"presentation",ref:t},e))})),$s=function(e){var t=e.items,n=void 0===t?[]:t,r=e.onSelect,o=e.onHover,c=void 0===o?function(){}:o,i=e.children,a=e.label,s=e.isDraggable,u=void 0===s||s;return Object(l.createElement)(Ks,{className:"block-editor-block-types-list","aria-label":a},function(e,t){for(var n=[],r=0,o=e.length;r<o;r+=3)n.push(e.slice(r,r+3));return n}(n).map((function(e,t){return Object(l.createElement)(qs,{key:t},e.map((function(e,n){return Object(l.createElement)(Ws,{key:e.id,item:e,className:Object(p.getBlockMenuDefaultClassName)(e.id),onSelect:r,onHover:c,isDraggable:u,isFirst:0===t&&0===n})})))})),i)},Ys=function(e){var t=e.title,n=e.icon,r=e.children;return Object(l.createElement)(l.Fragment,null,Object(l.createElement)("div",{className:"block-editor-inserter__panel-header"},Object(l.createElement)("h2",{className:"block-editor-inserter__panel-title"},t),Object(l.createElement)(m.Icon,{icon:n})),Object(l.createElement)("div",{className:"block-editor-inserter__panel-content"},r))},Xs=function(e){var t=e.children,n=Object(m.__unstableUseCompositeState)({shift:!0,wrap:"horizontal"});return Object(l.createElement)(Rs.Provider,{value:n},t)};function Qs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Zs=function(e){var t=e.rootClientId,n=e.onInsert,r=e.onHover,o=e.showMostUsedBlocks,c=Qa(t,n),i=Object(Uo.a)(c,4),s=i[0],u=i[1],b=i[2],f=i[3],p=Object(l.useMemo)((function(){return Object(d.orderBy)(s,["frecency"],["desc"]).slice(0,6)}),[s]),m=Object(l.useMemo)((function(){return s.filter((function(e){return!e.category}))}),[s]),v=Object(l.useMemo)((function(){return Object(d.flow)((function(e){return e.filter((function(e){return e.category&&"reusable"!==e.category}))}),(function(e){return Object(d.groupBy)(e,"category")}))(s)}),[s]),O=Object(l.useMemo)((function(){var e=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qs(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},b);return Object.keys(b).forEach((function(t){e[t]=s.filter((function(e){return function(e){return e.name.split("/")[0]}(e)===t})),0===e[t].length&&delete e[t]})),e}),[s,b]);return Object(l.useEffect)((function(){return function(){return r(null)}}),[]),Object(l.createElement)(Xs,null,Object(l.createElement)("div",null,o&&!!p.length&&Object(l.createElement)(Ys,{title:Object(y._x)("Most used","blocks")},Object(l.createElement)($s,{items:p,onSelect:f,onHover:r,label:Object(y._x)("Most used","blocks")})),Object(d.map)(u,(function(e){var t=v[e.slug];return t&&t.length?Object(l.createElement)(Ys,{key:e.slug,title:e.title,icon:e.icon},Object(l.createElement)($s,{items:t,onSelect:f,onHover:r,label:e.title})):null})),m.length>0&&Object(l.createElement)(Ys,{className:"block-editor-inserter__uncategorized-blocks-panel",title:Object(y.__)("Uncategorized")},Object(l.createElement)($s,{items:m,onSelect:f,onHover:r,label:Object(y.__)("Uncategorized")})),Object(d.map)(b,(function(e,t){var n=O[t];return n&&n.length?Object(l.createElement)(Ys,{key:t,title:e.title,icon:e.icon},Object(l.createElement)($s,{items:n,onSelect:f,onHover:r,label:e.title})):null}))))},Js=function(e){var t,n=e.selectedCategory,r=e.patternCategories,o=e.onClickCategory,c=e.children;return Object(l.createElement)(l.Fragment,null,Object(l.createElement)("div",{className:u()("block-editor-inserter__panel-header","block-editor-inserter__panel-header-patterns")},Object(l.createElement)(m.SelectControl,{className:"block-editor-inserter__panel-dropdown",label:Object(y.__)("Filter patterns"),hideLabelFromVision:!0,value:n.name,onChange:function(e){o(r.find((function(t){return e===t.name})))},options:(t=[],r.map((function(e){return t.push({value:e.name,label:e.label})})),t)})),Object(l.createElement)("div",{className:"block-editor-inserter__panel-content"},c))},eu=n(45),tu=function(e,t){var n=Object(v.useSelect)((function(e){var n=e(hr),r=n.__experimentalGetAllowedPatterns,o=n.getSettings;return{patterns:r(t),patternCategories:o().__experimentalBlockPatternCategories}}),[t]),r=n.patternCategories,o=n.patterns,c=Object(v.useDispatch)(eu.store).createSuccessNotice;return[o,r,Object(l.useCallback)((function(t,n){e(Object(d.map)(n,(function(e){return Object(p.cloneBlock)(e)})),t.name),c(Object(y.sprintf)(
32
  /* translators: %s: block pattern title. */
33
- Object(y.__)('Block pattern "%s" inserted.'),t.title),{type:"snackbar"})}),[])]};function nu(e){var t=e.isDraggable,n=e.pattern,r=e.onClick,o=e.composite,c=n.name,a=n.viewportWidth,s=Object(v.useSelect)((function(e){return e(hr).__experimentalGetParsedPattern(c)}),[c]).blocks,u=Object(b.useInstanceId)(nu),d="block-editor-block-patterns-list__item-description-".concat(u);return Object(l.createElement)(Gs,{isEnabled:t,blocks:s},(function(e){var t=e.draggable,c=e.onDragStart,u=e.onDragEnd;return Object(l.createElement)("div",{className:"block-editor-block-patterns-list__list-item","aria-label":n.title,"aria-describedby":n.description?d:void 0,draggable:t,onDragStart:c,onDragEnd:u},Object(l.createElement)(m.__unstableCompositeItem,Object(i.a)({role:"option",as:"div"},o,{className:"block-editor-block-patterns-list__item",onClick:function(){return r(n,s)}}),Object(l.createElement)(Ns,{blocks:s,viewportWidth:a}),Object(l.createElement)("div",{className:"block-editor-block-patterns-list__item-title"},n.title),!!n.description&&Object(l.createElement)(m.VisuallyHidden,{id:d},n.description)))}))}function ru(){return Object(l.createElement)("div",{className:"block-editor-block-patterns-list__item is-placeholder"})}var ou=function(e){var t=e.isDraggable,n=e.blockPatterns,r=e.shownPatterns,o=e.onClickPattern,c=e.orientation,a=e.label,s=void 0===a?Object(y.__)("Block Patterns"):a,u=Object(m.__unstableUseCompositeState)({orientation:c});return Object(l.createElement)(m.__unstableComposite,Object(i.a)({},u,{role:"listbox",className:"block-editor-block-patterns-list","aria-label":s}),n.map((function(e){return r.includes(e)?Object(l.createElement)(nu,{key:e.name,pattern:e,onClick:o,isDraggable:t,composite:u}):Object(l.createElement)(ru,{key:e.name})})))};function cu(e){var t=e.rootClientId,n=e.onInsert,r=e.selectedCategory,o=e.onClickCategory,c=tu(n,t),i=Object(Uo.a)(c,3),a=i[0],s=i[1],u=i[2],f=Object(l.useMemo)((function(){return s.filter((function(e){return a.some((function(t){var n;return null===(n=t.categories)||void 0===n?void 0:n.includes(e.name)}))}))}),[a,s]),p=r||f[0];Object(l.useEffect)((function(){a.some((function(e){return m(e)===1/0}))&&!f.find((function(e){return"uncategorized"===e.name}))&&f.push({name:"uncategorized",label:Object(y._x)("Uncategorized")})}),[f,a]);var m=Object(l.useCallback)((function(e){if(!e.categories||!e.categories.length)return 1/0;var t=Object(d.fromPairs)(f.map((function(e,t){return[e.name,t]})));return Math.min.apply(Math,Object(k.a)(e.categories.map((function(e){return void 0!==t[e]?t[e]:1/0}))))}),[f]),v=Object(l.useMemo)((function(){return a.filter((function(e){return"uncategorized"===p.name?m(e)===1/0:e.categories&&e.categories.includes(p.name)}))}),[a,p]),O=Object(l.useMemo)((function(){return v.sort((function(e,t){return m(e)-m(t)}))}),[v,m]),g=Object(b.useAsyncList)(O);return Object(l.createElement)(l.Fragment,null,!!v.length&&Object(l.createElement)(Js,{selectedCategory:p,patternCategories:f,onClickCategory:o},Object(l.createElement)(ou,{shownPatterns:g,blockPatterns:v,onClickPattern:u,label:p.label,orientation:"vertical",isDraggable:!0})))}var iu=function(e){var t=e.rootClientId,n=e.onInsert,r=e.onClickCategory,o=e.selectedCategory;return Object(l.createElement)(cu,{rootClientId:t,selectedCategory:o,onInsert:n,onClickCategory:r})},au=n(31),lu=function(){return Object(l.createElement)("div",{className:"block-editor-inserter__no-results"},Object(l.createElement)(Vi.a,{className:"block-editor-inserter__no-results-icon",icon:Za.a}),Object(l.createElement)("p",null,Object(y.__)("No results found.")))};function su(e){var t=e.onHover,n=e.onInsert,r=e.rootClientId,o=Qa(r,n),c=Object(Uo.a)(o,4),i=c[0],a=c[3],s=Object(l.useMemo)((function(){return i.filter((function(e){return"reusable"===e.category}))}),[i]);return 0===s.length?Object(l.createElement)(lu,null):Object(l.createElement)(Ys,{title:Object(y.__)("Reusable blocks")},Object(l.createElement)($s,{items:s,onSelect:a,onHover:t,label:Object(y.__)("Reusable blocks")}))}var uu=function(e){var t=e.rootClientId,n=e.onInsert,r=e.onHover;return Object(l.createElement)(l.Fragment,null,Object(l.createElement)(su,{onHover:r,onInsert:n,rootClientId:t}),Object(l.createElement)("div",{className:"block-editor-inserter__manage-reusable-blocks-container"},Object(l.createElement)("a",{className:"block-editor-inserter__manage-reusable-blocks",href:Object(au.addQueryArgs)("edit.php",{post_type:"wp_block"})},Object(y.__)("Manage Reusable blocks"))))},du=Object(m.createSlotFill)("__experimentalInserterMenuExtension"),bu=du.Fill,fu=du.Slot;bu.Slot=fu;var pu=bu,mu=function(e){var t=e.rootClientId,n=e.insertionIndex,r=e.clientId,o=e.isAppender,c=e.onSelect,i=e.shouldFocusBlock,a=void 0===i||i,s=Object(v.useSelect)((function(e){var c,i,a=e(hr),l=a.getSelectedBlock,s=a.getBlockIndex,u=a.getBlockOrder,d=a.getBlockInsertionPoint;if(t||n||r||o)c=t,i=n||(r?s(r,c):u(c).length);else{var b=d();c=b.rootClientId,i=b.index}return{getSelectedBlock:l,destinationRootClientId:c,destinationIndex:i}}),[t,n,r,o]),u=s.destinationRootClientId,b=s.destinationIndex,f=s.getSelectedBlock,m=Object(v.useDispatch)(hr),O=m.replaceBlocks,g=m.insertBlocks,h=m.showInsertionPoint,j=m.hideInsertionPoint,k=Object(l.useCallback)((function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=f();!o&&r&&Object(p.isUnmodifiedDefaultBlock)(r)?O(r.clientId,e,null,a||n?0:null,t):g(e,b,u,!0,a||n?0:null,t);var i=Object(y.sprintf)(// translators: %d: the name of the block that has been added
34
- Object(y._n)("%d block added.","%d blocks added.",Object(d.castArray)(e).length),Object(d.castArray)(e).length);Object(At.speak)(i),c&&c()}),[o,f,O,g,u,b,c,a]),_=Object(l.useCallback)((function(e){e?h(u,b):j()}),[h,j,u,b]);return[u,k,_]},vu=function(e){var t=e.filterValue,n=e.onSelect,r=e.onHover,o=e.rootClientId,c=e.clientId,i=e.isAppender,a=e.maxBlockPatterns,s=e.maxBlockTypes,u=e.showBlockDirectory,f=void 0!==u&&u,p=e.isDraggable,v=void 0===p||p,O=e.shouldFocusBlock,g=void 0===O||O,h=Object(b.useDebounce)(At.speak,500),j=mu({onSelect:n,rootClientId:o,clientId:c,isAppender:i,shouldFocusBlock:g}),k=Object(Uo.a)(j,2),_=k[0],E=k[1],w=Qa(_,E),C=Object(Uo.a)(w,4),S=C[0],B=C[1],I=C[2],x=C[3],P=tu(E,_),T=Object(Uo.a)(P,3),N=T[0],D=T[2],A=Object(l.useMemo)((function(){var e=$a(Object(d.orderBy)(S,["frecency"],["desc"]),B,I,t);return void 0!==s?e.slice(0,s):e}),[t,S,B,I,s]),L=Object(l.useMemo)((function(){var e=Ya(N,t);return void 0!==a?e.slice(0,a):e}),[t,N,a]);Object(l.useEffect)((function(){if(t){var e=A.length+L.length,n=Object(y.sprintf)(
35
  /* translators: %d: number of results. */
36
- Object(y._n)("%d result found.","%d results found.",e),e);h(n)}}),[t,h]);var R=Object(b.useAsyncList)(L),M=!Object(d.isEmpty)(A)||!Object(d.isEmpty)(L);return Object(l.createElement)(Xs,null,!f&&!M&&Object(l.createElement)(lu,null),!!A.length&&Object(l.createElement)(Ys,{title:Object(l.createElement)(m.VisuallyHidden,null,Object(y.__)("Blocks"))},Object(l.createElement)($s,{items:A,onSelect:x,onHover:r,label:Object(y.__)("Blocks"),isDraggable:v})),!!A.length&&!!L.length&&Object(l.createElement)("div",{className:"block-editor-inserter__quick-inserter-separator"}),!!L.length&&Object(l.createElement)(Ys,{title:Object(l.createElement)(m.VisuallyHidden,null,Object(y.__)("Block Patterns"))},Object(l.createElement)("div",{className:"block-editor-inserter__quick-inserter-patterns"},Object(l.createElement)(ou,{shownPatterns:R,blockPatterns:L,onClickPattern:D,isDraggable:v}))),f&&Object(l.createElement)(pu.Slot,{fillProps:{onSelect:x,onHover:r,filterValue:t,hasItems:M,rootClientId:_}},(function(e){return e.length?e:M?null:Object(l.createElement)(lu,null)})))},Ou={name:"blocks",
37
  /* translators: Blocks tab title in the block inserter. */
38
- title:Object(y.__)("Blocks")},gu={name:"patterns",
39
  /* translators: Patterns tab title in the block inserter. */
40
- title:Object(y.__)("Patterns")},hu={name:"reusable",
41
  /* translators: Reusable blocks tab title in the block inserter. */
42
- title:Object(y.__)("Reusable")},ju=function(e){var t=e.children,n=e.showPatterns,r=void 0!==n&&n,o=e.showReusableBlocks,c=void 0!==o&&o,i=e.onSelect,a=Object(l.useMemo)((function(){var e=[Ou];return r&&e.push(gu),c&&e.push(hu),e}),[Ou,r,gu,c,hu]);return Object(l.createElement)(m.TabPanel,{className:"block-editor-inserter__tabs",tabs:a,onSelect:i},t)},ku=function(e){var t=e.rootClientId,n=e.clientId,r=e.isAppender,o=e.__experimentalInsertionIndex,c=e.onSelect,i=e.showInserterHelpPanel,a=e.showMostUsedBlocks,s=e.shouldFocusBlock,u=void 0===s||s,d=Object(l.useState)(""),b=Object(Uo.a)(d,2),f=b[0],p=b[1],O=Object(l.useState)(null),g=Object(Uo.a)(O,2),h=g[0],j=g[1],k=Object(l.useState)(null),_=Object(Uo.a)(k,2),E=_[0],w=_[1],C=mu({rootClientId:t,clientId:n,isAppender:r,insertionIndex:o,shouldFocusBlock:u}),S=Object(Uo.a)(C,3),B=S[0],I=S[1],x=S[2],P=Object(v.useSelect)((function(e){var t,n=e(hr),r=n.__experimentalGetAllowedPatterns,o=n.getSettings;return{showPatterns:!B||!!r(B).length,hasReusableBlocks:!(null===(t=o().__experimentalReusableBlocks)||void 0===t||!t.length)}}),[B]),T=P.showPatterns,N=P.hasReusableBlocks,D=Object(l.useCallback)((function(e,t,n){I(e,t,n),c()}),[I,c]),A=Object(l.useCallback)((function(e,t){I(e,{patternName:t}),c()}),[I,c]),L=Object(l.useCallback)((function(e){x(!!e),j(e)}),[x,j]),R=Object(l.useCallback)((function(e){w(e)}),[w]),M=Object(l.useMemo)((function(){return Object(l.createElement)(l.Fragment,null,Object(l.createElement)("div",{className:"block-editor-inserter__block-list"},Object(l.createElement)(Zs,{rootClientId:B,onInsert:D,onHover:L,showMostUsedBlocks:a})),i&&Object(l.createElement)("div",{className:"block-editor-inserter__tips"},Object(l.createElement)(m.VisuallyHidden,{as:"h2"},Object(y.__)("A tip for using the block editor")),Object(l.createElement)(ys,null)))}),[B,D,L,f,a,i]),F=Object(l.useMemo)((function(){return Object(l.createElement)(iu,{rootClientId:B,onInsert:A,onClickCategory:R,selectedCategory:E})}),[B,A,R,E]),V=Object(l.useMemo)((function(){return Object(l.createElement)(uu,{rootClientId:B,onInsert:D,onHover:L})}),[B,D,L]),H=Object(l.useCallback)((function(e){return"blocks"===e.name?M:"patterns"===e.name?F:V}),[M,F,V]);return Object(l.createElement)("div",{className:"block-editor-inserter__menu"},Object(l.createElement)("div",{className:"block-editor-inserter__main-area"},Object(l.createElement)("div",{className:"block-editor-inserter__content"},Object(l.createElement)(ws,{onChange:function(e){h&&j(null),p(e)},value:f,label:Object(y.__)("Search for blocks and patterns"),placeholder:Object(y.__)("Search")}),!!f&&Object(l.createElement)(vu,{filterValue:f,onSelect:c,onHover:L,rootClientId:t,clientId:n,isAppender:r,showBlockDirectory:!0,shouldFocusBlock:u}),!f&&(T||N)&&Object(l.createElement)(ju,{showPatterns:T,showReusableBlocks:N},H),!f&&!T&&!N&&M)),i&&h&&Object(l.createElement)(Ls,{item:h}))};function yu(e){var t=e.onSelect,n=e.rootClientId,r=e.clientId,o=e.isAppender,c=Object(l.useState)(""),i=Object(Uo.a)(c,2),a=i[0],s=i[1],d=mu({onSelect:t,rootClientId:n,clientId:r,isAppender:o}),b=Object(Uo.a)(d,2),f=b[0],p=b[1],O=Qa(f,p),g=Object(Uo.a)(O,1)[0],h=tu(p,f),j=Object(Uo.a)(h,1)[0],k=j.length&&!!a,_=k&&j.length>6||g.length>6,E=Object(v.useSelect)((function(e){var t=e(hr),o=t.getSettings,c=t.getBlockIndex;return{setInserterIsOpened:o().__experimentalSetIsInserterOpened,blockIndex:c(r,n)}}),[r,n]),w=E.setInserterIsOpened,C=E.blockIndex;Object(l.useEffect)((function(){w&&w(!1)}),[w]);var S=Object(v.useDispatch)(hr).__unstableSetInsertionPoint;return Object(l.createElement)("div",{className:u()("block-editor-inserter__quick-inserter",{"has-search":_,"has-expand":w})},_&&Object(l.createElement)(ws,{value:a,onChange:function(e){s(e)},label:Object(y.__)("Search for blocks and patterns"),placeholder:Object(y.__)("Search")}),Object(l.createElement)("div",{className:"block-editor-inserter__quick-inserter-results"},Object(l.createElement)(vu,{filterValue:a,onSelect:t,rootClientId:n,clientId:r,isAppender:o,maxBlockPatterns:k?2:0,maxBlockTypes:6,isDraggable:!1})),w&&Object(l.createElement)(m.Button,{className:"block-editor-inserter__quick-inserter-expand",onClick:function(){S(n,C),w(!0)},"aria-label":Object(y.__)("Browse all. This will open the main inserter panel in the editor toolbar.")},Object(y.__)("Browse all")))}var _u=function(e){var t,n=e.onToggle,r=e.disabled,o=e.isOpen,c=e.blockTitle,a=e.hasSingleBlockType,s=e.toggleProps,u=void 0===s?{}:s;t=a?Object(y.sprintf)(// translators: %s: the name of the block when there is only one
43
- Object(y._x)("Add %s","directly add the only allowed block"),c):Object(y._x)("Add block","Generic label for block inserter button");var d=u.onClick,b=Object(j.a)(u,["onClick"]);return Object(l.createElement)(m.Button,Object(i.a)({icon:js.a,label:t,tooltipPosition:"bottom",onClick:function(e){n&&n(e),d&&d(e)},className:"block-editor-inserter__toggle","aria-haspopup":!a&&"true","aria-expanded":!a&&o,disabled:r},b))},Eu=function(e){Object(Qi.a)(o,e);var t,n,r=(t=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=Object(Ji.a)(t);if(n){var o=Object(Ji.a)(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return Object(Zi.a)(this,e)});function o(){var e;return Object($i.a)(this,o),(e=r.apply(this,arguments)).onToggle=e.onToggle.bind(Object(Xi.a)(e)),e.renderToggle=e.renderToggle.bind(Object(Xi.a)(e)),e.renderContent=e.renderContent.bind(Object(Xi.a)(e)),e}return Object(Yi.a)(o,[{key:"onToggle",value:function(e){var t=this.props.onToggle;t&&t(e)}},{key:"renderToggle",value:function(e){var t=e.onToggle,n=e.isOpen,r=this.props,o=r.disabled,c=r.blockTitle,i=r.hasSingleBlockType,a=r.toggleProps,l=r.hasItems,s=r.renderToggle;return(void 0===s?_u:s)({onToggle:t,isOpen:n,disabled:o||!l,blockTitle:c,hasSingleBlockType:i,toggleProps:a})}},{key:"renderContent",value:function(e){var t=e.onClose,n=this.props,r=n.rootClientId,o=n.clientId,c=n.isAppender,i=n.showInserterHelpPanel;return n.__experimentalIsQuick?Object(l.createElement)(yu,{onSelect:function(){t()},rootClientId:r,clientId:o,isAppender:c}):Object(l.createElement)(ku,{onSelect:function(){t()},rootClientId:r,clientId:o,isAppender:c,showInserterHelpPanel:i})}},{key:"render",value:function(){var e=this.props,t=e.position,n=e.hasSingleBlockType,r=e.insertOnlyAllowedBlock,o=e.__experimentalIsQuick,c=e.onSelectOrClose;return n?this.renderToggle({onToggle:r}):Object(l.createElement)(m.Dropdown,{className:"block-editor-inserter",contentClassName:u()("block-editor-inserter__popover",{"is-quick":o}),position:t,onToggle:this.onToggle,expandOnMobile:!0,headerTitle:Object(y.__)("Add a block"),renderToggle:this.renderToggle,renderContent:this.renderContent,onClose:c})}}]),o}(l.Component),wu=Object(b.compose)([Object(v.withSelect)((function(e,t){var n=t.clientId,r=t.rootClientId,o=e(hr),c=o.getBlockRootClientId,i=o.hasInserterItems,a=o.__experimentalGetAllowedBlocks,l=e(p.store).getBlockVariations,s=a(r=r||c(n)||void 0),u=1===Object(d.size)(s)&&0===Object(d.size)(l(s[0].name,"inserter")),b=!1;return u&&(b=s[0]),{hasItems:i(r),hasSingleBlockType:u,blockTitle:b?b.title:"",allowedBlockType:b,rootClientId:r}})),Object(v.withDispatch)((function(e,t,n){var r=n.select;return{insertOnlyAllowedBlock:function(){var n=t.rootClientId,o=t.clientId,c=t.isAppender,i=t.hasSingleBlockType,a=t.allowedBlockType,l=t.onSelectOrClose;if(i){(0,e(hr).insertBlock)(Object(p.createBlock)(a.name),function(){var e=r(hr),t=e.getBlockIndex,i=e.getBlockSelectionEnd,a=e.getBlockOrder,l=e.getBlockRootClientId;if(o)return t(o,n);var s=i();return!c&&s&&l(s)===n?t(s,n)+1:a(n).length}(),n),l&&l();var s=Object(y.sprintf)(// translators: %s: the name of the block that has been added
44
- Object(y.__)("%s block added"),a.title);Object(At.speak)(s)}}}})),Object(b.ifCondition)((function(e){var t=e.hasItems,n=e.isAppender,r=e.rootClientId,o=e.clientId;return t||!n&&!r&&!o}))])(Eu),Cu=Object(b.compose)(Object(v.withSelect)((function(e,t){var n=e(hr),r=n.getBlockCount,o=n.getBlockName,c=n.isBlockValid,i=n.getSettings,a=n.getTemplateLock,l=!r(t.rootClientId),s=o(t.lastBlockClientId)===Object(p.getDefaultBlockName)(),u=c(t.lastBlockClientId),d=i().bodyPlaceholder;return{isVisible:l||!s||!u,showPrompt:l,isLocked:!!a(t.rootClientId),placeholder:d}})),Object(v.withDispatch)((function(e,t){var n=e(hr),r=n.insertDefaultBlock,o=n.startTyping;return{onAppend:function(){var e=t.rootClientId;r(void 0,e),o()}}})))((function(e){var t=e.isLocked,n=e.isVisible,r=e.onAppend,o=e.showPrompt,c=e.placeholder,i=e.rootClientId;if(t||!n)return null;var a=Object(hs.decodeEntities)(c)||Object(y.__)("Type / to choose a block");return Object(l.createElement)("div",{"data-root-client-id":i||"",className:"wp-block block-editor-default-block-appender"},Object(l.createElement)(Jl.a,{role:"button","aria-label":Object(y.__)("Add block"),className:"block-editor-default-block-appender__content",readOnly:!0,onFocus:r,value:o?a:""}),Object(l.createElement)(wu,{rootClientId:i,position:"bottom right",isAppender:!0,__experimentalIsQuick:!0}))})),Su=Object(l.forwardRef)((function(e,t){var n=e.rootClientId,r=e.className,o=e.onFocus,c=e.tabIndex;return Object(l.createElement)(wu,{position:"bottom center",rootClientId:n,__experimentalIsQuick:!0,renderToggle:function(e){var n,i=e.onToggle,a=e.disabled,s=e.isOpen,d=e.blockTitle,b=e.hasSingleBlockType;n=b?Object(y.sprintf)(// translators: %s: the name of the block when there is only one
45
- Object(y._x)("Add %s","directly add the only allowed block"),d):Object(y._x)("Add block","Generic label for block inserter button");var f=!b,p=Object(l.createElement)(m.Button,{ref:t,onFocus:o,tabIndex:c,className:u()(r,"block-editor-button-block-appender"),onClick:i,"aria-haspopup":f?"true":void 0,"aria-expanded":f?s:void 0,disabled:a,label:n},!b&&Object(l.createElement)(m.VisuallyHidden,{as:"span"},n),Object(l.createElement)(Vi.a,{icon:js.a}));return(f||b)&&(p=Object(l.createElement)(m.Tooltip,{text:n},p)),p},isAppender:!0})}));function Bu(e){e.stopPropagation()}Object(l.createContext)();var Iu=Object(v.withSelect)((function(e,t){var n=t.rootClientId,r=e(hr),o=r.getBlockOrder,c=r.canInsertBlockType,i=r.getTemplateLock,a=r.getSelectedBlockClientId;return{isLocked:!!i(n),blockClientIds:o(n),canInsertDefaultBlock:c(Object(p.getDefaultBlockName)(),n),selectedBlockClientId:a()}}))((function(e){var t,n=e.blockClientIds,r=e.rootClientId,o=e.canInsertDefaultBlock,c=e.isLocked,i=e.renderAppender,a=e.className,s=e.selectedBlockClientId,b=e.tagName,f=void 0===b?"div":b;if(c||!1===i)return null;if(i)t=Object(l.createElement)(i,null);else{var p=!r,m=s===r,v=s&&!n.includes(s);if(!p&&!m&&(!s||v))return null;t=o?Object(l.createElement)(Cu,{rootClientId:r,lastBlockClientId:Object(d.last)(n)}):Object(l.createElement)(Su,{rootClientId:r,className:"block-list-appender__toggle"})}return Object(l.createElement)(f,{tabIndex:-1,onFocus:Bu,className:u()("block-list-appender","wp-block",a)},t)}));function xu(e,t,n,r,o,c,i){return function(a){var l=function(e){var t={srcRootClientId:null,srcClientIds:null,srcIndex:null,type:null,blocks:null};if(!e.dataTransfer)return t;try{t=Object.assign(t,JSON.parse(e.dataTransfer.getData("text")))}catch(e){return t}return t}(a),s=l.srcRootClientId,u=l.srcClientIds,d=l.type,b=l.blocks;if("inserter"===d&&(i(),c(b,t,e,!0,null)),"block"===d){var f=n(u[0],s);if(s===e&&f===t)return;if(u.includes(e)||r(u).some((function(t){return t===e})))return;var p=s===e,m=u.length;o(u,s,e,p&&f<t?t-m:t)}}}function Pu(e,t,n,r,o,c){return function(i){if(n){var a=Object(p.findTransform)(Object(p.getBlockTransforms)("from"),(function(t){return"files"===t.type&&o(t.blockName,e)&&t.isMatch(i)}));if(a){var l=a.transform(i,r);c(l,t,e)}}}}function Tu(e,t,n){return function(r){var o=Object(p.pasteHandler)({HTML:r,mode:"BLOCKS"});o.length&&n(o,t,e)}}function Nu(e,t){var n=Object(v.useSelect)((function(e){var t=e(hr);return{canInsertBlockType:t.canInsertBlockType,getBlockIndex:t.getBlockIndex,getClientIdsOfDescendants:t.getClientIdsOfDescendants,hasUploadPermissions:(0,t.getSettings)().mediaUpload}}),[]),r=n.canInsertBlockType,o=n.getBlockIndex,c=n.getClientIdsOfDescendants,i=n.hasUploadPermissions,a=Object(v.useDispatch)(hr),l=a.insertBlocks,s=a.moveBlocksToPosition,u=a.updateBlockAttributes;return{onDrop:xu(e,t,o,c,s,l,a.clearSelectedBlock),onFilesDrop:Pu(e,t,i,u,r,l),onHTMLDrop:Tu(e,t,l)}}function Du(e,t,n){var r,o="top"===n||"bottom"===n,c=e.x,i=e.y,a=o?c:i,l=o?i:c,s=o?t.left:t.top,u=o?t.right:t.bottom,d=t[n];return r=a>=s&&a<=u?a:a<u?s:u,Math.sqrt(Math.pow(a-r,2)+Math.pow(l-d,2))}function Au(e,t){var n,r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:["top","bottom","left","right"];return o.forEach((function(o){var c=Du(e,t,o);(void 0===n||c<n)&&(n=c,r=o)})),[n,r]}function Lu(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 Ru(e){var t=e.clientId,n=e.rootClientId,r=e.setIsInserterForced;return Object(l.createElement)("div",{className:u()("block-editor-block-list__insertion-point-inserter")},Object(l.createElement)(wu,{position:"bottom center",clientId:t,rootClientId:n,__experimentalIsQuick:!0,onToggle:r,onSelectOrClose:function(){return r(!1)}}))}function Mu(e){var t=e.clientId,n=e.selectedRootClientId,r=e.isInserterShown,o=e.isInserterForced,c=e.setIsInserterForced,i=e.containerRef,a=e.showInsertionPoint,s=Object(v.useDispatch)(hr).selectBlock,d=Object(l.useRef)(),b=Object(v.useSelect)((function(e){var r,o=e(hr),c=o.getBlockOrder,a=o.getBlockRootClientId,l=o.getBlockListSettings,s=o.getMultiSelectedBlockClientIds,u=o.getSelectedBlockClientId,d=o.hasMultiSelection,b=o.getSettings,f=i.current.ownerDocument,p=t?a(t):n,m=c(p);if(!m.length)return{};var v=t||m[m.length-1],O=v===m[m.length-1]?null:m[m.indexOf(v)+1],g=b().hasReducedUI,h=s(),j=u(),k=(null===(r=l(p))||void 0===r?void 0:r.orientation)||"vertical";return{previousElement:dc(v,f),nextElement:dc(O,f),nextClientId:O,isHidden:g||(d()?O&&h.includes(O):O&&"vertical"===k&&O===j),orientation:k,rootClientId:p}}),[t,n]),f=b.previousElement,p=b.nextElement,O=b.orientation,g=b.isHidden,h=b.nextClientId,j=b.rootClientId,k=Object(l.useMemo)((function(){if(!f)return{};var e=f.getBoundingClientRect(),t=p?p.getBoundingClientRect():null;if("vertical"===O)return{width:f.offsetWidth,height:t?t.top-e.bottom:0};var n=0;return p&&(n=Object(y.isRTL)()?e.left-t.right:t.left-e.right),{width:n,height:f.offsetHeight}}),[f,p]),_=Object(l.useCallback)((function(){var e=f.getBoundingClientRect(),t=p?p.getBoundingClientRect():null;return"vertical"===O?{top:e.bottom,left:e.left,right:e.right,bottom:t?t.top:e.bottom}:Object(y.isRTL)()?{top:e.top,left:t?t.right:e.left,right:e.left,bottom:e.bottom}:{top:e.top,left:e.right,right:t?t.left:e.right,bottom:e.bottom}}),[f,p]);if(!f)return null;var E=u()("block-editor-block-list__insertion-point","is-"+O),w=!g&&p&&(r||o),C=w||!g&&a;return Object(l.createElement)(m.Popover,{noArrow:!0,animate:!1,getAnchorRect:_,focusOnMount:!1,className:"block-editor-block-list__insertion-point-popover",__unstableSlotName:"block-toolbar"},Object(l.createElement)("div",{ref:d,tabIndex:-1,onClick:function(e){e.target===d.current&&h&&s(h,-1)},onFocus:function(e){e.target!==d.current&&c(!0)},className:E,style:k},C&&Object(l.createElement)("div",{className:"block-editor-block-list__insertion-point-indicator"}),w&&Object(l.createElement)(Ru,{rootClientId:j,clientId:h,setIsInserterForced:c})))}var Fu=function(e){var t,n,r,o,c=e.children,i=e.clientIds,a=e.cloneClassname,s=e.onDragStart,u=e.onDragEnd,d=e.elementId,b=Object(v.useSelect)((function(e){var t,n=e(hr),r=n.getBlockRootClientId,o=n.getTemplateLock,c=n.getBlockName,a=r(i[0]),l=a?o(a):null,s=c(i[0]);return{srcRootClientId:a,isDraggable:"all"!==l,icon:null===(t=Object(p.getBlockType)(s))||void 0===t?void 0:t.icon}}),[i]),f=b.srcRootClientId,O=b.isDraggable,g=b.icon,h=Object(l.useRef)(!1),j=(t=Object(l.useRef)(null),n=Object(l.useRef)(null),r=Object(l.useRef)(null),o=Object(l.useRef)(null),Object(l.useEffect)((function(){return function(){o.current&&(clearInterval(o.current),o.current=null)}}),[]),[Object(l.useCallback)((function(e){t.current=e.clientY,r.current=Object(wl.getScrollContainer)(e.target),o.current=setInterval((function(){if(r.current&&n.current){var e=r.current.scrollTop+n.current;r.current.scroll({top:e})}}),25)}),[]),Object(l.useCallback)((function(e){if(r.current){var o=r.current.offsetHeight,c=t.current-r.current.offsetTop,i=e.clientY-r.current.offsetTop;if(e.clientY>c){var a=Math.max(o-c-50,0),l=Math.max(i-c-50,0)/a;n.current=25*l}else if(e.clientY<c){var s=Math.max(c-50,0),u=Math.max(c-i-50,0)/s;n.current=-25*u}else n.current=0}}),[]),function(){t.current=null,r.current=null,o.current&&(clearInterval(o.current),o.current=null)}]),k=Object(Uo.a)(j,3),y=k[0],_=k[1],E=k[2],w=Object(v.useDispatch)(hr),C=w.startDraggingBlocks,S=w.stopDraggingBlocks;if(Object(l.useEffect)((function(){return function(){h.current&&S()}}),[]),!O)return c({isDraggable:!1});var B={type:"block",srcClientIds:i,srcRootClientId:f};return Object(l.createElement)(m.Draggable,{cloneClassname:a,elementId:d,transferData:B,onDragStart:function(e){C(i),h.current=!0,y(e),s&&s()},onDragOver:_,onDragEnd:function(){S(),h.current=!1,E(),u&&u()},__experimentalDragComponent:Object(l.createElement)(zs,{count:i.length,icon:g})},(function(e){var t=e.onDraggableStart,n=e.onDraggableEnd;return c({draggable:!0,onDragStart:t,onDragEnd:n})}))};function Vu(e){var t=e(hr),n=t.getSelectedBlockClientId,r=t.getMultiSelectedBlocksEndClientId,o=t.getPreviousBlockClientId,c=t.getNextBlockClientId,i=t.hasBlockMovingClientId,a=t.getBlockIndex,l=t.getBlockRootClientId,s=t.getClientIdsOfDescendants,u=t.canInsertBlockType,d=t.getBlockName,b=n(),f=r();return{selectedBlockClientId:b,selectionBeforeEndClientId:o(f||b),selectionAfterEndClientId:c(f||b),hasBlockMovingClientId:i,getBlockIndex:a,getBlockRootClientId:l,getClientIdsOfDescendants:s,canInsertBlockType:u,getBlockName:d}}var Hu=function(e){var t=e.clientId,n=e.rootClientId,r=e.blockElement,o=il(t),c=Object(v.useSelect)((function(e){var r,o=e(hr),c=o.__unstableGetBlockWithoutInnerBlocks,i=o.getBlockIndex,a=o.hasBlockMovingClientId,l=o.getBlockListSettings,s=i(t,n),u=c(t);return{index:s,name:u.name,attributes:u.attributes,blockMovingMode:a(),orientation:null===(r=l(n))||void 0===r?void 0:r.orientation}}),[t,n]),a=c.index,s=c.name,d=c.attributes,b=c.blockMovingMode,f=c.orientation,O=Object(v.useDispatch)(hr),g=O.setNavigationMode,h=O.removeBlock,j=Object(l.useRef)();Object(l.useEffect)((function(){j.current.focus(),window.navigator.platform.indexOf("Win")>-1&&Object(At.speak)(L)}),[]);var k=Object(v.useSelect)(Vu,[]),_=k.selectedBlockClientId,E=k.selectionBeforeEndClientId,w=k.selectionAfterEndClientId,C=k.hasBlockMovingClientId,S=k.getBlockIndex,B=k.getBlockRootClientId,I=k.getClientIdsOfDescendants,x=Object(v.useDispatch)(hr),P=x.selectBlock,T=x.clearSelectedBlock,N=x.setBlockMovingClientId,D=x.moveBlockToPosition,A=Object(p.getBlockType)(s),L=Object(p.__experimentalGetAccessibleBlockLabel)(A,d,a+1,f),R=u()("block-editor-block-list__block-selection-button",{"is-block-moving-mode":!!b}),M=Object(y.__)("Drag");return Object(l.createElement)("div",{className:R},Object(l.createElement)(m.Flex,{justify:"center",className:"block-editor-block-list__block-selection-button__content"},Object(l.createElement)(m.FlexItem,null,Object(l.createElement)(Ja,{icon:null==o?void 0:o.icon,showColors:!0})),Object(l.createElement)(m.FlexItem,null,Object(l.createElement)(Fu,{clientIds:[t]},(function(e){return Object(l.createElement)(m.Button,Object(i.a)({icon:Hs,className:"block-selection-button_drag-handle","aria-hidden":"true",label:M,tabIndex:"-1"},e))}))),Object(l.createElement)(m.FlexItem,null,Object(l.createElement)(m.Button,{ref:j,onClick:function(){return g(!1)},onKeyDown:function(e){var n=e.keyCode,o=n===Kc.UP,c=n===Kc.DOWN,i=n===Kc.LEFT,a=n===Kc.RIGHT,l=n===Kc.TAB,s=n===Kc.ESCAPE,u=n===Kc.ENTER,d=n===Kc.SPACE,b=e.shiftKey;if(n===Kc.BACKSPACE||n===Kc.DELETE)return h(t),void e.preventDefault();var f,p=l&&b||o,m=l&&!b||c,v=i,O=a;if(p)f=E;else if(m)f=w;else if(v){var g;f=null!==(g=B(_))&&void 0!==g?g:_}else if(O){var j;f=null!==(j=I([_])[0])&&void 0!==j?j:_}var k=C();if(s&&k&&N(null),(u||d)&&k){var y=B(k),x=B(_),A=S(k,y),L=S(_,x);A<L&&y===x&&(L-=1),D(k,y,x,L),P(k),N(null)}if(m||p||v||O)if(f)e.preventDefault(),P(f);else if(l&&_){var R;m?(R=wl.focus.tabbable.findNext(r))||(R=r.ownerDocument.defaultView.frameElement,R=wl.focus.tabbable.findNext(R)):R=wl.focus.tabbable.findPrevious(r),R&&(e.preventDefault(),R.focus(),T())}},label:L,className:"block-selection-button_select-button"},Object(l.createElement)(al,{clientId:t})))))};function zu(e){return Array.from(e.querySelectorAll("[data-toolbar-item]"))}var Gu=function(e){var t=e.children,n=e.focusOnMount,r=e.__experimentalInitialIndex,o=e.__experimentalOnIndexChange,c=Object(j.a)(e,["children","focusOnMount","__experimentalInitialIndex","__experimentalOnIndexChange"]),a=Object(l.useRef)(),s=function(e){var t=Object(l.useState)(!0),n=Object(Uo.a)(t,2),r=n[0],o=n[1],c=Object(l.useCallback)((function(){var t=!wl.focus.tabbable.find(e.current).some((function(e){return!("toolbarItem"in e.dataset)}));t||Rt()("Using custom components as toolbar controls",{since:"5.6",alternative:"ToolbarItem or ToolbarButton components",link:"https://developer.wordpress.org/block-editor/components/toolbar-button/#inside-blockcontrols"}),o(t)}),[]);return Object(l.useLayoutEffect)((function(){var t=new window.MutationObserver(c);return t.observe(e.current,{childList:!0,subtree:!0}),function(){return t.disconnect()}}),[r]),r}(a);return function(e,t,n,r,o){var c=Object(l.useState)(t),i=Object(Uo.a)(c,1)[0],a=Object(l.useState)(r),s=Object(Uo.a)(a,1)[0],u=Object(l.useCallback)((function(){var t,n,r;t=e.current,n=wl.focus.tabbable.find(t),(r=Object(Uo.a)(n,1)[0])&&r.focus()}),[]);Object(jl.useShortcut)("core/block-editor/focus-toolbar",u,{bindGlobal:!0,eventName:"keydown"}),Object(l.useEffect)((function(){i&&u()}),[n,i,u]),Object(l.useEffect)((function(){var t=0;return s&&!i&&(t=window.requestAnimationFrame((function(){var t,n=zu(e.current),r=s||0;n[r]&&(t=e.current).contains(t.ownerDocument.activeElement)&&n[r].focus()}))),function(){if(window.cancelAnimationFrame(t),o){var n=zu(e.current).findIndex((function(e){return 0===e.tabIndex}));o(n)}}}),[s,i])}(a,n,s,r,o),s?Object(l.createElement)(m.Toolbar,Object(i.a)({label:c["aria-label"],ref:a},c),t):Object(l.createElement)(m.NavigableMenu,Object(i.a)({orientation:"horizontal",role:"toolbar",ref:a},c),t)},Uu=Object(v.withSelect)((function(e,t){var n,r=t.clientIds,o=e(hr),c=o.getBlock,i=o.getBlockIndex,a=o.getBlockListSettings,l=o.getTemplateLock,s=o.getBlockOrder,u=o.getBlockRootClientId,b=Object(d.castArray)(r),f=Object(d.first)(b),m=c(f),v=u(Object(d.first)(b)),O=i(f,v),g=0===O,h=i(Object(d.last)(b),v)===s(v).length-1;return{blockType:m?Object(p.getBlockType)(m.name):null,isLocked:"all"===l(v),rootClientId:v,firstIndex:O,isFirst:g,isLast:h,orientation:null===(n=a(v))||void 0===n?void 0:n.orientation}}))((function(e){var t=e.isFirst,n=e.isLast,r=e.clientIds,o=e.isLocked,c=e.isHidden,a=e.rootClientId,s=e.orientation,d=e.hideDragHandle,b=Object(l.useState)(!1),f=Object(Uo.a)(b,2),p=f[0],v=f[1],O=function(){return v(!0)},g=function(){return v(!1)};if(o||t&&n&&!a)return null;var h=Object(y.__)("Drag");return Object(l.createElement)("div",{className:u()("block-editor-block-mover",{"is-visible":p||!c,"is-horizontal":"horizontal"===s})},!d&&Object(l.createElement)(Fu,{clientIds:r,cloneClassname:"block-editor-block-mover__drag-clone"},(function(e){return Object(l.createElement)(m.Button,Object(i.a)({icon:Hs,className:"block-editor-block-mover__drag-handle","aria-hidden":"true",label:h,tabIndex:"-1"},e))})),Object(l.createElement)(m.ToolbarGroup,{className:"block-editor-block-mover__move-button-container"},Object(l.createElement)(m.ToolbarItem,{onFocus:O,onBlur:g},(function(e){return Object(l.createElement)(Ml,Object(i.a)({clientIds:r},e))})),Object(l.createElement)(m.ToolbarItem,{onFocus:O,onBlur:g},(function(e){return Object(l.createElement)(Fl,Object(i.a)({clientIds:r},e))}))))})),Wu=window,Ku=Wu.clearTimeout,qu=Wu.setTimeout;function $u(e){var t=e.ref,n=e.isFocused,r=e.debounceTimeout,o=void 0===r?200:r,c=e.onChange,i=void 0===c?d.noop:c,a=Object(l.useState)(!1),s=Object(Uo.a)(a,2),u=s[0],b=s[1],f=Object(l.useRef)(),p=function(e){null!=t&&t.current&&b(e),i(e)},m=function(){var e=f.current;e&&Ku&&Ku(e)};return Object(l.useEffect)((function(){return function(){return m()}}),[]),{showMovers:u,debouncedShowMovers:function(e){e&&e.stopPropagation(),m(),u||p(!0)},debouncedHideMovers:function(e){e&&e.stopPropagation(),m(),f.current=qu((function(){var e;e=(null==t?void 0:t.current)&&t.current.matches(":hover"),!n&&!e&&p(!1)}),o)}}}function Yu(e){var t=e.ref,n=e.debounceTimeout,r=void 0===n?200:n,o=e.onChange,c=void 0===o?d.noop:o,i=Object(l.useState)(!1),a=Object(Uo.a)(i,2),s=a[0],u=a[1],b=$u({ref:t,debounceTimeout:r,isFocused:s,onChange:c}),f=b.showMovers,p=b.debouncedShowMovers,m=b.debouncedHideMovers,v=Object(l.useRef)(!1),O=function(){return(null==t?void 0:t.current)&&t.current.contains(t.current.ownerDocument.activeElement)};return Object(l.useEffect)((function(){var e=t.current,n=function(){O()&&(u(!0),p())},r=function(){O()||(u(!1),m())};return e&&!v.current&&(e.addEventListener("focus",n,!0),e.addEventListener("blur",r,!0),v.current=!0),function(){e&&(e.removeEventListener("focus",n),e.removeEventListener("blur",r))}}),[t,v,u,p,m]),{showMovers:f,gestures:{onMouseMove:p,onMouseLeave:m}}}function Xu(){var e=Object(v.useDispatch)(hr),t=e.selectBlock,n=e.toggleBlockHighlight,r=Object(v.useSelect)((function(e){var t=e(hr),n=t.getBlockName,r=t.getBlockParents,o=t.getSelectedBlockClientId,c=t.getSettings,i=e(p.store).hasBlockSupport,a=r(o()),l=a[a.length-1],s=n(l),u=Object(p.getBlockType)(s),d=c();return{parentBlockType:u,firstParentClientId:l,shouldHide:!i(u,"__experimentalParentSelector",!0),hasReducedUI:d.hasReducedUI}}),[]),o=r.parentBlockType,c=r.firstParentClientId,a=r.shouldHide,s=r.hasReducedUI,u=Object(l.useRef)(),d=Yu({ref:u,onChange:function(e){e&&s||n(c,e)}}).gestures;return a?null:void 0!==c?Object(l.createElement)("div",Object(i.a)({className:"block-editor-block-parent-selector",key:c,ref:u},d),Object(l.createElement)(m.ToolbarButton,{className:"block-editor-block-parent-selector__button",onClick:function(){return t(c)},label:Object(y.sprintf)(
46
  /* translators: %s: Name of the block's parent. */
47
- Object(y.__)("Select %s"),o.title),showTooltip:!0,icon:Object(l.createElement)(Ja,{icon:o.icon})})):null}var Qu=Object(l.createElement)(Sr.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(Sr.Path,{d:"M20.2 8v11c0 .7-.6 1.2-1.2 1.2H6v1.5h13c1.5 0 2.7-1.2 2.7-2.8V8zM18 16.4V4.6c0-.9-.7-1.6-1.6-1.6H4.6C3.7 3 3 3.7 3 4.6v11.8c0 .9.7 1.6 1.6 1.6h11.8c.9 0 1.6-.7 1.6-1.6zm-13.5 0V4.6c0-.1.1-.1.1-.1h11.8c.1 0 .1.1.1.1v11.8c0 .1-.1.1-.1.1H4.6l-.1-.1z"}));function Zu(e){var t=e.blocks;return Object(l.createElement)("div",{className:"block-editor-block-switcher__popover__preview__parent"},Object(l.createElement)("div",{className:"block-editor-block-switcher__popover__preview__container"},Object(l.createElement)(m.Popover,{className:"block-editor-block-switcher__preview__popover",position:"bottom right",focusOnMount:!1},Object(l.createElement)("div",{className:"block-editor-block-switcher__preview"},Object(l.createElement)("div",{className:"block-editor-block-switcher__preview-title"},Object(y.__)("Preview")),Object(l.createElement)(Ns,{viewportWidth:500,blocks:t})))))}var Ju=function(e){var t=e.className,n=e.possibleBlockTransformations,r=e.onSelect,o=e.blocks,c=Object(l.useState)(),i=Object(Uo.a)(c,2),a=i[0],s=i[1];return Object(l.createElement)(m.MenuGroup,{label:Object(y.__)("Transform to"),className:t},a&&Object(l.createElement)(Zu,{blocks:Object(p.switchToBlockType)(o,a)}),n.map((function(e){var t=e.name,n=e.icon,o=e.title,c=e.isDisabled;return Object(l.createElement)(m.MenuItem,{key:t,className:Object(p.getBlockMenuDefaultClassName)(t),onClick:function(e){e.preventDefault(),r(t)},disabled:c,onMouseLeave:function(){return s(null)},onMouseEnter:function(){return s(t)}},Object(l.createElement)(Ja,{icon:n,showColors:!0}),o)})))};function ed(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function td(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 nd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?td(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):td(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var rd={};function od(e){var t=e.genericPreviewBlock,n=e.style,r=e.isActive,o=e.onBlur,c=e.onHover,i=e.onSelect,a=e.styleClassName,s=e.itemRole,d=Object(l.useMemo)((function(){return nd(nd({},t),{},{attributes:nd(nd({},t.attributes),{},{className:a})})}),[t,a]);return Object(l.createElement)("div",{key:n.name,className:u()("block-editor-block-styles__item",{"is-active":r}),onClick:function(){return i()},onKeyDown:function(e){Kc.ENTER!==e.keyCode&&Kc.SPACE!==e.keyCode||(e.preventDefault(),i())},onMouseEnter:c,onMouseLeave:o,role:s||"button",tabIndex:"0","aria-label":n.label||n.name},Object(l.createElement)("div",{className:"block-editor-block-styles__item-preview"},Object(l.createElement)(Ns,{viewportWidth:500,blocks:d})),Object(l.createElement)("div",{className:"block-editor-block-styles__item-label"},n.label||n.name))}var cd=function(e){var t=e.clientId,n=e.onSwitch,r=void 0===n?d.noop:n,o=e.onHoverClassName,c=void 0===o?d.noop:o,i=e.itemRole,a=Object(v.useSelect)((function(e){var n=(0,e(hr).getBlock)(t);return n?{block:n,type:Object(p.getBlockType)(n.name),styles:(0,e(p.store).getBlockStyles)(n.name),className:n.attributes.className||""}:rd}),[t]),s=a.styles,u=a.block,b=a.type,f=a.className,m=Object(v.useDispatch)(hr).updateBlockAttributes,O=function(e,t){return Object(l.useMemo)((function(){var n=null==t?void 0:t.example,r=null==t?void 0:t.name;return n&&r?Object(p.getBlockFromExample)(r,{attributes:n.attributes,innerBlocks:n.innerBlocks}):e?Object(p.cloneBlock)(e):void 0}),[null!=t&&t.example?null==e?void 0:e.name:e,t])}(u,b);if(!s||0===s.length)return null;var g=Object(d.find)(s,"isDefault")?s:[{name:"default",label:Object(y._x)("Default","block style"),isDefault:!0}].concat(Object(k.a)(s)),h=function(e,t){var n,r=function(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return ed(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ed(e,void 0):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,i=!0,a=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return i=e.done,e},e:function(e){a=!0,c=e},f:function(){try{i||null==n.return||n.return()}finally{if(a)throw c}}}}(new fi.a(t).values());try{for(r.s();!(n=r.n()).done;){var o=n.value;if(-1!==o.indexOf("is-style-")){var c=o.substring(9),i=Object(d.find)(e,{name:c});if(i)return i}}}catch(e){r.e(e)}finally{r.f()}return Object(d.find)(e,"isDefault")}(g,f);return Object(l.createElement)("div",{className:"block-editor-block-styles"},g.map((function(e){var n=function(e,t,n){var r=new fi.a(e);return t&&r.remove("is-style-"+t.name),r.add("is-style-"+n.name),r.value}(f,h,e);return Object(l.createElement)(od,{genericPreviewBlock:O,className:f,isActive:h===e,key:e.name,onSelect:function(){m(t,{className:n}),c(null),r()},onBlur:function(){return c(null)},onHover:function(){return c(n)},style:e,styleClassName:n,itemRole:i})})))};function id(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ad(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?id(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):id(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ld(e){var t=e.hoveredBlock,n=e.onSwitch,r=t.name,o=t.clientId,c=Object(l.useState)(),i=Object(Uo.a)(c,2),a=i[0],s=i[1],u=Object(v.useSelect)((function(e){return e(p.store).getBlockType(r)}),[r]);return Object(l.createElement)(m.MenuGroup,{label:Object(y.__)("Styles"),className:"block-editor-block-switcher__styles__menugroup"},a&&Object(l.createElement)(Zu,{blocks:u.example?Object(p.getBlockFromExample)(u.name,{attributes:ad(ad({},u.example.attributes),{},{className:a}),innerBlocks:u.example.innerBlocks}):Object(p.cloneBlock)(t,{className:a})}),Object(l.createElement)(cd,{clientId:o,onSwitch:n,onHoverClassName:s,itemRole:"menuitem"}))}function sd(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 ud(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sd(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var dd=function(e){var t=e.clientIds,n=e.blocks,r=Object(v.useDispatch)(hr).replaceBlocks,o=il(n[0].clientId),c=Object(v.useSelect)((function(e){var r,c,i=e(hr),a=i.getBlockRootClientId,l=i.getBlockTransformItems,s=e(p.store),u=s.getBlockStyles,b=s.getBlockType,f=a(Object(d.castArray)(t)[0]),m=Object(Uo.a)(n,1)[0].name,v=1===n.length,O=v&&u(m);return r=v?null==o?void 0:o.icon:1===Object(d.uniq)(n.map((function(e){return e.name}))).length?null===(c=b(m))||void 0===c?void 0:c.icon:Qu,{possibleBlockTransformations:l(n,f),hasBlockStyles:!(null==O||!O.length),icon:r,blockTitle:b(m).title}}),[t,n,null==o?void 0:o.icon]),i=c.possibleBlockTransformations,a=c.hasBlockStyles,s=c.icon,u=c.blockTitle,b=1===n.length&&Object(p.isReusableBlock)(n[0]),f=1===n.length&&Object(p.isTemplatePart)(n[0]),O=!!i.length;if(!a&&!O)return Object(l.createElement)(m.ToolbarGroup,null,Object(l.createElement)(m.ToolbarButton,{disabled:!0,className:"block-editor-block-switcher__no-switcher-icon",title:u,icon:Object(l.createElement)(Ja,{icon:s,showColors:!0})}));var g=u,h=1===n.length?Object(y.__)("Change block type or style"):Object(y.sprintf)(
48
- /* translators: %s: number of blocks. */
49
- Object(y._n)("Change type of %d block","Change type of %d blocks",n.length),n.length);return Object(l.createElement)(m.ToolbarGroup,null,Object(l.createElement)(m.ToolbarItem,null,(function(e){return Object(l.createElement)(m.DropdownMenu,{className:"block-editor-block-switcher",label:g,popoverProps:{position:"bottom right",isAlternate:!0,className:"block-editor-block-switcher__popover"},icon:Object(l.createElement)(l.Fragment,null,Object(l.createElement)(Ja,{icon:s,className:"block-editor-block-switcher__toggle",showColors:!0}),(b||f)&&Object(l.createElement)("span",{className:"block-editor-block-switcher__toggle-text"},Object(l.createElement)(al,{clientId:t}))),toggleProps:ud({describedBy:h},e),menuProps:{orientation:"both"}},(function(e){var o=e.onClose;return(a||O)&&Object(l.createElement)("div",{className:"block-editor-block-switcher__container"},O&&Object(l.createElement)(Ju,{className:"block-editor-block-switcher__transforms__menugroup",possibleBlockTransformations:i,blocks:n,onSelect:function(e){!function(e){r(t,Object(p.switchToBlockType)(n,e))}(e),o()}}),a&&Object(l.createElement)(ld,{hoveredBlock:n[0],onSwitch:o}))}))})))},bd=function(e){var t=e.clientIds,n=Object(v.useSelect)((function(e){return e(hr).getBlocksByClientId(t)}),[t]);return!n.length||n.some((function(e){return!e}))?null:Object(l.createElement)(dd,{clientIds:t,blocks:n})},fd=n(53);function pd(){var e=Object(v.useSelect)((function(e){return e(hr)}),[]).getBlockName,t=Object(v.useSelect)((function(e){return e(p.store)}),[]).getBlockType,n=Object(v.useDispatch)(eu.store).createSuccessNotice;return Object(l.useCallback)((function(r,o){var c="";if(1===o.length){var i=o[0],a=t(e(i)).title;c="copy"===r?Object(y.sprintf)(// Translators: Name of the block being copied, e.g. "Paragraph".
50
- Object(y.__)('Copied "%s" to clipboard.'),a):Object(y.sprintf)(// Translators: Name of the block being cut, e.g. "Paragraph".
51
- Object(y.__)('Moved "%s" to clipboard.'),a)}else c="copy"===r?Object(y.sprintf)(// Translators: %d: Number of blocks being copied.
52
- Object(y._n)("Copied %d block to clipboard.","Copied %d blocks to clipboard.",o.length),o.length):Object(y.sprintf)(// Translators: %d: Number of blocks being cut.
53
- Object(y._n)("Moved %d block to clipboard.","Moved %d blocks to clipboard.",o.length),o.length);n(c,{type:"snackbar"})}),[])}function md(){var e=Object(v.useSelect)((function(e){return e(hr)}),[]),t=e.getBlocksByClientId,n=e.getSelectedBlockClientIds,r=e.hasMultiSelection,o=e.getSettings,c=Object(v.useDispatch)(hr),i=c.flashBlock,a=c.removeBlocks,l=c.replaceBlocks,s=pd();return Object(b.useRefEffect)((function(e){function c(c){var u=n();if(0!==u.length){if(!r()){var d=c.target.ownerDocument;if("copy"===c.type||"cut"===c.type?Object(wl.documentHasUncollapsedSelection)(d):Object(wl.documentHasSelection)(d))return}if(e.contains(c.target.ownerDocument.activeElement)){if(c.preventDefault(),"copy"===c.type||"cut"===c.type){1===u.length&&i(u[0]),s(c.type,u);var b=t(u),f=Object(p.serialize)(b);c.clipboardData.setData("text/plain",f),c.clipboardData.setData("text/html",f)}if("cut"===c.type)a(u);else if("paste"===c.type){var m=o().__experimentalCanUserUseUnfilteredHTML,v=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}}var o=Object(wl.getFilesFromDataTransfer)(t).filter((function(e){var t=e.type;return/^image\/(?:jpe?g|png|gif)$/.test(t)}));return o.length&&!r&&(r=o.map((function(e){return'<img src="'.concat(Object(fd.createBlobURL)(e),'">')})).join(""),n=""),{html:r,plainText:n}}(c),O=v.plainText,g=v.html,h=Object(p.pasteHandler)({HTML:g,plainText:O,mode:"BLOCKS",canUserUseUnfilteredHTML:m});l(u,h,h.length-1,-1)}}}}return e.ownerDocument.addEventListener("copy",c),e.ownerDocument.addEventListener("cut",c),e.ownerDocument.addEventListener("paste",c),function(){e.ownerDocument.removeEventListener("copy",c),e.ownerDocument.removeEventListener("cut",c),e.ownerDocument.removeEventListener("paste",c)}}),[])}var vd=function(e){var t=e.children;return Object(l.createElement)("div",{ref:md()},t)};function Od(e){var t=e.clientIds,n=e.children,r=e.__experimentalUpdateSelection,o=Object(v.useSelect)((function(e){return e(hr)}),[]),c=o.canInsertBlockType,i=o.getBlockRootClientId,a=o.getBlocksByClientId,l=o.getTemplateLock,s=Object(v.useSelect)((function(e){return e(p.store)}),[]),u=s.getDefaultBlockName,b=s.getGroupingBlockName,f=a(t),m=i(t[0]),O=Object(d.every)(f,(function(e){return!!e&&Object(p.hasBlockSupport)(e.name,"multiple",!0)&&c(e.name,m)})),g=c(u(),m),h=Object(v.useDispatch)(hr),j=h.removeBlocks,k=h.replaceBlocks,y=h.duplicateBlocks,_=h.insertAfterBlock,E=h.insertBeforeBlock,w=h.flashBlock,C=h.setBlockMovingClientId,S=h.setNavigationMode,B=h.selectBlock,I=pd();return n({canDuplicate:O,canInsertDefaultBlock:g,isLocked:!!l(m),rootClientId:m,blocks:f,onDuplicate:function(){return y(t,r)},onRemove:function(){return j(t,r)},onInsertBefore:function(){E(Object(d.first)(Object(d.castArray)(t)))},onInsertAfter:function(){_(Object(d.last)(Object(d.castArray)(t)))},onMoveTo:function(){S(!0),B(t[0]),C(t[0])},onGroup:function(){if(f.length){var e=b(),n=Object(p.switchToBlockType)(f,e);n&&k(t,n)}},onUngroup:function(){if(f.length){var e=f[0].innerBlocks;e.length&&k(t,e)}},onCopy:function(){var e=f.map((function(e){return e.clientId}));1===f.length&&w(e[0]),I("copy",e)}})}var gd=Object(b.compose)([Object(v.withSelect)((function(e,t){var n=t.clientId,r=e(hr),o=r.getBlock,c=r.getBlockMode,i=r.getSettings,a=o(n),l=i().codeEditingEnabled;return{mode:c(n),blockType:a?Object(p.getBlockType)(a.name):null,isCodeEditingEnabled:l}})),Object(v.withDispatch)((function(e,t){var n=t.onToggle,r=void 0===n?d.noop:n,o=t.clientId;return{onToggleMode:function(){e(hr).toggleBlockMode(o),r()}}}))])((function(e){var t=e.blockType,n=e.mode,r=e.onToggleMode,o=e.small,c=void 0!==o&&o,i=e.isCodeEditingEnabled,a=void 0===i||i;if(!Object(p.hasBlockSupport)(t,"html",!0)||!a)return null;var s="visual"===n?Object(y.__)("Edit as HTML"):Object(y.__)("Edit visually");return Object(l.createElement)(m.MenuItem,{onClick:r},!c&&s)})),hd=Object(b.compose)(Object(v.withSelect)((function(e,t){var n=t.clientId,r=e(hr).getBlock(n);return{block:r,shouldRender:r&&"core/html"===r.name}})),Object(v.withDispatch)((function(e,t){var n=t.block;return{onClick:function(){return e(hr).replaceBlocks(n.clientId,Object(p.rawHandler)({HTML:Object(p.getBlockContent)(n)}))}}})))((function(e){var t=e.shouldRender,n=e.onClick,r=e.small;if(!t)return null;var o=Object(y.__)("Convert to Blocks");return Object(l.createElement)(m.MenuItem,{onClick:n},!r&&o)})),jd=Object(m.createSlotFill)("__experimentalBlockSettingsMenuFirstItem"),kd=jd.Fill,yd=jd.Slot;kd.Slot=yd;var _d=kd;function Ed(e){var t=e.clientIds,n=e.isGroupable,r=e.isUngroupable,o=e.blocksSelection,c=e.groupingBlockName,i=e.onClose,a=void 0===i?function(){}:i,s=Object(v.useDispatch)(hr).replaceBlocks;return n||r?Object(l.createElement)(l.Fragment,null,n&&Object(l.createElement)(m.MenuItem,{onClick:function(){var e;(e=Object(p.switchToBlockType)(o,c))&&s(t,e),a()}},Object(y._x)("Group","verb")),r&&Object(l.createElement)(m.MenuItem,{onClick:function(){var e;(e=o[0].innerBlocks).length&&s(t,e),a()}},Object(y._x)("Ungroup","Ungrouping blocks from within a Group block back into individual blocks within the Editor "))):null}function wd(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 Cd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wd(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Sd=Object(m.createSlotFill)("BlockSettingsMenuControls"),Bd=Sd.Fill,Id=Sd.Slot;Bd.Slot=function(e){var t,n=e.fillProps,r=e.clientIds,o=void 0===r?null:r,c=Object(v.useSelect)((function(e){var t=e(hr),n=t.getBlocksByClientId,r=t.getSelectedBlockClientIds,c=null!==o?o:r();return Object(d.map)(Object(d.compact)(n(c)),(function(e){return e.name}))}),[o]),a={clientIds:(t=Object(v.useSelect)((function(e){var t,n=e(hr),r=n.getBlockRootClientId,o=n.getBlocksByClientId,c=n.canInsertBlockType,i=n.getSelectedBlockClientIds,a=e(p.store).getGroupingBlockName,l=i(),s=a(),u=c(s,null!=l&&l.length?r(l[0]):void 0),d=o(l),b=1===d.length&&(null===(t=d[0])||void 0===t?void 0:t.name)===s;return{clientIds:l,isGroupable:u&&d.length&&!b,isUngroupable:b&&!!d[0].innerBlocks.length,blocksSelection:d,groupingBlockName:s}}),[])).clientIds,isGroupable:t.isGroupable,isUngroupable:t.isUngroupable,blocksSelection:t.blocksSelection,groupingBlockName:t.groupingBlockName},s=a.isGroupable||a.isUngroupable;return Object(l.createElement)(Id,{fillProps:Cd(Cd({},n),{},{selectedBlocks:c})},(function(e){if((null==e?void 0:e.length)>0||s)return Object(l.createElement)(m.MenuGroup,null,e,Object(l.createElement)(Ed,Object(i.a)({},a,{onClose:null==n?void 0:n.onClose})))}))};var xd=Bd,Pd={className:"block-editor-block-settings-menu__popover",position:"bottom right",isAlternate:!0};function Td(e){var t=e.blocks,n=e.onCopy,r=Object(b.useCopyToClipboard)((function(){return Object(p.serialize)(t)}),n);return Object(l.createElement)(m.MenuItem,{ref:r},Object(y.__)("Copy"))}var Nd=function(e){var t=e.clientIds,n=e.__experimentalSelectBlock,r=e.children,o=Object(j.a)(e,["clientIds","__experimentalSelectBlock","children"]),c=Object(d.castArray)(t),a=c.length,s=c[0],u=Object(v.useSelect)((function(e){var t=e(jl.store).getShortcutRepresentation;return{duplicate:t("core/block-editor/duplicate"),remove:t("core/block-editor/remove"),insertAfter:t("core/block-editor/insert-after"),insertBefore:t("core/block-editor/insert-before")}}),[]),b=Object(l.useCallback)(n?function(){var e=Object(yl.a)(Dt.a.mark((function e(t){var r;return Dt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t;case 2:(r=e.sent)&&r[0]&&n(r[0]);case 4:case"end":return e.stop()}}),e)})));return function(_x){return e.apply(this,arguments)}}():d.noop,[n]),f=1===a?Object(y.__)("Remove block"):Object(y.__)("Remove blocks");return Object(l.createElement)(Od,{clientIds:t,__experimentalUpdateSelection:!n},(function(e){var n=e.canDuplicate,c=e.canInsertDefaultBlock,p=e.isLocked,v=e.onDuplicate,O=e.onInsertAfter,g=e.onInsertBefore,h=e.onRemove,j=e.onCopy,k=e.onMoveTo,_=e.blocks;return Object(l.createElement)(m.DropdownMenu,Object(i.a)({icon:_l.a,label:Object(y.__)("Options"),className:"block-editor-block-settings-menu",popoverProps:Pd,noIcons:!0},o),(function(e){var o=e.onClose;return Object(l.createElement)(l.Fragment,null,Object(l.createElement)(m.MenuGroup,null,Object(l.createElement)(_d.Slot,{fillProps:{onClose:o}}),1===a&&Object(l.createElement)(hd,{clientId:s}),Object(l.createElement)(Td,{blocks:_,onCopy:j}),n&&Object(l.createElement)(m.MenuItem,{onClick:Object(d.flow)(o,v,b),shortcut:u.duplicate},Object(y.__)("Duplicate")),c&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(m.MenuItem,{onClick:Object(d.flow)(o,g),shortcut:u.insertBefore},Object(y.__)("Insert before")),Object(l.createElement)(m.MenuItem,{onClick:Object(d.flow)(o,O),shortcut:u.insertAfter},Object(y.__)("Insert after"))),!p&&Object(l.createElement)(m.MenuItem,{onClick:Object(d.flow)(o,k)},Object(y.__)("Move to")),1===a&&Object(l.createElement)(gd,{clientId:s,onToggle:o})),Object(l.createElement)(xd.Slot,{fillProps:{onClose:o},clientIds:t}),"function"==typeof r?r({onClose:o}):l.Children.map((function(e){return Object(l.cloneElement)(e,{onClose:o})})),Object(l.createElement)(m.MenuGroup,null,!p&&Object(l.createElement)(m.MenuItem,{onClick:Object(d.flow)(o,h,b),shortcut:u.remove},f)))}))}))},Dd=function(e){var t=e.clientIds,n=Object(j.a)(e,["clientIds"]);return Object(l.createElement)(m.ToolbarGroup,null,Object(l.createElement)(m.ToolbarItem,null,(function(e){return Object(l.createElement)(Nd,Object(i.a)({clientIds:t,toggleProps:e},n))})))};function Ad(e){var t=e.hideDragHandle,n=Object(v.useSelect)((function(e){var t=e(hr),n=t.getBlockName,r=t.getBlockMode,o=t.getSelectedBlockClientIds,c=t.isBlockValid,i=t.getBlockRootClientId,a=t.getSettings,l=o(),s=l[0],u=i(s),d=a();return{blockClientIds:l,blockClientId:s,blockType:s&&Object(p.getBlockType)(n(s)),hasFixedToolbar:d.hasFixedToolbar,hasReducedUI:d.hasReducedUI,rootClientId:u,isValid:l.every((function(e){return c(e)})),isVisual:l.every((function(e){return"visual"===r(e)}))}}),[]),r=n.blockClientIds,o=n.blockClientId,c=n.blockType,a=n.hasFixedToolbar,s=n.hasReducedUI,d=n.isValid,f=n.isVisual,O=Object(v.useDispatch)(hr).toggleBlockHighlight,g=Object(l.useRef)(),h=Yu({ref:g,onChange:function(e){e&&s||O(o,e)}}),j=h.showMovers,k=h.gestures,y=Object(b.useViewportMatch)("medium","<")||a;if(c&&!Object(p.hasBlockSupport)(c,"__experimentalToolbar",!0))return null;var _=y||j;if(0===r.length)return null;var E=d&&f,w=r.length>1,C=u()("block-editor-block-toolbar",_&&"is-showing-movers");return Object(l.createElement)("div",{className:C},!w&&!y&&Object(l.createElement)(Xu,{clientIds:r}),Object(l.createElement)("div",Object(i.a)({ref:g},k),(E||w)&&Object(l.createElement)(m.ToolbarGroup,{className:"block-editor-block-toolbar__block-controls"},Object(l.createElement)(bd,{clientIds:r}),Object(l.createElement)(Uu,{clientIds:r,hideDragHandle:t||s}))),E&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(Cr.Slot,{group:"block",className:"block-editor-block-toolbar__slot"}),Object(l.createElement)(Cr.Slot,{className:"block-editor-block-toolbar__slot"}),Object(l.createElement)(Cr.Slot,{group:"inline",className:"block-editor-block-toolbar__slot"}),Object(l.createElement)(Cr.Slot,{group:"other",className:"block-editor-block-toolbar__slot"})),Object(l.createElement)(Dd,{clientIds:r}))}var Ld=function(e){var t=e.focusOnMount,n=Object(j.a)(e,["focusOnMount"]),r=Object(v.useSelect)((function(e){var t=e(hr),n=t.getBlockName,r=t.getBlockParents,o=t.getSelectedBlockClientIds,c=e(p.store).getBlockType,i=o()[0];return{blockType:i&&c(n(i)),hasParents:r(i).length}}),[]),o=r.blockType,c=r.hasParents;if(o&&!Object(p.hasBlockSupport)(o,"__experimentalToolbar",!0))return null;var a=u()("block-editor-block-contextual-toolbar",{"has-parent":c});return Object(l.createElement)("div",{className:"block-editor-block-contextual-toolbar-wrapper"},Object(l.createElement)(Gu,Object(i.a)({focusOnMount:t,className:a
54
- /* translators: accessibility text for the block toolbar */,"aria-label":Object(y.__)("Block tools")},n),Object(l.createElement)(Ad,null)))};function Rd(e){var t=e(hr),n=t.isNavigationMode,r=t.isMultiSelecting,o=t.hasMultiSelection,c=t.isTyping,i=t.isCaretWithinFormattedText,a=t.getSettings,l=t.getLastMultiSelectedBlockClientId;return{isNavigationMode:n(),isMultiSelecting:r(),isTyping:c(),isCaretWithinFormattedText:i(),hasMultiSelection:o(),hasFixedToolbar:a().hasFixedToolbar,lastClientId:l()}}function Md(e){var t=e.clientId,n=e.rootClientId,r=e.isValid,o=e.isEmptyDefaultBlock,c=e.capturingClientId,i=Object(v.useSelect)(Rd,[]),a=i.isNavigationMode,s=i.isMultiSelecting,d=i.isTyping,f=i.isCaretWithinFormattedText,p=i.hasMultiSelection,O=i.hasFixedToolbar,g=i.lastClientId,h=Object(b.useViewportMatch)("medium"),j=Object(l.useState)(!1),k=Object(Uo.a)(j,2),y=k[0],_=k[1],E=Object(l.useState)(!1),w=Object(Uo.a)(E,2),C=w[0],S=w[1],B=Object(l.useContext)(qd),I=Object(v.useDispatch)(hr).stopTyping,x=!d&&!a&&o&&r,P=a,T=!a&&!O&&h&&!x&&!s&&(!d||f),N=!(a||T||O||o);Object(jl.useShortcut)("core/block-editor/focus-toolbar",Object(l.useCallback)((function(){_(!0),I(!0)}),[]),{bindGlobal:!0,eventName:"keydown",isDisabled:!N}),Object(l.useEffect)((function(){T||_(!1)}),[T]);var D=Object(l.useRef)();if(Object(l.useEffect)((function(){D.current=void 0}),[t]),!(P||T||y||x))return null;var A=B[t];if(!A)return null;var L=A.ownerDocument;c&&(A=dc(c,L));var R=A;if(p){var M=B[g];if(!M)return null;R={top:A,bottom:M}}var F=x?"top left right":"top right left",V=x?void 0:L.defaultView.frameElement||Object(wl.getScrollContainer)(A)||L.body;return Object(l.createElement)(m.Popover,{noArrow:!0,animate:!1,position:F,focusOnMount:!1,anchorRef:R,className:"block-editor-block-list__block-popover",__unstableStickyBoundaryElement:V,__unstableSlotName:"block-toolbar",__unstableBoundaryParent:!0,__unstableObserveElement:A,shouldAnchorIncludePadding:!0},(T||y)&&Object(l.createElement)("div",{onFocus:function(){S(!0)},onBlur:function(){S(!1)},tabIndex:-1,className:u()("block-editor-block-list__block-popover-inserter",{"is-visible":C})},Object(l.createElement)(wu,{clientId:t,rootClientId:n,__experimentalIsQuick:!0})),(T||y)&&Object(l.createElement)(Ld,{focusOnMount:y,__experimentalInitialIndex:D.current,__experimentalOnIndexChange:function(e){D.current=e}}),P&&Object(l.createElement)(Hu,{clientId:t,rootClientId:n,blockElement:A}),x&&Object(l.createElement)("div",{className:"block-editor-block-list__empty-block-inserter"},Object(l.createElement)(wu,{position:"bottom right",rootClientId:n,clientId:t,__experimentalIsQuick:!0})))}function Fd(e){var t=e(hr),n=t.getSelectedBlockClientId,r=t.getFirstMultiSelectedBlockClientId,o=t.getBlockRootClientId,c=t.__unstableGetBlockWithoutInnerBlocks,i=t.getBlockParents,a=t.__experimentalGetBlockListSettingsForBlocks,l=n()||r();if(l){var s=c(l)||{},u=s.name,b=s.attributes,f=void 0===b?{}:b,m=s.isValid,v=i(l),O=a(v),g=Object(d.find)(v,(function(e){var t;return null===(t=O[e])||void 0===t?void 0:t.__experimentalCaptureToolbars}));return{clientId:l,rootClientId:o(l),name:u,isValid:m,isEmptyDefaultBlock:u&&Object(p.isUnmodifiedDefaultBlock)({name:u,attributes:f}),capturingClientId:g}}}function Vd(){var e=Object(v.useSelect)(Fd,[]);if(!e)return null;var t=e.clientId,n=e.rootClientId,r=e.name,o=e.isValid,c=e.isEmptyDefaultBlock,i=e.capturingClientId;return r?Object(l.createElement)(Md,{clientId:t,rootClientId:n,isValid:o,isEmptyDefaultBlock:c,capturingClientId:i}):null}var Hd=n(155),zd=n.n(Hd);function Gd(e){var t=Object(v.useSelect)((function(e){return e(hr).getBlockSelectionEnd()}),[]);Object(l.useEffect)((function(){if(t){var n=e.current.ownerDocument,r=dc(t,n);if(r){var o=Object(wl.getScrollContainer)(r);o&&zd()(r,o,{onlyScrollIfNeeded:!0})}}}),[t])}function Ud(){var e=Object(l.useRef)();return Gd(e),Object(l.createElement)("div",{ref:e})}var Wd="undefined"==typeof window?function(e){setTimeout((function(){return e(Date.now())}),0)}:window.requestIdleCallback||window.requestAnimationFrame,Kd="undefined"==typeof window?clearTimeout:window.cancelIdleCallback||window.cancelAnimationFrame,qd=Object(l.createContext)(),$d=Object(l.createContext)();function Yd(e){var t,n=e.className,r=e.__experimentalLayout,o=Object(l.useRef)(),c=Object(l.useState)({}),i=Object(Uo.a)(c,2),a=i[0],s=i[1],d=function(e){var t=Object(l.useState)(!1),n=Object(Uo.a)(t,2),r=n[0],o=n[1],c=Object(l.useState)(!1),i=Object(Uo.a)(c,2),a=i[0],s=i[1],u=Object(l.useState)(null),d=Object(Uo.a)(u,2),b=d[0],f=d[1],p=Object(v.useSelect)((function(e){var t=e(hr),n=t.isMultiSelecting,r=t.isBlockInsertionPointVisible,o=t.getBlockInsertionPoint,c=t.getBlockOrder,i=t.getBlockListSettings,a=o(),l=c(a.rootClientId);return{getBlockListSettings:i,isMultiSelecting:n(),isInserterVisible:r(),selectedClientId:l[a.index-1],selectedRootClientId:a.rootClientId}}),[]),m=p.isMultiSelecting,O=p.isInserterVisible,g=p.selectedClientId,h=p.selectedRootClientId,j=p.getBlockListSettings,k=Object(l.useCallback)((function(e){var t;if(e.target.classList.contains("block-editor-block-list__layout")){var n;e.target.classList.contains("is-root-container")||(n=(e.target.getAttribute("data-block")?e.target:e.target.closest("[data-block]")).getAttribute("data-block"));var c=(null===(t=j(n))||void 0===t?void 0:t.orientation)||"vertical",i=e.target.getBoundingClientRect(),a=e.clientY-i.top,l=e.clientX-i.left,s=Array.from(e.target.children),u=s.find((function(e){return e.classList.contains("wp-block")&&"vertical"===c&&e.offsetTop>a||e.classList.contains("wp-block")&&"horizontal"===c&&e.offsetLeft>l})),d=u?s[s.indexOf(u)-1]:s[s.length-1];if(d&&(d.id||(d=d.firstElementChild))){var b=d.id.slice("block-".length);if(b){var p=d.getBoundingClientRect();"horizontal"===c&&(e.clientY>p.bottom||e.clientY<p.top)||"vertical"===c&&(e.clientX>p.right||e.clientX<p.left)?r&&o(!1):(o(!0),f(b))}}}else r&&o(!1)}),[r,o,f]),y=!a&&!m;return Object(l.useEffect)((function(){if(y)return e.current.addEventListener("mousemove",k),function(){e.current.removeEventListener("mousemove",k)}}),[y,k]),!m&&(r||a||O)&&Object(l.createElement)(Mu,{clientId:O?g:b,selectedRootClientId:h,isInserterShown:r,isInserterForced:a,setIsInserterForced:function(e){s(e),e||o(e)},containerRef:e,showInsertionPoint:O})}(o);Gd(o),t=Object(v.useSelect)((function(e){return e(hr).getSettings().__experimentalBlockPatterns}),[]),Object(l.useEffect)((function(){if(null!=t&&t.length){var e,n=-1;return e=Wd((function r(){++n>=t.length||(Object(v.select)(hr).__experimentalGetParsedPattern(t[n].name),e=Wd(r))})),function(){return Kd(e)}}}),[t]);var f=Object(b.useViewportMatch)("medium"),p=Object(v.useSelect)((function(e){var t=e(hr),n=t.isTyping,r=t.getSettings,o=t.isNavigationMode,c=r(),i=c.outlineMode,a=c.focusMode;return{isTyping:n(),isOutlineMode:i,isFocusMode:a,isNavigationMode:o()}}),[]),m=p.isTyping,O=p.isOutlineMode,g=p.isFocusMode,h=p.isNavigationMode;return Object(l.createElement)(qd.Provider,{value:a},d,Object(l.createElement)(Vd,null),Object(l.createElement)("div",{ref:o,className:u()("block-editor-block-list__layout is-root-container",n,{"is-typing":m,"is-outline-mode":O,"is-focus-mode":g&&f,"is-navigate-mode":h})},Object(l.createElement)($d.Provider,{value:s},Object(l.createElement)(Qd,{wrapperRef:o,__experimentalLayout:r}))))}function Xd(e){var t,n,r,o,c,i,s,u,d,b,f,p,O,g,h,j,k,y,_=e.placeholder,E=e.rootClientId,w=e.renderAppender,C=e.__experimentalAppenderTagName,S=e.__experimentalLayout,B=void 0===S?Nr:S,I=e.wrapperRef,x=Object(v.useSelect)((function(e){var t=e(hr),n=t.getBlockOrder,r=t.getSelectedBlockClientId,o=t.getMultiSelectedBlockClientIds,c=t.hasMultiSelection;return{blockClientIds:n(E),selectedBlockClientId:r(),multiSelectedBlockClientIds:o(),hasMultiSelection:c()}}),[E]),P=x.blockClientIds,T=x.selectedBlockClientId,N=x.multiSelectedBlockClientIds,D=x.hasMultiSelection;return n=(t={element:I,rootClientId:E}).element,r=t.rootClientId,o=void 0===r?"":r,c=Object(l.useState)(null),i=Object(Uo.a)(c,2),s=i[0],u=i[1],d=Object(v.useSelect)((function(e){var t,n=e(hr),r=n.getBlockListSettings;return{isLockedAll:"all"===(0,n.getTemplateLock)(o),orientation:null===(t=r(o))||void 0===t?void 0:t.orientation}}),[o]),b=d.isLockedAll,f=d.orientation,p=Object(v.useDispatch)("core/block-editor"),O=p.showInsertionPoint,g=p.hideInsertionPoint,h=Nu(o,s),j=Object(m.__unstableUseDropZone)(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Lu(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({element:n,isDisabled:b,withPosition:!0},h)),k=j.position,y=j.isDraggingOverDocument,Object(l.useEffect)((function(){if(k){var e=function(e,t,n){var r,o,c="horizontal"===n?["left","right"]:["top","bottom"];return e.forEach((function(n,i){if(n.classList.contains("wp-block")){var a=n.getBoundingClientRect(),l=Au(t,a,c),s=Object(Uo.a)(l,2),u=s[0],d=s[1];if(void 0===o||u<o){var b="bottom"===d||"right"===d,f=b?1:0,p=b&&e[i+1]&&e[i+1].classList.contains("is-dragging");o=u,r=i+(f+=p?1:0)}}})),r}(Array.from(n.current.children),k,f);u(void 0===e?0:e)}else u(null)}),[k]),Object(l.useEffect)((function(){y?null!==s&&O(o,s):g()}),[s,y]),Object(l.createElement)(Lr,{value:B},P.map((function(e,t){var n=D?N.includes(e):T===e;return Object(l.createElement)(v.AsyncModeProvider,{key:e,value:!n},Object(l.createElement)(ub,{rootClientId:E,clientId:e,index:t}))})),P.length<1&&_,Object(l.createElement)(Iu,{tagName:C,rootClientId:E,renderAppender:w}))}function Qd(e){return Object(l.createElement)(v.AsyncModeProvider,{value:!1},Object(l.createElement)(Xd,e))}function Zd(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 Jd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zd(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function eb(e){var t=Object(l.useContext)($d),n=Object(v.useSelect)((function(t){var n=t(hr),r=n.isBlockSelected,o=n.isFirstMultiSelectedBlock,c=n.getLastMultiSelectedBlockClientId;return r(e)||o(e)||c()===e}));return Object(b.useRefEffect)((function(r){if(n)return t((function(t){return Jd(Jd({},t),{},Object(a.a)({},e,r))})),function(){t((function(t){return Object(d.omit)(t,e)}))}}),[n,e,t])}function tb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function nb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tb(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function rb(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.__unstableIsHtml,r=Object(l.useContext)(ib),o=r.clientId,c=r.index,i=r.className,a=r.wrapperProps,s=void 0===a?{}:a,d=Object(v.useSelect)((function(e){var t=e(hr),n=t.getBlockMode,r=t.getBlockName,c=t.isTyping,i=t.getGlobalBlockCount,a=t.isBlockSelected,l=t.isBlockMultiSelected,s=t.isAncestorMultiSelected,u=t.isFirstMultiSelectedBlock,d=a(o),b=l(o)||s(o),f=r(o);return{mode:n(o),name:f,blockTitle:Object(p.getBlockType)(f).title,isPartOfSelection:d||b,adjustScrolling:d||u(o),enableAnimation:!c()&&i()<=200}}),[o]),f=d.mode,m=d.name,O=d.blockTitle,g=d.isPartOfSelection,h=d.adjustScrolling,j=d.enableAnimation,k=Object(y.sprintf)(Object(y.__)("Block: %s"),O),_="html"!==f||n?"":"-visual",E=Object(b.useMergeRefs)([e.ref,ts(o),eb(o),Os(o),gs(o),rs(),Bl({isSelected:g,adjustScrolling:h,enableAnimation:j,triggerAnimationOnChange:c})]);return nb(nb(nb({},s),e),{},{ref:E,id:"block-".concat(o).concat(_),tabIndex:0,role:"group","aria-label":k,"data-block":o,"data-type":m,"data-title":O,className:u()(i,e.className,s.className,os(o),cs(o),is(o),as(o)),style:nb(nb({},s.style),e.style)})}function ob(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function cb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ob(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ob(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}rb.save=p.__unstableGetBlockProps;var ib=Object(l.createContext)();function ab(e){var t=e.children,n=e.isHtml,r=Object(j.a)(e,["children","isHtml"]);return Object(l.createElement)("div",rb(r,{__unstableIsHtml:n}),t)}var lb=Object(v.withSelect)((function(e,t){var n=t.clientId,r=t.rootClientId,o=e(hr),c=o.isBlockSelected,i=o.getBlockMode,a=o.isSelectionEnabled,l=o.getTemplateLock,s=(0,o.__unstableGetBlockWithoutInnerBlocks)(n),u=c(n),d=l(r),b=s||{},f=b.name,p=b.attributes,m=b.isValid;return{mode:i(n),isSelectionEnabled:a(),isLocked:!!d,block:s,name:f,attributes:p,isValid:m,isSelected:u}})),sb=Object(v.withDispatch)((function(e,t,n){var r=n.select,o=e(hr),c=o.updateBlockAttributes,i=o.insertBlocks,a=o.mergeBlocks,l=o.replaceBlocks,s=o.toggleSelection,u=o.__unstableMarkLastChangeAsPersistent;return{setAttributes:function(e){var n=(0,r(hr).getMultiSelectedBlockClientIds)(),o=t.clientId,i=n.length?n:[o];c(i,e)},onInsertBlocks:function(e,n){var r=t.rootClientId;i(e,n,r)},onInsertBlocksAfter:function(e){var n=t.clientId,o=t.rootClientId,c=(0,r(hr).getBlockIndex)(n,o);i(e,c+1,o)},onMerge:function(e){var n=t.clientId,o=r(hr),c=o.getPreviousBlockClientId,i=o.getNextBlockClientId;if(e){var l=i(n);l&&a(n,l)}else{var s=c(n);s&&a(s,n)}},onReplace:function(e,n,r){e.length&&!Object(p.isUnmodifiedDefaultBlock)(e[e.length-1])&&u(),l([t.clientId],e,n,r)},toggleSelection:function(e){s(e)}}})),ub=Object(b.compose)(b.pure,lb,sb,Object(b.ifCondition)((function(e){return!!e.block})),Object(m.withFilters)("editor.BlockListBlock"))((function(e){var t,n,r,o=e.mode,c=e.isLocked,i=e.clientId,a=e.isSelected,s=e.isSelectionEnabled,b=e.className,f=e.name,m=e.isValid,O=e.attributes,g=e.wrapperProps,h=e.setAttributes,j=e.onReplace,k=e.onInsertBlocksAfter,y=e.onMerge,_=e.toggleSelection,E=e.index,w=Object(v.useDispatch)(hr).removeBlock,C=Object(l.useCallback)((function(){return w(i)}),[i]),S=Object(l.createElement)(hl,{name:f,isSelected:a,attributes:O,setAttributes:h,insertBlocksAfter:c?void 0:k,onReplace:c?void 0:j,onRemove:c?void 0:C,mergeBlocks:c?void 0:y,clientId:i,isSelectionEnabled:s,toggleSelection:_}),B=Object(p.getBlockType)(f),I=B.apiVersion>1||Object(p.hasBlockSupport)(B,"lightBlockWrapper",!1);B.getEditWrapperProps&&(t=g,n=B.getEditWrapperProps(O),r=cb(cb({},t),n),t&&n&&t.className&&n.className&&(r.className=u()(t.className,n.className)),t&&n&&t.style&&n.style&&(r.style=cb(cb({},t.style),n.style)),g=r);var x,P=g&&!!g["data-align"];P&&(S=Object(l.createElement)("div",{className:"wp-block","data-align":g["data-align"]},S)),x=m?"html"===o?Object(l.createElement)(l.Fragment,null,Object(l.createElement)("div",{style:{display:"none"}},S),Object(l.createElement)(ab,{isHtml:!0},Object(l.createElement)(es,{clientId:i}))):I?S:Object(l.createElement)(ab,g,S):Object(l.createElement)(ab,{className:"has-warning"},Object(l.createElement)($l,{clientId:i}),Object(l.createElement)("div",null,Object(p.getSaveElement)(B,O)));var T={clientId:i,isSelected:a,index:E,className:u()(b,{"wp-block":!P}),wrapperProps:Object(d.omit)(g,["data-align"])},N=Object(l.useMemo)((function(){return T}),Object.values(T));return Object(l.createElement)(ib.Provider,{value:N},Object(l.createElement)(Ql,{fallback:Object(l.createElement)(ab,{className:"has-warning"},Object(l.createElement)(Xl,null))},x))}));function db(e){var t=e.level;return Object(d.times)(t-1,(function(e){var n=e+2===t;return Object(l.createElement)("div",{key:e,"aria-hidden":"true",className:u()("block-editor-block-navigator-indentation",{"has-item":n})})}))}var bb=function(e,t,n){return Object(y.sprintf)(
 
 
55
  /* translators: 1: The numerical position of the block. 2: The total number of blocks. 3. The level of nesting for the block. */
56
- Object(y.__)("Block %1$d of %2$d, Level %3$d"),e,t,n)},fb=function(e,t){return Object(d.isArray)(t)&&t.length?-1!==t.indexOf(e):t===e},pb=Object(l.forwardRef)((function e(t,n){var r=t.className,o=t.block.clientId,c=t.isSelected,i=t.onClick,a=t.position,s=t.siblingBlockCount,d=t.level,f=t.tabIndex,p=t.onFocus,v=t.onDragStart,O=t.onDragEnd,g=t.draggable,h=il(o),j=Object(b.useInstanceId)(e),k="block-navigation-block-select-button__".concat(j),_=bb(a,s,d);return Object(l.createElement)(l.Fragment,null,Object(l.createElement)(m.Button,{className:u()("block-editor-block-navigation-block-select-button",r),onClick:i,"aria-describedby":k,ref:n,tabIndex:f,onFocus:p,onDragStart:v,onDragEnd:O,draggable:g},Object(l.createElement)(db,{level:d}),Object(l.createElement)(Ja,{icon:null==h?void 0:h.icon,showColors:!0}),Object(l.createElement)(al,{clientId:o}),c&&Object(l.createElement)(m.VisuallyHidden,null,Object(y.__)("(selected block)"))),Object(l.createElement)("div",{className:"block-editor-block-navigation-block-select-button__description",id:k},_))}));function mb(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 vb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mb(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ob=function(e){return"BlockNavigationBlock-".concat(e)},gb=Object(l.forwardRef)((function e(t,n){var r=t.block.clientId,o=Object(v.useSelect)((function(e){return e(hr).getBlockName(r)}),[r]).name,c=Object(b.useInstanceId)(e);return Object(l.createElement)(m.Slot,{name:Ob(r)},(function(e){if(!e.length)return Object(l.createElement)(pb,Object(i.a)({ref:n},t));var r=t.className,a=t.isSelected,s=t.position,d=t.siblingBlockCount,b=t.level,f=t.tabIndex,v=t.onFocus,O=Object(p.getBlockType)(o),g="block-navigation-block-slot__".concat(c),h=bb(s,d,b),j={tabIndex:f,onFocus:v,ref:n,"aria-describedby":g};return Object(l.createElement)(l.Fragment,null,Object(l.createElement)("div",{className:u()("block-editor-block-navigation-block-slot",r)},Object(l.createElement)(Ja,{icon:O.icon,showColors:!0}),l.Children.map(e,(function(e){return Object(l.cloneElement)(e,vb(vb({},e.props),j))})),a&&Object(l.createElement)(m.VisuallyHidden,null,Object(y.__)("(selected block)")),Object(l.createElement)("div",{className:"block-editor-block-navigation-block-slot__description",id:g},h)))}))})),hb=function(e){var t=Object(l.useContext)(ib).clientId;return Object(l.createElement)(m.Fill,Object(i.a)({},e,{name:Ob(t)}))},jb=Object(l.forwardRef)((function(e,t){var n=e.onClick,r=e.block,o=e.isSelected,c=e.position,a=e.siblingBlockCount,s=e.level,d=Object(j.a)(e,["onClick","block","isSelected","position","siblingBlockCount","level"]),b=Hl(),f=b.__experimentalFeatures,p=b.blockDropTarget,m=void 0===p?{}:p,O=r.clientId,g=Object(v.useSelect)((function(e){var t=e(hr),n=t.getBlockRootClientId,r=t.hasBlockMovingClientId,o=t.getSelectedBlockClientId;return{rootClientId:n(O)||"",blockMovingClientId:r(),selectedBlockInBlockEditor:o()}}),[O]),h=g.rootClientId,k=g.blockMovingClientId,y=g.selectedBlockInBlockEditor,_=k&&y===O,E=m.rootClientId,w=m.clientId,C=m.dropPosition,S=E===h&&w===O&&"top"===C,B=E===h&&w===O&&"bottom"===C,I=E===O&&"inside"===C,x=u()("block-editor-block-navigation-block-contents",{"is-dropping-before":S||_,"is-dropping-after":B,"is-dropping-to-inner-blocks":I});return Object(l.createElement)(Fu,{clientIds:[r.clientId],elementId:"block-navigation-block-".concat(r.clientId)},(function(e){var u=e.draggable,b=e.onDragStart,p=e.onDragEnd;return f?Object(l.createElement)(gb,Object(i.a)({ref:t,className:x,block:r,onClick:n,isSelected:o,position:c,siblingBlockCount:a,level:s,draggable:u&&f,onDragStart:b,onDragEnd:p},d)):Object(l.createElement)(pb,Object(i.a)({ref:t,className:x,block:r,onClick:n,isSelected:o,position:c,siblingBlockCount:a,level:s,draggable:u&&f,onDragStart:b,onDragEnd:p},d))}))}));function kb(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return yb(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?yb(e,void 0):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,i=!0,a=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return i=e.done,e},e:function(e){a=!0,c=e},f:function(){try{i||null==n.return||n.return()}finally{if(a)throw c}}}}function yb(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function _b(e){var t=e.block,n=e.isSelected,r=e.isBranchSelected,o=e.isLastOfSelectedBranch,c=e.onClick,i=e.position,a=e.level,s=e.rowCount,d=e.siblingBlockCount,b=e.showBlockMovers,f=e.path,p=Object(l.useRef)(null),O=Object(l.useState)(!1),g=Object(Uo.a)(O,2),h=g[0],j=g[1],k=t.clientId,_=Object(v.useSelect)((function(e){var t=e(hr),n=t.isBlockBeingDragged,r=t.isAncestorBeingDragged,o=t.getBlockParents;return{isDragging:n(k)||r(k),blockParents:o(k)}}),[k]),E=_.isDragging,w=_.blockParents,C=Object(v.useDispatch)(hr),S=C.selectBlock,B=C.toggleBlockHighlight,I=b&&d>0,x=u()("block-editor-block-navigation-block__mover-cell",{"is-visible":h}),P=Hl(),T=P.__experimentalFeatures,N=P.__experimentalPersistentListViewFeatures,D=u()("block-editor-block-navigation-block__menu-cell",{"is-visible":h});Object(l.useEffect)((function(){N&&n&&p.current.focus()}),[]),Object(l.useEffect)((function(){T&&n&&p.current.focus()}),[T,n]);var A=N?B:function(){},L=function(){j(!0),A(k,!0)},R=function(){j(!1),A(k,!1)},M=u()({"is-selected":n,"is-branch-selected":N&&r,"is-last-of-selected-branch":N&&o,"is-dragging":E});return Object(l.createElement)(xl,{className:M,onMouseEnter:L,onMouseLeave:R,onFocus:L,onBlur:R,level:a,position:i,rowCount:s,path:f,id:"block-navigation-block-".concat(k),"data-block":k},Object(l.createElement)(m.__experimentalTreeGridCell,{className:"block-editor-block-navigation-block__contents-cell",colSpan:I?void 0:2,ref:p},(function(e){var r=e.ref,o=e.tabIndex,s=e.onFocus;return Object(l.createElement)("div",{className:"block-editor-block-navigation-block__contents-container"},Object(l.createElement)(jb,{block:t,onClick:function(){return c(t.clientId)},isSelected:n,position:i,siblingBlockCount:d,level:a,ref:r,tabIndex:o,onFocus:s}))})),I&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(m.__experimentalTreeGridCell,{className:x,withoutGridItem:!0},Object(l.createElement)(m.__experimentalTreeGridItem,null,(function(e){var t=e.ref,n=e.tabIndex,r=e.onFocus;return Object(l.createElement)(Ml,{orientation:"vertical",clientIds:[k],ref:t,tabIndex:n,onFocus:r})})),Object(l.createElement)(m.__experimentalTreeGridItem,null,(function(e){var t=e.ref,n=e.tabIndex,r=e.onFocus;return Object(l.createElement)(Fl,{orientation:"vertical",clientIds:[k],ref:t,tabIndex:n,onFocus:r})})))),T&&Object(l.createElement)(m.__experimentalTreeGridCell,{className:D},(function(e){var t=e.ref,n=e.tabIndex,r=e.onFocus;return Object(l.createElement)(Nd,{clientIds:[k],icon:_l.a,toggleProps:{ref:t,tabIndex:n,onFocus:r},disableOpenOnArrowDown:!0,__experimentalSelectBlock:c},(function(e){var t=e.onClose;return Object(l.createElement)(m.MenuGroup,null,Object(l.createElement)(m.MenuItem,{onClick:Object(yl.a)(Dt.a.mark((function e(){var n,r,o;return Dt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!w.length){e.next=20;break}n=kb(w),e.prev=2,n.s();case 4:if((r=n.n()).done){e.next=10;break}return o=r.value,e.next=8,S(o);case 8:e.next=4;break;case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(2),n.e(e.t0);case 15:return e.prev=15,n.f(),e.finish(15);case 18:e.next=22;break;case 20:return e.next=22,S(null);case 22:return e.next=24,S(k);case 24:t();case 25:case"end":return e.stop()}}),e,null,[[2,12,15,18]])})))},Object(y.__)("Go to block")))}))})))}function Eb(e){var t=e.parentBlockClientId,n=e.position,r=e.level,o=e.rowCount,c=e.path,i=Object(v.useSelect)((function(e){var n=e(hr),r=n.isBlockBeingDragged,o=n.isAncestorBeingDragged;return r(t)||o(t)}),[t]),a=Object(b.useInstanceId)(Eb),s="block-navigation-appender-row__description_".concat(a),d=Object(y.sprintf)(
57
  /* translators: 1: The numerical position of the block that will be inserted. 2: The level of nesting for the block that will be inserted. */
58
- Object(y.__)("Add block at position %1$d, Level %2$d"),n,r);return Object(l.createElement)(xl,{className:u()({"is-dragging":i}),level:r,position:n,rowCount:o,path:c},Object(l.createElement)(m.__experimentalTreeGridCell,{className:"block-editor-block-navigation-appender__cell",colSpan:"3"},(function(e){var n=e.ref,o=e.tabIndex,c=e.onFocus;return Object(l.createElement)("div",{className:"block-editor-block-navigation-appender__container"},Object(l.createElement)(db,{level:r}),Object(l.createElement)(wu,{rootClientId:t,__experimentalIsQuick:!0,"aria-describedby":s,toggleProps:{ref:n,tabIndex:o,onFocus:c}}),Object(l.createElement)("div",{className:"block-editor-block-navigation-appender__description",id:s},d))})))}function wb(e){var t=e.blocks,n=e.selectBlock,r=e.selectedBlockClientIds,o=e.showAppender,c=e.showBlockMovers,i=e.showNestedBlocks,a=e.parentBlockClientId,s=e.level,u=void 0===s?1:s,b=e.terminatedLevels,f=void 0===b?[]:b,p=e.path,m=void 0===p?[]:p,v=e.isBranchSelected,O=void 0!==v&&v,g=e.isLastOfBranch,h=void 0!==g&&g,j=!a,y=Object(d.compact)(t),_=function(e){return o&&!j&&fb(e,r)},E=_(a),w=y.length,C=E?w+1:w,S=C;return Object(l.createElement)(l.Fragment,null,Object(d.map)(y,(function(e,t){var a=e.clientId,s=e.innerBlocks,d=t+1,b=C===d?[].concat(Object(k.a)(f),[u]):f,p=[].concat(Object(k.a)(m),[d]),v=i&&!!s&&!!s.length,g=_(a),j=v||g,y=fb(a,r),E=O||y&&j,S=t===w-1,B=y||h&&S,I=h&&!j&&S;return Object(l.createElement)(l.Fragment,{key:a},Object(l.createElement)(_b,{block:e,onClick:n,isSelected:y,isBranchSelected:E,isLastOfSelectedBranch:I,level:u,position:d,rowCount:C,siblingBlockCount:w,showBlockMovers:c,terminatedLevels:f,path:p}),j&&Object(l.createElement)(wb,{blocks:s,selectedBlockClientIds:r,selectBlock:n,isBranchSelected:E,isLastOfBranch:B,showAppender:o,showBlockMovers:c,showNestedBlocks:i,parentBlockClientId:a,level:u+1,terminatedLevels:b,path:p}))})),E&&Object(l.createElement)(Eb,{parentBlockClientId:a,position:C,rowCount:S,level:u,terminatedLevels:f,path:[].concat(Object(k.a)(m),[S])}))}function Cb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Sb(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Bb(e,t){return t.left<=e.x&&t.right>=e.x&&t.top<=e.y&&t.bottom>=e.y}wb.defaultProps={selectBlock:function(){}};var Ib=["top","bottom"];function xb(e){var t=Object(l.useState)(),n=Object(Uo.a)(t,2),r=n[0],o=void 0===r?{}:r,c=n[1],i=Nu(o.rootClientId,o.blockIndex),s=Object(m.__unstableUseDropZone)(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cb(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({element:e,withPosition:!0},i)),u=s.position,d=s.type,b=function(e,t,n){var r=Object(v.useSelect)((function(e){var t=e(hr);return{canInsertBlocks:t.canInsertBlocks,getBlockRootClientId:t.getBlockRootClientId,getBlockIndex:t.getBlockIndex,getBlockCount:t.getBlockCount,getDraggedBlockClientIds:t.getDraggedBlockClientIds}}),[]),o=r.getBlockRootClientId,c=r.getBlockIndex,i=r.getBlockCount,a=r.getDraggedBlockClientIds,s=r.canInsertBlocks,u=Object(l.useRef)(),d=!!t;return Object(l.useEffect)((function(){if(e.current&&d){var t="default"===n,r=t?a():void 0,l=Array.from(e.current.querySelectorAll("[data-block]"));u.current=l.map((function(e){var n=e.dataset.block,a=o(n);return{clientId:n,rootClientId:a,blockIndex:c(n,a),element:e,isDraggedBlock:!!t&&r.includes(n),innerBlockCount:i(n),canInsertDraggedBlocksAsSibling:!t||s(r,a),canInsertDraggedBlocksAsChild:!t||s(r,n)}}))}}),[e,d,n,s,i,c,o,a]),u}(e,u,d);if(Object(l.useEffect)((function(){if(u){var e=function(e,t){var n,r,o,c,i,a=function(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Sb(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Sb(e,void 0):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,i=!0,a=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return i=e.done,e},e:function(e){a=!0,c=e},f:function(){try{i||null==n.return||n.return()}finally{if(a)throw c}}}}(e);try{for(a.s();!(i=a.n()).done;){var l=i.value;if(!l.isDraggedBlock){var s=l.element.getBoundingClientRect(),u=Au(t,s,Ib),d=Object(Uo.a)(u,2),b=d[0],f=d[1],p=Bb(t,s);if(void 0===o||b<o||p){o=b;var m=e.indexOf(l),v=e[m-1];if("top"===f&&v&&v.rootClientId===l.rootClientId&&!v.isDraggedBlock?(r=v,n="bottom",c=v.element.getBoundingClientRect()):(r=l,n=f,c=s),p)break}}}}catch(e){a.e(e)}finally{a.f()}if(r){var O="bottom"===n;if(O&&r.canInsertDraggedBlocksAsChild&&(r.innerBlockCount>0||function(e,t){var n=t.left+t.width/2;return e.x>n}(t,c)))return{rootClientId:r.clientId,blockIndex:0,dropPosition:"inside"};if(r.canInsertDraggedBlocksAsSibling){var g=O?1:0;return{rootClientId:r.rootClientId,clientId:r.clientId,blockIndex:r.blockIndex+g,dropPosition:n}}}}(b.current,u);e&&c(e)}}),[b,u]),u)return o}function Pb(e){var t=e.__experimentalFeatures,n=e.__experimentalPersistentListViewFeatures,r=Object(j.a)(e,["__experimentalFeatures","__experimentalPersistentListViewFeatures"]),o=Object(l.useRef)(),c=xb(o);t||(c=void 0);var i=Object(l.useMemo)((function(){return{__experimentalFeatures:t,__experimentalPersistentListViewFeatures:n,blockDropTarget:c}}),[t,n,c]);return Object(l.createElement)(m.__experimentalTreeGrid,{className:"block-editor-block-navigation-tree","aria-label":Object(y.__)("Block navigation structure"),ref:o},Object(l.createElement)(Vl.Provider,{value:i},Object(l.createElement)(wb,r)))}function Tb(e){var t=e.onSelect,n=void 0===t?d.noop:t,r=e.__experimentalFeatures,o=Object(v.useSelect)((function(e){var t=e(hr),n=t.getBlockHierarchyRootClientId,r=t.getSelectedBlockClientId,o=t.__unstableGetClientIdsTree,c=t.__unstableGetClientIdWithClientIdsTree,i=r(),l=o();return{rootBlock:a&&!Object(d.isArray)(a)?c(n(i)):null,rootBlocks:l,selectedBlockClientId:i}})),c=o.rootBlock,i=o.rootBlocks,a=o.selectedBlockClientId,s=Object(v.useDispatch)(hr).selectBlock;if(!i||0===i.length)return null;var u=c&&(!fb(c.clientId,a)||c.innerBlocks&&0!==c.innerBlocks.length);return Object(l.createElement)("div",{className:"block-editor-block-navigation__container"},Object(l.createElement)("p",{className:"block-editor-block-navigation__label"},Object(y.__)("List view")),Object(l.createElement)(Pb,{blocks:u?[c]:i,selectedBlockClientIds:[a],selectBlock:function(e){s(e),n(e)},__experimentalFeatures:r,showNestedBlocks:!0}))}function Nb(e){var t=e.isEnabled,n=e.onToggle,r=e.isOpen,o=e.innerRef,c=Object(j.a)(e,["isEnabled","onToggle","isOpen","innerRef"]);Object(jl.useShortcut)("core/edit-post/toggle-block-navigation",Object(l.useCallback)(n,[n]),{bindGlobal:!0,isDisabled:!t});var a=Object(v.useSelect)((function(e){return e(jl.store).getShortcutRepresentation("core/edit-post/toggle-block-navigation")}),[]);return Object(l.createElement)(m.Button,Object(i.a)({},c,{ref:o,icon:kl.a,"aria-expanded":r,"aria-haspopup":"true",onClick:t?n:void 0
59
- /* translators: button label text should, if possible, be under 16 characters. */,label:Object(y.__)("List view"),className:"block-editor-block-navigation",shortcut:a,"aria-disabled":!t}))}var Db=Object(l.forwardRef)((function(e,t){var n=e.isDisabled,r=e.__experimentalFeatures,o=Object(j.a)(e,["isDisabled","__experimentalFeatures"]),c=Object(v.useSelect)((function(e){return!!e(hr).getBlockCount()}),[])&&!n;return Object(l.createElement)(m.Dropdown,{contentClassName:"block-editor-block-navigation__popover",position:"bottom right",renderToggle:function(e){var n=e.isOpen,r=e.onToggle;return Object(l.createElement)(Nb,Object(i.a)({},o,{innerRef:t,isOpen:n,onToggle:r,isEnabled:c}))},renderContent:function(e){var t=e.onClose;return Object(l.createElement)(Tb,{onSelect:t,__experimentalFeatures:r})}})})),Ab=n(160),Lb=[Kc.rawShortcut.primary("z"),Kc.rawShortcut.primaryShift("z"),Kc.rawShortcut.primary("y")],Rb=Object(l.createElement)(m.KeyboardShortcuts,{bindGlobal:!0,shortcuts:Object(d.fromPairs)(Lb.map((function(e){return[e,function(e){return e.preventDefault()}]})))}),Mb=function(){return Rb};function Fb(e){return e.filter((function(e){var t=e.type;return/^image\/(?:jpe?g|png|gif)$/.test(t)})).map((function(e){return'<img src="'.concat(Object(fd.createBlobURL)(e),'">')})).join("")}var Vb={position:"bottom right",isAlternate:!0},Hb=function(){return Object(l.createElement)(l.Fragment,null,["bold","italic","link","text-color"].map((function(e){return Object(l.createElement)(m.Slot,{name:"RichText.ToolbarControls.".concat(e),key:e})})),Object(l.createElement)(m.Slot,{name:"RichText.ToolbarControls"},(function(e){return 0!==e.length&&Object(l.createElement)(m.ToolbarItem,null,(function(t){return Object(l.createElement)(m.DropdownMenu,{icon:Dl.a
60
- /* translators: button label text should, if possible, be under 16 characters. */,label:Object(y.__)("More"),toggleProps:t,controls:Object(d.orderBy)(e.map((function(e){return Object(Uo.a)(e,1)[0].props})),"title"),popoverProps:Vb})}))})))},zb=function(e){var t=e.inline,n=e.anchorRef;return t?Object(l.createElement)(m.Popover,{noArrow:!0,position:"top center",focusOnMount:!1,anchorRef:n,className:"block-editor-rich-text__inline-format-toolbar",__unstableSlotName:"block-toolbar"},Object(l.createElement)("div",{className:"block-editor-rich-text__inline-format-toolbar-group"},Object(l.createElement)(m.ToolbarGroup,null,Object(l.createElement)(Hb,null)))):Object(l.createElement)(Cr,{group:"inline"},Object(l.createElement)(Hb,null))};function Gb(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 Ub(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gb(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Wb(e,t){if(t.length)for(var n=e.formats.length;n--;)e.formats[n]=[].concat(Object(k.a)(t),Object(k.a)(e.formats[n]||[]))}function Kb(e){if(!0===e||"p"===e||"li"===e)return!0===e?"p":e}function qb(e){var t=e.allowedFormats,n=e.formattingControls;return e.disableFormats?qb.EMPTY_ARRAY:t||n?t||(Rt()("wp.blockEditor.RichText formattingControls prop",{since:"5.4",alternative:"allowedFormats"}),n.map((function(e){return"core/".concat(e)}))):void 0}qb.EMPTY_ARRAY=[];var $b=Object(l.forwardRef)((function e(t,n){var r=t.children,o=t.tagName,a=t.value,s=t.onChange,d=t.isSelected,f=t.multiline,m=t.inlineToolbar,O=t.wrapperClassName,g=t.autocompleters,y=t.onReplace,_=t.placeholder,E=t.allowedFormats,w=t.formattingControls,C=t.withoutInteractiveFormatting,S=t.onRemove,B=t.onMerge,I=t.onSplit,x=t.__unstableOnSplitAtEnd,P=t.__unstableOnSplitMiddle,T=t.identifier,N=t.preserveWhiteSpace,D=t.__unstablePastePlainText,A=t.__unstableEmbedURLOnPaste,L=t.__unstableDisableFormats,R=t.disableLineBreaks,M=t.unstableOnFocus,F=t.__unstableAllowPrefixTransformations,V=t.__unstableMultilineRootTag,H=t.__unstableMobileNoFocusOnMount,z=t.deleteEnter,G=t.placeholderTextColor,U=t.textAlign,W=t.selectionColor,K=t.tagsToEliminate,q=t.rootTagsToEliminate,$=t.disableEditingMenu,Y=t.fontSize,X=t.fontFamily,Q=t.fontWeight,Z=t.fontStyle,J=t.minWidth,ee=t.maxWidth,te=t.onBlur,ne=t.setRef,re=Object(j.a)(t,["children","tagName","value","onChange","isSelected","multiline","inlineToolbar","wrapperClassName","autocompleters","onReplace","placeholder","allowedFormats","formattingControls","withoutInteractiveFormatting","onRemove","onMerge","onSplit","__unstableOnSplitAtEnd","__unstableOnSplitMiddle","identifier","preserveWhiteSpace","__unstablePastePlainText","__unstableEmbedURLOnPaste","__unstableDisableFormats","disableLineBreaks","unstableOnFocus","__unstableAllowPrefixTransformations","__unstableMultilineRootTag","__unstableMobileNoFocusOnMount","deleteEnter","placeholderTextColor","textAlign","selectionColor","tagsToEliminate","rootTagsToEliminate","disableEditingMenu","fontSize","fontFamily","fontWeight","fontStyle","minWidth","maxWidth","onBlur","setRef"]),oe=Object(b.useInstanceId)(e);T=T||oe;var ce=Object(l.useRef)(),ie=h(),ae=ie.clientId,le=ie.isSelected,se=Object(v.useSelect)((function(e){var t,n=e(hr),r=n.isCaretWithinFormattedText,o=n.getSelectionStart,c=n.getSelectionEnd,i=n.getSettings,a=n.didAutomaticChange,s=n.__unstableGetBlockWithoutInnerBlocks,u=n.isMultiSelecting,b=n.hasMultiSelection,f=o(),m=c(),v=i().__experimentalUndo;void 0===d?t=f.clientId===ae&&f.attributeKey===T:d&&(t=f.clientId===ae);var O={};if("native"===l.Platform.OS){var g=ae&&s(ae);O={shouldBlurOnUnmount:g&&t&&Object(p.isUnmodifiedDefaultBlock)(g)}}return Ub({isCaretWithinFormattedText:r(),selectionStart:t?f.offset:void 0,selectionEnd:t?m.offset:void 0,isSelected:t,didAutomaticChange:a(),disabled:u()||b(),undo:v},O)})),ue=se.isCaretWithinFormattedText,de=se.selectionStart,be=se.selectionEnd,fe=se.isSelected,pe=se.didAutomaticChange,me=se.disabled,ve=se.undo,Oe=se.shouldBlurOnUnmount,ge=Object(v.useDispatch)(hr),he=ge.__unstableMarkLastChangeAsPersistent,je=ge.enterFormattedText,ke=ge.exitFormattedText,ye=ge.selectionChange,_e=ge.__unstableMarkAutomaticChange,Ee=Kb(f),we=qb({allowedFormats:E,formattingControls:w,disableFormats:L}),Ce=!we||we.length>0,Se=a,Be=s;Array.isArray(a)&&(Se=p.children.toHTML(a),Be=function(e){return s(p.children.fromDOM(Object(c.__unstableCreateElement)(document,e).childNodes))});var Ie=Object(l.useCallback)((function(e,t){ye(ae,T,e,t)}),[ae,T]),xe=Object(l.useCallback)((function(e){var t=e.value,n=e.isReverse;B&&B(!n),S&&Object(c.isEmpty)(t)&&n&&S(!n)}),[B,S]),Pe=Object(l.useCallback)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(y&&I){var n=[],r=Object(c.split)(e),o=Object(Uo.a)(r,2),i=o[0],a=o[1],l=t.length>0,s=-1,u=Object(c.isEmpty)(i)&&!Object(c.isEmpty)(a);l&&Object(c.isEmpty)(i)||(n.push(I(Object(c.toHTMLString)({value:i,multilineTag:Ee}),!u)),s+=1),l?(n.push.apply(n,Object(k.a)(t)),s+=t.length):P&&n.push(P()),(l||P)&&Object(c.isEmpty)(a)||n.push(I(Object(c.toHTMLString)({value:a,multilineTag:Ee}),u));var d=l?s:1,b=l?-1:0;y(n,d,b)}}),[y,I,Ee,P]),Te=Object(l.useCallback)((function(e){var t=e.value,n=e.onChange,r=e.shiftKey,o=y&&I;if(y){var i=Object(p.getBlockTransforms)("from").filter((function(e){return"enter"===e.type})),a=Object(p.findTransform)(i,(function(e){return e.regExp.test(t.text)}));a&&(y([a.transform({content:t.text})]),_e())}if(f)r?R||n(Object(c.insert)(t,"\n")):o&&Object(c.__unstableIsEmptyLine)(t)?Pe(t):n(Object(c.__unstableInsertLineSeparator)(t));else{var l=t.text,s=t.start,u=t.end,d=x&&s===u&&u===l.length;r||!o&&!d?R||n(Object(c.insert)(t,"\n")):!o&&d?x():o&&Pe(t)}}),[y,I,_e,f,Pe,x]),Ne=Object(l.useCallback)((function(e){var t=e.value,n=e.onChange,r=e.html,i=e.plainText,a=e.isInternal,l=e.files,s=e.activeFormats;if(a){var u=Object(c.create)({html:r,multilineTag:Ee,multilineWrapperTags:"li"===Ee?["ul","ol"]:void 0,preserveWhiteSpace:N});return Wb(u,s),void n(Object(c.insert)(t,u))}if(D)n(Object(c.insert)(t,Object(c.create)({text:i})));else{if(l&&l.length&&!r){var d=Object(p.pasteHandler)({HTML:Fb(l),mode:"BLOCKS",tagName:o,preserveWhiteSpace:N});return window.console.log("Received items:\n\n",l),void(y&&Object(c.isEmpty)(t)?y(d):Pe(t,d))}var b,f=y&&I?"AUTO":"INLINE";"AUTO"===f&&Object(c.isEmpty)(t)&&(b=i,Object(Ab.regexp)(".*").test(b))&&(f="BLOCKS"),A&&Object(c.isEmpty)(t)&&Object(au.isURL)(i.trim())&&(f="BLOCKS");var m=Object(p.pasteHandler)({HTML:r,plainText:i,mode:f,tagName:o,preserveWhiteSpace:N});if("string"==typeof m){var v=Object(c.create)({html:m});Wb(v,s),Ee&&(v=Object(c.replace)(v,/\n+/g,c.__UNSTABLE_LINE_SEPARATOR)),n(Object(c.insert)(t,v))}else m.length>0&&(y&&Object(c.isEmpty)(t)?y(m,m.length-1,-1):Pe(t,m))}}),[o,y,I,Pe,A,Ee,N,D]),De=Object(l.useCallback)((function(e,t){if(y){var n=e.start,r=e.text;if(" "===r.slice(n-1,n)){var o=r.slice(0,n).trim(),i=Object(p.getBlockTransforms)("from").filter((function(e){return"prefix"===e.type})),a=Object(p.findTransform)(i,(function(e){var t=e.prefix;return o===t}));if(a){var l=t(Object(c.slice)(e,n,r.length)),s=a.transform(l);y([s]),_e()}}}}),[y,_e]),Ae=Object(b.useMergeRefs)([n,ce]),Le=Object(l.createElement)(c.__experimentalRichText,Object(i.a)({clientId:ae,identifier:T,ref:Ae,value:Se,onChange:Be,selectionStart:de,selectionEnd:be,onSelectionChange:Ie,tagName:o,placeholder:_,allowedFormats:we,withoutInteractiveFormatting:C,onEnter:Te,onDelete:xe,onPaste:Ne,__unstableIsSelected:fe,__unstableInputRule:De,__unstableMultilineTag:Ee,__unstableIsCaretWithinFormattedText:ue,__unstableOnEnterFormattedText:je,__unstableOnExitFormattedText:ke,__unstableOnCreateUndoLevel:he,__unstableMarkAutomaticChange:_e,__unstableDidAutomaticChange:pe,__unstableUndo:ve,__unstableDisableFormats:L,preserveWhiteSpace:N,disabled:me,unstableOnFocus:M,__unstableAllowPrefixTransformations:F,__unstableMultilineRootTag:V},{},{blockIsSelected:void 0!==d?d:le,shouldBlurOnUnmount:Oe,__unstableMobileNoFocusOnMount:H,deleteEnter:z,placeholderTextColor:G,textAlign:U,selectionColor:W,tagsToEliminate:K,rootTagsToEliminate:q,disableEditingMenu:$,fontSize:Y,fontFamily:X,fontWeight:Q,fontStyle:Z,minWidth:J,maxWidth:ee,onBlur:te,setRef:ne,id:re.id,style:re.style}),(function(e){var t=e.isSelected,n=e.value,o=e.onChange,c=e.onFocus,a=e.editableProps,s=e.editableTagName;return Object(l.createElement)(l.Fragment,null,r&&r({value:n,onChange:o,onFocus:c}),t&&Ce&&Object(l.createElement)(zb,{inline:m,anchorRef:ce.current}),t&&Object(l.createElement)(Mb,null),Object(l.createElement)(nl,{onReplace:y,completers:g,record:n,onChange:o,isSelected:t,contentRef:ce},(function(e){var t=e.listBoxId,n=e.activeId,r=e.onKeyDown;return Object(l.createElement)(s,Object(i.a)({},a,re,{style:re.style?Ub(Ub({},re.style),a.style):a.style,className:u()("block-editor-rich-text__editable",re.className,a.className),"aria-autocomplete":t?"list":void 0,"aria-owns":t,"aria-activedescendant":n,onKeyDown:function(e){r(e),a.onKeyDown(e)}}))})))}));return O?(Rt()("wp.blockEditor.RichText wrapperClassName prop",{since:"5.4",alternative:"className prop or create your own wrapper div"}),Object(l.createElement)("div",{className:u()("block-editor-rich-text",O)},Le)):Le}));$b.Content=function(e){var t=e.value,n=e.tagName,r=e.multiline,o=Object(j.a)(e,["value","tagName","multiline"]);Array.isArray(t)&&(t=p.children.toHTML(t));var c=Kb(r);!t&&c&&(t="<".concat(c,"></").concat(c,">"));var i=Object(l.createElement)(l.RawHTML,null,t);return n?Object(l.createElement)(n,Object(d.omit)(o,["format"]),i):i},$b.isEmpty=function(e){return!e||0===e.length},$b.Content.defaultProps={format:"string",value:""};var Yb=$b;function Xb(e){var t=e.value,n=e.onChange;return Object(l.createElement)(hb,null,Object(l.createElement)(Yb,{value:t,onChange:n,placeholder:Object(y.__)("Navigation item"),withoutInteractiveFormatting:!0,allowedFormats:["core/bold","core/italic","core/image","core/strikethrough"]}))}var Qb=n(285),Zb=function(e){var t=e.icon,n=void 0===t?Qb.a:t,r=e.label,o=void 0===r?Object(y.__)("Choose variation"):r,c=e.instructions,i=void 0===c?Object(y.__)("Select a variation to start with."):c,a=e.variations,s=e.onSelect,d=e.allowSkip,b=u()("block-editor-block-variation-picker",{"has-many-variations":a.length>4});return Object(l.createElement)(m.Placeholder,{icon:n,label:o,instructions:i,className:b},Object(l.createElement)("ul",{className:"block-editor-block-variation-picker__variations",role:"list","aria-label":Object(y.__)("Block variations")},a.map((function(e){return Object(l.createElement)("li",{key:e.name},Object(l.createElement)(m.Button,{isSecondary:!0,icon:e.icon,iconSize:48,onClick:function(){return s(e)},className:"block-editor-block-variation-picker__variation",label:e.description||e.title}),Object(l.createElement)("span",{className:"block-editor-block-variation-picker__variation-label",role:"presentation"},e.title))}))),d&&Object(l.createElement)("div",{className:"block-editor-block-variation-picker__skip"},Object(l.createElement)(m.Button,{isLink:!0,onClick:function(){return s()}},Object(y.__)("Skip"))))},Jb=function(e,t){if(t&&e){var n=t.filter((function(t){var n=t.attributes;return!(!n||!Object.keys(n).length)&&Object(d.isMatch)(e,n)}));if(1===n.length)return n[0]}};function ef(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var tf=function(e){var t=e.blockClientId,n=Object(l.useState)(),r=Object(Uo.a)(n,2),o=r[0],c=r[1],i=Object(v.useDispatch)(hr).updateBlockAttributes,s=Object(v.useSelect)((function(e){var n=e(p.store).getBlockVariations,r=e(hr),o=r.getBlockName,c=r.getBlockAttributes,i=t&&o(t);return{variations:i&&n(i,"transform"),blockAttributes:c(t)}}),[t]),u=s.variations,d=s.blockAttributes;if(Object(l.useEffect)((function(){var e;c(null===(e=Jb(d,u))||void 0===e?void 0:e.name)}),[d,u]),null==u||!u.length)return null;var b=u.map((function(e){return{value:e.name,label:e.title,info:e.description}})),f=function(e){i(t,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ef(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ef(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},u.find((function(t){return t.name===e})).attributes))},O="block-editor-block-variation-transforms";return Object(l.createElement)(m.DropdownMenu,{className:O,label:Object(y.__)("Transform to variation"),text:Object(y.__)("Transform to variation"),popoverProps:{position:"bottom center",className:"".concat(O,"__popover")},icon:Dl.a,toggleProps:{iconPosition:"right"}},(function(){return Object(l.createElement)("div",{className:"".concat(O,"__container")},Object(l.createElement)(m.MenuGroup,null,Object(l.createElement)(m.MenuItemsChoice,{choices:b,value:o,onSelect:f})))}))},nf=Object(l.createElement)(m.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(m.Path,{d:"M15 4H9v11h6V4zM4 18.5V20h16v-1.5H4z"})),rf=Object(l.createElement)(m.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(m.Path,{d:"M20 11h-5V4H9v7H4v1.5h5V20h6v-7.5h5z"}));function of(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function cf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?of(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):of(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var af={top:{icon:Object(l.createElement)(m.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(m.Path,{d:"M9 20h6V9H9v11zM4 4v1.5h16V4H4z"})),title:Object(y._x)("Align top","Block vertical alignment setting")},center:{icon:rf,title:Object(y._x)("Align middle","Block vertical alignment setting")},bottom:{icon:nf,title:Object(y._x)("Align bottom","Block vertical alignment setting")}},lf=["top","center","bottom"],sf={isAlternate:!0},uf=function(e){var t=e.value,n=e.onChange,r=e.controls,o=void 0===r?lf:r,c=e.isCollapsed,a=void 0===c||c,s=e.isToolbar,u=e.isToolbarButton,d=void 0===u||u,b=af[t],f=af.top,p=s?m.ToolbarGroup:m.DropdownMenu,v=s?{isCollapsed:a}:{isToolbarButton:d};return Object(l.createElement)(p,Object(i.a)({popoverProps:sf,icon:b?b.icon:f.icon,label:Object(y._x)("Change vertical alignment","Block vertical alignment setting label"),controls:o.map((function(e){return cf(cf({},af[e]),{},{isActive:t===e,role:a?"menuitemradio":void 0,onClick:(r=e,function(){return n(t===r?void 0:r)})});var r}))},v))};function df(e){return Object(l.createElement)(uf,Object(i.a)({},e,{isToolbar:!1}))}function bf(e){return Object(l.createElement)(uf,Object(i.a)({},e,{isToolbar:!0}))}function ff(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 pf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ff(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ff(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var mf=Object(b.createHigherOrderComponent)((function(e){return function(t){var n=_o("color.palette"),r=!_o("color.custom"),o=void 0===t.colors?n:t.colors,c=void 0===t.disableCustomColors?r:t.disableCustomColors,i=!Object(d.isEmpty)(o)||!c;return Object(l.createElement)(e,pf(pf({},t),{},{colors:o,disableCustomColors:c,hasColorsToChoose:i}))}}),"withColorContext"),vf=mf(m.ColorPalette);function Of(e){var t=e.onChange,n=e.value,r=Object(j.a)(e,["onChange","value"]);return Object(l.createElement)(Jo,Object(i.a)({},r,{onColorChange:t,colorValue:n,gradients:[],disableCustomGradients:!0}))}var gf=[];function hf(e){var t=_o("color.gradients")||gf,n=!_o("color.customGradient");return Object(l.createElement)(m.__experimentalGradientPicker,Object(i.a)({gradients:void 0!==e.gradients?e.gradient:t,disableCustomGradients:void 0!==e.disableCustomGradients?e.disableCustomGradients:n},e))}var jf=function(e){var t=void 0!==e.gradients&&void 0!==e.disableCustomGradients?m.__experimentalGradientPicker:hf;return Object(l.createElement)(t,e)};function kf(e){var t=e.className,n=e.value,r=e.onChange,o=e.label,c=void 0===o?Object(y.__)("Gradient Presets"):o,a=Object(j.a)(e,["className","value","onChange","label"]),s=_o("color.gradients"),b=!_o("color.customGradient");return Object(d.isEmpty)(s)&&b?null:Object(l.createElement)(m.BaseControl,{className:u()("block-editor-gradient-picker-control",t)},Object(l.createElement)(m.BaseControl.VisualLabel,null,c),Object(l.createElement)(jf,Object(i.a)({value:n,onChange:r,className:"block-editor-gradient-picker-control__gradient-picker-presets",gradients:s,disableCustomGradients:b},a)))}function yf(e){var t=_o("color.gradients");return Object(d.isEmpty)(t)?null:Object(l.createElement)(m.PanelBody,{title:Object(y.__)("Gradient")},Object(l.createElement)(kf,e))}var _f=[25,50,75,100];function Ef(e){var t,n,r=e.imageWidth,o=e.imageHeight,c=e.imageSizeOptions,i=void 0===c?[]:c,a=e.isResizable,s=void 0===a||a,u=e.slug,b=e.width,f=e.height,p=e.onChange,v=e.onChangeImage,O=void 0===v?d.noop:v;function g(e,t){return function(){p({width:e,height:t})}}return Object(l.createElement)(l.Fragment,null,!Object(d.isEmpty)(i)&&Object(l.createElement)(m.SelectControl,{label:Object(y.__)("Image size"),value:u,options:i,onChange:O}),s&&Object(l.createElement)("div",{className:"block-editor-image-size-control"},Object(l.createElement)("p",{className:"block-editor-image-size-control__row"},Object(y.__)("Image dimensions")),Object(l.createElement)("div",{className:"block-editor-image-size-control__row"},Object(l.createElement)(m.TextControl,{type:"number",className:"block-editor-image-size-control__width",label:Object(y.__)("Width"),value:null!==(t=null!=b?b:r)&&void 0!==t?t:"",min:1,onChange:function(e){return p({width:parseInt(e,10)})}}),Object(l.createElement)(m.TextControl,{type:"number",className:"block-editor-image-size-control__height",label:Object(y.__)("Height"),value:null!==(n=null!=f?f:o)&&void 0!==n?n:"",min:1,onChange:function(e){return p({height:parseInt(e,10)})}})),Object(l.createElement)("div",{className:"block-editor-image-size-control__row"},Object(l.createElement)(m.ButtonGroup,{"aria-label":Object(y.__)("Image size presets")},_f.map((function(e){var t=Math.round(r*(e/100)),n=Math.round(o*(e/100)),c=b===t&&f===n;return Object(l.createElement)(m.Button,{key:e,isSmall:!0,isPrimary:c,isPressed:c,onClick:g(t,n)},e,"%")}))),Object(l.createElement)(m.Button,{isSmall:!0,onClick:g()},Object(y.__)("Reset")))))}var wf=Object(b.createHigherOrderComponent)((function(e){return function(t){var n=h().clientId;return Object(l.createElement)(e,Object(i.a)({},t,{clientId:n}))}}),"withClientId"),Cf=wf((function(e){var t=e.clientId,n=e.showSeparator,r=e.isFloating,o=e.onAddBlock;return Object(l.createElement)(Su,{rootClientId:t,showSeparator:n,isFloating:r,onAddBlock:o})})),Sf=Object(b.compose)([wf,Object(v.withSelect)((function(e,t){var n=t.clientId,r=(0,e(hr).getBlockOrder)(n);return{lastBlockClientId:Object(d.last)(r)}}))])((function(e){var t=e.clientId,n=e.lastBlockClientId;return Object(l.createElement)(Cu,{rootClientId:t,lastBlockClientId:n})})),Bf=n(76),If=n.n(Bf),xf=new WeakMap;function Pf(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 Tf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pf(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Nf(e){var t=e.clientId,n=e.allowedBlocks,r=e.template,o=e.templateLock,c=e.wrapperRef,i=e.templateInsertUpdatesSelection,a=e.__experimentalCaptureToolbars,s=e.__experimentalAppenderTagName,u=e.renderAppender,b=e.orientation,f=e.placeholder,m=e.__experimentalLayout;!function(e,t,n,r,o){var c=Object(v.useDispatch)(hr).updateBlockListSettings,i=Object(v.useSelect)((function(t){var n=t(hr).getBlockRootClientId(e);return{blockListSettings:t(hr).getBlockListSettings(e),parentLock:t(hr).getTemplateLock(n)}}),[e]),a=i.blockListSettings,s=i.parentLock,u=Object(l.useMemo)((function(){return t}),t);Object(l.useLayoutEffect)((function(){var t={allowedBlocks:u,templateLock:void 0===n?s:n};void 0!==r&&(t.__experimentalCaptureToolbars=r),void 0!==o&&(t.orientation=o),If()(a,t)||c(e,t)}),[e,a,u,n,s,r,o,c])}(t,n,o,a,b),function(e,t,n,r){var o=Object(v.useSelect)((function(e){return e(hr).getSelectedBlocksInitialCaretPosition}),[]),c=Object(v.useDispatch)(hr).replaceInnerBlocks,i=Object(v.useSelect)((function(t){return t(hr).getBlocks(e)}),[e]),a=Object(l.useRef)(null);Object(l.useLayoutEffect)((function(){if((0===i.length||"all"===n)&&!Object(d.isEqual)(t,a.current)){a.current=t;var l=Object(p.synchronizeBlocksWithTemplate)(i,t);Object(d.isEqual)(l,i)||c(e,l,0===i.length&&r&&0!==l.length,o())}}),[i,t,n,e])}(t,r,o,i);var O=Object(v.useSelect)((function(e){var n=e(hr).getBlock(t),r=Object(p.getBlockType)(n.name);if(r&&r.providesContext)return function(e,t){xf.has(t)||xf.set(t,new WeakMap);var n=xf.get(t);if(!n.has(e)){var r=Object(d.mapValues)(t.providesContext,(function(t){return e[t]}));n.set(e,r)}return n.get(e)}(n.attributes,r)}),[t]);return Object(l.createElement)(bl,{value:O},Object(l.createElement)(Qd,{rootClientId:t,renderAppender:u,__experimentalAppenderTagName:s,__experimentalLayout:m,wrapperRef:c,placeholder:f}))}function Df(e){return Ss(e),Object(l.createElement)(Nf,e)}var Af=Object(l.forwardRef)((function(e,t){var n=Lf({ref:t},e);return Object(l.createElement)("div",{className:"block-editor-inner-blocks"},Object(l.createElement)("div",n))}));function Lf(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object(l.useRef)(),r=h(),o=r.clientId,c=Object(b.useViewportMatch)("medium","<"),a=Object(v.useSelect)((function(e){var t=e(hr),n=t.getBlockName,r=t.isBlockSelected,i=t.hasSelectedInnerBlock,a=(0,t.isNavigationMode)()||c;return"core/template"!==n(o)&&!r(o)&&!i(o,!0)&&a}),[o,c]),s=Object(b.useMergeRefs)([e.ref,n]),d=t.value&&t.onChange?Df:Nf;return Tf(Tf({},e),{},{ref:s,className:u()(e.className,"block-editor-block-list__layout",{"has-overlay":a}),children:Object(l.createElement)(d,Object(i.a)({},t,{clientId:o,wrapperRef:n}))})}Af.DefaultBlockAppender=Sf,Af.ButtonBlockAppender=Cf,Af.Content=Object(p.withBlockContentContext)((function(e){var t=e.BlockContent;return Object(l.createElement)(t,null)}));var Rf=Af,Mf=Object(l.createElement)(Sr.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(Sr.Path,{d:"M9 9v6h11V9H9zM4 20h1.5V4H4v16z"})),Ff=Object(l.createElement)(Sr.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(Sr.Path,{d:"M20 9h-7.2V4h-1.6v5H4v6h7.2v5h1.6v-5H20z"})),Vf=Object(l.createElement)(Sr.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(Sr.Path,{d:"M4 15h11V9H4v6zM18.5 4v16H20V4h-1.5z"})),Hf=Object(l.createElement)(Sr.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(Sr.Path,{d:"M9 15h6V9H9v6zm-5 5h1.5V4H4v16zM18.5 4v16H20V4h-1.5z"})),zf={left:Mf,center:Ff,right:Vf,"space-between":Hf},Gf=function(e){var t=e.allowedControls,n=void 0===t?["left","center","right","space-between"]:t,r=e.isCollapsed,o=void 0===r||r,c=e.onChange,a=e.value,s=e.popoverProps,u=e.isToolbar,d=e.isToolbarButton,b=void 0===d||d,f=function(e){c(e===a?void 0:e)},p=a?zf[a]:zf.left,v=[{name:"left",icon:Mf,title:Object(y.__)("Justify items left"),isActive:"left"===a,onClick:function(){return f("left")}},{name:"center",icon:Ff,title:Object(y.__)("Justify items center"),isActive:"center"===a,onClick:function(){return f("center")}},{name:"right",icon:Vf,title:Object(y.__)("Justify items right"),isActive:"right"===a,onClick:function(){return f("right")}},{name:"space-between",icon:Hf,title:Object(y.__)("Space between items"),isActive:"space-between"===a,onClick:function(){return f("space-between")}}],O=u?m.ToolbarGroup:m.DropdownMenu,g=u?{isCollapsed:o}:{isToolbarButton:b};return Object(l.createElement)(O,Object(i.a)({icon:p,popoverProps:s,label:Object(y.__)("Change items justification"),controls:v.filter((function(e){return n.includes(e.name)}))},g))};function Uf(e){return Object(l.createElement)(Gf,Object(i.a)({},e,{isToolbar:!1}))}function Wf(e){return Object(l.createElement)(Gf,Object(i.a)({},e,{isToolbar:!0}))}var Kf=n(286);function qf(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 $f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qf(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Yf=[{id:"opensInNewTab",title:Object(y.__)("Open in new tab")}],Xf=function(e){var t=e.value,n=e.onChange,r=void 0===n?d.noop:n,o=e.settings,c=void 0===o?Yf:o;if(!c||!c.length)return null;var i=function(e){return function(n){r($f($f({},t),{},Object(a.a)({},e.id,n)))}},s=c.map((function(e){return Object(l.createElement)(m.ToggleControl,{className:"block-editor-link-control__setting",key:e.id,label:e.title,onChange:i(e),checked:!!t&&!!t[e.id]})}));return Object(l.createElement)("fieldset",{className:"block-editor-link-control__settings"},Object(l.createElement)(m.VisuallyHidden,{as:"legend"},Object(y.__)("Currently selected link settings")),s)};var Qf=function(e){Object(Qi.a)(o,e);var t,n,r=(t=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=Object(Ji.a)(t);if(n){var o=Object(Ji.a)(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return Object(Zi.a)(this,e)});function o(e){var t;return Object($i.a)(this,o),(t=r.call(this,e)).onChange=t.onChange.bind(Object(Xi.a)(t)),t.onFocus=t.onFocus.bind(Object(Xi.a)(t)),t.onKeyDown=t.onKeyDown.bind(Object(Xi.a)(t)),t.selectLink=t.selectLink.bind(Object(Xi.a)(t)),t.handleOnClick=t.handleOnClick.bind(Object(Xi.a)(t)),t.bindSuggestionNode=t.bindSuggestionNode.bind(Object(Xi.a)(t)),t.autocompleteRef=e.autocompleteRef||Object(l.createRef)(),t.inputRef=Object(l.createRef)(),t.updateSuggestions=Object(d.debounce)(t.updateSuggestions.bind(Object(Xi.a)(t)),200),t.suggestionNodes=[],t.isUpdatingSuggestions=!1,t.state={suggestions:[],showSuggestions:!1,selectedSuggestion:null,suggestionsListboxId:"",suggestionOptionIdPrefix:""},t}return Object(Yi.a)(o,[{key:"componentDidUpdate",value:function(e){var t=this,n=this.state,r=n.showSuggestions,o=n.selectedSuggestion,c=this.props.value;r&&null!==o&&this.suggestionNodes[o]&&!this.scrollingIntoView&&(this.scrollingIntoView=!0,zd()(this.suggestionNodes[o],this.autocompleteRef.current,{onlyScrollIfNeeded:!0}),this.props.setTimeout((function(){t.scrollingIntoView=!1}),100)),e.value!==c&&this.shouldShowInitialSuggestions()&&this.updateSuggestions()}},{key:"componentDidMount",value:function(){this.shouldShowInitialSuggestions()&&this.updateSuggestions()}},{key:"componentWillUnmount",value:function(){var e,t;null===(e=this.suggestionsRequest)||void 0===e||null===(t=e.cancel)||void 0===t||t.call(e),delete this.suggestionsRequest}},{key:"bindSuggestionNode",value:function(e){var t=this;return function(n){t.suggestionNodes[e]=n}}},{key:"shouldShowInitialSuggestions",value:function(){var e=this.state.suggestions,t=this.props,n=t.__experimentalShowInitialSuggestions,r=void 0!==n&&n,o=t.value;return!this.isUpdatingSuggestions&&r&&!(o&&o.length)&&!(e&&e.length)}},{key:"updateSuggestions",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=this.props,r=n.__experimentalFetchLinkSuggestions,o=n.__experimentalHandleURLSuggestions;if(r){var c=!(t&&t.length);if(c||!(t.length<2||!o&&Object(au.isURL)(t))){this.isUpdatingSuggestions=!0,this.setState({selectedSuggestion:null,loading:!0});var i=r(t,{isInitialSuggestions:c});i.then((function(t){e.suggestionsRequest===i&&(e.setState({suggestions:t,loading:!1,showSuggestions:!!t.length}),t.length?e.props.debouncedSpeak(Object(y.sprintf)(
61
  /* translators: %s: number of results. */
62
- Object(y._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",t.length),t.length),"assertive"):e.props.debouncedSpeak(Object(y.__)("No results."),"assertive"),e.isUpdatingSuggestions=!1)})).catch((function(){e.suggestionsRequest===i&&(e.setState({loading:!1}),e.isUpdatingSuggestions=!1)})),this.suggestionsRequest=i}else this.setState({showSuggestions:!1,selectedSuggestion:null,loading:!1})}}},{key:"onChange",value:function(e){var t=e.target.value;this.props.onChange(t),this.props.disableSuggestions||this.updateSuggestions(t.trim())}},{key:"onFocus",value:function(){var e=this.state.suggestions,t=this.props,n=t.disableSuggestions,r=t.value;!r||n||this.isUpdatingSuggestions||e&&e.length||this.updateSuggestions(r.trim())}},{key:"onKeyDown",value:function(e){var t=this.state,n=t.showSuggestions,r=t.selectedSuggestion,o=t.suggestions,c=t.loading;if(n&&o.length&&!c){var i=this.state.suggestions[this.state.selectedSuggestion];switch(e.keyCode){case Kc.UP:e.stopPropagation(),e.preventDefault();var a=r?r-1:o.length-1;this.setState({selectedSuggestion:a});break;case Kc.DOWN:e.stopPropagation(),e.preventDefault();var l=null===r||r===o.length-1?0:r+1;this.setState({selectedSuggestion:l});break;case Kc.TAB:null!==this.state.selectedSuggestion&&(this.selectLink(i),this.props.speak(Object(y.__)("Link selected.")));break;case Kc.ENTER:null!==this.state.selectedSuggestion&&(e.stopPropagation(),this.selectLink(i))}}else switch(e.keyCode){case Kc.UP:0!==e.target.selectionStart&&(e.stopPropagation(),e.preventDefault(),e.target.setSelectionRange(0,0));break;case Kc.DOWN:this.props.value.length!==e.target.selectionStart&&(e.stopPropagation(),e.preventDefault(),e.target.setSelectionRange(this.props.value.length,this.props.value.length))}}},{key:"selectLink",value:function(e){this.props.onChange(e.url,e),this.setState({selectedSuggestion:null,showSuggestions:!1})}},{key:"handleOnClick",value:function(e){this.selectLink(e),this.inputRef.current.focus()}},{key:"render",value:function(){return Object(l.createElement)(l.Fragment,null,this.renderControl(),this.renderSuggestions())}},{key:"renderControl",value:function(){var e=this.props,t=e.label,n=e.className,r=e.isFullWidth,o=e.instanceId,c=e.placeholder,i=void 0===c?Object(y.__)("Paste URL or type to search"):c,a=e.__experimentalRenderControl,s=e.value,d=void 0===s?"":s,b=this.state,f=b.loading,p=b.showSuggestions,v=b.selectedSuggestion,O=b.suggestionsListboxId,g=b.suggestionOptionIdPrefix,h={id:"url-input-control-".concat(o),label:t,className:u()("block-editor-url-input",n,{"is-full-width":r})},j={value:d,required:!0,className:"block-editor-url-input__input",type:"text",onChange:this.onChange,onFocus:this.onFocus,placeholder:i,onKeyDown:this.onKeyDown,role:"combobox","aria-label":Object(y.__)("URL"),"aria-expanded":p,"aria-autocomplete":"list","aria-owns":O,"aria-activedescendant":null!==v?"".concat(g,"-").concat(v):void 0,ref:this.inputRef};return a?a(h,j,f):Object(l.createElement)(m.BaseControl,h,Object(l.createElement)("input",j),f&&Object(l.createElement)(m.Spinner,null))}},{key:"renderSuggestions",value:function(){var e=this,t=this.props,n=t.className,r=t.__experimentalRenderSuggestions,o=t.value,c=void 0===o?"":o,a=t.__experimentalShowInitialSuggestions,s=void 0!==a&&a,b=this.state,f=b.showSuggestions,p=b.suggestions,v=b.selectedSuggestion,O=b.suggestionsListboxId,g=b.suggestionOptionIdPrefix,h=b.loading,j={id:O,ref:this.autocompleteRef,role:"listbox"},k=function(t,n){return{role:"option",tabIndex:"-1",id:"".concat(g,"-").concat(n),ref:e.bindSuggestionNode(n),"aria-selected":n===v}};return Object(d.isFunction)(r)&&f&&p.length?r({suggestions:p,selectedSuggestion:v,suggestionsListProps:j,buildSuggestionItemProps:k,isLoading:h,handleSuggestionClick:this.handleOnClick,isInitialSuggestions:s&&!(c&&c.length)}):!Object(d.isFunction)(r)&&f&&p.length?Object(l.createElement)(m.Popover,{position:"bottom",noArrow:!0,focusOnMount:!1},Object(l.createElement)("div",Object(i.a)({},j,{className:u()("block-editor-url-input__suggestions","".concat(n,"__suggestions"))}),p.map((function(t,n){return Object(l.createElement)(m.Button,Object(i.a)({},k(0,n),{key:t.id,className:u()("block-editor-url-input__suggestion",{"is-selected":n===v}),onClick:function(){return e.handleOnClick(t)}}),t.title)})))):null}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.value,r=e.instanceId,o=e.disableSuggestions,c=e.__experimentalShowInitialSuggestions,i=void 0!==c&&c,a=t.showSuggestions,l=n&&n.length;return i||l||(a=!1),!0===o&&(a=!1),{showSuggestions:a,suggestionsListboxId:"block-editor-url-input-suggestions-".concat(r),suggestionOptionIdPrefix:"block-editor-url-input-suggestion-".concat(r)}}}]),o}(l.Component),Zf=Object(b.compose)(b.withSafeTimeout,m.withSpokenMessages,b.withInstanceId,Object(v.withSelect)((function(e,t){if(!Object(d.isFunction)(t.__experimentalFetchLinkSuggestions))return{__experimentalFetchLinkSuggestions:(0,e(hr).getSettings)().__experimentalFetchLinkSuggestions}})))(Qf),Jf=function(e){var t,n=e.searchTerm,r=e.onClick,o=e.itemProps,c=e.isSelected,a=e.buttonText;return n?(t=a?Object(d.isFunction)(a)?a(n):a:Object(l.createInterpolateElement)(Object(y.sprintf)(
63
  /* translators: %s: search term. */
64
- Object(y.__)("Create: <mark>%s</mark>"),n),{mark:Object(l.createElement)("mark",null)}),Object(l.createElement)(m.Button,Object(i.a)({},o,{className:u()("block-editor-link-control__search-create block-editor-link-control__search-item",{"is-selected":c}),onClick:r}),Object(l.createElement)(Vi.a,{className:"block-editor-link-control__search-item-icon",icon:js.a}),Object(l.createElement)("span",{className:"block-editor-link-control__search-item-header"},Object(l.createElement)("span",{className:"block-editor-link-control__search-item-title"},t)))):null},ep=Object(l.createElement)(Sr.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(l.createElement)(Sr.Path,{d:"M9 0C4.03 0 0 4.03 0 9s4.03 9 9 9 9-4.03 9-9-4.03-9-9-9zM1.11 9.68h2.51c.04.91.167 1.814.38 2.7H1.84c-.403-.85-.65-1.764-.73-2.7zm8.57-5.4V1.19c.964.366 1.756 1.08 2.22 2 .205.347.386.708.54 1.08l-2.76.01zm3.22 1.35c.232.883.37 1.788.41 2.7H9.68v-2.7h3.22zM8.32 1.19v3.09H5.56c.154-.372.335-.733.54-1.08.462-.924 1.255-1.64 2.22-2.01zm0 4.44v2.7H4.7c.04-.912.178-1.817.41-2.7h3.21zm-4.7 2.69H1.11c.08-.936.327-1.85.73-2.7H4c-.213.886-.34 1.79-.38 2.7zM4.7 9.68h3.62v2.7H5.11c-.232-.883-.37-1.788-.41-2.7zm3.63 4v3.09c-.964-.366-1.756-1.08-2.22-2-.205-.347-.386-.708-.54-1.08l2.76-.01zm1.35 3.09v-3.04h2.76c-.154.372-.335.733-.54 1.08-.464.92-1.256 1.634-2.22 2v-.04zm0-4.44v-2.7h3.62c-.04.912-.178 1.817-.41 2.7H9.68zm4.71-2.7h2.51c-.08.936-.327 1.85-.73 2.7H14c.21-.87.337-1.757.38-2.65l.01-.05zm0-1.35c-.046-.894-.176-1.78-.39-2.65h2.16c.403.85.65 1.764.73 2.7l-2.5-.05zm1-4H13.6c-.324-.91-.793-1.76-1.39-2.52 1.244.56 2.325 1.426 3.14 2.52h.04zm-9.6-2.52c-.597.76-1.066 1.61-1.39 2.52H2.65c.815-1.094 1.896-1.96 3.14-2.52zm-3.15 12H4.4c.324.91.793 1.76 1.39 2.52-1.248-.567-2.33-1.445-3.14-2.55l-.01.03zm9.56 2.52c.597-.76 1.066-1.61 1.39-2.52h1.76c-.82 1.08-1.9 1.933-3.14 2.48l-.01.04z"})),tp=function(e){var t=e.itemProps,n=e.suggestion,r=e.isSelected,o=void 0!==r&&r,c=e.onClick,a=e.isURL,s=void 0!==a&&a,d=e.searchTerm,b=void 0===d?"":d,f=e.shouldShowType,p=void 0!==f&&f;return Object(l.createElement)(m.Button,Object(i.a)({},t,{onClick:c,className:u()("block-editor-link-control__search-item",{"is-selected":o,"is-url":s,"is-entity":!s})}),s&&Object(l.createElement)(Vi.a,{className:"block-editor-link-control__search-item-icon",icon:ep}),Object(l.createElement)("span",{className:"block-editor-link-control__search-item-header"},Object(l.createElement)("span",{className:"block-editor-link-control__search-item-title"},Object(l.createElement)(m.TextHighlight,{text:n.title,highlight:b})),Object(l.createElement)("span",{"aria-hidden":!s,className:"block-editor-link-control__search-item-info"},!s&&(Object(au.filterURLForDisplay)(Object(au.safeDecodeURI)(n.url))||""),s&&Object(y.__)("Press ENTER to add this link"))),p&&n.type&&Object(l.createElement)("span",{className:"block-editor-link-control__search-item-type"},"post_tag"===n.type?"tag":n.type))};function np(e){var t=e.instanceId,n=e.withCreateSuggestion,r=e.currentInputValue,o=e.handleSuggestionClick,c=e.suggestionsListProps,a=e.buildSuggestionItemProps,s=e.suggestions,d=e.selectedSuggestion,b=e.isLoading,f=e.isInitialSuggestions,p=e.createSuggestionButtonText,v=e.suggestionsQuery,O=u()("block-editor-link-control__search-results",{"is-loading":b}),g=["url","mailto","tel","internal"],h=1===s.length&&g.includes(s[0].type.toLowerCase()),j=n&&!h&&!f,k=!(null!=v&&v.type),_="block-editor-link-control-search-results-label-".concat(t),E=f?Object(y.__)("Recently updated"):Object(y.sprintf)(
65
  /* translators: %s: search term. */
66
- Object(y.__)('Search results for "%s"'),r),w=Object(l.createElement)(f?l.Fragment:m.VisuallyHidden,{},Object(l.createElement)("span",{className:"block-editor-link-control__search-results-label",id:_},E));return Object(l.createElement)("div",{className:"block-editor-link-control__search-results-wrapper"},w,Object(l.createElement)("div",Object(i.a)({},c,{className:O,"aria-labelledby":_}),s.map((function(e,t){return j&&"__CREATE__"===e.type?Object(l.createElement)(Jf,{searchTerm:r,buttonText:p,onClick:function(){return o(e)},key:e.type,itemProps:a(e,t),isSelected:t===d}):"__CREATE__"===e.type?null:Object(l.createElement)(tp,{key:"".concat(e.id,"-").concat(e.type),itemProps:a(e,t),suggestion:e,index:t,onClick:function(){o(e)},isSelected:t===d,isURL:g.includes(e.type.toLowerCase()),searchTerm:r,shouldShowType:k})}))))}function rp(e){var t=Object(d.startsWith)(e,"#");return Object(au.isURL)(e)||e&&e.includes("www.")||t}function op(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 cp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?op(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):op(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ip=function(){return Promise.resolve([])},ap=function(e){var t="URL",n=Object(au.getProtocol)(e)||"";return n.includes("mailto")&&(t="mailto"),n.includes("tel")&&(t="tel"),Object(d.startsWith)(e,"#")&&(t="internal"),Promise.resolve([{id:e,title:e,url:"URL"===t?Object(au.prependHTTP)(e):e,type:t}])},lp=function(){var e=Object(yl.a)(Dt.a.mark((function e(t,n,r,o,c,i){var a,l,s;return Dt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=n.isInitialSuggestions,e.next=3,Promise.all([r(t,n),o(t)]);case 3:if(l=e.sent,s=!t.includes(" "),l=s&&i&&!a?l[0].concat(l[1]):l[0],!a){e.next=8;break}return e.abrupt("return",l);case 8:return e.abrupt("return",rp(t)||!c?l:l.concat({title:t,url:t,type:"__CREATE__"}));case 9:case"end":return e.stop()}}),e)})));return function(_x,t,n,r,o,c){return e.apply(this,arguments)}}();function sp(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 up(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sp(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var dp=Promise.resolve([]),bp=Object(l.forwardRef)((function(e,t){var n=e.value,r=e.children,o=e.currentLink,c=void 0===o?{}:o,i=e.className,a=void 0===i?null:i,s=e.placeholder,u=void 0===s?null:s,f=e.withCreateSuggestion,p=void 0!==f&&f,m=e.onCreateSuggestion,O=void 0===m?d.noop:m,g=e.onChange,h=void 0===g?d.noop:g,j=e.onSelect,k=void 0===j?d.noop:j,_=e.showSuggestions,E=void 0===_||_,w=e.renderSuggestions,C=void 0===w?function(e){return Object(l.createElement)(np,e)}:w,S=e.fetchSuggestions,B=void 0===S?null:S,I=e.allowDirectEntry,x=void 0===I||I,P=e.showInitialSuggestions,T=void 0!==P&&P,N=e.suggestionsQuery,D=void 0===N?{}:N,A=e.withURLSuggestion,L=void 0===A||A,R=e.createSuggestionButtonText,M=function(e,t,n,r){var o=Object(v.useSelect)((function(e){return{fetchSearchSuggestions:(0,e(hr).getSettings)().__experimentalFetchLinkSuggestions}}),[]).fetchSearchSuggestions,c=t?ap:ip;return Object(l.useCallback)((function(t,i){var a=i.isInitialSuggestions;return rp(t)?c(t,{isInitialSuggestions:a}):lp(t,cp(cp({},e),{},{isInitialSuggestions:a}),o,c,n,r)}),[c,o,n])}(D,x,p,L),F=E?B||M:dp,V=Object(b.useInstanceId)(bp),H=Object(l.useState)(),z=Object(Uo.a)(H,2),G=z[0],U=z[1],W=function(){var e=Object(yl.a)(Dt.a.mark((function e(t){var n,r;return Dt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t,"__CREATE__"!==t.type){e.next=12;break}return e.prev=2,e.next=5,O(t.title);case 5:n=e.sent,null!==(r=n)&&void 0!==r&&r.url&&k(n),e.next=11;break;case 9:e.prev=9,e.t0=e.catch(2);case 11:return e.abrupt("return");case 12:(x||n&&Object.keys(n).length>=1)&&k(up(up({},Object(d.omit)(c,"id","url")),n),n);case 13:case"end":return e.stop()}}),e,null,[[2,9]])})));return function(_x){return e.apply(this,arguments)}}();return Object(l.createElement)("form",{onSubmit:function(e){e.preventDefault(),W(G||{url:n})}},Object(l.createElement)(Zf,{className:a,value:n,onChange:function(e,t){h(e),U(t)},placeholder:null!=u?u:Object(y.__)("Search or type url"),__experimentalRenderSuggestions:E?function(e){return C(up(up({},e),{},{instanceId:V,withCreateSuggestion:p,currentInputValue:n,createSuggestionButtonText:R,suggestionsQuery:D,handleSuggestionClick:function(t){e.handleSuggestionClick&&e.handleSuggestionClick(t),W(t)}}))}:null,__experimentalFetchLinkSuggestions:F,__experimentalHandleURLSuggestions:!0,__experimentalShowInitialSuggestions:T,ref:t}),r)})),fp=bp,pp=Object(m.createSlotFill)("BlockEditorLinkControlViewer"),mp=pp.Slot,vp=pp.Fill;function Op(e){var t=e.value,n=e.onEditClick,r=t&&Object(au.filterURLForDisplay)(Object(au.safeDecodeURI)(t.url),16)||"";return Object(l.createElement)("div",{"aria-label":Object(y.__)("Currently selected"),"aria-selected":"true",className:u()("block-editor-link-control__search-item",{"is-current":!0})},Object(l.createElement)("span",{className:"block-editor-link-control__search-item-header"},Object(l.createElement)(m.ExternalLink,{className:"block-editor-link-control__search-item-title",href:t.url},t&&t.title||r),t&&t.title&&Object(l.createElement)("span",{className:"block-editor-link-control__search-item-info"},r)),Object(l.createElement)(m.Button,{isSecondary:!0,onClick:function(){return n()},className:"block-editor-link-control__search-item-action"},Object(y.__)("Edit")),Object(l.createElement)(mp,{fillProps:t}))}var gp=function(e){var t=!1;return{promise:new Promise((function(n,r){e.then((function(e){return t?r({isCanceled:!0}):n(e)}),(function(e){return r(t?{isCanceled:!0}:e)}))})),cancel:function(){t=!0}}};function hp(e){var t=e.searchInputPlaceholder,n=e.value,r=e.settings,o=e.onChange,c=void 0===o?d.noop:o,i=e.noDirectEntry,a=void 0!==i&&i,s=e.showSuggestions,u=void 0===s||s,b=e.showInitialSuggestions,f=e.forceIsEditingLink,p=e.createSuggestion,v=e.withCreateSuggestion,O=e.inputValue,g=void 0===O?"":O,h=e.suggestionsQuery,j=void 0===h?{}:h,k=e.noURLSuggestion,_=void 0!==k&&k,E=e.createSuggestionButtonText;void 0===v&&p&&(v=!0);var w=Object(l.useRef)(!0),C=Object(l.useRef)(),S=Object(l.useState)(n&&n.url||""),B=Object(Uo.a)(S,2),I=B[0],x=B[1],P=g||I,T=Object(l.useState)(void 0!==f?f:!n||!n.url),N=Object(Uo.a)(T,2),D=N[0],A=N[1],L=Object(l.useRef)(!1);Object(l.useEffect)((function(){void 0!==f&&f!==D&&A(f)}),[f]),Object(l.useEffect)((function(){w.current?w.current=!1:(C.current.contains(C.current.ownerDocument.activeElement)||(wl.focus.focusable.find(C.current)[0]||C.current).focus(),L.current=!1)}),[D]);var R=function(e){var t=Object(l.useRef)(),n=Object(l.useState)(!1),r=Object(Uo.a)(n,2),o=r[0],c=r[1],i=Object(l.useState)(null),a=Object(Uo.a)(i,2),s=a[0],u=a[1],d=function(){var n=Object(yl.a)(Dt.a.mark((function n(r){return Dt.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return c(!0),u(null),n.prev=2,t.current=gp(Promise.resolve(e(r))),n.next=6,t.current.promise;case 6:return n.abrupt("return",n.sent);case 9:if(n.prev=9,n.t0=n.catch(2),!n.t0||!n.t0.isCanceled){n.next=13;break}return n.abrupt("return");case 13:throw u(n.t0.message||Object(y.__)("An unknown error occurred during creation. Please try again.")),n.t0;case 15:return n.prev=15,c(!1),n.finish(15);case 18:case"end":return n.stop()}}),n,null,[[2,9,15,18]])})));return function(_x){return n.apply(this,arguments)}}();return Object(l.useEffect)((function(){return function(){t.current&&t.current.cancel()}}),[]),{createPage:d,isCreatingPage:o,errorMessage:s}}(p),M=R.createPage,F=R.isCreatingPage,V=R.errorMessage;return Object(l.createElement)("div",{tabIndex:-1,ref:C,className:"block-editor-link-control"},F&&Object(l.createElement)("div",{className:"block-editor-link-control__loading"},Object(l.createElement)(m.Spinner,null)," ",Object(y.__)("Creating"),"…"),(D||!n)&&!F&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)("div",{className:"block-editor-link-control__search-input-wrapper"},Object(l.createElement)(fp,{currentLink:n,className:"block-editor-link-control__search-input",placeholder:t,value:P,withCreateSuggestion:v,onCreateSuggestion:M,onChange:x,onSelect:function(e){var t;c(e),L.current=!(null===(t=C.current)||void 0===t||!t.contains(C.current.ownerDocument.activeElement)),A(!1)},showInitialSuggestions:b,allowDirectEntry:!a,showSuggestions:u,suggestionsQuery:j,withURLSuggestion:!_,createSuggestionButtonText:E},Object(l.createElement)("div",{className:"block-editor-link-control__search-actions"},Object(l.createElement)(m.Button,{type:"submit",label:Object(y.__)("Submit"),icon:Kf.a,className:"block-editor-link-control__search-submit"})))),V&&Object(l.createElement)(m.Notice,{className:"block-editor-link-control__search-error",status:"error",isDismissible:!1},V)),n&&!D&&!F&&Object(l.createElement)(Op,{value:n,onEditClick:function(){return A(!0)}}),Object(l.createElement)(Xf,{value:n,settings:r,onChange:c}))}hp.ViewerFill=vp;var jp=hp,kp=n(412),yp=n(287),_p=Object(m.withFilters)("editor.MediaUpload")((function(){return null})),Ep=function(e){var t=e.fallback,n=void 0===t?null:t,r=e.children;return Object(v.useSelect)((function(e){return!!(0,e(hr).getSettings)().mediaUpload}),[])?r:n},wp=Object(b.compose)([Object(v.withDispatch)((function(e){var t=e(eu.store);return{createNotice:t.createNotice,removeNotice:t.removeNotice}})),Object(m.withFilters)("editor.MediaReplaceFlow")])((function(e){var t=e.mediaURL,n=e.mediaId,r=e.allowedTypes,o=e.accept,c=e.onSelect,i=e.onSelectURL,a=e.onFilesUpload,s=void 0===a?d.noop:a,u=e.name,b=void 0===u?Object(y.__)("Replace"):u,f=e.createNotice,p=e.removeNotice,O=Object(l.useState)(t),g=Object(Uo.a)(O,2),h=g[0],j=g[1],k=Object(v.useSelect)((function(e){return e(hr).getSettings().mediaUpload}),[]),_=Object(l.createRef)(),E=Object(d.uniqueId)("block-editor/media-replace-flow/error-notice/"),w=function(e){var t=document.createElement("div");t.innerHTML=Object(l.renderToString)(e);var n=t.textContent||t.innerText||"";setTimeout((function(){f("error",n,{speak:!0,id:E,isDismissible:!0})}),1e3)},C=function(e){c(e),j(e.url),Object(At.speak)(Object(y.__)("The media file has been replaced")),p(E)},S=function(e){e.keyCode===Kc.DOWN&&(e.preventDefault(),e.stopPropagation(),e.target.click())};return Object(l.createElement)(m.Dropdown,{popoverProps:{isAlternate:!0},contentClassName:"block-editor-media-replace-flow__options",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return Object(l.createElement)(m.ToolbarButton,{ref:_,"aria-expanded":t,"aria-haspopup":"true",onClick:n,onKeyDown:S},b)},renderContent:function(e){return e.onClose,Object(l.createElement)(l.Fragment,null,Object(l.createElement)(m.NavigableMenu,{className:"block-editor-media-replace-flow__media-upload-menu"},Object(l.createElement)(_p,{value:n,onSelect:function(e){return C(e)},allowedTypes:r,render:function(e){var t=e.open;return Object(l.createElement)(m.MenuItem,{icon:kp.a,onClick:t},Object(y.__)("Open Media Library"))}}),Object(l.createElement)(Ep,null,Object(l.createElement)(m.FormFileUpload,{onChange:function(e){!function(e){var t=e.target.files;s(t),k({allowedTypes:r,filesList:t,onFileChange:function(e){var t=Object(Uo.a)(e,1)[0];C(t)},onError:w})}(e)},accept:o,render:function(e){var t=e.openFileDialog;return Object(l.createElement)(m.MenuItem,{icon:yp.a,onClick:function(){t()}},Object(y.__)("Upload"))}}))),i&&Object(l.createElement)("form",{className:"block-editor-media-flow__url-input",onKeyDown:function(e){[Kc.TAB,Kc.ESCAPE].includes(e.keyCode)||e.stopPropagation()},onKeyPress:function(e){[Kc.TAB,Kc.ESCAPE].includes(e.keyCode)||e.stopPropagation()}},Object(l.createElement)("span",{className:"block-editor-media-replace-flow__image-url-label"},Object(y.__)("Current media URL:")),Object(l.createElement)(jp,{value:{url:h},settings:[],showSuggestions:!1,onChange:function(e){var t=e.url;j(t),i(t),_.current.focus()}})))}})})),Cp=n(259);function Sp(e){var t=e.url,n=e.urlLabel,r=e.className,o=u()(r,"block-editor-url-popover__link-viewer-url");return t?Object(l.createElement)(m.ExternalLink,{className:o,href:t},n||Object(au.filterURLForDisplay)(Object(au.safeDecodeURI)(t))):Object(l.createElement)("span",{className:o})}function Bp(e){var t=e.additionalControls,n=e.children,r=e.renderSettings,o=e.position,c=void 0===o?"bottom center":o,a=e.focusOnMount,s=void 0===a?"firstElement":a,u=Object(j.a)(e,["additionalControls","children","renderSettings","position","focusOnMount"]),d=Object(l.useState)(!1),b=Object(Uo.a)(d,2),f=b[0],p=b[1],v=!!r&&f;return Object(l.createElement)(m.Popover,Object(i.a)({className:"block-editor-url-popover",focusOnMount:s,position:c},u),Object(l.createElement)("div",{className:"block-editor-url-popover__input-container"},Object(l.createElement)("div",{className:"block-editor-url-popover__row"},n,!!r&&Object(l.createElement)(m.Button,{className:"block-editor-url-popover__settings-toggle",icon:Dl.a,label:Object(y.__)("Link settings"),onClick:function(){p(!f)},"aria-expanded":f})),v&&Object(l.createElement)("div",{className:"block-editor-url-popover__row block-editor-url-popover__settings"},r())),t&&!v&&Object(l.createElement)("div",{className:"block-editor-url-popover__additional-controls"},t))}Bp.LinkEditor=function(e){var t=e.autocompleteRef,n=e.className,r=e.onChangeInputValue,o=e.value,c=Object(j.a)(e,["autocompleteRef","className","onChangeInputValue","value"]);return Object(l.createElement)("form",Object(i.a)({className:u()("block-editor-url-popover__link-editor",n)},c),Object(l.createElement)(Zf,{value:o,onChange:r,autocompleteRef:t}),Object(l.createElement)(m.Button,{icon:Kf.a,label:Object(y.__)("Apply"),type:"submit"}))},Bp.LinkViewer=function(e){var t=e.className,n=e.linkClassName,r=e.onEditLinkClick,o=e.url,c=e.urlLabel,a=Object(j.a)(e,["className","linkClassName","onEditLinkClick","url","urlLabel"]);return Object(l.createElement)("div",Object(i.a)({className:u()("block-editor-url-popover__link-viewer",t)},a),Object(l.createElement)(Sp,{url:o,urlLabel:c,className:n}),r&&Object(l.createElement)(m.Button,{icon:Cp.a,label:Object(y.__)("Edit"),onClick:r}))};var Ip=Bp,xp=function(e){var t=e.src,n=e.onChange,r=e.onSubmit,o=e.onClose;return Object(l.createElement)(Ip,{onClose:o},Object(l.createElement)("form",{className:"block-editor-media-placeholder__url-input-form",onSubmit:r},Object(l.createElement)("input",{className:"block-editor-media-placeholder__url-input-field",type:"url","aria-label":Object(y.__)("URL"),placeholder:Object(y.__)("Paste or type URL"),onChange:n,value:t}),Object(l.createElement)(m.Button,{className:"block-editor-media-placeholder__url-input-submit-button",icon:Kf.a,label:Object(y.__)("Apply"),type:"submit"})))},Pp=Object(m.withFilters)("editor.MediaPlaceholder")((function(e){var t=e.value,n=void 0===t?{}:t,r=e.allowedTypes,o=e.className,c=e.icon,i=e.labels,a=void 0===i?{}:i,s=e.mediaPreview,b=e.notices,f=e.isAppender,p=e.accept,O=e.addToGallery,g=e.multiple,h=void 0!==g&&g,j=e.dropZoneUIOnly,k=e.disableDropZone,_=e.disableMediaButtons,E=e.onError,w=e.onSelect,C=e.onCancel,S=e.onSelectURL,B=e.onDoubleClick,I=e.onFilesPreUpload,x=void 0===I?d.noop:I,P=e.onHTMLDrop,T=void 0===P?d.noop:P,N=e.children,D=Object(v.useSelect)((function(e){return(0,e(hr).getSettings)().mediaUpload}),[]),A=Object(l.useState)(""),L=Object(Uo.a)(A,2),R=L[0],M=L[1],F=Object(l.useState)(!1),V=Object(Uo.a)(F,2),H=V[0],z=V[1];Object(l.useEffect)((function(){var e;M(null!==(e=null==n?void 0:n.src)&&void 0!==e?e:"")}),[null==n?void 0:n.src]);var G=function(e){M(e.target.value)},U=function(){z(!0)},W=function(){z(!1)},K=function(e){e.preventDefault(),R&&S&&(S(R),W())},q=function(e){var t;if(x(e),h)if(O){var o=[];t=function(e){var t=(null!=n?n:[]).filter((function(e){return e.id?!o.some((function(t){var n=t.id;return Number(n)===Number(e.id)})):!o.some((function(t){var n=t.urlSlug;return e.url.includes(n)}))}));w(t.concat(e)),o=e.map((function(e){var t=e.url.lastIndexOf("."),n=e.url.slice(0,t);return{id:e.id,urlSlug:n}}))}}else t=w;else t=function(e){var t=Object(Uo.a)(e,1)[0];return w(t)};D({allowedTypes:r,filesList:e,onFileChange:t,onError:E})},$=function(e){q(e.target.files)},Y=function(e,t){var n=a.instructions,i=a.title;if(D||S||(n=Object(y.__)("To edit this block, you need permission to upload media.")),void 0===n||void 0===i){var d=null!=r?r:[],p=Object(Uo.a)(d,1)[0],v=1===d.length,O=v&&"audio"===p,g=v&&"image"===p,h=v&&"video"===p;void 0===n&&D&&(n=Object(y.__)("Upload a media file or pick one from your media library."),O?n=Object(y.__)("Upload an audio file, pick one from your media library, or add one with a URL."):g?n=Object(y.__)("Upload an image file, pick one from your media library, or add one with a URL."):h&&(n=Object(y.__)("Upload a video file, pick one from your media library, or add one with a URL."))),void 0===i&&(i=Object(y.__)("Media"),O?i=Object(y.__)("Audio"):g?i=Object(y.__)("Image"):h&&(i=Object(y.__)("Video")))}var j=u()("block-editor-media-placeholder",o,{"is-appender":f});return Object(l.createElement)(m.Placeholder,{icon:c,label:i,instructions:n,className:j,notices:b,onClick:t,onDoubleClick:B,preview:s},e,N)},X=function(){return k?null:Object(l.createElement)(m.DropZone,{onFilesDrop:q,onHTMLDrop:T})},Q=function(){return C&&Object(l.createElement)(m.Button,{className:"block-editor-media-placeholder__cancel-button",title:Object(y.__)("Cancel"),isLink:!0,onClick:C},Object(y.__)("Cancel"))},Z=function(){return S&&Object(l.createElement)("div",{className:"block-editor-media-placeholder__url-input-container"},Object(l.createElement)(m.Button,{className:"block-editor-media-placeholder__button",onClick:U,isPressed:H,isTertiary:!0},Object(y.__)("Insert from URL")),H&&Object(l.createElement)(xp,{src:R,onChange:G,onSubmit:K,onClose:W}))};return j||_?(j&&Rt()("wp.blockEditor.MediaPlaceholder dropZoneUIOnly prop",{since:"5.4",alternative:"disableMediaButtons"}),Object(l.createElement)(Ep,null,X())):Object(l.createElement)(Ep,{fallback:Y(Z())},function(){var e=Object(l.createElement)(_p,{addToGallery:O,gallery:h&&!(!r||0===r.length)&&r.every((function(e){return"image"===e||e.startsWith("image/")})),multiple:h,onSelect:w,allowedTypes:r,value:Array.isArray(n)?n.map((function(e){return e.id})):n.id,render:function(e){var t=e.open;return Object(l.createElement)(m.Button,{isTertiary:!0,onClick:function(e){e.stopPropagation(),t()}},Object(y.__)("Media Library"))}});if(D&&f)return Object(l.createElement)(l.Fragment,null,X(),Object(l.createElement)(m.FormFileUpload,{onChange:$,accept:p,multiple:h,render:function(t){var n=t.openFileDialog,r=Object(l.createElement)(l.Fragment,null,Object(l.createElement)(m.Button,{isPrimary:!0,className:u()("block-editor-media-placeholder__button","block-editor-media-placeholder__upload-button")},Object(y.__)("Upload")),e,Z(),Q());return Y(r,n)}}));if(D){var t=Object(l.createElement)(l.Fragment,null,X(),Object(l.createElement)(m.FormFileUpload,{isPrimary:!0,className:u()("block-editor-media-placeholder__button","block-editor-media-placeholder__upload-button"),onChange:$,accept:p,multiple:h},Object(y.__)("Upload")),e,Z(),Q());return Y(t)}return Y(e)}())})),Tp=Object(l.forwardRef)((function(e,t){return Object(l.createElement)(Yb,Object(i.a)({ref:t},e,{__unstableDisableFormats:!0,preserveWhiteSpace:!0}))}));Tp.Content=function(e){var t=e.value,n=void 0===t?"":t,r=e.tagName,o=void 0===r?"div":r,c=Object(j.a)(e,["value","tagName"]);return Object(l.createElement)(o,c,n)};var Np=Tp,Dp=Object(l.forwardRef)((function(e,t){var n=e.__experimentalVersion,r=Object(j.a)(e,["__experimentalVersion"]);if(2===n)return Object(l.createElement)(Np,Object(i.a)({ref:t},r));var o=r.className,c=r.onChange,a=Object(j.a)(r,["className","onChange"]);return Object(l.createElement)(Jl.a,Object(i.a)({ref:t,className:u()("block-editor-plain-text",o),onChange:function(e){return c(e.target.value)}},a))}));function Ap(e){var t=e.property,n=e.viewport,r=e.desc,o=Object(b.useInstanceId)(Ap),c=r||Object(y.sprintf)(
67
  /* translators: 1: property name. 2: viewport name. */
68
- Object(y._x)("Controls the %1$s property for %2$s viewports.","Text labelling a interface as controlling a given layout property (eg: margin) for a given screen size."),t,n.label);return Object(l.createElement)(l.Fragment,null,Object(l.createElement)("span",{"aria-describedby":"rbc-desc-".concat(o)},n.label),Object(l.createElement)(m.VisuallyHidden,{as:"span",id:"rbc-desc-".concat(o)},c))}var Lp=function(e){var t=e.title,n=e.property,r=e.toggleLabel,o=e.onIsResponsiveChange,c=e.renderDefaultControl,i=e.renderResponsiveControls,a=e.isResponsive,s=void 0!==a&&a,d=e.defaultLabel,b=void 0===d?{id:"all",
69
  /* translators: 'Label. Used to signify a layout property (eg: margin, padding) will apply uniformly to all screensizes.' */
70
- label:Object(y.__)("All")}:d,f=e.viewports,p=void 0===f?[{id:"small",label:Object(y.__)("Small screens")},{id:"medium",label:Object(y.__)("Medium screens")},{id:"large",label:Object(y.__)("Large screens")}]:f;if(!t||!n||!c)return null;var v=r||Object(y.sprintf)(
71
  /* translators: 'Toggle control label. Should the property be the same across all screen sizes or unique per screen size.'. %s property value for the control (eg: margin, padding...etc) */
72
- Object(y.__)("Use the same %s on all screensizes."),n),O=Object(y.__)("Toggle between using the same value for all screen sizes or using a unique value per screen size."),g=c(Object(l.createElement)(Ap,{property:n,viewport:b}),b);
73
- /* translators: 'Help text for the responsive mode toggle control.' */return Object(l.createElement)("fieldset",{className:"block-editor-responsive-block-control"},Object(l.createElement)("legend",{className:"block-editor-responsive-block-control__title"},t),Object(l.createElement)("div",{className:"block-editor-responsive-block-control__inner"},Object(l.createElement)(m.ToggleControl,{className:"block-editor-responsive-block-control__toggle",label:v,checked:!s,onChange:o,help:O}),Object(l.createElement)("div",{className:u()("block-editor-responsive-block-control__group",{"is-responsive":s})},!s&&g,s&&(i?i(p):p.map((function(e){return Object(l.createElement)(l.Fragment,{key:e.id},c(Object(l.createElement)(Ap,{property:n,viewport:e}),e))}))))))};function Rp(e){var t=e.character,n=e.type,r=e.onUse;return Object(b.useKeyboardShortcut)(Kc.rawShortcut[n](t),(function(){return r(),!1}),{bindGlobal:!0}),null}function Mp(e){var t,n=e.name,r=e.shortcutType,o=e.shortcutCharacter,c=Object(j.a)(e,["name","shortcutType","shortcutCharacter"]),a="RichText.ToolbarControls";return n&&(a+=".".concat(n)),r&&o&&(t=Kc.displayShortcut[r](o)),Object(l.createElement)(m.Fill,{name:a},Object(l.createElement)(m.ToolbarButton,Object(i.a)({},c,{shortcut:t})))}var Fp=function(e){Object(Qi.a)(o,e);var t,n,r=(t=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=Object(Ji.a)(t);if(n){var o=Object(Ji.a)(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return Object(Zi.a)(this,e)});function o(){var e;return Object($i.a)(this,o),(e=r.apply(this,arguments)).onInput=e.onInput.bind(Object(Xi.a)(e)),e}return Object(Yi.a)(o,[{key:"onInput",value:function(e){e.inputType===this.props.inputType&&this.props.onInput()}},{key:"componentDidMount",value:function(){document.addEventListener("input",this.onInput,!0)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("input",this.onInput,!0)}},{key:"render",value:function(){return null}}]),o}(l.Component),Vp=Object(l.createElement)(m.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(l.createElement)(m.Path,{d:"M9.4 20.5L5.2 3.8l14.6 9-2 .3c-.2 0-.4.1-.7.1-.9.2-1.6.3-2.2.5-.8.3-1.4.5-1.8.8-.4.3-.8.8-1.3 1.5-.4.5-.8 1.2-1.2 2l-.3.6-.9 1.9zM7.6 7.1l2.4 9.3c.2-.4.5-.8.7-1.1.6-.8 1.1-1.4 1.6-1.8.5-.4 1.3-.8 2.2-1.1l1.2-.3-8.1-5z"})),Hp=Object(l.forwardRef)((function(e,t){var n=Object(v.useSelect)((function(e){return e(hr).isNavigationMode()}),[]),r=Object(v.useDispatch)(hr).setNavigationMode,o=function(e){r("edit"!==e)};return Object(l.createElement)(m.Dropdown,{renderToggle:function(r){var o=r.isOpen,c=r.onToggle;return Object(l.createElement)(m.Button,Object(i.a)({},e,{ref:t,icon:n?Vp:Cp.a,"aria-expanded":o,"aria-haspopup":"true",onClick:c
74
- /* translators: button label text should, if possible, be under 16 characters. */,label:Object(y.__)("Modes")}))},position:"bottom right",renderContent:function(){return Object(l.createElement)(l.Fragment,null,Object(l.createElement)(m.NavigableMenu,{role:"menu","aria-label":Object(y.__)("Modes")},Object(l.createElement)(m.MenuItemsChoice,{value:n?"select":"edit",onSelect:o,choices:[{value:"edit",label:Object(l.createElement)(l.Fragment,null,Object(l.createElement)(Vi.a,{icon:Cp.a}),Object(y.__)("Edit"))},{value:"select",label:Object(l.createElement)(l.Fragment,null,Vp,Object(y.__)("Select"))}]})),Object(l.createElement)("div",{className:"block-editor-tool-selector__help"},Object(y.__)("Tools offer different interactions for block selection & editing. To select, press Escape, to go back to editing, press Enter.")))}})})),zp=n(243),Gp=Object(l.createElement)(Sr.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(Sr.Path,{d:"M9.737 18.011L3.98 12.255l5.734-6.28 1.107 1.012-4.103 4.494h13.3v1.5H6.828l3.97 3.97-1.06 1.06z"}));var Up=function(e){Object(Qi.a)(o,e);var t,n,r=(t=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=Object(Ji.a)(t);if(n){var o=Object(Ji.a)(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return Object(Zi.a)(this,e)});function o(){var e;return Object($i.a)(this,o),(e=r.apply(this,arguments)).toggle=e.toggle.bind(Object(Xi.a)(e)),e.submitLink=e.submitLink.bind(Object(Xi.a)(e)),e.state={expanded:!1},e}return Object(Yi.a)(o,[{key:"toggle",value:function(){this.setState({expanded:!this.state.expanded})}},{key:"submitLink",value:function(e){e.preventDefault(),this.toggle()}},{key:"render",value:function(){var e=this.props,t=e.url,n=e.onChange,r=this.state.expanded,o=t?Object(y.__)("Edit link"):Object(y.__)("Insert link");return Object(l.createElement)("div",{className:"block-editor-url-input__button"},Object(l.createElement)(m.Button,{icon:zp.a,label:o,onClick:this.toggle,className:"components-toolbar__control",isPressed:!!t}),r&&Object(l.createElement)("form",{className:"block-editor-url-input__button-modal",onSubmit:this.submitLink},Object(l.createElement)("div",{className:"block-editor-url-input__button-modal-line"},Object(l.createElement)(m.Button,{className:"block-editor-url-input__back",icon:Gp,label:Object(y.__)("Close"),onClick:this.toggle}),Object(l.createElement)(Zf,{value:t||"",onChange:n}),Object(l.createElement)(m.Button,{icon:Kf.a,label:Object(y.__)("Submit"),type:"submit"}))))}}]),o}(l.Component),Wp=n(166),Kp=["noreferrer","noopener"],qp=Object(l.createElement)(m.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)(m.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(l.createElement)(m.Path,{d:"m19 5v14h-14v-14h14m0-2h-14c-1.1 0-2 0.9-2 2v14c0 1.1 0.9 2 2 2h14c1.1 0 2-0.9 2-2v-14c0-1.1-0.9-2-2-2z"}),Object(l.createElement)(m.Path,{d:"m14.14 11.86l-3 3.87-2.14-2.59-3 3.86h12l-3.86-5.14z"})),$p=function(e){var t=e.linkDestination,n=e.onChangeUrl,r=e.url,o=e.mediaType,c=void 0===o?"image":o,i=e.mediaUrl,a=e.mediaLink,s=e.linkTarget,u=e.linkClass,b=e.rel,f=Object(l.useState)(!1),p=Object(Uo.a)(f,2),v=p[0],O=p[1],g=Object(l.useCallback)((function(){O(!0)})),h=Object(l.useState)(!1),j=Object(Uo.a)(h,2),k=j[0],_=j[1],E=Object(l.useState)(null),w=Object(Uo.a)(E,2),C=w[0],S=w[1],B=Object(l.useRef)(null),I=Object(l.useCallback)((function(){"media"!==t&&"attachment"!==t||S(""),_(!0)})),x=Object(l.useCallback)((function(){_(!1)})),P=Object(l.useCallback)((function(){S(null),x(),O(!1)})),T=function(e){var t=e;return void 0===e||Object(d.isEmpty)(t)||Object(d.isEmpty)(t)||(Object(d.each)(Kp,(function(e){var n=new RegExp("\\b"+e+"\\b","gi");t=t.replace(n,"")})),t!==e&&(t=t.trim()),Object(d.isEmpty)(t)&&(t=void 0)),t},N=Object(l.useCallback)((function(){return function(e){var t=B.current;t&&t.contains(e.target)||(O(!1),S(null),x())}})),D=Object(l.useCallback)((function(){return function(e){if(C){var t,r=(null===(t=L().find((function(e){return e.url===C})))||void 0===t?void 0:t.linkDestination)||"custom";n({href:C,linkDestination:r})}x(),S(null),e.preventDefault()}})),A=Object(l.useCallback)((function(){n({linkDestination:"none",href:""})})),L=function(){var e=[{linkDestination:"media",title:Object(y.__)("Media File"),url:"image"===c?i:void 0,icon:qp}];return"image"===c&&a&&e.push({linkDestination:"attachment",title:Object(y.__)("Attachment Page"),url:"image"===c?a:void 0,icon:Object(l.createElement)(m.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)(m.Path,{d:"M0 0h24v24H0V0z",fill:"none"}),Object(l.createElement)(m.Path,{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zM6 20V4h7v5h5v11H6z"}))}),e},R=Object(l.createElement)(l.Fragment,null,Object(l.createElement)(m.ToggleControl,{label:Object(y.__)("Open in new tab"),onChange:function(e){var t=function(e){var t=e?"_blank":void 0;return{linkTarget:t,rel:t||b?T(b):void 0}}(e);n(t)},checked:"_blank"===s}),Object(l.createElement)(m.TextControl,{label:Object(y.__)("Link Rel"),value:T(b)||"",onChange:function(e){n({rel:e})}}),Object(l.createElement)(m.TextControl,{label:Object(y.__)("Link CSS Class"),value:u||"",onChange:function(e){n({linkClass:e})}})),M=null!==C?C:r,F=(Object(d.find)(L(),["linkDestination",t])||{}).title;return Object(l.createElement)(l.Fragment,null,Object(l.createElement)(m.ToolbarButton,{icon:zp.a,className:"components-toolbar__control",label:r?Object(y.__)("Edit link"):Object(y.__)("Insert link"),"aria-expanded":v,onClick:g}),v&&Object(l.createElement)(Ip,{onFocusOutside:N(),onClose:P,renderSettings:function(){return R},additionalControls:!M&&Object(l.createElement)(m.NavigableMenu,null,Object(d.map)(L(),(function(e){return Object(l.createElement)(m.MenuItem,{key:e.linkDestination,icon:e.icon,onClick:function(){var t,r,o;S(null),t=e.url,o=L(),r=t?(Object(d.find)(o,(function(e){return e.url===t}))||{linkDestination:"custom"}).linkDestination:"none",n({linkDestination:r,href:t}),x()}},e.title)})))},(!r||k)&&Object(l.createElement)(Ip.LinkEditor,{className:"block-editor-format-toolbar__link-container-content",value:M,onChangeInputValue:S,onSubmit:D(),autocompleteRef:B}),r&&!k&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(Ip.LinkViewer,{className:"block-editor-format-toolbar__link-container-content",url:r,onEditLinkClick:I,urlLabel:F}),Object(l.createElement)(m.Button,{icon:Wp.a,label:Object(y.__)("Remove link"),onClick:A}))))},Yp=n(150);function Xp(e){var t=e.children,n=e.className,r=e.isEnabled,o=void 0===r||r,c=e.deviceType,i=e.setDeviceType;if(Object(b.useViewportMatch)("small","<"))return null;var a={className:u()(n,"block-editor-post-preview__dropdown-content"),position:"bottom left"},s={isTertiary:!0,className:"block-editor-post-preview__button-toggle",disabled:!o,
75
  /* translators: button label text should, if possible, be under 16 characters. */
76
- children:Object(y.__)("Preview")};return Object(l.createElement)(m.DropdownMenu,{className:"block-editor-post-preview__dropdown",popoverProps:a,toggleProps:s,icon:null},(function(){return Object(l.createElement)(l.Fragment,null,Object(l.createElement)(m.MenuGroup,null,Object(l.createElement)(m.MenuItem,{className:"block-editor-post-preview__button-resize",onClick:function(){return i("Desktop")},icon:"Desktop"===c&&Yp.a},Object(y.__)("Desktop")),Object(l.createElement)(m.MenuItem,{className:"block-editor-post-preview__button-resize",onClick:function(){return i("Tablet")},icon:"Tablet"===c&&Yp.a},Object(y.__)("Tablet")),Object(l.createElement)(m.MenuItem,{className:"block-editor-post-preview__button-resize",onClick:function(){return i("Mobile")},icon:"Mobile"===c&&Yp.a},Object(y.__)("Mobile"))),t)}))}var Qp=n(358),Zp=/\((min|max)-width:[^\(]*?\)/g;function Jp(e){return!!e.media&&!!e.media.mediaText.match(Zp)}function em(e,t,n){e.deleteRule(n),e.insertRule(t,n)}function tm(e,t){return e.replace(Zp,(function(e){return Object(Qp.match)(e,{type:"screen",width:t})?"(min-width:0px)":"(min-width:999999px)"}))}function nm(e,t){Object(l.useEffect)((function(){if(t){var n,r,o,c="undefined"==typeof window?[]:Object(d.filter)(null!==(n=null===(r=window)||void 0===r||null===(o=r.document)||void 0===o?void 0:o.styleSheets)&&void 0!==n?n:[],(function(e){return!!e.href&&Object(au.getProtocol)(e.href)===window.location.protocol&&Object(au.getAuthority)(e.href)===window.location.host})),i=[];return c.forEach((function(n,r){for(var o=!1,c=0;c<n.cssRules.length;++c){var a=n.cssRules[c];if((a.type===window.CSSRule.STYLE_RULE||a.type===window.CSSRule.MEDIA_RULE)&&(!o&&a.cssText.match(new RegExp("#start-".concat(e)))&&(o=!0),o&&a.cssText.match(new RegExp("#end-".concat(e)))&&(o=!1),o&&Jp(a))){var l=a.cssText;i[r]||(i[r]=[]),i[r][c]=l,em(n,tm(l,t),c)}}})),function(){i.forEach((function(e,t){if(e)for(var n=0;n<e.length;++n){var r=e[n];r&&em(c[t],r,n)}}))}}}),[t])}function rm(e,t){var n=Object(l.useState)(window.innerWidth),r=Object(Uo.a)(n,2),o=r[0],c=r[1];Object(l.useEffect)((function(){if("Desktop"!==e){var t=function(){return c(window.innerWidth)};return window.addEventListener("resize",t),function(){window.removeEventListener("resize",t)}}}),[e]);var i=function(e){var t;switch(e){case"Tablet":t=780;break;case"Mobile":t=360;break;default:return null}return t<o?t:o};return nm("resizable-editor-section",t?null:i(e)),function(e){var t="Mobile"===e?"768px":"1024px";switch(e){case"Tablet":case"Mobile":return{width:i(e),margin:(window.innerHeight<800?36:72)+"px auto",flexGrow:0,height:t,minHeight:t,maxHeight:t,overflowY:"auto",borderRadius:"2px"};default:return null}}(e)}var om=Object(v.withSelect)((function(e){return{selectedBlockClientId:e(hr).getBlockSelectionStart()}}))((function(e){var t=e.selectedBlockClientId;return t?Object(l.createElement)(m.Button,{isSecondary:!0,className:"block-editor-skip-to-selected-block",onClick:function(){dc(t,document).focus()}},Object(y.__)("Skip to the selected block")):null})),cm=n(156),im=Object(v.withSelect)((function(e){return{blocks:(0,e(hr).getMultiSelectedBlocks)()}}))((function(e){var t=e.blocks,n=Object(cm.count)(Object(p.serialize)(t),"words");return Object(l.createElement)("div",{className:"block-editor-multi-selection-inspector__card"},Object(l.createElement)(Ja,{icon:Qu,showColors:!0}),Object(l.createElement)("div",{className:"block-editor-multi-selection-inspector__card-content"},Object(l.createElement)("div",{className:"block-editor-multi-selection-inspector__card-title"},Object(y.sprintf)(
77
  /* translators: %d: number of blocks */
78
- Object(y._n)("%d block","%d blocks",t.length),t.length)),Object(l.createElement)("div",{className:"block-editor-multi-selection-inspector__card-description"},Object(y.sprintf)(
79
  /* translators: %d: number of words */
80
- Object(y._n)("%d word","%d words",n),n))))}));function am(e){var t=e.blockName,n=Object(v.useSelect)((function(e){var n,r,o=e(hr).getSettings().__experimentalPreferredStyleVariations;return{preferredStyle:null==o||null===(n=o.value)||void 0===n?void 0:n[t],onUpdatePreferredStyleVariations:null!==(r=null==o?void 0:o.onChange)&&void 0!==r?r:null,styles:e(p.store).getBlockStyles(t)}}),[t]),r=n.preferredStyle,o=n.onUpdatePreferredStyleVariations,c=n.styles,i=Object(l.useMemo)((function(){return[{label:Object(y.__)("Not set"),value:""}].concat(Object(k.a)(c.map((function(e){return{label:e.label,value:e.name}}))))}),[c]),a=Object(l.useCallback)((function(e){o(t,e)}),[t,o]);return o&&Object(l.createElement)(m.SelectControl,{options:i,value:r||"",label:Object(y.__)("Default Style"),onChange:a})}var lm=function(e){var t=e.clientId,n=e.blockName,r=e.hasBlockStyles,o=e.bubblesVirtually,c=il(t);return Object(l.createElement)("div",{className:"block-editor-block-inspector"},Object(l.createElement)(Cs,c),Object(l.createElement)(tf,{blockClientId:t}),r&&Object(l.createElement)("div",null,Object(l.createElement)(m.PanelBody,{title:Object(y.__)("Styles")},Object(l.createElement)(cd,{clientId:t}),Object(p.hasBlockSupport)(n,"defaultStylePicker",!0)&&Object(l.createElement)(am,{blockName:n}))),Object(l.createElement)(bo.Slot,{bubblesVirtually:o}),Object(l.createElement)("div",null,Object(l.createElement)(sm,{slotName:io.slotName,bubblesVirtually:o})),Object(l.createElement)(om,{key:"back"}))},sm=function(e){var t=e.slotName,n=e.bubblesVirtually,r=Object(m.__experimentalUseSlot)(t);return Boolean(r.fills&&r.fills.length)?Object(l.createElement)(m.PanelBody,{className:"block-editor-block-inspector__advanced",title:Object(y.__)("Advanced"),initialOpen:!1},Object(l.createElement)(io.Slot,{bubblesVirtually:n})):null},um=function(e){var t=e.showNoBlockSelectedMessage,n=void 0===t||t,r=e.bubblesVirtually,o=void 0===r||r,c=Object(v.useSelect)((function(e){var t=e(hr),n=t.getSelectedBlockClientId,r=t.getSelectedBlockCount,o=t.getBlockName,c=e(p.store).getBlockStyles,i=n(),a=i&&o(i),l=a&&Object(p.getBlockType)(a),s=a&&c(a);return{count:r(),selectedBlockClientId:i,selectedBlockName:a,blockType:l,hasBlockStyles:s&&s.length>0}}),[]),i=c.count,a=c.hasBlockStyles,s=c.selectedBlockName,u=c.selectedBlockClientId,d=c.blockType;if(i>1)return Object(l.createElement)("div",{className:"block-editor-block-inspector"},Object(l.createElement)(im,null),Object(l.createElement)(bo.Slot,{bubblesVirtually:o}));var b=s===Object(p.getUnregisteredTypeHandlerName)();return d&&u&&!b?Object(l.createElement)(lm,{clientId:u,blockName:d.name,hasBlockStyles:a,bubblesVirtually:o}):n?Object(l.createElement)("span",{className:"block-editor-block-inspector__no-blocks"},Object(y.__)("No block selected.")):null};function dm(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 bm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dm(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var fm=Object(l.forwardRef)((function(e,t){var n=e.children,r=e.tagName,o=void 0===r?"div":r,c=Object(j.a)(e,["children","tagName"]);Rt()("wp.blockEditor.__experimentalBlock",{since:"5.6",alternative:"wp.blockEditor.useBlockProps"});var i=rb(bm(bm({},c),{},{ref:t}));return Object(l.createElement)(o,i,n)})),pm=["p","div","h1","h2","h3","h4","h5","h6","ol","ul","li","figure","nav","pre","header","section","aside","footer","main"].reduce((function(e,t){return e[t]=Object(l.forwardRef)((function(e,n){return Object(l.createElement)(fm,Object(i.a)({},e,{ref:n,tagName:t}))})),e}),fm);function mm(){var e=Object(v.useSelect)((function(e){var t=e(hr),n=t.hasSelectedBlock,r=t.hasMultiSelection;return n()||r()})),t=Object(v.useDispatch)(hr).clearSelectedBlock;return Object(b.useRefEffect)((function(n){if(e)return n.addEventListener("mousedown",r),function(){n.removeEventListener("mousedown",r)};function r(e){e.target.closest(".wp-block")||t()}}),[e,t])}function vm(e){return Object(l.createElement)("div",Object(i.a)({ref:mm()},e))}var Om=n(359),gm=n.n(Om),hm=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;function jm(e){return e?e.replace(/^\s+|\s+$/g,""):""}var km=n(221),ym=n.n(km),_m=Em;function Em(e){this.options=e||{}}Em.prototype.emit=function(e){return e},Em.prototype.visit=function(e){return this[e.type](e)},Em.prototype.mapVisit=function(e,t){var n="";t=t||"";for(var r=0,o=e.length;r<o;r++)n+=this.visit(e[r]),t&&r<o-1&&(n+=this.emit(t));return n};var wm=Cm;function Cm(e){_m.call(this,e)}ym()(Cm,_m),Cm.prototype.compile=function(e){return e.stylesheet.rules.map(this.visit,this).join("")},Cm.prototype.comment=function(e){return this.emit("",e.position)},Cm.prototype.import=function(e){return this.emit("@import "+e.import+";",e.position)},Cm.prototype.media=function(e){return this.emit("@media "+e.media,e.position)+this.emit("{")+this.mapVisit(e.rules)+this.emit("}")},Cm.prototype.document=function(e){var t="@"+(e.vendor||"")+"document "+e.document;return this.emit(t,e.position)+this.emit("{")+this.mapVisit(e.rules)+this.emit("}")},Cm.prototype.charset=function(e){return this.emit("@charset "+e.charset+";",e.position)},Cm.prototype.namespace=function(e){return this.emit("@namespace "+e.namespace+";",e.position)},Cm.prototype.supports=function(e){return this.emit("@supports "+e.supports,e.position)+this.emit("{")+this.mapVisit(e.rules)+this.emit("}")},Cm.prototype.keyframes=function(e){return this.emit("@"+(e.vendor||"")+"keyframes "+e.name,e.position)+this.emit("{")+this.mapVisit(e.keyframes)+this.emit("}")},Cm.prototype.keyframe=function(e){var t=e.declarations;return this.emit(e.values.join(","),e.position)+this.emit("{")+this.mapVisit(t)+this.emit("}")},Cm.prototype.page=function(e){var t=e.selectors.length?e.selectors.join(", "):"";return this.emit("@page "+t,e.position)+this.emit("{")+this.mapVisit(e.declarations)+this.emit("}")},Cm.prototype["font-face"]=function(e){return this.emit("@font-face",e.position)+this.emit("{")+this.mapVisit(e.declarations)+this.emit("}")},Cm.prototype.host=function(e){return this.emit("@host",e.position)+this.emit("{")+this.mapVisit(e.rules)+this.emit("}")},Cm.prototype["custom-media"]=function(e){return this.emit("@custom-media "+e.name+" "+e.media+";",e.position)},Cm.prototype.rule=function(e){var t=e.declarations;return t.length?this.emit(e.selectors.join(","),e.position)+this.emit("{")+this.mapVisit(t)+this.emit("}"):""},Cm.prototype.declaration=function(e){return this.emit(e.property+":"+e.value,e.position)+this.emit(";")};var Sm=Bm;function Bm(e){e=e||{},_m.call(this,e),this.indentation=e.indent}ym()(Bm,_m),Bm.prototype.compile=function(e){return this.stylesheet(e)},Bm.prototype.stylesheet=function(e){return this.mapVisit(e.stylesheet.rules,"\n\n")},Bm.prototype.comment=function(e){return this.emit(this.indent()+"/*"+e.comment+"*/",e.position)},Bm.prototype.import=function(e){return this.emit("@import "+e.import+";",e.position)},Bm.prototype.media=function(e){return this.emit("@media "+e.media,e.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(e.rules,"\n\n")+this.emit(this.indent(-1)+"\n}")},Bm.prototype.document=function(e){var t="@"+(e.vendor||"")+"document "+e.document;return this.emit(t,e.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(e.rules,"\n\n")+this.emit(this.indent(-1)+"\n}")},Bm.prototype.charset=function(e){return this.emit("@charset "+e.charset+";",e.position)},Bm.prototype.namespace=function(e){return this.emit("@namespace "+e.namespace+";",e.position)},Bm.prototype.supports=function(e){return this.emit("@supports "+e.supports,e.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(e.rules,"\n\n")+this.emit(this.indent(-1)+"\n}")},Bm.prototype.keyframes=function(e){return this.emit("@"+(e.vendor||"")+"keyframes "+e.name,e.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(e.keyframes,"\n")+this.emit(this.indent(-1)+"}")},Bm.prototype.keyframe=function(e){var t=e.declarations;return this.emit(this.indent())+this.emit(e.values.join(", "),e.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(t,"\n")+this.emit(this.indent(-1)+"\n"+this.indent()+"}\n")},Bm.prototype.page=function(e){var t=e.selectors.length?e.selectors.join(", ")+" ":"";return this.emit("@page "+t,e.position)+this.emit("{\n")+this.emit(this.indent(1))+this.mapVisit(e.declarations,"\n")+this.emit(this.indent(-1))+this.emit("\n}")},Bm.prototype["font-face"]=function(e){return this.emit("@font-face ",e.position)+this.emit("{\n")+this.emit(this.indent(1))+this.mapVisit(e.declarations,"\n")+this.emit(this.indent(-1))+this.emit("\n}")},Bm.prototype.host=function(e){return this.emit("@host",e.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(e.rules,"\n\n")+this.emit(this.indent(-1)+"\n}")},Bm.prototype["custom-media"]=function(e){return this.emit("@custom-media "+e.name+" "+e.media+";",e.position)},Bm.prototype.rule=function(e){var t=this.indent(),n=e.declarations;return n.length?this.emit(e.selectors.map((function(e){return t+e})).join(",\n"),e.position)+this.emit(" {\n")+this.emit(this.indent(1))+this.mapVisit(n,"\n")+this.emit(this.indent(-1))+this.emit("\n"+this.indent()+"}"):""},Bm.prototype.declaration=function(e){return this.emit(this.indent())+this.emit(e.property+": "+e.value,e.position)+this.emit(";")},Bm.prototype.indent=function(e){return this.level=this.level||1,null!==e?(this.level+=e,""):Array(this.level).join(this.indentation||" ")};var Im=function(e,t){try{var n=function(e,t){t=t||{};var n=1,r=1;function o(e){var t=e.match(/\n/g);t&&(n+=t.length);var o=e.lastIndexOf("\n");r=~o?e.length-o:r+e.length}function c(){var e={line:n,column:r};return function(t){return t.position=new i(e),f(),t}}function i(e){this.start=e,this.end={line:n,column:r},this.source=t.source}i.prototype.content=e;var a=[];function l(o){var c=new Error(t.source+":"+n+":"+r+": "+o);if(c.reason=o,c.filename=t.source,c.line=n,c.column=r,c.source=e,!t.silent)throw c;a.push(c)}function s(){return b(/^{\s*/)}function u(){return b(/^}/)}function d(){var t,n,r,o=[];for(f(),p(o);e.length&&"}"!==e.charAt(0)&&(t=w()||(n=void 0,r=void 0,n=c(),(r=v())?(p(),n({type:"rule",selectors:r,declarations:g()})):l("selector missing")));)!1!==t&&(o.push(t),p(o));return o}function b(t){var n=t.exec(e);if(n){var r=n[0];return o(r),e=e.slice(r.length),n}}function f(){b(/^\s*/)}function p(e){var t;for(e=e||[];t=m();)!1!==t&&e.push(t);return e}function m(){var t=c();if("/"===e.charAt(0)&&"*"===e.charAt(1)){for(var n=2;""!==e.charAt(n)&&("*"!==e.charAt(n)||"/"!==e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return l("End of comment missing");var i=e.slice(2,n-2);return r+=2,o(i),e=e.slice(n),r+=2,t({type:"comment",comment:i})}}function v(){var e=b(/^([^{]+)/);if(e)return jm(e[0]).replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g,"").replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,(function(e){return e.replace(/,/g,"‌")})).split(/\s*(?![^(]*\)),\s*/).map((function(e){return e.replace(/\u200C/g,",")}))}function O(){var e=c(),t=b(/^(\*?[-#\/\*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(t){if(t=jm(t[0]),!b(/^:\s*/))return l("property missing ':'");var n=b(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^\)]*?\)|[^};])+)/),r=e({type:"declaration",property:t.replace(hm,""),value:n?jm(n[0]).replace(hm,""):""});return b(/^[;\s]*/),r}}function g(){var e,t=[];if(!s())return l("missing '{'");for(p(t);e=O();)!1!==e&&(t.push(e),p(t));return u()?t:l("missing '}'")}function h(){for(var e,t=[],n=c();e=b(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)t.push(e[1]),b(/^,\s*/);if(t.length)return n({type:"keyframe",values:t,declarations:g()})}var j,k=E("import"),y=E("charset"),_=E("namespace");function E(e){var t=new RegExp("^@"+e+"\\s*([^;]+);");return function(){var n=c(),r=b(t);if(r){var o={type:e};return o[e]=r[1].trim(),n(o)}}}function w(){if("@"===e[0])return function(){var e=c(),t=b(/^@([-\w]+)?keyframes\s*/);if(t){var n=t[1];if(!(t=b(/^([-\w]+)\s*/)))return l("@keyframes missing name");var r,o=t[1];if(!s())return l("@keyframes missing '{'");for(var i=p();r=h();)i.push(r),i=i.concat(p());return u()?e({type:"keyframes",name:o,vendor:n,keyframes:i}):l("@keyframes missing '}'")}}()||function(){var e=c(),t=b(/^@media *([^{]+)/);if(t){var n=jm(t[1]);if(!s())return l("@media missing '{'");var r=p().concat(d());return u()?e({type:"media",media:n,rules:r}):l("@media missing '}'")}}()||function(){var e=c(),t=b(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(t)return e({type:"custom-media",name:jm(t[1]),media:jm(t[2])})}()||function(){var e=c(),t=b(/^@supports *([^{]+)/);if(t){var n=jm(t[1]);if(!s())return l("@supports missing '{'");var r=p().concat(d());return u()?e({type:"supports",supports:n,rules:r}):l("@supports missing '}'")}}()||k()||y()||_()||function(){var e=c(),t=b(/^@([-\w]+)?document *([^{]+)/);if(t){var n=jm(t[1]),r=jm(t[2]);if(!s())return l("@document missing '{'");var o=p().concat(d());return u()?e({type:"document",document:r,vendor:n,rules:o}):l("@document missing '}'")}}()||function(){var e=c();if(b(/^@page */)){var t=v()||[];if(!s())return l("@page missing '{'");for(var n,r=p();n=O();)r.push(n),r=r.concat(p());return u()?e({type:"page",selectors:t,declarations:r}):l("@page missing '}'")}}()||function(){var e=c();if(b(/^@host\s*/)){if(!s())return l("@host missing '{'");var t=p().concat(d());return u()?e({type:"host",rules:t}):l("@host missing '}'")}}()||function(){var e=c();if(b(/^@font-face\s*/)){if(!s())return l("@font-face missing '{'");for(var t,n=p();t=O();)n.push(t),n=n.concat(p());return u()?e({type:"font-face",declarations:n}):l("@font-face missing '}'")}}()}return function e(t,n){var r=t&&"string"==typeof t.type,o=r?t:n;for(var c in t){var i=t[c];Array.isArray(i)?i.forEach((function(t){e(t,o)})):i&&"object"===Object(H.a)(i)&&e(i,o)}return r&&Object.defineProperty(t,"parent",{configurable:!0,writable:!0,enumerable:!1,value:n||null}),t}((j=d(),{type:"stylesheet",stylesheet:{source:t.source,rules:j,parsingErrors:a}}))}(e);return r=gm.a.map(n,(function(e){if(!e)return e;var n=t(e);return this.update(n)})),((o=o||{}).compress?new wm(o):new Sm(o)).compile(r)}catch(e){return console.warn("Error while traversing the CSS: "+e),null}var r,o};function xm(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 Pm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xm(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Tm(e){return 0!==e.value.indexOf("data:")&&0!==e.value.indexOf("#")&&(t=e.value,!/^\/(?!\/)/.test(t)&&!function(e){return/^(?:https?:)?\/\//.test(e)}(e.value));var t}function Nm(e,t){return new URL(e,t).toString()}var Dm=function(e){return function(t){if("declaration"===t.type){var n=function(e){for(var t,n=/url\((\s*)(['"]?)(.+?)\2(\s*)\)/g,r=[];null!==(t=n.exec(e));){var o={source:t[0],before:t[1],quote:t[2],value:t[3],after:t[4]};Tm(o)&&r.push(o)}return r}(t.value).map((c=e,function(e){return Pm(Pm({},e),{},{newUrl:"url("+e.before+e.quote+Nm(e.value,c)+e.quote+e.after+")"})}));return Pm(Pm({},t),{},{value:(r=t.value,o=n,o.forEach((function(e){r=r.replace(e.source,e.newUrl)})),r)})}var r,o,c;return t}};function Am(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 Lm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Am(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Am(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Rm=/^(body|html|:root).*$/,Mm=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return function(n){return"rule"===n.type?Lm(Lm({},n),{},{selectors:n.selectors.map((function(n){return t.includes(n.trim())?n:n.match(Rm)?n.replace(/^(body|html|:root)/,e):e+" "+n}))}):n}},Fm=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Object(d.map)(e,(function(e){var n=e.css,r=e.baseURL,o=e.__experimentalNoWrapper,c=[];return t&&!(void 0!==o&&o)&&c.push(Mm(t)),r&&c.push(Dm(r)),c.length?Im(n,Object(b.compose)(c)):n}))};function Vm(e){return Object(l.useCallback)((function(e){if(e){var t=e.ownerDocument,n=t.defaultView,r=t.body,o=t.querySelector(".editor-styles-wrapper"),c=n.getComputedStyle(o,null).getPropertyValue("background-color");Do()(c).getLuminance()>.5?r.classList.remove("is-dark-theme"):r.classList.add("is-dark-theme")}}),[e])}function Hm(e){var t=e.styles;return Object(l.createElement)(l.Fragment,null,Object(l.createElement)("style",{ref:Vm(t)}),Fm(t,".editor-styles-wrapper").map((function(e,t){return Object(l.createElement)("style",{key:t},e)})))}var zm=function(e){var t=e.rootClientId,n=e.clientId,r=e.isAppender,o=e.showInserterHelpPanel,c=e.showMostUsedBlocks,i=void 0!==c&&c,a=e.__experimentalInsertionIndex,s=e.onSelect,u=void 0===s?d.noop:s,b=e.shouldFocusBlock,f=void 0!==b&&b,p=Object(v.useSelect)((function(e){var r=e(hr).getBlockRootClientId;return t||r(n)||void 0}),[n,t]);return Object(l.createElement)(ku,{onSelect:u,rootClientId:p,clientId:n,isAppender:r,showInserterHelpPanel:o,showMostUsedBlocks:i,__experimentalInsertionIndex:a,shouldFocusBlock:f})};function Gm(){var e=Object(v.useSelect)((function(e){var t=e(hr),n=t.getSelectedBlockClientIds,r=t.getBlockOrder,o=t.getBlockRootClientId,c=n(),i=Object(Uo.a)(c,1)[0];return{clientIds:c,rootBlocksClientIds:r(),rootClientId:o(i)}}),[]),t=e.clientIds,n=e.rootBlocksClientIds,r=e.rootClientId,o=Object(v.useDispatch)(hr),c=o.duplicateBlocks,i=o.removeBlocks,a=o.insertAfterBlock,s=o.insertBeforeBlock,u=o.multiSelect,b=o.clearSelectedBlock,f=o.moveBlocksUp,p=o.moveBlocksDown;return Object(jl.useShortcut)("core/block-editor/move-up",Object(l.useCallback)((function(e){e.preventDefault(),f(t,r)}),[t,f]),{bindGlobal:!0,isDisabled:0===t.length}),Object(jl.useShortcut)("core/block-editor/move-down",Object(l.useCallback)((function(e){e.preventDefault(),p(t,r)}),[t,p]),{bindGlobal:!0,isDisabled:0===t.length}),Object(jl.useShortcut)("core/block-editor/duplicate",Object(l.useCallback)((function(e){e.preventDefault(),c(t)}),[t,c]),{bindGlobal:!0,isDisabled:0===t.length}),Object(jl.useShortcut)("core/block-editor/remove",Object(l.useCallback)((function(e){e.preventDefault(),i(t)}),[t,i]),{bindGlobal:!0,isDisabled:0===t.length}),Object(jl.useShortcut)("core/block-editor/insert-after",Object(l.useCallback)((function(e){e.preventDefault(),a(Object(d.last)(t))}),[t,a]),{bindGlobal:!0,isDisabled:0===t.length}),Object(jl.useShortcut)("core/block-editor/insert-before",Object(l.useCallback)((function(e){e.preventDefault(),s(Object(d.first)(t))}),[t,s]),{bindGlobal:!0,isDisabled:0===t.length}),Object(jl.useShortcut)("core/block-editor/delete-multi-selection",Object(l.useCallback)((function(e){e.preventDefault(),i(t)}),[t,i]),{isDisabled:t.length<2}),Object(jl.useShortcut)("core/block-editor/select-all",Object(l.useCallback)((function(e){e.preventDefault(),u(Object(d.first)(n),Object(d.last)(n))}),[n,u])),Object(jl.useShortcut)("core/block-editor/unselect",Object(l.useCallback)((function(e){e.preventDefault(),b(),e.target.ownerDocument.defaultView.getSelection().removeAllRanges()}),[t,b]),{isDisabled:t.length<2}),null}Gm.Register=function(){var e=Object(v.useDispatch)(jl.store).registerShortcut;return Object(l.useEffect)((function(){e({name:"core/block-editor/duplicate",category:"block",description:Object(y.__)("Duplicate the selected block(s)."),keyCombination:{modifier:"primaryShift",character:"d"}}),e({name:"core/block-editor/remove",category:"block",description:Object(y.__)("Remove the selected block(s)."),keyCombination:{modifier:"access",character:"z"}}),e({name:"core/block-editor/insert-before",category:"block",description:Object(y.__)("Insert a new block before the selected block(s)."),keyCombination:{modifier:"primaryAlt",character:"t"}}),e({name:"core/block-editor/insert-after",category:"block",description:Object(y.__)("Insert a new block after the selected block(s)."),keyCombination:{modifier:"primaryAlt",character:"y"}}),e({name:"core/block-editor/delete-multi-selection",category:"block",description:Object(y.__)("Remove multiple selected blocks."),keyCombination:{character:"del"},aliases:[{character:"backspace"}]}),e({name:"core/block-editor/select-all",category:"selection",description:Object(y.__)("Select all text when typing. Press again to select all blocks."),keyCombination:{modifier:"primary",character:"a"}}),e({name:"core/block-editor/unselect",category:"selection",description:Object(y.__)("Clear selection."),keyCombination:{character:"escape"}}),e({name:"core/block-editor/focus-toolbar",category:"global",description:Object(y.__)("Navigate to the nearest toolbar."),keyCombination:{modifier:"alt",character:"F10"}}),e({name:"core/block-editor/move-up",category:"block",description:Object(y.__)("Move the selected block(s) up."),keyCombination:{modifier:"secondary",character:"t"}}),e({name:"core/block-editor/move-down",category:"block",description:Object(y.__)("Move the selected block(s) down."),keyCombination:{modifier:"secondary",character:"y"}})}),[e]),null};var Um=Gm,Wm=new Set([Kc.UP,Kc.RIGHT,Kc.DOWN,Kc.LEFT,Kc.ENTER,Kc.BACKSPACE]);function Km(){var e=Object(v.useSelect)((function(e){return e(hr).isTyping()})),t=Object(v.useDispatch)(hr).stopTyping;return Object(b.useRefEffect)((function(n){if(e){var r,o,c=n.ownerDocument;return c.addEventListener("mousemove",i),function(){c.removeEventListener("mousemove",i)}}function i(e){var n=e.clientX,c=e.clientY;r&&o&&(r!==n||o!==c)&&t(),r=n,o=c}}),[e,t])}function qm(){var e=Object(v.useSelect)((function(e){return e(hr).isTyping()})),t=Object(v.useDispatch)(hr),n=t.startTyping,r=t.stopTyping,o=Km(),c=Object(b.useRefEffect)((function(t){var o=t.ownerDocument,c=o.defaultView;if(e){var i;function a(e){var t=e.target;i=c.setTimeout((function(){Object(wl.isTextField)(t)||r()}))}function l(e){var t=e.keyCode;t!==Kc.ESCAPE&&t!==Kc.TAB||r()}function s(){var e=c.getSelection();e.rangeCount>0&&e.getRangeAt(0).collapsed||r()}return t.addEventListener("focus",a),t.addEventListener("keydown",l),o.addEventListener("selectionchange",s),function(){c.clearTimeout(i),t.removeEventListener("focus",a),t.removeEventListener("keydown",l),o.removeEventListener("selectionchange",s)}}function u(e){var r=e.type,o=e.target;Object(wl.isTextField)(o)&&t.contains(o)&&("keydown"!==r||function(e){var t=e.keyCode;return!e.shiftKey&&Wm.has(t)}(e))&&n()}return t.addEventListener("keypress",u),t.addEventListener("keydown",u),function(){t.removeEventListener("keypress",u),t.removeEventListener("keydown",u)}}),[e,n,r]);return Object(b.useMergeRefs)([o,c])}var $m=function(e){var t=e.children;return Object(l.createElement)("div",{ref:qm()},t)};function Ym(){return Rt()("PreserveScrollInReorder component",{since:"5.4",hint:"This behavior is now built-in the block list"}),null}var Xm=-1!==window.navigator.userAgent.indexOf("Trident"),Qm=new Set([Kc.UP,Kc.DOWN,Kc.LEFT,Kc.RIGHT]);function Zm(){var e=Object(v.useSelect)((function(e){return e(hr).hasSelectedBlock()}));return Object(b.useRefEffect)((function(t){if(e){var n,r,o,c=t.ownerDocument,i=c.defaultView;return i.addEventListener("scroll",a,!0),i.addEventListener("resize",a,!0),t.addEventListener("keydown",l),t.addEventListener("keyup",s),t.addEventListener("mousedown",u),t.addEventListener("touchstart",u),function(){i.removeEventListener("scroll",a,!0),i.removeEventListener("resize",a,!0),t.removeEventListener("keydown",l),t.removeEventListener("keyup",s),t.removeEventListener("mousedown",u),t.removeEventListener("touchstart",u),c.removeEventListener("selectionchange",d),i.cancelAnimationFrame(n),i.cancelAnimationFrame(r)}}function a(){n||(n=i.requestAnimationFrame((function(){b(),n=null})))}function l(e){r&&i.cancelAnimationFrame(r),r=i.requestAnimationFrame((function(){s(e),r=null}))}function s(e){var n=e.keyCode;if(f()){var r=Object(wl.computeCaretRect)(i);if(r)if(o)if(Qm.has(n))o=r;else{var a=r.top-o.top;if(0!==a){var l=Object(wl.getScrollContainer)(t);if(l){var s=l===c.body,u=s?i.scrollY:l.scrollTop,d=s?0:l.getBoundingClientRect().top,b=s?o.top/i.innerHeight:(o.top-d)/(i.innerHeight-d);if(0===u&&b<.75&&(p=t.querySelectorAll('[contenteditable="true"]'))[p.length-1]===c.activeElement)o=r;else{var p,m=s?i.innerHeight:l.clientHeight;o.top+o.height>d+m||o.top<d?o=r:s?i.scrollBy(0,a):l.scrollTop+=a}}}}else o=r}}function u(){c.addEventListener("selectionchange",d)}function d(){c.removeEventListener("selectionchange",d),b()}function b(){f()&&(o=Object(wl.computeCaretRect)(i))}function f(){return t.contains(c.activeElement)&&c.activeElement.isContentEditable}}),[e])}var Jm=Xm?function(e){return e.children}:function(e){var t=e.children;return Object(l.createElement)("div",{ref:Zm(),className:"block-editor__typewriter"},t)},ev=Object(d.overEvery)([wl.isTextField,wl.focus.tabbable.isTabbableIndex]);function tv(){return Object(b.useRefEffect)((function(e){function t(t){if(t.target===e){var n=wl.focus.focusable.find(e),r=Object(d.findLast)(n,ev);r&&(Object(wl.placeCaretAtHorizontalEdge)(r,!0),t.preventDefault())}}return e.addEventListener("mousedown",t),function(){e.addEventListener("mousedown",t)}}),[])}function nv(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function rv(e){e.dir=document.dir,e.body.className="editor-styles-wrapper";var t,n=function(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return nv(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?nv(e,void 0):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,i=!0,a=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return i=e.done,e},e:function(e){a=!0,c=e},f:function(){try{i||null==n.return||n.return()}finally{if(a)throw c}}}}(document.body.classList);try{for(n.s();!(t=n.n()).done;){var r=t.value;r.startsWith("admin-color-")&&e.body.classList.add(r)}}catch(e){n.e(e)}finally{n.f()}}var ov=Object(l.forwardRef)((function(e,t){var n=e.contentRef,r=e.children,o=e.head,c=e.headHTML,a=Object(j.a)(e,["contentRef","children","head","headHTML"]),s=Object(l.useState)(),u=Object(Uo.a)(s,2),d=u[0],f=u[1],p=Object(l.useCallback)((function(e){function t(){var t,r=e.contentDocument,o=r.readyState,i=r.body;return("interactive"===o||"complete"===o)&&("function"==typeof n?n(i):n&&(n.current=i),function(e,t){e.head.innerHTML="<style>body{margin:0}</style>"+t}(r,c),rv(r),t=r,Array.from(document.styleSheets).forEach((function(e){try{e.cssRules}catch(e){return}var n=e.ownerNode,r=e.cssRules;r&&Array.from(r).find((function(e){var t=e.selectorText;return t&&(t.includes(".".concat("editor-styles-wrapper"))||t.includes(".".concat("wp-block")))}))&&!t.getElementById(n.id)&&t.head.appendChild(n.cloneNode(!0))})),function(e){var t=e.defaultView,n=t.frameElement;function r(e){var r=Object.getPrototypeOf(e).constructor.name,o=window[r],c={};for(var i in e)c[i]=e[i];if(e instanceof t.MouseEvent){var a=n.getBoundingClientRect();c.clientX+=a.left,c.clientY+=a.top}var l=new o(e.type,c);!n.dispatchEvent(l)&&e.preventDefault()}for(var o=0,c=["keydown","keypress","dragover"];o<c.length;o++){var i=c[o];e.addEventListener(i,r)}}(r),rv(r),f(r),!0)}e&&(t()||e.addEventListener("load",(function(){t()})))}),[]);return Object(l.createElement)("iframe",Object(i.a)({},a,{ref:Object(b.useMergeRefs)([t,p]),tabIndex:"0",title:Object(y.__)("Editor canvas"),name:"editor-canvas"}),d&&Object(l.createPortal)(r,d.body),d&&Object(l.createPortal)(o,d.head))}));function cv(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 iv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cv(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var av=Object(l.createContext)({});function lv(e){var t,n=Object(l.useContext)(av),r=h().name,o=Boolean(null===(t=n[r])||void 0===t?void 0:t.has(e)),c=Object(l.useMemo)((function(){return function(e,t,n){var r=iv(iv({},e),{},Object(a.a)({},t,e[t]?new Set(e[t]):new Set));return r[t].add(n),r}(n,r,e)}),[n,r,e]);return[o,Object(l.useCallback)((function(e){var t=e.children;return Object(l.createElement)(av.Provider,{value:c},t)}),[c])]}function sv(e){if(void 0===e)e=E.colors;else{var t=e.filter((function(e){return e.color}));0===t.length?e=E.colors:t.length<e.length&&(e=t)}return e}function uv(e){if(void 0===e)e=E.gradients;else{var t=e.filter((function(e){return e.gradient}));0===t.length?e=E.gradients:t.length<e.length&&(e=t)}return e}},55:function(e,t){e.exports=window.wp.a11y},58: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}))},6: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}))},61:function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?(e.exports=n=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),n(t)}e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},62:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,"a",(function(){return r}))},67:function(e,t,n){var r;!function(o){var c=/^\s+/,i=/\s+$/,a=0,l=o.round,s=o.min,u=o.max,d=o.random;function b(e,t){if(t=t||{},(e=e||"")instanceof b)return e;if(!(this instanceof b))return new b(e,t);var n=function(e){var t,n,r,a={r:0,g:0,b:0},l=1,d=null,b=null,f=null,p=!1,m=!1;return"string"==typeof e&&(e=function(e){e=e.replace(c,"").replace(i,"").toLowerCase();var t,n=!1;if(x[e])e=x[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};return(t=G.rgb.exec(e))?{r:t[1],g:t[2],b:t[3]}:(t=G.rgba.exec(e))?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=G.hsl.exec(e))?{h:t[1],s:t[2],l:t[3]}:(t=G.hsla.exec(e))?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=G.hsv.exec(e))?{h:t[1],s:t[2],v:t[3]}:(t=G.hsva.exec(e))?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=G.hex8.exec(e))?{r:A(t[1]),g:A(t[2]),b:A(t[3]),a:F(t[4]),format:n?"name":"hex8"}:(t=G.hex6.exec(e))?{r:A(t[1]),g:A(t[2]),b:A(t[3]),format:n?"name":"hex"}:(t=G.hex4.exec(e))?{r:A(t[1]+""+t[1]),g:A(t[2]+""+t[2]),b:A(t[3]+""+t[3]),a:F(t[4]+""+t[4]),format:n?"name":"hex8"}:!!(t=G.hex3.exec(e))&&{r:A(t[1]+""+t[1]),g:A(t[2]+""+t[2]),b:A(t[3]+""+t[3]),format:n?"name":"hex"}}(e)),"object"==typeof e&&(U(e.r)&&U(e.g)&&U(e.b)?(t=e.r,n=e.g,r=e.b,a={r:255*N(t,255),g:255*N(n,255),b:255*N(r,255)},p=!0,m="%"===String(e.r).substr(-1)?"prgb":"rgb"):U(e.h)&&U(e.s)&&U(e.v)?(d=R(e.s),b=R(e.v),a=function(e,t,n){e=6*N(e,360),t=N(t,100),n=N(n,100);var r=o.floor(e),c=e-r,i=n*(1-t),a=n*(1-c*t),l=n*(1-(1-c)*t),s=r%6;return{r:255*[n,a,i,i,l,n][s],g:255*[l,n,n,a,i,i][s],b:255*[i,i,l,n,n,a][s]}}(e.h,d,b),p=!0,m="hsv"):U(e.h)&&U(e.s)&&U(e.l)&&(d=R(e.s),f=R(e.l),a=function(e,t,n){var r,o,c;function i(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=N(e,360),t=N(t,100),n=N(n,100),0===t)r=o=c=n;else{var a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;r=i(l,a,e+1/3),o=i(l,a,e),c=i(l,a,e-1/3)}return{r:255*r,g:255*o,b:255*c}}(e.h,d,f),p=!0,m="hsl"),e.hasOwnProperty("a")&&(l=e.a)),l=T(l),{ok:p,format:e.format||m,r:s(255,u(a.r,0)),g:s(255,u(a.g,0)),b:s(255,u(a.b,0)),a:l}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=l(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=l(this._r)),this._g<1&&(this._g=l(this._g)),this._b<1&&(this._b=l(this._b)),this._ok=n.ok,this._tc_id=a++}function f(e,t,n){e=N(e,255),t=N(t,255),n=N(n,255);var r,o,c=u(e,t,n),i=s(e,t,n),a=(c+i)/2;if(c==i)r=o=0;else{var l=c-i;switch(o=a>.5?l/(2-c-i):l/(c+i),c){case e:r=(t-n)/l+(t<n?6:0);break;case t:r=(n-e)/l+2;break;case n:r=(e-t)/l+4}r/=6}return{h:r,s:o,l:a}}function p(e,t,n){e=N(e,255),t=N(t,255),n=N(n,255);var r,o,c=u(e,t,n),i=s(e,t,n),a=c,l=c-i;if(o=0===c?0:l/c,c==i)r=0;else{switch(c){case e:r=(t-n)/l+(t<n?6:0);break;case t:r=(n-e)/l+2;break;case n:r=(e-t)/l+4}r/=6}return{h:r,s:o,v:a}}function m(e,t,n,r){var o=[L(l(e).toString(16)),L(l(t).toString(16)),L(l(n).toString(16))];return r&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function v(e,t,n,r){return[L(M(r)),L(l(e).toString(16)),L(l(t).toString(16)),L(l(n).toString(16))].join("")}function O(e,t){t=0===t?0:t||10;var n=b(e).toHsl();return n.s-=t/100,n.s=D(n.s),b(n)}function g(e,t){t=0===t?0:t||10;var n=b(e).toHsl();return n.s+=t/100,n.s=D(n.s),b(n)}function h(e){return b(e).desaturate(100)}function j(e,t){t=0===t?0:t||10;var n=b(e).toHsl();return n.l+=t/100,n.l=D(n.l),b(n)}function k(e,t){t=0===t?0:t||10;var n=b(e).toRgb();return n.r=u(0,s(255,n.r-l(-t/100*255))),n.g=u(0,s(255,n.g-l(-t/100*255))),n.b=u(0,s(255,n.b-l(-t/100*255))),b(n)}function y(e,t){t=0===t?0:t||10;var n=b(e).toHsl();return n.l-=t/100,n.l=D(n.l),b(n)}function _(e,t){var n=b(e).toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,b(n)}function E(e){var t=b(e).toHsl();return t.h=(t.h+180)%360,b(t)}function w(e){var t=b(e).toHsl(),n=t.h;return[b(e),b({h:(n+120)%360,s:t.s,l:t.l}),b({h:(n+240)%360,s:t.s,l:t.l})]}function C(e){var t=b(e).toHsl(),n=t.h;return[b(e),b({h:(n+90)%360,s:t.s,l:t.l}),b({h:(n+180)%360,s:t.s,l:t.l}),b({h:(n+270)%360,s:t.s,l:t.l})]}function S(e){var t=b(e).toHsl(),n=t.h;return[b(e),b({h:(n+72)%360,s:t.s,l:t.l}),b({h:(n+216)%360,s:t.s,l:t.l})]}function B(e,t,n){t=t||6,n=n||30;var r=b(e).toHsl(),o=360/n,c=[b(e)];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,c.push(b(r));return c}function I(e,t){t=t||6;for(var n=b(e).toHsv(),r=n.h,o=n.s,c=n.v,i=[],a=1/t;t--;)i.push(b({h:r,s:o,v:c})),c=(c+a)%1;return i}b.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:o.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:o.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:o.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=T(e),this._roundA=l(100*this._a)/100,this},toHsv:function(){var e=p(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=p(this._r,this._g,this._b),t=l(360*e.h),n=l(100*e.s),r=l(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=f(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=f(this._r,this._g,this._b),t=l(360*e.h),n=l(100*e.s),r=l(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return m(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,o){var c=[L(l(e).toString(16)),L(l(t).toString(16)),L(l(n).toString(16)),L(M(r))];return o&&c[0].charAt(0)==c[0].charAt(1)&&c[1].charAt(0)==c[1].charAt(1)&&c[2].charAt(0)==c[2].charAt(1)&&c[3].charAt(0)==c[3].charAt(1)?c[0].charAt(0)+c[1].charAt(0)+c[2].charAt(0)+c[3].charAt(0):c.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:l(this._r),g:l(this._g),b:l(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+l(this._r)+", "+l(this._g)+", "+l(this._b)+")":"rgba("+l(this._r)+", "+l(this._g)+", "+l(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:l(100*N(this._r,255))+"%",g:l(100*N(this._g,255))+"%",b:l(100*N(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+l(100*N(this._r,255))+"%, "+l(100*N(this._g,255))+"%, "+l(100*N(this._b,255))+"%)":"rgba("+l(100*N(this._r,255))+"%, "+l(100*N(this._g,255))+"%, "+l(100*N(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(P[m(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+v(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var o=b(e);n="#"+v(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return b(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(j,arguments)},brighten:function(){return this._applyModification(k,arguments)},darken:function(){return this._applyModification(y,arguments)},desaturate:function(){return this._applyModification(O,arguments)},saturate:function(){return this._applyModification(g,arguments)},greyscale:function(){return this._applyModification(h,arguments)},spin:function(){return this._applyModification(_,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(B,arguments)},complement:function(){return this._applyCombination(E,arguments)},monochromatic:function(){return this._applyCombination(I,arguments)},splitcomplement:function(){return this._applyCombination(S,arguments)},triad:function(){return this._applyCombination(w,arguments)},tetrad:function(){return this._applyCombination(C,arguments)}},b.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:R(e[r]));e=n}return b(e,t)},b.equals=function(e,t){return!(!e||!t)&&b(e).toRgbString()==b(t).toRgbString()},b.random=function(){return b.fromRatio({r:d(),g:d(),b:d()})},b.mix=function(e,t,n){n=0===n?0:n||50;var r=b(e).toRgb(),o=b(t).toRgb(),c=n/100;return b({r:(o.r-r.r)*c+r.r,g:(o.g-r.g)*c+r.g,b:(o.b-r.b)*c+r.b,a:(o.a-r.a)*c+r.a})},b.readability=function(e,t){var n=b(e),r=b(t);return(o.max(n.getLuminance(),r.getLuminance())+.05)/(o.min(n.getLuminance(),r.getLuminance())+.05)},b.isReadable=function(e,t,n){var r,o,c,i,a,l=b.readability(e,t);switch(o=!1,(c=n,"AA"!==(i=((c=c||{level:"AA",size:"small"}).level||"AA").toUpperCase())&&"AAA"!==i&&(i="AA"),"small"!==(a=(c.size||"small").toLowerCase())&&"large"!==a&&(a="small"),r={level:i,size:a}).level+r.size){case"AAsmall":case"AAAlarge":o=l>=4.5;break;case"AAlarge":o=l>=3;break;case"AAAsmall":o=l>=7}return o},b.mostReadable=function(e,t,n){var r,o,c,i,a=null,l=0;o=(n=n||{}).includeFallbackColors,c=n.level,i=n.size;for(var s=0;s<t.length;s++)(r=b.readability(e,t[s]))>l&&(l=r,a=b(t[s]));return b.isReadable(e,a,{level:c,size:i})||!o?a:(n.includeFallbackColors=!1,b.mostReadable(e,["#fff","#000"],n))};var x=b.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},P=b.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(x);function T(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function N(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=s(t,u(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),o.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function D(e){return s(1,u(0,e))}function A(e){return parseInt(e,16)}function L(e){return 1==e.length?"0"+e:""+e}function R(e){return e<=1&&(e=100*e+"%"),e}function M(e){return o.round(255*parseFloat(e)).toString(16)}function F(e){return A(e)/255}var V,H,z,G=(H="[\\s|\\(]+("+(V="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+V+")[,|\\s]+("+V+")\\s*\\)?",z="[\\s|\\(]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")\\s*\\)?",{CSS_UNIT:new RegExp(V),rgb:new RegExp("rgb"+H),rgba:new RegExp("rgba"+z),hsl:new RegExp("hsl"+H),hsla:new RegExp("hsla"+z),hsv:new RegExp("hsv"+H),hsva:new RegExp("hsva"+z),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function U(e){return!!G.CSS_UNIT.exec(e)}e.exports?e.exports=b:void 0===(r=function(){return b}.call(t,n,t,e))||(e.exports=r)}(Math)},7:function(e,t){e.exports=window.wp.primitives},71:function(e,t){e.exports=window.wp.htmlEntities},76:function(e,t){e.exports=window.wp.isShallowEqual},79:function(e,t,n){e.exports=function(e,t){var n,r,o=0;function c(){var c,i,a=n,l=arguments.length;e:for(;a;){if(a.args.length===arguments.length){for(i=0;i<l;i++)if(a.args[i]!==arguments[i]){a=a.next;continue e}return a!==n&&(a===r&&(r=a.prev),a.prev.next=a.next,a.next&&(a.next.prev=a.prev),a.next=n,a.prev=null,n.prev=a,n=a),a.val}a=a.next}for(c=new Array(l),i=0;i<l;i++)c[i]=arguments[i];return a={args:c,val:e.apply(null,c)},n?(n.prev=a,a.next=n):r=a,o===t.maxSize?(r=r.prev).next=null:o++,n=a,a.val}return t=t||{},c.clear=function(){n=null,r=null,o=0},c}},8:function(e,t){e.exports=window.React},9:function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.d(t,"a",(function(){return r}))}});
1
+ window.wp=window.wp||{},window.wp.blockEditor=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=542)}({0:function(e,t){e.exports=window.wp.element},1:function(e,t){e.exports=window.wp.i18n},10:function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.d(t,"a",(function(){return r}))},11:function(e,t){e.exports=window.wp.blocks},12:function(e,t,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var c=typeof r;if("string"===c||"number"===c)e.push(r);else if(Array.isArray(r))e.push(o.apply(null,r));else if("object"===c)for(var i in r)n.call(r,i)&&r[i]&&e.push(i)}}return e.join(" ")}e.exports?e.exports=o:void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},121:function(e,t,n){"use strict";t.__esModule=!0;var r=n(241);t.default=r.TextareaAutosize},13:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(50);function o(e,t){if(null==e)return{};var n,o,c=Object(r.a)(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(c[n]=e[n])}return c}},135:function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"}));t.a=c},14:function(e,t){e.exports=window.wp.compose},145:function(e,t,n){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(234)),c=r(n(235)),i=n(8),a=r(i),l=r(n(208)),s=r(n(237)),u={arr:Array.isArray,obj:function(e){return"[object Object]"===Object.prototype.toString.call(e)},fun:function(e){return"function"==typeof e},str:function(e){return"string"==typeof e},num:function(e){return"number"==typeof e},und:function(e){return void 0===e},nul:function(e){return null===e},set:function(e){return e instanceof Set},map:function(e){return e instanceof Map},equ:function(e,t){if(typeof e!=typeof t)return!1;if(u.str(e)||u.num(e))return e===t;if(u.obj(e)&&u.obj(t)&&Object.keys(e).length+Object.keys(t).length===0)return!0;var n;for(n in e)if(!(n in t))return!1;for(n in t)if(e[n]!==t[n])return!1;return!u.und(n)||e===t}};function d(){var e=i.useState(!1)[1];return i.useCallback((function(){return e((function(e){return!e}))}),[])}function b(e,t){return u.und(e)||u.nul(e)?t:e}function f(e){return u.und(e)?[]:u.arr(e)?e:[e]}function p(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return u.fun(e)?e.apply(void 0,n):e}function m(e){var t=function(e){return e.to,e.from,e.config,e.onStart,e.onRest,e.onFrame,e.children,e.reset,e.reverse,e.force,e.immediate,e.delay,e.attach,e.destroyed,e.interpolateTo,e.ref,e.lazy,c(e,["to","from","config","onStart","onRest","onFrame","children","reset","reverse","force","immediate","delay","attach","destroyed","interpolateTo","ref","lazy"])}(e);if(u.und(t))return o({to:t},e);var n=Object.keys(e).reduce((function(n,r){var c;return u.und(t[r])?o({},n,((c={})[r]=e[r],c)):n}),{});return o({to:t},n)}var v,O,g=function(){function e(){this.payload=void 0,this.children=[]}var t=e.prototype;return t.getAnimatedValue=function(){return this.getValue()},t.getPayload=function(){return this.payload||this},t.attach=function(){},t.detach=function(){},t.getChildren=function(){return this.children},t.addChild=function(e){0===this.children.length&&this.attach(),this.children.push(e)},t.removeChild=function(e){var t=this.children.indexOf(e);this.children.splice(t,1),0===this.children.length&&this.detach()},e}(),h=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).payload=[],t.attach=function(){return t.payload.forEach((function(e){return e instanceof g&&e.addChild(s(t))}))},t.detach=function(){return t.payload.forEach((function(e){return e instanceof g&&e.removeChild(s(t))}))},t}return l(t,e),t}(g),j=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).payload={},t.attach=function(){return Object.values(t.payload).forEach((function(e){return e instanceof g&&e.addChild(s(t))}))},t.detach=function(){return Object.values(t.payload).forEach((function(e){return e instanceof g&&e.removeChild(s(t))}))},t}l(t,e);var n=t.prototype;return n.getValue=function(e){void 0===e&&(e=!1);var t={};for(var n in this.payload){var r=this.payload[n];(!e||r instanceof g)&&(t[n]=r instanceof g?r[e?"getAnimatedValue":"getValue"]():r)}return t},n.getAnimatedValue=function(){return this.getValue(!0)},t}(g);function y(e,t){v={fn:e,transform:t}}function k(e){O=e}var _,E=function(e){return"undefined"!=typeof window?window.requestAnimationFrame(e):-1},w=function(e){"undefined"!=typeof window&&window.cancelAnimationFrame(e)};function C(e){_=e}var S,B=function(){return Date.now()};function I(e){S=e}var x,P,T=function(e){return e.current};function N(e){x=e}var D=Object.freeze({get applyAnimatedValues(){return v},injectApplyAnimatedValues:y,get colorNames(){return O},injectColorNames:k,get requestFrame(){return E},get cancelFrame(){return w},injectFrame:function(e,t){E=e,w=t},get interpolation(){return _},injectStringInterpolator:C,get now(){return B},injectNow:function(e){B=e},get defaultElement(){return S},injectDefaultElement:I,get animatedApi(){return T},injectAnimatedApi:function(e){T=e},get createAnimatedStyle(){return x},injectCreateAnimatedStyle:N,get manualFrameloop(){return P},injectManualFrameloop:function(e){P=e}}),A=function(e){function t(t,n){var r;return(r=e.call(this)||this).update=void 0,r.payload=t.style?o({},t,{style:x(t.style)}):t,r.update=n,r.attach(),r}return l(t,e),t}(j),L=!1,R=new Set,M=function e(){if(!L)return!1;var t=B(),n=R,r=Array.isArray(n),o=0;for(n=r?n:n[Symbol.iterator]();;){var c;if(r){if(o>=n.length)break;c=n[o++]}else{if((o=n.next()).done)break;c=o.value}for(var i=c,a=!1,l=0;l<i.configs.length;l++){for(var s=i.configs[l],u=void 0,d=void 0,b=0;b<s.animatedValues.length;b++){var f=s.animatedValues[b];if(!f.done){var p=s.fromValues[b],m=s.toValues[b],v=f.lastPosition,O=m instanceof g,h=Array.isArray(s.initialVelocity)?s.initialVelocity[b]:s.initialVelocity;if(O&&(m=m.getValue()),s.immediate)f.setValue(m),f.done=!0;else if("string"!=typeof p&&"string"!=typeof m){if(void 0!==s.duration)v=p+s.easing((t-f.startTime)/s.duration)*(m-p),u=t>=f.startTime+s.duration;else if(s.decay)v=p+h/(1-.998)*(1-Math.exp(-(1-.998)*(t-f.startTime))),(u=Math.abs(f.lastPosition-v)<.1)&&(m=v);else{d=void 0!==f.lastTime?f.lastTime:t,h=void 0!==f.lastVelocity?f.lastVelocity:s.initialVelocity,t>d+64&&(d=t);for(var j=Math.floor(t-d),y=0;y<j;++y)v+=1*(h+=(-s.tension*(v-m)+-s.friction*h)/s.mass*1/1e3)/1e3;var k=!(!s.clamp||0===s.tension)&&(p<m?v>m:v<m),_=Math.abs(h)<=s.precision,w=0===s.tension||Math.abs(m-v)<=s.precision;u=k||_&&w,f.lastVelocity=h,f.lastTime=t}O&&!s.toValues[b].done&&(u=!1),u?(f.value!==m&&(v=m),f.done=!0):a=!0,f.setValue(v),f.lastPosition=v}else f.setValue(m),f.done=!0}}i.props.onFrame&&(i.values[s.name]=s.interpolation.getValue())}i.props.onFrame&&i.props.onFrame(i.values),a||(R.delete(i),i.stop(!0))}return R.size?P?P():E(e):L=!1,L};function F(e,t,n){if("function"==typeof e)return e;if(Array.isArray(e))return F({range:e,output:t,extrapolate:n});if(_&&"string"==typeof e.output[0])return _(e);var r=e,o=r.output,c=r.range||[0,1],i=r.extrapolateLeft||r.extrapolate||"extend",a=r.extrapolateRight||r.extrapolate||"extend",l=r.easing||function(e){return e};return function(e){var t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,c);return function(e,t,n,r,o,c,i,a,l){var s=l?l(e):e;if(s<t){if("identity"===i)return s;"clamp"===i&&(s=t)}if(s>n){if("identity"===a)return s;"clamp"===a&&(s=n)}return r===o?r:t===n?e<=t?r:o:(t===-1/0?s=-s:n===1/0?s-=t:s=(s-t)/(n-t),s=c(s),r===-1/0?s=-s:o===1/0?s+=r:s=s*(o-r)+r,s)}(e,c[t],c[t+1],o[t],o[t+1],l,i,a,r.map)}}var V=function(e){function t(n,r,o){var c;return(c=e.call(this)||this).calc=void 0,c.payload=n instanceof h&&!(n instanceof t)?n.getPayload():Array.isArray(n)?n:[n],c.calc=F(r,o),c}l(t,e);var n=t.prototype;return n.getValue=function(){return this.calc.apply(this,this.payload.map((function(e){return e.getValue()})))},n.updateConfig=function(e,t){this.calc=F(e,t)},n.interpolate=function(e,n){return new t(this,e,n)},t}(h),H=function(e){function t(t){var n;return(n=e.call(this)||this).animatedStyles=new Set,n.value=void 0,n.startPosition=void 0,n.lastPosition=void 0,n.lastVelocity=void 0,n.startTime=void 0,n.lastTime=void 0,n.done=!1,n.setValue=function(e,t){void 0===t&&(t=!0),n.value=e,t&&n.flush()},n.value=t,n.startPosition=t,n.lastPosition=t,n}l(t,e);var n=t.prototype;return n.flush=function(){0===this.animatedStyles.size&&function e(t,n){"update"in t?n.add(t):t.getChildren().forEach((function(t){return e(t,n)}))}(this,this.animatedStyles),this.animatedStyles.forEach((function(e){return e.update()}))},n.clearStyles=function(){this.animatedStyles.clear()},n.getValue=function(){return this.value},n.interpolate=function(e,t){return new V(this,e,t)},t}(g),z=function(e){function t(t){var n;return(n=e.call(this)||this).payload=t.map((function(e){return new H(e)})),n}l(t,e);var n=t.prototype;return n.setValue=function(e,t){var n=this;void 0===t&&(t=!0),Array.isArray(e)?e.length===this.payload.length&&e.forEach((function(e,r){return n.payload[r].setValue(e,t)})):this.payload.forEach((function(n){return n.setValue(e,t)}))},n.getValue=function(){return this.payload.map((function(e){return e.getValue()}))},n.interpolate=function(e,t){return new V(this,e,t)},t}(h),G=0,U=function(){function e(){var e=this;this.id=void 0,this.idle=!0,this.hasChanged=!1,this.guid=0,this.local=0,this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.listeners=[],this.queue=[],this.localQueue=void 0,this.getValues=function(){return e.interpolations},this.id=G++}var t=e.prototype;return t.update=function(e){if(!e)return this;var t=m(e),n=t.delay,r=void 0===n?0:n,i=t.to,a=c(t,["delay","to"]);if(u.arr(i)||u.fun(i))this.queue.push(o({},a,{delay:r,to:i}));else if(i){var l={};Object.entries(i).forEach((function(e){var t,n=e[0],c=e[1],i=o({to:(t={},t[n]=c,t),delay:p(r,n)},a),s=l[i.delay]&&l[i.delay].to;l[i.delay]=o({},l[i.delay],i,{to:o({},s,i.to)})})),this.queue=Object.values(l)}return this.queue=this.queue.sort((function(e,t){return e.delay-t.delay})),this.diff(a),this},t.start=function(e){var t=this;if(this.queue.length){this.idle=!1,this.localQueue&&this.localQueue.forEach((function(e){var n=e.from,r=void 0===n?{}:n,c=e.to,i=void 0===c?{}:c;u.obj(r)&&(t.merged=o({},r,t.merged)),u.obj(i)&&(t.merged=o({},t.merged,i))}));var n=this.local=++this.guid,r=this.localQueue=this.queue;this.queue=[],r.forEach((function(o,i){var a=o.delay,l=c(o,["delay"]),s=function(o){i===r.length-1&&n===t.guid&&o&&(t.idle=!0,t.props.onRest&&t.props.onRest(t.merged)),e&&e()},d=u.arr(l.to)||u.fun(l.to);a?setTimeout((function(){n===t.guid&&(d?t.runAsync(l,s):t.diff(l).start(s))}),a):d?t.runAsync(l,s):t.diff(l).start(s)}))}else u.fun(e)&&this.listeners.push(e),this.props.onStart&&this.props.onStart(),this,R.has(this)||R.add(this),L||(L=!0,E(P||M));return this},t.stop=function(e){return this.listeners.forEach((function(t){return t(e)})),this.listeners=[],this},t.pause=function(e){return this.stop(!0),e&&(this,R.has(this)&&R.delete(this)),this},t.runAsync=function(e,t){var n=this,r=(e.delay,c(e,["delay"])),i=this.local,a=Promise.resolve(void 0);if(u.arr(r.to))for(var l=function(e){var t=e,c=o({},r,m(r.to[t]));u.arr(c.config)&&(c.config=c.config[t]),a=a.then((function(){if(i===n.guid)return new Promise((function(e){return n.diff(c).start(e)}))}))},s=0;s<r.to.length;s++)l(s);else if(u.fun(r.to)){var d,b=0;a=a.then((function(){return r.to((function(e){var t=o({},r,m(e));if(u.arr(t.config)&&(t.config=t.config[b]),b++,i===n.guid)return d=new Promise((function(e){return n.diff(t).start(e)}))}),(function(e){return void 0===e&&(e=!0),n.stop(e)})).then((function(){return d}))}))}a.then(t)},t.diff=function(e){var t=this;this.props=o({},this.props,e);var n=this.props,r=n.from,c=void 0===r?{}:r,i=n.to,a=void 0===i?{}:i,l=n.config,s=void 0===l?{}:l,d=n.reverse,m=n.attach,v=n.reset,g=n.immediate;if(d){var h=[a,c];c=h[0],a=h[1]}this.merged=o({},c,this.merged,a),this.hasChanged=!1;var j=m&&m(this);if(this.animations=Object.entries(this.merged).reduce((function(e,n){var r=n[0],i=n[1],a=e[r]||{},l=u.num(i),d=u.str(i)&&!i.startsWith("#")&&!/\d/.test(i)&&!O[i],m=u.arr(i),h=!l&&!m&&!d,y=u.und(c[r])?i:c[r],k=l||m||d?i:1,E=p(s,r);j&&(k=j.animations[r].parent);var w,C=a.parent,S=a.interpolation,I=f(j?k.getPayload():k),x=i;h&&(x=_({range:[0,1],output:[i,i]})(1));var P,T=S&&S.getValue(),N=!u.und(C)&&a.animatedValues.some((function(e){return!e.done})),D=!u.equ(x,T),A=!u.equ(x,a.previous),L=!u.equ(E,a.config);if(v||A&&D||L){var R;if(l||d)C=S=a.parent||new H(y);else if(m)C=S=a.parent||new z(y);else if(h){var M=a.interpolation&&a.interpolation.calc(a.parent.value);M=void 0===M||v?y:M,a.parent?(C=a.parent).setValue(0,!1):C=new H(0);var F={output:[M,i]};a.interpolation?(S=a.interpolation,a.interpolation.updateConfig(F)):S=C.interpolate(F)}return I=f(j?k.getPayload():k),w=f(C.getPayload()),v&&!h&&C.setValue(y,!1),t.hasChanged=!0,w.forEach((function(e){e.startPosition=e.value,e.lastPosition=e.value,e.lastVelocity=N?e.lastVelocity:void 0,e.lastTime=N?e.lastTime:void 0,e.startTime=B(),e.done=!1,e.animatedStyles.clear()})),p(g,r)&&C.setValue(h?k:i,!1),o({},e,((R={})[r]=o({},a,{name:r,parent:C,interpolation:S,animatedValues:w,toValues:I,previous:x,config:E,fromValues:f(C.getValue()),immediate:p(g,r),initialVelocity:b(E.velocity,0),clamp:b(E.clamp,!1),precision:b(E.precision,.01),tension:b(E.tension,170),friction:b(E.friction,26),mass:b(E.mass,1),duration:E.duration,easing:b(E.easing,(function(e){return e})),decay:E.decay}),R))}return D?e:(h&&(C.setValue(1,!1),S.updateConfig({output:[x,x]})),C.done=!0,t.hasChanged=!0,o({},e,((P={})[r]=o({},e[r],{previous:x}),P)))}),this.animations),this.hasChanged)for(var y in this.configs=Object.values(this.animations),this.values={},this.interpolations={},this.animations)this.interpolations[y]=this.animations[y].interpolation,this.values[y]=this.animations[y].interpolation.getValue();return this},t.destroy=function(){this.stop(),this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.local=0},e}(),W=function(e,t){var n=i.useRef(!1),r=i.useRef(),o=u.fun(t),c=i.useMemo((function(){var n;return r.current&&(r.current.map((function(e){return e.destroy()})),r.current=void 0),[new Array(e).fill().map((function(e,r){var c=new U,i=o?p(t,r,c):t[r];return 0===r&&(n=i.ref),c.update(i),n||c.start(),c})),n]}),[e]),a=c[0],l=c[1];r.current=a,i.useImperativeHandle(l,(function(){return{start:function(){return Promise.all(r.current.map((function(e){return new Promise((function(t){return e.start(t)}))})))},stop:function(e){return r.current.forEach((function(t){return t.stop(e)}))},get controllers(){return r.current}}}));var s=i.useMemo((function(){return function(e){return r.current.map((function(t,n){t.update(o?p(e,n,t):e[n]),l||t.start()}))}}),[e]);i.useEffect((function(){n.current?o||s(t):l||r.current.forEach((function(e){return e.start()}))})),i.useEffect((function(){return n.current=!0,function(){return r.current.forEach((function(e){return e.destroy()}))}}),[]);var d=r.current.map((function(e){return e.getValues()}));return o?[d,s,function(e){return r.current.forEach((function(t){return t.pause(e)}))}]:d},K=0,q=function(e,t){return("function"==typeof t?e.map(t):f(t)).map(String)},$=function(e){var t=e.items,n=e.keys,r=void 0===n?function(e){return e}:n,i=c(e,["items","keys"]);return t=f(void 0!==t?t:null),o({items:t,keys:q(t,r)},i)};function Y(e,t){var n=function(){if(o){if(c>=r.length)return"break";i=r[c++]}else{if((c=r.next()).done)return"break";i=c.value}var n=i.key,a=function(e){return e.key!==n};(u.und(t)||t===n)&&(e.current.instances.delete(n),e.current.transitions=e.current.transitions.filter(a),e.current.deleted=e.current.deleted.filter(a))},r=e.current.deleted,o=Array.isArray(r),c=0;for(r=o?r:r[Symbol.iterator]();;){var i;if("break"===n())break}e.current.forceUpdate()}var X=function(e){function t(t){var n;return void 0===t&&(t={}),n=e.call(this)||this,!t.transform||t.transform instanceof g||(t=v.transform(t)),n.payload=t,n}return l(t,e),t}(j),Q={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},Z="[-+]?\\d*\\.?\\d+";function J(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"\\(\\s*("+t.join(")\\s*,\\s*(")+")\\s*\\)"}var ee=new RegExp("rgb"+J(Z,Z,Z)),te=new RegExp("rgba"+J(Z,Z,Z,Z)),ne=new RegExp("hsl"+J(Z,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%")),re=new RegExp("hsla"+J(Z,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%",Z)),oe=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ce=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ie=/^#([0-9a-fA-F]{6})$/,ae=/^#([0-9a-fA-F]{8})$/;function le(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function se(e,t,n){var r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,c=le(o,r,e+1/3),i=le(o,r,e),a=le(o,r,e-1/3);return Math.round(255*c)<<24|Math.round(255*i)<<16|Math.round(255*a)<<8}function ue(e){var t=parseInt(e,10);return t<0?0:t>255?255:t}function de(e){return(parseFloat(e)%360+360)%360/360}function be(e){var t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function fe(e){var t=parseFloat(e);return t<0?0:t>100?1:t/100}function pe(e){var t,n,r="number"==typeof(t=e)?t>>>0===t&&t>=0&&t<=4294967295?t:null:(n=ie.exec(t))?parseInt(n[1]+"ff",16)>>>0:Q.hasOwnProperty(t)?Q[t]:(n=ee.exec(t))?(ue(n[1])<<24|ue(n[2])<<16|ue(n[3])<<8|255)>>>0:(n=te.exec(t))?(ue(n[1])<<24|ue(n[2])<<16|ue(n[3])<<8|be(n[4]))>>>0:(n=oe.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+"ff",16)>>>0:(n=ae.exec(t))?parseInt(n[1],16)>>>0:(n=ce.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+n[4]+n[4],16)>>>0:(n=ne.exec(t))?(255|se(de(n[1]),fe(n[2]),fe(n[3])))>>>0:(n=re.exec(t))?(se(de(n[1]),fe(n[2]),fe(n[3]))|be(n[4]))>>>0:null;return null===r?e:"rgba("+((4278190080&(r=r||0))>>>24)+", "+((16711680&r)>>>16)+", "+((65280&r)>>>8)+", "+(255&r)/255+")"}var me=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,ve=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Oe=new RegExp("("+Object.keys(Q).join("|")+")","g"),ge={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},he=["Webkit","Ms","Moz","O"];function je(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ge.hasOwnProperty(e)&&ge[e]?(""+t).trim():t+"px"}ge=Object.keys(ge).reduce((function(e,t){return he.forEach((function(n){return e[function(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}(n,t)]=e[t]})),e}),ge);var ye={};N((function(e){return new X(e)})),I("div"),C((function(e){var t=e.output.map((function(e){return e.replace(ve,pe)})).map((function(e){return e.replace(Oe,pe)})),n=t[0].match(me).map((function(){return[]}));t.forEach((function(e){e.match(me).forEach((function(e,t){return n[t].push(+e)}))}));var r=t[0].match(me).map((function(t,r){return F(o({},e,{output:n[r]}))}));return function(e){var n=0;return t[0].replace(me,(function(){return r[n++](e)})).replace(/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,(function(e,t,n,r,o){return"rgba("+Math.round(t)+", "+Math.round(n)+", "+Math.round(r)+", "+o+")"}))}})),k(Q),y((function(e,t){if(!e.nodeType||void 0===e.setAttribute)return!1;var n=t.style,r=t.children,o=t.scrollTop,i=t.scrollLeft,a=c(t,["style","children","scrollTop","scrollLeft"]),l="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName;for(var s in void 0!==o&&(e.scrollTop=o),void 0!==i&&(e.scrollLeft=i),void 0!==r&&(e.textContent=r),n)if(n.hasOwnProperty(s)){var u=0===s.indexOf("--"),d=je(s,n[s],u);"float"===s&&(s="cssFloat"),u?e.style.setProperty(s,d):e.style[s]=d}for(var b in a){var f=l?b:ye[b]||(ye[b]=b.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()})));void 0!==e.getAttribute(f)&&e.setAttribute(f,a[b])}}),(function(e){return e}));var ke,_e,Ee=(ke=function(e){return i.forwardRef((function(t,n){var r=d(),l=i.useRef(!0),s=i.useRef(null),b=i.useRef(null),f=i.useCallback((function(e){var t=s.current;s.current=new A(e,(function(){b.current&&!1===v.fn(b.current,s.current.getAnimatedValue())&&r()})),t&&t.detach()}),[]);i.useEffect((function(){return function(){l.current=!1,s.current&&s.current.detach()}}),[]),i.useImperativeHandle(n,(function(){return T(b,l,r)})),f(t);var p=s.current.getValue(),m=(p.scrollTop,p.scrollLeft,c(p,["scrollTop","scrollLeft"]));return a.createElement(e,o({},m,{ref:function(e){return b.current=(t=e,(r=n)&&(u.fun(r)?r(t):u.obj(r)&&(r.current=t)),t);var t,r}}))}))},void 0===(_e=!1)&&(_e=!0),function(e){return(u.arr(e)?e:Object.keys(e)).reduce((function(e,t){var n=_e?t[0].toLowerCase()+t.substring(1):t;return e[n]=ke(n),e}),ke)}),we=Ee(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]);t.apply=Ee,t.config={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},t.update=M,t.animated=we,t.a=we,t.interpolate=function(e,t,n){return e&&new V(e,t,n)},t.Globals=D,t.useSpring=function(e){var t=u.fun(e),n=W(1,t?e:[e]),r=n[0],o=n[1],c=n[2];return t?[r[0],o,c]:r},t.useTrail=function(e,t){var n=i.useRef(!1),r=u.fun(t),c=p(t),a=i.useRef(),l=W(e,(function(e,t){return 0===e&&(a.current=[]),a.current.push(t),o({},c,{config:p(c.config,e),attach:e>0&&function(){return a.current[e-1]}})})),s=l[0],d=l[1],b=l[2],f=i.useMemo((function(){return function(e){return d((function(t,n){e.reverse;var r=e.reverse?t+1:t-1,i=a.current[r];return o({},e,{config:p(e.config||c.config,t),attach:i&&function(){return i}})}))}}),[e,c.reverse]);return i.useEffect((function(){n.current&&!r&&f(t)})),i.useEffect((function(){n.current=!0}),[]),r?[s,f,b]:s},t.useTransition=function(e,t,n){var r=o({items:e,keys:t||function(e){return e}},n),a=$(r),l=a.lazy,s=void 0!==l&&l,u=(a.unique,a.reset),b=void 0!==u&&u,f=(a.enter,a.leave,a.update,a.onDestroyed),m=(a.keys,a.items,a.onFrame),v=a.onRest,O=a.onStart,g=a.ref,h=c(a,["lazy","unique","reset","enter","leave","update","onDestroyed","keys","items","onFrame","onRest","onStart","ref"]),j=d(),y=i.useRef(!1),k=i.useRef({mounted:!1,first:!0,deleted:[],current:{},transitions:[],prevProps:{},paused:!!r.ref,instances:!y.current&&new Map,forceUpdate:j});return i.useImperativeHandle(r.ref,(function(){return{start:function(){return Promise.all(Array.from(k.current.instances).map((function(e){var t=e[1];return new Promise((function(e){return t.start(e)}))})))},stop:function(e){return Array.from(k.current.instances).forEach((function(t){return t[1].stop(e)}))},get controllers(){return Array.from(k.current.instances).map((function(e){return e[1]}))}}})),k.current=function(e,t){for(var n=e.first,r=e.prevProps,i=c(e,["first","prevProps"]),a=$(t),l=a.items,s=a.keys,u=a.initial,d=a.from,b=a.enter,f=a.leave,m=a.update,v=a.trail,O=void 0===v?0:v,g=a.unique,h=a.config,j=a.order,y=void 0===j?["enter","leave","update"]:j,k=$(r),_=k.keys,E=k.items,w=o({},i.current),C=[].concat(i.deleted),S=Object.keys(w),B=new Set(S),I=new Set(s),x=s.filter((function(e){return!B.has(e)})),P=i.transitions.filter((function(e){return!e.destroyed&&!I.has(e.originalKey)})).map((function(e){return e.originalKey})),T=s.filter((function(e){return B.has(e)})),N=-O;y.length;)switch(y.shift()){case"enter":x.forEach((function(e,t){g&&C.find((function(t){return t.originalKey===e}))&&(C=C.filter((function(t){return t.originalKey!==e})));var r=s.indexOf(e),o=l[r],c=n&&void 0!==u?"initial":"enter";w[e]={slot:c,originalKey:e,key:g?String(e):K++,item:o,trail:N+=O,config:p(h,o,c),from:p(n&&void 0!==u?u||{}:d,o),to:p(b,o)}}));break;case"leave":P.forEach((function(e){var t=_.indexOf(e),n=E[t];C.unshift(o({},w[e],{slot:"leave",destroyed:!0,left:_[Math.max(0,t-1)],right:_[Math.min(_.length,t+1)],trail:N+=O,config:p(h,n,"leave"),to:p(f,n)})),delete w[e]}));break;case"update":T.forEach((function(e){var t=s.indexOf(e),n=l[t];w[e]=o({},w[e],{item:n,slot:"update",trail:N+=O,config:p(h,n,"update"),to:p(m,n)})}))}var D=s.map((function(e){return w[e]}));return C.forEach((function(e){var t,n=e.left,r=(e.right,c(e,["left","right"]));-1!==(t=D.findIndex((function(e){return e.originalKey===n})))&&(t+=1),t=Math.max(0,t),D=[].concat(D.slice(0,t),[r],D.slice(t))})),o({},i,{changed:x.length||P.length||T.length,first:n&&0===x.length,transitions:D,current:w,deleted:C,prevProps:t})}(k.current,r),k.current.changed&&k.current.transitions.forEach((function(e){var t=e.slot,n=e.from,r=e.to,c=e.config,i=e.trail,a=e.key,l=e.item;k.current.instances.has(a)||k.current.instances.set(a,new U);var u=k.current.instances.get(a),d=o({},h,{to:r,from:n,config:c,ref:g,onRest:function(n){k.current.mounted&&(e.destroyed&&(g||s||Y(k,a),f&&f(l)),!Array.from(k.current.instances).some((function(e){return!e[1].idle}))&&(g||s)&&k.current.deleted.length>0&&Y(k),v&&v(l,t,n))},onStart:O&&function(){return O(l,t)},onFrame:m&&function(e){return m(l,t,e)},delay:i,reset:b&&"enter"===t});u.update(d),k.current.paused||u.start()})),i.useEffect((function(){return k.current.mounted=y.current=!0,function(){k.current.mounted=y.current=!1,Array.from(k.current.instances).map((function(e){return e[1].destroy()})),k.current.instances.clear()}}),[]),k.current.transitions.map((function(e){var t=e.item,n=e.slot,r=e.key;return{item:t,key:r,state:n,props:k.current.instances.get(r).getValues()}}))},t.useChain=function(e,t,n){void 0===n&&(n=1e3);var r=i.useRef();i.useEffect((function(){u.equ(e,r.current)?e.forEach((function(e){var t=e.current;return t&&t.start()})):t?e.forEach((function(e,r){var c=e.current;if(c){var i=c.controllers;if(i.length){var a=n*t[r];i.forEach((function(e){e.queue=e.queue.map((function(e){return o({},e,{delay:e.delay+a})})),e.start()}))}}})):e.reduce((function(e,t,n){var r=t.current;return e.then((function(){return r.start()}))}),Promise.resolve()),r.current=e}))},t.useSprings=W},15:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(25),o=n(44),c=n(30);function i(e){return function(e){if(Array.isArray(e))return Object(r.a)(e)}(e)||Object(o.a)(e)||Object(c.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},153:function(e,t,n){"use strict";var r=n(5),o=n(13),c=n(0);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}t.a=function(e){var t=e.icon,n=e.size,a=void 0===n?24:n,l=Object(o.a)(e,["icon","size"]);return Object(c.cloneElement)(t,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({width:a,height:a},l))}},154:function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M18.3 5.6L9.9 16.9l-4.6-3.4-.9 1.2 5.8 4.3 9.3-12.6z"}));t.a=c},158:function(e,t,n){"use strict";e.exports=n(238)},159:function(e,t){e.exports=window.wp.wordcount},16:function(e,t){e.exports=window.regeneratorRuntime},163:function(e,t){e.exports=window.wp.shortcode},168:function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"}));t.a=c},17:function(e,t){e.exports=window.wp.keycodes},177:function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z"}));t.a=c},178:function(e,t,n){"use strict";var r=n(179);function o(){}function c(){}c.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,c,i){if(i!==r){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:c,resetWarningCache:o};return n.PropTypes=n,n}},179:function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},193:function(e,t){e.exports=window.wp.tokenList},2:function(e,t){e.exports=window.lodash},207:function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M19 8h-1V6h-5v2h-2V6H6v2H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-8c0-1.1-.9-2-2-2zm.5 10c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-8c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v8z"}));t.a=c},208:function(e,t,n){var r=n(236);e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)},e.exports.default=e.exports,e.exports.__esModule=!0},21:function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",(function(){return r}))},224:function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},234:function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.default=e.exports,e.exports.__esModule=!0,n.apply(this,arguments)}e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},235:function(e,t){e.exports=function(e,t){if(null==e)return{};var n,r,o={},c=Object.keys(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||(o[n]=e[n]);return o},e.exports.default=e.exports,e.exports.__esModule=!0},236:function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},e.exports.default=e.exports,e.exports.__esModule=!0,n(t,r)}e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},237:function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.default=e.exports,e.exports.__esModule=!0},238:function(e,t,n){"use strict";var r=n(239);e.exports=function(e,t,n){n=n||{},9===t.nodeType&&(t=r.getWindow(t));var o=n.allowHorizontalScroll,c=n.onlyScrollIfNeeded,i=n.alignWithTop,a=n.alignWithLeft,l=n.offsetTop||0,s=n.offsetLeft||0,u=n.offsetBottom||0,d=n.offsetRight||0;o=void 0===o||o;var b=r.isWindow(t),f=r.offset(e),p=r.outerHeight(e),m=r.outerWidth(e),v=void 0,O=void 0,g=void 0,h=void 0,j=void 0,y=void 0,k=void 0,_=void 0,E=void 0,w=void 0;b?(k=t,w=r.height(k),E=r.width(k),_={left:r.scrollLeft(k),top:r.scrollTop(k)},j={left:f.left-_.left-s,top:f.top-_.top-l},y={left:f.left+m-(_.left+E)+d,top:f.top+p-(_.top+w)+u},h=_):(v=r.offset(t),O=t.clientHeight,g=t.clientWidth,h={left:t.scrollLeft,top:t.scrollTop},j={left:f.left-(v.left+(parseFloat(r.css(t,"borderLeftWidth"))||0))-s,top:f.top-(v.top+(parseFloat(r.css(t,"borderTopWidth"))||0))-l},y={left:f.left+m-(v.left+g+(parseFloat(r.css(t,"borderRightWidth"))||0))+d,top:f.top+p-(v.top+O+(parseFloat(r.css(t,"borderBottomWidth"))||0))+u}),j.top<0||y.top>0?!0===i?r.scrollTop(t,h.top+j.top):!1===i?r.scrollTop(t,h.top+y.top):j.top<0?r.scrollTop(t,h.top+j.top):r.scrollTop(t,h.top+y.top):c||((i=void 0===i||!!i)?r.scrollTop(t,h.top+j.top):r.scrollTop(t,h.top+y.top)),o&&(j.left<0||y.left>0?!0===a?r.scrollLeft(t,h.left+j.left):!1===a?r.scrollLeft(t,h.left+y.left):j.left<0?r.scrollLeft(t,h.left+j.left):r.scrollLeft(t,h.left+y.left):c||((a=void 0===a||!!a)?r.scrollLeft(t,h.left+j.left):r.scrollLeft(t,h.left+y.left)))}},239:function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};function c(e,t){var n=e["page"+(t?"Y":"X")+"Offset"],r="scroll"+(t?"Top":"Left");if("number"!=typeof n){var o=e.document;"number"!=typeof(n=o.documentElement[r])&&(n=o.body[r])}return n}function i(e){return c(e)}function a(e){return c(e,!0)}function l(e){var t=function(e){var t,n=void 0,r=void 0,o=e.ownerDocument,c=o.body,i=o&&o.documentElement;return n=(t=e.getBoundingClientRect()).left,r=t.top,{left:n-=i.clientLeft||c.clientLeft||0,top:r-=i.clientTop||c.clientTop||0}}(e),n=e.ownerDocument,r=n.defaultView||n.parentWindow;return t.left+=i(r),t.top+=a(r),t}var s=new RegExp("^("+/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source+")(?!px)[a-z%]+$","i"),u=/^(top|right|bottom|left)$/,d="left",b=void 0;function f(e,t){for(var n=0;n<e.length;n++)t(e[n])}function p(e){return"border-box"===b(e,"boxSizing")}"undefined"!=typeof window&&(b=window.getComputedStyle?function(e,t,n){var r="",o=e.ownerDocument,c=n||o.defaultView.getComputedStyle(e,null);return c&&(r=c.getPropertyValue(t)||c[t]),r}:function(e,t){var n=e.currentStyle&&e.currentStyle[t];if(s.test(n)&&!u.test(t)){var r=e.style,o=r[d],c=e.runtimeStyle[d];e.runtimeStyle[d]=e.currentStyle[d],r[d]="fontSize"===t?"1em":n||0,n=r.pixelLeft+"px",r[d]=o,e.runtimeStyle[d]=c}return""===n?"auto":n});var m=["margin","border","padding"];function v(e,t,n){var r={},o=e.style,c=void 0;for(c in t)t.hasOwnProperty(c)&&(r[c]=o[c],o[c]=t[c]);for(c in n.call(e),t)t.hasOwnProperty(c)&&(o[c]=r[c])}function O(e,t,n){var r=0,o=void 0,c=void 0,i=void 0;for(c=0;c<t.length;c++)if(o=t[c])for(i=0;i<n.length;i++){var a;a="border"===o?o+n[i]+"Width":o+n[i],r+=parseFloat(b(e,a))||0}return r}function g(e){return null!=e&&e==e.window}var h={};function j(e,t,n){if(g(e))return"width"===t?h.viewportWidth(e):h.viewportHeight(e);if(9===e.nodeType)return"width"===t?h.docWidth(e):h.docHeight(e);var r="width"===t?["Left","Right"]:["Top","Bottom"],o="width"===t?e.offsetWidth:e.offsetHeight,c=(b(e),p(e)),i=0;(null==o||o<=0)&&(o=void 0,(null==(i=b(e,t))||Number(i)<0)&&(i=e.style[t]||0),i=parseFloat(i)||0),void 0===n&&(n=c?1:-1);var a=void 0!==o||c,l=o||i;if(-1===n)return a?l-O(e,["border","padding"],r):i;if(a){var s=2===n?-O(e,["border"],r):O(e,["margin"],r);return l+(1===n?0:s)}return i+O(e,m.slice(n),r)}f(["Width","Height"],(function(e){h["doc"+e]=function(t){var n=t.document;return Math.max(n.documentElement["scroll"+e],n.body["scroll"+e],h["viewport"+e](n))},h["viewport"+e]=function(t){var n="client"+e,r=t.document,o=r.body,c=r.documentElement[n];return"CSS1Compat"===r.compatMode&&c||o&&o[n]||c}}));var y={position:"absolute",visibility:"hidden",display:"block"};function k(e){var t=void 0,n=arguments;return 0!==e.offsetWidth?t=j.apply(void 0,n):v(e,y,(function(){t=j.apply(void 0,n)})),t}function _(e,t,n){var r=n;if("object"!==(void 0===t?"undefined":o(t)))return void 0!==r?("number"==typeof r&&(r+="px"),void(e.style[t]=r)):b(e,t);for(var c in t)t.hasOwnProperty(c)&&_(e,c,t[c])}f(["width","height"],(function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);h["outer"+t]=function(t,n){return t&&k(t,e,n?0:1)};var n="width"===e?["Left","Right"]:["Top","Bottom"];h[e]=function(t,r){return void 0===r?t&&k(t,e,-1):t?(b(t),p(t)&&(r+=O(t,["padding","border"],n)),_(t,e,r)):void 0}})),e.exports=r({getWindow:function(e){var t=e.ownerDocument||e;return t.defaultView||t.parentWindow},offset:function(e,t){if(void 0===t)return l(e);!function(e,t){"static"===_(e,"position")&&(e.style.position="relative");var n=l(e),r={},o=void 0,c=void 0;for(c in t)t.hasOwnProperty(c)&&(o=parseFloat(_(e,c))||0,r[c]=o+t[c]-n[c]);_(e,r)}(e,t)},isWindow:g,each:f,css:_,clone:function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);if(e.overflow)for(var n in e)e.hasOwnProperty(n)&&(t.overflow[n]=e.overflow[n]);return t},scrollLeft:function(e,t){if(g(e)){if(void 0===t)return i(e);window.scrollTo(t,a(e))}else{if(void 0===t)return e.scrollLeft;e.scrollLeft=t}},scrollTop:function(e,t){if(g(e)){if(void 0===t)return a(e);window.scrollTo(i(e),t)}else{if(void 0===t)return e.scrollTop;e.scrollTop=t}},viewportWidth:0,viewportHeight:0},h)},24:function(e,t,n){"use strict";function r(e){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return r}))},240:function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(o.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"}));t.a=c},241:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function __(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}),c=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n};t.__esModule=!0;var a=n(8),l=n(37),s=n(242),u=n(243),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={lineHeight:null},t.textarea=null,t.onResize=function(e){t.props.onResize&&t.props.onResize(e)},t.updateLineHeight=function(){t.textarea&&t.setState({lineHeight:u(t.textarea)})},t.onChange=function(e){var n=t.props.onChange;t.currentValue=e.currentTarget.value,n&&n(e)},t}return o(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props,n=t.maxRows,r=t.async;"number"==typeof n&&this.updateLineHeight(),"number"==typeof n||r?setTimeout((function(){return e.textarea&&s(e.textarea)})):this.textarea&&s(this.textarea),this.textarea&&this.textarea.addEventListener("autosize:resized",this.onResize)},t.prototype.componentWillUnmount=function(){this.textarea&&(this.textarea.removeEventListener("autosize:resized",this.onResize),s.destroy(this.textarea))},t.prototype.render=function(){var e=this,t=this.props,n=(t.onResize,t.maxRows),r=(t.onChange,t.style),o=(t.innerRef,t.children),l=i(t,["onResize","maxRows","onChange","style","innerRef","children"]),s=this.state.lineHeight,u=n&&s?s*n:null;return a.createElement("textarea",c({},l,{onChange:this.onChange,style:u?c({},r,{maxHeight:u}):r,ref:function(t){e.textarea=t,"function"==typeof e.props.innerRef?e.props.innerRef(t):e.props.innerRef&&(e.props.innerRef.current=t)}}),o)},t.prototype.componentDidUpdate=function(){this.textarea&&s.update(this.textarea)},t.defaultProps={rows:1,async:!1},t.propTypes={rows:l.number,maxRows:l.number,onResize:l.func,innerRef:l.any,async:l.bool},t}(a.Component);t.TextareaAutosize=a.forwardRef((function(e,t){return a.createElement(d,c({},e,{innerRef:t}))}))},242:function(e,t,n){var r,o;void 0===(o="function"==typeof(r=function(e,t){"use strict";var n,r,o="function"==typeof Map?new Map:(n=[],r=[],{has:function(e){return n.indexOf(e)>-1},get:function(e){return r[n.indexOf(e)]},set:function(e,t){-1===n.indexOf(e)&&(n.push(e),r.push(t))},delete:function(e){var t=n.indexOf(e);t>-1&&(n.splice(t,1),r.splice(t,1))}}),c=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(e){c=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}function i(e){var t=o.get(e);t&&t.destroy()}function a(e){var t=o.get(e);t&&t.update()}var l=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?((l=function(e){return e}).destroy=function(e){return e},l.update=function(e){return e}):((l=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],(function(e){return function(e){if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!o.has(e)){var t,n=null,r=null,i=null,a=function(){e.clientWidth!==r&&d()},l=function(t){window.removeEventListener("resize",a,!1),e.removeEventListener("input",d,!1),e.removeEventListener("keyup",d,!1),e.removeEventListener("autosize:destroy",l,!1),e.removeEventListener("autosize:update",d,!1),Object.keys(t).forEach((function(n){e.style[n]=t[n]})),o.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",l,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",d,!1),window.addEventListener("resize",a,!1),e.addEventListener("input",d,!1),e.addEventListener("autosize:update",d,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",o.set(e,{destroy:l,update:d}),"vertical"===(t=window.getComputedStyle(e,null)).resize?e.style.resize="none":"both"===t.resize&&(e.style.resize="horizontal"),n="content-box"===t.boxSizing?-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),isNaN(n)&&(n=0),d()}function s(t){var n=e.style.width;e.style.width="0px",e.offsetWidth,e.style.width=n,e.style.overflowY=t}function u(){if(0!==e.scrollHeight){var t=function(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push({node:e.parentNode,scrollTop:e.parentNode.scrollTop}),e=e.parentNode;return t}(e),o=document.documentElement&&document.documentElement.scrollTop;e.style.height="",e.style.height=e.scrollHeight+n+"px",r=e.clientWidth,t.forEach((function(e){e.node.scrollTop=e.scrollTop})),o&&(document.documentElement.scrollTop=o)}}function d(){u();var t=Math.round(parseFloat(e.style.height)),n=window.getComputedStyle(e,null),r="content-box"===n.boxSizing?Math.round(parseFloat(n.height)):e.offsetHeight;if(r<t?"hidden"===n.overflowY&&(s("scroll"),u(),r="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight):"hidden"!==n.overflowY&&(s("hidden"),u(),r="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight),i!==r){i=r;var o=c("autosize:resized");try{e.dispatchEvent(o)}catch(e){}}}}(e)})),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],i),e},l.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],a),e}),t.default=l,e.exports=t.default})?r.apply(t,[e,t]):r)||(e.exports=o)},243:function(e,t,n){var r=n(244);e.exports=function(e){var t=r(e,"line-height"),n=parseFloat(t,10);if(t===n+""){var o=e.style.lineHeight;e.style.lineHeight=t+"em",t=r(e,"line-height"),n=parseFloat(t,10),o?e.style.lineHeight=o:delete e.style.lineHeight}if(-1!==t.indexOf("pt")?(n*=4,n/=3):-1!==t.indexOf("mm")?(n*=96,n/=25.4):-1!==t.indexOf("cm")?(n*=96,n/=2.54):-1!==t.indexOf("in")?n*=96:-1!==t.indexOf("pc")&&(n*=16),n=Math.round(n),"normal"===t){var c=e.nodeName,i=document.createElement(c);i.innerHTML="&nbsp;","TEXTAREA"===c.toUpperCase()&&i.setAttribute("rows","1");var a=r(e,"font-size");i.style.fontSize=a,i.style.padding="0px",i.style.border="0px";var l=document.body;l.appendChild(i),n=i.offsetHeight,l.removeChild(i)}return n}},244:function(e,t){e.exports=function(e,t,n){return((n=window.getComputedStyle)?n(e):e.currentStyle)[t.replace(/-(\w)/gi,(function(e,t){return t.toUpperCase()}))]}},245:function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"}));t.a=c},246:function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M15.6 7.2H14v1.5h1.6c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.8 0 5.2-2.3 5.2-5.2 0-2.9-2.3-5.2-5.2-5.2zM4.7 12.4c0-2 1.7-3.7 3.7-3.7H10V7.2H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H10v-1.5H8.4c-2 0-3.7-1.7-3.7-3.7zm4.6.9h5.3v-1.5H9.3v1.5z"}));t.a=c},25:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,"a",(function(){return r}))},26:function(e,t){e.exports=window.wp.richText},262:function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M20.1 5.1L16.9 2 6.2 12.7l-1.3 4.4 4.5-1.3L20.1 5.1zM4 20.8h8v-1.5H4v1.5z"}));t.a=c},28:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",(function(){return r}))},281:function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(o.Path,{d:"M13.8 5.2H3v1.5h10.8V5.2zm-3.6 12v1.5H21v-1.5H10.2zm7.2-6H6.6v1.5h10.8v-1.5z"}));t.a=c},282:function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M13.5 6C10.5 6 8 8.5 8 11.5c0 1.1.3 2.1.9 3l-3.4 3 1 1.1 3.4-2.9c1 .9 2.2 1.4 3.6 1.4 3 0 5.5-2.5 5.5-5.5C19 8.5 16.5 6 13.5 6zm0 9.5c-2.2 0-4-1.8-4-4s1.8-4 4-4 4 1.8 4 4-1.8 4-4 4z"}));t.a=c},283:function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"}));t.a=c},284:function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"}));t.a=c},285:function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"}));t.a=c},286:function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(r.createElement)(o.Path,{d:"M6.734 16.106l2.176-2.38-1.093-1.028-3.846 4.158 3.846 4.157 1.093-1.027-2.176-2.38h2.811c1.125 0 2.25.03 3.374 0 1.428-.001 3.362-.25 4.963-1.277 1.66-1.065 2.868-2.906 2.868-5.859 0-2.479-1.327-4.896-3.65-5.93-1.82-.813-3.044-.8-4.806-.788l-.567.002v1.5c.184 0 .368 0 .553-.002 1.82-.007 2.704-.014 4.21.657 1.854.827 2.76 2.657 2.76 4.561 0 2.472-.973 3.824-2.178 4.596-1.258.807-2.864 1.04-4.163 1.04h-.02c-1.115.03-2.229 0-3.344 0H6.734z"}));t.a=c},287:function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M18.5 15v3.5H13V6.7l4.5 4.1 1-1.1-6.2-5.8-5.8 5.8 1 1.1 4-4v11.7h-6V15H4v5h16v-5z"}));t.a=c},29:function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}n.d(t,"a",(function(){return o}))},3:function(e,t){e.exports=window.wp.components},30:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(25);function o(e,t){if(e){if("string"==typeof e)return Object(r.a)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r.a)(e,t):void 0}}},31:function(e,t){e.exports=window.wp.url},32:function(e,t){e.exports=window.wp.hooks},33:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(58);function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Object(r.a)(e,t)}},34:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(62),o=n.n(r),c=n(21);function i(e,t){return!t||"object"!==o()(t)&&"function"!=typeof t?Object(c.a)(e):t}},35:function(e,t){e.exports=window.wp.dom},356:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.diffChars=function(e,t,n){return o.diff(e,t,n)},t.characterDiff=void 0;var o=new(((r=n(408))&&r.__esModule?r:{default:r}).default);t.characterDiff=o},357:function(e,t,n){"use strict";t.match=function(e,t){return l(e).some((function(e){var n=e.inverse,r="all"===e.type||t.type===e.type;if(r&&n||!r&&!n)return!1;var o=e.expressions.every((function(e){var n=e.feature,r=e.modifier,o=e.value,c=t[n];if(!c)return!1;switch(n){case"orientation":case"scan":return c.toLowerCase()===o.toLowerCase();case"width":case"height":case"device-width":case"device-height":o=d(o),c=d(c);break;case"resolution":o=u(o),c=u(c);break;case"aspect-ratio":case"device-aspect-ratio":case"device-pixel-ratio":o=s(o),c=s(c);break;case"grid":case"color":case"color-index":case"monochrome":o=parseInt(o,10)||1,c=parseInt(c,10)||0}switch(r){case"min":return c>=o;case"max":return c<=o;default:return c===o}}));return o&&!n||!o&&n}))},t.parse=l;var r=/(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i,o=/\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/,c=/^(?:(min|max)-)?(.+)/,i=/(em|rem|px|cm|mm|in|pt|pc)?$/,a=/(dpi|dpcm|dppx)?$/;function l(e){return e.split(",").map((function(e){var t=(e=e.trim()).match(r),n=t[1],i=t[2],a=t[3]||"",l={};return l.inverse=!!n&&"not"===n.toLowerCase(),l.type=i?i.toLowerCase():"all",a=a.match(/\([^\)]+\)/g)||[],l.expressions=a.map((function(e){var t=e.match(o),n=t[1].toLowerCase().match(c);return{modifier:n[1],feature:n[2],value:t[2]}})),l}))}function s(e){var t,n=Number(e);return n||(n=(t=e.match(/^(\d+)\s*\/\s*(\d+)$/))[1]/t[2]),n}function u(e){var t=parseFloat(e);switch(String(e).match(a)[1]){case"dpcm":return t/2.54;case"dppx":return 96*t;default:return t}}function d(e){var t=parseFloat(e);switch(String(e).match(i)[1]){case"em":case"rem":return 16*t;case"cm":return 96*t/2.54;case"mm":return 96*t/2.54/10;case"in":return 96*t;case"pt":return 72*t;case"pc":return 72*t/12;default:return t}}},358:function(e,t){var n=e.exports=function(e){return new r(e)};function r(e){this.value=e}function o(e,t,n){var r=[],o=[],a=!0;return function e(d){var b=n?c(d):d,f={},p=!0,m={node:b,node_:d,path:[].concat(r),parent:o[o.length-1],parents:o,key:r.slice(-1)[0],isRoot:0===r.length,level:r.length,circular:null,update:function(e,t){m.isRoot||(m.parent.node[m.key]=e),m.node=e,t&&(p=!1)},delete:function(e){delete m.parent.node[m.key],e&&(p=!1)},remove:function(e){l(m.parent.node)?m.parent.node.splice(m.key,1):delete m.parent.node[m.key],e&&(p=!1)},keys:null,before:function(e){f.before=e},after:function(e){f.after=e},pre:function(e){f.pre=e},post:function(e){f.post=e},stop:function(){a=!1},block:function(){p=!1}};if(!a)return m;function v(){if("object"==typeof m.node&&null!==m.node){m.keys&&m.node_===m.node||(m.keys=i(m.node)),m.isLeaf=0==m.keys.length;for(var e=0;e<o.length;e++)if(o[e].node_===d){m.circular=o[e];break}}else m.isLeaf=!0,m.keys=null;m.notLeaf=!m.isLeaf,m.notRoot=!m.isRoot}v();var O=t.call(m,m.node);return void 0!==O&&m.update&&m.update(O),f.before&&f.before.call(m,m.node),p?("object"!=typeof m.node||null===m.node||m.circular||(o.push(m),v(),s(m.keys,(function(t,o){r.push(t),f.pre&&f.pre.call(m,m.node[t],t);var c=e(m.node[t]);n&&u.call(m.node,t)&&(m.node[t]=c.node),c.isLast=o==m.keys.length-1,c.isFirst=0==o,f.post&&f.post.call(m,c),r.pop()})),o.pop()),f.after&&f.after.call(m,m.node),m):m}(e).node}function c(e){if("object"==typeof e&&null!==e){var t;if(l(e))t=[];else if("[object Date]"===a(e))t=new Date(e.getTime?e.getTime():e);else if(function(e){return"[object RegExp]"===a(e)}(e))t=new RegExp(e);else if(function(e){return"[object Error]"===a(e)}(e))t={message:e.message};else if(function(e){return"[object Boolean]"===a(e)}(e))t=new Boolean(e);else if(function(e){return"[object Number]"===a(e)}(e))t=new Number(e);else if(function(e){return"[object String]"===a(e)}(e))t=new String(e);else if(Object.create&&Object.getPrototypeOf)t=Object.create(Object.getPrototypeOf(e));else if(e.constructor===Object)t={};else{var n=e.constructor&&e.constructor.prototype||e.__proto__||{},r=function(){};r.prototype=n,t=new r}return s(i(e),(function(n){t[n]=e[n]})),t}return e}r.prototype.get=function(e){for(var t=this.value,n=0;n<e.length;n++){var r=e[n];if(!t||!u.call(t,r)){t=void 0;break}t=t[r]}return t},r.prototype.has=function(e){for(var t=this.value,n=0;n<e.length;n++){var r=e[n];if(!t||!u.call(t,r))return!1;t=t[r]}return!0},r.prototype.set=function(e,t){for(var n=this.value,r=0;r<e.length-1;r++){var o=e[r];u.call(n,o)||(n[o]={}),n=n[o]}return n[e[r]]=t,t},r.prototype.map=function(e){return o(this.value,e,!0)},r.prototype.forEach=function(e){return this.value=o(this.value,e,!1),this.value},r.prototype.reduce=function(e,t){var n=1===arguments.length,r=n?this.value:t;return this.forEach((function(t){this.isRoot&&n||(r=e.call(this,r,t))})),r},r.prototype.paths=function(){var e=[];return this.forEach((function(t){e.push(this.path)})),e},r.prototype.nodes=function(){var e=[];return this.forEach((function(t){e.push(this.node)})),e},r.prototype.clone=function(){var e=[],t=[];return function n(r){for(var o=0;o<e.length;o++)if(e[o]===r)return t[o];if("object"==typeof r&&null!==r){var a=c(r);return e.push(r),t.push(a),s(i(r),(function(e){a[e]=n(r[e])})),e.pop(),t.pop(),a}return r}(this.value)};var i=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};function a(e){return Object.prototype.toString.call(e)}var l=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},s=function(e,t){if(e.forEach)return e.forEach(t);for(var n=0;n<e.length;n++)t(e[n],n,e)};s(i(r.prototype),(function(e){n[e]=function(t){var n=[].slice.call(arguments,1),o=new r(t);return o[e].apply(o,n)}}));var u=Object.hasOwnProperty||function(e,t){return t in e}},37:function(e,t,n){e.exports=n(178)()},39:function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,"a",(function(){return r}))},4:function(e,t){e.exports=window.wp.data},40:function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,"a",(function(){return r}))},403:function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M9.1 9v-.5c0-.6.2-1.1.7-1.4.5-.3 1.2-.5 2-.5.7 0 1.4.1 2.1.3.7.2 1.4.5 2.1.9l.2-1.9c-.6-.3-1.2-.5-1.9-.7-.8-.1-1.6-.2-2.4-.2-1.5 0-2.7.3-3.6 1-.8.7-1.2 1.5-1.2 2.6V9h2zM20 12H4v1h8.3c.3.1.6.2.8.3.5.2.9.5 1.1.8.3.3.4.7.4 1.2 0 .7-.2 1.1-.8 1.5-.5.3-1.2.5-2.1.5-.8 0-1.6-.1-2.4-.3-.8-.2-1.5-.5-2.2-.8L7 18.1c.5.2 1.2.4 2 .6.8.2 1.6.3 2.4.3 1.7 0 3-.3 3.9-1 .9-.7 1.3-1.6 1.3-2.8 0-.9-.2-1.7-.7-2.2H20v-1z"}));t.a=c},404:function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M4 19.8h8.9v-1.5H4v1.5zm8.9-15.6H4v1.5h8.9V4.2zm-8.9 7v1.5h16v-1.5H4z"}));t.a=c},405:function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M16.4 4.2H7.6v1.5h8.9V4.2zM4 11.2v1.5h16v-1.5H4zm3.6 8.6h8.9v-1.5H7.6v1.5z"}));t.a=c},406:function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M11.1 19.8H20v-1.5h-8.9v1.5zm0-15.6v1.5H20V4.2h-8.9zM4 12.8h16v-1.5H4v1.5z"}));t.a=c},407:function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(o.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"}));t.a=c},408:function(e,t,n){"use strict";function r(){}function o(e,t,n,r,o){for(var c=0,i=t.length,a=0,l=0;c<i;c++){var s=t[c];if(s.removed){if(s.value=e.join(r.slice(l,l+s.count)),l+=s.count,c&&t[c-1].added){var u=t[c-1];t[c-1]=t[c],t[c]=u}}else{if(!s.added&&o){var d=n.slice(a,a+s.count);d=d.map((function(e,t){var n=r[l+t];return n.length>e.length?n:e})),s.value=e.join(d)}else s.value=e.join(n.slice(a,a+s.count));a+=s.count,s.added||(l+=s.count)}}var b=t[i-1];return i>1&&"string"==typeof b.value&&(b.added||b.removed)&&e.equals("",b.value)&&(t[i-2].value+=b.value,t.pop()),t}function c(e){return{newPos:e.newPos,components:e.components.slice(0)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r,r.prototype={diff:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.callback;"function"==typeof n&&(r=n,n={}),this.options=n;var i=this;function a(e){return r?(setTimeout((function(){r(void 0,e)}),0),!0):e}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e));var l=(t=this.removeEmpty(this.tokenize(t))).length,s=e.length,u=1,d=l+s,b=[{newPos:-1,components:[]}],f=this.extractCommon(b[0],t,e,0);if(b[0].newPos+1>=l&&f+1>=s)return a([{value:this.join(t),count:t.length}]);function p(){for(var n=-1*u;n<=u;n+=2){var r=void 0,d=b[n-1],f=b[n+1],p=(f?f.newPos:0)-n;d&&(b[n-1]=void 0);var m=d&&d.newPos+1<l,v=f&&0<=p&&p<s;if(m||v){if(!m||v&&d.newPos<f.newPos?(r=c(f),i.pushComponent(r.components,void 0,!0)):((r=d).newPos++,i.pushComponent(r.components,!0,void 0)),p=i.extractCommon(r,t,e,n),r.newPos+1>=l&&p+1>=s)return a(o(i,r.components,t,e,i.useLongestToken));b[n]=r}else b[n]=void 0}u++}if(r)!function e(){setTimeout((function(){if(u>d)return r();p()||e()}),0)}();else for(;u<=d;){var m=p();if(m)return m}},pushComponent:function(e,t,n){var r=e[e.length-1];r&&r.added===t&&r.removed===n?e[e.length-1]={count:r.count+1,added:t,removed:n}:e.push({count:1,added:t,removed:n})},extractCommon:function(e,t,n,r){for(var o=t.length,c=n.length,i=e.newPos,a=i-r,l=0;i+1<o&&a+1<c&&this.equals(t[i+1],n[a+1]);)i++,a++,l++;return l&&e.components.push({count:l}),e.newPos=i,a},equals:function(e,t){return this.options.comparator?this.options.comparator(e,t):e===t||this.options.ignoreCase&&e.toLowerCase()===t.toLowerCase()},removeEmpty:function(e){for(var t=[],n=0;n<e.length;n++)e[n]&&t.push(e[n]);return t},castInput:function(e){return e},tokenize:function(e){return e.split("")},join:function(e){return e.join("")}}},409:function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M18.7 3H5.3C4 3 3 4 3 5.3v13.4C3 20 4 21 5.3 21h13.4c1.3 0 2.3-1 2.3-2.3V5.3C21 4 20 3 18.7 3zm.8 15.7c0 .4-.4.8-.8.8H5.3c-.4 0-.8-.4-.8-.8V5.3c0-.4.4-.8.8-.8h13.4c.4 0 .8.4.8.8v13.4zM10 15l5-3-5-3v6z"}));t.a=c},41:function(e,t){e.exports=window.wp.deprecated},410:function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M9.737 18.011L3.98 12.255l5.734-6.28 1.107 1.012-4.103 4.494h13.3v1.5H6.828l3.97 3.97-1.06 1.06z"}));t.a=c},44:function(e,t,n){"use strict";function r(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}n.d(t,"a",(function(){return r}))},45:function(e,t){e.exports=window.wp.notices},46:function(e,t,n){"use strict";function r(e,t,n,r,o,c,i){try{var a=e[c](i),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(o,c){var i=e.apply(t,n);function a(e){r(i,o,c,a,l,"next",e)}function l(e){r(i,o,c,a,l,"throw",e)}a(void 0)}))}}n.d(t,"a",(function(){return o}))},47:function(e,t){e.exports=window.wp.keyboardShortcuts},49:function(e,t,n){"use strict";var r,o;function c(e){return[e]}function i(){var e={clear:function(){e.head=null}};return e}function a(e,t,n){var r;if(e.length!==t.length)return!1;for(r=n;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}r={},o="undefined"!=typeof WeakMap,t.a=function(e,t){var n,l;function s(){n=o?new WeakMap:i()}function u(){var n,r,o,c,i,s=arguments.length;for(c=new Array(s),o=0;o<s;o++)c[o]=arguments[o];for(i=t.apply(null,c),(n=l(i)).isUniqueByDependants||(n.lastDependants&&!a(i,n.lastDependants,0)&&n.clear(),n.lastDependants=i),r=n.head;r;){if(a(r.args,c,1))return r!==n.head&&(r.prev.next=r.next,r.next&&(r.next.prev=r.prev),r.next=n.head,r.prev=null,n.head.prev=r,n.head=r),r.val;r=r.next}return r={val:e.apply(null,c)},c[0]=null,r.args=c,n.head&&(n.head.prev=r,r.next=n.head),n.head=r,r.val}return t||(t=c),l=o?function(e){var t,o,c,a,l,s=n,u=!0;for(t=0;t<e.length;t++){if(!(l=o=e[t])||"object"!=typeof l){u=!1;break}s.has(o)?s=s.get(o):(c=new WeakMap,s.set(o,c),s=c)}return s.has(r)||((a=i()).isUniqueByDependants=u,s.set(r,a)),s.get(r)}:function(){return n},u.getDependants=t,u.clear=s,s(),u}},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,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o={},c=Object.keys(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,"a",(function(){return r}))},53:function(e,t){e.exports=window.wp.blob},542:function(e,t,n){"use strict";n.r(t),n.d(t,"__experimentalGetColorClassesAndStyles",(function(){return ba})),n.d(t,"__experimentalUseColorProps",(function(){return fa})),n.d(t,"getColorClassName",(function(){return Po})),n.d(t,"getColorObjectByAttributeValues",(function(){return Io})),n.d(t,"getColorObjectByColorValue",(function(){return xo})),n.d(t,"createCustomColorsHOC",(function(){return Ca})),n.d(t,"withColors",(function(){return Sa})),n.d(t,"__experimentalUseColors",(function(){return Ga})),n.d(t,"__experimentalGetGradientClass",(function(){return No})),n.d(t,"getGradientValueBySlug",(function(){return Do})),n.d(t,"__experimentalGetGradientObjectByGradientValue",(function(){return Ao})),n.d(t,"getGradientSlugByValue",(function(){return Lo})),n.d(t,"__experimentalUseGradient",(function(){return Ro})),n.d(t,"getFontSize",(function(){return xi})),n.d(t,"getFontSizeClass",(function(){return Ti})),n.d(t,"getFontSizeObjectByValue",(function(){return Pi})),n.d(t,"FontSizePicker",(function(){return Ni})),n.d(t,"withFontSizes",(function(){return $a})),n.d(t,"AlignmentControl",(function(){return rl})),n.d(t,"AlignmentToolbar",(function(){return ol})),n.d(t,"Autocomplete",(function(){return kl})),n.d(t,"BlockAlignmentControl",(function(){return Yr})),n.d(t,"BlockAlignmentToolbar",(function(){return Xr})),n.d(t,"__experimentalBlockFullHeightAligmentControl",(function(){return El})),n.d(t,"__experimentalBlockAlignmentMatrixControl",(function(){return wl})),n.d(t,"BlockBreadcrumb",(function(){return Bl})),n.d(t,"BlockContextProvider",(function(){return Tl})),n.d(t,"BlockControls",(function(){return Br})),n.d(t,"BlockFormatControls",(function(){return Sr})),n.d(t,"BlockColorsStyleSelector",(function(){return Ll})),n.d(t,"BlockEdit",(function(){return Fl})),n.d(t,"useBlockEditContext",(function(){return h})),n.d(t,"BlockIcon",(function(){return hl})),n.d(t,"BlockNavigationDropdown",(function(){return uf})),n.d(t,"__experimentalBlockNavigationBlockFill",(function(){return Yb})),n.d(t,"__experimentalBlockNavigationEditor",(function(){return Cf})),n.d(t,"__experimentalBlockNavigationTree",(function(){return af})),n.d(t,"__experimentalBlockVariationPicker",(function(){return Bf})),n.d(t,"__experimentalBlockVariationTransforms",(function(){return Pf})),n.d(t,"BlockVerticalAlignmentToolbar",(function(){return Hf})),n.d(t,"BlockVerticalAlignmentControl",(function(){return Vf})),n.d(t,"__experimentalBorderStyleControl",(function(){return cc})),n.d(t,"ButtonBlockerAppender",(function(){return qu})),n.d(t,"ColorPalette",(function(){return Wf})),n.d(t,"ColorPaletteControl",(function(){return Kf})),n.d(t,"ContrastChecker",(function(){return Cc})),n.d(t,"__experimentalGradientPicker",(function(){return Yf})),n.d(t,"__experimentalGradientPickerControl",(function(){return Xf})),n.d(t,"__experimentalGradientPickerPanel",(function(){return Qf})),n.d(t,"__experimentalFontAppearanceControl",(function(){return vi})),n.d(t,"__experimentalFontFamilyControl",(function(){return _i})),n.d(t,"__experimentalColorGradientControl",(function(){return Ko})),n.d(t,"__experimentalPanelColorGradientSettings",(function(){return Ec})),n.d(t,"__experimentalImageSizeControl",(function(){return Jf})),n.d(t,"InnerBlocks",(function(){return bp})),n.d(t,"__experimentalUseInnerBlocksProps",(function(){return dp})),n.d(t,"InspectorAdvancedControls",(function(){return lo})),n.d(t,"InspectorControls",(function(){return po})),n.d(t,"JustifyToolbar",(function(){return jp})),n.d(t,"JustifyContentControl",(function(){return hp})),n.d(t,"__experimentalLinkControl",(function(){return Yp})),n.d(t,"__experimentalLinkControlSearchInput",(function(){return zp})),n.d(t,"__experimentalLinkControlSearchResults",(function(){return Pp})),n.d(t,"__experimentalLinkControlSearchItem",(function(){return xp})),n.d(t,"LineHeightControl",(function(){return si})),n.d(t,"MediaReplaceFlow",(function(){return em})),n.d(t,"MediaPlaceholder",(function(){return im})),n.d(t,"MediaUpload",(function(){return Zp})),n.d(t,"MediaUploadCheck",(function(){return Jp})),n.d(t,"PanelColorSettings",(function(){return Ta})),n.d(t,"PlainText",(function(){return sm})),n.d(t,"__experimentalResponsiveBlockControl",(function(){return dm})),n.d(t,"RichText",(function(){return wf})),n.d(t,"RichTextShortcut",(function(){return bm})),n.d(t,"RichTextToolbarButton",(function(){return fm})),n.d(t,"__unstableRichTextInputEvent",(function(){return pm})),n.d(t,"ToolSelector",(function(){return vm})),n.d(t,"__experimentalUnitControl",(function(){return Gi})),n.d(t,"URLInput",(function(){return Sp})),n.d(t,"URLInputButton",(function(){return hm})),n.d(t,"URLPopover",(function(){return om})),n.d(t,"__experimentalImageURLInputUI",(function(){return _m})),n.d(t,"withColorContext",(function(){return Uf})),n.d(t,"__experimentalBlockSettingsMenuFirstItem",(function(){return Jd})),n.d(t,"__experimentalInserterMenuExtension",(function(){return Du})),n.d(t,"__experimentalPreviewOptions",(function(){return wm})),n.d(t,"__experimentalUseResizeCanvas",(function(){return Tm})),n.d(t,"BlockInspector",(function(){return Fm})),n.d(t,"BlockList",(function(){return kb})),n.d(t,"useBlockProps",(function(){return Nb})),n.d(t,"__experimentalBlock",(function(){return Gm})),n.d(t,"__experimentalLayoutStyle",(function(){return Vr})),n.d(t,"BlockMover",(function(){return ld})),n.d(t,"BlockPreview",(function(){return Js})),n.d(t,"BlockSelectionClearer",(function(){return Wm})),n.d(t,"__unstableUseBlockSelectionClearer",(function(){return Um})),n.d(t,"BlockSettingsMenu",(function(){return db})),n.d(t,"BlockSettingsMenuControls",(function(){return ab})),n.d(t,"BlockTitle",(function(){return Sl})),n.d(t,"BlockToolbar",(function(){return bb})),n.d(t,"CopyHandler",(function(){return Kd})),n.d(t,"__unstableUseClipboardHandler",(function(){return Wd})),n.d(t,"DefaultBlockAppender",(function(){return Ku})),n.d(t,"__unstableEditorStyles",(function(){return vv})),n.d(t,"Inserter",(function(){return Wu})),n.d(t,"__experimentalLibrary",(function(){return Ov})),n.d(t,"__experimentalSearchForm",(function(){return Ws})),n.d(t,"BlockEditorKeyboardShortcuts",(function(){return hv})),n.d(t,"MultiSelectScrollIntoView",(function(){return jv})),n.d(t,"NavigableToolbar",(function(){return ad})),n.d(t,"ObserveTyping",(function(){return Ev})),n.d(t,"__unstableUseTypingObserver",(function(){return _v})),n.d(t,"__unstableUseMouseMoveTypingReset",(function(){return kv})),n.d(t,"PreserveScrollInReorder",(function(){return wv})),n.d(t,"SkipToSelectedBlock",(function(){return Nm})),n.d(t,"Typewriter",(function(){return Iv})),n.d(t,"__unstableUseTypewriter",(function(){return Bv})),n.d(t,"Warning",(function(){return ss})),n.d(t,"WritingFlow",(function(){return Ls})),n.d(t,"__unstableUseCanvasClickRedirect",(function(){return Pv})),n.d(t,"useBlockDisplayInformation",(function(){return Cl})),n.d(t,"__unstableIframe",(function(){return Dv})),n.d(t,"__experimentalUseNoRecursiveRenders",(function(){return Mv})),n.d(t,"BlockEditorProvider",(function(){return Ys})),n.d(t,"__experimentalUseSimulatedMediaQuery",(function(){return Pm})),n.d(t,"__experimentalUseEditorFeature",(function(){return wo})),n.d(t,"transformStyles",(function(){return pv})),n.d(t,"validateThemeColors",(function(){return Fv})),n.d(t,"validateThemeGradients",(function(){return Vv})),n.d(t,"__experimentalGetMatchingVariation",(function(){return If})),n.d(t,"storeConfig",(function(){return jr})),n.d(t,"store",(function(){return yr})),n.d(t,"SETTINGS_DEFAULTS",(function(){return E}));var r={};n.r(r),n.d(r,"getBlockName",(function(){return Y})),n.d(r,"isBlockValid",(function(){return X})),n.d(r,"getBlockAttributes",(function(){return Q})),n.d(r,"getBlock",(function(){return Z})),n.d(r,"__unstableGetBlockWithoutInnerBlocks",(function(){return J})),n.d(r,"getBlocks",(function(){return ee})),n.d(r,"__unstableGetBlockWithBlockTree",(function(){return te})),n.d(r,"__unstableGetBlockTree",(function(){return ne})),n.d(r,"__unstableGetClientIdWithClientIdsTree",(function(){return re})),n.d(r,"__unstableGetClientIdsTree",(function(){return oe})),n.d(r,"getClientIdsOfDescendants",(function(){return ce})),n.d(r,"getClientIdsWithDescendants",(function(){return ie})),n.d(r,"getGlobalBlockCount",(function(){return ae})),n.d(r,"getBlocksByClientId",(function(){return le})),n.d(r,"getBlockCount",(function(){return se})),n.d(r,"getSelectionStart",(function(){return ue})),n.d(r,"getSelectionEnd",(function(){return de})),n.d(r,"getBlockSelectionStart",(function(){return be})),n.d(r,"getBlockSelectionEnd",(function(){return fe})),n.d(r,"getSelectedBlockCount",(function(){return pe})),n.d(r,"hasSelectedBlock",(function(){return me})),n.d(r,"getSelectedBlockClientId",(function(){return ve})),n.d(r,"getSelectedBlock",(function(){return Oe})),n.d(r,"getBlockRootClientId",(function(){return ge})),n.d(r,"getBlockParents",(function(){return he})),n.d(r,"getBlockParentsByBlockName",(function(){return je})),n.d(r,"getBlockHierarchyRootClientId",(function(){return ye})),n.d(r,"getLowestCommonAncestorWithSelectedBlock",(function(){return ke})),n.d(r,"getAdjacentBlockClientId",(function(){return _e})),n.d(r,"getPreviousBlockClientId",(function(){return Ee})),n.d(r,"getNextBlockClientId",(function(){return we})),n.d(r,"getSelectedBlocksInitialCaretPosition",(function(){return Ce})),n.d(r,"getSelectedBlockClientIds",(function(){return Se})),n.d(r,"getMultiSelectedBlockClientIds",(function(){return Be})),n.d(r,"getMultiSelectedBlocks",(function(){return Ie})),n.d(r,"getFirstMultiSelectedBlockClientId",(function(){return xe})),n.d(r,"getLastMultiSelectedBlockClientId",(function(){return Pe})),n.d(r,"isFirstMultiSelectedBlock",(function(){return Te})),n.d(r,"isBlockMultiSelected",(function(){return Ne})),n.d(r,"isAncestorMultiSelected",(function(){return De})),n.d(r,"getMultiSelectedBlocksStartClientId",(function(){return Ae})),n.d(r,"getMultiSelectedBlocksEndClientId",(function(){return Le})),n.d(r,"getBlockOrder",(function(){return Re})),n.d(r,"getBlockIndex",(function(){return Me})),n.d(r,"isBlockSelected",(function(){return Fe})),n.d(r,"hasSelectedInnerBlock",(function(){return Ve})),n.d(r,"isBlockWithinSelection",(function(){return He})),n.d(r,"hasMultiSelection",(function(){return ze})),n.d(r,"isMultiSelecting",(function(){return Ge})),n.d(r,"isSelectionEnabled",(function(){return Ue})),n.d(r,"getBlockMode",(function(){return We})),n.d(r,"isTyping",(function(){return Ke})),n.d(r,"isDraggingBlocks",(function(){return qe})),n.d(r,"getDraggedBlockClientIds",(function(){return $e})),n.d(r,"isBlockBeingDragged",(function(){return Ye})),n.d(r,"isAncestorBeingDragged",(function(){return Xe})),n.d(r,"isCaretWithinFormattedText",(function(){return Qe})),n.d(r,"getBlockInsertionPoint",(function(){return Ze})),n.d(r,"isBlockInsertionPointVisible",(function(){return Je})),n.d(r,"isValidTemplate",(function(){return et})),n.d(r,"getTemplate",(function(){return tt})),n.d(r,"getTemplateLock",(function(){return nt})),n.d(r,"canInsertBlockType",(function(){return ot})),n.d(r,"canInsertBlocks",(function(){return ct})),n.d(r,"getInserterItems",(function(){return dt})),n.d(r,"getBlockTransformItems",(function(){return bt})),n.d(r,"hasInserterItems",(function(){return ft})),n.d(r,"__experimentalGetAllowedBlocks",(function(){return pt})),n.d(r,"__experimentalGetParsedPattern",(function(){return mt})),n.d(r,"__experimentalGetAllowedPatterns",(function(){return vt})),n.d(r,"__experimentalGetPatternsByBlockTypes",(function(){return Ot})),n.d(r,"__experimentalGetPatternTransformItems",(function(){return gt})),n.d(r,"getBlockListSettings",(function(){return ht})),n.d(r,"getSettings",(function(){return jt})),n.d(r,"isLastBlockChangePersistent",(function(){return yt})),n.d(r,"__experimentalGetBlockListSettingsForBlocks",(function(){return kt})),n.d(r,"__experimentalGetParsedReusableBlock",(function(){return _t})),n.d(r,"__experimentalGetReusableBlockTitle",(function(){return Et})),n.d(r,"__unstableIsLastBlockChangeIgnored",(function(){return wt})),n.d(r,"__experimentalGetLastBlockAttributeChanges",(function(){return Ct})),n.d(r,"isNavigationMode",(function(){return Bt})),n.d(r,"hasBlockMovingClientId",(function(){return It})),n.d(r,"didAutomaticChange",(function(){return xt})),n.d(r,"isBlockHighlighted",(function(){return Pt})),n.d(r,"areInnerBlocksControlled",(function(){return Tt})),n.d(r,"__experimentalGetActiveBlockIdByBlockNames",(function(){return Nt})),n.d(r,"wasBlockJustInserted",(function(){return Dt}));var o={};n.r(o),n.d(o,"resetBlocks",(function(){return pn})),n.d(o,"validateBlocksToTemplate",(function(){return mn})),n.d(o,"resetSelection",(function(){return vn})),n.d(o,"receiveBlocks",(function(){return On})),n.d(o,"updateBlockAttributes",(function(){return gn})),n.d(o,"updateBlock",(function(){return hn})),n.d(o,"selectBlock",(function(){return jn})),n.d(o,"selectPreviousBlock",(function(){return yn})),n.d(o,"selectNextBlock",(function(){return kn})),n.d(o,"startMultiSelect",(function(){return En})),n.d(o,"stopMultiSelect",(function(){return wn})),n.d(o,"multiSelect",(function(){return Cn})),n.d(o,"clearSelectedBlock",(function(){return Sn})),n.d(o,"toggleSelection",(function(){return Bn})),n.d(o,"replaceBlocks",(function(){return xn})),n.d(o,"replaceBlock",(function(){return Pn})),n.d(o,"moveBlocksDown",(function(){return Nn})),n.d(o,"moveBlocksUp",(function(){return Dn})),n.d(o,"moveBlocksToPosition",(function(){return An})),n.d(o,"moveBlockToPosition",(function(){return Ln})),n.d(o,"insertBlock",(function(){return Rn})),n.d(o,"insertBlocks",(function(){return Mn})),n.d(o,"__unstableSetInsertionPoint",(function(){return Fn})),n.d(o,"showInsertionPoint",(function(){return Vn})),n.d(o,"hideInsertionPoint",(function(){return Hn})),n.d(o,"setTemplateValidity",(function(){return zn})),n.d(o,"synchronizeTemplate",(function(){return Gn})),n.d(o,"mergeBlocks",(function(){return Un})),n.d(o,"removeBlocks",(function(){return Wn})),n.d(o,"removeBlock",(function(){return Kn})),n.d(o,"replaceInnerBlocks",(function(){return qn})),n.d(o,"toggleBlockMode",(function(){return $n})),n.d(o,"startTyping",(function(){return Yn})),n.d(o,"stopTyping",(function(){return Xn})),n.d(o,"startDraggingBlocks",(function(){return Qn})),n.d(o,"stopDraggingBlocks",(function(){return Zn})),n.d(o,"enterFormattedText",(function(){return Jn})),n.d(o,"exitFormattedText",(function(){return er})),n.d(o,"selectionChange",(function(){return tr})),n.d(o,"insertDefaultBlock",(function(){return nr})),n.d(o,"updateBlockListSettings",(function(){return rr})),n.d(o,"updateSettings",(function(){return or})),n.d(o,"__unstableSaveReusableBlock",(function(){return cr})),n.d(o,"__unstableMarkLastChangeAsPersistent",(function(){return ir})),n.d(o,"__unstableMarkNextChangeAsNotPersistent",(function(){return ar})),n.d(o,"__unstableMarkAutomaticChange",(function(){return lr})),n.d(o,"__unstableMarkAutomaticChangeFinal",(function(){return sr})),n.d(o,"setNavigationMode",(function(){return ur})),n.d(o,"setBlockMovingClientId",(function(){return dr})),n.d(o,"duplicateBlocks",(function(){return br})),n.d(o,"insertBeforeBlock",(function(){return fr})),n.d(o,"insertAfterBlock",(function(){return pr})),n.d(o,"toggleBlockHighlight",(function(){return mr})),n.d(o,"flashBlock",(function(){return vr})),n.d(o,"setHasControlledInnerBlocks",(function(){return Or}));var c=n(26),i=n(10),a=n(5),l=n(0),s=n(12),u=n.n(s),d=n(2),b=n(14),f=n(32),p=n(11),m=n(3),v=n(4),O=Object(l.createContext)({name:"",isSelected:!1,clientId:null}),g=O.Provider;function h(){return Object(l.useContext)(O)}var j=n(13),y=n(15),k=n(1),_={insertUsage:{}},E={alignWide:!1,supportsLayout:!0,colors:[{name:Object(k.__)("Black"),slug:"black",color:"#000000"},{name:Object(k.__)("Cyan bluish gray"),slug:"cyan-bluish-gray",color:"#abb8c3"},{name:Object(k.__)("White"),slug:"white",color:"#ffffff"},{name:Object(k.__)("Pale pink"),slug:"pale-pink",color:"#f78da7"},{name:Object(k.__)("Vivid red"),slug:"vivid-red",color:"#cf2e2e"},{name:Object(k.__)("Luminous vivid orange"),slug:"luminous-vivid-orange",color:"#ff6900"},{name:Object(k.__)("Luminous vivid amber"),slug:"luminous-vivid-amber",color:"#fcb900"},{name:Object(k.__)("Light green cyan"),slug:"light-green-cyan",color:"#7bdcb5"},{name:Object(k.__)("Vivid green cyan"),slug:"vivid-green-cyan",color:"#00d084"},{name:Object(k.__)("Pale cyan blue"),slug:"pale-cyan-blue",color:"#8ed1fc"},{name:Object(k.__)("Vivid cyan blue"),slug:"vivid-cyan-blue",color:"#0693e3"},{name:Object(k.__)("Vivid purple"),slug:"vivid-purple",color:"#9b51e0"}],fontSizes:[{name:Object(k._x)("Small","font size name"),size:13,slug:"small"},{name:Object(k._x)("Normal","font size name"),size:16,slug:"normal"},{name:Object(k._x)("Medium","font size name"),size:20,slug:"medium"},{name:Object(k._x)("Large","font size name"),size:36,slug:"large"},{name:Object(k._x)("Huge","font size name"),size:42,slug:"huge"}],imageDefaultSize:"large",imageSizes:[{slug:"thumbnail",name:Object(k.__)("Thumbnail")},{slug:"medium",name:Object(k.__)("Medium")},{slug:"large",name:Object(k.__)("Large")},{slug:"full",name:Object(k.__)("Full Size")}],imageEditing:!0,maxWidth:580,allowedBlockTypes:!0,maxUploadFileSize:0,allowedMimeTypes:null,__experimentalCanUserUseUnfilteredHTML:!1,__experimentalBlockDirectory:!1,__mobileEnablePageTemplates:!1,__experimentalBlockPatterns:[],__experimentalBlockPatternCategories:[],__experimentalSpotlightEntityBlocks:[],gradients:[{name:Object(k.__)("Vivid cyan blue to vivid purple"),gradient:"linear-gradient(135deg,rgba(6,147,227,1) 0%,rgb(155,81,224) 100%)",slug:"vivid-cyan-blue-to-vivid-purple"},{name:Object(k.__)("Light green cyan to vivid green cyan"),gradient:"linear-gradient(135deg,rgb(122,220,180) 0%,rgb(0,208,130) 100%)",slug:"light-green-cyan-to-vivid-green-cyan"},{name:Object(k.__)("Luminous vivid amber to luminous vivid orange"),gradient:"linear-gradient(135deg,rgba(252,185,0,1) 0%,rgba(255,105,0,1) 100%)",slug:"luminous-vivid-amber-to-luminous-vivid-orange"},{name:Object(k.__)("Luminous vivid orange to vivid red"),gradient:"linear-gradient(135deg,rgba(255,105,0,1) 0%,rgb(207,46,46) 100%)",slug:"luminous-vivid-orange-to-vivid-red"},{name:Object(k.__)("Very light gray to cyan bluish gray"),gradient:"linear-gradient(135deg,rgb(238,238,238) 0%,rgb(169,184,195) 100%)",slug:"very-light-gray-to-cyan-bluish-gray"},{name:Object(k.__)("Cool to warm spectrum"),gradient:"linear-gradient(135deg,rgb(74,234,220) 0%,rgb(151,120,209) 20%,rgb(207,42,186) 40%,rgb(238,44,130) 60%,rgb(251,105,98) 80%,rgb(254,248,76) 100%)",slug:"cool-to-warm-spectrum"},{name:Object(k.__)("Blush light purple"),gradient:"linear-gradient(135deg,rgb(255,206,236) 0%,rgb(152,150,240) 100%)",slug:"blush-light-purple"},{name:Object(k.__)("Blush bordeaux"),gradient:"linear-gradient(135deg,rgb(254,205,165) 0%,rgb(254,45,45) 50%,rgb(107,0,62) 100%)",slug:"blush-bordeaux"},{name:Object(k.__)("Luminous dusk"),gradient:"linear-gradient(135deg,rgb(255,203,112) 0%,rgb(199,81,192) 50%,rgb(65,88,208) 100%)",slug:"luminous-dusk"},{name:Object(k.__)("Pale ocean"),gradient:"linear-gradient(135deg,rgb(255,245,203) 0%,rgb(182,227,212) 50%,rgb(51,167,181) 100%)",slug:"pale-ocean"},{name:Object(k.__)("Electric grass"),gradient:"linear-gradient(135deg,rgb(202,248,128) 0%,rgb(113,206,126) 100%)",slug:"electric-grass"},{name:Object(k.__)("Midnight"),gradient:"linear-gradient(135deg,rgb(2,3,129) 0%,rgb(40,116,252) 100%)",slug:"midnight"}]};function w(e,t,n){return[].concat(Object(y.a)(e.slice(0,n)),Object(y.a)(Object(d.castArray)(t)),Object(y.a)(e.slice(n)))}function C(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,o=Object(y.a)(e);return o.splice(t,r),w(o,e.slice(t,t+r),n)}function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function B(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?S(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function I(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=Object(a.a)({},t,[]);return e.forEach((function(e){var r=e.clientId,o=e.innerBlocks;n[t].push(r),Object.assign(n,I(o,r))})),n}function x(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.reduce((function(e,n){return Object.assign(e,Object(a.a)({},n.clientId,t),x(n.innerBlocks,n.clientId))}),{})}function P(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d.identity,n={},r=Object(y.a)(e);r.length;){var o=r.shift(),c=o.innerBlocks,i=Object(j.a)(o,["innerBlocks"]);r.push.apply(r,Object(y.a)(c)),n[i.clientId]=t(i)}return n}function T(e){return P(e,(function(e){return Object(d.omit)(e,"attributes")}))}function N(e){return P(e,(function(e){return e.attributes}))}function D(e,t){return e===t?B({},e):t}function A(e,t){return"UPDATE_BLOCK_ATTRIBUTES"===e.type&&void 0!==t&&"UPDATE_BLOCK_ATTRIBUTES"===t.type&&Object(d.isEqual)(e.clientIds,t.clientIds)&&(n=e.attributes,r=t.attributes,Object(d.isEqual)(Object(d.keys)(n),Object(d.keys)(r)));var n,r}var L=function(e){return e.reduce((function(e,t){return e[t]={},e}),{})},R=Object(d.flow)(v.combineReducers,(function(e){return function(t,n){if(t&&"SAVE_REUSABLE_BLOCK_SUCCESS"===n.type){var r=n.id,o=n.updatedId;if(r===o)return t;(t=B({},t)).attributes=Object(d.mapValues)(t.attributes,(function(e,n){return"core/block"===t.byClientId[n].name&&e.ref===r?B(B({},e),{},{ref:o}):e}))}return e(t,n)}}),(function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,r=e(t,n);if(r===t)return t;r.cache=t.cache?t.cache:{};var o=function(e){return e.reduce((function(e,n){var r=n;do{e.push(r),r=t.parents[r]}while(r&&!t.controlledInnerBlocks[r]);return e}),[])};switch(n.type){case"RESET_BLOCKS":r.cache=Object(d.mapValues)(P(n.blocks),(function(){return{}}));break;case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":var c=Object(d.keys)(P(n.blocks));n.rootClientId&&!t.controlledInnerBlocks[n.rootClientId]&&c.push(n.rootClientId),r.cache=B(B({},r.cache),L(o(c)));break;case"UPDATE_BLOCK":r.cache=B(B({},r.cache),L(o([n.clientId])));break;case"UPDATE_BLOCK_ATTRIBUTES":r.cache=B(B({},r.cache),L(o(n.clientIds)));break;case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":var i=L(o(n.replacedClientIds));r.cache=B(B(B({},Object(d.omit)(r.cache,n.replacedClientIds)),Object(d.omit)(i,n.replacedClientIds)),L(Object(d.keys)(P(n.blocks))));break;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":r.cache=B(B({},Object(d.omit)(r.cache,n.removedClientIds)),L(Object(d.difference)(o(n.clientIds),n.clientIds)));break;case"MOVE_BLOCKS_TO_POSITION":var a=Object(y.a)(n.clientIds);n.fromRootClientId&&a.push(n.fromRootClientId),n.toRootClientId&&a.push(n.toRootClientId),r.cache=B(B({},r.cache),L(o(a)));break;case"MOVE_BLOCKS_UP":case"MOVE_BLOCKS_DOWN":var l=[];n.rootClientId&&l.push(n.rootClientId),r.cache=B(B({},r.cache),L(o(l)));break;case"SAVE_REUSABLE_BLOCK_SUCCESS":var s=Object(d.keys)(Object(d.omitBy)(r.attributes,(function(e,t){return"core/block"!==r.byClientId[t].name||e.ref!==n.updatedId})));r.cache=B(B({},r.cache),L(o(s)))}return r}}),(function(e){return function(t,n){var r=function(e){for(var r=e,o=0;o<r.length;o++){var c;!t.order[r[o]]||n.keepControlledInnerBlocks&&n.keepControlledInnerBlocks[r[o]]||(r===e&&(r=Object(y.a)(r)),(c=r).push.apply(c,Object(y.a)(t.order[r[o]])))}return r};if(t)switch(n.type){case"REMOVE_BLOCKS":n=B(B({},n),{},{type:"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN",removedClientIds:r(n.clientIds)});break;case"REPLACE_BLOCKS":n=B(B({},n),{},{type:"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN",replacedClientIds:r(n.clientIds)})}return e(t,n)}}),(function(e){return function(t,n){if("REPLACE_INNER_BLOCKS"!==n.type)return e(t,n);var r={};if(Object.keys(t.controlledInnerBlocks).length)for(var o=Object(y.a)(n.blocks);o.length;){var c=o.shift(),i=c.innerBlocks,a=Object(j.a)(c,["innerBlocks"]);o.push.apply(o,Object(y.a)(i)),t.controlledInnerBlocks[a.clientId]&&(r[a.clientId]=!0)}var l=t;t.order[n.rootClientId]&&(l=e(l,{type:"REMOVE_BLOCKS",keepControlledInnerBlocks:r,clientIds:t.order[n.rootClientId]}));var s=l;return n.blocks.length&&((s=e(s,B(B({},n),{},{type:"INSERT_BLOCKS",index:0}))).order=B(B({},s.order),Object(d.reduce)(r,(function(e,n,r){return t.order[r]&&(e[r]=t.order[r]),e}),{}))),s}}),(function(e){return function(t,n){if(t&&"RESET_BLOCKS"===n.type){var r=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object(d.reduce)(t[n],(function(n,o){return r[o]?n:[].concat(Object(y.a)(n),[o],Object(y.a)(e(t,o)))}),[])}(t.order,"",t.controlledInnerBlocks),o=Object.keys(Object(d.pickBy)(t.controlledInnerBlocks));return B(B({},t),{},{byClientId:B(B({},Object(d.omit)(t.byClientId,r)),T(n.blocks)),attributes:B(B({},Object(d.omit)(t.attributes,r)),N(n.blocks)),order:B(B({},Object(d.omit)(t.order,r)),Object(d.omit)(I(n.blocks),o)),parents:B(B({},Object(d.omit)(t.parents,r)),x(n.blocks)),cache:B(B({},Object(d.omit)(t.cache,r)),Object(d.omit)(Object(d.mapValues)(P(n.blocks),(function(){return{}})),o))})}return e(t,n)}}),(function(e){var t,n=!1;return function(r,o){var c=e(r,o),i="MARK_LAST_CHANGE_AS_PERSISTENT"===o.type||n;if(r===c&&!i){var a;n="MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"===o.type;var l=null===(a=null==r?void 0:r.isPersistentChange)||void 0===a||a;return r.isPersistentChange===l?r:B(B({},c),{},{isPersistentChange:l})}return c=B(B({},c),{},{isPersistentChange:i?!n:!A(o,t)}),t=o,n="MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"===o.type,c}}),(function(e){var t=new Set(["RECEIVE_BLOCKS"]);return function(n,r){var o=e(n,r);return o!==n&&(o.isIgnoredChange=t.has(r.type)),o}}))({byClientId:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RESET_BLOCKS":return T(t.blocks);case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":return B(B({},e),T(t.blocks));case"UPDATE_BLOCK":if(!e[t.clientId])return e;var n=Object(d.omit)(t.updates,"attributes");return Object(d.isEmpty)(n)?e:B(B({},e),{},Object(a.a)({},t.clientId,B(B({},e[t.clientId]),n)));case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return t.blocks?B(B({},Object(d.omit)(e,t.replacedClientIds)),T(t.blocks)):e;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(d.omit)(e,t.removedClientIds)}return e},attributes:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RESET_BLOCKS":return N(t.blocks);case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":return B(B({},e),N(t.blocks));case"UPDATE_BLOCK":return e[t.clientId]&&t.updates.attributes?B(B({},e),{},Object(a.a)({},t.clientId,B(B({},e[t.clientId]),t.updates.attributes))):e;case"UPDATE_BLOCK_ATTRIBUTES":if(t.clientIds.every((function(t){return!e[t]})))return e;var n=t.clientIds.reduce((function(n,r){return B(B({},n),{},Object(a.a)({},r,Object(d.reduce)(t.uniqueByBlock?t.attributes[r]:t.attributes,(function(t,n,o){return n!==t[o]&&((t=D(e[r],t))[o]=n),t}),e[r])))}),{});return t.clientIds.every((function(t){return n[t]===e[t]}))?e:B(B({},e),n);case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return t.blocks?B(B({},Object(d.omit)(e,t.replacedClientIds)),N(t.blocks)):e;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(d.omit)(e,t.removedClientIds)}return e},order:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RESET_BLOCKS":return I(t.blocks);case"RECEIVE_BLOCKS":return B(B({},e),Object(d.omit)(I(t.blocks),""));case"INSERT_BLOCKS":var n=t.rootClientId,r=void 0===n?"":n,o=e[r]||[],c=I(t.blocks,r),i=t.index,l=void 0===i?o.length:i;return B(B(B({},e),c),{},Object(a.a)({},r,w(o,c[r],l)));case"MOVE_BLOCKS_TO_POSITION":var s,u=t.fromRootClientId,b=void 0===u?"":u,f=t.toRootClientId,p=void 0===f?"":f,m=t.clientIds,v=t.index,O=void 0===v?e[p].length:v;if(b===p){var g=e[p],h=g.indexOf(m[0]);return B(B({},e),{},Object(a.a)({},p,C(e[p],h,O,m.length)))}return B(B({},e),{},(s={},Object(a.a)(s,b,d.without.apply(void 0,[e[b]].concat(Object(y.a)(m)))),Object(a.a)(s,p,w(e[p],m,O)),s));case"MOVE_BLOCKS_UP":var j=t.clientIds,k=t.rootClientId,_=void 0===k?"":k,E=Object(d.first)(j),S=e[_];if(!S.length||E===Object(d.first)(S))return e;var x=S.indexOf(E);return B(B({},e),{},Object(a.a)({},_,C(S,x,x-1,j.length)));case"MOVE_BLOCKS_DOWN":var P=t.clientIds,T=t.rootClientId,N=void 0===T?"":T,D=Object(d.first)(P),A=Object(d.last)(P),L=e[N];if(!L.length||A===Object(d.last)(L))return e;var R=L.indexOf(D);return B(B({},e),{},Object(a.a)({},N,C(L,R,R+1,P.length)));case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":var M=t.clientIds;if(!t.blocks)return e;var F=I(t.blocks);return Object(d.flow)([function(e){return Object(d.omit)(e,t.replacedClientIds)},function(e){return B(B({},e),Object(d.omit)(F,""))},function(e){return Object(d.mapValues)(e,(function(e){return Object(d.reduce)(e,(function(e,t){return t===M[0]?[].concat(Object(y.a)(e),Object(y.a)(F[""])):(-1===M.indexOf(t)&&e.push(t),e)}),[])}))}])(e);case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(d.flow)([function(e){return Object(d.omit)(e,t.removedClientIds)},function(e){return Object(d.mapValues)(e,(function(e){return d.without.apply(void 0,[e].concat(Object(y.a)(t.removedClientIds)))}))}])(e)}return e},parents:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RESET_BLOCKS":return x(t.blocks);case"RECEIVE_BLOCKS":return B(B({},e),x(t.blocks));case"INSERT_BLOCKS":return B(B({},e),x(t.blocks,t.rootClientId||""));case"MOVE_BLOCKS_TO_POSITION":return B(B({},e),t.clientIds.reduce((function(e,n){return e[n]=t.toRootClientId||"",e}),{}));case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return B(B({},Object(d.omit)(e,t.replacedClientIds)),x(t.blocks,e[t.clientIds[0]]));case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(d.omit)(e,t.removedClientIds)}return e},controlledInnerBlocks:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.clientId,o=t.hasControlledInnerBlocks;return"SET_HAS_CONTROLLED_INNER_BLOCKS"===n?B(B({},e),{},Object(a.a)({},r,o)):e}});function M(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"CLEAR_SELECTED_BLOCK":return e.clientId?{}:e;case"SELECT_BLOCK":return t.clientId===e.clientId?e:{clientId:t.clientId};case"REPLACE_INNER_BLOCKS":case"INSERT_BLOCKS":return t.updateSelection&&t.blocks.length?{clientId:t.blocks[0].clientId}:e;case"REMOVE_BLOCKS":return t.clientIds&&t.clientIds.length&&-1!==t.clientIds.indexOf(e.clientId)?{}:e;case"REPLACE_BLOCKS":if(-1===t.clientIds.indexOf(e.clientId))return e;var n=t.indexToSelect||t.blocks.length-1,r=t.blocks[n];return r?r.clientId===e.clientId?e:{clientId:r.clientId}:{}}return e}function F(e,t,n){switch(t.type){case"CLEAR_SELECTED_BLOCK":case"SELECT_BLOCK":case"SELECTION_CHANGE":case"REPLACE_INNER_BLOCKS":case"INSERT_BLOCKS":case"REMOVE_BLOCKS":case"REPLACE_BLOCKS":return n}return e}var V=Object(v.combineReducers)({blocks:R,isTyping:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"START_TYPING":return!0;case"STOP_TYPING":return!1}return e},draggedBlocks:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"START_DRAGGING_BLOCKS":return t.clientIds;case"STOP_DRAGGING_BLOCKS":return[]}return e},isCaretWithinFormattedText:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ENTER_FORMATTED_TEXT":return!0;case"EXIT_FORMATTED_TEXT":return!1}return e},selection:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;switch(r.type){case"SELECTION_CHANGE":return{selectionStart:{clientId:r.clientId,attributeKey:r.attributeKey,offset:r.startOffset},selectionEnd:{clientId:r.clientId,attributeKey:r.attributeKey,offset:r.endOffset}};case"RESET_SELECTION":var o=r.selectionStart,c=r.selectionEnd;return{selectionStart:o,selectionEnd:c};case"MULTI_SELECT":var i=r.start,a=r.end;return{selectionStart:{clientId:i},selectionEnd:{clientId:a}};case"RESET_BLOCKS":var l=null==n||null===(e=n.selectionStart)||void 0===e?void 0:e.clientId,s=null==n||null===(t=n.selectionEnd)||void 0===t?void 0:t.clientId;if(!l&&!s)return n;if(!r.blocks.some((function(e){return e.clientId===l})))return{selectionStart:{},selectionEnd:{}};if(!r.blocks.some((function(e){return e.clientId===s})))return B(B({},n),{},{selectionEnd:n.selectionStart})}return{selectionStart:M(n.selectionStart,r),selectionEnd:M(n.selectionEnd,r)}},isMultiSelecting:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"START_MULTI_SELECT":return!0;case"STOP_MULTI_SELECT":return!1}return e},isSelectionEnabled:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"TOGGLE_SELECTION":return t.isSelectionEnabled}return e},initialPosition:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;return"REPLACE_BLOCKS"===t.type&&void 0!==t.initialPosition||["SELECT_BLOCK","RESET_SELECTION","INSERT_BLOCKS","REPLACE_INNER_BLOCKS"].includes(t.type)?t.initialPosition:e},blocksMode:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if("TOGGLE_BLOCK_MODE"===t.type){var n=t.clientId;return B(B({},e),{},Object(a.a)({},n,e[n]&&"html"===e[n]?"visual":"html"))}return e},blockListSettings:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"REPLACE_BLOCKS":case"REMOVE_BLOCKS":return Object(d.omit)(e,t.clientIds);case"UPDATE_BLOCK_LIST_SETTINGS":var n=t.clientId;return t.settings?Object(d.isEqual)(e[n],t.settings)?e:B(B({},e),{},Object(a.a)({},n,t.settings)):e.hasOwnProperty(n)?Object(d.omit)(e,n):e}return e},insertionPoint:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_INSERTION_POINT":case"SHOW_INSERTION_POINT":var n=t.rootClientId,r=t.index;return{rootClientId:n,index:r}}return F(e,t,null)},insertionPointVisibility:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SHOW_INSERTION_POINT":return!0;case"HIDE_INSERTION_POINT":return!1}return F(e,t,!1)},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},settings:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:E,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"UPDATE_SETTINGS":return B(B({},e),t.settings)}return e},preferences:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:_,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"INSERT_BLOCKS":case"REPLACE_BLOCKS":return t.blocks.reduce((function(e,n){var r=n.attributes,o=n.name,c=Object(p.getBlockVariations)(o),i=null==c?void 0:c.find((function(e){var t;return null===(t=e.isActive)||void 0===t?void 0:t.call(e,r,e.attributes)})),l=null!=i&&i.name?"".concat(o,"/").concat(i.name):o,s={name:l};return"core/block"===o&&(s.ref=r.ref,l+="/"+r.ref),B(B({},e),{},{insertUsage:B(B({},e.insertUsage),{},Object(a.a)({},l,{time:t.time,count:e.insertUsage[l]?e.insertUsage[l].count+1:1,insert:s}))})}),e)}return e},lastBlockAttributesChange:function(e,t){switch(t.type){case"UPDATE_BLOCK":if(!t.updates.attributes)break;return Object(a.a)({},t.clientId,t.updates.attributes);case"UPDATE_BLOCK_ATTRIBUTES":return t.clientIds.reduce((function(e,n){return B(B({},e),{},Object(a.a)({},n,t.uniqueByBlock?t.attributes[n]:t.attributes))}),{})}return null},isNavigationMode:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"INSERT_BLOCKS"!==t.type&&("SET_NAVIGATION_MODE"===t.type?t.isNavigationMode:e)},hasBlockMovingClientId:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;return"SET_BLOCK_MOVING_MODE"===t.type?t.hasBlockMovingClientId:"SET_NAVIGATION_MODE"===t.type?null:e},automaticChangeStatus:function(e,t){switch(t.type){case"MARK_AUTOMATIC_CHANGE":return"pending";case"MARK_AUTOMATIC_CHANGE_FINAL":return"pending"===e?"final":void 0;case"SELECTION_CHANGE":return"final"!==e?e:void 0;case"START_TYPING":case"STOP_TYPING":return e}},highlightedBlock:function(e,t){switch(t.type){case"TOGGLE_BLOCK_HIGHLIGHT":var n=t.clientId;return t.isHighlighted?n:e===n?null:e;case"SELECT_BLOCK":if(t.clientId!==e)return null}return e},lastBlockInserted:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;switch(n.type){case"INSERT_BLOCKS":if(!n.blocks.length)return t;var r=n.blocks[0].clientId,o=null===(e=n.meta)||void 0===e?void 0:e.source;return{clientId:r,source:o};case"RESET_BLOCKS":return{}}return t}}),H=n(63),z=n(49);function G(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return U(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?U(e,void 0):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,i=!0,a=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return i=e.done,e},e:function(e){a=!0,c=e},f:function(){try{i||null==n.return||n.return()}finally{if(a)throw c}}}}function U(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function W(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function K(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?W(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):W(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var q=Object(l.createElement)(m.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(m.Rect,{x:"0",fill:"none",width:"24",height:"24"}),Object(l.createElement)(m.G,null,Object(l.createElement)(m.Path,{d:"M19 3H5c-1.105 0-2 .895-2 2v14c0 1.105.895 2 2 2h14c1.105 0 2-.895 2-2V5c0-1.105-.895-2-2-2zM6 6h5v5H6V6zm4.5 13C9.12 19 8 17.88 8 16.5S9.12 14 10.5 14s2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5zm3-6l3-5 3 5h-6z"}))),$=[];function Y(e,t){var n=e.blocks.byClientId[t];if("web"!==l.Platform.OS&&"core/social-link"===(null==n?void 0:n.name)){var r=e.blocks.attributes[t].service;return r?"".concat("core/social-link","-").concat(r):"core/social-link"}return n?n.name:null}function X(e,t){var n=e.blocks.byClientId[t];return!!n&&n.isValid}function Q(e,t){return e.blocks.byClientId[t]?e.blocks.attributes[t]:null}var Z=Object(z.a)((function(e,t){var n=e.blocks.byClientId[t];return n?K(K({},n),{},{attributes:Q(e,t),innerBlocks:Tt(e,t)?$:ee(e,t)}):null}),(function(e,t){return[e.blocks.cache[t]]})),J=Object(z.a)((function(e,t){var n=e.blocks.byClientId[t];return n?K(K({},n),{},{attributes:Q(e,t)}):null}),(function(e,t){return[e.blocks.byClientId[t],e.blocks.attributes[t]]})),ee=Object(z.a)((function(e,t){return Object(d.map)(Re(e,t),(function(t){return Z(e,t)}))}),(function(e,t){return Object(d.map)(e.blocks.order[t||""],(function(t){return e.blocks.cache[t]}))})),te=Object(z.a)((function(e,t){var n=e.blocks.byClientId[t];return n?K(K({},n),{},{attributes:Q(e,t),innerBlocks:ne(e,t)}):null}),(function(e){return[e.blocks.byClientId,e.blocks.order,e.blocks.attributes]})),ne=Object(z.a)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Object(d.map)(Re(e,t),(function(t){return te(e,t)}))}),(function(e){return[e.blocks.byClientId,e.blocks.order,e.blocks.attributes]})),re=Object(z.a)((function(e,t){return{clientId:t,innerBlocks:oe(e,t)}}),(function(e){return[e.blocks.order]})),oe=Object(z.a)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Object(d.map)(Re(e,t),(function(t){return re(e,t)}))}),(function(e){return[e.blocks.order]})),ce=function e(t,n){return Object(d.flatMap)(n,(function(n){var r=Re(t,n);return[].concat(Object(y.a)(r),Object(y.a)(e(t,r)))}))},ie=Object(z.a)((function(e){var t=Re(e);return[].concat(Object(y.a)(t),Object(y.a)(ce(e,t)))}),(function(e){return[e.blocks.order]})),ae=Object(z.a)((function(e,t){var n=ie(e);return t?Object(d.reduce)(n,(function(n,r){return e.blocks.byClientId[r].name===t?n+1:n}),0):n.length}),(function(e){return[e.blocks.order,e.blocks.byClientId]})),le=Object(z.a)((function(e,t){return Object(d.map)(Object(d.castArray)(t),(function(t){return Z(e,t)}))}),(function(e){return[e.blocks.byClientId,e.blocks.order,e.blocks.attributes]}));function se(e,t){return Re(e,t).length}function ue(e){return e.selection.selectionStart}function de(e){return e.selection.selectionEnd}function be(e){return e.selection.selectionStart.clientId}function fe(e){return e.selection.selectionEnd.clientId}function pe(e){return Be(e).length||(e.selection.selectionStart.clientId?1:0)}function me(e){var t=e.selection,n=t.selectionStart,r=t.selectionEnd;return!!n.clientId&&n.clientId===r.clientId}function ve(e){var t=e.selection,n=t.selectionStart,r=t.selectionEnd,o=n.clientId;return o&&o===r.clientId?o:null}function Oe(e){var t=ve(e);return t?Z(e,t):null}function ge(e,t){return void 0!==e.blocks.parents[t]?e.blocks.parents[t]:null}var he=Object(z.a)((function(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=[],o=t;e.blocks.parents[o];)o=e.blocks.parents[o],r.push(o);return n?r:r.reverse()}),(function(e){return[e.blocks.parents]})),je=Object(z.a)((function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=he(e,t,r);return Object(d.map)(Object(d.filter)(Object(d.map)(o,(function(t){return{id:t,name:Y(e,t)}})),(function(e){var t=e.name;return Array.isArray(n)?n.includes(t):t===n})),(function(e){return e.id}))}),(function(e){return[e.blocks.parents]}));function ye(e,t){var n,r=t;do{n=r,r=e.blocks.parents[r]}while(r);return n}function ke(e,t){for(var n,r=ve(e),o=[].concat(Object(y.a)(he(e,t)),[t]),c=[].concat(Object(y.a)(he(e,r)),[r]),i=Math.min(o.length,c.length),a=0;a<i&&o[a]===c[a];a++)n=o[a];return n}function _e(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;if(void 0===t&&(t=ve(e)),void 0===t&&(t=n<0?xe(e):Pe(e)),!t)return null;var r=ge(e,t);if(null===r)return null;var o=e.blocks.order,c=o[r],i=c.indexOf(t),a=i+1*n;return a<0||a===c.length?null:c[a]}function Ee(e,t){return _e(e,t,-1)}function we(e,t){return _e(e,t,1)}function Ce(e){return e.initialPosition}var Se=Object(z.a)((function(e){var t=e.selection,n=t.selectionStart,r=t.selectionEnd;if(void 0===n.clientId||void 0===r.clientId)return $;if(n.clientId===r.clientId)return[n.clientId];var o=ge(e,n.clientId);if(null===o)return $;var c=Re(e,o),i=c.indexOf(n.clientId),a=c.indexOf(r.clientId);return i>a?c.slice(a,i+1):c.slice(i,a+1)}),(function(e){return[e.blocks.order,e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId]}));function Be(e){var t=e.selection,n=t.selectionStart,r=t.selectionEnd;return n.clientId===r.clientId?$:Se(e)}var Ie=Object(z.a)((function(e){var t=Be(e);return t.length?t.map((function(t){return Z(e,t)})):$}),(function(e){return[].concat(Object(y.a)(Se.getDependants(e)),[e.blocks.byClientId,e.blocks.order,e.blocks.attributes])}));function xe(e){return Object(d.first)(Be(e))||null}function Pe(e){return Object(d.last)(Be(e))||null}function Te(e,t){return xe(e)===t}function Ne(e,t){return-1!==Be(e).indexOf(t)}var De=Object(z.a)((function(e,t){for(var n=t,r=!1;n&&!r;)r=Ne(e,n=ge(e,n));return r}),(function(e){return[e.blocks.order,e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId]}));function Ae(e){var t=e.selection,n=t.selectionStart,r=t.selectionEnd;return n.clientId===r.clientId?null:n.clientId||null}function Le(e){var t=e.selection,n=t.selectionStart,r=t.selectionEnd;return n.clientId===r.clientId?null:r.clientId||null}function Re(e,t){return e.blocks.order[t||""]||$}function Me(e,t,n){return Re(e,n).indexOf(t)}function Fe(e,t){var n=e.selection,r=n.selectionStart,o=n.selectionEnd;return r.clientId===o.clientId&&r.clientId===t}function Ve(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return Object(d.some)(Re(e,t),(function(t){return Fe(e,t)||Ne(e,t)||n&&Ve(e,t,n)}))}function He(e,t){if(!t)return!1;var n=Be(e),r=n.indexOf(t);return r>-1&&r<n.length-1}function ze(e){var t=e.selection,n=t.selectionStart,r=t.selectionEnd;return n.clientId!==r.clientId}function Ge(e){return e.isMultiSelecting}function Ue(e){return e.isSelectionEnabled}function We(e,t){return e.blocksMode[t]||"visual"}function Ke(e){return e.isTyping}function qe(e){return!!e.draggedBlocks.length}function $e(e){return e.draggedBlocks}function Ye(e,t){return e.draggedBlocks.includes(t)}function Xe(e,t){if(!qe(e))return!1;var n=he(e,t);return Object(d.some)(n,(function(t){return Ye(e,t)}))}function Qe(e){return e.isCaretWithinFormattedText}function Ze(e){var t,n,r=e.insertionPoint,o=e.selection.selectionEnd;if(null!==r)return r;var c=o.clientId;return c?(t=ge(e,c)||void 0,n=Me(e,o.clientId,t)+1):n=Re(e).length,{rootClientId:t,index:n}}function Je(e){return e.insertionPointVisibility}function et(e){return e.template.isValid}function tt(e){return e.settings.template}function nt(e,t){if(!t)return e.settings.templateLock;var n=ht(e,t);return n?n.templateLock:null}var rt=function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return Object(d.isBoolean)(e)?e:Object(d.isArray)(e)?!(!e.includes("core/post-content")||null!==t)||e.includes(t):n};if(t&&"object"===Object(H.a)(t)?t=(n=t).name:n=Object(p.getBlockType)(t),!n)return!1;var c=jt(e),i=c.allowedBlockTypes,a=o(i,t,!0);if(!a)return!1;var l=!!nt(e,r);if(l)return!1;var s=ht(e,r);if(r&&void 0===s)return!1;var u=null==s?void 0:s.allowedBlocks,b=o(u,t),f=n.parent,m=Y(e,r),v=o(f,m);return null!==b&&null!==v?b||v:null!==b?b:null===v||v},ot=Object(z.a)(rt,(function(e,t,n){return[e.blockListSettings[n],e.blocks.byClientId[n],e.settings.allowedBlockTypes,e.settings.templateLock]}));function ct(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return t.every((function(t){return ot(e,Y(e,t),n)}))}function it(e,t){var n,r;return null!==(n=null===(r=e.preferences.insertUsage)||void 0===r?void 0:r[t])&&void 0!==n?n:null}var at=function(e,t,n){return!!Object(p.hasBlockSupport)(t,"inserter",!0)&&rt(e,t.name,n)},lt=function(e,t){return function(n){var r="".concat(t.id,"/").concat(n.name),o=it(e,r)||{},c=o.time,i=o.count,a=void 0===i?0:i;return K(K({},t),{},{id:r,icon:n.icon||t.icon,title:n.title||t.title,description:n.description||t.description,category:n.category||t.category,example:n.hasOwnProperty("example")?n.example:t.example,initialAttributes:K(K({},t.initialAttributes),n.attributes),innerBlocks:n.innerBlocks,keywords:n.keywords||t.keywords,frecency:st(c,a)})}},st=function(e,t){if(!e)return t;var n=Date.now()-e;switch(!0){case n<36e5:return 4*t;case n<864e5:return 2*t;case n<6048e5:return t/2;default:return t/4}},ut=function(e,t){var n=t.buildScope,r=void 0===n?"inserter":n;return function(t){var n=t.name,o=!1;Object(p.hasBlockSupport)(t.name,"multiple",!0)||(o=Object(d.some)(le(e,ie(e)),{name:t.name}));var c=it(e,n)||{},i=c.time,a=c.count,l=void 0===a?0:a,s={id:n,name:t.name,title:t.title,icon:t.icon,isDisabled:o,frecency:st(i,l)};if("transform"===r)return s;var u=t.variations.filter((function(e){var t=e.scope;return!t||t.includes("inserter")}));return K(K({},s),{},{initialAttributes:{},description:t.description,category:t.category,keywords:t.keywords,variations:u,example:t.example,utility:1})}},dt=Object(z.a)((function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=ut(e,{buildScope:"inserter"}),o=function(t){var n,r="core/block/".concat(t.id),o=_t(e,t.id);1===o.length&&(n=Object(p.getBlockType)(o[0].name));var c=it(e,r)||{},i=c.time,a=c.count,l=st(i,void 0===a?0:a);return{id:r,name:"core/block",initialAttributes:{ref:t.id},title:t.title.raw,icon:n?n.icon:q,category:"reusable",keywords:[],isDisabled:!1,utility:1,frecency:l}},c=Object(p.getBlockTypes)().filter((function(t){return at(e,t,n)})).map(r),i=rt(e,"core/block",n)?St(e).map(o):[],a=c.filter((function(e){var t=e.variations;return!(void 0===t?[]:t).some((function(e){return e.isDefault}))})),l=[],s=G(c);try{for(s.s();!(t=s.n()).done;){var u=t.value,d=u.variations,b=void 0===d?[]:d;if(b.length){var f=lt(e,u);l.push.apply(l,Object(y.a)(b.map(f)))}}}catch(e){s.e(e)}finally{s.f()}var m=function(e,t){var n=e.name.startsWith("core/"),r=t.name.startsWith("core/");return n&&r?0:n&&!r?-1:1},v=[].concat(Object(y.a)(a),l).sort(m);return[].concat(Object(y.a)(v),Object(y.a)(i))}),(function(e,t){return[e.blockListSettings[t],e.blocks.byClientId,e.blocks.order,e.preferences.insertUsage,e.settings.allowedBlockTypes,e.settings.templateLock,St(e),Object(p.getBlockTypes)()]})),bt=Object(z.a)((function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=ut(e,{buildScope:"transform"}),o=Object(p.getBlockTypes)().filter((function(t){return at(e,t,n)})).map(r),c=Object(d.mapKeys)(o,(function(e){return e.name})),i=Object(p.getPossibleBlockTransformations)(t).reduce((function(e,t){return c[null==t?void 0:t.name]&&e.push(c[t.name]),e}),[]),a=Object(d.orderBy)(i,(function(e){return c[e.name].frecency}),"desc");return a}),(function(e,t){return[e.blockListSettings[t],e.blocks.byClientId,e.preferences.insertUsage,e.settings.allowedBlockTypes,e.settings.templateLock,Object(p.getBlockTypes)()]})),ft=Object(z.a)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=Object(d.some)(Object(p.getBlockTypes)(),(function(n){return at(e,n,t)}));if(n)return!0;var r=rt(e,"core/block",t)&&St(e).length>0;return r}),(function(e,t){return[e.blockListSettings[t],e.blocks.byClientId,e.settings.allowedBlockTypes,e.settings.templateLock,St(e),Object(p.getBlockTypes)()]})),pt=Object(z.a)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(t)return Object(d.filter)(Object(p.getBlockTypes)(),(function(n){return at(e,n,t)}))}),(function(e,t){return[e.blockListSettings[t],e.blocks.byClientId,e.settings.allowedBlockTypes,e.settings.templateLock,Object(p.getBlockTypes)()]})),mt=Object(z.a)((function(e,t){var n=e.settings.__experimentalBlockPatterns.find((function(e){return e.name===t}));return n?K(K({},n),{},{blocks:Object(p.parse)(n.content)}):null}),(function(e){return[e.settings.__experimentalBlockPatterns]})),vt=Object(z.a)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=e.settings.__experimentalBlockPatterns,r=n.map((function(t){var n=t.name;return mt(e,n)})),o=Object(d.filter)(r,(function(n){return n.blocks.every((function(n){var r=n.name;return ot(e,r,t)}))}));return o}),(function(e,t){return[e.settings.__experimentalBlockPatterns,e.settings.allowedBlockTypes,e.settings.templateLock,e.blockListSettings[t],e.blocks.byClientId[t]]})),Ot=Object(z.a)((function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!t)return $;var r=vt(e,n),o=Array.isArray(t)?t:[t];return r.filter((function(e){var t,n;return null==e||null===(t=e.blockTypes)||void 0===t||null===(n=t.some)||void 0===n?void 0:n.call(t,(function(e){return o.includes(e)}))}))}),(function(e,t){return Object(y.a)(vt.getDependants(e,t))})),gt=Object(z.a)((function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!t)return $;if(t.some((function(t){var n=t.clientId;return t.innerBlocks.length||Tt(e,n)})))return $;var r=Array.from(new Set(t.map((function(e){return e.name}))));return Ot(e,r,n)}),(function(e,t){return Object(y.a)(Ot.getDependants(e,t))}));function ht(e,t){return e.blockListSettings[t]}function jt(e){return e.settings}function yt(e){return e.blocks.isPersistentChange}var kt=Object(z.a)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.reduce((function(t,n){return e.blockListSettings[n]?K(K({},t),{},Object(a.a)({},n,e.blockListSettings[n])):t}),{})}),(function(e){return[e.blockListSettings]})),_t=Object(z.a)((function(e,t){var n=Object(d.find)(St(e),(function(e){return e.id===t}));return n?Object(p.parse)("string"==typeof n.content.raw?n.content.raw:n.content):null}),(function(e){return[St(e)]})),Et=Object(z.a)((function(e,t){var n,r=Object(d.find)(St(e),(function(e){return e.id===t}));return r?null===(n=r.title)||void 0===n?void 0:n.raw:null}),(function(e){return[St(e)]}));function wt(e){return e.blocks.isIgnoredChange}function Ct(e){return e.lastBlockAttributesChange}function St(e){var t,n;return null!==(t=null==e||null===(n=e.settings)||void 0===n?void 0:n.__experimentalReusableBlocks)&&void 0!==t?t:$}function Bt(e){return e.isNavigationMode}function It(e){return e.hasBlockMovingClientId}function xt(e){return!!e.automaticChangeStatus}function Pt(e,t){return e.highlightedBlock===t}function Tt(e,t){return!!e.blocks.controlledInnerBlocks[t]}var Nt=Object(z.a)((function(e,t){if(!t.length)return null;var n=ve(e);if(t.includes(Y(e,n)))return n;var r=Be(e),o=je(e,n||r[0],t);return o?Object(d.last)(o):null}),(function(e,t){return[e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId,t]}));function Dt(e,t,n){var r=e.lastBlockInserted;return r.clientId===t&&r.source===n}var At=n(16),Lt=n.n(At),Rt=n(55),Mt=n(41),Ft=n.n(Mt),Vt={SLEEP:function(e){var t=e.duration;return new Promise((function(e){setTimeout(e,t)}))},MARK_AUTOMATIC_CHANGE_FINAL_CONTROL:Object(v.createRegistryControl)((function(e){return function(){var t=window.requestIdleCallback;(void 0===t?function(e){return setTimeout(e,100)}:t)((function(){return e.dispatch(yr).__unstableMarkAutomaticChangeFinal()}))}}))},Ht="core/block-editor";function zt(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Gt(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Gt(e,void 0):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,i=!0,a=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return i=e.done,e},e:function(e){a=!0,c=e},f:function(){try{i||null==n.return||n.return()}finally{if(a)throw c}}}}function Gt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ut(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 Wt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ut(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ut(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Kt=Lt.a.mark(fn),qt=Lt.a.mark(pn),$t=Lt.a.mark(mn),Yt=Lt.a.mark(yn),Xt=Lt.a.mark(kn),Qt=Lt.a.mark(Cn),Zt=Lt.a.mark(xn),Jt=Lt.a.mark(An),en=Lt.a.mark(Ln),tn=Lt.a.mark(Mn),nn=Lt.a.mark(Gn),rn=Lt.a.mark(Un),on=Lt.a.mark(Wn),cn=Lt.a.mark(lr),an=Lt.a.mark(ur),ln=Lt.a.mark(dr),sn=Lt.a.mark(br),un=Lt.a.mark(fr),dn=Lt.a.mark(pr),bn=Lt.a.mark(vr);function fn(){return Lt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,v.controls.select(Ht,"getBlockCount");case 2:if(0!==e.sent){e.next=7;break}return e.next=6,nr();case 6:return e.abrupt("return",e.sent);case 7:case"end":return e.stop()}}),Kt)}function pn(e){return Lt.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,{type:"RESET_BLOCKS",blocks:e};case 2:return t.delegateYield(mn(e),"t0",3);case 3:return t.abrupt("return",t.t0);case 4:case"end":return t.stop()}}),qt)}function mn(e){var t,n,r,o;return Lt.a.wrap((function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,v.controls.select(Ht,"getTemplate");case 2:return t=c.sent,c.next=5,v.controls.select(Ht,"getTemplateLock");case 5:return n=c.sent,r=!t||"all"!==n||Object(p.doBlocksMatchTemplate)(e,t),c.next=9,v.controls.select(Ht,"isValidTemplate");case 9:if(o=c.sent,r===o){c.next=14;break}return c.next=13,zn(r);case 13:return c.abrupt("return",r);case 14:case"end":return c.stop()}}),$t)}function vn(e,t,n){return{type:"RESET_SELECTION",selectionStart:e,selectionEnd:t,initialPosition:n}}function On(e){return{type:"RECEIVE_BLOCKS",blocks:e}}function gn(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{type:"UPDATE_BLOCK_ATTRIBUTES",clientIds:Object(d.castArray)(e),attributes:t,uniqueByBlock:n}}function hn(e,t){return{type:"UPDATE_BLOCK",clientId:e,updates:t}}function jn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{type:"SELECT_BLOCK",initialPosition:t,clientId:e}}function yn(e){var t;return Lt.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,v.controls.select(Ht,"getPreviousBlockClientId",e);case 2:if(!(t=n.sent)){n.next=7;break}return n.next=6,jn(t,-1);case 6:return n.abrupt("return",[t]);case 7:case"end":return n.stop()}}),Yt)}function kn(e){var t;return Lt.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,v.controls.select(Ht,"getNextBlockClientId",e);case 2:if(!(t=n.sent)){n.next=7;break}return n.next=6,jn(t);case 6:return n.abrupt("return",[t]);case 7:case"end":return n.stop()}}),Xt)}function En(){return{type:"START_MULTI_SELECT"}}function wn(){return{type:"STOP_MULTI_SELECT"}}function Cn(e,t){var n;return Lt.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,{type:"MULTI_SELECT",start:e,end:t};case 2:return r.next=4,v.controls.select(Ht,"getSelectedBlockCount");case 4:n=r.sent,Object(Rt.speak)(Object(k.sprintf)(
2
  /* translators: %s: number of selected blocks */
3
+ Object(k._n)("%s block selected.","%s blocks selected.",n),n),"assertive");case 6:case"end":return r.stop()}}),Qt)}function Sn(){return{type:"CLEAR_SELECTED_BLOCK"}}function Bn(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return{type:"TOGGLE_SELECTION",isSelectionEnabled:e}}function In(e,t){var n,r,o=null!==(n=null==t||null===(r=t.__experimentalPreferredStyleVariations)||void 0===r?void 0:r.value)&&void 0!==n?n:{};return e.map((function(e){var t,n=e.name;if(!Object(p.hasBlockSupport)(n,"defaultStylePicker",!0))return e;if(!o[n])return e;var r=null===(t=e.attributes)||void 0===t?void 0:t.className;if(null!=r&&r.includes("is-style-"))return e;var c=e.attributes,i=void 0===c?{}:c,a=o[n];return Wt(Wt({},e),{},{attributes:Wt(Wt({},i),{},{className:"".concat(r||""," is-style-").concat(a).trim()})})}))}function xn(e,t,n){var r,o,c,i,a,l=arguments;return Lt.a.wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return r=l.length>3&&void 0!==l[3]?l[3]:0,o=l.length>4?l[4]:void 0,e=Object(d.castArray)(e),s.t0=In,s.t1=Object(d.castArray)(t),s.next=7,v.controls.select(Ht,"getSettings");case 7:return s.t2=s.sent,t=(0,s.t0)(s.t1,s.t2),s.next=11,v.controls.select(Ht,"getBlockRootClientId",Object(d.first)(e));case 11:c=s.sent,i=0;case 13:if(!(i<t.length)){s.next=23;break}return a=t[i],s.next=17,v.controls.select(Ht,"canInsertBlockType",a.name,c);case 17:if(s.sent){s.next=20;break}return s.abrupt("return");case 20:i++,s.next=13;break;case 23:return s.next=25,{type:"REPLACE_BLOCKS",clientIds:e,blocks:t,time:Date.now(),indexToSelect:n,initialPosition:r,meta:o};case 25:return s.delegateYield(fn(),"t3",26);case 26:case"end":return s.stop()}}),Zt)}function Pn(e,t){return xn(e,t)}function Tn(e){return function(t,n){return{clientIds:Object(d.castArray)(t),type:e,rootClientId:n}}}var Nn=Tn("MOVE_BLOCKS_DOWN"),Dn=Tn("MOVE_BLOCKS_UP");function An(e){var t,n,r,o,c,i=arguments;return Lt.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t=i.length>1&&void 0!==i[1]?i[1]:"",n=i.length>2&&void 0!==i[2]?i[2]:"",r=i.length>3?i[3]:void 0,a.next=5,v.controls.select(Ht,"getTemplateLock",t);case 5:if("all"!==(o=a.sent)){a.next=8;break}return a.abrupt("return");case 8:if(c={type:"MOVE_BLOCKS_TO_POSITION",fromRootClientId:t,toRootClientId:n,clientIds:e,index:r},t!==n){a.next=13;break}return a.next=12,c;case 12:return a.abrupt("return");case 13:if("insert"!==o){a.next=15;break}return a.abrupt("return");case 15:return a.next=17,v.controls.select(Ht,"canInsertBlocks",e,n);case 17:if(!a.sent){a.next=21;break}return a.next=21,c;case 21:case"end":return a.stop()}}),Jt)}function Ln(e){var t,n,r,o=arguments;return Lt.a.wrap((function(c){for(;;)switch(c.prev=c.next){case 0:return t=o.length>1&&void 0!==o[1]?o[1]:"",n=o.length>2&&void 0!==o[2]?o[2]:"",r=o.length>3?o[3]:void 0,c.next=5,An([e],t,n,r);case 5:case"end":return c.stop()}}),en)}function Rn(e,t,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=arguments.length>4?arguments[4]:void 0;return Mn([e],t,n,r,0,o)}function Mn(e,t,n){var r,o,c,i,a,l,s,u=arguments;return Lt.a.wrap((function(b){for(;;)switch(b.prev=b.next){case 0:return r=!(u.length>3&&void 0!==u[3])||u[3],o=u.length>4&&void 0!==u[4]?u[4]:0,c=u.length>5?u[5]:void 0,Object(d.isObject)(o)&&(c=o,o=0,Ft()("meta argument in wp.data.dispatch('core/block-editor')",{since:"10.1",plugin:"Gutenberg",hint:"The meta argument is now the 6th argument of the function"})),b.t0=In,b.t1=Object(d.castArray)(e),b.next=8,v.controls.select(Ht,"getSettings");case 8:b.t2=b.sent,e=(0,b.t0)(b.t1,b.t2),i=[],a=zt(e),b.prev=12,a.s();case 14:if((l=a.n()).done){b.next=22;break}return s=l.value,b.next=18,v.controls.select(Ht,"canInsertBlockType",s.name,n);case 18:b.sent&&i.push(s);case 20:b.next=14;break;case 22:b.next=27;break;case 24:b.prev=24,b.t3=b.catch(12),a.e(b.t3);case 27:return b.prev=27,a.f(),b.finish(27);case 30:if(!i.length){b.next=32;break}return b.abrupt("return",{type:"INSERT_BLOCKS",blocks:i,index:t,rootClientId:n,time:Date.now(),updateSelection:r,initialPosition:r?o:null,meta:c});case 32:case"end":return b.stop()}}),tn,null,[[12,24,27,30]])}function Fn(e,t){return{type:"SET_INSERTION_POINT",rootClientId:e,index:t}}function Vn(e,t){return{type:"SHOW_INSERTION_POINT",rootClientId:e,index:t}}function Hn(){return{type:"HIDE_INSERTION_POINT"}}function zn(e){return{type:"SET_TEMPLATE_VALIDITY",isValid:e}}function Gn(){var e,t,n;return Lt.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,{type:"SYNCHRONIZE_TEMPLATE"};case 2:return r.next=4,v.controls.select(Ht,"getBlocks");case 4:return e=r.sent,r.next=7,v.controls.select(Ht,"getTemplate");case 7:return t=r.sent,n=Object(p.synchronizeBlocksWithTemplate)(e,t),r.next=11,pn(n);case 11:return r.abrupt("return",r.sent);case 12:case"end":return r.stop()}}),nn)}function Un(e,t){var n,r,o,i,a,l,s,u,b,f,m,O,g,h,j,k,_,E,w,C,S,B,I,x,P,T,N,D,A,L,R,M,F,V;return Lt.a.wrap((function(z){for(;;)switch(z.prev=z.next){case 0:return n=[e,t],z.next=3,{type:"MERGE_BLOCKS",blocks:n};case 3:return r=n[0],o=n[1],z.next=6,v.controls.select(Ht,"getBlock",r);case 6:if(i=z.sent,(a=Object(p.getBlockType)(i.name)).merge){z.next=12;break}return z.next=11,jn(i.clientId);case 11:return z.abrupt("return");case 12:return z.next=14,v.controls.select(Ht,"getBlock",o);case 14:return l=z.sent,s=Object(p.getBlockType)(l.name),z.next=18,v.controls.select(Ht,"getSelectionStart");case 18:if(u=z.sent,b=u.clientId,f=u.attributeKey,m=u.offset,O=(b===r?a:s).attributes[f],g=(b===r||b===o)&&void 0!==f&&void 0!==m&&!!O,O||("number"==typeof f?window.console.error("RichText needs an identifier prop that is the block attribute key of the attribute it controls. Its type is expected to be a string, but was ".concat(Object(H.a)(f))):window.console.error("The RichText identifier prop does not match any attributes defined by the block.")),h="†",j=Object(p.cloneBlock)(i),k=Object(p.cloneBlock)(l),g&&(E=(_=b===r?j:k).attributes[f],w=O.multiline,C=O.__unstableMultilineWrapperTags,S=O.__unstablePreserveWhiteSpace,B=Object(c.insert)(Object(c.create)({html:E,multilineTag:w,multilineWrapperTags:C,preserveWhiteSpace:S}),h,m,m),_.attributes[f]=Object(c.toHTMLString)({value:B,multilineTag:w,preserveWhiteSpace:S})),(I=i.name===l.name?[k]:Object(p.switchToBlockType)(k,i.name))&&I.length){z.next=33;break}return z.abrupt("return");case 33:if(x=a.merge(j.attributes,I[0].attributes),!g){z.next=45;break}return P=Object(d.findKey)(x,(function(e){return"string"==typeof e&&-1!==e.indexOf(h)})),T=x[P],N=a.attributes[P],D=N.multiline,A=N.__unstableMultilineWrapperTags,L=N.__unstablePreserveWhiteSpace,R=Object(c.create)({html:T,multilineTag:D,multilineWrapperTags:A,preserveWhiteSpace:L}),M=R.text.indexOf(h),F=Object(c.remove)(R,M,M+1),V=Object(c.toHTMLString)({value:F,multilineTag:D,preserveWhiteSpace:L}),x[P]=V,z.next=45,tr(i.clientId,P,M,M);case 45:return z.delegateYield(xn([i.clientId,l.clientId],[Wt(Wt({},i),{},{attributes:Wt(Wt({},i.attributes),x)})].concat(Object(y.a)(I.slice(1)))),"t0",46);case 46:case"end":return z.stop()}}),rn)}function Wn(e){var t,n,r,o,c=arguments;return Lt.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(t=!(c.length>1&&void 0!==c[1])||c[1],e&&e.length){i.next=3;break}return i.abrupt("return");case 3:return e=Object(d.castArray)(e),i.next=6,v.controls.select(Ht,"getBlockRootClientId",e[0]);case 6:return n=i.sent,i.next=9,v.controls.select(Ht,"getTemplateLock",n);case 9:if(!i.sent){i.next=12;break}return i.abrupt("return");case 12:if(!t){i.next=18;break}return i.next=15,yn(e[0]);case 15:r=i.sent,i.next=21;break;case 18:return i.next=20,v.controls.select(Ht,"getPreviousBlockClientId",e[0]);case 20:r=i.sent;case 21:return i.next=23,{type:"REMOVE_BLOCKS",clientIds:e};case 23:return i.delegateYield(fn(),"t0",24);case 24:return o=i.t0,i.abrupt("return",[r||o]);case 26:case"end":return i.stop()}}),on)}function Kn(e,t){return Wn([e],t)}function qn(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return{type:"REPLACE_INNER_BLOCKS",rootClientId:e,blocks:t,updateSelection:n,initialPosition:n?r:null,time:Date.now()}}function $n(e){return{type:"TOGGLE_BLOCK_MODE",clientId:e}}function Yn(){return{type:"START_TYPING"}}function Xn(){return{type:"STOP_TYPING"}}function Qn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return{type:"START_DRAGGING_BLOCKS",clientIds:e}}function Zn(){return{type:"STOP_DRAGGING_BLOCKS"}}function Jn(){return{type:"ENTER_FORMATTED_TEXT"}}function er(){return{type:"EXIT_FORMATTED_TEXT"}}function tr(e,t,n,r){return{type:"SELECTION_CHANGE",clientId:e,attributeKey:t,startOffset:n,endOffset:r}}function nr(e,t,n){var r=Object(p.getDefaultBlockName)();if(r)return Rn(Object(p.createBlock)(r,e),n,t)}function rr(e,t){return{type:"UPDATE_BLOCK_LIST_SETTINGS",clientId:e,settings:t}}function or(e){return{type:"UPDATE_SETTINGS",settings:e}}function cr(e,t){return{type:"SAVE_REUSABLE_BLOCK_SUCCESS",id:e,updatedId:t}}function ir(){return{type:"MARK_LAST_CHANGE_AS_PERSISTENT"}}function ar(){return{type:"MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"}}function lr(){return Lt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,{type:"MARK_AUTOMATIC_CHANGE"};case 2:return e.next=4,{type:"MARK_AUTOMATIC_CHANGE_FINAL_CONTROL"};case 4:case"end":return e.stop()}}),cn)}function sr(){return{type:"MARK_AUTOMATIC_CHANGE_FINAL"}}function ur(){var e,t=arguments;return Lt.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e=!(t.length>0&&void 0!==t[0])||t[0],n.next=3,{type:"SET_NAVIGATION_MODE",isNavigationMode:e};case 3:e?Object(Rt.speak)(Object(k.__)("You are currently in navigation mode. Navigate blocks using the Tab key and Arrow keys. Use Left and Right Arrow keys to move between nesting levels. To exit navigation mode and edit the selected block, press Enter.")):Object(Rt.speak)(Object(k.__)("You are currently in edit mode. To return to the navigation mode, press Escape."));case 4:case"end":return n.stop()}}),an)}function dr(){var e,t=arguments;return Lt.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e=t.length>0&&void 0!==t[0]?t[0]:null,n.next=3,{type:"SET_BLOCK_MOVING_MODE",hasBlockMovingClientId:e};case 3:e&&Object(Rt.speak)(Object(k.__)("Use the Tab key and Arrow keys to choose new block location. Use Left and Right Arrow keys to move between nesting levels. Once location is selected press Enter or Space to move the block."));case 4:case"end":return n.stop()}}),ln)}function br(e){var t,n,r,o,c,i,a=arguments;return Lt.a.wrap((function(l){for(;;)switch(l.prev=l.next){case 0:if(t=!(a.length>1&&void 0!==a[1])||a[1],e||e.length){l.next=3;break}return l.abrupt("return");case 3:return l.next=5,v.controls.select(Ht,"getBlocksByClientId",e);case 5:return n=l.sent,l.next=8,v.controls.select(Ht,"getBlockRootClientId",e[0]);case 8:if(r=l.sent,!Object(d.some)(n,(function(e){return!e}))){l.next=11;break}return l.abrupt("return");case 11:if(o=n.map((function(e){return e.name})),!Object(d.some)(o,(function(e){return!Object(p.hasBlockSupport)(e,"multiple",!0)}))){l.next=14;break}return l.abrupt("return");case 14:return l.next=16,v.controls.select(Ht,"getBlockIndex",Object(d.last)(Object(d.castArray)(e)),r);case 16:return c=l.sent,i=n.map((function(e){return Object(p.__experimentalCloneSanitizedBlock)(e)})),l.next=20,Mn(i,c+1,r,t);case 20:if(!(i.length>1&&t)){l.next=23;break}return l.next=23,Cn(Object(d.first)(i).clientId,Object(d.last)(i).clientId);case 23:return l.abrupt("return",i.map((function(e){return e.clientId})));case 24:case"end":return l.stop()}}),sn)}function fr(e){var t,n;return Lt.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e){r.next=2;break}return r.abrupt("return");case 2:return r.next=4,v.controls.select(Ht,"getBlockRootClientId",e);case 4:return t=r.sent,r.next=7,v.controls.select(Ht,"getTemplateLock",t);case 7:if(!r.sent){r.next=10;break}return r.abrupt("return");case 10:return r.next=12,v.controls.select(Ht,"getBlockIndex",e,t);case 12:return n=r.sent,r.next=15,nr({},t,n);case 15:return r.abrupt("return",r.sent);case 16:case"end":return r.stop()}}),un)}function pr(e){var t,n;return Lt.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e){r.next=2;break}return r.abrupt("return");case 2:return r.next=4,v.controls.select(Ht,"getBlockRootClientId",e);case 4:return t=r.sent,r.next=7,v.controls.select(Ht,"getTemplateLock",t);case 7:if(!r.sent){r.next=10;break}return r.abrupt("return");case 10:return r.next=12,v.controls.select(Ht,"getBlockIndex",e,t);case 12:return n=r.sent,r.next=15,nr({},t,n+1);case 15:return r.abrupt("return",r.sent);case 16:case"end":return r.stop()}}),dn)}function mr(e,t){return{type:"TOGGLE_BLOCK_HIGHLIGHT",clientId:e,isHighlighted:t}}function vr(e){return Lt.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,mr(e,!0);case 2:return t.next=4,{type:"SLEEP",duration:150};case 4:return t.next=6,mr(e,!1);case 6:case"end":return t.stop()}}),bn)}function Or(e,t){return{type:"SET_HAS_CONTROLLED_INNER_BLOCKS",hasControlledInnerBlocks:t,clientId:e}}function gr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function hr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gr(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var jr={reducer:V,selectors:r,actions:o,controls:Vt},yr=Object(v.createReduxStore)(Ht,hr(hr({},jr),{},{persist:["preferences"]}));function kr(){var e=h(),t=e.isSelected,n=e.clientId,r=e.name,o=Object(v.useSelect)((function(e){if(!t){var o=e(yr),c=o.getBlockName,i=o.isFirstMultiSelectedBlock,a=o.getMultiSelectedBlockClientIds;return!!i(n)&&a().every((function(e){return c(e)===r}))}}),[n,t,r]);return t||o}Object(v.registerStore)(Ht,hr(hr({},jr),{},{persist:["preferences"]}));var _r={default:Object(m.createSlotFill)("BlockControls"),block:Object(m.createSlotFill)("BlockControlsBlock"),inline:Object(m.createSlotFill)("BlockFormatControls"),other:Object(m.createSlotFill)("BlockControlsOther")};function Er(e){var t=e.group,n=void 0===t?"default":t,r=e.controls,o=e.children;if(!kr())return null;var c=_r[n].Fill;return Object(l.createElement)(m.__experimentalStyleProvider,{document:document},Object(l.createElement)(c,null,(function(e){var t=Object(d.isEmpty)(e)?null:e;return Object(l.createElement)(m.__experimentalToolbarContext.Provider,{value:t},"default"===n&&Object(l.createElement)(m.ToolbarGroup,{controls:r}),o)})))}function wr(e){var t=e.group,n=void 0===t?"default":t,r=Object(j.a)(e,["group"]),o=Object(l.useContext)(m.__experimentalToolbarContext),c=_r[n].Slot,a=Object(m.__experimentalUseSlot)(c.__unstableName);return Boolean(a.fills&&a.fills.length)?"default"===n?Object(l.createElement)(c,Object(i.a)({},r,{bubblesVirtually:!0,fillProps:o})):Object(l.createElement)(m.ToolbarGroup,null,Object(l.createElement)(c,Object(i.a)({},r,{bubblesVirtually:!0,fillProps:o}))):null}var Cr=Er;Cr.Slot=wr;var Sr=function(e){return Object(l.createElement)(Er,Object(i.a)({group:"inline"},e))};Sr.Slot=function(e){return Object(l.createElement)(wr,Object(i.a)({group:"inline"},e))};var Br=Cr,Ir=n(7),xr=Object(l.createElement)(Ir.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(Ir.Path,{d:"M4 9v6h14V9H4zm8-4.8H4v1.5h8V4.2zM4 19.8h8v-1.5H4v1.5z"})),Pr=Object(l.createElement)(Ir.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(Ir.Path,{d:"M5 15h14V9H5v6zm0 4.8h14v-1.5H5v1.5zM5 4.2v1.5h14V4.2H5z"})),Tr=Object(l.createElement)(Ir.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(Ir.Path,{d:"M6 15h14V9H6v6zm6-10.8v1.5h8V4.2h-8zm0 15.6h8v-1.5h-8v1.5z"})),Nr=Object(l.createElement)(Ir.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(Ir.Path,{d:"M5 9v6h14V9H5zm11-4.8H8v1.5h8V4.2zM8 19.8h8v-1.5H8v1.5z"})),Dr=Object(l.createElement)(Ir.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(Ir.Path,{d:"M5 4v11h14V4H5zm3 15.8h8v-1.5H8v1.5z"})),Ar={type:"default"},Lr=Object(l.createContext)(Ar);function Rr(e,t){return e.split(",").map((function(e){return".editor-styles-wrapper ".concat(e," ").concat(t)})).join(",")}var Mr=Lr.Provider;function Fr(){return Object(l.useContext)(Lr)}function Vr(e){var t=e.selector,n=e.layout,r=void 0===n?{}:n,o=r.contentSize,c=r.wideSize,i=o||c?"\n\t\t\t\t".concat(Rr(t,"> *")," {\n\t\t\t\t\tmax-width: ").concat(null!=o?o:c,";\n\t\t\t\t\tmargin-left: auto;\n\t\t\t\t\tmargin-right: auto;\n\t\t\t\t}\n\n\t\t\t\t").concat(Rr(t,'> [data-align="wide"]')," {\n\t\t\t\t\tmax-width: ").concat(null!=c?c:o,";\n\t\t\t\t}\n\n\t\t\t\t").concat(Rr(t,'> [data-align="full"]')," {\n\t\t\t\t\tmax-width: none;\n\t\t\t\t}\n\t\t\t"):"";return i+="\n\t\t".concat(Rr(t,'> [data-align="left"]')," {\n\t\t\tfloat: left;\n\t\t\tmargin-right: 2em;\n\t\t}\n\n\t\t").concat(Rr(t,'> [data-align="right"]')," {\n\t\t\tfloat: right;\n\t\t\tmargin-left: 2em;\n\t\t}\n\t"),Object(l.createElement)("style",null,i)}var Hr=["left","center","right","wide","full"],zr=["wide","full"];function Gr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Hr,t=Object(v.useSelect)((function(e){return{wideControlsEnabled:(0,e(yr).getSettings)().alignWide}}),[]),n=t.wideControlsEnabled,r=void 0!==n&&n,o=Fr(),c="default"===o.type;if(!c)return[];var i=o.alignments,a=void 0===i?Hr:i,l=e.filter((function(e){return(o.alignments||r||!zr.includes(e))&&a.includes(e)}));return l}function Ur(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 Wr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ur(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ur(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Kr={left:{icon:xr,title:Object(k.__)("Align left")},center:{icon:Pr,title:Object(k.__)("Align center")},right:{icon:Tr,title:Object(k.__)("Align right")},wide:{icon:Nr,title:Object(k.__)("Wide width")},full:{icon:Dr,title:Object(k.__)("Full width")}},qr={isAlternate:!0},$r=function(e){var t=e.value,n=e.onChange,r=e.controls,o=e.isToolbar,c=e.isCollapsed,a=void 0===c||c,s=e.isToolbarButton,u=void 0===s||s,d=Gr(r);if(0===d.length)return null;var b=Kr[t],f=Kr.center,p=o?m.ToolbarGroup:m.DropdownMenu,v=o?{isCollapsed:a}:{isToolbarButton:u};return Object(l.createElement)(p,Object(i.a)({popoverProps:qr,icon:b?b.icon:f.icon,label:Object(k.__)("Align"),toggleProps:{describedBy:Object(k.__)("Change alignment")},controls:d.map((function(e){return Wr(Wr({},Kr[e]),{},{isActive:t===e,role:a?"menuitemradio":void 0,onClick:(r=e,function(){return n(t===r?void 0:r)})});var r}))},v))};function Yr(e){return Object(l.createElement)($r,Object(i.a)({},e,{isToolbar:!1}))}function Xr(e){return Object(l.createElement)($r,Object(i.a)({},e,{isToolbar:!0}))}function Qr(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 Zr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qr(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Jr=["left","center","right","wide","full"],eo=["wide","full"];function to(e){var t,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return t=Array.isArray(e)?Jr.filter((function(t){return e.includes(t)})):!0===e?Jr:[],!r||!0===e&&!n?d.without.apply(void 0,[t].concat(eo)):t}var no=Object(b.createHigherOrderComponent)((function(e){return function(t){var n=t.name,r=Gr(to(Object(p.getBlockSupport)(n,"align"),Object(p.hasBlockSupport)(n,"alignWide",!0)));return[r.length>0&&t.isSelected&&Object(l.createElement)(Br,{key:"align-controls",group:"block"},Object(l.createElement)(Yr,{value:t.attributes.align,onChange:function(e){var n,r;e||(null===(n=Object(p.getBlockType)(t.name).attributes)||void 0===n||null===(r=n.align)||void 0===r?void 0:r.default)&&(e=""),t.setAttributes({align:e})},controls:r})),Object(l.createElement)(e,Object(i.a)({key:"edit"},t))]}}),"withToolbarControls"),ro=Object(b.createHigherOrderComponent)((function(e){return function(t){var n=t.name,r=t.attributes.align,o=Gr(to(Object(p.getBlockSupport)(n,"align"),Object(p.hasBlockSupport)(n,"alignWide",!0)));if(void 0===r)return Object(l.createElement)(e,t);var c=t.wrapperProps;return o.includes(r)&&(c=Zr(Zr({},c),{},{"data-align":r})),Object(l.createElement)(e,Object(i.a)({},t,{wrapperProps:c}))}}));Object(f.addFilter)("blocks.registerBlockType","core/align/addAttribute",(function(e){return Object(d.has)(e.attributes,["align","type"])||Object(p.hasBlockSupport)(e,"align")&&(e.attributes=Zr(Zr({},e.attributes),{},{align:{type:"string",enum:[].concat(Jr,[""])}})),e})),Object(f.addFilter)("editor.BlockListBlock","core/editor/align/with-data-align",ro),Object(f.addFilter)("editor.BlockEdit","core/editor/align/with-toolbar-controls",no),Object(f.addFilter)("blocks.getSaveContent.extraProps","core/align/addAssignedAlign",(function(e,t,n){var r=n.align;return to(Object(p.getBlockSupport)(t,"align"),Object(p.hasBlockSupport)(t,"alignWide",!0)).includes(r)&&(e.className=u()("align".concat(r),e.className)),e}));var oo=Object(m.createSlotFill)("InspectorAdvancedControls"),co=oo.Fill,io=oo.Slot;function ao(e){var t=e.children;return h().isSelected?Object(l.createElement)(m.__experimentalStyleProvider,{document:document},Object(l.createElement)(co,null,t)):null}ao.slotName="InspectorAdvancedControls",ao.Slot=io;var lo=ao,so=Object(m.createSlotFill)("InspectorControls"),uo=so.Fill,bo=so.Slot;function fo(e){var t=e.children;return kr()?Object(l.createElement)(m.__experimentalStyleProvider,{document:document},Object(l.createElement)(uo,null,t)):null}fo.Slot=bo;var po=fo;function mo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mo(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Oo=/[\s#]/g,go=Object(b.createHigherOrderComponent)((function(e){return function(t){if(Object(p.hasBlockSupport)(t.name,"anchor")&&t.isSelected){var n="web"===l.Platform.OS,r=Object(l.createElement)(m.TextControl,{className:"html-anchor-control",label:Object(k.__)("HTML anchor"),help:Object(l.createElement)(l.Fragment,null,Object(k.__)("Enter a word or two — without spaces — to make a unique web address just for this block, called an “anchor.” Then, you’ll be able to link directly to this section of your page."),Object(l.createElement)(m.ExternalLink,{href:"https://wordpress.org/support/article/page-jumps/"},Object(k.__)("Learn more about anchors"))),value:t.attributes.anchor||"",placeholder:n?null:Object(k.__)("Add an anchor"),onChange:function(e){e=e.replace(Oo,"-"),t.setAttributes({anchor:e})},autoCapitalize:"none",autoComplete:"off"});return Object(l.createElement)(l.Fragment,null,Object(l.createElement)(e,t),n&&Object(l.createElement)(lo,null,r),!n&&"core/heading"===t.name&&Object(l.createElement)(po,null,Object(l.createElement)(m.PanelBody,{title:Object(k.__)("Heading settings")},r)))}return Object(l.createElement)(e,t)}}),"withInspectorControl");function ho(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function jo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ho(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ho(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}Object(f.addFilter)("blocks.registerBlockType","core/anchor/attribute",(function(e){return Object(d.has)(e.attributes,["anchor","type"])||Object(p.hasBlockSupport)(e,"anchor")&&(e.attributes=vo(vo({},e.attributes),{},{anchor:{type:"string",source:"attribute",attribute:"id",selector:"*"}})),e})),Object(f.addFilter)("editor.BlockEdit","core/editor/anchor/with-inspector-control",go),Object(f.addFilter)("blocks.getSaveContent.extraProps","core/anchor/save-props",(function(e,t,n){return Object(p.hasBlockSupport)(t,"anchor")&&(e.id=""===n.anchor?null:n.anchor),e}));var yo=Object(b.createHigherOrderComponent)((function(e){return function(t){return Object(p.hasBlockSupport)(t.name,"customClassName",!0)&&t.isSelected?Object(l.createElement)(l.Fragment,null,Object(l.createElement)(e,t),Object(l.createElement)(lo,null,Object(l.createElement)(m.TextControl,{autoComplete:"off",label:Object(k.__)("Additional CSS class(es)"),value:t.attributes.className||"",onChange:function(e){t.setAttributes({className:""!==e?e:void 0})},help:Object(k.__)("Separate multiple classes with spaces.")}))):Object(l.createElement)(e,t)}}),"withInspectorControl");function ko(e){e="<div data-custom-class-name>".concat(e,"</div>");var t=Object(p.parseWithAttributeSchema)(e,{type:"string",source:"attribute",selector:"[data-custom-class-name] > *",attribute:"class"});return t?t.trim().split(/\s+/):[]}Object(f.addFilter)("blocks.registerBlockType","core/custom-class-name/attribute",(function(e){return Object(p.hasBlockSupport)(e,"customClassName",!0)&&(e.attributes=jo(jo({},e.attributes),{},{className:{type:"string"}})),e})),Object(f.addFilter)("editor.BlockEdit","core/editor/custom-class-name/with-inspector-control",yo),Object(f.addFilter)("blocks.getSaveContent.extraProps","core/custom-class-name/save-props",(function(e,t,n){return Object(p.hasBlockSupport)(t,"customClassName",!0)&&n.className&&(e.className=u()(e.className,n.className)),e})),Object(f.addFilter)("blocks.getBlockAttributes","core/custom-class-name/addParsedDifference",(function(e,t,n){if(Object(p.hasBlockSupport)(t,"customClassName",!0)){var r=Object(d.omit)(e,["className"]),o=Object(p.getSaveContent)(t,r),c=ko(o),i=ko(n),a=Object(d.difference)(i,c);a.length?e.className=a.join(" "):o&&delete e.className}return e})),Object(f.addFilter)("blocks.getSaveContent.extraProps","core/generated-class-name/save-props",(function(e,t){return Object(p.hasBlockSupport)(t,"className",!0)&&("string"==typeof e.className?e.className=Object(d.uniq)([Object(p.getBlockDefaultClassName)(t.name)].concat(Object(y.a)(e.className.split(" ")))).join(" ").trim():e.className=Object(p.getBlockDefaultClassName)(t.name)),e}));var _o={"color.palette":function(e){return void 0===e.colors?void 0:e.colors},"color.gradients":function(e){return void 0===e.gradients?void 0:e.gradients},"color.custom":function(e){return void 0===e.disableCustomColors?void 0:!e.disableCustomColors},"color.customGradient":function(e){return void 0===e.disableCustomGradients?void 0:!e.disableCustomGradients},"typography.fontSizes":function(e){return void 0===e.fontSizes?void 0:e.fontSizes},"typography.customFontSize":function(e){return void 0===e.disableCustomFontSizes?void 0:!e.disableCustomFontSizes},"typography.customLineHeight":function(e){return e.enableCustomLineHeight},"spacing.units":function(e){if(void 0!==e.enableCustomUnits)return!0===e.enableCustomUnits?["px","em","rem","vh","vw"]:e.enableCustomUnits},"spacing.customPadding":function(e){return e.enableCustomSpacing}};function Eo(e,t){for(var n in t)if(t[n]!==e[n])return!1;return!0}function wo(e){var t=h(),n=t.name,r=t.clientId;return Object(v.useSelect)((function(t){var o,c=t(yr),i=c.getBlockAttributes,a=(0,c.getSettings)(),l=t(p.store).getBlockType(n),s=n,u=Object(d.get)(l,["supports","__experimentalSelector"]);if(r&&Object(d.isObject)(u)){var b=i(r)||{};for(var f in u)if(Eo(b,u[f].attributes)){s=f;break}}var m="__experimentalFeatures.defaults.".concat(e),v="__experimentalFeatures.".concat(s,".").concat(e),O=null!==(o=Object(d.get)(a,v))&&void 0!==o?o:Object(d.get)(a,m);if(void 0!==O)return O;var g=_o[e]?_o[e](a):void 0;return void 0!==g?g:"typography.dropCap"===e||void 0}),[n,r,e])}var Co=n(9),So=n(59),Bo=n.n(So),Io=function(e,t,n){if(t){var r=Object(d.find)(e,{slug:t});if(r)return r}return{color:n}},xo=function(e,t){return Object(d.find)(e,{color:t})};function Po(e,t){if(e&&t)return"has-".concat(Object(d.kebabCase)(t),"-").concat(e)}var To=[];function No(e){if(e)return"has-".concat(e,"-gradient-background")}function Do(e,t){var n=Object(d.find)(e,["slug",t]);return n&&n.gradient}function Ao(e,t){return Object(d.find)(e,["gradient",t])}function Lo(e,t){var n=Ao(e,t);return n&&n.slug}function Ro(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.gradientAttribute,n=void 0===t?"gradient":t,r=e.customGradientAttribute,o=void 0===r?"customGradient":r,c=h(),i=c.clientId,s=wo("color.gradients")||To,u=Object(v.useSelect)((function(e){var t=(0,e(yr).getBlockAttributes)(i)||{};return{customGradient:t[o],gradient:t[n]}}),[i,n,o]),d=u.gradient,b=u.customGradient,f=Object(v.useDispatch)(yr),p=f.updateBlockAttributes,m=Object(l.useCallback)((function(e){var t,r,c=Lo(s,e);p(i,c?(r={},Object(a.a)(r,n,c),Object(a.a)(r,o,void 0),r):(t={},Object(a.a)(t,n,void 0),Object(a.a)(t,o,e),t))}),[s,i,p]),O=No(d);return{gradientClass:O,gradientValue:d?Do(s,d):b,setGradient:m}}function Mo(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 Fo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mo(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}
4
  // translators: first %s: the color name or value (e.g. red or #ff0000)
5
+ var Vo=Object(k.__)("(Color: %s)"),Ho=Object(k.__)("(Gradient: %s)"),zo=["colors","disableCustomColors","gradients","disableCustomGradients"];// translators: first %s: the gradient name or value (e.g. red to green or linear-gradient(135deg,rgba(6,147,227,1) 0%,rgb(155,81,224) 100%)
6
+ function Go(e){var t,n,r=e.colors,o=e.gradients,c=e.label,i=e.currentTab,a=e.colorValue,s=e.gradientValue;if("color"===i){if(a){var u=xo(r,t=a),d=u&&u.name;n=Object(k.sprintf)(Vo,d||t)}}else if("gradient"===i&&s){var b=Ao(o,t=s),f=b&&b.name;n=Object(k.sprintf)(Ho,f||t)}return Object(l.createElement)(l.Fragment,null,c,!!t&&Object(l.createElement)(m.ColorIndicator,{colorValue:t,"aria-label":n}))}function Uo(e){var t=e.colors,n=e.gradients,r=e.disableCustomColors,o=e.disableCustomGradients,c=e.className,i=e.label,a=e.onColorChange,s=e.onGradientChange,b=e.colorValue,f=e.gradientValue,p=e.clearable,v=a&&(!Object(d.isEmpty)(t)||!r),O=s&&(!Object(d.isEmpty)(n)||!o),g=Object(l.useState)(f?"gradient":!!v&&"color"),h=Object(Co.a)(g,2),j=h[0],y=h[1];return v||O?Object(l.createElement)(m.BaseControl,{className:u()("block-editor-color-gradient-control",c)},Object(l.createElement)("fieldset",null,Object(l.createElement)("legend",null,Object(l.createElement)("div",{className:"block-editor-color-gradient-control__color-indicator"},Object(l.createElement)(m.BaseControl.VisualLabel,null,Object(l.createElement)(Go,{currentTab:j,label:i,colorValue:b,gradientValue:f})))),v&&O&&Object(l.createElement)(m.ButtonGroup,{className:"block-editor-color-gradient-control__button-tabs"},Object(l.createElement)(m.Button,{isSmall:!0,isPressed:"color"===j,onClick:function(){return y("color")}},Object(k.__)("Solid")),Object(l.createElement)(m.Button,{isSmall:!0,isPressed:"gradient"===j,onClick:function(){return y("gradient")}},Object(k.__)("Gradient"))),("color"===j||!O)&&Object(l.createElement)(m.ColorPalette,{value:b,onChange:O?function(e){a(e),s()}:a,colors:t,disableCustomColors:r,clearable:p}),("gradient"===j||!v)&&Object(l.createElement)(m.__experimentalGradientPicker,{value:f,onChange:v?function(e){s(e),a()}:s,gradients:n,disableCustomGradients:o,clearable:p}))):null}function Wo(e){var t={};return t.colors=wo("color.palette"),t.gradients=wo("color.gradients"),t.disableCustomColors=!wo("color.custom"),t.disableCustomGradients=!wo("color.customGradient"),Object(l.createElement)(Uo,Fo(Fo({},t),e))}var Ko=function(e){return Object(d.every)(zo,(function(t){return e.hasOwnProperty(t)}))?Object(l.createElement)(Uo,e):Object(l.createElement)(Wo,e)},qo=function e(t){if(!Object(d.isObject)(t))return t;var n=Object(d.pickBy)(Object(d.mapValues)(t,e),d.identity);return Object(d.isEqual)(n,{})?void 0:n};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 Yo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$o(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Xo=[];function Qo(e){var t,n=e.attributes,r=n.borderColor,o=n.style,c=e.setAttributes,i=wo("color.palette")||Xo,a=!wo("color.custom"),s=!wo("color.customGradient");return Object(l.createElement)(Ko,{label:Object(k.__)("Border color"),value:r||(null==o||null===(t=o.border)||void 0===t?void 0:t.color),colors:i,gradients:void 0,disableCustomColors:a,disableCustomGradients:s,onColorChange:function(e){var t=xo(i,e),n=Yo(Yo({},o),{},{border:Yo(Yo({},null==o?void 0:o.border),{},{color:null!=t&&t.slug?void 0:e})}),r=null!=t&&t.slug?t.slug:void 0;c({style:qo(n),borderColor:r})}})}function Zo(e,t,n){var r;if(!fc(t,"color")||pc(t))return e;var o=n.borderColor,c=n.style,i=Po("border-color",o),l=u()(e.className,Object(a.a)({"has-border-color":o||(null==c||null===(r=c.border)||void 0===r?void 0:r.color)},i,!!i));return e.className=l||void 0,e}var Jo=Object(b.createHigherOrderComponent)((function(e){return function(t){var n,r,o=t.name,c=t.attributes.borderColor,a=wo("color.palette")||Xo;if(!fc(o,"color")||pc(o))return Object(l.createElement)(e,t);var s={borderColor:c?null===(n=Io(a,c))||void 0===n?void 0:n.color:void 0},u=t.wrapperProps;return u=Yo(Yo({},t.wrapperProps),{},{style:Yo(Yo({},s),null===(r=t.wrapperProps)||void 0===r?void 0:r.style)}),Object(l.createElement)(e,Object(i.a)({},t,{wrapperProps:u}))}}));function ec(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 tc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ec(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ec(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function nc(e){var t,n=e.attributes.style,r=e.setAttributes;return Object(l.createElement)(m.RangeControl,{value:null==n||null===(t=n.border)||void 0===t?void 0:t.radius,label:Object(k.__)("Border radius"),min:0,max:50,initialPosition:0,allowReset:!0,onChange:function(e){var t=tc(tc({},n),{},{border:tc(tc({},null==n?void 0:n.border),{},{radius:e})});void 0===e&&(t=qo(t)),r({style:t})}})}Object(f.addFilter)("blocks.registerBlockType","core/border/addAttributes",(function(e){return fc(e,"color")?e.attributes.borderColor?e:Yo(Yo({},e),{},{attributes:Yo(Yo({},e.attributes),{},{borderColor:{type:"string"}})}):e})),Object(f.addFilter)("blocks.getSaveContent.extraProps","core/border/addSaveProps",Zo),Object(f.addFilter)("blocks.registerBlockType","core/border/addEditProps",(function(e){if(!fc(e,"color")||pc(e))return e;var t=e.getEditWrapperProps;return e.getEditWrapperProps=function(n){var r={};return t&&(r=t(n)),Zo(r,e,n)},e})),Object(f.addFilter)("editor.BlockListBlock","core/border/with-border-color-palette-styles",Jo);var rc={key:"default",name:Object(k.__)("Default"),style:{borderStyle:void 0}},oc=[rc,{key:"none",name:Object(k.__)("None"),style:{borderStyle:"none"}},{key:"solid",name:Object(k.__)("Solid"),style:{borderStyle:"solid"}},{key:"dashed",name:Object(k.__)("Dashed"),style:{borderStyle:"dashed"}},{key:"dotted",name:Object(k.__)("Dotted"),style:{borderStyle:"dotted"}}];function cc(e){var t=e.onChange,n=e.value,r=oc.find((function(e){return e.key===n}));return Object(l.createElement)("fieldset",{className:"components-border-style-control"},Object(l.createElement)(m.CustomSelectControl,{className:"components-border-style-control__select",label:Object(k.__)("Border style"),options:oc,value:r||rc,onChange:function(e){var n=e.selectedItem;return"default"===n.key?t(void 0):t(n.key)}}))}function ic(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 ac(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ic(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ic(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var lc=function(e){var t,n=e.attributes.style,r=e.setAttributes;return Object(l.createElement)(cc,{value:null==n||null===(t=n.border)||void 0===t?void 0:t.style,onChange:function(e){var t=ac(ac({},n),{},{border:ac(ac({},null==n?void 0:n.border),{},{style:e})});r({style:qo(t)})}})};function sc(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 uc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sc(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var dc=function(e){var t,n=e.attributes.style,r=e.setAttributes;return Object(l.createElement)(m.RangeControl,{value:null==n||null===(t=n.border)||void 0===t?void 0:t.width,label:Object(k.__)("Border width"),min:0,max:50,initialPosition:0,allowReset:!0,onChange:function(e){var t=uc(uc({},n),{},{border:uc(uc({},null==n?void 0:n.border),{},{width:e})});r({style:qo(t)})}})};function bc(e){var t=mc(e),n=fc(e.name),r=wo("border.customColor")&&fc(e.name,"color"),o=wo("border.customRadius")&&fc(e.name,"radius"),c=wo("border.customStyle")&&fc(e.name,"style"),i=wo("border.customWidth")&&fc(e.name,"width");return t||!n?null:Object(l.createElement)(po,null,Object(l.createElement)(m.PanelBody,{title:Object(k.__)("Border settings"),initialOpen:!1},c&&Object(l.createElement)(lc,e),i&&Object(l.createElement)(dc,e),o&&Object(l.createElement)(nc,e),r&&Object(l.createElement)(Qo,e)))}function fc(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"any";if("web"!==l.Platform.OS)return!1;var n=Object(p.getBlockSupport)(e,"__experimentalBorder");return!!(!0===n||("any"===t?null!=n&&n.color||null!=n&&n.radius||null!=n&&n.width||null!=n&&n.style:null!=n&&n[t]))}function pc(e){var t=Object(p.getBlockSupport)(e,"__experimentalBorder");return null==t?void 0:t.__experimentalSkipSerialization}var mc=function(){return[!wo("border.customColor"),!wo("border.customRadius"),!wo("border.customStyle"),!wo("border.customWidth")].every(Boolean)};function vc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Oc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vc(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}
7
  // translators: first %s: The type of color or gradient (e.g. background, overlay...), second %s: the color name or value (e.g. red or #ff0000)
8
+ var gc=Object(k.__)("(%s: color %s)"),hc=Object(k.__)("(%s: gradient %s)"),jc=["colors","disableCustomColors","gradients","disableCustomGradients"],yc=function(e){var t=e.colors,n=e.gradients;return e.settings.map((function(e,r){var o,c=e.colorValue,i=e.gradientValue,a=e.label,s=e.colors,u=e.gradients;if(!c&&!i)return null;if(c){var d=xo(s||t,c);o=Object(k.sprintf)(gc,a.toLowerCase(),d&&d.name||c)}else{var b=Ao(u||n,c);o=Object(k.sprintf)(hc,a.toLowerCase(),b&&b.name||i)}return Object(l.createElement)(m.ColorIndicator,{key:r,colorValue:c||i,"aria-label":o})}))},kc=function(e){var t=e.className,n=e.colors,r=e.gradients,o=e.disableCustomColors,c=e.disableCustomGradients,a=e.children,s=e.settings,b=e.title,f=Object(j.a)(e,["className","colors","gradients","disableCustomColors","disableCustomGradients","children","settings","title"]);if(Object(d.isEmpty)(n)&&Object(d.isEmpty)(r)&&o&&c&&Object(d.every)(s,(function(e){return Object(d.isEmpty)(e.colors)&&Object(d.isEmpty)(e.gradients)&&(void 0===e.disableCustomColors||e.disableCustomColors)&&(void 0===e.disableCustomGradients||e.disableCustomGradients)})))return null;var p=Object(l.createElement)("span",{className:"block-editor-panel-color-gradient-settings__panel-title"},b,Object(l.createElement)(yc,{colors:n,gradients:r,settings:s}));return Object(l.createElement)(m.PanelBody,Object(i.a)({className:u()("block-editor-panel-color-gradient-settings",t),title:p},f),s.map((function(e,t){return Object(l.createElement)(Ko,Object(i.a)({key:t},Oc({colors:n,gradients:r,disableCustomColors:o,disableCustomGradients:c},e)))})),a)},_c=function(e){var t={};return t.colors=wo("color.palette"),t.gradients=wo("color.gradients"),t.disableCustomColors=!wo("color.custom"),t.disableCustomGradients=!wo("color.customGradient"),Object(l.createElement)(kc,Oc(Oc({},t),e))},Ec=function(e){return Object(d.every)(jc,(function(t){return e.hasOwnProperty(t)}))?Object(l.createElement)(kc,e):Object(l.createElement)(_c,e)};// translators: first %s: The type of color or gradient (e.g. background, overlay...), second %s: the color name or value (e.g. red or #ff0000)
9
+ function wc(e){var t=e.tinyBackgroundColor,n=e.tinyTextColor,r=e.backgroundColor,o=e.textColor,c=t.getBrightness()<n.getBrightness()?Object(k.__)("This color combination may be hard for people to read. Try using a darker background color and/or a brighter text color."):Object(k.__)("This color combination may be hard for people to read. Try using a brighter background color and/or a darker text color.");return Object(l.useEffect)((function(){Object(Rt.speak)(Object(k.__)("This color combination may be hard for people to read."))}),[r,o]),Object(l.createElement)("div",{className:"block-editor-contrast-checker"},Object(l.createElement)(m.Notice,{spokenMessage:null,status:"warning",isDismissible:!1},c))}var Cc=function(e){var t=e.backgroundColor,n=e.fallbackBackgroundColor,r=e.fallbackTextColor,o=e.fontSize,c=e.isLargeText,i=e.textColor;if(!t&&!n||!i&&!r)return null;var a=Bo()(t||n),s=Bo()(i||r);return 1!==a.getAlpha()||1!==s.getAlpha()||Bo.a.isReadable(a,s,{level:"AA",size:c||!1!==c&&o>=24?"large":"small"})?null:Object(l.createElement)(wc,{backgroundColor:t,textColor:i,tinyBackgroundColor:a,tinyTextColor:s})};function Sc(e,t){return t.getElementById("block-"+e)}function Bc(e,t){return t.closest(".block-editor-block-list__block")===e}function Ic(e){for(;e&&e.nodeType!==e.ELEMENT_NODE;)e=e.parentNode;if(e){var t=e.closest(".block-editor-block-list__block");if(t)return t.id.slice("block-".length)}}function xc(e){return e.ownerDocument.defaultView.getComputedStyle(e)}function Pc(e){var t=e.settings,n=e.clientId,r=e.enableContrastChecking,o=void 0===r||r,c=Object(l.useState)(),i=Object(Co.a)(c,2),a=i[0],s=i[1],u=Object(l.useState)(),d=Object(Co.a)(u,2),b=d[0],f=d[1];return Object(l.useEffect)((function(){if(o){var e=Sc(n,document);if(e){f(xc(e).color);for(var t=e,r=xc(t).backgroundColor;"rgba(0, 0, 0, 0)"===r&&t.parentNode&&t.parentNode.nodeType===t.parentNode.ELEMENT_NODE;)r=xc(t=t.parentNode).backgroundColor;s(r)}}})),Object(l.createElement)(po,null,Object(l.createElement)(Ec,{title:Object(k.__)("Color"),initialOpen:!1,settings:t},o&&Object(l.createElement)(Cc,{backgroundColor:a,textColor:b})))}function Tc(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 Nc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tc(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Dc=[],Ac=function(e){var t=Object(p.getBlockSupport)(e,"color");return t&&(!0===t.link||!0===t.gradient||!1!==t.background||!1!==t.text)},Lc=function(e){var t=Object(p.getBlockSupport)(e,"color");return null==t?void 0:t.__experimentalSkipSerialization},Rc=function(e){if("web"!==l.Platform.OS)return!1;var t=Object(p.getBlockSupport)(e,"color");return Object(d.isObject)(t)&&!!t.link},Mc=function(e){if("web"!==l.Platform.OS)return!1;var t=Object(p.getBlockSupport)(e,"color");return Object(d.isObject)(t)&&!!t.gradients},Fc=function(e){var t=Object(p.getBlockSupport)(e,"color");return t&&!1!==t.text};function Vc(e,t,n){var r,o,c,i,l,s;if(!Ac(t)||Lc(t))return e;var d=Mc(t),b=n.backgroundColor,f=n.textColor,p=n.gradient,m=n.style,v=Po("background-color",b),O=No(p),g=Po("color",f),h=u()(e.className,g,O,(s={},Object(a.a)(s,v,!(d&&null!=m&&null!==(r=m.color)&&void 0!==r&&r.gradient||!v)),Object(a.a)(s,"has-text-color",f||(null==m||null===(o=m.color)||void 0===o?void 0:o.text)),Object(a.a)(s,"has-background",b||(null==m||null===(c=m.color)||void 0===c?void 0:c.background)||d&&(p||(null==m||null===(i=m.color)||void 0===i?void 0:i.gradient))),Object(a.a)(s,"has-link-color",null==m||null===(l=m.color)||void 0===l?void 0:l.link),s));return e.className=h||void 0,e}var Hc=function(e,t){var n=/var:preset\|color\|(.+)/.exec(t);return n&&n[1]?Io(e,n[1]).color:t};function zc(e){var t,n,r,o,c,i,s=e.name,u=e.attributes,d=wo("color.link"),b=wo("color.palette")||Dc,f=wo("color.gradients")||Dc,m=Object(l.useRef)(u);if(Object(l.useEffect)((function(){m.current=u}),[u]),!Ac(s)||"web"!==l.Platform.OS)return null;var v,O,g,h=(v=s,(O=Object(p.getBlockSupport)(v,"color"))&&!1!==O.background),j=Mc(s),_=u.style,E=u.textColor,w=u.backgroundColor,C=u.gradient;if(j&&C)g=Do(f,C);else if(j){var S;g=null==_||null===(S=_.color)||void 0===S?void 0:S.gradient}var B=function(t){return function(n){var r,o,c=xo(b,n),i=t+"Color",l=Nc(Nc({},m.current.style),{},{color:Nc(Nc({},null===(r=m.current)||void 0===r||null===(o=r.style)||void 0===o?void 0:o.color),{},Object(a.a)({},t,null!=c&&c.slug?void 0:n))}),s=null!=c&&c.slug?c.slug:void 0,u=Object(a.a)({style:qo(l)},i,s);e.setAttributes(u),m.current=Nc(Nc({},m.current),u)}};return Object(l.createElement)(Pc,{enableContrastChecking:!("web"!==l.Platform.OS||C||null!=_&&null!==(t=_.color)&&void 0!==t&&t.gradient),clientId:e.clientId,settings:[].concat(Object(y.a)(Fc(s)?[{label:Object(k.__)("Text color"),onColorChange:B("text"),colorValue:Io(b,E,null==_||null===(n=_.color)||void 0===n?void 0:n.text).color}]:[]),Object(y.a)(h||j?[{label:Object(k.__)("Background color"),onColorChange:h?B("background"):void 0,colorValue:Io(b,w,null==_||null===(r=_.color)||void 0===r?void 0:r.background).color,gradientValue:g,onGradientChange:j?function(t){var n,r=Lo(f,t);if(r){var o,c,i,a=Nc(Nc({},null===(o=m.current)||void 0===o?void 0:o.style),{},{color:Nc(Nc({},null===(c=m.current)||void 0===c||null===(i=c.style)||void 0===i?void 0:i.color),{},{gradient:void 0})});n={style:qo(a),gradient:r}}else{var l,s,u,d=Nc(Nc({},null===(l=m.current)||void 0===l?void 0:l.style),{},{color:Nc(Nc({},null===(s=m.current)||void 0===s||null===(u=s.style)||void 0===u?void 0:u.color),{},{gradient:t})});n={style:qo(d),gradient:void 0}}e.setAttributes(n),m.current=Nc(Nc({},m.current),n)}:void 0}]:[]),Object(y.a)(d&&Rc(s)?[{label:Object(k.__)("Link Color"),onColorChange:function(t){var n,r=xo(b,t);e.setAttributes({style:Nc(Nc({},e.attributes.style),{},{color:Nc(Nc({},null===(n=e.attributes.style)||void 0===n?void 0:n.color),{},{link:null!=r&&r.slug?"var:preset|color|".concat(r.slug):t})})})},colorValue:Hc(b,null==_||null===(o=_.color)||void 0===o?void 0:o.link),clearable:!(null===(c=e.attributes.style)||void 0===c||null===(i=c.color)||void 0===i||!i.link)}]:[]))})}var Gc=Object(b.createHigherOrderComponent)((function(e){return function(t){var n,r,o,c=t.name,a=t.attributes,s=a.backgroundColor,u=a.textColor,d=wo("color.palette")||Dc;if(!Ac(c)||Lc(c))return Object(l.createElement)(e,t);var b={color:u?null===(n=Io(d,u))||void 0===n?void 0:n.color:void 0,backgroundColor:s?null===(r=Io(d,s))||void 0===r?void 0:r.color:void 0},f=t.wrapperProps;return f=Nc(Nc({},t.wrapperProps),{},{style:Nc(Nc({},b),null===(o=t.wrapperProps)||void 0===o?void 0:o.style)}),Object(l.createElement)(e,Object(i.a)({},t,{wrapperProps:f}))}}));Object(f.addFilter)("blocks.registerBlockType","core/color/addAttribute",(function(e){return Ac(e)?(e.attributes.backgroundColor||Object.assign(e.attributes,{backgroundColor:{type:"string"}}),e.attributes.textColor||Object.assign(e.attributes,{textColor:{type:"string"}}),Mc(e)&&!e.attributes.gradient&&Object.assign(e.attributes,{gradient:{type:"string"}}),e):e})),Object(f.addFilter)("blocks.getSaveContent.extraProps","core/color/addSaveProps",Vc),Object(f.addFilter)("blocks.registerBlockType","core/color/addEditProps",(function(e){if(!Ac(e)||Lc(e))return e;var t=e.getEditWrapperProps;return e.getEditWrapperProps=function(n){var r={};return t&&(r=t(n)),Vc(r,e,n)},e})),Object(f.addFilter)("editor.BlockListBlock","core/color/with-color-palette-styles",Gc);var Uc=Object(l.createElement)(Ir.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(Ir.Path,{d:"M7 18v1h10v-1H7zm5-2c1.5 0 2.6-.4 3.4-1.2.8-.8 1.1-2 1.1-3.5V5H15v5.8c0 1.2-.2 2.1-.6 2.8-.4.7-1.2 1-2.4 1s-2-.3-2.4-1c-.4-.7-.6-1.6-.6-2.8V5H7.5v6.2c0 1.5.4 2.7 1.1 3.5.8.9 1.9 1.3 3.4 1.3z"})),Wc=n(403),Kc=[{name:Object(k.__)("Underline"),value:"underline",icon:Uc},{name:Object(k.__)("Strikethrough"),value:"line-through",icon:Wc.a}];function qc(e){var t=e.value,n=e.onChange;return Object(l.createElement)("fieldset",{className:"block-editor-text-decoration-control"},Object(l.createElement)("legend",null,Object(k.__)("Decoration")),Object(l.createElement)("div",{className:"block-editor-text-decoration-control__buttons"},Kc.map((function(e){return Object(l.createElement)(m.Button,{key:e.value,icon:e.icon,isSmall:!0,isPressed:e.value===t,onClick:function(){return n(e.value===t?void 0:e.value)},"aria-label":e.name})}))))}function $c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Yc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$c(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Xc(e){var t,n=e.attributes.style,r=e.setAttributes;return Qc(e)?null:Object(l.createElement)(qc,{value:null==n||null===(t=n.typography)||void 0===t?void 0:t.textDecoration,onChange:function(e){r({style:qo(Yc(Yc({},n),{},{typography:Yc(Yc({},null==n?void 0:n.typography),{},{textDecoration:e})}))})}})}function Qc(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,n=!Object(p.hasBlockSupport)(t,"__experimentalTextDecoration"),r=wo("typography.customTextDecorations");return n||!r}var Zc=Object(l.createElement)(Ir.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(Ir.Path,{d:"M6.1 6.8L2.1 18h1.6l1.1-3h4.3l1.1 3h1.6l-4-11.2H6.1zm-.8 6.8L7 8.9l1.7 4.7H5.3zm15.1-.7c-.4-.5-.9-.8-1.6-1 .4-.2.7-.5.8-.9.2-.4.3-.9.3-1.4 0-.9-.3-1.6-.8-2-.6-.5-1.3-.7-2.4-.7h-3.5V18h4.2c1.1 0 2-.3 2.6-.8.6-.6 1-1.4 1-2.4-.1-.8-.3-1.4-.6-1.9zm-5.7-4.7h1.8c.6 0 1.1.1 1.4.4.3.2.5.7.5 1.3 0 .6-.2 1.1-.5 1.3-.3.2-.8.4-1.4.4h-1.8V8.2zm4 8c-.4.3-.9.5-1.5.5h-2.6v-3.8h2.6c1.4 0 2 .6 2 1.9.1.6-.1 1-.5 1.4z"})),Jc=Object(l.createElement)(Ir.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(Ir.Path,{d:"M11 16.8c-.1-.1-.2-.3-.3-.5v-2.6c0-.9-.1-1.7-.3-2.2-.2-.5-.5-.9-.9-1.2-.4-.2-.9-.3-1.6-.3-.5 0-1 .1-1.5.2s-.9.3-1.2.6l.2 1.2c.4-.3.7-.4 1.1-.5.3-.1.7-.2 1-.2.6 0 1 .1 1.3.4.3.2.4.7.4 1.4-1.2 0-2.3.2-3.3.7s-1.4 1.1-1.4 2.1c0 .7.2 1.2.7 1.6.4.4 1 .6 1.8.6.9 0 1.7-.4 2.4-1.2.1.3.2.5.4.7.1.2.3.3.6.4.3.1.6.1 1.1.1h.1l.2-1.2h-.1c-.4.1-.6 0-.7-.1zM9.2 16c-.2.3-.5.6-.9.8-.3.1-.7.2-1.1.2-.4 0-.7-.1-.9-.3-.2-.2-.3-.5-.3-.9 0-.6.2-1 .7-1.3.5-.3 1.3-.4 2.5-.5v2zm10.6-3.9c-.3-.6-.7-1.1-1.2-1.5-.6-.4-1.2-.6-1.9-.6-.5 0-.9.1-1.4.3-.4.2-.8.5-1.1.8V6h-1.4v12h1.3l.2-1c.2.4.6.6 1 .8.4.2.9.3 1.4.3.7 0 1.2-.2 1.8-.5.5-.4 1-.9 1.3-1.5.3-.6.5-1.3.5-2.1-.1-.6-.2-1.3-.5-1.9zm-1.7 4c-.4.5-.9.8-1.6.8s-1.2-.2-1.7-.7c-.4-.5-.7-1.2-.7-2.1 0-.9.2-1.6.7-2.1.4-.5 1-.7 1.7-.7s1.2.3 1.6.8c.4.5.6 1.2.6 2s-.2 1.4-.6 2z"})),ei=Object(l.createElement)(Ir.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(Ir.Path,{d:"M7.1 6.8L3.1 18h1.6l1.1-3h4.3l1.1 3h1.6l-4-11.2H7.1zm-.8 6.8L8 8.9l1.7 4.7H6.3zm14.5-1.5c-.3-.6-.7-1.1-1.2-1.5-.6-.4-1.2-.6-1.9-.6-.5 0-.9.1-1.4.3-.4.2-.8.5-1.1.8V6h-1.4v12h1.3l.2-1c.2.4.6.6 1 .8.4.2.9.3 1.4.3.7 0 1.2-.2 1.8-.5.5-.4 1-.9 1.3-1.5.3-.6.5-1.3.5-2.1-.1-.6-.2-1.3-.5-1.9zm-1.7 4c-.4.5-.9.8-1.6.8s-1.2-.2-1.7-.7c-.4-.5-.7-1.2-.7-2.1 0-.9.2-1.6.7-2.1.4-.5 1-.7 1.7-.7s1.2.3 1.6.8c.4.5.6 1.2.6 2 .1.8-.2 1.4-.6 2z"})),ti=[{name:Object(k.__)("Uppercase"),value:"uppercase",icon:Zc},{name:Object(k.__)("Lowercase"),value:"lowercase",icon:Jc},{name:Object(k.__)("Capitalize"),value:"capitalize",icon:ei}];function ni(e){var t=e.value,n=e.onChange;return Object(l.createElement)("fieldset",{className:"block-editor-text-transform-control"},Object(l.createElement)("legend",null,Object(k.__)("Letter case")),Object(l.createElement)("div",{className:"block-editor-text-transform-control__buttons"},ti.map((function(e){return Object(l.createElement)(m.Button,{key:e.value,icon:e.icon,isSmall:!0,isPressed:t===e.value,"aria-label":e.name,onClick:function(){return n(t===e.value?void 0:e.value)}})}))))}function ri(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 oi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ri(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ri(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ci(e){var t,n=e.attributes.style,r=e.setAttributes;return ii(e)?null:Object(l.createElement)(ni,{value:null==n||null===(t=n.typography)||void 0===t?void 0:t.textTransform,onChange:function(e){r({style:qo(oi(oi({},n),{},{typography:oi(oi({},null==n?void 0:n.typography),{},{textTransform:e})}))})}})}function ii(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,n=!Object(p.hasBlockSupport)(t,"__experimentalTextTransform"),r=wo("typography.customTextTransforms");return n||!r}function ai(e){var t=!Qc(e),n=!ii(e);return t||n?Object(l.createElement)("div",{className:"block-editor-text-decoration-and-transform"},t&&Object(l.createElement)(Xc,e),n&&Object(l.createElement)(ci,e)):null}var li=n(17);function si(e){var t=e.value,n=e.onChange,r=function(e){return void 0!==e&&""!==e}(t),o=r?t:"";return Object(l.createElement)("div",{className:"block-editor-line-height-control"},Object(l.createElement)(m.TextControl,{autoComplete:"off",onKeyDown:function(e){e.keyCode!==li.ZERO||r||(e.preventDefault(),n("0"))},onChange:function(e){if(r)n(e);else{var t=e;switch(e){case"".concat(.1):t=1.6;break;case"0":t=1.4}n(t)}},label:Object(k.__)("Line height"),placeholder:1.5,step:.1,type:"number",value:o,min:0}))}function ui(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 di(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ui(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ui(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function bi(e){var t,n=e.attributes.style;return fi(e)?null:Object(l.createElement)(si,{value:null==n||null===(t=n.typography)||void 0===t?void 0:t.lineHeight,onChange:function(t){var r=di(di({},n),{},{typography:di(di({},null==n?void 0:n.typography),{},{lineHeight:t})});e.setAttributes({style:qo(r)})}})}function fi(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,n=!wo("typography.customLineHeight");return!Object(p.hasBlockSupport)(t,"lineHeight")||n}var pi=[{name:Object(k.__)("Regular"),value:"normal"},{name:Object(k.__)("Italic"),value:"italic"}],mi=[{name:Object(k.__)("Thin"),value:"100"},{name:Object(k.__)("Extra Light"),value:"200"},{name:Object(k.__)("Light"),value:"300"},{name:Object(k.__)("Regular"),value:"400"},{name:Object(k.__)("Medium"),value:"500"},{name:Object(k.__)("Semi Bold"),value:"600"},{name:Object(k.__)("Bold"),value:"700"},{name:Object(k.__)("Extra Bold"),value:"800"},{name:Object(k.__)("Black"),value:"900"}];function vi(e){var t=e.onChange,n=e.hasFontStyles,r=void 0===n||n,o=e.hasFontWeights,c=void 0===o||o,i=e.value,a=i.fontStyle,s=i.fontWeight,u=r||c,d={key:"default",name:Object(k.__)("Default"),style:{fontStyle:void 0,fontWeight:void 0}},b=Object(l.useMemo)((function(){return r&&c?(e=[d],pi.forEach((function(t){var n=t.name,r=t.value;mi.forEach((function(t){var o=t.name,c=t.value,i="normal"===r?o:Object(k.sprintf)(
10
  /* translators: 1: Font weight name. 2: Font style name. */
11
+ Object(k.__)("%1$s %2$s"),o,n);e.push({key:"".concat(r,"-").concat(c),name:i,style:{fontStyle:r,fontWeight:c}})}))})),e):r?function(){var e=[d];return pi.forEach((function(t){var n=t.name,r=t.value;e.push({key:r,name:n,style:{fontStyle:r,fontWeight:void 0}})})),e}():function(){var e=[d];return mi.forEach((function(t){var n=t.name,r=t.value;e.push({key:r,name:n,style:{fontStyle:void 0,fontWeight:r}})})),e}();var e}),[e.options]),f=b.find((function(e){return e.style.fontStyle===a&&e.style.fontWeight===s}));return Object(l.createElement)("fieldset",{className:"components-font-appearance-control"},u&&Object(l.createElement)(m.CustomSelectControl,{className:"components-font-appearance-control__select",label:r?c?Object(k.__)("Appearance"):Object(k.__)("Font style"):Object(k.__)("Font weight"),options:b,value:f,onChange:function(e){var n=e.selectedItem;return t(n.style)}}))}function Oi(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 gi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Oi(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Oi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function hi(e){var t,n,r=e.attributes.style,o=e.setAttributes,c=!ji(e),i=!yi(e);if(!c&&!i)return null;var a=null==r||null===(t=r.typography)||void 0===t?void 0:t.fontStyle,s=null==r||null===(n=r.typography)||void 0===n?void 0:n.fontWeight;return Object(l.createElement)(vi,{onChange:function(e){o({style:qo(gi(gi({},r),{},{typography:gi(gi({},null==r?void 0:r.typography),{},{fontStyle:e.fontStyle,fontWeight:e.fontWeight})}))})},hasFontStyles:c,hasFontWeights:i,value:{fontStyle:a,fontWeight:s}})}function ji(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,n=Object(p.hasBlockSupport)(t,"__experimentalFontStyle"),r=wo("typography.customFontStyle");return!n||!r}function yi(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,n=Object(p.hasBlockSupport)(t,"__experimentalFontWeight"),r=wo("typography.customFontWeight");return!n||!r}function ki(e){var t=ji(e),n=yi(e);return t&&n}function _i(e){var t=e.value,n=void 0===t?"":t,r=e.onChange,o=e.fontFamilies,c=Object(j.a)(e,["value","onChange","fontFamilies"]),a=wo("typography.fontFamilies");if(o||(o=a),Object(d.isEmpty)(o))return null;var s=[{value:"",label:Object(k.__)("Default")}].concat(Object(y.a)(o.map((function(e){var t=e.fontFamily;return{value:t,label:e.name||t}}))));return Object(l.createElement)(m.SelectControl,Object(i.a)({label:Object(k.__)("Font family"),options:s,value:n,onChange:r,labelPosition:"top"},c))}function Ei(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 wi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ei(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ei(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ci(e){var t,n=e.name,r=e.setAttributes,o=e.attributes.style,c=void 0===o?{}:o,i=wo("typography.fontFamilies");if(Si({name:n}))return null;var a=function(e,t){var n=/var:preset\|font-family\|(.+)/.exec(t);if(n&&n[1]){var r=Object(d.find)(e,(function(e){return e.slug===n[1]}));if(r)return r.fontFamily}return t}(i,null===(t=c.typography)||void 0===t?void 0:t.fontFamily);return Object(l.createElement)(_i,{className:"block-editor-hooks-font-family-control",fontFamilies:i,value:a,onChange:function(e){var t=Object(d.find)(i,(function(t){return t.fontFamily===e}));r({style:qo(wi(wi({},c),{},{typography:wi(wi({},c.typography||{}),{},{fontFamily:t?"var:preset|font-family|".concat(t.slug):e||void 0})}))})}})}function Si(e){var t=e.name,n=wo("typography.fontFamilies");return!n||0===n.length||!Object(p.hasBlockSupport)(t,"__experimentalFontFamily")}var Bi=n(193),Ii=n.n(Bi),xi=function(e,t,n){if(t){var r=Object(d.find)(e,{slug:t});if(r)return r}return{size:n}};function Pi(e,t){return Object(d.find)(e,{size:t})||{size:t}}function Ti(e){if(e)return"has-".concat(Object(d.kebabCase)(e),"-font-size")}var Ni=function(e){var t=wo("typography.fontSizes"),n=!wo("typography.customFontSize");return Object(l.createElement)(m.FontSizePicker,Object(i.a)({},e,{fontSizes:t,disableCustomFontSizes:n}))};function Di(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 Ai(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Di(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Di(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Li(e,t,n){if(!Object(p.hasBlockSupport)(t,"fontSize"))return e;var r=new Ii.a(e.className);r.add(Ti(n.fontSize));var o=r.value;return e.className=o||void 0,e}function Ri(e){var t,n,r=e.attributes,o=r.fontSize,c=r.style,i=e.setAttributes,a=Mi(e),s=wo("typography.fontSizes");if(a)return null;var u=xi(s,o,null==c||null===(t=c.typography)||void 0===t?void 0:t.fontSize),d=(null==u?void 0:u.size)||(null==c||null===(n=c.typography)||void 0===n?void 0:n.fontSize)||o;return Object(l.createElement)(Ni,{onChange:function(e){var t=Pi(s,e).slug;i({style:qo(Ai(Ai({},c),{},{typography:Ai(Ai({},null==c?void 0:c.typography),{},{fontSize:t?void 0:e})})),fontSize:t})},value:d})}function Mi(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,n=wo("typography.fontSizes"),r=!(null==n||!n.length);return!Object(p.hasBlockSupport)(t,"fontSize")||!r}var Fi=Object(b.createHigherOrderComponent)((function(e){return function(t){var n,r=wo("typography.fontSizes"),o=t.name,c=t.attributes,i=c.fontSize,a=c.style,s=t.wrapperProps,u=Ai({},t);if(Object(p.hasBlockSupport)(o,"fontSize")&&i&&(null==a||null===(n=a.typography)||void 0===n||!n.fontSize)){var d,b=xi(r,i,null==a||null===(d=a.typography)||void 0===d?void 0:d.fontSize).size;u.wrapperProps=Ai(Ai({},s),{},{style:Ai({fontSize:b},null==s?void 0:s.style)})}return Object(l.createElement)(e,u)}}),"withFontSizeInlineStyles");Object(f.addFilter)("blocks.registerBlockType","core/font/addAttribute",(function(e){return Object(p.hasBlockSupport)(e,"fontSize")?(e.attributes.fontSize||Object.assign(e.attributes,{fontSize:{type:"string"}}),e):e})),Object(f.addFilter)("blocks.getSaveContent.extraProps","core/font/addSaveProps",Li),Object(f.addFilter)("blocks.registerBlockType","core/font/addEditProps",(function(e){if(!Object(p.hasBlockSupport)(e,"fontSize"))return e;var t=e.getEditWrapperProps;return e.getEditWrapperProps=function(n){var r={};return t&&(r=t(n)),Li(r,e,n)},e})),Object(f.addFilter)("editor.BlockListBlock","core/font-size/with-font-size-inline-styles",Fi);var Vi=["lineHeight","fontSize","__experimentalFontStyle","__experimentalFontWeight","__experimentalFontFamily","__experimentalTextDecoration","__experimentalTextTransform"];function Hi(e){var t=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=[ki(e),Mi(e),fi(e),Si(e),Qc(e),ii(e)];return t.filter(Boolean).length===t.length}(e),n=zi(e.name);return t||!n?null:Object(l.createElement)(po,null,Object(l.createElement)(m.PanelBody,{title:Object(k.__)("Typography")},Object(l.createElement)(m.__unstableComponentSystemProvider,{__unstableNextInclude:["WPComponentsFontSizePicker"]},Object(l.createElement)(Ci,e),Object(l.createElement)(Ri,e),Object(l.createElement)(hi,e),Object(l.createElement)(bi,e),Object(l.createElement)(ai,e))))}var zi=function(e){return"web"===l.Platform.OS&&Vi.some((function(t){return Object(p.hasBlockSupport)(e,t)}))};function Gi(e){var t=e.units,n=Object(j.a)(e,["units"]),r=Ui(t);return Object(l.createElement)(m.__experimentalUnitControl,Object(i.a)({units:r},n))}function Ui(e){var t=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.filter((function(t){return e.includes(t.value)}))}(wo("spacing.units")||[],e);return 0!==t.length&&t}function Wi(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 Ki(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wi(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function qi(e){var t,n=e.name,r=e.attributes.style,o=e.setAttributes,c=Ui();return function(e){var t=Object(p.getBlockSupport)(e,"spacing");return t&&!1!==t.padding}(n)?l.Platform.select({web:Object(l.createElement)(l.Fragment,null,Object(l.createElement)(m.__experimentalBoxControl,{values:null==r||null===(t=r.spacing)||void 0===t?void 0:t.padding,onChange:function(e){var t=Ki(Ki({},r),{},{spacing:{padding:e}});o({style:qo(t)})},onChangeShowVisualizer:function(e){var t=Ki(Ki({},r),{},{visualizers:{padding:e}});o({style:qo(t)})},label:Object(k.__)("Padding"),units:c})),native:null}):null}function $i(e){var t=e.children,n=Object(j.a)(e,["children"]);return wo("spacing.customPadding")?Object(l.createElement)(po,n,Object(l.createElement)(m.PanelBody,{title:Object(k.__)("Spacing")},t)):null}function Yi(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;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yi(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Qi=[].concat(Object(y.a)(Vi),["__experimentalBorder","color","spacing"]),Zi=function(e){return Qi.some((function(t){return Object(p.hasBlockSupport)(e,t)}))};function Ji(e){if(Object(d.startsWith)(e,"var:")){var t=e.slice("var:".length).split("|").join("--");return"var(--wp--".concat(t,")")}return e}function ea(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={};return Object.keys(p.__EXPERIMENTAL_STYLE_PROPERTY).forEach((function(n){var r=p.__EXPERIMENTAL_STYLE_PROPERTY[n].value,o=p.__EXPERIMENTAL_STYLE_PROPERTY[n].properties;Object(d.has)(e,r)&&(o?o.forEach((function(o){t[n+Object(d.capitalize)(o)]=Ji(Object(d.get)(e,[].concat(Object(y.a)(r),[o])))})):t[n]=Ji(Object(d.get)(e,r)))})),t}function ta(e,t,n){if(!Zi(t))return e;var r,o,c=(r=n.style,o=Object(a.a)({border:Object(p.getBlockSupport)(t,"__experimentalBorder")},"color",Object(p.getBlockSupport)(t,"color")),Object(d.omitBy)(r,(function(e,t){var n;return!(null===(n=o[t])||void 0===n||!n.__experimentalSkipSerialization)})));return e.style=Xi(Xi({},ea(c)),e.style),e}var na=Object(b.createHigherOrderComponent)((function(e){return function(t){var n=t.name,r=Object(p.hasBlockSupport)(n,"spacing");return[Object(l.createElement)(Hi,Object(i.a)({key:"typography"},t)),Object(l.createElement)(bc,Object(i.a)({key:"border"},t)),Object(l.createElement)(zc,Object(i.a)({key:"colors"},t)),Object(l.createElement)(e,Object(i.a)({key:"edit"},t)),r&&Object(l.createElement)($i,{key:"spacing"},Object(l.createElement)(qi,t))]}}),"withToolbarControls");Object(f.addFilter)("blocks.registerBlockType","core/style/addAttribute",(function(e){return Zi(e)?(e.attributes.style||Object.assign(e.attributes,{style:{type:"object"}}),e):e})),Object(f.addFilter)("blocks.getSaveContent.extraProps","core/style/addSaveProps",ta),Object(f.addFilter)("blocks.registerBlockType","core/style/addEditProps",(function(e){if(!Zi(e))return e;var t=e.getEditWrapperProps;return e.getEditWrapperProps=function(n){var r={};return t&&(r=t(n)),ta(r,e,n)},e})),Object(f.addFilter)("editor.BlockEdit","core/style/with-block-controls",na);var ra=n(153);function oa(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 ca(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oa(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ia="web"===l.Platform.OS,aa=[{value:"%",label:ia?"%":Object(k.__)("Percentage (%)"),default:""},{value:"px",label:ia?"px":Object(k.__)("Pixels (px)"),default:""},{value:"em",label:ia?"em":Object(k.__)("Relative to parent font size (em)"),default:""},{value:"rem",label:ia?"rem":Object(k.__)("Relative to root font size (rem)"),default:""},{value:"vw",label:ia?"vw":Object(k.__)("Viewport width (vw)"),default:""}];function la(e){var t=e.setAttributes,n=e.attributes.layout,r=void 0===n?{}:n,o=r.wideSize,c=r.contentSize,i=r.inherit,a=void 0!==i&&i,s=wo("layout");return Object(v.useSelect)((function(e){return(0,e(yr).getSettings)().supportsLayout}),[])?Object(l.createElement)(po,null,Object(l.createElement)(m.PanelBody,{title:Object(k.__)("Layout")},!!s&&Object(l.createElement)(m.ToggleControl,{label:Object(k.__)("Inherit default layout"),checked:!!a,onChange:function(){return t({layout:{inherit:!a}})}}),!a&&Object(l.createElement)("div",{className:"block-editor-hooks__layout-controls"},Object(l.createElement)("div",{className:"block-editor-hooks__layout-controls-unit"},Object(l.createElement)(m.__experimentalUnitControl,{label:Object(k.__)("Content"),labelPosition:"top",__unstableInputWidth:"80px",value:c||o||"",onChange:function(e){e=0>parseFloat(e)?"0":e,t({layout:ca(ca({},r),{},{contentSize:e})})},units:aa}),Object(l.createElement)(ra.a,{icon:Pr})),Object(l.createElement)("div",{className:"block-editor-hooks__layout-controls-unit"},Object(l.createElement)(m.__experimentalUnitControl,{label:Object(k.__)("Wide"),labelPosition:"top",__unstableInputWidth:"80px",value:o||c||"",onChange:function(e){e=0>parseFloat(e)?"0":e,t({layout:ca(ca({},r),{},{wideSize:e})})},units:aa}),Object(l.createElement)(ra.a,{icon:Nr}))),Object(l.createElement)("p",{className:"block-editor-hooks__layout-controls-helptext"},Object(k.__)("Customize the width for all elements that are assigned to the center or wide columns.")))):null}var sa=Object(b.createHigherOrderComponent)((function(e){return function(t){var n=t.name;return[Object(p.hasBlockSupport)(n,"__experimentalLayout")&&Object(l.createElement)(la,Object(i.a)({key:"layout"},t)),Object(l.createElement)(e,Object(i.a)({key:"edit"},t))]}}),"withInspectorControls"),ua=Object(b.createHigherOrderComponent)((function(e){return function(t){var n=t.name,r=t.attributes,o=Object(p.hasBlockSupport)(n,"__experimentalLayout"),c=Object(b.useInstanceId)(e),a=wo("layout")||{};if(!o)return Object(l.createElement)(e,t);var s=r.layout,d=void 0===s?{}:s,f=d&&d.inherit?a:d,m=u()(null==t?void 0:t.className,"wp-container-".concat(c));return Object(l.createElement)(l.Fragment,null,Object(l.createElement)(Vr,{selector:".wp-container-".concat(c),layout:f}),Object(l.createElement)(e,Object(i.a)({},t,{className:m})))}}));Object(f.addFilter)("blocks.registerBlockType","core/layout/addAttribute",(function(e){return Object(d.has)(e.attributes,["layout","type"])||Object(p.hasBlockSupport)(e,"__experimentalLayout")&&(e.attributes=ca(ca({},e.attributes),{},{layout:{type:"object"}})),e})),Object(f.addFilter)("editor.BlockListBlock","core/editor/layout/with-layout-styles",ua),Object(f.addFilter)("editor.BlockEdit","core/editor/layout/with-inspector-controls",sa);var da=[];function ba(e){var t,n,r,o,c,i,l=e.backgroundColor,s=e.textColor,d=e.gradient,b=e.style,f=Po("background-color",l),p=Po("color",s),m=No(d),v=m||(null==b||null===(t=b.color)||void 0===t?void 0:t.gradient);return{className:u()(p,m,(i={},Object(a.a)(i,f,!v&&!!f),Object(a.a)(i,"has-text-color",s||(null==b||null===(n=b.color)||void 0===n?void 0:n.text)),Object(a.a)(i,"has-background",l||(null==b||null===(r=b.color)||void 0===r?void 0:r.background)||d||(null==b||null===(o=b.color)||void 0===o?void 0:o.gradient)),Object(a.a)(i,"has-link-color",null==b||null===(c=b.color)||void 0===c?void 0:c.link),i))||void 0,style:ea({color:(null==b?void 0:b.color)||{}})}}function fa(e){var t=e.backgroundColor,n=e.textColor,r=e.gradient,o=wo("color.palette")||da,c=wo("color.gradients")||da,i=ba(e);if(t){var a=Io(o,t);i.style.backgroundColor=a.color}if(r&&(i.style.background=Do(c,r)),n){var l=Io(o,n);i.style.color=l.color}return i}var pa=n(28),ma=n(29),va=n(21),Oa=n(33),ga=n(34),ha=n(24);function ja(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 ya(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ja(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ja(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ka=[],_a=function(e){return Object(b.createHigherOrderComponent)((function(t){return function(n){return Object(l.createElement)(t,Object(i.a)({},n,{colors:e}))}}),"withCustomColorPalette")},Ea=function(){return Object(b.createHigherOrderComponent)((function(e){return function(t){var n=wo("color.palette")||ka;return Object(l.createElement)(e,Object(i.a)({},t,{colors:n}))}}),"withEditorColorPalette")};function wa(e,t){var n=Object(d.reduce)(e,(function(e,t){return ya(ya({},e),Object(d.isString)(t)?Object(a.a)({},t,Object(d.kebabCase)(t)):t)}),{});return Object(b.compose)([t,function(e){return function(t){Object(Oa.a)(i,t);var r,o,c=(r=i,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Object(ha.a)(r);if(o){var n=Object(ha.a)(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return Object(ga.a)(this,e)});function i(e){var t;return Object(pa.a)(this,i),(t=c.call(this,e)).setters=t.createSetters(),t.colorUtils={getMostReadableColor:t.getMostReadableColor.bind(Object(va.a)(t))},t.state={},t}return Object(ma.a)(i,[{key:"getMostReadableColor",value:function(e){return function(e,t){return Bo.a.mostReadable(t,Object(d.map)(e,"color")).toHexString()}(this.props.colors,e)}},{key:"createSetters",value:function(){var e=this;return Object(d.reduce)(n,(function(t,n,r){var o=Object(d.upperFirst)(r),c="custom".concat(o);return t["set".concat(o)]=e.createSetColor(r,c),t}),{})}},{key:"createSetColor",value:function(e,t){var n=this;return function(r){var o,c=xo(n.props.colors,r);n.props.setAttributes((o={},Object(a.a)(o,e,c&&c.slug?c.slug:void 0),Object(a.a)(o,t,c&&c.slug?void 0:r),o))}}},{key:"render",value:function(){return Object(l.createElement)(e,ya(ya(ya(ya({},this.props),{},{colors:void 0},this.state),this.setters),{},{colorUtils:this.colorUtils}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var r=e.attributes,o=e.colors;return Object(d.reduce)(n,(function(e,n,c){var i=Io(o,r[c],r["custom".concat(Object(d.upperFirst)(c))]),a=t[c];return(null==a?void 0:a.color)===i.color&&a?e[c]=a:e[c]=ya(ya({},i),{},{class:Po(n,i.slug)}),e}),{})}}]),i}(l.Component)}])}function Ca(e){return function(){for(var t=_a(e),n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return Object(b.createHigherOrderComponent)(wa(r,t),"withCustomColors")}}function Sa(){for(var e=Ea(),t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Object(b.createHigherOrderComponent)(wa(n,e),"withColors")}var Ba=n(77),Ia=n.n(Ba);function xa(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 Pa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xa(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ta=function(e){var t=e.colorSettings,n=Object(j.a)(e,["colorSettings"]),r=t.map((function(e){var t=e.value,n=e.onChange;return Pa(Pa({},Object(j.a)(e,["value","onChange"])),{},{colorValue:t,onColorChange:n})}));return Object(l.createElement)(Ec,Object(i.a)({settings:r,gradients:[],disableCustomGradients:!0},n))},Na=function(e,t,n){return"function"==typeof e?e(t):!0===e?n:e};function Da(e){var t=e.title,n=e.colorSettings,r=e.colorPanelProps,o=e.contrastCheckers,c=e.detectedBackgroundColor,a=e.detectedColor,s=e.panelChildren,u=e.initialOpen;return Object(l.createElement)(Ta,Object(i.a)({title:t,initialOpen:u,colorSettings:Object.values(n)},r),o&&(Array.isArray(o)?o.map((function(e){var t=e.backgroundColor,r=e.textColor,o=Object(j.a)(e,["backgroundColor","textColor"]);return t=Na(t,n,c),r=Na(r,n,a),Object(l.createElement)(Cc,Object(i.a)({key:"".concat(t,"-").concat(r),backgroundColor:t,textColor:r},o))})):Object(d.map)(n,(function(e){var t=e.value,r=o.backgroundColor,s=o.textColor;return r=Na(r||t,n,c),s=Na(s||t,n,a),Object(l.createElement)(Cc,Object(i.a)({},o,{key:"".concat(r,"-").concat(s),backgroundColor:r,textColor:s}))}))),"function"==typeof s?s(n):s)}function Aa(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return La(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?La(e,void 0):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,i=!0,a=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return i=e.done,e},e:function(e){a=!0,c=e},f:function(){try{i||null==n.return||n.return()}finally{if(a)throw c}}}}function La(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ra(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 Ma(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ra(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ra(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Fa(e){return e.ownerDocument.defaultView.getComputedStyle(e)}var Va=[],Ha={textColor:Object(k.__)("Text color"),backgroundColor:Object(k.__)("Background color")},za=function(e){return Object(l.createElement)(po,null,Object(l.createElement)(Da,e))};function Ga(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{panelTitle:Object(k.__)("Color")},n=t.panelTitle,r=void 0===n?Object(k.__)("Color"):n,o=t.colorPanelProps,c=t.contrastCheckers,i=t.panelChildren,s=t.colorDetector,b=(s=void 0===s?{}:s).targetRef,f=s.backgroundColorTargetRef,p=void 0===f?b:f,m=s.textColorTargetRef,O=void 0===m?b:m,g=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],j=h(),_=j.clientId,E=wo("color.palette")||Va,w=Object(v.useSelect)((function(e){return{attributes:(0,e(yr).getBlockAttributes)(_)}}),[_]),C=w.attributes,S=Object(v.useDispatch)(yr),B=S.updateBlockAttributes,I=Object(l.useCallback)((function(e){return B(_,e)}),[B,_]),x=Object(l.useMemo)((function(){return Ia()((function(e,t,n,r,o,c){return function(i){var s,b=i.children,f=i.className,p=void 0===f?"":f,m=i.style,v=void 0===m?{}:m,O={};r?O=Object(a.a)({},t,o):c&&(O=Object(a.a)({},t,c));var g={className:u()(p,(s={},Object(a.a)(s,"has-".concat(Object(d.kebabCase)(r),"-").concat(Object(d.kebabCase)(t)),r),Object(a.a)(s,n||"has-".concat(Object(d.kebabCase)(e)),r||c),s)),style:Ma(Ma({},O),v)};return Object(d.isFunction)(b)?b(g):l.Children.map(b,(function(e){return Object(l.cloneElement)(e,{className:u()(e.props.className,g.className),style:Ma(Ma({},g.style),e.props.style||{})})}))}}),{maxSize:e.length})}),[e.length]),P=Object(l.useMemo)((function(){return Ia()((function(e,t){return function(n){var r=t.find((function(e){return e.color===n}));I(Object(a.a)({},r?Object(d.camelCase)("custom ".concat(e)):e,void 0)),I(Object(a.a)({},r?e:Object(d.camelCase)("custom ".concat(e)),r?r.slug:n))}}),{maxSize:e.length})}),[I,e.length]),T=Object(l.useState)(),N=Object(Co.a)(T,2),D=N[0],A=N[1],L=Object(l.useState)(),R=Object(Co.a)(L,2),M=R[0],F=R[1];return Object(l.useEffect)((function(){if(c){var e,t=!1,n=!1,r=Aa(Object(d.castArray)(c));try{for(r.s();!(e=r.n()).done;){var o=e.value,i=o.backgroundColor,a=o.textColor;if(t||(t=!0===i),n||(n=!0===a),t&&n)break}}catch(e){r.e(e)}finally{r.f()}if(n&&F(Fa(O.current).color),t){for(var l=p.current,s=Fa(l).backgroundColor;"rgba(0, 0, 0, 0)"===s&&l.parentNode&&l.parentNode.nodeType===l.parentNode.ELEMENT_NODE;)s=Fa(l=l.parentNode).backgroundColor;A(s)}}}),[e.reduce((function(e,t){return"".concat(e," | ").concat(C[t.name]," | ").concat(C[Object(d.camelCase)("custom ".concat(t.name))])}),"")].concat(Object(y.a)(g))),Object(l.useMemo)((function(){var t={},n=e.reduce((function(e,n){"string"==typeof n&&(n={name:n});var r=Ma(Ma({},n),{},{color:C[n.name]}),o=r.name,c=r.property,i=void 0===c?o:c,a=r.className,l=r.panelLabel,s=void 0===l?n.label||Ha[o]||Object(d.startCase)(o):l,u=r.componentName,b=void 0===u?Object(d.startCase)(o).replace(/\s/g,""):u,f=r.color,p=void 0===f?n.color:f,m=r.colors,v=void 0===m?E:m,O=C[Object(d.camelCase)("custom ".concat(o))],g=O?void 0:v.find((function(e){return e.slug===p}));return e[b]=x(o,i,a,p,g&&g.color,O),e[b].displayName=b,e[b].color=O||g&&g.color,e[b].slug=p,e[b].setColor=P(o,v),t[b]={value:g?g.color:C[Object(d.camelCase)("custom ".concat(o))],onChange:e[b].setColor,label:s,colors:v},v||delete t[b].colors,e}),{}),a={title:r,initialOpen:!1,colorSettings:t,colorPanelProps:o,contrastCheckers:c,detectedBackgroundColor:D,detectedColor:M,panelChildren:i};return Ma(Ma({},n),{},{ColorPanel:Object(l.createElement)(Da,a),InspectorControlsColorPanel:Object(l.createElement)(za,a)})}),[C,I,M,D].concat(Object(y.a)(g)))}function Ua(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 Wa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ua(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ua(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ka(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(ha.a)(e);if(t){var o=Object(ha.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(ga.a)(this,n)}}var qa=[],$a=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Object(d.reduce)(t,(function(e,t){return e[t]="custom".concat(Object(d.upperFirst)(t)),e}),{});return Object(b.createHigherOrderComponent)(Object(b.compose)([Object(b.createHigherOrderComponent)((function(e){return function(t){var n=wo("typography.fontSizes")||qa;return Object(l.createElement)(e,Object(i.a)({},t,{fontSizes:n}))}}),"withFontSizes"),function(e){return function(t){Object(Oa.a)(o,t);var n=Ka(o);function o(e){var t;return Object(pa.a)(this,o),(t=n.call(this,e)).setters=t.createSetters(),t.state={},t}return Object(ma.a)(o,[{key:"createSetters",value:function(){var e=this;return Object(d.reduce)(r,(function(t,n,r){var o=Object(d.upperFirst)(r);return t["set".concat(o)]=e.createSetFontSize(r,n),t}),{})}},{key:"createSetFontSize",value:function(e,t){var n=this;return function(r){var o,c=Object(d.find)(n.props.fontSizes,{size:Number(r)});n.props.setAttributes((o={},Object(a.a)(o,e,c&&c.slug?c.slug:void 0),Object(a.a)(o,t,c&&c.slug?void 0:r),o))}}},{key:"render",value:function(){return Object(l.createElement)(e,Wa(Wa(Wa({},this.props),{},{fontSizes:void 0},this.state),this.setters))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.attributes,o=e.fontSizes,c=function(e,r){return!t[r]||(n[r]?n[r]!==t[r].slug:t[r].size!==n[e])};if(!Object(d.some)(r,c))return null;var i=Object(d.reduce)(Object(d.pickBy)(r,c),(function(e,t,r){var c=n[r],i=xi(o,c,n[t]);return e[r]=Wa(Wa({},i),{},{class:Ti(c)}),e}),{});return Wa(Wa({},t),i)}}]),o}(l.Component)}]),"withFontSizes")},Ya=n(404),Xa=n(405),Qa=n(406);function Za(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 Ja(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Za(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Za(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var el=[{icon:Ya.a,title:Object(k.__)("Align text left"),align:"left"},{icon:Xa.a,title:Object(k.__)("Align text center"),align:"center"},{icon:Qa.a,title:Object(k.__)("Align text right"),align:"right"}],tl={position:"bottom right",isAlternate:!0},nl=function(e){var t=e.value,n=e.onChange,r=e.alignmentControls,o=void 0===r?el:r,c=e.label,a=void 0===c?Object(k.__)("Align"):c,s=e.describedBy,u=void 0===s?Object(k.__)("Change text alignment"):s,b=e.isCollapsed,f=void 0===b||b,p=e.isToolbar,v=e.isToolbarButton,O=void 0===v||v;function g(e){return function(){return n(t===e?void 0:e)}}var h=Object(d.find)(o,(function(e){return e.align===t})),j=p?m.ToolbarGroup:m.DropdownMenu,y=p?{isCollapsed:f}:{isToolbarButton:O};return Object(l.createElement)(j,Object(i.a)({icon:h?h.icon:Object(k.isRTL)()?Qa.a:Ya.a,label:a,toggleProps:{describedBy:u},popoverProps:tl,controls:o.map((function(e){var n=e.align,r=t===n;return Ja(Ja({},e),{},{isActive:r,role:f?"menuitemradio":void 0,onClick:g(n)})}))},y))};function rl(e){return Object(l.createElement)(nl,Object(i.a)({},e,{isToolbar:!1}))}function ol(e){return Object(l.createElement)(nl,Object(i.a)({},e,{isToolbar:!0}))}var cl=function(e){return e.name||""},il=function(e){return e.title},al=function(e){return e.description||""},ll=function(e){return e.keywords||[]},sl=function(e){return e.category},ul=function(){return null};function dl(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return(e=(e=Object(d.deburr)(e)).replace(/^\//,"")).toLowerCase()}var bl=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return Object(d.words)(dl(e))},fl=function(e,t){return Object(d.differenceWith)(e,bl(t),(function(e,t){return t.includes(e)}))},pl=function(e,t,n,r){return 0===bl(r).length?e:ml(e,r,{getCategory:function(e){var n;return null===(n=Object(d.find)(t,{slug:e.category}))||void 0===n?void 0:n.title},getCollection:function(e){var t;return null===(t=n[e.name.split("/")[0]])||void 0===t?void 0:t.title}})},ml=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=bl(t);if(0===r.length)return e;var o=e.map((function(e){return[e,vl(e,t,n)]})).filter((function(e){return Object(Co.a)(e,2)[1]>0}));return o.sort((function(e,t){var n=Object(Co.a)(e,2)[1];return Object(Co.a)(t,2)[1]-n})),o.map((function(e){return Object(Co.a)(e,1)[0]}))};function vl(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.getName,o=void 0===r?cl:r,c=n.getTitle,i=void 0===c?il:c,a=n.getDescription,l=void 0===a?al:a,s=n.getKeywords,u=void 0===s?ll:s,b=n.getCategory,f=void 0===b?sl:b,p=n.getCollection,m=void 0===p?ul:p,v=o(e),O=i(e),g=l(e),h=u(e),j=f(e),k=m(e),_=dl(t),E=dl(O),w=0;if(_===E)w+=30;else if(E.startsWith(_))w+=20;else{var C=[v,O,g].concat(Object(y.a)(h),[j,k]).join(" "),S=Object(d.words)(_),B=fl(S,C);0===B.length&&(w+=10)}return 0!==w&&v.startsWith("core/")&&w++,w}var Ol=function(e,t){var n=Object(v.useSelect)((function(t){var n=t(yr).getInserterItems,r=t(p.store),o=r.getCategories,c=r.getCollections;return{categories:o(),collections:c(),items:n(e)}}),[e]),r=n.categories,o=n.collections;return[n.items,r,o,Object(l.useCallback)((function(e,n){var r=e.name,o=e.initialAttributes,c=e.innerBlocks,i=Object(p.createBlock)(r,o,Object(p.createBlocksFromInnerBlocksTemplate)(c));t(i,void 0,n)}),[t])]},gl=n(207);function hl(e){var t,n=e.icon,r=e.showColors,o=void 0!==r&&r,c=e.className;"block-default"===(null===(t=n)||void 0===t?void 0:t.src)&&(n={src:gl.a});var i=Object(l.createElement)(m.Icon,{icon:n&&n.src?n.src:n}),a=o?{backgroundColor:n&&n.background,color:n&&n.foreground}:{};return Object(l.createElement)("span",{style:a,className:u()("block-editor-block-icon",c,{"has-colors":o})},i)}var jl={name:"blocks",className:"block-editor-autocompleters__block",triggerPrefix:"/",useItems:function(e){var t=Object(v.useSelect)((function(e){var t=e(yr),n=t.getSelectedBlockClientId,r=t.getBlockName,o=t.getBlockInsertionPoint,c=n();return{selectedBlockName:c?r(c):null,rootClientId:o().rootClientId}}),[]),n=t.rootClientId,r=t.selectedBlockName,o=Ol(n,d.noop),c=Object(Co.a)(o,3),i=c[0],a=c[1],s=c[2],u=Object(l.useMemo)((function(){return(e.trim()?pl(i,a,s,e):Object(d.orderBy)(i,["frecency"],["desc"])).filter((function(e){return e.name!==r})).slice(0,9)}),[e,r,i,a,s]);return[Object(l.useMemo)((function(){return u.map((function(e){var t=e.title,n=e.icon,r=e.isDisabled;return{key:"block-".concat(e.id),value:e,label:Object(l.createElement)(l.Fragment,null,Object(l.createElement)(hl,{key:"icon",icon:n,showColors:!0}),t),isDisabled:r}}))}),[u])]},allowContext:function(e,t){return!(/\S/.test(e)||/\S/.test(t))},getOptionCompletion:function(e){var t=e.name,n=e.initialAttributes,r=e.innerBlocks;return{action:"replace",value:Object(p.createBlock)(t,n,Object(p.createBlocksFromInnerBlocksTemplate)(r))}}},yl=[],kl=function(e){var t=h().name,n=e.completers,r=void 0===n?yl:n;return r=Object(l.useMemo)((function(){var e=r;return t===Object(p.getDefaultBlockName)()&&(e=e.concat([jl])),Object(f.hasFilter)("editor.Autocomplete.completers")&&(e===r&&(e=e.map(d.clone)),e=Object(f.applyFilters)("editor.Autocomplete.completers",e,t)),e}),[r,t]),Object(l.createElement)(m.Autocomplete,Object(i.a)({},e,{completers:r}))},_l=Object(l.createElement)(Ir.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(Ir.Path,{d:"M4.2 9h1.5V5.8H9V4.2H4.2V9zm14 9.2H15v1.5h4.8V15h-1.5v3.2zM15 4.2v1.5h3.2V9h1.5V4.2H15zM5.8 15H4.2v4.8H9v-1.5H5.8V15z"})),El=function(e){var t=e.isActive,n=e.label,r=void 0===n?Object(k.__)("Toggle full height"):n,o=e.onToggle,c=e.isDisabled;return Object(l.createElement)(m.ToolbarButton,{isActive:t,icon:_l,label:r,onClick:function(){return o(!t)},disabled:c})},wl=function(e){var t=e.label,n=void 0===t?Object(k.__)("Change matrix alignment"):t,r=e.onChange,o=void 0===r?d.noop:r,c=e.value,i=void 0===c?"center":c,a=e.isDisabled,s=Object(l.createElement)(m.__experimentalAlignmentMatrixControl.Icon,{value:i}),u="block-editor-block-alignment-matrix-control",b="".concat(u,"__popover");return Object(l.createElement)(m.Dropdown,{position:"bottom right",className:u,popoverProps:{className:b,isAlternate:!0},renderToggle:function(e){var t=e.onToggle,r=e.isOpen;return Object(l.createElement)(m.ToolbarButton,{onClick:t,"aria-haspopup":"true","aria-expanded":r,onKeyDown:function(e){r||e.keyCode!==li.DOWN||(e.preventDefault(),e.stopPropagation(),t())},label:n,icon:s,showTooltip:!0,disabled:a})},renderContent:function(){return Object(l.createElement)(m.__experimentalAlignmentMatrixControl,{hasFocusBorder:!1,onChange:o,value:i})}})};function Cl(e){return Object(v.useSelect)((function(t){if(!e)return null;var n=t(yr),r=n.getBlockName,o=n.getBlockAttributes,c=t(p.store),i=c.getBlockType,a=c.getBlockVariations,l=r(e),s=i(l);if(!s)return null;var u=a(l),d={title:s.title,icon:s.icon,description:s.description};if(null==u||!u.length)return d;var b=o(e),f=u.find((function(e){var t;return null===(t=e.isActive)||void 0===t?void 0:t.call(e,b,e.attributes)}));return f?{title:f.title||s.title,icon:f.icon||s.icon,description:f.description||s.description}:d}),[e])}function Sl(e){var t=e.clientId,n=Object(v.useSelect)((function(e){if(!t)return{};var n=e(yr),r=n.getBlockName,o=n.getBlockAttributes,c=n.__experimentalGetReusableBlockTitle,i=r(t);if(!i)return{};var a=Object(p.isReusableBlock)(Object(p.getBlockType)(i));return{attributes:o(t),name:i,reusableBlockTitle:a&&c(o(t).ref)}}),[t]),r=n.attributes,o=n.name,c=n.reusableBlockTitle,i=Cl(t);if(!o||!i)return null;var a=Object(p.getBlockType)(o),l=c||Object(p.__experimentalGetBlockLabel)(a,r);return l!==a.title?Object(d.truncate)(l,{length:35}):i.title}var Bl=function(){var e=Object(v.useDispatch)(yr),t=e.selectBlock,n=e.clearSelectedBlock,r=Object(v.useSelect)((function(e){var t=e(yr),n=t.getSelectionStart,r=t.getSelectedBlockClientId,o=t.getBlockParents,c=r();return{parents:o(c),clientId:c,hasSelection:!!n().clientId}}),[]),o=r.clientId,c=r.parents,i=r.hasSelection;return Object(l.createElement)("ul",{className:"block-editor-block-breadcrumb",role:"list","aria-label":Object(k.__)("Block breadcrumb")},Object(l.createElement)("li",{className:i?void 0:"block-editor-block-breadcrumb__current","aria-current":i?void 0:"true"},i&&Object(l.createElement)(m.Button,{className:"block-editor-block-breadcrumb__button",isTertiary:!0,onClick:n},Object(k.__)("Document")),!i&&Object(k.__)("Document")),c.map((function(e){return Object(l.createElement)("li",{key:e},Object(l.createElement)(m.Button,{className:"block-editor-block-breadcrumb__button",isTertiary:!0,onClick:function(){return t(e)}},Object(l.createElement)(Sl,{clientId:e})))})),!!o&&Object(l.createElement)("li",{className:"block-editor-block-breadcrumb__current","aria-current":"true"},Object(l.createElement)(Sl,{clientId:o})))};function Il(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 xl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Il(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Il(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Pl=Object(l.createContext)({});function Tl(e){var t=e.value,n=e.children,r=Object(l.useContext)(Pl),o=Object(l.useMemo)((function(){return xl(xl({},r),t)}),[r,t]);return Object(l.createElement)(Pl.Provider,{value:o,children:n})}var Nl=Pl,Dl=function(){return Object(l.createElement)(m.SVG,{xmlns:"https://www.w3.org/2000/svg",viewBox:"0 0 20 20"},Object(l.createElement)(m.Path,{d:"M7.434 5l3.18 9.16H8.538l-.692-2.184H4.628l-.705 2.184H2L5.18 5h2.254zm-1.13 1.904h-.115l-1.148 3.593H7.44L6.304 6.904zM14.348 7.006c1.853 0 2.9.876 2.9 2.374v4.78h-1.79v-.914h-.114c-.362.64-1.123 1.022-2.031 1.022-1.346 0-2.292-.826-2.292-2.108 0-1.27.972-2.006 2.71-2.107l1.696-.102V9.38c0-.584-.42-.914-1.18-.914-.667 0-1.112.228-1.264.647h-1.701c.12-1.295 1.307-2.107 3.066-2.107zm1.079 4.1l-1.416.09c-.793.056-1.18.342-1.18.844 0 .52.45.837 1.091.837.857 0 1.505-.545 1.505-1.256v-.515z"}))},Al=function(e){var t=e.style,n=e.className;return Object(l.createElement)("div",{className:"block-library-colors-selector__icon-container"},Object(l.createElement)("div",{className:"".concat(n," block-library-colors-selector__state-selection"),style:t},Object(l.createElement)(Dl,null)))},Ll=function(e){var t,n,r,o=e.children,c=Object(j.a)(e,["children"]);return Object(l.createElement)(m.Dropdown,{position:"bottom right",className:"block-library-colors-selector",contentClassName:"block-library-colors-selector__popover",renderToggle:(t=c,n=t.TextColor,r=t.BackgroundColor,function(e){var t=e.onToggle,o=e.isOpen;return Object(l.createElement)(m.ToolbarGroup,null,Object(l.createElement)(m.ToolbarButton,{className:"components-toolbar__control block-library-colors-selector__toggle",label:Object(k.__)("Open Colors Selector"),onClick:t,onKeyDown:function(e){o||e.keyCode!==li.DOWN||(e.preventDefault(),e.stopPropagation(),t())},icon:Object(l.createElement)(r,null,Object(l.createElement)(n,null,Object(l.createElement)(Al,null)))}))}),renderContent:function(){return o}})},Rl={},Ml=Object(m.withFilters)("editor.BlockEdit")((function(e){var t=e.attributes,n=void 0===t?{}:t,r=e.name,o=Object(p.getBlockType)(r),c=Object(l.useContext)(Nl),a=Object(l.useMemo)((function(){return o&&o.usesContext?Object(d.pick)(c,o.usesContext):Rl}),[o,c]);if(!o)return null;var s=o.edit||o.save;if(o.apiVersion>1||Object(p.hasBlockSupport)(o,"lightBlockWrapper",!1))return Object(l.createElement)(s,Object(i.a)({},e,{context:a}));var b=Object(p.hasBlockSupport)(o,"className",!0)?Object(p.getBlockDefaultClassName)(r):null,f=u()(b,n.className);return Object(l.createElement)(s,Object(i.a)({},e,{context:a,className:f}))}));function Fl(e){var t={name:e.name,isSelected:e.isSelected,clientId:e.clientId};return Object(l.createElement)(g,{value:Object(l.useMemo)((function(){return t}),Object.values(t))},Object(l.createElement)(Ml,e))}var Vl=n(47),Hl=n(281),zl=n(46),Gl=n(285),Ul=n(145),Wl=n(35),Kl=function(e){return e+1},ql=function(e){return{top:e.offsetTop,left:e.offsetLeft}},$l=function(e){var t=e.isSelected,n=e.adjustScrolling,r=e.enableAnimation,o=e.triggerAnimationOnChange,c=Object(l.useRef)(),i=Object(b.useReducedMotion)()||!r,a=Object(l.useReducer)(Kl,0),s=Object(Co.a)(a,2),u=s[0],d=s[1],f=Object(l.useReducer)(Kl,0),p=Object(Co.a)(f,2),m=p[0],v=p[1],O=Object(l.useState)({x:0,y:0}),g=Object(Co.a)(O,2),h=g[0],j=g[1],y=Object(l.useMemo)((function(){return c.current?ql(c.current):null}),[o]),k=Object(l.useMemo)((function(){if(!n||!c.current)return function(){};var e=Object(Wl.getScrollContainer)(c.current);if(!e)return function(){};var t=c.current.getBoundingClientRect();return function(){var n=c.current.getBoundingClientRect().top-t.top;n&&(e.scrollTop+=n)}}),[o,n]);function _(e){var n=e.x,r=e.y;n=Math.round(n),r=Math.round(r),n===_.x&&r===_.y||(function(e){var n=e.x,r=e.y;if(c.current){var o=0===n&&0===r;c.current.style.transformOrigin=o?"":"center",c.current.style.transform=o?"":"translate3d(".concat(n,"px,").concat(r,"px,0)"),c.current.style.zIndex=!t||o?"":"1",k()}}({x:n,y:r}),_.x=n,_.y=r)}return Object(l.useLayoutEffect)((function(){u&&v()}),[u]),Object(l.useLayoutEffect)((function(){if(y)if(i)k();else{c.current.style.transform="";var e=ql(c.current);d(),j({x:Math.round(y.left-e.left),y:Math.round(y.top-e.top)})}}),[o]),_.x=0,_.y=0,Object(Ul.useSpring)({from:{x:h.x,y:h.y},to:{x:0,y:0},reset:u!==m,config:{mass:5,tension:2e3,friction:200},immediate:i,onFrame:_}),c},Yl=Object(Ul.animated)(m.__experimentalTreeGridRow);function Xl(e){var t=e.isSelected,n=e.position,r=e.level,o=e.rowCount,c=e.children,a=e.className,s=e.path,d=Object(j.a)(e,["isSelected","position","level","rowCount","children","className","path"]),b=$l({isSelected:t,adjustScrolling:!1,enableAnimation:!0,triggerAnimationOnChange:s.join("_")});return Object(l.createElement)(Yl,Object(i.a)({ref:b,className:u()("block-editor-block-navigation-leaf",a),level:r,positionInSet:n,setSize:o},d),c)}var Ql=n(283),Zl=n(284),Jl=n(407),es=n(240);var ts=function(e,t){return"up"===e?"horizontal"===t?Object(k.isRTL)()?Ql.a:Zl.a:Jl.a:"down"===e?"horizontal"===t?Object(k.isRTL)()?Zl.a:Ql.a:es.a:null},ns=function(e,t){return"up"===e?"horizontal"===t?Object(k.isRTL)()?Object(k.__)("Move right"):Object(k.__)("Move left"):Object(k.__)("Move up"):"down"===e?"horizontal"===t?Object(k.isRTL)()?Object(k.__)("Move left"):Object(k.__)("Move right"):Object(k.__)("Move down"):null},rs=Object(l.forwardRef)((function(e,t){var n=e.clientIds,r=e.direction,o=e.orientation,c=Object(j.a)(e,["clientIds","direction","orientation"]),a=Object(b.useInstanceId)(rs),s=Object(d.castArray)(n).length,f=Object(v.useSelect)((function(e){var t=e(yr),c=t.getBlockIndex,i=t.getBlockRootClientId,a=t.getBlockOrder,l=t.getBlock,s=t.getBlockListSettings,u=Object(d.castArray)(n),b=Object(d.first)(u),f=i(b),m=c(b,f),v=c(Object(d.last)(u),f),O=a(f),g=l(b),h=0===m,j=v===O.length-1,y=(s(f)||{}).orientation;return{blockType:g?Object(p.getBlockType)(g.name):null,isDisabled:"up"===r?h:j,rootClientId:f,firstIndex:m,isFirst:h,isLast:j,orientation:o||y}}),[n,r]),O=f.blockType,g=f.isDisabled,h=f.rootClientId,y=f.isFirst,_=f.isLast,E=f.firstIndex,w=f.orientation,C=void 0===w?"vertical":w,S=Object(v.useDispatch)(yr),B=S.moveBlocksDown,I=S.moveBlocksUp,x="up"===r?I:B,P="block-editor-block-mover-button__description-".concat(a);return Object(l.createElement)(l.Fragment,null,Object(l.createElement)(m.Button,Object(i.a)({ref:t,className:u()("block-editor-block-mover-button","is-".concat(r,"-button")),icon:ts(r,C),label:ns(r,C),"aria-describedby":P},c,{onClick:g?null:function(e){x(n,h),c.onClick&&c.onClick(e)},"aria-disabled":g})),Object(l.createElement)("span",{id:P,className:"block-editor-block-mover-button__description"},function(e,t,n,r,o,c,i){var a=n+1,l=function(e){return"up"===e?"horizontal"===i?Object(k.isRTL)()?"right":"left":"up":"down"===e?"horizontal"===i?Object(k.isRTL)()?"left":"right":"down":null};if(e>1)return function(e,t,n,r,o){var c=t+1;return o<0&&n?Object(k.__)("Blocks cannot be moved up as they are already at the top"):o>0&&r?Object(k.__)("Blocks cannot be moved down as they are already at the bottom"):o<0&&!n?Object(k.sprintf)(// translators: 1: Number of selected blocks, 2: Position of selected blocks
12
+ Object(k._n)("Move %1$d block from position %2$d up by one place","Move %1$d blocks from position %2$d up by one place",e),e,c):o>0&&!r?Object(k.sprintf)(// translators: 1: Number of selected blocks, 2: Position of selected blocks
13
+ Object(k._n)("Move %1$d block from position %2$d down by one place","Move %1$d blocks from position %2$d down by one place",e),e,c):void 0}(e,n,r,o,c);if(r&&o)return Object(k.sprintf)(// translators: %s: Type of block (i.e. Text, Image etc)
14
+ Object(k.__)("Block %s is the only block, and cannot be moved"),t);if(c>0&&!o){var s=l("down");if("down"===s)return Object(k.sprintf)(// translators: 1: Type of block (i.e. Text, Image etc), 2: Position of selected block, 3: New position
15
+ Object(k.__)("Move %1$s block from position %2$d down to position %3$d"),t,a,a+1);if("left"===s)return Object(k.sprintf)(// translators: 1: Type of block (i.e. Text, Image etc), 2: Position of selected block, 3: New position
16
+ Object(k.__)("Move %1$s block from position %2$d left to position %3$d"),t,a,a+1);if("right"===s)return Object(k.sprintf)(// translators: 1: Type of block (i.e. Text, Image etc), 2: Position of selected block, 3: New position
17
+ Object(k.__)("Move %1$s block from position %2$d right to position %3$d"),t,a,a+1)}if(c>0&&o){var u=l("down");if("down"===u)return Object(k.sprintf)(// translators: 1: Type of block (i.e. Text, Image etc)
18
+ Object(k.__)("Block %1$s is at the end of the content and can’t be moved down"),t);if("left"===u)return Object(k.sprintf)(// translators: 1: Type of block (i.e. Text, Image etc)
19
+ Object(k.__)("Block %1$s is at the end of the content and can’t be moved left"),t);if("right"===u)return Object(k.sprintf)(// translators: 1: Type of block (i.e. Text, Image etc)
20
+ Object(k.__)("Block %1$s is at the end of the content and can’t be moved right"),t)}if(c<0&&!r){var d=l("up");if("up"===d)return Object(k.sprintf)(// translators: 1: Type of block (i.e. Text, Image etc), 2: Position of selected block, 3: New position
21
+ Object(k.__)("Move %1$s block from position %2$d up to position %3$d"),t,a,a-1);if("left"===d)return Object(k.sprintf)(// translators: 1: Type of block (i.e. Text, Image etc), 2: Position of selected block, 3: New position
22
+ Object(k.__)("Move %1$s block from position %2$d left to position %3$d"),t,a,a-1);if("right"===d)return Object(k.sprintf)(// translators: 1: Type of block (i.e. Text, Image etc), 2: Position of selected block, 3: New position
23
+ Object(k.__)("Move %1$s block from position %2$d right to position %3$d"),t,a,a-1)}if(c<0&&r){var b=l("up");if("up"===b)return Object(k.sprintf)(// translators: 1: Type of block (i.e. Text, Image etc)
24
+ Object(k.__)("Block %1$s is at the beginning of the content and can’t be moved up"),t);if("left"===b)return Object(k.sprintf)(// translators: 1: Type of block (i.e. Text, Image etc)
25
+ Object(k.__)("Block %1$s is at the beginning of the content and can’t be moved left"),t);if("right"===b)return Object(k.sprintf)(// translators: 1: Type of block (i.e. Text, Image etc)
26
+ Object(k.__)("Block %1$s is at the beginning of the content and can’t be moved right"),t)}}(s,O&&O.title,E,y,_,"up"===r?-1:1,C)))})),os=Object(l.forwardRef)((function(e,t){return Object(l.createElement)(rs,Object(i.a)({direction:"up",ref:t},e))})),cs=Object(l.forwardRef)((function(e,t){return Object(l.createElement)(rs,Object(i.a)({direction:"down",ref:t},e))})),is=Object(l.createContext)({__experimentalFeatures:!1,__experimentalPersistentListViewFeatures:!1}),as=function(){return Object(l.useContext)(is)},ls=Object(l.createElement)(Ir.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(Ir.Path,{d:"M11 13h2v-2h-2v2zm-6 0h2v-2H5v2zm12-2v2h2v-2h-2z"})),ss=function(e){var t=e.className,n=e.actions,r=e.children,o=e.secondaryActions;return Object(l.createElement)("div",{className:u()(t,"block-editor-warning")},Object(l.createElement)("div",{className:"block-editor-warning__contents"},Object(l.createElement)("p",{className:"block-editor-warning__message"},r),(l.Children.count(n)>0||o)&&Object(l.createElement)("div",{className:"block-editor-warning__actions"},l.Children.count(n)>0&&l.Children.map(n,(function(e,t){return Object(l.createElement)("span",{key:t,className:"block-editor-warning__action"},e)})),o&&Object(l.createElement)(m.DropdownMenu,{className:"block-editor-warning__secondary",icon:ls,label:Object(k.__)("More options"),popoverProps:{position:"bottom left",className:"block-editor-warning__dropdown"},noIcons:!0},(function(){return Object(l.createElement)(m.MenuGroup,null,o.map((function(e,t){return Object(l.createElement)(m.MenuItem,{onClick:e.onClick,key:t},e.title)})))})))))},us=n(356),ds=function(e){var t=e.title,n=e.rawContent,r=e.renderedContent,o=e.action,c=e.actionText,i=e.className;return Object(l.createElement)("div",{className:i},Object(l.createElement)("div",{className:"block-editor-block-compare__content"},Object(l.createElement)("h2",{className:"block-editor-block-compare__heading"},t),Object(l.createElement)("div",{className:"block-editor-block-compare__html"},n),Object(l.createElement)("div",{className:"block-editor-block-compare__preview edit-post-visual-editor"},r)),Object(l.createElement)("div",{className:"block-editor-block-compare__action"},Object(l.createElement)(m.Button,{isSecondary:!0,tabIndex:"0",onClick:o},c)))},bs=function(e){var t,n,r,o,c=e.block,i=e.onKeep,a=e.onConvert,s=e.convertor,b=e.convertButtonText,f={rawContent:c.originalContent,renderedContent:Object(p.getSaveElement)(c.name,c.attributes)},m=(t=s(c),r=(n=Object(d.castArray)(t)).map((function(e){return Object(p.getSaveContent)(e.name,e.attributes,e.innerBlocks)})),o=n.map((function(e){return Object(p.getSaveElement)(e.name,e.attributes,e.innerBlocks)})),{rawContent:r.join(""),renderedContent:o}),v=function(e,t){return Object(us.diffChars)(e,t).map((function(e,t){var n=u()({"block-editor-block-compare__added":e.added,"block-editor-block-compare__removed":e.removed});return Object(l.createElement)("span",{key:t,className:n},e.value)}))}(f.rawContent,m.rawContent);return Object(l.createElement)("div",{className:"block-editor-block-compare__wrapper"},Object(l.createElement)(ds,{title:Object(k.__)("Current"),className:"block-editor-block-compare__current",action:i,actionText:Object(k.__)("Convert to HTML"),rawContent:f.rawContent,renderedContent:f.renderedContent}),Object(l.createElement)(ds,{title:Object(k.__)("After Conversion"),className:"block-editor-block-compare__converted",action:a,actionText:b,rawContent:v,renderedContent:m.renderedContent}))},fs=function(e){return Object(p.rawHandler)({HTML:e.originalContent})},ps=Object(b.compose)([Object(v.withSelect)((function(e,t){var n=t.clientId;return{block:e(yr).getBlock(n)}})),Object(v.withDispatch)((function(e,t){var n=t.block,r=e(yr).replaceBlock;return{convertToClassic:function(){r(n.clientId,function(e){return Object(p.createBlock)("core/freeform",{content:e.originalContent})}(n))},convertToHTML:function(){r(n.clientId,function(e){return Object(p.createBlock)("core/html",{content:e.originalContent})}(n))},convertToBlocks:function(){r(n.clientId,fs(n))},attemptBlockRecovery:function(){var e,t,o,c;r(n.clientId,(t=(e=n).name,o=e.attributes,c=e.innerBlocks,Object(p.createBlock)(t,o,c)))}}}))])((function(e){var t=e.convertToHTML,n=e.convertToBlocks,r=e.convertToClassic,o=e.attemptBlockRecovery,c=e.block,i=!!Object(p.getBlockType)("core/html"),a=Object(l.useState)(!1),s=Object(Co.a)(a,2),u=s[0],d=s[1],b=Object(l.useCallback)((function(){return d(!0)}),[]),f=Object(l.useCallback)((function(){return d(!1)}),[]),v=Object(l.useMemo)((function(){return[{
27
  // translators: Button to fix block content
28
+ title:Object(k._x)("Resolve","imperative verb"),onClick:b},i&&{title:Object(k.__)("Convert to HTML"),onClick:t},{title:Object(k.__)("Convert to Classic Block"),onClick:r}].filter(Boolean)}),[b,t,r]);return Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ss,{actions:[Object(l.createElement)(m.Button,{key:"recover",onClick:o,isPrimary:!0},Object(k.__)("Attempt Block Recovery"))],secondaryActions:v},Object(k.__)("This block contains unexpected or invalid content.")),u&&Object(l.createElement)(m.Modal,{title:// translators: Dialog title to fix block content
29
+ Object(k.__)("Resolve Block"),onRequestClose:f,className:"block-editor-block-compare"},Object(l.createElement)(bs,{block:c,onKeep:t,onConvert:n,convertor:fs,convertButtonText:Object(k.__)("Convert to Blocks")})))})),ms=Object(l.createElement)(ss,{className:"block-editor-block-list__block-crash-warning"},Object(k.__)("This block has encountered an error and cannot be previewed.")),vs=function(){return ms};var Os=function(e){Object(Oa.a)(o,e);var t,n,r=(t=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=Object(ha.a)(t);if(n){var o=Object(ha.a)(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return Object(ga.a)(this,e)});function o(){var e;return Object(pa.a)(this,o),(e=r.apply(this,arguments)).state={hasError:!1},e}return Object(ma.a)(o,[{key:"componentDidCatch",value:function(){this.setState({hasError:!0})}},{key:"render",value:function(){return this.state.hasError?this.props.fallback:this.props.children}}]),o}(l.Component),gs=n(121),hs=n.n(gs),js=function(e){var t=e.clientId,n=Object(l.useState)(""),r=Object(Co.a)(n,2),o=r[0],c=r[1],i=Object(v.useSelect)((function(e){return e(yr).getBlock(t)}),[t]),a=Object(v.useDispatch)(yr).updateBlock;return Object(l.useEffect)((function(){c(Object(p.getBlockContent)(i))}),[i]),Object(l.createElement)(hs.a,{className:"block-editor-block-list__block-html-textarea",value:o,onBlur:function(){var e=Object(p.getBlockType)(i.name),n=Object(p.getBlockAttributes)(e,o,i.attributes),r=o||Object(p.getSaveContent)(e,n),l=!o||Object(p.isValidBlockContent)(e,n,r);a(t,{attributes:n,originalContent:r,isValid:l}),o||c({content:r})},onChange:function(e){return c(e.target.value)}})};function ys(e){var t=Object(l.useRef)(),n=function(e){return Object(v.useSelect)((function(t){var n=t(yr),r=n.getSelectedBlocksInitialCaretPosition,o=n.isMultiSelecting,c=n.isNavigationMode;if((0,n.isBlockSelected)(e)&&!o()&&!c())return r()}),[e])}(e);return Object(l.useEffect)((function(){if(null!=n&&t.current){var e=t.current.ownerDocument;if(!t.current.contains(e.activeElement)){var r=Wl.focus.tabbable.find(t.current).filter((function(e){return Object(Wl.isTextField)(e)})),o=-1===n,c=(o?d.last:d.first)(r)||t.current;Bc(t.current,c)&&!c.closest(".block-list-appender")?Object(Wl.placeCaretAtHorizontalEdge)(c,o):t.current.focus()}}}),[n]),t}function ks(e){if(!e.defaultPrevented){var t="mouseover"===e.type?"add":"remove";e.preventDefault(),e.currentTarget.classList[t]("is-hovered")}}function _s(){var e=Object(v.useSelect)((function(e){var t=e(yr),n=t.isNavigationMode,r=t.getSettings;return n()||r().outlineMode}),[]);return Object(b.useRefEffect)((function(t){if(e)return t.addEventListener("mouseout",ks),t.addEventListener("mouseover",ks),function(){t.removeEventListener("mouseout",ks),t.removeEventListener("mouseover",ks),t.classList.remove("is-hovered")}}),[e])}function Es(e){return Object(v.useSelect)((function(t){var n=t(yr),r=n.isBlockBeingDragged,o=n.isBlockHighlighted,c=n.isBlockSelected,i=n.isBlockMultiSelected,a=n.getBlockName,l=n.getSettings,s=n.hasSelectedInnerBlock,d=n.__experimentalGetActiveBlockIdByBlockNames,b=l().__experimentalSpotlightEntityBlocks,f=r(e),m=c(e),v=a(e),O=s(e,!0),g=d(b);return u()("block-editor-block-list__block",{"is-selected":m,"is-highlighted":o(e),"is-multi-selected":i(e),"is-reusable":Object(p.isReusableBlock)(Object(p.getBlockType)(v)),"is-dragging":f,"has-child-selected":O,"has-active-entity":g,"is-active-entity":g===e})}),[e])}function ws(e){return Object(v.useSelect)((function(t){var n=t(yr).getBlockName(e),r=Object(p.getBlockType)(n);if(r.apiVersion>1||Object(p.hasBlockSupport)(r,"lightBlockWrapper",!1))return Object(p.getBlockDefaultClassName)(n)}),[e])}function Cs(e){return Object(v.useSelect)((function(t){var n=t(yr),r=n.getBlockName,o=(0,n.getBlockAttributes)(e).className;if(o){var c=Object(p.getBlockType)(r(e));if(c.apiVersion>1||Object(p.hasBlockSupport)(c,"lightBlockWrapper",!1))return o}}),[e])}function Ss(e){return Object(v.useSelect)((function(t){var n=t(yr),r=n.hasBlockMovingClientId,o=n.canInsertBlockType,c=n.getBlockName,i=n.getBlockRootClientId;if((0,n.isBlockSelected)(e)){var a=r();if(a)return u()("is-block-moving-mode",{"can-insert-moving-block":o(c(a),i(e))})}}),[e])}function Bs(e,t){for(var n="start"===t?"firstChild":"lastChild",r="start"===t?"nextSibling":"previousSibling";e[n];)for(e=e[n];e.nodeType===e.TEXT_NODE&&/^[ \t\n]*$/.test(e.data)&&e[r];)e=e[r];return e}function Is(e){var t=e(yr),n=t.isSelectionEnabled,r=t.isMultiSelecting,o=t.getMultiSelectedBlockClientIds,c=t.hasMultiSelection,i=t.getBlockParents,a=t.getSelectedBlockClientId;return{isSelectionEnabled:n(),isMultiSelecting:r(),multiSelectedBlockClientIds:o(),hasMultiSelection:c(),getBlockParents:i,selectedBlockClientId:a()}}function xs(e,t){Array.from(e.querySelectorAll(".rich-text")).forEach((function(e){t?e.setAttribute("contenteditable",!0):e.removeAttribute("contenteditable")}))}var Ps=Object(l.createContext)(),Ts={position:"fixed"};function Ns(e){var t=e.tagName;return"INPUT"===t||"BUTTON"===t||"SELECT"===t||"TEXTAREA"===t}function Ds(e,t,n,r){var o,c=Wl.focus.focusable.find(n);return t&&(c=Object(d.reverse)(c)),c=c.slice(c.indexOf(e)+1),r&&(o=e.getBoundingClientRect()),Object(d.find)(c,(function(e){if(!Wl.focus.tabbable.isTabbableIndex(e))return!1;if(e.isContentEditable&&"true"!==e.contentEditable)return!1;if(r){var t=e.getBoundingClientRect();if(t.left>=o.right||t.right<=o.left)return!1}return!0}))}function As(e){var t=e(yr),n=t.getSelectedBlockClientId,r=t.getMultiSelectedBlocksStartClientId,o=t.getMultiSelectedBlocksEndClientId,c=t.getPreviousBlockClientId,i=t.getNextBlockClientId,a=t.getFirstMultiSelectedBlockClientId,l=t.getLastMultiSelectedBlockClientId,s=t.hasMultiSelection,u=t.getBlockOrder,b=t.isSelectionEnabled,f=t.getBlockSelectionStart,p=t.isMultiSelecting,m=t.getSettings,v=t.isNavigationMode,O=n(),g=r(),h=o(),j=u();return{selectedBlockClientId:O,selectionStartClientId:g,selectionBeforeEndClientId:c(h||O),selectionAfterEndClientId:i(h||O),selectedFirstClientId:a(),selectedLastClientId:l(),hasMultiSelection:s(),firstBlock:Object(d.first)(j),lastBlock:Object(d.last)(j),isSelectionEnabled:b(),blockSelectionStart:f(),isMultiSelecting:p(),keepCaretInsideBlock:m().keepCaretInsideBlock,isNavigationMode:v()}}function Ls(e){var t=e.children,n=Object(l.useRef)(),r=Object(l.useRef)(),o=Object(l.useRef)(),c=Object(l.useRef)(),i=Object(l.useRef)(),a=Object(l.useRef)(),s=Object(l.useRef)(),u=Object(v.useSelect)(As,[]),d=u.selectedBlockClientId,b=u.selectionStartClientId,f=u.selectionBeforeEndClientId,p=u.selectionAfterEndClientId,m=u.selectedFirstClientId,O=u.selectedLastClientId,g=u.hasMultiSelection,h=u.firstBlock,j=u.lastBlock,_=u.isSelectionEnabled,E=u.blockSelectionStart,w=u.isMultiSelecting,C=u.keepCaretInsideBlock,S=u.isNavigationMode,B=Object(v.useDispatch)(yr),I=B.multiSelect,x=B.selectBlock,P=B.setNavigationMode;function T(e){var t=e?f:p;t&&I(b||d,t)}function N(e){var t=e?m:O;t&&x(t)}Object(l.useEffect)((function(){g&&!w&&c.current.focus()}),[g,w]);var D=function(e){var t=Object(v.useSelect)(Is,[]),n=t.isSelectionEnabled,r=t.isMultiSelecting,o=t.multiSelectedBlockClientIds,c=t.hasMultiSelection,i=t.getBlockParents,a=t.selectedBlockClientId,s=Object(v.useDispatch)(yr),u=s.startMultiSelect,d=s.stopMultiSelect,b=s.multiSelect,f=s.selectBlock,p=Object(l.useRef)(),m=Object(l.useRef)(),O=Object(l.useRef)();Object(l.useEffect)((function(){var t=e.current.ownerDocument,n=t.defaultView;if(c&&!r){var i=o.length;if(!(i<2)){var l=o[0],s=o[i-1],u=Sc(l,t),d=Sc(s,t),b=n.getSelection(),f=t.createRange();u=Bs(u,"start"),d=Bs(d,"end"),f.setStartBefore(u),f.setEndAfter(d),b.removeAllRanges(),b.addRange(f)}}else{if(!a||r)return;var p=n.getSelection();if(p.rangeCount&&!p.isCollapsed){var m=Sc(a,t),v=p.getRangeAt(0),O=v.startContainer,g=v.endContainer;!m||m.contains(O)&&m.contains(g)||p.removeAllRanges()}}}),[c,r,o,f,a]);var g=Object(l.useCallback)((function(t){var n=t.isSelectionEnd,r=e.current.ownerDocument.defaultView.getSelection();if(r.rangeCount&&!r.isCollapsed){var o=Ic(r.focusNode);if(m.current===o){if(f(o),n&&(xs(e.current,!0),r.rangeCount)){var c=r.getRangeAt(0).commonAncestorContainer;O.current.contains(c)&&O.current.focus()}}else{var a=[].concat(Object(y.a)(i(m.current)),[m.current]),l=[].concat(Object(y.a)(i(o)),[o]),s=Math.min(a.length,l.length)-1;b(a[s],l[s])}}else xs(e.current,!0)}),[f,i,b]),h=Object(l.useCallback)((function(){var t=e.current.ownerDocument,n=t.defaultView;t.removeEventListener("selectionchange",g),n.removeEventListener("mouseup",h),p.current=n.requestAnimationFrame((function(){g({isSelectionEnd:!0}),d()}))}),[g,d]);return Object(l.useEffect)((function(){var t=e.current.ownerDocument,n=t.defaultView;return function(){t.removeEventListener("selectionchange",g),n.removeEventListener("mouseup",h),n.cancelAnimationFrame(p.current)}}),[g,h]),Object(l.useCallback)((function(t){if(n){var r=e.current.ownerDocument,o=r.defaultView;m.current=t,O.current=r.activeElement,u(),r.addEventListener("selectionchange",g),o.addEventListener("mouseup",h),xs(e.current,!1)}}),[n,u,h])}(n),A=Object(l.useRef)();function L(e){if(a.current)a.current=null;else if(g)c.current.focus();else if(d)A.current.focus();else{P(!0);var t=e.target.compareDocumentPosition(n.current)&e.target.DOCUMENT_POSITION_FOLLOWING?"findNext":"findPrevious";Wl.focus.tabbable[t](e.target).focus()}}Object(l.useEffect)((function(){function e(e){A.current=e.target}return n.current.addEventListener("focusout",e),function(){n.current.removeEventListener("focusout",e)}}),[]);var R=S?void 0:"0";return Object(l.createElement)(Ps.Provider,{value:D},Object(l.createElement)("div",{ref:r,tabIndex:R,onFocus:L,style:Ts}),Object(l.createElement)("div",{ref:c,tabIndex:g?"0":void 0,"aria-label":g?Object(k.__)("Multiple selected blocks"):void 0,style:Ts,onKeyDown:function(e){var t=e.keyCode,n=e.shiftKey,c=t===li.UP,i=t===li.DOWN,l=t===li.LEFT,s=t===li.RIGHT,u=c||l,d=l||s||c||i;t===li.TAB?(a.current=!0,n?r.current.focus():o.current.focus()):d&&((n?T:N)(u),e.preventDefault())}}),Object(l.createElement)("div",{ref:n,className:"block-editor-writing-flow",onKeyDown:function(e){var t=e.keyCode,c=e.target;if(n.current.contains(c)){var l=t===li.UP,u=t===li.DOWN,b=t===li.LEFT,m=t===li.RIGHT,v=t===li.TAB,O=t===li.ESCAPE,g=l||b,y=b||m,k=l||u,_=y||k,E=e.shiftKey,w=E||e.ctrlKey||e.altKey||e.metaKey,S=k?Wl.isVerticalEdge:Wl.isHorizontalEdge,B=n.current.ownerDocument.defaultView;if(d){if(v){var x=E?"findPrevious":"findNext";if(Ns(c)&&Ns(Wl.focus.tabbable[x](c)))return;var N=E?r:o;return a.current=!0,void N.current.focus()}O&&P(!0)}if(k?s.current||(s.current=Object(Wl.computeCaretRect)(B)):s.current=null,!_)return li.isKeyboardEvent.primary(e)&&(i.current=Object(Wl.isEntirelySelected)(c)),void(li.isKeyboardEvent.primary(e,"a")&&((c.isContentEditable?i.current:Object(Wl.isEntirelySelected)(c))&&(I(h,j),e.preventDefault()),i.current=!0));if(!e.nativeEvent.defaultPrevented&&function(e,t,n){if((t===li.UP||t===li.DOWN)&&!n)return!0;var r=e.tagName;return"INPUT"!==r&&"TEXTAREA"!==r}(c,t,w)){var D,A="rtl"===(D=c).ownerDocument.defaultView.getComputedStyle(D).direction?!g:g;if(E)(g&&f||!g&&p)&&function(e,t){var r,o,c=Ds(e,t,n.current);return!(c&&(r=e,o=c,r.closest(".block-editor-block-list__block")===o.closest(".block-editor-block-list__block")))}(c,g)&&S(c,g)&&(T(g),e.preventDefault());else if(k&&Object(Wl.isVerticalEdge)(c,g)&&!C){var L=Ds(c,g,n.current,!0);L&&(Object(Wl.placeCaretAtVerticalEdge)(L,g,s.current),e.preventDefault())}else if(y&&B.getSelection().isCollapsed&&Object(Wl.isHorizontalEdge)(c,A)&&!C){var R=Ds(c,A,n.current);Object(Wl.placeCaretAtHorizontalEdge)(R,A),e.preventDefault()}}}},onMouseDown:function(e){if(s.current=null,_&&0===e.button){var t=Ic(e.target);t&&(e.shiftKey?E!==t&&(I(E,t),e.preventDefault()):g&&x(t))}}},t),Object(l.createElement)("div",{ref:o,tabIndex:R,onFocus:L,style:Ts}))}function Rs(e){var t=Object(l.useContext)(Ps),n=Object(v.useSelect)((function(t){var n=t(yr),r=n.isBlockSelected,o=n.getBlockRootClientId,c=n.getBlockIndex;return{isSelected:r(e),rootClientId:o(e),index:c(e)}}),[e]),r=n.isSelected,o=n.rootClientId,c=n.index,i=Object(v.useDispatch)(yr),a=i.insertDefaultBlock,s=i.removeBlock,u=i.selectBlock;return Object(b.useRefEffect)((function(n){if(!r){function i(t){Bc(n,t.target)&&u(e)}return n.addEventListener("focusin",i),function(){n.removeEventListener("focusin",i)}}function l(t){var r=t.keyCode,i=t.target;r!==li.ENTER&&r!==li.BACKSPACE&&r!==li.DELETE||i!==n||Object(Wl.isTextField)(i)||(t.preventDefault(),r===li.ENTER?a({},o,c+1):s(e))}function d(n){1===n.buttons&&t(e)}function b(e){e.preventDefault()}return n.addEventListener("keydown",l),n.addEventListener("mouseleave",d),n.addEventListener("dragstart",b),function(){n.removeEventListener("mouseleave",d),n.removeEventListener("keydown",l),n.removeEventListener("dragstart",b)}}),[r,o,c,t,a,s,u])}function Ms(e){var t=Object(v.useSelect)((function(t){var n=t(yr),r=n.isNavigationMode,o=n.isBlockSelected;return r()&&o(e)}),[]),n=Object(v.useDispatch)(yr).setNavigationMode;return Object(b.useRefEffect)((function(e){if(t)return e.addEventListener("mousedown",r),function(){e.addEventListener("mousedown",r)};function r(){n(!1)}}),[t])}var Fs=n(71),Vs=n(177),Hs=[Object(l.createInterpolateElement)(Object(k.__)("While writing, you can press <kbd>/</kbd> to quickly insert new blocks."),{kbd:Object(l.createElement)("kbd",null)}),Object(l.createInterpolateElement)(Object(k.__)("Indent a list by pressing <kbd>space</kbd> at the beginning of a line."),{kbd:Object(l.createElement)("kbd",null)}),Object(l.createInterpolateElement)(Object(k.__)("Outdent a list by pressing <kbd>backspace</kbd> at the beginning of a line."),{kbd:Object(l.createElement)("kbd",null)}),Object(k.__)("Drag files into the editor to automatically insert media blocks."),Object(k.__)("Change a block's type by pressing the block icon on the toolbar.")],zs=function(){var e=Object(l.useState)(Math.floor(Math.random()*Hs.length)),t=Object(Co.a)(e,1)[0];return Object(l.createElement)(m.Tip,null,Hs[t])},Gs=n(135),Us=n(282),Ws=function e(t){var n=t.className,r=t.onChange,o=t.value,c=t.label,i=t.placeholder,a=Object(b.useInstanceId)(e),s=Object(l.useRef)();return Object(l.createElement)("div",{className:u()("block-editor-inserter__search",n)},Object(l.createElement)(m.VisuallyHidden,{as:"label",htmlFor:"block-editor-inserter__search-".concat(a)},c||i),Object(l.createElement)("input",{ref:s,className:"block-editor-inserter__search-input",id:"block-editor-inserter__search-".concat(a),type:"search",placeholder:i,onChange:function(e){return r(e.target.value)},autoComplete:"off",value:o||""}),Object(l.createElement)("div",{className:"block-editor-inserter__search-icon"},!!o&&Object(l.createElement)(m.Button,{icon:Gs.a,label:Object(k.__)("Reset search"),onClick:function(){r(""),s.current.focus()}}),!o&&Object(l.createElement)(ra.a,{icon:Us.a})))},Ks=function(e){var t=e.title,n=e.icon,r=e.description,o=e.blockType;return o&&(Ft()("`blockType` property in `BlockCard component`",{since:"5.7",alternative:"`title, icon and description` properties"}),t=o.title,n=o.icon,r=o.description),Object(l.createElement)("div",{className:"block-editor-block-card"},Object(l.createElement)(hl,{icon:n,showColors:!0}),Object(l.createElement)("div",{className:"block-editor-block-card__content"},Object(l.createElement)("h2",{className:"block-editor-block-card__title"},t),Object(l.createElement)("span",{className:"block-editor-block-card__description"},r)))};function qs(e){var t=e.clientId,n=void 0===t?null:t,r=e.value,o=e.selection,c=e.onChange,i=void 0===c?d.noop:c,a=e.onInput,s=void 0===a?d.noop:a,u=Object(v.useRegistry)(),b=u.dispatch(yr),f=b.resetBlocks,m=b.resetSelection,O=b.replaceInnerBlocks,g=b.setHasControlledInnerBlocks,h=b.__unstableMarkNextChangeAsNotPersistent,j=u.select(yr),y=j.getBlockName,k=j.getBlocks,_=Object(l.useRef)({incoming:null,outgoing:[]}),E=Object(l.useRef)(!1),w=Object(l.useRef)(s),C=Object(l.useRef)(i);Object(l.useEffect)((function(){w.current=s,C.current=i}),[s,i]),Object(l.useEffect)((function(){_.current.outgoing.includes(r)?Object(d.last)(_.current.outgoing)===r&&(_.current.outgoing=[]):k(n)!==r&&(_.current.outgoing=[],function(){if(r)if(h(),n){g(n,!0),h();var e=r.map((function(e){return Object(p.cloneBlock)(e)}));E.current&&(_.current.incoming=e),O(n,e)}else E.current&&(_.current.incoming=r),f(r)}(),o&&m(o.selectionStart,o.selectionEnd,o.initialPosition))}),[r,n]),Object(l.useEffect)((function(){var e=u.select(yr),t=e.getSelectionStart,r=e.getSelectionEnd,o=e.getSelectedBlocksInitialCaretPosition,c=e.isLastBlockChangePersistent,i=e.__unstableIsLastBlockChangeIgnored,a=k(n),l=c(),s=!1;E.current=!0;var d=u.subscribe((function(){if(null===n||null!==y(n)){var e=c(),u=k(n),d=u!==a;if(a=u,d&&(_.current.incoming||i()))return _.current.incoming=null,void(l=e);(d||s&&!d&&e&&!l)&&(l=e,_.current.outgoing.push(a),(l?C.current:w.current)(a,{selection:{selectionStart:t(),selectionEnd:r(),initialPosition:o()}})),s=d}}));return function(){return d()}}),[u,n])}var $s,Ys=Object(b.createHigherOrderComponent)((function(e){return Object(v.withRegistry)((function(t){var n=t.useSubRegistry,r=void 0===n||n,o=t.registry,c=Object(j.a)(t,["useSubRegistry","registry"]);if(!r)return Object(l.createElement)(e,Object(i.a)({registry:o},c));var a=Object(l.useState)(null),s=Object(Co.a)(a,2),u=s[0],d=s[1];return Object(l.useEffect)((function(){var e=Object(v.createRegistry)({},o);e.registerStore(Ht,jr),d(e)}),[o]),u?Object(l.createElement)(v.RegistryProvider,{value:u},Object(l.createElement)(e,Object(i.a)({registry:u},c))):null}))}),"withRegistryProvider")((function(e){var t=e.children,n=e.settings,r=Object(v.useDispatch)(yr).updateSettings;return Object(l.useEffect)((function(){r(n)}),[n]),qs(e),t}));function Xs(e){var t=e.onClick;return Object(l.createElement)("div",{tabIndex:0,role:"button",onClick:t,onKeyPress:t},Object(l.createElement)(m.Disabled,null,Object(l.createElement)(kb,null)))}var Qs=function(e){var t=e.viewportWidth,n=e.__experimentalPadding,r=Object(b.useResizeObserver)(),o=Object(Co.a)(r,2),c=o[0],i=o[1].width,a=Object(b.useResizeObserver)(),s=Object(Co.a)(a,2),u=s[0],d=s[1].height;$s=$s||Object(b.pure)(kb);var f=(i-2*n)/t;return Object(l.createElement)("div",{className:"block-editor-block-preview__container editor-styles-wrapper","aria-hidden":!0,style:{height:d*f+2*n}},c,Object(l.createElement)(m.Disabled,{style:{transform:"scale(".concat(f,")"),width:t,left:n,right:n,top:n},className:"block-editor-block-preview__content"},u,Object(l.createElement)($s,null)))};function Zs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Js=Object(l.memo)((function(e){var t=e.blocks,n=e.__experimentalPadding,r=void 0===n?0:n,o=e.viewportWidth,c=void 0===o?1200:o,i=e.__experimentalLive,s=void 0!==i&&i,u=e.__experimentalOnClick,b=Object(v.useSelect)((function(e){return e(yr).getSettings()}),[]),f=Object(l.useMemo)((function(){var e=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zs(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},b);return e.__experimentalBlockPatterns=[],e}),[b]),p=Object(l.useMemo)((function(){return Object(d.castArray)(t)}),[t]);return t&&0!==t.length?Object(l.createElement)(Ys,{value:p,settings:f},s?Object(l.createElement)(Xs,{onClick:u}):Object(l.createElement)(Qs,{viewportWidth:c,__experimentalPadding:r})):null}));function eu(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 tu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?eu(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var nu=function(e){var t,n,r=e.item,o=r.name,c=r.title,i=r.icon,a=r.description,s=r.initialAttributes,u=Object(p.getBlockType)(o),d=Object(p.isReusableBlock)(r);return Object(l.createElement)("div",{className:"block-editor-inserter__preview-container"},Object(l.createElement)("div",{className:"block-editor-inserter__preview"},d||u.example?Object(l.createElement)("div",{className:"block-editor-inserter__preview-content"},Object(l.createElement)(Js,{__experimentalPadding:16,viewportWidth:null!==(t=null===(n=u.example)||void 0===n?void 0:n.viewportWidth)&&void 0!==t?t:500,blocks:u.example?Object(p.getBlockFromExample)(r.name,{attributes:tu(tu({},u.example.attributes),s),innerBlocks:u.example.innerBlocks}):Object(p.createBlock)(o,s)})):Object(l.createElement)("div",{className:"block-editor-inserter__preview-content-missing"},Object(k.__)("No Preview Available."))),!d&&Object(l.createElement)(Ks,{title:c,icon:i,description:a}))},ru=Object(l.createContext)();function ou(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 cu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ou(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ou(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var iu=Object(l.forwardRef)((function(e,t){var n=e.isFirst,r=e.as,o=e.children,c=Object(j.a)(e,["isFirst","as","children"]),a=Object(l.useContext)(ru);return Object(l.createElement)(m.__unstableCompositeItem,Object(i.a)({ref:t,state:a,role:"option",focusable:!0},c),(function(e){var t=cu(cu({},e),{},{tabIndex:n?0:e.tabIndex});return r?Object(l.createElement)(r,t,o):"function"==typeof o?o(t):Object(l.createElement)(m.Button,t,o)}))})),au=Object(l.createElement)(Ir.SVG,{width:"18",height:"18",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18"},Object(l.createElement)(Ir.Path,{d:"M5 4h2V2H5v2zm6-2v2h2V2h-2zm-6 8h2V8H5v2zm6 0h2V8h-2v2zm-6 6h2v-2H5v2zm6 0h2v-2h-2v2z"}));function lu(e){var t=e.count,n=e.icon;return Object(l.createElement)("div",{className:"block-editor-block-draggable-chip-wrapper"},Object(l.createElement)("div",{className:"block-editor-block-draggable-chip"},Object(l.createElement)(m.Flex,{justify:"center",className:"block-editor-block-draggable-chip__content"},Object(l.createElement)(m.FlexItem,null,n?Object(l.createElement)(hl,{icon:n}):Object(k.sprintf)(
30
  /* translators: %d: Number of blocks. */
31
+ Object(k._n)("%d block","%d blocks",t),t)),Object(l.createElement)(m.FlexItem,null,Object(l.createElement)(hl,{icon:au})))))}var su=function(e){var t=e.isEnabled,n=e.blocks,r=e.icon,o=e.children,c={type:"inserter",blocks:n};return Object(l.createElement)(m.Draggable,{transferData:c,__experimentalDragComponent:Object(l.createElement)(lu,{count:n.length,icon:r})},(function(e){var n=e.onDraggableStart,r=e.onDraggableEnd;return o({draggable:t,onDragStart:t?n:void 0,onDragEnd:t?r:void 0})}))};function uu(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window,t=e.navigator.platform;return-1!==t.indexOf("Mac")||["iPad","iPhone"].includes(t)}var du=Object(l.memo)((function(e){var t=e.className,n=e.isFirst,r=e.item,o=e.onSelect,c=e.onHover,a=e.isDraggable,s=Object(j.a)(e,["className","isFirst","item","onSelect","onHover","isDraggable"]),d=Object(l.useRef)(!1),b=r.icon?{backgroundColor:r.icon.background,color:r.icon.foreground}:{},f=Object(l.useMemo)((function(){return[Object(p.createBlock)(r.name,r.initialAttributes,Object(p.createBlocksFromInnerBlocksTemplate)(r.innerBlocks))]}),[r.name,r.initialAttributes,r.initialAttributes]);return Object(l.createElement)(su,{isEnabled:a&&!r.disabled,blocks:f,icon:r.icon},(function(e){var a=e.draggable,f=e.onDragStart,p=e.onDragEnd;return Object(l.createElement)("div",{className:"block-editor-block-types-list__list-item",draggable:a,onDragStart:function(e){d.current=!0,f&&(c(null),f(e))},onDragEnd:function(e){d.current=!1,p&&p(e)}},Object(l.createElement)(iu,Object(i.a)({isFirst:n,className:u()("block-editor-block-types-list__item",t),disabled:r.isDisabled,onClick:function(e){e.preventDefault(),o(r,uu()?e.metaKey:e.ctrlKey),c(null)},onKeyDown:function(e){e.keyCode===li.ENTER&&(e.preventDefault(),o(r,uu()?e.metaKey:e.ctrlKey),c(null))},onFocus:function(){d.current||c(r)},onMouseEnter:function(){d.current||c(r)},onMouseLeave:function(){return c(null)},onBlur:function(){return c(null)}},s),Object(l.createElement)("span",{className:"block-editor-block-types-list__item-icon",style:b},Object(l.createElement)(hl,{icon:r.icon,showColors:!0})),Object(l.createElement)("span",{className:"block-editor-block-types-list__item-title"},r.title)))}))})),bu=Object(l.forwardRef)((function(e,t){var n=Object(l.useState)(!1),r=Object(Co.a)(n,2),o=r[0],c=r[1];return Object(l.useEffect)((function(){o&&Object(Rt.speak)(Object(k.__)("Use left and right arrow keys to move through blocks"))}),[o]),Object(l.createElement)("div",Object(i.a)({ref:t,role:"listbox","aria-orientation":"horizontal",onFocus:function(){c(!0)},onBlur:function(e){!e.currentTarget.contains(e.relatedTarget)&&c(!1)}},e))})),fu=Object(l.forwardRef)((function(e,t){var n=Object(l.useContext)(ru);return Object(l.createElement)(m.__unstableCompositeGroup,Object(i.a)({state:n,role:"presentation",ref:t},e))})),pu=function(e){var t=e.items,n=void 0===t?[]:t,r=e.onSelect,o=e.onHover,c=void 0===o?function(){}:o,i=e.children,a=e.label,s=e.isDraggable,u=void 0===s||s;return Object(l.createElement)(bu,{className:"block-editor-block-types-list","aria-label":a},function(e,t){for(var n=[],r=0,o=e.length;r<o;r+=3)n.push(e.slice(r,r+3));return n}(n).map((function(e,t){return Object(l.createElement)(fu,{key:t},e.map((function(e,n){return Object(l.createElement)(du,{key:e.id,item:e,className:Object(p.getBlockMenuDefaultClassName)(e.id),onSelect:r,onHover:c,isDraggable:u,isFirst:0===t&&0===n})})))})),i)},mu=function(e){var t=e.title,n=e.icon,r=e.children;return Object(l.createElement)(l.Fragment,null,Object(l.createElement)("div",{className:"block-editor-inserter__panel-header"},Object(l.createElement)("h2",{className:"block-editor-inserter__panel-title"},t),Object(l.createElement)(m.Icon,{icon:n})),Object(l.createElement)("div",{className:"block-editor-inserter__panel-content"},r))},vu=function(e){var t=e.children,n=Object(m.__unstableUseCompositeState)({shift:!0,wrap:"horizontal"});return Object(l.createElement)(ru.Provider,{value:n},t)};function Ou(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var gu=function(e){var t=e.rootClientId,n=e.onInsert,r=e.onHover,o=e.showMostUsedBlocks,c=Ol(t,n),i=Object(Co.a)(c,4),s=i[0],u=i[1],b=i[2],f=i[3],p=Object(l.useMemo)((function(){return Object(d.orderBy)(s,["frecency"],["desc"]).slice(0,6)}),[s]),m=Object(l.useMemo)((function(){return s.filter((function(e){return!e.category}))}),[s]),v=Object(l.useMemo)((function(){return Object(d.flow)((function(e){return e.filter((function(e){return e.category&&"reusable"!==e.category}))}),(function(e){return Object(d.groupBy)(e,"category")}))(s)}),[s]),O=Object(l.useMemo)((function(){var e=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ou(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ou(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},b);return Object.keys(b).forEach((function(t){e[t]=s.filter((function(e){return function(e){return e.name.split("/")[0]}(e)===t})),0===e[t].length&&delete e[t]})),e}),[s,b]);return Object(l.useEffect)((function(){return function(){return r(null)}}),[]),Object(l.createElement)(vu,null,Object(l.createElement)("div",null,o&&!!p.length&&Object(l.createElement)(mu,{title:Object(k._x)("Most used","blocks")},Object(l.createElement)(pu,{items:p,onSelect:f,onHover:r,label:Object(k._x)("Most used","blocks")})),Object(d.map)(u,(function(e){var t=v[e.slug];return t&&t.length?Object(l.createElement)(mu,{key:e.slug,title:e.title,icon:e.icon},Object(l.createElement)(pu,{items:t,onSelect:f,onHover:r,label:e.title})):null})),m.length>0&&Object(l.createElement)(mu,{className:"block-editor-inserter__uncategorized-blocks-panel",title:Object(k.__)("Uncategorized")},Object(l.createElement)(pu,{items:m,onSelect:f,onHover:r,label:Object(k.__)("Uncategorized")})),Object(d.map)(b,(function(e,t){var n=O[t];return n&&n.length?Object(l.createElement)(mu,{key:t,title:e.title,icon:e.icon},Object(l.createElement)(pu,{items:n,onSelect:f,onHover:r,label:e.title})):null}))))},hu=function(e){var t,n=e.selectedCategory,r=e.patternCategories,o=e.onClickCategory,c=e.children;return Object(l.createElement)(l.Fragment,null,Object(l.createElement)("div",{className:u()("block-editor-inserter__panel-header","block-editor-inserter__panel-header-patterns")},Object(l.createElement)(m.SelectControl,{className:"block-editor-inserter__panel-dropdown",label:Object(k.__)("Filter patterns"),hideLabelFromVision:!0,value:n.name,onChange:function(e){o(r.find((function(t){return e===t.name})))},onBlur:function(e){null!=e&&e.relatedTarget||e.stopPropagation()},options:(t=[],r.map((function(e){return t.push({value:e.name,label:e.label})})),t)})),Object(l.createElement)("div",{className:"block-editor-inserter__panel-content"},c))},ju=n(45),yu=function(e,t){var n=Object(v.useSelect)((function(e){var n=e(yr),r=n.__experimentalGetAllowedPatterns,o=n.getSettings;return{patterns:r(t),patternCategories:o().__experimentalBlockPatternCategories}}),[t]),r=n.patternCategories,o=n.patterns,c=Object(v.useDispatch)(ju.store).createSuccessNotice;return[o,r,Object(l.useCallback)((function(t,n){e(Object(d.map)(n,(function(e){return Object(p.cloneBlock)(e)})),t.name),c(Object(k.sprintf)(
32
  /* translators: %s: block pattern title. */
33
+ Object(k.__)('Block pattern "%s" inserted.'),t.title),{type:"snackbar"})}),[])]};function ku(e){var t=e.isDraggable,n=e.pattern,r=e.onClick,o=e.composite,c=n.name,a=n.viewportWidth,s=Object(v.useSelect)((function(e){return e(yr).__experimentalGetParsedPattern(c)}),[c]).blocks,u=Object(b.useInstanceId)(ku),d="block-editor-block-patterns-list__item-description-".concat(u);return Object(l.createElement)(su,{isEnabled:t,blocks:s},(function(e){var t=e.draggable,c=e.onDragStart,u=e.onDragEnd;return Object(l.createElement)("div",{className:"block-editor-block-patterns-list__list-item","aria-label":n.title,"aria-describedby":n.description?d:void 0,draggable:t,onDragStart:c,onDragEnd:u},Object(l.createElement)(m.__unstableCompositeItem,Object(i.a)({role:"option",as:"div"},o,{className:"block-editor-block-patterns-list__item",onClick:function(){return r(n,s)}}),Object(l.createElement)(Js,{blocks:s,viewportWidth:a}),Object(l.createElement)("div",{className:"block-editor-block-patterns-list__item-title"},n.title),!!n.description&&Object(l.createElement)(m.VisuallyHidden,{id:d},n.description)))}))}function _u(){return Object(l.createElement)("div",{className:"block-editor-block-patterns-list__item is-placeholder"})}var Eu=function(e){var t=e.isDraggable,n=e.blockPatterns,r=e.shownPatterns,o=e.onClickPattern,c=e.orientation,a=e.label,s=void 0===a?Object(k.__)("Block Patterns"):a,u=Object(m.__unstableUseCompositeState)({orientation:c});return Object(l.createElement)(m.__unstableComposite,Object(i.a)({},u,{role:"listbox",className:"block-editor-block-patterns-list","aria-label":s}),n.map((function(e){return r.includes(e)?Object(l.createElement)(ku,{key:e.name,pattern:e,onClick:o,isDraggable:t,composite:u}):Object(l.createElement)(_u,{key:e.name})})))};function wu(e){var t=e.rootClientId,n=e.onInsert,r=e.selectedCategory,o=e.onClickCategory,c=yu(n,t),i=Object(Co.a)(c,3),a=i[0],s=i[1],u=i[2],f=Object(l.useMemo)((function(){return s.filter((function(e){return a.some((function(t){var n;return null===(n=t.categories)||void 0===n?void 0:n.includes(e.name)}))}))}),[a,s]),p=r||f[0];Object(l.useEffect)((function(){a.some((function(e){return m(e)===1/0}))&&!f.find((function(e){return"uncategorized"===e.name}))&&f.push({name:"uncategorized",label:Object(k._x)("Uncategorized")})}),[f,a]);var m=Object(l.useCallback)((function(e){if(!e.categories||!e.categories.length)return 1/0;var t=Object(d.fromPairs)(f.map((function(e,t){return[e.name,t]})));return Math.min.apply(Math,Object(y.a)(e.categories.map((function(e){return void 0!==t[e]?t[e]:1/0}))))}),[f]),v=Object(l.useMemo)((function(){return a.filter((function(e){return"uncategorized"===p.name?m(e)===1/0:e.categories&&e.categories.includes(p.name)}))}),[a,p]),O=Object(l.useMemo)((function(){return v.sort((function(e,t){return m(e)-m(t)}))}),[v,m]),g=Object(b.useAsyncList)(O);return Object(l.createElement)(l.Fragment,null,!!v.length&&Object(l.createElement)(hu,{selectedCategory:p,patternCategories:f,onClickCategory:o},Object(l.createElement)(Eu,{shownPatterns:g,blockPatterns:v,onClickPattern:u,label:p.label,orientation:"vertical",isDraggable:!0})))}var Cu=function(e){var t=e.rootClientId,n=e.onInsert,r=e.onClickCategory,o=e.selectedCategory;return Object(l.createElement)(wu,{rootClientId:t,selectedCategory:o,onInsert:n,onClickCategory:r})},Su=n(31),Bu=function(){return Object(l.createElement)("div",{className:"block-editor-inserter__no-results"},Object(l.createElement)(ra.a,{className:"block-editor-inserter__no-results-icon",icon:gl.a}),Object(l.createElement)("p",null,Object(k.__)("No results found.")))};function Iu(e){var t=e.onHover,n=e.onInsert,r=e.rootClientId,o=Ol(r,n),c=Object(Co.a)(o,4),i=c[0],a=c[3],s=Object(l.useMemo)((function(){return i.filter((function(e){return"reusable"===e.category}))}),[i]);return 0===s.length?Object(l.createElement)(Bu,null):Object(l.createElement)(mu,{title:Object(k.__)("Reusable blocks")},Object(l.createElement)(pu,{items:s,onSelect:a,onHover:t,label:Object(k.__)("Reusable blocks")}))}var xu=function(e){var t=e.rootClientId,n=e.onInsert,r=e.onHover;return Object(l.createElement)(l.Fragment,null,Object(l.createElement)(Iu,{onHover:r,onInsert:n,rootClientId:t}),Object(l.createElement)("div",{className:"block-editor-inserter__manage-reusable-blocks-container"},Object(l.createElement)("a",{className:"block-editor-inserter__manage-reusable-blocks",href:Object(Su.addQueryArgs)("edit.php",{post_type:"wp_block"})},Object(k.__)("Manage Reusable blocks"))))},Pu=Object(m.createSlotFill)("__experimentalInserterMenuExtension"),Tu=Pu.Fill,Nu=Pu.Slot;Tu.Slot=Nu;var Du=Tu,Au=function(e){var t=e.rootClientId,n=e.insertionIndex,r=e.clientId,o=e.isAppender,c=e.onSelect,i=e.shouldFocusBlock,a=void 0===i||i,s=Object(v.useSelect)((function(e){var c,i,a=e(yr),l=a.getSelectedBlock,s=a.getBlockIndex,u=a.getBlockOrder,d=a.getBlockInsertionPoint;if(t||n||r||o)c=t,i=n||(r?s(r,c):u(c).length);else{var b=d();c=b.rootClientId,i=b.index}return{getSelectedBlock:l,destinationRootClientId:c,destinationIndex:i}}),[t,n,r,o]),u=s.destinationRootClientId,b=s.destinationIndex,f=s.getSelectedBlock,m=Object(v.useDispatch)(yr),O=m.replaceBlocks,g=m.insertBlocks,h=m.showInsertionPoint,j=m.hideInsertionPoint,y=Object(l.useCallback)((function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=f();!o&&r&&Object(p.isUnmodifiedDefaultBlock)(r)?O(r.clientId,e,null,a||n?0:null,t):g(e,b,u,!0,a||n?0:null,t);var i=Object(k.sprintf)(// translators: %d: the name of the block that has been added
34
+ Object(k._n)("%d block added.","%d blocks added.",Object(d.castArray)(e).length),Object(d.castArray)(e).length);Object(Rt.speak)(i),c&&c()}),[o,f,O,g,u,b,c,a]),_=Object(l.useCallback)((function(e){e?h(u,b):j()}),[h,j,u,b]);return[u,y,_]},Lu=function(e){var t=e.filterValue,n=e.onSelect,r=e.onHover,o=e.rootClientId,c=e.clientId,i=e.isAppender,a=e.maxBlockPatterns,s=e.maxBlockTypes,u=e.showBlockDirectory,f=void 0!==u&&u,p=e.isDraggable,v=void 0===p||p,O=e.shouldFocusBlock,g=void 0===O||O,h=Object(b.useDebounce)(Rt.speak,500),j=Au({onSelect:n,rootClientId:o,clientId:c,isAppender:i,shouldFocusBlock:g}),y=Object(Co.a)(j,2),_=y[0],E=y[1],w=Ol(_,E),C=Object(Co.a)(w,4),S=C[0],B=C[1],I=C[2],x=C[3],P=yu(E,_),T=Object(Co.a)(P,3),N=T[0],D=T[2],A=Object(l.useMemo)((function(){var e=pl(Object(d.orderBy)(S,["frecency"],["desc"]),B,I,t);return void 0!==s?e.slice(0,s):e}),[t,S,B,I,s]),L=Object(l.useMemo)((function(){var e=ml(N,t);return void 0!==a?e.slice(0,a):e}),[t,N,a]);Object(l.useEffect)((function(){if(t){var e=A.length+L.length,n=Object(k.sprintf)(
35
  /* translators: %d: number of results. */
36
+ Object(k._n)("%d result found.","%d results found.",e),e);h(n)}}),[t,h]);var R=Object(b.useAsyncList)(L),M=!Object(d.isEmpty)(A)||!Object(d.isEmpty)(L);return Object(l.createElement)(vu,null,!f&&!M&&Object(l.createElement)(Bu,null),!!A.length&&Object(l.createElement)(mu,{title:Object(l.createElement)(m.VisuallyHidden,null,Object(k.__)("Blocks"))},Object(l.createElement)(pu,{items:A,onSelect:x,onHover:r,label:Object(k.__)("Blocks"),isDraggable:v})),!!A.length&&!!L.length&&Object(l.createElement)("div",{className:"block-editor-inserter__quick-inserter-separator"}),!!L.length&&Object(l.createElement)(mu,{title:Object(l.createElement)(m.VisuallyHidden,null,Object(k.__)("Block Patterns"))},Object(l.createElement)("div",{className:"block-editor-inserter__quick-inserter-patterns"},Object(l.createElement)(Eu,{shownPatterns:R,blockPatterns:L,onClickPattern:D,isDraggable:v}))),f&&Object(l.createElement)(Du.Slot,{fillProps:{onSelect:x,onHover:r,filterValue:t,hasItems:M,rootClientId:_}},(function(e){return e.length?e:M?null:Object(l.createElement)(Bu,null)})))},Ru={name:"blocks",
37
  /* translators: Blocks tab title in the block inserter. */
38
+ title:Object(k.__)("Blocks")},Mu={name:"patterns",
39
  /* translators: Patterns tab title in the block inserter. */
40
+ title:Object(k.__)("Patterns")},Fu={name:"reusable",
41
  /* translators: Reusable blocks tab title in the block inserter. */
42
+ title:Object(k.__)("Reusable")},Vu=function(e){var t=e.children,n=e.showPatterns,r=void 0!==n&&n,o=e.showReusableBlocks,c=void 0!==o&&o,i=e.onSelect,a=Object(l.useMemo)((function(){var e=[Ru];return r&&e.push(Mu),c&&e.push(Fu),e}),[Ru,r,Mu,c,Fu]);return Object(l.createElement)(m.TabPanel,{className:"block-editor-inserter__tabs",tabs:a,onSelect:i},t)},Hu=function(e){var t=e.rootClientId,n=e.clientId,r=e.isAppender,o=e.__experimentalInsertionIndex,c=e.onSelect,i=e.showInserterHelpPanel,a=e.showMostUsedBlocks,s=e.shouldFocusBlock,u=void 0===s||s,d=Object(l.useState)(""),b=Object(Co.a)(d,2),f=b[0],p=b[1],O=Object(l.useState)(null),g=Object(Co.a)(O,2),h=g[0],j=g[1],y=Object(l.useState)(null),_=Object(Co.a)(y,2),E=_[0],w=_[1],C=Au({rootClientId:t,clientId:n,isAppender:r,insertionIndex:o,shouldFocusBlock:u}),S=Object(Co.a)(C,3),B=S[0],I=S[1],x=S[2],P=Object(v.useSelect)((function(e){var t,n=e(yr),r=n.__experimentalGetAllowedPatterns,o=n.getSettings;return{showPatterns:!B||!!r(B).length,hasReusableBlocks:!(null===(t=o().__experimentalReusableBlocks)||void 0===t||!t.length)}}),[B]),T=P.showPatterns,N=P.hasReusableBlocks,D=Object(l.useCallback)((function(e,t,n){I(e,t,n),c()}),[I,c]),A=Object(l.useCallback)((function(e,t){I(e,{patternName:t}),c()}),[I,c]),L=Object(l.useCallback)((function(e){x(!!e),j(e)}),[x,j]),R=Object(l.useCallback)((function(e){w(e)}),[w]),M=Object(l.useMemo)((function(){return Object(l.createElement)(l.Fragment,null,Object(l.createElement)("div",{className:"block-editor-inserter__block-list"},Object(l.createElement)(gu,{rootClientId:B,onInsert:D,onHover:L,showMostUsedBlocks:a})),i&&Object(l.createElement)("div",{className:"block-editor-inserter__tips"},Object(l.createElement)(m.VisuallyHidden,{as:"h2"},Object(k.__)("A tip for using the block editor")),Object(l.createElement)(zs,null)))}),[B,D,L,f,a,i]),F=Object(l.useMemo)((function(){return Object(l.createElement)(Cu,{rootClientId:B,onInsert:A,onClickCategory:R,selectedCategory:E})}),[B,A,R,E]),V=Object(l.useMemo)((function(){return Object(l.createElement)(xu,{rootClientId:B,onInsert:D,onHover:L})}),[B,D,L]),H=Object(l.useCallback)((function(e){return"blocks"===e.name?M:"patterns"===e.name?F:V}),[M,F,V]);return Object(l.createElement)("div",{className:"block-editor-inserter__menu"},Object(l.createElement)("div",{className:"block-editor-inserter__main-area"},Object(l.createElement)("div",{className:"block-editor-inserter__content"},Object(l.createElement)(Ws,{onChange:function(e){h&&j(null),p(e)},value:f,label:Object(k.__)("Search for blocks and patterns"),placeholder:Object(k.__)("Search")}),!!f&&Object(l.createElement)(Lu,{filterValue:f,onSelect:c,onHover:L,rootClientId:t,clientId:n,isAppender:r,showBlockDirectory:!0,shouldFocusBlock:u}),!f&&(T||N)&&Object(l.createElement)(Vu,{showPatterns:T,showReusableBlocks:N},H),!f&&!T&&!N&&M)),i&&h&&Object(l.createElement)(nu,{item:h}))};function zu(e){var t=e.onSelect,n=e.rootClientId,r=e.clientId,o=e.isAppender,c=Object(l.useState)(""),i=Object(Co.a)(c,2),a=i[0],s=i[1],d=Au({onSelect:t,rootClientId:n,clientId:r,isAppender:o}),b=Object(Co.a)(d,2),f=b[0],p=b[1],O=Ol(f,p),g=Object(Co.a)(O,1)[0],h=yu(p,f),j=Object(Co.a)(h,1)[0],y=j.length&&!!a,_=y&&j.length>6||g.length>6,E=Object(v.useSelect)((function(e){var t=e(yr),o=t.getSettings,c=t.getBlockIndex;return{setInserterIsOpened:o().__experimentalSetIsInserterOpened,blockIndex:c(r,n)}}),[r,n]),w=E.setInserterIsOpened,C=E.blockIndex;Object(l.useEffect)((function(){w&&w(!1)}),[w]);var S=Object(v.useDispatch)(yr).__unstableSetInsertionPoint;return Object(l.createElement)("div",{className:u()("block-editor-inserter__quick-inserter",{"has-search":_,"has-expand":w})},_&&Object(l.createElement)(Ws,{value:a,onChange:function(e){s(e)},label:Object(k.__)("Search for blocks and patterns"),placeholder:Object(k.__)("Search")}),Object(l.createElement)("div",{className:"block-editor-inserter__quick-inserter-results"},Object(l.createElement)(Lu,{filterValue:a,onSelect:t,rootClientId:n,clientId:r,isAppender:o,maxBlockPatterns:y?2:0,maxBlockTypes:6,isDraggable:!1})),w&&Object(l.createElement)(m.Button,{className:"block-editor-inserter__quick-inserter-expand",onClick:function(){S(n,C),w(!0)},"aria-label":Object(k.__)("Browse all. This will open the main inserter panel in the editor toolbar.")},Object(k.__)("Browse all")))}var Gu=function(e){var t,n=e.onToggle,r=e.disabled,o=e.isOpen,c=e.blockTitle,a=e.hasSingleBlockType,s=e.toggleProps,u=void 0===s?{}:s;t=a?Object(k.sprintf)(// translators: %s: the name of the block when there is only one
43
+ Object(k._x)("Add %s","directly add the only allowed block"),c):Object(k._x)("Add block","Generic label for block inserter button");var d=u.onClick,b=Object(j.a)(u,["onClick"]);return Object(l.createElement)(m.Button,Object(i.a)({icon:Vs.a,label:t,tooltipPosition:"bottom",onClick:function(e){n&&n(e),d&&d(e)},className:"block-editor-inserter__toggle","aria-haspopup":!a&&"true","aria-expanded":!a&&o,disabled:r},b))},Uu=function(e){Object(Oa.a)(o,e);var t,n,r=(t=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=Object(ha.a)(t);if(n){var o=Object(ha.a)(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return Object(ga.a)(this,e)});function o(){var e;return Object(pa.a)(this,o),(e=r.apply(this,arguments)).onToggle=e.onToggle.bind(Object(va.a)(e)),e.renderToggle=e.renderToggle.bind(Object(va.a)(e)),e.renderContent=e.renderContent.bind(Object(va.a)(e)),e}return Object(ma.a)(o,[{key:"onToggle",value:function(e){var t=this.props.onToggle;t&&t(e)}},{key:"renderToggle",value:function(e){var t=e.onToggle,n=e.isOpen,r=this.props,o=r.disabled,c=r.blockTitle,i=r.hasSingleBlockType,a=r.toggleProps,l=r.hasItems,s=r.renderToggle;return(void 0===s?Gu:s)({onToggle:t,isOpen:n,disabled:o||!l,blockTitle:c,hasSingleBlockType:i,toggleProps:a})}},{key:"renderContent",value:function(e){var t=e.onClose,n=this.props,r=n.rootClientId,o=n.clientId,c=n.isAppender,i=n.showInserterHelpPanel;return n.__experimentalIsQuick?Object(l.createElement)(zu,{onSelect:function(){t()},rootClientId:r,clientId:o,isAppender:c}):Object(l.createElement)(Hu,{onSelect:function(){t()},rootClientId:r,clientId:o,isAppender:c,showInserterHelpPanel:i})}},{key:"render",value:function(){var e=this.props,t=e.position,n=e.hasSingleBlockType,r=e.insertOnlyAllowedBlock,o=e.__experimentalIsQuick,c=e.onSelectOrClose;return n?this.renderToggle({onToggle:r}):Object(l.createElement)(m.Dropdown,{className:"block-editor-inserter",contentClassName:u()("block-editor-inserter__popover",{"is-quick":o}),position:t,onToggle:this.onToggle,expandOnMobile:!0,headerTitle:Object(k.__)("Add a block"),renderToggle:this.renderToggle,renderContent:this.renderContent,onClose:c})}}]),o}(l.Component),Wu=Object(b.compose)([Object(v.withSelect)((function(e,t){var n=t.clientId,r=t.rootClientId,o=e(yr),c=o.getBlockRootClientId,i=o.hasInserterItems,a=o.__experimentalGetAllowedBlocks,l=e(p.store).getBlockVariations,s=a(r=r||c(n)||void 0),u=1===Object(d.size)(s)&&0===Object(d.size)(l(s[0].name,"inserter")),b=!1;return u&&(b=s[0]),{hasItems:i(r),hasSingleBlockType:u,blockTitle:b?b.title:"",allowedBlockType:b,rootClientId:r}})),Object(v.withDispatch)((function(e,t,n){var r=n.select;return{insertOnlyAllowedBlock:function(){var n=t.rootClientId,o=t.clientId,c=t.isAppender,i=t.hasSingleBlockType,a=t.allowedBlockType,l=t.onSelectOrClose;if(i){(0,e(yr).insertBlock)(Object(p.createBlock)(a.name),function(){var e=r(yr),t=e.getBlockIndex,i=e.getBlockSelectionEnd,a=e.getBlockOrder,l=e.getBlockRootClientId;if(o)return t(o,n);var s=i();return!c&&s&&l(s)===n?t(s,n)+1:a(n).length}(),n),l&&l();var s=Object(k.sprintf)(// translators: %s: the name of the block that has been added
44
+ Object(k.__)("%s block added"),a.title);Object(Rt.speak)(s)}}}})),Object(b.ifCondition)((function(e){var t=e.hasItems,n=e.isAppender,r=e.rootClientId,o=e.clientId;return t||!n&&!r&&!o}))])(Uu),Ku=Object(b.compose)(Object(v.withSelect)((function(e,t){var n=e(yr),r=n.getBlockCount,o=n.getBlockName,c=n.isBlockValid,i=n.getSettings,a=n.getTemplateLock,l=!r(t.rootClientId),s=o(t.lastBlockClientId)===Object(p.getDefaultBlockName)(),u=c(t.lastBlockClientId),d=i().bodyPlaceholder;return{isVisible:l||!s||!u,showPrompt:l,isLocked:!!a(t.rootClientId),placeholder:d}})),Object(v.withDispatch)((function(e,t){var n=e(yr),r=n.insertDefaultBlock,o=n.startTyping;return{onAppend:function(){var e=t.rootClientId;r(void 0,e),o()}}})))((function(e){var t=e.isLocked,n=e.isVisible,r=e.onAppend,o=e.showPrompt,c=e.placeholder,i=e.rootClientId;if(t||!n)return null;var a=Object(Fs.decodeEntities)(c)||Object(k.__)("Type / to choose a block");return Object(l.createElement)("div",{"data-root-client-id":i||"",className:"wp-block block-editor-default-block-appender"},Object(l.createElement)(hs.a,{role:"button","aria-label":Object(k.__)("Add block"),className:"block-editor-default-block-appender__content",readOnly:!0,onFocus:r,value:o?a:""}),Object(l.createElement)(Wu,{rootClientId:i,position:"bottom right",isAppender:!0,__experimentalIsQuick:!0}))})),qu=Object(l.forwardRef)((function(e,t){var n=e.rootClientId,r=e.className,o=e.onFocus,c=e.tabIndex;return Object(l.createElement)(Wu,{position:"bottom center",rootClientId:n,__experimentalIsQuick:!0,renderToggle:function(e){var n,i=e.onToggle,a=e.disabled,s=e.isOpen,d=e.blockTitle,b=e.hasSingleBlockType;n=b?Object(k.sprintf)(// translators: %s: the name of the block when there is only one
45
+ Object(k._x)("Add %s","directly add the only allowed block"),d):Object(k._x)("Add block","Generic label for block inserter button");var f=!b,p=Object(l.createElement)(m.Button,{ref:t,onFocus:o,tabIndex:c,className:u()(r,"block-editor-button-block-appender"),onClick:i,"aria-haspopup":f?"true":void 0,"aria-expanded":f?s:void 0,disabled:a,label:n},!b&&Object(l.createElement)(m.VisuallyHidden,{as:"span"},n),Object(l.createElement)(ra.a,{icon:Vs.a}));return(f||b)&&(p=Object(l.createElement)(m.Tooltip,{text:n},p)),p},isAppender:!0})}));function $u(e){e.stopPropagation()}Object(l.createContext)();var Yu=Object(v.withSelect)((function(e,t){var n=t.rootClientId,r=e(yr),o=r.getBlockOrder,c=r.canInsertBlockType,i=r.getTemplateLock,a=r.getSelectedBlockClientId;return{isLocked:!!i(n),blockClientIds:o(n),canInsertDefaultBlock:c(Object(p.getDefaultBlockName)(),n),selectedBlockClientId:a()}}))((function(e){var t,n=e.blockClientIds,r=e.rootClientId,o=e.canInsertDefaultBlock,c=e.isLocked,i=e.renderAppender,a=e.className,s=e.selectedBlockClientId,b=e.tagName,f=void 0===b?"div":b;if(c||!1===i)return null;if(i)t=Object(l.createElement)(i,null);else{var p=!r,m=s===r,v=s&&!n.includes(s);if(!p&&!m&&(!s||v))return null;t=o?Object(l.createElement)(Ku,{rootClientId:r,lastBlockClientId:Object(d.last)(n)}):Object(l.createElement)(qu,{rootClientId:r,className:"block-list-appender__toggle"})}return Object(l.createElement)(f,{tabIndex:-1,onFocus:$u,className:u()("block-list-appender","wp-block",a)},t)}));function Xu(e,t){var n=Object(v.useSelect)((function(e){var t=e(yr);return{canInsertBlockType:t.canInsertBlockType,getBlockIndex:t.getBlockIndex,getClientIdsOfDescendants:t.getClientIdsOfDescendants,hasUploadPermissions:(0,t.getSettings)().mediaUpload}}),[]),r=n.canInsertBlockType,o=n.getBlockIndex,c=n.getClientIdsOfDescendants,i=n.hasUploadPermissions,a=Object(v.useDispatch)(yr),l=a.insertBlocks,s=a.moveBlocksToPosition,u=a.updateBlockAttributes,d=function(e,t,n,r,o,c,i){return function(a){var l=function(e){var t={srcRootClientId:null,srcClientIds:null,srcIndex:null,type:null,blocks:null};if(!e.dataTransfer)return t;try{t=Object.assign(t,JSON.parse(e.dataTransfer.getData("wp-blocks")))}catch(e){return t}return t}(a),s=l.srcRootClientId,u=l.srcClientIds,d=l.type,b=l.blocks;if("inserter"===d&&(i(),c(b,t,e,!0,null)),"block"===d){var f=n(u[0],s);if(s===e&&f===t)return;if(u.includes(e)||r(u).some((function(t){return t===e})))return;var p=s===e,m=u.length;o(u,s,e,p&&f<t?t-m:t)}}}(e,t,o,c,s,l,a.clearSelectedBlock),b=function(e,t,n,r,o,c){return function(i){if(n){var a=Object(p.findTransform)(Object(p.getBlockTransforms)("from"),(function(t){return"files"===t.type&&o(t.blockName,e)&&t.isMatch(i)}));if(a){var l=a.transform(i,r);c(l,t,e)}}}}(e,t,i,u,r,l),f=function(e,t,n){return function(r){var o=Object(p.pasteHandler)({HTML:r,mode:"BLOCKS"});o.length&&n(o,t,e)}}(e,t,l);return function(e){var t=Object(Wl.getFilesFromDataTransfer)(e.dataTransfer),n=e.dataTransfer.getData("text/html");t.length?b(t):n?f(n):d(e)}}function Qu(e,t,n){var r,o="top"===n||"bottom"===n,c=e.x,i=e.y,a=o?c:i,l=o?i:c,s=o?t.left:t.top,u=o?t.right:t.bottom,d=t[n];return r=a>=s&&a<=u?a:a<u?s:u,Math.sqrt(Math.pow(a-r,2)+Math.pow(l-d,2))}function Zu(e,t){var n,r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:["top","bottom","left","right"];return o.forEach((function(o){var c=Qu(e,t,o);(void 0===n||c<n)&&(n=c,r=o)})),[n,r]}function Ju(e,t,n){var r,o,c="horizontal"===n?["left","right"]:["top","bottom"];return e.forEach((function(n,i){if(n.classList.contains("wp-block")){var a=n.getBoundingClientRect(),l=Zu(t,a,c),s=Object(Co.a)(l,2),u=s[0],d=s[1];if(void 0===o||u<o){var b="bottom"===d||"right"===d,f=b?1:0,p=b&&e[i+1]&&e[i+1].classList.contains("is-dragging");o=u,r=i+(f+=p?1:0)}}})),r}function ed(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.rootClientId,n=void 0===t?"":t,r=Object(l.useState)(null),o=Object(Co.a)(r,2),c=o[0],i=o[1],a=Object(v.useSelect)((function(e){var t,r=e(yr),o=r.getBlockListSettings;return{isLockedAll:"all"===(0,r.getTemplateLock)(n),orientation:null===(t=o(n))||void 0===t?void 0:t.orientation}}),[n]),s=a.isLockedAll,u=a.orientation,d=Object(v.useDispatch)("core/block-editor"),f=d.showInsertionPoint,p=d.hideInsertionPoint,m=Xu(n,c),O=Object(b.useThrottle)(Object(l.useCallback)((function(e,t){var r=Ju(Array.from(t.children),{x:e.clientX,y:e.clientY},u);i(void 0===r?0:r),null!==r&&f(n,r)}),[]),200);return Object(b.__experimentalUseDropZone)({isDisabled:s,onDrop:m,onDragOver:function(e){O(e,e.currentTarget)},onDragEnd:function(){O.cancel(),p(),i(null)}})}function td(e){var t=e.clientId,n=e.rootClientId,r=e.setIsInserterForced;return Object(l.createElement)("div",{className:u()("block-editor-block-list__insertion-point-inserter")},Object(l.createElement)(Wu,{position:"bottom center",clientId:t,rootClientId:n,__experimentalIsQuick:!0,onToggle:r,onSelectOrClose:function(){return r(!1)}}))}function nd(e){var t=e.clientId,n=e.selectedRootClientId,r=e.isInserterShown,o=e.isInserterForced,c=e.setIsInserterForced,i=e.containerRef,a=e.showInsertionPoint,s=Object(v.useDispatch)(yr).selectBlock,d=Object(l.useRef)(),b=Object(v.useSelect)((function(e){var r,o=e(yr),c=o.getBlockOrder,a=o.getBlockRootClientId,l=o.getBlockListSettings,s=o.getMultiSelectedBlockClientIds,u=o.getSelectedBlockClientId,d=o.hasMultiSelection,b=o.getSettings,f=i.current.ownerDocument,p=t?a(t):n,m=c(p);if(!m.length)return{};var v=t||m[m.length-1],O=v===m[m.length-1]?null:m[m.indexOf(v)+1],g=b().hasReducedUI,h=s(),j=u(),y=(null===(r=l(p))||void 0===r?void 0:r.orientation)||"vertical";return{previousElement:Sc(v,f),nextElement:Sc(O,f),nextClientId:O,isHidden:g||(d()?O&&h.includes(O):O&&"vertical"===y&&O===j),orientation:y,rootClientId:p}}),[t,n]),f=b.previousElement,p=b.nextElement,O=b.orientation,g=b.isHidden,h=b.nextClientId,j=b.rootClientId,y=Object(l.useMemo)((function(){if(!f)return{};var e=f.getBoundingClientRect(),t=p?p.getBoundingClientRect():null;if("vertical"===O)return{width:f.offsetWidth,height:t?t.top-e.bottom:0};var n=0;return p&&(n=Object(k.isRTL)()?e.left-t.right:t.left-e.right),{width:n,height:f.offsetHeight}}),[f,p]),_=Object(l.useCallback)((function(){var e=f.getBoundingClientRect(),t=p?p.getBoundingClientRect():null;return"vertical"===O?Object(k.isRTL)()?{top:e.bottom,left:e.right,right:e.left,bottom:t?t.top:e.bottom}:{top:e.bottom,left:e.left,right:e.right,bottom:t?t.top:e.bottom}:Object(k.isRTL)()?{top:e.top,left:t?t.right:e.left,right:e.left,bottom:e.bottom}:{top:e.top,left:e.right,right:t?t.left:e.right,bottom:e.bottom}}),[f,p]);if(!f)return null;var E=u()("block-editor-block-list__insertion-point","is-"+O),w=!g&&p&&(r||o),C=w||!g&&a;return Object(l.createElement)(m.Popover,{noArrow:!0,animate:!1,getAnchorRect:_,focusOnMount:!1,className:"block-editor-block-list__insertion-point-popover",__unstableSlotName:"block-toolbar"},Object(l.createElement)("div",{ref:d,tabIndex:-1,onClick:function(e){e.target===d.current&&h&&s(h,-1)},onFocus:function(e){e.target!==d.current&&c(!0)},className:u()(E,{"is-with-inserter":w}),style:y},C&&Object(l.createElement)("div",{className:"block-editor-block-list__insertion-point-indicator"}),w&&Object(l.createElement)(td,{rootClientId:j,clientId:h,setIsInserterForced:c})))}var rd=function(e){var t,n,r,o,c=e.children,i=e.clientIds,a=e.cloneClassname,s=e.onDragStart,u=e.onDragEnd,d=e.elementId,b=Object(v.useSelect)((function(e){var t,n=e(yr),r=n.getBlockRootClientId,o=n.getTemplateLock,c=n.getBlockName,a=r(i[0]),l=a?o(a):null,s=c(i[0]);return{srcRootClientId:a,isDraggable:"all"!==l,icon:null===(t=Object(p.getBlockType)(s))||void 0===t?void 0:t.icon}}),[i]),f=b.srcRootClientId,O=b.isDraggable,g=b.icon,h=Object(l.useRef)(!1),j=(t=Object(l.useRef)(null),n=Object(l.useRef)(null),r=Object(l.useRef)(null),o=Object(l.useRef)(null),Object(l.useEffect)((function(){return function(){o.current&&(clearInterval(o.current),o.current=null)}}),[]),[Object(l.useCallback)((function(e){t.current=e.clientY,r.current=Object(Wl.getScrollContainer)(e.target),o.current=setInterval((function(){if(r.current&&n.current){var e=r.current.scrollTop+n.current;r.current.scroll({top:e})}}),25)}),[]),Object(l.useCallback)((function(e){if(r.current){var o=r.current.offsetHeight,c=t.current-r.current.offsetTop,i=e.clientY-r.current.offsetTop;if(e.clientY>c){var a=Math.max(o-c-50,0),l=Math.max(i-c-50,0)/a;n.current=25*l}else if(e.clientY<c){var s=Math.max(c-50,0),u=Math.max(c-i-50,0)/s;n.current=-25*u}else n.current=0}}),[]),function(){t.current=null,r.current=null,o.current&&(clearInterval(o.current),o.current=null)}]),y=Object(Co.a)(j,3),k=y[0],_=y[1],E=y[2],w=Object(v.useDispatch)(yr),C=w.startDraggingBlocks,S=w.stopDraggingBlocks;if(Object(l.useEffect)((function(){return function(){h.current&&S()}}),[]),!O)return c({isDraggable:!1});var B={type:"block",srcClientIds:i,srcRootClientId:f};return Object(l.createElement)(m.Draggable,{cloneClassname:a,elementId:d,__experimentalTransferDataType:"wp-blocks",transferData:B,onDragStart:function(e){C(i),h.current=!0,k(e),s&&s()},onDragOver:_,onDragEnd:function(){S(),h.current=!1,E(),u&&u()},__experimentalDragComponent:Object(l.createElement)(lu,{count:i.length,icon:g})},(function(e){var t=e.onDraggableStart,n=e.onDraggableEnd;return c({draggable:!0,onDragStart:t,onDragEnd:n})}))};function od(e){var t=e(yr),n=t.getSelectedBlockClientId,r=t.getMultiSelectedBlocksEndClientId,o=t.getPreviousBlockClientId,c=t.getNextBlockClientId,i=t.hasBlockMovingClientId,a=t.getBlockIndex,l=t.getBlockRootClientId,s=t.getClientIdsOfDescendants,u=t.canInsertBlockType,d=t.getBlockName,b=n(),f=r();return{selectedBlockClientId:b,selectionBeforeEndClientId:o(f||b),selectionAfterEndClientId:c(f||b),hasBlockMovingClientId:i,getBlockIndex:a,getBlockRootClientId:l,getClientIdsOfDescendants:s,canInsertBlockType:u,getBlockName:d}}var cd=function(e){var t=e.clientId,n=e.rootClientId,r=e.blockElement,o=Cl(t),c=Object(v.useSelect)((function(e){var r,o=e(yr),c=o.__unstableGetBlockWithoutInnerBlocks,i=o.getBlockIndex,a=o.hasBlockMovingClientId,l=o.getBlockListSettings,s=i(t,n),u=c(t);return{index:s,name:u.name,attributes:u.attributes,blockMovingMode:a(),orientation:null===(r=l(n))||void 0===r?void 0:r.orientation}}),[t,n]),a=c.index,s=c.name,d=c.attributes,b=c.blockMovingMode,f=c.orientation,O=Object(v.useDispatch)(yr),g=O.setNavigationMode,h=O.removeBlock,j=Object(l.useRef)();Object(l.useEffect)((function(){j.current.focus(),window.navigator.platform.indexOf("Win")>-1&&Object(Rt.speak)(L)}),[]);var y=Object(v.useSelect)(od,[]),_=y.selectedBlockClientId,E=y.selectionBeforeEndClientId,w=y.selectionAfterEndClientId,C=y.hasBlockMovingClientId,S=y.getBlockIndex,B=y.getBlockRootClientId,I=y.getClientIdsOfDescendants,x=Object(v.useDispatch)(yr),P=x.selectBlock,T=x.clearSelectedBlock,N=x.setBlockMovingClientId,D=x.moveBlockToPosition,A=Object(p.getBlockType)(s),L=Object(p.__experimentalGetAccessibleBlockLabel)(A,d,a+1,f),R=u()("block-editor-block-list__block-selection-button",{"is-block-moving-mode":!!b}),M=Object(k.__)("Drag");return Object(l.createElement)("div",{className:R},Object(l.createElement)(m.Flex,{justify:"center",className:"block-editor-block-list__block-selection-button__content"},Object(l.createElement)(m.FlexItem,null,Object(l.createElement)(hl,{icon:null==o?void 0:o.icon,showColors:!0})),Object(l.createElement)(m.FlexItem,null,Object(l.createElement)(rd,{clientIds:[t]},(function(e){return Object(l.createElement)(m.Button,Object(i.a)({icon:au,className:"block-selection-button_drag-handle","aria-hidden":"true",label:M,tabIndex:"-1"},e))}))),Object(l.createElement)(m.FlexItem,null,Object(l.createElement)(m.Button,{ref:j,onClick:function(){return g(!1)},onKeyDown:function(e){var n=e.keyCode,o=n===li.UP,c=n===li.DOWN,i=n===li.LEFT,a=n===li.RIGHT,l=n===li.TAB,s=n===li.ESCAPE,u=n===li.ENTER,d=n===li.SPACE,b=e.shiftKey;if(n===li.BACKSPACE||n===li.DELETE)return h(t),void e.preventDefault();var f,p=l&&b||o,m=l&&!b||c,v=i,O=a;if(p)f=E;else if(m)f=w;else if(v){var g;f=null!==(g=B(_))&&void 0!==g?g:_}else if(O){var j;f=null!==(j=I([_])[0])&&void 0!==j?j:_}var y=C();if(s&&y&&N(null),(u||d)&&y){var k=B(y),x=B(_),A=S(y,k),L=S(_,x);A<L&&k===x&&(L-=1),D(y,k,x,L),P(y),N(null)}if(m||p||v||O)if(f)e.preventDefault(),P(f);else if(l&&_){var R;m?(R=Wl.focus.tabbable.findNext(r))||(R=r.ownerDocument.defaultView.frameElement,R=Wl.focus.tabbable.findNext(R)):R=Wl.focus.tabbable.findPrevious(r),R&&(e.preventDefault(),R.focus(),T())}},label:L,className:"block-selection-button_select-button"},Object(l.createElement)(Sl,{clientId:t})))))};function id(e){return Array.from(e.querySelectorAll("[data-toolbar-item]"))}var ad=function(e){var t=e.children,n=e.focusOnMount,r=e.__experimentalInitialIndex,o=e.__experimentalOnIndexChange,c=Object(j.a)(e,["children","focusOnMount","__experimentalInitialIndex","__experimentalOnIndexChange"]),a=Object(l.useRef)(),s=function(e){var t=Object(l.useState)(!0),n=Object(Co.a)(t,2),r=n[0],o=n[1],c=Object(l.useCallback)((function(){var t=!Wl.focus.tabbable.find(e.current).some((function(e){return!("toolbarItem"in e.dataset)}));t||Ft()("Using custom components as toolbar controls",{since:"5.6",alternative:"ToolbarItem or ToolbarButton components",link:"https://developer.wordpress.org/block-editor/components/toolbar-button/#inside-blockcontrols"}),o(t)}),[]);return Object(l.useLayoutEffect)((function(){var t=new window.MutationObserver(c);return t.observe(e.current,{childList:!0,subtree:!0}),function(){return t.disconnect()}}),[r]),r}(a);return function(e,t,n,r,o){var c=Object(l.useState)(t),i=Object(Co.a)(c,1)[0],a=Object(l.useState)(r),s=Object(Co.a)(a,1)[0],u=Object(l.useCallback)((function(){var t,n,r;t=e.current,n=Wl.focus.tabbable.find(t),(r=Object(Co.a)(n,1)[0])&&r.focus()}),[]);Object(Vl.useShortcut)("core/block-editor/focus-toolbar",u,{bindGlobal:!0,eventName:"keydown"}),Object(l.useEffect)((function(){i&&u()}),[n,i,u]),Object(l.useEffect)((function(){var t=0;return s&&!i&&(t=window.requestAnimationFrame((function(){var t,n=id(e.current),r=s||0;n[r]&&(t=e.current).contains(t.ownerDocument.activeElement)&&n[r].focus()}))),function(){if(window.cancelAnimationFrame(t),o){var n=id(e.current).findIndex((function(e){return 0===e.tabIndex}));o(n)}}}),[s,i])}(a,n,s,r,o),s?Object(l.createElement)(m.Toolbar,Object(i.a)({label:c["aria-label"],ref:a},c),t):Object(l.createElement)(m.NavigableMenu,Object(i.a)({orientation:"horizontal",role:"toolbar",ref:a},c),t)},ld=Object(v.withSelect)((function(e,t){var n,r=t.clientIds,o=e(yr),c=o.getBlock,i=o.getBlockIndex,a=o.getBlockListSettings,l=o.getTemplateLock,s=o.getBlockOrder,u=o.getBlockRootClientId,b=Object(d.castArray)(r),f=Object(d.first)(b),m=c(f),v=u(Object(d.first)(b)),O=i(f,v),g=0===O,h=i(Object(d.last)(b),v)===s(v).length-1;return{blockType:m?Object(p.getBlockType)(m.name):null,isLocked:"all"===l(v),rootClientId:v,firstIndex:O,isFirst:g,isLast:h,orientation:null===(n=a(v))||void 0===n?void 0:n.orientation}}))((function(e){var t=e.isFirst,n=e.isLast,r=e.clientIds,o=e.isLocked,c=e.isHidden,a=e.rootClientId,s=e.orientation,d=e.hideDragHandle,b=Object(l.useState)(!1),f=Object(Co.a)(b,2),p=f[0],v=f[1],O=function(){return v(!0)},g=function(){return v(!1)};if(o||t&&n&&!a)return null;var h=Object(k.__)("Drag");return Object(l.createElement)("div",{className:u()("block-editor-block-mover",{"is-visible":p||!c,"is-horizontal":"horizontal"===s})},!d&&Object(l.createElement)(rd,{clientIds:r,cloneClassname:"block-editor-block-mover__drag-clone"},(function(e){return Object(l.createElement)(m.Button,Object(i.a)({icon:au,className:"block-editor-block-mover__drag-handle","aria-hidden":"true",label:h,tabIndex:"-1"},e))})),Object(l.createElement)(m.ToolbarGroup,{className:"block-editor-block-mover__move-button-container"},Object(l.createElement)(m.ToolbarItem,{onFocus:O,onBlur:g},(function(e){return Object(l.createElement)(os,Object(i.a)({clientIds:r},e))})),Object(l.createElement)(m.ToolbarItem,{onFocus:O,onBlur:g},(function(e){return Object(l.createElement)(cs,Object(i.a)({clientIds:r},e))}))))})),sd=window,ud=sd.clearTimeout,dd=sd.setTimeout;function bd(e){var t=e.ref,n=e.isFocused,r=e.debounceTimeout,o=void 0===r?200:r,c=e.onChange,i=void 0===c?d.noop:c,a=Object(l.useState)(!1),s=Object(Co.a)(a,2),u=s[0],b=s[1],f=Object(l.useRef)(),p=function(e){null!=t&&t.current&&b(e),i(e)},m=function(){var e=f.current;e&&ud&&ud(e)};return Object(l.useEffect)((function(){return function(){return m()}}),[]),{showMovers:u,debouncedShowMovers:function(e){e&&e.stopPropagation(),m(),u||p(!0)},debouncedHideMovers:function(e){e&&e.stopPropagation(),m(),f.current=dd((function(){var e;e=(null==t?void 0:t.current)&&t.current.matches(":hover"),!n&&!e&&p(!1)}),o)}}}function fd(e){var t=e.ref,n=e.debounceTimeout,r=void 0===n?200:n,o=e.onChange,c=void 0===o?d.noop:o,i=Object(l.useState)(!1),a=Object(Co.a)(i,2),s=a[0],u=a[1],b=bd({ref:t,debounceTimeout:r,isFocused:s,onChange:c}),f=b.showMovers,p=b.debouncedShowMovers,m=b.debouncedHideMovers,v=Object(l.useRef)(!1),O=function(){return(null==t?void 0:t.current)&&t.current.contains(t.current.ownerDocument.activeElement)};return Object(l.useEffect)((function(){var e=t.current,n=function(){O()&&(u(!0),p())},r=function(){O()||(u(!1),m())};return e&&!v.current&&(e.addEventListener("focus",n,!0),e.addEventListener("blur",r,!0),v.current=!0),function(){e&&(e.removeEventListener("focus",n),e.removeEventListener("blur",r))}}),[t,v,u,p,m]),{showMovers:f,gestures:{onMouseMove:p,onMouseLeave:m}}}function pd(){var e=Object(v.useDispatch)(yr),t=e.selectBlock,n=e.toggleBlockHighlight,r=Object(v.useSelect)((function(e){var t=e(yr),n=t.getBlockName,r=t.getBlockParents,o=t.getSelectedBlockClientId,c=t.getSettings,i=e(p.store).hasBlockSupport,a=r(o()),l=a[a.length-1],s=n(l),u=Object(p.getBlockType)(s),d=c();return{firstParentClientId:l,shouldHide:!i(u,"__experimentalParentSelector",!0),hasReducedUI:d.hasReducedUI}}),[]),o=r.firstParentClientId,c=r.shouldHide,a=r.hasReducedUI,s=Cl(o),u=Object(l.useRef)(),d=fd({ref:u,onChange:function(e){e&&a||n(o,e)}}).gestures;return c||void 0===o?null:Object(l.createElement)("div",Object(i.a)({className:"block-editor-block-parent-selector",key:o,ref:u},d),Object(l.createElement)(m.ToolbarButton,{className:"block-editor-block-parent-selector__button",onClick:function(){return t(o)},label:Object(k.sprintf)(
46
  /* translators: %s: Name of the block's parent. */
47
+ Object(k.__)("Select %s"),s.title),showTooltip:!0,icon:Object(l.createElement)(hl,{icon:s.icon})}))}var md=Object(l.createElement)(Ir.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(Ir.Path,{d:"M20.2 8v11c0 .7-.6 1.2-1.2 1.2H6v1.5h13c1.5 0 2.7-1.2 2.7-2.8V8zM18 16.4V4.6c0-.9-.7-1.6-1.6-1.6H4.6C3.7 3 3 3.7 3 4.6v11.8c0 .9.7 1.6 1.6 1.6h11.8c.9 0 1.6-.7 1.6-1.6zm-13.5 0V4.6c0-.1.1-.1.1-.1h11.8c.1 0 .1.1.1.1v11.8c0 .1-.1.1-.1.1H4.6l-.1-.1z"}));function vd(e){var t=e.blocks;return Object(l.createElement)("div",{className:"block-editor-block-switcher__popover__preview__parent"},Object(l.createElement)("div",{className:"block-editor-block-switcher__popover__preview__container"},Object(l.createElement)(m.Popover,{className:"block-editor-block-switcher__preview__popover",position:"bottom right",focusOnMount:!1},Object(l.createElement)("div",{className:"block-editor-block-switcher__preview"},Object(l.createElement)("div",{className:"block-editor-block-switcher__preview-title"},Object(k.__)("Preview")),Object(l.createElement)(Js,{viewportWidth:500,blocks:t})))))}var Od=function(e){var t=e.className,n=e.possibleBlockTransformations,r=e.onSelect,o=e.blocks,c=Object(l.useState)(),i=Object(Co.a)(c,2),a=i[0],s=i[1];return Object(l.createElement)(m.MenuGroup,{label:Object(k.__)("Transform to"),className:t},a&&Object(l.createElement)(vd,{blocks:Object(p.switchToBlockType)(o,a)}),n.map((function(e){var t=e.name,n=e.icon,o=e.title,c=e.isDisabled;return Object(l.createElement)(m.MenuItem,{key:t,className:Object(p.getBlockMenuDefaultClassName)(t),onClick:function(e){e.preventDefault(),r(t)},disabled:c,onMouseLeave:function(){return s(null)},onMouseEnter:function(){return s(t)}},Object(l.createElement)(hl,{icon:n,showColors:!0}),o)})))};function gd(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function hd(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 jd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hd(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var yd={};function kd(e){var t=e.genericPreviewBlock,n=e.style,r=e.isActive,o=e.onBlur,c=e.onHover,i=e.onSelect,a=e.styleClassName,s=e.itemRole,d=Object(l.useMemo)((function(){return jd(jd({},t),{},{attributes:jd(jd({},t.attributes),{},{className:a})})}),[t,a]);return Object(l.createElement)("div",{key:n.name,className:u()("block-editor-block-styles__item",{"is-active":r}),onClick:function(){return i()},onKeyDown:function(e){li.ENTER!==e.keyCode&&li.SPACE!==e.keyCode||(e.preventDefault(),i())},onMouseEnter:c,onMouseLeave:o,role:s||"button",tabIndex:"0","aria-label":n.label||n.name},Object(l.createElement)("div",{className:"block-editor-block-styles__item-preview"},Object(l.createElement)(Js,{viewportWidth:500,blocks:d})),Object(l.createElement)("div",{className:"block-editor-block-styles__item-label"},n.label||n.name))}var _d=function(e){var t=e.clientId,n=e.onSwitch,r=void 0===n?d.noop:n,o=e.onHoverClassName,c=void 0===o?d.noop:o,i=e.itemRole,a=Object(v.useSelect)((function(e){var n=(0,e(yr).getBlock)(t);return n?{block:n,type:Object(p.getBlockType)(n.name),styles:(0,e(p.store).getBlockStyles)(n.name),className:n.attributes.className||""}:yd}),[t]),s=a.styles,u=a.block,b=a.type,f=a.className,m=Object(v.useDispatch)(yr).updateBlockAttributes,O=function(e,t){return Object(l.useMemo)((function(){var n=null==t?void 0:t.example,r=null==t?void 0:t.name;return n&&r?Object(p.getBlockFromExample)(r,{attributes:n.attributes,innerBlocks:n.innerBlocks}):e?Object(p.cloneBlock)(e):void 0}),[null!=t&&t.example?null==e?void 0:e.name:e,t])}(u,b);if(!s||0===s.length)return null;var g=Object(d.find)(s,"isDefault")?s:[{name:"default",label:Object(k._x)("Default","block style"),isDefault:!0}].concat(Object(y.a)(s)),h=function(e,t){var n,r=function(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return gd(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?gd(e,void 0):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,i=!0,a=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return i=e.done,e},e:function(e){a=!0,c=e},f:function(){try{i||null==n.return||n.return()}finally{if(a)throw c}}}}(new Ii.a(t).values());try{for(r.s();!(n=r.n()).done;){var o=n.value;if(-1!==o.indexOf("is-style-")){var c=o.substring(9),i=Object(d.find)(e,{name:c});if(i)return i}}}catch(e){r.e(e)}finally{r.f()}return Object(d.find)(e,"isDefault")}(g,f);return Object(l.createElement)("div",{className:"block-editor-block-styles"},g.map((function(e){var n=function(e,t,n){var r=new Ii.a(e);return t&&r.remove("is-style-"+t.name),r.add("is-style-"+n.name),r.value}(f,h,e);return Object(l.createElement)(kd,{genericPreviewBlock:O,className:f,isActive:h===e,key:e.name,onSelect:function(){m(t,{className:n}),c(null),r()},onBlur:function(){return c(null)},onHover:function(){return c(n)},style:e,styleClassName:n,itemRole:i})})))};function Ed(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 wd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ed(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ed(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Cd(e){var t=e.hoveredBlock,n=e.onSwitch,r=t.name,o=t.clientId,c=Object(l.useState)(),i=Object(Co.a)(c,2),a=i[0],s=i[1],u=Object(v.useSelect)((function(e){return e(p.store).getBlockType(r)}),[r]);return Object(l.createElement)(m.MenuGroup,{label:Object(k.__)("Styles"),className:"block-editor-block-switcher__styles__menugroup"},a&&Object(l.createElement)(vd,{blocks:u.example?Object(p.getBlockFromExample)(u.name,{attributes:wd(wd({},u.example.attributes),{},{className:a}),innerBlocks:u.example.innerBlocks}):Object(p.cloneBlock)(t,{className:a})}),Object(l.createElement)(_d,{clientId:o,onSwitch:n,onHoverClassName:s,itemRole:"menuitem"}))}function Sd(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Bd(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Bd(e,void 0):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,i=!0,a=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return i=e.done,e},e:function(e){a=!0,c=e},f:function(){try{i||null==n.return||n.return()}finally{if(a)throw c}}}}function Bd(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Id=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new Set,o=t.clientId,c=t.name,i=t.innerBlocks,a=void 0===i?[]:i;if(!r.has(o)){if(c===n)return t;var l,s=Sd(a);try{for(s.s();!(l=s.n()).done;){var u=l.value,d=e(u,n,r);if(d)return d}}catch(e){s.e(e)}finally{s.f()}}};function xd(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Pd(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Pd(e,void 0):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,i=!0,a=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return i=e.done,e},e:function(e){a=!0,c=e},f:function(){try{i||null==n.return||n.return()}finally{if(a)throw c}}}}function Pd(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Td(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 Nd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Td(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Td(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Dd=function(e,t){var n,r,o,c=(n=t.name,r=t.attributes,null!=(o=Object(p.__experimentalGetBlockAttributesNamesByRole)(n,"content"))&&o.length?o.reduce((function(e,t){return r[t]&&(e[t]=r[t]),e}),{}):r);e.attributes=Nd(Nd({},e.attributes),c)};function Ad(e){var t=e.patterns,n=e.onSelect;return Object(l.createElement)("div",{className:"block-editor-block-switcher__popover__preview__parent"},Object(l.createElement)("div",{className:"block-editor-block-switcher__popover__preview__container"},Object(l.createElement)(m.Popover,{className:"block-editor-block-switcher__preview__popover",position:"bottom right"},Object(l.createElement)("div",{className:"block-editor-block-switcher__preview"},Object(l.createElement)("div",{className:"block-editor-block-switcher__preview-title"},Object(k.__)("Preview")),Object(l.createElement)(Ld,{patterns:t,onSelect:n})))))}function Ld(e){var t=e.patterns,n=e.onSelect,r=Object(m.__unstableUseCompositeState)();return Object(l.createElement)(m.__unstableComposite,Object(i.a)({},r,{role:"listbox",className:"block-editor-block-switcher__preview-patterns-container","aria-label":Object(k.__)("Patterns list")}),t.map((function(e){return Object(l.createElement)(Rd,{key:e.name,pattern:e,onSelect:n,composite:r})})))}function Rd(e){var t=e.pattern,n=e.onSelect,r=e.composite,o="block-editor-block-switcher__preview-patterns-container",c=Object(b.useInstanceId)(Rd,"".concat(o,"-list__item-description"));return Object(l.createElement)("div",{className:"".concat(o,"-list__list-item"),"aria-label":t.title,"aria-describedby":t.description?c:void 0},Object(l.createElement)(m.__unstableCompositeItem,Object(i.a)({role:"option",as:"div"},r,{className:"".concat(o,"-list__item"),onClick:function(){return n(t.transformedBlocks)}}),Object(l.createElement)(Js,{blocks:t.transformedBlocks,viewportWidth:t.viewportWidth||500}),Object(l.createElement)("div",{className:"".concat(o,"-list__item-title")},t.title)),!!t.description&&Object(l.createElement)(m.VisuallyHidden,{id:c},t.description))}var Md=function(e){var t=e.blocks,n=e.patterns,r=e.onSelect,o=Object(l.useState)(!1),c=Object(Co.a)(o,2),i=c[0],a=c[1],s=function(e,t){return Object(l.useMemo)((function(){return e.reduce((function(e,n){var r=function(e,t){var n,r=t.map((function(e){return Object(p.cloneBlock)(e)})),o=new Set,c=xd(e);try{for(c.s();!(n=c.n()).done;){var i,a=n.value,l=!1,s=xd(r);try{for(s.s();!(i=s.n()).done;){var u=i.value,d=Id(u,a.name,o);if(d){l=!0,o.add(d.clientId),Dd(d,a);break}}}catch(e){s.e(e)}finally{s.f()}if(!l)return}}catch(e){c.e(e)}finally{c.f()}return r}(t,n.blocks);return r&&e.push(Nd(Nd({},n),{},{transformedBlocks:r})),e}),[])}),[e,t])}(n,t);return s.length?Object(l.createElement)(m.MenuGroup,{className:"block-editor-block-switcher__pattern__transforms__menugroup"},i&&Object(l.createElement)(Ad,{patterns:s,onSelect:r}),Object(l.createElement)(m.MenuItem,{onClick:function(e){e.preventDefault(),a(!i)},icon:Ql.a},Object(k.__)("Patterns"))):null};function Fd(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 Vd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fd(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Hd=function(e){var t=e.clientIds,n=e.blocks,r=Object(v.useDispatch)(yr).replaceBlocks,o=Cl(n[0].clientId),c=Object(v.useSelect)((function(e){var r,c,i=e(yr),a=i.getBlockRootClientId,l=i.getBlockTransformItems,s=i.__experimentalGetPatternTransformItems,u=e(p.store),b=u.getBlockStyles,f=u.getBlockType,m=a(Object(d.castArray)(t)[0]),v=Object(Co.a)(n,1)[0].name,O=1===n.length,g=O&&b(v);return r=O?null==o?void 0:o.icon:1===Object(d.uniq)(n.map((function(e){return e.name}))).length?null===(c=f(v))||void 0===c?void 0:c.icon:md,{possibleBlockTransformations:l(n,m),hasBlockStyles:!(null==g||!g.length),icon:r,blockTitle:f(v).title,patterns:s(n,m)}}),[t,n,null==o?void 0:o.icon]),i=c.possibleBlockTransformations,a=c.hasBlockStyles,s=c.icon,u=c.blockTitle,b=c.patterns,f=1===n.length&&Object(p.isReusableBlock)(n[0]),O=1===n.length&&Object(p.isTemplatePart)(n[0]),g=!!i.length,h=!(null==b||!b.length);if(!a&&!g)return Object(l.createElement)(m.ToolbarGroup,null,Object(l.createElement)(m.ToolbarButton,{disabled:!0,className:"block-editor-block-switcher__no-switcher-icon",title:u,icon:Object(l.createElement)(hl,{icon:s,showColors:!0})}));var j=u,y=1===n.length?Object(k.sprintf)(
48
+ /* translators: %s: block title. */
49
+ Object(k.__)("%s: Change block type or style"),u):Object(k.sprintf)(
50
+ /* translators: %d: number of blocks. */
51
+ Object(k._n)("Change type of %d block","Change type of %d blocks",n.length),n.length),_=a||g||h;return Object(l.createElement)(m.ToolbarGroup,null,Object(l.createElement)(m.ToolbarItem,null,(function(e){return Object(l.createElement)(m.DropdownMenu,{className:"block-editor-block-switcher",label:j,popoverProps:{position:"bottom right",isAlternate:!0,className:"block-editor-block-switcher__popover"},icon:Object(l.createElement)(l.Fragment,null,Object(l.createElement)(hl,{icon:s,className:"block-editor-block-switcher__toggle",showColors:!0}),(f||O)&&Object(l.createElement)("span",{className:"block-editor-block-switcher__toggle-text"},Object(l.createElement)(Sl,{clientId:t}))),toggleProps:Vd({describedBy:y},e),menuProps:{orientation:"both"}},(function(e){var o=e.onClose;return _&&Object(l.createElement)("div",{className:"block-editor-block-switcher__container"},h&&Object(l.createElement)(Md,{blocks:n,patterns:b,onSelect:function(e){!function(e){r(t,e)}(e),o()}}),g&&Object(l.createElement)(Od,{className:"block-editor-block-switcher__transforms__menugroup",possibleBlockTransformations:i,blocks:n,onSelect:function(e){!function(e){r(t,Object(p.switchToBlockType)(n,e))}(e),o()}}),a&&Object(l.createElement)(Cd,{hoveredBlock:n[0],onSwitch:o}))}))})))},zd=function(e){var t=e.clientIds,n=Object(v.useSelect)((function(e){return e(yr).getBlocksByClientId(t)}),[t]);return!n.length||n.some((function(e){return!e}))?null:Object(l.createElement)(Hd,{clientIds:t,blocks:n})},Gd=n(53);function Ud(){var e=Object(v.useSelect)((function(e){return e(yr)}),[]).getBlockName,t=Object(v.useSelect)((function(e){return e(p.store)}),[]).getBlockType,n=Object(v.useDispatch)(ju.store).createSuccessNotice;return Object(l.useCallback)((function(r,o){var c="";if(1===o.length){var i=o[0],a=t(e(i)).title;c="copy"===r?Object(k.sprintf)(// Translators: Name of the block being copied, e.g. "Paragraph".
52
+ Object(k.__)('Copied "%s" to clipboard.'),a):Object(k.sprintf)(// Translators: Name of the block being cut, e.g. "Paragraph".
53
+ Object(k.__)('Moved "%s" to clipboard.'),a)}else c="copy"===r?Object(k.sprintf)(// Translators: %d: Number of blocks being copied.
54
+ Object(k._n)("Copied %d block to clipboard.","Copied %d blocks to clipboard.",o.length),o.length):Object(k.sprintf)(// Translators: %d: Number of blocks being cut.
55
+ Object(k._n)("Moved %d block to clipboard.","Moved %d blocks to clipboard.",o.length),o.length);n(c,{type:"snackbar"})}),[])}function Wd(){var e=Object(v.useSelect)((function(e){return e(yr)}),[]),t=e.getBlocksByClientId,n=e.getSelectedBlockClientIds,r=e.hasMultiSelection,o=e.getSettings,c=Object(v.useDispatch)(yr),i=c.flashBlock,a=c.removeBlocks,l=c.replaceBlocks,s=Ud();return Object(b.useRefEffect)((function(e){function c(c){var u=n();if(0!==u.length){if(!r()){var d=c.target.ownerDocument;if("copy"===c.type||"cut"===c.type?Object(Wl.documentHasUncollapsedSelection)(d):Object(Wl.documentHasSelection)(d))return}if(e.contains(c.target.ownerDocument.activeElement)){if(c.preventDefault(),"copy"===c.type||"cut"===c.type){1===u.length&&i(u[0]),s(c.type,u);var b=t(u),f=Object(p.serialize)(b);c.clipboardData.setData("text/plain",f),c.clipboardData.setData("text/html",f)}if("cut"===c.type)a(u);else if("paste"===c.type){var m=o().__experimentalCanUserUseUnfilteredHTML,v=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}}var o=Object(Wl.getFilesFromDataTransfer)(t).filter((function(e){var t=e.type;return/^image\/(?:jpe?g|png|gif)$/.test(t)}));return o.length&&!r&&(r=o.map((function(e){return'<img src="'.concat(Object(Gd.createBlobURL)(e),'">')})).join(""),n=""),{html:r,plainText:n}}(c),O=v.plainText,g=v.html,h=Object(p.pasteHandler)({HTML:g,plainText:O,mode:"BLOCKS",canUserUseUnfilteredHTML:m});l(u,h,h.length-1,-1)}}}}return e.ownerDocument.addEventListener("copy",c),e.ownerDocument.addEventListener("cut",c),e.ownerDocument.addEventListener("paste",c),function(){e.ownerDocument.removeEventListener("copy",c),e.ownerDocument.removeEventListener("cut",c),e.ownerDocument.removeEventListener("paste",c)}}),[])}var Kd=function(e){var t=e.children;return Object(l.createElement)("div",{ref:Wd()},t)};function qd(e){var t=e.clientIds,n=e.children,r=e.__experimentalUpdateSelection,o=Object(v.useSelect)((function(e){return e(yr)}),[]),c=o.canInsertBlockType,i=o.getBlockRootClientId,a=o.getBlocksByClientId,l=o.getTemplateLock,s=Object(v.useSelect)((function(e){return e(p.store)}),[]),u=s.getDefaultBlockName,b=s.getGroupingBlockName,f=a(t),m=i(t[0]),O=Object(d.every)(f,(function(e){return!!e&&Object(p.hasBlockSupport)(e.name,"multiple",!0)&&c(e.name,m)})),g=c(u(),m),h=Object(v.useDispatch)(yr),j=h.removeBlocks,y=h.replaceBlocks,k=h.duplicateBlocks,_=h.insertAfterBlock,E=h.insertBeforeBlock,w=h.flashBlock,C=h.setBlockMovingClientId,S=h.setNavigationMode,B=h.selectBlock,I=Ud();return n({canDuplicate:O,canInsertDefaultBlock:g,isLocked:!!l(m),rootClientId:m,blocks:f,onDuplicate:function(){return k(t,r)},onRemove:function(){return j(t,r)},onInsertBefore:function(){E(Object(d.first)(Object(d.castArray)(t)))},onInsertAfter:function(){_(Object(d.last)(Object(d.castArray)(t)))},onMoveTo:function(){S(!0),B(t[0]),C(t[0])},onGroup:function(){if(f.length){var e=b(),n=Object(p.switchToBlockType)(f,e);n&&y(t,n)}},onUngroup:function(){if(f.length){var e=f[0].innerBlocks;e.length&&y(t,e)}},onCopy:function(){var e=f.map((function(e){return e.clientId}));1===f.length&&w(e[0]),I("copy",e)}})}var $d=Object(b.compose)([Object(v.withSelect)((function(e,t){var n=t.clientId,r=e(yr),o=r.getBlock,c=r.getBlockMode,i=r.getSettings,a=o(n),l=i().codeEditingEnabled;return{mode:c(n),blockType:a?Object(p.getBlockType)(a.name):null,isCodeEditingEnabled:l}})),Object(v.withDispatch)((function(e,t){var n=t.onToggle,r=void 0===n?d.noop:n,o=t.clientId;return{onToggleMode:function(){e(yr).toggleBlockMode(o),r()}}}))])((function(e){var t=e.blockType,n=e.mode,r=e.onToggleMode,o=e.small,c=void 0!==o&&o,i=e.isCodeEditingEnabled,a=void 0===i||i;if(!Object(p.hasBlockSupport)(t,"html",!0)||!a)return null;var s="visual"===n?Object(k.__)("Edit as HTML"):Object(k.__)("Edit visually");return Object(l.createElement)(m.MenuItem,{onClick:r},!c&&s)})),Yd=Object(b.compose)(Object(v.withSelect)((function(e,t){var n=t.clientId,r=e(yr).getBlock(n);return{block:r,shouldRender:r&&"core/html"===r.name}})),Object(v.withDispatch)((function(e,t){var n=t.block;return{onClick:function(){return e(yr).replaceBlocks(n.clientId,Object(p.rawHandler)({HTML:Object(p.getBlockContent)(n)}))}}})))((function(e){var t=e.shouldRender,n=e.onClick,r=e.small;if(!t)return null;var o=Object(k.__)("Convert to Blocks");return Object(l.createElement)(m.MenuItem,{onClick:n},!r&&o)})),Xd=Object(m.createSlotFill)("__experimentalBlockSettingsMenuFirstItem"),Qd=Xd.Fill,Zd=Xd.Slot;Qd.Slot=Zd;var Jd=Qd;function eb(e){var t=e.clientIds,n=e.isGroupable,r=e.isUngroupable,o=e.blocksSelection,c=e.groupingBlockName,i=e.onClose,a=void 0===i?function(){}:i,s=Object(v.useDispatch)(yr).replaceBlocks;return n||r?Object(l.createElement)(l.Fragment,null,n&&Object(l.createElement)(m.MenuItem,{onClick:function(){var e;(e=Object(p.switchToBlockType)(o,c))&&s(t,e),a()}},Object(k._x)("Group","verb")),r&&Object(l.createElement)(m.MenuItem,{onClick:function(){var e;(e=o[0].innerBlocks).length&&s(t,e),a()}},Object(k._x)("Ungroup","Ungrouping blocks from within a Group block back into individual blocks within the Editor "))):null}function tb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function nb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tb(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var rb=Object(m.createSlotFill)("BlockSettingsMenuControls"),ob=rb.Fill,cb=rb.Slot;function ib(e){var t=Object(i.a)({},e);return Object(l.createElement)(m.__experimentalStyleProvider,{document:document},Object(l.createElement)(ob,t))}ib.Slot=function(e){var t,n=e.fillProps,r=e.clientIds,o=void 0===r?null:r,c=Object(v.useSelect)((function(e){var t=e(yr),n=t.getBlocksByClientId,r=t.getSelectedBlockClientIds,c=null!==o?o:r();return Object(d.map)(Object(d.compact)(n(c)),(function(e){return e.name}))}),[o]),a={clientIds:(t=Object(v.useSelect)((function(e){var t,n=e(yr),r=n.getBlockRootClientId,o=n.getBlocksByClientId,c=n.canInsertBlockType,i=n.getSelectedBlockClientIds,a=e(p.store).getGroupingBlockName,l=i(),s=a(),u=c(s,null!=l&&l.length?r(l[0]):void 0),d=o(l),b=1===d.length&&(null===(t=d[0])||void 0===t?void 0:t.name)===s;return{clientIds:l,isGroupable:u&&d.length&&!b,isUngroupable:b&&!!d[0].innerBlocks.length,blocksSelection:d,groupingBlockName:s}}),[])).clientIds,isGroupable:t.isGroupable,isUngroupable:t.isUngroupable,blocksSelection:t.blocksSelection,groupingBlockName:t.groupingBlockName},s=a.isGroupable||a.isUngroupable;return Object(l.createElement)(cb,{fillProps:nb(nb({},n),{},{selectedBlocks:c})},(function(e){if((null==e?void 0:e.length)>0||s)return Object(l.createElement)(m.MenuGroup,null,e,Object(l.createElement)(eb,Object(i.a)({},a,{onClose:null==n?void 0:n.onClose})))}))};var ab=ib,lb={className:"block-editor-block-settings-menu__popover",position:"bottom right",isAlternate:!0};function sb(e){var t=e.blocks,n=e.onCopy,r=Object(b.useCopyToClipboard)((function(){return Object(p.serialize)(t)}),n);return Object(l.createElement)(m.MenuItem,{ref:r},Object(k.__)("Copy"))}var ub=function(e){var t=e.clientIds,n=e.__experimentalSelectBlock,r=e.children,o=Object(j.a)(e,["clientIds","__experimentalSelectBlock","children"]),c=Object(d.castArray)(t),a=c.length,s=c[0],u=Object(v.useSelect)((function(e){var t=e(Vl.store).getShortcutRepresentation;return{duplicate:t("core/block-editor/duplicate"),remove:t("core/block-editor/remove"),insertAfter:t("core/block-editor/insert-after"),insertBefore:t("core/block-editor/insert-before")}}),[]),b=Object(l.useCallback)(n?function(){var e=Object(zl.a)(Lt.a.mark((function e(t){var r;return Lt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t;case 2:(r=e.sent)&&r[0]&&n(r[0]);case 4:case"end":return e.stop()}}),e)})));return function(_x){return e.apply(this,arguments)}}():d.noop,[n]),f=1===a?Object(k.__)("Remove block"):Object(k.__)("Remove blocks");return Object(l.createElement)(qd,{clientIds:t,__experimentalUpdateSelection:!n},(function(e){var n=e.canDuplicate,c=e.canInsertDefaultBlock,p=e.isLocked,v=e.onDuplicate,O=e.onInsertAfter,g=e.onInsertBefore,h=e.onRemove,j=e.onCopy,y=e.onMoveTo,_=e.blocks;return Object(l.createElement)(m.DropdownMenu,Object(i.a)({icon:Gl.a,label:Object(k.__)("Options"),className:"block-editor-block-settings-menu",popoverProps:lb,noIcons:!0},o),(function(e){var o=e.onClose;return Object(l.createElement)(l.Fragment,null,Object(l.createElement)(m.MenuGroup,null,Object(l.createElement)(Jd.Slot,{fillProps:{onClose:o}}),1===a&&Object(l.createElement)(Yd,{clientId:s}),Object(l.createElement)(sb,{blocks:_,onCopy:j}),n&&Object(l.createElement)(m.MenuItem,{onClick:Object(d.flow)(o,v,b),shortcut:u.duplicate},Object(k.__)("Duplicate")),c&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(m.MenuItem,{onClick:Object(d.flow)(o,g),shortcut:u.insertBefore},Object(k.__)("Insert before")),Object(l.createElement)(m.MenuItem,{onClick:Object(d.flow)(o,O),shortcut:u.insertAfter},Object(k.__)("Insert after"))),!p&&Object(l.createElement)(m.MenuItem,{onClick:Object(d.flow)(o,y)},Object(k.__)("Move to")),1===a&&Object(l.createElement)($d,{clientId:s,onToggle:o})),Object(l.createElement)(ab.Slot,{fillProps:{onClose:o},clientIds:t}),"function"==typeof r?r({onClose:o}):l.Children.map((function(e){return Object(l.cloneElement)(e,{onClose:o})})),Object(l.createElement)(m.MenuGroup,null,!p&&Object(l.createElement)(m.MenuItem,{onClick:Object(d.flow)(o,h,b),shortcut:u.remove},f)))}))}))},db=function(e){var t=e.clientIds,n=Object(j.a)(e,["clientIds"]);return Object(l.createElement)(m.ToolbarGroup,null,Object(l.createElement)(m.ToolbarItem,null,(function(e){return Object(l.createElement)(ub,Object(i.a)({clientIds:t,toggleProps:e},n))})))};function bb(e){var t=e.hideDragHandle,n=Object(v.useSelect)((function(e){var t=e(yr),n=t.getBlockName,r=t.getBlockMode,o=t.getSelectedBlockClientIds,c=t.isBlockValid,i=t.getBlockRootClientId,a=t.getSettings,l=o(),s=l[0],u=i(s),d=a();return{blockClientIds:l,blockClientId:s,blockType:s&&Object(p.getBlockType)(n(s)),hasFixedToolbar:d.hasFixedToolbar,hasReducedUI:d.hasReducedUI,rootClientId:u,isValid:l.every((function(e){return c(e)})),isVisual:l.every((function(e){return"visual"===r(e)}))}}),[]),r=n.blockClientIds,o=n.blockClientId,c=n.blockType,a=n.hasFixedToolbar,s=n.hasReducedUI,d=n.isValid,f=n.isVisual,O=Object(v.useDispatch)(yr).toggleBlockHighlight,g=Object(l.useRef)(),h=fd({ref:g,onChange:function(e){e&&s||O(o,e)}}),j=h.showMovers,y=h.gestures,k=Object(b.useViewportMatch)("medium","<")||a;if(c&&!Object(p.hasBlockSupport)(c,"__experimentalToolbar",!0))return null;var _=k||j;if(0===r.length)return null;var E=d&&f,w=r.length>1,C=u()("block-editor-block-toolbar",_&&"is-showing-movers");return Object(l.createElement)("div",{className:C},!w&&!k&&Object(l.createElement)(pd,{clientIds:r}),Object(l.createElement)("div",Object(i.a)({ref:g},y),(E||w)&&Object(l.createElement)(m.ToolbarGroup,{className:"block-editor-block-toolbar__block-controls"},Object(l.createElement)(zd,{clientIds:r}),Object(l.createElement)(ld,{clientIds:r,hideDragHandle:t||s}))),E&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(Br.Slot,{group:"block",className:"block-editor-block-toolbar__slot"}),Object(l.createElement)(Br.Slot,{className:"block-editor-block-toolbar__slot"}),Object(l.createElement)(Br.Slot,{group:"inline",className:"block-editor-block-toolbar__slot"}),Object(l.createElement)(Br.Slot,{group:"other",className:"block-editor-block-toolbar__slot"})),Object(l.createElement)(db,{clientIds:r}))}var fb=function(e){var t=e.focusOnMount,n=Object(j.a)(e,["focusOnMount"]),r=Object(v.useSelect)((function(e){var t=e(yr),n=t.getBlockName,r=t.getBlockParents,o=t.getSelectedBlockClientIds,c=e(p.store).getBlockType,i=o()[0];return{blockType:i&&c(n(i)),hasParents:r(i).length}}),[]),o=r.blockType,c=r.hasParents;if(o&&!Object(p.hasBlockSupport)(o,"__experimentalToolbar",!0))return null;var a=u()("block-editor-block-contextual-toolbar",{"has-parent":c});return Object(l.createElement)("div",{className:"block-editor-block-contextual-toolbar-wrapper"},Object(l.createElement)(ad,Object(i.a)({focusOnMount:t,className:a
56
+ /* translators: accessibility text for the block toolbar */,"aria-label":Object(k.__)("Block tools")},n),Object(l.createElement)(bb,null)))};function pb(e){var t=e(yr),n=t.isNavigationMode,r=t.isMultiSelecting,o=t.hasMultiSelection,c=t.isTyping,i=t.isCaretWithinFormattedText,a=t.getSettings,l=t.getLastMultiSelectedBlockClientId;return{isNavigationMode:n(),isMultiSelecting:r(),isTyping:c(),isCaretWithinFormattedText:i(),hasMultiSelection:o(),hasFixedToolbar:a().hasFixedToolbar,lastClientId:l()}}function mb(e){var t=e.clientId,n=e.rootClientId,r=e.isValid,o=e.isEmptyDefaultBlock,c=e.capturingClientId,i=Object(v.useSelect)(pb,[]),a=i.isNavigationMode,s=i.isMultiSelecting,d=i.isTyping,f=i.isCaretWithinFormattedText,p=i.hasMultiSelection,O=i.hasFixedToolbar,g=i.lastClientId,h=Object(b.useViewportMatch)("medium"),j=Object(l.useState)(!1),y=Object(Co.a)(j,2),k=y[0],_=y[1],E=Object(l.useState)(!1),w=Object(Co.a)(E,2),C=w[0],S=w[1],B=Object(l.useContext)(jb),I=Object(v.useDispatch)(yr).stopTyping,x=!d&&!a&&o&&r,P=a,T=!a&&!O&&h&&!x&&!s&&(!d||f),N=!(a||T||O||o);Object(Vl.useShortcut)("core/block-editor/focus-toolbar",Object(l.useCallback)((function(){_(!0),I(!0)}),[]),{bindGlobal:!0,eventName:"keydown",isDisabled:!N}),Object(l.useEffect)((function(){T||_(!1)}),[T]);var D=Object(l.useRef)();if(Object(l.useEffect)((function(){D.current=void 0}),[t]),!(P||T||k||x))return null;var A=B[t];if(!A)return null;var L=A.ownerDocument;c&&(A=Sc(c,L));var R=A;if(p){var M=B[g];if(!M)return null;R={top:A,bottom:M}}var F=x?"top left right":"top right left",V=x?void 0:L.defaultView.frameElement||Object(Wl.getScrollContainer)(A)||L.body;return Object(l.createElement)(m.Popover,{noArrow:!0,animate:!1,position:F,focusOnMount:!1,anchorRef:R,className:"block-editor-block-list__block-popover",__unstableStickyBoundaryElement:V,__unstableSlotName:"block-toolbar",__unstableBoundaryParent:!0,__unstableObserveElement:A,shouldAnchorIncludePadding:!0},(T||k)&&Object(l.createElement)("div",{onFocus:function(){S(!0)},onBlur:function(){S(!1)},tabIndex:-1,className:u()("block-editor-block-list__block-popover-inserter",{"is-visible":C})},Object(l.createElement)(Wu,{clientId:t,rootClientId:n,__experimentalIsQuick:!0})),(T||k)&&Object(l.createElement)(fb,{focusOnMount:k,__experimentalInitialIndex:D.current,__experimentalOnIndexChange:function(e){D.current=e}}),P&&Object(l.createElement)(cd,{clientId:t,rootClientId:n,blockElement:A}),x&&Object(l.createElement)("div",{className:"block-editor-block-list__empty-block-inserter"},Object(l.createElement)(Wu,{position:"bottom right",rootClientId:n,clientId:t,__experimentalIsQuick:!0})))}function vb(e){var t=e(yr),n=t.getSelectedBlockClientId,r=t.getFirstMultiSelectedBlockClientId,o=t.getBlockRootClientId,c=t.__unstableGetBlockWithoutInnerBlocks,i=t.getBlockParents,a=t.__experimentalGetBlockListSettingsForBlocks,l=n()||r();if(l){var s=c(l)||{},u=s.name,b=s.attributes,f=void 0===b?{}:b,m=s.isValid,v=i(l),O=a(v),g=Object(d.find)(v,(function(e){var t;return null===(t=O[e])||void 0===t?void 0:t.__experimentalCaptureToolbars}));return{clientId:l,rootClientId:o(l),name:u,isValid:m,isEmptyDefaultBlock:u&&Object(p.isUnmodifiedDefaultBlock)({name:u,attributes:f}),capturingClientId:g}}}function Ob(){var e=Object(v.useSelect)(vb,[]);if(!e)return null;var t=e.clientId,n=e.rootClientId,r=e.name,o=e.isValid,c=e.isEmptyDefaultBlock,i=e.capturingClientId;return r?Object(l.createElement)(mb,{clientId:t,rootClientId:n,isValid:o,isEmptyDefaultBlock:c,capturingClientId:i}):null}var gb="undefined"==typeof window?function(e){setTimeout((function(){return e(Date.now())}),0)}:window.requestIdleCallback||window.requestAnimationFrame,hb="undefined"==typeof window?clearTimeout:window.cancelIdleCallback||window.cancelAnimationFrame,jb=Object(l.createContext)(),yb=Object(l.createContext)();function kb(e){var t,n=e.className,r=e.__experimentalLayout,o=Object(l.useRef)(),c=Object(l.useState)({}),i=Object(Co.a)(c,2),a=i[0],s=i[1],d=function(e){var t=Object(l.useState)(!1),n=Object(Co.a)(t,2),r=n[0],o=n[1],c=Object(l.useState)(!1),i=Object(Co.a)(c,2),a=i[0],s=i[1],u=Object(l.useState)(null),d=Object(Co.a)(u,2),b=d[0],f=d[1],p=Object(v.useSelect)((function(e){var t=e(yr),n=t.isMultiSelecting,r=t.isBlockInsertionPointVisible,o=t.getBlockInsertionPoint,c=t.getBlockOrder,i=t.getBlockListSettings,a=o(),l=c(a.rootClientId);return{getBlockListSettings:i,isMultiSelecting:n(),isInserterVisible:r(),selectedClientId:l[a.index-1],selectedRootClientId:a.rootClientId}}),[]),m=p.isMultiSelecting,O=p.isInserterVisible,g=p.selectedClientId,h=p.selectedRootClientId,j=p.getBlockListSettings,y=Object(l.useCallback)((function(e){var t;if(e.target.classList.contains("block-editor-block-list__layout")){var n;e.target.classList.contains("is-root-container")||(n=(e.target.getAttribute("data-block")?e.target:e.target.closest("[data-block]")).getAttribute("data-block"));var c=(null===(t=j(n))||void 0===t?void 0:t.orientation)||"vertical",i=e.target.getBoundingClientRect(),a=e.clientY-i.top,l=e.clientX-i.left,s=Array.from(e.target.children),u=s.find((function(e){return e.classList.contains("wp-block")&&"vertical"===c&&e.offsetTop>a||e.classList.contains("wp-block")&&"horizontal"===c&&e.offsetLeft>l})),d=u?s[s.indexOf(u)-1]:s[s.length-1];if(d&&(d.id||(d=d.firstElementChild))){var b=d.id.slice("block-".length);if(b){var p=d.getBoundingClientRect();"horizontal"===c&&(e.clientY>p.bottom||e.clientY<p.top)||"vertical"===c&&(e.clientX>p.right||e.clientX<p.left)?r&&o(!1):(o(!0),f(b))}}}else r&&o(!1)}),[r,o,f]),k=!a&&!m;return Object(l.useEffect)((function(){if(k)return e.current.addEventListener("mousemove",y),function(){e.current.removeEventListener("mousemove",y)}}),[k,y]),!m&&(r||a||O)&&Object(l.createElement)(nd,{clientId:O?g:b,selectedRootClientId:h,isInserterShown:r,isInserterForced:a,setIsInserterForced:function(e){s(e),e||o(e)},containerRef:e,showInsertionPoint:O})}(o);t=Object(v.useSelect)((function(e){return e(yr).getSettings().__experimentalBlockPatterns}),[]),Object(l.useEffect)((function(){if(null!=t&&t.length){var e,n=-1;return e=gb((function r(){++n>=t.length||(Object(v.select)(yr).__experimentalGetParsedPattern(t[n].name),e=gb(r))})),function(){return hb(e)}}}),[t]);var f=Object(b.useViewportMatch)("medium"),p=Object(v.useSelect)((function(e){var t=e(yr),n=t.isTyping,r=t.getSettings,o=t.isNavigationMode,c=r(),i=c.outlineMode,a=c.focusMode;return{isTyping:n(),isOutlineMode:i,isFocusMode:a,isNavigationMode:o()}}),[]),m=p.isTyping,O=p.isOutlineMode,g=p.isFocusMode,h=p.isNavigationMode;return Object(l.createElement)(jb.Provider,{value:a},d,Object(l.createElement)(Ob,null),Object(l.createElement)("div",{ref:Object(b.useMergeRefs)([o,ed()]),className:u()("block-editor-block-list__layout is-root-container",n,{"is-typing":m,"is-outline-mode":O,"is-focus-mode":g&&f,"is-navigate-mode":h})},Object(l.createElement)(yb.Provider,{value:s},Object(l.createElement)(Eb,{__experimentalLayout:r}))))}function _b(e){var t=e.placeholder,n=e.rootClientId,r=e.renderAppender,o=e.__experimentalAppenderTagName,c=e.__experimentalLayout,i=void 0===c?Ar:c,a=Object(v.useSelect)((function(e){var t=e(yr),r=t.getBlockOrder,o=t.getSelectedBlockClientId,c=t.getMultiSelectedBlockClientIds,i=t.hasMultiSelection;return{blockClientIds:r(n),selectedBlockClientId:o(),multiSelectedBlockClientIds:c(),hasMultiSelection:i()}}),[n]),s=a.blockClientIds,u=a.selectedBlockClientId,d=a.multiSelectedBlockClientIds,b=a.hasMultiSelection;return Object(l.createElement)(Mr,{value:i},s.map((function(e,t){var r=b?d.includes(e):u===e;return Object(l.createElement)(v.AsyncModeProvider,{key:e,value:!r},Object(l.createElement)(Vb,{rootClientId:n,clientId:e,index:t}))})),s.length<1&&t,Object(l.createElement)(Yu,{tagName:o,rootClientId:n,renderAppender:r}))}function Eb(e){return Object(l.createElement)(v.AsyncModeProvider,{value:!1},Object(l.createElement)(_b,e))}function wb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Cb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wb(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Sb(e){var t=Object(l.useContext)(yb),n=Object(v.useSelect)((function(t){var n=t(yr),r=n.isBlockSelected,o=n.isFirstMultiSelectedBlock,c=n.getLastMultiSelectedBlockClientId;return r(e)||o(e)||c()===e}));return Object(b.useRefEffect)((function(r){if(n)return t((function(t){return Cb(Cb({},t),{},Object(a.a)({},e,r))})),function(){t((function(t){return Object(d.omit)(t,e)}))}}),[n,e,t])}var Bb=n(158),Ib=n.n(Bb);function xb(e){var t=Object(l.useRef)(),n=Object(v.useSelect)((function(t){var n=t(yr),r=n.isBlockSelected,o=n.getBlockSelectionEnd;return r(e)||o()===e}),[e]);return Object(l.useEffect)((function(){if(n){var e=t.current;if(!e.contains(e.ownerDocument.activeElement)){var r=Object(Wl.getScrollContainer)(e);r&&Ib()(e,r,{onlyScrollIfNeeded:!0})}}}),[n]),t}function Pb(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 Tb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pb(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Nb(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.__unstableIsHtml,r=Object(l.useContext)(Lb),o=r.clientId,c=r.index,i=r.className,a=r.wrapperProps,s=void 0===a?{}:a,d=Object(v.useSelect)((function(e){var t=e(yr),n=t.getBlockMode,r=t.getBlockName,c=t.isTyping,i=t.getGlobalBlockCount,a=t.isBlockSelected,l=t.isBlockMultiSelected,s=t.isAncestorMultiSelected,u=t.isFirstMultiSelectedBlock,d=a(o),b=l(o)||s(o),f=r(o);return{mode:n(o),name:f,blockTitle:Object(p.getBlockType)(f).title,isPartOfSelection:d||b,adjustScrolling:d||u(o),enableAnimation:!c()&&i()<=200}}),[o]),f=d.mode,m=d.name,O=d.blockTitle,g=d.isPartOfSelection,h=d.adjustScrolling,j=d.enableAnimation,y=Object(k.sprintf)(Object(k.__)("Block: %s"),O),_="html"!==f||n?"":"-visual",E=Object(b.useMergeRefs)([e.ref,ys(o),xb(o),Sb(o),Rs(o),Ms(o),_s(),$l({isSelected:g,adjustScrolling:h,enableAnimation:j,triggerAnimationOnChange:c})]);return Tb(Tb(Tb({},s),e),{},{ref:E,id:"block-".concat(o).concat(_),tabIndex:0,role:"group","aria-label":y,"data-block":o,"data-type":m,"data-title":O,className:u()(i,e.className,s.className,Es(o),ws(o),Cs(o),Ss(o)),style:Tb(Tb({},s.style),e.style)})}function Db(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ab(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Db(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Db(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}Nb.save=p.__unstableGetBlockProps;var Lb=Object(l.createContext)();function Rb(e){var t=e.children,n=e.isHtml,r=Object(j.a)(e,["children","isHtml"]);return Object(l.createElement)("div",Nb(r,{__unstableIsHtml:n}),t)}var Mb=Object(v.withSelect)((function(e,t){var n=t.clientId,r=t.rootClientId,o=e(yr),c=o.isBlockSelected,i=o.getBlockMode,a=o.isSelectionEnabled,l=o.getTemplateLock,s=(0,o.__unstableGetBlockWithoutInnerBlocks)(n),u=c(n),d=l(r),b=s||{},f=b.name,p=b.attributes,m=b.isValid;return{mode:i(n),isSelectionEnabled:a(),isLocked:!!d,block:s,name:f,attributes:p,isValid:m,isSelected:u}})),Fb=Object(v.withDispatch)((function(e,t,n){var r=n.select,o=e(yr),c=o.updateBlockAttributes,i=o.insertBlocks,a=o.mergeBlocks,l=o.replaceBlocks,s=o.toggleSelection,u=o.__unstableMarkLastChangeAsPersistent;return{setAttributes:function(e){var n=(0,r(yr).getMultiSelectedBlockClientIds)(),o=t.clientId,i=n.length?n:[o];c(i,e)},onInsertBlocks:function(e,n){var r=t.rootClientId;i(e,n,r)},onInsertBlocksAfter:function(e){var n=t.clientId,o=t.rootClientId,c=(0,r(yr).getBlockIndex)(n,o);i(e,c+1,o)},onMerge:function(e){var n=t.clientId,o=r(yr),c=o.getPreviousBlockClientId,i=o.getNextBlockClientId;if(e){var l=i(n);l&&a(n,l)}else{var s=c(n);s&&a(s,n)}},onReplace:function(e,n,r){e.length&&!Object(p.isUnmodifiedDefaultBlock)(e[e.length-1])&&u(),l([t.clientId],e,n,r)},toggleSelection:function(e){s(e)}}})),Vb=Object(b.compose)(b.pure,Mb,Fb,Object(b.ifCondition)((function(e){return!!e.block})),Object(m.withFilters)("editor.BlockListBlock"))((function(e){var t,n,r,o=e.mode,c=e.isLocked,i=e.clientId,a=e.isSelected,s=e.isSelectionEnabled,b=e.className,f=e.name,m=e.isValid,O=e.attributes,g=e.wrapperProps,h=e.setAttributes,j=e.onReplace,y=e.onInsertBlocksAfter,k=e.onMerge,_=e.toggleSelection,E=e.index,w=Object(v.useDispatch)(yr).removeBlock,C=Object(l.useCallback)((function(){return w(i)}),[i]),S=Object(l.createElement)(Fl,{name:f,isSelected:a,attributes:O,setAttributes:h,insertBlocksAfter:c?void 0:y,onReplace:c?void 0:j,onRemove:c?void 0:C,mergeBlocks:c?void 0:k,clientId:i,isSelectionEnabled:s,toggleSelection:_}),B=Object(p.getBlockType)(f),I=B.apiVersion>1||Object(p.hasBlockSupport)(B,"lightBlockWrapper",!1);B.getEditWrapperProps&&(t=g,n=B.getEditWrapperProps(O),r=Ab(Ab({},t),n),t&&n&&t.className&&n.className&&(r.className=u()(t.className,n.className)),t&&n&&t.style&&n.style&&(r.style=Ab(Ab({},t.style),n.style)),g=r);var x,P=g&&!!g["data-align"];P&&(S=Object(l.createElement)("div",{className:"wp-block","data-align":g["data-align"]},S)),x=m?"html"===o?Object(l.createElement)(l.Fragment,null,Object(l.createElement)("div",{style:{display:"none"}},S),Object(l.createElement)(Rb,{isHtml:!0},Object(l.createElement)(js,{clientId:i}))):I?S:Object(l.createElement)(Rb,g,S):Object(l.createElement)(Rb,{className:"has-warning"},Object(l.createElement)(ps,{clientId:i}),Object(l.createElement)("div",null,Object(p.getSaveElement)(B,O)));var T={clientId:i,isSelected:a,index:E,className:u()(b,{"wp-block":!P}),wrapperProps:Object(d.omit)(g,["data-align"])},N=Object(l.useMemo)((function(){return T}),Object.values(T));return Object(l.createElement)(Lb.Provider,{value:N},Object(l.createElement)(Os,{fallback:Object(l.createElement)(Rb,{className:"has-warning"},Object(l.createElement)(vs,null))},x))}));function Hb(e){var t=e.level;return Object(d.times)(t-1,(function(e){var n=e+2===t;return Object(l.createElement)("div",{key:e,"aria-hidden":"true",className:u()("block-editor-block-navigator-indentation",{"has-item":n})})}))}var zb=function(e,t,n){return Object(k.sprintf)(
57
  /* translators: 1: The numerical position of the block. 2: The total number of blocks. 3. The level of nesting for the block. */
58
+ Object(k.__)("Block %1$d of %2$d, Level %3$d"),e,t,n)},Gb=function(e,t){return Object(d.isArray)(t)&&t.length?-1!==t.indexOf(e):t===e},Ub=Object(l.forwardRef)((function e(t,n){var r=t.className,o=t.block.clientId,c=t.isSelected,i=t.onClick,a=t.position,s=t.siblingBlockCount,d=t.level,f=t.tabIndex,p=t.onFocus,v=t.onDragStart,O=t.onDragEnd,g=t.draggable,h=Cl(o),j=Object(b.useInstanceId)(e),y="block-navigation-block-select-button__".concat(j),_=zb(a,s,d);return Object(l.createElement)(l.Fragment,null,Object(l.createElement)(m.Button,{className:u()("block-editor-block-navigation-block-select-button",r),onClick:i,"aria-describedby":y,ref:n,tabIndex:f,onFocus:p,onDragStart:v,onDragEnd:O,draggable:g},Object(l.createElement)(Hb,{level:d}),Object(l.createElement)(hl,{icon:null==h?void 0:h.icon,showColors:!0}),Object(l.createElement)(Sl,{clientId:o}),c&&Object(l.createElement)(m.VisuallyHidden,null,Object(k.__)("(selected block)"))),Object(l.createElement)("div",{className:"block-editor-block-navigation-block-select-button__description",id:y},_))}));function Wb(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 Kb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wb(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var qb=function(e){return"BlockNavigationBlock-".concat(e)},$b=Object(l.forwardRef)((function e(t,n){var r=t.block.clientId,o=Object(v.useSelect)((function(e){return e(yr).getBlockName(r)}),[r]).name,c=Object(b.useInstanceId)(e);return Object(l.createElement)(m.Slot,{name:qb(r)},(function(e){if(!e.length)return Object(l.createElement)(Ub,Object(i.a)({ref:n},t));var r=t.className,a=t.isSelected,s=t.position,d=t.siblingBlockCount,b=t.level,f=t.tabIndex,v=t.onFocus,O=Object(p.getBlockType)(o),g="block-navigation-block-slot__".concat(c),h=zb(s,d,b),j={tabIndex:f,onFocus:v,ref:n,"aria-describedby":g};return Object(l.createElement)(l.Fragment,null,Object(l.createElement)("div",{className:u()("block-editor-block-navigation-block-slot",r)},Object(l.createElement)(hl,{icon:O.icon,showColors:!0}),l.Children.map(e,(function(e){return Object(l.cloneElement)(e,Kb(Kb({},e.props),j))})),a&&Object(l.createElement)(m.VisuallyHidden,null,Object(k.__)("(selected block)")),Object(l.createElement)("div",{className:"block-editor-block-navigation-block-slot__description",id:g},h)))}))})),Yb=function(e){var t=Object(l.useContext)(Lb).clientId;return Object(l.createElement)(m.Fill,Object(i.a)({},e,{name:qb(t)}))},Xb=Object(l.forwardRef)((function(e,t){var n=e.onClick,r=e.block,o=e.isSelected,c=e.position,a=e.siblingBlockCount,s=e.level,d=Object(j.a)(e,["onClick","block","isSelected","position","siblingBlockCount","level"]),b=as(),f=b.__experimentalFeatures,p=b.blockDropTarget,m=void 0===p?{}:p,O=r.clientId,g=Object(v.useSelect)((function(e){var t=e(yr),n=t.getBlockRootClientId,r=t.hasBlockMovingClientId,o=t.getSelectedBlockClientId;return{rootClientId:n(O)||"",blockMovingClientId:r(),selectedBlockInBlockEditor:o()}}),[O]),h=g.rootClientId,y=g.blockMovingClientId,k=g.selectedBlockInBlockEditor,_=y&&k===O,E=m.rootClientId,w=m.clientId,C=m.dropPosition,S=E===h&&w===O&&"top"===C,B=E===h&&w===O&&"bottom"===C,I=E===O&&"inside"===C,x=u()("block-editor-block-navigation-block-contents",{"is-dropping-before":S||_,"is-dropping-after":B,"is-dropping-to-inner-blocks":I});return Object(l.createElement)(rd,{clientIds:[r.clientId],elementId:"block-navigation-block-".concat(r.clientId)},(function(e){var u=e.draggable,b=e.onDragStart,p=e.onDragEnd;return f?Object(l.createElement)($b,Object(i.a)({ref:t,className:x,block:r,onClick:n,isSelected:o,position:c,siblingBlockCount:a,level:s,draggable:u&&f,onDragStart:b,onDragEnd:p},d)):Object(l.createElement)(Ub,Object(i.a)({ref:t,className:x,block:r,onClick:n,isSelected:o,position:c,siblingBlockCount:a,level:s,draggable:u&&f,onDragStart:b,onDragEnd:p},d))}))}));function Qb(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Zb(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Zb(e,void 0):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,i=!0,a=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return i=e.done,e},e:function(e){a=!0,c=e},f:function(){try{i||null==n.return||n.return()}finally{if(a)throw c}}}}function Zb(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Jb(e){var t=e.block,n=e.isSelected,r=e.isBranchSelected,o=e.isLastOfSelectedBranch,c=e.onClick,i=e.position,a=e.level,s=e.rowCount,d=e.siblingBlockCount,b=e.showBlockMovers,f=e.path,p=Object(l.useRef)(null),O=Object(l.useState)(!1),g=Object(Co.a)(O,2),h=g[0],j=g[1],y=t.clientId,_=Object(v.useSelect)((function(e){var t=e(yr),n=t.isBlockBeingDragged,r=t.isAncestorBeingDragged,o=t.getBlockParents;return{isDragging:n(y)||r(y),blockParents:o(y)}}),[y]),E=_.isDragging,w=_.blockParents,C=Object(v.useDispatch)(yr),S=C.selectBlock,B=C.toggleBlockHighlight,I=b&&d>0,x=u()("block-editor-block-navigation-block__mover-cell",{"is-visible":h}),P=as(),T=P.__experimentalFeatures,N=P.__experimentalPersistentListViewFeatures,D=u()("block-editor-block-navigation-block__menu-cell",{"is-visible":h});Object(l.useEffect)((function(){N&&n&&p.current.focus()}),[]),Object(l.useEffect)((function(){T&&n&&p.current.focus()}),[T,n]);var A=N?B:function(){},L=function(){j(!0),A(y,!0)},R=function(){j(!1),A(y,!1)},M=u()({"is-selected":n,"is-branch-selected":N&&r,"is-last-of-selected-branch":N&&o,"is-dragging":E});return Object(l.createElement)(Xl,{className:M,onMouseEnter:L,onMouseLeave:R,onFocus:L,onBlur:R,level:a,position:i,rowCount:s,path:f,id:"block-navigation-block-".concat(y),"data-block":y},Object(l.createElement)(m.__experimentalTreeGridCell,{className:"block-editor-block-navigation-block__contents-cell",colSpan:I?void 0:2,ref:p},(function(e){var r=e.ref,o=e.tabIndex,s=e.onFocus;return Object(l.createElement)("div",{className:"block-editor-block-navigation-block__contents-container"},Object(l.createElement)(Xb,{block:t,onClick:function(){return c(t.clientId)},isSelected:n,position:i,siblingBlockCount:d,level:a,ref:r,tabIndex:o,onFocus:s}))})),I&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(m.__experimentalTreeGridCell,{className:x,withoutGridItem:!0},Object(l.createElement)(m.__experimentalTreeGridItem,null,(function(e){var t=e.ref,n=e.tabIndex,r=e.onFocus;return Object(l.createElement)(os,{orientation:"vertical",clientIds:[y],ref:t,tabIndex:n,onFocus:r})})),Object(l.createElement)(m.__experimentalTreeGridItem,null,(function(e){var t=e.ref,n=e.tabIndex,r=e.onFocus;return Object(l.createElement)(cs,{orientation:"vertical",clientIds:[y],ref:t,tabIndex:n,onFocus:r})})))),T&&Object(l.createElement)(m.__experimentalTreeGridCell,{className:D},(function(e){var t=e.ref,n=e.tabIndex,r=e.onFocus;return Object(l.createElement)(ub,{clientIds:[y],icon:Gl.a,toggleProps:{ref:t,tabIndex:n,onFocus:r},disableOpenOnArrowDown:!0,__experimentalSelectBlock:c},(function(e){var t=e.onClose;return Object(l.createElement)(m.MenuGroup,null,Object(l.createElement)(m.MenuItem,{onClick:Object(zl.a)(Lt.a.mark((function e(){var n,r,o;return Lt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!w.length){e.next=20;break}n=Qb(w),e.prev=2,n.s();case 4:if((r=n.n()).done){e.next=10;break}return o=r.value,e.next=8,S(o);case 8:e.next=4;break;case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(2),n.e(e.t0);case 15:return e.prev=15,n.f(),e.finish(15);case 18:e.next=22;break;case 20:return e.next=22,S(null);case 22:return e.next=24,S(y);case 24:t();case 25:case"end":return e.stop()}}),e,null,[[2,12,15,18]])})))},Object(k.__)("Go to block")))}))})))}function ef(e){var t=e.parentBlockClientId,n=e.position,r=e.level,o=e.rowCount,c=e.path,i=Object(v.useSelect)((function(e){var n=e(yr),r=n.isBlockBeingDragged,o=n.isAncestorBeingDragged;return r(t)||o(t)}),[t]),a=Object(b.useInstanceId)(ef),s="block-navigation-appender-row__description_".concat(a),d=Object(k.sprintf)(
59
  /* translators: 1: The numerical position of the block that will be inserted. 2: The level of nesting for the block that will be inserted. */
60
+ Object(k.__)("Add block at position %1$d, Level %2$d"),n,r);return Object(l.createElement)(Xl,{className:u()({"is-dragging":i}),level:r,position:n,rowCount:o,path:c},Object(l.createElement)(m.__experimentalTreeGridCell,{className:"block-editor-block-navigation-appender__cell",colSpan:"3"},(function(e){var n=e.ref,o=e.tabIndex,c=e.onFocus;return Object(l.createElement)("div",{className:"block-editor-block-navigation-appender__container"},Object(l.createElement)(Hb,{level:r}),Object(l.createElement)(Wu,{rootClientId:t,__experimentalIsQuick:!0,"aria-describedby":s,toggleProps:{ref:n,tabIndex:o,onFocus:c}}),Object(l.createElement)("div",{className:"block-editor-block-navigation-appender__description",id:s},d))})))}function tf(e){var t=e.blocks,n=e.selectBlock,r=e.selectedBlockClientIds,o=e.showAppender,c=e.showBlockMovers,i=e.showNestedBlocks,a=e.parentBlockClientId,s=e.level,u=void 0===s?1:s,b=e.terminatedLevels,f=void 0===b?[]:b,p=e.path,m=void 0===p?[]:p,v=e.isBranchSelected,O=void 0!==v&&v,g=e.isLastOfBranch,h=void 0!==g&&g,j=!a,k=Object(d.compact)(t),_=function(e){return o&&!j&&Gb(e,r)},E=_(a),w=k.length,C=E?w+1:w,S=C;return Object(l.createElement)(l.Fragment,null,Object(d.map)(k,(function(e,t){var a=e.clientId,s=e.innerBlocks,d=t+1,b=C===d?[].concat(Object(y.a)(f),[u]):f,p=[].concat(Object(y.a)(m),[d]),v=i&&!!s&&!!s.length,g=_(a),j=v||g,k=Gb(a,r),E=O||k&&j,S=t===w-1,B=k||h&&S,I=h&&!j&&S;return Object(l.createElement)(l.Fragment,{key:a},Object(l.createElement)(Jb,{block:e,onClick:n,isSelected:k,isBranchSelected:E,isLastOfSelectedBranch:I,level:u,position:d,rowCount:C,siblingBlockCount:w,showBlockMovers:c,terminatedLevels:f,path:p}),j&&Object(l.createElement)(tf,{blocks:s,selectedBlockClientIds:r,selectBlock:n,isBranchSelected:E,isLastOfBranch:B,showAppender:o,showBlockMovers:c,showNestedBlocks:i,parentBlockClientId:a,level:u+1,terminatedLevels:b,path:p}))})),E&&Object(l.createElement)(ef,{parentBlockClientId:a,position:C,rowCount:S,level:u,terminatedLevels:f,path:[].concat(Object(y.a)(m),[S])}))}function nf(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function rf(e,t){return t.left<=e.x&&t.right>=e.x&&t.top<=e.y&&t.bottom>=e.y}tf.defaultProps={selectBlock:function(){}};var of=["top","bottom"];function cf(){var e=Object(v.useSelect)((function(e){var t=e(yr);return{canInsertBlocks:t.canInsertBlocks,getBlockRootClientId:t.getBlockRootClientId,getBlockIndex:t.getBlockIndex,getBlockCount:t.getBlockCount,getDraggedBlockClientIds:t.getDraggedBlockClientIds}}),[]),t=e.getBlockRootClientId,n=e.getBlockIndex,r=e.getBlockCount,o=e.getDraggedBlockClientIds,c=e.canInsertBlocks,i=Object(l.useState)(),a=Object(Co.a)(i,2),s=a[0],u=a[1],d=s||{},f=Xu(d.rootClientId,d.blockIndex),p=Object(b.useThrottle)(Object(l.useCallback)((function(e,i){var a={x:e.clientX,y:e.clientY},l=!!e.dataTransfer.getData("wp-blocks"),s=l?o():void 0,d=function(e,t){var n,r,o,c,i,a=function(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return nf(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?nf(e,void 0):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,i=!0,a=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return i=e.done,e},e:function(e){a=!0,c=e},f:function(){try{i||null==n.return||n.return()}finally{if(a)throw c}}}}(e);try{for(a.s();!(i=a.n()).done;){var l=i.value;if(!l.isDraggedBlock){var s=l.element.getBoundingClientRect(),u=Zu(t,s,of),d=Object(Co.a)(u,2),b=d[0],f=d[1],p=rf(t,s);if(void 0===o||b<o||p){o=b;var m=e.indexOf(l),v=e[m-1];if("top"===f&&v&&v.rootClientId===l.rootClientId&&!v.isDraggedBlock?(r=v,n="bottom",c=v.element.getBoundingClientRect()):(r=l,n=f,c=s),p)break}}}}catch(e){a.e(e)}finally{a.f()}if(r){var O="bottom"===n;if(O&&r.canInsertDraggedBlocksAsChild&&(r.innerBlockCount>0||function(e,t){var n=t.left+t.width/2;return e.x>n}(t,c)))return{rootClientId:r.clientId,blockIndex:0,dropPosition:"inside"};if(r.canInsertDraggedBlocksAsSibling){var g=O?1:0;return{rootClientId:r.rootClientId,clientId:r.clientId,blockIndex:r.blockIndex+g,dropPosition:n}}}}(Array.from(i.querySelectorAll("[data-block]")).map((function(e){var o=e.dataset.block,i=t(o);return{clientId:o,rootClientId:i,blockIndex:n(o,i),element:e,isDraggedBlock:!!l&&s.includes(o),innerBlockCount:r(o),canInsertDraggedBlocksAsSibling:!l||c(s,i),canInsertDraggedBlocksAsChild:!l||c(s,o)}})),a);d&&u(d)}),[]),200);return{ref:Object(b.__experimentalUseDropZone)({onDrop:f,onDragOver:function(e){p(e,e.currentTarget)},onDragEnd:function(){p.cancel(),u(null)}}),target:s}}function af(e){var t=e.__experimentalFeatures,n=e.__experimentalPersistentListViewFeatures,r=Object(j.a)(e,["__experimentalFeatures","__experimentalPersistentListViewFeatures"]),o=cf(),c=o.ref,i=o.target;t||(i=void 0);var a=Object(l.useMemo)((function(){return{__experimentalFeatures:t,__experimentalPersistentListViewFeatures:n,blockDropTarget:i}}),[t,n,i]);return Object(l.createElement)(m.__experimentalTreeGrid,{className:"block-editor-block-navigation-tree","aria-label":Object(k.__)("Block navigation structure"),ref:c},Object(l.createElement)(is.Provider,{value:a},Object(l.createElement)(tf,r)))}function lf(e){var t=e.onSelect,n=void 0===t?d.noop:t,r=e.__experimentalFeatures,o=Object(v.useSelect)((function(e){var t=e(yr),n=t.getBlockHierarchyRootClientId,r=t.getSelectedBlockClientId,o=t.__unstableGetClientIdsTree,c=t.__unstableGetClientIdWithClientIdsTree,i=r(),l=o();return{rootBlock:a&&!Object(d.isArray)(a)?c(n(i)):null,rootBlocks:l,selectedBlockClientId:i}})),c=o.rootBlock,i=o.rootBlocks,a=o.selectedBlockClientId,s=Object(v.useDispatch)(yr).selectBlock;if(!i||0===i.length)return null;var u=c&&(!Gb(c.clientId,a)||c.innerBlocks&&0!==c.innerBlocks.length);return Object(l.createElement)("div",{className:"block-editor-block-navigation__container"},Object(l.createElement)("p",{className:"block-editor-block-navigation__label"},Object(k.__)("List view")),Object(l.createElement)(af,{blocks:u?[c]:i,selectedBlockClientIds:[a],selectBlock:function(e){s(e),n(e)},__experimentalFeatures:r,showNestedBlocks:!0}))}function sf(e){var t=e.isEnabled,n=e.onToggle,r=e.isOpen,o=e.innerRef,c=Object(j.a)(e,["isEnabled","onToggle","isOpen","innerRef"]);Object(Vl.useShortcut)("core/edit-post/toggle-block-navigation",Object(l.useCallback)(n,[n]),{bindGlobal:!0,isDisabled:!t});var a=Object(v.useSelect)((function(e){return e(Vl.store).getShortcutRepresentation("core/edit-post/toggle-block-navigation")}),[]);return Object(l.createElement)(m.Button,Object(i.a)({},c,{ref:o,icon:Hl.a,"aria-expanded":r,"aria-haspopup":"true",onClick:t?n:void 0
61
+ /* translators: button label text should, if possible, be under 16 characters. */,label:Object(k.__)("List view"),className:"block-editor-block-navigation",shortcut:a,"aria-disabled":!t}))}var uf=Object(l.forwardRef)((function(e,t){var n=e.isDisabled,r=e.__experimentalFeatures,o=Object(j.a)(e,["isDisabled","__experimentalFeatures"]),c=Object(v.useSelect)((function(e){return!!e(yr).getBlockCount()}),[])&&!n;return Object(l.createElement)(m.Dropdown,{contentClassName:"block-editor-block-navigation__popover",position:"bottom right",renderToggle:function(e){var n=e.isOpen,r=e.onToggle;return Object(l.createElement)(sf,Object(i.a)({},o,{innerRef:t,isOpen:n,onToggle:r,isEnabled:c}))},renderContent:function(e){var t=e.onClose;return Object(l.createElement)(lf,{onSelect:t,__experimentalFeatures:r})}})})),df=n(163),bf=[li.rawShortcut.primary("z"),li.rawShortcut.primaryShift("z"),li.rawShortcut.primary("y")],ff=Object(l.createElement)(m.KeyboardShortcuts,{bindGlobal:!0,shortcuts:Object(d.fromPairs)(bf.map((function(e){return[e,function(e){return e.preventDefault()}]})))}),pf=function(){return ff};function mf(e){return e.filter((function(e){var t=e.type;return/^image\/(?:jpe?g|png|gif)$/.test(t)})).map((function(e){return'<img src="'.concat(Object(Gd.createBlobURL)(e),'">')})).join("")}var vf={position:"bottom right",isAlternate:!0},Of=function(){return Object(l.createElement)(l.Fragment,null,["bold","italic","link","text-color"].map((function(e){return Object(l.createElement)(m.Slot,{name:"RichText.ToolbarControls.".concat(e),key:e})})),Object(l.createElement)(m.Slot,{name:"RichText.ToolbarControls"},(function(e){return 0!==e.length&&Object(l.createElement)(m.ToolbarItem,null,(function(t){return Object(l.createElement)(m.DropdownMenu,{icon:es.a
62
+ /* translators: button label text should, if possible, be under 16 characters. */,label:Object(k.__)("More"),toggleProps:t,controls:Object(d.orderBy)(e.map((function(e){return Object(Co.a)(e,1)[0].props})),"title"),popoverProps:vf})}))})))},gf=function(e){var t=e.inline,n=e.anchorRef;return t?Object(l.createElement)(m.Popover,{noArrow:!0,position:"top center",focusOnMount:!1,anchorRef:n,className:"block-editor-rich-text__inline-format-toolbar",__unstableSlotName:"block-toolbar"},Object(l.createElement)("div",{className:"block-editor-rich-text__inline-format-toolbar-group"},Object(l.createElement)(m.ToolbarGroup,null,Object(l.createElement)(Of,null)))):Object(l.createElement)(Br,{group:"inline"},Object(l.createElement)(Of,null))};function hf(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 jf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hf(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function yf(e,t){if(t.length)for(var n=e.formats.length;n--;)e.formats[n]=[].concat(Object(y.a)(t),Object(y.a)(e.formats[n]||[]))}function kf(e){if(!0===e||"p"===e||"li"===e)return!0===e?"p":e}function _f(e){var t=e.allowedFormats,n=e.formattingControls;return e.disableFormats?_f.EMPTY_ARRAY:t||n?t||(Ft()("wp.blockEditor.RichText formattingControls prop",{since:"5.4",alternative:"allowedFormats"}),n.map((function(e){return"core/".concat(e)}))):void 0}_f.EMPTY_ARRAY=[];var Ef=Object(l.forwardRef)((function e(t,n){var r=t.children,o=t.tagName,a=t.value,s=t.onChange,d=t.isSelected,f=t.multiline,m=t.inlineToolbar,O=t.wrapperClassName,g=t.autocompleters,k=t.onReplace,_=t.placeholder,E=t.allowedFormats,w=t.formattingControls,C=t.withoutInteractiveFormatting,S=t.onRemove,B=t.onMerge,I=t.onSplit,x=t.__unstableOnSplitAtEnd,P=t.__unstableOnSplitMiddle,T=t.identifier,N=t.preserveWhiteSpace,D=t.__unstablePastePlainText,A=t.__unstableEmbedURLOnPaste,L=t.__unstableDisableFormats,R=t.disableLineBreaks,M=t.unstableOnFocus,F=t.__unstableAllowPrefixTransformations,V=t.__unstableMultilineRootTag,H=t.__unstableMobileNoFocusOnMount,z=t.deleteEnter,G=t.placeholderTextColor,U=t.textAlign,W=t.selectionColor,K=t.tagsToEliminate,q=t.rootTagsToEliminate,$=t.disableEditingMenu,Y=t.fontSize,X=t.fontFamily,Q=t.fontWeight,Z=t.fontStyle,J=t.minWidth,ee=t.maxWidth,te=t.onBlur,ne=t.setRef,re=Object(j.a)(t,["children","tagName","value","onChange","isSelected","multiline","inlineToolbar","wrapperClassName","autocompleters","onReplace","placeholder","allowedFormats","formattingControls","withoutInteractiveFormatting","onRemove","onMerge","onSplit","__unstableOnSplitAtEnd","__unstableOnSplitMiddle","identifier","preserveWhiteSpace","__unstablePastePlainText","__unstableEmbedURLOnPaste","__unstableDisableFormats","disableLineBreaks","unstableOnFocus","__unstableAllowPrefixTransformations","__unstableMultilineRootTag","__unstableMobileNoFocusOnMount","deleteEnter","placeholderTextColor","textAlign","selectionColor","tagsToEliminate","rootTagsToEliminate","disableEditingMenu","fontSize","fontFamily","fontWeight","fontStyle","minWidth","maxWidth","onBlur","setRef"]),oe=Object(b.useInstanceId)(e);T=T||oe;var ce=Object(l.useRef)(),ie=h(),ae=ie.clientId,le=ie.isSelected,se=Object(v.useSelect)((function(e){var t,n=e(yr),r=n.isCaretWithinFormattedText,o=n.getSelectionStart,c=n.getSelectionEnd,i=n.getSettings,a=n.didAutomaticChange,s=n.__unstableGetBlockWithoutInnerBlocks,u=n.isMultiSelecting,b=n.hasMultiSelection,f=o(),m=c(),v=i().__experimentalUndo;void 0===d?t=f.clientId===ae&&f.attributeKey===T:d&&(t=f.clientId===ae);var O={};if("native"===l.Platform.OS){var g=ae&&s(ae);O={shouldBlurOnUnmount:g&&t&&Object(p.isUnmodifiedDefaultBlock)(g)}}return jf({isCaretWithinFormattedText:r(),selectionStart:t?f.offset:void 0,selectionEnd:t?m.offset:void 0,isSelected:t,didAutomaticChange:a(),disabled:u()||b(),undo:v},O)})),ue=se.isCaretWithinFormattedText,de=se.selectionStart,be=se.selectionEnd,fe=se.isSelected,pe=se.didAutomaticChange,me=se.disabled,ve=se.undo,Oe=se.shouldBlurOnUnmount,ge=Object(v.useDispatch)(yr),he=ge.__unstableMarkLastChangeAsPersistent,je=ge.enterFormattedText,ye=ge.exitFormattedText,ke=ge.selectionChange,_e=ge.__unstableMarkAutomaticChange,Ee=kf(f),we=_f({allowedFormats:E,formattingControls:w,disableFormats:L}),Ce=!we||we.length>0,Se=a,Be=s;Array.isArray(a)&&(Se=p.children.toHTML(a),Be=function(e){return s(p.children.fromDOM(Object(c.__unstableCreateElement)(document,e).childNodes))});var Ie=Object(l.useCallback)((function(e,t){ke(ae,T,e,t)}),[ae,T]),xe=Object(l.useCallback)((function(e){var t=e.value,n=e.isReverse;B&&B(!n),S&&Object(c.isEmpty)(t)&&n&&S(!n)}),[B,S]),Pe=Object(l.useCallback)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(k&&I){var n=[],r=Object(c.split)(e),o=Object(Co.a)(r,2),i=o[0],a=o[1],l=t.length>0,s=-1,u=Object(c.isEmpty)(i)&&!Object(c.isEmpty)(a);l&&Object(c.isEmpty)(i)||(n.push(I(Object(c.toHTMLString)({value:i,multilineTag:Ee}),!u)),s+=1),l?(n.push.apply(n,Object(y.a)(t)),s+=t.length):P&&n.push(P()),(l||P)&&Object(c.isEmpty)(a)||n.push(I(Object(c.toHTMLString)({value:a,multilineTag:Ee}),u));var d=l?s:1,b=l?-1:0;k(n,d,b)}}),[k,I,Ee,P]),Te=Object(l.useCallback)((function(e){var t=e.value,n=e.onChange,r=e.shiftKey,o=k&&I;if(k){var i=Object(p.getBlockTransforms)("from").filter((function(e){return"enter"===e.type})),a=Object(p.findTransform)(i,(function(e){return e.regExp.test(t.text)}));a&&(k([a.transform({content:t.text})]),_e())}if(f)r?R||n(Object(c.insert)(t,"\n")):o&&Object(c.__unstableIsEmptyLine)(t)?Pe(t):n(Object(c.__unstableInsertLineSeparator)(t));else{var l=t.text,s=t.start,u=t.end,d=x&&s===u&&u===l.length;r||!o&&!d?R||n(Object(c.insert)(t,"\n")):!o&&d?x():o&&Pe(t)}}),[k,I,_e,f,Pe,x]),Ne=Object(l.useCallback)((function(e){var t=e.value,n=e.onChange,r=e.html,i=e.plainText,a=e.isInternal,l=e.files,s=e.activeFormats;if(a){var u=Object(c.create)({html:r,multilineTag:Ee,multilineWrapperTags:"li"===Ee?["ul","ol"]:void 0,preserveWhiteSpace:N});return yf(u,s),void n(Object(c.insert)(t,u))}if(D)n(Object(c.insert)(t,Object(c.create)({text:i})));else{if(l&&l.length&&!r){var d=Object(p.pasteHandler)({HTML:mf(l),mode:"BLOCKS",tagName:o,preserveWhiteSpace:N});return window.console.log("Received items:\n\n",l),void(k&&Object(c.isEmpty)(t)?k(d):Pe(t,d))}var b,f=k&&I?"AUTO":"INLINE";"AUTO"===f&&Object(c.isEmpty)(t)&&(b=i,Object(df.regexp)(".*").test(b))&&(f="BLOCKS"),A&&Object(c.isEmpty)(t)&&Object(Su.isURL)(i.trim())&&(f="BLOCKS");var m=Object(p.pasteHandler)({HTML:r,plainText:i,mode:f,tagName:o,preserveWhiteSpace:N});if("string"==typeof m){var v=Object(c.create)({html:m});yf(v,s),Ee&&(v=Object(c.replace)(v,/\n+/g,c.__UNSTABLE_LINE_SEPARATOR)),n(Object(c.insert)(t,v))}else m.length>0&&(k&&Object(c.isEmpty)(t)?k(m,m.length-1,-1):Pe(t,m))}}),[o,k,I,Pe,A,Ee,N,D]),De=Object(l.useCallback)((function(e,t){if(k){var n=e.start,r=e.text;if(" "===r.slice(n-1,n)){var o=r.slice(0,n).trim(),i=Object(p.getBlockTransforms)("from").filter((function(e){return"prefix"===e.type})),a=Object(p.findTransform)(i,(function(e){var t=e.prefix;return o===t}));if(a){var l=t(Object(c.slice)(e,n,r.length)),s=a.transform(l);k([s]),_e()}}}}),[k,_e]),Ae=Object(b.useMergeRefs)([n,ce]),Le=Object(l.createElement)(c.__experimentalRichText,Object(i.a)({clientId:ae,identifier:T,ref:Ae,value:Se,onChange:Be,selectionStart:de,selectionEnd:be,onSelectionChange:Ie,tagName:o,placeholder:_,allowedFormats:we,withoutInteractiveFormatting:C,onEnter:Te,onDelete:xe,onPaste:Ne,__unstableIsSelected:fe,__unstableInputRule:De,__unstableMultilineTag:Ee,__unstableIsCaretWithinFormattedText:ue,__unstableOnEnterFormattedText:je,__unstableOnExitFormattedText:ye,__unstableOnCreateUndoLevel:he,__unstableMarkAutomaticChange:_e,__unstableDidAutomaticChange:pe,__unstableUndo:ve,__unstableDisableFormats:L,preserveWhiteSpace:N,disabled:me,unstableOnFocus:M,__unstableAllowPrefixTransformations:F,__unstableMultilineRootTag:V},{},{blockIsSelected:void 0!==d?d:le,shouldBlurOnUnmount:Oe,__unstableMobileNoFocusOnMount:H,deleteEnter:z,placeholderTextColor:G,textAlign:U,selectionColor:W,tagsToEliminate:K,rootTagsToEliminate:q,disableEditingMenu:$,fontSize:Y,fontFamily:X,fontWeight:Q,fontStyle:Z,minWidth:J,maxWidth:ee,onBlur:te,setRef:ne,id:re.id,style:re.style}),(function(e){var t=e.isSelected,n=e.value,o=e.onChange,c=e.onFocus,a=e.editableProps,s=e.editableTagName;return Object(l.createElement)(l.Fragment,null,r&&r({value:n,onChange:o,onFocus:c}),t&&Ce&&Object(l.createElement)(gf,{inline:m,anchorRef:ce.current}),t&&Object(l.createElement)(pf,null),Object(l.createElement)(kl,{onReplace:k,completers:g,record:n,onChange:o,isSelected:t,contentRef:ce},(function(e){var t=e.listBoxId,n=e.activeId,r=e.onKeyDown;return Object(l.createElement)(s,Object(i.a)({},a,re,{style:re.style?jf(jf({},re.style),a.style):a.style,className:u()("block-editor-rich-text__editable",re.className,a.className),"aria-autocomplete":t?"list":void 0,"aria-owns":t,"aria-activedescendant":n,onKeyDown:function(e){r(e),a.onKeyDown(e)}}))})))}));return O?(Ft()("wp.blockEditor.RichText wrapperClassName prop",{since:"5.4",alternative:"className prop or create your own wrapper div"}),Object(l.createElement)("div",{className:u()("block-editor-rich-text",O)},Le)):Le}));Ef.Content=function(e){var t=e.value,n=e.tagName,r=e.multiline,o=Object(j.a)(e,["value","tagName","multiline"]);Array.isArray(t)&&(t=p.children.toHTML(t));var c=kf(r);!t&&c&&(t="<".concat(c,"></").concat(c,">"));var i=Object(l.createElement)(l.RawHTML,null,t);return n?Object(l.createElement)(n,Object(d.omit)(o,["format"]),i):i},Ef.isEmpty=function(e){return!e||0===e.length},Ef.Content.defaultProps={format:"string",value:""};var wf=Ef;function Cf(e){var t=e.value,n=e.onChange;return Object(l.createElement)(Yb,null,Object(l.createElement)(wf,{value:t,onChange:n,placeholder:Object(k.__)("Navigation item"),withoutInteractiveFormatting:!0,allowedFormats:["core/bold","core/italic","core/image","core/strikethrough"]}))}var Sf=n(245),Bf=function(e){var t=e.icon,n=void 0===t?Sf.a:t,r=e.label,o=void 0===r?Object(k.__)("Choose variation"):r,c=e.instructions,i=void 0===c?Object(k.__)("Select a variation to start with."):c,a=e.variations,s=e.onSelect,d=e.allowSkip,b=u()("block-editor-block-variation-picker",{"has-many-variations":a.length>4});return Object(l.createElement)(m.Placeholder,{icon:n,label:o,instructions:i,className:b},Object(l.createElement)("ul",{className:"block-editor-block-variation-picker__variations",role:"list","aria-label":Object(k.__)("Block variations")},a.map((function(e){return Object(l.createElement)("li",{key:e.name},Object(l.createElement)(m.Button,{isSecondary:!0,icon:e.icon,iconSize:48,onClick:function(){return s(e)},className:"block-editor-block-variation-picker__variation",label:e.description||e.title}),Object(l.createElement)("span",{className:"block-editor-block-variation-picker__variation-label",role:"presentation"},e.title))}))),d&&Object(l.createElement)("div",{className:"block-editor-block-variation-picker__skip"},Object(l.createElement)(m.Button,{isLink:!0,onClick:function(){return s()}},Object(k.__)("Skip"))))},If=function(e,t){if(t&&e){var n=t.filter((function(t){var n=t.attributes;return!(!n||!Object.keys(n).length)&&Object(d.isMatch)(e,n)}));if(1===n.length)return n[0]}};function xf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Pf=function(e){var t=e.blockClientId,n=Object(l.useState)(),r=Object(Co.a)(n,2),o=r[0],c=r[1],i=Object(v.useDispatch)(yr).updateBlockAttributes,s=Object(v.useSelect)((function(e){var n=e(p.store).getBlockVariations,r=e(yr),o=r.getBlockName,c=r.getBlockAttributes,i=t&&o(t);return{variations:i&&n(i,"transform"),blockAttributes:c(t)}}),[t]),u=s.variations,d=s.blockAttributes;if(Object(l.useEffect)((function(){var e;c(null===(e=If(d,u))||void 0===e?void 0:e.name)}),[d,u]),null==u||!u.length)return null;var b=u.map((function(e){return{value:e.name,label:e.title,info:e.description}})),f=function(e){i(t,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xf(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},u.find((function(t){return t.name===e})).attributes))},O="block-editor-block-variation-transforms";return Object(l.createElement)(m.DropdownMenu,{className:O,label:Object(k.__)("Transform to variation"),text:Object(k.__)("Transform to variation"),popoverProps:{position:"bottom center",className:"".concat(O,"__popover")},icon:es.a,toggleProps:{iconPosition:"right"}},(function(){return Object(l.createElement)("div",{className:"".concat(O,"__container")},Object(l.createElement)(m.MenuGroup,null,Object(l.createElement)(m.MenuItemsChoice,{choices:b,value:o,onSelect:f})))}))},Tf=Object(l.createElement)(m.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(m.Path,{d:"M15 4H9v11h6V4zM4 18.5V20h16v-1.5H4z"})),Nf=Object(l.createElement)(m.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(m.Path,{d:"M20 11h-5V4H9v7H4v1.5h5V20h6v-7.5h5z"}));function Df(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Af(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Df(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Df(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Lf={top:{icon:Object(l.createElement)(m.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(m.Path,{d:"M9 20h6V9H9v11zM4 4v1.5h16V4H4z"})),title:Object(k._x)("Align top","Block vertical alignment setting")},center:{icon:Nf,title:Object(k._x)("Align middle","Block vertical alignment setting")},bottom:{icon:Tf,title:Object(k._x)("Align bottom","Block vertical alignment setting")}},Rf=["top","center","bottom"],Mf={isAlternate:!0},Ff=function(e){var t=e.value,n=e.onChange,r=e.controls,o=void 0===r?Rf:r,c=e.isCollapsed,a=void 0===c||c,s=e.isToolbar,u=e.isToolbarButton,d=void 0===u||u,b=Lf[t],f=Lf.top,p=s?m.ToolbarGroup:m.DropdownMenu,v=s?{isCollapsed:a}:{isToolbarButton:d};return Object(l.createElement)(p,Object(i.a)({popoverProps:Mf,icon:b?b.icon:f.icon,label:Object(k._x)("Change vertical alignment","Block vertical alignment setting label"),controls:o.map((function(e){return Af(Af({},Lf[e]),{},{isActive:t===e,role:a?"menuitemradio":void 0,onClick:(r=e,function(){return n(t===r?void 0:r)})});var r}))},v))};function Vf(e){return Object(l.createElement)(Ff,Object(i.a)({},e,{isToolbar:!1}))}function Hf(e){return Object(l.createElement)(Ff,Object(i.a)({},e,{isToolbar:!0}))}function zf(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 Gf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zf(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Uf=Object(b.createHigherOrderComponent)((function(e){return function(t){var n=wo("color.palette"),r=!wo("color.custom"),o=void 0===t.colors?n:t.colors,c=void 0===t.disableCustomColors?r:t.disableCustomColors,i=!Object(d.isEmpty)(o)||!c;return Object(l.createElement)(e,Gf(Gf({},t),{},{colors:o,disableCustomColors:c,hasColorsToChoose:i}))}}),"withColorContext"),Wf=Uf(m.ColorPalette);function Kf(e){var t=e.onChange,n=e.value,r=Object(j.a)(e,["onChange","value"]);return Object(l.createElement)(Ko,Object(i.a)({},r,{onColorChange:t,colorValue:n,gradients:[],disableCustomGradients:!0}))}var qf=[];function $f(e){var t=wo("color.gradients")||qf,n=!wo("color.customGradient");return Object(l.createElement)(m.__experimentalGradientPicker,Object(i.a)({gradients:void 0!==e.gradients?e.gradient:t,disableCustomGradients:void 0!==e.disableCustomGradients?e.disableCustomGradients:n},e))}var Yf=function(e){var t=void 0!==e.gradients&&void 0!==e.disableCustomGradients?m.__experimentalGradientPicker:$f;return Object(l.createElement)(t,e)};function Xf(e){var t=e.className,n=e.value,r=e.onChange,o=e.label,c=void 0===o?Object(k.__)("Gradient Presets"):o,a=Object(j.a)(e,["className","value","onChange","label"]),s=wo("color.gradients"),b=!wo("color.customGradient");return Object(d.isEmpty)(s)&&b?null:Object(l.createElement)(m.BaseControl,{className:u()("block-editor-gradient-picker-control",t)},Object(l.createElement)(m.BaseControl.VisualLabel,null,c),Object(l.createElement)(Yf,Object(i.a)({value:n,onChange:r,className:"block-editor-gradient-picker-control__gradient-picker-presets",gradients:s,disableCustomGradients:b},a)))}function Qf(e){var t=wo("color.gradients");return Object(d.isEmpty)(t)?null:Object(l.createElement)(m.PanelBody,{title:Object(k.__)("Gradient")},Object(l.createElement)(Xf,e))}var Zf=[25,50,75,100];function Jf(e){var t,n,r=e.imageWidth,o=e.imageHeight,c=e.imageSizeOptions,i=void 0===c?[]:c,a=e.isResizable,s=void 0===a||a,u=e.slug,b=e.width,f=e.height,p=e.onChange,v=e.onChangeImage,O=void 0===v?d.noop:v;function g(e,t){return function(){p({width:e,height:t})}}return Object(l.createElement)(l.Fragment,null,!Object(d.isEmpty)(i)&&Object(l.createElement)(m.SelectControl,{label:Object(k.__)("Image size"),value:u,options:i,onChange:O}),s&&Object(l.createElement)("div",{className:"block-editor-image-size-control"},Object(l.createElement)("p",{className:"block-editor-image-size-control__row"},Object(k.__)("Image dimensions")),Object(l.createElement)("div",{className:"block-editor-image-size-control__row"},Object(l.createElement)(m.TextControl,{type:"number",className:"block-editor-image-size-control__width",label:Object(k.__)("Width"),value:null!==(t=null!=b?b:r)&&void 0!==t?t:"",min:1,onChange:function(e){return p({width:parseInt(e,10)})}}),Object(l.createElement)(m.TextControl,{type:"number",className:"block-editor-image-size-control__height",label:Object(k.__)("Height"),value:null!==(n=null!=f?f:o)&&void 0!==n?n:"",min:1,onChange:function(e){return p({height:parseInt(e,10)})}})),Object(l.createElement)("div",{className:"block-editor-image-size-control__row"},Object(l.createElement)(m.ButtonGroup,{"aria-label":Object(k.__)("Image size presets")},Zf.map((function(e){var t=Math.round(r*(e/100)),n=Math.round(o*(e/100)),c=b===t&&f===n;return Object(l.createElement)(m.Button,{key:e,isSmall:!0,isPrimary:c,isPressed:c,onClick:g(t,n)},e,"%")}))),Object(l.createElement)(m.Button,{isSmall:!0,onClick:g()},Object(k.__)("Reset")))))}var ep=Object(b.createHigherOrderComponent)((function(e){return function(t){var n=h().clientId;return Object(l.createElement)(e,Object(i.a)({},t,{clientId:n}))}}),"withClientId"),tp=ep((function(e){var t=e.clientId,n=e.showSeparator,r=e.isFloating,o=e.onAddBlock;return Object(l.createElement)(qu,{rootClientId:t,showSeparator:n,isFloating:r,onAddBlock:o})})),np=Object(b.compose)([ep,Object(v.withSelect)((function(e,t){var n=t.clientId,r=(0,e(yr).getBlockOrder)(n);return{lastBlockClientId:Object(d.last)(r)}}))])((function(e){var t=e.clientId,n=e.lastBlockClientId;return Object(l.createElement)(Ku,{rootClientId:t,lastBlockClientId:n})})),rp=n(75),op=n.n(rp),cp=new WeakMap;function ip(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 ap(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ip(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ip(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function lp(e){var t=e.clientId,n=e.allowedBlocks,r=e.template,o=e.templateLock,c=e.wrapperRef,i=e.templateInsertUpdatesSelection,a=e.__experimentalCaptureToolbars,s=e.__experimentalAppenderTagName,u=e.renderAppender,b=e.orientation,f=e.placeholder,m=e.__experimentalLayout;!function(e,t,n,r,o){var c=Object(v.useDispatch)(yr).updateBlockListSettings,i=Object(v.useSelect)((function(t){var n=t(yr).getBlockRootClientId(e);return{blockListSettings:t(yr).getBlockListSettings(e),parentLock:t(yr).getTemplateLock(n)}}),[e]),a=i.blockListSettings,s=i.parentLock,u=Object(l.useMemo)((function(){return t}),t);Object(l.useLayoutEffect)((function(){var t={allowedBlocks:u,templateLock:void 0===n?s:n};void 0!==r&&(t.__experimentalCaptureToolbars=r),void 0!==o&&(t.orientation=o),op()(a,t)||c(e,t)}),[e,a,u,n,s,r,o,c])}(t,n,o,a,b),function(e,t,n,r){var o=Object(v.useSelect)((function(e){return e(yr).getSelectedBlocksInitialCaretPosition}),[]),c=Object(v.useDispatch)(yr).replaceInnerBlocks,i=Object(v.useSelect)((function(t){return t(yr).getBlocks(e)}),[e]),a=Object(l.useRef)(null);Object(l.useLayoutEffect)((function(){if((0===i.length||"all"===n)&&!Object(d.isEqual)(t,a.current)){a.current=t;var l=Object(p.synchronizeBlocksWithTemplate)(i,t);Object(d.isEqual)(l,i)||c(e,l,0===i.length&&r&&0!==l.length,o())}}),[i,t,n,e])}(t,r,o,i);var O=Object(v.useSelect)((function(e){var n=e(yr).getBlock(t),r=Object(p.getBlockType)(n.name);if(r&&r.providesContext)return function(e,t){cp.has(t)||cp.set(t,new WeakMap);var n=cp.get(t);if(!n.has(e)){var r=Object(d.mapValues)(t.providesContext,(function(t){return e[t]}));n.set(e,r)}return n.get(e)}(n.attributes,r)}),[t]);return Object(l.createElement)(Tl,{value:O},Object(l.createElement)(Eb,{rootClientId:t,renderAppender:u,__experimentalAppenderTagName:s,__experimentalLayout:m,wrapperRef:c,placeholder:f}))}function sp(e){return qs(e),Object(l.createElement)(lp,e)}var up=Object(l.forwardRef)((function(e,t){var n=dp({ref:t},e);return Object(l.createElement)("div",{className:"block-editor-inner-blocks"},Object(l.createElement)("div",n))}));function dp(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=h(),r=n.clientId,o=Object(b.useViewportMatch)("medium","<"),c=Object(v.useSelect)((function(e){var t=e(yr),n=t.getBlockName,c=t.isBlockSelected,i=t.hasSelectedInnerBlock,a=(0,t.isNavigationMode)()||o;return"core/template"!==n(r)&&!c(r)&&!i(r,!0)&&a}),[r,o]),a=Object(b.useMergeRefs)([e.ref,ed({rootClientId:r})]),s=t.value&&t.onChange?sp:lp;return ap(ap({},e),{},{ref:a,className:u()(e.className,"block-editor-block-list__layout",{"has-overlay":c}),children:Object(l.createElement)(s,Object(i.a)({},t,{clientId:r}))})}up.DefaultBlockAppender=np,up.ButtonBlockAppender=tp,up.Content=Object(p.withBlockContentContext)((function(e){var t=e.BlockContent;return Object(l.createElement)(t,null)}));var bp=up,fp=Object(l.createElement)(Ir.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(Ir.Path,{d:"M9 9v6h11V9H9zM4 20h1.5V4H4v16z"})),pp=Object(l.createElement)(Ir.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(Ir.Path,{d:"M20 9h-7.2V4h-1.6v5H4v6h7.2v5h1.6v-5H20z"})),mp=Object(l.createElement)(Ir.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(Ir.Path,{d:"M4 15h11V9H4v6zM18.5 4v16H20V4h-1.5z"})),vp=Object(l.createElement)(Ir.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(Ir.Path,{d:"M9 15h6V9H9v6zm-5 5h1.5V4H4v16zM18.5 4v16H20V4h-1.5z"})),Op={left:fp,center:pp,right:mp,"space-between":vp},gp=function(e){var t=e.allowedControls,n=void 0===t?["left","center","right","space-between"]:t,r=e.isCollapsed,o=void 0===r||r,c=e.onChange,a=e.value,s=e.popoverProps,u=e.isToolbar,d=e.isToolbarButton,b=void 0===d||d,f=function(e){c(e===a?void 0:e)},p=a?Op[a]:Op.left,v=[{name:"left",icon:fp,title:Object(k.__)("Justify items left"),isActive:"left"===a,onClick:function(){return f("left")}},{name:"center",icon:pp,title:Object(k.__)("Justify items center"),isActive:"center"===a,onClick:function(){return f("center")}},{name:"right",icon:mp,title:Object(k.__)("Justify items right"),isActive:"right"===a,onClick:function(){return f("right")}},{name:"space-between",icon:vp,title:Object(k.__)("Space between items"),isActive:"space-between"===a,onClick:function(){return f("space-between")}}],O=u?m.ToolbarGroup:m.DropdownMenu,g=u?{isCollapsed:o}:{isToolbarButton:b};return Object(l.createElement)(O,Object(i.a)({icon:p,popoverProps:s,label:Object(k.__)("Change items justification"),controls:v.filter((function(e){return n.includes(e.name)}))},g))};function hp(e){return Object(l.createElement)(gp,Object(i.a)({},e,{isToolbar:!1}))}function jp(e){return Object(l.createElement)(gp,Object(i.a)({},e,{isToolbar:!0}))}var yp=n(286);function kp(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 _p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kp(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ep=[{id:"opensInNewTab",title:Object(k.__)("Open in new tab")}],wp=function(e){var t=e.value,n=e.onChange,r=void 0===n?d.noop:n,o=e.settings,c=void 0===o?Ep:o;if(!c||!c.length)return null;var i=function(e){return function(n){r(_p(_p({},t),{},Object(a.a)({},e.id,n)))}},s=c.map((function(e){return Object(l.createElement)(m.ToggleControl,{className:"block-editor-link-control__setting",key:e.id,label:e.title,onChange:i(e),checked:!!t&&!!t[e.id]})}));return Object(l.createElement)("fieldset",{className:"block-editor-link-control__settings"},Object(l.createElement)(m.VisuallyHidden,{as:"legend"},Object(k.__)("Currently selected link settings")),s)};var Cp=function(e){Object(Oa.a)(o,e);var t,n,r=(t=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=Object(ha.a)(t);if(n){var o=Object(ha.a)(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return Object(ga.a)(this,e)});function o(e){var t;return Object(pa.a)(this,o),(t=r.call(this,e)).onChange=t.onChange.bind(Object(va.a)(t)),t.onFocus=t.onFocus.bind(Object(va.a)(t)),t.onKeyDown=t.onKeyDown.bind(Object(va.a)(t)),t.selectLink=t.selectLink.bind(Object(va.a)(t)),t.handleOnClick=t.handleOnClick.bind(Object(va.a)(t)),t.bindSuggestionNode=t.bindSuggestionNode.bind(Object(va.a)(t)),t.autocompleteRef=e.autocompleteRef||Object(l.createRef)(),t.inputRef=Object(l.createRef)(),t.updateSuggestions=Object(d.debounce)(t.updateSuggestions.bind(Object(va.a)(t)),200),t.suggestionNodes=[],t.isUpdatingSuggestions=!1,t.state={suggestions:[],showSuggestions:!1,selectedSuggestion:null,suggestionsListboxId:"",suggestionOptionIdPrefix:""},t}return Object(ma.a)(o,[{key:"componentDidUpdate",value:function(e){var t=this,n=this.state,r=n.showSuggestions,o=n.selectedSuggestion,c=this.props.value;r&&null!==o&&this.suggestionNodes[o]&&!this.scrollingIntoView&&(this.scrollingIntoView=!0,Ib()(this.suggestionNodes[o],this.autocompleteRef.current,{onlyScrollIfNeeded:!0}),this.props.setTimeout((function(){t.scrollingIntoView=!1}),100)),e.value!==c&&this.shouldShowInitialSuggestions()&&this.updateSuggestions()}},{key:"componentDidMount",value:function(){this.shouldShowInitialSuggestions()&&this.updateSuggestions()}},{key:"componentWillUnmount",value:function(){var e,t;null===(e=this.suggestionsRequest)||void 0===e||null===(t=e.cancel)||void 0===t||t.call(e),delete this.suggestionsRequest}},{key:"bindSuggestionNode",value:function(e){var t=this;return function(n){t.suggestionNodes[e]=n}}},{key:"shouldShowInitialSuggestions",value:function(){var e=this.state.suggestions,t=this.props,n=t.__experimentalShowInitialSuggestions,r=void 0!==n&&n,o=t.value;return!this.isUpdatingSuggestions&&r&&!(o&&o.length)&&!(e&&e.length)}},{key:"updateSuggestions",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=this.props,r=n.__experimentalFetchLinkSuggestions,o=n.__experimentalHandleURLSuggestions;if(r){var c=!(t&&t.length);if(c||!(t.length<2||!o&&Object(Su.isURL)(t))){this.isUpdatingSuggestions=!0,this.setState({selectedSuggestion:null,loading:!0});var i=r(t,{isInitialSuggestions:c});i.then((function(t){e.suggestionsRequest===i&&(e.setState({suggestions:t,loading:!1,showSuggestions:!!t.length}),t.length?e.props.debouncedSpeak(Object(k.sprintf)(
63
  /* translators: %s: number of results. */
64
+ Object(k._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",t.length),t.length),"assertive"):e.props.debouncedSpeak(Object(k.__)("No results."),"assertive"),e.isUpdatingSuggestions=!1)})).catch((function(){e.suggestionsRequest===i&&(e.setState({loading:!1}),e.isUpdatingSuggestions=!1)})),this.suggestionsRequest=i}else this.setState({showSuggestions:!1,selectedSuggestion:null,loading:!1})}}},{key:"onChange",value:function(e){var t=e.target.value;this.props.onChange(t),this.props.disableSuggestions||this.updateSuggestions(t.trim())}},{key:"onFocus",value:function(){var e=this.state.suggestions,t=this.props,n=t.disableSuggestions,r=t.value;!r||n||this.isUpdatingSuggestions||e&&e.length||this.updateSuggestions(r.trim())}},{key:"onKeyDown",value:function(e){var t=this.state,n=t.showSuggestions,r=t.selectedSuggestion,o=t.suggestions,c=t.loading;if(n&&o.length&&!c){var i=this.state.suggestions[this.state.selectedSuggestion];switch(e.keyCode){case li.UP:e.stopPropagation(),e.preventDefault();var a=r?r-1:o.length-1;this.setState({selectedSuggestion:a});break;case li.DOWN:e.stopPropagation(),e.preventDefault();var l=null===r||r===o.length-1?0:r+1;this.setState({selectedSuggestion:l});break;case li.TAB:null!==this.state.selectedSuggestion&&(this.selectLink(i),this.props.speak(Object(k.__)("Link selected.")));break;case li.ENTER:null!==this.state.selectedSuggestion&&(e.stopPropagation(),this.selectLink(i))}}else switch(e.keyCode){case li.UP:0!==e.target.selectionStart&&(e.stopPropagation(),e.preventDefault(),e.target.setSelectionRange(0,0));break;case li.DOWN:this.props.value.length!==e.target.selectionStart&&(e.stopPropagation(),e.preventDefault(),e.target.setSelectionRange(this.props.value.length,this.props.value.length))}}},{key:"selectLink",value:function(e){this.props.onChange(e.url,e),this.setState({selectedSuggestion:null,showSuggestions:!1})}},{key:"handleOnClick",value:function(e){this.selectLink(e),this.inputRef.current.focus()}},{key:"render",value:function(){return Object(l.createElement)(l.Fragment,null,this.renderControl(),this.renderSuggestions())}},{key:"renderControl",value:function(){var e=this.props,t=e.label,n=e.className,r=e.isFullWidth,o=e.instanceId,c=e.placeholder,i=void 0===c?Object(k.__)("Paste URL or type to search"):c,a=e.__experimentalRenderControl,s=e.value,d=void 0===s?"":s,b=this.state,f=b.loading,p=b.showSuggestions,v=b.selectedSuggestion,O=b.suggestionsListboxId,g=b.suggestionOptionIdPrefix,h={id:"url-input-control-".concat(o),label:t,className:u()("block-editor-url-input",n,{"is-full-width":r})},j={value:d,required:!0,className:"block-editor-url-input__input",type:"text",onChange:this.onChange,onFocus:this.onFocus,placeholder:i,onKeyDown:this.onKeyDown,role:"combobox","aria-label":Object(k.__)("URL"),"aria-expanded":p,"aria-autocomplete":"list","aria-owns":O,"aria-activedescendant":null!==v?"".concat(g,"-").concat(v):void 0,ref:this.inputRef};return a?a(h,j,f):Object(l.createElement)(m.BaseControl,h,Object(l.createElement)("input",j),f&&Object(l.createElement)(m.Spinner,null))}},{key:"renderSuggestions",value:function(){var e=this,t=this.props,n=t.className,r=t.__experimentalRenderSuggestions,o=t.value,c=void 0===o?"":o,a=t.__experimentalShowInitialSuggestions,s=void 0!==a&&a,b=this.state,f=b.showSuggestions,p=b.suggestions,v=b.selectedSuggestion,O=b.suggestionsListboxId,g=b.suggestionOptionIdPrefix,h=b.loading,j={id:O,ref:this.autocompleteRef,role:"listbox"},y=function(t,n){return{role:"option",tabIndex:"-1",id:"".concat(g,"-").concat(n),ref:e.bindSuggestionNode(n),"aria-selected":n===v}};return Object(d.isFunction)(r)&&f&&p.length?r({suggestions:p,selectedSuggestion:v,suggestionsListProps:j,buildSuggestionItemProps:y,isLoading:h,handleSuggestionClick:this.handleOnClick,isInitialSuggestions:s&&!(c&&c.length)}):!Object(d.isFunction)(r)&&f&&p.length?Object(l.createElement)(m.Popover,{position:"bottom",noArrow:!0,focusOnMount:!1},Object(l.createElement)("div",Object(i.a)({},j,{className:u()("block-editor-url-input__suggestions","".concat(n,"__suggestions"))}),p.map((function(t,n){return Object(l.createElement)(m.Button,Object(i.a)({},y(0,n),{key:t.id,className:u()("block-editor-url-input__suggestion",{"is-selected":n===v}),onClick:function(){return e.handleOnClick(t)}}),t.title)})))):null}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.value,r=e.instanceId,o=e.disableSuggestions,c=e.__experimentalShowInitialSuggestions,i=void 0!==c&&c,a=t.showSuggestions,l=n&&n.length;return i||l||(a=!1),!0===o&&(a=!1),{showSuggestions:a,suggestionsListboxId:"block-editor-url-input-suggestions-".concat(r),suggestionOptionIdPrefix:"block-editor-url-input-suggestion-".concat(r)}}}]),o}(l.Component),Sp=Object(b.compose)(b.withSafeTimeout,m.withSpokenMessages,b.withInstanceId,Object(v.withSelect)((function(e,t){if(!Object(d.isFunction)(t.__experimentalFetchLinkSuggestions))return{__experimentalFetchLinkSuggestions:(0,e(yr).getSettings)().__experimentalFetchLinkSuggestions}})))(Cp),Bp=function(e){var t,n=e.searchTerm,r=e.onClick,o=e.itemProps,c=e.isSelected,a=e.buttonText;return n?(t=a?Object(d.isFunction)(a)?a(n):a:Object(l.createInterpolateElement)(Object(k.sprintf)(
65
  /* translators: %s: search term. */
66
+ Object(k.__)("Create: <mark>%s</mark>"),n),{mark:Object(l.createElement)("mark",null)}),Object(l.createElement)(m.Button,Object(i.a)({},o,{className:u()("block-editor-link-control__search-create block-editor-link-control__search-item",{"is-selected":c}),onClick:r}),Object(l.createElement)(ra.a,{className:"block-editor-link-control__search-item-icon",icon:Vs.a}),Object(l.createElement)("span",{className:"block-editor-link-control__search-item-header"},Object(l.createElement)("span",{className:"block-editor-link-control__search-item-title"},t)))):null},Ip=Object(l.createElement)(Ir.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(l.createElement)(Ir.Path,{d:"M9 0C4.03 0 0 4.03 0 9s4.03 9 9 9 9-4.03 9-9-4.03-9-9-9zM1.11 9.68h2.51c.04.91.167 1.814.38 2.7H1.84c-.403-.85-.65-1.764-.73-2.7zm8.57-5.4V1.19c.964.366 1.756 1.08 2.22 2 .205.347.386.708.54 1.08l-2.76.01zm3.22 1.35c.232.883.37 1.788.41 2.7H9.68v-2.7h3.22zM8.32 1.19v3.09H5.56c.154-.372.335-.733.54-1.08.462-.924 1.255-1.64 2.22-2.01zm0 4.44v2.7H4.7c.04-.912.178-1.817.41-2.7h3.21zm-4.7 2.69H1.11c.08-.936.327-1.85.73-2.7H4c-.213.886-.34 1.79-.38 2.7zM4.7 9.68h3.62v2.7H5.11c-.232-.883-.37-1.788-.41-2.7zm3.63 4v3.09c-.964-.366-1.756-1.08-2.22-2-.205-.347-.386-.708-.54-1.08l2.76-.01zm1.35 3.09v-3.04h2.76c-.154.372-.335.733-.54 1.08-.464.92-1.256 1.634-2.22 2v-.04zm0-4.44v-2.7h3.62c-.04.912-.178 1.817-.41 2.7H9.68zm4.71-2.7h2.51c-.08.936-.327 1.85-.73 2.7H14c.21-.87.337-1.757.38-2.65l.01-.05zm0-1.35c-.046-.894-.176-1.78-.39-2.65h2.16c.403.85.65 1.764.73 2.7l-2.5-.05zm1-4H13.6c-.324-.91-.793-1.76-1.39-2.52 1.244.56 2.325 1.426 3.14 2.52h.04zm-9.6-2.52c-.597.76-1.066 1.61-1.39 2.52H2.65c.815-1.094 1.896-1.96 3.14-2.52zm-3.15 12H4.4c.324.91.793 1.76 1.39 2.52-1.248-.567-2.33-1.445-3.14-2.55l-.01.03zm9.56 2.52c.597-.76 1.066-1.61 1.39-2.52h1.76c-.82 1.08-1.9 1.933-3.14 2.48l-.01.04z"})),xp=function(e){var t=e.itemProps,n=e.suggestion,r=e.isSelected,o=void 0!==r&&r,c=e.onClick,a=e.isURL,s=void 0!==a&&a,d=e.searchTerm,b=void 0===d?"":d,f=e.shouldShowType,p=void 0!==f&&f;return Object(l.createElement)(m.Button,Object(i.a)({},t,{onClick:c,className:u()("block-editor-link-control__search-item",{"is-selected":o,"is-url":s,"is-entity":!s})}),s&&Object(l.createElement)(ra.a,{className:"block-editor-link-control__search-item-icon",icon:Ip}),Object(l.createElement)("span",{className:"block-editor-link-control__search-item-header"},Object(l.createElement)("span",{className:"block-editor-link-control__search-item-title"},Object(l.createElement)(m.TextHighlight,{text:n.title,highlight:b})),Object(l.createElement)("span",{"aria-hidden":!s,className:"block-editor-link-control__search-item-info"},!s&&(Object(Su.filterURLForDisplay)(Object(Su.safeDecodeURI)(n.url))||""),s&&Object(k.__)("Press ENTER to add this link"))),p&&n.type&&Object(l.createElement)("span",{className:"block-editor-link-control__search-item-type"},"post_tag"===n.type?"tag":n.type))};function Pp(e){var t=e.instanceId,n=e.withCreateSuggestion,r=e.currentInputValue,o=e.handleSuggestionClick,c=e.suggestionsListProps,a=e.buildSuggestionItemProps,s=e.suggestions,d=e.selectedSuggestion,b=e.isLoading,f=e.isInitialSuggestions,p=e.createSuggestionButtonText,v=e.suggestionsQuery,O=u()("block-editor-link-control__search-results",{"is-loading":b}),g=["url","mailto","tel","internal"],h=1===s.length&&g.includes(s[0].type.toLowerCase()),j=n&&!h&&!f,y=!(null!=v&&v.type),_="block-editor-link-control-search-results-label-".concat(t),E=f?Object(k.__)("Recently updated"):Object(k.sprintf)(
67
  /* translators: %s: search term. */
68
+ Object(k.__)('Search results for "%s"'),r),w=Object(l.createElement)(f?l.Fragment:m.VisuallyHidden,{},Object(l.createElement)("span",{className:"block-editor-link-control__search-results-label",id:_},E));return Object(l.createElement)("div",{className:"block-editor-link-control__search-results-wrapper"},w,Object(l.createElement)("div",Object(i.a)({},c,{className:O,"aria-labelledby":_}),s.map((function(e,t){return j&&"__CREATE__"===e.type?Object(l.createElement)(Bp,{searchTerm:r,buttonText:p,onClick:function(){return o(e)},key:e.type,itemProps:a(e,t),isSelected:t===d}):"__CREATE__"===e.type?null:Object(l.createElement)(xp,{key:"".concat(e.id,"-").concat(e.type),itemProps:a(e,t),suggestion:e,index:t,onClick:function(){o(e)},isSelected:t===d,isURL:g.includes(e.type.toLowerCase()),searchTerm:r,shouldShowType:y})}))))}function Tp(e){var t=Object(d.startsWith)(e,"#");return Object(Su.isURL)(e)||e&&e.includes("www.")||t}function Np(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 Dp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Np(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Np(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ap=function(){return Promise.resolve([])},Lp=function(e){var t="URL",n=Object(Su.getProtocol)(e)||"";return n.includes("mailto")&&(t="mailto"),n.includes("tel")&&(t="tel"),Object(d.startsWith)(e,"#")&&(t="internal"),Promise.resolve([{id:e,title:e,url:"URL"===t?Object(Su.prependHTTP)(e):e,type:t}])},Rp=function(){var e=Object(zl.a)(Lt.a.mark((function e(t,n,r,o,c,i){var a,l,s;return Lt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=n.isInitialSuggestions,e.next=3,Promise.all([r(t,n),o(t)]);case 3:if(l=e.sent,s=!t.includes(" "),l=s&&i&&!a?l[0].concat(l[1]):l[0],!a){e.next=8;break}return e.abrupt("return",l);case 8:return e.abrupt("return",Tp(t)||!c?l:l.concat({title:t,url:t,type:"__CREATE__"}));case 9:case"end":return e.stop()}}),e)})));return function(_x,t,n,r,o,c){return e.apply(this,arguments)}}();function Mp(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 Fp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mp(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Vp=Promise.resolve([]),Hp=Object(l.forwardRef)((function(e,t){var n=e.value,r=e.children,o=e.currentLink,c=void 0===o?{}:o,i=e.className,a=void 0===i?null:i,s=e.placeholder,u=void 0===s?null:s,f=e.withCreateSuggestion,p=void 0!==f&&f,m=e.onCreateSuggestion,O=void 0===m?d.noop:m,g=e.onChange,h=void 0===g?d.noop:g,j=e.onSelect,y=void 0===j?d.noop:j,_=e.showSuggestions,E=void 0===_||_,w=e.renderSuggestions,C=void 0===w?function(e){return Object(l.createElement)(Pp,e)}:w,S=e.fetchSuggestions,B=void 0===S?null:S,I=e.allowDirectEntry,x=void 0===I||I,P=e.showInitialSuggestions,T=void 0!==P&&P,N=e.suggestionsQuery,D=void 0===N?{}:N,A=e.withURLSuggestion,L=void 0===A||A,R=e.createSuggestionButtonText,M=function(e,t,n,r){var o=Object(v.useSelect)((function(e){return{fetchSearchSuggestions:(0,e(yr).getSettings)().__experimentalFetchLinkSuggestions}}),[]).fetchSearchSuggestions,c=t?Lp:Ap;return Object(l.useCallback)((function(t,i){var a=i.isInitialSuggestions;return Tp(t)?c(t,{isInitialSuggestions:a}):Rp(t,Dp(Dp({},e),{},{isInitialSuggestions:a}),o,c,n,r)}),[c,o,n])}(D,x,p,L),F=E?B||M:Vp,V=Object(b.useInstanceId)(Hp),H=Object(l.useState)(),z=Object(Co.a)(H,2),G=z[0],U=z[1],W=function(){var e=Object(zl.a)(Lt.a.mark((function e(t){var n,r;return Lt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t,"__CREATE__"!==t.type){e.next=12;break}return e.prev=2,e.next=5,O(t.title);case 5:n=e.sent,null!==(r=n)&&void 0!==r&&r.url&&y(n),e.next=11;break;case 9:e.prev=9,e.t0=e.catch(2);case 11:return e.abrupt("return");case 12:(x||n&&Object.keys(n).length>=1)&&y(Fp(Fp({},Object(d.omit)(c,"id","url")),n),n);case 13:case"end":return e.stop()}}),e,null,[[2,9]])})));return function(_x){return e.apply(this,arguments)}}();return Object(l.createElement)("form",{onSubmit:function(e){e.preventDefault(),W(G||{url:n})}},Object(l.createElement)(Sp,{className:a,value:n,onChange:function(e,t){h(e),U(t)},placeholder:null!=u?u:Object(k.__)("Search or type url"),__experimentalRenderSuggestions:E?function(e){return C(Fp(Fp({},e),{},{instanceId:V,withCreateSuggestion:p,currentInputValue:n,createSuggestionButtonText:R,suggestionsQuery:D,handleSuggestionClick:function(t){e.handleSuggestionClick&&e.handleSuggestionClick(t),W(t)}}))}:null,__experimentalFetchLinkSuggestions:F,__experimentalHandleURLSuggestions:!0,__experimentalShowInitialSuggestions:T,ref:t}),r)})),zp=Hp,Gp=Object(m.createSlotFill)("BlockEditorLinkControlViewer"),Up=Gp.Slot,Wp=Gp.Fill;function Kp(e){var t=e.value,n=e.onEditClick,r=t&&Object(Su.filterURLForDisplay)(Object(Su.safeDecodeURI)(t.url),16)||"";return Object(l.createElement)("div",{"aria-label":Object(k.__)("Currently selected"),"aria-selected":"true",className:u()("block-editor-link-control__search-item",{"is-current":!0})},Object(l.createElement)("span",{className:"block-editor-link-control__search-item-header"},Object(l.createElement)(m.ExternalLink,{className:"block-editor-link-control__search-item-title",href:t.url},t&&t.title||r),t&&t.title&&Object(l.createElement)("span",{className:"block-editor-link-control__search-item-info"},r)),Object(l.createElement)(m.Button,{isSecondary:!0,onClick:function(){return n()},className:"block-editor-link-control__search-item-action"},Object(k.__)("Edit")),Object(l.createElement)(Up,{fillProps:t}))}var qp=function(e){var t=!1;return{promise:new Promise((function(n,r){e.then((function(e){return t?r({isCanceled:!0}):n(e)}),(function(e){return r(t?{isCanceled:!0}:e)}))})),cancel:function(){t=!0}}};function $p(e){var t=e.searchInputPlaceholder,n=e.value,r=e.settings,o=e.onChange,c=void 0===o?d.noop:o,i=e.noDirectEntry,a=void 0!==i&&i,s=e.showSuggestions,u=void 0===s||s,b=e.showInitialSuggestions,f=e.forceIsEditingLink,p=e.createSuggestion,v=e.withCreateSuggestion,O=e.inputValue,g=void 0===O?"":O,h=e.suggestionsQuery,j=void 0===h?{}:h,y=e.noURLSuggestion,_=void 0!==y&&y,E=e.createSuggestionButtonText;void 0===v&&p&&(v=!0);var w=Object(l.useRef)(!0),C=Object(l.useRef)(),S=Object(l.useState)(n&&n.url||""),B=Object(Co.a)(S,2),I=B[0],x=B[1],P=g||I,T=Object(l.useState)(void 0!==f?f:!n||!n.url),N=Object(Co.a)(T,2),D=N[0],A=N[1],L=Object(l.useRef)(!1);Object(l.useEffect)((function(){void 0!==f&&f!==D&&A(f)}),[f]),Object(l.useEffect)((function(){w.current?w.current=!1:(C.current.contains(C.current.ownerDocument.activeElement)||(Wl.focus.focusable.find(C.current)[0]||C.current).focus(),L.current=!1)}),[D]);var R=function(e){var t=Object(l.useRef)(),n=Object(l.useState)(!1),r=Object(Co.a)(n,2),o=r[0],c=r[1],i=Object(l.useState)(null),a=Object(Co.a)(i,2),s=a[0],u=a[1],d=function(){var n=Object(zl.a)(Lt.a.mark((function n(r){return Lt.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return c(!0),u(null),n.prev=2,t.current=qp(Promise.resolve(e(r))),n.next=6,t.current.promise;case 6:return n.abrupt("return",n.sent);case 9:if(n.prev=9,n.t0=n.catch(2),!n.t0||!n.t0.isCanceled){n.next=13;break}return n.abrupt("return");case 13:throw u(n.t0.message||Object(k.__)("An unknown error occurred during creation. Please try again.")),n.t0;case 15:return n.prev=15,c(!1),n.finish(15);case 18:case"end":return n.stop()}}),n,null,[[2,9,15,18]])})));return function(_x){return n.apply(this,arguments)}}();return Object(l.useEffect)((function(){return function(){t.current&&t.current.cancel()}}),[]),{createPage:d,isCreatingPage:o,errorMessage:s}}(p),M=R.createPage,F=R.isCreatingPage,V=R.errorMessage;return Object(l.createElement)("div",{tabIndex:-1,ref:C,className:"block-editor-link-control"},F&&Object(l.createElement)("div",{className:"block-editor-link-control__loading"},Object(l.createElement)(m.Spinner,null)," ",Object(k.__)("Creating"),"…"),(D||!n)&&!F&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)("div",{className:"block-editor-link-control__search-input-wrapper"},Object(l.createElement)(zp,{currentLink:n,className:"block-editor-link-control__search-input",placeholder:t,value:P,withCreateSuggestion:v,onCreateSuggestion:M,onChange:x,onSelect:function(e){var t;c(e),L.current=!(null===(t=C.current)||void 0===t||!t.contains(C.current.ownerDocument.activeElement)),A(!1)},showInitialSuggestions:b,allowDirectEntry:!a,showSuggestions:u,suggestionsQuery:j,withURLSuggestion:!_,createSuggestionButtonText:E},Object(l.createElement)("div",{className:"block-editor-link-control__search-actions"},Object(l.createElement)(m.Button,{type:"submit",label:Object(k.__)("Submit"),icon:yp.a,className:"block-editor-link-control__search-submit"})))),V&&Object(l.createElement)(m.Notice,{className:"block-editor-link-control__search-error",status:"error",isDismissible:!1},V)),n&&!D&&!F&&Object(l.createElement)(Kp,{value:n,onEditClick:function(){return A(!0)}}),Object(l.createElement)(wp,{value:n,settings:r,onChange:c}))}$p.ViewerFill=Wp;var Yp=$p,Xp=n(409),Qp=n(287),Zp=Object(m.withFilters)("editor.MediaUpload")((function(){return null})),Jp=function(e){var t=e.fallback,n=void 0===t?null:t,r=e.children;return Object(v.useSelect)((function(e){return!!(0,e(yr).getSettings)().mediaUpload}),[])?r:n},em=Object(b.compose)([Object(v.withDispatch)((function(e){var t=e(ju.store);return{createNotice:t.createNotice,removeNotice:t.removeNotice}})),Object(m.withFilters)("editor.MediaReplaceFlow")])((function(e){var t=e.mediaURL,n=e.mediaId,r=e.allowedTypes,o=e.accept,c=e.onSelect,i=e.onSelectURL,a=e.onFilesUpload,s=void 0===a?d.noop:a,u=e.name,b=void 0===u?Object(k.__)("Replace"):u,f=e.createNotice,p=e.removeNotice,O=Object(l.useState)(t),g=Object(Co.a)(O,2),h=g[0],j=g[1],y=Object(v.useSelect)((function(e){return e(yr).getSettings().mediaUpload}),[]),_=Object(l.createRef)(),E=Object(d.uniqueId)("block-editor/media-replace-flow/error-notice/"),w=function(e){var t=document.createElement("div");t.innerHTML=Object(l.renderToString)(e);var n=t.textContent||t.innerText||"";setTimeout((function(){f("error",n,{speak:!0,id:E,isDismissible:!0})}),1e3)},C=function(e){c(e),j(e.url),Object(Rt.speak)(Object(k.__)("The media file has been replaced")),p(E)},S=function(e){e.keyCode===li.DOWN&&(e.preventDefault(),e.stopPropagation(),e.target.click())};return Object(l.createElement)(m.Dropdown,{popoverProps:{isAlternate:!0},contentClassName:"block-editor-media-replace-flow__options",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return Object(l.createElement)(m.ToolbarButton,{ref:_,"aria-expanded":t,"aria-haspopup":"true",onClick:n,onKeyDown:S},b)},renderContent:function(e){return e.onClose,Object(l.createElement)(l.Fragment,null,Object(l.createElement)(m.NavigableMenu,{className:"block-editor-media-replace-flow__media-upload-menu"},Object(l.createElement)(Zp,{value:n,onSelect:function(e){return C(e)},allowedTypes:r,render:function(e){var t=e.open;return Object(l.createElement)(m.MenuItem,{icon:Xp.a,onClick:t},Object(k.__)("Open Media Library"))}}),Object(l.createElement)(Jp,null,Object(l.createElement)(m.FormFileUpload,{onChange:function(e){!function(e){var t=e.target.files;s(t),y({allowedTypes:r,filesList:t,onFileChange:function(e){var t=Object(Co.a)(e,1)[0];C(t)},onError:w})}(e)},accept:o,render:function(e){var t=e.openFileDialog;return Object(l.createElement)(m.MenuItem,{icon:Qp.a,onClick:function(){t()}},Object(k.__)("Upload"))}}))),i&&Object(l.createElement)("form",{className:"block-editor-media-flow__url-input",onKeyDown:function(e){[li.TAB,li.ESCAPE].includes(e.keyCode)||e.stopPropagation()},onKeyPress:function(e){[li.TAB,li.ESCAPE].includes(e.keyCode)||e.stopPropagation()}},Object(l.createElement)("span",{className:"block-editor-media-replace-flow__image-url-label"},Object(k.__)("Current media URL:")),Object(l.createElement)(Yp,{value:{url:h},settings:[],showSuggestions:!1,onChange:function(e){var t=e.url;j(t),i(t),_.current.focus()}})))}})})),tm=n(262);function nm(e){var t=e.url,n=e.urlLabel,r=e.className,o=u()(r,"block-editor-url-popover__link-viewer-url");return t?Object(l.createElement)(m.ExternalLink,{className:o,href:t},n||Object(Su.filterURLForDisplay)(Object(Su.safeDecodeURI)(t))):Object(l.createElement)("span",{className:o})}function rm(e){var t=e.additionalControls,n=e.children,r=e.renderSettings,o=e.position,c=void 0===o?"bottom center":o,a=e.focusOnMount,s=void 0===a?"firstElement":a,u=Object(j.a)(e,["additionalControls","children","renderSettings","position","focusOnMount"]),d=Object(l.useState)(!1),b=Object(Co.a)(d,2),f=b[0],p=b[1],v=!!r&&f;return Object(l.createElement)(m.Popover,Object(i.a)({className:"block-editor-url-popover",focusOnMount:s,position:c},u),Object(l.createElement)("div",{className:"block-editor-url-popover__input-container"},Object(l.createElement)("div",{className:"block-editor-url-popover__row"},n,!!r&&Object(l.createElement)(m.Button,{className:"block-editor-url-popover__settings-toggle",icon:es.a,label:Object(k.__)("Link settings"),onClick:function(){p(!f)},"aria-expanded":f})),v&&Object(l.createElement)("div",{className:"block-editor-url-popover__row block-editor-url-popover__settings"},r())),t&&!v&&Object(l.createElement)("div",{className:"block-editor-url-popover__additional-controls"},t))}rm.LinkEditor=function(e){var t=e.autocompleteRef,n=e.className,r=e.onChangeInputValue,o=e.value,c=Object(j.a)(e,["autocompleteRef","className","onChangeInputValue","value"]);return Object(l.createElement)("form",Object(i.a)({className:u()("block-editor-url-popover__link-editor",n)},c),Object(l.createElement)(Sp,{value:o,onChange:r,autocompleteRef:t}),Object(l.createElement)(m.Button,{icon:yp.a,label:Object(k.__)("Apply"),type:"submit"}))},rm.LinkViewer=function(e){var t=e.className,n=e.linkClassName,r=e.onEditLinkClick,o=e.url,c=e.urlLabel,a=Object(j.a)(e,["className","linkClassName","onEditLinkClick","url","urlLabel"]);return Object(l.createElement)("div",Object(i.a)({className:u()("block-editor-url-popover__link-viewer",t)},a),Object(l.createElement)(nm,{url:o,urlLabel:c,className:n}),r&&Object(l.createElement)(m.Button,{icon:tm.a,label:Object(k.__)("Edit"),onClick:r}))};var om=rm,cm=function(e){var t=e.src,n=e.onChange,r=e.onSubmit,o=e.onClose;return Object(l.createElement)(om,{onClose:o},Object(l.createElement)("form",{className:"block-editor-media-placeholder__url-input-form",onSubmit:r},Object(l.createElement)("input",{className:"block-editor-media-placeholder__url-input-field",type:"url","aria-label":Object(k.__)("URL"),placeholder:Object(k.__)("Paste or type URL"),onChange:n,value:t}),Object(l.createElement)(m.Button,{className:"block-editor-media-placeholder__url-input-submit-button",icon:yp.a,label:Object(k.__)("Apply"),type:"submit"})))},im=Object(m.withFilters)("editor.MediaPlaceholder")((function(e){var t=e.value,n=void 0===t?{}:t,r=e.allowedTypes,o=e.className,c=e.icon,i=e.labels,a=void 0===i?{}:i,s=e.mediaPreview,b=e.notices,f=e.isAppender,p=e.accept,O=e.addToGallery,g=e.multiple,h=void 0!==g&&g,j=e.dropZoneUIOnly,y=e.disableDropZone,_=e.disableMediaButtons,E=e.onError,w=e.onSelect,C=e.onCancel,S=e.onSelectURL,B=e.onDoubleClick,I=e.onFilesPreUpload,x=void 0===I?d.noop:I,P=e.onHTMLDrop,T=void 0===P?d.noop:P,N=e.children,D=Object(v.useSelect)((function(e){return(0,e(yr).getSettings)().mediaUpload}),[]),A=Object(l.useState)(""),L=Object(Co.a)(A,2),R=L[0],M=L[1],F=Object(l.useState)(!1),V=Object(Co.a)(F,2),H=V[0],z=V[1];Object(l.useEffect)((function(){var e;M(null!==(e=null==n?void 0:n.src)&&void 0!==e?e:"")}),[null==n?void 0:n.src]);var G=function(e){M(e.target.value)},U=function(){z(!0)},W=function(){z(!1)},K=function(e){e.preventDefault(),R&&S&&(S(R),W())},q=function(e){var t;if(x(e),h)if(O){var o=[];t=function(e){var t=(null!=n?n:[]).filter((function(e){return e.id?!o.some((function(t){var n=t.id;return Number(n)===Number(e.id)})):!o.some((function(t){var n=t.urlSlug;return e.url.includes(n)}))}));w(t.concat(e)),o=e.map((function(e){var t=e.url.lastIndexOf("."),n=e.url.slice(0,t);return{id:e.id,urlSlug:n}}))}}else t=w;else t=function(e){var t=Object(Co.a)(e,1)[0];return w(t)};D({allowedTypes:r,filesList:e,onFileChange:t,onError:E})},$=function(e){q(e.target.files)},Y=function(e,t){var n=a.instructions,i=a.title;if(D||S||(n=Object(k.__)("To edit this block, you need permission to upload media.")),void 0===n||void 0===i){var d=null!=r?r:[],p=Object(Co.a)(d,1)[0],v=1===d.length,O=v&&"audio"===p,g=v&&"image"===p,h=v&&"video"===p;void 0===n&&D&&(n=Object(k.__)("Upload a media file or pick one from your media library."),O?n=Object(k.__)("Upload an audio file, pick one from your media library, or add one with a URL."):g?n=Object(k.__)("Upload an image file, pick one from your media library, or add one with a URL."):h&&(n=Object(k.__)("Upload a video file, pick one from your media library, or add one with a URL."))),void 0===i&&(i=Object(k.__)("Media"),O?i=Object(k.__)("Audio"):g?i=Object(k.__)("Image"):h&&(i=Object(k.__)("Video")))}var j=u()("block-editor-media-placeholder",o,{"is-appender":f});return Object(l.createElement)(m.Placeholder,{icon:c,label:i,instructions:n,className:j,notices:b,onClick:t,onDoubleClick:B,preview:s},e,N)},X=function(){return y?null:Object(l.createElement)(m.DropZone,{onFilesDrop:q,onHTMLDrop:T})},Q=function(){return C&&Object(l.createElement)(m.Button,{className:"block-editor-media-placeholder__cancel-button",title:Object(k.__)("Cancel"),isLink:!0,onClick:C},Object(k.__)("Cancel"))},Z=function(){return S&&Object(l.createElement)("div",{className:"block-editor-media-placeholder__url-input-container"},Object(l.createElement)(m.Button,{className:"block-editor-media-placeholder__button",onClick:U,isPressed:H,isTertiary:!0},Object(k.__)("Insert from URL")),H&&Object(l.createElement)(cm,{src:R,onChange:G,onSubmit:K,onClose:W}))};return j||_?(j&&Ft()("wp.blockEditor.MediaPlaceholder dropZoneUIOnly prop",{since:"5.4",alternative:"disableMediaButtons"}),Object(l.createElement)(Jp,null,X())):Object(l.createElement)(Jp,{fallback:Y(Z())},function(){var e=Object(l.createElement)(Zp,{addToGallery:O,gallery:h&&!(!r||0===r.length)&&r.every((function(e){return"image"===e||e.startsWith("image/")})),multiple:h,onSelect:w,allowedTypes:r,value:Array.isArray(n)?n.map((function(e){return e.id})):n.id,render:function(e){var t=e.open;return Object(l.createElement)(m.Button,{isTertiary:!0,onClick:function(e){e.stopPropagation(),t()}},Object(k.__)("Media Library"))}});if(D&&f)return Object(l.createElement)(l.Fragment,null,X(),Object(l.createElement)(m.FormFileUpload,{onChange:$,accept:p,multiple:h,render:function(t){var n=t.openFileDialog,r=Object(l.createElement)(l.Fragment,null,Object(l.createElement)(m.Button,{isPrimary:!0,className:u()("block-editor-media-placeholder__button","block-editor-media-placeholder__upload-button")},Object(k.__)("Upload")),e,Z(),Q());return Y(r,n)}}));if(D){var t=Object(l.createElement)(l.Fragment,null,X(),Object(l.createElement)(m.FormFileUpload,{isPrimary:!0,className:u()("block-editor-media-placeholder__button","block-editor-media-placeholder__upload-button"),onChange:$,accept:p,multiple:h},Object(k.__)("Upload")),e,Z(),Q());return Y(t)}return Y(e)}())})),am=Object(l.forwardRef)((function(e,t){return Object(l.createElement)(wf,Object(i.a)({ref:t},e,{__unstableDisableFormats:!0,preserveWhiteSpace:!0}))}));am.Content=function(e){var t=e.value,n=void 0===t?"":t,r=e.tagName,o=void 0===r?"div":r,c=Object(j.a)(e,["value","tagName"]);return Object(l.createElement)(o,c,n)};var lm=am,sm=Object(l.forwardRef)((function(e,t){var n=e.__experimentalVersion,r=Object(j.a)(e,["__experimentalVersion"]);if(2===n)return Object(l.createElement)(lm,Object(i.a)({ref:t},r));var o=r.className,c=r.onChange,a=Object(j.a)(r,["className","onChange"]);return Object(l.createElement)(hs.a,Object(i.a)({ref:t,className:u()("block-editor-plain-text",o),onChange:function(e){return c(e.target.value)}},a))}));function um(e){var t=e.property,n=e.viewport,r=e.desc,o=Object(b.useInstanceId)(um),c=r||Object(k.sprintf)(
69
  /* translators: 1: property name. 2: viewport name. */
70
+ Object(k._x)("Controls the %1$s property for %2$s viewports.","Text labelling a interface as controlling a given layout property (eg: margin) for a given screen size."),t,n.label);return Object(l.createElement)(l.Fragment,null,Object(l.createElement)("span",{"aria-describedby":"rbc-desc-".concat(o)},n.label),Object(l.createElement)(m.VisuallyHidden,{as:"span",id:"rbc-desc-".concat(o)},c))}var dm=function(e){var t=e.title,n=e.property,r=e.toggleLabel,o=e.onIsResponsiveChange,c=e.renderDefaultControl,i=e.renderResponsiveControls,a=e.isResponsive,s=void 0!==a&&a,d=e.defaultLabel,b=void 0===d?{id:"all",
71
  /* translators: 'Label. Used to signify a layout property (eg: margin, padding) will apply uniformly to all screensizes.' */
72
+ label:Object(k.__)("All")}:d,f=e.viewports,p=void 0===f?[{id:"small",label:Object(k.__)("Small screens")},{id:"medium",label:Object(k.__)("Medium screens")},{id:"large",label:Object(k.__)("Large screens")}]:f;if(!t||!n||!c)return null;var v=r||Object(k.sprintf)(
73
  /* translators: 'Toggle control label. Should the property be the same across all screen sizes or unique per screen size.'. %s property value for the control (eg: margin, padding...etc) */
74
+ Object(k.__)("Use the same %s on all screensizes."),n),O=Object(k.__)("Toggle between using the same value for all screen sizes or using a unique value per screen size."),g=c(Object(l.createElement)(um,{property:n,viewport:b}),b);
75
+ /* translators: 'Help text for the responsive mode toggle control.' */return Object(l.createElement)("fieldset",{className:"block-editor-responsive-block-control"},Object(l.createElement)("legend",{className:"block-editor-responsive-block-control__title"},t),Object(l.createElement)("div",{className:"block-editor-responsive-block-control__inner"},Object(l.createElement)(m.ToggleControl,{className:"block-editor-responsive-block-control__toggle",label:v,checked:!s,onChange:o,help:O}),Object(l.createElement)("div",{className:u()("block-editor-responsive-block-control__group",{"is-responsive":s})},!s&&g,s&&(i?i(p):p.map((function(e){return Object(l.createElement)(l.Fragment,{key:e.id},c(Object(l.createElement)(um,{property:n,viewport:e}),e))}))))))};function bm(e){var t=e.character,n=e.type,r=e.onUse;return Object(b.useKeyboardShortcut)(li.rawShortcut[n](t),(function(){return r(),!1}),{bindGlobal:!0}),null}function fm(e){var t,n=e.name,r=e.shortcutType,o=e.shortcutCharacter,c=Object(j.a)(e,["name","shortcutType","shortcutCharacter"]),a="RichText.ToolbarControls";return n&&(a+=".".concat(n)),r&&o&&(t=li.displayShortcut[r](o)),Object(l.createElement)(m.Fill,{name:a},Object(l.createElement)(m.ToolbarButton,Object(i.a)({},c,{shortcut:t})))}var pm=function(e){Object(Oa.a)(o,e);var t,n,r=(t=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=Object(ha.a)(t);if(n){var o=Object(ha.a)(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return Object(ga.a)(this,e)});function o(){var e;return Object(pa.a)(this,o),(e=r.apply(this,arguments)).onInput=e.onInput.bind(Object(va.a)(e)),e}return Object(ma.a)(o,[{key:"onInput",value:function(e){e.inputType===this.props.inputType&&this.props.onInput()}},{key:"componentDidMount",value:function(){document.addEventListener("input",this.onInput,!0)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("input",this.onInput,!0)}},{key:"render",value:function(){return null}}]),o}(l.Component),mm=Object(l.createElement)(m.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(l.createElement)(m.Path,{d:"M9.4 20.5L5.2 3.8l14.6 9-2 .3c-.2 0-.4.1-.7.1-.9.2-1.6.3-2.2.5-.8.3-1.4.5-1.8.8-.4.3-.8.8-1.3 1.5-.4.5-.8 1.2-1.2 2l-.3.6-.9 1.9zM7.6 7.1l2.4 9.3c.2-.4.5-.8.7-1.1.6-.8 1.1-1.4 1.6-1.8.5-.4 1.3-.8 2.2-1.1l1.2-.3-8.1-5z"})),vm=Object(l.forwardRef)((function(e,t){var n=Object(v.useSelect)((function(e){return e(yr).isNavigationMode()}),[]),r=Object(v.useDispatch)(yr).setNavigationMode,o=function(e){r("edit"!==e)};return Object(l.createElement)(m.Dropdown,{renderToggle:function(r){var o=r.isOpen,c=r.onToggle;return Object(l.createElement)(m.Button,Object(i.a)({},e,{ref:t,icon:n?mm:tm.a,"aria-expanded":o,"aria-haspopup":"true",onClick:c
76
+ /* translators: button label text should, if possible, be under 16 characters. */,label:Object(k.__)("Modes")}))},position:"bottom right",renderContent:function(){return Object(l.createElement)(l.Fragment,null,Object(l.createElement)(m.NavigableMenu,{role:"menu","aria-label":Object(k.__)("Modes")},Object(l.createElement)(m.MenuItemsChoice,{value:n?"select":"edit",onSelect:o,choices:[{value:"edit",label:Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ra.a,{icon:tm.a}),Object(k.__)("Edit"))},{value:"select",label:Object(l.createElement)(l.Fragment,null,mm,Object(k.__)("Select"))}]})),Object(l.createElement)("div",{className:"block-editor-tool-selector__help"},Object(k.__)("Tools offer different interactions for block selection & editing. To select, press Escape, to go back to editing, press Enter.")))}})})),Om=n(246),gm=n(410);var hm=function(e){Object(Oa.a)(o,e);var t,n,r=(t=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=Object(ha.a)(t);if(n){var o=Object(ha.a)(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return Object(ga.a)(this,e)});function o(){var e;return Object(pa.a)(this,o),(e=r.apply(this,arguments)).toggle=e.toggle.bind(Object(va.a)(e)),e.submitLink=e.submitLink.bind(Object(va.a)(e)),e.state={expanded:!1},e}return Object(ma.a)(o,[{key:"toggle",value:function(){this.setState({expanded:!this.state.expanded})}},{key:"submitLink",value:function(e){e.preventDefault(),this.toggle()}},{key:"render",value:function(){var e=this.props,t=e.url,n=e.onChange,r=this.state.expanded,o=t?Object(k.__)("Edit link"):Object(k.__)("Insert link");return Object(l.createElement)("div",{className:"block-editor-url-input__button"},Object(l.createElement)(m.Button,{icon:Om.a,label:o,onClick:this.toggle,className:"components-toolbar__control",isPressed:!!t}),r&&Object(l.createElement)("form",{className:"block-editor-url-input__button-modal",onSubmit:this.submitLink},Object(l.createElement)("div",{className:"block-editor-url-input__button-modal-line"},Object(l.createElement)(m.Button,{className:"block-editor-url-input__back",icon:gm.a,label:Object(k.__)("Close"),onClick:this.toggle}),Object(l.createElement)(Sp,{value:t||"",onChange:n}),Object(l.createElement)(m.Button,{icon:yp.a,label:Object(k.__)("Submit"),type:"submit"}))))}}]),o}(l.Component),jm=n(168),ym=["noreferrer","noopener"],km=Object(l.createElement)(m.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)(m.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(l.createElement)(m.Path,{d:"m19 5v14h-14v-14h14m0-2h-14c-1.1 0-2 0.9-2 2v14c0 1.1 0.9 2 2 2h14c1.1 0 2-0.9 2-2v-14c0-1.1-0.9-2-2-2z"}),Object(l.createElement)(m.Path,{d:"m14.14 11.86l-3 3.87-2.14-2.59-3 3.86h12l-3.86-5.14z"})),_m=function(e){var t=e.linkDestination,n=e.onChangeUrl,r=e.url,o=e.mediaType,c=void 0===o?"image":o,i=e.mediaUrl,a=e.mediaLink,s=e.linkTarget,u=e.linkClass,b=e.rel,f=Object(l.useState)(!1),p=Object(Co.a)(f,2),v=p[0],O=p[1],g=Object(l.useCallback)((function(){O(!0)})),h=Object(l.useState)(!1),j=Object(Co.a)(h,2),y=j[0],_=j[1],E=Object(l.useState)(null),w=Object(Co.a)(E,2),C=w[0],S=w[1],B=Object(l.useRef)(null),I=Object(l.useCallback)((function(){"media"!==t&&"attachment"!==t||S(""),_(!0)})),x=Object(l.useCallback)((function(){_(!1)})),P=Object(l.useCallback)((function(){S(null),x(),O(!1)})),T=function(e){var t=e;return void 0===e||Object(d.isEmpty)(t)||Object(d.isEmpty)(t)||(Object(d.each)(ym,(function(e){var n=new RegExp("\\b"+e+"\\b","gi");t=t.replace(n,"")})),t!==e&&(t=t.trim()),Object(d.isEmpty)(t)&&(t=void 0)),t},N=Object(l.useCallback)((function(){return function(e){var t=B.current;t&&t.contains(e.target)||(O(!1),S(null),x())}})),D=Object(l.useCallback)((function(){return function(e){if(C){var t,r=(null===(t=L().find((function(e){return e.url===C})))||void 0===t?void 0:t.linkDestination)||"custom";n({href:C,linkDestination:r})}x(),S(null),e.preventDefault()}})),A=Object(l.useCallback)((function(){n({linkDestination:"none",href:""})})),L=function(){var e=[{linkDestination:"media",title:Object(k.__)("Media File"),url:"image"===c?i:void 0,icon:km}];return"image"===c&&a&&e.push({linkDestination:"attachment",title:Object(k.__)("Attachment Page"),url:"image"===c?a:void 0,icon:Object(l.createElement)(m.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)(m.Path,{d:"M0 0h24v24H0V0z",fill:"none"}),Object(l.createElement)(m.Path,{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zM6 20V4h7v5h5v11H6z"}))}),e},R=Object(l.createElement)(l.Fragment,null,Object(l.createElement)(m.ToggleControl,{label:Object(k.__)("Open in new tab"),onChange:function(e){var t=function(e){var t=e?"_blank":void 0;return{linkTarget:t,rel:t||b?T(b):void 0}}(e);n(t)},checked:"_blank"===s}),Object(l.createElement)(m.TextControl,{label:Object(k.__)("Link Rel"),value:T(b)||"",onChange:function(e){n({rel:e})}}),Object(l.createElement)(m.TextControl,{label:Object(k.__)("Link CSS Class"),value:u||"",onChange:function(e){n({linkClass:e})}})),M=null!==C?C:r,F=(Object(d.find)(L(),["linkDestination",t])||{}).title;return Object(l.createElement)(l.Fragment,null,Object(l.createElement)(m.ToolbarButton,{icon:Om.a,className:"components-toolbar__control",label:r?Object(k.__)("Edit link"):Object(k.__)("Insert link"),"aria-expanded":v,onClick:g}),v&&Object(l.createElement)(om,{onFocusOutside:N(),onClose:P,renderSettings:function(){return R},additionalControls:!M&&Object(l.createElement)(m.NavigableMenu,null,Object(d.map)(L(),(function(e){return Object(l.createElement)(m.MenuItem,{key:e.linkDestination,icon:e.icon,onClick:function(){var t,r,o;S(null),t=e.url,o=L(),r=t?(Object(d.find)(o,(function(e){return e.url===t}))||{linkDestination:"custom"}).linkDestination:"none",n({linkDestination:r,href:t}),x()}},e.title)})))},(!r||y)&&Object(l.createElement)(om.LinkEditor,{className:"block-editor-format-toolbar__link-container-content",value:M,onChangeInputValue:S,onSubmit:D(),autocompleteRef:B}),r&&!y&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(om.LinkViewer,{className:"block-editor-format-toolbar__link-container-content",url:r,onEditLinkClick:I,urlLabel:F}),Object(l.createElement)(m.Button,{icon:jm.a,label:Object(k.__)("Remove link"),onClick:A}))))},Em=n(154);function wm(e){var t=e.children,n=e.className,r=e.isEnabled,o=void 0===r||r,c=e.deviceType,i=e.setDeviceType;if(Object(b.useViewportMatch)("small","<"))return null;var a={className:u()(n,"block-editor-post-preview__dropdown-content"),position:"bottom left"},s={isTertiary:!0,className:"block-editor-post-preview__button-toggle",disabled:!o,
77
  /* translators: button label text should, if possible, be under 16 characters. */
78
+ children:Object(k.__)("Preview")};return Object(l.createElement)(m.DropdownMenu,{className:"block-editor-post-preview__dropdown",popoverProps:a,toggleProps:s,icon:null},(function(){return Object(l.createElement)(l.Fragment,null,Object(l.createElement)(m.MenuGroup,null,Object(l.createElement)(m.MenuItem,{className:"block-editor-post-preview__button-resize",onClick:function(){return i("Desktop")},icon:"Desktop"===c&&Em.a},Object(k.__)("Desktop")),Object(l.createElement)(m.MenuItem,{className:"block-editor-post-preview__button-resize",onClick:function(){return i("Tablet")},icon:"Tablet"===c&&Em.a},Object(k.__)("Tablet")),Object(l.createElement)(m.MenuItem,{className:"block-editor-post-preview__button-resize",onClick:function(){return i("Mobile")},icon:"Mobile"===c&&Em.a},Object(k.__)("Mobile"))),t)}))}var Cm=n(357),Sm=/\((min|max)-width:[^\(]*?\)/g;function Bm(e){return!!e.media&&!!e.media.mediaText.match(Sm)}function Im(e,t,n){e.deleteRule(n),e.insertRule(t,n)}function xm(e,t){return e.replace(Sm,(function(e){return Object(Cm.match)(e,{type:"screen",width:t})?"(min-width:0px)":"(min-width:999999px)"}))}function Pm(e,t){Object(l.useEffect)((function(){if(t){var n,r,o,c="undefined"==typeof window?[]:Object(d.filter)(null!==(n=null===(r=window)||void 0===r||null===(o=r.document)||void 0===o?void 0:o.styleSheets)&&void 0!==n?n:[],(function(e){return!!e.href&&Object(Su.getProtocol)(e.href)===window.location.protocol&&Object(Su.getAuthority)(e.href)===window.location.host})),i=[];return c.forEach((function(n,r){for(var o=!1,c=0;c<n.cssRules.length;++c){var a=n.cssRules[c];if((a.type===window.CSSRule.STYLE_RULE||a.type===window.CSSRule.MEDIA_RULE)&&(!o&&a.cssText.match(new RegExp("#start-".concat(e)))&&(o=!0),o&&a.cssText.match(new RegExp("#end-".concat(e)))&&(o=!1),o&&Bm(a))){var l=a.cssText;i[r]||(i[r]=[]),i[r][c]=l,Im(n,xm(l,t),c)}}})),function(){i.forEach((function(e,t){if(e)for(var n=0;n<e.length;++n){var r=e[n];r&&Im(c[t],r,n)}}))}}}),[t])}function Tm(e,t){var n=Object(l.useState)(window.innerWidth),r=Object(Co.a)(n,2),o=r[0],c=r[1];Object(l.useEffect)((function(){if("Desktop"!==e){var t=function(){return c(window.innerWidth)};return window.addEventListener("resize",t),function(){window.removeEventListener("resize",t)}}}),[e]);var i=function(e){var t;switch(e){case"Tablet":t=780;break;case"Mobile":t=360;break;default:return null}return t<o?t:o};return Pm("resizable-editor-section",t?null:i(e)),function(e){var t="Mobile"===e?"768px":"1024px";switch(e){case"Tablet":case"Mobile":return{width:i(e),margin:(window.innerHeight<800?36:72)+"px auto",height:t,borderRadius:"2px",border:"1px solid #ddd",overflowY:"auto"};default:return null}}(e)}var Nm=Object(v.withSelect)((function(e){return{selectedBlockClientId:e(yr).getBlockSelectionStart()}}))((function(e){var t=e.selectedBlockClientId;return t?Object(l.createElement)(m.Button,{isSecondary:!0,className:"block-editor-skip-to-selected-block",onClick:function(){Sc(t,document).focus()}},Object(k.__)("Skip to the selected block")):null})),Dm=n(159),Am=Object(v.withSelect)((function(e){return{blocks:(0,e(yr).getMultiSelectedBlocks)()}}))((function(e){var t=e.blocks,n=Object(Dm.count)(Object(p.serialize)(t),"words");return Object(l.createElement)("div",{className:"block-editor-multi-selection-inspector__card"},Object(l.createElement)(hl,{icon:md,showColors:!0}),Object(l.createElement)("div",{className:"block-editor-multi-selection-inspector__card-content"},Object(l.createElement)("div",{className:"block-editor-multi-selection-inspector__card-title"},Object(k.sprintf)(
79
  /* translators: %d: number of blocks */
80
+ Object(k._n)("%d block","%d blocks",t.length),t.length)),Object(l.createElement)("div",{className:"block-editor-multi-selection-inspector__card-description"},Object(k.sprintf)(
81
  /* translators: %d: number of words */
82
+ Object(k._n)("%d word","%d words",n),n))))}));function Lm(e){var t=e.blockName,n=Object(v.useSelect)((function(e){var n,r,o=e(yr).getSettings().__experimentalPreferredStyleVariations;return{preferredStyle:null==o||null===(n=o.value)||void 0===n?void 0:n[t],onUpdatePreferredStyleVariations:null!==(r=null==o?void 0:o.onChange)&&void 0!==r?r:null,styles:e(p.store).getBlockStyles(t)}}),[t]),r=n.preferredStyle,o=n.onUpdatePreferredStyleVariations,c=n.styles,i=Object(l.useMemo)((function(){return[{label:Object(k.__)("Not set"),value:""}].concat(Object(y.a)(c.map((function(e){return{label:e.label,value:e.name}}))))}),[c]),a=Object(l.useCallback)((function(e){o(t,e)}),[t,o]);return o&&Object(l.createElement)(m.SelectControl,{options:i,value:r||"",label:Object(k.__)("Default Style"),onChange:a})}var Rm=function(e){var t=e.clientId,n=e.blockName,r=e.hasBlockStyles,o=e.bubblesVirtually,c=Cl(t);return Object(l.createElement)("div",{className:"block-editor-block-inspector"},Object(l.createElement)(Ks,c),Object(l.createElement)(Pf,{blockClientId:t}),r&&Object(l.createElement)("div",null,Object(l.createElement)(m.PanelBody,{title:Object(k.__)("Styles")},Object(l.createElement)(_d,{clientId:t}),Object(p.hasBlockSupport)(n,"defaultStylePicker",!0)&&Object(l.createElement)(Lm,{blockName:n}))),Object(l.createElement)(po.Slot,{bubblesVirtually:o}),Object(l.createElement)("div",null,Object(l.createElement)(Mm,{slotName:lo.slotName,bubblesVirtually:o})),Object(l.createElement)(Nm,{key:"back"}))},Mm=function(e){var t=e.slotName,n=e.bubblesVirtually,r=Object(m.__experimentalUseSlot)(t);return Boolean(r.fills&&r.fills.length)?Object(l.createElement)(m.PanelBody,{className:"block-editor-block-inspector__advanced",title:Object(k.__)("Advanced"),initialOpen:!1},Object(l.createElement)(lo.Slot,{bubblesVirtually:n})):null},Fm=function(e){var t=e.showNoBlockSelectedMessage,n=void 0===t||t,r=e.bubblesVirtually,o=void 0===r||r,c=Object(v.useSelect)((function(e){var t=e(yr),n=t.getSelectedBlockClientId,r=t.getSelectedBlockCount,o=t.getBlockName,c=e(p.store).getBlockStyles,i=n(),a=i&&o(i),l=a&&Object(p.getBlockType)(a),s=a&&c(a);return{count:r(),selectedBlockClientId:i,selectedBlockName:a,blockType:l,hasBlockStyles:s&&s.length>0}}),[]),i=c.count,a=c.hasBlockStyles,s=c.selectedBlockName,u=c.selectedBlockClientId,d=c.blockType;if(i>1)return Object(l.createElement)("div",{className:"block-editor-block-inspector"},Object(l.createElement)(Am,null),Object(l.createElement)(po.Slot,{bubblesVirtually:o}));var b=s===Object(p.getUnregisteredTypeHandlerName)();return d&&u&&!b?Object(l.createElement)(Rm,{clientId:u,blockName:d.name,hasBlockStyles:a,bubblesVirtually:o}):n?Object(l.createElement)("span",{className:"block-editor-block-inspector__no-blocks"},Object(k.__)("No block selected.")):null};function Vm(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 Hm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vm(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var zm=Object(l.forwardRef)((function(e,t){var n=e.children,r=e.tagName,o=void 0===r?"div":r,c=Object(j.a)(e,["children","tagName"]);Ft()("wp.blockEditor.__experimentalBlock",{since:"5.6",alternative:"wp.blockEditor.useBlockProps"});var i=Nb(Hm(Hm({},c),{},{ref:t}));return Object(l.createElement)(o,i,n)})),Gm=["p","div","h1","h2","h3","h4","h5","h6","ol","ul","li","figure","nav","pre","header","section","aside","footer","main"].reduce((function(e,t){return e[t]=Object(l.forwardRef)((function(e,n){return Object(l.createElement)(zm,Object(i.a)({},e,{ref:n,tagName:t}))})),e}),zm);function Um(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=Object(v.useSelect)((function(e){var t=e(yr),n=t.hasSelectedBlock,r=t.hasMultiSelection;return n()||r()})),n=Object(v.useDispatch)(yr),r=n.clearSelectedBlock;return Object(b.useRefEffect)((function(n){if(t)return n.addEventListener("mousedown",o),function(){n.removeEventListener("mousedown",o)};function o(t){t.target.closest(".wp-block")||e&&t.target!==n||r()}}),[t,r])}function Wm(e){return Object(l.createElement)("div",Object(i.a)({ref:Um()},e))}var Km=n(358),qm=n.n(Km),$m=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;function Ym(e){return e?e.replace(/^\s+|\s+$/g,""):""}var Xm=n(224),Qm=n.n(Xm),Zm=Jm;function Jm(e){this.options=e||{}}Jm.prototype.emit=function(e){return e},Jm.prototype.visit=function(e){return this[e.type](e)},Jm.prototype.mapVisit=function(e,t){var n="";t=t||"";for(var r=0,o=e.length;r<o;r++)n+=this.visit(e[r]),t&&r<o-1&&(n+=this.emit(t));return n};var ev=tv;function tv(e){Zm.call(this,e)}Qm()(tv,Zm),tv.prototype.compile=function(e){return e.stylesheet.rules.map(this.visit,this).join("")},tv.prototype.comment=function(e){return this.emit("",e.position)},tv.prototype.import=function(e){return this.emit("@import "+e.import+";",e.position)},tv.prototype.media=function(e){return this.emit("@media "+e.media,e.position)+this.emit("{")+this.mapVisit(e.rules)+this.emit("}")},tv.prototype.document=function(e){var t="@"+(e.vendor||"")+"document "+e.document;return this.emit(t,e.position)+this.emit("{")+this.mapVisit(e.rules)+this.emit("}")},tv.prototype.charset=function(e){return this.emit("@charset "+e.charset+";",e.position)},tv.prototype.namespace=function(e){return this.emit("@namespace "+e.namespace+";",e.position)},tv.prototype.supports=function(e){return this.emit("@supports "+e.supports,e.position)+this.emit("{")+this.mapVisit(e.rules)+this.emit("}")},tv.prototype.keyframes=function(e){return this.emit("@"+(e.vendor||"")+"keyframes "+e.name,e.position)+this.emit("{")+this.mapVisit(e.keyframes)+this.emit("}")},tv.prototype.keyframe=function(e){var t=e.declarations;return this.emit(e.values.join(","),e.position)+this.emit("{")+this.mapVisit(t)+this.emit("}")},tv.prototype.page=function(e){var t=e.selectors.length?e.selectors.join(", "):"";return this.emit("@page "+t,e.position)+this.emit("{")+this.mapVisit(e.declarations)+this.emit("}")},tv.prototype["font-face"]=function(e){return this.emit("@font-face",e.position)+this.emit("{")+this.mapVisit(e.declarations)+this.emit("}")},tv.prototype.host=function(e){return this.emit("@host",e.position)+this.emit("{")+this.mapVisit(e.rules)+this.emit("}")},tv.prototype["custom-media"]=function(e){return this.emit("@custom-media "+e.name+" "+e.media+";",e.position)},tv.prototype.rule=function(e){var t=e.declarations;return t.length?this.emit(e.selectors.join(","),e.position)+this.emit("{")+this.mapVisit(t)+this.emit("}"):""},tv.prototype.declaration=function(e){return this.emit(e.property+":"+e.value,e.position)+this.emit(";")};var nv=rv;function rv(e){e=e||{},Zm.call(this,e),this.indentation=e.indent}Qm()(rv,Zm),rv.prototype.compile=function(e){return this.stylesheet(e)},rv.prototype.stylesheet=function(e){return this.mapVisit(e.stylesheet.rules,"\n\n")},rv.prototype.comment=function(e){return this.emit(this.indent()+"/*"+e.comment+"*/",e.position)},rv.prototype.import=function(e){return this.emit("@import "+e.import+";",e.position)},rv.prototype.media=function(e){return this.emit("@media "+e.media,e.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(e.rules,"\n\n")+this.emit(this.indent(-1)+"\n}")},rv.prototype.document=function(e){var t="@"+(e.vendor||"")+"document "+e.document;return this.emit(t,e.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(e.rules,"\n\n")+this.emit(this.indent(-1)+"\n}")},rv.prototype.charset=function(e){return this.emit("@charset "+e.charset+";",e.position)},rv.prototype.namespace=function(e){return this.emit("@namespace "+e.namespace+";",e.position)},rv.prototype.supports=function(e){return this.emit("@supports "+e.supports,e.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(e.rules,"\n\n")+this.emit(this.indent(-1)+"\n}")},rv.prototype.keyframes=function(e){return this.emit("@"+(e.vendor||"")+"keyframes "+e.name,e.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(e.keyframes,"\n")+this.emit(this.indent(-1)+"}")},rv.prototype.keyframe=function(e){var t=e.declarations;return this.emit(this.indent())+this.emit(e.values.join(", "),e.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(t,"\n")+this.emit(this.indent(-1)+"\n"+this.indent()+"}\n")},rv.prototype.page=function(e){var t=e.selectors.length?e.selectors.join(", ")+" ":"";return this.emit("@page "+t,e.position)+this.emit("{\n")+this.emit(this.indent(1))+this.mapVisit(e.declarations,"\n")+this.emit(this.indent(-1))+this.emit("\n}")},rv.prototype["font-face"]=function(e){return this.emit("@font-face ",e.position)+this.emit("{\n")+this.emit(this.indent(1))+this.mapVisit(e.declarations,"\n")+this.emit(this.indent(-1))+this.emit("\n}")},rv.prototype.host=function(e){return this.emit("@host",e.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(e.rules,"\n\n")+this.emit(this.indent(-1)+"\n}")},rv.prototype["custom-media"]=function(e){return this.emit("@custom-media "+e.name+" "+e.media+";",e.position)},rv.prototype.rule=function(e){var t=this.indent(),n=e.declarations;return n.length?this.emit(e.selectors.map((function(e){return t+e})).join(",\n"),e.position)+this.emit(" {\n")+this.emit(this.indent(1))+this.mapVisit(n,"\n")+this.emit(this.indent(-1))+this.emit("\n"+this.indent()+"}"):""},rv.prototype.declaration=function(e){return this.emit(this.indent())+this.emit(e.property+": "+e.value,e.position)+this.emit(";")},rv.prototype.indent=function(e){return this.level=this.level||1,null!==e?(this.level+=e,""):Array(this.level).join(this.indentation||" ")};var ov=function(e,t){try{var n=function(e,t){t=t||{};var n=1,r=1;function o(e){var t=e.match(/\n/g);t&&(n+=t.length);var o=e.lastIndexOf("\n");r=~o?e.length-o:r+e.length}function c(){var e={line:n,column:r};return function(t){return t.position=new i(e),f(),t}}function i(e){this.start=e,this.end={line:n,column:r},this.source=t.source}i.prototype.content=e;var a=[];function l(o){var c=new Error(t.source+":"+n+":"+r+": "+o);if(c.reason=o,c.filename=t.source,c.line=n,c.column=r,c.source=e,!t.silent)throw c;a.push(c)}function s(){return b(/^{\s*/)}function u(){return b(/^}/)}function d(){var t,n,r,o=[];for(f(),p(o);e.length&&"}"!==e.charAt(0)&&(t=w()||(n=void 0,r=void 0,n=c(),(r=v())?(p(),n({type:"rule",selectors:r,declarations:g()})):l("selector missing")));)!1!==t&&(o.push(t),p(o));return o}function b(t){var n=t.exec(e);if(n){var r=n[0];return o(r),e=e.slice(r.length),n}}function f(){b(/^\s*/)}function p(e){var t;for(e=e||[];t=m();)!1!==t&&e.push(t);return e}function m(){var t=c();if("/"===e.charAt(0)&&"*"===e.charAt(1)){for(var n=2;""!==e.charAt(n)&&("*"!==e.charAt(n)||"/"!==e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return l("End of comment missing");var i=e.slice(2,n-2);return r+=2,o(i),e=e.slice(n),r+=2,t({type:"comment",comment:i})}}function v(){var e=b(/^([^{]+)/);if(e)return Ym(e[0]).replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g,"").replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,(function(e){return e.replace(/,/g,"‌")})).split(/\s*(?![^(]*\)),\s*/).map((function(e){return e.replace(/\u200C/g,",")}))}function O(){var e=c(),t=b(/^(\*?[-#\/\*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(t){if(t=Ym(t[0]),!b(/^:\s*/))return l("property missing ':'");var n=b(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^\)]*?\)|[^};])+)/),r=e({type:"declaration",property:t.replace($m,""),value:n?Ym(n[0]).replace($m,""):""});return b(/^[;\s]*/),r}}function g(){var e,t=[];if(!s())return l("missing '{'");for(p(t);e=O();)!1!==e&&(t.push(e),p(t));return u()?t:l("missing '}'")}function h(){for(var e,t=[],n=c();e=b(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)t.push(e[1]),b(/^,\s*/);if(t.length)return n({type:"keyframe",values:t,declarations:g()})}var j,y=E("import"),k=E("charset"),_=E("namespace");function E(e){var t=new RegExp("^@"+e+"\\s*([^;]+);");return function(){var n=c(),r=b(t);if(r){var o={type:e};return o[e]=r[1].trim(),n(o)}}}function w(){if("@"===e[0])return function(){var e=c(),t=b(/^@([-\w]+)?keyframes\s*/);if(t){var n=t[1];if(!(t=b(/^([-\w]+)\s*/)))return l("@keyframes missing name");var r,o=t[1];if(!s())return l("@keyframes missing '{'");for(var i=p();r=h();)i.push(r),i=i.concat(p());return u()?e({type:"keyframes",name:o,vendor:n,keyframes:i}):l("@keyframes missing '}'")}}()||function(){var e=c(),t=b(/^@media *([^{]+)/);if(t){var n=Ym(t[1]);if(!s())return l("@media missing '{'");var r=p().concat(d());return u()?e({type:"media",media:n,rules:r}):l("@media missing '}'")}}()||function(){var e=c(),t=b(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(t)return e({type:"custom-media",name:Ym(t[1]),media:Ym(t[2])})}()||function(){var e=c(),t=b(/^@supports *([^{]+)/);if(t){var n=Ym(t[1]);if(!s())return l("@supports missing '{'");var r=p().concat(d());return u()?e({type:"supports",supports:n,rules:r}):l("@supports missing '}'")}}()||y()||k()||_()||function(){var e=c(),t=b(/^@([-\w]+)?document *([^{]+)/);if(t){var n=Ym(t[1]),r=Ym(t[2]);if(!s())return l("@document missing '{'");var o=p().concat(d());return u()?e({type:"document",document:r,vendor:n,rules:o}):l("@document missing '}'")}}()||function(){var e=c();if(b(/^@page */)){var t=v()||[];if(!s())return l("@page missing '{'");for(var n,r=p();n=O();)r.push(n),r=r.concat(p());return u()?e({type:"page",selectors:t,declarations:r}):l("@page missing '}'")}}()||function(){var e=c();if(b(/^@host\s*/)){if(!s())return l("@host missing '{'");var t=p().concat(d());return u()?e({type:"host",rules:t}):l("@host missing '}'")}}()||function(){var e=c();if(b(/^@font-face\s*/)){if(!s())return l("@font-face missing '{'");for(var t,n=p();t=O();)n.push(t),n=n.concat(p());return u()?e({type:"font-face",declarations:n}):l("@font-face missing '}'")}}()}return function e(t,n){var r=t&&"string"==typeof t.type,o=r?t:n;for(var c in t){var i=t[c];Array.isArray(i)?i.forEach((function(t){e(t,o)})):i&&"object"===Object(H.a)(i)&&e(i,o)}return r&&Object.defineProperty(t,"parent",{configurable:!0,writable:!0,enumerable:!1,value:n||null}),t}((j=d(),{type:"stylesheet",stylesheet:{source:t.source,rules:j,parsingErrors:a}}))}(e);return r=qm.a.map(n,(function(e){if(!e)return e;var n=t(e);return this.update(n)})),((o=o||{}).compress?new ev(o):new nv(o)).compile(r)}catch(e){return console.warn("Error while traversing the CSS: "+e),null}var r,o};function cv(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 iv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cv(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function av(e){return 0!==e.value.indexOf("data:")&&0!==e.value.indexOf("#")&&(t=e.value,!/^\/(?!\/)/.test(t)&&!function(e){return/^(?:https?:)?\/\//.test(e)}(e.value));var t}function lv(e,t){return new URL(e,t).toString()}var sv=function(e){return function(t){if("declaration"===t.type){var n=function(e){for(var t,n=/url\((\s*)(['"]?)(.+?)\2(\s*)\)/g,r=[];null!==(t=n.exec(e));){var o={source:t[0],before:t[1],quote:t[2],value:t[3],after:t[4]};av(o)&&r.push(o)}return r}(t.value).map((c=e,function(e){return iv(iv({},e),{},{newUrl:"url("+e.before+e.quote+lv(e.value,c)+e.quote+e.after+")"})}));return iv(iv({},t),{},{value:(r=t.value,o=n,o.forEach((function(e){r=r.replace(e.source,e.newUrl)})),r)})}var r,o,c;return t}};function uv(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 dv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?uv(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var bv=/^(body|html|:root).*$/,fv=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return function(n){return"rule"===n.type?dv(dv({},n),{},{selectors:n.selectors.map((function(n){return t.includes(n.trim())?n:n.match(bv)?n.replace(/^(body|html|:root)/,e):e+" "+n}))}):n}},pv=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Object(d.map)(e,(function(e){var n=e.css,r=e.baseURL,o=e.__experimentalNoWrapper,c=[];return t&&!(void 0!==o&&o)&&c.push(fv(t)),r&&c.push(sv(r)),c.length?ov(n,Object(b.compose)(c)):n}))};function mv(e){return Object(l.useCallback)((function(e){if(e){var t=e.ownerDocument,n=t.defaultView,r=t.body,o=t.querySelector(".editor-styles-wrapper"),c=n.getComputedStyle(o,null).getPropertyValue("background-color");Bo()(c).getLuminance()>.5?r.classList.remove("is-dark-theme"):r.classList.add("is-dark-theme")}}),[e])}function vv(e){var t=e.styles;return Object(l.createElement)(l.Fragment,null,Object(l.createElement)("style",{ref:mv(t)}),pv(t,".editor-styles-wrapper").map((function(e,t){return Object(l.createElement)("style",{key:t},e)})))}var Ov=function(e){var t=e.rootClientId,n=e.clientId,r=e.isAppender,o=e.showInserterHelpPanel,c=e.showMostUsedBlocks,i=void 0!==c&&c,a=e.__experimentalInsertionIndex,s=e.onSelect,u=void 0===s?d.noop:s,b=e.shouldFocusBlock,f=void 0!==b&&b,p=Object(v.useSelect)((function(e){var r=e(yr).getBlockRootClientId;return t||r(n)||void 0}),[n,t]);return Object(l.createElement)(Hu,{onSelect:u,rootClientId:p,clientId:n,isAppender:r,showInserterHelpPanel:o,showMostUsedBlocks:i,__experimentalInsertionIndex:a,shouldFocusBlock:f})};function gv(){var e=Object(v.useSelect)((function(e){var t=e(yr),n=t.getSelectedBlockClientIds,r=t.getBlockOrder,o=t.getBlockRootClientId,c=n(),i=Object(Co.a)(c,1)[0];return{clientIds:c,rootBlocksClientIds:r(),rootClientId:o(i)}}),[]),t=e.clientIds,n=e.rootBlocksClientIds,r=e.rootClientId,o=Object(v.useDispatch)(yr),c=o.duplicateBlocks,i=o.removeBlocks,a=o.insertAfterBlock,s=o.insertBeforeBlock,u=o.multiSelect,b=o.clearSelectedBlock,f=o.moveBlocksUp,p=o.moveBlocksDown;return Object(Vl.useShortcut)("core/block-editor/move-up",Object(l.useCallback)((function(e){e.preventDefault(),f(t,r)}),[t,f]),{bindGlobal:!0,isDisabled:0===t.length}),Object(Vl.useShortcut)("core/block-editor/move-down",Object(l.useCallback)((function(e){e.preventDefault(),p(t,r)}),[t,p]),{bindGlobal:!0,isDisabled:0===t.length}),Object(Vl.useShortcut)("core/block-editor/duplicate",Object(l.useCallback)((function(e){e.preventDefault(),c(t)}),[t,c]),{bindGlobal:!0,isDisabled:0===t.length}),Object(Vl.useShortcut)("core/block-editor/remove",Object(l.useCallback)((function(e){e.preventDefault(),i(t)}),[t,i]),{bindGlobal:!0,isDisabled:0===t.length}),Object(Vl.useShortcut)("core/block-editor/insert-after",Object(l.useCallback)((function(e){e.preventDefault(),a(Object(d.last)(t))}),[t,a]),{bindGlobal:!0,isDisabled:0===t.length}),Object(Vl.useShortcut)("core/block-editor/insert-before",Object(l.useCallback)((function(e){e.preventDefault(),s(Object(d.first)(t))}),[t,s]),{bindGlobal:!0,isDisabled:0===t.length}),Object(Vl.useShortcut)("core/block-editor/delete-multi-selection",Object(l.useCallback)((function(e){e.preventDefault(),i(t)}),[t,i]),{isDisabled:t.length<2}),Object(Vl.useShortcut)("core/block-editor/select-all",Object(l.useCallback)((function(e){e.preventDefault(),u(Object(d.first)(n),Object(d.last)(n))}),[n,u])),Object(Vl.useShortcut)("core/block-editor/unselect",Object(l.useCallback)((function(e){e.preventDefault(),b(),e.target.ownerDocument.defaultView.getSelection().removeAllRanges()}),[t,b]),{isDisabled:t.length<2}),null}gv.Register=function(){var e=Object(v.useDispatch)(Vl.store).registerShortcut;return Object(l.useEffect)((function(){e({name:"core/block-editor/duplicate",category:"block",description:Object(k.__)("Duplicate the selected block(s)."),keyCombination:{modifier:"primaryShift",character:"d"}}),e({name:"core/block-editor/remove",category:"block",description:Object(k.__)("Remove the selected block(s)."),keyCombination:{modifier:"access",character:"z"}}),e({name:"core/block-editor/insert-before",category:"block",description:Object(k.__)("Insert a new block before the selected block(s)."),keyCombination:{modifier:"primaryAlt",character:"t"}}),e({name:"core/block-editor/insert-after",category:"block",description:Object(k.__)("Insert a new block after the selected block(s)."),keyCombination:{modifier:"primaryAlt",character:"y"}}),e({name:"core/block-editor/delete-multi-selection",category:"block",description:Object(k.__)("Remove multiple selected blocks."),keyCombination:{character:"del"},aliases:[{character:"backspace"}]}),e({name:"core/block-editor/select-all",category:"selection",description:Object(k.__)("Select all text when typing. Press again to select all blocks."),keyCombination:{modifier:"primary",character:"a"}}),e({name:"core/block-editor/unselect",category:"selection",description:Object(k.__)("Clear selection."),keyCombination:{character:"escape"}}),e({name:"core/block-editor/focus-toolbar",category:"global",description:Object(k.__)("Navigate to the nearest toolbar."),keyCombination:{modifier:"alt",character:"F10"}}),e({name:"core/block-editor/move-up",category:"block",description:Object(k.__)("Move the selected block(s) up."),keyCombination:{modifier:"secondary",character:"t"}}),e({name:"core/block-editor/move-down",category:"block",description:Object(k.__)("Move the selected block(s) down."),keyCombination:{modifier:"secondary",character:"y"}})}),[e]),null};var hv=gv;function jv(){return Ft()("wp.blockEditor.MultiSelectScrollIntoView",{hint:"This behaviour is now built-in."}),null}var yv=new Set([li.UP,li.RIGHT,li.DOWN,li.LEFT,li.ENTER,li.BACKSPACE]);function kv(){var e=Object(v.useSelect)((function(e){return e(yr).isTyping()})),t=Object(v.useDispatch)(yr).stopTyping;return Object(b.useRefEffect)((function(n){if(e){var r,o,c=n.ownerDocument;return c.addEventListener("mousemove",i),function(){c.removeEventListener("mousemove",i)}}function i(e){var n=e.clientX,c=e.clientY;r&&o&&(r!==n||o!==c)&&t(),r=n,o=c}}),[e,t])}function _v(){var e=Object(v.useSelect)((function(e){return e(yr).isTyping()})),t=Object(v.useDispatch)(yr),n=t.startTyping,r=t.stopTyping,o=kv(),c=Object(b.useRefEffect)((function(t){var o=t.ownerDocument,c=o.defaultView;if(e){var i;function a(e){var t=e.target;i=c.setTimeout((function(){Object(Wl.isTextField)(t)||r()}))}function l(e){var t=e.keyCode;t!==li.ESCAPE&&t!==li.TAB||r()}function s(){var e=c.getSelection();e.rangeCount>0&&e.getRangeAt(0).collapsed||r()}return t.addEventListener("focus",a),t.addEventListener("keydown",l),o.addEventListener("selectionchange",s),function(){c.clearTimeout(i),t.removeEventListener("focus",a),t.removeEventListener("keydown",l),o.removeEventListener("selectionchange",s)}}function u(e){var r=e.type,o=e.target;Object(Wl.isTextField)(o)&&t.contains(o)&&("keydown"!==r||function(e){var t=e.keyCode;return!e.shiftKey&&yv.has(t)}(e))&&n()}return t.addEventListener("keypress",u),t.addEventListener("keydown",u),function(){t.removeEventListener("keypress",u),t.removeEventListener("keydown",u)}}),[e,n,r]);return Object(b.useMergeRefs)([o,c])}var Ev=function(e){var t=e.children;return Object(l.createElement)("div",{ref:_v()},t)};function wv(){return Ft()("PreserveScrollInReorder component",{since:"5.4",hint:"This behavior is now built-in the block list"}),null}var Cv=-1!==window.navigator.userAgent.indexOf("Trident"),Sv=new Set([li.UP,li.DOWN,li.LEFT,li.RIGHT]);function Bv(){var e=Object(v.useSelect)((function(e){return e(yr).hasSelectedBlock()}));return Object(b.useRefEffect)((function(t){if(e){var n,r,o,c=t.ownerDocument,i=c.defaultView;return i.addEventListener("scroll",a,!0),i.addEventListener("resize",a,!0),t.addEventListener("keydown",l),t.addEventListener("keyup",s),t.addEventListener("mousedown",u),t.addEventListener("touchstart",u),function(){i.removeEventListener("scroll",a,!0),i.removeEventListener("resize",a,!0),t.removeEventListener("keydown",l),t.removeEventListener("keyup",s),t.removeEventListener("mousedown",u),t.removeEventListener("touchstart",u),c.removeEventListener("selectionchange",d),i.cancelAnimationFrame(n),i.cancelAnimationFrame(r)}}function a(){n||(n=i.requestAnimationFrame((function(){b(),n=null})))}function l(e){r&&i.cancelAnimationFrame(r),r=i.requestAnimationFrame((function(){s(e),r=null}))}function s(e){var n=e.keyCode;if(f()){var r=Object(Wl.computeCaretRect)(i);if(r)if(o)if(Sv.has(n))o=r;else{var a=r.top-o.top;if(0!==a){var l=Object(Wl.getScrollContainer)(t);if(l){var s=l===c.body,u=s?i.scrollY:l.scrollTop,d=s?0:l.getBoundingClientRect().top,b=s?o.top/i.innerHeight:(o.top-d)/(i.innerHeight-d);if(0===u&&b<.75&&(p=t.querySelectorAll('[contenteditable="true"]'))[p.length-1]===c.activeElement)o=r;else{var p,m=s?i.innerHeight:l.clientHeight;o.top+o.height>d+m||o.top<d?o=r:s?i.scrollBy(0,a):l.scrollTop+=a}}}}else o=r}}function u(){c.addEventListener("selectionchange",d)}function d(){c.removeEventListener("selectionchange",d),b()}function b(){f()&&(o=Object(Wl.computeCaretRect)(i))}function f(){return t.contains(c.activeElement)&&c.activeElement.isContentEditable}}),[e])}var Iv=Cv?function(e){return e.children}:function(e){var t=e.children;return Object(l.createElement)("div",{ref:Bv(),className:"block-editor__typewriter"},t)},xv=Object(d.overEvery)([Wl.isTextField,Wl.focus.tabbable.isTabbableIndex]);function Pv(){return Object(b.useRefEffect)((function(e){function t(t){if(t.target===e){var n=Wl.focus.focusable.find(e),r=Object(d.findLast)(n,xv);r&&(Object(Wl.placeCaretAtHorizontalEdge)(r,!0),t.preventDefault())}}return e.addEventListener("mousedown",t),function(){e.addEventListener("mousedown",t)}}),[])}function Tv(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Nv(e){e.dir=document.dir,e.body.className="editor-styles-wrapper";var t,n=function(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Tv(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Tv(e,void 0):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,i=!0,a=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return i=e.done,e},e:function(e){a=!0,c=e},f:function(){try{i||null==n.return||n.return()}finally{if(a)throw c}}}}(document.body.classList);try{for(n.s();!(t=n.n()).done;){var r=t.value;r.startsWith("admin-color-")&&e.body.classList.add(r)}}catch(e){n.e(e)}finally{n.f()}}var Dv=Object(l.forwardRef)((function(e,t){var n=e.contentRef,r=e.children,o=e.head,c=e.headHTML,a=Object(j.a)(e,["contentRef","children","head","headHTML"]),s=Object(l.useState)(),u=Object(Co.a)(s,2),d=u[0],f=u[1],p=Object(l.useCallback)((function(e){function t(){var t,r=e.contentDocument,o=r.readyState,i=r.body;return("interactive"===o||"complete"===o)&&("function"==typeof n?n(i):n&&(n.current=i),function(e,t){e.head.innerHTML="<style>body{margin:0}</style>"+t}(r,c),Nv(r),t=r,Array.from(document.styleSheets).forEach((function(e){try{e.cssRules}catch(e){return}var n=e.ownerNode,r=e.cssRules;r&&Array.from(r).find((function(e){var t=e.selectorText;return t&&(t.includes(".".concat("editor-styles-wrapper"))||t.includes(".".concat("wp-block")))}))&&!t.getElementById(n.id)&&t.head.appendChild(n.cloneNode(!0))})),function(e){var t=e.defaultView,n=t.frameElement;function r(e){var r=Object.getPrototypeOf(e).constructor.name,o=window[r],c={};for(var i in e)c[i]=e[i];if(e instanceof t.MouseEvent){var a=n.getBoundingClientRect();c.clientX+=a.left,c.clientY+=a.top}var l=new o(e.type,c);!n.dispatchEvent(l)&&e.preventDefault()}for(var o=0,c=["keydown","keypress","dragover"];o<c.length;o++){var i=c[o];e.addEventListener(i,r)}}(r),Nv(r),f(r),!0)}e&&(t()||e.addEventListener("load",(function(){t()})))}),[]);return Object(l.createElement)("iframe",Object(i.a)({},a,{ref:Object(b.useMergeRefs)([t,p]),tabIndex:"0",title:Object(k.__)("Editor canvas"),name:"editor-canvas"}),d&&Object(l.createPortal)(Object(l.createElement)(m.__experimentalStyleProvider,{document:d},r),d.body),d&&Object(l.createPortal)(o,d.head))}));function Av(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 Lv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Av(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Av(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Rv=Object(l.createContext)({});function Mv(e){var t,n=Object(l.useContext)(Rv),r=h().name,o=Boolean(null===(t=n[r])||void 0===t?void 0:t.has(e)),c=Object(l.useMemo)((function(){return function(e,t,n){var r=Lv(Lv({},e),{},Object(a.a)({},t,e[t]?new Set(e[t]):new Set));return r[t].add(n),r}(n,r,e)}),[n,r,e]);return[o,Object(l.useCallback)((function(e){var t=e.children;return Object(l.createElement)(Rv.Provider,{value:c},t)}),[c])]}function Fv(e){if(void 0===e)e=E.colors;else{var t=e.filter((function(e){return e.color}));0===t.length?e=E.colors:t.length<e.length&&(e=t)}return e}function Vv(e){if(void 0===e)e=E.gradients;else{var t=e.filter((function(e){return e.gradient}));0===t.length?e=E.gradients:t.length<e.length&&(e=t)}return e}},55:function(e,t){e.exports=window.wp.a11y},58: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}))},59:function(e,t,n){var r;!function(o){var c=/^\s+/,i=/\s+$/,a=0,l=o.round,s=o.min,u=o.max,d=o.random;function b(e,t){if(t=t||{},(e=e||"")instanceof b)return e;if(!(this instanceof b))return new b(e,t);var n=function(e){var t,n,r,a={r:0,g:0,b:0},l=1,d=null,b=null,f=null,p=!1,m=!1;return"string"==typeof e&&(e=function(e){e=e.replace(c,"").replace(i,"").toLowerCase();var t,n=!1;if(x[e])e=x[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};return(t=G.rgb.exec(e))?{r:t[1],g:t[2],b:t[3]}:(t=G.rgba.exec(e))?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=G.hsl.exec(e))?{h:t[1],s:t[2],l:t[3]}:(t=G.hsla.exec(e))?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=G.hsv.exec(e))?{h:t[1],s:t[2],v:t[3]}:(t=G.hsva.exec(e))?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=G.hex8.exec(e))?{r:A(t[1]),g:A(t[2]),b:A(t[3]),a:F(t[4]),format:n?"name":"hex8"}:(t=G.hex6.exec(e))?{r:A(t[1]),g:A(t[2]),b:A(t[3]),format:n?"name":"hex"}:(t=G.hex4.exec(e))?{r:A(t[1]+""+t[1]),g:A(t[2]+""+t[2]),b:A(t[3]+""+t[3]),a:F(t[4]+""+t[4]),format:n?"name":"hex8"}:!!(t=G.hex3.exec(e))&&{r:A(t[1]+""+t[1]),g:A(t[2]+""+t[2]),b:A(t[3]+""+t[3]),format:n?"name":"hex"}}(e)),"object"==typeof e&&(U(e.r)&&U(e.g)&&U(e.b)?(t=e.r,n=e.g,r=e.b,a={r:255*N(t,255),g:255*N(n,255),b:255*N(r,255)},p=!0,m="%"===String(e.r).substr(-1)?"prgb":"rgb"):U(e.h)&&U(e.s)&&U(e.v)?(d=R(e.s),b=R(e.v),a=function(e,t,n){e=6*N(e,360),t=N(t,100),n=N(n,100);var r=o.floor(e),c=e-r,i=n*(1-t),a=n*(1-c*t),l=n*(1-(1-c)*t),s=r%6;return{r:255*[n,a,i,i,l,n][s],g:255*[l,n,n,a,i,i][s],b:255*[i,i,l,n,n,a][s]}}(e.h,d,b),p=!0,m="hsv"):U(e.h)&&U(e.s)&&U(e.l)&&(d=R(e.s),f=R(e.l),a=function(e,t,n){var r,o,c;function i(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=N(e,360),t=N(t,100),n=N(n,100),0===t)r=o=c=n;else{var a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;r=i(l,a,e+1/3),o=i(l,a,e),c=i(l,a,e-1/3)}return{r:255*r,g:255*o,b:255*c}}(e.h,d,f),p=!0,m="hsl"),e.hasOwnProperty("a")&&(l=e.a)),l=T(l),{ok:p,format:e.format||m,r:s(255,u(a.r,0)),g:s(255,u(a.g,0)),b:s(255,u(a.b,0)),a:l}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=l(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=l(this._r)),this._g<1&&(this._g=l(this._g)),this._b<1&&(this._b=l(this._b)),this._ok=n.ok,this._tc_id=a++}function f(e,t,n){e=N(e,255),t=N(t,255),n=N(n,255);var r,o,c=u(e,t,n),i=s(e,t,n),a=(c+i)/2;if(c==i)r=o=0;else{var l=c-i;switch(o=a>.5?l/(2-c-i):l/(c+i),c){case e:r=(t-n)/l+(t<n?6:0);break;case t:r=(n-e)/l+2;break;case n:r=(e-t)/l+4}r/=6}return{h:r,s:o,l:a}}function p(e,t,n){e=N(e,255),t=N(t,255),n=N(n,255);var r,o,c=u(e,t,n),i=s(e,t,n),a=c,l=c-i;if(o=0===c?0:l/c,c==i)r=0;else{switch(c){case e:r=(t-n)/l+(t<n?6:0);break;case t:r=(n-e)/l+2;break;case n:r=(e-t)/l+4}r/=6}return{h:r,s:o,v:a}}function m(e,t,n,r){var o=[L(l(e).toString(16)),L(l(t).toString(16)),L(l(n).toString(16))];return r&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function v(e,t,n,r){return[L(M(r)),L(l(e).toString(16)),L(l(t).toString(16)),L(l(n).toString(16))].join("")}function O(e,t){t=0===t?0:t||10;var n=b(e).toHsl();return n.s-=t/100,n.s=D(n.s),b(n)}function g(e,t){t=0===t?0:t||10;var n=b(e).toHsl();return n.s+=t/100,n.s=D(n.s),b(n)}function h(e){return b(e).desaturate(100)}function j(e,t){t=0===t?0:t||10;var n=b(e).toHsl();return n.l+=t/100,n.l=D(n.l),b(n)}function y(e,t){t=0===t?0:t||10;var n=b(e).toRgb();return n.r=u(0,s(255,n.r-l(-t/100*255))),n.g=u(0,s(255,n.g-l(-t/100*255))),n.b=u(0,s(255,n.b-l(-t/100*255))),b(n)}function k(e,t){t=0===t?0:t||10;var n=b(e).toHsl();return n.l-=t/100,n.l=D(n.l),b(n)}function _(e,t){var n=b(e).toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,b(n)}function E(e){var t=b(e).toHsl();return t.h=(t.h+180)%360,b(t)}function w(e){var t=b(e).toHsl(),n=t.h;return[b(e),b({h:(n+120)%360,s:t.s,l:t.l}),b({h:(n+240)%360,s:t.s,l:t.l})]}function C(e){var t=b(e).toHsl(),n=t.h;return[b(e),b({h:(n+90)%360,s:t.s,l:t.l}),b({h:(n+180)%360,s:t.s,l:t.l}),b({h:(n+270)%360,s:t.s,l:t.l})]}function S(e){var t=b(e).toHsl(),n=t.h;return[b(e),b({h:(n+72)%360,s:t.s,l:t.l}),b({h:(n+216)%360,s:t.s,l:t.l})]}function B(e,t,n){t=t||6,n=n||30;var r=b(e).toHsl(),o=360/n,c=[b(e)];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,c.push(b(r));return c}function I(e,t){t=t||6;for(var n=b(e).toHsv(),r=n.h,o=n.s,c=n.v,i=[],a=1/t;t--;)i.push(b({h:r,s:o,v:c})),c=(c+a)%1;return i}b.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:o.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:o.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:o.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=T(e),this._roundA=l(100*this._a)/100,this},toHsv:function(){var e=p(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=p(this._r,this._g,this._b),t=l(360*e.h),n=l(100*e.s),r=l(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=f(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=f(this._r,this._g,this._b),t=l(360*e.h),n=l(100*e.s),r=l(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return m(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,o){var c=[L(l(e).toString(16)),L(l(t).toString(16)),L(l(n).toString(16)),L(M(r))];return o&&c[0].charAt(0)==c[0].charAt(1)&&c[1].charAt(0)==c[1].charAt(1)&&c[2].charAt(0)==c[2].charAt(1)&&c[3].charAt(0)==c[3].charAt(1)?c[0].charAt(0)+c[1].charAt(0)+c[2].charAt(0)+c[3].charAt(0):c.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:l(this._r),g:l(this._g),b:l(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+l(this._r)+", "+l(this._g)+", "+l(this._b)+")":"rgba("+l(this._r)+", "+l(this._g)+", "+l(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:l(100*N(this._r,255))+"%",g:l(100*N(this._g,255))+"%",b:l(100*N(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+l(100*N(this._r,255))+"%, "+l(100*N(this._g,255))+"%, "+l(100*N(this._b,255))+"%)":"rgba("+l(100*N(this._r,255))+"%, "+l(100*N(this._g,255))+"%, "+l(100*N(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(P[m(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+v(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var o=b(e);n="#"+v(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return b(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(j,arguments)},brighten:function(){return this._applyModification(y,arguments)},darken:function(){return this._applyModification(k,arguments)},desaturate:function(){return this._applyModification(O,arguments)},saturate:function(){return this._applyModification(g,arguments)},greyscale:function(){return this._applyModification(h,arguments)},spin:function(){return this._applyModification(_,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(B,arguments)},complement:function(){return this._applyCombination(E,arguments)},monochromatic:function(){return this._applyCombination(I,arguments)},splitcomplement:function(){return this._applyCombination(S,arguments)},triad:function(){return this._applyCombination(w,arguments)},tetrad:function(){return this._applyCombination(C,arguments)}},b.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:R(e[r]));e=n}return b(e,t)},b.equals=function(e,t){return!(!e||!t)&&b(e).toRgbString()==b(t).toRgbString()},b.random=function(){return b.fromRatio({r:d(),g:d(),b:d()})},b.mix=function(e,t,n){n=0===n?0:n||50;var r=b(e).toRgb(),o=b(t).toRgb(),c=n/100;return b({r:(o.r-r.r)*c+r.r,g:(o.g-r.g)*c+r.g,b:(o.b-r.b)*c+r.b,a:(o.a-r.a)*c+r.a})},b.readability=function(e,t){var n=b(e),r=b(t);return(o.max(n.getLuminance(),r.getLuminance())+.05)/(o.min(n.getLuminance(),r.getLuminance())+.05)},b.isReadable=function(e,t,n){var r,o,c,i,a,l=b.readability(e,t);switch(o=!1,(c=n,"AA"!==(i=((c=c||{level:"AA",size:"small"}).level||"AA").toUpperCase())&&"AAA"!==i&&(i="AA"),"small"!==(a=(c.size||"small").toLowerCase())&&"large"!==a&&(a="small"),r={level:i,size:a}).level+r.size){case"AAsmall":case"AAAlarge":o=l>=4.5;break;case"AAlarge":o=l>=3;break;case"AAAsmall":o=l>=7}return o},b.mostReadable=function(e,t,n){var r,o,c,i,a=null,l=0;o=(n=n||{}).includeFallbackColors,c=n.level,i=n.size;for(var s=0;s<t.length;s++)(r=b.readability(e,t[s]))>l&&(l=r,a=b(t[s]));return b.isReadable(e,a,{level:c,size:i})||!o?a:(n.includeFallbackColors=!1,b.mostReadable(e,["#fff","#000"],n))};var x=b.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},P=b.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(x);function T(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function N(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=s(t,u(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),o.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function D(e){return s(1,u(0,e))}function A(e){return parseInt(e,16)}function L(e){return 1==e.length?"0"+e:""+e}function R(e){return e<=1&&(e=100*e+"%"),e}function M(e){return o.round(255*parseFloat(e)).toString(16)}function F(e){return A(e)/255}var V,H,z,G=(H="[\\s|\\(]+("+(V="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+V+")[,|\\s]+("+V+")\\s*\\)?",z="[\\s|\\(]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")\\s*\\)?",{CSS_UNIT:new RegExp(V),rgb:new RegExp("rgb"+H),rgba:new RegExp("rgba"+z),hsl:new RegExp("hsl"+H),hsla:new RegExp("hsla"+z),hsv:new RegExp("hsv"+H),hsva:new RegExp("hsva"+z),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function U(e){return!!G.CSS_UNIT.exec(e)}e.exports?e.exports=b:void 0===(r=function(){return b}.call(t,n,t,e))||(e.exports=r)}(Math)},62:function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?(e.exports=n=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.