Gutenberg - Version 11.2.0

Version Description

Download this release

Release Info

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

Code changes from version 11.1.0 to 11.2.0

build/a11y/index.js CHANGED
@@ -82,7 +82,7 @@ window["wp"] = window["wp"] || {}; window["wp"]["a11y"] =
82
  /******/
83
  /******/
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 517);
86
  /******/ })
87
  /************************************************************************/
88
  /******/ ({
@@ -94,14 +94,14 @@ window["wp"] = window["wp"] || {}; window["wp"]["a11y"] =
94
 
95
  /***/ }),
96
 
97
- /***/ 324:
98
  /***/ (function(module, exports) {
99
 
100
  (function() { module.exports = window["wp"]["domReady"]; }());
101
 
102
  /***/ }),
103
 
104
- /***/ 517:
105
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
106
 
107
  "use strict";
@@ -113,7 +113,7 @@ __webpack_require__.d(__webpack_exports__, "setup", function() { return /* bindi
113
  __webpack_require__.d(__webpack_exports__, "speak", function() { return /* binding */ speak; });
114
 
115
  // EXTERNAL MODULE: external ["wp","domReady"]
116
- var external_wp_domReady_ = __webpack_require__(324);
117
  var external_wp_domReady_default = /*#__PURE__*/__webpack_require__.n(external_wp_domReady_);
118
 
119
  // EXTERNAL MODULE: external ["wp","i18n"]
82
  /******/
83
  /******/
84
  /******/ // Load entry module and return exports
85
+ /******/ return __webpack_require__(__webpack_require__.s = 526);
86
  /******/ })
87
  /************************************************************************/
88
  /******/ ({
94
 
95
  /***/ }),
96
 
97
+ /***/ 333:
98
  /***/ (function(module, exports) {
99
 
100
  (function() { module.exports = window["wp"]["domReady"]; }());
101
 
102
  /***/ }),
103
 
104
+ /***/ 526:
105
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
106
 
107
  "use strict";
113
  __webpack_require__.d(__webpack_exports__, "speak", function() { return /* binding */ speak; });
114
 
115
  // EXTERNAL MODULE: external ["wp","domReady"]
116
+ var external_wp_domReady_ = __webpack_require__(333);
117
  var external_wp_domReady_default = /*#__PURE__*/__webpack_require__.n(external_wp_domReady_);
118
 
119
  // EXTERNAL MODULE: external ["wp","i18n"]
build/a11y/index.min.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('wp-dom-ready', 'wp-i18n', 'wp-polyfill'), 'version' => '0b26935dde8ba245b17a2843e523bb37');
1
+ <?php return array('dependencies' => array('wp-dom-ready', 'wp-i18n', 'wp-polyfill'), 'version' => '8770d6fb62087b4cd3d66f43ef9e4ebe');
build/a11y/index.min.js CHANGED
@@ -1 +1 @@
1
- window.wp=window.wp||{},window.wp.a11y=function(t){var e={};function n(o){if(e[o])return e[o].exports;var i=e[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},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 o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(o,i,function(e){return t[e]}.bind(null,i));return o},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=517)}({1:function(t,e){t.exports=window.wp.i18n},324:function(t,e){t.exports=window.wp.domReady},517:function(t,e,n){"use strict";n.r(e),n.d(e,"setup",(function(){return p})),n.d(e,"speak",(function(){return u}));var o=n(324),i=n.n(o),r=n(1);function a(t="polite"){const e=document.createElement("div");e.id="a11y-speak-"+t,e.className="a11y-speak-region",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("aria-live",t),e.setAttribute("aria-relevant","additions text"),e.setAttribute("aria-atomic","true");const{body:n}=document;return n&&n.appendChild(e),e}let d="";function p(){const t=document.getElementById("a11y-speak-intro-text"),e=document.getElementById("a11y-speak-assertive"),n=document.getElementById("a11y-speak-polite");null===t&&function(){const t=document.createElement("p");t.id="a11y-speak-intro-text",t.className="a11y-speak-intro-text",t.textContent=Object(r.__)("Notifications"),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("hidden","hidden");const{body:e}=document;e&&e.appendChild(t)}(),null===e&&a("assertive"),null===n&&a("polite")}function u(t,e){!function(){const t=document.getElementsByClassName("a11y-speak-region"),e=document.getElementById("a11y-speak-intro-text");for(let e=0;e<t.length;e++)t[e].textContent="";e&&e.setAttribute("hidden","hidden")}(),t=function(t){return t=t.replace(/<[^<>]+>/g," "),d===t&&(t+=" "),d=t,t}(t);const n=document.getElementById("a11y-speak-intro-text"),o=document.getElementById("a11y-speak-assertive"),i=document.getElementById("a11y-speak-polite");o&&"assertive"===e?o.textContent=t:i&&(i.textContent=t),n&&n.removeAttribute("hidden")}i()(p)}});
1
+ window.wp=window.wp||{},window.wp.a11y=function(t){var e={};function n(o){if(e[o])return e[o].exports;var i=e[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},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 o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(o,i,function(e){return t[e]}.bind(null,i));return o},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=526)}({1:function(t,e){t.exports=window.wp.i18n},333:function(t,e){t.exports=window.wp.domReady},526:function(t,e,n){"use strict";n.r(e),n.d(e,"setup",(function(){return p})),n.d(e,"speak",(function(){return u}));var o=n(333),i=n.n(o),r=n(1);function a(t="polite"){const e=document.createElement("div");e.id="a11y-speak-"+t,e.className="a11y-speak-region",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("aria-live",t),e.setAttribute("aria-relevant","additions text"),e.setAttribute("aria-atomic","true");const{body:n}=document;return n&&n.appendChild(e),e}let d="";function p(){const t=document.getElementById("a11y-speak-intro-text"),e=document.getElementById("a11y-speak-assertive"),n=document.getElementById("a11y-speak-polite");null===t&&function(){const t=document.createElement("p");t.id="a11y-speak-intro-text",t.className="a11y-speak-intro-text",t.textContent=Object(r.__)("Notifications"),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("hidden","hidden");const{body:e}=document;e&&e.appendChild(t)}(),null===e&&a("assertive"),null===n&&a("polite")}function u(t,e){!function(){const t=document.getElementsByClassName("a11y-speak-region"),e=document.getElementById("a11y-speak-intro-text");for(let e=0;e<t.length;e++)t[e].textContent="";e&&e.setAttribute("hidden","hidden")}(),t=function(t){return t=t.replace(/<[^<>]+>/g," "),d===t&&(t+=" "),d=t,t}(t);const n=document.getElementById("a11y-speak-intro-text"),o=document.getElementById("a11y-speak-assertive"),i=document.getElementById("a11y-speak-polite");o&&"assertive"===e?o.textContent=t:i&&(i.textContent=t),n&&n.removeAttribute("hidden")}i()(p)}});
build/admin-manifest/index.js CHANGED
@@ -82,12 +82,12 @@ window["wp"] = window["wp"] || {}; window["wp"]["adminManifest"] =
82
  /******/
83
  /******/
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 367);
86
  /******/ })
87
  /************************************************************************/
88
  /******/ ({
89
 
90
- /***/ 367:
91
  /***/ (function(module, exports) {
92
 
93
  function addManifest(manifest) {
@@ -179,6 +179,22 @@ function createIcon({
179
  });
180
  };
181
  });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
182
  } // eslint-disable-next-line @wordpress/no-global-event-listener
183
 
184
 
@@ -202,11 +218,10 @@ window.addEventListener('load', () => {
202
  scope: adminUrl,
203
  icons: []
204
  };
205
- const adminBar = document.getElementById('wpadminbar');
206
  const {
207
  color,
208
  backgroundColor
209
- } = window.getComputedStyle(adminBar);
210
  const svgElement = createSvgElement(logo);
211
  Promise.all([// The maskable icon should have its background filled. This is used
212
  // for iOS. To do: check which sizes are really needed.
82
  /******/
83
  /******/
84
  /******/ // Load entry module and return exports
85
+ /******/ return __webpack_require__(__webpack_require__.s = 377);
86
  /******/ })
87
  /************************************************************************/
88
  /******/ ({
89
 
90
+ /***/ 377:
91
  /***/ (function(module, exports) {
92
 
93
  function addManifest(manifest) {
179
  });
180
  };
181
  });
182
+ }
183
+
184
+ function getAdminBarColors() {
185
+ const adminBarDummy = document.createElement('div');
186
+ adminBarDummy.id = 'wpadminbar';
187
+ document.body.appendChild(adminBarDummy);
188
+ const {
189
+ color,
190
+ backgroundColor
191
+ } = window.getComputedStyle(adminBarDummy);
192
+ document.body.removeChild(adminBarDummy); // Fall back to black and white if no admin/color stylesheet was loaded.
193
+
194
+ return {
195
+ color: color || 'white',
196
+ backgroundColor: backgroundColor || 'black'
197
+ };
198
  } // eslint-disable-next-line @wordpress/no-global-event-listener
199
 
200
 
218
  scope: adminUrl,
219
  icons: []
220
  };
 
221
  const {
222
  color,
223
  backgroundColor
224
+ } = getAdminBarColors();
225
  const svgElement = createSvgElement(logo);
226
  Promise.all([// The maskable icon should have its background filled. This is used
227
  // for iOS. To do: check which sizes are really needed.
build/admin-manifest/index.min.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('wp-polyfill'), 'version' => '23d4bcb51176c98aa658b2c1629e6531');
1
+ <?php return array('dependencies' => array('wp-polyfill'), 'version' => 'ba6e8d730b64692df53ec18d8e0ab7c9');
build/admin-manifest/index.min.js CHANGED
@@ -1 +1 @@
1
- window.wp=window.wp||{},window.wp.adminManifest=function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=367)}({367:function(e,t){function n({svgElement:e,size:t,color:n,backgroundColor:o,circle:r}){return new Promise(i=>{const l=document.createElement("canvas"),a=l.getContext("2d"),c=t/8,d=6*c;e.setAttribute("width",d),e.setAttribute("height",d),e.querySelectorAll("path").forEach(e=>{e.setAttribute("fill",o)}),l.width=t,l.height=t,r||(a.fillStyle=o,a.fillRect(0,0,l.width,l.height)),a.fillStyle=n,a.beginPath(),a.arc(t/2,t/2,d/2-1,0,2*Math.PI),a.closePath(),a.fill();const s=new window.Blob([e.outerHTML],{type:"image/svg+xml"}),u=URL.createObjectURL(s),m=document.createElement("img");m.src=u,m.width=d,m.height=d,m.onload=()=>{a.drawImage(m,c,c),l.toBlob(e=>{URL.revokeObjectURL(u);const t=new window.FileReader;t.readAsDataURL(e),t.onloadend=()=>{i(t.result)}})}})}window.addEventListener("load",()=>{if(!("serviceWorker"in window.navigator))return;const{logo:e,siteTitle:t,adminUrl:o}=window.wpAdminManifestL10n,r={name:t,display:"standalone",orientation:"portrait",start_url:o,scope:o,icons:[]},i=document.getElementById("wpadminbar"),{color:l,backgroundColor:a}=window.getComputedStyle(i),c=function(e){const t=document.implementation.createHTMLDocument("");t.body.innerHTML=e;const{firstElementChild:n}=t.body;return n.setAttribute("viewBox","0 0 80 80"),n}(e);Promise.all([...[180,192,512].map(e=>n({svgElement:c,size:e,color:l,backgroundColor:a}).then(t=>{r.icons.push({src:t,sizes:e+"x"+e,type:"image/png",purpose:"maskable"}),180===e&&function(e,t){const n=document.createElement("link");n.rel="apple-touch-icon",n.href=t,n.sizes="180x180",document.head.insertBefore(n,document.head.firstElementChild)}(0,t)})),...[180,192,512].map(e=>n({svgElement:c,size:e,color:l,backgroundColor:a,circle:!0}).then(t=>{r.icons.push({src:t,sizes:e+"x"+e,type:"image/png",purpose:"any"})}))]).then(()=>{!function(e){const t=document.createElement("link");t.rel="manifest",t.href="data:application/manifest+json,"+encodeURIComponent(JSON.stringify(e)),document.head.appendChild(t)}(r),window.navigator.serviceWorker.register(o+"?service-worker")})})}});
1
+ window.wp=window.wp||{},window.wp.adminManifest=function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=377)}({377:function(e,t){function n({svgElement:e,size:t,color:n,backgroundColor:o,circle:r}){return new Promise(i=>{const c=document.createElement("canvas"),l=c.getContext("2d"),a=t/8,d=6*a;e.setAttribute("width",d),e.setAttribute("height",d),e.querySelectorAll("path").forEach(e=>{e.setAttribute("fill",o)}),c.width=t,c.height=t,r||(l.fillStyle=o,l.fillRect(0,0,c.width,c.height)),l.fillStyle=n,l.beginPath(),l.arc(t/2,t/2,d/2-1,0,2*Math.PI),l.closePath(),l.fill();const u=new window.Blob([e.outerHTML],{type:"image/svg+xml"}),s=URL.createObjectURL(u),m=document.createElement("img");m.src=s,m.width=d,m.height=d,m.onload=()=>{l.drawImage(m,a,a),c.toBlob(e=>{URL.revokeObjectURL(s);const t=new window.FileReader;t.readAsDataURL(e),t.onloadend=()=>{i(t.result)}})}})}window.addEventListener("load",()=>{if(!("serviceWorker"in window.navigator))return;const{logo:e,siteTitle:t,adminUrl:o}=window.wpAdminManifestL10n,r={name:t,display:"standalone",orientation:"portrait",start_url:o,scope:o,icons:[]},{color:i,backgroundColor:c}=function(){const e=document.createElement("div");e.id="wpadminbar",document.body.appendChild(e);const{color:t,backgroundColor:n}=window.getComputedStyle(e);return document.body.removeChild(e),{color:t||"white",backgroundColor:n||"black"}}(),l=function(e){const t=document.implementation.createHTMLDocument("");t.body.innerHTML=e;const{firstElementChild:n}=t.body;return n.setAttribute("viewBox","0 0 80 80"),n}(e);Promise.all([...[180,192,512].map(e=>n({svgElement:l,size:e,color:i,backgroundColor:c}).then(t=>{r.icons.push({src:t,sizes:e+"x"+e,type:"image/png",purpose:"maskable"}),180===e&&function(e,t){const n=document.createElement("link");n.rel="apple-touch-icon",n.href=t,n.sizes="180x180",document.head.insertBefore(n,document.head.firstElementChild)}(0,t)})),...[180,192,512].map(e=>n({svgElement:l,size:e,color:i,backgroundColor:c,circle:!0}).then(t=>{r.icons.push({src:t,sizes:e+"x"+e,type:"image/png",purpose:"any"})}))]).then(()=>{!function(e){const t=document.createElement("link");t.rel="manifest",t.href="data:application/manifest+json,"+encodeURIComponent(JSON.stringify(e)),document.head.appendChild(t)}(r),window.navigator.serviceWorker.register(o+"?service-worker")})})}});
build/annotations/index.js CHANGED
@@ -82,7 +82,7 @@ window["wp"] = window["wp"] || {}; window["wp"]["annotations"] =
82
  /******/
83
  /******/
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 508);
86
  /******/ })
87
  /************************************************************************/
88
  /******/ ({
@@ -108,7 +108,7 @@ window["wp"] = window["wp"] || {}; window["wp"]["annotations"] =
108
 
109
  /***/ }),
110
 
111
- /***/ 200:
112
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
113
 
114
  "use strict";
@@ -204,7 +204,7 @@ function v4(options, buf, offset) {
204
 
205
  /***/ }),
206
 
207
- /***/ 30:
208
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
209
 
210
  "use strict";
@@ -493,7 +493,7 @@ function isShallowEqual( a, b, fromIndex ) {
493
 
494
  /***/ }),
495
 
496
- /***/ 508:
497
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
498
 
499
  "use strict";
@@ -886,7 +886,7 @@ function reducer_annotations(state = {}, action) {
886
  /* harmony default export */ var reducer = (reducer_annotations);
887
  //# sourceMappingURL=reducer.js.map
888
  // EXTERNAL MODULE: ./node_modules/rememo/es/rememo.js
889
- var rememo = __webpack_require__(30);
890
 
891
  // CONCATENATED MODULE: ./packages/annotations/build-module/store/selectors.js
892
  /**
@@ -976,7 +976,7 @@ function __experimentalGetAnnotations(state) {
976
  }
977
  //# sourceMappingURL=selectors.js.map
978
  // EXTERNAL MODULE: ./node_modules/uuid/dist/esm-browser/v4.js + 4 modules
979
- var v4 = __webpack_require__(200);
980
 
981
  // CONCATENATED MODULE: ./packages/annotations/build-module/store/actions.js
982
  /**
82
  /******/
83
  /******/
84
  /******/ // Load entry module and return exports
85
+ /******/ return __webpack_require__(__webpack_require__.s = 517);
86
  /******/ })
87
  /************************************************************************/
88
  /******/ ({
108
 
109
  /***/ }),
110
 
111
+ /***/ 207:
112
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
113
 
114
  "use strict";
204
 
205
  /***/ }),
206
 
207
+ /***/ 32:
208
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
209
 
210
  "use strict";
493
 
494
  /***/ }),
495
 
496
+ /***/ 517:
497
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
498
 
499
  "use strict";
886
  /* harmony default export */ var reducer = (reducer_annotations);
887
  //# sourceMappingURL=reducer.js.map
888
  // EXTERNAL MODULE: ./node_modules/rememo/es/rememo.js
889
+ var rememo = __webpack_require__(32);
890
 
891
  // CONCATENATED MODULE: ./packages/annotations/build-module/store/selectors.js
892
  /**
976
  }
977
  //# sourceMappingURL=selectors.js.map
978
  // EXTERNAL MODULE: ./node_modules/uuid/dist/esm-browser/v4.js + 4 modules
979
+ var v4 = __webpack_require__(207);
980
 
981
  // CONCATENATED MODULE: ./packages/annotations/build-module/store/actions.js
982
  /**
build/annotations/index.min.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('lodash', 'wp-data', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-rich-text'), 'version' => 'ba9367ba02fb641f3a094f92282b4ffe');
1
+ <?php return array('dependencies' => array('lodash', 'wp-data', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-rich-text'), 'version' => '70db44c29fd4d3c068c48e996fdc4ccc');
build/annotations/index.min.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=508)}({1:function(t,e){t.exports=window.wp.i18n},17:function(t,e){t.exports=window.wp.richText},2:function(t,e){t.exports=window.lodash},200: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)}},21:function(t,e){t.exports=window.wp.hooks},30: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 s(){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,s=!0;for(e=0;e<t.length;e++){if(!(c=o=t[e])||"object"!=typeof c){s=!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=s,l.set(r,u)),l.get(r)}:function(){return n},s.getDependants=e,s.clear=l,l(),s}},4:function(t,e){t.exports=window.wp.data},508:function(t,e,n){"use strict";n.r(e),n.d(e,"store",(function(){return T}));var r={};n.r(r),n.d(r,"__experimentalGetAnnotationsForBlock",(function(){return b})),n.d(r,"__experimentalGetAllAnnotationsForBlock",(function(){return x})),n.d(r,"__experimentalGetAnnotationsForRichText",(function(){return _})),n.d(r,"__experimentalGetAnnotations",(function(){return h}));var o={};n.r(o),n.d(o,"__experimentalAddAnnotation",(function(){return O})),n.d(o,"__experimentalRemoveAnnotation",(function(){return y})),n.d(o,"__experimentalUpdateAnnotationRange",(function(){return w})),n.d(o,"__experimentalRemoveAnnotationsBySource",(function(){return N}));var a=n(17),i=n(1);const u="core/annotations",c={name:"core/annotation",title:Object(i.__)("Annotation"),tagName:"mark",className:"annotation-text",attributes:{className:"class",id:"id"},edit:()=>null,__experimentalGetPropsForEditableTreePreparation:(t,{richTextIdentifier:e,blockClientId:n})=>({annotations:t(u).__experimentalGetAnnotationsForRichText(n,e)}),__experimentalCreatePrepareEditableTree:({annotations:t})=>(e,n)=>{if(0===t.length)return e;let r={formats:e,text:n};return r=function(t,e=[]){return e.forEach(e=>{let{start:n,end:r}=e;n>t.text.length&&(n=t.text.length),r>t.text.length&&(r=t.text.length);const o="annotation-text-"+e.source,i="annotation-text-"+e.id;t=Object(a.applyFormat)(t,{type:"core/annotation",attributes:{className:o,id:i}},n,r)}),t}(r,t),r.formats},__experimentalGetPropsForEditableTreeChangeHandler:t=>({removeAnnotation:t(u).__experimentalRemoveAnnotation,updateAnnotationRange:t(u).__experimentalUpdateAnnotationRange}),__experimentalCreateOnChangeEditableValue:t=>e=>{const n=function(t){const e={};return t.forEach((t,n)=>{(t=(t=t||[]).filter(t=>"core/annotation"===t.type)).forEach(t=>{let{id:r}=t.attributes;r=r.replace("annotation-text-",""),e.hasOwnProperty(r)||(e[r]={start:n}),e[r].end=n+1})}),e}(e),{removeAnnotation:r,updateAnnotationRange:o,annotations:a}=t;!function(t,e,{removeAnnotation:n,updateAnnotationRange:r}){t.forEach(t=>{const o=e[t.id];if(!o)return void n(t.id);const{start:a,end:i}=t;a===o.start&&i===o.end||r(t.id,o.start,o.end)})}(a,n,{removeAnnotation:r,updateAnnotationRange:o})}},{name:l,...s}=c;Object(a.registerFormatType)(l,s);var d=n(21),f=n(4);Object(d.addFilter)("editor.BlockListBlock","core/annotations",t=>Object(f.withSelect)((t,{clientId:e,className:n})=>({className:t(u).__experimentalGetAnnotationsForBlock(e).map(t=>"is-annotated-by-"+t.source).concat(n).filter(Boolean).join(" ")}))(t));var p=n(2);function v(t,e){const n=t.filter(e);return t.length===n.length?t:n}var m=n(30);const g=[],b=Object(m.a)((t,e)=>{var n;return(null!==(n=null==t?void 0:t[e])&&void 0!==n?n:[]).filter(t=>"block"===t.selector)},(t,e)=>{var n;return[null!==(n=null==t?void 0:t[e])&&void 0!==n?n:g]});function x(t,e){var n;return null!==(n=null==t?void 0:t[e])&&void 0!==n?n:g}const _=Object(m.a)((t,e,n)=>{var r;return(null!==(r=null==t?void 0:t[e])&&void 0!==r?r:[]).filter(t=>"range"===t.selector&&n===t.richTextIdentifier).map(t=>{const{range:e,...n}=t;return{...e,...n}})},(t,e)=>{var n;return[null!==(n=null==t?void 0:t[e])&&void 0!==n?n:g]});function h(t){return Object(p.flatMap)(t,t=>t)}var A=n(200);function O({blockClientId:t,richTextIdentifier:e=null,range:n=null,selector:r="range",source:o="default",id:a=Object(A.a)()}){const i={type:"ANNOTATION_ADD",id:a,blockClientId:t,richTextIdentifier:e,source:o,selector:r};return"range"===r&&(i.range=n),i}function y(t){return{type:"ANNOTATION_REMOVE",annotationId:t}}function w(t,e,n){return{type:"ANNOTATION_UPDATE_RANGE",annotationId:t,start:e,end:n}}function N(t){return{type:"ANNOTATION_REMOVE_SOURCE",source:t}}const T=Object(f.createReduxStore)(u,{reducer:function(t={},e){var n,r;switch(e.type){case"ANNOTATION_ADD":const o=e.blockClientId,a={id:e.id,blockClientId:o,richTextIdentifier:e.richTextIdentifier,source:e.source,selector:e.selector,range:e.range};if("range"===a.selector&&(r=a.range,!(Object(p.isNumber)(r.start)&&Object(p.isNumber)(r.end)&&r.start<=r.end)))return t;const i=null!==(n=null==t?void 0:t[o])&&void 0!==n?n:[];return{...t,[o]:[...i,a]};case"ANNOTATION_REMOVE":return Object(p.mapValues)(t,t=>v(t,t=>t.id!==e.annotationId));case"ANNOTATION_UPDATE_RANGE":return Object(p.mapValues)(t,t=>{let n=!1;const r=t.map(t=>t.id===e.annotationId?(n=!0,{...t,range:{start:e.start,end:e.end}}):t);return n?r:t});case"ANNOTATION_REMOVE_SOURCE":return Object(p.mapValues)(t,t=>v(t,t=>t.source!==e.source))}return t},selectors:r,actions:o});Object(f.register)(T)}});
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=517)}({1:function(t,e){t.exports=window.wp.i18n},17:function(t,e){t.exports=window.wp.richText},2:function(t,e){t.exports=window.lodash},207: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)}},21:function(t,e){t.exports=window.wp.hooks},32: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 s(){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,s=!0;for(e=0;e<t.length;e++){if(!(c=o=t[e])||"object"!=typeof c){s=!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=s,l.set(r,u)),l.get(r)}:function(){return n},s.getDependants=e,s.clear=l,l(),s}},4:function(t,e){t.exports=window.wp.data},517:function(t,e,n){"use strict";n.r(e),n.d(e,"store",(function(){return T}));var r={};n.r(r),n.d(r,"__experimentalGetAnnotationsForBlock",(function(){return b})),n.d(r,"__experimentalGetAllAnnotationsForBlock",(function(){return x})),n.d(r,"__experimentalGetAnnotationsForRichText",(function(){return _})),n.d(r,"__experimentalGetAnnotations",(function(){return h}));var o={};n.r(o),n.d(o,"__experimentalAddAnnotation",(function(){return O})),n.d(o,"__experimentalRemoveAnnotation",(function(){return y})),n.d(o,"__experimentalUpdateAnnotationRange",(function(){return w})),n.d(o,"__experimentalRemoveAnnotationsBySource",(function(){return N}));var a=n(17),i=n(1);const u="core/annotations",c={name:"core/annotation",title:Object(i.__)("Annotation"),tagName:"mark",className:"annotation-text",attributes:{className:"class",id:"id"},edit:()=>null,__experimentalGetPropsForEditableTreePreparation:(t,{richTextIdentifier:e,blockClientId:n})=>({annotations:t(u).__experimentalGetAnnotationsForRichText(n,e)}),__experimentalCreatePrepareEditableTree:({annotations:t})=>(e,n)=>{if(0===t.length)return e;let r={formats:e,text:n};return r=function(t,e=[]){return e.forEach(e=>{let{start:n,end:r}=e;n>t.text.length&&(n=t.text.length),r>t.text.length&&(r=t.text.length);const o="annotation-text-"+e.source,i="annotation-text-"+e.id;t=Object(a.applyFormat)(t,{type:"core/annotation",attributes:{className:o,id:i}},n,r)}),t}(r,t),r.formats},__experimentalGetPropsForEditableTreeChangeHandler:t=>({removeAnnotation:t(u).__experimentalRemoveAnnotation,updateAnnotationRange:t(u).__experimentalUpdateAnnotationRange}),__experimentalCreateOnChangeEditableValue:t=>e=>{const n=function(t){const e={};return t.forEach((t,n)=>{(t=(t=t||[]).filter(t=>"core/annotation"===t.type)).forEach(t=>{let{id:r}=t.attributes;r=r.replace("annotation-text-",""),e.hasOwnProperty(r)||(e[r]={start:n}),e[r].end=n+1})}),e}(e),{removeAnnotation:r,updateAnnotationRange:o,annotations:a}=t;!function(t,e,{removeAnnotation:n,updateAnnotationRange:r}){t.forEach(t=>{const o=e[t.id];if(!o)return void n(t.id);const{start:a,end:i}=t;a===o.start&&i===o.end||r(t.id,o.start,o.end)})}(a,n,{removeAnnotation:r,updateAnnotationRange:o})}},{name:l,...s}=c;Object(a.registerFormatType)(l,s);var d=n(21),f=n(4);Object(d.addFilter)("editor.BlockListBlock","core/annotations",t=>Object(f.withSelect)((t,{clientId:e,className:n})=>({className:t(u).__experimentalGetAnnotationsForBlock(e).map(t=>"is-annotated-by-"+t.source).concat(n).filter(Boolean).join(" ")}))(t));var p=n(2);function v(t,e){const n=t.filter(e);return t.length===n.length?t:n}var m=n(32);const g=[],b=Object(m.a)((t,e)=>{var n;return(null!==(n=null==t?void 0:t[e])&&void 0!==n?n:[]).filter(t=>"block"===t.selector)},(t,e)=>{var n;return[null!==(n=null==t?void 0:t[e])&&void 0!==n?n:g]});function x(t,e){var n;return null!==(n=null==t?void 0:t[e])&&void 0!==n?n:g}const _=Object(m.a)((t,e,n)=>{var r;return(null!==(r=null==t?void 0:t[e])&&void 0!==r?r:[]).filter(t=>"range"===t.selector&&n===t.richTextIdentifier).map(t=>{const{range:e,...n}=t;return{...e,...n}})},(t,e)=>{var n;return[null!==(n=null==t?void 0:t[e])&&void 0!==n?n:g]});function h(t){return Object(p.flatMap)(t,t=>t)}var A=n(207);function O({blockClientId:t,richTextIdentifier:e=null,range:n=null,selector:r="range",source:o="default",id:a=Object(A.a)()}){const i={type:"ANNOTATION_ADD",id:a,blockClientId:t,richTextIdentifier:e,source:o,selector:r};return"range"===r&&(i.range=n),i}function y(t){return{type:"ANNOTATION_REMOVE",annotationId:t}}function w(t,e,n){return{type:"ANNOTATION_UPDATE_RANGE",annotationId:t,start:e,end:n}}function N(t){return{type:"ANNOTATION_REMOVE_SOURCE",source:t}}const T=Object(f.createReduxStore)(u,{reducer:function(t={},e){var n,r;switch(e.type){case"ANNOTATION_ADD":const o=e.blockClientId,a={id:e.id,blockClientId:o,richTextIdentifier:e.richTextIdentifier,source:e.source,selector:e.selector,range:e.range};if("range"===a.selector&&(r=a.range,!(Object(p.isNumber)(r.start)&&Object(p.isNumber)(r.end)&&r.start<=r.end)))return t;const i=null!==(n=null==t?void 0:t[o])&&void 0!==n?n:[];return{...t,[o]:[...i,a]};case"ANNOTATION_REMOVE":return Object(p.mapValues)(t,t=>v(t,t=>t.id!==e.annotationId));case"ANNOTATION_UPDATE_RANGE":return Object(p.mapValues)(t,t=>{let n=!1;const r=t.map(t=>t.id===e.annotationId?(n=!0,{...t,range:{start:e.start,end:e.end}}):t);return n?r:t});case"ANNOTATION_REMOVE_SOURCE":return Object(p.mapValues)(t,t=>v(t,t=>t.source!==e.source))}return t},selectors:r,actions:o});Object(f.register)(T)}});
build/api-fetch/index.js CHANGED
@@ -82,7 +82,7 @@ window["wp"] = window["wp"] || {}; window["wp"]["apiFetch"] =
82
  /******/
83
  /******/
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 507);
86
  /******/ })
87
  /************************************************************************/
88
  /******/ ({
@@ -101,7 +101,7 @@ window["wp"] = window["wp"] || {}; window["wp"]["apiFetch"] =
101
 
102
  /***/ }),
103
 
104
- /***/ 507:
105
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
106
 
107
  "use strict";
82
  /******/
83
  /******/
84
  /******/ // Load entry module and return exports
85
+ /******/ return __webpack_require__(__webpack_require__.s = 516);
86
  /******/ })
87
  /************************************************************************/
88
  /******/ ({
101
 
102
  /***/ }),
103
 
104
+ /***/ 516:
105
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
106
 
107
  "use strict";
build/api-fetch/index.min.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => 'a767c9a08662f51c39fca6b8bf0e6d4e');
1
+ <?php return array('dependencies' => array('wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => '4b27c2cd741d4b9c1613148ded19587a');
build/api-fetch/index.min.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=507)}({1:function(e,t){e.exports=window.wp.i18n},20:function(e,t){e.exports=window.wp.url},507:function(e,t,r){"use strict";r.r(t);var n=r(1),o=(e,t)=>{let r,n,o=e.path;return"string"==typeof e.namespace&&"string"==typeof e.endpoint&&(r=e.namespace.replace(/^\/|\/$/g,""),n=e.endpoint.replace(/^\//,""),o=n?r+"/"+n:r),delete e.namespace,delete e.endpoint,t({...e,path:o})};function a(e){const t=e.split("?"),r=t[1],n=t[0];return r?n+"?"+r.split("&").map(e=>e.split("=")).sort((e,t)=>e[0].localeCompare(t[0])).map(e=>e.join("=")).join("&"):n}var s=r(20);const c=({path:e,url:t,...r},n)=>({...r,url:t&&Object(s.addQueryArgs)(t,n),path:e&&Object(s.addQueryArgs)(e,n)}),i=e=>e.json?e.json():Promise.reject(e),u=e=>{const{next:t}=(e=>{if(!e)return{};const t=e.match(/<([^>]+)>; rel="next"/);return t?{next:t[1]}:{}})(e.headers.get("link"));return t};var p=async(e,t)=>{if(!1===e.parse)return t(e);if(!(e=>{const t=!!e.path&&-1!==e.path.indexOf("per_page=-1"),r=!!e.url&&-1!==e.url.indexOf("per_page=-1");return t||r})(e))return t(e);const r=await O({...c(e,{per_page:100}),parse:!1}),n=await i(r);if(!Array.isArray(n))return n;let o=u(r);if(!o)return n;let a=[].concat(n);for(;o;){const t=await O({...e,path:void 0,url:o,parse:!1}),r=await i(t);a=a.concat(r),o=u(t)}return a};const d=new Set(["PATCH","PUT","DELETE"]),l="GET",f=(e,t=!0)=>Promise.resolve(((e,t=!0)=>t?204===e.status?null:e.json?e.json():Promise.reject(e):e)(e,t)).catch(e=>h(e,t));function h(e,t=!0){if(!t)throw e;return(e=>{const t={code:"invalid_json",message:Object(n.__)("The response is not a valid JSON response.")};if(!e||!e.json)throw t;return e.json().catch(()=>{throw t})})(e).then(e=>{const t={code:"unknown_error",message:Object(n.__)("An unknown error occurred.")};throw e||t})}const w={Accept:"application/json, */*;q=0.1"},m={credentials:"include"},y=[(e,t)=>("string"!=typeof e.url||Object(s.hasQueryArg)(e.url,"_locale")||(e.url=Object(s.addQueryArgs)(e.url,{_locale:"user"})),"string"!=typeof e.path||Object(s.hasQueryArg)(e.path,"_locale")||(e.path=Object(s.addQueryArgs)(e.path,{_locale:"user"})),t(e)),o,(e,t)=>{const{method:r=l}=e;return d.has(r.toUpperCase())&&(e={...e,headers:{...e.headers,"X-HTTP-Method-Override":r,"Content-Type":"application/json"},method:"POST"}),t(e)},p],g=e=>{if(e.status>=200&&e.status<300)return e;throw e};let j=e=>{const{url:t,path:r,data:o,parse:a=!0,...s}=e;let{body:c,headers:i}=e;return i={...w,...i},o&&(c=JSON.stringify(o),i["Content-Type"]="application/json"),window.fetch(t||r||window.location.href,{...m,...s,body:c,headers:i}).then(e=>Promise.resolve(e).then(g).catch(e=>h(e,a)).then(e=>f(e,a)),e=>{if(e&&"AbortError"===e.name)throw e;throw{code:"fetch_error",message:Object(n.__)("You are probably offline.")}})};function b(e){return y.reduceRight((e,t)=>r=>t(r,e),j)(e).catch(t=>"rest_cookie_invalid_nonce"!==t.code?Promise.reject(t):window.fetch(b.nonceEndpoint).then(g).then(e=>e.text()).then(t=>(b.nonceMiddleware.nonce=t,b(e))))}b.use=function(e){y.unshift(e)},b.setFetchHandler=function(e){j=e},b.createNonceMiddleware=function(e){const t=(e,r)=>{const{headers:n={}}=e;for(const o in n)if("x-wp-nonce"===o.toLowerCase()&&n[o]===t.nonce)return r(e);return r({...e,headers:{...n,"X-WP-Nonce":t.nonce}})};return t.nonce=e,t},b.createPreloadingMiddleware=function(e){const t=Object.keys(e).reduce((t,r)=>(t[a(r)]=e[r],t),{});return(e,r)=>{const{parse:n=!0}=e;if("string"==typeof e.path){const r=e.method||"GET",o=a(e.path);if("GET"===r&&t[o]){const e=t[o];return delete t[o],Promise.resolve(n?e.body:new window.Response(JSON.stringify(e.body),{status:200,statusText:"OK",headers:e.headers}))}if("OPTIONS"===r&&t[r]&&t[r][o])return Promise.resolve(n?t[r][o].body:t[r][o])}return r(e)}},b.createRootURLMiddleware=e=>(t,r)=>o(t,t=>{let n,o=t.url,a=t.path;return"string"==typeof a&&(n=e,-1!==e.indexOf("?")&&(a=a.replace("?","&")),a=a.replace(/^\//,""),"string"==typeof n&&-1!==n.indexOf("?")&&(a=a.replace("?","&")),o=n+a),r({...t,url:o})}),b.fetchAllMiddleware=p,b.mediaUploadMiddleware=(e,t)=>{if(!(e.path&&-1!==e.path.indexOf("/wp/v2/media")||e.url&&-1!==e.url.indexOf("/wp/v2/media")))return t(e);let r=0;const o=e=>(r++,t({path:`/wp/v2/media/${e}/post-process`,method:"POST",data:{action:"create-image-subsizes"},parse:!1}).catch(()=>r<5?o(e):(t({path:`/wp/v2/media/${e}?force=true`,method:"DELETE"}),Promise.reject())));return t({...e,parse:!1}).catch(t=>{const r=t.headers.get("x-wp-upload-attachment-id");return t.status>=500&&t.status<600&&r?o(r).catch(()=>!1!==e.parse?Promise.reject({code:"post_process",message:Object(n.__)("Media upload failed. If this is a photo or a large image, please scale it down and try again.")}):Promise.reject(t)):h(t,e.parse)}).then(t=>f(t,e.parse))};var O=t.default=b}}).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=516)}({1:function(e,t){e.exports=window.wp.i18n},20:function(e,t){e.exports=window.wp.url},516:function(e,t,r){"use strict";r.r(t);var n=r(1),o=(e,t)=>{let r,n,o=e.path;return"string"==typeof e.namespace&&"string"==typeof e.endpoint&&(r=e.namespace.replace(/^\/|\/$/g,""),n=e.endpoint.replace(/^\//,""),o=n?r+"/"+n:r),delete e.namespace,delete e.endpoint,t({...e,path:o})};function a(e){const t=e.split("?"),r=t[1],n=t[0];return r?n+"?"+r.split("&").map(e=>e.split("=")).sort((e,t)=>e[0].localeCompare(t[0])).map(e=>e.join("=")).join("&"):n}var s=r(20);const c=({path:e,url:t,...r},n)=>({...r,url:t&&Object(s.addQueryArgs)(t,n),path:e&&Object(s.addQueryArgs)(e,n)}),i=e=>e.json?e.json():Promise.reject(e),u=e=>{const{next:t}=(e=>{if(!e)return{};const t=e.match(/<([^>]+)>; rel="next"/);return t?{next:t[1]}:{}})(e.headers.get("link"));return t};var p=async(e,t)=>{if(!1===e.parse)return t(e);if(!(e=>{const t=!!e.path&&-1!==e.path.indexOf("per_page=-1"),r=!!e.url&&-1!==e.url.indexOf("per_page=-1");return t||r})(e))return t(e);const r=await O({...c(e,{per_page:100}),parse:!1}),n=await i(r);if(!Array.isArray(n))return n;let o=u(r);if(!o)return n;let a=[].concat(n);for(;o;){const t=await O({...e,path:void 0,url:o,parse:!1}),r=await i(t);a=a.concat(r),o=u(t)}return a};const d=new Set(["PATCH","PUT","DELETE"]),l="GET",f=(e,t=!0)=>Promise.resolve(((e,t=!0)=>t?204===e.status?null:e.json?e.json():Promise.reject(e):e)(e,t)).catch(e=>h(e,t));function h(e,t=!0){if(!t)throw e;return(e=>{const t={code:"invalid_json",message:Object(n.__)("The response is not a valid JSON response.")};if(!e||!e.json)throw t;return e.json().catch(()=>{throw t})})(e).then(e=>{const t={code:"unknown_error",message:Object(n.__)("An unknown error occurred.")};throw e||t})}const w={Accept:"application/json, */*;q=0.1"},m={credentials:"include"},y=[(e,t)=>("string"!=typeof e.url||Object(s.hasQueryArg)(e.url,"_locale")||(e.url=Object(s.addQueryArgs)(e.url,{_locale:"user"})),"string"!=typeof e.path||Object(s.hasQueryArg)(e.path,"_locale")||(e.path=Object(s.addQueryArgs)(e.path,{_locale:"user"})),t(e)),o,(e,t)=>{const{method:r=l}=e;return d.has(r.toUpperCase())&&(e={...e,headers:{...e.headers,"X-HTTP-Method-Override":r,"Content-Type":"application/json"},method:"POST"}),t(e)},p],g=e=>{if(e.status>=200&&e.status<300)return e;throw e};let j=e=>{const{url:t,path:r,data:o,parse:a=!0,...s}=e;let{body:c,headers:i}=e;return i={...w,...i},o&&(c=JSON.stringify(o),i["Content-Type"]="application/json"),window.fetch(t||r||window.location.href,{...m,...s,body:c,headers:i}).then(e=>Promise.resolve(e).then(g).catch(e=>h(e,a)).then(e=>f(e,a)),e=>{if(e&&"AbortError"===e.name)throw e;throw{code:"fetch_error",message:Object(n.__)("You are probably offline.")}})};function b(e){return y.reduceRight((e,t)=>r=>t(r,e),j)(e).catch(t=>"rest_cookie_invalid_nonce"!==t.code?Promise.reject(t):window.fetch(b.nonceEndpoint).then(g).then(e=>e.text()).then(t=>(b.nonceMiddleware.nonce=t,b(e))))}b.use=function(e){y.unshift(e)},b.setFetchHandler=function(e){j=e},b.createNonceMiddleware=function(e){const t=(e,r)=>{const{headers:n={}}=e;for(const o in n)if("x-wp-nonce"===o.toLowerCase()&&n[o]===t.nonce)return r(e);return r({...e,headers:{...n,"X-WP-Nonce":t.nonce}})};return t.nonce=e,t},b.createPreloadingMiddleware=function(e){const t=Object.keys(e).reduce((t,r)=>(t[a(r)]=e[r],t),{});return(e,r)=>{const{parse:n=!0}=e;if("string"==typeof e.path){const r=e.method||"GET",o=a(e.path);if("GET"===r&&t[o]){const e=t[o];return delete t[o],Promise.resolve(n?e.body:new window.Response(JSON.stringify(e.body),{status:200,statusText:"OK",headers:e.headers}))}if("OPTIONS"===r&&t[r]&&t[r][o])return Promise.resolve(n?t[r][o].body:t[r][o])}return r(e)}},b.createRootURLMiddleware=e=>(t,r)=>o(t,t=>{let n,o=t.url,a=t.path;return"string"==typeof a&&(n=e,-1!==e.indexOf("?")&&(a=a.replace("?","&")),a=a.replace(/^\//,""),"string"==typeof n&&-1!==n.indexOf("?")&&(a=a.replace("?","&")),o=n+a),r({...t,url:o})}),b.fetchAllMiddleware=p,b.mediaUploadMiddleware=(e,t)=>{if(!(e.path&&-1!==e.path.indexOf("/wp/v2/media")||e.url&&-1!==e.url.indexOf("/wp/v2/media")))return t(e);let r=0;const o=e=>(r++,t({path:`/wp/v2/media/${e}/post-process`,method:"POST",data:{action:"create-image-subsizes"},parse:!1}).catch(()=>r<5?o(e):(t({path:`/wp/v2/media/${e}?force=true`,method:"DELETE"}),Promise.reject())));return t({...e,parse:!1}).catch(t=>{const r=t.headers.get("x-wp-upload-attachment-id");return t.status>=500&&t.status<600&&r?o(r).catch(()=>!1!==e.parse?Promise.reject({code:"post_process",message:Object(n.__)("Media upload failed. If this is a photo or a large image, please scale it down and try again.")}):Promise.reject(t)):h(t,e.parse)}).then(t=>f(t,e.parse))};var O=t.default=b}}).default;
build/autop/index.js CHANGED
@@ -82,12 +82,12 @@ window["wp"] = window["wp"] || {}; window["wp"]["autop"] =
82
  /******/
83
  /******/
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 368);
86
  /******/ })
87
  /************************************************************************/
88
  /******/ ({
89
 
90
- /***/ 368:
91
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
92
 
93
  "use strict";
82
  /******/
83
  /******/
84
  /******/ // Load entry module and return exports
85
+ /******/ return __webpack_require__(__webpack_require__.s = 378);
86
  /******/ })
87
  /************************************************************************/
88
  /******/ ({
89
 
90
+ /***/ 378:
91
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
92
 
93
  "use strict";
build/autop/index.min.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('wp-polyfill'), 'version' => '3db69a429f6838e19cbe35304023f9e2');
1
+ <?php return array('dependencies' => array('wp-polyfill'), 'version' => 'ed37ccf3fc5cd790aaf69a8953f248c2');
build/autop/index.min.js CHANGED
@@ -1 +1 @@
1
- window.wp=window.wp||{},window.wp.autop=function(e){var n={};function r(p){if(n[p])return n[p].exports;var t=n[p]={i:p,l:!1,exports:{}};return e[p].call(t.exports,t,t.exports,r),t.l=!0,t.exports}return r.m=e,r.c=n,r.d=function(e,n,p){r.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:p})},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,n){if(1&n&&(e=r(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var p=Object.create(null);if(r.r(p),Object.defineProperty(p,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var t in e)r.d(p,t,function(n){return e[n]}.bind(null,t));return p},r.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(n,"a",n),n},r.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},r.p="",r(r.s=368)}({368:function(e,n,r){"use strict";r.r(n),r.d(n,"autop",(function(){return t})),r.d(n,"removep",(function(){return c}));const p=new RegExp("(<((?=!--|!\\[CDATA\\[)((?=!-)!(?:-(?!->)[^\\-]*)*(?:--\x3e)?|!\\[CDATA\\[[^\\]]*(?:](?!]>)[^\\]]*)*?(?:]]>)?)|[^>]*>?))");function t(e,n=!0){const r=[];if(""===e.trim())return"";if(-1!==(e+="\n").indexOf("<pre")){const n=e.split("</pre>"),p=n.pop();e="";for(let p=0;p<n.length;p++){const t=n[p],c=t.indexOf("<pre");if(-1===c){e+=t;continue}const l="<pre wp-pre-tag-"+p+"></pre>";r.push([l,t.substr(c)+"</pre>"]),e+=t.substr(0,c)+l}e+=p}const t="(?: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=function(e,n){const r=function(e){const n=[];let r,t=e;for(;r=t.match(p);){const e=r.index;n.push(t.slice(0,e)),n.push(r[0]),t=t.slice(e+r[0].length)}return t.length&&n.push(t),n}(e);let t=!1;const c=Object.keys(n);for(let e=1;e<r.length;e+=2)for(let p=0;p<c.length;p++){const l=c[p];if(-1!==r[e].indexOf(l)){r[e]=r[e].replace(new RegExp(l,"g"),n[l]),t=!0;break}}return t&&(e=r.join("")),e}(e=(e=(e=(e=e.replace(/<br\s*\/?>\s*<br\s*\/?>/g,"\n\n")).replace(new RegExp("(<"+t+"[\\s/>])","g"),"\n\n$1")).replace(new RegExp("(</"+t+">)","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>"));const c=(e=e.replace(/\n\n+/g,"\n\n")).split(/\n\s*\n/).filter(Boolean);return e="",c.forEach(n=>{e+="<p>"+n.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*(</?"+t+"[^>]*>)\\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*(</?"+t+"[^>]*>)","g"),"$1")).replace(new RegExp("(</?"+t+"[^>]*>)\\s*</p>","g"),"$1"),n&&(e=(e=(e=(e=e.replace(/<(script|style).*?<\/\\1>/g,e=>e[0].replace(/\n/g,"<WPPreserveNewline />"))).replace(/<br>|<br\/>/g,"<br />")).replace(/(<br \/>)?\s*\n/g,(e,n)=>n?e:"<br />\n")).replace(/<WPPreserveNewline \/>/g,"\n")),e=(e=(e=e.replace(new RegExp("(</?"+t+"[^>]*>)\\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>"),r.forEach(n=>{const[r,p]=n;e=e.replace(r,p)}),-1!==e.indexOf("\x3c!-- wpnl --\x3e")&&(e=e.replace(/\s?<!-- wpnl -->\s?/g,"\n")),e}function c(e){const n="blockquote|ul|ol|li|dl|dt|dd|table|thead|tbody|tfoot|tr|th|td|h[1-6]|fieldset|figure",r=n+"|div|p",p=n+"|pre",t=[];let c=!1,l=!1;return e?(-1===e.indexOf("<script")&&-1===e.indexOf("<style")||(e=e.replace(/<(script|style)[^>]*>[\s\S]*?<\/\1>/g,e=>(t.push(e),"<wp-preserve>"))),-1!==e.indexOf("<pre")&&(c=!0,e=e.replace(/<pre[^>]*>[\s\S]+?<\/pre>/g,e=>(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")&&(l=!0,e=e.replace(/\[caption[\s\S]+?\[\/caption\]/g,e=>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*</("+r+")>\\s*","g"),"</$1>\n")).replace(new RegExp("\\s*<((?:"+r+")(?: [^>]*)?)>","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,(e,n)=>n&&-1!==n.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*<((?:"+p+")(?: [^>]*)?)\\s*>","g"),"\n<$1>")).replace(new RegExp("\\s*</("+p+")>\\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,e=>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")),l&&(e=e.replace(/<wp-temp-br([^>]*)>/g,"<br$1>")),t.length&&(e=e.replace(/<wp-preserve>/g,()=>t.shift())),e):""}}});
1
+ window.wp=window.wp||{},window.wp.autop=function(e){var n={};function r(p){if(n[p])return n[p].exports;var t=n[p]={i:p,l:!1,exports:{}};return e[p].call(t.exports,t,t.exports,r),t.l=!0,t.exports}return r.m=e,r.c=n,r.d=function(e,n,p){r.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:p})},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,n){if(1&n&&(e=r(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var p=Object.create(null);if(r.r(p),Object.defineProperty(p,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var t in e)r.d(p,t,function(n){return e[n]}.bind(null,t));return p},r.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(n,"a",n),n},r.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},r.p="",r(r.s=378)}({378:function(e,n,r){"use strict";r.r(n),r.d(n,"autop",(function(){return t})),r.d(n,"removep",(function(){return c}));const p=new RegExp("(<((?=!--|!\\[CDATA\\[)((?=!-)!(?:-(?!->)[^\\-]*)*(?:--\x3e)?|!\\[CDATA\\[[^\\]]*(?:](?!]>)[^\\]]*)*?(?:]]>)?)|[^>]*>?))");function t(e,n=!0){const r=[];if(""===e.trim())return"";if(-1!==(e+="\n").indexOf("<pre")){const n=e.split("</pre>"),p=n.pop();e="";for(let p=0;p<n.length;p++){const t=n[p],c=t.indexOf("<pre");if(-1===c){e+=t;continue}const l="<pre wp-pre-tag-"+p+"></pre>";r.push([l,t.substr(c)+"</pre>"]),e+=t.substr(0,c)+l}e+=p}const t="(?: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=function(e,n){const r=function(e){const n=[];let r,t=e;for(;r=t.match(p);){const e=r.index;n.push(t.slice(0,e)),n.push(r[0]),t=t.slice(e+r[0].length)}return t.length&&n.push(t),n}(e);let t=!1;const c=Object.keys(n);for(let e=1;e<r.length;e+=2)for(let p=0;p<c.length;p++){const l=c[p];if(-1!==r[e].indexOf(l)){r[e]=r[e].replace(new RegExp(l,"g"),n[l]),t=!0;break}}return t&&(e=r.join("")),e}(e=(e=(e=(e=e.replace(/<br\s*\/?>\s*<br\s*\/?>/g,"\n\n")).replace(new RegExp("(<"+t+"[\\s/>])","g"),"\n\n$1")).replace(new RegExp("(</"+t+">)","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>"));const c=(e=e.replace(/\n\n+/g,"\n\n")).split(/\n\s*\n/).filter(Boolean);return e="",c.forEach(n=>{e+="<p>"+n.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*(</?"+t+"[^>]*>)\\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*(</?"+t+"[^>]*>)","g"),"$1")).replace(new RegExp("(</?"+t+"[^>]*>)\\s*</p>","g"),"$1"),n&&(e=(e=(e=(e=e.replace(/<(script|style).*?<\/\\1>/g,e=>e[0].replace(/\n/g,"<WPPreserveNewline />"))).replace(/<br>|<br\/>/g,"<br />")).replace(/(<br \/>)?\s*\n/g,(e,n)=>n?e:"<br />\n")).replace(/<WPPreserveNewline \/>/g,"\n")),e=(e=(e=e.replace(new RegExp("(</?"+t+"[^>]*>)\\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>"),r.forEach(n=>{const[r,p]=n;e=e.replace(r,p)}),-1!==e.indexOf("\x3c!-- wpnl --\x3e")&&(e=e.replace(/\s?<!-- wpnl -->\s?/g,"\n")),e}function c(e){const n="blockquote|ul|ol|li|dl|dt|dd|table|thead|tbody|tfoot|tr|th|td|h[1-6]|fieldset|figure",r=n+"|div|p",p=n+"|pre",t=[];let c=!1,l=!1;return e?(-1===e.indexOf("<script")&&-1===e.indexOf("<style")||(e=e.replace(/<(script|style)[^>]*>[\s\S]*?<\/\1>/g,e=>(t.push(e),"<wp-preserve>"))),-1!==e.indexOf("<pre")&&(c=!0,e=e.replace(/<pre[^>]*>[\s\S]+?<\/pre>/g,e=>(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")&&(l=!0,e=e.replace(/\[caption[\s\S]+?\[\/caption\]/g,e=>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*</("+r+")>\\s*","g"),"</$1>\n")).replace(new RegExp("\\s*<((?:"+r+")(?: [^>]*)?)>","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,(e,n)=>n&&-1!==n.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*<((?:"+p+")(?: [^>]*)?)\\s*>","g"),"\n<$1>")).replace(new RegExp("\\s*</("+p+")>\\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,e=>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")),l&&(e=e.replace(/<wp-temp-br([^>]*)>/g,"<br$1>")),t.length&&(e=e.replace(/<wp-preserve>/g,()=>t.shift())),e):""}}});
build/blob/index.js CHANGED
@@ -82,12 +82,12 @@ window["wp"] = window["wp"] || {}; window["wp"]["blob"] =
82
  /******/
83
  /******/
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 369);
86
  /******/ })
87
  /************************************************************************/
88
  /******/ ({
89
 
90
- /***/ 369:
91
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
92
 
93
  "use strict";
82
  /******/
83
  /******/
84
  /******/ // Load entry module and return exports
85
+ /******/ return __webpack_require__(__webpack_require__.s = 379);
86
  /******/ })
87
  /************************************************************************/
88
  /******/ ({
89
 
90
+ /***/ 379:
91
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
92
 
93
  "use strict";
build/blob/index.min.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('wp-polyfill'), 'version' => '518e41473b76044dd1254a076ae7c32c');
1
+ <?php return array('dependencies' => array('wp-polyfill'), 'version' => '7e721b416a67f217f963447a727fccd9');
build/blob/index.min.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=369)}({369:function(e,n,t){"use strict";t.r(n),t.d(n,"createBlobURL",(function(){return i})),t.d(n,"getBlobByURL",(function(){return c})),t.d(n,"getBlobTypeByURL",(function(){return f})),t.d(n,"revokeBlobURL",(function(){return l})),t.d(n,"isBlobURL",(function(){return d}));const{createObjectURL:r,revokeObjectURL:o}=window.URL,u={};function i(e){const n=r(e);return u[n]=e,n}function c(e){return u[e]}function f(e){var n;return null===(n=c(e))||void 0===n?void 0:n.type.split("/")[0]}function l(e){u[e]&&o(e),delete u[e]}function d(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=379)}({379:function(e,n,t){"use strict";t.r(n),t.d(n,"createBlobURL",(function(){return i})),t.d(n,"getBlobByURL",(function(){return c})),t.d(n,"getBlobTypeByURL",(function(){return f})),t.d(n,"revokeBlobURL",(function(){return l})),t.d(n,"isBlobURL",(function(){return d}));const{createObjectURL:r,revokeObjectURL:o}=window.URL,u={};function i(e){const n=r(e);return u[n]=e,n}function c(e){return u[e]}function f(e){var n;return null===(n=c(e))||void 0===n?void 0:n.type.split("/")[0]}function l(e){u[e]&&o(e),delete u[e]}function d(e){return!(!e||!e.indexOf)&&0===e.indexOf("blob:")}}});
build/block-directory/index.js CHANGED
@@ -82,7 +82,7 @@ window["wp"] = window["wp"] || {}; window["wp"]["blockDirectory"] =
82
  /******/
83
  /******/
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 500);
86
  /******/ })
87
  /************************************************************************/
88
  /******/ ({
@@ -101,7 +101,7 @@ window["wp"] = window["wp"] || {}; window["wp"]["blockDirectory"] =
101
 
102
  /***/ }),
103
 
104
- /***/ 109:
105
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
106
 
107
  "use strict";
@@ -147,7 +147,7 @@ function Icon({
147
 
148
  /***/ }),
149
 
150
- /***/ 146:
151
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
152
 
153
  "use strict";
@@ -179,7 +179,7 @@ const blockDefault = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["cre
179
 
180
  /***/ }),
181
 
182
- /***/ 190:
183
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
184
 
185
  "use strict";
@@ -204,7 +204,7 @@ const starFilled = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["creat
204
 
205
  /***/ }),
206
 
207
- /***/ 191:
208
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
209
 
210
  "use strict";
@@ -245,42 +245,42 @@ const starEmpty = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["create
245
 
246
  /***/ }),
247
 
248
- /***/ 29:
249
  /***/ (function(module, exports) {
250
 
251
- (function() { module.exports = window["wp"]["notices"]; }());
252
 
253
  /***/ }),
254
 
255
- /***/ 3:
256
  /***/ (function(module, exports) {
257
 
258
- (function() { module.exports = window["wp"]["components"]; }());
259
 
260
  /***/ }),
261
 
262
- /***/ 31:
263
  /***/ (function(module, exports) {
264
 
265
  (function() { module.exports = window["wp"]["a11y"]; }());
266
 
267
  /***/ }),
268
 
269
- /***/ 32:
270
  /***/ (function(module, exports) {
271
 
272
- (function() { module.exports = window["wp"]["apiFetch"]; }());
273
 
274
  /***/ }),
275
 
276
- /***/ 325:
277
  /***/ (function(module, exports) {
278
 
279
- (function() { module.exports = window["wp"]["editPost"]; }());
280
 
281
  /***/ }),
282
 
283
- /***/ 34:
284
  /***/ (function(module, exports) {
285
 
286
  (function() { module.exports = window["wp"]["dataControls"]; }());
@@ -294,14 +294,14 @@ const starEmpty = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["create
294
 
295
  /***/ }),
296
 
297
- /***/ 41:
298
  /***/ (function(module, exports) {
299
 
300
  (function() { module.exports = window["wp"]["htmlEntities"]; }());
301
 
302
  /***/ }),
303
 
304
- /***/ 45:
305
  /***/ (function(module, exports) {
306
 
307
  (function() { module.exports = window["wp"]["plugins"]; }());
@@ -315,7 +315,7 @@ const starEmpty = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["create
315
 
316
  /***/ }),
317
 
318
- /***/ 500:
319
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
320
 
321
  "use strict";
@@ -354,7 +354,7 @@ __webpack_require__.d(actions_namespaceObject, "clearErrorNotice", function() {
354
  var external_wp_element_ = __webpack_require__(0);
355
 
356
  // EXTERNAL MODULE: external ["wp","plugins"]
357
- var external_wp_plugins_ = __webpack_require__(45);
358
 
359
  // EXTERNAL MODULE: external ["wp","hooks"]
360
  var external_wp_hooks_ = __webpack_require__(21);
@@ -369,7 +369,7 @@ var external_wp_data_ = __webpack_require__(4);
369
  var external_wp_editor_ = __webpack_require__(18);
370
 
371
  // EXTERNAL MODULE: external ["wp","dataControls"]
372
- var external_wp_dataControls_ = __webpack_require__(34);
373
 
374
  // EXTERNAL MODULE: external "lodash"
375
  var external_lodash_ = __webpack_require__(2);
@@ -634,10 +634,10 @@ function selectors_getErrorNoticeForBlock(state, blockId) {
634
  var external_wp_i18n_ = __webpack_require__(1);
635
 
636
  // EXTERNAL MODULE: external ["wp","notices"]
637
- var external_wp_notices_ = __webpack_require__(29);
638
 
639
  // EXTERNAL MODULE: external ["wp","apiFetch"]
640
- var external_wp_apiFetch_ = __webpack_require__(32);
641
  var external_wp_apiFetch_default = /*#__PURE__*/__webpack_require__.n(external_wp_apiFetch_);
642
 
643
  // CONCATENATED MODULE: ./packages/block-directory/build-module/store/controls.js
@@ -1118,13 +1118,13 @@ var external_wp_coreData_ = __webpack_require__(12);
1118
  var esm_extends = __webpack_require__(7);
1119
 
1120
  // EXTERNAL MODULE: external ["wp","htmlEntities"]
1121
- var external_wp_htmlEntities_ = __webpack_require__(41);
1122
 
1123
  // EXTERNAL MODULE: ./packages/icons/build-module/icon/index.js
1124
- var build_module_icon = __webpack_require__(109);
1125
 
1126
  // EXTERNAL MODULE: ./packages/icons/build-module/library/star-filled.js
1127
- var star_filled = __webpack_require__(190);
1128
 
1129
  // EXTERNAL MODULE: external ["wp","primitives"]
1130
  var external_wp_primitives_ = __webpack_require__(6);
@@ -1145,7 +1145,7 @@ const starHalf = Object(external_wp_element_["createElement"])(external_wp_primi
1145
  /* harmony default export */ var star_half = (starHalf);
1146
  //# sourceMappingURL=star-half.js.map
1147
  // EXTERNAL MODULE: ./packages/icons/build-module/library/star-empty.js
1148
- var star_empty = __webpack_require__(191);
1149
 
1150
  // CONCATENATED MODULE: ./packages/block-directory/build-module/components/block-ratings/stars.js
1151
 
@@ -1477,7 +1477,7 @@ function DownloadableBlocksList({
1477
  /* harmony default export */ var downloadable_blocks_list = (DownloadableBlocksList);
1478
  //# sourceMappingURL=index.js.map
1479
  // EXTERNAL MODULE: external ["wp","a11y"]
1480
- var external_wp_a11y_ = __webpack_require__(31);
1481
 
1482
  // CONCATENATED MODULE: ./packages/block-directory/build-module/components/downloadable-blocks-panel/inserter-panel.js
1483
 
@@ -1518,7 +1518,7 @@ function DownloadableBlocksInserterPanel({
1518
  /* harmony default export */ var inserter_panel = (DownloadableBlocksInserterPanel);
1519
  //# sourceMappingURL=inserter-panel.js.map
1520
  // EXTERNAL MODULE: ./packages/icons/build-module/library/block-default.js
1521
- var block_default = __webpack_require__(146);
1522
 
1523
  // CONCATENATED MODULE: ./packages/block-directory/build-module/components/downloadable-blocks-panel/no-results.js
1524
 
@@ -1675,7 +1675,7 @@ function InserterMenuDownloadableBlocksPanel() {
1675
  /* harmony default export */ var inserter_menu_downloadable_blocks_panel = (InserterMenuDownloadableBlocksPanel);
1676
  //# sourceMappingURL=index.js.map
1677
  // EXTERNAL MODULE: external ["wp","editPost"]
1678
- var external_wp_editPost_ = __webpack_require__(325);
1679
 
1680
  // CONCATENATED MODULE: ./packages/block-directory/build-module/components/compact-list/index.js
1681
 
82
  /******/
83
  /******/
84
  /******/ // Load entry module and return exports
85
+ /******/ return __webpack_require__(__webpack_require__.s = 509);
86
  /******/ })
87
  /************************************************************************/
88
  /******/ ({
101
 
102
  /***/ }),
103
 
104
+ /***/ 113:
105
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
106
 
107
  "use strict";
147
 
148
  /***/ }),
149
 
150
+ /***/ 151:
151
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
152
 
153
  "use strict";
179
 
180
  /***/ }),
181
 
182
+ /***/ 197:
183
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
184
 
185
  "use strict";
204
 
205
  /***/ }),
206
 
207
+ /***/ 198:
208
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
209
 
210
  "use strict";
245
 
246
  /***/ }),
247
 
248
+ /***/ 3:
249
  /***/ (function(module, exports) {
250
 
251
+ (function() { module.exports = window["wp"]["components"]; }());
252
 
253
  /***/ }),
254
 
255
+ /***/ 31:
256
  /***/ (function(module, exports) {
257
 
258
+ (function() { module.exports = window["wp"]["notices"]; }());
259
 
260
  /***/ }),
261
 
262
+ /***/ 33:
263
  /***/ (function(module, exports) {
264
 
265
  (function() { module.exports = window["wp"]["a11y"]; }());
266
 
267
  /***/ }),
268
 
269
+ /***/ 334:
270
  /***/ (function(module, exports) {
271
 
272
+ (function() { module.exports = window["wp"]["editPost"]; }());
273
 
274
  /***/ }),
275
 
276
+ /***/ 34:
277
  /***/ (function(module, exports) {
278
 
279
+ (function() { module.exports = window["wp"]["apiFetch"]; }());
280
 
281
  /***/ }),
282
 
283
+ /***/ 36:
284
  /***/ (function(module, exports) {
285
 
286
  (function() { module.exports = window["wp"]["dataControls"]; }());
294
 
295
  /***/ }),
296
 
297
+ /***/ 40:
298
  /***/ (function(module, exports) {
299
 
300
  (function() { module.exports = window["wp"]["htmlEntities"]; }());
301
 
302
  /***/ }),
303
 
304
+ /***/ 49:
305
  /***/ (function(module, exports) {
306
 
307
  (function() { module.exports = window["wp"]["plugins"]; }());
315
 
316
  /***/ }),
317
 
318
+ /***/ 509:
319
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
320
 
321
  "use strict";
354
  var external_wp_element_ = __webpack_require__(0);
355
 
356
  // EXTERNAL MODULE: external ["wp","plugins"]
357
+ var external_wp_plugins_ = __webpack_require__(49);
358
 
359
  // EXTERNAL MODULE: external ["wp","hooks"]
360
  var external_wp_hooks_ = __webpack_require__(21);
369
  var external_wp_editor_ = __webpack_require__(18);
370
 
371
  // EXTERNAL MODULE: external ["wp","dataControls"]
372
+ var external_wp_dataControls_ = __webpack_require__(36);
373
 
374
  // EXTERNAL MODULE: external "lodash"
375
  var external_lodash_ = __webpack_require__(2);
634
  var external_wp_i18n_ = __webpack_require__(1);
635
 
636
  // EXTERNAL MODULE: external ["wp","notices"]
637
+ var external_wp_notices_ = __webpack_require__(31);
638
 
639
  // EXTERNAL MODULE: external ["wp","apiFetch"]
640
+ var external_wp_apiFetch_ = __webpack_require__(34);
641
  var external_wp_apiFetch_default = /*#__PURE__*/__webpack_require__.n(external_wp_apiFetch_);
642
 
643
  // CONCATENATED MODULE: ./packages/block-directory/build-module/store/controls.js
1118
  var esm_extends = __webpack_require__(7);
1119
 
1120
  // EXTERNAL MODULE: external ["wp","htmlEntities"]
1121
+ var external_wp_htmlEntities_ = __webpack_require__(40);
1122
 
1123
  // EXTERNAL MODULE: ./packages/icons/build-module/icon/index.js
1124
+ var build_module_icon = __webpack_require__(113);
1125
 
1126
  // EXTERNAL MODULE: ./packages/icons/build-module/library/star-filled.js
1127
+ var star_filled = __webpack_require__(197);
1128
 
1129
  // EXTERNAL MODULE: external ["wp","primitives"]
1130
  var external_wp_primitives_ = __webpack_require__(6);
1145
  /* harmony default export */ var star_half = (starHalf);
1146
  //# sourceMappingURL=star-half.js.map
1147
  // EXTERNAL MODULE: ./packages/icons/build-module/library/star-empty.js
1148
+ var star_empty = __webpack_require__(198);
1149
 
1150
  // CONCATENATED MODULE: ./packages/block-directory/build-module/components/block-ratings/stars.js
1151
 
1477
  /* harmony default export */ var downloadable_blocks_list = (DownloadableBlocksList);
1478
  //# sourceMappingURL=index.js.map
1479
  // EXTERNAL MODULE: external ["wp","a11y"]
1480
+ var external_wp_a11y_ = __webpack_require__(33);
1481
 
1482
  // CONCATENATED MODULE: ./packages/block-directory/build-module/components/downloadable-blocks-panel/inserter-panel.js
1483
 
1518
  /* harmony default export */ var inserter_panel = (DownloadableBlocksInserterPanel);
1519
  //# sourceMappingURL=inserter-panel.js.map
1520
  // EXTERNAL MODULE: ./packages/icons/build-module/library/block-default.js
1521
+ var block_default = __webpack_require__(151);
1522
 
1523
  // CONCATENATED MODULE: ./packages/block-directory/build-module/components/downloadable-blocks-panel/no-results.js
1524
 
1675
  /* harmony default export */ var inserter_menu_downloadable_blocks_panel = (InserterMenuDownloadableBlocksPanel);
1676
  //# sourceMappingURL=index.js.map
1677
  // EXTERNAL MODULE: external ["wp","editPost"]
1678
+ var external_wp_editPost_ = __webpack_require__(334);
1679
 
1680
  // CONCATENATED MODULE: ./packages/block-directory/build-module/components/compact-list/index.js
1681
 
build/block-directory/index.min.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' => '2a7217388d531827f936edfdf52638be');
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' => '648929ca7c54b4de667e035025d94b31');
build/block-directory/index.min.js CHANGED
@@ -1,13 +1,13 @@
1
- window.wp=window.wp||{},window.wp.blockDirectory=function(e){var t={};function n(l){if(t[l])return t[l].exports;var c=t[l]={i:l,l:!1,exports:{}};return e[l].call(c.exports,c,c.exports,n),c.l=!0,c.exports}return n.m=e,n.c=t,n.d=function(e,t,l){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:l})},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 l=Object.create(null);if(n.r(l),Object.defineProperty(l,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var c in e)n.d(l,c,function(t){return e[t]}.bind(null,c));return l},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=500)}({0:function(e,t){e.exports=window.wp.element},1:function(e,t){e.exports=window.wp.i18n},109:function(e,t,n){"use strict";var l=n(0);t.a=function({icon:e,size:t=24,...n}){return Object(l.cloneElement)(e,{width:t,height:t,...n})}},12:function(e,t){e.exports=window.wp.coreData},146:function(e,t,n){"use strict";var l=n(0),c=n(6);const o=Object(l.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.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},18:function(e,t){e.exports=window.wp.editor},190:function(e,t,n){"use strict";var l=n(0),c=n(6);const o=Object(l.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.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},191:function(e,t,n){"use strict";var l=n(0),c=n(6);const o=Object(l.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.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},2:function(e,t){e.exports=window.lodash},21:function(e,t){e.exports=window.wp.hooks},29:function(e,t){e.exports=window.wp.notices},3:function(e,t){e.exports=window.wp.components},31:function(e,t){e.exports=window.wp.a11y},32:function(e,t){e.exports=window.wp.apiFetch},325:function(e,t){e.exports=window.wp.editPost},34:function(e,t){e.exports=window.wp.dataControls},4:function(e,t){e.exports=window.wp.data},41:function(e,t){e.exports=window.wp.htmlEntities},45:function(e,t){e.exports=window.wp.plugins},5:function(e,t){e.exports=window.wp.blockEditor},500:function(e,t,n){"use strict";n.r(t),n.d(t,"store",(function(){return K}));var l={};n.r(l),n.d(l,"isRequestingDownloadableBlocks",(function(){return k})),n.d(l,"getDownloadableBlocks",(function(){return j})),n.d(l,"getInstalledBlockTypes",(function(){return f})),n.d(l,"getNewBlockTypes",(function(){return _})),n.d(l,"getUnusedBlockTypes",(function(){return w})),n.d(l,"isInstalling",(function(){return y})),n.d(l,"getErrorNotices",(function(){return E})),n.d(l,"getErrorNoticeForBlock",(function(){return g}));var c={};n.r(c),n.d(c,"fetchDownloadableBlocks",(function(){return L})),n.d(c,"receiveDownloadableBlocks",(function(){return C})),n.d(c,"installBlockType",(function(){return x})),n.d(c,"uninstallBlockType",(function(){return D})),n.d(c,"addInstalledBlockType",(function(){return P})),n.d(c,"removeInstalledBlockType",(function(){return R})),n.d(c,"setIsInstalling",(function(){return A})),n.d(c,"setErrorNotice",(function(){return M})),n.d(c,"clearErrorNotice",(function(){return F}));var o=n(0),r=n(45),a=n(21),i=n(8),s=n(4),d=n(18),b=n(34),u=n(2),m=Object(s.combineReducers)({downloadableBlocks:(e={},t)=>{switch(t.type){case"FETCH_DOWNLOADABLE_BLOCKS":return{...e,[t.filterValue]:{isRequesting:!0}};case"RECEIVE_DOWNLOADABLE_BLOCKS":return{...e,[t.filterValue]:{results:t.downloadableBlocks,isRequesting:!1}}}return e},blockManagement:(e={installedBlockTypes:[],isInstalling:{}},t)=>{switch(t.type){case"ADD_INSTALLED_BLOCK_TYPE":return{...e,installedBlockTypes:[...e.installedBlockTypes,t.item]};case"REMOVE_INSTALLED_BLOCK_TYPE":return{...e,installedBlockTypes:e.installedBlockTypes.filter(e=>e.name!==t.item.name)};case"SET_INSTALLING_BLOCK":return{...e,isInstalling:{...e.isInstalling,[t.blockId]:t.isInstalling}}}return e},errorNotices:(e={},t)=>{switch(t.type){case"SET_ERROR_NOTICE":return{...e,[t.blockId]:{message:t.message,isFatal:t.isFatal}};case"CLEAR_ERROR_NOTICE":return Object(u.omit)(e,t.blockId)}return e}}),p=n(5);function O(e,t=[]){if(!t.length)return!1;if(t.some(({name:t})=>t===e.name))return!0;for(let n=0;n<t.length;n++)if(O(e,t[n].innerBlocks))return!0;return!1}function k(e,t){return!(!e.downloadableBlocks[t]||!e.downloadableBlocks[t].isRequesting)&&e.downloadableBlocks[t].isRequesting}function j(e,t){return e.downloadableBlocks[t]&&e.downloadableBlocks[t].results?e.downloadableBlocks[t].results:[]}function f(e){return e.blockManagement.installedBlockTypes}const _=Object(s.createRegistrySelector)(e=>t=>{const n=e(p.store).getBlocks();return f(t).filter(e=>O(e,n))}),w=Object(s.createRegistrySelector)(e=>t=>{const n=e(p.store).getBlocks();return f(t).filter(e=>!O(e,n))});function y(e,t){return e.blockManagement.isInstalling[t]||!1}function E(e){return e.errorNotices}function g(e,t){return e.errorNotices[t]}var h=n(1),v=n(29),B=n(32),N=n.n(B);const I=e=>new Promise((t,n)=>{const l=document.createElement(e.nodeName);["id","rel","src","href","type"].forEach(t=>{e[t]&&(l[t]=e[t])}),e.innerHTML&&l.appendChild(document.createTextNode(e.innerHTML)),l.onload=()=>t(!0),l.onerror=()=>n(new Error("Error loading asset.")),document.body.appendChild(l),("link"===l.nodeName.toLowerCase()||"script"===l.nodeName.toLowerCase()&&!l.src)&&t()});var T={async LOAD_ASSETS(){const e=await N()({url:document.location.href,parse:!1}),t=await e.text(),n=(new window.DOMParser).parseFromString(t,"text/html"),l=Array.from(n.querySelectorAll('link[rel="stylesheet"],script')).filter(e=>e.id&&!document.getElementById(e.id));for(const e of l)await I(e)}};function S(e){if(!e)return!1;const t=e.links["wp:plugin"]||e.links.self;return!(!t||!t.length)&&t[0].href}function L(e){return{type:"FETCH_DOWNLOADABLE_BLOCKS",filterValue:e}}function C(e,t){return{type:"RECEIVE_DOWNLOADABLE_BLOCKS",downloadableBlocks:e,filterValue:t}}function*x(e){const{id:t,assets:n}=e;let l=!1;yield F(t);try{yield A(e.id,!0);const t=S(e);let c={};if(t?yield Object(b.apiFetch)({url:t,data:{status:"active"},method:"PUT"}):c=(yield Object(b.apiFetch)({path:"wp/v2/plugins",data:{slug:e.id,status:"active"},method:"POST"}))._links,yield P({...e,links:{...e.links,...c}}),yield function(e){return{type:"LOAD_ASSETS",assets:e}}(n),!(yield s.controls.select(i.store.name,"getBlockTypes")).some(t=>t.name===e.name))throw new Error(Object(h.__)("Error registering block. Try reloading the page."));yield s.controls.dispatch(v.store,"createInfoNotice",Object(h.sprintf)(// translators: %s is the block title.
2
- Object(h.__)("Block %s installed and added."),e.title),{speak:!0,type:"snackbar"}),l=!0}catch(e){let n=e.message||Object(h.__)("An error occurred."),l=e instanceof Error;const c={folder_exists:Object(h.__)("This block is already installed. Try reloading the page."),unable_to_connect_to_filesystem:Object(h.__)("Error installing block. You can reload the page and try again.")};c[e.code]&&(l=!0,n=c[e.code]),yield M(t,n,l),yield s.controls.dispatch(v.store,"createErrorNotice",n,{speak:!0,isDismissible:!0})}return yield A(e.id,!1),l}function*D(e){try{yield Object(b.apiFetch)({url:S(e),data:{status:"inactive"},method:"PUT"}),yield Object(b.apiFetch)({url:S(e),method:"DELETE"}),yield R(e)}catch(e){yield s.controls.dispatch(v.store,"createErrorNotice",e.message||Object(h.__)("An error occurred."))}}function P(e){return{type:"ADD_INSTALLED_BLOCK_TYPE",item:e}}function R(e){return{type:"REMOVE_INSTALLED_BLOCK_TYPE",item:e}}function A(e,t){return{type:"SET_INSTALLING_BLOCK",blockId:e,isInstalling:t}}function M(e,t,n=!1){return{type:"SET_ERROR_NOTICE",blockId:e,message:t,isFatal:n}}function F(e){return{type:"CLEAR_ERROR_NOTICE",blockId:e}}var V={*getDownloadableBlocks(e){if(e)try{yield L(e);const t=(yield Object(b.apiFetch)({path:"wp/v2/block-directory/search?term="+e})).map(e=>Object(u.mapKeys)(e,(e,t)=>Object(u.camelCase)(t)));yield C(t,e)}catch(e){}}};const H={reducer:m,selectors:l,actions:c,controls:{...b.controls,...T},resolvers:V},K=Object(s.createReduxStore)("core/block-directory",H);function z(){const{uninstallBlockType:e}=Object(s.useDispatch)(K),t=Object(s.useSelect)(e=>{const{isAutosavingPost:t,isSavingPost:n}=e(d.store);return n()&&!t()},[]),n=Object(s.useSelect)(e=>e(K).getUnusedBlockTypes(),[]);return Object(o.useEffect)(()=>{t&&n.length&&n.forEach(t=>{e(t),Object(i.unregisterBlockType)(t.name)})},[t]),null}Object(s.register)(K);var q=n(3),Y=n(9),$=n(12),U=n(7),G=n(41),W=n(109),J=n(190),Q=n(6),X=Object(o.createElement)(Q.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(Q.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"})),Z=n(191),ee=function({rating:e}){const t=.5*Math.round(e/.5),n=Math.floor(e),l=Math.ceil(e-n),c=5-(n+l);return Object(o.createElement)("span",{"aria-label":Object(h.sprintf)(
3
  /* translators: %s: number of stars. */
4
  Object(h.__)("%s out of 5 stars"),t)},Object(u.times)(n,e=>Object(o.createElement)(W.a,{key:"full_stars_"+e,className:"block-directory-block-ratings__star-full",icon:J.a,size:16})),Object(u.times)(l,e=>Object(o.createElement)(W.a,{key:"half_stars_"+e,className:"block-directory-block-ratings__star-half-full",icon:X,size:16})),Object(u.times)(c,e=>Object(o.createElement)(W.a,{key:"empty_stars_"+e,className:"block-directory-block-ratings__star-empty",icon:Z.a,size:16})))},te=({rating:e})=>Object(o.createElement)("span",{className:"block-directory-block-ratings"},Object(o.createElement)(ee,{rating:e})),ne=function({icon:e}){const t="block-directory-downloadable-block-icon";return null!==e.match(/\.(jpeg|jpg|gif|png|svg)(?:\?.*)?$/)?Object(o.createElement)("img",{className:t,src:e,alt:""}):Object(o.createElement)(p.BlockIcon,{className:t,icon:e,showColors:!0})},le=({block:e})=>{const t=Object(s.useSelect)(t=>t(K).getErrorNoticeForBlock(e.id),[e]);return t?Object(o.createElement)("div",{className:"block-directory-downloadable-block-notice"},Object(o.createElement)("div",{className:"block-directory-downloadable-block-notice__content"},t.message,t.isFatal?" "+Object(h.__)("Try reloading the page."):null)):null};function ce({title:e,rating:t,ratingCount:n},{hasNotice:l,isInstalled:c,isInstalling:o}){const r=.5*Math.round(t/.5);return!c&&l?Object(h.sprintf)("Retry installing %s.",Object(G.decodeEntities)(e)):c?Object(h.sprintf)("Add %s.",Object(G.decodeEntities)(e)):o?Object(h.sprintf)("Installing %s.",Object(G.decodeEntities)(e)):n<1?Object(h.sprintf)("Install %s.",Object(G.decodeEntities)(e)):Object(h.sprintf)(
5
  /* translators: %1$s: block title, %2$s: average rating, %3$s: total ratings count. */
6
  Object(h._n)("Install %1$s. %2$s stars with %3$s review.","Install %1$s. %2$s stars with %3$s reviews.",n),Object(G.decodeEntities)(e),r,n)}var oe=function({composite:e,item:t,onClick:n}){const{author:l,description:c,icon:r,rating:a,title:d}=t,b=!!Object(i.getBlockType)(t.name),{hasNotice:u,isInstalling:m,isInstallable:p}=Object(s.useSelect)(e=>{const{getErrorNoticeForBlock:n,isInstalling:l}=e(K),c=n(t.id),o=c&&c.isFatal;return{hasNotice:!!c,isInstalling:l(t.id),isInstallable:!o}},[t]);let O="";return b?O=Object(h.__)("Installed!"):m&&(O=Object(h.__)("Installing…")),Object(o.createElement)(q.__unstableCompositeItem,Object(U.a)({role:"option",as:q.Button},e,{className:"block-directory-downloadable-block-list-item",onClick:e=>{e.preventDefault(),n()},isBusy:m,disabled:m||!p,label:ce(t,{hasNotice:u,isInstalled:b,isInstalling:m}),showTooltip:!0,tooltipPosition:"top center"}),Object(o.createElement)("div",{className:"block-directory-downloadable-block-list-item__icon"},Object(o.createElement)(ne,{icon:r,title:d}),m?Object(o.createElement)("span",{className:"block-directory-downloadable-block-list-item__spinner"},Object(o.createElement)(q.Spinner,null)):Object(o.createElement)(te,{rating:a})),Object(o.createElement)("span",{className:"block-directory-downloadable-block-list-item__details"},Object(o.createElement)("span",{className:"block-directory-downloadable-block-list-item__title"},Object(o.createInterpolateElement)(Object(h.sprintf)(
7
  /* translators: %1$s: block title, %2$s: author name. */
8
- Object(h.__)("%1$s <span>by %2$s</span>"),Object(G.decodeEntities)(d),l),{span:Object(o.createElement)("span",{className:"block-directory-downloadable-block-list-item__author"})})),u?Object(o.createElement)(le,{block:t}):Object(o.createElement)(o.Fragment,null,Object(o.createElement)("span",{className:"block-directory-downloadable-block-list-item__desc"},O||Object(G.decodeEntities)(c)),p&&!(b||m)&&Object(o.createElement)(q.VisuallyHidden,null,Object(h.__)("Install block")))))},re=function({items:e,onHover:t=u.noop,onSelect:n}){const l=Object(q.__unstableUseCompositeState)(),{installBlockType:c}=Object(s.useDispatch)(K);return e.length?Object(o.createElement)(q.__unstableComposite,Object(U.a)({},l,{role:"listbox",className:"block-directory-downloadable-blocks-list","aria-label":Object(h.__)("Blocks available for install")}),e.map(e=>Object(o.createElement)(oe,{key:e.id,composite:l,onClick:()=>{Object(i.getBlockType)(e.name)?n(e):c(e).then(t=>{t&&n(e)}),t(null)},onHover:t,item:e}))):null},ae=n(31),ie=function({children:e,downloadableItems:t,hasLocalBlocks:n}){const l=t.length;return Object(o.useEffect)(()=>{Object(ae.speak)(Object(h.sprintf)(
9
  /* translators: %d: number of available blocks. */
10
- Object(h._n)("%d additional block is available to install.","%d additional blocks are available to install.",l),l))},[l]),Object(o.createElement)(o.Fragment,null,!n&&Object(o.createElement)("p",{className:"block-directory-downloadable-blocks-panel__no-local"},Object(h.__)("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(h.__)("Available to install")),Object(o.createElement)("p",{className:"block-directory-downloadable-blocks-panel__description"},Object(h.__)("Select a block to install and add it to your post."))),e))},se=n(146),de=function(){return Object(o.createElement)("div",{className:"block-editor-inserter__no-results"},Object(o.createElement)(W.a,{className:"block-editor-inserter__no-results-icon",icon:se.a}),Object(o.createElement)("p",null,Object(h.__)("No results found.")))},be=Object(Y.compose)([Object(s.withSelect)((e,{filterValue:t,rootClientId:n=null})=>{const{getDownloadableBlocks:l,isRequestingDownloadableBlocks:c}=e(K),{canInsertBlockType:o}=e(p.store),r=e($.store).canUser("read","block-directory/search");return{downloadableItems:r?l(t).filter(e=>o(e,n,!0)):[],hasPermission:r,isLoading:c(t)}})])((function({downloadableItems:e,onSelect:t,onHover:n,hasLocalBlocks:l,hasPermission:c,isLoading:r,isTyping:a}){return void 0===c||r||a?Object(o.createElement)(o.Fragment,null,c&&!l&&Object(o.createElement)(o.Fragment,null,Object(o.createElement)("p",{className:"block-directory-downloadable-blocks-panel__no-local"},Object(h.__)("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)(q.Spinner,null))):!1===c?l?null:Object(o.createElement)(de,null):e.length?Object(o.createElement)(ie,{downloadableItems:e,hasLocalBlocks:l},Object(o.createElement)(re,{items:e,onSelect:t,onHover:n})):!l&&Object(o.createElement)(de,null)})),ue=function(){const[e,t]=Object(o.useState)(""),n=Object(u.debounce)(t,400);return Object(o.createElement)(p.__unstableInserterMenuExtension,null,({onSelect:t,onHover:l,filterValue:c,hasItems:r,rootClientId:a})=>(e!==c&&n(c),e?Object(o.createElement)(be,{onSelect:t,onHover:l,rootClientId:a,filterValue:e,hasLocalBlocks:r,isTyping:c!==e}):null))},me=n(325);function pe({items:e}){return e.length?Object(o.createElement)("ul",{className:"block-directory-compact-list"},e.map(({icon:e,id:t,title:n,author:l})=>Object(o.createElement)("li",{key:t,className:"block-directory-compact-list__item"},Object(o.createElement)(ne,{icon:e,title:n}),Object(o.createElement)("div",{className:"block-directory-compact-list__item-details"},Object(o.createElement)("div",{className:"block-directory-compact-list__item-title"},n),Object(o.createElement)("div",{className:"block-directory-compact-list__item-author"},Object(h.sprintf)(
11
  /* translators: %s: Name of the block author. */
12
  Object(h.__)("By %s"),l)))))):null}function Oe(){const e=Object(s.useSelect)(e=>e(K).getNewBlockTypes(),[]);return e.length?Object(o.createElement)(me.PluginPrePublishPanel,{icon:se.a,title:Object(h.sprintf)(// translators: %d: number of blocks (number).
13
  Object(h._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(h._n)("The following block has been added to your site.","The following blocks have been added to your site.",e.length)),Object(o.createElement)(pe,{items:e})):null}function ke({attributes:e,block:t,clientId:n}){const l=Object(s.useSelect)(e=>e(K).isInstalling(t.id)),{installBlockType:c}=Object(s.useDispatch)(K),{replaceBlock:r}=Object(s.useDispatch)(p.store);return Object(o.createElement)(q.Button,{onClick:()=>c(t).then(l=>{if(l){const l=Object(i.getBlockType)(t.name),[c]=Object(i.parse)(e.originalContent);c&&r(n,Object(i.createBlock)(l.name,c.attributes,c.innerBlocks))}}),disabled:l,isBusy:l,variant:"primary"},Object(h.sprintf)(
1
+ window.wp=window.wp||{},window.wp.blockDirectory=function(e){var t={};function n(l){if(t[l])return t[l].exports;var c=t[l]={i:l,l:!1,exports:{}};return e[l].call(c.exports,c,c.exports,n),c.l=!0,c.exports}return n.m=e,n.c=t,n.d=function(e,t,l){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:l})},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 l=Object.create(null);if(n.r(l),Object.defineProperty(l,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var c in e)n.d(l,c,function(t){return e[t]}.bind(null,c));return l},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=509)}({0:function(e,t){e.exports=window.wp.element},1:function(e,t){e.exports=window.wp.i18n},113:function(e,t,n){"use strict";var l=n(0);t.a=function({icon:e,size:t=24,...n}){return Object(l.cloneElement)(e,{width:t,height:t,...n})}},12:function(e,t){e.exports=window.wp.coreData},151:function(e,t,n){"use strict";var l=n(0),c=n(6);const o=Object(l.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.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},18:function(e,t){e.exports=window.wp.editor},197:function(e,t,n){"use strict";var l=n(0),c=n(6);const o=Object(l.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.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},198:function(e,t,n){"use strict";var l=n(0),c=n(6);const o=Object(l.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.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},2:function(e,t){e.exports=window.lodash},21:function(e,t){e.exports=window.wp.hooks},3:function(e,t){e.exports=window.wp.components},31:function(e,t){e.exports=window.wp.notices},33:function(e,t){e.exports=window.wp.a11y},334:function(e,t){e.exports=window.wp.editPost},34:function(e,t){e.exports=window.wp.apiFetch},36:function(e,t){e.exports=window.wp.dataControls},4:function(e,t){e.exports=window.wp.data},40:function(e,t){e.exports=window.wp.htmlEntities},49:function(e,t){e.exports=window.wp.plugins},5:function(e,t){e.exports=window.wp.blockEditor},509:function(e,t,n){"use strict";n.r(t),n.d(t,"store",(function(){return K}));var l={};n.r(l),n.d(l,"isRequestingDownloadableBlocks",(function(){return k})),n.d(l,"getDownloadableBlocks",(function(){return j})),n.d(l,"getInstalledBlockTypes",(function(){return f})),n.d(l,"getNewBlockTypes",(function(){return _})),n.d(l,"getUnusedBlockTypes",(function(){return w})),n.d(l,"isInstalling",(function(){return y})),n.d(l,"getErrorNotices",(function(){return E})),n.d(l,"getErrorNoticeForBlock",(function(){return g}));var c={};n.r(c),n.d(c,"fetchDownloadableBlocks",(function(){return L})),n.d(c,"receiveDownloadableBlocks",(function(){return C})),n.d(c,"installBlockType",(function(){return x})),n.d(c,"uninstallBlockType",(function(){return D})),n.d(c,"addInstalledBlockType",(function(){return P})),n.d(c,"removeInstalledBlockType",(function(){return R})),n.d(c,"setIsInstalling",(function(){return A})),n.d(c,"setErrorNotice",(function(){return M})),n.d(c,"clearErrorNotice",(function(){return F}));var o=n(0),r=n(49),a=n(21),i=n(8),s=n(4),d=n(18),b=n(36),u=n(2),m=Object(s.combineReducers)({downloadableBlocks:(e={},t)=>{switch(t.type){case"FETCH_DOWNLOADABLE_BLOCKS":return{...e,[t.filterValue]:{isRequesting:!0}};case"RECEIVE_DOWNLOADABLE_BLOCKS":return{...e,[t.filterValue]:{results:t.downloadableBlocks,isRequesting:!1}}}return e},blockManagement:(e={installedBlockTypes:[],isInstalling:{}},t)=>{switch(t.type){case"ADD_INSTALLED_BLOCK_TYPE":return{...e,installedBlockTypes:[...e.installedBlockTypes,t.item]};case"REMOVE_INSTALLED_BLOCK_TYPE":return{...e,installedBlockTypes:e.installedBlockTypes.filter(e=>e.name!==t.item.name)};case"SET_INSTALLING_BLOCK":return{...e,isInstalling:{...e.isInstalling,[t.blockId]:t.isInstalling}}}return e},errorNotices:(e={},t)=>{switch(t.type){case"SET_ERROR_NOTICE":return{...e,[t.blockId]:{message:t.message,isFatal:t.isFatal}};case"CLEAR_ERROR_NOTICE":return Object(u.omit)(e,t.blockId)}return e}}),p=n(5);function O(e,t=[]){if(!t.length)return!1;if(t.some(({name:t})=>t===e.name))return!0;for(let n=0;n<t.length;n++)if(O(e,t[n].innerBlocks))return!0;return!1}function k(e,t){return!(!e.downloadableBlocks[t]||!e.downloadableBlocks[t].isRequesting)&&e.downloadableBlocks[t].isRequesting}function j(e,t){return e.downloadableBlocks[t]&&e.downloadableBlocks[t].results?e.downloadableBlocks[t].results:[]}function f(e){return e.blockManagement.installedBlockTypes}const _=Object(s.createRegistrySelector)(e=>t=>{const n=e(p.store).getBlocks();return f(t).filter(e=>O(e,n))}),w=Object(s.createRegistrySelector)(e=>t=>{const n=e(p.store).getBlocks();return f(t).filter(e=>!O(e,n))});function y(e,t){return e.blockManagement.isInstalling[t]||!1}function E(e){return e.errorNotices}function g(e,t){return e.errorNotices[t]}var h=n(1),v=n(31),B=n(34),N=n.n(B);const I=e=>new Promise((t,n)=>{const l=document.createElement(e.nodeName);["id","rel","src","href","type"].forEach(t=>{e[t]&&(l[t]=e[t])}),e.innerHTML&&l.appendChild(document.createTextNode(e.innerHTML)),l.onload=()=>t(!0),l.onerror=()=>n(new Error("Error loading asset.")),document.body.appendChild(l),("link"===l.nodeName.toLowerCase()||"script"===l.nodeName.toLowerCase()&&!l.src)&&t()});var T={async LOAD_ASSETS(){const e=await N()({url:document.location.href,parse:!1}),t=await e.text(),n=(new window.DOMParser).parseFromString(t,"text/html"),l=Array.from(n.querySelectorAll('link[rel="stylesheet"],script')).filter(e=>e.id&&!document.getElementById(e.id));for(const e of l)await I(e)}};function S(e){if(!e)return!1;const t=e.links["wp:plugin"]||e.links.self;return!(!t||!t.length)&&t[0].href}function L(e){return{type:"FETCH_DOWNLOADABLE_BLOCKS",filterValue:e}}function C(e,t){return{type:"RECEIVE_DOWNLOADABLE_BLOCKS",downloadableBlocks:e,filterValue:t}}function*x(e){const{id:t,assets:n}=e;let l=!1;yield F(t);try{yield A(e.id,!0);const t=S(e);let c={};if(t?yield Object(b.apiFetch)({url:t,data:{status:"active"},method:"PUT"}):c=(yield Object(b.apiFetch)({path:"wp/v2/plugins",data:{slug:e.id,status:"active"},method:"POST"}))._links,yield P({...e,links:{...e.links,...c}}),yield function(e){return{type:"LOAD_ASSETS",assets:e}}(n),!(yield s.controls.select(i.store.name,"getBlockTypes")).some(t=>t.name===e.name))throw new Error(Object(h.__)("Error registering block. Try reloading the page."));yield s.controls.dispatch(v.store,"createInfoNotice",Object(h.sprintf)(// translators: %s is the block title.
2
+ Object(h.__)("Block %s installed and added."),e.title),{speak:!0,type:"snackbar"}),l=!0}catch(e){let n=e.message||Object(h.__)("An error occurred."),l=e instanceof Error;const c={folder_exists:Object(h.__)("This block is already installed. Try reloading the page."),unable_to_connect_to_filesystem:Object(h.__)("Error installing block. You can reload the page and try again.")};c[e.code]&&(l=!0,n=c[e.code]),yield M(t,n,l),yield s.controls.dispatch(v.store,"createErrorNotice",n,{speak:!0,isDismissible:!0})}return yield A(e.id,!1),l}function*D(e){try{yield Object(b.apiFetch)({url:S(e),data:{status:"inactive"},method:"PUT"}),yield Object(b.apiFetch)({url:S(e),method:"DELETE"}),yield R(e)}catch(e){yield s.controls.dispatch(v.store,"createErrorNotice",e.message||Object(h.__)("An error occurred."))}}function P(e){return{type:"ADD_INSTALLED_BLOCK_TYPE",item:e}}function R(e){return{type:"REMOVE_INSTALLED_BLOCK_TYPE",item:e}}function A(e,t){return{type:"SET_INSTALLING_BLOCK",blockId:e,isInstalling:t}}function M(e,t,n=!1){return{type:"SET_ERROR_NOTICE",blockId:e,message:t,isFatal:n}}function F(e){return{type:"CLEAR_ERROR_NOTICE",blockId:e}}var V={*getDownloadableBlocks(e){if(e)try{yield L(e);const t=(yield Object(b.apiFetch)({path:"wp/v2/block-directory/search?term="+e})).map(e=>Object(u.mapKeys)(e,(e,t)=>Object(u.camelCase)(t)));yield C(t,e)}catch(e){}}};const H={reducer:m,selectors:l,actions:c,controls:{...b.controls,...T},resolvers:V},K=Object(s.createReduxStore)("core/block-directory",H);function z(){const{uninstallBlockType:e}=Object(s.useDispatch)(K),t=Object(s.useSelect)(e=>{const{isAutosavingPost:t,isSavingPost:n}=e(d.store);return n()&&!t()},[]),n=Object(s.useSelect)(e=>e(K).getUnusedBlockTypes(),[]);return Object(o.useEffect)(()=>{t&&n.length&&n.forEach(t=>{e(t),Object(i.unregisterBlockType)(t.name)})},[t]),null}Object(s.register)(K);var q=n(3),Y=n(9),$=n(12),U=n(7),G=n(40),W=n(113),J=n(197),Q=n(6),X=Object(o.createElement)(Q.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(Q.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"})),Z=n(198),ee=function({rating:e}){const t=.5*Math.round(e/.5),n=Math.floor(e),l=Math.ceil(e-n),c=5-(n+l);return Object(o.createElement)("span",{"aria-label":Object(h.sprintf)(
3
  /* translators: %s: number of stars. */
4
  Object(h.__)("%s out of 5 stars"),t)},Object(u.times)(n,e=>Object(o.createElement)(W.a,{key:"full_stars_"+e,className:"block-directory-block-ratings__star-full",icon:J.a,size:16})),Object(u.times)(l,e=>Object(o.createElement)(W.a,{key:"half_stars_"+e,className:"block-directory-block-ratings__star-half-full",icon:X,size:16})),Object(u.times)(c,e=>Object(o.createElement)(W.a,{key:"empty_stars_"+e,className:"block-directory-block-ratings__star-empty",icon:Z.a,size:16})))},te=({rating:e})=>Object(o.createElement)("span",{className:"block-directory-block-ratings"},Object(o.createElement)(ee,{rating:e})),ne=function({icon:e}){const t="block-directory-downloadable-block-icon";return null!==e.match(/\.(jpeg|jpg|gif|png|svg)(?:\?.*)?$/)?Object(o.createElement)("img",{className:t,src:e,alt:""}):Object(o.createElement)(p.BlockIcon,{className:t,icon:e,showColors:!0})},le=({block:e})=>{const t=Object(s.useSelect)(t=>t(K).getErrorNoticeForBlock(e.id),[e]);return t?Object(o.createElement)("div",{className:"block-directory-downloadable-block-notice"},Object(o.createElement)("div",{className:"block-directory-downloadable-block-notice__content"},t.message,t.isFatal?" "+Object(h.__)("Try reloading the page."):null)):null};function ce({title:e,rating:t,ratingCount:n},{hasNotice:l,isInstalled:c,isInstalling:o}){const r=.5*Math.round(t/.5);return!c&&l?Object(h.sprintf)("Retry installing %s.",Object(G.decodeEntities)(e)):c?Object(h.sprintf)("Add %s.",Object(G.decodeEntities)(e)):o?Object(h.sprintf)("Installing %s.",Object(G.decodeEntities)(e)):n<1?Object(h.sprintf)("Install %s.",Object(G.decodeEntities)(e)):Object(h.sprintf)(
5
  /* translators: %1$s: block title, %2$s: average rating, %3$s: total ratings count. */
6
  Object(h._n)("Install %1$s. %2$s stars with %3$s review.","Install %1$s. %2$s stars with %3$s reviews.",n),Object(G.decodeEntities)(e),r,n)}var oe=function({composite:e,item:t,onClick:n}){const{author:l,description:c,icon:r,rating:a,title:d}=t,b=!!Object(i.getBlockType)(t.name),{hasNotice:u,isInstalling:m,isInstallable:p}=Object(s.useSelect)(e=>{const{getErrorNoticeForBlock:n,isInstalling:l}=e(K),c=n(t.id),o=c&&c.isFatal;return{hasNotice:!!c,isInstalling:l(t.id),isInstallable:!o}},[t]);let O="";return b?O=Object(h.__)("Installed!"):m&&(O=Object(h.__)("Installing…")),Object(o.createElement)(q.__unstableCompositeItem,Object(U.a)({role:"option",as:q.Button},e,{className:"block-directory-downloadable-block-list-item",onClick:e=>{e.preventDefault(),n()},isBusy:m,disabled:m||!p,label:ce(t,{hasNotice:u,isInstalled:b,isInstalling:m}),showTooltip:!0,tooltipPosition:"top center"}),Object(o.createElement)("div",{className:"block-directory-downloadable-block-list-item__icon"},Object(o.createElement)(ne,{icon:r,title:d}),m?Object(o.createElement)("span",{className:"block-directory-downloadable-block-list-item__spinner"},Object(o.createElement)(q.Spinner,null)):Object(o.createElement)(te,{rating:a})),Object(o.createElement)("span",{className:"block-directory-downloadable-block-list-item__details"},Object(o.createElement)("span",{className:"block-directory-downloadable-block-list-item__title"},Object(o.createInterpolateElement)(Object(h.sprintf)(
7
  /* translators: %1$s: block title, %2$s: author name. */
8
+ Object(h.__)("%1$s <span>by %2$s</span>"),Object(G.decodeEntities)(d),l),{span:Object(o.createElement)("span",{className:"block-directory-downloadable-block-list-item__author"})})),u?Object(o.createElement)(le,{block:t}):Object(o.createElement)(o.Fragment,null,Object(o.createElement)("span",{className:"block-directory-downloadable-block-list-item__desc"},O||Object(G.decodeEntities)(c)),p&&!(b||m)&&Object(o.createElement)(q.VisuallyHidden,null,Object(h.__)("Install block")))))},re=function({items:e,onHover:t=u.noop,onSelect:n}){const l=Object(q.__unstableUseCompositeState)(),{installBlockType:c}=Object(s.useDispatch)(K);return e.length?Object(o.createElement)(q.__unstableComposite,Object(U.a)({},l,{role:"listbox",className:"block-directory-downloadable-blocks-list","aria-label":Object(h.__)("Blocks available for install")}),e.map(e=>Object(o.createElement)(oe,{key:e.id,composite:l,onClick:()=>{Object(i.getBlockType)(e.name)?n(e):c(e).then(t=>{t&&n(e)}),t(null)},onHover:t,item:e}))):null},ae=n(33),ie=function({children:e,downloadableItems:t,hasLocalBlocks:n}){const l=t.length;return Object(o.useEffect)(()=>{Object(ae.speak)(Object(h.sprintf)(
9
  /* translators: %d: number of available blocks. */
10
+ Object(h._n)("%d additional block is available to install.","%d additional blocks are available to install.",l),l))},[l]),Object(o.createElement)(o.Fragment,null,!n&&Object(o.createElement)("p",{className:"block-directory-downloadable-blocks-panel__no-local"},Object(h.__)("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(h.__)("Available to install")),Object(o.createElement)("p",{className:"block-directory-downloadable-blocks-panel__description"},Object(h.__)("Select a block to install and add it to your post."))),e))},se=n(151),de=function(){return Object(o.createElement)("div",{className:"block-editor-inserter__no-results"},Object(o.createElement)(W.a,{className:"block-editor-inserter__no-results-icon",icon:se.a}),Object(o.createElement)("p",null,Object(h.__)("No results found.")))},be=Object(Y.compose)([Object(s.withSelect)((e,{filterValue:t,rootClientId:n=null})=>{const{getDownloadableBlocks:l,isRequestingDownloadableBlocks:c}=e(K),{canInsertBlockType:o}=e(p.store),r=e($.store).canUser("read","block-directory/search");return{downloadableItems:r?l(t).filter(e=>o(e,n,!0)):[],hasPermission:r,isLoading:c(t)}})])((function({downloadableItems:e,onSelect:t,onHover:n,hasLocalBlocks:l,hasPermission:c,isLoading:r,isTyping:a}){return void 0===c||r||a?Object(o.createElement)(o.Fragment,null,c&&!l&&Object(o.createElement)(o.Fragment,null,Object(o.createElement)("p",{className:"block-directory-downloadable-blocks-panel__no-local"},Object(h.__)("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)(q.Spinner,null))):!1===c?l?null:Object(o.createElement)(de,null):e.length?Object(o.createElement)(ie,{downloadableItems:e,hasLocalBlocks:l},Object(o.createElement)(re,{items:e,onSelect:t,onHover:n})):!l&&Object(o.createElement)(de,null)})),ue=function(){const[e,t]=Object(o.useState)(""),n=Object(u.debounce)(t,400);return Object(o.createElement)(p.__unstableInserterMenuExtension,null,({onSelect:t,onHover:l,filterValue:c,hasItems:r,rootClientId:a})=>(e!==c&&n(c),e?Object(o.createElement)(be,{onSelect:t,onHover:l,rootClientId:a,filterValue:e,hasLocalBlocks:r,isTyping:c!==e}):null))},me=n(334);function pe({items:e}){return e.length?Object(o.createElement)("ul",{className:"block-directory-compact-list"},e.map(({icon:e,id:t,title:n,author:l})=>Object(o.createElement)("li",{key:t,className:"block-directory-compact-list__item"},Object(o.createElement)(ne,{icon:e,title:n}),Object(o.createElement)("div",{className:"block-directory-compact-list__item-details"},Object(o.createElement)("div",{className:"block-directory-compact-list__item-title"},n),Object(o.createElement)("div",{className:"block-directory-compact-list__item-author"},Object(h.sprintf)(
11
  /* translators: %s: Name of the block author. */
12
  Object(h.__)("By %s"),l)))))):null}function Oe(){const e=Object(s.useSelect)(e=>e(K).getNewBlockTypes(),[]);return e.length?Object(o.createElement)(me.PluginPrePublishPanel,{icon:se.a,title:Object(h.sprintf)(// translators: %d: number of blocks (number).
13
  Object(h._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(h._n)("The following block has been added to your site.","The following blocks have been added to your site.",e.length)),Object(o.createElement)(pe,{items:e})):null}function ke({attributes:e,block:t,clientId:n}){const l=Object(s.useSelect)(e=>e(K).isInstalling(t.id)),{installBlockType:c}=Object(s.useDispatch)(K),{replaceBlock:r}=Object(s.useDispatch)(p.store);return Object(o.createElement)(q.Button,{onClick:()=>c(t).then(l=>{if(l){const l=Object(i.getBlockType)(t.name),[c]=Object(i.parse)(e.originalContent);c&&r(n,Object(i.createBlock)(l.name,c.attributes,c.innerBlocks))}}),disabled:l,isBusy:l,variant:"primary"},Object(h.sprintf)(
build/block-editor/index.js CHANGED
@@ -82,7 +82,7 @@ window["wp"] = window["wp"] || {}; window["wp"]["blockEditor"] =
82
  /******/
83
  /******/
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 488);
86
  /******/ })
87
  /************************************************************************/
88
  /******/ ([
@@ -397,7 +397,7 @@ var external_lodash_ = __webpack_require__(2);
397
  var external_wp_blocks_ = __webpack_require__(8);
398
 
399
  // EXTERNAL MODULE: ./packages/block-editor/build-module/store/defaults.js
400
- var defaults = __webpack_require__(105);
401
 
402
  // CONCATENATED MODULE: ./packages/block-editor/build-module/store/array.js
403
  /**
@@ -2044,7 +2044,7 @@ function lastBlockInserted(state = {}, action) {
2044
  var external_wp_element_ = __webpack_require__(0);
2045
 
2046
  // EXTERNAL MODULE: ./node_modules/rememo/es/rememo.js
2047
- var rememo = __webpack_require__(30);
2048
 
2049
  // EXTERNAL MODULE: external ["wp","components"]
2050
  var external_wp_components_ = __webpack_require__(3);
@@ -4062,7 +4062,7 @@ function wasBlockJustInserted(state, clientId, source) {
4062
  }
4063
  //# sourceMappingURL=selectors.js.map
4064
  // EXTERNAL MODULE: external ["wp","a11y"]
4065
- var external_wp_a11y_ = __webpack_require__(31);
4066
 
4067
  // EXTERNAL MODULE: external ["wp","i18n"]
4068
  var external_wp_i18n_ = __webpack_require__(1);
@@ -4108,7 +4108,7 @@ const controls = {
4108
  /* harmony default export */ var store_controls = (controls);
4109
  //# sourceMappingURL=controls.js.map
4110
  // EXTERNAL MODULE: ./packages/block-editor/build-module/store/constants.js
4111
- var constants = __webpack_require__(40);
4112
 
4113
  // CONCATENATED MODULE: ./packages/block-editor/build-module/store/actions.js
4114
  /**
@@ -5332,14 +5332,15 @@ Object(external_wp_data_["registerStore"])(constants["a" /* STORE_NAME */], { ..
5332
  (function() { module.exports = window["wp"]["hooks"]; }());
5333
 
5334
  /***/ }),
5335
- /* 22 */
 
 
5336
  /***/ (function(module, exports) {
5337
 
5338
  (function() { module.exports = window["wp"]["dom"]; }());
5339
 
5340
  /***/ }),
5341
- /* 23 */,
5342
- /* 24 */
5343
  /***/ (function(module, exports, __webpack_require__) {
5344
 
5345
  /**
@@ -5352,32 +5353,141 @@ Object(external_wp_data_["registerStore"])(constants["a" /* STORE_NAME */], { ..
5352
  if (false) { var throwOnDirectAccess, ReactIs; } else {
5353
  // By explicitly using `prop-types` you are opting into new production behavior.
5354
  // http://fb.me/prop-types-in-prod
5355
- module.exports = __webpack_require__(169)();
5356
  }
5357
 
5358
 
5359
  /***/ }),
5360
- /* 25 */
5361
  /***/ (function(module, exports) {
5362
 
5363
- (function() { module.exports = window["wp"]["keyboardShortcuts"]; }());
5364
 
5365
  /***/ }),
5366
- /* 26 */
5367
  /***/ (function(module, exports) {
5368
 
5369
- (function() { module.exports = window["wp"]["deprecated"]; }());
5370
 
5371
  /***/ }),
5372
- /* 27 */,
5373
- /* 28 */,
5374
- /* 29 */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5375
  /***/ (function(module, exports) {
5376
 
5377
  (function() { module.exports = window["wp"]["notices"]; }());
5378
 
5379
  /***/ }),
5380
- /* 30 */
5381
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
5382
 
5383
  "use strict";
@@ -5658,26 +5768,32 @@ function isShallowEqual( a, b, fromIndex ) {
5658
 
5659
 
5660
  /***/ }),
5661
- /* 31 */
5662
  /***/ (function(module, exports) {
5663
 
5664
  (function() { module.exports = window["wp"]["a11y"]; }());
5665
 
5666
  /***/ }),
5667
- /* 32 */,
5668
- /* 33 */
5669
  /***/ (function(module, exports) {
5670
 
5671
  (function() { module.exports = window["wp"]["blob"]; }());
5672
 
5673
  /***/ }),
5674
- /* 34 */,
5675
- /* 35 */,
5676
  /* 36 */,
5677
  /* 37 */,
5678
  /* 38 */,
5679
  /* 39 */,
5680
  /* 40 */
 
 
 
 
 
 
 
 
5681
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
5682
 
5683
  "use strict";
@@ -5686,13 +5802,8 @@ const STORE_NAME = 'core/block-editor';
5686
  //# sourceMappingURL=constants.js.map
5687
 
5688
  /***/ }),
5689
- /* 41 */
5690
- /***/ (function(module, exports) {
5691
-
5692
- (function() { module.exports = window["wp"]["htmlEntities"]; }());
5693
-
5694
- /***/ }),
5695
- /* 42 */
5696
  /***/ (function(module, exports, __webpack_require__) {
5697
 
5698
  var __WEBPACK_AMD_DEFINE_RESULT__;// TinyColor v1.4.2
@@ -6892,21 +7003,21 @@ else {}
6892
 
6893
 
6894
  /***/ }),
6895
- /* 43 */,
6896
- /* 44 */,
6897
- /* 45 */,
6898
  /* 46 */,
6899
  /* 47 */,
6900
  /* 48 */,
6901
  /* 49 */,
6902
  /* 50 */,
6903
- /* 51 */
 
 
 
6904
  /***/ (function(module, exports) {
6905
 
6906
  (function() { module.exports = window["wp"]["isShallowEqual"]; }());
6907
 
6908
  /***/ }),
6909
- /* 52 */
6910
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
6911
 
6912
  "use strict";
@@ -6917,7 +7028,7 @@ else {}
6917
  /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
6918
  /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(3);
6919
  /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__);
6920
- /* harmony import */ var _wordpress_icons__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(146);
6921
 
6922
 
6923
  /**
@@ -6960,9 +7071,6 @@ function BlockIcon({
6960
  //# sourceMappingURL=index.js.map
6961
 
6962
  /***/ }),
6963
- /* 53 */,
6964
- /* 54 */,
6965
- /* 55 */,
6966
  /* 56 */,
6967
  /* 57 */,
6968
  /* 58 */,
@@ -6973,14 +7081,14 @@ function BlockIcon({
6973
  /* 63 */,
6974
  /* 64 */,
6975
  /* 65 */,
6976
- /* 66 */
 
 
6977
  /***/ (function(module, exports) {
6978
 
6979
  (function() { module.exports = window["wp"]["warning"]; }());
6980
 
6981
  /***/ }),
6982
- /* 67 */,
6983
- /* 68 */,
6984
  /* 69 */
6985
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
6986
 
@@ -7015,7 +7123,9 @@ function useBlockEditContext() {
7015
 
7016
  /***/ }),
7017
  /* 70 */,
7018
- /* 71 */
 
 
7019
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
7020
 
7021
  "use strict";
@@ -7026,7 +7136,7 @@ function useBlockEditContext() {
7026
  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
7027
  /* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9);
7028
  /* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_compose__WEBPACK_IMPORTED_MODULE_1__);
7029
- /* harmony import */ var _provider_block_refs_provider__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(165);
7030
  /**
7031
  * WordPress dependencies
7032
  */
@@ -7139,10 +7249,12 @@ function useBlockElement(clientId) {
7139
  //# sourceMappingURL=use-block-refs.js.map
7140
 
7141
  /***/ }),
7142
- /* 72 */,
7143
- /* 73 */,
7144
  /* 74 */,
7145
- /* 75 */
 
 
 
 
7146
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
7147
 
7148
  "use strict";
@@ -7159,13 +7271,13 @@ var external_lodash_ = __webpack_require__(2);
7159
  var external_wp_data_ = __webpack_require__(4);
7160
 
7161
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/provider/index.js + 1 modules
7162
- var provider = __webpack_require__(214);
7163
 
7164
  // EXTERNAL MODULE: external ["wp","components"]
7165
  var external_wp_components_ = __webpack_require__(3);
7166
 
7167
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-list/index.js + 4 modules
7168
- var block_list = __webpack_require__(101);
7169
 
7170
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-preview/live.js
7171
 
@@ -7312,14 +7424,13 @@ function BlockPreview({
7312
  //# sourceMappingURL=index.js.map
7313
 
7314
  /***/ }),
7315
- /* 76 */,
7316
- /* 77 */,
7317
- /* 78 */,
7318
- /* 79 */,
7319
  /* 80 */,
7320
  /* 81 */,
7321
  /* 82 */,
7322
- /* 83 */
 
 
 
7323
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
7324
 
7325
  "use strict";
@@ -7399,10 +7510,10 @@ function useBlockDisplayInformation(clientId) {
7399
  //# sourceMappingURL=index.js.map
7400
 
7401
  /***/ }),
7402
- /* 84 */,
7403
- /* 85 */,
7404
- /* 86 */,
7405
- /* 87 */
7406
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
7407
 
7408
  "use strict";
@@ -7421,7 +7532,7 @@ var classnames = __webpack_require__(10);
7421
  var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
7422
 
7423
  // EXTERNAL MODULE: external ["wp","a11y"]
7424
- var external_wp_a11y_ = __webpack_require__(31);
7425
 
7426
  // EXTERNAL MODULE: external ["wp","i18n"]
7427
  var external_wp_i18n_ = __webpack_require__(1);
@@ -7439,22 +7550,22 @@ var external_wp_compose_ = __webpack_require__(9);
7439
  var external_wp_blocks_ = __webpack_require__(8);
7440
 
7441
  // EXTERNAL MODULE: ./packages/icons/build-module/library/plus.js
7442
- var plus = __webpack_require__(145);
7443
 
7444
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/inserter/menu.js + 7 modules
7445
- var menu = __webpack_require__(233);
7446
 
7447
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/inserter/search-results.js
7448
- var search_results = __webpack_require__(220);
7449
 
7450
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/inserter/hooks/use-insertion-point.js
7451
- var use_insertion_point = __webpack_require__(156);
7452
 
7453
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/inserter/hooks/use-patterns-state.js
7454
- var use_patterns_state = __webpack_require__(157);
7455
 
7456
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/inserter/hooks/use-block-types-state.js
7457
- var use_block_types_state = __webpack_require__(102);
7458
 
7459
  // EXTERNAL MODULE: ./packages/block-editor/build-module/store/index.js + 5 modules
7460
  var store = __webpack_require__(13);
@@ -7862,8 +7973,9 @@ Object(external_wp_compose_["ifCondition"])(({
7862
  //# sourceMappingURL=index.js.map
7863
 
7864
  /***/ }),
7865
- /* 88 */,
7866
- /* 89 */
 
7867
  /***/ (function(module, exports) {
7868
 
7869
  // shim for using process in browser
@@ -8053,14 +8165,14 @@ process.umask = function() { return 0; };
8053
 
8054
 
8055
  /***/ }),
8056
- /* 90 */,
8057
- /* 91 */,
8058
- /* 92 */,
8059
- /* 93 */,
8060
  /* 94 */,
8061
  /* 95 */,
8062
  /* 96 */,
8063
- /* 97 */
 
 
 
 
8064
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
8065
 
8066
  "use strict";
@@ -8071,7 +8183,7 @@ process.umask = function() { return 0; };
8071
  /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_1__);
8072
  /* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8);
8073
  /* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_2__);
8074
- /* harmony import */ var _use_block_display_information__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(83);
8075
  /* harmony import */ var _store__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(13);
8076
  /**
8077
  * External dependencies
@@ -8153,10 +8265,10 @@ function BlockTitle({
8153
  //# sourceMappingURL=index.js.map
8154
 
8155
  /***/ }),
8156
- /* 98 */,
8157
- /* 99 */,
8158
- /* 100 */,
8159
- /* 101 */
8160
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
8161
 
8162
  "use strict";
@@ -8180,7 +8292,7 @@ var external_wp_data_ = __webpack_require__(4);
8180
  var external_wp_compose_ = __webpack_require__(9);
8181
 
8182
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-list/block.js + 6 modules
8183
- var block = __webpack_require__(163);
8184
 
8185
  // EXTERNAL MODULE: external "lodash"
8186
  var external_lodash_ = __webpack_require__(2);
@@ -8189,10 +8301,10 @@ var external_lodash_ = __webpack_require__(2);
8189
  var external_wp_blocks_ = __webpack_require__(8);
8190
 
8191
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/default-block-appender/index.js
8192
- var default_block_appender = __webpack_require__(149);
8193
 
8194
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/button-block-appender/index.js
8195
- var button_block_appender = __webpack_require__(137);
8196
 
8197
  // EXTERNAL MODULE: ./packages/block-editor/build-module/store/index.js + 5 modules
8198
  var store = __webpack_require__(13);
@@ -8211,20 +8323,13 @@ var store = __webpack_require__(13);
8211
 
8212
 
8213
 
8214
-
8215
  /**
8216
  * Internal dependencies
8217
  */
8218
 
8219
 
8220
 
8221
- // A Context to store the map of the appender map.
8222
-
8223
- const AppenderNodesContext = Object(external_wp_element_["createContext"])();
8224
 
8225
- function stopPropagation(event) {
8226
- event.stopPropagation();
8227
- }
8228
 
8229
  function BlockListAppender({
8230
  blockClientIds,
@@ -8280,10 +8385,7 @@ function BlockListAppender({
8280
  //
8281
  // See: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#Clicking_and_focus
8282
  , {
8283
- tabIndex: -1 // Prevent the block from being selected when the appender is
8284
- // clicked.
8285
- ,
8286
- onFocus: stopPropagation,
8287
  className: classnames_default()('block-list-appender', className)
8288
  }, appender);
8289
  }
@@ -8306,10 +8408,10 @@ function BlockListAppender({
8306
  })(BlockListAppender));
8307
  //# sourceMappingURL=index.js.map
8308
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/use-block-drop-zone/index.js
8309
- var use_block_drop_zone = __webpack_require__(219);
8310
 
8311
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-tools/insertion-point.js
8312
- var insertion_point = __webpack_require__(142);
8313
 
8314
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-list/use-in-between-inserter.js
8315
  /**
@@ -8503,7 +8605,7 @@ function usePreParsePatterns() {
8503
  }
8504
  //# sourceMappingURL=pre-parse-patterns.js.map
8505
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-list/layout.js
8506
- var block_list_layout = __webpack_require__(112);
8507
 
8508
  // EXTERNAL MODULE: external ["wp","components"]
8509
  var external_wp_components_ = __webpack_require__(3);
@@ -8513,7 +8615,7 @@ var external_wp_deprecated_ = __webpack_require__(26);
8513
  var external_wp_deprecated_default = /*#__PURE__*/__webpack_require__.n(external_wp_deprecated_);
8514
 
8515
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-tools/block-popover.js + 1 modules
8516
- var block_popover = __webpack_require__(235);
8517
 
8518
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-tools/back-compat.js
8519
 
@@ -8551,10 +8653,10 @@ function BlockToolsBackCompat({
8551
  }
8552
  //# sourceMappingURL=back-compat.js.map
8553
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-selection-clearer/index.js
8554
- var block_selection_clearer = __webpack_require__(136);
8555
 
8556
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-list/head.js
8557
- var head = __webpack_require__(154);
8558
 
8559
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-list/index.js
8560
 
@@ -8703,7 +8805,7 @@ function BlockListItems(props) {
8703
  //# sourceMappingURL=index.js.map
8704
 
8705
  /***/ }),
8706
- /* 102 */
8707
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
8708
 
8709
  "use strict";
@@ -8767,7 +8869,7 @@ const useBlockTypesState = (rootClientId, onInsert) => {
8767
  //# sourceMappingURL=use-block-types-state.js.map
8768
 
8769
  /***/ }),
8770
- /* 103 */
8771
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
8772
 
8773
  "use strict";
@@ -8788,7 +8890,7 @@ var external_lodash_ = __webpack_require__(2);
8788
  var external_wp_components_ = __webpack_require__(3);
8789
 
8790
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/use-display-block-controls/index.js
8791
- var use_display_block_controls = __webpack_require__(153);
8792
 
8793
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-controls/groups.js
8794
  /**
@@ -8918,8 +9020,8 @@ BlockFormatControls.Slot = props => {
8918
  //# sourceMappingURL=index.js.map
8919
 
8920
  /***/ }),
8921
- /* 104 */,
8922
- /* 105 */
8923
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
8924
 
8925
  "use strict";
@@ -9121,8 +9223,8 @@ const SETTINGS_DEFAULTS = {
9121
  //# sourceMappingURL=defaults.js.map
9122
 
9123
  /***/ }),
9124
- /* 106 */,
9125
- /* 107 */
9126
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
9127
 
9128
  "use strict";
@@ -9157,8 +9259,8 @@ function InserterPanel({
9157
  //# sourceMappingURL=panel.js.map
9158
 
9159
  /***/ }),
9160
- /* 108 */,
9161
- /* 109 */
9162
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
9163
 
9164
  "use strict";
@@ -9196,9 +9298,9 @@ function Icon({
9196
  //# sourceMappingURL=index.js.map
9197
 
9198
  /***/ }),
9199
- /* 110 */,
9200
- /* 111 */,
9201
- /* 112 */
9202
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
9203
 
9204
  "use strict";
@@ -9206,92 +9308,315 @@ function Icon({
9206
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return LayoutProvider; });
9207
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return useLayout; });
9208
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return LayoutStyle; });
9209
- /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
9210
- /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
 
 
 
9211
 
9212
 
9213
  /**
9214
  * WordPress dependencies
9215
  */
9216
 
 
 
 
 
 
9217
  const defaultLayout = {
9218
  type: 'default'
9219
  };
9220
- const Layout = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createContext"])(defaultLayout);
9221
-
9222
- function appendSelectors(selectors, append) {
9223
- // Ideally we shouldn't need the `.editor-styles-wrapper` increased specificity here
9224
- // The problem though is that we have a `.editor-styles-wrapper p { margin: reset; }` style
9225
- // it's used to reset the default margin added by wp-admin to paragraphs
9226
- // so we need this to be higher speficity otherwise, it won't be applied to paragraphs inside containers
9227
- // When the post editor is fully iframed, this extra classname could be removed.
9228
- return selectors.split(',').map(subselector => `.editor-styles-wrapper ${subselector} ${append}`).join(',');
9229
- }
9230
  /**
9231
  * Allows to define the layout.
9232
  */
9233
 
9234
-
9235
  const LayoutProvider = Layout.Provider;
9236
  /**
9237
  * React hook used to retrieve the layout config.
9238
  */
9239
 
9240
  function useLayout() {
9241
- return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["useContext"])(Layout);
9242
  }
9243
  function LayoutStyle({
9244
- selector,
9245
- layout = {}
9246
  }) {
9247
- const {
9248
- contentSize,
9249
- wideSize
9250
- } = layout;
9251
- let style = !!contentSize || !!wideSize ? `
9252
- ${appendSelectors(selector, '> *')} {
9253
- max-width: ${contentSize !== null && contentSize !== void 0 ? contentSize : wideSize};
9254
- margin-left: auto !important;
9255
- margin-right: auto !important;
9256
- }
9257
 
9258
- ${appendSelectors(selector, '> [data-align="wide"]')} {
9259
- max-width: ${wideSize !== null && wideSize !== void 0 ? wideSize : contentSize};
9260
- }
9261
-
9262
- ${appendSelectors(selector, '> [data-align="full"]')} {
9263
- max-width: none;
9264
- }
9265
- ` : '';
9266
- style += `
9267
- ${appendSelectors(selector, '> [data-align="left"]')} {
9268
- float: left;
9269
- margin-right: 2em;
9270
- }
9271
 
9272
- ${appendSelectors(selector, '> [data-align="right"]')} {
9273
- float: right;
9274
- margin-left: 2em;
9275
- }
9276
- `;
9277
- return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("style", null, style);
9278
  }
9279
  //# sourceMappingURL=layout.js.map
9280
 
9281
  /***/ }),
9282
- /* 113 */
9283
  /***/ (function(module, exports, __webpack_require__) {
9284
 
9285
  "use strict";
9286
 
9287
  exports.__esModule = true;
9288
- var TextareaAutosize_1 = __webpack_require__(249);
9289
  exports["default"] = TextareaAutosize_1.TextareaAutosize;
9290
 
9291
 
9292
  /***/ }),
9293
- /* 114 */,
9294
- /* 115 */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9295
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
9296
 
9297
  "use strict";
@@ -9313,13 +9638,13 @@ var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
9313
  var external_wp_keycodes_ = __webpack_require__(14);
9314
 
9315
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-icon/index.js
9316
- var block_icon = __webpack_require__(52);
9317
 
9318
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/inserter-listbox/item.js
9319
- var inserter_listbox_item = __webpack_require__(277);
9320
 
9321
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/inserter-draggable-blocks/index.js
9322
- var inserter_draggable_blocks = __webpack_require__(221);
9323
 
9324
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter-list-item/index.js
9325
 
@@ -9451,10 +9776,10 @@ function InserterListItem({
9451
  /* harmony default export */ var inserter_list_item = (Object(external_wp_element_["memo"])(InserterListItem));
9452
  //# sourceMappingURL=index.js.map
9453
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/inserter-listbox/group.js
9454
- var group = __webpack_require__(275);
9455
 
9456
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/inserter-listbox/row.js
9457
- var inserter_listbox_row = __webpack_require__(276);
9458
 
9459
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-types-list/index.js
9460
 
@@ -9508,7 +9833,8 @@ function BlockTypesList({
9508
  //# sourceMappingURL=index.js.map
9509
 
9510
  /***/ }),
9511
- /* 116 */
 
9512
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
9513
 
9514
  "use strict";
@@ -9532,16 +9858,16 @@ const check = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElem
9532
  //# sourceMappingURL=check.js.map
9533
 
9534
  /***/ }),
9535
- /* 117 */,
9536
- /* 118 */,
9537
- /* 119 */,
9538
- /* 120 */,
9539
- /* 121 */,
9540
- /* 122 */,
9541
- /* 123 */,
9542
  /* 124 */,
9543
  /* 125 */,
9544
- /* 126 */
 
 
 
 
 
 
 
9545
  /***/ (function(module, exports, __webpack_require__) {
9546
 
9547
  "use strict";
@@ -9551,12 +9877,12 @@ Object.defineProperty(exports, '__esModule', { value: true });
9551
 
9552
  function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
9553
 
9554
- var _extends = _interopDefault(__webpack_require__(192));
9555
- var _objectWithoutPropertiesLoose = _interopDefault(__webpack_require__(243));
9556
  var React = __webpack_require__(11);
9557
  var React__default = _interopDefault(React);
9558
- var _inheritsLoose = _interopDefault(__webpack_require__(244));
9559
- var _assertThisInitialized = _interopDefault(__webpack_require__(246));
9560
 
9561
  var is = {
9562
  arr: Array.isArray,
@@ -11857,7 +12183,7 @@ exports.useSprings = useSprings;
11857
 
11858
 
11859
  /***/ }),
11860
- /* 127 */
11861
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
11862
 
11863
  "use strict";
@@ -11865,6 +12191,7 @@ exports.useSprings = useSprings;
11865
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return isInsideRootBlock; });
11866
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return getBlockClientId; });
11867
  const BLOCK_SELECTOR = '.block-editor-block-list__block';
 
11868
  /**
11869
  * Returns true if two elements are contained within the same block.
11870
  *
@@ -11878,18 +12205,18 @@ function isInSameBlock(a, b) {
11878
  return a.closest(BLOCK_SELECTOR) === b.closest(BLOCK_SELECTOR);
11879
  }
11880
  /**
11881
- * Returns true if an element is considered part of the block and not its
11882
- * children.
11883
  *
11884
  * @param {Element} blockElement Block container element.
11885
  * @param {Element} element Element.
11886
  *
11887
- * @return {boolean} Whether element is in the block Element but not its
11888
- * children.
11889
  */
11890
 
11891
  function isInsideRootBlock(blockElement, element) {
11892
- const parentBlock = element.closest(BLOCK_SELECTOR);
11893
  return parentBlock === blockElement;
11894
  }
11895
  /**
@@ -11924,11 +12251,11 @@ function getBlockClientId(node) {
11924
  //# sourceMappingURL=dom.js.map
11925
 
11926
  /***/ }),
11927
- /* 128 */,
11928
- /* 129 */,
11929
- /* 130 */,
11930
- /* 131 */,
11931
- /* 132 */
11932
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
11933
 
11934
  "use strict";
@@ -11952,9 +12279,9 @@ const close = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElem
11952
  //# sourceMappingURL=close.js.map
11953
 
11954
  /***/ }),
11955
- /* 133 */,
11956
- /* 134 */,
11957
- /* 135 */
11958
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
11959
 
11960
  "use strict";
@@ -11984,7 +12311,7 @@ var external_wp_components_ = __webpack_require__(3);
11984
  var external_wp_blocks_ = __webpack_require__(8);
11985
 
11986
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-context/index.js
11987
- var block_context = __webpack_require__(147);
11988
 
11989
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-edit/edit.js
11990
 
@@ -12092,7 +12419,7 @@ function BlockEdit(props) {
12092
  //# sourceMappingURL=index.js.map
12093
 
12094
  /***/ }),
12095
- /* 136 */
12096
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
12097
 
12098
  "use strict";
@@ -12163,7 +12490,7 @@ function BlockSelectionClearer(props) {
12163
  //# sourceMappingURL=index.js.map
12164
 
12165
  /***/ }),
12166
- /* 137 */
12167
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
12168
 
12169
  "use strict";
@@ -12176,11 +12503,11 @@ function BlockSelectionClearer(props) {
12176
  /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__);
12177
  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(1);
12178
  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__);
12179
- /* harmony import */ var _wordpress_icons__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(109);
12180
- /* harmony import */ var _wordpress_icons__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(145);
12181
  /* harmony import */ var _wordpress_deprecated__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(26);
12182
  /* harmony import */ var _wordpress_deprecated__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_wordpress_deprecated__WEBPACK_IMPORTED_MODULE_6__);
12183
- /* harmony import */ var _inserter__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(87);
12184
 
12185
 
12186
  /**
@@ -12277,24 +12604,23 @@ const ButtonBlockerAppender = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE
12277
  //# sourceMappingURL=index.js.map
12278
 
12279
  /***/ }),
12280
- /* 138 */
12281
  /***/ (function(module, exports, __webpack_require__) {
12282
 
12283
  "use strict";
12284
 
12285
 
12286
- module.exports = __webpack_require__(247);
12287
 
12288
  /***/ }),
12289
- /* 139 */
12290
  /***/ (function(module, exports) {
12291
 
12292
  (function() { module.exports = window["wp"]["wordcount"]; }());
12293
 
12294
  /***/ }),
12295
- /* 140 */,
12296
- /* 141 */,
12297
- /* 142 */
12298
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
12299
 
12300
  "use strict";
@@ -12310,10 +12636,10 @@ module.exports = __webpack_require__(247);
12310
  /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__);
12311
  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(1);
12312
  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__);
12313
- /* harmony import */ var _inserter__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(87);
12314
  /* harmony import */ var _store__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(13);
12315
- /* harmony import */ var _block_list_use_block_props_use_block_refs__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(71);
12316
- /* harmony import */ var _use_popover_scroll__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(155);
12317
 
12318
 
12319
  /**
@@ -12551,14 +12877,13 @@ function InsertionPoint({
12551
  //# sourceMappingURL=insertion-point.js.map
12552
 
12553
  /***/ }),
12554
- /* 143 */
12555
  /***/ (function(module, exports) {
12556
 
12557
  (function() { module.exports = window["wp"]["shortcode"]; }());
12558
 
12559
  /***/ }),
12560
- /* 144 */,
12561
- /* 145 */
12562
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
12563
 
12564
  "use strict";
@@ -12582,7 +12907,7 @@ const plus = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createEleme
12582
  //# sourceMappingURL=plus.js.map
12583
 
12584
  /***/ }),
12585
- /* 146 */
12586
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
12587
 
12588
  "use strict";
@@ -12606,7 +12931,7 @@ const blockDefault = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["cre
12606
  //# sourceMappingURL=block-default.js.map
12607
 
12608
  /***/ }),
12609
- /* 147 */
12610
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
12611
 
12612
  "use strict";
@@ -12657,7 +12982,7 @@ function BlockContextProvider({
12657
  //# sourceMappingURL=index.js.map
12658
 
12659
  /***/ }),
12660
- /* 148 */
12661
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
12662
 
12663
  "use strict";
@@ -12665,7 +12990,7 @@ function BlockContextProvider({
12665
  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
12666
  /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3);
12667
  /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__);
12668
- /* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(158);
12669
 
12670
 
12671
  /**
@@ -12697,7 +13022,7 @@ function InserterListbox({
12697
  //# sourceMappingURL=index.js.map
12698
 
12699
  /***/ }),
12700
- /* 149 */
12701
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
12702
 
12703
  "use strict";
@@ -12705,20 +13030,26 @@ function InserterListbox({
12705
  /* unused harmony export DefaultBlockAppender */
12706
  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
12707
  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
12708
- /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1);
12709
- /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__);
12710
- /* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9);
12711
- /* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_compose__WEBPACK_IMPORTED_MODULE_2__);
12712
- /* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(8);
12713
- /* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_3__);
12714
- /* harmony import */ var _wordpress_html_entities__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(41);
12715
- /* harmony import */ var _wordpress_html_entities__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_html_entities__WEBPACK_IMPORTED_MODULE_4__);
12716
- /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(4);
12717
- /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_5__);
12718
- /* harmony import */ var _inserter__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(87);
12719
- /* harmony import */ var _store__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(13);
 
 
12720
 
12721
 
 
 
 
 
12722
  /**
12723
  * WordPress dependencies
12724
  */
@@ -12727,6 +13058,7 @@ function InserterListbox({
12727
 
12728
 
12729
 
 
12730
  /**
12731
  * Internal dependencies
12732
  */
@@ -12751,11 +13083,13 @@ function DefaultBlockAppender({
12751
  return null;
12752
  }
12753
 
12754
- const value = Object(_wordpress_html_entities__WEBPACK_IMPORTED_MODULE_4__["decodeEntities"])(placeholder) || Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Type / to choose a block');
12755
 
12756
  return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("div", {
12757
  "data-root-client-id": rootClientId || '',
12758
- className: "block-editor-default-block-appender"
 
 
12759
  }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("p", {
12760
  tabIndex: "0" // Only necessary for `useCanvasClickRedirect` to consider it
12761
  // as a target. Ideally it should consider any tabbable target,
@@ -12768,27 +13102,27 @@ function DefaultBlockAppender({
12768
  // eslint-disable-next-line jsx-a11y/no-noninteractive-element-to-interactive-role
12769
  ,
12770
  role: "button",
12771
- "aria-label": Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Add block') // The wp-block className is important for editor styles.
12772
  ,
12773
  className: "wp-block block-editor-default-block-appender__content",
12774
  onFocus: onAppend
12775
- }, showPrompt ? value : ZWNBSP), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_inserter__WEBPACK_IMPORTED_MODULE_6__[/* default */ "a"], {
12776
  rootClientId: rootClientId,
12777
  position: "bottom right",
12778
  isAppender: true,
12779
  __experimentalIsQuick: true
12780
  }));
12781
  }
12782
- /* harmony default export */ __webpack_exports__["a"] = (Object(_wordpress_compose__WEBPACK_IMPORTED_MODULE_2__["compose"])(Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_5__["withSelect"])((select, ownProps) => {
12783
  const {
12784
  getBlockCount,
12785
  getBlockName,
12786
  isBlockValid,
12787
  getSettings,
12788
  getTemplateLock
12789
- } = select(_store__WEBPACK_IMPORTED_MODULE_7__[/* store */ "a"]);
12790
  const isEmpty = !getBlockCount(ownProps.rootClientId);
12791
- const isLastBlockDefault = getBlockName(ownProps.lastBlockClientId) === Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_3__["getDefaultBlockName"])();
12792
  const isLastBlockValid = isBlockValid(ownProps.lastBlockClientId);
12793
  const {
12794
  bodyPlaceholder
@@ -12799,11 +13133,11 @@ function DefaultBlockAppender({
12799
  isLocked: !!getTemplateLock(ownProps.rootClientId),
12800
  placeholder: bodyPlaceholder
12801
  };
12802
- }), Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_5__["withDispatch"])((dispatch, ownProps) => {
12803
  const {
12804
  insertDefaultBlock,
12805
  startTyping
12806
- } = dispatch(_store__WEBPACK_IMPORTED_MODULE_7__[/* store */ "a"]);
12807
  return {
12808
  onAppend() {
12809
  const {
@@ -12818,9 +13152,9 @@ function DefaultBlockAppender({
12818
  //# sourceMappingURL=index.js.map
12819
 
12820
  /***/ }),
12821
- /* 150 */,
12822
- /* 151 */,
12823
- /* 152 */
12824
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
12825
 
12826
  "use strict";
@@ -12912,7 +13246,7 @@ function Warning({
12912
  //# sourceMappingURL=index.js.map
12913
 
12914
  /***/ }),
12915
- /* 153 */
12916
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
12917
 
12918
  "use strict";
@@ -12960,7 +13294,7 @@ function useDisplayBlockControls() {
12960
  //# sourceMappingURL=index.js.map
12961
 
12962
  /***/ }),
12963
- /* 154 */
12964
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
12965
 
12966
  "use strict";
@@ -12988,7 +13322,7 @@ Head.context = context;
12988
  //# sourceMappingURL=head.js.map
12989
 
12990
  /***/ }),
12991
- /* 155 */
12992
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
12993
 
12994
  "use strict";
@@ -13019,18 +13353,23 @@ function usePopoverScroll(scrollableRef) {
13019
  deltaY
13020
  } = event;
13021
  scrollableRef.current.scrollBy(deltaX, deltaY);
13022
- }
 
 
13023
 
13024
- node.addEventListener('wheel', onWheel);
 
 
 
13025
  return () => {
13026
- node.removeEventListener('wheel', onWheel);
13027
  };
13028
  }, [scrollableRef]);
13029
  }
13030
  //# sourceMappingURL=use-popover-scroll.js.map
13031
 
13032
  /***/ }),
13033
- /* 156 */
13034
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
13035
 
13036
  "use strict";
@@ -13042,7 +13381,7 @@ function usePopoverScroll(scrollableRef) {
13042
  /* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_2__);
13043
  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(1);
13044
  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__);
13045
- /* harmony import */ var _wordpress_a11y__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(31);
13046
  /* harmony import */ var _wordpress_a11y__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_a11y__WEBPACK_IMPORTED_MODULE_4__);
13047
  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(0);
13048
  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__);
@@ -13168,7 +13507,7 @@ function useInsertionPoint({
13168
  //# sourceMappingURL=use-insertion-point.js.map
13169
 
13170
  /***/ }),
13171
- /* 157 */
13172
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
13173
 
13174
  "use strict";
@@ -13182,7 +13521,7 @@ function useInsertionPoint({
13182
  /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_3__);
13183
  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(1);
13184
  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__);
13185
- /* harmony import */ var _wordpress_notices__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(29);
13186
  /* harmony import */ var _wordpress_notices__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_notices__WEBPACK_IMPORTED_MODULE_5__);
13187
  /* harmony import */ var _store__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(13);
13188
  /**
@@ -13244,7 +13583,7 @@ const usePatternsState = (onInsert, rootClientId) => {
13244
  //# sourceMappingURL=use-patterns-state.js.map
13245
 
13246
  /***/ }),
13247
- /* 158 */
13248
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
13249
 
13250
  "use strict";
@@ -13259,11 +13598,11 @@ const InserterListboxContext = Object(_wordpress_element__WEBPACK_IMPORTED_MODUL
13259
  //# sourceMappingURL=context.js.map
13260
 
13261
  /***/ }),
13262
- /* 159 */,
13263
- /* 160 */,
13264
- /* 161 */,
13265
- /* 162 */,
13266
- /* 163 */
13267
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
13268
 
13269
  "use strict";
@@ -13294,19 +13633,19 @@ var external_wp_data_ = __webpack_require__(4);
13294
  var external_wp_compose_ = __webpack_require__(9);
13295
 
13296
  // EXTERNAL MODULE: external ["wp","dom"]
13297
- var external_wp_dom_ = __webpack_require__(22);
13298
 
13299
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-edit/index.js + 1 modules
13300
- var block_edit = __webpack_require__(135);
13301
 
13302
  // EXTERNAL MODULE: external ["wp","i18n"]
13303
  var external_wp_i18n_ = __webpack_require__(1);
13304
 
13305
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/warning/index.js + 1 modules
13306
- var warning = __webpack_require__(152);
13307
 
13308
  // EXTERNAL MODULE: ./node_modules/diff/lib/diff/character.js
13309
- var character = __webpack_require__(338);
13310
 
13311
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-compare/block-view.js
13312
 
@@ -13583,7 +13922,7 @@ class block_crash_boundary_BlockCrashBoundary extends external_wp_element_["Comp
13583
  /* harmony default export */ var block_crash_boundary = (block_crash_boundary_BlockCrashBoundary);
13584
  //# sourceMappingURL=block-crash-boundary.js.map
13585
  // EXTERNAL MODULE: ./node_modules/react-autosize-textarea/lib/index.js
13586
- var lib = __webpack_require__(113);
13587
  var lib_default = /*#__PURE__*/__webpack_require__.n(lib);
13588
 
13589
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-list/block-html.js
@@ -13648,7 +13987,7 @@ function BlockHTML({
13648
  /* harmony default export */ var block_html = (BlockHTML);
13649
  //# sourceMappingURL=block-html.js.map
13650
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-list/use-block-props/index.js
13651
- var use_block_props = __webpack_require__(201);
13652
 
13653
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-list/block.js
13654
 
@@ -13949,7 +14288,7 @@ Object(external_wp_compose_["ifCondition"])(({
13949
  //# sourceMappingURL=block.js.map
13950
 
13951
  /***/ }),
13952
- /* 164 */
13953
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
13954
 
13955
  "use strict";
@@ -13967,10 +14306,10 @@ var external_wp_components_ = __webpack_require__(3);
13967
  var external_wp_data_ = __webpack_require__(4);
13968
 
13969
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-draggable/draggable-chip.js
13970
- var draggable_chip = __webpack_require__(218);
13971
 
13972
  // EXTERNAL MODULE: external ["wp","dom"]
13973
- var external_wp_dom_ = __webpack_require__(22);
13974
 
13975
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-draggable/use-scroll-when-dragging.js
13976
  /**
@@ -14174,7 +14513,7 @@ const BlockDraggable = ({
14174
  //# sourceMappingURL=index.js.map
14175
 
14176
  /***/ }),
14177
- /* 165 */
14178
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
14179
 
14180
  "use strict";
@@ -14203,7 +14542,8 @@ function BlockRefsProvider({
14203
  //# sourceMappingURL=block-refs-provider.js.map
14204
 
14205
  /***/ }),
14206
- /* 166 */
 
14207
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
14208
 
14209
  "use strict";
@@ -14241,16 +14581,16 @@ var external_wp_data_ = __webpack_require__(4);
14241
  var external_wp_i18n_ = __webpack_require__(1);
14242
 
14243
  // EXTERNAL MODULE: ./packages/icons/build-module/library/chevron-right.js
14244
- var chevron_right = __webpack_require__(278);
14245
 
14246
  // EXTERNAL MODULE: ./packages/icons/build-module/library/chevron-left.js
14247
- var chevron_left = __webpack_require__(279);
14248
 
14249
  // EXTERNAL MODULE: ./packages/icons/build-module/library/chevron-up.js
14250
- var chevron_up = __webpack_require__(374);
14251
 
14252
  // EXTERNAL MODULE: ./packages/icons/build-module/library/chevron-down.js
14253
- var chevron_down = __webpack_require__(193);
14254
 
14255
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-mover/mover-description.js
14256
  /**
@@ -14575,9 +14915,11 @@ const BlockMoverDownButton = Object(external_wp_element_["forwardRef"])((props,
14575
  //# sourceMappingURL=button.js.map
14576
 
14577
  /***/ }),
14578
- /* 167 */,
14579
- /* 168 */,
14580
- /* 169 */
 
 
14581
  /***/ (function(module, exports, __webpack_require__) {
14582
 
14583
  "use strict";
@@ -14590,7 +14932,7 @@ const BlockMoverDownButton = Object(external_wp_element_["forwardRef"])((props,
14590
 
14591
 
14592
 
14593
- var ReactPropTypesSecret = __webpack_require__(170);
14594
 
14595
  function emptyFunction() {}
14596
  function emptyFunctionWithReset() {}
@@ -14648,7 +14990,7 @@ module.exports = function() {
14648
 
14649
 
14650
  /***/ }),
14651
- /* 170 */
14652
  /***/ (function(module, exports, __webpack_require__) {
14653
 
14654
  "use strict";
@@ -14667,13 +15009,13 @@ module.exports = ReactPropTypesSecret;
14667
 
14668
 
14669
  /***/ }),
14670
- /* 171 */,
14671
- /* 172 */,
14672
- /* 173 */,
14673
- /* 174 */,
14674
- /* 175 */,
14675
- /* 176 */,
14676
- /* 177 */
14677
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
14678
 
14679
  "use strict";
@@ -14689,7 +15031,7 @@ var external_wp_element_ = __webpack_require__(0);
14689
  var external_wp_blocks_ = __webpack_require__(8);
14690
 
14691
  // EXTERNAL MODULE: external ["wp","dom"]
14692
- var external_wp_dom_ = __webpack_require__(22);
14693
 
14694
  // EXTERNAL MODULE: external ["wp","data"]
14695
  var external_wp_data_ = __webpack_require__(4);
@@ -14698,13 +15040,13 @@ var external_wp_data_ = __webpack_require__(4);
14698
  var external_wp_i18n_ = __webpack_require__(1);
14699
 
14700
  // EXTERNAL MODULE: external ["wp","notices"]
14701
- var external_wp_notices_ = __webpack_require__(29);
14702
 
14703
  // EXTERNAL MODULE: external ["wp","compose"]
14704
  var external_wp_compose_ = __webpack_require__(9);
14705
 
14706
  // EXTERNAL MODULE: external ["wp","blob"]
14707
- var external_wp_blob_ = __webpack_require__(33);
14708
 
14709
  // CONCATENATED MODULE: ./packages/block-editor/build-module/utils/get-paste-event-data.js
14710
  /**
@@ -14903,21 +15245,20 @@ function CopyHandler({
14903
  //# sourceMappingURL=index.js.map
14904
 
14905
  /***/ }),
14906
- /* 178 */,
14907
- /* 179 */,
14908
- /* 180 */,
14909
- /* 181 */,
14910
- /* 182 */,
14911
- /* 183 */,
14912
- /* 184 */,
14913
- /* 185 */,
14914
- /* 186 */
14915
  /***/ (function(module, exports) {
14916
 
14917
  (function() { module.exports = window["wp"]["tokenList"]; }());
14918
 
14919
  /***/ }),
14920
- /* 187 */
14921
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
14922
 
14923
  "use strict";
@@ -15085,7 +15426,7 @@ function getItemSearchRank(item, searchTerm, config = {}) {
15085
  //# sourceMappingURL=search-items.js.map
15086
 
15087
  /***/ }),
15088
- /* 188 */
15089
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
15090
 
15091
  "use strict";
@@ -15093,8 +15434,8 @@ function getItemSearchRank(item, searchTerm, config = {}) {
15093
  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
15094
  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1);
15095
  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__);
15096
- /* harmony import */ var _wordpress_icons__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(109);
15097
- /* harmony import */ var _wordpress_icons__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(146);
15098
 
15099
 
15100
  /**
@@ -15116,10 +15457,10 @@ function InserterNoResults() {
15116
  //# sourceMappingURL=no-results.js.map
15117
 
15118
  /***/ }),
15119
- /* 189 */,
15120
- /* 190 */,
15121
- /* 191 */,
15122
- /* 192 */
15123
  /***/ (function(module, exports) {
15124
 
15125
  function _extends() {
@@ -15145,7 +15486,7 @@ module.exports = _extends;
15145
  module.exports["default"] = module.exports, module.exports.__esModule = true;
15146
 
15147
  /***/ }),
15148
- /* 193 */
15149
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
15150
 
15151
  "use strict";
@@ -15169,7 +15510,7 @@ const chevronDown = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["crea
15169
  //# sourceMappingURL=chevron-down.js.map
15170
 
15171
  /***/ }),
15172
- /* 194 */
15173
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
15174
 
15175
  "use strict";
@@ -15193,13 +15534,13 @@ const moreVertical = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["cre
15193
  //# sourceMappingURL=more-vertical.js.map
15194
 
15195
  /***/ }),
15196
- /* 195 */,
15197
- /* 196 */,
15198
- /* 197 */,
15199
- /* 198 */,
15200
- /* 199 */,
15201
- /* 200 */,
15202
- /* 201 */
15203
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
15204
 
15205
  "use strict";
@@ -15216,24 +15557,24 @@ const moreVertical = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["cre
15216
  /* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_compose__WEBPACK_IMPORTED_MODULE_4__);
15217
  /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(4);
15218
  /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_5__);
15219
- /* harmony import */ var _wordpress_warning__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(66);
15220
  /* harmony import */ var _wordpress_warning__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_wordpress_warning__WEBPACK_IMPORTED_MODULE_6__);
15221
- /* harmony import */ var _use_moving_animation__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(217);
15222
- /* harmony import */ var _block__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(163);
15223
- /* harmony import */ var _use_focus_first_element__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(326);
15224
- /* harmony import */ var _use_is_hovered__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(332);
15225
  /* harmony import */ var _block_edit_context__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(69);
15226
- /* harmony import */ var _use_block_class_names__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(334);
15227
- /* harmony import */ var _use_block_default_class_name__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(335);
15228
- /* harmony import */ var _use_block_custom_class_name__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(336);
15229
- /* harmony import */ var _use_block_moving_mode_class_names__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(337);
15230
- /* harmony import */ var _use_focus_handler__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(328);
15231
- /* harmony import */ var _use_selected_block_event_handlers__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(330);
15232
- /* harmony import */ var _use_nav_mode_exit__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(331);
15233
- /* harmony import */ var _use_scroll_into_view__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(327);
15234
- /* harmony import */ var _use_block_refs__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(71);
15235
- /* harmony import */ var _use_multi_selection__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(329);
15236
- /* harmony import */ var _use_intersection_observer__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(333);
15237
  /* harmony import */ var _store__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(13);
15238
  /**
15239
  * External dependencies
@@ -15383,10 +15724,10 @@ function useBlockProps(props = {}, {
15383
 
15384
  useBlockProps.save = _wordpress_blocks__WEBPACK_IMPORTED_MODULE_3__["__unstableGetBlockProps"];
15385
  //# sourceMappingURL=index.js.map
15386
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(89)))
15387
 
15388
  /***/ }),
15389
- /* 202 */
15390
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
15391
 
15392
  "use strict";
@@ -15405,7 +15746,7 @@ __unstableInserterMenuExtension.Slot = Slot;
15405
  //# sourceMappingURL=index.js.map
15406
 
15407
  /***/ }),
15408
- /* 203 */
15409
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
15410
 
15411
  "use strict";
@@ -15416,9 +15757,9 @@ __unstableInserterMenuExtension.Slot = Slot;
15416
  /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__);
15417
  /* harmony import */ var _wordpress_deprecated__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(26);
15418
  /* harmony import */ var _wordpress_deprecated__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_deprecated__WEBPACK_IMPORTED_MODULE_3__);
15419
- /* harmony import */ var _wordpress_dom__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(22);
15420
  /* harmony import */ var _wordpress_dom__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_dom__WEBPACK_IMPORTED_MODULE_4__);
15421
- /* harmony import */ var _wordpress_keyboard_shortcuts__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(25);
15422
  /* harmony import */ var _wordpress_keyboard_shortcuts__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_keyboard_shortcuts__WEBPACK_IMPORTED_MODULE_5__);
15423
 
15424
 
@@ -15575,7 +15916,7 @@ function NavigableToolbar({
15575
  //# sourceMappingURL=index.js.map
15576
 
15577
  /***/ }),
15578
- /* 204 */
15579
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
15580
 
15581
  "use strict";
@@ -15586,7 +15927,7 @@ function NavigableToolbar({
15586
  /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_2__);
15587
  /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(10);
15588
  /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
15589
- /* harmony import */ var _wordpress_icons__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(352);
15590
  /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(3);
15591
  /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_5__);
15592
  /* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(8);
@@ -15595,8 +15936,8 @@ function NavigableToolbar({
15595
  /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_7__);
15596
  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(1);
15597
  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_8__);
15598
- /* harmony import */ var _block_draggable__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(164);
15599
- /* harmony import */ var _button__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(166);
15600
  /* harmony import */ var _store__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(13);
15601
 
15602
 
@@ -15716,7 +16057,7 @@ function BlockMover({
15716
  //# sourceMappingURL=index.js.map
15717
 
15718
  /***/ }),
15719
- /* 205 */
15720
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
15721
 
15722
  "use strict";
@@ -15726,7 +16067,7 @@ function BlockMover({
15726
  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__);
15727
  /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(3);
15728
  /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__);
15729
- /* harmony import */ var _block_settings_dropdown__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(234);
15730
 
15731
 
15732
 
@@ -15752,7 +16093,7 @@ function BlockSettingsMenu({
15752
  //# sourceMappingURL=index.js.map
15753
 
15754
  /***/ }),
15755
- /* 206 */
15756
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
15757
 
15758
  "use strict";
@@ -15771,12 +16112,12 @@ __unstableBlockSettingsMenuFirstItem.Slot = Slot;
15771
  //# sourceMappingURL=block-settings-menu-first-item.js.map
15772
 
15773
  /***/ }),
15774
- /* 207 */,
15775
- /* 208 */,
15776
- /* 209 */,
15777
- /* 210 */,
15778
- /* 211 */,
15779
- /* 212 */
15780
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
15781
 
15782
  "use strict";
@@ -15807,16 +16148,16 @@ var external_wp_blocks_ = __webpack_require__(8);
15807
  var external_wp_components_ = __webpack_require__(3);
15808
 
15809
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-mover/index.js
15810
- var block_mover = __webpack_require__(204);
15811
 
15812
  // EXTERNAL MODULE: external ["wp","i18n"]
15813
  var external_wp_i18n_ = __webpack_require__(1);
15814
 
15815
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/use-block-display-information/index.js
15816
- var use_block_display_information = __webpack_require__(83);
15817
 
15818
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-icon/index.js
15819
- var block_icon = __webpack_require__(52);
15820
 
15821
  // EXTERNAL MODULE: external "lodash"
15822
  var external_lodash_ = __webpack_require__(2);
@@ -16092,13 +16433,13 @@ function BlockParentSelector() {
16092
  }
16093
  //# sourceMappingURL=index.js.map
16094
  // EXTERNAL MODULE: ./packages/icons/build-module/library/stack.js
16095
- var stack = __webpack_require__(547);
16096
 
16097
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-title/index.js
16098
- var block_title = __webpack_require__(97);
16099
 
16100
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-preview/index.js + 2 modules
16101
- var block_preview = __webpack_require__(75);
16102
 
16103
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-switcher/preview-block-popover.js
16104
 
@@ -16190,7 +16531,7 @@ const BlockTransformationsMenu = ({
16190
  /* harmony default export */ var block_transformations_menu = (BlockTransformationsMenu);
16191
  //# sourceMappingURL=block-transformations-menu.js.map
16192
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-styles/index.js + 1 modules
16193
- var block_styles = __webpack_require__(236);
16194
 
16195
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-switcher/block-styles-menu.js
16196
 
@@ -16240,7 +16581,7 @@ function BlockStylesMenu({
16240
  }
16241
  //# sourceMappingURL=block-styles-menu.js.map
16242
  // EXTERNAL MODULE: ./packages/icons/build-module/library/chevron-right.js
16243
- var chevron_right = __webpack_require__(278);
16244
 
16245
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-switcher/utils.js
16246
  /**
@@ -16687,10 +17028,10 @@ const BlockSwitcher = ({
16687
  /* harmony default export */ var block_switcher = (BlockSwitcher);
16688
  //# sourceMappingURL=index.js.map
16689
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-controls/index.js + 3 modules
16690
- var block_controls = __webpack_require__(103);
16691
 
16692
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-settings-menu/index.js
16693
- var block_settings_menu = __webpack_require__(205);
16694
 
16695
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-toolbar/index.js
16696
 
@@ -16826,7 +17167,7 @@ function BlockToolbar({
16826
  //# sourceMappingURL=index.js.map
16827
 
16828
  /***/ }),
16829
- /* 213 */
16830
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
16831
 
16832
  "use strict";
@@ -17086,7 +17427,7 @@ BlockSettingsMenuControls.Slot = BlockSettingsMenuControlsSlot;
17086
  //# sourceMappingURL=index.js.map
17087
 
17088
  /***/ }),
17089
- /* 214 */
17090
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
17091
 
17092
  "use strict";
@@ -17107,7 +17448,7 @@ var external_wp_compose_ = __webpack_require__(9);
17107
  var store = __webpack_require__(13);
17108
 
17109
  // EXTERNAL MODULE: ./packages/block-editor/build-module/store/constants.js
17110
- var constants = __webpack_require__(40);
17111
 
17112
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/provider/with-registry-provider.js
17113
 
@@ -17158,10 +17499,10 @@ const withRegistryProvider = Object(external_wp_compose_["createHigherOrderCompo
17158
  /* harmony default export */ var with_registry_provider = (withRegistryProvider);
17159
  //# sourceMappingURL=with-registry-provider.js.map
17160
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/provider/use-block-sync.js
17161
- var use_block_sync = __webpack_require__(223);
17162
 
17163
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/provider/block-refs-provider.js
17164
- var block_refs_provider = __webpack_require__(165);
17165
 
17166
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/provider/index.js
17167
 
@@ -17201,7 +17542,7 @@ function BlockEditorProvider(props) {
17201
  //# sourceMappingURL=index.js.map
17202
 
17203
  /***/ }),
17204
- /* 215 */
17205
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
17206
 
17207
  "use strict";
@@ -17292,7 +17633,7 @@ function getDistanceToNearestEdge(point, rect, allowedEdges = ['top', 'bottom',
17292
  //# sourceMappingURL=math.js.map
17293
 
17294
  /***/ }),
17295
- /* 216 */
17296
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
17297
 
17298
  "use strict";
@@ -17305,7 +17646,7 @@ function getDistanceToNearestEdge(point, rect, allowedEdges = ['top', 'bottom',
17305
  /* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__);
17306
  /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4);
17307
  /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_1__);
17308
- /* harmony import */ var _wordpress_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(22);
17309
  /* harmony import */ var _wordpress_dom__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_dom__WEBPACK_IMPORTED_MODULE_2__);
17310
  /* harmony import */ var _store__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(13);
17311
  /**
@@ -17496,17 +17837,17 @@ function useOnBlockDrop(targetRootClientId, targetBlockIndex) {
17496
  //# sourceMappingURL=index.js.map
17497
 
17498
  /***/ }),
17499
- /* 217 */
17500
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
17501
 
17502
  "use strict";
17503
- /* harmony import */ var react_spring_web_cjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(126);
17504
  /* harmony import */ var react_spring_web_cjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_spring_web_cjs__WEBPACK_IMPORTED_MODULE_0__);
17505
  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(0);
17506
  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__);
17507
  /* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9);
17508
  /* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_compose__WEBPACK_IMPORTED_MODULE_2__);
17509
- /* harmony import */ var _wordpress_dom__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(22);
17510
  /* harmony import */ var _wordpress_dom__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_dom__WEBPACK_IMPORTED_MODULE_3__);
17511
  /**
17512
  * External dependencies
@@ -17677,7 +18018,7 @@ function useMovingAnimation({
17677
  //# sourceMappingURL=index.js.map
17678
 
17679
  /***/ }),
17680
- /* 218 */
17681
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
17682
 
17683
  "use strict";
@@ -17688,8 +18029,8 @@ function useMovingAnimation({
17688
  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__);
17689
  /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(3);
17690
  /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__);
17691
- /* harmony import */ var _wordpress_icons__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(352);
17692
- /* harmony import */ var _block_icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(52);
17693
 
17694
 
17695
  /**
@@ -17725,7 +18066,7 @@ function BlockDraggableChip({
17725
  //# sourceMappingURL=draggable-chip.js.map
17726
 
17727
  /***/ }),
17728
- /* 219 */
17729
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
17730
 
17731
  "use strict";
@@ -17739,8 +18080,8 @@ function BlockDraggableChip({
17739
  /* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_compose__WEBPACK_IMPORTED_MODULE_2__);
17740
  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(1);
17741
  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__);
17742
- /* harmony import */ var _use_on_block_drop__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(216);
17743
- /* harmony import */ var _utils_math__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(215);
17744
  /* harmony import */ var _store__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(13);
17745
  /**
17746
  * WordPress dependencies
@@ -17874,7 +18215,7 @@ function useBlockDropZone({
17874
  //# sourceMappingURL=index.js.map
17875
 
17876
  /***/ }),
17877
- /* 220 */
17878
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
17879
 
17880
  "use strict";
@@ -17888,18 +18229,18 @@ function useBlockDropZone({
17888
  /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__);
17889
  /* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(9);
17890
  /* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_compose__WEBPACK_IMPORTED_MODULE_4__);
17891
- /* harmony import */ var _wordpress_a11y__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(31);
17892
  /* harmony import */ var _wordpress_a11y__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_a11y__WEBPACK_IMPORTED_MODULE_5__);
17893
- /* harmony import */ var _block_types_list__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(115);
17894
- /* harmony import */ var _block_patterns_list__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(222);
17895
- /* harmony import */ var _inserter_menu_extension__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(202);
17896
- /* harmony import */ var _panel__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(107);
17897
- /* harmony import */ var _no_results__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(188);
17898
- /* harmony import */ var _hooks_use_insertion_point__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(156);
17899
- /* harmony import */ var _hooks_use_patterns_state__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(157);
17900
- /* harmony import */ var _hooks_use_block_types_state__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(102);
17901
- /* harmony import */ var _search_items__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(187);
17902
- /* harmony import */ var _inserter_listbox__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(148);
17903
 
17904
 
17905
  /**
@@ -18021,7 +18362,7 @@ function InserterSearchResults({
18021
  //# sourceMappingURL=search-results.js.map
18022
 
18023
  /***/ }),
18024
- /* 221 */
18025
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
18026
 
18027
  "use strict";
@@ -18029,7 +18370,7 @@ function InserterSearchResults({
18029
  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
18030
  /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3);
18031
  /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__);
18032
- /* harmony import */ var _block_draggable_draggable_chip__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(218);
18033
 
18034
 
18035
  /**
@@ -18075,7 +18416,7 @@ const InserterDraggableBlocks = ({
18075
  //# sourceMappingURL=index.js.map
18076
 
18077
  /***/ }),
18078
- /* 222 */
18079
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
18080
 
18081
  "use strict";
@@ -18090,8 +18431,8 @@ const InserterDraggableBlocks = ({
18090
  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__);
18091
  /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(4);
18092
  /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_5__);
18093
- /* harmony import */ var _block_preview__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(75);
18094
- /* harmony import */ var _inserter_draggable_blocks__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(221);
18095
  /* harmony import */ var _store__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(13);
18096
 
18097
 
@@ -18195,7 +18536,7 @@ function BlockPatternList({
18195
  //# sourceMappingURL=index.js.map
18196
 
18197
  /***/ }),
18198
- /* 223 */
18199
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
18200
 
18201
  "use strict";
@@ -18432,7 +18773,7 @@ function useBlockSync({
18432
  //# sourceMappingURL=use-block-sync.js.map
18433
 
18434
  /***/ }),
18435
- /* 224 */
18436
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
18437
 
18438
  "use strict";
@@ -18440,7 +18781,7 @@ function useBlockSync({
18440
  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
18441
  /* harmony import */ var _wordpress_deprecated__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(26);
18442
  /* harmony import */ var _wordpress_deprecated__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_deprecated__WEBPACK_IMPORTED_MODULE_1__);
18443
- /* harmony import */ var _block_icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(52);
18444
 
18445
 
18446
  /**
@@ -18489,7 +18830,7 @@ function BlockCard({
18489
  //# sourceMappingURL=index.js.map
18490
 
18491
  /***/ }),
18492
- /* 225 */
18493
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
18494
 
18495
  "use strict";
@@ -18504,8 +18845,8 @@ function BlockCard({
18504
  /* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_4__);
18505
  /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(4);
18506
  /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_5__);
18507
- /* harmony import */ var _navigable_toolbar__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(203);
18508
- /* harmony import */ var _block_toolbar__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(212);
18509
  /* harmony import */ var _store__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(13);
18510
 
18511
 
@@ -18586,7 +18927,7 @@ function BlockContextualToolbar({
18586
  //# sourceMappingURL=block-contextual-toolbar.js.map
18587
 
18588
  /***/ }),
18589
- /* 226 */
18590
  /***/ (function(module, exports) {
18591
 
18592
  if (typeof Object.create === 'function') {
@@ -18615,13 +18956,14 @@ if (typeof Object.create === 'function') {
18615
 
18616
 
18617
  /***/ }),
18618
- /* 227 */,
18619
- /* 228 */,
18620
- /* 229 */,
18621
- /* 230 */,
18622
- /* 231 */,
18623
- /* 232 */,
18624
- /* 233 */
 
18625
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
18626
 
18627
  "use strict";
@@ -18668,10 +19010,10 @@ function Tips() {
18668
  var external_wp_blocks_ = __webpack_require__(8);
18669
 
18670
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-card/index.js
18671
- var block_card = __webpack_require__(224);
18672
 
18673
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-preview/index.js + 2 modules
18674
- var block_preview = __webpack_require__(75);
18675
 
18676
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/preview-panel.js
18677
 
@@ -18732,16 +19074,16 @@ function InserterPreviewPanel({
18732
  var external_lodash_ = __webpack_require__(2);
18733
 
18734
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-types-list/index.js + 1 modules
18735
- var block_types_list = __webpack_require__(115);
18736
 
18737
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/inserter/panel.js
18738
- var panel = __webpack_require__(107);
18739
 
18740
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/inserter/hooks/use-block-types-state.js
18741
- var use_block_types_state = __webpack_require__(102);
18742
 
18743
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/inserter-listbox/index.js
18744
- var inserter_listbox = __webpack_require__(148);
18745
 
18746
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/block-types-tab.js
18747
 
@@ -18926,10 +19268,10 @@ function PatternInserterPanel({
18926
  /* harmony default export */ var pattern_panel = (PatternInserterPanel);
18927
  //# sourceMappingURL=pattern-panel.js.map
18928
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/inserter/hooks/use-patterns-state.js
18929
- var use_patterns_state = __webpack_require__(157);
18930
 
18931
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-patterns-list/index.js
18932
- var block_patterns_list = __webpack_require__(222);
18933
 
18934
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/block-patterns-tab.js
18935
 
@@ -19027,7 +19369,7 @@ function BlockPatternsTabs({
19027
  var external_wp_url_ = __webpack_require__(20);
19028
 
19029
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/inserter/no-results.js
19030
- var no_results = __webpack_require__(188);
19031
 
19032
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/reusable-blocks-tab.js
19033
 
@@ -19106,10 +19448,10 @@ function ReusableBlocksTab({
19106
  /* harmony default export */ var reusable_blocks_tab = (ReusableBlocksTab);
19107
  //# sourceMappingURL=reusable-blocks-tab.js.map
19108
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/inserter/search-results.js
19109
- var search_results = __webpack_require__(220);
19110
 
19111
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/inserter/hooks/use-insertion-point.js
19112
- var use_insertion_point = __webpack_require__(156);
19113
 
19114
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/tabs.js
19115
 
@@ -19315,7 +19657,7 @@ function InserterMenu({
19315
  //# sourceMappingURL=menu.js.map
19316
 
19317
  /***/ }),
19318
- /* 234 */
19319
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
19320
 
19321
  "use strict";
@@ -19341,19 +19683,19 @@ var external_wp_components_ = __webpack_require__(3);
19341
  var external_wp_data_ = __webpack_require__(4);
19342
 
19343
  // EXTERNAL MODULE: ./packages/icons/build-module/library/more-vertical.js
19344
- var more_vertical = __webpack_require__(194);
19345
 
19346
  // EXTERNAL MODULE: external ["wp","blocks"]
19347
  var external_wp_blocks_ = __webpack_require__(8);
19348
 
19349
  // EXTERNAL MODULE: external ["wp","keyboardShortcuts"]
19350
- var external_wp_keyboardShortcuts_ = __webpack_require__(25);
19351
 
19352
  // EXTERNAL MODULE: external ["wp","compose"]
19353
  var external_wp_compose_ = __webpack_require__(9);
19354
 
19355
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/copy-handler/index.js + 1 modules
19356
- var copy_handler = __webpack_require__(177);
19357
 
19358
  // EXTERNAL MODULE: ./packages/block-editor/build-module/store/index.js + 5 modules
19359
  var store = __webpack_require__(13);
@@ -19599,10 +19941,10 @@ function BlockConvertButton({
19599
  })))(BlockConvertButton));
19600
  //# sourceMappingURL=block-html-convert-button.js.map
19601
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-settings-menu/block-settings-menu-first-item.js
19602
- var block_settings_menu_first_item = __webpack_require__(206);
19603
 
19604
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-settings-menu-controls/index.js + 2 modules
19605
- var block_settings_menu_controls = __webpack_require__(213);
19606
 
19607
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-settings-menu/block-settings-dropdown.js
19608
 
@@ -19742,7 +20084,7 @@ function BlockSettingsDropdown({
19742
  //# sourceMappingURL=block-settings-dropdown.js.map
19743
 
19744
  /***/ }),
19745
- /* 235 */
19746
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
19747
 
19748
  "use strict";
@@ -19770,43 +20112,43 @@ var external_wp_components_ = __webpack_require__(3);
19770
  var external_wp_data_ = __webpack_require__(4);
19771
 
19772
  // EXTERNAL MODULE: external ["wp","keyboardShortcuts"]
19773
- var external_wp_keyboardShortcuts_ = __webpack_require__(25);
19774
 
19775
  // EXTERNAL MODULE: external ["wp","compose"]
19776
  var external_wp_compose_ = __webpack_require__(9);
19777
 
19778
  // EXTERNAL MODULE: external ["wp","dom"]
19779
- var external_wp_dom_ = __webpack_require__(22);
19780
 
19781
  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
19782
  var esm_extends = __webpack_require__(7);
19783
 
19784
  // EXTERNAL MODULE: ./packages/icons/build-module/library/drag-handle.js
19785
- var drag_handle = __webpack_require__(352);
19786
 
19787
  // EXTERNAL MODULE: external ["wp","keycodes"]
19788
  var external_wp_keycodes_ = __webpack_require__(14);
19789
 
19790
  // EXTERNAL MODULE: external ["wp","a11y"]
19791
- var external_wp_a11y_ = __webpack_require__(31);
19792
 
19793
  // EXTERNAL MODULE: external ["wp","i18n"]
19794
  var external_wp_i18n_ = __webpack_require__(1);
19795
 
19796
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-title/index.js
19797
- var block_title = __webpack_require__(97);
19798
 
19799
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-icon/index.js
19800
- var block_icon = __webpack_require__(52);
19801
 
19802
  // EXTERNAL MODULE: ./packages/block-editor/build-module/store/index.js + 5 modules
19803
  var store = __webpack_require__(13);
19804
 
19805
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-draggable/index.js + 1 modules
19806
- var block_draggable = __webpack_require__(164);
19807
 
19808
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/use-block-display-information/index.js
19809
- var use_block_display_information = __webpack_require__(83);
19810
 
19811
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-tools/block-selection-button.js
19812
 
@@ -19977,8 +20319,9 @@ function BlockSelectionButton({
19977
 
19978
  const startingBlockClientId = hasBlockMovingClientId();
19979
 
19980
- if (isEscape && startingBlockClientId) {
19981
  setBlockMovingClientId(null);
 
19982
  }
19983
 
19984
  if ((isEnter || isSpace) && startingBlockClientId) {
@@ -20063,16 +20406,16 @@ function BlockSelectionButton({
20063
  /* harmony default export */ var block_selection_button = (BlockSelectionButton);
20064
  //# sourceMappingURL=block-selection-button.js.map
20065
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-tools/block-contextual-toolbar.js
20066
- var block_contextual_toolbar = __webpack_require__(225);
20067
 
20068
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/inserter/index.js + 1 modules
20069
- var inserter = __webpack_require__(87);
20070
 
20071
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-list/use-block-props/use-block-refs.js
20072
- var use_block_refs = __webpack_require__(71);
20073
 
20074
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-tools/use-popover-scroll.js
20075
- var use_popover_scroll = __webpack_require__(155);
20076
 
20077
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-tools/block-popover.js
20078
 
@@ -20380,7 +20723,7 @@ function WrappedBlockPopover({
20380
  //# sourceMappingURL=block-popover.js.map
20381
 
20382
  /***/ }),
20383
- /* 236 */
20384
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
20385
 
20386
  "use strict";
@@ -20408,7 +20751,7 @@ var external_wp_i18n_ = __webpack_require__(1);
20408
  var external_wp_blocks_ = __webpack_require__(8);
20409
 
20410
  // EXTERNAL MODULE: external ["wp","tokenList"]
20411
- var external_wp_tokenList_ = __webpack_require__(186);
20412
  var external_wp_tokenList_default = /*#__PURE__*/__webpack_require__.n(external_wp_tokenList_);
20413
 
20414
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-styles/utils.js
@@ -20470,7 +20813,7 @@ function replaceActiveStyle(className, activeStyle, newStyle) {
20470
  }
20471
  //# sourceMappingURL=utils.js.map
20472
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-preview/index.js + 2 modules
20473
- var block_preview = __webpack_require__(75);
20474
 
20475
  // EXTERNAL MODULE: ./packages/block-editor/build-module/store/index.js + 5 modules
20476
  var store = __webpack_require__(13);
@@ -20641,10 +20984,8 @@ function BlockStyleItem({
20641
  //# sourceMappingURL=index.js.map
20642
 
20643
  /***/ }),
20644
- /* 237 */,
20645
- /* 238 */,
20646
- /* 239 */,
20647
- /* 240 */
20648
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
20649
 
20650
  "use strict";
@@ -20668,7 +21009,7 @@ const link = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createEleme
20668
  //# sourceMappingURL=link.js.map
20669
 
20670
  /***/ }),
20671
- /* 241 */
20672
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
20673
 
20674
  "use strict";
@@ -20692,7 +21033,7 @@ const linkOff = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createEl
20692
  //# sourceMappingURL=link-off.js.map
20693
 
20694
  /***/ }),
20695
- /* 242 */
20696
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
20697
 
20698
  "use strict";
@@ -20716,7 +21057,7 @@ const listView = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createE
20716
  //# sourceMappingURL=list-view.js.map
20717
 
20718
  /***/ }),
20719
- /* 243 */
20720
  /***/ (function(module, exports) {
20721
 
20722
  function _objectWithoutPropertiesLoose(source, excluded) {
@@ -20738,10 +21079,10 @@ module.exports = _objectWithoutPropertiesLoose;
20738
  module.exports["default"] = module.exports, module.exports.__esModule = true;
20739
 
20740
  /***/ }),
20741
- /* 244 */
20742
  /***/ (function(module, exports, __webpack_require__) {
20743
 
20744
- var setPrototypeOf = __webpack_require__(245);
20745
 
20746
  function _inheritsLoose(subClass, superClass) {
20747
  subClass.prototype = Object.create(superClass.prototype);
@@ -20753,7 +21094,7 @@ module.exports = _inheritsLoose;
20753
  module.exports["default"] = module.exports, module.exports.__esModule = true;
20754
 
20755
  /***/ }),
20756
- /* 245 */
20757
  /***/ (function(module, exports) {
20758
 
20759
  function _setPrototypeOf(o, p) {
@@ -20770,7 +21111,7 @@ module.exports = _setPrototypeOf;
20770
  module.exports["default"] = module.exports, module.exports.__esModule = true;
20771
 
20772
  /***/ }),
20773
- /* 246 */
20774
  /***/ (function(module, exports) {
20775
 
20776
  function _assertThisInitialized(self) {
@@ -20785,13 +21126,13 @@ module.exports = _assertThisInitialized;
20785
  module.exports["default"] = module.exports, module.exports.__esModule = true;
20786
 
20787
  /***/ }),
20788
- /* 247 */
20789
  /***/ (function(module, exports, __webpack_require__) {
20790
 
20791
  "use strict";
20792
 
20793
 
20794
- var util = __webpack_require__(248);
20795
 
20796
  function scrollIntoView(elem, container, config) {
20797
  config = config || {};
@@ -20925,7 +21266,7 @@ function scrollIntoView(elem, container, config) {
20925
  module.exports = scrollIntoView;
20926
 
20927
  /***/ }),
20928
- /* 248 */
20929
  /***/ (function(module, exports, __webpack_require__) {
20930
 
20931
  "use strict";
@@ -21370,7 +21711,7 @@ module.exports = _extends({
21370
  }, domUtils);
21371
 
21372
  /***/ }),
21373
- /* 249 */
21374
  /***/ (function(module, exports, __webpack_require__) {
21375
 
21376
  "use strict";
@@ -21404,9 +21745,9 @@ var __rest = (this && this.__rest) || function (s, e) {
21404
  };
21405
  exports.__esModule = true;
21406
  var React = __webpack_require__(11);
21407
- var PropTypes = __webpack_require__(24);
21408
- var autosize = __webpack_require__(250);
21409
- var _getLineHeight = __webpack_require__(251);
21410
  var getLineHeight = _getLineHeight;
21411
  var RESIZED = "autosize:resized";
21412
  /**
@@ -21503,7 +21844,7 @@ exports.TextareaAutosize = React.forwardRef(function (props, ref) {
21503
 
21504
 
21505
  /***/ }),
21506
- /* 250 */
21507
  /***/ (function(module, exports, __webpack_require__) {
21508
 
21509
  var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
@@ -21791,11 +22132,11 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
21791
  });
21792
 
21793
  /***/ }),
21794
- /* 251 */
21795
  /***/ (function(module, exports, __webpack_require__) {
21796
 
21797
  // Load in dependencies
21798
- var computedStyle = __webpack_require__(252);
21799
 
21800
  /**
21801
  * Calculate the `line-height` of a given node
@@ -21894,7 +22235,7 @@ module.exports = lineHeight;
21894
 
21895
 
21896
  /***/ }),
21897
- /* 252 */
21898
  /***/ (function(module, exports) {
21899
 
21900
  // This code has been refactored for 140 bytes
@@ -21927,7 +22268,7 @@ module.exports = computedStyle;
21927
 
21928
 
21929
  /***/ }),
21930
- /* 253 */
21931
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
21932
 
21933
  "use strict";
@@ -21951,18 +22292,18 @@ const layout = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createEle
21951
  //# sourceMappingURL=layout.js.map
21952
 
21953
  /***/ }),
21954
- /* 254 */,
21955
- /* 255 */,
21956
- /* 256 */,
21957
- /* 257 */,
21958
- /* 258 */,
21959
- /* 259 */,
21960
  /* 260 */,
21961
  /* 261 */,
21962
  /* 262 */,
21963
  /* 263 */,
21964
  /* 264 */,
21965
- /* 265 */
 
 
 
 
 
 
21966
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
21967
 
21968
  "use strict";
@@ -21997,16 +22338,19 @@ const pencil = Object(external_wp_element_["createElement"])(external_wp_primiti
21997
  //# sourceMappingURL=edit.js.map
21998
 
21999
  /***/ }),
22000
- /* 266 */,
22001
- /* 267 */,
22002
- /* 268 */,
22003
- /* 269 */,
22004
- /* 270 */,
22005
- /* 271 */,
22006
  /* 272 */,
22007
  /* 273 */,
22008
  /* 274 */,
22009
- /* 275 */
 
 
 
 
 
 
 
 
 
22010
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
22011
 
22012
  "use strict";
@@ -22015,7 +22359,7 @@ const pencil = Object(external_wp_element_["createElement"])(external_wp_primiti
22015
  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__);
22016
  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
22017
  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__);
22018
- /* harmony import */ var _wordpress_a11y__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(31);
22019
  /* harmony import */ var _wordpress_a11y__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_a11y__WEBPACK_IMPORTED_MODULE_3__);
22020
 
22021
 
@@ -22055,7 +22399,7 @@ function InserterListboxGroup(props, ref) {
22055
  //# sourceMappingURL=group.js.map
22056
 
22057
  /***/ }),
22058
- /* 276 */
22059
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
22060
 
22061
  "use strict";
@@ -22064,7 +22408,7 @@ function InserterListboxGroup(props, ref) {
22064
  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__);
22065
  /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(3);
22066
  /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__);
22067
- /* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(158);
22068
 
22069
 
22070
 
@@ -22092,7 +22436,7 @@ function InserterListboxRow(props, ref) {
22092
  //# sourceMappingURL=row.js.map
22093
 
22094
  /***/ }),
22095
- /* 277 */
22096
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
22097
 
22098
  "use strict";
@@ -22101,7 +22445,7 @@ function InserterListboxRow(props, ref) {
22101
  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__);
22102
  /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(3);
22103
  /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__);
22104
- /* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(158);
22105
 
22106
 
22107
 
@@ -22152,7 +22496,7 @@ function InserterListboxItem({
22152
  //# sourceMappingURL=item.js.map
22153
 
22154
  /***/ }),
22155
- /* 278 */
22156
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
22157
 
22158
  "use strict";
@@ -22176,7 +22520,7 @@ const chevronRight = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["cre
22176
  //# sourceMappingURL=chevron-right.js.map
22177
 
22178
  /***/ }),
22179
- /* 279 */
22180
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
22181
 
22182
  "use strict";
@@ -22200,7 +22544,7 @@ const chevronLeft = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["crea
22200
  //# sourceMappingURL=chevron-left.js.map
22201
 
22202
  /***/ }),
22203
- /* 280 */
22204
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
22205
 
22206
  "use strict";
@@ -22224,7 +22568,7 @@ const keyboardReturn = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["c
22224
  //# sourceMappingURL=keyboard-return.js.map
22225
 
22226
  /***/ }),
22227
- /* 281 */
22228
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
22229
 
22230
  "use strict";
@@ -22248,15 +22592,6 @@ const upload = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createEle
22248
  //# sourceMappingURL=upload.js.map
22249
 
22250
  /***/ }),
22251
- /* 282 */,
22252
- /* 283 */,
22253
- /* 284 */,
22254
- /* 285 */,
22255
- /* 286 */,
22256
- /* 287 */,
22257
- /* 288 */,
22258
- /* 289 */,
22259
- /* 290 */,
22260
  /* 291 */,
22261
  /* 292 */,
22262
  /* 293 */,
@@ -22292,7 +22627,16 @@ const upload = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createEle
22292
  /* 323 */,
22293
  /* 324 */,
22294
  /* 325 */,
22295
- /* 326 */
 
 
 
 
 
 
 
 
 
22296
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
22297
 
22298
  "use strict";
@@ -22301,11 +22645,11 @@ const upload = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createEle
22301
  /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_0__);
22302
  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(0);
22303
  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__);
22304
- /* harmony import */ var _wordpress_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(22);
22305
  /* harmony import */ var _wordpress_dom__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_dom__WEBPACK_IMPORTED_MODULE_2__);
22306
  /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(4);
22307
  /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_3__);
22308
- /* harmony import */ var _utils_dom__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(127);
22309
  /* harmony import */ var _store__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(13);
22310
  /**
22311
  * External dependencies
@@ -22393,8 +22737,7 @@ function useFocusFirstElement(clientId) {
22393
  const isReverse = -1 === initialPosition;
22394
  const target = (isReverse ? lodash__WEBPACK_IMPORTED_MODULE_0__["last"] : lodash__WEBPACK_IMPORTED_MODULE_0__["first"])(textInputs) || ref.current;
22395
 
22396
- if ( // Don't focus inner block or block appenders.
22397
- !Object(_utils_dom__WEBPACK_IMPORTED_MODULE_4__[/* isInsideRootBlock */ "c"])(ref.current, target) || target.closest('.block-list-appender')) {
22398
  ref.current.focus();
22399
  return;
22400
  }
@@ -22406,18 +22749,18 @@ function useFocusFirstElement(clientId) {
22406
  //# sourceMappingURL=use-focus-first-element.js.map
22407
 
22408
  /***/ }),
22409
- /* 327 */
22410
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
22411
 
22412
  "use strict";
22413
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return useScrollIntoView; });
22414
- /* harmony import */ var dom_scroll_into_view__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(138);
22415
  /* harmony import */ var dom_scroll_into_view__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(dom_scroll_into_view__WEBPACK_IMPORTED_MODULE_0__);
22416
  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(0);
22417
  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__);
22418
  /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4);
22419
  /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_2__);
22420
- /* harmony import */ var _wordpress_dom__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(22);
22421
  /* harmony import */ var _wordpress_dom__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_dom__WEBPACK_IMPORTED_MODULE_3__);
22422
  /* harmony import */ var _store__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(13);
22423
  /**
@@ -22485,7 +22828,7 @@ function useScrollIntoView(clientId) {
22485
  //# sourceMappingURL=use-scroll-into-view.js.map
22486
 
22487
  /***/ }),
22488
- /* 328 */
22489
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
22490
 
22491
  "use strict";
@@ -22494,7 +22837,7 @@ function useScrollIntoView(clientId) {
22494
  /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_0__);
22495
  /* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9);
22496
  /* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_compose__WEBPACK_IMPORTED_MODULE_1__);
22497
- /* harmony import */ var _utils_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(127);
22498
  /* harmony import */ var _store__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(13);
22499
  /**
22500
  * WordPress dependencies
@@ -22560,7 +22903,7 @@ function useFocusHandler(clientId) {
22560
  //# sourceMappingURL=use-focus-handler.js.map
22561
 
22562
  /***/ }),
22563
- /* 329 */
22564
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
22565
 
22566
  "use strict";
@@ -22570,7 +22913,7 @@ function useFocusHandler(clientId) {
22570
  /* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9);
22571
  /* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_compose__WEBPACK_IMPORTED_MODULE_1__);
22572
  /* harmony import */ var _store__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(13);
22573
- /* harmony import */ var _utils_dom__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(127);
22574
  /**
22575
  * WordPress dependencies
22576
  */
@@ -22752,12 +23095,12 @@ function useMultiSelection(clientId) {
22752
  //# sourceMappingURL=use-multi-selection.js.map
22753
 
22754
  /***/ }),
22755
- /* 330 */
22756
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
22757
 
22758
  "use strict";
22759
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return useEventHandlers; });
22760
- /* harmony import */ var _wordpress_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(22);
22761
  /* harmony import */ var _wordpress_dom__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_dom__WEBPACK_IMPORTED_MODULE_0__);
22762
  /* harmony import */ var _wordpress_keycodes__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(14);
22763
  /* harmony import */ var _wordpress_keycodes__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_keycodes__WEBPACK_IMPORTED_MODULE_1__);
@@ -22857,7 +23200,7 @@ function useEventHandlers(clientId) {
22857
  //# sourceMappingURL=use-selected-block-event-handlers.js.map
22858
 
22859
  /***/ }),
22860
- /* 331 */
22861
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
22862
 
22863
  "use strict";
@@ -22917,7 +23260,7 @@ function useNavModeExit(clientId) {
22917
  //# sourceMappingURL=use-nav-mode-exit.js.map
22918
 
22919
  /***/ }),
22920
- /* 332 */
22921
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
22922
 
22923
  "use strict";
@@ -22977,7 +23320,7 @@ function useIsHovered() {
22977
  //# sourceMappingURL=use-is-hovered.js.map
22978
 
22979
  /***/ }),
22980
- /* 333 */
22981
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
22982
 
22983
  "use strict";
@@ -22986,7 +23329,7 @@ function useIsHovered() {
22986
  /* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_compose__WEBPACK_IMPORTED_MODULE_0__);
22987
  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(0);
22988
  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__);
22989
- /* harmony import */ var ___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(101);
22990
  /**
22991
  * WordPress dependencies
22992
  */
@@ -23011,7 +23354,7 @@ function useIntersectionObserver() {
23011
  //# sourceMappingURL=use-intersection-observer.js.map
23012
 
23013
  /***/ }),
23014
- /* 334 */
23015
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
23016
 
23017
  "use strict";
@@ -23087,7 +23430,7 @@ function useBlockClassNames(clientId) {
23087
  //# sourceMappingURL=use-block-class-names.js.map
23088
 
23089
  /***/ }),
23090
- /* 335 */
23091
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
23092
 
23093
  "use strict";
@@ -23132,7 +23475,7 @@ function useBlockDefaultClassName(clientId) {
23132
  //# sourceMappingURL=use-block-default-class-name.js.map
23133
 
23134
  /***/ }),
23135
- /* 336 */
23136
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
23137
 
23138
  "use strict";
@@ -23190,7 +23533,7 @@ function useBlockCustomClassName(clientId) {
23190
  //# sourceMappingURL=use-block-custom-class-name.js.map
23191
 
23192
  /***/ }),
23193
- /* 337 */
23194
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
23195
 
23196
  "use strict";
@@ -23251,7 +23594,7 @@ function useBlockMovingModeClassNames(clientId) {
23251
  //# sourceMappingURL=use-block-moving-mode-class-names.js.map
23252
 
23253
  /***/ }),
23254
- /* 338 */
23255
  /***/ (function(module, exports, __webpack_require__) {
23256
 
23257
  "use strict";
@@ -23267,7 +23610,7 @@ exports.characterDiff = void 0;
23267
  /*istanbul ignore end*/
23268
  var
23269
  /*istanbul ignore start*/
23270
- _base = _interopRequireDefault(__webpack_require__(375))
23271
  /*istanbul ignore end*/
23272
  ;
23273
 
@@ -23295,7 +23638,7 @@ function diffChars(oldStr, newStr, options) {
23295
 
23296
 
23297
  /***/ }),
23298
- /* 339 */
23299
  /***/ (function(module, exports, __webpack_require__) {
23300
 
23301
  "use strict";
@@ -23459,7 +23802,7 @@ function toPx(length) {
23459
 
23460
 
23461
  /***/ }),
23462
- /* 340 */
23463
  /***/ (function(module, exports) {
23464
 
23465
  var traverse = module.exports = function (obj) {
@@ -23779,18 +24122,18 @@ var hasOwnProperty = Object.hasOwnProperty || function (obj, key) {
23779
 
23780
 
23781
  /***/ }),
23782
- /* 341 */,
23783
- /* 342 */,
23784
- /* 343 */,
23785
- /* 344 */,
23786
- /* 345 */,
23787
- /* 346 */,
23788
- /* 347 */,
23789
- /* 348 */,
23790
- /* 349 */,
23791
  /* 350 */,
23792
  /* 351 */,
23793
- /* 352 */
 
 
 
 
 
 
 
 
 
23794
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
23795
 
23796
  "use strict";
@@ -23816,15 +24159,6 @@ const dragHandle = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["creat
23816
  //# sourceMappingURL=drag-handle.js.map
23817
 
23818
  /***/ }),
23819
- /* 353 */,
23820
- /* 354 */,
23821
- /* 355 */,
23822
- /* 356 */,
23823
- /* 357 */,
23824
- /* 358 */,
23825
- /* 359 */,
23826
- /* 360 */,
23827
- /* 361 */,
23828
  /* 362 */,
23829
  /* 363 */,
23830
  /* 364 */,
@@ -23833,7 +24167,17 @@ const dragHandle = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["creat
23833
  /* 367 */,
23834
  /* 368 */,
23835
  /* 369 */,
23836
- /* 370 */
 
 
 
 
 
 
 
 
 
 
23837
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
23838
 
23839
  "use strict";
@@ -23857,7 +24201,7 @@ const formatStrikethrough = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0
23857
  //# sourceMappingURL=format-strikethrough.js.map
23858
 
23859
  /***/ }),
23860
- /* 371 */
23861
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
23862
 
23863
  "use strict";
@@ -23881,7 +24225,7 @@ const alignLeft = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["create
23881
  //# sourceMappingURL=align-left.js.map
23882
 
23883
  /***/ }),
23884
- /* 372 */
23885
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
23886
 
23887
  "use strict";
@@ -23905,7 +24249,7 @@ const alignCenter = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["crea
23905
  //# sourceMappingURL=align-center.js.map
23906
 
23907
  /***/ }),
23908
- /* 373 */
23909
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
23910
 
23911
  "use strict";
@@ -23929,7 +24273,7 @@ const alignRight = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["creat
23929
  //# sourceMappingURL=align-right.js.map
23930
 
23931
  /***/ }),
23932
- /* 374 */
23933
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
23934
 
23935
  "use strict";
@@ -23953,7 +24297,7 @@ const chevronUp = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["create
23953
  //# sourceMappingURL=chevron-up.js.map
23954
 
23955
  /***/ }),
23956
- /* 375 */
23957
  /***/ (function(module, exports, __webpack_require__) {
23958
 
23959
  "use strict";
@@ -24264,7 +24608,7 @@ function clonePath(path) {
24264
 
24265
 
24266
  /***/ }),
24267
- /* 376 */
24268
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
24269
 
24270
  "use strict";
@@ -24290,7 +24634,7 @@ const grid = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createEleme
24290
  //# sourceMappingURL=grid.js.map
24291
 
24292
  /***/ }),
24293
- /* 377 */
24294
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
24295
 
24296
  "use strict";
@@ -24314,7 +24658,7 @@ const media = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElem
24314
  //# sourceMappingURL=media.js.map
24315
 
24316
  /***/ }),
24317
- /* 378 */
24318
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
24319
 
24320
  "use strict";
@@ -24338,16 +24682,6 @@ const arrowLeft = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["create
24338
  //# sourceMappingURL=arrow-left.js.map
24339
 
24340
  /***/ }),
24341
- /* 379 */,
24342
- /* 380 */,
24343
- /* 381 */,
24344
- /* 382 */,
24345
- /* 383 */,
24346
- /* 384 */,
24347
- /* 385 */,
24348
- /* 386 */,
24349
- /* 387 */,
24350
- /* 388 */,
24351
  /* 389 */,
24352
  /* 390 */,
24353
  /* 391 */,
@@ -24447,7 +24781,16 @@ const arrowLeft = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["create
24447
  /* 485 */,
24448
  /* 486 */,
24449
  /* 487 */,
24450
- /* 488 */
 
 
 
 
 
 
 
 
 
24451
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
24452
 
24453
  "use strict";
@@ -24584,7 +24927,7 @@ __webpack_require__.d(__webpack_exports__, "__unstableIframe", function() { retu
24584
  __webpack_require__.d(__webpack_exports__, "__experimentalUseNoRecursiveRenders", function() { return /* reexport */ useNoRecursiveRenders; });
24585
  __webpack_require__.d(__webpack_exports__, "BlockEditorProvider", function() { return /* reexport */ provider["a" /* default */]; });
24586
  __webpack_require__.d(__webpack_exports__, "__experimentalUseSimulatedMediaQuery", function() { return /* reexport */ useSimulatedMediaQuery; });
24587
- __webpack_require__.d(__webpack_exports__, "useSetting", function() { return /* reexport */ useSetting; });
24588
  __webpack_require__.d(__webpack_exports__, "transformStyles", function() { return /* reexport */ transform_styles; });
24589
  __webpack_require__.d(__webpack_exports__, "validateThemeColors", function() { return /* reexport */ validateThemeColors; });
24590
  __webpack_require__.d(__webpack_exports__, "validateThemeGradients", function() { return /* reexport */ validateThemeGradients; });
@@ -24616,7 +24959,7 @@ var external_wp_hooks_ = __webpack_require__(21);
24616
  var external_wp_blocks_ = __webpack_require__(8);
24617
 
24618
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-controls/index.js + 3 modules
24619
- var block_controls = __webpack_require__(103);
24620
 
24621
  // EXTERNAL MODULE: external ["wp","i18n"]
24622
  var external_wp_i18n_ = __webpack_require__(1);
@@ -24642,21 +24985,9 @@ const positionLeft = Object(external_wp_element_["createElement"])(external_wp_p
24642
  }));
24643
  /* harmony default export */ var position_left = (positionLeft);
24644
  //# sourceMappingURL=position-left.js.map
24645
- // CONCATENATED MODULE: ./packages/icons/build-module/library/position-center.js
24646
-
24647
-
24648
- /**
24649
- * WordPress dependencies
24650
- */
24651
 
24652
- const positionCenter = Object(external_wp_element_["createElement"])(external_wp_primitives_["SVG"], {
24653
- xmlns: "http://www.w3.org/2000/svg",
24654
- viewBox: "0 0 24 24"
24655
- }, Object(external_wp_element_["createElement"])(external_wp_primitives_["Path"], {
24656
- d: "M5 15h14V9H5v6zm0 4.8h14v-1.5H5v1.5zM5 4.2v1.5h14V4.2H5z"
24657
- }));
24658
- /* harmony default export */ var position_center = (positionCenter);
24659
- //# sourceMappingURL=position-center.js.map
24660
  // CONCATENATED MODULE: ./packages/icons/build-module/library/position-right.js
24661
 
24662
 
@@ -24672,21 +25003,9 @@ const positionRight = Object(external_wp_element_["createElement"])(external_wp_
24672
  }));
24673
  /* harmony default export */ var position_right = (positionRight);
24674
  //# sourceMappingURL=position-right.js.map
24675
- // CONCATENATED MODULE: ./packages/icons/build-module/library/stretch-wide.js
24676
-
24677
-
24678
- /**
24679
- * WordPress dependencies
24680
- */
24681
 
24682
- const stretchWide = Object(external_wp_element_["createElement"])(external_wp_primitives_["SVG"], {
24683
- xmlns: "http://www.w3.org/2000/svg",
24684
- viewBox: "0 0 24 24"
24685
- }, Object(external_wp_element_["createElement"])(external_wp_primitives_["Path"], {
24686
- d: "M5 9v6h14V9H5zm11-4.8H8v1.5h8V4.2zM8 19.8h8v-1.5H8v1.5z"
24687
- }));
24688
- /* harmony default export */ var stretch_wide = (stretchWide);
24689
- //# sourceMappingURL=stretch-wide.js.map
24690
  // CONCATENATED MODULE: ./packages/icons/build-module/library/stretch-full-width.js
24691
 
24692
 
@@ -24706,11 +25025,14 @@ const stretchFullWidth = Object(external_wp_element_["createElement"])(external_
24706
  var external_wp_data_ = __webpack_require__(4);
24707
 
24708
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-list/layout.js
24709
- var block_list_layout = __webpack_require__(112);
24710
 
24711
  // EXTERNAL MODULE: ./packages/block-editor/build-module/store/index.js + 5 modules
24712
  var store = __webpack_require__(13);
24713
 
 
 
 
24714
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-alignment-control/use-available-alignments.js
24715
  /**
24716
  * WordPress dependencies
@@ -24722,24 +25044,33 @@ var store = __webpack_require__(13);
24722
 
24723
 
24724
 
 
24725
  const DEFAULT_CONTROLS = ['left', 'center', 'right', 'wide', 'full'];
24726
  const WIDE_CONTROLS = ['wide', 'full'];
24727
  function useAvailableAlignments(controls = DEFAULT_CONTROLS) {
24728
  const {
24729
- wideControlsEnabled = false
 
24730
  } = Object(external_wp_data_["useSelect"])(select => {
24731
  const {
24732
  getSettings
24733
  } = select(store["a" /* store */]);
24734
  const settings = getSettings();
24735
  return {
24736
- wideControlsEnabled: settings.alignWide
 
24737
  };
24738
  }, []);
24739
  const layout = Object(block_list_layout["d" /* useLayout */])();
24740
- const supportsAlignments = layout.type === 'default';
 
 
 
 
 
 
24741
 
24742
- if (!supportsAlignments) {
24743
  return [];
24744
  }
24745
 
@@ -24772,7 +25103,7 @@ const BLOCK_ALIGNMENTS_CONTROLS = {
24772
  title: Object(external_wp_i18n_["__"])('Align left')
24773
  },
24774
  center: {
24775
- icon: position_center,
24776
  title: Object(external_wp_i18n_["__"])('Align center')
24777
  },
24778
  right: {
@@ -24780,7 +25111,7 @@ const BLOCK_ALIGNMENTS_CONTROLS = {
24780
  title: Object(external_wp_i18n_["__"])('Align right')
24781
  },
24782
  wide: {
24783
- icon: stretch_wide,
24784
  title: Object(external_wp_i18n_["__"])('Wide width')
24785
  },
24786
  full: {
@@ -25111,7 +25442,7 @@ InspectorAdvancedControls.Slot = Slot;
25111
  /* harmony default export */ var inspector_advanced_controls = (InspectorAdvancedControls);
25112
  //# sourceMappingURL=index.js.map
25113
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/use-display-block-controls/index.js
25114
- var use_display_block_controls = __webpack_require__(153);
25115
 
25116
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/inspector-controls/index.js
25117
 
@@ -25456,105 +25787,11 @@ function addGeneratedClassName(extraProps, blockType) {
25456
  }
25457
  Object(external_wp_hooks_["addFilter"])('blocks.getSaveContent.extraProps', 'core/generated-class-name/save-props', addGeneratedClassName);
25458
  //# sourceMappingURL=generated-class-name.js.map
25459
- // CONCATENATED MODULE: ./packages/block-editor/build-module/components/use-setting/index.js
25460
- /**
25461
- * External dependencies
25462
- */
25463
-
25464
- /**
25465
- * WordPress dependencies
25466
- */
25467
-
25468
-
25469
- /**
25470
- * Internal dependencies
25471
- */
25472
 
25473
-
25474
-
25475
- const deprecatedFlags = {
25476
- 'color.palette': settings => settings.colors === undefined ? undefined : settings.colors,
25477
- 'color.gradients': settings => settings.gradients === undefined ? undefined : settings.gradients,
25478
- 'color.custom': settings => settings.disableCustomColors === undefined ? undefined : !settings.disableCustomColors,
25479
- 'color.customGradient': settings => settings.disableCustomGradients === undefined ? undefined : !settings.disableCustomGradients,
25480
- 'typography.fontSizes': settings => settings.fontSizes === undefined ? undefined : settings.fontSizes,
25481
- 'typography.customFontSize': settings => settings.disableCustomFontSizes === undefined ? undefined : !settings.disableCustomFontSizes,
25482
- 'typography.customLineHeight': settings => settings.enableCustomLineHeight,
25483
- 'spacing.units': settings => {
25484
- if (settings.enableCustomUnits === undefined) {
25485
- return;
25486
- }
25487
-
25488
- if (settings.enableCustomUnits === true) {
25489
- return ['px', 'em', 'rem', 'vh', 'vw', '%'];
25490
- }
25491
-
25492
- return settings.enableCustomUnits;
25493
- },
25494
- 'spacing.customPadding': settings => settings.enableCustomSpacing
25495
- };
25496
- const PATHS_WITH_MERGE = {
25497
- 'color.gradients': true,
25498
- 'color.palette': true,
25499
- 'typography.fontFamilies': true,
25500
- 'typography.fontSizes': true
25501
- };
25502
- /**
25503
- * Hook that retrieves the editor setting.
25504
- * It works with nested objects using by finding the value at path.
25505
- *
25506
- * @param {string} path The path to the setting.
25507
- *
25508
- * @return {any} Returns the value defined for the setting.
25509
- *
25510
- * @example
25511
- * ```js
25512
- * const isEnabled = useSetting( 'typography.dropCap' );
25513
- * ```
25514
- */
25515
-
25516
- function useSetting(path) {
25517
- const {
25518
- name: blockName
25519
- } = Object(block_edit_context["b" /* useBlockEditContext */])();
25520
- const setting = Object(external_wp_data_["useSelect"])(select => {
25521
- var _get;
25522
-
25523
- const settings = select(store["a" /* store */]).getSettings(); // 1 - Use __experimental features, if available.
25524
- // We cascade to the all value if the block one is not available.
25525
-
25526
- const defaultsPath = `__experimentalFeatures.${path}`;
25527
- const blockPath = `__experimentalFeatures.blocks.${blockName}.${path}`;
25528
- const experimentalFeaturesResult = (_get = Object(external_lodash_["get"])(settings, blockPath)) !== null && _get !== void 0 ? _get : Object(external_lodash_["get"])(settings, defaultsPath);
25529
-
25530
- if (experimentalFeaturesResult !== undefined) {
25531
- if (PATHS_WITH_MERGE[path]) {
25532
- var _ref, _experimentalFeatures;
25533
-
25534
- return (_ref = (_experimentalFeatures = experimentalFeaturesResult.user) !== null && _experimentalFeatures !== void 0 ? _experimentalFeatures : experimentalFeaturesResult.theme) !== null && _ref !== void 0 ? _ref : experimentalFeaturesResult.core;
25535
- }
25536
-
25537
- return experimentalFeaturesResult;
25538
- } // 2 - Use deprecated settings, otherwise.
25539
-
25540
-
25541
- const deprecatedSettingsValue = deprecatedFlags[path] ? deprecatedFlags[path](settings) : undefined;
25542
-
25543
- if (deprecatedSettingsValue !== undefined) {
25544
- return deprecatedSettingsValue;
25545
- } // 3 - Fall back for typography.dropCap:
25546
- // This is only necessary to support typography.dropCap.
25547
- // when __experimentalFeatures are not present (core without plugin).
25548
- // To remove when __experimentalFeatures are ported to core.
25549
-
25550
-
25551
- return path === 'typography.dropCap' ? true : undefined;
25552
- }, [blockName, path]);
25553
- return setting;
25554
- }
25555
- //# sourceMappingURL=index.js.map
25556
  // EXTERNAL MODULE: ./node_modules/tinycolor2/tinycolor.js
25557
- var tinycolor = __webpack_require__(42);
25558
  var tinycolor_default = /*#__PURE__*/__webpack_require__.n(tinycolor);
25559
 
25560
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/colors/utils.js
@@ -25699,7 +25936,7 @@ function __experimentalUseGradient({
25699
  const {
25700
  clientId
25701
  } = Object(block_edit_context["b" /* useBlockEditContext */])();
25702
- const gradients = useSetting('color.gradients') || EMPTY_ARRAY;
25703
  const {
25704
  gradient,
25705
  customGradient
@@ -25876,10 +26113,10 @@ function ColorGradientControlInner({
25876
 
25877
  function ColorGradientControlSelect(props) {
25878
  const colorGradientSettings = {};
25879
- colorGradientSettings.colors = useSetting('color.palette');
25880
- colorGradientSettings.gradients = useSetting('color.gradients');
25881
- colorGradientSettings.disableCustomColors = !useSetting('color.custom');
25882
- colorGradientSettings.disableCustomGradients = !useSetting('color.customGradient');
25883
  return Object(external_wp_element_["createElement"])(ColorGradientControlInner, Object(esm_extends["a" /* default */])({}, colorGradientSettings, props));
25884
  }
25885
 
@@ -25965,9 +26202,9 @@ function BorderColorEdit(props) {
25965
  },
25966
  setAttributes
25967
  } = props;
25968
- const colors = useSetting('color.palette') || border_color_EMPTY_ARRAY;
25969
- const disableCustomColors = !useSetting('color.custom');
25970
- const disableCustomGradients = !useSetting('color.customGradient');
25971
 
25972
  const onChangeColor = value => {
25973
  const colorObject = getColorObjectByColorValue(colors, value);
@@ -26103,7 +26340,7 @@ const withBorderColorPaletteStyles = Object(external_wp_compose_["createHigherOr
26103
  const {
26104
  borderColor
26105
  } = attributes;
26106
- const colors = useSetting('color.palette') || border_color_EMPTY_ARRAY;
26107
 
26108
  if (!hasBorderSupport(name, 'color') || shouldSkipSerialization(name)) {
26109
  return Object(external_wp_element_["createElement"])(BlockListBlock, props);
@@ -26307,10 +26544,10 @@ function BoxInputControls({
26307
  }
26308
  //# sourceMappingURL=input-controls.js.map
26309
  // EXTERNAL MODULE: ./packages/icons/build-module/library/link.js
26310
- var library_link = __webpack_require__(240);
26311
 
26312
  // EXTERNAL MODULE: ./packages/icons/build-module/library/link-off.js
26313
- var link_off = __webpack_require__(241);
26314
 
26315
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/border-radius-control/linked-button.js
26316
 
@@ -26386,7 +26623,7 @@ function BorderRadiusControl({
26386
  }) {
26387
  const [isLinked, setIsLinked] = Object(external_wp_element_["useState"])(!hasDefinedValues(values) || !hasMixedValues(values));
26388
  const units = Object(external_wp_components_["__experimentalUseCustomUnits"])({
26389
- availableUnits: useSetting('spacing.units') || ['px', 'em', 'rem']
26390
  });
26391
  const unit = getAllUnit(values);
26392
  const unitConfig = units && units.find(item => item.value === unit);
@@ -26725,7 +26962,7 @@ const BorderWidthEdit = props => {
26725
  };
26726
 
26727
  const units = Object(external_wp_components_["__experimentalUseCustomUnits"])({
26728
- availableUnits: useSetting('spacing.units') || ['px', 'em', 'rem']
26729
  });
26730
  return Object(external_wp_element_["createElement"])(external_wp_components_["__experimentalUnitControl"], {
26731
  value: width,
@@ -26760,10 +26997,10 @@ const BORDER_SUPPORT_KEY = '__experimentalBorder';
26760
  function BorderPanel(props) {
26761
  const isDisabled = useIsBorderDisabled(props);
26762
  const isSupported = hasBorderSupport(props.name);
26763
- const isColorSupported = useSetting('border.customColor') && hasBorderSupport(props.name, 'color');
26764
- const isRadiusSupported = useSetting('border.customRadius') && hasBorderSupport(props.name, 'radius');
26765
- const isStyleSupported = useSetting('border.customStyle') && hasBorderSupport(props.name, 'style');
26766
- const isWidthSupported = useSetting('border.customWidth') && hasBorderSupport(props.name, 'width');
26767
 
26768
  if (isDisabled || !isSupported) {
26769
  return null;
@@ -26822,7 +27059,7 @@ function shouldSkipSerialization(blockType) {
26822
  */
26823
 
26824
  const useIsBorderDisabled = () => {
26825
- const configs = [!useSetting('border.customColor'), !useSetting('border.customRadius'), !useSetting('border.customStyle'), !useSetting('border.customWidth')];
26826
  return configs.every(Boolean);
26827
  };
26828
  //# sourceMappingURL=border.js.map
@@ -26928,10 +27165,10 @@ const PanelColorGradientSettingsInner = ({
26928
 
26929
  const PanelColorGradientSettingsSelect = props => {
26930
  const colorGradientSettings = {};
26931
- colorGradientSettings.colors = useSetting('color.palette');
26932
- colorGradientSettings.gradients = useSetting('color.gradients');
26933
- colorGradientSettings.disableCustomColors = !useSetting('color.custom');
26934
- colorGradientSettings.disableCustomGradients = !useSetting('color.customGradient');
26935
  return Object(external_wp_element_["createElement"])(PanelColorGradientSettingsInner, Object(esm_extends["a" /* default */])({}, colorGradientSettings, props));
26936
  };
26937
 
@@ -26946,7 +27183,7 @@ const PanelColorGradientSettings = props => {
26946
  /* harmony default export */ var panel_color_gradient_settings = (PanelColorGradientSettings);
26947
  //# sourceMappingURL=panel-color-gradient-settings.js.map
26948
  // EXTERNAL MODULE: external ["wp","a11y"]
26949
- var external_wp_a11y_ = __webpack_require__(31);
26950
 
26951
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/contrast-checker/index.js
26952
 
@@ -27022,7 +27259,7 @@ function ContrastChecker({
27022
  /* harmony default export */ var contrast_checker = (ContrastChecker);
27023
  //# sourceMappingURL=index.js.map
27024
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-list/use-block-props/use-block-refs.js
27025
- var use_block_refs = __webpack_require__(71);
27026
 
27027
  // CONCATENATED MODULE: ./packages/block-editor/build-module/hooks/color-panel.js
27028
 
@@ -27287,11 +27524,11 @@ function ColorEdit(props) {
27287
  name: blockName,
27288
  attributes
27289
  } = props;
27290
- const solids = useSetting('color.palette') || color_EMPTY_ARRAY;
27291
- const gradients = useSetting('color.gradients') || color_EMPTY_ARRAY;
27292
- const areCustomSolidsEnabled = useSetting('color.custom');
27293
- const areCustomGradientsEnabled = useSetting('color.customGradient');
27294
- const isLinkEnabled = useSetting('color.link'); // Shouldn't be needed but right now the ColorGradientsPanel
27295
  // can trigger both onChangeColor and onChangeBackground
27296
  // synchronously causing our two callbacks to override changes
27297
  // from each other.
@@ -27438,7 +27675,7 @@ const withColorPaletteStyles = Object(external_wp_compose_["createHigherOrderCom
27438
  backgroundColor,
27439
  textColor
27440
  } = attributes;
27441
- const colors = useSetting('color.palette') || color_EMPTY_ARRAY;
27442
 
27443
  if (!hasColorSupport(name) || color_shouldSkipSerialization(name)) {
27444
  return Object(external_wp_element_["createElement"])(BlockListBlock, props);
@@ -27479,7 +27716,7 @@ const formatUnderline = Object(external_wp_element_["createElement"])(external_w
27479
  /* harmony default export */ var format_underline = (formatUnderline);
27480
  //# sourceMappingURL=format-underline.js.map
27481
  // EXTERNAL MODULE: ./packages/icons/build-module/library/format-strikethrough.js
27482
- var format_strikethrough = __webpack_require__(370);
27483
 
27484
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/text-decoration-control/index.js
27485
 
@@ -27599,7 +27836,7 @@ function useIsTextDecorationDisabled({
27599
  name: blockName
27600
  } = {}) {
27601
  const notSupported = !Object(external_wp_blocks_["hasBlockSupport"])(blockName, TEXT_DECORATION_SUPPORT_KEY);
27602
- const hasTextDecoration = useSetting('typography.customTextDecorations');
27603
  return notSupported || !hasTextDecoration;
27604
  }
27605
  //# sourceMappingURL=text-decoration.js.map
@@ -27770,7 +28007,7 @@ function useIsTextTransformDisabled({
27770
  name: blockName
27771
  } = {}) {
27772
  const notSupported = !Object(external_wp_blocks_["hasBlockSupport"])(blockName, TEXT_TRANSFORM_SUPPORT_KEY);
27773
- const hasTextTransforms = useSetting('typography.customTextTransforms');
27774
  return notSupported || !hasTextTransforms;
27775
  }
27776
  //# sourceMappingURL=text-transform.js.map
@@ -27981,7 +28218,7 @@ function LineHeightEdit(props) {
27981
  function useIsLineHeightDisabled({
27982
  name: blockName
27983
  } = {}) {
27984
- const isDisabled = !useSetting('typography.customLineHeight');
27985
  return !Object(external_wp_blocks_["hasBlockSupport"])(blockName, LINE_HEIGHT_SUPPORT_KEY) || isDisabled;
27986
  }
27987
  //# sourceMappingURL=line-height.js.map
@@ -28242,7 +28479,7 @@ function useIsFontStyleDisabled({
28242
  name: blockName
28243
  } = {}) {
28244
  const styleSupport = Object(external_wp_blocks_["hasBlockSupport"])(blockName, FONT_STYLE_SUPPORT_KEY);
28245
- const hasFontStyles = useSetting('typography.customFontStyle');
28246
  return !styleSupport || !hasFontStyles;
28247
  }
28248
  /**
@@ -28259,7 +28496,7 @@ function useIsFontWeightDisabled({
28259
  name: blockName
28260
  } = {}) {
28261
  const weightSupport = Object(external_wp_blocks_["hasBlockSupport"])(blockName, FONT_WEIGHT_SUPPORT_KEY);
28262
- const hasFontWeights = useSetting('typography.customFontWeight');
28263
  return !weightSupport || !hasFontWeights;
28264
  }
28265
  /**
@@ -28301,7 +28538,7 @@ function FontFamilyControl({
28301
  fontFamilies,
28302
  ...props
28303
  }) {
28304
- const blockLevelFontFamilies = useSetting('typography.fontFamilies');
28305
 
28306
  if (!fontFamilies) {
28307
  fontFamilies = blockLevelFontFamilies;
@@ -28380,7 +28617,7 @@ function FontFamilyEdit({
28380
  }) {
28381
  var _style$typography;
28382
 
28383
- const fontFamilies = useSetting('typography.fontFamilies');
28384
  const isDisable = useIsFontFamilyDisabled({
28385
  name
28386
  });
@@ -28421,12 +28658,12 @@ function FontFamilyEdit({
28421
  function useIsFontFamilyDisabled({
28422
  name
28423
  }) {
28424
- const fontFamilies = useSetting('typography.fontFamilies');
28425
  return !fontFamilies || fontFamilies.length === 0 || !Object(external_wp_blocks_["hasBlockSupport"])(name, FONT_FAMILY_SUPPORT_KEY);
28426
  }
28427
  //# sourceMappingURL=font-family.js.map
28428
  // EXTERNAL MODULE: external ["wp","tokenList"]
28429
- var external_wp_tokenList_ = __webpack_require__(186);
28430
  var external_wp_tokenList_default = /*#__PURE__*/__webpack_require__.n(external_wp_tokenList_);
28431
 
28432
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/font-sizes/utils.js
@@ -28515,8 +28752,8 @@ function getFontSizeClass(fontSizeSlug) {
28515
 
28516
 
28517
  function FontSizePicker(props) {
28518
- const fontSizes = useSetting('typography.fontSizes');
28519
- const disableCustomFontSizes = !useSetting('typography.customFontSize');
28520
  return Object(external_wp_element_["createElement"])(external_wp_components_["FontSizePicker"], Object(esm_extends["a" /* default */])({}, props, {
28521
  fontSizes: fontSizes,
28522
  disableCustomFontSizes: disableCustomFontSizes
@@ -28644,7 +28881,7 @@ function FontSizeEdit(props) {
28644
  setAttributes
28645
  } = props;
28646
  const isDisabled = useIsFontSizeDisabled(props);
28647
- const fontSizes = useSetting('typography.fontSizes');
28648
 
28649
  const onChange = value => {
28650
  const fontSizeSlug = getFontSizeObjectByValue(fontSizes, value).slug;
@@ -28679,7 +28916,7 @@ function FontSizeEdit(props) {
28679
  function useIsFontSizeDisabled({
28680
  name: blockName
28681
  } = {}) {
28682
- const fontSizes = useSetting('typography.fontSizes');
28683
  const hasFontSizes = !!(fontSizes !== null && fontSizes !== void 0 && fontSizes.length);
28684
  return !Object(external_wp_blocks_["hasBlockSupport"])(blockName, FONT_SIZE_SUPPORT_KEY) || !hasFontSizes;
28685
  }
@@ -28696,7 +28933,7 @@ function useIsFontSizeDisabled({
28696
  const withFontSizeInlineStyles = Object(external_wp_compose_["createHigherOrderComponent"])(BlockListBlock => props => {
28697
  var _style$typography3, _style$typography4;
28698
 
28699
- const fontSizes = useSetting('typography.fontSizes');
28700
  const {
28701
  name: blockName,
28702
  attributes: {
@@ -28756,7 +28993,7 @@ function LetterSpacingControl({
28756
  onChange
28757
  }) {
28758
  const units = Object(external_wp_components_["__experimentalUseCustomUnits"])({
28759
- availableUnits: useSetting('spacing.units') || ['px', 'em', 'rem'],
28760
  defaultValues: {
28761
  px: '2',
28762
  em: '.2',
@@ -28840,7 +29077,7 @@ function useIsLetterSpacingDisabled({
28840
  name: blockName
28841
  } = {}) {
28842
  const notSupported = !Object(external_wp_blocks_["hasBlockSupport"])(blockName, LETTER_SPACING_SUPPORT_KEY);
28843
- const hasLetterSpacing = useSetting('typography.customLetterSpacing');
28844
  return notSupported || !hasLetterSpacing;
28845
  }
28846
  //# sourceMappingURL=letter-spacing.js.map
@@ -28931,7 +29168,7 @@ function hasMarginSupport(blockType) {
28931
  function useIsMarginDisabled({
28932
  name: blockName
28933
  } = {}) {
28934
- const isDisabled = !useSetting('spacing.customMargin');
28935
  return !hasMarginSupport(blockName) || isDisabled;
28936
  }
28937
  /**
@@ -28953,7 +29190,7 @@ function MarginEdit(props) {
28953
  setAttributes
28954
  } = props;
28955
  const units = Object(external_wp_components_["__experimentalUseCustomUnits"])({
28956
- availableUnits: useSetting('spacing.units') || ['%', 'px', 'em', 'rem', 'vw']
28957
  });
28958
  const sides = useCustomSides(blockName, 'margin');
28959
 
@@ -29036,7 +29273,7 @@ function hasPaddingSupport(blockType) {
29036
  function useIsPaddingDisabled({
29037
  name: blockName
29038
  } = {}) {
29039
- const isDisabled = !useSetting('spacing.customPadding');
29040
  return !hasPaddingSupport(blockName) || isDisabled;
29041
  }
29042
  /**
@@ -29058,7 +29295,7 @@ function PaddingEdit(props) {
29058
  setAttributes
29059
  } = props;
29060
  const units = Object(external_wp_components_["__experimentalUseCustomUnits"])({
29061
- availableUnits: useSetting('spacing.units') || ['%', 'px', 'em', 'rem', 'vw']
29062
  });
29063
  const sides = useCustomSides(blockName, 'padding');
29064
 
@@ -29479,7 +29716,6 @@ function DuotoneControl({
29479
  const openOnArrowDown = event => {
29480
  if (!isOpen && event.keyCode === external_wp_keycodes_["DOWN"]) {
29481
  event.preventDefault();
29482
- event.stopPropagation();
29483
  onToggle();
29484
  }
29485
  };
@@ -29508,7 +29744,7 @@ function DuotoneControl({
29508
  /* harmony default export */ var duotone_control = (DuotoneControl);
29509
  //# sourceMappingURL=index.js.map
29510
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-list/head.js
29511
- var block_list_head = __webpack_require__(154);
29512
 
29513
  // CONCATENATED MODULE: ./packages/block-editor/build-module/hooks/duotone.js
29514
 
@@ -29635,10 +29871,10 @@ function DuotonePanel({
29635
 
29636
  const style = attributes === null || attributes === void 0 ? void 0 : attributes.style;
29637
  const duotone = style === null || style === void 0 ? void 0 : (_style$color = style.color) === null || _style$color === void 0 ? void 0 : _style$color.duotone;
29638
- const duotonePalette = useSetting('color.duotone') || duotone_EMPTY_ARRAY;
29639
- const colorPalette = useSetting('color.palette') || duotone_EMPTY_ARRAY;
29640
- const disableCustomColors = !useSetting('color.custom');
29641
- const disableCustomDuotone = !useSetting('color.customDuotone') || (colorPalette === null || colorPalette === void 0 ? void 0 : colorPalette.length) === 0 && disableCustomColors;
29642
 
29643
  if ((duotonePalette === null || duotonePalette === void 0 ? void 0 : duotonePalette.length) === 0 && disableCustomDuotone) {
29644
  return null;
@@ -29741,9 +29977,6 @@ Object(external_wp_hooks_["addFilter"])('blocks.registerBlockType', 'core/editor
29741
  Object(external_wp_hooks_["addFilter"])('editor.BlockEdit', 'core/editor/duotone/with-editor-controls', withDuotoneControls);
29742
  Object(external_wp_hooks_["addFilter"])('editor.BlockListBlock', 'core/editor/duotone/with-styles', withDuotoneStyles);
29743
  //# sourceMappingURL=duotone.js.map
29744
- // EXTERNAL MODULE: ./packages/icons/build-module/icon/index.js
29745
- var build_module_icon = __webpack_require__(109);
29746
-
29747
  // CONCATENATED MODULE: ./packages/block-editor/build-module/hooks/layout.js
29748
 
29749
 
@@ -29764,7 +29997,6 @@ var build_module_icon = __webpack_require__(109);
29764
 
29765
 
29766
 
29767
-
29768
  /**
29769
  * Internal dependencies
29770
  */
@@ -29775,33 +30007,50 @@ var build_module_icon = __webpack_require__(109);
29775
 
29776
 
29777
 
 
 
 
 
 
 
 
29778
  function LayoutPanel({
29779
  setAttributes,
29780
- attributes
 
29781
  }) {
29782
  const {
29783
  layout = {}
29784
  } = attributes;
29785
- const {
29786
- wideSize,
29787
- contentSize,
29788
- inherit = false
29789
- } = layout;
29790
- const defaultLayout = useSetting('layout');
29791
  const themeSupportsLayout = Object(external_wp_data_["useSelect"])(select => {
29792
  const {
29793
  getSettings
29794
  } = select(store["a" /* store */]);
29795
  return getSettings().supportsLayout;
29796
  }, []);
29797
- const units = Object(external_wp_components_["__experimentalUseCustomUnits"])({
29798
- availableUnits: useSetting('spacing.units') || ['%', 'px', 'em', 'rem', 'vw']
29799
- });
29800
 
29801
  if (!themeSupportsLayout) {
29802
  return null;
29803
  }
29804
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
29805
  return Object(external_wp_element_["createElement"])(inspector_controls, null, Object(external_wp_element_["createElement"])(external_wp_components_["PanelBody"], {
29806
  title: Object(external_wp_i18n_["__"])('Layout')
29807
  }, !!defaultLayout && Object(external_wp_element_["createElement"])(external_wp_components_["ToggleControl"], {
@@ -29812,60 +30061,29 @@ function LayoutPanel({
29812
  inherit: !inherit
29813
  }
29814
  })
29815
- }), !inherit && Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, Object(external_wp_element_["createElement"])("div", {
29816
- className: "block-editor-hooks__layout-controls"
29817
- }, Object(external_wp_element_["createElement"])("div", {
29818
- className: "block-editor-hooks__layout-controls-unit"
29819
- }, Object(external_wp_element_["createElement"])(external_wp_components_["__experimentalUnitControl"], {
29820
- label: Object(external_wp_i18n_["__"])('Content'),
29821
- labelPosition: "top",
29822
- __unstableInputWidth: "80px",
29823
- value: contentSize || wideSize || '',
29824
- onChange: nextWidth => {
29825
- nextWidth = 0 > parseFloat(nextWidth) ? '0' : nextWidth;
29826
- setAttributes({
29827
- layout: { ...layout,
29828
- contentSize: nextWidth
29829
- }
29830
- });
29831
- },
29832
- units: units
29833
- }), Object(external_wp_element_["createElement"])(build_module_icon["a" /* default */], {
29834
- icon: position_center
29835
- })), Object(external_wp_element_["createElement"])("div", {
29836
- className: "block-editor-hooks__layout-controls-unit"
29837
- }, Object(external_wp_element_["createElement"])(external_wp_components_["__experimentalUnitControl"], {
29838
- label: Object(external_wp_i18n_["__"])('Wide'),
29839
- labelPosition: "top",
29840
- __unstableInputWidth: "80px",
29841
- value: wideSize || contentSize || '',
29842
- onChange: nextWidth => {
29843
- nextWidth = 0 > parseFloat(nextWidth) ? '0' : nextWidth;
29844
- setAttributes({
29845
- layout: { ...layout,
29846
- wideSize: nextWidth
29847
- }
29848
- });
29849
- },
29850
- units: units
29851
- }), Object(external_wp_element_["createElement"])(build_module_icon["a" /* default */], {
29852
- icon: stretch_wide
29853
- }))), Object(external_wp_element_["createElement"])("div", {
29854
- className: "block-editor-hooks__layout-controls-reset"
29855
- }, Object(external_wp_element_["createElement"])(external_wp_components_["Button"], {
29856
- variant: "secondary",
29857
- isSmall: true,
29858
- disabled: !contentSize && !wideSize,
29859
- onClick: () => setAttributes({
29860
- layout: {
29861
- contentSize: undefined,
29862
- wideSize: undefined,
29863
- inherit: false
29864
- }
29865
- })
29866
- }, Object(external_wp_i18n_["__"])('Reset')))), Object(external_wp_element_["createElement"])("p", {
29867
- className: "block-editor-hooks__layout-controls-helptext"
29868
- }, Object(external_wp_i18n_["__"])('Customize the width for all elements that are assigned to the center or wide columns.'))));
29869
  }
29870
  /**
29871
  * Filters registered block settings, extending attributes to include `layout`.
@@ -29881,7 +30099,7 @@ function layout_addAttribute(settings) {
29881
  return settings;
29882
  }
29883
 
29884
- if (Object(external_wp_blocks_["hasBlockSupport"])(settings, '__experimentalLayout')) {
29885
  settings.attributes = { ...settings.attributes,
29886
  layout: {
29887
  type: 'object'
@@ -29903,7 +30121,7 @@ const withInspectorControls = Object(external_wp_compose_["createHigherOrderComp
29903
  const {
29904
  name: blockName
29905
  } = props;
29906
- const supportLayout = Object(external_wp_blocks_["hasBlockSupport"])(blockName, '__experimentalLayout');
29907
  return [supportLayout && Object(external_wp_element_["createElement"])(LayoutPanel, Object(esm_extends["a" /* default */])({
29908
  key: "layout"
29909
  }, props)), Object(external_wp_element_["createElement"])(BlockEdit, Object(esm_extends["a" /* default */])({
@@ -29923,9 +30141,9 @@ const withLayoutStyles = Object(external_wp_compose_["createHigherOrderComponent
29923
  name,
29924
  attributes
29925
  } = props;
29926
- const supportLayout = Object(external_wp_blocks_["hasBlockSupport"])(name, '__experimentalLayout');
29927
  const id = Object(external_wp_compose_["useInstanceId"])(BlockListBlock);
29928
- const defaultLayout = useSetting('layout') || {};
29929
 
29930
  if (!supportLayout) {
29931
  return Object(external_wp_element_["createElement"])(BlockListBlock, props);
@@ -30007,7 +30225,7 @@ function getBorderClassesAndStyles({
30007
  */
30008
 
30009
  function useBorderProps(attributes) {
30010
- const colors = useSetting('color.palette') || use_border_props_EMPTY_ARRAY;
30011
  const borderProps = getBorderClassesAndStyles(attributes); // Force inline style to apply border color when themes do not load their
30012
  // color stylesheets in the editor.
30013
 
@@ -30100,8 +30318,8 @@ function useColorProps(attributes) {
30100
  textColor,
30101
  gradient
30102
  } = attributes;
30103
- const colors = useSetting('color.palette') || use_color_props_EMPTY_ARRAY;
30104
- const gradients = useSetting('color.gradients') || use_color_props_EMPTY_ARRAY;
30105
  const colorProps = getColorClassesAndStyles(attributes); // Force inline styles to apply colors when themes do not load their color
30106
  // stylesheets in the editor.
30107
 
@@ -30182,7 +30400,7 @@ const withCustomColorPalette = colorsArray => Object(external_wp_compose_["creat
30182
 
30183
 
30184
  const withEditorColorPalette = () => Object(external_wp_compose_["createHigherOrderComponent"])(WrappedComponent => props => {
30185
- const colors = useSetting('color.palette') || DEFAULT_COLORS;
30186
  return Object(external_wp_element_["createElement"])(WrappedComponent, Object(esm_extends["a" /* default */])({}, props, {
30187
  colors: colors
30188
  }));
@@ -30390,7 +30608,7 @@ const DEFAULT_FONT_SIZES = [];
30390
  return fontSizeAttributeNamesAccumulator;
30391
  }, {});
30392
  return Object(external_wp_compose_["createHigherOrderComponent"])(Object(external_wp_compose_["compose"])([Object(external_wp_compose_["createHigherOrderComponent"])(WrappedComponent => props => {
30393
- const fontSizes = useSetting('typography.fontSizes') || DEFAULT_FONT_SIZES;
30394
  return Object(external_wp_element_["createElement"])(WrappedComponent, Object(esm_extends["a" /* default */])({}, props, {
30395
  fontSizes: fontSizes
30396
  }));
@@ -30474,13 +30692,13 @@ const DEFAULT_FONT_SIZES = [];
30474
 
30475
  //# sourceMappingURL=index.js.map
30476
  // EXTERNAL MODULE: ./packages/icons/build-module/library/align-left.js
30477
- var align_left = __webpack_require__(371);
30478
 
30479
  // EXTERNAL MODULE: ./packages/icons/build-module/library/align-center.js
30480
- var align_center = __webpack_require__(372);
30481
 
30482
  // EXTERNAL MODULE: ./packages/icons/build-module/library/align-right.js
30483
- var align_right = __webpack_require__(373);
30484
 
30485
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/alignment-control/ui.js
30486
 
@@ -30582,13 +30800,13 @@ function AlignmentToolbar(props) {
30582
  }
30583
  //# sourceMappingURL=index.js.map
30584
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/inserter/search-items.js
30585
- var search_items = __webpack_require__(187);
30586
 
30587
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/inserter/hooks/use-block-types-state.js
30588
- var use_block_types_state = __webpack_require__(102);
30589
 
30590
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-icon/index.js
30591
- var block_icon = __webpack_require__(52);
30592
 
30593
  // CONCATENATED MODULE: ./packages/block-editor/build-module/autocompleters/block.js
30594
 
@@ -30860,7 +31078,6 @@ function BlockAlignmentMatrixControl(props) {
30860
  const openOnArrowDown = event => {
30861
  if (!isOpen && event.keyCode === external_wp_keycodes_["DOWN"]) {
30862
  event.preventDefault();
30863
- event.stopPropagation();
30864
  onToggle();
30865
  }
30866
  };
@@ -30886,6 +31103,9 @@ function BlockAlignmentMatrixControl(props) {
30886
 
30887
  /* harmony default export */ var block_alignment_matrix_control = (BlockAlignmentMatrixControl);
30888
  //# sourceMappingURL=index.js.map
 
 
 
30889
  // CONCATENATED MODULE: ./packages/icons/build-module/library/chevron-right-small.js
30890
 
30891
 
@@ -30902,7 +31122,7 @@ const chevronRightSmall = Object(external_wp_element_["createElement"])(external
30902
  /* harmony default export */ var chevron_right_small = (chevronRightSmall);
30903
  //# sourceMappingURL=chevron-right-small.js.map
30904
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-title/index.js
30905
- var block_title = __webpack_require__(97);
30906
 
30907
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-breadcrumb/index.js
30908
 
@@ -31088,7 +31308,7 @@ function BlockContentOverlay({
31088
  /* eslint-enable jsx-a11y/no-static-element-interactions */
31089
  //# sourceMappingURL=index.js.map
31090
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-context/index.js
31091
- var block_context = __webpack_require__(147);
31092
 
31093
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/color-style-selector/index.js
31094
 
@@ -31149,7 +31369,6 @@ const renderToggleComponent = ({
31149
  const openOnArrowDown = event => {
31150
  if (!isOpen && event.keyCode === external_wp_keycodes_["DOWN"]) {
31151
  event.preventDefault();
31152
- event.stopPropagation();
31153
  onToggle();
31154
  }
31155
  };
@@ -31177,19 +31396,19 @@ const BlockColorsStyleSelector = ({
31177
  /* harmony default export */ var color_style_selector = (BlockColorsStyleSelector);
31178
  //# sourceMappingURL=index.js.map
31179
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-edit/index.js + 1 modules
31180
- var block_edit = __webpack_require__(135);
31181
 
31182
  // EXTERNAL MODULE: ./packages/icons/build-module/library/list-view.js
31183
- var list_view = __webpack_require__(242);
31184
 
31185
  // EXTERNAL MODULE: ./packages/icons/build-module/library/more-vertical.js
31186
- var more_vertical = __webpack_require__(194);
31187
 
31188
  // EXTERNAL MODULE: ./node_modules/react-spring/web.cjs.js
31189
- var web_cjs = __webpack_require__(126);
31190
 
31191
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/use-moving-animation/index.js
31192
- var use_moving_animation = __webpack_require__(217);
31193
 
31194
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/list-view/leaf.js
31195
 
@@ -31237,7 +31456,7 @@ function ListViewLeaf({
31237
  }
31238
  //# sourceMappingURL=leaf.js.map
31239
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-mover/button.js + 1 modules
31240
- var block_mover_button = __webpack_require__(166);
31241
 
31242
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/list-view/context.js
31243
  /**
@@ -31251,10 +31470,10 @@ const ListViewContext = Object(external_wp_element_["createContext"])({
31251
  const useListViewContext = () => Object(external_wp_element_["useContext"])(ListViewContext);
31252
  //# sourceMappingURL=context.js.map
31253
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-list/block.js + 6 modules
31254
- var block_list_block = __webpack_require__(163);
31255
 
31256
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/use-block-display-information/index.js
31257
- var use_block_display_information = __webpack_require__(83);
31258
 
31259
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/list-view/utils.js
31260
  /**
@@ -31483,7 +31702,7 @@ const ListViewBlockFill = props => {
31483
  };
31484
  //# sourceMappingURL=block-slot.js.map
31485
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-draggable/index.js + 1 modules
31486
- var block_draggable = __webpack_require__(164);
31487
 
31488
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/list-view/block-contents.js
31489
 
@@ -31579,7 +31798,7 @@ const ListViewBlockContents = Object(external_wp_element_["forwardRef"])(({
31579
  /* harmony default export */ var block_contents = (ListViewBlockContents);
31580
  //# sourceMappingURL=block-contents.js.map
31581
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-settings-menu/block-settings-dropdown.js + 4 modules
31582
- var block_settings_dropdown = __webpack_require__(234);
31583
 
31584
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/list-view/block.js
31585
 
@@ -31787,7 +32006,7 @@ function ListViewBlock({
31787
  }
31788
  //# sourceMappingURL=block.js.map
31789
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/inserter/index.js + 1 modules
31790
- var inserter = __webpack_require__(87);
31791
 
31792
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/list-view/appender.js
31793
 
@@ -32170,10 +32389,10 @@ function useListViewClientIds(blocks, showOnlyCurrentHierarchy, __experimentalPe
32170
  }
32171
  //# sourceMappingURL=use-list-view-client-ids.js.map
32172
  // EXTERNAL MODULE: ./packages/block-editor/build-module/utils/math.js
32173
- var math = __webpack_require__(215);
32174
 
32175
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/use-on-block-drop/index.js
32176
- var use_on_block_drop = __webpack_require__(216);
32177
 
32178
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/list-view/use-list-view-drop-zone.js
32179
  /**
@@ -32634,7 +32853,7 @@ function BlockNavigationDropdown({
32634
  /* harmony default export */ var dropdown = (Object(external_wp_element_["forwardRef"])(BlockNavigationDropdown));
32635
  //# sourceMappingURL=dropdown.js.map
32636
  // EXTERNAL MODULE: ./packages/icons/build-module/library/layout.js
32637
- var library_layout = __webpack_require__(253);
32638
 
32639
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-variation-picker/index.js
32640
 
@@ -32694,16 +32913,16 @@ function BlockVariationPicker({
32694
  /* harmony default export */ var block_variation_picker = (BlockVariationPicker);
32695
  //# sourceMappingURL=index.js.map
32696
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-preview/index.js + 2 modules
32697
- var block_preview = __webpack_require__(75);
32698
 
32699
  // EXTERNAL MODULE: ./packages/icons/build-module/library/chevron-left.js
32700
- var chevron_left = __webpack_require__(279);
32701
 
32702
  // EXTERNAL MODULE: ./packages/icons/build-module/library/chevron-right.js
32703
- var chevron_right = __webpack_require__(278);
32704
 
32705
  // EXTERNAL MODULE: ./packages/icons/build-module/library/grid.js
32706
- var grid = __webpack_require__(376);
32707
 
32708
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-pattern-setup/constants.js
32709
  const VIEWMODES = {
@@ -32993,7 +33212,7 @@ const BlockPatternSetup = ({
32993
  /* harmony default export */ var block_pattern_setup = (BlockPatternSetup);
32994
  //# sourceMappingURL=index.js.map
32995
  // EXTERNAL MODULE: ./packages/icons/build-module/library/chevron-down.js
32996
- var chevron_down = __webpack_require__(193);
32997
 
32998
  // CONCATENATED MODULE: ./packages/block-editor/build-module/utils/block-variation-transforms.js
32999
  /**
@@ -33234,7 +33453,7 @@ function BlockVerticalAlignmentToolbar(props) {
33234
  }
33235
  //# sourceMappingURL=index.js.map
33236
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/button-block-appender/index.js
33237
- var button_block_appender = __webpack_require__(137);
33238
 
33239
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/color-palette/with-color-context.js
33240
 
@@ -33256,8 +33475,8 @@ var button_block_appender = __webpack_require__(137);
33256
 
33257
  /* harmony default export */ var with_color_context = (Object(external_wp_compose_["createHigherOrderComponent"])(WrappedComponent => {
33258
  return props => {
33259
- const colorsFeature = useSetting('color.palette');
33260
- const disableCustomColorsFeature = !useSetting('color.custom');
33261
  const colors = props.colors === undefined ? colorsFeature : props.colors;
33262
  const disableCustomColors = props.disableCustomColors === undefined ? disableCustomColorsFeature : props.disableCustomColors;
33263
  const hasColorsToChoose = !Object(external_lodash_["isEmpty"])(colors) || !disableCustomColors;
@@ -33483,7 +33702,7 @@ const ButtonBlockAppender = ({
33483
  /* harmony default export */ var inner_blocks_button_block_appender = (with_client_id(ButtonBlockAppender));
33484
  //# sourceMappingURL=button-block-appender.js.map
33485
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/default-block-appender/index.js
33486
- var default_block_appender = __webpack_require__(149);
33487
 
33488
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/inner-blocks/default-block-appender.js
33489
 
@@ -33527,7 +33746,7 @@ const DefaultBlockAppender = ({
33527
  })])(DefaultBlockAppender));
33528
  //# sourceMappingURL=default-block-appender.js.map
33529
  // EXTERNAL MODULE: external ["wp","isShallowEqual"]
33530
- var external_wp_isShallowEqual_ = __webpack_require__(51);
33531
  var external_wp_isShallowEqual_default = /*#__PURE__*/__webpack_require__.n(external_wp_isShallowEqual_);
33532
 
33533
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/inner-blocks/use-nested-settings-update.js
@@ -33542,6 +33761,7 @@ var external_wp_isShallowEqual_default = /*#__PURE__*/__webpack_require__.n(exte
33542
  */
33543
 
33544
 
 
33545
  /**
33546
  * This hook is a side effect which updates the block-editor store when changes
33547
  * happen to inner block settings. The given props are transformed into a
@@ -33559,9 +33779,10 @@ var external_wp_isShallowEqual_default = /*#__PURE__*/__webpack_require__.n(exte
33559
  * the child block.
33560
  * @param {string} orientation The direction in which the block
33561
  * should face.
 
33562
  */
33563
 
33564
- function useNestedSettingsUpdate(clientId, allowedBlocks, templateLock, captureToolbars, orientation) {
33565
  const {
33566
  updateBlockListSettings
33567
  } = Object(external_wp_data_["useDispatch"])(store["a" /* store */]);
@@ -33588,16 +33809,21 @@ function useNestedSettingsUpdate(clientId, allowedBlocks, templateLock, captureT
33588
 
33589
  if (captureToolbars !== undefined) {
33590
  newSettings.__experimentalCaptureToolbars = captureToolbars;
33591
- }
 
 
33592
 
33593
  if (orientation !== undefined) {
33594
  newSettings.orientation = orientation;
 
 
 
33595
  }
33596
 
33597
  if (!external_wp_isShallowEqual_default()(blockListSettings, newSettings)) {
33598
  updateBlockListSettings(clientId, newSettings);
33599
  }
33600
- }, [clientId, blockListSettings, _allowedBlocks, templateLock, parentLock, captureToolbars, orientation, updateBlockListSettings]);
33601
  }
33602
  //# sourceMappingURL=use-nested-settings-update.js.map
33603
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/inner-blocks/use-inner-block-template-sync.js
@@ -33708,13 +33934,13 @@ function getBlockContext(attributes, blockType) {
33708
  }
33709
  //# sourceMappingURL=get-block-context.js.map
33710
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-list/index.js + 4 modules
33711
- var block_list = __webpack_require__(101);
33712
 
33713
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/provider/use-block-sync.js
33714
- var use_block_sync = __webpack_require__(223);
33715
 
33716
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/use-block-drop-zone/index.js
33717
- var use_block_drop_zone = __webpack_require__(219);
33718
 
33719
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/inner-blocks/index.js
33720
 
@@ -33771,7 +33997,7 @@ function UncontrolledInnerBlocks(props) {
33771
  placeholder,
33772
  __experimentalLayout
33773
  } = props;
33774
- useNestedSettingsUpdate(clientId, allowedBlocks, templateLock, captureToolbars, orientation);
33775
  useInnerBlockTemplateSync(clientId, template, templateLock, templateInsertUpdatesSelection);
33776
  const context = Object(external_wp_data_["useSelect"])(select => {
33777
  const block = select(store["a" /* store */]).getBlock(clientId);
@@ -34033,10 +34259,10 @@ function JustifyToolbar(props) {
34033
  }
34034
  //# sourceMappingURL=index.js.map
34035
  // EXTERNAL MODULE: ./packages/icons/build-module/library/keyboard-return.js
34036
- var keyboard_return = __webpack_require__(280);
34037
 
34038
  // EXTERNAL MODULE: external ["wp","dom"]
34039
- var external_wp_dom_ = __webpack_require__(22);
34040
 
34041
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/link-control/settings-drawer.js
34042
 
@@ -34084,7 +34310,7 @@ const LinkControlSettingsDrawer = ({
34084
  /* harmony default export */ var settings_drawer = (LinkControlSettingsDrawer);
34085
  //# sourceMappingURL=settings-drawer.js.map
34086
  // EXTERNAL MODULE: ./node_modules/dom-scroll-into-view/lib/index.js
34087
- var lib = __webpack_require__(138);
34088
  var lib_default = /*#__PURE__*/__webpack_require__.n(lib);
34089
 
34090
  // EXTERNAL MODULE: external ["wp","url"]
@@ -34310,7 +34536,6 @@ class url_input_URLInput extends external_wp_element_["Component"] {
34310
  case external_wp_keycodes_["UP"]:
34311
  {
34312
  if (0 !== event.target.selectionStart) {
34313
- event.stopPropagation();
34314
  event.preventDefault(); // Set the input caret to position 0
34315
 
34316
  event.target.setSelectionRange(0, 0);
@@ -34324,7 +34549,6 @@ class url_input_URLInput extends external_wp_element_["Component"] {
34324
  case external_wp_keycodes_["DOWN"]:
34325
  {
34326
  if (this.props.value.length !== event.target.selectionStart) {
34327
- event.stopPropagation();
34328
  event.preventDefault(); // Set the input caret to the last position
34329
 
34330
  event.target.setSelectionRange(this.props.value.length, this.props.value.length);
@@ -34352,7 +34576,6 @@ class url_input_URLInput extends external_wp_element_["Component"] {
34352
  switch (event.keyCode) {
34353
  case external_wp_keycodes_["UP"]:
34354
  {
34355
- event.stopPropagation();
34356
  event.preventDefault();
34357
  const previousIndex = !selectedSuggestion ? suggestions.length - 1 : selectedSuggestion - 1;
34358
  this.setState({
@@ -34363,7 +34586,6 @@ class url_input_URLInput extends external_wp_element_["Component"] {
34363
 
34364
  case external_wp_keycodes_["DOWN"]:
34365
  {
34366
- event.stopPropagation();
34367
  event.preventDefault();
34368
  const nextIndex = selectedSuggestion === null || selectedSuggestion === suggestions.length - 1 ? 0 : selectedSuggestion + 1;
34369
  this.setState({
@@ -34386,7 +34608,6 @@ class url_input_URLInput extends external_wp_element_["Component"] {
34386
  case external_wp_keycodes_["ENTER"]:
34387
  {
34388
  if (this.state.selectedSuggestion !== null) {
34389
- event.stopPropagation();
34390
  this.selectLink(suggestion);
34391
 
34392
  if (this.props.onSubmit) {
@@ -34578,7 +34799,7 @@ class url_input_URLInput extends external_wp_element_["Component"] {
34578
  }))(url_input_URLInput));
34579
  //# sourceMappingURL=index.js.map
34580
  // EXTERNAL MODULE: ./packages/icons/build-module/library/plus.js
34581
- var plus = __webpack_require__(145);
34582
 
34583
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/link-control/search-create-button.js
34584
 
@@ -35714,6 +35935,10 @@ function useUndoAutomaticChange() {
35714
  keyCode
35715
  } = event;
35716
 
 
 
 
 
35717
  if (keyCode !== external_wp_keycodes_["DELETE"] && keyCode !== external_wp_keycodes_["BACKSPACE"] && keyCode !== external_wp_keycodes_["ESCAPE"]) {
35718
  return;
35719
  }
@@ -35812,7 +36037,7 @@ function useMarkPersistent({
35812
  }
35813
  //# sourceMappingURL=use-mark-persistent.js.map
35814
  // EXTERNAL MODULE: external ["wp","blob"]
35815
- var external_wp_blob_ = __webpack_require__(33);
35816
 
35817
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/rich-text/file-paste-handler.js
35818
  /**
@@ -35826,7 +36051,7 @@ function filePasteHandler(files) {
35826
  }
35827
  //# sourceMappingURL=file-paste-handler.js.map
35828
  // EXTERNAL MODULE: external ["wp","shortcode"]
35829
- var external_wp_shortcode_ = __webpack_require__(143);
35830
 
35831
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/rich-text/utils.js
35832
  /**
@@ -36980,13 +37205,13 @@ function ListViewEditor({
36980
  }
36981
  //# sourceMappingURL=editor.js.map
36982
  // EXTERNAL MODULE: ./packages/icons/build-module/library/media.js
36983
- var library_media = __webpack_require__(377);
36984
 
36985
  // EXTERNAL MODULE: ./packages/icons/build-module/library/upload.js
36986
- var upload = __webpack_require__(281);
36987
 
36988
  // EXTERNAL MODULE: external ["wp","notices"]
36989
- var external_wp_notices_ = __webpack_require__(29);
36990
 
36991
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/media-upload/index.js
36992
  /**
@@ -37138,7 +37363,6 @@ const MediaReplaceFlow = ({
37138
  const openOnArrowDown = event => {
37139
  if (event.keyCode === external_wp_keycodes_["DOWN"]) {
37140
  event.preventDefault();
37141
- event.stopPropagation();
37142
  event.target.click();
37143
  }
37144
  };
@@ -37190,17 +37414,7 @@ const MediaReplaceFlow = ({
37190
  }
37191
  }))), onSelectURL && // eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions
37192
  Object(external_wp_element_["createElement"])("form", {
37193
- className: "block-editor-media-flow__url-input",
37194
- onKeyDown: event => {
37195
- if (![external_wp_keycodes_["TAB"], external_wp_keycodes_["ESCAPE"]].includes(event.keyCode)) {
37196
- event.stopPropagation();
37197
- }
37198
- },
37199
- onKeyPress: event => {
37200
- if (![external_wp_keycodes_["TAB"], external_wp_keycodes_["ESCAPE"]].includes(event.keyCode)) {
37201
- event.stopPropagation();
37202
- }
37203
- }
37204
  }, Object(external_wp_element_["createElement"])("span", {
37205
  className: "block-editor-media-replace-flow__image-url-label"
37206
  }, Object(external_wp_i18n_["__"])('Current media URL:')), Object(external_wp_element_["createElement"])(link_control, {
@@ -37232,7 +37446,7 @@ const MediaReplaceFlow = ({
37232
  }), Object(external_wp_components_["withFilters"])('editor.MediaReplaceFlow')])(MediaReplaceFlow));
37233
  //# sourceMappingURL=index.js.map
37234
  // EXTERNAL MODULE: ./packages/icons/build-module/library/edit.js + 1 modules
37235
- var edit = __webpack_require__(265);
37236
 
37237
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/url-popover/link-viewer-url.js
37238
 
@@ -37699,8 +37913,7 @@ function MediaPlaceholder({
37699
  }) => {
37700
  return Object(external_wp_element_["createElement"])(external_wp_components_["Button"], {
37701
  variant: "tertiary",
37702
- onClick: event => {
37703
- event.stopPropagation();
37704
  open();
37705
  }
37706
  }, Object(external_wp_i18n_["__"])('Media Library'));
@@ -37790,7 +38003,7 @@ const PanelColorSettings = ({
37790
  /* harmony default export */ var panel_color_settings = (PanelColorSettings);
37791
  //# sourceMappingURL=index.js.map
37792
  // EXTERNAL MODULE: ./node_modules/react-autosize-textarea/lib/index.js
37793
- var react_autosize_textarea_lib = __webpack_require__(113);
37794
  var react_autosize_textarea_lib_default = /*#__PURE__*/__webpack_require__.n(react_autosize_textarea_lib);
37795
 
37796
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/editable-text/index.js
@@ -38173,7 +38386,7 @@ function UnitControl({
38173
  ...props
38174
  }) {
38175
  const units = Object(external_wp_components_["__experimentalUseCustomUnits"])({
38176
- availableUnits: useSetting('spacing.units') || ['%', 'px', 'em', 'rem', 'vw'],
38177
  units: unitsProp
38178
  });
38179
  return Object(external_wp_element_["createElement"])(external_wp_components_["__experimentalUnitControl"], Object(esm_extends["a" /* default */])({
@@ -38182,7 +38395,7 @@ function UnitControl({
38182
  }
38183
  //# sourceMappingURL=index.js.map
38184
  // EXTERNAL MODULE: ./packages/icons/build-module/library/arrow-left.js
38185
- var arrow_left = __webpack_require__(378);
38186
 
38187
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/url-input/button.js
38188
 
@@ -38267,7 +38480,7 @@ class button_URLInputButton extends external_wp_element_["Component"] {
38267
  /* harmony default export */ var url_input_button = (button_URLInputButton);
38268
  //# sourceMappingURL=button.js.map
38269
  // EXTERNAL MODULE: ./packages/icons/build-module/library/close.js
38270
- var library_close = __webpack_require__(132);
38271
 
38272
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/url-popover/image-url-input-ui.js
38273
 
@@ -38542,13 +38755,13 @@ const ImageURLInputUI = ({
38542
 
38543
  //# sourceMappingURL=image-url-input-ui.js.map
38544
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-settings-menu/block-settings-menu-first-item.js
38545
- var block_settings_menu_first_item = __webpack_require__(206);
38546
 
38547
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/inserter-menu-extension/index.js
38548
- var inserter_menu_extension = __webpack_require__(202);
38549
 
38550
  // EXTERNAL MODULE: ./packages/icons/build-module/library/check.js
38551
- var library_check = __webpack_require__(116);
38552
 
38553
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/preview-options/index.js
38554
 
@@ -38607,7 +38820,7 @@ function PreviewOptions({
38607
  }
38608
  //# sourceMappingURL=index.js.map
38609
  // EXTERNAL MODULE: ./node_modules/css-mediaquery/index.js
38610
- var css_mediaquery = __webpack_require__(339);
38611
 
38612
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/use-simulated-media-query/index.js
38613
  /**
@@ -38855,16 +39068,16 @@ const SkipToSelectedBlock = ({
38855
  })(SkipToSelectedBlock));
38856
  //# sourceMappingURL=index.js.map
38857
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-card/index.js
38858
- var block_card = __webpack_require__(224);
38859
 
38860
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-styles/index.js + 1 modules
38861
- var block_styles = __webpack_require__(236);
38862
 
38863
  // EXTERNAL MODULE: external ["wp","wordcount"]
38864
- var external_wp_wordcount_ = __webpack_require__(139);
38865
 
38866
  // EXTERNAL MODULE: ./packages/icons/build-module/library/stack.js
38867
- var stack = __webpack_require__(547);
38868
 
38869
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/multi-selection-inspector/index.js
38870
 
@@ -39114,44 +39327,54 @@ const AdvancedControls = ({
39114
  /* harmony default export */ var block_inspector = (BlockInspector);
39115
  //# sourceMappingURL=index.js.map
39116
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-list/use-block-props/index.js
39117
- var use_block_props = __webpack_require__(201);
39118
 
39119
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-mover/index.js
39120
- var block_mover = __webpack_require__(204);
39121
 
39122
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-selection-clearer/index.js
39123
- var block_selection_clearer = __webpack_require__(136);
39124
 
39125
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-settings-menu/index.js
39126
- var block_settings_menu = __webpack_require__(205);
39127
 
39128
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-settings-menu-controls/index.js + 2 modules
39129
- var block_settings_menu_controls = __webpack_require__(213);
39130
 
39131
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-toolbar/index.js + 9 modules
39132
- var block_toolbar = __webpack_require__(212);
 
 
 
39133
 
39134
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-tools/insertion-point.js
39135
- var insertion_point = __webpack_require__(142);
39136
 
39137
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-tools/block-popover.js + 1 modules
39138
- var block_popover = __webpack_require__(235);
39139
 
39140
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-tools/block-contextual-toolbar.js
39141
- var block_contextual_toolbar = __webpack_require__(225);
39142
 
39143
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-tools/use-popover-scroll.js
39144
- var use_popover_scroll = __webpack_require__(155);
39145
 
39146
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-tools/index.js
39147
 
39148
 
 
 
 
 
 
39149
  /**
39150
  * WordPress dependencies
39151
  */
39152
 
39153
 
39154
 
 
 
39155
  /**
39156
  * Internal dependencies
39157
  */
@@ -39173,27 +39396,110 @@ var use_popover_scroll = __webpack_require__(155);
39173
 
39174
  function BlockTools({
39175
  children,
39176
- __unstableContentRef
 
39177
  }) {
39178
  const isLargeViewport = Object(external_wp_compose_["useViewportMatch"])('medium');
39179
  const hasFixedToolbar = Object(external_wp_data_["useSelect"])(select => select(store["a" /* store */]).getSettings().hasFixedToolbar, []);
39180
- return Object(external_wp_element_["createElement"])(insertion_point["b" /* default */], {
39181
- __unstableContentRef: __unstableContentRef
39182
- }, (hasFixedToolbar || !isLargeViewport) && Object(external_wp_element_["createElement"])(block_contextual_toolbar["a" /* default */], {
39183
- isFixed: true
39184
- }), Object(external_wp_element_["createElement"])(block_popover["a" /* default */], {
39185
- __unstableContentRef: __unstableContentRef
39186
- }), Object(external_wp_element_["createElement"])(external_wp_components_["Popover"].Slot, {
39187
- name: "block-toolbar",
39188
- ref: Object(use_popover_scroll["a" /* usePopoverScroll */])(__unstableContentRef)
39189
- }), children);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
39190
  }
39191
  //# sourceMappingURL=index.js.map
39192
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/copy-handler/index.js + 1 modules
39193
- var copy_handler = __webpack_require__(177);
39194
 
39195
  // EXTERNAL MODULE: ./node_modules/traverse/index.js
39196
- var traverse = __webpack_require__(340);
39197
  var traverse_default = /*#__PURE__*/__webpack_require__.n(traverse);
39198
 
39199
  // CONCATENATED MODULE: ./packages/block-editor/build-module/utils/transform-styles/ast/parse.js
@@ -39891,7 +40197,7 @@ function addParent(obj, parent) {
39891
  /* eslint-enable @wordpress/no-unused-vars-before-return */
39892
  //# sourceMappingURL=parse.js.map
39893
  // EXTERNAL MODULE: ./node_modules/inherits/inherits_browser.js
39894
- var inherits_browser = __webpack_require__(226);
39895
  var inherits_browser_default = /*#__PURE__*/__webpack_require__.n(inherits_browser);
39896
 
39897
  // CONCATENATED MODULE: ./packages/block-editor/build-module/utils/transform-styles/ast/stringify/compiler.js
@@ -40661,7 +40967,7 @@ function EditorStyles({
40661
  }
40662
  //# sourceMappingURL=index.js.map
40663
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/inserter/menu.js + 7 modules
40664
- var menu = __webpack_require__(233);
40665
 
40666
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/library.js
40667
 
@@ -40712,14 +41018,7 @@ function InserterLibrary({
40712
 
40713
  /* harmony default export */ var library = (InserterLibrary);
40714
  //# sourceMappingURL=library.js.map
40715
- // EXTERNAL MODULE: external ["wp","keyboardShortcuts"]
40716
- var external_wp_keyboardShortcuts_ = __webpack_require__(25);
40717
-
40718
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/keyboard-shortcuts/index.js
40719
- /**
40720
- * External dependencies
40721
- */
40722
-
40723
  /**
40724
  * WordPress dependencies
40725
  */
@@ -40728,102 +41027,7 @@ var external_wp_keyboardShortcuts_ = __webpack_require__(25);
40728
 
40729
 
40730
 
40731
- /**
40732
- * Internal dependencies
40733
- */
40734
-
40735
-
40736
-
40737
  function KeyboardShortcuts() {
40738
- // Shortcuts Logic
40739
- const {
40740
- clientIds,
40741
- rootClientId
40742
- } = Object(external_wp_data_["useSelect"])(select => {
40743
- const {
40744
- getSelectedBlockClientIds,
40745
- getBlockRootClientId
40746
- } = select(store["a" /* store */]);
40747
- const selectedClientIds = getSelectedBlockClientIds();
40748
- const [firstClientId] = selectedClientIds;
40749
- return {
40750
- clientIds: selectedClientIds,
40751
- rootClientId: getBlockRootClientId(firstClientId)
40752
- };
40753
- }, []);
40754
- const {
40755
- duplicateBlocks,
40756
- removeBlocks,
40757
- insertAfterBlock,
40758
- insertBeforeBlock,
40759
- clearSelectedBlock,
40760
- moveBlocksUp,
40761
- moveBlocksDown
40762
- } = Object(external_wp_data_["useDispatch"])(store["a" /* store */]); // Moves selected block/blocks up
40763
-
40764
- Object(external_wp_keyboardShortcuts_["useShortcut"])('core/block-editor/move-up', Object(external_wp_element_["useCallback"])(event => {
40765
- event.preventDefault();
40766
- moveBlocksUp(clientIds, rootClientId);
40767
- }, [clientIds, moveBlocksUp]), {
40768
- bindGlobal: true,
40769
- isDisabled: clientIds.length === 0
40770
- }); // Moves selected block/blocks up
40771
-
40772
- Object(external_wp_keyboardShortcuts_["useShortcut"])('core/block-editor/move-down', Object(external_wp_element_["useCallback"])(event => {
40773
- event.preventDefault();
40774
- moveBlocksDown(clientIds, rootClientId);
40775
- }, [clientIds, moveBlocksDown]), {
40776
- bindGlobal: true,
40777
- isDisabled: clientIds.length === 0
40778
- }); // Prevents bookmark all Tabs shortcut in Chrome when devtools are closed.
40779
- // Prevents reposition Chrome devtools pane shortcut when devtools are open.
40780
-
40781
- Object(external_wp_keyboardShortcuts_["useShortcut"])('core/block-editor/duplicate', Object(external_wp_element_["useCallback"])(event => {
40782
- event.preventDefault();
40783
- duplicateBlocks(clientIds);
40784
- }, [clientIds, duplicateBlocks]), {
40785
- bindGlobal: true,
40786
- isDisabled: clientIds.length === 0
40787
- }); // Does not clash with any known browser/native shortcuts, but preventDefault
40788
- // is used to prevent any obscure unknown shortcuts from triggering.
40789
-
40790
- Object(external_wp_keyboardShortcuts_["useShortcut"])('core/block-editor/remove', Object(external_wp_element_["useCallback"])(event => {
40791
- event.preventDefault();
40792
- removeBlocks(clientIds);
40793
- }, [clientIds, removeBlocks]), {
40794
- bindGlobal: true,
40795
- isDisabled: clientIds.length === 0
40796
- }); // Does not clash with any known browser/native shortcuts, but preventDefault
40797
- // is used to prevent any obscure unknown shortcuts from triggering.
40798
-
40799
- Object(external_wp_keyboardShortcuts_["useShortcut"])('core/block-editor/insert-after', Object(external_wp_element_["useCallback"])(event => {
40800
- event.preventDefault();
40801
- insertAfterBlock(Object(external_lodash_["last"])(clientIds));
40802
- }, [clientIds, insertAfterBlock]), {
40803
- bindGlobal: true,
40804
- isDisabled: clientIds.length === 0
40805
- }); // Prevent 'view recently closed tabs' in Opera using preventDefault.
40806
-
40807
- Object(external_wp_keyboardShortcuts_["useShortcut"])('core/block-editor/insert-before', Object(external_wp_element_["useCallback"])(event => {
40808
- event.preventDefault();
40809
- insertBeforeBlock(Object(external_lodash_["first"])(clientIds));
40810
- }, [clientIds, insertBeforeBlock]), {
40811
- bindGlobal: true,
40812
- isDisabled: clientIds.length === 0
40813
- });
40814
- Object(external_wp_keyboardShortcuts_["useShortcut"])('core/block-editor/delete-multi-selection', Object(external_wp_element_["useCallback"])(event => {
40815
- event.preventDefault();
40816
- removeBlocks(clientIds);
40817
- }, [clientIds, removeBlocks]), {
40818
- isDisabled: clientIds.length < 2
40819
- });
40820
- Object(external_wp_keyboardShortcuts_["useShortcut"])('core/block-editor/unselect', Object(external_wp_element_["useCallback"])(event => {
40821
- event.preventDefault();
40822
- clearSelectedBlock();
40823
- event.target.ownerDocument.defaultView.getSelection().removeAllRanges();
40824
- }, [clientIds, clearSelectedBlock]), {
40825
- isDisabled: clientIds.length < 2
40826
- });
40827
  return null;
40828
  }
40829
 
@@ -40951,7 +41155,7 @@ function MultiSelectScrollIntoView() {
40951
  }
40952
  //# sourceMappingURL=index.js.map
40953
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/navigable-toolbar/index.js
40954
- var navigable_toolbar = __webpack_require__(203);
40955
 
40956
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/observe-typing/index.js
40957
 
@@ -41433,7 +41637,7 @@ const TypewriterOrIEBypass = isIE ? props => props.children : Typewriter;
41433
  /* harmony default export */ var typewriter = (TypewriterOrIEBypass);
41434
  //# sourceMappingURL=index.js.map
41435
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/warning/index.js + 1 modules
41436
- var warning = __webpack_require__(152);
41437
 
41438
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/writing-flow/use-multi-selection.js
41439
  /**
@@ -41650,8 +41854,11 @@ function useTabNav() {
41650
  });
41651
  const ref = Object(external_wp_compose_["useRefEffect"])(node => {
41652
  function onKeyDown(event) {
 
 
 
 
41653
  if (event.keyCode === external_wp_keycodes_["ESCAPE"] && !hasMultiSelection()) {
41654
- event.stopPropagation();
41655
  event.preventDefault();
41656
  setNavigationMode(true);
41657
  return;
@@ -41756,7 +41963,7 @@ function useTabNav() {
41756
  }
41757
  //# sourceMappingURL=use-tab-nav.js.map
41758
  // EXTERNAL MODULE: ./packages/block-editor/build-module/utils/dom.js
41759
- var dom = __webpack_require__(127);
41760
 
41761
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/writing-flow/use-arrow-nav.js
41762
  /**
@@ -42068,12 +42275,11 @@ function useSelectAll() {
42068
  return;
42069
  }
42070
 
42071
- const selectedClientIds = getSelectedBlockClientIds();
42072
-
42073
- if (selectedClientIds.length === 1 && !Object(external_wp_dom_["isEntirelySelected"])(event.target)) {
42074
  return;
42075
  }
42076
 
 
42077
  const [firstSelectedClientId] = selectedClientIds;
42078
  const rootClientId = getBlockRootClientId(firstSelectedClientId);
42079
  let blockClientIds = getBlockOrder(rootClientId); // If we have selected all sibling nested blocks, try selecting up a
@@ -42098,7 +42304,7 @@ function useSelectAll() {
42098
  return () => {
42099
  node.removeEventListener('keydown', onKeyDown);
42100
  };
42101
- });
42102
  }
42103
  //# sourceMappingURL=use-select-all.js.map
42104
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/writing-flow/index.js
@@ -42126,18 +42332,31 @@ function useSelectAll() {
42126
 
42127
 
42128
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
42129
 
42130
  function WritingFlow({
42131
  children,
42132
  ...props
42133
  }, forwardedRef) {
42134
- const [before, ref, after] = useTabNav();
42135
- const hasMultiSelection = Object(external_wp_data_["useSelect"])(select => select(store["a" /* store */]).hasMultiSelection(), []);
42136
  return Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, before, Object(external_wp_element_["createElement"])("div", Object(esm_extends["a" /* default */])({}, props, {
42137
- ref: Object(external_wp_compose_["useMergeRefs"])([forwardedRef, ref, useMultiSelection(), useSelectAll(), useArrowNav()]),
42138
- className: classnames_default()(props.className, 'block-editor-writing-flow'),
42139
- tabIndex: -1,
42140
- "aria-label": hasMultiSelection ? Object(external_wp_i18n_["__"])('Multiple selected blocks') : undefined
42141
  }), children), after);
42142
  }
42143
  /**
@@ -42222,6 +42441,7 @@ function useCanvasClickRedirect() {
42222
  */
42223
 
42224
 
 
42225
  const BODY_CLASS_NAME = 'editor-styles-wrapper';
42226
  const BLOCK_PREFIX = 'wp-block';
42227
  /**
@@ -42407,6 +42627,7 @@ function Iframe({
42407
  const styles = useParsedAssets(window.__editorAssets.styles);
42408
  const scripts = useParsedAssets(window.__editorAssets.scripts);
42409
  const clearerRef = Object(block_selection_clearer["b" /* useBlockSelectionClearer */])();
 
42410
  const setRef = Object(external_wp_element_["useCallback"])(node => {
42411
  if (!node) {
42412
  return;
@@ -42438,6 +42659,7 @@ function Iframe({
42438
  setIframeDocument(contentDocument);
42439
  clearerRef(documentElement);
42440
  clearerRef(body);
 
42441
  scripts.reduce((promise, script) => promise.then(() => loadScript(contentDocument, script)), Promise.resolve()).finally(() => {
42442
  // When script are loaded, re-render blocks to allow them
42443
  // to initialise.
@@ -42485,14 +42707,14 @@ function Iframe({
42485
  key: id
42486
  });
42487
  }), head);
42488
- return Object(external_wp_element_["createElement"])("iframe", Object(esm_extends["a" /* default */])({}, props, {
42489
  ref: Object(external_wp_compose_["useMergeRefs"])([ref, setRef]),
42490
  tabIndex: "0",
42491
  title: Object(external_wp_i18n_["__"])('Editor canvas'),
42492
  name: "editor-canvas"
42493
  }), iframeDocument && Object(external_wp_element_["createPortal"])(Object(external_wp_element_["createElement"])(external_wp_components_["__experimentalStyleProvider"], {
42494
  document: iframeDocument
42495
- }, children), iframeDocument.body), iframeDocument && Object(external_wp_element_["createPortal"])(head, iframeDocument.head));
42496
  }
42497
 
42498
  /* harmony default export */ var iframe = (Object(external_wp_element_["forwardRef"])(Iframe));
@@ -42562,7 +42784,7 @@ function useNoRecursiveRenders(uniqueId, blockName = '') {
42562
  }
42563
  //# sourceMappingURL=index.js.map
42564
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/provider/index.js + 1 modules
42565
- var provider = __webpack_require__(214);
42566
 
42567
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/index.js
42568
  /*
@@ -42675,7 +42897,7 @@ var provider = __webpack_require__(214);
42675
 
42676
  //# sourceMappingURL=index.js.map
42677
  // EXTERNAL MODULE: ./packages/block-editor/build-module/store/defaults.js
42678
- var defaults = __webpack_require__(105);
42679
 
42680
  // CONCATENATED MODULE: ./packages/block-editor/build-module/utils/theme.js
42681
  /**
@@ -42749,15 +42971,6 @@ function validateThemeGradients(gradients) {
42749
  //# sourceMappingURL=index.js.map
42750
 
42751
  /***/ }),
42752
- /* 489 */,
42753
- /* 490 */,
42754
- /* 491 */,
42755
- /* 492 */,
42756
- /* 493 */,
42757
- /* 494 */,
42758
- /* 495 */,
42759
- /* 496 */,
42760
- /* 497 */,
42761
  /* 498 */,
42762
  /* 499 */,
42763
  /* 500 */,
@@ -42807,7 +43020,64 @@ function validateThemeGradients(gradients) {
42807
  /* 544 */,
42808
  /* 545 */,
42809
  /* 546 */,
42810
- /* 547 */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
42811
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
42812
 
42813
  "use strict";
82
  /******/
83
  /******/
84
  /******/ // Load entry module and return exports
85
+ /******/ return __webpack_require__(__webpack_require__.s = 497);
86
  /******/ })
87
  /************************************************************************/
88
  /******/ ([
397
  var external_wp_blocks_ = __webpack_require__(8);
398
 
399
  // EXTERNAL MODULE: ./packages/block-editor/build-module/store/defaults.js
400
+ var defaults = __webpack_require__(109);
401
 
402
  // CONCATENATED MODULE: ./packages/block-editor/build-module/store/array.js
403
  /**
2044
  var external_wp_element_ = __webpack_require__(0);
2045
 
2046
  // EXTERNAL MODULE: ./node_modules/rememo/es/rememo.js
2047
+ var rememo = __webpack_require__(32);
2048
 
2049
  // EXTERNAL MODULE: external ["wp","components"]
2050
  var external_wp_components_ = __webpack_require__(3);
4062
  }
4063
  //# sourceMappingURL=selectors.js.map
4064
  // EXTERNAL MODULE: external ["wp","a11y"]
4065
+ var external_wp_a11y_ = __webpack_require__(33);
4066
 
4067
  // EXTERNAL MODULE: external ["wp","i18n"]
4068
  var external_wp_i18n_ = __webpack_require__(1);
4108
  /* harmony default export */ var store_controls = (controls);
4109
  //# sourceMappingURL=controls.js.map
4110
  // EXTERNAL MODULE: ./packages/block-editor/build-module/store/constants.js
4111
+ var constants = __webpack_require__(43);
4112
 
4113
  // CONCATENATED MODULE: ./packages/block-editor/build-module/store/actions.js
4114
  /**
5332
  (function() { module.exports = window["wp"]["hooks"]; }());
5333
 
5334
  /***/ }),
5335
+ /* 22 */,
5336
+ /* 23 */,
5337
+ /* 24 */
5338
  /***/ (function(module, exports) {
5339
 
5340
  (function() { module.exports = window["wp"]["dom"]; }());
5341
 
5342
  /***/ }),
5343
+ /* 25 */
 
5344
  /***/ (function(module, exports, __webpack_require__) {
5345
 
5346
  /**
5353
  if (false) { var throwOnDirectAccess, ReactIs; } else {
5354
  // By explicitly using `prop-types` you are opting into new production behavior.
5355
  // http://fb.me/prop-types-in-prod
5356
+ module.exports = __webpack_require__(177)();
5357
  }
5358
 
5359
 
5360
  /***/ }),
5361
+ /* 26 */
5362
  /***/ (function(module, exports) {
5363
 
5364
+ (function() { module.exports = window["wp"]["deprecated"]; }());
5365
 
5366
  /***/ }),
5367
+ /* 27 */
5368
  /***/ (function(module, exports) {
5369
 
5370
+ (function() { module.exports = window["wp"]["keyboardShortcuts"]; }());
5371
 
5372
  /***/ }),
5373
+ /* 28 */
5374
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
5375
+
5376
+ "use strict";
5377
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return useSetting; });
5378
+ /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
5379
+ /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_0__);
5380
+ /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4);
5381
+ /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_1__);
5382
+ /* harmony import */ var _block_edit__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(69);
5383
+ /* harmony import */ var _store__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(13);
5384
+ /**
5385
+ * External dependencies
5386
+ */
5387
+
5388
+ /**
5389
+ * WordPress dependencies
5390
+ */
5391
+
5392
+
5393
+ /**
5394
+ * Internal dependencies
5395
+ */
5396
+
5397
+
5398
+
5399
+ const deprecatedFlags = {
5400
+ 'color.palette': settings => settings.colors === undefined ? undefined : settings.colors,
5401
+ 'color.gradients': settings => settings.gradients === undefined ? undefined : settings.gradients,
5402
+ 'color.custom': settings => settings.disableCustomColors === undefined ? undefined : !settings.disableCustomColors,
5403
+ 'color.customGradient': settings => settings.disableCustomGradients === undefined ? undefined : !settings.disableCustomGradients,
5404
+ 'typography.fontSizes': settings => settings.fontSizes === undefined ? undefined : settings.fontSizes,
5405
+ 'typography.customFontSize': settings => settings.disableCustomFontSizes === undefined ? undefined : !settings.disableCustomFontSizes,
5406
+ 'typography.customLineHeight': settings => settings.enableCustomLineHeight,
5407
+ 'spacing.units': settings => {
5408
+ if (settings.enableCustomUnits === undefined) {
5409
+ return;
5410
+ }
5411
+
5412
+ if (settings.enableCustomUnits === true) {
5413
+ return ['px', 'em', 'rem', 'vh', 'vw', '%'];
5414
+ }
5415
+
5416
+ return settings.enableCustomUnits;
5417
+ },
5418
+ 'spacing.customPadding': settings => settings.enableCustomSpacing
5419
+ };
5420
+ const PATHS_WITH_MERGE = {
5421
+ 'color.gradients': true,
5422
+ 'color.palette': true,
5423
+ 'typography.fontFamilies': true,
5424
+ 'typography.fontSizes': true
5425
+ };
5426
+ /**
5427
+ * Hook that retrieves the editor setting.
5428
+ * It works with nested objects using by finding the value at path.
5429
+ *
5430
+ * @param {string} path The path to the setting.
5431
+ *
5432
+ * @return {any} Returns the value defined for the setting.
5433
+ *
5434
+ * @example
5435
+ * ```js
5436
+ * const isEnabled = useSetting( 'typography.dropCap' );
5437
+ * ```
5438
+ */
5439
+
5440
+ function useSetting(path) {
5441
+ const {
5442
+ name: blockName
5443
+ } = Object(_block_edit__WEBPACK_IMPORTED_MODULE_2__[/* useBlockEditContext */ "b"])();
5444
+ const setting = Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_1__["useSelect"])(select => {
5445
+ var _get;
5446
+
5447
+ const settings = select(_store__WEBPACK_IMPORTED_MODULE_3__[/* store */ "a"]).getSettings(); // 1 - Use __experimental features, if available.
5448
+ // We cascade to the all value if the block one is not available.
5449
+
5450
+ const defaultsPath = `__experimentalFeatures.${path}`;
5451
+ const blockPath = `__experimentalFeatures.blocks.${blockName}.${path}`;
5452
+ const experimentalFeaturesResult = (_get = Object(lodash__WEBPACK_IMPORTED_MODULE_0__["get"])(settings, blockPath)) !== null && _get !== void 0 ? _get : Object(lodash__WEBPACK_IMPORTED_MODULE_0__["get"])(settings, defaultsPath);
5453
+
5454
+ if (experimentalFeaturesResult !== undefined) {
5455
+ if (PATHS_WITH_MERGE[path]) {
5456
+ var _ref, _experimentalFeatures;
5457
+
5458
+ return (_ref = (_experimentalFeatures = experimentalFeaturesResult.user) !== null && _experimentalFeatures !== void 0 ? _experimentalFeatures : experimentalFeaturesResult.theme) !== null && _ref !== void 0 ? _ref : experimentalFeaturesResult.core;
5459
+ }
5460
+
5461
+ return experimentalFeaturesResult;
5462
+ } // 2 - Use deprecated settings, otherwise.
5463
+
5464
+
5465
+ const deprecatedSettingsValue = deprecatedFlags[path] ? deprecatedFlags[path](settings) : undefined;
5466
+
5467
+ if (deprecatedSettingsValue !== undefined) {
5468
+ return deprecatedSettingsValue;
5469
+ } // 3 - Fall back for typography.dropCap:
5470
+ // This is only necessary to support typography.dropCap.
5471
+ // when __experimentalFeatures are not present (core without plugin).
5472
+ // To remove when __experimentalFeatures are ported to core.
5473
+
5474
+
5475
+ return path === 'typography.dropCap' ? true : undefined;
5476
+ }, [blockName, path]);
5477
+ return setting;
5478
+ }
5479
+ //# sourceMappingURL=index.js.map
5480
+
5481
+ /***/ }),
5482
+ /* 29 */,
5483
+ /* 30 */,
5484
+ /* 31 */
5485
  /***/ (function(module, exports) {
5486
 
5487
  (function() { module.exports = window["wp"]["notices"]; }());
5488
 
5489
  /***/ }),
5490
+ /* 32 */
5491
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
5492
 
5493
  "use strict";
5768
 
5769
 
5770
  /***/ }),
5771
+ /* 33 */
5772
  /***/ (function(module, exports) {
5773
 
5774
  (function() { module.exports = window["wp"]["a11y"]; }());
5775
 
5776
  /***/ }),
5777
+ /* 34 */,
5778
+ /* 35 */
5779
  /***/ (function(module, exports) {
5780
 
5781
  (function() { module.exports = window["wp"]["blob"]; }());
5782
 
5783
  /***/ }),
 
 
5784
  /* 36 */,
5785
  /* 37 */,
5786
  /* 38 */,
5787
  /* 39 */,
5788
  /* 40 */
5789
+ /***/ (function(module, exports) {
5790
+
5791
+ (function() { module.exports = window["wp"]["htmlEntities"]; }());
5792
+
5793
+ /***/ }),
5794
+ /* 41 */,
5795
+ /* 42 */,
5796
+ /* 43 */
5797
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
5798
 
5799
  "use strict";
5802
  //# sourceMappingURL=constants.js.map
5803
 
5804
  /***/ }),
5805
+ /* 44 */,
5806
+ /* 45 */
 
 
 
 
 
5807
  /***/ (function(module, exports, __webpack_require__) {
5808
 
5809
  var __WEBPACK_AMD_DEFINE_RESULT__;// TinyColor v1.4.2
7003
 
7004
 
7005
  /***/ }),
 
 
 
7006
  /* 46 */,
7007
  /* 47 */,
7008
  /* 48 */,
7009
  /* 49 */,
7010
  /* 50 */,
7011
+ /* 51 */,
7012
+ /* 52 */,
7013
+ /* 53 */,
7014
+ /* 54 */
7015
  /***/ (function(module, exports) {
7016
 
7017
  (function() { module.exports = window["wp"]["isShallowEqual"]; }());
7018
 
7019
  /***/ }),
7020
+ /* 55 */
7021
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
7022
 
7023
  "use strict";
7028
  /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
7029
  /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(3);
7030
  /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__);
7031
+ /* harmony import */ var _wordpress_icons__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(151);
7032
 
7033
 
7034
  /**
7071
  //# sourceMappingURL=index.js.map
7072
 
7073
  /***/ }),
 
 
 
7074
  /* 56 */,
7075
  /* 57 */,
7076
  /* 58 */,
7081
  /* 63 */,
7082
  /* 64 */,
7083
  /* 65 */,
7084
+ /* 66 */,
7085
+ /* 67 */,
7086
+ /* 68 */
7087
  /***/ (function(module, exports) {
7088
 
7089
  (function() { module.exports = window["wp"]["warning"]; }());
7090
 
7091
  /***/ }),
 
 
7092
  /* 69 */
7093
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
7094
 
7123
 
7124
  /***/ }),
7125
  /* 70 */,
7126
+ /* 71 */,
7127
+ /* 72 */,
7128
+ /* 73 */
7129
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
7130
 
7131
  "use strict";
7136
  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
7137
  /* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9);
7138
  /* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_compose__WEBPACK_IMPORTED_MODULE_1__);
7139
+ /* harmony import */ var _provider_block_refs_provider__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(170);
7140
  /**
7141
  * WordPress dependencies
7142
  */
7249
  //# sourceMappingURL=use-block-refs.js.map
7250
 
7251
  /***/ }),
 
 
7252
  /* 74 */,
7253
+ /* 75 */,
7254
+ /* 76 */,
7255
+ /* 77 */,
7256
+ /* 78 */,
7257
+ /* 79 */
7258
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
7259
 
7260
  "use strict";
7271
  var external_wp_data_ = __webpack_require__(4);
7272
 
7273
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/provider/index.js + 1 modules
7274
+ var provider = __webpack_require__(221);
7275
 
7276
  // EXTERNAL MODULE: external ["wp","components"]
7277
  var external_wp_components_ = __webpack_require__(3);
7278
 
7279
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-list/index.js + 4 modules
7280
+ var block_list = __webpack_require__(105);
7281
 
7282
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-preview/live.js
7283
 
7424
  //# sourceMappingURL=index.js.map
7425
 
7426
  /***/ }),
 
 
 
 
7427
  /* 80 */,
7428
  /* 81 */,
7429
  /* 82 */,
7430
+ /* 83 */,
7431
+ /* 84 */,
7432
+ /* 85 */,
7433
+ /* 86 */
7434
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
7435
 
7436
  "use strict";
7510
  //# sourceMappingURL=index.js.map
7511
 
7512
  /***/ }),
7513
+ /* 87 */,
7514
+ /* 88 */,
7515
+ /* 89 */,
7516
+ /* 90 */
7517
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
7518
 
7519
  "use strict";
7532
  var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
7533
 
7534
  // EXTERNAL MODULE: external ["wp","a11y"]
7535
+ var external_wp_a11y_ = __webpack_require__(33);
7536
 
7537
  // EXTERNAL MODULE: external ["wp","i18n"]
7538
  var external_wp_i18n_ = __webpack_require__(1);
7550
  var external_wp_blocks_ = __webpack_require__(8);
7551
 
7552
  // EXTERNAL MODULE: ./packages/icons/build-module/library/plus.js
7553
+ var plus = __webpack_require__(150);
7554
 
7555
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/inserter/menu.js + 7 modules
7556
+ var menu = __webpack_require__(241);
7557
 
7558
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/inserter/search-results.js
7559
+ var search_results = __webpack_require__(227);
7560
 
7561
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/inserter/hooks/use-insertion-point.js
7562
+ var use_insertion_point = __webpack_require__(161);
7563
 
7564
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/inserter/hooks/use-patterns-state.js
7565
+ var use_patterns_state = __webpack_require__(162);
7566
 
7567
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/inserter/hooks/use-block-types-state.js
7568
+ var use_block_types_state = __webpack_require__(106);
7569
 
7570
  // EXTERNAL MODULE: ./packages/block-editor/build-module/store/index.js + 5 modules
7571
  var store = __webpack_require__(13);
7973
  //# sourceMappingURL=index.js.map
7974
 
7975
  /***/ }),
7976
+ /* 91 */,
7977
+ /* 92 */,
7978
+ /* 93 */
7979
  /***/ (function(module, exports) {
7980
 
7981
  // shim for using process in browser
8165
 
8166
 
8167
  /***/ }),
 
 
 
 
8168
  /* 94 */,
8169
  /* 95 */,
8170
  /* 96 */,
8171
+ /* 97 */,
8172
+ /* 98 */,
8173
+ /* 99 */,
8174
+ /* 100 */,
8175
+ /* 101 */
8176
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
8177
 
8178
  "use strict";
8183
  /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_1__);
8184
  /* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8);
8185
  /* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_2__);
8186
+ /* harmony import */ var _use_block_display_information__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(86);
8187
  /* harmony import */ var _store__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(13);
8188
  /**
8189
  * External dependencies
8265
  //# sourceMappingURL=index.js.map
8266
 
8267
  /***/ }),
8268
+ /* 102 */,
8269
+ /* 103 */,
8270
+ /* 104 */,
8271
+ /* 105 */
8272
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
8273
 
8274
  "use strict";
8292
  var external_wp_compose_ = __webpack_require__(9);
8293
 
8294
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-list/block.js + 6 modules
8295
+ var block = __webpack_require__(168);
8296
 
8297
  // EXTERNAL MODULE: external "lodash"
8298
  var external_lodash_ = __webpack_require__(2);
8301
  var external_wp_blocks_ = __webpack_require__(8);
8302
 
8303
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/default-block-appender/index.js
8304
+ var default_block_appender = __webpack_require__(154);
8305
 
8306
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/button-block-appender/index.js
8307
+ var button_block_appender = __webpack_require__(144);
8308
 
8309
  // EXTERNAL MODULE: ./packages/block-editor/build-module/store/index.js + 5 modules
8310
  var store = __webpack_require__(13);
8323
 
8324
 
8325
 
 
8326
  /**
8327
  * Internal dependencies
8328
  */
8329
 
8330
 
8331
 
 
 
 
8332
 
 
 
 
8333
 
8334
  function BlockListAppender({
8335
  blockClientIds,
8385
  //
8386
  // See: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#Clicking_and_focus
8387
  , {
8388
+ tabIndex: -1,
 
 
 
8389
  className: classnames_default()('block-list-appender', className)
8390
  }, appender);
8391
  }
8408
  })(BlockListAppender));
8409
  //# sourceMappingURL=index.js.map
8410
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/use-block-drop-zone/index.js
8411
+ var use_block_drop_zone = __webpack_require__(226);
8412
 
8413
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-tools/insertion-point.js
8414
+ var insertion_point = __webpack_require__(148);
8415
 
8416
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-list/use-in-between-inserter.js
8417
  /**
8605
  }
8606
  //# sourceMappingURL=pre-parse-patterns.js.map
8607
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-list/layout.js
8608
+ var block_list_layout = __webpack_require__(116);
8609
 
8610
  // EXTERNAL MODULE: external ["wp","components"]
8611
  var external_wp_components_ = __webpack_require__(3);
8615
  var external_wp_deprecated_default = /*#__PURE__*/__webpack_require__.n(external_wp_deprecated_);
8616
 
8617
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-tools/block-popover.js + 1 modules
8618
+ var block_popover = __webpack_require__(243);
8619
 
8620
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-tools/back-compat.js
8621
 
8653
  }
8654
  //# sourceMappingURL=back-compat.js.map
8655
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-selection-clearer/index.js
8656
+ var block_selection_clearer = __webpack_require__(143);
8657
 
8658
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-list/head.js
8659
+ var head = __webpack_require__(159);
8660
 
8661
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-list/index.js
8662
 
8805
  //# sourceMappingURL=index.js.map
8806
 
8807
  /***/ }),
8808
+ /* 106 */
8809
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
8810
 
8811
  "use strict";
8869
  //# sourceMappingURL=use-block-types-state.js.map
8870
 
8871
  /***/ }),
8872
+ /* 107 */
8873
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
8874
 
8875
  "use strict";
8890
  var external_wp_components_ = __webpack_require__(3);
8891
 
8892
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/use-display-block-controls/index.js
8893
+ var use_display_block_controls = __webpack_require__(158);
8894
 
8895
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-controls/groups.js
8896
  /**
9020
  //# sourceMappingURL=index.js.map
9021
 
9022
  /***/ }),
9023
+ /* 108 */,
9024
+ /* 109 */
9025
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
9026
 
9027
  "use strict";
9223
  //# sourceMappingURL=defaults.js.map
9224
 
9225
  /***/ }),
9226
+ /* 110 */,
9227
+ /* 111 */
9228
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
9229
 
9230
  "use strict";
9259
  //# sourceMappingURL=panel.js.map
9260
 
9261
  /***/ }),
9262
+ /* 112 */,
9263
+ /* 113 */
9264
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
9265
 
9266
  "use strict";
9298
  //# sourceMappingURL=index.js.map
9299
 
9300
  /***/ }),
9301
+ /* 114 */,
9302
+ /* 115 */,
9303
+ /* 116 */
9304
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
9305
 
9306
  "use strict";
9308
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return LayoutProvider; });
9309
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return useLayout; });
9310
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return LayoutStyle; });
9311
+ /* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7);
9312
+ /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(0);
9313
+ /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__);
9314
+ /* harmony import */ var _layouts__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(119);
9315
+
9316
 
9317
 
9318
  /**
9319
  * WordPress dependencies
9320
  */
9321
 
9322
+ /**
9323
+ * Internal dependencies
9324
+ */
9325
+
9326
+
9327
  const defaultLayout = {
9328
  type: 'default'
9329
  };
9330
+ const Layout = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createContext"])(defaultLayout);
 
 
 
 
 
 
 
 
 
9331
  /**
9332
  * Allows to define the layout.
9333
  */
9334
 
 
9335
  const LayoutProvider = Layout.Provider;
9336
  /**
9337
  * React hook used to retrieve the layout config.
9338
  */
9339
 
9340
  function useLayout() {
9341
+ return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["useContext"])(Layout);
9342
  }
9343
  function LayoutStyle({
9344
+ layout = {},
9345
+ ...props
9346
  }) {
9347
+ const layoutType = Object(_layouts__WEBPACK_IMPORTED_MODULE_2__[/* getLayoutType */ "a"])(layout.type);
 
 
 
 
 
 
 
 
 
9348
 
9349
+ if (layoutType) {
9350
+ return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])(layoutType.save, Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])({
9351
+ layout: layout
9352
+ }, props));
9353
+ }
 
 
 
 
 
 
 
 
9354
 
9355
+ return null;
 
 
 
 
 
9356
  }
9357
  //# sourceMappingURL=layout.js.map
9358
 
9359
  /***/ }),
9360
+ /* 117 */
9361
  /***/ (function(module, exports, __webpack_require__) {
9362
 
9363
  "use strict";
9364
 
9365
  exports.__esModule = true;
9366
+ var TextareaAutosize_1 = __webpack_require__(255);
9367
  exports["default"] = TextareaAutosize_1.TextareaAutosize;
9368
 
9369
 
9370
  /***/ }),
9371
+ /* 118 */,
9372
+ /* 119 */
9373
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
9374
+
9375
+ "use strict";
9376
+
9377
+ // EXPORTS
9378
+ __webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ getLayoutType; });
9379
+ __webpack_require__.d(__webpack_exports__, "b", function() { return /* binding */ getLayoutTypes; });
9380
+
9381
+ // EXTERNAL MODULE: external ["wp","element"]
9382
+ var external_wp_element_ = __webpack_require__(0);
9383
+
9384
+ // EXTERNAL MODULE: external ["wp","i18n"]
9385
+ var external_wp_i18n_ = __webpack_require__(1);
9386
+
9387
+ // CONCATENATED MODULE: ./packages/block-editor/build-module/layouts/utils.js
9388
+ /**
9389
+ * Utility to generate the proper CSS selector for layout styles.
9390
+ *
9391
+ * @param {string|string[]} selectors - CSS selectors
9392
+ * @param {boolean} append - string to append.
9393
+ *
9394
+ * @return {string} - CSS selector.
9395
+ */
9396
+ function appendSelectors(selectors, append = '') {
9397
+ // Ideally we shouldn't need the `.editor-styles-wrapper` increased specificity here
9398
+ // The problem though is that we have a `.editor-styles-wrapper p { margin: reset; }` style
9399
+ // it's used to reset the default margin added by wp-admin to paragraphs
9400
+ // so we need this to be higher speficity otherwise, it won't be applied to paragraphs inside containers
9401
+ // When the post editor is fully iframed, this extra classname could be removed.
9402
+ return selectors.split(',').map(subselector => `.editor-styles-wrapper ${subselector} ${append}`).join(',');
9403
+ }
9404
+ //# sourceMappingURL=utils.js.map
9405
+ // CONCATENATED MODULE: ./packages/block-editor/build-module/layouts/flex.js
9406
+
9407
+
9408
+ /**
9409
+ * WordPress dependencies
9410
+ */
9411
+
9412
+ /**
9413
+ * Internal dependencies
9414
+ */
9415
+
9416
+
9417
+ /* harmony default export */ var flex = ({
9418
+ name: 'flex',
9419
+ label: Object(external_wp_i18n_["__"])('Flex'),
9420
+
9421
+ edit() {
9422
+ return null;
9423
+ },
9424
+
9425
+ save: function FlexLayoutStyle({
9426
+ selector
9427
+ }) {
9428
+ return Object(external_wp_element_["createElement"])("style", null, `${appendSelectors(selector)} {
9429
+ display: flex;
9430
+ column-gap: 0.5em;
9431
+ align-items: center;
9432
+ }`);
9433
+ },
9434
+
9435
+ getOrientation() {
9436
+ return 'horizontal';
9437
+ },
9438
+
9439
+ getAlignments() {
9440
+ return [];
9441
+ }
9442
+
9443
+ });
9444
+ //# sourceMappingURL=flex.js.map
9445
+ // EXTERNAL MODULE: external ["wp","components"]
9446
+ var external_wp_components_ = __webpack_require__(3);
9447
+
9448
+ // EXTERNAL MODULE: ./packages/icons/build-module/icon/index.js
9449
+ var icon = __webpack_require__(113);
9450
+
9451
+ // EXTERNAL MODULE: ./packages/icons/build-module/library/position-center.js
9452
+ var position_center = __webpack_require__(556);
9453
+
9454
+ // EXTERNAL MODULE: ./packages/icons/build-module/library/stretch-wide.js
9455
+ var stretch_wide = __webpack_require__(557);
9456
+
9457
+ // EXTERNAL MODULE: ./packages/block-editor/build-module/components/use-setting/index.js
9458
+ var use_setting = __webpack_require__(28);
9459
+
9460
+ // CONCATENATED MODULE: ./packages/block-editor/build-module/layouts/flow.js
9461
+
9462
+
9463
+ /**
9464
+ * WordPress dependencies
9465
+ */
9466
+
9467
+
9468
+
9469
+ /**
9470
+ * Internal dependencies
9471
+ */
9472
+
9473
+
9474
+
9475
+ /* harmony default export */ var flow = ({
9476
+ name: 'default',
9477
+ label: Object(external_wp_i18n_["__"])('Flow'),
9478
+ edit: function LayoutDefaultEdit({
9479
+ layout,
9480
+ onChange
9481
+ }) {
9482
+ const {
9483
+ wideSize,
9484
+ contentSize
9485
+ } = layout;
9486
+ const units = Object(external_wp_components_["__experimentalUseCustomUnits"])({
9487
+ availableUnits: Object(use_setting["a" /* default */])('spacing.units') || ['%', 'px', 'em', 'rem', 'vw']
9488
+ });
9489
+ return Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, Object(external_wp_element_["createElement"])("div", {
9490
+ className: "block-editor-hooks__layout-controls"
9491
+ }, Object(external_wp_element_["createElement"])("div", {
9492
+ className: "block-editor-hooks__layout-controls-unit"
9493
+ }, Object(external_wp_element_["createElement"])(external_wp_components_["__experimentalUnitControl"], {
9494
+ label: Object(external_wp_i18n_["__"])('Content'),
9495
+ labelPosition: "top",
9496
+ __unstableInputWidth: "80px",
9497
+ value: contentSize || wideSize || '',
9498
+ onChange: nextWidth => {
9499
+ nextWidth = 0 > parseFloat(nextWidth) ? '0' : nextWidth;
9500
+ onChange({ ...layout,
9501
+ contentSize: nextWidth
9502
+ });
9503
+ },
9504
+ units: units
9505
+ }), Object(external_wp_element_["createElement"])(icon["a" /* default */], {
9506
+ icon: position_center["a" /* default */]
9507
+ })), Object(external_wp_element_["createElement"])("div", {
9508
+ className: "block-editor-hooks__layout-controls-unit"
9509
+ }, Object(external_wp_element_["createElement"])(external_wp_components_["__experimentalUnitControl"], {
9510
+ label: Object(external_wp_i18n_["__"])('Wide'),
9511
+ labelPosition: "top",
9512
+ __unstableInputWidth: "80px",
9513
+ value: wideSize || contentSize || '',
9514
+ onChange: nextWidth => {
9515
+ nextWidth = 0 > parseFloat(nextWidth) ? '0' : nextWidth;
9516
+ onChange({ ...layout,
9517
+ wideSize: nextWidth
9518
+ });
9519
+ },
9520
+ units: units
9521
+ }), Object(external_wp_element_["createElement"])(icon["a" /* default */], {
9522
+ icon: stretch_wide["a" /* default */]
9523
+ }))), Object(external_wp_element_["createElement"])("div", {
9524
+ className: "block-editor-hooks__layout-controls-reset"
9525
+ }, Object(external_wp_element_["createElement"])(external_wp_components_["Button"], {
9526
+ variant: "secondary",
9527
+ isSmall: true,
9528
+ disabled: !contentSize && !wideSize,
9529
+ onClick: () => onChange({
9530
+ contentSize: undefined,
9531
+ wideSize: undefined,
9532
+ inherit: false
9533
+ })
9534
+ }, Object(external_wp_i18n_["__"])('Reset'))), Object(external_wp_element_["createElement"])("p", {
9535
+ className: "block-editor-hooks__layout-controls-helptext"
9536
+ }, Object(external_wp_i18n_["__"])('Customize the width for all elements that are assigned to the center or wide columns.')));
9537
+ },
9538
+ save: function DefaultLayoutStyle({
9539
+ selector,
9540
+ layout = {}
9541
+ }) {
9542
+ const {
9543
+ contentSize,
9544
+ wideSize
9545
+ } = layout;
9546
+ let style = !!contentSize || !!wideSize ? `
9547
+ ${appendSelectors(selector, '> *')} {
9548
+ max-width: ${contentSize !== null && contentSize !== void 0 ? contentSize : wideSize};
9549
+ margin-left: auto !important;
9550
+ margin-right: auto !important;
9551
+ }
9552
+
9553
+ ${appendSelectors(selector, '> [data-align="wide"]')} {
9554
+ max-width: ${wideSize !== null && wideSize !== void 0 ? wideSize : contentSize};
9555
+ }
9556
+
9557
+ ${appendSelectors(selector, '> [data-align="full"]')} {
9558
+ max-width: none;
9559
+ }
9560
+ ` : '';
9561
+ style += `
9562
+ ${appendSelectors(selector, '> [data-align="left"]')} {
9563
+ float: left;
9564
+ margin-right: 2em;
9565
+ }
9566
+
9567
+ ${appendSelectors(selector, '> [data-align="right"]')} {
9568
+ float: right;
9569
+ margin-left: 2em;
9570
+ }
9571
+ `;
9572
+ return Object(external_wp_element_["createElement"])("style", null, style);
9573
+ },
9574
+
9575
+ getOrientation() {
9576
+ return 'vertical';
9577
+ },
9578
+
9579
+ getAlignments(layout) {
9580
+ if (layout.alignments !== undefined) {
9581
+ return layout.alignments;
9582
+ }
9583
+
9584
+ return layout.contentSize || layout.wideSize ? ['wide', 'full', 'left', 'center', 'right'] : ['left', 'center', 'right'];
9585
+ }
9586
+
9587
+ });
9588
+ //# sourceMappingURL=flow.js.map
9589
+ // CONCATENATED MODULE: ./packages/block-editor/build-module/layouts/index.js
9590
+ /**
9591
+ * Internal dependencies
9592
+ */
9593
+
9594
+
9595
+ const layoutTypes = [flow, flex];
9596
+ /**
9597
+ * Retrieves a layout type by name.
9598
+ *
9599
+ * @param {string} name - The name of the layout type.
9600
+ * @return {Object} Layout type.
9601
+ */
9602
+
9603
+ function getLayoutType(name = 'default') {
9604
+ return layoutTypes.find(layoutType => layoutType.name === name);
9605
+ }
9606
+ /**
9607
+ * Retrieves the available layout types.
9608
+ *
9609
+ * @return {Array} Layout types.
9610
+ */
9611
+
9612
+ function getLayoutTypes() {
9613
+ return layoutTypes;
9614
+ }
9615
+ //# sourceMappingURL=index.js.map
9616
+
9617
+ /***/ }),
9618
+ /* 120 */,
9619
+ /* 121 */
9620
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
9621
 
9622
  "use strict";
9638
  var external_wp_keycodes_ = __webpack_require__(14);
9639
 
9640
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-icon/index.js
9641
+ var block_icon = __webpack_require__(55);
9642
 
9643
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/inserter-listbox/item.js
9644
+ var inserter_listbox_item = __webpack_require__(286);
9645
 
9646
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/inserter-draggable-blocks/index.js
9647
+ var inserter_draggable_blocks = __webpack_require__(228);
9648
 
9649
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter-list-item/index.js
9650
 
9776
  /* harmony default export */ var inserter_list_item = (Object(external_wp_element_["memo"])(InserterListItem));
9777
  //# sourceMappingURL=index.js.map
9778
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/inserter-listbox/group.js
9779
+ var group = __webpack_require__(284);
9780
 
9781
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/inserter-listbox/row.js
9782
+ var inserter_listbox_row = __webpack_require__(285);
9783
 
9784
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-types-list/index.js
9785
 
9833
  //# sourceMappingURL=index.js.map
9834
 
9835
  /***/ }),
9836
+ /* 122 */,
9837
+ /* 123 */
9838
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
9839
 
9840
  "use strict";
9858
  //# sourceMappingURL=check.js.map
9859
 
9860
  /***/ }),
 
 
 
 
 
 
 
9861
  /* 124 */,
9862
  /* 125 */,
9863
+ /* 126 */,
9864
+ /* 127 */,
9865
+ /* 128 */,
9866
+ /* 129 */,
9867
+ /* 130 */,
9868
+ /* 131 */,
9869
+ /* 132 */,
9870
+ /* 133 */
9871
  /***/ (function(module, exports, __webpack_require__) {
9872
 
9873
  "use strict";
9877
 
9878
  function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
9879
 
9880
+ var _extends = _interopDefault(__webpack_require__(199));
9881
+ var _objectWithoutPropertiesLoose = _interopDefault(__webpack_require__(249));
9882
  var React = __webpack_require__(11);
9883
  var React__default = _interopDefault(React);
9884
+ var _inheritsLoose = _interopDefault(__webpack_require__(250));
9885
+ var _assertThisInitialized = _interopDefault(__webpack_require__(252));
9886
 
9887
  var is = {
9888
  arr: Array.isArray,
12183
 
12184
 
12185
  /***/ }),
12186
+ /* 134 */
12187
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
12188
 
12189
  "use strict";
12191
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return isInsideRootBlock; });
12192
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return getBlockClientId; });
12193
  const BLOCK_SELECTOR = '.block-editor-block-list__block';
12194
+ const APPENDER_SELECTOR = '.block-list-appender';
12195
  /**
12196
  * Returns true if two elements are contained within the same block.
12197
  *
12205
  return a.closest(BLOCK_SELECTOR) === b.closest(BLOCK_SELECTOR);
12206
  }
12207
  /**
12208
+ * Returns true if an element is considered part of the block and not its inner
12209
+ * blocks or appender.
12210
  *
12211
  * @param {Element} blockElement Block container element.
12212
  * @param {Element} element Element.
12213
  *
12214
+ * @return {boolean} Whether an element is considered part of the block and not
12215
+ * its inner blocks or appender.
12216
  */
12217
 
12218
  function isInsideRootBlock(blockElement, element) {
12219
+ const parentBlock = element.closest([BLOCK_SELECTOR, APPENDER_SELECTOR].join(','));
12220
  return parentBlock === blockElement;
12221
  }
12222
  /**
12251
  //# sourceMappingURL=dom.js.map
12252
 
12253
  /***/ }),
12254
+ /* 135 */,
12255
+ /* 136 */,
12256
+ /* 137 */,
12257
+ /* 138 */,
12258
+ /* 139 */
12259
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
12260
 
12261
  "use strict";
12279
  //# sourceMappingURL=close.js.map
12280
 
12281
  /***/ }),
12282
+ /* 140 */,
12283
+ /* 141 */,
12284
+ /* 142 */
12285
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
12286
 
12287
  "use strict";
12311
  var external_wp_blocks_ = __webpack_require__(8);
12312
 
12313
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-context/index.js
12314
+ var block_context = __webpack_require__(152);
12315
 
12316
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-edit/edit.js
12317
 
12419
  //# sourceMappingURL=index.js.map
12420
 
12421
  /***/ }),
12422
+ /* 143 */
12423
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
12424
 
12425
  "use strict";
12490
  //# sourceMappingURL=index.js.map
12491
 
12492
  /***/ }),
12493
+ /* 144 */
12494
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
12495
 
12496
  "use strict";
12503
  /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__);
12504
  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(1);
12505
  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__);
12506
+ /* harmony import */ var _wordpress_icons__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(113);
12507
+ /* harmony import */ var _wordpress_icons__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(150);
12508
  /* harmony import */ var _wordpress_deprecated__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(26);
12509
  /* harmony import */ var _wordpress_deprecated__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_wordpress_deprecated__WEBPACK_IMPORTED_MODULE_6__);
12510
+ /* harmony import */ var _inserter__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(90);
12511
 
12512
 
12513
  /**
12604
  //# sourceMappingURL=index.js.map
12605
 
12606
  /***/ }),
12607
+ /* 145 */
12608
  /***/ (function(module, exports, __webpack_require__) {
12609
 
12610
  "use strict";
12611
 
12612
 
12613
+ module.exports = __webpack_require__(253);
12614
 
12615
  /***/ }),
12616
+ /* 146 */
12617
  /***/ (function(module, exports) {
12618
 
12619
  (function() { module.exports = window["wp"]["wordcount"]; }());
12620
 
12621
  /***/ }),
12622
+ /* 147 */,
12623
+ /* 148 */
 
12624
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
12625
 
12626
  "use strict";
12636
  /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__);
12637
  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(1);
12638
  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__);
12639
+ /* harmony import */ var _inserter__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(90);
12640
  /* harmony import */ var _store__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(13);
12641
+ /* harmony import */ var _block_list_use_block_props_use_block_refs__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(73);
12642
+ /* harmony import */ var _use_popover_scroll__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(160);
12643
 
12644
 
12645
  /**
12877
  //# sourceMappingURL=insertion-point.js.map
12878
 
12879
  /***/ }),
12880
+ /* 149 */
12881
  /***/ (function(module, exports) {
12882
 
12883
  (function() { module.exports = window["wp"]["shortcode"]; }());
12884
 
12885
  /***/ }),
12886
+ /* 150 */
 
12887
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
12888
 
12889
  "use strict";
12907
  //# sourceMappingURL=plus.js.map
12908
 
12909
  /***/ }),
12910
+ /* 151 */
12911
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
12912
 
12913
  "use strict";
12931
  //# sourceMappingURL=block-default.js.map
12932
 
12933
  /***/ }),
12934
+ /* 152 */
12935
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
12936
 
12937
  "use strict";
12982
  //# sourceMappingURL=index.js.map
12983
 
12984
  /***/ }),
12985
+ /* 153 */
12986
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
12987
 
12988
  "use strict";
12990
  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
12991
  /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3);
12992
  /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__);
12993
+ /* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(163);
12994
 
12995
 
12996
  /**
13022
  //# sourceMappingURL=index.js.map
13023
 
13024
  /***/ }),
13025
+ /* 154 */
13026
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
13027
 
13028
  "use strict";
13030
  /* unused harmony export DefaultBlockAppender */
13031
  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
13032
  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
13033
+ /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(10);
13034
+ /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
13035
+ /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
13036
+ /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__);
13037
+ /* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9);
13038
+ /* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_compose__WEBPACK_IMPORTED_MODULE_3__);
13039
+ /* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(8);
13040
+ /* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_4__);
13041
+ /* harmony import */ var _wordpress_html_entities__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(40);
13042
+ /* harmony import */ var _wordpress_html_entities__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_html_entities__WEBPACK_IMPORTED_MODULE_5__);
13043
+ /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(4);
13044
+ /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_6__);
13045
+ /* harmony import */ var _inserter__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(90);
13046
+ /* harmony import */ var _store__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(13);
13047
 
13048
 
13049
+ /**
13050
+ * External dependencies
13051
+ */
13052
+
13053
  /**
13054
  * WordPress dependencies
13055
  */
13058
 
13059
 
13060
 
13061
+
13062
  /**
13063
  * Internal dependencies
13064
  */
13083
  return null;
13084
  }
13085
 
13086
+ const value = Object(_wordpress_html_entities__WEBPACK_IMPORTED_MODULE_5__["decodeEntities"])(placeholder) || Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__["__"])('Type / to choose a block');
13087
 
13088
  return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("div", {
13089
  "data-root-client-id": rootClientId || '',
13090
+ className: classnames__WEBPACK_IMPORTED_MODULE_1___default()('block-editor-default-block-appender', {
13091
+ 'has-visible-prompt': showPrompt
13092
+ })
13093
  }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("p", {
13094
  tabIndex: "0" // Only necessary for `useCanvasClickRedirect` to consider it
13095
  // as a target. Ideally it should consider any tabbable target,
13102
  // eslint-disable-next-line jsx-a11y/no-noninteractive-element-to-interactive-role
13103
  ,
13104
  role: "button",
13105
+ "aria-label": Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__["__"])('Add block') // The wp-block className is important for editor styles.
13106
  ,
13107
  className: "wp-block block-editor-default-block-appender__content",
13108
  onFocus: onAppend
13109
+ }, showPrompt ? value : ZWNBSP), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_inserter__WEBPACK_IMPORTED_MODULE_7__[/* default */ "a"], {
13110
  rootClientId: rootClientId,
13111
  position: "bottom right",
13112
  isAppender: true,
13113
  __experimentalIsQuick: true
13114
  }));
13115
  }
13116
+ /* harmony default export */ __webpack_exports__["a"] = (Object(_wordpress_compose__WEBPACK_IMPORTED_MODULE_3__["compose"])(Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_6__["withSelect"])((select, ownProps) => {
13117
  const {
13118
  getBlockCount,
13119
  getBlockName,
13120
  isBlockValid,
13121
  getSettings,
13122
  getTemplateLock
13123
+ } = select(_store__WEBPACK_IMPORTED_MODULE_8__[/* store */ "a"]);
13124
  const isEmpty = !getBlockCount(ownProps.rootClientId);
13125
+ const isLastBlockDefault = getBlockName(ownProps.lastBlockClientId) === Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_4__["getDefaultBlockName"])();
13126
  const isLastBlockValid = isBlockValid(ownProps.lastBlockClientId);
13127
  const {
13128
  bodyPlaceholder
13133
  isLocked: !!getTemplateLock(ownProps.rootClientId),
13134
  placeholder: bodyPlaceholder
13135
  };
13136
+ }), Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_6__["withDispatch"])((dispatch, ownProps) => {
13137
  const {
13138
  insertDefaultBlock,
13139
  startTyping
13140
+ } = dispatch(_store__WEBPACK_IMPORTED_MODULE_8__[/* store */ "a"]);
13141
  return {
13142
  onAppend() {
13143
  const {
13152
  //# sourceMappingURL=index.js.map
13153
 
13154
  /***/ }),
13155
+ /* 155 */,
13156
+ /* 156 */,
13157
+ /* 157 */
13158
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
13159
 
13160
  "use strict";
13246
  //# sourceMappingURL=index.js.map
13247
 
13248
  /***/ }),
13249
+ /* 158 */
13250
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
13251
 
13252
  "use strict";
13294
  //# sourceMappingURL=index.js.map
13295
 
13296
  /***/ }),
13297
+ /* 159 */
13298
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
13299
 
13300
  "use strict";
13322
  //# sourceMappingURL=head.js.map
13323
 
13324
  /***/ }),
13325
+ /* 160 */
13326
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
13327
 
13328
  "use strict";
13353
  deltaY
13354
  } = event;
13355
  scrollableRef.current.scrollBy(deltaX, deltaY);
13356
+ } // Tell the browser that we do not call event.preventDefault
13357
+ // See https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener#improving_scrolling_performance_with_passive_listeners
13358
+
13359
 
13360
+ const options = {
13361
+ passive: true
13362
+ };
13363
+ node.addEventListener('wheel', onWheel, options);
13364
  return () => {
13365
+ node.removeEventListener('wheel', onWheel, options);
13366
  };
13367
  }, [scrollableRef]);
13368
  }
13369
  //# sourceMappingURL=use-popover-scroll.js.map
13370
 
13371
  /***/ }),
13372
+ /* 161 */
13373
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
13374
 
13375
  "use strict";
13381
  /* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_2__);
13382
  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(1);
13383
  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__);
13384
+ /* harmony import */ var _wordpress_a11y__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(33);
13385
  /* harmony import */ var _wordpress_a11y__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_a11y__WEBPACK_IMPORTED_MODULE_4__);
13386
  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(0);
13387
  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__);
13507
  //# sourceMappingURL=use-insertion-point.js.map
13508
 
13509
  /***/ }),
13510
+ /* 162 */
13511
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
13512
 
13513
  "use strict";
13521
  /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_3__);
13522
  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(1);
13523
  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__);
13524
+ /* harmony import */ var _wordpress_notices__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(31);
13525
  /* harmony import */ var _wordpress_notices__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_notices__WEBPACK_IMPORTED_MODULE_5__);
13526
  /* harmony import */ var _store__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(13);
13527
  /**
13583
  //# sourceMappingURL=use-patterns-state.js.map
13584
 
13585
  /***/ }),
13586
+ /* 163 */
13587
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
13588
 
13589
  "use strict";
13598
  //# sourceMappingURL=context.js.map
13599
 
13600
  /***/ }),
13601
+ /* 164 */,
13602
+ /* 165 */,
13603
+ /* 166 */,
13604
+ /* 167 */,
13605
+ /* 168 */
13606
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
13607
 
13608
  "use strict";
13633
  var external_wp_compose_ = __webpack_require__(9);
13634
 
13635
  // EXTERNAL MODULE: external ["wp","dom"]
13636
+ var external_wp_dom_ = __webpack_require__(24);
13637
 
13638
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-edit/index.js + 1 modules
13639
+ var block_edit = __webpack_require__(142);
13640
 
13641
  // EXTERNAL MODULE: external ["wp","i18n"]
13642
  var external_wp_i18n_ = __webpack_require__(1);
13643
 
13644
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/warning/index.js + 1 modules
13645
+ var warning = __webpack_require__(157);
13646
 
13647
  // EXTERNAL MODULE: ./node_modules/diff/lib/diff/character.js
13648
+ var character = __webpack_require__(347);
13649
 
13650
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-compare/block-view.js
13651
 
13922
  /* harmony default export */ var block_crash_boundary = (block_crash_boundary_BlockCrashBoundary);
13923
  //# sourceMappingURL=block-crash-boundary.js.map
13924
  // EXTERNAL MODULE: ./node_modules/react-autosize-textarea/lib/index.js
13925
+ var lib = __webpack_require__(117);
13926
  var lib_default = /*#__PURE__*/__webpack_require__.n(lib);
13927
 
13928
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-list/block-html.js
13987
  /* harmony default export */ var block_html = (BlockHTML);
13988
  //# sourceMappingURL=block-html.js.map
13989
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-list/use-block-props/index.js
13990
+ var use_block_props = __webpack_require__(208);
13991
 
13992
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-list/block.js
13993
 
14288
  //# sourceMappingURL=block.js.map
14289
 
14290
  /***/ }),
14291
+ /* 169 */
14292
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
14293
 
14294
  "use strict";
14306
  var external_wp_data_ = __webpack_require__(4);
14307
 
14308
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-draggable/draggable-chip.js
14309
+ var draggable_chip = __webpack_require__(225);
14310
 
14311
  // EXTERNAL MODULE: external ["wp","dom"]
14312
+ var external_wp_dom_ = __webpack_require__(24);
14313
 
14314
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-draggable/use-scroll-when-dragging.js
14315
  /**
14513
  //# sourceMappingURL=index.js.map
14514
 
14515
  /***/ }),
14516
+ /* 170 */
14517
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
14518
 
14519
  "use strict";
14542
  //# sourceMappingURL=block-refs-provider.js.map
14543
 
14544
  /***/ }),
14545
+ /* 171 */,
14546
+ /* 172 */
14547
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
14548
 
14549
  "use strict";
14581
  var external_wp_i18n_ = __webpack_require__(1);
14582
 
14583
  // EXTERNAL MODULE: ./packages/icons/build-module/library/chevron-right.js
14584
+ var chevron_right = __webpack_require__(287);
14585
 
14586
  // EXTERNAL MODULE: ./packages/icons/build-module/library/chevron-left.js
14587
+ var chevron_left = __webpack_require__(288);
14588
 
14589
  // EXTERNAL MODULE: ./packages/icons/build-module/library/chevron-up.js
14590
+ var chevron_up = __webpack_require__(384);
14591
 
14592
  // EXTERNAL MODULE: ./packages/icons/build-module/library/chevron-down.js
14593
+ var chevron_down = __webpack_require__(200);
14594
 
14595
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-mover/mover-description.js
14596
  /**
14915
  //# sourceMappingURL=button.js.map
14916
 
14917
  /***/ }),
14918
+ /* 173 */,
14919
+ /* 174 */,
14920
+ /* 175 */,
14921
+ /* 176 */,
14922
+ /* 177 */
14923
  /***/ (function(module, exports, __webpack_require__) {
14924
 
14925
  "use strict";
14932
 
14933
 
14934
 
14935
+ var ReactPropTypesSecret = __webpack_require__(178);
14936
 
14937
  function emptyFunction() {}
14938
  function emptyFunctionWithReset() {}
14990
 
14991
 
14992
  /***/ }),
14993
+ /* 178 */
14994
  /***/ (function(module, exports, __webpack_require__) {
14995
 
14996
  "use strict";
15009
 
15010
 
15011
  /***/ }),
15012
+ /* 179 */,
15013
+ /* 180 */,
15014
+ /* 181 */,
15015
+ /* 182 */,
15016
+ /* 183 */,
15017
+ /* 184 */,
15018
+ /* 185 */
15019
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
15020
 
15021
  "use strict";
15031
  var external_wp_blocks_ = __webpack_require__(8);
15032
 
15033
  // EXTERNAL MODULE: external ["wp","dom"]
15034
+ var external_wp_dom_ = __webpack_require__(24);
15035
 
15036
  // EXTERNAL MODULE: external ["wp","data"]
15037
  var external_wp_data_ = __webpack_require__(4);
15040
  var external_wp_i18n_ = __webpack_require__(1);
15041
 
15042
  // EXTERNAL MODULE: external ["wp","notices"]
15043
+ var external_wp_notices_ = __webpack_require__(31);
15044
 
15045
  // EXTERNAL MODULE: external ["wp","compose"]
15046
  var external_wp_compose_ = __webpack_require__(9);
15047
 
15048
  // EXTERNAL MODULE: external ["wp","blob"]
15049
+ var external_wp_blob_ = __webpack_require__(35);
15050
 
15051
  // CONCATENATED MODULE: ./packages/block-editor/build-module/utils/get-paste-event-data.js
15052
  /**
15245
  //# sourceMappingURL=index.js.map
15246
 
15247
  /***/ }),
15248
+ /* 186 */,
15249
+ /* 187 */,
15250
+ /* 188 */,
15251
+ /* 189 */,
15252
+ /* 190 */,
15253
+ /* 191 */,
15254
+ /* 192 */,
15255
+ /* 193 */
 
15256
  /***/ (function(module, exports) {
15257
 
15258
  (function() { module.exports = window["wp"]["tokenList"]; }());
15259
 
15260
  /***/ }),
15261
+ /* 194 */
15262
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
15263
 
15264
  "use strict";
15426
  //# sourceMappingURL=search-items.js.map
15427
 
15428
  /***/ }),
15429
+ /* 195 */
15430
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
15431
 
15432
  "use strict";
15434
  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
15435
  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1);
15436
  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__);
15437
+ /* harmony import */ var _wordpress_icons__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(113);
15438
+ /* harmony import */ var _wordpress_icons__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(151);
15439
 
15440
 
15441
  /**
15457
  //# sourceMappingURL=no-results.js.map
15458
 
15459
  /***/ }),
15460
+ /* 196 */,
15461
+ /* 197 */,
15462
+ /* 198 */,
15463
+ /* 199 */
15464
  /***/ (function(module, exports) {
15465
 
15466
  function _extends() {
15486
  module.exports["default"] = module.exports, module.exports.__esModule = true;
15487
 
15488
  /***/ }),
15489
+ /* 200 */
15490
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
15491
 
15492
  "use strict";
15510
  //# sourceMappingURL=chevron-down.js.map
15511
 
15512
  /***/ }),
15513
+ /* 201 */
15514
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
15515
 
15516
  "use strict";
15534
  //# sourceMappingURL=more-vertical.js.map
15535
 
15536
  /***/ }),
15537
+ /* 202 */,
15538
+ /* 203 */,
15539
+ /* 204 */,
15540
+ /* 205 */,
15541
+ /* 206 */,
15542
+ /* 207 */,
15543
+ /* 208 */
15544
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
15545
 
15546
  "use strict";
15557
  /* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_compose__WEBPACK_IMPORTED_MODULE_4__);
15558
  /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(4);
15559
  /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_5__);
15560
+ /* harmony import */ var _wordpress_warning__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(68);
15561
  /* harmony import */ var _wordpress_warning__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_wordpress_warning__WEBPACK_IMPORTED_MODULE_6__);
15562
+ /* harmony import */ var _use_moving_animation__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(224);
15563
+ /* harmony import */ var _block__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(168);
15564
+ /* harmony import */ var _use_focus_first_element__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(335);
15565
+ /* harmony import */ var _use_is_hovered__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(341);
15566
  /* harmony import */ var _block_edit_context__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(69);
15567
+ /* harmony import */ var _use_block_class_names__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(343);
15568
+ /* harmony import */ var _use_block_default_class_name__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(344);
15569
+ /* harmony import */ var _use_block_custom_class_name__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(345);
15570
+ /* harmony import */ var _use_block_moving_mode_class_names__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(346);
15571
+ /* harmony import */ var _use_focus_handler__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(337);
15572
+ /* harmony import */ var _use_selected_block_event_handlers__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(339);
15573
+ /* harmony import */ var _use_nav_mode_exit__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(340);
15574
+ /* harmony import */ var _use_scroll_into_view__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(336);
15575
+ /* harmony import */ var _use_block_refs__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(73);
15576
+ /* harmony import */ var _use_multi_selection__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(338);
15577
+ /* harmony import */ var _use_intersection_observer__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(342);
15578
  /* harmony import */ var _store__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(13);
15579
  /**
15580
  * External dependencies
15724
 
15725
  useBlockProps.save = _wordpress_blocks__WEBPACK_IMPORTED_MODULE_3__["__unstableGetBlockProps"];
15726
  //# sourceMappingURL=index.js.map
15727
+ /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(93)))
15728
 
15729
  /***/ }),
15730
+ /* 209 */
15731
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
15732
 
15733
  "use strict";
15746
  //# sourceMappingURL=index.js.map
15747
 
15748
  /***/ }),
15749
+ /* 210 */
15750
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
15751
 
15752
  "use strict";
15757
  /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__);
15758
  /* harmony import */ var _wordpress_deprecated__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(26);
15759
  /* harmony import */ var _wordpress_deprecated__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_deprecated__WEBPACK_IMPORTED_MODULE_3__);
15760
+ /* harmony import */ var _wordpress_dom__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(24);
15761
  /* harmony import */ var _wordpress_dom__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_dom__WEBPACK_IMPORTED_MODULE_4__);
15762
+ /* harmony import */ var _wordpress_keyboard_shortcuts__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(27);
15763
  /* harmony import */ var _wordpress_keyboard_shortcuts__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_keyboard_shortcuts__WEBPACK_IMPORTED_MODULE_5__);
15764
 
15765
 
15916
  //# sourceMappingURL=index.js.map
15917
 
15918
  /***/ }),
15919
+ /* 211 */
15920
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
15921
 
15922
  "use strict";
15927
  /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_2__);
15928
  /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(10);
15929
  /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
15930
+ /* harmony import */ var _wordpress_icons__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(361);
15931
  /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(3);
15932
  /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_5__);
15933
  /* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(8);
15936
  /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_7__);
15937
  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(1);
15938
  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_8__);
15939
+ /* harmony import */ var _block_draggable__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(169);
15940
+ /* harmony import */ var _button__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(172);
15941
  /* harmony import */ var _store__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(13);
15942
 
15943
 
16057
  //# sourceMappingURL=index.js.map
16058
 
16059
  /***/ }),
16060
+ /* 212 */
16061
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
16062
 
16063
  "use strict";
16067
  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__);
16068
  /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(3);
16069
  /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__);
16070
+ /* harmony import */ var _block_settings_dropdown__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(242);
16071
 
16072
 
16073
 
16093
  //# sourceMappingURL=index.js.map
16094
 
16095
  /***/ }),
16096
+ /* 213 */
16097
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
16098
 
16099
  "use strict";
16112
  //# sourceMappingURL=block-settings-menu-first-item.js.map
16113
 
16114
  /***/ }),
16115
+ /* 214 */,
16116
+ /* 215 */,
16117
+ /* 216 */,
16118
+ /* 217 */,
16119
+ /* 218 */,
16120
+ /* 219 */
16121
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
16122
 
16123
  "use strict";
16148
  var external_wp_components_ = __webpack_require__(3);
16149
 
16150
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-mover/index.js
16151
+ var block_mover = __webpack_require__(211);
16152
 
16153
  // EXTERNAL MODULE: external ["wp","i18n"]
16154
  var external_wp_i18n_ = __webpack_require__(1);
16155
 
16156
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/use-block-display-information/index.js
16157
+ var use_block_display_information = __webpack_require__(86);
16158
 
16159
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-icon/index.js
16160
+ var block_icon = __webpack_require__(55);
16161
 
16162
  // EXTERNAL MODULE: external "lodash"
16163
  var external_lodash_ = __webpack_require__(2);
16433
  }
16434
  //# sourceMappingURL=index.js.map
16435
  // EXTERNAL MODULE: ./packages/icons/build-module/library/stack.js
16436
+ var stack = __webpack_require__(558);
16437
 
16438
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-title/index.js
16439
+ var block_title = __webpack_require__(101);
16440
 
16441
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-preview/index.js + 2 modules
16442
+ var block_preview = __webpack_require__(79);
16443
 
16444
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-switcher/preview-block-popover.js
16445
 
16531
  /* harmony default export */ var block_transformations_menu = (BlockTransformationsMenu);
16532
  //# sourceMappingURL=block-transformations-menu.js.map
16533
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-styles/index.js + 1 modules
16534
+ var block_styles = __webpack_require__(244);
16535
 
16536
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-switcher/block-styles-menu.js
16537
 
16581
  }
16582
  //# sourceMappingURL=block-styles-menu.js.map
16583
  // EXTERNAL MODULE: ./packages/icons/build-module/library/chevron-right.js
16584
+ var chevron_right = __webpack_require__(287);
16585
 
16586
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-switcher/utils.js
16587
  /**
17028
  /* harmony default export */ var block_switcher = (BlockSwitcher);
17029
  //# sourceMappingURL=index.js.map
17030
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-controls/index.js + 3 modules
17031
+ var block_controls = __webpack_require__(107);
17032
 
17033
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-settings-menu/index.js
17034
+ var block_settings_menu = __webpack_require__(212);
17035
 
17036
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-toolbar/index.js
17037
 
17167
  //# sourceMappingURL=index.js.map
17168
 
17169
  /***/ }),
17170
+ /* 220 */
17171
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
17172
 
17173
  "use strict";
17427
  //# sourceMappingURL=index.js.map
17428
 
17429
  /***/ }),
17430
+ /* 221 */
17431
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
17432
 
17433
  "use strict";
17448
  var store = __webpack_require__(13);
17449
 
17450
  // EXTERNAL MODULE: ./packages/block-editor/build-module/store/constants.js
17451
+ var constants = __webpack_require__(43);
17452
 
17453
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/provider/with-registry-provider.js
17454
 
17499
  /* harmony default export */ var with_registry_provider = (withRegistryProvider);
17500
  //# sourceMappingURL=with-registry-provider.js.map
17501
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/provider/use-block-sync.js
17502
+ var use_block_sync = __webpack_require__(230);
17503
 
17504
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/provider/block-refs-provider.js
17505
+ var block_refs_provider = __webpack_require__(170);
17506
 
17507
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/provider/index.js
17508
 
17542
  //# sourceMappingURL=index.js.map
17543
 
17544
  /***/ }),
17545
+ /* 222 */
17546
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
17547
 
17548
  "use strict";
17633
  //# sourceMappingURL=math.js.map
17634
 
17635
  /***/ }),
17636
+ /* 223 */
17637
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
17638
 
17639
  "use strict";
17646
  /* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__);
17647
  /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4);
17648
  /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_1__);
17649
+ /* harmony import */ var _wordpress_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24);
17650
  /* harmony import */ var _wordpress_dom__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_dom__WEBPACK_IMPORTED_MODULE_2__);
17651
  /* harmony import */ var _store__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(13);
17652
  /**
17837
  //# sourceMappingURL=index.js.map
17838
 
17839
  /***/ }),
17840
+ /* 224 */
17841
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
17842
 
17843
  "use strict";
17844
+ /* harmony import */ var react_spring_web_cjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(133);
17845
  /* harmony import */ var react_spring_web_cjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_spring_web_cjs__WEBPACK_IMPORTED_MODULE_0__);
17846
  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(0);
17847
  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__);
17848
  /* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9);
17849
  /* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_compose__WEBPACK_IMPORTED_MODULE_2__);
17850
+ /* harmony import */ var _wordpress_dom__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(24);
17851
  /* harmony import */ var _wordpress_dom__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_dom__WEBPACK_IMPORTED_MODULE_3__);
17852
  /**
17853
  * External dependencies
18018
  //# sourceMappingURL=index.js.map
18019
 
18020
  /***/ }),
18021
+ /* 225 */
18022
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
18023
 
18024
  "use strict";
18029
  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__);
18030
  /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(3);
18031
  /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__);
18032
+ /* harmony import */ var _wordpress_icons__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(361);
18033
+ /* harmony import */ var _block_icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(55);
18034
 
18035
 
18036
  /**
18066
  //# sourceMappingURL=draggable-chip.js.map
18067
 
18068
  /***/ }),
18069
+ /* 226 */
18070
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
18071
 
18072
  "use strict";
18080
  /* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_compose__WEBPACK_IMPORTED_MODULE_2__);
18081
  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(1);
18082
  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__);
18083
+ /* harmony import */ var _use_on_block_drop__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(223);
18084
+ /* harmony import */ var _utils_math__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(222);
18085
  /* harmony import */ var _store__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(13);
18086
  /**
18087
  * WordPress dependencies
18215
  //# sourceMappingURL=index.js.map
18216
 
18217
  /***/ }),
18218
+ /* 227 */
18219
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
18220
 
18221
  "use strict";
18229
  /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__);
18230
  /* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(9);
18231
  /* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_compose__WEBPACK_IMPORTED_MODULE_4__);
18232
+ /* harmony import */ var _wordpress_a11y__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(33);
18233
  /* harmony import */ var _wordpress_a11y__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_a11y__WEBPACK_IMPORTED_MODULE_5__);
18234
+ /* harmony import */ var _block_types_list__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(121);
18235
+ /* harmony import */ var _block_patterns_list__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(229);
18236
+ /* harmony import */ var _inserter_menu_extension__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(209);
18237
+ /* harmony import */ var _panel__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(111);
18238
+ /* harmony import */ var _no_results__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(195);
18239
+ /* harmony import */ var _hooks_use_insertion_point__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(161);
18240
+ /* harmony import */ var _hooks_use_patterns_state__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(162);
18241
+ /* harmony import */ var _hooks_use_block_types_state__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(106);
18242
+ /* harmony import */ var _search_items__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(194);
18243
+ /* harmony import */ var _inserter_listbox__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(153);
18244
 
18245
 
18246
  /**
18362
  //# sourceMappingURL=search-results.js.map
18363
 
18364
  /***/ }),
18365
+ /* 228 */
18366
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
18367
 
18368
  "use strict";
18370
  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
18371
  /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3);
18372
  /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__);
18373
+ /* harmony import */ var _block_draggable_draggable_chip__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(225);
18374
 
18375
 
18376
  /**
18416
  //# sourceMappingURL=index.js.map
18417
 
18418
  /***/ }),
18419
+ /* 229 */
18420
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
18421
 
18422
  "use strict";
18431
  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__);
18432
  /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(4);
18433
  /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_5__);
18434
+ /* harmony import */ var _block_preview__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(79);
18435
+ /* harmony import */ var _inserter_draggable_blocks__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(228);
18436
  /* harmony import */ var _store__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(13);
18437
 
18438
 
18536
  //# sourceMappingURL=index.js.map
18537
 
18538
  /***/ }),
18539
+ /* 230 */
18540
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
18541
 
18542
  "use strict";
18773
  //# sourceMappingURL=use-block-sync.js.map
18774
 
18775
  /***/ }),
18776
+ /* 231 */
18777
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
18778
 
18779
  "use strict";
18781
  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
18782
  /* harmony import */ var _wordpress_deprecated__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(26);
18783
  /* harmony import */ var _wordpress_deprecated__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_deprecated__WEBPACK_IMPORTED_MODULE_1__);
18784
+ /* harmony import */ var _block_icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(55);
18785
 
18786
 
18787
  /**
18830
  //# sourceMappingURL=index.js.map
18831
 
18832
  /***/ }),
18833
+ /* 232 */
18834
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
18835
 
18836
  "use strict";
18845
  /* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_4__);
18846
  /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(4);
18847
  /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_5__);
18848
+ /* harmony import */ var _navigable_toolbar__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(210);
18849
+ /* harmony import */ var _block_toolbar__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(219);
18850
  /* harmony import */ var _store__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(13);
18851
 
18852
 
18927
  //# sourceMappingURL=block-contextual-toolbar.js.map
18928
 
18929
  /***/ }),
18930
+ /* 233 */
18931
  /***/ (function(module, exports) {
18932
 
18933
  if (typeof Object.create === 'function') {
18956
 
18957
 
18958
  /***/ }),
18959
+ /* 234 */,
18960
+ /* 235 */,
18961
+ /* 236 */,
18962
+ /* 237 */,
18963
+ /* 238 */,
18964
+ /* 239 */,
18965
+ /* 240 */,
18966
+ /* 241 */
18967
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
18968
 
18969
  "use strict";
19010
  var external_wp_blocks_ = __webpack_require__(8);
19011
 
19012
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-card/index.js
19013
+ var block_card = __webpack_require__(231);
19014
 
19015
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-preview/index.js + 2 modules
19016
+ var block_preview = __webpack_require__(79);
19017
 
19018
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/preview-panel.js
19019
 
19074
  var external_lodash_ = __webpack_require__(2);
19075
 
19076
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-types-list/index.js + 1 modules
19077
+ var block_types_list = __webpack_require__(121);
19078
 
19079
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/inserter/panel.js
19080
+ var panel = __webpack_require__(111);
19081
 
19082
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/inserter/hooks/use-block-types-state.js
19083
+ var use_block_types_state = __webpack_require__(106);
19084
 
19085
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/inserter-listbox/index.js
19086
+ var inserter_listbox = __webpack_require__(153);
19087
 
19088
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/block-types-tab.js
19089
 
19268
  /* harmony default export */ var pattern_panel = (PatternInserterPanel);
19269
  //# sourceMappingURL=pattern-panel.js.map
19270
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/inserter/hooks/use-patterns-state.js
19271
+ var use_patterns_state = __webpack_require__(162);
19272
 
19273
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-patterns-list/index.js
19274
+ var block_patterns_list = __webpack_require__(229);
19275
 
19276
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/block-patterns-tab.js
19277
 
19369
  var external_wp_url_ = __webpack_require__(20);
19370
 
19371
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/inserter/no-results.js
19372
+ var no_results = __webpack_require__(195);
19373
 
19374
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/reusable-blocks-tab.js
19375
 
19448
  /* harmony default export */ var reusable_blocks_tab = (ReusableBlocksTab);
19449
  //# sourceMappingURL=reusable-blocks-tab.js.map
19450
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/inserter/search-results.js
19451
+ var search_results = __webpack_require__(227);
19452
 
19453
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/inserter/hooks/use-insertion-point.js
19454
+ var use_insertion_point = __webpack_require__(161);
19455
 
19456
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/tabs.js
19457
 
19657
  //# sourceMappingURL=menu.js.map
19658
 
19659
  /***/ }),
19660
+ /* 242 */
19661
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
19662
 
19663
  "use strict";
19683
  var external_wp_data_ = __webpack_require__(4);
19684
 
19685
  // EXTERNAL MODULE: ./packages/icons/build-module/library/more-vertical.js
19686
+ var more_vertical = __webpack_require__(201);
19687
 
19688
  // EXTERNAL MODULE: external ["wp","blocks"]
19689
  var external_wp_blocks_ = __webpack_require__(8);
19690
 
19691
  // EXTERNAL MODULE: external ["wp","keyboardShortcuts"]
19692
+ var external_wp_keyboardShortcuts_ = __webpack_require__(27);
19693
 
19694
  // EXTERNAL MODULE: external ["wp","compose"]
19695
  var external_wp_compose_ = __webpack_require__(9);
19696
 
19697
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/copy-handler/index.js + 1 modules
19698
+ var copy_handler = __webpack_require__(185);
19699
 
19700
  // EXTERNAL MODULE: ./packages/block-editor/build-module/store/index.js + 5 modules
19701
  var store = __webpack_require__(13);
19941
  })))(BlockConvertButton));
19942
  //# sourceMappingURL=block-html-convert-button.js.map
19943
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-settings-menu/block-settings-menu-first-item.js
19944
+ var block_settings_menu_first_item = __webpack_require__(213);
19945
 
19946
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-settings-menu-controls/index.js + 2 modules
19947
+ var block_settings_menu_controls = __webpack_require__(220);
19948
 
19949
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-settings-menu/block-settings-dropdown.js
19950
 
20084
  //# sourceMappingURL=block-settings-dropdown.js.map
20085
 
20086
  /***/ }),
20087
+ /* 243 */
20088
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
20089
 
20090
  "use strict";
20112
  var external_wp_data_ = __webpack_require__(4);
20113
 
20114
  // EXTERNAL MODULE: external ["wp","keyboardShortcuts"]
20115
+ var external_wp_keyboardShortcuts_ = __webpack_require__(27);
20116
 
20117
  // EXTERNAL MODULE: external ["wp","compose"]
20118
  var external_wp_compose_ = __webpack_require__(9);
20119
 
20120
  // EXTERNAL MODULE: external ["wp","dom"]
20121
+ var external_wp_dom_ = __webpack_require__(24);
20122
 
20123
  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
20124
  var esm_extends = __webpack_require__(7);
20125
 
20126
  // EXTERNAL MODULE: ./packages/icons/build-module/library/drag-handle.js
20127
+ var drag_handle = __webpack_require__(361);
20128
 
20129
  // EXTERNAL MODULE: external ["wp","keycodes"]
20130
  var external_wp_keycodes_ = __webpack_require__(14);
20131
 
20132
  // EXTERNAL MODULE: external ["wp","a11y"]
20133
+ var external_wp_a11y_ = __webpack_require__(33);
20134
 
20135
  // EXTERNAL MODULE: external ["wp","i18n"]
20136
  var external_wp_i18n_ = __webpack_require__(1);
20137
 
20138
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-title/index.js
20139
+ var block_title = __webpack_require__(101);
20140
 
20141
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-icon/index.js
20142
+ var block_icon = __webpack_require__(55);
20143
 
20144
  // EXTERNAL MODULE: ./packages/block-editor/build-module/store/index.js + 5 modules
20145
  var store = __webpack_require__(13);
20146
 
20147
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-draggable/index.js + 1 modules
20148
+ var block_draggable = __webpack_require__(169);
20149
 
20150
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/use-block-display-information/index.js
20151
+ var use_block_display_information = __webpack_require__(86);
20152
 
20153
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-tools/block-selection-button.js
20154
 
20319
 
20320
  const startingBlockClientId = hasBlockMovingClientId();
20321
 
20322
+ if (isEscape && startingBlockClientId && !event.defaultPrevented) {
20323
  setBlockMovingClientId(null);
20324
+ event.preventDefault();
20325
  }
20326
 
20327
  if ((isEnter || isSpace) && startingBlockClientId) {
20406
  /* harmony default export */ var block_selection_button = (BlockSelectionButton);
20407
  //# sourceMappingURL=block-selection-button.js.map
20408
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-tools/block-contextual-toolbar.js
20409
+ var block_contextual_toolbar = __webpack_require__(232);
20410
 
20411
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/inserter/index.js + 1 modules
20412
+ var inserter = __webpack_require__(90);
20413
 
20414
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-list/use-block-props/use-block-refs.js
20415
+ var use_block_refs = __webpack_require__(73);
20416
 
20417
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-tools/use-popover-scroll.js
20418
+ var use_popover_scroll = __webpack_require__(160);
20419
 
20420
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-tools/block-popover.js
20421
 
20723
  //# sourceMappingURL=block-popover.js.map
20724
 
20725
  /***/ }),
20726
+ /* 244 */
20727
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
20728
 
20729
  "use strict";
20751
  var external_wp_blocks_ = __webpack_require__(8);
20752
 
20753
  // EXTERNAL MODULE: external ["wp","tokenList"]
20754
+ var external_wp_tokenList_ = __webpack_require__(193);
20755
  var external_wp_tokenList_default = /*#__PURE__*/__webpack_require__.n(external_wp_tokenList_);
20756
 
20757
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-styles/utils.js
20813
  }
20814
  //# sourceMappingURL=utils.js.map
20815
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-preview/index.js + 2 modules
20816
+ var block_preview = __webpack_require__(79);
20817
 
20818
  // EXTERNAL MODULE: ./packages/block-editor/build-module/store/index.js + 5 modules
20819
  var store = __webpack_require__(13);
20984
  //# sourceMappingURL=index.js.map
20985
 
20986
  /***/ }),
20987
+ /* 245 */,
20988
+ /* 246 */
 
 
20989
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
20990
 
20991
  "use strict";
21009
  //# sourceMappingURL=link.js.map
21010
 
21011
  /***/ }),
21012
+ /* 247 */
21013
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
21014
 
21015
  "use strict";
21033
  //# sourceMappingURL=link-off.js.map
21034
 
21035
  /***/ }),
21036
+ /* 248 */
21037
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
21038
 
21039
  "use strict";
21057
  //# sourceMappingURL=list-view.js.map
21058
 
21059
  /***/ }),
21060
+ /* 249 */
21061
  /***/ (function(module, exports) {
21062
 
21063
  function _objectWithoutPropertiesLoose(source, excluded) {
21079
  module.exports["default"] = module.exports, module.exports.__esModule = true;
21080
 
21081
  /***/ }),
21082
+ /* 250 */
21083
  /***/ (function(module, exports, __webpack_require__) {
21084
 
21085
+ var setPrototypeOf = __webpack_require__(251);
21086
 
21087
  function _inheritsLoose(subClass, superClass) {
21088
  subClass.prototype = Object.create(superClass.prototype);
21094
  module.exports["default"] = module.exports, module.exports.__esModule = true;
21095
 
21096
  /***/ }),
21097
+ /* 251 */
21098
  /***/ (function(module, exports) {
21099
 
21100
  function _setPrototypeOf(o, p) {
21111
  module.exports["default"] = module.exports, module.exports.__esModule = true;
21112
 
21113
  /***/ }),
21114
+ /* 252 */
21115
  /***/ (function(module, exports) {
21116
 
21117
  function _assertThisInitialized(self) {
21126
  module.exports["default"] = module.exports, module.exports.__esModule = true;
21127
 
21128
  /***/ }),
21129
+ /* 253 */
21130
  /***/ (function(module, exports, __webpack_require__) {
21131
 
21132
  "use strict";
21133
 
21134
 
21135
+ var util = __webpack_require__(254);
21136
 
21137
  function scrollIntoView(elem, container, config) {
21138
  config = config || {};
21266
  module.exports = scrollIntoView;
21267
 
21268
  /***/ }),
21269
+ /* 254 */
21270
  /***/ (function(module, exports, __webpack_require__) {
21271
 
21272
  "use strict";
21711
  }, domUtils);
21712
 
21713
  /***/ }),
21714
+ /* 255 */
21715
  /***/ (function(module, exports, __webpack_require__) {
21716
 
21717
  "use strict";
21745
  };
21746
  exports.__esModule = true;
21747
  var React = __webpack_require__(11);
21748
+ var PropTypes = __webpack_require__(25);
21749
+ var autosize = __webpack_require__(256);
21750
+ var _getLineHeight = __webpack_require__(257);
21751
  var getLineHeight = _getLineHeight;
21752
  var RESIZED = "autosize:resized";
21753
  /**
21844
 
21845
 
21846
  /***/ }),
21847
+ /* 256 */
21848
  /***/ (function(module, exports, __webpack_require__) {
21849
 
21850
  var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
22132
  });
22133
 
22134
  /***/ }),
22135
+ /* 257 */
22136
  /***/ (function(module, exports, __webpack_require__) {
22137
 
22138
  // Load in dependencies
22139
+ var computedStyle = __webpack_require__(258);
22140
 
22141
  /**
22142
  * Calculate the `line-height` of a given node
22235
 
22236
 
22237
  /***/ }),
22238
+ /* 258 */
22239
  /***/ (function(module, exports) {
22240
 
22241
  // This code has been refactored for 140 bytes
22268
 
22269
 
22270
  /***/ }),
22271
+ /* 259 */
22272
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
22273
 
22274
  "use strict";
22292
  //# sourceMappingURL=layout.js.map
22293
 
22294
  /***/ }),
 
 
 
 
 
 
22295
  /* 260 */,
22296
  /* 261 */,
22297
  /* 262 */,
22298
  /* 263 */,
22299
  /* 264 */,
22300
+ /* 265 */,
22301
+ /* 266 */,
22302
+ /* 267 */,
22303
+ /* 268 */,
22304
+ /* 269 */,
22305
+ /* 270 */,
22306
+ /* 271 */
22307
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
22308
 
22309
  "use strict";
22338
  //# sourceMappingURL=edit.js.map
22339
 
22340
  /***/ }),
 
 
 
 
 
 
22341
  /* 272 */,
22342
  /* 273 */,
22343
  /* 274 */,
22344
+ /* 275 */,
22345
+ /* 276 */,
22346
+ /* 277 */,
22347
+ /* 278 */,
22348
+ /* 279 */,
22349
+ /* 280 */,
22350
+ /* 281 */,
22351
+ /* 282 */,
22352
+ /* 283 */,
22353
+ /* 284 */
22354
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
22355
 
22356
  "use strict";
22359
  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__);
22360
  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
22361
  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__);
22362
+ /* harmony import */ var _wordpress_a11y__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(33);
22363
  /* harmony import */ var _wordpress_a11y__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_a11y__WEBPACK_IMPORTED_MODULE_3__);
22364
 
22365
 
22399
  //# sourceMappingURL=group.js.map
22400
 
22401
  /***/ }),
22402
+ /* 285 */
22403
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
22404
 
22405
  "use strict";
22408
  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__);
22409
  /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(3);
22410
  /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__);
22411
+ /* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(163);
22412
 
22413
 
22414
 
22436
  //# sourceMappingURL=row.js.map
22437
 
22438
  /***/ }),
22439
+ /* 286 */
22440
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
22441
 
22442
  "use strict";
22445
  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__);
22446
  /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(3);
22447
  /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__);
22448
+ /* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(163);
22449
 
22450
 
22451
 
22496
  //# sourceMappingURL=item.js.map
22497
 
22498
  /***/ }),
22499
+ /* 287 */
22500
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
22501
 
22502
  "use strict";
22520
  //# sourceMappingURL=chevron-right.js.map
22521
 
22522
  /***/ }),
22523
+ /* 288 */
22524
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
22525
 
22526
  "use strict";
22544
  //# sourceMappingURL=chevron-left.js.map
22545
 
22546
  /***/ }),
22547
+ /* 289 */
22548
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
22549
 
22550
  "use strict";
22568
  //# sourceMappingURL=keyboard-return.js.map
22569
 
22570
  /***/ }),
22571
+ /* 290 */
22572
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
22573
 
22574
  "use strict";
22592
  //# sourceMappingURL=upload.js.map
22593
 
22594
  /***/ }),
 
 
 
 
 
 
 
 
 
22595
  /* 291 */,
22596
  /* 292 */,
22597
  /* 293 */,
22627
  /* 323 */,
22628
  /* 324 */,
22629
  /* 325 */,
22630
+ /* 326 */,
22631
+ /* 327 */,
22632
+ /* 328 */,
22633
+ /* 329 */,
22634
+ /* 330 */,
22635
+ /* 331 */,
22636
+ /* 332 */,
22637
+ /* 333 */,
22638
+ /* 334 */,
22639
+ /* 335 */
22640
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
22641
 
22642
  "use strict";
22645
  /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_0__);
22646
  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(0);
22647
  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__);
22648
+ /* harmony import */ var _wordpress_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24);
22649
  /* harmony import */ var _wordpress_dom__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_dom__WEBPACK_IMPORTED_MODULE_2__);
22650
  /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(4);
22651
  /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_3__);
22652
+ /* harmony import */ var _utils_dom__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(134);
22653
  /* harmony import */ var _store__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(13);
22654
  /**
22655
  * External dependencies
22737
  const isReverse = -1 === initialPosition;
22738
  const target = (isReverse ? lodash__WEBPACK_IMPORTED_MODULE_0__["last"] : lodash__WEBPACK_IMPORTED_MODULE_0__["first"])(textInputs) || ref.current;
22739
 
22740
+ if (!Object(_utils_dom__WEBPACK_IMPORTED_MODULE_4__[/* isInsideRootBlock */ "c"])(ref.current, target)) {
 
22741
  ref.current.focus();
22742
  return;
22743
  }
22749
  //# sourceMappingURL=use-focus-first-element.js.map
22750
 
22751
  /***/ }),
22752
+ /* 336 */
22753
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
22754
 
22755
  "use strict";
22756
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return useScrollIntoView; });
22757
+ /* harmony import */ var dom_scroll_into_view__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(145);
22758
  /* harmony import */ var dom_scroll_into_view__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(dom_scroll_into_view__WEBPACK_IMPORTED_MODULE_0__);
22759
  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(0);
22760
  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__);
22761
  /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4);
22762
  /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_2__);
22763
+ /* harmony import */ var _wordpress_dom__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(24);
22764
  /* harmony import */ var _wordpress_dom__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_dom__WEBPACK_IMPORTED_MODULE_3__);
22765
  /* harmony import */ var _store__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(13);
22766
  /**
22828
  //# sourceMappingURL=use-scroll-into-view.js.map
22829
 
22830
  /***/ }),
22831
+ /* 337 */
22832
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
22833
 
22834
  "use strict";
22837
  /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_0__);
22838
  /* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9);
22839
  /* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_compose__WEBPACK_IMPORTED_MODULE_1__);
22840
+ /* harmony import */ var _utils_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(134);
22841
  /* harmony import */ var _store__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(13);
22842
  /**
22843
  * WordPress dependencies
22903
  //# sourceMappingURL=use-focus-handler.js.map
22904
 
22905
  /***/ }),
22906
+ /* 338 */
22907
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
22908
 
22909
  "use strict";
22913
  /* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9);
22914
  /* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_compose__WEBPACK_IMPORTED_MODULE_1__);
22915
  /* harmony import */ var _store__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(13);
22916
+ /* harmony import */ var _utils_dom__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(134);
22917
  /**
22918
  * WordPress dependencies
22919
  */
23095
  //# sourceMappingURL=use-multi-selection.js.map
23096
 
23097
  /***/ }),
23098
+ /* 339 */
23099
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
23100
 
23101
  "use strict";
23102
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return useEventHandlers; });
23103
+ /* harmony import */ var _wordpress_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(24);
23104
  /* harmony import */ var _wordpress_dom__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_dom__WEBPACK_IMPORTED_MODULE_0__);
23105
  /* harmony import */ var _wordpress_keycodes__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(14);
23106
  /* harmony import */ var _wordpress_keycodes__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_keycodes__WEBPACK_IMPORTED_MODULE_1__);
23200
  //# sourceMappingURL=use-selected-block-event-handlers.js.map
23201
 
23202
  /***/ }),
23203
+ /* 340 */
23204
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
23205
 
23206
  "use strict";
23260
  //# sourceMappingURL=use-nav-mode-exit.js.map
23261
 
23262
  /***/ }),
23263
+ /* 341 */
23264
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
23265
 
23266
  "use strict";
23320
  //# sourceMappingURL=use-is-hovered.js.map
23321
 
23322
  /***/ }),
23323
+ /* 342 */
23324
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
23325
 
23326
  "use strict";
23329
  /* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_compose__WEBPACK_IMPORTED_MODULE_0__);
23330
  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(0);
23331
  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__);
23332
+ /* harmony import */ var ___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(105);
23333
  /**
23334
  * WordPress dependencies
23335
  */
23354
  //# sourceMappingURL=use-intersection-observer.js.map
23355
 
23356
  /***/ }),
23357
+ /* 343 */
23358
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
23359
 
23360
  "use strict";
23430
  //# sourceMappingURL=use-block-class-names.js.map
23431
 
23432
  /***/ }),
23433
+ /* 344 */
23434
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
23435
 
23436
  "use strict";
23475
  //# sourceMappingURL=use-block-default-class-name.js.map
23476
 
23477
  /***/ }),
23478
+ /* 345 */
23479
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
23480
 
23481
  "use strict";
23533
  //# sourceMappingURL=use-block-custom-class-name.js.map
23534
 
23535
  /***/ }),
23536
+ /* 346 */
23537
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
23538
 
23539
  "use strict";
23594
  //# sourceMappingURL=use-block-moving-mode-class-names.js.map
23595
 
23596
  /***/ }),
23597
+ /* 347 */
23598
  /***/ (function(module, exports, __webpack_require__) {
23599
 
23600
  "use strict";
23610
  /*istanbul ignore end*/
23611
  var
23612
  /*istanbul ignore start*/
23613
+ _base = _interopRequireDefault(__webpack_require__(385))
23614
  /*istanbul ignore end*/
23615
  ;
23616
 
23638
 
23639
 
23640
  /***/ }),
23641
+ /* 348 */
23642
  /***/ (function(module, exports, __webpack_require__) {
23643
 
23644
  "use strict";
23802
 
23803
 
23804
  /***/ }),
23805
+ /* 349 */
23806
  /***/ (function(module, exports) {
23807
 
23808
  var traverse = module.exports = function (obj) {
24122
 
24123
 
24124
  /***/ }),
 
 
 
 
 
 
 
 
 
24125
  /* 350 */,
24126
  /* 351 */,
24127
+ /* 352 */,
24128
+ /* 353 */,
24129
+ /* 354 */,
24130
+ /* 355 */,
24131
+ /* 356 */,
24132
+ /* 357 */,
24133
+ /* 358 */,
24134
+ /* 359 */,
24135
+ /* 360 */,
24136
+ /* 361 */
24137
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
24138
 
24139
  "use strict";
24159
  //# sourceMappingURL=drag-handle.js.map
24160
 
24161
  /***/ }),
 
 
 
 
 
 
 
 
 
24162
  /* 362 */,
24163
  /* 363 */,
24164
  /* 364 */,
24167
  /* 367 */,
24168
  /* 368 */,
24169
  /* 369 */,
24170
+ /* 370 */,
24171
+ /* 371 */,
24172
+ /* 372 */,
24173
+ /* 373 */,
24174
+ /* 374 */,
24175
+ /* 375 */,
24176
+ /* 376 */,
24177
+ /* 377 */,
24178
+ /* 378 */,
24179
+ /* 379 */,
24180
+ /* 380 */
24181
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
24182
 
24183
  "use strict";
24201
  //# sourceMappingURL=format-strikethrough.js.map
24202
 
24203
  /***/ }),
24204
+ /* 381 */
24205
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
24206
 
24207
  "use strict";
24225
  //# sourceMappingURL=align-left.js.map
24226
 
24227
  /***/ }),
24228
+ /* 382 */
24229
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
24230
 
24231
  "use strict";
24249
  //# sourceMappingURL=align-center.js.map
24250
 
24251
  /***/ }),
24252
+ /* 383 */
24253
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
24254
 
24255
  "use strict";
24273
  //# sourceMappingURL=align-right.js.map
24274
 
24275
  /***/ }),
24276
+ /* 384 */
24277
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
24278
 
24279
  "use strict";
24297
  //# sourceMappingURL=chevron-up.js.map
24298
 
24299
  /***/ }),
24300
+ /* 385 */
24301
  /***/ (function(module, exports, __webpack_require__) {
24302
 
24303
  "use strict";
24608
 
24609
 
24610
  /***/ }),
24611
+ /* 386 */
24612
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
24613
 
24614
  "use strict";
24634
  //# sourceMappingURL=grid.js.map
24635
 
24636
  /***/ }),
24637
+ /* 387 */
24638
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
24639
 
24640
  "use strict";
24658
  //# sourceMappingURL=media.js.map
24659
 
24660
  /***/ }),
24661
+ /* 388 */
24662
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
24663
 
24664
  "use strict";
24682
  //# sourceMappingURL=arrow-left.js.map
24683
 
24684
  /***/ }),
 
 
 
 
 
 
 
 
 
 
24685
  /* 389 */,
24686
  /* 390 */,
24687
  /* 391 */,
24781
  /* 485 */,
24782
  /* 486 */,
24783
  /* 487 */,
24784
+ /* 488 */,
24785
+ /* 489 */,
24786
+ /* 490 */,
24787
+ /* 491 */,
24788
+ /* 492 */,
24789
+ /* 493 */,
24790
+ /* 494 */,
24791
+ /* 495 */,
24792
+ /* 496 */,
24793
+ /* 497 */
24794
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
24795
 
24796
  "use strict";
24927
  __webpack_require__.d(__webpack_exports__, "__experimentalUseNoRecursiveRenders", function() { return /* reexport */ useNoRecursiveRenders; });
24928
  __webpack_require__.d(__webpack_exports__, "BlockEditorProvider", function() { return /* reexport */ provider["a" /* default */]; });
24929
  __webpack_require__.d(__webpack_exports__, "__experimentalUseSimulatedMediaQuery", function() { return /* reexport */ useSimulatedMediaQuery; });
24930
+ __webpack_require__.d(__webpack_exports__, "useSetting", function() { return /* reexport */ use_setting["a" /* default */]; });
24931
  __webpack_require__.d(__webpack_exports__, "transformStyles", function() { return /* reexport */ transform_styles; });
24932
  __webpack_require__.d(__webpack_exports__, "validateThemeColors", function() { return /* reexport */ validateThemeColors; });
24933
  __webpack_require__.d(__webpack_exports__, "validateThemeGradients", function() { return /* reexport */ validateThemeGradients; });
24959
  var external_wp_blocks_ = __webpack_require__(8);
24960
 
24961
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-controls/index.js + 3 modules
24962
+ var block_controls = __webpack_require__(107);
24963
 
24964
  // EXTERNAL MODULE: external ["wp","i18n"]
24965
  var external_wp_i18n_ = __webpack_require__(1);
24985
  }));
24986
  /* harmony default export */ var position_left = (positionLeft);
24987
  //# sourceMappingURL=position-left.js.map
24988
+ // EXTERNAL MODULE: ./packages/icons/build-module/library/position-center.js
24989
+ var position_center = __webpack_require__(556);
 
 
 
 
24990
 
 
 
 
 
 
 
 
 
24991
  // CONCATENATED MODULE: ./packages/icons/build-module/library/position-right.js
24992
 
24993
 
25003
  }));
25004
  /* harmony default export */ var position_right = (positionRight);
25005
  //# sourceMappingURL=position-right.js.map
25006
+ // EXTERNAL MODULE: ./packages/icons/build-module/library/stretch-wide.js
25007
+ var stretch_wide = __webpack_require__(557);
 
 
 
 
25008
 
 
 
 
 
 
 
 
 
25009
  // CONCATENATED MODULE: ./packages/icons/build-module/library/stretch-full-width.js
25010
 
25011
 
25025
  var external_wp_data_ = __webpack_require__(4);
25026
 
25027
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-list/layout.js
25028
+ var block_list_layout = __webpack_require__(116);
25029
 
25030
  // EXTERNAL MODULE: ./packages/block-editor/build-module/store/index.js + 5 modules
25031
  var store = __webpack_require__(13);
25032
 
25033
+ // EXTERNAL MODULE: ./packages/block-editor/build-module/layouts/index.js + 3 modules
25034
+ var layouts = __webpack_require__(119);
25035
+
25036
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-alignment-control/use-available-alignments.js
25037
  /**
25038
  * WordPress dependencies
25044
 
25045
 
25046
 
25047
+
25048
  const DEFAULT_CONTROLS = ['left', 'center', 'right', 'wide', 'full'];
25049
  const WIDE_CONTROLS = ['wide', 'full'];
25050
  function useAvailableAlignments(controls = DEFAULT_CONTROLS) {
25051
  const {
25052
+ wideControlsEnabled = false,
25053
+ themeSupportsLayout
25054
  } = Object(external_wp_data_["useSelect"])(select => {
25055
  const {
25056
  getSettings
25057
  } = select(store["a" /* store */]);
25058
  const settings = getSettings();
25059
  return {
25060
+ wideControlsEnabled: settings.alignWide,
25061
+ themeSupportsLayout: settings.supportsLayout
25062
  };
25063
  }, []);
25064
  const layout = Object(block_list_layout["d" /* useLayout */])();
25065
+ const layoutType = Object(layouts["a" /* getLayoutType */])(layout === null || layout === void 0 ? void 0 : layout.type);
25066
+ const layoutAlignments = layoutType.getAlignments(layout);
25067
+
25068
+ if (themeSupportsLayout) {
25069
+ return layoutAlignments.filter(control => controls.includes(control));
25070
+ } // Starting here, it's the fallback for themes not supporting the layout config.
25071
+
25072
 
25073
+ if (layoutType.name !== 'default') {
25074
  return [];
25075
  }
25076
 
25103
  title: Object(external_wp_i18n_["__"])('Align left')
25104
  },
25105
  center: {
25106
+ icon: position_center["a" /* default */],
25107
  title: Object(external_wp_i18n_["__"])('Align center')
25108
  },
25109
  right: {
25111
  title: Object(external_wp_i18n_["__"])('Align right')
25112
  },
25113
  wide: {
25114
+ icon: stretch_wide["a" /* default */],
25115
  title: Object(external_wp_i18n_["__"])('Wide width')
25116
  },
25117
  full: {
25442
  /* harmony default export */ var inspector_advanced_controls = (InspectorAdvancedControls);
25443
  //# sourceMappingURL=index.js.map
25444
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/use-display-block-controls/index.js
25445
+ var use_display_block_controls = __webpack_require__(158);
25446
 
25447
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/inspector-controls/index.js
25448
 
25787
  }
25788
  Object(external_wp_hooks_["addFilter"])('blocks.getSaveContent.extraProps', 'core/generated-class-name/save-props', addGeneratedClassName);
25789
  //# sourceMappingURL=generated-class-name.js.map
25790
+ // EXTERNAL MODULE: ./packages/block-editor/build-module/components/use-setting/index.js
25791
+ var use_setting = __webpack_require__(28);
 
 
 
 
 
 
 
 
 
 
 
25792
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
25793
  // EXTERNAL MODULE: ./node_modules/tinycolor2/tinycolor.js
25794
+ var tinycolor = __webpack_require__(45);
25795
  var tinycolor_default = /*#__PURE__*/__webpack_require__.n(tinycolor);
25796
 
25797
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/colors/utils.js
25936
  const {
25937
  clientId
25938
  } = Object(block_edit_context["b" /* useBlockEditContext */])();
25939
+ const gradients = Object(use_setting["a" /* default */])('color.gradients') || EMPTY_ARRAY;
25940
  const {
25941
  gradient,
25942
  customGradient
26113
 
26114
  function ColorGradientControlSelect(props) {
26115
  const colorGradientSettings = {};
26116
+ colorGradientSettings.colors = Object(use_setting["a" /* default */])('color.palette');
26117
+ colorGradientSettings.gradients = Object(use_setting["a" /* default */])('color.gradients');
26118
+ colorGradientSettings.disableCustomColors = !Object(use_setting["a" /* default */])('color.custom');
26119
+ colorGradientSettings.disableCustomGradients = !Object(use_setting["a" /* default */])('color.customGradient');
26120
  return Object(external_wp_element_["createElement"])(ColorGradientControlInner, Object(esm_extends["a" /* default */])({}, colorGradientSettings, props));
26121
  }
26122
 
26202
  },
26203
  setAttributes
26204
  } = props;
26205
+ const colors = Object(use_setting["a" /* default */])('color.palette') || border_color_EMPTY_ARRAY;
26206
+ const disableCustomColors = !Object(use_setting["a" /* default */])('color.custom');
26207
+ const disableCustomGradients = !Object(use_setting["a" /* default */])('color.customGradient');
26208
 
26209
  const onChangeColor = value => {
26210
  const colorObject = getColorObjectByColorValue(colors, value);
26340
  const {
26341
  borderColor
26342
  } = attributes;
26343
+ const colors = Object(use_setting["a" /* default */])('color.palette') || border_color_EMPTY_ARRAY;
26344
 
26345
  if (!hasBorderSupport(name, 'color') || shouldSkipSerialization(name)) {
26346
  return Object(external_wp_element_["createElement"])(BlockListBlock, props);
26544
  }
26545
  //# sourceMappingURL=input-controls.js.map
26546
  // EXTERNAL MODULE: ./packages/icons/build-module/library/link.js
26547
+ var library_link = __webpack_require__(246);
26548
 
26549
  // EXTERNAL MODULE: ./packages/icons/build-module/library/link-off.js
26550
+ var link_off = __webpack_require__(247);
26551
 
26552
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/border-radius-control/linked-button.js
26553
 
26623
  }) {
26624
  const [isLinked, setIsLinked] = Object(external_wp_element_["useState"])(!hasDefinedValues(values) || !hasMixedValues(values));
26625
  const units = Object(external_wp_components_["__experimentalUseCustomUnits"])({
26626
+ availableUnits: Object(use_setting["a" /* default */])('spacing.units') || ['px', 'em', 'rem']
26627
  });
26628
  const unit = getAllUnit(values);
26629
  const unitConfig = units && units.find(item => item.value === unit);
26962
  };
26963
 
26964
  const units = Object(external_wp_components_["__experimentalUseCustomUnits"])({
26965
+ availableUnits: Object(use_setting["a" /* default */])('spacing.units') || ['px', 'em', 'rem']
26966
  });
26967
  return Object(external_wp_element_["createElement"])(external_wp_components_["__experimentalUnitControl"], {
26968
  value: width,
26997
  function BorderPanel(props) {
26998
  const isDisabled = useIsBorderDisabled(props);
26999
  const isSupported = hasBorderSupport(props.name);
27000
+ const isColorSupported = Object(use_setting["a" /* default */])('border.customColor') && hasBorderSupport(props.name, 'color');
27001
+ const isRadiusSupported = Object(use_setting["a" /* default */])('border.customRadius') && hasBorderSupport(props.name, 'radius');
27002
+ const isStyleSupported = Object(use_setting["a" /* default */])('border.customStyle') && hasBorderSupport(props.name, 'style');
27003
+ const isWidthSupported = Object(use_setting["a" /* default */])('border.customWidth') && hasBorderSupport(props.name, 'width');
27004
 
27005
  if (isDisabled || !isSupported) {
27006
  return null;
27059
  */
27060
 
27061
  const useIsBorderDisabled = () => {
27062
+ const configs = [!Object(use_setting["a" /* default */])('border.customColor'), !Object(use_setting["a" /* default */])('border.customRadius'), !Object(use_setting["a" /* default */])('border.customStyle'), !Object(use_setting["a" /* default */])('border.customWidth')];
27063
  return configs.every(Boolean);
27064
  };
27065
  //# sourceMappingURL=border.js.map
27165
 
27166
  const PanelColorGradientSettingsSelect = props => {
27167
  const colorGradientSettings = {};
27168
+ colorGradientSettings.colors = Object(use_setting["a" /* default */])('color.palette');
27169
+ colorGradientSettings.gradients = Object(use_setting["a" /* default */])('color.gradients');
27170
+ colorGradientSettings.disableCustomColors = !Object(use_setting["a" /* default */])('color.custom');
27171
+ colorGradientSettings.disableCustomGradients = !Object(use_setting["a" /* default */])('color.customGradient');
27172
  return Object(external_wp_element_["createElement"])(PanelColorGradientSettingsInner, Object(esm_extends["a" /* default */])({}, colorGradientSettings, props));
27173
  };
27174
 
27183
  /* harmony default export */ var panel_color_gradient_settings = (PanelColorGradientSettings);
27184
  //# sourceMappingURL=panel-color-gradient-settings.js.map
27185
  // EXTERNAL MODULE: external ["wp","a11y"]
27186
+ var external_wp_a11y_ = __webpack_require__(33);
27187
 
27188
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/contrast-checker/index.js
27189
 
27259
  /* harmony default export */ var contrast_checker = (ContrastChecker);
27260
  //# sourceMappingURL=index.js.map
27261
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-list/use-block-props/use-block-refs.js
27262
+ var use_block_refs = __webpack_require__(73);
27263
 
27264
  // CONCATENATED MODULE: ./packages/block-editor/build-module/hooks/color-panel.js
27265
 
27524
  name: blockName,
27525
  attributes
27526
  } = props;
27527
+ const solids = Object(use_setting["a" /* default */])('color.palette') || color_EMPTY_ARRAY;
27528
+ const gradients = Object(use_setting["a" /* default */])('color.gradients') || color_EMPTY_ARRAY;
27529
+ const areCustomSolidsEnabled = Object(use_setting["a" /* default */])('color.custom');
27530
+ const areCustomGradientsEnabled = Object(use_setting["a" /* default */])('color.customGradient');
27531
+ const isLinkEnabled = Object(use_setting["a" /* default */])('color.link'); // Shouldn't be needed but right now the ColorGradientsPanel
27532
  // can trigger both onChangeColor and onChangeBackground
27533
  // synchronously causing our two callbacks to override changes
27534
  // from each other.
27675
  backgroundColor,
27676
  textColor
27677
  } = attributes;
27678
+ const colors = Object(use_setting["a" /* default */])('color.palette') || color_EMPTY_ARRAY;
27679
 
27680
  if (!hasColorSupport(name) || color_shouldSkipSerialization(name)) {
27681
  return Object(external_wp_element_["createElement"])(BlockListBlock, props);
27716
  /* harmony default export */ var format_underline = (formatUnderline);
27717
  //# sourceMappingURL=format-underline.js.map
27718
  // EXTERNAL MODULE: ./packages/icons/build-module/library/format-strikethrough.js
27719
+ var format_strikethrough = __webpack_require__(380);
27720
 
27721
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/text-decoration-control/index.js
27722
 
27836
  name: blockName
27837
  } = {}) {
27838
  const notSupported = !Object(external_wp_blocks_["hasBlockSupport"])(blockName, TEXT_DECORATION_SUPPORT_KEY);
27839
+ const hasTextDecoration = Object(use_setting["a" /* default */])('typography.customTextDecorations');
27840
  return notSupported || !hasTextDecoration;
27841
  }
27842
  //# sourceMappingURL=text-decoration.js.map
28007
  name: blockName
28008
  } = {}) {
28009
  const notSupported = !Object(external_wp_blocks_["hasBlockSupport"])(blockName, TEXT_TRANSFORM_SUPPORT_KEY);
28010
+ const hasTextTransforms = Object(use_setting["a" /* default */])('typography.customTextTransforms');
28011
  return notSupported || !hasTextTransforms;
28012
  }
28013
  //# sourceMappingURL=text-transform.js.map
28218
  function useIsLineHeightDisabled({
28219
  name: blockName
28220
  } = {}) {
28221
+ const isDisabled = !Object(use_setting["a" /* default */])('typography.customLineHeight');
28222
  return !Object(external_wp_blocks_["hasBlockSupport"])(blockName, LINE_HEIGHT_SUPPORT_KEY) || isDisabled;
28223
  }
28224
  //# sourceMappingURL=line-height.js.map
28479
  name: blockName
28480
  } = {}) {
28481
  const styleSupport = Object(external_wp_blocks_["hasBlockSupport"])(blockName, FONT_STYLE_SUPPORT_KEY);
28482
+ const hasFontStyles = Object(use_setting["a" /* default */])('typography.customFontStyle');
28483
  return !styleSupport || !hasFontStyles;
28484
  }
28485
  /**
28496
  name: blockName
28497
  } = {}) {
28498
  const weightSupport = Object(external_wp_blocks_["hasBlockSupport"])(blockName, FONT_WEIGHT_SUPPORT_KEY);
28499
+ const hasFontWeights = Object(use_setting["a" /* default */])('typography.customFontWeight');
28500
  return !weightSupport || !hasFontWeights;
28501
  }
28502
  /**
28538
  fontFamilies,
28539
  ...props
28540
  }) {
28541
+ const blockLevelFontFamilies = Object(use_setting["a" /* default */])('typography.fontFamilies');
28542
 
28543
  if (!fontFamilies) {
28544
  fontFamilies = blockLevelFontFamilies;
28617
  }) {
28618
  var _style$typography;
28619
 
28620
+ const fontFamilies = Object(use_setting["a" /* default */])('typography.fontFamilies');
28621
  const isDisable = useIsFontFamilyDisabled({
28622
  name
28623
  });
28658
  function useIsFontFamilyDisabled({
28659
  name
28660
  }) {
28661
+ const fontFamilies = Object(use_setting["a" /* default */])('typography.fontFamilies');
28662
  return !fontFamilies || fontFamilies.length === 0 || !Object(external_wp_blocks_["hasBlockSupport"])(name, FONT_FAMILY_SUPPORT_KEY);
28663
  }
28664
  //# sourceMappingURL=font-family.js.map
28665
  // EXTERNAL MODULE: external ["wp","tokenList"]
28666
+ var external_wp_tokenList_ = __webpack_require__(193);
28667
  var external_wp_tokenList_default = /*#__PURE__*/__webpack_require__.n(external_wp_tokenList_);
28668
 
28669
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/font-sizes/utils.js
28752
 
28753
 
28754
  function FontSizePicker(props) {
28755
+ const fontSizes = Object(use_setting["a" /* default */])('typography.fontSizes');
28756
+ const disableCustomFontSizes = !Object(use_setting["a" /* default */])('typography.customFontSize');
28757
  return Object(external_wp_element_["createElement"])(external_wp_components_["FontSizePicker"], Object(esm_extends["a" /* default */])({}, props, {
28758
  fontSizes: fontSizes,
28759
  disableCustomFontSizes: disableCustomFontSizes
28881
  setAttributes
28882
  } = props;
28883
  const isDisabled = useIsFontSizeDisabled(props);
28884
+ const fontSizes = Object(use_setting["a" /* default */])('typography.fontSizes');
28885
 
28886
  const onChange = value => {
28887
  const fontSizeSlug = getFontSizeObjectByValue(fontSizes, value).slug;
28916
  function useIsFontSizeDisabled({
28917
  name: blockName
28918
  } = {}) {
28919
+ const fontSizes = Object(use_setting["a" /* default */])('typography.fontSizes');
28920
  const hasFontSizes = !!(fontSizes !== null && fontSizes !== void 0 && fontSizes.length);
28921
  return !Object(external_wp_blocks_["hasBlockSupport"])(blockName, FONT_SIZE_SUPPORT_KEY) || !hasFontSizes;
28922
  }
28933
  const withFontSizeInlineStyles = Object(external_wp_compose_["createHigherOrderComponent"])(BlockListBlock => props => {
28934
  var _style$typography3, _style$typography4;
28935
 
28936
+ const fontSizes = Object(use_setting["a" /* default */])('typography.fontSizes');
28937
  const {
28938
  name: blockName,
28939
  attributes: {
28993
  onChange
28994
  }) {
28995
  const units = Object(external_wp_components_["__experimentalUseCustomUnits"])({
28996
+ availableUnits: Object(use_setting["a" /* default */])('spacing.units') || ['px', 'em', 'rem'],
28997
  defaultValues: {
28998
  px: '2',
28999
  em: '.2',
29077
  name: blockName
29078
  } = {}) {
29079
  const notSupported = !Object(external_wp_blocks_["hasBlockSupport"])(blockName, LETTER_SPACING_SUPPORT_KEY);
29080
+ const hasLetterSpacing = Object(use_setting["a" /* default */])('typography.customLetterSpacing');
29081
  return notSupported || !hasLetterSpacing;
29082
  }
29083
  //# sourceMappingURL=letter-spacing.js.map
29168
  function useIsMarginDisabled({
29169
  name: blockName
29170
  } = {}) {
29171
+ const isDisabled = !Object(use_setting["a" /* default */])('spacing.customMargin');
29172
  return !hasMarginSupport(blockName) || isDisabled;
29173
  }
29174
  /**
29190
  setAttributes
29191
  } = props;
29192
  const units = Object(external_wp_components_["__experimentalUseCustomUnits"])({
29193
+ availableUnits: Object(use_setting["a" /* default */])('spacing.units') || ['%', 'px', 'em', 'rem', 'vw']
29194
  });
29195
  const sides = useCustomSides(blockName, 'margin');
29196
 
29273
  function useIsPaddingDisabled({
29274
  name: blockName
29275
  } = {}) {
29276
+ const isDisabled = !Object(use_setting["a" /* default */])('spacing.customPadding');
29277
  return !hasPaddingSupport(blockName) || isDisabled;
29278
  }
29279
  /**
29295
  setAttributes
29296
  } = props;
29297
  const units = Object(external_wp_components_["__experimentalUseCustomUnits"])({
29298
+ availableUnits: Object(use_setting["a" /* default */])('spacing.units') || ['%', 'px', 'em', 'rem', 'vw']
29299
  });
29300
  const sides = useCustomSides(blockName, 'padding');
29301
 
29716
  const openOnArrowDown = event => {
29717
  if (!isOpen && event.keyCode === external_wp_keycodes_["DOWN"]) {
29718
  event.preventDefault();
 
29719
  onToggle();
29720
  }
29721
  };
29744
  /* harmony default export */ var duotone_control = (DuotoneControl);
29745
  //# sourceMappingURL=index.js.map
29746
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-list/head.js
29747
+ var block_list_head = __webpack_require__(159);
29748
 
29749
  // CONCATENATED MODULE: ./packages/block-editor/build-module/hooks/duotone.js
29750
 
29871
 
29872
  const style = attributes === null || attributes === void 0 ? void 0 : attributes.style;
29873
  const duotone = style === null || style === void 0 ? void 0 : (_style$color = style.color) === null || _style$color === void 0 ? void 0 : _style$color.duotone;
29874
+ const duotonePalette = Object(use_setting["a" /* default */])('color.duotone') || duotone_EMPTY_ARRAY;
29875
+ const colorPalette = Object(use_setting["a" /* default */])('color.palette') || duotone_EMPTY_ARRAY;
29876
+ const disableCustomColors = !Object(use_setting["a" /* default */])('color.custom');
29877
+ const disableCustomDuotone = !Object(use_setting["a" /* default */])('color.customDuotone') || (colorPalette === null || colorPalette === void 0 ? void 0 : colorPalette.length) === 0 && disableCustomColors;
29878
 
29879
  if ((duotonePalette === null || duotonePalette === void 0 ? void 0 : duotonePalette.length) === 0 && disableCustomDuotone) {
29880
  return null;
29977
  Object(external_wp_hooks_["addFilter"])('editor.BlockEdit', 'core/editor/duotone/with-editor-controls', withDuotoneControls);
29978
  Object(external_wp_hooks_["addFilter"])('editor.BlockListBlock', 'core/editor/duotone/with-styles', withDuotoneStyles);
29979
  //# sourceMappingURL=duotone.js.map
 
 
 
29980
  // CONCATENATED MODULE: ./packages/block-editor/build-module/hooks/layout.js
29981
 
29982
 
29997
 
29998
 
29999
 
 
30000
  /**
30001
  * Internal dependencies
30002
  */
30007
 
30008
 
30009
 
30010
+ const layoutBlockSupportKey = '__experimentalLayout';
30011
+
30012
+ const canBlockSwitchLayout = blockTypeOrName => {
30013
+ const layoutBlockSupportConfig = Object(external_wp_blocks_["getBlockSupport"])(blockTypeOrName, layoutBlockSupportKey);
30014
+ return layoutBlockSupportConfig === null || layoutBlockSupportConfig === void 0 ? void 0 : layoutBlockSupportConfig.allowSwitching;
30015
+ };
30016
+
30017
  function LayoutPanel({
30018
  setAttributes,
30019
+ attributes,
30020
+ name: blockName
30021
  }) {
30022
  const {
30023
  layout = {}
30024
  } = attributes;
30025
+ const defaultLayout = Object(use_setting["a" /* default */])('layout');
 
 
 
 
 
30026
  const themeSupportsLayout = Object(external_wp_data_["useSelect"])(select => {
30027
  const {
30028
  getSettings
30029
  } = select(store["a" /* store */]);
30030
  return getSettings().supportsLayout;
30031
  }, []);
 
 
 
30032
 
30033
  if (!themeSupportsLayout) {
30034
  return null;
30035
  }
30036
 
30037
+ const allowLayoutSwitching = canBlockSwitchLayout(blockName);
30038
+ const {
30039
+ inherit = false,
30040
+ type = 'default'
30041
+ } = layout;
30042
+ const layoutType = Object(layouts["a" /* getLayoutType */])(type);
30043
+
30044
+ const onChangeType = newType => setAttributes({
30045
+ layout: {
30046
+ type: newType
30047
+ }
30048
+ });
30049
+
30050
+ const onChangeLayout = newLayout => setAttributes({
30051
+ layout: newLayout
30052
+ });
30053
+
30054
  return Object(external_wp_element_["createElement"])(inspector_controls, null, Object(external_wp_element_["createElement"])(external_wp_components_["PanelBody"], {
30055
  title: Object(external_wp_i18n_["__"])('Layout')
30056
  }, !!defaultLayout && Object(external_wp_element_["createElement"])(external_wp_components_["ToggleControl"], {
30061
  inherit: !inherit
30062
  }
30063
  })
30064
+ }), !inherit && allowLayoutSwitching && Object(external_wp_element_["createElement"])(LayoutTypeSwitcher, {
30065
+ type: type,
30066
+ onChange: onChangeType
30067
+ }), !inherit && layoutType && Object(external_wp_element_["createElement"])(layoutType.edit, {
30068
+ layout: layout,
30069
+ onChange: onChangeLayout
30070
+ })));
30071
+ }
30072
+
30073
+ function LayoutTypeSwitcher({
30074
+ type,
30075
+ onChange
30076
+ }) {
30077
+ return Object(external_wp_element_["createElement"])(external_wp_components_["ButtonGroup"], null, Object(layouts["b" /* getLayoutTypes */])().map(({
30078
+ name,
30079
+ label
30080
+ }) => {
30081
+ return Object(external_wp_element_["createElement"])(external_wp_components_["Button"], {
30082
+ key: name,
30083
+ isPressed: type === name,
30084
+ onClick: () => onChange(name)
30085
+ }, label);
30086
+ }));
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
30087
  }
30088
  /**
30089
  * Filters registered block settings, extending attributes to include `layout`.
30099
  return settings;
30100
  }
30101
 
30102
+ if (Object(external_wp_blocks_["hasBlockSupport"])(settings, layoutBlockSupportKey)) {
30103
  settings.attributes = { ...settings.attributes,
30104
  layout: {
30105
  type: 'object'
30121
  const {
30122
  name: blockName
30123
  } = props;
30124
+ const supportLayout = Object(external_wp_blocks_["hasBlockSupport"])(blockName, layoutBlockSupportKey);
30125
  return [supportLayout && Object(external_wp_element_["createElement"])(LayoutPanel, Object(esm_extends["a" /* default */])({
30126
  key: "layout"
30127
  }, props)), Object(external_wp_element_["createElement"])(BlockEdit, Object(esm_extends["a" /* default */])({
30141
  name,
30142
  attributes
30143
  } = props;
30144
+ const supportLayout = Object(external_wp_blocks_["hasBlockSupport"])(name, layoutBlockSupportKey);
30145
  const id = Object(external_wp_compose_["useInstanceId"])(BlockListBlock);
30146
+ const defaultLayout = Object(use_setting["a" /* default */])('layout') || {};
30147
 
30148
  if (!supportLayout) {
30149
  return Object(external_wp_element_["createElement"])(BlockListBlock, props);
30225
  */
30226
 
30227
  function useBorderProps(attributes) {
30228
+ const colors = Object(use_setting["a" /* default */])('color.palette') || use_border_props_EMPTY_ARRAY;
30229
  const borderProps = getBorderClassesAndStyles(attributes); // Force inline style to apply border color when themes do not load their
30230
  // color stylesheets in the editor.
30231
 
30318
  textColor,
30319
  gradient
30320
  } = attributes;
30321
+ const colors = Object(use_setting["a" /* default */])('color.palette') || use_color_props_EMPTY_ARRAY;
30322
+ const gradients = Object(use_setting["a" /* default */])('color.gradients') || use_color_props_EMPTY_ARRAY;
30323
  const colorProps = getColorClassesAndStyles(attributes); // Force inline styles to apply colors when themes do not load their color
30324
  // stylesheets in the editor.
30325
 
30400
 
30401
 
30402
  const withEditorColorPalette = () => Object(external_wp_compose_["createHigherOrderComponent"])(WrappedComponent => props => {
30403
+ const colors = Object(use_setting["a" /* default */])('color.palette') || DEFAULT_COLORS;
30404
  return Object(external_wp_element_["createElement"])(WrappedComponent, Object(esm_extends["a" /* default */])({}, props, {
30405
  colors: colors
30406
  }));
30608
  return fontSizeAttributeNamesAccumulator;
30609
  }, {});
30610
  return Object(external_wp_compose_["createHigherOrderComponent"])(Object(external_wp_compose_["compose"])([Object(external_wp_compose_["createHigherOrderComponent"])(WrappedComponent => props => {
30611
+ const fontSizes = Object(use_setting["a" /* default */])('typography.fontSizes') || DEFAULT_FONT_SIZES;
30612
  return Object(external_wp_element_["createElement"])(WrappedComponent, Object(esm_extends["a" /* default */])({}, props, {
30613
  fontSizes: fontSizes
30614
  }));
30692
 
30693
  //# sourceMappingURL=index.js.map
30694
  // EXTERNAL MODULE: ./packages/icons/build-module/library/align-left.js
30695
+ var align_left = __webpack_require__(381);
30696
 
30697
  // EXTERNAL MODULE: ./packages/icons/build-module/library/align-center.js
30698
+ var align_center = __webpack_require__(382);
30699
 
30700
  // EXTERNAL MODULE: ./packages/icons/build-module/library/align-right.js
30701
+ var align_right = __webpack_require__(383);
30702
 
30703
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/alignment-control/ui.js
30704
 
30800
  }
30801
  //# sourceMappingURL=index.js.map
30802
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/inserter/search-items.js
30803
+ var search_items = __webpack_require__(194);
30804
 
30805
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/inserter/hooks/use-block-types-state.js
30806
+ var use_block_types_state = __webpack_require__(106);
30807
 
30808
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-icon/index.js
30809
+ var block_icon = __webpack_require__(55);
30810
 
30811
  // CONCATENATED MODULE: ./packages/block-editor/build-module/autocompleters/block.js
30812
 
31078
  const openOnArrowDown = event => {
31079
  if (!isOpen && event.keyCode === external_wp_keycodes_["DOWN"]) {
31080
  event.preventDefault();
 
31081
  onToggle();
31082
  }
31083
  };
31103
 
31104
  /* harmony default export */ var block_alignment_matrix_control = (BlockAlignmentMatrixControl);
31105
  //# sourceMappingURL=index.js.map
31106
+ // EXTERNAL MODULE: ./packages/icons/build-module/icon/index.js
31107
+ var build_module_icon = __webpack_require__(113);
31108
+
31109
  // CONCATENATED MODULE: ./packages/icons/build-module/library/chevron-right-small.js
31110
 
31111
 
31122
  /* harmony default export */ var chevron_right_small = (chevronRightSmall);
31123
  //# sourceMappingURL=chevron-right-small.js.map
31124
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-title/index.js
31125
+ var block_title = __webpack_require__(101);
31126
 
31127
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-breadcrumb/index.js
31128
 
31308
  /* eslint-enable jsx-a11y/no-static-element-interactions */
31309
  //# sourceMappingURL=index.js.map
31310
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-context/index.js
31311
+ var block_context = __webpack_require__(152);
31312
 
31313
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/color-style-selector/index.js
31314
 
31369
  const openOnArrowDown = event => {
31370
  if (!isOpen && event.keyCode === external_wp_keycodes_["DOWN"]) {
31371
  event.preventDefault();
 
31372
  onToggle();
31373
  }
31374
  };
31396
  /* harmony default export */ var color_style_selector = (BlockColorsStyleSelector);
31397
  //# sourceMappingURL=index.js.map
31398
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-edit/index.js + 1 modules
31399
+ var block_edit = __webpack_require__(142);
31400
 
31401
  // EXTERNAL MODULE: ./packages/icons/build-module/library/list-view.js
31402
+ var list_view = __webpack_require__(248);
31403
 
31404
  // EXTERNAL MODULE: ./packages/icons/build-module/library/more-vertical.js
31405
+ var more_vertical = __webpack_require__(201);
31406
 
31407
  // EXTERNAL MODULE: ./node_modules/react-spring/web.cjs.js
31408
+ var web_cjs = __webpack_require__(133);
31409
 
31410
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/use-moving-animation/index.js
31411
+ var use_moving_animation = __webpack_require__(224);
31412
 
31413
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/list-view/leaf.js
31414
 
31456
  }
31457
  //# sourceMappingURL=leaf.js.map
31458
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-mover/button.js + 1 modules
31459
+ var block_mover_button = __webpack_require__(172);
31460
 
31461
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/list-view/context.js
31462
  /**
31470
  const useListViewContext = () => Object(external_wp_element_["useContext"])(ListViewContext);
31471
  //# sourceMappingURL=context.js.map
31472
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-list/block.js + 6 modules
31473
+ var block_list_block = __webpack_require__(168);
31474
 
31475
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/use-block-display-information/index.js
31476
+ var use_block_display_information = __webpack_require__(86);
31477
 
31478
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/list-view/utils.js
31479
  /**
31702
  };
31703
  //# sourceMappingURL=block-slot.js.map
31704
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-draggable/index.js + 1 modules
31705
+ var block_draggable = __webpack_require__(169);
31706
 
31707
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/list-view/block-contents.js
31708
 
31798
  /* harmony default export */ var block_contents = (ListViewBlockContents);
31799
  //# sourceMappingURL=block-contents.js.map
31800
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-settings-menu/block-settings-dropdown.js + 4 modules
31801
+ var block_settings_dropdown = __webpack_require__(242);
31802
 
31803
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/list-view/block.js
31804
 
32006
  }
32007
  //# sourceMappingURL=block.js.map
32008
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/inserter/index.js + 1 modules
32009
+ var inserter = __webpack_require__(90);
32010
 
32011
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/list-view/appender.js
32012
 
32389
  }
32390
  //# sourceMappingURL=use-list-view-client-ids.js.map
32391
  // EXTERNAL MODULE: ./packages/block-editor/build-module/utils/math.js
32392
+ var math = __webpack_require__(222);
32393
 
32394
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/use-on-block-drop/index.js
32395
+ var use_on_block_drop = __webpack_require__(223);
32396
 
32397
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/list-view/use-list-view-drop-zone.js
32398
  /**
32853
  /* harmony default export */ var dropdown = (Object(external_wp_element_["forwardRef"])(BlockNavigationDropdown));
32854
  //# sourceMappingURL=dropdown.js.map
32855
  // EXTERNAL MODULE: ./packages/icons/build-module/library/layout.js
32856
+ var library_layout = __webpack_require__(259);
32857
 
32858
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-variation-picker/index.js
32859
 
32913
  /* harmony default export */ var block_variation_picker = (BlockVariationPicker);
32914
  //# sourceMappingURL=index.js.map
32915
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-preview/index.js + 2 modules
32916
+ var block_preview = __webpack_require__(79);
32917
 
32918
  // EXTERNAL MODULE: ./packages/icons/build-module/library/chevron-left.js
32919
+ var chevron_left = __webpack_require__(288);
32920
 
32921
  // EXTERNAL MODULE: ./packages/icons/build-module/library/chevron-right.js
32922
+ var chevron_right = __webpack_require__(287);
32923
 
32924
  // EXTERNAL MODULE: ./packages/icons/build-module/library/grid.js
32925
+ var grid = __webpack_require__(386);
32926
 
32927
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-pattern-setup/constants.js
32928
  const VIEWMODES = {
33212
  /* harmony default export */ var block_pattern_setup = (BlockPatternSetup);
33213
  //# sourceMappingURL=index.js.map
33214
  // EXTERNAL MODULE: ./packages/icons/build-module/library/chevron-down.js
33215
+ var chevron_down = __webpack_require__(200);
33216
 
33217
  // CONCATENATED MODULE: ./packages/block-editor/build-module/utils/block-variation-transforms.js
33218
  /**
33453
  }
33454
  //# sourceMappingURL=index.js.map
33455
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/button-block-appender/index.js
33456
+ var button_block_appender = __webpack_require__(144);
33457
 
33458
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/color-palette/with-color-context.js
33459
 
33475
 
33476
  /* harmony default export */ var with_color_context = (Object(external_wp_compose_["createHigherOrderComponent"])(WrappedComponent => {
33477
  return props => {
33478
+ const colorsFeature = Object(use_setting["a" /* default */])('color.palette');
33479
+ const disableCustomColorsFeature = !Object(use_setting["a" /* default */])('color.custom');
33480
  const colors = props.colors === undefined ? colorsFeature : props.colors;
33481
  const disableCustomColors = props.disableCustomColors === undefined ? disableCustomColorsFeature : props.disableCustomColors;
33482
  const hasColorsToChoose = !Object(external_lodash_["isEmpty"])(colors) || !disableCustomColors;
33702
  /* harmony default export */ var inner_blocks_button_block_appender = (with_client_id(ButtonBlockAppender));
33703
  //# sourceMappingURL=button-block-appender.js.map
33704
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/default-block-appender/index.js
33705
+ var default_block_appender = __webpack_require__(154);
33706
 
33707
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/inner-blocks/default-block-appender.js
33708
 
33746
  })])(DefaultBlockAppender));
33747
  //# sourceMappingURL=default-block-appender.js.map
33748
  // EXTERNAL MODULE: external ["wp","isShallowEqual"]
33749
+ var external_wp_isShallowEqual_ = __webpack_require__(54);
33750
  var external_wp_isShallowEqual_default = /*#__PURE__*/__webpack_require__.n(external_wp_isShallowEqual_);
33751
 
33752
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/inner-blocks/use-nested-settings-update.js
33761
  */
33762
 
33763
 
33764
+
33765
  /**
33766
  * This hook is a side effect which updates the block-editor store when changes
33767
  * happen to inner block settings. The given props are transformed into a
33779
  * the child block.
33780
  * @param {string} orientation The direction in which the block
33781
  * should face.
33782
+ * @param {Object} layout The layout object for the block container.
33783
  */
33784
 
33785
+ function useNestedSettingsUpdate(clientId, allowedBlocks, templateLock, captureToolbars, orientation, layout) {
33786
  const {
33787
  updateBlockListSettings
33788
  } = Object(external_wp_data_["useDispatch"])(store["a" /* store */]);
33809
 
33810
  if (captureToolbars !== undefined) {
33811
  newSettings.__experimentalCaptureToolbars = captureToolbars;
33812
+ } // Orientation depends on layout,
33813
+ // ideally the separate orientation prop should be deprecated.
33814
+
33815
 
33816
  if (orientation !== undefined) {
33817
  newSettings.orientation = orientation;
33818
+ } else {
33819
+ const layoutType = Object(layouts["a" /* getLayoutType */])(layout === null || layout === void 0 ? void 0 : layout.type);
33820
+ newSettings.orientation = layoutType.getOrientation(layout);
33821
  }
33822
 
33823
  if (!external_wp_isShallowEqual_default()(blockListSettings, newSettings)) {
33824
  updateBlockListSettings(clientId, newSettings);
33825
  }
33826
+ }, [clientId, blockListSettings, _allowedBlocks, templateLock, parentLock, captureToolbars, orientation, updateBlockListSettings, layout]);
33827
  }
33828
  //# sourceMappingURL=use-nested-settings-update.js.map
33829
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/inner-blocks/use-inner-block-template-sync.js
33934
  }
33935
  //# sourceMappingURL=get-block-context.js.map
33936
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-list/index.js + 4 modules
33937
+ var block_list = __webpack_require__(105);
33938
 
33939
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/provider/use-block-sync.js
33940
+ var use_block_sync = __webpack_require__(230);
33941
 
33942
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/use-block-drop-zone/index.js
33943
+ var use_block_drop_zone = __webpack_require__(226);
33944
 
33945
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/inner-blocks/index.js
33946
 
33997
  placeholder,
33998
  __experimentalLayout
33999
  } = props;
34000
+ useNestedSettingsUpdate(clientId, allowedBlocks, templateLock, captureToolbars, orientation, __experimentalLayout);
34001
  useInnerBlockTemplateSync(clientId, template, templateLock, templateInsertUpdatesSelection);
34002
  const context = Object(external_wp_data_["useSelect"])(select => {
34003
  const block = select(store["a" /* store */]).getBlock(clientId);
34259
  }
34260
  //# sourceMappingURL=index.js.map
34261
  // EXTERNAL MODULE: ./packages/icons/build-module/library/keyboard-return.js
34262
+ var keyboard_return = __webpack_require__(289);
34263
 
34264
  // EXTERNAL MODULE: external ["wp","dom"]
34265
+ var external_wp_dom_ = __webpack_require__(24);
34266
 
34267
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/link-control/settings-drawer.js
34268
 
34310
  /* harmony default export */ var settings_drawer = (LinkControlSettingsDrawer);
34311
  //# sourceMappingURL=settings-drawer.js.map
34312
  // EXTERNAL MODULE: ./node_modules/dom-scroll-into-view/lib/index.js
34313
+ var lib = __webpack_require__(145);
34314
  var lib_default = /*#__PURE__*/__webpack_require__.n(lib);
34315
 
34316
  // EXTERNAL MODULE: external ["wp","url"]
34536
  case external_wp_keycodes_["UP"]:
34537
  {
34538
  if (0 !== event.target.selectionStart) {
 
34539
  event.preventDefault(); // Set the input caret to position 0
34540
 
34541
  event.target.setSelectionRange(0, 0);
34549
  case external_wp_keycodes_["DOWN"]:
34550
  {
34551
  if (this.props.value.length !== event.target.selectionStart) {
 
34552
  event.preventDefault(); // Set the input caret to the last position
34553
 
34554
  event.target.setSelectionRange(this.props.value.length, this.props.value.length);
34576
  switch (event.keyCode) {
34577
  case external_wp_keycodes_["UP"]:
34578
  {
 
34579
  event.preventDefault();
34580
  const previousIndex = !selectedSuggestion ? suggestions.length - 1 : selectedSuggestion - 1;
34581
  this.setState({
34586
 
34587
  case external_wp_keycodes_["DOWN"]:
34588
  {
 
34589
  event.preventDefault();
34590
  const nextIndex = selectedSuggestion === null || selectedSuggestion === suggestions.length - 1 ? 0 : selectedSuggestion + 1;
34591
  this.setState({
34608
  case external_wp_keycodes_["ENTER"]:
34609
  {
34610
  if (this.state.selectedSuggestion !== null) {
 
34611
  this.selectLink(suggestion);
34612
 
34613
  if (this.props.onSubmit) {
34799
  }))(url_input_URLInput));
34800
  //# sourceMappingURL=index.js.map
34801
  // EXTERNAL MODULE: ./packages/icons/build-module/library/plus.js
34802
+ var plus = __webpack_require__(150);
34803
 
34804
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/link-control/search-create-button.js
34805
 
35935
  keyCode
35936
  } = event;
35937
 
35938
+ if (event.defaultPrevented) {
35939
+ return;
35940
+ }
35941
+
35942
  if (keyCode !== external_wp_keycodes_["DELETE"] && keyCode !== external_wp_keycodes_["BACKSPACE"] && keyCode !== external_wp_keycodes_["ESCAPE"]) {
35943
  return;
35944
  }
36037
  }
36038
  //# sourceMappingURL=use-mark-persistent.js.map
36039
  // EXTERNAL MODULE: external ["wp","blob"]
36040
+ var external_wp_blob_ = __webpack_require__(35);
36041
 
36042
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/rich-text/file-paste-handler.js
36043
  /**
36051
  }
36052
  //# sourceMappingURL=file-paste-handler.js.map
36053
  // EXTERNAL MODULE: external ["wp","shortcode"]
36054
+ var external_wp_shortcode_ = __webpack_require__(149);
36055
 
36056
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/rich-text/utils.js
36057
  /**
37205
  }
37206
  //# sourceMappingURL=editor.js.map
37207
  // EXTERNAL MODULE: ./packages/icons/build-module/library/media.js
37208
+ var library_media = __webpack_require__(387);
37209
 
37210
  // EXTERNAL MODULE: ./packages/icons/build-module/library/upload.js
37211
+ var upload = __webpack_require__(290);
37212
 
37213
  // EXTERNAL MODULE: external ["wp","notices"]
37214
+ var external_wp_notices_ = __webpack_require__(31);
37215
 
37216
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/media-upload/index.js
37217
  /**
37363
  const openOnArrowDown = event => {
37364
  if (event.keyCode === external_wp_keycodes_["DOWN"]) {
37365
  event.preventDefault();
 
37366
  event.target.click();
37367
  }
37368
  };
37414
  }
37415
  }))), onSelectURL && // eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions
37416
  Object(external_wp_element_["createElement"])("form", {
37417
+ className: "block-editor-media-flow__url-input"
 
 
 
 
 
 
 
 
 
 
37418
  }, Object(external_wp_element_["createElement"])("span", {
37419
  className: "block-editor-media-replace-flow__image-url-label"
37420
  }, Object(external_wp_i18n_["__"])('Current media URL:')), Object(external_wp_element_["createElement"])(link_control, {
37446
  }), Object(external_wp_components_["withFilters"])('editor.MediaReplaceFlow')])(MediaReplaceFlow));
37447
  //# sourceMappingURL=index.js.map
37448
  // EXTERNAL MODULE: ./packages/icons/build-module/library/edit.js + 1 modules
37449
+ var edit = __webpack_require__(271);
37450
 
37451
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/url-popover/link-viewer-url.js
37452
 
37913
  }) => {
37914
  return Object(external_wp_element_["createElement"])(external_wp_components_["Button"], {
37915
  variant: "tertiary",
37916
+ onClick: () => {
 
37917
  open();
37918
  }
37919
  }, Object(external_wp_i18n_["__"])('Media Library'));
38003
  /* harmony default export */ var panel_color_settings = (PanelColorSettings);
38004
  //# sourceMappingURL=index.js.map
38005
  // EXTERNAL MODULE: ./node_modules/react-autosize-textarea/lib/index.js
38006
+ var react_autosize_textarea_lib = __webpack_require__(117);
38007
  var react_autosize_textarea_lib_default = /*#__PURE__*/__webpack_require__.n(react_autosize_textarea_lib);
38008
 
38009
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/editable-text/index.js
38386
  ...props
38387
  }) {
38388
  const units = Object(external_wp_components_["__experimentalUseCustomUnits"])({
38389
+ availableUnits: Object(use_setting["a" /* default */])('spacing.units') || ['%', 'px', 'em', 'rem', 'vw'],
38390
  units: unitsProp
38391
  });
38392
  return Object(external_wp_element_["createElement"])(external_wp_components_["__experimentalUnitControl"], Object(esm_extends["a" /* default */])({
38395
  }
38396
  //# sourceMappingURL=index.js.map
38397
  // EXTERNAL MODULE: ./packages/icons/build-module/library/arrow-left.js
38398
+ var arrow_left = __webpack_require__(388);
38399
 
38400
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/url-input/button.js
38401
 
38480
  /* harmony default export */ var url_input_button = (button_URLInputButton);
38481
  //# sourceMappingURL=button.js.map
38482
  // EXTERNAL MODULE: ./packages/icons/build-module/library/close.js
38483
+ var library_close = __webpack_require__(139);
38484
 
38485
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/url-popover/image-url-input-ui.js
38486
 
38755
 
38756
  //# sourceMappingURL=image-url-input-ui.js.map
38757
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-settings-menu/block-settings-menu-first-item.js
38758
+ var block_settings_menu_first_item = __webpack_require__(213);
38759
 
38760
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/inserter-menu-extension/index.js
38761
+ var inserter_menu_extension = __webpack_require__(209);
38762
 
38763
  // EXTERNAL MODULE: ./packages/icons/build-module/library/check.js
38764
+ var library_check = __webpack_require__(123);
38765
 
38766
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/preview-options/index.js
38767
 
38820
  }
38821
  //# sourceMappingURL=index.js.map
38822
  // EXTERNAL MODULE: ./node_modules/css-mediaquery/index.js
38823
+ var css_mediaquery = __webpack_require__(348);
38824
 
38825
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/use-simulated-media-query/index.js
38826
  /**
39068
  })(SkipToSelectedBlock));
39069
  //# sourceMappingURL=index.js.map
39070
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-card/index.js
39071
+ var block_card = __webpack_require__(231);
39072
 
39073
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-styles/index.js + 1 modules
39074
+ var block_styles = __webpack_require__(244);
39075
 
39076
  // EXTERNAL MODULE: external ["wp","wordcount"]
39077
+ var external_wp_wordcount_ = __webpack_require__(146);
39078
 
39079
  // EXTERNAL MODULE: ./packages/icons/build-module/library/stack.js
39080
+ var stack = __webpack_require__(558);
39081
 
39082
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/multi-selection-inspector/index.js
39083
 
39327
  /* harmony default export */ var block_inspector = (BlockInspector);
39328
  //# sourceMappingURL=index.js.map
39329
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-list/use-block-props/index.js
39330
+ var use_block_props = __webpack_require__(208);
39331
 
39332
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-mover/index.js
39333
+ var block_mover = __webpack_require__(211);
39334
 
39335
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-selection-clearer/index.js
39336
+ var block_selection_clearer = __webpack_require__(143);
39337
 
39338
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-settings-menu/index.js
39339
+ var block_settings_menu = __webpack_require__(212);
39340
 
39341
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-settings-menu-controls/index.js + 2 modules
39342
+ var block_settings_menu_controls = __webpack_require__(220);
39343
 
39344
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-toolbar/index.js + 9 modules
39345
+ var block_toolbar = __webpack_require__(219);
39346
+
39347
+ // EXTERNAL MODULE: external ["wp","keyboardShortcuts"]
39348
+ var external_wp_keyboardShortcuts_ = __webpack_require__(27);
39349
 
39350
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-tools/insertion-point.js
39351
+ var insertion_point = __webpack_require__(148);
39352
 
39353
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-tools/block-popover.js + 1 modules
39354
+ var block_popover = __webpack_require__(243);
39355
 
39356
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-tools/block-contextual-toolbar.js
39357
+ var block_contextual_toolbar = __webpack_require__(232);
39358
 
39359
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/block-tools/use-popover-scroll.js
39360
+ var use_popover_scroll = __webpack_require__(160);
39361
 
39362
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-tools/index.js
39363
 
39364
 
39365
+
39366
+ /**
39367
+ * External dependencies
39368
+ */
39369
+
39370
  /**
39371
  * WordPress dependencies
39372
  */
39373
 
39374
 
39375
 
39376
+
39377
+
39378
  /**
39379
  * Internal dependencies
39380
  */
39396
 
39397
  function BlockTools({
39398
  children,
39399
+ __unstableContentRef,
39400
+ ...props
39401
  }) {
39402
  const isLargeViewport = Object(external_wp_compose_["useViewportMatch"])('medium');
39403
  const hasFixedToolbar = Object(external_wp_data_["useSelect"])(select => select(store["a" /* store */]).getSettings().hasFixedToolbar, []);
39404
+ const isMatch = Object(external_wp_keyboardShortcuts_["__unstableUseShortcutEventMatch"])();
39405
+ const {
39406
+ getSelectedBlockClientIds,
39407
+ getBlockRootClientId
39408
+ } = Object(external_wp_data_["useSelect"])(store["a" /* store */]);
39409
+ const {
39410
+ duplicateBlocks,
39411
+ removeBlocks,
39412
+ insertAfterBlock,
39413
+ insertBeforeBlock,
39414
+ clearSelectedBlock,
39415
+ moveBlocksUp,
39416
+ moveBlocksDown
39417
+ } = Object(external_wp_data_["useDispatch"])(store["a" /* store */]);
39418
+
39419
+ function onKeyDown(event) {
39420
+ if (isMatch('core/block-editor/move-up', event)) {
39421
+ const clientIds = getSelectedBlockClientIds();
39422
+
39423
+ if (clientIds.length) {
39424
+ event.preventDefault();
39425
+ const rootClientId = getBlockRootClientId(Object(external_lodash_["first"])(clientIds));
39426
+ moveBlocksUp(clientIds, rootClientId);
39427
+ }
39428
+ } else if (isMatch('core/block-editor/move-down', event)) {
39429
+ const clientIds = getSelectedBlockClientIds();
39430
+
39431
+ if (clientIds.length) {
39432
+ event.preventDefault();
39433
+ const rootClientId = getBlockRootClientId(Object(external_lodash_["first"])(clientIds));
39434
+ moveBlocksDown(clientIds, rootClientId);
39435
+ }
39436
+ } else if (isMatch('core/block-editor/duplicate', event)) {
39437
+ const clientIds = getSelectedBlockClientIds();
39438
+
39439
+ if (clientIds.length) {
39440
+ event.preventDefault();
39441
+ duplicateBlocks(clientIds);
39442
+ }
39443
+ } else if (isMatch('core/block-editor/remove', event)) {
39444
+ const clientIds = getSelectedBlockClientIds();
39445
+
39446
+ if (clientIds.length) {
39447
+ event.preventDefault();
39448
+ removeBlocks(clientIds);
39449
+ }
39450
+ } else if (isMatch('core/block-editor/insert-after', event)) {
39451
+ const clientIds = getSelectedBlockClientIds();
39452
+
39453
+ if (clientIds.length) {
39454
+ event.preventDefault();
39455
+ insertAfterBlock(Object(external_lodash_["last"])(clientIds));
39456
+ }
39457
+ } else if (isMatch('core/block-editor/insert-before', event)) {
39458
+ const clientIds = getSelectedBlockClientIds();
39459
+
39460
+ if (clientIds.length) {
39461
+ event.preventDefault();
39462
+ insertBeforeBlock(Object(external_lodash_["first"])(clientIds));
39463
+ }
39464
+ } else if (isMatch('core/block-editor/delete-multi-selection', event)) {
39465
+ const clientIds = getSelectedBlockClientIds();
39466
+
39467
+ if (clientIds.length > 1) {
39468
+ event.preventDefault();
39469
+ removeBlocks(clientIds);
39470
+ }
39471
+ } else if (isMatch('core/block-editor/unselect', event)) {
39472
+ const clientIds = getSelectedBlockClientIds();
39473
+
39474
+ if (clientIds.length > 1) {
39475
+ event.preventDefault();
39476
+ clearSelectedBlock();
39477
+ event.target.ownerDocument.defaultView.getSelection().removeAllRanges();
39478
+ }
39479
+ }
39480
+ }
39481
+
39482
+ return (// eslint-disable-next-line jsx-a11y/no-static-element-interactions
39483
+ Object(external_wp_element_["createElement"])("div", Object(esm_extends["a" /* default */])({}, props, {
39484
+ onKeyDown: onKeyDown
39485
+ }), Object(external_wp_element_["createElement"])(insertion_point["b" /* default */], {
39486
+ __unstableContentRef: __unstableContentRef
39487
+ }, (hasFixedToolbar || !isLargeViewport) && Object(external_wp_element_["createElement"])(block_contextual_toolbar["a" /* default */], {
39488
+ isFixed: true
39489
+ }), Object(external_wp_element_["createElement"])(block_popover["a" /* default */], {
39490
+ __unstableContentRef: __unstableContentRef
39491
+ }), Object(external_wp_element_["createElement"])(external_wp_components_["Popover"].Slot, {
39492
+ name: "block-toolbar",
39493
+ ref: Object(use_popover_scroll["a" /* usePopoverScroll */])(__unstableContentRef)
39494
+ }), children))
39495
+ );
39496
  }
39497
  //# sourceMappingURL=index.js.map
39498
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/copy-handler/index.js + 1 modules
39499
+ var copy_handler = __webpack_require__(185);
39500
 
39501
  // EXTERNAL MODULE: ./node_modules/traverse/index.js
39502
+ var traverse = __webpack_require__(349);
39503
  var traverse_default = /*#__PURE__*/__webpack_require__.n(traverse);
39504
 
39505
  // CONCATENATED MODULE: ./packages/block-editor/build-module/utils/transform-styles/ast/parse.js
40197
  /* eslint-enable @wordpress/no-unused-vars-before-return */
40198
  //# sourceMappingURL=parse.js.map
40199
  // EXTERNAL MODULE: ./node_modules/inherits/inherits_browser.js
40200
+ var inherits_browser = __webpack_require__(233);
40201
  var inherits_browser_default = /*#__PURE__*/__webpack_require__.n(inherits_browser);
40202
 
40203
  // CONCATENATED MODULE: ./packages/block-editor/build-module/utils/transform-styles/ast/stringify/compiler.js
40967
  }
40968
  //# sourceMappingURL=index.js.map
40969
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/inserter/menu.js + 7 modules
40970
+ var menu = __webpack_require__(241);
40971
 
40972
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/library.js
40973
 
41018
 
41019
  /* harmony default export */ var library = (InserterLibrary);
41020
  //# sourceMappingURL=library.js.map
 
 
 
41021
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/keyboard-shortcuts/index.js
 
 
 
 
41022
  /**
41023
  * WordPress dependencies
41024
  */
41027
 
41028
 
41029
 
 
 
 
 
 
 
41030
  function KeyboardShortcuts() {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
41031
  return null;
41032
  }
41033
 
41155
  }
41156
  //# sourceMappingURL=index.js.map
41157
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/navigable-toolbar/index.js
41158
+ var navigable_toolbar = __webpack_require__(210);
41159
 
41160
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/observe-typing/index.js
41161
 
41637
  /* harmony default export */ var typewriter = (TypewriterOrIEBypass);
41638
  //# sourceMappingURL=index.js.map
41639
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/warning/index.js + 1 modules
41640
+ var warning = __webpack_require__(157);
41641
 
41642
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/writing-flow/use-multi-selection.js
41643
  /**
41854
  });
41855
  const ref = Object(external_wp_compose_["useRefEffect"])(node => {
41856
  function onKeyDown(event) {
41857
+ if (event.defaultPrevented) {
41858
+ return;
41859
+ }
41860
+
41861
  if (event.keyCode === external_wp_keycodes_["ESCAPE"] && !hasMultiSelection()) {
 
41862
  event.preventDefault();
41863
  setNavigationMode(true);
41864
  return;
41963
  }
41964
  //# sourceMappingURL=use-tab-nav.js.map
41965
  // EXTERNAL MODULE: ./packages/block-editor/build-module/utils/dom.js
41966
+ var dom = __webpack_require__(134);
41967
 
41968
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/writing-flow/use-arrow-nav.js
41969
  /**
42275
  return;
42276
  }
42277
 
42278
+ if (!Object(external_wp_dom_["isEntirelySelected"])(event.target)) {
 
 
42279
  return;
42280
  }
42281
 
42282
+ const selectedClientIds = getSelectedBlockClientIds();
42283
  const [firstSelectedClientId] = selectedClientIds;
42284
  const rootClientId = getBlockRootClientId(firstSelectedClientId);
42285
  let blockClientIds = getBlockOrder(rootClientId); // If we have selected all sibling nested blocks, try selecting up a
42304
  return () => {
42305
  node.removeEventListener('keydown', onKeyDown);
42306
  };
42307
+ }, []);
42308
  }
42309
  //# sourceMappingURL=use-select-all.js.map
42310
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/writing-flow/index.js
42332
 
42333
 
42334
 
42335
+ function useWritingFlow() {
42336
+ const [before, ref, after] = useTabNav();
42337
+ const hasMultiSelection = Object(external_wp_data_["useSelect"])(select => select(store["a" /* store */]).hasMultiSelection(), []);
42338
+ return [before, Object(external_wp_compose_["useMergeRefs"])([ref, useMultiSelection(), useSelectAll(), useArrowNav(), Object(external_wp_compose_["useRefEffect"])(node => {
42339
+ node.tabIndex = -1;
42340
+
42341
+ if (!hasMultiSelection) {
42342
+ return;
42343
+ }
42344
+
42345
+ node.setAttribute('aria-label', Object(external_wp_i18n_["__"])('Multiple selected blocks'));
42346
+ return () => {
42347
+ node.removeAttribute('aria-label');
42348
+ };
42349
+ }, [hasMultiSelection])]), after];
42350
+ }
42351
 
42352
  function WritingFlow({
42353
  children,
42354
  ...props
42355
  }, forwardedRef) {
42356
+ const [before, ref, after] = useWritingFlow();
 
42357
  return Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, before, Object(external_wp_element_["createElement"])("div", Object(esm_extends["a" /* default */])({}, props, {
42358
+ ref: Object(external_wp_compose_["useMergeRefs"])([ref, forwardedRef]),
42359
+ className: classnames_default()(props.className, 'block-editor-writing-flow')
 
 
42360
  }), children), after);
42361
  }
42362
  /**
42441
  */
42442
 
42443
 
42444
+
42445
  const BODY_CLASS_NAME = 'editor-styles-wrapper';
42446
  const BLOCK_PREFIX = 'wp-block';
42447
  /**
42627
  const styles = useParsedAssets(window.__editorAssets.styles);
42628
  const scripts = useParsedAssets(window.__editorAssets.scripts);
42629
  const clearerRef = Object(block_selection_clearer["b" /* useBlockSelectionClearer */])();
42630
+ const [before, writingFlowRef, after] = useWritingFlow();
42631
  const setRef = Object(external_wp_element_["useCallback"])(node => {
42632
  if (!node) {
42633
  return;
42659
  setIframeDocument(contentDocument);
42660
  clearerRef(documentElement);
42661
  clearerRef(body);
42662
+ writingFlowRef(body);
42663
  scripts.reduce((promise, script) => promise.then(() => loadScript(contentDocument, script)), Promise.resolve()).finally(() => {
42664
  // When script are loaded, re-render blocks to allow them
42665
  // to initialise.
42707
  key: id
42708
  });
42709
  }), head);
42710
+ return Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, before, Object(external_wp_element_["createElement"])("iframe", Object(esm_extends["a" /* default */])({}, props, {
42711
  ref: Object(external_wp_compose_["useMergeRefs"])([ref, setRef]),
42712
  tabIndex: "0",
42713
  title: Object(external_wp_i18n_["__"])('Editor canvas'),
42714
  name: "editor-canvas"
42715
  }), iframeDocument && Object(external_wp_element_["createPortal"])(Object(external_wp_element_["createElement"])(external_wp_components_["__experimentalStyleProvider"], {
42716
  document: iframeDocument
42717
+ }, children), iframeDocument.body), iframeDocument && Object(external_wp_element_["createPortal"])(head, iframeDocument.head)), after);
42718
  }
42719
 
42720
  /* harmony default export */ var iframe = (Object(external_wp_element_["forwardRef"])(Iframe));
42784
  }
42785
  //# sourceMappingURL=index.js.map
42786
  // EXTERNAL MODULE: ./packages/block-editor/build-module/components/provider/index.js + 1 modules
42787
+ var provider = __webpack_require__(221);
42788
 
42789
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/index.js
42790
  /*
42897
 
42898
  //# sourceMappingURL=index.js.map
42899
  // EXTERNAL MODULE: ./packages/block-editor/build-module/store/defaults.js
42900
+ var defaults = __webpack_require__(109);
42901
 
42902
  // CONCATENATED MODULE: ./packages/block-editor/build-module/utils/theme.js
42903
  /**
42971
  //# sourceMappingURL=index.js.map
42972
 
42973
  /***/ }),
 
 
 
 
 
 
 
 
 
42974
  /* 498 */,
42975
  /* 499 */,
42976
  /* 500 */,
43020
  /* 544 */,
43021
  /* 545 */,
43022
  /* 546 */,
43023
+ /* 547 */,
43024
+ /* 548 */,
43025
+ /* 549 */,
43026
+ /* 550 */,
43027
+ /* 551 */,
43028
+ /* 552 */,
43029
+ /* 553 */,
43030
+ /* 554 */,
43031
+ /* 555 */,
43032
+ /* 556 */
43033
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
43034
+
43035
+ "use strict";
43036
+ /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
43037
+ /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
43038
+ /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6);
43039
+ /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__);
43040
+
43041
+
43042
+ /**
43043
+ * WordPress dependencies
43044
+ */
43045
+
43046
+ const positionCenter = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], {
43047
+ xmlns: "http://www.w3.org/2000/svg",
43048
+ viewBox: "0 0 24 24"
43049
+ }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], {
43050
+ d: "M5 15h14V9H5v6zm0 4.8h14v-1.5H5v1.5zM5 4.2v1.5h14V4.2H5z"
43051
+ }));
43052
+ /* harmony default export */ __webpack_exports__["a"] = (positionCenter);
43053
+ //# sourceMappingURL=position-center.js.map
43054
+
43055
+ /***/ }),
43056
+ /* 557 */
43057
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
43058
+
43059
+ "use strict";
43060
+ /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
43061
+ /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
43062
+ /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6);
43063
+ /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__);
43064
+
43065
+
43066
+ /**
43067
+ * WordPress dependencies
43068
+ */
43069
+
43070
+ const stretchWide = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], {
43071
+ xmlns: "http://www.w3.org/2000/svg",
43072
+ viewBox: "0 0 24 24"
43073
+ }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], {
43074
+ d: "M5 9v6h14V9H5zm11-4.8H8v1.5h8V4.2zM8 19.8h8v-1.5H8v1.5z"
43075
+ }));
43076
+ /* harmony default export */ __webpack_exports__["a"] = (stretchWide);
43077
+ //# sourceMappingURL=stretch-wide.js.map
43078
+
43079
+ /***/ }),
43080
+ /* 558 */
43081
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
43082
 
43083
  "use strict";
build/block-editor/index.min.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-warning', 'wp-wordcount'), 'version' => '04da9ada8a9396f3af9e5c72331a76c9');
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-warning', 'wp-wordcount'), 'version' => 'f6e1b44930ebba81d991e7e12af5d043');
build/block-editor/index.min.js CHANGED
@@ -1,15 +1,15 @@
1
- window.wp=window.wp||{},window.wp.blockEditor=function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=488)}([function(e,t){e.exports=window.wp.element},function(e,t){e.exports=window.wp.i18n},function(e,t){e.exports=window.lodash},function(e,t){e.exports=window.wp.components},function(e,t){e.exports=window.wp.data},,function(e,t){e.exports=window.wp.primitives},function(e,t,n){"use strict";function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}n.d(t,"a",(function(){return o}))},function(e,t){e.exports=window.wp.blocks},function(e,t){e.exports=window.wp.compose},function(e,t,n){var o;!function(){"use strict";var n={}.hasOwnProperty;function r(){for(var e=[],t=0;t<arguments.length;t++){var o=arguments[t];if(o){var c=typeof o;if("string"===c||"number"===c)e.push(o);else if(Array.isArray(o)){if(o.length){var i=r.apply(null,o);i&&e.push(i)}}else if("object"===c)if(o.toString===Object.prototype.toString)for(var l in o)n.call(o,l)&&o[l]&&e.push(l);else e.push(o.toString())}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(o=function(){return r}.apply(t,[]))||(e.exports=o)}()},function(e,t){e.exports=window.React},,function(e,t,n){"use strict";n.d(t,"b",(function(){return Sn})),n.d(t,"a",(function(){return wn}));var o={};n.r(o),n.d(o,"getBlockName",(function(){return S})),n.d(o,"isBlockValid",(function(){return w})),n.d(o,"getBlockAttributes",(function(){return B})),n.d(o,"getBlock",(function(){return I})),n.d(o,"__unstableGetBlockWithoutInnerBlocks",(function(){return x})),n.d(o,"getBlocks",(function(){return T})),n.d(o,"__unstableGetBlockWithBlockTree",(function(){return N})),n.d(o,"__unstableGetBlockTree",(function(){return L})),n.d(o,"__unstableGetClientIdWithClientIdsTree",(function(){return P})),n.d(o,"__unstableGetClientIdsTree",(function(){return R})),n.d(o,"getClientIdsOfDescendants",(function(){return A})),n.d(o,"getClientIdsWithDescendants",(function(){return M})),n.d(o,"getGlobalBlockCount",(function(){return D})),n.d(o,"getBlocksByClientId",(function(){return F})),n.d(o,"getBlockCount",(function(){return V})),n.d(o,"getSelectionStart",(function(){return H})),n.d(o,"getSelectionEnd",(function(){return z})),n.d(o,"getBlockSelectionStart",(function(){return U})),n.d(o,"getBlockSelectionEnd",(function(){return G})),n.d(o,"getSelectedBlockCount",(function(){return W})),n.d(o,"hasSelectedBlock",(function(){return K})),n.d(o,"getSelectedBlockClientId",(function(){return $})),n.d(o,"getSelectedBlock",(function(){return q})),n.d(o,"getBlockRootClientId",(function(){return Y})),n.d(o,"getBlockParents",(function(){return X})),n.d(o,"getBlockParentsByBlockName",(function(){return Q})),n.d(o,"getBlockHierarchyRootClientId",(function(){return Z})),n.d(o,"getLowestCommonAncestorWithSelectedBlock",(function(){return J})),n.d(o,"getAdjacentBlockClientId",(function(){return ee})),n.d(o,"getPreviousBlockClientId",(function(){return te})),n.d(o,"getNextBlockClientId",(function(){return ne})),n.d(o,"getSelectedBlocksInitialCaretPosition",(function(){return oe})),n.d(o,"getSelectedBlockClientIds",(function(){return re})),n.d(o,"getMultiSelectedBlockClientIds",(function(){return ce})),n.d(o,"getMultiSelectedBlocks",(function(){return ie})),n.d(o,"getFirstMultiSelectedBlockClientId",(function(){return le})),n.d(o,"getLastMultiSelectedBlockClientId",(function(){return ae})),n.d(o,"isFirstMultiSelectedBlock",(function(){return se})),n.d(o,"isBlockMultiSelected",(function(){return ue})),n.d(o,"isAncestorMultiSelected",(function(){return de})),n.d(o,"getMultiSelectedBlocksStartClientId",(function(){return be})),n.d(o,"getMultiSelectedBlocksEndClientId",(function(){return me})),n.d(o,"getBlockOrder",(function(){return pe})),n.d(o,"getBlockIndex",(function(){return fe})),n.d(o,"isBlockSelected",(function(){return ge})),n.d(o,"hasSelectedInnerBlock",(function(){return he})),n.d(o,"isBlockWithinSelection",(function(){return Oe})),n.d(o,"hasMultiSelection",(function(){return ve})),n.d(o,"isMultiSelecting",(function(){return je})),n.d(o,"isSelectionEnabled",(function(){return ke})),n.d(o,"getBlockMode",(function(){return _e})),n.d(o,"isTyping",(function(){return ye})),n.d(o,"isDraggingBlocks",(function(){return Ee})),n.d(o,"getDraggedBlockClientIds",(function(){return Ce})),n.d(o,"isBlockBeingDragged",(function(){return Se})),n.d(o,"isAncestorBeingDragged",(function(){return we})),n.d(o,"isCaretWithinFormattedText",(function(){return Be})),n.d(o,"getBlockInsertionPoint",(function(){return Ie})),n.d(o,"isBlockInsertionPointVisible",(function(){return xe})),n.d(o,"isValidTemplate",(function(){return Te})),n.d(o,"getTemplate",(function(){return Ne})),n.d(o,"getTemplateLock",(function(){return Le})),n.d(o,"canInsertBlockType",(function(){return Ae})),n.d(o,"canInsertBlocks",(function(){return Me})),n.d(o,"getInserterItems",(function(){return Ue})),n.d(o,"getBlockTransformItems",(function(){return Ge})),n.d(o,"hasInserterItems",(function(){return We})),n.d(o,"__experimentalGetAllowedBlocks",(function(){return Ke})),n.d(o,"__experimentalGetParsedPattern",(function(){return $e})),n.d(o,"__experimentalGetAllowedPatterns",(function(){return Ye})),n.d(o,"__experimentalGetPatternsByBlockTypes",(function(){return Xe})),n.d(o,"__experimentalGetPatternTransformItems",(function(){return Qe})),n.d(o,"getBlockListSettings",(function(){return Ze})),n.d(o,"getSettings",(function(){return Je})),n.d(o,"isLastBlockChangePersistent",(function(){return et})),n.d(o,"__experimentalGetBlockListSettingsForBlocks",(function(){return tt})),n.d(o,"__experimentalGetParsedReusableBlock",(function(){return nt})),n.d(o,"__experimentalGetReusableBlockTitle",(function(){return ot})),n.d(o,"__unstableIsLastBlockChangeIgnored",(function(){return rt})),n.d(o,"__experimentalGetLastBlockAttributeChanges",(function(){return ct})),n.d(o,"isNavigationMode",(function(){return lt})),n.d(o,"hasBlockMovingClientId",(function(){return at})),n.d(o,"didAutomaticChange",(function(){return st})),n.d(o,"isBlockHighlighted",(function(){return ut})),n.d(o,"areInnerBlocksControlled",(function(){return dt})),n.d(o,"__experimentalGetActiveBlockIdByBlockNames",(function(){return bt})),n.d(o,"wasBlockJustInserted",(function(){return mt}));var r={};n.r(r),n.d(r,"resetBlocks",(function(){return _t})),n.d(r,"validateBlocksToTemplate",(function(){return yt})),n.d(r,"resetSelection",(function(){return Et})),n.d(r,"receiveBlocks",(function(){return Ct})),n.d(r,"updateBlockAttributes",(function(){return St})),n.d(r,"updateBlock",(function(){return wt})),n.d(r,"selectBlock",(function(){return Bt})),n.d(r,"selectPreviousBlock",(function(){return It})),n.d(r,"selectNextBlock",(function(){return xt})),n.d(r,"startMultiSelect",(function(){return Tt})),n.d(r,"stopMultiSelect",(function(){return Nt})),n.d(r,"multiSelect",(function(){return Lt})),n.d(r,"clearSelectedBlock",(function(){return Pt})),n.d(r,"toggleSelection",(function(){return Rt})),n.d(r,"replaceBlocks",(function(){return Mt})),n.d(r,"replaceBlock",(function(){return Dt})),n.d(r,"moveBlocksDown",(function(){return Vt})),n.d(r,"moveBlocksUp",(function(){return Ht})),n.d(r,"moveBlocksToPosition",(function(){return zt})),n.d(r,"moveBlockToPosition",(function(){return Ut})),n.d(r,"insertBlock",(function(){return Gt})),n.d(r,"insertBlocks",(function(){return Wt})),n.d(r,"showInsertionPoint",(function(){return Kt})),n.d(r,"hideInsertionPoint",(function(){return $t})),n.d(r,"setTemplateValidity",(function(){return qt})),n.d(r,"synchronizeTemplate",(function(){return Yt})),n.d(r,"mergeBlocks",(function(){return Xt})),n.d(r,"removeBlocks",(function(){return Qt})),n.d(r,"removeBlock",(function(){return Zt})),n.d(r,"replaceInnerBlocks",(function(){return Jt})),n.d(r,"toggleBlockMode",(function(){return en})),n.d(r,"startTyping",(function(){return tn})),n.d(r,"stopTyping",(function(){return nn})),n.d(r,"startDraggingBlocks",(function(){return on})),n.d(r,"stopDraggingBlocks",(function(){return rn})),n.d(r,"enterFormattedText",(function(){return cn})),n.d(r,"exitFormattedText",(function(){return ln})),n.d(r,"selectionChange",(function(){return an})),n.d(r,"insertDefaultBlock",(function(){return sn})),n.d(r,"updateBlockListSettings",(function(){return un})),n.d(r,"updateSettings",(function(){return dn})),n.d(r,"__unstableSaveReusableBlock",(function(){return bn})),n.d(r,"__unstableMarkLastChangeAsPersistent",(function(){return mn})),n.d(r,"__unstableMarkNextChangeAsNotPersistent",(function(){return pn})),n.d(r,"__unstableMarkAutomaticChange",(function(){return fn})),n.d(r,"__unstableMarkAutomaticChangeFinal",(function(){return gn})),n.d(r,"setNavigationMode",(function(){return hn})),n.d(r,"setBlockMovingClientId",(function(){return On})),n.d(r,"duplicateBlocks",(function(){return vn})),n.d(r,"insertBeforeBlock",(function(){return jn})),n.d(r,"insertAfterBlock",(function(){return kn})),n.d(r,"toggleBlockHighlight",(function(){return yn})),n.d(r,"flashBlock",(function(){return En})),n.d(r,"setHasControlledInnerBlocks",(function(){return Cn}));var c=n(4),i=n(2),l=n(8),a=n(105);function s(e,t,n){return[...e.slice(0,n),...Object(i.castArray)(t),...e.slice(n)]}function u(e,t,n,o=1){const r=[...e];return r.splice(t,o),s(r,e.slice(t,t+o),n)}function d(e,t=""){const n={[t]:[]};return e.forEach(e=>{const{clientId:o,innerBlocks:r}=e;n[t].push(o),Object.assign(n,d(r,o))}),n}function b(e,t=""){return e.reduce((e,n)=>Object.assign(e,{[n.clientId]:t},b(n.innerBlocks,n.clientId)),{})}function m(e,t=i.identity){const n={},o=[...e];for(;o.length;){const{innerBlocks:e,...r}=o.shift();o.push(...e),n[r.clientId]=t(r)}return n}function p(e){return m(e,e=>Object(i.omit)(e,"attributes"))}function f(e){return m(e,e=>e.attributes)}function g(e,t){return"UPDATE_BLOCK_ATTRIBUTES"===e.type&&void 0!==t&&"UPDATE_BLOCK_ATTRIBUTES"===t.type&&Object(i.isEqual)(e.clientIds,t.clientIds)&&(n=e.attributes,o=t.attributes,Object(i.isEqual)(Object(i.keys)(n),Object(i.keys)(o)));var n,o}const h=e=>e.reduce((e,t)=>(e[t]={},e),{}),O=Object(i.flow)(c.combineReducers,e=>(t,n)=>{if(t&&"SAVE_REUSABLE_BLOCK_SUCCESS"===n.type){const{id:e,updatedId:o}=n;if(e===o)return t;(t={...t}).attributes=Object(i.mapValues)(t.attributes,(n,r)=>{const{name:c}=t.byClientId[r];return"core/block"===c&&n.ref===e?{...n,ref:o}:n})}return e(t,n)},e=>(t={},n)=>{const o=e(t,n);if(o===t)return t;o.cache=t.cache?t.cache:{};const r=e=>e.reduce((e,n)=>{let o=n;do{e.push(o),o=t.parents[o]}while(o&&!t.controlledInnerBlocks[o]);return e},[]);switch(n.type){case"RESET_BLOCKS":o.cache=Object(i.mapValues)(m(n.blocks),()=>({}));break;case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":{const e=Object(i.keys)(m(n.blocks));n.rootClientId&&!t.controlledInnerBlocks[n.rootClientId]&&e.push(n.rootClientId),o.cache={...o.cache,...h(r(e))};break}case"UPDATE_BLOCK":o.cache={...o.cache,...h(r([n.clientId]))};break;case"UPDATE_BLOCK_ATTRIBUTES":o.cache={...o.cache,...h(r(n.clientIds))};break;case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":const e=h(r(n.replacedClientIds));o.cache={...Object(i.omit)(o.cache,n.replacedClientIds),...Object(i.omit)(e,n.replacedClientIds),...h(Object(i.keys)(m(n.blocks)))};break;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":o.cache={...Object(i.omit)(o.cache,n.removedClientIds),...h(Object(i.difference)(r(n.clientIds),n.clientIds))};break;case"MOVE_BLOCKS_TO_POSITION":{const e=[...n.clientIds];n.fromRootClientId&&e.push(n.fromRootClientId),n.toRootClientId&&e.push(n.toRootClientId),o.cache={...o.cache,...h(r(e))};break}case"MOVE_BLOCKS_UP":case"MOVE_BLOCKS_DOWN":{const e=[];n.rootClientId&&e.push(n.rootClientId),o.cache={...o.cache,...h(r(e))};break}case"SAVE_REUSABLE_BLOCK_SUCCESS":{const e=Object(i.keys)(Object(i.omitBy)(o.attributes,(e,t)=>"core/block"!==o.byClientId[t].name||e.ref!==n.updatedId));o.cache={...o.cache,...h(r(e))}}}return o},e=>(t,n)=>{const o=e=>{let o=e;for(let r=0;r<o.length;r++)!t.order[o[r]]||n.keepControlledInnerBlocks&&n.keepControlledInnerBlocks[o[r]]||(o===e&&(o=[...o]),o.push(...t.order[o[r]]));return o};if(t)switch(n.type){case"REMOVE_BLOCKS":n={...n,type:"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN",removedClientIds:o(n.clientIds)};break;case"REPLACE_BLOCKS":n={...n,type:"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN",replacedClientIds:o(n.clientIds)}}return e(t,n)},e=>(t,n)=>{if("REPLACE_INNER_BLOCKS"!==n.type)return e(t,n);const o={};if(Object.keys(t.controlledInnerBlocks).length){const e=[...n.blocks];for(;e.length;){const{innerBlocks:n,...r}=e.shift();e.push(...n),t.controlledInnerBlocks[r.clientId]&&(o[r.clientId]=!0)}}let r=t;t.order[n.rootClientId]&&(r=e(r,{type:"REMOVE_BLOCKS",keepControlledInnerBlocks:o,clientIds:t.order[n.rootClientId]}));let c=r;return n.blocks.length&&(c=e(c,{...n,type:"INSERT_BLOCKS",index:0}),c.order={...c.order,...Object(i.reduce)(o,(e,n,o)=>(t.order[o]&&(e[o]=t.order[o]),e),{})}),c},e=>(t,n)=>{if(t&&"RESET_BLOCKS"===n.type){const e=function e(t,n="",o={}){return Object(i.reduce)(t[n],(n,r)=>o[r]?n:[...n,r,...e(t,r)],[])}(t.order,"",t.controlledInnerBlocks),o=Object.keys(Object(i.pickBy)(t.controlledInnerBlocks));return{...t,byClientId:{...Object(i.omit)(t.byClientId,e),...p(n.blocks)},attributes:{...Object(i.omit)(t.attributes,e),...f(n.blocks)},order:{...Object(i.omit)(t.order,e),...Object(i.omit)(d(n.blocks),o)},parents:{...Object(i.omit)(t.parents,e),...b(n.blocks)},cache:{...Object(i.omit)(t.cache,e),...Object(i.omit)(Object(i.mapValues)(m(n.blocks),()=>({})),o)}}}return e(t,n)},(function(e){let t,n=!1;return(o,r)=>{let c=e(o,r);const i="MARK_LAST_CHANGE_AS_PERSISTENT"===r.type||n;if(o===c&&!i){var l;n="MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"===r.type;const e=null===(l=null==o?void 0:o.isPersistentChange)||void 0===l||l;return o.isPersistentChange===e?o:{...c,isPersistentChange:e}}return c={...c,isPersistentChange:i?!n:!g(r,t)},t=r,n="MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"===r.type,c}}),(function(e){const t=new Set(["RECEIVE_BLOCKS"]);return(n,o)=>{const r=e(n,o);return r!==n&&(r.isIgnoredChange=t.has(o.type)),r}}))({byClientId(e={},t){switch(t.type){case"RESET_BLOCKS":return p(t.blocks);case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":return{...e,...p(t.blocks)};case"UPDATE_BLOCK":if(!e[t.clientId])return e;const n=Object(i.omit)(t.updates,"attributes");return Object(i.isEmpty)(n)?e:{...e,[t.clientId]:{...e[t.clientId],...n}};case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return t.blocks?{...Object(i.omit)(e,t.replacedClientIds),...p(t.blocks)}:e;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(i.omit)(e,t.removedClientIds)}return e},attributes(e={},t){switch(t.type){case"RESET_BLOCKS":return f(t.blocks);case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":return{...e,...f(t.blocks)};case"UPDATE_BLOCK":return e[t.clientId]&&t.updates.attributes?{...e,[t.clientId]:{...e[t.clientId],...t.updates.attributes}}:e;case"UPDATE_BLOCK_ATTRIBUTES":{if(t.clientIds.every(t=>!e[t]))return e;const n=t.clientIds.reduce((n,o)=>({...n,[o]:Object(i.reduce)(t.uniqueByBlock?t.attributes[o]:t.attributes,(t,n,r)=>{var c,i;return n!==t[r]&&((t=(c=e[o])===(i=t)?{...c}:i)[r]=n),t},e[o])}),{});return t.clientIds.every(t=>n[t]===e[t])?e:{...e,...n}}case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return t.blocks?{...Object(i.omit)(e,t.replacedClientIds),...f(t.blocks)}:e;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(i.omit)(e,t.removedClientIds)}return e},order(e={},t){switch(t.type){case"RESET_BLOCKS":return d(t.blocks);case"RECEIVE_BLOCKS":return{...e,...Object(i.omit)(d(t.blocks),"")};case"INSERT_BLOCKS":{const{rootClientId:n=""}=t,o=e[n]||[],r=d(t.blocks,n),{index:c=o.length}=t;return{...e,...r,[n]:s(o,r[n],c)}}case"MOVE_BLOCKS_TO_POSITION":{const{fromRootClientId:n="",toRootClientId:o="",clientIds:r}=t,{index:c=e[o].length}=t;if(n===o){const t=e[o].indexOf(r[0]);return{...e,[o]:u(e[o],t,c,r.length)}}return{...e,[n]:Object(i.without)(e[n],...r),[o]:s(e[o],r,c)}}case"MOVE_BLOCKS_UP":{const{clientIds:n,rootClientId:o=""}=t,r=Object(i.first)(n),c=e[o];if(!c.length||r===Object(i.first)(c))return e;const l=c.indexOf(r);return{...e,[o]:u(c,l,l-1,n.length)}}case"MOVE_BLOCKS_DOWN":{const{clientIds:n,rootClientId:o=""}=t,r=Object(i.first)(n),c=Object(i.last)(n),l=e[o];if(!l.length||c===Object(i.last)(l))return e;const a=l.indexOf(r);return{...e,[o]:u(l,a,a+1,n.length)}}case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const{clientIds:n}=t;if(!t.blocks)return e;const o=d(t.blocks);return Object(i.flow)([e=>Object(i.omit)(e,t.replacedClientIds),e=>({...e,...Object(i.omit)(o,"")}),e=>Object(i.mapValues)(e,e=>Object(i.reduce)(e,(e,t)=>t===n[0]?[...e,...o[""]]:(-1===n.indexOf(t)&&e.push(t),e),[]))])(e)}case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(i.flow)([e=>Object(i.omit)(e,t.removedClientIds),e=>Object(i.mapValues)(e,e=>Object(i.without)(e,...t.removedClientIds))])(e)}return e},parents(e={},t){switch(t.type){case"RESET_BLOCKS":return b(t.blocks);case"RECEIVE_BLOCKS":return{...e,...b(t.blocks)};case"INSERT_BLOCKS":return{...e,...b(t.blocks,t.rootClientId||"")};case"MOVE_BLOCKS_TO_POSITION":return{...e,...t.clientIds.reduce((e,n)=>(e[n]=t.toRootClientId||"",e),{})};case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return{...Object(i.omit)(e,t.replacedClientIds),...b(t.blocks,e[t.clientIds[0]])};case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(i.omit)(e,t.removedClientIds)}return e},controlledInnerBlocks:(e={},{type:t,clientId:n,hasControlledInnerBlocks:o})=>"SET_HAS_CONTROLLED_INNER_BLOCKS"===t?{...e,[n]:o}:e});function v(e={},t){switch(t.type){case"CLEAR_SELECTED_BLOCK":return e.clientId?{}:e;case"SELECT_BLOCK":return t.clientId===e.clientId?e:{clientId:t.clientId};case"REPLACE_INNER_BLOCKS":case"INSERT_BLOCKS":return t.updateSelection&&t.blocks.length?{clientId:t.blocks[0].clientId}:e;case"REMOVE_BLOCKS":return t.clientIds&&t.clientIds.length&&-1!==t.clientIds.indexOf(e.clientId)?{}:e;case"REPLACE_BLOCKS":{if(-1===t.clientIds.indexOf(e.clientId))return e;const n=t.indexToSelect||t.blocks.length-1,o=t.blocks[n];return o?o.clientId===e.clientId?e:{clientId:o.clientId}:{}}}return e}var j=Object(c.combineReducers)({blocks:O,isTyping:function(e=!1,t){switch(t.type){case"START_TYPING":return!0;case"STOP_TYPING":return!1}return e},draggedBlocks:function(e=[],t){switch(t.type){case"START_DRAGGING_BLOCKS":return t.clientIds;case"STOP_DRAGGING_BLOCKS":return[]}return e},isCaretWithinFormattedText:function(e=!1,t){switch(t.type){case"ENTER_FORMATTED_TEXT":return!0;case"EXIT_FORMATTED_TEXT":return!1}return e},selection:function(e={},t){var n,o;switch(t.type){case"SELECTION_CHANGE":return{selectionStart:{clientId:t.clientId,attributeKey:t.attributeKey,offset:t.startOffset},selectionEnd:{clientId:t.clientId,attributeKey:t.attributeKey,offset:t.endOffset}};case"RESET_SELECTION":const{selectionStart:r,selectionEnd:c}=t;return{selectionStart:r,selectionEnd:c};case"MULTI_SELECT":const{start:i,end:l}=t;return{selectionStart:{clientId:i},selectionEnd:{clientId:l}};case"RESET_BLOCKS":const a=null==e||null===(n=e.selectionStart)||void 0===n?void 0:n.clientId,s=null==e||null===(o=e.selectionEnd)||void 0===o?void 0:o.clientId;if(!a&&!s)return e;if(!t.blocks.some(e=>e.clientId===a))return{selectionStart:{},selectionEnd:{}};if(!t.blocks.some(e=>e.clientId===s))return{...e,selectionEnd:e.selectionStart}}return{selectionStart:v(e.selectionStart,t),selectionEnd:v(e.selectionEnd,t)}},isMultiSelecting:function(e=!1,t){switch(t.type){case"START_MULTI_SELECT":return!0;case"STOP_MULTI_SELECT":return!1}return e},isSelectionEnabled:function(e=!0,t){switch(t.type){case"TOGGLE_SELECTION":return t.isSelectionEnabled}return e},initialPosition:function(e=null,t){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(e={},t){if("TOGGLE_BLOCK_MODE"===t.type){const{clientId:n}=t;return{...e,[n]:e[n]&&"html"===e[n]?"visual":"html"}}return e},blockListSettings:(e={},t)=>{switch(t.type){case"REPLACE_BLOCKS":case"REMOVE_BLOCKS":return Object(i.omit)(e,t.clientIds);case"UPDATE_BLOCK_LIST_SETTINGS":{const{clientId:n}=t;return t.settings?Object(i.isEqual)(e[n],t.settings)?e:{...e,[n]:t.settings}:e.hasOwnProperty(n)?Object(i.omit)(e,n):e}}return e},insertionPoint:function(e=null,t){switch(t.type){case"SHOW_INSERTION_POINT":const{rootClientId:e,index:n,__unstableWithInserter:o}=t;return{rootClientId:e,index:n,__unstableWithInserter:o};case"HIDE_INSERTION_POINT":return null}return e},template:function(e={isValid:!0},t){switch(t.type){case"SET_TEMPLATE_VALIDITY":return{...e,isValid:t.isValid}}return e},settings:function(e=a.b,t){switch(t.type){case"UPDATE_SETTINGS":return{...e,...t.settings}}return e},preferences:function(e=a.a,t){switch(t.type){case"INSERT_BLOCKS":case"REPLACE_BLOCKS":return t.blocks.reduce((e,n)=>{const{attributes:o,name:r}=n,i=Object(c.select)(l.store).getActiveBlockVariation(r,o);let a=null!=i&&i.name?`${r}/${i.name}`:r;const s={name:a};return"core/block"===r&&(s.ref=o.ref,a+="/"+o.ref),{...e,insertUsage:{...e.insertUsage,[a]:{time:t.time,count:e.insertUsage[a]?e.insertUsage[a].count+1:1,insert:s}}}},e)}return e},lastBlockAttributesChange:function(e,t){switch(t.type){case"UPDATE_BLOCK":if(!t.updates.attributes)break;return{[t.clientId]:t.updates.attributes};case"UPDATE_BLOCK_ATTRIBUTES":return t.clientIds.reduce((e,n)=>({...e,[n]:t.uniqueByBlock?t.attributes[n]:t.attributes}),{})}return null},isNavigationMode:function(e=!1,t){return"INSERT_BLOCKS"!==t.type&&("SET_NAVIGATION_MODE"===t.type?t.isNavigationMode:e)},hasBlockMovingClientId:function(e=null,t){return"SET_BLOCK_MOVING_MODE"===t.type?t.hasBlockMovingClientId:"SET_NAVIGATION_MODE"===t.type?null:e},automaticChangeStatus:function(e,t){switch(t.type){case"MARK_AUTOMATIC_CHANGE":return"pending";case"MARK_AUTOMATIC_CHANGE_FINAL":return"pending"===e?"final":void 0;case"SELECTION_CHANGE":return"final"!==e?e:void 0;case"START_TYPING":case"STOP_TYPING":return e}},highlightedBlock:function(e,t){switch(t.type){case"TOGGLE_BLOCK_HIGHLIGHT":const{clientId:n,isHighlighted:o}=t;return o?n:e===n?null:e;case"SELECT_BLOCK":if(t.clientId!==e)return null}return e},lastBlockInserted:function(e={},t){var n;switch(t.type){case"INSERT_BLOCKS":return t.blocks.length?{clientId:t.blocks[0].clientId,source:null===(n=t.meta)||void 0===n?void 0:n.source}:e;case"RESET_BLOCKS":return{}}return e}}),k=n(0),_=n(30),y=n(3);const E=Object(k.createElement)(y.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(k.createElement)(y.Rect,{x:"0",fill:"none",width:"24",height:"24"}),Object(k.createElement)(y.G,null,Object(k.createElement)(y.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"}))),C=[];function S(e,t){const n=e.blocks.byClientId[t];if("web"!==k.Platform.OS&&"core/social-link"===(null==n?void 0:n.name)){const n=e.blocks.attributes[t],{service:o}=n;return o?"core/social-link-"+o:"core/social-link"}return n?n.name:null}function w(e,t){const n=e.blocks.byClientId[t];return!!n&&n.isValid}function B(e,t){return e.blocks.byClientId[t]?e.blocks.attributes[t]:null}const I=Object(_.a)((e,t)=>{const n=e.blocks.byClientId[t];return n?{...n,attributes:B(e,t),innerBlocks:dt(e,t)?C:T(e,t)}:null},(e,t)=>[e.blocks.cache[t]]),x=Object(_.a)((e,t)=>{const n=e.blocks.byClientId[t];return n?{...n,attributes:B(e,t)}:null},(e,t)=>[e.blocks.byClientId[t],e.blocks.attributes[t]]),T=Object(_.a)((e,t)=>Object(i.map)(pe(e,t),t=>I(e,t)),(e,t)=>Object(i.map)(e.blocks.order[t||""],t=>e.blocks.cache[t])),N=Object(_.a)((e,t)=>{const n=e.blocks.byClientId[t];return n?{...n,attributes:B(e,t),innerBlocks:L(e,t)}:null},e=>[e.blocks.byClientId,e.blocks.order,e.blocks.attributes]),L=Object(_.a)((e,t="")=>Object(i.map)(pe(e,t),t=>N(e,t)),e=>[e.blocks.byClientId,e.blocks.order,e.blocks.attributes]),P=Object(_.a)((e,t)=>({clientId:t,innerBlocks:R(e,t)}),e=>[e.blocks.order]),R=Object(_.a)((e,t="")=>Object(i.map)(pe(e,t),t=>P(e,t)),e=>[e.blocks.order]),A=(e,t)=>Object(i.flatMap)(t,t=>{const n=pe(e,t);return[...n,...A(e,n)]}),M=Object(_.a)(e=>{const t=pe(e);return[...t,...A(e,t)]},e=>[e.blocks.order]),D=Object(_.a)((e,t)=>{const n=M(e);return t?Object(i.reduce)(n,(n,o)=>e.blocks.byClientId[o].name===t?n+1:n,0):n.length},e=>[e.blocks.order,e.blocks.byClientId]),F=Object(_.a)((e,t)=>Object(i.map)(Object(i.castArray)(t),t=>I(e,t)),e=>[e.blocks.byClientId,e.blocks.order,e.blocks.attributes]);function V(e,t){return pe(e,t).length}function H(e){return e.selection.selectionStart}function z(e){return e.selection.selectionEnd}function U(e){return e.selection.selectionStart.clientId}function G(e){return e.selection.selectionEnd.clientId}function W(e){return ce(e).length||(e.selection.selectionStart.clientId?1:0)}function K(e){const{selectionStart:t,selectionEnd:n}=e.selection;return!!t.clientId&&t.clientId===n.clientId}function $(e){const{selectionStart:t,selectionEnd:n}=e.selection,{clientId:o}=t;return o&&o===n.clientId?o:null}function q(e){const t=$(e);return t?I(e,t):null}function Y(e,t){return void 0!==e.blocks.parents[t]?e.blocks.parents[t]:null}const X=Object(_.a)((e,t,n=!1)=>{const o=[];let r=t;for(;e.blocks.parents[r];)r=e.blocks.parents[r],o.push(r);return n?o:o.reverse()},e=>[e.blocks.parents]),Q=Object(_.a)((e,t,n,o=!1)=>{const r=X(e,t,o);return Object(i.map)(Object(i.filter)(Object(i.map)(r,t=>({id:t,name:S(e,t)})),({name:e})=>Array.isArray(n)?n.includes(e):e===n),({id:e})=>e)},e=>[e.blocks.parents]);function Z(e,t){let n,o=t;do{n=o,o=e.blocks.parents[o]}while(o);return n}function J(e,t){const n=$(e),o=[...X(e,t),t],r=[...X(e,n),n];let c;const i=Math.min(o.length,r.length);for(let e=0;e<i&&o[e]===r[e];e++)c=o[e];return c}function ee(e,t,n=1){if(void 0===t&&(t=$(e)),void 0===t&&(t=n<0?le(e):ae(e)),!t)return null;const o=Y(e,t);if(null===o)return null;const{order:r}=e.blocks,c=r[o],i=c.indexOf(t)+1*n;return i<0||i===c.length?null:c[i]}function te(e,t){return ee(e,t,-1)}function ne(e,t){return ee(e,t,1)}function oe(e){return e.initialPosition}const re=Object(_.a)(e=>{const{selectionStart:t,selectionEnd:n}=e.selection;if(void 0===t.clientId||void 0===n.clientId)return C;if(t.clientId===n.clientId)return[t.clientId];const o=Y(e,t.clientId);if(null===o)return C;const r=pe(e,o),c=r.indexOf(t.clientId),i=r.indexOf(n.clientId);return c>i?r.slice(i,c+1):r.slice(c,i+1)},e=>[e.blocks.order,e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId]);function ce(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId===n.clientId?C:re(e)}const ie=Object(_.a)(e=>{const t=ce(e);return t.length?t.map(t=>I(e,t)):C},e=>[...re.getDependants(e),e.blocks.byClientId,e.blocks.order,e.blocks.attributes]);function le(e){return Object(i.first)(ce(e))||null}function ae(e){return Object(i.last)(ce(e))||null}function se(e,t){return le(e)===t}function ue(e,t){return-1!==ce(e).indexOf(t)}const de=Object(_.a)((e,t)=>{let n=t,o=!1;for(;n&&!o;)n=Y(e,n),o=ue(e,n);return o},e=>[e.blocks.order,e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId]);function be(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId===n.clientId?null:t.clientId||null}function me(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId===n.clientId?null:n.clientId||null}function pe(e,t){return e.blocks.order[t||""]||C}function fe(e,t,n){return pe(e,n).indexOf(t)}function ge(e,t){const{selectionStart:n,selectionEnd:o}=e.selection;return n.clientId===o.clientId&&n.clientId===t}function he(e,t,n=!1){return Object(i.some)(pe(e,t),t=>ge(e,t)||ue(e,t)||n&&he(e,t,n))}function Oe(e,t){if(!t)return!1;const n=ce(e),o=n.indexOf(t);return o>-1&&o<n.length-1}function ve(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId!==n.clientId}function je(e){return e.isMultiSelecting}function ke(e){return e.isSelectionEnabled}function _e(e,t){return e.blocksMode[t]||"visual"}function ye(e){return e.isTyping}function Ee(e){return!!e.draggedBlocks.length}function Ce(e){return e.draggedBlocks}function Se(e,t){return e.draggedBlocks.includes(t)}function we(e,t){if(!Ee(e))return!1;const n=X(e,t);return Object(i.some)(n,t=>Se(e,t))}function Be(e){return e.isCaretWithinFormattedText}function Ie(e){let t,n;const{insertionPoint:o,selection:{selectionEnd:r}}=e;if(null!==o)return o;const{clientId:c}=r;return c?(t=Y(e,c)||void 0,n=fe(e,r.clientId,t)+1):n=pe(e).length,{rootClientId:t,index:n}}function xe(e){return null!==e.insertionPoint}function Te(e){return e.template.isValid}function Ne(e){return e.settings.template}function Le(e,t){if(!t)return e.settings.templateLock;const n=Ze(e,t);return n?n.templateLock:null}const Pe=(e,t,n=null)=>Object(i.isBoolean)(e)?e:Object(i.isArray)(e)?!(!e.includes("core/post-content")||null!==t)||e.includes(t):n,Re=(e,t,n=null)=>{let o;if(t&&"object"==typeof t?(o=t,t=o.name):o=Object(l.getBlockType)(t),!o)return!1;const{allowedBlockTypes:r}=Je(e);if(!Pe(r,t,!0))return!1;if(Le(e,n))return!1;const c=Ze(e,n);if(n&&void 0===c)return!1;const i=null==c?void 0:c.allowedBlocks,a=Pe(i,t),s=o.parent,u=S(e,n),d=Pe(s,u);return null!==a&&null!==d?a||d:null!==a?a:null===d||d},Ae=Object(_.a)(Re,(e,t,n)=>[e.blockListSettings[n],e.blocks.byClientId[n],e.settings.allowedBlockTypes,e.settings.templateLock]);function Me(e,t,n=null){return t.every(t=>Ae(e,S(e,t),n))}function De(e,t){var n,o;return null!==(n=null===(o=e.preferences.insertUsage)||void 0===o?void 0:o[t])&&void 0!==n?n:null}const Fe=(e,t,n)=>!!Object(l.hasBlockSupport)(t,"inserter",!0)&&Re(e,t.name,n),Ve=(e,t)=>n=>{const o=`${t.id}/${n.name}`,{time:r,count:c=0}=De(e,o)||{};return{...t,id:o,icon:n.icon||t.icon,title:n.title||t.title,description:n.description||t.description,category:n.category||t.category,example:n.hasOwnProperty("example")?n.example:t.example,initialAttributes:{...t.initialAttributes,...n.attributes},innerBlocks:n.innerBlocks,keywords:n.keywords||t.keywords,frecency:He(r,c)}},He=(e,t)=>{if(!e)return t;const n=Date.now()-e;switch(!0){case n<36e5:return 4*t;case n<864e5:return 2*t;case n<6048e5:return t/2;default:return t/4}},ze=(e,{buildScope:t="inserter"})=>n=>{const o=n.name;let r=!1;Object(l.hasBlockSupport)(n.name,"multiple",!0)||(r=Object(i.some)(F(e,M(e)),{name:n.name}));const{time:c,count:a=0}=De(e,o)||{},s={id:o,name:n.name,title:n.title,icon:n.icon,isDisabled:r,frecency:He(c,a)};if("transform"===t)return s;const u=n.variations.filter(({scope:e})=>!e||e.includes("inserter"));return{...s,initialAttributes:{},description:n.description,category:n.category,keywords:n.keywords,variations:u,example:n.example,utility:1}},Ue=Object(_.a)((e,t=null)=>{const n=ze(e,{buildScope:"inserter"}),o=Object(l.getBlockTypes)().filter(n=>Fe(e,n,t)).map(n),r=Re(e,"core/block",t)?it(e).map(t=>{const n="core/block/"+t.id,o=nt(e,t.id);let r;1===o.length&&(r=Object(l.getBlockType)(o[0].name));const{time:c,count:i=0}=De(e,n)||{},a=He(c,i);return{id:n,name:"core/block",initialAttributes:{ref:t.id},title:t.title.raw,icon:r?r.icon:E,category:"reusable",keywords:[],isDisabled:!1,utility:1,frecency:a}}):[],c=o.filter(({variations:e=[]})=>!e.some(({isDefault:e})=>e)),i=[];for(const t of o){const{variations:n=[]}=t;if(n.length){const o=Ve(e,t);i.push(...n.map(o))}}return[...[...c,...i].sort((e,t)=>{const n=e.name.startsWith("core/"),o=t.name.startsWith("core/");return n&&o?0:n&&!o?-1:1}),...r]},(e,t)=>[e.blockListSettings[t],e.blocks.byClientId,e.blocks.order,e.preferences.insertUsage,e.settings.allowedBlockTypes,e.settings.templateLock,it(e),Object(l.getBlockTypes)()]),Ge=Object(_.a)((e,t,n=null)=>{const o=ze(e,{buildScope:"transform"}),r=Object(l.getBlockTypes)().filter(t=>Fe(e,t,n)).map(o),c=Object(i.mapKeys)(r,({name:e})=>e),a=Object(l.getPossibleBlockTransformations)(t).reduce((e,t)=>(c[null==t?void 0:t.name]&&e.push(c[t.name]),e),[]);return Object(i.orderBy)(a,e=>c[e.name].frecency,"desc")},(e,t)=>[e.blockListSettings[t],e.blocks.byClientId,e.preferences.insertUsage,e.settings.allowedBlockTypes,e.settings.templateLock,Object(l.getBlockTypes)()]),We=Object(_.a)((e,t=null)=>!!Object(i.some)(Object(l.getBlockTypes)(),n=>Fe(e,n,t))||Re(e,"core/block",t)&&it(e).length>0,(e,t)=>[e.blockListSettings[t],e.blocks.byClientId,e.settings.allowedBlockTypes,e.settings.templateLock,it(e),Object(l.getBlockTypes)()]),Ke=Object(_.a)((e,t=null)=>{if(t)return Object(i.filter)(Object(l.getBlockTypes)(),n=>Fe(e,n,t))},(e,t)=>[e.blockListSettings[t],e.blocks.byClientId,e.settings.allowedBlockTypes,e.settings.templateLock,Object(l.getBlockTypes)()]),$e=Object(_.a)((e,t)=>{const n=e.settings.__experimentalBlockPatterns.find(({name:e})=>e===t);return n?{...n,blocks:Object(l.parse)(n.content)}:null},e=>[e.settings.__experimentalBlockPatterns]),qe=Object(_.a)(e=>{const t=e.settings.__experimentalBlockPatterns,{allowedBlockTypes:n}=Je(e);return t.map(({name:t})=>$e(e,t)).filter(({blocks:e})=>((e,t)=>{if(Object(i.isBoolean)(t))return t;const n=[...e];for(;n.length>0;){var o;const e=n.shift();if(!Pe(t,e.name||e.blockName,!0))return!1;null===(o=e.innerBlocks)||void 0===o||o.forEach(e=>{n.push(e)})}return!0})(e,n))},e=>[e.settings.__experimentalBlockPatterns,e.settings.allowedBlockTypes]),Ye=Object(_.a)((e,t=null)=>{const n=qe(e);return Object(i.filter)(n,({blocks:n})=>n.every(({name:n})=>Ae(e,n,t)))},(e,t)=>[e.settings.__experimentalBlockPatterns,e.settings.allowedBlockTypes,e.settings.templateLock,e.blockListSettings[t],e.blocks.byClientId[t]]),Xe=Object(_.a)((e,t,n=null)=>{if(!t)return C;const o=Ye(e,n),r=Array.isArray(t)?t:[t];return o.filter(e=>{var t,n;return null==e||null===(t=e.blockTypes)||void 0===t||null===(n=t.some)||void 0===n?void 0:n.call(t,e=>r.includes(e))})},(e,t)=>[...Ye.getDependants(e,t)]),Qe=Object(_.a)((e,t,n=null)=>{if(!t)return C;if(t.some(({clientId:t,innerBlocks:n})=>n.length||dt(e,t)))return C;const o=Array.from(new Set(t.map(({name:e})=>e)));return Xe(e,o,n)},(e,t)=>[...Xe.getDependants(e,t)]);function Ze(e,t){return e.blockListSettings[t]}function Je(e){return e.settings}function et(e){return e.blocks.isPersistentChange}const tt=Object(_.a)((e,t=[])=>t.reduce((t,n)=>e.blockListSettings[n]?{...t,[n]:e.blockListSettings[n]}:t,{}),e=>[e.blockListSettings]),nt=Object(_.a)((e,t)=>{const n=Object(i.find)(it(e),e=>e.id===t);return n?Object(l.parse)("string"==typeof n.content.raw?n.content.raw:n.content):null},e=>[it(e)]),ot=Object(_.a)((e,t)=>{var n;const o=Object(i.find)(it(e),e=>e.id===t);return o?null===(n=o.title)||void 0===n?void 0:n.raw:null},e=>[it(e)]);function rt(e){return e.blocks.isIgnoredChange}function ct(e){return e.lastBlockAttributesChange}function it(e){var t,n;return null!==(t=null==e||null===(n=e.settings)||void 0===n?void 0:n.__experimentalReusableBlocks)&&void 0!==t?t:C}function lt(e){return e.isNavigationMode}function at(e){return e.hasBlockMovingClientId}function st(e){return!!e.automaticChangeStatus}function ut(e,t){return e.highlightedBlock===t}function dt(e,t){return!!e.blocks.controlledInnerBlocks[t]}const bt=Object(_.a)((e,t)=>{if(!t.length)return null;const n=$(e);if(t.includes(S(e,n)))return n;const o=ce(e),r=Q(e,n||o[0],t);return r?Object(i.last)(r):null},(e,t)=>[e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId,t]);function mt(e,t,n){const{lastBlockInserted:o}=e;return o.clientId===t&&o.source===n}var pt=n(31),ft=n(1),gt=n(17),ht=n(26),Ot=n.n(ht),vt={SLEEP:({duration:e})=>new Promise(t=>{setTimeout(t,e)}),MARK_AUTOMATIC_CHANGE_FINAL_CONTROL:Object(c.createRegistryControl)(e=>()=>{const{requestIdleCallback:t=(e=>setTimeout(e,100))}=window;t(()=>e.dispatch(wn).__unstableMarkAutomaticChangeFinal())})},jt=n(40);function*kt(){if(0===(yield c.controls.select(jt.a,"getBlockCount"))){const{__unstableHasCustomAppender:e}=yield c.controls.select(jt.a,"getSettings");if(e)return;return yield sn()}}function*_t(e){return yield{type:"RESET_BLOCKS",blocks:e},yield*yt(e)}function*yt(e){const t=yield c.controls.select(jt.a,"getTemplate"),n=yield c.controls.select(jt.a,"getTemplateLock"),o=!t||"all"!==n||Object(l.doBlocksMatchTemplate)(e,t);if(o!==(yield c.controls.select(jt.a,"isValidTemplate")))return yield qt(o),o}function Et(e,t,n){return{type:"RESET_SELECTION",selectionStart:e,selectionEnd:t,initialPosition:n}}function Ct(e){return{type:"RECEIVE_BLOCKS",blocks:e}}function St(e,t,n=!1){return{type:"UPDATE_BLOCK_ATTRIBUTES",clientIds:Object(i.castArray)(e),attributes:t,uniqueByBlock:n}}function wt(e,t){return{type:"UPDATE_BLOCK",clientId:e,updates:t}}function Bt(e,t=0){return{type:"SELECT_BLOCK",initialPosition:t,clientId:e}}function*It(e){const t=yield c.controls.select(jt.a,"getPreviousBlockClientId",e);if(t)return yield Bt(t,-1),[t]}function*xt(e){const t=yield c.controls.select(jt.a,"getNextBlockClientId",e);if(t)return yield Bt(t),[t]}function Tt(){return{type:"START_MULTI_SELECT"}}function Nt(){return{type:"STOP_MULTI_SELECT"}}function*Lt(e,t){if((yield c.controls.select(jt.a,"getBlockRootClientId",e))!==(yield c.controls.select(jt.a,"getBlockRootClientId",t)))return;yield{type:"MULTI_SELECT",start:e,end:t};const n=yield c.controls.select(jt.a,"getSelectedBlockCount");Object(pt.speak)(Object(ft.sprintf)(
2
  /* translators: %s: number of selected blocks */
3
- Object(ft._n)("%s block selected.","%s blocks selected.",n),n),"assertive")}function Pt(){return{type:"CLEAR_SELECTED_BLOCK"}}function Rt(e=!0){return{type:"TOGGLE_SELECTION",isSelectionEnabled:e}}function At(e,t){var n,o;const r=null!==(n=null==t||null===(o=t.__experimentalPreferredStyleVariations)||void 0===o?void 0:o.value)&&void 0!==n?n:{};return e.map(e=>{var t;const n=e.name;if(!Object(l.hasBlockSupport)(n,"defaultStylePicker",!0))return e;if(!r[n])return e;const o=null===(t=e.attributes)||void 0===t?void 0:t.className;if(null!=o&&o.includes("is-style-"))return e;const{attributes:c={}}=e,i=r[n];return{...e,attributes:{...c,className:`${o||""} is-style-${i}`.trim()}}})}function*Mt(e,t,n,o=0,r){e=Object(i.castArray)(e),t=At(Object(i.castArray)(t),yield c.controls.select(jt.a,"getSettings"));const l=yield c.controls.select(jt.a,"getBlockRootClientId",Object(i.first)(e));for(let e=0;e<t.length;e++){const n=t[e];if(!(yield c.controls.select(jt.a,"canInsertBlockType",n.name,l)))return}yield{type:"REPLACE_BLOCKS",clientIds:e,blocks:t,time:Date.now(),indexToSelect:n,initialPosition:o,meta:r},yield*kt()}function Dt(e,t){return Mt(e,t)}function Ft(e){return(t,n)=>({clientIds:Object(i.castArray)(t),type:e,rootClientId:n})}const Vt=Ft("MOVE_BLOCKS_DOWN"),Ht=Ft("MOVE_BLOCKS_UP");function*zt(e,t="",n="",o){const r=yield c.controls.select(jt.a,"getTemplateLock",t);if("all"===r)return;const i={type:"MOVE_BLOCKS_TO_POSITION",fromRootClientId:t,toRootClientId:n,clientIds:e,index:o};t!==n?"insert"!==r&&(yield c.controls.select(jt.a,"canInsertBlocks",e,n))&&(yield i):yield i}function*Ut(e,t="",n="",o){yield zt([e],t,n,o)}function Gt(e,t,n,o=!0,r){return Wt([e],t,n,o,0,r)}function*Wt(e,t,n,o=!0,r=0,l){Object(i.isObject)(r)&&(l=r,r=0,Ot()("meta argument in wp.data.dispatch('core/block-editor')",{since:"10.1",plugin:"Gutenberg",hint:"The meta argument is now the 6th argument of the function"})),e=At(Object(i.castArray)(e),yield c.controls.select(jt.a,"getSettings"));const a=[];for(const t of e)(yield c.controls.select(jt.a,"canInsertBlockType",t.name,n))&&a.push(t);if(a.length)return{type:"INSERT_BLOCKS",blocks:a,index:t,rootClientId:n,time:Date.now(),updateSelection:o,initialPosition:o?r:null,meta:l}}function Kt(e,t,n={}){const{__unstableWithInserter:o}=n;return{type:"SHOW_INSERTION_POINT",rootClientId:e,index:t,__unstableWithInserter:o}}function $t(){return{type:"HIDE_INSERTION_POINT"}}function qt(e){return{type:"SET_TEMPLATE_VALIDITY",isValid:e}}function*Yt(){yield{type:"SYNCHRONIZE_TEMPLATE"};const e=yield c.controls.select(jt.a,"getBlocks"),t=yield c.controls.select(jt.a,"getTemplate"),n=Object(l.synchronizeBlocksWithTemplate)(e,t);return yield _t(n)}function*Xt(e,t){const n=[e,t];yield{type:"MERGE_BLOCKS",blocks:n};const[o,r]=n,a=yield c.controls.select(jt.a,"getBlock",o),s=Object(l.getBlockType)(a.name);if(!s.merge)return void(yield Bt(a.clientId));const u=yield c.controls.select(jt.a,"getBlock",r),d=Object(l.getBlockType)(u.name),{clientId:b,attributeKey:m,offset:p}=yield c.controls.select(jt.a,"getSelectionStart"),f=(b===o?s:d).attributes[m],g=(b===o||b===r)&&void 0!==m&&void 0!==p&&!!f;f||("number"==typeof m?window.console.error("RichText needs an identifier prop that is the block attribute key of the attribute it controls. Its type is expected to be a string, but was "+typeof m):window.console.error("The RichText identifier prop does not match any attributes defined by the block."));const h=Object(l.cloneBlock)(a),O=Object(l.cloneBlock)(u);if(g){const e=b===o?h:O,t=e.attributes[m],{multiline:n,__unstableMultilineWrapperTags:r,__unstablePreserveWhiteSpace:c}=f,i=Object(gt.insert)(Object(gt.create)({html:t,multilineTag:n,multilineWrapperTags:r,preserveWhiteSpace:c}),"†",p,p);e.attributes[m]=Object(gt.toHTMLString)({value:i,multilineTag:n,preserveWhiteSpace:c})}const v=a.name===u.name?[O]:Object(l.switchToBlockType)(O,a.name);if(!v||!v.length)return;const j=s.merge(h.attributes,v[0].attributes);if(g){const e=Object(i.findKey)(j,e=>"string"==typeof e&&-1!==e.indexOf("†")),t=j[e],{multiline:n,__unstableMultilineWrapperTags:o,__unstablePreserveWhiteSpace:r}=s.attributes[e],c=Object(gt.create)({html:t,multilineTag:n,multilineWrapperTags:o,preserveWhiteSpace:r}),l=c.text.indexOf("†"),u=Object(gt.remove)(c,l,l+1),d=Object(gt.toHTMLString)({value:u,multilineTag:n,preserveWhiteSpace:r});j[e]=d,yield an(a.clientId,e,l,l)}yield*Mt([a.clientId,u.clientId],[{...a,attributes:{...a.attributes,...j}},...v.slice(1)])}function*Qt(e,t=!0){if(!e||!e.length)return;e=Object(i.castArray)(e);const n=yield c.controls.select(jt.a,"getBlockRootClientId",e[0]);if(yield c.controls.select(jt.a,"getTemplateLock",n))return;let o;o=t?yield It(e[0]):yield c.controls.select(jt.a,"getPreviousBlockClientId",e[0]),yield{type:"REMOVE_BLOCKS",clientIds:e};const r=yield*kt();return[o||r]}function Zt(e,t){return Qt([e],t)}function Jt(e,t,n=!1,o=0){return{type:"REPLACE_INNER_BLOCKS",rootClientId:e,blocks:t,updateSelection:n,initialPosition:n?o:null,time:Date.now()}}function en(e){return{type:"TOGGLE_BLOCK_MODE",clientId:e}}function tn(){return{type:"START_TYPING"}}function nn(){return{type:"STOP_TYPING"}}function on(e=[]){return{type:"START_DRAGGING_BLOCKS",clientIds:e}}function rn(){return{type:"STOP_DRAGGING_BLOCKS"}}function cn(){return{type:"ENTER_FORMATTED_TEXT"}}function ln(){return{type:"EXIT_FORMATTED_TEXT"}}function an(e,t,n,o){return{type:"SELECTION_CHANGE",clientId:e,attributeKey:t,startOffset:n,endOffset:o}}function sn(e,t,n){const o=Object(l.getDefaultBlockName)();if(o)return Gt(Object(l.createBlock)(o,e),n,t)}function un(e,t){return{type:"UPDATE_BLOCK_LIST_SETTINGS",clientId:e,settings:t}}function dn(e){return{type:"UPDATE_SETTINGS",settings:e}}function bn(e,t){return{type:"SAVE_REUSABLE_BLOCK_SUCCESS",id:e,updatedId:t}}function mn(){return{type:"MARK_LAST_CHANGE_AS_PERSISTENT"}}function pn(){return{type:"MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"}}function*fn(){yield{type:"MARK_AUTOMATIC_CHANGE"},yield{type:"MARK_AUTOMATIC_CHANGE_FINAL_CONTROL"}}function gn(){return{type:"MARK_AUTOMATIC_CHANGE_FINAL"}}function*hn(e=!0){yield{type:"SET_NAVIGATION_MODE",isNavigationMode:e},e?Object(pt.speak)(Object(ft.__)("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(pt.speak)(Object(ft.__)("You are currently in edit mode. To return to the navigation mode, press Escape."))}function*On(e=null){yield{type:"SET_BLOCK_MOVING_MODE",hasBlockMovingClientId:e},e&&Object(pt.speak)(Object(ft.__)("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."))}function*vn(e,t=!0){if(!e&&!e.length)return;const n=yield c.controls.select(jt.a,"getBlocksByClientId",e),o=yield c.controls.select(jt.a,"getBlockRootClientId",e[0]);if(Object(i.some)(n,e=>!e))return;const r=n.map(e=>e.name);if(Object(i.some)(r,e=>!Object(l.hasBlockSupport)(e,"multiple",!0)))return;const a=yield c.controls.select(jt.a,"getBlockIndex",Object(i.last)(Object(i.castArray)(e)),o),s=n.map(e=>Object(l.__experimentalCloneSanitizedBlock)(e));return yield Wt(s,a+1,o,t),s.length>1&&t&&(yield Lt(Object(i.first)(s).clientId,Object(i.last)(s).clientId)),s.map(e=>e.clientId)}function*jn(e){if(!e)return;const t=yield c.controls.select(jt.a,"getBlockRootClientId",e);if(yield c.controls.select(jt.a,"getTemplateLock",t))return;const n=yield c.controls.select(jt.a,"getBlockIndex",e,t);return yield sn({},t,n)}function*kn(e){if(!e)return;const t=yield c.controls.select(jt.a,"getBlockRootClientId",e);if(yield c.controls.select(jt.a,"getTemplateLock",t))return;const n=yield c.controls.select(jt.a,"getBlockIndex",e,t);return yield sn({},t,n+1)}function yn(e,t){return{type:"TOGGLE_BLOCK_HIGHLIGHT",clientId:e,isHighlighted:t}}function*En(e){yield yn(e,!0),yield{type:"SLEEP",duration:150},yield yn(e,!1)}function Cn(e,t){return{type:"SET_HAS_CONTROLLED_INNER_BLOCKS",hasControlledInnerBlocks:t,clientId:e}}const Sn={reducer:j,selectors:o,actions:r,controls:vt},wn=Object(c.createReduxStore)(jt.a,{...Sn,persist:["preferences"]});Object(c.registerStore)(jt.a,{...Sn,persist:["preferences"]})},function(e,t){e.exports=window.wp.keycodes},,,function(e,t){e.exports=window.wp.richText},,,function(e,t){e.exports=window.wp.url},function(e,t){e.exports=window.wp.hooks},function(e,t){e.exports=window.wp.dom},,function(e,t,n){e.exports=n(169)()},function(e,t){e.exports=window.wp.keyboardShortcuts},function(e,t){e.exports=window.wp.deprecated},,,function(e,t){e.exports=window.wp.notices},function(e,t,n){"use strict";var o,r;function c(e){return[e]}function i(){var e={clear:function(){e.head=null}};return e}function l(e,t,n){var o;if(e.length!==t.length)return!1;for(o=n;o<e.length;o++)if(e[o]!==t[o])return!1;return!0}o={},r="undefined"!=typeof WeakMap,t.a=function(e,t){var n,a;function s(){n=r?new WeakMap:i()}function u(){var n,o,r,c,i,s=arguments.length;for(c=new Array(s),r=0;r<s;r++)c[r]=arguments[r];for(i=t.apply(null,c),(n=a(i)).isUniqueByDependants||(n.lastDependants&&!l(i,n.lastDependants,0)&&n.clear(),n.lastDependants=i),o=n.head;o;){if(l(o.args,c,1))return o!==n.head&&(o.prev.next=o.next,o.next&&(o.next.prev=o.prev),o.next=n.head,o.prev=null,n.head.prev=o,n.head=o),o.val;o=o.next}return o={val:e.apply(null,c)},c[0]=null,o.args=c,n.head&&(n.head.prev=o,o.next=n.head),n.head=o,o.val}return t||(t=c),a=r?function(e){var t,r,c,l,a,s=n,u=!0;for(t=0;t<e.length;t++){if(!(a=r=e[t])||"object"!=typeof a){u=!1;break}s.has(r)?s=s.get(r):(c=new WeakMap,s.set(r,c),s=c)}return s.has(o)||((l=i()).isUniqueByDependants=u,s.set(o,l)),s.get(o)}:function(){return n},u.getDependants=t,u.clear=s,s(),u}},function(e,t){e.exports=window.wp.a11y},,function(e,t){e.exports=window.wp.blob},,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));const o="core/block-editor"},function(e,t){e.exports=window.wp.htmlEntities},function(e,t,n){var o;!function(r){var c=/^\s+/,i=/\s+$/,l=0,a=r.round,s=r.min,u=r.max,d=r.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,o,l={r:0,g:0,b:0},a=1,d=null,b=null,m=null,p=!1,f=!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=U.rgb.exec(e))?{r:t[1],g:t[2],b:t[3]}:(t=U.rgba.exec(e))?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=U.hsl.exec(e))?{h:t[1],s:t[2],l:t[3]}:(t=U.hsla.exec(e))?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=U.hsv.exec(e))?{h:t[1],s:t[2],v:t[3]}:(t=U.hsva.exec(e))?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=U.hex8.exec(e))?{r:R(t[1]),g:R(t[2]),b:R(t[3]),a:F(t[4]),format:n?"name":"hex8"}:(t=U.hex6.exec(e))?{r:R(t[1]),g:R(t[2]),b:R(t[3]),format:n?"name":"hex"}:(t=U.hex4.exec(e))?{r:R(t[1]+""+t[1]),g:R(t[2]+""+t[2]),b:R(t[3]+""+t[3]),a:F(t[4]+""+t[4]),format:n?"name":"hex8"}:!!(t=U.hex3.exec(e))&&{r:R(t[1]+""+t[1]),g:R(t[2]+""+t[2]),b:R(t[3]+""+t[3]),format:n?"name":"hex"}}(e)),"object"==typeof e&&(G(e.r)&&G(e.g)&&G(e.b)?(t=e.r,n=e.g,o=e.b,l={r:255*L(t,255),g:255*L(n,255),b:255*L(o,255)},p=!0,f="%"===String(e.r).substr(-1)?"prgb":"rgb"):G(e.h)&&G(e.s)&&G(e.v)?(d=M(e.s),b=M(e.v),l=function(e,t,n){e=6*L(e,360),t=L(t,100),n=L(n,100);var o=r.floor(e),c=e-o,i=n*(1-t),l=n*(1-c*t),a=n*(1-(1-c)*t),s=o%6;return{r:255*[n,l,i,i,a,n][s],g:255*[a,n,n,l,i,i][s],b:255*[i,i,a,n,n,l][s]}}(e.h,d,b),p=!0,f="hsv"):G(e.h)&&G(e.s)&&G(e.l)&&(d=M(e.s),m=M(e.l),l=function(e,t,n){var o,r,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=L(e,360),t=L(t,100),n=L(n,100),0===t)o=r=c=n;else{var l=n<.5?n*(1+t):n+t-n*t,a=2*n-l;o=i(a,l,e+1/3),r=i(a,l,e),c=i(a,l,e-1/3)}return{r:255*o,g:255*r,b:255*c}}(e.h,d,m),p=!0,f="hsl"),e.hasOwnProperty("a")&&(a=e.a)),a=N(a),{ok:p,format:e.format||f,r:s(255,u(l.r,0)),g:s(255,u(l.g,0)),b:s(255,u(l.b,0)),a:a}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=a(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=a(this._r)),this._g<1&&(this._g=a(this._g)),this._b<1&&(this._b=a(this._b)),this._ok=n.ok,this._tc_id=l++}function m(e,t,n){e=L(e,255),t=L(t,255),n=L(n,255);var o,r,c=u(e,t,n),i=s(e,t,n),l=(c+i)/2;if(c==i)o=r=0;else{var a=c-i;switch(r=l>.5?a/(2-c-i):a/(c+i),c){case e:o=(t-n)/a+(t<n?6:0);break;case t:o=(n-e)/a+2;break;case n:o=(e-t)/a+4}o/=6}return{h:o,s:r,l:l}}function p(e,t,n){e=L(e,255),t=L(t,255),n=L(n,255);var o,r,c=u(e,t,n),i=s(e,t,n),l=c,a=c-i;if(r=0===c?0:a/c,c==i)o=0;else{switch(c){case e:o=(t-n)/a+(t<n?6:0);break;case t:o=(n-e)/a+2;break;case n:o=(e-t)/a+4}o/=6}return{h:o,s:r,v:l}}function f(e,t,n,o){var r=[A(a(e).toString(16)),A(a(t).toString(16)),A(a(n).toString(16))];return o&&r[0].charAt(0)==r[0].charAt(1)&&r[1].charAt(0)==r[1].charAt(1)&&r[2].charAt(0)==r[2].charAt(1)?r[0].charAt(0)+r[1].charAt(0)+r[2].charAt(0):r.join("")}function g(e,t,n,o){return[A(D(o)),A(a(e).toString(16)),A(a(t).toString(16)),A(a(n).toString(16))].join("")}function h(e,t){t=0===t?0:t||10;var n=b(e).toHsl();return n.s-=t/100,n.s=P(n.s),b(n)}function O(e,t){t=0===t?0:t||10;var n=b(e).toHsl();return n.s+=t/100,n.s=P(n.s),b(n)}function v(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=P(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-a(-t/100*255))),n.g=u(0,s(255,n.g-a(-t/100*255))),n.b=u(0,s(255,n.b-a(-t/100*255))),b(n)}function _(e,t){t=0===t?0:t||10;var n=b(e).toHsl();return n.l-=t/100,n.l=P(n.l),b(n)}function y(e,t){var n=b(e).toHsl(),o=(n.h+t)%360;return n.h=o<0?360+o:o,b(n)}function E(e){var t=b(e).toHsl();return t.h=(t.h+180)%360,b(t)}function C(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 S(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 w(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 o=b(e).toHsl(),r=360/n,c=[b(e)];for(o.h=(o.h-(r*t>>1)+720)%360;--t;)o.h=(o.h+r)%360,c.push(b(o));return c}function I(e,t){t=t||6;for(var n=b(e).toHsv(),o=n.h,r=n.s,c=n.v,i=[],l=1/t;t--;)i.push(b({h:o,s:r,v:c})),c=(c+l)%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,o=this.toRgb();return e=o.r/255,t=o.g/255,n=o.b/255,.2126*(e<=.03928?e/12.92:r.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:r.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:r.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=N(e),this._roundA=a(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=a(360*e.h),n=a(100*e.s),o=a(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+o+"%)":"hsva("+t+", "+n+"%, "+o+"%, "+this._roundA+")"},toHsl:function(){var e=m(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=m(this._r,this._g,this._b),t=a(360*e.h),n=a(100*e.s),o=a(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+o+"%)":"hsla("+t+", "+n+"%, "+o+"%, "+this._roundA+")"},toHex:function(e){return f(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,o,r){var c=[A(a(e).toString(16)),A(a(t).toString(16)),A(a(n).toString(16)),A(D(o))];return r&&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:a(this._r),g:a(this._g),b:a(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+a(this._r)+", "+a(this._g)+", "+a(this._b)+")":"rgba("+a(this._r)+", "+a(this._g)+", "+a(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:a(100*L(this._r,255))+"%",g:a(100*L(this._g,255))+"%",b:a(100*L(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+a(100*L(this._r,255))+"%, "+a(100*L(this._g,255))+"%, "+a(100*L(this._b,255))+"%)":"rgba("+a(100*L(this._r,255))+"%, "+a(100*L(this._g,255))+"%, "+a(100*L(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(T[f(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+g(this._r,this._g,this._b,this._a),n=t,o=this._gradientType?"GradientType = 1, ":"";if(e){var r=b(e);n="#"+g(r._r,r._g,r._b,r._a)}return"progid:DXImageTransform.Microsoft.gradient("+o+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,o=this._a<1&&this._a>=0;return t||!o||"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(_,arguments)},desaturate:function(){return this._applyModification(h,arguments)},saturate:function(){return this._applyModification(O,arguments)},greyscale:function(){return this._applyModification(v,arguments)},spin:function(){return this._applyModification(y,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(w,arguments)},triad:function(){return this._applyCombination(C,arguments)},tetrad:function(){return this._applyCombination(S,arguments)}},b.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var o in e)e.hasOwnProperty(o)&&(n[o]="a"===o?e[o]:M(e[o]));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 o=b(e).toRgb(),r=b(t).toRgb(),c=n/100;return b({r:(r.r-o.r)*c+o.r,g:(r.g-o.g)*c+o.g,b:(r.b-o.b)*c+o.b,a:(r.a-o.a)*c+o.a})},b.readability=function(e,t){var n=b(e),o=b(t);return(r.max(n.getLuminance(),o.getLuminance())+.05)/(r.min(n.getLuminance(),o.getLuminance())+.05)},b.isReadable=function(e,t,n){var o,r,c,i,l,a=b.readability(e,t);switch(r=!1,(c=n,"AA"!==(i=((c=c||{level:"AA",size:"small"}).level||"AA").toUpperCase())&&"AAA"!==i&&(i="AA"),"small"!==(l=(c.size||"small").toLowerCase())&&"large"!==l&&(l="small"),o={level:i,size:l}).level+o.size){case"AAsmall":case"AAAlarge":r=a>=4.5;break;case"AAlarge":r=a>=3;break;case"AAAsmall":r=a>=7}return r},b.mostReadable=function(e,t,n){var o,r,c,i,l=null,a=0;r=(n=n||{}).includeFallbackColors,c=n.level,i=n.size;for(var s=0;s<t.length;s++)(o=b.readability(e,t[s]))>a&&(a=o,l=b(t[s]));return b.isReadable(e,l,{level:c,size:i})||!r?l:(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"},T=b.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(x);function N(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function L(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),r.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function P(e){return s(1,u(0,e))}function R(e){return parseInt(e,16)}function A(e){return 1==e.length?"0"+e:""+e}function M(e){return e<=1&&(e=100*e+"%"),e}function D(e){return r.round(255*parseFloat(e)).toString(16)}function F(e){return R(e)/255}var V,H,z,U=(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 G(e){return!!U.CSS_UNIT.exec(e)}e.exports?e.exports=b:void 0===(o=function(){return b}.call(t,n,t,e))||(e.exports=o)}(Math)},,,,,,,,,function(e,t){e.exports=window.wp.isShallowEqual},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var o=n(0),r=n(10),c=n.n(r),i=n(3),l=n(146);function a({icon:e,showColors:t=!1,className:n}){var r;"block-default"===(null===(r=e)||void 0===r?void 0:r.src)&&(e={src:l.a});const a=Object(o.createElement)(i.Icon,{icon:e&&e.src?e.src:e}),s=t?{backgroundColor:e&&e.background,color:e&&e.foreground}:{};return Object(o.createElement)("span",{style:s,className:c()("block-editor-block-icon",n,{"has-colors":t})},a)}},,,,,,,,,,,,,,function(e,t){e.exports=window.wp.warning},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return i}));var o=n(0);const r=Object(o.createContext)({name:"",isSelected:!1,clientId:null}),{Provider:c}=r;function i(){return Object(o.useContext)(r)}},,function(e,t,n){"use strict";n.d(t,"c",(function(){return i})),n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return a}));var o=n(0),r=n(9),c=n(165);function i(e){const{refs:t,callbacks:n}=Object(o.useContext)(c.a),i=Object(o.useRef)();return Object(o.useLayoutEffect)(()=>(t.set(i,e),()=>{t.delete(i)}),[e]),Object(r.useRefEffect)(t=>{i.current=t,n.forEach((n,o)=>{e===n&&o(t)})},[e])}function l(e){const{refs:t}=Object(o.useContext)(c.a),n=Object(o.useRef)();return n.current=e,Object(o.useMemo)(()=>({get current(){let e=null;for(const[o,r]of t.entries())r===n.current&&o.current&&(e=o.current);return e}}),[])}function a(e){const{callbacks:t}=Object(o.useContext)(c.a),n=l(e),[r,i]=Object(o.useState)(null);return Object(o.useLayoutEffect)(()=>{if(e)return t.set(i,e),()=>{t.delete(i)}},[e]),n.current||r}},,,,function(e,t,n){"use strict";var o=n(0),r=n(2),c=n(4),i=n(214),l=n(3),a=n(101);function s({onClick:e}){return Object(o.createElement)("div",{tabIndex:0,role:"button",onClick:e,onKeyPress:e},Object(o.createElement)(l.Disabled,null,Object(o.createElement)(a.c,null)))}var u=n(9);let d;var b=function({viewportWidth:e,__experimentalPadding:t}){const[n,{width:r}]=Object(u.useResizeObserver)(),[c,{height:i}]=Object(u.useResizeObserver)();d=d||Object(u.pure)(a.c);const s=(r-2*t)/e;return Object(o.createElement)("div",{className:"block-editor-block-preview__container editor-styles-wrapper","aria-hidden":!0,style:{height:i*s+2*t}},n,Object(o.createElement)(l.Disabled,{style:{transform:`scale(${s})`,width:e,left:t,right:t,top:t},className:"block-editor-block-preview__content"},c,Object(o.createElement)(d,null)))},m=n(13);t.a=Object(o.memo)((function({blocks:e,__experimentalPadding:t=0,viewportWidth:n=1200,__experimentalLive:l=!1,__experimentalOnClick:a}){const u=Object(c.useSelect)(e=>e(m.a).getSettings(),[]),d=Object(o.useMemo)(()=>{const e={...u};return e.__experimentalBlockPatterns=[],e},[u]),p=Object(o.useMemo)(()=>Object(r.castArray)(e),[e]);return e&&0!==e.length?Object(o.createElement)(i.a,{value:p,settings:d},l?Object(o.createElement)(s,{onClick:a}):Object(o.createElement)(b,{viewportWidth:n,__experimentalPadding:t})):null}))},,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n(4),r=n(8),c=n(13);function i(e){return Object(o.useSelect)(t=>{if(!e)return null;const{getBlockName:n,getBlockAttributes:o}=t(c.a),{getBlockType:i,getActiveBlockVariation:l}=t(r.store),a=n(e),s=i(a);if(!s)return null;const u=o(e),d=l(a,u),b={title:s.title,icon:s.icon,description:s.description,anchor:null==u?void 0:u.anchor};return d?{title:d.title||s.title,icon:d.icon||s.icon,description:d.description||s.description}:b},[e])}},,,,function(e,t,n){"use strict";var o=n(7),r=n(0),c=n(2),i=n(10),l=n.n(i),a=n(31),s=n(1),u=n(3),d=n(4),b=n(9),m=n(8),p=n(145),f=n(233),g=n(220),h=n(156),O=n(157),v=n(102),j=n(13);function k({onSelect:e,rootClientId:t,clientId:n,isAppender:o}){const[c,i]=Object(r.useState)(""),[a,b]=Object(h.a)({onSelect:e,rootClientId:t,clientId:n,isAppender:o}),[m]=Object(v.a)(a,b),[p]=Object(O.a)(b,a),f=p.length&&!!c,k=f&&p.length>6||m.length>6,{setInserterIsOpened:_,insertionIndex:y}=Object(d.useSelect)(e=>{const{getSettings:o,getBlockIndex:r,getBlockCount:c}=e(j.a),i=r(n,t);return{setInserterIsOpened:o().__experimentalSetIsInserterOpened,insertionIndex:-1===i?c():i}},[n,t]);return Object(r.useEffect)(()=>{_&&_(!1)},[_]),Object(r.createElement)("div",{className:l()("block-editor-inserter__quick-inserter",{"has-search":k,"has-expand":_})},k&&Object(r.createElement)(u.SearchControl,{className:"block-editor-inserter__search",value:c,onChange:e=>{i(e)},label:Object(s.__)("Search for blocks and patterns"),placeholder:Object(s.__)("Search")}),Object(r.createElement)("div",{className:"block-editor-inserter__quick-inserter-results"},Object(r.createElement)(g.a,{filterValue:c,onSelect:e,rootClientId:t,clientId:n,isAppender:o,maxBlockPatterns:f?2:0,maxBlockTypes:6,isDraggable:!1})),_&&Object(r.createElement)(u.Button,{className:"block-editor-inserter__quick-inserter-expand",onClick:()=>{_({rootClientId:t,insertionIndex:y})},"aria-label":Object(s.__)("Browse all. This will open the main inserter panel in the editor toolbar.")},Object(s.__)("Browse all")))}const _=({onToggle:e,disabled:t,isOpen:n,blockTitle:c,hasSingleBlockType:i,toggleProps:l={}})=>{let a;a=i?Object(s.sprintf)(// translators: %s: the name of the block when there is only one
4
- Object(s._x)("Add %s","directly add the only allowed block"),c):Object(s._x)("Add block","Generic label for block inserter button");const{onClick:d,...b}=l;return Object(r.createElement)(u.Button,Object(o.a)({icon:p.a,label:a,tooltipPosition:"bottom",onClick:function(t){e&&e(t),d&&d(t)},className:"block-editor-inserter__toggle","aria-haspopup":!i&&"true","aria-expanded":!i&&n,disabled:t},b))};class y extends r.Component{constructor(){super(...arguments),this.onToggle=this.onToggle.bind(this),this.renderToggle=this.renderToggle.bind(this),this.renderContent=this.renderContent.bind(this)}onToggle(e){const{onToggle:t}=this.props;t&&t(e)}renderToggle({onToggle:e,isOpen:t}){const{disabled:n,blockTitle:o,hasSingleBlockType:r,toggleProps:c,hasItems:i,renderToggle:l=_}=this.props;return l({onToggle:e,isOpen:t,disabled:n||!i,blockTitle:o,hasSingleBlockType:r,toggleProps:c})}renderContent({onClose:e}){const{rootClientId:t,clientId:n,isAppender:o,showInserterHelpPanel:c,__experimentalIsQuick:i}=this.props;return i?Object(r.createElement)(k,{onSelect:()=>{e()},rootClientId:t,clientId:n,isAppender:o}):Object(r.createElement)(f.a,{onSelect:()=>{e()},rootClientId:t,clientId:n,isAppender:o,showInserterHelpPanel:c})}render(){const{position:e,hasSingleBlockType:t,insertOnlyAllowedBlock:n,__experimentalIsQuick:o,onSelectOrClose:c}=this.props;return t?this.renderToggle({onToggle:n}):Object(r.createElement)(u.Dropdown,{className:"block-editor-inserter",contentClassName:l()("block-editor-inserter__popover",{"is-quick":o}),position:e,onToggle:this.onToggle,expandOnMobile:!0,headerTitle:Object(s.__)("Add a block"),renderToggle:this.renderToggle,renderContent:this.renderContent,onClose:c})}}t.a=Object(b.compose)([Object(d.withSelect)((e,{clientId:t,rootClientId:n})=>{const{getBlockRootClientId:o,hasInserterItems:r,__experimentalGetAllowedBlocks:i}=e(j.a),{getBlockVariations:l}=e(m.store),a=i(n=n||o(t)||void 0),s=1===Object(c.size)(a)&&0===Object(c.size)(l(a[0].name,"inserter"));let u=!1;return s&&(u=a[0]),{hasItems:r(n),hasSingleBlockType:s,blockTitle:u?u.title:"",allowedBlockType:u,rootClientId:n}}),Object(d.withDispatch)((e,t,{select:n})=>({insertOnlyAllowedBlock(){const{rootClientId:o,clientId:r,isAppender:c,hasSingleBlockType:i,allowedBlockType:l,onSelectOrClose:u}=t;if(!i)return;const{insertBlock:d}=e(j.a);d(Object(m.createBlock)(l.name),function(){const{getBlockIndex:e,getBlockSelectionEnd:t,getBlockOrder:i,getBlockRootClientId:l}=n(j.a);if(r)return e(r,o);const a=t();return!c&&a&&l(a)===o?e(a,o)+1:i(o).length}(),o),u&&u();const b=Object(s.sprintf)(// translators: %s: the name of the block that has been added
5
- Object(s.__)("%s block added"),l.title);Object(a.speak)(b)}})),Object(b.ifCondition)(({hasItems:e,isAppender:t,rootClientId:n,clientId:o})=>e||!t&&!n&&!o)])(y)},,function(e,t){var n,o,r=e.exports={};function c(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function l(e){if(n===setTimeout)return setTimeout(e,0);if((n===c||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:c}catch(e){n=c}try{o="function"==typeof clearTimeout?clearTimeout:i}catch(e){o=i}}();var a,s=[],u=!1,d=-1;function b(){u&&a&&(u=!1,a.length?s=a.concat(s):d=-1,s.length&&m())}function m(){if(!u){var e=l(b);u=!0;for(var t=s.length;t;){for(a=s,s=[];++d<t;)a&&a[d].run();d=-1,t=s.length}a=null,u=!1,function(e){if(o===clearTimeout)return clearTimeout(e);if((o===i||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(e);try{o(e)}catch(t){try{return o.call(null,e)}catch(t){return o.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function f(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];s.push(new p(e,t)),1!==s.length||u||l(m)},p.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=f,r.addListener=f,r.once=f,r.off=f,r.removeListener=f,r.removeAllListeners=f,r.emit=f,r.prependListener=f,r.prependOnceListener=f,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var o=n(2),r=n(4),c=n(8),i=n(83),l=n(13);function a({clientId:e}){const{attributes:t,name:n,reusableBlockTitle:a}=Object(r.useSelect)(t=>{if(!e)return{};const{getBlockName:n,getBlockAttributes:o,__experimentalGetReusableBlockTitle:r}=t(l.a),i=n(e);if(!i)return{};const a=Object(c.isReusableBlock)(Object(c.getBlockType)(i));return{attributes:o(e),name:i,reusableBlockTitle:a&&r(o(e).ref)}},[e]),s=Object(i.a)(e);if(!n||!s)return null;const u=Object(c.getBlockType)(n),d=a||Object(c.__experimentalGetBlockLabel)(u,t);return d!==u.title?Object(o.truncate)(d,{length:35}):s.title}},,,,function(e,t,n){"use strict";n.d(t,"b",(function(){return I})),n.d(t,"c",(function(){return T})),n.d(t,"a",(function(){return L}));var o=n(0),r=n(10),c=n.n(r),i=n(4),l=n(9),a=n(163),s=n(2),u=n(8),d=n(149),b=n(137),m=n(13);function p(e){e.stopPropagation()}Object(o.createContext)();var f=Object(i.withSelect)((e,{rootClientId:t})=>{const{getBlockOrder:n,canInsertBlockType:o,getTemplateLock:r,getSelectedBlockClientId:c}=e(m.a);return{isLocked:!!r(t),blockClientIds:n(t),canInsertDefaultBlock:o(Object(u.getDefaultBlockName)(),t),selectedBlockClientId:c()}})((function({blockClientIds:e,rootClientId:t,canInsertDefaultBlock:n,isLocked:r,renderAppender:i,className:l,selectedBlockClientId:a,tagName:u="div"}){if(r||!1===i)return null;let m;if(i)m=Object(o.createElement)(i,null);else{const r=!t,c=a===t,i=a&&!e.includes(a);if(!r&&!c&&(!a||i))return null;m=n?Object(o.createElement)(d.a,{rootClientId:t,lastBlockClientId:Object(s.last)(e)}):Object(o.createElement)(b.b,{rootClientId:t,className:"block-list-appender__toggle"})}return Object(o.createElement)(u,{tabIndex:-1,onFocus:p,className:c()("block-list-appender",l)},m)})),g=n(219),h=n(142);function O(){const e=Object(o.useContext)(h.a),t=Object(i.useSelect)(e=>e(m.a).getSettings().hasReducedUI,[]),{getBlockListSettings:n,getBlockRootClientId:r,getBlockIndex:c,isBlockInsertionPointVisible:a,isMultiSelecting:s,getSelectedBlockClientIds:u,getTemplateLock:d}=Object(i.useSelect)(m.a),{showInsertionPoint:b,hideInsertionPoint:p}=Object(i.useDispatch)(m.a);return Object(l.useRefEffect)(o=>{if(!t)return o.addEventListener("mousemove",r),()=>{o.removeEventListener("mousemove",r)};function r(t){var o;if(e.current)return;if(s())return;if(!t.target.classList.contains("block-editor-block-list__layout"))return void(a()&&p());let r;if(t.target.classList.contains("is-root-container")||(r=(t.target.getAttribute("data-block")?t.target:t.target.closest("[data-block]")).getAttribute("data-block")),d(r))return;const i=(null===(o=n(r))||void 0===o?void 0:o.orientation)||"vertical",l=t.target.getBoundingClientRect(),m=t.clientY-l.top,f=t.clientX-l.left;let g=Array.from(t.target.children).find(e=>e.classList.contains("wp-block")&&"vertical"===i&&e.offsetTop>m||e.classList.contains("wp-block")&&"horizontal"===i&&e.offsetLeft>f);if(!g)return;if(!g.id&&(g=g.firstElementChild,!g))return;const h=g.id.slice("block-".length);if(!h)return;if(u().includes(h))return;const O=g.getBoundingClientRect();if("horizontal"===i&&(t.clientY>O.bottom||t.clientY<O.top)||"vertical"===i&&(t.clientX>O.right||t.clientX<O.left))return void(a()&&p());const v=c(h,r);0!==v?b(r,v,{__unstableWithInserter:!0}):a()&&p()}},[e,n,r,c,a,s,b,p,u])}const v="undefined"==typeof window?e=>{setTimeout(()=>e(Date.now()),0)}:window.requestIdleCallback||window.requestAnimationFrame,j="undefined"==typeof window?clearTimeout:window.cancelIdleCallback||window.cancelAnimationFrame;var k=n(112),_=n(3),y=n(26),E=n.n(y),C=n(235);function S({children:e}){const t=Object(o.useContext)(h.a),n=Object(o.useContext)(_.Disabled.Context);return t||n?e:(E()('wp.components.Popover.Slot name="block-toolbar"',{alternative:"wp.blockEditor.BlockTools"}),Object(o.createElement)(h.b,{__unstablePopoverSlot:"block-toolbar"},Object(o.createElement)(C.a,{__unstablePopoverSlot:"block-toolbar"}),e))}var w=n(136),B=n(154);const I=Object(o.createContext)();function x({className:e,children:t}){const n=Object(l.useViewportMatch)("medium"),{isOutlineMode:r,isFocusMode:a,isNavigationMode:s}=Object(i.useSelect)(e=>{const{getSettings:t,isNavigationMode:n}=e(m.a),{outlineMode:o,focusMode:r}=t();return{isOutlineMode:o,isFocusMode:r,isNavigationMode:n()}},[]);return Object(o.createElement)(B.a,null,Object(o.createElement)("div",{ref:Object(l.useMergeRefs)([Object(w.b)(),Object(g.a)(),O()]),className:c()("block-editor-block-list__layout is-root-container",e,{"is-outline-mode":r,"is-focus-mode":a&&n,"is-navigate-mode":s})},t))}function T({className:e,...t}){return function(){const e=Object(i.useSelect)(e=>e(m.a).getSettings().__experimentalBlockPatterns,[]);Object(o.useEffect)(()=>{if(null==e||!e.length)return;let t,n=-1;const o=()=>{n++,n>=e.length||(Object(i.select)(m.a).__experimentalGetParsedPattern(e[n].name),t=v(o))};return t=v(o),()=>j(t)},[e])}(),Object(o.createElement)(S,null,Object(o.createElement)(x,{className:e},Object(o.createElement)(L,t)))}function N({placeholder:e,rootClientId:t,renderAppender:n,__experimentalAppenderTagName:r,__experimentalLayout:c=k.c}){const[l,s]=Object(o.useState)(new Set),u=Object(o.useMemo)(()=>{const{IntersectionObserver:e}=window;if(e)return new e(e=>{s(t=>{const n=new Set(t);for(const t of e){const e=t.target.getAttribute("data-block");n[t.isIntersecting?"add":"delete"](e)}return n})})},[s]),{order:d,selectedBlocks:b}=Object(i.useSelect)(e=>{const{getBlockOrder:n,getSelectedBlockClientIds:o}=e(m.a);return{order:n(t),selectedBlocks:o()}},[t]);return Object(o.createElement)(k.a,{value:c},Object(o.createElement)(I.Provider,{value:u},d.map(e=>Object(o.createElement)(i.AsyncModeProvider,{key:e,value:!l.has(e)&&!b.includes(e)},Object(o.createElement)(a.b,{rootClientId:t,clientId:e})))),d.length<1&&e,Object(o.createElement)(f,{tagName:r,rootClientId:t,renderAppender:n}))}function L(e){return Object(o.createElement)(i.AsyncModeProvider,{value:!1},Object(o.createElement)(N,e))}},function(e,t,n){"use strict";var o=n(8),r=n(4),c=n(0),i=n(13);t.a=(e,t)=>{const{categories:n,collections:l,items:a}=Object(r.useSelect)(t=>{const{getInserterItems:n}=t(i.a),{getCategories:r,getCollections:c}=t(o.store);return{categories:r(),collections:c(),items:n(e)}},[e]);return[a,n,l,Object(c.useCallback)(({name:e,initialAttributes:n,innerBlocks:r},c)=>{const i=Object(o.createBlock)(e,n,Object(o.createBlocksFromInnerBlocksTemplate)(r));t(i,void 0,c)},[t])]}},function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));var o=n(7),r=n(0),c=n(2),i=n(3),l=n(153),a={default:Object(i.createSlotFill)("BlockControls"),block:Object(i.createSlotFill)("BlockControlsBlock"),inline:Object(i.createSlotFill)("BlockFormatControls"),other:Object(i.createSlotFill)("BlockControlsOther")};function s({group:e="default",controls:t,children:n}){if(!Object(l.a)())return null;const o=a[e].Fill;return Object(r.createElement)(i.__experimentalStyleProvider,{document:document},Object(r.createElement)(o,null,o=>{const l=Object(c.isEmpty)(o)?null:o;return Object(r.createElement)(i.__experimentalToolbarContext.Provider,{value:l},"default"===e&&Object(r.createElement)(i.ToolbarGroup,{controls:t}),n)}))}function u({group:e="default",...t}){const n=Object(r.useContext)(i.__experimentalToolbarContext),c=a[e].Slot,l=Object(i.__experimentalUseSlot)(c.__unstableName);return Boolean(l.fills&&l.fills.length)?"default"===e?Object(r.createElement)(c,Object(o.a)({},t,{bubblesVirtually:!0,fillProps:n})):Object(r.createElement)(i.ToolbarGroup,null,Object(r.createElement)(c,Object(o.a)({},t,{bubblesVirtually:!0,fillProps:n}))):null}const d=s;d.Slot=u;const b=e=>Object(r.createElement)(s,Object(o.a)({group:"inline"},e));b.Slot=e=>Object(r.createElement)(u,Object(o.a)({group:"inline"},e)),t.b=d},,function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return c}));var o=n(1);const r={insertUsage:{}},c={alignWide:!1,supportsLayout:!0,colors:[{name:Object(o.__)("Black"),slug:"black",color:"#000000"},{name:Object(o.__)("Cyan bluish gray"),slug:"cyan-bluish-gray",color:"#abb8c3"},{name:Object(o.__)("White"),slug:"white",color:"#ffffff"},{name:Object(o.__)("Pale pink"),slug:"pale-pink",color:"#f78da7"},{name:Object(o.__)("Vivid red"),slug:"vivid-red",color:"#cf2e2e"},{name:Object(o.__)("Luminous vivid orange"),slug:"luminous-vivid-orange",color:"#ff6900"},{name:Object(o.__)("Luminous vivid amber"),slug:"luminous-vivid-amber",color:"#fcb900"},{name:Object(o.__)("Light green cyan"),slug:"light-green-cyan",color:"#7bdcb5"},{name:Object(o.__)("Vivid green cyan"),slug:"vivid-green-cyan",color:"#00d084"},{name:Object(o.__)("Pale cyan blue"),slug:"pale-cyan-blue",color:"#8ed1fc"},{name:Object(o.__)("Vivid cyan blue"),slug:"vivid-cyan-blue",color:"#0693e3"},{name:Object(o.__)("Vivid purple"),slug:"vivid-purple",color:"#9b51e0"}],fontSizes:[{name:Object(o._x)("Small","font size name"),size:13,slug:"small"},{name:Object(o._x)("Normal","font size name"),size:16,slug:"normal"},{name:Object(o._x)("Medium","font size name"),size:20,slug:"medium"},{name:Object(o._x)("Large","font size name"),size:36,slug:"large"},{name:Object(o._x)("Huge","font size name"),size:42,slug:"huge"}],imageDefaultSize:"large",imageSizes:[{slug:"thumbnail",name:Object(o.__)("Thumbnail")},{slug:"medium",name:Object(o.__)("Medium")},{slug:"large",name:Object(o.__)("Large")},{slug:"full",name:Object(o.__)("Full Size")}],imageEditing:!0,maxWidth:580,allowedBlockTypes:!0,maxUploadFileSize:0,allowedMimeTypes:null,__experimentalCanUserUseUnfilteredHTML:!1,__experimentalBlockDirectory:!1,__mobileEnablePageTemplates:!1,__experimentalBlockPatterns:[],__experimentalBlockPatternCategories:[],__experimentalSpotlightEntityBlocks:[],gradients:[{name:Object(o.__)("Vivid cyan blue to vivid purple"),gradient:"linear-gradient(135deg,rgba(6,147,227,1) 0%,rgb(155,81,224) 100%)",slug:"vivid-cyan-blue-to-vivid-purple"},{name:Object(o.__)("Light green cyan to vivid green cyan"),gradient:"linear-gradient(135deg,rgb(122,220,180) 0%,rgb(0,208,130) 100%)",slug:"light-green-cyan-to-vivid-green-cyan"},{name:Object(o.__)("Luminous vivid amber to luminous vivid orange"),gradient:"linear-gradient(135deg,rgba(252,185,0,1) 0%,rgba(255,105,0,1) 100%)",slug:"luminous-vivid-amber-to-luminous-vivid-orange"},{name:Object(o.__)("Luminous vivid orange to vivid red"),gradient:"linear-gradient(135deg,rgba(255,105,0,1) 0%,rgb(207,46,46) 100%)",slug:"luminous-vivid-orange-to-vivid-red"},{name:Object(o.__)("Very light gray to cyan bluish gray"),gradient:"linear-gradient(135deg,rgb(238,238,238) 0%,rgb(169,184,195) 100%)",slug:"very-light-gray-to-cyan-bluish-gray"},{name:Object(o.__)("Cool to warm spectrum"),gradient:"linear-gradient(135deg,rgb(74,234,220) 0%,rgb(151,120,209) 20%,rgb(207,42,186) 40%,rgb(238,44,130) 60%,rgb(251,105,98) 80%,rgb(254,248,76) 100%)",slug:"cool-to-warm-spectrum"},{name:Object(o.__)("Blush light purple"),gradient:"linear-gradient(135deg,rgb(255,206,236) 0%,rgb(152,150,240) 100%)",slug:"blush-light-purple"},{name:Object(o.__)("Blush bordeaux"),gradient:"linear-gradient(135deg,rgb(254,205,165) 0%,rgb(254,45,45) 50%,rgb(107,0,62) 100%)",slug:"blush-bordeaux"},{name:Object(o.__)("Luminous dusk"),gradient:"linear-gradient(135deg,rgb(255,203,112) 0%,rgb(199,81,192) 50%,rgb(65,88,208) 100%)",slug:"luminous-dusk"},{name:Object(o.__)("Pale ocean"),gradient:"linear-gradient(135deg,rgb(255,245,203) 0%,rgb(182,227,212) 50%,rgb(51,167,181) 100%)",slug:"pale-ocean"},{name:Object(o.__)("Electric grass"),gradient:"linear-gradient(135deg,rgb(202,248,128) 0%,rgb(113,206,126) 100%)",slug:"electric-grass"},{name:Object(o.__)("Midnight"),gradient:"linear-gradient(135deg,rgb(2,3,129) 0%,rgb(40,116,252) 100%)",slug:"midnight"}]}},,function(e,t,n){"use strict";var o=n(0),r=n(3);t.a=function({title:e,icon:t,children:n}){return Object(o.createElement)(o.Fragment,null,Object(o.createElement)("div",{className:"block-editor-inserter__panel-header"},Object(o.createElement)("h2",{className:"block-editor-inserter__panel-title"},e),Object(o.createElement)(r.Icon,{icon:t})),Object(o.createElement)("div",{className:"block-editor-inserter__panel-content"},n))}},,function(e,t,n){"use strict";var o=n(0);t.a=function({icon:e,size:t=24,...n}){return Object(o.cloneElement)(e,{width:t,height:t,...n})}},,,function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return l})),n.d(t,"d",(function(){return a})),n.d(t,"b",(function(){return s}));var o=n(0);const r={type:"default"},c=Object(o.createContext)(r);function i(e,t){return e.split(",").map(e=>`.editor-styles-wrapper ${e} ${t}`).join(",")}const l=c.Provider;function a(){return Object(o.useContext)(c)}function s({selector:e,layout:t={}}){const{contentSize:n,wideSize:r}=t;let c=n||r?`\n\t\t\t\t${i(e,"> *")} {\n\t\t\t\t\tmax-width: ${null!=n?n:r};\n\t\t\t\t\tmargin-left: auto !important;\n\t\t\t\t\tmargin-right: auto !important;\n\t\t\t\t}\n\n\t\t\t\t${i(e,'> [data-align="wide"]')} {\n\t\t\t\t\tmax-width: ${null!=r?r:n};\n\t\t\t\t}\n\n\t\t\t\t${i(e,'> [data-align="full"]')} {\n\t\t\t\t\tmax-width: none;\n\t\t\t\t}\n\t\t\t`:"";return c+=`\n\t\t${i(e,'> [data-align="left"]')} {\n\t\t\tfloat: left;\n\t\t\tmargin-right: 2em;\n\t\t}\n\n\t\t${i(e,'> [data-align="right"]')} {\n\t\t\tfloat: right;\n\t\t\tmargin-left: 2em;\n\t\t}\n\t`,Object(o.createElement)("style",null,c)}},function(e,t,n){"use strict";t.__esModule=!0;var o=n(249);t.default=o.TextareaAutosize},,function(e,t,n){"use strict";var o=n(0),r=n(8),c=n(7),i=n(10),l=n.n(i),a=n(14),s=n(52),u=n(277),d=n(221);function b(e=window){const{platform:t}=e.navigator;return-1!==t.indexOf("Mac")||["iPad","iPhone"].includes(t)}var m=Object(o.memo)((function({className:e,isFirst:t,item:n,onSelect:i,onHover:m,isDraggable:p,...f}){const g=Object(o.useRef)(!1),h=n.icon?{backgroundColor:n.icon.background,color:n.icon.foreground}:{},O=Object(o.useMemo)(()=>[Object(r.createBlock)(n.name,n.initialAttributes,Object(r.createBlocksFromInnerBlocksTemplate)(n.innerBlocks))],[n.name,n.initialAttributes,n.initialAttributes]);return Object(o.createElement)(d.a,{isEnabled:p&&!n.disabled,blocks:O,icon:n.icon},({draggable:r,onDragStart:d,onDragEnd:p})=>Object(o.createElement)("div",{className:"block-editor-block-types-list__list-item",draggable:r,onDragStart:e=>{g.current=!0,d&&(m(null),d(e))},onDragEnd:e=>{g.current=!1,p&&p(e)}},Object(o.createElement)(u.a,Object(c.a)({isFirst:t,className:l()("block-editor-block-types-list__item",e),disabled:n.isDisabled,onClick:e=>{e.preventDefault(),i(n,b()?e.metaKey:e.ctrlKey),m(null)},onKeyDown:e=>{const{keyCode:t}=e;t===a.ENTER&&(e.preventDefault(),i(n,b()?e.metaKey:e.ctrlKey),m(null))},onFocus:()=>{g.current||m(n)},onMouseEnter:()=>{g.current||m(n)},onMouseLeave:()=>m(null),onBlur:()=>m(null)},f),Object(o.createElement)("span",{className:"block-editor-block-types-list__item-icon",style:h},Object(o.createElement)(s.a,{icon:n.icon,showColors:!0})),Object(o.createElement)("span",{className:"block-editor-block-types-list__item-title"},n.title))))})),p=n(275),f=n(276);t.a=function({items:e=[],onSelect:t,onHover:n=(()=>{}),children:c,label:i,isDraggable:l=!0}){return Object(o.createElement)(p.a,{className:"block-editor-block-types-list","aria-label":i},function(e,t){const n=[];for(let t=0,o=e.length;t<o;t+=3)n.push(e.slice(t,t+3));return n}(e).map((e,c)=>Object(o.createElement)(f.a,{key:c},e.map((e,i)=>Object(o.createElement)(m,{key:e.id,item:e,className:Object(r.getBlockMenuDefaultClassName)(e.id),onSelect:t,onHover:n,isDraggable:l,isFirst:0===c&&0===i})))),c)}},function(e,t,n){"use strict";var o=n(0),r=n(6);const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M18.3 5.6L9.9 16.9l-4.6-3.4-.9 1.2 5.8 4.3 9.3-12.6z"}));t.a=c},,,,,,,,,,function(e,t,n){"use strict";function o(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(192)),c=o(n(243)),i=n(11),l=o(i),a=o(n(244)),s=o(n(246)),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 m(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),o=1;o<t;o++)n[o-1]=arguments[o];return u.fun(e)?e.apply(void 0,n):e}function f(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 r({to:t},e);var n=Object.keys(e).reduce((function(n,o){var c;return u.und(t[o])?r({},n,((c={})[o]=e[o],c)):n}),{});return r({to:t},n)}var g,h,O=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}(),v=function(e){function t(){for(var t,n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return(t=e.call.apply(e,[this].concat(o))||this).payload=[],t.attach=function(){return t.payload.forEach((function(e){return e instanceof O&&e.addChild(s(t))}))},t.detach=function(){return t.payload.forEach((function(e){return e instanceof O&&e.removeChild(s(t))}))},t}return a(t,e),t}(O),j=function(e){function t(){for(var t,n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return(t=e.call.apply(e,[this].concat(o))||this).payload={},t.attach=function(){return Object.values(t.payload).forEach((function(e){return e instanceof O&&e.addChild(s(t))}))},t.detach=function(){return Object.values(t.payload).forEach((function(e){return e instanceof O&&e.removeChild(s(t))}))},t}a(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 o=this.payload[n];(!e||o instanceof O)&&(t[n]=o instanceof O?o[e?"getAnimatedValue":"getValue"]():o)}return t},n.getAnimatedValue=function(){return this.getValue(!0)},t}(O);function k(e,t){g={fn:e,transform:t}}function _(e){h=e}var y,E=function(e){return"undefined"!=typeof window?window.requestAnimationFrame(e):-1},C=function(e){"undefined"!=typeof window&&window.cancelAnimationFrame(e)};function S(e){y=e}var w,B=function(){return Date.now()};function I(e){w=e}var x,T,N=function(e){return e.current};function L(e){x=e}var P=Object.freeze({get applyAnimatedValues(){return g},injectApplyAnimatedValues:k,get colorNames(){return h},injectColorNames:_,get requestFrame(){return E},get cancelFrame(){return C},injectFrame:function(e,t){E=e,C=t},get interpolation(){return y},injectStringInterpolator:S,get now(){return B},injectNow:function(e){B=e},get defaultElement(){return w},injectDefaultElement:I,get animatedApi(){return N},injectAnimatedApi:function(e){N=e},get createAnimatedStyle(){return x},injectCreateAnimatedStyle:L,get manualFrameloop(){return T},injectManualFrameloop:function(e){T=e}}),R=function(e){function t(t,n){var o;return(o=e.call(this)||this).update=void 0,o.payload=t.style?r({},t,{style:x(t.style)}):t,o.update=n,o.attach(),o}return a(t,e),t}(j),A=!1,M=new Set,D=function e(){if(!A)return!1;var t=B(),n=M,o=Array.isArray(n),r=0;for(n=o?n:n[Symbol.iterator]();;){var c;if(o){if(r>=n.length)break;c=n[r++]}else{if((r=n.next()).done)break;c=r.value}for(var i=c,l=!1,a=0;a<i.configs.length;a++){for(var s=i.configs[a],u=void 0,d=void 0,b=0;b<s.animatedValues.length;b++){var m=s.animatedValues[b];if(!m.done){var p=s.fromValues[b],f=s.toValues[b],g=m.lastPosition,h=f instanceof O,v=Array.isArray(s.initialVelocity)?s.initialVelocity[b]:s.initialVelocity;if(h&&(f=f.getValue()),s.immediate)m.setValue(f),m.done=!0;else if("string"!=typeof p&&"string"!=typeof f){if(void 0!==s.duration)g=p+s.easing((t-m.startTime)/s.duration)*(f-p),u=t>=m.startTime+s.duration;else if(s.decay)g=p+v/(1-.998)*(1-Math.exp(-(1-.998)*(t-m.startTime))),(u=Math.abs(m.lastPosition-g)<.1)&&(f=g);else{d=void 0!==m.lastTime?m.lastTime:t,v=void 0!==m.lastVelocity?m.lastVelocity:s.initialVelocity,t>d+64&&(d=t);for(var j=Math.floor(t-d),k=0;k<j;++k)g+=1*(v+=(-s.tension*(g-f)+-s.friction*v)/s.mass*1/1e3)/1e3;var _=!(!s.clamp||0===s.tension)&&(p<f?g>f:g<f),y=Math.abs(v)<=s.precision,C=0===s.tension||Math.abs(f-g)<=s.precision;u=_||y&&C,m.lastVelocity=v,m.lastTime=t}h&&!s.toValues[b].done&&(u=!1),u?(m.value!==f&&(g=f),m.done=!0):l=!0,m.setValue(g),m.lastPosition=g}else m.setValue(f),m.done=!0}}i.props.onFrame&&(i.values[s.name]=s.interpolation.getValue())}i.props.onFrame&&i.props.onFrame(i.values),l||(M.delete(i),i.stop(!0))}return M.size?T?T():E(e):A=!1,A};function F(e,t,n){if("function"==typeof e)return e;if(Array.isArray(e))return F({range:e,output:t,extrapolate:n});if(y&&"string"==typeof e.output[0])return y(e);var o=e,r=o.output,c=o.range||[0,1],i=o.extrapolateLeft||o.extrapolate||"extend",l=o.extrapolateRight||o.extrapolate||"extend",a=o.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,o,r,c,i,l,a){var s=a?a(e):e;if(s<t){if("identity"===i)return s;"clamp"===i&&(s=t)}if(s>n){if("identity"===l)return s;"clamp"===l&&(s=n)}return o===r?o:t===n?e<=t?o:r:(t===-1/0?s=-s:n===1/0?s-=t:s=(s-t)/(n-t),s=c(s),o===-1/0?s=-s:r===1/0?s+=o:s=s*(r-o)+o,s)}(e,c[t],c[t+1],r[t],r[t+1],a,i,l,o.map)}}var V=function(e){function t(n,o,r){var c;return(c=e.call(this)||this).calc=void 0,c.payload=n instanceof v&&!(n instanceof t)?n.getPayload():Array.isArray(n)?n:[n],c.calc=F(o,r),c}a(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}(v),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}a(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}(O),z=function(e){function t(t){var n;return(n=e.call(this)||this).payload=t.map((function(e){return new H(e)})),n}a(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,o){return n.payload[o].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}(v),U=0,G=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=U++}var t=e.prototype;return t.update=function(e){if(!e)return this;var t=f(e),n=t.delay,o=void 0===n?0:n,i=t.to,l=c(t,["delay","to"]);if(u.arr(i)||u.fun(i))this.queue.push(r({},l,{delay:o,to:i}));else if(i){var a={};Object.entries(i).forEach((function(e){var t,n=e[0],c=e[1],i=r({to:(t={},t[n]=c,t),delay:p(o,n)},l),s=a[i.delay]&&a[i.delay].to;a[i.delay]=r({},a[i.delay],i,{to:r({},s,i.to)})})),this.queue=Object.values(a)}return this.queue=this.queue.sort((function(e,t){return e.delay-t.delay})),this.diff(l),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,o=void 0===n?{}:n,c=e.to,i=void 0===c?{}:c;u.obj(o)&&(t.merged=r({},o,t.merged)),u.obj(i)&&(t.merged=r({},t.merged,i))}));var n=this.local=++this.guid,o=this.localQueue=this.queue;this.queue=[],o.forEach((function(r,i){var l=r.delay,a=c(r,["delay"]),s=function(r){i===o.length-1&&n===t.guid&&r&&(t.idle=!0,t.props.onRest&&t.props.onRest(t.merged)),e&&e()},d=u.arr(a.to)||u.fun(a.to);l?setTimeout((function(){n===t.guid&&(d?t.runAsync(a,s):t.diff(a).start(s))}),l):d?t.runAsync(a,s):t.diff(a).start(s)}))}else u.fun(e)&&this.listeners.push(e),this.props.onStart&&this.props.onStart(),this,M.has(this)||M.add(this),A||(A=!0,E(T||D));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,M.has(this)&&M.delete(this)),this},t.runAsync=function(e,t){var n=this,o=(e.delay,c(e,["delay"])),i=this.local,l=Promise.resolve(void 0);if(u.arr(o.to))for(var a=function(e){var t=e,c=r({},o,f(o.to[t]));u.arr(c.config)&&(c.config=c.config[t]),l=l.then((function(){if(i===n.guid)return new Promise((function(e){return n.diff(c).start(e)}))}))},s=0;s<o.to.length;s++)a(s);else if(u.fun(o.to)){var d,b=0;l=l.then((function(){return o.to((function(e){var t=r({},o,f(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}))}))}l.then(t)},t.diff=function(e){var t=this;this.props=r({},this.props,e);var n=this.props,o=n.from,c=void 0===o?{}:o,i=n.to,l=void 0===i?{}:i,a=n.config,s=void 0===a?{}:a,d=n.reverse,f=n.attach,g=n.reset,O=n.immediate;if(d){var v=[l,c];c=v[0],l=v[1]}this.merged=r({},c,this.merged,l),this.hasChanged=!1;var j=f&&f(this);if(this.animations=Object.entries(this.merged).reduce((function(e,n){var o=n[0],i=n[1],l=e[o]||{},a=u.num(i),d=u.str(i)&&!i.startsWith("#")&&!/\d/.test(i)&&!h[i],f=u.arr(i),v=!a&&!f&&!d,k=u.und(c[o])?i:c[o],_=a||f||d?i:1,E=p(s,o);j&&(_=j.animations[o].parent);var C,S=l.parent,w=l.interpolation,I=m(j?_.getPayload():_),x=i;v&&(x=y({range:[0,1],output:[i,i]})(1));var T,N=w&&w.getValue(),L=!u.und(S)&&l.animatedValues.some((function(e){return!e.done})),P=!u.equ(x,N),R=!u.equ(x,l.previous),A=!u.equ(E,l.config);if(g||R&&P||A){var M;if(a||d)S=w=l.parent||new H(k);else if(f)S=w=l.parent||new z(k);else if(v){var D=l.interpolation&&l.interpolation.calc(l.parent.value);D=void 0===D||g?k:D,l.parent?(S=l.parent).setValue(0,!1):S=new H(0);var F={output:[D,i]};l.interpolation?(w=l.interpolation,l.interpolation.updateConfig(F)):w=S.interpolate(F)}return I=m(j?_.getPayload():_),C=m(S.getPayload()),g&&!v&&S.setValue(k,!1),t.hasChanged=!0,C.forEach((function(e){e.startPosition=e.value,e.lastPosition=e.value,e.lastVelocity=L?e.lastVelocity:void 0,e.lastTime=L?e.lastTime:void 0,e.startTime=B(),e.done=!1,e.animatedStyles.clear()})),p(O,o)&&S.setValue(v?_:i,!1),r({},e,((M={})[o]=r({},l,{name:o,parent:S,interpolation:w,animatedValues:C,toValues:I,previous:x,config:E,fromValues:m(S.getValue()),immediate:p(O,o),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}),M))}return P?e:(v&&(S.setValue(1,!1),w.updateConfig({output:[x,x]})),S.done=!0,t.hasChanged=!0,r({},e,((T={})[o]=r({},e[o],{previous:x}),T)))}),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),o=i.useRef(),r=u.fun(t),c=i.useMemo((function(){var n;return o.current&&(o.current.map((function(e){return e.destroy()})),o.current=void 0),[new Array(e).fill().map((function(e,o){var c=new G,i=r?p(t,o,c):t[o];return 0===o&&(n=i.ref),c.update(i),n||c.start(),c})),n]}),[e]),l=c[0],a=c[1];o.current=l,i.useImperativeHandle(a,(function(){return{start:function(){return Promise.all(o.current.map((function(e){return new Promise((function(t){return e.start(t)}))})))},stop:function(e){return o.current.forEach((function(t){return t.stop(e)}))},get controllers(){return o.current}}}));var s=i.useMemo((function(){return function(e){return o.current.map((function(t,n){t.update(r?p(e,n,t):e[n]),a||t.start()}))}}),[e]);i.useEffect((function(){n.current?r||s(t):a||o.current.forEach((function(e){return e.start()}))})),i.useEffect((function(){return n.current=!0,function(){return o.current.forEach((function(e){return e.destroy()}))}}),[]);var d=o.current.map((function(e){return e.getValues()}));return r?[d,s,function(e){return o.current.forEach((function(t){return t.pause(e)}))}]:d},K=0,$=function(e,t){return("function"==typeof t?e.map(t):m(t)).map(String)},q=function(e){var t=e.items,n=e.keys,o=void 0===n?function(e){return e}:n,i=c(e,["items","keys"]);return t=m(void 0!==t?t:null),r({items:t,keys:$(t,o)},i)};function Y(e,t){var n=function(){if(r){if(c>=o.length)return"break";i=o[c++]}else{if((c=o.next()).done)return"break";i=c.value}var n=i.key,l=function(e){return e.key!==n};(u.und(t)||t===n)&&(e.current.instances.delete(n),e.current.transitions=e.current.transitions.filter(l),e.current.deleted=e.current.deleted.filter(l))},o=e.current.deleted,r=Array.isArray(o),c=0;for(o=r?o:o[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 O||(t=g.transform(t)),n.payload=t,n}return a(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+%")),oe=new RegExp("hsla"+J(Z,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%",Z)),re=/^#([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})$/,le=/^#([0-9a-fA-F]{8})$/;function ae(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 o=n<.5?n*(1+t):n+t-n*t,r=2*n-o,c=ae(r,o,e+1/3),i=ae(r,o,e),l=ae(r,o,e-1/3);return Math.round(255*c)<<24|Math.round(255*i)<<16|Math.round(255*l)<<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 me(e){var t=parseFloat(e);return t<0?0:t>100?1:t/100}function pe(e){var t,n,o="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=re.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+"ff",16)>>>0:(n=le.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]),me(n[2]),me(n[3])))>>>0:(n=oe.exec(t))?(se(de(n[1]),me(n[2]),me(n[3]))|be(n[4]))>>>0:null;return null===o?e:"rgba("+((4278190080&(o=o||0))>>>24)+", "+((16711680&o)>>>16)+", "+((65280&o)>>>8)+", "+(255&o)/255+")"}var fe=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,ge=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,he=new RegExp("("+Object.keys(Q).join("|")+")","g"),Oe={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},ve=["Webkit","Ms","Moz","O"];function je(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||Oe.hasOwnProperty(e)&&Oe[e]?(""+t).trim():t+"px"}Oe=Object.keys(Oe).reduce((function(e,t){return ve.forEach((function(n){return e[function(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}(n,t)]=e[t]})),e}),Oe);var ke={};L((function(e){return new X(e)})),I("div"),S((function(e){var t=e.output.map((function(e){return e.replace(ge,pe)})).map((function(e){return e.replace(he,pe)})),n=t[0].match(fe).map((function(){return[]}));t.forEach((function(e){e.match(fe).forEach((function(e,t){return n[t].push(+e)}))}));var o=t[0].match(fe).map((function(t,o){return F(r({},e,{output:n[o]}))}));return function(e){var n=0;return t[0].replace(fe,(function(){return o[n++](e)})).replace(/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,(function(e,t,n,o,r){return"rgba("+Math.round(t)+", "+Math.round(n)+", "+Math.round(o)+", "+r+")"}))}})),_(Q),k((function(e,t){if(!e.nodeType||void 0===e.setAttribute)return!1;var n=t.style,o=t.children,r=t.scrollTop,i=t.scrollLeft,l=c(t,["style","children","scrollTop","scrollLeft"]),a="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName;for(var s in void 0!==r&&(e.scrollTop=r),void 0!==i&&(e.scrollLeft=i),void 0!==o&&(e.textContent=o),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 l){var m=a?b:ke[b]||(ke[b]=b.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()})));void 0!==e.getAttribute(m)&&e.setAttribute(m,l[b])}}),(function(e){return e}));var _e,ye,Ee=(_e=function(e){return i.forwardRef((function(t,n){var o=d(),a=i.useRef(!0),s=i.useRef(null),b=i.useRef(null),m=i.useCallback((function(e){var t=s.current;s.current=new R(e,(function(){b.current&&!1===g.fn(b.current,s.current.getAnimatedValue())&&o()})),t&&t.detach()}),[]);i.useEffect((function(){return function(){a.current=!1,s.current&&s.current.detach()}}),[]),i.useImperativeHandle(n,(function(){return N(b,a,o)})),m(t);var p=s.current.getValue(),f=(p.scrollTop,p.scrollLeft,c(p,["scrollTop","scrollLeft"]));return l.createElement(e,r({},f,{ref:function(e){return b.current=(t=e,(o=n)&&(u.fun(o)?o(t):u.obj(o)&&(o.current=t)),t);var t,o}}))}))},void 0===(ye=!1)&&(ye=!0),function(e){return(u.arr(e)?e:Object.keys(e)).reduce((function(e,t){var n=ye?t[0].toLowerCase()+t.substring(1):t;return e[n]=_e(n),e}),_e)}),Ce=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=D,t.animated=Ce,t.a=Ce,t.interpolate=function(e,t,n){return e&&new V(e,t,n)},t.Globals=P,t.useSpring=function(e){var t=u.fun(e),n=W(1,t?e:[e]),o=n[0],r=n[1],c=n[2];return t?[o[0],r,c]:o},t.useTrail=function(e,t){var n=i.useRef(!1),o=u.fun(t),c=p(t),l=i.useRef(),a=W(e,(function(e,t){return 0===e&&(l.current=[]),l.current.push(t),r({},c,{config:p(c.config,e),attach:e>0&&function(){return l.current[e-1]}})})),s=a[0],d=a[1],b=a[2],m=i.useMemo((function(){return function(e){return d((function(t,n){e.reverse;var o=e.reverse?t+1:t-1,i=l.current[o];return r({},e,{config:p(e.config||c.config,t),attach:i&&function(){return i}})}))}}),[e,c.reverse]);return i.useEffect((function(){n.current&&!o&&m(t)})),i.useEffect((function(){n.current=!0}),[]),o?[s,m,b]:s},t.useTransition=function(e,t,n){var o=r({items:e,keys:t||function(e){return e}},n),l=q(o),a=l.lazy,s=void 0!==a&&a,u=(l.unique,l.reset),b=void 0!==u&&u,m=(l.enter,l.leave,l.update,l.onDestroyed),f=(l.keys,l.items,l.onFrame),g=l.onRest,h=l.onStart,O=l.ref,v=c(l,["lazy","unique","reset","enter","leave","update","onDestroyed","keys","items","onFrame","onRest","onStart","ref"]),j=d(),k=i.useRef(!1),_=i.useRef({mounted:!1,first:!0,deleted:[],current:{},transitions:[],prevProps:{},paused:!!o.ref,instances:!k.current&&new Map,forceUpdate:j});return i.useImperativeHandle(o.ref,(function(){return{start:function(){return Promise.all(Array.from(_.current.instances).map((function(e){var t=e[1];return new Promise((function(e){return t.start(e)}))})))},stop:function(e){return Array.from(_.current.instances).forEach((function(t){return t[1].stop(e)}))},get controllers(){return Array.from(_.current.instances).map((function(e){return e[1]}))}}})),_.current=function(e,t){for(var n=e.first,o=e.prevProps,i=c(e,["first","prevProps"]),l=q(t),a=l.items,s=l.keys,u=l.initial,d=l.from,b=l.enter,m=l.leave,f=l.update,g=l.trail,h=void 0===g?0:g,O=l.unique,v=l.config,j=l.order,k=void 0===j?["enter","leave","update"]:j,_=q(o),y=_.keys,E=_.items,C=r({},i.current),S=[].concat(i.deleted),w=Object.keys(C),B=new Set(w),I=new Set(s),x=s.filter((function(e){return!B.has(e)})),T=i.transitions.filter((function(e){return!e.destroyed&&!I.has(e.originalKey)})).map((function(e){return e.originalKey})),N=s.filter((function(e){return B.has(e)})),L=-h;k.length;)switch(k.shift()){case"enter":x.forEach((function(e,t){O&&S.find((function(t){return t.originalKey===e}))&&(S=S.filter((function(t){return t.originalKey!==e})));var o=s.indexOf(e),r=a[o],c=n&&void 0!==u?"initial":"enter";C[e]={slot:c,originalKey:e,key:O?String(e):K++,item:r,trail:L+=h,config:p(v,r,c),from:p(n&&void 0!==u?u||{}:d,r),to:p(b,r)}}));break;case"leave":T.forEach((function(e){var t=y.indexOf(e),n=E[t];S.unshift(r({},C[e],{slot:"leave",destroyed:!0,left:y[Math.max(0,t-1)],right:y[Math.min(y.length,t+1)],trail:L+=h,config:p(v,n,"leave"),to:p(m,n)})),delete C[e]}));break;case"update":N.forEach((function(e){var t=s.indexOf(e),n=a[t];C[e]=r({},C[e],{item:n,slot:"update",trail:L+=h,config:p(v,n,"update"),to:p(f,n)})}))}var P=s.map((function(e){return C[e]}));return S.forEach((function(e){var t,n=e.left,o=(e.right,c(e,["left","right"]));-1!==(t=P.findIndex((function(e){return e.originalKey===n})))&&(t+=1),t=Math.max(0,t),P=[].concat(P.slice(0,t),[o],P.slice(t))})),r({},i,{changed:x.length||T.length||N.length,first:n&&0===x.length,transitions:P,current:C,deleted:S,prevProps:t})}(_.current,o),_.current.changed&&_.current.transitions.forEach((function(e){var t=e.slot,n=e.from,o=e.to,c=e.config,i=e.trail,l=e.key,a=e.item;_.current.instances.has(l)||_.current.instances.set(l,new G);var u=_.current.instances.get(l),d=r({},v,{to:o,from:n,config:c,ref:O,onRest:function(n){_.current.mounted&&(e.destroyed&&(O||s||Y(_,l),m&&m(a)),!Array.from(_.current.instances).some((function(e){return!e[1].idle}))&&(O||s)&&_.current.deleted.length>0&&Y(_),g&&g(a,t,n))},onStart:h&&function(){return h(a,t)},onFrame:f&&function(e){return f(a,t,e)},delay:i,reset:b&&"enter"===t});u.update(d),_.current.paused||u.start()})),i.useEffect((function(){return _.current.mounted=k.current=!0,function(){_.current.mounted=k.current=!1,Array.from(_.current.instances).map((function(e){return e[1].destroy()})),_.current.instances.clear()}}),[]),_.current.transitions.map((function(e){var t=e.item,n=e.slot,o=e.key;return{item:t,key:o,state:n,props:_.current.instances.get(o).getValues()}}))},t.useChain=function(e,t,n){void 0===n&&(n=1e3);var o=i.useRef();i.useEffect((function(){u.equ(e,o.current)?e.forEach((function(e){var t=e.current;return t&&t.start()})):t?e.forEach((function(e,o){var c=e.current;if(c){var i=c.controllers;if(i.length){var l=n*t[o];i.forEach((function(e){e.queue=e.queue.map((function(e){return r({},e,{delay:e.delay+l})})),e.start()}))}}})):e.reduce((function(e,t,n){var o=t.current;return e.then((function(){return o.start()}))}),Promise.resolve()),o.current=e}))},t.useSprings=W},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return c})),n.d(t,"a",(function(){return i}));const o=".block-editor-block-list__block";function r(e,t){return e.closest(o)===t.closest(o)}function c(e,t){return t.closest(o)===e}function i(e){for(;e&&e.nodeType!==e.ELEMENT_NODE;)e=e.parentNode;if(!e)return;const t=e.closest(o);return t?t.id.slice("block-".length):void 0}},,,,,function(e,t,n){"use strict";var o=n(0),r=n(6);const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"}));t.a=c},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var o=n(0),r=n(7),c=n(10),i=n.n(c),l=n(2),a=n(3),s=n(8),u=n(147);const d={};var b=Object(a.withFilters)("editor.BlockEdit")(e=>{const{attributes:t={},name:n}=e,c=Object(s.getBlockType)(n),a=Object(o.useContext)(u.b),b=Object(o.useMemo)(()=>c&&c.usesContext?Object(l.pick)(a,c.usesContext):d,[c,a]);if(!c)return null;const m=c.edit||c.save;if(c.apiVersion>1||Object(s.hasBlockSupport)(c,"lightBlockWrapper",!1))return Object(o.createElement)(m,Object(r.a)({},e,{context:b}));const p=Object(s.hasBlockSupport)(c,"className",!0)?Object(s.getBlockDefaultClassName)(n):null,f=i()(p,t.className);return Object(o.createElement)(m,Object(r.a)({},e,{context:b,className:f}))}),m=n(69);function p(e){const{name:t,isSelected:n,clientId:r}=e,c={name:t,isSelected:n,clientId:r};return Object(o.createElement)(m.a,{value:Object(o.useMemo)(()=>c,Object.values(c))},Object(o.createElement)(b,e))}},function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return s}));var o=n(7),r=n(0),c=n(4),i=n(9),l=n(13);function a(){const{hasSelectedBlock:e,hasMultiSelection:t}=Object(c.useSelect)(l.a),{clearSelectedBlock:n}=Object(c.useDispatch)(l.a);return Object(i.useRefEffect)(o=>{function r(r){(e()||t())&&r.target===o&&n()}return o.addEventListener("mousedown",r),()=>{o.removeEventListener("mousedown",r)}},[e,t,n])}function s(e){return Object(r.createElement)("div",Object(o.a)({ref:a()},e))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var o=n(0),r=n(10),c=n.n(r),i=n(3),l=n(1),a=n(109),s=n(145),u=n(26),d=n.n(u),b=n(87);function m({rootClientId:e,className:t,onFocus:n,tabIndex:r},u){return Object(o.createElement)(b.a,{position:"bottom center",rootClientId:e,__experimentalIsQuick:!0,renderToggle:({onToggle:e,disabled:d,isOpen:b,blockTitle:m,hasSingleBlockType:p})=>{let f;f=p?Object(l.sprintf)(// translators: %s: the name of the block when there is only one
6
- Object(l._x)("Add %s","directly add the only allowed block"),m):Object(l._x)("Add block","Generic label for block inserter button");const g=!p;let h=Object(o.createElement)(i.Button,{ref:u,onFocus:n,tabIndex:r,className:c()(t,"block-editor-button-block-appender"),onClick:e,"aria-haspopup":g?"true":void 0,"aria-expanded":g?b:void 0,disabled:d,label:f},!p&&Object(o.createElement)(i.VisuallyHidden,{as:"span"},f),Object(o.createElement)(a.a,{icon:s.a}));return(g||p)&&(h=Object(o.createElement)(i.Tooltip,{text:f},h)),h},isAppender:!0})}const p=Object(o.forwardRef)((e,t)=>(d()("wp.blockEditor.ButtonBlockerAppender",{alternative:"wp.blockEditor.ButtonBlockAppender"}),m(e,t)));t.b=Object(o.forwardRef)(m)},function(e,t,n){"use strict";e.exports=n(247)},function(e,t){e.exports=window.wp.wordcount},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return m})),n.d(t,"b",(function(){return f}));var o=n(0),r=n(10),c=n.n(r),i=n(4),l=n(3),a=n(1),s=n(87),u=n(13),d=n(71),b=n(155);const m=Object(o.createContext)();function p({__unstablePopoverSlot:e,__unstableContentRef:t}){const{selectBlock:n}=Object(i.useDispatch)(u.a),r=Object(o.useContext)(m),p=Object(o.useRef)(),{orientation:f,previousClientId:g,nextClientId:h,rootClientId:O,isInserterShown:v}=Object(i.useSelect)(e=>{var t;const{getBlockOrder:n,getBlockListSettings:o,getBlockInsertionPoint:r,isBlockBeingDragged:c,getPreviousBlockClientId:i,getNextBlockClientId:l}=e(u.a),a=r(),s=n(a.rootClientId);if(!s.length)return{};let d=s[a.index-1],b=s[a.index];for(;c(d);)d=i(d);for(;c(b);)b=l(b);return{previousClientId:d,nextClientId:b,orientation:(null===(t=o(a.rootClientId))||void 0===t?void 0:t.orientation)||"vertical",rootClientId:a.rootClientId,isInserterShown:null==a?void 0:a.__unstableWithInserter}},[]),j=Object(d.a)(g),k=Object(d.a)(h),_=Object(o.useMemo)(()=>{if(!j&&!k)return{};const e=j?j.getBoundingClientRect():null,t=k?k.getBoundingClientRect():null;if("vertical"===f)return{width:j?j.offsetWidth:k.offsetWidth,height:t&&e?t.top-e.bottom:0};let n=0;return e&&t&&(n=Object(a.isRTL)()?e.left-t.right:t.left-e.right),{width:n,height:j?j.offsetHeight:k.offsetHeight}},[j,k]),y=Object(o.useCallback)(()=>{if(!j&&!k)return{};const{ownerDocument:e}=j||k,t=j?j.getBoundingClientRect():null,n=k?k.getBoundingClientRect():null;return"vertical"===f?Object(a.isRTL)()?{top:t?t.bottom:n.top,left:t?t.right:n.right,right:t?t.left:n.left,bottom:n?n.top:t.bottom,ownerDocument:e}:{top:t?t.bottom:n.top,left:t?t.left:n.left,right:t?t.right:n.right,bottom:n?n.top:t.bottom,ownerDocument:e}:Object(a.isRTL)()?{top:t?t.top:n.top,left:t?t.left:n.right,right:n?n.right:t.left,bottom:t?t.bottom:n.bottom,ownerDocument:e}:{top:t?t.top:n.top,left:t?t.right:n.left,right:n?n.left:t.right,bottom:t?t.bottom:n.bottom,ownerDocument:e}},[j,k]),E=Object(b.a)(t),C=c()("block-editor-block-list__insertion-point","is-"+f),S=j&&k&&v;return Object(o.createElement)(l.Popover,{ref:E,noArrow:!0,animate:!1,getAnchorRect:y,focusOnMount:!1,className:"block-editor-block-list__insertion-point-popover",__unstableSlotName:e||null},Object(o.createElement)("div",{ref:p,tabIndex:-1,onClick:function(e){e.target===p.current&&h&&n(h,-1)},onFocus:function(e){e.target!==p.current&&(r.current=!0)},className:c()(C,{"is-with-inserter":S}),style:_},Object(o.createElement)("div",{className:"block-editor-block-list__insertion-point-indicator"}),S&&Object(o.createElement)("div",{className:c()("block-editor-block-list__insertion-point-inserter")},Object(o.createElement)(s.a,{position:"bottom center",clientId:h,rootClientId:O,__experimentalIsQuick:!0,onToggle:e=>{r.current=e},onSelectOrClose:()=>{r.current=!1}}))))}function f({children:e,__unstablePopoverSlot:t,__unstableContentRef:n}){const r=Object(i.useSelect)(e=>e(u.a).isBlockInsertionPointVisible(),[]);return Object(o.createElement)(m.Provider,{value:Object(o.useRef)(!1)},r&&Object(o.createElement)(p,{__unstablePopoverSlot:t,__unstableContentRef:n}),e)}},function(e,t){e.exports=window.wp.shortcode},,function(e,t,n){"use strict";var o=n(0),r=n(6);const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z"}));t.a=c},function(e,t,n){"use strict";var o=n(0),r=n(6);const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M19 8h-1V6h-5v2h-2V6H6v2H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-8c0-1.1-.9-2-2-2zm.5 10c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-8c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v8z"}));t.a=c},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var o=n(0);const r=Object(o.createContext)({});function c({value:e,children:t}){const n=Object(o.useContext)(r),c=Object(o.useMemo)(()=>({...n,...e}),[n,e]);return Object(o.createElement)(r.Provider,{value:c,children:t})}t.b=r},function(e,t,n){"use strict";var o=n(0),r=n(3),c=n(158);t.a=function({children:e}){const t=Object(r.__unstableUseCompositeState)({shift:!0,wrap:"horizontal"});return Object(o.createElement)(c.a.Provider,{value:t},e)}},function(e,t,n){"use strict";var o=n(0),r=n(1),c=n(9),i=n(8),l=n(41),a=n(4),s=n(87),u=n(13);t.a=Object(c.compose)(Object(a.withSelect)((e,t)=>{const{getBlockCount:n,getBlockName:o,isBlockValid:r,getSettings:c,getTemplateLock:l}=e(u.a),a=!n(t.rootClientId),s=o(t.lastBlockClientId)===Object(i.getDefaultBlockName)(),d=r(t.lastBlockClientId),{bodyPlaceholder:b}=c();return{isVisible:a||!s||!d,showPrompt:a,isLocked:!!l(t.rootClientId),placeholder:b}}),Object(a.withDispatch)((e,t)=>{const{insertDefaultBlock:n,startTyping:o}=e(u.a);return{onAppend(){const{rootClientId:e}=t;n(void 0,e),o()}}}))((function({isLocked:e,isVisible:t,onAppend:n,showPrompt:c,placeholder:i,rootClientId:a}){if(e||!t)return null;const u=Object(l.decodeEntities)(i)||Object(r.__)("Type / to choose a block");return Object(o.createElement)("div",{"data-root-client-id":a||"",className:"block-editor-default-block-appender"},Object(o.createElement)("p",{tabIndex:"0",contentEditable:!0,suppressContentEditableWarning:!0,role:"button","aria-label":Object(r.__)("Add block"),className:"wp-block block-editor-default-block-appender__content",onFocus:n},c?u:"\ufeff"),Object(o.createElement)(s.a,{rootClientId:a,position:"bottom right",isAppender:!0,__experimentalIsQuick:!0}))}))},,,function(e,t,n){"use strict";var o=n(0),r=n(10),c=n.n(r),i=n(3),l=n(1),a=n(6),s=Object(o.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(a.Path,{d:"M11 13h2v-2h-2v2zm-6 0h2v-2H5v2zm12-2v2h2v-2h-2z"}));t.a=function({className:e,actions:t,children:n,secondaryActions:r}){return Object(o.createElement)("div",{className:c()(e,"block-editor-warning")},Object(o.createElement)("div",{className:"block-editor-warning__contents"},Object(o.createElement)("p",{className:"block-editor-warning__message"},n),(o.Children.count(t)>0||r)&&Object(o.createElement)("div",{className:"block-editor-warning__actions"},o.Children.count(t)>0&&o.Children.map(t,(e,t)=>Object(o.createElement)("span",{key:t,className:"block-editor-warning__action"},e)),r&&Object(o.createElement)(i.DropdownMenu,{className:"block-editor-warning__secondary",icon:s,label:Object(l.__)("More options"),popoverProps:{position:"bottom left",className:"block-editor-warning__dropdown"},noIcons:!0},()=>Object(o.createElement)(i.MenuGroup,null,r.map((e,t)=>Object(o.createElement)(i.MenuItem,{onClick:e.onClick,key:t},e.title)))))))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n(4),r=n(69),c=n(13);function i(){const{isSelected:e,clientId:t,name:n}=Object(r.b)(),i=Object(o.useSelect)(o=>{if(e)return;const{getBlockName:r,isFirstMultiSelectedBlock:i,getMultiSelectedBlockClientIds:l}=o(c.a);return!!i(t)&&l().every(e=>r(e)===n)},[t,e,n]);return e||i}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var o=n(0);const r=Object(o.createContext)();function c({children:e}){const[t,n]=Object(o.useState)();return Object(o.createElement)(r.Provider,{value:t},Object(o.createElement)("div",{ref:n}),e)}c.context=r},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var o=n(9);function r(e){return Object(o.useRefEffect)(t=>{if(e)return t.addEventListener("wheel",n),()=>{t.removeEventListener("wheel",n)};function n(t){const{deltaX:n,deltaY:o}=t;e.current.scrollBy(n,o)}},[e])}},function(e,t,n){"use strict";var o=n(2),r=n(4),c=n(8),i=n(1),l=n(31),a=n(0),s=n(13);t.a=function({rootClientId:e="",insertionIndex:t,clientId:n,isAppender:u,onSelect:d,shouldFocusBlock:b=!0}){const{getSelectedBlock:m}=Object(r.useSelect)(s.a),{destinationRootClientId:p,destinationIndex:f}=Object(r.useSelect)(o=>{const{getSelectedBlockClientId:r,getBlockRootClientId:c,getBlockIndex:i,getBlockOrder:l}=o(s.a),a=r();let d,b=e;return void 0!==t?d=t:n?d=i(n,b):!u&&a?(b=c(a),d=i(a,b)+1):d=l(b).length,{destinationRootClientId:b,destinationIndex:d}},[e,t,n,u]),{replaceBlocks:g,insertBlocks:h,showInsertionPoint:O,hideInsertionPoint:v}=Object(r.useDispatch)(s.a),j=Object(a.useCallback)((e,t,n=!1)=>{const r=m();!u&&r&&Object(c.isUnmodifiedDefaultBlock)(r)?g(r.clientId,e,null,b||n?0:null,t):h(e,f,p,!0,b||n?0:null,t);const a=Object(i.sprintf)(// translators: %d: the name of the block that has been added
7
- Object(i._n)("%d block added.","%d blocks added.",Object(o.castArray)(e).length),Object(o.castArray)(e).length);Object(l.speak)(a),d&&d()},[u,m,g,h,p,f,d,b]),k=Object(a.useCallback)(e=>{e?O(p,f):v()},[O,v,p,f]);return[p,j,k]}},function(e,t,n){"use strict";var o=n(2),r=n(0),c=n(8),i=n(4),l=n(1),a=n(29),s=n(13);t.a=(e,t)=>{const{patternCategories:n,patterns:u}=Object(i.useSelect)(e=>{const{__experimentalGetAllowedPatterns:n,getSettings:o}=e(s.a);return{patterns:n(t),patternCategories:o().__experimentalBlockPatternCategories}},[t]),{createSuccessNotice:d}=Object(i.useDispatch)(a.store);return[u,n,Object(r.useCallback)((t,n)=>{e(Object(o.map)(n,e=>Object(c.cloneBlock)(e)),t.name),d(Object(l.sprintf)(
8
  /* translators: %s: block pattern title. */
9
- Object(l.__)('Block pattern "%s" inserted.'),t.title),{type:"snackbar"})},[])]}},function(e,t,n){"use strict";var o=n(0);const r=Object(o.createContext)();t.a=r},,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return I}));var o=n(0),r=n(10),c=n.n(r),i=n(2),l=n(8),a=n(3),s=n(4),u=n(9),d=n(22),b=n(135),m=n(1),p=n(152),f=n(338);function g({title:e,rawContent:t,renderedContent:n,action:r,actionText:c,className:i}){return Object(o.createElement)("div",{className:i},Object(o.createElement)("div",{className:"block-editor-block-compare__content"},Object(o.createElement)("h2",{className:"block-editor-block-compare__heading"},e),Object(o.createElement)("div",{className:"block-editor-block-compare__html"},t),Object(o.createElement)("div",{className:"block-editor-block-compare__preview edit-post-visual-editor"},Object(o.createElement)(o.RawHTML,null,Object(d.safeHTML)(n)))),Object(o.createElement)("div",{className:"block-editor-block-compare__action"},Object(o.createElement)(a.Button,{variant:"secondary",tabIndex:"0",onClick:r},c)))}var h=function({block:e,onKeep:t,onConvert:n,convertor:r,convertButtonText:a}){const s=(u=r(e),Object(i.castArray)(u).map(e=>Object(l.getSaveContent)(e.name,e.attributes,e.innerBlocks)).join(""));var u;const d=(b=e.originalContent,p=s,Object(f.diffChars)(b,p).map((e,t)=>{const n=c()({"block-editor-block-compare__added":e.added,"block-editor-block-compare__removed":e.removed});return Object(o.createElement)("span",{key:t,className:n},e.value)}));var b,p;return Object(o.createElement)("div",{className:"block-editor-block-compare__wrapper"},Object(o.createElement)(g,{title:Object(m.__)("Current"),className:"block-editor-block-compare__current",action:t,actionText:Object(m.__)("Convert to HTML"),rawContent:e.originalContent,renderedContent:e.originalContent}),Object(o.createElement)(g,{title:Object(m.__)("After Conversion"),className:"block-editor-block-compare__converted",action:n,actionText:a,rawContent:d,renderedContent:s}))},O=n(13);const v=e=>Object(l.rawHandler)({HTML:e.originalContent});var j=Object(u.compose)([Object(s.withSelect)((e,{clientId:t})=>({block:e(O.a).getBlock(t)})),Object(s.withDispatch)((e,{block:t})=>{const{replaceBlock:n}=e(O.a);return{convertToClassic(){n(t.clientId,(e=>Object(l.createBlock)("core/freeform",{content:e.originalContent}))(t))},convertToHTML(){n(t.clientId,(e=>Object(l.createBlock)("core/html",{content:e.originalContent}))(t))},convertToBlocks(){n(t.clientId,v(t))},attemptBlockRecovery(){n(t.clientId,(({name:e,attributes:t,innerBlocks:n})=>Object(l.createBlock)(e,t,n))(t))}}})])((function({convertToHTML:e,convertToBlocks:t,convertToClassic:n,attemptBlockRecovery:r,block:c}){const i=!!Object(l.getBlockType)("core/html"),[s,u]=Object(o.useState)(!1),d=Object(o.useCallback)(()=>u(!0),[]),b=Object(o.useCallback)(()=>u(!1),[]),f=Object(o.useMemo)(()=>[{
10
  // translators: Button to fix block content
11
  title:Object(m._x)("Resolve","imperative verb"),onClick:d},i&&{title:Object(m.__)("Convert to HTML"),onClick:e},{title:Object(m.__)("Convert to Classic Block"),onClick:n}].filter(Boolean),[d,e,n]);return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(p.a,{actions:[Object(o.createElement)(a.Button,{key:"recover",onClick:r,variant:"primary"},Object(m.__)("Attempt Block Recovery"))],secondaryActions:f},Object(m.__)("This block contains unexpected or invalid content.")),s&&Object(o.createElement)(a.Modal,{title:// translators: Dialog title to fix block content
12
- Object(m.__)("Resolve Block"),onRequestClose:b,className:"block-editor-block-compare"},Object(o.createElement)(h,{block:c,onKeep:e,onConvert:t,convertor:v,convertButtonText:Object(m.__)("Convert to Blocks")})))}));const k=Object(o.createElement)(p.a,{className:"block-editor-block-list__block-crash-warning"},Object(m.__)("This block has encountered an error and cannot be previewed."));var _=()=>k;class y extends o.Component{constructor(){super(...arguments),this.state={hasError:!1}}componentDidCatch(){this.setState({hasError:!0})}render(){return this.state.hasError?this.props.fallback:this.props.children}}var E=y,C=n(113),S=n.n(C),w=function({clientId:e}){const[t,n]=Object(o.useState)(""),r=Object(s.useSelect)(t=>t(O.a).getBlock(e),[e]),{updateBlock:c}=Object(s.useDispatch)(O.a);return Object(o.useEffect)(()=>{n(Object(l.getBlockContent)(r))},[r]),Object(o.createElement)(S.a,{className:"block-editor-block-list__block-html-textarea",value:t,onBlur:()=>{const o=Object(l.getBlockType)(r.name),i=Object(l.getBlockAttributes)(o,t,r.attributes),a=t||Object(l.getSaveContent)(o,i),s=!t||Object(l.isValidBlockContent)(o,i,a);c(e,{attributes:i,originalContent:a,isValid:s}),t||n({content:a})},onChange:e=>n(e.target.value)})},B=n(201);const I=Object(o.createContext)();function x({children:e,isHtml:t,...n}){return Object(o.createElement)("div",Object(B.a)(n,{__unstableIsHtml:t}),e)}const T=Object(s.withSelect)((e,{clientId:t,rootClientId:n})=>{const{isBlockSelected:o,getBlockMode:r,isSelectionEnabled:c,getTemplateLock:i,__unstableGetBlockWithoutInnerBlocks:l}=e(O.a),a=l(t),s=o(t),u=i(n),{name:d,attributes:b,isValid:m}=a||{};return{mode:r(t),isSelectionEnabled:c(),isLocked:!!u,block:a,name:d,attributes:b,isValid:m,isSelected:s}}),N=Object(s.withDispatch)((e,t,{select:n})=>{const{updateBlockAttributes:o,insertBlocks:r,mergeBlocks:c,replaceBlocks:i,toggleSelection:a,__unstableMarkLastChangeAsPersistent:s}=e(O.a);return{setAttributes(e){const{getMultiSelectedBlockClientIds:r}=n(O.a),c=r(),{clientId:i}=t,l=c.length?c:[i];o(l,e)},onInsertBlocks(e,n){const{rootClientId:o}=t;r(e,n,o)},onInsertBlocksAfter(e){const{clientId:o,rootClientId:c}=t,{getBlockIndex:i}=n(O.a),l=i(o,c);r(e,l+1,c)},onMerge(e){const{clientId:o}=t,{getPreviousBlockClientId:r,getNextBlockClientId:i}=n(O.a);if(e){const e=i(o);e&&c(o,e)}else{const e=r(o);e&&c(e,o)}},onReplace(e,n,o){e.length&&!Object(l.isUnmodifiedDefaultBlock)(e[e.length-1])&&s(),i([t.clientId],e,n,o)},toggleSelection(e){a(e)}}});t.b=Object(u.compose)(u.pure,T,N,Object(u.ifCondition)(({block:e})=>!!e),Object(a.withFilters)("editor.BlockListBlock"))((function({mode:e,isLocked:t,clientId:n,isSelected:r,isSelectionEnabled:a,className:u,name:m,isValid:p,attributes:f,wrapperProps:g,setAttributes:h,onReplace:v,onInsertBlocksAfter:k,onMerge:y,toggleSelection:C}){const{removeBlock:S}=Object(s.useDispatch)(O.a),B=Object(o.useCallback)(()=>S(n),[n]);let T=Object(o.createElement)(b.a,{name:m,isSelected:r,attributes:f,setAttributes:h,insertBlocksAfter:t?void 0:k,onReplace:t?void 0:v,onRemove:t?void 0:B,mergeBlocks:t?void 0:y,clientId:n,isSelectionEnabled:a,toggleSelection:C});const N=Object(l.getBlockType)(m),L=N.apiVersion>1||Object(l.hasBlockSupport)(N,"lightBlockWrapper",!1);N.getEditWrapperProps&&(g=function(e,t){const n={...e,...t};return e&&t&&e.className&&t.className&&(n.className=c()(e.className,t.className)),e&&t&&e.style&&t.style&&(n.style={...e.style,...t.style}),n}(g,N.getEditWrapperProps(f)));const P=g&&!!g["data-align"];let R;if(P&&(T=Object(o.createElement)("div",{className:"wp-block","data-align":g["data-align"]},T)),p)R="html"===e?Object(o.createElement)(o.Fragment,null,Object(o.createElement)("div",{style:{display:"none"}},T),Object(o.createElement)(x,{isHtml:!0},Object(o.createElement)(w,{clientId:n}))):L?T:Object(o.createElement)(x,g,T);else{const e=Object(l.getSaveContent)(N,f);R=Object(o.createElement)(x,{className:"has-warning"},Object(o.createElement)(j,{clientId:n}),Object(o.createElement)(o.RawHTML,null,Object(d.safeHTML)(e)))}const A={clientId:n,className:u,wrapperProps:Object(i.omit)(g,["data-align"]),isAligned:P},M=Object(o.useMemo)(()=>A,Object.values(A));return Object(o.createElement)(I.Provider,{value:M},Object(o.createElement)(E,{fallback:Object(o.createElement)(x,{className:"has-warning"},Object(o.createElement)(_,null))},R))}))},function(e,t,n){"use strict";var o=n(0),r=n(8),c=n(3),i=n(4),l=n(218),a=n(22),s=n(13);t.a=({children:e,clientIds:t,cloneClassname:n,onDragStart:u,onDragEnd:d})=>{const{srcRootClientId:b,isDraggable:m,icon:p}=Object(i.useSelect)(e=>{var n;const{getBlockRootClientId:o,getTemplateLock:c,getBlockName:i}=e(s.a),l=o(t[0]),a=l?c(l):null,u=i(t[0]);return{srcRootClientId:l,isDraggable:"all"!==a,icon:null===(n=Object(r.getBlockType)(u))||void 0===n?void 0:n.icon}},[t]),f=Object(o.useRef)(!1),[g,h,O]=function(){const e=Object(o.useRef)(null),t=Object(o.useRef)(null),n=Object(o.useRef)(null),r=Object(o.useRef)(null);return Object(o.useEffect)(()=>()=>{r.current&&(clearInterval(r.current),r.current=null)},[]),[Object(o.useCallback)(o=>{e.current=o.clientY,n.current=Object(a.getScrollContainer)(o.target),r.current=setInterval(()=>{if(n.current&&t.current){const e=n.current.scrollTop+t.current;n.current.scroll({top:e})}},25)},[]),Object(o.useCallback)(o=>{if(!n.current)return;const r=n.current.offsetHeight,c=e.current-n.current.offsetTop,i=o.clientY-n.current.offsetTop;if(o.clientY>c){const e=Math.max(r-c-50,0),n=Math.max(i-c-50,0)/e;t.current=25*n}else if(o.clientY<c){const e=Math.max(c-50,0),n=Math.max(c-i-50,0)/e;t.current=-25*n}else t.current=0},[]),()=>{e.current=null,n.current=null,r.current&&(clearInterval(r.current),r.current=null)}]}(),{startDraggingBlocks:v,stopDraggingBlocks:j}=Object(i.useDispatch)(s.a);if(Object(o.useEffect)(()=>()=>{f.current&&j()},[]),!m)return e({isDraggable:!1});const k={type:"block",srcClientIds:t,srcRootClientId:b};return Object(o.createElement)(c.Draggable,{cloneClassname:n,__experimentalTransferDataType:"wp-blocks",transferData:k,onDragStart:e=>{v(t),f.current=!0,g(e),u&&u()},onDragOver:h,onDragEnd:()=>{j(),f.current=!1,O(),d&&d()},__experimentalDragComponent:Object(o.createElement)(l.a,{count:t.length,icon:p})},({onDraggableStart:t,onDraggableEnd:n})=>e({draggable:!0,onDragStart:t,onDragEnd:n}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return c}));var o=n(0);const r=Object(o.createContext)();function c({children:e}){const t=Object(o.useMemo)(()=>({refs:new Map,callbacks:new Map}),[]);return Object(o.createElement)(r.Provider,{value:t},e)}},function(e,t,n){"use strict";n.d(t,"b",(function(){return k})),n.d(t,"a",(function(){return _}));var o=n(7),r=n(0),c=n(10),i=n.n(c),l=n(2),a=n(8),s=n(3),u=n(9),d=n(4),b=n(1),m=n(278),p=n(279),f=n(374),g=n(193);var h=n(13);const O=(e,t)=>"up"===e?"horizontal"===t?Object(b.isRTL)()?m.a:p.a:f.a:"down"===e?"horizontal"===t?Object(b.isRTL)()?p.a:m.a:g.a:null,v=(e,t)=>"up"===e?"horizontal"===t?Object(b.isRTL)()?Object(b.__)("Move right"):Object(b.__)("Move left"):Object(b.__)("Move up"):"down"===e?"horizontal"===t?Object(b.isRTL)()?Object(b.__)("Move left"):Object(b.__)("Move right"):Object(b.__)("Move down"):null,j=Object(r.forwardRef)(({clientIds:e,direction:t,orientation:n,...c},m)=>{const p=Object(u.useInstanceId)(j),f=Object(l.castArray)(e).length,{blockType:g,isDisabled:k,rootClientId:_,isFirst:y,isLast:E,firstIndex:C,orientation:S="vertical"}=Object(d.useSelect)(o=>{const{getBlockIndex:r,getBlockRootClientId:c,getBlockOrder:i,getBlock:s,getBlockListSettings:u}=o(h.a),d=Object(l.castArray)(e),b=Object(l.first)(d),m=c(b),p=r(b,m),f=r(Object(l.last)(d),m),g=i(m),O=s(b),v=0===p,j=f===g.length-1,{orientation:k}=u(m)||{};return{blockType:O?Object(a.getBlockType)(O.name):null,isDisabled:"up"===t?v:j,rootClientId:m,firstIndex:p,isFirst:v,isLast:j,orientation:n||k}},[e,t]),{moveBlocksDown:w,moveBlocksUp:B}=Object(d.useDispatch)(h.a),I="up"===t?B:w,x="block-editor-block-mover-button__description-"+p;return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(s.Button,Object(o.a)({ref:m,className:i()("block-editor-block-mover-button",`is-${t}-button`),icon:O(t,S),label:v(t,S),"aria-describedby":x},c,{onClick:k?null:t=>{I(e,_),c.onClick&&c.onClick(t)},"aria-disabled":k})),Object(r.createElement)("span",{id:x,className:"block-editor-block-mover-button__description"},function(e,t,n,o,r,c,i){const l=n+1,a=e=>"up"===e?"horizontal"===i?Object(b.isRTL)()?"right":"left":"up":"down"===e?"horizontal"===i?Object(b.isRTL)()?"left":"right":"down":null;if(e>1)return function(e,t,n,o,r){const c=t+1;return r<0&&n?Object(b.__)("Blocks cannot be moved up as they are already at the top"):r>0&&o?Object(b.__)("Blocks cannot be moved down as they are already at the bottom"):r<0&&!n?Object(b.sprintf)(// translators: 1: Number of selected blocks, 2: Position of selected blocks
13
  Object(b._n)("Move %1$d block from position %2$d up by one place","Move %1$d blocks from position %2$d up by one place",e),e,c):r>0&&!o?Object(b.sprintf)(// translators: 1: Number of selected blocks, 2: Position of selected blocks
14
  Object(b._n)("Move %1$d block from position %2$d down by one place","Move %1$d blocks from position %2$d down by one place",e),e,c):void 0}(e,n,o,r,c);if(o&&r)return Object(b.sprintf)(// translators: %s: Type of block (i.e. Text, Image etc)
15
  Object(b.__)("Block %s is the only block, and cannot be moved"),t);if(c>0&&!r){const e=a("down");if("down"===e)return Object(b.sprintf)(// translators: 1: Type of block (i.e. Text, Image etc), 2: Position of selected block, 3: New position
@@ -24,58 +24,58 @@ Object(b.__)("Move %1$s block from position %2$d left to position %3$d"),t,l,l-1
24
  Object(b.__)("Move %1$s block from position %2$d right to position %3$d"),t,l,l-1)}if(c<0&&o){const e=a("up");if("up"===e)return Object(b.sprintf)(// translators: 1: Type of block (i.e. Text, Image etc)
25
  Object(b.__)("Block %1$s is at the beginning of the content and can’t be moved up"),t);if("left"===e)return Object(b.sprintf)(// translators: 1: Type of block (i.e. Text, Image etc)
26
  Object(b.__)("Block %1$s is at the beginning of the content and can’t be moved left"),t);if("right"===e)return Object(b.sprintf)(// translators: 1: Type of block (i.e. Text, Image etc)
27
- Object(b.__)("Block %1$s is at the beginning of the content and can’t be moved right"),t)}}(f,g&&g.title,C,y,E,"up"===t?-1:1,S)))}),k=Object(r.forwardRef)((e,t)=>Object(r.createElement)(j,Object(o.a)({direction:"up",ref:t},e))),_=Object(r.forwardRef)((e,t)=>Object(r.createElement)(j,Object(o.a)({direction:"down",ref:t},e)))},,,function(e,t,n){"use strict";var o=n(170);function r(){}function c(){}c.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,c,i){if(i!==o){var l=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 l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:c,resetWarningCache:r};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},,,,,,,function(e,t,n){"use strict";n.d(t,"c",(function(){return b})),n.d(t,"b",(function(){return m}));var o=n(0),r=n(8),c=n(22),i=n(4),l=n(1),a=n(29),s=n(9),u=n(33),d=n(13);function b(){const{getBlockName:e}=Object(i.useSelect)(d.a),{getBlockType:t}=Object(i.useSelect)(r.store),{createSuccessNotice:n}=Object(i.useDispatch)(a.store);return Object(o.useCallback)((o,r)=>{let c="";if(1===r.length){const n=r[0],{title:i}=t(e(n));c="copy"===o?Object(l.sprintf)(// Translators: Name of the block being copied, e.g. "Paragraph".
28
  Object(l.__)('Copied "%s" to clipboard.'),i):Object(l.sprintf)(// Translators: Name of the block being cut, e.g. "Paragraph".
29
  Object(l.__)('Moved "%s" to clipboard.'),i)}else c="copy"===o?Object(l.sprintf)(// Translators: %d: Number of blocks being copied.
30
  Object(l._n)("Copied %d block to clipboard.","Copied %d blocks to clipboard.",r.length),r.length):Object(l.sprintf)(// Translators: %d: Number of blocks being cut.
31
- Object(l._n)("Moved %d block to clipboard.","Moved %d blocks to clipboard.",r.length),r.length);n(c,{type:"snackbar"})},[])}function m(){const{getBlocksByClientId:e,getSelectedBlockClientIds:t,hasMultiSelection:n,getSettings:o}=Object(i.useSelect)(d.a),{flashBlock:l,removeBlocks:a,replaceBlocks:m}=Object(i.useDispatch)(d.a),p=b();return Object(s.useRefEffect)(i=>{function s(s){const d=t();if(0!==d.length){if(!n()){const{target:e}=s,{ownerDocument:t}=e;if("copy"===s.type||"cut"===s.type?Object(c.documentHasUncollapsedSelection)(t):Object(c.documentHasSelection)(t))return}if(i.contains(s.target.ownerDocument.activeElement)){if(s.preventDefault(),"copy"===s.type||"cut"===s.type){1===d.length&&l(d[0]),p(s.type,d);const t=e(d),n=Object(r.serialize)(t);s.clipboardData.setData("text/plain",n),s.clipboardData.setData("text/html",n)}if("cut"===s.type)a(d);else if("paste"===s.type){const{__experimentalCanUserUseUnfilteredHTML:e}=o(),{plainText:t,html:n}=function({clipboardData:e}){let t="",n="";try{t=e.getData("text/plain"),n=e.getData("text/html")}catch(t){try{n=e.getData("Text")}catch(e){return}}const o=Object(c.getFilesFromDataTransfer)(e).filter(({type:e})=>/^image\/(?:jpe?g|png|gif)$/.test(e));return o.length&&!n&&(n=o.map(e=>`<img src="${Object(u.createBlobURL)(e)}">`).join(""),t=""),{html:n,plainText:t}}(s),i=Object(r.pasteHandler)({HTML:n,plainText:t,mode:"BLOCKS",canUserUseUnfilteredHTML:e});m(d,i,i.length-1,-1)}}}}return i.ownerDocument.addEventListener("copy",s),i.ownerDocument.addEventListener("cut",s),i.ownerDocument.addEventListener("paste",s),()=>{i.ownerDocument.removeEventListener("copy",s),i.ownerDocument.removeEventListener("cut",s),i.ownerDocument.removeEventListener("paste",s)}},[])}t.a=function({children:e}){return Object(o.createElement)("div",{ref:m()},e)}},,,,,,,,,function(e,t){e.exports=window.wp.tokenList},function(e,t,n){"use strict";n.d(t,"a",(function(){return b})),n.d(t,"b",(function(){return m}));var o=n(2);const r=e=>e.name||"",c=e=>e.title,i=e=>e.description||"",l=e=>e.keywords||[],a=e=>e.category,s=()=>null;function u(e=""){return(e=(e=Object(o.deburr)(e)).replace(/^\//,"")).toLowerCase()}const d=(e="")=>Object(o.words)(u(e)),b=(e,t,n,r)=>0===d(r).length?e:m(e,r,{getCategory:e=>{var n;return null===(n=Object(o.find)(t,{slug:e.category}))||void 0===n?void 0:n.title},getCollection:e=>{var t;return null===(t=n[e.name.split("/")[0]])||void 0===t?void 0:t.title}}),m=(e=[],t="",n={})=>{if(0===d(t).length)return e;const o=e.map(e=>[e,p(e,t,n)]).filter(([,e])=>e>0);return o.sort(([,e],[,t])=>t-e),o.map(([e])=>e)};function p(e,t,n={}){const{getName:b=r,getTitle:m=c,getDescription:p=i,getKeywords:f=l,getCategory:g=a,getCollection:h=s}=n,O=b(e),v=m(e),j=p(e),k=f(e),_=g(e),y=h(e),E=u(t),C=u(v);let S=0;if(E===C)S+=30;else if(C.startsWith(E))S+=20;else{const e=[O,v,j,...k,_,y].join(" ");0===(w=Object(o.words)(E),B=e,Object(o.differenceWith)(w,d(B),(e,t)=>t.includes(e))).length&&(S+=10)}var w,B;return 0!==S&&O.startsWith("core/")&&S++,S}},function(e,t,n){"use strict";var o=n(0),r=n(1),c=n(109),i=n(146);t.a=function(){return Object(o.createElement)("div",{className:"block-editor-inserter__no-results"},Object(o.createElement)(c.a,{className:"block-editor-inserter__no-results-icon",icon:i.a}),Object(o.createElement)("p",null,Object(r.__)("No results found.")))}},,,,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 o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}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},function(e,t,n){"use strict";var o=n(0),r=n(6);const c=Object(o.createElement)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)(r.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"}));t.a=c},function(e,t,n){"use strict";var o=n(0),r=n(6);const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"}));t.a=c},,,,,,,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return w}));var o=n(10),r=n.n(o),c=n(0),i=n(1),l=n(8),a=n(9),s=n(4),u=(n(66),n(217)),d=n(163),b=n(326),m=n(332),p=n(69),f=n(334),g=n(335),h=n(336),O=n(337),v=n(328),j=n(330),k=n(331),_=n(327),y=n(71),E=n(329),C=n(333),S=n(13);function w(t={},{__unstableIsHtml:n}={}){const{clientId:o,className:w,wrapperProps:B={},isAligned:I}=Object(c.useContext)(d.a),{index:x,mode:T,name:N,blockTitle:L,isPartOfSelection:P,adjustScrolling:R,enableAnimation:A,lightBlockWrapper:M}=Object(s.useSelect)(e=>{const{getBlockRootClientId:t,getBlockIndex:n,getBlockMode:r,getBlockName:c,isTyping:i,getGlobalBlockCount:a,isBlockSelected:s,isBlockMultiSelected:u,isAncestorMultiSelected:d,isFirstMultiSelectedBlock:b}=e(S.a),m=s(o),p=u(o)||d(o),f=c(o),g=t(o),h=Object(l.getBlockType)(f);return{index:n(o,g),mode:r(o),name:f,blockTitle:h.title,isPartOfSelection:m||p,adjustScrolling:m||b(o),enableAnimation:!i()&&a()<=200,lightBlockWrapper:h.apiVersion>1||Object(l.hasBlockSupport)(h,"lightBlockWrapper",!1)}},[o]),D=Object(i.sprintf)(Object(i.__)("Block: %s"),L),F="html"!==T||n?"":"-visual",V=Object(a.useMergeRefs)([t.ref,Object(b.a)(o),Object(_.a)(o),Object(y.c)(o),Object(v.a)(o),Object(E.a)(o),Object(j.a)(o),Object(k.a)(o),Object(m.a)(),Object(C.a)(),Object(u.a)({isSelected:P,adjustScrolling:R,enableAnimation:A,triggerAnimationOnChange:x})]),H=Object(p.b)();return M||o!==H.clientId||void 0!==e&&e.env,{...B,...t,ref:V,id:`block-${o}${F}`,tabIndex:0,role:"group","aria-label":D,"data-block":o,"data-type":N,"data-title":L,className:r()(r()("block-editor-block-list__block",{"wp-block":!I}),w,t.className,B.className,Object(f.a)(o),Object(g.a)(o),Object(h.a)(o),Object(O.a)(o)),style:{...B.style,...t.style}}}w.save=l.__unstableGetBlockProps}).call(this,n(89))},function(e,t,n){"use strict";var o=n(3);const{Fill:r,Slot:c}=Object(o.createSlotFill)("__unstableInserterMenuExtension");r.Slot=c,t.a=r},function(e,t,n){"use strict";var o=n(7),r=n(0),c=n(3),i=n(26),l=n.n(i),a=n(22),s=n(25);function u(e){return Array.from(e.querySelectorAll("[data-toolbar-item]"))}t.a=function({children:e,focusOnMount:t,__experimentalInitialIndex:n,__experimentalOnIndexChange:i,...d}){const b=Object(r.useRef)(),m=function(e){const[t,n]=Object(r.useState)(!0),o=Object(r.useCallback)(()=>{const t=!a.focus.tabbable.find(e.current).some(e=>!("toolbarItem"in e.dataset));t||l()("Using custom components as toolbar controls",{since:"5.6",alternative:"ToolbarItem, ToolbarButton or ToolbarDropdownMenu components",link:"https://developer.wordpress.org/block-editor/components/toolbar-button/#inside-blockcontrols"}),n(t)},[]);return Object(r.useLayoutEffect)(()=>{const t=new window.MutationObserver(o);return t.observe(e.current,{childList:!0,subtree:!0}),()=>t.disconnect()},[t]),t}(b);return function(e,t,n,o,c){const[i]=Object(r.useState)(t),[l]=Object(r.useState)(o),d=Object(r.useCallback)(()=>{!function(e){const[t]=a.focus.tabbable.find(e);t&&t.focus()}(e.current)},[]);Object(s.useShortcut)("core/block-editor/focus-toolbar",d,{bindGlobal:!0,eventName:"keydown"}),Object(r.useEffect)(()=>{i&&d()},[n,i,d]),Object(r.useEffect)(()=>{let t=0;return l&&!i&&(t=window.requestAnimationFrame(()=>{const t=u(e.current),n=l||0;var o;t[n]&&(o=e.current).contains(o.ownerDocument.activeElement)&&t[n].focus()})),()=>{if(window.cancelAnimationFrame(t),!c||!e.current)return;const n=u(e.current).findIndex(e=>0===e.tabIndex);c(n)}},[l,i])}(b,t,m,n,i),m?Object(r.createElement)(c.Toolbar,Object(o.a)({label:d["aria-label"],ref:b},d),e):Object(r.createElement)(c.NavigableMenu,Object(o.a)({orientation:"horizontal",role:"toolbar",ref:b},d),e)}},function(e,t,n){"use strict";var o=n(7),r=n(0),c=n(2),i=n(10),l=n.n(i),a=n(352),s=n(3),u=n(8),d=n(4),b=n(1),m=n(164),p=n(166),f=n(13);t.a=Object(d.withSelect)((e,{clientIds:t})=>{var n;const{getBlock:o,getBlockIndex:r,getBlockListSettings:i,getTemplateLock:l,getBlockOrder:a,getBlockRootClientId:s}=e(f.a),d=Object(c.castArray)(t),b=Object(c.first)(d),m=o(b),p=s(Object(c.first)(d)),g=r(b,p),h=0===g,O=r(Object(c.last)(d),p)===a(p).length-1;return{blockType:m?Object(u.getBlockType)(m.name):null,isLocked:"all"===l(p),rootClientId:p,firstIndex:g,isFirst:h,isLast:O,orientation:null===(n=i(p))||void 0===n?void 0:n.orientation}})((function({isFirst:e,isLast:t,clientIds:n,isLocked:c,isHidden:i,rootClientId:u,orientation:d,hideDragHandle:f}){const[g,h]=Object(r.useState)(!1),O=()=>h(!0),v=()=>h(!1);if(c||e&&t&&!u)return null;const j=Object(b.__)("Drag");return Object(r.createElement)("div",{className:l()("block-editor-block-mover",{"is-visible":g||!i,"is-horizontal":"horizontal"===d})},!f&&Object(r.createElement)(m.a,{clientIds:n,cloneClassname:"block-editor-block-mover__drag-clone"},e=>Object(r.createElement)(s.Button,Object(o.a)({icon:a.a,className:"block-editor-block-mover__drag-handle","aria-hidden":"true",label:j,tabIndex:"-1"},e))),Object(r.createElement)(s.ToolbarGroup,{className:"block-editor-block-mover__move-button-container"},Object(r.createElement)(s.ToolbarItem,{onFocus:O,onBlur:v},e=>Object(r.createElement)(p.b,Object(o.a)({clientIds:n},e))),Object(r.createElement)(s.ToolbarItem,{onFocus:O,onBlur:v},e=>Object(r.createElement)(p.a,Object(o.a)({clientIds:n},e)))))}))},function(e,t,n){"use strict";var o=n(7),r=n(0),c=n(3),i=n(234);t.a=function({clientIds:e,...t}){return Object(r.createElement)(c.ToolbarGroup,null,Object(r.createElement)(c.ToolbarItem,null,n=>Object(r.createElement)(i.a,Object(o.a)({clientIds:e,toggleProps:n},t))))}},function(e,t,n){"use strict";var o=n(3);const{Fill:r,Slot:c}=Object(o.createSlotFill)("__unstableBlockSettingsMenuFirstItem");r.Slot=c,t.a=r},,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return V}));var o=n(7),r=n(0),c=n(10),i=n.n(c),l=n(4),a=n(9),s=n(8),u=n(3),d=n(204),b=n(1),m=n(83),p=n(52),f=n(2);const{clearTimeout:g,setTimeout:h}=window;function O({ref:e,isFocused:t,debounceTimeout:n=200,onChange:o=f.noop}){const[c,i]=Object(r.useState)(!1),l=Object(r.useRef)(),a=t=>{null!=e&&e.current&&i(t),o(t)},s=()=>{const e=l.current;e&&g&&g(e)};return Object(r.useEffect)(()=>()=>s(),[]),{showMovers:c,debouncedShowMovers:e=>{e&&e.stopPropagation(),s(),c||a(!0)},debouncedHideMovers:o=>{o&&o.stopPropagation(),s(),l.current=h(()=>{(()=>{const n=(null==e?void 0:e.current)&&e.current.matches(":hover");return!t&&!n})()&&a(!1)},n)}}}function v({ref:e,debounceTimeout:t=200,onChange:n=f.noop}){const[o,c]=Object(r.useState)(!1),{showMovers:i,debouncedShowMovers:l,debouncedHideMovers:a}=O({ref:e,debounceTimeout:t,isFocused:o,onChange:n}),s=Object(r.useRef)(!1),u=()=>(null==e?void 0:e.current)&&e.current.contains(e.current.ownerDocument.activeElement);return Object(r.useEffect)(()=>{const t=e.current,n=()=>{u()&&(c(!0),l())},o=()=>{u()||(c(!1),a())};return t&&!s.current&&(t.addEventListener("focus",n,!0),t.addEventListener("blur",o,!0),s.current=!0),()=>{t&&(t.removeEventListener("focus",n),t.removeEventListener("blur",o))}},[e,s,c,l,a]),{showMovers:i,gestures:{onMouseMove:l,onMouseLeave:a}}}var j=n(13);function k(){const{selectBlock:e,toggleBlockHighlight:t}=Object(l.useDispatch)(j.a),{firstParentClientId:n,shouldHide:c,hasReducedUI:i}=Object(l.useSelect)(e=>{const{getBlockName:t,getBlockParents:n,getSelectedBlockClientId:o,getSettings:r}=e(j.a),{hasBlockSupport:c}=e(s.store),i=n(o()),l=i[i.length-1],a=t(l),u=Object(s.getBlockType)(a),d=r();return{firstParentClientId:l,shouldHide:!c(u,"__experimentalParentSelector",!0),hasReducedUI:d.hasReducedUI}},[]),a=Object(m.a)(n),d=Object(r.useRef)(),{gestures:f}=v({ref:d,onChange(e){e&&i||t(n,e)}});return c||void 0===n?null:Object(r.createElement)("div",Object(o.a)({className:"block-editor-block-parent-selector",key:n,ref:d},f),Object(r.createElement)(u.ToolbarButton,{className:"block-editor-block-parent-selector__button",onClick:()=>e(n),label:Object(b.sprintf)(
32
  /* translators: %s: Name of the block's parent. */
33
- Object(b.__)("Select %s"),a.title),showTooltip:!0,icon:Object(r.createElement)(p.a,{icon:a.icon})}))}var _=n(547),y=n(97),E=n(75);function C({blocks:e}){return Object(r.createElement)("div",{className:"block-editor-block-switcher__popover__preview__parent"},Object(r.createElement)("div",{className:"block-editor-block-switcher__popover__preview__container"},Object(r.createElement)(u.Popover,{className:"block-editor-block-switcher__preview__popover",position:"bottom right",focusOnMount:!1},Object(r.createElement)("div",{className:"block-editor-block-switcher__preview"},Object(r.createElement)("div",{className:"block-editor-block-switcher__preview-title"},Object(b.__)("Preview")),Object(r.createElement)(E.a,{viewportWidth:500,blocks:e})))))}var S=({className:e,possibleBlockTransformations:t,onSelect:n,blocks:o})=>{const[c,i]=Object(r.useState)();return Object(r.createElement)(u.MenuGroup,{label:Object(b.__)("Transform to"),className:e},c&&Object(r.createElement)(C,{blocks:Object(s.switchToBlockType)(o,c)}),t.map(e=>{const{name:t,icon:o,title:c,isDisabled:l}=e;return Object(r.createElement)(u.MenuItem,{key:t,className:Object(s.getBlockMenuDefaultClassName)(t),onClick:e=>{e.preventDefault(),n(t)},disabled:l,onMouseLeave:()=>i(null),onMouseEnter:()=>i(t)},Object(r.createElement)(p.a,{icon:o,showColors:!0}),c)}))},w=n(236);function B({hoveredBlock:e,onSwitch:t}){const{name:n,clientId:o}=e,[c,i]=Object(r.useState)(),a=Object(l.useSelect)(e=>e(s.store).getBlockType(n),[n]);return Object(r.createElement)(u.MenuGroup,{label:Object(b.__)("Styles"),className:"block-editor-block-switcher__styles__menugroup"},c&&Object(r.createElement)(C,{blocks:a.example?Object(s.getBlockFromExample)(a.name,{attributes:{...a.example.attributes,className:c},innerBlocks:a.example.innerBlocks}):Object(s.cloneBlock)(e,{className:c})}),Object(r.createElement)(w.a,{clientId:o,onSwitch:t,onHoverClassName:i,itemRole:"menuitem"}))}var I=n(278);const x=(e,t,n=new Set)=>{const{clientId:o,name:r,innerBlocks:c=[]}=e;if(!n.has(o)){if(r===t)return e;for(const e of c){const o=x(e,t,n);if(o)return o}}},T=(e,t)=>{const n=((e,t)=>{const n=Object(s.__experimentalGetBlockAttributesNamesByRole)(e,"content");return null!=n&&n.length?n.reduce((e,n)=>(t[n]&&(e[n]=t[n]),e),{}):t})(t.name,t.attributes);e.attributes={...e.attributes,...n}};function N({patterns:e,onSelect:t}){return Object(r.createElement)("div",{className:"block-editor-block-switcher__popover__preview__parent"},Object(r.createElement)("div",{className:"block-editor-block-switcher__popover__preview__container"},Object(r.createElement)(u.Popover,{className:"block-editor-block-switcher__preview__popover",position:"bottom right"},Object(r.createElement)("div",{className:"block-editor-block-switcher__preview"},Object(r.createElement)("div",{className:"block-editor-block-switcher__preview-title"},Object(b.__)("Preview")),Object(r.createElement)(L,{patterns:e,onSelect:t})))))}function L({patterns:e,onSelect:t}){const n=Object(u.__unstableUseCompositeState)();return Object(r.createElement)(u.__unstableComposite,Object(o.a)({},n,{role:"listbox",className:"block-editor-block-switcher__preview-patterns-container","aria-label":Object(b.__)("Patterns list")}),e.map(e=>Object(r.createElement)(P,{key:e.name,pattern:e,onSelect:t,composite:n})))}function P({pattern:e,onSelect:t,composite:n}){const c="block-editor-block-switcher__preview-patterns-container",i=Object(a.useInstanceId)(P,c+"-list__item-description");return Object(r.createElement)("div",{className:c+"-list__list-item","aria-label":e.title,"aria-describedby":e.description?i:void 0},Object(r.createElement)(u.__unstableCompositeItem,Object(o.a)({role:"option",as:"div"},n,{className:c+"-list__item",onClick:()=>t(e.transformedBlocks)}),Object(r.createElement)(E.a,{blocks:e.transformedBlocks,viewportWidth:e.viewportWidth||500}),Object(r.createElement)("div",{className:c+"-list__item-title"},e.title)),!!e.description&&Object(r.createElement)(u.VisuallyHidden,{id:i},e.description))}var R=function({blocks:e,patterns:t,onSelect:n}){const[o,c]=Object(r.useState)(!1),i=((e,t)=>Object(r.useMemo)(()=>e.reduce((e,n)=>{const o=((e,t)=>{const n=t.map(e=>Object(s.cloneBlock)(e)),o=new Set;for(const t of e){let e=!1;for(const r of n){const n=x(r,t.name,o);if(n){e=!0,o.add(n.clientId),T(n,t);break}}if(!e)return}return n})(t,n.blocks);return o&&e.push({...n,transformedBlocks:o}),e},[]),[e,t]))(t,e);return i.length?Object(r.createElement)(u.MenuGroup,{className:"block-editor-block-switcher__pattern__transforms__menugroup"},o&&Object(r.createElement)(N,{patterns:i,onSelect:n}),Object(r.createElement)(u.MenuItem,{onClick:e=>{e.preventDefault(),c(!o)},icon:I.a},Object(b.__)("Patterns"))):null};const A=({clientIds:e,blocks:t})=>{const{replaceBlocks:n}=Object(l.useDispatch)(j.a),o=Object(m.a)(t[0].clientId),{possibleBlockTransformations:c,hasBlockStyles:i,icon:a,blockTitle:d,patterns:g}=Object(l.useSelect)(n=>{const{getBlockRootClientId:r,getBlockTransformItems:c,__experimentalGetPatternTransformItems:i}=n(j.a),{getBlockStyles:l,getBlockType:a}=n(s.store),u=r(Object(f.castArray)(e)[0]),[{name:d}]=t,b=1===t.length,m=b&&l(d);let p;var g;b?p=null==o?void 0:o.icon:p=1===Object(f.uniq)(t.map(({name:e})=>e)).length?null===(g=a(d))||void 0===g?void 0:g.icon:_.a;return{possibleBlockTransformations:c(t,u),hasBlockStyles:!(null==m||!m.length),icon:p,blockTitle:a(d).title,patterns:i(t,u)}},[e,t,null==o?void 0:o.icon]),h=1===t.length&&Object(s.isReusableBlock)(t[0]),O=1===t.length&&Object(s.isTemplatePart)(t[0]),v=!!c.length,k=!(null==g||!g.length);if(!i&&!v)return Object(r.createElement)(u.ToolbarGroup,null,Object(r.createElement)(u.ToolbarButton,{disabled:!0,className:"block-editor-block-switcher__no-switcher-icon",title:d,icon:Object(r.createElement)(p.a,{icon:a,showColors:!0})}));const E=d,C=1===t.length?Object(b.sprintf)(
34
  /* translators: %s: block title. */
35
  Object(b.__)("%s: Change block type or style"),d):Object(b.sprintf)(
36
  /* translators: %d: number of blocks. */
37
- Object(b._n)("Change type of %d block","Change type of %d blocks",t.length),t.length),w=i||v||k;return Object(r.createElement)(u.ToolbarGroup,null,Object(r.createElement)(u.ToolbarItem,null,o=>Object(r.createElement)(u.DropdownMenu,{className:"block-editor-block-switcher",label:E,popoverProps:{position:"bottom right",isAlternate:!0,className:"block-editor-block-switcher__popover"},icon:Object(r.createElement)(r.Fragment,null,Object(r.createElement)(p.a,{icon:a,className:"block-editor-block-switcher__toggle",showColors:!0}),(h||O)&&Object(r.createElement)("span",{className:"block-editor-block-switcher__toggle-text"},Object(r.createElement)(y.a,{clientId:e}))),toggleProps:{describedBy:C,...o},menuProps:{orientation:"both"}},({onClose:o})=>w&&Object(r.createElement)("div",{className:"block-editor-block-switcher__container"},k&&Object(r.createElement)(R,{blocks:t,patterns:g,onSelect:t=>{(t=>{n(e,t)})(t),o()}}),v&&Object(r.createElement)(S,{className:"block-editor-block-switcher__transforms__menugroup",possibleBlockTransformations:c,blocks:t,onSelect:r=>{(o=>{n(e,Object(s.switchToBlockType)(t,o))})(r),o()}}),i&&Object(r.createElement)(B,{hoveredBlock:t[0],onSwitch:o})))))};var M=({clientIds:e})=>{const t=Object(l.useSelect)(t=>t(j.a).getBlocksByClientId(e),[e]);return!t.length||t.some(e=>!e)?null:Object(r.createElement)(A,{clientIds:e,blocks:t})},D=n(103),F=n(205);function V({hideDragHandle:e}){const{blockClientIds:t,blockClientId:n,blockType:c,hasFixedToolbar:b,hasReducedUI:m,isValid:p,isVisual:f}=Object(l.useSelect)(e=>{const{getBlockName:t,getBlockMode:n,getSelectedBlockClientIds:o,isBlockValid:r,getBlockRootClientId:c,getSettings:i}=e(j.a),l=o(),a=l[0],u=c(a),d=i();return{blockClientIds:l,blockClientId:a,blockType:a&&Object(s.getBlockType)(t(a)),hasFixedToolbar:d.hasFixedToolbar,hasReducedUI:d.hasReducedUI,rootClientId:u,isValid:l.every(e=>r(e)),isVisual:l.every(e=>"visual"===n(e))}},[]),{toggleBlockHighlight:g}=Object(l.useDispatch)(j.a),h=Object(r.useRef)(),{showMovers:O,gestures:_}=v({ref:h,onChange(e){e&&m||g(n,e)}}),y=Object(a.useViewportMatch)("medium","<")||b;if(c&&!Object(s.hasBlockSupport)(c,"__experimentalToolbar",!0))return null;const E=y||O;if(0===t.length)return null;const C=p&&f,S=t.length>1,w=i()("block-editor-block-toolbar",E&&"is-showing-movers");return Object(r.createElement)("div",{className:w},!S&&!y&&Object(r.createElement)(k,{clientIds:t}),Object(r.createElement)("div",Object(o.a)({ref:h},_),(C||S)&&Object(r.createElement)(u.ToolbarGroup,{className:"block-editor-block-toolbar__block-controls"},Object(r.createElement)(M,{clientIds:t}),Object(r.createElement)(d.a,{clientIds:t,hideDragHandle:e||m}))),C&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)(D.b.Slot,{group:"block",className:"block-editor-block-toolbar__slot"}),Object(r.createElement)(D.b.Slot,{className:"block-editor-block-toolbar__slot"}),Object(r.createElement)(D.b.Slot,{group:"inline",className:"block-editor-block-toolbar__slot"}),Object(r.createElement)(D.b.Slot,{group:"other",className:"block-editor-block-toolbar__slot"})),Object(r.createElement)(F.a,{clientIds:t}))}},function(e,t,n){"use strict";var o=n(7),r=n(0),c=n(2),i=n(3),l=n(4),a=n(8),s=n(13),u=n(1);function d({clientIds:e,isGroupable:t,isUngroupable:n,blocksSelection:o,groupingBlockName:c,onClose:d=(()=>{})}){const{replaceBlocks:b}=Object(l.useDispatch)(s.a);return t||n?Object(r.createElement)(r.Fragment,null,t&&Object(r.createElement)(i.MenuItem,{onClick:()=>{(()=>{const t=Object(a.switchToBlockType)(o,c);t&&b(e,t)})(),d()}},Object(u._x)("Group","verb")),n&&Object(r.createElement)(i.MenuItem,{onClick:()=>{(()=>{const t=o[0].innerBlocks;t.length&&b(e,t)})(),d()}},Object(u._x)("Ungroup","Ungrouping blocks from within a Group block back into individual blocks within the Editor "))):null}const{Fill:b,Slot:m}=Object(i.createSlotFill)("BlockSettingsMenuControls");function p({...e}){return Object(r.createElement)(i.__experimentalStyleProvider,{document:document},Object(r.createElement)(b,e))}p.Slot=({fillProps:e,clientIds:t=null})=>{const n=Object(l.useSelect)(e=>{const{getBlocksByClientId:n,getSelectedBlockClientIds:o}=e(s.a),r=null!==t?t:o();return Object(c.map)(Object(c.compact)(n(r)),e=>e.name)},[t]),u=function(){const{clientIds:e,isGroupable:t,isUngroupable:n,blocksSelection:o,groupingBlockName:r}=Object(l.useSelect)(e=>{var t;const{getBlockRootClientId:n,getBlocksByClientId:o,canInsertBlockType:r,getSelectedBlockClientIds:c}=e(s.a),{getGroupingBlockName:i}=e(a.store),l=c(),u=i(),d=r(u,null!=l&&l.length?n(l[0]):void 0),b=o(l),m=1===b.length&&(null===(t=b[0])||void 0===t?void 0:t.name)===u;return{clientIds:l,isGroupable:d&&b.length&&!m,isUngroupable:m&&!!b[0].innerBlocks.length,blocksSelection:b,groupingBlockName:u}},[]);return{clientIds:e,isGroupable:t,isUngroupable:n,blocksSelection:o,groupingBlockName:r}}(),{isGroupable:b,isUngroupable:p}=u,f=b||p;return Object(r.createElement)(m,{fillProps:{...e,selectedBlocks:n}},t=>{if((null==t?void 0:t.length)>0||f)return Object(r.createElement)(i.MenuGroup,null,t,Object(r.createElement)(d,Object(o.a)({},u,{onClose:null==e?void 0:e.onClose})))})},t.a=p},function(e,t,n){"use strict";var o=n(0),r=n(4),c=n(7),i=n(9),l=n(13),a=n(40),s=Object(i.createHigherOrderComponent)(e=>Object(r.withRegistry)(({useSubRegistry:t=!0,registry:n,...i})=>{if(!t)return Object(o.createElement)(e,Object(c.a)({registry:n},i));const[s,u]=Object(o.useState)(null);return Object(o.useEffect)(()=>{const e=Object(r.createRegistry)({},n);e.registerStore(a.a,l.b),u(e)},[n]),s?Object(o.createElement)(r.RegistryProvider,{value:s},Object(o.createElement)(e,Object(c.a)({registry:s},i))):null}),"withRegistryProvider"),u=n(223),d=n(165);t.a=s((function(e){const{children:t,settings:n}=e,{updateSettings:c}=Object(r.useDispatch)(l.a);return Object(o.useEffect)(()=>{c(n)},[n]),Object(u.a)(e),Object(o.createElement)(d.b,null,t)}))},function(e,t,n){"use strict";function o(e,t,n=["top","bottom","left","right"]){let o,r;return n.forEach(n=>{const c=function(e,t,n){const o="top"===n||"bottom"===n,{x:r,y:c}=e,i=o?r:c,l=o?c:r,a=o?t.left:t.top,s=o?t.right:t.bottom,u=t[n];let d;return d=i>=a&&i<=s?i:i<s?a:s,Math.sqrt((i-d)**2+(l-u)**2)}(e,t,n);(void 0===o||c<o)&&(o=c,r=n)}),[o,r]}n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var o=n(8),r=n(4),c=n(22),i=n(13);function l(e,t){const n=Object(r.useSelect)(e=>e(i.a).getSettings().mediaUpload,[]),{canInsertBlockType:l,getBlockIndex:a,getClientIdsOfDescendants:s}=Object(r.useSelect)(i.a),{insertBlocks:u,moveBlocksToPosition:d,updateBlockAttributes:b,clearSelectedBlock:m}=Object(r.useDispatch)(i.a),p=function(e,t,n,o,r,c,i){return l=>{const{srcRootClientId:a,srcClientIds:s,type:u,blocks:d}=function(e){let t={srcRootClientId:null,srcClientIds:null,srcIndex:null,type:null,blocks:null};if(!e.dataTransfer)return t;try{t=Object.assign(t,JSON.parse(e.dataTransfer.getData("wp-blocks")))}catch(e){return t}return t}(l);if("inserter"===u&&(i(),c(d,t,e,!0,null)),"block"===u){const c=n(s[0],a);if(a===e&&c===t)return;if(s.includes(e)||o(s).some(t=>t===e))return;const i=a===e,l=s.length;r(s,a,e,i&&c<t?t-l:t)}}}(e,t,a,s,d,u,m),f=function(e,t,n,r,c,i){return l=>{if(!n)return;const a=Object(o.findTransform)(Object(o.getBlockTransforms)("from"),t=>"files"===t.type&&c(t.blockName,e)&&t.isMatch(l));if(a){const n=a.transform(l,r);i(n,t,e)}}}(e,t,n,b,l,u),g=function(e,t,n){return r=>{const c=Object(o.pasteHandler)({HTML:r,mode:"BLOCKS"});c.length&&n(c,t,e)}}(e,t,u);return e=>{const t=Object(c.getFilesFromDataTransfer)(e.dataTransfer),n=e.dataTransfer.getData("text/html");t.length?f(t):n?g(n):p(e)}}},function(e,t,n){"use strict";var o=n(126),r=n(0),c=n(9),i=n(22);const l=e=>e+1,a=e=>({top:e.offsetTop,left:e.offsetLeft});t.a=function({isSelected:e,adjustScrolling:t,enableAnimation:n,triggerAnimationOnChange:s}){const u=Object(r.useRef)(),d=Object(c.useReducedMotion)()||!n,[b,m]=Object(r.useReducer)(l,0),[p,f]=Object(r.useReducer)(l,0),[g,h]=Object(r.useState)({x:0,y:0}),O=Object(r.useMemo)(()=>u.current?a(u.current):null,[s]),v=Object(r.useMemo)(()=>{if(!t||!u.current)return()=>{};const e=Object(i.getScrollContainer)(u.current);if(!e)return()=>{};const n=u.current.getBoundingClientRect();return()=>{const t=u.current.getBoundingClientRect().top-n.top;t&&(e.scrollTop+=t)}},[s,t]);function j({x:t,y:n}){t=Math.round(t),n=Math.round(n),t===j.x&&n===j.y||(function({x:t,y:n}){if(!u.current)return;const o=0===t&&0===n;u.current.style.transformOrigin=o?"":"center",u.current.style.transform=o?"":`translate3d(${t}px,${n}px,0)`,u.current.style.zIndex=!e||o?"":"1",v()}({x:t,y:n}),j.x=t,j.y=n)}return Object(r.useLayoutEffect)(()=>{b&&f()},[b]),Object(r.useLayoutEffect)(()=>{if(!O)return;if(d)return void v();u.current.style.transform="";const e=a(u.current);m(),h({x:Math.round(O.left-e.left),y:Math.round(O.top-e.top)})},[s]),j.x=0,j.y=0,Object(o.useSpring)({from:{x:g.x,y:g.y},to:{x:0,y:0},reset:b!==p,config:{mass:5,tension:2e3,friction:200},immediate:d,onFrame:j}),u}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var o=n(0),r=n(1),c=n(3),i=n(352),l=n(52);function a({count:e,icon:t}){return Object(o.createElement)("div",{className:"block-editor-block-draggable-chip-wrapper"},Object(o.createElement)("div",{className:"block-editor-block-draggable-chip"},Object(o.createElement)(c.Flex,{justify:"center",className:"block-editor-block-draggable-chip__content"},Object(o.createElement)(c.FlexItem,null,t?Object(o.createElement)(l.a,{icon:t}):Object(r.sprintf)(
38
  /* translators: %d: Number of blocks. */
39
- Object(r._n)("%d block","%d blocks",e),e)),Object(o.createElement)(c.FlexItem,null,Object(o.createElement)(l.a,{icon:i.a})))))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var o=n(4),r=n(0),c=n(9),i=n(1),l=n(216),a=n(215),s=n(13);function u({rootClientId:e=""}={}){const[t,n]=Object(r.useState)(null),u=Object(o.useSelect)(t=>{const{getTemplateLock:n}=t(s.a);return"all"===n(e)},[e]),{getBlockListSettings:d}=Object(o.useSelect)(s.a),{showInsertionPoint:b,hideInsertionPoint:m}=Object(o.useDispatch)(s.a),p=Object(l.a)(e,t),f=Object(c.useThrottle)(Object(r.useCallback)((t,o)=>{var r;const c=function(e,t,n){const o="horizontal"===n?["left","right"]:["top","bottom"],r=Object(i.isRTL)();let c,l;return e.forEach((e,n)=>{const i=e.getBoundingClientRect(),[s,u]=Object(a.a)(t,i,o);(void 0===l||s<l)&&(l=s,c=n+("bottom"===u||!r&&"right"===u||r&&"left"===u?1:0))}),c}(Array.from(o.children).filter(e=>e.classList.contains("wp-block")),{x:t.clientX,y:t.clientY},null===(r=d(e))||void 0===r?void 0:r.orientation);n(void 0===c?0:c),null!==c&&b(e,c)},[]),200);return Object(c.__experimentalUseDropZone)({isDisabled:u,onDrop:p,onDragOver(e){f(e,e.currentTarget)},onDragLeave(){f.cancel(),m(),n(null)},onDragEnd(){f.cancel(),m(),n(null)}})}},function(e,t,n){"use strict";var o=n(0),r=n(2),c=n(1),i=n(3),l=n(9),a=n(31),s=n(115),u=n(222),d=n(202),b=n(107),m=n(188),p=n(156),f=n(157),g=n(102),h=n(187),O=n(148);t.a=function({filterValue:e,onSelect:t,onHover:n,rootClientId:v,clientId:j,isAppender:k,__experimentalInsertionIndex:_,maxBlockPatterns:y,maxBlockTypes:E,showBlockDirectory:C=!1,isDraggable:S=!0,shouldFocusBlock:w=!0}){const B=Object(l.useDebounce)(a.speak,500),[I,x]=Object(p.a)({onSelect:t,rootClientId:v,clientId:j,isAppender:k,insertionIndex:_,shouldFocusBlock:w}),[T,N,L,P]=Object(g.a)(I,x),[R,,A]=Object(f.a)(x,I),M=Object(o.useMemo)(()=>{const t=Object(h.a)(Object(r.orderBy)(T,["frecency"],["desc"]),N,L,e);return void 0!==E?t.slice(0,E):t},[e,T,N,L,E]),D=Object(o.useMemo)(()=>{const t=Object(h.b)(R,e);return void 0!==y?t.slice(0,y):t},[e,R,y]);Object(o.useEffect)(()=>{if(!e)return;const t=M.length+D.length,n=Object(c.sprintf)(
40
  /* translators: %d: number of results. */
41
- Object(c._n)("%d result found.","%d results found.",t),t);B(n)},[e,B]);const F=Object(l.useAsyncList)(D),V=!Object(r.isEmpty)(M)||!Object(r.isEmpty)(D);return Object(o.createElement)(O.a,null,!C&&!V&&Object(o.createElement)(m.a,null),!!M.length&&Object(o.createElement)(b.a,{title:Object(o.createElement)(i.VisuallyHidden,null,Object(c.__)("Blocks"))},Object(o.createElement)(s.a,{items:M,onSelect:P,onHover:n,label:Object(c.__)("Blocks"),isDraggable:S})),!!M.length&&!!D.length&&Object(o.createElement)("div",{className:"block-editor-inserter__quick-inserter-separator"}),!!D.length&&Object(o.createElement)(b.a,{title:Object(o.createElement)(i.VisuallyHidden,null,Object(c.__)("Block Patterns"))},Object(o.createElement)("div",{className:"block-editor-inserter__quick-inserter-patterns"},Object(o.createElement)(u.a,{shownPatterns:F,blockPatterns:D,onClickPattern:A,isDraggable:S}))),C&&Object(o.createElement)(d.a.Slot,{fillProps:{onSelect:P,onHover:n,filterValue:e,hasItems:V,rootClientId:I}},e=>e.length?e:V?null:Object(o.createElement)(m.a,null)))}},function(e,t,n){"use strict";var o=n(0),r=n(3),c=n(218);t.a=({isEnabled:e,blocks:t,icon:n,children:i})=>{const l={type:"inserter",blocks:t};return Object(o.createElement)(r.Draggable,{__experimentalTransferDataType:"wp-blocks",transferData:l,__experimentalDragComponent:Object(o.createElement)(c.a,{count:t.length,icon:n})},({onDraggableStart:t,onDraggableEnd:n})=>i({draggable:e,onDragStart:e?t:void 0,onDragEnd:e?n:void 0}))}},function(e,t,n){"use strict";var o=n(7),r=n(0),c=n(3),i=n(9),l=n(1),a=n(4),s=n(75),u=n(221),d=n(13);function b({isDraggable:e,pattern:t,onClick:n,composite:l}){const{name:m,viewportWidth:p}=t,{blocks:f}=Object(a.useSelect)(e=>e(d.a).__experimentalGetParsedPattern(m),[m]),g="block-editor-block-patterns-list__item-description-"+Object(i.useInstanceId)(b);return Object(r.createElement)(u.a,{isEnabled:e,blocks:f},({draggable:e,onDragStart:i,onDragEnd:a})=>Object(r.createElement)("div",{className:"block-editor-block-patterns-list__list-item","aria-label":t.title,"aria-describedby":t.description?g:void 0,draggable:e,onDragStart:i,onDragEnd:a},Object(r.createElement)(c.__unstableCompositeItem,Object(o.a)({role:"option",as:"div"},l,{className:"block-editor-block-patterns-list__item",onClick:()=>n(t,f)}),Object(r.createElement)(s.a,{blocks:f,viewportWidth:p}),Object(r.createElement)("div",{className:"block-editor-block-patterns-list__item-title"},t.title),!!t.description&&Object(r.createElement)(c.VisuallyHidden,{id:g},t.description))))}function m(){return Object(r.createElement)("div",{className:"block-editor-block-patterns-list__item is-placeholder"})}t.a=function({isDraggable:e,blockPatterns:t,shownPatterns:n,onClickPattern:i,orientation:a,label:s=Object(l.__)("Block Patterns")}){const u=Object(c.__unstableUseCompositeState)({orientation:a});return Object(r.createElement)(c.__unstableComposite,Object(o.a)({},u,{role:"listbox",className:"block-editor-block-patterns-list","aria-label":s}),t.map(t=>n.includes(t)?Object(r.createElement)(b,{key:t.name,pattern:t,onClick:i,isDraggable:e,composite:u}):Object(r.createElement)(m,{key:t.name})))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var o=n(2),r=n(0),c=n(4),i=n(8),l=n(13);function a({clientId:e=null,value:t,selection:n,onChange:a=o.noop,onInput:s=o.noop}){const u=Object(c.useRegistry)(),{resetBlocks:d,resetSelection:b,replaceInnerBlocks:m,setHasControlledInnerBlocks:p,__unstableMarkNextChangeAsNotPersistent:f}=u.dispatch(l.a),{getBlockName:g,getBlocks:h}=u.select(l.a),O=Object(r.useRef)({incoming:null,outgoing:[]}),v=Object(r.useRef)(!1),j=Object(r.useRef)(s),k=Object(r.useRef)(a);Object(r.useEffect)(()=>{j.current=s,k.current=a},[s,a]),Object(r.useEffect)(()=>{O.current.outgoing.includes(t)?Object(o.last)(O.current.outgoing)===t&&(O.current.outgoing=[]):h(e)!==t&&(O.current.outgoing=[],(()=>{if(t)if(f(),e){p(e,!0),f();const n=t.map(e=>Object(i.cloneBlock)(e));v.current&&(O.current.incoming=n),m(e,n)}else v.current&&(O.current.incoming=t),d(t)})(),n&&b(n.selectionStart,n.selectionEnd,n.initialPosition))},[t,e]),Object(r.useEffect)(()=>{const{getSelectionStart:t,getSelectionEnd:n,getSelectedBlocksInitialCaretPosition:o,isLastBlockChangePersistent:r,__unstableIsLastBlockChangeIgnored:c}=u.select(l.a);let i=h(e),a=r(),s=!1;v.current=!0;const d=u.subscribe(()=>{if(null!==e&&null===g(e))return;const l=r(),u=h(e),d=u!==i;if(i=u,d&&(O.current.incoming||c()))return O.current.incoming=null,void(a=l);(d||s&&!d&&l&&!a)&&(a=l,O.current.outgoing.push(i),(a?k.current:j.current)(i,{selection:{selectionStart:t(),selectionEnd:n(),initialPosition:o()}})),s=d});return()=>d()},[u,e])}},function(e,t,n){"use strict";var o=n(0),r=n(26),c=n.n(r),i=n(52);t.a=function({title:e,icon:t,description:n,blockType:r}){return r&&(c()("`blockType` property in `BlockCard component`",{since:"5.7",alternative:"`title, icon and description` properties"}),({title:e,icon:t,description:n}=r)),Object(o.createElement)("div",{className:"block-editor-block-card"},Object(o.createElement)(i.a,{icon:t,showColors:!0}),Object(o.createElement)("div",{className:"block-editor-block-card__content"},Object(o.createElement)("h2",{className:"block-editor-block-card__title"},e),Object(o.createElement)("span",{className:"block-editor-block-card__description"},n)))}},function(e,t,n){"use strict";var o=n(7),r=n(0),c=n(10),i=n.n(c),l=n(1),a=n(8),s=n(4),u=n(203),d=n(212),b=n(13);t.a=function({focusOnMount:e,isFixed:t,...n}){const{blockType:c,hasParents:m,showParentSelector:p}=Object(s.useSelect)(e=>{const{getBlockName:t,getBlockParents:n,getSelectedBlockClientIds:o}=e(b.a),{getBlockType:r}=e(a.store),c=o()[0],i=n(c),l=r(t(i[i.length-1]));return{blockType:c&&r(t(c)),hasParents:i.length,showParentSelector:Object(a.hasBlockSupport)(l,"__experimentalParentSelector",!0)}},[]);if(c&&!Object(a.hasBlockSupport)(c,"__experimentalToolbar",!0))return null;const f=i()("block-editor-block-contextual-toolbar",{"has-parent":m&&p,"is-fixed":t});return Object(r.createElement)(u.a,Object(o.a)({focusOnMount:e,className:f
42
- /* translators: accessibility text for the block toolbar */,"aria-label":Object(l.__)("Block tools")},n),Object(r.createElement)(d.a,{hideDragHandle:t}))}},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}},,,,,,,function(e,t,n){"use strict";var o=n(0),r=n(3),c=n(1),i=n(4);const l=[Object(o.createInterpolateElement)(Object(c.__)("While writing, you can press <kbd>/</kbd> to quickly insert new blocks."),{kbd:Object(o.createElement)("kbd",null)}),Object(o.createInterpolateElement)(Object(c.__)("Indent a list by pressing <kbd>space</kbd> at the beginning of a line."),{kbd:Object(o.createElement)("kbd",null)}),Object(o.createInterpolateElement)(Object(c.__)("Outdent a list by pressing <kbd>backspace</kbd> at the beginning of a line."),{kbd:Object(o.createElement)("kbd",null)}),Object(c.__)("Drag files into the editor to automatically insert media blocks."),Object(c.__)("Change a block's type by pressing the block icon on the toolbar.")];var a=function(){const[e]=Object(o.useState)(Math.floor(Math.random()*l.length));return Object(o.createElement)(r.Tip,null,l[e])},s=n(8),u=n(224),d=n(75),b=function({item:e}){var t,n;const{name:r,title:i,icon:l,description:a,initialAttributes:b}=e,m=Object(s.getBlockType)(r),p=Object(s.isReusableBlock)(e);return Object(o.createElement)("div",{className:"block-editor-inserter__preview-container"},Object(o.createElement)("div",{className:"block-editor-inserter__preview"},p||m.example?Object(o.createElement)("div",{className:"block-editor-inserter__preview-content"},Object(o.createElement)(d.a,{__experimentalPadding:16,viewportWidth:null!==(t=null===(n=m.example)||void 0===n?void 0:n.viewportWidth)&&void 0!==t?t:500,blocks:m.example?Object(s.getBlockFromExample)(e.name,{attributes:{...m.example.attributes,...b},innerBlocks:m.example.innerBlocks}):Object(s.createBlock)(r,b)})):Object(o.createElement)("div",{className:"block-editor-inserter__preview-content-missing"},Object(c.__)("No Preview Available."))),!p&&Object(o.createElement)(u.a,{title:i,icon:l,description:a}))},m=n(2),p=n(115),f=n(107),g=n(102),h=n(148),O=function({rootClientId:e,onInsert:t,onHover:n,showMostUsedBlocks:r}){const[i,l,a,s]=Object(g.a)(e,t),u=Object(o.useMemo)(()=>Object(m.orderBy)(i,["frecency"],["desc"]).slice(0,6),[i]),d=Object(o.useMemo)(()=>i.filter(e=>!e.category),[i]),b=Object(o.useMemo)(()=>Object(m.flow)(e=>e.filter(e=>e.category&&"reusable"!==e.category),e=>Object(m.groupBy)(e,"category"))(i),[i]),O=Object(o.useMemo)(()=>{const e={...a};return Object.keys(a).forEach(t=>{e[t]=i.filter(e=>(e=>e.name.split("/")[0])(e)===t),0===e[t].length&&delete e[t]}),e},[i,a]);return Object(o.useEffect)(()=>()=>n(null),[]),Object(o.createElement)(h.a,null,Object(o.createElement)("div",null,r&&!!u.length&&Object(o.createElement)(f.a,{title:Object(c._x)("Most used","blocks")},Object(o.createElement)(p.a,{items:u,onSelect:s,onHover:n,label:Object(c._x)("Most used","blocks")})),Object(m.map)(l,e=>{const t=b[e.slug];return t&&t.length?Object(o.createElement)(f.a,{key:e.slug,title:e.title,icon:e.icon},Object(o.createElement)(p.a,{items:t,onSelect:s,onHover:n,label:e.title})):null}),d.length>0&&Object(o.createElement)(f.a,{className:"block-editor-inserter__uncategorized-blocks-panel",title:Object(c.__)("Uncategorized")},Object(o.createElement)(p.a,{items:d,onSelect:s,onHover:n,label:Object(c.__)("Uncategorized")})),Object(m.map)(a,(e,t)=>{const r=O[t];return r&&r.length?Object(o.createElement)(f.a,{key:t,title:e.title,icon:e.icon},Object(o.createElement)(p.a,{items:r,onSelect:s,onHover:n,label:e.title})):null})))},v=n(9),j=n(10),k=n.n(j),_=function({selectedCategory:e,patternCategories:t,onClickCategory:n,children:i}){return Object(o.createElement)(o.Fragment,null,Object(o.createElement)("div",{className:k()("block-editor-inserter__panel-header","block-editor-inserter__panel-header-patterns")},Object(o.createElement)(r.SelectControl,{className:"block-editor-inserter__panel-dropdown",label:Object(c.__)("Filter patterns"),hideLabelFromVision:!0,value:e.name,onChange:e=>{n(t.find(t=>e===t.name))},onBlur:e=>{null!=e&&e.relatedTarget||e.stopPropagation()},options:(()=>{const e=[];return t.map(t=>e.push({value:t.name,label:t.label})),e})()})),Object(o.createElement)("div",{className:"block-editor-inserter__panel-content"},i))},y=n(157),E=n(222);function C({rootClientId:e,onInsert:t,selectedCategory:n,onClickCategory:r}){const[i,l,a]=Object(y.a)(t,e),s=Object(o.useMemo)(()=>l.filter(e=>i.some(t=>{var n;return null===(n=t.categories)||void 0===n?void 0:n.includes(e.name)})),[i,l]),u=n||s[0];Object(o.useEffect)(()=>{i.some(e=>d(e)===1/0)&&!s.find(e=>"uncategorized"===e.name)&&s.push({name:"uncategorized",label:Object(c._x)("Uncategorized")})},[s,i]);const d=Object(o.useCallback)(e=>{if(!e.categories||!e.categories.length)return 1/0;const t=Object(m.fromPairs)(s.map(({name:e},t)=>[e,t]));return Math.min(...e.categories.map(e=>void 0!==t[e]?t[e]:1/0))},[s]),b=Object(o.useMemo)(()=>i.filter(e=>"uncategorized"===u.name?d(e)===1/0:e.categories&&e.categories.includes(u.name)),[i,u]),p=Object(o.useMemo)(()=>b.sort((e,t)=>d(e)-d(t)),[b,d]),f=Object(v.useAsyncList)(p);return Object(o.createElement)(o.Fragment,null,!!b.length&&Object(o.createElement)(_,{selectedCategory:u,patternCategories:s,onClickCategory:r},Object(o.createElement)(E.a,{shownPatterns:f,blockPatterns:b,onClickPattern:a,label:u.label,orientation:"vertical",isDraggable:!0})))}var S=function({rootClientId:e,onInsert:t,onClickCategory:n,selectedCategory:r}){return Object(o.createElement)(C,{rootClientId:e,selectedCategory:r,onInsert:t,onClickCategory:n})},w=n(20),B=n(188);function I({onHover:e,onInsert:t,rootClientId:n}){const[r,,,i]=Object(g.a)(n,t),l=Object(o.useMemo)(()=>r.filter(({category:e})=>"reusable"===e),[r]);return 0===l.length?Object(o.createElement)(B.a,null):Object(o.createElement)(f.a,{title:Object(c.__)("Reusable blocks")},Object(o.createElement)(p.a,{items:l,onSelect:i,onHover:e,label:Object(c.__)("Reusable blocks")}))}var x=function({rootClientId:e,onInsert:t,onHover:n}){return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(I,{onHover:n,onInsert:t,rootClientId:e}),Object(o.createElement)("div",{className:"block-editor-inserter__manage-reusable-blocks-container"},Object(o.createElement)("a",{className:"block-editor-inserter__manage-reusable-blocks",href:Object(w.addQueryArgs)("edit.php",{post_type:"wp_block"})},Object(c.__)("Manage Reusable blocks"))))},T=n(220),N=n(156);const L={name:"blocks",
43
  /* translators: Blocks tab title in the block inserter. */
44
- title:Object(c.__)("Blocks")},P={name:"patterns",
45
  /* translators: Patterns tab title in the block inserter. */
46
- title:Object(c.__)("Patterns")},R={name:"reusable",
47
  /* translators: Reusable blocks tab title in the block inserter. */
48
- title:Object(c.__)("Reusable")};var A=function({children:e,showPatterns:t=!1,showReusableBlocks:n=!1,onSelect:c}){const i=Object(o.useMemo)(()=>{const e=[L];return t&&e.push(P),n&&e.push(R),e},[L,t,P,n,R]);return Object(o.createElement)(r.TabPanel,{className:"block-editor-inserter__tabs",tabs:i,onSelect:c},e)},M=n(13);t.a=function({rootClientId:e,clientId:t,isAppender:n,__experimentalInsertionIndex:l,onSelect:s,showInserterHelpPanel:u,showMostUsedBlocks:d,shouldFocusBlock:m=!0}){const[p,f]=Object(o.useState)(""),[g,h]=Object(o.useState)(null),[v,j]=Object(o.useState)(null),[k,_,y]=Object(N.a)({rootClientId:e,clientId:t,isAppender:n,insertionIndex:l,shouldFocusBlock:m}),{showPatterns:E,hasReusableBlocks:C}=Object(i.useSelect)(e=>{var t;const{__experimentalGetAllowedPatterns:n,getSettings:o}=e(M.a);return{showPatterns:!!n(k).length,hasReusableBlocks:!(null===(t=o().__experimentalReusableBlocks)||void 0===t||!t.length)}},[k]),w=Object(o.useCallback)((e,t,n)=>{_(e,t,n),s()},[_,s]),B=Object(o.useCallback)((e,t)=>{_(e,{patternName:t}),s()},[_,s]),I=Object(o.useCallback)(e=>{y(!!e),h(e)},[y,h]),L=Object(o.useCallback)(e=>{j(e)},[j]),P=Object(o.useMemo)(()=>Object(o.createElement)(o.Fragment,null,Object(o.createElement)("div",{className:"block-editor-inserter__block-list"},Object(o.createElement)(O,{rootClientId:k,onInsert:w,onHover:I,showMostUsedBlocks:d})),u&&Object(o.createElement)("div",{className:"block-editor-inserter__tips"},Object(o.createElement)(r.VisuallyHidden,{as:"h2"},Object(c.__)("A tip for using the block editor")),Object(o.createElement)(a,null))),[k,w,I,p,d,u]),R=Object(o.useMemo)(()=>Object(o.createElement)(S,{rootClientId:k,onInsert:B,onClickCategory:L,selectedCategory:v}),[k,B,L,v]),D=Object(o.useMemo)(()=>Object(o.createElement)(x,{rootClientId:k,onInsert:w,onHover:I}),[k,w,I]),F=Object(o.useCallback)(e=>"blocks"===e.name?P:"patterns"===e.name?R:D,[P,R,D]);return Object(o.createElement)("div",{className:"block-editor-inserter__menu"},Object(o.createElement)("div",{className:"block-editor-inserter__main-area"},Object(o.createElement)("div",{className:"block-editor-inserter__content"},Object(o.createElement)(r.SearchControl,{className:"block-editor-inserter__search",onChange:e=>{g&&h(null),f(e)},value:p,label:Object(c.__)("Search for blocks and patterns"),placeholder:Object(c.__)("Search")}),!!p&&Object(o.createElement)(T.a,{filterValue:p,onSelect:s,onHover:I,rootClientId:e,clientId:t,isAppender:n,__experimentalInsertionIndex:l,showBlockDirectory:!0,shouldFocusBlock:m}),!p&&(E||C)&&Object(o.createElement)(A,{showPatterns:E,showReusableBlocks:C},F),!p&&!E&&!C&&P)),u&&g&&Object(o.createElement)(b,{item:g}))}},function(e,t,n){"use strict";var o=n(7),r=n(0),c=n(2),i=n(1),l=n(3),a=n(4),s=n(194),u=n(8),d=n(25),b=n(9),m=n(177),p=n(13);function f({clientIds:e,children:t,__experimentalUpdateSelection:n}){const{canInsertBlockType:o,getBlockRootClientId:r,getBlocksByClientId:i,getTemplateLock:l}=Object(a.useSelect)(e=>e(p.a),[]),{getDefaultBlockName:s,getGroupingBlockName:d}=Object(a.useSelect)(e=>e(u.store),[]),b=i(e),f=r(e[0]),g=Object(c.every)(b,e=>!!e&&Object(u.hasBlockSupport)(e.name,"multiple",!0)&&o(e.name,f)),h=o(s(),f),{removeBlocks:O,replaceBlocks:v,duplicateBlocks:j,insertAfterBlock:k,insertBeforeBlock:_,flashBlock:y,setBlockMovingClientId:E,setNavigationMode:C,selectBlock:S}=Object(a.useDispatch)(p.a),w=Object(m.c)();return t({canDuplicate:g,canInsertDefaultBlock:h,isLocked:!!l(f),rootClientId:f,blocks:b,onDuplicate:()=>j(e,n),onRemove:()=>O(e,n),onInsertBefore(){_(Object(c.first)(Object(c.castArray)(e)))},onInsertAfter(){k(Object(c.last)(Object(c.castArray)(e)))},onMoveTo(){C(!0),S(e[0]),E(e[0])},onGroup(){if(!b.length)return;const t=d(),n=Object(u.switchToBlockType)(b,t);n&&v(e,n)},onUngroup(){if(!b.length)return;const t=b[0].innerBlocks;t.length&&v(e,t)},onCopy(){const e=b.map(({clientId:e})=>e);1===b.length&&y(e[0]),w("copy",e)}})}var g=Object(b.compose)([Object(a.withSelect)((e,{clientId:t})=>{const{getBlock:n,getBlockMode:o,getSettings:r}=e(p.a),c=n(t),i=r().codeEditingEnabled;return{mode:o(t),blockType:c?Object(u.getBlockType)(c.name):null,isCodeEditingEnabled:i}}),Object(a.withDispatch)((e,{onToggle:t=c.noop,clientId:n})=>({onToggleMode(){e(p.a).toggleBlockMode(n),t()}}))])((function({blockType:e,mode:t,onToggleMode:n,small:o=!1,isCodeEditingEnabled:c=!0}){if(!Object(u.hasBlockSupport)(e,"html",!0)||!c)return null;const a="visual"===t?Object(i.__)("Edit as HTML"):Object(i.__)("Edit visually");return Object(r.createElement)(l.MenuItem,{onClick:n},!o&&a)})),h=Object(b.compose)(Object(a.withSelect)((e,{clientId:t})=>{const n=e(p.a).getBlock(t);return{block:n,shouldRender:n&&"core/html"===n.name}}),Object(a.withDispatch)((e,{block:t})=>({onClick:()=>e(p.a).replaceBlocks(t.clientId,Object(u.rawHandler)({HTML:Object(u.getBlockContent)(t)}))})))((function({shouldRender:e,onClick:t,small:n}){if(!e)return null;const o=Object(i.__)("Convert to Blocks");return Object(r.createElement)(l.MenuItem,{onClick:t},!n&&o)})),O=n(206),v=n(213);const j={className:"block-editor-block-settings-menu__popover",position:"bottom right",isAlternate:!0};function k({blocks:e,onCopy:t}){const n=Object(b.useCopyToClipboard)(()=>Object(u.serialize)(e),t);return Object(r.createElement)(l.MenuItem,{ref:n},Object(i.__)("Copy"))}t.a=function({clientIds:e,__experimentalSelectBlock:t,children:n,...u}){const b=Object(c.castArray)(e),m=b.length,_=b[0],y=Object(a.useSelect)(e=>1===e(p.a).getBlockCount(),[]),E=Object(a.useSelect)(e=>{const{getShortcutRepresentation:t}=e(d.store);return{duplicate:t("core/block-editor/duplicate"),remove:t("core/block-editor/remove"),insertAfter:t("core/block-editor/insert-after"),insertBefore:t("core/block-editor/insert-before")}},[]),C=Object(r.useCallback)(t?async e=>{const n=await e;n&&n[0]&&t(n[0])}:c.noop,[t]),S=1===m?Object(i.__)("Remove block"):Object(i.__)("Remove blocks");return Object(r.createElement)(f,{clientIds:e,__experimentalUpdateSelection:!t},({canDuplicate:t,canInsertDefaultBlock:a,isLocked:d,onDuplicate:b,onInsertAfter:p,onInsertBefore:f,onRemove:w,onCopy:B,onMoveTo:I,blocks:x})=>Object(r.createElement)(l.DropdownMenu,Object(o.a)({icon:s.a,label:Object(i.__)("Options"),className:"block-editor-block-settings-menu",popoverProps:j,noIcons:!0},u),({onClose:o})=>Object(r.createElement)(r.Fragment,null,Object(r.createElement)(l.MenuGroup,null,Object(r.createElement)(O.a.Slot,{fillProps:{onClose:o}}),1===m&&Object(r.createElement)(h,{clientId:_}),Object(r.createElement)(k,{blocks:x,onCopy:B}),t&&Object(r.createElement)(l.MenuItem,{onClick:Object(c.flow)(o,b,C),shortcut:E.duplicate},Object(i.__)("Duplicate")),a&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)(l.MenuItem,{onClick:Object(c.flow)(o,f),shortcut:E.insertBefore},Object(i.__)("Insert before")),Object(r.createElement)(l.MenuItem,{onClick:Object(c.flow)(o,p),shortcut:E.insertAfter},Object(i.__)("Insert after"))),!d&&!y&&Object(r.createElement)(l.MenuItem,{onClick:Object(c.flow)(o,I)},Object(i.__)("Move to")),1===m&&Object(r.createElement)(g,{clientId:_,onToggle:o})),Object(r.createElement)(v.a.Slot,{fillProps:{onClose:o},clientIds:e}),"function"==typeof n?n({onClose:o}):r.Children.map(e=>Object(r.cloneElement)(e,{onClose:o})),Object(r.createElement)(l.MenuGroup,null,!d&&Object(r.createElement)(l.MenuItem,{onClick:Object(c.flow)(o,w,C),shortcut:E.remove},S)))))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return T}));var o=n(0),r=n(2),c=n(10),i=n.n(c),l=n(8),a=n(3),s=n(4),u=n(25),d=n(9),b=n(22),m=n(7),p=n(352),f=n(14),g=n(31),h=n(1),O=n(97),v=n(52),j=n(13),k=n(164),_=n(83),y=function({clientId:e,rootClientId:t,blockElement:n}){const r=Object(_.a)(e),c=Object(s.useSelect)(n=>{var o;const{__unstableGetBlockWithoutInnerBlocks:r,getBlockIndex:c,hasBlockMovingClientId:i,getBlockListSettings:l}=n(j.a),a=c(e,t),{name:s,attributes:u}=r(e);return{index:a,name:s,attributes:u,blockMovingMode:i(),orientation:null===(o=l(t))||void 0===o?void 0:o.orientation}},[e,t]),{index:u,name:d,attributes:y,blockMovingMode:E,orientation:C}=c,{setNavigationMode:S,removeBlock:w}=Object(s.useDispatch)(j.a),B=Object(o.useRef)();Object(o.useEffect)(()=>{B.current.focus(),window.navigator.platform.indexOf("Win")>-1&&Object(g.speak)(z)},[]);const{hasBlockMovingClientId:I,getBlockIndex:x,getBlockRootClientId:T,getClientIdsOfDescendants:N,getSelectedBlockClientId:L,getMultiSelectedBlocksEndClientId:P,getPreviousBlockClientId:R,getNextBlockClientId:A}=Object(s.useSelect)(j.a),{selectBlock:M,clearSelectedBlock:D,setBlockMovingClientId:F,moveBlockToPosition:V}=Object(s.useDispatch)(j.a),H=Object(l.getBlockType)(d),z=Object(l.__experimentalGetAccessibleBlockLabel)(H,y,u+1,C),U=i()("block-editor-block-list__block-selection-button",{"is-block-moving-mode":!!E}),G=Object(h.__)("Drag");return Object(o.createElement)("div",{className:U},Object(o.createElement)(a.Flex,{justify:"center",className:"block-editor-block-list__block-selection-button__content"},Object(o.createElement)(a.FlexItem,null,Object(o.createElement)(v.a,{icon:null==r?void 0:r.icon,showColors:!0})),Object(o.createElement)(a.FlexItem,null,Object(o.createElement)(k.a,{clientIds:[e]},e=>Object(o.createElement)(a.Button,Object(m.a)({icon:p.a,className:"block-selection-button_drag-handle","aria-hidden":"true",label:G,tabIndex:"-1"},e)))),Object(o.createElement)(a.FlexItem,null,Object(o.createElement)(a.Button,{ref:B,onClick:()=>S(!1),onKeyDown:function(t){const{keyCode:o}=t,r=o===f.UP,c=o===f.DOWN,i=o===f.LEFT,l=o===f.RIGHT,a=o===f.TAB,s=o===f.ESCAPE,u=o===f.ENTER,d=o===f.SPACE,m=t.shiftKey;if(o===f.BACKSPACE||o===f.DELETE)return w(e),void t.preventDefault();const p=L(),g=P(),h=R(g||p),O=A(g||p),v=a&&m||r,j=a&&!m||c,k=i,_=l;let y;if(v)y=h;else if(j)y=O;else if(k){var E;y=null!==(E=T(p))&&void 0!==E?E:p}else if(_){var C;y=null!==(C=N([p])[0])&&void 0!==C?C:p}const S=I();if(s&&S&&F(null),(u||d)&&S){const e=T(S),t=T(p),n=x(S,e);let o=x(p,t);n<o&&e===t&&(o-=1),V(S,e,t,o),M(S),F(null)}if(j||v||k||_)if(y)t.preventDefault(),M(y);else if(a&&p){let e;j?(e=b.focus.tabbable.findNext(n),e||(e=n.ownerDocument.defaultView.frameElement,e=b.focus.tabbable.findNext(e))):e=b.focus.tabbable.findPrevious(n),e&&(t.preventDefault(),e.focus(),D())}},label:z,className:"block-selection-button_select-button"},Object(o.createElement)(O.a,{clientId:e})))))},E=n(225),C=n(87),S=n(71),w=n(155);function B(e){const{isNavigationMode:t,isMultiSelecting:n,hasMultiSelection:o,isTyping:r,isCaretWithinFormattedText:c,getSettings:i,getLastMultiSelectedBlockClientId:l}=e(j.a);return{isNavigationMode:t(),isMultiSelecting:n(),isTyping:r(),isCaretWithinFormattedText:c(),hasMultiSelection:o(),hasFixedToolbar:i().hasFixedToolbar,lastClientId:l()}}function I({clientId:e,rootClientId:t,isValid:n,isEmptyDefaultBlock:r,capturingClientId:c,__unstablePopoverSlot:l,__unstableContentRef:m}){const{isNavigationMode:p,isMultiSelecting:f,isTyping:g,isCaretWithinFormattedText:h,hasMultiSelection:O,hasFixedToolbar:v,lastClientId:k}=Object(s.useSelect)(B,[]),_=Object(s.useSelect)(t=>{const{isBlockInsertionPointVisible:n,getBlockInsertionPoint:o,getBlockOrder:r}=t(j.a);if(!n())return!1;const c=o();return r(c.rootClientId)[c.index]===e},[e]),I=Object(d.useViewportMatch)("medium"),[x,T]=Object(o.useState)(!1),[N,L]=Object(o.useState)(!1),{stopTyping:P}=Object(s.useDispatch)(j.a),R=!g&&!p&&r&&n,A=p,M=!p&&!v&&I&&!R&&!f&&(!g||h),D=!(p||M||v||r);Object(u.useShortcut)("core/block-editor/focus-toolbar",Object(o.useCallback)(()=>{T(!0),P(!0)},[]),{bindGlobal:!0,eventName:"keydown",isDisabled:!D}),Object(o.useEffect)(()=>{M||T(!1)},[M]);const F=Object(o.useRef)(),V=Object(S.a)(e),H=Object(S.a)(k),z=Object(S.a)(c),U=Object(w.a)(m);if(!(A||M||x||R))return null;let G=V;if(!G)return null;c&&(G=z);let W=G;if(O){if(!H)return null;W={top:G,bottom:H}}const K=R?"top left right":"top right left",{ownerDocument:$}=G,q=R?void 0:$.defaultView.frameElement||Object(b.getScrollContainer)(G)||$.body;return Object(o.createElement)(a.Popover,{ref:U,noArrow:!0,animate:!1,position:K,focusOnMount:!1,anchorRef:W,className:i()("block-editor-block-list__block-popover",{"is-insertion-point-visible":_}),__unstableStickyBoundaryElement:q,__unstableSlotName:l||null,__unstableBoundaryParent:!0,__unstableObserveElement:G,shouldAnchorIncludePadding:!0},(M||x)&&Object(o.createElement)("div",{onFocus:function(){L(!0)},onBlur:function(){L(!1)},tabIndex:-1,className:i()("block-editor-block-list__block-popover-inserter",{"is-visible":N})},Object(o.createElement)(C.a,{clientId:e,rootClientId:t,__experimentalIsQuick:!0})),(M||x)&&Object(o.createElement)(E.a,{focusOnMount:x,__experimentalInitialIndex:F.current,__experimentalOnIndexChange:e=>{F.current=e},key:e}),A&&Object(o.createElement)(y,{clientId:e,rootClientId:t,blockElement:G}),R&&Object(o.createElement)("div",{className:"block-editor-block-list__empty-block-inserter"},Object(o.createElement)(C.a,{position:"bottom right",rootClientId:t,clientId:e,__experimentalIsQuick:!0})))}function x(e){const{getSelectedBlockClientId:t,getFirstMultiSelectedBlockClientId:n,getBlockRootClientId:o,__unstableGetBlockWithoutInnerBlocks:c,getBlockParents:i,__experimentalGetBlockListSettingsForBlocks:a}=e(j.a),s=t()||n();if(!s)return;const{name:u,attributes:d={},isValid:b}=c(s)||{},m=i(s),p=a(m),f=Object(r.find)(m,e=>{var t;return null===(t=p[e])||void 0===t?void 0:t.__experimentalCaptureToolbars});return{clientId:s,rootClientId:o(s),name:u,isValid:b,isEmptyDefaultBlock:u&&Object(l.isUnmodifiedDefaultBlock)({name:u,attributes:d}),capturingClientId:f}}function T({__unstablePopoverSlot:e,__unstableContentRef:t}){const n=Object(s.useSelect)(x,[]);if(!n)return null;const{clientId:r,rootClientId:c,name:i,isValid:l,isEmptyDefaultBlock:a,capturingClientId:u}=n;return i?Object(o.createElement)(I,{clientId:r,rootClientId:c,isValid:l,isEmptyDefaultBlock:a,capturingClientId:u,__unstablePopoverSlot:e,__unstableContentRef:t}):null}},function(e,t,n){"use strict";var o=n(0),r=n(2),c=n(10),i=n.n(c),l=n(4),a=n(14),s=n(1),u=n(8),d=n(186),b=n.n(d),m=n(75),p=n(13);const f={};function g({genericPreviewBlock:e,style:t,isActive:n,onBlur:r,onHover:c,onSelect:l,styleClassName:s,itemRole:u}){const d=Object(o.useMemo)(()=>({...e,attributes:{...e.attributes,className:s}}),[e,s]);return Object(o.createElement)("div",{key:t.name,className:i()("block-editor-block-styles__item",{"is-active":n}),onClick:()=>l(),onKeyDown:e=>{a.ENTER!==e.keyCode&&a.SPACE!==e.keyCode||(e.preventDefault(),l())},onMouseEnter:c,onMouseLeave:r,role:u||"button",tabIndex:"0","aria-label":t.label||t.name},Object(o.createElement)("div",{className:"block-editor-block-styles__item-preview"},Object(o.createElement)(m.a,{viewportWidth:500,blocks:d})),Object(o.createElement)("div",{className:"block-editor-block-styles__item-label"},t.label||t.name))}t.a=function({clientId:e,onSwitch:t=r.noop,onHoverClassName:n=r.noop,itemRole:c}){const{styles:i,block:a,type:d,className:m}=Object(l.useSelect)(t=>{const{getBlock:n}=t(p.a),o=n(e);if(!o)return f;const r=Object(u.getBlockType)(o.name),{getBlockStyles:c}=t(u.store);return{block:o,type:r,styles:c(o.name),className:o.attributes.className||""}},[e]),{updateBlockAttributes:h}=Object(l.useDispatch)(p.a),O=function(e,t){return Object(o.useMemo)(()=>{const n=null==t?void 0:t.example,o=null==t?void 0:t.name;return n&&o?Object(u.getBlockFromExample)(o,{attributes:n.attributes,innerBlocks:n.innerBlocks}):e?Object(u.cloneBlock)(e):void 0},[null!=t&&t.example?null==e?void 0:e.name:e,t])}(a,d);if(!i||0===i.length)return null;const v=Object(r.find)(i,"isDefault")?i:[{name:"default",label:Object(s._x)("Default","block style"),isDefault:!0},...i],j=function(e,t){for(const n of new b.a(t).values()){if(-1===n.indexOf("is-style-"))continue;const t=n.substring(9),o=Object(r.find)(e,{name:t});if(o)return o}return Object(r.find)(e,"isDefault")}(v,m);return Object(o.createElement)("div",{className:"block-editor-block-styles"},v.map(r=>{const i=function(e,t,n){const o=new b.a(e);return t&&o.remove("is-style-"+t.name),o.add("is-style-"+n.name),o.value}(m,j,r);return Object(o.createElement)(g,{genericPreviewBlock:O,className:m,isActive:j===r,key:r.name,onSelect:()=>{h(e,{className:i}),n(null),t()},onBlur:()=>n(null),onHover:()=>n(i),style:r,styleClassName:i,itemRole:c})}))}},,,,function(e,t,n){"use strict";var o=n(0),r=n(6);const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M15.6 7.2H14v1.5h1.6c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.8 0 5.2-2.3 5.2-5.2 0-2.9-2.3-5.2-5.2-5.2zM4.7 12.4c0-2 1.7-3.7 3.7-3.7H10V7.2H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H10v-1.5H8.4c-2 0-3.7-1.7-3.7-3.7zm4.6.9h5.3v-1.5H9.3v1.5z"}));t.a=c},function(e,t,n){"use strict";var o=n(0),r=n(6);const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M15.6 7.3h-.7l1.6-3.5-.9-.4-3.9 8.5H9v1.5h2l-1.3 2.8H8.4c-2 0-3.7-1.7-3.7-3.7s1.7-3.7 3.7-3.7H10V7.3H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H9l-1.4 3.2.9.4 5.7-12.5h1.4c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.9 0 5.2-2.3 5.2-5.2 0-2.9-2.4-5.2-5.2-5.2z"}));t.a=c},function(e,t,n){"use strict";var o=n(0),r=n(6);const c=Object(o.createElement)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)(r.Path,{d:"M13.8 5.2H3v1.5h10.8V5.2zm-3.6 12v1.5H21v-1.5H10.2zm7.2-6H6.6v1.5h10.8v-1.5z"}));t.a=c},function(e,t){e.exports=function(e,t){if(null==e)return{};var n,o,r={},c=Object.keys(e);for(o=0;o<c.length;o++)n=c[o],t.indexOf(n)>=0||(r[n]=e[n]);return r},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){var o=n(245);e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,o(e,t)},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){function n(t,o){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,o)}e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},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},function(e,t,n){"use strict";var o=n(248);e.exports=function(e,t,n){n=n||{},9===t.nodeType&&(t=o.getWindow(t));var r=n.allowHorizontalScroll,c=n.onlyScrollIfNeeded,i=n.alignWithTop,l=n.alignWithLeft,a=n.offsetTop||0,s=n.offsetLeft||0,u=n.offsetBottom||0,d=n.offsetRight||0;r=void 0===r||r;var b=o.isWindow(t),m=!(!b||!t.frameElement),p=o.offset(e),f=o.outerHeight(e),g=o.outerWidth(e),h=void 0,O=void 0,v=void 0,j=void 0,k=void 0,_=void 0,y=void 0,E=void 0,C=void 0,S=void 0;m&&(t=t.document.scrollingElement||t.document.body),b||m?(y=t,S=o.height(y),C=o.width(y),E={left:o.scrollLeft(y),top:o.scrollTop(y)},k={left:p.left-E.left-s,top:p.top-E.top-a},_={left:p.left+g-(E.left+C)+d,top:p.top+f-(E.top+S)+u},j=E):(h=o.offset(t),O=t.clientHeight,v=t.clientWidth,j={left:t.scrollLeft,top:t.scrollTop},k={left:p.left-(h.left+(parseFloat(o.css(t,"borderLeftWidth"))||0))-s,top:p.top-(h.top+(parseFloat(o.css(t,"borderTopWidth"))||0))-a},_={left:p.left+g-(h.left+v+(parseFloat(o.css(t,"borderRightWidth"))||0))+d,top:p.top+f-(h.top+O+(parseFloat(o.css(t,"borderBottomWidth"))||0))+u}),k.top<0||_.top>0?!0===i?o.scrollTop(t,j.top+k.top):!1===i?o.scrollTop(t,j.top+_.top):k.top<0?o.scrollTop(t,j.top+k.top):o.scrollTop(t,j.top+_.top):c||((i=void 0===i||!!i)?o.scrollTop(t,j.top+k.top):o.scrollTop(t,j.top+_.top)),r&&(k.left<0||_.left>0?!0===l?o.scrollLeft(t,j.left+k.left):!1===l?o.scrollLeft(t,j.left+_.left):k.left<0?o.scrollLeft(t,j.left+k.left):o.scrollLeft(t,j.left+_.left):c||((l=void 0===l||!!l)?o.scrollLeft(t,j.left+k.left):o.scrollLeft(t,j.left+_.left)))}},function(e,t,n){"use strict";var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};function c(e,t){var n=e["page"+(t?"Y":"X")+"Offset"],o="scroll"+(t?"Top":"Left");if("number"!=typeof n){var r=e.document;"number"!=typeof(n=r.documentElement[o])&&(n=r.body[o])}return n}function i(e){return c(e)}function l(e){return c(e,!0)}function a(e){var t=function(e){var t,n=void 0,o=void 0,r=e.ownerDocument,c=r.body,i=r&&r.documentElement;return n=(t=e.getBoundingClientRect()).left,o=t.top,{left:n-=i.clientLeft||c.clientLeft||0,top:o-=i.clientTop||c.clientTop||0}}(e),n=e.ownerDocument,o=n.defaultView||n.parentWindow;return t.left+=i(o),t.top+=l(o),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 m(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 o="",r=e.ownerDocument,c=n||r.defaultView.getComputedStyle(e,null);return c&&(o=c.getPropertyValue(t)||c[t]),o}:function(e,t){var n=e.currentStyle&&e.currentStyle[t];if(s.test(n)&&!u.test(t)){var o=e.style,r=o[d],c=e.runtimeStyle[d];e.runtimeStyle[d]=e.currentStyle[d],o[d]="fontSize"===t?"1em":n||0,n=o.pixelLeft+"px",o[d]=r,e.runtimeStyle[d]=c}return""===n?"auto":n});var f=["margin","border","padding"];function g(e,t,n){var o={},r=e.style,c=void 0;for(c in t)t.hasOwnProperty(c)&&(o[c]=r[c],r[c]=t[c]);for(c in n.call(e),t)t.hasOwnProperty(c)&&(r[c]=o[c])}function h(e,t,n){var o=0,r=void 0,c=void 0,i=void 0;for(c=0;c<t.length;c++)if(r=t[c])for(i=0;i<n.length;i++){var l;l="border"===r?r+n[i]+"Width":r+n[i],o+=parseFloat(b(e,l))||0}return o}function O(e){return null!=e&&e==e.window}var v={};function j(e,t,n){if(O(e))return"width"===t?v.viewportWidth(e):v.viewportHeight(e);if(9===e.nodeType)return"width"===t?v.docWidth(e):v.docHeight(e);var o="width"===t?["Left","Right"]:["Top","Bottom"],r="width"===t?e.offsetWidth:e.offsetHeight,c=(b(e),p(e)),i=0;(null==r||r<=0)&&(r=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 l=void 0!==r||c,a=r||i;if(-1===n)return l?a-h(e,["border","padding"],o):i;if(l){var s=2===n?-h(e,["border"],o):h(e,["margin"],o);return a+(1===n?0:s)}return i+h(e,f.slice(n),o)}m(["Width","Height"],(function(e){v["doc"+e]=function(t){var n=t.document;return Math.max(n.documentElement["scroll"+e],n.body["scroll"+e],v["viewport"+e](n))},v["viewport"+e]=function(t){var n="client"+e,o=t.document,r=o.body,c=o.documentElement[n];return"CSS1Compat"===o.compatMode&&c||r&&r[n]||c}}));var k={position:"absolute",visibility:"hidden",display:"block"};function _(e){var t=void 0,n=arguments;return 0!==e.offsetWidth?t=j.apply(void 0,n):g(e,k,(function(){t=j.apply(void 0,n)})),t}function y(e,t,n){var o=n;if("object"!==(void 0===t?"undefined":r(t)))return void 0!==o?("number"==typeof o&&(o+="px"),void(e.style[t]=o)):b(e,t);for(var c in t)t.hasOwnProperty(c)&&y(e,c,t[c])}m(["width","height"],(function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);v["outer"+t]=function(t,n){return t&&_(t,e,n?0:1)};var n="width"===e?["Left","Right"]:["Top","Bottom"];v[e]=function(t,o){return void 0===o?t&&_(t,e,-1):t?(b(t),p(t)&&(o+=h(t,["padding","border"],n)),y(t,e,o)):void 0}})),e.exports=o({getWindow:function(e){var t=e.ownerDocument||e;return t.defaultView||t.parentWindow},offset:function(e,t){if(void 0===t)return a(e);!function(e,t){"static"===y(e,"position")&&(e.style.position="relative");var n=a(e),o={},r=void 0,c=void 0;for(c in t)t.hasOwnProperty(c)&&(r=parseFloat(y(e,c))||0,o[c]=r+t[c]-n[c]);y(e,o)}(e,t)},isWindow:O,each:m,css:y,clone:function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);if(e.overflow)for(var n in e)e.hasOwnProperty(n)&&(t.overflow[n]=e.overflow[n]);return t},scrollLeft:function(e,t){if(O(e)){if(void 0===t)return i(e);window.scrollTo(t,l(e))}else{if(void 0===t)return e.scrollLeft;e.scrollLeft=t}},scrollTop:function(e,t){if(O(e)){if(void 0===t)return l(e);window.scrollTo(i(e),t)}else{if(void 0===t)return e.scrollTop;e.scrollTop=t}},viewportWidth:0,viewportHeight:0},v)},function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function __(){this.constructor=e}o(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,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i=this&&this.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&(n[o[r]]=e[o[r]])}return n};t.__esModule=!0;var l=n(11),a=n(24),s=n(250),u=n(251),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={lineHeight:null},t.textarea=null,t.onResize=function(e){t.props.onResize&&t.props.onResize(e)},t.updateLineHeight=function(){t.textarea&&t.setState({lineHeight:u(t.textarea)})},t.onChange=function(e){var n=t.props.onChange;t.currentValue=e.currentTarget.value,n&&n(e)},t}return r(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props,n=t.maxRows,o=t.async;"number"==typeof n&&this.updateLineHeight(),"number"==typeof n||o?setTimeout((function(){return e.textarea&&s(e.textarea)})):this.textarea&&s(this.textarea),this.textarea&&this.textarea.addEventListener("autosize:resized",this.onResize)},t.prototype.componentWillUnmount=function(){this.textarea&&(this.textarea.removeEventListener("autosize:resized",this.onResize),s.destroy(this.textarea))},t.prototype.render=function(){var e=this,t=this.props,n=(t.onResize,t.maxRows),o=(t.onChange,t.style),r=(t.innerRef,t.children),a=i(t,["onResize","maxRows","onChange","style","innerRef","children"]),s=this.state.lineHeight,u=n&&s?s*n:null;return l.createElement("textarea",c({},a,{onChange:this.onChange,style:u?c({},o,{maxHeight:u}):o,ref:function(t){e.textarea=t,"function"==typeof e.props.innerRef?e.props.innerRef(t):e.props.innerRef&&(e.props.innerRef.current=t)}}),r)},t.prototype.componentDidUpdate=function(){this.textarea&&s.update(this.textarea)},t.defaultProps={rows:1,async:!1},t.propTypes={rows:a.number,maxRows:a.number,onResize:a.func,innerRef:a.any,async:a.bool},t}(l.Component);t.TextareaAutosize=l.forwardRef((function(e,t){return l.createElement(d,c({},e,{innerRef:t}))}))},function(e,t,n){var o,r;void 0===(r="function"==typeof(o=function(e,t){"use strict";var n,o,r="function"==typeof Map?new Map:(n=[],o=[],{has:function(e){return n.indexOf(e)>-1},get:function(e){return o[n.indexOf(e)]},set:function(e,t){-1===n.indexOf(e)&&(n.push(e),o.push(t))},delete:function(e){var t=n.indexOf(e);t>-1&&(n.splice(t,1),o.splice(t,1))}}),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=r.get(e);t&&t.destroy()}function l(e){var t=r.get(e);t&&t.update()}var a=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?((a=function(e){return e}).destroy=function(e){return e},a.update=function(e){return e}):((a=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&&!r.has(e)){var t,n=null,o=null,i=null,l=function(){e.clientWidth!==o&&d()},a=function(t){window.removeEventListener("resize",l,!1),e.removeEventListener("input",d,!1),e.removeEventListener("keyup",d,!1),e.removeEventListener("autosize:destroy",a,!1),e.removeEventListener("autosize:update",d,!1),Object.keys(t).forEach((function(n){e.style[n]=t[n]})),r.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",a,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",d,!1),window.addEventListener("resize",l,!1),e.addEventListener("input",d,!1),e.addEventListener("autosize:update",d,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",r.set(e,{destroy:a,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),r=document.documentElement&&document.documentElement.scrollTop;e.style.height="",e.style.height=e.scrollHeight+n+"px",o=e.clientWidth,t.forEach((function(e){e.node.scrollTop=e.scrollTop})),r&&(document.documentElement.scrollTop=r)}}function d(){u();var t=Math.round(parseFloat(e.style.height)),n=window.getComputedStyle(e,null),o="content-box"===n.boxSizing?Math.round(parseFloat(n.height)):e.offsetHeight;if(o<t?"hidden"===n.overflowY&&(s("scroll"),u(),o="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight):"hidden"!==n.overflowY&&(s("hidden"),u(),o="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight),i!==o){i=o;var r=c("autosize:resized");try{e.dispatchEvent(r)}catch(e){}}}}(e)})),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],i),e},a.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],l),e}),t.default=a,e.exports=t.default})?o.apply(t,[e,t]):o)||(e.exports=r)},function(e,t,n){var o=n(252);e.exports=function(e){var t=o(e,"line-height"),n=parseFloat(t,10);if(t===n+""){var r=e.style.lineHeight;e.style.lineHeight=t+"em",t=o(e,"line-height"),n=parseFloat(t,10),r?e.style.lineHeight=r: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 l=o(e,"font-size");i.style.fontSize=l,i.style.padding="0px",i.style.border="0px";var a=document.body;a.appendChild(i),n=i.offsetHeight,a.removeChild(i)}return n}},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()}))]}},function(e,t,n){"use strict";var o=n(0),r=n(6);const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"}));t.a=c},,,,,,,,,,,,function(e,t,n){"use strict";var o=n(0),r=n(6),c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M20.1 5.1L16.9 2 6.2 12.7l-1.3 4.4 4.5-1.3L20.1 5.1zM4 20.8h8v-1.5H4v1.5z"}));t.a=c},,,,,,,,,,function(e,t,n){"use strict";var o=n(7),r=n(0),c=n(1),i=n(31);t.a=Object(r.forwardRef)((function(e,t){const[n,l]=Object(r.useState)(!1);return Object(r.useEffect)(()=>{n&&Object(i.speak)(Object(c.__)("Use left and right arrow keys to move through blocks"))},[n]),Object(r.createElement)("div",Object(o.a)({ref:t,role:"listbox","aria-orientation":"horizontal",onFocus:()=>{l(!0)},onBlur:e=>{!e.currentTarget.contains(e.relatedTarget)&&l(!1)}},e))}))},function(e,t,n){"use strict";var o=n(7),r=n(0),c=n(3),i=n(158);t.a=Object(r.forwardRef)((function(e,t){const n=Object(r.useContext)(i.a);return Object(r.createElement)(c.__unstableCompositeGroup,Object(o.a)({state:n,role:"presentation",ref:t},e))}))},function(e,t,n){"use strict";var o=n(7),r=n(0),c=n(3),i=n(158);t.a=Object(r.forwardRef)((function({isFirst:e,as:t,children:n,...l},a){const s=Object(r.useContext)(i.a);return Object(r.createElement)(c.__unstableCompositeItem,Object(o.a)({ref:a,state:s,role:"option",focusable:!0},l),o=>{const i={...o,tabIndex:e?0:o.tabIndex};return t?Object(r.createElement)(t,i,n):"function"==typeof n?n(i):Object(r.createElement)(c.Button,i,n)})}))},function(e,t,n){"use strict";var o=n(0),r=n(6);const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"}));t.a=c},function(e,t,n){"use strict";var o=n(0),r=n(6);const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"}));t.a=c},function(e,t,n){"use strict";var o=n(0),r=n(6);const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(o.createElement)(r.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},function(e,t,n){"use strict";var o=n(0),r=n(6);const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M18.5 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},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var o=n(2),r=n(0),c=n(22),i=n(4),l=n(127),a=n(13);function s(e){const t=Object(r.useRef)(),n=function(e){return Object(i.useSelect)(t=>{const{getSelectedBlocksInitialCaretPosition:n,isMultiSelecting:o,isNavigationMode:r,isBlockSelected:c}=t(a.a);if(c(e)&&!o()&&!r())return n()},[e])}(e);return Object(r.useEffect)(()=>{if(null==n)return;if(!t.current)return;const{ownerDocument:e}=t.current;if(t.current.contains(e.activeElement))return;const r=c.focus.tabbable.find(t.current).filter(e=>Object(c.isTextField)(e)),i=-1===n,a=(i?o.last:o.first)(r)||t.current;Object(l.c)(t.current,a)&&!a.closest(".block-list-appender")?Object(c.placeCaretAtHorizontalEdge)(a,i):t.current.focus()},[n]),t}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var o=n(138),r=n.n(o),c=n(0),i=n(4),l=n(22),a=n(13);function s(e){const t=Object(c.useRef)(),n=Object(i.useSelect)(t=>{const{isBlockSelected:n,getBlockSelectionEnd:o}=t(a.a);return n(e)||o()===e},[e]);return Object(c.useEffect)(()=>{if(!n)return;const e=t.current;if(!e)return;if(e.contains(e.ownerDocument.activeElement))return;const o=Object(l.getScrollContainer)(e)||e.ownerDocument.defaultView;o&&r()(e,o,{onlyScrollIfNeeded:!0})},[n]),t}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var o=n(4),r=n(9),c=n(127),i=n(13);function l(e){const{isBlockSelected:t}=Object(o.useSelect)(i.a),{selectBlock:n,selectionChange:l}=Object(o.useDispatch)(i.a);return Object(r.useRefEffect)(o=>{function r(r){t(e)?r.target.isContentEditable||l(e):Object(c.c)(o,r.target)&&n(e)}return o.addEventListener("focusin",r),()=>{o.removeEventListener("focusin",r)}},[t,n])}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var o=n(4),r=n(9),c=n(13),i=n(127);function l(e,t){Array.from(e.closest(".is-root-container").querySelectorAll(".rich-text")).forEach(e=>{t?e.setAttribute("contenteditable",!0):e.removeAttribute("contenteditable")})}function a(e){const{startMultiSelect:t,stopMultiSelect:n,multiSelect:a,selectBlock:s}=Object(o.useDispatch)(c.a),{isSelectionEnabled:u,isBlockSelected:d,getBlockParents:b,getBlockSelectionStart:m,hasMultiSelection:p}=Object(o.useSelect)(c.a);return Object(r.useRefEffect)(o=>{const{ownerDocument:r}=o,{defaultView:c}=r;let f,g;function h({isSelectionEnd:t}){const n=c.getSelection();if(!n.rangeCount||n.isCollapsed)return void l(o,!0);const r=Object(i.a)(n.focusNode);if(e===r){if(s(e),t&&(l(o,!0),n.rangeCount)){const{commonAncestorContainer:e}=n.getRangeAt(0);f.contains(e)&&f.focus()}}else{const t=[...b(e),e],n=[...b(r),r],o=Math.min(t.length,n.length)-1;a(t[o],n[o])}}function O(){r.removeEventListener("selectionchange",h),c.removeEventListener("mouseup",O),g=c.requestAnimationFrame(()=>{h({isSelectionEnd:!0}),n()})}function v({buttons:n}){1===n&&u()&&d(e)&&(f=r.activeElement,t(),r.addEventListener("selectionchange",h),c.addEventListener("mouseup",O),l(o,!1))}function j(t){if(u()&&0===t.button)if(t.shiftKey){const n=m();n!==e&&(l(o,!1),a(n,e),t.preventDefault())}else p()&&s(e)}return o.addEventListener("mousedown",j),o.addEventListener("mouseleave",v),()=>{o.removeEventListener("mousedown",j),o.removeEventListener("mouseleave",v),r.removeEventListener("selectionchange",h),c.removeEventListener("mouseup",O),c.cancelAnimationFrame(g)}},[e,t,n,a,s,u,d,b])}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var o=n(22),r=n(14),c=n(4),i=n(9),l=n(13);function a(e){const t=Object(c.useSelect)(t=>t(l.a).isBlockSelected(e),[e]),{getBlockRootClientId:n,getBlockIndex:a}=Object(c.useSelect)(l.a),{insertDefaultBlock:s,removeBlock:u}=Object(c.useDispatch)(l.a);return Object(i.useRefEffect)(c=>{if(t)return c.addEventListener("keydown",i),c.addEventListener("dragstart",l),()=>{c.removeEventListener("keydown",i),c.removeEventListener("dragstart",l)};function i(t){const{keyCode:i,target:l}=t;i!==r.ENTER&&i!==r.BACKSPACE&&i!==r.DELETE||l!==c||Object(o.isTextField)(l)||(t.preventDefault(),i===r.ENTER?s({},n(e),a(e)+1):u(e))}function l(e){e.preventDefault()}},[e,t,n,a,s,u])}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n(4),r=n(9),c=n(13);function i(e){const{isNavigationMode:t,isBlockSelected:n}=Object(o.useSelect)(c.a),{setNavigationMode:i,selectBlock:l}=Object(o.useDispatch)(c.a);return Object(r.useRefEffect)(o=>{function r(o){t()&&!o.defaultPrevented&&(o.preventDefault(),n(e)?i(!1):l(e))}return o.addEventListener("mousedown",r),()=>{o.addEventListener("mousedown",r)}},[e,t,n,i])}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var o=n(4),r=n(9),c=n(13);function i(e){if(e.defaultPrevented)return;const t="mouseover"===e.type?"add":"remove";e.preventDefault(),e.currentTarget.classList[t]("is-hovered")}function l(){const e=Object(o.useSelect)(e=>{const{isNavigationMode:t,getSettings:n}=e(c.a);return t()||n().outlineMode},[]);return Object(r.useRefEffect)(t=>{if(e)return t.addEventListener("mouseout",i),t.addEventListener("mouseover",i),()=>{t.removeEventListener("mouseout",i),t.removeEventListener("mouseover",i),t.classList.remove("is-hovered")}},[e])}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n(9),r=n(0),c=n(101);function i(){const e=Object(r.useContext)(c.b);return Object(o.useRefEffect)(t=>{if(e)return e.observe(t),()=>{e.unobserve(t)}},[e])}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var o=n(10),r=n.n(o),c=n(4),i=n(8),l=n(13);function a(e){return Object(c.useSelect)(t=>{const{isBlockBeingDragged:n,isBlockHighlighted:o,isBlockSelected:c,isBlockMultiSelected:a,getBlockName:s,getSettings:u,hasSelectedInnerBlock:d,isTyping:b,__experimentalGetActiveBlockIdByBlockNames:m}=t(l.a),{__experimentalSpotlightEntityBlocks:p,outlineMode:f}=u(),g=n(e),h=c(e),O=s(e),v=d(e,!0),j=m(p);return r()({"is-selected":h,"is-highlighted":o(e),"is-multi-selected":a(e),"is-reusable":Object(i.isReusableBlock)(Object(i.getBlockType)(O)),"is-dragging":g,"has-child-selected":v,"has-active-entity":j,"is-active-entity":j===e,"remove-outline":h&&f&&b()})},[e])}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n(4),r=n(8),c=n(13);function i(e){return Object(o.useSelect)(t=>{const n=t(c.a).getBlockName(e),o=Object(r.getBlockType)(n);if(o.apiVersion>1||Object(r.hasBlockSupport)(o,"lightBlockWrapper",!1))return Object(r.getBlockDefaultClassName)(n)},[e])}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n(4),r=n(8),c=n(13);function i(e){return Object(o.useSelect)(t=>{const{getBlockName:n,getBlockAttributes:o}=t(c.a),{className:i}=o(e);if(!i)return;const l=Object(r.getBlockType)(n(e));return l.apiVersion>1||Object(r.hasBlockSupport)(l,"lightBlockWrapper",!1)?i:void 0},[e])}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var o=n(10),r=n.n(o),c=n(4),i=n(13);function l(e){return Object(c.useSelect)(t=>{const{hasBlockMovingClientId:n,canInsertBlockType:o,getBlockName:c,getBlockRootClientId:l,isBlockSelected:a}=t(i.a);if(!a(e))return;const s=n();return s?r()("is-block-moving-mode",{"can-insert-moving-block":o(c(s),l(e))}):void 0},[e])}},function(e,t,n){"use strict";var o;Object.defineProperty(t,"__esModule",{value:!0}),t.diffChars=function(e,t,n){return r.diff(e,t,n)},t.characterDiff=void 0;var r=new(((o=n(375))&&o.__esModule?o:{default:o}).default);t.characterDiff=r},function(e,t,n){"use strict";t.match=function(e,t){return a(e).some((function(e){var n=e.inverse,o="all"===e.type||t.type===e.type;if(o&&n||!o&&!n)return!1;var r=e.expressions.every((function(e){var n=e.feature,o=e.modifier,r=e.value,c=t[n];if(!c)return!1;switch(n){case"orientation":case"scan":return c.toLowerCase()===r.toLowerCase();case"width":case"height":case"device-width":case"device-height":r=d(r),c=d(c);break;case"resolution":r=u(r),c=u(c);break;case"aspect-ratio":case"device-aspect-ratio":case"device-pixel-ratio":r=s(r),c=s(c);break;case"grid":case"color":case"color-index":case"monochrome":r=parseInt(r,10)||1,c=parseInt(c,10)||0}switch(o){case"min":return c>=r;case"max":return c<=r;default:return c===r}}));return r&&!n||!r&&n}))},t.parse=a;var o=/(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i,r=/\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/,c=/^(?:(min|max)-)?(.+)/,i=/(em|rem|px|cm|mm|in|pt|pc)?$/,l=/(dpi|dpcm|dppx)?$/;function a(e){return e.split(",").map((function(e){var t=(e=e.trim()).match(o),n=t[1],i=t[2],l=t[3]||"",a={};return a.inverse=!!n&&"not"===n.toLowerCase(),a.type=i?i.toLowerCase():"all",l=l.match(/\([^\)]+\)/g)||[],a.expressions=l.map((function(e){var t=e.match(r),n=t[1].toLowerCase().match(c);return{modifier:n[1],feature:n[2],value:t[2]}})),a}))}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(l)[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}}},function(e,t){var n=e.exports=function(e){return new o(e)};function o(e){this.value=e}function r(e,t,n){var o=[],r=[],l=!0;return function e(d){var b=n?c(d):d,m={},p=!0,f={node:b,node_:d,path:[].concat(o),parent:r[r.length-1],parents:r,key:o.slice(-1)[0],isRoot:0===o.length,level:o.length,circular:null,update:function(e,t){f.isRoot||(f.parent.node[f.key]=e),f.node=e,t&&(p=!1)},delete:function(e){delete f.parent.node[f.key],e&&(p=!1)},remove:function(e){a(f.parent.node)?f.parent.node.splice(f.key,1):delete f.parent.node[f.key],e&&(p=!1)},keys:null,before:function(e){m.before=e},after:function(e){m.after=e},pre:function(e){m.pre=e},post:function(e){m.post=e},stop:function(){l=!1},block:function(){p=!1}};if(!l)return f;function g(){if("object"==typeof f.node&&null!==f.node){f.keys&&f.node_===f.node||(f.keys=i(f.node)),f.isLeaf=0==f.keys.length;for(var e=0;e<r.length;e++)if(r[e].node_===d){f.circular=r[e];break}}else f.isLeaf=!0,f.keys=null;f.notLeaf=!f.isLeaf,f.notRoot=!f.isRoot}g();var h=t.call(f,f.node);return void 0!==h&&f.update&&f.update(h),m.before&&m.before.call(f,f.node),p?("object"!=typeof f.node||null===f.node||f.circular||(r.push(f),g(),s(f.keys,(function(t,r){o.push(t),m.pre&&m.pre.call(f,f.node[t],t);var c=e(f.node[t]);n&&u.call(f.node,t)&&(f.node[t]=c.node),c.isLast=r==f.keys.length-1,c.isFirst=0==r,m.post&&m.post.call(f,c),o.pop()})),r.pop()),m.after&&m.after.call(f,f.node),f):f}(e).node}function c(e){if("object"==typeof e&&null!==e){var t;if(a(e))t=[];else if("[object Date]"===l(e))t=new Date(e.getTime?e.getTime():e);else if(function(e){return"[object RegExp]"===l(e)}(e))t=new RegExp(e);else if(function(e){return"[object Error]"===l(e)}(e))t={message:e.message};else if(function(e){return"[object Boolean]"===l(e)}(e))t=new Boolean(e);else if(function(e){return"[object Number]"===l(e)}(e))t=new Number(e);else if(function(e){return"[object String]"===l(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__||{},o=function(){};o.prototype=n,t=new o}return s(i(e),(function(n){t[n]=e[n]})),t}return e}o.prototype.get=function(e){for(var t=this.value,n=0;n<e.length;n++){var o=e[n];if(!t||!u.call(t,o)){t=void 0;break}t=t[o]}return t},o.prototype.has=function(e){for(var t=this.value,n=0;n<e.length;n++){var o=e[n];if(!t||!u.call(t,o))return!1;t=t[o]}return!0},o.prototype.set=function(e,t){for(var n=this.value,o=0;o<e.length-1;o++){var r=e[o];u.call(n,r)||(n[r]={}),n=n[r]}return n[e[o]]=t,t},o.prototype.map=function(e){return r(this.value,e,!0)},o.prototype.forEach=function(e){return this.value=r(this.value,e,!1),this.value},o.prototype.reduce=function(e,t){var n=1===arguments.length,o=n?this.value:t;return this.forEach((function(t){this.isRoot&&n||(o=e.call(this,o,t))})),o},o.prototype.paths=function(){var e=[];return this.forEach((function(t){e.push(this.path)})),e},o.prototype.nodes=function(){var e=[];return this.forEach((function(t){e.push(this.node)})),e},o.prototype.clone=function(){var e=[],t=[];return function n(o){for(var r=0;r<e.length;r++)if(e[r]===o)return t[r];if("object"==typeof o&&null!==o){var l=c(o);return e.push(o),t.push(l),s(i(o),(function(e){l[e]=n(o[e])})),e.pop(),t.pop(),l}return o}(this.value)};var i=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};function l(e){return Object.prototype.toString.call(e)}var a=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(o.prototype),(function(e){n[e]=function(t){var n=[].slice.call(arguments,1),r=new o(t);return r[e].apply(r,n)}}));var u=Object.hasOwnProperty||function(e,t){return t in e}},,,,,,,,,,,,function(e,t,n){"use strict";var o=n(0),r=n(6);const c=Object(o.createElement)(r.SVG,{width:"18",height:"18",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18"},Object(o.createElement)(r.Path,{d:"M5 4h2V2H5v2zm6-2v2h2V2h-2zm-6 8h2V8H5v2zm6 0h2V8h-2v2zm-6 6h2v-2H5v2zm6 0h2v-2h-2v2z"}));t.a=c},,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var o=n(0),r=n(6);const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M9.1 9v-.5c0-.6.2-1.1.7-1.4.5-.3 1.2-.5 2-.5.7 0 1.4.1 2.1.3.7.2 1.4.5 2.1.9l.2-1.9c-.6-.3-1.2-.5-1.9-.7-.8-.1-1.6-.2-2.4-.2-1.5 0-2.7.3-3.6 1-.8.7-1.2 1.5-1.2 2.6V9h2zM20 12H4v1h8.3c.3.1.6.2.8.3.5.2.9.5 1.1.8.3.3.4.7.4 1.2 0 .7-.2 1.1-.8 1.5-.5.3-1.2.5-2.1.5-.8 0-1.6-.1-2.4-.3-.8-.2-1.5-.5-2.2-.8L7 18.1c.5.2 1.2.4 2 .6.8.2 1.6.3 2.4.3 1.7 0 3-.3 3.9-1 .9-.7 1.3-1.6 1.3-2.8 0-.9-.2-1.7-.7-2.2H20v-1z"}));t.a=c},function(e,t,n){"use strict";var o=n(0),r=n(6);const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M4 19.8h8.9v-1.5H4v1.5zm8.9-15.6H4v1.5h8.9V4.2zm-8.9 7v1.5h16v-1.5H4z"}));t.a=c},function(e,t,n){"use strict";var o=n(0),r=n(6);const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M16.4 4.2H7.6v1.5h8.9V4.2zM4 11.2v1.5h16v-1.5H4zm3.6 8.6h8.9v-1.5H7.6v1.5z"}));t.a=c},function(e,t,n){"use strict";var o=n(0),r=n(6);const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M11.1 19.8H20v-1.5h-8.9v1.5zm0-15.6v1.5H20V4.2h-8.9zM4 12.8h16v-1.5H4v1.5z"}));t.a=c},function(e,t,n){"use strict";var o=n(0),r=n(6);const c=Object(o.createElement)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)(r.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"}));t.a=c},function(e,t,n){"use strict";function o(){}function r(e,t,n,o,r){for(var c=0,i=t.length,l=0,a=0;c<i;c++){var s=t[c];if(s.removed){if(s.value=e.join(o.slice(a,a+s.count)),a+=s.count,c&&t[c-1].added){var u=t[c-1];t[c-1]=t[c],t[c]=u}}else{if(!s.added&&r){var d=n.slice(l,l+s.count);d=d.map((function(e,t){var n=o[a+t];return n.length>e.length?n:e})),s.value=e.join(d)}else s.value=e.join(n.slice(l,l+s.count));l+=s.count,s.added||(a+=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=o,o.prototype={diff:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=n.callback;"function"==typeof n&&(o=n,n={}),this.options=n;var i=this;function l(e){return o?(setTimeout((function(){o(void 0,e)}),0),!0):e}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e));var a=(t=this.removeEmpty(this.tokenize(t))).length,s=e.length,u=1,d=a+s,b=[{newPos:-1,components:[]}],m=this.extractCommon(b[0],t,e,0);if(b[0].newPos+1>=a&&m+1>=s)return l([{value:this.join(t),count:t.length}]);function p(){for(var n=-1*u;n<=u;n+=2){var o=void 0,d=b[n-1],m=b[n+1],p=(m?m.newPos:0)-n;d&&(b[n-1]=void 0);var f=d&&d.newPos+1<a,g=m&&0<=p&&p<s;if(f||g){if(!f||g&&d.newPos<m.newPos?(o=c(m),i.pushComponent(o.components,void 0,!0)):((o=d).newPos++,i.pushComponent(o.components,!0,void 0)),p=i.extractCommon(o,t,e,n),o.newPos+1>=a&&p+1>=s)return l(r(i,o.components,t,e,i.useLongestToken));b[n]=o}else b[n]=void 0}u++}if(o)!function e(){setTimeout((function(){if(u>d)return o();p()||e()}),0)}();else for(;u<=d;){var f=p();if(f)return f}},pushComponent:function(e,t,n){var o=e[e.length-1];o&&o.added===t&&o.removed===n?e[e.length-1]={count:o.count+1,added:t,removed:n}:e.push({count:1,added:t,removed:n})},extractCommon:function(e,t,n,o){for(var r=t.length,c=n.length,i=e.newPos,l=i-o,a=0;i+1<r&&l+1<c&&this.equals(t[i+1],n[l+1]);)i++,l++,a++;return a&&e.components.push({count:a}),e.newPos=i,l},equals:function(e,t){return this.options.comparator?this.options.comparator(e,t):e===t||this.options.ignoreCase&&e.toLowerCase()===t.toLowerCase()},removeEmpty:function(e){for(var t=[],n=0;n<e.length;n++)e[n]&&t.push(e[n]);return t},castInput:function(e){return e},tokenize:function(e){return e.split("")},join:function(e){return e.join("")}}},function(e,t,n){"use strict";var o=n(0),r=n(6);const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7.8 16.5H5c-.3 0-.5-.2-.5-.5v-6.2h6.8v6.7zm0-8.3H4.5V5c0-.3.2-.5.5-.5h6.2v6.7zm8.3 7.8c0 .3-.2.5-.5.5h-6.2v-6.8h6.8V19zm0-7.8h-6.8V4.5H19c.3 0 .5.2.5.5v6.2z",fillRule:"evenodd",clipRule:"evenodd"}));t.a=c},function(e,t,n){"use strict";var o=n(0),r=n(6);const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M18.7 3H5.3C4 3 3 4 3 5.3v13.4C3 20 4 21 5.3 21h13.4c1.3 0 2.3-1 2.3-2.3V5.3C21 4 20 3 18.7 3zm.8 15.7c0 .4-.4.8-.8.8H5.3c-.4 0-.8-.4-.8-.8V5.3c0-.4.4-.8.8-.8h13.4c.4 0 .8.4.8.8v13.4zM10 15l5-3-5-3v6z"}));t.a=c},function(e,t,n){"use strict";var o=n(0),r=n(6);const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M20 10.8H6.7l4.1-4.5-1.1-1.1-5.8 6.3 5.8 5.8 1.1-1.1-4-3.9H20z"}));t.a=c},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t),n.d(t,"__experimentalGetBorderClassesAndStyles",(function(){return Dn})),n.d(t,"__experimentalUseBorderProps",(function(){return Fn})),n.d(t,"__experimentalGetColorClassesAndStyles",(function(){return Hn})),n.d(t,"__experimentalUseColorProps",(function(){return zn})),n.d(t,"__experimentalUseCustomSides",(function(){return pn})),n.d(t,"getColorClassName",(function(){return oe})),n.d(t,"getColorObjectByAttributeValues",(function(){return te})),n.d(t,"getColorObjectByColorValue",(function(){return ne})),n.d(t,"createCustomColorsHOC",(function(){return Wn})),n.d(t,"withColors",(function(){return Kn})),n.d(t,"__experimentalGetGradientClass",(function(){return ce})),n.d(t,"getGradientValueBySlug",(function(){return ie})),n.d(t,"__experimentalGetGradientObjectByGradientValue",(function(){return le})),n.d(t,"getGradientSlugByValue",(function(){return ae})),n.d(t,"__experimentalUseGradient",(function(){return se})),n.d(t,"getFontSize",(function(){return Gt})),n.d(t,"getFontSizeClass",(function(){return Kt})),n.d(t,"getFontSizeObjectByValue",(function(){return Wt})),n.d(t,"FontSizePicker",(function(){return $t})),n.d(t,"withFontSizes",(function(){return qn})),n.d(t,"AlignmentControl",(function(){return to})),n.d(t,"AlignmentToolbar",(function(){return no})),n.d(t,"Autocomplete",(function(){return so})),n.d(t,"BlockAlignmentControl",(function(){return I})),n.d(t,"BlockAlignmentToolbar",(function(){return x})),n.d(t,"__experimentalBlockFullHeightAligmentControl",(function(){return bo})),n.d(t,"__experimentalBlockAlignmentMatrixControl",(function(){return mo})),n.d(t,"BlockBreadcrumb",(function(){return go})),n.d(t,"__experimentalBlockContentOverlay",(function(){return ho})),n.d(t,"BlockContextProvider",(function(){return Oo.a})),n.d(t,"BlockControls",(function(){return d.b})),n.d(t,"BlockFormatControls",(function(){return d.a})),n.d(t,"BlockColorsStyleSelector",(function(){return _o})),n.d(t,"BlockEdit",(function(){return yo.a})),n.d(t,"useBlockEditContext",(function(){return A.b})),n.d(t,"BlockIcon",(function(){return co.a})),n.d(t,"BlockNavigationDropdown",(function(){return rr})),n.d(t,"__experimentalBlockVariationPicker",(function(){return ir})),n.d(t,"__experimentalBlockPatternSetup",(function(){return hr})),n.d(t,"__experimentalBlockVariationTransforms",(function(){return jr})),n.d(t,"BlockVerticalAlignmentToolbar",(function(){return Br})),n.d(t,"BlockVerticalAlignmentControl",(function(){return wr})),n.d(t,"__experimentalBorderRadiusControl",(function(){return Pe})),n.d(t,"__experimentalBorderStyleControl",(function(){return Ve})),n.d(t,"ButtonBlockerAppender",(function(){return Ir.a})),n.d(t,"ButtonBlockAppender",(function(){return Ir.b})),n.d(t,"ColorPalette",(function(){return Tr})),n.d(t,"ColorPaletteControl",(function(){return Nr})),n.d(t,"ContrastChecker",(function(){return nt})),n.d(t,"__experimentalDuotoneControl",(function(){return Cn})),n.d(t,"__experimentalFontAppearanceControl",(function(){return Pt})),n.d(t,"__experimentalFontFamilyControl",(function(){return Ft})),n.d(t,"__experimentalLetterSpacingControl",(function(){return Zt})),n.d(t,"__experimentalColorGradientControl",(function(){return ge})),n.d(t,"__experimentalPanelColorGradientSettings",(function(){return Je})),n.d(t,"__experimentalImageSizeControl",(function(){return Pr})),n.d(t,"InnerBlocks",(function(){return Yr})),n.d(t,"__experimentalUseInnerBlocksProps",(function(){return qr})),n.d(t,"InspectorAdvancedControls",(function(){return V})),n.d(t,"InspectorControls",(function(){return W})),n.d(t,"JustifyToolbar",(function(){return oc})),n.d(t,"JustifyContentControl",(function(){return nc})),n.d(t,"__experimentalLinkControl",(function(){return Ic})),n.d(t,"__experimentalLinkControlSearchInput",(function(){return yc})),n.d(t,"__experimentalLinkControlSearchResults",(function(){return hc})),n.d(t,"__experimentalLinkControlSearchItem",(function(){return fc})),n.d(t,"LineHeightControl",(function(){return It})),n.d(t,"__experimentalListView",(function(){return nr})),n.d(t,"__experimentalListViewBlockFill",(function(){return Ho})),n.d(t,"__experimentalListViewEditor",(function(){return Zc})),n.d(t,"MediaReplaceFlow",(function(){return ri})),n.d(t,"MediaPlaceholder",(function(){return ui})),n.d(t,"MediaUpload",(function(){return ni})),n.d(t,"MediaUploadCheck",(function(){return oi})),n.d(t,"PanelColorSettings",(function(){return di})),n.d(t,"PlainText",(function(){return gi})),n.d(t,"__experimentalResponsiveBlockControl",(function(){return Oi})),n.d(t,"RichText",(function(){return Qc})),n.d(t,"RichTextShortcut",(function(){return vi})),n.d(t,"RichTextToolbarButton",(function(){return ji})),n.d(t,"__unstableRichTextInputEvent",(function(){return ki})),n.d(t,"ToolSelector",(function(){return yi})),n.d(t,"__experimentalUnitControl",(function(){return Ei})),n.d(t,"URLInput",(function(){return dc})),n.d(t,"URLInputButton",(function(){return wi})),n.d(t,"URLPopover",(function(){return ai})),n.d(t,"__experimentalImageURLInputUI",(function(){return Ti})),n.d(t,"withColorContext",(function(){return xr})),n.d(t,"__unstableBlockSettingsMenuFirstItem",(function(){return Ni.a})),n.d(t,"__unstableInserterMenuExtension",(function(){return Li.a})),n.d(t,"__experimentalPreviewOptions",(function(){return Ri})),n.d(t,"__experimentalUseResizeCanvas",(function(){return zi})),n.d(t,"BlockInspector",(function(){return Zi})),n.d(t,"BlockList",(function(){return zr.c})),n.d(t,"useBlockProps",(function(){return Ji.a})),n.d(t,"__experimentalLayoutStyle",(function(){return k.b})),n.d(t,"BlockMover",(function(){return el.a})),n.d(t,"BlockPreview",(function(){return lr.a})),n.d(t,"BlockSelectionClearer",(function(){return tl.a})),n.d(t,"__unstableUseBlockSelectionClearer",(function(){return tl.b})),n.d(t,"BlockSettingsMenu",(function(){return nl.a})),n.d(t,"BlockSettingsMenuControls",(function(){return ol.a})),n.d(t,"BlockTitle",(function(){return fo.a})),n.d(t,"BlockToolbar",(function(){return rl.a})),n.d(t,"BlockTools",(function(){return sl})),n.d(t,"CopyHandler",(function(){return ul.a})),n.d(t,"__unstableUseClipboardHandler",(function(){return ul.b})),n.d(t,"DefaultBlockAppender",(function(){return Mr.a})),n.d(t,"__unstableEditorStyles",(function(){return Il})),n.d(t,"Inserter",(function(){return Ko.a})),n.d(t,"__experimentalLibrary",(function(){return Tl})),n.d(t,"BlockEditorKeyboardShortcuts",(function(){return Pl})),n.d(t,"MultiSelectScrollIntoView",(function(){return Rl})),n.d(t,"NavigableToolbar",(function(){return Al.a})),n.d(t,"ObserveTyping",(function(){return Vl})),n.d(t,"__unstableUseTypingObserver",(function(){return Fl})),n.d(t,"__unstableUseMouseMoveTypingReset",(function(){return Dl})),n.d(t,"PreserveScrollInReorder",(function(){return Hl})),n.d(t,"SkipToSelectedBlock",(function(){return Ui})),n.d(t,"Typewriter",(function(){return Wl})),n.d(t,"__unstableUseTypewriter",(function(){return Gl})),n.d(t,"Warning",(function(){return Kl.a})),n.d(t,"WritingFlow",(function(){return ta})),n.d(t,"__unstableUseCanvasClickRedirect",(function(){return oa})),n.d(t,"useBlockDisplayInformation",(function(){return Po.a})),n.d(t,"__unstableIframe",(function(){return ia})),n.d(t,"__experimentalUseNoRecursiveRenders",(function(){return aa})),n.d(t,"BlockEditorProvider",(function(){return sa.a})),n.d(t,"__experimentalUseSimulatedMediaQuery",(function(){return Hi})),n.d(t,"useSetting",(function(){return Z})),n.d(t,"transformStyles",(function(){return wl})),n.d(t,"validateThemeColors",(function(){return da})),n.d(t,"validateThemeGradients",(function(){return ba})),n.d(t,"__experimentalGetMatchingVariation",(function(){return vr})),n.d(t,"storeConfig",(function(){return _.b})),n.d(t,"store",(function(){return _.a})),n.d(t,"SETTINGS_DEFAULTS",(function(){return ua.b}));var o=n(7),r=n(0),c=n(10),i=n.n(c),l=n(2),a=n(9),s=n(21),u=n(8),d=n(103),b=n(1),m=n(3),p=n(6),f=Object(r.createElement)(p.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(p.Path,{d:"M4 9v6h14V9H4zm8-4.8H4v1.5h8V4.2zM4 19.8h8v-1.5H4v1.5z"})),g=Object(r.createElement)(p.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(p.Path,{d:"M5 15h14V9H5v6zm0 4.8h14v-1.5H5v1.5zM5 4.2v1.5h14V4.2H5z"})),h=Object(r.createElement)(p.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(p.Path,{d:"M6 15h14V9H6v6zm6-10.8v1.5h8V4.2h-8zm0 15.6h8v-1.5h-8v1.5z"})),O=Object(r.createElement)(p.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(p.Path,{d:"M5 9v6h14V9H5zm11-4.8H8v1.5h8V4.2zM8 19.8h8v-1.5H8v1.5z"})),v=Object(r.createElement)(p.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(p.Path,{d:"M5 4v11h14V4H5zm3 15.8h8v-1.5H8v1.5z"})),j=n(4),k=n(112),_=n(13);const y=["left","center","right","wide","full"],E=["wide","full"];function C(e=y){const{wideControlsEnabled:t=!1}=Object(j.useSelect)(e=>{const{getSettings:t}=e(_.a);return{wideControlsEnabled:t().alignWide}},[]),n=Object(k.d)();if("default"!==n.type)return[];const{alignments:o=y}=n;return e.filter(e=>(n.alignments||t||!E.includes(e))&&o.includes(e))}const S={left:{icon:f,title:Object(b.__)("Align left")},center:{icon:g,title:Object(b.__)("Align center")},right:{icon:h,title:Object(b.__)("Align right")},wide:{icon:O,title:Object(b.__)("Wide width")},full:{icon:v,title:Object(b.__)("Full width")}},w={isAlternate:!0};var B=function({value:e,onChange:t,controls:n,isToolbar:c,isCollapsed:i=!0}){const l=C(n);if(0===l.length)return null;const a=S[e],s=S.center,u=c?m.ToolbarGroup:m.ToolbarDropdownMenu,d=c?{isCollapsed:i}:{};return Object(r.createElement)(u,Object(o.a)({popoverProps:w,icon:a?a.icon:s.icon,label:Object(b.__)("Align"),toggleProps:{describedBy:Object(b.__)("Change alignment")},controls:l.map(n=>{return{...S[n],isActive:e===n,role:i?"menuitemradio":void 0,onClick:(o=n,()=>t(e===o?void 0:o))};var o})},d))};function I(e){return Object(r.createElement)(B,Object(o.a)({},e,{isToolbar:!1}))}function x(e){return Object(r.createElement)(B,Object(o.a)({},e,{isToolbar:!0}))}const T=["left","center","right","wide","full"],N=["wide","full"];function L(e,t=!0,n=!0){let o;return o=Array.isArray(e)?T.filter(t=>e.includes(t)):!0===e?T:[],!n||!0===e&&!t?Object(l.without)(o,...N):o}const P=Object(a.createHigherOrderComponent)(e=>t=>{const{name:n}=t,c=C(L(Object(u.getBlockSupport)(n,"align"),Object(u.hasBlockSupport)(n,"alignWide",!0)));return[c.length>0&&t.isSelected&&Object(r.createElement)(d.b,{key:"align-controls",group:"block"},Object(r.createElement)(I,{value:t.attributes.align,onChange:e=>{var n,o;e||(null===(n=Object(u.getBlockType)(t.name).attributes)||void 0===n||null===(o=n.align)||void 0===o?void 0:o.default)&&(e="");t.setAttributes({align:e})},controls:c})),Object(r.createElement)(e,Object(o.a)({key:"edit"},t))]},"withToolbarControls"),R=Object(a.createHigherOrderComponent)(e=>t=>{const{name:n,attributes:c}=t,{align:i}=c,l=C(L(Object(u.getBlockSupport)(n,"align"),Object(u.hasBlockSupport)(n,"alignWide",!0)));if(void 0===i)return Object(r.createElement)(e,t);let a=t.wrapperProps;return l.includes(i)&&(a={...a,"data-align":i}),Object(r.createElement)(e,Object(o.a)({},t,{wrapperProps:a}))});Object(s.addFilter)("blocks.registerBlockType","core/align/addAttribute",(function(e){return Object(l.has)(e.attributes,["align","type"])||Object(u.hasBlockSupport)(e,"align")&&(e.attributes={...e.attributes,align:{type:"string",enum:[...T,""]}}),e})),Object(s.addFilter)("editor.BlockListBlock","core/editor/align/with-data-align",R),Object(s.addFilter)("editor.BlockEdit","core/editor/align/with-toolbar-controls",P),Object(s.addFilter)("blocks.getSaveContent.extraProps","core/align/addAssignedAlign",(function(e,t,n){const{align:o}=n;return L(Object(u.getBlockSupport)(t,"align"),Object(u.hasBlockSupport)(t,"alignWide",!0)).includes(o)&&(e.className=i()("align"+o,e.className)),e}));var A=n(69);const{Fill:M,Slot:D}=Object(m.createSlotFill)("InspectorAdvancedControls");function F({children:e}){const{isSelected:t}=Object(A.b)();return t?Object(r.createElement)(m.__experimentalStyleProvider,{document:document},Object(r.createElement)(M,null,e)):null}F.slotName="InspectorAdvancedControls",F.Slot=D;var V=F,H=n(153);const{Fill:z,Slot:U}=Object(m.createSlotFill)("InspectorControls");function G({children:e}){return Object(H.a)()?Object(r.createElement)(m.__experimentalStyleProvider,{document:document},Object(r.createElement)(z,null,e)):null}G.Slot=U;var W=G;const K=/[\s#]/g,$=Object(a.createHigherOrderComponent)(e=>t=>{if(Object(u.hasBlockSupport)(t.name,"anchor")&&t.isSelected){const n="web"===r.Platform.OS,o=Object(r.createElement)(m.TextControl,{className:"html-anchor-control",label:Object(b.__)("HTML anchor"),help:Object(r.createElement)(r.Fragment,null,Object(b.__)("Enter a word or two — without spaces — to make a unique web address just for this block, called an “anchor.” Then, you’ll be able to link directly to this section of your page."),n&&Object(r.createElement)(m.ExternalLink,{href:"https://wordpress.org/support/article/page-jumps/"},Object(b.__)("Learn more about anchors"))),value:t.attributes.anchor||"",placeholder:n?null:Object(b.__)("Add an anchor"),onChange:e=>{e=e.replace(K,"-"),t.setAttributes({anchor:e})},autoCapitalize:"none",autoComplete:"off"});return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(e,t),n&&Object(r.createElement)(V,null,o),!n&&"core/heading"===t.name&&Object(r.createElement)(W,null,Object(r.createElement)(m.PanelBody,{title:Object(b.__)("Heading settings")},o)))}return Object(r.createElement)(e,t)},"withInspectorControl");Object(s.addFilter)("blocks.registerBlockType","core/anchor/attribute",(function(e){return Object(l.has)(e.attributes,["anchor","type"])||Object(u.hasBlockSupport)(e,"anchor")&&(e.attributes={...e.attributes,anchor:{type:"string",source:"attribute",attribute:"id",selector:"*"}}),e})),Object(s.addFilter)("editor.BlockEdit","core/editor/anchor/with-inspector-control",$),Object(s.addFilter)("blocks.getSaveContent.extraProps","core/anchor/save-props",(function(e,t,n){return Object(u.hasBlockSupport)(t,"anchor")&&(e.id=""===n.anchor?null:n.anchor),e}));const q=Object(a.createHigherOrderComponent)(e=>t=>Object(u.hasBlockSupport)(t.name,"customClassName",!0)&&t.isSelected?Object(r.createElement)(r.Fragment,null,Object(r.createElement)(e,t),Object(r.createElement)(V,null,Object(r.createElement)(m.TextControl,{autoComplete:"off",label:Object(b.__)("Additional CSS class(es)"),value:t.attributes.className||"",onChange:e=>{t.setAttributes({className:""!==e?e:void 0})},help:Object(b.__)("Separate multiple classes with spaces.")}))):Object(r.createElement)(e,t),"withInspectorControl");function Y(e){e=`<div data-custom-class-name>${e}</div>`;const t=Object(u.parseWithAttributeSchema)(e,{type:"string",source:"attribute",selector:"[data-custom-class-name] > *",attribute:"class"});return t?t.trim().split(/\s+/):[]}Object(s.addFilter)("blocks.registerBlockType","core/custom-class-name/attribute",(function(e){return Object(u.hasBlockSupport)(e,"customClassName",!0)&&(e.attributes={...e.attributes,className:{type:"string"}}),e})),Object(s.addFilter)("editor.BlockEdit","core/editor/custom-class-name/with-inspector-control",q),Object(s.addFilter)("blocks.getSaveContent.extraProps","core/custom-class-name/save-props",(function(e,t,n){return Object(u.hasBlockSupport)(t,"customClassName",!0)&&n.className&&(e.className=i()(e.className,n.className)),e})),Object(s.addFilter)("blocks.getBlockAttributes","core/custom-class-name/addParsedDifference",(function(e,t,n){if(Object(u.hasBlockSupport)(t,"customClassName",!0)){const o=Object(l.omit)(e,["className"]),r=Object(u.getSaveContent)(t,o),c=Y(r),i=Y(n),a=Object(l.difference)(i,c);a.length?e.className=a.join(" "):r&&delete e.className}return e})),Object(s.addFilter)("blocks.getSaveContent.extraProps","core/generated-class-name/save-props",(function(e,t){return Object(u.hasBlockSupport)(t,"className",!0)&&("string"==typeof e.className?e.className=Object(l.uniq)([Object(u.getBlockDefaultClassName)(t.name),...e.className.split(" ")]).join(" ").trim():e.className=Object(u.getBlockDefaultClassName)(t.name)),e}));const X={"color.palette":e=>void 0===e.colors?void 0:e.colors,"color.gradients":e=>void 0===e.gradients?void 0:e.gradients,"color.custom":e=>void 0===e.disableCustomColors?void 0:!e.disableCustomColors,"color.customGradient":e=>void 0===e.disableCustomGradients?void 0:!e.disableCustomGradients,"typography.fontSizes":e=>void 0===e.fontSizes?void 0:e.fontSizes,"typography.customFontSize":e=>void 0===e.disableCustomFontSizes?void 0:!e.disableCustomFontSizes,"typography.customLineHeight":e=>e.enableCustomLineHeight,"spacing.units":e=>{if(void 0!==e.enableCustomUnits)return!0===e.enableCustomUnits?["px","em","rem","vh","vw","%"]:e.enableCustomUnits},"spacing.customPadding":e=>e.enableCustomSpacing},Q={"color.gradients":!0,"color.palette":!0,"typography.fontFamilies":!0,"typography.fontSizes":!0};function Z(e){const{name:t}=Object(A.b)();return Object(j.useSelect)(n=>{var o;const r=n(_.a).getSettings(),c="__experimentalFeatures."+e,i=`__experimentalFeatures.blocks.${t}.${e}`,a=null!==(o=Object(l.get)(r,i))&&void 0!==o?o:Object(l.get)(r,c);var s,u;if(void 0!==a)return Q[e]?null!==(s=null!==(u=a.user)&&void 0!==u?u:a.theme)&&void 0!==s?s:a.core:a;const d=X[e]?X[e](r):void 0;return void 0!==d?d:"typography.dropCap"===e||void 0},[t,e])}var J=n(42),ee=n.n(J);const te=(e,t,n)=>{if(t){const n=Object(l.find)(e,{slug:t});if(n)return n}return{color:n}},ne=(e,t)=>Object(l.find)(e,{color:t});function oe(e,t){if(e&&t)return`has-${Object(l.kebabCase)(t)}-${e}`}const re=[];function ce(e){if(e)return`has-${e}-gradient-background`}function ie(e,t){const n=Object(l.find)(e,["slug",t]);return n&&n.gradient}function le(e,t){return Object(l.find)(e,["gradient",t])}function ae(e,t){const n=le(e,t);return n&&n.slug}function se({gradientAttribute:e="gradient",customGradientAttribute:t="customGradient"}={}){const{clientId:n}=Object(A.b)(),o=Z("color.gradients")||re,{gradient:c,customGradient:i}=Object(j.useSelect)(o=>{const{getBlockAttributes:r}=o(_.a),c=r(n)||{};return{customGradient:c[t],gradient:c[e]}},[n,e,t]),{updateBlockAttributes:l}=Object(j.useDispatch)(_.a),a=Object(r.useCallback)(r=>{const c=ae(o,r);l(n,c?{[e]:c,[t]:void 0}:{[e]:void 0,[t]:r})},[o,n,l]),s=ce(c);let u;return u=c?ie(o,c):i,{gradientClass:s,gradientValue:u,setGradient:a}}
49
  // translators: first %s: the color name or value (e.g. red or #ff0000)
50
- const ue=Object(b.__)("(Color: %s)"),de=Object(b.__)("(Gradient: %s)"),be=["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%)
51
- function me({colors:e,gradients:t,label:n,currentTab:o,colorValue:c,gradientValue:i}){let l,a;if("color"===o){if(c){l=c;const t=ne(e,l),n=t&&t.name;a=Object(b.sprintf)(ue,n||l)}}else if("gradient"===o&&i){l=i;const e=le(t,l),n=e&&e.name;a=Object(b.sprintf)(de,n||l)}return Object(r.createElement)(r.Fragment,null,n,!!l&&Object(r.createElement)(m.ColorIndicator,{colorValue:l,"aria-label":a}))}function pe({colors:e,gradients:t,disableCustomColors:n,disableCustomGradients:o,className:c,label:a,onColorChange:s,onGradientChange:u,colorValue:d,gradientValue:p,clearable:f}){const g=s&&(!Object(l.isEmpty)(e)||!n),h=u&&(!Object(l.isEmpty)(t)||!o),[O,v]=Object(r.useState)(p?"gradient":!!g&&"color");return g||h?Object(r.createElement)(m.BaseControl,{className:i()("block-editor-color-gradient-control",c)},Object(r.createElement)("fieldset",null,Object(r.createElement)("legend",null,Object(r.createElement)("div",{className:"block-editor-color-gradient-control__color-indicator"},Object(r.createElement)(m.BaseControl.VisualLabel,null,Object(r.createElement)(me,{currentTab:O,label:a,colorValue:d,gradientValue:p})))),g&&h&&Object(r.createElement)(m.ButtonGroup,{className:"block-editor-color-gradient-control__button-tabs"},Object(r.createElement)(m.Button,{isSmall:!0,isPressed:"color"===O,onClick:()=>v("color")},Object(b.__)("Solid")),Object(r.createElement)(m.Button,{isSmall:!0,isPressed:"gradient"===O,onClick:()=>v("gradient")},Object(b.__)("Gradient"))),("color"===O||!h)&&Object(r.createElement)(m.ColorPalette,{value:d,onChange:h?e=>{s(e),u()}:s,colors:e,disableCustomColors:n,clearable:f}),("gradient"===O||!g)&&Object(r.createElement)(m.GradientPicker,{value:p,onChange:g?e=>{u(e),s()}:u,gradients:t,disableCustomGradients:o,clearable:f}))):null}function fe(e){const t={};return t.colors=Z("color.palette"),t.gradients=Z("color.gradients"),t.disableCustomColors=!Z("color.custom"),t.disableCustomGradients=!Z("color.customGradient"),Object(r.createElement)(pe,Object(o.a)({},t,e))}var ge=function(e){return Object(l.every)(be,t=>e.hasOwnProperty(t))?Object(r.createElement)(pe,e):Object(r.createElement)(fe,e)};const he=e=>{if(!Object(l.isObject)(e)||Array.isArray(e))return e;const t=Object(l.pickBy)(Object(l.mapValues)(e,he),l.identity);return Object(l.isEmpty)(t)?void 0:t},Oe=[];function ve(e){var t;const{attributes:{borderColor:n,style:o},setAttributes:c}=e,i=Z("color.palette")||Oe,l=!Z("color.custom"),a=!Z("color.customGradient");return Object(r.createElement)(ge,{label:Object(b.__)("Color"),value:n||(null==o||null===(t=o.border)||void 0===t?void 0:t.color),colors:i,gradients:void 0,disableCustomColors:l,disableCustomGradients:a,onColorChange:e=>{const t=ne(i,e),n={...o,border:{...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:he(n),borderColor:r})}})}function je(e,t,n){var o;if(!Ge(t,"color")||We(t))return e;const{borderColor:r,style:c}=n,l=oe("border-color",r),a=i()(e.className,{"has-border-color":r||(null==c||null===(o=c.border)||void 0===o?void 0:o.color),[l]:!!l});return e.className=a||void 0,e}const ke=Object(a.createHigherOrderComponent)(e=>t=>{var n,c;const{name:i,attributes:l}=t,{borderColor:a}=l,s=Z("color.palette")||Oe;if(!Ge(i,"color")||We(i))return Object(r.createElement)(e,t);const u={borderColor:a?null===(n=te(s,a))||void 0===n?void 0:n.color:void 0};let d=t.wrapperProps;return d={...t.wrapperProps,style:{...u,...null===(c=t.wrapperProps)||void 0===c?void 0:c.style}},Object(r.createElement)(e,Object(o.a)({},t,{wrapperProps:d}))});function _e(e){return e.sort((t,n)=>e.filter(e=>e===t).length-e.filter(e=>e===n).length).pop()}function ye(e={}){if("string"==typeof e)return e;const t=Object.values(e).map(e=>Object(m.__experimentalParseUnit)(e)),n=t.map(e=>e[0]),o=t.map(e=>e[1]),r=n.every(e=>e===n[0])?n[0]:"",c=_e(o);return 0===r||r?`${r}${c}`:null}function Ee(e={}){const t=ye(e);return isNaN(parseFloat(t))}function Ce(e){return!!e&&("string"==typeof e||!!Object.values(e).filter(e=>!!e||0===e).length)}function Se({onChange:e,values:t,...n}){const c=ye(t),i=Ce(t)&&Ee(t),l=i?Object(b.__)("Mixed"):null;return Object(r.createElement)(m.__experimentalUnitControl,Object(o.a)({},n,{"aria-label":Object(b.__)("Border radius"),disableUnits:i,isOnly:!0,value:c,onChange:e,placeholder:l}))}Object(s.addFilter)("blocks.registerBlockType","core/border/addAttributes",(function(e){return Ge(e,"color")?e.attributes.borderColor?e:{...e,attributes:{...e.attributes,borderColor:{type:"string"}}}:e})),Object(s.addFilter)("blocks.getSaveContent.extraProps","core/border/addSaveProps",je),Object(s.addFilter)("blocks.registerBlockType","core/border/addEditProps",(function(e){if(!Ge(e,"color")||We(e))return e;const t=e.getEditWrapperProps;return e.getEditWrapperProps=n=>{let o={};return t&&(o=t(n)),je(o,e,n)},e})),Object(s.addFilter)("editor.BlockListBlock","core/border/with-border-color-palette-styles",ke);const we={topLeft:Object(b.__)("Top left"),topRight:Object(b.__)("Top right"),bottomLeft:Object(b.__)("Bottom left"),bottomRight:Object(b.__)("Bottom right")};function Be({onChange:e,values:t,...n}){const c="string"!=typeof t?t:{topLeft:t,topRight:t,bottomLeft:t,bottomRight:t};return Object(r.createElement)("div",{className:"components-border-radius-control__input-controls-wrapper"},Object.entries(we).map(([t,i])=>{return Object(r.createElement)(m.__experimentalUnitControl,Object(o.a)({},n,{key:t,"aria-label":i,value:c[t],onChange:(l=t,t=>{e&&e({...c,[l]:t||void 0})})}));var l}))}var Ie=n(240),xe=n(241);function Te({isLinked:e,...t}){const n=e?Object(b.__)("Unlink Radii"):Object(b.__)("Link Radii");return Object(r.createElement)(m.Tooltip,{text:n},Object(r.createElement)(m.Button,Object(o.a)({},t,{className:"component-border-radius-control__linked-button",isPrimary:e,isSecondary:!e,isSmall:!0,icon:e?Ie.a:xe.a,iconSize:16,"aria-label":n})))}const Ne={topLeft:null,topRight:null,bottomLeft:null,bottomRight:null},Le={px:100,em:20,rem:20};function Pe({onChange:e,values:t}){const[n,o]=Object(r.useState)(!Ce(t)||!Ee(t)),c=Object(m.__experimentalUseCustomUnits)({availableUnits:Z("spacing.units")||["px","em","rem"]}),i=function(e={}){if("string"==typeof e){const[,t]=Object(m.__experimentalParseUnit)(e);return t||"px"}return _e(Object.values(e).map(e=>{const[,t]=Object(m.__experimentalParseUnit)(e);return t}))}(t),l=c&&c.find(e=>e.value===i),a=(null==l?void 0:l.step)||1,[s]=Object(m.__experimentalParseUnit)(ye(t));return Object(r.createElement)("fieldset",{className:"components-border-radius-control"},Object(r.createElement)("legend",null,Object(b.__)("Radius")),Object(r.createElement)("div",{className:"components-border-radius-control__wrapper"},n?Object(r.createElement)(r.Fragment,null,Object(r.createElement)(Se,{className:"components-border-radius-control__unit-control",values:t,min:0,onChange:e,unit:i,units:c}),Object(r.createElement)(m.RangeControl,{className:"components-border-radius-control__range-control",value:s,min:0,max:Le[i],initialPosition:0,withInputField:!1,onChange:t=>{e(void 0!==t?`${t}${i}`:void 0)},step:a})):Object(r.createElement)(Be,{min:0,onChange:e,values:t||Ne,units:c}),Object(r.createElement)(Te,{onClick:()=>o(!n),isLinked:n})))}function Re(e){var t;const{attributes:{style:n},setAttributes:o}=e;return Object(r.createElement)(Pe,{values:null==n||null===(t=n.border)||void 0===t?void 0:t.radius,onChange:e=>{let t={...n,border:{...null==n?void 0:n.border,radius:e}};void 0!==e&&""!==e||(t=he(t)),o({style:t})}})}var Ae=Object(r.createElement)(p.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none"},Object(r.createElement)(p.Path,{d:"M5 11.25h14v1.5H5z"})),Me=Object(r.createElement)(p.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none"},Object(r.createElement)(p.Path,{fillRule:"evenodd",d:"M5 11.25h3v1.5H5v-1.5zm5.5 0h3v1.5h-3v-1.5zm8.5 0h-3v1.5h3v-1.5z",clipRule:"evenodd"})),De=Object(r.createElement)(p.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none"},Object(r.createElement)(p.Path,{fillRule:"evenodd",d:"M5.25 11.25h1.5v1.5h-1.5v-1.5zm3 0h1.5v1.5h-1.5v-1.5zm4.5 0h-1.5v1.5h1.5v-1.5zm1.5 0h1.5v1.5h-1.5v-1.5zm4.5 0h-1.5v1.5h1.5v-1.5z",clipRule:"evenodd"}));const Fe=[{label:Object(b.__)("Solid"),icon:Ae,value:"solid"},{label:Object(b.__)("Dashed"),icon:Me,value:"dashed"},{label:Object(b.__)("Dotted"),icon:De,value:"dotted"}];function Ve({onChange:e,value:t}){return Object(r.createElement)("fieldset",{className:"components-border-style-control"},Object(r.createElement)("legend",null,Object(b.__)("Style")),Object(r.createElement)("div",{className:"components-border-style-control__buttons"},Fe.map(n=>Object(r.createElement)(m.Button,{key:n.value,icon:n.icon,isSmall:!0,isPressed:n.value===t,onClick:()=>e(n.value===t?void 0:n.value),"aria-label":n.label}))))}const He=e=>{var t;const{attributes:{style:n},setAttributes:o}=e;return Object(r.createElement)(Ve,{value:null==n||null===(t=n.border)||void 0===t?void 0:t.style,onChange:e=>{const t={...n,border:{...null==n?void 0:n.border,style:e}};o({style:he(t)})}})},ze=e=>{const{attributes:{borderColor:t,style:n},setAttributes:o}=e,{width:c,color:i,style:l}=(null==n?void 0:n.border)||{},[a,s]=Object(r.useState)(),[u,d]=Object(r.useState)();Object(r.useEffect)(()=>{"none"!==l&&s(l)},[l]),Object(r.useEffect)(()=>{(t||i)&&d({name:t||void 0,color:i||void 0})},[t,i]);const p=Object(m.__experimentalUseCustomUnits)({availableUnits:Z("spacing.units")||["px","em","rem"]});return Object(r.createElement)(m.__experimentalUnitControl,{value:c,label:Object(b.__)("Width"),min:0,onChange:e=>{let r={...n,border:{...null==n?void 0:n.border,width:e}},c=t;const i=0===parseFloat(e);i&&(c=void 0,r.border.color=void 0,r.border.style="none"),i||"none"!==l||(r.border.style=a),i||void 0!==t||(c=null==u?void 0:u.name,r.border.color=null==u?void 0:u.color),void 0!==e&&""!==e||(r=he(r)),o({borderColor:c,style:r})},units:p})};function Ue(e){const t=Ke(e),n=Ge(e.name),o=Z("border.customColor")&&Ge(e.name,"color"),c=Z("border.customRadius")&&Ge(e.name,"radius"),i=Z("border.customStyle")&&Ge(e.name,"style"),l=Z("border.customWidth")&&Ge(e.name,"width");return t||!n?null:Object(r.createElement)(W,null,Object(r.createElement)(m.PanelBody,{className:"block-editor-hooks__border-controls",title:Object(b.__)("Border"),initialOpen:!1},(l||i)&&Object(r.createElement)("div",{className:"block-editor-hooks__border-controls-row"},l&&Object(r.createElement)(ze,e),i&&Object(r.createElement)(He,e)),o&&Object(r.createElement)(ve,e),c&&Object(r.createElement)(Re,e)))}function Ge(e,t="any"){if("web"!==r.Platform.OS)return!1;const n=Object(u.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 We(e){const t=Object(u.getBlockSupport)(e,"__experimentalBorder");return null==t?void 0:t.__experimentalSkipSerialization}const Ke=()=>[!Z("border.customColor"),!Z("border.customRadius"),!Z("border.customStyle"),!Z("border.customWidth")].every(Boolean),$e=Object(b.__)("(%s: color %s)"),qe=Object(b.__)("(%s: gradient %s)"),Ye=["colors","disableCustomColors","gradients","disableCustomGradients"],Xe=({colors:e,gradients:t,settings:n})=>n.map(({colorValue:n,gradientValue:o,label:c,colors:i,gradients:l},a)=>{if(!n&&!o)return null;let s;if(n){const t=ne(i||e,n);s=Object(b.sprintf)($e,c.toLowerCase(),t&&t.name||n)}else{const e=le(l||t,n);s=Object(b.sprintf)(qe,c.toLowerCase(),e&&e.name||o)}return Object(r.createElement)(m.ColorIndicator,{key:a,colorValue:n||o,"aria-label":s})}),Qe=({className:e,colors:t,gradients:n,disableCustomColors:c,disableCustomGradients:a,children:s,settings:u,title:d,...b})=>{if(Object(l.isEmpty)(t)&&Object(l.isEmpty)(n)&&c&&a&&Object(l.every)(u,e=>Object(l.isEmpty)(e.colors)&&Object(l.isEmpty)(e.gradients)&&(void 0===e.disableCustomColors||e.disableCustomColors)&&(void 0===e.disableCustomGradients||e.disableCustomGradients)))return null;const p=Object(r.createElement)("span",{className:"block-editor-panel-color-gradient-settings__panel-title"},d,Object(r.createElement)(Xe,{colors:t,gradients:n,settings:u}));return Object(r.createElement)(m.PanelBody,Object(o.a)({className:i()("block-editor-panel-color-gradient-settings",e),title:p},b),u.map((e,i)=>Object(r.createElement)(ge,Object(o.a)({key:i,colors:t,gradients:n,disableCustomColors:c,disableCustomGradients:a},e))),s)},Ze=e=>{const t={};return t.colors=Z("color.palette"),t.gradients=Z("color.gradients"),t.disableCustomColors=!Z("color.custom"),t.disableCustomGradients=!Z("color.customGradient"),Object(r.createElement)(Qe,Object(o.a)({},t,e))};
52
  // 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)
53
- var Je=e=>Object(l.every)(Ye,t=>e.hasOwnProperty(t))?Object(r.createElement)(Qe,e):Object(r.createElement)(Ze,e),et=n(31);function tt({tinyBackgroundColor:e,tinyTextColor:t,backgroundColor:n,textColor:o}){const c=e.getBrightness()<t.getBrightness()?Object(b.__)("This color combination may be hard for people to read. Try using a darker background color and/or a brighter text color."):Object(b.__)("This color combination may be hard for people to read. Try using a brighter background color and/or a darker text color.");return Object(r.useEffect)(()=>{Object(et.speak)(Object(b.__)("This color combination may be hard for people to read."))},[n,o]),Object(r.createElement)("div",{className:"block-editor-contrast-checker"},Object(r.createElement)(m.Notice,{spokenMessage:null,status:"warning",isDismissible:!1},c))}var nt=function({backgroundColor:e,fallbackBackgroundColor:t,fallbackTextColor:n,fontSize:o,isLargeText:c,textColor:i}){if(!e&&!t||!i&&!n)return null;const l=ee()(e||t),a=ee()(i||n);return 1!==l.getAlpha()||1!==a.getAlpha()||ee.a.isReadable(l,a,{level:"AA",size:c||!1!==c&&o>=24?"large":"small"})?null:Object(r.createElement)(tt,{backgroundColor:e,textColor:i,tinyBackgroundColor:l,tinyTextColor:a})},ot=n(71);function rt(e){return e.ownerDocument.defaultView.getComputedStyle(e)}function ct({settings:e,clientId:t,enableContrastChecking:n=!0}){const[o,c]=Object(r.useState)(),[i,l]=Object(r.useState)(),a=Object(ot.b)(t);return Object(r.useEffect)(()=>{if(!n)return;if(!a.current)return;l(rt(a.current).color);let e=a.current,t=rt(e).backgroundColor;for(;"rgba(0, 0, 0, 0)"===t&&e.parentNode&&e.parentNode.nodeType===e.parentNode.ELEMENT_NODE;)e=e.parentNode,t=rt(e).backgroundColor;c(t)}),Object(r.createElement)(W,null,Object(r.createElement)(Je,{title:Object(b.__)("Color"),initialOpen:!1,settings:e},n&&Object(r.createElement)(nt,{backgroundColor:o,textColor:i})))}const it=[],lt=e=>{const t=Object(u.getBlockSupport)(e,"color");return t&&(!0===t.link||!0===t.gradient||!1!==t.background||!1!==t.text)},at=e=>{const t=Object(u.getBlockSupport)(e,"color");return null==t?void 0:t.__experimentalSkipSerialization},st=e=>{const t=Object(u.getBlockSupport)(e,"color");return Object(l.isObject)(t)&&!!t.gradients};function ut(e,t,n){var o,r,c,l,a,s;if(!lt(t)||at(t))return e;const u=st(t),{backgroundColor:d,textColor:b,gradient:m,style:p}=n,f=oe("background-color",d),g=ce(m),h=oe("color",b),O=i()(e.className,h,g,{[f]:!(u&&null!=p&&null!==(o=p.color)&&void 0!==o&&o.gradient||!f),"has-text-color":b||(null==p||null===(r=p.color)||void 0===r?void 0:r.text),"has-background":d||(null==p||null===(c=p.color)||void 0===c?void 0:c.background)||u&&(m||(null==p||null===(l=p.color)||void 0===l?void 0:l.gradient)),"has-link-color":null==p||null===(a=p.elements)||void 0===a||null===(s=a.link)||void 0===s?void 0:s.color});return e.className=O||void 0,e}const dt=(e,t)=>{const n=/var:preset\|color\|(.+)/.exec(t);return n&&n[1]?te(e,n[1]).color:t};function bt(e){var t,n,o,c,i,a,s,d,m;const{name:p,attributes:f}=e,g=Z("color.palette")||it,h=Z("color.gradients")||it,O=Z("color.custom"),v=Z("color.customGradient"),j=Z("color.link"),k=Object(r.useRef)(f);if(Object(r.useEffect)(()=>{k.current=f},[f]),!lt(p))return null;const _=(e=>{if("web"!==r.Platform.OS)return!1;const t=Object(u.getBlockSupport)(e,"color");return Object(l.isObject)(t)&&!!t.link})(p)&&j&&(g.length>0||O),y=(e=>{const t=Object(u.getBlockSupport)(e,"color");return t&&!1!==t.text})(p)&&(g.length>0||O),E=(e=>{const t=Object(u.getBlockSupport)(e,"color");return t&&!1!==t.background})(p)&&(g.length>0||O),C=st(p)&&(h.length>0||v);if(!(_||y||E||C))return null;const{style:S,textColor:w,backgroundColor:B,gradient:I}=f;let x;if(C&&I)x=ie(h,I);else if(C){var T;x=null==S||null===(T=S.color)||void 0===T?void 0:T.gradient}const N=t=>n=>{var o,r;const c=ne(g,n),i=t+"Color",l={...k.current.style,color:{...null===(o=k.current)||void 0===o||null===(r=o.style)||void 0===r?void 0:r.color,[t]:null!=c&&c.slug?void 0:n}},a=null!=c&&c.slug?c.slug:void 0,s={style:he(l),[i]:a};e.setAttributes(s),k.current={...k.current,...s}};return Object(r.createElement)(ct,{enableContrastChecking:!("web"!==r.Platform.OS||I||null!=S&&null!==(t=S.color)&&void 0!==t&&t.gradient),clientId:e.clientId,settings:[...y?[{label:Object(b.__)("Text color"),onColorChange:N("text"),colorValue:te(g,w,null==S||null===(n=S.color)||void 0===n?void 0:n.text).color}]:[],...E||C?[{label:Object(b.__)("Background color"),onColorChange:E?N("background"):void 0,colorValue:te(g,B,null==S||null===(o=S.color)||void 0===o?void 0:o.background).color,gradientValue:x,onGradientChange:C?t=>{const n=ae(h,t);let o;if(n){var r,c,i;const e={...null===(r=k.current)||void 0===r?void 0:r.style,color:{...null===(c=k.current)||void 0===c||null===(i=c.style)||void 0===i?void 0:i.color,gradient:void 0}};o={style:he(e),gradient:n}}else{var l,a,s;const e={...null===(l=k.current)||void 0===l?void 0:l.style,color:{...null===(a=k.current)||void 0===a||null===(s=a.style)||void 0===s?void 0:s.color,gradient:t}};o={style:he(e),gradient:void 0}}e.setAttributes(o),k.current={...k.current,...o}}:void 0}]:[],..._?[{label:Object(b.__)("Link Color"),onColorChange:t=>{const n=ne(g,t),o=null!=n&&n.slug?"var:preset|color|"+n.slug:t,r=function(e,t,n){return Object(l.setWith)(e?Object(l.clone)(e):{},["elements","link","color","text"],n,l.clone)}(S,0,o);e.setAttributes({style:r})},colorValue:dt(g,null==S||null===(c=S.elements)||void 0===c||null===(i=c.link)||void 0===i||null===(a=i.color)||void 0===a?void 0:a.text),clearable:!(null==S||null===(s=S.elements)||void 0===s||null===(d=s.link)||void 0===d||null===(m=d.color)||void 0===m||!m.text)}]:[]]})}const mt=Object(a.createHigherOrderComponent)(e=>t=>{var n,c,i;const{name:l,attributes:a}=t,{backgroundColor:s,textColor:u}=a,d=Z("color.palette")||it;if(!lt(l)||at(l))return Object(r.createElement)(e,t);const b={color:u?null===(n=te(d,u))||void 0===n?void 0:n.color:void 0,backgroundColor:s?null===(c=te(d,s))||void 0===c?void 0:c.color:void 0};let m=t.wrapperProps;return m={...t.wrapperProps,style:{...b,...null===(i=t.wrapperProps)||void 0===i?void 0:i.style}},Object(r.createElement)(e,Object(o.a)({},t,{wrapperProps:m}))});Object(s.addFilter)("blocks.registerBlockType","core/color/addAttribute",(function(e){return lt(e)?(e.attributes.backgroundColor||Object.assign(e.attributes,{backgroundColor:{type:"string"}}),e.attributes.textColor||Object.assign(e.attributes,{textColor:{type:"string"}}),st(e)&&!e.attributes.gradient&&Object.assign(e.attributes,{gradient:{type:"string"}}),e):e})),Object(s.addFilter)("blocks.getSaveContent.extraProps","core/color/addSaveProps",ut),Object(s.addFilter)("blocks.registerBlockType","core/color/addEditProps",(function(e){if(!lt(e)||at(e))return e;const t=e.getEditWrapperProps;return e.getEditWrapperProps=n=>{let o={};return t&&(o=t(n)),ut(o,e,n)},e})),Object(s.addFilter)("editor.BlockListBlock","core/color/with-color-palette-styles",mt);var pt=Object(r.createElement)(p.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(p.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"})),ft=n(370);const gt=[{name:Object(b.__)("Underline"),value:"underline",icon:pt},{name:Object(b.__)("Strikethrough"),value:"line-through",icon:ft.a}];function ht({value:e,onChange:t}){return Object(r.createElement)("fieldset",{className:"block-editor-text-decoration-control"},Object(r.createElement)("legend",null,Object(b.__)("Decoration")),Object(r.createElement)("div",{className:"block-editor-text-decoration-control__buttons"},gt.map(n=>Object(r.createElement)(m.Button,{key:n.value,icon:n.icon,isSmall:!0,isPressed:n.value===e,onClick:()=>t(n.value===e?void 0:n.value),"aria-label":n.name}))))}function Ot(e){var t;const{attributes:{style:n},setAttributes:o}=e;return vt(e)?null:Object(r.createElement)(ht,{value:null==n||null===(t=n.typography)||void 0===t?void 0:t.textDecoration,onChange:function(e){o({style:he({...n,typography:{...null==n?void 0:n.typography,textDecoration:e}})})}})}function vt({name:e}={}){const t=!Object(u.hasBlockSupport)(e,"typography.__experimentalTextDecoration"),n=Z("typography.customTextDecorations");return t||!n}var jt=Object(r.createElement)(p.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(p.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"})),kt=Object(r.createElement)(p.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(p.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"})),_t=Object(r.createElement)(p.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(p.Path,{d:"M7.1 6.8L3.1 18h1.6l1.1-3h4.3l1.1 3h1.6l-4-11.2H7.1zm-.8 6.8L8 8.9l1.7 4.7H6.3zm14.5-1.5c-.3-.6-.7-1.1-1.2-1.5-.6-.4-1.2-.6-1.9-.6-.5 0-.9.1-1.4.3-.4.2-.8.5-1.1.8V6h-1.4v12h1.3l.2-1c.2.4.6.6 1 .8.4.2.9.3 1.4.3.7 0 1.2-.2 1.8-.5.5-.4 1-.9 1.3-1.5.3-.6.5-1.3.5-2.1-.1-.6-.2-1.3-.5-1.9zm-1.7 4c-.4.5-.9.8-1.6.8s-1.2-.2-1.7-.7c-.4-.5-.7-1.2-.7-2.1 0-.9.2-1.6.7-2.1.4-.5 1-.7 1.7-.7s1.2.3 1.6.8c.4.5.6 1.2.6 2 .1.8-.2 1.4-.6 2z"}));const yt=[{name:Object(b.__)("Uppercase"),value:"uppercase",icon:jt},{name:Object(b.__)("Lowercase"),value:"lowercase",icon:kt},{name:Object(b.__)("Capitalize"),value:"capitalize",icon:_t}];function Et({value:e,onChange:t}){return Object(r.createElement)("fieldset",{className:"block-editor-text-transform-control"},Object(r.createElement)("legend",null,Object(b.__)("Letter case")),Object(r.createElement)("div",{className:"block-editor-text-transform-control__buttons"},yt.map(n=>Object(r.createElement)(m.Button,{key:n.value,icon:n.icon,isSmall:!0,isPressed:e===n.value,"aria-label":n.name,onClick:()=>t(e===n.value?void 0:n.value)}))))}function Ct(e){var t;const{attributes:{style:n},setAttributes:o}=e;return St(e)?null:Object(r.createElement)(Et,{value:null==n||null===(t=n.typography)||void 0===t?void 0:t.textTransform,onChange:function(e){o({style:he({...n,typography:{...null==n?void 0:n.typography,textTransform:e}})})}})}function St({name:e}={}){const t=!Object(u.hasBlockSupport)(e,"typography.__experimentalTextTransform"),n=Z("typography.customTextTransforms");return t||!n}function wt(e){const t=!vt(e),n=!St(e);return t||n?Object(r.createElement)("div",{className:"block-editor-text-decoration-and-transform"},t&&Object(r.createElement)(Ot,e),n&&Object(r.createElement)(Ct,e)):null}var Bt=n(14);function It({value:e,onChange:t}){const n=function(e){return void 0!==e&&""!==e}(e),o=n?e:"";return Object(r.createElement)("div",{className:"block-editor-line-height-control"},Object(r.createElement)(m.TextControl,{autoComplete:"off",onKeyDown:e=>{const{keyCode:o}=e;o!==Bt.ZERO||n||(e.preventDefault(),t("0"))},onChange:e=>{if(n)return void t(e);let o=e;switch(e){case"0.1":o=1.6;break;case"0":o=1.4}t(o)},label:Object(b.__)("Line height"),placeholder:1.5,step:.1,type:"number",value:o,min:0}))}function xt(e){var t;const{attributes:{style:n}}=e;return Tt(e)?null:Object(r.createElement)(It,{value:null==n||null===(t=n.typography)||void 0===t?void 0:t.lineHeight,onChange:t=>{const o={...n,typography:{...null==n?void 0:n.typography,lineHeight:t}};e.setAttributes({style:he(o)})}})}function Tt({name:e}={}){const t=!Z("typography.customLineHeight");return!Object(u.hasBlockSupport)(e,"typography.lineHeight")||t}const Nt=[{name:Object(b.__)("Regular"),value:"normal"},{name:Object(b.__)("Italic"),value:"italic"}],Lt=[{name:Object(b.__)("Thin"),value:"100"},{name:Object(b.__)("Extra Light"),value:"200"},{name:Object(b.__)("Light"),value:"300"},{name:Object(b.__)("Regular"),value:"400"},{name:Object(b.__)("Medium"),value:"500"},{name:Object(b.__)("Semi Bold"),value:"600"},{name:Object(b.__)("Bold"),value:"700"},{name:Object(b.__)("Extra Bold"),value:"800"},{name:Object(b.__)("Black"),value:"900"}];function Pt(e){const{onChange:t,hasFontStyles:n=!0,hasFontWeights:o=!0,value:{fontStyle:c,fontWeight:i}}=e,l=n||o,a={key:"default",name:Object(b.__)("Default"),style:{fontStyle:void 0,fontWeight:void 0}},s=Object(r.useMemo)(()=>n&&o?(()=>{const e=[a];return Nt.forEach(({name:t,value:n})=>{Lt.forEach(({name:o,value:r})=>{const c="normal"===n?o:Object(b.sprintf)(
54
  /* translators: 1: Font weight name. 2: Font style name. */
55
- Object(b.__)("%1$s %2$s"),o,t);e.push({key:`${n}-${r}`,name:c,style:{fontStyle:n,fontWeight:r}})})}),e})():n?(()=>{const e=[a];return Nt.forEach(({name:t,value:n})=>{e.push({key:n,name:t,style:{fontStyle:n,fontWeight:void 0}})}),e})():(()=>{const e=[a];return Lt.forEach(({name:t,value:n})=>{e.push({key:n,name:t,style:{fontStyle:void 0,fontWeight:n}})}),e})(),[e.options]),u=s.find(e=>e.style.fontStyle===c&&e.style.fontWeight===i);return Object(r.createElement)("fieldset",{className:"components-font-appearance-control"},l&&Object(r.createElement)(m.CustomSelectControl,{className:"components-font-appearance-control__select",label:n?o?Object(b.__)("Appearance"):Object(b.__)("Font style"):Object(b.__)("Font weight"),options:s,value:u,onChange:({selectedItem:e})=>t(e.style)}))}function Rt(e){var t,n;const{attributes:{style:o},setAttributes:c}=e,i=!At(e),l=!Mt(e);if(!i&&!l)return null;const a=null==o||null===(t=o.typography)||void 0===t?void 0:t.fontStyle,s=null==o||null===(n=o.typography)||void 0===n?void 0:n.fontWeight;return Object(r.createElement)(Pt,{onChange:e=>{c({style:he({...o,typography:{...null==o?void 0:o.typography,fontStyle:e.fontStyle,fontWeight:e.fontWeight}})})},hasFontStyles:i,hasFontWeights:l,value:{fontStyle:a,fontWeight:s}})}function At({name:e}={}){const t=Object(u.hasBlockSupport)(e,"typography.__experimentalFontStyle"),n=Z("typography.customFontStyle");return!t||!n}function Mt({name:e}={}){const t=Object(u.hasBlockSupport)(e,"typography.__experimentalFontWeight"),n=Z("typography.customFontWeight");return!t||!n}function Dt(e){const t=At(e),n=Mt(e);return t&&n}function Ft({value:e="",onChange:t,fontFamilies:n,...c}){const i=Z("typography.fontFamilies");if(n||(n=i),Object(l.isEmpty)(n))return null;const a=[{value:"",label:Object(b.__)("Default")},...n.map(({fontFamily:e,name:t})=>({value:e,label:t||e}))];return Object(r.createElement)(m.SelectControl,Object(o.a)({label:Object(b.__)("Font family"),options:a,value:e,onChange:t,labelPosition:"top"},c))}function Vt({name:e,setAttributes:t,attributes:{style:n={}}}){var o;const c=Z("typography.fontFamilies");if(Ht({name:e}))return null;const i=((e,t)=>{const n=/var:preset\|font-family\|(.+)/.exec(t);if(n&&n[1]){const t=Object(l.find)(e,({slug:e})=>e===n[1]);if(t)return t.fontFamily}return t})(c,null===(o=n.typography)||void 0===o?void 0:o.fontFamily);return Object(r.createElement)(Ft,{className:"block-editor-hooks-font-family-control",fontFamilies:c,value:i,onChange:function(e){const o=Object(l.find)(c,({fontFamily:t})=>t===e);t({style:he({...n,typography:{...n.typography||{},fontFamily:o?"var:preset|font-family|"+o.slug:e||void 0}})})}})}function Ht({name:e}){const t=Z("typography.fontFamilies");return!t||0===t.length||!Object(u.hasBlockSupport)(e,"typography.__experimentalFontFamily")}var zt=n(186),Ut=n.n(zt);const Gt=(e,t,n)=>{if(t){const n=Object(l.find)(e,{slug:t});if(n)return n}return{size:n}};function Wt(e,t){return Object(l.find)(e,{size:t})||{size:t}}function Kt(e){if(e)return`has-${Object(l.kebabCase)(e)}-font-size`}var $t=function(e){const t=Z("typography.fontSizes"),n=!Z("typography.customFontSize");return Object(r.createElement)(m.FontSizePicker,Object(o.a)({},e,{fontSizes:t,disableCustomFontSizes:n}))};function qt(e,t,n){if(!Object(u.hasBlockSupport)(t,"typography.fontSize"))return e;if(Object(u.hasBlockSupport)(t,"typography.__experimentalSkipSerialization"))return e;const o=new Ut.a(e.className);o.add(Kt(n.fontSize));const r=o.value;return e.className=r||void 0,e}function Yt(e){var t,n;const{attributes:{fontSize:o,style:c},setAttributes:i}=e,l=Xt(e),a=Z("typography.fontSizes");if(l)return null;const s=Gt(a,o,null==c||null===(t=c.typography)||void 0===t?void 0:t.fontSize),u=(null==s?void 0:s.size)||(null==c||null===(n=c.typography)||void 0===n?void 0:n.fontSize)||o;return Object(r.createElement)($t,{onChange:e=>{const t=Wt(a,e).slug;i({style:he({...c,typography:{...null==c?void 0:c.typography,fontSize:t?void 0:e}}),fontSize:t})},value:u})}function Xt({name:e}={}){const t=Z("typography.fontSizes"),n=!(null==t||!t.length);return!Object(u.hasBlockSupport)(e,"typography.fontSize")||!n}const Qt=Object(a.createHigherOrderComponent)(e=>t=>{var n,o;const c=Z("typography.fontSizes"),{name:i,attributes:{fontSize:l,style:a},wrapperProps:s}=t;if(!Object(u.hasBlockSupport)(i,"typography.fontSize")||Object(u.hasBlockSupport)(i,"typography.__experimentalSkipSerialization")||!l||null!=a&&null!==(n=a.typography)&&void 0!==n&&n.fontSize)return Object(r.createElement)(e,t);const d=Gt(c,l,null==a||null===(o=a.typography)||void 0===o?void 0:o.fontSize).size,b={...t,wrapperProps:{...s,style:{fontSize:d,...null==s?void 0:s.style}}};return Object(r.createElement)(e,b)},"withFontSizeInlineStyles");function Zt({value:e,onChange:t}){const n=Object(m.__experimentalUseCustomUnits)({availableUnits:Z("spacing.units")||["px","em","rem"],defaultValues:{px:"2",em:".2",rem:".2"}});return Object(r.createElement)(m.__experimentalUnitControl,{label:Object(b.__)("Letter-spacing"),value:e,__unstableInputWidth:"60px",units:n,onChange:t})}function Jt(e){var t;const{attributes:{style:n},setAttributes:o}=e;return en(e)?null:Object(r.createElement)(Zt,{value:null==n||null===(t=n.typography)||void 0===t?void 0:t.letterSpacing,onChange:function(e){o({style:he({...n,typography:{...null==n?void 0:n.typography,letterSpacing:e}})})}})}function en({name:e}={}){const t=!Object(u.hasBlockSupport)(e,"__experimentalLetterSpacing"),n=Z("typography.customLetterSpacing");return t||!n}Object(s.addFilter)("blocks.registerBlockType","core/font/addAttribute",(function(e){return Object(u.hasBlockSupport)(e,"typography.fontSize")?(e.attributes.fontSize||Object.assign(e.attributes,{fontSize:{type:"string"}}),e):e})),Object(s.addFilter)("blocks.getSaveContent.extraProps","core/font/addSaveProps",qt),Object(s.addFilter)("blocks.registerBlockType","core/font/addEditProps",(function(e){if(!Object(u.hasBlockSupport)(e,"typography.fontSize"))return e;const t=e.getEditWrapperProps;return e.getEditWrapperProps=n=>{let o={};return t&&(o=t(n)),qt(o,e,n)},e})),Object(s.addFilter)("editor.BlockListBlock","core/font-size/with-font-size-inline-styles",Qt);const tn=["typography.lineHeight","typography.fontSize","typography.__experimentalFontStyle","typography.__experimentalFontWeight","typography.__experimentalFontFamily","typography.__experimentalTextDecoration","typography.__experimentalTextTransform","__experimentalLetterSpacing"];function nn(e){const t=function(e={}){const t=[Dt(e),Xt(e),Tt(e),Ht(e),vt(e),St(e),en(e)];return t.filter(Boolean).length===t.length}(e),n=on(e.name);return t||!n?null:Object(r.createElement)(W,null,Object(r.createElement)(m.PanelBody,{title:Object(b.__)("Typography")},Object(r.createElement)(Vt,e),Object(r.createElement)(Yt,e),Object(r.createElement)(Rt,e),Object(r.createElement)(xt,e),Object(r.createElement)(wt,e),Object(r.createElement)(Jt,e)))}const on=e=>"web"===r.Platform.OS&&tn.some(t=>Object(u.hasBlockSupport)(e,t));function rn(e){const t=Object(u.getBlockSupport)(e,dn);return!!(!0===t||null!=t&&t.margin)}function cn({name:e}={}){const t=!Z("spacing.customMargin");return!rn(e)||t}function ln(e){var t;const{name:n,attributes:{style:o},setAttributes:c}=e,i=Object(m.__experimentalUseCustomUnits)({availableUnits:Z("spacing.units")||["%","px","em","rem","vw"]}),l=pn(n,"margin");return cn(e)?null:r.Platform.select({web:Object(r.createElement)(r.Fragment,null,Object(r.createElement)(m.__experimentalBoxControl,{values:null==o||null===(t=o.spacing)||void 0===t?void 0:t.margin,onChange:e=>{const t={...o,spacing:{...null==o?void 0:o.spacing,margin:e}};c({style:he(t)})},onChangeShowVisualizer:e=>{const t={...o,visualizers:{margin:e}};c({style:he(t)})},label:Object(b.__)("Margin"),sides:l,units:i})),native:null})}function an(e){const t=Object(u.getBlockSupport)(e,dn);return!!(!0===t||null!=t&&t.padding)}function sn({name:e}={}){const t=!Z("spacing.customPadding");return!an(e)||t}function un(e){var t;const{name:n,attributes:{style:o},setAttributes:c}=e,i=Object(m.__experimentalUseCustomUnits)({availableUnits:Z("spacing.units")||["%","px","em","rem","vw"]}),l=pn(n,"padding");return sn(e)?null:r.Platform.select({web:Object(r.createElement)(r.Fragment,null,Object(r.createElement)(m.__experimentalBoxControl,{values:null==o||null===(t=o.spacing)||void 0===t?void 0:t.padding,onChange:e=>{const t={...o,spacing:{...null==o?void 0:o.spacing,padding:e}};c({style:he(t)})},onChangeShowVisualizer:e=>{const t={...o,visualizers:{padding:e}};c({style:he(t)})},label:Object(b.__)("Padding"),sides:l,units:i})),native:null})}const dn="spacing";function bn(e){const t=mn(e),n=(o=e.name,"web"===r.Platform.OS&&(an(o)||rn(o)));var o;return t||!n?null:Object(r.createElement)(W,{key:"spacing"},Object(r.createElement)(m.PanelBody,{title:Object(b.__)("Spacing")},Object(r.createElement)(un,e),Object(r.createElement)(ln,e)))}const mn=(e={})=>{const t=sn(e),n=cn(e);return t&&n};function pn(e,t){const n=Object(u.getBlockSupport)(e,dn);if("boolean"!=typeof n[t])return n[t]}const fn=[...tn,"__experimentalBorder","color",dn],gn=e=>fn.some(t=>Object(u.hasBlockSupport)(e,t));function hn(e){return Object(l.startsWith)(e,"var:")?`var(--wp--${e.slice("var:".length).split("|").join("--")})`:e}function On(e={}){const t={};return Object.keys(u.__EXPERIMENTAL_STYLE_PROPERTY).forEach(n=>{const o=u.__EXPERIMENTAL_STYLE_PROPERTY[n].value,r=u.__EXPERIMENTAL_STYLE_PROPERTY[n].properties;if(Object(l.has)(e,o)&&"elements"!==Object(l.first)(o)){const c=Object(l.get)(e,o);r&&!Object(l.isString)(c)?Object.entries(r).forEach(e=>{const[n,o]=e,r=Object(l.get)(c,[o]);r&&(t[n]=hn(r))}):t[n]=hn(Object(l.get)(e,o))}}),t}const vn={"__experimentalBorder.__experimentalSkipSerialization":["border"],"color.__experimentalSkipSerialization":["color"],"typography.__experimentalSkipSerialization":["typography"],[dn+".__experimentalSkipSerialization"]:["spacing"]};function jn(e,t,n){if(!gn(t))return e;let{style:o}=n;return Object(l.forEach)(vn,(e,n)=>{Object(u.getBlockSupport)(t,n)&&(o=Object(l.omit)(o,e))}),e.style={...On(o),...e.style},e}const kn=Object(a.createHigherOrderComponent)(e=>t=>{const n=Object(H.a)();return Object(r.createElement)(r.Fragment,null,n&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)(nn,t),Object(r.createElement)(Ue,t),Object(r.createElement)(bt,t),Object(r.createElement)(bn,t)),Object(r.createElement)(e,t))},"withToolbarControls"),yn=Object(a.createHigherOrderComponent)(e=>t=>{var n,c;const s=null===(n=t.attributes.style)||void 0===n?void 0:n.elements,d="wp-elements-"+Object(a.useInstanceId)(e),b=function(e,t={}){return Object(l.map)(t,(t,n)=>{const o=On(t);return Object(l.isEmpty)(o)?"":[`.${e} ${u.__EXPERIMENTAL_ELEMENTS[n]}{`,...Object(l.map)(o,(e,t)=>`\t${Object(l.kebabCase)(t)}: ${e}${"link"===n?"!important":""};`),"}"].join("\n")}).join("\n")}(d,null===(c=t.attributes.style)||void 0===c?void 0:c.elements);return Object(r.createElement)(r.Fragment,null,s&&Object(r.createElement)("style",{dangerouslySetInnerHTML:{__html:b}}),Object(r.createElement)(e,Object(o.a)({},t,{className:s?i()(t.className,d):t.className})))});Object(s.addFilter)("blocks.registerBlockType","core/style/addAttribute",(function(e){return gn(e)?(e.attributes.style||Object.assign(e.attributes,{style:{type:"object"}}),e):e})),Object(s.addFilter)("blocks.getSaveContent.extraProps","core/style/addSaveProps",jn),Object(s.addFilter)("blocks.registerBlockType","core/style/addEditProps",(function(e){if(!gn(e))return e;const t=e.getEditWrapperProps;return e.getEditWrapperProps=n=>{let o={};return t&&(o=t(n)),jn(o,e,n)},e})),Object(s.addFilter)("editor.BlockEdit","core/style/with-block-controls",kn),Object(s.addFilter)("editor.BlockListBlock","core/editor/with-elements-styles",yn);var En=function({value:e,onChange:t,onToggle:n,duotonePalette:o,colorPalette:c,disableCustomColors:i,disableCustomDuotone:l}){return Object(r.createElement)(m.Popover,{className:"block-editor-duotone-control__popover",headerTitle:Object(b.__)("Duotone"),onFocusOutside:n},Object(r.createElement)(m.MenuGroup,{label:Object(b.__)("Duotone")},Object(r.createElement)(m.DuotonePicker,{colorPalette:c,duotonePalette:o,disableCustomColors:i,disableCustomDuotone:l,value:e,onChange:t})))},Cn=function({colorPalette:e,duotonePalette:t,disableCustomColors:n,disableCustomDuotone:o,value:c,onChange:i}){const[l,a]=Object(r.useState)(!1),s=()=>{a(e=>!e)};return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(m.ToolbarButton,{showTooltip:!0,onClick:s,"aria-haspopup":"true","aria-expanded":l,onKeyDown:e=>{l||e.keyCode!==Bt.DOWN||(e.preventDefault(),e.stopPropagation(),s())},label:Object(b.__)("Apply duotone filter"),icon:Object(r.createElement)(m.DuotoneSwatch,{values:c})}),l&&Object(r.createElement)(En,{value:c,onChange:i,onToggle:s,duotonePalette:t,colorPalette:e,disableCustomColors:n,disableCustomDuotone:o}))},Sn=n(154);const wn=[];function Bn(e=[]){const t={r:[],g:[],b:[]};return e.forEach(e=>{const n=ee()(e);t.r.push(n._r/255),t.g.push(n._g/255),t.b.push(n._b/255)}),t}function In({selector:e,id:t,values:n}){const o=`\n${e} {\n\tfilter: url( #${t} );\n}\n`;return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(m.SVG,{xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 0 0",width:"0",height:"0",focusable:"false",role:"none",style:{visibility:"hidden",position:"absolute",left:"-9999px",overflow:"hidden"}},Object(r.createElement)("defs",null,Object(r.createElement)("filter",{id:t},Object(r.createElement)("feColorMatrix",{type:"matrix",values:".299 .587 .114 0 0 .299 .587 .114 0 0 .299 .587 .114 0 0 0 0 0 1 0"}),Object(r.createElement)("feComponentTransfer",{colorInterpolationFilters:"sRGB"},Object(r.createElement)("feFuncR",{type:"table",tableValues:n.r.join(" ")}),Object(r.createElement)("feFuncG",{type:"table",tableValues:n.g.join(" ")}),Object(r.createElement)("feFuncB",{type:"table",tableValues:n.b.join(" ")}))))),Object(r.createElement)("style",{dangerouslySetInnerHTML:{__html:o}}))}function xn({attributes:e,setAttributes:t}){var n;const o=null==e?void 0:e.style,c=null==o||null===(n=o.color)||void 0===n?void 0:n.duotone,i=Z("color.duotone")||wn,l=Z("color.palette")||wn,a=!Z("color.custom"),s=!Z("color.customDuotone")||0===(null==l?void 0:l.length)&&a;return 0===(null==i?void 0:i.length)&&s?null:Object(r.createElement)(d.b,{group:"block"},Object(r.createElement)(Cn,{duotonePalette:i,colorPalette:l,disableCustomDuotone:s,disableCustomColors:a,value:c,onChange:e=>{const n={...o,color:{...null==o?void 0:o.color,duotone:e}};t({style:n})}}))}const Tn=Object(a.createHigherOrderComponent)(e=>t=>{const n=Object(u.hasBlockSupport)(t.name,"color.__experimentalDuotone");return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(e,t),n&&Object(r.createElement)(xn,t))},"withDuotoneControls"),Nn=Object(a.createHigherOrderComponent)(e=>t=>{var n,c,l;const s=Object(u.getBlockSupport)(t.name,"color.__experimentalDuotone"),d=null==t||null===(n=t.attributes)||void 0===n||null===(c=n.style)||void 0===c||null===(l=c.color)||void 0===l?void 0:l.duotone;if(!s||!d)return Object(r.createElement)(e,t);const b="wp-duotone-filter-"+Object(a.useInstanceId)(e),m=s.split(",").map(e=>`.${b} ${e.trim()}`).join(", "),p=i()(null==t?void 0:t.className,b),f=Object(r.useContext)(Sn.a.context);return Object(r.createElement)(r.Fragment,null,f&&Object(r.createPortal)(Object(r.createElement)(In,{selector:m,id:b,values:Bn(d)}),f),Object(r.createElement)(e,Object(o.a)({},t,{className:p})))},"withDuotoneStyles");Object(s.addFilter)("blocks.registerBlockType","core/editor/duotone/add-attributes",(function(e){return Object(u.hasBlockSupport)(e,"color.__experimentalDuotone")?(e.attributes.style||Object.assign(e.attributes,{style:{type:"object"}}),e):e})),Object(s.addFilter)("editor.BlockEdit","core/editor/duotone/with-editor-controls",Tn),Object(s.addFilter)("editor.BlockListBlock","core/editor/duotone/with-styles",Nn);var Ln=n(109);function Pn({setAttributes:e,attributes:t}){const{layout:n={}}=t,{wideSize:o,contentSize:c,inherit:i=!1}=n,l=Z("layout"),a=Object(j.useSelect)(e=>{const{getSettings:t}=e(_.a);return t().supportsLayout},[]),s=Object(m.__experimentalUseCustomUnits)({availableUnits:Z("spacing.units")||["%","px","em","rem","vw"]});return a?Object(r.createElement)(W,null,Object(r.createElement)(m.PanelBody,{title:Object(b.__)("Layout")},!!l&&Object(r.createElement)(m.ToggleControl,{label:Object(b.__)("Inherit default layout"),checked:!!i,onChange:()=>e({layout:{inherit:!i}})}),!i&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"block-editor-hooks__layout-controls"},Object(r.createElement)("div",{className:"block-editor-hooks__layout-controls-unit"},Object(r.createElement)(m.__experimentalUnitControl,{label:Object(b.__)("Content"),labelPosition:"top",__unstableInputWidth:"80px",value:c||o||"",onChange:t=>{t=0>parseFloat(t)?"0":t,e({layout:{...n,contentSize:t}})},units:s}),Object(r.createElement)(Ln.a,{icon:g})),Object(r.createElement)("div",{className:"block-editor-hooks__layout-controls-unit"},Object(r.createElement)(m.__experimentalUnitControl,{label:Object(b.__)("Wide"),labelPosition:"top",__unstableInputWidth:"80px",value:o||c||"",onChange:t=>{t=0>parseFloat(t)?"0":t,e({layout:{...n,wideSize:t}})},units:s}),Object(r.createElement)(Ln.a,{icon:O}))),Object(r.createElement)("div",{className:"block-editor-hooks__layout-controls-reset"},Object(r.createElement)(m.Button,{variant:"secondary",isSmall:!0,disabled:!c&&!o,onClick:()=>e({layout:{contentSize:void 0,wideSize:void 0,inherit:!1}})},Object(b.__)("Reset")))),Object(r.createElement)("p",{className:"block-editor-hooks__layout-controls-helptext"},Object(b.__)("Customize the width for all elements that are assigned to the center or wide columns.")))):null}const Rn=Object(a.createHigherOrderComponent)(e=>t=>{const{name:n}=t;return[Object(u.hasBlockSupport)(n,"__experimentalLayout")&&Object(r.createElement)(Pn,Object(o.a)({key:"layout"},t)),Object(r.createElement)(e,Object(o.a)({key:"edit"},t))]},"withInspectorControls"),An=Object(a.createHigherOrderComponent)(e=>t=>{const{name:n,attributes:c}=t,l=Object(u.hasBlockSupport)(n,"__experimentalLayout"),s=Object(a.useInstanceId)(e),d=Z("layout")||{};if(!l)return Object(r.createElement)(e,t);const{layout:b={}}=c,m=b&&b.inherit?d:b,p=i()(null==t?void 0:t.className,"wp-container-"+s),f=Object(r.useContext)(Sn.a.context);return Object(r.createElement)(r.Fragment,null,f&&Object(r.createPortal)(Object(r.createElement)(k.b,{selector:".wp-container-"+s,layout:m}),f),Object(r.createElement)(e,Object(o.a)({},t,{className:p})))});Object(s.addFilter)("blocks.registerBlockType","core/layout/addAttribute",(function(e){return Object(l.has)(e.attributes,["layout","type"])||Object(u.hasBlockSupport)(e,"__experimentalLayout")&&(e.attributes={...e.attributes,layout:{type:"object"}}),e})),Object(s.addFilter)("editor.BlockListBlock","core/editor/layout/with-layout-styles",An),Object(s.addFilter)("editor.BlockEdit","core/editor/layout/with-inspector-controls",Rn);const Mn=[];function Dn({borderColor:e,style:t}){var n;const o=(null==t?void 0:t.border)||{},r=oe("border-color",e);return{className:i()({[r]:!!r,"has-border-color":e||(null==t||null===(n=t.border)||void 0===n?void 0:n.color)})||void 0,style:On({border:o})}}function Fn(e){const t=Z("color.palette")||Mn,n=Dn(e);if(e.borderColor){const o=te(t,e.borderColor);n.style.borderColor=o.color}return n}const Vn=[];function Hn(e){var t,n,o,r,c,l;const{backgroundColor:a,textColor:s,gradient:u,style:d}=e,b=oe("background-color",a),m=oe("color",s),p=ce(u),f=p||(null==d||null===(t=d.color)||void 0===t?void 0:t.gradient);return{className:i()(m,p,{[b]:!f&&!!b,"has-text-color":s||(null==d||null===(n=d.color)||void 0===n?void 0:n.text),"has-background":a||(null==d||null===(o=d.color)||void 0===o?void 0:o.background)||u||(null==d||null===(r=d.color)||void 0===r?void 0:r.gradient),"has-link-color":null==d||null===(c=d.elements)||void 0===c||null===(l=c.link)||void 0===l?void 0:l.color})||void 0,style:On({color:(null==d?void 0:d.color)||{}})}}function zn(e){const{backgroundColor:t,textColor:n,gradient:o}=e,r=Z("color.palette")||Vn,c=Z("color.gradients")||Vn,i=Hn(e);if(t){const e=te(r,t);i.style.backgroundColor=e.color}if(o&&(i.style.background=ie(c,o)),n){const e=te(r,n);i.style.color=e.color}return i}const Un=[];function Gn(e,t){const n=Object(l.reduce)(e,(e,t)=>({...e,...Object(l.isString)(t)?{[t]:Object(l.kebabCase)(t)}:t}),{});return Object(a.compose)([t,e=>class extends r.Component{constructor(e){super(e),this.setters=this.createSetters(),this.colorUtils={getMostReadableColor:this.getMostReadableColor.bind(this)},this.state={}}getMostReadableColor(e){const{colors:t}=this.props;return function(e,t){return ee.a.mostReadable(t,Object(l.map)(e,"color")).toHexString()}(t,e)}createSetters(){return Object(l.reduce)(n,(e,t,n)=>{const o=Object(l.upperFirst)(n),r="custom"+o;return e["set"+o]=this.createSetColor(n,r),e},{})}createSetColor(e,t){return n=>{const o=ne(this.props.colors,n);this.props.setAttributes({[e]:o&&o.slug?o.slug:void 0,[t]:o&&o.slug?void 0:n})}}static getDerivedStateFromProps({attributes:e,colors:t},o){return Object(l.reduce)(n,(n,r,c)=>{const i=te(t,e[c],e["custom"+Object(l.upperFirst)(c)]),a=o[c];return(null==a?void 0:a.color)===i.color&&a?n[c]=a:n[c]={...i,class:oe(r,i.slug)},n},{})}render(){return Object(r.createElement)(e,Object(o.a)({},this.props,{colors:void 0},this.state,this.setters,{colorUtils:this.colorUtils}))}}])}function Wn(e){return(...t)=>{const n=(e=>Object(a.createHigherOrderComponent)(t=>n=>Object(r.createElement)(t,Object(o.a)({},n,{colors:e})),"withCustomColorPalette"))(e);return Object(a.createHigherOrderComponent)(Gn(t,n),"withCustomColors")}}function Kn(...e){const t=Object(a.createHigherOrderComponent)(e=>t=>{const n=Z("color.palette")||Un;return Object(r.createElement)(e,Object(o.a)({},t,{colors:n}))},"withEditorColorPalette");return Object(a.createHigherOrderComponent)(Gn(e,t),"withColors")}const $n=[];var qn=(...e)=>{const t=Object(l.reduce)(e,(e,t)=>(e[t]="custom"+Object(l.upperFirst)(t),e),{});return Object(a.createHigherOrderComponent)(Object(a.compose)([Object(a.createHigherOrderComponent)(e=>t=>{const n=Z("typography.fontSizes")||$n;return Object(r.createElement)(e,Object(o.a)({},t,{fontSizes:n}))},"withFontSizes"),e=>class extends r.Component{constructor(e){super(e),this.setters=this.createSetters(),this.state={}}createSetters(){return Object(l.reduce)(t,(e,t,n)=>(e["set"+Object(l.upperFirst)(n)]=this.createSetFontSize(n,t),e),{})}createSetFontSize(e,t){return n=>{const o=Object(l.find)(this.props.fontSizes,{size:Number(n)});this.props.setAttributes({[e]:o&&o.slug?o.slug:void 0,[t]:o&&o.slug?void 0:n})}}static getDerivedStateFromProps({attributes:e,fontSizes:n},o){const r=(t,n)=>!o[n]||(e[n]?e[n]!==o[n].slug:o[n].size!==e[t]);if(!Object(l.some)(t,r))return null;const c=Object(l.reduce)(Object(l.pickBy)(t,r),(t,o,r)=>{const c=e[r],i=Gt(n,c,e[o]);return t[r]={...i,class:Kt(c)},t},{});return{...o,...c}}render(){return Object(r.createElement)(e,Object(o.a)({},this.props,{fontSizes:void 0},this.state,this.setters))}}]),"withFontSizes")},Yn=n(371),Xn=n(372),Qn=n(373);const Zn=[{icon:Yn.a,title:Object(b.__)("Align text left"),align:"left"},{icon:Xn.a,title:Object(b.__)("Align text center"),align:"center"},{icon:Qn.a,title:Object(b.__)("Align text right"),align:"right"}],Jn={position:"bottom right",isAlternate:!0};var eo=function({value:e,onChange:t,alignmentControls:n=Zn,label:c=Object(b.__)("Align"),describedBy:i=Object(b.__)("Change text alignment"),isCollapsed:a=!0,isToolbar:s}){function u(n){return()=>t(e===n?void 0:n)}const d=Object(l.find)(n,t=>t.align===e),p=s?m.ToolbarGroup:m.ToolbarDropdownMenu,f=s?{isCollapsed:a}:{};return Object(r.createElement)(p,Object(o.a)({icon:d?d.icon:Object(b.isRTL)()?Qn.a:Yn.a,label:c,toggleProps:{describedBy:i},popoverProps:Jn,controls:n.map(t=>{const{align:n}=t,o=e===n;return{...t,isActive:o,role:a?"menuitemradio":void 0,onClick:u(n)}})},f))};function to(e){return Object(r.createElement)(eo,Object(o.a)({},e,{isToolbar:!1}))}function no(e){return Object(r.createElement)(eo,Object(o.a)({},e,{isToolbar:!0}))}var oo=n(187),ro=n(102),co=n(52),io={name:"blocks",className:"block-editor-autocompleters__block",triggerPrefix:"/",useItems(e){const{rootClientId:t,selectedBlockName:n}=Object(j.useSelect)(e=>{const{getSelectedBlockClientId:t,getBlockName:n,getBlockInsertionPoint:o}=e(_.a),r=t();return{selectedBlockName:r?n(r):null,rootClientId:o().rootClientId}},[]),[o,c,i]=Object(ro.a)(t,l.noop),a=Object(r.useMemo)(()=>(e.trim()?Object(oo.a)(o,c,i,e):Object(l.orderBy)(o,["frecency"],["desc"])).filter(e=>e.name!==n).slice(0,9),[e,n,o,c,i]);return[Object(r.useMemo)(()=>a.map(e=>{const{title:t,icon:n,isDisabled:o}=e;return{key:"block-"+e.id,value:e,label:Object(r.createElement)(r.Fragment,null,Object(r.createElement)(co.a,{key:"icon",icon:n,showColors:!0}),t),isDisabled:o}}),[a])]},allowContext:(e,t)=>!(/\S/.test(e)||/\S/.test(t)),getOptionCompletion(e){const{name:t,initialAttributes:n,innerBlocks:o}=e;return{action:"replace",value:Object(u.createBlock)(t,n,Object(u.createBlocksFromInnerBlocksTemplate)(o))}}};const lo=[];function ao({completers:e=lo}){const{name:t}=Object(A.b)();return Object(r.useMemo)(()=>{let n=e;return t===Object(u.getDefaultBlockName)()&&(n=n.concat([io])),Object(s.hasFilter)("editor.Autocomplete.completers")&&(n===e&&(n=n.map(l.clone)),n=Object(s.applyFilters)("editor.Autocomplete.completers",n,t)),n},[e,t])}var so=function(e){return Object(r.createElement)(m.Autocomplete,Object(o.a)({},e,{completers:ao(e)}))},uo=Object(r.createElement)(p.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(p.Path,{d:"M4.2 9h1.5V5.8H9V4.2H4.2V9zm14 9.2H15v1.5h4.8V15h-1.5v3.2zM15 4.2v1.5h3.2V9h1.5V4.2H15zM5.8 15H4.2v4.8H9v-1.5H5.8V15z"})),bo=function({isActive:e,label:t=Object(b.__)("Toggle full height"),onToggle:n,isDisabled:o}){return Object(r.createElement)(m.ToolbarButton,{isActive:e,icon:uo,label:t,onClick:()=>n(!e),disabled:o})},mo=function(e){const{label:t=Object(b.__)("Change matrix alignment"),onChange:n=l.noop,value:o="center",isDisabled:c}=e,i=Object(r.createElement)(m.__experimentalAlignmentMatrixControl.Icon,{value:o});return Object(r.createElement)(m.Dropdown,{position:"bottom right",className:"block-editor-block-alignment-matrix-control",popoverProps:{className:"block-editor-block-alignment-matrix-control__popover",isAlternate:!0},renderToggle:({onToggle:e,isOpen:n})=>Object(r.createElement)(m.ToolbarButton,{onClick:e,"aria-haspopup":"true","aria-expanded":n,onKeyDown:t=>{n||t.keyCode!==Bt.DOWN||(t.preventDefault(),t.stopPropagation(),e())},label:t,icon:i,showTooltip:!0,disabled:c}),renderContent:()=>Object(r.createElement)(m.__experimentalAlignmentMatrixControl,{hasFocusBorder:!1,onChange:n,value:o})})},po=Object(r.createElement)(p.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(p.Path,{d:"M10.8622 8.04053L14.2805 12.0286L10.8622 16.0167L9.72327 15.0405L12.3049 12.0286L9.72327 9.01672L10.8622 8.04053Z"})),fo=n(97),go=function({rootLabelText:e}){const{selectBlock:t,clearSelectedBlock:n}=Object(j.useDispatch)(_.a),{clientId:o,parents:c,hasSelection:i}=Object(j.useSelect)(e=>{const{getSelectionStart:t,getSelectedBlockClientId:n,getBlockParents:o}=e(_.a),r=n();return{parents:o(r),clientId:r,hasSelection:!!t().clientId}},[]),l=e||Object(b.__)("Document");return Object(r.createElement)("ul",{className:"block-editor-block-breadcrumb",role:"list","aria-label":Object(b.__)("Block breadcrumb")},Object(r.createElement)("li",{className:i?void 0:"block-editor-block-breadcrumb__current","aria-current":i?void 0:"true"},i&&Object(r.createElement)(m.Button,{className:"block-editor-block-breadcrumb__button",variant:"tertiary",onClick:n},l),!i&&l,!!o&&Object(r.createElement)(Ln.a,{icon:po,className:"block-editor-block-breadcrumb__separator"})),c.map(e=>Object(r.createElement)("li",{key:e},Object(r.createElement)(m.Button,{className:"block-editor-block-breadcrumb__button",variant:"tertiary",onClick:()=>t(e)},Object(r.createElement)(fo.a,{clientId:e})),Object(r.createElement)(Ln.a,{icon:po,className:"block-editor-block-breadcrumb__separator"}))),!!o&&Object(r.createElement)("li",{className:"block-editor-block-breadcrumb__current","aria-current":"true"},Object(r.createElement)(fo.a,{clientId:o})))};function ho({clientId:e,tagName:t="div",wrapperProps:n,className:c}){const[l,a]=Object(r.useState)(!0),[s,u]=Object(r.useState)(!1),{isParentSelected:d,hasChildSelected:b,isDraggingBlocks:m,isParentHighlighted:p}=Object(j.useSelect)(t=>{const{isBlockSelected:n,hasSelectedInnerBlock:o,isDraggingBlocks:r,isBlockHighlighted:c}=t(_.a);return{isParentSelected:n(e),hasChildSelected:o(e,!0),isDraggingBlocks:r(),isParentHighlighted:c(e)}},[e]),f=i()("block-editor-block-content-overlay",null==n?void 0:n.className,c,{"overlay-active":l,"parent-highlighted":p,"is-dragging-blocks":m});return Object(r.useEffect)(()=>{d||b||l||a(!0),d&&!s&&l&&a(!1),b&&l&&a(!1)},[d,b,l,s]),Object(r.createElement)(t,Object(o.a)({},n,{className:f,onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1)}),l&&Object(r.createElement)("div",{className:"block-editor-block-content-overlay__overlay",onMouseUp:()=>a(!1)}),null==n?void 0:n.children)}var Oo=n(147);const vo=()=>Object(r.createElement)(m.SVG,{xmlns:"https://www.w3.org/2000/svg",viewBox:"0 0 20 20"},Object(r.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"})),jo=({style:e,className:t})=>Object(r.createElement)("div",{className:"block-library-colors-selector__icon-container"},Object(r.createElement)("div",{className:t+" block-library-colors-selector__state-selection",style:e},Object(r.createElement)(vo,null))),ko=({TextColor:e,BackgroundColor:t})=>({onToggle:n,isOpen:o})=>Object(r.createElement)(m.ToolbarGroup,null,Object(r.createElement)(m.ToolbarButton,{className:"components-toolbar__control block-library-colors-selector__toggle",label:Object(b.__)("Open Colors Selector"),onClick:n,onKeyDown:e=>{o||e.keyCode!==Bt.DOWN||(e.preventDefault(),e.stopPropagation(),n())},icon:Object(r.createElement)(t,null,Object(r.createElement)(e,null,Object(r.createElement)(jo,null)))}));var _o=({children:e,...t})=>Object(r.createElement)(m.Dropdown,{position:"bottom right",className:"block-library-colors-selector",contentClassName:"block-library-colors-selector__popover",renderToggle:ko(t),renderContent:()=>e}),yo=n(135),Eo=n(242),Co=n(194),So=n(126),wo=n(217);const Bo=Object(So.animated)(m.__experimentalTreeGridRow);function Io({isSelected:e,position:t,level:n,rowCount:c,children:l,className:a,path:s,...u}){const d=Object(wo.a)({isSelected:e,adjustScrolling:!1,enableAnimation:!0,triggerAnimationOnChange:s.join("_")});return Object(r.createElement)(Bo,Object(o.a)({ref:d,className:i()("block-editor-list-view-leaf",a),level:n,positionInSet:t,setSize:c},u),l)}var xo=n(166);const To=Object(r.createContext)({__experimentalFeatures:!1,__experimentalPersistentListViewFeatures:!1}),No=()=>Object(r.useContext)(To);var Lo=n(163),Po=n(83);const Ro=(e,t,n)=>Object(b.sprintf)(
56
  /* translators: 1: The numerical position of the block. 2: The total number of blocks. 3. The level of nesting for the block. */
57
- Object(b.__)("Block %1$d of %2$d, Level %3$d"),e,t,n),Ao=(e,t)=>Object(l.isArray)(t)&&t.length?-1!==t.indexOf(e):t===e;function Mo({onClick:e}){return Object(r.createElement)("span",{className:"block-editor-list-view__expander",onClick:t=>e(t,{forceToggle:!0}),"aria-hidden":"true"},Object(r.createElement)(Ln.a,{icon:po}))}var Do=Object(r.forwardRef)((function e({className:t,block:{clientId:n},isSelected:o,onClick:c,onToggleExpanded:l,position:s,siblingBlockCount:u,level:d,tabIndex:p,onFocus:f,onDragStart:g,onDragEnd:h,draggable:O},v){const j=Object(Po.a)(n),k="list-view-block-select-button__"+Object(a.useInstanceId)(e),_=Ro(s,u,d);return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(m.Button,{className:i()("block-editor-list-view-block-select-button",t),onClick:c,"aria-describedby":k,ref:v,tabIndex:p,onFocus:f,onDragStart:g,onDragEnd:h,draggable:O},Object(r.createElement)(Mo,{onClick:l}),Object(r.createElement)(co.a,{icon:null==j?void 0:j.icon,showColors:!0}),Object(r.createElement)(fo.a,{clientId:n}),(null==j?void 0:j.anchor)&&Object(r.createElement)("span",{className:"block-editor-list-view-block-select-button__anchor"},j.anchor),o&&Object(r.createElement)(m.VisuallyHidden,null,Object(b.__)("(selected block)"))),Object(r.createElement)("div",{className:"block-editor-list-view-block-select-button__description",id:k},_))}));const Fo=e=>"ListViewBlock-"+e;var Vo=Object(r.forwardRef)((function e(t,n){const{clientId:c}=t.block,{name:l}=Object(j.useSelect)(e=>e(_.a).getBlockName(c),[c]),s=Object(a.useInstanceId)(e);return Object(r.createElement)(m.Slot,{name:Fo(c)},e=>{if(!e.length)return Object(r.createElement)(Do,Object(o.a)({ref:n},t));const{className:c,isSelected:a,position:d,siblingBlockCount:p,level:f,tabIndex:g,onFocus:h,onToggleExpanded:O}=t,v=Object(u.getBlockType)(l),j="list-view-block-slot__"+s,k=Ro(d,p,f),_={tabIndex:g,onFocus:h,ref:n,"aria-describedby":j};return Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:i()("block-editor-list-view-block-slot",c)},Object(r.createElement)(Mo,{onClick:O}),Object(r.createElement)(co.a,{icon:v.icon,showColors:!0}),r.Children.map(e,e=>Object(r.cloneElement)(e,{...e.props,..._})),a&&Object(r.createElement)(m.VisuallyHidden,null,Object(b.__)("(selected block)")),Object(r.createElement)("div",{className:"block-editor-list-view-block-slot__description",id:j},k)))})}));const Ho=e=>{const{clientId:t}=Object(r.useContext)(Lo.a);return Object(r.createElement)(m.Fill,Object(o.a)({},e,{name:Fo(t)}))};var zo=n(164),Uo=Object(r.forwardRef)(({onClick:e,onToggleExpanded:t,block:n,isSelected:c,position:l,siblingBlockCount:a,level:s,...u},d)=>{const{__experimentalFeatures:b}=No(),{clientId:m}=n,{blockMovingClientId:p,selectedBlockInBlockEditor:f}=Object(j.useSelect)(e=>{const{getBlockRootClientId:t,hasBlockMovingClientId:n,getSelectedBlockClientId:o}=e(_.a);return{rootClientId:t(m)||"",blockMovingClientId:n(),selectedBlockInBlockEditor:o()}},[m]),g=p&&f===m,h=i()("block-editor-list-view-block-contents",{"is-dropping-before":g});return Object(r.createElement)(zo.a,{clientIds:[n.clientId]},({draggable:i,onDragStart:m,onDragEnd:p})=>b?Object(r.createElement)(Vo,Object(o.a)({ref:d,className:h,block:n,onToggleExpanded:t,isSelected:c,position:l,siblingBlockCount:a,level:s,draggable:i&&b,onDragStart:m,onDragEnd:p},u)):Object(r.createElement)(Do,Object(o.a)({ref:d,className:h,block:n,onClick:e,onToggleExpanded:t,isSelected:c,position:l,siblingBlockCount:a,level:s,draggable:i,onDragStart:m,onDragEnd:p},u)))}),Go=n(234);function Wo({block:e,isSelected:t,isBranchSelected:n,isLastOfSelectedBranch:o,onClick:c,onToggleExpanded:l,position:a,level:s,rowCount:u,siblingBlockCount:d,showBlockMovers:p,path:f,isExpanded:g}){const h=Object(r.useRef)(null),[O,v]=Object(r.useState)(!1),{clientId:k}=e,{isDragging:y,blockParents:E}=Object(j.useSelect)(e=>{const{isBlockBeingDragged:t,isAncestorBeingDragged:n,getBlockParents:o}=e(_.a);return{isDragging:t(k)||n(k),blockParents:o(k)}},[k]),{selectBlock:C,toggleBlockHighlight:S}=Object(j.useDispatch)(_.a),w=p&&d>0,B=i()("block-editor-list-view-block__mover-cell",{"is-visible":O}),{__experimentalFeatures:I,__experimentalPersistentListViewFeatures:x,isTreeGridMounted:T}=No(),N=i()("block-editor-list-view-block__menu-cell",{"is-visible":O});Object(r.useEffect)(()=>{x&&!T&&t&&h.current.focus()},[]),Object(r.useEffect)(()=>{I&&t&&h.current.focus()},[I,t]);const L=x?S:()=>{},P=()=>{v(!0),L(k,!0)},R=()=>{v(!1),L(k,!1)},A=i()({"is-selected":t,"is-branch-selected":x&&n,"is-last-of-selected-branch":x&&o,"is-dragging":y});return Object(r.createElement)(Io,{className:A,onMouseEnter:P,onMouseLeave:R,onFocus:P,onBlur:R,level:s,position:a,rowCount:u,path:f,id:"list-view-block-"+k,"data-block":k,isExpanded:g},Object(r.createElement)(m.__experimentalTreeGridCell,{className:"block-editor-list-view-block__contents-cell",colSpan:w?void 0:2,ref:h},({ref:n,tabIndex:o,onFocus:i})=>Object(r.createElement)("div",{className:"block-editor-list-view-block__contents-container"},Object(r.createElement)(Uo,{block:e,onClick:c,onToggleExpanded:l,isSelected:t,position:a,siblingBlockCount:d,level:s,ref:n,tabIndex:o,onFocus:i}))),w&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)(m.__experimentalTreeGridCell,{className:B,withoutGridItem:!0},Object(r.createElement)(m.__experimentalTreeGridItem,null,({ref:e,tabIndex:t,onFocus:n})=>Object(r.createElement)(xo.b,{orientation:"vertical",clientIds:[k],ref:e,tabIndex:t,onFocus:n})),Object(r.createElement)(m.__experimentalTreeGridItem,null,({ref:e,tabIndex:t,onFocus:n})=>Object(r.createElement)(xo.a,{orientation:"vertical",clientIds:[k],ref:e,tabIndex:t,onFocus:n})))),I&&Object(r.createElement)(m.__experimentalTreeGridCell,{className:N},({ref:e,tabIndex:t,onFocus:n})=>Object(r.createElement)(Go.a,{clientIds:[k],icon:Co.a,toggleProps:{ref:e,tabIndex:t,onFocus:n},disableOpenOnArrowDown:!0,__experimentalSelectBlock:c},({onClose:e})=>Object(r.createElement)(m.MenuGroup,null,Object(r.createElement)(m.MenuItem,{onClick:async()=>{if(E.length)for(const e of E)await C(e);else await C(null);await C(k),e()}},Object(b.__)("Go to block"))))))}var Ko=n(87);function $o({parentBlockClientId:e,position:t,level:n,rowCount:o,path:c}){const l=Object(j.useSelect)(t=>{const{isBlockBeingDragged:n,isAncestorBeingDragged:o}=t(_.a);return n(e)||o(e)},[e]),s="list-view-appender-row__description_"+Object(a.useInstanceId)($o),u=Object(b.sprintf)(
58
  /* translators: 1: The numerical position of the block that will be inserted. 2: The level of nesting for the block that will be inserted. */
59
- Object(b.__)("Add block at position %1$d, Level %2$d"),t,n);return Object(r.createElement)(Io,{className:i()({"is-dragging":l}),level:n,position:t,rowCount:o,path:c},Object(r.createElement)(m.__experimentalTreeGridCell,{className:"block-editor-list-view-appender__cell",colSpan:"3"},({ref:t,tabIndex:n,onFocus:o})=>Object(r.createElement)("div",{className:"block-editor-list-view-appender__container"},Object(r.createElement)(Ko.a,{rootClientId:e,__experimentalIsQuick:!0,"aria-describedby":s,toggleProps:{ref:t,tabIndex:n,onFocus:o}}),Object(r.createElement)("div",{className:"block-editor-list-view-appender__description",id:s},u))))}function qo(e){const{blocks:t,selectBlock:n,selectedBlockClientIds:o,showAppender:c,showBlockMovers:i,showNestedBlocks:a,parentBlockClientId:s,level:u=1,terminatedLevels:d=[],path:b=[],isBranchSelected:m=!1,isLastOfBranch:p=!1}=e,f=!s,g=Object(l.compact)(t),h=e=>c&&!f&&Ao(e,o),O=h(s),v=g.length,j=O?v+1:v,k=j,{expandedState:_,expand:y,collapse:E}=No();return Object(r.createElement)(r.Fragment,null,Object(l.map)(g,(e,t)=>{var l;const{clientId:s,innerBlocks:f}=e,g=t+1,O=j===g?[...d,u]:d,k=[...b,g],C=a&&!!f&&!!f.length,S=h(s),w=C||S,B=Ao(s,o),I=m||B&&w,x=t===v-1,T=B||p&&x,N=p&&!w&&x,L=w?null===(l=_[s])||void 0===l||l:void 0;return Object(r.createElement)(r.Fragment,{key:s},Object(r.createElement)(Wo,{block:e,onClick:e=>{e.stopPropagation(),n(s)},onToggleExpanded:e=>{e.stopPropagation(),!0===L?E(s):!1===L&&y(s)},isSelected:B,isBranchSelected:I,isLastOfSelectedBranch:N,level:u,position:g,rowCount:j,siblingBlockCount:v,showBlockMovers:i,terminatedLevels:d,path:k,isExpanded:L}),w&&L&&Object(r.createElement)(qo,{blocks:f,selectedBlockClientIds:o,selectBlock:n,isBranchSelected:I,isLastOfBranch:T,showAppender:c,showBlockMovers:i,showNestedBlocks:a,parentBlockClientId:s,level:u+1,terminatedLevels:O,path:k}))}),O&&Object(r.createElement)($o,{parentBlockClientId:s,position:j,rowCount:k,level:u,terminatedLevels:d,path:[...b,k]}))}function Yo({listViewRef:e,blockDropTarget:t}){const{rootClientId:n,clientId:o,dropPosition:c}=t||{},[i,l]=Object(r.useMemo)(()=>e.current?[n?e.current.querySelector(`[data-block="${n}"]`):void 0,o?e.current.querySelector(`[data-block="${o}"]`):void 0]:[],[n,o]),a=l||i,s=Object(r.useCallback)(()=>{if(!i)return 0;const e=a.getBoundingClientRect();return i.querySelector(".block-editor-block-icon").getBoundingClientRect().right-e.left},[i,a]),u=Object(r.useMemo)(()=>{if(!a)return{};const e=s();return{width:a.offsetWidth-e}},[s,a]),d=Object(r.useCallback)(()=>{if(!a)return{};const e=a.ownerDocument,t=a.getBoundingClientRect(),n=s(),o={left:t.left+n,right:t.right,width:0,height:t.height,ownerDocument:e};return"top"===c?{...o,top:t.top,bottom:t.top}:"bottom"===c||"inside"===c?{...o,top:t.bottom,bottom:t.bottom}:{}},[a,c,s]);return a?Object(r.createElement)(m.Popover,{noArrow:!0,animate:!1,getAnchorRect:d,focusOnMount:!1,className:"block-editor-list-view-drop-indicator"},Object(r.createElement)("div",{style:u,className:"block-editor-list-view-drop-indicator__line"})):null}qo.defaultProps={selectBlock:()=>{}};var Xo=n(215),Qo=n(216);function Zo(e,t){return t.left<=e.x&&t.right>=e.x&&t.top<=e.y&&t.bottom>=e.y}const Jo=["top","bottom"];const er=()=>{},tr=(e,t)=>{switch(t.type){case"expand":return{...e,[t.clientId]:!0};case"collapse":return{...e,[t.clientId]:!1};default:return e}};function nr({blocks:e,showOnlyCurrentHierarchy:t,onSelect:n=er,__experimentalFeatures:c,__experimentalPersistentListViewFeatures:i,...l}){const{clientIdsTree:s,selectedClientIds:u}=function(e,t,n){const o=(e=>Object(j.useSelect)(t=>{const{getSelectedBlockClientId:n,getSelectedBlockClientIds:o}=t(_.a);return e?o():n()},[e]))(n);return{clientIdsTree:((e,t,n)=>Object(j.useSelect)(o=>{const{getBlockHierarchyRootClientId:r,__unstableGetClientIdsTree:c,__unstableGetClientIdWithClientIdsTree:i}=o(_.a);if(e)return e;const l=t&&!Array.isArray(t);if(!n||!l)return c();const a=i(r(t));return a&&(!Ao(a.clientId,t)||a.innerBlocks&&0!==a.innerBlocks.length)?[a]:c()},[e,t,n]))(e,o,t),selectedClientIds:o}}(e,t,i),{selectBlock:d}=Object(j.useDispatch)(_.a),p=Object(r.useCallback)(e=>{d(e),n(e)},[d,n]),[f,g]=Object(r.useReducer)(tr,{}),{ref:h,target:O}=function(){const{getBlockRootClientId:e,getBlockIndex:t,getBlockCount:n,getDraggedBlockClientIds:o,canInsertBlocks:c}=Object(j.useSelect)(_.a),[i,l]=Object(r.useState)(),{rootClientId:s,blockIndex:u}=i||{},d=Object(Qo.a)(s,u),b=o(),m=Object(a.useThrottle)(Object(r.useCallback)((o,r)=>{const i={x:o.clientX,y:o.clientY},a=!(null==b||!b.length),s=function(e,t){let n,o,r,c;for(const i of e){if(i.isDraggedBlock)continue;const l=i.element.getBoundingClientRect(),[a,s]=Object(Xo.a)(t,l,Jo),u=Zo(t,l);if(void 0===r||a<r||u){r=a;const t=e.indexOf(i),d=e[t-1];if("top"===s&&d&&d.rootClientId===i.rootClientId&&!d.isDraggedBlock?(o=d,n="bottom",c=d.element.getBoundingClientRect()):(o=i,n=s,c=l),u)break}}if(!o)return;const i="bottom"===n;if(i&&o.canInsertDraggedBlocksAsChild&&(o.innerBlockCount>0||function(e,t){const n=t.left+t.width/2;return e.x>n}(t,c)))return{rootClientId:o.clientId,blockIndex:0,dropPosition:"inside"};if(!o.canInsertDraggedBlocksAsSibling)return;const l=i?1:0;return{rootClientId:o.rootClientId,clientId:o.clientId,blockIndex:o.blockIndex+l,dropPosition:n}}(Array.from(r.querySelectorAll("[data-block]")).map(o=>{const r=o.dataset.block,i=e(r);return{clientId:r,rootClientId:i,blockIndex:t(r,i),element:o,isDraggedBlock:!!a&&b.includes(r),innerBlockCount:n(r),canInsertDraggedBlocksAsSibling:!a||c(b,i),canInsertDraggedBlocksAsChild:!a||c(b,r)}}),i);s&&l(s)},[b]),200);return{ref:Object(a.__experimentalUseDropZone)({onDrop:d,onDragOver(e){m(e,e.currentTarget)},onDragEnd(){m.cancel(),l(null)}}),target:i}}(),v=Object(r.useRef)(),k=Object(a.useMergeRefs)([v,h]),y=Object(r.useRef)(!1);Object(r.useEffect)(()=>{y.current=!0},[]);const E=e=>{e&&g({type:"expand",clientId:e})},C=e=>{e&&g({type:"collapse",clientId:e})},S=Object(r.useMemo)(()=>({__experimentalFeatures:c,__experimentalPersistentListViewFeatures:i,isTreeGridMounted:y.current,expandedState:f,expand:E,collapse:C}),[c,i,y.current,f,E,C]);return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(Yo,{listViewRef:v,blockDropTarget:O}),Object(r.createElement)(m.__experimentalTreeGrid,{className:"block-editor-list-view-tree","aria-label":Object(b.__)("Block navigation structure"),ref:k,onCollapseRow:e=>{var t;C(null==e||null===(t=e.dataset)||void 0===t?void 0:t.block)},onExpandRow:e=>{var t;E(null==e||null===(t=e.dataset)||void 0===t?void 0:t.block)}},Object(r.createElement)(To.Provider,{value:S},Object(r.createElement)(qo,Object(o.a)({blocks:s,selectBlock:p,selectedBlockClientIds:u},l)))))}function or({isEnabled:e,onToggle:t,isOpen:n,innerRef:c,...i}){return Object(r.createElement)(m.Button,Object(o.a)({},i,{ref:c,icon:Eo.a,"aria-expanded":n,"aria-haspopup":"true",onClick:e?t:void 0
60
- /* translators: button label text should, if possible, be under 16 characters. */,label:Object(b.__)("List view"),className:"block-editor-block-navigation","aria-disabled":!e}))}var rr=Object(r.forwardRef)((function({isDisabled:e,__experimentalFeatures:t,...n},c){const i=Object(j.useSelect)(e=>!!e(_.a).getBlockCount(),[])&&!e;return Object(r.createElement)(m.Dropdown,{contentClassName:"block-editor-block-navigation__popover",position:"bottom right",renderToggle:({isOpen:e,onToggle:t})=>Object(r.createElement)(or,Object(o.a)({},n,{innerRef:c,isOpen:e,onToggle:t,isEnabled:i})),renderContent:()=>Object(r.createElement)("div",{className:"block-editor-block-navigation__container"},Object(r.createElement)("p",{className:"block-editor-block-navigation__label"},Object(b.__)("List view")),Object(r.createElement)(nr,{showNestedBlocks:!0,showOnlyCurrentHierarchy:!0,__experimentalFeatures:t}))})})),cr=n(253),ir=function({icon:e=cr.a,label:t=Object(b.__)("Choose variation"),instructions:n=Object(b.__)("Select a variation to start with."),variations:o,onSelect:c,allowSkip:l}){const a=i()("block-editor-block-variation-picker",{"has-many-variations":o.length>4});return Object(r.createElement)(m.Placeholder,{icon:e,label:t,instructions:n,className:a},Object(r.createElement)("ul",{className:"block-editor-block-variation-picker__variations",role:"list","aria-label":Object(b.__)("Block variations")},o.map(e=>Object(r.createElement)("li",{key:e.name},Object(r.createElement)(m.Button,{variant:"secondary",icon:e.icon,iconSize:48,onClick:()=>c(e),className:"block-editor-block-variation-picker__variation",label:e.description||e.title}),Object(r.createElement)("span",{className:"block-editor-block-variation-picker__variation-label",role:"presentation"},e.title)))),l&&Object(r.createElement)("div",{className:"block-editor-block-variation-picker__skip"},Object(r.createElement)(m.Button,{variant:"link",onClick:()=>c()},Object(b.__)("Skip"))))},lr=n(75),ar=n(279),sr=n(278),ur=n(376);const dr=({onStartBlank:e,onBlockPatternSelect:t})=>Object(r.createElement)("div",{className:"block-editor-block-pattern-setup__actions"},Object(r.createElement)(m.Button,{onClick:e},Object(b.__)("Start blank")),Object(r.createElement)(m.Button,{variant:"primary",onClick:t},Object(b.__)("Choose"))),br=({handlePrevious:e,handleNext:t,activeSlide:n,totalSlides:o})=>Object(r.createElement)("div",{className:"block-editor-block-pattern-setup__navigation"},Object(r.createElement)(m.Button,{icon:ar.a,label:Object(b.__)("Previous pattern"),onClick:e,disabled:0===n}),Object(r.createElement)(m.Button,{icon:sr.a,label:Object(b.__)("Next pattern"),onClick:t,disabled:n===o-1}));var mr=({viewMode:e,setViewMode:t,handlePrevious:n,handleNext:o,activeSlide:c,totalSlides:i,onBlockPatternSelect:l,onStartBlank:a})=>{const s="carousel"===e,u=Object(r.createElement)("div",{className:"block-editor-block-pattern-setup__display-controls"},Object(r.createElement)(m.Button,{icon:v,label:Object(b.__)("Carousel view"),onClick:()=>t("carousel"),isPressed:s}),Object(r.createElement)(m.Button,{icon:ur.a,label:Object(b.__)("Grid view"),onClick:()=>t("grid"),isPressed:"grid"===e}));return Object(r.createElement)("div",{className:"block-editor-block-pattern-setup__toolbar"},s&&Object(r.createElement)(br,{handlePrevious:n,handleNext:o,activeSlide:c,totalSlides:i}),u,s&&Object(r.createElement)(dr,{onBlockPatternSelect:l,onStartBlank:a}))};const pr=({viewMode:e,activeSlide:t,patterns:n,onBlockPatternSelect:c})=>{const i=Object(m.__unstableUseCompositeState)(),l="block-editor-block-pattern-setup__container";if("carousel"===e){const e=new Map([[t,"active-slide"],[t-1,"previous-slide"],[t+1,"next-slide"]]);return Object(r.createElement)("div",{className:l},Object(r.createElement)("ul",{className:"carousel-container"},n.map((t,n)=>Object(r.createElement)(gr,{className:e.get(n)||"",key:t.name,pattern:t}))))}return Object(r.createElement)(m.__unstableComposite,Object(o.a)({},i,{role:"listbox",className:l,"aria-label":Object(b.__)("Patterns list")}),n.map(e=>Object(r.createElement)(fr,{key:e.name,pattern:e,onSelect:c,composite:i})))};function fr({pattern:e,onSelect:t,composite:n}){const c="block-editor-block-pattern-setup-list",{blocks:i,title:l,description:s,viewportWidth:u=700}=e,d=Object(a.useInstanceId)(fr,c+"__item-description");return Object(r.createElement)("div",{className:c+"__list-item","aria-label":e.title,"aria-describedby":e.description?d:void 0},Object(r.createElement)(m.__unstableCompositeItem,Object(o.a)({role:"option",as:"div"},n,{className:c+"__item",onClick:()=>t(i)}),Object(r.createElement)(lr.a,{blocks:i,viewportWidth:u}),Object(r.createElement)("div",{className:c+"__item-title"},l)),!!s&&Object(r.createElement)(m.VisuallyHidden,{id:d},s))}function gr({className:e,pattern:t}){const{blocks:n,title:o,description:c}=t,i=Object(a.useInstanceId)(gr,"block-editor-block-pattern-setup-list__item-description");return Object(r.createElement)("li",{className:"pattern-slide "+e,"aria-label":o,"aria-describedby":c?i:void 0},Object(r.createElement)(lr.a,{blocks:n,__experimentalLive:!0}),!!c&&Object(r.createElement)(m.VisuallyHidden,{id:i},c))}var hr=({clientId:e,blockName:t,filterPatternsFn:n,startBlankComponent:o,onBlockPatternSelect:c})=>{const[i,l]=Object(r.useState)("carousel"),[a,s]=Object(r.useState)(0),[d,b]=Object(r.useState)(!1),{replaceBlock:m}=Object(j.useDispatch)(_.a),p=function(e,t,n){return Object(j.useSelect)(o=>{const{getBlockRootClientId:r,__experimentalGetPatternsByBlockTypes:c,__experimentalGetAllowedPatterns:i}=o(_.a),l=r(e);return n?i(l).filter(n):c(t,l)},[e,t,n])}(e,t,n);if(null==p||!p.length||d)return o;const f=c||(t=>{const n=t.map(e=>Object(u.cloneBlock)(e));m(e,n)});return Object(r.createElement)("div",{className:"block-editor-block-pattern-setup view-mode-"+i},Object(r.createElement)(mr,{viewMode:i,setViewMode:l,activeSlide:a,totalSlides:p.length,handleNext:()=>{s(e=>e+1)},handlePrevious:()=>{s(e=>e-1)},onBlockPatternSelect:()=>{f(p[a].blocks)},onStartBlank:()=>{b(!0)}}),Object(r.createElement)(pr,{viewMode:i,activeSlide:a,patterns:p,onBlockPatternSelect:f}))},Or=n(193);const vr=(e,t)=>{if(!t||!e)return;const n=t.filter(({attributes:t})=>!(!t||!Object.keys(t).length)&&Object(l.isMatch)(e,t));return 1===n.length?n[0]:void 0};var jr=function({blockClientId:e}){const[t,n]=Object(r.useState)(),{updateBlockAttributes:o}=Object(j.useDispatch)(_.a),{variations:c,blockAttributes:i}=Object(j.useSelect)(t=>{const{getBlockVariations:n}=t(u.store),{getBlockName:o,getBlockAttributes:r}=t(_.a),c=e&&o(e);return{variations:c&&n(c,"transform"),blockAttributes:r(e)}},[e]);if(Object(r.useEffect)(()=>{var e;n(null===(e=vr(i,c))||void 0===e?void 0:e.name)},[i,c]),null==c||!c.length)return null;const l=c.map(({name:e,title:t,description:n})=>({value:e,label:t,info:n})),a=t=>{o(e,{...c.find(({name:e})=>e===t).attributes})},s="block-editor-block-variation-transforms";return Object(r.createElement)(m.DropdownMenu,{className:s,label:Object(b.__)("Transform to variation"),text:Object(b.__)("Transform to variation"),popoverProps:{position:"bottom center",className:s+"__popover"},icon:Or.a,toggleProps:{iconPosition:"right"}},()=>Object(r.createElement)("div",{className:s+"__container"},Object(r.createElement)(m.MenuGroup,null,Object(r.createElement)(m.MenuItemsChoice,{choices:l,value:t,onSelect:a}))))};const kr=Object(r.createElement)(m.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(m.Path,{d:"M15 4H9v11h6V4zM4 18.5V20h16v-1.5H4z"})),_r=Object(r.createElement)(m.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(m.Path,{d:"M20 11h-5V4H9v7H4v1.5h5V20h6v-7.5h5z"})),yr={top:{icon:Object(r.createElement)(m.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(m.Path,{d:"M9 20h6V9H9v11zM4 4v1.5h16V4H4z"})),title:Object(b._x)("Align top","Block vertical alignment setting")},center:{icon:_r,title:Object(b._x)("Align middle","Block vertical alignment setting")},bottom:{icon:kr,title:Object(b._x)("Align bottom","Block vertical alignment setting")}},Er=["top","center","bottom"],Cr={isAlternate:!0};var Sr=function({value:e,onChange:t,controls:n=Er,isCollapsed:c=!0,isToolbar:i}){const l=yr[e],a=yr.top,s=i?m.ToolbarGroup:m.ToolbarDropdownMenu,u=i?{isCollapsed:c}:{};return Object(r.createElement)(s,Object(o.a)({popoverProps:Cr,icon:l?l.icon:a.icon,label:Object(b._x)("Change vertical alignment","Block vertical alignment setting label"),controls:n.map(n=>{return{...yr[n],isActive:e===n,role:c?"menuitemradio":void 0,onClick:(o=n,()=>t(e===o?void 0:o))};var o})},u))};function wr(e){return Object(r.createElement)(Sr,Object(o.a)({},e,{isToolbar:!1}))}function Br(e){return Object(r.createElement)(Sr,Object(o.a)({},e,{isToolbar:!0}))}var Ir=n(137),xr=Object(a.createHigherOrderComponent)(e=>t=>{const n=Z("color.palette"),c=!Z("color.custom"),i=void 0===t.colors?n:t.colors,a=void 0===t.disableCustomColors?c:t.disableCustomColors,s=!Object(l.isEmpty)(i)||!a;return Object(r.createElement)(e,Object(o.a)({},t,{colors:i,disableCustomColors:a,hasColorsToChoose:s}))},"withColorContext"),Tr=xr(m.ColorPalette);function Nr({onChange:e,value:t,...n}){return Object(r.createElement)(ge,Object(o.a)({},n,{onColorChange:e,colorValue:t,gradients:[],disableCustomGradients:!0}))}const Lr=[25,50,75,100];function Pr({imageWidth:e,imageHeight:t,imageSizeOptions:n=[],isResizable:o=!0,slug:c,width:i,height:a,onChange:s,onChangeImage:u=l.noop}){const{currentHeight:d,currentWidth:p,updateDimension:f,updateDimensions:g}=function(e,t,n,o,c){var i,l;const[a,s]=Object(r.useState)(null!==(i=null!=t?t:o)&&void 0!==i?i:""),[u,d]=Object(r.useState)(null!==(l=null!=e?e:n)&&void 0!==l?l:"");return Object(r.useEffect)(()=>{void 0===t&&void 0!==o&&s(o),void 0===e&&void 0!==n&&d(n)},[o,n]),{currentHeight:u,currentWidth:a,updateDimension:(e,t)=>{"width"===e?s(t):d(t),c({[e]:""===t?void 0:parseInt(t,10)})},updateDimensions:(e,t)=>{d(null!=e?e:n),s(null!=t?t:o),c({height:e,width:t})}}}(a,i,t,e,s);return Object(r.createElement)(r.Fragment,null,!Object(l.isEmpty)(n)&&Object(r.createElement)(m.SelectControl,{label:Object(b.__)("Image size"),value:c,options:n,onChange:u}),o&&Object(r.createElement)("div",{className:"block-editor-image-size-control"},Object(r.createElement)("p",{className:"block-editor-image-size-control__row"},Object(b.__)("Image dimensions")),Object(r.createElement)("div",{className:"block-editor-image-size-control__row"},Object(r.createElement)(m.TextControl,{type:"number",className:"block-editor-image-size-control__width",label:Object(b.__)("Width"),value:p,min:1,onChange:e=>f("width",e)}),Object(r.createElement)(m.TextControl,{type:"number",className:"block-editor-image-size-control__height",label:Object(b.__)("Height"),value:d,min:1,onChange:e=>f("height",e)})),Object(r.createElement)("div",{className:"block-editor-image-size-control__row"},Object(r.createElement)(m.ButtonGroup,{"aria-label":Object(b.__)("Image size presets")},Lr.map(n=>{const o=Math.round(e*(n/100)),c=Math.round(t*(n/100)),i=p===o&&d===c;return Object(r.createElement)(m.Button,{key:n,isSmall:!0,variant:i?"primary":void 0,isPressed:i,onClick:()=>g(c,o)},n,"%")})),Object(r.createElement)(m.Button,{isSmall:!0,onClick:()=>g()},Object(b.__)("Reset")))))}var Rr=Object(a.createHigherOrderComponent)(e=>t=>{const{clientId:n}=Object(A.b)();return Object(r.createElement)(e,Object(o.a)({},t,{clientId:n}))},"withClientId"),Ar=Rr(({clientId:e,showSeparator:t,isFloating:n,onAddBlock:o})=>Object(r.createElement)(Ir.b,{rootClientId:e,showSeparator:t,isFloating:n,onAddBlock:o})),Mr=n(149),Dr=Object(a.compose)([Rr,Object(j.withSelect)((e,{clientId:t})=>{const{getBlockOrder:n}=e(_.a),o=n(t);return{lastBlockClientId:Object(l.last)(o)}})])(({clientId:e,lastBlockClientId:t})=>Object(r.createElement)(Mr.a,{rootClientId:e,lastBlockClientId:t})),Fr=n(51),Vr=n.n(Fr);const Hr=new WeakMap;var zr=n(101),Ur=n(223),Gr=n(219);function Wr(e){const{clientId:t,allowedBlocks:n,template:o,templateLock:c,wrapperRef:i,templateInsertUpdatesSelection:a,__experimentalCaptureToolbars:s,__experimentalAppenderTagName:d,renderAppender:b,orientation:m,placeholder:p,__experimentalLayout:f}=e;!function(e,t,n,o,c){const{updateBlockListSettings:i}=Object(j.useDispatch)(_.a),{blockListSettings:l,parentLock:a}=Object(j.useSelect)(t=>{const n=t(_.a).getBlockRootClientId(e);return{blockListSettings:t(_.a).getBlockListSettings(e),parentLock:t(_.a).getTemplateLock(n)}},[e]),s=Object(r.useMemo)(()=>t,t);Object(r.useLayoutEffect)(()=>{const t={allowedBlocks:s,templateLock:void 0===n?a:n};void 0!==o&&(t.__experimentalCaptureToolbars=o),void 0!==c&&(t.orientation=c),Vr()(l,t)||i(e,t)},[e,l,s,n,a,o,c,i])}(t,n,c,s,m),function(e,t,n,o){const{getSelectedBlocksInitialCaretPosition:c}=Object(j.useSelect)(_.a),{replaceInnerBlocks:i}=Object(j.useDispatch)(_.a),a=Object(j.useSelect)(t=>t(_.a).getBlocks(e),[e]),s=Object(r.useRef)(null);Object(r.useLayoutEffect)(()=>{if((0===a.length||"all"===n)&&!Object(l.isEqual)(t,s.current)){s.current=t;const n=Object(u.synchronizeBlocksWithTemplate)(a,t);Object(l.isEqual)(n,a)||i(e,n,0===a.length&&o&&0!==n.length,c())}},[a,t,n,e])}(t,o,c,a);const g=Object(j.useSelect)(e=>{const n=e(_.a).getBlock(t),o=Object(u.getBlockType)(n.name);if(o&&o.providesContext)return function(e,t){Hr.has(t)||Hr.set(t,new WeakMap);const n=Hr.get(t);if(!n.has(e)){const o=Object(l.mapValues)(t.providesContext,t=>e[t]);n.set(e,o)}return n.get(e)}(n.attributes,o)},[t]);return Object(r.createElement)(Oo.a,{value:g},Object(r.createElement)(zr.a,{rootClientId:t,renderAppender:b,__experimentalAppenderTagName:d,__experimentalLayout:f,wrapperRef:i,placeholder:p}))}function Kr(e){return Object(Ur.a)(e),Object(r.createElement)(Wr,e)}const $r=Object(r.forwardRef)((e,t)=>{const n=qr({ref:t},e);return Object(r.createElement)("div",{className:"block-editor-inner-blocks"},Object(r.createElement)("div",n))});function qr(e={},t={}){const{clientId:n}=Object(A.b)(),c=Object(a.useViewportMatch)("medium","<"),l=Object(j.useSelect)(e=>{const{getBlockName:t,isBlockSelected:o,hasSelectedInnerBlock:r,isNavigationMode:i}=e(_.a),l=i()||c;return"core/template"!==t(n)&&!o(n)&&!r(n,!0)&&l},[n,c]),s=Object(a.useMergeRefs)([e.ref,Object(Gr.a)({rootClientId:n})]),u=t.value&&t.onChange?Kr:Wr;return{...e,ref:s,className:i()(e.className,"block-editor-block-list__layout",{"has-overlay":l}),children:Object(r.createElement)(u,Object(o.a)({},t,{clientId:n}))}}$r.DefaultBlockAppender=Dr,$r.ButtonBlockAppender=Ar,$r.Content=Object(u.withBlockContentContext)(({BlockContent:e})=>Object(r.createElement)(e,null));var Yr=$r,Xr=Object(r.createElement)(p.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(p.Path,{d:"M9 9v6h11V9H9zM4 20h1.5V4H4v16z"})),Qr=Object(r.createElement)(p.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(p.Path,{d:"M20 9h-7.2V4h-1.6v5H4v6h7.2v5h1.6v-5H20z"})),Zr=Object(r.createElement)(p.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(p.Path,{d:"M4 15h11V9H4v6zM18.5 4v16H20V4h-1.5z"})),Jr=Object(r.createElement)(p.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(p.Path,{d:"M9 15h6V9H9v6zm-5 5h1.5V4H4v16zM18.5 4v16H20V4h-1.5z"}));const ec={left:Xr,center:Qr,right:Zr,"space-between":Jr};var tc=function({allowedControls:e=["left","center","right","space-between"],isCollapsed:t=!0,onChange:n,value:c,popoverProps:i,isToolbar:l}){const a=e=>{n(e===c?void 0:e)},s=c?ec[c]:ec.left,u=[{name:"left",icon:Xr,title:Object(b.__)("Justify items left"),isActive:"left"===c,onClick:()=>a("left")},{name:"center",icon:Qr,title:Object(b.__)("Justify items center"),isActive:"center"===c,onClick:()=>a("center")},{name:"right",icon:Zr,title:Object(b.__)("Justify items right"),isActive:"right"===c,onClick:()=>a("right")},{name:"space-between",icon:Jr,title:Object(b.__)("Space between items"),isActive:"space-between"===c,onClick:()=>a("space-between")}],d=l?m.ToolbarGroup:m.ToolbarDropdownMenu,p=l?{isCollapsed:t}:{};return Object(r.createElement)(d,Object(o.a)({icon:s,popoverProps:i,label:Object(b.__)("Change items justification"),controls:u.filter(t=>e.includes(t.name))},p))};function nc(e){return Object(r.createElement)(tc,Object(o.a)({},e,{isToolbar:!1}))}function oc(e){return Object(r.createElement)(tc,Object(o.a)({},e,{isToolbar:!0}))}var rc=n(280),cc=n(22),ic=({value:e,onChange:t=l.noop,settings:n})=>{if(!n||!n.length)return null;const o=n=>o=>{t({...e,[n.id]:o})},c=n.map(t=>Object(r.createElement)(m.ToggleControl,{className:"block-editor-link-control__setting",key:t.id,label:t.title,onChange:o(t),checked:!!e&&!!e[t.id]}));return Object(r.createElement)("fieldset",{className:"block-editor-link-control__settings"},Object(r.createElement)(m.VisuallyHidden,{as:"legend"},Object(b.__)("Currently selected link settings")),c)},lc=n(138),ac=n.n(lc),sc=n(20);class uc extends r.Component{constructor(e){super(e),this.onChange=this.onChange.bind(this),this.onFocus=this.onFocus.bind(this),this.onKeyDown=this.onKeyDown.bind(this),this.selectLink=this.selectLink.bind(this),this.handleOnClick=this.handleOnClick.bind(this),this.bindSuggestionNode=this.bindSuggestionNode.bind(this),this.autocompleteRef=e.autocompleteRef||Object(r.createRef)(),this.inputRef=Object(r.createRef)(),this.updateSuggestions=Object(l.debounce)(this.updateSuggestions.bind(this),200),this.suggestionNodes=[],this.isUpdatingSuggestions=!1,this.state={suggestions:[],showSuggestions:!1,selectedSuggestion:null,suggestionsListboxId:"",suggestionOptionIdPrefix:""}}componentDidUpdate(e){const{showSuggestions:t,selectedSuggestion:n}=this.state,{value:o}=this.props;t&&null!==n&&this.suggestionNodes[n]&&!this.scrollingIntoView&&(this.scrollingIntoView=!0,ac()(this.suggestionNodes[n],this.autocompleteRef.current,{onlyScrollIfNeeded:!0}),this.props.setTimeout(()=>{this.scrollingIntoView=!1},100)),e.value!==o&&this.shouldShowInitialSuggestions()&&this.updateSuggestions()}componentDidMount(){this.shouldShowInitialSuggestions()&&this.updateSuggestions()}componentWillUnmount(){var e,t;null===(e=this.suggestionsRequest)||void 0===e||null===(t=e.cancel)||void 0===t||t.call(e),delete this.suggestionsRequest}bindSuggestionNode(e){return t=>{this.suggestionNodes[e]=t}}shouldShowInitialSuggestions(){const{suggestions:e}=this.state,{__experimentalShowInitialSuggestions:t=!1,value:n}=this.props;return!this.isUpdatingSuggestions&&t&&!(n&&n.length)&&!(e&&e.length)}updateSuggestions(e=""){const{__experimentalFetchLinkSuggestions:t,__experimentalHandleURLSuggestions:n}=this.props;if(!t)return;const o=!(e&&e.length);if(!o&&(e.length<2||!n&&Object(sc.isURL)(e)))return void this.setState({showSuggestions:!1,selectedSuggestion:null,loading:!1});this.isUpdatingSuggestions=!0,this.setState({selectedSuggestion:null,loading:!0});const r=t(e,{isInitialSuggestions:o});r.then(e=>{this.suggestionsRequest===r&&(this.setState({suggestions:e,loading:!1,showSuggestions:!!e.length}),e.length?this.props.debouncedSpeak(Object(b.sprintf)(
61
  /* translators: %s: number of results. */
62
- Object(b._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",e.length),e.length),"assertive"):this.props.debouncedSpeak(Object(b.__)("No results."),"assertive"),this.isUpdatingSuggestions=!1)}).catch(()=>{this.suggestionsRequest===r&&(this.setState({loading:!1}),this.isUpdatingSuggestions=!1)}),this.suggestionsRequest=r}onChange(e){const t=e.target.value;this.props.onChange(t),this.props.disableSuggestions||this.updateSuggestions(t.trim())}onFocus(){const{suggestions:e}=this.state,{disableSuggestions:t,value:n}=this.props;!n||t||this.isUpdatingSuggestions||e&&e.length||this.updateSuggestions(n.trim())}onKeyDown(e){const{showSuggestions:t,selectedSuggestion:n,suggestions:o,loading:r}=this.state;if(!t||!o.length||r){switch(e.keyCode){case Bt.UP:0!==e.target.selectionStart&&(e.stopPropagation(),e.preventDefault(),e.target.setSelectionRange(0,0));break;case Bt.DOWN:this.props.value.length!==e.target.selectionStart&&(e.stopPropagation(),e.preventDefault(),e.target.setSelectionRange(this.props.value.length,this.props.value.length));break;case Bt.ENTER:this.props.onSubmit&&this.props.onSubmit()}return}const c=this.state.suggestions[this.state.selectedSuggestion];switch(e.keyCode){case Bt.UP:{e.stopPropagation(),e.preventDefault();const t=n?n-1:o.length-1;this.setState({selectedSuggestion:t});break}case Bt.DOWN:{e.stopPropagation(),e.preventDefault();const t=null===n||n===o.length-1?0:n+1;this.setState({selectedSuggestion:t});break}case Bt.TAB:null!==this.state.selectedSuggestion&&(this.selectLink(c),this.props.speak(Object(b.__)("Link selected.")));break;case Bt.ENTER:null!==this.state.selectedSuggestion?(e.stopPropagation(),this.selectLink(c),this.props.onSubmit&&this.props.onSubmit(c)):this.props.onSubmit&&this.props.onSubmit()}}selectLink(e){this.props.onChange(e.url,e),this.setState({selectedSuggestion:null,showSuggestions:!1})}handleOnClick(e){this.selectLink(e),this.inputRef.current.focus()}static getDerivedStateFromProps({value:e,instanceId:t,disableSuggestions:n,__experimentalShowInitialSuggestions:o=!1},{showSuggestions:r}){let c=r;const i=e&&e.length;return o||i||(c=!1),!0===n&&(c=!1),{showSuggestions:c,suggestionsListboxId:"block-editor-url-input-suggestions-"+t,suggestionOptionIdPrefix:"block-editor-url-input-suggestion-"+t}}render(){return Object(r.createElement)(r.Fragment,null,this.renderControl(),this.renderSuggestions())}renderControl(){const{label:e,className:t,isFullWidth:n,instanceId:o,placeholder:c=Object(b.__)("Paste URL or type to search"),__experimentalRenderControl:l,value:a=""}=this.props,{loading:s,showSuggestions:u,selectedSuggestion:d,suggestionsListboxId:p,suggestionOptionIdPrefix:f}=this.state,g={id:"url-input-control-"+o,label:e,className:i()("block-editor-url-input",t,{"is-full-width":n})},h={value:a,required:!0,className:"block-editor-url-input__input",type:"text",onChange:this.onChange,onFocus:this.onFocus,placeholder:c,onKeyDown:this.onKeyDown,role:"combobox","aria-label":Object(b.__)("URL"),"aria-expanded":u,"aria-autocomplete":"list","aria-owns":p,"aria-activedescendant":null!==d?`${f}-${d}`:void 0,ref:this.inputRef};return l?l(g,h,s):Object(r.createElement)(m.BaseControl,g,Object(r.createElement)("input",h),s&&Object(r.createElement)(m.Spinner,null))}renderSuggestions(){const{className:e,__experimentalRenderSuggestions:t,value:n="",__experimentalShowInitialSuggestions:c=!1}=this.props,{showSuggestions:a,suggestions:s,selectedSuggestion:u,suggestionsListboxId:d,suggestionOptionIdPrefix:b,loading:p}=this.state,f={id:d,ref:this.autocompleteRef,role:"listbox"},g=(e,t)=>({role:"option",tabIndex:"-1",id:`${b}-${t}`,ref:this.bindSuggestionNode(t),"aria-selected":t===u});return Object(l.isFunction)(t)&&a&&s.length?t({suggestions:s,selectedSuggestion:u,suggestionsListProps:f,buildSuggestionItemProps:g,isLoading:p,handleSuggestionClick:this.handleOnClick,isInitialSuggestions:c&&!(n&&n.length)}):!Object(l.isFunction)(t)&&a&&s.length?Object(r.createElement)(m.Popover,{position:"bottom",noArrow:!0,focusOnMount:!1},Object(r.createElement)("div",Object(o.a)({},f,{className:i()("block-editor-url-input__suggestions",e+"__suggestions")}),s.map((e,t)=>Object(r.createElement)(m.Button,Object(o.a)({},g(0,t),{key:e.id,className:i()("block-editor-url-input__suggestion",{"is-selected":t===u}),onClick:()=>this.handleOnClick(e)}),e.title)))):null}}var dc=Object(a.compose)(a.withSafeTimeout,m.withSpokenMessages,a.withInstanceId,Object(j.withSelect)((e,t)=>{if(Object(l.isFunction)(t.__experimentalFetchLinkSuggestions))return;const{getSettings:n}=e(_.a);return{__experimentalFetchLinkSuggestions:n().__experimentalFetchLinkSuggestions}}))(uc),bc=n(145),mc=({searchTerm:e,onClick:t,itemProps:n,isSelected:c,buttonText:a})=>{if(!e)return null;let s;return s=a?Object(l.isFunction)(a)?a(e):a:Object(r.createInterpolateElement)(Object(b.sprintf)(
63
  /* translators: %s: search term. */
64
- Object(b.__)("Create: <mark>%s</mark>"),e),{mark:Object(r.createElement)("mark",null)}),Object(r.createElement)(m.Button,Object(o.a)({},n,{className:i()("block-editor-link-control__search-create block-editor-link-control__search-item",{"is-selected":c}),onClick:t}),Object(r.createElement)(Ln.a,{className:"block-editor-link-control__search-item-icon",icon:bc.a}),Object(r.createElement)("span",{className:"block-editor-link-control__search-item-header"},Object(r.createElement)("span",{className:"block-editor-link-control__search-item-title"},s)))},pc=Object(r.createElement)(p.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(r.createElement)(p.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"})),fc=({itemProps:e,suggestion:t,isSelected:n=!1,onClick:c,isURL:l=!1,searchTerm:a="",shouldShowType:s=!1})=>Object(r.createElement)(m.Button,Object(o.a)({},e,{onClick:c,className:i()("block-editor-link-control__search-item",{"is-selected":n,"is-url":l,"is-entity":!l})}),l&&Object(r.createElement)(Ln.a,{className:"block-editor-link-control__search-item-icon",icon:pc}),Object(r.createElement)("span",{className:"block-editor-link-control__search-item-header"},Object(r.createElement)("span",{className:"block-editor-link-control__search-item-title"},Object(r.createElement)(m.TextHighlight,{text:t.title,highlight:a})),Object(r.createElement)("span",{"aria-hidden":!l,className:"block-editor-link-control__search-item-info"},!l&&(Object(sc.filterURLForDisplay)(Object(sc.safeDecodeURI)(t.url))||""),l&&Object(b.__)("Press ENTER to add this link"))),s&&t.type&&Object(r.createElement)("span",{className:"block-editor-link-control__search-item-type"},"post_tag"===t.type?"tag":t.type));const gc=[{id:"opensInNewTab",title:Object(b.__)("Open in new tab")}];function hc({instanceId:e,withCreateSuggestion:t,currentInputValue:n,handleSuggestionClick:c,suggestionsListProps:l,buildSuggestionItemProps:a,suggestions:s,selectedSuggestion:u,isLoading:d,isInitialSuggestions:p,createSuggestionButtonText:f,suggestionsQuery:g}){const h=i()("block-editor-link-control__search-results",{"is-loading":d}),O=["url","mailto","tel","internal"],v=1===s.length&&O.includes(s[0].type.toLowerCase()),j=t&&!v&&!p,k=!(null!=g&&g.type),_="block-editor-link-control-search-results-label-"+e,y=p?Object(b.__)("Recently updated"):Object(b.sprintf)(
65
  /* translators: %s: search term. */
66
- Object(b.__)('Search results for "%s"'),n),E=Object(r.createElement)(p?r.Fragment:m.VisuallyHidden,{},Object(r.createElement)("span",{className:"block-editor-link-control__search-results-label",id:_},y));return Object(r.createElement)("div",{className:"block-editor-link-control__search-results-wrapper"},E,Object(r.createElement)("div",Object(o.a)({},l,{className:h,"aria-labelledby":_}),s.map((e,t)=>j&&"__CREATE__"===e.type?Object(r.createElement)(mc,{searchTerm:n,buttonText:f,onClick:()=>c(e),key:e.type,itemProps:a(e,t),isSelected:t===u}):"__CREATE__"===e.type?null:Object(r.createElement)(fc,{key:`${e.id}-${e.type}`,itemProps:a(e,t),suggestion:e,index:t,onClick:()=>{c(e)},isSelected:t===u,isURL:O.includes(e.type.toLowerCase()),searchTerm:n,shouldShowType:k}))))}function Oc(e){const t=Object(l.startsWith)(e,"#");return Object(sc.isURL)(e)||e&&e.includes("www.")||t}const vc=()=>Promise.resolve([]),jc=e=>{let t="URL";const n=Object(sc.getProtocol)(e)||"";return n.includes("mailto")&&(t="mailto"),n.includes("tel")&&(t="tel"),Object(l.startsWith)(e,"#")&&(t="internal"),Promise.resolve([{id:e,title:e,url:"URL"===t?Object(sc.prependHTTP)(e):e,type:t}])};const kc=()=>Promise.resolve([]),_c=Object(r.forwardRef)(({value:e,children:t,currentLink:n={},className:o=null,placeholder:c=null,withCreateSuggestion:i=!1,onCreateSuggestion:s=l.noop,onChange:u=l.noop,onSelect:d=l.noop,showSuggestions:m=!0,renderSuggestions:p=(e=>Object(r.createElement)(hc,e)),fetchSuggestions:f=null,allowDirectEntry:g=!0,showInitialSuggestions:h=!1,suggestionsQuery:O={},withURLSuggestion:v=!0,createSuggestionButtonText:k},y)=>{const E=function(e,t,n,o){const{fetchSearchSuggestions:c}=Object(j.useSelect)(e=>{const{getSettings:t}=e(_.a);return{fetchSearchSuggestions:t().__experimentalFetchLinkSuggestions}},[]),i=t?jc:vc
1
+ window.wp=window.wp||{},window.wp.blockEditor=function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=497)}([function(e,t){e.exports=window.wp.element},function(e,t){e.exports=window.wp.i18n},function(e,t){e.exports=window.lodash},function(e,t){e.exports=window.wp.components},function(e,t){e.exports=window.wp.data},,function(e,t){e.exports=window.wp.primitives},function(e,t,n){"use strict";function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}n.d(t,"a",(function(){return o}))},function(e,t){e.exports=window.wp.blocks},function(e,t){e.exports=window.wp.compose},function(e,t,n){var o;!function(){"use strict";var n={}.hasOwnProperty;function r(){for(var e=[],t=0;t<arguments.length;t++){var o=arguments[t];if(o){var c=typeof o;if("string"===c||"number"===c)e.push(o);else if(Array.isArray(o)){if(o.length){var i=r.apply(null,o);i&&e.push(i)}}else if("object"===c)if(o.toString===Object.prototype.toString)for(var l in o)n.call(o,l)&&o[l]&&e.push(l);else e.push(o.toString())}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(o=function(){return r}.apply(t,[]))||(e.exports=o)}()},function(e,t){e.exports=window.React},,function(e,t,n){"use strict";n.d(t,"b",(function(){return Sn})),n.d(t,"a",(function(){return wn}));var o={};n.r(o),n.d(o,"getBlockName",(function(){return S})),n.d(o,"isBlockValid",(function(){return w})),n.d(o,"getBlockAttributes",(function(){return B})),n.d(o,"getBlock",(function(){return I})),n.d(o,"__unstableGetBlockWithoutInnerBlocks",(function(){return x})),n.d(o,"getBlocks",(function(){return T})),n.d(o,"__unstableGetBlockWithBlockTree",(function(){return N})),n.d(o,"__unstableGetBlockTree",(function(){return L})),n.d(o,"__unstableGetClientIdWithClientIdsTree",(function(){return R})),n.d(o,"__unstableGetClientIdsTree",(function(){return P})),n.d(o,"getClientIdsOfDescendants",(function(){return A})),n.d(o,"getClientIdsWithDescendants",(function(){return M})),n.d(o,"getGlobalBlockCount",(function(){return D})),n.d(o,"getBlocksByClientId",(function(){return F})),n.d(o,"getBlockCount",(function(){return V})),n.d(o,"getSelectionStart",(function(){return H})),n.d(o,"getSelectionEnd",(function(){return z})),n.d(o,"getBlockSelectionStart",(function(){return U})),n.d(o,"getBlockSelectionEnd",(function(){return G})),n.d(o,"getSelectedBlockCount",(function(){return W})),n.d(o,"hasSelectedBlock",(function(){return K})),n.d(o,"getSelectedBlockClientId",(function(){return $})),n.d(o,"getSelectedBlock",(function(){return q})),n.d(o,"getBlockRootClientId",(function(){return Y})),n.d(o,"getBlockParents",(function(){return X})),n.d(o,"getBlockParentsByBlockName",(function(){return Q})),n.d(o,"getBlockHierarchyRootClientId",(function(){return Z})),n.d(o,"getLowestCommonAncestorWithSelectedBlock",(function(){return J})),n.d(o,"getAdjacentBlockClientId",(function(){return ee})),n.d(o,"getPreviousBlockClientId",(function(){return te})),n.d(o,"getNextBlockClientId",(function(){return ne})),n.d(o,"getSelectedBlocksInitialCaretPosition",(function(){return oe})),n.d(o,"getSelectedBlockClientIds",(function(){return re})),n.d(o,"getMultiSelectedBlockClientIds",(function(){return ce})),n.d(o,"getMultiSelectedBlocks",(function(){return ie})),n.d(o,"getFirstMultiSelectedBlockClientId",(function(){return le})),n.d(o,"getLastMultiSelectedBlockClientId",(function(){return ae})),n.d(o,"isFirstMultiSelectedBlock",(function(){return se})),n.d(o,"isBlockMultiSelected",(function(){return ue})),n.d(o,"isAncestorMultiSelected",(function(){return de})),n.d(o,"getMultiSelectedBlocksStartClientId",(function(){return be})),n.d(o,"getMultiSelectedBlocksEndClientId",(function(){return me})),n.d(o,"getBlockOrder",(function(){return pe})),n.d(o,"getBlockIndex",(function(){return fe})),n.d(o,"isBlockSelected",(function(){return ge})),n.d(o,"hasSelectedInnerBlock",(function(){return he})),n.d(o,"isBlockWithinSelection",(function(){return Oe})),n.d(o,"hasMultiSelection",(function(){return je})),n.d(o,"isMultiSelecting",(function(){return ve})),n.d(o,"isSelectionEnabled",(function(){return ke})),n.d(o,"getBlockMode",(function(){return _e})),n.d(o,"isTyping",(function(){return ye})),n.d(o,"isDraggingBlocks",(function(){return Ee})),n.d(o,"getDraggedBlockClientIds",(function(){return Ce})),n.d(o,"isBlockBeingDragged",(function(){return Se})),n.d(o,"isAncestorBeingDragged",(function(){return we})),n.d(o,"isCaretWithinFormattedText",(function(){return Be})),n.d(o,"getBlockInsertionPoint",(function(){return Ie})),n.d(o,"isBlockInsertionPointVisible",(function(){return xe})),n.d(o,"isValidTemplate",(function(){return Te})),n.d(o,"getTemplate",(function(){return Ne})),n.d(o,"getTemplateLock",(function(){return Le})),n.d(o,"canInsertBlockType",(function(){return Ae})),n.d(o,"canInsertBlocks",(function(){return Me})),n.d(o,"getInserterItems",(function(){return Ue})),n.d(o,"getBlockTransformItems",(function(){return Ge})),n.d(o,"hasInserterItems",(function(){return We})),n.d(o,"__experimentalGetAllowedBlocks",(function(){return Ke})),n.d(o,"__experimentalGetParsedPattern",(function(){return $e})),n.d(o,"__experimentalGetAllowedPatterns",(function(){return Ye})),n.d(o,"__experimentalGetPatternsByBlockTypes",(function(){return Xe})),n.d(o,"__experimentalGetPatternTransformItems",(function(){return Qe})),n.d(o,"getBlockListSettings",(function(){return Ze})),n.d(o,"getSettings",(function(){return Je})),n.d(o,"isLastBlockChangePersistent",(function(){return et})),n.d(o,"__experimentalGetBlockListSettingsForBlocks",(function(){return tt})),n.d(o,"__experimentalGetParsedReusableBlock",(function(){return nt})),n.d(o,"__experimentalGetReusableBlockTitle",(function(){return ot})),n.d(o,"__unstableIsLastBlockChangeIgnored",(function(){return rt})),n.d(o,"__experimentalGetLastBlockAttributeChanges",(function(){return ct})),n.d(o,"isNavigationMode",(function(){return lt})),n.d(o,"hasBlockMovingClientId",(function(){return at})),n.d(o,"didAutomaticChange",(function(){return st})),n.d(o,"isBlockHighlighted",(function(){return ut})),n.d(o,"areInnerBlocksControlled",(function(){return dt})),n.d(o,"__experimentalGetActiveBlockIdByBlockNames",(function(){return bt})),n.d(o,"wasBlockJustInserted",(function(){return mt}));var r={};n.r(r),n.d(r,"resetBlocks",(function(){return _t})),n.d(r,"validateBlocksToTemplate",(function(){return yt})),n.d(r,"resetSelection",(function(){return Et})),n.d(r,"receiveBlocks",(function(){return Ct})),n.d(r,"updateBlockAttributes",(function(){return St})),n.d(r,"updateBlock",(function(){return wt})),n.d(r,"selectBlock",(function(){return Bt})),n.d(r,"selectPreviousBlock",(function(){return It})),n.d(r,"selectNextBlock",(function(){return xt})),n.d(r,"startMultiSelect",(function(){return Tt})),n.d(r,"stopMultiSelect",(function(){return Nt})),n.d(r,"multiSelect",(function(){return Lt})),n.d(r,"clearSelectedBlock",(function(){return Rt})),n.d(r,"toggleSelection",(function(){return Pt})),n.d(r,"replaceBlocks",(function(){return Mt})),n.d(r,"replaceBlock",(function(){return Dt})),n.d(r,"moveBlocksDown",(function(){return Vt})),n.d(r,"moveBlocksUp",(function(){return Ht})),n.d(r,"moveBlocksToPosition",(function(){return zt})),n.d(r,"moveBlockToPosition",(function(){return Ut})),n.d(r,"insertBlock",(function(){return Gt})),n.d(r,"insertBlocks",(function(){return Wt})),n.d(r,"showInsertionPoint",(function(){return Kt})),n.d(r,"hideInsertionPoint",(function(){return $t})),n.d(r,"setTemplateValidity",(function(){return qt})),n.d(r,"synchronizeTemplate",(function(){return Yt})),n.d(r,"mergeBlocks",(function(){return Xt})),n.d(r,"removeBlocks",(function(){return Qt})),n.d(r,"removeBlock",(function(){return Zt})),n.d(r,"replaceInnerBlocks",(function(){return Jt})),n.d(r,"toggleBlockMode",(function(){return en})),n.d(r,"startTyping",(function(){return tn})),n.d(r,"stopTyping",(function(){return nn})),n.d(r,"startDraggingBlocks",(function(){return on})),n.d(r,"stopDraggingBlocks",(function(){return rn})),n.d(r,"enterFormattedText",(function(){return cn})),n.d(r,"exitFormattedText",(function(){return ln})),n.d(r,"selectionChange",(function(){return an})),n.d(r,"insertDefaultBlock",(function(){return sn})),n.d(r,"updateBlockListSettings",(function(){return un})),n.d(r,"updateSettings",(function(){return dn})),n.d(r,"__unstableSaveReusableBlock",(function(){return bn})),n.d(r,"__unstableMarkLastChangeAsPersistent",(function(){return mn})),n.d(r,"__unstableMarkNextChangeAsNotPersistent",(function(){return pn})),n.d(r,"__unstableMarkAutomaticChange",(function(){return fn})),n.d(r,"__unstableMarkAutomaticChangeFinal",(function(){return gn})),n.d(r,"setNavigationMode",(function(){return hn})),n.d(r,"setBlockMovingClientId",(function(){return On})),n.d(r,"duplicateBlocks",(function(){return jn})),n.d(r,"insertBeforeBlock",(function(){return vn})),n.d(r,"insertAfterBlock",(function(){return kn})),n.d(r,"toggleBlockHighlight",(function(){return yn})),n.d(r,"flashBlock",(function(){return En})),n.d(r,"setHasControlledInnerBlocks",(function(){return Cn}));var c=n(4),i=n(2),l=n(8),a=n(109);function s(e,t,n){return[...e.slice(0,n),...Object(i.castArray)(t),...e.slice(n)]}function u(e,t,n,o=1){const r=[...e];return r.splice(t,o),s(r,e.slice(t,t+o),n)}function d(e,t=""){const n={[t]:[]};return e.forEach(e=>{const{clientId:o,innerBlocks:r}=e;n[t].push(o),Object.assign(n,d(r,o))}),n}function b(e,t=""){return e.reduce((e,n)=>Object.assign(e,{[n.clientId]:t},b(n.innerBlocks,n.clientId)),{})}function m(e,t=i.identity){const n={},o=[...e];for(;o.length;){const{innerBlocks:e,...r}=o.shift();o.push(...e),n[r.clientId]=t(r)}return n}function p(e){return m(e,e=>Object(i.omit)(e,"attributes"))}function f(e){return m(e,e=>e.attributes)}function g(e,t){return"UPDATE_BLOCK_ATTRIBUTES"===e.type&&void 0!==t&&"UPDATE_BLOCK_ATTRIBUTES"===t.type&&Object(i.isEqual)(e.clientIds,t.clientIds)&&(n=e.attributes,o=t.attributes,Object(i.isEqual)(Object(i.keys)(n),Object(i.keys)(o)));var n,o}const h=e=>e.reduce((e,t)=>(e[t]={},e),{}),O=Object(i.flow)(c.combineReducers,e=>(t,n)=>{if(t&&"SAVE_REUSABLE_BLOCK_SUCCESS"===n.type){const{id:e,updatedId:o}=n;if(e===o)return t;(t={...t}).attributes=Object(i.mapValues)(t.attributes,(n,r)=>{const{name:c}=t.byClientId[r];return"core/block"===c&&n.ref===e?{...n,ref:o}:n})}return e(t,n)},e=>(t={},n)=>{const o=e(t,n);if(o===t)return t;o.cache=t.cache?t.cache:{};const r=e=>e.reduce((e,n)=>{let o=n;do{e.push(o),o=t.parents[o]}while(o&&!t.controlledInnerBlocks[o]);return e},[]);switch(n.type){case"RESET_BLOCKS":o.cache=Object(i.mapValues)(m(n.blocks),()=>({}));break;case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":{const e=Object(i.keys)(m(n.blocks));n.rootClientId&&!t.controlledInnerBlocks[n.rootClientId]&&e.push(n.rootClientId),o.cache={...o.cache,...h(r(e))};break}case"UPDATE_BLOCK":o.cache={...o.cache,...h(r([n.clientId]))};break;case"UPDATE_BLOCK_ATTRIBUTES":o.cache={...o.cache,...h(r(n.clientIds))};break;case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":const e=h(r(n.replacedClientIds));o.cache={...Object(i.omit)(o.cache,n.replacedClientIds),...Object(i.omit)(e,n.replacedClientIds),...h(Object(i.keys)(m(n.blocks)))};break;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":o.cache={...Object(i.omit)(o.cache,n.removedClientIds),...h(Object(i.difference)(r(n.clientIds),n.clientIds))};break;case"MOVE_BLOCKS_TO_POSITION":{const e=[...n.clientIds];n.fromRootClientId&&e.push(n.fromRootClientId),n.toRootClientId&&e.push(n.toRootClientId),o.cache={...o.cache,...h(r(e))};break}case"MOVE_BLOCKS_UP":case"MOVE_BLOCKS_DOWN":{const e=[];n.rootClientId&&e.push(n.rootClientId),o.cache={...o.cache,...h(r(e))};break}case"SAVE_REUSABLE_BLOCK_SUCCESS":{const e=Object(i.keys)(Object(i.omitBy)(o.attributes,(e,t)=>"core/block"!==o.byClientId[t].name||e.ref!==n.updatedId));o.cache={...o.cache,...h(r(e))}}}return o},e=>(t,n)=>{const o=e=>{let o=e;for(let r=0;r<o.length;r++)!t.order[o[r]]||n.keepControlledInnerBlocks&&n.keepControlledInnerBlocks[o[r]]||(o===e&&(o=[...o]),o.push(...t.order[o[r]]));return o};if(t)switch(n.type){case"REMOVE_BLOCKS":n={...n,type:"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN",removedClientIds:o(n.clientIds)};break;case"REPLACE_BLOCKS":n={...n,type:"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN",replacedClientIds:o(n.clientIds)}}return e(t,n)},e=>(t,n)=>{if("REPLACE_INNER_BLOCKS"!==n.type)return e(t,n);const o={};if(Object.keys(t.controlledInnerBlocks).length){const e=[...n.blocks];for(;e.length;){const{innerBlocks:n,...r}=e.shift();e.push(...n),t.controlledInnerBlocks[r.clientId]&&(o[r.clientId]=!0)}}let r=t;t.order[n.rootClientId]&&(r=e(r,{type:"REMOVE_BLOCKS",keepControlledInnerBlocks:o,clientIds:t.order[n.rootClientId]}));let c=r;return n.blocks.length&&(c=e(c,{...n,type:"INSERT_BLOCKS",index:0}),c.order={...c.order,...Object(i.reduce)(o,(e,n,o)=>(t.order[o]&&(e[o]=t.order[o]),e),{})}),c},e=>(t,n)=>{if(t&&"RESET_BLOCKS"===n.type){const e=function e(t,n="",o={}){return Object(i.reduce)(t[n],(n,r)=>o[r]?n:[...n,r,...e(t,r)],[])}(t.order,"",t.controlledInnerBlocks),o=Object.keys(Object(i.pickBy)(t.controlledInnerBlocks));return{...t,byClientId:{...Object(i.omit)(t.byClientId,e),...p(n.blocks)},attributes:{...Object(i.omit)(t.attributes,e),...f(n.blocks)},order:{...Object(i.omit)(t.order,e),...Object(i.omit)(d(n.blocks),o)},parents:{...Object(i.omit)(t.parents,e),...b(n.blocks)},cache:{...Object(i.omit)(t.cache,e),...Object(i.omit)(Object(i.mapValues)(m(n.blocks),()=>({})),o)}}}return e(t,n)},(function(e){let t,n=!1;return(o,r)=>{let c=e(o,r);const i="MARK_LAST_CHANGE_AS_PERSISTENT"===r.type||n;if(o===c&&!i){var l;n="MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"===r.type;const e=null===(l=null==o?void 0:o.isPersistentChange)||void 0===l||l;return o.isPersistentChange===e?o:{...c,isPersistentChange:e}}return c={...c,isPersistentChange:i?!n:!g(r,t)},t=r,n="MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"===r.type,c}}),(function(e){const t=new Set(["RECEIVE_BLOCKS"]);return(n,o)=>{const r=e(n,o);return r!==n&&(r.isIgnoredChange=t.has(o.type)),r}}))({byClientId(e={},t){switch(t.type){case"RESET_BLOCKS":return p(t.blocks);case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":return{...e,...p(t.blocks)};case"UPDATE_BLOCK":if(!e[t.clientId])return e;const n=Object(i.omit)(t.updates,"attributes");return Object(i.isEmpty)(n)?e:{...e,[t.clientId]:{...e[t.clientId],...n}};case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return t.blocks?{...Object(i.omit)(e,t.replacedClientIds),...p(t.blocks)}:e;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(i.omit)(e,t.removedClientIds)}return e},attributes(e={},t){switch(t.type){case"RESET_BLOCKS":return f(t.blocks);case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":return{...e,...f(t.blocks)};case"UPDATE_BLOCK":return e[t.clientId]&&t.updates.attributes?{...e,[t.clientId]:{...e[t.clientId],...t.updates.attributes}}:e;case"UPDATE_BLOCK_ATTRIBUTES":{if(t.clientIds.every(t=>!e[t]))return e;const n=t.clientIds.reduce((n,o)=>({...n,[o]:Object(i.reduce)(t.uniqueByBlock?t.attributes[o]:t.attributes,(t,n,r)=>{var c,i;return n!==t[r]&&((t=(c=e[o])===(i=t)?{...c}:i)[r]=n),t},e[o])}),{});return t.clientIds.every(t=>n[t]===e[t])?e:{...e,...n}}case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return t.blocks?{...Object(i.omit)(e,t.replacedClientIds),...f(t.blocks)}:e;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(i.omit)(e,t.removedClientIds)}return e},order(e={},t){switch(t.type){case"RESET_BLOCKS":return d(t.blocks);case"RECEIVE_BLOCKS":return{...e,...Object(i.omit)(d(t.blocks),"")};case"INSERT_BLOCKS":{const{rootClientId:n=""}=t,o=e[n]||[],r=d(t.blocks,n),{index:c=o.length}=t;return{...e,...r,[n]:s(o,r[n],c)}}case"MOVE_BLOCKS_TO_POSITION":{const{fromRootClientId:n="",toRootClientId:o="",clientIds:r}=t,{index:c=e[o].length}=t;if(n===o){const t=e[o].indexOf(r[0]);return{...e,[o]:u(e[o],t,c,r.length)}}return{...e,[n]:Object(i.without)(e[n],...r),[o]:s(e[o],r,c)}}case"MOVE_BLOCKS_UP":{const{clientIds:n,rootClientId:o=""}=t,r=Object(i.first)(n),c=e[o];if(!c.length||r===Object(i.first)(c))return e;const l=c.indexOf(r);return{...e,[o]:u(c,l,l-1,n.length)}}case"MOVE_BLOCKS_DOWN":{const{clientIds:n,rootClientId:o=""}=t,r=Object(i.first)(n),c=Object(i.last)(n),l=e[o];if(!l.length||c===Object(i.last)(l))return e;const a=l.indexOf(r);return{...e,[o]:u(l,a,a+1,n.length)}}case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const{clientIds:n}=t;if(!t.blocks)return e;const o=d(t.blocks);return Object(i.flow)([e=>Object(i.omit)(e,t.replacedClientIds),e=>({...e,...Object(i.omit)(o,"")}),e=>Object(i.mapValues)(e,e=>Object(i.reduce)(e,(e,t)=>t===n[0]?[...e,...o[""]]:(-1===n.indexOf(t)&&e.push(t),e),[]))])(e)}case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(i.flow)([e=>Object(i.omit)(e,t.removedClientIds),e=>Object(i.mapValues)(e,e=>Object(i.without)(e,...t.removedClientIds))])(e)}return e},parents(e={},t){switch(t.type){case"RESET_BLOCKS":return b(t.blocks);case"RECEIVE_BLOCKS":return{...e,...b(t.blocks)};case"INSERT_BLOCKS":return{...e,...b(t.blocks,t.rootClientId||"")};case"MOVE_BLOCKS_TO_POSITION":return{...e,...t.clientIds.reduce((e,n)=>(e[n]=t.toRootClientId||"",e),{})};case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return{...Object(i.omit)(e,t.replacedClientIds),...b(t.blocks,e[t.clientIds[0]])};case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(i.omit)(e,t.removedClientIds)}return e},controlledInnerBlocks:(e={},{type:t,clientId:n,hasControlledInnerBlocks:o})=>"SET_HAS_CONTROLLED_INNER_BLOCKS"===t?{...e,[n]:o}:e});function j(e={},t){switch(t.type){case"CLEAR_SELECTED_BLOCK":return e.clientId?{}:e;case"SELECT_BLOCK":return t.clientId===e.clientId?e:{clientId:t.clientId};case"REPLACE_INNER_BLOCKS":case"INSERT_BLOCKS":return t.updateSelection&&t.blocks.length?{clientId:t.blocks[0].clientId}:e;case"REMOVE_BLOCKS":return t.clientIds&&t.clientIds.length&&-1!==t.clientIds.indexOf(e.clientId)?{}:e;case"REPLACE_BLOCKS":{if(-1===t.clientIds.indexOf(e.clientId))return e;const n=t.indexToSelect||t.blocks.length-1,o=t.blocks[n];return o?o.clientId===e.clientId?e:{clientId:o.clientId}:{}}}return e}var v=Object(c.combineReducers)({blocks:O,isTyping:function(e=!1,t){switch(t.type){case"START_TYPING":return!0;case"STOP_TYPING":return!1}return e},draggedBlocks:function(e=[],t){switch(t.type){case"START_DRAGGING_BLOCKS":return t.clientIds;case"STOP_DRAGGING_BLOCKS":return[]}return e},isCaretWithinFormattedText:function(e=!1,t){switch(t.type){case"ENTER_FORMATTED_TEXT":return!0;case"EXIT_FORMATTED_TEXT":return!1}return e},selection:function(e={},t){var n,o;switch(t.type){case"SELECTION_CHANGE":return{selectionStart:{clientId:t.clientId,attributeKey:t.attributeKey,offset:t.startOffset},selectionEnd:{clientId:t.clientId,attributeKey:t.attributeKey,offset:t.endOffset}};case"RESET_SELECTION":const{selectionStart:r,selectionEnd:c}=t;return{selectionStart:r,selectionEnd:c};case"MULTI_SELECT":const{start:i,end:l}=t;return{selectionStart:{clientId:i},selectionEnd:{clientId:l}};case"RESET_BLOCKS":const a=null==e||null===(n=e.selectionStart)||void 0===n?void 0:n.clientId,s=null==e||null===(o=e.selectionEnd)||void 0===o?void 0:o.clientId;if(!a&&!s)return e;if(!t.blocks.some(e=>e.clientId===a))return{selectionStart:{},selectionEnd:{}};if(!t.blocks.some(e=>e.clientId===s))return{...e,selectionEnd:e.selectionStart}}return{selectionStart:j(e.selectionStart,t),selectionEnd:j(e.selectionEnd,t)}},isMultiSelecting:function(e=!1,t){switch(t.type){case"START_MULTI_SELECT":return!0;case"STOP_MULTI_SELECT":return!1}return e},isSelectionEnabled:function(e=!0,t){switch(t.type){case"TOGGLE_SELECTION":return t.isSelectionEnabled}return e},initialPosition:function(e=null,t){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(e={},t){if("TOGGLE_BLOCK_MODE"===t.type){const{clientId:n}=t;return{...e,[n]:e[n]&&"html"===e[n]?"visual":"html"}}return e},blockListSettings:(e={},t)=>{switch(t.type){case"REPLACE_BLOCKS":case"REMOVE_BLOCKS":return Object(i.omit)(e,t.clientIds);case"UPDATE_BLOCK_LIST_SETTINGS":{const{clientId:n}=t;return t.settings?Object(i.isEqual)(e[n],t.settings)?e:{...e,[n]:t.settings}:e.hasOwnProperty(n)?Object(i.omit)(e,n):e}}return e},insertionPoint:function(e=null,t){switch(t.type){case"SHOW_INSERTION_POINT":const{rootClientId:e,index:n,__unstableWithInserter:o}=t;return{rootClientId:e,index:n,__unstableWithInserter:o};case"HIDE_INSERTION_POINT":return null}return e},template:function(e={isValid:!0},t){switch(t.type){case"SET_TEMPLATE_VALIDITY":return{...e,isValid:t.isValid}}return e},settings:function(e=a.b,t){switch(t.type){case"UPDATE_SETTINGS":return{...e,...t.settings}}return e},preferences:function(e=a.a,t){switch(t.type){case"INSERT_BLOCKS":case"REPLACE_BLOCKS":return t.blocks.reduce((e,n)=>{const{attributes:o,name:r}=n,i=Object(c.select)(l.store).getActiveBlockVariation(r,o);let a=null!=i&&i.name?`${r}/${i.name}`:r;const s={name:a};return"core/block"===r&&(s.ref=o.ref,a+="/"+o.ref),{...e,insertUsage:{...e.insertUsage,[a]:{time:t.time,count:e.insertUsage[a]?e.insertUsage[a].count+1:1,insert:s}}}},e)}return e},lastBlockAttributesChange:function(e,t){switch(t.type){case"UPDATE_BLOCK":if(!t.updates.attributes)break;return{[t.clientId]:t.updates.attributes};case"UPDATE_BLOCK_ATTRIBUTES":return t.clientIds.reduce((e,n)=>({...e,[n]:t.uniqueByBlock?t.attributes[n]:t.attributes}),{})}return null},isNavigationMode:function(e=!1,t){return"INSERT_BLOCKS"!==t.type&&("SET_NAVIGATION_MODE"===t.type?t.isNavigationMode:e)},hasBlockMovingClientId:function(e=null,t){return"SET_BLOCK_MOVING_MODE"===t.type?t.hasBlockMovingClientId:"SET_NAVIGATION_MODE"===t.type?null:e},automaticChangeStatus:function(e,t){switch(t.type){case"MARK_AUTOMATIC_CHANGE":return"pending";case"MARK_AUTOMATIC_CHANGE_FINAL":return"pending"===e?"final":void 0;case"SELECTION_CHANGE":return"final"!==e?e:void 0;case"START_TYPING":case"STOP_TYPING":return e}},highlightedBlock:function(e,t){switch(t.type){case"TOGGLE_BLOCK_HIGHLIGHT":const{clientId:n,isHighlighted:o}=t;return o?n:e===n?null:e;case"SELECT_BLOCK":if(t.clientId!==e)return null}return e},lastBlockInserted:function(e={},t){var n;switch(t.type){case"INSERT_BLOCKS":return t.blocks.length?{clientId:t.blocks[0].clientId,source:null===(n=t.meta)||void 0===n?void 0:n.source}:e;case"RESET_BLOCKS":return{}}return e}}),k=n(0),_=n(32),y=n(3);const E=Object(k.createElement)(y.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(k.createElement)(y.Rect,{x:"0",fill:"none",width:"24",height:"24"}),Object(k.createElement)(y.G,null,Object(k.createElement)(y.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"}))),C=[];function S(e,t){const n=e.blocks.byClientId[t];if("web"!==k.Platform.OS&&"core/social-link"===(null==n?void 0:n.name)){const n=e.blocks.attributes[t],{service:o}=n;return o?"core/social-link-"+o:"core/social-link"}return n?n.name:null}function w(e,t){const n=e.blocks.byClientId[t];return!!n&&n.isValid}function B(e,t){return e.blocks.byClientId[t]?e.blocks.attributes[t]:null}const I=Object(_.a)((e,t)=>{const n=e.blocks.byClientId[t];return n?{...n,attributes:B(e,t),innerBlocks:dt(e,t)?C:T(e,t)}:null},(e,t)=>[e.blocks.cache[t]]),x=Object(_.a)((e,t)=>{const n=e.blocks.byClientId[t];return n?{...n,attributes:B(e,t)}:null},(e,t)=>[e.blocks.byClientId[t],e.blocks.attributes[t]]),T=Object(_.a)((e,t)=>Object(i.map)(pe(e,t),t=>I(e,t)),(e,t)=>Object(i.map)(e.blocks.order[t||""],t=>e.blocks.cache[t])),N=Object(_.a)((e,t)=>{const n=e.blocks.byClientId[t];return n?{...n,attributes:B(e,t),innerBlocks:L(e,t)}:null},e=>[e.blocks.byClientId,e.blocks.order,e.blocks.attributes]),L=Object(_.a)((e,t="")=>Object(i.map)(pe(e,t),t=>N(e,t)),e=>[e.blocks.byClientId,e.blocks.order,e.blocks.attributes]),R=Object(_.a)((e,t)=>({clientId:t,innerBlocks:P(e,t)}),e=>[e.blocks.order]),P=Object(_.a)((e,t="")=>Object(i.map)(pe(e,t),t=>R(e,t)),e=>[e.blocks.order]),A=(e,t)=>Object(i.flatMap)(t,t=>{const n=pe(e,t);return[...n,...A(e,n)]}),M=Object(_.a)(e=>{const t=pe(e);return[...t,...A(e,t)]},e=>[e.blocks.order]),D=Object(_.a)((e,t)=>{const n=M(e);return t?Object(i.reduce)(n,(n,o)=>e.blocks.byClientId[o].name===t?n+1:n,0):n.length},e=>[e.blocks.order,e.blocks.byClientId]),F=Object(_.a)((e,t)=>Object(i.map)(Object(i.castArray)(t),t=>I(e,t)),e=>[e.blocks.byClientId,e.blocks.order,e.blocks.attributes]);function V(e,t){return pe(e,t).length}function H(e){return e.selection.selectionStart}function z(e){return e.selection.selectionEnd}function U(e){return e.selection.selectionStart.clientId}function G(e){return e.selection.selectionEnd.clientId}function W(e){return ce(e).length||(e.selection.selectionStart.clientId?1:0)}function K(e){const{selectionStart:t,selectionEnd:n}=e.selection;return!!t.clientId&&t.clientId===n.clientId}function $(e){const{selectionStart:t,selectionEnd:n}=e.selection,{clientId:o}=t;return o&&o===n.clientId?o:null}function q(e){const t=$(e);return t?I(e,t):null}function Y(e,t){return void 0!==e.blocks.parents[t]?e.blocks.parents[t]:null}const X=Object(_.a)((e,t,n=!1)=>{const o=[];let r=t;for(;e.blocks.parents[r];)r=e.blocks.parents[r],o.push(r);return n?o:o.reverse()},e=>[e.blocks.parents]),Q=Object(_.a)((e,t,n,o=!1)=>{const r=X(e,t,o);return Object(i.map)(Object(i.filter)(Object(i.map)(r,t=>({id:t,name:S(e,t)})),({name:e})=>Array.isArray(n)?n.includes(e):e===n),({id:e})=>e)},e=>[e.blocks.parents]);function Z(e,t){let n,o=t;do{n=o,o=e.blocks.parents[o]}while(o);return n}function J(e,t){const n=$(e),o=[...X(e,t),t],r=[...X(e,n),n];let c;const i=Math.min(o.length,r.length);for(let e=0;e<i&&o[e]===r[e];e++)c=o[e];return c}function ee(e,t,n=1){if(void 0===t&&(t=$(e)),void 0===t&&(t=n<0?le(e):ae(e)),!t)return null;const o=Y(e,t);if(null===o)return null;const{order:r}=e.blocks,c=r[o],i=c.indexOf(t)+1*n;return i<0||i===c.length?null:c[i]}function te(e,t){return ee(e,t,-1)}function ne(e,t){return ee(e,t,1)}function oe(e){return e.initialPosition}const re=Object(_.a)(e=>{const{selectionStart:t,selectionEnd:n}=e.selection;if(void 0===t.clientId||void 0===n.clientId)return C;if(t.clientId===n.clientId)return[t.clientId];const o=Y(e,t.clientId);if(null===o)return C;const r=pe(e,o),c=r.indexOf(t.clientId),i=r.indexOf(n.clientId);return c>i?r.slice(i,c+1):r.slice(c,i+1)},e=>[e.blocks.order,e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId]);function ce(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId===n.clientId?C:re(e)}const ie=Object(_.a)(e=>{const t=ce(e);return t.length?t.map(t=>I(e,t)):C},e=>[...re.getDependants(e),e.blocks.byClientId,e.blocks.order,e.blocks.attributes]);function le(e){return Object(i.first)(ce(e))||null}function ae(e){return Object(i.last)(ce(e))||null}function se(e,t){return le(e)===t}function ue(e,t){return-1!==ce(e).indexOf(t)}const de=Object(_.a)((e,t)=>{let n=t,o=!1;for(;n&&!o;)n=Y(e,n),o=ue(e,n);return o},e=>[e.blocks.order,e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId]);function be(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId===n.clientId?null:t.clientId||null}function me(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId===n.clientId?null:n.clientId||null}function pe(e,t){return e.blocks.order[t||""]||C}function fe(e,t,n){return pe(e,n).indexOf(t)}function ge(e,t){const{selectionStart:n,selectionEnd:o}=e.selection;return n.clientId===o.clientId&&n.clientId===t}function he(e,t,n=!1){return Object(i.some)(pe(e,t),t=>ge(e,t)||ue(e,t)||n&&he(e,t,n))}function Oe(e,t){if(!t)return!1;const n=ce(e),o=n.indexOf(t);return o>-1&&o<n.length-1}function je(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId!==n.clientId}function ve(e){return e.isMultiSelecting}function ke(e){return e.isSelectionEnabled}function _e(e,t){return e.blocksMode[t]||"visual"}function ye(e){return e.isTyping}function Ee(e){return!!e.draggedBlocks.length}function Ce(e){return e.draggedBlocks}function Se(e,t){return e.draggedBlocks.includes(t)}function we(e,t){if(!Ee(e))return!1;const n=X(e,t);return Object(i.some)(n,t=>Se(e,t))}function Be(e){return e.isCaretWithinFormattedText}function Ie(e){let t,n;const{insertionPoint:o,selection:{selectionEnd:r}}=e;if(null!==o)return o;const{clientId:c}=r;return c?(t=Y(e,c)||void 0,n=fe(e,r.clientId,t)+1):n=pe(e).length,{rootClientId:t,index:n}}function xe(e){return null!==e.insertionPoint}function Te(e){return e.template.isValid}function Ne(e){return e.settings.template}function Le(e,t){if(!t)return e.settings.templateLock;const n=Ze(e,t);return n?n.templateLock:null}const Re=(e,t,n=null)=>Object(i.isBoolean)(e)?e:Object(i.isArray)(e)?!(!e.includes("core/post-content")||null!==t)||e.includes(t):n,Pe=(e,t,n=null)=>{let o;if(t&&"object"==typeof t?(o=t,t=o.name):o=Object(l.getBlockType)(t),!o)return!1;const{allowedBlockTypes:r}=Je(e);if(!Re(r,t,!0))return!1;if(Le(e,n))return!1;const c=Ze(e,n);if(n&&void 0===c)return!1;const i=null==c?void 0:c.allowedBlocks,a=Re(i,t),s=o.parent,u=S(e,n),d=Re(s,u);return null!==a&&null!==d?a||d:null!==a?a:null===d||d},Ae=Object(_.a)(Pe,(e,t,n)=>[e.blockListSettings[n],e.blocks.byClientId[n],e.settings.allowedBlockTypes,e.settings.templateLock]);function Me(e,t,n=null){return t.every(t=>Ae(e,S(e,t),n))}function De(e,t){var n,o;return null!==(n=null===(o=e.preferences.insertUsage)||void 0===o?void 0:o[t])&&void 0!==n?n:null}const Fe=(e,t,n)=>!!Object(l.hasBlockSupport)(t,"inserter",!0)&&Pe(e,t.name,n),Ve=(e,t)=>n=>{const o=`${t.id}/${n.name}`,{time:r,count:c=0}=De(e,o)||{};return{...t,id:o,icon:n.icon||t.icon,title:n.title||t.title,description:n.description||t.description,category:n.category||t.category,example:n.hasOwnProperty("example")?n.example:t.example,initialAttributes:{...t.initialAttributes,...n.attributes},innerBlocks:n.innerBlocks,keywords:n.keywords||t.keywords,frecency:He(r,c)}},He=(e,t)=>{if(!e)return t;const n=Date.now()-e;switch(!0){case n<36e5:return 4*t;case n<864e5:return 2*t;case n<6048e5:return t/2;default:return t/4}},ze=(e,{buildScope:t="inserter"})=>n=>{const o=n.name;let r=!1;Object(l.hasBlockSupport)(n.name,"multiple",!0)||(r=Object(i.some)(F(e,M(e)),{name:n.name}));const{time:c,count:a=0}=De(e,o)||{},s={id:o,name:n.name,title:n.title,icon:n.icon,isDisabled:r,frecency:He(c,a)};if("transform"===t)return s;const u=n.variations.filter(({scope:e})=>!e||e.includes("inserter"));return{...s,initialAttributes:{},description:n.description,category:n.category,keywords:n.keywords,variations:u,example:n.example,utility:1}},Ue=Object(_.a)((e,t=null)=>{const n=ze(e,{buildScope:"inserter"}),o=Object(l.getBlockTypes)().filter(n=>Fe(e,n,t)).map(n),r=Pe(e,"core/block",t)?it(e).map(t=>{const n="core/block/"+t.id,o=nt(e,t.id);let r;1===o.length&&(r=Object(l.getBlockType)(o[0].name));const{time:c,count:i=0}=De(e,n)||{},a=He(c,i);return{id:n,name:"core/block",initialAttributes:{ref:t.id},title:t.title.raw,icon:r?r.icon:E,category:"reusable",keywords:[],isDisabled:!1,utility:1,frecency:a}}):[],c=o.filter(({variations:e=[]})=>!e.some(({isDefault:e})=>e)),i=[];for(const t of o){const{variations:n=[]}=t;if(n.length){const o=Ve(e,t);i.push(...n.map(o))}}return[...[...c,...i].sort((e,t)=>{const n=e.name.startsWith("core/"),o=t.name.startsWith("core/");return n&&o?0:n&&!o?-1:1}),...r]},(e,t)=>[e.blockListSettings[t],e.blocks.byClientId,e.blocks.order,e.preferences.insertUsage,e.settings.allowedBlockTypes,e.settings.templateLock,it(e),Object(l.getBlockTypes)()]),Ge=Object(_.a)((e,t,n=null)=>{const o=ze(e,{buildScope:"transform"}),r=Object(l.getBlockTypes)().filter(t=>Fe(e,t,n)).map(o),c=Object(i.mapKeys)(r,({name:e})=>e),a=Object(l.getPossibleBlockTransformations)(t).reduce((e,t)=>(c[null==t?void 0:t.name]&&e.push(c[t.name]),e),[]);return Object(i.orderBy)(a,e=>c[e.name].frecency,"desc")},(e,t)=>[e.blockListSettings[t],e.blocks.byClientId,e.preferences.insertUsage,e.settings.allowedBlockTypes,e.settings.templateLock,Object(l.getBlockTypes)()]),We=Object(_.a)((e,t=null)=>!!Object(i.some)(Object(l.getBlockTypes)(),n=>Fe(e,n,t))||Pe(e,"core/block",t)&&it(e).length>0,(e,t)=>[e.blockListSettings[t],e.blocks.byClientId,e.settings.allowedBlockTypes,e.settings.templateLock,it(e),Object(l.getBlockTypes)()]),Ke=Object(_.a)((e,t=null)=>{if(t)return Object(i.filter)(Object(l.getBlockTypes)(),n=>Fe(e,n,t))},(e,t)=>[e.blockListSettings[t],e.blocks.byClientId,e.settings.allowedBlockTypes,e.settings.templateLock,Object(l.getBlockTypes)()]),$e=Object(_.a)((e,t)=>{const n=e.settings.__experimentalBlockPatterns.find(({name:e})=>e===t);return n?{...n,blocks:Object(l.parse)(n.content)}:null},e=>[e.settings.__experimentalBlockPatterns]),qe=Object(_.a)(e=>{const t=e.settings.__experimentalBlockPatterns,{allowedBlockTypes:n}=Je(e);return t.map(({name:t})=>$e(e,t)).filter(({blocks:e})=>((e,t)=>{if(Object(i.isBoolean)(t))return t;const n=[...e];for(;n.length>0;){var o;const e=n.shift();if(!Re(t,e.name||e.blockName,!0))return!1;null===(o=e.innerBlocks)||void 0===o||o.forEach(e=>{n.push(e)})}return!0})(e,n))},e=>[e.settings.__experimentalBlockPatterns,e.settings.allowedBlockTypes]),Ye=Object(_.a)((e,t=null)=>{const n=qe(e);return Object(i.filter)(n,({blocks:n})=>n.every(({name:n})=>Ae(e,n,t)))},(e,t)=>[e.settings.__experimentalBlockPatterns,e.settings.allowedBlockTypes,e.settings.templateLock,e.blockListSettings[t],e.blocks.byClientId[t]]),Xe=Object(_.a)((e,t,n=null)=>{if(!t)return C;const o=Ye(e,n),r=Array.isArray(t)?t:[t];return o.filter(e=>{var t,n;return null==e||null===(t=e.blockTypes)||void 0===t||null===(n=t.some)||void 0===n?void 0:n.call(t,e=>r.includes(e))})},(e,t)=>[...Ye.getDependants(e,t)]),Qe=Object(_.a)((e,t,n=null)=>{if(!t)return C;if(t.some(({clientId:t,innerBlocks:n})=>n.length||dt(e,t)))return C;const o=Array.from(new Set(t.map(({name:e})=>e)));return Xe(e,o,n)},(e,t)=>[...Xe.getDependants(e,t)]);function Ze(e,t){return e.blockListSettings[t]}function Je(e){return e.settings}function et(e){return e.blocks.isPersistentChange}const tt=Object(_.a)((e,t=[])=>t.reduce((t,n)=>e.blockListSettings[n]?{...t,[n]:e.blockListSettings[n]}:t,{}),e=>[e.blockListSettings]),nt=Object(_.a)((e,t)=>{const n=Object(i.find)(it(e),e=>e.id===t);return n?Object(l.parse)("string"==typeof n.content.raw?n.content.raw:n.content):null},e=>[it(e)]),ot=Object(_.a)((e,t)=>{var n;const o=Object(i.find)(it(e),e=>e.id===t);return o?null===(n=o.title)||void 0===n?void 0:n.raw:null},e=>[it(e)]);function rt(e){return e.blocks.isIgnoredChange}function ct(e){return e.lastBlockAttributesChange}function it(e){var t,n;return null!==(t=null==e||null===(n=e.settings)||void 0===n?void 0:n.__experimentalReusableBlocks)&&void 0!==t?t:C}function lt(e){return e.isNavigationMode}function at(e){return e.hasBlockMovingClientId}function st(e){return!!e.automaticChangeStatus}function ut(e,t){return e.highlightedBlock===t}function dt(e,t){return!!e.blocks.controlledInnerBlocks[t]}const bt=Object(_.a)((e,t)=>{if(!t.length)return null;const n=$(e);if(t.includes(S(e,n)))return n;const o=ce(e),r=Q(e,n||o[0],t);return r?Object(i.last)(r):null},(e,t)=>[e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId,t]);function mt(e,t,n){const{lastBlockInserted:o}=e;return o.clientId===t&&o.source===n}var pt=n(33),ft=n(1),gt=n(17),ht=n(26),Ot=n.n(ht),jt={SLEEP:({duration:e})=>new Promise(t=>{setTimeout(t,e)}),MARK_AUTOMATIC_CHANGE_FINAL_CONTROL:Object(c.createRegistryControl)(e=>()=>{const{requestIdleCallback:t=(e=>setTimeout(e,100))}=window;t(()=>e.dispatch(wn).__unstableMarkAutomaticChangeFinal())})},vt=n(43);function*kt(){if(0===(yield c.controls.select(vt.a,"getBlockCount"))){const{__unstableHasCustomAppender:e}=yield c.controls.select(vt.a,"getSettings");if(e)return;return yield sn()}}function*_t(e){return yield{type:"RESET_BLOCKS",blocks:e},yield*yt(e)}function*yt(e){const t=yield c.controls.select(vt.a,"getTemplate"),n=yield c.controls.select(vt.a,"getTemplateLock"),o=!t||"all"!==n||Object(l.doBlocksMatchTemplate)(e,t);if(o!==(yield c.controls.select(vt.a,"isValidTemplate")))return yield qt(o),o}function Et(e,t,n){return{type:"RESET_SELECTION",selectionStart:e,selectionEnd:t,initialPosition:n}}function Ct(e){return{type:"RECEIVE_BLOCKS",blocks:e}}function St(e,t,n=!1){return{type:"UPDATE_BLOCK_ATTRIBUTES",clientIds:Object(i.castArray)(e),attributes:t,uniqueByBlock:n}}function wt(e,t){return{type:"UPDATE_BLOCK",clientId:e,updates:t}}function Bt(e,t=0){return{type:"SELECT_BLOCK",initialPosition:t,clientId:e}}function*It(e){const t=yield c.controls.select(vt.a,"getPreviousBlockClientId",e);if(t)return yield Bt(t,-1),[t]}function*xt(e){const t=yield c.controls.select(vt.a,"getNextBlockClientId",e);if(t)return yield Bt(t),[t]}function Tt(){return{type:"START_MULTI_SELECT"}}function Nt(){return{type:"STOP_MULTI_SELECT"}}function*Lt(e,t){if((yield c.controls.select(vt.a,"getBlockRootClientId",e))!==(yield c.controls.select(vt.a,"getBlockRootClientId",t)))return;yield{type:"MULTI_SELECT",start:e,end:t};const n=yield c.controls.select(vt.a,"getSelectedBlockCount");Object(pt.speak)(Object(ft.sprintf)(
2
  /* translators: %s: number of selected blocks */
3
+ Object(ft._n)("%s block selected.","%s blocks selected.",n),n),"assertive")}function Rt(){return{type:"CLEAR_SELECTED_BLOCK"}}function Pt(e=!0){return{type:"TOGGLE_SELECTION",isSelectionEnabled:e}}function At(e,t){var n,o;const r=null!==(n=null==t||null===(o=t.__experimentalPreferredStyleVariations)||void 0===o?void 0:o.value)&&void 0!==n?n:{};return e.map(e=>{var t;const n=e.name;if(!Object(l.hasBlockSupport)(n,"defaultStylePicker",!0))return e;if(!r[n])return e;const o=null===(t=e.attributes)||void 0===t?void 0:t.className;if(null!=o&&o.includes("is-style-"))return e;const{attributes:c={}}=e,i=r[n];return{...e,attributes:{...c,className:`${o||""} is-style-${i}`.trim()}}})}function*Mt(e,t,n,o=0,r){e=Object(i.castArray)(e),t=At(Object(i.castArray)(t),yield c.controls.select(vt.a,"getSettings"));const l=yield c.controls.select(vt.a,"getBlockRootClientId",Object(i.first)(e));for(let e=0;e<t.length;e++){const n=t[e];if(!(yield c.controls.select(vt.a,"canInsertBlockType",n.name,l)))return}yield{type:"REPLACE_BLOCKS",clientIds:e,blocks:t,time:Date.now(),indexToSelect:n,initialPosition:o,meta:r},yield*kt()}function Dt(e,t){return Mt(e,t)}function Ft(e){return(t,n)=>({clientIds:Object(i.castArray)(t),type:e,rootClientId:n})}const Vt=Ft("MOVE_BLOCKS_DOWN"),Ht=Ft("MOVE_BLOCKS_UP");function*zt(e,t="",n="",o){const r=yield c.controls.select(vt.a,"getTemplateLock",t);if("all"===r)return;const i={type:"MOVE_BLOCKS_TO_POSITION",fromRootClientId:t,toRootClientId:n,clientIds:e,index:o};t!==n?"insert"!==r&&(yield c.controls.select(vt.a,"canInsertBlocks",e,n))&&(yield i):yield i}function*Ut(e,t="",n="",o){yield zt([e],t,n,o)}function Gt(e,t,n,o=!0,r){return Wt([e],t,n,o,0,r)}function*Wt(e,t,n,o=!0,r=0,l){Object(i.isObject)(r)&&(l=r,r=0,Ot()("meta argument in wp.data.dispatch('core/block-editor')",{since:"10.1",plugin:"Gutenberg",hint:"The meta argument is now the 6th argument of the function"})),e=At(Object(i.castArray)(e),yield c.controls.select(vt.a,"getSettings"));const a=[];for(const t of e)(yield c.controls.select(vt.a,"canInsertBlockType",t.name,n))&&a.push(t);if(a.length)return{type:"INSERT_BLOCKS",blocks:a,index:t,rootClientId:n,time:Date.now(),updateSelection:o,initialPosition:o?r:null,meta:l}}function Kt(e,t,n={}){const{__unstableWithInserter:o}=n;return{type:"SHOW_INSERTION_POINT",rootClientId:e,index:t,__unstableWithInserter:o}}function $t(){return{type:"HIDE_INSERTION_POINT"}}function qt(e){return{type:"SET_TEMPLATE_VALIDITY",isValid:e}}function*Yt(){yield{type:"SYNCHRONIZE_TEMPLATE"};const e=yield c.controls.select(vt.a,"getBlocks"),t=yield c.controls.select(vt.a,"getTemplate"),n=Object(l.synchronizeBlocksWithTemplate)(e,t);return yield _t(n)}function*Xt(e,t){const n=[e,t];yield{type:"MERGE_BLOCKS",blocks:n};const[o,r]=n,a=yield c.controls.select(vt.a,"getBlock",o),s=Object(l.getBlockType)(a.name);if(!s.merge)return void(yield Bt(a.clientId));const u=yield c.controls.select(vt.a,"getBlock",r),d=Object(l.getBlockType)(u.name),{clientId:b,attributeKey:m,offset:p}=yield c.controls.select(vt.a,"getSelectionStart"),f=(b===o?s:d).attributes[m],g=(b===o||b===r)&&void 0!==m&&void 0!==p&&!!f;f||("number"==typeof m?window.console.error("RichText needs an identifier prop that is the block attribute key of the attribute it controls. Its type is expected to be a string, but was "+typeof m):window.console.error("The RichText identifier prop does not match any attributes defined by the block."));const h=Object(l.cloneBlock)(a),O=Object(l.cloneBlock)(u);if(g){const e=b===o?h:O,t=e.attributes[m],{multiline:n,__unstableMultilineWrapperTags:r,__unstablePreserveWhiteSpace:c}=f,i=Object(gt.insert)(Object(gt.create)({html:t,multilineTag:n,multilineWrapperTags:r,preserveWhiteSpace:c}),"†",p,p);e.attributes[m]=Object(gt.toHTMLString)({value:i,multilineTag:n,preserveWhiteSpace:c})}const j=a.name===u.name?[O]:Object(l.switchToBlockType)(O,a.name);if(!j||!j.length)return;const v=s.merge(h.attributes,j[0].attributes);if(g){const e=Object(i.findKey)(v,e=>"string"==typeof e&&-1!==e.indexOf("†")),t=v[e],{multiline:n,__unstableMultilineWrapperTags:o,__unstablePreserveWhiteSpace:r}=s.attributes[e],c=Object(gt.create)({html:t,multilineTag:n,multilineWrapperTags:o,preserveWhiteSpace:r}),l=c.text.indexOf("†"),u=Object(gt.remove)(c,l,l+1),d=Object(gt.toHTMLString)({value:u,multilineTag:n,preserveWhiteSpace:r});v[e]=d,yield an(a.clientId,e,l,l)}yield*Mt([a.clientId,u.clientId],[{...a,attributes:{...a.attributes,...v}},...j.slice(1)])}function*Qt(e,t=!0){if(!e||!e.length)return;e=Object(i.castArray)(e);const n=yield c.controls.select(vt.a,"getBlockRootClientId",e[0]);if(yield c.controls.select(vt.a,"getTemplateLock",n))return;let o;o=t?yield It(e[0]):yield c.controls.select(vt.a,"getPreviousBlockClientId",e[0]),yield{type:"REMOVE_BLOCKS",clientIds:e};const r=yield*kt();return[o||r]}function Zt(e,t){return Qt([e],t)}function Jt(e,t,n=!1,o=0){return{type:"REPLACE_INNER_BLOCKS",rootClientId:e,blocks:t,updateSelection:n,initialPosition:n?o:null,time:Date.now()}}function en(e){return{type:"TOGGLE_BLOCK_MODE",clientId:e}}function tn(){return{type:"START_TYPING"}}function nn(){return{type:"STOP_TYPING"}}function on(e=[]){return{type:"START_DRAGGING_BLOCKS",clientIds:e}}function rn(){return{type:"STOP_DRAGGING_BLOCKS"}}function cn(){return{type:"ENTER_FORMATTED_TEXT"}}function ln(){return{type:"EXIT_FORMATTED_TEXT"}}function an(e,t,n,o){return{type:"SELECTION_CHANGE",clientId:e,attributeKey:t,startOffset:n,endOffset:o}}function sn(e,t,n){const o=Object(l.getDefaultBlockName)();if(o)return Gt(Object(l.createBlock)(o,e),n,t)}function un(e,t){return{type:"UPDATE_BLOCK_LIST_SETTINGS",clientId:e,settings:t}}function dn(e){return{type:"UPDATE_SETTINGS",settings:e}}function bn(e,t){return{type:"SAVE_REUSABLE_BLOCK_SUCCESS",id:e,updatedId:t}}function mn(){return{type:"MARK_LAST_CHANGE_AS_PERSISTENT"}}function pn(){return{type:"MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"}}function*fn(){yield{type:"MARK_AUTOMATIC_CHANGE"},yield{type:"MARK_AUTOMATIC_CHANGE_FINAL_CONTROL"}}function gn(){return{type:"MARK_AUTOMATIC_CHANGE_FINAL"}}function*hn(e=!0){yield{type:"SET_NAVIGATION_MODE",isNavigationMode:e},e?Object(pt.speak)(Object(ft.__)("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(pt.speak)(Object(ft.__)("You are currently in edit mode. To return to the navigation mode, press Escape."))}function*On(e=null){yield{type:"SET_BLOCK_MOVING_MODE",hasBlockMovingClientId:e},e&&Object(pt.speak)(Object(ft.__)("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."))}function*jn(e,t=!0){if(!e&&!e.length)return;const n=yield c.controls.select(vt.a,"getBlocksByClientId",e),o=yield c.controls.select(vt.a,"getBlockRootClientId",e[0]);if(Object(i.some)(n,e=>!e))return;const r=n.map(e=>e.name);if(Object(i.some)(r,e=>!Object(l.hasBlockSupport)(e,"multiple",!0)))return;const a=yield c.controls.select(vt.a,"getBlockIndex",Object(i.last)(Object(i.castArray)(e)),o),s=n.map(e=>Object(l.__experimentalCloneSanitizedBlock)(e));return yield Wt(s,a+1,o,t),s.length>1&&t&&(yield Lt(Object(i.first)(s).clientId,Object(i.last)(s).clientId)),s.map(e=>e.clientId)}function*vn(e){if(!e)return;const t=yield c.controls.select(vt.a,"getBlockRootClientId",e);if(yield c.controls.select(vt.a,"getTemplateLock",t))return;const n=yield c.controls.select(vt.a,"getBlockIndex",e,t);return yield sn({},t,n)}function*kn(e){if(!e)return;const t=yield c.controls.select(vt.a,"getBlockRootClientId",e);if(yield c.controls.select(vt.a,"getTemplateLock",t))return;const n=yield c.controls.select(vt.a,"getBlockIndex",e,t);return yield sn({},t,n+1)}function yn(e,t){return{type:"TOGGLE_BLOCK_HIGHLIGHT",clientId:e,isHighlighted:t}}function*En(e){yield yn(e,!0),yield{type:"SLEEP",duration:150},yield yn(e,!1)}function Cn(e,t){return{type:"SET_HAS_CONTROLLED_INNER_BLOCKS",hasControlledInnerBlocks:t,clientId:e}}const Sn={reducer:v,selectors:o,actions:r,controls:jt},wn=Object(c.createReduxStore)(vt.a,{...Sn,persist:["preferences"]});Object(c.registerStore)(vt.a,{...Sn,persist:["preferences"]})},function(e,t){e.exports=window.wp.keycodes},,,function(e,t){e.exports=window.wp.richText},,,function(e,t){e.exports=window.wp.url},function(e,t){e.exports=window.wp.hooks},,,function(e,t){e.exports=window.wp.dom},function(e,t,n){e.exports=n(177)()},function(e,t){e.exports=window.wp.deprecated},function(e,t){e.exports=window.wp.keyboardShortcuts},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var o=n(2),r=n(4),c=n(69),i=n(13);const l={"color.palette":e=>void 0===e.colors?void 0:e.colors,"color.gradients":e=>void 0===e.gradients?void 0:e.gradients,"color.custom":e=>void 0===e.disableCustomColors?void 0:!e.disableCustomColors,"color.customGradient":e=>void 0===e.disableCustomGradients?void 0:!e.disableCustomGradients,"typography.fontSizes":e=>void 0===e.fontSizes?void 0:e.fontSizes,"typography.customFontSize":e=>void 0===e.disableCustomFontSizes?void 0:!e.disableCustomFontSizes,"typography.customLineHeight":e=>e.enableCustomLineHeight,"spacing.units":e=>{if(void 0!==e.enableCustomUnits)return!0===e.enableCustomUnits?["px","em","rem","vh","vw","%"]:e.enableCustomUnits},"spacing.customPadding":e=>e.enableCustomSpacing},a={"color.gradients":!0,"color.palette":!0,"typography.fontFamilies":!0,"typography.fontSizes":!0};function s(e){const{name:t}=Object(c.b)();return Object(r.useSelect)(n=>{var r;const c=n(i.a).getSettings(),s="__experimentalFeatures."+e,u=`__experimentalFeatures.blocks.${t}.${e}`,d=null!==(r=Object(o.get)(c,u))&&void 0!==r?r:Object(o.get)(c,s);var b,m;if(void 0!==d)return a[e]?null!==(b=null!==(m=d.user)&&void 0!==m?m:d.theme)&&void 0!==b?b:d.core:d;const p=l[e]?l[e](c):void 0;return void 0!==p?p:"typography.dropCap"===e||void 0},[t,e])}},,,function(e,t){e.exports=window.wp.notices},function(e,t,n){"use strict";var o,r;function c(e){return[e]}function i(){var e={clear:function(){e.head=null}};return e}function l(e,t,n){var o;if(e.length!==t.length)return!1;for(o=n;o<e.length;o++)if(e[o]!==t[o])return!1;return!0}o={},r="undefined"!=typeof WeakMap,t.a=function(e,t){var n,a;function s(){n=r?new WeakMap:i()}function u(){var n,o,r,c,i,s=arguments.length;for(c=new Array(s),r=0;r<s;r++)c[r]=arguments[r];for(i=t.apply(null,c),(n=a(i)).isUniqueByDependants||(n.lastDependants&&!l(i,n.lastDependants,0)&&n.clear(),n.lastDependants=i),o=n.head;o;){if(l(o.args,c,1))return o!==n.head&&(o.prev.next=o.next,o.next&&(o.next.prev=o.prev),o.next=n.head,o.prev=null,n.head.prev=o,n.head=o),o.val;o=o.next}return o={val:e.apply(null,c)},c[0]=null,o.args=c,n.head&&(n.head.prev=o,o.next=n.head),n.head=o,o.val}return t||(t=c),a=r?function(e){var t,r,c,l,a,s=n,u=!0;for(t=0;t<e.length;t++){if(!(a=r=e[t])||"object"!=typeof a){u=!1;break}s.has(r)?s=s.get(r):(c=new WeakMap,s.set(r,c),s=c)}return s.has(o)||((l=i()).isUniqueByDependants=u,s.set(o,l)),s.get(o)}:function(){return n},u.getDependants=t,u.clear=s,s(),u}},function(e,t){e.exports=window.wp.a11y},,function(e,t){e.exports=window.wp.blob},,,,,function(e,t){e.exports=window.wp.htmlEntities},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));const o="core/block-editor"},,function(e,t,n){var o;!function(r){var c=/^\s+/,i=/\s+$/,l=0,a=r.round,s=r.min,u=r.max,d=r.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,o,l={r:0,g:0,b:0},a=1,d=null,b=null,m=null,p=!1,f=!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=U.rgb.exec(e))?{r:t[1],g:t[2],b:t[3]}:(t=U.rgba.exec(e))?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=U.hsl.exec(e))?{h:t[1],s:t[2],l:t[3]}:(t=U.hsla.exec(e))?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=U.hsv.exec(e))?{h:t[1],s:t[2],v:t[3]}:(t=U.hsva.exec(e))?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=U.hex8.exec(e))?{r:P(t[1]),g:P(t[2]),b:P(t[3]),a:F(t[4]),format:n?"name":"hex8"}:(t=U.hex6.exec(e))?{r:P(t[1]),g:P(t[2]),b:P(t[3]),format:n?"name":"hex"}:(t=U.hex4.exec(e))?{r:P(t[1]+""+t[1]),g:P(t[2]+""+t[2]),b:P(t[3]+""+t[3]),a:F(t[4]+""+t[4]),format:n?"name":"hex8"}:!!(t=U.hex3.exec(e))&&{r:P(t[1]+""+t[1]),g:P(t[2]+""+t[2]),b:P(t[3]+""+t[3]),format:n?"name":"hex"}}(e)),"object"==typeof e&&(G(e.r)&&G(e.g)&&G(e.b)?(t=e.r,n=e.g,o=e.b,l={r:255*L(t,255),g:255*L(n,255),b:255*L(o,255)},p=!0,f="%"===String(e.r).substr(-1)?"prgb":"rgb"):G(e.h)&&G(e.s)&&G(e.v)?(d=M(e.s),b=M(e.v),l=function(e,t,n){e=6*L(e,360),t=L(t,100),n=L(n,100);var o=r.floor(e),c=e-o,i=n*(1-t),l=n*(1-c*t),a=n*(1-(1-c)*t),s=o%6;return{r:255*[n,l,i,i,a,n][s],g:255*[a,n,n,l,i,i][s],b:255*[i,i,a,n,n,l][s]}}(e.h,d,b),p=!0,f="hsv"):G(e.h)&&G(e.s)&&G(e.l)&&(d=M(e.s),m=M(e.l),l=function(e,t,n){var o,r,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=L(e,360),t=L(t,100),n=L(n,100),0===t)o=r=c=n;else{var l=n<.5?n*(1+t):n+t-n*t,a=2*n-l;o=i(a,l,e+1/3),r=i(a,l,e),c=i(a,l,e-1/3)}return{r:255*o,g:255*r,b:255*c}}(e.h,d,m),p=!0,f="hsl"),e.hasOwnProperty("a")&&(a=e.a)),a=N(a),{ok:p,format:e.format||f,r:s(255,u(l.r,0)),g:s(255,u(l.g,0)),b:s(255,u(l.b,0)),a:a}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=a(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=a(this._r)),this._g<1&&(this._g=a(this._g)),this._b<1&&(this._b=a(this._b)),this._ok=n.ok,this._tc_id=l++}function m(e,t,n){e=L(e,255),t=L(t,255),n=L(n,255);var o,r,c=u(e,t,n),i=s(e,t,n),l=(c+i)/2;if(c==i)o=r=0;else{var a=c-i;switch(r=l>.5?a/(2-c-i):a/(c+i),c){case e:o=(t-n)/a+(t<n?6:0);break;case t:o=(n-e)/a+2;break;case n:o=(e-t)/a+4}o/=6}return{h:o,s:r,l:l}}function p(e,t,n){e=L(e,255),t=L(t,255),n=L(n,255);var o,r,c=u(e,t,n),i=s(e,t,n),l=c,a=c-i;if(r=0===c?0:a/c,c==i)o=0;else{switch(c){case e:o=(t-n)/a+(t<n?6:0);break;case t:o=(n-e)/a+2;break;case n:o=(e-t)/a+4}o/=6}return{h:o,s:r,v:l}}function f(e,t,n,o){var r=[A(a(e).toString(16)),A(a(t).toString(16)),A(a(n).toString(16))];return o&&r[0].charAt(0)==r[0].charAt(1)&&r[1].charAt(0)==r[1].charAt(1)&&r[2].charAt(0)==r[2].charAt(1)?r[0].charAt(0)+r[1].charAt(0)+r[2].charAt(0):r.join("")}function g(e,t,n,o){return[A(D(o)),A(a(e).toString(16)),A(a(t).toString(16)),A(a(n).toString(16))].join("")}function h(e,t){t=0===t?0:t||10;var n=b(e).toHsl();return n.s-=t/100,n.s=R(n.s),b(n)}function O(e,t){t=0===t?0:t||10;var n=b(e).toHsl();return n.s+=t/100,n.s=R(n.s),b(n)}function j(e){return b(e).desaturate(100)}function v(e,t){t=0===t?0:t||10;var n=b(e).toHsl();return n.l+=t/100,n.l=R(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-a(-t/100*255))),n.g=u(0,s(255,n.g-a(-t/100*255))),n.b=u(0,s(255,n.b-a(-t/100*255))),b(n)}function _(e,t){t=0===t?0:t||10;var n=b(e).toHsl();return n.l-=t/100,n.l=R(n.l),b(n)}function y(e,t){var n=b(e).toHsl(),o=(n.h+t)%360;return n.h=o<0?360+o:o,b(n)}function E(e){var t=b(e).toHsl();return t.h=(t.h+180)%360,b(t)}function C(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 S(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 w(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 o=b(e).toHsl(),r=360/n,c=[b(e)];for(o.h=(o.h-(r*t>>1)+720)%360;--t;)o.h=(o.h+r)%360,c.push(b(o));return c}function I(e,t){t=t||6;for(var n=b(e).toHsv(),o=n.h,r=n.s,c=n.v,i=[],l=1/t;t--;)i.push(b({h:o,s:r,v:c})),c=(c+l)%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,o=this.toRgb();return e=o.r/255,t=o.g/255,n=o.b/255,.2126*(e<=.03928?e/12.92:r.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:r.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:r.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=N(e),this._roundA=a(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=a(360*e.h),n=a(100*e.s),o=a(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+o+"%)":"hsva("+t+", "+n+"%, "+o+"%, "+this._roundA+")"},toHsl:function(){var e=m(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=m(this._r,this._g,this._b),t=a(360*e.h),n=a(100*e.s),o=a(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+o+"%)":"hsla("+t+", "+n+"%, "+o+"%, "+this._roundA+")"},toHex:function(e){return f(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,o,r){var c=[A(a(e).toString(16)),A(a(t).toString(16)),A(a(n).toString(16)),A(D(o))];return r&&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:a(this._r),g:a(this._g),b:a(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+a(this._r)+", "+a(this._g)+", "+a(this._b)+")":"rgba("+a(this._r)+", "+a(this._g)+", "+a(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:a(100*L(this._r,255))+"%",g:a(100*L(this._g,255))+"%",b:a(100*L(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+a(100*L(this._r,255))+"%, "+a(100*L(this._g,255))+"%, "+a(100*L(this._b,255))+"%)":"rgba("+a(100*L(this._r,255))+"%, "+a(100*L(this._g,255))+"%, "+a(100*L(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(T[f(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+g(this._r,this._g,this._b,this._a),n=t,o=this._gradientType?"GradientType = 1, ":"";if(e){var r=b(e);n="#"+g(r._r,r._g,r._b,r._a)}return"progid:DXImageTransform.Microsoft.gradient("+o+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,o=this._a<1&&this._a>=0;return t||!o||"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(v,arguments)},brighten:function(){return this._applyModification(k,arguments)},darken:function(){return this._applyModification(_,arguments)},desaturate:function(){return this._applyModification(h,arguments)},saturate:function(){return this._applyModification(O,arguments)},greyscale:function(){return this._applyModification(j,arguments)},spin:function(){return this._applyModification(y,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(w,arguments)},triad:function(){return this._applyCombination(C,arguments)},tetrad:function(){return this._applyCombination(S,arguments)}},b.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var o in e)e.hasOwnProperty(o)&&(n[o]="a"===o?e[o]:M(e[o]));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 o=b(e).toRgb(),r=b(t).toRgb(),c=n/100;return b({r:(r.r-o.r)*c+o.r,g:(r.g-o.g)*c+o.g,b:(r.b-o.b)*c+o.b,a:(r.a-o.a)*c+o.a})},b.readability=function(e,t){var n=b(e),o=b(t);return(r.max(n.getLuminance(),o.getLuminance())+.05)/(r.min(n.getLuminance(),o.getLuminance())+.05)},b.isReadable=function(e,t,n){var o,r,c,i,l,a=b.readability(e,t);switch(r=!1,(c=n,"AA"!==(i=((c=c||{level:"AA",size:"small"}).level||"AA").toUpperCase())&&"AAA"!==i&&(i="AA"),"small"!==(l=(c.size||"small").toLowerCase())&&"large"!==l&&(l="small"),o={level:i,size:l}).level+o.size){case"AAsmall":case"AAAlarge":r=a>=4.5;break;case"AAlarge":r=a>=3;break;case"AAAsmall":r=a>=7}return r},b.mostReadable=function(e,t,n){var o,r,c,i,l=null,a=0;r=(n=n||{}).includeFallbackColors,c=n.level,i=n.size;for(var s=0;s<t.length;s++)(o=b.readability(e,t[s]))>a&&(a=o,l=b(t[s]));return b.isReadable(e,l,{level:c,size:i})||!r?l:(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"},T=b.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(x);function N(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function L(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),r.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function R(e){return s(1,u(0,e))}function P(e){return parseInt(e,16)}function A(e){return 1==e.length?"0"+e:""+e}function M(e){return e<=1&&(e=100*e+"%"),e}function D(e){return r.round(255*parseFloat(e)).toString(16)}function F(e){return P(e)/255}var V,H,z,U=(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 G(e){return!!U.CSS_UNIT.exec(e)}e.exports?e.exports=b:void 0===(o=function(){return b}.call(t,n,t,e))||(e.exports=o)}(Math)},,,,,,,,,function(e,t){e.exports=window.wp.isShallowEqual},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var o=n(0),r=n(10),c=n.n(r),i=n(3),l=n(151);function a({icon:e,showColors:t=!1,className:n}){var r;"block-default"===(null===(r=e)||void 0===r?void 0:r.src)&&(e={src:l.a});const a=Object(o.createElement)(i.Icon,{icon:e&&e.src?e.src:e}),s=t?{backgroundColor:e&&e.background,color:e&&e.foreground}:{};return Object(o.createElement)("span",{style:s,className:c()("block-editor-block-icon",n,{"has-colors":t})},a)}},,,,,,,,,,,,,function(e,t){e.exports=window.wp.warning},function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return i}));var o=n(0);const r=Object(o.createContext)({name:"",isSelected:!1,clientId:null}),{Provider:c}=r;function i(){return Object(o.useContext)(r)}},,,,function(e,t,n){"use strict";n.d(t,"c",(function(){return i})),n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return a}));var o=n(0),r=n(9),c=n(170);function i(e){const{refs:t,callbacks:n}=Object(o.useContext)(c.a),i=Object(o.useRef)();return Object(o.useLayoutEffect)(()=>(t.set(i,e),()=>{t.delete(i)}),[e]),Object(r.useRefEffect)(t=>{i.current=t,n.forEach((n,o)=>{e===n&&o(t)})},[e])}function l(e){const{refs:t}=Object(o.useContext)(c.a),n=Object(o.useRef)();return n.current=e,Object(o.useMemo)(()=>({get current(){let e=null;for(const[o,r]of t.entries())r===n.current&&o.current&&(e=o.current);return e}}),[])}function a(e){const{callbacks:t}=Object(o.useContext)(c.a),n=l(e),[r,i]=Object(o.useState)(null);return Object(o.useLayoutEffect)(()=>{if(e)return t.set(i,e),()=>{t.delete(i)}},[e]),n.current||r}},,,,,,function(e,t,n){"use strict";var o=n(0),r=n(2),c=n(4),i=n(221),l=n(3),a=n(105);function s({onClick:e}){return Object(o.createElement)("div",{tabIndex:0,role:"button",onClick:e,onKeyPress:e},Object(o.createElement)(l.Disabled,null,Object(o.createElement)(a.c,null)))}var u=n(9);let d;var b=function({viewportWidth:e,__experimentalPadding:t}){const[n,{width:r}]=Object(u.useResizeObserver)(),[c,{height:i}]=Object(u.useResizeObserver)();d=d||Object(u.pure)(a.c);const s=(r-2*t)/e;return Object(o.createElement)("div",{className:"block-editor-block-preview__container editor-styles-wrapper","aria-hidden":!0,style:{height:i*s+2*t}},n,Object(o.createElement)(l.Disabled,{style:{transform:`scale(${s})`,width:e,left:t,right:t,top:t},className:"block-editor-block-preview__content"},c,Object(o.createElement)(d,null)))},m=n(13);t.a=Object(o.memo)((function({blocks:e,__experimentalPadding:t=0,viewportWidth:n=1200,__experimentalLive:l=!1,__experimentalOnClick:a}){const u=Object(c.useSelect)(e=>e(m.a).getSettings(),[]),d=Object(o.useMemo)(()=>{const e={...u};return e.__experimentalBlockPatterns=[],e},[u]),p=Object(o.useMemo)(()=>Object(r.castArray)(e),[e]);return e&&0!==e.length?Object(o.createElement)(i.a,{value:p,settings:d},l?Object(o.createElement)(s,{onClick:a}):Object(o.createElement)(b,{viewportWidth:n,__experimentalPadding:t})):null}))},,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n(4),r=n(8),c=n(13);function i(e){return Object(o.useSelect)(t=>{if(!e)return null;const{getBlockName:n,getBlockAttributes:o}=t(c.a),{getBlockType:i,getActiveBlockVariation:l}=t(r.store),a=n(e),s=i(a);if(!s)return null;const u=o(e),d=l(a,u),b={title:s.title,icon:s.icon,description:s.description,anchor:null==u?void 0:u.anchor};return d?{title:d.title||s.title,icon:d.icon||s.icon,description:d.description||s.description}:b},[e])}},,,,function(e,t,n){"use strict";var o=n(7),r=n(0),c=n(2),i=n(10),l=n.n(i),a=n(33),s=n(1),u=n(3),d=n(4),b=n(9),m=n(8),p=n(150),f=n(241),g=n(227),h=n(161),O=n(162),j=n(106),v=n(13);function k({onSelect:e,rootClientId:t,clientId:n,isAppender:o}){const[c,i]=Object(r.useState)(""),[a,b]=Object(h.a)({onSelect:e,rootClientId:t,clientId:n,isAppender:o}),[m]=Object(j.a)(a,b),[p]=Object(O.a)(b,a),f=p.length&&!!c,k=f&&p.length>6||m.length>6,{setInserterIsOpened:_,insertionIndex:y}=Object(d.useSelect)(e=>{const{getSettings:o,getBlockIndex:r,getBlockCount:c}=e(v.a),i=r(n,t);return{setInserterIsOpened:o().__experimentalSetIsInserterOpened,insertionIndex:-1===i?c():i}},[n,t]);return Object(r.useEffect)(()=>{_&&_(!1)},[_]),Object(r.createElement)("div",{className:l()("block-editor-inserter__quick-inserter",{"has-search":k,"has-expand":_})},k&&Object(r.createElement)(u.SearchControl,{className:"block-editor-inserter__search",value:c,onChange:e=>{i(e)},label:Object(s.__)("Search for blocks and patterns"),placeholder:Object(s.__)("Search")}),Object(r.createElement)("div",{className:"block-editor-inserter__quick-inserter-results"},Object(r.createElement)(g.a,{filterValue:c,onSelect:e,rootClientId:t,clientId:n,isAppender:o,maxBlockPatterns:f?2:0,maxBlockTypes:6,isDraggable:!1})),_&&Object(r.createElement)(u.Button,{className:"block-editor-inserter__quick-inserter-expand",onClick:()=>{_({rootClientId:t,insertionIndex:y})},"aria-label":Object(s.__)("Browse all. This will open the main inserter panel in the editor toolbar.")},Object(s.__)("Browse all")))}const _=({onToggle:e,disabled:t,isOpen:n,blockTitle:c,hasSingleBlockType:i,toggleProps:l={}})=>{let a;a=i?Object(s.sprintf)(// translators: %s: the name of the block when there is only one
4
+ Object(s._x)("Add %s","directly add the only allowed block"),c):Object(s._x)("Add block","Generic label for block inserter button");const{onClick:d,...b}=l;return Object(r.createElement)(u.Button,Object(o.a)({icon:p.a,label:a,tooltipPosition:"bottom",onClick:function(t){e&&e(t),d&&d(t)},className:"block-editor-inserter__toggle","aria-haspopup":!i&&"true","aria-expanded":!i&&n,disabled:t},b))};class y extends r.Component{constructor(){super(...arguments),this.onToggle=this.onToggle.bind(this),this.renderToggle=this.renderToggle.bind(this),this.renderContent=this.renderContent.bind(this)}onToggle(e){const{onToggle:t}=this.props;t&&t(e)}renderToggle({onToggle:e,isOpen:t}){const{disabled:n,blockTitle:o,hasSingleBlockType:r,toggleProps:c,hasItems:i,renderToggle:l=_}=this.props;return l({onToggle:e,isOpen:t,disabled:n||!i,blockTitle:o,hasSingleBlockType:r,toggleProps:c})}renderContent({onClose:e}){const{rootClientId:t,clientId:n,isAppender:o,showInserterHelpPanel:c,__experimentalIsQuick:i}=this.props;return i?Object(r.createElement)(k,{onSelect:()=>{e()},rootClientId:t,clientId:n,isAppender:o}):Object(r.createElement)(f.a,{onSelect:()=>{e()},rootClientId:t,clientId:n,isAppender:o,showInserterHelpPanel:c})}render(){const{position:e,hasSingleBlockType:t,insertOnlyAllowedBlock:n,__experimentalIsQuick:o,onSelectOrClose:c}=this.props;return t?this.renderToggle({onToggle:n}):Object(r.createElement)(u.Dropdown,{className:"block-editor-inserter",contentClassName:l()("block-editor-inserter__popover",{"is-quick":o}),position:e,onToggle:this.onToggle,expandOnMobile:!0,headerTitle:Object(s.__)("Add a block"),renderToggle:this.renderToggle,renderContent:this.renderContent,onClose:c})}}t.a=Object(b.compose)([Object(d.withSelect)((e,{clientId:t,rootClientId:n})=>{const{getBlockRootClientId:o,hasInserterItems:r,__experimentalGetAllowedBlocks:i}=e(v.a),{getBlockVariations:l}=e(m.store),a=i(n=n||o(t)||void 0),s=1===Object(c.size)(a)&&0===Object(c.size)(l(a[0].name,"inserter"));let u=!1;return s&&(u=a[0]),{hasItems:r(n),hasSingleBlockType:s,blockTitle:u?u.title:"",allowedBlockType:u,rootClientId:n}}),Object(d.withDispatch)((e,t,{select:n})=>({insertOnlyAllowedBlock(){const{rootClientId:o,clientId:r,isAppender:c,hasSingleBlockType:i,allowedBlockType:l,onSelectOrClose:u}=t;if(!i)return;const{insertBlock:d}=e(v.a);d(Object(m.createBlock)(l.name),function(){const{getBlockIndex:e,getBlockSelectionEnd:t,getBlockOrder:i,getBlockRootClientId:l}=n(v.a);if(r)return e(r,o);const a=t();return!c&&a&&l(a)===o?e(a,o)+1:i(o).length}(),o),u&&u();const b=Object(s.sprintf)(// translators: %s: the name of the block that has been added
5
+ Object(s.__)("%s block added"),l.title);Object(a.speak)(b)}})),Object(b.ifCondition)(({hasItems:e,isAppender:t,rootClientId:n,clientId:o})=>e||!t&&!n&&!o)])(y)},,,function(e,t){var n,o,r=e.exports={};function c(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function l(e){if(n===setTimeout)return setTimeout(e,0);if((n===c||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:c}catch(e){n=c}try{o="function"==typeof clearTimeout?clearTimeout:i}catch(e){o=i}}();var a,s=[],u=!1,d=-1;function b(){u&&a&&(u=!1,a.length?s=a.concat(s):d=-1,s.length&&m())}function m(){if(!u){var e=l(b);u=!0;for(var t=s.length;t;){for(a=s,s=[];++d<t;)a&&a[d].run();d=-1,t=s.length}a=null,u=!1,function(e){if(o===clearTimeout)return clearTimeout(e);if((o===i||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(e);try{o(e)}catch(t){try{return o.call(null,e)}catch(t){return o.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function f(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];s.push(new p(e,t)),1!==s.length||u||l(m)},p.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=f,r.addListener=f,r.once=f,r.off=f,r.removeListener=f,r.removeAllListeners=f,r.emit=f,r.prependListener=f,r.prependOnceListener=f,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var o=n(2),r=n(4),c=n(8),i=n(86),l=n(13);function a({clientId:e}){const{attributes:t,name:n,reusableBlockTitle:a}=Object(r.useSelect)(t=>{if(!e)return{};const{getBlockName:n,getBlockAttributes:o,__experimentalGetReusableBlockTitle:r}=t(l.a),i=n(e);if(!i)return{};const a=Object(c.isReusableBlock)(Object(c.getBlockType)(i));return{attributes:o(e),name:i,reusableBlockTitle:a&&r(o(e).ref)}},[e]),s=Object(i.a)(e);if(!n||!s)return null;const u=Object(c.getBlockType)(n),d=a||Object(c.__experimentalGetBlockLabel)(u,t);return d!==u.title?Object(o.truncate)(d,{length:35}):s.title}},,,,function(e,t,n){"use strict";n.d(t,"b",(function(){return B})),n.d(t,"c",(function(){return x})),n.d(t,"a",(function(){return N}));var o=n(0),r=n(10),c=n.n(r),i=n(4),l=n(9),a=n(168),s=n(2),u=n(8),d=n(154),b=n(144),m=n(13),p=Object(i.withSelect)((e,{rootClientId:t})=>{const{getBlockOrder:n,canInsertBlockType:o,getTemplateLock:r,getSelectedBlockClientId:c}=e(m.a);return{isLocked:!!r(t),blockClientIds:n(t),canInsertDefaultBlock:o(Object(u.getDefaultBlockName)(),t),selectedBlockClientId:c()}})((function({blockClientIds:e,rootClientId:t,canInsertDefaultBlock:n,isLocked:r,renderAppender:i,className:l,selectedBlockClientId:a,tagName:u="div"}){if(r||!1===i)return null;let m;if(i)m=Object(o.createElement)(i,null);else{const r=!t,c=a===t,i=a&&!e.includes(a);if(!r&&!c&&(!a||i))return null;m=n?Object(o.createElement)(d.a,{rootClientId:t,lastBlockClientId:Object(s.last)(e)}):Object(o.createElement)(b.b,{rootClientId:t,className:"block-list-appender__toggle"})}return Object(o.createElement)(u,{tabIndex:-1,className:c()("block-list-appender",l)},m)})),f=n(226),g=n(148);function h(){const e=Object(o.useContext)(g.a),t=Object(i.useSelect)(e=>e(m.a).getSettings().hasReducedUI,[]),{getBlockListSettings:n,getBlockRootClientId:r,getBlockIndex:c,isBlockInsertionPointVisible:a,isMultiSelecting:s,getSelectedBlockClientIds:u,getTemplateLock:d}=Object(i.useSelect)(m.a),{showInsertionPoint:b,hideInsertionPoint:p}=Object(i.useDispatch)(m.a);return Object(l.useRefEffect)(o=>{if(!t)return o.addEventListener("mousemove",r),()=>{o.removeEventListener("mousemove",r)};function r(t){var o;if(e.current)return;if(s())return;if(!t.target.classList.contains("block-editor-block-list__layout"))return void(a()&&p());let r;if(t.target.classList.contains("is-root-container")||(r=(t.target.getAttribute("data-block")?t.target:t.target.closest("[data-block]")).getAttribute("data-block")),d(r))return;const i=(null===(o=n(r))||void 0===o?void 0:o.orientation)||"vertical",l=t.target.getBoundingClientRect(),m=t.clientY-l.top,f=t.clientX-l.left;let g=Array.from(t.target.children).find(e=>e.classList.contains("wp-block")&&"vertical"===i&&e.offsetTop>m||e.classList.contains("wp-block")&&"horizontal"===i&&e.offsetLeft>f);if(!g)return;if(!g.id&&(g=g.firstElementChild,!g))return;const h=g.id.slice("block-".length);if(!h)return;if(u().includes(h))return;const O=g.getBoundingClientRect();if("horizontal"===i&&(t.clientY>O.bottom||t.clientY<O.top)||"vertical"===i&&(t.clientX>O.right||t.clientX<O.left))return void(a()&&p());const j=c(h,r);0!==j?b(r,j,{__unstableWithInserter:!0}):a()&&p()}},[e,n,r,c,a,s,b,p,u])}const O="undefined"==typeof window?e=>{setTimeout(()=>e(Date.now()),0)}:window.requestIdleCallback||window.requestAnimationFrame,j="undefined"==typeof window?clearTimeout:window.cancelIdleCallback||window.cancelAnimationFrame;var v=n(116),k=n(3),_=n(26),y=n.n(_),E=n(243);function C({children:e}){const t=Object(o.useContext)(g.a),n=Object(o.useContext)(k.Disabled.Context);return t||n?e:(y()('wp.components.Popover.Slot name="block-toolbar"',{alternative:"wp.blockEditor.BlockTools"}),Object(o.createElement)(g.b,{__unstablePopoverSlot:"block-toolbar"},Object(o.createElement)(E.a,{__unstablePopoverSlot:"block-toolbar"}),e))}var S=n(143),w=n(159);const B=Object(o.createContext)();function I({className:e,children:t}){const n=Object(l.useViewportMatch)("medium"),{isOutlineMode:r,isFocusMode:a,isNavigationMode:s}=Object(i.useSelect)(e=>{const{getSettings:t,isNavigationMode:n}=e(m.a),{outlineMode:o,focusMode:r}=t();return{isOutlineMode:o,isFocusMode:r,isNavigationMode:n()}},[]);return Object(o.createElement)(w.a,null,Object(o.createElement)("div",{ref:Object(l.useMergeRefs)([Object(S.b)(),Object(f.a)(),h()]),className:c()("block-editor-block-list__layout is-root-container",e,{"is-outline-mode":r,"is-focus-mode":a&&n,"is-navigate-mode":s})},t))}function x({className:e,...t}){return function(){const e=Object(i.useSelect)(e=>e(m.a).getSettings().__experimentalBlockPatterns,[]);Object(o.useEffect)(()=>{if(null==e||!e.length)return;let t,n=-1;const o=()=>{n++,n>=e.length||(Object(i.select)(m.a).__experimentalGetParsedPattern(e[n].name),t=O(o))};return t=O(o),()=>j(t)},[e])}(),Object(o.createElement)(C,null,Object(o.createElement)(I,{className:e},Object(o.createElement)(N,t)))}function T({placeholder:e,rootClientId:t,renderAppender:n,__experimentalAppenderTagName:r,__experimentalLayout:c=v.c}){const[l,s]=Object(o.useState)(new Set),u=Object(o.useMemo)(()=>{const{IntersectionObserver:e}=window;if(e)return new e(e=>{s(t=>{const n=new Set(t);for(const t of e){const e=t.target.getAttribute("data-block");n[t.isIntersecting?"add":"delete"](e)}return n})})},[s]),{order:d,selectedBlocks:b}=Object(i.useSelect)(e=>{const{getBlockOrder:n,getSelectedBlockClientIds:o}=e(m.a);return{order:n(t),selectedBlocks:o()}},[t]);return Object(o.createElement)(v.a,{value:c},Object(o.createElement)(B.Provider,{value:u},d.map(e=>Object(o.createElement)(i.AsyncModeProvider,{key:e,value:!l.has(e)&&!b.includes(e)},Object(o.createElement)(a.b,{rootClientId:t,clientId:e})))),d.length<1&&e,Object(o.createElement)(p,{tagName:r,rootClientId:t,renderAppender:n}))}function N(e){return Object(o.createElement)(i.AsyncModeProvider,{value:!1},Object(o.createElement)(T,e))}},function(e,t,n){"use strict";var o=n(8),r=n(4),c=n(0),i=n(13);t.a=(e,t)=>{const{categories:n,collections:l,items:a}=Object(r.useSelect)(t=>{const{getInserterItems:n}=t(i.a),{getCategories:r,getCollections:c}=t(o.store);return{categories:r(),collections:c(),items:n(e)}},[e]);return[a,n,l,Object(c.useCallback)(({name:e,initialAttributes:n,innerBlocks:r},c)=>{const i=Object(o.createBlock)(e,n,Object(o.createBlocksFromInnerBlocksTemplate)(r));t(i,void 0,c)},[t])]}},function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));var o=n(7),r=n(0),c=n(2),i=n(3),l=n(158),a={default:Object(i.createSlotFill)("BlockControls"),block:Object(i.createSlotFill)("BlockControlsBlock"),inline:Object(i.createSlotFill)("BlockFormatControls"),other:Object(i.createSlotFill)("BlockControlsOther")};function s({group:e="default",controls:t,children:n}){if(!Object(l.a)())return null;const o=a[e].Fill;return Object(r.createElement)(i.__experimentalStyleProvider,{document:document},Object(r.createElement)(o,null,o=>{const l=Object(c.isEmpty)(o)?null:o;return Object(r.createElement)(i.__experimentalToolbarContext.Provider,{value:l},"default"===e&&Object(r.createElement)(i.ToolbarGroup,{controls:t}),n)}))}function u({group:e="default",...t}){const n=Object(r.useContext)(i.__experimentalToolbarContext),c=a[e].Slot,l=Object(i.__experimentalUseSlot)(c.__unstableName);return Boolean(l.fills&&l.fills.length)?"default"===e?Object(r.createElement)(c,Object(o.a)({},t,{bubblesVirtually:!0,fillProps:n})):Object(r.createElement)(i.ToolbarGroup,null,Object(r.createElement)(c,Object(o.a)({},t,{bubblesVirtually:!0,fillProps:n}))):null}const d=s;d.Slot=u;const b=e=>Object(r.createElement)(s,Object(o.a)({group:"inline"},e));b.Slot=e=>Object(r.createElement)(u,Object(o.a)({group:"inline"},e)),t.b=d},,function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return c}));var o=n(1);const r={insertUsage:{}},c={alignWide:!1,supportsLayout:!0,colors:[{name:Object(o.__)("Black"),slug:"black",color:"#000000"},{name:Object(o.__)("Cyan bluish gray"),slug:"cyan-bluish-gray",color:"#abb8c3"},{name:Object(o.__)("White"),slug:"white",color:"#ffffff"},{name:Object(o.__)("Pale pink"),slug:"pale-pink",color:"#f78da7"},{name:Object(o.__)("Vivid red"),slug:"vivid-red",color:"#cf2e2e"},{name:Object(o.__)("Luminous vivid orange"),slug:"luminous-vivid-orange",color:"#ff6900"},{name:Object(o.__)("Luminous vivid amber"),slug:"luminous-vivid-amber",color:"#fcb900"},{name:Object(o.__)("Light green cyan"),slug:"light-green-cyan",color:"#7bdcb5"},{name:Object(o.__)("Vivid green cyan"),slug:"vivid-green-cyan",color:"#00d084"},{name:Object(o.__)("Pale cyan blue"),slug:"pale-cyan-blue",color:"#8ed1fc"},{name:Object(o.__)("Vivid cyan blue"),slug:"vivid-cyan-blue",color:"#0693e3"},{name:Object(o.__)("Vivid purple"),slug:"vivid-purple",color:"#9b51e0"}],fontSizes:[{name:Object(o._x)("Small","font size name"),size:13,slug:"small"},{name:Object(o._x)("Normal","font size name"),size:16,slug:"normal"},{name:Object(o._x)("Medium","font size name"),size:20,slug:"medium"},{name:Object(o._x)("Large","font size name"),size:36,slug:"large"},{name:Object(o._x)("Huge","font size name"),size:42,slug:"huge"}],imageDefaultSize:"large",imageSizes:[{slug:"thumbnail",name:Object(o.__)("Thumbnail")},{slug:"medium",name:Object(o.__)("Medium")},{slug:"large",name:Object(o.__)("Large")},{slug:"full",name:Object(o.__)("Full Size")}],imageEditing:!0,maxWidth:580,allowedBlockTypes:!0,maxUploadFileSize:0,allowedMimeTypes:null,__experimentalCanUserUseUnfilteredHTML:!1,__experimentalBlockDirectory:!1,__mobileEnablePageTemplates:!1,__experimentalBlockPatterns:[],__experimentalBlockPatternCategories:[],__experimentalSpotlightEntityBlocks:[],gradients:[{name:Object(o.__)("Vivid cyan blue to vivid purple"),gradient:"linear-gradient(135deg,rgba(6,147,227,1) 0%,rgb(155,81,224) 100%)",slug:"vivid-cyan-blue-to-vivid-purple"},{name:Object(o.__)("Light green cyan to vivid green cyan"),gradient:"linear-gradient(135deg,rgb(122,220,180) 0%,rgb(0,208,130) 100%)",slug:"light-green-cyan-to-vivid-green-cyan"},{name:Object(o.__)("Luminous vivid amber to luminous vivid orange"),gradient:"linear-gradient(135deg,rgba(252,185,0,1) 0%,rgba(255,105,0,1) 100%)",slug:"luminous-vivid-amber-to-luminous-vivid-orange"},{name:Object(o.__)("Luminous vivid orange to vivid red"),gradient:"linear-gradient(135deg,rgba(255,105,0,1) 0%,rgb(207,46,46) 100%)",slug:"luminous-vivid-orange-to-vivid-red"},{name:Object(o.__)("Very light gray to cyan bluish gray"),gradient:"linear-gradient(135deg,rgb(238,238,238) 0%,rgb(169,184,195) 100%)",slug:"very-light-gray-to-cyan-bluish-gray"},{name:Object(o.__)("Cool to warm spectrum"),gradient:"linear-gradient(135deg,rgb(74,234,220) 0%,rgb(151,120,209) 20%,rgb(207,42,186) 40%,rgb(238,44,130) 60%,rgb(251,105,98) 80%,rgb(254,248,76) 100%)",slug:"cool-to-warm-spectrum"},{name:Object(o.__)("Blush light purple"),gradient:"linear-gradient(135deg,rgb(255,206,236) 0%,rgb(152,150,240) 100%)",slug:"blush-light-purple"},{name:Object(o.__)("Blush bordeaux"),gradient:"linear-gradient(135deg,rgb(254,205,165) 0%,rgb(254,45,45) 50%,rgb(107,0,62) 100%)",slug:"blush-bordeaux"},{name:Object(o.__)("Luminous dusk"),gradient:"linear-gradient(135deg,rgb(255,203,112) 0%,rgb(199,81,192) 50%,rgb(65,88,208) 100%)",slug:"luminous-dusk"},{name:Object(o.__)("Pale ocean"),gradient:"linear-gradient(135deg,rgb(255,245,203) 0%,rgb(182,227,212) 50%,rgb(51,167,181) 100%)",slug:"pale-ocean"},{name:Object(o.__)("Electric grass"),gradient:"linear-gradient(135deg,rgb(202,248,128) 0%,rgb(113,206,126) 100%)",slug:"electric-grass"},{name:Object(o.__)("Midnight"),gradient:"linear-gradient(135deg,rgb(2,3,129) 0%,rgb(40,116,252) 100%)",slug:"midnight"}]}},,function(e,t,n){"use strict";var o=n(0),r=n(3);t.a=function({title:e,icon:t,children:n}){return Object(o.createElement)(o.Fragment,null,Object(o.createElement)("div",{className:"block-editor-inserter__panel-header"},Object(o.createElement)("h2",{className:"block-editor-inserter__panel-title"},e),Object(o.createElement)(r.Icon,{icon:t})),Object(o.createElement)("div",{className:"block-editor-inserter__panel-content"},n))}},,function(e,t,n){"use strict";var o=n(0);t.a=function({icon:e,size:t=24,...n}){return Object(o.cloneElement)(e,{width:t,height:t,...n})}},,,function(e,t,n){"use strict";n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return a})),n.d(t,"d",(function(){return s})),n.d(t,"b",(function(){return u}));var o=n(7),r=n(0),c=n(119);const i={type:"default"},l=Object(r.createContext)(i),a=l.Provider;function s(){return Object(r.useContext)(l)}function u({layout:e={},...t}){const n=Object(c.a)(e.type);return n?Object(r.createElement)(n.save,Object(o.a)({layout:e},t)):null}},function(e,t,n){"use strict";t.__esModule=!0;var o=n(255);t.default=o.TextareaAutosize},,function(e,t,n){"use strict";n.d(t,"a",(function(){return m})),n.d(t,"b",(function(){return p}));var o=n(0),r=n(1);function c(e,t=""){return e.split(",").map(e=>`.editor-styles-wrapper ${e} ${t}`).join(",")}var i={name:"flex",label:Object(r.__)("Flex"),edit:()=>null,save:function({selector:e}){return Object(o.createElement)("style",null,c(e)+" {\n display: flex;\n column-gap: 0.5em;\n align-items: center;\n }")},getOrientation:()=>"horizontal",getAlignments:()=>[]},l=n(3),a=n(113),s=n(556),u=n(557),d=n(28);const b=[{name:"default",label:Object(r.__)("Flow"),edit:function({layout:e,onChange:t}){const{wideSize:n,contentSize:c}=e,i=Object(l.__experimentalUseCustomUnits)({availableUnits:Object(d.a)("spacing.units")||["%","px","em","rem","vw"]});return Object(o.createElement)(o.Fragment,null,Object(o.createElement)("div",{className:"block-editor-hooks__layout-controls"},Object(o.createElement)("div",{className:"block-editor-hooks__layout-controls-unit"},Object(o.createElement)(l.__experimentalUnitControl,{label:Object(r.__)("Content"),labelPosition:"top",__unstableInputWidth:"80px",value:c||n||"",onChange:n=>{n=0>parseFloat(n)?"0":n,t({...e,contentSize:n})},units:i}),Object(o.createElement)(a.a,{icon:s.a})),Object(o.createElement)("div",{className:"block-editor-hooks__layout-controls-unit"},Object(o.createElement)(l.__experimentalUnitControl,{label:Object(r.__)("Wide"),labelPosition:"top",__unstableInputWidth:"80px",value:n||c||"",onChange:n=>{n=0>parseFloat(n)?"0":n,t({...e,wideSize:n})},units:i}),Object(o.createElement)(a.a,{icon:u.a}))),Object(o.createElement)("div",{className:"block-editor-hooks__layout-controls-reset"},Object(o.createElement)(l.Button,{variant:"secondary",isSmall:!0,disabled:!c&&!n,onClick:()=>t({contentSize:void 0,wideSize:void 0,inherit:!1})},Object(r.__)("Reset"))),Object(o.createElement)("p",{className:"block-editor-hooks__layout-controls-helptext"},Object(r.__)("Customize the width for all elements that are assigned to the center or wide columns.")))},save:function({selector:e,layout:t={}}){const{contentSize:n,wideSize:r}=t;let i=n||r?`\n\t\t\t\t\t${c(e,"> *")} {\n\t\t\t\t\t\tmax-width: ${null!=n?n:r};\n\t\t\t\t\t\tmargin-left: auto !important;\n\t\t\t\t\t\tmargin-right: auto !important;\n\t\t\t\t\t}\n\t\n\t\t\t\t\t${c(e,'> [data-align="wide"]')} {\n\t\t\t\t\t\tmax-width: ${null!=r?r:n};\n\t\t\t\t\t}\n\t\n\t\t\t\t\t${c(e,'> [data-align="full"]')} {\n\t\t\t\t\t\tmax-width: none;\n\t\t\t\t\t}\n\t\t\t\t`:"";return i+=`\n\t\t\t${c(e,'> [data-align="left"]')} {\n\t\t\t\tfloat: left;\n\t\t\t\tmargin-right: 2em;\n\t\t\t}\n\t\n\t\t\t${c(e,'> [data-align="right"]')} {\n\t\t\t\tfloat: right;\n\t\t\t\tmargin-left: 2em;\n\t\t\t}\n\t\t`,Object(o.createElement)("style",null,i)},getOrientation:()=>"vertical",getAlignments:e=>void 0!==e.alignments?e.alignments:e.contentSize||e.wideSize?["wide","full","left","center","right"]:["left","center","right"]},i];function m(e="default"){return b.find(t=>t.name===e)}function p(){return b}},,function(e,t,n){"use strict";var o=n(0),r=n(8),c=n(7),i=n(10),l=n.n(i),a=n(14),s=n(55),u=n(286),d=n(228);function b(e=window){const{platform:t}=e.navigator;return-1!==t.indexOf("Mac")||["iPad","iPhone"].includes(t)}var m=Object(o.memo)((function({className:e,isFirst:t,item:n,onSelect:i,onHover:m,isDraggable:p,...f}){const g=Object(o.useRef)(!1),h=n.icon?{backgroundColor:n.icon.background,color:n.icon.foreground}:{},O=Object(o.useMemo)(()=>[Object(r.createBlock)(n.name,n.initialAttributes,Object(r.createBlocksFromInnerBlocksTemplate)(n.innerBlocks))],[n.name,n.initialAttributes,n.initialAttributes]);return Object(o.createElement)(d.a,{isEnabled:p&&!n.disabled,blocks:O,icon:n.icon},({draggable:r,onDragStart:d,onDragEnd:p})=>Object(o.createElement)("div",{className:"block-editor-block-types-list__list-item",draggable:r,onDragStart:e=>{g.current=!0,d&&(m(null),d(e))},onDragEnd:e=>{g.current=!1,p&&p(e)}},Object(o.createElement)(u.a,Object(c.a)({isFirst:t,className:l()("block-editor-block-types-list__item",e),disabled:n.isDisabled,onClick:e=>{e.preventDefault(),i(n,b()?e.metaKey:e.ctrlKey),m(null)},onKeyDown:e=>{const{keyCode:t}=e;t===a.ENTER&&(e.preventDefault(),i(n,b()?e.metaKey:e.ctrlKey),m(null))},onFocus:()=>{g.current||m(n)},onMouseEnter:()=>{g.current||m(n)},onMouseLeave:()=>m(null),onBlur:()=>m(null)},f),Object(o.createElement)("span",{className:"block-editor-block-types-list__item-icon",style:h},Object(o.createElement)(s.a,{icon:n.icon,showColors:!0})),Object(o.createElement)("span",{className:"block-editor-block-types-list__item-title"},n.title))))})),p=n(284),f=n(285);t.a=function({items:e=[],onSelect:t,onHover:n=(()=>{}),children:c,label:i,isDraggable:l=!0}){return Object(o.createElement)(p.a,{className:"block-editor-block-types-list","aria-label":i},function(e,t){const n=[];for(let t=0,o=e.length;t<o;t+=3)n.push(e.slice(t,t+3));return n}(e).map((e,c)=>Object(o.createElement)(f.a,{key:c},e.map((e,i)=>Object(o.createElement)(m,{key:e.id,item:e,className:Object(r.getBlockMenuDefaultClassName)(e.id),onSelect:t,onHover:n,isDraggable:l,isFirst:0===c&&0===i})))),c)}},,function(e,t,n){"use strict";var o=n(0),r=n(6);const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M18.3 5.6L9.9 16.9l-4.6-3.4-.9 1.2 5.8 4.3 9.3-12.6z"}));t.a=c},,,,,,,,,,function(e,t,n){"use strict";function o(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(199)),c=o(n(249)),i=n(11),l=o(i),a=o(n(250)),s=o(n(252)),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 m(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),o=1;o<t;o++)n[o-1]=arguments[o];return u.fun(e)?e.apply(void 0,n):e}function f(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 r({to:t},e);var n=Object.keys(e).reduce((function(n,o){var c;return u.und(t[o])?r({},n,((c={})[o]=e[o],c)):n}),{});return r({to:t},n)}var g,h,O=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}(),j=function(e){function t(){for(var t,n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return(t=e.call.apply(e,[this].concat(o))||this).payload=[],t.attach=function(){return t.payload.forEach((function(e){return e instanceof O&&e.addChild(s(t))}))},t.detach=function(){return t.payload.forEach((function(e){return e instanceof O&&e.removeChild(s(t))}))},t}return a(t,e),t}(O),v=function(e){function t(){for(var t,n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return(t=e.call.apply(e,[this].concat(o))||this).payload={},t.attach=function(){return Object.values(t.payload).forEach((function(e){return e instanceof O&&e.addChild(s(t))}))},t.detach=function(){return Object.values(t.payload).forEach((function(e){return e instanceof O&&e.removeChild(s(t))}))},t}a(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 o=this.payload[n];(!e||o instanceof O)&&(t[n]=o instanceof O?o[e?"getAnimatedValue":"getValue"]():o)}return t},n.getAnimatedValue=function(){return this.getValue(!0)},t}(O);function k(e,t){g={fn:e,transform:t}}function _(e){h=e}var y,E=function(e){return"undefined"!=typeof window?window.requestAnimationFrame(e):-1},C=function(e){"undefined"!=typeof window&&window.cancelAnimationFrame(e)};function S(e){y=e}var w,B=function(){return Date.now()};function I(e){w=e}var x,T,N=function(e){return e.current};function L(e){x=e}var R=Object.freeze({get applyAnimatedValues(){return g},injectApplyAnimatedValues:k,get colorNames(){return h},injectColorNames:_,get requestFrame(){return E},get cancelFrame(){return C},injectFrame:function(e,t){E=e,C=t},get interpolation(){return y},injectStringInterpolator:S,get now(){return B},injectNow:function(e){B=e},get defaultElement(){return w},injectDefaultElement:I,get animatedApi(){return N},injectAnimatedApi:function(e){N=e},get createAnimatedStyle(){return x},injectCreateAnimatedStyle:L,get manualFrameloop(){return T},injectManualFrameloop:function(e){T=e}}),P=function(e){function t(t,n){var o;return(o=e.call(this)||this).update=void 0,o.payload=t.style?r({},t,{style:x(t.style)}):t,o.update=n,o.attach(),o}return a(t,e),t}(v),A=!1,M=new Set,D=function e(){if(!A)return!1;var t=B(),n=M,o=Array.isArray(n),r=0;for(n=o?n:n[Symbol.iterator]();;){var c;if(o){if(r>=n.length)break;c=n[r++]}else{if((r=n.next()).done)break;c=r.value}for(var i=c,l=!1,a=0;a<i.configs.length;a++){for(var s=i.configs[a],u=void 0,d=void 0,b=0;b<s.animatedValues.length;b++){var m=s.animatedValues[b];if(!m.done){var p=s.fromValues[b],f=s.toValues[b],g=m.lastPosition,h=f instanceof O,j=Array.isArray(s.initialVelocity)?s.initialVelocity[b]:s.initialVelocity;if(h&&(f=f.getValue()),s.immediate)m.setValue(f),m.done=!0;else if("string"!=typeof p&&"string"!=typeof f){if(void 0!==s.duration)g=p+s.easing((t-m.startTime)/s.duration)*(f-p),u=t>=m.startTime+s.duration;else if(s.decay)g=p+j/(1-.998)*(1-Math.exp(-(1-.998)*(t-m.startTime))),(u=Math.abs(m.lastPosition-g)<.1)&&(f=g);else{d=void 0!==m.lastTime?m.lastTime:t,j=void 0!==m.lastVelocity?m.lastVelocity:s.initialVelocity,t>d+64&&(d=t);for(var v=Math.floor(t-d),k=0;k<v;++k)g+=1*(j+=(-s.tension*(g-f)+-s.friction*j)/s.mass*1/1e3)/1e3;var _=!(!s.clamp||0===s.tension)&&(p<f?g>f:g<f),y=Math.abs(j)<=s.precision,C=0===s.tension||Math.abs(f-g)<=s.precision;u=_||y&&C,m.lastVelocity=j,m.lastTime=t}h&&!s.toValues[b].done&&(u=!1),u?(m.value!==f&&(g=f),m.done=!0):l=!0,m.setValue(g),m.lastPosition=g}else m.setValue(f),m.done=!0}}i.props.onFrame&&(i.values[s.name]=s.interpolation.getValue())}i.props.onFrame&&i.props.onFrame(i.values),l||(M.delete(i),i.stop(!0))}return M.size?T?T():E(e):A=!1,A};function F(e,t,n){if("function"==typeof e)return e;if(Array.isArray(e))return F({range:e,output:t,extrapolate:n});if(y&&"string"==typeof e.output[0])return y(e);var o=e,r=o.output,c=o.range||[0,1],i=o.extrapolateLeft||o.extrapolate||"extend",l=o.extrapolateRight||o.extrapolate||"extend",a=o.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,o,r,c,i,l,a){var s=a?a(e):e;if(s<t){if("identity"===i)return s;"clamp"===i&&(s=t)}if(s>n){if("identity"===l)return s;"clamp"===l&&(s=n)}return o===r?o:t===n?e<=t?o:r:(t===-1/0?s=-s:n===1/0?s-=t:s=(s-t)/(n-t),s=c(s),o===-1/0?s=-s:r===1/0?s+=o:s=s*(r-o)+o,s)}(e,c[t],c[t+1],r[t],r[t+1],a,i,l,o.map)}}var V=function(e){function t(n,o,r){var c;return(c=e.call(this)||this).calc=void 0,c.payload=n instanceof j&&!(n instanceof t)?n.getPayload():Array.isArray(n)?n:[n],c.calc=F(o,r),c}a(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}(j),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}a(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}(O),z=function(e){function t(t){var n;return(n=e.call(this)||this).payload=t.map((function(e){return new H(e)})),n}a(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,o){return n.payload[o].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}(j),U=0,G=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=U++}var t=e.prototype;return t.update=function(e){if(!e)return this;var t=f(e),n=t.delay,o=void 0===n?0:n,i=t.to,l=c(t,["delay","to"]);if(u.arr(i)||u.fun(i))this.queue.push(r({},l,{delay:o,to:i}));else if(i){var a={};Object.entries(i).forEach((function(e){var t,n=e[0],c=e[1],i=r({to:(t={},t[n]=c,t),delay:p(o,n)},l),s=a[i.delay]&&a[i.delay].to;a[i.delay]=r({},a[i.delay],i,{to:r({},s,i.to)})})),this.queue=Object.values(a)}return this.queue=this.queue.sort((function(e,t){return e.delay-t.delay})),this.diff(l),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,o=void 0===n?{}:n,c=e.to,i=void 0===c?{}:c;u.obj(o)&&(t.merged=r({},o,t.merged)),u.obj(i)&&(t.merged=r({},t.merged,i))}));var n=this.local=++this.guid,o=this.localQueue=this.queue;this.queue=[],o.forEach((function(r,i){var l=r.delay,a=c(r,["delay"]),s=function(r){i===o.length-1&&n===t.guid&&r&&(t.idle=!0,t.props.onRest&&t.props.onRest(t.merged)),e&&e()},d=u.arr(a.to)||u.fun(a.to);l?setTimeout((function(){n===t.guid&&(d?t.runAsync(a,s):t.diff(a).start(s))}),l):d?t.runAsync(a,s):t.diff(a).start(s)}))}else u.fun(e)&&this.listeners.push(e),this.props.onStart&&this.props.onStart(),this,M.has(this)||M.add(this),A||(A=!0,E(T||D));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,M.has(this)&&M.delete(this)),this},t.runAsync=function(e,t){var n=this,o=(e.delay,c(e,["delay"])),i=this.local,l=Promise.resolve(void 0);if(u.arr(o.to))for(var a=function(e){var t=e,c=r({},o,f(o.to[t]));u.arr(c.config)&&(c.config=c.config[t]),l=l.then((function(){if(i===n.guid)return new Promise((function(e){return n.diff(c).start(e)}))}))},s=0;s<o.to.length;s++)a(s);else if(u.fun(o.to)){var d,b=0;l=l.then((function(){return o.to((function(e){var t=r({},o,f(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}))}))}l.then(t)},t.diff=function(e){var t=this;this.props=r({},this.props,e);var n=this.props,o=n.from,c=void 0===o?{}:o,i=n.to,l=void 0===i?{}:i,a=n.config,s=void 0===a?{}:a,d=n.reverse,f=n.attach,g=n.reset,O=n.immediate;if(d){var j=[l,c];c=j[0],l=j[1]}this.merged=r({},c,this.merged,l),this.hasChanged=!1;var v=f&&f(this);if(this.animations=Object.entries(this.merged).reduce((function(e,n){var o=n[0],i=n[1],l=e[o]||{},a=u.num(i),d=u.str(i)&&!i.startsWith("#")&&!/\d/.test(i)&&!h[i],f=u.arr(i),j=!a&&!f&&!d,k=u.und(c[o])?i:c[o],_=a||f||d?i:1,E=p(s,o);v&&(_=v.animations[o].parent);var C,S=l.parent,w=l.interpolation,I=m(v?_.getPayload():_),x=i;j&&(x=y({range:[0,1],output:[i,i]})(1));var T,N=w&&w.getValue(),L=!u.und(S)&&l.animatedValues.some((function(e){return!e.done})),R=!u.equ(x,N),P=!u.equ(x,l.previous),A=!u.equ(E,l.config);if(g||P&&R||A){var M;if(a||d)S=w=l.parent||new H(k);else if(f)S=w=l.parent||new z(k);else if(j){var D=l.interpolation&&l.interpolation.calc(l.parent.value);D=void 0===D||g?k:D,l.parent?(S=l.parent).setValue(0,!1):S=new H(0);var F={output:[D,i]};l.interpolation?(w=l.interpolation,l.interpolation.updateConfig(F)):w=S.interpolate(F)}return I=m(v?_.getPayload():_),C=m(S.getPayload()),g&&!j&&S.setValue(k,!1),t.hasChanged=!0,C.forEach((function(e){e.startPosition=e.value,e.lastPosition=e.value,e.lastVelocity=L?e.lastVelocity:void 0,e.lastTime=L?e.lastTime:void 0,e.startTime=B(),e.done=!1,e.animatedStyles.clear()})),p(O,o)&&S.setValue(j?_:i,!1),r({},e,((M={})[o]=r({},l,{name:o,parent:S,interpolation:w,animatedValues:C,toValues:I,previous:x,config:E,fromValues:m(S.getValue()),immediate:p(O,o),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}),M))}return R?e:(j&&(S.setValue(1,!1),w.updateConfig({output:[x,x]})),S.done=!0,t.hasChanged=!0,r({},e,((T={})[o]=r({},e[o],{previous:x}),T)))}),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),o=i.useRef(),r=u.fun(t),c=i.useMemo((function(){var n;return o.current&&(o.current.map((function(e){return e.destroy()})),o.current=void 0),[new Array(e).fill().map((function(e,o){var c=new G,i=r?p(t,o,c):t[o];return 0===o&&(n=i.ref),c.update(i),n||c.start(),c})),n]}),[e]),l=c[0],a=c[1];o.current=l,i.useImperativeHandle(a,(function(){return{start:function(){return Promise.all(o.current.map((function(e){return new Promise((function(t){return e.start(t)}))})))},stop:function(e){return o.current.forEach((function(t){return t.stop(e)}))},get controllers(){return o.current}}}));var s=i.useMemo((function(){return function(e){return o.current.map((function(t,n){t.update(r?p(e,n,t):e[n]),a||t.start()}))}}),[e]);i.useEffect((function(){n.current?r||s(t):a||o.current.forEach((function(e){return e.start()}))})),i.useEffect((function(){return n.current=!0,function(){return o.current.forEach((function(e){return e.destroy()}))}}),[]);var d=o.current.map((function(e){return e.getValues()}));return r?[d,s,function(e){return o.current.forEach((function(t){return t.pause(e)}))}]:d},K=0,$=function(e,t){return("function"==typeof t?e.map(t):m(t)).map(String)},q=function(e){var t=e.items,n=e.keys,o=void 0===n?function(e){return e}:n,i=c(e,["items","keys"]);return t=m(void 0!==t?t:null),r({items:t,keys:$(t,o)},i)};function Y(e,t){var n=function(){if(r){if(c>=o.length)return"break";i=o[c++]}else{if((c=o.next()).done)return"break";i=c.value}var n=i.key,l=function(e){return e.key!==n};(u.und(t)||t===n)&&(e.current.instances.delete(n),e.current.transitions=e.current.transitions.filter(l),e.current.deleted=e.current.deleted.filter(l))},o=e.current.deleted,r=Array.isArray(o),c=0;for(o=r?o:o[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 O||(t=g.transform(t)),n.payload=t,n}return a(t,e),t}(v),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+%")),oe=new RegExp("hsla"+J(Z,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%",Z)),re=/^#([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})$/,le=/^#([0-9a-fA-F]{8})$/;function ae(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 o=n<.5?n*(1+t):n+t-n*t,r=2*n-o,c=ae(r,o,e+1/3),i=ae(r,o,e),l=ae(r,o,e-1/3);return Math.round(255*c)<<24|Math.round(255*i)<<16|Math.round(255*l)<<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 me(e){var t=parseFloat(e);return t<0?0:t>100?1:t/100}function pe(e){var t,n,o="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=re.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+"ff",16)>>>0:(n=le.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]),me(n[2]),me(n[3])))>>>0:(n=oe.exec(t))?(se(de(n[1]),me(n[2]),me(n[3]))|be(n[4]))>>>0:null;return null===o?e:"rgba("+((4278190080&(o=o||0))>>>24)+", "+((16711680&o)>>>16)+", "+((65280&o)>>>8)+", "+(255&o)/255+")"}var fe=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,ge=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,he=new RegExp("("+Object.keys(Q).join("|")+")","g"),Oe={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},je=["Webkit","Ms","Moz","O"];function ve(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||Oe.hasOwnProperty(e)&&Oe[e]?(""+t).trim():t+"px"}Oe=Object.keys(Oe).reduce((function(e,t){return je.forEach((function(n){return e[function(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}(n,t)]=e[t]})),e}),Oe);var ke={};L((function(e){return new X(e)})),I("div"),S((function(e){var t=e.output.map((function(e){return e.replace(ge,pe)})).map((function(e){return e.replace(he,pe)})),n=t[0].match(fe).map((function(){return[]}));t.forEach((function(e){e.match(fe).forEach((function(e,t){return n[t].push(+e)}))}));var o=t[0].match(fe).map((function(t,o){return F(r({},e,{output:n[o]}))}));return function(e){var n=0;return t[0].replace(fe,(function(){return o[n++](e)})).replace(/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,(function(e,t,n,o,r){return"rgba("+Math.round(t)+", "+Math.round(n)+", "+Math.round(o)+", "+r+")"}))}})),_(Q),k((function(e,t){if(!e.nodeType||void 0===e.setAttribute)return!1;var n=t.style,o=t.children,r=t.scrollTop,i=t.scrollLeft,l=c(t,["style","children","scrollTop","scrollLeft"]),a="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName;for(var s in void 0!==r&&(e.scrollTop=r),void 0!==i&&(e.scrollLeft=i),void 0!==o&&(e.textContent=o),n)if(n.hasOwnProperty(s)){var u=0===s.indexOf("--"),d=ve(s,n[s],u);"float"===s&&(s="cssFloat"),u?e.style.setProperty(s,d):e.style[s]=d}for(var b in l){var m=a?b:ke[b]||(ke[b]=b.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()})));void 0!==e.getAttribute(m)&&e.setAttribute(m,l[b])}}),(function(e){return e}));var _e,ye,Ee=(_e=function(e){return i.forwardRef((function(t,n){var o=d(),a=i.useRef(!0),s=i.useRef(null),b=i.useRef(null),m=i.useCallback((function(e){var t=s.current;s.current=new P(e,(function(){b.current&&!1===g.fn(b.current,s.current.getAnimatedValue())&&o()})),t&&t.detach()}),[]);i.useEffect((function(){return function(){a.current=!1,s.current&&s.current.detach()}}),[]),i.useImperativeHandle(n,(function(){return N(b,a,o)})),m(t);var p=s.current.getValue(),f=(p.scrollTop,p.scrollLeft,c(p,["scrollTop","scrollLeft"]));return l.createElement(e,r({},f,{ref:function(e){return b.current=(t=e,(o=n)&&(u.fun(o)?o(t):u.obj(o)&&(o.current=t)),t);var t,o}}))}))},void 0===(ye=!1)&&(ye=!0),function(e){return(u.arr(e)?e:Object.keys(e)).reduce((function(e,t){var n=ye?t[0].toLowerCase()+t.substring(1):t;return e[n]=_e(n),e}),_e)}),Ce=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=D,t.animated=Ce,t.a=Ce,t.interpolate=function(e,t,n){return e&&new V(e,t,n)},t.Globals=R,t.useSpring=function(e){var t=u.fun(e),n=W(1,t?e:[e]),o=n[0],r=n[1],c=n[2];return t?[o[0],r,c]:o},t.useTrail=function(e,t){var n=i.useRef(!1),o=u.fun(t),c=p(t),l=i.useRef(),a=W(e,(function(e,t){return 0===e&&(l.current=[]),l.current.push(t),r({},c,{config:p(c.config,e),attach:e>0&&function(){return l.current[e-1]}})})),s=a[0],d=a[1],b=a[2],m=i.useMemo((function(){return function(e){return d((function(t,n){e.reverse;var o=e.reverse?t+1:t-1,i=l.current[o];return r({},e,{config:p(e.config||c.config,t),attach:i&&function(){return i}})}))}}),[e,c.reverse]);return i.useEffect((function(){n.current&&!o&&m(t)})),i.useEffect((function(){n.current=!0}),[]),o?[s,m,b]:s},t.useTransition=function(e,t,n){var o=r({items:e,keys:t||function(e){return e}},n),l=q(o),a=l.lazy,s=void 0!==a&&a,u=(l.unique,l.reset),b=void 0!==u&&u,m=(l.enter,l.leave,l.update,l.onDestroyed),f=(l.keys,l.items,l.onFrame),g=l.onRest,h=l.onStart,O=l.ref,j=c(l,["lazy","unique","reset","enter","leave","update","onDestroyed","keys","items","onFrame","onRest","onStart","ref"]),v=d(),k=i.useRef(!1),_=i.useRef({mounted:!1,first:!0,deleted:[],current:{},transitions:[],prevProps:{},paused:!!o.ref,instances:!k.current&&new Map,forceUpdate:v});return i.useImperativeHandle(o.ref,(function(){return{start:function(){return Promise.all(Array.from(_.current.instances).map((function(e){var t=e[1];return new Promise((function(e){return t.start(e)}))})))},stop:function(e){return Array.from(_.current.instances).forEach((function(t){return t[1].stop(e)}))},get controllers(){return Array.from(_.current.instances).map((function(e){return e[1]}))}}})),_.current=function(e,t){for(var n=e.first,o=e.prevProps,i=c(e,["first","prevProps"]),l=q(t),a=l.items,s=l.keys,u=l.initial,d=l.from,b=l.enter,m=l.leave,f=l.update,g=l.trail,h=void 0===g?0:g,O=l.unique,j=l.config,v=l.order,k=void 0===v?["enter","leave","update"]:v,_=q(o),y=_.keys,E=_.items,C=r({},i.current),S=[].concat(i.deleted),w=Object.keys(C),B=new Set(w),I=new Set(s),x=s.filter((function(e){return!B.has(e)})),T=i.transitions.filter((function(e){return!e.destroyed&&!I.has(e.originalKey)})).map((function(e){return e.originalKey})),N=s.filter((function(e){return B.has(e)})),L=-h;k.length;)switch(k.shift()){case"enter":x.forEach((function(e,t){O&&S.find((function(t){return t.originalKey===e}))&&(S=S.filter((function(t){return t.originalKey!==e})));var o=s.indexOf(e),r=a[o],c=n&&void 0!==u?"initial":"enter";C[e]={slot:c,originalKey:e,key:O?String(e):K++,item:r,trail:L+=h,config:p(j,r,c),from:p(n&&void 0!==u?u||{}:d,r),to:p(b,r)}}));break;case"leave":T.forEach((function(e){var t=y.indexOf(e),n=E[t];S.unshift(r({},C[e],{slot:"leave",destroyed:!0,left:y[Math.max(0,t-1)],right:y[Math.min(y.length,t+1)],trail:L+=h,config:p(j,n,"leave"),to:p(m,n)})),delete C[e]}));break;case"update":N.forEach((function(e){var t=s.indexOf(e),n=a[t];C[e]=r({},C[e],{item:n,slot:"update",trail:L+=h,config:p(j,n,"update"),to:p(f,n)})}))}var R=s.map((function(e){return C[e]}));return S.forEach((function(e){var t,n=e.left,o=(e.right,c(e,["left","right"]));-1!==(t=R.findIndex((function(e){return e.originalKey===n})))&&(t+=1),t=Math.max(0,t),R=[].concat(R.slice(0,t),[o],R.slice(t))})),r({},i,{changed:x.length||T.length||N.length,first:n&&0===x.length,transitions:R,current:C,deleted:S,prevProps:t})}(_.current,o),_.current.changed&&_.current.transitions.forEach((function(e){var t=e.slot,n=e.from,o=e.to,c=e.config,i=e.trail,l=e.key,a=e.item;_.current.instances.has(l)||_.current.instances.set(l,new G);var u=_.current.instances.get(l),d=r({},j,{to:o,from:n,config:c,ref:O,onRest:function(n){_.current.mounted&&(e.destroyed&&(O||s||Y(_,l),m&&m(a)),!Array.from(_.current.instances).some((function(e){return!e[1].idle}))&&(O||s)&&_.current.deleted.length>0&&Y(_),g&&g(a,t,n))},onStart:h&&function(){return h(a,t)},onFrame:f&&function(e){return f(a,t,e)},delay:i,reset:b&&"enter"===t});u.update(d),_.current.paused||u.start()})),i.useEffect((function(){return _.current.mounted=k.current=!0,function(){_.current.mounted=k.current=!1,Array.from(_.current.instances).map((function(e){return e[1].destroy()})),_.current.instances.clear()}}),[]),_.current.transitions.map((function(e){var t=e.item,n=e.slot,o=e.key;return{item:t,key:o,state:n,props:_.current.instances.get(o).getValues()}}))},t.useChain=function(e,t,n){void 0===n&&(n=1e3);var o=i.useRef();i.useEffect((function(){u.equ(e,o.current)?e.forEach((function(e){var t=e.current;return t&&t.start()})):t?e.forEach((function(e,o){var c=e.current;if(c){var i=c.controllers;if(i.length){var l=n*t[o];i.forEach((function(e){e.queue=e.queue.map((function(e){return r({},e,{delay:e.delay+l})})),e.start()}))}}})):e.reduce((function(e,t,n){var o=t.current;return e.then((function(){return o.start()}))}),Promise.resolve()),o.current=e}))},t.useSprings=W},function(e,t,n){"use strict";n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return l}));const o=".block-editor-block-list__block",r=".block-list-appender";function c(e,t){return e.closest(o)===t.closest(o)}function i(e,t){return t.closest([o,r].join(","))===e}function l(e){for(;e&&e.nodeType!==e.ELEMENT_NODE;)e=e.parentNode;if(!e)return;const t=e.closest(o);return t?t.id.slice("block-".length):void 0}},,,,,function(e,t,n){"use strict";var o=n(0),r=n(6);const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"}));t.a=c},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var o=n(0),r=n(7),c=n(10),i=n.n(c),l=n(2),a=n(3),s=n(8),u=n(152);const d={};var b=Object(a.withFilters)("editor.BlockEdit")(e=>{const{attributes:t={},name:n}=e,c=Object(s.getBlockType)(n),a=Object(o.useContext)(u.b),b=Object(o.useMemo)(()=>c&&c.usesContext?Object(l.pick)(a,c.usesContext):d,[c,a]);if(!c)return null;const m=c.edit||c.save;if(c.apiVersion>1||Object(s.hasBlockSupport)(c,"lightBlockWrapper",!1))return Object(o.createElement)(m,Object(r.a)({},e,{context:b}));const p=Object(s.hasBlockSupport)(c,"className",!0)?Object(s.getBlockDefaultClassName)(n):null,f=i()(p,t.className);return Object(o.createElement)(m,Object(r.a)({},e,{context:b,className:f}))}),m=n(69);function p(e){const{name:t,isSelected:n,clientId:r}=e,c={name:t,isSelected:n,clientId:r};return Object(o.createElement)(m.a,{value:Object(o.useMemo)(()=>c,Object.values(c))},Object(o.createElement)(b,e))}},function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return s}));var o=n(7),r=n(0),c=n(4),i=n(9),l=n(13);function a(){const{hasSelectedBlock:e,hasMultiSelection:t}=Object(c.useSelect)(l.a),{clearSelectedBlock:n}=Object(c.useDispatch)(l.a);return Object(i.useRefEffect)(o=>{function r(r){(e()||t())&&r.target===o&&n()}return o.addEventListener("mousedown",r),()=>{o.removeEventListener("mousedown",r)}},[e,t,n])}function s(e){return Object(r.createElement)("div",Object(o.a)({ref:a()},e))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var o=n(0),r=n(10),c=n.n(r),i=n(3),l=n(1),a=n(113),s=n(150),u=n(26),d=n.n(u),b=n(90);function m({rootClientId:e,className:t,onFocus:n,tabIndex:r},u){return Object(o.createElement)(b.a,{position:"bottom center",rootClientId:e,__experimentalIsQuick:!0,renderToggle:({onToggle:e,disabled:d,isOpen:b,blockTitle:m,hasSingleBlockType:p})=>{let f;f=p?Object(l.sprintf)(// translators: %s: the name of the block when there is only one
6
+ Object(l._x)("Add %s","directly add the only allowed block"),m):Object(l._x)("Add block","Generic label for block inserter button");const g=!p;let h=Object(o.createElement)(i.Button,{ref:u,onFocus:n,tabIndex:r,className:c()(t,"block-editor-button-block-appender"),onClick:e,"aria-haspopup":g?"true":void 0,"aria-expanded":g?b:void 0,disabled:d,label:f},!p&&Object(o.createElement)(i.VisuallyHidden,{as:"span"},f),Object(o.createElement)(a.a,{icon:s.a}));return(g||p)&&(h=Object(o.createElement)(i.Tooltip,{text:f},h)),h},isAppender:!0})}const p=Object(o.forwardRef)((e,t)=>(d()("wp.blockEditor.ButtonBlockerAppender",{alternative:"wp.blockEditor.ButtonBlockAppender"}),m(e,t)));t.b=Object(o.forwardRef)(m)},function(e,t,n){"use strict";e.exports=n(253)},function(e,t){e.exports=window.wp.wordcount},,function(e,t,n){"use strict";n.d(t,"a",(function(){return m})),n.d(t,"b",(function(){return f}));var o=n(0),r=n(10),c=n.n(r),i=n(4),l=n(3),a=n(1),s=n(90),u=n(13),d=n(73),b=n(160);const m=Object(o.createContext)();function p({__unstablePopoverSlot:e,__unstableContentRef:t}){const{selectBlock:n}=Object(i.useDispatch)(u.a),r=Object(o.useContext)(m),p=Object(o.useRef)(),{orientation:f,previousClientId:g,nextClientId:h,rootClientId:O,isInserterShown:j}=Object(i.useSelect)(e=>{var t;const{getBlockOrder:n,getBlockListSettings:o,getBlockInsertionPoint:r,isBlockBeingDragged:c,getPreviousBlockClientId:i,getNextBlockClientId:l}=e(u.a),a=r(),s=n(a.rootClientId);if(!s.length)return{};let d=s[a.index-1],b=s[a.index];for(;c(d);)d=i(d);for(;c(b);)b=l(b);return{previousClientId:d,nextClientId:b,orientation:(null===(t=o(a.rootClientId))||void 0===t?void 0:t.orientation)||"vertical",rootClientId:a.rootClientId,isInserterShown:null==a?void 0:a.__unstableWithInserter}},[]),v=Object(d.a)(g),k=Object(d.a)(h),_=Object(o.useMemo)(()=>{if(!v&&!k)return{};const e=v?v.getBoundingClientRect():null,t=k?k.getBoundingClientRect():null;if("vertical"===f)return{width:v?v.offsetWidth:k.offsetWidth,height:t&&e?t.top-e.bottom:0};let n=0;return e&&t&&(n=Object(a.isRTL)()?e.left-t.right:t.left-e.right),{width:n,height:v?v.offsetHeight:k.offsetHeight}},[v,k]),y=Object(o.useCallback)(()=>{if(!v&&!k)return{};const{ownerDocument:e}=v||k,t=v?v.getBoundingClientRect():null,n=k?k.getBoundingClientRect():null;return"vertical"===f?Object(a.isRTL)()?{top:t?t.bottom:n.top,left:t?t.right:n.right,right:t?t.left:n.left,bottom:n?n.top:t.bottom,ownerDocument:e}:{top:t?t.bottom:n.top,left:t?t.left:n.left,right:t?t.right:n.right,bottom:n?n.top:t.bottom,ownerDocument:e}:Object(a.isRTL)()?{top:t?t.top:n.top,left:t?t.left:n.right,right:n?n.right:t.left,bottom:t?t.bottom:n.bottom,ownerDocument:e}:{top:t?t.top:n.top,left:t?t.right:n.left,right:n?n.left:t.right,bottom:t?t.bottom:n.bottom,ownerDocument:e}},[v,k]),E=Object(b.a)(t),C=c()("block-editor-block-list__insertion-point","is-"+f),S=v&&k&&j;return Object(o.createElement)(l.Popover,{ref:E,noArrow:!0,animate:!1,getAnchorRect:y,focusOnMount:!1,className:"block-editor-block-list__insertion-point-popover",__unstableSlotName:e||null},Object(o.createElement)("div",{ref:p,tabIndex:-1,onClick:function(e){e.target===p.current&&h&&n(h,-1)},onFocus:function(e){e.target!==p.current&&(r.current=!0)},className:c()(C,{"is-with-inserter":S}),style:_},Object(o.createElement)("div",{className:"block-editor-block-list__insertion-point-indicator"}),S&&Object(o.createElement)("div",{className:c()("block-editor-block-list__insertion-point-inserter")},Object(o.createElement)(s.a,{position:"bottom center",clientId:h,rootClientId:O,__experimentalIsQuick:!0,onToggle:e=>{r.current=e},onSelectOrClose:()=>{r.current=!1}}))))}function f({children:e,__unstablePopoverSlot:t,__unstableContentRef:n}){const r=Object(i.useSelect)(e=>e(u.a).isBlockInsertionPointVisible(),[]);return Object(o.createElement)(m.Provider,{value:Object(o.useRef)(!1)},r&&Object(o.createElement)(p,{__unstablePopoverSlot:t,__unstableContentRef:n}),e)}},function(e,t){e.exports=window.wp.shortcode},function(e,t,n){"use strict";var o=n(0),r=n(6);const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z"}));t.a=c},function(e,t,n){"use strict";var o=n(0),r=n(6);const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M19 8h-1V6h-5v2h-2V6H6v2H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-8c0-1.1-.9-2-2-2zm.5 10c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-8c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v8z"}));t.a=c},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var o=n(0);const r=Object(o.createContext)({});function c({value:e,children:t}){const n=Object(o.useContext)(r),c=Object(o.useMemo)(()=>({...n,...e}),[n,e]);return Object(o.createElement)(r.Provider,{value:c,children:t})}t.b=r},function(e,t,n){"use strict";var o=n(0),r=n(3),c=n(163);t.a=function({children:e}){const t=Object(r.__unstableUseCompositeState)({shift:!0,wrap:"horizontal"});return Object(o.createElement)(c.a.Provider,{value:t},e)}},function(e,t,n){"use strict";var o=n(0),r=n(10),c=n.n(r),i=n(1),l=n(9),a=n(8),s=n(40),u=n(4),d=n(90),b=n(13);t.a=Object(l.compose)(Object(u.withSelect)((e,t)=>{const{getBlockCount:n,getBlockName:o,isBlockValid:r,getSettings:c,getTemplateLock:i}=e(b.a),l=!n(t.rootClientId),s=o(t.lastBlockClientId)===Object(a.getDefaultBlockName)(),u=r(t.lastBlockClientId),{bodyPlaceholder:d}=c();return{isVisible:l||!s||!u,showPrompt:l,isLocked:!!i(t.rootClientId),placeholder:d}}),Object(u.withDispatch)((e,t)=>{const{insertDefaultBlock:n,startTyping:o}=e(b.a);return{onAppend(){const{rootClientId:e}=t;n(void 0,e),o()}}}))((function({isLocked:e,isVisible:t,onAppend:n,showPrompt:r,placeholder:l,rootClientId:a}){if(e||!t)return null;const u=Object(s.decodeEntities)(l)||Object(i.__)("Type / to choose a block");return Object(o.createElement)("div",{"data-root-client-id":a||"",className:c()("block-editor-default-block-appender",{"has-visible-prompt":r})},Object(o.createElement)("p",{tabIndex:"0",contentEditable:!0,suppressContentEditableWarning:!0,role:"button","aria-label":Object(i.__)("Add block"),className:"wp-block block-editor-default-block-appender__content",onFocus:n},r?u:"\ufeff"),Object(o.createElement)(d.a,{rootClientId:a,position:"bottom right",isAppender:!0,__experimentalIsQuick:!0}))}))},,,function(e,t,n){"use strict";var o=n(0),r=n(10),c=n.n(r),i=n(3),l=n(1),a=n(6),s=Object(o.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(a.Path,{d:"M11 13h2v-2h-2v2zm-6 0h2v-2H5v2zm12-2v2h2v-2h-2z"}));t.a=function({className:e,actions:t,children:n,secondaryActions:r}){return Object(o.createElement)("div",{className:c()(e,"block-editor-warning")},Object(o.createElement)("div",{className:"block-editor-warning__contents"},Object(o.createElement)("p",{className:"block-editor-warning__message"},n),(o.Children.count(t)>0||r)&&Object(o.createElement)("div",{className:"block-editor-warning__actions"},o.Children.count(t)>0&&o.Children.map(t,(e,t)=>Object(o.createElement)("span",{key:t,className:"block-editor-warning__action"},e)),r&&Object(o.createElement)(i.DropdownMenu,{className:"block-editor-warning__secondary",icon:s,label:Object(l.__)("More options"),popoverProps:{position:"bottom left",className:"block-editor-warning__dropdown"},noIcons:!0},()=>Object(o.createElement)(i.MenuGroup,null,r.map((e,t)=>Object(o.createElement)(i.MenuItem,{onClick:e.onClick,key:t},e.title)))))))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n(4),r=n(69),c=n(13);function i(){const{isSelected:e,clientId:t,name:n}=Object(r.b)(),i=Object(o.useSelect)(o=>{if(e)return;const{getBlockName:r,isFirstMultiSelectedBlock:i,getMultiSelectedBlockClientIds:l}=o(c.a);return!!i(t)&&l().every(e=>r(e)===n)},[t,e,n]);return e||i}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var o=n(0);const r=Object(o.createContext)();function c({children:e}){const[t,n]=Object(o.useState)();return Object(o.createElement)(r.Provider,{value:t},Object(o.createElement)("div",{ref:n}),e)}c.context=r},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var o=n(9);function r(e){return Object(o.useRefEffect)(t=>{if(!e)return;function n(t){const{deltaX:n,deltaY:o}=t;e.current.scrollBy(n,o)}const o={passive:!0};return t.addEventListener("wheel",n,o),()=>{t.removeEventListener("wheel",n,o)}},[e])}},function(e,t,n){"use strict";var o=n(2),r=n(4),c=n(8),i=n(1),l=n(33),a=n(0),s=n(13);t.a=function({rootClientId:e="",insertionIndex:t,clientId:n,isAppender:u,onSelect:d,shouldFocusBlock:b=!0}){const{getSelectedBlock:m}=Object(r.useSelect)(s.a),{destinationRootClientId:p,destinationIndex:f}=Object(r.useSelect)(o=>{const{getSelectedBlockClientId:r,getBlockRootClientId:c,getBlockIndex:i,getBlockOrder:l}=o(s.a),a=r();let d,b=e;return void 0!==t?d=t:n?d=i(n,b):!u&&a?(b=c(a),d=i(a,b)+1):d=l(b).length,{destinationRootClientId:b,destinationIndex:d}},[e,t,n,u]),{replaceBlocks:g,insertBlocks:h,showInsertionPoint:O,hideInsertionPoint:j}=Object(r.useDispatch)(s.a),v=Object(a.useCallback)((e,t,n=!1)=>{const r=m();!u&&r&&Object(c.isUnmodifiedDefaultBlock)(r)?g(r.clientId,e,null,b||n?0:null,t):h(e,f,p,!0,b||n?0:null,t);const a=Object(i.sprintf)(// translators: %d: the name of the block that has been added
7
+ Object(i._n)("%d block added.","%d blocks added.",Object(o.castArray)(e).length),Object(o.castArray)(e).length);Object(l.speak)(a),d&&d()},[u,m,g,h,p,f,d,b]),k=Object(a.useCallback)(e=>{e?O(p,f):j()},[O,j,p,f]);return[p,v,k]}},function(e,t,n){"use strict";var o=n(2),r=n(0),c=n(8),i=n(4),l=n(1),a=n(31),s=n(13);t.a=(e,t)=>{const{patternCategories:n,patterns:u}=Object(i.useSelect)(e=>{const{__experimentalGetAllowedPatterns:n,getSettings:o}=e(s.a);return{patterns:n(t),patternCategories:o().__experimentalBlockPatternCategories}},[t]),{createSuccessNotice:d}=Object(i.useDispatch)(a.store);return[u,n,Object(r.useCallback)((t,n)=>{e(Object(o.map)(n,e=>Object(c.cloneBlock)(e)),t.name),d(Object(l.sprintf)(
8
  /* translators: %s: block pattern title. */
9
+ Object(l.__)('Block pattern "%s" inserted.'),t.title),{type:"snackbar"})},[])]}},function(e,t,n){"use strict";var o=n(0);const r=Object(o.createContext)();t.a=r},,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return I}));var o=n(0),r=n(10),c=n.n(r),i=n(2),l=n(8),a=n(3),s=n(4),u=n(9),d=n(24),b=n(142),m=n(1),p=n(157),f=n(347);function g({title:e,rawContent:t,renderedContent:n,action:r,actionText:c,className:i}){return Object(o.createElement)("div",{className:i},Object(o.createElement)("div",{className:"block-editor-block-compare__content"},Object(o.createElement)("h2",{className:"block-editor-block-compare__heading"},e),Object(o.createElement)("div",{className:"block-editor-block-compare__html"},t),Object(o.createElement)("div",{className:"block-editor-block-compare__preview edit-post-visual-editor"},Object(o.createElement)(o.RawHTML,null,Object(d.safeHTML)(n)))),Object(o.createElement)("div",{className:"block-editor-block-compare__action"},Object(o.createElement)(a.Button,{variant:"secondary",tabIndex:"0",onClick:r},c)))}var h=function({block:e,onKeep:t,onConvert:n,convertor:r,convertButtonText:a}){const s=(u=r(e),Object(i.castArray)(u).map(e=>Object(l.getSaveContent)(e.name,e.attributes,e.innerBlocks)).join(""));var u;const d=(b=e.originalContent,p=s,Object(f.diffChars)(b,p).map((e,t)=>{const n=c()({"block-editor-block-compare__added":e.added,"block-editor-block-compare__removed":e.removed});return Object(o.createElement)("span",{key:t,className:n},e.value)}));var b,p;return Object(o.createElement)("div",{className:"block-editor-block-compare__wrapper"},Object(o.createElement)(g,{title:Object(m.__)("Current"),className:"block-editor-block-compare__current",action:t,actionText:Object(m.__)("Convert to HTML"),rawContent:e.originalContent,renderedContent:e.originalContent}),Object(o.createElement)(g,{title:Object(m.__)("After Conversion"),className:"block-editor-block-compare__converted",action:n,actionText:a,rawContent:d,renderedContent:s}))},O=n(13);const j=e=>Object(l.rawHandler)({HTML:e.originalContent});var v=Object(u.compose)([Object(s.withSelect)((e,{clientId:t})=>({block:e(O.a).getBlock(t)})),Object(s.withDispatch)((e,{block:t})=>{const{replaceBlock:n}=e(O.a);return{convertToClassic(){n(t.clientId,(e=>Object(l.createBlock)("core/freeform",{content:e.originalContent}))(t))},convertToHTML(){n(t.clientId,(e=>Object(l.createBlock)("core/html",{content:e.originalContent}))(t))},convertToBlocks(){n(t.clientId,j(t))},attemptBlockRecovery(){n(t.clientId,(({name:e,attributes:t,innerBlocks:n})=>Object(l.createBlock)(e,t,n))(t))}}})])((function({convertToHTML:e,convertToBlocks:t,convertToClassic:n,attemptBlockRecovery:r,block:c}){const i=!!Object(l.getBlockType)("core/html"),[s,u]=Object(o.useState)(!1),d=Object(o.useCallback)(()=>u(!0),[]),b=Object(o.useCallback)(()=>u(!1),[]),f=Object(o.useMemo)(()=>[{
10
  // translators: Button to fix block content
11
  title:Object(m._x)("Resolve","imperative verb"),onClick:d},i&&{title:Object(m.__)("Convert to HTML"),onClick:e},{title:Object(m.__)("Convert to Classic Block"),onClick:n}].filter(Boolean),[d,e,n]);return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(p.a,{actions:[Object(o.createElement)(a.Button,{key:"recover",onClick:r,variant:"primary"},Object(m.__)("Attempt Block Recovery"))],secondaryActions:f},Object(m.__)("This block contains unexpected or invalid content.")),s&&Object(o.createElement)(a.Modal,{title:// translators: Dialog title to fix block content
12
+ Object(m.__)("Resolve Block"),onRequestClose:b,className:"block-editor-block-compare"},Object(o.createElement)(h,{block:c,onKeep:e,onConvert:t,convertor:j,convertButtonText:Object(m.__)("Convert to Blocks")})))}));const k=Object(o.createElement)(p.a,{className:"block-editor-block-list__block-crash-warning"},Object(m.__)("This block has encountered an error and cannot be previewed."));var _=()=>k;class y extends o.Component{constructor(){super(...arguments),this.state={hasError:!1}}componentDidCatch(){this.setState({hasError:!0})}render(){return this.state.hasError?this.props.fallback:this.props.children}}var E=y,C=n(117),S=n.n(C),w=function({clientId:e}){const[t,n]=Object(o.useState)(""),r=Object(s.useSelect)(t=>t(O.a).getBlock(e),[e]),{updateBlock:c}=Object(s.useDispatch)(O.a);return Object(o.useEffect)(()=>{n(Object(l.getBlockContent)(r))},[r]),Object(o.createElement)(S.a,{className:"block-editor-block-list__block-html-textarea",value:t,onBlur:()=>{const o=Object(l.getBlockType)(r.name),i=Object(l.getBlockAttributes)(o,t,r.attributes),a=t||Object(l.getSaveContent)(o,i),s=!t||Object(l.isValidBlockContent)(o,i,a);c(e,{attributes:i,originalContent:a,isValid:s}),t||n({content:a})},onChange:e=>n(e.target.value)})},B=n(208);const I=Object(o.createContext)();function x({children:e,isHtml:t,...n}){return Object(o.createElement)("div",Object(B.a)(n,{__unstableIsHtml:t}),e)}const T=Object(s.withSelect)((e,{clientId:t,rootClientId:n})=>{const{isBlockSelected:o,getBlockMode:r,isSelectionEnabled:c,getTemplateLock:i,__unstableGetBlockWithoutInnerBlocks:l}=e(O.a),a=l(t),s=o(t),u=i(n),{name:d,attributes:b,isValid:m}=a||{};return{mode:r(t),isSelectionEnabled:c(),isLocked:!!u,block:a,name:d,attributes:b,isValid:m,isSelected:s}}),N=Object(s.withDispatch)((e,t,{select:n})=>{const{updateBlockAttributes:o,insertBlocks:r,mergeBlocks:c,replaceBlocks:i,toggleSelection:a,__unstableMarkLastChangeAsPersistent:s}=e(O.a);return{setAttributes(e){const{getMultiSelectedBlockClientIds:r}=n(O.a),c=r(),{clientId:i}=t,l=c.length?c:[i];o(l,e)},onInsertBlocks(e,n){const{rootClientId:o}=t;r(e,n,o)},onInsertBlocksAfter(e){const{clientId:o,rootClientId:c}=t,{getBlockIndex:i}=n(O.a),l=i(o,c);r(e,l+1,c)},onMerge(e){const{clientId:o}=t,{getPreviousBlockClientId:r,getNextBlockClientId:i}=n(O.a);if(e){const e=i(o);e&&c(o,e)}else{const e=r(o);e&&c(e,o)}},onReplace(e,n,o){e.length&&!Object(l.isUnmodifiedDefaultBlock)(e[e.length-1])&&s(),i([t.clientId],e,n,o)},toggleSelection(e){a(e)}}});t.b=Object(u.compose)(u.pure,T,N,Object(u.ifCondition)(({block:e})=>!!e),Object(a.withFilters)("editor.BlockListBlock"))((function({mode:e,isLocked:t,clientId:n,isSelected:r,isSelectionEnabled:a,className:u,name:m,isValid:p,attributes:f,wrapperProps:g,setAttributes:h,onReplace:j,onInsertBlocksAfter:k,onMerge:y,toggleSelection:C}){const{removeBlock:S}=Object(s.useDispatch)(O.a),B=Object(o.useCallback)(()=>S(n),[n]);let T=Object(o.createElement)(b.a,{name:m,isSelected:r,attributes:f,setAttributes:h,insertBlocksAfter:t?void 0:k,onReplace:t?void 0:j,onRemove:t?void 0:B,mergeBlocks:t?void 0:y,clientId:n,isSelectionEnabled:a,toggleSelection:C});const N=Object(l.getBlockType)(m),L=N.apiVersion>1||Object(l.hasBlockSupport)(N,"lightBlockWrapper",!1);N.getEditWrapperProps&&(g=function(e,t){const n={...e,...t};return e&&t&&e.className&&t.className&&(n.className=c()(e.className,t.className)),e&&t&&e.style&&t.style&&(n.style={...e.style,...t.style}),n}(g,N.getEditWrapperProps(f)));const R=g&&!!g["data-align"];let P;if(R&&(T=Object(o.createElement)("div",{className:"wp-block","data-align":g["data-align"]},T)),p)P="html"===e?Object(o.createElement)(o.Fragment,null,Object(o.createElement)("div",{style:{display:"none"}},T),Object(o.createElement)(x,{isHtml:!0},Object(o.createElement)(w,{clientId:n}))):L?T:Object(o.createElement)(x,g,T);else{const e=Object(l.getSaveContent)(N,f);P=Object(o.createElement)(x,{className:"has-warning"},Object(o.createElement)(v,{clientId:n}),Object(o.createElement)(o.RawHTML,null,Object(d.safeHTML)(e)))}const A={clientId:n,className:u,wrapperProps:Object(i.omit)(g,["data-align"]),isAligned:R},M=Object(o.useMemo)(()=>A,Object.values(A));return Object(o.createElement)(I.Provider,{value:M},Object(o.createElement)(E,{fallback:Object(o.createElement)(x,{className:"has-warning"},Object(o.createElement)(_,null))},P))}))},function(e,t,n){"use strict";var o=n(0),r=n(8),c=n(3),i=n(4),l=n(225),a=n(24),s=n(13);t.a=({children:e,clientIds:t,cloneClassname:n,onDragStart:u,onDragEnd:d})=>{const{srcRootClientId:b,isDraggable:m,icon:p}=Object(i.useSelect)(e=>{var n;const{getBlockRootClientId:o,getTemplateLock:c,getBlockName:i}=e(s.a),l=o(t[0]),a=l?c(l):null,u=i(t[0]);return{srcRootClientId:l,isDraggable:"all"!==a,icon:null===(n=Object(r.getBlockType)(u))||void 0===n?void 0:n.icon}},[t]),f=Object(o.useRef)(!1),[g,h,O]=function(){const e=Object(o.useRef)(null),t=Object(o.useRef)(null),n=Object(o.useRef)(null),r=Object(o.useRef)(null);return Object(o.useEffect)(()=>()=>{r.current&&(clearInterval(r.current),r.current=null)},[]),[Object(o.useCallback)(o=>{e.current=o.clientY,n.current=Object(a.getScrollContainer)(o.target),r.current=setInterval(()=>{if(n.current&&t.current){const e=n.current.scrollTop+t.current;n.current.scroll({top:e})}},25)},[]),Object(o.useCallback)(o=>{if(!n.current)return;const r=n.current.offsetHeight,c=e.current-n.current.offsetTop,i=o.clientY-n.current.offsetTop;if(o.clientY>c){const e=Math.max(r-c-50,0),n=Math.max(i-c-50,0)/e;t.current=25*n}else if(o.clientY<c){const e=Math.max(c-50,0),n=Math.max(c-i-50,0)/e;t.current=-25*n}else t.current=0},[]),()=>{e.current=null,n.current=null,r.current&&(clearInterval(r.current),r.current=null)}]}(),{startDraggingBlocks:j,stopDraggingBlocks:v}=Object(i.useDispatch)(s.a);if(Object(o.useEffect)(()=>()=>{f.current&&v()},[]),!m)return e({isDraggable:!1});const k={type:"block",srcClientIds:t,srcRootClientId:b};return Object(o.createElement)(c.Draggable,{cloneClassname:n,__experimentalTransferDataType:"wp-blocks",transferData:k,onDragStart:e=>{j(t),f.current=!0,g(e),u&&u()},onDragOver:h,onDragEnd:()=>{v(),f.current=!1,O(),d&&d()},__experimentalDragComponent:Object(o.createElement)(l.a,{count:t.length,icon:p})},({onDraggableStart:t,onDraggableEnd:n})=>e({draggable:!0,onDragStart:t,onDragEnd:n}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return c}));var o=n(0);const r=Object(o.createContext)();function c({children:e}){const t=Object(o.useMemo)(()=>({refs:new Map,callbacks:new Map}),[]);return Object(o.createElement)(r.Provider,{value:t},e)}},,function(e,t,n){"use strict";n.d(t,"b",(function(){return k})),n.d(t,"a",(function(){return _}));var o=n(7),r=n(0),c=n(10),i=n.n(c),l=n(2),a=n(8),s=n(3),u=n(9),d=n(4),b=n(1),m=n(287),p=n(288),f=n(384),g=n(200);var h=n(13);const O=(e,t)=>"up"===e?"horizontal"===t?Object(b.isRTL)()?m.a:p.a:f.a:"down"===e?"horizontal"===t?Object(b.isRTL)()?p.a:m.a:g.a:null,j=(e,t)=>"up"===e?"horizontal"===t?Object(b.isRTL)()?Object(b.__)("Move right"):Object(b.__)("Move left"):Object(b.__)("Move up"):"down"===e?"horizontal"===t?Object(b.isRTL)()?Object(b.__)("Move left"):Object(b.__)("Move right"):Object(b.__)("Move down"):null,v=Object(r.forwardRef)(({clientIds:e,direction:t,orientation:n,...c},m)=>{const p=Object(u.useInstanceId)(v),f=Object(l.castArray)(e).length,{blockType:g,isDisabled:k,rootClientId:_,isFirst:y,isLast:E,firstIndex:C,orientation:S="vertical"}=Object(d.useSelect)(o=>{const{getBlockIndex:r,getBlockRootClientId:c,getBlockOrder:i,getBlock:s,getBlockListSettings:u}=o(h.a),d=Object(l.castArray)(e),b=Object(l.first)(d),m=c(b),p=r(b,m),f=r(Object(l.last)(d),m),g=i(m),O=s(b),j=0===p,v=f===g.length-1,{orientation:k}=u(m)||{};return{blockType:O?Object(a.getBlockType)(O.name):null,isDisabled:"up"===t?j:v,rootClientId:m,firstIndex:p,isFirst:j,isLast:v,orientation:n||k}},[e,t]),{moveBlocksDown:w,moveBlocksUp:B}=Object(d.useDispatch)(h.a),I="up"===t?B:w,x="block-editor-block-mover-button__description-"+p;return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(s.Button,Object(o.a)({ref:m,className:i()("block-editor-block-mover-button",`is-${t}-button`),icon:O(t,S),label:j(t,S),"aria-describedby":x},c,{onClick:k?null:t=>{I(e,_),c.onClick&&c.onClick(t)},"aria-disabled":k})),Object(r.createElement)("span",{id:x,className:"block-editor-block-mover-button__description"},function(e,t,n,o,r,c,i){const l=n+1,a=e=>"up"===e?"horizontal"===i?Object(b.isRTL)()?"right":"left":"up":"down"===e?"horizontal"===i?Object(b.isRTL)()?"left":"right":"down":null;if(e>1)return function(e,t,n,o,r){const c=t+1;return r<0&&n?Object(b.__)("Blocks cannot be moved up as they are already at the top"):r>0&&o?Object(b.__)("Blocks cannot be moved down as they are already at the bottom"):r<0&&!n?Object(b.sprintf)(// translators: 1: Number of selected blocks, 2: Position of selected blocks
13
  Object(b._n)("Move %1$d block from position %2$d up by one place","Move %1$d blocks from position %2$d up by one place",e),e,c):r>0&&!o?Object(b.sprintf)(// translators: 1: Number of selected blocks, 2: Position of selected blocks
14
  Object(b._n)("Move %1$d block from position %2$d down by one place","Move %1$d blocks from position %2$d down by one place",e),e,c):void 0}(e,n,o,r,c);if(o&&r)return Object(b.sprintf)(// translators: %s: Type of block (i.e. Text, Image etc)
15
  Object(b.__)("Block %s is the only block, and cannot be moved"),t);if(c>0&&!r){const e=a("down");if("down"===e)return Object(b.sprintf)(// translators: 1: Type of block (i.e. Text, Image etc), 2: Position of selected block, 3: New position
24
  Object(b.__)("Move %1$s block from position %2$d right to position %3$d"),t,l,l-1)}if(c<0&&o){const e=a("up");if("up"===e)return Object(b.sprintf)(// translators: 1: Type of block (i.e. Text, Image etc)
25
  Object(b.__)("Block %1$s is at the beginning of the content and can’t be moved up"),t);if("left"===e)return Object(b.sprintf)(// translators: 1: Type of block (i.e. Text, Image etc)
26
  Object(b.__)("Block %1$s is at the beginning of the content and can’t be moved left"),t);if("right"===e)return Object(b.sprintf)(// translators: 1: Type of block (i.e. Text, Image etc)
27
+ Object(b.__)("Block %1$s is at the beginning of the content and can’t be moved right"),t)}}(f,g&&g.title,C,y,E,"up"===t?-1:1,S)))}),k=Object(r.forwardRef)((e,t)=>Object(r.createElement)(v,Object(o.a)({direction:"up",ref:t},e))),_=Object(r.forwardRef)((e,t)=>Object(r.createElement)(v,Object(o.a)({direction:"down",ref:t},e)))},,,,,function(e,t,n){"use strict";var o=n(178);function r(){}function c(){}c.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,c,i){if(i!==o){var l=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 l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:c,resetWarningCache:r};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},,,,,,,function(e,t,n){"use strict";n.d(t,"c",(function(){return b})),n.d(t,"b",(function(){return m}));var o=n(0),r=n(8),c=n(24),i=n(4),l=n(1),a=n(31),s=n(9),u=n(35),d=n(13);function b(){const{getBlockName:e}=Object(i.useSelect)(d.a),{getBlockType:t}=Object(i.useSelect)(r.store),{createSuccessNotice:n}=Object(i.useDispatch)(a.store);return Object(o.useCallback)((o,r)=>{let c="";if(1===r.length){const n=r[0],{title:i}=t(e(n));c="copy"===o?Object(l.sprintf)(// Translators: Name of the block being copied, e.g. "Paragraph".
28
  Object(l.__)('Copied "%s" to clipboard.'),i):Object(l.sprintf)(// Translators: Name of the block being cut, e.g. "Paragraph".
29
  Object(l.__)('Moved "%s" to clipboard.'),i)}else c="copy"===o?Object(l.sprintf)(// Translators: %d: Number of blocks being copied.
30
  Object(l._n)("Copied %d block to clipboard.","Copied %d blocks to clipboard.",r.length),r.length):Object(l.sprintf)(// Translators: %d: Number of blocks being cut.
31
+ Object(l._n)("Moved %d block to clipboard.","Moved %d blocks to clipboard.",r.length),r.length);n(c,{type:"snackbar"})},[])}function m(){const{getBlocksByClientId:e,getSelectedBlockClientIds:t,hasMultiSelection:n,getSettings:o}=Object(i.useSelect)(d.a),{flashBlock:l,removeBlocks:a,replaceBlocks:m}=Object(i.useDispatch)(d.a),p=b();return Object(s.useRefEffect)(i=>{function s(s){const d=t();if(0!==d.length){if(!n()){const{target:e}=s,{ownerDocument:t}=e;if("copy"===s.type||"cut"===s.type?Object(c.documentHasUncollapsedSelection)(t):Object(c.documentHasSelection)(t))return}if(i.contains(s.target.ownerDocument.activeElement)){if(s.preventDefault(),"copy"===s.type||"cut"===s.type){1===d.length&&l(d[0]),p(s.type,d);const t=e(d),n=Object(r.serialize)(t);s.clipboardData.setData("text/plain",n),s.clipboardData.setData("text/html",n)}if("cut"===s.type)a(d);else if("paste"===s.type){const{__experimentalCanUserUseUnfilteredHTML:e}=o(),{plainText:t,html:n}=function({clipboardData:e}){let t="",n="";try{t=e.getData("text/plain"),n=e.getData("text/html")}catch(t){try{n=e.getData("Text")}catch(e){return}}const o=Object(c.getFilesFromDataTransfer)(e).filter(({type:e})=>/^image\/(?:jpe?g|png|gif)$/.test(e));return o.length&&!n&&(n=o.map(e=>`<img src="${Object(u.createBlobURL)(e)}">`).join(""),t=""),{html:n,plainText:t}}(s),i=Object(r.pasteHandler)({HTML:n,plainText:t,mode:"BLOCKS",canUserUseUnfilteredHTML:e});m(d,i,i.length-1,-1)}}}}return i.ownerDocument.addEventListener("copy",s),i.ownerDocument.addEventListener("cut",s),i.ownerDocument.addEventListener("paste",s),()=>{i.ownerDocument.removeEventListener("copy",s),i.ownerDocument.removeEventListener("cut",s),i.ownerDocument.removeEventListener("paste",s)}},[])}t.a=function({children:e}){return Object(o.createElement)("div",{ref:m()},e)}},,,,,,,,function(e,t){e.exports=window.wp.tokenList},function(e,t,n){"use strict";n.d(t,"a",(function(){return b})),n.d(t,"b",(function(){return m}));var o=n(2);const r=e=>e.name||"",c=e=>e.title,i=e=>e.description||"",l=e=>e.keywords||[],a=e=>e.category,s=()=>null;function u(e=""){return(e=(e=Object(o.deburr)(e)).replace(/^\//,"")).toLowerCase()}const d=(e="")=>Object(o.words)(u(e)),b=(e,t,n,r)=>0===d(r).length?e:m(e,r,{getCategory:e=>{var n;return null===(n=Object(o.find)(t,{slug:e.category}))||void 0===n?void 0:n.title},getCollection:e=>{var t;return null===(t=n[e.name.split("/")[0]])||void 0===t?void 0:t.title}}),m=(e=[],t="",n={})=>{if(0===d(t).length)return e;const o=e.map(e=>[e,p(e,t,n)]).filter(([,e])=>e>0);return o.sort(([,e],[,t])=>t-e),o.map(([e])=>e)};function p(e,t,n={}){const{getName:b=r,getTitle:m=c,getDescription:p=i,getKeywords:f=l,getCategory:g=a,getCollection:h=s}=n,O=b(e),j=m(e),v=p(e),k=f(e),_=g(e),y=h(e),E=u(t),C=u(j);let S=0;if(E===C)S+=30;else if(C.startsWith(E))S+=20;else{const e=[O,j,v,...k,_,y].join(" ");0===(w=Object(o.words)(E),B=e,Object(o.differenceWith)(w,d(B),(e,t)=>t.includes(e))).length&&(S+=10)}var w,B;return 0!==S&&O.startsWith("core/")&&S++,S}},function(e,t,n){"use strict";var o=n(0),r=n(1),c=n(113),i=n(151);t.a=function(){return Object(o.createElement)("div",{className:"block-editor-inserter__no-results"},Object(o.createElement)(c.a,{className:"block-editor-inserter__no-results-icon",icon:i.a}),Object(o.createElement)("p",null,Object(r.__)("No results found.")))}},,,,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 o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}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},function(e,t,n){"use strict";var o=n(0),r=n(6);const c=Object(o.createElement)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)(r.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"}));t.a=c},function(e,t,n){"use strict";var o=n(0),r=n(6);const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"}));t.a=c},,,,,,,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return w}));var o=n(10),r=n.n(o),c=n(0),i=n(1),l=n(8),a=n(9),s=n(4),u=(n(68),n(224)),d=n(168),b=n(335),m=n(341),p=n(69),f=n(343),g=n(344),h=n(345),O=n(346),j=n(337),v=n(339),k=n(340),_=n(336),y=n(73),E=n(338),C=n(342),S=n(13);function w(t={},{__unstableIsHtml:n}={}){const{clientId:o,className:w,wrapperProps:B={},isAligned:I}=Object(c.useContext)(d.a),{index:x,mode:T,name:N,blockTitle:L,isPartOfSelection:R,adjustScrolling:P,enableAnimation:A,lightBlockWrapper:M}=Object(s.useSelect)(e=>{const{getBlockRootClientId:t,getBlockIndex:n,getBlockMode:r,getBlockName:c,isTyping:i,getGlobalBlockCount:a,isBlockSelected:s,isBlockMultiSelected:u,isAncestorMultiSelected:d,isFirstMultiSelectedBlock:b}=e(S.a),m=s(o),p=u(o)||d(o),f=c(o),g=t(o),h=Object(l.getBlockType)(f);return{index:n(o,g),mode:r(o),name:f,blockTitle:h.title,isPartOfSelection:m||p,adjustScrolling:m||b(o),enableAnimation:!i()&&a()<=200,lightBlockWrapper:h.apiVersion>1||Object(l.hasBlockSupport)(h,"lightBlockWrapper",!1)}},[o]),D=Object(i.sprintf)(Object(i.__)("Block: %s"),L),F="html"!==T||n?"":"-visual",V=Object(a.useMergeRefs)([t.ref,Object(b.a)(o),Object(_.a)(o),Object(y.c)(o),Object(j.a)(o),Object(E.a)(o),Object(v.a)(o),Object(k.a)(o),Object(m.a)(),Object(C.a)(),Object(u.a)({isSelected:R,adjustScrolling:P,enableAnimation:A,triggerAnimationOnChange:x})]),H=Object(p.b)();return M||o!==H.clientId||void 0!==e&&e.env,{...B,...t,ref:V,id:`block-${o}${F}`,tabIndex:0,role:"group","aria-label":D,"data-block":o,"data-type":N,"data-title":L,className:r()(r()("block-editor-block-list__block",{"wp-block":!I}),w,t.className,B.className,Object(f.a)(o),Object(g.a)(o),Object(h.a)(o),Object(O.a)(o)),style:{...B.style,...t.style}}}w.save=l.__unstableGetBlockProps}).call(this,n(93))},function(e,t,n){"use strict";var o=n(3);const{Fill:r,Slot:c}=Object(o.createSlotFill)("__unstableInserterMenuExtension");r.Slot=c,t.a=r},function(e,t,n){"use strict";var o=n(7),r=n(0),c=n(3),i=n(26),l=n.n(i),a=n(24),s=n(27);function u(e){return Array.from(e.querySelectorAll("[data-toolbar-item]"))}t.a=function({children:e,focusOnMount:t,__experimentalInitialIndex:n,__experimentalOnIndexChange:i,...d}){const b=Object(r.useRef)(),m=function(e){const[t,n]=Object(r.useState)(!0),o=Object(r.useCallback)(()=>{const t=!a.focus.tabbable.find(e.current).some(e=>!("toolbarItem"in e.dataset));t||l()("Using custom components as toolbar controls",{since:"5.6",alternative:"ToolbarItem, ToolbarButton or ToolbarDropdownMenu components",link:"https://developer.wordpress.org/block-editor/components/toolbar-button/#inside-blockcontrols"}),n(t)},[]);return Object(r.useLayoutEffect)(()=>{const t=new window.MutationObserver(o);return t.observe(e.current,{childList:!0,subtree:!0}),()=>t.disconnect()},[t]),t}(b);return function(e,t,n,o,c){const[i]=Object(r.useState)(t),[l]=Object(r.useState)(o),d=Object(r.useCallback)(()=>{!function(e){const[t]=a.focus.tabbable.find(e);t&&t.focus()}(e.current)},[]);Object(s.useShortcut)("core/block-editor/focus-toolbar",d,{bindGlobal:!0,eventName:"keydown"}),Object(r.useEffect)(()=>{i&&d()},[n,i,d]),Object(r.useEffect)(()=>{let t=0;return l&&!i&&(t=window.requestAnimationFrame(()=>{const t=u(e.current),n=l||0;var o;t[n]&&(o=e.current).contains(o.ownerDocument.activeElement)&&t[n].focus()})),()=>{if(window.cancelAnimationFrame(t),!c||!e.current)return;const n=u(e.current).findIndex(e=>0===e.tabIndex);c(n)}},[l,i])}(b,t,m,n,i),m?Object(r.createElement)(c.Toolbar,Object(o.a)({label:d["aria-label"],ref:b},d),e):Object(r.createElement)(c.NavigableMenu,Object(o.a)({orientation:"horizontal",role:"toolbar",ref:b},d),e)}},function(e,t,n){"use strict";var o=n(7),r=n(0),c=n(2),i=n(10),l=n.n(i),a=n(361),s=n(3),u=n(8),d=n(4),b=n(1),m=n(169),p=n(172),f=n(13);t.a=Object(d.withSelect)((e,{clientIds:t})=>{var n;const{getBlock:o,getBlockIndex:r,getBlockListSettings:i,getTemplateLock:l,getBlockOrder:a,getBlockRootClientId:s}=e(f.a),d=Object(c.castArray)(t),b=Object(c.first)(d),m=o(b),p=s(Object(c.first)(d)),g=r(b,p),h=0===g,O=r(Object(c.last)(d),p)===a(p).length-1;return{blockType:m?Object(u.getBlockType)(m.name):null,isLocked:"all"===l(p),rootClientId:p,firstIndex:g,isFirst:h,isLast:O,orientation:null===(n=i(p))||void 0===n?void 0:n.orientation}})((function({isFirst:e,isLast:t,clientIds:n,isLocked:c,isHidden:i,rootClientId:u,orientation:d,hideDragHandle:f}){const[g,h]=Object(r.useState)(!1),O=()=>h(!0),j=()=>h(!1);if(c||e&&t&&!u)return null;const v=Object(b.__)("Drag");return Object(r.createElement)("div",{className:l()("block-editor-block-mover",{"is-visible":g||!i,"is-horizontal":"horizontal"===d})},!f&&Object(r.createElement)(m.a,{clientIds:n,cloneClassname:"block-editor-block-mover__drag-clone"},e=>Object(r.createElement)(s.Button,Object(o.a)({icon:a.a,className:"block-editor-block-mover__drag-handle","aria-hidden":"true",label:v,tabIndex:"-1"},e))),Object(r.createElement)(s.ToolbarGroup,{className:"block-editor-block-mover__move-button-container"},Object(r.createElement)(s.ToolbarItem,{onFocus:O,onBlur:j},e=>Object(r.createElement)(p.b,Object(o.a)({clientIds:n},e))),Object(r.createElement)(s.ToolbarItem,{onFocus:O,onBlur:j},e=>Object(r.createElement)(p.a,Object(o.a)({clientIds:n},e)))))}))},function(e,t,n){"use strict";var o=n(7),r=n(0),c=n(3),i=n(242);t.a=function({clientIds:e,...t}){return Object(r.createElement)(c.ToolbarGroup,null,Object(r.createElement)(c.ToolbarItem,null,n=>Object(r.createElement)(i.a,Object(o.a)({clientIds:e,toggleProps:n},t))))}},function(e,t,n){"use strict";var o=n(3);const{Fill:r,Slot:c}=Object(o.createSlotFill)("__unstableBlockSettingsMenuFirstItem");r.Slot=c,t.a=r},,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return V}));var o=n(7),r=n(0),c=n(10),i=n.n(c),l=n(4),a=n(9),s=n(8),u=n(3),d=n(211),b=n(1),m=n(86),p=n(55),f=n(2);const{clearTimeout:g,setTimeout:h}=window;function O({ref:e,isFocused:t,debounceTimeout:n=200,onChange:o=f.noop}){const[c,i]=Object(r.useState)(!1),l=Object(r.useRef)(),a=t=>{null!=e&&e.current&&i(t),o(t)},s=()=>{const e=l.current;e&&g&&g(e)};return Object(r.useEffect)(()=>()=>s(),[]),{showMovers:c,debouncedShowMovers:e=>{e&&e.stopPropagation(),s(),c||a(!0)},debouncedHideMovers:o=>{o&&o.stopPropagation(),s(),l.current=h(()=>{(()=>{const n=(null==e?void 0:e.current)&&e.current.matches(":hover");return!t&&!n})()&&a(!1)},n)}}}function j({ref:e,debounceTimeout:t=200,onChange:n=f.noop}){const[o,c]=Object(r.useState)(!1),{showMovers:i,debouncedShowMovers:l,debouncedHideMovers:a}=O({ref:e,debounceTimeout:t,isFocused:o,onChange:n}),s=Object(r.useRef)(!1),u=()=>(null==e?void 0:e.current)&&e.current.contains(e.current.ownerDocument.activeElement);return Object(r.useEffect)(()=>{const t=e.current,n=()=>{u()&&(c(!0),l())},o=()=>{u()||(c(!1),a())};return t&&!s.current&&(t.addEventListener("focus",n,!0),t.addEventListener("blur",o,!0),s.current=!0),()=>{t&&(t.removeEventListener("focus",n),t.removeEventListener("blur",o))}},[e,s,c,l,a]),{showMovers:i,gestures:{onMouseMove:l,onMouseLeave:a}}}var v=n(13);function k(){const{selectBlock:e,toggleBlockHighlight:t}=Object(l.useDispatch)(v.a),{firstParentClientId:n,shouldHide:c,hasReducedUI:i}=Object(l.useSelect)(e=>{const{getBlockName:t,getBlockParents:n,getSelectedBlockClientId:o,getSettings:r}=e(v.a),{hasBlockSupport:c}=e(s.store),i=n(o()),l=i[i.length-1],a=t(l),u=Object(s.getBlockType)(a),d=r();return{firstParentClientId:l,shouldHide:!c(u,"__experimentalParentSelector",!0),hasReducedUI:d.hasReducedUI}},[]),a=Object(m.a)(n),d=Object(r.useRef)(),{gestures:f}=j({ref:d,onChange(e){e&&i||t(n,e)}});return c||void 0===n?null:Object(r.createElement)("div",Object(o.a)({className:"block-editor-block-parent-selector",key:n,ref:d},f),Object(r.createElement)(u.ToolbarButton,{className:"block-editor-block-parent-selector__button",onClick:()=>e(n),label:Object(b.sprintf)(
32
  /* translators: %s: Name of the block's parent. */
33
+ Object(b.__)("Select %s"),a.title),showTooltip:!0,icon:Object(r.createElement)(p.a,{icon:a.icon})}))}var _=n(558),y=n(101),E=n(79);function C({blocks:e}){return Object(r.createElement)("div",{className:"block-editor-block-switcher__popover__preview__parent"},Object(r.createElement)("div",{className:"block-editor-block-switcher__popover__preview__container"},Object(r.createElement)(u.Popover,{className:"block-editor-block-switcher__preview__popover",position:"bottom right",focusOnMount:!1},Object(r.createElement)("div",{className:"block-editor-block-switcher__preview"},Object(r.createElement)("div",{className:"block-editor-block-switcher__preview-title"},Object(b.__)("Preview")),Object(r.createElement)(E.a,{viewportWidth:500,blocks:e})))))}var S=({className:e,possibleBlockTransformations:t,onSelect:n,blocks:o})=>{const[c,i]=Object(r.useState)();return Object(r.createElement)(u.MenuGroup,{label:Object(b.__)("Transform to"),className:e},c&&Object(r.createElement)(C,{blocks:Object(s.switchToBlockType)(o,c)}),t.map(e=>{const{name:t,icon:o,title:c,isDisabled:l}=e;return Object(r.createElement)(u.MenuItem,{key:t,className:Object(s.getBlockMenuDefaultClassName)(t),onClick:e=>{e.preventDefault(),n(t)},disabled:l,onMouseLeave:()=>i(null),onMouseEnter:()=>i(t)},Object(r.createElement)(p.a,{icon:o,showColors:!0}),c)}))},w=n(244);function B({hoveredBlock:e,onSwitch:t}){const{name:n,clientId:o}=e,[c,i]=Object(r.useState)(),a=Object(l.useSelect)(e=>e(s.store).getBlockType(n),[n]);return Object(r.createElement)(u.MenuGroup,{label:Object(b.__)("Styles"),className:"block-editor-block-switcher__styles__menugroup"},c&&Object(r.createElement)(C,{blocks:a.example?Object(s.getBlockFromExample)(a.name,{attributes:{...a.example.attributes,className:c},innerBlocks:a.example.innerBlocks}):Object(s.cloneBlock)(e,{className:c})}),Object(r.createElement)(w.a,{clientId:o,onSwitch:t,onHoverClassName:i,itemRole:"menuitem"}))}var I=n(287);const x=(e,t,n=new Set)=>{const{clientId:o,name:r,innerBlocks:c=[]}=e;if(!n.has(o)){if(r===t)return e;for(const e of c){const o=x(e,t,n);if(o)return o}}},T=(e,t)=>{const n=((e,t)=>{const n=Object(s.__experimentalGetBlockAttributesNamesByRole)(e,"content");return null!=n&&n.length?n.reduce((e,n)=>(t[n]&&(e[n]=t[n]),e),{}):t})(t.name,t.attributes);e.attributes={...e.attributes,...n}};function N({patterns:e,onSelect:t}){return Object(r.createElement)("div",{className:"block-editor-block-switcher__popover__preview__parent"},Object(r.createElement)("div",{className:"block-editor-block-switcher__popover__preview__container"},Object(r.createElement)(u.Popover,{className:"block-editor-block-switcher__preview__popover",position:"bottom right"},Object(r.createElement)("div",{className:"block-editor-block-switcher__preview"},Object(r.createElement)("div",{className:"block-editor-block-switcher__preview-title"},Object(b.__)("Preview")),Object(r.createElement)(L,{patterns:e,onSelect:t})))))}function L({patterns:e,onSelect:t}){const n=Object(u.__unstableUseCompositeState)();return Object(r.createElement)(u.__unstableComposite,Object(o.a)({},n,{role:"listbox",className:"block-editor-block-switcher__preview-patterns-container","aria-label":Object(b.__)("Patterns list")}),e.map(e=>Object(r.createElement)(R,{key:e.name,pattern:e,onSelect:t,composite:n})))}function R({pattern:e,onSelect:t,composite:n}){const c="block-editor-block-switcher__preview-patterns-container",i=Object(a.useInstanceId)(R,c+"-list__item-description");return Object(r.createElement)("div",{className:c+"-list__list-item","aria-label":e.title,"aria-describedby":e.description?i:void 0},Object(r.createElement)(u.__unstableCompositeItem,Object(o.a)({role:"option",as:"div"},n,{className:c+"-list__item",onClick:()=>t(e.transformedBlocks)}),Object(r.createElement)(E.a,{blocks:e.transformedBlocks,viewportWidth:e.viewportWidth||500}),Object(r.createElement)("div",{className:c+"-list__item-title"},e.title)),!!e.description&&Object(r.createElement)(u.VisuallyHidden,{id:i},e.description))}var P=function({blocks:e,patterns:t,onSelect:n}){const[o,c]=Object(r.useState)(!1),i=((e,t)=>Object(r.useMemo)(()=>e.reduce((e,n)=>{const o=((e,t)=>{const n=t.map(e=>Object(s.cloneBlock)(e)),o=new Set;for(const t of e){let e=!1;for(const r of n){const n=x(r,t.name,o);if(n){e=!0,o.add(n.clientId),T(n,t);break}}if(!e)return}return n})(t,n.blocks);return o&&e.push({...n,transformedBlocks:o}),e},[]),[e,t]))(t,e);return i.length?Object(r.createElement)(u.MenuGroup,{className:"block-editor-block-switcher__pattern__transforms__menugroup"},o&&Object(r.createElement)(N,{patterns:i,onSelect:n}),Object(r.createElement)(u.MenuItem,{onClick:e=>{e.preventDefault(),c(!o)},icon:I.a},Object(b.__)("Patterns"))):null};const A=({clientIds:e,blocks:t})=>{const{replaceBlocks:n}=Object(l.useDispatch)(v.a),o=Object(m.a)(t[0].clientId),{possibleBlockTransformations:c,hasBlockStyles:i,icon:a,blockTitle:d,patterns:g}=Object(l.useSelect)(n=>{const{getBlockRootClientId:r,getBlockTransformItems:c,__experimentalGetPatternTransformItems:i}=n(v.a),{getBlockStyles:l,getBlockType:a}=n(s.store),u=r(Object(f.castArray)(e)[0]),[{name:d}]=t,b=1===t.length,m=b&&l(d);let p;var g;b?p=null==o?void 0:o.icon:p=1===Object(f.uniq)(t.map(({name:e})=>e)).length?null===(g=a(d))||void 0===g?void 0:g.icon:_.a;return{possibleBlockTransformations:c(t,u),hasBlockStyles:!(null==m||!m.length),icon:p,blockTitle:a(d).title,patterns:i(t,u)}},[e,t,null==o?void 0:o.icon]),h=1===t.length&&Object(s.isReusableBlock)(t[0]),O=1===t.length&&Object(s.isTemplatePart)(t[0]),j=!!c.length,k=!(null==g||!g.length);if(!i&&!j)return Object(r.createElement)(u.ToolbarGroup,null,Object(r.createElement)(u.ToolbarButton,{disabled:!0,className:"block-editor-block-switcher__no-switcher-icon",title:d,icon:Object(r.createElement)(p.a,{icon:a,showColors:!0})}));const E=d,C=1===t.length?Object(b.sprintf)(
34
  /* translators: %s: block title. */
35
  Object(b.__)("%s: Change block type or style"),d):Object(b.sprintf)(
36
  /* translators: %d: number of blocks. */
37
+ Object(b._n)("Change type of %d block","Change type of %d blocks",t.length),t.length),w=i||j||k;return Object(r.createElement)(u.ToolbarGroup,null,Object(r.createElement)(u.ToolbarItem,null,o=>Object(r.createElement)(u.DropdownMenu,{className:"block-editor-block-switcher",label:E,popoverProps:{position:"bottom right",isAlternate:!0,className:"block-editor-block-switcher__popover"},icon:Object(r.createElement)(r.Fragment,null,Object(r.createElement)(p.a,{icon:a,className:"block-editor-block-switcher__toggle",showColors:!0}),(h||O)&&Object(r.createElement)("span",{className:"block-editor-block-switcher__toggle-text"},Object(r.createElement)(y.a,{clientId:e}))),toggleProps:{describedBy:C,...o},menuProps:{orientation:"both"}},({onClose:o})=>w&&Object(r.createElement)("div",{className:"block-editor-block-switcher__container"},k&&Object(r.createElement)(P,{blocks:t,patterns:g,onSelect:t=>{(t=>{n(e,t)})(t),o()}}),j&&Object(r.createElement)(S,{className:"block-editor-block-switcher__transforms__menugroup",possibleBlockTransformations:c,blocks:t,onSelect:r=>{(o=>{n(e,Object(s.switchToBlockType)(t,o))})(r),o()}}),i&&Object(r.createElement)(B,{hoveredBlock:t[0],onSwitch:o})))))};var M=({clientIds:e})=>{const t=Object(l.useSelect)(t=>t(v.a).getBlocksByClientId(e),[e]);return!t.length||t.some(e=>!e)?null:Object(r.createElement)(A,{clientIds:e,blocks:t})},D=n(107),F=n(212);function V({hideDragHandle:e}){const{blockClientIds:t,blockClientId:n,blockType:c,hasFixedToolbar:b,hasReducedUI:m,isValid:p,isVisual:f}=Object(l.useSelect)(e=>{const{getBlockName:t,getBlockMode:n,getSelectedBlockClientIds:o,isBlockValid:r,getBlockRootClientId:c,getSettings:i}=e(v.a),l=o(),a=l[0],u=c(a),d=i();return{blockClientIds:l,blockClientId:a,blockType:a&&Object(s.getBlockType)(t(a)),hasFixedToolbar:d.hasFixedToolbar,hasReducedUI:d.hasReducedUI,rootClientId:u,isValid:l.every(e=>r(e)),isVisual:l.every(e=>"visual"===n(e))}},[]),{toggleBlockHighlight:g}=Object(l.useDispatch)(v.a),h=Object(r.useRef)(),{showMovers:O,gestures:_}=j({ref:h,onChange(e){e&&m||g(n,e)}}),y=Object(a.useViewportMatch)("medium","<")||b;if(c&&!Object(s.hasBlockSupport)(c,"__experimentalToolbar",!0))return null;const E=y||O;if(0===t.length)return null;const C=p&&f,S=t.length>1,w=i()("block-editor-block-toolbar",E&&"is-showing-movers");return Object(r.createElement)("div",{className:w},!S&&!y&&Object(r.createElement)(k,{clientIds:t}),Object(r.createElement)("div",Object(o.a)({ref:h},_),(C||S)&&Object(r.createElement)(u.ToolbarGroup,{className:"block-editor-block-toolbar__block-controls"},Object(r.createElement)(M,{clientIds:t}),Object(r.createElement)(d.a,{clientIds:t,hideDragHandle:e||m}))),C&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)(D.b.Slot,{group:"block",className:"block-editor-block-toolbar__slot"}),Object(r.createElement)(D.b.Slot,{className:"block-editor-block-toolbar__slot"}),Object(r.createElement)(D.b.Slot,{group:"inline",className:"block-editor-block-toolbar__slot"}),Object(r.createElement)(D.b.Slot,{group:"other",className:"block-editor-block-toolbar__slot"})),Object(r.createElement)(F.a,{clientIds:t}))}},function(e,t,n){"use strict";var o=n(7),r=n(0),c=n(2),i=n(3),l=n(4),a=n(8),s=n(13),u=n(1);function d({clientIds:e,isGroupable:t,isUngroupable:n,blocksSelection:o,groupingBlockName:c,onClose:d=(()=>{})}){const{replaceBlocks:b}=Object(l.useDispatch)(s.a);return t||n?Object(r.createElement)(r.Fragment,null,t&&Object(r.createElement)(i.MenuItem,{onClick:()=>{(()=>{const t=Object(a.switchToBlockType)(o,c);t&&b(e,t)})(),d()}},Object(u._x)("Group","verb")),n&&Object(r.createElement)(i.MenuItem,{onClick:()=>{(()=>{const t=o[0].innerBlocks;t.length&&b(e,t)})(),d()}},Object(u._x)("Ungroup","Ungrouping blocks from within a Group block back into individual blocks within the Editor "))):null}const{Fill:b,Slot:m}=Object(i.createSlotFill)("BlockSettingsMenuControls");function p({...e}){return Object(r.createElement)(i.__experimentalStyleProvider,{document:document},Object(r.createElement)(b,e))}p.Slot=({fillProps:e,clientIds:t=null})=>{const n=Object(l.useSelect)(e=>{const{getBlocksByClientId:n,getSelectedBlockClientIds:o}=e(s.a),r=null!==t?t:o();return Object(c.map)(Object(c.compact)(n(r)),e=>e.name)},[t]),u=function(){const{clientIds:e,isGroupable:t,isUngroupable:n,blocksSelection:o,groupingBlockName:r}=Object(l.useSelect)(e=>{var t;const{getBlockRootClientId:n,getBlocksByClientId:o,canInsertBlockType:r,getSelectedBlockClientIds:c}=e(s.a),{getGroupingBlockName:i}=e(a.store),l=c(),u=i(),d=r(u,null!=l&&l.length?n(l[0]):void 0),b=o(l),m=1===b.length&&(null===(t=b[0])||void 0===t?void 0:t.name)===u;return{clientIds:l,isGroupable:d&&b.length&&!m,isUngroupable:m&&!!b[0].innerBlocks.length,blocksSelection:b,groupingBlockName:u}},[]);return{clientIds:e,isGroupable:t,isUngroupable:n,blocksSelection:o,groupingBlockName:r}}(),{isGroupable:b,isUngroupable:p}=u,f=b||p;return Object(r.createElement)(m,{fillProps:{...e,selectedBlocks:n}},t=>{if((null==t?void 0:t.length)>0||f)return Object(r.createElement)(i.MenuGroup,null,t,Object(r.createElement)(d,Object(o.a)({},u,{onClose:null==e?void 0:e.onClose})))})},t.a=p},function(e,t,n){"use strict";var o=n(0),r=n(4),c=n(7),i=n(9),l=n(13),a=n(43),s=Object(i.createHigherOrderComponent)(e=>Object(r.withRegistry)(({useSubRegistry:t=!0,registry:n,...i})=>{if(!t)return Object(o.createElement)(e,Object(c.a)({registry:n},i));const[s,u]=Object(o.useState)(null);return Object(o.useEffect)(()=>{const e=Object(r.createRegistry)({},n);e.registerStore(a.a,l.b),u(e)},[n]),s?Object(o.createElement)(r.RegistryProvider,{value:s},Object(o.createElement)(e,Object(c.a)({registry:s},i))):null}),"withRegistryProvider"),u=n(230),d=n(170);t.a=s((function(e){const{children:t,settings:n}=e,{updateSettings:c}=Object(r.useDispatch)(l.a);return Object(o.useEffect)(()=>{c(n)},[n]),Object(u.a)(e),Object(o.createElement)(d.b,null,t)}))},function(e,t,n){"use strict";function o(e,t,n=["top","bottom","left","right"]){let o,r;return n.forEach(n=>{const c=function(e,t,n){const o="top"===n||"bottom"===n,{x:r,y:c}=e,i=o?r:c,l=o?c:r,a=o?t.left:t.top,s=o?t.right:t.bottom,u=t[n];let d;return d=i>=a&&i<=s?i:i<s?a:s,Math.sqrt((i-d)**2+(l-u)**2)}(e,t,n);(void 0===o||c<o)&&(o=c,r=n)}),[o,r]}n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var o=n(8),r=n(4),c=n(24),i=n(13);function l(e,t){const n=Object(r.useSelect)(e=>e(i.a).getSettings().mediaUpload,[]),{canInsertBlockType:l,getBlockIndex:a,getClientIdsOfDescendants:s}=Object(r.useSelect)(i.a),{insertBlocks:u,moveBlocksToPosition:d,updateBlockAttributes:b,clearSelectedBlock:m}=Object(r.useDispatch)(i.a),p=function(e,t,n,o,r,c,i){return l=>{const{srcRootClientId:a,srcClientIds:s,type:u,blocks:d}=function(e){let t={srcRootClientId:null,srcClientIds:null,srcIndex:null,type:null,blocks:null};if(!e.dataTransfer)return t;try{t=Object.assign(t,JSON.parse(e.dataTransfer.getData("wp-blocks")))}catch(e){return t}return t}(l);if("inserter"===u&&(i(),c(d,t,e,!0,null)),"block"===u){const c=n(s[0],a);if(a===e&&c===t)return;if(s.includes(e)||o(s).some(t=>t===e))return;const i=a===e,l=s.length;r(s,a,e,i&&c<t?t-l:t)}}}(e,t,a,s,d,u,m),f=function(e,t,n,r,c,i){return l=>{if(!n)return;const a=Object(o.findTransform)(Object(o.getBlockTransforms)("from"),t=>"files"===t.type&&c(t.blockName,e)&&t.isMatch(l));if(a){const n=a.transform(l,r);i(n,t,e)}}}(e,t,n,b,l,u),g=function(e,t,n){return r=>{const c=Object(o.pasteHandler)({HTML:r,mode:"BLOCKS"});c.length&&n(c,t,e)}}(e,t,u);return e=>{const t=Object(c.getFilesFromDataTransfer)(e.dataTransfer),n=e.dataTransfer.getData("text/html");t.length?f(t):n?g(n):p(e)}}},function(e,t,n){"use strict";var o=n(133),r=n(0),c=n(9),i=n(24);const l=e=>e+1,a=e=>({top:e.offsetTop,left:e.offsetLeft});t.a=function({isSelected:e,adjustScrolling:t,enableAnimation:n,triggerAnimationOnChange:s}){const u=Object(r.useRef)(),d=Object(c.useReducedMotion)()||!n,[b,m]=Object(r.useReducer)(l,0),[p,f]=Object(r.useReducer)(l,0),[g,h]=Object(r.useState)({x:0,y:0}),O=Object(r.useMemo)(()=>u.current?a(u.current):null,[s]),j=Object(r.useMemo)(()=>{if(!t||!u.current)return()=>{};const e=Object(i.getScrollContainer)(u.current);if(!e)return()=>{};const n=u.current.getBoundingClientRect();return()=>{const t=u.current.getBoundingClientRect().top-n.top;t&&(e.scrollTop+=t)}},[s,t]);function v({x:t,y:n}){t=Math.round(t),n=Math.round(n),t===v.x&&n===v.y||(function({x:t,y:n}){if(!u.current)return;const o=0===t&&0===n;u.current.style.transformOrigin=o?"":"center",u.current.style.transform=o?"":`translate3d(${t}px,${n}px,0)`,u.current.style.zIndex=!e||o?"":"1",j()}({x:t,y:n}),v.x=t,v.y=n)}return Object(r.useLayoutEffect)(()=>{b&&f()},[b]),Object(r.useLayoutEffect)(()=>{if(!O)return;if(d)return void j();u.current.style.transform="";const e=a(u.current);m(),h({x:Math.round(O.left-e.left),y:Math.round(O.top-e.top)})},[s]),v.x=0,v.y=0,Object(o.useSpring)({from:{x:g.x,y:g.y},to:{x:0,y:0},reset:b!==p,config:{mass:5,tension:2e3,friction:200},immediate:d,onFrame:v}),u}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var o=n(0),r=n(1),c=n(3),i=n(361),l=n(55);function a({count:e,icon:t}){return Object(o.createElement)("div",{className:"block-editor-block-draggable-chip-wrapper"},Object(o.createElement)("div",{className:"block-editor-block-draggable-chip"},Object(o.createElement)(c.Flex,{justify:"center",className:"block-editor-block-draggable-chip__content"},Object(o.createElement)(c.FlexItem,null,t?Object(o.createElement)(l.a,{icon:t}):Object(r.sprintf)(
38
  /* translators: %d: Number of blocks. */
39
+ Object(r._n)("%d block","%d blocks",e),e)),Object(o.createElement)(c.FlexItem,null,Object(o.createElement)(l.a,{icon:i.a})))))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var o=n(4),r=n(0),c=n(9),i=n(1),l=n(223),a=n(222),s=n(13);function u({rootClientId:e=""}={}){const[t,n]=Object(r.useState)(null),u=Object(o.useSelect)(t=>{const{getTemplateLock:n}=t(s.a);return"all"===n(e)},[e]),{getBlockListSettings:d}=Object(o.useSelect)(s.a),{showInsertionPoint:b,hideInsertionPoint:m}=Object(o.useDispatch)(s.a),p=Object(l.a)(e,t),f=Object(c.useThrottle)(Object(r.useCallback)((t,o)=>{var r;const c=function(e,t,n){const o="horizontal"===n?["left","right"]:["top","bottom"],r=Object(i.isRTL)();let c,l;return e.forEach((e,n)=>{const i=e.getBoundingClientRect(),[s,u]=Object(a.a)(t,i,o);(void 0===l||s<l)&&(l=s,c=n+("bottom"===u||!r&&"right"===u||r&&"left"===u?1:0))}),c}(Array.from(o.children).filter(e=>e.classList.contains("wp-block")),{x:t.clientX,y:t.clientY},null===(r=d(e))||void 0===r?void 0:r.orientation);n(void 0===c?0:c),null!==c&&b(e,c)},[]),200);return Object(c.__experimentalUseDropZone)({isDisabled:u,onDrop:p,onDragOver(e){f(e,e.currentTarget)},onDragLeave(){f.cancel(),m(),n(null)},onDragEnd(){f.cancel(),m(),n(null)}})}},function(e,t,n){"use strict";var o=n(0),r=n(2),c=n(1),i=n(3),l=n(9),a=n(33),s=n(121),u=n(229),d=n(209),b=n(111),m=n(195),p=n(161),f=n(162),g=n(106),h=n(194),O=n(153);t.a=function({filterValue:e,onSelect:t,onHover:n,rootClientId:j,clientId:v,isAppender:k,__experimentalInsertionIndex:_,maxBlockPatterns:y,maxBlockTypes:E,showBlockDirectory:C=!1,isDraggable:S=!0,shouldFocusBlock:w=!0}){const B=Object(l.useDebounce)(a.speak,500),[I,x]=Object(p.a)({onSelect:t,rootClientId:j,clientId:v,isAppender:k,insertionIndex:_,shouldFocusBlock:w}),[T,N,L,R]=Object(g.a)(I,x),[P,,A]=Object(f.a)(x,I),M=Object(o.useMemo)(()=>{const t=Object(h.a)(Object(r.orderBy)(T,["frecency"],["desc"]),N,L,e);return void 0!==E?t.slice(0,E):t},[e,T,N,L,E]),D=Object(o.useMemo)(()=>{const t=Object(h.b)(P,e);return void 0!==y?t.slice(0,y):t},[e,P,y]);Object(o.useEffect)(()=>{if(!e)return;const t=M.length+D.length,n=Object(c.sprintf)(
40
  /* translators: %d: number of results. */
41
+ Object(c._n)("%d result found.","%d results found.",t),t);B(n)},[e,B]);const F=Object(l.useAsyncList)(D),V=!Object(r.isEmpty)(M)||!Object(r.isEmpty)(D);return Object(o.createElement)(O.a,null,!C&&!V&&Object(o.createElement)(m.a,null),!!M.length&&Object(o.createElement)(b.a,{title:Object(o.createElement)(i.VisuallyHidden,null,Object(c.__)("Blocks"))},Object(o.createElement)(s.a,{items:M,onSelect:R,onHover:n,label:Object(c.__)("Blocks"),isDraggable:S})),!!M.length&&!!D.length&&Object(o.createElement)("div",{className:"block-editor-inserter__quick-inserter-separator"}),!!D.length&&Object(o.createElement)(b.a,{title:Object(o.createElement)(i.VisuallyHidden,null,Object(c.__)("Block Patterns"))},Object(o.createElement)("div",{className:"block-editor-inserter__quick-inserter-patterns"},Object(o.createElement)(u.a,{shownPatterns:F,blockPatterns:D,onClickPattern:A,isDraggable:S}))),C&&Object(o.createElement)(d.a.Slot,{fillProps:{onSelect:R,onHover:n,filterValue:e,hasItems:V,rootClientId:I}},e=>e.length?e:V?null:Object(o.createElement)(m.a,null)))}},function(e,t,n){"use strict";var o=n(0),r=n(3),c=n(225);t.a=({isEnabled:e,blocks:t,icon:n,children:i})=>{const l={type:"inserter",blocks:t};return Object(o.createElement)(r.Draggable,{__experimentalTransferDataType:"wp-blocks",transferData:l,__experimentalDragComponent:Object(o.createElement)(c.a,{count:t.length,icon:n})},({onDraggableStart:t,onDraggableEnd:n})=>i({draggable:e,onDragStart:e?t:void 0,onDragEnd:e?n:void 0}))}},function(e,t,n){"use strict";var o=n(7),r=n(0),c=n(3),i=n(9),l=n(1),a=n(4),s=n(79),u=n(228),d=n(13);function b({isDraggable:e,pattern:t,onClick:n,composite:l}){const{name:m,viewportWidth:p}=t,{blocks:f}=Object(a.useSelect)(e=>e(d.a).__experimentalGetParsedPattern(m),[m]),g="block-editor-block-patterns-list__item-description-"+Object(i.useInstanceId)(b);return Object(r.createElement)(u.a,{isEnabled:e,blocks:f},({draggable:e,onDragStart:i,onDragEnd:a})=>Object(r.createElement)("div",{className:"block-editor-block-patterns-list__list-item","aria-label":t.title,"aria-describedby":t.description?g:void 0,draggable:e,onDragStart:i,onDragEnd:a},Object(r.createElement)(c.__unstableCompositeItem,Object(o.a)({role:"option",as:"div"},l,{className:"block-editor-block-patterns-list__item",onClick:()=>n(t,f)}),Object(r.createElement)(s.a,{blocks:f,viewportWidth:p}),Object(r.createElement)("div",{className:"block-editor-block-patterns-list__item-title"},t.title),!!t.description&&Object(r.createElement)(c.VisuallyHidden,{id:g},t.description))))}function m(){return Object(r.createElement)("div",{className:"block-editor-block-patterns-list__item is-placeholder"})}t.a=function({isDraggable:e,blockPatterns:t,shownPatterns:n,onClickPattern:i,orientation:a,label:s=Object(l.__)("Block Patterns")}){const u=Object(c.__unstableUseCompositeState)({orientation:a});return Object(r.createElement)(c.__unstableComposite,Object(o.a)({},u,{role:"listbox",className:"block-editor-block-patterns-list","aria-label":s}),t.map(t=>n.includes(t)?Object(r.createElement)(b,{key:t.name,pattern:t,onClick:i,isDraggable:e,composite:u}):Object(r.createElement)(m,{key:t.name})))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var o=n(2),r=n(0),c=n(4),i=n(8),l=n(13);function a({clientId:e=null,value:t,selection:n,onChange:a=o.noop,onInput:s=o.noop}){const u=Object(c.useRegistry)(),{resetBlocks:d,resetSelection:b,replaceInnerBlocks:m,setHasControlledInnerBlocks:p,__unstableMarkNextChangeAsNotPersistent:f}=u.dispatch(l.a),{getBlockName:g,getBlocks:h}=u.select(l.a),O=Object(r.useRef)({incoming:null,outgoing:[]}),j=Object(r.useRef)(!1),v=Object(r.useRef)(s),k=Object(r.useRef)(a);Object(r.useEffect)(()=>{v.current=s,k.current=a},[s,a]),Object(r.useEffect)(()=>{O.current.outgoing.includes(t)?Object(o.last)(O.current.outgoing)===t&&(O.current.outgoing=[]):h(e)!==t&&(O.current.outgoing=[],(()=>{if(t)if(f(),e){p(e,!0),f();const n=t.map(e=>Object(i.cloneBlock)(e));j.current&&(O.current.incoming=n),m(e,n)}else j.current&&(O.current.incoming=t),d(t)})(),n&&b(n.selectionStart,n.selectionEnd,n.initialPosition))},[t,e]),Object(r.useEffect)(()=>{const{getSelectionStart:t,getSelectionEnd:n,getSelectedBlocksInitialCaretPosition:o,isLastBlockChangePersistent:r,__unstableIsLastBlockChangeIgnored:c}=u.select(l.a);let i=h(e),a=r(),s=!1;j.current=!0;const d=u.subscribe(()=>{if(null!==e&&null===g(e))return;const l=r(),u=h(e),d=u!==i;if(i=u,d&&(O.current.incoming||c()))return O.current.incoming=null,void(a=l);(d||s&&!d&&l&&!a)&&(a=l,O.current.outgoing.push(i),(a?k.current:v.current)(i,{selection:{selectionStart:t(),selectionEnd:n(),initialPosition:o()}})),s=d});return()=>d()},[u,e])}},function(e,t,n){"use strict";var o=n(0),r=n(26),c=n.n(r),i=n(55);t.a=function({title:e,icon:t,description:n,blockType:r}){return r&&(c()("`blockType` property in `BlockCard component`",{since:"5.7",alternative:"`title, icon and description` properties"}),({title:e,icon:t,description:n}=r)),Object(o.createElement)("div",{className:"block-editor-block-card"},Object(o.createElement)(i.a,{icon:t,showColors:!0}),Object(o.createElement)("div",{className:"block-editor-block-card__content"},Object(o.createElement)("h2",{className:"block-editor-block-card__title"},e),Object(o.createElement)("span",{className:"block-editor-block-card__description"},n)))}},function(e,t,n){"use strict";var o=n(7),r=n(0),c=n(10),i=n.n(c),l=n(1),a=n(8),s=n(4),u=n(210),d=n(219),b=n(13);t.a=function({focusOnMount:e,isFixed:t,...n}){const{blockType:c,hasParents:m,showParentSelector:p}=Object(s.useSelect)(e=>{const{getBlockName:t,getBlockParents:n,getSelectedBlockClientIds:o}=e(b.a),{getBlockType:r}=e(a.store),c=o()[0],i=n(c),l=r(t(i[i.length-1]));return{blockType:c&&r(t(c)),hasParents:i.length,showParentSelector:Object(a.hasBlockSupport)(l,"__experimentalParentSelector",!0)}},[]);if(c&&!Object(a.hasBlockSupport)(c,"__experimentalToolbar",!0))return null;const f=i()("block-editor-block-contextual-toolbar",{"has-parent":m&&p,"is-fixed":t});return Object(r.createElement)(u.a,Object(o.a)({focusOnMount:e,className:f
42
+ /* translators: accessibility text for the block toolbar */,"aria-label":Object(l.__)("Block tools")},n),Object(r.createElement)(d.a,{hideDragHandle:t}))}},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}},,,,,,,,function(e,t,n){"use strict";var o=n(0),r=n(3),c=n(1),i=n(4);const l=[Object(o.createInterpolateElement)(Object(c.__)("While writing, you can press <kbd>/</kbd> to quickly insert new blocks."),{kbd:Object(o.createElement)("kbd",null)}),Object(o.createInterpolateElement)(Object(c.__)("Indent a list by pressing <kbd>space</kbd> at the beginning of a line."),{kbd:Object(o.createElement)("kbd",null)}),Object(o.createInterpolateElement)(Object(c.__)("Outdent a list by pressing <kbd>backspace</kbd> at the beginning of a line."),{kbd:Object(o.createElement)("kbd",null)}),Object(c.__)("Drag files into the editor to automatically insert media blocks."),Object(c.__)("Change a block's type by pressing the block icon on the toolbar.")];var a=function(){const[e]=Object(o.useState)(Math.floor(Math.random()*l.length));return Object(o.createElement)(r.Tip,null,l[e])},s=n(8),u=n(231),d=n(79),b=function({item:e}){var t,n;const{name:r,title:i,icon:l,description:a,initialAttributes:b}=e,m=Object(s.getBlockType)(r),p=Object(s.isReusableBlock)(e);return Object(o.createElement)("div",{className:"block-editor-inserter__preview-container"},Object(o.createElement)("div",{className:"block-editor-inserter__preview"},p||m.example?Object(o.createElement)("div",{className:"block-editor-inserter__preview-content"},Object(o.createElement)(d.a,{__experimentalPadding:16,viewportWidth:null!==(t=null===(n=m.example)||void 0===n?void 0:n.viewportWidth)&&void 0!==t?t:500,blocks:m.example?Object(s.getBlockFromExample)(e.name,{attributes:{...m.example.attributes,...b},innerBlocks:m.example.innerBlocks}):Object(s.createBlock)(r,b)})):Object(o.createElement)("div",{className:"block-editor-inserter__preview-content-missing"},Object(c.__)("No Preview Available."))),!p&&Object(o.createElement)(u.a,{title:i,icon:l,description:a}))},m=n(2),p=n(121),f=n(111),g=n(106),h=n(153),O=function({rootClientId:e,onInsert:t,onHover:n,showMostUsedBlocks:r}){const[i,l,a,s]=Object(g.a)(e,t),u=Object(o.useMemo)(()=>Object(m.orderBy)(i,["frecency"],["desc"]).slice(0,6),[i]),d=Object(o.useMemo)(()=>i.filter(e=>!e.category),[i]),b=Object(o.useMemo)(()=>Object(m.flow)(e=>e.filter(e=>e.category&&"reusable"!==e.category),e=>Object(m.groupBy)(e,"category"))(i),[i]),O=Object(o.useMemo)(()=>{const e={...a};return Object.keys(a).forEach(t=>{e[t]=i.filter(e=>(e=>e.name.split("/")[0])(e)===t),0===e[t].length&&delete e[t]}),e},[i,a]);return Object(o.useEffect)(()=>()=>n(null),[]),Object(o.createElement)(h.a,null,Object(o.createElement)("div",null,r&&!!u.length&&Object(o.createElement)(f.a,{title:Object(c._x)("Most used","blocks")},Object(o.createElement)(p.a,{items:u,onSelect:s,onHover:n,label:Object(c._x)("Most used","blocks")})),Object(m.map)(l,e=>{const t=b[e.slug];return t&&t.length?Object(o.createElement)(f.a,{key:e.slug,title:e.title,icon:e.icon},Object(o.createElement)(p.a,{items:t,onSelect:s,onHover:n,label:e.title})):null}),d.length>0&&Object(o.createElement)(f.a,{className:"block-editor-inserter__uncategorized-blocks-panel",title:Object(c.__)("Uncategorized")},Object(o.createElement)(p.a,{items:d,onSelect:s,onHover:n,label:Object(c.__)("Uncategorized")})),Object(m.map)(a,(e,t)=>{const r=O[t];return r&&r.length?Object(o.createElement)(f.a,{key:t,title:e.title,icon:e.icon},Object(o.createElement)(p.a,{items:r,onSelect:s,onHover:n,label:e.title})):null})))},j=n(9),v=n(10),k=n.n(v),_=function({selectedCategory:e,patternCategories:t,onClickCategory:n,children:i}){return Object(o.createElement)(o.Fragment,null,Object(o.createElement)("div",{className:k()("block-editor-inserter__panel-header","block-editor-inserter__panel-header-patterns")},Object(o.createElement)(r.SelectControl,{className:"block-editor-inserter__panel-dropdown",label:Object(c.__)("Filter patterns"),hideLabelFromVision:!0,value:e.name,onChange:e=>{n(t.find(t=>e===t.name))},onBlur:e=>{null!=e&&e.relatedTarget||e.stopPropagation()},options:(()=>{const e=[];return t.map(t=>e.push({value:t.name,label:t.label})),e})()})),Object(o.createElement)("div",{className:"block-editor-inserter__panel-content"},i))},y=n(162),E=n(229);function C({rootClientId:e,onInsert:t,selectedCategory:n,onClickCategory:r}){const[i,l,a]=Object(y.a)(t,e),s=Object(o.useMemo)(()=>l.filter(e=>i.some(t=>{var n;return null===(n=t.categories)||void 0===n?void 0:n.includes(e.name)})),[i,l]),u=n||s[0];Object(o.useEffect)(()=>{i.some(e=>d(e)===1/0)&&!s.find(e=>"uncategorized"===e.name)&&s.push({name:"uncategorized",label:Object(c._x)("Uncategorized")})},[s,i]);const d=Object(o.useCallback)(e=>{if(!e.categories||!e.categories.length)return 1/0;const t=Object(m.fromPairs)(s.map(({name:e},t)=>[e,t]));return Math.min(...e.categories.map(e=>void 0!==t[e]?t[e]:1/0))},[s]),b=Object(o.useMemo)(()=>i.filter(e=>"uncategorized"===u.name?d(e)===1/0:e.categories&&e.categories.includes(u.name)),[i,u]),p=Object(o.useMemo)(()=>b.sort((e,t)=>d(e)-d(t)),[b,d]),f=Object(j.useAsyncList)(p);return Object(o.createElement)(o.Fragment,null,!!b.length&&Object(o.createElement)(_,{selectedCategory:u,patternCategories:s,onClickCategory:r},Object(o.createElement)(E.a,{shownPatterns:f,blockPatterns:b,onClickPattern:a,label:u.label,orientation:"vertical",isDraggable:!0})))}var S=function({rootClientId:e,onInsert:t,onClickCategory:n,selectedCategory:r}){return Object(o.createElement)(C,{rootClientId:e,selectedCategory:r,onInsert:t,onClickCategory:n})},w=n(20),B=n(195);function I({onHover:e,onInsert:t,rootClientId:n}){const[r,,,i]=Object(g.a)(n,t),l=Object(o.useMemo)(()=>r.filter(({category:e})=>"reusable"===e),[r]);return 0===l.length?Object(o.createElement)(B.a,null):Object(o.createElement)(f.a,{title:Object(c.__)("Reusable blocks")},Object(o.createElement)(p.a,{items:l,onSelect:i,onHover:e,label:Object(c.__)("Reusable blocks")}))}var x=function({rootClientId:e,onInsert:t,onHover:n}){return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(I,{onHover:n,onInsert:t,rootClientId:e}),Object(o.createElement)("div",{className:"block-editor-inserter__manage-reusable-blocks-container"},Object(o.createElement)("a",{className:"block-editor-inserter__manage-reusable-blocks",href:Object(w.addQueryArgs)("edit.php",{post_type:"wp_block"})},Object(c.__)("Manage Reusable blocks"))))},T=n(227),N=n(161);const L={name:"blocks",
43
  /* translators: Blocks tab title in the block inserter. */
44
+ title:Object(c.__)("Blocks")},R={name:"patterns",
45
  /* translators: Patterns tab title in the block inserter. */
46
+ title:Object(c.__)("Patterns")},P={name:"reusable",
47
  /* translators: Reusable blocks tab title in the block inserter. */
48
+ title:Object(c.__)("Reusable")};var A=function({children:e,showPatterns:t=!1,showReusableBlocks:n=!1,onSelect:c}){const i=Object(o.useMemo)(()=>{const e=[L];return t&&e.push(R),n&&e.push(P),e},[L,t,R,n,P]);return Object(o.createElement)(r.TabPanel,{className:"block-editor-inserter__tabs",tabs:i,onSelect:c},e)},M=n(13);t.a=function({rootClientId:e,clientId:t,isAppender:n,__experimentalInsertionIndex:l,onSelect:s,showInserterHelpPanel:u,showMostUsedBlocks:d,shouldFocusBlock:m=!0}){const[p,f]=Object(o.useState)(""),[g,h]=Object(o.useState)(null),[j,v]=Object(o.useState)(null),[k,_,y]=Object(N.a)({rootClientId:e,clientId:t,isAppender:n,insertionIndex:l,shouldFocusBlock:m}),{showPatterns:E,hasReusableBlocks:C}=Object(i.useSelect)(e=>{var t;const{__experimentalGetAllowedPatterns:n,getSettings:o}=e(M.a);return{showPatterns:!!n(k).length,hasReusableBlocks:!(null===(t=o().__experimentalReusableBlocks)||void 0===t||!t.length)}},[k]),w=Object(o.useCallback)((e,t,n)=>{_(e,t,n),s()},[_,s]),B=Object(o.useCallback)((e,t)=>{_(e,{patternName:t}),s()},[_,s]),I=Object(o.useCallback)(e=>{y(!!e),h(e)},[y,h]),L=Object(o.useCallback)(e=>{v(e)},[v]),R=Object(o.useMemo)(()=>Object(o.createElement)(o.Fragment,null,Object(o.createElement)("div",{className:"block-editor-inserter__block-list"},Object(o.createElement)(O,{rootClientId:k,onInsert:w,onHover:I,showMostUsedBlocks:d})),u&&Object(o.createElement)("div",{className:"block-editor-inserter__tips"},Object(o.createElement)(r.VisuallyHidden,{as:"h2"},Object(c.__)("A tip for using the block editor")),Object(o.createElement)(a,null))),[k,w,I,p,d,u]),P=Object(o.useMemo)(()=>Object(o.createElement)(S,{rootClientId:k,onInsert:B,onClickCategory:L,selectedCategory:j}),[k,B,L,j]),D=Object(o.useMemo)(()=>Object(o.createElement)(x,{rootClientId:k,onInsert:w,onHover:I}),[k,w,I]),F=Object(o.useCallback)(e=>"blocks"===e.name?R:"patterns"===e.name?P:D,[R,P,D]);return Object(o.createElement)("div",{className:"block-editor-inserter__menu"},Object(o.createElement)("div",{className:"block-editor-inserter__main-area"},Object(o.createElement)("div",{className:"block-editor-inserter__content"},Object(o.createElement)(r.SearchControl,{className:"block-editor-inserter__search",onChange:e=>{g&&h(null),f(e)},value:p,label:Object(c.__)("Search for blocks and patterns"),placeholder:Object(c.__)("Search")}),!!p&&Object(o.createElement)(T.a,{filterValue:p,onSelect:s,onHover:I,rootClientId:e,clientId:t,isAppender:n,__experimentalInsertionIndex:l,showBlockDirectory:!0,shouldFocusBlock:m}),!p&&(E||C)&&Object(o.createElement)(A,{showPatterns:E,showReusableBlocks:C},F),!p&&!E&&!C&&R)),u&&g&&Object(o.createElement)(b,{item:g}))}},function(e,t,n){"use strict";var o=n(7),r=n(0),c=n(2),i=n(1),l=n(3),a=n(4),s=n(201),u=n(8),d=n(27),b=n(9),m=n(185),p=n(13);function f({clientIds:e,children:t,__experimentalUpdateSelection:n}){const{canInsertBlockType:o,getBlockRootClientId:r,getBlocksByClientId:i,getTemplateLock:l}=Object(a.useSelect)(e=>e(p.a),[]),{getDefaultBlockName:s,getGroupingBlockName:d}=Object(a.useSelect)(e=>e(u.store),[]),b=i(e),f=r(e[0]),g=Object(c.every)(b,e=>!!e&&Object(u.hasBlockSupport)(e.name,"multiple",!0)&&o(e.name,f)),h=o(s(),f),{removeBlocks:O,replaceBlocks:j,duplicateBlocks:v,insertAfterBlock:k,insertBeforeBlock:_,flashBlock:y,setBlockMovingClientId:E,setNavigationMode:C,selectBlock:S}=Object(a.useDispatch)(p.a),w=Object(m.c)();return t({canDuplicate:g,canInsertDefaultBlock:h,isLocked:!!l(f),rootClientId:f,blocks:b,onDuplicate:()=>v(e,n),onRemove:()=>O(e,n),onInsertBefore(){_(Object(c.first)(Object(c.castArray)(e)))},onInsertAfter(){k(Object(c.last)(Object(c.castArray)(e)))},onMoveTo(){C(!0),S(e[0]),E(e[0])},onGroup(){if(!b.length)return;const t=d(),n=Object(u.switchToBlockType)(b,t);n&&j(e,n)},onUngroup(){if(!b.length)return;const t=b[0].innerBlocks;t.length&&j(e,t)},onCopy(){const e=b.map(({clientId:e})=>e);1===b.length&&y(e[0]),w("copy",e)}})}var g=Object(b.compose)([Object(a.withSelect)((e,{clientId:t})=>{const{getBlock:n,getBlockMode:o,getSettings:r}=e(p.a),c=n(t),i=r().codeEditingEnabled;return{mode:o(t),blockType:c?Object(u.getBlockType)(c.name):null,isCodeEditingEnabled:i}}),Object(a.withDispatch)((e,{onToggle:t=c.noop,clientId:n})=>({onToggleMode(){e(p.a).toggleBlockMode(n),t()}}))])((function({blockType:e,mode:t,onToggleMode:n,small:o=!1,isCodeEditingEnabled:c=!0}){if(!Object(u.hasBlockSupport)(e,"html",!0)||!c)return null;const a="visual"===t?Object(i.__)("Edit as HTML"):Object(i.__)("Edit visually");return Object(r.createElement)(l.MenuItem,{onClick:n},!o&&a)})),h=Object(b.compose)(Object(a.withSelect)((e,{clientId:t})=>{const n=e(p.a).getBlock(t);return{block:n,shouldRender:n&&"core/html"===n.name}}),Object(a.withDispatch)((e,{block:t})=>({onClick:()=>e(p.a).replaceBlocks(t.clientId,Object(u.rawHandler)({HTML:Object(u.getBlockContent)(t)}))})))((function({shouldRender:e,onClick:t,small:n}){if(!e)return null;const o=Object(i.__)("Convert to Blocks");return Object(r.createElement)(l.MenuItem,{onClick:t},!n&&o)})),O=n(213),j=n(220);const v={className:"block-editor-block-settings-menu__popover",position:"bottom right",isAlternate:!0};function k({blocks:e,onCopy:t}){const n=Object(b.useCopyToClipboard)(()=>Object(u.serialize)(e),t);return Object(r.createElement)(l.MenuItem,{ref:n},Object(i.__)("Copy"))}t.a=function({clientIds:e,__experimentalSelectBlock:t,children:n,...u}){const b=Object(c.castArray)(e),m=b.length,_=b[0],y=Object(a.useSelect)(e=>1===e(p.a).getBlockCount(),[]),E=Object(a.useSelect)(e=>{const{getShortcutRepresentation:t}=e(d.store);return{duplicate:t("core/block-editor/duplicate"),remove:t("core/block-editor/remove"),insertAfter:t("core/block-editor/insert-after"),insertBefore:t("core/block-editor/insert-before")}},[]),C=Object(r.useCallback)(t?async e=>{const n=await e;n&&n[0]&&t(n[0])}:c.noop,[t]),S=1===m?Object(i.__)("Remove block"):Object(i.__)("Remove blocks");return Object(r.createElement)(f,{clientIds:e,__experimentalUpdateSelection:!t},({canDuplicate:t,canInsertDefaultBlock:a,isLocked:d,onDuplicate:b,onInsertAfter:p,onInsertBefore:f,onRemove:w,onCopy:B,onMoveTo:I,blocks:x})=>Object(r.createElement)(l.DropdownMenu,Object(o.a)({icon:s.a,label:Object(i.__)("Options"),className:"block-editor-block-settings-menu",popoverProps:v,noIcons:!0},u),({onClose:o})=>Object(r.createElement)(r.Fragment,null,Object(r.createElement)(l.MenuGroup,null,Object(r.createElement)(O.a.Slot,{fillProps:{onClose:o}}),1===m&&Object(r.createElement)(h,{clientId:_}),Object(r.createElement)(k,{blocks:x,onCopy:B}),t&&Object(r.createElement)(l.MenuItem,{onClick:Object(c.flow)(o,b,C),shortcut:E.duplicate},Object(i.__)("Duplicate")),a&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)(l.MenuItem,{onClick:Object(c.flow)(o,f),shortcut:E.insertBefore},Object(i.__)("Insert before")),Object(r.createElement)(l.MenuItem,{onClick:Object(c.flow)(o,p),shortcut:E.insertAfter},Object(i.__)("Insert after"))),!d&&!y&&Object(r.createElement)(l.MenuItem,{onClick:Object(c.flow)(o,I)},Object(i.__)("Move to")),1===m&&Object(r.createElement)(g,{clientId:_,onToggle:o})),Object(r.createElement)(j.a.Slot,{fillProps:{onClose:o},clientIds:e}),"function"==typeof n?n({onClose:o}):r.Children.map(e=>Object(r.cloneElement)(e,{onClose:o})),Object(r.createElement)(l.MenuGroup,null,!d&&Object(r.createElement)(l.MenuItem,{onClick:Object(c.flow)(o,w,C),shortcut:E.remove},S)))))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return T}));var o=n(0),r=n(2),c=n(10),i=n.n(c),l=n(8),a=n(3),s=n(4),u=n(27),d=n(9),b=n(24),m=n(7),p=n(361),f=n(14),g=n(33),h=n(1),O=n(101),j=n(55),v=n(13),k=n(169),_=n(86),y=function({clientId:e,rootClientId:t,blockElement:n}){const r=Object(_.a)(e),c=Object(s.useSelect)(n=>{var o;const{__unstableGetBlockWithoutInnerBlocks:r,getBlockIndex:c,hasBlockMovingClientId:i,getBlockListSettings:l}=n(v.a),a=c(e,t),{name:s,attributes:u}=r(e);return{index:a,name:s,attributes:u,blockMovingMode:i(),orientation:null===(o=l(t))||void 0===o?void 0:o.orientation}},[e,t]),{index:u,name:d,attributes:y,blockMovingMode:E,orientation:C}=c,{setNavigationMode:S,removeBlock:w}=Object(s.useDispatch)(v.a),B=Object(o.useRef)();Object(o.useEffect)(()=>{B.current.focus(),window.navigator.platform.indexOf("Win")>-1&&Object(g.speak)(z)},[]);const{hasBlockMovingClientId:I,getBlockIndex:x,getBlockRootClientId:T,getClientIdsOfDescendants:N,getSelectedBlockClientId:L,getMultiSelectedBlocksEndClientId:R,getPreviousBlockClientId:P,getNextBlockClientId:A}=Object(s.useSelect)(v.a),{selectBlock:M,clearSelectedBlock:D,setBlockMovingClientId:F,moveBlockToPosition:V}=Object(s.useDispatch)(v.a),H=Object(l.getBlockType)(d),z=Object(l.__experimentalGetAccessibleBlockLabel)(H,y,u+1,C),U=i()("block-editor-block-list__block-selection-button",{"is-block-moving-mode":!!E}),G=Object(h.__)("Drag");return Object(o.createElement)("div",{className:U},Object(o.createElement)(a.Flex,{justify:"center",className:"block-editor-block-list__block-selection-button__content"},Object(o.createElement)(a.FlexItem,null,Object(o.createElement)(j.a,{icon:null==r?void 0:r.icon,showColors:!0})),Object(o.createElement)(a.FlexItem,null,Object(o.createElement)(k.a,{clientIds:[e]},e=>Object(o.createElement)(a.Button,Object(m.a)({icon:p.a,className:"block-selection-button_drag-handle","aria-hidden":"true",label:G,tabIndex:"-1"},e)))),Object(o.createElement)(a.FlexItem,null,Object(o.createElement)(a.Button,{ref:B,onClick:()=>S(!1),onKeyDown:function(t){const{keyCode:o}=t,r=o===f.UP,c=o===f.DOWN,i=o===f.LEFT,l=o===f.RIGHT,a=o===f.TAB,s=o===f.ESCAPE,u=o===f.ENTER,d=o===f.SPACE,m=t.shiftKey;if(o===f.BACKSPACE||o===f.DELETE)return w(e),void t.preventDefault();const p=L(),g=R(),h=P(g||p),O=A(g||p),j=a&&m||r,v=a&&!m||c,k=i,_=l;let y;if(j)y=h;else if(v)y=O;else if(k){var E;y=null!==(E=T(p))&&void 0!==E?E:p}else if(_){var C;y=null!==(C=N([p])[0])&&void 0!==C?C:p}const S=I();if(s&&S&&!t.defaultPrevented&&(F(null),t.preventDefault()),(u||d)&&S){const e=T(S),t=T(p),n=x(S,e);let o=x(p,t);n<o&&e===t&&(o-=1),V(S,e,t,o),M(S),F(null)}if(v||j||k||_)if(y)t.preventDefault(),M(y);else if(a&&p){let e;v?(e=b.focus.tabbable.findNext(n),e||(e=n.ownerDocument.defaultView.frameElement,e=b.focus.tabbable.findNext(e))):e=b.focus.tabbable.findPrevious(n),e&&(t.preventDefault(),e.focus(),D())}},label:z,className:"block-selection-button_select-button"},Object(o.createElement)(O.a,{clientId:e})))))},E=n(232),C=n(90),S=n(73),w=n(160);function B(e){const{isNavigationMode:t,isMultiSelecting:n,hasMultiSelection:o,isTyping:r,isCaretWithinFormattedText:c,getSettings:i,getLastMultiSelectedBlockClientId:l}=e(v.a);return{isNavigationMode:t(),isMultiSelecting:n(),isTyping:r(),isCaretWithinFormattedText:c(),hasMultiSelection:o(),hasFixedToolbar:i().hasFixedToolbar,lastClientId:l()}}function I({clientId:e,rootClientId:t,isValid:n,isEmptyDefaultBlock:r,capturingClientId:c,__unstablePopoverSlot:l,__unstableContentRef:m}){const{isNavigationMode:p,isMultiSelecting:f,isTyping:g,isCaretWithinFormattedText:h,hasMultiSelection:O,hasFixedToolbar:j,lastClientId:k}=Object(s.useSelect)(B,[]),_=Object(s.useSelect)(t=>{const{isBlockInsertionPointVisible:n,getBlockInsertionPoint:o,getBlockOrder:r}=t(v.a);if(!n())return!1;const c=o();return r(c.rootClientId)[c.index]===e},[e]),I=Object(d.useViewportMatch)("medium"),[x,T]=Object(o.useState)(!1),[N,L]=Object(o.useState)(!1),{stopTyping:R}=Object(s.useDispatch)(v.a),P=!g&&!p&&r&&n,A=p,M=!p&&!j&&I&&!P&&!f&&(!g||h),D=!(p||M||j||r);Object(u.useShortcut)("core/block-editor/focus-toolbar",Object(o.useCallback)(()=>{T(!0),R(!0)},[]),{bindGlobal:!0,eventName:"keydown",isDisabled:!D}),Object(o.useEffect)(()=>{M||T(!1)},[M]);const F=Object(o.useRef)(),V=Object(S.a)(e),H=Object(S.a)(k),z=Object(S.a)(c),U=Object(w.a)(m);if(!(A||M||x||P))return null;let G=V;if(!G)return null;c&&(G=z);let W=G;if(O){if(!H)return null;W={top:G,bottom:H}}const K=P?"top left right":"top right left",{ownerDocument:$}=G,q=P?void 0:$.defaultView.frameElement||Object(b.getScrollContainer)(G)||$.body;return Object(o.createElement)(a.Popover,{ref:U,noArrow:!0,animate:!1,position:K,focusOnMount:!1,anchorRef:W,className:i()("block-editor-block-list__block-popover",{"is-insertion-point-visible":_}),__unstableStickyBoundaryElement:q,__unstableSlotName:l||null,__unstableBoundaryParent:!0,__unstableObserveElement:G,shouldAnchorIncludePadding:!0},(M||x)&&Object(o.createElement)("div",{onFocus:function(){L(!0)},onBlur:function(){L(!1)},tabIndex:-1,className:i()("block-editor-block-list__block-popover-inserter",{"is-visible":N})},Object(o.createElement)(C.a,{clientId:e,rootClientId:t,__experimentalIsQuick:!0})),(M||x)&&Object(o.createElement)(E.a,{focusOnMount:x,__experimentalInitialIndex:F.current,__experimentalOnIndexChange:e=>{F.current=e},key:e}),A&&Object(o.createElement)(y,{clientId:e,rootClientId:t,blockElement:G}),P&&Object(o.createElement)("div",{className:"block-editor-block-list__empty-block-inserter"},Object(o.createElement)(C.a,{position:"bottom right",rootClientId:t,clientId:e,__experimentalIsQuick:!0})))}function x(e){const{getSelectedBlockClientId:t,getFirstMultiSelectedBlockClientId:n,getBlockRootClientId:o,__unstableGetBlockWithoutInnerBlocks:c,getBlockParents:i,__experimentalGetBlockListSettingsForBlocks:a}=e(v.a),s=t()||n();if(!s)return;const{name:u,attributes:d={},isValid:b}=c(s)||{},m=i(s),p=a(m),f=Object(r.find)(m,e=>{var t;return null===(t=p[e])||void 0===t?void 0:t.__experimentalCaptureToolbars});return{clientId:s,rootClientId:o(s),name:u,isValid:b,isEmptyDefaultBlock:u&&Object(l.isUnmodifiedDefaultBlock)({name:u,attributes:d}),capturingClientId:f}}function T({__unstablePopoverSlot:e,__unstableContentRef:t}){const n=Object(s.useSelect)(x,[]);if(!n)return null;const{clientId:r,rootClientId:c,name:i,isValid:l,isEmptyDefaultBlock:a,capturingClientId:u}=n;return i?Object(o.createElement)(I,{clientId:r,rootClientId:c,isValid:l,isEmptyDefaultBlock:a,capturingClientId:u,__unstablePopoverSlot:e,__unstableContentRef:t}):null}},function(e,t,n){"use strict";var o=n(0),r=n(2),c=n(10),i=n.n(c),l=n(4),a=n(14),s=n(1),u=n(8),d=n(193),b=n.n(d),m=n(79),p=n(13);const f={};function g({genericPreviewBlock:e,style:t,isActive:n,onBlur:r,onHover:c,onSelect:l,styleClassName:s,itemRole:u}){const d=Object(o.useMemo)(()=>({...e,attributes:{...e.attributes,className:s}}),[e,s]);return Object(o.createElement)("div",{key:t.name,className:i()("block-editor-block-styles__item",{"is-active":n}),onClick:()=>l(),onKeyDown:e=>{a.ENTER!==e.keyCode&&a.SPACE!==e.keyCode||(e.preventDefault(),l())},onMouseEnter:c,onMouseLeave:r,role:u||"button",tabIndex:"0","aria-label":t.label||t.name},Object(o.createElement)("div",{className:"block-editor-block-styles__item-preview"},Object(o.createElement)(m.a,{viewportWidth:500,blocks:d})),Object(o.createElement)("div",{className:"block-editor-block-styles__item-label"},t.label||t.name))}t.a=function({clientId:e,onSwitch:t=r.noop,onHoverClassName:n=r.noop,itemRole:c}){const{styles:i,block:a,type:d,className:m}=Object(l.useSelect)(t=>{const{getBlock:n}=t(p.a),o=n(e);if(!o)return f;const r=Object(u.getBlockType)(o.name),{getBlockStyles:c}=t(u.store);return{block:o,type:r,styles:c(o.name),className:o.attributes.className||""}},[e]),{updateBlockAttributes:h}=Object(l.useDispatch)(p.a),O=function(e,t){return Object(o.useMemo)(()=>{const n=null==t?void 0:t.example,o=null==t?void 0:t.name;return n&&o?Object(u.getBlockFromExample)(o,{attributes:n.attributes,innerBlocks:n.innerBlocks}):e?Object(u.cloneBlock)(e):void 0},[null!=t&&t.example?null==e?void 0:e.name:e,t])}(a,d);if(!i||0===i.length)return null;const j=Object(r.find)(i,"isDefault")?i:[{name:"default",label:Object(s._x)("Default","block style"),isDefault:!0},...i],v=function(e,t){for(const n of new b.a(t).values()){if(-1===n.indexOf("is-style-"))continue;const t=n.substring(9),o=Object(r.find)(e,{name:t});if(o)return o}return Object(r.find)(e,"isDefault")}(j,m);return Object(o.createElement)("div",{className:"block-editor-block-styles"},j.map(r=>{const i=function(e,t,n){const o=new b.a(e);return t&&o.remove("is-style-"+t.name),o.add("is-style-"+n.name),o.value}(m,v,r);return Object(o.createElement)(g,{genericPreviewBlock:O,className:m,isActive:v===r,key:r.name,onSelect:()=>{h(e,{className:i}),n(null),t()},onBlur:()=>n(null),onHover:()=>n(i),style:r,styleClassName:i,itemRole:c})}))}},,function(e,t,n){"use strict";var o=n(0),r=n(6);const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M15.6 7.2H14v1.5h1.6c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.8 0 5.2-2.3 5.2-5.2 0-2.9-2.3-5.2-5.2-5.2zM4.7 12.4c0-2 1.7-3.7 3.7-3.7H10V7.2H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H10v-1.5H8.4c-2 0-3.7-1.7-3.7-3.7zm4.6.9h5.3v-1.5H9.3v1.5z"}));t.a=c},function(e,t,n){"use strict";var o=n(0),r=n(6);const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M15.6 7.3h-.7l1.6-3.5-.9-.4-3.9 8.5H9v1.5h2l-1.3 2.8H8.4c-2 0-3.7-1.7-3.7-3.7s1.7-3.7 3.7-3.7H10V7.3H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H9l-1.4 3.2.9.4 5.7-12.5h1.4c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.9 0 5.2-2.3 5.2-5.2 0-2.9-2.4-5.2-5.2-5.2z"}));t.a=c},function(e,t,n){"use strict";var o=n(0),r=n(6);const c=Object(o.createElement)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)(r.Path,{d:"M13.8 5.2H3v1.5h10.8V5.2zm-3.6 12v1.5H21v-1.5H10.2zm7.2-6H6.6v1.5h10.8v-1.5z"}));t.a=c},function(e,t){e.exports=function(e,t){if(null==e)return{};var n,o,r={},c=Object.keys(e);for(o=0;o<c.length;o++)n=c[o],t.indexOf(n)>=0||(r[n]=e[n]);return r},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){var o=n(251);e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,o(e,t)},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){function n(t,o){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,o)}e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},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},function(e,t,n){"use strict";var o=n(254);e.exports=function(e,t,n){n=n||{},9===t.nodeType&&(t=o.getWindow(t));var r=n.allowHorizontalScroll,c=n.onlyScrollIfNeeded,i=n.alignWithTop,l=n.alignWithLeft,a=n.offsetTop||0,s=n.offsetLeft||0,u=n.offsetBottom||0,d=n.offsetRight||0;r=void 0===r||r;var b=o.isWindow(t),m=!(!b||!t.frameElement),p=o.offset(e),f=o.outerHeight(e),g=o.outerWidth(e),h=void 0,O=void 0,j=void 0,v=void 0,k=void 0,_=void 0,y=void 0,E=void 0,C=void 0,S=void 0;m&&(t=t.document.scrollingElement||t.document.body),b||m?(y=t,S=o.height(y),C=o.width(y),E={left:o.scrollLeft(y),top:o.scrollTop(y)},k={left:p.left-E.left-s,top:p.top-E.top-a},_={left:p.left+g-(E.left+C)+d,top:p.top+f-(E.top+S)+u},v=E):(h=o.offset(t),O=t.clientHeight,j=t.clientWidth,v={left:t.scrollLeft,top:t.scrollTop},k={left:p.left-(h.left+(parseFloat(o.css(t,"borderLeftWidth"))||0))-s,top:p.top-(h.top+(parseFloat(o.css(t,"borderTopWidth"))||0))-a},_={left:p.left+g-(h.left+j+(parseFloat(o.css(t,"borderRightWidth"))||0))+d,top:p.top+f-(h.top+O+(parseFloat(o.css(t,"borderBottomWidth"))||0))+u}),k.top<0||_.top>0?!0===i?o.scrollTop(t,v.top+k.top):!1===i?o.scrollTop(t,v.top+_.top):k.top<0?o.scrollTop(t,v.top+k.top):o.scrollTop(t,v.top+_.top):c||((i=void 0===i||!!i)?o.scrollTop(t,v.top+k.top):o.scrollTop(t,v.top+_.top)),r&&(k.left<0||_.left>0?!0===l?o.scrollLeft(t,v.left+k.left):!1===l?o.scrollLeft(t,v.left+_.left):k.left<0?o.scrollLeft(t,v.left+k.left):o.scrollLeft(t,v.left+_.left):c||((l=void 0===l||!!l)?o.scrollLeft(t,v.left+k.left):o.scrollLeft(t,v.left+_.left)))}},function(e,t,n){"use strict";var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};function c(e,t){var n=e["page"+(t?"Y":"X")+"Offset"],o="scroll"+(t?"Top":"Left");if("number"!=typeof n){var r=e.document;"number"!=typeof(n=r.documentElement[o])&&(n=r.body[o])}return n}function i(e){return c(e)}function l(e){return c(e,!0)}function a(e){var t=function(e){var t,n=void 0,o=void 0,r=e.ownerDocument,c=r.body,i=r&&r.documentElement;return n=(t=e.getBoundingClientRect()).left,o=t.top,{left:n-=i.clientLeft||c.clientLeft||0,top:o-=i.clientTop||c.clientTop||0}}(e),n=e.ownerDocument,o=n.defaultView||n.parentWindow;return t.left+=i(o),t.top+=l(o),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 m(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 o="",r=e.ownerDocument,c=n||r.defaultView.getComputedStyle(e,null);return c&&(o=c.getPropertyValue(t)||c[t]),o}:function(e,t){var n=e.currentStyle&&e.currentStyle[t];if(s.test(n)&&!u.test(t)){var o=e.style,r=o[d],c=e.runtimeStyle[d];e.runtimeStyle[d]=e.currentStyle[d],o[d]="fontSize"===t?"1em":n||0,n=o.pixelLeft+"px",o[d]=r,e.runtimeStyle[d]=c}return""===n?"auto":n});var f=["margin","border","padding"];function g(e,t,n){var o={},r=e.style,c=void 0;for(c in t)t.hasOwnProperty(c)&&(o[c]=r[c],r[c]=t[c]);for(c in n.call(e),t)t.hasOwnProperty(c)&&(r[c]=o[c])}function h(e,t,n){var o=0,r=void 0,c=void 0,i=void 0;for(c=0;c<t.length;c++)if(r=t[c])for(i=0;i<n.length;i++){var l;l="border"===r?r+n[i]+"Width":r+n[i],o+=parseFloat(b(e,l))||0}return o}function O(e){return null!=e&&e==e.window}var j={};function v(e,t,n){if(O(e))return"width"===t?j.viewportWidth(e):j.viewportHeight(e);if(9===e.nodeType)return"width"===t?j.docWidth(e):j.docHeight(e);var o="width"===t?["Left","Right"]:["Top","Bottom"],r="width"===t?e.offsetWidth:e.offsetHeight,c=(b(e),p(e)),i=0;(null==r||r<=0)&&(r=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 l=void 0!==r||c,a=r||i;if(-1===n)return l?a-h(e,["border","padding"],o):i;if(l){var s=2===n?-h(e,["border"],o):h(e,["margin"],o);return a+(1===n?0:s)}return i+h(e,f.slice(n),o)}m(["Width","Height"],(function(e){j["doc"+e]=function(t){var n=t.document;return Math.max(n.documentElement["scroll"+e],n.body["scroll"+e],j["viewport"+e](n))},j["viewport"+e]=function(t){var n="client"+e,o=t.document,r=o.body,c=o.documentElement[n];return"CSS1Compat"===o.compatMode&&c||r&&r[n]||c}}));var k={position:"absolute",visibility:"hidden",display:"block"};function _(e){var t=void 0,n=arguments;return 0!==e.offsetWidth?t=v.apply(void 0,n):g(e,k,(function(){t=v.apply(void 0,n)})),t}function y(e,t,n){var o=n;if("object"!==(void 0===t?"undefined":r(t)))return void 0!==o?("number"==typeof o&&(o+="px"),void(e.style[t]=o)):b(e,t);for(var c in t)t.hasOwnProperty(c)&&y(e,c,t[c])}m(["width","height"],(function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);j["outer"+t]=function(t,n){return t&&_(t,e,n?0:1)};var n="width"===e?["Left","Right"]:["Top","Bottom"];j[e]=function(t,o){return void 0===o?t&&_(t,e,-1):t?(b(t),p(t)&&(o+=h(t,["padding","border"],n)),y(t,e,o)):void 0}})),e.exports=o({getWindow:function(e){var t=e.ownerDocument||e;return t.defaultView||t.parentWindow},offset:function(e,t){if(void 0===t)return a(e);!function(e,t){"static"===y(e,"position")&&(e.style.position="relative");var n=a(e),o={},r=void 0,c=void 0;for(c in t)t.hasOwnProperty(c)&&(r=parseFloat(y(e,c))||0,o[c]=r+t[c]-n[c]);y(e,o)}(e,t)},isWindow:O,each:m,css:y,clone:function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);if(e.overflow)for(var n in e)e.hasOwnProperty(n)&&(t.overflow[n]=e.overflow[n]);return t},scrollLeft:function(e,t){if(O(e)){if(void 0===t)return i(e);window.scrollTo(t,l(e))}else{if(void 0===t)return e.scrollLeft;e.scrollLeft=t}},scrollTop:function(e,t){if(O(e)){if(void 0===t)return l(e);window.scrollTo(i(e),t)}else{if(void 0===t)return e.scrollTop;e.scrollTop=t}},viewportWidth:0,viewportHeight:0},j)},function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function __(){this.constructor=e}o(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,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i=this&&this.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&(n[o[r]]=e[o[r]])}return n};t.__esModule=!0;var l=n(11),a=n(25),s=n(256),u=n(257),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={lineHeight:null},t.textarea=null,t.onResize=function(e){t.props.onResize&&t.props.onResize(e)},t.updateLineHeight=function(){t.textarea&&t.setState({lineHeight:u(t.textarea)})},t.onChange=function(e){var n=t.props.onChange;t.currentValue=e.currentTarget.value,n&&n(e)},t}return r(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props,n=t.maxRows,o=t.async;"number"==typeof n&&this.updateLineHeight(),"number"==typeof n||o?setTimeout((function(){return e.textarea&&s(e.textarea)})):this.textarea&&s(this.textarea),this.textarea&&this.textarea.addEventListener("autosize:resized",this.onResize)},t.prototype.componentWillUnmount=function(){this.textarea&&(this.textarea.removeEventListener("autosize:resized",this.onResize),s.destroy(this.textarea))},t.prototype.render=function(){var e=this,t=this.props,n=(t.onResize,t.maxRows),o=(t.onChange,t.style),r=(t.innerRef,t.children),a=i(t,["onResize","maxRows","onChange","style","innerRef","children"]),s=this.state.lineHeight,u=n&&s?s*n:null;return l.createElement("textarea",c({},a,{onChange:this.onChange,style:u?c({},o,{maxHeight:u}):o,ref:function(t){e.textarea=t,"function"==typeof e.props.innerRef?e.props.innerRef(t):e.props.innerRef&&(e.props.innerRef.current=t)}}),r)},t.prototype.componentDidUpdate=function(){this.textarea&&s.update(this.textarea)},t.defaultProps={rows:1,async:!1},t.propTypes={rows:a.number,maxRows:a.number,onResize:a.func,innerRef:a.any,async:a.bool},t}(l.Component);t.TextareaAutosize=l.forwardRef((function(e,t){return l.createElement(d,c({},e,{innerRef:t}))}))},function(e,t,n){var o,r;void 0===(r="function"==typeof(o=function(e,t){"use strict";var n,o,r="function"==typeof Map?new Map:(n=[],o=[],{has:function(e){return n.indexOf(e)>-1},get:function(e){return o[n.indexOf(e)]},set:function(e,t){-1===n.indexOf(e)&&(n.push(e),o.push(t))},delete:function(e){var t=n.indexOf(e);t>-1&&(n.splice(t,1),o.splice(t,1))}}),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=r.get(e);t&&t.destroy()}function l(e){var t=r.get(e);t&&t.update()}var a=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?((a=function(e){return e}).destroy=function(e){return e},a.update=function(e){return e}):((a=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&&!r.has(e)){var t,n=null,o=null,i=null,l=function(){e.clientWidth!==o&&d()},a=function(t){window.removeEventListener("resize",l,!1),e.removeEventListener("input",d,!1),e.removeEventListener("keyup",d,!1),e.removeEventListener("autosize:destroy",a,!1),e.removeEventListener("autosize:update",d,!1),Object.keys(t).forEach((function(n){e.style[n]=t[n]})),r.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",a,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",d,!1),window.addEventListener("resize",l,!1),e.addEventListener("input",d,!1),e.addEventListener("autosize:update",d,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",r.set(e,{destroy:a,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),r=document.documentElement&&document.documentElement.scrollTop;e.style.height="",e.style.height=e.scrollHeight+n+"px",o=e.clientWidth,t.forEach((function(e){e.node.scrollTop=e.scrollTop})),r&&(document.documentElement.scrollTop=r)}}function d(){u();var t=Math.round(parseFloat(e.style.height)),n=window.getComputedStyle(e,null),o="content-box"===n.boxSizing?Math.round(parseFloat(n.height)):e.offsetHeight;if(o<t?"hidden"===n.overflowY&&(s("scroll"),u(),o="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight):"hidden"!==n.overflowY&&(s("hidden"),u(),o="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight),i!==o){i=o;var r=c("autosize:resized");try{e.dispatchEvent(r)}catch(e){}}}}(e)})),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],i),e},a.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],l),e}),t.default=a,e.exports=t.default})?o.apply(t,[e,t]):o)||(e.exports=r)},function(e,t,n){var o=n(258);e.exports=function(e){var t=o(e,"line-height"),n=parseFloat(t,10);if(t===n+""){var r=e.style.lineHeight;e.style.lineHeight=t+"em",t=o(e,"line-height"),n=parseFloat(t,10),r?e.style.lineHeight=r: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 l=o(e,"font-size");i.style.fontSize=l,i.style.padding="0px",i.style.border="0px";var a=document.body;a.appendChild(i),n=i.offsetHeight,a.removeChild(i)}return n}},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()}))]}},function(e,t,n){"use strict";var o=n(0),r=n(6);const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"}));t.a=c},,,,,,,,,,,,function(e,t,n){"use strict";var o=n(0),r=n(6),c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M20.1 5.1L16.9 2 6.2 12.7l-1.3 4.4 4.5-1.3L20.1 5.1zM4 20.8h8v-1.5H4v1.5z"}));t.a=c},,,,,,,,,,,,,function(e,t,n){"use strict";var o=n(7),r=n(0),c=n(1),i=n(33);t.a=Object(r.forwardRef)((function(e,t){const[n,l]=Object(r.useState)(!1);return Object(r.useEffect)(()=>{n&&Object(i.speak)(Object(c.__)("Use left and right arrow keys to move through blocks"))},[n]),Object(r.createElement)("div",Object(o.a)({ref:t,role:"listbox","aria-orientation":"horizontal",onFocus:()=>{l(!0)},onBlur:e=>{!e.currentTarget.contains(e.relatedTarget)&&l(!1)}},e))}))},function(e,t,n){"use strict";var o=n(7),r=n(0),c=n(3),i=n(163);t.a=Object(r.forwardRef)((function(e,t){const n=Object(r.useContext)(i.a);return Object(r.createElement)(c.__unstableCompositeGroup,Object(o.a)({state:n,role:"presentation",ref:t},e))}))},function(e,t,n){"use strict";var o=n(7),r=n(0),c=n(3),i=n(163);t.a=Object(r.forwardRef)((function({isFirst:e,as:t,children:n,...l},a){const s=Object(r.useContext)(i.a);return Object(r.createElement)(c.__unstableCompositeItem,Object(o.a)({ref:a,state:s,role:"option",focusable:!0},l),o=>{const i={...o,tabIndex:e?0:o.tabIndex};return t?Object(r.createElement)(t,i,n):"function"==typeof n?n(i):Object(r.createElement)(c.Button,i,n)})}))},function(e,t,n){"use strict";var o=n(0),r=n(6);const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"}));t.a=c},function(e,t,n){"use strict";var o=n(0),r=n(6);const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"}));t.a=c},function(e,t,n){"use strict";var o=n(0),r=n(6);const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(o.createElement)(r.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},function(e,t,n){"use strict";var o=n(0),r=n(6);const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M18.5 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},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var o=n(2),r=n(0),c=n(24),i=n(4),l=n(134),a=n(13);function s(e){const t=Object(r.useRef)(),n=function(e){return Object(i.useSelect)(t=>{const{getSelectedBlocksInitialCaretPosition:n,isMultiSelecting:o,isNavigationMode:r,isBlockSelected:c}=t(a.a);if(c(e)&&!o()&&!r())return n()},[e])}(e);return Object(r.useEffect)(()=>{if(null==n)return;if(!t.current)return;const{ownerDocument:e}=t.current;if(t.current.contains(e.activeElement))return;const r=c.focus.tabbable.find(t.current).filter(e=>Object(c.isTextField)(e)),i=-1===n,a=(i?o.last:o.first)(r)||t.current;Object(l.c)(t.current,a)?Object(c.placeCaretAtHorizontalEdge)(a,i):t.current.focus()},[n]),t}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var o=n(145),r=n.n(o),c=n(0),i=n(4),l=n(24),a=n(13);function s(e){const t=Object(c.useRef)(),n=Object(i.useSelect)(t=>{const{isBlockSelected:n,getBlockSelectionEnd:o}=t(a.a);return n(e)||o()===e},[e]);return Object(c.useEffect)(()=>{if(!n)return;const e=t.current;if(!e)return;if(e.contains(e.ownerDocument.activeElement))return;const o=Object(l.getScrollContainer)(e)||e.ownerDocument.defaultView;o&&r()(e,o,{onlyScrollIfNeeded:!0})},[n]),t}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var o=n(4),r=n(9),c=n(134),i=n(13);function l(e){const{isBlockSelected:t}=Object(o.useSelect)(i.a),{selectBlock:n,selectionChange:l}=Object(o.useDispatch)(i.a);return Object(r.useRefEffect)(o=>{function r(r){t(e)?r.target.isContentEditable||l(e):Object(c.c)(o,r.target)&&n(e)}return o.addEventListener("focusin",r),()=>{o.removeEventListener("focusin",r)}},[t,n])}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var o=n(4),r=n(9),c=n(13),i=n(134);function l(e,t){Array.from(e.closest(".is-root-container").querySelectorAll(".rich-text")).forEach(e=>{t?e.setAttribute("contenteditable",!0):e.removeAttribute("contenteditable")})}function a(e){const{startMultiSelect:t,stopMultiSelect:n,multiSelect:a,selectBlock:s}=Object(o.useDispatch)(c.a),{isSelectionEnabled:u,isBlockSelected:d,getBlockParents:b,getBlockSelectionStart:m,hasMultiSelection:p}=Object(o.useSelect)(c.a);return Object(r.useRefEffect)(o=>{const{ownerDocument:r}=o,{defaultView:c}=r;let f,g;function h({isSelectionEnd:t}){const n=c.getSelection();if(!n.rangeCount||n.isCollapsed)return void l(o,!0);const r=Object(i.a)(n.focusNode);if(e===r){if(s(e),t&&(l(o,!0),n.rangeCount)){const{commonAncestorContainer:e}=n.getRangeAt(0);f.contains(e)&&f.focus()}}else{const t=[...b(e),e],n=[...b(r),r],o=Math.min(t.length,n.length)-1;a(t[o],n[o])}}function O(){r.removeEventListener("selectionchange",h),c.removeEventListener("mouseup",O),g=c.requestAnimationFrame(()=>{h({isSelectionEnd:!0}),n()})}function j({buttons:n}){1===n&&u()&&d(e)&&(f=r.activeElement,t(),r.addEventListener("selectionchange",h),c.addEventListener("mouseup",O),l(o,!1))}function v(t){if(u()&&0===t.button)if(t.shiftKey){const n=m();n!==e&&(l(o,!1),a(n,e),t.preventDefault())}else p()&&s(e)}return o.addEventListener("mousedown",v),o.addEventListener("mouseleave",j),()=>{o.removeEventListener("mousedown",v),o.removeEventListener("mouseleave",j),r.removeEventListener("selectionchange",h),c.removeEventListener("mouseup",O),c.cancelAnimationFrame(g)}},[e,t,n,a,s,u,d,b])}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var o=n(24),r=n(14),c=n(4),i=n(9),l=n(13);function a(e){const t=Object(c.useSelect)(t=>t(l.a).isBlockSelected(e),[e]),{getBlockRootClientId:n,getBlockIndex:a}=Object(c.useSelect)(l.a),{insertDefaultBlock:s,removeBlock:u}=Object(c.useDispatch)(l.a);return Object(i.useRefEffect)(c=>{if(t)return c.addEventListener("keydown",i),c.addEventListener("dragstart",l),()=>{c.removeEventListener("keydown",i),c.removeEventListener("dragstart",l)};function i(t){const{keyCode:i,target:l}=t;i!==r.ENTER&&i!==r.BACKSPACE&&i!==r.DELETE||l!==c||Object(o.isTextField)(l)||(t.preventDefault(),i===r.ENTER?s({},n(e),a(e)+1):u(e))}function l(e){e.preventDefault()}},[e,t,n,a,s,u])}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n(4),r=n(9),c=n(13);function i(e){const{isNavigationMode:t,isBlockSelected:n}=Object(o.useSelect)(c.a),{setNavigationMode:i,selectBlock:l}=Object(o.useDispatch)(c.a);return Object(r.useRefEffect)(o=>{function r(o){t()&&!o.defaultPrevented&&(o.preventDefault(),n(e)?i(!1):l(e))}return o.addEventListener("mousedown",r),()=>{o.addEventListener("mousedown",r)}},[e,t,n,i])}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var o=n(4),r=n(9),c=n(13);function i(e){if(e.defaultPrevented)return;const t="mouseover"===e.type?"add":"remove";e.preventDefault(),e.currentTarget.classList[t]("is-hovered")}function l(){const e=Object(o.useSelect)(e=>{const{isNavigationMode:t,getSettings:n}=e(c.a);return t()||n().outlineMode},[]);return Object(r.useRefEffect)(t=>{if(e)return t.addEventListener("mouseout",i),t.addEventListener("mouseover",i),()=>{t.removeEventListener("mouseout",i),t.removeEventListener("mouseover",i),t.classList.remove("is-hovered")}},[e])}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n(9),r=n(0),c=n(105);function i(){const e=Object(r.useContext)(c.b);return Object(o.useRefEffect)(t=>{if(e)return e.observe(t),()=>{e.unobserve(t)}},[e])}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var o=n(10),r=n.n(o),c=n(4),i=n(8),l=n(13);function a(e){return Object(c.useSelect)(t=>{const{isBlockBeingDragged:n,isBlockHighlighted:o,isBlockSelected:c,isBlockMultiSelected:a,getBlockName:s,getSettings:u,hasSelectedInnerBlock:d,isTyping:b,__experimentalGetActiveBlockIdByBlockNames:m}=t(l.a),{__experimentalSpotlightEntityBlocks:p,outlineMode:f}=u(),g=n(e),h=c(e),O=s(e),j=d(e,!0),v=m(p);return r()({"is-selected":h,"is-highlighted":o(e),"is-multi-selected":a(e),"is-reusable":Object(i.isReusableBlock)(Object(i.getBlockType)(O)),"is-dragging":g,"has-child-selected":j,"has-active-entity":v,"is-active-entity":v===e,"remove-outline":h&&f&&b()})},[e])}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n(4),r=n(8),c=n(13);function i(e){return Object(o.useSelect)(t=>{const n=t(c.a).getBlockName(e),o=Object(r.getBlockType)(n);if(o.apiVersion>1||Object(r.hasBlockSupport)(o,"lightBlockWrapper",!1))return Object(r.getBlockDefaultClassName)(n)},[e])}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n(4),r=n(8),c=n(13);function i(e){return Object(o.useSelect)(t=>{const{getBlockName:n,getBlockAttributes:o}=t(c.a),{className:i}=o(e);if(!i)return;const l=Object(r.getBlockType)(n(e));return l.apiVersion>1||Object(r.hasBlockSupport)(l,"lightBlockWrapper",!1)?i:void 0},[e])}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var o=n(10),r=n.n(o),c=n(4),i=n(13);function l(e){return Object(c.useSelect)(t=>{const{hasBlockMovingClientId:n,canInsertBlockType:o,getBlockName:c,getBlockRootClientId:l,isBlockSelected:a}=t(i.a);if(!a(e))return;const s=n();return s?r()("is-block-moving-mode",{"can-insert-moving-block":o(c(s),l(e))}):void 0},[e])}},function(e,t,n){"use strict";var o;Object.defineProperty(t,"__esModule",{value:!0}),t.diffChars=function(e,t,n){return r.diff(e,t,n)},t.characterDiff=void 0;var r=new(((o=n(385))&&o.__esModule?o:{default:o}).default);t.characterDiff=r},function(e,t,n){"use strict";t.match=function(e,t){return a(e).some((function(e){var n=e.inverse,o="all"===e.type||t.type===e.type;if(o&&n||!o&&!n)return!1;var r=e.expressions.every((function(e){var n=e.feature,o=e.modifier,r=e.value,c=t[n];if(!c)return!1;switch(n){case"orientation":case"scan":return c.toLowerCase()===r.toLowerCase();case"width":case"height":case"device-width":case"device-height":r=d(r),c=d(c);break;case"resolution":r=u(r),c=u(c);break;case"aspect-ratio":case"device-aspect-ratio":case"device-pixel-ratio":r=s(r),c=s(c);break;case"grid":case"color":case"color-index":case"monochrome":r=parseInt(r,10)||1,c=parseInt(c,10)||0}switch(o){case"min":return c>=r;case"max":return c<=r;default:return c===r}}));return r&&!n||!r&&n}))},t.parse=a;var o=/(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i,r=/\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/,c=/^(?:(min|max)-)?(.+)/,i=/(em|rem|px|cm|mm|in|pt|pc)?$/,l=/(dpi|dpcm|dppx)?$/;function a(e){return e.split(",").map((function(e){var t=(e=e.trim()).match(o),n=t[1],i=t[2],l=t[3]||"",a={};return a.inverse=!!n&&"not"===n.toLowerCase(),a.type=i?i.toLowerCase():"all",l=l.match(/\([^\)]+\)/g)||[],a.expressions=l.map((function(e){var t=e.match(r),n=t[1].toLowerCase().match(c);return{modifier:n[1],feature:n[2],value:t[2]}})),a}))}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(l)[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}}},function(e,t){var n=e.exports=function(e){return new o(e)};function o(e){this.value=e}function r(e,t,n){var o=[],r=[],l=!0;return function e(d){var b=n?c(d):d,m={},p=!0,f={node:b,node_:d,path:[].concat(o),parent:r[r.length-1],parents:r,key:o.slice(-1)[0],isRoot:0===o.length,level:o.length,circular:null,update:function(e,t){f.isRoot||(f.parent.node[f.key]=e),f.node=e,t&&(p=!1)},delete:function(e){delete f.parent.node[f.key],e&&(p=!1)},remove:function(e){a(f.parent.node)?f.parent.node.splice(f.key,1):delete f.parent.node[f.key],e&&(p=!1)},keys:null,before:function(e){m.before=e},after:function(e){m.after=e},pre:function(e){m.pre=e},post:function(e){m.post=e},stop:function(){l=!1},block:function(){p=!1}};if(!l)return f;function g(){if("object"==typeof f.node&&null!==f.node){f.keys&&f.node_===f.node||(f.keys=i(f.node)),f.isLeaf=0==f.keys.length;for(var e=0;e<r.length;e++)if(r[e].node_===d){f.circular=r[e];break}}else f.isLeaf=!0,f.keys=null;f.notLeaf=!f.isLeaf,f.notRoot=!f.isRoot}g();var h=t.call(f,f.node);return void 0!==h&&f.update&&f.update(h),m.before&&m.before.call(f,f.node),p?("object"!=typeof f.node||null===f.node||f.circular||(r.push(f),g(),s(f.keys,(function(t,r){o.push(t),m.pre&&m.pre.call(f,f.node[t],t);var c=e(f.node[t]);n&&u.call(f.node,t)&&(f.node[t]=c.node),c.isLast=r==f.keys.length-1,c.isFirst=0==r,m.post&&m.post.call(f,c),o.pop()})),r.pop()),m.after&&m.after.call(f,f.node),f):f}(e).node}function c(e){if("object"==typeof e&&null!==e){var t;if(a(e))t=[];else if("[object Date]"===l(e))t=new Date(e.getTime?e.getTime():e);else if(function(e){return"[object RegExp]"===l(e)}(e))t=new RegExp(e);else if(function(e){return"[object Error]"===l(e)}(e))t={message:e.message};else if(function(e){return"[object Boolean]"===l(e)}(e))t=new Boolean(e);else if(function(e){return"[object Number]"===l(e)}(e))t=new Number(e);else if(function(e){return"[object String]"===l(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__||{},o=function(){};o.prototype=n,t=new o}return s(i(e),(function(n){t[n]=e[n]})),t}return e}o.prototype.get=function(e){for(var t=this.value,n=0;n<e.length;n++){var o=e[n];if(!t||!u.call(t,o)){t=void 0;break}t=t[o]}return t},o.prototype.has=function(e){for(var t=this.value,n=0;n<e.length;n++){var o=e[n];if(!t||!u.call(t,o))return!1;t=t[o]}return!0},o.prototype.set=function(e,t){for(var n=this.value,o=0;o<e.length-1;o++){var r=e[o];u.call(n,r)||(n[r]={}),n=n[r]}return n[e[o]]=t,t},o.prototype.map=function(e){return r(this.value,e,!0)},o.prototype.forEach=function(e){return this.value=r(this.value,e,!1),this.value},o.prototype.reduce=function(e,t){var n=1===arguments.length,o=n?this.value:t;return this.forEach((function(t){this.isRoot&&n||(o=e.call(this,o,t))})),o},o.prototype.paths=function(){var e=[];return this.forEach((function(t){e.push(this.path)})),e},o.prototype.nodes=function(){var e=[];return this.forEach((function(t){e.push(this.node)})),e},o.prototype.clone=function(){var e=[],t=[];return function n(o){for(var r=0;r<e.length;r++)if(e[r]===o)return t[r];if("object"==typeof o&&null!==o){var l=c(o);return e.push(o),t.push(l),s(i(o),(function(e){l[e]=n(o[e])})),e.pop(),t.pop(),l}return o}(this.value)};var i=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};function l(e){return Object.prototype.toString.call(e)}var a=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(o.prototype),(function(e){n[e]=function(t){var n=[].slice.call(arguments,1),r=new o(t);return r[e].apply(r,n)}}));var u=Object.hasOwnProperty||function(e,t){return t in e}},,,,,,,,,,,,function(e,t,n){"use strict";var o=n(0),r=n(6);const c=Object(o.createElement)(r.SVG,{width:"18",height:"18",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18"},Object(o.createElement)(r.Path,{d:"M5 4h2V2H5v2zm6-2v2h2V2h-2zm-6 8h2V8H5v2zm6 0h2V8h-2v2zm-6 6h2v-2H5v2zm6 0h2v-2h-2v2z"}));t.a=c},,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var o=n(0),r=n(6);const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M9.1 9v-.5c0-.6.2-1.1.7-1.4.5-.3 1.2-.5 2-.5.7 0 1.4.1 2.1.3.7.2 1.4.5 2.1.9l.2-1.9c-.6-.3-1.2-.5-1.9-.7-.8-.1-1.6-.2-2.4-.2-1.5 0-2.7.3-3.6 1-.8.7-1.2 1.5-1.2 2.6V9h2zM20 12H4v1h8.3c.3.1.6.2.8.3.5.2.9.5 1.1.8.3.3.4.7.4 1.2 0 .7-.2 1.1-.8 1.5-.5.3-1.2.5-2.1.5-.8 0-1.6-.1-2.4-.3-.8-.2-1.5-.5-2.2-.8L7 18.1c.5.2 1.2.4 2 .6.8.2 1.6.3 2.4.3 1.7 0 3-.3 3.9-1 .9-.7 1.3-1.6 1.3-2.8 0-.9-.2-1.7-.7-2.2H20v-1z"}));t.a=c},function(e,t,n){"use strict";var o=n(0),r=n(6);const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M4 19.8h8.9v-1.5H4v1.5zm8.9-15.6H4v1.5h8.9V4.2zm-8.9 7v1.5h16v-1.5H4z"}));t.a=c},function(e,t,n){"use strict";var o=n(0),r=n(6);const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M16.4 4.2H7.6v1.5h8.9V4.2zM4 11.2v1.5h16v-1.5H4zm3.6 8.6h8.9v-1.5H7.6v1.5z"}));t.a=c},function(e,t,n){"use strict";var o=n(0),r=n(6);const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M11.1 19.8H20v-1.5h-8.9v1.5zm0-15.6v1.5H20V4.2h-8.9zM4 12.8h16v-1.5H4v1.5z"}));t.a=c},function(e,t,n){"use strict";var o=n(0),r=n(6);const c=Object(o.createElement)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)(r.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"}));t.a=c},function(e,t,n){"use strict";function o(){}function r(e,t,n,o,r){for(var c=0,i=t.length,l=0,a=0;c<i;c++){var s=t[c];if(s.removed){if(s.value=e.join(o.slice(a,a+s.count)),a+=s.count,c&&t[c-1].added){var u=t[c-1];t[c-1]=t[c],t[c]=u}}else{if(!s.added&&r){var d=n.slice(l,l+s.count);d=d.map((function(e,t){var n=o[a+t];return n.length>e.length?n:e})),s.value=e.join(d)}else s.value=e.join(n.slice(l,l+s.count));l+=s.count,s.added||(a+=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=o,o.prototype={diff:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=n.callback;"function"==typeof n&&(o=n,n={}),this.options=n;var i=this;function l(e){return o?(setTimeout((function(){o(void 0,e)}),0),!0):e}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e));var a=(t=this.removeEmpty(this.tokenize(t))).length,s=e.length,u=1,d=a+s,b=[{newPos:-1,components:[]}],m=this.extractCommon(b[0],t,e,0);if(b[0].newPos+1>=a&&m+1>=s)return l([{value:this.join(t),count:t.length}]);function p(){for(var n=-1*u;n<=u;n+=2){var o=void 0,d=b[n-1],m=b[n+1],p=(m?m.newPos:0)-n;d&&(b[n-1]=void 0);var f=d&&d.newPos+1<a,g=m&&0<=p&&p<s;if(f||g){if(!f||g&&d.newPos<m.newPos?(o=c(m),i.pushComponent(o.components,void 0,!0)):((o=d).newPos++,i.pushComponent(o.components,!0,void 0)),p=i.extractCommon(o,t,e,n),o.newPos+1>=a&&p+1>=s)return l(r(i,o.components,t,e,i.useLongestToken));b[n]=o}else b[n]=void 0}u++}if(o)!function e(){setTimeout((function(){if(u>d)return o();p()||e()}),0)}();else for(;u<=d;){var f=p();if(f)return f}},pushComponent:function(e,t,n){var o=e[e.length-1];o&&o.added===t&&o.removed===n?e[e.length-1]={count:o.count+1,added:t,removed:n}:e.push({count:1,added:t,removed:n})},extractCommon:function(e,t,n,o){for(var r=t.length,c=n.length,i=e.newPos,l=i-o,a=0;i+1<r&&l+1<c&&this.equals(t[i+1],n[l+1]);)i++,l++,a++;return a&&e.components.push({count:a}),e.newPos=i,l},equals:function(e,t){return this.options.comparator?this.options.comparator(e,t):e===t||this.options.ignoreCase&&e.toLowerCase()===t.toLowerCase()},removeEmpty:function(e){for(var t=[],n=0;n<e.length;n++)e[n]&&t.push(e[n]);return t},castInput:function(e){return e},tokenize:function(e){return e.split("")},join:function(e){return e.join("")}}},function(e,t,n){"use strict";var o=n(0),r=n(6);const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7.8 16.5H5c-.3 0-.5-.2-.5-.5v-6.2h6.8v6.7zm0-8.3H4.5V5c0-.3.2-.5.5-.5h6.2v6.7zm8.3 7.8c0 .3-.2.5-.5.5h-6.2v-6.8h6.8V19zm0-7.8h-6.8V4.5H19c.3 0 .5.2.5.5v6.2z",fillRule:"evenodd",clipRule:"evenodd"}));t.a=c},function(e,t,n){"use strict";var o=n(0),r=n(6);const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M18.7 3H5.3C4 3 3 4 3 5.3v13.4C3 20 4 21 5.3 21h13.4c1.3 0 2.3-1 2.3-2.3V5.3C21 4 20 3 18.7 3zm.8 15.7c0 .4-.4.8-.8.8H5.3c-.4 0-.8-.4-.8-.8V5.3c0-.4.4-.8.8-.8h13.4c.4 0 .8.4.8.8v13.4zM10 15l5-3-5-3v6z"}));t.a=c},function(e,t,n){"use strict";var o=n(0),r=n(6);const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M20 10.8H6.7l4.1-4.5-1.1-1.1-5.8 6.3 5.8 5.8 1.1-1.1-4-3.9H20z"}));t.a=c},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t),n.d(t,"__experimentalGetBorderClassesAndStyles",(function(){return Mn})),n.d(t,"__experimentalUseBorderProps",(function(){return Dn})),n.d(t,"__experimentalGetColorClassesAndStyles",(function(){return Vn})),n.d(t,"__experimentalUseColorProps",(function(){return Hn})),n.d(t,"__experimentalUseCustomSides",(function(){return mn})),n.d(t,"getColorClassName",(function(){return ne})),n.d(t,"getColorObjectByAttributeValues",(function(){return ee})),n.d(t,"getColorObjectByColorValue",(function(){return te})),n.d(t,"createCustomColorsHOC",(function(){return Gn})),n.d(t,"withColors",(function(){return Wn})),n.d(t,"__experimentalGetGradientClass",(function(){return re})),n.d(t,"getGradientValueBySlug",(function(){return ce})),n.d(t,"__experimentalGetGradientObjectByGradientValue",(function(){return ie})),n.d(t,"getGradientSlugByValue",(function(){return le})),n.d(t,"__experimentalUseGradient",(function(){return ae})),n.d(t,"getFontSize",(function(){return Ut})),n.d(t,"getFontSizeClass",(function(){return Wt})),n.d(t,"getFontSizeObjectByValue",(function(){return Gt})),n.d(t,"FontSizePicker",(function(){return Kt})),n.d(t,"withFontSizes",(function(){return $n})),n.d(t,"AlignmentControl",(function(){return eo})),n.d(t,"AlignmentToolbar",(function(){return to})),n.d(t,"Autocomplete",(function(){return ao})),n.d(t,"BlockAlignmentControl",(function(){return x})),n.d(t,"BlockAlignmentToolbar",(function(){return T})),n.d(t,"__experimentalBlockFullHeightAligmentControl",(function(){return uo})),n.d(t,"__experimentalBlockAlignmentMatrixControl",(function(){return bo})),n.d(t,"BlockBreadcrumb",(function(){return go})),n.d(t,"__experimentalBlockContentOverlay",(function(){return ho})),n.d(t,"BlockContextProvider",(function(){return Oo.a})),n.d(t,"BlockControls",(function(){return d.b})),n.d(t,"BlockFormatControls",(function(){return d.a})),n.d(t,"BlockColorsStyleSelector",(function(){return _o})),n.d(t,"BlockEdit",(function(){return yo.a})),n.d(t,"useBlockEditContext",(function(){return M.b})),n.d(t,"BlockIcon",(function(){return ro.a})),n.d(t,"BlockNavigationDropdown",(function(){return rr})),n.d(t,"__experimentalBlockVariationPicker",(function(){return ir})),n.d(t,"__experimentalBlockPatternSetup",(function(){return hr})),n.d(t,"__experimentalBlockVariationTransforms",(function(){return vr})),n.d(t,"BlockVerticalAlignmentToolbar",(function(){return Br})),n.d(t,"BlockVerticalAlignmentControl",(function(){return wr})),n.d(t,"__experimentalBorderRadiusControl",(function(){return Le})),n.d(t,"__experimentalBorderStyleControl",(function(){return Fe})),n.d(t,"ButtonBlockerAppender",(function(){return Ir.a})),n.d(t,"ButtonBlockAppender",(function(){return Ir.b})),n.d(t,"ColorPalette",(function(){return Tr})),n.d(t,"ColorPaletteControl",(function(){return Nr})),n.d(t,"ContrastChecker",(function(){return tt})),n.d(t,"__experimentalDuotoneControl",(function(){return En})),n.d(t,"__experimentalFontAppearanceControl",(function(){return Lt})),n.d(t,"__experimentalFontFamilyControl",(function(){return Dt})),n.d(t,"__experimentalLetterSpacingControl",(function(){return Qt})),n.d(t,"__experimentalColorGradientControl",(function(){return fe})),n.d(t,"__experimentalPanelColorGradientSettings",(function(){return Ze})),n.d(t,"__experimentalImageSizeControl",(function(){return Rr})),n.d(t,"InnerBlocks",(function(){return Yr})),n.d(t,"__experimentalUseInnerBlocksProps",(function(){return qr})),n.d(t,"InspectorAdvancedControls",(function(){return H})),n.d(t,"InspectorControls",(function(){return K})),n.d(t,"JustifyToolbar",(function(){return oc})),n.d(t,"JustifyContentControl",(function(){return nc})),n.d(t,"__experimentalLinkControl",(function(){return Ic})),n.d(t,"__experimentalLinkControlSearchInput",(function(){return yc})),n.d(t,"__experimentalLinkControlSearchResults",(function(){return hc})),n.d(t,"__experimentalLinkControlSearchItem",(function(){return fc})),n.d(t,"LineHeightControl",(function(){return Bt})),n.d(t,"__experimentalListView",(function(){return nr})),n.d(t,"__experimentalListViewBlockFill",(function(){return Ho})),n.d(t,"__experimentalListViewEditor",(function(){return Zc})),n.d(t,"MediaReplaceFlow",(function(){return ri})),n.d(t,"MediaPlaceholder",(function(){return ui})),n.d(t,"MediaUpload",(function(){return ni})),n.d(t,"MediaUploadCheck",(function(){return oi})),n.d(t,"PanelColorSettings",(function(){return di})),n.d(t,"PlainText",(function(){return gi})),n.d(t,"__experimentalResponsiveBlockControl",(function(){return Oi})),n.d(t,"RichText",(function(){return Qc})),n.d(t,"RichTextShortcut",(function(){return ji})),n.d(t,"RichTextToolbarButton",(function(){return vi})),n.d(t,"__unstableRichTextInputEvent",(function(){return ki})),n.d(t,"ToolSelector",(function(){return yi})),n.d(t,"__experimentalUnitControl",(function(){return Ei})),n.d(t,"URLInput",(function(){return dc})),n.d(t,"URLInputButton",(function(){return wi})),n.d(t,"URLPopover",(function(){return ai})),n.d(t,"__experimentalImageURLInputUI",(function(){return Ti})),n.d(t,"withColorContext",(function(){return xr})),n.d(t,"__unstableBlockSettingsMenuFirstItem",(function(){return Ni.a})),n.d(t,"__unstableInserterMenuExtension",(function(){return Li.a})),n.d(t,"__experimentalPreviewOptions",(function(){return Pi})),n.d(t,"__experimentalUseResizeCanvas",(function(){return zi})),n.d(t,"BlockInspector",(function(){return Zi})),n.d(t,"BlockList",(function(){return zr.c})),n.d(t,"useBlockProps",(function(){return Ji.a})),n.d(t,"__experimentalLayoutStyle",(function(){return k.b})),n.d(t,"BlockMover",(function(){return el.a})),n.d(t,"BlockPreview",(function(){return lr.a})),n.d(t,"BlockSelectionClearer",(function(){return tl.a})),n.d(t,"__unstableUseBlockSelectionClearer",(function(){return tl.b})),n.d(t,"BlockSettingsMenu",(function(){return nl.a})),n.d(t,"BlockSettingsMenuControls",(function(){return ol.a})),n.d(t,"BlockTitle",(function(){return fo.a})),n.d(t,"BlockToolbar",(function(){return rl.a})),n.d(t,"BlockTools",(function(){return ul})),n.d(t,"CopyHandler",(function(){return dl.a})),n.d(t,"__unstableUseClipboardHandler",(function(){return dl.b})),n.d(t,"DefaultBlockAppender",(function(){return Mr.a})),n.d(t,"__unstableEditorStyles",(function(){return xl})),n.d(t,"Inserter",(function(){return Ko.a})),n.d(t,"__experimentalLibrary",(function(){return Nl})),n.d(t,"BlockEditorKeyboardShortcuts",(function(){return Rl})),n.d(t,"MultiSelectScrollIntoView",(function(){return Pl})),n.d(t,"NavigableToolbar",(function(){return Al.a})),n.d(t,"ObserveTyping",(function(){return Vl})),n.d(t,"__unstableUseTypingObserver",(function(){return Fl})),n.d(t,"__unstableUseMouseMoveTypingReset",(function(){return Dl})),n.d(t,"PreserveScrollInReorder",(function(){return Hl})),n.d(t,"SkipToSelectedBlock",(function(){return Ui})),n.d(t,"Typewriter",(function(){return Wl})),n.d(t,"__unstableUseTypewriter",(function(){return Gl})),n.d(t,"Warning",(function(){return Kl.a})),n.d(t,"WritingFlow",(function(){return na})),n.d(t,"__unstableUseCanvasClickRedirect",(function(){return ra})),n.d(t,"useBlockDisplayInformation",(function(){return Ro.a})),n.d(t,"__unstableIframe",(function(){return la})),n.d(t,"__experimentalUseNoRecursiveRenders",(function(){return sa})),n.d(t,"BlockEditorProvider",(function(){return ua.a})),n.d(t,"__experimentalUseSimulatedMediaQuery",(function(){return Hi})),n.d(t,"useSetting",(function(){return Q.a})),n.d(t,"transformStyles",(function(){return Bl})),n.d(t,"validateThemeColors",(function(){return ba})),n.d(t,"validateThemeGradients",(function(){return ma})),n.d(t,"__experimentalGetMatchingVariation",(function(){return jr})),n.d(t,"storeConfig",(function(){return _.b})),n.d(t,"store",(function(){return _.a})),n.d(t,"SETTINGS_DEFAULTS",(function(){return da.b}));var o=n(7),r=n(0),c=n(10),i=n.n(c),l=n(2),a=n(9),s=n(21),u=n(8),d=n(107),b=n(1),m=n(3),p=n(6),f=Object(r.createElement)(p.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(p.Path,{d:"M4 9v6h14V9H4zm8-4.8H4v1.5h8V4.2zM4 19.8h8v-1.5H4v1.5z"})),g=n(556),h=Object(r.createElement)(p.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(p.Path,{d:"M6 15h14V9H6v6zm6-10.8v1.5h8V4.2h-8zm0 15.6h8v-1.5h-8v1.5z"})),O=n(557),j=Object(r.createElement)(p.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(p.Path,{d:"M5 4v11h14V4H5zm3 15.8h8v-1.5H8v1.5z"})),v=n(4),k=n(116),_=n(13),y=n(119);const E=["left","center","right","wide","full"],C=["wide","full"];function S(e=E){const{wideControlsEnabled:t=!1,themeSupportsLayout:n}=Object(v.useSelect)(e=>{const{getSettings:t}=e(_.a),n=t();return{wideControlsEnabled:n.alignWide,themeSupportsLayout:n.supportsLayout}},[]),o=Object(k.d)(),r=Object(y.a)(null==o?void 0:o.type),c=r.getAlignments(o);if(n)return c.filter(t=>e.includes(t));if("default"!==r.name)return[];const{alignments:i=E}=o;return e.filter(e=>(o.alignments||t||!C.includes(e))&&i.includes(e))}const w={left:{icon:f,title:Object(b.__)("Align left")},center:{icon:g.a,title:Object(b.__)("Align center")},right:{icon:h,title:Object(b.__)("Align right")},wide:{icon:O.a,title:Object(b.__)("Wide width")},full:{icon:j,title:Object(b.__)("Full width")}},B={isAlternate:!0};var I=function({value:e,onChange:t,controls:n,isToolbar:c,isCollapsed:i=!0}){const l=S(n);if(0===l.length)return null;const a=w[e],s=w.center,u=c?m.ToolbarGroup:m.ToolbarDropdownMenu,d=c?{isCollapsed:i}:{};return Object(r.createElement)(u,Object(o.a)({popoverProps:B,icon:a?a.icon:s.icon,label:Object(b.__)("Align"),toggleProps:{describedBy:Object(b.__)("Change alignment")},controls:l.map(n=>{return{...w[n],isActive:e===n,role:i?"menuitemradio":void 0,onClick:(o=n,()=>t(e===o?void 0:o))};var o})},d))};function x(e){return Object(r.createElement)(I,Object(o.a)({},e,{isToolbar:!1}))}function T(e){return Object(r.createElement)(I,Object(o.a)({},e,{isToolbar:!0}))}const N=["left","center","right","wide","full"],L=["wide","full"];function R(e,t=!0,n=!0){let o;return o=Array.isArray(e)?N.filter(t=>e.includes(t)):!0===e?N:[],!n||!0===e&&!t?Object(l.without)(o,...L):o}const P=Object(a.createHigherOrderComponent)(e=>t=>{const{name:n}=t,c=S(R(Object(u.getBlockSupport)(n,"align"),Object(u.hasBlockSupport)(n,"alignWide",!0)));return[c.length>0&&t.isSelected&&Object(r.createElement)(d.b,{key:"align-controls",group:"block"},Object(r.createElement)(x,{value:t.attributes.align,onChange:e=>{var n,o;e||(null===(n=Object(u.getBlockType)(t.name).attributes)||void 0===n||null===(o=n.align)||void 0===o?void 0:o.default)&&(e="");t.setAttributes({align:e})},controls:c})),Object(r.createElement)(e,Object(o.a)({key:"edit"},t))]},"withToolbarControls"),A=Object(a.createHigherOrderComponent)(e=>t=>{const{name:n,attributes:c}=t,{align:i}=c,l=S(R(Object(u.getBlockSupport)(n,"align"),Object(u.hasBlockSupport)(n,"alignWide",!0)));if(void 0===i)return Object(r.createElement)(e,t);let a=t.wrapperProps;return l.includes(i)&&(a={...a,"data-align":i}),Object(r.createElement)(e,Object(o.a)({},t,{wrapperProps:a}))});Object(s.addFilter)("blocks.registerBlockType","core/align/addAttribute",(function(e){return Object(l.has)(e.attributes,["align","type"])||Object(u.hasBlockSupport)(e,"align")&&(e.attributes={...e.attributes,align:{type:"string",enum:[...N,""]}}),e})),Object(s.addFilter)("editor.BlockListBlock","core/editor/align/with-data-align",A),Object(s.addFilter)("editor.BlockEdit","core/editor/align/with-toolbar-controls",P),Object(s.addFilter)("blocks.getSaveContent.extraProps","core/align/addAssignedAlign",(function(e,t,n){const{align:o}=n;return R(Object(u.getBlockSupport)(t,"align"),Object(u.hasBlockSupport)(t,"alignWide",!0)).includes(o)&&(e.className=i()("align"+o,e.className)),e}));var M=n(69);const{Fill:D,Slot:F}=Object(m.createSlotFill)("InspectorAdvancedControls");function V({children:e}){const{isSelected:t}=Object(M.b)();return t?Object(r.createElement)(m.__experimentalStyleProvider,{document:document},Object(r.createElement)(D,null,e)):null}V.slotName="InspectorAdvancedControls",V.Slot=F;var H=V,z=n(158);const{Fill:U,Slot:G}=Object(m.createSlotFill)("InspectorControls");function W({children:e}){return Object(z.a)()?Object(r.createElement)(m.__experimentalStyleProvider,{document:document},Object(r.createElement)(U,null,e)):null}W.Slot=G;var K=W;const $=/[\s#]/g,q=Object(a.createHigherOrderComponent)(e=>t=>{if(Object(u.hasBlockSupport)(t.name,"anchor")&&t.isSelected){const n="web"===r.Platform.OS,o=Object(r.createElement)(m.TextControl,{className:"html-anchor-control",label:Object(b.__)("HTML anchor"),help:Object(r.createElement)(r.Fragment,null,Object(b.__)("Enter a word or two — without spaces — to make a unique web address just for this block, called an “anchor.” Then, you’ll be able to link directly to this section of your page."),n&&Object(r.createElement)(m.ExternalLink,{href:"https://wordpress.org/support/article/page-jumps/"},Object(b.__)("Learn more about anchors"))),value:t.attributes.anchor||"",placeholder:n?null:Object(b.__)("Add an anchor"),onChange:e=>{e=e.replace($,"-"),t.setAttributes({anchor:e})},autoCapitalize:"none",autoComplete:"off"});return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(e,t),n&&Object(r.createElement)(H,null,o),!n&&"core/heading"===t.name&&Object(r.createElement)(K,null,Object(r.createElement)(m.PanelBody,{title:Object(b.__)("Heading settings")},o)))}return Object(r.createElement)(e,t)},"withInspectorControl");Object(s.addFilter)("blocks.registerBlockType","core/anchor/attribute",(function(e){return Object(l.has)(e.attributes,["anchor","type"])||Object(u.hasBlockSupport)(e,"anchor")&&(e.attributes={...e.attributes,anchor:{type:"string",source:"attribute",attribute:"id",selector:"*"}}),e})),Object(s.addFilter)("editor.BlockEdit","core/editor/anchor/with-inspector-control",q),Object(s.addFilter)("blocks.getSaveContent.extraProps","core/anchor/save-props",(function(e,t,n){return Object(u.hasBlockSupport)(t,"anchor")&&(e.id=""===n.anchor?null:n.anchor),e}));const Y=Object(a.createHigherOrderComponent)(e=>t=>Object(u.hasBlockSupport)(t.name,"customClassName",!0)&&t.isSelected?Object(r.createElement)(r.Fragment,null,Object(r.createElement)(e,t),Object(r.createElement)(H,null,Object(r.createElement)(m.TextControl,{autoComplete:"off",label:Object(b.__)("Additional CSS class(es)"),value:t.attributes.className||"",onChange:e=>{t.setAttributes({className:""!==e?e:void 0})},help:Object(b.__)("Separate multiple classes with spaces.")}))):Object(r.createElement)(e,t),"withInspectorControl");function X(e){e=`<div data-custom-class-name>${e}</div>`;const t=Object(u.parseWithAttributeSchema)(e,{type:"string",source:"attribute",selector:"[data-custom-class-name] > *",attribute:"class"});return t?t.trim().split(/\s+/):[]}Object(s.addFilter)("blocks.registerBlockType","core/custom-class-name/attribute",(function(e){return Object(u.hasBlockSupport)(e,"customClassName",!0)&&(e.attributes={...e.attributes,className:{type:"string"}}),e})),Object(s.addFilter)("editor.BlockEdit","core/editor/custom-class-name/with-inspector-control",Y),Object(s.addFilter)("blocks.getSaveContent.extraProps","core/custom-class-name/save-props",(function(e,t,n){return Object(u.hasBlockSupport)(t,"customClassName",!0)&&n.className&&(e.className=i()(e.className,n.className)),e})),Object(s.addFilter)("blocks.getBlockAttributes","core/custom-class-name/addParsedDifference",(function(e,t,n){if(Object(u.hasBlockSupport)(t,"customClassName",!0)){const o=Object(l.omit)(e,["className"]),r=Object(u.getSaveContent)(t,o),c=X(r),i=X(n),a=Object(l.difference)(i,c);a.length?e.className=a.join(" "):r&&delete e.className}return e})),Object(s.addFilter)("blocks.getSaveContent.extraProps","core/generated-class-name/save-props",(function(e,t){return Object(u.hasBlockSupport)(t,"className",!0)&&("string"==typeof e.className?e.className=Object(l.uniq)([Object(u.getBlockDefaultClassName)(t.name),...e.className.split(" ")]).join(" ").trim():e.className=Object(u.getBlockDefaultClassName)(t.name)),e}));var Q=n(28),Z=n(45),J=n.n(Z);const ee=(e,t,n)=>{if(t){const n=Object(l.find)(e,{slug:t});if(n)return n}return{color:n}},te=(e,t)=>Object(l.find)(e,{color:t});function ne(e,t){if(e&&t)return`has-${Object(l.kebabCase)(t)}-${e}`}const oe=[];function re(e){if(e)return`has-${e}-gradient-background`}function ce(e,t){const n=Object(l.find)(e,["slug",t]);return n&&n.gradient}function ie(e,t){return Object(l.find)(e,["gradient",t])}function le(e,t){const n=ie(e,t);return n&&n.slug}function ae({gradientAttribute:e="gradient",customGradientAttribute:t="customGradient"}={}){const{clientId:n}=Object(M.b)(),o=Object(Q.a)("color.gradients")||oe,{gradient:c,customGradient:i}=Object(v.useSelect)(o=>{const{getBlockAttributes:r}=o(_.a),c=r(n)||{};return{customGradient:c[t],gradient:c[e]}},[n,e,t]),{updateBlockAttributes:l}=Object(v.useDispatch)(_.a),a=Object(r.useCallback)(r=>{const c=le(o,r);l(n,c?{[e]:c,[t]:void 0}:{[e]:void 0,[t]:r})},[o,n,l]),s=re(c);let u;return u=c?ce(o,c):i,{gradientClass:s,gradientValue:u,setGradient:a}}
49
  // translators: first %s: the color name or value (e.g. red or #ff0000)
50
+ const se=Object(b.__)("(Color: %s)"),ue=Object(b.__)("(Gradient: %s)"),de=["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%)
51
+ function be({colors:e,gradients:t,label:n,currentTab:o,colorValue:c,gradientValue:i}){let l,a;if("color"===o){if(c){l=c;const t=te(e,l),n=t&&t.name;a=Object(b.sprintf)(se,n||l)}}else if("gradient"===o&&i){l=i;const e=ie(t,l),n=e&&e.name;a=Object(b.sprintf)(ue,n||l)}return Object(r.createElement)(r.Fragment,null,n,!!l&&Object(r.createElement)(m.ColorIndicator,{colorValue:l,"aria-label":a}))}function me({colors:e,gradients:t,disableCustomColors:n,disableCustomGradients:o,className:c,label:a,onColorChange:s,onGradientChange:u,colorValue:d,gradientValue:p,clearable:f}){const g=s&&(!Object(l.isEmpty)(e)||!n),h=u&&(!Object(l.isEmpty)(t)||!o),[O,j]=Object(r.useState)(p?"gradient":!!g&&"color");return g||h?Object(r.createElement)(m.BaseControl,{className:i()("block-editor-color-gradient-control",c)},Object(r.createElement)("fieldset",null,Object(r.createElement)("legend",null,Object(r.createElement)("div",{className:"block-editor-color-gradient-control__color-indicator"},Object(r.createElement)(m.BaseControl.VisualLabel,null,Object(r.createElement)(be,{currentTab:O,label:a,colorValue:d,gradientValue:p})))),g&&h&&Object(r.createElement)(m.ButtonGroup,{className:"block-editor-color-gradient-control__button-tabs"},Object(r.createElement)(m.Button,{isSmall:!0,isPressed:"color"===O,onClick:()=>j("color")},Object(b.__)("Solid")),Object(r.createElement)(m.Button,{isSmall:!0,isPressed:"gradient"===O,onClick:()=>j("gradient")},Object(b.__)("Gradient"))),("color"===O||!h)&&Object(r.createElement)(m.ColorPalette,{value:d,onChange:h?e=>{s(e),u()}:s,colors:e,disableCustomColors:n,clearable:f}),("gradient"===O||!g)&&Object(r.createElement)(m.GradientPicker,{value:p,onChange:g?e=>{u(e),s()}:u,gradients:t,disableCustomGradients:o,clearable:f}))):null}function pe(e){const t={};return t.colors=Object(Q.a)("color.palette"),t.gradients=Object(Q.a)("color.gradients"),t.disableCustomColors=!Object(Q.a)("color.custom"),t.disableCustomGradients=!Object(Q.a)("color.customGradient"),Object(r.createElement)(me,Object(o.a)({},t,e))}var fe=function(e){return Object(l.every)(de,t=>e.hasOwnProperty(t))?Object(r.createElement)(me,e):Object(r.createElement)(pe,e)};const ge=e=>{if(!Object(l.isObject)(e)||Array.isArray(e))return e;const t=Object(l.pickBy)(Object(l.mapValues)(e,ge),l.identity);return Object(l.isEmpty)(t)?void 0:t},he=[];function Oe(e){var t;const{attributes:{borderColor:n,style:o},setAttributes:c}=e,i=Object(Q.a)("color.palette")||he,l=!Object(Q.a)("color.custom"),a=!Object(Q.a)("color.customGradient");return Object(r.createElement)(fe,{label:Object(b.__)("Color"),value:n||(null==o||null===(t=o.border)||void 0===t?void 0:t.color),colors:i,gradients:void 0,disableCustomColors:l,disableCustomGradients:a,onColorChange:e=>{const t=te(i,e),n={...o,border:{...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:ge(n),borderColor:r})}})}function je(e,t,n){var o;if(!Ue(t,"color")||Ge(t))return e;const{borderColor:r,style:c}=n,l=ne("border-color",r),a=i()(e.className,{"has-border-color":r||(null==c||null===(o=c.border)||void 0===o?void 0:o.color),[l]:!!l});return e.className=a||void 0,e}const ve=Object(a.createHigherOrderComponent)(e=>t=>{var n,c;const{name:i,attributes:l}=t,{borderColor:a}=l,s=Object(Q.a)("color.palette")||he;if(!Ue(i,"color")||Ge(i))return Object(r.createElement)(e,t);const u={borderColor:a?null===(n=ee(s,a))||void 0===n?void 0:n.color:void 0};let d=t.wrapperProps;return d={...t.wrapperProps,style:{...u,...null===(c=t.wrapperProps)||void 0===c?void 0:c.style}},Object(r.createElement)(e,Object(o.a)({},t,{wrapperProps:d}))});function ke(e){return e.sort((t,n)=>e.filter(e=>e===t).length-e.filter(e=>e===n).length).pop()}function _e(e={}){if("string"==typeof e)return e;const t=Object.values(e).map(e=>Object(m.__experimentalParseUnit)(e)),n=t.map(e=>e[0]),o=t.map(e=>e[1]),r=n.every(e=>e===n[0])?n[0]:"",c=ke(o);return 0===r||r?`${r}${c}`:null}function ye(e={}){const t=_e(e);return isNaN(parseFloat(t))}function Ee(e){return!!e&&("string"==typeof e||!!Object.values(e).filter(e=>!!e||0===e).length)}function Ce({onChange:e,values:t,...n}){const c=_e(t),i=Ee(t)&&ye(t),l=i?Object(b.__)("Mixed"):null;return Object(r.createElement)(m.__experimentalUnitControl,Object(o.a)({},n,{"aria-label":Object(b.__)("Border radius"),disableUnits:i,isOnly:!0,value:c,onChange:e,placeholder:l}))}Object(s.addFilter)("blocks.registerBlockType","core/border/addAttributes",(function(e){return Ue(e,"color")?e.attributes.borderColor?e:{...e,attributes:{...e.attributes,borderColor:{type:"string"}}}:e})),Object(s.addFilter)("blocks.getSaveContent.extraProps","core/border/addSaveProps",je),Object(s.addFilter)("blocks.registerBlockType","core/border/addEditProps",(function(e){if(!Ue(e,"color")||Ge(e))return e;const t=e.getEditWrapperProps;return e.getEditWrapperProps=n=>{let o={};return t&&(o=t(n)),je(o,e,n)},e})),Object(s.addFilter)("editor.BlockListBlock","core/border/with-border-color-palette-styles",ve);const Se={topLeft:Object(b.__)("Top left"),topRight:Object(b.__)("Top right"),bottomLeft:Object(b.__)("Bottom left"),bottomRight:Object(b.__)("Bottom right")};function we({onChange:e,values:t,...n}){const c="string"!=typeof t?t:{topLeft:t,topRight:t,bottomLeft:t,bottomRight:t};return Object(r.createElement)("div",{className:"components-border-radius-control__input-controls-wrapper"},Object.entries(Se).map(([t,i])=>{return Object(r.createElement)(m.__experimentalUnitControl,Object(o.a)({},n,{key:t,"aria-label":i,value:c[t],onChange:(l=t,t=>{e&&e({...c,[l]:t||void 0})})}));var l}))}var Be=n(246),Ie=n(247);function xe({isLinked:e,...t}){const n=e?Object(b.__)("Unlink Radii"):Object(b.__)("Link Radii");return Object(r.createElement)(m.Tooltip,{text:n},Object(r.createElement)(m.Button,Object(o.a)({},t,{className:"component-border-radius-control__linked-button",isPrimary:e,isSecondary:!e,isSmall:!0,icon:e?Be.a:Ie.a,iconSize:16,"aria-label":n})))}const Te={topLeft:null,topRight:null,bottomLeft:null,bottomRight:null},Ne={px:100,em:20,rem:20};function Le({onChange:e,values:t}){const[n,o]=Object(r.useState)(!Ee(t)||!ye(t)),c=Object(m.__experimentalUseCustomUnits)({availableUnits:Object(Q.a)("spacing.units")||["px","em","rem"]}),i=function(e={}){if("string"==typeof e){const[,t]=Object(m.__experimentalParseUnit)(e);return t||"px"}return ke(Object.values(e).map(e=>{const[,t]=Object(m.__experimentalParseUnit)(e);return t}))}(t),l=c&&c.find(e=>e.value===i),a=(null==l?void 0:l.step)||1,[s]=Object(m.__experimentalParseUnit)(_e(t));return Object(r.createElement)("fieldset",{className:"components-border-radius-control"},Object(r.createElement)("legend",null,Object(b.__)("Radius")),Object(r.createElement)("div",{className:"components-border-radius-control__wrapper"},n?Object(r.createElement)(r.Fragment,null,Object(r.createElement)(Ce,{className:"components-border-radius-control__unit-control",values:t,min:0,onChange:e,unit:i,units:c}),Object(r.createElement)(m.RangeControl,{className:"components-border-radius-control__range-control",value:s,min:0,max:Ne[i],initialPosition:0,withInputField:!1,onChange:t=>{e(void 0!==t?`${t}${i}`:void 0)},step:a})):Object(r.createElement)(we,{min:0,onChange:e,values:t||Te,units:c}),Object(r.createElement)(xe,{onClick:()=>o(!n),isLinked:n})))}function Re(e){var t;const{attributes:{style:n},setAttributes:o}=e;return Object(r.createElement)(Le,{values:null==n||null===(t=n.border)||void 0===t?void 0:t.radius,onChange:e=>{let t={...n,border:{...null==n?void 0:n.border,radius:e}};void 0!==e&&""!==e||(t=ge(t)),o({style:t})}})}var Pe=Object(r.createElement)(p.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none"},Object(r.createElement)(p.Path,{d:"M5 11.25h14v1.5H5z"})),Ae=Object(r.createElement)(p.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none"},Object(r.createElement)(p.Path,{fillRule:"evenodd",d:"M5 11.25h3v1.5H5v-1.5zm5.5 0h3v1.5h-3v-1.5zm8.5 0h-3v1.5h3v-1.5z",clipRule:"evenodd"})),Me=Object(r.createElement)(p.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none"},Object(r.createElement)(p.Path,{fillRule:"evenodd",d:"M5.25 11.25h1.5v1.5h-1.5v-1.5zm3 0h1.5v1.5h-1.5v-1.5zm4.5 0h-1.5v1.5h1.5v-1.5zm1.5 0h1.5v1.5h-1.5v-1.5zm4.5 0h-1.5v1.5h1.5v-1.5z",clipRule:"evenodd"}));const De=[{label:Object(b.__)("Solid"),icon:Pe,value:"solid"},{label:Object(b.__)("Dashed"),icon:Ae,value:"dashed"},{label:Object(b.__)("Dotted"),icon:Me,value:"dotted"}];function Fe({onChange:e,value:t}){return Object(r.createElement)("fieldset",{className:"components-border-style-control"},Object(r.createElement)("legend",null,Object(b.__)("Style")),Object(r.createElement)("div",{className:"components-border-style-control__buttons"},De.map(n=>Object(r.createElement)(m.Button,{key:n.value,icon:n.icon,isSmall:!0,isPressed:n.value===t,onClick:()=>e(n.value===t?void 0:n.value),"aria-label":n.label}))))}const Ve=e=>{var t;const{attributes:{style:n},setAttributes:o}=e;return Object(r.createElement)(Fe,{value:null==n||null===(t=n.border)||void 0===t?void 0:t.style,onChange:e=>{const t={...n,border:{...null==n?void 0:n.border,style:e}};o({style:ge(t)})}})},He=e=>{const{attributes:{borderColor:t,style:n},setAttributes:o}=e,{width:c,color:i,style:l}=(null==n?void 0:n.border)||{},[a,s]=Object(r.useState)(),[u,d]=Object(r.useState)();Object(r.useEffect)(()=>{"none"!==l&&s(l)},[l]),Object(r.useEffect)(()=>{(t||i)&&d({name:t||void 0,color:i||void 0})},[t,i]);const p=Object(m.__experimentalUseCustomUnits)({availableUnits:Object(Q.a)("spacing.units")||["px","em","rem"]});return Object(r.createElement)(m.__experimentalUnitControl,{value:c,label:Object(b.__)("Width"),min:0,onChange:e=>{let r={...n,border:{...null==n?void 0:n.border,width:e}},c=t;const i=0===parseFloat(e);i&&(c=void 0,r.border.color=void 0,r.border.style="none"),i||"none"!==l||(r.border.style=a),i||void 0!==t||(c=null==u?void 0:u.name,r.border.color=null==u?void 0:u.color),void 0!==e&&""!==e||(r=ge(r)),o({borderColor:c,style:r})},units:p})};function ze(e){const t=We(e),n=Ue(e.name),o=Object(Q.a)("border.customColor")&&Ue(e.name,"color"),c=Object(Q.a)("border.customRadius")&&Ue(e.name,"radius"),i=Object(Q.a)("border.customStyle")&&Ue(e.name,"style"),l=Object(Q.a)("border.customWidth")&&Ue(e.name,"width");return t||!n?null:Object(r.createElement)(K,null,Object(r.createElement)(m.PanelBody,{className:"block-editor-hooks__border-controls",title:Object(b.__)("Border"),initialOpen:!1},(l||i)&&Object(r.createElement)("div",{className:"block-editor-hooks__border-controls-row"},l&&Object(r.createElement)(He,e),i&&Object(r.createElement)(Ve,e)),o&&Object(r.createElement)(Oe,e),c&&Object(r.createElement)(Re,e)))}function Ue(e,t="any"){if("web"!==r.Platform.OS)return!1;const n=Object(u.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 Ge(e){const t=Object(u.getBlockSupport)(e,"__experimentalBorder");return null==t?void 0:t.__experimentalSkipSerialization}const We=()=>[!Object(Q.a)("border.customColor"),!Object(Q.a)("border.customRadius"),!Object(Q.a)("border.customStyle"),!Object(Q.a)("border.customWidth")].every(Boolean),Ke=Object(b.__)("(%s: color %s)"),$e=Object(b.__)("(%s: gradient %s)"),qe=["colors","disableCustomColors","gradients","disableCustomGradients"],Ye=({colors:e,gradients:t,settings:n})=>n.map(({colorValue:n,gradientValue:o,label:c,colors:i,gradients:l},a)=>{if(!n&&!o)return null;let s;if(n){const t=te(i||e,n);s=Object(b.sprintf)(Ke,c.toLowerCase(),t&&t.name||n)}else{const e=ie(l||t,n);s=Object(b.sprintf)($e,c.toLowerCase(),e&&e.name||o)}return Object(r.createElement)(m.ColorIndicator,{key:a,colorValue:n||o,"aria-label":s})}),Xe=({className:e,colors:t,gradients:n,disableCustomColors:c,disableCustomGradients:a,children:s,settings:u,title:d,...b})=>{if(Object(l.isEmpty)(t)&&Object(l.isEmpty)(n)&&c&&a&&Object(l.every)(u,e=>Object(l.isEmpty)(e.colors)&&Object(l.isEmpty)(e.gradients)&&(void 0===e.disableCustomColors||e.disableCustomColors)&&(void 0===e.disableCustomGradients||e.disableCustomGradients)))return null;const p=Object(r.createElement)("span",{className:"block-editor-panel-color-gradient-settings__panel-title"},d,Object(r.createElement)(Ye,{colors:t,gradients:n,settings:u}));return Object(r.createElement)(m.PanelBody,Object(o.a)({className:i()("block-editor-panel-color-gradient-settings",e),title:p},b),u.map((e,i)=>Object(r.createElement)(fe,Object(o.a)({key:i,colors:t,gradients:n,disableCustomColors:c,disableCustomGradients:a},e))),s)},Qe=e=>{const t={};return t.colors=Object(Q.a)("color.palette"),t.gradients=Object(Q.a)("color.gradients"),t.disableCustomColors=!Object(Q.a)("color.custom"),t.disableCustomGradients=!Object(Q.a)("color.customGradient"),Object(r.createElement)(Xe,Object(o.a)({},t,e))};
52
  // 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)
53
+ var Ze=e=>Object(l.every)(qe,t=>e.hasOwnProperty(t))?Object(r.createElement)(Xe,e):Object(r.createElement)(Qe,e),Je=n(33);function et({tinyBackgroundColor:e,tinyTextColor:t,backgroundColor:n,textColor:o}){const c=e.getBrightness()<t.getBrightness()?Object(b.__)("This color combination may be hard for people to read. Try using a darker background color and/or a brighter text color."):Object(b.__)("This color combination may be hard for people to read. Try using a brighter background color and/or a darker text color.");return Object(r.useEffect)(()=>{Object(Je.speak)(Object(b.__)("This color combination may be hard for people to read."))},[n,o]),Object(r.createElement)("div",{className:"block-editor-contrast-checker"},Object(r.createElement)(m.Notice,{spokenMessage:null,status:"warning",isDismissible:!1},c))}var tt=function({backgroundColor:e,fallbackBackgroundColor:t,fallbackTextColor:n,fontSize:o,isLargeText:c,textColor:i}){if(!e&&!t||!i&&!n)return null;const l=J()(e||t),a=J()(i||n);return 1!==l.getAlpha()||1!==a.getAlpha()||J.a.isReadable(l,a,{level:"AA",size:c||!1!==c&&o>=24?"large":"small"})?null:Object(r.createElement)(et,{backgroundColor:e,textColor:i,tinyBackgroundColor:l,tinyTextColor:a})},nt=n(73);function ot(e){return e.ownerDocument.defaultView.getComputedStyle(e)}function rt({settings:e,clientId:t,enableContrastChecking:n=!0}){const[o,c]=Object(r.useState)(),[i,l]=Object(r.useState)(),a=Object(nt.b)(t);return Object(r.useEffect)(()=>{if(!n)return;if(!a.current)return;l(ot(a.current).color);let e=a.current,t=ot(e).backgroundColor;for(;"rgba(0, 0, 0, 0)"===t&&e.parentNode&&e.parentNode.nodeType===e.parentNode.ELEMENT_NODE;)e=e.parentNode,t=ot(e).backgroundColor;c(t)}),Object(r.createElement)(K,null,Object(r.createElement)(Ze,{title:Object(b.__)("Color"),initialOpen:!1,settings:e},n&&Object(r.createElement)(tt,{backgroundColor:o,textColor:i})))}const ct=[],it=e=>{const t=Object(u.getBlockSupport)(e,"color");return t&&(!0===t.link||!0===t.gradient||!1!==t.background||!1!==t.text)},lt=e=>{const t=Object(u.getBlockSupport)(e,"color");return null==t?void 0:t.__experimentalSkipSerialization},at=e=>{const t=Object(u.getBlockSupport)(e,"color");return Object(l.isObject)(t)&&!!t.gradients};function st(e,t,n){var o,r,c,l,a,s;if(!it(t)||lt(t))return e;const u=at(t),{backgroundColor:d,textColor:b,gradient:m,style:p}=n,f=ne("background-color",d),g=re(m),h=ne("color",b),O=i()(e.className,h,g,{[f]:!(u&&null!=p&&null!==(o=p.color)&&void 0!==o&&o.gradient||!f),"has-text-color":b||(null==p||null===(r=p.color)||void 0===r?void 0:r.text),"has-background":d||(null==p||null===(c=p.color)||void 0===c?void 0:c.background)||u&&(m||(null==p||null===(l=p.color)||void 0===l?void 0:l.gradient)),"has-link-color":null==p||null===(a=p.elements)||void 0===a||null===(s=a.link)||void 0===s?void 0:s.color});return e.className=O||void 0,e}const ut=(e,t)=>{const n=/var:preset\|color\|(.+)/.exec(t);return n&&n[1]?ee(e,n[1]).color:t};function dt(e){var t,n,o,c,i,a,s,d,m;const{name:p,attributes:f}=e,g=Object(Q.a)("color.palette")||ct,h=Object(Q.a)("color.gradients")||ct,O=Object(Q.a)("color.custom"),j=Object(Q.a)("color.customGradient"),v=Object(Q.a)("color.link"),k=Object(r.useRef)(f);if(Object(r.useEffect)(()=>{k.current=f},[f]),!it(p))return null;const _=(e=>{if("web"!==r.Platform.OS)return!1;const t=Object(u.getBlockSupport)(e,"color");return Object(l.isObject)(t)&&!!t.link})(p)&&v&&(g.length>0||O),y=(e=>{const t=Object(u.getBlockSupport)(e,"color");return t&&!1!==t.text})(p)&&(g.length>0||O),E=(e=>{const t=Object(u.getBlockSupport)(e,"color");return t&&!1!==t.background})(p)&&(g.length>0||O),C=at(p)&&(h.length>0||j);if(!(_||y||E||C))return null;const{style:S,textColor:w,backgroundColor:B,gradient:I}=f;let x;if(C&&I)x=ce(h,I);else if(C){var T;x=null==S||null===(T=S.color)||void 0===T?void 0:T.gradient}const N=t=>n=>{var o,r;const c=te(g,n),i=t+"Color",l={...k.current.style,color:{...null===(o=k.current)||void 0===o||null===(r=o.style)||void 0===r?void 0:r.color,[t]:null!=c&&c.slug?void 0:n}},a=null!=c&&c.slug?c.slug:void 0,s={style:ge(l),[i]:a};e.setAttributes(s),k.current={...k.current,...s}};return Object(r.createElement)(rt,{enableContrastChecking:!("web"!==r.Platform.OS||I||null!=S&&null!==(t=S.color)&&void 0!==t&&t.gradient),clientId:e.clientId,settings:[...y?[{label:Object(b.__)("Text color"),onColorChange:N("text"),colorValue:ee(g,w,null==S||null===(n=S.color)||void 0===n?void 0:n.text).color}]:[],...E||C?[{label:Object(b.__)("Background color"),onColorChange:E?N("background"):void 0,colorValue:ee(g,B,null==S||null===(o=S.color)||void 0===o?void 0:o.background).color,gradientValue:x,onGradientChange:C?t=>{const n=le(h,t);let o;if(n){var r,c,i;const e={...null===(r=k.current)||void 0===r?void 0:r.style,color:{...null===(c=k.current)||void 0===c||null===(i=c.style)||void 0===i?void 0:i.color,gradient:void 0}};o={style:ge(e),gradient:n}}else{var l,a,s;const e={...null===(l=k.current)||void 0===l?void 0:l.style,color:{...null===(a=k.current)||void 0===a||null===(s=a.style)||void 0===s?void 0:s.color,gradient:t}};o={style:ge(e),gradient:void 0}}e.setAttributes(o),k.current={...k.current,...o}}:void 0}]:[],..._?[{label:Object(b.__)("Link Color"),onColorChange:t=>{const n=te(g,t),o=null!=n&&n.slug?"var:preset|color|"+n.slug:t,r=function(e,t,n){return Object(l.setWith)(e?Object(l.clone)(e):{},["elements","link","color","text"],n,l.clone)}(S,0,o);e.setAttributes({style:r})},colorValue:ut(g,null==S||null===(c=S.elements)||void 0===c||null===(i=c.link)||void 0===i||null===(a=i.color)||void 0===a?void 0:a.text),clearable:!(null==S||null===(s=S.elements)||void 0===s||null===(d=s.link)||void 0===d||null===(m=d.color)||void 0===m||!m.text)}]:[]]})}const bt=Object(a.createHigherOrderComponent)(e=>t=>{var n,c,i;const{name:l,attributes:a}=t,{backgroundColor:s,textColor:u}=a,d=Object(Q.a)("color.palette")||ct;if(!it(l)||lt(l))return Object(r.createElement)(e,t);const b={color:u?null===(n=ee(d,u))||void 0===n?void 0:n.color:void 0,backgroundColor:s?null===(c=ee(d,s))||void 0===c?void 0:c.color:void 0};let m=t.wrapperProps;return m={...t.wrapperProps,style:{...b,...null===(i=t.wrapperProps)||void 0===i?void 0:i.style}},Object(r.createElement)(e,Object(o.a)({},t,{wrapperProps:m}))});Object(s.addFilter)("blocks.registerBlockType","core/color/addAttribute",(function(e){return it(e)?(e.attributes.backgroundColor||Object.assign(e.attributes,{backgroundColor:{type:"string"}}),e.attributes.textColor||Object.assign(e.attributes,{textColor:{type:"string"}}),at(e)&&!e.attributes.gradient&&Object.assign(e.attributes,{gradient:{type:"string"}}),e):e})),Object(s.addFilter)("blocks.getSaveContent.extraProps","core/color/addSaveProps",st),Object(s.addFilter)("blocks.registerBlockType","core/color/addEditProps",(function(e){if(!it(e)||lt(e))return e;const t=e.getEditWrapperProps;return e.getEditWrapperProps=n=>{let o={};return t&&(o=t(n)),st(o,e,n)},e})),Object(s.addFilter)("editor.BlockListBlock","core/color/with-color-palette-styles",bt);var mt=Object(r.createElement)(p.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(p.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"})),pt=n(380);const ft=[{name:Object(b.__)("Underline"),value:"underline",icon:mt},{name:Object(b.__)("Strikethrough"),value:"line-through",icon:pt.a}];function gt({value:e,onChange:t}){return Object(r.createElement)("fieldset",{className:"block-editor-text-decoration-control"},Object(r.createElement)("legend",null,Object(b.__)("Decoration")),Object(r.createElement)("div",{className:"block-editor-text-decoration-control__buttons"},ft.map(n=>Object(r.createElement)(m.Button,{key:n.value,icon:n.icon,isSmall:!0,isPressed:n.value===e,onClick:()=>t(n.value===e?void 0:n.value),"aria-label":n.name}))))}function ht(e){var t;const{attributes:{style:n},setAttributes:o}=e;return Ot(e)?null:Object(r.createElement)(gt,{value:null==n||null===(t=n.typography)||void 0===t?void 0:t.textDecoration,onChange:function(e){o({style:ge({...n,typography:{...null==n?void 0:n.typography,textDecoration:e}})})}})}function Ot({name:e}={}){const t=!Object(u.hasBlockSupport)(e,"typography.__experimentalTextDecoration"),n=Object(Q.a)("typography.customTextDecorations");return t||!n}var jt=Object(r.createElement)(p.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(p.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"})),vt=Object(r.createElement)(p.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(p.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"})),kt=Object(r.createElement)(p.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(p.Path,{d:"M7.1 6.8L3.1 18h1.6l1.1-3h4.3l1.1 3h1.6l-4-11.2H7.1zm-.8 6.8L8 8.9l1.7 4.7H6.3zm14.5-1.5c-.3-.6-.7-1.1-1.2-1.5-.6-.4-1.2-.6-1.9-.6-.5 0-.9.1-1.4.3-.4.2-.8.5-1.1.8V6h-1.4v12h1.3l.2-1c.2.4.6.6 1 .8.4.2.9.3 1.4.3.7 0 1.2-.2 1.8-.5.5-.4 1-.9 1.3-1.5.3-.6.5-1.3.5-2.1-.1-.6-.2-1.3-.5-1.9zm-1.7 4c-.4.5-.9.8-1.6.8s-1.2-.2-1.7-.7c-.4-.5-.7-1.2-.7-2.1 0-.9.2-1.6.7-2.1.4-.5 1-.7 1.7-.7s1.2.3 1.6.8c.4.5.6 1.2.6 2 .1.8-.2 1.4-.6 2z"}));const _t=[{name:Object(b.__)("Uppercase"),value:"uppercase",icon:jt},{name:Object(b.__)("Lowercase"),value:"lowercase",icon:vt},{name:Object(b.__)("Capitalize"),value:"capitalize",icon:kt}];function yt({value:e,onChange:t}){return Object(r.createElement)("fieldset",{className:"block-editor-text-transform-control"},Object(r.createElement)("legend",null,Object(b.__)("Letter case")),Object(r.createElement)("div",{className:"block-editor-text-transform-control__buttons"},_t.map(n=>Object(r.createElement)(m.Button,{key:n.value,icon:n.icon,isSmall:!0,isPressed:e===n.value,"aria-label":n.name,onClick:()=>t(e===n.value?void 0:n.value)}))))}function Et(e){var t;const{attributes:{style:n},setAttributes:o}=e;return Ct(e)?null:Object(r.createElement)(yt,{value:null==n||null===(t=n.typography)||void 0===t?void 0:t.textTransform,onChange:function(e){o({style:ge({...n,typography:{...null==n?void 0:n.typography,textTransform:e}})})}})}function Ct({name:e}={}){const t=!Object(u.hasBlockSupport)(e,"typography.__experimentalTextTransform"),n=Object(Q.a)("typography.customTextTransforms");return t||!n}function St(e){const t=!Ot(e),n=!Ct(e);return t||n?Object(r.createElement)("div",{className:"block-editor-text-decoration-and-transform"},t&&Object(r.createElement)(ht,e),n&&Object(r.createElement)(Et,e)):null}var wt=n(14);function Bt({value:e,onChange:t}){const n=function(e){return void 0!==e&&""!==e}(e),o=n?e:"";return Object(r.createElement)("div",{className:"block-editor-line-height-control"},Object(r.createElement)(m.TextControl,{autoComplete:"off",onKeyDown:e=>{const{keyCode:o}=e;o!==wt.ZERO||n||(e.preventDefault(),t("0"))},onChange:e=>{if(n)return void t(e);let o=e;switch(e){case"0.1":o=1.6;break;case"0":o=1.4}t(o)},label:Object(b.__)("Line height"),placeholder:1.5,step:.1,type:"number",value:o,min:0}))}function It(e){var t;const{attributes:{style:n}}=e;return xt(e)?null:Object(r.createElement)(Bt,{value:null==n||null===(t=n.typography)||void 0===t?void 0:t.lineHeight,onChange:t=>{const o={...n,typography:{...null==n?void 0:n.typography,lineHeight:t}};e.setAttributes({style:ge(o)})}})}function xt({name:e}={}){const t=!Object(Q.a)("typography.customLineHeight");return!Object(u.hasBlockSupport)(e,"typography.lineHeight")||t}const Tt=[{name:Object(b.__)("Regular"),value:"normal"},{name:Object(b.__)("Italic"),value:"italic"}],Nt=[{name:Object(b.__)("Thin"),value:"100"},{name:Object(b.__)("Extra Light"),value:"200"},{name:Object(b.__)("Light"),value:"300"},{name:Object(b.__)("Regular"),value:"400"},{name:Object(b.__)("Medium"),value:"500"},{name:Object(b.__)("Semi Bold"),value:"600"},{name:Object(b.__)("Bold"),value:"700"},{name:Object(b.__)("Extra Bold"),value:"800"},{name:Object(b.__)("Black"),value:"900"}];function Lt(e){const{onChange:t,hasFontStyles:n=!0,hasFontWeights:o=!0,value:{fontStyle:c,fontWeight:i}}=e,l=n||o,a={key:"default",name:Object(b.__)("Default"),style:{fontStyle:void 0,fontWeight:void 0}},s=Object(r.useMemo)(()=>n&&o?(()=>{const e=[a];return Tt.forEach(({name:t,value:n})=>{Nt.forEach(({name:o,value:r})=>{const c="normal"===n?o:Object(b.sprintf)(
54
  /* translators: 1: Font weight name. 2: Font style name. */
55
+ Object(b.__)("%1$s %2$s"),o,t);e.push({key:`${n}-${r}`,name:c,style:{fontStyle:n,fontWeight:r}})})}),e})():n?(()=>{const e=[a];return Tt.forEach(({name:t,value:n})=>{e.push({key:n,name:t,style:{fontStyle:n,fontWeight:void 0}})}),e})():(()=>{const e=[a];return Nt.forEach(({name:t,value:n})=>{e.push({key:n,name:t,style:{fontStyle:void 0,fontWeight:n}})}),e})(),[e.options]),u=s.find(e=>e.style.fontStyle===c&&e.style.fontWeight===i);return Object(r.createElement)("fieldset",{className:"components-font-appearance-control"},l&&Object(r.createElement)(m.CustomSelectControl,{className:"components-font-appearance-control__select",label:n?o?Object(b.__)("Appearance"):Object(b.__)("Font style"):Object(b.__)("Font weight"),options:s,value:u,onChange:({selectedItem:e})=>t(e.style)}))}function Rt(e){var t,n;const{attributes:{style:o},setAttributes:c}=e,i=!Pt(e),l=!At(e);if(!i&&!l)return null;const a=null==o||null===(t=o.typography)||void 0===t?void 0:t.fontStyle,s=null==o||null===(n=o.typography)||void 0===n?void 0:n.fontWeight;return Object(r.createElement)(Lt,{onChange:e=>{c({style:ge({...o,typography:{...null==o?void 0:o.typography,fontStyle:e.fontStyle,fontWeight:e.fontWeight}})})},hasFontStyles:i,hasFontWeights:l,value:{fontStyle:a,fontWeight:s}})}function Pt({name:e}={}){const t=Object(u.hasBlockSupport)(e,"typography.__experimentalFontStyle"),n=Object(Q.a)("typography.customFontStyle");return!t||!n}function At({name:e}={}){const t=Object(u.hasBlockSupport)(e,"typography.__experimentalFontWeight"),n=Object(Q.a)("typography.customFontWeight");return!t||!n}function Mt(e){const t=Pt(e),n=At(e);return t&&n}function Dt({value:e="",onChange:t,fontFamilies:n,...c}){const i=Object(Q.a)("typography.fontFamilies");if(n||(n=i),Object(l.isEmpty)(n))return null;const a=[{value:"",label:Object(b.__)("Default")},...n.map(({fontFamily:e,name:t})=>({value:e,label:t||e}))];return Object(r.createElement)(m.SelectControl,Object(o.a)({label:Object(b.__)("Font family"),options:a,value:e,onChange:t,labelPosition:"top"},c))}function Ft({name:e,setAttributes:t,attributes:{style:n={}}}){var o;const c=Object(Q.a)("typography.fontFamilies");if(Vt({name:e}))return null;const i=((e,t)=>{const n=/var:preset\|font-family\|(.+)/.exec(t);if(n&&n[1]){const t=Object(l.find)(e,({slug:e})=>e===n[1]);if(t)return t.fontFamily}return t})(c,null===(o=n.typography)||void 0===o?void 0:o.fontFamily);return Object(r.createElement)(Dt,{className:"block-editor-hooks-font-family-control",fontFamilies:c,value:i,onChange:function(e){const o=Object(l.find)(c,({fontFamily:t})=>t===e);t({style:ge({...n,typography:{...n.typography||{},fontFamily:o?"var:preset|font-family|"+o.slug:e||void 0}})})}})}function Vt({name:e}){const t=Object(Q.a)("typography.fontFamilies");return!t||0===t.length||!Object(u.hasBlockSupport)(e,"typography.__experimentalFontFamily")}var Ht=n(193),zt=n.n(Ht);const Ut=(e,t,n)=>{if(t){const n=Object(l.find)(e,{slug:t});if(n)return n}return{size:n}};function Gt(e,t){return Object(l.find)(e,{size:t})||{size:t}}function Wt(e){if(e)return`has-${Object(l.kebabCase)(e)}-font-size`}var Kt=function(e){const t=Object(Q.a)("typography.fontSizes"),n=!Object(Q.a)("typography.customFontSize");return Object(r.createElement)(m.FontSizePicker,Object(o.a)({},e,{fontSizes:t,disableCustomFontSizes:n}))};function $t(e,t,n){if(!Object(u.hasBlockSupport)(t,"typography.fontSize"))return e;if(Object(u.hasBlockSupport)(t,"typography.__experimentalSkipSerialization"))return e;const o=new zt.a(e.className);o.add(Wt(n.fontSize));const r=o.value;return e.className=r||void 0,e}function qt(e){var t,n;const{attributes:{fontSize:o,style:c},setAttributes:i}=e,l=Yt(e),a=Object(Q.a)("typography.fontSizes");if(l)return null;const s=Ut(a,o,null==c||null===(t=c.typography)||void 0===t?void 0:t.fontSize),u=(null==s?void 0:s.size)||(null==c||null===(n=c.typography)||void 0===n?void 0:n.fontSize)||o;return Object(r.createElement)(Kt,{onChange:e=>{const t=Gt(a,e).slug;i({style:ge({...c,typography:{...null==c?void 0:c.typography,fontSize:t?void 0:e}}),fontSize:t})},value:u})}function Yt({name:e}={}){const t=Object(Q.a)("typography.fontSizes"),n=!(null==t||!t.length);return!Object(u.hasBlockSupport)(e,"typography.fontSize")||!n}const Xt=Object(a.createHigherOrderComponent)(e=>t=>{var n,o;const c=Object(Q.a)("typography.fontSizes"),{name:i,attributes:{fontSize:l,style:a},wrapperProps:s}=t;if(!Object(u.hasBlockSupport)(i,"typography.fontSize")||Object(u.hasBlockSupport)(i,"typography.__experimentalSkipSerialization")||!l||null!=a&&null!==(n=a.typography)&&void 0!==n&&n.fontSize)return Object(r.createElement)(e,t);const d=Ut(c,l,null==a||null===(o=a.typography)||void 0===o?void 0:o.fontSize).size,b={...t,wrapperProps:{...s,style:{fontSize:d,...null==s?void 0:s.style}}};return Object(r.createElement)(e,b)},"withFontSizeInlineStyles");function Qt({value:e,onChange:t}){const n=Object(m.__experimentalUseCustomUnits)({availableUnits:Object(Q.a)("spacing.units")||["px","em","rem"],defaultValues:{px:"2",em:".2",rem:".2"}});return Object(r.createElement)(m.__experimentalUnitControl,{label:Object(b.__)("Letter-spacing"),value:e,__unstableInputWidth:"60px",units:n,onChange:t})}function Zt(e){var t;const{attributes:{style:n},setAttributes:o}=e;return Jt(e)?null:Object(r.createElement)(Qt,{value:null==n||null===(t=n.typography)||void 0===t?void 0:t.letterSpacing,onChange:function(e){o({style:ge({...n,typography:{...null==n?void 0:n.typography,letterSpacing:e}})})}})}function Jt({name:e}={}){const t=!Object(u.hasBlockSupport)(e,"__experimentalLetterSpacing"),n=Object(Q.a)("typography.customLetterSpacing");return t||!n}Object(s.addFilter)("blocks.registerBlockType","core/font/addAttribute",(function(e){return Object(u.hasBlockSupport)(e,"typography.fontSize")?(e.attributes.fontSize||Object.assign(e.attributes,{fontSize:{type:"string"}}),e):e})),Object(s.addFilter)("blocks.getSaveContent.extraProps","core/font/addSaveProps",$t),Object(s.addFilter)("blocks.registerBlockType","core/font/addEditProps",(function(e){if(!Object(u.hasBlockSupport)(e,"typography.fontSize"))return e;const t=e.getEditWrapperProps;return e.getEditWrapperProps=n=>{let o={};return t&&(o=t(n)),$t(o,e,n)},e})),Object(s.addFilter)("editor.BlockListBlock","core/font-size/with-font-size-inline-styles",Xt);const en=["typography.lineHeight","typography.fontSize","typography.__experimentalFontStyle","typography.__experimentalFontWeight","typography.__experimentalFontFamily","typography.__experimentalTextDecoration","typography.__experimentalTextTransform","__experimentalLetterSpacing"];function tn(e){const t=function(e={}){const t=[Mt(e),Yt(e),xt(e),Vt(e),Ot(e),Ct(e),Jt(e)];return t.filter(Boolean).length===t.length}(e),n=nn(e.name);return t||!n?null:Object(r.createElement)(K,null,Object(r.createElement)(m.PanelBody,{title:Object(b.__)("Typography")},Object(r.createElement)(Ft,e),Object(r.createElement)(qt,e),Object(r.createElement)(Rt,e),Object(r.createElement)(It,e),Object(r.createElement)(St,e),Object(r.createElement)(Zt,e)))}const nn=e=>"web"===r.Platform.OS&&en.some(t=>Object(u.hasBlockSupport)(e,t));function on(e){const t=Object(u.getBlockSupport)(e,un);return!!(!0===t||null!=t&&t.margin)}function rn({name:e}={}){const t=!Object(Q.a)("spacing.customMargin");return!on(e)||t}function cn(e){var t;const{name:n,attributes:{style:o},setAttributes:c}=e,i=Object(m.__experimentalUseCustomUnits)({availableUnits:Object(Q.a)("spacing.units")||["%","px","em","rem","vw"]}),l=mn(n,"margin");return rn(e)?null:r.Platform.select({web:Object(r.createElement)(r.Fragment,null,Object(r.createElement)(m.__experimentalBoxControl,{values:null==o||null===(t=o.spacing)||void 0===t?void 0:t.margin,onChange:e=>{const t={...o,spacing:{...null==o?void 0:o.spacing,margin:e}};c({style:ge(t)})},onChangeShowVisualizer:e=>{const t={...o,visualizers:{margin:e}};c({style:ge(t)})},label:Object(b.__)("Margin"),sides:l,units:i})),native:null})}function ln(e){const t=Object(u.getBlockSupport)(e,un);return!!(!0===t||null!=t&&t.padding)}function an({name:e}={}){const t=!Object(Q.a)("spacing.customPadding");return!ln(e)||t}function sn(e){var t;const{name:n,attributes:{style:o},setAttributes:c}=e,i=Object(m.__experimentalUseCustomUnits)({availableUnits:Object(Q.a)("spacing.units")||["%","px","em","rem","vw"]}),l=mn(n,"padding");return an(e)?null:r.Platform.select({web:Object(r.createElement)(r.Fragment,null,Object(r.createElement)(m.__experimentalBoxControl,{values:null==o||null===(t=o.spacing)||void 0===t?void 0:t.padding,onChange:e=>{const t={...o,spacing:{...null==o?void 0:o.spacing,padding:e}};c({style:ge(t)})},onChangeShowVisualizer:e=>{const t={...o,visualizers:{padding:e}};c({style:ge(t)})},label:Object(b.__)("Padding"),sides:l,units:i})),native:null})}const un="spacing";function dn(e){const t=bn(e),n=(o=e.name,"web"===r.Platform.OS&&(ln(o)||on(o)));var o;return t||!n?null:Object(r.createElement)(K,{key:"spacing"},Object(r.createElement)(m.PanelBody,{title:Object(b.__)("Spacing")},Object(r.createElement)(sn,e),Object(r.createElement)(cn,e)))}const bn=(e={})=>{const t=an(e),n=rn(e);return t&&n};function mn(e,t){const n=Object(u.getBlockSupport)(e,un);if("boolean"!=typeof n[t])return n[t]}const pn=[...en,"__experimentalBorder","color",un],fn=e=>pn.some(t=>Object(u.hasBlockSupport)(e,t));function gn(e){return Object(l.startsWith)(e,"var:")?`var(--wp--${e.slice("var:".length).split("|").join("--")})`:e}function hn(e={}){const t={};return Object.keys(u.__EXPERIMENTAL_STYLE_PROPERTY).forEach(n=>{const o=u.__EXPERIMENTAL_STYLE_PROPERTY[n].value,r=u.__EXPERIMENTAL_STYLE_PROPERTY[n].properties;if(Object(l.has)(e,o)&&"elements"!==Object(l.first)(o)){const c=Object(l.get)(e,o);r&&!Object(l.isString)(c)?Object.entries(r).forEach(e=>{const[n,o]=e,r=Object(l.get)(c,[o]);r&&(t[n]=gn(r))}):t[n]=gn(Object(l.get)(e,o))}}),t}const On={"__experimentalBorder.__experimentalSkipSerialization":["border"],"color.__experimentalSkipSerialization":["color"],"typography.__experimentalSkipSerialization":["typography"],[un+".__experimentalSkipSerialization"]:["spacing"]};function jn(e,t,n){if(!fn(t))return e;let{style:o}=n;return Object(l.forEach)(On,(e,n)=>{Object(u.getBlockSupport)(t,n)&&(o=Object(l.omit)(o,e))}),e.style={...hn(o),...e.style},e}const vn=Object(a.createHigherOrderComponent)(e=>t=>{const n=Object(z.a)();return Object(r.createElement)(r.Fragment,null,n&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)(tn,t),Object(r.createElement)(ze,t),Object(r.createElement)(dt,t),Object(r.createElement)(dn,t)),Object(r.createElement)(e,t))},"withToolbarControls"),kn=Object(a.createHigherOrderComponent)(e=>t=>{var n,c;const s=null===(n=t.attributes.style)||void 0===n?void 0:n.elements,d="wp-elements-"+Object(a.useInstanceId)(e),b=function(e,t={}){return Object(l.map)(t,(t,n)=>{const o=hn(t);return Object(l.isEmpty)(o)?"":[`.${e} ${u.__EXPERIMENTAL_ELEMENTS[n]}{`,...Object(l.map)(o,(e,t)=>`\t${Object(l.kebabCase)(t)}: ${e}${"link"===n?"!important":""};`),"}"].join("\n")}).join("\n")}(d,null===(c=t.attributes.style)||void 0===c?void 0:c.elements);return Object(r.createElement)(r.Fragment,null,s&&Object(r.createElement)("style",{dangerouslySetInnerHTML:{__html:b}}),Object(r.createElement)(e,Object(o.a)({},t,{className:s?i()(t.className,d):t.className})))});Object(s.addFilter)("blocks.registerBlockType","core/style/addAttribute",(function(e){return fn(e)?(e.attributes.style||Object.assign(e.attributes,{style:{type:"object"}}),e):e})),Object(s.addFilter)("blocks.getSaveContent.extraProps","core/style/addSaveProps",jn),Object(s.addFilter)("blocks.registerBlockType","core/style/addEditProps",(function(e){if(!fn(e))return e;const t=e.getEditWrapperProps;return e.getEditWrapperProps=n=>{let o={};return t&&(o=t(n)),jn(o,e,n)},e})),Object(s.addFilter)("editor.BlockEdit","core/style/with-block-controls",vn),Object(s.addFilter)("editor.BlockListBlock","core/editor/with-elements-styles",kn);var yn=function({value:e,onChange:t,onToggle:n,duotonePalette:o,colorPalette:c,disableCustomColors:i,disableCustomDuotone:l}){return Object(r.createElement)(m.Popover,{className:"block-editor-duotone-control__popover",headerTitle:Object(b.__)("Duotone"),onFocusOutside:n},Object(r.createElement)(m.MenuGroup,{label:Object(b.__)("Duotone")},Object(r.createElement)(m.DuotonePicker,{colorPalette:c,duotonePalette:o,disableCustomColors:i,disableCustomDuotone:l,value:e,onChange:t})))},En=function({colorPalette:e,duotonePalette:t,disableCustomColors:n,disableCustomDuotone:o,value:c,onChange:i}){const[l,a]=Object(r.useState)(!1),s=()=>{a(e=>!e)};return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(m.ToolbarButton,{showTooltip:!0,onClick:s,"aria-haspopup":"true","aria-expanded":l,onKeyDown:e=>{l||e.keyCode!==wt.DOWN||(e.preventDefault(),s())},label:Object(b.__)("Apply duotone filter"),icon:Object(r.createElement)(m.DuotoneSwatch,{values:c})}),l&&Object(r.createElement)(yn,{value:c,onChange:i,onToggle:s,duotonePalette:t,colorPalette:e,disableCustomColors:n,disableCustomDuotone:o}))},Cn=n(159);const Sn=[];function wn(e=[]){const t={r:[],g:[],b:[]};return e.forEach(e=>{const n=J()(e);t.r.push(n._r/255),t.g.push(n._g/255),t.b.push(n._b/255)}),t}function Bn({selector:e,id:t,values:n}){const o=`\n${e} {\n\tfilter: url( #${t} );\n}\n`;return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(m.SVG,{xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 0 0",width:"0",height:"0",focusable:"false",role:"none",style:{visibility:"hidden",position:"absolute",left:"-9999px",overflow:"hidden"}},Object(r.createElement)("defs",null,Object(r.createElement)("filter",{id:t},Object(r.createElement)("feColorMatrix",{type:"matrix",values:".299 .587 .114 0 0 .299 .587 .114 0 0 .299 .587 .114 0 0 0 0 0 1 0"}),Object(r.createElement)("feComponentTransfer",{colorInterpolationFilters:"sRGB"},Object(r.createElement)("feFuncR",{type:"table",tableValues:n.r.join(" ")}),Object(r.createElement)("feFuncG",{type:"table",tableValues:n.g.join(" ")}),Object(r.createElement)("feFuncB",{type:"table",tableValues:n.b.join(" ")}))))),Object(r.createElement)("style",{dangerouslySetInnerHTML:{__html:o}}))}function In({attributes:e,setAttributes:t}){var n;const o=null==e?void 0:e.style,c=null==o||null===(n=o.color)||void 0===n?void 0:n.duotone,i=Object(Q.a)("color.duotone")||Sn,l=Object(Q.a)("color.palette")||Sn,a=!Object(Q.a)("color.custom"),s=!Object(Q.a)("color.customDuotone")||0===(null==l?void 0:l.length)&&a;return 0===(null==i?void 0:i.length)&&s?null:Object(r.createElement)(d.b,{group:"block"},Object(r.createElement)(En,{duotonePalette:i,colorPalette:l,disableCustomDuotone:s,disableCustomColors:a,value:c,onChange:e=>{const n={...o,color:{...null==o?void 0:o.color,duotone:e}};t({style:n})}}))}const xn=Object(a.createHigherOrderComponent)(e=>t=>{const n=Object(u.hasBlockSupport)(t.name,"color.__experimentalDuotone");return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(e,t),n&&Object(r.createElement)(In,t))},"withDuotoneControls"),Tn=Object(a.createHigherOrderComponent)(e=>t=>{var n,c,l;const s=Object(u.getBlockSupport)(t.name,"color.__experimentalDuotone"),d=null==t||null===(n=t.attributes)||void 0===n||null===(c=n.style)||void 0===c||null===(l=c.color)||void 0===l?void 0:l.duotone;if(!s||!d)return Object(r.createElement)(e,t);const b="wp-duotone-filter-"+Object(a.useInstanceId)(e),m=s.split(",").map(e=>`.${b} ${e.trim()}`).join(", "),p=i()(null==t?void 0:t.className,b),f=Object(r.useContext)(Cn.a.context);return Object(r.createElement)(r.Fragment,null,f&&Object(r.createPortal)(Object(r.createElement)(Bn,{selector:m,id:b,values:wn(d)}),f),Object(r.createElement)(e,Object(o.a)({},t,{className:p})))},"withDuotoneStyles");function Nn({setAttributes:e,attributes:t,name:n}){const{layout:o={}}=t,c=Object(Q.a)("layout");if(!Object(v.useSelect)(e=>{const{getSettings:t}=e(_.a);return t().supportsLayout},[]))return null;const i=(e=>{const t=Object(u.getBlockSupport)(e,"__experimentalLayout");return null==t?void 0:t.allowSwitching})(n),{inherit:l=!1,type:a="default"}=o,s=Object(y.a)(a);return Object(r.createElement)(K,null,Object(r.createElement)(m.PanelBody,{title:Object(b.__)("Layout")},!!c&&Object(r.createElement)(m.ToggleControl,{label:Object(b.__)("Inherit default layout"),checked:!!l,onChange:()=>e({layout:{inherit:!l}})}),!l&&i&&Object(r.createElement)(Ln,{type:a,onChange:t=>e({layout:{type:t}})}),!l&&s&&Object(r.createElement)(s.edit,{layout:o,onChange:t=>e({layout:t})})))}function Ln({type:e,onChange:t}){return Object(r.createElement)(m.ButtonGroup,null,Object(y.b)().map(({name:n,label:o})=>Object(r.createElement)(m.Button,{key:n,isPressed:e===n,onClick:()=>t(n)},o)))}Object(s.addFilter)("blocks.registerBlockType","core/editor/duotone/add-attributes",(function(e){return Object(u.hasBlockSupport)(e,"color.__experimentalDuotone")?(e.attributes.style||Object.assign(e.attributes,{style:{type:"object"}}),e):e})),Object(s.addFilter)("editor.BlockEdit","core/editor/duotone/with-editor-controls",xn),Object(s.addFilter)("editor.BlockListBlock","core/editor/duotone/with-styles",Tn);const Rn=Object(a.createHigherOrderComponent)(e=>t=>{const{name:n}=t;return[Object(u.hasBlockSupport)(n,"__experimentalLayout")&&Object(r.createElement)(Nn,Object(o.a)({key:"layout"},t)),Object(r.createElement)(e,Object(o.a)({key:"edit"},t))]},"withInspectorControls"),Pn=Object(a.createHigherOrderComponent)(e=>t=>{const{name:n,attributes:c}=t,l=Object(u.hasBlockSupport)(n,"__experimentalLayout"),s=Object(a.useInstanceId)(e),d=Object(Q.a)("layout")||{};if(!l)return Object(r.createElement)(e,t);const{layout:b={}}=c,m=b&&b.inherit?d:b,p=i()(null==t?void 0:t.className,"wp-container-"+s),f=Object(r.useContext)(Cn.a.context);return Object(r.createElement)(r.Fragment,null,f&&Object(r.createPortal)(Object(r.createElement)(k.b,{selector:".wp-container-"+s,layout:m}),f),Object(r.createElement)(e,Object(o.a)({},t,{className:p})))});Object(s.addFilter)("blocks.registerBlockType","core/layout/addAttribute",(function(e){return Object(l.has)(e.attributes,["layout","type"])||Object(u.hasBlockSupport)(e,"__experimentalLayout")&&(e.attributes={...e.attributes,layout:{type:"object"}}),e})),Object(s.addFilter)("editor.BlockListBlock","core/editor/layout/with-layout-styles",Pn),Object(s.addFilter)("editor.BlockEdit","core/editor/layout/with-inspector-controls",Rn);const An=[];function Mn({borderColor:e,style:t}){var n;const o=(null==t?void 0:t.border)||{},r=ne("border-color",e);return{className:i()({[r]:!!r,"has-border-color":e||(null==t||null===(n=t.border)||void 0===n?void 0:n.color)})||void 0,style:hn({border:o})}}function Dn(e){const t=Object(Q.a)("color.palette")||An,n=Mn(e);if(e.borderColor){const o=ee(t,e.borderColor);n.style.borderColor=o.color}return n}const Fn=[];function Vn(e){var t,n,o,r,c,l;const{backgroundColor:a,textColor:s,gradient:u,style:d}=e,b=ne("background-color",a),m=ne("color",s),p=re(u),f=p||(null==d||null===(t=d.color)||void 0===t?void 0:t.gradient);return{className:i()(m,p,{[b]:!f&&!!b,"has-text-color":s||(null==d||null===(n=d.color)||void 0===n?void 0:n.text),"has-background":a||(null==d||null===(o=d.color)||void 0===o?void 0:o.background)||u||(null==d||null===(r=d.color)||void 0===r?void 0:r.gradient),"has-link-color":null==d||null===(c=d.elements)||void 0===c||null===(l=c.link)||void 0===l?void 0:l.color})||void 0,style:hn({color:(null==d?void 0:d.color)||{}})}}function Hn(e){const{backgroundColor:t,textColor:n,gradient:o}=e,r=Object(Q.a)("color.palette")||Fn,c=Object(Q.a)("color.gradients")||Fn,i=Vn(e);if(t){const e=ee(r,t);i.style.backgroundColor=e.color}if(o&&(i.style.background=ce(c,o)),n){const e=ee(r,n);i.style.color=e.color}return i}const zn=[];function Un(e,t){const n=Object(l.reduce)(e,(e,t)=>({...e,...Object(l.isString)(t)?{[t]:Object(l.kebabCase)(t)}:t}),{});return Object(a.compose)([t,e=>class extends r.Component{constructor(e){super(e),this.setters=this.createSetters(),this.colorUtils={getMostReadableColor:this.getMostReadableColor.bind(this)},this.state={}}getMostReadableColor(e){const{colors:t}=this.props;return function(e,t){return J.a.mostReadable(t,Object(l.map)(e,"color")).toHexString()}(t,e)}createSetters(){return Object(l.reduce)(n,(e,t,n)=>{const o=Object(l.upperFirst)(n),r="custom"+o;return e["set"+o]=this.createSetColor(n,r),e},{})}createSetColor(e,t){return n=>{const o=te(this.props.colors,n);this.props.setAttributes({[e]:o&&o.slug?o.slug:void 0,[t]:o&&o.slug?void 0:n})}}static getDerivedStateFromProps({attributes:e,colors:t},o){return Object(l.reduce)(n,(n,r,c)=>{const i=ee(t,e[c],e["custom"+Object(l.upperFirst)(c)]),a=o[c];return(null==a?void 0:a.color)===i.color&&a?n[c]=a:n[c]={...i,class:ne(r,i.slug)},n},{})}render(){return Object(r.createElement)(e,Object(o.a)({},this.props,{colors:void 0},this.state,this.setters,{colorUtils:this.colorUtils}))}}])}function Gn(e){return(...t)=>{const n=(e=>Object(a.createHigherOrderComponent)(t=>n=>Object(r.createElement)(t,Object(o.a)({},n,{colors:e})),"withCustomColorPalette"))(e);return Object(a.createHigherOrderComponent)(Un(t,n),"withCustomColors")}}function Wn(...e){const t=Object(a.createHigherOrderComponent)(e=>t=>{const n=Object(Q.a)("color.palette")||zn;return Object(r.createElement)(e,Object(o.a)({},t,{colors:n}))},"withEditorColorPalette");return Object(a.createHigherOrderComponent)(Un(e,t),"withColors")}const Kn=[];var $n=(...e)=>{const t=Object(l.reduce)(e,(e,t)=>(e[t]="custom"+Object(l.upperFirst)(t),e),{});return Object(a.createHigherOrderComponent)(Object(a.compose)([Object(a.createHigherOrderComponent)(e=>t=>{const n=Object(Q.a)("typography.fontSizes")||Kn;return Object(r.createElement)(e,Object(o.a)({},t,{fontSizes:n}))},"withFontSizes"),e=>class extends r.Component{constructor(e){super(e),this.setters=this.createSetters(),this.state={}}createSetters(){return Object(l.reduce)(t,(e,t,n)=>(e["set"+Object(l.upperFirst)(n)]=this.createSetFontSize(n,t),e),{})}createSetFontSize(e,t){return n=>{const o=Object(l.find)(this.props.fontSizes,{size:Number(n)});this.props.setAttributes({[e]:o&&o.slug?o.slug:void 0,[t]:o&&o.slug?void 0:n})}}static getDerivedStateFromProps({attributes:e,fontSizes:n},o){const r=(t,n)=>!o[n]||(e[n]?e[n]!==o[n].slug:o[n].size!==e[t]);if(!Object(l.some)(t,r))return null;const c=Object(l.reduce)(Object(l.pickBy)(t,r),(t,o,r)=>{const c=e[r],i=Ut(n,c,e[o]);return t[r]={...i,class:Wt(c)},t},{});return{...o,...c}}render(){return Object(r.createElement)(e,Object(o.a)({},this.props,{fontSizes:void 0},this.state,this.setters))}}]),"withFontSizes")},qn=n(381),Yn=n(382),Xn=n(383);const Qn=[{icon:qn.a,title:Object(b.__)("Align text left"),align:"left"},{icon:Yn.a,title:Object(b.__)("Align text center"),align:"center"},{icon:Xn.a,title:Object(b.__)("Align text right"),align:"right"}],Zn={position:"bottom right",isAlternate:!0};var Jn=function({value:e,onChange:t,alignmentControls:n=Qn,label:c=Object(b.__)("Align"),describedBy:i=Object(b.__)("Change text alignment"),isCollapsed:a=!0,isToolbar:s}){function u(n){return()=>t(e===n?void 0:n)}const d=Object(l.find)(n,t=>t.align===e),p=s?m.ToolbarGroup:m.ToolbarDropdownMenu,f=s?{isCollapsed:a}:{};return Object(r.createElement)(p,Object(o.a)({icon:d?d.icon:Object(b.isRTL)()?Xn.a:qn.a,label:c,toggleProps:{describedBy:i},popoverProps:Zn,controls:n.map(t=>{const{align:n}=t,o=e===n;return{...t,isActive:o,role:a?"menuitemradio":void 0,onClick:u(n)}})},f))};function eo(e){return Object(r.createElement)(Jn,Object(o.a)({},e,{isToolbar:!1}))}function to(e){return Object(r.createElement)(Jn,Object(o.a)({},e,{isToolbar:!0}))}var no=n(194),oo=n(106),ro=n(55),co={name:"blocks",className:"block-editor-autocompleters__block",triggerPrefix:"/",useItems(e){const{rootClientId:t,selectedBlockName:n}=Object(v.useSelect)(e=>{const{getSelectedBlockClientId:t,getBlockName:n,getBlockInsertionPoint:o}=e(_.a),r=t();return{selectedBlockName:r?n(r):null,rootClientId:o().rootClientId}},[]),[o,c,i]=Object(oo.a)(t,l.noop),a=Object(r.useMemo)(()=>(e.trim()?Object(no.a)(o,c,i,e):Object(l.orderBy)(o,["frecency"],["desc"])).filter(e=>e.name!==n).slice(0,9),[e,n,o,c,i]);return[Object(r.useMemo)(()=>a.map(e=>{const{title:t,icon:n,isDisabled:o}=e;return{key:"block-"+e.id,value:e,label:Object(r.createElement)(r.Fragment,null,Object(r.createElement)(ro.a,{key:"icon",icon:n,showColors:!0}),t),isDisabled:o}}),[a])]},allowContext:(e,t)=>!(/\S/.test(e)||/\S/.test(t)),getOptionCompletion(e){const{name:t,initialAttributes:n,innerBlocks:o}=e;return{action:"replace",value:Object(u.createBlock)(t,n,Object(u.createBlocksFromInnerBlocksTemplate)(o))}}};const io=[];function lo({completers:e=io}){const{name:t}=Object(M.b)();return Object(r.useMemo)(()=>{let n=e;return t===Object(u.getDefaultBlockName)()&&(n=n.concat([co])),Object(s.hasFilter)("editor.Autocomplete.completers")&&(n===e&&(n=n.map(l.clone)),n=Object(s.applyFilters)("editor.Autocomplete.completers",n,t)),n},[e,t])}var ao=function(e){return Object(r.createElement)(m.Autocomplete,Object(o.a)({},e,{completers:lo(e)}))},so=Object(r.createElement)(p.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(p.Path,{d:"M4.2 9h1.5V5.8H9V4.2H4.2V9zm14 9.2H15v1.5h4.8V15h-1.5v3.2zM15 4.2v1.5h3.2V9h1.5V4.2H15zM5.8 15H4.2v4.8H9v-1.5H5.8V15z"})),uo=function({isActive:e,label:t=Object(b.__)("Toggle full height"),onToggle:n,isDisabled:o}){return Object(r.createElement)(m.ToolbarButton,{isActive:e,icon:so,label:t,onClick:()=>n(!e),disabled:o})},bo=function(e){const{label:t=Object(b.__)("Change matrix alignment"),onChange:n=l.noop,value:o="center",isDisabled:c}=e,i=Object(r.createElement)(m.__experimentalAlignmentMatrixControl.Icon,{value:o});return Object(r.createElement)(m.Dropdown,{position:"bottom right",className:"block-editor-block-alignment-matrix-control",popoverProps:{className:"block-editor-block-alignment-matrix-control__popover",isAlternate:!0},renderToggle:({onToggle:e,isOpen:n})=>Object(r.createElement)(m.ToolbarButton,{onClick:e,"aria-haspopup":"true","aria-expanded":n,onKeyDown:t=>{n||t.keyCode!==wt.DOWN||(t.preventDefault(),e())},label:t,icon:i,showTooltip:!0,disabled:c}),renderContent:()=>Object(r.createElement)(m.__experimentalAlignmentMatrixControl,{hasFocusBorder:!1,onChange:n,value:o})})},mo=n(113),po=Object(r.createElement)(p.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(p.Path,{d:"M10.8622 8.04053L14.2805 12.0286L10.8622 16.0167L9.72327 15.0405L12.3049 12.0286L9.72327 9.01672L10.8622 8.04053Z"})),fo=n(101),go=function({rootLabelText:e}){const{selectBlock:t,clearSelectedBlock:n}=Object(v.useDispatch)(_.a),{clientId:o,parents:c,hasSelection:i}=Object(v.useSelect)(e=>{const{getSelectionStart:t,getSelectedBlockClientId:n,getBlockParents:o}=e(_.a),r=n();return{parents:o(r),clientId:r,hasSelection:!!t().clientId}},[]),l=e||Object(b.__)("Document");return Object(r.createElement)("ul",{className:"block-editor-block-breadcrumb",role:"list","aria-label":Object(b.__)("Block breadcrumb")},Object(r.createElement)("li",{className:i?void 0:"block-editor-block-breadcrumb__current","aria-current":i?void 0:"true"},i&&Object(r.createElement)(m.Button,{className:"block-editor-block-breadcrumb__button",variant:"tertiary",onClick:n},l),!i&&l,!!o&&Object(r.createElement)(mo.a,{icon:po,className:"block-editor-block-breadcrumb__separator"})),c.map(e=>Object(r.createElement)("li",{key:e},Object(r.createElement)(m.Button,{className:"block-editor-block-breadcrumb__button",variant:"tertiary",onClick:()=>t(e)},Object(r.createElement)(fo.a,{clientId:e})),Object(r.createElement)(mo.a,{icon:po,className:"block-editor-block-breadcrumb__separator"}))),!!o&&Object(r.createElement)("li",{className:"block-editor-block-breadcrumb__current","aria-current":"true"},Object(r.createElement)(fo.a,{clientId:o})))};function ho({clientId:e,tagName:t="div",wrapperProps:n,className:c}){const[l,a]=Object(r.useState)(!0),[s,u]=Object(r.useState)(!1),{isParentSelected:d,hasChildSelected:b,isDraggingBlocks:m,isParentHighlighted:p}=Object(v.useSelect)(t=>{const{isBlockSelected:n,hasSelectedInnerBlock:o,isDraggingBlocks:r,isBlockHighlighted:c}=t(_.a);return{isParentSelected:n(e),hasChildSelected:o(e,!0),isDraggingBlocks:r(),isParentHighlighted:c(e)}},[e]),f=i()("block-editor-block-content-overlay",null==n?void 0:n.className,c,{"overlay-active":l,"parent-highlighted":p,"is-dragging-blocks":m});return Object(r.useEffect)(()=>{d||b||l||a(!0),d&&!s&&l&&a(!1),b&&l&&a(!1)},[d,b,l,s]),Object(r.createElement)(t,Object(o.a)({},n,{className:f,onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1)}),l&&Object(r.createElement)("div",{className:"block-editor-block-content-overlay__overlay",onMouseUp:()=>a(!1)}),null==n?void 0:n.children)}var Oo=n(152);const jo=()=>Object(r.createElement)(m.SVG,{xmlns:"https://www.w3.org/2000/svg",viewBox:"0 0 20 20"},Object(r.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"})),vo=({style:e,className:t})=>Object(r.createElement)("div",{className:"block-library-colors-selector__icon-container"},Object(r.createElement)("div",{className:t+" block-library-colors-selector__state-selection",style:e},Object(r.createElement)(jo,null))),ko=({TextColor:e,BackgroundColor:t})=>({onToggle:n,isOpen:o})=>Object(r.createElement)(m.ToolbarGroup,null,Object(r.createElement)(m.ToolbarButton,{className:"components-toolbar__control block-library-colors-selector__toggle",label:Object(b.__)("Open Colors Selector"),onClick:n,onKeyDown:e=>{o||e.keyCode!==wt.DOWN||(e.preventDefault(),n())},icon:Object(r.createElement)(t,null,Object(r.createElement)(e,null,Object(r.createElement)(vo,null)))}));var _o=({children:e,...t})=>Object(r.createElement)(m.Dropdown,{position:"bottom right",className:"block-library-colors-selector",contentClassName:"block-library-colors-selector__popover",renderToggle:ko(t),renderContent:()=>e}),yo=n(142),Eo=n(248),Co=n(201),So=n(133),wo=n(224);const Bo=Object(So.animated)(m.__experimentalTreeGridRow);function Io({isSelected:e,position:t,level:n,rowCount:c,children:l,className:a,path:s,...u}){const d=Object(wo.a)({isSelected:e,adjustScrolling:!1,enableAnimation:!0,triggerAnimationOnChange:s.join("_")});return Object(r.createElement)(Bo,Object(o.a)({ref:d,className:i()("block-editor-list-view-leaf",a),level:n,positionInSet:t,setSize:c},u),l)}var xo=n(172);const To=Object(r.createContext)({__experimentalFeatures:!1,__experimentalPersistentListViewFeatures:!1}),No=()=>Object(r.useContext)(To);var Lo=n(168),Ro=n(86);const Po=(e,t,n)=>Object(b.sprintf)(
56
  /* translators: 1: The numerical position of the block. 2: The total number of blocks. 3. The level of nesting for the block. */
57
+ Object(b.__)("Block %1$d of %2$d, Level %3$d"),e,t,n),Ao=(e,t)=>Object(l.isArray)(t)&&t.length?-1!==t.indexOf(e):t===e;function Mo({onClick:e}){return Object(r.createElement)("span",{className:"block-editor-list-view__expander",onClick:t=>e(t,{forceToggle:!0}),"aria-hidden":"true"},Object(r.createElement)(mo.a,{icon:po}))}var Do=Object(r.forwardRef)((function e({className:t,block:{clientId:n},isSelected:o,onClick:c,onToggleExpanded:l,position:s,siblingBlockCount:u,level:d,tabIndex:p,onFocus:f,onDragStart:g,onDragEnd:h,draggable:O},j){const v=Object(Ro.a)(n),k="list-view-block-select-button__"+Object(a.useInstanceId)(e),_=Po(s,u,d);return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(m.Button,{className:i()("block-editor-list-view-block-select-button",t),onClick:c,"aria-describedby":k,ref:j,tabIndex:p,onFocus:f,onDragStart:g,onDragEnd:h,draggable:O},Object(r.createElement)(Mo,{onClick:l}),Object(r.createElement)(ro.a,{icon:null==v?void 0:v.icon,showColors:!0}),Object(r.createElement)(fo.a,{clientId:n}),(null==v?void 0:v.anchor)&&Object(r.createElement)("span",{className:"block-editor-list-view-block-select-button__anchor"},v.anchor),o&&Object(r.createElement)(m.VisuallyHidden,null,Object(b.__)("(selected block)"))),Object(r.createElement)("div",{className:"block-editor-list-view-block-select-button__description",id:k},_))}));const Fo=e=>"ListViewBlock-"+e;var Vo=Object(r.forwardRef)((function e(t,n){const{clientId:c}=t.block,{name:l}=Object(v.useSelect)(e=>e(_.a).getBlockName(c),[c]),s=Object(a.useInstanceId)(e);return Object(r.createElement)(m.Slot,{name:Fo(c)},e=>{if(!e.length)return Object(r.createElement)(Do,Object(o.a)({ref:n},t));const{className:c,isSelected:a,position:d,siblingBlockCount:p,level:f,tabIndex:g,onFocus:h,onToggleExpanded:O}=t,j=Object(u.getBlockType)(l),v="list-view-block-slot__"+s,k=Po(d,p,f),_={tabIndex:g,onFocus:h,ref:n,"aria-describedby":v};return Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:i()("block-editor-list-view-block-slot",c)},Object(r.createElement)(Mo,{onClick:O}),Object(r.createElement)(ro.a,{icon:j.icon,showColors:!0}),r.Children.map(e,e=>Object(r.cloneElement)(e,{...e.props,..._})),a&&Object(r.createElement)(m.VisuallyHidden,null,Object(b.__)("(selected block)")),Object(r.createElement)("div",{className:"block-editor-list-view-block-slot__description",id:v},k)))})}));const Ho=e=>{const{clientId:t}=Object(r.useContext)(Lo.a);return Object(r.createElement)(m.Fill,Object(o.a)({},e,{name:Fo(t)}))};var zo=n(169),Uo=Object(r.forwardRef)(({onClick:e,onToggleExpanded:t,block:n,isSelected:c,position:l,siblingBlockCount:a,level:s,...u},d)=>{const{__experimentalFeatures:b}=No(),{clientId:m}=n,{blockMovingClientId:p,selectedBlockInBlockEditor:f}=Object(v.useSelect)(e=>{const{getBlockRootClientId:t,hasBlockMovingClientId:n,getSelectedBlockClientId:o}=e(_.a);return{rootClientId:t(m)||"",blockMovingClientId:n(),selectedBlockInBlockEditor:o()}},[m]),g=p&&f===m,h=i()("block-editor-list-view-block-contents",{"is-dropping-before":g});return Object(r.createElement)(zo.a,{clientIds:[n.clientId]},({draggable:i,onDragStart:m,onDragEnd:p})=>b?Object(r.createElement)(Vo,Object(o.a)({ref:d,className:h,block:n,onToggleExpanded:t,isSelected:c,position:l,siblingBlockCount:a,level:s,draggable:i&&b,onDragStart:m,onDragEnd:p},u)):Object(r.createElement)(Do,Object(o.a)({ref:d,className:h,block:n,onClick:e,onToggleExpanded:t,isSelected:c,position:l,siblingBlockCount:a,level:s,draggable:i,onDragStart:m,onDragEnd:p},u)))}),Go=n(242);function Wo({block:e,isSelected:t,isBranchSelected:n,isLastOfSelectedBranch:o,onClick:c,onToggleExpanded:l,position:a,level:s,rowCount:u,siblingBlockCount:d,showBlockMovers:p,path:f,isExpanded:g}){const h=Object(r.useRef)(null),[O,j]=Object(r.useState)(!1),{clientId:k}=e,{isDragging:y,blockParents:E}=Object(v.useSelect)(e=>{const{isBlockBeingDragged:t,isAncestorBeingDragged:n,getBlockParents:o}=e(_.a);return{isDragging:t(k)||n(k),blockParents:o(k)}},[k]),{selectBlock:C,toggleBlockHighlight:S}=Object(v.useDispatch)(_.a),w=p&&d>0,B=i()("block-editor-list-view-block__mover-cell",{"is-visible":O}),{__experimentalFeatures:I,__experimentalPersistentListViewFeatures:x,isTreeGridMounted:T}=No(),N=i()("block-editor-list-view-block__menu-cell",{"is-visible":O});Object(r.useEffect)(()=>{x&&!T&&t&&h.current.focus()},[]),Object(r.useEffect)(()=>{I&&t&&h.current.focus()},[I,t]);const L=x?S:()=>{},R=()=>{j(!0),L(k,!0)},P=()=>{j(!1),L(k,!1)},A=i()({"is-selected":t,"is-branch-selected":x&&n,"is-last-of-selected-branch":x&&o,"is-dragging":y});return Object(r.createElement)(Io,{className:A,onMouseEnter:R,onMouseLeave:P,onFocus:R,onBlur:P,level:s,position:a,rowCount:u,path:f,id:"list-view-block-"+k,"data-block":k,isExpanded:g},Object(r.createElement)(m.__experimentalTreeGridCell,{className:"block-editor-list-view-block__contents-cell",colSpan:w?void 0:2,ref:h},({ref:n,tabIndex:o,onFocus:i})=>Object(r.createElement)("div",{className:"block-editor-list-view-block__contents-container"},Object(r.createElement)(Uo,{block:e,onClick:c,onToggleExpanded:l,isSelected:t,position:a,siblingBlockCount:d,level:s,ref:n,tabIndex:o,onFocus:i}))),w&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)(m.__experimentalTreeGridCell,{className:B,withoutGridItem:!0},Object(r.createElement)(m.__experimentalTreeGridItem,null,({ref:e,tabIndex:t,onFocus:n})=>Object(r.createElement)(xo.b,{orientation:"vertical",clientIds:[k],ref:e,tabIndex:t,onFocus:n})),Object(r.createElement)(m.__experimentalTreeGridItem,null,({ref:e,tabIndex:t,onFocus:n})=>Object(r.createElement)(xo.a,{orientation:"vertical",clientIds:[k],ref:e,tabIndex:t,onFocus:n})))),I&&Object(r.createElement)(m.__experimentalTreeGridCell,{className:N},({ref:e,tabIndex:t,onFocus:n})=>Object(r.createElement)(Go.a,{clientIds:[k],icon:Co.a,toggleProps:{ref:e,tabIndex:t,onFocus:n},disableOpenOnArrowDown:!0,__experimentalSelectBlock:c},({onClose:e})=>Object(r.createElement)(m.MenuGroup,null,Object(r.createElement)(m.MenuItem,{onClick:async()=>{if(E.length)for(const e of E)await C(e);else await C(null);await C(k),e()}},Object(b.__)("Go to block"))))))}var Ko=n(90);function $o({parentBlockClientId:e,position:t,level:n,rowCount:o,path:c}){const l=Object(v.useSelect)(t=>{const{isBlockBeingDragged:n,isAncestorBeingDragged:o}=t(_.a);return n(e)||o(e)},[e]),s="list-view-appender-row__description_"+Object(a.useInstanceId)($o),u=Object(b.sprintf)(
58
  /* translators: 1: The numerical position of the block that will be inserted. 2: The level of nesting for the block that will be inserted. */
59
+ Object(b.__)("Add block at position %1$d, Level %2$d"),t,n);return Object(r.createElement)(Io,{className:i()({"is-dragging":l}),level:n,position:t,rowCount:o,path:c},Object(r.createElement)(m.__experimentalTreeGridCell,{className:"block-editor-list-view-appender__cell",colSpan:"3"},({ref:t,tabIndex:n,onFocus:o})=>Object(r.createElement)("div",{className:"block-editor-list-view-appender__container"},Object(r.createElement)(Ko.a,{rootClientId:e,__experimentalIsQuick:!0,"aria-describedby":s,toggleProps:{ref:t,tabIndex:n,onFocus:o}}),Object(r.createElement)("div",{className:"block-editor-list-view-appender__description",id:s},u))))}function qo(e){const{blocks:t,selectBlock:n,selectedBlockClientIds:o,showAppender:c,showBlockMovers:i,showNestedBlocks:a,parentBlockClientId:s,level:u=1,terminatedLevels:d=[],path:b=[],isBranchSelected:m=!1,isLastOfBranch:p=!1}=e,f=!s,g=Object(l.compact)(t),h=e=>c&&!f&&Ao(e,o),O=h(s),j=g.length,v=O?j+1:j,k=v,{expandedState:_,expand:y,collapse:E}=No();return Object(r.createElement)(r.Fragment,null,Object(l.map)(g,(e,t)=>{var l;const{clientId:s,innerBlocks:f}=e,g=t+1,O=v===g?[...d,u]:d,k=[...b,g],C=a&&!!f&&!!f.length,S=h(s),w=C||S,B=Ao(s,o),I=m||B&&w,x=t===j-1,T=B||p&&x,N=p&&!w&&x,L=w?null===(l=_[s])||void 0===l||l:void 0;return Object(r.createElement)(r.Fragment,{key:s},Object(r.createElement)(Wo,{block:e,onClick:e=>{e.stopPropagation(),n(s)},onToggleExpanded:e=>{e.stopPropagation(),!0===L?E(s):!1===L&&y(s)},isSelected:B,isBranchSelected:I,isLastOfSelectedBranch:N,level:u,position:g,rowCount:v,siblingBlockCount:j,showBlockMovers:i,terminatedLevels:d,path:k,isExpanded:L}),w&&L&&Object(r.createElement)(qo,{blocks:f,selectedBlockClientIds:o,selectBlock:n,isBranchSelected:I,isLastOfBranch:T,showAppender:c,showBlockMovers:i,showNestedBlocks:a,parentBlockClientId:s,level:u+1,terminatedLevels:O,path:k}))}),O&&Object(r.createElement)($o,{parentBlockClientId:s,position:v,rowCount:k,level:u,terminatedLevels:d,path:[...b,k]}))}function Yo({listViewRef:e,blockDropTarget:t}){const{rootClientId:n,clientId:o,dropPosition:c}=t||{},[i,l]=Object(r.useMemo)(()=>e.current?[n?e.current.querySelector(`[data-block="${n}"]`):void 0,o?e.current.querySelector(`[data-block="${o}"]`):void 0]:[],[n,o]),a=l||i,s=Object(r.useCallback)(()=>{if(!i)return 0;const e=a.getBoundingClientRect();return i.querySelector(".block-editor-block-icon").getBoundingClientRect().right-e.left},[i,a]),u=Object(r.useMemo)(()=>{if(!a)return{};const e=s();return{width:a.offsetWidth-e}},[s,a]),d=Object(r.useCallback)(()=>{if(!a)return{};const e=a.ownerDocument,t=a.getBoundingClientRect(),n=s(),o={left:t.left+n,right:t.right,width:0,height:t.height,ownerDocument:e};return"top"===c?{...o,top:t.top,bottom:t.top}:"bottom"===c||"inside"===c?{...o,top:t.bottom,bottom:t.bottom}:{}},[a,c,s]);return a?Object(r.createElement)(m.Popover,{noArrow:!0,animate:!1,getAnchorRect:d,focusOnMount:!1,className:"block-editor-list-view-drop-indicator"},Object(r.createElement)("div",{style:u,className:"block-editor-list-view-drop-indicator__line"})):null}qo.defaultProps={selectBlock:()=>{}};var Xo=n(222),Qo=n(223);function Zo(e,t){return t.left<=e.x&&t.right>=e.x&&t.top<=e.y&&t.bottom>=e.y}const Jo=["top","bottom"];const er=()=>{},tr=(e,t)=>{switch(t.type){case"expand":return{...e,[t.clientId]:!0};case"collapse":return{...e,[t.clientId]:!1};default:return e}};function nr({blocks:e,showOnlyCurrentHierarchy:t,onSelect:n=er,__experimentalFeatures:c,__experimentalPersistentListViewFeatures:i,...l}){const{clientIdsTree:s,selectedClientIds:u}=function(e,t,n){const o=(e=>Object(v.useSelect)(t=>{const{getSelectedBlockClientId:n,getSelectedBlockClientIds:o}=t(_.a);return e?o():n()},[e]))(n);return{clientIdsTree:((e,t,n)=>Object(v.useSelect)(o=>{const{getBlockHierarchyRootClientId:r,__unstableGetClientIdsTree:c,__unstableGetClientIdWithClientIdsTree:i}=o(_.a);if(e)return e;const l=t&&!Array.isArray(t);if(!n||!l)return c();const a=i(r(t));return a&&(!Ao(a.clientId,t)||a.innerBlocks&&0!==a.innerBlocks.length)?[a]:c()},[e,t,n]))(e,o,t),selectedClientIds:o}}(e,t,i),{selectBlock:d}=Object(v.useDispatch)(_.a),p=Object(r.useCallback)(e=>{d(e),n(e)},[d,n]),[f,g]=Object(r.useReducer)(tr,{}),{ref:h,target:O}=function(){const{getBlockRootClientId:e,getBlockIndex:t,getBlockCount:n,getDraggedBlockClientIds:o,canInsertBlocks:c}=Object(v.useSelect)(_.a),[i,l]=Object(r.useState)(),{rootClientId:s,blockIndex:u}=i||{},d=Object(Qo.a)(s,u),b=o(),m=Object(a.useThrottle)(Object(r.useCallback)((o,r)=>{const i={x:o.clientX,y:o.clientY},a=!(null==b||!b.length),s=function(e,t){let n,o,r,c;for(const i of e){if(i.isDraggedBlock)continue;const l=i.element.getBoundingClientRect(),[a,s]=Object(Xo.a)(t,l,Jo),u=Zo(t,l);if(void 0===r||a<r||u){r=a;const t=e.indexOf(i),d=e[t-1];if("top"===s&&d&&d.rootClientId===i.rootClientId&&!d.isDraggedBlock?(o=d,n="bottom",c=d.element.getBoundingClientRect()):(o=i,n=s,c=l),u)break}}if(!o)return;const i="bottom"===n;if(i&&o.canInsertDraggedBlocksAsChild&&(o.innerBlockCount>0||function(e,t){const n=t.left+t.width/2;return e.x>n}(t,c)))return{rootClientId:o.clientId,blockIndex:0,dropPosition:"inside"};if(!o.canInsertDraggedBlocksAsSibling)return;const l=i?1:0;return{rootClientId:o.rootClientId,clientId:o.clientId,blockIndex:o.blockIndex+l,dropPosition:n}}(Array.from(r.querySelectorAll("[data-block]")).map(o=>{const r=o.dataset.block,i=e(r);return{clientId:r,rootClientId:i,blockIndex:t(r,i),element:o,isDraggedBlock:!!a&&b.includes(r),innerBlockCount:n(r),canInsertDraggedBlocksAsSibling:!a||c(b,i),canInsertDraggedBlocksAsChild:!a||c(b,r)}}),i);s&&l(s)},[b]),200);return{ref:Object(a.__experimentalUseDropZone)({onDrop:d,onDragOver(e){m(e,e.currentTarget)},onDragEnd(){m.cancel(),l(null)}}),target:i}}(),j=Object(r.useRef)(),k=Object(a.useMergeRefs)([j,h]),y=Object(r.useRef)(!1);Object(r.useEffect)(()=>{y.current=!0},[]);const E=e=>{e&&g({type:"expand",clientId:e})},C=e=>{e&&g({type:"collapse",clientId:e})},S=Object(r.useMemo)(()=>({__experimentalFeatures:c,__experimentalPersistentListViewFeatures:i,isTreeGridMounted:y.current,expandedState:f,expand:E,collapse:C}),[c,i,y.current,f,E,C]);return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(Yo,{listViewRef:j,blockDropTarget:O}),Object(r.createElement)(m.__experimentalTreeGrid,{className:"block-editor-list-view-tree","aria-label":Object(b.__)("Block navigation structure"),ref:k,onCollapseRow:e=>{var t;C(null==e||null===(t=e.dataset)||void 0===t?void 0:t.block)},onExpandRow:e=>{var t;E(null==e||null===(t=e.dataset)||void 0===t?void 0:t.block)}},Object(r.createElement)(To.Provider,{value:S},Object(r.createElement)(qo,Object(o.a)({blocks:s,selectBlock:p,selectedBlockClientIds:u},l)))))}function or({isEnabled:e,onToggle:t,isOpen:n,innerRef:c,...i}){return Object(r.createElement)(m.Button,Object(o.a)({},i,{ref:c,icon:Eo.a,"aria-expanded":n,"aria-haspopup":"true",onClick:e?t:void 0
60
+ /* translators: button label text should, if possible, be under 16 characters. */,label:Object(b.__)("List view"),className:"block-editor-block-navigation","aria-disabled":!e}))}var rr=Object(r.forwardRef)((function({isDisabled:e,__experimentalFeatures:t,...n},c){const i=Object(v.useSelect)(e=>!!e(_.a).getBlockCount(),[])&&!e;return Object(r.createElement)(m.Dropdown,{contentClassName:"block-editor-block-navigation__popover",position:"bottom right",renderToggle:({isOpen:e,onToggle:t})=>Object(r.createElement)(or,Object(o.a)({},n,{innerRef:c,isOpen:e,onToggle:t,isEnabled:i})),renderContent:()=>Object(r.createElement)("div",{className:"block-editor-block-navigation__container"},Object(r.createElement)("p",{className:"block-editor-block-navigation__label"},Object(b.__)("List view")),Object(r.createElement)(nr,{showNestedBlocks:!0,showOnlyCurrentHierarchy:!0,__experimentalFeatures:t}))})})),cr=n(259),ir=function({icon:e=cr.a,label:t=Object(b.__)("Choose variation"),instructions:n=Object(b.__)("Select a variation to start with."),variations:o,onSelect:c,allowSkip:l}){const a=i()("block-editor-block-variation-picker",{"has-many-variations":o.length>4});return Object(r.createElement)(m.Placeholder,{icon:e,label:t,instructions:n,className:a},Object(r.createElement)("ul",{className:"block-editor-block-variation-picker__variations",role:"list","aria-label":Object(b.__)("Block variations")},o.map(e=>Object(r.createElement)("li",{key:e.name},Object(r.createElement)(m.Button,{variant:"secondary",icon:e.icon,iconSize:48,onClick:()=>c(e),className:"block-editor-block-variation-picker__variation",label:e.description||e.title}),Object(r.createElement)("span",{className:"block-editor-block-variation-picker__variation-label",role:"presentation"},e.title)))),l&&Object(r.createElement)("div",{className:"block-editor-block-variation-picker__skip"},Object(r.createElement)(m.Button,{variant:"link",onClick:()=>c()},Object(b.__)("Skip"))))},lr=n(79),ar=n(288),sr=n(287),ur=n(386);const dr=({onStartBlank:e,onBlockPatternSelect:t})=>Object(r.createElement)("div",{className:"block-editor-block-pattern-setup__actions"},Object(r.createElement)(m.Button,{onClick:e},Object(b.__)("Start blank")),Object(r.createElement)(m.Button,{variant:"primary",onClick:t},Object(b.__)("Choose"))),br=({handlePrevious:e,handleNext:t,activeSlide:n,totalSlides:o})=>Object(r.createElement)("div",{className:"block-editor-block-pattern-setup__navigation"},Object(r.createElement)(m.Button,{icon:ar.a,label:Object(b.__)("Previous pattern"),onClick:e,disabled:0===n}),Object(r.createElement)(m.Button,{icon:sr.a,label:Object(b.__)("Next pattern"),onClick:t,disabled:n===o-1}));var mr=({viewMode:e,setViewMode:t,handlePrevious:n,handleNext:o,activeSlide:c,totalSlides:i,onBlockPatternSelect:l,onStartBlank:a})=>{const s="carousel"===e,u=Object(r.createElement)("div",{className:"block-editor-block-pattern-setup__display-controls"},Object(r.createElement)(m.Button,{icon:j,label:Object(b.__)("Carousel view"),onClick:()=>t("carousel"),isPressed:s}),Object(r.createElement)(m.Button,{icon:ur.a,label:Object(b.__)("Grid view"),onClick:()=>t("grid"),isPressed:"grid"===e}));return Object(r.createElement)("div",{className:"block-editor-block-pattern-setup__toolbar"},s&&Object(r.createElement)(br,{handlePrevious:n,handleNext:o,activeSlide:c,totalSlides:i}),u,s&&Object(r.createElement)(dr,{onBlockPatternSelect:l,onStartBlank:a}))};const pr=({viewMode:e,activeSlide:t,patterns:n,onBlockPatternSelect:c})=>{const i=Object(m.__unstableUseCompositeState)(),l="block-editor-block-pattern-setup__container";if("carousel"===e){const e=new Map([[t,"active-slide"],[t-1,"previous-slide"],[t+1,"next-slide"]]);return Object(r.createElement)("div",{className:l},Object(r.createElement)("ul",{className:"carousel-container"},n.map((t,n)=>Object(r.createElement)(gr,{className:e.get(n)||"",key:t.name,pattern:t}))))}return Object(r.createElement)(m.__unstableComposite,Object(o.a)({},i,{role:"listbox",className:l,"aria-label":Object(b.__)("Patterns list")}),n.map(e=>Object(r.createElement)(fr,{key:e.name,pattern:e,onSelect:c,composite:i})))};function fr({pattern:e,onSelect:t,composite:n}){const c="block-editor-block-pattern-setup-list",{blocks:i,title:l,description:s,viewportWidth:u=700}=e,d=Object(a.useInstanceId)(fr,c+"__item-description");return Object(r.createElement)("div",{className:c+"__list-item","aria-label":e.title,"aria-describedby":e.description?d:void 0},Object(r.createElement)(m.__unstableCompositeItem,Object(o.a)({role:"option",as:"div"},n,{className:c+"__item",onClick:()=>t(i)}),Object(r.createElement)(lr.a,{blocks:i,viewportWidth:u}),Object(r.createElement)("div",{className:c+"__item-title"},l)),!!s&&Object(r.createElement)(m.VisuallyHidden,{id:d},s))}function gr({className:e,pattern:t}){const{blocks:n,title:o,description:c}=t,i=Object(a.useInstanceId)(gr,"block-editor-block-pattern-setup-list__item-description");return Object(r.createElement)("li",{className:"pattern-slide "+e,"aria-label":o,"aria-describedby":c?i:void 0},Object(r.createElement)(lr.a,{blocks:n,__experimentalLive:!0}),!!c&&Object(r.createElement)(m.VisuallyHidden,{id:i},c))}var hr=({clientId:e,blockName:t,filterPatternsFn:n,startBlankComponent:o,onBlockPatternSelect:c})=>{const[i,l]=Object(r.useState)("carousel"),[a,s]=Object(r.useState)(0),[d,b]=Object(r.useState)(!1),{replaceBlock:m}=Object(v.useDispatch)(_.a),p=function(e,t,n){return Object(v.useSelect)(o=>{const{getBlockRootClientId:r,__experimentalGetPatternsByBlockTypes:c,__experimentalGetAllowedPatterns:i}=o(_.a),l=r(e);return n?i(l).filter(n):c(t,l)},[e,t,n])}(e,t,n);if(null==p||!p.length||d)return o;const f=c||(t=>{const n=t.map(e=>Object(u.cloneBlock)(e));m(e,n)});return Object(r.createElement)("div",{className:"block-editor-block-pattern-setup view-mode-"+i},Object(r.createElement)(mr,{viewMode:i,setViewMode:l,activeSlide:a,totalSlides:p.length,handleNext:()=>{s(e=>e+1)},handlePrevious:()=>{s(e=>e-1)},onBlockPatternSelect:()=>{f(p[a].blocks)},onStartBlank:()=>{b(!0)}}),Object(r.createElement)(pr,{viewMode:i,activeSlide:a,patterns:p,onBlockPatternSelect:f}))},Or=n(200);const jr=(e,t)=>{if(!t||!e)return;const n=t.filter(({attributes:t})=>!(!t||!Object.keys(t).length)&&Object(l.isMatch)(e,t));return 1===n.length?n[0]:void 0};var vr=function({blockClientId:e}){const[t,n]=Object(r.useState)(),{updateBlockAttributes:o}=Object(v.useDispatch)(_.a),{variations:c,blockAttributes:i}=Object(v.useSelect)(t=>{const{getBlockVariations:n}=t(u.store),{getBlockName:o,getBlockAttributes:r}=t(_.a),c=e&&o(e);return{variations:c&&n(c,"transform"),blockAttributes:r(e)}},[e]);if(Object(r.useEffect)(()=>{var e;n(null===(e=jr(i,c))||void 0===e?void 0:e.name)},[i,c]),null==c||!c.length)return null;const l=c.map(({name:e,title:t,description:n})=>({value:e,label:t,info:n})),a=t=>{o(e,{...c.find(({name:e})=>e===t).attributes})},s="block-editor-block-variation-transforms";return Object(r.createElement)(m.DropdownMenu,{className:s,label:Object(b.__)("Transform to variation"),text:Object(b.__)("Transform to variation"),popoverProps:{position:"bottom center",className:s+"__popover"},icon:Or.a,toggleProps:{iconPosition:"right"}},()=>Object(r.createElement)("div",{className:s+"__container"},Object(r.createElement)(m.MenuGroup,null,Object(r.createElement)(m.MenuItemsChoice,{choices:l,value:t,onSelect:a}))))};const kr=Object(r.createElement)(m.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(m.Path,{d:"M15 4H9v11h6V4zM4 18.5V20h16v-1.5H4z"})),_r=Object(r.createElement)(m.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(m.Path,{d:"M20 11h-5V4H9v7H4v1.5h5V20h6v-7.5h5z"})),yr={top:{icon:Object(r.createElement)(m.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(m.Path,{d:"M9 20h6V9H9v11zM4 4v1.5h16V4H4z"})),title:Object(b._x)("Align top","Block vertical alignment setting")},center:{icon:_r,title:Object(b._x)("Align middle","Block vertical alignment setting")},bottom:{icon:kr,title:Object(b._x)("Align bottom","Block vertical alignment setting")}},Er=["top","center","bottom"],Cr={isAlternate:!0};var Sr=function({value:e,onChange:t,controls:n=Er,isCollapsed:c=!0,isToolbar:i}){const l=yr[e],a=yr.top,s=i?m.ToolbarGroup:m.ToolbarDropdownMenu,u=i?{isCollapsed:c}:{};return Object(r.createElement)(s,Object(o.a)({popoverProps:Cr,icon:l?l.icon:a.icon,label:Object(b._x)("Change vertical alignment","Block vertical alignment setting label"),controls:n.map(n=>{return{...yr[n],isActive:e===n,role:c?"menuitemradio":void 0,onClick:(o=n,()=>t(e===o?void 0:o))};var o})},u))};function wr(e){return Object(r.createElement)(Sr,Object(o.a)({},e,{isToolbar:!1}))}function Br(e){return Object(r.createElement)(Sr,Object(o.a)({},e,{isToolbar:!0}))}var Ir=n(144),xr=Object(a.createHigherOrderComponent)(e=>t=>{const n=Object(Q.a)("color.palette"),c=!Object(Q.a)("color.custom"),i=void 0===t.colors?n:t.colors,a=void 0===t.disableCustomColors?c:t.disableCustomColors,s=!Object(l.isEmpty)(i)||!a;return Object(r.createElement)(e,Object(o.a)({},t,{colors:i,disableCustomColors:a,hasColorsToChoose:s}))},"withColorContext"),Tr=xr(m.ColorPalette);function Nr({onChange:e,value:t,...n}){return Object(r.createElement)(fe,Object(o.a)({},n,{onColorChange:e,colorValue:t,gradients:[],disableCustomGradients:!0}))}const Lr=[25,50,75,100];function Rr({imageWidth:e,imageHeight:t,imageSizeOptions:n=[],isResizable:o=!0,slug:c,width:i,height:a,onChange:s,onChangeImage:u=l.noop}){const{currentHeight:d,currentWidth:p,updateDimension:f,updateDimensions:g}=function(e,t,n,o,c){var i,l;const[a,s]=Object(r.useState)(null!==(i=null!=t?t:o)&&void 0!==i?i:""),[u,d]=Object(r.useState)(null!==(l=null!=e?e:n)&&void 0!==l?l:"");return Object(r.useEffect)(()=>{void 0===t&&void 0!==o&&s(o),void 0===e&&void 0!==n&&d(n)},[o,n]),{currentHeight:u,currentWidth:a,updateDimension:(e,t)=>{"width"===e?s(t):d(t),c({[e]:""===t?void 0:parseInt(t,10)})},updateDimensions:(e,t)=>{d(null!=e?e:n),s(null!=t?t:o),c({height:e,width:t})}}}(a,i,t,e,s);return Object(r.createElement)(r.Fragment,null,!Object(l.isEmpty)(n)&&Object(r.createElement)(m.SelectControl,{label:Object(b.__)("Image size"),value:c,options:n,onChange:u}),o&&Object(r.createElement)("div",{className:"block-editor-image-size-control"},Object(r.createElement)("p",{className:"block-editor-image-size-control__row"},Object(b.__)("Image dimensions")),Object(r.createElement)("div",{className:"block-editor-image-size-control__row"},Object(r.createElement)(m.TextControl,{type:"number",className:"block-editor-image-size-control__width",label:Object(b.__)("Width"),value:p,min:1,onChange:e=>f("width",e)}),Object(r.createElement)(m.TextControl,{type:"number",className:"block-editor-image-size-control__height",label:Object(b.__)("Height"),value:d,min:1,onChange:e=>f("height",e)})),Object(r.createElement)("div",{className:"block-editor-image-size-control__row"},Object(r.createElement)(m.ButtonGroup,{"aria-label":Object(b.__)("Image size presets")},Lr.map(n=>{const o=Math.round(e*(n/100)),c=Math.round(t*(n/100)),i=p===o&&d===c;return Object(r.createElement)(m.Button,{key:n,isSmall:!0,variant:i?"primary":void 0,isPressed:i,onClick:()=>g(c,o)},n,"%")})),Object(r.createElement)(m.Button,{isSmall:!0,onClick:()=>g()},Object(b.__)("Reset")))))}var Pr=Object(a.createHigherOrderComponent)(e=>t=>{const{clientId:n}=Object(M.b)();return Object(r.createElement)(e,Object(o.a)({},t,{clientId:n}))},"withClientId"),Ar=Pr(({clientId:e,showSeparator:t,isFloating:n,onAddBlock:o})=>Object(r.createElement)(Ir.b,{rootClientId:e,showSeparator:t,isFloating:n,onAddBlock:o})),Mr=n(154),Dr=Object(a.compose)([Pr,Object(v.withSelect)((e,{clientId:t})=>{const{getBlockOrder:n}=e(_.a),o=n(t);return{lastBlockClientId:Object(l.last)(o)}})])(({clientId:e,lastBlockClientId:t})=>Object(r.createElement)(Mr.a,{rootClientId:e,lastBlockClientId:t})),Fr=n(54),Vr=n.n(Fr);const Hr=new WeakMap;var zr=n(105),Ur=n(230),Gr=n(226);function Wr(e){const{clientId:t,allowedBlocks:n,template:o,templateLock:c,wrapperRef:i,templateInsertUpdatesSelection:a,__experimentalCaptureToolbars:s,__experimentalAppenderTagName:d,renderAppender:b,orientation:m,placeholder:p,__experimentalLayout:f}=e;!function(e,t,n,o,c,i){const{updateBlockListSettings:l}=Object(v.useDispatch)(_.a),{blockListSettings:a,parentLock:s}=Object(v.useSelect)(t=>{const n=t(_.a).getBlockRootClientId(e);return{blockListSettings:t(_.a).getBlockListSettings(e),parentLock:t(_.a).getTemplateLock(n)}},[e]),u=Object(r.useMemo)(()=>t,t);Object(r.useLayoutEffect)(()=>{const t={allowedBlocks:u,templateLock:void 0===n?s:n};if(void 0!==o&&(t.__experimentalCaptureToolbars=o),void 0!==c)t.orientation=c;else{const e=Object(y.a)(null==i?void 0:i.type);t.orientation=e.getOrientation(i)}Vr()(a,t)||l(e,t)},[e,a,u,n,s,o,c,l,i])}(t,n,c,s,m,f),function(e,t,n,o){const{getSelectedBlocksInitialCaretPosition:c}=Object(v.useSelect)(_.a),{replaceInnerBlocks:i}=Object(v.useDispatch)(_.a),a=Object(v.useSelect)(t=>t(_.a).getBlocks(e),[e]),s=Object(r.useRef)(null);Object(r.useLayoutEffect)(()=>{if((0===a.length||"all"===n)&&!Object(l.isEqual)(t,s.current)){s.current=t;const n=Object(u.synchronizeBlocksWithTemplate)(a,t);Object(l.isEqual)(n,a)||i(e,n,0===a.length&&o&&0!==n.length,c())}},[a,t,n,e])}(t,o,c,a);const g=Object(v.useSelect)(e=>{const n=e(_.a).getBlock(t),o=Object(u.getBlockType)(n.name);if(o&&o.providesContext)return function(e,t){Hr.has(t)||Hr.set(t,new WeakMap);const n=Hr.get(t);if(!n.has(e)){const o=Object(l.mapValues)(t.providesContext,t=>e[t]);n.set(e,o)}return n.get(e)}(n.attributes,o)},[t]);return Object(r.createElement)(Oo.a,{value:g},Object(r.createElement)(zr.a,{rootClientId:t,renderAppender:b,__experimentalAppenderTagName:d,__experimentalLayout:f,wrapperRef:i,placeholder:p}))}function Kr(e){return Object(Ur.a)(e),Object(r.createElement)(Wr,e)}const $r=Object(r.forwardRef)((e,t)=>{const n=qr({ref:t},e);return Object(r.createElement)("div",{className:"block-editor-inner-blocks"},Object(r.createElement)("div",n))});function qr(e={},t={}){const{clientId:n}=Object(M.b)(),c=Object(a.useViewportMatch)("medium","<"),l=Object(v.useSelect)(e=>{const{getBlockName:t,isBlockSelected:o,hasSelectedInnerBlock:r,isNavigationMode:i}=e(_.a),l=i()||c;return"core/template"!==t(n)&&!o(n)&&!r(n,!0)&&l},[n,c]),s=Object(a.useMergeRefs)([e.ref,Object(Gr.a)({rootClientId:n})]),u=t.value&&t.onChange?Kr:Wr;return{...e,ref:s,className:i()(e.className,"block-editor-block-list__layout",{"has-overlay":l}),children:Object(r.createElement)(u,Object(o.a)({},t,{clientId:n}))}}$r.DefaultBlockAppender=Dr,$r.ButtonBlockAppender=Ar,$r.Content=Object(u.withBlockContentContext)(({BlockContent:e})=>Object(r.createElement)(e,null));var Yr=$r,Xr=Object(r.createElement)(p.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(p.Path,{d:"M9 9v6h11V9H9zM4 20h1.5V4H4v16z"})),Qr=Object(r.createElement)(p.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(p.Path,{d:"M20 9h-7.2V4h-1.6v5H4v6h7.2v5h1.6v-5H20z"})),Zr=Object(r.createElement)(p.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(p.Path,{d:"M4 15h11V9H4v6zM18.5 4v16H20V4h-1.5z"})),Jr=Object(r.createElement)(p.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(p.Path,{d:"M9 15h6V9H9v6zm-5 5h1.5V4H4v16zM18.5 4v16H20V4h-1.5z"}));const ec={left:Xr,center:Qr,right:Zr,"space-between":Jr};var tc=function({allowedControls:e=["left","center","right","space-between"],isCollapsed:t=!0,onChange:n,value:c,popoverProps:i,isToolbar:l}){const a=e=>{n(e===c?void 0:e)},s=c?ec[c]:ec.left,u=[{name:"left",icon:Xr,title:Object(b.__)("Justify items left"),isActive:"left"===c,onClick:()=>a("left")},{name:"center",icon:Qr,title:Object(b.__)("Justify items center"),isActive:"center"===c,onClick:()=>a("center")},{name:"right",icon:Zr,title:Object(b.__)("Justify items right"),isActive:"right"===c,onClick:()=>a("right")},{name:"space-between",icon:Jr,title:Object(b.__)("Space between items"),isActive:"space-between"===c,onClick:()=>a("space-between")}],d=l?m.ToolbarGroup:m.ToolbarDropdownMenu,p=l?{isCollapsed:t}:{};return Object(r.createElement)(d,Object(o.a)({icon:s,popoverProps:i,label:Object(b.__)("Change items justification"),controls:u.filter(t=>e.includes(t.name))},p))};function nc(e){return Object(r.createElement)(tc,Object(o.a)({},e,{isToolbar:!1}))}function oc(e){return Object(r.createElement)(tc,Object(o.a)({},e,{isToolbar:!0}))}var rc=n(289),cc=n(24),ic=({value:e,onChange:t=l.noop,settings:n})=>{if(!n||!n.length)return null;const o=n=>o=>{t({...e,[n.id]:o})},c=n.map(t=>Object(r.createElement)(m.ToggleControl,{className:"block-editor-link-control__setting",key:t.id,label:t.title,onChange:o(t),checked:!!e&&!!e[t.id]}));return Object(r.createElement)("fieldset",{className:"block-editor-link-control__settings"},Object(r.createElement)(m.VisuallyHidden,{as:"legend"},Object(b.__)("Currently selected link settings")),c)},lc=n(145),ac=n.n(lc),sc=n(20);class uc extends r.Component{constructor(e){super(e),this.onChange=this.onChange.bind(this),this.onFocus=this.onFocus.bind(this),this.onKeyDown=this.onKeyDown.bind(this),this.selectLink=this.selectLink.bind(this),this.handleOnClick=this.handleOnClick.bind(this),this.bindSuggestionNode=this.bindSuggestionNode.bind(this),this.autocompleteRef=e.autocompleteRef||Object(r.createRef)(),this.inputRef=Object(r.createRef)(),this.updateSuggestions=Object(l.debounce)(this.updateSuggestions.bind(this),200),this.suggestionNodes=[],this.isUpdatingSuggestions=!1,this.state={suggestions:[],showSuggestions:!1,selectedSuggestion:null,suggestionsListboxId:"",suggestionOptionIdPrefix:""}}componentDidUpdate(e){const{showSuggestions:t,selectedSuggestion:n}=this.state,{value:o}=this.props;t&&null!==n&&this.suggestionNodes[n]&&!this.scrollingIntoView&&(this.scrollingIntoView=!0,ac()(this.suggestionNodes[n],this.autocompleteRef.current,{onlyScrollIfNeeded:!0}),this.props.setTimeout(()=>{this.scrollingIntoView=!1},100)),e.value!==o&&this.shouldShowInitialSuggestions()&&this.updateSuggestions()}componentDidMount(){this.shouldShowInitialSuggestions()&&this.updateSuggestions()}componentWillUnmount(){var e,t;null===(e=this.suggestionsRequest)||void 0===e||null===(t=e.cancel)||void 0===t||t.call(e),delete this.suggestionsRequest}bindSuggestionNode(e){return t=>{this.suggestionNodes[e]=t}}shouldShowInitialSuggestions(){const{suggestions:e}=this.state,{__experimentalShowInitialSuggestions:t=!1,value:n}=this.props;return!this.isUpdatingSuggestions&&t&&!(n&&n.length)&&!(e&&e.length)}updateSuggestions(e=""){const{__experimentalFetchLinkSuggestions:t,__experimentalHandleURLSuggestions:n}=this.props;if(!t)return;const o=!(e&&e.length);if(!o&&(e.length<2||!n&&Object(sc.isURL)(e)))return void this.setState({showSuggestions:!1,selectedSuggestion:null,loading:!1});this.isUpdatingSuggestions=!0,this.setState({selectedSuggestion:null,loading:!0});const r=t(e,{isInitialSuggestions:o});r.then(e=>{this.suggestionsRequest===r&&(this.setState({suggestions:e,loading:!1,showSuggestions:!!e.length}),e.length?this.props.debouncedSpeak(Object(b.sprintf)(
61
  /* translators: %s: number of results. */
62
+ Object(b._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",e.length),e.length),"assertive"):this.props.debouncedSpeak(Object(b.__)("No results."),"assertive"),this.isUpdatingSuggestions=!1)}).catch(()=>{this.suggestionsRequest===r&&(this.setState({loading:!1}),this.isUpdatingSuggestions=!1)}),this.suggestionsRequest=r}onChange(e){const t=e.target.value;this.props.onChange(t),this.props.disableSuggestions||this.updateSuggestions(t.trim())}onFocus(){const{suggestions:e}=this.state,{disableSuggestions:t,value:n}=this.props;!n||t||this.isUpdatingSuggestions||e&&e.length||this.updateSuggestions(n.trim())}onKeyDown(e){const{showSuggestions:t,selectedSuggestion:n,suggestions:o,loading:r}=this.state;if(!t||!o.length||r){switch(e.keyCode){case wt.UP:0!==e.target.selectionStart&&(e.preventDefault(),e.target.setSelectionRange(0,0));break;case wt.DOWN:this.props.value.length!==e.target.selectionStart&&(e.preventDefault(),e.target.setSelectionRange(this.props.value.length,this.props.value.length));break;case wt.ENTER:this.props.onSubmit&&this.props.onSubmit()}return}const c=this.state.suggestions[this.state.selectedSuggestion];switch(e.keyCode){case wt.UP:{e.preventDefault();const t=n?n-1:o.length-1;this.setState({selectedSuggestion:t});break}case wt.DOWN:{e.preventDefault();const t=null===n||n===o.length-1?0:n+1;this.setState({selectedSuggestion:t});break}case wt.TAB:null!==this.state.selectedSuggestion&&(this.selectLink(c),this.props.speak(Object(b.__)("Link selected.")));break;case wt.ENTER:null!==this.state.selectedSuggestion?(this.selectLink(c),this.props.onSubmit&&this.props.onSubmit(c)):this.props.onSubmit&&this.props.onSubmit()}}selectLink(e){this.props.onChange(e.url,e),this.setState({selectedSuggestion:null,showSuggestions:!1})}handleOnClick(e){this.selectLink(e),this.inputRef.current.focus()}static getDerivedStateFromProps({value:e,instanceId:t,disableSuggestions:n,__experimentalShowInitialSuggestions:o=!1},{showSuggestions:r}){let c=r;const i=e&&e.length;return o||i||(c=!1),!0===n&&(c=!1),{showSuggestions:c,suggestionsListboxId:"block-editor-url-input-suggestions-"+t,suggestionOptionIdPrefix:"block-editor-url-input-suggestion-"+t}}render(){return Object(r.createElement)(r.Fragment,null,this.renderControl(),this.renderSuggestions())}renderControl(){const{label:e,className:t,isFullWidth:n,instanceId:o,placeholder:c=Object(b.__)("Paste URL or type to search"),__experimentalRenderControl:l,value:a=""}=this.props,{loading:s,showSuggestions:u,selectedSuggestion:d,suggestionsListboxId:p,suggestionOptionIdPrefix:f}=this.state,g={id:"url-input-control-"+o,label:e,className:i()("block-editor-url-input",t,{"is-full-width":n})},h={value:a,required:!0,className:"block-editor-url-input__input",type:"text",onChange:this.onChange,onFocus:this.onFocus,placeholder:c,onKeyDown:this.onKeyDown,role:"combobox","aria-label":Object(b.__)("URL"),"aria-expanded":u,"aria-autocomplete":"list","aria-owns":p,"aria-activedescendant":null!==d?`${f}-${d}`:void 0,ref:this.inputRef};return l?l(g,h,s):Object(r.createElement)(m.BaseControl,g,Object(r.createElement)("input",h),s&&Object(r.createElement)(m.Spinner,null))}renderSuggestions(){const{className:e,__experimentalRenderSuggestions:t,value:n="",__experimentalShowInitialSuggestions:c=!1}=this.props,{showSuggestions:a,suggestions:s,selectedSuggestion:u,suggestionsListboxId:d,suggestionOptionIdPrefix:b,loading:p}=this.state,f={id:d,ref:this.autocompleteRef,role:"listbox"},g=(e,t)=>({role:"option",tabIndex:"-1",id:`${b}-${t}`,ref:this.bindSuggestionNode(t),"aria-selected":t===u});return Object(l.isFunction)(t)&&a&&s.length?t({suggestions:s,selectedSuggestion:u,suggestionsListProps:f,buildSuggestionItemProps:g,isLoading:p,handleSuggestionClick:this.handleOnClick,isInitialSuggestions:c&&!(n&&n.length)}):!Object(l.isFunction)(t)&&a&&s.length?Object(r.createElement)(m.Popover,{position:"bottom",noArrow:!0,focusOnMount:!1},Object(r.createElement)("div",Object(o.a)({},f,{className:i()("block-editor-url-input__suggestions",e+"__suggestions")}),s.map((e,t)=>Object(r.createElement)(m.Button,Object(o.a)({},g(0,t),{key:e.id,className:i()("block-editor-url-input__suggestion",{"is-selected":t===u}),onClick:()=>this.handleOnClick(e)}),e.title)))):null}}var dc=Object(a.compose)(a.withSafeTimeout,m.withSpokenMessages,a.withInstanceId,Object(v.withSelect)((e,t)=>{if(Object(l.isFunction)(t.__experimentalFetchLinkSuggestions))return;const{getSettings:n}=e(_.a);return{__experimentalFetchLinkSuggestions:n().__experimentalFetchLinkSuggestions}}))(uc),bc=n(150),mc=({searchTerm:e,onClick:t,itemProps:n,isSelected:c,buttonText:a})=>{if(!e)return null;let s;return s=a?Object(l.isFunction)(a)?a(e):a:Object(r.createInterpolateElement)(Object(b.sprintf)(
63
  /* translators: %s: search term. */
64
+ Object(b.__)("Create: <mark>%s</mark>"),e),{mark:Object(r.createElement)("mark",null)}),Object(r.createElement)(m.Button,Object(o.a)({},n,{className:i()("block-editor-link-control__search-create block-editor-link-control__search-item",{"is-selected":c}),onClick:t}),Object(r.createElement)(mo.a,{className:"block-editor-link-control__search-item-icon",icon:bc.a}),Object(r.createElement)("span",{className:"block-editor-link-control__search-item-header"},Object(r.createElement)("span",{className:"block-editor-link-control__search-item-title"},s)))},pc=Object(r.createElement)(p.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(r.createElement)(p.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"})),fc=({itemProps:e,suggestion:t,isSelected:n=!1,onClick:c,isURL:l=!1,searchTerm:a="",shouldShowType:s=!1})=>Object(r.createElement)(m.Button,Object(o.a)({},e,{onClick:c,className:i()("block-editor-link-control__search-item",{"is-selected":n,"is-url":l,"is-entity":!l})}),l&&Object(r.createElement)(mo.a,{className:"block-editor-link-control__search-item-icon",icon:pc}),Object(r.createElement)("span",{className:"block-editor-link-control__search-item-header"},Object(r.createElement)("span",{className:"block-editor-link-control__search-item-title"},Object(r.createElement)(m.TextHighlight,{text:t.title,highlight:a})),Object(r.createElement)("span",{"aria-hidden":!l,className:"block-editor-link-control__search-item-info"},!l&&(Object(sc.filterURLForDisplay)(Object(sc.safeDecodeURI)(t.url))||""),l&&Object(b.__)("Press ENTER to add this link"))),s&&t.type&&Object(r.createElement)("span",{className:"block-editor-link-control__search-item-type"},"post_tag"===t.type?"tag":t.type));const gc=[{id:"opensInNewTab",title:Object(b.__)("Open in new tab")}];function hc({instanceId:e,withCreateSuggestion:t,currentInputValue:n,handleSuggestionClick:c,suggestionsListProps:l,buildSuggestionItemProps:a,suggestions:s,selectedSuggestion:u,isLoading:d,isInitialSuggestions:p,createSuggestionButtonText:f,suggestionsQuery:g}){const h=i()("block-editor-link-control__search-results",{"is-loading":d}),O=["url","mailto","tel","internal"],j=1===s.length&&O.includes(s[0].type.toLowerCase()),v=t&&!j&&!p,k=!(null!=g&&g.type),_="block-editor-link-control-search-results-label-"+e,y=p?Object(b.__)("Recently updated"):Object(b.sprintf)(
65
  /* translators: %s: search term. */